@govbr-ds/webcomponents 2.1.0 → 2.1.1

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 (858) hide show
  1. package/cem/custom-elements.json +63 -63
  2. package/dist/cjs/app-globals-DcqHuMBv.js +9 -0
  3. package/dist/cjs/br-avatar.cjs.entry.js +248 -0
  4. package/dist/cjs/br-breadcrumb-item.cjs.entry.js +45 -0
  5. package/dist/cjs/br-breadcrumb.cjs.entry.js +443 -0
  6. package/dist/cjs/br-button_2.cjs.entry.js +280 -0
  7. package/dist/cjs/br-card.cjs.entry.js +111 -0
  8. package/dist/cjs/br-carousel-page.cjs.entry.js +80 -0
  9. package/dist/cjs/br-carousel.cjs.entry.js +565 -0
  10. package/dist/cjs/br-checkbox-group.cjs.entry.js +118 -0
  11. package/dist/cjs/br-checkbox.cjs.entry.js +288 -0
  12. package/dist/cjs/br-checkgroup.cjs.entry.js +20 -0
  13. package/dist/cjs/br-collapse_2.cjs.entry.js +683 -0
  14. package/dist/cjs/br-cookiebar-cookie.cjs.entry.js +83 -0
  15. package/dist/cjs/br-cookiebar-group.cjs.entry.js +309 -0
  16. package/dist/cjs/br-cookiebar-header.cjs.entry.js +39 -0
  17. package/dist/cjs/br-cookiebar-link.cjs.entry.js +54 -0
  18. package/dist/cjs/br-cookiebar-note-group.cjs.entry.js +70 -0
  19. package/dist/cjs/br-cookiebar-note.cjs.entry.js +25 -0
  20. package/dist/cjs/br-cookiebar.cjs.entry.js +758 -0
  21. package/dist/cjs/br-crumb.cjs.entry.js +51 -0
  22. package/dist/cjs/br-date-picker_3.cjs.entry.js +2446 -0
  23. package/dist/cjs/br-datetime-picker.cjs.entry.js +1887 -0
  24. package/dist/cjs/br-divider.cjs.entry.js +225 -0
  25. package/dist/cjs/br-dropdown_2.cjs.entry.js +1856 -0
  26. package/dist/cjs/br-footer-category.cjs.entry.js +102 -0
  27. package/dist/cjs/br-footer-item.cjs.entry.js +52 -0
  28. package/dist/cjs/br-footer-legal.cjs.entry.js +41 -0
  29. package/dist/cjs/br-footer-logo.cjs.entry.js +104 -0
  30. package/dist/cjs/br-footer-social.cjs.entry.js +71 -0
  31. package/dist/cjs/br-footer.cjs.entry.js +92 -0
  32. package/dist/cjs/br-header-function.cjs.entry.js +142 -0
  33. package/dist/cjs/br-header-link.cjs.entry.js +60 -0
  34. package/dist/cjs/br-header-list.cjs.entry.js +279 -0
  35. package/dist/cjs/br-header-logo.cjs.entry.js +177 -0
  36. package/dist/cjs/br-header.cjs.entry.js +642 -0
  37. package/dist/cjs/br-icon.cjs.entry.js +485 -0
  38. package/dist/cjs/br-input.cjs.entry.js +599 -0
  39. package/dist/cjs/br-item.cjs.entry.js +356 -0
  40. package/dist/cjs/br-link.cjs.entry.js +132 -0
  41. package/dist/cjs/br-loading.cjs.entry.js +505 -0
  42. package/dist/cjs/br-magic-button.cjs.entry.js +92 -0
  43. package/dist/cjs/br-menu-group.cjs.entry.js +23 -0
  44. package/dist/cjs/br-menu-header.cjs.entry.js +47 -0
  45. package/dist/cjs/br-menu-info.cjs.entry.js +38 -0
  46. package/dist/cjs/br-menu-item.cjs.entry.js +79 -0
  47. package/dist/cjs/br-menu-link.cjs.entry.js +55 -0
  48. package/dist/cjs/br-menu-list.cjs.entry.js +149 -0
  49. package/dist/cjs/br-menu-logo.cjs.entry.js +75 -0
  50. package/dist/cjs/br-menu-social.cjs.entry.js +65 -0
  51. package/dist/cjs/br-menu.cjs.entry.js +993 -0
  52. package/dist/cjs/br-modal.cjs.entry.js +496 -0
  53. package/dist/cjs/br-notification-body.cjs.entry.js +71 -0
  54. package/dist/cjs/br-notification-header.cjs.entry.js +48 -0
  55. package/dist/cjs/br-notification-item.cjs.entry.js +110 -0
  56. package/dist/cjs/br-notification.cjs.entry.js +334 -0
  57. package/dist/cjs/br-pagination.cjs.entry.js +884 -0
  58. package/dist/cjs/br-radio-group.cjs.entry.js +428 -0
  59. package/dist/cjs/br-radio.cjs.entry.js +357 -0
  60. package/dist/cjs/br-scrim.cjs.entry.js +1336 -0
  61. package/dist/cjs/br-select-input_3.cjs.entry.js +954 -0
  62. package/dist/cjs/br-sign-in.cjs.entry.js +125 -0
  63. package/dist/cjs/br-skip-link-item.cjs.entry.js +20 -0
  64. package/dist/cjs/br-skip-link.cjs.entry.js +362 -0
  65. package/dist/cjs/br-skiplink-item.cjs.entry.js +192 -0
  66. package/dist/cjs/br-slider.cjs.entry.js +688 -0
  67. package/dist/cjs/br-step_2.cjs.entry.js +628 -0
  68. package/dist/cjs/br-switch.cjs.entry.js +245 -0
  69. package/dist/cjs/br-tab-item.cjs.entry.js +185 -0
  70. package/dist/cjs/br-tab.cjs.entry.js +397 -0
  71. package/dist/cjs/br-table-body.cjs.entry.js +37 -0
  72. package/dist/cjs/br-table-cell.cjs.entry.js +184 -0
  73. package/dist/cjs/br-table-header-cell.cjs.entry.js +173 -0
  74. package/dist/cjs/br-table-header.cjs.entry.js +37 -0
  75. package/dist/cjs/br-table-row.cjs.entry.js +81 -0
  76. package/dist/cjs/br-table.cjs.entry.js +680 -0
  77. package/dist/cjs/br-tag.cjs.entry.js +494 -0
  78. package/dist/cjs/br-textarea.cjs.entry.js +306 -0
  79. package/dist/cjs/br-tooltip.cjs.entry.js +627 -0
  80. package/dist/cjs/br-upload.cjs.entry.js +582 -0
  81. package/dist/cjs/br-wizard-panel.cjs.entry.js +54 -0
  82. package/dist/cjs/br-wizard.cjs.entry.js +708 -0
  83. package/dist/cjs/breakpoint-observer-P8veqXg7.js +144 -0
  84. package/dist/cjs/clamp-Co_hWptd.js +25 -0
  85. package/dist/cjs/cookiebar.utils-CB1gQwZ4.js +18 -0
  86. package/dist/cjs/datetime-picker-constants-B5pWeOn1.js +3827 -0
  87. package/dist/cjs/event-CmVdNHxl.js +56 -0
  88. package/dist/cjs/floating-surface-dismiss-ccdiD0KF.js +63 -0
  89. package/dist/cjs/floating-ui-MBI1osio.js +136 -0
  90. package/dist/cjs/floating-ui.dom-BUSTaaxR.js +1715 -0
  91. package/dist/cjs/focus-DuywwJPR.js +30 -0
  92. package/dist/cjs/getNextElement-R9l3JtM9.js +31 -0
  93. package/dist/cjs/iconify-icon-DfODV9bf.js +2307 -0
  94. package/dist/cjs/id-CjRFMzf6.js +20 -0
  95. package/dist/cjs/index-C92n55ch.js +678 -0
  96. package/dist/cjs/index-CRdcutym.js +3287 -0
  97. package/dist/cjs/index.cjs.js +12 -0
  98. package/dist/cjs/isNil-DO5zWc3l.js +19 -0
  99. package/dist/cjs/isValid-Fu3kaWNn.js +3694 -0
  100. package/dist/cjs/loader.cjs.js +17 -0
  101. package/dist/cjs/native-dialog--Ewqm4w0.js +49 -0
  102. package/dist/cjs/navigation-AbzwcRCU.js +25 -0
  103. package/dist/cjs/parts-D5K3ae2C.js +19 -0
  104. package/dist/cjs/props-CScmBvKd.js +24 -0
  105. package/dist/cjs/raf-batcher-yc87a4dS.js +55 -0
  106. package/dist/cjs/slot-DAllytTj.js +48 -0
  107. package/dist/cjs/swipe-BU8_XE9f.js +345 -0
  108. package/dist/cjs/table-constants-BOPSay0B.js +183 -0
  109. package/dist/cjs/validator-CTCajtT9.js +123 -0
  110. package/dist/cjs/webcomponents.cjs.js +50 -0
  111. package/dist/collection/assets/icon-search.svg +6 -0
  112. package/dist/collection/assets/logo-negative.svg +1 -0
  113. package/dist/collection/assets/logo-positive.svg +1 -0
  114. package/dist/collection/assets/wc.svg +1 -0
  115. package/dist/collection/collection-manifest.json +113 -0
  116. package/dist/collection/components/avatar/avatar.css +1 -0
  117. package/dist/collection/components/avatar/avatar.js +589 -0
  118. package/dist/collection/components/avatar/avatar.types.js +1 -0
  119. package/dist/collection/components/breadcrumb/breadcrumb-item/breadcrumb-item.js +166 -0
  120. package/dist/collection/components/breadcrumb/breadcrumb.css +1 -0
  121. package/dist/collection/components/breadcrumb/breadcrumb.js +619 -0
  122. package/dist/collection/components/breadcrumb/breadcrumb.types.js +1 -0
  123. package/dist/collection/components/breadcrumb/crumb/crumb.js +175 -0
  124. package/dist/collection/components/button/button.css +1 -0
  125. package/dist/collection/components/button/button.js +546 -0
  126. package/dist/collection/components/button/button.types.js +1 -0
  127. package/dist/collection/components/card/card.css +1 -0
  128. package/dist/collection/components/card/card.js +225 -0
  129. package/dist/collection/components/carousel/carousel-page/carousel-page.css +1 -0
  130. package/dist/collection/components/carousel/carousel-page/carousel-page.js +195 -0
  131. package/dist/collection/components/carousel/carousel.css +1 -0
  132. package/dist/collection/components/carousel/carousel.js +1217 -0
  133. package/dist/collection/components/carousel/carousel.types.js +1 -0
  134. package/dist/collection/components/checkbox/checkbox.css +1 -0
  135. package/dist/collection/components/checkbox/checkbox.js +823 -0
  136. package/dist/collection/components/checkbox/checkbox.types.js +1 -0
  137. package/dist/collection/components/checkbox-group/checkbox-group.css +1 -0
  138. package/dist/collection/components/checkbox-group/checkbox-group.js +268 -0
  139. package/dist/collection/components/checkgroup/checkgroup.js +166 -0
  140. package/dist/collection/components/collapse/collapse.css +1 -0
  141. package/dist/collection/components/collapse/collapse.js +642 -0
  142. package/dist/collection/components/collapse/collapse.types.js +1 -0
  143. package/dist/collection/components/cookiebar/cookiebar-cookie/cookiebar-cookie.css +1 -0
  144. package/dist/collection/components/cookiebar/cookiebar-cookie/cookiebar-cookie.js +529 -0
  145. package/dist/collection/components/cookiebar/cookiebar-group/cookiebar-group.css +1 -0
  146. package/dist/collection/components/cookiebar/cookiebar-group/cookiebar-group.js +628 -0
  147. package/dist/collection/components/cookiebar/cookiebar-header/cookiebar-header.css +1 -0
  148. package/dist/collection/components/cookiebar/cookiebar-header/cookiebar-header.js +165 -0
  149. package/dist/collection/components/cookiebar/cookiebar-link/cookiebar-link.css +1 -0
  150. package/dist/collection/components/cookiebar/cookiebar-link/cookiebar-link.js +200 -0
  151. package/dist/collection/components/cookiebar/cookiebar-note/cookiebar-note.css +1 -0
  152. package/dist/collection/components/cookiebar/cookiebar-note/cookiebar-note.js +100 -0
  153. package/dist/collection/components/cookiebar/cookiebar-note-group/cookiebar-note-group.css +1 -0
  154. package/dist/collection/components/cookiebar/cookiebar-note-group/cookiebar-note-group.js +172 -0
  155. package/dist/collection/components/cookiebar/cookiebar.css +1 -0
  156. package/dist/collection/components/cookiebar/cookiebar.js +1419 -0
  157. package/dist/collection/components/cookiebar/cookiebar.types.js +1 -0
  158. package/dist/collection/components/cookiebar/cookiebar.utils.js +14 -0
  159. package/dist/collection/components/datetime-picker/date-picker/date-picker-locale.js +94 -0
  160. package/dist/collection/components/datetime-picker/date-picker/date-picker-props-validation.js +57 -0
  161. package/dist/collection/components/datetime-picker/date-picker/date-picker.css +1 -0
  162. package/dist/collection/components/datetime-picker/date-picker/date-picker.js +913 -0
  163. package/dist/collection/components/datetime-picker/datetime-input/datetime-input-props-validation.js +65 -0
  164. package/dist/collection/components/datetime-picker/datetime-input/datetime-input.css +1 -0
  165. package/dist/collection/components/datetime-picker/datetime-input/datetime-input.js +825 -0
  166. package/dist/collection/components/datetime-picker/datetime-picker-constants.js +36 -0
  167. package/dist/collection/components/datetime-picker/datetime-picker-form-associated.js +112 -0
  168. package/dist/collection/components/datetime-picker/datetime-picker-props-validation.js +202 -0
  169. package/dist/collection/components/datetime-picker/datetime-picker.css +1 -0
  170. package/dist/collection/components/datetime-picker/datetime-picker.js +1925 -0
  171. package/dist/collection/components/datetime-picker/datetime-picker.types.js +1 -0
  172. package/dist/collection/components/datetime-picker/datetime-picker.utils.js +250 -0
  173. package/dist/collection/components/datetime-picker/time-picker/time-picker-constants.js +13 -0
  174. package/dist/collection/components/datetime-picker/time-picker/time-picker.css +1 -0
  175. package/dist/collection/components/datetime-picker/time-picker/time-picker.js +456 -0
  176. package/dist/collection/components/divider/divider.css +1 -0
  177. package/dist/collection/components/divider/divider.js +537 -0
  178. package/dist/collection/components/divider/divider.types.js +1 -0
  179. package/dist/collection/components/dropdown/dropdown.css +1 -0
  180. package/dist/collection/components/dropdown/dropdown.js +939 -0
  181. package/dist/collection/components/dropdown/dropdown.types.js +1 -0
  182. package/dist/collection/components/footer/footer-category/footer-category.css +1 -0
  183. package/dist/collection/components/footer/footer-category/footer-category.js +160 -0
  184. package/dist/collection/components/footer/footer-item/footer-item.css +1 -0
  185. package/dist/collection/components/footer/footer-item/footer-item.js +154 -0
  186. package/dist/collection/components/footer/footer-legal/footer-legal.css +1 -0
  187. package/dist/collection/components/footer/footer-legal/footer-legal.js +75 -0
  188. package/dist/collection/components/footer/footer-logo/footer-logo.css +1 -0
  189. package/dist/collection/components/footer/footer-logo/footer-logo.js +342 -0
  190. package/dist/collection/components/footer/footer-logo/footer-logo.types.js +1 -0
  191. package/dist/collection/components/footer/footer-social/footer-social.css +1 -0
  192. package/dist/collection/components/footer/footer-social/footer-social.js +239 -0
  193. package/dist/collection/components/footer/footer.css +1 -0
  194. package/dist/collection/components/footer/footer.js +245 -0
  195. package/dist/collection/components/footer/footer.types.js +1 -0
  196. package/dist/collection/components/global.types.js +1 -0
  197. package/dist/collection/components/header/header-function/header-function.css +1 -0
  198. package/dist/collection/components/header/header-function/header-function.js +311 -0
  199. package/dist/collection/components/header/header-link/header-link.css +1 -0
  200. package/dist/collection/components/header/header-link/header-link.js +189 -0
  201. package/dist/collection/components/header/header-list/header-list.css +1 -0
  202. package/dist/collection/components/header/header-list/header-list.js +452 -0
  203. package/dist/collection/components/header/header-logo/header-logo.css +1 -0
  204. package/dist/collection/components/header/header-logo/header-logo.js +420 -0
  205. package/dist/collection/components/header/header.css +1 -0
  206. package/dist/collection/components/header/header.js +1131 -0
  207. package/dist/collection/components/header/header.types.js +1 -0
  208. package/dist/collection/components/icon/default-icons-cache.js +233 -0
  209. package/dist/collection/components/icon/icon.css +1 -0
  210. package/dist/collection/components/icon/icon.js +598 -0
  211. package/dist/collection/components/icon/icon.types.js +1 -0
  212. package/dist/collection/components/icon/icon.utils.js +33 -0
  213. package/dist/collection/components/input/input.css +1 -0
  214. package/dist/collection/components/input/input.js +1642 -0
  215. package/dist/collection/components/input/input.types.js +1 -0
  216. package/dist/collection/components/item/item.css +1 -0
  217. package/dist/collection/components/item/item.js +906 -0
  218. package/dist/collection/components/item/item.types.js +1 -0
  219. package/dist/collection/components/link/link.css +1 -0
  220. package/dist/collection/components/link/link.js +698 -0
  221. package/dist/collection/components/list/list.css +1 -0
  222. package/dist/collection/components/list/list.js +728 -0
  223. package/dist/collection/components/loading/loading.css +1 -0
  224. package/dist/collection/components/loading/loading.js +1169 -0
  225. package/dist/collection/components/loading/loading.types.js +1 -0
  226. package/dist/collection/components/magic-button/magic-button.css +1 -0
  227. package/dist/collection/components/magic-button/magic-button.js +237 -0
  228. package/dist/collection/components/menu/menu-group/menu-group.css +1 -0
  229. package/dist/collection/components/menu/menu-group/menu-group.js +77 -0
  230. package/dist/collection/components/menu/menu-header/menu-header.css +1 -0
  231. package/dist/collection/components/menu/menu-header/menu-header.js +161 -0
  232. package/dist/collection/components/menu/menu-info/menu-info.css +1 -0
  233. package/dist/collection/components/menu/menu-info/menu-info.js +94 -0
  234. package/dist/collection/components/menu/menu-item/menu-item.css +1 -0
  235. package/dist/collection/components/menu/menu-item/menu-item.js +306 -0
  236. package/dist/collection/components/menu/menu-item/menu-item.types.js +1 -0
  237. package/dist/collection/components/menu/menu-link/menu-link.css +1 -0
  238. package/dist/collection/components/menu/menu-link/menu-link.js +259 -0
  239. package/dist/collection/components/menu/menu-list/menu-list.css +1 -0
  240. package/dist/collection/components/menu/menu-list/menu-list.js +311 -0
  241. package/dist/collection/components/menu/menu-logo/menu-logo.css +1 -0
  242. package/dist/collection/components/menu/menu-logo/menu-logo.js +230 -0
  243. package/dist/collection/components/menu/menu-social/menu-social.css +1 -0
  244. package/dist/collection/components/menu/menu-social/menu-social.js +263 -0
  245. package/dist/collection/components/menu/menu.css +1 -0
  246. package/dist/collection/components/menu/menu.js +1372 -0
  247. package/dist/collection/components/menu/menu.types.js +1 -0
  248. package/dist/collection/components/menu/menu.utils.js +279 -0
  249. package/dist/collection/components/message/message.css +1 -0
  250. package/dist/collection/components/message/message.js +508 -0
  251. package/dist/collection/components/modal/modal.css +1 -0
  252. package/dist/collection/components/modal/modal.js +842 -0
  253. package/dist/collection/components/modal/modal.types.js +1 -0
  254. package/dist/collection/components/notification/notification-body/notification-body.css +1 -0
  255. package/dist/collection/components/notification/notification-body/notification-body.js +153 -0
  256. package/dist/collection/components/notification/notification-header/notification-header.css +1 -0
  257. package/dist/collection/components/notification/notification-header/notification-header.js +181 -0
  258. package/dist/collection/components/notification/notification-item/notification-item.css +1 -0
  259. package/dist/collection/components/notification/notification-item/notification-item.js +351 -0
  260. package/dist/collection/components/notification/notification-item/notification-item.types.js +1 -0
  261. package/dist/collection/components/notification/notification.css +1 -0
  262. package/dist/collection/components/notification/notification.js +838 -0
  263. package/dist/collection/components/notification/notification.types.js +1 -0
  264. package/dist/collection/components/pagination/pagination.css +1 -0
  265. package/dist/collection/components/pagination/pagination.js +1470 -0
  266. package/dist/collection/components/pagination/pagination.types.js +1 -0
  267. package/dist/collection/components/radio/radio.css +1 -0
  268. package/dist/collection/components/radio/radio.js +847 -0
  269. package/dist/collection/components/radio/radio.types.js +1 -0
  270. package/dist/collection/components/radio-group/radio-group.css +1 -0
  271. package/dist/collection/components/radio-group/radio-group.js +862 -0
  272. package/dist/collection/components/radio-group/radio-group.types.js +1 -0
  273. package/dist/collection/components/scrim/scrim.css +1 -0
  274. package/dist/collection/components/scrim/scrim.js +1825 -0
  275. package/dist/collection/components/scrim/scrim.types.js +1 -0
  276. package/dist/collection/components/scrim/scrim.utils.js +132 -0
  277. package/dist/collection/components/select/select-input/select-input.css +1 -0
  278. package/dist/collection/components/select/select-input/select-input.js +585 -0
  279. package/dist/collection/components/select/select-list/select-list.css +1 -0
  280. package/dist/collection/components/select/select-list/select-list.js +1147 -0
  281. package/dist/collection/components/select/select-option/select-option.css +1 -0
  282. package/dist/collection/components/select/select-option/select-option.js +543 -0
  283. package/dist/collection/components/select/select.constants.js +6 -0
  284. package/dist/collection/components/select/select.css +1 -0
  285. package/dist/collection/components/select/select.js +2575 -0
  286. package/dist/collection/components/select/select.types.js +1 -0
  287. package/dist/collection/components/sign-in/sign-in.css +1 -0
  288. package/dist/collection/components/sign-in/sign-in.js +400 -0
  289. package/dist/collection/components/sign-in/sign-in.types.js +1 -0
  290. package/dist/collection/components/skip-link/skip-link-item/skip-link-item-alias.js +103 -0
  291. package/dist/collection/components/skip-link/skip-link-item/skip-link-item.css +1 -0
  292. package/dist/collection/components/skip-link/skip-link-item/skip-link-item.js +450 -0
  293. package/dist/collection/components/skip-link/skip-link.css +1 -0
  294. package/dist/collection/components/skip-link/skip-link.js +699 -0
  295. package/dist/collection/components/skip-link/skip-link.types.js +1 -0
  296. package/dist/collection/components/slider/slider.css +1 -0
  297. package/dist/collection/components/slider/slider.js +1325 -0
  298. package/dist/collection/components/slider/slider.types.js +1 -0
  299. package/dist/collection/components/step/step-item/step-item.css +1 -0
  300. package/dist/collection/components/step/step-item/step-item.js +604 -0
  301. package/dist/collection/components/step/step-item/step-item.types.js +1 -0
  302. package/dist/collection/components/step/step.css +1 -0
  303. package/dist/collection/components/step/step.js +896 -0
  304. package/dist/collection/components/step/step.types.js +1 -0
  305. package/dist/collection/components/switch/switch.css +1 -0
  306. package/dist/collection/components/switch/switch.js +715 -0
  307. package/dist/collection/components/switch/switch.types.js +1 -0
  308. package/dist/collection/components/tab/tab-item/tab-item.css +1 -0
  309. package/dist/collection/components/tab/tab-item/tab-item.js +425 -0
  310. package/dist/collection/components/tab/tab.css +1 -0
  311. package/dist/collection/components/tab/tab.js +724 -0
  312. package/dist/collection/components/tab/tab.types.js +1 -0
  313. package/dist/collection/components/table/table-body/table-body.css +1 -0
  314. package/dist/collection/components/table/table-body/table-body.js +51 -0
  315. package/dist/collection/components/table/table-cell/table-cell.css +1 -0
  316. package/dist/collection/components/table/table-cell/table-cell.js +373 -0
  317. package/dist/collection/components/table/table-constants.js +171 -0
  318. package/dist/collection/components/table/table-header/table-header.css +1 -0
  319. package/dist/collection/components/table/table-header/table-header.js +51 -0
  320. package/dist/collection/components/table/table-header-cell/table-header-cell.css +1 -0
  321. package/dist/collection/components/table/table-header-cell/table-header-cell.js +402 -0
  322. package/dist/collection/components/table/table-row/table-row.css +1 -0
  323. package/dist/collection/components/table/table-row/table-row.js +261 -0
  324. package/dist/collection/components/table/table-tokens.js +50 -0
  325. package/dist/collection/components/table/table-types.js +1 -0
  326. package/dist/collection/components/table/table-utils.js +44 -0
  327. package/dist/collection/components/table/table.css +1 -0
  328. package/dist/collection/components/table/table.js +1030 -0
  329. package/dist/collection/components/tag/tag.css +1 -0
  330. package/dist/collection/components/tag/tag.js +1153 -0
  331. package/dist/collection/components/tag/tag.types.js +1 -0
  332. package/dist/collection/components/textarea/textarea.css +1 -0
  333. package/dist/collection/components/textarea/textarea.js +985 -0
  334. package/dist/collection/components/textarea/textarea.types.js +1 -0
  335. package/dist/collection/components/tooltip/tooltip.css +1 -0
  336. package/dist/collection/components/tooltip/tooltip.js +1024 -0
  337. package/dist/collection/components/tooltip/tooltip.types.js +1 -0
  338. package/dist/collection/components/upload/upload.css +1 -0
  339. package/dist/collection/components/upload/upload.js +1315 -0
  340. package/dist/collection/components/upload/upload.types.js +1 -0
  341. package/dist/collection/components/wizard/wizard-panel/wizard-panel.css +1 -0
  342. package/dist/collection/components/wizard/wizard-panel/wizard-panel.js +167 -0
  343. package/dist/collection/components/wizard/wizard.css +1 -0
  344. package/dist/collection/components/wizard/wizard.js +1228 -0
  345. package/dist/collection/index.js +14 -0
  346. package/dist/collection/pages/components/cookiebar/index.js +26 -0
  347. package/dist/collection/pages/components/link/index.js +29 -0
  348. package/dist/collection/pages/components/pagination/index.js +12 -0
  349. package/dist/collection/pages/components/slider/index.js +18 -0
  350. package/dist/collection/pages/scripts/code-editor.js +101 -0
  351. package/dist/collection/pages/scripts/component-controls.js +591 -0
  352. package/dist/collection/pages/scripts/dev-event-console.js +47 -0
  353. package/dist/collection/pages/scripts/menu.js +183 -0
  354. package/dist/collection/pages/scripts/pageLoader.js +1420 -0
  355. package/dist/collection/shared/utils/assetsPath.js +75 -0
  356. package/dist/collection/shared/utils/breakpoint-observer.js +139 -0
  357. package/dist/collection/shared/utils/clamp.js +21 -0
  358. package/dist/collection/shared/utils/css-variables.js +12 -0
  359. package/dist/collection/shared/utils/cssVariables.js +37 -0
  360. package/dist/collection/shared/utils/date.js +405 -0
  361. package/dist/collection/shared/utils/debounce.js +39 -0
  362. package/dist/collection/shared/utils/event.js +55 -0
  363. package/dist/collection/shared/utils/floating-surface-dismiss.js +59 -0
  364. package/dist/collection/shared/utils/floating-ui.js +131 -0
  365. package/dist/collection/shared/utils/focus.js +24 -0
  366. package/dist/collection/shared/utils/form.js +82 -0
  367. package/dist/collection/shared/utils/format-bytes.js +20 -0
  368. package/dist/collection/shared/utils/getNextElement.js +30 -0
  369. package/dist/collection/shared/utils/getRandom.js +27 -0
  370. package/dist/collection/shared/utils/helpers.js +31 -0
  371. package/dist/collection/shared/utils/id.js +16 -0
  372. package/dist/collection/shared/utils/index.js +60 -0
  373. package/dist/collection/shared/utils/interfaces.js +1 -0
  374. package/dist/collection/shared/utils/isClient.js +14 -0
  375. package/dist/collection/shared/utils/isDefined.js +19 -0
  376. package/dist/collection/shared/utils/isEmpty.js +30 -0
  377. package/dist/collection/shared/utils/isHTMLElement.js +16 -0
  378. package/dist/collection/shared/utils/isNil.js +15 -0
  379. package/dist/collection/shared/utils/isString.js +20 -0
  380. package/dist/collection/shared/utils/native-dialog.js +44 -0
  381. package/dist/collection/shared/utils/navigation.js +21 -0
  382. package/dist/collection/shared/utils/parts.js +15 -0
  383. package/dist/collection/shared/utils/prop-warning.js +7 -0
  384. package/dist/collection/shared/utils/props.js +37 -0
  385. package/dist/collection/shared/utils/raf-batcher.js +51 -0
  386. package/dist/collection/shared/utils/scrollLock.js +141 -0
  387. package/dist/collection/shared/utils/setRafTimeout.js +38 -0
  388. package/dist/collection/shared/utils/slot.js +113 -0
  389. package/dist/collection/shared/utils/ssr-date.js +33 -0
  390. package/dist/collection/shared/utils/stringToArray.js +29 -0
  391. package/dist/collection/shared/utils/swipe.js +342 -0
  392. package/dist/collection/shared/utils/transition.js +127 -0
  393. package/dist/collection/shared/utils/types.js +1 -0
  394. package/dist/collection/shared/utils/validator.js +51 -0
  395. package/dist/collection/value-accessors/angular-value-accessor-config.js +41 -0
  396. package/dist/collection/value-accessors/index.js +6 -0
  397. package/dist/collection/value-accessors/vue-model-config.js +43 -0
  398. package/dist/components/br-avatar.d.ts +11 -0
  399. package/dist/components/br-avatar.js +5 -0
  400. package/dist/components/br-breadcrumb-item.d.ts +11 -0
  401. package/dist/components/br-breadcrumb-item.js +5 -0
  402. package/dist/components/br-breadcrumb.d.ts +11 -0
  403. package/dist/components/br-breadcrumb.js +5 -0
  404. package/dist/components/br-button.d.ts +11 -0
  405. package/dist/components/br-button.js +5 -0
  406. package/dist/components/br-card.d.ts +11 -0
  407. package/dist/components/br-card.js +5 -0
  408. package/dist/components/br-carousel-page.d.ts +11 -0
  409. package/dist/components/br-carousel-page.js +5 -0
  410. package/dist/components/br-carousel.d.ts +11 -0
  411. package/dist/components/br-carousel.js +5 -0
  412. package/dist/components/br-checkbox-group.d.ts +11 -0
  413. package/dist/components/br-checkbox-group.js +5 -0
  414. package/dist/components/br-checkbox.d.ts +11 -0
  415. package/dist/components/br-checkbox.js +5 -0
  416. package/dist/components/br-checkgroup.d.ts +11 -0
  417. package/dist/components/br-checkgroup.js +5 -0
  418. package/dist/components/br-collapse.d.ts +11 -0
  419. package/dist/components/br-collapse.js +5 -0
  420. package/dist/components/br-cookiebar-cookie.d.ts +11 -0
  421. package/dist/components/br-cookiebar-cookie.js +5 -0
  422. package/dist/components/br-cookiebar-group.d.ts +11 -0
  423. package/dist/components/br-cookiebar-group.js +5 -0
  424. package/dist/components/br-cookiebar-header.d.ts +11 -0
  425. package/dist/components/br-cookiebar-header.js +5 -0
  426. package/dist/components/br-cookiebar-link.d.ts +11 -0
  427. package/dist/components/br-cookiebar-link.js +5 -0
  428. package/dist/components/br-cookiebar-note-group.d.ts +11 -0
  429. package/dist/components/br-cookiebar-note-group.js +5 -0
  430. package/dist/components/br-cookiebar-note.d.ts +11 -0
  431. package/dist/components/br-cookiebar-note.js +5 -0
  432. package/dist/components/br-cookiebar.d.ts +11 -0
  433. package/dist/components/br-cookiebar.js +5 -0
  434. package/dist/components/br-crumb.d.ts +11 -0
  435. package/dist/components/br-crumb.js +5 -0
  436. package/dist/components/br-date-picker.d.ts +11 -0
  437. package/dist/components/br-date-picker.js +5 -0
  438. package/dist/components/br-datetime-input.d.ts +11 -0
  439. package/dist/components/br-datetime-input.js +5 -0
  440. package/dist/components/br-datetime-picker.d.ts +11 -0
  441. package/dist/components/br-datetime-picker.js +5 -0
  442. package/dist/components/br-divider.d.ts +11 -0
  443. package/dist/components/br-divider.js +5 -0
  444. package/dist/components/br-dropdown.d.ts +11 -0
  445. package/dist/components/br-dropdown.js +5 -0
  446. package/dist/components/br-footer-category.d.ts +11 -0
  447. package/dist/components/br-footer-category.js +5 -0
  448. package/dist/components/br-footer-item.d.ts +11 -0
  449. package/dist/components/br-footer-item.js +5 -0
  450. package/dist/components/br-footer-legal.d.ts +11 -0
  451. package/dist/components/br-footer-legal.js +5 -0
  452. package/dist/components/br-footer-logo.d.ts +11 -0
  453. package/dist/components/br-footer-logo.js +5 -0
  454. package/dist/components/br-footer-social.d.ts +11 -0
  455. package/dist/components/br-footer-social.js +5 -0
  456. package/dist/components/br-footer.d.ts +11 -0
  457. package/dist/components/br-footer.js +5 -0
  458. package/dist/components/br-header-function.d.ts +11 -0
  459. package/dist/components/br-header-function.js +5 -0
  460. package/dist/components/br-header-link.d.ts +11 -0
  461. package/dist/components/br-header-link.js +5 -0
  462. package/dist/components/br-header-list.d.ts +11 -0
  463. package/dist/components/br-header-list.js +5 -0
  464. package/dist/components/br-header-logo.d.ts +11 -0
  465. package/dist/components/br-header-logo.js +5 -0
  466. package/dist/components/br-header.d.ts +11 -0
  467. package/dist/components/br-header.js +5 -0
  468. package/dist/components/br-icon.d.ts +11 -0
  469. package/dist/components/br-icon.js +5 -0
  470. package/dist/components/br-input.d.ts +11 -0
  471. package/dist/components/br-input.js +5 -0
  472. package/dist/components/br-item.d.ts +11 -0
  473. package/dist/components/br-item.js +5 -0
  474. package/dist/components/br-link.d.ts +11 -0
  475. package/dist/components/br-link.js +5 -0
  476. package/dist/components/br-list.d.ts +11 -0
  477. package/dist/components/br-list.js +5 -0
  478. package/dist/components/br-loading.d.ts +11 -0
  479. package/dist/components/br-loading.js +5 -0
  480. package/dist/components/br-magic-button.d.ts +11 -0
  481. package/dist/components/br-magic-button.js +5 -0
  482. package/dist/components/br-menu-group.d.ts +11 -0
  483. package/dist/components/br-menu-group.js +5 -0
  484. package/dist/components/br-menu-header.d.ts +11 -0
  485. package/dist/components/br-menu-header.js +5 -0
  486. package/dist/components/br-menu-info.d.ts +11 -0
  487. package/dist/components/br-menu-info.js +5 -0
  488. package/dist/components/br-menu-item.d.ts +11 -0
  489. package/dist/components/br-menu-item.js +5 -0
  490. package/dist/components/br-menu-link.d.ts +11 -0
  491. package/dist/components/br-menu-link.js +5 -0
  492. package/dist/components/br-menu-list.d.ts +11 -0
  493. package/dist/components/br-menu-list.js +5 -0
  494. package/dist/components/br-menu-logo.d.ts +11 -0
  495. package/dist/components/br-menu-logo.js +5 -0
  496. package/dist/components/br-menu-social.d.ts +11 -0
  497. package/dist/components/br-menu-social.js +5 -0
  498. package/dist/components/br-menu.d.ts +11 -0
  499. package/dist/components/br-menu.js +5 -0
  500. package/dist/components/br-message.d.ts +11 -0
  501. package/dist/components/br-message.js +5 -0
  502. package/dist/components/br-modal.d.ts +11 -0
  503. package/dist/components/br-modal.js +5 -0
  504. package/dist/components/br-notification-body.d.ts +11 -0
  505. package/dist/components/br-notification-body.js +5 -0
  506. package/dist/components/br-notification-header.d.ts +11 -0
  507. package/dist/components/br-notification-header.js +5 -0
  508. package/dist/components/br-notification-item.d.ts +11 -0
  509. package/dist/components/br-notification-item.js +5 -0
  510. package/dist/components/br-notification.d.ts +11 -0
  511. package/dist/components/br-notification.js +5 -0
  512. package/dist/components/br-pagination.d.ts +11 -0
  513. package/dist/components/br-pagination.js +5 -0
  514. package/dist/components/br-radio-group.d.ts +11 -0
  515. package/dist/components/br-radio-group.js +5 -0
  516. package/dist/components/br-radio.d.ts +11 -0
  517. package/dist/components/br-radio.js +5 -0
  518. package/dist/components/br-scrim.d.ts +11 -0
  519. package/dist/components/br-scrim.js +5 -0
  520. package/dist/components/br-select-input.d.ts +11 -0
  521. package/dist/components/br-select-input.js +5 -0
  522. package/dist/components/br-select-list.d.ts +11 -0
  523. package/dist/components/br-select-list.js +5 -0
  524. package/dist/components/br-select-option.d.ts +11 -0
  525. package/dist/components/br-select-option.js +5 -0
  526. package/dist/components/br-select.d.ts +11 -0
  527. package/dist/components/br-select.js +5 -0
  528. package/dist/components/br-sign-in.d.ts +11 -0
  529. package/dist/components/br-sign-in.js +5 -0
  530. package/dist/components/br-skip-link-item.d.ts +11 -0
  531. package/dist/components/br-skip-link-item.js +5 -0
  532. package/dist/components/br-skip-link.d.ts +11 -0
  533. package/dist/components/br-skip-link.js +5 -0
  534. package/dist/components/br-skiplink-item.d.ts +11 -0
  535. package/dist/components/br-skiplink-item.js +5 -0
  536. package/dist/components/br-slider.d.ts +11 -0
  537. package/dist/components/br-slider.js +5 -0
  538. package/dist/components/br-step-item.d.ts +11 -0
  539. package/dist/components/br-step-item.js +5 -0
  540. package/dist/components/br-step.d.ts +11 -0
  541. package/dist/components/br-step.js +5 -0
  542. package/dist/components/br-switch.d.ts +11 -0
  543. package/dist/components/br-switch.js +5 -0
  544. package/dist/components/br-tab-item.d.ts +11 -0
  545. package/dist/components/br-tab-item.js +5 -0
  546. package/dist/components/br-tab.d.ts +11 -0
  547. package/dist/components/br-tab.js +5 -0
  548. package/dist/components/br-table-body.d.ts +11 -0
  549. package/dist/components/br-table-body.js +5 -0
  550. package/dist/components/br-table-cell.d.ts +11 -0
  551. package/dist/components/br-table-cell.js +5 -0
  552. package/dist/components/br-table-header-cell.d.ts +11 -0
  553. package/dist/components/br-table-header-cell.js +5 -0
  554. package/dist/components/br-table-header.d.ts +11 -0
  555. package/dist/components/br-table-header.js +5 -0
  556. package/dist/components/br-table-row.d.ts +11 -0
  557. package/dist/components/br-table-row.js +5 -0
  558. package/dist/components/br-table.d.ts +11 -0
  559. package/dist/components/br-table.js +5 -0
  560. package/dist/components/br-tag.d.ts +11 -0
  561. package/dist/components/br-tag.js +5 -0
  562. package/dist/components/br-textarea.d.ts +11 -0
  563. package/dist/components/br-textarea.js +5 -0
  564. package/dist/components/br-time-picker.d.ts +11 -0
  565. package/dist/components/br-time-picker.js +5 -0
  566. package/dist/components/br-tooltip.d.ts +11 -0
  567. package/dist/components/br-tooltip.js +5 -0
  568. package/dist/components/br-upload.d.ts +11 -0
  569. package/dist/components/br-upload.js +5 -0
  570. package/dist/components/br-wizard-panel.d.ts +11 -0
  571. package/dist/components/br-wizard-panel.js +5 -0
  572. package/dist/components/br-wizard.d.ts +11 -0
  573. package/dist/components/br-wizard.js +5 -0
  574. package/dist/components/index.d.ts +213 -0
  575. package/dist/components/index.js +5 -0
  576. package/dist/components/p-0IYmyaTi.js +5 -0
  577. package/dist/components/p-41XwlWiS.js +5 -0
  578. package/dist/components/p-5z6jgH1D.js +5 -0
  579. package/dist/components/p-6OdfnwnK.js +5 -0
  580. package/dist/components/p-9S9bgUT0.js +5 -0
  581. package/dist/components/p-B-qLmYZC.js +5 -0
  582. package/dist/components/p-B-sbd1_h.js +5 -0
  583. package/dist/components/p-B55qsau4.js +5 -0
  584. package/dist/components/p-BC7f6MK8.js +5 -0
  585. package/dist/components/p-BPJpHGOW.js +5 -0
  586. package/dist/components/p-BW0_ORNA.js +5 -0
  587. package/dist/components/p-BWXfdbQH.js +5 -0
  588. package/dist/components/p-Bb-nLtTG.js +5 -0
  589. package/dist/components/p-BkS6ujyf.js +5 -0
  590. package/dist/components/p-Bm0ECvfB.js +5 -0
  591. package/dist/components/p-C1yRmdso.js +5 -0
  592. package/dist/components/p-C3LQSQpc.js +5 -0
  593. package/dist/components/p-C98-mHmV.js +5 -0
  594. package/dist/components/p-CDZFuUlU.js +5 -0
  595. package/dist/components/p-CRfi23Rd.js +5 -0
  596. package/dist/components/p-CUI5zWGf.js +5 -0
  597. package/dist/components/p-CXMwM9m4.js +5 -0
  598. package/dist/components/p-CdDwqbBv.js +5 -0
  599. package/dist/components/p-CxviDiCr.js +5 -0
  600. package/dist/components/p-D3usVJE2.js +16 -0
  601. package/dist/components/p-D6zroLx5.js +5 -0
  602. package/dist/components/p-D9SpD3Ay.js +5 -0
  603. package/dist/components/p-DA5GS53D.js +5 -0
  604. package/dist/components/p-DBP6K_aq.js +5 -0
  605. package/dist/components/p-DBmwzG9E.js +5 -0
  606. package/dist/components/p-DCrVo-8T.js +5 -0
  607. package/dist/components/p-DIK54tTj.js +5 -0
  608. package/dist/components/p-DQRSHR-D.js +5 -0
  609. package/dist/components/p-DRVMm1Py.js +5 -0
  610. package/dist/components/p-DWPmUV72.js +5 -0
  611. package/dist/components/p-DYA74R1r.js +5 -0
  612. package/dist/components/p-DYnkGWii.js +5 -0
  613. package/dist/components/p-D_CSvOY9.js +5 -0
  614. package/dist/components/p-DaeGwqw0.js +5 -0
  615. package/dist/components/p-Dkg2scYZ.js +5 -0
  616. package/dist/components/p-Dmfk7eEe.js +5 -0
  617. package/dist/components/p-DoXNfcTT.js +5 -0
  618. package/dist/components/p-DvrdmqoQ.js +5 -0
  619. package/dist/components/p-DxZJrIyL.js +5 -0
  620. package/dist/components/p-LmeJrLxH.js +5 -0
  621. package/dist/components/p-TFWd_UBV.js +5 -0
  622. package/dist/components/p-aF8bGN3t.js +5 -0
  623. package/dist/components/p-bhULC15U.js +5 -0
  624. package/dist/components/p-cF3ia5e9.js +5 -0
  625. package/dist/components/p-cfPt-vKA.js +5 -0
  626. package/dist/components/p-gvnfuTjd.js +5 -0
  627. package/dist/components/p-nJOJGpyl.js +5 -0
  628. package/dist/components/p-ttI0nvv_.js +5 -0
  629. package/dist/esm/app-globals-DVjNHTTs.js +7 -0
  630. package/dist/esm/br-avatar.entry.js +246 -0
  631. package/dist/esm/br-breadcrumb-item.entry.js +43 -0
  632. package/dist/esm/br-breadcrumb.entry.js +441 -0
  633. package/dist/esm/br-button_2.entry.js +277 -0
  634. package/dist/esm/br-card.entry.js +109 -0
  635. package/dist/esm/br-carousel-page.entry.js +78 -0
  636. package/dist/esm/br-carousel.entry.js +563 -0
  637. package/dist/esm/br-checkbox-group.entry.js +116 -0
  638. package/dist/esm/br-checkbox.entry.js +286 -0
  639. package/dist/esm/br-checkgroup.entry.js +18 -0
  640. package/dist/esm/br-collapse_2.entry.js +680 -0
  641. package/dist/esm/br-cookiebar-cookie.entry.js +81 -0
  642. package/dist/esm/br-cookiebar-group.entry.js +307 -0
  643. package/dist/esm/br-cookiebar-header.entry.js +37 -0
  644. package/dist/esm/br-cookiebar-link.entry.js +52 -0
  645. package/dist/esm/br-cookiebar-note-group.entry.js +68 -0
  646. package/dist/esm/br-cookiebar-note.entry.js +23 -0
  647. package/dist/esm/br-cookiebar.entry.js +756 -0
  648. package/dist/esm/br-crumb.entry.js +49 -0
  649. package/dist/esm/br-date-picker_3.entry.js +2442 -0
  650. package/dist/esm/br-datetime-picker.entry.js +1885 -0
  651. package/dist/esm/br-divider.entry.js +223 -0
  652. package/dist/esm/br-dropdown_2.entry.js +1853 -0
  653. package/dist/esm/br-footer-category.entry.js +100 -0
  654. package/dist/esm/br-footer-item.entry.js +50 -0
  655. package/dist/esm/br-footer-legal.entry.js +39 -0
  656. package/dist/esm/br-footer-logo.entry.js +102 -0
  657. package/dist/esm/br-footer-social.entry.js +69 -0
  658. package/dist/esm/br-footer.entry.js +90 -0
  659. package/dist/esm/br-header-function.entry.js +140 -0
  660. package/dist/esm/br-header-link.entry.js +58 -0
  661. package/dist/esm/br-header-list.entry.js +277 -0
  662. package/dist/esm/br-header-logo.entry.js +175 -0
  663. package/dist/esm/br-header.entry.js +640 -0
  664. package/dist/esm/br-icon.entry.js +483 -0
  665. package/dist/esm/br-input.entry.js +597 -0
  666. package/dist/esm/br-item.entry.js +354 -0
  667. package/dist/esm/br-link.entry.js +130 -0
  668. package/dist/esm/br-loading.entry.js +503 -0
  669. package/dist/esm/br-magic-button.entry.js +90 -0
  670. package/dist/esm/br-menu-group.entry.js +21 -0
  671. package/dist/esm/br-menu-header.entry.js +45 -0
  672. package/dist/esm/br-menu-info.entry.js +36 -0
  673. package/dist/esm/br-menu-item.entry.js +77 -0
  674. package/dist/esm/br-menu-link.entry.js +53 -0
  675. package/dist/esm/br-menu-list.entry.js +147 -0
  676. package/dist/esm/br-menu-logo.entry.js +73 -0
  677. package/dist/esm/br-menu-social.entry.js +63 -0
  678. package/dist/esm/br-menu.entry.js +991 -0
  679. package/dist/esm/br-modal.entry.js +494 -0
  680. package/dist/esm/br-notification-body.entry.js +69 -0
  681. package/dist/esm/br-notification-header.entry.js +46 -0
  682. package/dist/esm/br-notification-item.entry.js +108 -0
  683. package/dist/esm/br-notification.entry.js +332 -0
  684. package/dist/esm/br-pagination.entry.js +882 -0
  685. package/dist/esm/br-radio-group.entry.js +426 -0
  686. package/dist/esm/br-radio.entry.js +355 -0
  687. package/dist/esm/br-scrim.entry.js +1334 -0
  688. package/dist/esm/br-select-input_3.entry.js +950 -0
  689. package/dist/esm/br-sign-in.entry.js +123 -0
  690. package/dist/esm/br-skip-link-item.entry.js +18 -0
  691. package/dist/esm/br-skip-link.entry.js +360 -0
  692. package/dist/esm/br-skiplink-item.entry.js +190 -0
  693. package/dist/esm/br-slider.entry.js +686 -0
  694. package/dist/esm/br-step_2.entry.js +625 -0
  695. package/dist/esm/br-switch.entry.js +243 -0
  696. package/dist/esm/br-tab-item.entry.js +183 -0
  697. package/dist/esm/br-tab.entry.js +395 -0
  698. package/dist/esm/br-table-body.entry.js +35 -0
  699. package/dist/esm/br-table-cell.entry.js +182 -0
  700. package/dist/esm/br-table-header-cell.entry.js +171 -0
  701. package/dist/esm/br-table-header.entry.js +35 -0
  702. package/dist/esm/br-table-row.entry.js +79 -0
  703. package/dist/esm/br-table.entry.js +678 -0
  704. package/dist/esm/br-tag.entry.js +492 -0
  705. package/dist/esm/br-textarea.entry.js +304 -0
  706. package/dist/esm/br-tooltip.entry.js +625 -0
  707. package/dist/esm/br-upload.entry.js +580 -0
  708. package/dist/esm/br-wizard-panel.entry.js +52 -0
  709. package/dist/esm/br-wizard.entry.js +706 -0
  710. package/dist/esm/breakpoint-observer-DBmwzG9E.js +141 -0
  711. package/dist/esm/clamp-gvnfuTjd.js +23 -0
  712. package/dist/esm/cookiebar.utils-DYA74R1r.js +16 -0
  713. package/dist/esm/datetime-picker-constants-Bfm58jO6.js +3798 -0
  714. package/dist/esm/event-DFN_so7I.js +48 -0
  715. package/dist/esm/floating-surface-dismiss-BWXfdbQH.js +61 -0
  716. package/dist/esm/floating-ui-BavFwMnx.js +134 -0
  717. package/dist/esm/floating-ui.dom-DIK54tTj.js +1707 -0
  718. package/dist/esm/focus-DxZJrIyL.js +26 -0
  719. package/dist/esm/getNextElement-9S9bgUT0.js +28 -0
  720. package/dist/esm/iconify-icon-D3usVJE2.js +2303 -0
  721. package/dist/esm/id-BkS6ujyf.js +18 -0
  722. package/dist/esm/index-Bo-2igoO.js +671 -0
  723. package/dist/esm/index-C2RBydfd.js +3258 -0
  724. package/dist/esm/index.js +6 -0
  725. package/dist/esm/isNil-B-qLmYZC.js +17 -0
  726. package/dist/esm/isValid-DIUZX1qS.js +3684 -0
  727. package/dist/esm/loader.js +15 -0
  728. package/dist/esm/native-dialog-B55qsau4.js +46 -0
  729. package/dist/esm/navigation-bhULC15U.js +23 -0
  730. package/dist/esm/parts-Bb5vVlCC.js +17 -0
  731. package/dist/esm/props-DRVMm1Py.js +22 -0
  732. package/dist/esm/raf-batcher-cF3ia5e9.js +53 -0
  733. package/dist/esm/slot-BIG-yees.js +44 -0
  734. package/dist/esm/swipe-Dmfk7eEe.js +343 -0
  735. package/dist/esm/table-constants-CXMwM9m4.js +170 -0
  736. package/dist/esm/validator-D3tVP32U.js +113 -0
  737. package/dist/esm/webcomponents.js +46 -0
  738. package/dist/hydrate/index.d.ts +287 -0
  739. package/dist/hydrate/index.js +67323 -0
  740. package/dist/hydrate/index.mjs +67313 -0
  741. package/dist/hydrate/package.json +12 -0
  742. package/dist/index.cjs.js +1 -0
  743. package/dist/index.js +1 -0
  744. package/dist/loader/cdn.js +5 -0
  745. package/dist/loader/index.cjs.js +5 -0
  746. package/dist/loader/index.d.ts +24 -0
  747. package/dist/loader/index.es2017.js +5 -0
  748. package/dist/loader/index.js +6 -0
  749. package/dist/webcomponents/index.esm.js +5 -0
  750. package/dist/webcomponents/p-0196804a.entry.js +5 -0
  751. package/dist/webcomponents/p-0410186a.entry.js +5 -0
  752. package/dist/webcomponents/p-0415ef22.entry.js +5 -0
  753. package/dist/webcomponents/p-059c3d6c.entry.js +5 -0
  754. package/dist/webcomponents/p-0b8f39bc.entry.js +5 -0
  755. package/dist/webcomponents/p-0caa4d12.entry.js +5 -0
  756. package/dist/webcomponents/p-0d4f718d.entry.js +5 -0
  757. package/dist/webcomponents/p-0e84c9e8.entry.js +5 -0
  758. package/dist/webcomponents/p-12286e73.entry.js +5 -0
  759. package/dist/webcomponents/p-147ac8d3.entry.js +5 -0
  760. package/dist/webcomponents/p-1580beee.entry.js +5 -0
  761. package/dist/webcomponents/p-1b138f1c.entry.js +5 -0
  762. package/dist/webcomponents/p-1bca4499.entry.js +5 -0
  763. package/dist/webcomponents/p-1d6b0b6f.entry.js +5 -0
  764. package/dist/webcomponents/p-1d8cb8fd.entry.js +5 -0
  765. package/dist/webcomponents/p-22443c08.entry.js +5 -0
  766. package/dist/webcomponents/p-224daaac.entry.js +5 -0
  767. package/dist/webcomponents/p-28426d2a.entry.js +5 -0
  768. package/dist/webcomponents/p-2abd2da0.entry.js +5 -0
  769. package/dist/webcomponents/p-2fdc51ae.entry.js +5 -0
  770. package/dist/webcomponents/p-30c428b6.entry.js +5 -0
  771. package/dist/webcomponents/p-36bbea4e.entry.js +5 -0
  772. package/dist/webcomponents/p-3907ebfa.entry.js +5 -0
  773. package/dist/webcomponents/p-39a16f9d.entry.js +5 -0
  774. package/dist/webcomponents/p-3ebbd2f5.entry.js +5 -0
  775. package/dist/webcomponents/p-3ef7eac8.entry.js +5 -0
  776. package/dist/webcomponents/p-45356e9a.entry.js +5 -0
  777. package/dist/webcomponents/p-46513db4.entry.js +5 -0
  778. package/dist/webcomponents/p-4fe12a72.entry.js +5 -0
  779. package/dist/webcomponents/p-52df61cb.entry.js +5 -0
  780. package/dist/webcomponents/p-569134cf.entry.js +5 -0
  781. package/dist/webcomponents/p-5b257a4b.entry.js +5 -0
  782. package/dist/webcomponents/p-5ce7db4a.entry.js +5 -0
  783. package/dist/webcomponents/p-5f373708.entry.js +5 -0
  784. package/dist/webcomponents/p-5f6afb79.entry.js +5 -0
  785. package/dist/webcomponents/p-5fc7ba4c.entry.js +5 -0
  786. package/dist/webcomponents/p-60cc820c.entry.js +5 -0
  787. package/dist/webcomponents/p-66006312.entry.js +5 -0
  788. package/dist/webcomponents/p-66b13fd9.entry.js +5 -0
  789. package/dist/webcomponents/p-6OdfnwnK.js +5 -0
  790. package/dist/webcomponents/p-6c5f6cb6.entry.js +5 -0
  791. package/dist/webcomponents/p-6f1c4425.entry.js +5 -0
  792. package/dist/webcomponents/p-750799b7.entry.js +5 -0
  793. package/dist/webcomponents/p-756ff2ad.entry.js +5 -0
  794. package/dist/webcomponents/p-765bfe27.entry.js +5 -0
  795. package/dist/webcomponents/p-7ab96c11.entry.js +5 -0
  796. package/dist/webcomponents/p-7c2ff8b4.entry.js +5 -0
  797. package/dist/webcomponents/p-7cf9f4e5.entry.js +5 -0
  798. package/dist/webcomponents/p-7e1856e4.entry.js +5 -0
  799. package/dist/webcomponents/p-7f7506f0.entry.js +5 -0
  800. package/dist/webcomponents/p-7fb03a49.entry.js +5 -0
  801. package/dist/webcomponents/p-82200563.entry.js +5 -0
  802. package/dist/webcomponents/p-85f8063b.entry.js +5 -0
  803. package/dist/webcomponents/p-8b558233.entry.js +5 -0
  804. package/dist/webcomponents/p-8e6c2767.entry.js +5 -0
  805. package/dist/webcomponents/p-966ad32f.entry.js +5 -0
  806. package/dist/webcomponents/p-9679d230.entry.js +5 -0
  807. package/dist/webcomponents/p-96dd663b.entry.js +5 -0
  808. package/dist/webcomponents/p-98843fa3.entry.js +5 -0
  809. package/dist/webcomponents/p-9S9bgUT0.js +5 -0
  810. package/dist/webcomponents/p-9a375eff.entry.js +5 -0
  811. package/dist/webcomponents/p-9b358cff.entry.js +5 -0
  812. package/dist/webcomponents/p-9f7558c7.entry.js +5 -0
  813. package/dist/webcomponents/p-B-qLmYZC.js +5 -0
  814. package/dist/webcomponents/p-B55qsau4.js +5 -0
  815. package/dist/webcomponents/p-BIG-yees.js +5 -0
  816. package/dist/webcomponents/p-BWXfdbQH.js +5 -0
  817. package/dist/webcomponents/p-Bb5vVlCC.js +5 -0
  818. package/dist/webcomponents/p-Bfm58jO6.js +5 -0
  819. package/dist/webcomponents/p-BhMVJQ4-.js +5 -0
  820. package/dist/webcomponents/p-BkS6ujyf.js +5 -0
  821. package/dist/webcomponents/p-C2RBydfd.js +6 -0
  822. package/dist/webcomponents/p-CO5cOQQU.js +5 -0
  823. package/dist/webcomponents/p-CXMwM9m4.js +5 -0
  824. package/dist/webcomponents/p-D3tVP32U.js +5 -0
  825. package/dist/webcomponents/p-D3usVJE2.js +16 -0
  826. package/dist/webcomponents/p-DBmwzG9E.js +5 -0
  827. package/dist/webcomponents/p-DFN_so7I.js +5 -0
  828. package/dist/webcomponents/p-DIK54tTj.js +5 -0
  829. package/dist/webcomponents/p-DRVMm1Py.js +5 -0
  830. package/dist/webcomponents/p-DVjNHTTs.js +5 -0
  831. package/dist/webcomponents/p-DYA74R1r.js +5 -0
  832. package/dist/webcomponents/p-Dmfk7eEe.js +5 -0
  833. package/dist/webcomponents/p-DxZJrIyL.js +5 -0
  834. package/dist/webcomponents/p-a382e115.entry.js +5 -0
  835. package/dist/webcomponents/p-a9ff7c25.entry.js +5 -0
  836. package/dist/webcomponents/p-bba9fc09.entry.js +5 -0
  837. package/dist/webcomponents/p-bhULC15U.js +5 -0
  838. package/dist/webcomponents/p-c0b0f531.entry.js +5 -0
  839. package/dist/webcomponents/p-c211af17.entry.js +5 -0
  840. package/dist/webcomponents/p-c492d926.entry.js +5 -0
  841. package/dist/webcomponents/p-c4cfe599.entry.js +5 -0
  842. package/dist/webcomponents/p-c846e784.entry.js +5 -0
  843. package/dist/webcomponents/p-cF3ia5e9.js +5 -0
  844. package/dist/webcomponents/p-cedb8eea.entry.js +5 -0
  845. package/dist/webcomponents/p-d1e899cd.entry.js +5 -0
  846. package/dist/webcomponents/p-d38d82cc.entry.js +5 -0
  847. package/dist/webcomponents/p-dba376cb.entry.js +5 -0
  848. package/dist/webcomponents/p-e0ce536a.entry.js +5 -0
  849. package/dist/webcomponents/p-e1331288.entry.js +5 -0
  850. package/dist/webcomponents/p-e360a463.entry.js +5 -0
  851. package/dist/webcomponents/p-e80a1eb0.entry.js +5 -0
  852. package/dist/webcomponents/p-f078f972.entry.js +5 -0
  853. package/dist/webcomponents/p-f6318e94.entry.js +5 -0
  854. package/dist/webcomponents/p-fcd4ae48.entry.js +5 -0
  855. package/dist/webcomponents/p-gvnfuTjd.js +5 -0
  856. package/dist/webcomponents/webcomponents.esm.js +5 -0
  857. package/package.json +1 -1
  858. package/cem/.gitkeep +0 -0
@@ -0,0 +1,1336 @@
1
+ /*!
2
+ * Construído por SERPRO
3
+ * © https://serpro.gov.br/ - MIT License.
4
+ */
5
+ 'use strict';
6
+
7
+ var index = require('./index-CRdcutym.js');
8
+ var id = require('./id-CjRFMzf6.js');
9
+ var nativeDialog = require('./native-dialog--Ewqm4w0.js');
10
+ var rafBatcher = require('./raf-batcher-yc87a4dS.js');
11
+
12
+ /**
13
+ * Utilitário para detecção de ambiente de execução (browser/client).
14
+ *
15
+ * Verifica se o código está sendo executado no ambiente do navegador.
16
+ *
17
+ * @returns `true` quando `window` e `document` estão disponíveis.
18
+ */
19
+ const isClient = () => {
20
+ return typeof window !== 'undefined' && typeof document !== 'undefined';
21
+ };
22
+
23
+ /**
24
+ * Utilitários para bloqueio e liberação de scroll global na página.
25
+ *
26
+ * Permite controlar o scroll do body, útil para modais, overlays e menus.
27
+ */
28
+ /**
29
+ * Estado global compartilhado do controle de lock de scroll.
30
+ */
31
+ const state = {
32
+ // O lockCount registra quantos componentes solicitaram bloqueio simultaneamente.
33
+ lockCount: 0,
34
+ config: {
35
+ bodyClassName: 'bq-body--scroll-lock'},
36
+ scrollY: 0,
37
+ previousBodyStyle: {},
38
+ previousDocumentOverflow: '',
39
+ };
40
+ /**
41
+ * Aplica ou remove a classe CSS de bloqueio de scroll.
42
+ *
43
+ * @param shouldLock `true` para aplicar o lock; `false` para remover.
44
+ */
45
+ const toggleScrollLockClass = (shouldLock) => {
46
+ const action = shouldLock ? 'add' : 'remove';
47
+ document.body.classList[action](state.config.bodyClassName);
48
+ };
49
+ const applyFixedBodyLock = () => {
50
+ state.scrollY = window.scrollY || window.pageYOffset || 0;
51
+ state.previousBodyStyle = {
52
+ left: document.body.style.left,
53
+ position: document.body.style.position,
54
+ right: document.body.style.right,
55
+ top: document.body.style.top,
56
+ width: document.body.style.width,
57
+ };
58
+ state.previousDocumentOverflow = document.documentElement.style.overflow;
59
+ document.body.style.position = 'fixed';
60
+ document.body.style.top = `-${state.scrollY}px`;
61
+ document.body.style.left = '0';
62
+ document.body.style.right = '0';
63
+ document.body.style.width = '100%';
64
+ document.documentElement.style.overflow = 'hidden';
65
+ };
66
+ const restoreFixedBodyLock = () => {
67
+ document.body.style.position = state.previousBodyStyle.position ?? '';
68
+ document.body.style.top = state.previousBodyStyle.top ?? '';
69
+ document.body.style.left = state.previousBodyStyle.left ?? '';
70
+ document.body.style.right = state.previousBodyStyle.right ?? '';
71
+ document.body.style.width = state.previousBodyStyle.width ?? '';
72
+ document.documentElement.style.overflow = state.previousDocumentOverflow;
73
+ window.scrollTo(0, state.scrollY);
74
+ };
75
+ /**
76
+ * Bloqueia o scroll do body com contagem de referência.
77
+ *
78
+ * Múltiplas chamadas exigem o mesmo número de `unlockBodyScroll`.
79
+ */
80
+ const lockBodyScroll = () => {
81
+ if (!isClient())
82
+ return;
83
+ state.lockCount++;
84
+ // Só aplica classe na primeira solicitação.
85
+ if (state.lockCount !== 1)
86
+ return;
87
+ toggleScrollLockClass(true);
88
+ applyFixedBodyLock();
89
+ };
90
+ /**
91
+ * Remove o lock do body com contagem de referência.
92
+ *
93
+ * É seguro chamar mesmo quando nenhum lock está ativo.
94
+ */
95
+ const unlockBodyScroll = () => {
96
+ if (!isClient())
97
+ return;
98
+ if (state.lockCount === 0)
99
+ return;
100
+ state.lockCount = Math.max(0, state.lockCount - 1);
101
+ // Só remove classe quando todos os locks forem liberados.
102
+ if (state.lockCount !== 0)
103
+ return;
104
+ restoreFixedBodyLock();
105
+ toggleScrollLockClass(false);
106
+ };
107
+
108
+ const scrimCss = () => `*,*::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}a{background-color:rgba(0,0,0,0)}b,strong{font-weight:bolder}code{font-family:monospace;font-size:1em}small{font-size:80%}img{border-style:none}button,input,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))}}@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))}}@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-in-out{animation-timing-function:cubic-bezier(0.42, 0, 0.58, 1)}.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}.mx-3{margin-left:var(--spacing-scale-2x) !important;margin-right:var(--spacing-scale-2x) !important}.mb-4{margin-bottom:var(--spacing-scale-3x) !important}.ml-auto{margin-left:auto !important}.pt-half{padding-top:var(--spacing-scale-half) !important}@media (min-width: 576px){.ml-sm-0{margin-left:var(--spacing-scale-default) !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}.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)}.help{font-size:var(--font-size-scale-base)}code,.code{background:var(--gray-5);border-radius:4px;color:var(--gray-80);display:inline-block;font-family:monospace;font-size:var(--font-size-scale-base);font-weight:var(--font-weight-medium);line-height:var(--font-line-height-low);padding:var(--spacing-scale-half)}*[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)}:host{--br-scrim-opacity:1}:host .br-scrim{visibility:hidden;transition:visibility .3s ease;z-index:var(--z-index-layer-4);display:flex;align-items:center;justify-content:center;pointer-events:auto}:host dialog.br-scrim{background:rgba(0,0,0,0);border:0;color:inherit;margin:0;max-height:none;max-width:none;padding:0}:host dialog.br-scrim::backdrop{background:rgba(0,0,0,0)}:host .br-scrim.mode-fullscreen{position:fixed;z-index:var(--z-index-layer-4);inset:0}:host .br-scrim.mode-parent{position:absolute;z-index:var(--z-index-layer-4);inset:0;width:100%;height:100%}:host .br-scrim.opened{visibility:visible;pointer-events:auto}:host .br-scrim.variant-legibility{pointer-events:none;z-index:auto}:host .br-scrim.variant-legibility .mask{pointer-events:none;z-index:auto}:host .br-scrim.variant-legibility .content{pointer-events:auto;z-index:auto}:host .mask{position:absolute;top:0;left:0;width:100%;height:100%;background:var(--surface-overlay-scrim);opacity:0;transition:opacity .3s ease;pointer-events:auto;z-index:0}:host .br-scrim.opened .mask{opacity:var(--br-scrim-opacity)}:host .br-scrim.has-spotlight .mask{display:none}:host .spotlight-overlay{position:absolute;top:0;left:0;width:100%;height:100%;pointer-events:auto;overflow:visible}:host .br-scrim.mode-fullscreen .spotlight-overlay{position:fixed}:host .spotlight-overlay-rect{fill:var(--surface-overlay-scrim, #000);opacity:0;transition:opacity .3s ease}:host .br-scrim.opened .spotlight-overlay-rect{opacity:var(--br-scrim-opacity)}:host .br-scrim.legibility-anchor-center .mask{width:100%;height:var(--br-scrim-mask-size, 100%);top:50%;left:0;transform:translateY(-50%)}:host .br-scrim.legibility-anchor-center .content{position:absolute;top:50%;left:0;right:0;width:100%;height:var(--br-scrim-mask-size, 100%);transform:translateY(-50%);display:flex;align-items:center;justify-content:center}:host .br-scrim.legibility-anchor-top .mask,:host .br-scrim.legibility-anchor-bottom .mask{height:var(--br-scrim-mask-size, 100%);width:100%}:host .br-scrim.legibility-anchor-left .mask,:host .br-scrim.legibility-anchor-right .mask{width:var(--br-scrim-mask-size, 100%);height:100%}:host .br-scrim.legibility-anchor-top .mask{top:0;bottom:auto}:host .br-scrim.legibility-anchor-bottom .mask{bottom:0;top:auto}:host .br-scrim.legibility-anchor-left .mask{left:0;right:auto}:host .br-scrim.legibility-anchor-right .mask{right:0;left:auto}:host .br-scrim.legibility-anchor-top .content{position:absolute;inset:0 0 auto;width:100%;height:var(--br-scrim-mask-size, 100%);display:flex;align-items:center;justify-content:center}:host .br-scrim.legibility-anchor-bottom .content{position:absolute;inset:auto 0 0;width:100%;height:var(--br-scrim-mask-size, 100%);display:flex;align-items:center;justify-content:center}:host .br-scrim.legibility-anchor-left .content{position:absolute;inset:0 auto 0 0;width:var(--br-scrim-mask-size, 100%);height:100%;display:flex;align-items:center;justify-content:center}:host .br-scrim.legibility-anchor-right .content{position:absolute;inset:0 0 0 auto;width:var(--br-scrim-mask-size, 100%);height:100%;display:flex;align-items:center;justify-content:center}:host .content{position:relative;outline:none;pointer-events:auto;opacity:0;transform:scale(0.9);transition:opacity .3s ease,transform .3s ease;background:rgba(0,0,0,0);padding:0;margin:0;border:none;box-shadow:none;overflow:visible;contain:none;display:inline-block;width:fit-content;height:fit-content;z-index:1}:host .content:focus{outline:var(--focus-outline);outline-offset:var(--focus-offset);box-shadow:var(--focus-shadow)}:host .br-scrim.content-layout-none .content,:host .br-scrim.content-layout-none .content-unwrapped{display:contents;position:unset;opacity:1;transform:none;width:auto;height:auto;z-index:unset;pointer-events:none;outline:none;background:rgba(0,0,0,0);padding:0;margin:0;border:none;box-shadow:none;transition:none}:host .br-scrim.opened .content{opacity:1;transform:scale(1);pointer-events:auto}:host .content ::slotted(*){opacity:1 !important;filter:none}:host .br-scrim.position-top:not(.legibility-anchor-top):not(.legibility-anchor-bottom):not(.legibility-anchor-left):not(.legibility-anchor-right):not(.legibility-anchor-center) .content{position:absolute;top:0;left:50%;transform:translateX(-50%)}:host .br-scrim.position-bottom:not(.legibility-anchor-top):not(.legibility-anchor-bottom):not(.legibility-anchor-left):not(.legibility-anchor-right):not(.legibility-anchor-center) .content{position:absolute;bottom:0;left:50%;transform:translateX(-50%)}:host .br-scrim.position-left:not(.legibility-anchor-top):not(.legibility-anchor-bottom):not(.legibility-anchor-left):not(.legibility-anchor-right):not(.legibility-anchor-center) .content{position:absolute;top:50%;left:0;transform:translateY(-50%)}:host .br-scrim.position-right:not(.legibility-anchor-top):not(.legibility-anchor-bottom):not(.legibility-anchor-left):not(.legibility-anchor-right):not(.legibility-anchor-center) .content{position:absolute;top:50%;right:0;transform:translateY(-50%)}:host .br-scrim.position-center:not(.legibility-anchor-top):not(.legibility-anchor-bottom):not(.legibility-anchor-left):not(.legibility-anchor-right):not(.legibility-anchor-center) .content{position:absolute;top:50%;left:50%;transform:translate(-50%, -50%)}:host .br-scrim[class*=legibility-anchor-].position-top .content{align-items:flex-start;justify-content:center}:host .br-scrim[class*=legibility-anchor-].position-bottom .content{align-items:flex-end;justify-content:center}:host .br-scrim[class*=legibility-anchor-].position-left .content{align-items:center;justify-content:flex-start}:host .br-scrim[class*=legibility-anchor-].position-right .content{align-items:center;justify-content:flex-end}:host .br-scrim[class*=legibility-anchor-].position-center .content{align-items:center;justify-content:center}:host .br-scrim.legibility-anchor-center.position-top .content{align-items:flex-start;justify-content:center;transform:translateY(-50%)}:host .br-scrim.legibility-anchor-center.position-bottom .content{align-items:flex-end;justify-content:center;transform:translateY(-50%)}:host .br-scrim.legibility-anchor-center.position-left .content{align-items:center;justify-content:flex-start;transform:translateY(-50%)}:host .br-scrim.legibility-anchor-center.position-right .content{align-items:center;justify-content:flex-end;transform:translateY(-50%)}:host .br-scrim.legibility-anchor-center.position-center .content{align-items:center;justify-content:center;transform:translateY(-50%)}@media (width <= 768px){:host .content{max-width:95%;max-height:95%;width:auto}:host .br-scrim.position-top .content,:host .br-scrim.position-bottom .content{width:100%;max-width:100%;border-radius:0}}:host([data-wbc-preview-contained]){inset:0;pointer-events:none;position:absolute;z-index:1000}:host([data-wbc-preview-contained]) .br-scrim{pointer-events:auto}@media (prefers-reduced-motion: reduce){*,*::before,*::after{animation-duration:.01ms !important;animation-iteration-count:1 !important;transition-duration:.01ms !important}}`;
109
+
110
+ const Scrim = class {
111
+ constructor(hostRef) {
112
+ index.registerInstance(this, hostRef);
113
+ this.brScrimOpen = index.createEvent(this, "brScrimOpen", 7);
114
+ this.brScrimClose = index.createEvent(this, "brScrimClose", 7);
115
+ this.legibilityBatch = rafBatcher.createRafBatcher(() => this.computeLegibilityRect());
116
+ this.hasActivatorSlot = false;
117
+ /** Rect do elemento alvo do scrim vazado. */
118
+ this.spotlightRect = null;
119
+ /**
120
+ * Identificador único.
121
+ * Caso não seja fornecido, um ID gerado automaticamente será usado.
122
+ */
123
+ this.customId = id.generateUniqueId();
124
+ /**
125
+ * Ativa/desativa o scrim
126
+ */
127
+ this.isOpen = false;
128
+ /**
129
+ * Desativa o fechamento do scrim ao ser clicado
130
+ */
131
+ this.disableCloseOnClick = false;
132
+ /**
133
+ * Define o valor de z-index do scrim
134
+ */
135
+ this.zIndex = null;
136
+ /**
137
+ * Cor de fundo personalizada para o scrim.
138
+ * Aceita os seguintes formatos de cor:
139
+ * - Cores nomeadas do CSS: 'red', 'blue', 'green', 'yellow', etc.
140
+ * - Códigos hexadecimais: '#ff0000', '#00ff00', '#0000ff', etc.
141
+ * - Valores RGB: 'rgb(255, 0, 0)', 'rgb(0, 255, 0)', etc.
142
+ * - Valores RGBA: 'rgba(255, 0, 0, 0.5)', 'rgba(0, 255, 0, 0.8)', etc.
143
+ * - Valores HSL: 'hsl(0, 100%, 50%)', 'hsl(120, 100%, 50%)', etc.
144
+ * - Valores HSLA: 'hsla(0, 100%, 50%, 0.5)', 'hsla(240, 100%, 50%, 0.7)', etc.
145
+ * Se não especificada, usa a cor padrão do tema.
146
+ */
147
+ this.bgColor = null;
148
+ /**
149
+ * Define a opacidade personalizada do scrim
150
+ */
151
+ this.customOpacity = null;
152
+ /**
153
+ * Define o modo de exibição do scrim:
154
+ * - `'fullscreen'`: Ocupa toda a tela (`position: fixed`). (_padrão_)
155
+ * - `'parent'`: Ocupa apenas o elemento pai (`position: absolute`).
156
+ * O elemento pai deve ter `position: relative` ou outro valor diferente de `static`.
157
+ *
158
+ * Para a variante `'legibility'`, este atributo é ignorado: o posicionamento é sempre
159
+ * calculado automaticamente a partir das coordenadas do elemento pai.
160
+ */
161
+ this.displayMode = 'fullscreen';
162
+ /**
163
+ * Determina quanto de rolagem (em pixels) é necessário para acionar a ação de fechamento automático do scrim.
164
+ */
165
+ this.scrollThreshold = 50;
166
+ /**
167
+ * Define o seletor para o elemento activator.
168
+ * Nota: O slot 'activator' tem prioridade sobre esta propriedade.
169
+ */
170
+ this.activator = null;
171
+ /**
172
+ * Define um rótulo acessível personalizado para o diálogo.
173
+ * Se não fornecido, será usado "Conteúdo do diálogo" como padrão.
174
+ */
175
+ this.ariaLabel = null;
176
+ /**
177
+ * Define a variante semântica do scrim
178
+ * - `'focus'`: Redireciona o foco hierárquico do usuário. Cor #000000 com opacidade 40%. (_padrão_)
179
+ * - `'spotlight'`: Scrim vazado — destaca um elemento específico criando uma fresta no overlay.
180
+ * Aplica as mesmas cores da variante `'focus'`. Use `spotlightTargetId` para indicar o elemento a ser destacado.
181
+ * - `'legibility'`: Melhora o contraste e leitura de texto sobre superfícies. Cor #000000 com opacidade 64%.
182
+ * Para cobertura parcial, use `legibilityAnchor` + `legibilitySize`.
183
+ * Para gradiente suave, use `bgColor` com um valor de gradiente CSS e `customOpacity="1"`,
184
+ * ex.: `bg-color="linear-gradient(to top, rgba(0,0,0,0.64), transparent)"`..
185
+ *
186
+ * Quando definida, aplica automaticamente as especificações de cor e opacidade do Design System.
187
+ * As propriedades `bgColor` e `customOpacity` têm prioridade e sobrepõem os valores da variante.
188
+ */
189
+ this.variant = 'focus';
190
+ /**
191
+ * Define a borda de ancoragem da faixa de cobertura da variante `legibility`.
192
+ *
193
+ * Controla de qual borda (ou centro) do elemento a máscara de overlay cresce,
194
+ * tendo seu tamanho determinado por `legibilitySize`.
195
+ *
196
+ * - `'top'`: faixa ancorada na borda superior, cresce para baixo.
197
+ * - `'bottom'`: faixa ancorada na borda inferior, cresce para cima.
198
+ * - `'left'`: faixa ancorada na borda esquerda, cresce para a direita.
199
+ * - `'right'`: faixa ancorada na borda direita, cresce para a esquerda.
200
+ * - `'center'`: faixa centralizada verticalmente no elemento.
201
+ *
202
+ * Quando `legibilitySize` é `null`, a máscara ocupa 100% independentemente
203
+ * da âncora definida, equivalendo a uma cobertura total.
204
+ *
205
+ * Só tem efeito quando `variant="legibility"`.
206
+ */
207
+ this.legibilityAnchor = 'bottom';
208
+ /**
209
+ * Define o tamanho da faixa de cobertura da variante `legibility`, usado em
210
+ * conjunto com `legibilityAnchor`.
211
+ *
212
+ * Aceita qualquer valor CSS de comprimento válido:
213
+ * - Percentual relativo ao elemento pai: `'40%'`, `'75%'`
214
+ * - Comprimento absoluto: `'120px'`, `'8rem'`, `'6em'`
215
+ * - Função CSS: `'calc(100% - 2rem)'`
216
+ *
217
+ * Quando `null` (padrão), a máscara ocupa **100%** da dimensão relevante:
218
+ * - **altura** para âncoras `top`, `bottom` e `center`
219
+ * - **largura** para âncoras `left` e `right`
220
+ *
221
+ * Só tem efeito quando `variant="legibility"` está definido.
222
+ */
223
+ this.legibilitySize = null;
224
+ /**
225
+ * Ativa o modo de scrim vazado (variante 'spotlight'), criando uma área de fresta no overlay
226
+ * que destaca o elemento referenciado pelo seletor CSS fornecido.
227
+ */
228
+ this.spotlightTargetId = null;
229
+ /**
230
+ * Espaçamento interno (em pixels) ao redor da área de fresta no scrim vazado.
231
+ */
232
+ this.spotlightPadding = 8;
233
+ /**
234
+ * Define a forma da área de fresta no scrim vazado.
235
+ * - 'rect': Retangular com bordas retas.
236
+ * - 'rounded': Retangular com bordas arredondadas (border-radius de 8px).
237
+ * - 'circle': Elipse inscrita na área do elemento alvo.
238
+ */
239
+ this.spotlightShape = 'rect';
240
+ /**
241
+ * Define como o scrim aplica estilos de layout ao elemento filho (slot padrão).
242
+ *
243
+ * - `'default'`: O scrim gerencia o layout do conteúdo, centralizando, animando e aplicando transformações e opacidade automaticamente.
244
+ *
245
+ * - `'none'`: o scrim age como um componente controlado pelo pai. O filho recebe apenas a máscara visual, sem interferência de posicionamento, transformação ou opacidade.
246
+ * Adequado para componentes que gerenciam seu próprio layout e estado de abertura. Além disso:
247
+ *
248
+ * - Foco e eventos globais** não são interceptados pelo scrim — o componente filho gerencia seu próprio foco, navegação por teclado e fechamento via ESC.
249
+ * - Clique no scrim emite `brScrimClose` sem fechar o scrim internamente, delegando o controle de estado ao pai (quem define `isOpen`).
250
+ * - Use `zIndex` apenas para sobrescrever a camada bloqueadora no fallback CSS. Máscara e painel devem usar subcamadas locais, sem aritmética entre camadas globais.
251
+ *
252
+ */
253
+ this.contentLayout = 'default';
254
+ /** Indica se o atributo `display-mode` foi explicitamente informado pelo usuário */
255
+ this.displayModeExplicit = false;
256
+ // ======================================================================
257
+ // PROPRIEDADES PRIVADAS E VARIÁVEIS INTERNAS
258
+ // ======================================================================
259
+ this.contentRef = null;
260
+ this.activatorElement = null;
261
+ this.lastScrollTop = 0;
262
+ this.scrollOrigin = null;
263
+ this.previouslyFocusedElement = null;
264
+ this.focusTimeoutId = null;
265
+ this.restoreFocusTimeoutId = null;
266
+ /** ResizeObserver que monitora o elemento alvo do spotlight para recalcular a posição. */
267
+ this.spotlightResizeObserver = null;
268
+ /** Elemento atualmente sendo destacado pelo scrim vazado. */
269
+ this.spotlightTargetElement = null;
270
+ /** Referência ao container interno para estilos locais e fallback sem `<dialog>`. */
271
+ this.scrimDivRef = null;
272
+ this.nativeDialogRef = null;
273
+ /** ResizeObserver que monitora o elemento pai para recalcular a posição da variante legibility. */
274
+ this.legibilityResizeObserver = null;
275
+ this.globalInterceptionAttached = false;
276
+ /**
277
+ * Flag que suprime handleGlobalFocus enquanto a modal filha está
278
+ * gerenciando ativamente sua própria sequência de foco (moveFocusIntoModal).
279
+ */
280
+ this.isModalFocusing = false;
281
+ this.modalFocusSuppressId = null;
282
+ /**
283
+ * Handler para o evento `brModalFocusReady` emitido pela modal filha.
284
+ * Desativa o guard imediatamente assim que o foco está estabilizado,
285
+ * cancelando o timeout de segurança do `suppressFocusGuard`.
286
+ */
287
+ this.handleModalFocusReady = () => {
288
+ if (!this.isModalFocusing)
289
+ return;
290
+ this.isModalFocusing = false;
291
+ if (this.modalFocusSuppressId !== null) {
292
+ clearTimeout(this.modalFocusSuppressId);
293
+ this.modalFocusSuppressId = null;
294
+ }
295
+ };
296
+ /**
297
+ * Handler para evento brModalOpen emitido por modal filha
298
+ */
299
+ this.handleModalOpen = (event) => {
300
+ const modalElement = event.target;
301
+ if (!this.isDirectChild(modalElement))
302
+ return;
303
+ this.suppressFocusGuard();
304
+ if (!this.isOpen) {
305
+ this.open();
306
+ }
307
+ };
308
+ /**
309
+ * Handler para evento brModalClose emitido por modal filha
310
+ */
311
+ this.handleModalClose = (event) => {
312
+ const modalElement = event.target;
313
+ if (!this.isDirectChild(modalElement))
314
+ return;
315
+ this.close();
316
+ };
317
+ this.handleActivatorClick = () => {
318
+ this.toggle();
319
+ };
320
+ this.handleScrollClose = () => {
321
+ if (this.scrollStrategy === 'close' && this.isActive) {
322
+ const currentScroll = this.getScrollPosition();
323
+ const reference = this.scrollOrigin ?? this.lastScrollTop;
324
+ if (Math.abs(currentScroll - reference) > this.scrollThreshold) {
325
+ this.scrollOrigin = null;
326
+ // Não fecha se tiver modal filha com autoClose=false (padrão)
327
+ if (this.hasModalWithAutoClose()) {
328
+ return;
329
+ }
330
+ this.isOpen = false;
331
+ return;
332
+ }
333
+ this.lastScrollTop = currentScroll;
334
+ }
335
+ };
336
+ // ======================================================================
337
+ // NAVEGAÇÃO POR TECLADO E INTERCEPTAÇÃO DE EVENTOS
338
+ // ======================================================================
339
+ this.handleKeyDown = (event) => {
340
+ if (!this.isActive)
341
+ return;
342
+ if (this.shouldHandleEscape(event)) {
343
+ this.isOpen = false;
344
+ return;
345
+ }
346
+ if (event.key === 'Tab') {
347
+ const modalChild = this.findModalChild();
348
+ if (modalChild?.show)
349
+ return;
350
+ this.handleTabNavigation(event);
351
+ }
352
+ };
353
+ this.handleGlobalKeyDown = (event) => {
354
+ if (!this.isActive)
355
+ return;
356
+ if (event.key === 'Escape' && !this.disableCloseOnClick) {
357
+ if (this.hasModalWithAutoClose())
358
+ return;
359
+ event.preventDefault();
360
+ this.isOpen = false;
361
+ return;
362
+ }
363
+ const realTarget = (event.composedPath?.()[0] ?? event.target);
364
+ if (!this.isElementInsideScrim(realTarget)) {
365
+ event.preventDefault();
366
+ event.stopPropagation();
367
+ event.stopImmediatePropagation();
368
+ this.focusFirstElement();
369
+ return;
370
+ }
371
+ };
372
+ // Intercepta TODOS os eventos de clique globalmente quando scrim está ativo
373
+ this.handleGlobalClick = (event) => {
374
+ if (!this.isActive)
375
+ return;
376
+ const target = (event.composedPath?.()[0] ?? event.target);
377
+ if (!this.isElementInsideScrim(target)) {
378
+ event.preventDefault();
379
+ event.stopPropagation();
380
+ event.stopImmediatePropagation();
381
+ if (!this.disableCloseOnClick) {
382
+ this.close();
383
+ }
384
+ return;
385
+ }
386
+ };
387
+ /**
388
+ * Intercepta eventos de foco globalmente
389
+ */
390
+ this.handleGlobalFocus = (event) => {
391
+ if (!this.isActive)
392
+ return;
393
+ const realTarget = (event.composedPath?.()[0] ?? event.target);
394
+ const insideScrim = this.isElementInsideScrim(realTarget);
395
+ if (this.isModalFocusing)
396
+ return;
397
+ if (!insideScrim) {
398
+ event.preventDefault();
399
+ event.stopPropagation();
400
+ event.stopImmediatePropagation();
401
+ requestAnimationFrame(() => {
402
+ this.focusFirstElement();
403
+ });
404
+ }
405
+ };
406
+ /**
407
+ * Handler para clique na máscara do scrim.
408
+ * Fecha o scrim se disableCloseOnClick for false e não houver modal filha com autoClose=false.
409
+ * Não afeta o comportamento de ESC, que sempre fecha (W3C Dialog Pattern).
410
+ */
411
+ this.handleMaskClick = (_event) => {
412
+ if (!this.disableCloseOnClick) {
413
+ if (this.hasModalWithAutoClose()) {
414
+ return;
415
+ }
416
+ if (this.contentLayout === 'none') {
417
+ this.brScrimClose.emit();
418
+ return;
419
+ }
420
+ this.close();
421
+ }
422
+ };
423
+ this.handleNativeCancel = (event) => {
424
+ event.preventDefault();
425
+ this.isOpen = false;
426
+ };
427
+ /**
428
+ * Recalcula as coordenadas da fresta com base no bounding rect do elemento alvo.
429
+ * Coordenadas são relativas ao viewport (mode-fullscreen) ou ao elemento pai (mode-parent).
430
+ */
431
+ this.computeSpotlightRect = () => {
432
+ if (this.spotlightTargetElement === null)
433
+ return;
434
+ const targetRect = this.spotlightTargetElement.getBoundingClientRect();
435
+ if (this.effectiveDisplayMode === 'parent' && this.el.parentElement !== null) {
436
+ const parentRect = this.el.parentElement.getBoundingClientRect();
437
+ this.spotlightRect = new DOMRect(targetRect.left - parentRect.left, targetRect.top - parentRect.top, targetRect.width, targetRect.height);
438
+ }
439
+ else {
440
+ this.spotlightRect = new DOMRect(targetRect.left, targetRect.top, targetRect.width, targetRect.height);
441
+ }
442
+ };
443
+ /**
444
+ * Recalcula as coordenadas do elemento pai via getBoundingClientRect e aplica
445
+ * como estilos inline no div interno, sobrepondo o `inset: 0` do mode-fullscreen.
446
+ */
447
+ this.computeLegibilityRect = () => {
448
+ const parent = this.el.parentElement;
449
+ if (parent === null || this.scrimDivRef === null)
450
+ return;
451
+ const rect = parent.getBoundingClientRect();
452
+ this.scrimDivRef.style.setProperty('position', 'fixed');
453
+ this.scrimDivRef.style.setProperty('inset', 'unset');
454
+ this.scrimDivRef.style.setProperty('top', '0');
455
+ this.scrimDivRef.style.setProperty('left', '0');
456
+ this.scrimDivRef.style.setProperty('width', `${rect.width}px`);
457
+ this.scrimDivRef.style.setProperty('height', `${rect.height}px`);
458
+ // Um ancestral transformado redefine a origem de position: fixed (caso dos previews).
459
+ const fixedOrigin = this.scrimDivRef.getBoundingClientRect();
460
+ this.scrimDivRef.style.setProperty('top', `${rect.top - fixedOrigin.top}px`);
461
+ this.scrimDivRef.style.setProperty('left', `${rect.left - fixedOrigin.left}px`);
462
+ };
463
+ this.scheduleLegibilityRect = () => this.legibilityBatch.schedule(undefined);
464
+ }
465
+ get isActive() {
466
+ return this.isLegibilityVariant || this.isOpen;
467
+ }
468
+ // ======================================================================
469
+ // LIFECYCLE HOOKS E WATCHERS
470
+ // ======================================================================
471
+ // biome-ignore lint/complexity/noExcessiveCognitiveComplexity: sincroniza foco, scroll, spotlight e emissão de eventos para abertura/fechamento.
472
+ handleOpenChange(newValue) {
473
+ // Cancelar qualquer timeout anterior
474
+ if (this.focusTimeoutId !== null) {
475
+ clearTimeout(this.focusTimeoutId);
476
+ this.focusTimeoutId = null;
477
+ }
478
+ if (this.restoreFocusTimeoutId !== null) {
479
+ clearTimeout(this.restoreFocusTimeoutId);
480
+ this.restoreFocusTimeoutId = null;
481
+ }
482
+ // Legibility é sempre ativo — ignora tentativas de fechar
483
+ if (this.isLegibilityVariant) {
484
+ this.updateStyles();
485
+ if (newValue)
486
+ this.brScrimOpen.emit();
487
+ return;
488
+ }
489
+ if (newValue && this.scrollStrategy === 'close') {
490
+ const currentScroll = window.scrollY;
491
+ this.lastScrollTop = currentScroll;
492
+ this.scrollOrigin = currentScroll;
493
+ }
494
+ this.updateStyles();
495
+ if (this.isActive) {
496
+ this.previouslyFocusedElement = document.activeElement;
497
+ this.applyScrollStrategy();
498
+ if (this.contentLayout !== 'none' && !this.usesNativeTopLayer) {
499
+ this.addGlobalEventInterception();
500
+ const hasModalChild = this.findModalChild() !== null;
501
+ if (hasModalChild) {
502
+ this.suppressFocusGuard();
503
+ }
504
+ else {
505
+ this.focusTimeoutId = setTimeout(() => {
506
+ this.focusFirstElement();
507
+ }, 100);
508
+ }
509
+ }
510
+ this.setupSpotlight();
511
+ this.brScrimOpen.emit();
512
+ }
513
+ else {
514
+ this.closeModalChild();
515
+ this.cleanupSpotlight();
516
+ this.resetScrolling();
517
+ if (this.contentLayout !== 'none') {
518
+ this.removeGlobalEventInterception();
519
+ this.restoreFocus();
520
+ this.brScrimClose.emit();
521
+ }
522
+ }
523
+ }
524
+ updateStyles() {
525
+ // Aplica defaults da variante antes dos overrides manuais
526
+ this.applyVariantDefaults();
527
+ if (this.zIndex !== null && this.zIndex !== undefined) {
528
+ this.el.style.zIndex = `${this.zIndex}`;
529
+ this.el.style.setProperty('--z-index-layer-4', `${this.zIndex}`);
530
+ }
531
+ // bgColor e customOpacity sobrepõem os valores da variante
532
+ if (this.bgColor !== null) {
533
+ this.el.style.setProperty('--surface-overlay-scrim', this.bgColor);
534
+ }
535
+ if (this.customOpacity !== null) {
536
+ this.el.style.setProperty('--br-scrim-opacity', `${this.customOpacity}`);
537
+ }
538
+ }
539
+ handleVariantChange() {
540
+ this.updateStyles();
541
+ if (this.isActive) {
542
+ if (this.isLegibilityVariant) {
543
+ this.removeGlobalEventInterception();
544
+ this.resetScrolling();
545
+ this.cleanupSpotlight();
546
+ this.setupLegibility();
547
+ }
548
+ else if (this.variant === 'spotlight') {
549
+ this.cleanupLegibility();
550
+ if (!this.usesNativeTopLayer)
551
+ this.addGlobalEventInterception();
552
+ this.setupSpotlight();
553
+ }
554
+ else {
555
+ this.cleanupLegibility();
556
+ if (!this.usesNativeTopLayer)
557
+ this.addGlobalEventInterception();
558
+ this.cleanupSpotlight();
559
+ }
560
+ }
561
+ }
562
+ handleLayerModeChange() {
563
+ this.removeGlobalEventInterception();
564
+ if (this.isActive && this.contentLayout !== 'none' && !this.usesNativeTopLayer) {
565
+ this.addGlobalEventInterception();
566
+ }
567
+ }
568
+ handleSpotlightChange() {
569
+ if (this.isActive) {
570
+ this.setupSpotlight();
571
+ }
572
+ }
573
+ handleActivatorChange() {
574
+ this.removeActivatorClickListener();
575
+ this.setupActivator();
576
+ }
577
+ connectedCallback() {
578
+ if (this.scrollStrategy === 'close') {
579
+ const currentScroll = window.scrollY;
580
+ this.lastScrollTop = currentScroll;
581
+ this.scrollOrigin = currentScroll;
582
+ window.addEventListener('scroll', this.handleScrollClose, { passive: true });
583
+ }
584
+ }
585
+ disconnectedCallback() {
586
+ // Limpar timeouts pendentes
587
+ if (this.focusTimeoutId !== null) {
588
+ clearTimeout(this.focusTimeoutId);
589
+ this.focusTimeoutId = null;
590
+ }
591
+ if (this.restoreFocusTimeoutId !== null) {
592
+ clearTimeout(this.restoreFocusTimeoutId);
593
+ this.restoreFocusTimeoutId = null;
594
+ }
595
+ window.removeEventListener('scroll', this.handleScrollClose);
596
+ if (this.scrollStrategy === 'block' && this.isActive) {
597
+ unlockBodyScroll();
598
+ }
599
+ if (this.contentRef !== null) {
600
+ this.contentRef.removeEventListener('keydown', this.handleKeyDown);
601
+ }
602
+ this.removeActivatorClickListener();
603
+ this.cleanupActivatorSlotClick();
604
+ this.removeGlobalEventInterception();
605
+ this.removeModalEventListener();
606
+ this.cleanupSpotlight();
607
+ this.cleanupLegibility();
608
+ if (this.modalFocusSuppressId !== null) {
609
+ clearTimeout(this.modalFocusSuppressId);
610
+ this.modalFocusSuppressId = null;
611
+ }
612
+ }
613
+ componentWillLoad() {
614
+ this.hasActivatorSlot = this.checkActivatorSlot('activator');
615
+ this.displayModeExplicit = this.el.hasAttribute('display-mode');
616
+ }
617
+ componentDidLoad() {
618
+ this.updateStyles();
619
+ this.setupActivator();
620
+ this.setupActivatorSlotClick();
621
+ this.addContentEventListener();
622
+ this.listenToModalEvents();
623
+ if (this.isLegibilityVariant) {
624
+ this.setupLegibility();
625
+ }
626
+ else if (this.isActive) {
627
+ this.applyScrollStrategy();
628
+ if (this.contentLayout !== 'none' && !this.usesNativeTopLayer) {
629
+ this.addGlobalEventInterception();
630
+ const modalChild = this.findModalChild();
631
+ if (modalChild === null) {
632
+ this.focusFirstElement();
633
+ this.setupSpotlight();
634
+ }
635
+ else {
636
+ this.suppressFocusGuard();
637
+ }
638
+ }
639
+ }
640
+ }
641
+ componentDidRender() {
642
+ nativeDialog.syncNativeModalDialog(this.nativeDialogRef, this.isActive && this.usesNativeDialog);
643
+ }
644
+ // ======================================================================
645
+ // MÉTODOS PÚBLICOS (API)
646
+ // ======================================================================
647
+ /**
648
+ * Define o limite de rolagem para o fechamento automático do scrim.
649
+ */
650
+ async setScrollThreshold(threshold) {
651
+ this.scrollThreshold = threshold;
652
+ }
653
+ /**
654
+ * Método público para exibir o scrim
655
+ */
656
+ async open() {
657
+ this.isOpen = true;
658
+ }
659
+ /**
660
+ * Método público para esconder o scrim
661
+ */
662
+ async close() {
663
+ if (this.isLegibilityVariant)
664
+ return;
665
+ this.isOpen = false;
666
+ }
667
+ /**
668
+ * Método público para alternar o estado de exibição do scrim
669
+ */
670
+ async toggle() {
671
+ if (this.isLegibilityVariant)
672
+ return;
673
+ this.isOpen = !this.isActive;
674
+ }
675
+ /**
676
+ * Recalcula manualmente a posição e dimensões da fresta do scrim vazado.
677
+ * Útil quando o elemento alvo muda de posição sem disparar resize ou scroll.
678
+ */
679
+ async updateSpotlight() {
680
+ this.computeSpotlightRect();
681
+ }
682
+ /**
683
+ * Adiciona event listener ao contentRef para capturar eventos de teclado
684
+ * e gerenciar a navegação por teclado dentro do scrim.
685
+ */
686
+ addContentEventListener() {
687
+ if (this.contentRef !== null) {
688
+ this.contentRef.addEventListener('keydown', this.handleKeyDown);
689
+ }
690
+ }
691
+ // ======================================================================
692
+ // GERENCIAMENTO DE COMPONENTES FILHOS
693
+ // ======================================================================
694
+ /**
695
+ * Ativa o guard que suprime `handleGlobalFocus` enquanto a modal filha executa
696
+ * sua sequência assíncrona de foco (`moveFocusIntoModal`).
697
+ *
698
+ * O guard é desativado assim que o evento `brModalFocusReady` chega (via
699
+ * `handleModalFocusReady`). O timeout é apenas um safety net para o caso de
700
+ * o evento nunca chegar (ex: erro interno na modal).
701
+ */
702
+ suppressFocusGuard(safetyMs = 1000) {
703
+ this.isModalFocusing = true;
704
+ if (this.modalFocusSuppressId !== null) {
705
+ clearTimeout(this.modalFocusSuppressId);
706
+ }
707
+ this.modalFocusSuppressId = setTimeout(() => {
708
+ this.isModalFocusing = false;
709
+ this.modalFocusSuppressId = null;
710
+ }, safetyMs);
711
+ }
712
+ /**
713
+ * Verifica se um elemento é filho direto deste scrim (não nested)
714
+ */
715
+ isDirectChild(element) {
716
+ const children = this.getDirectChildren();
717
+ return children.some((child) => child === element || child.contains(element));
718
+ }
719
+ /**
720
+ * Adiciona listeners para eventos brModalOpen, brModalClose e brModalFocusReady das modais filhas
721
+ */
722
+ listenToModalEvents() {
723
+ this.el.addEventListener('brModalOpen', this.handleModalOpen);
724
+ this.el.addEventListener('brModalClose', this.handleModalClose);
725
+ this.el.addEventListener('brModalOpened', this.handleModalFocusReady);
726
+ }
727
+ /**
728
+ * Remove listeners dos eventos da modal
729
+ */
730
+ removeModalEventListener() {
731
+ this.el.removeEventListener('brModalOpen', this.handleModalOpen);
732
+ this.el.removeEventListener('brModalClose', this.handleModalClose);
733
+ this.el.removeEventListener('brModalOpened', this.handleModalFocusReady);
734
+ }
735
+ /**
736
+ * Retorna os elementos filhos diretos do scrim via slot padrão
737
+ */
738
+ getDirectChildren() {
739
+ const shadowRoot = this.el.shadowRoot;
740
+ if (shadowRoot === null)
741
+ return [];
742
+ const slot = shadowRoot.querySelector('slot:not([name])');
743
+ if (slot === null)
744
+ return [];
745
+ return slot.assignedElements();
746
+ }
747
+ /**
748
+ * Busca uma modal filha direta do scrim
749
+ */
750
+ findModalChild() {
751
+ const children = this.getDirectChildren();
752
+ const modalElement = children.find((child) => child.tagName === 'BR-MODAL');
753
+ return modalElement ?? null;
754
+ }
755
+ /**
756
+ * Verifica se há uma modal filha com autoClose=false (padrão ou explícito)
757
+ * Retorna true se:
758
+ * - Existe modal filha E autoClose não é explicitamente true
759
+ */
760
+ hasModalWithAutoClose() {
761
+ const modal = this.findModalChild();
762
+ return modal !== null && modal.autoClose !== true;
763
+ }
764
+ /**
765
+ * Fecha a modal filha direta, se existir e estiver aberta.
766
+ * Chamado quando o scrim é fechado (ex: via ESC) para garantir sincronização de estado.
767
+ */
768
+ closeModalChild() {
769
+ const modal = this.findModalChild();
770
+ if (modal?.show) {
771
+ modal.show = false;
772
+ }
773
+ }
774
+ // ======================================================================
775
+ // GERENCIAMENTO DO ACTIVATOR (ELEMENTO ACIONADOR)
776
+ // ======================================================================
777
+ checkActivatorSlot(slotName) {
778
+ return this.el.querySelector(`[slot="${slotName}"]`) !== null;
779
+ }
780
+ setupActivatorSlotClick() {
781
+ if (this.el.shadowRoot === null)
782
+ return;
783
+ const slotEl = this.el.shadowRoot.querySelector('slot[name="activator"]');
784
+ if (slotEl === null || slotEl === undefined)
785
+ return;
786
+ const assignedElements = slotEl.assignedElements?.() ?? [];
787
+ if (assignedElements.length === 1) {
788
+ const el = assignedElements[0];
789
+ if (el && typeof el.addEventListener === 'function') {
790
+ el.addEventListener('click', this.handleActivatorClick);
791
+ }
792
+ }
793
+ else if (assignedElements.length > 1) {
794
+ console.warn('br-scrim: Slot "activator" deve conter apenas um elemento para aplicar o onClick automaticamente.');
795
+ }
796
+ }
797
+ setupActivator() {
798
+ this.removeActivatorClickListener();
799
+ this.activatorElement = null;
800
+ if (this.hasActivatorSlot || this.activator == null || this.activator === '') {
801
+ return;
802
+ }
803
+ if (this.activator === 'parent') {
804
+ const parentElement = this.el.parentElement;
805
+ if (parentElement !== null) {
806
+ this.activatorElement = parentElement;
807
+ }
808
+ }
809
+ else {
810
+ try {
811
+ const element = document.querySelector(this.activator);
812
+ if (element instanceof HTMLElement) {
813
+ this.activatorElement = element;
814
+ }
815
+ }
816
+ catch {
817
+ console.warn(`br-scrim: Seletor activator inválido: ${this.activator}`);
818
+ }
819
+ }
820
+ this.addActivatorClickListener();
821
+ }
822
+ addActivatorClickListener() {
823
+ if (this.activatorElement === null || this.activatorElement === undefined)
824
+ return;
825
+ this.activatorElement.addEventListener('click', this.handleActivatorClick);
826
+ }
827
+ removeActivatorClickListener() {
828
+ if (this.activatorElement === null || this.activatorElement === undefined)
829
+ return;
830
+ this.activatorElement.removeEventListener('click', this.handleActivatorClick);
831
+ }
832
+ cleanupActivatorSlotClick() {
833
+ if (this.el.shadowRoot === null)
834
+ return;
835
+ const slotEl = this.el.shadowRoot.querySelector('slot[name="activator"]');
836
+ const assignedElements = slotEl?.assignedElements?.() ?? [];
837
+ if (assignedElements.length === 1) {
838
+ const element = assignedElements[0];
839
+ if (element && typeof element.removeEventListener === 'function') {
840
+ element.removeEventListener('click', this.handleActivatorClick);
841
+ }
842
+ }
843
+ }
844
+ // ======================================================================
845
+ // ESTRATÉGIAS DE ROLAGEM (SCROLL)
846
+ // ======================================================================
847
+ applyScrollStrategy() {
848
+ if (this.scrollStrategy === 'block') {
849
+ this.enableScrollBlock();
850
+ }
851
+ else if (this.scrollStrategy === 'close') {
852
+ this.enableScrollWatcher();
853
+ }
854
+ }
855
+ getScrollPosition() {
856
+ const targetWindow = this.el?.ownerDocument?.defaultView || window;
857
+ return targetWindow?.scrollY ?? targetWindow?.pageYOffset ?? 0;
858
+ }
859
+ enableScrollBlock() {
860
+ lockBodyScroll();
861
+ }
862
+ enableScrollWatcher() {
863
+ const currentScroll = window.scrollY;
864
+ this.lastScrollTop = currentScroll;
865
+ this.scrollOrigin = currentScroll;
866
+ window.addEventListener('scroll', this.handleScrollClose, { passive: true });
867
+ }
868
+ resetScrolling() {
869
+ if (this.scrollStrategy === 'block') {
870
+ unlockBodyScroll();
871
+ }
872
+ window.removeEventListener('scroll', this.handleScrollClose);
873
+ this.scrollOrigin = null;
874
+ }
875
+ // ======================================================================
876
+ // ACESSIBILIDADE E GERENCIAMENTO DE FOCO
877
+ // ======================================================================
878
+ focusFirstElement() {
879
+ if (this.contentRef == null)
880
+ return;
881
+ const modalChild = this.findModalChild();
882
+ if (modalChild?.show) {
883
+ // Devolver foco ao container da modal — a própria modal gerencia Tab/Shift+Tab internamente
884
+ const modalDialogEl = modalChild.shadowRoot?.querySelector('.br-modal');
885
+ modalDialogEl?.focus();
886
+ return;
887
+ }
888
+ this.contentRef.setAttribute('tabindex', '-1');
889
+ this.contentRef.focus();
890
+ const focusableElements = this.getFocusableElements();
891
+ if (focusableElements.length > 0) {
892
+ const firstElement = focusableElements[0];
893
+ if (firstElement !== null && firstElement !== undefined) {
894
+ firstElement.scrollIntoView({ block: 'nearest', inline: 'nearest' });
895
+ firstElement.focus({ preventScroll: true });
896
+ }
897
+ }
898
+ }
899
+ restoreFocus() {
900
+ let targetElement = null;
901
+ if (this.previouslyFocusedElement instanceof HTMLElement && this.previouslyFocusedElement.isConnected) {
902
+ targetElement = this.previouslyFocusedElement;
903
+ }
904
+ else if (this.activatorElement instanceof HTMLElement) {
905
+ targetElement = this.activatorElement;
906
+ }
907
+ else {
908
+ const slotEl = this.el.shadowRoot?.querySelector('slot[name="activator"]');
909
+ if (this.hasActivatorSlot) {
910
+ const assignedElements = slotEl.assignedElements?.() ?? [];
911
+ if (assignedElements.length > 0 && assignedElements[0] instanceof HTMLElement) {
912
+ targetElement = assignedElements[0];
913
+ }
914
+ }
915
+ }
916
+ if (targetElement !== null && targetElement !== undefined) {
917
+ this.restoreFocusTimeoutId = setTimeout(() => {
918
+ try {
919
+ targetElement?.focus();
920
+ }
921
+ catch (error) {
922
+ console.warn('br-scrim: Erro ao restaurar foco:', error);
923
+ }
924
+ }, 100);
925
+ }
926
+ }
927
+ getFocusableElements() {
928
+ if (this.contentRef == null)
929
+ return [];
930
+ const defaultSlot = this.contentRef.querySelector('slot:not([name])');
931
+ if (defaultSlot === null || defaultSlot === undefined)
932
+ return [];
933
+ const assignedElements = defaultSlot.assignedElements({ flatten: true });
934
+ const focusableElements = [];
935
+ assignedElements.forEach((el) => {
936
+ if (!(el instanceof HTMLElement))
937
+ return;
938
+ if (el.matches(Scrim.FOCUSABLE_SELECTORS)) {
939
+ focusableElements.push(el);
940
+ }
941
+ const nestedFocusables = Array.from(el.querySelectorAll(Scrim.FOCUSABLE_SELECTORS));
942
+ focusableElements.push(...nestedFocusables);
943
+ });
944
+ return this.filterVisibleElements(focusableElements);
945
+ }
946
+ filterVisibleElements(elements) {
947
+ return elements.filter((el) => el.offsetWidth > 0 && el.offsetHeight > 0 && getComputedStyle(el).visibility !== 'hidden');
948
+ }
949
+ /**
950
+ * Intercepta todos os eventos de teclado globalmente quando o scrim está ativo.
951
+ *
952
+ * Usa `composedPath()[0]` para obter o elemento real com foco, mesmo dentro de shadow roots.
953
+ * `event.target` é redirecionado ao cruzar shadow boundaries e não reflete o elemento concreto
954
+ * quando o foco está dentro do shadow DOM de componentes filhos como `br-modal`.
955
+ */
956
+ handleDocumentKeyDown(event) {
957
+ if (!this.isActive)
958
+ return;
959
+ if ((event.key === 'Escape' || event.key === 'Esc') && !this.disableCloseOnClick) {
960
+ if (this.hasModalWithAutoClose())
961
+ return;
962
+ this.close();
963
+ }
964
+ }
965
+ shouldHandleEscape(event) {
966
+ return (event.key === 'Escape' || event.key === 'Esc') && this.isActive;
967
+ }
968
+ handleTabNavigation(event) {
969
+ const focusableElements = this.getFocusableElements();
970
+ if (focusableElements.length === 0) {
971
+ event.preventDefault();
972
+ return;
973
+ }
974
+ const firstElement = focusableElements[0];
975
+ const lastElement = focusableElements[focusableElements.length - 1];
976
+ const isTabForward = !event.shiftKey;
977
+ if (this.shouldTrapFocus(isTabForward, firstElement, lastElement, event)) {
978
+ event.preventDefault();
979
+ this.wrapFocus(isTabForward, firstElement, lastElement);
980
+ }
981
+ }
982
+ shouldTrapFocus(isTabForward, firstElement, lastElement, event) {
983
+ const activeEl = (event?.composedPath?.()[0] ?? document.activeElement);
984
+ return (isTabForward && activeEl === lastElement) || (!isTabForward && activeEl === firstElement);
985
+ }
986
+ wrapFocus(isTabForward, firstElement, lastElement) {
987
+ (isTabForward ? firstElement : lastElement).focus();
988
+ }
989
+ /**
990
+ * Verifica se um elemento está dentro do scrim.
991
+ * Funciona com shadow DOM: aceita tanto o host (br-modal) quanto elementos
992
+ * dentro de shadow roots filhos — verifica o host mais próximo via getRootNode.
993
+ */
994
+ isElementInsideScrim(element) {
995
+ if (this.el.contains(element)) {
996
+ return true;
997
+ }
998
+ let node = element;
999
+ while (node !== null && node !== document) {
1000
+ const root = node.getRootNode();
1001
+ if (root instanceof ShadowRoot) {
1002
+ const host = root.host;
1003
+ if (this.el.contains(host)) {
1004
+ return true;
1005
+ }
1006
+ node = host;
1007
+ }
1008
+ else {
1009
+ break;
1010
+ }
1011
+ }
1012
+ return false;
1013
+ }
1014
+ /**
1015
+ * Adiciona interceptação global de eventos
1016
+ */
1017
+ addGlobalEventInterception() {
1018
+ if (this.globalInterceptionAttached)
1019
+ return;
1020
+ document.addEventListener('keydown', this.handleGlobalKeyDown, true);
1021
+ // Intercepta eventos de clique globalmente
1022
+ document.addEventListener('click', this.handleGlobalClick, true);
1023
+ document.addEventListener('mousedown', this.handleGlobalClick, true);
1024
+ document.addEventListener('mouseup', this.handleGlobalClick, true);
1025
+ // Intercepta eventos de foco.
1026
+ document.addEventListener('focusin', this.handleGlobalFocus, true);
1027
+ this.globalInterceptionAttached = true;
1028
+ }
1029
+ /**
1030
+ * Remove interceptação global de eventos
1031
+ */
1032
+ removeGlobalEventInterception() {
1033
+ if (!this.globalInterceptionAttached)
1034
+ return;
1035
+ document.removeEventListener('keydown', this.handleGlobalKeyDown, true);
1036
+ document.removeEventListener('click', this.handleGlobalClick, true);
1037
+ document.removeEventListener('mousedown', this.handleGlobalClick, true);
1038
+ document.removeEventListener('mouseup', this.handleGlobalClick, true);
1039
+ document.removeEventListener('focusin', this.handleGlobalFocus, true);
1040
+ this.globalInterceptionAttached = false;
1041
+ }
1042
+ // ======================================================================
1043
+ // VARIANTE SEMÂNTICA (FOCO / LEGIBILIDADE / INIBIÇÃO)
1044
+ // ======================================================================
1045
+ /**
1046
+ * Retorna true quando a variante é 'legibility'.
1047
+ * Nesse modo o scrim é puramente decorativo: nunca fecha, nunca intercepta
1048
+ * eventos de teclado/foco/clique e nunca bloqueia rolagem.
1049
+ */
1050
+ get isLegibilityVariant() {
1051
+ return this.variant === 'legibility';
1052
+ }
1053
+ /**
1054
+ * Resolve o display-mode efetivo.
1055
+ * Para a variante 'legibility', usa 'parent' por padrão — a menos que o
1056
+ * atributo `display-mode` tenha sido explicitamente definido pelo usuário.
1057
+ */
1058
+ get effectiveDisplayMode() {
1059
+ if (this.variant === 'legibility' && !this.displayModeExplicit) {
1060
+ return 'parent';
1061
+ }
1062
+ return this.displayMode;
1063
+ }
1064
+ get usesNativeDialog() {
1065
+ return this.effectiveDisplayMode === 'fullscreen' && !this.isLegibilityVariant && this.contentLayout !== 'none';
1066
+ }
1067
+ get usesNativeTopLayer() {
1068
+ return this.usesNativeDialog && nativeDialog.supportsNativeModalDialog();
1069
+ }
1070
+ /**
1071
+ * Aplica as especificações de cor e opacidade conforme a variante selecionada.
1072
+ */
1073
+ applyVariantDefaults() {
1074
+ this.el.style.removeProperty('--surface-overlay-scrim');
1075
+ this.el.style.removeProperty('--br-scrim-opacity');
1076
+ this.el.style.removeProperty('--br-scrim-mask-size');
1077
+ switch (this.variant) {
1078
+ case 'focus':
1079
+ case 'spotlight':
1080
+ if (this.bgColor === null) {
1081
+ this.el.style.setProperty('--surface-overlay-scrim', '#000000');
1082
+ }
1083
+ if (this.customOpacity === null) {
1084
+ this.el.style.setProperty('--br-scrim-opacity', '0.4');
1085
+ }
1086
+ break;
1087
+ case 'legibility': {
1088
+ if (this.legibilitySize !== null) {
1089
+ this.el.style.setProperty('--br-scrim-mask-size', this.legibilitySize);
1090
+ }
1091
+ else {
1092
+ this.el.style.removeProperty('--br-scrim-mask-size');
1093
+ }
1094
+ if (this.bgColor === null) {
1095
+ this.el.style.setProperty('--surface-overlay-scrim', '#000000');
1096
+ }
1097
+ if (this.customOpacity === null) {
1098
+ // Se bgColor for um gradiente, o usuário deve setar customOpacity=1 ou omitir
1099
+ this.el.style.setProperty('--br-scrim-opacity', '0.64');
1100
+ }
1101
+ break;
1102
+ }
1103
+ }
1104
+ }
1105
+ // ======================================================================
1106
+ // SCRIM VAZADO (SPOTLIGHT)
1107
+ // ======================================================================
1108
+ /**
1109
+ * Inicializa o modo de scrim vazado: resolve o elemento alvo, calcula o rect
1110
+ * inicial e instala um ResizeObserver para atualizar automaticamente.
1111
+ * Só opera quando `variant === 'spotlight'`.
1112
+ */
1113
+ setupSpotlight() {
1114
+ this.cleanupSpotlight();
1115
+ if (this.variant !== 'spotlight')
1116
+ return;
1117
+ const target = this.resolveSpotlightTarget();
1118
+ if (target === null)
1119
+ return;
1120
+ this.spotlightTargetElement = target;
1121
+ this.computeSpotlightRect();
1122
+ if (typeof ResizeObserver !== 'undefined') {
1123
+ this.spotlightResizeObserver = new ResizeObserver(this.computeSpotlightRect);
1124
+ this.spotlightResizeObserver.observe(target);
1125
+ }
1126
+ window.addEventListener('resize', this.computeSpotlightRect);
1127
+ window.addEventListener('scroll', this.computeSpotlightRect, { capture: true, passive: true });
1128
+ }
1129
+ /**
1130
+ * Desmonta o modo de scrim vazado, removendo observers e limpando o estado.
1131
+ */
1132
+ cleanupSpotlight() {
1133
+ if (this.spotlightResizeObserver !== null) {
1134
+ this.spotlightResizeObserver.disconnect();
1135
+ this.spotlightResizeObserver = null;
1136
+ }
1137
+ this.spotlightTargetElement = null;
1138
+ this.spotlightRect = null;
1139
+ window.removeEventListener('resize', this.computeSpotlightRect);
1140
+ window.removeEventListener('scroll', this.computeSpotlightRect, true);
1141
+ }
1142
+ /**
1143
+ * Resolve o elemento alvo do spotlight via prop `spotlightTargetId` (seletor CSS).
1144
+ */
1145
+ resolveSpotlightTarget() {
1146
+ if (this.spotlightTargetId !== null && this.spotlightTargetId !== '') {
1147
+ try {
1148
+ return document.querySelector(this.spotlightTargetId);
1149
+ }
1150
+ catch {
1151
+ console.warn(`br-scrim: Seletor spotlightTargetId inválido: ${this.spotlightTargetId}`);
1152
+ }
1153
+ }
1154
+ return null;
1155
+ }
1156
+ // ======================================================================
1157
+ // VARIANTE LEGIBILITY — POSICIONAMENTO POR BOUNDING RECT
1158
+ // ======================================================================
1159
+ /**
1160
+ * Inicializa o posicionamento da variante legibility.
1161
+ *
1162
+ * Aplica `position: fixed` com as coordenadas exatas do elemento pai via
1163
+ * `getBoundingClientRect`, sem exigir nenhum CSS adicional no pai.
1164
+ *
1165
+ * Com `ResizeObserver`, observa o pai **e todos os seus ancestrais**: quando um
1166
+ * elemento irmão muda de tamanho (ex: menu abrindo), o ancestral comum redimensiona
1167
+ * e o callback reposiciona o scrim automaticamente.
1168
+ */
1169
+ setupLegibility() {
1170
+ this.cleanupLegibility();
1171
+ if (!this.isLegibilityVariant)
1172
+ return;
1173
+ const parent = this.el.parentElement;
1174
+ if (parent === null)
1175
+ return;
1176
+ this.computeLegibilityRect();
1177
+ if (typeof ResizeObserver !== 'undefined') {
1178
+ this.legibilityResizeObserver = new ResizeObserver(() => this.scheduleLegibilityRect());
1179
+ this.legibilityResizeObserver.observe(parent);
1180
+ // Observa ancestrais até document.body para detectar deslocamentos causados
1181
+ // por elementos irmãos que empurram o pai (ex: menu abrindo acima dele).
1182
+ let ancestor = parent.parentElement;
1183
+ while (ancestor !== null && ancestor !== document.documentElement) {
1184
+ this.legibilityResizeObserver.observe(ancestor);
1185
+ ancestor = ancestor.parentElement;
1186
+ }
1187
+ }
1188
+ else {
1189
+ requestAnimationFrame(() => requestAnimationFrame(this.scheduleLegibilityRect));
1190
+ window.addEventListener('resize', this.scheduleLegibilityRect);
1191
+ }
1192
+ window.addEventListener('scroll', this.scheduleLegibilityRect, { capture: true, passive: true });
1193
+ window.addEventListener('load', this.scheduleLegibilityRect);
1194
+ }
1195
+ /**
1196
+ * Desmonta o posicionamento da variante legibility, removendo observers e listeners
1197
+ * e limpando os estilos inline aplicados ao div interno do scrim.
1198
+ */
1199
+ cleanupLegibility() {
1200
+ if (this.legibilityResizeObserver !== null) {
1201
+ this.legibilityResizeObserver.disconnect();
1202
+ this.legibilityResizeObserver = null;
1203
+ }
1204
+ this.legibilityBatch.cancel();
1205
+ window.removeEventListener('resize', this.scheduleLegibilityRect);
1206
+ window.removeEventListener('scroll', this.scheduleLegibilityRect, true);
1207
+ window.removeEventListener('load', this.scheduleLegibilityRect);
1208
+ this.resetLegibilityStyles();
1209
+ }
1210
+ /**
1211
+ * Remove os estilos inline de posicionamento aplicados pelo computeLegibilityRect.
1212
+ */
1213
+ resetLegibilityStyles() {
1214
+ if (this.scrimDivRef === null)
1215
+ return;
1216
+ this.scrimDivRef.style.removeProperty('position');
1217
+ this.scrimDivRef.style.removeProperty('inset');
1218
+ this.scrimDivRef.style.removeProperty('top');
1219
+ this.scrimDivRef.style.removeProperty('left');
1220
+ this.scrimDivRef.style.removeProperty('width');
1221
+ this.scrimDivRef.style.removeProperty('height');
1222
+ }
1223
+ // ======================================================================
1224
+ // UTILITÁRIOS
1225
+ // ======================================================================
1226
+ /**
1227
+ * Renderiza o SVG de overlay do scrim vazado (spotlight).
1228
+ * Retorna null quando não há elemento alvo resolvido.
1229
+ */
1230
+ renderSpotlightOverlay(maskId, rect, padding) {
1231
+ const spotlightShape = this.spotlightShape === 'circle' ? (index.h("ellipse", { cx: rect.left + rect.width / 2, cy: rect.top + rect.height / 2, rx: rect.width / 2 + padding, ry: rect.height / 2 + padding, fill: "black" })) : (index.h("rect", { x: rect.left - padding, y: rect.top - padding, width: rect.width + padding * 2, height: rect.height + padding * 2, rx: this.spotlightShape === 'rounded' ? 8 : 0, ry: this.spotlightShape === 'rounded' ? 8 : 0, fill: "black" }));
1232
+ return (index.h("svg", { class: "spotlight-overlay", "aria-hidden": "true", onClick: this.handleMaskClick, xmlns: "http://www.w3.org/2000/svg" }, index.h("defs", null, index.h("mask", { id: maskId }, index.h("rect", { width: "100%", height: "100%", fill: "white" }), spotlightShape)), index.h("rect", { class: "spotlight-overlay-rect", width: "100%", height: "100%", mask: `url(#${maskId})` })));
1233
+ }
1234
+ getCssClassMap() {
1235
+ return {
1236
+ 'br-scrim': true,
1237
+ opened: this.isActive,
1238
+ 'scroll-block': this.scrollStrategy === 'block',
1239
+ 'position-top': this.positionContent === 'top',
1240
+ 'position-bottom': this.positionContent === 'bottom',
1241
+ 'position-left': this.positionContent === 'left',
1242
+ 'position-right': this.positionContent === 'right',
1243
+ 'position-center': this.positionContent === 'center',
1244
+ 'mode-fullscreen': this.effectiveDisplayMode === 'fullscreen',
1245
+ 'mode-parent': this.effectiveDisplayMode === 'parent',
1246
+ 'variant-focus': this.variant === 'focus',
1247
+ 'variant-spotlight': this.variant === 'spotlight',
1248
+ 'variant-legibility': this.variant === 'legibility',
1249
+ 'legibility-anchor-top': this.variant === 'legibility' && this.legibilityAnchor === 'top',
1250
+ 'legibility-anchor-bottom': this.variant === 'legibility' && this.legibilityAnchor === 'bottom',
1251
+ 'legibility-anchor-left': this.variant === 'legibility' && this.legibilityAnchor === 'left',
1252
+ 'legibility-anchor-right': this.variant === 'legibility' && this.legibilityAnchor === 'right',
1253
+ 'legibility-anchor-center': this.variant === 'legibility' && this.legibilityAnchor === 'center',
1254
+ 'has-spotlight': this.spotlightRect !== null,
1255
+ 'content-layout-none': this.contentLayout === 'none',
1256
+ };
1257
+ }
1258
+ // biome-ignore lint/complexity/noExcessiveCognitiveComplexity: render preserva as variantes pública, local e nativa sem duplicar o conteúdo.
1259
+ render() {
1260
+ const maskId = `${this.customId}-spotlight-mask`;
1261
+ const padding = this.spotlightPadding;
1262
+ const rect = this.spotlightRect;
1263
+ const isDialogContainer = !this.isLegibilityVariant && this.contentLayout !== 'none';
1264
+ const maskElement = this.isLegibilityVariant ? (index.h("div", { class: "mask" })) : (index.h("div", { class: "mask", role: "button", "aria-label": "Fechar sobreposi\u00E7\u00E3o", tabIndex: 0, onClick: this.handleMaskClick, onKeyDown: (event) => {
1265
+ if (event.key === 'Enter' || event.key === ' ') {
1266
+ event.preventDefault();
1267
+ this.handleMaskClick(event);
1268
+ }
1269
+ } }));
1270
+ const contentElement = (index.h("div", { key: 'f5046cd6fdf7a128bed5b76fb7065fa3a7dcad24', ref: (el) => (this.contentRef = el ?? null), id: `${this.customId}-content`, class: this.contentLayout === 'none' ? 'content content-unwrapped' : 'content', tabIndex: this.contentLayout === 'none' ? undefined : -1 }, index.h("slot", { key: 'd341205278a651d39ebbd18e1802f14aeab1c1a4' })));
1271
+ return (index.h(index.Host, { key: 'a9aa507c3a541fc1978acc5269954b2ffebf2f6d' }, index.h("slot", { key: '53eb86b0900da07d1aa4ea6dd2116ae2c02a91d0', name: "activator" }), this.usesNativeDialog ? (index.h("dialog", { ref: (el) => {
1272
+ this.nativeDialogRef = el;
1273
+ this.scrimDivRef = el;
1274
+ }, class: this.getCssClassMap(), id: this.customId, role: this.usesNativeTopLayer ? undefined : 'dialog', "aria-modal": "true", "aria-label": this.ariaLabel || 'Conteúdo do diálogo', "data-visible": this.isActive ? 'true' : 'false', onCancel: this.handleNativeCancel, onKeyDown: this.handleKeyDown }, maskElement, rect !== null && this.renderSpotlightOverlay(maskId, rect, padding), contentElement)) : isDialogContainer ? (index.h("div", { ref: (el) => {
1275
+ this.nativeDialogRef = null;
1276
+ this.scrimDivRef = el;
1277
+ }, class: this.getCssClassMap(), id: this.customId, role: "dialog", "aria-modal": "true", "aria-label": this.ariaLabel || 'Conteúdo do diálogo', "data-visible": this.isActive ? 'true' : 'false', onKeyDown: this.handleKeyDown }, maskElement, rect !== null && this.renderSpotlightOverlay(maskId, rect, padding), contentElement)) : (index.h("div", { ref: (el) => {
1278
+ this.nativeDialogRef = null;
1279
+ this.scrimDivRef = el;
1280
+ }, class: this.getCssClassMap(), id: this.customId, role: "presentation", "data-visible": this.isActive ? 'true' : 'false' }, maskElement, rect !== null && this.renderSpotlightOverlay(maskId, rect, padding), contentElement))));
1281
+ }
1282
+ get el() { return index.getElement(this); }
1283
+ static get watchers() { return {
1284
+ "isOpen": [{
1285
+ "handleOpenChange": 0
1286
+ }],
1287
+ "zIndex": [{
1288
+ "updateStyles": 0
1289
+ }],
1290
+ "bgColor": [{
1291
+ "updateStyles": 0
1292
+ }],
1293
+ "customOpacity": [{
1294
+ "updateStyles": 0
1295
+ }],
1296
+ "legibilitySize": [{
1297
+ "updateStyles": 0
1298
+ }],
1299
+ "variant": [{
1300
+ "handleVariantChange": 0
1301
+ }],
1302
+ "displayMode": [{
1303
+ "handleLayerModeChange": 0
1304
+ }],
1305
+ "contentLayout": [{
1306
+ "handleLayerModeChange": 0
1307
+ }],
1308
+ "spotlightTargetId": [{
1309
+ "handleSpotlightChange": 0
1310
+ }],
1311
+ "spotlightPadding": [{
1312
+ "handleSpotlightChange": 0
1313
+ }],
1314
+ "spotlightShape": [{
1315
+ "handleSpotlightChange": 0
1316
+ }],
1317
+ "activator": [{
1318
+ "handleActivatorChange": 0
1319
+ }]
1320
+ }; }
1321
+ };
1322
+ Scrim.FOCUSABLE_SELECTORS = [
1323
+ 'a[href]:not([disabled])',
1324
+ 'button:not([disabled])',
1325
+ 'br-button:not([disabled])',
1326
+ 'input:not([disabled])',
1327
+ 'br-input:not([disabled])',
1328
+ 'select:not([disabled])',
1329
+ 'br-select:not([disabled])',
1330
+ 'textarea:not([disabled])',
1331
+ 'br-textarea:not([disabled])',
1332
+ '[tabindex]:not([tabindex="-1"])',
1333
+ ].join(',');
1334
+ Scrim.style = scrimCss();
1335
+
1336
+ exports.br_scrim = Scrim;