@govbr-ds/webcomponents 2.1.2 → 2.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +87 -46
- package/cem/custom-elements.json +6367 -1134
- package/cem/webcomponents.html-custom-data.json +399 -286
- package/dist/cjs/br-avatar.cjs.entry.js +21 -14
- package/dist/cjs/br-breadcrumb-item.cjs.entry.js +2 -2
- package/dist/cjs/br-breadcrumb.cjs.entry.js +49 -22
- package/dist/cjs/br-button_2.cjs.entry.js +72 -35
- package/dist/cjs/br-card.cjs.entry.js +6 -5
- package/dist/cjs/br-carousel-page.cjs.entry.js +3 -3
- package/dist/cjs/br-carousel.cjs.entry.js +77 -21
- package/dist/cjs/br-checkbox-group.cjs.entry.js +157 -27
- package/dist/cjs/br-checkbox.cjs.entry.js +85 -15
- package/dist/cjs/br-checkgroup.cjs.entry.js +5 -2
- package/dist/cjs/br-collapse_2.cjs.entry.js +85 -26
- package/dist/cjs/br-cookiebar-cookie.cjs.entry.js +4 -4
- package/dist/cjs/br-cookiebar-group.cjs.entry.js +4 -4
- package/dist/cjs/br-cookiebar-header.cjs.entry.js +4 -4
- package/dist/cjs/br-cookiebar-link.cjs.entry.js +14 -6
- package/dist/cjs/br-cookiebar-note-group.cjs.entry.js +3 -5
- package/dist/cjs/br-cookiebar-note.cjs.entry.js +4 -4
- package/dist/cjs/br-cookiebar.cjs.entry.js +38 -25
- package/dist/cjs/br-crumb.cjs.entry.js +2 -2
- package/dist/cjs/br-date-picker_3.cjs.entry.js +246 -88
- package/dist/cjs/br-datetime-picker.cjs.entry.js +115 -527
- package/dist/cjs/br-divider.cjs.entry.js +70 -17
- package/dist/cjs/br-dropdown_2.cjs.entry.js +304 -122
- package/dist/cjs/br-footer-category.cjs.entry.js +10 -6
- package/dist/cjs/br-footer-item.cjs.entry.js +9 -4
- package/dist/cjs/br-footer-legal.cjs.entry.js +4 -4
- package/dist/cjs/br-footer-logo.cjs.entry.js +22 -10
- package/dist/cjs/br-footer-social.cjs.entry.js +14 -6
- package/dist/cjs/br-footer.cjs.entry.js +16 -7
- package/dist/cjs/br-header-function.cjs.entry.js +28 -7
- package/dist/cjs/br-header-link.cjs.entry.js +25 -4
- package/dist/cjs/br-header-list.cjs.entry.js +6 -17
- package/dist/cjs/br-header-logo.cjs.entry.js +18 -7
- package/dist/cjs/br-header.cjs.entry.js +72 -17
- package/dist/cjs/br-icon.cjs.entry.js +160 -23
- package/dist/cjs/br-input.cjs.entry.js +130 -39
- package/dist/cjs/br-item.cjs.entry.js +96 -48
- package/dist/cjs/br-link.cjs.entry.js +20 -7
- package/dist/cjs/br-loading.cjs.entry.js +100 -38
- package/dist/cjs/br-magic-button.cjs.entry.js +26 -9
- package/dist/cjs/br-menu-group.cjs.entry.js +14 -3
- package/dist/cjs/br-menu-header.cjs.entry.js +4 -4
- package/dist/cjs/br-menu-info.cjs.entry.js +4 -4
- package/dist/cjs/br-menu-item.cjs.entry.js +27 -5
- package/dist/cjs/br-menu-link.cjs.entry.js +14 -6
- package/dist/cjs/br-menu-list.cjs.entry.js +23 -27
- package/dist/cjs/br-menu-logo.cjs.entry.js +4 -4
- package/dist/cjs/br-menu-social.cjs.entry.js +16 -6
- package/dist/cjs/br-menu.cjs.entry.js +41 -64
- package/dist/cjs/br-modal.cjs.entry.js +26 -40
- package/dist/cjs/br-notification-body.cjs.entry.js +4 -4
- package/dist/cjs/br-notification-header.cjs.entry.js +4 -4
- package/dist/cjs/br-notification-item.cjs.entry.js +14 -8
- package/dist/cjs/br-notification.cjs.entry.js +23 -8
- package/dist/cjs/br-pagination.cjs.entry.js +119 -87
- package/dist/cjs/br-radio-group.cjs.entry.js +106 -57
- package/dist/cjs/br-radio.cjs.entry.js +61 -11
- package/dist/cjs/br-scrim.cjs.entry.js +161 -67
- package/dist/cjs/br-select-input_3.cjs.entry.js +283 -90
- package/dist/cjs/br-sign-in.cjs.entry.js +34 -15
- package/dist/cjs/br-skip-link-item.cjs.entry.js +39 -2
- package/dist/cjs/br-skip-link.cjs.entry.js +50 -33
- package/dist/cjs/br-skiplink-item.cjs.entry.js +22 -6
- package/dist/cjs/br-slider.cjs.entry.js +521 -99
- package/dist/cjs/br-step_2.cjs.entry.js +98 -44
- package/dist/cjs/br-switch.cjs.entry.js +20 -11
- package/dist/cjs/br-tab-item.cjs.entry.js +38 -14
- package/dist/cjs/br-tab.cjs.entry.js +57 -44
- package/dist/cjs/br-table-body.cjs.entry.js +3 -3
- package/dist/cjs/br-table-cell.cjs.entry.js +30 -13
- package/dist/cjs/br-table-header-cell.cjs.entry.js +23 -7
- package/dist/cjs/br-table-header.cjs.entry.js +3 -3
- package/dist/cjs/br-table-row.cjs.entry.js +17 -3
- package/dist/cjs/br-table.cjs.entry.js +67 -21
- package/dist/cjs/br-tag.cjs.entry.js +48 -30
- package/dist/cjs/br-textarea.cjs.entry.js +117 -12
- package/dist/cjs/br-tooltip.cjs.entry.js +87 -41
- package/dist/cjs/br-upload.cjs.entry.js +83 -24
- package/dist/cjs/br-wizard-panel.cjs.entry.js +16 -3
- package/dist/cjs/br-wizard.cjs.entry.js +52 -28
- package/dist/cjs/{isValid-Fu3kaWNn.js → datetime-picker-props-validation-DmNKSXsy.js} +481 -4
- package/dist/cjs/{floating-ui-MBI1osio.js → floating-ui-B6nsdYUU.js} +24 -1
- package/dist/cjs/{floating-ui.dom-BUSTaaxR.js → floating-ui.dom-wzdGZjyG.js} +201 -113
- package/dist/cjs/{focus-DuywwJPR.js → focus-BhfJnFgJ.js} +21 -0
- package/dist/cjs/header-context-CdawuLsH.js +17 -0
- package/dist/cjs/id-DE4jSi-L.js +36 -0
- package/dist/cjs/{index-CRdcutym.js → index-CGgZBuyy.js} +68 -752
- package/dist/cjs/loader.cjs.js +2 -2
- package/dist/cjs/motion-CgIooxWS.js +29 -0
- package/dist/cjs/ownership-UnpufyCx.js +116 -0
- package/dist/cjs/prop-warning-xvEHQz8H.js +60 -0
- package/dist/cjs/props-D8dybmr0.js +124 -0
- package/dist/cjs/{swipe-BU8_XE9f.js → swipe-BGF-h9WY.js} +11 -1
- package/dist/cjs/webcomponents.cjs.js +3 -3
- package/dist/collection/collection-manifest.json +1 -1
- package/dist/collection/components/avatar/avatar.css +1 -1
- package/dist/collection/components/avatar/avatar.js +48 -16
- package/dist/collection/components/breadcrumb/breadcrumb-item/breadcrumb-item.js +15 -3
- package/dist/collection/components/breadcrumb/breadcrumb.css +1 -1
- package/dist/collection/components/breadcrumb/breadcrumb.js +107 -22
- package/dist/collection/components/breadcrumb/crumb/crumb.js +14 -2
- package/dist/collection/components/button/button.css +1 -1
- package/dist/collection/components/button/button.js +88 -24
- package/dist/collection/components/card/card.css +1 -1
- package/dist/collection/components/card/card.js +33 -5
- package/dist/collection/components/carousel/carousel-page/carousel-page.css +1 -1
- package/dist/collection/components/carousel/carousel-page/carousel-page.js +11 -4
- package/dist/collection/components/carousel/carousel.css +1 -1
- package/dist/collection/components/carousel/carousel.js +107 -21
- package/dist/collection/components/checkbox/checkbox.css +1 -1
- package/dist/collection/components/checkbox/checkbox.js +134 -20
- package/dist/collection/components/checkbox-group/checkbox-group.css +1 -1
- package/dist/collection/components/checkbox-group/checkbox-group.js +210 -30
- package/dist/collection/components/checkgroup/checkgroup.js +42 -4
- package/dist/collection/components/collapse/collapse.css +1 -1
- package/dist/collection/components/collapse/collapse.js +48 -8
- package/dist/collection/components/cookiebar/cookiebar-cookie/cookiebar-cookie.css +1 -1
- package/dist/collection/components/cookiebar/cookiebar-cookie/cookiebar-cookie.js +17 -4
- package/dist/collection/components/cookiebar/cookiebar-group/cookiebar-group.css +1 -1
- package/dist/collection/components/cookiebar/cookiebar-group/cookiebar-group.js +16 -7
- package/dist/collection/components/cookiebar/cookiebar-header/cookiebar-header.css +1 -1
- package/dist/collection/components/cookiebar/cookiebar-header/cookiebar-header.js +15 -9
- package/dist/collection/components/cookiebar/cookiebar-link/cookiebar-link.css +1 -1
- package/dist/collection/components/cookiebar/cookiebar-link/cookiebar-link.js +24 -8
- package/dist/collection/components/cookiebar/cookiebar-note/cookiebar-note.css +1 -1
- package/dist/collection/components/cookiebar/cookiebar-note/cookiebar-note.js +14 -4
- package/dist/collection/components/cookiebar/cookiebar-note-group/cookiebar-note-group.css +1 -1
- package/dist/collection/components/cookiebar/cookiebar-note-group/cookiebar-note-group.js +13 -5
- package/dist/collection/components/cookiebar/cookiebar.css +1 -1
- package/dist/collection/components/cookiebar/cookiebar.js +67 -32
- package/dist/collection/components/datetime-picker/date-picker/date-picker.css +1 -1
- package/dist/collection/components/datetime-picker/date-picker/date-picker.js +134 -35
- package/dist/collection/components/datetime-picker/datetime-input/datetime-input.css +1 -1
- package/dist/collection/components/datetime-picker/datetime-input/datetime-input.js +112 -22
- package/dist/collection/components/datetime-picker/datetime-picker-props-validation.js +13 -5
- package/dist/collection/components/datetime-picker/datetime-picker.css +1 -1
- package/dist/collection/components/datetime-picker/datetime-picker.js +158 -42
- package/dist/collection/components/datetime-picker/time-picker/time-picker.css +1 -1
- package/dist/collection/components/datetime-picker/time-picker/time-picker.js +78 -9
- package/dist/collection/components/divider/divider.css +1 -1
- package/dist/collection/components/divider/divider.js +101 -26
- package/dist/collection/components/dropdown/dropdown.css +1 -1
- package/dist/collection/components/dropdown/dropdown.js +166 -18
- package/dist/collection/components/footer/footer-category/footer-category.css +1 -1
- package/dist/collection/components/footer/footer-category/footer-category.js +23 -4
- package/dist/collection/components/footer/footer-item/footer-item.css +1 -1
- package/dist/collection/components/footer/footer-item/footer-item.js +21 -2
- package/dist/collection/components/footer/footer-legal/footer-legal.css +1 -1
- package/dist/collection/components/footer/footer-legal/footer-legal.js +16 -2
- package/dist/collection/components/footer/footer-logo/footer-logo.css +1 -1
- package/dist/collection/components/footer/footer-logo/footer-logo.js +35 -9
- package/dist/collection/components/footer/footer-social/footer-social.css +1 -1
- package/dist/collection/components/footer/footer-social/footer-social.js +26 -6
- package/dist/collection/components/footer/footer.css +1 -1
- package/dist/collection/components/footer/footer.js +48 -7
- package/dist/collection/components/header/header-context.js +13 -0
- package/dist/collection/components/header/header-function/header-function.css +1 -1
- package/dist/collection/components/header/header-function/header-function.js +51 -8
- package/dist/collection/components/header/header-link/header-link.css +1 -1
- package/dist/collection/components/header/header-link/header-link.js +52 -2
- package/dist/collection/components/header/header-list/header-list.css +1 -1
- package/dist/collection/components/header/header-list/header-list.js +20 -23
- package/dist/collection/components/header/header-logo/header-logo.css +1 -1
- package/dist/collection/components/header/header-logo/header-logo.js +33 -8
- package/dist/collection/components/header/header.css +1 -1
- package/dist/collection/components/header/header.js +110 -24
- package/dist/collection/components/icon/default-icons-cache.js +111 -3
- package/dist/collection/components/icon/icon.css +1 -1
- package/dist/collection/components/icon/icon.js +80 -33
- package/dist/collection/components/input/input.css +1 -1
- package/dist/collection/components/input/input.js +169 -54
- package/dist/collection/components/item/item.css +1 -1
- package/dist/collection/components/item/item.js +134 -51
- package/dist/collection/components/link/link.css +1 -1
- package/dist/collection/components/link/link.js +48 -15
- package/dist/collection/components/list/list.css +1 -1
- package/dist/collection/components/list/list.js +106 -25
- package/dist/collection/components/loading/loading.css +1 -1
- package/dist/collection/components/loading/loading.js +131 -43
- package/dist/collection/components/magic-button/magic-button.css +1 -1
- package/dist/collection/components/magic-button/magic-button.js +51 -9
- package/dist/collection/components/menu/menu-group/menu-group.css +1 -1
- package/dist/collection/components/menu/menu-group/menu-group.js +60 -2
- package/dist/collection/components/menu/menu-header/menu-header.css +1 -1
- package/dist/collection/components/menu/menu-header/menu-header.js +17 -2
- package/dist/collection/components/menu/menu-info/menu-info.css +1 -1
- package/dist/collection/components/menu/menu-info/menu-info.js +15 -2
- package/dist/collection/components/menu/menu-item/menu-item.css +1 -1
- package/dist/collection/components/menu/menu-item/menu-item.js +72 -8
- package/dist/collection/components/menu/menu-link/menu-link.css +1 -1
- package/dist/collection/components/menu/menu-link/menu-link.js +25 -4
- package/dist/collection/components/menu/menu-list/menu-list.css +1 -1
- package/dist/collection/components/menu/menu-list/menu-list.js +64 -29
- package/dist/collection/components/menu/menu-logo/menu-logo.css +1 -1
- package/dist/collection/components/menu/menu-logo/menu-logo.js +15 -2
- package/dist/collection/components/menu/menu-social/menu-social.css +1 -1
- package/dist/collection/components/menu/menu-social/menu-social.js +29 -7
- package/dist/collection/components/menu/menu.css +1 -1
- package/dist/collection/components/menu/menu.js +75 -68
- package/dist/collection/components/menu/menu.utils.js +8 -18
- package/dist/collection/components/message/message.css +1 -1
- package/dist/collection/components/message/message.js +50 -24
- package/dist/collection/components/modal/modal.css +1 -1
- package/dist/collection/components/modal/modal.js +54 -41
- package/dist/collection/components/notification/notification-body/notification-body.css +1 -1
- package/dist/collection/components/notification/notification-body/notification-body.js +13 -4
- package/dist/collection/components/notification/notification-header/notification-header.css +1 -1
- package/dist/collection/components/notification/notification-header/notification-header.js +13 -4
- package/dist/collection/components/notification/notification-item/notification-item.css +1 -1
- package/dist/collection/components/notification/notification-item/notification-item.js +23 -9
- package/dist/collection/components/notification/notification.css +1 -1
- package/dist/collection/components/notification/notification.js +54 -10
- package/dist/collection/components/pagination/pagination.css +1 -1
- package/dist/collection/components/pagination/pagination.js +161 -74
- package/dist/collection/components/radio/radio.css +1 -1
- package/dist/collection/components/radio/radio.js +109 -14
- package/dist/collection/components/radio-group/radio-group.css +1 -1
- package/dist/collection/components/radio-group/radio-group.js +153 -63
- package/dist/collection/components/scrim/scrim.css +1 -1
- package/dist/collection/components/scrim/scrim.js +215 -74
- package/dist/collection/components/scrim/scrim.utils.js +5 -51
- package/dist/collection/components/select/select-input/select-input.css +1 -1
- package/dist/collection/components/select/select-input/select-input.js +58 -5
- package/dist/collection/components/select/select-list/select-list.css +1 -1
- package/dist/collection/components/select/select-list/select-list.js +247 -52
- package/dist/collection/components/select/select-option/select-option.css +1 -1
- package/dist/collection/components/select/select-option/select-option.js +108 -46
- package/dist/collection/components/select/select.css +1 -1
- package/dist/collection/components/select/select.js +323 -118
- package/dist/collection/components/sign-in/sign-in.css +1 -1
- package/dist/collection/components/sign-in/sign-in.js +55 -16
- package/dist/collection/components/skip-link/skip-link-item/skip-link-item-alias.js +112 -3
- package/dist/collection/components/skip-link/skip-link-item/skip-link-item.css +1 -1
- package/dist/collection/components/skip-link/skip-link-item/skip-link-item.js +58 -5
- package/dist/collection/components/skip-link/skip-link.css +1 -1
- package/dist/collection/components/skip-link/skip-link.js +78 -39
- package/dist/collection/components/slider/slider.css +1 -1
- package/dist/collection/components/slider/slider.js +530 -132
- package/dist/collection/components/slider/slider.utils.js +178 -0
- package/dist/collection/components/step/step-item/step-item.css +1 -1
- package/dist/collection/components/step/step-item/step-item.js +29 -12
- package/dist/collection/components/step/step.css +1 -1
- package/dist/collection/components/step/step.js +119 -44
- package/dist/collection/components/switch/switch.css +1 -1
- package/dist/collection/components/switch/switch.js +48 -15
- package/dist/collection/components/tab/tab-item/tab-item.css +1 -1
- package/dist/collection/components/tab/tab-item/tab-item.js +49 -14
- package/dist/collection/components/tab/tab.css +1 -1
- package/dist/collection/components/tab/tab.js +89 -46
- package/dist/collection/components/table/table-body/table-body.css +1 -1
- package/dist/collection/components/table/table-body/table-body.js +11 -7
- package/dist/collection/components/table/table-cell/table-cell.css +1 -1
- package/dist/collection/components/table/table-cell/table-cell.js +36 -17
- package/dist/collection/components/table/table-header/table-header.css +1 -1
- package/dist/collection/components/table/table-header/table-header.js +11 -7
- package/dist/collection/components/table/table-header-cell/table-header-cell.css +1 -1
- package/dist/collection/components/table/table-header-cell/table-header-cell.js +35 -13
- package/dist/collection/components/table/table-row/table-row.css +1 -1
- package/dist/collection/components/table/table-row/table-row.js +24 -7
- package/dist/collection/components/table/table.css +1 -1
- package/dist/collection/components/table/table.js +107 -31
- package/dist/collection/components/tag/tag.css +1 -1
- package/dist/collection/components/tag/tag.js +86 -36
- package/dist/collection/components/textarea/textarea.css +1 -1
- package/dist/collection/components/textarea/textarea.js +222 -19
- package/dist/collection/components/tooltip/tooltip.css +1 -1
- package/dist/collection/components/tooltip/tooltip.js +134 -45
- package/dist/collection/components/upload/upload.css +1 -1
- package/dist/collection/components/upload/upload.js +135 -33
- package/dist/collection/components/wizard/wizard-panel/wizard-panel.css +1 -1
- package/dist/collection/components/wizard/wizard-panel/wizard-panel.js +54 -3
- package/dist/collection/components/wizard/wizard.css +1 -1
- package/dist/collection/components/wizard/wizard.js +82 -28
- package/dist/collection/pages/scripts/component-controls-core.js +95 -0
- package/dist/collection/pages/scripts/component-controls.js +238 -153
- package/dist/collection/pages/scripts/dev-event-console.js +5 -1
- package/dist/collection/pages/scripts/menu.js +90 -5
- package/dist/collection/pages/scripts/pageLoader.js +1486 -586
- package/dist/collection/pages/scripts/pageloader-preview.js +787 -0
- package/dist/collection/pages/scripts/playground-core.js +173 -0
- package/dist/collection/shared/utils/cssVariables.js +2 -0
- package/dist/collection/shared/utils/date.js +8 -4
- package/dist/collection/shared/utils/floating-ui.js +24 -1
- package/dist/collection/shared/utils/focus.js +31 -0
- package/dist/collection/shared/utils/getRandom.js +16 -1
- package/dist/collection/shared/utils/helpers.js +4 -11
- package/dist/collection/shared/utils/id.js +23 -7
- package/dist/collection/shared/utils/index.js +6 -1
- package/dist/collection/shared/utils/isEmpty.js +5 -3
- package/dist/collection/shared/utils/motion.js +25 -0
- package/dist/collection/shared/utils/ownership.js +113 -0
- package/dist/collection/shared/utils/prop-warning.js +47 -0
- package/dist/collection/shared/utils/props.js +79 -0
- package/dist/collection/shared/utils/swipe.js +11 -1
- package/dist/collection/shared/utils/transition.js +3 -0
- package/dist/collection/shared/utils/virtual-scroll.js +24 -0
- package/dist/components/br-avatar.d.ts +1 -1
- package/dist/components/br-avatar.js +1 -1
- package/dist/components/br-breadcrumb-item.d.ts +1 -1
- package/dist/components/br-breadcrumb-item.js +1 -1
- package/dist/components/br-breadcrumb.d.ts +1 -1
- package/dist/components/br-breadcrumb.js +1 -1
- package/dist/components/br-button.d.ts +1 -1
- package/dist/components/br-button.js +1 -1
- package/dist/components/br-card.d.ts +1 -1
- package/dist/components/br-card.js +1 -1
- package/dist/components/br-carousel-page.d.ts +1 -1
- package/dist/components/br-carousel-page.js +1 -1
- package/dist/components/br-carousel.d.ts +1 -1
- package/dist/components/br-carousel.js +1 -1
- package/dist/components/br-checkbox-group.d.ts +1 -1
- package/dist/components/br-checkbox-group.js +1 -1
- package/dist/components/br-checkbox.d.ts +1 -1
- package/dist/components/br-checkbox.js +1 -1
- package/dist/components/br-checkgroup.d.ts +1 -1
- package/dist/components/br-checkgroup.js +1 -1
- package/dist/components/br-collapse.d.ts +1 -1
- package/dist/components/br-collapse.js +1 -1
- package/dist/components/br-cookiebar-cookie.d.ts +1 -1
- package/dist/components/br-cookiebar-cookie.js +1 -1
- package/dist/components/br-cookiebar-group.d.ts +1 -1
- package/dist/components/br-cookiebar-group.js +1 -1
- package/dist/components/br-cookiebar-header.d.ts +1 -1
- package/dist/components/br-cookiebar-header.js +1 -1
- package/dist/components/br-cookiebar-link.d.ts +1 -1
- package/dist/components/br-cookiebar-link.js +1 -1
- package/dist/components/br-cookiebar-note-group.d.ts +1 -1
- package/dist/components/br-cookiebar-note-group.js +1 -1
- package/dist/components/br-cookiebar-note.d.ts +1 -1
- package/dist/components/br-cookiebar-note.js +1 -1
- package/dist/components/br-cookiebar.d.ts +1 -1
- package/dist/components/br-cookiebar.js +1 -1
- package/dist/components/br-crumb.d.ts +1 -1
- package/dist/components/br-crumb.js +1 -1
- package/dist/components/br-date-picker.d.ts +1 -1
- package/dist/components/br-date-picker.js +1 -1
- package/dist/components/br-datetime-input.d.ts +1 -1
- package/dist/components/br-datetime-input.js +1 -1
- package/dist/components/br-datetime-picker.d.ts +1 -1
- package/dist/components/br-datetime-picker.js +1 -1
- package/dist/components/br-divider.d.ts +1 -1
- package/dist/components/br-divider.js +1 -1
- package/dist/components/br-dropdown.d.ts +1 -1
- package/dist/components/br-dropdown.js +1 -1
- package/dist/components/br-footer-category.d.ts +1 -1
- package/dist/components/br-footer-category.js +1 -1
- package/dist/components/br-footer-item.d.ts +1 -1
- package/dist/components/br-footer-item.js +1 -1
- package/dist/components/br-footer-legal.d.ts +1 -1
- package/dist/components/br-footer-legal.js +1 -1
- package/dist/components/br-footer-logo.d.ts +1 -1
- package/dist/components/br-footer-logo.js +1 -1
- package/dist/components/br-footer-social.d.ts +1 -1
- package/dist/components/br-footer-social.js +1 -1
- package/dist/components/br-footer.d.ts +1 -1
- package/dist/components/br-footer.js +1 -1
- package/dist/components/br-header-function.d.ts +1 -1
- package/dist/components/br-header-function.js +1 -1
- package/dist/components/br-header-link.d.ts +1 -1
- package/dist/components/br-header-link.js +1 -1
- package/dist/components/br-header-list.d.ts +1 -1
- package/dist/components/br-header-list.js +1 -1
- package/dist/components/br-header-logo.d.ts +1 -1
- package/dist/components/br-header-logo.js +1 -1
- package/dist/components/br-header.d.ts +1 -1
- package/dist/components/br-header.js +1 -1
- package/dist/components/br-icon.d.ts +1 -1
- package/dist/components/br-icon.js +1 -1
- package/dist/components/br-input.d.ts +1 -1
- package/dist/components/br-input.js +1 -1
- package/dist/components/br-item.d.ts +1 -1
- package/dist/components/br-item.js +1 -1
- package/dist/components/br-link.d.ts +1 -1
- package/dist/components/br-link.js +1 -1
- package/dist/components/br-list.d.ts +1 -1
- package/dist/components/br-list.js +1 -1
- package/dist/components/br-loading.d.ts +1 -1
- package/dist/components/br-loading.js +1 -1
- package/dist/components/br-magic-button.d.ts +1 -1
- package/dist/components/br-magic-button.js +1 -1
- package/dist/components/br-menu-group.d.ts +1 -1
- package/dist/components/br-menu-group.js +1 -1
- package/dist/components/br-menu-header.d.ts +1 -1
- package/dist/components/br-menu-header.js +1 -1
- package/dist/components/br-menu-info.d.ts +1 -1
- package/dist/components/br-menu-info.js +1 -1
- package/dist/components/br-menu-item.d.ts +1 -1
- package/dist/components/br-menu-item.js +1 -1
- package/dist/components/br-menu-link.d.ts +1 -1
- package/dist/components/br-menu-link.js +1 -1
- package/dist/components/br-menu-list.d.ts +1 -1
- package/dist/components/br-menu-list.js +1 -1
- package/dist/components/br-menu-logo.d.ts +1 -1
- package/dist/components/br-menu-logo.js +1 -1
- package/dist/components/br-menu-social.d.ts +1 -1
- package/dist/components/br-menu-social.js +1 -1
- package/dist/components/br-menu.d.ts +1 -1
- package/dist/components/br-menu.js +1 -1
- package/dist/components/br-message.d.ts +1 -1
- package/dist/components/br-message.js +1 -1
- package/dist/components/br-modal.d.ts +1 -1
- package/dist/components/br-modal.js +1 -1
- package/dist/components/br-notification-body.d.ts +1 -1
- package/dist/components/br-notification-body.js +1 -1
- package/dist/components/br-notification-header.d.ts +1 -1
- package/dist/components/br-notification-header.js +1 -1
- package/dist/components/br-notification-item.d.ts +1 -1
- package/dist/components/br-notification-item.js +1 -1
- package/dist/components/br-notification.d.ts +1 -1
- package/dist/components/br-notification.js +1 -1
- package/dist/components/br-pagination.d.ts +1 -1
- package/dist/components/br-pagination.js +1 -1
- package/dist/components/br-radio-group.d.ts +1 -1
- package/dist/components/br-radio-group.js +1 -1
- package/dist/components/br-radio.d.ts +1 -1
- package/dist/components/br-radio.js +1 -1
- package/dist/components/br-scrim.d.ts +1 -1
- package/dist/components/br-scrim.js +1 -1
- package/dist/components/br-select-input.d.ts +1 -1
- package/dist/components/br-select-input.js +1 -1
- package/dist/components/br-select-list.d.ts +1 -1
- package/dist/components/br-select-list.js +1 -1
- package/dist/components/br-select-option.d.ts +1 -1
- package/dist/components/br-select-option.js +1 -1
- package/dist/components/br-select.d.ts +1 -1
- package/dist/components/br-select.js +1 -1
- package/dist/components/br-sign-in.d.ts +1 -1
- package/dist/components/br-sign-in.js +1 -1
- package/dist/components/br-skip-link-item.d.ts +1 -1
- package/dist/components/br-skip-link-item.js +1 -1
- package/dist/components/br-skip-link.d.ts +1 -1
- package/dist/components/br-skip-link.js +1 -1
- package/dist/components/br-skiplink-item.d.ts +1 -1
- package/dist/components/br-skiplink-item.js +1 -1
- package/dist/components/br-slider.d.ts +1 -1
- package/dist/components/br-slider.js +1 -1
- package/dist/components/br-step-item.d.ts +1 -1
- package/dist/components/br-step-item.js +1 -1
- package/dist/components/br-step.d.ts +1 -1
- package/dist/components/br-step.js +1 -1
- package/dist/components/br-switch.d.ts +1 -1
- package/dist/components/br-switch.js +1 -1
- package/dist/components/br-tab-item.d.ts +1 -1
- package/dist/components/br-tab-item.js +1 -1
- package/dist/components/br-tab.d.ts +1 -1
- package/dist/components/br-tab.js +1 -1
- package/dist/components/br-table-body.d.ts +1 -1
- package/dist/components/br-table-body.js +1 -1
- package/dist/components/br-table-cell.d.ts +1 -1
- package/dist/components/br-table-cell.js +1 -1
- package/dist/components/br-table-header-cell.d.ts +1 -1
- package/dist/components/br-table-header-cell.js +1 -1
- package/dist/components/br-table-header.d.ts +1 -1
- package/dist/components/br-table-header.js +1 -1
- package/dist/components/br-table-row.d.ts +1 -1
- package/dist/components/br-table-row.js +1 -1
- package/dist/components/br-table.d.ts +1 -1
- package/dist/components/br-table.js +1 -1
- package/dist/components/br-tag.d.ts +1 -1
- package/dist/components/br-tag.js +1 -1
- package/dist/components/br-textarea.d.ts +1 -1
- package/dist/components/br-textarea.js +1 -1
- package/dist/components/br-time-picker.d.ts +1 -1
- package/dist/components/br-time-picker.js +1 -1
- package/dist/components/br-tooltip.d.ts +1 -1
- package/dist/components/br-tooltip.js +1 -1
- package/dist/components/br-upload.d.ts +1 -1
- package/dist/components/br-upload.js +1 -1
- package/dist/components/br-wizard-panel.d.ts +1 -1
- package/dist/components/br-wizard-panel.js +1 -1
- package/dist/components/br-wizard.d.ts +1 -1
- package/dist/components/br-wizard.js +1 -1
- package/dist/components/index.d.ts +89 -89
- package/dist/components/index.js +1 -1
- package/dist/components/p-B0o70fWP.js +5 -0
- package/dist/components/p-B96LROz9.js +5 -0
- package/dist/components/p-BDqef5-y.js +5 -0
- package/dist/components/p-BEJGB0Nd.js +5 -0
- package/dist/{webcomponents/p-Dmfk7eEe.js → components/p-BJZC_NuV.js} +1 -1
- package/dist/components/p-BJtdabsr.js +5 -0
- package/dist/components/p-BP5zMCxG.js +5 -0
- package/dist/components/p-BRaphxoP.js +5 -0
- package/dist/components/p-BUzBa9L1.js +5 -0
- package/dist/components/{p-DA5GS53D.js → p-BblZlUp2.js} +1 -1
- package/dist/components/p-Bc4nAk5i.js +5 -0
- package/dist/components/{p-C1yRmdso.js → p-BcqVlof7.js} +1 -1
- package/dist/components/p-BeJxz5TQ.js +5 -0
- package/dist/components/p-Bezou5CQ.js +5 -0
- package/dist/components/p-BrNh9KdF.js +5 -0
- package/dist/components/p-C5th2dxu.js +5 -0
- package/dist/components/p-CDtFCbKp.js +5 -0
- package/dist/components/p-CEdUp183.js +5 -0
- package/dist/components/p-CF7t0uxQ.js +5 -0
- package/dist/components/p-CFzHx6zV.js +5 -0
- package/dist/components/p-CG4em0S6.js +5 -0
- package/dist/components/p-CI4D3-pf.js +5 -0
- package/dist/components/p-CIrVPkVg.js +5 -0
- package/dist/components/p-CNwZRgyL.js +5 -0
- package/dist/components/p-CppRJiyC.js +5 -0
- package/dist/components/p-Cvk1Ggs5.js +5 -0
- package/dist/components/p-D12US39c.js +5 -0
- package/dist/components/p-D9Zo6FlV.js +5 -0
- package/dist/components/p-DGPJkJsj.js +5 -0
- package/dist/components/p-DSHbttu9.js +5 -0
- package/dist/components/p-DTGNra9m.js +5 -0
- package/dist/components/p-DWhzxlCx.js +5 -0
- package/dist/components/p-DX1wAFn4.js +5 -0
- package/dist/components/p-DiLI514I.js +5 -0
- package/dist/components/p-Dma14GVa.js +5 -0
- package/dist/components/p-DpRZ4B0d.js +5 -0
- package/dist/components/p-G35qEQZd.js +5 -0
- package/dist/components/p-Ho_IybzR.js +5 -0
- package/dist/components/p-SvVnvJdC.js +5 -0
- package/dist/components/p-emAWunES.js +5 -0
- package/dist/components/p-fB79wKCm.js +5 -0
- package/dist/components/p-k7p4QJ8a.js +5 -0
- package/dist/esm/br-avatar.entry.js +21 -14
- package/dist/esm/br-breadcrumb-item.entry.js +2 -2
- package/dist/esm/br-breadcrumb.entry.js +49 -22
- package/dist/esm/br-button_2.entry.js +72 -35
- package/dist/esm/br-card.entry.js +6 -5
- package/dist/esm/br-carousel-page.entry.js +3 -3
- package/dist/esm/br-carousel.entry.js +78 -22
- package/dist/esm/br-checkbox-group.entry.js +157 -27
- package/dist/esm/br-checkbox.entry.js +86 -16
- package/dist/esm/br-checkgroup.entry.js +5 -2
- package/dist/esm/br-collapse_2.entry.js +86 -27
- package/dist/esm/br-cookiebar-cookie.entry.js +4 -4
- package/dist/esm/br-cookiebar-group.entry.js +4 -4
- package/dist/esm/br-cookiebar-header.entry.js +4 -4
- package/dist/esm/br-cookiebar-link.entry.js +14 -6
- package/dist/esm/br-cookiebar-note-group.entry.js +3 -5
- package/dist/esm/br-cookiebar-note.entry.js +4 -4
- package/dist/esm/br-cookiebar.entry.js +39 -26
- package/dist/esm/br-crumb.entry.js +2 -2
- package/dist/esm/br-date-picker_3.entry.js +207 -49
- package/dist/esm/br-datetime-picker.entry.js +82 -494
- package/dist/esm/br-divider.entry.js +70 -17
- package/dist/esm/br-dropdown_2.entry.js +305 -123
- package/dist/esm/br-footer-category.entry.js +10 -6
- package/dist/esm/br-footer-item.entry.js +9 -4
- package/dist/esm/br-footer-legal.entry.js +4 -4
- package/dist/esm/br-footer-logo.entry.js +22 -10
- package/dist/esm/br-footer-social.entry.js +14 -6
- package/dist/esm/br-footer.entry.js +16 -7
- package/dist/esm/br-header-function.entry.js +28 -7
- package/dist/esm/br-header-link.entry.js +25 -4
- package/dist/esm/br-header-list.entry.js +7 -18
- package/dist/esm/br-header-logo.entry.js +18 -7
- package/dist/esm/br-header.entry.js +72 -17
- package/dist/esm/br-icon.entry.js +160 -23
- package/dist/esm/br-input.entry.js +132 -41
- package/dist/esm/br-item.entry.js +96 -48
- package/dist/esm/br-link.entry.js +20 -7
- package/dist/esm/br-loading.entry.js +100 -38
- package/dist/esm/br-magic-button.entry.js +26 -9
- package/dist/esm/br-menu-group.entry.js +14 -3
- package/dist/esm/br-menu-header.entry.js +4 -4
- package/dist/esm/br-menu-info.entry.js +4 -4
- package/dist/esm/br-menu-item.entry.js +27 -5
- package/dist/esm/br-menu-link.entry.js +14 -6
- package/dist/esm/br-menu-list.entry.js +23 -27
- package/dist/esm/br-menu-logo.entry.js +4 -4
- package/dist/esm/br-menu-social.entry.js +16 -6
- package/dist/esm/br-menu.entry.js +42 -65
- package/dist/esm/br-modal.entry.js +26 -40
- package/dist/esm/br-notification-body.entry.js +4 -4
- package/dist/esm/br-notification-header.entry.js +4 -4
- package/dist/esm/br-notification-item.entry.js +14 -8
- package/dist/esm/br-notification.entry.js +24 -9
- package/dist/esm/br-pagination.entry.js +119 -87
- package/dist/esm/br-radio-group.entry.js +107 -58
- package/dist/esm/br-radio.entry.js +62 -12
- package/dist/esm/br-scrim.entry.js +161 -67
- package/dist/esm/br-select-input_3.entry.js +283 -90
- package/dist/esm/br-sign-in.entry.js +34 -15
- package/dist/esm/br-skip-link-item.entry.js +39 -2
- package/dist/esm/br-skip-link.entry.js +50 -33
- package/dist/esm/br-skiplink-item.entry.js +22 -6
- package/dist/esm/br-slider.entry.js +519 -97
- package/dist/esm/br-step_2.entry.js +98 -44
- package/dist/esm/br-switch.entry.js +21 -12
- package/dist/esm/br-tab-item.entry.js +38 -14
- package/dist/esm/br-tab.entry.js +57 -44
- package/dist/esm/br-table-body.entry.js +3 -3
- package/dist/esm/br-table-cell.entry.js +30 -13
- package/dist/esm/br-table-header-cell.entry.js +23 -7
- package/dist/esm/br-table-header.entry.js +3 -3
- package/dist/esm/br-table-row.entry.js +17 -3
- package/dist/esm/br-table.entry.js +68 -22
- package/dist/esm/br-tag.entry.js +49 -31
- package/dist/esm/br-textarea.entry.js +118 -13
- package/dist/esm/br-tooltip.entry.js +88 -42
- package/dist/esm/br-upload.entry.js +84 -25
- package/dist/esm/br-wizard-panel.entry.js +16 -3
- package/dist/esm/br-wizard.entry.js +52 -28
- package/dist/esm/{datetime-picker-constants-Bfm58jO6.js → datetime-picker-constants-BtRPYRvA.js} +1 -1
- package/dist/esm/{isValid-DIUZX1qS.js → datetime-picker-props-validation-BeTcUTnE.js} +476 -5
- package/dist/esm/{event-DFN_so7I.js → event-CfuJQ1DY.js} +1 -1
- package/dist/esm/{floating-ui-BavFwMnx.js → floating-ui-CskvaxD5.js} +24 -1
- package/dist/esm/{floating-ui.dom-DIK54tTj.js → floating-ui.dom-D9Zo6FlV.js} +201 -114
- package/dist/esm/{focus-DxZJrIyL.js → focus-CNwZRgyL.js} +20 -1
- package/dist/esm/header-context-BEJGB0Nd.js +15 -0
- package/dist/esm/id-BeJxz5TQ.js +34 -0
- package/dist/esm/{index-Bo-2igoO.js → index-BQPOWxe5.js} +1 -1
- package/dist/esm/{index-C2RBydfd.js → index-Dcn7tRST.js} +68 -752
- package/dist/esm/index.js +2 -2
- package/dist/esm/loader.js +3 -3
- package/dist/esm/motion-DWhzxlCx.js +27 -0
- package/dist/esm/ownership-CDtFCbKp.js +111 -0
- package/dist/esm/prop-warning-BlGV-x0w.js +56 -0
- package/dist/esm/props-D07GjR4_.js +116 -0
- package/dist/esm/{swipe-Dmfk7eEe.js → swipe-BJZC_NuV.js} +11 -1
- package/dist/esm/webcomponents.js +4 -4
- package/dist/hydrate/index.js +7370 -2603
- package/dist/hydrate/index.mjs +7370 -2603
- package/dist/loader/index.d.ts +1 -1
- package/dist/types/components/avatar/avatar.d.ts +34 -4
- package/dist/types/components/breadcrumb/breadcrumb-item/breadcrumb-item.d.ts +14 -2
- package/dist/types/components/breadcrumb/breadcrumb.d.ts +66 -5
- package/dist/types/components/breadcrumb/crumb/crumb.d.ts +13 -1
- package/dist/types/components/button/button.d.ts +45 -9
- package/dist/types/components/card/card.d.ts +31 -3
- package/dist/types/components/carousel/carousel-page/carousel-page.d.ts +10 -3
- package/dist/types/components/carousel/carousel.d.ts +46 -3
- package/dist/types/components/checkbox/checkbox.d.ts +59 -6
- package/dist/types/components/checkbox-group/checkbox-group.d.ts +47 -5
- package/dist/types/components/checkgroup/checkgroup.d.ts +27 -5
- package/dist/types/components/collapse/collapse.d.ts +33 -4
- package/dist/types/components/cookiebar/cookiebar-cookie/cookiebar-cookie.d.ts +16 -3
- package/dist/types/components/cookiebar/cookiebar-group/cookiebar-group.d.ts +15 -6
- package/dist/types/components/cookiebar/cookiebar-header/cookiebar-header.d.ts +14 -8
- package/dist/types/components/cookiebar/cookiebar-link/cookiebar-link.d.ts +16 -5
- package/dist/types/components/cookiebar/cookiebar-note/cookiebar-note.d.ts +13 -3
- package/dist/types/components/cookiebar/cookiebar-note-group/cookiebar-note-group.d.ts +13 -3
- package/dist/types/components/cookiebar/cookiebar.d.ts +35 -10
- package/dist/types/components/datetime-picker/date-picker/date-picker.d.ts +63 -7
- package/dist/types/components/datetime-picker/datetime-input/datetime-input.d.ts +51 -9
- package/dist/types/components/datetime-picker/datetime-picker-props-validation.d.ts +4 -2
- package/dist/types/components/datetime-picker/datetime-picker.d.ts +118 -12
- package/dist/types/components/datetime-picker/time-picker/time-picker.d.ts +38 -4
- package/dist/types/components/divider/divider.d.ts +45 -8
- package/dist/types/components/dropdown/dropdown.d.ts +41 -3
- package/dist/types/components/footer/footer-category/footer-category.d.ts +16 -1
- package/dist/types/components/footer/footer-item/footer-item.d.ts +17 -1
- package/dist/types/components/footer/footer-legal/footer-legal.d.ts +15 -1
- package/dist/types/components/footer/footer-logo/footer-logo.d.ts +21 -2
- package/dist/types/components/footer/footer-social/footer-social.d.ts +20 -3
- package/dist/types/components/footer/footer.d.ts +39 -3
- package/dist/types/components/header/header-context.d.ts +1 -0
- package/dist/types/components/header/header-function/header-function.d.ts +24 -2
- package/dist/types/components/header/header-link/header-link.d.ts +22 -1
- package/dist/types/components/header/header-list/header-list.d.ts +16 -8
- package/dist/types/components/header/header-logo/header-logo.d.ts +20 -1
- package/dist/types/components/header/header.d.ts +45 -7
- package/dist/types/components/icon/icon.d.ts +44 -13
- package/dist/types/components/input/input.d.ts +65 -15
- package/dist/types/components/item/item.d.ts +38 -5
- package/dist/types/components/link/link.d.ts +41 -9
- package/dist/types/components/list/list.d.ts +58 -8
- package/dist/types/components/loading/loading.d.ts +48 -8
- package/dist/types/components/magic-button/magic-button.d.ts +37 -3
- package/dist/types/components/menu/menu-group/menu-group.d.ts +19 -1
- package/dist/types/components/menu/menu-header/menu-header.d.ts +16 -1
- package/dist/types/components/menu/menu-info/menu-info.d.ts +14 -1
- package/dist/types/components/menu/menu-item/menu-item.d.ts +27 -3
- package/dist/types/components/menu/menu-link/menu-link.d.ts +17 -1
- package/dist/types/components/menu/menu-list/menu-list.d.ts +22 -4
- package/dist/types/components/menu/menu-logo/menu-logo.d.ts +14 -1
- package/dist/types/components/menu/menu-social/menu-social.d.ts +21 -2
- package/dist/types/components/menu/menu.d.ts +42 -9
- package/dist/types/components/menu/menu.utils.d.ts +2 -6
- package/dist/types/components/message/message.d.ts +38 -9
- package/dist/types/components/modal/modal.d.ts +34 -4
- package/dist/types/components/notification/notification-body/notification-body.d.ts +12 -3
- package/dist/types/components/notification/notification-header/notification-header.d.ts +12 -3
- package/dist/types/components/notification/notification-item/notification-item.d.ts +15 -3
- package/dist/types/components/notification/notification.d.ts +36 -5
- package/dist/types/components/pagination/pagination.d.ts +56 -20
- package/dist/types/components/radio/radio.d.ts +49 -4
- package/dist/types/components/radio-group/radio-group.d.ts +52 -10
- package/dist/types/components/scrim/scrim.d.ts +72 -11
- package/dist/types/components/scrim/scrim.utils.d.ts +2 -17
- package/dist/types/components/select/select-input/select-input.d.ts +22 -4
- package/dist/types/components/select/select-list/select-list.d.ts +51 -5
- package/dist/types/components/select/select-option/select-option.d.ts +31 -8
- package/dist/types/components/select/select.d.ts +152 -13
- package/dist/types/components/select/select.types.d.ts +5 -0
- package/dist/types/components/sign-in/sign-in.d.ts +30 -3
- package/dist/types/components/skip-link/skip-link-item/skip-link-item-alias.d.ts +15 -2
- package/dist/types/components/skip-link/skip-link-item/skip-link-item.d.ts +22 -1
- package/dist/types/components/skip-link/skip-link.d.ts +37 -3
- package/dist/types/components/slider/slider.d.ts +147 -21
- package/dist/types/components/slider/slider.types.d.ts +7 -2
- package/dist/types/components/slider/slider.utils.d.ts +27 -0
- package/dist/types/components/step/step-item/step-item.d.ts +15 -3
- package/dist/types/components/step/step.d.ts +47 -12
- package/dist/types/components/switch/switch.d.ts +39 -6
- package/dist/types/components/tab/tab-item/tab-item.d.ts +20 -4
- package/dist/types/components/tab/tab.d.ts +41 -11
- package/dist/types/components/table/table-body/table-body.d.ts +10 -6
- package/dist/types/components/table/table-cell/table-cell.d.ts +10 -6
- package/dist/types/components/table/table-header/table-header.d.ts +10 -6
- package/dist/types/components/table/table-header-cell/table-header-cell.d.ts +18 -6
- package/dist/types/components/table/table-row/table-row.d.ts +11 -6
- package/dist/types/components/table/table.d.ts +49 -11
- package/dist/types/components/tag/tag.d.ts +55 -7
- package/dist/types/components/textarea/textarea.d.ts +75 -5
- package/dist/types/components/textarea/textarea.types.d.ts +4 -0
- package/dist/types/components/tooltip/tooltip.d.ts +46 -8
- package/dist/types/components/upload/upload.d.ts +78 -10
- package/dist/types/components/wizard/wizard-panel/wizard-panel.d.ts +20 -2
- package/dist/types/components/wizard/wizard.d.ts +44 -7
- package/dist/types/components.d.ts +5825 -1352
- package/dist/types/shared/utils/floating-ui.d.ts +4 -0
- package/dist/types/shared/utils/focus.d.ts +14 -0
- package/dist/types/shared/utils/getRandom.d.ts +1 -0
- package/dist/types/shared/utils/id.d.ts +1 -1
- package/dist/types/shared/utils/index.d.ts +6 -1
- package/dist/types/shared/utils/motion.d.ts +14 -0
- package/dist/types/shared/utils/ownership.d.ts +33 -0
- package/dist/types/shared/utils/prop-warning.d.ts +7 -0
- package/dist/types/shared/utils/props.d.ts +38 -0
- package/dist/types/shared/utils/swipe.d.ts +5 -0
- package/dist/types/shared/utils/virtual-scroll.d.ts +25 -0
- package/dist/types/stencil-public-runtime.d.ts +12 -0
- package/dist/webcomponents/index.esm.js +1 -1
- package/dist/webcomponents/p-01baafce.entry.js +5 -0
- package/dist/webcomponents/p-01fb0754.entry.js +5 -0
- package/dist/webcomponents/p-030c02f8.entry.js +5 -0
- package/dist/webcomponents/p-03359c92.entry.js +5 -0
- package/dist/webcomponents/p-09770c98.entry.js +5 -0
- package/dist/webcomponents/p-0b9714f1.entry.js +5 -0
- package/dist/webcomponents/p-12aa36a8.entry.js +5 -0
- package/dist/webcomponents/p-130b6e06.entry.js +5 -0
- package/dist/webcomponents/p-144f8c8d.entry.js +5 -0
- package/dist/webcomponents/p-14fe22e2.entry.js +5 -0
- package/dist/webcomponents/p-1ff9210a.entry.js +5 -0
- package/dist/webcomponents/p-2605cdc3.entry.js +5 -0
- package/dist/webcomponents/p-27afaec9.entry.js +5 -0
- package/dist/webcomponents/p-2a50e42d.entry.js +5 -0
- package/dist/webcomponents/p-327f034f.entry.js +5 -0
- package/dist/webcomponents/p-342650b8.entry.js +5 -0
- package/dist/webcomponents/p-38f6a78b.entry.js +5 -0
- package/dist/webcomponents/p-3920fe3a.entry.js +5 -0
- package/dist/webcomponents/p-3ae97345.entry.js +5 -0
- package/dist/webcomponents/p-3cce767c.entry.js +5 -0
- package/dist/webcomponents/p-3df6c5d2.entry.js +5 -0
- package/dist/webcomponents/p-3e287899.entry.js +5 -0
- package/dist/webcomponents/p-3e5580ba.entry.js +5 -0
- package/dist/webcomponents/p-403637dd.entry.js +5 -0
- package/dist/webcomponents/p-435c8ef2.entry.js +5 -0
- package/dist/webcomponents/p-59da5b55.entry.js +5 -0
- package/dist/webcomponents/p-5dd4314c.entry.js +5 -0
- package/dist/webcomponents/p-646af6a5.entry.js +5 -0
- package/dist/webcomponents/p-670e8fec.entry.js +5 -0
- package/dist/webcomponents/p-68046544.entry.js +5 -0
- package/dist/webcomponents/p-68ec76b8.entry.js +5 -0
- package/dist/webcomponents/p-6c0ea20c.entry.js +5 -0
- package/dist/webcomponents/p-6c2fe5e4.entry.js +5 -0
- package/dist/webcomponents/p-707df9b9.entry.js +5 -0
- package/dist/webcomponents/p-72b839fe.entry.js +5 -0
- package/dist/webcomponents/p-73dcc05b.entry.js +5 -0
- package/dist/webcomponents/p-7acf20d3.entry.js +5 -0
- package/dist/webcomponents/p-7b01bddb.entry.js +5 -0
- package/dist/webcomponents/p-7cd38850.entry.js +5 -0
- package/dist/webcomponents/p-82454383.entry.js +5 -0
- package/dist/webcomponents/p-91e959a8.entry.js +5 -0
- package/dist/webcomponents/p-964c01e6.entry.js +5 -0
- package/dist/webcomponents/p-9858e42a.entry.js +5 -0
- package/dist/webcomponents/p-9c4200b0.entry.js +5 -0
- package/dist/webcomponents/p-9d9c87b1.entry.js +5 -0
- package/dist/webcomponents/p-B0PbhaxL.js +5 -0
- package/dist/webcomponents/p-BEJGB0Nd.js +5 -0
- package/dist/{components/p-Dmfk7eEe.js → webcomponents/p-BJZC_NuV.js} +1 -1
- package/dist/webcomponents/p-BJtdabsr.js +5 -0
- package/dist/webcomponents/p-BeJxz5TQ.js +5 -0
- package/dist/webcomponents/p-BlGV-x0w.js +5 -0
- package/dist/webcomponents/{p-Bfm58jO6.js → p-BtRPYRvA.js} +1 -1
- package/dist/webcomponents/p-CDtFCbKp.js +5 -0
- package/dist/webcomponents/p-CNwZRgyL.js +5 -0
- package/dist/webcomponents/{p-DFN_so7I.js → p-CfuJQ1DY.js} +1 -1
- package/dist/webcomponents/p-D9Zo6FlV.js +5 -0
- package/dist/webcomponents/{p-BhMVJQ4-.js → p-DV-iW9Aj.js} +1 -1
- package/dist/webcomponents/p-DWhzxlCx.js +5 -0
- package/dist/webcomponents/p-Dcn7tRST.js +7 -0
- package/dist/webcomponents/p-EbtQZm5s.js +5 -0
- package/dist/webcomponents/p-a0931550.entry.js +5 -0
- package/dist/webcomponents/p-a212fd85.entry.js +5 -0
- package/dist/webcomponents/p-a2e75143.entry.js +5 -0
- package/dist/webcomponents/p-a3bb98c9.entry.js +5 -0
- package/dist/webcomponents/p-a8b5dba0.entry.js +5 -0
- package/dist/webcomponents/p-aa909443.entry.js +5 -0
- package/dist/webcomponents/p-abaf2365.entry.js +5 -0
- package/dist/webcomponents/p-aeb16645.entry.js +5 -0
- package/dist/webcomponents/p-b287c384.entry.js +5 -0
- package/dist/webcomponents/p-b506b0a1.entry.js +5 -0
- package/dist/webcomponents/p-b520c08c.entry.js +5 -0
- package/dist/webcomponents/p-b94c3f84.entry.js +5 -0
- package/dist/webcomponents/p-bda62f90.entry.js +5 -0
- package/dist/webcomponents/p-c201ae16.entry.js +5 -0
- package/dist/webcomponents/p-c7e899a1.entry.js +5 -0
- package/dist/webcomponents/p-c8b7bbab.entry.js +5 -0
- package/dist/webcomponents/p-cbf3e251.entry.js +5 -0
- package/dist/webcomponents/{p-7f7506f0.entry.js → p-cff24492.entry.js} +1 -1
- package/dist/webcomponents/p-d35cf5b4.entry.js +5 -0
- package/dist/webcomponents/p-d45ffe9c.entry.js +5 -0
- package/dist/webcomponents/p-d719a4af.entry.js +5 -0
- package/dist/webcomponents/p-d826c052.entry.js +5 -0
- package/dist/webcomponents/p-da21a60d.entry.js +5 -0
- package/dist/webcomponents/p-de0c7f26.entry.js +5 -0
- package/dist/webcomponents/p-e20188c0.entry.js +5 -0
- package/dist/webcomponents/p-e27882e1.entry.js +5 -0
- package/dist/webcomponents/p-e3de5bb3.entry.js +5 -0
- package/dist/webcomponents/p-e624ff04.entry.js +5 -0
- package/dist/webcomponents/p-ed5af0e4.entry.js +5 -0
- package/dist/webcomponents/p-edc6da0e.entry.js +5 -0
- package/dist/webcomponents/p-f24fcf3d.entry.js +5 -0
- package/dist/webcomponents/p-f52ef0dc.entry.js +5 -0
- package/dist/webcomponents/{p-12286e73.entry.js → p-f558d7b9.entry.js} +1 -1
- package/dist/webcomponents/p-fcab1428.entry.js +5 -0
- package/dist/webcomponents/p-fe1729a7.entry.js +5 -0
- package/dist/webcomponents/webcomponents.esm.js +1 -1
- package/package.json +18 -3
- package/dist/cjs/clamp-Co_hWptd.js +0 -25
- package/dist/cjs/id-CjRFMzf6.js +0 -20
- package/dist/cjs/props-CScmBvKd.js +0 -24
- package/dist/collection/pages/components/cookiebar/index.js +0 -26
- package/dist/collection/pages/components/link/index.js +0 -29
- package/dist/collection/pages/components/pagination/index.js +0 -12
- package/dist/collection/pages/components/slider/index.js +0 -18
- package/dist/components/p-34Jfn-U-.js +0 -5
- package/dist/components/p-6OdfnwnK.js +0 -5
- package/dist/components/p-B7Amgxkp.js +0 -5
- package/dist/components/p-BKuMQJrQ.js +0 -5
- package/dist/components/p-BPJpHGOW.js +0 -5
- package/dist/components/p-Bb-nLtTG.js +0 -5
- package/dist/components/p-BeE7R9nu.js +0 -5
- package/dist/components/p-BkS6ujyf.js +0 -5
- package/dist/components/p-Bo0QYHJO.js +0 -5
- package/dist/components/p-C2i2c_io.js +0 -5
- package/dist/components/p-C7v0lVlX.js +0 -5
- package/dist/components/p-CMBsvswx.js +0 -5
- package/dist/components/p-CRrimdz6.js +0 -5
- package/dist/components/p-CWORw84-.js +0 -5
- package/dist/components/p-CvUMXJCl.js +0 -5
- package/dist/components/p-D6zroLx5.js +0 -5
- package/dist/components/p-DBP6K_aq.js +0 -5
- package/dist/components/p-DCrVo-8T.js +0 -5
- package/dist/components/p-DFUKDNck.js +0 -5
- package/dist/components/p-DHicj0By.js +0 -5
- package/dist/components/p-DIK54tTj.js +0 -5
- package/dist/components/p-DQRSHR-D.js +0 -5
- package/dist/components/p-DRVMm1Py.js +0 -5
- package/dist/components/p-DWPmUV72.js +0 -5
- package/dist/components/p-DXjQyH6s.js +0 -5
- package/dist/components/p-DmCxdB9P.js +0 -5
- package/dist/components/p-Dp0xy_3n.js +0 -5
- package/dist/components/p-DxZJrIyL.js +0 -5
- package/dist/components/p-JAkkThgf.js +0 -5
- package/dist/components/p-Ud-WB0hx.js +0 -5
- package/dist/components/p-fpMNttbg.js +0 -5
- package/dist/components/p-gvnfuTjd.js +0 -5
- package/dist/components/p-qYONSNcf.js +0 -5
- package/dist/components/p-qhhHGJY1.js +0 -5
- package/dist/components/p-ttI0nvv_.js +0 -5
- package/dist/components/p-ukNmfGNP.js +0 -5
- package/dist/components/p-xa8e1kSW.js +0 -5
- package/dist/esm/clamp-gvnfuTjd.js +0 -23
- package/dist/esm/id-BkS6ujyf.js +0 -18
- package/dist/esm/props-DRVMm1Py.js +0 -22
- package/dist/webcomponents/p-0196804a.entry.js +0 -5
- package/dist/webcomponents/p-0410186a.entry.js +0 -5
- package/dist/webcomponents/p-0415ef22.entry.js +0 -5
- package/dist/webcomponents/p-0777c7b1.entry.js +0 -5
- package/dist/webcomponents/p-0caa4d12.entry.js +0 -5
- package/dist/webcomponents/p-0d4f718d.entry.js +0 -5
- package/dist/webcomponents/p-0e84c9e8.entry.js +0 -5
- package/dist/webcomponents/p-147ac8d3.entry.js +0 -5
- package/dist/webcomponents/p-1580beee.entry.js +0 -5
- package/dist/webcomponents/p-18ee6175.entry.js +0 -5
- package/dist/webcomponents/p-1bca4499.entry.js +0 -5
- package/dist/webcomponents/p-1c303a4e.entry.js +0 -5
- package/dist/webcomponents/p-1d6b0b6f.entry.js +0 -5
- package/dist/webcomponents/p-1d8cb8fd.entry.js +0 -5
- package/dist/webcomponents/p-224daaac.entry.js +0 -5
- package/dist/webcomponents/p-28426d2a.entry.js +0 -5
- package/dist/webcomponents/p-2abd2da0.entry.js +0 -5
- package/dist/webcomponents/p-2fdc51ae.entry.js +0 -5
- package/dist/webcomponents/p-30c428b6.entry.js +0 -5
- package/dist/webcomponents/p-36bbea4e.entry.js +0 -5
- package/dist/webcomponents/p-3907ebfa.entry.js +0 -5
- package/dist/webcomponents/p-39a16f9d.entry.js +0 -5
- package/dist/webcomponents/p-3ebbd2f5.entry.js +0 -5
- package/dist/webcomponents/p-3ef7eac8.entry.js +0 -5
- package/dist/webcomponents/p-45356e9a.entry.js +0 -5
- package/dist/webcomponents/p-46513db4.entry.js +0 -5
- package/dist/webcomponents/p-4c13221a.entry.js +0 -5
- package/dist/webcomponents/p-51ce2c31.entry.js +0 -5
- package/dist/webcomponents/p-52df61cb.entry.js +0 -5
- package/dist/webcomponents/p-569134cf.entry.js +0 -5
- package/dist/webcomponents/p-5ce7db4a.entry.js +0 -5
- package/dist/webcomponents/p-5f373708.entry.js +0 -5
- package/dist/webcomponents/p-5f6afb79.entry.js +0 -5
- package/dist/webcomponents/p-5fc7ba4c.entry.js +0 -5
- package/dist/webcomponents/p-66006312.entry.js +0 -5
- package/dist/webcomponents/p-66b13fd9.entry.js +0 -5
- package/dist/webcomponents/p-6OdfnwnK.js +0 -5
- package/dist/webcomponents/p-750799b7.entry.js +0 -5
- package/dist/webcomponents/p-756ff2ad.entry.js +0 -5
- package/dist/webcomponents/p-765bfe27.entry.js +0 -5
- package/dist/webcomponents/p-7ab96c11.entry.js +0 -5
- package/dist/webcomponents/p-7c2ff8b4.entry.js +0 -5
- package/dist/webcomponents/p-7fb03a49.entry.js +0 -5
- package/dist/webcomponents/p-82200563.entry.js +0 -5
- package/dist/webcomponents/p-83ff4579.entry.js +0 -5
- package/dist/webcomponents/p-85f8063b.entry.js +0 -5
- package/dist/webcomponents/p-8b558233.entry.js +0 -5
- package/dist/webcomponents/p-8e6c2767.entry.js +0 -5
- package/dist/webcomponents/p-8e819355.entry.js +0 -5
- package/dist/webcomponents/p-92a9b9c4.entry.js +0 -5
- package/dist/webcomponents/p-966ad32f.entry.js +0 -5
- package/dist/webcomponents/p-9679d230.entry.js +0 -5
- package/dist/webcomponents/p-96dd663b.entry.js +0 -5
- package/dist/webcomponents/p-98843fa3.entry.js +0 -5
- package/dist/webcomponents/p-9a375eff.entry.js +0 -5
- package/dist/webcomponents/p-9b358cff.entry.js +0 -5
- package/dist/webcomponents/p-9f7558c7.entry.js +0 -5
- package/dist/webcomponents/p-BkS6ujyf.js +0 -5
- package/dist/webcomponents/p-C2RBydfd.js +0 -6
- package/dist/webcomponents/p-CO5cOQQU.js +0 -5
- package/dist/webcomponents/p-DIK54tTj.js +0 -5
- package/dist/webcomponents/p-DRVMm1Py.js +0 -5
- package/dist/webcomponents/p-DxZJrIyL.js +0 -5
- package/dist/webcomponents/p-a382e115.entry.js +0 -5
- package/dist/webcomponents/p-a4ae72e3.entry.js +0 -5
- package/dist/webcomponents/p-a994c190.entry.js +0 -5
- package/dist/webcomponents/p-a9ff7c25.entry.js +0 -5
- package/dist/webcomponents/p-c0b0f531.entry.js +0 -5
- package/dist/webcomponents/p-c211af17.entry.js +0 -5
- package/dist/webcomponents/p-c492d926.entry.js +0 -5
- package/dist/webcomponents/p-c4cfe599.entry.js +0 -5
- package/dist/webcomponents/p-c846e784.entry.js +0 -5
- package/dist/webcomponents/p-c949d993.entry.js +0 -5
- package/dist/webcomponents/p-d1e899cd.entry.js +0 -5
- package/dist/webcomponents/p-d38d82cc.entry.js +0 -5
- package/dist/webcomponents/p-e0ce536a.entry.js +0 -5
- package/dist/webcomponents/p-e1331288.entry.js +0 -5
- package/dist/webcomponents/p-e360a463.entry.js +0 -5
- package/dist/webcomponents/p-f078f972.entry.js +0 -5
- package/dist/webcomponents/p-f26038e2.entry.js +0 -5
- package/dist/webcomponents/p-f303f6b3.entry.js +0 -5
- package/dist/webcomponents/p-f6318e94.entry.js +0 -5
- package/dist/webcomponents/p-f85ee01c.entry.js +0 -5
- package/dist/webcomponents/p-fcd4ae48.entry.js +0 -5
- package/dist/webcomponents/p-ffe0241e.entry.js +0 -5
- package/dist/webcomponents/p-gvnfuTjd.js +0 -5
|
@@ -6,37 +6,13 @@ const NAMESPACE = 'webcomponents';
|
|
|
6
6
|
const BUILD = /* webcomponents */ { hotModuleReplacement: false, hydratedSelectorName: "hydrated", lazyLoad: true, propChangeCallback: true, shadowDom: true, state: true, updatable: true};
|
|
7
7
|
|
|
8
8
|
/*
|
|
9
|
-
Stencil Client Platform v4.
|
|
9
|
+
Stencil Client Platform v4.44.2 | MIT Licensed | https://stenciljs.com
|
|
10
10
|
*/
|
|
11
11
|
|
|
12
12
|
|
|
13
13
|
// src/utils/constants.ts
|
|
14
14
|
var SVG_NS = "http://www.w3.org/2000/svg";
|
|
15
15
|
var HTML_NS = "http://www.w3.org/1999/xhtml";
|
|
16
|
-
var PrimitiveType = /* @__PURE__ */ ((PrimitiveType2) => {
|
|
17
|
-
PrimitiveType2["Undefined"] = "undefined";
|
|
18
|
-
PrimitiveType2["Null"] = "null";
|
|
19
|
-
PrimitiveType2["String"] = "string";
|
|
20
|
-
PrimitiveType2["Number"] = "number";
|
|
21
|
-
PrimitiveType2["SpecialNumber"] = "number";
|
|
22
|
-
PrimitiveType2["Boolean"] = "boolean";
|
|
23
|
-
PrimitiveType2["BigInt"] = "bigint";
|
|
24
|
-
return PrimitiveType2;
|
|
25
|
-
})(PrimitiveType || {});
|
|
26
|
-
var NonPrimitiveType = /* @__PURE__ */ ((NonPrimitiveType2) => {
|
|
27
|
-
NonPrimitiveType2["Array"] = "array";
|
|
28
|
-
NonPrimitiveType2["Date"] = "date";
|
|
29
|
-
NonPrimitiveType2["Map"] = "map";
|
|
30
|
-
NonPrimitiveType2["Object"] = "object";
|
|
31
|
-
NonPrimitiveType2["RegularExpression"] = "regexp";
|
|
32
|
-
NonPrimitiveType2["Set"] = "set";
|
|
33
|
-
NonPrimitiveType2["Channel"] = "channel";
|
|
34
|
-
NonPrimitiveType2["Symbol"] = "symbol";
|
|
35
|
-
return NonPrimitiveType2;
|
|
36
|
-
})(NonPrimitiveType || {});
|
|
37
|
-
var TYPE_CONSTANT = "type";
|
|
38
|
-
var VALUE_CONSTANT = "value";
|
|
39
|
-
var SERIALIZED_PREFIX = "serialized:";
|
|
40
16
|
|
|
41
17
|
// src/utils/get-prop-descriptor.ts
|
|
42
18
|
function getPropertyDescriptor(obj, memberName, getOnly) {
|
|
@@ -122,7 +98,9 @@ var consoleError = (e, el) => (0, console.error)(e, el);
|
|
|
122
98
|
|
|
123
99
|
// src/client/client-load-module.ts
|
|
124
100
|
var cmpModules = /* @__PURE__ */ new Map();
|
|
101
|
+
var failedLoadAttempts = /* @__PURE__ */ new Map();
|
|
125
102
|
var loadModule = (cmpMeta, hostRef, hmrVersionId) => {
|
|
103
|
+
var _a;
|
|
126
104
|
const exportName = cmpMeta.$tagName$.replace(/-/g, "_");
|
|
127
105
|
const bundleId = cmpMeta.$lazyBundleId$;
|
|
128
106
|
if (!bundleId) {
|
|
@@ -132,6 +110,11 @@ var loadModule = (cmpMeta, hostRef, hmrVersionId) => {
|
|
|
132
110
|
if (module) {
|
|
133
111
|
return module[exportName];
|
|
134
112
|
}
|
|
113
|
+
const retryCount = (_a = failedLoadAttempts.get(bundleId)) != null ? _a : 0;
|
|
114
|
+
const cacheBustParams = [
|
|
115
|
+
retryCount > 0 ? `s-retry=${retryCount}` : "",
|
|
116
|
+
""
|
|
117
|
+
].filter(Boolean).join("&");
|
|
135
118
|
|
|
136
119
|
if (!hmrVersionId || !BUILD.hotModuleReplacement) {
|
|
137
120
|
const processMod = importedModule => {
|
|
@@ -304,6 +287,10 @@ var loadModule = (cmpMeta, hostRef, hmrVersionId) => {
|
|
|
304
287
|
return import(
|
|
305
288
|
/* webpackMode: "lazy" */
|
|
306
289
|
'./br-notification-item.entry.js').then(processMod, consoleError);
|
|
290
|
+
case 'br-pagination':
|
|
291
|
+
return import(
|
|
292
|
+
/* webpackMode: "lazy" */
|
|
293
|
+
'./br-pagination.entry.js').then(processMod, consoleError);
|
|
307
294
|
case 'br-radio':
|
|
308
295
|
return import(
|
|
309
296
|
/* webpackMode: "lazy" */
|
|
@@ -320,10 +307,6 @@ var loadModule = (cmpMeta, hostRef, hmrVersionId) => {
|
|
|
320
307
|
return import(
|
|
321
308
|
/* webpackMode: "lazy" */
|
|
322
309
|
'./br-skip-link.entry.js').then(processMod, consoleError);
|
|
323
|
-
case 'br-slider':
|
|
324
|
-
return import(
|
|
325
|
-
/* webpackMode: "lazy" */
|
|
326
|
-
'./br-slider.entry.js').then(processMod, consoleError);
|
|
327
310
|
case 'br-tab':
|
|
328
311
|
return import(
|
|
329
312
|
/* webpackMode: "lazy" */
|
|
@@ -412,10 +395,10 @@ var loadModule = (cmpMeta, hostRef, hmrVersionId) => {
|
|
|
412
395
|
return import(
|
|
413
396
|
/* webpackMode: "lazy" */
|
|
414
397
|
'./br-item.entry.js').then(processMod, consoleError);
|
|
415
|
-
case 'br-
|
|
398
|
+
case 'br-slider':
|
|
416
399
|
return import(
|
|
417
400
|
/* webpackMode: "lazy" */
|
|
418
|
-
'./br-
|
|
401
|
+
'./br-slider.entry.js').then(processMod, consoleError);
|
|
419
402
|
case 'br-upload':
|
|
420
403
|
return import(
|
|
421
404
|
/* webpackMode: "lazy" */
|
|
@@ -448,14 +431,14 @@ var loadModule = (cmpMeta, hostRef, hmrVersionId) => {
|
|
|
448
431
|
return import(
|
|
449
432
|
/* webpackMode: "lazy" */
|
|
450
433
|
'./br-dropdown_2.entry.js').then(processMod, consoleError);
|
|
451
|
-
case 'br-select-input_3':
|
|
452
|
-
return import(
|
|
453
|
-
/* webpackMode: "lazy" */
|
|
454
|
-
'./br-select-input_3.entry.js').then(processMod, consoleError);
|
|
455
434
|
case 'br-datetime-picker':
|
|
456
435
|
return import(
|
|
457
436
|
/* webpackMode: "lazy" */
|
|
458
437
|
'./br-datetime-picker.entry.js').then(processMod, consoleError);
|
|
438
|
+
case 'br-select-input_3':
|
|
439
|
+
return import(
|
|
440
|
+
/* webpackMode: "lazy" */
|
|
441
|
+
'./br-select-input_3.entry.js').then(processMod, consoleError);
|
|
459
442
|
case 'br-date-picker_3':
|
|
460
443
|
return import(
|
|
461
444
|
/* webpackMode: "lazy" */
|
|
@@ -467,15 +450,17 @@ var loadModule = (cmpMeta, hostRef, hmrVersionId) => {
|
|
|
467
450
|
/* webpackInclude: /\.entry\.js$/ */
|
|
468
451
|
/* webpackExclude: /\.system\.entry\.js$/ */
|
|
469
452
|
/* webpackMode: "lazy" */
|
|
470
|
-
`./${bundleId}.entry.js${""}`
|
|
453
|
+
`./${bundleId}.entry.js${cacheBustParams ? "?" + cacheBustParams : ""}`
|
|
471
454
|
).then(
|
|
472
455
|
(importedModule) => {
|
|
473
456
|
{
|
|
457
|
+
failedLoadAttempts.delete(bundleId);
|
|
474
458
|
cmpModules.set(bundleId, importedModule);
|
|
475
459
|
}
|
|
476
460
|
return importedModule[exportName];
|
|
477
461
|
},
|
|
478
462
|
(e) => {
|
|
463
|
+
failedLoadAttempts.set(bundleId, retryCount + 1);
|
|
479
464
|
consoleError(e, hostRef.$hostElement$);
|
|
480
465
|
}
|
|
481
466
|
);
|
|
@@ -483,19 +468,11 @@ var loadModule = (cmpMeta, hostRef, hmrVersionId) => {
|
|
|
483
468
|
|
|
484
469
|
// src/client/client-style.ts
|
|
485
470
|
var styles = /* @__PURE__ */ new Map();
|
|
486
|
-
|
|
487
|
-
// src/runtime/runtime-constants.ts
|
|
488
|
-
var CONTENT_REF_ID = "r";
|
|
489
|
-
var ORG_LOCATION_ID = "o";
|
|
490
|
-
var SLOT_NODE_ID = "s";
|
|
491
|
-
var TEXT_NODE_ID = "t";
|
|
492
|
-
var COMMENT_NODE_ID = "c";
|
|
493
|
-
var HYDRATE_ID = "s-id";
|
|
494
|
-
var HYDRATED_STYLE_ID = "sty-id";
|
|
495
|
-
var HYDRATE_CHILD_ID = "c-id";
|
|
496
471
|
var HYDRATED_CSS = "{visibility:hidden}.hydrated{visibility:inherit}";
|
|
497
472
|
var SLOT_FB_CSS = "slot-fb{display:contents}slot-fb[hidden]{display:none}";
|
|
498
473
|
var XLINK_NS = "http://www.w3.org/1999/xlink";
|
|
474
|
+
var MAX_LAZY_LOAD_RETRIES = 3;
|
|
475
|
+
var LAZY_LOAD_RETRY_INTERVAL_MS = 1e3;
|
|
499
476
|
var FORM_ASSOCIATED_CUSTOM_ELEMENT_CALLBACKS = [
|
|
500
477
|
"formAssociatedCallback",
|
|
501
478
|
"formResetCallback",
|
|
@@ -548,6 +525,10 @@ var supportsMutableAdoptedStyleSheets = supportsConstructableStylesheets ? /* @_
|
|
|
548
525
|
var queuePending = false;
|
|
549
526
|
var queueDomReads = [];
|
|
550
527
|
var queueDomWrites = [];
|
|
528
|
+
var scheduleFlush = () => {
|
|
529
|
+
var _a;
|
|
530
|
+
return ((_a = win.document) == null ? void 0 : _a.hidden) ? nextTick(flush) : plt.raf(flush);
|
|
531
|
+
};
|
|
551
532
|
var queueTask = (queue, write) => (cb) => {
|
|
552
533
|
queue.push(cb);
|
|
553
534
|
if (!queuePending) {
|
|
@@ -555,7 +536,7 @@ var queueTask = (queue, write) => (cb) => {
|
|
|
555
536
|
if (write && plt.$flags$ & 4 /* queueSync */) {
|
|
556
537
|
nextTick(flush);
|
|
557
538
|
} else {
|
|
558
|
-
|
|
539
|
+
scheduleFlush();
|
|
559
540
|
}
|
|
560
541
|
}
|
|
561
542
|
};
|
|
@@ -574,7 +555,7 @@ var flush = () => {
|
|
|
574
555
|
{
|
|
575
556
|
consume(queueDomWrites);
|
|
576
557
|
if (queuePending = queueDomReads.length > 0) {
|
|
577
|
-
|
|
558
|
+
scheduleFlush();
|
|
578
559
|
}
|
|
579
560
|
}
|
|
580
561
|
};
|
|
@@ -645,7 +626,7 @@ function getHostSlotNodes(childNodes, hostName, slotName) {
|
|
|
645
626
|
slottedNodes.push(childNode);
|
|
646
627
|
if (typeof slotName !== "undefined") return slottedNodes;
|
|
647
628
|
}
|
|
648
|
-
slottedNodes = [...slottedNodes, ...getHostSlotNodes(childNode
|
|
629
|
+
slottedNodes = [...slottedNodes, ...getHostSlotNodes(internalCall(childNode, "childNodes"), hostName, slotName)];
|
|
649
630
|
}
|
|
650
631
|
return slottedNodes;
|
|
651
632
|
}
|
|
@@ -667,53 +648,13 @@ var addSlotRelocateNode = (newChild, slotNode, prepend, position) => {
|
|
|
667
648
|
if (!slotNode["s-cr"] || !slotNode["s-cr"].parentNode) return;
|
|
668
649
|
const parent = slotNode["s-cr"].parentNode;
|
|
669
650
|
const appendMethod = prepend ? internalCall(parent, "prepend") : internalCall(parent, "appendChild");
|
|
670
|
-
|
|
671
|
-
slottedNodeLocation["s-oo"] = position;
|
|
672
|
-
const childNodes = internalCall(parent, "childNodes");
|
|
673
|
-
const slotRelocateNodes = [slottedNodeLocation];
|
|
674
|
-
childNodes.forEach((n) => {
|
|
675
|
-
if (n["s-nr"]) slotRelocateNodes.push(n);
|
|
676
|
-
});
|
|
677
|
-
slotRelocateNodes.sort((a, b) => {
|
|
678
|
-
if (!a["s-oo"] || a["s-oo"] < (b["s-oo"] || 0)) return -1;
|
|
679
|
-
else if (!b["s-oo"] || b["s-oo"] < a["s-oo"]) return 1;
|
|
680
|
-
return 0;
|
|
681
|
-
});
|
|
682
|
-
slotRelocateNodes.forEach((n) => appendMethod.call(parent, n));
|
|
683
|
-
} else {
|
|
651
|
+
{
|
|
684
652
|
appendMethod.call(parent, slottedNodeLocation);
|
|
685
653
|
}
|
|
686
654
|
newChild["s-ol"] = slottedNodeLocation;
|
|
687
655
|
newChild["s-sh"] = slotNode["s-hn"];
|
|
688
656
|
};
|
|
689
657
|
var getSlotName = (node) => typeof node["s-sn"] === "string" ? node["s-sn"] : node.nodeType === 1 && node.getAttribute("slot") || void 0;
|
|
690
|
-
function patchSlotNode(node) {
|
|
691
|
-
if (node.assignedElements || node.assignedNodes || !node["s-sr"]) return;
|
|
692
|
-
const assignedFactory = (elementsOnly) => (function(opts) {
|
|
693
|
-
const toReturn = [];
|
|
694
|
-
const slotName = this["s-sn"];
|
|
695
|
-
if (opts == null ? void 0 : opts.flatten) {
|
|
696
|
-
console.error(`
|
|
697
|
-
Flattening is not supported for Stencil non-shadow slots.
|
|
698
|
-
You can use \`.childNodes\` to nested slot fallback content.
|
|
699
|
-
If you have a particular use case, please open an issue on the Stencil repo.
|
|
700
|
-
`);
|
|
701
|
-
}
|
|
702
|
-
const parent = this["s-cr"].parentElement;
|
|
703
|
-
const slottedNodes = parent.__childNodes ? parent.childNodes : getSlottedChildNodes(parent.childNodes);
|
|
704
|
-
slottedNodes.forEach((n) => {
|
|
705
|
-
if (slotName === getSlotName(n)) {
|
|
706
|
-
toReturn.push(n);
|
|
707
|
-
}
|
|
708
|
-
});
|
|
709
|
-
if (elementsOnly) {
|
|
710
|
-
return toReturn.filter((n) => n.nodeType === 1 /* ElementNode */);
|
|
711
|
-
}
|
|
712
|
-
return toReturn;
|
|
713
|
-
}).bind(node);
|
|
714
|
-
node.assignedElements = assignedFactory(true);
|
|
715
|
-
node.assignedNodes = assignedFactory(false);
|
|
716
|
-
}
|
|
717
658
|
function dispatchSlotChangeEvent(elm) {
|
|
718
659
|
elm.dispatchEvent(new CustomEvent("slotchange", { bubbles: false, cancelable: false, composed: false }));
|
|
719
660
|
}
|
|
@@ -977,13 +918,13 @@ var patchChildSlotNodes = (elm) => {
|
|
|
977
918
|
patchHostOriginalAccessor("firstChild", elm);
|
|
978
919
|
Object.defineProperty(elm, "firstChild", {
|
|
979
920
|
get() {
|
|
980
|
-
return this.childNodes[0];
|
|
921
|
+
return this.childNodes[0] || null;
|
|
981
922
|
}
|
|
982
923
|
});
|
|
983
924
|
patchHostOriginalAccessor("lastChild", elm);
|
|
984
925
|
Object.defineProperty(elm, "lastChild", {
|
|
985
926
|
get() {
|
|
986
|
-
return this.childNodes[this.childNodes.length - 1];
|
|
927
|
+
return this.childNodes[this.childNodes.length - 1] || null;
|
|
987
928
|
}
|
|
988
929
|
});
|
|
989
930
|
patchHostOriginalAccessor("childNodes", elm);
|
|
@@ -995,89 +936,6 @@ var patchChildSlotNodes = (elm) => {
|
|
|
995
936
|
}
|
|
996
937
|
});
|
|
997
938
|
};
|
|
998
|
-
var patchSlottedNode = (node) => {
|
|
999
|
-
if (!node || node.__nextSibling !== void 0 || !globalThis.Node) return;
|
|
1000
|
-
patchNextSibling(node);
|
|
1001
|
-
patchPreviousSibling(node);
|
|
1002
|
-
patchParentNode(node);
|
|
1003
|
-
if (node.nodeType === Node.ELEMENT_NODE) {
|
|
1004
|
-
patchNextElementSibling(node);
|
|
1005
|
-
patchPreviousElementSibling(node);
|
|
1006
|
-
}
|
|
1007
|
-
};
|
|
1008
|
-
var patchNextSibling = (node) => {
|
|
1009
|
-
if (!node || node.__nextSibling) return;
|
|
1010
|
-
patchHostOriginalAccessor("nextSibling", node);
|
|
1011
|
-
Object.defineProperty(node, "nextSibling", {
|
|
1012
|
-
get: function() {
|
|
1013
|
-
var _a;
|
|
1014
|
-
const parentNodes = (_a = this["s-ol"]) == null ? void 0 : _a.parentNode.childNodes;
|
|
1015
|
-
const index = parentNodes == null ? void 0 : parentNodes.indexOf(this);
|
|
1016
|
-
if (parentNodes && index > -1) {
|
|
1017
|
-
return parentNodes[index + 1];
|
|
1018
|
-
}
|
|
1019
|
-
return this.__nextSibling;
|
|
1020
|
-
}
|
|
1021
|
-
});
|
|
1022
|
-
};
|
|
1023
|
-
var patchNextElementSibling = (element) => {
|
|
1024
|
-
if (!element || element.__nextElementSibling) return;
|
|
1025
|
-
patchHostOriginalAccessor("nextElementSibling", element);
|
|
1026
|
-
Object.defineProperty(element, "nextElementSibling", {
|
|
1027
|
-
get: function() {
|
|
1028
|
-
var _a;
|
|
1029
|
-
const parentEles = (_a = this["s-ol"]) == null ? void 0 : _a.parentNode.children;
|
|
1030
|
-
const index = parentEles == null ? void 0 : parentEles.indexOf(this);
|
|
1031
|
-
if (parentEles && index > -1) {
|
|
1032
|
-
return parentEles[index + 1];
|
|
1033
|
-
}
|
|
1034
|
-
return this.__nextElementSibling;
|
|
1035
|
-
}
|
|
1036
|
-
});
|
|
1037
|
-
};
|
|
1038
|
-
var patchPreviousSibling = (node) => {
|
|
1039
|
-
if (!node || node.__previousSibling) return;
|
|
1040
|
-
patchHostOriginalAccessor("previousSibling", node);
|
|
1041
|
-
Object.defineProperty(node, "previousSibling", {
|
|
1042
|
-
get: function() {
|
|
1043
|
-
var _a;
|
|
1044
|
-
const parentNodes = (_a = this["s-ol"]) == null ? void 0 : _a.parentNode.childNodes;
|
|
1045
|
-
const index = parentNodes == null ? void 0 : parentNodes.indexOf(this);
|
|
1046
|
-
if (parentNodes && index > -1) {
|
|
1047
|
-
return parentNodes[index - 1];
|
|
1048
|
-
}
|
|
1049
|
-
return this.__previousSibling;
|
|
1050
|
-
}
|
|
1051
|
-
});
|
|
1052
|
-
};
|
|
1053
|
-
var patchPreviousElementSibling = (element) => {
|
|
1054
|
-
if (!element || element.__previousElementSibling) return;
|
|
1055
|
-
patchHostOriginalAccessor("previousElementSibling", element);
|
|
1056
|
-
Object.defineProperty(element, "previousElementSibling", {
|
|
1057
|
-
get: function() {
|
|
1058
|
-
var _a;
|
|
1059
|
-
const parentNodes = (_a = this["s-ol"]) == null ? void 0 : _a.parentNode.children;
|
|
1060
|
-
const index = parentNodes == null ? void 0 : parentNodes.indexOf(this);
|
|
1061
|
-
if (parentNodes && index > -1) {
|
|
1062
|
-
return parentNodes[index - 1];
|
|
1063
|
-
}
|
|
1064
|
-
return this.__previousElementSibling;
|
|
1065
|
-
}
|
|
1066
|
-
});
|
|
1067
|
-
};
|
|
1068
|
-
var patchParentNode = (node) => {
|
|
1069
|
-
if (!node || node.__parentNode) return;
|
|
1070
|
-
patchHostOriginalAccessor("parentNode", node);
|
|
1071
|
-
Object.defineProperty(node, "parentNode", {
|
|
1072
|
-
get: function() {
|
|
1073
|
-
var _a;
|
|
1074
|
-
return ((_a = this["s-ol"]) == null ? void 0 : _a.parentNode) || this.__parentNode;
|
|
1075
|
-
},
|
|
1076
|
-
set: function(value) {
|
|
1077
|
-
this.__parentNode = value;
|
|
1078
|
-
}
|
|
1079
|
-
});
|
|
1080
|
-
};
|
|
1081
939
|
var validElementPatches = ["children", "nextElementSibling", "previousElementSibling"];
|
|
1082
940
|
var validNodesPatches = [
|
|
1083
941
|
"childNodes",
|
|
@@ -1166,10 +1024,7 @@ var addStyle = (styleContainerNode, cmpMeta, mode) => {
|
|
|
1166
1024
|
if (!appliedStyles) {
|
|
1167
1025
|
rootAppliedStyles.set(styleContainerNode, appliedStyles = /* @__PURE__ */ new Set());
|
|
1168
1026
|
}
|
|
1169
|
-
|
|
1170
|
-
if (existingStyleElm) {
|
|
1171
|
-
existingStyleElm.textContent = style;
|
|
1172
|
-
} else if (!appliedStyles.has(scopeId2)) {
|
|
1027
|
+
if (!appliedStyles.has(scopeId2)) {
|
|
1173
1028
|
styleElm = win.document.createElement("style");
|
|
1174
1029
|
styleElm.textContent = style;
|
|
1175
1030
|
const nonce = (_a = plt.$nonce$) != null ? _a : queryNonceMetaTagContent(win.document);
|
|
@@ -1238,12 +1093,6 @@ var addStyle = (styleContainerNode, cmpMeta, mode) => {
|
|
|
1238
1093
|
styleContainerNode.adoptedStyleSheets = [...styleContainerNode.adoptedStyleSheets, stylesheet];
|
|
1239
1094
|
}
|
|
1240
1095
|
appliedStyles.add(scopeId2);
|
|
1241
|
-
if ("host" in styleContainerNode) {
|
|
1242
|
-
const ssrStyleElm = styleContainerNode.querySelector(`[${HYDRATED_STYLE_ID}="${scopeId2}"]`);
|
|
1243
|
-
if (ssrStyleElm) {
|
|
1244
|
-
writeTask(() => ssrStyleElm.remove());
|
|
1245
|
-
}
|
|
1246
|
-
}
|
|
1247
1096
|
}
|
|
1248
1097
|
}
|
|
1249
1098
|
}
|
|
@@ -1264,17 +1113,6 @@ var attachStyles = (hostRef) => {
|
|
|
1264
1113
|
endAttachStyles();
|
|
1265
1114
|
};
|
|
1266
1115
|
var getScopeId = (cmp, mode) => "sc-" + (cmp.$tagName$);
|
|
1267
|
-
var convertScopedToShadow = (css) => css.replace(/\/\*!@([^\/]+)\*\/[^\{]+\{/g, "$1{");
|
|
1268
|
-
var hydrateScopedToShadow = () => {
|
|
1269
|
-
if (!win.document) {
|
|
1270
|
-
return;
|
|
1271
|
-
}
|
|
1272
|
-
const styles2 = win.document.querySelectorAll(`[${HYDRATED_STYLE_ID}]`);
|
|
1273
|
-
let i2 = 0;
|
|
1274
|
-
for (; i2 < styles2.length; i2++) {
|
|
1275
|
-
registerStyle(styles2[i2].getAttribute(HYDRATED_STYLE_ID), convertScopedToShadow(styles2[i2].innerHTML), true);
|
|
1276
|
-
}
|
|
1277
|
-
};
|
|
1278
1116
|
var isComplexType = (o) => {
|
|
1279
1117
|
o = typeof o;
|
|
1280
1118
|
return o === "object" || o === "function";
|
|
@@ -1298,6 +1136,11 @@ var h = (nodeName, vnodeData, ...children) => {
|
|
|
1298
1136
|
} else if (child != null && typeof child !== "boolean") {
|
|
1299
1137
|
if (simple = typeof nodeName !== "function" && !isComplexType(child)) {
|
|
1300
1138
|
child = String(child);
|
|
1139
|
+
} else if (typeof nodeName !== "function" && child.$flags$ === void 0) {
|
|
1140
|
+
{
|
|
1141
|
+
consoleError("Invalid vNode child");
|
|
1142
|
+
}
|
|
1143
|
+
continue;
|
|
1301
1144
|
}
|
|
1302
1145
|
if (simple && lastSimple) {
|
|
1303
1146
|
vNodeChildren[vNodeChildren.length - 1].$text$ += child;
|
|
@@ -1387,397 +1230,6 @@ var convertToPrivate = (node) => {
|
|
|
1387
1230
|
return vnode;
|
|
1388
1231
|
};
|
|
1389
1232
|
|
|
1390
|
-
// src/runtime/client-hydrate.ts
|
|
1391
|
-
var initializeClientHydrate = (hostElm, tagName, hostId, hostRef) => {
|
|
1392
|
-
var _a, _b, _c, _d;
|
|
1393
|
-
const endHydrate = createTime("hydrateClient", tagName);
|
|
1394
|
-
const shadowRoot = hostElm.shadowRoot;
|
|
1395
|
-
const childRenderNodes = [];
|
|
1396
|
-
const slotNodes = [];
|
|
1397
|
-
const slottedNodes = [];
|
|
1398
|
-
const shadowRootNodes = shadowRoot ? [] : null;
|
|
1399
|
-
const vnode = newVNode(tagName, null);
|
|
1400
|
-
vnode.$elm$ = hostElm;
|
|
1401
|
-
if (win.document && (!plt.$orgLocNodes$ || !plt.$orgLocNodes$.size)) {
|
|
1402
|
-
initializeDocumentHydrate(win.document.body, plt.$orgLocNodes$ = /* @__PURE__ */ new Map());
|
|
1403
|
-
}
|
|
1404
|
-
hostElm[HYDRATE_ID] = hostId;
|
|
1405
|
-
hostElm.removeAttribute(HYDRATE_ID);
|
|
1406
|
-
hostRef.$vnode$ = clientHydrate(
|
|
1407
|
-
vnode,
|
|
1408
|
-
childRenderNodes,
|
|
1409
|
-
slotNodes,
|
|
1410
|
-
shadowRootNodes,
|
|
1411
|
-
hostElm,
|
|
1412
|
-
hostElm,
|
|
1413
|
-
hostId,
|
|
1414
|
-
slottedNodes
|
|
1415
|
-
);
|
|
1416
|
-
let crIndex = 0;
|
|
1417
|
-
const crLength = childRenderNodes.length;
|
|
1418
|
-
let childRenderNode;
|
|
1419
|
-
for (crIndex; crIndex < crLength; crIndex++) {
|
|
1420
|
-
childRenderNode = childRenderNodes[crIndex];
|
|
1421
|
-
const orgLocationId = childRenderNode.$hostId$ + "." + childRenderNode.$nodeId$;
|
|
1422
|
-
const orgLocationNode = plt.$orgLocNodes$.get(orgLocationId);
|
|
1423
|
-
const node = childRenderNode.$elm$;
|
|
1424
|
-
if (!shadowRoot) {
|
|
1425
|
-
node["s-hn"] = transformTag(tagName).toUpperCase();
|
|
1426
|
-
if (childRenderNode.$tag$ === "slot") {
|
|
1427
|
-
node["s-cr"] = hostElm["s-cr"];
|
|
1428
|
-
}
|
|
1429
|
-
} else if (((_a = childRenderNode.$tag$) == null ? void 0 : _a.toString().includes("-")) && childRenderNode.$tag$ !== "slot-fb" && !childRenderNode.$elm$.shadowRoot) {
|
|
1430
|
-
const cmpMeta = getHostRef(childRenderNode.$elm$);
|
|
1431
|
-
if (cmpMeta) {
|
|
1432
|
-
const scopeId3 = getScopeId(
|
|
1433
|
-
cmpMeta.$cmpMeta$);
|
|
1434
|
-
const styleSheet = win.document.querySelector(`style[sty-id="${scopeId3}"]`);
|
|
1435
|
-
if (styleSheet) {
|
|
1436
|
-
shadowRootNodes.unshift(styleSheet.cloneNode(true));
|
|
1437
|
-
}
|
|
1438
|
-
}
|
|
1439
|
-
}
|
|
1440
|
-
if (childRenderNode.$tag$ === "slot") {
|
|
1441
|
-
childRenderNode.$name$ = childRenderNode.$elm$["s-sn"] || childRenderNode.$elm$["name"] || null;
|
|
1442
|
-
if (childRenderNode.$children$) {
|
|
1443
|
-
childRenderNode.$flags$ |= 2 /* isSlotFallback */;
|
|
1444
|
-
if (!childRenderNode.$elm$.childNodes.length) {
|
|
1445
|
-
childRenderNode.$children$.forEach((c) => {
|
|
1446
|
-
childRenderNode.$elm$.appendChild(c.$elm$);
|
|
1447
|
-
});
|
|
1448
|
-
}
|
|
1449
|
-
} else {
|
|
1450
|
-
childRenderNode.$flags$ |= 1 /* isSlotReference */;
|
|
1451
|
-
}
|
|
1452
|
-
}
|
|
1453
|
-
if (orgLocationNode && orgLocationNode.isConnected) {
|
|
1454
|
-
if (orgLocationNode.parentElement.shadowRoot && orgLocationNode["s-en"] === "") {
|
|
1455
|
-
orgLocationNode.parentNode.insertBefore(node, orgLocationNode.nextSibling);
|
|
1456
|
-
}
|
|
1457
|
-
orgLocationNode.parentNode.removeChild(orgLocationNode);
|
|
1458
|
-
if (!shadowRoot) {
|
|
1459
|
-
node["s-oo"] = parseInt(childRenderNode.$nodeId$);
|
|
1460
|
-
}
|
|
1461
|
-
}
|
|
1462
|
-
if (orgLocationNode && !orgLocationNode["s-id"]) {
|
|
1463
|
-
plt.$orgLocNodes$.delete(orgLocationId);
|
|
1464
|
-
}
|
|
1465
|
-
}
|
|
1466
|
-
const hosts = [];
|
|
1467
|
-
const snLen = slottedNodes.length;
|
|
1468
|
-
let snIndex = 0;
|
|
1469
|
-
let slotGroup;
|
|
1470
|
-
let snGroupIdx;
|
|
1471
|
-
let snGroupLen;
|
|
1472
|
-
let slottedItem;
|
|
1473
|
-
let currentPos = 0;
|
|
1474
|
-
for (snIndex; snIndex < snLen; snIndex++) {
|
|
1475
|
-
slotGroup = slottedNodes[snIndex];
|
|
1476
|
-
if (!slotGroup || !slotGroup.length) continue;
|
|
1477
|
-
snGroupLen = slotGroup.length;
|
|
1478
|
-
snGroupIdx = 0;
|
|
1479
|
-
for (snGroupIdx; snGroupIdx < snGroupLen; snGroupIdx++) {
|
|
1480
|
-
slottedItem = slotGroup[snGroupIdx];
|
|
1481
|
-
if (!hosts[slottedItem.hostId]) {
|
|
1482
|
-
hosts[slottedItem.hostId] = plt.$orgLocNodes$.get(slottedItem.hostId);
|
|
1483
|
-
}
|
|
1484
|
-
if (!hosts[slottedItem.hostId]) continue;
|
|
1485
|
-
const hostEle = hosts[slottedItem.hostId];
|
|
1486
|
-
if (hostEle.shadowRoot && slottedItem.node.parentElement !== hostEle) {
|
|
1487
|
-
hostEle.insertBefore(slottedItem.node, (_c = (_b = slotGroup[snGroupIdx - 1]) == null ? void 0 : _b.node) == null ? void 0 : _c.nextSibling);
|
|
1488
|
-
}
|
|
1489
|
-
if (!hostEle.shadowRoot || !shadowRoot) {
|
|
1490
|
-
if (!slottedItem.slot["s-cr"]) {
|
|
1491
|
-
slottedItem.slot["s-cr"] = hostEle["s-cr"];
|
|
1492
|
-
if (!slottedItem.slot["s-cr"] && hostEle.shadowRoot) {
|
|
1493
|
-
slottedItem.slot["s-cr"] = hostEle;
|
|
1494
|
-
} else {
|
|
1495
|
-
slottedItem.slot["s-cr"] = (hostEle.__childNodes || hostEle.childNodes)[0];
|
|
1496
|
-
}
|
|
1497
|
-
}
|
|
1498
|
-
addSlotRelocateNode(slottedItem.node, slottedItem.slot, false, slottedItem.node["s-oo"] || currentPos);
|
|
1499
|
-
if (((_d = slottedItem.node.parentElement) == null ? void 0 : _d.shadowRoot) && slottedItem.node["getAttribute"] && slottedItem.node.getAttribute("slot")) {
|
|
1500
|
-
slottedItem.node.removeAttribute("slot");
|
|
1501
|
-
}
|
|
1502
|
-
{
|
|
1503
|
-
patchSlottedNode(slottedItem.node);
|
|
1504
|
-
}
|
|
1505
|
-
}
|
|
1506
|
-
currentPos = (slottedItem.node["s-oo"] || currentPos) + 1;
|
|
1507
|
-
}
|
|
1508
|
-
}
|
|
1509
|
-
if (shadowRoot && !shadowRoot.childNodes.length) {
|
|
1510
|
-
let rnIdex = 0;
|
|
1511
|
-
const rnLen = shadowRootNodes.length;
|
|
1512
|
-
if (rnLen) {
|
|
1513
|
-
for (rnIdex; rnIdex < rnLen; rnIdex++) {
|
|
1514
|
-
const node = shadowRootNodes[rnIdex];
|
|
1515
|
-
if (node) {
|
|
1516
|
-
shadowRoot.appendChild(node);
|
|
1517
|
-
}
|
|
1518
|
-
}
|
|
1519
|
-
Array.from(hostElm.childNodes).forEach((node) => {
|
|
1520
|
-
if (typeof node["s-en"] !== "string" && typeof node["s-sn"] !== "string") {
|
|
1521
|
-
if (node.nodeType === 1 /* ElementNode */ && node.slot && node.hidden) {
|
|
1522
|
-
node.removeAttribute("hidden");
|
|
1523
|
-
} else if (node.nodeType === 8 /* CommentNode */ && !node.nodeValue) {
|
|
1524
|
-
node.parentNode.removeChild(node);
|
|
1525
|
-
}
|
|
1526
|
-
}
|
|
1527
|
-
});
|
|
1528
|
-
}
|
|
1529
|
-
}
|
|
1530
|
-
hostRef.$hostElement$ = hostElm;
|
|
1531
|
-
endHydrate();
|
|
1532
|
-
};
|
|
1533
|
-
var clientHydrate = (parentVNode, childRenderNodes, slotNodes, shadowRootNodes, hostElm, node, hostId, slottedNodes = []) => {
|
|
1534
|
-
let childNodeType;
|
|
1535
|
-
let childIdSplt;
|
|
1536
|
-
let childVNode;
|
|
1537
|
-
let i2;
|
|
1538
|
-
if (node.nodeType === 1 /* ElementNode */) {
|
|
1539
|
-
childNodeType = node.getAttribute(HYDRATE_CHILD_ID);
|
|
1540
|
-
if (childNodeType) {
|
|
1541
|
-
childIdSplt = childNodeType.split(".");
|
|
1542
|
-
if (childIdSplt[0] === hostId || childIdSplt[0] === "0") {
|
|
1543
|
-
childVNode = createSimpleVNode({
|
|
1544
|
-
$flags$: 0,
|
|
1545
|
-
$hostId$: childIdSplt[0],
|
|
1546
|
-
$nodeId$: childIdSplt[1],
|
|
1547
|
-
$depth$: childIdSplt[2],
|
|
1548
|
-
$index$: childIdSplt[3],
|
|
1549
|
-
$tag$: node.tagName.toLowerCase(),
|
|
1550
|
-
$elm$: node,
|
|
1551
|
-
// If we don't add the initial classes to the VNode, the first `vdom-render.ts` patch
|
|
1552
|
-
// won't try to reconcile them. Classes set on the node will be blown away.
|
|
1553
|
-
$attrs$: { class: node.className || "" }
|
|
1554
|
-
});
|
|
1555
|
-
childRenderNodes.push(childVNode);
|
|
1556
|
-
node.removeAttribute(HYDRATE_CHILD_ID);
|
|
1557
|
-
if (!parentVNode.$children$) {
|
|
1558
|
-
parentVNode.$children$ = [];
|
|
1559
|
-
}
|
|
1560
|
-
const slotName = childVNode.$elm$.getAttribute("s-sn");
|
|
1561
|
-
if (typeof slotName === "string") {
|
|
1562
|
-
if (childVNode.$tag$ === "slot-fb") {
|
|
1563
|
-
addSlot(
|
|
1564
|
-
slotName,
|
|
1565
|
-
childIdSplt[2],
|
|
1566
|
-
childVNode,
|
|
1567
|
-
node,
|
|
1568
|
-
parentVNode,
|
|
1569
|
-
childRenderNodes,
|
|
1570
|
-
slotNodes,
|
|
1571
|
-
shadowRootNodes,
|
|
1572
|
-
slottedNodes
|
|
1573
|
-
);
|
|
1574
|
-
}
|
|
1575
|
-
childVNode.$elm$["s-sn"] = slotName;
|
|
1576
|
-
childVNode.$elm$.removeAttribute("s-sn");
|
|
1577
|
-
}
|
|
1578
|
-
if (childVNode.$index$ !== void 0) {
|
|
1579
|
-
parentVNode.$children$[childVNode.$index$] = childVNode;
|
|
1580
|
-
}
|
|
1581
|
-
parentVNode = childVNode;
|
|
1582
|
-
if (shadowRootNodes && childVNode.$depth$ === "0") {
|
|
1583
|
-
shadowRootNodes[childVNode.$index$] = childVNode.$elm$;
|
|
1584
|
-
}
|
|
1585
|
-
}
|
|
1586
|
-
}
|
|
1587
|
-
if (node.shadowRoot) {
|
|
1588
|
-
for (i2 = node.shadowRoot.childNodes.length - 1; i2 >= 0; i2--) {
|
|
1589
|
-
clientHydrate(
|
|
1590
|
-
parentVNode,
|
|
1591
|
-
childRenderNodes,
|
|
1592
|
-
slotNodes,
|
|
1593
|
-
shadowRootNodes,
|
|
1594
|
-
hostElm,
|
|
1595
|
-
node.shadowRoot.childNodes[i2],
|
|
1596
|
-
hostId,
|
|
1597
|
-
slottedNodes
|
|
1598
|
-
);
|
|
1599
|
-
}
|
|
1600
|
-
}
|
|
1601
|
-
const nonShadowNodes = node.__childNodes || node.childNodes;
|
|
1602
|
-
for (i2 = nonShadowNodes.length - 1; i2 >= 0; i2--) {
|
|
1603
|
-
clientHydrate(
|
|
1604
|
-
parentVNode,
|
|
1605
|
-
childRenderNodes,
|
|
1606
|
-
slotNodes,
|
|
1607
|
-
shadowRootNodes,
|
|
1608
|
-
hostElm,
|
|
1609
|
-
nonShadowNodes[i2],
|
|
1610
|
-
hostId,
|
|
1611
|
-
slottedNodes
|
|
1612
|
-
);
|
|
1613
|
-
}
|
|
1614
|
-
} else if (node.nodeType === 8 /* CommentNode */) {
|
|
1615
|
-
childIdSplt = node.nodeValue.split(".");
|
|
1616
|
-
if (childIdSplt[1] === hostId || childIdSplt[1] === "0") {
|
|
1617
|
-
childNodeType = childIdSplt[0];
|
|
1618
|
-
childVNode = createSimpleVNode({
|
|
1619
|
-
$hostId$: childIdSplt[1],
|
|
1620
|
-
$nodeId$: childIdSplt[2],
|
|
1621
|
-
$depth$: childIdSplt[3],
|
|
1622
|
-
$index$: childIdSplt[4] || "0",
|
|
1623
|
-
$elm$: node,
|
|
1624
|
-
$attrs$: null,
|
|
1625
|
-
$children$: null,
|
|
1626
|
-
$key$: null,
|
|
1627
|
-
$name$: null,
|
|
1628
|
-
$tag$: null,
|
|
1629
|
-
$text$: null
|
|
1630
|
-
});
|
|
1631
|
-
if (childNodeType === TEXT_NODE_ID) {
|
|
1632
|
-
childVNode.$elm$ = findCorrespondingNode(node, 3 /* TextNode */);
|
|
1633
|
-
if (childVNode.$elm$ && childVNode.$elm$.nodeType === 3 /* TextNode */) {
|
|
1634
|
-
childVNode.$text$ = childVNode.$elm$.textContent;
|
|
1635
|
-
childRenderNodes.push(childVNode);
|
|
1636
|
-
node.remove();
|
|
1637
|
-
if (hostId === childVNode.$hostId$) {
|
|
1638
|
-
if (!parentVNode.$children$) {
|
|
1639
|
-
parentVNode.$children$ = [];
|
|
1640
|
-
}
|
|
1641
|
-
parentVNode.$children$[childVNode.$index$] = childVNode;
|
|
1642
|
-
}
|
|
1643
|
-
if (shadowRootNodes && childVNode.$depth$ === "0") {
|
|
1644
|
-
shadowRootNodes[childVNode.$index$] = childVNode.$elm$;
|
|
1645
|
-
}
|
|
1646
|
-
}
|
|
1647
|
-
} else if (childNodeType === COMMENT_NODE_ID) {
|
|
1648
|
-
childVNode.$elm$ = findCorrespondingNode(node, 8 /* CommentNode */);
|
|
1649
|
-
if (childVNode.$elm$ && childVNode.$elm$.nodeType === 8 /* CommentNode */) {
|
|
1650
|
-
childRenderNodes.push(childVNode);
|
|
1651
|
-
node.remove();
|
|
1652
|
-
}
|
|
1653
|
-
} else if (childVNode.$hostId$ === hostId) {
|
|
1654
|
-
if (childNodeType === SLOT_NODE_ID) {
|
|
1655
|
-
const slotName = node["s-sn"] = childIdSplt[5] || "";
|
|
1656
|
-
addSlot(
|
|
1657
|
-
slotName,
|
|
1658
|
-
childIdSplt[2],
|
|
1659
|
-
childVNode,
|
|
1660
|
-
node,
|
|
1661
|
-
parentVNode,
|
|
1662
|
-
childRenderNodes,
|
|
1663
|
-
slotNodes,
|
|
1664
|
-
shadowRootNodes,
|
|
1665
|
-
slottedNodes
|
|
1666
|
-
);
|
|
1667
|
-
} else if (childNodeType === CONTENT_REF_ID) {
|
|
1668
|
-
if (shadowRootNodes) {
|
|
1669
|
-
node.remove();
|
|
1670
|
-
}
|
|
1671
|
-
}
|
|
1672
|
-
}
|
|
1673
|
-
}
|
|
1674
|
-
} else if (parentVNode && parentVNode.$tag$ === "style") {
|
|
1675
|
-
const vnode = newVNode(null, node.textContent);
|
|
1676
|
-
vnode.$elm$ = node;
|
|
1677
|
-
vnode.$index$ = "0";
|
|
1678
|
-
parentVNode.$children$ = [vnode];
|
|
1679
|
-
}
|
|
1680
|
-
return parentVNode;
|
|
1681
|
-
};
|
|
1682
|
-
var initializeDocumentHydrate = (node, orgLocNodes) => {
|
|
1683
|
-
if (node.nodeType === 1 /* ElementNode */) {
|
|
1684
|
-
const componentId = node[HYDRATE_ID] || node.getAttribute(HYDRATE_ID);
|
|
1685
|
-
if (componentId) {
|
|
1686
|
-
orgLocNodes.set(componentId, node);
|
|
1687
|
-
}
|
|
1688
|
-
let i2 = 0;
|
|
1689
|
-
if (node.shadowRoot) {
|
|
1690
|
-
for (; i2 < node.shadowRoot.childNodes.length; i2++) {
|
|
1691
|
-
initializeDocumentHydrate(node.shadowRoot.childNodes[i2], orgLocNodes);
|
|
1692
|
-
}
|
|
1693
|
-
}
|
|
1694
|
-
const nonShadowNodes = node.__childNodes || node.childNodes;
|
|
1695
|
-
for (i2 = 0; i2 < nonShadowNodes.length; i2++) {
|
|
1696
|
-
initializeDocumentHydrate(nonShadowNodes[i2], orgLocNodes);
|
|
1697
|
-
}
|
|
1698
|
-
} else if (node.nodeType === 8 /* CommentNode */) {
|
|
1699
|
-
const childIdSplt = node.nodeValue.split(".");
|
|
1700
|
-
if (childIdSplt[0] === ORG_LOCATION_ID) {
|
|
1701
|
-
orgLocNodes.set(childIdSplt[1] + "." + childIdSplt[2], node);
|
|
1702
|
-
node.nodeValue = "";
|
|
1703
|
-
node["s-en"] = childIdSplt[3];
|
|
1704
|
-
}
|
|
1705
|
-
}
|
|
1706
|
-
};
|
|
1707
|
-
var createSimpleVNode = (vnode) => {
|
|
1708
|
-
const defaultVNode = {
|
|
1709
|
-
$flags$: 0,
|
|
1710
|
-
$hostId$: null,
|
|
1711
|
-
$nodeId$: null,
|
|
1712
|
-
$depth$: null,
|
|
1713
|
-
$index$: "0",
|
|
1714
|
-
$elm$: null,
|
|
1715
|
-
$attrs$: null,
|
|
1716
|
-
$children$: null,
|
|
1717
|
-
$key$: null,
|
|
1718
|
-
$name$: null,
|
|
1719
|
-
$tag$: null,
|
|
1720
|
-
$text$: null
|
|
1721
|
-
};
|
|
1722
|
-
return { ...defaultVNode, ...vnode };
|
|
1723
|
-
};
|
|
1724
|
-
function addSlot(slotName, slotId, childVNode, node, parentVNode, childRenderNodes, slotNodes, shadowRootNodes, slottedNodes) {
|
|
1725
|
-
node["s-sr"] = true;
|
|
1726
|
-
childVNode.$name$ = slotName || null;
|
|
1727
|
-
childVNode.$tag$ = "slot";
|
|
1728
|
-
const parentNodeId = (parentVNode == null ? void 0 : parentVNode.$elm$) ? parentVNode.$elm$["s-id"] || parentVNode.$elm$.getAttribute("s-id") : "";
|
|
1729
|
-
if (shadowRootNodes && win.document) {
|
|
1730
|
-
const slot = childVNode.$elm$ = win.document.createElement(childVNode.$tag$);
|
|
1731
|
-
if (childVNode.$name$) {
|
|
1732
|
-
childVNode.$elm$.setAttribute("name", slotName);
|
|
1733
|
-
}
|
|
1734
|
-
if (parentVNode.$elm$.shadowRoot && parentNodeId && parentNodeId !== childVNode.$hostId$) {
|
|
1735
|
-
internalCall(parentVNode.$elm$, "insertBefore")(slot, internalCall(parentVNode.$elm$, "children")[0]);
|
|
1736
|
-
} else {
|
|
1737
|
-
internalCall(internalCall(node, "parentNode"), "insertBefore")(slot, node);
|
|
1738
|
-
}
|
|
1739
|
-
addSlottedNodes(slottedNodes, slotId, slotName, node, childVNode.$hostId$);
|
|
1740
|
-
node.remove();
|
|
1741
|
-
if (childVNode.$depth$ === "0") {
|
|
1742
|
-
shadowRootNodes[childVNode.$index$] = childVNode.$elm$;
|
|
1743
|
-
}
|
|
1744
|
-
} else {
|
|
1745
|
-
const slot = childVNode.$elm$;
|
|
1746
|
-
const shouldMove = parentNodeId && parentNodeId !== childVNode.$hostId$ && parentVNode.$elm$.shadowRoot;
|
|
1747
|
-
addSlottedNodes(slottedNodes, slotId, slotName, node, shouldMove ? parentNodeId : childVNode.$hostId$);
|
|
1748
|
-
patchSlotNode(node);
|
|
1749
|
-
if (shouldMove) {
|
|
1750
|
-
parentVNode.$elm$.insertBefore(slot, parentVNode.$elm$.children[0]);
|
|
1751
|
-
}
|
|
1752
|
-
}
|
|
1753
|
-
childRenderNodes.push(childVNode);
|
|
1754
|
-
slotNodes.push(childVNode);
|
|
1755
|
-
if (!parentVNode.$children$) {
|
|
1756
|
-
parentVNode.$children$ = [];
|
|
1757
|
-
}
|
|
1758
|
-
parentVNode.$children$[childVNode.$index$] = childVNode;
|
|
1759
|
-
}
|
|
1760
|
-
var addSlottedNodes = (slottedNodes, slotNodeId, slotName, slotNode, hostId) => {
|
|
1761
|
-
var _a, _b;
|
|
1762
|
-
let slottedNode = slotNode.nextSibling;
|
|
1763
|
-
slottedNodes[slotNodeId] = slottedNodes[slotNodeId] || [];
|
|
1764
|
-
if (!slottedNode || ((_a = slottedNode.nodeValue) == null ? void 0 : _a.startsWith(SLOT_NODE_ID + "."))) return;
|
|
1765
|
-
do {
|
|
1766
|
-
if (slottedNode && ((slottedNode["getAttribute"] && slottedNode.getAttribute("slot") || slottedNode["s-sn"]) === slotName || slotName === "" && !slottedNode["s-sn"] && (!slottedNode["getAttribute"] || !slottedNode.getAttribute("slot")) && (slottedNode.nodeType === 8 /* CommentNode */ || slottedNode.nodeType === 3 /* TextNode */))) {
|
|
1767
|
-
slottedNode["s-sn"] = slotName;
|
|
1768
|
-
slottedNodes[slotNodeId].push({ slot: slotNode, node: slottedNode, hostId });
|
|
1769
|
-
}
|
|
1770
|
-
slottedNode = slottedNode == null ? void 0 : slottedNode.nextSibling;
|
|
1771
|
-
} while (slottedNode && !((_b = slottedNode.nodeValue) == null ? void 0 : _b.startsWith(SLOT_NODE_ID + ".")));
|
|
1772
|
-
};
|
|
1773
|
-
var findCorrespondingNode = (node, type) => {
|
|
1774
|
-
let sibling = node;
|
|
1775
|
-
do {
|
|
1776
|
-
sibling = sibling.nextSibling;
|
|
1777
|
-
} while (sibling && (sibling.nodeType !== type || !sibling.nodeValue));
|
|
1778
|
-
return sibling;
|
|
1779
|
-
};
|
|
1780
|
-
|
|
1781
1233
|
// src/runtime/normalize-watchers.ts
|
|
1782
1234
|
var normalizeWatchers = (raw) => {
|
|
1783
1235
|
if (!raw) return void 0;
|
|
@@ -1803,123 +1255,8 @@ var normalizeWatchers = (raw) => {
|
|
|
1803
1255
|
return out;
|
|
1804
1256
|
};
|
|
1805
1257
|
|
|
1806
|
-
// src/utils/remote-value.ts
|
|
1807
|
-
var RemoteValue = class _RemoteValue {
|
|
1808
|
-
/**
|
|
1809
|
-
* Deserializes a LocalValue serialized object back to its original JavaScript representation
|
|
1810
|
-
*
|
|
1811
|
-
* @param serialized The serialized LocalValue object
|
|
1812
|
-
* @returns The original JavaScript value/object
|
|
1813
|
-
*/
|
|
1814
|
-
static fromLocalValue(serialized) {
|
|
1815
|
-
const type = serialized[TYPE_CONSTANT];
|
|
1816
|
-
const value = VALUE_CONSTANT in serialized ? serialized[VALUE_CONSTANT] : void 0;
|
|
1817
|
-
switch (type) {
|
|
1818
|
-
case "string" /* String */:
|
|
1819
|
-
return value;
|
|
1820
|
-
case "boolean" /* Boolean */:
|
|
1821
|
-
return value;
|
|
1822
|
-
case "bigint" /* BigInt */:
|
|
1823
|
-
return BigInt(value);
|
|
1824
|
-
case "undefined" /* Undefined */:
|
|
1825
|
-
return void 0;
|
|
1826
|
-
case "null" /* Null */:
|
|
1827
|
-
return null;
|
|
1828
|
-
case "number" /* Number */:
|
|
1829
|
-
if (value === "NaN") return NaN;
|
|
1830
|
-
if (value === "-0") return -0;
|
|
1831
|
-
if (value === "Infinity") return Infinity;
|
|
1832
|
-
if (value === "-Infinity") return -Infinity;
|
|
1833
|
-
return value;
|
|
1834
|
-
case "array" /* Array */:
|
|
1835
|
-
return value.map((item) => _RemoteValue.fromLocalValue(item));
|
|
1836
|
-
case "date" /* Date */:
|
|
1837
|
-
return new Date(value);
|
|
1838
|
-
case "map" /* Map */:
|
|
1839
|
-
const map = /* @__PURE__ */ new Map();
|
|
1840
|
-
for (const [key, val] of value) {
|
|
1841
|
-
const deserializedKey = typeof key === "object" && key !== null ? _RemoteValue.fromLocalValue(key) : key;
|
|
1842
|
-
const deserializedValue = _RemoteValue.fromLocalValue(val);
|
|
1843
|
-
map.set(deserializedKey, deserializedValue);
|
|
1844
|
-
}
|
|
1845
|
-
return map;
|
|
1846
|
-
case "object" /* Object */:
|
|
1847
|
-
const obj = {};
|
|
1848
|
-
for (const [key, val] of value) {
|
|
1849
|
-
obj[key] = _RemoteValue.fromLocalValue(val);
|
|
1850
|
-
}
|
|
1851
|
-
return obj;
|
|
1852
|
-
case "regexp" /* RegularExpression */:
|
|
1853
|
-
const { pattern, flags } = value;
|
|
1854
|
-
return new RegExp(pattern, flags);
|
|
1855
|
-
case "set" /* Set */:
|
|
1856
|
-
const set = /* @__PURE__ */ new Set();
|
|
1857
|
-
for (const item of value) {
|
|
1858
|
-
set.add(_RemoteValue.fromLocalValue(item));
|
|
1859
|
-
}
|
|
1860
|
-
return set;
|
|
1861
|
-
case "symbol" /* Symbol */:
|
|
1862
|
-
return Symbol(value);
|
|
1863
|
-
default:
|
|
1864
|
-
throw new Error(`Unsupported type: ${type}`);
|
|
1865
|
-
}
|
|
1866
|
-
}
|
|
1867
|
-
/**
|
|
1868
|
-
* Utility method to deserialize multiple LocalValues at once
|
|
1869
|
-
*
|
|
1870
|
-
* @param serializedValues Array of serialized LocalValue objects
|
|
1871
|
-
* @returns Array of deserialized JavaScript values
|
|
1872
|
-
*/
|
|
1873
|
-
static fromLocalValueArray(serializedValues) {
|
|
1874
|
-
return serializedValues.map((value) => _RemoteValue.fromLocalValue(value));
|
|
1875
|
-
}
|
|
1876
|
-
/**
|
|
1877
|
-
* Verifies if the given object matches the structure of a serialized LocalValue
|
|
1878
|
-
*
|
|
1879
|
-
* @param obj Object to verify
|
|
1880
|
-
* @returns boolean indicating if the object has LocalValue structure
|
|
1881
|
-
*/
|
|
1882
|
-
static isLocalValueObject(obj) {
|
|
1883
|
-
if (typeof obj !== "object" || obj === null) {
|
|
1884
|
-
return false;
|
|
1885
|
-
}
|
|
1886
|
-
if (!obj.hasOwnProperty(TYPE_CONSTANT)) {
|
|
1887
|
-
return false;
|
|
1888
|
-
}
|
|
1889
|
-
const type = obj[TYPE_CONSTANT];
|
|
1890
|
-
const hasTypeProperty = Object.values({ ...PrimitiveType, ...NonPrimitiveType }).includes(type);
|
|
1891
|
-
if (!hasTypeProperty) {
|
|
1892
|
-
return false;
|
|
1893
|
-
}
|
|
1894
|
-
if (type !== "null" /* Null */ && type !== "undefined" /* Undefined */) {
|
|
1895
|
-
return obj.hasOwnProperty(VALUE_CONSTANT);
|
|
1896
|
-
}
|
|
1897
|
-
return true;
|
|
1898
|
-
}
|
|
1899
|
-
};
|
|
1900
|
-
|
|
1901
|
-
// src/utils/serialize.ts
|
|
1902
|
-
function decodeBase64Unicode(base64) {
|
|
1903
|
-
const binary = atob(base64);
|
|
1904
|
-
const bytes = new Uint8Array(binary.length);
|
|
1905
|
-
for (let i2 = 0; i2 < binary.length; i2++) {
|
|
1906
|
-
bytes[i2] = binary.charCodeAt(i2);
|
|
1907
|
-
}
|
|
1908
|
-
return new TextDecoder().decode(bytes);
|
|
1909
|
-
}
|
|
1910
|
-
function deserializeProperty(value) {
|
|
1911
|
-
if (typeof value !== "string" || !value.startsWith(SERIALIZED_PREFIX)) {
|
|
1912
|
-
return value;
|
|
1913
|
-
}
|
|
1914
|
-
return RemoteValue.fromLocalValue(JSON.parse(decodeBase64Unicode(value.slice(SERIALIZED_PREFIX.length))));
|
|
1915
|
-
}
|
|
1916
|
-
|
|
1917
1258
|
// src/runtime/parse-property-value.ts
|
|
1918
1259
|
var parsePropertyValue = (propValue, propType, isFormAssociated) => {
|
|
1919
|
-
if (typeof propValue === "string" && propValue.startsWith(SERIALIZED_PREFIX)) {
|
|
1920
|
-
propValue = deserializeProperty(propValue);
|
|
1921
|
-
return propValue;
|
|
1922
|
-
}
|
|
1923
1260
|
if (propValue != null && !isComplexType(propValue)) {
|
|
1924
1261
|
if (propType & 4 /* Boolean */) {
|
|
1925
1262
|
if (isFormAssociated && typeof propValue === "string") {
|
|
@@ -1972,15 +1309,7 @@ var setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags, initialRen
|
|
|
1972
1309
|
const classList = elm.classList;
|
|
1973
1310
|
const oldClasses = parseClassList(oldValue);
|
|
1974
1311
|
let newClasses = parseClassList(newValue);
|
|
1975
|
-
|
|
1976
|
-
const scopeId2 = elm["s-sc"] || elm["s-si"];
|
|
1977
|
-
newClasses.push(scopeId2);
|
|
1978
|
-
oldClasses.forEach((c) => {
|
|
1979
|
-
if (c.startsWith(scopeId2)) newClasses.push(c);
|
|
1980
|
-
});
|
|
1981
|
-
newClasses = [...new Set(newClasses)].filter((c) => c);
|
|
1982
|
-
classList.add(...newClasses);
|
|
1983
|
-
} else {
|
|
1312
|
+
{
|
|
1984
1313
|
classList.remove(...oldClasses.filter((c) => c && !newClasses.includes(c)));
|
|
1985
1314
|
classList.add(...newClasses.filter((c) => c && !oldClasses.includes(c)));
|
|
1986
1315
|
}
|
|
@@ -2086,7 +1415,7 @@ var setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags, initialRen
|
|
|
2086
1415
|
}
|
|
2087
1416
|
}
|
|
2088
1417
|
if (newValue == null || newValue === false) {
|
|
2089
|
-
if (newValue !== false || elm.getAttribute(memberName) === "") {
|
|
1418
|
+
if (newValue !== false || elm.getAttribute(memberName) === "" || flags & 4 /* isHost */ && !isEnumeratedAttribute(memberName)) {
|
|
2090
1419
|
if (xlink) {
|
|
2091
1420
|
elm.removeAttributeNS(XLINK_NS, memberName);
|
|
2092
1421
|
} else {
|
|
@@ -2103,6 +1432,8 @@ var setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags, initialRen
|
|
|
2103
1432
|
}
|
|
2104
1433
|
}
|
|
2105
1434
|
};
|
|
1435
|
+
var ENUMERATED_ATTRIBUTES = /* @__PURE__ */ new Set(["draggable", "contenteditable", "spellcheck"]);
|
|
1436
|
+
var isEnumeratedAttribute = (attrName) => ENUMERATED_ATTRIBUTES.has(attrName) || attrName.startsWith("aria-");
|
|
2106
1437
|
var parseClassListRegex = /\s/;
|
|
2107
1438
|
var parseClassList = (value) => {
|
|
2108
1439
|
if (typeof value === "object" && value && "baseVal" in value) {
|
|
@@ -2130,9 +1461,7 @@ var updateElement = (oldVnode, newVnode, isSvgMode2, isInitialRender) => {
|
|
|
2130
1461
|
oldVnodeAttrs[memberName],
|
|
2131
1462
|
void 0,
|
|
2132
1463
|
isSvgMode2,
|
|
2133
|
-
newVnode.$flags
|
|
2134
|
-
isInitialRender
|
|
2135
|
-
);
|
|
1464
|
+
newVnode.$flags$);
|
|
2136
1465
|
}
|
|
2137
1466
|
}
|
|
2138
1467
|
}
|
|
@@ -2143,9 +1472,7 @@ var updateElement = (oldVnode, newVnode, isSvgMode2, isInitialRender) => {
|
|
|
2143
1472
|
oldVnodeAttrs[memberName],
|
|
2144
1473
|
newVnodeAttrs[memberName],
|
|
2145
1474
|
isSvgMode2,
|
|
2146
|
-
newVnode.$flags
|
|
2147
|
-
isInitialRender
|
|
2148
|
-
);
|
|
1475
|
+
newVnode.$flags$);
|
|
2149
1476
|
}
|
|
2150
1477
|
};
|
|
2151
1478
|
function sortedAttrNames(attrNames) {
|
|
@@ -2370,7 +1697,7 @@ var patch = (oldVNode, newVNode2, isInitialRender = false) => {
|
|
|
2370
1697
|
relocateToHostRoot(newVNode2.$elm$.parentElement);
|
|
2371
1698
|
}
|
|
2372
1699
|
}
|
|
2373
|
-
updateElement(oldVNode, newVNode2, isSvgMode
|
|
1700
|
+
updateElement(oldVNode, newVNode2, isSvgMode);
|
|
2374
1701
|
}
|
|
2375
1702
|
if (oldChildren !== null && newChildren !== null) {
|
|
2376
1703
|
updateChildren(elm, oldChildren, newVNode2, newChildren, isInitialRender);
|
|
@@ -2384,9 +1711,7 @@ var patch = (oldVNode, newVNode2, isInitialRender = false) => {
|
|
|
2384
1711
|
!isInitialRender && BUILD.updatable && oldChildren !== null
|
|
2385
1712
|
) {
|
|
2386
1713
|
removeVnodes(oldChildren, 0, oldChildren.length - 1);
|
|
2387
|
-
} else
|
|
2388
|
-
newVNode2.$children$ = oldChildren;
|
|
2389
|
-
}
|
|
1714
|
+
} else ;
|
|
2390
1715
|
if (isSvgMode && tag === "svg") {
|
|
2391
1716
|
isSvgMode = false;
|
|
2392
1717
|
}
|
|
@@ -2416,9 +1741,7 @@ var flushQueuedRefCallbacks = () => {
|
|
|
2416
1741
|
}
|
|
2417
1742
|
};
|
|
2418
1743
|
var insertBefore = (parent, newNode, reference, isInitialLoad) => {
|
|
2419
|
-
|
|
2420
|
-
return parent.__insertBefore(newNode, reference);
|
|
2421
|
-
} else {
|
|
1744
|
+
{
|
|
2422
1745
|
return parent == null ? void 0 : parent.insertBefore(newNode, reference);
|
|
2423
1746
|
}
|
|
2424
1747
|
};
|
|
@@ -2610,13 +1933,7 @@ var postUpdateComponent = (hostRef) => {
|
|
|
2610
1933
|
}
|
|
2611
1934
|
};
|
|
2612
1935
|
var appDidLoad = (who) => {
|
|
2613
|
-
var _a;
|
|
2614
1936
|
nextTick(() => emitEvent(win, "appload", { detail: { namespace: NAMESPACE } }));
|
|
2615
|
-
{
|
|
2616
|
-
if ((_a = plt.$orgLocNodes$) == null ? void 0 : _a.size) {
|
|
2617
|
-
plt.$orgLocNodes$.clear();
|
|
2618
|
-
}
|
|
2619
|
-
}
|
|
2620
1937
|
};
|
|
2621
1938
|
var safeCall = (instance, method, arg, elm) => {
|
|
2622
1939
|
if (instance && instance[method]) {
|
|
@@ -2694,6 +2011,7 @@ var setValue = (ref, propName, newVal, cmpMeta) => {
|
|
|
2694
2011
|
};
|
|
2695
2012
|
|
|
2696
2013
|
// src/runtime/proxy-component.ts
|
|
2014
|
+
var reflectedAttrValue = (propValue) => propValue == null || propValue === false ? null : propValue === true ? "" : String(propValue);
|
|
2697
2015
|
var proxyComponent = (Cstr, cmpMeta, flags) => {
|
|
2698
2016
|
var _a, _b;
|
|
2699
2017
|
const prototype = Cstr.prototype;
|
|
@@ -2850,7 +2168,13 @@ var proxyComponent = (Cstr, cmpMeta, flags) => {
|
|
|
2850
2168
|
return;
|
|
2851
2169
|
}
|
|
2852
2170
|
const propFlags = members.find(([m]) => m === propName);
|
|
2853
|
-
const
|
|
2171
|
+
const propMemberFlags = propFlags ? propFlags[1][0] : 0;
|
|
2172
|
+
const isBooleanTarget = propMemberFlags & 4 /* Boolean */;
|
|
2173
|
+
if (propMemberFlags & 512 /* ReflectAttr */ && propMemberFlags & 8 /* Any */ && // a complex value is never written to an attribute, so a change while the prop holds
|
|
2174
|
+
// one is always external
|
|
2175
|
+
!isComplexType(this[propName]) && reflectedAttrValue(this[propName]) === newValue) {
|
|
2176
|
+
return;
|
|
2177
|
+
}
|
|
2854
2178
|
const isSpuriousBooleanRemoval = isBooleanTarget && newValue === null && this[propName] === void 0;
|
|
2855
2179
|
if (isBooleanTarget) {
|
|
2856
2180
|
newValue = newValue === null || newValue === "false" ? false : true;
|
|
@@ -2882,10 +2206,12 @@ var proxyComponent = (Cstr, cmpMeta, flags) => {
|
|
|
2882
2206
|
|
|
2883
2207
|
// src/runtime/initialize-component.ts
|
|
2884
2208
|
var initializeComponent = async (elm, hostRef, cmpMeta, hmrVersionId) => {
|
|
2209
|
+
var _a;
|
|
2885
2210
|
let Cstr;
|
|
2886
2211
|
try {
|
|
2887
2212
|
if ((hostRef.$flags$ & 32 /* hasInitializedComponent */) === 0) {
|
|
2888
2213
|
hostRef.$flags$ |= 32 /* hasInitializedComponent */;
|
|
2214
|
+
hostRef.$flags$ &= -1025 /* hasFailedLoad */;
|
|
2889
2215
|
const bundleId = cmpMeta.$lazyBundleId$;
|
|
2890
2216
|
if (bundleId) {
|
|
2891
2217
|
const CstrImport = loadModule(cmpMeta, hostRef);
|
|
@@ -2897,6 +2223,11 @@ var initializeComponent = async (elm, hostRef, cmpMeta, hmrVersionId) => {
|
|
|
2897
2223
|
Cstr = CstrImport;
|
|
2898
2224
|
}
|
|
2899
2225
|
if (!Cstr) {
|
|
2226
|
+
hostRef.$flags$ &= -33 /* hasInitializedComponent */;
|
|
2227
|
+
hostRef.$loadRetryCount$ = ((_a = hostRef.$loadRetryCount$) != null ? _a : 0) + 1;
|
|
2228
|
+
if (hostRef.$loadRetryCount$ < MAX_LAZY_LOAD_RETRIES) {
|
|
2229
|
+
hostRef.$flags$ |= 1024 /* hasFailedLoad */;
|
|
2230
|
+
}
|
|
2900
2231
|
throw new Error(`Constructor for "${cmpMeta.$tagName$}#${hostRef.$modeName$}" was not found`);
|
|
2901
2232
|
}
|
|
2902
2233
|
if (!Cstr.isProxied) {
|
|
@@ -2958,7 +2289,7 @@ var initializeComponent = async (elm, hostRef, cmpMeta, hmrVersionId) => {
|
|
|
2958
2289
|
hostRef.$onRenderResolve$();
|
|
2959
2290
|
hostRef.$onRenderResolve$ = void 0;
|
|
2960
2291
|
}
|
|
2961
|
-
if (hostRef.$onReadyResolve$) {
|
|
2292
|
+
if (hostRef.$onReadyResolve$ && !(hostRef.$flags$ & 1024 /* hasFailedLoad */)) {
|
|
2962
2293
|
hostRef.$onReadyResolve$(elm);
|
|
2963
2294
|
}
|
|
2964
2295
|
}
|
|
@@ -2980,21 +2311,10 @@ var connectedCallback = (elm) => {
|
|
|
2980
2311
|
const endConnected = createTime("connectedCallback", cmpMeta.$tagName$);
|
|
2981
2312
|
if (!(hostRef.$flags$ & 1 /* hasConnected */)) {
|
|
2982
2313
|
hostRef.$flags$ |= 1 /* hasConnected */;
|
|
2983
|
-
let hostId;
|
|
2984
|
-
{
|
|
2985
|
-
hostId = elm.getAttribute(HYDRATE_ID);
|
|
2986
|
-
if (hostId) {
|
|
2987
|
-
if (cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */) {
|
|
2988
|
-
const scopeId2 = addStyle(elm.shadowRoot, cmpMeta);
|
|
2989
|
-
elm.classList.remove(scopeId2 + "-h", scopeId2 + "-s");
|
|
2990
|
-
}
|
|
2991
|
-
initializeClientHydrate(elm, cmpMeta.$tagName$, hostId, hostRef);
|
|
2992
|
-
}
|
|
2993
|
-
}
|
|
2994
2314
|
{
|
|
2995
2315
|
let ancestorComponent = elm;
|
|
2996
2316
|
while (ancestorComponent = ancestorComponent.parentNode || ancestorComponent.host) {
|
|
2997
|
-
if (ancestorComponent
|
|
2317
|
+
if (ancestorComponent["s-p"]) {
|
|
2998
2318
|
attachToAncestor(hostRef, hostRef.$ancestorComponent$ = ancestorComponent);
|
|
2999
2319
|
break;
|
|
3000
2320
|
}
|
|
@@ -3016,6 +2336,8 @@ var connectedCallback = (elm) => {
|
|
|
3016
2336
|
addHostEventListeners(elm, hostRef, cmpMeta.$listeners$);
|
|
3017
2337
|
if (hostRef == null ? void 0 : hostRef.$lazyInstance$) {
|
|
3018
2338
|
fireConnectedCallback(hostRef.$lazyInstance$, elm);
|
|
2339
|
+
} else if (hostRef.$flags$ & 1024 /* hasFailedLoad */) {
|
|
2340
|
+
setTimeout(() => initializeComponent(elm, hostRef, cmpMeta), LAZY_LOAD_RETRY_INTERVAL_MS);
|
|
3019
2341
|
} else if (hostRef == null ? void 0 : hostRef.$onReadyPromise$) {
|
|
3020
2342
|
hostRef.$onReadyPromise$.then(() => fireConnectedCallback(hostRef.$lazyInstance$, elm));
|
|
3021
2343
|
}
|
|
@@ -3070,12 +2392,6 @@ var bootstrapLazy = (lazyBundles, options = {}) => {
|
|
|
3070
2392
|
let isBootstrapping = true;
|
|
3071
2393
|
Object.assign(plt, options);
|
|
3072
2394
|
plt.$resourcesUrl$ = new URL(options.resourcesUrl || "./", win.document.baseURI).href;
|
|
3073
|
-
{
|
|
3074
|
-
plt.$flags$ |= 2 /* appLoaded */;
|
|
3075
|
-
}
|
|
3076
|
-
{
|
|
3077
|
-
hydrateScopedToShadow();
|
|
3078
|
-
}
|
|
3079
2395
|
lazyBundles.map((lazyBundle) => {
|
|
3080
2396
|
lazyBundle[1].map((compactMeta) => {
|
|
3081
2397
|
var _a2, _b;
|
|
@@ -3144,7 +2460,7 @@ var bootstrapLazy = (lazyBundles, options = {}) => {
|
|
|
3144
2460
|
}
|
|
3145
2461
|
disconnectedCallback() {
|
|
3146
2462
|
plt.jmp(() => disconnectedCallback(this));
|
|
3147
|
-
|
|
2463
|
+
nextTick(() => {
|
|
3148
2464
|
var _a3;
|
|
3149
2465
|
const hostRef = getHostRef(this);
|
|
3150
2466
|
if (!hostRef) {
|