@govbr-ds/webcomponents 2.1.0 → 2.1.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/cem/custom-elements.json +63 -63
- package/dist/cjs/app-globals-DcqHuMBv.js +9 -0
- package/dist/cjs/br-avatar.cjs.entry.js +248 -0
- package/dist/cjs/br-breadcrumb-item.cjs.entry.js +45 -0
- package/dist/cjs/br-breadcrumb.cjs.entry.js +443 -0
- package/dist/cjs/br-button_2.cjs.entry.js +280 -0
- package/dist/cjs/br-card.cjs.entry.js +111 -0
- package/dist/cjs/br-carousel-page.cjs.entry.js +80 -0
- package/dist/cjs/br-carousel.cjs.entry.js +565 -0
- package/dist/cjs/br-checkbox-group.cjs.entry.js +118 -0
- package/dist/cjs/br-checkbox.cjs.entry.js +288 -0
- package/dist/cjs/br-checkgroup.cjs.entry.js +20 -0
- package/dist/cjs/br-collapse_2.cjs.entry.js +683 -0
- package/dist/cjs/br-cookiebar-cookie.cjs.entry.js +83 -0
- package/dist/cjs/br-cookiebar-group.cjs.entry.js +309 -0
- package/dist/cjs/br-cookiebar-header.cjs.entry.js +39 -0
- package/dist/cjs/br-cookiebar-link.cjs.entry.js +54 -0
- package/dist/cjs/br-cookiebar-note-group.cjs.entry.js +70 -0
- package/dist/cjs/br-cookiebar-note.cjs.entry.js +25 -0
- package/dist/cjs/br-cookiebar.cjs.entry.js +758 -0
- package/dist/cjs/br-crumb.cjs.entry.js +51 -0
- package/dist/cjs/br-date-picker_3.cjs.entry.js +2446 -0
- package/dist/cjs/br-datetime-picker.cjs.entry.js +1887 -0
- package/dist/cjs/br-divider.cjs.entry.js +225 -0
- package/dist/cjs/br-dropdown_2.cjs.entry.js +1856 -0
- package/dist/cjs/br-footer-category.cjs.entry.js +102 -0
- package/dist/cjs/br-footer-item.cjs.entry.js +52 -0
- package/dist/cjs/br-footer-legal.cjs.entry.js +41 -0
- package/dist/cjs/br-footer-logo.cjs.entry.js +104 -0
- package/dist/cjs/br-footer-social.cjs.entry.js +71 -0
- package/dist/cjs/br-footer.cjs.entry.js +92 -0
- package/dist/cjs/br-header-function.cjs.entry.js +142 -0
- package/dist/cjs/br-header-link.cjs.entry.js +60 -0
- package/dist/cjs/br-header-list.cjs.entry.js +279 -0
- package/dist/cjs/br-header-logo.cjs.entry.js +177 -0
- package/dist/cjs/br-header.cjs.entry.js +642 -0
- package/dist/cjs/br-icon.cjs.entry.js +485 -0
- package/dist/cjs/br-input.cjs.entry.js +599 -0
- package/dist/cjs/br-item.cjs.entry.js +356 -0
- package/dist/cjs/br-link.cjs.entry.js +132 -0
- package/dist/cjs/br-loading.cjs.entry.js +505 -0
- package/dist/cjs/br-magic-button.cjs.entry.js +92 -0
- package/dist/cjs/br-menu-group.cjs.entry.js +23 -0
- package/dist/cjs/br-menu-header.cjs.entry.js +47 -0
- package/dist/cjs/br-menu-info.cjs.entry.js +38 -0
- package/dist/cjs/br-menu-item.cjs.entry.js +79 -0
- package/dist/cjs/br-menu-link.cjs.entry.js +55 -0
- package/dist/cjs/br-menu-list.cjs.entry.js +149 -0
- package/dist/cjs/br-menu-logo.cjs.entry.js +75 -0
- package/dist/cjs/br-menu-social.cjs.entry.js +65 -0
- package/dist/cjs/br-menu.cjs.entry.js +993 -0
- package/dist/cjs/br-modal.cjs.entry.js +496 -0
- package/dist/cjs/br-notification-body.cjs.entry.js +71 -0
- package/dist/cjs/br-notification-header.cjs.entry.js +48 -0
- package/dist/cjs/br-notification-item.cjs.entry.js +110 -0
- package/dist/cjs/br-notification.cjs.entry.js +334 -0
- package/dist/cjs/br-pagination.cjs.entry.js +884 -0
- package/dist/cjs/br-radio-group.cjs.entry.js +428 -0
- package/dist/cjs/br-radio.cjs.entry.js +357 -0
- package/dist/cjs/br-scrim.cjs.entry.js +1336 -0
- package/dist/cjs/br-select-input_3.cjs.entry.js +954 -0
- package/dist/cjs/br-sign-in.cjs.entry.js +125 -0
- package/dist/cjs/br-skip-link-item.cjs.entry.js +20 -0
- package/dist/cjs/br-skip-link.cjs.entry.js +362 -0
- package/dist/cjs/br-skiplink-item.cjs.entry.js +192 -0
- package/dist/cjs/br-slider.cjs.entry.js +688 -0
- package/dist/cjs/br-step_2.cjs.entry.js +628 -0
- package/dist/cjs/br-switch.cjs.entry.js +245 -0
- package/dist/cjs/br-tab-item.cjs.entry.js +185 -0
- package/dist/cjs/br-tab.cjs.entry.js +397 -0
- package/dist/cjs/br-table-body.cjs.entry.js +37 -0
- package/dist/cjs/br-table-cell.cjs.entry.js +184 -0
- package/dist/cjs/br-table-header-cell.cjs.entry.js +173 -0
- package/dist/cjs/br-table-header.cjs.entry.js +37 -0
- package/dist/cjs/br-table-row.cjs.entry.js +81 -0
- package/dist/cjs/br-table.cjs.entry.js +680 -0
- package/dist/cjs/br-tag.cjs.entry.js +494 -0
- package/dist/cjs/br-textarea.cjs.entry.js +306 -0
- package/dist/cjs/br-tooltip.cjs.entry.js +627 -0
- package/dist/cjs/br-upload.cjs.entry.js +582 -0
- package/dist/cjs/br-wizard-panel.cjs.entry.js +54 -0
- package/dist/cjs/br-wizard.cjs.entry.js +708 -0
- package/dist/cjs/breakpoint-observer-P8veqXg7.js +144 -0
- package/dist/cjs/clamp-Co_hWptd.js +25 -0
- package/dist/cjs/cookiebar.utils-CB1gQwZ4.js +18 -0
- package/dist/cjs/datetime-picker-constants-B5pWeOn1.js +3827 -0
- package/dist/cjs/event-CmVdNHxl.js +56 -0
- package/dist/cjs/floating-surface-dismiss-ccdiD0KF.js +63 -0
- package/dist/cjs/floating-ui-MBI1osio.js +136 -0
- package/dist/cjs/floating-ui.dom-BUSTaaxR.js +1715 -0
- package/dist/cjs/focus-DuywwJPR.js +30 -0
- package/dist/cjs/getNextElement-R9l3JtM9.js +31 -0
- package/dist/cjs/iconify-icon-DfODV9bf.js +2307 -0
- package/dist/cjs/id-CjRFMzf6.js +20 -0
- package/dist/cjs/index-C92n55ch.js +678 -0
- package/dist/cjs/index-CRdcutym.js +3287 -0
- package/dist/cjs/index.cjs.js +12 -0
- package/dist/cjs/isNil-DO5zWc3l.js +19 -0
- package/dist/cjs/isValid-Fu3kaWNn.js +3694 -0
- package/dist/cjs/loader.cjs.js +17 -0
- package/dist/cjs/native-dialog--Ewqm4w0.js +49 -0
- package/dist/cjs/navigation-AbzwcRCU.js +25 -0
- package/dist/cjs/parts-D5K3ae2C.js +19 -0
- package/dist/cjs/props-CScmBvKd.js +24 -0
- package/dist/cjs/raf-batcher-yc87a4dS.js +55 -0
- package/dist/cjs/slot-DAllytTj.js +48 -0
- package/dist/cjs/swipe-BU8_XE9f.js +345 -0
- package/dist/cjs/table-constants-BOPSay0B.js +183 -0
- package/dist/cjs/validator-CTCajtT9.js +123 -0
- package/dist/cjs/webcomponents.cjs.js +50 -0
- package/dist/collection/assets/icon-search.svg +6 -0
- package/dist/collection/assets/logo-negative.svg +1 -0
- package/dist/collection/assets/logo-positive.svg +1 -0
- package/dist/collection/assets/wc.svg +1 -0
- package/dist/collection/collection-manifest.json +113 -0
- package/dist/collection/components/avatar/avatar.css +1 -0
- package/dist/collection/components/avatar/avatar.js +589 -0
- package/dist/collection/components/avatar/avatar.types.js +1 -0
- package/dist/collection/components/breadcrumb/breadcrumb-item/breadcrumb-item.js +166 -0
- package/dist/collection/components/breadcrumb/breadcrumb.css +1 -0
- package/dist/collection/components/breadcrumb/breadcrumb.js +619 -0
- package/dist/collection/components/breadcrumb/breadcrumb.types.js +1 -0
- package/dist/collection/components/breadcrumb/crumb/crumb.js +175 -0
- package/dist/collection/components/button/button.css +1 -0
- package/dist/collection/components/button/button.js +546 -0
- package/dist/collection/components/button/button.types.js +1 -0
- package/dist/collection/components/card/card.css +1 -0
- package/dist/collection/components/card/card.js +225 -0
- package/dist/collection/components/carousel/carousel-page/carousel-page.css +1 -0
- package/dist/collection/components/carousel/carousel-page/carousel-page.js +195 -0
- package/dist/collection/components/carousel/carousel.css +1 -0
- package/dist/collection/components/carousel/carousel.js +1217 -0
- package/dist/collection/components/carousel/carousel.types.js +1 -0
- package/dist/collection/components/checkbox/checkbox.css +1 -0
- package/dist/collection/components/checkbox/checkbox.js +823 -0
- package/dist/collection/components/checkbox/checkbox.types.js +1 -0
- package/dist/collection/components/checkbox-group/checkbox-group.css +1 -0
- package/dist/collection/components/checkbox-group/checkbox-group.js +268 -0
- package/dist/collection/components/checkgroup/checkgroup.js +166 -0
- package/dist/collection/components/collapse/collapse.css +1 -0
- package/dist/collection/components/collapse/collapse.js +642 -0
- package/dist/collection/components/collapse/collapse.types.js +1 -0
- package/dist/collection/components/cookiebar/cookiebar-cookie/cookiebar-cookie.css +1 -0
- package/dist/collection/components/cookiebar/cookiebar-cookie/cookiebar-cookie.js +529 -0
- package/dist/collection/components/cookiebar/cookiebar-group/cookiebar-group.css +1 -0
- package/dist/collection/components/cookiebar/cookiebar-group/cookiebar-group.js +628 -0
- package/dist/collection/components/cookiebar/cookiebar-header/cookiebar-header.css +1 -0
- package/dist/collection/components/cookiebar/cookiebar-header/cookiebar-header.js +165 -0
- package/dist/collection/components/cookiebar/cookiebar-link/cookiebar-link.css +1 -0
- package/dist/collection/components/cookiebar/cookiebar-link/cookiebar-link.js +200 -0
- package/dist/collection/components/cookiebar/cookiebar-note/cookiebar-note.css +1 -0
- package/dist/collection/components/cookiebar/cookiebar-note/cookiebar-note.js +100 -0
- package/dist/collection/components/cookiebar/cookiebar-note-group/cookiebar-note-group.css +1 -0
- package/dist/collection/components/cookiebar/cookiebar-note-group/cookiebar-note-group.js +172 -0
- package/dist/collection/components/cookiebar/cookiebar.css +1 -0
- package/dist/collection/components/cookiebar/cookiebar.js +1419 -0
- package/dist/collection/components/cookiebar/cookiebar.types.js +1 -0
- package/dist/collection/components/cookiebar/cookiebar.utils.js +14 -0
- package/dist/collection/components/datetime-picker/date-picker/date-picker-locale.js +94 -0
- package/dist/collection/components/datetime-picker/date-picker/date-picker-props-validation.js +57 -0
- package/dist/collection/components/datetime-picker/date-picker/date-picker.css +1 -0
- package/dist/collection/components/datetime-picker/date-picker/date-picker.js +913 -0
- package/dist/collection/components/datetime-picker/datetime-input/datetime-input-props-validation.js +65 -0
- package/dist/collection/components/datetime-picker/datetime-input/datetime-input.css +1 -0
- package/dist/collection/components/datetime-picker/datetime-input/datetime-input.js +825 -0
- package/dist/collection/components/datetime-picker/datetime-picker-constants.js +36 -0
- package/dist/collection/components/datetime-picker/datetime-picker-form-associated.js +112 -0
- package/dist/collection/components/datetime-picker/datetime-picker-props-validation.js +202 -0
- package/dist/collection/components/datetime-picker/datetime-picker.css +1 -0
- package/dist/collection/components/datetime-picker/datetime-picker.js +1925 -0
- package/dist/collection/components/datetime-picker/datetime-picker.types.js +1 -0
- package/dist/collection/components/datetime-picker/datetime-picker.utils.js +250 -0
- package/dist/collection/components/datetime-picker/time-picker/time-picker-constants.js +13 -0
- package/dist/collection/components/datetime-picker/time-picker/time-picker.css +1 -0
- package/dist/collection/components/datetime-picker/time-picker/time-picker.js +456 -0
- package/dist/collection/components/divider/divider.css +1 -0
- package/dist/collection/components/divider/divider.js +537 -0
- package/dist/collection/components/divider/divider.types.js +1 -0
- package/dist/collection/components/dropdown/dropdown.css +1 -0
- package/dist/collection/components/dropdown/dropdown.js +939 -0
- package/dist/collection/components/dropdown/dropdown.types.js +1 -0
- package/dist/collection/components/footer/footer-category/footer-category.css +1 -0
- package/dist/collection/components/footer/footer-category/footer-category.js +160 -0
- package/dist/collection/components/footer/footer-item/footer-item.css +1 -0
- package/dist/collection/components/footer/footer-item/footer-item.js +154 -0
- package/dist/collection/components/footer/footer-legal/footer-legal.css +1 -0
- package/dist/collection/components/footer/footer-legal/footer-legal.js +75 -0
- package/dist/collection/components/footer/footer-logo/footer-logo.css +1 -0
- package/dist/collection/components/footer/footer-logo/footer-logo.js +342 -0
- package/dist/collection/components/footer/footer-logo/footer-logo.types.js +1 -0
- package/dist/collection/components/footer/footer-social/footer-social.css +1 -0
- package/dist/collection/components/footer/footer-social/footer-social.js +239 -0
- package/dist/collection/components/footer/footer.css +1 -0
- package/dist/collection/components/footer/footer.js +245 -0
- package/dist/collection/components/footer/footer.types.js +1 -0
- package/dist/collection/components/global.types.js +1 -0
- package/dist/collection/components/header/header-function/header-function.css +1 -0
- package/dist/collection/components/header/header-function/header-function.js +311 -0
- package/dist/collection/components/header/header-link/header-link.css +1 -0
- package/dist/collection/components/header/header-link/header-link.js +189 -0
- package/dist/collection/components/header/header-list/header-list.css +1 -0
- package/dist/collection/components/header/header-list/header-list.js +452 -0
- package/dist/collection/components/header/header-logo/header-logo.css +1 -0
- package/dist/collection/components/header/header-logo/header-logo.js +420 -0
- package/dist/collection/components/header/header.css +1 -0
- package/dist/collection/components/header/header.js +1131 -0
- package/dist/collection/components/header/header.types.js +1 -0
- package/dist/collection/components/icon/default-icons-cache.js +233 -0
- package/dist/collection/components/icon/icon.css +1 -0
- package/dist/collection/components/icon/icon.js +598 -0
- package/dist/collection/components/icon/icon.types.js +1 -0
- package/dist/collection/components/icon/icon.utils.js +33 -0
- package/dist/collection/components/input/input.css +1 -0
- package/dist/collection/components/input/input.js +1642 -0
- package/dist/collection/components/input/input.types.js +1 -0
- package/dist/collection/components/item/item.css +1 -0
- package/dist/collection/components/item/item.js +906 -0
- package/dist/collection/components/item/item.types.js +1 -0
- package/dist/collection/components/link/link.css +1 -0
- package/dist/collection/components/link/link.js +698 -0
- package/dist/collection/components/list/list.css +1 -0
- package/dist/collection/components/list/list.js +728 -0
- package/dist/collection/components/loading/loading.css +1 -0
- package/dist/collection/components/loading/loading.js +1169 -0
- package/dist/collection/components/loading/loading.types.js +1 -0
- package/dist/collection/components/magic-button/magic-button.css +1 -0
- package/dist/collection/components/magic-button/magic-button.js +237 -0
- package/dist/collection/components/menu/menu-group/menu-group.css +1 -0
- package/dist/collection/components/menu/menu-group/menu-group.js +77 -0
- package/dist/collection/components/menu/menu-header/menu-header.css +1 -0
- package/dist/collection/components/menu/menu-header/menu-header.js +161 -0
- package/dist/collection/components/menu/menu-info/menu-info.css +1 -0
- package/dist/collection/components/menu/menu-info/menu-info.js +94 -0
- package/dist/collection/components/menu/menu-item/menu-item.css +1 -0
- package/dist/collection/components/menu/menu-item/menu-item.js +306 -0
- package/dist/collection/components/menu/menu-item/menu-item.types.js +1 -0
- package/dist/collection/components/menu/menu-link/menu-link.css +1 -0
- package/dist/collection/components/menu/menu-link/menu-link.js +259 -0
- package/dist/collection/components/menu/menu-list/menu-list.css +1 -0
- package/dist/collection/components/menu/menu-list/menu-list.js +311 -0
- package/dist/collection/components/menu/menu-logo/menu-logo.css +1 -0
- package/dist/collection/components/menu/menu-logo/menu-logo.js +230 -0
- package/dist/collection/components/menu/menu-social/menu-social.css +1 -0
- package/dist/collection/components/menu/menu-social/menu-social.js +263 -0
- package/dist/collection/components/menu/menu.css +1 -0
- package/dist/collection/components/menu/menu.js +1372 -0
- package/dist/collection/components/menu/menu.types.js +1 -0
- package/dist/collection/components/menu/menu.utils.js +279 -0
- package/dist/collection/components/message/message.css +1 -0
- package/dist/collection/components/message/message.js +508 -0
- package/dist/collection/components/modal/modal.css +1 -0
- package/dist/collection/components/modal/modal.js +842 -0
- package/dist/collection/components/modal/modal.types.js +1 -0
- package/dist/collection/components/notification/notification-body/notification-body.css +1 -0
- package/dist/collection/components/notification/notification-body/notification-body.js +153 -0
- package/dist/collection/components/notification/notification-header/notification-header.css +1 -0
- package/dist/collection/components/notification/notification-header/notification-header.js +181 -0
- package/dist/collection/components/notification/notification-item/notification-item.css +1 -0
- package/dist/collection/components/notification/notification-item/notification-item.js +351 -0
- package/dist/collection/components/notification/notification-item/notification-item.types.js +1 -0
- package/dist/collection/components/notification/notification.css +1 -0
- package/dist/collection/components/notification/notification.js +838 -0
- package/dist/collection/components/notification/notification.types.js +1 -0
- package/dist/collection/components/pagination/pagination.css +1 -0
- package/dist/collection/components/pagination/pagination.js +1470 -0
- package/dist/collection/components/pagination/pagination.types.js +1 -0
- package/dist/collection/components/radio/radio.css +1 -0
- package/dist/collection/components/radio/radio.js +847 -0
- package/dist/collection/components/radio/radio.types.js +1 -0
- package/dist/collection/components/radio-group/radio-group.css +1 -0
- package/dist/collection/components/radio-group/radio-group.js +862 -0
- package/dist/collection/components/radio-group/radio-group.types.js +1 -0
- package/dist/collection/components/scrim/scrim.css +1 -0
- package/dist/collection/components/scrim/scrim.js +1825 -0
- package/dist/collection/components/scrim/scrim.types.js +1 -0
- package/dist/collection/components/scrim/scrim.utils.js +132 -0
- package/dist/collection/components/select/select-input/select-input.css +1 -0
- package/dist/collection/components/select/select-input/select-input.js +585 -0
- package/dist/collection/components/select/select-list/select-list.css +1 -0
- package/dist/collection/components/select/select-list/select-list.js +1147 -0
- package/dist/collection/components/select/select-option/select-option.css +1 -0
- package/dist/collection/components/select/select-option/select-option.js +543 -0
- package/dist/collection/components/select/select.constants.js +6 -0
- package/dist/collection/components/select/select.css +1 -0
- package/dist/collection/components/select/select.js +2575 -0
- package/dist/collection/components/select/select.types.js +1 -0
- package/dist/collection/components/sign-in/sign-in.css +1 -0
- package/dist/collection/components/sign-in/sign-in.js +400 -0
- package/dist/collection/components/sign-in/sign-in.types.js +1 -0
- package/dist/collection/components/skip-link/skip-link-item/skip-link-item-alias.js +103 -0
- package/dist/collection/components/skip-link/skip-link-item/skip-link-item.css +1 -0
- package/dist/collection/components/skip-link/skip-link-item/skip-link-item.js +450 -0
- package/dist/collection/components/skip-link/skip-link.css +1 -0
- package/dist/collection/components/skip-link/skip-link.js +699 -0
- package/dist/collection/components/skip-link/skip-link.types.js +1 -0
- package/dist/collection/components/slider/slider.css +1 -0
- package/dist/collection/components/slider/slider.js +1325 -0
- package/dist/collection/components/slider/slider.types.js +1 -0
- package/dist/collection/components/step/step-item/step-item.css +1 -0
- package/dist/collection/components/step/step-item/step-item.js +604 -0
- package/dist/collection/components/step/step-item/step-item.types.js +1 -0
- package/dist/collection/components/step/step.css +1 -0
- package/dist/collection/components/step/step.js +896 -0
- package/dist/collection/components/step/step.types.js +1 -0
- package/dist/collection/components/switch/switch.css +1 -0
- package/dist/collection/components/switch/switch.js +715 -0
- package/dist/collection/components/switch/switch.types.js +1 -0
- package/dist/collection/components/tab/tab-item/tab-item.css +1 -0
- package/dist/collection/components/tab/tab-item/tab-item.js +425 -0
- package/dist/collection/components/tab/tab.css +1 -0
- package/dist/collection/components/tab/tab.js +724 -0
- package/dist/collection/components/tab/tab.types.js +1 -0
- package/dist/collection/components/table/table-body/table-body.css +1 -0
- package/dist/collection/components/table/table-body/table-body.js +51 -0
- package/dist/collection/components/table/table-cell/table-cell.css +1 -0
- package/dist/collection/components/table/table-cell/table-cell.js +373 -0
- package/dist/collection/components/table/table-constants.js +171 -0
- package/dist/collection/components/table/table-header/table-header.css +1 -0
- package/dist/collection/components/table/table-header/table-header.js +51 -0
- package/dist/collection/components/table/table-header-cell/table-header-cell.css +1 -0
- package/dist/collection/components/table/table-header-cell/table-header-cell.js +402 -0
- package/dist/collection/components/table/table-row/table-row.css +1 -0
- package/dist/collection/components/table/table-row/table-row.js +261 -0
- package/dist/collection/components/table/table-tokens.js +50 -0
- package/dist/collection/components/table/table-types.js +1 -0
- package/dist/collection/components/table/table-utils.js +44 -0
- package/dist/collection/components/table/table.css +1 -0
- package/dist/collection/components/table/table.js +1030 -0
- package/dist/collection/components/tag/tag.css +1 -0
- package/dist/collection/components/tag/tag.js +1153 -0
- package/dist/collection/components/tag/tag.types.js +1 -0
- package/dist/collection/components/textarea/textarea.css +1 -0
- package/dist/collection/components/textarea/textarea.js +985 -0
- package/dist/collection/components/textarea/textarea.types.js +1 -0
- package/dist/collection/components/tooltip/tooltip.css +1 -0
- package/dist/collection/components/tooltip/tooltip.js +1024 -0
- package/dist/collection/components/tooltip/tooltip.types.js +1 -0
- package/dist/collection/components/upload/upload.css +1 -0
- package/dist/collection/components/upload/upload.js +1315 -0
- package/dist/collection/components/upload/upload.types.js +1 -0
- package/dist/collection/components/wizard/wizard-panel/wizard-panel.css +1 -0
- package/dist/collection/components/wizard/wizard-panel/wizard-panel.js +167 -0
- package/dist/collection/components/wizard/wizard.css +1 -0
- package/dist/collection/components/wizard/wizard.js +1228 -0
- package/dist/collection/index.js +14 -0
- package/dist/collection/pages/components/cookiebar/index.js +26 -0
- package/dist/collection/pages/components/link/index.js +29 -0
- package/dist/collection/pages/components/pagination/index.js +12 -0
- package/dist/collection/pages/components/slider/index.js +18 -0
- package/dist/collection/pages/scripts/code-editor.js +101 -0
- package/dist/collection/pages/scripts/component-controls.js +591 -0
- package/dist/collection/pages/scripts/dev-event-console.js +47 -0
- package/dist/collection/pages/scripts/menu.js +183 -0
- package/dist/collection/pages/scripts/pageLoader.js +1420 -0
- package/dist/collection/shared/utils/assetsPath.js +75 -0
- package/dist/collection/shared/utils/breakpoint-observer.js +139 -0
- package/dist/collection/shared/utils/clamp.js +21 -0
- package/dist/collection/shared/utils/css-variables.js +12 -0
- package/dist/collection/shared/utils/cssVariables.js +37 -0
- package/dist/collection/shared/utils/date.js +405 -0
- package/dist/collection/shared/utils/debounce.js +39 -0
- package/dist/collection/shared/utils/event.js +55 -0
- package/dist/collection/shared/utils/floating-surface-dismiss.js +59 -0
- package/dist/collection/shared/utils/floating-ui.js +131 -0
- package/dist/collection/shared/utils/focus.js +24 -0
- package/dist/collection/shared/utils/form.js +82 -0
- package/dist/collection/shared/utils/format-bytes.js +20 -0
- package/dist/collection/shared/utils/getNextElement.js +30 -0
- package/dist/collection/shared/utils/getRandom.js +27 -0
- package/dist/collection/shared/utils/helpers.js +31 -0
- package/dist/collection/shared/utils/id.js +16 -0
- package/dist/collection/shared/utils/index.js +60 -0
- package/dist/collection/shared/utils/interfaces.js +1 -0
- package/dist/collection/shared/utils/isClient.js +14 -0
- package/dist/collection/shared/utils/isDefined.js +19 -0
- package/dist/collection/shared/utils/isEmpty.js +30 -0
- package/dist/collection/shared/utils/isHTMLElement.js +16 -0
- package/dist/collection/shared/utils/isNil.js +15 -0
- package/dist/collection/shared/utils/isString.js +20 -0
- package/dist/collection/shared/utils/native-dialog.js +44 -0
- package/dist/collection/shared/utils/navigation.js +21 -0
- package/dist/collection/shared/utils/parts.js +15 -0
- package/dist/collection/shared/utils/prop-warning.js +7 -0
- package/dist/collection/shared/utils/props.js +37 -0
- package/dist/collection/shared/utils/raf-batcher.js +51 -0
- package/dist/collection/shared/utils/scrollLock.js +141 -0
- package/dist/collection/shared/utils/setRafTimeout.js +38 -0
- package/dist/collection/shared/utils/slot.js +113 -0
- package/dist/collection/shared/utils/ssr-date.js +33 -0
- package/dist/collection/shared/utils/stringToArray.js +29 -0
- package/dist/collection/shared/utils/swipe.js +342 -0
- package/dist/collection/shared/utils/transition.js +127 -0
- package/dist/collection/shared/utils/types.js +1 -0
- package/dist/collection/shared/utils/validator.js +51 -0
- package/dist/collection/value-accessors/angular-value-accessor-config.js +41 -0
- package/dist/collection/value-accessors/index.js +6 -0
- package/dist/collection/value-accessors/vue-model-config.js +43 -0
- package/dist/components/br-avatar.d.ts +11 -0
- package/dist/components/br-avatar.js +5 -0
- package/dist/components/br-breadcrumb-item.d.ts +11 -0
- package/dist/components/br-breadcrumb-item.js +5 -0
- package/dist/components/br-breadcrumb.d.ts +11 -0
- package/dist/components/br-breadcrumb.js +5 -0
- package/dist/components/br-button.d.ts +11 -0
- package/dist/components/br-button.js +5 -0
- package/dist/components/br-card.d.ts +11 -0
- package/dist/components/br-card.js +5 -0
- package/dist/components/br-carousel-page.d.ts +11 -0
- package/dist/components/br-carousel-page.js +5 -0
- package/dist/components/br-carousel.d.ts +11 -0
- package/dist/components/br-carousel.js +5 -0
- package/dist/components/br-checkbox-group.d.ts +11 -0
- package/dist/components/br-checkbox-group.js +5 -0
- package/dist/components/br-checkbox.d.ts +11 -0
- package/dist/components/br-checkbox.js +5 -0
- package/dist/components/br-checkgroup.d.ts +11 -0
- package/dist/components/br-checkgroup.js +5 -0
- package/dist/components/br-collapse.d.ts +11 -0
- package/dist/components/br-collapse.js +5 -0
- package/dist/components/br-cookiebar-cookie.d.ts +11 -0
- package/dist/components/br-cookiebar-cookie.js +5 -0
- package/dist/components/br-cookiebar-group.d.ts +11 -0
- package/dist/components/br-cookiebar-group.js +5 -0
- package/dist/components/br-cookiebar-header.d.ts +11 -0
- package/dist/components/br-cookiebar-header.js +5 -0
- package/dist/components/br-cookiebar-link.d.ts +11 -0
- package/dist/components/br-cookiebar-link.js +5 -0
- package/dist/components/br-cookiebar-note-group.d.ts +11 -0
- package/dist/components/br-cookiebar-note-group.js +5 -0
- package/dist/components/br-cookiebar-note.d.ts +11 -0
- package/dist/components/br-cookiebar-note.js +5 -0
- package/dist/components/br-cookiebar.d.ts +11 -0
- package/dist/components/br-cookiebar.js +5 -0
- package/dist/components/br-crumb.d.ts +11 -0
- package/dist/components/br-crumb.js +5 -0
- package/dist/components/br-date-picker.d.ts +11 -0
- package/dist/components/br-date-picker.js +5 -0
- package/dist/components/br-datetime-input.d.ts +11 -0
- package/dist/components/br-datetime-input.js +5 -0
- package/dist/components/br-datetime-picker.d.ts +11 -0
- package/dist/components/br-datetime-picker.js +5 -0
- package/dist/components/br-divider.d.ts +11 -0
- package/dist/components/br-divider.js +5 -0
- package/dist/components/br-dropdown.d.ts +11 -0
- package/dist/components/br-dropdown.js +5 -0
- package/dist/components/br-footer-category.d.ts +11 -0
- package/dist/components/br-footer-category.js +5 -0
- package/dist/components/br-footer-item.d.ts +11 -0
- package/dist/components/br-footer-item.js +5 -0
- package/dist/components/br-footer-legal.d.ts +11 -0
- package/dist/components/br-footer-legal.js +5 -0
- package/dist/components/br-footer-logo.d.ts +11 -0
- package/dist/components/br-footer-logo.js +5 -0
- package/dist/components/br-footer-social.d.ts +11 -0
- package/dist/components/br-footer-social.js +5 -0
- package/dist/components/br-footer.d.ts +11 -0
- package/dist/components/br-footer.js +5 -0
- package/dist/components/br-header-function.d.ts +11 -0
- package/dist/components/br-header-function.js +5 -0
- package/dist/components/br-header-link.d.ts +11 -0
- package/dist/components/br-header-link.js +5 -0
- package/dist/components/br-header-list.d.ts +11 -0
- package/dist/components/br-header-list.js +5 -0
- package/dist/components/br-header-logo.d.ts +11 -0
- package/dist/components/br-header-logo.js +5 -0
- package/dist/components/br-header.d.ts +11 -0
- package/dist/components/br-header.js +5 -0
- package/dist/components/br-icon.d.ts +11 -0
- package/dist/components/br-icon.js +5 -0
- package/dist/components/br-input.d.ts +11 -0
- package/dist/components/br-input.js +5 -0
- package/dist/components/br-item.d.ts +11 -0
- package/dist/components/br-item.js +5 -0
- package/dist/components/br-link.d.ts +11 -0
- package/dist/components/br-link.js +5 -0
- package/dist/components/br-list.d.ts +11 -0
- package/dist/components/br-list.js +5 -0
- package/dist/components/br-loading.d.ts +11 -0
- package/dist/components/br-loading.js +5 -0
- package/dist/components/br-magic-button.d.ts +11 -0
- package/dist/components/br-magic-button.js +5 -0
- package/dist/components/br-menu-group.d.ts +11 -0
- package/dist/components/br-menu-group.js +5 -0
- package/dist/components/br-menu-header.d.ts +11 -0
- package/dist/components/br-menu-header.js +5 -0
- package/dist/components/br-menu-info.d.ts +11 -0
- package/dist/components/br-menu-info.js +5 -0
- package/dist/components/br-menu-item.d.ts +11 -0
- package/dist/components/br-menu-item.js +5 -0
- package/dist/components/br-menu-link.d.ts +11 -0
- package/dist/components/br-menu-link.js +5 -0
- package/dist/components/br-menu-list.d.ts +11 -0
- package/dist/components/br-menu-list.js +5 -0
- package/dist/components/br-menu-logo.d.ts +11 -0
- package/dist/components/br-menu-logo.js +5 -0
- package/dist/components/br-menu-social.d.ts +11 -0
- package/dist/components/br-menu-social.js +5 -0
- package/dist/components/br-menu.d.ts +11 -0
- package/dist/components/br-menu.js +5 -0
- package/dist/components/br-message.d.ts +11 -0
- package/dist/components/br-message.js +5 -0
- package/dist/components/br-modal.d.ts +11 -0
- package/dist/components/br-modal.js +5 -0
- package/dist/components/br-notification-body.d.ts +11 -0
- package/dist/components/br-notification-body.js +5 -0
- package/dist/components/br-notification-header.d.ts +11 -0
- package/dist/components/br-notification-header.js +5 -0
- package/dist/components/br-notification-item.d.ts +11 -0
- package/dist/components/br-notification-item.js +5 -0
- package/dist/components/br-notification.d.ts +11 -0
- package/dist/components/br-notification.js +5 -0
- package/dist/components/br-pagination.d.ts +11 -0
- package/dist/components/br-pagination.js +5 -0
- package/dist/components/br-radio-group.d.ts +11 -0
- package/dist/components/br-radio-group.js +5 -0
- package/dist/components/br-radio.d.ts +11 -0
- package/dist/components/br-radio.js +5 -0
- package/dist/components/br-scrim.d.ts +11 -0
- package/dist/components/br-scrim.js +5 -0
- package/dist/components/br-select-input.d.ts +11 -0
- package/dist/components/br-select-input.js +5 -0
- package/dist/components/br-select-list.d.ts +11 -0
- package/dist/components/br-select-list.js +5 -0
- package/dist/components/br-select-option.d.ts +11 -0
- package/dist/components/br-select-option.js +5 -0
- package/dist/components/br-select.d.ts +11 -0
- package/dist/components/br-select.js +5 -0
- package/dist/components/br-sign-in.d.ts +11 -0
- package/dist/components/br-sign-in.js +5 -0
- package/dist/components/br-skip-link-item.d.ts +11 -0
- package/dist/components/br-skip-link-item.js +5 -0
- package/dist/components/br-skip-link.d.ts +11 -0
- package/dist/components/br-skip-link.js +5 -0
- package/dist/components/br-skiplink-item.d.ts +11 -0
- package/dist/components/br-skiplink-item.js +5 -0
- package/dist/components/br-slider.d.ts +11 -0
- package/dist/components/br-slider.js +5 -0
- package/dist/components/br-step-item.d.ts +11 -0
- package/dist/components/br-step-item.js +5 -0
- package/dist/components/br-step.d.ts +11 -0
- package/dist/components/br-step.js +5 -0
- package/dist/components/br-switch.d.ts +11 -0
- package/dist/components/br-switch.js +5 -0
- package/dist/components/br-tab-item.d.ts +11 -0
- package/dist/components/br-tab-item.js +5 -0
- package/dist/components/br-tab.d.ts +11 -0
- package/dist/components/br-tab.js +5 -0
- package/dist/components/br-table-body.d.ts +11 -0
- package/dist/components/br-table-body.js +5 -0
- package/dist/components/br-table-cell.d.ts +11 -0
- package/dist/components/br-table-cell.js +5 -0
- package/dist/components/br-table-header-cell.d.ts +11 -0
- package/dist/components/br-table-header-cell.js +5 -0
- package/dist/components/br-table-header.d.ts +11 -0
- package/dist/components/br-table-header.js +5 -0
- package/dist/components/br-table-row.d.ts +11 -0
- package/dist/components/br-table-row.js +5 -0
- package/dist/components/br-table.d.ts +11 -0
- package/dist/components/br-table.js +5 -0
- package/dist/components/br-tag.d.ts +11 -0
- package/dist/components/br-tag.js +5 -0
- package/dist/components/br-textarea.d.ts +11 -0
- package/dist/components/br-textarea.js +5 -0
- package/dist/components/br-time-picker.d.ts +11 -0
- package/dist/components/br-time-picker.js +5 -0
- package/dist/components/br-tooltip.d.ts +11 -0
- package/dist/components/br-tooltip.js +5 -0
- package/dist/components/br-upload.d.ts +11 -0
- package/dist/components/br-upload.js +5 -0
- package/dist/components/br-wizard-panel.d.ts +11 -0
- package/dist/components/br-wizard-panel.js +5 -0
- package/dist/components/br-wizard.d.ts +11 -0
- package/dist/components/br-wizard.js +5 -0
- package/dist/components/index.d.ts +213 -0
- package/dist/components/index.js +5 -0
- package/dist/components/p-0IYmyaTi.js +5 -0
- package/dist/components/p-41XwlWiS.js +5 -0
- package/dist/components/p-5z6jgH1D.js +5 -0
- package/dist/components/p-6OdfnwnK.js +5 -0
- package/dist/components/p-9S9bgUT0.js +5 -0
- package/dist/components/p-B-qLmYZC.js +5 -0
- package/dist/components/p-B-sbd1_h.js +5 -0
- package/dist/components/p-B55qsau4.js +5 -0
- package/dist/components/p-BC7f6MK8.js +5 -0
- package/dist/components/p-BPJpHGOW.js +5 -0
- package/dist/components/p-BW0_ORNA.js +5 -0
- package/dist/components/p-BWXfdbQH.js +5 -0
- package/dist/components/p-Bb-nLtTG.js +5 -0
- package/dist/components/p-BkS6ujyf.js +5 -0
- package/dist/components/p-Bm0ECvfB.js +5 -0
- package/dist/components/p-C1yRmdso.js +5 -0
- package/dist/components/p-C3LQSQpc.js +5 -0
- package/dist/components/p-C98-mHmV.js +5 -0
- package/dist/components/p-CDZFuUlU.js +5 -0
- package/dist/components/p-CRfi23Rd.js +5 -0
- package/dist/components/p-CUI5zWGf.js +5 -0
- package/dist/components/p-CXMwM9m4.js +5 -0
- package/dist/components/p-CdDwqbBv.js +5 -0
- package/dist/components/p-CxviDiCr.js +5 -0
- package/dist/components/p-D3usVJE2.js +16 -0
- package/dist/components/p-D6zroLx5.js +5 -0
- package/dist/components/p-D9SpD3Ay.js +5 -0
- package/dist/components/p-DA5GS53D.js +5 -0
- package/dist/components/p-DBP6K_aq.js +5 -0
- package/dist/components/p-DBmwzG9E.js +5 -0
- package/dist/components/p-DCrVo-8T.js +5 -0
- package/dist/components/p-DIK54tTj.js +5 -0
- package/dist/components/p-DQRSHR-D.js +5 -0
- package/dist/components/p-DRVMm1Py.js +5 -0
- package/dist/components/p-DWPmUV72.js +5 -0
- package/dist/components/p-DYA74R1r.js +5 -0
- package/dist/components/p-DYnkGWii.js +5 -0
- package/dist/components/p-D_CSvOY9.js +5 -0
- package/dist/components/p-DaeGwqw0.js +5 -0
- package/dist/components/p-Dkg2scYZ.js +5 -0
- package/dist/components/p-Dmfk7eEe.js +5 -0
- package/dist/components/p-DoXNfcTT.js +5 -0
- package/dist/components/p-DvrdmqoQ.js +5 -0
- package/dist/components/p-DxZJrIyL.js +5 -0
- package/dist/components/p-LmeJrLxH.js +5 -0
- package/dist/components/p-TFWd_UBV.js +5 -0
- package/dist/components/p-aF8bGN3t.js +5 -0
- package/dist/components/p-bhULC15U.js +5 -0
- package/dist/components/p-cF3ia5e9.js +5 -0
- package/dist/components/p-cfPt-vKA.js +5 -0
- package/dist/components/p-gvnfuTjd.js +5 -0
- package/dist/components/p-nJOJGpyl.js +5 -0
- package/dist/components/p-ttI0nvv_.js +5 -0
- package/dist/esm/app-globals-DVjNHTTs.js +7 -0
- package/dist/esm/br-avatar.entry.js +246 -0
- package/dist/esm/br-breadcrumb-item.entry.js +43 -0
- package/dist/esm/br-breadcrumb.entry.js +441 -0
- package/dist/esm/br-button_2.entry.js +277 -0
- package/dist/esm/br-card.entry.js +109 -0
- package/dist/esm/br-carousel-page.entry.js +78 -0
- package/dist/esm/br-carousel.entry.js +563 -0
- package/dist/esm/br-checkbox-group.entry.js +116 -0
- package/dist/esm/br-checkbox.entry.js +286 -0
- package/dist/esm/br-checkgroup.entry.js +18 -0
- package/dist/esm/br-collapse_2.entry.js +680 -0
- package/dist/esm/br-cookiebar-cookie.entry.js +81 -0
- package/dist/esm/br-cookiebar-group.entry.js +307 -0
- package/dist/esm/br-cookiebar-header.entry.js +37 -0
- package/dist/esm/br-cookiebar-link.entry.js +52 -0
- package/dist/esm/br-cookiebar-note-group.entry.js +68 -0
- package/dist/esm/br-cookiebar-note.entry.js +23 -0
- package/dist/esm/br-cookiebar.entry.js +756 -0
- package/dist/esm/br-crumb.entry.js +49 -0
- package/dist/esm/br-date-picker_3.entry.js +2442 -0
- package/dist/esm/br-datetime-picker.entry.js +1885 -0
- package/dist/esm/br-divider.entry.js +223 -0
- package/dist/esm/br-dropdown_2.entry.js +1853 -0
- package/dist/esm/br-footer-category.entry.js +100 -0
- package/dist/esm/br-footer-item.entry.js +50 -0
- package/dist/esm/br-footer-legal.entry.js +39 -0
- package/dist/esm/br-footer-logo.entry.js +102 -0
- package/dist/esm/br-footer-social.entry.js +69 -0
- package/dist/esm/br-footer.entry.js +90 -0
- package/dist/esm/br-header-function.entry.js +140 -0
- package/dist/esm/br-header-link.entry.js +58 -0
- package/dist/esm/br-header-list.entry.js +277 -0
- package/dist/esm/br-header-logo.entry.js +175 -0
- package/dist/esm/br-header.entry.js +640 -0
- package/dist/esm/br-icon.entry.js +483 -0
- package/dist/esm/br-input.entry.js +597 -0
- package/dist/esm/br-item.entry.js +354 -0
- package/dist/esm/br-link.entry.js +130 -0
- package/dist/esm/br-loading.entry.js +503 -0
- package/dist/esm/br-magic-button.entry.js +90 -0
- package/dist/esm/br-menu-group.entry.js +21 -0
- package/dist/esm/br-menu-header.entry.js +45 -0
- package/dist/esm/br-menu-info.entry.js +36 -0
- package/dist/esm/br-menu-item.entry.js +77 -0
- package/dist/esm/br-menu-link.entry.js +53 -0
- package/dist/esm/br-menu-list.entry.js +147 -0
- package/dist/esm/br-menu-logo.entry.js +73 -0
- package/dist/esm/br-menu-social.entry.js +63 -0
- package/dist/esm/br-menu.entry.js +991 -0
- package/dist/esm/br-modal.entry.js +494 -0
- package/dist/esm/br-notification-body.entry.js +69 -0
- package/dist/esm/br-notification-header.entry.js +46 -0
- package/dist/esm/br-notification-item.entry.js +108 -0
- package/dist/esm/br-notification.entry.js +332 -0
- package/dist/esm/br-pagination.entry.js +882 -0
- package/dist/esm/br-radio-group.entry.js +426 -0
- package/dist/esm/br-radio.entry.js +355 -0
- package/dist/esm/br-scrim.entry.js +1334 -0
- package/dist/esm/br-select-input_3.entry.js +950 -0
- package/dist/esm/br-sign-in.entry.js +123 -0
- package/dist/esm/br-skip-link-item.entry.js +18 -0
- package/dist/esm/br-skip-link.entry.js +360 -0
- package/dist/esm/br-skiplink-item.entry.js +190 -0
- package/dist/esm/br-slider.entry.js +686 -0
- package/dist/esm/br-step_2.entry.js +625 -0
- package/dist/esm/br-switch.entry.js +243 -0
- package/dist/esm/br-tab-item.entry.js +183 -0
- package/dist/esm/br-tab.entry.js +395 -0
- package/dist/esm/br-table-body.entry.js +35 -0
- package/dist/esm/br-table-cell.entry.js +182 -0
- package/dist/esm/br-table-header-cell.entry.js +171 -0
- package/dist/esm/br-table-header.entry.js +35 -0
- package/dist/esm/br-table-row.entry.js +79 -0
- package/dist/esm/br-table.entry.js +678 -0
- package/dist/esm/br-tag.entry.js +492 -0
- package/dist/esm/br-textarea.entry.js +304 -0
- package/dist/esm/br-tooltip.entry.js +625 -0
- package/dist/esm/br-upload.entry.js +580 -0
- package/dist/esm/br-wizard-panel.entry.js +52 -0
- package/dist/esm/br-wizard.entry.js +706 -0
- package/dist/esm/breakpoint-observer-DBmwzG9E.js +141 -0
- package/dist/esm/clamp-gvnfuTjd.js +23 -0
- package/dist/esm/cookiebar.utils-DYA74R1r.js +16 -0
- package/dist/esm/datetime-picker-constants-Bfm58jO6.js +3798 -0
- package/dist/esm/event-DFN_so7I.js +48 -0
- package/dist/esm/floating-surface-dismiss-BWXfdbQH.js +61 -0
- package/dist/esm/floating-ui-BavFwMnx.js +134 -0
- package/dist/esm/floating-ui.dom-DIK54tTj.js +1707 -0
- package/dist/esm/focus-DxZJrIyL.js +26 -0
- package/dist/esm/getNextElement-9S9bgUT0.js +28 -0
- package/dist/esm/iconify-icon-D3usVJE2.js +2303 -0
- package/dist/esm/id-BkS6ujyf.js +18 -0
- package/dist/esm/index-Bo-2igoO.js +671 -0
- package/dist/esm/index-C2RBydfd.js +3258 -0
- package/dist/esm/index.js +6 -0
- package/dist/esm/isNil-B-qLmYZC.js +17 -0
- package/dist/esm/isValid-DIUZX1qS.js +3684 -0
- package/dist/esm/loader.js +15 -0
- package/dist/esm/native-dialog-B55qsau4.js +46 -0
- package/dist/esm/navigation-bhULC15U.js +23 -0
- package/dist/esm/parts-Bb5vVlCC.js +17 -0
- package/dist/esm/props-DRVMm1Py.js +22 -0
- package/dist/esm/raf-batcher-cF3ia5e9.js +53 -0
- package/dist/esm/slot-BIG-yees.js +44 -0
- package/dist/esm/swipe-Dmfk7eEe.js +343 -0
- package/dist/esm/table-constants-CXMwM9m4.js +170 -0
- package/dist/esm/validator-D3tVP32U.js +113 -0
- package/dist/esm/webcomponents.js +46 -0
- package/dist/hydrate/index.d.ts +287 -0
- package/dist/hydrate/index.js +67323 -0
- package/dist/hydrate/index.mjs +67313 -0
- package/dist/hydrate/package.json +12 -0
- package/dist/index.cjs.js +1 -0
- package/dist/index.js +1 -0
- package/dist/loader/cdn.js +5 -0
- package/dist/loader/index.cjs.js +5 -0
- package/dist/loader/index.d.ts +24 -0
- package/dist/loader/index.es2017.js +5 -0
- package/dist/loader/index.js +6 -0
- package/dist/webcomponents/index.esm.js +5 -0
- package/dist/webcomponents/p-0196804a.entry.js +5 -0
- package/dist/webcomponents/p-0410186a.entry.js +5 -0
- package/dist/webcomponents/p-0415ef22.entry.js +5 -0
- package/dist/webcomponents/p-059c3d6c.entry.js +5 -0
- package/dist/webcomponents/p-0b8f39bc.entry.js +5 -0
- package/dist/webcomponents/p-0caa4d12.entry.js +5 -0
- package/dist/webcomponents/p-0d4f718d.entry.js +5 -0
- package/dist/webcomponents/p-0e84c9e8.entry.js +5 -0
- package/dist/webcomponents/p-12286e73.entry.js +5 -0
- package/dist/webcomponents/p-147ac8d3.entry.js +5 -0
- package/dist/webcomponents/p-1580beee.entry.js +5 -0
- package/dist/webcomponents/p-1b138f1c.entry.js +5 -0
- package/dist/webcomponents/p-1bca4499.entry.js +5 -0
- package/dist/webcomponents/p-1d6b0b6f.entry.js +5 -0
- package/dist/webcomponents/p-1d8cb8fd.entry.js +5 -0
- package/dist/webcomponents/p-22443c08.entry.js +5 -0
- package/dist/webcomponents/p-224daaac.entry.js +5 -0
- package/dist/webcomponents/p-28426d2a.entry.js +5 -0
- package/dist/webcomponents/p-2abd2da0.entry.js +5 -0
- package/dist/webcomponents/p-2fdc51ae.entry.js +5 -0
- package/dist/webcomponents/p-30c428b6.entry.js +5 -0
- package/dist/webcomponents/p-36bbea4e.entry.js +5 -0
- package/dist/webcomponents/p-3907ebfa.entry.js +5 -0
- package/dist/webcomponents/p-39a16f9d.entry.js +5 -0
- package/dist/webcomponents/p-3ebbd2f5.entry.js +5 -0
- package/dist/webcomponents/p-3ef7eac8.entry.js +5 -0
- package/dist/webcomponents/p-45356e9a.entry.js +5 -0
- package/dist/webcomponents/p-46513db4.entry.js +5 -0
- package/dist/webcomponents/p-4fe12a72.entry.js +5 -0
- package/dist/webcomponents/p-52df61cb.entry.js +5 -0
- package/dist/webcomponents/p-569134cf.entry.js +5 -0
- package/dist/webcomponents/p-5b257a4b.entry.js +5 -0
- package/dist/webcomponents/p-5ce7db4a.entry.js +5 -0
- package/dist/webcomponents/p-5f373708.entry.js +5 -0
- package/dist/webcomponents/p-5f6afb79.entry.js +5 -0
- package/dist/webcomponents/p-5fc7ba4c.entry.js +5 -0
- package/dist/webcomponents/p-60cc820c.entry.js +5 -0
- package/dist/webcomponents/p-66006312.entry.js +5 -0
- package/dist/webcomponents/p-66b13fd9.entry.js +5 -0
- package/dist/webcomponents/p-6OdfnwnK.js +5 -0
- package/dist/webcomponents/p-6c5f6cb6.entry.js +5 -0
- package/dist/webcomponents/p-6f1c4425.entry.js +5 -0
- package/dist/webcomponents/p-750799b7.entry.js +5 -0
- package/dist/webcomponents/p-756ff2ad.entry.js +5 -0
- package/dist/webcomponents/p-765bfe27.entry.js +5 -0
- package/dist/webcomponents/p-7ab96c11.entry.js +5 -0
- package/dist/webcomponents/p-7c2ff8b4.entry.js +5 -0
- package/dist/webcomponents/p-7cf9f4e5.entry.js +5 -0
- package/dist/webcomponents/p-7e1856e4.entry.js +5 -0
- package/dist/webcomponents/p-7f7506f0.entry.js +5 -0
- package/dist/webcomponents/p-7fb03a49.entry.js +5 -0
- package/dist/webcomponents/p-82200563.entry.js +5 -0
- package/dist/webcomponents/p-85f8063b.entry.js +5 -0
- package/dist/webcomponents/p-8b558233.entry.js +5 -0
- package/dist/webcomponents/p-8e6c2767.entry.js +5 -0
- package/dist/webcomponents/p-966ad32f.entry.js +5 -0
- package/dist/webcomponents/p-9679d230.entry.js +5 -0
- package/dist/webcomponents/p-96dd663b.entry.js +5 -0
- package/dist/webcomponents/p-98843fa3.entry.js +5 -0
- package/dist/webcomponents/p-9S9bgUT0.js +5 -0
- package/dist/webcomponents/p-9a375eff.entry.js +5 -0
- package/dist/webcomponents/p-9b358cff.entry.js +5 -0
- package/dist/webcomponents/p-9f7558c7.entry.js +5 -0
- package/dist/webcomponents/p-B-qLmYZC.js +5 -0
- package/dist/webcomponents/p-B55qsau4.js +5 -0
- package/dist/webcomponents/p-BIG-yees.js +5 -0
- package/dist/webcomponents/p-BWXfdbQH.js +5 -0
- package/dist/webcomponents/p-Bb5vVlCC.js +5 -0
- package/dist/webcomponents/p-Bfm58jO6.js +5 -0
- package/dist/webcomponents/p-BhMVJQ4-.js +5 -0
- package/dist/webcomponents/p-BkS6ujyf.js +5 -0
- package/dist/webcomponents/p-C2RBydfd.js +6 -0
- package/dist/webcomponents/p-CO5cOQQU.js +5 -0
- package/dist/webcomponents/p-CXMwM9m4.js +5 -0
- package/dist/webcomponents/p-D3tVP32U.js +5 -0
- package/dist/webcomponents/p-D3usVJE2.js +16 -0
- package/dist/webcomponents/p-DBmwzG9E.js +5 -0
- package/dist/webcomponents/p-DFN_so7I.js +5 -0
- package/dist/webcomponents/p-DIK54tTj.js +5 -0
- package/dist/webcomponents/p-DRVMm1Py.js +5 -0
- package/dist/webcomponents/p-DVjNHTTs.js +5 -0
- package/dist/webcomponents/p-DYA74R1r.js +5 -0
- package/dist/webcomponents/p-Dmfk7eEe.js +5 -0
- package/dist/webcomponents/p-DxZJrIyL.js +5 -0
- package/dist/webcomponents/p-a382e115.entry.js +5 -0
- package/dist/webcomponents/p-a9ff7c25.entry.js +5 -0
- package/dist/webcomponents/p-bba9fc09.entry.js +5 -0
- package/dist/webcomponents/p-bhULC15U.js +5 -0
- package/dist/webcomponents/p-c0b0f531.entry.js +5 -0
- package/dist/webcomponents/p-c211af17.entry.js +5 -0
- package/dist/webcomponents/p-c492d926.entry.js +5 -0
- package/dist/webcomponents/p-c4cfe599.entry.js +5 -0
- package/dist/webcomponents/p-c846e784.entry.js +5 -0
- package/dist/webcomponents/p-cF3ia5e9.js +5 -0
- package/dist/webcomponents/p-cedb8eea.entry.js +5 -0
- package/dist/webcomponents/p-d1e899cd.entry.js +5 -0
- package/dist/webcomponents/p-d38d82cc.entry.js +5 -0
- package/dist/webcomponents/p-dba376cb.entry.js +5 -0
- package/dist/webcomponents/p-e0ce536a.entry.js +5 -0
- package/dist/webcomponents/p-e1331288.entry.js +5 -0
- package/dist/webcomponents/p-e360a463.entry.js +5 -0
- package/dist/webcomponents/p-e80a1eb0.entry.js +5 -0
- package/dist/webcomponents/p-f078f972.entry.js +5 -0
- package/dist/webcomponents/p-f6318e94.entry.js +5 -0
- package/dist/webcomponents/p-fcd4ae48.entry.js +5 -0
- package/dist/webcomponents/p-gvnfuTjd.js +5 -0
- package/dist/webcomponents/webcomponents.esm.js +5 -0
- package/package.json +1 -1
- package/cem/.gitkeep +0 -0
|
@@ -0,0 +1,1030 @@
|
|
|
1
|
+
/*!
|
|
2
|
+
* Construído por SERPRO
|
|
3
|
+
* © https://serpro.gov.br/ - MIT License.
|
|
4
|
+
*/
|
|
5
|
+
import { Host, h } from "@stencil/core";
|
|
6
|
+
import { generateUniqueId } from "../../shared/utils/id";
|
|
7
|
+
import { COLUMN_WIDTH_MAP, COLUMN_WIDTH_SEMANTICS, TABLE_ALIGNMENT, TABLE_ALIGNMENT_MAP, TABLE_DENSITY, TABLE_DENSITY_MAP, TABLE_DIVIDER_STYLE, TABLE_DIVIDER_STYLE_MAP, TABLE_OVERFLOW, TABLE_OVERFLOW_MAP, TABLE_TOOLTIP_STATE, } from "./table-constants";
|
|
8
|
+
import { TABLE_TOKENS } from "./table-tokens";
|
|
9
|
+
import { positiveFrValidator, positivePxValidator, resolveTokenValue } from "./table-utils";
|
|
10
|
+
/**
|
|
11
|
+
* ## Design System
|
|
12
|
+
*
|
|
13
|
+
* Tabela baseada em CSS Grid com controle via tokens.
|
|
14
|
+
*
|
|
15
|
+
* A tabela é composta de vários subcomponentes, incluindo:
|
|
16
|
+
* - br-table-header: Define o cabeçalho da tabela, agrupando as linhas de cabeçalho.
|
|
17
|
+
* - br-table-row: Representa uma linha da tabela, podendo conter células de conteúdo ou células de cabeçalho.
|
|
18
|
+
* - br-table-header-cell: Representa uma célula de cabeçalho, permitindo a definição de propriedades como largura e alinhamento que podem ser herdadas pelas células de conteúdo associadas.
|
|
19
|
+
* - br-table-cell: Representa uma célula de conteúdo da tabela, onde os dados são inseridos.
|
|
20
|
+
* - br-table-body: Agrupa as linhas de conteúdo da tabela, representadas pelo subcomponente br-table-row.
|
|
21
|
+
*
|
|
22
|
+
* @remarks
|
|
23
|
+
* 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/table?tab=designer).
|
|
24
|
+
*
|
|
25
|
+
* @category Dados
|
|
26
|
+
* @status stable
|
|
27
|
+
* @Slot header: Área para inclusão do subcomponente br-table-header
|
|
28
|
+
* @Slot body: Área para inclusão do subcomponente br-table-body
|
|
29
|
+
* @slot loading - Indicador exibido enquanto as linhas são atualizadas.
|
|
30
|
+
*
|
|
31
|
+
* @part container - Wrapper principal da tabela.
|
|
32
|
+
* @part content - Área de conteúdo que contém header e body.
|
|
33
|
+
* @part loading - Área do indicador de carregamento.
|
|
34
|
+
*/
|
|
35
|
+
export class Table {
|
|
36
|
+
constructor() {
|
|
37
|
+
/**
|
|
38
|
+
* Ativa divisores verticais entre colunas.
|
|
39
|
+
*
|
|
40
|
+
* @default false
|
|
41
|
+
* @deprecated Use `columnDivider`.
|
|
42
|
+
*/
|
|
43
|
+
this.hasColumnDivider = false;
|
|
44
|
+
/**
|
|
45
|
+
* Ativa divisores horizontais entre linhas.
|
|
46
|
+
*
|
|
47
|
+
* @default false
|
|
48
|
+
* @deprecated Use `rowDivider`.
|
|
49
|
+
*/
|
|
50
|
+
this.hasRowDivider = false;
|
|
51
|
+
/**
|
|
52
|
+
* Define o comportamento de overflow para as células.
|
|
53
|
+
*
|
|
54
|
+
* @remarks Valores aceitos:
|
|
55
|
+
* - truncate
|
|
56
|
+
* - wrap
|
|
57
|
+
*
|
|
58
|
+
* Observação:
|
|
59
|
+
* - O overflow é independente de `columnWidth`.
|
|
60
|
+
* - Com `columnWidth="content"`, a coluna tende a crescer com o conteúdo (`max-content`), o que pode reduzir casos visíveis de truncagem.
|
|
61
|
+
* - Com `columnWidth="fill"`, a coluna ocupa o espaço disponível (`1fr`), então a truncagem tende a ficar mais evidente quando não há espaço suficiente.
|
|
62
|
+
*
|
|
63
|
+
* @default wrap
|
|
64
|
+
*/
|
|
65
|
+
this.overflow = TABLE_OVERFLOW.WRAP;
|
|
66
|
+
/**
|
|
67
|
+
* Define o estado semântico do tooltip nas células da tabela.
|
|
68
|
+
*
|
|
69
|
+
* @remarks Valores aceitos:
|
|
70
|
+
* - info
|
|
71
|
+
* - warning
|
|
72
|
+
* - danger
|
|
73
|
+
* - success
|
|
74
|
+
*
|
|
75
|
+
* @default info
|
|
76
|
+
*/
|
|
77
|
+
this.tooltipState = TABLE_TOOLTIP_STATE.INFO;
|
|
78
|
+
/**
|
|
79
|
+
* Indica que as linhas estão sendo atualizadas pelo consumidor.
|
|
80
|
+
* O componente mantém o conteúdo anterior, aplica `aria-busy="true"` e
|
|
81
|
+
* exibe o slot `loading` sobre os dados; transporte, erro e substituição das
|
|
82
|
+
* linhas ficam sob responsabilidade da aplicação.
|
|
83
|
+
* A prop pode ser alterada diretamente ou pelos métodos `startLoading()` e
|
|
84
|
+
* `stopLoading()`.
|
|
85
|
+
* @default false
|
|
86
|
+
*/
|
|
87
|
+
this.loading = false;
|
|
88
|
+
this.headers = [];
|
|
89
|
+
this.rows = [];
|
|
90
|
+
this.cells = [];
|
|
91
|
+
this.rowCells = new Map();
|
|
92
|
+
this.columnIndexes = new Map();
|
|
93
|
+
this.structureReady = false;
|
|
94
|
+
this.structureRefreshFrame = null;
|
|
95
|
+
this.handleColumnWidthEvent = () => {
|
|
96
|
+
this.scheduleStructureRefresh();
|
|
97
|
+
};
|
|
98
|
+
this.handleAlignmentEvent = (event) => {
|
|
99
|
+
if (!this.structureReady) {
|
|
100
|
+
this.scheduleStructureRefresh();
|
|
101
|
+
return;
|
|
102
|
+
}
|
|
103
|
+
this.updateAlignmentForTarget(event.target);
|
|
104
|
+
};
|
|
105
|
+
this.handleOverflowEvent = (event) => {
|
|
106
|
+
if (!this.structureReady) {
|
|
107
|
+
this.scheduleStructureRefresh();
|
|
108
|
+
return;
|
|
109
|
+
}
|
|
110
|
+
this.updateOverflowForTarget(event.target);
|
|
111
|
+
};
|
|
112
|
+
this.generatedHeaderPrefix = generateUniqueId();
|
|
113
|
+
/**
|
|
114
|
+
* Recalcula estrutura, tokens e metadados de acessibilidade quando há mudança de slots.
|
|
115
|
+
*/
|
|
116
|
+
this.handleStructureChange = () => {
|
|
117
|
+
this.scheduleStructureRefresh();
|
|
118
|
+
};
|
|
119
|
+
}
|
|
120
|
+
/**
|
|
121
|
+
* Reaplica a largura das colunas quando alterada.
|
|
122
|
+
*/
|
|
123
|
+
handleTableColumnWidthChange() {
|
|
124
|
+
this.updateColumnWidths();
|
|
125
|
+
}
|
|
126
|
+
/**
|
|
127
|
+
* Reaplica o token de densidade quando alterado.
|
|
128
|
+
*/
|
|
129
|
+
handleDensityChange() {
|
|
130
|
+
this.applyDensity();
|
|
131
|
+
}
|
|
132
|
+
/**
|
|
133
|
+
* Atualiza os tokens de divisor quando qualquer propriedade relacionada é alterada.
|
|
134
|
+
*/
|
|
135
|
+
handleDividerChange() {
|
|
136
|
+
this.applyDividers();
|
|
137
|
+
}
|
|
138
|
+
/**
|
|
139
|
+
* Atualiza os tokens de alinhamento quando alterados.
|
|
140
|
+
*/
|
|
141
|
+
handleAlignmentChange() {
|
|
142
|
+
this.updateAllCellAlignments();
|
|
143
|
+
}
|
|
144
|
+
/**
|
|
145
|
+
* Atualiza os tokens de overflow quando a propriedade é alterada.
|
|
146
|
+
*/
|
|
147
|
+
handleOverflowChange() {
|
|
148
|
+
this.updateAllCellOverflow();
|
|
149
|
+
}
|
|
150
|
+
/**
|
|
151
|
+
* Ciclo de vida do componente que é chamado após o componente ser carregado no DOM.
|
|
152
|
+
* Inicializa os tokens visuais após a montagem do componente.
|
|
153
|
+
*/
|
|
154
|
+
componentDidLoad() {
|
|
155
|
+
this.refreshStructure();
|
|
156
|
+
this.applyDensity();
|
|
157
|
+
this.applyDividers();
|
|
158
|
+
// garante cálculo inicial após filhos renderizarem
|
|
159
|
+
queueMicrotask(() => {
|
|
160
|
+
this.updateColumnWidths();
|
|
161
|
+
this.updateAllCellAlignments();
|
|
162
|
+
this.updateAllCellOverflow();
|
|
163
|
+
this.applyAriaMetadata();
|
|
164
|
+
});
|
|
165
|
+
}
|
|
166
|
+
connectedCallback() {
|
|
167
|
+
this.el.addEventListener('brColumnWidthChange', this.handleColumnWidthEvent);
|
|
168
|
+
this.el.addEventListener('brAlignmentChange', this.handleAlignmentEvent);
|
|
169
|
+
this.el.addEventListener('brOverflowChange', this.handleOverflowEvent);
|
|
170
|
+
}
|
|
171
|
+
disconnectedCallback() {
|
|
172
|
+
this.el.removeEventListener('brColumnWidthChange', this.handleColumnWidthEvent);
|
|
173
|
+
this.el.removeEventListener('brAlignmentChange', this.handleAlignmentEvent);
|
|
174
|
+
this.el.removeEventListener('brOverflowChange', this.handleOverflowEvent);
|
|
175
|
+
if (this.structureRefreshFrame !== null) {
|
|
176
|
+
cancelAnimationFrame(this.structureRefreshFrame);
|
|
177
|
+
this.structureRefreshFrame = null;
|
|
178
|
+
}
|
|
179
|
+
}
|
|
180
|
+
/** Inicia o estado de carregamento da tabela. */
|
|
181
|
+
async startLoading() {
|
|
182
|
+
this.loading = true;
|
|
183
|
+
}
|
|
184
|
+
/** Interrompe o estado de carregamento da tabela. */
|
|
185
|
+
async stopLoading() {
|
|
186
|
+
this.loading = false;
|
|
187
|
+
}
|
|
188
|
+
/**
|
|
189
|
+
* Marca a última linha e a última coluna para permitir estilização condicional.
|
|
190
|
+
*/
|
|
191
|
+
refreshStructure() {
|
|
192
|
+
this.headers = Array.from(this.el.querySelectorAll('br-table-header-cell'));
|
|
193
|
+
this.rows = Array.from(this.el.querySelectorAll('br-table-row'));
|
|
194
|
+
this.cells = [...this.headers, ...Array.from(this.el.querySelectorAll('br-table-cell'))];
|
|
195
|
+
this.rowCells.clear();
|
|
196
|
+
this.columnIndexes.clear();
|
|
197
|
+
const columnCount = this.headers.length;
|
|
198
|
+
this.headers.forEach((column, columnIndex) => {
|
|
199
|
+
if (!(column instanceof HTMLElement))
|
|
200
|
+
return;
|
|
201
|
+
const isLastColumn = columnIndex === columnCount - 1;
|
|
202
|
+
column.toggleAttribute('data-last-column', isLastColumn);
|
|
203
|
+
this.columnIndexes.set(column, columnIndex);
|
|
204
|
+
});
|
|
205
|
+
this.rows.forEach((row, rowIndex) => {
|
|
206
|
+
const isLastRow = rowIndex === this.rows.length - 1;
|
|
207
|
+
const rowCells = Array.from(row.querySelectorAll('br-table-cell, br-table-header-cell'));
|
|
208
|
+
this.rowCells.set(row, rowCells);
|
|
209
|
+
rowCells.forEach((cell, columnIndex) => {
|
|
210
|
+
if (!(cell instanceof HTMLElement))
|
|
211
|
+
return;
|
|
212
|
+
const isLastColumn = columnIndex === columnCount - 1;
|
|
213
|
+
cell.toggleAttribute('data-last-row', isLastRow);
|
|
214
|
+
cell.toggleAttribute('data-last-column', isLastColumn);
|
|
215
|
+
this.columnIndexes.set(cell, columnIndex);
|
|
216
|
+
});
|
|
217
|
+
});
|
|
218
|
+
this.structureReady = true;
|
|
219
|
+
}
|
|
220
|
+
scheduleStructureRefresh() {
|
|
221
|
+
if (this.structureRefreshFrame !== null)
|
|
222
|
+
return;
|
|
223
|
+
this.structureRefreshFrame = requestAnimationFrame(() => {
|
|
224
|
+
this.structureRefreshFrame = null;
|
|
225
|
+
this.refreshStructure();
|
|
226
|
+
this.updateColumnWidths();
|
|
227
|
+
this.updateAllCellAlignments();
|
|
228
|
+
this.updateAllCellOverflow();
|
|
229
|
+
this.applyAriaMetadata();
|
|
230
|
+
});
|
|
231
|
+
}
|
|
232
|
+
/**
|
|
233
|
+
* Atualiza a largura das colunas com base nos cabeçalhos.
|
|
234
|
+
* @returns void
|
|
235
|
+
*/
|
|
236
|
+
updateColumnWidths() {
|
|
237
|
+
const headers = this.getHeaderCells();
|
|
238
|
+
if (headers.length === 0)
|
|
239
|
+
return;
|
|
240
|
+
const template = this.buildGridTemplate(headers);
|
|
241
|
+
this.applyGridTemplate(template);
|
|
242
|
+
}
|
|
243
|
+
/**
|
|
244
|
+
* Constrói o template de grid para a tabela com base nos cabeçalhos.
|
|
245
|
+
* @param headers Os elementos de cabeçalho da tabela.
|
|
246
|
+
* @returns Uma string representando o template de grid CSS.
|
|
247
|
+
*/
|
|
248
|
+
buildGridTemplate(headers) {
|
|
249
|
+
const tableWidth = this.resolveTableColumnWidth();
|
|
250
|
+
const columnWidths = headers.map((header) => this.resolveColumnWidth(header, tableWidth));
|
|
251
|
+
return columnWidths.join(' ');
|
|
252
|
+
}
|
|
253
|
+
/**
|
|
254
|
+
* Resolve a largura de uma coluna específica com base no cabeçalho e na largura global da tabela.
|
|
255
|
+
*/
|
|
256
|
+
resolveTableColumnWidth() {
|
|
257
|
+
return this.resolveWidthToken(this.columnWidth, COLUMN_WIDTH_MAP[COLUMN_WIDTH_SEMANTICS.FILL]);
|
|
258
|
+
}
|
|
259
|
+
/**
|
|
260
|
+
* Resolve a largura de uma coluna específica com base no cabeçalho e na largura global da tabela.
|
|
261
|
+
* @param header O elemento de cabeçalho da coluna.
|
|
262
|
+
* @param fallback A largura de fallback a ser usada caso o cabeçalho não defina uma largura.
|
|
263
|
+
* @returns A largura resolvida da coluna.
|
|
264
|
+
*/
|
|
265
|
+
resolveColumnWidth(header, fallback) {
|
|
266
|
+
const headerWidth = header.getAttribute('column-width');
|
|
267
|
+
return this.resolveWidthToken(headerWidth, fallback);
|
|
268
|
+
}
|
|
269
|
+
/**
|
|
270
|
+
* Aplica o template de grid à tabela definindo a propriedade CSS customizada correspondente.
|
|
271
|
+
* @param raw O template de grid bruto a ser aplicado.
|
|
272
|
+
* @param fallback O template de grid de fallback a ser usado caso o valor bruto seja inválido.
|
|
273
|
+
* @return void
|
|
274
|
+
*/
|
|
275
|
+
resolveWidthToken(raw, fallback) {
|
|
276
|
+
return resolveTokenValue(raw ?? undefined, {
|
|
277
|
+
fallback,
|
|
278
|
+
semanticMap: COLUMN_WIDTH_MAP,
|
|
279
|
+
validators: [positivePxValidator, positiveFrValidator],
|
|
280
|
+
});
|
|
281
|
+
}
|
|
282
|
+
/**
|
|
283
|
+
* Aplica o template de grid à tabela definindo a propriedade CSS customizada correspondente.
|
|
284
|
+
* @param template O template de grid a ser aplicado.
|
|
285
|
+
*/
|
|
286
|
+
applyGridTemplate(template) {
|
|
287
|
+
this.el.style.setProperty(TABLE_TOKENS.COLUMN_WIDTHS, template);
|
|
288
|
+
}
|
|
289
|
+
/**
|
|
290
|
+
* Atualiza o alinhamento de todas as células da tabela com base nos tokens de alinhamento.
|
|
291
|
+
*/
|
|
292
|
+
updateAllCellAlignments() {
|
|
293
|
+
const cells = this.getAllCells();
|
|
294
|
+
cells.forEach((cell) => {
|
|
295
|
+
this.updateAlignmentForCell(cell);
|
|
296
|
+
});
|
|
297
|
+
}
|
|
298
|
+
/**
|
|
299
|
+
* Atualiza o alinhamento de uma célula específica com base nos tokens de alinhamento.
|
|
300
|
+
* @param cell A célula a ser atualizada.
|
|
301
|
+
*/
|
|
302
|
+
updateAlignmentForCell(cell) {
|
|
303
|
+
const horizontal = this.resolveHorizontalAlignmentForCell(cell);
|
|
304
|
+
const vertical = this.resolveVerticalAlignmentForCell(cell);
|
|
305
|
+
cell.style.setProperty(TABLE_TOKENS.HORIZONTAL_ALIGNMENT, horizontal);
|
|
306
|
+
cell.style.setProperty(TABLE_TOKENS.VERTICAL_ALIGNMENT, vertical);
|
|
307
|
+
}
|
|
308
|
+
/**
|
|
309
|
+
* Resolve o alinhamento horizontal de uma célula específica com base nos tokens de alinhamento.
|
|
310
|
+
* @param cell A célula a ser avaliada.
|
|
311
|
+
* @returns O valor do token de alinhamento horizontal resolvido.
|
|
312
|
+
*/
|
|
313
|
+
resolveHorizontalAlignmentForCell(cell) {
|
|
314
|
+
// Cell
|
|
315
|
+
const cellValue = cell.getAttribute('horizontal-alignment');
|
|
316
|
+
if (cellValue !== null)
|
|
317
|
+
return this.resolveAlignmentToken(cellValue);
|
|
318
|
+
// Row
|
|
319
|
+
const row = cell.closest('br-table-row');
|
|
320
|
+
const rowValue = row?.getAttribute('horizontal-alignment');
|
|
321
|
+
if (rowValue !== null)
|
|
322
|
+
return this.resolveAlignmentToken(rowValue);
|
|
323
|
+
// Column (header)
|
|
324
|
+
const columnValue = this.getColumnAlignment(cell, 'horizontal-alignment');
|
|
325
|
+
if (columnValue !== null)
|
|
326
|
+
return this.resolveAlignmentToken(columnValue);
|
|
327
|
+
// Table
|
|
328
|
+
if (this.horizontalAlignment !== undefined)
|
|
329
|
+
return this.resolveAlignmentToken(this.horizontalAlignment);
|
|
330
|
+
// Fallback
|
|
331
|
+
return TABLE_ALIGNMENT_MAP[TABLE_ALIGNMENT.START];
|
|
332
|
+
}
|
|
333
|
+
/**
|
|
334
|
+
* Resolve o alinhamento vertical de uma célula específica com base nos tokens de alinhamento.
|
|
335
|
+
* @param cell A célula a ser avaliada.
|
|
336
|
+
* @returns O valor do token de alinhamento vertical resolvido.
|
|
337
|
+
*/
|
|
338
|
+
resolveVerticalAlignmentForCell(cell) {
|
|
339
|
+
const cellValue = cell.getAttribute('vertical-alignment');
|
|
340
|
+
if (cellValue !== null)
|
|
341
|
+
return this.resolveAlignmentToken(cellValue);
|
|
342
|
+
const row = cell.closest('br-table-row');
|
|
343
|
+
const rowValue = row?.getAttribute('vertical-alignment');
|
|
344
|
+
if (rowValue !== null)
|
|
345
|
+
return this.resolveAlignmentToken(rowValue);
|
|
346
|
+
const columnValue = this.getColumnAlignment(cell, 'vertical-alignment');
|
|
347
|
+
if (columnValue !== null)
|
|
348
|
+
return this.resolveAlignmentToken(columnValue);
|
|
349
|
+
if (this.verticalAlignment !== undefined)
|
|
350
|
+
return this.resolveAlignmentToken(this.verticalAlignment);
|
|
351
|
+
return TABLE_ALIGNMENT_MAP[TABLE_ALIGNMENT.START];
|
|
352
|
+
}
|
|
353
|
+
/**
|
|
354
|
+
* Resolve um valor de token de alinhamento com base no valor bruto e no mapeamento semântico definido.
|
|
355
|
+
* @param value O valor bruto do token de alinhamento a ser resolvido.
|
|
356
|
+
* @returns O valor do token de alinhamento resolvido, ou o valor de fallback se o valor bruto for inválido.
|
|
357
|
+
*/
|
|
358
|
+
resolveAlignmentToken(value) {
|
|
359
|
+
return resolveTokenValue(value ?? undefined, {
|
|
360
|
+
fallback: TABLE_ALIGNMENT_MAP[TABLE_ALIGNMENT.START],
|
|
361
|
+
semanticMap: TABLE_ALIGNMENT_MAP,
|
|
362
|
+
});
|
|
363
|
+
}
|
|
364
|
+
/**
|
|
365
|
+
* Retorna o valor do atributo de alinhamento de uma coluna específica.
|
|
366
|
+
* @param cell A célula para a qual o alinhamento da coluna deve ser obtido.
|
|
367
|
+
* @param attribute O atributo de alinhamento a ser obtido ('horizontal-alignment' ou 'vertical-alignment').
|
|
368
|
+
* @returns O valor do atributo de alinhamento da coluna, ou null se não estiver definido.
|
|
369
|
+
*/
|
|
370
|
+
getColumnAlignment(cell, attribute) {
|
|
371
|
+
const columnIndex = this.getColumnIndex(cell);
|
|
372
|
+
if (columnIndex === -1)
|
|
373
|
+
return null;
|
|
374
|
+
const headers = this.getHeaderCells();
|
|
375
|
+
const header = headers[columnIndex];
|
|
376
|
+
return header?.getAttribute(attribute) ?? null;
|
|
377
|
+
}
|
|
378
|
+
/**
|
|
379
|
+
* Obtém o índice da coluna para uma célula específica, permitindo a associação entre células e seus respectivos cabeçalhos para herança de propriedades como alinhamento e largura.
|
|
380
|
+
* @param cell A célula para a qual o índice da coluna deve ser obtido.
|
|
381
|
+
* @returns O índice da coluna correspondente à célula, ou -1 se a célula não estiver dentro de uma linha válida.
|
|
382
|
+
*/
|
|
383
|
+
getColumnIndex(cell) {
|
|
384
|
+
return this.columnIndexes.get(cell) ?? -1;
|
|
385
|
+
}
|
|
386
|
+
/**
|
|
387
|
+
* Constrói o template de grid para a tabela com base nos cabeçalhos.
|
|
388
|
+
* @return Array de larguras de coluna resolvidas.
|
|
389
|
+
*/
|
|
390
|
+
getHeaderCells() {
|
|
391
|
+
return this.headers;
|
|
392
|
+
}
|
|
393
|
+
/**
|
|
394
|
+
* Obtém todas as células (tanto de corpo quanto de cabeçalho) da tabela, permitindo a aplicação de estilos e tokens de forma abrangente.
|
|
395
|
+
* @returns Um array contendo todas as células da tabela.
|
|
396
|
+
*/
|
|
397
|
+
getAllCells() {
|
|
398
|
+
return this.cells;
|
|
399
|
+
}
|
|
400
|
+
/**
|
|
401
|
+
* Aplica metadados ARIA para melhorar a navegação por leitores de tela.
|
|
402
|
+
*/
|
|
403
|
+
applyAriaMetadata() {
|
|
404
|
+
const rows = this.rows;
|
|
405
|
+
const headers = this.getHeaderCells();
|
|
406
|
+
this.el.setAttribute('aria-colcount', String(headers.length));
|
|
407
|
+
this.el.setAttribute('aria-rowcount', String(rows.length));
|
|
408
|
+
rows.forEach((row, rowIndex) => {
|
|
409
|
+
row.setAttribute('aria-rowindex', String(rowIndex + 1));
|
|
410
|
+
});
|
|
411
|
+
headers.forEach((header, headerIndex) => {
|
|
412
|
+
const colIndex = String(headerIndex + 1);
|
|
413
|
+
const headerId = header.id || `${this.generatedHeaderPrefix}-${headerIndex + 1}`;
|
|
414
|
+
header.id = headerId;
|
|
415
|
+
header.setAttribute('aria-colindex', colIndex);
|
|
416
|
+
});
|
|
417
|
+
const bodyCells = this.cells.filter((cell) => cell.tagName === 'BR-TABLE-CELL');
|
|
418
|
+
bodyCells.forEach((cell) => {
|
|
419
|
+
const columnIndex = this.getColumnIndex(cell);
|
|
420
|
+
if (columnIndex === -1)
|
|
421
|
+
return;
|
|
422
|
+
const colIndex = String(columnIndex + 1);
|
|
423
|
+
const header = headers[columnIndex];
|
|
424
|
+
cell.setAttribute('aria-colindex', colIndex);
|
|
425
|
+
if (header !== undefined && header.id !== '') {
|
|
426
|
+
cell.setAttribute('aria-labelledby', header.id);
|
|
427
|
+
}
|
|
428
|
+
});
|
|
429
|
+
}
|
|
430
|
+
/**
|
|
431
|
+
* Atualiza os tokens de overflow para todas as células da tabela, garantindo que as mudanças na propriedade de overflow sejam refletidas dinamicamente em todas as células, controlando o comportamento de overflow, text-overflow e white-space conforme definido no token.
|
|
432
|
+
*/
|
|
433
|
+
updateAllCellOverflow() {
|
|
434
|
+
this.getAllCells().forEach((cell) => {
|
|
435
|
+
this.updateOverflowForCell(cell);
|
|
436
|
+
});
|
|
437
|
+
}
|
|
438
|
+
updateAlignmentForTarget(target) {
|
|
439
|
+
if (target === null || !this.el.contains(target))
|
|
440
|
+
return;
|
|
441
|
+
if (target.tagName === 'BR-TABLE-CELL' || target.tagName === 'BR-TABLE-HEADER-CELL') {
|
|
442
|
+
this.updateAlignmentForCell(target);
|
|
443
|
+
return;
|
|
444
|
+
}
|
|
445
|
+
if (target.tagName === 'BR-TABLE-ROW') {
|
|
446
|
+
this.rowCells.get(target)?.forEach((cell) => {
|
|
447
|
+
this.updateAlignmentForCell(cell);
|
|
448
|
+
});
|
|
449
|
+
return;
|
|
450
|
+
}
|
|
451
|
+
this.updateAllCellAlignments();
|
|
452
|
+
}
|
|
453
|
+
updateOverflowForTarget(target) {
|
|
454
|
+
if (target === null || !this.el.contains(target))
|
|
455
|
+
return;
|
|
456
|
+
if (target.tagName === 'BR-TABLE-CELL' || target.tagName === 'BR-TABLE-HEADER-CELL') {
|
|
457
|
+
this.updateOverflowForCell(target);
|
|
458
|
+
return;
|
|
459
|
+
}
|
|
460
|
+
if (target.tagName === 'BR-TABLE-ROW') {
|
|
461
|
+
this.rowCells.get(target)?.forEach((cell) => {
|
|
462
|
+
this.updateOverflowForCell(cell);
|
|
463
|
+
});
|
|
464
|
+
return;
|
|
465
|
+
}
|
|
466
|
+
this.updateAllCellOverflow();
|
|
467
|
+
}
|
|
468
|
+
/**
|
|
469
|
+
* Atualiza os tokens de overflow para uma célula específica, controlando o comportamento de overflow, text-overflow e white-space com base na resolução do token de overflow para a célula, que considera atributos específicos da célula, da linha, da coluna e da tabela para determinar o comportamento final de overflow a ser aplicado.
|
|
470
|
+
* @param cell A célula para a qual os tokens de overflow devem ser atualizados.
|
|
471
|
+
*/
|
|
472
|
+
updateOverflowForCell(cell) {
|
|
473
|
+
const mode = this.resolveOverflowForCell(cell);
|
|
474
|
+
const config = TABLE_OVERFLOW_MAP[mode];
|
|
475
|
+
cell.style.setProperty(TABLE_TOKENS.CELL_OVERFLOW, config.overflow);
|
|
476
|
+
cell.style.setProperty(TABLE_TOKENS.CELL_TEXT_OVERFLOW, config.textOverflow);
|
|
477
|
+
cell.style.setProperty(TABLE_TOKENS.CELL_WHITE_SPACE, config.whiteSpace);
|
|
478
|
+
// O atributo 'applied-overflow' deve sempre aparecer
|
|
479
|
+
cell.setAttribute('data-applied-overflow', mode);
|
|
480
|
+
}
|
|
481
|
+
/**
|
|
482
|
+
* Resolve o token de overflow para uma célula específica, considerando a hierarquia de atributos (célula, linha, coluna, tabela) para determinar o comportamento de overflow final a ser aplicado à célula.
|
|
483
|
+
* @param cell A célula para a qual o token de overflow deve ser resolvido.
|
|
484
|
+
* @returns O valor do token de overflow resolvido para a célula, determinando o comportamento de overflow a ser aplicado.
|
|
485
|
+
*/
|
|
486
|
+
resolveOverflowForCell(cell) {
|
|
487
|
+
// Resolução hierárquica: célula > linha > coluna > tabela > fallback
|
|
488
|
+
let value = cell.getAttribute('overflow');
|
|
489
|
+
if (value === null) {
|
|
490
|
+
const row = cell.closest('br-table-row');
|
|
491
|
+
value = row?.getAttribute('overflow') ?? null;
|
|
492
|
+
}
|
|
493
|
+
if (value === null) {
|
|
494
|
+
value = this.getColumnAttribute(cell, 'overflow') ?? null;
|
|
495
|
+
}
|
|
496
|
+
if (value === null) {
|
|
497
|
+
value = this.overflow ?? null;
|
|
498
|
+
}
|
|
499
|
+
if (value === null) {
|
|
500
|
+
value = TABLE_OVERFLOW.WRAP;
|
|
501
|
+
}
|
|
502
|
+
return value === TABLE_OVERFLOW.TRUNCATE ? TABLE_OVERFLOW.TRUNCATE : TABLE_OVERFLOW.WRAP;
|
|
503
|
+
}
|
|
504
|
+
/**
|
|
505
|
+
* Obtém o valor de um atributo específico de uma coluna para uma célula, permitindo a herança de propriedades da coluna para as células associadas com base no cabeçalho correspondente.
|
|
506
|
+
* @param cell A célula para a qual o atributo da coluna deve ser obtido.
|
|
507
|
+
* @param attribute O atributo específico a ser obtido da coluna (por exemplo, 'horizontal-alignment' ou 'vertical-alignment').
|
|
508
|
+
* @returns O valor do atributo da coluna correspondente à célula, ou null se não estiver definido.
|
|
509
|
+
*/
|
|
510
|
+
getColumnAttribute(cell, attribute) {
|
|
511
|
+
const header = this.getHeaderForCell(cell);
|
|
512
|
+
return header?.getAttribute(attribute) ?? null;
|
|
513
|
+
}
|
|
514
|
+
/**
|
|
515
|
+
* Obtém o elemento de cabeçalho correspondente a uma célula específica, permitindo a associação entre células e seus respectivos cabeçalhos para herança de propriedades como alinhamento e largura.
|
|
516
|
+
* @param cell A célula para a qual o cabeçalho correspondente deve ser obtido.
|
|
517
|
+
* @returns O elemento de cabeçalho correspondente à célula, ou null se não for encontrado.
|
|
518
|
+
*/
|
|
519
|
+
getHeaderForCell(cell) {
|
|
520
|
+
const index = this.getColumnIndex(cell);
|
|
521
|
+
if (index === -1)
|
|
522
|
+
return null;
|
|
523
|
+
const headers = this.getHeaderCells();
|
|
524
|
+
return headers[index] ?? null;
|
|
525
|
+
}
|
|
526
|
+
/**
|
|
527
|
+
* Resolve e aplica o token de densidade.
|
|
528
|
+
*/
|
|
529
|
+
applyDensity() {
|
|
530
|
+
const resolved = resolveTokenValue(this.density, {
|
|
531
|
+
fallback: TABLE_DENSITY_MAP[TABLE_DENSITY.MEDIUM],
|
|
532
|
+
semanticMap: TABLE_DENSITY_MAP,
|
|
533
|
+
});
|
|
534
|
+
this.el.style.setProperty(TABLE_TOKENS.DENSITY, resolved);
|
|
535
|
+
}
|
|
536
|
+
/**
|
|
537
|
+
* Resolve e aplica os tokens relacionados aos divisores
|
|
538
|
+
* (estilo e fatores de linha/coluna).
|
|
539
|
+
*/
|
|
540
|
+
applyDividers() {
|
|
541
|
+
const style = resolveTokenValue(this.dividerStyle, {
|
|
542
|
+
fallback: TABLE_DIVIDER_STYLE_MAP[TABLE_DIVIDER_STYLE.SOLID],
|
|
543
|
+
semanticMap: TABLE_DIVIDER_STYLE_MAP,
|
|
544
|
+
});
|
|
545
|
+
const rowFactor = (this.rowDivider ?? this.hasRowDivider) ? '1' : '0';
|
|
546
|
+
const columnFactor = (this.columnDivider ?? this.hasColumnDivider) ? '1' : '0';
|
|
547
|
+
this.el.style.setProperty(TABLE_TOKENS.DIVIDER_STYLE, style);
|
|
548
|
+
this.el.style.setProperty(TABLE_TOKENS.ROW_DIVIDER_FACTOR, rowFactor);
|
|
549
|
+
this.el.style.setProperty(TABLE_TOKENS.COLUMN_DIVIDER_FACTOR, columnFactor);
|
|
550
|
+
}
|
|
551
|
+
/**
|
|
552
|
+
* Retorna o mapa de classes base do componente.
|
|
553
|
+
*
|
|
554
|
+
* @returns Um objeto representando as classes CSS a serem aplicadas ao elemento da tabela.
|
|
555
|
+
*/
|
|
556
|
+
getTableCssClassMap() {
|
|
557
|
+
return {
|
|
558
|
+
'br-table': true,
|
|
559
|
+
};
|
|
560
|
+
}
|
|
561
|
+
/**
|
|
562
|
+
* Renderiza a estrutura interna da tabela (header e body).
|
|
563
|
+
*
|
|
564
|
+
* @returns JSX.Element representando o conteúdo da tabela, incluindo os slots para header e body.
|
|
565
|
+
*/
|
|
566
|
+
renderContent() {
|
|
567
|
+
return (h("div", { class: { 'br-table-content': true, loading: this.loading }, part: "content" }, h("slot", { name: "header", onSlotchange: this.handleStructureChange }), h("slot", { name: "body", onSlotchange: this.handleStructureChange })));
|
|
568
|
+
}
|
|
569
|
+
/**
|
|
570
|
+
* Renderiza o host do componente.
|
|
571
|
+
*
|
|
572
|
+
* @returns JSX.Element representando o elemento host do componente, contendo a estrutura da tabela.
|
|
573
|
+
*/
|
|
574
|
+
render() {
|
|
575
|
+
return (h(Host, { key: 'bb33a9d7d47cbf531c23216f37e14114b2855db3', role: "table", "aria-busy": this.loading ? 'true' : null }, h("div", { key: '1e4c88e462a941eae79b2d7893721f0058dab307', class: this.getTableCssClassMap(), part: "container" }, this.renderContent(), this.loading ? (h("div", { part: "loading", role: "status", "aria-live": "polite" }, h("slot", { name: "loading" }, h("br-loading", { size: "small", label: "Carregando dados" })))) : null)));
|
|
576
|
+
}
|
|
577
|
+
static get is() { return "br-table"; }
|
|
578
|
+
static get encapsulation() { return "shadow"; }
|
|
579
|
+
static get originalStyleUrls() {
|
|
580
|
+
return {
|
|
581
|
+
"$": ["table.scss"]
|
|
582
|
+
};
|
|
583
|
+
}
|
|
584
|
+
static get styleUrls() {
|
|
585
|
+
return {
|
|
586
|
+
"$": ["table.css"]
|
|
587
|
+
};
|
|
588
|
+
}
|
|
589
|
+
static get properties() {
|
|
590
|
+
return {
|
|
591
|
+
"columnWidth": {
|
|
592
|
+
"type": "string",
|
|
593
|
+
"mutable": false,
|
|
594
|
+
"complexType": {
|
|
595
|
+
"original": "ColumnWidth",
|
|
596
|
+
"resolved": "\"content\" | \"fill\" | `${number}fr` | `${number}px`",
|
|
597
|
+
"references": {
|
|
598
|
+
"ColumnWidth": {
|
|
599
|
+
"location": "import",
|
|
600
|
+
"path": "./table-types",
|
|
601
|
+
"id": "src/components/table/table-types.ts::ColumnWidth",
|
|
602
|
+
"referenceLocation": "ColumnWidth"
|
|
603
|
+
}
|
|
604
|
+
}
|
|
605
|
+
},
|
|
606
|
+
"required": false,
|
|
607
|
+
"optional": true,
|
|
608
|
+
"docs": {
|
|
609
|
+
"tags": [{
|
|
610
|
+
"name": "remarks",
|
|
611
|
+
"text": "Valores aceitos:\n- fill\n- content\n- ${number}px\n- ${number}fr\n\nObserva\u00E7\u00E3o:\n- `columnWidth` n\u00E3o define o comportamento de `overflow`, mas pode interferir na sua percep\u00E7\u00E3o ao alterar o espa\u00E7o dispon\u00EDvel da coluna.\n- `content` (`max-content`) tende a expandir a coluna e reduzir casos vis\u00EDveis de truncagem.\n- `fill` (`1fr`) tende a evidenciar truncagem quando o espa\u00E7o horizontal \u00E9 insuficiente."
|
|
612
|
+
}, {
|
|
613
|
+
"name": "default",
|
|
614
|
+
"text": "fill"
|
|
615
|
+
}],
|
|
616
|
+
"text": "Largura global aplicada a todas as colunas."
|
|
617
|
+
},
|
|
618
|
+
"getter": false,
|
|
619
|
+
"setter": false,
|
|
620
|
+
"reflect": true,
|
|
621
|
+
"attribute": "column-width"
|
|
622
|
+
},
|
|
623
|
+
"density": {
|
|
624
|
+
"type": "string",
|
|
625
|
+
"mutable": false,
|
|
626
|
+
"complexType": {
|
|
627
|
+
"original": "TableDensity",
|
|
628
|
+
"resolved": "\"large\" | \"medium\" | \"small\"",
|
|
629
|
+
"references": {
|
|
630
|
+
"TableDensity": {
|
|
631
|
+
"location": "import",
|
|
632
|
+
"path": "./table-types",
|
|
633
|
+
"id": "src/components/table/table-types.ts::TableDensity",
|
|
634
|
+
"referenceLocation": "TableDensity"
|
|
635
|
+
}
|
|
636
|
+
}
|
|
637
|
+
},
|
|
638
|
+
"required": false,
|
|
639
|
+
"optional": true,
|
|
640
|
+
"docs": {
|
|
641
|
+
"tags": [],
|
|
642
|
+
"text": "Define a densidade visual do componente.\n\n- `small`: Alta densidade (componente menor, mais compacto e com menos espa\u00E7amento).\n- `medium`: Densidade intermedi\u00E1ria, padr\u00E3o recomendado para a maioria dos casos.\n- `large`: Baixa densidade (componente maior, mais espa\u00E7amento e altura)."
|
|
643
|
+
},
|
|
644
|
+
"getter": false,
|
|
645
|
+
"setter": false,
|
|
646
|
+
"reflect": true,
|
|
647
|
+
"attribute": "density"
|
|
648
|
+
},
|
|
649
|
+
"dividerStyle": {
|
|
650
|
+
"type": "string",
|
|
651
|
+
"mutable": false,
|
|
652
|
+
"complexType": {
|
|
653
|
+
"original": "TableDividerStyle",
|
|
654
|
+
"resolved": "\"dashed\" | \"solid\"",
|
|
655
|
+
"references": {
|
|
656
|
+
"TableDividerStyle": {
|
|
657
|
+
"location": "import",
|
|
658
|
+
"path": "./table-types",
|
|
659
|
+
"id": "src/components/table/table-types.ts::TableDividerStyle",
|
|
660
|
+
"referenceLocation": "TableDividerStyle"
|
|
661
|
+
}
|
|
662
|
+
}
|
|
663
|
+
},
|
|
664
|
+
"required": false,
|
|
665
|
+
"optional": true,
|
|
666
|
+
"docs": {
|
|
667
|
+
"tags": [{
|
|
668
|
+
"name": "remarks",
|
|
669
|
+
"text": "Valores aceitos:\n- solid\n- dashed"
|
|
670
|
+
}, {
|
|
671
|
+
"name": "default",
|
|
672
|
+
"text": "solid"
|
|
673
|
+
}],
|
|
674
|
+
"text": "Define o estilo visual dos divisores."
|
|
675
|
+
},
|
|
676
|
+
"getter": false,
|
|
677
|
+
"setter": false,
|
|
678
|
+
"reflect": true,
|
|
679
|
+
"attribute": "divider-style"
|
|
680
|
+
},
|
|
681
|
+
"hasColumnDivider": {
|
|
682
|
+
"type": "boolean",
|
|
683
|
+
"mutable": false,
|
|
684
|
+
"complexType": {
|
|
685
|
+
"original": "boolean",
|
|
686
|
+
"resolved": "boolean",
|
|
687
|
+
"references": {}
|
|
688
|
+
},
|
|
689
|
+
"required": false,
|
|
690
|
+
"optional": true,
|
|
691
|
+
"docs": {
|
|
692
|
+
"tags": [{
|
|
693
|
+
"name": "default",
|
|
694
|
+
"text": "false"
|
|
695
|
+
}, {
|
|
696
|
+
"name": "deprecated",
|
|
697
|
+
"text": "Use `columnDivider`."
|
|
698
|
+
}],
|
|
699
|
+
"text": "Ativa divisores verticais entre colunas."
|
|
700
|
+
},
|
|
701
|
+
"getter": false,
|
|
702
|
+
"setter": false,
|
|
703
|
+
"reflect": true,
|
|
704
|
+
"attribute": "has-column-divider",
|
|
705
|
+
"defaultValue": "false"
|
|
706
|
+
},
|
|
707
|
+
"columnDivider": {
|
|
708
|
+
"type": "boolean",
|
|
709
|
+
"mutable": false,
|
|
710
|
+
"complexType": {
|
|
711
|
+
"original": "boolean",
|
|
712
|
+
"resolved": "boolean",
|
|
713
|
+
"references": {}
|
|
714
|
+
},
|
|
715
|
+
"required": false,
|
|
716
|
+
"optional": true,
|
|
717
|
+
"docs": {
|
|
718
|
+
"tags": [],
|
|
719
|
+
"text": "Ativa divisores verticais. Quando informada, tem preced\u00EAncia sobre `hasColumnDivider`."
|
|
720
|
+
},
|
|
721
|
+
"getter": false,
|
|
722
|
+
"setter": false,
|
|
723
|
+
"reflect": true,
|
|
724
|
+
"attribute": "column-divider"
|
|
725
|
+
},
|
|
726
|
+
"hasRowDivider": {
|
|
727
|
+
"type": "boolean",
|
|
728
|
+
"mutable": false,
|
|
729
|
+
"complexType": {
|
|
730
|
+
"original": "boolean",
|
|
731
|
+
"resolved": "boolean",
|
|
732
|
+
"references": {}
|
|
733
|
+
},
|
|
734
|
+
"required": false,
|
|
735
|
+
"optional": true,
|
|
736
|
+
"docs": {
|
|
737
|
+
"tags": [{
|
|
738
|
+
"name": "default",
|
|
739
|
+
"text": "false"
|
|
740
|
+
}, {
|
|
741
|
+
"name": "deprecated",
|
|
742
|
+
"text": "Use `rowDivider`."
|
|
743
|
+
}],
|
|
744
|
+
"text": "Ativa divisores horizontais entre linhas."
|
|
745
|
+
},
|
|
746
|
+
"getter": false,
|
|
747
|
+
"setter": false,
|
|
748
|
+
"reflect": true,
|
|
749
|
+
"attribute": "has-row-divider",
|
|
750
|
+
"defaultValue": "false"
|
|
751
|
+
},
|
|
752
|
+
"rowDivider": {
|
|
753
|
+
"type": "boolean",
|
|
754
|
+
"mutable": false,
|
|
755
|
+
"complexType": {
|
|
756
|
+
"original": "boolean",
|
|
757
|
+
"resolved": "boolean",
|
|
758
|
+
"references": {}
|
|
759
|
+
},
|
|
760
|
+
"required": false,
|
|
761
|
+
"optional": true,
|
|
762
|
+
"docs": {
|
|
763
|
+
"tags": [],
|
|
764
|
+
"text": "Ativa divisores horizontais. Quando informada, tem preced\u00EAncia sobre `hasRowDivider`."
|
|
765
|
+
},
|
|
766
|
+
"getter": false,
|
|
767
|
+
"setter": false,
|
|
768
|
+
"reflect": true,
|
|
769
|
+
"attribute": "row-divider"
|
|
770
|
+
},
|
|
771
|
+
"horizontalAlignment": {
|
|
772
|
+
"type": "string",
|
|
773
|
+
"mutable": false,
|
|
774
|
+
"complexType": {
|
|
775
|
+
"original": "TableAlignment",
|
|
776
|
+
"resolved": "\"center\" | \"end\" | \"start\"",
|
|
777
|
+
"references": {
|
|
778
|
+
"TableAlignment": {
|
|
779
|
+
"location": "import",
|
|
780
|
+
"path": "./table-types",
|
|
781
|
+
"id": "src/components/table/table-types.ts::TableAlignment",
|
|
782
|
+
"referenceLocation": "TableAlignment"
|
|
783
|
+
}
|
|
784
|
+
}
|
|
785
|
+
},
|
|
786
|
+
"required": false,
|
|
787
|
+
"optional": true,
|
|
788
|
+
"docs": {
|
|
789
|
+
"tags": [{
|
|
790
|
+
"name": "remarks",
|
|
791
|
+
"text": "Valores aceitos:\n- start\n- center\n- end"
|
|
792
|
+
}, {
|
|
793
|
+
"name": "default",
|
|
794
|
+
"text": "start"
|
|
795
|
+
}],
|
|
796
|
+
"text": "Define o alinhamento horizontal do conte\u00FAdo das c\u00E9lulas."
|
|
797
|
+
},
|
|
798
|
+
"getter": false,
|
|
799
|
+
"setter": false,
|
|
800
|
+
"reflect": true,
|
|
801
|
+
"attribute": "horizontal-alignment"
|
|
802
|
+
},
|
|
803
|
+
"verticalAlignment": {
|
|
804
|
+
"type": "string",
|
|
805
|
+
"mutable": false,
|
|
806
|
+
"complexType": {
|
|
807
|
+
"original": "TableAlignment",
|
|
808
|
+
"resolved": "\"center\" | \"end\" | \"start\"",
|
|
809
|
+
"references": {
|
|
810
|
+
"TableAlignment": {
|
|
811
|
+
"location": "import",
|
|
812
|
+
"path": "./table-types",
|
|
813
|
+
"id": "src/components/table/table-types.ts::TableAlignment",
|
|
814
|
+
"referenceLocation": "TableAlignment"
|
|
815
|
+
}
|
|
816
|
+
}
|
|
817
|
+
},
|
|
818
|
+
"required": false,
|
|
819
|
+
"optional": true,
|
|
820
|
+
"docs": {
|
|
821
|
+
"tags": [{
|
|
822
|
+
"name": "remarks",
|
|
823
|
+
"text": "Valores aceitos:\n- start\n- center\n- end"
|
|
824
|
+
}, {
|
|
825
|
+
"name": "default",
|
|
826
|
+
"text": "start"
|
|
827
|
+
}],
|
|
828
|
+
"text": "Define o alinhamento vertical do conte\u00FAdo das c\u00E9lulas."
|
|
829
|
+
},
|
|
830
|
+
"getter": false,
|
|
831
|
+
"setter": false,
|
|
832
|
+
"reflect": true,
|
|
833
|
+
"attribute": "vertical-alignment"
|
|
834
|
+
},
|
|
835
|
+
"overflow": {
|
|
836
|
+
"type": "string",
|
|
837
|
+
"mutable": false,
|
|
838
|
+
"complexType": {
|
|
839
|
+
"original": "TableOverflow",
|
|
840
|
+
"resolved": "\"truncate\" | \"wrap\"",
|
|
841
|
+
"references": {
|
|
842
|
+
"TableOverflow": {
|
|
843
|
+
"location": "import",
|
|
844
|
+
"path": "./table-types",
|
|
845
|
+
"id": "src/components/table/table-types.ts::TableOverflow",
|
|
846
|
+
"referenceLocation": "TableOverflow"
|
|
847
|
+
}
|
|
848
|
+
}
|
|
849
|
+
},
|
|
850
|
+
"required": false,
|
|
851
|
+
"optional": true,
|
|
852
|
+
"docs": {
|
|
853
|
+
"tags": [{
|
|
854
|
+
"name": "remarks",
|
|
855
|
+
"text": "Valores aceitos:\n- truncate\n- wrap\n\nObserva\u00E7\u00E3o:\n- O overflow \u00E9 independente de `columnWidth`.\n- Com `columnWidth=\"content\"`, a coluna tende a crescer com o conte\u00FAdo (`max-content`), o que pode reduzir casos vis\u00EDveis de truncagem.\n- Com `columnWidth=\"fill\"`, a coluna ocupa o espa\u00E7o dispon\u00EDvel (`1fr`), ent\u00E3o a truncagem tende a ficar mais evidente quando n\u00E3o h\u00E1 espa\u00E7o suficiente."
|
|
856
|
+
}, {
|
|
857
|
+
"name": "default",
|
|
858
|
+
"text": "wrap"
|
|
859
|
+
}],
|
|
860
|
+
"text": "Define o comportamento de overflow para as c\u00E9lulas."
|
|
861
|
+
},
|
|
862
|
+
"getter": false,
|
|
863
|
+
"setter": false,
|
|
864
|
+
"reflect": true,
|
|
865
|
+
"attribute": "overflow",
|
|
866
|
+
"defaultValue": "'wrap'"
|
|
867
|
+
},
|
|
868
|
+
"tooltipState": {
|
|
869
|
+
"type": "string",
|
|
870
|
+
"mutable": false,
|
|
871
|
+
"complexType": {
|
|
872
|
+
"original": "TableTooltipState",
|
|
873
|
+
"resolved": "\"danger\" | \"info\" | \"success\" | \"warning\"",
|
|
874
|
+
"references": {
|
|
875
|
+
"TableTooltipState": {
|
|
876
|
+
"location": "import",
|
|
877
|
+
"path": "./table-types",
|
|
878
|
+
"id": "src/components/table/table-types.ts::TableTooltipState",
|
|
879
|
+
"referenceLocation": "TableTooltipState"
|
|
880
|
+
}
|
|
881
|
+
}
|
|
882
|
+
},
|
|
883
|
+
"required": false,
|
|
884
|
+
"optional": true,
|
|
885
|
+
"docs": {
|
|
886
|
+
"tags": [{
|
|
887
|
+
"name": "remarks",
|
|
888
|
+
"text": "Valores aceitos:\n- info\n- warning\n- danger\n- success"
|
|
889
|
+
}, {
|
|
890
|
+
"name": "default",
|
|
891
|
+
"text": "info"
|
|
892
|
+
}],
|
|
893
|
+
"text": "Define o estado sem\u00E2ntico do tooltip nas c\u00E9lulas da tabela."
|
|
894
|
+
},
|
|
895
|
+
"getter": false,
|
|
896
|
+
"setter": false,
|
|
897
|
+
"reflect": true,
|
|
898
|
+
"attribute": "tooltip-state",
|
|
899
|
+
"defaultValue": "'info'"
|
|
900
|
+
},
|
|
901
|
+
"tooltipMode": {
|
|
902
|
+
"type": "string",
|
|
903
|
+
"mutable": false,
|
|
904
|
+
"complexType": {
|
|
905
|
+
"original": "TableTooltipMode",
|
|
906
|
+
"resolved": "\"disabled\" | \"enabled\" | \"inherit\"",
|
|
907
|
+
"references": {
|
|
908
|
+
"TableTooltipMode": {
|
|
909
|
+
"location": "import",
|
|
910
|
+
"path": "./table-types",
|
|
911
|
+
"id": "src/components/table/table-types.ts::TableTooltipMode",
|
|
912
|
+
"referenceLocation": "TableTooltipMode"
|
|
913
|
+
}
|
|
914
|
+
}
|
|
915
|
+
},
|
|
916
|
+
"required": false,
|
|
917
|
+
"optional": true,
|
|
918
|
+
"docs": {
|
|
919
|
+
"tags": [{
|
|
920
|
+
"name": "remarks",
|
|
921
|
+
"text": "Valores aceitos:\n- inherit\n- enabled\n- disabled"
|
|
922
|
+
}, {
|
|
923
|
+
"name": "default",
|
|
924
|
+
"text": "disabled (valor efetivo)"
|
|
925
|
+
}],
|
|
926
|
+
"text": "Define o modo de resolu\u00E7\u00E3o do tooltip nas c\u00E9lulas da tabela."
|
|
927
|
+
},
|
|
928
|
+
"getter": false,
|
|
929
|
+
"setter": false,
|
|
930
|
+
"reflect": true,
|
|
931
|
+
"attribute": "tooltip-mode"
|
|
932
|
+
},
|
|
933
|
+
"loading": {
|
|
934
|
+
"type": "boolean",
|
|
935
|
+
"mutable": true,
|
|
936
|
+
"complexType": {
|
|
937
|
+
"original": "boolean",
|
|
938
|
+
"resolved": "boolean",
|
|
939
|
+
"references": {}
|
|
940
|
+
},
|
|
941
|
+
"required": false,
|
|
942
|
+
"optional": false,
|
|
943
|
+
"docs": {
|
|
944
|
+
"tags": [{
|
|
945
|
+
"name": "default",
|
|
946
|
+
"text": "false"
|
|
947
|
+
}],
|
|
948
|
+
"text": "Indica que as linhas est\u00E3o sendo atualizadas pelo consumidor.\nO componente mant\u00E9m o conte\u00FAdo anterior, aplica `aria-busy=\"true\"` e\nexibe o slot `loading` sobre os dados; transporte, erro e substitui\u00E7\u00E3o das\nlinhas ficam sob responsabilidade da aplica\u00E7\u00E3o.\nA prop pode ser alterada diretamente ou pelos m\u00E9todos `startLoading()` e\n`stopLoading()`."
|
|
949
|
+
},
|
|
950
|
+
"getter": false,
|
|
951
|
+
"setter": false,
|
|
952
|
+
"reflect": true,
|
|
953
|
+
"attribute": "loading",
|
|
954
|
+
"defaultValue": "false"
|
|
955
|
+
}
|
|
956
|
+
};
|
|
957
|
+
}
|
|
958
|
+
static get methods() {
|
|
959
|
+
return {
|
|
960
|
+
"startLoading": {
|
|
961
|
+
"complexType": {
|
|
962
|
+
"signature": "() => Promise<void>",
|
|
963
|
+
"parameters": [],
|
|
964
|
+
"references": {
|
|
965
|
+
"Promise": {
|
|
966
|
+
"location": "global",
|
|
967
|
+
"id": "global::Promise"
|
|
968
|
+
}
|
|
969
|
+
},
|
|
970
|
+
"return": "Promise<void>"
|
|
971
|
+
},
|
|
972
|
+
"docs": {
|
|
973
|
+
"text": "Inicia o estado de carregamento da tabela.",
|
|
974
|
+
"tags": []
|
|
975
|
+
}
|
|
976
|
+
},
|
|
977
|
+
"stopLoading": {
|
|
978
|
+
"complexType": {
|
|
979
|
+
"signature": "() => Promise<void>",
|
|
980
|
+
"parameters": [],
|
|
981
|
+
"references": {
|
|
982
|
+
"Promise": {
|
|
983
|
+
"location": "global",
|
|
984
|
+
"id": "global::Promise"
|
|
985
|
+
}
|
|
986
|
+
},
|
|
987
|
+
"return": "Promise<void>"
|
|
988
|
+
},
|
|
989
|
+
"docs": {
|
|
990
|
+
"text": "Interrompe o estado de carregamento da tabela.",
|
|
991
|
+
"tags": []
|
|
992
|
+
}
|
|
993
|
+
}
|
|
994
|
+
};
|
|
995
|
+
}
|
|
996
|
+
static get elementRef() { return "el"; }
|
|
997
|
+
static get watchers() {
|
|
998
|
+
return [{
|
|
999
|
+
"propName": "columnWidth",
|
|
1000
|
+
"methodName": "handleTableColumnWidthChange"
|
|
1001
|
+
}, {
|
|
1002
|
+
"propName": "density",
|
|
1003
|
+
"methodName": "handleDensityChange"
|
|
1004
|
+
}, {
|
|
1005
|
+
"propName": "hasColumnDivider",
|
|
1006
|
+
"methodName": "handleDividerChange"
|
|
1007
|
+
}, {
|
|
1008
|
+
"propName": "hasRowDivider",
|
|
1009
|
+
"methodName": "handleDividerChange"
|
|
1010
|
+
}, {
|
|
1011
|
+
"propName": "columnDivider",
|
|
1012
|
+
"methodName": "handleDividerChange"
|
|
1013
|
+
}, {
|
|
1014
|
+
"propName": "rowDivider",
|
|
1015
|
+
"methodName": "handleDividerChange"
|
|
1016
|
+
}, {
|
|
1017
|
+
"propName": "dividerStyle",
|
|
1018
|
+
"methodName": "handleDividerChange"
|
|
1019
|
+
}, {
|
|
1020
|
+
"propName": "horizontalAlignment",
|
|
1021
|
+
"methodName": "handleAlignmentChange"
|
|
1022
|
+
}, {
|
|
1023
|
+
"propName": "verticalAlignment",
|
|
1024
|
+
"methodName": "handleAlignmentChange"
|
|
1025
|
+
}, {
|
|
1026
|
+
"propName": "overflow",
|
|
1027
|
+
"methodName": "handleOverflowChange"
|
|
1028
|
+
}];
|
|
1029
|
+
}
|
|
1030
|
+
}
|