@govbr-ds/webcomponents 2.5.0 → 2.6.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.
Files changed (686) hide show
  1. package/cem/custom-elements.json +4228 -996
  2. package/cem/webcomponents.html-custom-data.json +354 -48
  3. package/dist/cjs/br-avatar.cjs.entry.js +2 -2
  4. package/dist/cjs/br-breadcrumb-item.cjs.entry.js +1 -1
  5. package/dist/cjs/br-breadcrumb.cjs.entry.js +11 -11
  6. package/dist/cjs/br-button_2.cjs.entry.js +5 -5
  7. package/dist/cjs/br-card.cjs.entry.js +2 -2
  8. package/dist/cjs/br-carousel-page.cjs.entry.js +2 -2
  9. package/dist/cjs/br-carousel.cjs.entry.js +5 -5
  10. package/dist/cjs/br-checkbox-group.cjs.entry.js +2 -2
  11. package/dist/cjs/br-checkbox.cjs.entry.js +2 -2
  12. package/dist/cjs/br-checkgroup.cjs.entry.js +1 -1
  13. package/dist/cjs/br-collapse_2.cjs.entry.js +8 -8
  14. package/dist/cjs/br-cookiebar-cookie.cjs.entry.js +2 -2
  15. package/dist/cjs/br-cookiebar-group.cjs.entry.js +4 -4
  16. package/dist/cjs/br-cookiebar-header.cjs.entry.js +2 -2
  17. package/dist/cjs/br-cookiebar-link.cjs.entry.js +3 -3
  18. package/dist/cjs/br-cookiebar-note-group.cjs.entry.js +3 -3
  19. package/dist/cjs/br-cookiebar-note.cjs.entry.js +2 -2
  20. package/dist/cjs/br-cookiebar.cjs.entry.js +5 -5
  21. package/dist/cjs/br-crumb.cjs.entry.js +1 -1
  22. package/dist/cjs/br-date-picker_3.cjs.entry.js +14 -14
  23. package/dist/cjs/br-datetime-picker.cjs.entry.js +6 -23
  24. package/dist/cjs/br-divider.cjs.entry.js +2 -2
  25. package/dist/cjs/br-dropdown.cjs.entry.js +677 -0
  26. package/dist/cjs/br-footer-category.cjs.entry.js +2 -2
  27. package/dist/cjs/br-footer-item.cjs.entry.js +2 -2
  28. package/dist/cjs/br-footer-legal.cjs.entry.js +2 -2
  29. package/dist/cjs/br-footer-logo.cjs.entry.js +2 -2
  30. package/dist/cjs/br-footer-social.cjs.entry.js +3 -3
  31. package/dist/cjs/br-footer.cjs.entry.js +2 -2
  32. package/dist/cjs/br-header-function.cjs.entry.js +2 -2
  33. package/dist/cjs/br-header-link.cjs.entry.js +2 -2
  34. package/dist/cjs/br-header-list.cjs.entry.js +4 -4
  35. package/dist/cjs/br-header-logo.cjs.entry.js +2 -2
  36. package/dist/cjs/br-header.cjs.entry.js +6 -6
  37. package/dist/cjs/br-icon.cjs.entry.js +172 -158
  38. package/dist/cjs/br-input_2.cjs.entry.js +1427 -0
  39. package/dist/cjs/br-item.cjs.entry.js +2 -2
  40. package/dist/cjs/br-link.cjs.entry.js +2 -2
  41. package/dist/cjs/br-magic-button.cjs.entry.js +11 -12
  42. package/dist/cjs/br-menu-group.cjs.entry.js +2 -2
  43. package/dist/cjs/br-menu-header.cjs.entry.js +3 -3
  44. package/dist/cjs/br-menu-info.cjs.entry.js +2 -2
  45. package/dist/cjs/br-menu-item.cjs.entry.js +3 -3
  46. package/dist/cjs/br-menu-link.cjs.entry.js +3 -3
  47. package/dist/cjs/br-menu-list.cjs.entry.js +2 -2
  48. package/dist/cjs/br-menu-logo.cjs.entry.js +2 -2
  49. package/dist/cjs/br-menu-social.cjs.entry.js +2 -2
  50. package/dist/cjs/br-menu.cjs.entry.js +5 -5
  51. package/dist/cjs/br-modal.cjs.entry.js +2 -2
  52. package/dist/cjs/br-notification-body.cjs.entry.js +2 -2
  53. package/dist/cjs/br-notification-header.cjs.entry.js +2 -2
  54. package/dist/cjs/br-notification-item.cjs.entry.js +2 -2
  55. package/dist/cjs/br-notification.cjs.entry.js +2 -2
  56. package/dist/cjs/{br-dropdown_2.cjs.entry.js → br-pagination_2.cjs.entry.js} +812 -557
  57. package/dist/cjs/br-radio-group.cjs.entry.js +2 -2
  58. package/dist/cjs/br-radio.cjs.entry.js +2 -2
  59. package/dist/cjs/br-scrim.cjs.entry.js +2 -2
  60. package/dist/cjs/br-select-input_3.cjs.entry.js +16 -93
  61. package/dist/cjs/br-sign-in.cjs.entry.js +3 -3
  62. package/dist/cjs/br-skip-link-item.cjs.entry.js +1 -1
  63. package/dist/cjs/br-skip-link.cjs.entry.js +2 -2
  64. package/dist/cjs/br-skiplink-item.cjs.entry.js +2 -2
  65. package/dist/cjs/br-slider.cjs.entry.js +3 -3
  66. package/dist/cjs/br-step_2.cjs.entry.js +3 -3
  67. package/dist/cjs/br-switch.cjs.entry.js +2 -2
  68. package/dist/cjs/br-tab-item.cjs.entry.js +3 -3
  69. package/dist/cjs/br-tab.cjs.entry.js +7 -7
  70. package/dist/cjs/br-table-action_6.cjs.entry.js +1500 -0
  71. package/dist/cjs/br-table-body.cjs.entry.js +4 -16
  72. package/dist/cjs/br-table-header.cjs.entry.js +4 -16
  73. package/dist/cjs/br-table.cjs.entry.js +2616 -433
  74. package/dist/cjs/br-tag.cjs.entry.js +4 -4
  75. package/dist/cjs/br-textarea.cjs.entry.js +3 -3
  76. package/dist/cjs/br-tooltip.cjs.entry.js +5 -29
  77. package/dist/cjs/br-upload.cjs.entry.js +4 -4
  78. package/dist/cjs/br-wizard-panel.cjs.entry.js +3 -3
  79. package/dist/cjs/br-wizard.cjs.entry.js +3 -3
  80. package/dist/cjs/helpers-DkkDubv1.js +28 -0
  81. package/dist/cjs/{icon.utils-DF6kMskA.js → icon.utils-CMs0ukvR.js} +1 -1
  82. package/dist/cjs/{index-Bc30P_6z.js → index-BP8UIQro.js} +34 -34
  83. package/dist/cjs/loader.cjs.js +2 -2
  84. package/dist/cjs/table.utils-De-9_NgJ.js +749 -0
  85. package/dist/cjs/webcomponents.cjs.js +2 -2
  86. package/dist/collection/collection-manifest.json +3 -0
  87. package/dist/collection/components/avatar/avatar.css +1 -1
  88. package/dist/collection/components/breadcrumb/breadcrumb.css +1 -1
  89. package/dist/collection/components/breadcrumb/breadcrumb.js +9 -9
  90. package/dist/collection/components/button/button.css +1 -1
  91. package/dist/collection/components/button/button.js +2 -2
  92. package/dist/collection/components/card/card.css +1 -1
  93. package/dist/collection/components/carousel/carousel-page/carousel-page.css +1 -1
  94. package/dist/collection/components/carousel/carousel.css +1 -1
  95. package/dist/collection/components/carousel/carousel.js +3 -3
  96. package/dist/collection/components/checkbox/checkbox.css +1 -1
  97. package/dist/collection/components/checkbox-group/checkbox-group.css +1 -1
  98. package/dist/collection/components/collapse/collapse.css +1 -1
  99. package/dist/collection/components/collapse/collapse.js +9 -9
  100. package/dist/collection/components/cookiebar/cookiebar-cookie/cookiebar-cookie.css +1 -1
  101. package/dist/collection/components/cookiebar/cookiebar-group/cookiebar-group.css +1 -1
  102. package/dist/collection/components/cookiebar/cookiebar-group/cookiebar-group.js +2 -2
  103. package/dist/collection/components/cookiebar/cookiebar-header/cookiebar-header.css +1 -1
  104. package/dist/collection/components/cookiebar/cookiebar-link/cookiebar-link.css +1 -1
  105. package/dist/collection/components/cookiebar/cookiebar-link/cookiebar-link.js +1 -1
  106. package/dist/collection/components/cookiebar/cookiebar-note/cookiebar-note.css +1 -1
  107. package/dist/collection/components/cookiebar/cookiebar-note-group/cookiebar-note-group.css +1 -1
  108. package/dist/collection/components/cookiebar/cookiebar-note-group/cookiebar-note-group.js +1 -1
  109. package/dist/collection/components/cookiebar/cookiebar.css +1 -1
  110. package/dist/collection/components/cookiebar/cookiebar.js +3 -3
  111. package/dist/collection/components/datetime-picker/date-picker/date-picker.css +1 -1
  112. package/dist/collection/components/datetime-picker/date-picker/date-picker.js +4 -4
  113. package/dist/collection/components/datetime-picker/datetime-input/datetime-input.css +1 -1
  114. package/dist/collection/components/datetime-picker/datetime-input/datetime-input.js +3 -3
  115. package/dist/collection/components/datetime-picker/datetime-picker.css +1 -1
  116. package/dist/collection/components/datetime-picker/datetime-picker.utils.js +6 -6
  117. package/dist/collection/components/datetime-picker/time-picker/time-picker.css +1 -1
  118. package/dist/collection/components/datetime-picker/time-picker/time-picker.js +3 -3
  119. package/dist/collection/components/divider/divider.css +1 -1
  120. package/dist/collection/components/dropdown/dropdown.css +1 -1
  121. package/dist/collection/components/dropdown/dropdown.js +6 -8
  122. package/dist/collection/components/footer/footer-category/footer-category.css +1 -1
  123. package/dist/collection/components/footer/footer-item/footer-item.css +1 -1
  124. package/dist/collection/components/footer/footer-legal/footer-legal.css +1 -1
  125. package/dist/collection/components/footer/footer-logo/footer-logo.css +1 -1
  126. package/dist/collection/components/footer/footer-social/footer-social.css +1 -1
  127. package/dist/collection/components/footer/footer-social/footer-social.js +2 -2
  128. package/dist/collection/components/footer/footer.css +1 -1
  129. package/dist/collection/components/header/header-function/header-function.css +1 -1
  130. package/dist/collection/components/header/header-link/header-link.css +1 -1
  131. package/dist/collection/components/header/header-list/header-list.css +1 -1
  132. package/dist/collection/components/header/header-list/header-list.js +2 -2
  133. package/dist/collection/components/header/header-logo/header-logo.css +1 -1
  134. package/dist/collection/components/header/header.css +1 -1
  135. package/dist/collection/components/header/header.js +4 -4
  136. package/dist/collection/components/icon/default-icons-cache.js +159 -146
  137. package/dist/collection/components/icon/icon.css +1 -1
  138. package/dist/collection/components/icon/icon.js +17 -13
  139. package/dist/collection/components/icon/icon.utils.js +1 -1
  140. package/dist/collection/components/input/input.css +1 -1
  141. package/dist/collection/components/input/input.js +120 -2
  142. package/dist/collection/components/item/item.css +1 -1
  143. package/dist/collection/components/link/link.css +1 -1
  144. package/dist/collection/components/list/list.css +1 -1
  145. package/dist/collection/components/loading/loading.css +1 -1
  146. package/dist/collection/components/magic-button/magic-button.css +1 -1
  147. package/dist/collection/components/magic-button/magic-button.js +11 -12
  148. package/dist/collection/components/menu/menu-group/menu-group.css +1 -1
  149. package/dist/collection/components/menu/menu-header/menu-header.css +1 -1
  150. package/dist/collection/components/menu/menu-header/menu-header.js +1 -1
  151. package/dist/collection/components/menu/menu-info/menu-info.css +1 -1
  152. package/dist/collection/components/menu/menu-item/menu-item.css +1 -1
  153. package/dist/collection/components/menu/menu-item/menu-item.js +1 -1
  154. package/dist/collection/components/menu/menu-link/menu-link.css +1 -1
  155. package/dist/collection/components/menu/menu-link/menu-link.js +1 -1
  156. package/dist/collection/components/menu/menu-list/menu-list.css +1 -1
  157. package/dist/collection/components/menu/menu-logo/menu-logo.css +1 -1
  158. package/dist/collection/components/menu/menu-social/menu-social.css +1 -1
  159. package/dist/collection/components/menu/menu-social/menu-social.js +1 -1
  160. package/dist/collection/components/menu/menu.css +1 -1
  161. package/dist/collection/components/menu/menu.js +3 -3
  162. package/dist/collection/components/message/message.css +1 -1
  163. package/dist/collection/components/modal/modal.css +1 -1
  164. package/dist/collection/components/notification/notification-body/notification-body.css +1 -1
  165. package/dist/collection/components/notification/notification-header/notification-header.css +1 -1
  166. package/dist/collection/components/notification/notification-item/notification-item.css +1 -1
  167. package/dist/collection/components/notification/notification.css +1 -1
  168. package/dist/collection/components/pagination/pagination.css +1 -1
  169. package/dist/collection/components/pagination/pagination.js +4 -4
  170. package/dist/collection/components/radio/radio.css +1 -1
  171. package/dist/collection/components/radio-group/radio-group.css +1 -1
  172. package/dist/collection/components/scrim/scrim.css +1 -1
  173. package/dist/collection/components/select/select-input/select-input.css +1 -1
  174. package/dist/collection/components/select/select-input/select-input.js +6 -84
  175. package/dist/collection/components/select/select-list/select-list.css +1 -1
  176. package/dist/collection/components/select/select-option/select-option.css +1 -1
  177. package/dist/collection/components/select/select-option/select-option.js +8 -7
  178. package/dist/collection/components/select/select.css +1 -1
  179. package/dist/collection/components/select/select.js +22 -6
  180. package/dist/collection/components/sign-in/sign-in.css +1 -1
  181. package/dist/collection/components/sign-in/sign-in.js +1 -1
  182. package/dist/collection/components/skip-link/skip-link-item/skip-link-item.css +1 -1
  183. package/dist/collection/components/skip-link/skip-link.css +1 -1
  184. package/dist/collection/components/slider/slider.css +1 -1
  185. package/dist/collection/components/slider/slider.js +4 -4
  186. package/dist/collection/components/step/step-item/step-item.css +1 -1
  187. package/dist/collection/components/step/step.css +1 -1
  188. package/dist/collection/components/switch/switch.css +1 -1
  189. package/dist/collection/components/tab/tab-item/tab-item.css +1 -1
  190. package/dist/collection/components/tab/tab-item/tab-item.js +2 -2
  191. package/dist/collection/components/tab/tab.css +1 -1
  192. package/dist/collection/components/tab/tab.js +4 -4
  193. package/dist/collection/components/table/table-action/table-action.css +1 -0
  194. package/dist/collection/components/table/table-action/table-action.js +349 -0
  195. package/dist/collection/components/table/table-bar/table-bar.css +1 -0
  196. package/dist/collection/components/table/table-bar/table-bar.js +652 -0
  197. package/dist/collection/components/table/table-body/table-body.css +1 -1
  198. package/dist/collection/components/table/table-body/table-body.js +12 -17
  199. package/dist/collection/components/table/table-cell/table-cell.css +1 -1
  200. package/dist/collection/components/table/table-cell/table-cell.js +556 -83
  201. package/dist/collection/components/table/table-footer/table-footer.css +1 -0
  202. package/dist/collection/components/table/table-footer/table-footer.js +233 -0
  203. package/dist/collection/components/table/table-header/table-header.css +1 -1
  204. package/dist/collection/components/table/table-header/table-header.js +11 -17
  205. package/dist/collection/components/table/table-header-cell/table-header-cell.css +1 -1
  206. package/dist/collection/components/table/table-header-cell/table-header-cell.js +287 -86
  207. package/dist/collection/components/table/table-row/table-row.css +1 -1
  208. package/dist/collection/components/table/table-row/table-row.js +312 -57
  209. package/dist/collection/components/table/table.actions-tooltip.js +33 -0
  210. package/dist/collection/components/table/{table-constants.js → table.constants.js} +54 -77
  211. package/dist/collection/components/table/table.css +1 -1
  212. package/dist/collection/components/table/table.data.js +461 -0
  213. package/dist/collection/components/table/table.expansion.elements.js +70 -0
  214. package/dist/collection/components/table/table.expansion.js +179 -0
  215. package/dist/collection/components/table/table.grouping.js +97 -0
  216. package/dist/collection/components/table/table.header-height.js +47 -0
  217. package/dist/collection/components/table/table.js +2499 -618
  218. package/dist/collection/components/table/table.keyboard.js +340 -0
  219. package/dist/collection/components/table/table.scroll-shadows.js +36 -0
  220. package/dist/collection/components/table/table.selection.elements.js +63 -0
  221. package/dist/collection/components/table/table.selection.js +239 -0
  222. package/dist/collection/components/table/table.tokens.js +28 -0
  223. package/dist/collection/components/table/table.types.js +1 -0
  224. package/dist/collection/components/table/table.utils.js +75 -0
  225. package/dist/collection/components/table/table.virtual-list.js +342 -0
  226. package/dist/collection/components/tag/tag.css +1 -1
  227. package/dist/collection/components/tag/tag.js +2 -2
  228. package/dist/collection/components/textarea/textarea.css +1 -1
  229. package/dist/collection/components/textarea/textarea.js +1 -1
  230. package/dist/collection/components/tooltip/tooltip.css +1 -1
  231. package/dist/collection/components/tooltip/tooltip.js +3 -27
  232. package/dist/collection/components/upload/upload.css +1 -1
  233. package/dist/collection/components/upload/upload.js +2 -2
  234. package/dist/collection/components/wizard/wizard-panel/wizard-panel.css +1 -1
  235. package/dist/collection/components/wizard/wizard-panel/wizard-panel.js +1 -1
  236. package/dist/collection/components/wizard/wizard.css +1 -1
  237. package/dist/collection/components/wizard/wizard.js +1 -1
  238. package/dist/collection/pages/scripts/code-editor.js +28 -3
  239. package/dist/collection/pages/scripts/pageLoader.js +286 -20
  240. package/dist/collection/pages/scripts/pageloader-preview.js +3 -1
  241. package/dist/components/br-avatar.js +1 -1
  242. package/dist/components/br-breadcrumb-item.js +1 -1
  243. package/dist/components/br-breadcrumb.js +1 -1
  244. package/dist/components/br-button.js +1 -1
  245. package/dist/components/br-card.js +1 -1
  246. package/dist/components/br-carousel-page.js +1 -1
  247. package/dist/components/br-carousel.js +1 -1
  248. package/dist/components/br-checkbox-group.js +1 -1
  249. package/dist/components/br-checkbox.js +1 -1
  250. package/dist/components/br-checkgroup.js +1 -1
  251. package/dist/components/br-collapse.js +1 -1
  252. package/dist/components/br-cookiebar-cookie.js +1 -1
  253. package/dist/components/br-cookiebar-group.js +1 -1
  254. package/dist/components/br-cookiebar-header.js +1 -1
  255. package/dist/components/br-cookiebar-link.js +1 -1
  256. package/dist/components/br-cookiebar-note-group.js +1 -1
  257. package/dist/components/br-cookiebar-note.js +1 -1
  258. package/dist/components/br-cookiebar.js +1 -1
  259. package/dist/components/br-crumb.js +1 -1
  260. package/dist/components/br-date-picker.js +1 -1
  261. package/dist/components/br-datetime-input.js +1 -1
  262. package/dist/components/br-datetime-picker.js +1 -1
  263. package/dist/components/br-divider.js +1 -1
  264. package/dist/components/br-dropdown.js +1 -1
  265. package/dist/components/br-footer-category.js +1 -1
  266. package/dist/components/br-footer-item.js +1 -1
  267. package/dist/components/br-footer-legal.js +1 -1
  268. package/dist/components/br-footer-logo.js +1 -1
  269. package/dist/components/br-footer-social.js +1 -1
  270. package/dist/components/br-footer.js +1 -1
  271. package/dist/components/br-header-function.js +1 -1
  272. package/dist/components/br-header-link.js +1 -1
  273. package/dist/components/br-header-list.js +1 -1
  274. package/dist/components/br-header-logo.js +1 -1
  275. package/dist/components/br-header.js +1 -1
  276. package/dist/components/br-icon.js +1 -1
  277. package/dist/components/br-input.js +1 -1
  278. package/dist/components/br-item.js +1 -1
  279. package/dist/components/br-link.js +1 -1
  280. package/dist/components/br-list.js +1 -1
  281. package/dist/components/br-loading.js +1 -1
  282. package/dist/components/br-magic-button.js +1 -1
  283. package/dist/components/br-menu-group.js +1 -1
  284. package/dist/components/br-menu-header.js +1 -1
  285. package/dist/components/br-menu-info.js +1 -1
  286. package/dist/components/br-menu-item.js +1 -1
  287. package/dist/components/br-menu-link.js +1 -1
  288. package/dist/components/br-menu-list.js +1 -1
  289. package/dist/components/br-menu-logo.js +1 -1
  290. package/dist/components/br-menu-social.js +1 -1
  291. package/dist/components/br-menu.js +1 -1
  292. package/dist/components/br-message.js +1 -1
  293. package/dist/components/br-modal.js +1 -1
  294. package/dist/components/br-notification-body.js +1 -1
  295. package/dist/components/br-notification-header.js +1 -1
  296. package/dist/components/br-notification-item.js +1 -1
  297. package/dist/components/br-notification.js +1 -1
  298. package/dist/components/br-pagination.js +1 -1
  299. package/dist/components/br-radio-group.js +1 -1
  300. package/dist/components/br-radio.js +1 -1
  301. package/dist/components/br-scrim.js +1 -1
  302. package/dist/components/br-select-input.js +1 -1
  303. package/dist/components/br-select-list.js +1 -1
  304. package/dist/components/br-select-option.js +1 -1
  305. package/dist/components/br-select.js +1 -1
  306. package/dist/components/br-sign-in.js +1 -1
  307. package/dist/components/br-skip-link-item.js +1 -1
  308. package/dist/components/br-skip-link.js +1 -1
  309. package/dist/components/br-skiplink-item.js +1 -1
  310. package/dist/components/br-slider.js +1 -1
  311. package/dist/components/br-step-item.js +1 -1
  312. package/dist/components/br-step.js +1 -1
  313. package/dist/components/br-switch.js +1 -1
  314. package/dist/components/br-tab-item.js +1 -1
  315. package/dist/components/br-tab.js +1 -1
  316. package/dist/components/br-table-action.d.ts +11 -0
  317. package/dist/components/br-table-action.js +5 -0
  318. package/dist/components/br-table-bar.d.ts +11 -0
  319. package/dist/components/br-table-bar.js +5 -0
  320. package/dist/components/br-table-body.js +1 -1
  321. package/dist/components/br-table-cell.js +1 -1
  322. package/dist/components/br-table-footer.d.ts +11 -0
  323. package/dist/components/br-table-footer.js +5 -0
  324. package/dist/components/br-table-header-cell.js +1 -1
  325. package/dist/components/br-table-header.js +1 -1
  326. package/dist/components/br-table-row.js +1 -1
  327. package/dist/components/br-table.js +1 -1
  328. package/dist/components/br-tag.js +1 -1
  329. package/dist/components/br-textarea.js +1 -1
  330. package/dist/components/br-time-picker.js +1 -1
  331. package/dist/components/br-tooltip.js +1 -1
  332. package/dist/components/br-upload.js +1 -1
  333. package/dist/components/br-wizard-panel.js +1 -1
  334. package/dist/components/br-wizard.js +1 -1
  335. package/dist/components/index.d.ts +6 -0
  336. package/dist/components/index.js +1 -1
  337. package/dist/components/p-082jxuTj.js +5 -0
  338. package/dist/components/p-381n6AwK.js +5 -0
  339. package/dist/components/{p-CyXVsiz9.js → p-B5_zbRAr.js} +1 -1
  340. package/dist/components/p-BE1gDPwC.js +5 -0
  341. package/dist/components/p-BV-c2pxt.js +5 -0
  342. package/dist/components/p-BfFbYAuJ.js +5 -0
  343. package/dist/components/{p-DcMjwTqu.js → p-Bi2E_w9Q.js} +1 -1
  344. package/dist/components/p-Bk8YcMql.js +5 -0
  345. package/dist/components/p-C3ISxUGw.js +5 -0
  346. package/dist/components/p-C3J0TVQO.js +5 -0
  347. package/dist/components/p-C6m13lCc.js +5 -0
  348. package/dist/components/{p-DBmwzG9E.js → p-CCWJ-H33.js} +1 -1
  349. package/dist/components/p-CJuHirYK.js +5 -0
  350. package/dist/components/{p-SWQlgYWR.js → p-CKS7ggLM.js} +1 -1
  351. package/dist/components/p-COSFBwu9.js +5 -0
  352. package/dist/components/p-CWPrXYam.js +5 -0
  353. package/dist/components/p-Ca89D_0s.js +5 -0
  354. package/dist/components/p-CbN58CFi.js +5 -0
  355. package/dist/components/p-CjjxTkKb.js +5 -0
  356. package/dist/components/p-Ck9t4WSb.js +5 -0
  357. package/dist/components/p-CvfVwD6_.js +5 -0
  358. package/dist/components/p-D-1sfjhG.js +5 -0
  359. package/dist/components/p-D-p4vLlP.js +5 -0
  360. package/dist/components/p-D6DArHGH.js +5 -0
  361. package/dist/components/p-DD3BItoS.js +5 -0
  362. package/dist/components/{p-448Z5r2f.js → p-DEIKwFIf.js} +1 -1
  363. package/dist/components/p-DHHAIESt.js +5 -0
  364. package/dist/components/{p-Jk_KQE5V.js → p-DMj5iO7_.js} +1 -1
  365. package/dist/components/p-DUI-S07G.js +5 -0
  366. package/dist/components/p-D_K9JH6J.js +5 -0
  367. package/dist/components/p-DiQp2Lap.js +5 -0
  368. package/dist/components/{p-DJKZ8ktB.js → p-Dvbqhybt.js} +1 -1
  369. package/dist/components/p-Dy7MSvt-.js +5 -0
  370. package/dist/components/p-DywTXNHQ.js +5 -0
  371. package/dist/components/p-Ft_P7Roz.js +5 -0
  372. package/dist/components/p-KuiFoKDl.js +5 -0
  373. package/dist/components/p-MiiczSWA.js +5 -0
  374. package/dist/components/p-Um3K2SHu.js +5 -0
  375. package/dist/components/p-YxddSP6q.js +5 -0
  376. package/dist/components/p-Zk91ebVT.js +5 -0
  377. package/dist/components/p-jv2oG0vH.js +5 -0
  378. package/dist/components/p-nrG_Gd0c.js +5 -0
  379. package/dist/components/p-syLEZrcg.js +5 -0
  380. package/dist/components/{p-jvKQA6x7.js → p-ydfWTgrA.js} +1 -1
  381. package/dist/esm/br-avatar.entry.js +3 -3
  382. package/dist/esm/br-breadcrumb-item.entry.js +1 -1
  383. package/dist/esm/br-breadcrumb.entry.js +12 -12
  384. package/dist/esm/br-button_2.entry.js +6 -6
  385. package/dist/esm/br-card.entry.js +2 -2
  386. package/dist/esm/br-carousel-page.entry.js +2 -2
  387. package/dist/esm/br-carousel.entry.js +6 -6
  388. package/dist/esm/br-checkbox-group.entry.js +3 -3
  389. package/dist/esm/br-checkbox.entry.js +3 -3
  390. package/dist/esm/br-checkgroup.entry.js +1 -1
  391. package/dist/esm/br-collapse_2.entry.js +9 -9
  392. package/dist/esm/br-cookiebar-cookie.entry.js +2 -2
  393. package/dist/esm/br-cookiebar-group.entry.js +4 -4
  394. package/dist/esm/br-cookiebar-header.entry.js +2 -2
  395. package/dist/esm/br-cookiebar-link.entry.js +4 -4
  396. package/dist/esm/br-cookiebar-note-group.entry.js +3 -3
  397. package/dist/esm/br-cookiebar-note.entry.js +2 -2
  398. package/dist/esm/br-cookiebar.entry.js +6 -6
  399. package/dist/esm/br-crumb.entry.js +1 -1
  400. package/dist/esm/br-date-picker_3.entry.js +14 -14
  401. package/dist/esm/br-datetime-picker.entry.js +5 -22
  402. package/dist/esm/br-divider.entry.js +3 -3
  403. package/dist/esm/br-dropdown.entry.js +675 -0
  404. package/dist/esm/br-footer-category.entry.js +2 -2
  405. package/dist/esm/br-footer-item.entry.js +3 -3
  406. package/dist/esm/br-footer-legal.entry.js +2 -2
  407. package/dist/esm/br-footer-logo.entry.js +3 -3
  408. package/dist/esm/br-footer-social.entry.js +4 -4
  409. package/dist/esm/br-footer.entry.js +3 -3
  410. package/dist/esm/br-header-function.entry.js +3 -3
  411. package/dist/esm/br-header-link.entry.js +3 -3
  412. package/dist/esm/br-header-list.entry.js +4 -4
  413. package/dist/esm/br-header-logo.entry.js +3 -3
  414. package/dist/esm/br-header.entry.js +7 -7
  415. package/dist/esm/br-icon.entry.js +173 -159
  416. package/dist/esm/br-input_2.entry.js +1424 -0
  417. package/dist/esm/br-item.entry.js +3 -3
  418. package/dist/esm/br-link.entry.js +3 -3
  419. package/dist/esm/br-magic-button.entry.js +12 -13
  420. package/dist/esm/br-menu-group.entry.js +2 -2
  421. package/dist/esm/br-menu-header.entry.js +3 -3
  422. package/dist/esm/br-menu-info.entry.js +2 -2
  423. package/dist/esm/br-menu-item.entry.js +4 -4
  424. package/dist/esm/br-menu-link.entry.js +4 -4
  425. package/dist/esm/br-menu-list.entry.js +2 -2
  426. package/dist/esm/br-menu-logo.entry.js +2 -2
  427. package/dist/esm/br-menu-social.entry.js +3 -3
  428. package/dist/esm/br-menu.entry.js +6 -6
  429. package/dist/esm/br-modal.entry.js +3 -3
  430. package/dist/esm/br-notification-body.entry.js +2 -2
  431. package/dist/esm/br-notification-header.entry.js +2 -2
  432. package/dist/esm/br-notification-item.entry.js +3 -3
  433. package/dist/esm/br-notification.entry.js +3 -3
  434. package/dist/esm/{br-dropdown_2.entry.js → br-pagination_2.entry.js} +813 -558
  435. package/dist/esm/br-radio-group.entry.js +3 -3
  436. package/dist/esm/br-radio.entry.js +3 -3
  437. package/dist/esm/br-scrim.entry.js +3 -3
  438. package/dist/esm/br-select-input_3.entry.js +17 -94
  439. package/dist/esm/br-sign-in.entry.js +4 -4
  440. package/dist/esm/br-skip-link-item.entry.js +1 -1
  441. package/dist/esm/br-skip-link.entry.js +3 -3
  442. package/dist/esm/br-skiplink-item.entry.js +3 -3
  443. package/dist/esm/br-slider.entry.js +4 -4
  444. package/dist/esm/br-step_2.entry.js +4 -4
  445. package/dist/esm/br-switch.entry.js +3 -3
  446. package/dist/esm/br-tab-item.entry.js +4 -4
  447. package/dist/esm/br-tab.entry.js +8 -8
  448. package/dist/esm/br-table-action_6.entry.js +1493 -0
  449. package/dist/esm/br-table-body.entry.js +4 -16
  450. package/dist/esm/br-table-header.entry.js +4 -16
  451. package/dist/esm/br-table.entry.js +2591 -408
  452. package/dist/esm/br-tag.entry.js +5 -5
  453. package/dist/esm/br-textarea.entry.js +4 -4
  454. package/dist/esm/br-tooltip.entry.js +6 -30
  455. package/dist/esm/br-upload.entry.js +5 -5
  456. package/dist/esm/br-wizard-panel.entry.js +3 -3
  457. package/dist/esm/br-wizard.entry.js +4 -4
  458. package/dist/esm/helpers-BNW9pAhl.js +26 -0
  459. package/dist/esm/{icon.utils-zlORkiHQ.js → icon.utils-CXDYKUBz.js} +1 -1
  460. package/dist/esm/{index-ConyRdJe.js → index-CwL52661.js} +34 -35
  461. package/dist/esm/loader.js +3 -3
  462. package/dist/esm/{props-D07GjR4_.js → props-BbxNgEcJ.js} +1 -1
  463. package/dist/esm/table.utils-CtVdlcgI.js +706 -0
  464. package/dist/esm/webcomponents.js +3 -3
  465. package/dist/hydrate/index.js +5269 -1302
  466. package/dist/hydrate/index.mjs +5269 -1302
  467. package/dist/types/components/collapse/collapse.d.ts +2 -2
  468. package/dist/types/components/footer/footer-social/footer-social.d.ts +2 -3
  469. package/dist/types/components/icon/icon.d.ts +6 -6
  470. package/dist/types/components/icon/icon.utils.d.ts +1 -1
  471. package/dist/types/components/input/input.d.ts +7 -1
  472. package/dist/types/components/input/input.types.d.ts +18 -0
  473. package/dist/types/components/magic-button/magic-button.d.ts +7 -8
  474. package/dist/types/components/menu/menu-social/menu-social.d.ts +2 -3
  475. package/dist/types/components/select/select-input/select-input.d.ts +1 -4
  476. package/dist/types/components/select/select-option/select-option.d.ts +3 -1
  477. package/dist/types/components/slider/slider.d.ts +4 -4
  478. package/dist/types/components/tab/tab-item/tab-item.d.ts +2 -2
  479. package/dist/types/components/tab/tab.d.ts +1 -1
  480. package/dist/types/components/table/table-action/table-action.d.ts +107 -0
  481. package/dist/types/components/table/table-bar/table-bar.d.ts +193 -0
  482. package/dist/types/components/table/table-body/table-body.d.ts +11 -16
  483. package/dist/types/components/table/table-cell/table-cell.d.ts +178 -38
  484. package/dist/types/components/table/table-footer/table-footer.d.ts +40 -0
  485. package/dist/types/components/table/table-footer/table-footer.types.d.ts +12 -0
  486. package/dist/types/components/table/table-header/table-header.d.ts +10 -16
  487. package/dist/types/components/table/table-header-cell/table-header-cell.d.ts +102 -53
  488. package/dist/types/components/table/table-row/table-row.d.ts +88 -29
  489. package/dist/types/components/table/table.actions-tooltip.d.ts +11 -0
  490. package/dist/types/components/table/{table-constants.d.ts → table.constants.d.ts} +50 -77
  491. package/dist/types/components/table/table.d.ts +601 -222
  492. package/dist/types/components/table/table.data.d.ts +78 -0
  493. package/dist/types/components/table/table.expansion.d.ts +65 -0
  494. package/dist/types/components/table/table.expansion.elements.d.ts +30 -0
  495. package/dist/types/components/table/table.grouping.d.ts +25 -0
  496. package/dist/types/components/table/table.header-height.d.ts +17 -0
  497. package/dist/types/components/table/table.keyboard.d.ts +53 -0
  498. package/dist/types/components/table/table.scroll-shadows.d.ts +11 -0
  499. package/dist/types/components/table/table.selection.d.ts +84 -0
  500. package/dist/types/components/table/table.selection.elements.d.ts +42 -0
  501. package/dist/types/components/table/table.tokens.d.ts +24 -0
  502. package/dist/types/components/table/table.types.d.ts +199 -0
  503. package/dist/types/components/table/table.utils.d.ts +52 -0
  504. package/dist/types/components/table/table.virtual-list.d.ts +96 -0
  505. package/dist/types/components.d.ts +1401 -279
  506. package/dist/webcomponents/{p-85c8d060.entry.js → p-07e80bf8.entry.js} +1 -1
  507. package/dist/webcomponents/p-10d81622.entry.js +5 -0
  508. package/dist/webcomponents/{p-a9f16a65.entry.js → p-12d5f533.entry.js} +1 -1
  509. package/dist/webcomponents/p-15699e8a.entry.js +5 -0
  510. package/dist/webcomponents/{p-bbcde1ea.entry.js → p-15e2f5cc.entry.js} +1 -1
  511. package/dist/webcomponents/{p-5528b466.entry.js → p-16d27d5c.entry.js} +1 -1
  512. package/dist/webcomponents/p-18d3fab8.entry.js +5 -0
  513. package/dist/webcomponents/p-23c916d9.entry.js +5 -0
  514. package/dist/webcomponents/p-2aee69fd.entry.js +5 -0
  515. package/dist/webcomponents/p-2d3db296.entry.js +5 -0
  516. package/dist/webcomponents/p-2ed6afdd.entry.js +5 -0
  517. package/dist/webcomponents/{p-bbf47e78.entry.js → p-30c865e6.entry.js} +1 -1
  518. package/dist/webcomponents/p-32afb78c.entry.js +5 -0
  519. package/dist/webcomponents/p-33d24cbd.entry.js +5 -0
  520. package/dist/webcomponents/p-35d63edd.entry.js +5 -0
  521. package/dist/webcomponents/p-3b1ff55e.entry.js +5 -0
  522. package/dist/webcomponents/p-3c7246cf.entry.js +5 -0
  523. package/dist/webcomponents/{p-11d4edc5.entry.js → p-407e7b69.entry.js} +1 -1
  524. package/dist/webcomponents/{p-53550e8c.entry.js → p-41b12e3c.entry.js} +1 -1
  525. package/dist/webcomponents/p-47adc17f.entry.js +5 -0
  526. package/dist/webcomponents/{p-21e10074.entry.js → p-48fc8e56.entry.js} +1 -1
  527. package/dist/webcomponents/p-4a44c8b8.entry.js +5 -0
  528. package/dist/webcomponents/{p-6d58ab4f.entry.js → p-4b0f3701.entry.js} +1 -1
  529. package/dist/webcomponents/{p-84dfbfdd.entry.js → p-4b66200c.entry.js} +1 -1
  530. package/dist/webcomponents/{p-324afbce.entry.js → p-4c0a1c05.entry.js} +1 -1
  531. package/dist/webcomponents/p-4c72d706.entry.js +5 -0
  532. package/dist/webcomponents/p-505173e0.entry.js +5 -0
  533. package/dist/webcomponents/p-50caea68.entry.js +5 -0
  534. package/dist/webcomponents/p-5419fd2c.entry.js +5 -0
  535. package/dist/webcomponents/{p-ed3fa8ec.entry.js → p-5693e0e7.entry.js} +1 -1
  536. package/dist/webcomponents/p-58247764.entry.js +5 -0
  537. package/dist/webcomponents/{p-3926cc91.entry.js → p-5d0f4851.entry.js} +1 -1
  538. package/dist/webcomponents/{p-39a7826d.entry.js → p-60c949c8.entry.js} +1 -1
  539. package/dist/webcomponents/p-61b84035.entry.js +5 -0
  540. package/dist/webcomponents/{p-e121429a.entry.js → p-62a74e0a.entry.js} +1 -1
  541. package/dist/webcomponents/p-6450913e.entry.js +5 -0
  542. package/dist/webcomponents/p-66c8b8d9.entry.js +5 -0
  543. package/dist/webcomponents/{p-c6f2f17b.entry.js → p-67281ef1.entry.js} +1 -1
  544. package/dist/webcomponents/{p-087ed5e7.entry.js → p-6e128c7a.entry.js} +1 -1
  545. package/dist/webcomponents/p-725e92ab.entry.js +5 -0
  546. package/dist/webcomponents/{p-19b4b1b7.entry.js → p-74726f20.entry.js} +1 -1
  547. package/dist/webcomponents/{p-975ea5c7.entry.js → p-75bd655b.entry.js} +1 -1
  548. package/dist/webcomponents/p-7bf78e48.entry.js +5 -0
  549. package/dist/webcomponents/p-7cc28ecf.entry.js +5 -0
  550. package/dist/webcomponents/{p-913d6f28.entry.js → p-7ec01a99.entry.js} +1 -1
  551. package/dist/webcomponents/{p-d205f3fd.entry.js → p-7f17dbca.entry.js} +1 -1
  552. package/dist/webcomponents/{p-152482f9.entry.js → p-8120f3ce.entry.js} +1 -1
  553. package/dist/webcomponents/p-8ded7870.entry.js +5 -0
  554. package/dist/webcomponents/p-9ab989d1.entry.js +5 -0
  555. package/dist/webcomponents/p-9be642ff.entry.js +5 -0
  556. package/dist/webcomponents/p-9d41995a.entry.js +5 -0
  557. package/dist/webcomponents/{p-EbtQZm5s.js → p-CjVabz-h.js} +1 -1
  558. package/dist/webcomponents/{p-ConyRdJe.js → p-CwL52661.js} +2 -2
  559. package/dist/webcomponents/p-Zk91ebVT.js +5 -0
  560. package/dist/webcomponents/p-_BMaB_68.js +5 -0
  561. package/dist/webcomponents/p-a150b61d.entry.js +5 -0
  562. package/dist/webcomponents/{p-55e0822d.entry.js → p-a264acf6.entry.js} +1 -1
  563. package/dist/webcomponents/p-a5616523.entry.js +5 -0
  564. package/dist/webcomponents/{p-eb5806c7.entry.js → p-ae3dfb9c.entry.js} +1 -1
  565. package/dist/webcomponents/p-b1aeb805.entry.js +5 -0
  566. package/dist/webcomponents/p-b8eea3ef.entry.js +5 -0
  567. package/dist/webcomponents/p-c6952f8d.entry.js +5 -0
  568. package/dist/webcomponents/p-c743e5c5.entry.js +5 -0
  569. package/dist/webcomponents/p-d0c659c3.entry.js +5 -0
  570. package/dist/webcomponents/p-d3dec923.entry.js +5 -0
  571. package/dist/webcomponents/{p-12dd22af.entry.js → p-d5405bbe.entry.js} +1 -1
  572. package/dist/webcomponents/{p-c29268b5.entry.js → p-d6d3a552.entry.js} +1 -1
  573. package/dist/webcomponents/p-dab66328.entry.js +5 -0
  574. package/dist/webcomponents/{p-cb1e08b1.entry.js → p-db02533d.entry.js} +1 -1
  575. package/dist/webcomponents/p-dda22999.entry.js +5 -0
  576. package/dist/webcomponents/p-e2a46f44.entry.js +5 -0
  577. package/dist/webcomponents/{p-e0ccf189.entry.js → p-e3680ff8.entry.js} +1 -1
  578. package/dist/webcomponents/p-e5b9652d.entry.js +5 -0
  579. package/dist/webcomponents/p-e7f02302.entry.js +5 -0
  580. package/dist/webcomponents/p-f0720e23.entry.js +5 -0
  581. package/dist/webcomponents/p-f244009d.entry.js +5 -0
  582. package/dist/webcomponents/p-f32c40ee.entry.js +5 -0
  583. package/dist/webcomponents/{p-e4b968b5.entry.js → p-f697abbd.entry.js} +1 -1
  584. package/dist/webcomponents/p-f7ed35ef.entry.js +5 -0
  585. package/dist/webcomponents/p-f8576e0a.entry.js +5 -0
  586. package/dist/webcomponents/p-fcc62731.entry.js +5 -0
  587. package/dist/webcomponents/webcomponents.esm.js +1 -1
  588. package/package.json +1 -1
  589. package/dist/cjs/br-input.cjs.entry.js +0 -763
  590. package/dist/cjs/br-loading.cjs.entry.js +0 -567
  591. package/dist/cjs/br-pagination.cjs.entry.js +0 -916
  592. package/dist/cjs/br-table-cell.cjs.entry.js +0 -201
  593. package/dist/cjs/br-table-header-cell.cjs.entry.js +0 -189
  594. package/dist/cjs/br-table-row.cjs.entry.js +0 -95
  595. package/dist/cjs/table-constants-BOPSay0B.js +0 -183
  596. package/dist/collection/components/table/table-tokens.js +0 -50
  597. package/dist/collection/components/table/table-utils.js +0 -44
  598. package/dist/components/p-AhfgJCUp.js +0 -5
  599. package/dist/components/p-AoNL6BaW.js +0 -5
  600. package/dist/components/p-B468MCYC.js +0 -5
  601. package/dist/components/p-B985Ov_x.js +0 -5
  602. package/dist/components/p-BOWQIHQA.js +0 -5
  603. package/dist/components/p-BPQrgCRr.js +0 -5
  604. package/dist/components/p-BwQT0fOJ.js +0 -5
  605. package/dist/components/p-CAgbUwsx.js +0 -5
  606. package/dist/components/p-CFXey8i8.js +0 -5
  607. package/dist/components/p-CW8xwk6J.js +0 -5
  608. package/dist/components/p-CXMwM9m4.js +0 -5
  609. package/dist/components/p-CYZVdKeO.js +0 -5
  610. package/dist/components/p-CeWbZN7V.js +0 -5
  611. package/dist/components/p-DDe0tQEO.js +0 -5
  612. package/dist/components/p-DRsZ9GNg.js +0 -5
  613. package/dist/components/p-DU54cqCf.js +0 -5
  614. package/dist/components/p-DVJlmlEX.js +0 -5
  615. package/dist/components/p-Dd1qCWAK.js +0 -5
  616. package/dist/components/p-DiLI514I.js +0 -5
  617. package/dist/components/p-DoWy_P8b.js +0 -5
  618. package/dist/components/p-HbhTnepI.js +0 -5
  619. package/dist/components/p-Or3FLzbz.js +0 -5
  620. package/dist/components/p-Zb9nyfTY.js +0 -5
  621. package/dist/components/p-pQb-3jFY.js +0 -5
  622. package/dist/components/p-qX6sHxOk.js +0 -5
  623. package/dist/esm/br-input.entry.js +0 -761
  624. package/dist/esm/br-loading.entry.js +0 -565
  625. package/dist/esm/br-pagination.entry.js +0 -914
  626. package/dist/esm/br-table-cell.entry.js +0 -199
  627. package/dist/esm/br-table-header-cell.entry.js +0 -187
  628. package/dist/esm/br-table-row.entry.js +0 -93
  629. package/dist/esm/table-constants-CXMwM9m4.js +0 -170
  630. package/dist/types/components/table/table-tokens.d.ts +0 -46
  631. package/dist/types/components/table/table-types.d.ts +0 -107
  632. package/dist/types/components/table/table-utils.d.ts +0 -47
  633. package/dist/webcomponents/p-031a2256.entry.js +0 -5
  634. package/dist/webcomponents/p-0602e5b1.entry.js +0 -5
  635. package/dist/webcomponents/p-079d5f69.entry.js +0 -5
  636. package/dist/webcomponents/p-0d5a9ebf.entry.js +0 -5
  637. package/dist/webcomponents/p-105b4d06.entry.js +0 -5
  638. package/dist/webcomponents/p-14aedf0d.entry.js +0 -5
  639. package/dist/webcomponents/p-1cd1126e.entry.js +0 -5
  640. package/dist/webcomponents/p-2271ea84.entry.js +0 -5
  641. package/dist/webcomponents/p-271b1ede.entry.js +0 -5
  642. package/dist/webcomponents/p-28f732fc.entry.js +0 -5
  643. package/dist/webcomponents/p-2971d38a.entry.js +0 -5
  644. package/dist/webcomponents/p-2ac48875.entry.js +0 -5
  645. package/dist/webcomponents/p-2b1a919c.entry.js +0 -5
  646. package/dist/webcomponents/p-2da57966.entry.js +0 -5
  647. package/dist/webcomponents/p-2e81b0b3.entry.js +0 -5
  648. package/dist/webcomponents/p-2eececed.entry.js +0 -5
  649. package/dist/webcomponents/p-2f904c4a.entry.js +0 -5
  650. package/dist/webcomponents/p-32414f1c.entry.js +0 -5
  651. package/dist/webcomponents/p-32ea6342.entry.js +0 -5
  652. package/dist/webcomponents/p-330ec8ab.entry.js +0 -5
  653. package/dist/webcomponents/p-374f83b1.entry.js +0 -5
  654. package/dist/webcomponents/p-3bcc2c58.entry.js +0 -5
  655. package/dist/webcomponents/p-3c7ce0e4.entry.js +0 -5
  656. package/dist/webcomponents/p-467842ca.entry.js +0 -5
  657. package/dist/webcomponents/p-53e71a8a.entry.js +0 -5
  658. package/dist/webcomponents/p-58bacbe1.entry.js +0 -5
  659. package/dist/webcomponents/p-5a5ed7d8.entry.js +0 -5
  660. package/dist/webcomponents/p-621f0fa8.entry.js +0 -5
  661. package/dist/webcomponents/p-6514a75d.entry.js +0 -5
  662. package/dist/webcomponents/p-678b43a6.entry.js +0 -5
  663. package/dist/webcomponents/p-6b6be415.entry.js +0 -5
  664. package/dist/webcomponents/p-6ff9b26e.entry.js +0 -5
  665. package/dist/webcomponents/p-992167bc.entry.js +0 -5
  666. package/dist/webcomponents/p-CXMwM9m4.js +0 -5
  667. package/dist/webcomponents/p-a21872bf.entry.js +0 -5
  668. package/dist/webcomponents/p-b8d4ace3.entry.js +0 -5
  669. package/dist/webcomponents/p-bf35e506.entry.js +0 -5
  670. package/dist/webcomponents/p-c09af3cd.entry.js +0 -5
  671. package/dist/webcomponents/p-c3e61c39.entry.js +0 -5
  672. package/dist/webcomponents/p-c6b2545a.entry.js +0 -5
  673. package/dist/webcomponents/p-cae39e13.entry.js +0 -5
  674. package/dist/webcomponents/p-cb690a87.entry.js +0 -5
  675. package/dist/webcomponents/p-d0be7243.entry.js +0 -5
  676. package/dist/webcomponents/p-d191c6e3.entry.js +0 -5
  677. package/dist/webcomponents/p-d3bd2c40.entry.js +0 -5
  678. package/dist/webcomponents/p-dbeea64e.entry.js +0 -5
  679. package/dist/webcomponents/p-df475129.entry.js +0 -5
  680. package/dist/webcomponents/p-e661c024.entry.js +0 -5
  681. package/dist/webcomponents/p-e6c6f305.entry.js +0 -5
  682. package/dist/webcomponents/p-e8291be2.entry.js +0 -5
  683. package/dist/webcomponents/p-f9084f16.entry.js +0 -5
  684. package/dist/webcomponents/p-fad3aa61.entry.js +0 -5
  685. /package/dist/collection/components/table/{table-types.js → table-footer/table-footer.types.js} +0 -0
  686. /package/dist/webcomponents/{p-zlORkiHQ.js → p-CXDYKUBz.js} +0 -0
@@ -0,0 +1,1424 @@
1
+ /*!
2
+ * Construído por SERPRO
3
+ * © https://serpro.gov.br/ - MIT License.
4
+ */
5
+ import { r as registerInstance, c as createEvent, h, H as Host, g as getElement } from './index-CwL52661.js';
6
+ import { r as redispatchNativeFormEvent, d as dispatchNativeFormEvent } from './event-6Da1SZ3J.js';
7
+ import { f as submitImplicitly, r as resolveFormValidator, g as getFormValidationState, e as syncNativeFormValidity, i as isFormControlDisabled, s as safeSetFormValue } from './validator-BkWWrDEr.js';
8
+ import { g as generateUniqueId } from './id-BeJxz5TQ.js';
9
+ import { s as setPartAttributes } from './parts-Bb5vVlCC.js';
10
+ import { n as normalizePropValue, r as resolveAllowedPropValue, c as resolveNumberPropValue, b as resolveIntegerPropValue, e as resolvePositiveNumberPropValue, a as resolveDensity } from './props-BbxNgEcJ.js';
11
+ import { a as hasAssignedSlotContent, h as hasNamedLightDomSlot } from './slot-Bt01zQ7-.js';
12
+ import './prop-warning-BlGV-x0w.js';
13
+
14
+ const inputCss = () => `*,*::before,*::after{box-sizing:border-box}:host{line-height:var(--font-line-height-medium);-webkit-text-size-adjust:100%;-moz-text-size-adjust:100%;text-size-adjust:100%}main{display:block}hr{box-sizing:content-box;height:0;overflow:visible}pre{font-family:monospace;font-size:1em}a{background-color:rgba(0,0,0,0)}b,strong{font-weight:bolder}small{font-size:80%}img{border-style:none}button,input,optgroup,select,textarea{font-family:inherit;font-size:100%;line-height:var(--font-line-height-medium);margin:0}button,input{overflow:visible}button,select{text-transform:none}button,[type=button],[type=reset],[type=submit]{appearance:button}button::-moz-focus-inner,[type=button]::-moz-focus-inner,[type=reset]::-moz-focus-inner,[type=submit]::-moz-focus-inner{border-style:none;padding:0}button:-moz-focusring,[type=button]:-moz-focusring,[type=reset]:-moz-focusring,[type=submit]:-moz-focusring{outline:1px dotted ButtonText}fieldset{padding:.35em .75em .625em}legend{box-sizing:border-box;color:inherit;display:table;max-width:100%;padding:0;white-space:normal}progress{vertical-align:baseline}textarea{overflow:auto}[type=checkbox],[type=radio]{box-sizing:border-box;padding:0}[type=number]::-webkit-inner-spin-button,[type=number]::-webkit-outer-spin-button{height:auto}[type=search]{appearance:textfield;outline-offset:-2px}[type=search]::-webkit-search-decoration{appearance:none}::-webkit-file-upload-button{appearance:button;font:inherit}details{display:block}summary{display:list-item}template{display:none}[hidden]{display:none}.d-none{display:none !important}@media (min-width: 576px){.d-sm-block{display:block !important}.d-sm-flex{display:flex !important}}[data-toggle=dropdown]+*{position:absolute}.dropdown{position:relative}.dropdown [data-toggle=dropdown]+*{box-shadow:var(--surface-shadow-sm);left:0;position:absolute;top:100%}.dropdown>.br-notification{left:auto;right:0}.dropdown .br-item{--color:var(--color-light);--color-rgb:var(--color-light-rgb);--text-color:var(--color-light);--interactive:var(--interactive-light);--interactive-rgb:var(--color-rgb);--visited:var(--visited-light);--hover:var(--hover-light);--pressed:var(--pressed-light);--focus-color:var(--focus-color-light);--focus:var(--focus-color-light);--item-padding-y:var(--spacing-scale-2x);background-color:var(--background-light);color:var(--color)}.dropdown .br-item:not(:last-child){border-bottom:1px solid var(--border-color)}.dropdown .br-item.selected{--color:var(--color-dark);--color-rgb:var(--color-dark-rgb);--text-color:var(--color-dark);--interactive:var(--interactive-dark);--interactive-rgb:var(--interactive-dark-rgb);--visited:var(--visited-dark);--hover:var(--hover-dark);--pressed:var(--pressed-dark);--focus-color:var(--focus-color-dark);--focus:var(--focus-color-dark)}.justify-content-start{justify-content:flex-start !important}.justify-content-end{justify-content:flex-end !important}.justify-content-center{justify-content:center !important}.align-items-center{align-items:center !important}.col,[class*=col-]{padding-left:calc(var(--grid-gutter)*.5);padding-right:calc(var(--grid-gutter)*.5);width:100%}.col{flex:1 0 0%;min-width:8.3333333333%}.col-auto{flex:0 0 auto;width:auto}.col-2{flex-basis:16.6666666667%;max-width:16.6666666667%}.container,.container-fluid,.container-lg{--grid-margin:var(--grid-portrait-margin);--grid-maxwidth:var(--grid-portrait-maxwidth);margin-left:auto;margin-right:auto;max-width:var(--grid-maxwidth);padding-left:var(--grid-margin);padding-right:var(--grid-margin);width:100%}.row{--grid-gutter:var(--grid-portrait-gutter);display:flex;flex-wrap:wrap;margin-left:calc(var(--grid-gutter)*-0.5);margin-right:calc(var(--grid-gutter)*-0.5)}@media (min-width: 576px){.container,.container-lg,.container-fluid{--grid-margin:var(--grid-tablet-margin)}.row{--grid-gutter:var(--grid-tablet-gutter)}.container{--grid-maxwidth:calc(var(--grid-breakpoint-sm) - var(--grid-tablet-margin))}.col-sm-4{flex-basis:33.3333333333%;max-width:33.3333333333%}}@media (min-width: 992px){.container,.container-lg,.container-fluid{--grid-margin:var(--grid-tablet-margin)}.row{--grid-gutter:var(--grid-tablet-gutter)}.container{--grid-maxwidth:calc(var(--grid-breakpoint-md) - var(--grid-tablet-margin))}}@media (min-width: 1280px){.container,.container-lg,.container-fluid{--grid-margin:var(--grid-desktop-margin)}.row{--grid-gutter:var(--grid-desktop-gutter)}.container,.container-lg{--grid-maxwidth:calc(var(--grid-breakpoint-lg) - var(--grid-desktop-margin))}.col-lg-3{flex-basis:25%;max-width:25%}}@media (min-width: 1600px){.container,.container-lg,.container-fluid{--grid-margin:var(--grid-tv-margin)}.row{--grid-gutter:var(--grid-tv-gutter)}.container,.container-lg{--grid-maxwidth:calc(var(--grid-breakpoint-xl) - var(--grid-tv-margin))}}.ease{animation-timing-function:cubic-bezier(0.25, 0.1, 0.25, 1)}.ease-out{animation-timing-function:cubic-bezier(0, 0, 0.58, 1)}.ease-in-out{animation-timing-function:cubic-bezier(0.42, 0, 0.58, 1)}.fast{animation-duration:var(--duration-fast)}.slow{animation-duration:var(--duration-slow)}.mt-1{margin-top:var(--spacing-scale-half) !important}.mr-1{margin-right:var(--spacing-scale-half) !important}.mb-1{margin-bottom:var(--spacing-scale-half) !important}.ml-1{margin-left:var(--spacing-scale-half) !important}.mb-4{margin-bottom:var(--spacing-scale-3x) !important}.pt-half{padding-top:var(--spacing-scale-half) !important}.highlight{background:var(--status-highlight-background) linear-gradient(var(--status-highlight-overlay), var(--status-highlight-overlay));color:var(--status-highlight-text);padding:0 var(--spacing-scale-half)}[disabled],.disabled{cursor:not-allowed;opacity:var(--disabled)}[disabled] *,.disabled *{pointer-events:none}fieldset[disabled]{opacity:1}.text-center{text-align:center !important}.text-right{text-align:right !important}.text-nowrap{white-space:nowrap !important}.text-uppercase{text-transform:uppercase !important}.text-bold{font-weight:700 !important}.text-base{font-size:var(--font-size-scale-base) !important}.text-down-01{font-size:var(--font-size-scale-down-01) !important}@media (min-width: 576px){.text-sm-center{text-align:center !important}.text-sm-left{text-align:left !important}.text-sm-right{text-align:right !important}}p{color:var(--color);font-size:var(--font-size-scale-base);font-weight:var(--font-weight-regular);line-height:var(--font-line-height-medium);margin-bottom:var(--spacing-scale-2x);margin-top:0}p a{text-decoration:underline}@media (min-width: 576px){p{font-size:var(--font-size-scale-up-01)}}a{--focus-offset:var(--spacing-scale-half)}a:focus{outline:none}a.focus-visible,a:focus-visible{outline-color:var(--focus);outline-offset:var(--focus-offset);outline-style:var(--focus-style);outline-width:var(--focus-width)}a:not(:disabled):hover{background-image:linear-gradient(rgba(var(--interactive-rgb), var(--hover)), rgba(var(--interactive-rgb), var(--hover)))}a:not(:disabled):active{background-image:linear-gradient(rgba(var(--interactive-rgb), var(--pressed)), rgba(var(--interactive-rgb), var(--pressed)))}a{color:var(--interactive);text-decoration:none}.main-content a{text-decoration:underline}button{cursor:pointer}img{max-width:100%;vertical-align:middle}h2,.h2{color:var(--color);font-size:var(--font-size-scale-up-03);font-weight:var(--font-weight-semi-bold);line-height:var(--font-line-height-low);margin-bottom:var(--spacing-scale-2xh);margin-top:var(--spacing-scale-3xh);padding-bottom:var(--spacing-scale-2xh)}@media (min-width: 576px){.h2,h2{font-size:var(--font-size-scale-up-05);font-weight:var(--font-weight-regular)}}ul,ol{margin-bottom:var(--spacing-scale-2x);margin-top:0;padding:0 0 0 var(--spacing-scale-5x)}table{--table-background:var(--background);--table-color:var(--color);--table-border-color:var(--gray-20);--table-border-style:solid;--table-border-width:1px;--table-hover:var(--color-rgb);--table-padding:var(--spacing-scale-3x);--table-font-weight:var(--font-weight-medium);--table-th-background:var(--background-alternative);--table-th-font-weight:var(--font-weight-semi-bold);--table-row-size:var(--spacing-scale-2x);border-collapse:collapse;width:100%}tr.selected,tr.is-selected{--color:var(--color-dark);--color-rgb:var(--color-dark-rgb);--text-color:var(--color-dark);--interactive:var(--interactive-dark);--interactive-rgb:var(--interactive-dark-rgb);--visited:var(--visited-dark);--hover:var(--hover-dark);--pressed:var(--pressed-dark);--focus-color:var(--focus-color-dark);--focus:var(--focus-color-dark)}label,.label{color:var(--color);font-size:var(--font-size-scale-base);font-weight:var(--font-weight-semi-bold);line-height:var(--font-line-height-medium);margin-bottom:var(--spacing-scale-half)}fieldset,.fieldset{border:var(--surface-width-none);margin-bottom:var(--spacing-scale-5x);margin-top:0;padding:0}legend,.legend{color:var(--color);font-size:var(--font-size-scale-up-01);font-weight:var(--font-weight-semi-bold);line-height:var(--font-line-height-low);margin-bottom:var(--spacing-scale-2x);margin-top:var(--spacing-scale-2x)}::placeholder,.placeholder{color:var(--color-light);font-size:var(--font-size-scale-base);font-style:italic;font-weight:var(--font-weight-regular);line-height:var(--font-line-height-medium);margin-bottom:var(--spacing-scale-half);margin-top:var(--spacing-scale-half);opacity:1}input,textarea,.input{color:var(--color-light);font-size:var(--font-size-scale-up-01);font-weight:var(--font-weight-medium);line-height:var(--font-line-height-low);margin-bottom:var(--spacing-scale-half)}pre,.pre{background:var(--gray-5);margin:var(--spacing-scale-2x) 0 var(--spacing-scale-4x);padding:var(--spacing-scale-2x)}mark,.mark{background:var(--red-warm-vivid-10);color:var(--color)}*[data-toggle=collapse]:not(:disabled):hover{background-image:linear-gradient(rgba(var(--interactive-rgb), var(--hover)), rgba(var(--interactive-rgb), var(--hover)))}*[data-toggle=collapse]:focus{outline:none}*[data-toggle=collapse].focus-visible,*[data-toggle=collapse]:focus-visible{outline-color:var(--focus);outline-offset:var(--focus-offset);outline-style:var(--focus-style);outline-width:var(--focus-width)}@media (prefers-reduced-motion: reduce){:host,:host::before,:host::after,:host *,:host *::before,:host *::after{animation:none !important;scroll-behavior:auto !important;transition:none !important}}:host-context([data-wbc-reduced-motion=true])::before,:host-context([data-wbc-reduced-motion=true])::after,:host-context([data-wbc-reduced-motion=true]) *,:host-context([data-wbc-reduced-motion=true]) *::before,:host-context([data-wbc-reduced-motion=true]) *::after{animation:none !important;scroll-behavior:auto !important;transition:none !important}.br-input{--input-button-margin:var(--spacing-scale-half);--input-padding:0 var(--spacing-scale-2x);--input-padding-button:var(--spacing-scale-5x);--input-padding-icon:var(--spacing-scale-5x);--input-size:var(--input-medium);--input-small:32px;--input-medium:40px;--input-large:48px;--input-highlight:56px;--color:var(--color-light);--color-rgb:var(--color-light-rgb);--text-color:var(--color-light);--interactive:var(--interactive-light);--interactive-rgb:var(--interactive-light-rgb);--visited:var(--visited-light);--hover:var(--hover-light);--pressed:var(--pressed-light);--focus-color:var(--focus-color-light);--focus:var(--focus-color-light);color:var(--color);position:relative}.br-input input{background-color:var(--background-light);border-color:var(--border-color-alternative);border-radius:var(--surface-rounder-sm);border-style:var(--border-style);border-width:var(--border-width);color:var(--color-light);display:block;font-size:var(--font-size-scale-up-01);font-weight:var(--font-weight-medium);height:var(--input-size);margin-top:var(--spacing-scale-half);padding-bottom:0;padding-left:var(--spacing-scale-2x);padding-right:var(--spacing-scale-2x);padding-top:0;width:100%}.br-input input::-ms-reveal,.br-input input::-ms-clear,.br-input input::-webkit-calendar-picker-indicator{display:none}.br-input input[type=search]::-webkit-search-decoration,.br-input input[type=search]::-webkit-search-cancel-button,.br-input input[type=search]::-webkit-search-results-button,.br-input input[type=search]::-webkit-search-results-decoration{appearance:none}.br-input.input-inline{display:flex}.br-input.input-inline .input-label{margin-right:var(--spacing-scale-baseh);margin-top:calc(var(--input-size)*.5 - var(--spacing-scale-half))}.br-input.input-inline .input-content{flex:1}.br-input .input-group{position:relative}.br-input .input-icon{align-items:center;color:var(--border-color-alternative);display:flex;height:var(--input-size);margin-left:var(--spacing-scale-baseh);position:absolute}.br-input .input-icon+input{padding-left:var(--input-padding-icon)}.br-input .br-button{--button-size:var(--button-small);--color:var(--color-light);--color-rgb:var(--color-light-rgb);--text-color:var(--color-light);--interactive:var(--interactive-light);--interactive-rgb:var(--interactive-light-rgb);--visited:var(--visited-light);--hover:var(--hover-light);--pressed:var(--pressed-light);--focus-color:var(--focus-color-light);--focus:var(--focus-color-light);border-radius:50%;float:right;margin-right:var(--input-button-margin);margin-top:calc((var(--input-size) + var(--spacing-scale-half))*-1);padding:0;position:relative;transform:translateY(calc((var(--input-size) - var(--button-size)) * 0.5));width:var(--button-size)}.br-input.input-button input{padding-right:var(--input-padding-button)}.br-input.input-highlight{--input-button-margin:var(--spacing-scale-2x);--input-padding:0 var(--spacing-scale-3x);--input-padding-button:var(--spacing-scale-7x);--input-padding-icon:var(--spacing-scale-7x);--input-size:var(--input-highlight)}.br-input.input-highlight input{background-color:var(--gray-2);border-color:rgba(0,0,0,0);padding-left:var(--spacing-scale-3x);padding-right:var(--spacing-scale-3x)}.br-input.input-highlight .input-icon{margin-left:var(--spacing-scale-3x)}.br-input.input-highlight .input-icon+input{padding-left:var(--spacing-scale-7x)}.br-input .br-list{box-shadow:var(--surface-shadow-md);max-height:530px;overflow:auto;position:absolute;width:100%;z-index:var(--z-index-layer-2)}.br-input .br-list::-webkit-scrollbar{height:var(--spacing-scale-base);width:var(--spacing-scale-base)}.br-input .br-list::-webkit-scrollbar-track{background:var(--gray-10)}.br-input .br-list::-webkit-scrollbar-thumb{background:var(--gray-30)}.br-input .br-list:hover::-webkit-scrollbar-thumb{background:var(--gray-40)}.br-input .br-list .br-item{--item-padding-y:var(--spacing-scale-2x)}.br-input .br-list .br-item:not(:disabled):hover{background-image:linear-gradient(rgba(var(--color-rgb), var(--hover)), rgba(var(--color-rgb), var(--hover)))}.br-input .br-list .br-item:not(:first-child){border-top:var(--surface-width-sm) solid var(--border-color)}.br-input.success input{border-color:var(--success);border-width:2px}.br-input.danger input{border-color:var(--danger);border-width:2px}.br-input.warning input{border-color:var(--warning);border-width:2px}.br-input.info input{border-color:var(--info);border-width:2px}.br-input input:not(:disabled):hover{background-image:linear-gradient(rgba(var(--color-rgb), var(--hover)), rgba(var(--color-rgb), var(--hover)))}.br-input input:focus,.br-input input:focus-visible,.br-input input.focus-visible{border-color:var(--focus) !important;box-shadow:0 0 0 var(--surface-width-md) var(--focus);outline:none}.br-input .feedback{margin-bottom:var(--spacing-scale-half)}.br-input.small{--input-size:var(--input-small)}.br-input.medium{--input-size:var(--input-medium)}.br-input.large{--input-size:var(--input-large)}.br-input.inverted,.br-input.inverted label,.br-input.dark-mode,.br-input.dark-mode label{--color:var(--color-dark);--focus-color:var(--focus-color-dark)}:host{box-sizing:border-box;display:block;margin-bottom:var(--br-input-margin-bottom, var(--spacing-scale-base));max-width:100%;width:100%}:host .br-input .input-icon{margin:var(--spacing-scale-half) var(--spacing-scale-2x) 0}:host .br-input .input-icon+input{padding-left:var(--spacing-scale-6x)}:host([disabled]){opacity:1 !important}.br-input input::placeholder{font-size:var(--input-placeholder-font-size, inherit)}.br-input input[type=color]{width:100%;height:var(--input-size);padding:var(--spacing-scale-half);cursor:pointer}.br-input input[type=color]::-webkit-color-swatch-wrapper{padding:0;display:flex;align-items:center}.br-input input[type=color]::-webkit-color-swatch{border:1px solid var(--border-color-alternative);border-radius:calc(var(--surface-rounder-sm) - 2px);width:calc(var(--input-size) - var(--spacing-scale-2x));height:100%;box-sizing:border-box}.br-input input[type=color]::-moz-color-swatch{border:1px solid var(--border-color-alternative);border-radius:calc(var(--surface-rounder-sm) - 2px);width:calc(var(--input-size) - var(--spacing-scale-2x));height:100%;box-sizing:border-box}.br-input br-button{float:right;margin-right:var(--input-button-margin);margin-top:calc((var(--input-size) + var(--spacing-scale-half))*-1);padding:0;position:relative}.br-input br-button.button-transform{transform:translateY(calc((var(--input-size) - 32px) * 0.5))}.br-input .input-label{margin-top:0 !important}.br-input.input-clear input{padding-right:var(--input-padding-button)}.br-input.input-clear.input-button input{padding-right:calc(var(--input-padding-button)*2)}.br-input.input-clear.input-button br-button.clear-button{margin-right:var(--input-padding-button)}.br-input.input-inline{display:flex;align-items:flex-start}.br-input.input-inline .input-label{display:flex;align-items:center;min-height:var(--input-size)}:host([borderless]) .br-input input{border-color:rgba(0,0,0,0)}:host([borderless]) .br-input input:focus,:host([borderless]) .br-input input:focus-visible{border-color:var(--border-color-alternative)}::slotted([slot=feedback]){display:none}::slotted(br-message[hidden]){display:none !important}:host([state]) ::slotted([slot=feedback]){display:block}`;
15
+
16
+ const INPUT_STATES = ['info', 'warning', 'danger', 'success'];
17
+ const INPUT_AUTOCOMPLETE_VALUES = ['on', 'off'];
18
+ const INPUT_TYPES = [
19
+ 'color',
20
+ 'email',
21
+ 'hidden',
22
+ 'password',
23
+ 'range',
24
+ 'search',
25
+ 'number',
26
+ 'tel',
27
+ 'text',
28
+ 'url',
29
+ ];
30
+ const Input = class {
31
+ constructor(hostRef) {
32
+ registerInstance(this, hostRef);
33
+ this.valueChange = createEvent(this, "valueChange", 7);
34
+ this.brClear = createEvent(this, "brClear", 7);
35
+ this.brInputActionClick = createEvent(this, "brInputActionClick", 6);
36
+ this.brInputValidationChange = createEvent(this, "brInputValidationChange", 7);
37
+ if (hostRef.$hostElement$["s-ei"]) {
38
+ this.elementInternals = hostRef.$hostElement$["s-ei"];
39
+ }
40
+ else {
41
+ this.elementInternals = hostRef.$hostElement$.attachInternals();
42
+ hostRef.$hostElement$["s-ei"] = this.elementInternals;
43
+ }
44
+ this.formDisabled = false;
45
+ this.hasActionSlot = false;
46
+ this.hasFeedbackSlot = false;
47
+ this.hasValidationLoadingSlot = false;
48
+ this.hasIconSlot = false;
49
+ this.isValidating = false;
50
+ this.validatorMessage = null;
51
+ this.isPasswordVisible = false;
52
+ /**
53
+ * Especifica o tipo de entrada do campo.
54
+ */
55
+ this.type = 'text';
56
+ /**
57
+ * Ajusta a densidade, alterando o espaçamento interno para um visual mais compacto ou mais expandido.
58
+ * Aceita `small`, `medium` ou `large`. Valores inválidos usam `medium`.
59
+ */
60
+ this.density = 'medium';
61
+ /**
62
+ * Desativa o input, tornando-o não interativo.
63
+ */
64
+ this.disabled = false;
65
+ /**
66
+ * Se verdadeiro, o rótulo e o input estarão na mesma linha (layout inline).
67
+ * @deprecated Use `inline`.
68
+ */
69
+ this.isInline = false;
70
+ /**
71
+ * Se verdadeiro, o input terá destaque visual.
72
+ * @deprecated Use `highlight`.
73
+ */
74
+ this.isHighlight = false;
75
+ /** Nome acessível usado quando não há um rótulo visual. */
76
+ this.ariaLabel = null;
77
+ /**
78
+ * Identificador único.
79
+ * Caso não seja fornecido, um ID gerado automaticamente será usado.
80
+ */
81
+ this.customId = generateUniqueId('br-input');
82
+ /**
83
+ * Se verdadeiro, o valor do input é exibido, mas não pode ser editado pelo usuário.
84
+ */
85
+ this.readonly = false;
86
+ /**
87
+ * Se verdadeiro, o input é obrigatório e deve ser preenchido antes que o formulário possa ser enviado.
88
+ */
89
+ this.required = false;
90
+ /**
91
+ * Valor exibido no input.
92
+ * Pode ser alterado pelo usuário se a propriedade `readonly` não estiver ativa.
93
+ */
94
+ this.value = '';
95
+ /**
96
+ * Remove a borda do input quando não está em foco.
97
+ * Útil para composições contextuais (ex.: paginação).
98
+ */
99
+ this.borderless = false;
100
+ /**
101
+ * Controla a correção automática do texto.
102
+ */
103
+ this.autocorrect = 'off';
104
+ /**
105
+ * Se verdadeiro, permite a entrada de múltiplos e-mails (quando type="email").
106
+ */
107
+ this.multiple = false;
108
+ /**
109
+ * Exibe um botão para limpar o texto enquanto o campo tem valor e aceita edição.
110
+ * O botão fica à esquerda do botão de ação, quando houver. Ao ser acionado,
111
+ * limpa o valor, emite `input` uma única vez e `brClear`, e devolve o foco ao campo.
112
+ * Não é exibido com `disabled` ou `readonly`.
113
+ * @default false
114
+ */
115
+ this.clearable = false;
116
+ this.initialValue = '';
117
+ this.manualValidationMessage = '';
118
+ this.validationRunId = 0;
119
+ /**
120
+ * Manipula o evento de input, aplicando máscara se necessário e emitindo o valor atualizado.
121
+ * @param event Evento de input do elemento HTMLInputElement
122
+ */
123
+ this.handleInput = (event) => {
124
+ const inputElement = event.target;
125
+ let nextValue = inputElement.value ?? '';
126
+ if (this.hasMaskConfigured()) {
127
+ const maskedValue = this.applyMask(nextValue);
128
+ if (maskedValue !== nextValue) {
129
+ inputElement.value = maskedValue;
130
+ }
131
+ nextValue = maskedValue;
132
+ }
133
+ this.nativeValueUpdate = true;
134
+ try {
135
+ this.value = nextValue;
136
+ }
137
+ finally {
138
+ this.nativeValueUpdate = false;
139
+ }
140
+ this.valueChange.emit(this.value);
141
+ redispatchNativeFormEvent(this.el, event, 'input');
142
+ };
143
+ this.handleChange = (event) => {
144
+ redispatchNativeFormEvent(this.el, event, 'change');
145
+ void this.validate();
146
+ };
147
+ /**
148
+ * Renderiza o rótulo do input, considerando se está em modo inline ou não.
149
+ * @returns JSX.Element representando o rótulo do input.
150
+ */
151
+ this.renderLabel = () => {
152
+ if (typeof this.label === 'string' && this.label.length > 0) {
153
+ if (this.inline ?? this.isInline) {
154
+ return (h("div", { class: "input-label" }, h("label", { part: "label", class: "text-nowrap", htmlFor: this.customId }, this.label)));
155
+ }
156
+ else {
157
+ return (h("label", { part: "label", htmlFor: this.customId }, this.label));
158
+ }
159
+ }
160
+ };
161
+ this.handleSlotChange = (event) => {
162
+ const slot = event.currentTarget;
163
+ const hasContent = hasAssignedSlotContent(slot);
164
+ switch (slot.name) {
165
+ case 'action':
166
+ this.hasActionSlot = hasContent;
167
+ break;
168
+ case 'feedback':
169
+ this.hasFeedbackSlot = hasContent;
170
+ this.propagateStateToFeedback();
171
+ break;
172
+ case 'icon':
173
+ this.hasIconSlot = hasContent;
174
+ break;
175
+ case 'validation-loading':
176
+ this.hasValidationLoadingSlot = hasContent;
177
+ break;
178
+ }
179
+ };
180
+ this.nativeValueUpdate = false;
181
+ /**
182
+ * Reproduz a submissão implícita do `<input>` nativo: o campo interno fica no
183
+ * Shadow DOM e não pertence ao `<form>` do documento. Segue o botão padrão do
184
+ * formulário (o primeiro com `type="submit"`, inclusive `br-button`): se ele
185
+ * estiver desabilitado, não há envio. A submissão ocorre depois do despacho da
186
+ * tecla, para respeitar `preventDefault()` do consumidor e não ativar o elemento
187
+ * que receber o foco durante o envio.
188
+ */
189
+ this.handleKeyDown = (event) => {
190
+ if (event.key !== 'Enter' || event.isComposing || event.altKey || event.ctrlKey || event.metaKey)
191
+ return;
192
+ const form = this.elementInternals?.form;
193
+ if (!form || this.isDisabled())
194
+ return;
195
+ setTimeout(() => {
196
+ if (!event.defaultPrevented)
197
+ submitImplicitly(form);
198
+ });
199
+ };
200
+ this.renderInput = () => {
201
+ return (h("input", { part: "input", "aria-label": this.ariaLabel || null, "aria-describedby": [
202
+ this.helpText ? `${this.customId}-help` : '',
203
+ this.hasFeedbackSlot || this.validatorMessage ? `${this.customId}-feedback` : '',
204
+ ]
205
+ .filter(Boolean)
206
+ .join(' ') || null, "aria-errormessage": (this.hasFeedbackSlot || this.validatorMessage) && this.internalState === 'danger'
207
+ ? `${this.customId}-feedback`
208
+ : null, "aria-busy": this.isValidating ? 'true' : null, ref: (el) => (this.nativeInput = el), class: (this.highlight ?? this.isHighlight) ? 'input-highlight' : null, id: this.customId, style: this.controlWidth != null ? { width: this.controlWidth } : undefined, autocomplete: this.effectiveAutocomplete, disabled: this.isDisabled(), autoCorrect: this.autocorrect, min: this.effectiveMin, max: this.effectiveMax, minLength: this.effectiveMinLength, maxLength: this.effectiveMaxLength, multiple: this.multiple, name: this.name, pattern: this.pattern, step: this.effectiveStep, onInput: this.handleInput, onChange: this.handleChange, onKeyDown: this.handleKeyDown, placeholder: this.placeholder, readonly: this.readonly, required: this.required, title: this.el.title, type: this.effectiveType, value: this.value }));
209
+ };
210
+ /**
211
+ * Renderiza o texto de ajuda do input, considerando se está definido como string ou slot.
212
+ * @returns JSX.Element representando o texto de ajuda.
213
+ */
214
+ this.renderHelpText = () => {
215
+ return typeof this.helpText === 'string' && this.helpText.length > 0 ? (h("p", { id: `${this.customId}-help`, part: "help-text" }, this.helpText)) : (h("span", { part: "help-text" }, h("slot", { name: "help-text", onSlotchange: this.handleSlotChange })));
216
+ };
217
+ /**
218
+ * Renderiza o ícone de visibilidade da senha, alternando entre mostrar e esconder.
219
+ * @returns JSX.Element representando o ícone de visibilidade da senha.
220
+ */
221
+ this.renderIconPassword = () => {
222
+ const iconName = this.isPasswordVisible ? 'fa-solid:eye-slash' : 'fa-solid:eye';
223
+ return h("br-icon", { iconName: iconName, width: "16", height: "16" });
224
+ };
225
+ /**
226
+ * Alterna a visibilidade da senha, mudando o tipo do input entre 'text' e 'password'.
227
+ * @returns void
228
+ */
229
+ this.togglePasswordVisibility = () => {
230
+ const input = this.el.shadowRoot?.querySelector('input');
231
+ if (input === null || input === undefined) {
232
+ return;
233
+ }
234
+ this.isPasswordVisible = !this.isPasswordVisible;
235
+ input.type = this.isPasswordVisible ? 'text' : 'password';
236
+ };
237
+ /** Mantém o foco no campo ao clicar no botão de limpar, como o "x" de um campo de busca nativo. */
238
+ this.keepInputFocus = (event) => {
239
+ event.preventDefault();
240
+ };
241
+ this.handleClearClick = () => {
242
+ if (!this.isClearButtonVisible())
243
+ return;
244
+ this.nativeValueUpdate = true;
245
+ try {
246
+ this.value = '';
247
+ }
248
+ finally {
249
+ this.nativeValueUpdate = false;
250
+ }
251
+ if (this.nativeInput)
252
+ this.nativeInput.value = '';
253
+ this.valueChange.emit('');
254
+ dispatchNativeFormEvent(this.el, 'input');
255
+ this.brClear.emit();
256
+ this.nativeInput?.focus();
257
+ };
258
+ this.handleActionClick = (event) => {
259
+ if (this.isDisabled())
260
+ return;
261
+ this.brInputActionClick.emit({ originalEvent: event });
262
+ };
263
+ /**
264
+ * Renderiza o conteúdo do input quando está em linha, considerando se há ícone ou não.
265
+ * @returns JSX.Element representando o conteúdo do input em linha.
266
+ */
267
+ this.renderInlineInputContent = () => {
268
+ if (this.hasIconSlot) {
269
+ return h("div", { class: "input-content" }, this.renderInputWithIcon());
270
+ }
271
+ else {
272
+ return h("div", { class: "input-content" }, this.renderInputWithoutIcon());
273
+ }
274
+ };
275
+ /**
276
+ * Renderiza o conteúdo do input, considerando se há ícone ou não.
277
+ * @returns JSX.Element representando o conteúdo do input.
278
+ */
279
+ this.renderInputContent = () => {
280
+ return this.hasIconSlot ? this.renderInputWithIcon() : this.renderInputWithoutIcon();
281
+ };
282
+ /**
283
+ * Renderiza o conteúdo do input com ícone, organizando os elementos em um grupo e aplicando estilos de largura quando necessário.
284
+ */
285
+ this.renderInputWithIcon = () => {
286
+ return (h("div", { class: "input-group", part: "group", style: this.controlWidth !== undefined && this.controlWidth !== null ? { width: this.controlWidth } : undefined }, this.renderIconSlot(), this.renderInput(), this.renderButton(), this.renderClearButton(), this.renderHelpText()));
287
+ };
288
+ /**
289
+ * Renderiza o conteúdo do input sem ícone, organizando os elementos em um grupo.
290
+ * @returns JSX.Element representando o conteúdo do input sem ícone.
291
+ */
292
+ this.renderInputWithoutIcon = () => {
293
+ return [this.renderInput(), this.renderButton(), this.renderClearButton(), this.renderHelpText()];
294
+ };
295
+ }
296
+ formDisabledCallback(disabled) {
297
+ this.formDisabled = disabled;
298
+ }
299
+ formResetCallback() {
300
+ this.validationRunId++;
301
+ this.validatorMessage = null;
302
+ this.isValidating = false;
303
+ this.manualValidationMessage = '';
304
+ this.value = this.initialValue;
305
+ if (this.nativeInput) {
306
+ this.nativeInput.value = this.initialValue;
307
+ this.nativeInput.setCustomValidity('');
308
+ }
309
+ this.syncFormState(this.initialValue);
310
+ }
311
+ formStateRestoreCallback(state) {
312
+ const restoredValue = typeof state === 'string' ? state : '';
313
+ this.value = restoredValue;
314
+ if (this.nativeInput) {
315
+ this.nativeInput.value = restoredValue;
316
+ }
317
+ this.syncFormState(restoredValue);
318
+ }
319
+ handleValueChange(newValue) {
320
+ this.validationRunId++;
321
+ this.validatorMessage = null;
322
+ if (this.state === undefined && this.feedbackState === undefined)
323
+ this.internalState = undefined;
324
+ this.syncFormState(newValue ?? '');
325
+ if (this.nativeValueUpdate) {
326
+ this.updateValidity();
327
+ }
328
+ if (!this.hasMaskConfigured()) {
329
+ return;
330
+ }
331
+ const maskedValue = this.applyMask(newValue ?? '');
332
+ if (maskedValue !== newValue) {
333
+ this.value = maskedValue;
334
+ }
335
+ }
336
+ handleMaskChange() {
337
+ this.applyMaskToValue();
338
+ }
339
+ handleStateChange() {
340
+ if (this.feedbackState === undefined)
341
+ this.updateInternalState();
342
+ }
343
+ handleFeedbackStateChange() {
344
+ this.updateInternalState();
345
+ }
346
+ updateInternalState() {
347
+ this.internalState = this.effectiveState;
348
+ // 🔥 novo comportamento centralizado
349
+ this.propagateStateToFeedback();
350
+ }
351
+ componentWillLoad() {
352
+ this.syncSlotState();
353
+ this.initialValue = this.value ?? '';
354
+ this.internalState = this.effectiveState;
355
+ this.applyMaskToValue();
356
+ this.syncFormState();
357
+ }
358
+ componentDidLoad() {
359
+ this.updateValidity();
360
+ if (this.el.hasAttribute('autofocus'))
361
+ this.el.focus();
362
+ if (this.hasFeedbackSlot) {
363
+ this.propagateStateToFeedback();
364
+ }
365
+ if (typeof MutationObserver !== 'undefined') {
366
+ this.slotContentObserver = new MutationObserver(() => this.syncSlotState());
367
+ this.slotContentObserver.observe(this.el, {
368
+ attributes: true,
369
+ attributeFilter: ['slot'],
370
+ childList: true,
371
+ });
372
+ }
373
+ }
374
+ disconnectedCallback() {
375
+ this.slotContentObserver?.disconnect();
376
+ this.slotContentObserver = undefined;
377
+ }
378
+ componentDidUpdate() {
379
+ // Constraints e valores recebidos antes dos watchers também precisam refletir o DOM atualizado.
380
+ this.syncFormState();
381
+ this.updateValidity();
382
+ }
383
+ componentShouldUpdate(newValue, oldValue, propName) {
384
+ if (propName !== 'value' || !this.nativeValueUpdate)
385
+ return true;
386
+ // A digitação não re-renderiza, exceto quando o botão de limpar precisa aparecer ou sumir.
387
+ return this.clearable && Boolean(newValue) !== Boolean(oldValue);
388
+ }
389
+ componentDidRender() {
390
+ this.syncCssPartAttributes();
391
+ this.applyComboboxState();
392
+ }
393
+ /**
394
+ * Retorna `true` se o valor do input for válido, caso contrário `false`.
395
+ * Se o input for inválido, exibe uma mensagem de erro padrão do navegador.
396
+ */
397
+ async reportValidity() {
398
+ return this.elementInternals?.reportValidity?.() ?? true;
399
+ }
400
+ /**
401
+ * Define uma mensagem de validação customizada para o input.
402
+ * Se a mensagem for uma string vazia, o erro customizado é limpo.
403
+ *
404
+ * @param message - Mensagem de erro customizada ou string vazia para limpar
405
+ * @example
406
+ * ```typescript
407
+ * const input = document.querySelector('br-input');
408
+ *
409
+ * // Define erro customizado
410
+ * await input.setCustomValidity('CPF inválido');
411
+ *
412
+ * // Limpa o erro
413
+ * await input.setCustomValidity('');
414
+ * ```
415
+ */
416
+ async setCustomValidity(message) {
417
+ this.manualValidationMessage = message;
418
+ this.updateValidity();
419
+ }
420
+ resolveValidator() {
421
+ return resolveFormValidator(this.validator);
422
+ }
423
+ async runValidator(validatorFn) {
424
+ try {
425
+ return (await validatorFn(this.value ?? '')) || null;
426
+ }
427
+ catch {
428
+ return 'Não foi possível validar o campo.';
429
+ }
430
+ }
431
+ /**
432
+ * Executa a regra customizada e retorna se o campo está válido.
433
+ * Se o validator for assíncrono, aguarda a resposta e ignora resultados
434
+ * antigos quando uma execução posterior já começou.
435
+ */
436
+ async validate() {
437
+ const validatorFn = this.resolveValidator();
438
+ if (validatorFn == null || this.isDisabled())
439
+ return this.checkValidity();
440
+ const runId = ++this.validationRunId;
441
+ this.isValidating = true;
442
+ this.validatorMessage = null;
443
+ if (this.state === undefined && this.feedbackState === undefined)
444
+ this.internalState = undefined;
445
+ this.updateValidity();
446
+ this.brInputValidationChange.emit({ validating: true, valid: null, message: null });
447
+ await Promise.resolve();
448
+ const message = await this.runValidator(validatorFn);
449
+ if (runId !== this.validationRunId)
450
+ return false;
451
+ this.validatorMessage = message;
452
+ this.isValidating = false;
453
+ if (this.state === undefined && this.feedbackState === undefined) {
454
+ this.internalState = message ? 'danger' : undefined;
455
+ }
456
+ if (message) {
457
+ const feedbackMessage = this.el.shadowRoot?.querySelector('br-message');
458
+ if (feedbackMessage)
459
+ feedbackMessage.message = message;
460
+ }
461
+ this.updateValidity();
462
+ const valid = message === null && (await this.checkValidity());
463
+ this.brInputValidationChange.emit({ validating: false, valid, message });
464
+ return valid;
465
+ }
466
+ /**
467
+ * Retorna `true` se o valor do input for válido, caso contrário `false`.
468
+ * Se o input for inválido, dispara um evento 'invalid'.
469
+ */
470
+ async checkValidity() {
471
+ return this.elementInternals?.checkValidity?.() ?? true;
472
+ }
473
+ /** Retorna um snapshot serializável da Constraint Validation API. */
474
+ async getValidationState() {
475
+ return getFormValidationState(this.elementInternals);
476
+ }
477
+ /** Seleciona todo o texto do controle nativo, conforme HTMLInputElement.select(). */
478
+ async select() {
479
+ this.nativeInput?.select();
480
+ }
481
+ /** Substitui um intervalo de texto usando a API nativa do input. */
482
+ async setRangeText(replacement, start, end, selectionMode) {
483
+ if (!this.nativeInput)
484
+ return;
485
+ if (start === undefined || end === undefined) {
486
+ this.nativeInput.setRangeText(replacement);
487
+ this.syncProgrammaticValue();
488
+ return;
489
+ }
490
+ this.nativeInput.setRangeText(replacement, start, end, selectionMode);
491
+ this.syncProgrammaticValue();
492
+ }
493
+ /** Define o intervalo selecionado no controle nativo. */
494
+ async setSelectionRange(start, end, direction) {
495
+ this.nativeInput?.setSelectionRange(start, end, direction);
496
+ }
497
+ /** Incrementa o valor numérico pelo step nativo. */
498
+ async stepUp(n) {
499
+ this.nativeInput?.stepUp(n);
500
+ this.syncProgrammaticValue();
501
+ }
502
+ /** Decrementa o valor numérico pelo step nativo. */
503
+ async stepDown(n) {
504
+ this.nativeInput?.stepDown(n);
505
+ this.syncProgrammaticValue();
506
+ }
507
+ /** Abre o picker nativo quando o navegador e o tipo do input oferecem essa API. */
508
+ async showPicker() {
509
+ this.nativeInput?.showPicker?.();
510
+ }
511
+ syncProgrammaticValue() {
512
+ if (!this.nativeInput || this.value === this.nativeInput.value)
513
+ return;
514
+ this.value = this.nativeInput.value;
515
+ this.syncFormState(this.value);
516
+ this.updateValidity();
517
+ }
518
+ updateValidity() {
519
+ if (this.nativeInput) {
520
+ this.nativeInput.setCustomValidity(this.manualValidationMessage || this.validatorMessage || '');
521
+ }
522
+ syncNativeFormValidity(this.elementInternals, this.nativeInput);
523
+ }
524
+ normalizeState(value) {
525
+ return normalizePropValue(value, INPUT_STATES, undefined);
526
+ }
527
+ get effectiveType() {
528
+ return resolveAllowedPropValue(this.el, 'type', this.type, INPUT_TYPES, 'text');
529
+ }
530
+ get effectiveAutocomplete() {
531
+ return resolveAllowedPropValue(this.el, 'autocomplete', this.autocomplete, INPUT_AUTOCOMPLETE_VALUES, undefined, { allowUndefined: true });
532
+ }
533
+ get effectiveState() {
534
+ if (this.feedbackState !== undefined) {
535
+ return resolveAllowedPropValue(this.el, 'feedbackState', this.feedbackState, INPUT_STATES, 'info');
536
+ }
537
+ return resolveAllowedPropValue(this.el, 'state', this.state, INPUT_STATES, 'info', {
538
+ allowUndefined: true,
539
+ });
540
+ }
541
+ get effectiveMin() {
542
+ return resolveNumberPropValue(this.el, 'min', this.min, -Number.MAX_VALUE, Number.MAX_VALUE, undefined, {
543
+ allowUndefined: true,
544
+ });
545
+ }
546
+ get effectiveMax() {
547
+ return resolveNumberPropValue(this.el, 'max', this.max, -Number.MAX_VALUE, Number.MAX_VALUE, undefined, {
548
+ allowUndefined: true,
549
+ });
550
+ }
551
+ get effectiveMinLength() {
552
+ return resolveIntegerPropValue(this.el, 'minlength', this.minlength, 0, Number.MAX_SAFE_INTEGER, undefined, { allowUndefined: true });
553
+ }
554
+ get effectiveMaxLength() {
555
+ return resolveIntegerPropValue(this.el, 'maxlength', this.maxlength, 0, Number.MAX_SAFE_INTEGER, undefined, { allowUndefined: true });
556
+ }
557
+ get effectiveStep() {
558
+ return resolvePositiveNumberPropValue(this.el, 'step', this.step, Number.MAX_SAFE_INTEGER, undefined, {
559
+ allowUndefined: true,
560
+ });
561
+ }
562
+ get effectiveActionTabIndex() {
563
+ return resolveIntegerPropValue(this.el, 'actionTabIndex', this.actionTabIndex, -1, Number.MAX_SAFE_INTEGER, undefined, { allowUndefined: true });
564
+ }
565
+ syncCssPartAttributes() {
566
+ if (!this.hasActionSlot)
567
+ return;
568
+ // O botão de limpar tem part próprio (`clear`) e não recebe as parts da ação.
569
+ this.el.shadowRoot
570
+ ?.querySelectorAll('br-button.button-transform:not(.clear-button)')
571
+ .forEach((button) => {
572
+ setPartAttributes(button, 'action', 'button: action-button');
573
+ });
574
+ }
575
+ propagateStateToFeedback() {
576
+ const messageElements = this.el.querySelectorAll('br-message');
577
+ messageElements.forEach((message) => {
578
+ const messageState = this.normalizeState(message.getAttribute('state'));
579
+ if (this.internalState !== undefined && messageState === this.internalState) {
580
+ message.removeAttribute('hidden');
581
+ }
582
+ else {
583
+ message.setAttribute('hidden', 'true');
584
+ }
585
+ });
586
+ }
587
+ /**
588
+ * Retorna um mapa de classes CSS para o input, baseado no estado interno e nas propriedades do componente.
589
+ * @returns Um objeto representando as classes CSS a serem aplicadas ao input.
590
+ */
591
+ getInputCssClassMap() {
592
+ const density = resolveDensity(this.el, this.density);
593
+ return {
594
+ 'br-input': true,
595
+ 'input-button': this.hasActionSlot,
596
+ 'input-clear': this.isClearButtonVisible(),
597
+ small: density === 'small',
598
+ large: density === 'large',
599
+ medium: density === 'medium',
600
+ 'input-inline': this.inline ?? this.isInline,
601
+ 'input-highlight': this.highlight ?? this.isHighlight,
602
+ success: this.internalState === 'success',
603
+ danger: this.internalState === 'danger',
604
+ info: this.internalState === 'info',
605
+ warning: this.internalState === 'warning',
606
+ };
607
+ }
608
+ isDisabled() {
609
+ return isFormControlDisabled(this.disabled, this.formDisabled);
610
+ }
611
+ /**
612
+ * Verifica se um slot específico possui conteúdo.
613
+ * @param slotName Nome do slot a ser verificado
614
+ * @returns true se o slot possui conteúdo, false caso contrário
615
+ */
616
+ hasSlotContent(slotName) {
617
+ return hasNamedLightDomSlot(this.el, slotName);
618
+ }
619
+ syncSlotState() {
620
+ const next = {
621
+ action: this.hasSlotContent('action'),
622
+ feedback: this.hasSlotContent('feedback'),
623
+ icon: this.hasSlotContent('icon'),
624
+ validationLoading: this.hasSlotContent('validation-loading'),
625
+ };
626
+ if (this.hasActionSlot !== next.action)
627
+ this.hasActionSlot = next.action;
628
+ if (this.hasFeedbackSlot !== next.feedback)
629
+ this.hasFeedbackSlot = next.feedback;
630
+ if (this.hasIconSlot !== next.icon)
631
+ this.hasIconSlot = next.icon;
632
+ if (this.hasValidationLoadingSlot !== next.validationLoading) {
633
+ this.hasValidationLoadingSlot = next.validationLoading;
634
+ }
635
+ if (next.feedback)
636
+ this.propagateStateToFeedback();
637
+ }
638
+ syncFormState(value = this.value ?? '') {
639
+ safeSetFormValue(this.elementInternals, value);
640
+ }
641
+ handleComboboxSync(event) {
642
+ this.comboboxState = event.detail;
643
+ this.applyComboboxState();
644
+ }
645
+ // biome-ignore lint/complexity/noExcessiveCognitiveComplexity: sincroniza a representação acessível do combobox em uma única transação.
646
+ applyComboboxState() {
647
+ const state = this.comboboxState;
648
+ const root = this.el.shadowRoot;
649
+ const input = root?.querySelector('input');
650
+ if (!state || !root || !input)
651
+ return;
652
+ // A representação acessível compartilha o escopo de IDs do input nativo.
653
+ // A lista visual virtualizada é aria-hidden no orquestrador.
654
+ if (!this.accessibleList || !root.contains(this.accessibleList)) {
655
+ this.accessibleList = document.createElement('div');
656
+ this.accessibleList.id = 'select-accessible-list';
657
+ this.accessibleList.style.cssText =
658
+ 'position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap;border:0;';
659
+ root.appendChild(this.accessibleList);
660
+ }
661
+ if (!this.accessibleStatus || !root.contains(this.accessibleStatus)) {
662
+ this.accessibleStatus = document.createElement('div');
663
+ this.accessibleStatus.setAttribute('role', 'status');
664
+ this.accessibleStatus.setAttribute('aria-live', 'polite');
665
+ this.accessibleStatus.style.cssText =
666
+ 'position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap;border:0;';
667
+ root.appendChild(this.accessibleStatus);
668
+ }
669
+ if (!this.accessibleDescription || !root.contains(this.accessibleDescription)) {
670
+ this.accessibleDescription = document.createElement('div');
671
+ this.accessibleDescription.id = 'select-accessible-description';
672
+ this.accessibleDescription.style.cssText =
673
+ 'position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap;border:0;';
674
+ root.appendChild(this.accessibleDescription);
675
+ }
676
+ const list = this.accessibleList;
677
+ list.setAttribute('role', 'listbox');
678
+ list.setAttribute('aria-label', state.label);
679
+ list.setAttribute('aria-multiselectable', String(state.multiple));
680
+ list.setAttribute('aria-busy', String(state.loading));
681
+ list.hidden = !state.expanded;
682
+ this.accessibleStatus.textContent =
683
+ state.expanded && state.options.length === 0 ? 'Nenhum resultado encontrado' : '';
684
+ const start = Math.max(0, Math.min(state.activeIndex - 10, state.options.length - 21));
685
+ const end = Math.min(start + 21, state.options.length);
686
+ const desired = new Set();
687
+ const occurrences = new Map();
688
+ let activeId;
689
+ for (let index = 0; index < end; index++) {
690
+ const option = state.options[index];
691
+ // Valores repetidos são distinguidos pelo grupo, rótulo e ordem entre
692
+ // entradas idênticas, sem usar a posição global da opção na coleção.
693
+ const identity = JSON.stringify([option.value, option.group ?? null, option.label ?? null]);
694
+ const occurrence = occurrences.get(identity) ?? 0;
695
+ occurrences.set(identity, occurrence + 1);
696
+ if (index < start)
697
+ continue;
698
+ const encoded = Array.from(identity, (character) => (character.codePointAt(0) ?? 0).toString(36)).join('-');
699
+ const id = `${this.customId}-option-${encoded}-${occurrence}`;
700
+ if (index === state.activeIndex)
701
+ activeId = id;
702
+ desired.add(id);
703
+ let element = Array.from(list.children).find((child) => child.id === id);
704
+ if (!element) {
705
+ element = document.createElement('div');
706
+ element.id = id;
707
+ element.setAttribute('role', 'option');
708
+ }
709
+ element.setAttribute('aria-selected', String(Boolean(option.selected)));
710
+ element.setAttribute('aria-disabled', String(Boolean(option.disabled)));
711
+ element.setAttribute('aria-posinset', String(index + 1));
712
+ element.setAttribute('aria-setsize', String(state.options.length));
713
+ const label = [option.group, option.label ?? option.value].filter(Boolean).join(': ');
714
+ if (element.textContent !== label)
715
+ element.textContent = label;
716
+ const reference = list.children[index - start];
717
+ if (reference !== element)
718
+ list.insertBefore(element, reference ?? null);
719
+ }
720
+ for (const child of Array.from(list.children)) {
721
+ if (!desired.has(child.id))
722
+ child.remove();
723
+ }
724
+ input.setAttribute('role', 'combobox');
725
+ input.setAttribute('aria-label', state.label);
726
+ input.setAttribute('aria-haspopup', 'listbox');
727
+ input.setAttribute('aria-expanded', String(state.expanded));
728
+ input.setAttribute('aria-controls', list.id);
729
+ input.setAttribute('aria-autocomplete', this.readonly ? 'none' : 'list');
730
+ input.setAttribute('aria-required', String(state.required));
731
+ input.setAttribute('aria-invalid', String(state.invalid));
732
+ const description = state.invalid ? state.errorMessage : '';
733
+ this.accessibleDescription.textContent = description;
734
+ const describedBy = new Set((input.getAttribute('aria-describedby') || '').split(/\s+/).filter(Boolean));
735
+ describedBy.delete(this.accessibleDescription.id);
736
+ if (description)
737
+ describedBy.add(this.accessibleDescription.id);
738
+ if (describedBy.size)
739
+ input.setAttribute('aria-describedby', [...describedBy].join(' '));
740
+ else
741
+ input.removeAttribute('aria-describedby');
742
+ if (state.expanded && activeId) {
743
+ input.setAttribute('aria-activedescendant', activeId);
744
+ }
745
+ else {
746
+ input.removeAttribute('aria-activedescendant');
747
+ }
748
+ }
749
+ /**
750
+ * Renderiza o slot de ícone, caso exista.
751
+ * @returns JSX.Element representando o slot de ícone.
752
+ */
753
+ renderIconSlot() {
754
+ if (this.hasSlotContent('icon')) {
755
+ return (h("div", { class: "input-icon", part: "icon" }, h("slot", { name: "icon", onSlotchange: this.handleSlotChange })));
756
+ }
757
+ }
758
+ isClearButtonVisible() {
759
+ return this.clearable && Boolean(this.value) && !this.readonly && !this.isDisabled();
760
+ }
761
+ /**
762
+ * Renderiza o botão de limpar quando `clearable` está ativo e há texto editável.
763
+ * @returns JSX.Element do botão ou `null`.
764
+ */
765
+ renderClearButton() {
766
+ if (!this.isClearButtonVisible())
767
+ return null;
768
+ return (h("br-button", { key: "clear", class: "button-transform clear-button", shape: "circle", density: "small", "aria-label": "Limpar texto", onMouseDown: this.keepInputFocus, onClick: this.handleClearClick, part: "clear" }, h("br-icon", { iconName: "fa-solid:times", width: "16", height: "16", "aria-hidden": "true" })));
769
+ }
770
+ /**
771
+ * Renderiza o botão de ação do input, considerando o tipo de input e slots disponíveis.
772
+ * @returns JSX.Element representando o botão de ação.
773
+ */
774
+ renderButton() {
775
+ if (this.effectiveType === 'password') {
776
+ return (h("br-button", { key: "password", class: "button-transform", shape: "circle", density: "small", "aria-label": this.isPasswordVisible ? 'Esconder senha' : 'Mostrar senha', onClick: this.togglePasswordVisibility, part: "action" }, this.renderIconPassword()));
777
+ }
778
+ else if (this.hasSlotContent('action')) {
779
+ return (h("br-button", { key: "action", class: "button-transform", shape: "circle", density: "small", "aria-label": this.actionLabel, customTabIndex: this.effectiveActionTabIndex, onClick: this.handleActionClick, part: "action" }, h("slot", { name: "action", onSlotchange: this.handleSlotChange })));
780
+ }
781
+ return null;
782
+ }
783
+ /**
784
+ * Renderiza o slot de feedback, caso exista, permitindo que mensagens de feedback sejam exibidas em resposta a interações do usuário com o input.
785
+ * @returns JSX.Element representando o slot de feedback.
786
+ */
787
+ renderFeedback() {
788
+ return (h("span", { id: `${this.customId}-feedback`, part: "feedback", hidden: this.internalState === undefined && !this.validatorMessage && !this.hasFeedbackSlot }, h("slot", { name: "feedback", onSlotchange: this.handleSlotChange }), !this.hasFeedbackSlot && this.validatorMessage ? (h("br-message", { state: "danger", message: this.validatorMessage })) : null));
789
+ }
790
+ renderValidationLoading() {
791
+ if (!this.isValidating)
792
+ return null;
793
+ return this.hasValidationLoadingSlot ? (h("span", { class: "validation-loading", "aria-live": "polite" }, h("slot", { name: "validation-loading", onSlotchange: this.handleSlotChange }))) : (h("span", { class: "validation-loading", "aria-live": "polite" }, h("br-loading", { size: "small", label: "Validando" })));
794
+ }
795
+ /**
796
+ * Aplica a máscara configurada ao valor do input, se houver.
797
+ * @returns void
798
+ */
799
+ applyMaskToValue() {
800
+ if (!this.hasMaskConfigured() || this.value == null) {
801
+ return;
802
+ }
803
+ const maskedValue = this.applyMask(this.value);
804
+ if (this.value !== maskedValue) {
805
+ this.value = maskedValue;
806
+ }
807
+ }
808
+ /**
809
+ * Aplica a máscara configurada a um valor específico.
810
+ * @param value O valor a ser mascarado.
811
+ * @returns O valor mascarado.
812
+ */
813
+ applyMask(value) {
814
+ if (!this.hasMaskConfigured()) {
815
+ return value ?? '';
816
+ }
817
+ const mask = this.mask || '';
818
+ const digits = (value ?? '').replace(/\D/g, '');
819
+ if (digits.length === 0) {
820
+ return '';
821
+ }
822
+ let maskedValue = '';
823
+ let digitIndex = 0;
824
+ for (let i = 0; i < mask.length && digitIndex < digits.length; i++) {
825
+ const maskChar = mask[i];
826
+ if (maskChar === '#') {
827
+ maskedValue += digits[digitIndex];
828
+ digitIndex++;
829
+ }
830
+ else {
831
+ maskedValue += maskChar;
832
+ }
833
+ }
834
+ return maskedValue;
835
+ }
836
+ /**
837
+ * Verifica se uma máscara está configurada.
838
+ * @returns boolean indicando se uma máscara está configurada.
839
+ */
840
+ hasMaskConfigured() {
841
+ return typeof this.mask === 'string' && this.mask.length > 0;
842
+ }
843
+ /**
844
+ * Renderiza o componente de input.
845
+ * @returns JSX.Element representando o componente de input.
846
+ */
847
+ render() {
848
+ return (h(Host, { key: 'f8e512ce62ed261fc8365496cde577cfa89ad357' }, h("div", { key: '0f982af831529124c67c1110007c94060a551b26', class: this.getInputCssClassMap(), part: "container" }, this.renderLabel(), (this.inline ?? this.isInline) ? this.renderInlineInputContent() : this.renderInputContent(), this.renderFeedback(), this.renderValidationLoading())));
849
+ }
850
+ static get delegatesFocus() { return true; }
851
+ static get formAssociated() { return true; }
852
+ get el() { return getElement(this); }
853
+ static get watchers() { return {
854
+ "value": [{
855
+ "handleValueChange": 0
856
+ }],
857
+ "mask": [{
858
+ "handleMaskChange": 0
859
+ }],
860
+ "state": [{
861
+ "handleStateChange": 0
862
+ }],
863
+ "feedbackState": [{
864
+ "handleFeedbackStateChange": 0
865
+ }]
866
+ }; }
867
+ };
868
+ Input.style = inputCss();
869
+
870
+ const loadingCss = () => `*,*::before,*::after{box-sizing:border-box}:host{line-height:var(--font-line-height-medium);-webkit-text-size-adjust:100%;-moz-text-size-adjust:100%;text-size-adjust:100%}main{display:block}hr{box-sizing:content-box;height:0;overflow:visible}pre{font-family:monospace;font-size:1em}a{background-color:rgba(0,0,0,0)}b,strong{font-weight:bolder}small{font-size:80%}img{border-style:none}button,input,optgroup,select,textarea{font-family:inherit;font-size:100%;line-height:var(--font-line-height-medium);margin:0}button,input{overflow:visible}button,select{text-transform:none}button,[type=button],[type=reset],[type=submit]{appearance:button}button::-moz-focus-inner,[type=button]::-moz-focus-inner,[type=reset]::-moz-focus-inner,[type=submit]::-moz-focus-inner{border-style:none;padding:0}button:-moz-focusring,[type=button]:-moz-focusring,[type=reset]:-moz-focusring,[type=submit]:-moz-focusring{outline:1px dotted ButtonText}fieldset{padding:.35em .75em .625em}legend{box-sizing:border-box;color:inherit;display:table;max-width:100%;padding:0;white-space:normal}progress{vertical-align:baseline}textarea{overflow:auto}[type=checkbox],[type=radio]{box-sizing:border-box;padding:0}[type=number]::-webkit-inner-spin-button,[type=number]::-webkit-outer-spin-button{height:auto}[type=search]{appearance:textfield;outline-offset:-2px}[type=search]::-webkit-search-decoration{appearance:none}::-webkit-file-upload-button{appearance:button;font:inherit}details{display:block}summary{display:list-item}template{display:none}[hidden]{display:none}.d-none{display:none !important}@media (min-width: 576px){.d-sm-block{display:block !important}.d-sm-flex{display:flex !important}}[data-toggle=dropdown]+*{position:absolute}.dropdown{position:relative}.dropdown [data-toggle=dropdown]+*{box-shadow:var(--surface-shadow-sm);left:0;position:absolute;top:100%}.dropdown>.br-notification{left:auto;right:0}.dropdown .br-item{--color:var(--color-light);--color-rgb:var(--color-light-rgb);--text-color:var(--color-light);--interactive:var(--interactive-light);--interactive-rgb:var(--color-rgb);--visited:var(--visited-light);--hover:var(--hover-light);--pressed:var(--pressed-light);--focus-color:var(--focus-color-light);--focus:var(--focus-color-light);--item-padding-y:var(--spacing-scale-2x);background-color:var(--background-light);color:var(--color)}.dropdown .br-item:not(:last-child){border-bottom:1px solid var(--border-color)}.dropdown .br-item.selected{--color:var(--color-dark);--color-rgb:var(--color-dark-rgb);--text-color:var(--color-dark);--interactive:var(--interactive-dark);--interactive-rgb:var(--interactive-dark-rgb);--visited:var(--visited-dark);--hover:var(--hover-dark);--pressed:var(--pressed-dark);--focus-color:var(--focus-color-dark);--focus:var(--focus-color-dark)}.justify-content-start{justify-content:flex-start !important}.justify-content-end{justify-content:flex-end !important}.justify-content-center{justify-content:center !important}.align-items-center{align-items:center !important}.col,[class*=col-]{padding-left:calc(var(--grid-gutter)*.5);padding-right:calc(var(--grid-gutter)*.5);width:100%}.col{flex:1 0 0%;min-width:8.3333333333%}.col-auto{flex:0 0 auto;width:auto}.col-2{flex-basis:16.6666666667%;max-width:16.6666666667%}.container,.container-fluid,.container-lg{--grid-margin:var(--grid-portrait-margin);--grid-maxwidth:var(--grid-portrait-maxwidth);margin-left:auto;margin-right:auto;max-width:var(--grid-maxwidth);padding-left:var(--grid-margin);padding-right:var(--grid-margin);width:100%}.row{--grid-gutter:var(--grid-portrait-gutter);display:flex;flex-wrap:wrap;margin-left:calc(var(--grid-gutter)*-0.5);margin-right:calc(var(--grid-gutter)*-0.5)}@media (min-width: 576px){.container,.container-lg,.container-fluid{--grid-margin:var(--grid-tablet-margin)}.row{--grid-gutter:var(--grid-tablet-gutter)}.container{--grid-maxwidth:calc(var(--grid-breakpoint-sm) - var(--grid-tablet-margin))}.col-sm-4{flex-basis:33.3333333333%;max-width:33.3333333333%}}@media (min-width: 992px){.container,.container-lg,.container-fluid{--grid-margin:var(--grid-tablet-margin)}.row{--grid-gutter:var(--grid-tablet-gutter)}.container{--grid-maxwidth:calc(var(--grid-breakpoint-md) - var(--grid-tablet-margin))}}@media (min-width: 1280px){.container,.container-lg,.container-fluid{--grid-margin:var(--grid-desktop-margin)}.row{--grid-gutter:var(--grid-desktop-gutter)}.container,.container-lg{--grid-maxwidth:calc(var(--grid-breakpoint-lg) - var(--grid-desktop-margin))}.col-lg-3{flex-basis:25%;max-width:25%}}@media (min-width: 1600px){.container,.container-lg,.container-fluid{--grid-margin:var(--grid-tv-margin)}.row{--grid-gutter:var(--grid-tv-gutter)}.container,.container-lg{--grid-maxwidth:calc(var(--grid-breakpoint-xl) - var(--grid-tv-margin))}}.ease{animation-timing-function:cubic-bezier(0.25, 0.1, 0.25, 1)}.ease-out{animation-timing-function:cubic-bezier(0, 0, 0.58, 1)}.ease-in-out{animation-timing-function:cubic-bezier(0.42, 0, 0.58, 1)}.fast{animation-duration:var(--duration-fast)}.slow{animation-duration:var(--duration-slow)}.mt-1{margin-top:var(--spacing-scale-half) !important}.mr-1{margin-right:var(--spacing-scale-half) !important}.mb-1{margin-bottom:var(--spacing-scale-half) !important}.ml-1{margin-left:var(--spacing-scale-half) !important}.mb-4{margin-bottom:var(--spacing-scale-3x) !important}.pt-half{padding-top:var(--spacing-scale-half) !important}.highlight{background:var(--status-highlight-background) linear-gradient(var(--status-highlight-overlay), var(--status-highlight-overlay));color:var(--status-highlight-text);padding:0 var(--spacing-scale-half)}[disabled],.disabled{cursor:not-allowed;opacity:var(--disabled)}[disabled] *,.disabled *{pointer-events:none}fieldset[disabled]{opacity:1}.text-center{text-align:center !important}.text-right{text-align:right !important}.text-nowrap{white-space:nowrap !important}.text-uppercase{text-transform:uppercase !important}.text-bold{font-weight:700 !important}.text-base{font-size:var(--font-size-scale-base) !important}.text-down-01{font-size:var(--font-size-scale-down-01) !important}@media (min-width: 576px){.text-sm-center{text-align:center !important}.text-sm-left{text-align:left !important}.text-sm-right{text-align:right !important}}p{color:var(--color);font-size:var(--font-size-scale-base);font-weight:var(--font-weight-regular);line-height:var(--font-line-height-medium);margin-bottom:var(--spacing-scale-2x);margin-top:0}p a{text-decoration:underline}@media (min-width: 576px){p{font-size:var(--font-size-scale-up-01)}}a{--focus-offset:var(--spacing-scale-half)}a:focus{outline:none}a.focus-visible,a:focus-visible{outline-color:var(--focus);outline-offset:var(--focus-offset);outline-style:var(--focus-style);outline-width:var(--focus-width)}a:not(:disabled):hover{background-image:linear-gradient(rgba(var(--interactive-rgb), var(--hover)), rgba(var(--interactive-rgb), var(--hover)))}a:not(:disabled):active{background-image:linear-gradient(rgba(var(--interactive-rgb), var(--pressed)), rgba(var(--interactive-rgb), var(--pressed)))}a{color:var(--interactive);text-decoration:none}.main-content a{text-decoration:underline}button{cursor:pointer}img{max-width:100%;vertical-align:middle}h2,.h2{color:var(--color);font-size:var(--font-size-scale-up-03);font-weight:var(--font-weight-semi-bold);line-height:var(--font-line-height-low);margin-bottom:var(--spacing-scale-2xh);margin-top:var(--spacing-scale-3xh);padding-bottom:var(--spacing-scale-2xh)}@media (min-width: 576px){.h2,h2{font-size:var(--font-size-scale-up-05);font-weight:var(--font-weight-regular)}}ul,ol{margin-bottom:var(--spacing-scale-2x);margin-top:0;padding:0 0 0 var(--spacing-scale-5x)}table{--table-background:var(--background);--table-color:var(--color);--table-border-color:var(--gray-20);--table-border-style:solid;--table-border-width:1px;--table-hover:var(--color-rgb);--table-padding:var(--spacing-scale-3x);--table-font-weight:var(--font-weight-medium);--table-th-background:var(--background-alternative);--table-th-font-weight:var(--font-weight-semi-bold);--table-row-size:var(--spacing-scale-2x);border-collapse:collapse;width:100%}tr.selected,tr.is-selected{--color:var(--color-dark);--color-rgb:var(--color-dark-rgb);--text-color:var(--color-dark);--interactive:var(--interactive-dark);--interactive-rgb:var(--interactive-dark-rgb);--visited:var(--visited-dark);--hover:var(--hover-dark);--pressed:var(--pressed-dark);--focus-color:var(--focus-color-dark);--focus:var(--focus-color-dark)}label,.label{color:var(--color);font-size:var(--font-size-scale-base);font-weight:var(--font-weight-semi-bold);line-height:var(--font-line-height-medium);margin-bottom:var(--spacing-scale-half)}fieldset,.fieldset{border:var(--surface-width-none);margin-bottom:var(--spacing-scale-5x);margin-top:0;padding:0}legend,.legend{color:var(--color);font-size:var(--font-size-scale-up-01);font-weight:var(--font-weight-semi-bold);line-height:var(--font-line-height-low);margin-bottom:var(--spacing-scale-2x);margin-top:var(--spacing-scale-2x)}::placeholder,.placeholder{color:var(--color-light);font-size:var(--font-size-scale-base);font-style:italic;font-weight:var(--font-weight-regular);line-height:var(--font-line-height-medium);margin-bottom:var(--spacing-scale-half);margin-top:var(--spacing-scale-half);opacity:1}input,textarea,.input{color:var(--color-light);font-size:var(--font-size-scale-up-01);font-weight:var(--font-weight-medium);line-height:var(--font-line-height-low);margin-bottom:var(--spacing-scale-half)}pre,.pre{background:var(--gray-5);margin:var(--spacing-scale-2x) 0 var(--spacing-scale-4x);padding:var(--spacing-scale-2x)}mark,.mark{background:var(--red-warm-vivid-10);color:var(--color)}*[data-toggle=collapse]:not(:disabled):hover{background-image:linear-gradient(rgba(var(--interactive-rgb), var(--hover)), rgba(var(--interactive-rgb), var(--hover)))}*[data-toggle=collapse]:focus{outline:none}*[data-toggle=collapse].focus-visible,*[data-toggle=collapse]:focus-visible{outline-color:var(--focus);outline-offset:var(--focus-offset);outline-style:var(--focus-style);outline-width:var(--focus-width)}@media (prefers-reduced-motion: reduce){:host,:host::before,:host::after,:host *,:host *::before,:host *::after{animation:none !important;scroll-behavior:auto !important;transition:none !important}}:host-context([data-wbc-reduced-motion=true])::before,:host-context([data-wbc-reduced-motion=true])::after,:host-context([data-wbc-reduced-motion=true]) *,:host-context([data-wbc-reduced-motion=true]) *::before,:host-context([data-wbc-reduced-motion=true]) *::after{animation:none !important;scroll-behavior:auto !important;transition:none !important}:host{display:inline-flex;--loading-animation-duration:2s;--loading-transition-duration:var(--duration-moderate, 500ms)}.br-loading{display:flex;align-items:center;justify-content:center}.br-loading.loading-mode-spinner{margin:16px}.br-loading.loading-mode-progress{margin:28px}:host([compact]) .br-loading{margin:0}:host([compact]) .loading-label{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0, 0, 0, 0);white-space:nowrap;border:0}.loading-wrapper{display:flex;align-items:center;gap:8px}.loading-label-top{flex-direction:column}.loading-label-bottom{flex-direction:column}.loading-label-right{flex-direction:row}.loading-label-left{flex-direction:row}.loading-label-top .loading-label{margin-bottom:8px;margin-top:0;text-align:center}.loading-label-bottom .loading-label{margin-top:8px;margin-bottom:0;text-align:center}.loading-label-right .loading-label{margin-left:8px;margin-right:0;text-align:left}.loading-label-left .loading-label{margin-left:8px;margin-right:0;text-align:left}.loading-spinner,.loading-progress{display:block;transform-origin:center}.loading-spinner{animation:none}@media (prefers-reduced-motion: no-preference){.loading-spinner{animation:loading-rotate var(--loading-animation-duration) var(--animation-ease-linear, linear) infinite}}.loading-spinner-track{stroke:var(--gray-20);transform:rotate(-90deg);transform-origin:center}.loading-indicator{stroke:var(--blue-warm-vivid-70);stroke-linecap:round;animation:none}@media (prefers-reduced-motion: no-preference){.loading-indicator{animation:loading-dash var(--loading-animation-duration) var(--animation-ease-in-out, ease-in-out) infinite}}@media (prefers-reduced-motion: no-preference){.br-loading.loading-large .loading-indicator{animation-name:loading-dash-large}}@media (prefers-reduced-motion: no-preference){.br-loading.loading-medium .loading-indicator{animation-name:loading-dash-medium}}@media (prefers-reduced-motion: no-preference){.br-loading.loading-small .loading-indicator{animation-name:loading-dash-small}}.loading-indicator-progress{stroke:var(--blue-warm-vivid-70);stroke-linecap:round;transition:none}@media (prefers-reduced-motion: no-preference){.loading-indicator-progress{transition:stroke-dashoffset var(--loading-transition-duration) var(--animation-ease, ease)}}.loading-indicator-progress{transform:rotate(-90deg);transform-origin:center}.loading-percentage{font-size:var(--loading-percentage-font-size, var(--font-size-scale-up-02));font-weight:var(--font-weight-semi-bold);fill:var(--blue-warm-vivid-70);pointer-events:none}.loading-label{font-size:var(--font-size-scale-base);font-weight:var(--font-weight-medium);color:var(--gray-80);text-align:center;margin-top:16px}@keyframes loading-rotate{100%{transform:rotate(360deg)}}@keyframes loading-dash{0%{stroke-dasharray:1,150;stroke-dashoffset:0}50%{stroke-dasharray:90,150;stroke-dashoffset:-35}100%{stroke-dasharray:90,150;stroke-dashoffset:-124}}@keyframes loading-dash-large{0%{stroke-dasharray:1,218;stroke-dashoffset:0}50%{stroke-dasharray:131,218;stroke-dashoffset:-51}100%{stroke-dasharray:131,218;stroke-dashoffset:-181}}@keyframes loading-dash-medium{0%{stroke-dasharray:6,129;stroke-dashoffset:0}50%{stroke-dasharray:78,129;stroke-dashoffset:-30}100%{stroke-dasharray:78,129;stroke-dashoffset:-107}}@keyframes loading-dash-small{0%{stroke-dasharray:1,80;stroke-dashoffset:0}50%{stroke-dasharray:48,80;stroke-dashoffset:-19}100%{stroke-dasharray:48,80;stroke-dashoffset:-66}}`;
871
+
872
+ /** Mapa que relaciona `LoadingMode` e `LoadingSize` com a dimensão do SVG em pixels. */
873
+ const DIMENSION_MAP = {
874
+ spinner: {
875
+ small: 24,
876
+ medium: 44,
877
+ large: 64,
878
+ },
879
+ progress: {
880
+ small: 64,
881
+ medium: 84,
882
+ large: 104,
883
+ },
884
+ };
885
+ /** Mapa que relaciona `LoadingMode` e `LoadingSize` com a espessura do traço. */
886
+ const STROKE_WIDTH_MAP = {
887
+ spinner: {
888
+ small: 2,
889
+ medium: 3,
890
+ large: 4,
891
+ },
892
+ progress: {
893
+ small: 3,
894
+ medium: 4,
895
+ large: 5,
896
+ },
897
+ };
898
+ /** Mapa que relaciona `LoadingSize` com o tamanho da fonte do percentual no modo `progress`. */
899
+ const PERCENTAGE_FONT_SIZE_MAP = {
900
+ small: 'var(--font-size-scale-base)',
901
+ medium: 'var(--font-size-scale-up-02)',
902
+ large: 'var(--font-size-scale-up-03)',
903
+ };
904
+ /**
905
+ * Mapa que relaciona `LoadingSpeed` com a duração da animação (s)
906
+ */
907
+ const SPEED_MAP = {
908
+ fast: 1.4,
909
+ normal: 2,
910
+ slow: 2.6,
911
+ };
912
+ /**
913
+ * Mapa que relaciona `LoadingSpeed` com a duração da transição (s) no modo `progress`.
914
+ */
915
+ const TRANSITION_MAP = {
916
+ fast: 0.3,
917
+ normal: 0.5,
918
+ slow: 0.8,
919
+ };
920
+ const LOADING_LABEL_POSITIONS = ['top', 'right', 'bottom', 'left'];
921
+ const LOADING_MODES = ['spinner', 'progress'];
922
+ const LOADING_SPEEDS = ['slow', 'normal', 'fast'];
923
+ const LOADING_COMPLETIONS = ['persist', 'reset', 'hide'];
924
+ const Loading = class {
925
+ constructor(hostRef) {
926
+ registerInstance(this, hostRef);
927
+ this.brLoadingChange = createEvent(this, "brLoadingChange", 6);
928
+ this.brLoadingComplete = createEvent(this, "brLoadingComplete", 6);
929
+ this.brLoadingReset = createEvent(this, "brLoadingReset", 6);
930
+ this.brLoadingCancel = createEvent(this, "brLoadingCancel", 6);
931
+ this.brIndeterminateStateChange = createEvent(this, "brIndeterminateStateChange", 6);
932
+ this.brDidShow = createEvent(this, "brDidShow", 6);
933
+ this.brLoadingShow = createEvent(this, "brLoadingShow", 6);
934
+ this.brDidHide = createEvent(this, "brDidHide", 6);
935
+ this.brLoadingHide = createEvent(this, "brLoadingHide", 6);
936
+ /**
937
+ * Valor exibido no texto de progresso durante a transição.
938
+ */
939
+ this.displayedValue = 0;
940
+ /**
941
+ * Define a posição da label em relação ao loading. Valores inválidos usam `bottom`.
942
+ * @default 'bottom'
943
+ */
944
+ this.labelPosition = 'bottom';
945
+ /**
946
+ * Identificador único do componente.
947
+ * Quando omitido, um valor é gerado automaticamente.
948
+ *
949
+ * > **Padrão:** valor único gerado por generateUniqueId().
950
+ *
951
+ */
952
+ this.customId = generateUniqueId();
953
+ /**
954
+ * Define o modo de exibição do componente. Valores inválidos usam `spinner`.
955
+ * @default 'spinner'
956
+ */
957
+ this.mode = 'spinner';
958
+ /**
959
+ * Define o tamanho visual nos modos `spinner` e `progress`.
960
+ * @default 'medium'
961
+ * @deprecated Use `density`.
962
+ */
963
+ this.size = 'medium';
964
+ /**
965
+ * Remove o espaçamento externo e oculta visualmente o rótulo, mantendo-o
966
+ * disponível para tecnologias assistivas. Use em áreas compactas, como
967
+ * controles de paginação ou campos de formulário.
968
+ * @default false
969
+ */
970
+ this.compact = false;
971
+ /**
972
+ * Define a velocidade da animação/transição. Valores inválidos usam `normal`.
973
+ * @default 'normal'
974
+ */
975
+ this.speed = 'normal';
976
+ /**
977
+ * Define o progresso no modo `progress`.
978
+ * No modo `spinner`, esta prop não tem efeito.
979
+ * Valores não numéricos usam `0`; valores fora de `0`–`100` são limitados ao intervalo.
980
+ * @default 0
981
+ */
982
+ this.value = 0;
983
+ /**
984
+ * Define o comportamento quando o progresso atinge 100. Valores inválidos usam `persist`.
985
+ * No modo `spinner`, esta prop não tem efeito.
986
+ * @default 'persist'
987
+ */
988
+ this.completion = 'persist';
989
+ /**
990
+ * Define se o botão de cancelamento será exibido.
991
+ * Ao pressionar o botão, o evento `brLoadingCancel` é emitido.
992
+ * No modo `spinner`, esta prop não tem efeito.
993
+ * @default false
994
+ */
995
+ this.cancelable = false;
996
+ /**
997
+ * Define o texto do botão de cancelamento.
998
+ * No modo `spinner`, esta prop não tem efeito.
999
+ * @default 'Cancelar'
1000
+ */
1001
+ this.cancelLabel = 'Cancelar';
1002
+ this.reducedMotionMediaQuery = null;
1003
+ /** Último estado lógico de atividade no modo `spinner`. */
1004
+ this.isIndeterminateActive = false;
1005
+ /**
1006
+ * Trata o clique no botão de cancelamento.
1007
+ */
1008
+ this.handleCancelClick = () => {
1009
+ if (this.effectiveMode !== 'progress' || !this.cancelable)
1010
+ return;
1011
+ this.brLoadingCancel.emit({ value: this.normalizedValue });
1012
+ };
1013
+ this.onReducedMotionChange = (event) => {
1014
+ if (!event.matches)
1015
+ return;
1016
+ this.stopProgressAnimation();
1017
+ this.normalizeInputValue(this.value);
1018
+ this.displayedValue = this.normalizedValue;
1019
+ };
1020
+ this.onReducedMotionOverrideChange = (event) => {
1021
+ const reducedMotion = event.detail?.reducedMotion;
1022
+ if (reducedMotion === true) {
1023
+ this.stopProgressAnimation();
1024
+ this.normalizeInputValue(this.value);
1025
+ this.displayedValue = this.normalizedValue;
1026
+ }
1027
+ else if (reducedMotion === false && this.effectiveMode === 'progress') {
1028
+ this.syncDisplayedProgress(this.normalizedValue);
1029
+ }
1030
+ };
1031
+ }
1032
+ /**
1033
+ * Reage a mudanças em `value` no modo `progress`.
1034
+ * @param newValue Novo valor recebido.
1035
+ */
1036
+ handleCompletion(newValue) {
1037
+ const sanitizedValue = this.normalizeInputValue(newValue);
1038
+ if (sanitizedValue !== newValue) {
1039
+ return;
1040
+ }
1041
+ if (this.effectiveMode !== 'progress')
1042
+ return;
1043
+ this.brLoadingChange.emit({ value: this.normalizedValue });
1044
+ this.syncDisplayedProgress(this.normalizedValue);
1045
+ this.applyCompletionBehavior(newValue);
1046
+ }
1047
+ /**
1048
+ * Reage a mudanças em `mode` e atualiza o estado lógico de atividade.
1049
+ */
1050
+ handleModeChange() {
1051
+ this.syncIndeterminateActiveState();
1052
+ }
1053
+ /**
1054
+ * Etapa do ciclo de vida: desmontagem do componente.
1055
+ * Libera recursos de animação pendentes.
1056
+ */
1057
+ disconnectedCallback() {
1058
+ this.cleanupProgressResources();
1059
+ this.reducedMotionMediaQuery?.removeEventListener('change', this.onReducedMotionChange);
1060
+ if (typeof document !== 'undefined') {
1061
+ document.removeEventListener('wbcReducedMotionChange', this.onReducedMotionOverrideChange);
1062
+ }
1063
+ this.reducedMotionMediaQuery = null;
1064
+ if (this.isIndeterminateActive) {
1065
+ this.isIndeterminateActive = false;
1066
+ this.brIndeterminateStateChange.emit({ active: false });
1067
+ }
1068
+ }
1069
+ /**
1070
+ * Etapa do ciclo de vida: antes da primeira renderização.
1071
+ * Inicializa o estado visual do progresso.
1072
+ */
1073
+ componentWillLoad() {
1074
+ this.normalizeInputValue(this.value);
1075
+ this.initializeProgressDisplay();
1076
+ this.syncIndeterminateActiveState();
1077
+ }
1078
+ componentDidLoad() {
1079
+ if (typeof window === 'undefined' || typeof window.matchMedia !== 'function')
1080
+ return;
1081
+ this.reducedMotionMediaQuery = window.matchMedia('(prefers-reduced-motion: reduce)');
1082
+ this.reducedMotionMediaQuery.addEventListener('change', this.onReducedMotionChange);
1083
+ document.addEventListener('wbcReducedMotionChange', this.onReducedMotionOverrideChange);
1084
+ if (this.effectiveMode === 'progress') {
1085
+ this.syncDisplayedProgress(this.normalizedValue);
1086
+ }
1087
+ }
1088
+ /**
1089
+ * Define o valor do progresso.
1090
+ * @param value Valor desejado.
1091
+ * @returns Progresso normalizado.
1092
+ */
1093
+ async setValue(value) {
1094
+ this.normalizeInputValue(value);
1095
+ return { value: this.normalizedValue };
1096
+ }
1097
+ /**
1098
+ * Soma um valor ao progresso atual.
1099
+ * @param step Incremento aplicado.
1100
+ * @returns Progresso normalizado.
1101
+ */
1102
+ async incrementValue(step = 1) {
1103
+ this.value = this.normalizedValue + step;
1104
+ return { value: this.normalizedValue };
1105
+ }
1106
+ /**
1107
+ * Define o progresso como concluído.
1108
+ * @returns Progresso normalizado.
1109
+ */
1110
+ async complete() {
1111
+ this.value = 100;
1112
+ return { value: this.normalizedValue };
1113
+ }
1114
+ /**
1115
+ * Reinicia o progresso e exibe o componente.
1116
+ * @returns Progresso normalizado.
1117
+ */
1118
+ async reset() {
1119
+ this.value = 0;
1120
+ this.setVisibility(true);
1121
+ if (this.effectiveMode === 'progress') {
1122
+ this.brLoadingReset.emit({ value: this.normalizedValue });
1123
+ }
1124
+ return { value: this.normalizedValue };
1125
+ }
1126
+ /**
1127
+ * Exibe o componente.
1128
+ * @returns Estado de visibilidade.
1129
+ */
1130
+ async show() {
1131
+ this.setVisibility(true);
1132
+ return { visible: true };
1133
+ }
1134
+ /**
1135
+ * Oculta o componente.
1136
+ * @returns Estado de visibilidade.
1137
+ */
1138
+ async hide() {
1139
+ this.setVisibility(false);
1140
+ return { visible: false };
1141
+ }
1142
+ /**
1143
+ * Retorna o progresso no intervalo de 0 a 100.
1144
+ * @private
1145
+ */
1146
+ get normalizedValue() {
1147
+ return this.toValidProgressValue(this.value);
1148
+ }
1149
+ /**
1150
+ * Retorna a dimensão do SVG.
1151
+ * @private
1152
+ */
1153
+ get dimension() {
1154
+ return DIMENSION_MAP[this.effectiveMode][this.effectiveDensity];
1155
+ }
1156
+ /**
1157
+ * Retorna a espessura do traço do círculo.
1158
+ * @private
1159
+ */
1160
+ get strokeWidth() {
1161
+ return STROKE_WIDTH_MAP[this.effectiveMode][this.effectiveDensity];
1162
+ }
1163
+ /**
1164
+ * Retorna o tamanho da fonte do percentual no modo `progress`.
1165
+ * @private
1166
+ */
1167
+ get percentageFontSize() {
1168
+ return PERCENTAGE_FONT_SIZE_MAP[this.effectiveDensity];
1169
+ }
1170
+ get effectiveDensity() {
1171
+ const density = resolveDensity(this.el, this.density, { allowUndefined: true });
1172
+ return (density ?? resolveDensity(this.el, this.size, { propertyName: 'size' }) ?? 'medium');
1173
+ }
1174
+ get effectiveLabelPosition() {
1175
+ return resolveAllowedPropValue(this.el, 'labelPosition', this.labelPosition, LOADING_LABEL_POSITIONS, 'bottom');
1176
+ }
1177
+ get effectiveMode() {
1178
+ return resolveAllowedPropValue(this.el, 'mode', this.mode, LOADING_MODES, 'spinner');
1179
+ }
1180
+ get effectiveSpeed() {
1181
+ return resolveAllowedPropValue(this.el, 'speed', this.speed, LOADING_SPEEDS, 'normal');
1182
+ }
1183
+ get effectiveCompletion() {
1184
+ return resolveAllowedPropValue(this.el, 'completion', this.completion, LOADING_COMPLETIONS, 'persist');
1185
+ }
1186
+ /**
1187
+ * Retorna a coordenada central do SVG.
1188
+ * @private
1189
+ */
1190
+ get center() {
1191
+ return this.dimension / 2;
1192
+ }
1193
+ /**
1194
+ * Retorna o raio útil do círculo.
1195
+ * @private
1196
+ */
1197
+ get radius() {
1198
+ return this.center - this.strokeWidth / 2;
1199
+ }
1200
+ /**
1201
+ * Retorna a circunferência do círculo.
1202
+ * @private
1203
+ */
1204
+ get circumference() {
1205
+ return 2 * Math.PI * this.radius;
1206
+ }
1207
+ /**
1208
+ * Retorna o deslocamento do traço conforme o progresso.
1209
+ * @private
1210
+ */
1211
+ get progressOffset() {
1212
+ const progress = this.displayedValue / 100;
1213
+ return this.circumference * (1 - progress);
1214
+ }
1215
+ /**
1216
+ * Aplica a ação configurada ao atingir 100% no modo `progress`.
1217
+ * @param value Valor atual do progresso.
1218
+ */
1219
+ applyCompletionBehavior(value) {
1220
+ if (this.effectiveMode !== 'progress')
1221
+ return;
1222
+ if (value >= 100) {
1223
+ this.brLoadingComplete.emit({ value: 100, completion: this.effectiveCompletion });
1224
+ if (this.effectiveCompletion === 'reset') {
1225
+ setTimeout(() => this.reset(), 300);
1226
+ }
1227
+ if (this.effectiveCompletion === 'hide') {
1228
+ this.setVisibility(false);
1229
+ }
1230
+ }
1231
+ }
1232
+ /**
1233
+ * Inicializa o valor exibido no texto de progresso.
1234
+ */
1235
+ initializeProgressDisplay() {
1236
+ this.displayedValue = this.effectiveMode === 'progress' ? 0 : this.normalizedValue;
1237
+ }
1238
+ /**
1239
+ * Libera recursos usados pela animação de progresso.
1240
+ */
1241
+ cleanupProgressResources() {
1242
+ this.stopProgressAnimation();
1243
+ }
1244
+ /**
1245
+ * Emite mudança de estado lógico para o modo `spinner` quando necessário.
1246
+ */
1247
+ syncIndeterminateActiveState() {
1248
+ const shouldBeActive = this.effectiveMode === 'spinner' && this.el.style.display !== 'none';
1249
+ if (this.isIndeterminateActive === shouldBeActive)
1250
+ return;
1251
+ this.isIndeterminateActive = shouldBeActive;
1252
+ this.brIndeterminateStateChange.emit({ active: shouldBeActive });
1253
+ }
1254
+ /**
1255
+ * Sincroniza o texto de percentual com a transição visual do círculo.
1256
+ * @param targetValue Valor final do progresso normalizado.
1257
+ */
1258
+ syncDisplayedProgress(targetValue) {
1259
+ if (this.effectiveMode !== 'progress') {
1260
+ this.displayedValue = targetValue;
1261
+ return;
1262
+ }
1263
+ this.stopProgressAnimation();
1264
+ const from = this.displayedValue;
1265
+ const to = targetValue;
1266
+ const durationMs = TRANSITION_MAP[this.effectiveSpeed] * 1000;
1267
+ if (from === to || durationMs <= 0) {
1268
+ this.displayedValue = to;
1269
+ return;
1270
+ }
1271
+ if (this.prefersReducedMotion()) {
1272
+ this.displayedValue = to;
1273
+ return;
1274
+ }
1275
+ const startedAt = performance.now();
1276
+ const step = (now) => {
1277
+ if (typeof document !== 'undefined' && document.hidden) {
1278
+ this.displayedValue = to;
1279
+ this.progressAnimationFrameId = undefined;
1280
+ return;
1281
+ }
1282
+ const elapsed = Math.min((now - startedAt) / durationMs, 1);
1283
+ const eased = this.easeProgress(elapsed);
1284
+ this.displayedValue = Math.round(from + (to - from) * eased);
1285
+ if (elapsed < 1) {
1286
+ this.progressAnimationFrameId = requestAnimationFrame(step);
1287
+ return;
1288
+ }
1289
+ this.displayedValue = to;
1290
+ this.progressAnimationFrameId = undefined;
1291
+ };
1292
+ this.progressAnimationFrameId = requestAnimationFrame(step);
1293
+ }
1294
+ /**
1295
+ * Interpolação para suavizar a animação do percentual.
1296
+ * @param time Progresso normalizado da animação (0 a 1).
1297
+ * @returns Valor interpolado entre 0 e 1.
1298
+ */
1299
+ easeProgress(time) {
1300
+ return time < 0.5 ? 2 * time * time : -1 + (4 - 2 * time) * time;
1301
+ }
1302
+ /** Cancela a animação de percentual em andamento. */
1303
+ stopProgressAnimation() {
1304
+ if (this.progressAnimationFrameId === undefined)
1305
+ return;
1306
+ cancelAnimationFrame(this.progressAnimationFrameId);
1307
+ this.progressAnimationFrameId = undefined;
1308
+ }
1309
+ prefersReducedMotion() {
1310
+ return (typeof window === 'undefined' ||
1311
+ typeof window.matchMedia !== 'function' ||
1312
+ (typeof document !== 'undefined' && document.documentElement.dataset.wbcReducedMotion === 'true') ||
1313
+ window.matchMedia('(prefers-reduced-motion: reduce)').matches);
1314
+ }
1315
+ /**
1316
+ * Atualiza a visibilidade e emite o evento correspondente.
1317
+ * @param visible Define se o componente ficará visível.
1318
+ * @private
1319
+ */
1320
+ setVisibility(visible) {
1321
+ this.el.style.display = visible ? '' : 'none';
1322
+ this.syncIndeterminateActiveState();
1323
+ if (visible) {
1324
+ this.brDidShow.emit();
1325
+ this.brLoadingShow.emit();
1326
+ return;
1327
+ }
1328
+ this.brDidHide.emit();
1329
+ this.brLoadingHide.emit();
1330
+ }
1331
+ /**
1332
+ * Normaliza um valor arbitrário de progresso para o intervalo de 0 a 100.
1333
+ * Valores inválidos (incluindo string vazia e NaN) são convertidos para 0.
1334
+ * Também sincroniza `this.value` internamente quando necessário.
1335
+ */
1336
+ normalizeInputValue(value) {
1337
+ const normalizedValue = this.toValidProgressValue(value);
1338
+ if (this.value !== normalizedValue) {
1339
+ this.value = normalizedValue;
1340
+ }
1341
+ return normalizedValue;
1342
+ }
1343
+ toValidProgressValue(value) {
1344
+ if (typeof value === 'string' && value.trim() === '') {
1345
+ return 0;
1346
+ }
1347
+ return resolveNumberPropValue(this.el, 'value', value, 0, 100, 0);
1348
+ }
1349
+ /**
1350
+ * Monta o mapa de classes CSS do host interno.
1351
+ * @returns Mapa de classes aplicadas.
1352
+ * @private
1353
+ */
1354
+ getCssClassMap() {
1355
+ const density = this.effectiveDensity;
1356
+ const cssClassMap = {
1357
+ 'br-loading': true,
1358
+ [`loading-mode-${this.effectiveMode}`]: true,
1359
+ [`loading-${this.effectiveSpeed}`]: true,
1360
+ [`loading-${density}`]: true,
1361
+ };
1362
+ return cssClassMap;
1363
+ }
1364
+ /**
1365
+ * Renderiza o modo `spinner`.
1366
+ * @returns Estrutura JSX do spinner.
1367
+ */
1368
+ renderIndeterminate() {
1369
+ const duration = `${SPEED_MAP[this.effectiveSpeed]}s`;
1370
+ return this.renderSpinnerWithLabelPosition(duration);
1371
+ }
1372
+ /**
1373
+ * Renderiza spinner com label em qualquer posição.
1374
+ */
1375
+ renderSpinnerWithLabelPosition(duration) {
1376
+ const label = this.label && (h("div", { class: `loading-label loading-label-${this.effectiveLabelPosition}`, part: "label-wrapper" }, h("slot", { name: "label" }, this.label)));
1377
+ const spinner = (h("svg", { part: "svg", class: "loading-spinner", width: this.dimension, height: this.dimension, viewBox: `0 0 ${this.dimension} ${this.dimension}`, role: "progressbar", "aria-busy": "true", "aria-label": this.label || 'Carregando', style: {
1378
+ '--loading-animation-duration': duration,
1379
+ } }, h("circle", { class: "loading-indicator", cx: this.center, cy: this.center, r: this.radius, fill: "none", "stroke-width": this.strokeWidth, "stroke-dasharray": this.circumference, "stroke-dashoffset": this.circumference * 0.75 })));
1380
+ // Layout flexível para cada posição
1381
+ switch (this.effectiveLabelPosition) {
1382
+ case 'top':
1383
+ return (h("div", { class: "loading-wrapper loading-label-top", part: "wrapper" }, label, spinner));
1384
+ case 'right':
1385
+ return (h("div", { class: "loading-wrapper loading-label-right", part: "wrapper" }, spinner, label));
1386
+ case 'left':
1387
+ return (h("div", { class: "loading-wrapper loading-label-left", part: "wrapper" }, label, spinner));
1388
+ default:
1389
+ return (h("div", { class: "loading-wrapper loading-label-bottom", part: "wrapper" }, spinner, label));
1390
+ }
1391
+ }
1392
+ /**
1393
+ * Renderiza o modo `progress`.
1394
+ * @returns Estrutura JSX do progresso circular.
1395
+ * @private
1396
+ */
1397
+ renderDeterminate() {
1398
+ const transitionDuration = `${TRANSITION_MAP[this.effectiveSpeed]}s`;
1399
+ const progressStyle = {
1400
+ '--loading-transition-duration': transitionDuration,
1401
+ '--loading-percentage-font-size': this.percentageFontSize,
1402
+ };
1403
+ return (h("div", { class: "loading-wrapper", part: "wrapper" }, h("svg", { part: "svg", class: "loading-progress", width: this.dimension, height: this.dimension, viewBox: `0 0 ${this.dimension} ${this.dimension}`, role: "progressbar", "aria-valuemin": "0", "aria-valuemax": "100", "aria-valuenow": this.normalizedValue, style: progressStyle }, h("circle", { class: "loading-spinner-track", cx: this.center, cy: this.center, r: this.radius, fill: "none", "stroke-width": this.strokeWidth }), h("circle", { class: "loading-indicator-progress", cx: this.center, cy: this.center, r: this.radius, fill: "none", "stroke-width": this.strokeWidth, "stroke-dasharray": this.circumference, "stroke-dashoffset": this.progressOffset }), h("text", { part: "percentage", class: "loading-percentage", x: "50%", y: "50%", dy: ".35em", "text-anchor": "middle" }, this.displayedValue, "%")), this.cancelable && (h("br-button", { ref: (el) => setPartAttributes(el, 'cancel-button', 'button: cancel-button-inner'), emphasis: "tertiary", density: this.effectiveDensity, type: "button", "prop:ariaLabel": this.cancelLabel, onClick: this.handleCancelClick }, h("slot", { name: "cancel-button" }, this.cancelLabel)))));
1404
+ }
1405
+ /**
1406
+ * Renderiza o componente conforme o modo atual.
1407
+ * @returns Estrutura JSX final.
1408
+ */
1409
+ render() {
1410
+ return (h(Host, { key: 'e4c9196da0b7f07f82d3f9302ee86fb611aa537a' }, h("div", { key: '9cb95ff4956953e0b8d969cc2aca2f6084520442', class: this.getCssClassMap(), part: "container" }, this.effectiveMode === 'spinner' ? this.renderIndeterminate() : this.renderDeterminate())));
1411
+ }
1412
+ get el() { return getElement(this); }
1413
+ static get watchers() { return {
1414
+ "value": [{
1415
+ "handleCompletion": 0
1416
+ }],
1417
+ "mode": [{
1418
+ "handleModeChange": 0
1419
+ }]
1420
+ }; }
1421
+ };
1422
+ Loading.style = loadingCss();
1423
+
1424
+ export { Input as br_input, Loading as br_loading };