@govbr-ds/webcomponents 2.1.0 → 2.1.2

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 (866) hide show
  1. package/README.md +0 -11
  2. package/cem/custom-elements.json +272 -71
  3. package/dist/cjs/app-globals-DcqHuMBv.js +9 -0
  4. package/dist/cjs/br-avatar.cjs.entry.js +248 -0
  5. package/dist/cjs/br-breadcrumb-item.cjs.entry.js +45 -0
  6. package/dist/cjs/br-breadcrumb.cjs.entry.js +443 -0
  7. package/dist/cjs/br-button_2.cjs.entry.js +280 -0
  8. package/dist/cjs/br-card.cjs.entry.js +111 -0
  9. package/dist/cjs/br-carousel-page.cjs.entry.js +80 -0
  10. package/dist/cjs/br-carousel.cjs.entry.js +565 -0
  11. package/dist/cjs/br-checkbox-group.cjs.entry.js +118 -0
  12. package/dist/cjs/br-checkbox.cjs.entry.js +288 -0
  13. package/dist/cjs/br-checkgroup.cjs.entry.js +20 -0
  14. package/dist/cjs/br-collapse_2.cjs.entry.js +683 -0
  15. package/dist/cjs/br-cookiebar-cookie.cjs.entry.js +83 -0
  16. package/dist/cjs/br-cookiebar-group.cjs.entry.js +309 -0
  17. package/dist/cjs/br-cookiebar-header.cjs.entry.js +39 -0
  18. package/dist/cjs/br-cookiebar-link.cjs.entry.js +55 -0
  19. package/dist/cjs/br-cookiebar-note-group.cjs.entry.js +70 -0
  20. package/dist/cjs/br-cookiebar-note.cjs.entry.js +25 -0
  21. package/dist/cjs/br-cookiebar.cjs.entry.js +758 -0
  22. package/dist/cjs/br-crumb.cjs.entry.js +51 -0
  23. package/dist/cjs/br-date-picker_3.cjs.entry.js +2447 -0
  24. package/dist/cjs/br-datetime-picker.cjs.entry.js +1886 -0
  25. package/dist/cjs/br-divider.cjs.entry.js +225 -0
  26. package/dist/cjs/br-dropdown_2.cjs.entry.js +2000 -0
  27. package/dist/cjs/br-footer-category.cjs.entry.js +102 -0
  28. package/dist/cjs/br-footer-item.cjs.entry.js +52 -0
  29. package/dist/cjs/br-footer-legal.cjs.entry.js +41 -0
  30. package/dist/cjs/br-footer-logo.cjs.entry.js +104 -0
  31. package/dist/cjs/br-footer-social.cjs.entry.js +71 -0
  32. package/dist/cjs/br-footer.cjs.entry.js +92 -0
  33. package/dist/cjs/br-header-function.cjs.entry.js +142 -0
  34. package/dist/cjs/br-header-link.cjs.entry.js +60 -0
  35. package/dist/cjs/br-header-list.cjs.entry.js +279 -0
  36. package/dist/cjs/br-header-logo.cjs.entry.js +178 -0
  37. package/dist/cjs/br-header.cjs.entry.js +642 -0
  38. package/dist/cjs/br-icon.cjs.entry.js +485 -0
  39. package/dist/cjs/br-input.cjs.entry.js +599 -0
  40. package/dist/cjs/br-item.cjs.entry.js +367 -0
  41. package/dist/cjs/br-link.cjs.entry.js +133 -0
  42. package/dist/cjs/br-loading.cjs.entry.js +505 -0
  43. package/dist/cjs/br-magic-button.cjs.entry.js +93 -0
  44. package/dist/cjs/br-menu-group.cjs.entry.js +23 -0
  45. package/dist/cjs/br-menu-header.cjs.entry.js +47 -0
  46. package/dist/cjs/br-menu-info.cjs.entry.js +38 -0
  47. package/dist/cjs/br-menu-item.cjs.entry.js +79 -0
  48. package/dist/cjs/br-menu-link.cjs.entry.js +56 -0
  49. package/dist/cjs/br-menu-list.cjs.entry.js +149 -0
  50. package/dist/cjs/br-menu-logo.cjs.entry.js +75 -0
  51. package/dist/cjs/br-menu-social.cjs.entry.js +65 -0
  52. package/dist/cjs/br-menu.cjs.entry.js +993 -0
  53. package/dist/cjs/br-modal.cjs.entry.js +496 -0
  54. package/dist/cjs/br-notification-body.cjs.entry.js +71 -0
  55. package/dist/cjs/br-notification-header.cjs.entry.js +48 -0
  56. package/dist/cjs/br-notification-item.cjs.entry.js +110 -0
  57. package/dist/cjs/br-notification.cjs.entry.js +334 -0
  58. package/dist/cjs/br-pagination.cjs.entry.js +884 -0
  59. package/dist/cjs/br-radio-group.cjs.entry.js +428 -0
  60. package/dist/cjs/br-radio.cjs.entry.js +357 -0
  61. package/dist/cjs/br-scrim.cjs.entry.js +1336 -0
  62. package/dist/cjs/br-select-input_3.cjs.entry.js +988 -0
  63. package/dist/cjs/br-sign-in.cjs.entry.js +126 -0
  64. package/dist/cjs/br-skip-link-item.cjs.entry.js +20 -0
  65. package/dist/cjs/br-skip-link.cjs.entry.js +362 -0
  66. package/dist/cjs/br-skiplink-item.cjs.entry.js +192 -0
  67. package/dist/cjs/br-slider.cjs.entry.js +687 -0
  68. package/dist/cjs/br-step_2.cjs.entry.js +628 -0
  69. package/dist/cjs/br-switch.cjs.entry.js +245 -0
  70. package/dist/cjs/br-tab-item.cjs.entry.js +185 -0
  71. package/dist/cjs/br-tab.cjs.entry.js +397 -0
  72. package/dist/cjs/br-table-body.cjs.entry.js +37 -0
  73. package/dist/cjs/br-table-cell.cjs.entry.js +184 -0
  74. package/dist/cjs/br-table-header-cell.cjs.entry.js +173 -0
  75. package/dist/cjs/br-table-header.cjs.entry.js +37 -0
  76. package/dist/cjs/br-table-row.cjs.entry.js +81 -0
  77. package/dist/cjs/br-table.cjs.entry.js +680 -0
  78. package/dist/cjs/br-tag.cjs.entry.js +493 -0
  79. package/dist/cjs/br-textarea.cjs.entry.js +306 -0
  80. package/dist/cjs/br-tooltip.cjs.entry.js +627 -0
  81. package/dist/cjs/br-upload.cjs.entry.js +581 -0
  82. package/dist/cjs/br-wizard-panel.cjs.entry.js +54 -0
  83. package/dist/cjs/br-wizard.cjs.entry.js +708 -0
  84. package/dist/cjs/breakpoint-observer-P8veqXg7.js +144 -0
  85. package/dist/cjs/clamp-Co_hWptd.js +25 -0
  86. package/dist/cjs/cookiebar.utils-CB1gQwZ4.js +18 -0
  87. package/dist/cjs/datetime-picker-constants-B5pWeOn1.js +3827 -0
  88. package/dist/cjs/event-CmVdNHxl.js +56 -0
  89. package/dist/cjs/floating-surface-dismiss-ccdiD0KF.js +63 -0
  90. package/dist/cjs/floating-ui-MBI1osio.js +136 -0
  91. package/dist/cjs/floating-ui.dom-BUSTaaxR.js +1715 -0
  92. package/dist/cjs/focus-DuywwJPR.js +30 -0
  93. package/dist/cjs/getNextElement-R9l3JtM9.js +31 -0
  94. package/dist/cjs/iconify-icon-DfODV9bf.js +2307 -0
  95. package/dist/cjs/id-CjRFMzf6.js +20 -0
  96. package/dist/cjs/index-C92n55ch.js +678 -0
  97. package/dist/cjs/index-CRdcutym.js +3287 -0
  98. package/dist/cjs/index.cjs.js +12 -0
  99. package/dist/cjs/isNil-DO5zWc3l.js +19 -0
  100. package/dist/cjs/isValid-Fu3kaWNn.js +3694 -0
  101. package/dist/cjs/loader.cjs.js +17 -0
  102. package/dist/cjs/native-dialog--Ewqm4w0.js +49 -0
  103. package/dist/cjs/navigation-AbzwcRCU.js +25 -0
  104. package/dist/cjs/parts-D5K3ae2C.js +19 -0
  105. package/dist/cjs/props-CScmBvKd.js +24 -0
  106. package/dist/cjs/raf-batcher-yc87a4dS.js +55 -0
  107. package/dist/cjs/slot-DAllytTj.js +48 -0
  108. package/dist/cjs/swipe-BU8_XE9f.js +345 -0
  109. package/dist/cjs/table-constants-BOPSay0B.js +183 -0
  110. package/dist/cjs/validator-CTCajtT9.js +123 -0
  111. package/dist/cjs/webcomponents.cjs.js +50 -0
  112. package/dist/collection/assets/icon-search.svg +6 -0
  113. package/dist/collection/assets/logo-negative.svg +1 -0
  114. package/dist/collection/assets/logo-positive.svg +1 -0
  115. package/dist/collection/assets/wc.svg +1 -0
  116. package/dist/collection/collection-manifest.json +113 -0
  117. package/dist/collection/components/avatar/avatar.css +1 -0
  118. package/dist/collection/components/avatar/avatar.js +589 -0
  119. package/dist/collection/components/avatar/avatar.types.js +1 -0
  120. package/dist/collection/components/breadcrumb/breadcrumb-item/breadcrumb-item.js +166 -0
  121. package/dist/collection/components/breadcrumb/breadcrumb.css +1 -0
  122. package/dist/collection/components/breadcrumb/breadcrumb.js +619 -0
  123. package/dist/collection/components/breadcrumb/breadcrumb.types.js +1 -0
  124. package/dist/collection/components/breadcrumb/crumb/crumb.js +175 -0
  125. package/dist/collection/components/button/button.css +1 -0
  126. package/dist/collection/components/button/button.js +546 -0
  127. package/dist/collection/components/button/button.types.js +1 -0
  128. package/dist/collection/components/card/card.css +1 -0
  129. package/dist/collection/components/card/card.js +225 -0
  130. package/dist/collection/components/carousel/carousel-page/carousel-page.css +1 -0
  131. package/dist/collection/components/carousel/carousel-page/carousel-page.js +195 -0
  132. package/dist/collection/components/carousel/carousel.css +1 -0
  133. package/dist/collection/components/carousel/carousel.js +1217 -0
  134. package/dist/collection/components/carousel/carousel.types.js +1 -0
  135. package/dist/collection/components/checkbox/checkbox.css +1 -0
  136. package/dist/collection/components/checkbox/checkbox.js +823 -0
  137. package/dist/collection/components/checkbox/checkbox.types.js +1 -0
  138. package/dist/collection/components/checkbox-group/checkbox-group.css +1 -0
  139. package/dist/collection/components/checkbox-group/checkbox-group.js +268 -0
  140. package/dist/collection/components/checkgroup/checkgroup.js +166 -0
  141. package/dist/collection/components/collapse/collapse.css +1 -0
  142. package/dist/collection/components/collapse/collapse.js +642 -0
  143. package/dist/collection/components/collapse/collapse.types.js +1 -0
  144. package/dist/collection/components/cookiebar/cookiebar-cookie/cookiebar-cookie.css +1 -0
  145. package/dist/collection/components/cookiebar/cookiebar-cookie/cookiebar-cookie.js +529 -0
  146. package/dist/collection/components/cookiebar/cookiebar-group/cookiebar-group.css +1 -0
  147. package/dist/collection/components/cookiebar/cookiebar-group/cookiebar-group.js +628 -0
  148. package/dist/collection/components/cookiebar/cookiebar-header/cookiebar-header.css +1 -0
  149. package/dist/collection/components/cookiebar/cookiebar-header/cookiebar-header.js +165 -0
  150. package/dist/collection/components/cookiebar/cookiebar-link/cookiebar-link.css +1 -0
  151. package/dist/collection/components/cookiebar/cookiebar-link/cookiebar-link.js +201 -0
  152. package/dist/collection/components/cookiebar/cookiebar-note/cookiebar-note.css +1 -0
  153. package/dist/collection/components/cookiebar/cookiebar-note/cookiebar-note.js +100 -0
  154. package/dist/collection/components/cookiebar/cookiebar-note-group/cookiebar-note-group.css +1 -0
  155. package/dist/collection/components/cookiebar/cookiebar-note-group/cookiebar-note-group.js +172 -0
  156. package/dist/collection/components/cookiebar/cookiebar.css +1 -0
  157. package/dist/collection/components/cookiebar/cookiebar.js +1419 -0
  158. package/dist/collection/components/cookiebar/cookiebar.types.js +1 -0
  159. package/dist/collection/components/cookiebar/cookiebar.utils.js +14 -0
  160. package/dist/collection/components/datetime-picker/date-picker/date-picker-locale.js +94 -0
  161. package/dist/collection/components/datetime-picker/date-picker/date-picker-props-validation.js +57 -0
  162. package/dist/collection/components/datetime-picker/date-picker/date-picker.css +1 -0
  163. package/dist/collection/components/datetime-picker/date-picker/date-picker.js +913 -0
  164. package/dist/collection/components/datetime-picker/datetime-input/datetime-input-props-validation.js +65 -0
  165. package/dist/collection/components/datetime-picker/datetime-input/datetime-input.css +1 -0
  166. package/dist/collection/components/datetime-picker/datetime-input/datetime-input.js +826 -0
  167. package/dist/collection/components/datetime-picker/datetime-picker-constants.js +36 -0
  168. package/dist/collection/components/datetime-picker/datetime-picker-form-associated.js +112 -0
  169. package/dist/collection/components/datetime-picker/datetime-picker-props-validation.js +202 -0
  170. package/dist/collection/components/datetime-picker/datetime-picker.css +1 -0
  171. package/dist/collection/components/datetime-picker/datetime-picker.js +1924 -0
  172. package/dist/collection/components/datetime-picker/datetime-picker.types.js +1 -0
  173. package/dist/collection/components/datetime-picker/datetime-picker.utils.js +250 -0
  174. package/dist/collection/components/datetime-picker/time-picker/time-picker-constants.js +13 -0
  175. package/dist/collection/components/datetime-picker/time-picker/time-picker.css +1 -0
  176. package/dist/collection/components/datetime-picker/time-picker/time-picker.js +456 -0
  177. package/dist/collection/components/divider/divider.css +1 -0
  178. package/dist/collection/components/divider/divider.js +537 -0
  179. package/dist/collection/components/divider/divider.types.js +1 -0
  180. package/dist/collection/components/dropdown/dropdown.css +1 -0
  181. package/dist/collection/components/dropdown/dropdown.js +939 -0
  182. package/dist/collection/components/dropdown/dropdown.types.js +1 -0
  183. package/dist/collection/components/footer/footer-category/footer-category.css +1 -0
  184. package/dist/collection/components/footer/footer-category/footer-category.js +160 -0
  185. package/dist/collection/components/footer/footer-item/footer-item.css +1 -0
  186. package/dist/collection/components/footer/footer-item/footer-item.js +154 -0
  187. package/dist/collection/components/footer/footer-legal/footer-legal.css +1 -0
  188. package/dist/collection/components/footer/footer-legal/footer-legal.js +75 -0
  189. package/dist/collection/components/footer/footer-logo/footer-logo.css +1 -0
  190. package/dist/collection/components/footer/footer-logo/footer-logo.js +342 -0
  191. package/dist/collection/components/footer/footer-logo/footer-logo.types.js +1 -0
  192. package/dist/collection/components/footer/footer-social/footer-social.css +1 -0
  193. package/dist/collection/components/footer/footer-social/footer-social.js +239 -0
  194. package/dist/collection/components/footer/footer.css +1 -0
  195. package/dist/collection/components/footer/footer.js +245 -0
  196. package/dist/collection/components/footer/footer.types.js +1 -0
  197. package/dist/collection/components/global.types.js +1 -0
  198. package/dist/collection/components/header/header-function/header-function.css +1 -0
  199. package/dist/collection/components/header/header-function/header-function.js +311 -0
  200. package/dist/collection/components/header/header-link/header-link.css +1 -0
  201. package/dist/collection/components/header/header-link/header-link.js +189 -0
  202. package/dist/collection/components/header/header-list/header-list.css +1 -0
  203. package/dist/collection/components/header/header-list/header-list.js +452 -0
  204. package/dist/collection/components/header/header-logo/header-logo.css +1 -0
  205. package/dist/collection/components/header/header-logo/header-logo.js +421 -0
  206. package/dist/collection/components/header/header.css +1 -0
  207. package/dist/collection/components/header/header.js +1131 -0
  208. package/dist/collection/components/header/header.types.js +1 -0
  209. package/dist/collection/components/icon/default-icons-cache.js +233 -0
  210. package/dist/collection/components/icon/icon.css +1 -0
  211. package/dist/collection/components/icon/icon.js +598 -0
  212. package/dist/collection/components/icon/icon.types.js +1 -0
  213. package/dist/collection/components/icon/icon.utils.js +33 -0
  214. package/dist/collection/components/input/input.css +1 -0
  215. package/dist/collection/components/input/input.js +1642 -0
  216. package/dist/collection/components/input/input.types.js +1 -0
  217. package/dist/collection/components/item/item.css +1 -0
  218. package/dist/collection/components/item/item.js +917 -0
  219. package/dist/collection/components/item/item.types.js +1 -0
  220. package/dist/collection/components/link/link.css +1 -0
  221. package/dist/collection/components/link/link.js +699 -0
  222. package/dist/collection/components/list/list.css +1 -0
  223. package/dist/collection/components/list/list.js +728 -0
  224. package/dist/collection/components/loading/loading.css +1 -0
  225. package/dist/collection/components/loading/loading.js +1169 -0
  226. package/dist/collection/components/loading/loading.types.js +1 -0
  227. package/dist/collection/components/magic-button/magic-button.css +1 -0
  228. package/dist/collection/components/magic-button/magic-button.js +238 -0
  229. package/dist/collection/components/menu/menu-group/menu-group.css +1 -0
  230. package/dist/collection/components/menu/menu-group/menu-group.js +77 -0
  231. package/dist/collection/components/menu/menu-header/menu-header.css +1 -0
  232. package/dist/collection/components/menu/menu-header/menu-header.js +161 -0
  233. package/dist/collection/components/menu/menu-info/menu-info.css +1 -0
  234. package/dist/collection/components/menu/menu-info/menu-info.js +94 -0
  235. package/dist/collection/components/menu/menu-item/menu-item.css +1 -0
  236. package/dist/collection/components/menu/menu-item/menu-item.js +306 -0
  237. package/dist/collection/components/menu/menu-item/menu-item.types.js +1 -0
  238. package/dist/collection/components/menu/menu-link/menu-link.css +1 -0
  239. package/dist/collection/components/menu/menu-link/menu-link.js +260 -0
  240. package/dist/collection/components/menu/menu-list/menu-list.css +1 -0
  241. package/dist/collection/components/menu/menu-list/menu-list.js +311 -0
  242. package/dist/collection/components/menu/menu-logo/menu-logo.css +1 -0
  243. package/dist/collection/components/menu/menu-logo/menu-logo.js +230 -0
  244. package/dist/collection/components/menu/menu-social/menu-social.css +1 -0
  245. package/dist/collection/components/menu/menu-social/menu-social.js +263 -0
  246. package/dist/collection/components/menu/menu.css +1 -0
  247. package/dist/collection/components/menu/menu.js +1372 -0
  248. package/dist/collection/components/menu/menu.types.js +1 -0
  249. package/dist/collection/components/menu/menu.utils.js +279 -0
  250. package/dist/collection/components/message/message.css +1 -0
  251. package/dist/collection/components/message/message.js +508 -0
  252. package/dist/collection/components/modal/modal.css +1 -0
  253. package/dist/collection/components/modal/modal.js +842 -0
  254. package/dist/collection/components/modal/modal.types.js +1 -0
  255. package/dist/collection/components/notification/notification-body/notification-body.css +1 -0
  256. package/dist/collection/components/notification/notification-body/notification-body.js +153 -0
  257. package/dist/collection/components/notification/notification-header/notification-header.css +1 -0
  258. package/dist/collection/components/notification/notification-header/notification-header.js +181 -0
  259. package/dist/collection/components/notification/notification-item/notification-item.css +1 -0
  260. package/dist/collection/components/notification/notification-item/notification-item.js +351 -0
  261. package/dist/collection/components/notification/notification-item/notification-item.types.js +1 -0
  262. package/dist/collection/components/notification/notification.css +1 -0
  263. package/dist/collection/components/notification/notification.js +838 -0
  264. package/dist/collection/components/notification/notification.types.js +1 -0
  265. package/dist/collection/components/pagination/pagination.css +1 -0
  266. package/dist/collection/components/pagination/pagination.js +1470 -0
  267. package/dist/collection/components/pagination/pagination.types.js +1 -0
  268. package/dist/collection/components/radio/radio.css +1 -0
  269. package/dist/collection/components/radio/radio.js +847 -0
  270. package/dist/collection/components/radio/radio.types.js +1 -0
  271. package/dist/collection/components/radio-group/radio-group.css +1 -0
  272. package/dist/collection/components/radio-group/radio-group.js +862 -0
  273. package/dist/collection/components/radio-group/radio-group.types.js +1 -0
  274. package/dist/collection/components/scrim/scrim.css +1 -0
  275. package/dist/collection/components/scrim/scrim.js +1825 -0
  276. package/dist/collection/components/scrim/scrim.types.js +1 -0
  277. package/dist/collection/components/scrim/scrim.utils.js +132 -0
  278. package/dist/collection/components/select/select-input/select-input.css +1 -0
  279. package/dist/collection/components/select/select-input/select-input.js +586 -0
  280. package/dist/collection/components/select/select-list/select-list.css +1 -0
  281. package/dist/collection/components/select/select-list/select-list.js +1159 -0
  282. package/dist/collection/components/select/select-option/select-option.css +1 -0
  283. package/dist/collection/components/select/select-option/select-option.js +564 -0
  284. package/dist/collection/components/select/select.constants.js +6 -0
  285. package/dist/collection/components/select/select.css +1 -0
  286. package/dist/collection/components/select/select.js +2692 -0
  287. package/dist/collection/components/select/select.types.js +1 -0
  288. package/dist/collection/components/select/select.utils.js +34 -0
  289. package/dist/collection/components/sign-in/sign-in.css +1 -0
  290. package/dist/collection/components/sign-in/sign-in.js +401 -0
  291. package/dist/collection/components/sign-in/sign-in.types.js +1 -0
  292. package/dist/collection/components/skip-link/skip-link-item/skip-link-item-alias.js +103 -0
  293. package/dist/collection/components/skip-link/skip-link-item/skip-link-item.css +1 -0
  294. package/dist/collection/components/skip-link/skip-link-item/skip-link-item.js +450 -0
  295. package/dist/collection/components/skip-link/skip-link.css +1 -0
  296. package/dist/collection/components/skip-link/skip-link.js +699 -0
  297. package/dist/collection/components/skip-link/skip-link.types.js +1 -0
  298. package/dist/collection/components/slider/slider.css +1 -0
  299. package/dist/collection/components/slider/slider.js +1324 -0
  300. package/dist/collection/components/slider/slider.types.js +1 -0
  301. package/dist/collection/components/step/step-item/step-item.css +1 -0
  302. package/dist/collection/components/step/step-item/step-item.js +604 -0
  303. package/dist/collection/components/step/step-item/step-item.types.js +1 -0
  304. package/dist/collection/components/step/step.css +1 -0
  305. package/dist/collection/components/step/step.js +896 -0
  306. package/dist/collection/components/step/step.types.js +1 -0
  307. package/dist/collection/components/switch/switch.css +1 -0
  308. package/dist/collection/components/switch/switch.js +715 -0
  309. package/dist/collection/components/switch/switch.types.js +1 -0
  310. package/dist/collection/components/tab/tab-item/tab-item.css +1 -0
  311. package/dist/collection/components/tab/tab-item/tab-item.js +425 -0
  312. package/dist/collection/components/tab/tab.css +1 -0
  313. package/dist/collection/components/tab/tab.js +724 -0
  314. package/dist/collection/components/tab/tab.types.js +1 -0
  315. package/dist/collection/components/table/table-body/table-body.css +1 -0
  316. package/dist/collection/components/table/table-body/table-body.js +51 -0
  317. package/dist/collection/components/table/table-cell/table-cell.css +1 -0
  318. package/dist/collection/components/table/table-cell/table-cell.js +373 -0
  319. package/dist/collection/components/table/table-constants.js +171 -0
  320. package/dist/collection/components/table/table-header/table-header.css +1 -0
  321. package/dist/collection/components/table/table-header/table-header.js +51 -0
  322. package/dist/collection/components/table/table-header-cell/table-header-cell.css +1 -0
  323. package/dist/collection/components/table/table-header-cell/table-header-cell.js +402 -0
  324. package/dist/collection/components/table/table-row/table-row.css +1 -0
  325. package/dist/collection/components/table/table-row/table-row.js +261 -0
  326. package/dist/collection/components/table/table-tokens.js +50 -0
  327. package/dist/collection/components/table/table-types.js +1 -0
  328. package/dist/collection/components/table/table-utils.js +44 -0
  329. package/dist/collection/components/table/table.css +1 -0
  330. package/dist/collection/components/table/table.js +1030 -0
  331. package/dist/collection/components/tag/tag.css +1 -0
  332. package/dist/collection/components/tag/tag.js +1152 -0
  333. package/dist/collection/components/tag/tag.types.js +1 -0
  334. package/dist/collection/components/textarea/textarea.css +1 -0
  335. package/dist/collection/components/textarea/textarea.js +985 -0
  336. package/dist/collection/components/textarea/textarea.types.js +1 -0
  337. package/dist/collection/components/tooltip/tooltip.css +1 -0
  338. package/dist/collection/components/tooltip/tooltip.js +1024 -0
  339. package/dist/collection/components/tooltip/tooltip.types.js +1 -0
  340. package/dist/collection/components/upload/upload.css +1 -0
  341. package/dist/collection/components/upload/upload.js +1314 -0
  342. package/dist/collection/components/upload/upload.types.js +1 -0
  343. package/dist/collection/components/wizard/wizard-panel/wizard-panel.css +1 -0
  344. package/dist/collection/components/wizard/wizard-panel/wizard-panel.js +167 -0
  345. package/dist/collection/components/wizard/wizard.css +1 -0
  346. package/dist/collection/components/wizard/wizard.js +1228 -0
  347. package/dist/collection/index.js +14 -0
  348. package/dist/collection/pages/components/cookiebar/index.js +26 -0
  349. package/dist/collection/pages/components/link/index.js +29 -0
  350. package/dist/collection/pages/components/pagination/index.js +12 -0
  351. package/dist/collection/pages/components/slider/index.js +18 -0
  352. package/dist/collection/pages/scripts/code-editor.js +101 -0
  353. package/dist/collection/pages/scripts/component-controls.js +600 -0
  354. package/dist/collection/pages/scripts/dev-event-console.js +47 -0
  355. package/dist/collection/pages/scripts/menu.js +192 -0
  356. package/dist/collection/pages/scripts/pageLoader.js +1422 -0
  357. package/dist/collection/shared/utils/assetsPath.js +75 -0
  358. package/dist/collection/shared/utils/breakpoint-observer.js +139 -0
  359. package/dist/collection/shared/utils/clamp.js +21 -0
  360. package/dist/collection/shared/utils/css-variables.js +12 -0
  361. package/dist/collection/shared/utils/cssVariables.js +37 -0
  362. package/dist/collection/shared/utils/date.js +405 -0
  363. package/dist/collection/shared/utils/debounce.js +39 -0
  364. package/dist/collection/shared/utils/event.js +55 -0
  365. package/dist/collection/shared/utils/floating-surface-dismiss.js +59 -0
  366. package/dist/collection/shared/utils/floating-ui.js +131 -0
  367. package/dist/collection/shared/utils/focus.js +24 -0
  368. package/dist/collection/shared/utils/form.js +82 -0
  369. package/dist/collection/shared/utils/format-bytes.js +20 -0
  370. package/dist/collection/shared/utils/getNextElement.js +30 -0
  371. package/dist/collection/shared/utils/getRandom.js +27 -0
  372. package/dist/collection/shared/utils/helpers.js +31 -0
  373. package/dist/collection/shared/utils/id.js +16 -0
  374. package/dist/collection/shared/utils/index.js +60 -0
  375. package/dist/collection/shared/utils/interfaces.js +1 -0
  376. package/dist/collection/shared/utils/isClient.js +14 -0
  377. package/dist/collection/shared/utils/isDefined.js +19 -0
  378. package/dist/collection/shared/utils/isEmpty.js +30 -0
  379. package/dist/collection/shared/utils/isHTMLElement.js +16 -0
  380. package/dist/collection/shared/utils/isNil.js +15 -0
  381. package/dist/collection/shared/utils/isString.js +20 -0
  382. package/dist/collection/shared/utils/native-dialog.js +44 -0
  383. package/dist/collection/shared/utils/navigation.js +21 -0
  384. package/dist/collection/shared/utils/parts.js +15 -0
  385. package/dist/collection/shared/utils/prop-warning.js +7 -0
  386. package/dist/collection/shared/utils/props.js +37 -0
  387. package/dist/collection/shared/utils/raf-batcher.js +51 -0
  388. package/dist/collection/shared/utils/scrollLock.js +141 -0
  389. package/dist/collection/shared/utils/setRafTimeout.js +38 -0
  390. package/dist/collection/shared/utils/slot.js +113 -0
  391. package/dist/collection/shared/utils/ssr-date.js +33 -0
  392. package/dist/collection/shared/utils/stringToArray.js +29 -0
  393. package/dist/collection/shared/utils/swipe.js +342 -0
  394. package/dist/collection/shared/utils/transition.js +127 -0
  395. package/dist/collection/shared/utils/types.js +1 -0
  396. package/dist/collection/shared/utils/validator.js +51 -0
  397. package/dist/collection/value-accessors/angular-value-accessor-config.js +41 -0
  398. package/dist/collection/value-accessors/index.js +6 -0
  399. package/dist/collection/value-accessors/vue-model-config.js +43 -0
  400. package/dist/components/br-avatar.d.ts +11 -0
  401. package/dist/components/br-avatar.js +5 -0
  402. package/dist/components/br-breadcrumb-item.d.ts +11 -0
  403. package/dist/components/br-breadcrumb-item.js +5 -0
  404. package/dist/components/br-breadcrumb.d.ts +11 -0
  405. package/dist/components/br-breadcrumb.js +5 -0
  406. package/dist/components/br-button.d.ts +11 -0
  407. package/dist/components/br-button.js +5 -0
  408. package/dist/components/br-card.d.ts +11 -0
  409. package/dist/components/br-card.js +5 -0
  410. package/dist/components/br-carousel-page.d.ts +11 -0
  411. package/dist/components/br-carousel-page.js +5 -0
  412. package/dist/components/br-carousel.d.ts +11 -0
  413. package/dist/components/br-carousel.js +5 -0
  414. package/dist/components/br-checkbox-group.d.ts +11 -0
  415. package/dist/components/br-checkbox-group.js +5 -0
  416. package/dist/components/br-checkbox.d.ts +11 -0
  417. package/dist/components/br-checkbox.js +5 -0
  418. package/dist/components/br-checkgroup.d.ts +11 -0
  419. package/dist/components/br-checkgroup.js +5 -0
  420. package/dist/components/br-collapse.d.ts +11 -0
  421. package/dist/components/br-collapse.js +5 -0
  422. package/dist/components/br-cookiebar-cookie.d.ts +11 -0
  423. package/dist/components/br-cookiebar-cookie.js +5 -0
  424. package/dist/components/br-cookiebar-group.d.ts +11 -0
  425. package/dist/components/br-cookiebar-group.js +5 -0
  426. package/dist/components/br-cookiebar-header.d.ts +11 -0
  427. package/dist/components/br-cookiebar-header.js +5 -0
  428. package/dist/components/br-cookiebar-link.d.ts +11 -0
  429. package/dist/components/br-cookiebar-link.js +5 -0
  430. package/dist/components/br-cookiebar-note-group.d.ts +11 -0
  431. package/dist/components/br-cookiebar-note-group.js +5 -0
  432. package/dist/components/br-cookiebar-note.d.ts +11 -0
  433. package/dist/components/br-cookiebar-note.js +5 -0
  434. package/dist/components/br-cookiebar.d.ts +11 -0
  435. package/dist/components/br-cookiebar.js +5 -0
  436. package/dist/components/br-crumb.d.ts +11 -0
  437. package/dist/components/br-crumb.js +5 -0
  438. package/dist/components/br-date-picker.d.ts +11 -0
  439. package/dist/components/br-date-picker.js +5 -0
  440. package/dist/components/br-datetime-input.d.ts +11 -0
  441. package/dist/components/br-datetime-input.js +5 -0
  442. package/dist/components/br-datetime-picker.d.ts +11 -0
  443. package/dist/components/br-datetime-picker.js +5 -0
  444. package/dist/components/br-divider.d.ts +11 -0
  445. package/dist/components/br-divider.js +5 -0
  446. package/dist/components/br-dropdown.d.ts +11 -0
  447. package/dist/components/br-dropdown.js +5 -0
  448. package/dist/components/br-footer-category.d.ts +11 -0
  449. package/dist/components/br-footer-category.js +5 -0
  450. package/dist/components/br-footer-item.d.ts +11 -0
  451. package/dist/components/br-footer-item.js +5 -0
  452. package/dist/components/br-footer-legal.d.ts +11 -0
  453. package/dist/components/br-footer-legal.js +5 -0
  454. package/dist/components/br-footer-logo.d.ts +11 -0
  455. package/dist/components/br-footer-logo.js +5 -0
  456. package/dist/components/br-footer-social.d.ts +11 -0
  457. package/dist/components/br-footer-social.js +5 -0
  458. package/dist/components/br-footer.d.ts +11 -0
  459. package/dist/components/br-footer.js +5 -0
  460. package/dist/components/br-header-function.d.ts +11 -0
  461. package/dist/components/br-header-function.js +5 -0
  462. package/dist/components/br-header-link.d.ts +11 -0
  463. package/dist/components/br-header-link.js +5 -0
  464. package/dist/components/br-header-list.d.ts +11 -0
  465. package/dist/components/br-header-list.js +5 -0
  466. package/dist/components/br-header-logo.d.ts +11 -0
  467. package/dist/components/br-header-logo.js +5 -0
  468. package/dist/components/br-header.d.ts +11 -0
  469. package/dist/components/br-header.js +5 -0
  470. package/dist/components/br-icon.d.ts +11 -0
  471. package/dist/components/br-icon.js +5 -0
  472. package/dist/components/br-input.d.ts +11 -0
  473. package/dist/components/br-input.js +5 -0
  474. package/dist/components/br-item.d.ts +11 -0
  475. package/dist/components/br-item.js +5 -0
  476. package/dist/components/br-link.d.ts +11 -0
  477. package/dist/components/br-link.js +5 -0
  478. package/dist/components/br-list.d.ts +11 -0
  479. package/dist/components/br-list.js +5 -0
  480. package/dist/components/br-loading.d.ts +11 -0
  481. package/dist/components/br-loading.js +5 -0
  482. package/dist/components/br-magic-button.d.ts +11 -0
  483. package/dist/components/br-magic-button.js +5 -0
  484. package/dist/components/br-menu-group.d.ts +11 -0
  485. package/dist/components/br-menu-group.js +5 -0
  486. package/dist/components/br-menu-header.d.ts +11 -0
  487. package/dist/components/br-menu-header.js +5 -0
  488. package/dist/components/br-menu-info.d.ts +11 -0
  489. package/dist/components/br-menu-info.js +5 -0
  490. package/dist/components/br-menu-item.d.ts +11 -0
  491. package/dist/components/br-menu-item.js +5 -0
  492. package/dist/components/br-menu-link.d.ts +11 -0
  493. package/dist/components/br-menu-link.js +5 -0
  494. package/dist/components/br-menu-list.d.ts +11 -0
  495. package/dist/components/br-menu-list.js +5 -0
  496. package/dist/components/br-menu-logo.d.ts +11 -0
  497. package/dist/components/br-menu-logo.js +5 -0
  498. package/dist/components/br-menu-social.d.ts +11 -0
  499. package/dist/components/br-menu-social.js +5 -0
  500. package/dist/components/br-menu.d.ts +11 -0
  501. package/dist/components/br-menu.js +5 -0
  502. package/dist/components/br-message.d.ts +11 -0
  503. package/dist/components/br-message.js +5 -0
  504. package/dist/components/br-modal.d.ts +11 -0
  505. package/dist/components/br-modal.js +5 -0
  506. package/dist/components/br-notification-body.d.ts +11 -0
  507. package/dist/components/br-notification-body.js +5 -0
  508. package/dist/components/br-notification-header.d.ts +11 -0
  509. package/dist/components/br-notification-header.js +5 -0
  510. package/dist/components/br-notification-item.d.ts +11 -0
  511. package/dist/components/br-notification-item.js +5 -0
  512. package/dist/components/br-notification.d.ts +11 -0
  513. package/dist/components/br-notification.js +5 -0
  514. package/dist/components/br-pagination.d.ts +11 -0
  515. package/dist/components/br-pagination.js +5 -0
  516. package/dist/components/br-radio-group.d.ts +11 -0
  517. package/dist/components/br-radio-group.js +5 -0
  518. package/dist/components/br-radio.d.ts +11 -0
  519. package/dist/components/br-radio.js +5 -0
  520. package/dist/components/br-scrim.d.ts +11 -0
  521. package/dist/components/br-scrim.js +5 -0
  522. package/dist/components/br-select-input.d.ts +11 -0
  523. package/dist/components/br-select-input.js +5 -0
  524. package/dist/components/br-select-list.d.ts +11 -0
  525. package/dist/components/br-select-list.js +5 -0
  526. package/dist/components/br-select-option.d.ts +11 -0
  527. package/dist/components/br-select-option.js +5 -0
  528. package/dist/components/br-select.d.ts +11 -0
  529. package/dist/components/br-select.js +5 -0
  530. package/dist/components/br-sign-in.d.ts +11 -0
  531. package/dist/components/br-sign-in.js +5 -0
  532. package/dist/components/br-skip-link-item.d.ts +11 -0
  533. package/dist/components/br-skip-link-item.js +5 -0
  534. package/dist/components/br-skip-link.d.ts +11 -0
  535. package/dist/components/br-skip-link.js +5 -0
  536. package/dist/components/br-skiplink-item.d.ts +11 -0
  537. package/dist/components/br-skiplink-item.js +5 -0
  538. package/dist/components/br-slider.d.ts +11 -0
  539. package/dist/components/br-slider.js +5 -0
  540. package/dist/components/br-step-item.d.ts +11 -0
  541. package/dist/components/br-step-item.js +5 -0
  542. package/dist/components/br-step.d.ts +11 -0
  543. package/dist/components/br-step.js +5 -0
  544. package/dist/components/br-switch.d.ts +11 -0
  545. package/dist/components/br-switch.js +5 -0
  546. package/dist/components/br-tab-item.d.ts +11 -0
  547. package/dist/components/br-tab-item.js +5 -0
  548. package/dist/components/br-tab.d.ts +11 -0
  549. package/dist/components/br-tab.js +5 -0
  550. package/dist/components/br-table-body.d.ts +11 -0
  551. package/dist/components/br-table-body.js +5 -0
  552. package/dist/components/br-table-cell.d.ts +11 -0
  553. package/dist/components/br-table-cell.js +5 -0
  554. package/dist/components/br-table-header-cell.d.ts +11 -0
  555. package/dist/components/br-table-header-cell.js +5 -0
  556. package/dist/components/br-table-header.d.ts +11 -0
  557. package/dist/components/br-table-header.js +5 -0
  558. package/dist/components/br-table-row.d.ts +11 -0
  559. package/dist/components/br-table-row.js +5 -0
  560. package/dist/components/br-table.d.ts +11 -0
  561. package/dist/components/br-table.js +5 -0
  562. package/dist/components/br-tag.d.ts +11 -0
  563. package/dist/components/br-tag.js +5 -0
  564. package/dist/components/br-textarea.d.ts +11 -0
  565. package/dist/components/br-textarea.js +5 -0
  566. package/dist/components/br-time-picker.d.ts +11 -0
  567. package/dist/components/br-time-picker.js +5 -0
  568. package/dist/components/br-tooltip.d.ts +11 -0
  569. package/dist/components/br-tooltip.js +5 -0
  570. package/dist/components/br-upload.d.ts +11 -0
  571. package/dist/components/br-upload.js +5 -0
  572. package/dist/components/br-wizard-panel.d.ts +11 -0
  573. package/dist/components/br-wizard-panel.js +5 -0
  574. package/dist/components/br-wizard.d.ts +11 -0
  575. package/dist/components/br-wizard.js +5 -0
  576. package/dist/components/index.d.ts +213 -0
  577. package/dist/components/index.js +5 -0
  578. package/dist/components/p-34Jfn-U-.js +5 -0
  579. package/dist/components/p-5z6jgH1D.js +5 -0
  580. package/dist/components/p-6OdfnwnK.js +5 -0
  581. package/dist/components/p-9S9bgUT0.js +5 -0
  582. package/dist/components/p-B-qLmYZC.js +5 -0
  583. package/dist/components/p-B55qsau4.js +5 -0
  584. package/dist/components/p-B7Amgxkp.js +5 -0
  585. package/dist/components/p-BC7f6MK8.js +5 -0
  586. package/dist/components/p-BKuMQJrQ.js +5 -0
  587. package/dist/components/p-BPJpHGOW.js +5 -0
  588. package/dist/components/p-BWXfdbQH.js +5 -0
  589. package/dist/components/p-Bb-nLtTG.js +5 -0
  590. package/dist/components/p-BeE7R9nu.js +5 -0
  591. package/dist/components/p-BkS6ujyf.js +5 -0
  592. package/dist/components/p-Bo0QYHJO.js +5 -0
  593. package/dist/components/p-C1yRmdso.js +5 -0
  594. package/dist/components/p-C2i2c_io.js +5 -0
  595. package/dist/components/p-C7v0lVlX.js +5 -0
  596. package/dist/components/p-CMBsvswx.js +5 -0
  597. package/dist/components/p-CRrimdz6.js +5 -0
  598. package/dist/components/p-CWORw84-.js +5 -0
  599. package/dist/components/p-CXMwM9m4.js +5 -0
  600. package/dist/components/p-CdDwqbBv.js +5 -0
  601. package/dist/components/p-CvUMXJCl.js +5 -0
  602. package/dist/components/p-D3usVJE2.js +16 -0
  603. package/dist/components/p-D6zroLx5.js +5 -0
  604. package/dist/components/p-DA5GS53D.js +5 -0
  605. package/dist/components/p-DBP6K_aq.js +5 -0
  606. package/dist/components/p-DBmwzG9E.js +5 -0
  607. package/dist/components/p-DCrVo-8T.js +5 -0
  608. package/dist/components/p-DFUKDNck.js +5 -0
  609. package/dist/components/p-DHicj0By.js +5 -0
  610. package/dist/components/p-DIK54tTj.js +5 -0
  611. package/dist/components/p-DQRSHR-D.js +5 -0
  612. package/dist/components/p-DRVMm1Py.js +5 -0
  613. package/dist/components/p-DWPmUV72.js +5 -0
  614. package/dist/components/p-DXjQyH6s.js +5 -0
  615. package/dist/components/p-DYA74R1r.js +5 -0
  616. package/dist/components/p-DmCxdB9P.js +5 -0
  617. package/dist/components/p-Dmfk7eEe.js +5 -0
  618. package/dist/components/p-Dp0xy_3n.js +5 -0
  619. package/dist/components/p-DxZJrIyL.js +5 -0
  620. package/dist/components/p-JAkkThgf.js +5 -0
  621. package/dist/components/p-Ud-WB0hx.js +5 -0
  622. package/dist/components/p-bhULC15U.js +5 -0
  623. package/dist/components/p-cF3ia5e9.js +5 -0
  624. package/dist/components/p-fpMNttbg.js +5 -0
  625. package/dist/components/p-gvnfuTjd.js +5 -0
  626. package/dist/components/p-qYONSNcf.js +5 -0
  627. package/dist/components/p-qhhHGJY1.js +5 -0
  628. package/dist/components/p-ttI0nvv_.js +5 -0
  629. package/dist/components/p-ukNmfGNP.js +5 -0
  630. package/dist/components/p-xa8e1kSW.js +5 -0
  631. package/dist/esm/app-globals-DVjNHTTs.js +7 -0
  632. package/dist/esm/br-avatar.entry.js +246 -0
  633. package/dist/esm/br-breadcrumb-item.entry.js +43 -0
  634. package/dist/esm/br-breadcrumb.entry.js +441 -0
  635. package/dist/esm/br-button_2.entry.js +277 -0
  636. package/dist/esm/br-card.entry.js +109 -0
  637. package/dist/esm/br-carousel-page.entry.js +78 -0
  638. package/dist/esm/br-carousel.entry.js +563 -0
  639. package/dist/esm/br-checkbox-group.entry.js +116 -0
  640. package/dist/esm/br-checkbox.entry.js +286 -0
  641. package/dist/esm/br-checkgroup.entry.js +18 -0
  642. package/dist/esm/br-collapse_2.entry.js +680 -0
  643. package/dist/esm/br-cookiebar-cookie.entry.js +81 -0
  644. package/dist/esm/br-cookiebar-group.entry.js +307 -0
  645. package/dist/esm/br-cookiebar-header.entry.js +37 -0
  646. package/dist/esm/br-cookiebar-link.entry.js +53 -0
  647. package/dist/esm/br-cookiebar-note-group.entry.js +68 -0
  648. package/dist/esm/br-cookiebar-note.entry.js +23 -0
  649. package/dist/esm/br-cookiebar.entry.js +756 -0
  650. package/dist/esm/br-crumb.entry.js +49 -0
  651. package/dist/esm/br-date-picker_3.entry.js +2443 -0
  652. package/dist/esm/br-datetime-picker.entry.js +1884 -0
  653. package/dist/esm/br-divider.entry.js +223 -0
  654. package/dist/esm/br-dropdown_2.entry.js +1997 -0
  655. package/dist/esm/br-footer-category.entry.js +100 -0
  656. package/dist/esm/br-footer-item.entry.js +50 -0
  657. package/dist/esm/br-footer-legal.entry.js +39 -0
  658. package/dist/esm/br-footer-logo.entry.js +102 -0
  659. package/dist/esm/br-footer-social.entry.js +69 -0
  660. package/dist/esm/br-footer.entry.js +90 -0
  661. package/dist/esm/br-header-function.entry.js +140 -0
  662. package/dist/esm/br-header-link.entry.js +58 -0
  663. package/dist/esm/br-header-list.entry.js +277 -0
  664. package/dist/esm/br-header-logo.entry.js +176 -0
  665. package/dist/esm/br-header.entry.js +640 -0
  666. package/dist/esm/br-icon.entry.js +483 -0
  667. package/dist/esm/br-input.entry.js +597 -0
  668. package/dist/esm/br-item.entry.js +365 -0
  669. package/dist/esm/br-link.entry.js +131 -0
  670. package/dist/esm/br-loading.entry.js +503 -0
  671. package/dist/esm/br-magic-button.entry.js +91 -0
  672. package/dist/esm/br-menu-group.entry.js +21 -0
  673. package/dist/esm/br-menu-header.entry.js +45 -0
  674. package/dist/esm/br-menu-info.entry.js +36 -0
  675. package/dist/esm/br-menu-item.entry.js +77 -0
  676. package/dist/esm/br-menu-link.entry.js +54 -0
  677. package/dist/esm/br-menu-list.entry.js +147 -0
  678. package/dist/esm/br-menu-logo.entry.js +73 -0
  679. package/dist/esm/br-menu-social.entry.js +63 -0
  680. package/dist/esm/br-menu.entry.js +991 -0
  681. package/dist/esm/br-modal.entry.js +494 -0
  682. package/dist/esm/br-notification-body.entry.js +69 -0
  683. package/dist/esm/br-notification-header.entry.js +46 -0
  684. package/dist/esm/br-notification-item.entry.js +108 -0
  685. package/dist/esm/br-notification.entry.js +332 -0
  686. package/dist/esm/br-pagination.entry.js +882 -0
  687. package/dist/esm/br-radio-group.entry.js +426 -0
  688. package/dist/esm/br-radio.entry.js +355 -0
  689. package/dist/esm/br-scrim.entry.js +1334 -0
  690. package/dist/esm/br-select-input_3.entry.js +984 -0
  691. package/dist/esm/br-sign-in.entry.js +124 -0
  692. package/dist/esm/br-skip-link-item.entry.js +18 -0
  693. package/dist/esm/br-skip-link.entry.js +360 -0
  694. package/dist/esm/br-skiplink-item.entry.js +190 -0
  695. package/dist/esm/br-slider.entry.js +685 -0
  696. package/dist/esm/br-step_2.entry.js +625 -0
  697. package/dist/esm/br-switch.entry.js +243 -0
  698. package/dist/esm/br-tab-item.entry.js +183 -0
  699. package/dist/esm/br-tab.entry.js +395 -0
  700. package/dist/esm/br-table-body.entry.js +35 -0
  701. package/dist/esm/br-table-cell.entry.js +182 -0
  702. package/dist/esm/br-table-header-cell.entry.js +171 -0
  703. package/dist/esm/br-table-header.entry.js +35 -0
  704. package/dist/esm/br-table-row.entry.js +79 -0
  705. package/dist/esm/br-table.entry.js +678 -0
  706. package/dist/esm/br-tag.entry.js +491 -0
  707. package/dist/esm/br-textarea.entry.js +304 -0
  708. package/dist/esm/br-tooltip.entry.js +625 -0
  709. package/dist/esm/br-upload.entry.js +579 -0
  710. package/dist/esm/br-wizard-panel.entry.js +52 -0
  711. package/dist/esm/br-wizard.entry.js +706 -0
  712. package/dist/esm/breakpoint-observer-DBmwzG9E.js +141 -0
  713. package/dist/esm/clamp-gvnfuTjd.js +23 -0
  714. package/dist/esm/cookiebar.utils-DYA74R1r.js +16 -0
  715. package/dist/esm/datetime-picker-constants-Bfm58jO6.js +3798 -0
  716. package/dist/esm/event-DFN_so7I.js +48 -0
  717. package/dist/esm/floating-surface-dismiss-BWXfdbQH.js +61 -0
  718. package/dist/esm/floating-ui-BavFwMnx.js +134 -0
  719. package/dist/esm/floating-ui.dom-DIK54tTj.js +1707 -0
  720. package/dist/esm/focus-DxZJrIyL.js +26 -0
  721. package/dist/esm/getNextElement-9S9bgUT0.js +28 -0
  722. package/dist/esm/iconify-icon-D3usVJE2.js +2303 -0
  723. package/dist/esm/id-BkS6ujyf.js +18 -0
  724. package/dist/esm/index-Bo-2igoO.js +671 -0
  725. package/dist/esm/index-C2RBydfd.js +3258 -0
  726. package/dist/esm/index.js +6 -0
  727. package/dist/esm/isNil-B-qLmYZC.js +17 -0
  728. package/dist/esm/isValid-DIUZX1qS.js +3684 -0
  729. package/dist/esm/loader.js +15 -0
  730. package/dist/esm/native-dialog-B55qsau4.js +46 -0
  731. package/dist/esm/navigation-bhULC15U.js +23 -0
  732. package/dist/esm/parts-Bb5vVlCC.js +17 -0
  733. package/dist/esm/props-DRVMm1Py.js +22 -0
  734. package/dist/esm/raf-batcher-cF3ia5e9.js +53 -0
  735. package/dist/esm/slot-BIG-yees.js +44 -0
  736. package/dist/esm/swipe-Dmfk7eEe.js +343 -0
  737. package/dist/esm/table-constants-CXMwM9m4.js +170 -0
  738. package/dist/esm/validator-D3tVP32U.js +113 -0
  739. package/dist/esm/webcomponents.js +46 -0
  740. package/dist/hydrate/index.d.ts +287 -0
  741. package/dist/hydrate/index.js +67516 -0
  742. package/dist/hydrate/index.mjs +67506 -0
  743. package/dist/hydrate/package.json +12 -0
  744. package/dist/index.cjs.js +1 -0
  745. package/dist/index.js +1 -0
  746. package/dist/loader/cdn.js +5 -0
  747. package/dist/loader/index.cjs.js +5 -0
  748. package/dist/loader/index.d.ts +24 -0
  749. package/dist/loader/index.es2017.js +5 -0
  750. package/dist/loader/index.js +6 -0
  751. package/dist/types/components/item/item.d.ts +1 -0
  752. package/dist/types/components/select/select-list/select-list.d.ts +1 -0
  753. package/dist/types/components/select/select-option/select-option.d.ts +1 -0
  754. package/dist/types/components/select/select.d.ts +14 -0
  755. package/dist/types/components/select/select.types.d.ts +2 -0
  756. package/dist/types/components/select/select.utils.d.ts +13 -0
  757. package/dist/webcomponents/index.esm.js +5 -0
  758. package/dist/webcomponents/p-0196804a.entry.js +5 -0
  759. package/dist/webcomponents/p-0410186a.entry.js +5 -0
  760. package/dist/webcomponents/p-0415ef22.entry.js +5 -0
  761. package/dist/webcomponents/p-0777c7b1.entry.js +5 -0
  762. package/dist/webcomponents/p-0caa4d12.entry.js +5 -0
  763. package/dist/webcomponents/p-0d4f718d.entry.js +5 -0
  764. package/dist/webcomponents/p-0e84c9e8.entry.js +5 -0
  765. package/dist/webcomponents/p-12286e73.entry.js +5 -0
  766. package/dist/webcomponents/p-147ac8d3.entry.js +5 -0
  767. package/dist/webcomponents/p-1580beee.entry.js +5 -0
  768. package/dist/webcomponents/p-18ee6175.entry.js +5 -0
  769. package/dist/webcomponents/p-1bca4499.entry.js +5 -0
  770. package/dist/webcomponents/p-1c303a4e.entry.js +5 -0
  771. package/dist/webcomponents/p-1d6b0b6f.entry.js +5 -0
  772. package/dist/webcomponents/p-1d8cb8fd.entry.js +5 -0
  773. package/dist/webcomponents/p-224daaac.entry.js +5 -0
  774. package/dist/webcomponents/p-28426d2a.entry.js +5 -0
  775. package/dist/webcomponents/p-2abd2da0.entry.js +5 -0
  776. package/dist/webcomponents/p-2fdc51ae.entry.js +5 -0
  777. package/dist/webcomponents/p-30c428b6.entry.js +5 -0
  778. package/dist/webcomponents/p-36bbea4e.entry.js +5 -0
  779. package/dist/webcomponents/p-3907ebfa.entry.js +5 -0
  780. package/dist/webcomponents/p-39a16f9d.entry.js +5 -0
  781. package/dist/webcomponents/p-3ebbd2f5.entry.js +5 -0
  782. package/dist/webcomponents/p-3ef7eac8.entry.js +5 -0
  783. package/dist/webcomponents/p-45356e9a.entry.js +5 -0
  784. package/dist/webcomponents/p-46513db4.entry.js +5 -0
  785. package/dist/webcomponents/p-4c13221a.entry.js +5 -0
  786. package/dist/webcomponents/p-51ce2c31.entry.js +5 -0
  787. package/dist/webcomponents/p-52df61cb.entry.js +5 -0
  788. package/dist/webcomponents/p-569134cf.entry.js +5 -0
  789. package/dist/webcomponents/p-5ce7db4a.entry.js +5 -0
  790. package/dist/webcomponents/p-5f373708.entry.js +5 -0
  791. package/dist/webcomponents/p-5f6afb79.entry.js +5 -0
  792. package/dist/webcomponents/p-5fc7ba4c.entry.js +5 -0
  793. package/dist/webcomponents/p-66006312.entry.js +5 -0
  794. package/dist/webcomponents/p-66b13fd9.entry.js +5 -0
  795. package/dist/webcomponents/p-6OdfnwnK.js +5 -0
  796. package/dist/webcomponents/p-750799b7.entry.js +5 -0
  797. package/dist/webcomponents/p-756ff2ad.entry.js +5 -0
  798. package/dist/webcomponents/p-765bfe27.entry.js +5 -0
  799. package/dist/webcomponents/p-7ab96c11.entry.js +5 -0
  800. package/dist/webcomponents/p-7c2ff8b4.entry.js +5 -0
  801. package/dist/webcomponents/p-7f7506f0.entry.js +5 -0
  802. package/dist/webcomponents/p-7fb03a49.entry.js +5 -0
  803. package/dist/webcomponents/p-82200563.entry.js +5 -0
  804. package/dist/webcomponents/p-83ff4579.entry.js +5 -0
  805. package/dist/webcomponents/p-85f8063b.entry.js +5 -0
  806. package/dist/webcomponents/p-8b558233.entry.js +5 -0
  807. package/dist/webcomponents/p-8e6c2767.entry.js +5 -0
  808. package/dist/webcomponents/p-8e819355.entry.js +5 -0
  809. package/dist/webcomponents/p-92a9b9c4.entry.js +5 -0
  810. package/dist/webcomponents/p-966ad32f.entry.js +5 -0
  811. package/dist/webcomponents/p-9679d230.entry.js +5 -0
  812. package/dist/webcomponents/p-96dd663b.entry.js +5 -0
  813. package/dist/webcomponents/p-98843fa3.entry.js +5 -0
  814. package/dist/webcomponents/p-9S9bgUT0.js +5 -0
  815. package/dist/webcomponents/p-9a375eff.entry.js +5 -0
  816. package/dist/webcomponents/p-9b358cff.entry.js +5 -0
  817. package/dist/webcomponents/p-9f7558c7.entry.js +5 -0
  818. package/dist/webcomponents/p-B-qLmYZC.js +5 -0
  819. package/dist/webcomponents/p-B55qsau4.js +5 -0
  820. package/dist/webcomponents/p-BIG-yees.js +5 -0
  821. package/dist/webcomponents/p-BWXfdbQH.js +5 -0
  822. package/dist/webcomponents/p-Bb5vVlCC.js +5 -0
  823. package/dist/webcomponents/p-Bfm58jO6.js +5 -0
  824. package/dist/webcomponents/p-BhMVJQ4-.js +5 -0
  825. package/dist/webcomponents/p-BkS6ujyf.js +5 -0
  826. package/dist/webcomponents/p-C2RBydfd.js +6 -0
  827. package/dist/webcomponents/p-CO5cOQQU.js +5 -0
  828. package/dist/webcomponents/p-CXMwM9m4.js +5 -0
  829. package/dist/webcomponents/p-D3tVP32U.js +5 -0
  830. package/dist/webcomponents/p-D3usVJE2.js +16 -0
  831. package/dist/webcomponents/p-DBmwzG9E.js +5 -0
  832. package/dist/webcomponents/p-DFN_so7I.js +5 -0
  833. package/dist/webcomponents/p-DIK54tTj.js +5 -0
  834. package/dist/webcomponents/p-DRVMm1Py.js +5 -0
  835. package/dist/webcomponents/p-DVjNHTTs.js +5 -0
  836. package/dist/webcomponents/p-DYA74R1r.js +5 -0
  837. package/dist/webcomponents/p-Dmfk7eEe.js +5 -0
  838. package/dist/webcomponents/p-DxZJrIyL.js +5 -0
  839. package/dist/webcomponents/p-a382e115.entry.js +5 -0
  840. package/dist/webcomponents/p-a4ae72e3.entry.js +5 -0
  841. package/dist/webcomponents/p-a994c190.entry.js +5 -0
  842. package/dist/webcomponents/p-a9ff7c25.entry.js +5 -0
  843. package/dist/webcomponents/p-bhULC15U.js +5 -0
  844. package/dist/webcomponents/p-c0b0f531.entry.js +5 -0
  845. package/dist/webcomponents/p-c211af17.entry.js +5 -0
  846. package/dist/webcomponents/p-c492d926.entry.js +5 -0
  847. package/dist/webcomponents/p-c4cfe599.entry.js +5 -0
  848. package/dist/webcomponents/p-c846e784.entry.js +5 -0
  849. package/dist/webcomponents/p-c949d993.entry.js +5 -0
  850. package/dist/webcomponents/p-cF3ia5e9.js +5 -0
  851. package/dist/webcomponents/p-d1e899cd.entry.js +5 -0
  852. package/dist/webcomponents/p-d38d82cc.entry.js +5 -0
  853. package/dist/webcomponents/p-e0ce536a.entry.js +5 -0
  854. package/dist/webcomponents/p-e1331288.entry.js +5 -0
  855. package/dist/webcomponents/p-e360a463.entry.js +5 -0
  856. package/dist/webcomponents/p-f078f972.entry.js +5 -0
  857. package/dist/webcomponents/p-f26038e2.entry.js +5 -0
  858. package/dist/webcomponents/p-f303f6b3.entry.js +5 -0
  859. package/dist/webcomponents/p-f6318e94.entry.js +5 -0
  860. package/dist/webcomponents/p-f85ee01c.entry.js +5 -0
  861. package/dist/webcomponents/p-fcd4ae48.entry.js +5 -0
  862. package/dist/webcomponents/p-ffe0241e.entry.js +5 -0
  863. package/dist/webcomponents/p-gvnfuTjd.js +5 -0
  864. package/dist/webcomponents/webcomponents.esm.js +5 -0
  865. package/package.json +3 -7
  866. package/cem/.gitkeep +0 -0
@@ -0,0 +1,1159 @@
1
+ /*!
2
+ * Construído por SERPRO
3
+ * © https://serpro.gov.br/ - MIT License.
4
+ */
5
+ import { Host, h } from "@stencil/core";
6
+ import { createRafBatcher } from "../../../shared/utils/raf-batcher";
7
+ /**
8
+ * ## Design System
9
+ *
10
+ * Para a documentação completa de design, incluindo diretrizes de uso, acessibilidade e exemplos visuais, consulte o [Design System do GovBR](https://www.gov.br/ds/components/select?tab=designer).
11
+ *
12
+ * @category Formulários
13
+ * @status stable
14
+ * @part list - Contêiner visual da lista virtualizada.
15
+ * @slot loading - Indicador exibido enquanto resultados remotos são carregados.
16
+ * @part loading - Área do indicador de carregamento.
17
+ */
18
+ export class SelectList {
19
+ constructor() {
20
+ /**
21
+ * Coleção de opções exibidas pela lista.
22
+ *
23
+ * @type {SelectOptionData[]}
24
+ * @default []
25
+ */
26
+ this.options = [];
27
+ /**
28
+ * Termo usado para filtrar opções por rótulo ou valor.
29
+ *
30
+ * @default ''
31
+ */
32
+ this.searchTerm = '';
33
+ /** Indica que os resultados remotos estão sendo carregados.
34
+ * @default false
35
+ */
36
+ this.loading = false;
37
+ /**
38
+ * Define quantas opções permanecem visíveis na viewport da lista.
39
+ *
40
+ * @default 6
41
+ */
42
+ this.visibleItems = 6;
43
+ /**
44
+ * Informa a altura base usada no cálculo de posicionamento das opções.
45
+ *
46
+ * @default 56
47
+ */
48
+ this.itemHeight = 56;
49
+ /**
50
+ * Define quantas opções extras são renderizadas fora da viewport quando o virtual scroll está ativo.
51
+ *
52
+ * @default 0
53
+ */
54
+ this.overscan = 0;
55
+ /**
56
+ * Rótulo apresentado para a ação de selecionar todos no modo múltiplo.
57
+ *
58
+ * @default 'Selecionar todos'
59
+ */
60
+ this.selectAllLabel = SelectList.SELECT_ALL_LABEL;
61
+ /**
62
+ * Rótulo apresentado quando todas as opções já estão selecionadas no modo múltiplo.
63
+ *
64
+ * @default 'Desselecionar todos'
65
+ */
66
+ this.unselectAllLabel = SelectList.DESELECT_ALL_LABEL;
67
+ /**
68
+ * Índice da opção atualmente ativa para navegação por teclado.
69
+ *
70
+ * @default -1
71
+ * @remarks
72
+ * Esse valor é usado para refletir visualmente o foco lógico da lista.
73
+ */
74
+ this.activeOptionIndex = -1;
75
+ this.isOpen = false;
76
+ this.isMultiple = false;
77
+ this.scrollTop = 0;
78
+ this.measuredItemHeight = null;
79
+ this.measurementFrame = null;
80
+ this.filteredOptionsCache = null;
81
+ this.filteredOptionsCacheKey = '';
82
+ this.scrollBatch = createRafBatcher((scrollTop) => {
83
+ if (this.scrollTop !== scrollTop)
84
+ this.scrollTop = scrollTop;
85
+ });
86
+ /**
87
+ * Aguarda o próximo frame para que medições e queries reflitam o DOM recém-renderizado.
88
+ *
89
+ * @returns Uma promise resolvida no próximo `requestAnimationFrame`.
90
+ */
91
+ this.waitForNextFrame = async () => {
92
+ await new Promise((resolve) => requestAnimationFrame(() => resolve()));
93
+ };
94
+ this.handleScroll = (event) => {
95
+ const target = event.target;
96
+ this.scrollBatch.schedule(target?.scrollTop ?? 0);
97
+ };
98
+ }
99
+ disconnectedCallback() {
100
+ this.scrollBatch.cancel();
101
+ if (this.measurementFrame !== null) {
102
+ cancelAnimationFrame(this.measurementFrame);
103
+ this.measurementFrame = null;
104
+ }
105
+ }
106
+ handleSearchTermChange() {
107
+ this.scrollTop = 0;
108
+ if (this.listElement) {
109
+ this.listElement.scrollTop = 0;
110
+ }
111
+ this.scheduleMeasureItemHeight();
112
+ }
113
+ handleSelectAllLabelChange() {
114
+ if (!this.isMultiple)
115
+ return;
116
+ this.options = this.syncSelectAllOption(this.options);
117
+ }
118
+ handleOptionStateChange(event) {
119
+ if (this.isControlledBySelect)
120
+ return;
121
+ const detail = event.detail;
122
+ if (!detail?.value)
123
+ return;
124
+ if (this.isMultiple)
125
+ return this.applyMultipleOption(detail);
126
+ if (detail.selected)
127
+ return this.applySingleSelect(detail);
128
+ return this.clearSingleSelection();
129
+ }
130
+ /**
131
+ * Abre a lista e agenda a medição das opções quando necessário.
132
+ *
133
+ * @returns Uma promise concluída após a atualização do estado.
134
+ */
135
+ async open() {
136
+ this.isOpen = true;
137
+ this.scheduleMeasureItemHeight();
138
+ }
139
+ /**
140
+ * Fecha a lista de opções.
141
+ *
142
+ * @returns Uma promise concluída após a atualização do estado.
143
+ */
144
+ async close() {
145
+ this.isOpen = false;
146
+ }
147
+ /**
148
+ * Substitui todas as opções renderizadas pela lista.
149
+ *
150
+ * @param options Nova coleção de opções normalizadas.
151
+ * @returns Uma promise concluída após a atualização da lista.
152
+ */
153
+ async setOptions(options) {
154
+ if (!options || options.length === 0) {
155
+ this.options = [];
156
+ this.scrollTop = 0;
157
+ this.measuredItemHeight = null;
158
+ if (this.listElement) {
159
+ this.listElement.scrollTop = 0;
160
+ }
161
+ return;
162
+ }
163
+ const map = new Map();
164
+ let hasDuplicates = false;
165
+ options.forEach((opt) => {
166
+ if (map.has(opt.value)) {
167
+ hasDuplicates = true;
168
+ }
169
+ map.set(opt.value, opt);
170
+ });
171
+ if (hasDuplicates) {
172
+ console.warn('[br-select-list] Foram encontrados valores duplicados em `setOptions`. Apenas a ultima ocorrencia de cada `value` sera mantida.');
173
+ }
174
+ const nextOptions = Array.from(map.values());
175
+ this.options = this.normalizeOptionsForMode(nextOptions, this.isMultiple);
176
+ this.scheduleMeasureItemHeight();
177
+ requestAnimationFrame(() => this.clampScrollPosition());
178
+ }
179
+ /**
180
+ * Adiciona ou atualiza uma única opção na coleção atual.
181
+ *
182
+ * @param option Opção que deve ser persistida na lista.
183
+ * @returns Uma promise concluída após a atualização da coleção.
184
+ */
185
+ async setOption(option) {
186
+ const index = this.options.findIndex((opt) => opt.value === option.value);
187
+ let nextOptions;
188
+ if (index !== -1) {
189
+ nextOptions = this.options.map((opt) => (opt.value === option.value ? option : opt));
190
+ }
191
+ else {
192
+ nextOptions = [...this.options, option];
193
+ }
194
+ this.options = this.normalizeOptionsForMode(nextOptions, this.isMultiple);
195
+ requestAnimationFrame(() => this.clampScrollPosition());
196
+ }
197
+ /**
198
+ * Atualiza o termo de busca e reinicia a janela virtual no topo.
199
+ *
200
+ * @param term Termo que deve filtrar a coleção. String vazia restaura todas as opções.
201
+ */
202
+ async setSearchTerm(term) {
203
+ const nextTerm = term ?? '';
204
+ if (nextTerm === this.searchTerm)
205
+ return;
206
+ this.searchTerm = nextTerm;
207
+ this.scrollTop = 0;
208
+ if (this.listElement) {
209
+ this.listElement.scrollTop = 0;
210
+ }
211
+ this.scheduleMeasureItemHeight();
212
+ }
213
+ /**
214
+ * Alterna a lista entre modo simples e múltiplo.
215
+ *
216
+ * @param isMultiple Define se a lista deve operar em seleção múltipla.
217
+ * @returns Uma promise concluída após a atualização do modo.
218
+ */
219
+ async setMultiple(isMultiple) {
220
+ this.isMultiple = isMultiple;
221
+ if (!this.isControlledBySelect)
222
+ this.options = this.normalizeOptionsForMode(this.options, isMultiple);
223
+ this.scheduleMeasureItemHeight();
224
+ }
225
+ get isControlledBySelect() {
226
+ const root = this.el.getRootNode();
227
+ const host = root.host;
228
+ return host?.tagName?.toLowerCase() === 'br-select';
229
+ }
230
+ /**
231
+ * Retorna uma cópia das opções atualmente controladas pela lista.
232
+ *
233
+ * @returns As opções renderizadas no estado atual.
234
+ */
235
+ async getOptions() {
236
+ return this.options.map((option) => ({ ...option }));
237
+ }
238
+ /**
239
+ * Posiciona uma opção no topo da viewport virtual, respeitando o limite final da lista.
240
+ *
241
+ * @param index Índice lógico da opção alvo.
242
+ * @returns `true` quando o índice pertence à coleção filtrada atual.
243
+ */
244
+ async scrollOptionToTop(index) {
245
+ const filteredOptions = this.getFilteredOptions();
246
+ if (index < 0 || index >= filteredOptions.length || !this.listElement)
247
+ return false;
248
+ const rowHeight = this.getRowHeight();
249
+ const viewportHeight = this.getViewportHeight();
250
+ const maxScrollTop = Math.max(0, filteredOptions.length * rowHeight - viewportHeight);
251
+ const nextScrollTop = Math.min(index * rowHeight, maxScrollTop);
252
+ /*
253
+ * Atualiza primeiro o estado que define a janela virtual. Dessa forma,
254
+ * os itens do novo intervalo são renderizados antes de o viewport nativo
255
+ * avançar, evitando uma linha vazia durante o reposicionamento.
256
+ */
257
+ this.scrollTop = nextScrollTop;
258
+ await this.waitForNextFrame();
259
+ this.listElement.scrollTop = nextScrollTop;
260
+ await this.waitForNextFrame();
261
+ return true;
262
+ }
263
+ /**
264
+ * Posiciona no topo a primeira opção selecionada na ordem visual da lista.
265
+ * A opção auxiliar de selecionar tudo não participa dessa escolha.
266
+ *
267
+ * @returns `true` quando existe uma opção selecionada para posicionar.
268
+ */
269
+ async scrollFirstSelectedOptionToTop() {
270
+ const filteredOptions = this.getFilteredOptions();
271
+ const selectedIndex = filteredOptions.findIndex((option) => !this.isSelectAllOption(option) && Boolean(option.selected));
272
+ if (selectedIndex < 0)
273
+ return false;
274
+ return this.scrollOptionToTop(selectedIndex);
275
+ }
276
+ /**
277
+ * Garante visibilidade e foco para uma opção específica.
278
+ *
279
+ * @param index Índice lógico da opção alvo.
280
+ * @returns `true` quando a opção foi encontrada para foco.
281
+ */
282
+ async focusOption(index) {
283
+ const filteredOptions = this.getFilteredOptions();
284
+ if (index < 0 || index >= filteredOptions.length)
285
+ return false;
286
+ await this.ensureOptionVisible(index);
287
+ let optionElement = this.getOptionElement(index);
288
+ if (!optionElement) {
289
+ await this.waitForNextFrame();
290
+ optionElement = this.getOptionElement(index);
291
+ }
292
+ await optionElement?.setFocus?.();
293
+ return Boolean(optionElement);
294
+ }
295
+ /**
296
+ * Aciona a seleção programática de uma opção específica.
297
+ *
298
+ * @param index Índice lógico da opção alvo.
299
+ * @param selected Estado desejado para a opção. Quando omitido, a própria opção alterna o valor atual.
300
+ * @returns `true` quando a opção foi encontrada para atualização.
301
+ */
302
+ async setOptionSelected(index, selected) {
303
+ const filteredOptions = this.getFilteredOptions();
304
+ if (index < 0 || index >= filteredOptions.length)
305
+ return false;
306
+ await this.ensureOptionVisible(index);
307
+ let optionElement = this.getOptionElement(index);
308
+ if (!optionElement) {
309
+ await this.waitForNextFrame();
310
+ optionElement = this.getOptionElement(index);
311
+ }
312
+ await optionElement?.setSelectedState?.(selected);
313
+ return Boolean(optionElement);
314
+ }
315
+ applyMultipleOption(detail) {
316
+ if (this.isSelectAllOption(detail)) {
317
+ this.toggleAllOptions(Boolean(detail.selected));
318
+ return;
319
+ }
320
+ const nextOptions = this.options.map((option) => {
321
+ if (option.value !== detail.value)
322
+ return option;
323
+ return {
324
+ ...option,
325
+ ...detail,
326
+ indeterminate: false,
327
+ selected: Boolean(detail.selected),
328
+ };
329
+ });
330
+ this.options = this.syncSelectAllOption(nextOptions);
331
+ }
332
+ applySingleSelect(detail) {
333
+ const exists = this.options.some((o) => o.value === detail.value);
334
+ if (exists) {
335
+ this.options = this.options.map((o) => ({ ...o, selected: o.value === detail.value }));
336
+ return;
337
+ }
338
+ const newOpt = {
339
+ value: detail.value,
340
+ label: detail.label ?? detail.value,
341
+ selected: true,
342
+ };
343
+ this.options = [newOpt, ...this.options.map((o) => ({ ...o, selected: false }))];
344
+ }
345
+ clearSingleSelection() {
346
+ this.options = this.options.map((o) => ({ ...o, selected: false }));
347
+ }
348
+ isSelectAllOption(option) {
349
+ if (option.value === SelectList.SELECT_ALL_VALUE)
350
+ return true;
351
+ const optionLabel = (option.label ?? option.value).trim();
352
+ return optionLabel === this.selectAllLabel || optionLabel === this.unselectAllLabel;
353
+ }
354
+ isSelectableOption(option) {
355
+ return !this.isSelectAllOption(option);
356
+ }
357
+ getSelectableOptions(options) {
358
+ return options.filter((option) => this.isSelectableOption(option));
359
+ }
360
+ getSelectAllLabel(selected, indeterminate) {
361
+ return selected && !indeterminate ? this.unselectAllLabel : this.selectAllLabel;
362
+ }
363
+ createSelectAllOption() {
364
+ return {
365
+ value: SelectList.SELECT_ALL_VALUE,
366
+ label: this.selectAllLabel,
367
+ selected: false,
368
+ indeterminate: false,
369
+ disabled: false,
370
+ };
371
+ }
372
+ normalizeSelectAllOption(option) {
373
+ if (!this.isSelectAllOption(option))
374
+ return option;
375
+ const selected = Boolean(option.selected) && !option.indeterminate;
376
+ const indeterminate = Boolean(option.indeterminate);
377
+ return {
378
+ ...option,
379
+ indeterminate,
380
+ label: this.getSelectAllLabel(selected, indeterminate),
381
+ selected,
382
+ };
383
+ }
384
+ toggleAllOptions(selected) {
385
+ const nextOptions = this.getSelectableOptions(this.options).map((option) => ({
386
+ ...option,
387
+ selected,
388
+ indeterminate: false,
389
+ }));
390
+ this.options = this.syncSelectAllOption(nextOptions);
391
+ }
392
+ syncSelectAllOption(options) {
393
+ const selectableOptions = this.getSelectableOptions(options).map((option) => ({
394
+ ...option,
395
+ indeterminate: false,
396
+ }));
397
+ const allSelected = selectableOptions.length > 0 && selectableOptions.every((option) => Boolean(option.selected));
398
+ const anySelected = selectableOptions.some((option) => Boolean(option.selected));
399
+ return [
400
+ this.normalizeSelectAllOption({
401
+ ...this.createSelectAllOption(),
402
+ indeterminate: anySelected && !allSelected,
403
+ selected: allSelected,
404
+ }),
405
+ ...selectableOptions,
406
+ ];
407
+ }
408
+ normalizeOptionsForMode(options, isMultiple) {
409
+ const selectableOptions = this.getSelectableOptions(options);
410
+ if (isMultiple) {
411
+ return this.syncSelectAllOption(selectableOptions);
412
+ }
413
+ let hasSelectedOption = false;
414
+ return selectableOptions.map((option) => {
415
+ const shouldSelect = Boolean(option.selected) && !hasSelectedOption;
416
+ if (shouldSelect) {
417
+ hasSelectedOption = true;
418
+ }
419
+ return {
420
+ ...option,
421
+ indeterminate: false,
422
+ selected: shouldSelect,
423
+ };
424
+ });
425
+ }
426
+ normalizeSearchText(value) {
427
+ return (value ?? '')
428
+ .normalize('NFD')
429
+ .replace(/[\u0300-\u036f]/g, '')
430
+ .toLocaleLowerCase('pt-BR')
431
+ .trim();
432
+ }
433
+ getFilteredOptions() {
434
+ const normalizedTerm = this.normalizeSearchText(this.searchTerm);
435
+ const cacheKey = `${normalizedTerm}|${this.isMultiple}|${this.selectAllLabel}|${this.unselectAllLabel}|${this.options.length}`;
436
+ if (this.options === this.filteredOptionsCacheSource &&
437
+ cacheKey === this.filteredOptionsCacheKey &&
438
+ this.filteredOptionsCache !== null) {
439
+ return this.filteredOptionsCache;
440
+ }
441
+ this.filteredOptionsCacheSource = this.options;
442
+ if (!normalizedTerm) {
443
+ this.filteredOptionsCacheKey = cacheKey;
444
+ this.filteredOptionsCache = this.options;
445
+ return this.options;
446
+ }
447
+ this.filteredOptionsCacheKey = cacheKey;
448
+ this.filteredOptionsCache = this.options.filter((option) => {
449
+ if (this.isSelectAllOption(option))
450
+ return this.isMultiple;
451
+ const label = this.normalizeSearchText(option.label ?? option.value);
452
+ const value = this.normalizeSearchText(option.value);
453
+ return label.includes(normalizedTerm) || value.includes(normalizedTerm);
454
+ });
455
+ return this.filteredOptionsCache;
456
+ }
457
+ getViewportHeight() {
458
+ const visibleOptionCount = Math.min(this.getFilteredOptions().length, this.visibleItems);
459
+ return visibleOptionCount * this.getRowHeight();
460
+ }
461
+ getRowHeight() {
462
+ return this.measuredItemHeight ?? this.itemHeight;
463
+ }
464
+ getVisibleRange() {
465
+ const filteredOptions = this.getFilteredOptions();
466
+ if (filteredOptions.length === 0) {
467
+ return { startIndex: 0, endIndex: 0 };
468
+ }
469
+ const rowHeight = this.getRowHeight();
470
+ const firstVisibleIndex = Math.floor(this.scrollTop / rowHeight);
471
+ const startIndex = Math.max(0, firstVisibleIndex - this.overscan);
472
+ const endIndex = Math.min(filteredOptions.length, firstVisibleIndex + this.visibleItems + this.overscan);
473
+ return { startIndex, endIndex };
474
+ }
475
+ clampScrollPosition() {
476
+ if (!this.listElement)
477
+ return;
478
+ const totalHeight = this.getFilteredOptions().length * this.getRowHeight();
479
+ const maxScrollTop = Math.max(0, totalHeight - this.getViewportHeight());
480
+ const nextScrollTop = Math.min(Math.max(0, this.listElement.scrollTop), maxScrollTop);
481
+ if (this.listElement.scrollTop !== nextScrollTop) {
482
+ this.listElement.scrollTop = nextScrollTop;
483
+ }
484
+ if (this.scrollTop !== nextScrollTop) {
485
+ this.scrollTop = nextScrollTop;
486
+ }
487
+ }
488
+ scheduleMeasureItemHeight() {
489
+ if (this.getFilteredOptions().length === 0)
490
+ return;
491
+ if (this.measurementFrame !== null)
492
+ return;
493
+ this.measurementFrame = requestAnimationFrame(async () => {
494
+ this.measurementFrame = null;
495
+ await this.measureItemHeight();
496
+ });
497
+ }
498
+ async measureItemHeight() {
499
+ const firstOption = this.listElement?.querySelector('br-select-option');
500
+ if (!firstOption?.getItemHeight)
501
+ return;
502
+ const nextHeight = await firstOption.getItemHeight();
503
+ if (!nextHeight || nextHeight <= 0 || nextHeight === this.measuredItemHeight)
504
+ return;
505
+ this.measuredItemHeight = nextHeight;
506
+ this.clampScrollPosition();
507
+ }
508
+ /**
509
+ * Localiza a opção renderizada correspondente a um índice lógico da lista.
510
+ *
511
+ * @param index Índice da opção dentro da coleção atual.
512
+ * @returns O elemento da opção, quando presente no DOM.
513
+ */
514
+ getOptionElement(index) {
515
+ return this.el.shadowRoot?.querySelector(`br-select-option[data-option-index="${index}"]`);
516
+ }
517
+ async ensureOptionVisible(index) {
518
+ if (!this.listElement)
519
+ return;
520
+ const rowHeight = this.getRowHeight();
521
+ const viewportHeight = this.getViewportHeight();
522
+ const optionTop = index * rowHeight;
523
+ const optionBottom = optionTop + rowHeight;
524
+ const viewportTop = this.listElement.scrollTop;
525
+ const viewportBottom = viewportTop + viewportHeight;
526
+ let nextScrollTop = viewportTop;
527
+ if (optionTop < viewportTop) {
528
+ nextScrollTop = optionTop;
529
+ }
530
+ else if (optionBottom > viewportBottom) {
531
+ nextScrollTop = optionBottom - viewportHeight;
532
+ }
533
+ const maxScrollTop = Math.max(0, this.getFilteredOptions().length * rowHeight - viewportHeight);
534
+ nextScrollTop = Math.min(Math.max(0, nextScrollTop), maxScrollTop);
535
+ if (nextScrollTop === viewportTop)
536
+ return;
537
+ this.listElement.scrollTop = nextScrollTop;
538
+ this.scrollTop = nextScrollTop;
539
+ await this.waitForNextFrame();
540
+ }
541
+ getCssClassMap() {
542
+ return {
543
+ 'br-select-list': true,
544
+ 'is-open': this.isOpen,
545
+ };
546
+ }
547
+ renderOption(option, index) {
548
+ const rowHeight = this.getRowHeight();
549
+ const optionPart = this.isSelectAllOption(option) ? 'option select-all' : 'option';
550
+ return (h("br-select-option", { part: optionPart, active: index === this.activeOptionIndex, "data-option-index": index, disabled: option.disabled, id: `${this.el.id || 'br-select-list'}-option-${index}`, indeterminate: option.indeterminate,
551
+ // A seleção faz parte da identidade visual renderizada. Incluir o estado
552
+ // na chave evita que uma opção virtual reutilizada retenha o snapshot
553
+ // interno anterior do br-select-option/br-item.
554
+ key: `${option.value}:${option.selected ? 'selected' : 'unselected'}`, label: option.label, selected: option.selected, "show-checkbox": this.isMultiple, style: {
555
+ boxSizing: 'border-box',
556
+ height: `${rowHeight}px`,
557
+ position: 'absolute',
558
+ top: `${index * rowHeight}px`,
559
+ left: '0',
560
+ right: '0',
561
+ }, value: option.value }, option.content ? h("span", { innerHTML: option.content }) : (option.label ?? option.value)));
562
+ }
563
+ getVirtualScrollStyle() {
564
+ return {
565
+ height: `${this.getViewportHeight()}px`,
566
+ overflowY: 'auto',
567
+ overflowX: 'hidden',
568
+ };
569
+ }
570
+ getVirtualSpacerStyle() {
571
+ return {
572
+ height: `${this.getFilteredOptions().length * this.getRowHeight()}px`,
573
+ position: 'relative',
574
+ };
575
+ }
576
+ getVirtualVisibleOptions() {
577
+ const filteredOptions = this.getFilteredOptions();
578
+ const { startIndex, endIndex } = this.getVisibleRange();
579
+ return {
580
+ startIndex,
581
+ visibleOptions: filteredOptions.slice(startIndex, endIndex),
582
+ };
583
+ }
584
+ renderVirtualOptions() {
585
+ const { startIndex, visibleOptions } = this.getVirtualVisibleOptions();
586
+ if (visibleOptions.length === 0) {
587
+ return (h("div", { part: "empty-option", role: "option", "aria-selected": "false", tabIndex: 0 }, "Nenhum resultado encontrado"));
588
+ }
589
+ return (h("div", { style: this.getVirtualSpacerStyle() }, visibleOptions.map((option, relativeIndex) => this.renderOption(option, startIndex + relativeIndex))));
590
+ }
591
+ renderLoading() {
592
+ return (h("div", { part: "loading", role: "status", "aria-live": "polite" }, h("slot", { name: "loading" }, h("br-loading", { size: "small", label: "Buscando op\u00E7\u00F5es" }))));
593
+ }
594
+ render() {
595
+ return (h(Host, { key: '537c7f312573570953b24e27fed7188a052c4bd5' }, h("div", { key: 'aac978e5664c9dee21ba7a6763125fe7daf915d3', class: this.getCssClassMap(), part: "list", ref: (el) => (this.listElement = el), onScroll: this.handleScroll, style: this.getVirtualScrollStyle() }, this.loading ? this.renderLoading() : this.renderVirtualOptions())));
596
+ }
597
+ static get is() { return "br-select-list"; }
598
+ static get encapsulation() { return "shadow"; }
599
+ static get originalStyleUrls() {
600
+ return {
601
+ "$": ["select-list.scss"]
602
+ };
603
+ }
604
+ static get styleUrls() {
605
+ return {
606
+ "$": ["select-list.css"]
607
+ };
608
+ }
609
+ static get properties() {
610
+ return {
611
+ "options": {
612
+ "type": "unknown",
613
+ "mutable": true,
614
+ "complexType": {
615
+ "original": "SelectOptionData[]",
616
+ "resolved": "SelectOptionData[]",
617
+ "references": {
618
+ "SelectOptionData": {
619
+ "location": "import",
620
+ "path": "../select.types",
621
+ "id": "src/components/select/select.types.ts::SelectOptionData",
622
+ "referenceLocation": "SelectOptionData"
623
+ }
624
+ }
625
+ },
626
+ "required": false,
627
+ "optional": false,
628
+ "docs": {
629
+ "tags": [{
630
+ "name": "type",
631
+ "text": "{SelectOptionData[]}"
632
+ }, {
633
+ "name": "default",
634
+ "text": "[]"
635
+ }],
636
+ "text": "Cole\u00E7\u00E3o de op\u00E7\u00F5es exibidas pela lista."
637
+ },
638
+ "getter": false,
639
+ "setter": false,
640
+ "defaultValue": "[]"
641
+ },
642
+ "searchTerm": {
643
+ "type": "string",
644
+ "mutable": false,
645
+ "complexType": {
646
+ "original": "string",
647
+ "resolved": "string",
648
+ "references": {}
649
+ },
650
+ "required": false,
651
+ "optional": false,
652
+ "docs": {
653
+ "tags": [{
654
+ "name": "default",
655
+ "text": "''"
656
+ }],
657
+ "text": "Termo usado para filtrar op\u00E7\u00F5es por r\u00F3tulo ou valor."
658
+ },
659
+ "getter": false,
660
+ "setter": false,
661
+ "reflect": false,
662
+ "attribute": "search-term",
663
+ "defaultValue": "''"
664
+ },
665
+ "loading": {
666
+ "type": "boolean",
667
+ "mutable": false,
668
+ "complexType": {
669
+ "original": "boolean",
670
+ "resolved": "boolean",
671
+ "references": {}
672
+ },
673
+ "required": false,
674
+ "optional": false,
675
+ "docs": {
676
+ "tags": [{
677
+ "name": "default",
678
+ "text": "false"
679
+ }],
680
+ "text": "Indica que os resultados remotos est\u00E3o sendo carregados."
681
+ },
682
+ "getter": false,
683
+ "setter": false,
684
+ "reflect": false,
685
+ "attribute": "loading",
686
+ "defaultValue": "false"
687
+ },
688
+ "visibleItems": {
689
+ "type": "number",
690
+ "mutable": false,
691
+ "complexType": {
692
+ "original": "number",
693
+ "resolved": "number",
694
+ "references": {}
695
+ },
696
+ "required": false,
697
+ "optional": false,
698
+ "docs": {
699
+ "tags": [{
700
+ "name": "default",
701
+ "text": "6"
702
+ }],
703
+ "text": "Define quantas op\u00E7\u00F5es permanecem vis\u00EDveis na viewport da lista."
704
+ },
705
+ "getter": false,
706
+ "setter": false,
707
+ "reflect": false,
708
+ "attribute": "visible-items",
709
+ "defaultValue": "6"
710
+ },
711
+ "itemHeight": {
712
+ "type": "number",
713
+ "mutable": false,
714
+ "complexType": {
715
+ "original": "number",
716
+ "resolved": "number",
717
+ "references": {}
718
+ },
719
+ "required": false,
720
+ "optional": false,
721
+ "docs": {
722
+ "tags": [{
723
+ "name": "default",
724
+ "text": "56"
725
+ }],
726
+ "text": "Informa a altura base usada no c\u00E1lculo de posicionamento das op\u00E7\u00F5es."
727
+ },
728
+ "getter": false,
729
+ "setter": false,
730
+ "reflect": false,
731
+ "attribute": "item-height",
732
+ "defaultValue": "56"
733
+ },
734
+ "overscan": {
735
+ "type": "number",
736
+ "mutable": false,
737
+ "complexType": {
738
+ "original": "number",
739
+ "resolved": "number",
740
+ "references": {}
741
+ },
742
+ "required": false,
743
+ "optional": false,
744
+ "docs": {
745
+ "tags": [{
746
+ "name": "default",
747
+ "text": "0"
748
+ }],
749
+ "text": "Define quantas op\u00E7\u00F5es extras s\u00E3o renderizadas fora da viewport quando o virtual scroll est\u00E1 ativo."
750
+ },
751
+ "getter": false,
752
+ "setter": false,
753
+ "reflect": false,
754
+ "attribute": "overscan",
755
+ "defaultValue": "0"
756
+ },
757
+ "selectAllLabel": {
758
+ "type": "string",
759
+ "mutable": false,
760
+ "complexType": {
761
+ "original": "string",
762
+ "resolved": "string",
763
+ "references": {}
764
+ },
765
+ "required": false,
766
+ "optional": false,
767
+ "docs": {
768
+ "tags": [{
769
+ "name": "default",
770
+ "text": "'Selecionar todos'"
771
+ }],
772
+ "text": "R\u00F3tulo apresentado para a a\u00E7\u00E3o de selecionar todos no modo m\u00FAltiplo."
773
+ },
774
+ "getter": false,
775
+ "setter": false,
776
+ "reflect": false,
777
+ "attribute": "select-all-label",
778
+ "defaultValue": "SelectList.SELECT_ALL_LABEL"
779
+ },
780
+ "unselectAllLabel": {
781
+ "type": "string",
782
+ "mutable": false,
783
+ "complexType": {
784
+ "original": "string",
785
+ "resolved": "string",
786
+ "references": {}
787
+ },
788
+ "required": false,
789
+ "optional": false,
790
+ "docs": {
791
+ "tags": [{
792
+ "name": "default",
793
+ "text": "'Desselecionar todos'"
794
+ }],
795
+ "text": "R\u00F3tulo apresentado quando todas as op\u00E7\u00F5es j\u00E1 est\u00E3o selecionadas no modo m\u00FAltiplo."
796
+ },
797
+ "getter": false,
798
+ "setter": false,
799
+ "reflect": false,
800
+ "attribute": "unselect-all-label",
801
+ "defaultValue": "SelectList.DESELECT_ALL_LABEL"
802
+ },
803
+ "activeOptionIndex": {
804
+ "type": "number",
805
+ "mutable": false,
806
+ "complexType": {
807
+ "original": "number",
808
+ "resolved": "number",
809
+ "references": {}
810
+ },
811
+ "required": false,
812
+ "optional": false,
813
+ "docs": {
814
+ "tags": [{
815
+ "name": "default",
816
+ "text": "-1"
817
+ }, {
818
+ "name": "remarks",
819
+ "text": "Esse valor \u00E9 usado para refletir visualmente o foco l\u00F3gico da lista."
820
+ }],
821
+ "text": "\u00CDndice da op\u00E7\u00E3o atualmente ativa para navega\u00E7\u00E3o por teclado."
822
+ },
823
+ "getter": false,
824
+ "setter": false,
825
+ "reflect": false,
826
+ "attribute": "active-option-index",
827
+ "defaultValue": "-1"
828
+ }
829
+ };
830
+ }
831
+ static get states() {
832
+ return {
833
+ "isOpen": {},
834
+ "isMultiple": {},
835
+ "scrollTop": {},
836
+ "measuredItemHeight": {}
837
+ };
838
+ }
839
+ static get methods() {
840
+ return {
841
+ "open": {
842
+ "complexType": {
843
+ "signature": "() => Promise<void>",
844
+ "parameters": [],
845
+ "references": {
846
+ "Promise": {
847
+ "location": "global",
848
+ "id": "global::Promise"
849
+ }
850
+ },
851
+ "return": "Promise<void>"
852
+ },
853
+ "docs": {
854
+ "text": "Abre a lista e agenda a medi\u00E7\u00E3o das op\u00E7\u00F5es quando necess\u00E1rio.",
855
+ "tags": [{
856
+ "name": "returns",
857
+ "text": "Uma promise conclu\u00EDda ap\u00F3s a atualiza\u00E7\u00E3o do estado."
858
+ }]
859
+ }
860
+ },
861
+ "close": {
862
+ "complexType": {
863
+ "signature": "() => Promise<void>",
864
+ "parameters": [],
865
+ "references": {
866
+ "Promise": {
867
+ "location": "global",
868
+ "id": "global::Promise"
869
+ }
870
+ },
871
+ "return": "Promise<void>"
872
+ },
873
+ "docs": {
874
+ "text": "Fecha a lista de op\u00E7\u00F5es.",
875
+ "tags": [{
876
+ "name": "returns",
877
+ "text": "Uma promise conclu\u00EDda ap\u00F3s a atualiza\u00E7\u00E3o do estado."
878
+ }]
879
+ }
880
+ },
881
+ "setOptions": {
882
+ "complexType": {
883
+ "signature": "(options: SelectOptionData[]) => Promise<void>",
884
+ "parameters": [{
885
+ "name": "options",
886
+ "type": "SelectOptionData[]",
887
+ "docs": "Nova cole\u00E7\u00E3o de op\u00E7\u00F5es normalizadas."
888
+ }],
889
+ "references": {
890
+ "Promise": {
891
+ "location": "global",
892
+ "id": "global::Promise"
893
+ },
894
+ "SelectOptionData": {
895
+ "location": "import",
896
+ "path": "../select.types",
897
+ "id": "src/components/select/select.types.ts::SelectOptionData",
898
+ "referenceLocation": "SelectOptionData"
899
+ }
900
+ },
901
+ "return": "Promise<void>"
902
+ },
903
+ "docs": {
904
+ "text": "Substitui todas as op\u00E7\u00F5es renderizadas pela lista.",
905
+ "tags": [{
906
+ "name": "param",
907
+ "text": "options Nova cole\u00E7\u00E3o de op\u00E7\u00F5es normalizadas."
908
+ }, {
909
+ "name": "returns",
910
+ "text": "Uma promise conclu\u00EDda ap\u00F3s a atualiza\u00E7\u00E3o da lista."
911
+ }]
912
+ }
913
+ },
914
+ "setOption": {
915
+ "complexType": {
916
+ "signature": "(option: SelectOptionData) => Promise<void>",
917
+ "parameters": [{
918
+ "name": "option",
919
+ "type": "{ content?: string; disabled?: boolean; indeterminate?: boolean; label?: string; selected?: boolean; value: string; }",
920
+ "docs": "Op\u00E7\u00E3o que deve ser persistida na lista."
921
+ }],
922
+ "references": {
923
+ "Promise": {
924
+ "location": "global",
925
+ "id": "global::Promise"
926
+ },
927
+ "SelectOptionData": {
928
+ "location": "import",
929
+ "path": "../select.types",
930
+ "id": "src/components/select/select.types.ts::SelectOptionData",
931
+ "referenceLocation": "SelectOptionData"
932
+ }
933
+ },
934
+ "return": "Promise<void>"
935
+ },
936
+ "docs": {
937
+ "text": "Adiciona ou atualiza uma \u00FAnica op\u00E7\u00E3o na cole\u00E7\u00E3o atual.",
938
+ "tags": [{
939
+ "name": "param",
940
+ "text": "option Op\u00E7\u00E3o que deve ser persistida na lista."
941
+ }, {
942
+ "name": "returns",
943
+ "text": "Uma promise conclu\u00EDda ap\u00F3s a atualiza\u00E7\u00E3o da cole\u00E7\u00E3o."
944
+ }]
945
+ }
946
+ },
947
+ "setSearchTerm": {
948
+ "complexType": {
949
+ "signature": "(term: string) => Promise<void>",
950
+ "parameters": [{
951
+ "name": "term",
952
+ "type": "string",
953
+ "docs": "Termo que deve filtrar a cole\u00E7\u00E3o. String vazia restaura todas as op\u00E7\u00F5es."
954
+ }],
955
+ "references": {
956
+ "Promise": {
957
+ "location": "global",
958
+ "id": "global::Promise"
959
+ }
960
+ },
961
+ "return": "Promise<void>"
962
+ },
963
+ "docs": {
964
+ "text": "Atualiza o termo de busca e reinicia a janela virtual no topo.",
965
+ "tags": [{
966
+ "name": "param",
967
+ "text": "term Termo que deve filtrar a cole\u00E7\u00E3o. String vazia restaura todas as op\u00E7\u00F5es."
968
+ }]
969
+ }
970
+ },
971
+ "setMultiple": {
972
+ "complexType": {
973
+ "signature": "(isMultiple: boolean) => Promise<void>",
974
+ "parameters": [{
975
+ "name": "isMultiple",
976
+ "type": "boolean",
977
+ "docs": "Define se a lista deve operar em sele\u00E7\u00E3o m\u00FAltipla."
978
+ }],
979
+ "references": {
980
+ "Promise": {
981
+ "location": "global",
982
+ "id": "global::Promise"
983
+ }
984
+ },
985
+ "return": "Promise<void>"
986
+ },
987
+ "docs": {
988
+ "text": "Alterna a lista entre modo simples e m\u00FAltiplo.",
989
+ "tags": [{
990
+ "name": "param",
991
+ "text": "isMultiple Define se a lista deve operar em sele\u00E7\u00E3o m\u00FAltipla."
992
+ }, {
993
+ "name": "returns",
994
+ "text": "Uma promise conclu\u00EDda ap\u00F3s a atualiza\u00E7\u00E3o do modo."
995
+ }]
996
+ }
997
+ },
998
+ "getOptions": {
999
+ "complexType": {
1000
+ "signature": "() => Promise<SelectOptionData[]>",
1001
+ "parameters": [],
1002
+ "references": {
1003
+ "Promise": {
1004
+ "location": "global",
1005
+ "id": "global::Promise"
1006
+ },
1007
+ "SelectOptionData": {
1008
+ "location": "import",
1009
+ "path": "../select.types",
1010
+ "id": "src/components/select/select.types.ts::SelectOptionData",
1011
+ "referenceLocation": "SelectOptionData"
1012
+ }
1013
+ },
1014
+ "return": "Promise<SelectOptionData[]>"
1015
+ },
1016
+ "docs": {
1017
+ "text": "Retorna uma c\u00F3pia das op\u00E7\u00F5es atualmente controladas pela lista.",
1018
+ "tags": [{
1019
+ "name": "returns",
1020
+ "text": "As op\u00E7\u00F5es renderizadas no estado atual."
1021
+ }]
1022
+ }
1023
+ },
1024
+ "scrollOptionToTop": {
1025
+ "complexType": {
1026
+ "signature": "(index: number) => Promise<boolean>",
1027
+ "parameters": [{
1028
+ "name": "index",
1029
+ "type": "number",
1030
+ "docs": "\u00CDndice l\u00F3gico da op\u00E7\u00E3o alvo."
1031
+ }],
1032
+ "references": {
1033
+ "Promise": {
1034
+ "location": "global",
1035
+ "id": "global::Promise"
1036
+ }
1037
+ },
1038
+ "return": "Promise<boolean>"
1039
+ },
1040
+ "docs": {
1041
+ "text": "Posiciona uma op\u00E7\u00E3o no topo da viewport virtual, respeitando o limite final da lista.",
1042
+ "tags": [{
1043
+ "name": "param",
1044
+ "text": "index \u00CDndice l\u00F3gico da op\u00E7\u00E3o alvo."
1045
+ }, {
1046
+ "name": "returns",
1047
+ "text": "`true` quando o \u00EDndice pertence \u00E0 cole\u00E7\u00E3o filtrada atual."
1048
+ }]
1049
+ }
1050
+ },
1051
+ "scrollFirstSelectedOptionToTop": {
1052
+ "complexType": {
1053
+ "signature": "() => Promise<boolean>",
1054
+ "parameters": [],
1055
+ "references": {
1056
+ "Promise": {
1057
+ "location": "global",
1058
+ "id": "global::Promise"
1059
+ }
1060
+ },
1061
+ "return": "Promise<boolean>"
1062
+ },
1063
+ "docs": {
1064
+ "text": "Posiciona no topo a primeira op\u00E7\u00E3o selecionada na ordem visual da lista.\nA op\u00E7\u00E3o auxiliar de selecionar tudo n\u00E3o participa dessa escolha.",
1065
+ "tags": [{
1066
+ "name": "returns",
1067
+ "text": "`true` quando existe uma op\u00E7\u00E3o selecionada para posicionar."
1068
+ }]
1069
+ }
1070
+ },
1071
+ "focusOption": {
1072
+ "complexType": {
1073
+ "signature": "(index: number) => Promise<boolean>",
1074
+ "parameters": [{
1075
+ "name": "index",
1076
+ "type": "number",
1077
+ "docs": "\u00CDndice l\u00F3gico da op\u00E7\u00E3o alvo."
1078
+ }],
1079
+ "references": {
1080
+ "Promise": {
1081
+ "location": "global",
1082
+ "id": "global::Promise"
1083
+ }
1084
+ },
1085
+ "return": "Promise<boolean>"
1086
+ },
1087
+ "docs": {
1088
+ "text": "Garante visibilidade e foco para uma op\u00E7\u00E3o espec\u00EDfica.",
1089
+ "tags": [{
1090
+ "name": "param",
1091
+ "text": "index \u00CDndice l\u00F3gico da op\u00E7\u00E3o alvo."
1092
+ }, {
1093
+ "name": "returns",
1094
+ "text": "`true` quando a op\u00E7\u00E3o foi encontrada para foco."
1095
+ }]
1096
+ }
1097
+ },
1098
+ "setOptionSelected": {
1099
+ "complexType": {
1100
+ "signature": "(index: number, selected?: boolean) => Promise<boolean>",
1101
+ "parameters": [{
1102
+ "name": "index",
1103
+ "type": "number",
1104
+ "docs": "\u00CDndice l\u00F3gico da op\u00E7\u00E3o alvo."
1105
+ }, {
1106
+ "name": "selected",
1107
+ "type": "boolean",
1108
+ "docs": "Estado desejado para a op\u00E7\u00E3o. Quando omitido, a pr\u00F3pria op\u00E7\u00E3o alterna o valor atual."
1109
+ }],
1110
+ "references": {
1111
+ "Promise": {
1112
+ "location": "global",
1113
+ "id": "global::Promise"
1114
+ }
1115
+ },
1116
+ "return": "Promise<boolean>"
1117
+ },
1118
+ "docs": {
1119
+ "text": "Aciona a sele\u00E7\u00E3o program\u00E1tica de uma op\u00E7\u00E3o espec\u00EDfica.",
1120
+ "tags": [{
1121
+ "name": "param",
1122
+ "text": "index \u00CDndice l\u00F3gico da op\u00E7\u00E3o alvo."
1123
+ }, {
1124
+ "name": "param",
1125
+ "text": "selected Estado desejado para a op\u00E7\u00E3o. Quando omitido, a pr\u00F3pria op\u00E7\u00E3o alterna o valor atual."
1126
+ }, {
1127
+ "name": "returns",
1128
+ "text": "`true` quando a op\u00E7\u00E3o foi encontrada para atualiza\u00E7\u00E3o."
1129
+ }]
1130
+ }
1131
+ }
1132
+ };
1133
+ }
1134
+ static get elementRef() { return "el"; }
1135
+ static get watchers() {
1136
+ return [{
1137
+ "propName": "searchTerm",
1138
+ "methodName": "handleSearchTermChange"
1139
+ }, {
1140
+ "propName": "selectAllLabel",
1141
+ "methodName": "handleSelectAllLabelChange"
1142
+ }, {
1143
+ "propName": "unselectAllLabel",
1144
+ "methodName": "handleSelectAllLabelChange"
1145
+ }];
1146
+ }
1147
+ static get listeners() {
1148
+ return [{
1149
+ "name": "brSelectOptionStateChange",
1150
+ "method": "handleOptionStateChange",
1151
+ "target": undefined,
1152
+ "capture": false,
1153
+ "passive": false
1154
+ }];
1155
+ }
1156
+ }
1157
+ SelectList.SELECT_ALL_LABEL = 'Selecionar todos';
1158
+ SelectList.DESELECT_ALL_LABEL = 'Desselecionar todos';
1159
+ SelectList.SELECT_ALL_VALUE = 'Alternar todos';