@brandsync/wc 1.10.0 → 1.12.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/CHANGELOG.md +155 -0
- package/custom-elements.json +8333 -4134
- package/dist/brandsync-wc/brandsync-wc.css +33 -0
- package/dist/brandsync-wc/brandsync-wc.esm.js +1 -1
- package/dist/brandsync-wc/{p-9f8852a0.entry.js → p-00a0d489.entry.js} +1 -1
- package/dist/brandsync-wc/{p-360452c2.entry.js → p-09435f41.entry.js} +1 -1
- package/dist/brandsync-wc/{p-dbcbe682.entry.js → p-09bc1923.entry.js} +1 -1
- package/dist/brandsync-wc/{p-1f7208cb.entry.js → p-09cbf05b.entry.js} +1 -1
- package/dist/brandsync-wc/{p-c99b6a66.entry.js → p-0b2d3b7e.entry.js} +1 -1
- package/dist/brandsync-wc/p-0b7c77c1.entry.js +1 -0
- package/dist/brandsync-wc/p-0ee4126c.entry.js +1 -0
- package/dist/brandsync-wc/{p-5f3cd501.entry.js → p-0f8cd2e8.entry.js} +1 -1
- package/dist/brandsync-wc/{p-1c0db4d6.entry.js → p-1261f0b0.entry.js} +1 -1
- package/dist/brandsync-wc/{p-b2074a32.entry.js → p-1978e63c.entry.js} +1 -1
- package/dist/brandsync-wc/p-1aab6d07.entry.js +1 -0
- package/dist/brandsync-wc/{p-96ed9386.entry.js → p-20030f4d.entry.js} +1 -1
- package/dist/brandsync-wc/p-2177042f.entry.js +1 -0
- package/dist/brandsync-wc/{p-a8e2a829.entry.js → p-2368a92e.entry.js} +1 -1
- package/dist/brandsync-wc/{p-2e958566.entry.js → p-247e36ad.entry.js} +1 -1
- package/dist/brandsync-wc/p-2497d128.entry.js +1 -0
- package/dist/brandsync-wc/{p-701ebf4a.entry.js → p-282ddbee.entry.js} +1 -1
- package/dist/brandsync-wc/{p-763876f5.entry.js → p-2f4e08e1.entry.js} +1 -1
- package/dist/brandsync-wc/{p-c3f72584.entry.js → p-34e5feaf.entry.js} +1 -1
- package/dist/brandsync-wc/{p-ea4e20ef.entry.js → p-39a26c64.entry.js} +1 -1
- package/dist/brandsync-wc/p-3a1af63a.entry.js +1 -0
- package/dist/brandsync-wc/{p-9f6fe37d.entry.js → p-3f09296a.entry.js} +1 -1
- package/dist/brandsync-wc/p-416322bd.entry.js +1 -0
- package/dist/brandsync-wc/{p-f89de457.entry.js → p-452f9c1c.entry.js} +1 -1
- package/dist/brandsync-wc/{p-bbcc47b0.entry.js → p-491b51e6.entry.js} +1 -1
- package/dist/brandsync-wc/p-52cb2358.entry.js +1 -0
- package/dist/brandsync-wc/{p-daab6b22.entry.js → p-56c37e0a.entry.js} +1 -1
- package/dist/brandsync-wc/p-5ba90a13.entry.js +1 -0
- package/dist/brandsync-wc/{p-08c99a60.entry.js → p-617bd13a.entry.js} +1 -1
- package/dist/brandsync-wc/p-68fcd4a4.entry.js +1 -0
- package/dist/brandsync-wc/{p-9e88f19c.entry.js → p-69c0a85d.entry.js} +1 -1
- package/dist/brandsync-wc/{p-d3f44cb7.entry.js → p-6a696161.entry.js} +1 -1
- package/dist/brandsync-wc/{p-32cd69f1.entry.js → p-6c6cdf77.entry.js} +1 -1
- package/dist/brandsync-wc/{p-041776c0.entry.js → p-6e735e37.entry.js} +1 -1
- package/dist/brandsync-wc/{p-fc58c663.entry.js → p-73f214ed.entry.js} +1 -1
- package/dist/brandsync-wc/{p-be2c1740.entry.js → p-7796b93f.entry.js} +1 -1
- package/dist/brandsync-wc/p-78a69a59.entry.js +1 -0
- package/dist/brandsync-wc/{p-f370b8fa.entry.js → p-78f4fcf0.entry.js} +1 -1
- package/dist/brandsync-wc/p-7f954939.entry.js +1 -0
- package/dist/brandsync-wc/{p-835a8dc7.entry.js → p-81605b82.entry.js} +1 -1
- package/dist/brandsync-wc/{p-a71d2811.entry.js → p-823ab3b2.entry.js} +1 -1
- package/dist/brandsync-wc/{p-2181378f.entry.js → p-83c90489.entry.js} +1 -1
- package/dist/brandsync-wc/p-89099a39.entry.js +1 -0
- package/dist/brandsync-wc/{p-a92eec48.entry.js → p-89fabf27.entry.js} +1 -1
- package/dist/brandsync-wc/{p-AgoOSYvW.js → p-DqQRXQMx.js} +2 -2
- package/dist/brandsync-wc/{p-18c3c22c.entry.js → p-a9169157.entry.js} +1 -1
- package/dist/brandsync-wc/{p-301b2455.entry.js → p-b84366a7.entry.js} +1 -1
- package/dist/brandsync-wc/{p-a5feaad4.entry.js → p-b8d2ce91.entry.js} +1 -1
- package/dist/brandsync-wc/p-b9a4042e.entry.js +1 -0
- package/dist/brandsync-wc/{p-275072dd.entry.js → p-b9ccd9d1.entry.js} +1 -1
- package/dist/brandsync-wc/{p-61c1a2a3.entry.js → p-be3dd446.entry.js} +1 -1
- package/dist/brandsync-wc/{p-8eba7f90.entry.js → p-d754ee13.entry.js} +1 -1
- package/dist/brandsync-wc/{p-e9b43754.entry.js → p-d75f3f87.entry.js} +1 -1
- package/dist/brandsync-wc/{p-e8a5b8eb.entry.js → p-d8b29a53.entry.js} +1 -1
- package/dist/brandsync-wc/p-de110ad0.entry.js +1 -0
- package/dist/brandsync-wc/p-e2556b4e.entry.js +1 -0
- package/dist/brandsync-wc/{p-af2bf957.entry.js → p-e5daa6ca.entry.js} +1 -1
- package/dist/brandsync-wc/{p-0132a2d1.entry.js → p-f15d9524.entry.js} +1 -1
- package/dist/brandsync-wc/p-f5180578.entry.js +1 -0
- package/dist/brandsync-wc/{p-fd254972.entry.js → p-f7d15fbe.entry.js} +1 -1
- package/dist/brandsync-wc/{p-50a251a4.entry.js → p-fc069773.entry.js} +1 -1
- package/dist/brandsync-wc/p-fcee0dc4.entry.js +1 -0
- package/dist/cjs/brandsync-wc.cjs.js +2 -2
- package/dist/cjs/bs-accordion.cjs.entry.js +1 -1
- package/dist/cjs/bs-ai-disclaimer.cjs.entry.js +2 -2
- package/dist/cjs/bs-ai-greeting.cjs.entry.js +2 -2
- package/dist/cjs/bs-ai-thinking.cjs.entry.js +2 -2
- package/dist/cjs/bs-attachment-list.cjs.entry.js +2 -2
- package/dist/cjs/bs-attachment.cjs.entry.js +1 -1
- package/dist/cjs/bs-avatar.cjs.entry.js +1 -1
- package/dist/cjs/bs-badge.cjs.entry.js +1 -1
- package/dist/cjs/bs-breadcrumb-overflow.cjs.entry.js +1 -1
- package/dist/cjs/bs-breadcrumb.cjs.entry.js +6 -3
- package/dist/cjs/bs-breadcrumbs.cjs.entry.js +2 -2
- package/dist/cjs/bs-button-skeleton.cjs.entry.js +2 -2
- package/dist/cjs/bs-button.cjs.entry.js +3 -3
- package/dist/cjs/bs-card.cjs.entry.js +3 -3
- package/dist/cjs/bs-carousel.cjs.entry.js +1 -1
- package/dist/cjs/bs-chatbot-feedback.cjs.entry.js +2 -2
- package/dist/cjs/bs-chatbot-header.cjs.entry.js +3 -3
- package/dist/cjs/bs-chatbot-response-action.cjs.entry.js +2 -2
- package/dist/cjs/bs-chatbot-sources-drawer.cjs.entry.js +2 -2
- package/dist/cjs/bs-chatbot-suggestion-button.cjs.entry.js +2 -2
- package/dist/cjs/bs-checkbox-skeleton.cjs.entry.js +2 -2
- package/dist/cjs/bs-checkbox.cjs.entry.js +1 -1
- package/dist/cjs/bs-chip-filter.cjs.entry.js +1 -1
- package/dist/cjs/bs-chip-informative.cjs.entry.js +1 -1
- package/dist/cjs/bs-chip-input.cjs.entry.js +1 -1
- package/dist/cjs/bs-composer-status-banner.cjs.entry.js +1 -1
- package/dist/cjs/bs-composer.cjs.entry.js +2 -2
- package/dist/cjs/bs-cookie-consent.cjs.entry.js +186 -0
- package/dist/cjs/bs-data-table.cjs.entry.js +1 -1
- package/dist/cjs/bs-datepicker.cjs.entry.js +13 -9
- package/dist/cjs/bs-dialog.cjs.entry.js +1 -1
- package/dist/cjs/bs-error-page.cjs.entry.js +103 -0
- package/dist/cjs/bs-file-upload-item.cjs.entry.js +2 -2
- package/dist/cjs/bs-file-upload.cjs.entry.js +2 -2
- package/dist/cjs/bs-icon-button.cjs.entry.js +2 -2
- package/dist/cjs/bs-icon-tile.cjs.entry.js +52 -0
- package/dist/cjs/bs-inline-tab.cjs.entry.js +2 -2
- package/dist/cjs/{bs-input_2.cjs.entry.js → bs-input_3.cjs.entry.js} +42 -6
- package/dist/cjs/bs-logo.cjs.entry.js +1 -1
- package/dist/cjs/bs-navigation-drawer-item.cjs.entry.js +2 -2
- package/dist/cjs/bs-navigation-drawer.cjs.entry.js +3 -3
- package/dist/cjs/bs-navigation-header.cjs.entry.js +2 -2
- package/dist/cjs/bs-onboarding-checklist.cjs.entry.js +161 -0
- package/dist/cjs/bs-pagination.cjs.entry.js +2 -2
- package/dist/cjs/bs-product-tour.cjs.entry.js +78 -0
- package/dist/cjs/bs-progress-linear.cjs.entry.js +4 -4
- package/dist/cjs/bs-progress.cjs.entry.js +3 -3
- package/dist/cjs/bs-qr-code.cjs.entry.js +148 -0
- package/dist/cjs/bs-radio.cjs.entry.js +2 -2
- package/dist/cjs/bs-session-timeout.cjs.entry.js +215 -0
- package/dist/cjs/bs-slider.cjs.entry.js +2 -2
- package/dist/cjs/bs-snackbar.cjs.entry.js +9 -3
- package/dist/cjs/bs-source-link.cjs.entry.js +3 -3
- package/dist/cjs/bs-stepper-step.cjs.entry.js +2 -2
- package/dist/cjs/bs-stepper.cjs.entry.js +2 -2
- package/dist/cjs/bs-switch.cjs.entry.js +2 -2
- package/dist/cjs/bs-tab_3.cjs.entry.js +255 -0
- package/dist/cjs/bs-timepicker.cjs.entry.js +4 -4
- package/dist/cjs/bs-toast.cjs.entry.js +2 -2
- package/dist/cjs/bs-tooltip.cjs.entry.js +2 -2
- package/dist/cjs/bs-whats-new.cjs.entry.js +144 -0
- package/dist/cjs/{index-kk9YXF2S.js → index-tFJjflK5.js} +15 -3
- package/dist/cjs/loader.cjs.js +2 -2
- package/dist/collection/collection-manifest.json +9 -0
- package/dist/collection/components/bs-a11y.cmp.test.js +22 -0
- package/dist/collection/components/bs-ai-disclaimer/bs-ai-disclaimer.js +1 -1
- package/dist/collection/components/bs-ai-greeting/bs-ai-greeting.js +1 -1
- package/dist/collection/components/bs-ai-thinking/bs-ai-thinking.js +1 -1
- package/dist/collection/components/bs-attachment/bs-attachment.stories.js +4 -3
- package/dist/collection/components/bs-attachment-list/bs-attachment-list.js +1 -1
- package/dist/collection/components/bs-breadcrumb/bs-breadcrumb/bs-breadcrumb.js +6 -3
- package/dist/collection/components/bs-breadcrumb/bs-breadcrumbs/bs-breadcrumbs.js +1 -1
- package/dist/collection/components/bs-button/bs-button/bs-button.cmp.test.js +28 -0
- package/dist/collection/components/bs-button/bs-button/bs-button.css +8 -2
- package/dist/collection/components/bs-button/bs-button/bs-button.js +4 -1
- package/dist/collection/components/bs-button/bs-icon-button/bs-icon-button.js +1 -1
- package/dist/collection/components/bs-button-skeleton/bs-button-skeleton.js +1 -1
- package/dist/collection/components/bs-card/bs-card.cmp.test.js +48 -0
- package/dist/collection/components/bs-card/bs-card.css +37 -16
- package/dist/collection/components/bs-card/bs-card.js +2 -2
- package/dist/collection/components/bs-chatbot-feedback/bs-chatbot-feedback.js +1 -1
- package/dist/collection/components/bs-chatbot-header/bs-chatbot-header.cmp.test.js +2 -2
- package/dist/collection/components/bs-chatbot-header/bs-chatbot-header.css +1 -1
- package/dist/collection/components/bs-chatbot-header/bs-chatbot-header.js +1 -1
- package/dist/collection/components/bs-chatbot-response-action/bs-chatbot-response-action.js +1 -1
- package/dist/collection/components/bs-chatbot-sources-drawer/bs-chatbot-sources-drawer.js +1 -1
- package/dist/collection/components/bs-chatbot-suggestion-button/bs-chatbot-suggestion-button.js +1 -1
- package/dist/collection/components/bs-checkbox/bs-checkbox-skeleton/bs-checkbox-skeleton.js +1 -1
- package/dist/collection/components/bs-composer/bs-composer.css +4 -2
- package/dist/collection/components/bs-cookie-consent/bs-cookie-consent.cmp.test.js +217 -0
- package/dist/collection/components/bs-cookie-consent/bs-cookie-consent.css +350 -0
- package/dist/collection/components/bs-cookie-consent/bs-cookie-consent.js +668 -0
- package/dist/collection/components/bs-cookie-consent/bs-cookie-consent.stories.js +103 -0
- package/dist/collection/components/bs-datepicker/bs-datepicker.cmp.test.js +9 -0
- package/dist/collection/components/bs-datepicker/bs-datepicker.css +21 -11
- package/dist/collection/components/bs-datepicker/bs-datepicker.js +13 -7
- package/dist/collection/components/bs-datepicker/bs-datepicker.stories.js +3 -2
- package/dist/collection/components/bs-error-page/bs-error-page.cmp.test.js +99 -0
- package/dist/collection/components/bs-error-page/bs-error-page.css +105 -0
- package/dist/collection/components/bs-error-page/bs-error-page.js +328 -0
- package/dist/collection/components/bs-error-page/bs-error-page.stories.js +57 -0
- package/dist/collection/components/bs-file-upload/bs-file-upload.js +1 -1
- package/dist/collection/components/bs-file-upload-item/bs-file-upload-item.js +1 -1
- package/dist/collection/components/bs-icon-tile/bs-icon-tile.cmp.test.js +175 -0
- package/dist/collection/components/bs-icon-tile/bs-icon-tile.css +112 -0
- package/dist/collection/components/bs-icon-tile/bs-icon-tile.js +158 -0
- package/dist/collection/components/bs-icon-tile/bs-icon-tile.stories.js +45 -0
- package/dist/collection/components/bs-input/bs-input.cmp.test.js +16 -2
- package/dist/collection/components/bs-input/bs-input.css +15 -23
- package/dist/collection/components/bs-input/bs-input.js +8 -4
- package/dist/collection/components/bs-menu/bs-menu.js +1 -1
- package/dist/collection/components/bs-menu-item/bs-menu-item.js +1 -1
- package/dist/collection/components/bs-onboarding-checklist/bs-onboarding-checklist.cmp.test.js +280 -0
- package/dist/collection/components/bs-onboarding-checklist/bs-onboarding-checklist.css +488 -0
- package/dist/collection/components/bs-onboarding-checklist/bs-onboarding-checklist.js +674 -0
- package/dist/collection/components/bs-onboarding-checklist/bs-onboarding-checklist.stories.js +92 -0
- package/dist/collection/components/bs-pagination/bs-pagination.js +1 -1
- package/dist/collection/components/bs-product-tour/bs-product-tour.cmp.test.js +116 -0
- package/dist/collection/components/bs-product-tour/bs-product-tour.css +265 -0
- package/dist/collection/components/bs-product-tour/bs-product-tour.js +391 -0
- package/dist/collection/components/bs-product-tour/bs-product-tour.stories.js +68 -0
- package/dist/collection/components/bs-progress/bs-progress.js +2 -2
- package/dist/collection/components/bs-progress-linear/bs-progress-linear.css +1 -1
- package/dist/collection/components/bs-progress-linear/bs-progress-linear.js +2 -2
- package/dist/collection/components/bs-qr-code/bs-qr-code.cmp.test.js +152 -0
- package/dist/collection/components/bs-qr-code/bs-qr-code.css +307 -0
- package/dist/collection/components/bs-qr-code/bs-qr-code.js +767 -0
- package/dist/collection/components/bs-qr-code/bs-qr-code.stories.js +99 -0
- package/dist/collection/components/bs-radio/bs-radio.js +1 -1
- package/dist/collection/components/bs-session-timeout/bs-session-timeout.cmp.test.js +202 -0
- package/dist/collection/components/bs-session-timeout/bs-session-timeout.css +239 -0
- package/dist/collection/components/bs-session-timeout/bs-session-timeout.js +772 -0
- package/dist/collection/components/bs-session-timeout/bs-session-timeout.stories.js +88 -0
- package/dist/collection/components/bs-slider/bs-slider.js +1 -1
- package/dist/collection/components/bs-snackbar/bs-snackbar.cmp.test.js +20 -0
- package/dist/collection/components/bs-snackbar/bs-snackbar.css +6 -4
- package/dist/collection/components/bs-snackbar/bs-snackbar.js +53 -1
- package/dist/collection/components/bs-source-link/bs-source-link.js +2 -2
- package/dist/collection/components/bs-stepper/bs-stepper/bs-stepper.js +1 -1
- package/dist/collection/components/bs-stepper/bs-stepper-step/bs-stepper-step.js +1 -1
- package/dist/collection/components/bs-switch/bs-switch.js +1 -1
- package/dist/collection/components/bs-tab/bs-inline-tab/bs-inline-tab.js +1 -1
- package/dist/collection/components/bs-tab/bs-tab/bs-tab.js +1 -1
- package/dist/collection/components/bs-tab/bs-tabs/bs-tabs.js +1 -1
- package/dist/collection/components/bs-timepicker/bs-timepicker.css +15 -11
- package/dist/collection/components/bs-timepicker/bs-timepicker.js +4 -2
- package/dist/collection/components/bs-toast/bs-toast.js +1 -1
- package/dist/collection/components/bs-tooltip/bs-tooltip.js +1 -1
- package/dist/collection/components/bs-whats-new/bs-whats-new.cmp.test.js +200 -0
- package/dist/collection/components/bs-whats-new/bs-whats-new.css +315 -0
- package/dist/collection/components/bs-whats-new/bs-whats-new.js +790 -0
- package/dist/collection/components/bs-whats-new/bs-whats-new.stories.js +105 -0
- package/dist/collection/components/bs-whats-new-entry/bs-whats-new-entry.cmp.test.js +79 -0
- package/dist/collection/components/bs-whats-new-entry/bs-whats-new-entry.css +131 -0
- package/dist/collection/components/bs-whats-new-entry/bs-whats-new-entry.js +295 -0
- package/dist/collection/components/bs-whats-new-entry/bs-whats-new-entry.stories.js +67 -0
- package/dist/collection/components/ui-shell/bs-navigation-drawer/bs-navigation-drawer/bs-navigation-drawer.js +2 -2
- package/dist/collection/components/ui-shell/bs-navigation-drawer/bs-navigation-drawer-item/bs-navigation-drawer-item.js +1 -1
- package/dist/collection/components/ui-shell/bs-navigation-header/bs-navigation-header/bs-navigation-header.js +1 -1
- package/dist/components/bs-accordion.js +1 -1
- package/dist/components/bs-ai-disclaimer.js +1 -1
- package/dist/components/bs-ai-greeting.js +1 -1
- package/dist/components/bs-ai-thinking.js +1 -1
- package/dist/components/bs-attachment-list.js +1 -1
- package/dist/components/bs-attachment.js +1 -1
- package/dist/components/bs-avatar.js +1 -1
- package/dist/components/bs-badge.js +1 -1
- package/dist/components/bs-breadcrumb-overflow.js +1 -1
- package/dist/components/bs-breadcrumb.js +1 -1
- package/dist/components/bs-breadcrumbs.js +1 -1
- package/dist/components/bs-button-skeleton.js +1 -1
- package/dist/components/bs-button.js +1 -1
- package/dist/components/bs-card.js +1 -1
- package/dist/components/bs-carousel.js +1 -1
- package/dist/components/bs-chatbot-feedback.js +1 -1
- package/dist/components/bs-chatbot-header.js +1 -1
- package/dist/components/bs-chatbot-response-action.js +1 -1
- package/dist/components/bs-chatbot-sources-drawer.js +1 -1
- package/dist/components/bs-chatbot-suggestion-button.js +1 -1
- package/dist/components/bs-checkbox-skeleton.js +1 -1
- package/dist/components/bs-checkbox.js +1 -1
- package/dist/components/bs-chip-filter.js +1 -1
- package/dist/components/bs-chip-informative.js +1 -1
- package/dist/components/bs-chip-input.js +1 -1
- package/dist/components/bs-composer-status-banner.js +1 -1
- package/dist/components/bs-composer.js +1 -1
- package/dist/components/bs-cookie-consent.d.ts +11 -0
- package/dist/components/bs-cookie-consent.js +1 -0
- package/dist/components/bs-data-table.js +1 -1
- package/dist/components/bs-datepicker.js +1 -1
- package/dist/components/bs-dialog.js +1 -1
- package/dist/components/bs-error-page.d.ts +11 -0
- package/dist/components/bs-error-page.js +1 -0
- package/dist/components/bs-file-upload-item.js +1 -1
- package/dist/components/bs-file-upload.js +1 -1
- package/dist/components/bs-icon-button.js +1 -1
- package/dist/components/bs-icon-tile.d.ts +11 -0
- package/dist/components/bs-icon-tile.js +1 -0
- package/dist/components/bs-inline-tab.js +1 -1
- package/dist/components/bs-input.js +1 -1
- package/dist/components/bs-logo.js +1 -1
- package/dist/components/bs-menu-item.js +1 -1
- package/dist/components/bs-menu.js +1 -1
- package/dist/components/bs-navigation-drawer-item.js +1 -1
- package/dist/components/bs-navigation-drawer.js +1 -1
- package/dist/components/bs-navigation-header.js +1 -1
- package/dist/components/bs-onboarding-checklist.d.ts +11 -0
- package/dist/components/bs-onboarding-checklist.js +1 -0
- package/dist/components/bs-pagination.js +1 -1
- package/dist/components/bs-product-tour.d.ts +11 -0
- package/dist/components/bs-product-tour.js +1 -0
- package/dist/components/bs-progress-linear.js +1 -1
- package/dist/components/bs-progress.js +1 -1
- package/dist/components/bs-qr-code.d.ts +11 -0
- package/dist/components/bs-qr-code.js +1 -0
- package/dist/components/bs-radio.js +1 -1
- package/dist/components/bs-session-timeout.d.ts +11 -0
- package/dist/components/bs-session-timeout.js +1 -0
- package/dist/components/bs-slider.js +1 -1
- package/dist/components/bs-snackbar.js +1 -1
- package/dist/components/bs-source-link.js +1 -1
- package/dist/components/bs-stepper-step.js +1 -1
- package/dist/components/bs-stepper.js +1 -1
- package/dist/components/bs-switch.js +1 -1
- package/dist/components/bs-tab.js +1 -1
- package/dist/components/bs-tabs.js +1 -1
- package/dist/components/bs-timepicker.js +1 -1
- package/dist/components/bs-toast.js +1 -1
- package/dist/components/bs-tooltip.js +1 -1
- package/dist/components/bs-whats-new-entry.d.ts +11 -0
- package/dist/components/bs-whats-new-entry.js +1 -0
- package/dist/components/bs-whats-new.d.ts +11 -0
- package/dist/components/bs-whats-new.js +1 -0
- package/dist/components/index.js +1 -1
- package/dist/components/{p-R2MlkUzD.js → p-BEEoVNRu.js} +1 -1
- package/dist/components/p-BUskqBR6.js +1 -0
- package/dist/components/{p-DkIVyFOP.js → p-BZ3M4lOU.js} +1 -1
- package/dist/components/{p-ZK8p5zax.js → p-Be9L4_Fe.js} +1 -1
- package/dist/components/p-Be_Pmccm.js +1 -0
- package/dist/components/{p-CPvqZNO8.js → p-Bl_tVzeq.js} +1 -1
- package/dist/components/p-C8yT2Ucq.js +1 -0
- package/dist/components/p-CA31vqjL.js +1 -0
- package/dist/components/p-CUfs0ROR.js +1 -0
- package/dist/components/{p-JYlmcxBn.js → p-CVrEuVFo.js} +1 -1
- package/dist/components/{p-B7Icv1ho.js → p-C_j_jDM6.js} +1 -1
- package/dist/components/p-CbimDNGY.js +1 -0
- package/dist/components/p-CeUK3n7D.js +1 -0
- package/dist/components/p-CncySD_-.js +1 -0
- package/dist/components/p-DE8K7fg0.js +1 -0
- package/dist/components/p-Dr0Qk9Zc.js +1 -0
- package/dist/components/p-DuLL7Ouw.js +1 -0
- package/dist/components/p-YsHQLXET.js +1 -0
- package/dist/components/p-qmS2CBqi.js +1 -0
- package/dist/components/{p-BYR_ZC8v.js → p-zTHlbyH6.js} +1 -1
- package/dist/esm/brandsync-wc.js +3 -3
- package/dist/esm/bs-accordion.entry.js +1 -1
- package/dist/esm/bs-ai-disclaimer.entry.js +2 -2
- package/dist/esm/bs-ai-greeting.entry.js +2 -2
- package/dist/esm/bs-ai-thinking.entry.js +2 -2
- package/dist/esm/bs-attachment-list.entry.js +2 -2
- package/dist/esm/bs-attachment.entry.js +1 -1
- package/dist/esm/bs-avatar.entry.js +1 -1
- package/dist/esm/bs-badge.entry.js +1 -1
- package/dist/esm/bs-breadcrumb-overflow.entry.js +1 -1
- package/dist/esm/bs-breadcrumb.entry.js +6 -3
- package/dist/esm/bs-breadcrumbs.entry.js +2 -2
- package/dist/esm/bs-button-skeleton.entry.js +2 -2
- package/dist/esm/bs-button.entry.js +3 -3
- package/dist/esm/bs-card.entry.js +3 -3
- package/dist/esm/bs-carousel.entry.js +1 -1
- package/dist/esm/bs-chatbot-feedback.entry.js +2 -2
- package/dist/esm/bs-chatbot-header.entry.js +3 -3
- package/dist/esm/bs-chatbot-response-action.entry.js +2 -2
- package/dist/esm/bs-chatbot-sources-drawer.entry.js +2 -2
- package/dist/esm/bs-chatbot-suggestion-button.entry.js +2 -2
- package/dist/esm/bs-checkbox-skeleton.entry.js +2 -2
- package/dist/esm/bs-checkbox.entry.js +1 -1
- package/dist/esm/bs-chip-filter.entry.js +1 -1
- package/dist/esm/bs-chip-informative.entry.js +1 -1
- package/dist/esm/bs-chip-input.entry.js +1 -1
- package/dist/esm/bs-composer-status-banner.entry.js +1 -1
- package/dist/esm/bs-composer.entry.js +2 -2
- package/dist/esm/bs-cookie-consent.entry.js +184 -0
- package/dist/esm/bs-data-table.entry.js +1 -1
- package/dist/esm/bs-datepicker.entry.js +13 -9
- package/dist/esm/bs-dialog.entry.js +1 -1
- package/dist/esm/bs-error-page.entry.js +101 -0
- package/dist/esm/bs-file-upload-item.entry.js +2 -2
- package/dist/esm/bs-file-upload.entry.js +2 -2
- package/dist/esm/bs-icon-button.entry.js +2 -2
- package/dist/esm/bs-icon-tile.entry.js +50 -0
- package/dist/esm/bs-inline-tab.entry.js +2 -2
- package/dist/esm/{bs-input_2.entry.js → bs-input_3.entry.js} +42 -7
- package/dist/esm/bs-logo.entry.js +1 -1
- package/dist/esm/bs-navigation-drawer-item.entry.js +2 -2
- package/dist/esm/bs-navigation-drawer.entry.js +3 -3
- package/dist/esm/bs-navigation-header.entry.js +2 -2
- package/dist/esm/bs-onboarding-checklist.entry.js +159 -0
- package/dist/esm/bs-pagination.entry.js +2 -2
- package/dist/esm/bs-product-tour.entry.js +76 -0
- package/dist/esm/bs-progress-linear.entry.js +4 -4
- package/dist/esm/bs-progress.entry.js +3 -3
- package/dist/esm/bs-qr-code.entry.js +146 -0
- package/dist/esm/bs-radio.entry.js +2 -2
- package/dist/esm/bs-session-timeout.entry.js +213 -0
- package/dist/esm/bs-slider.entry.js +2 -2
- package/dist/esm/bs-snackbar.entry.js +9 -3
- package/dist/esm/bs-source-link.entry.js +3 -3
- package/dist/esm/bs-stepper-step.entry.js +2 -2
- package/dist/esm/bs-stepper.entry.js +2 -2
- package/dist/esm/bs-switch.entry.js +2 -2
- package/dist/esm/bs-tab_3.entry.js +251 -0
- package/dist/esm/bs-timepicker.entry.js +4 -4
- package/dist/esm/bs-toast.entry.js +2 -2
- package/dist/esm/bs-tooltip.entry.js +2 -2
- package/dist/esm/bs-whats-new.entry.js +142 -0
- package/dist/esm/{index-AgoOSYvW.js → index-DqQRXQMx.js} +15 -3
- package/dist/esm/loader.js +3 -3
- package/dist/types/components/bs-attachment/bs-attachment.stories.d.ts +1 -1
- package/dist/types/components/bs-breadcrumb/bs-breadcrumb/bs-breadcrumb.d.ts +4 -1
- package/dist/types/components/bs-button/bs-button/bs-button.d.ts +3 -0
- package/dist/types/components/bs-cookie-consent/bs-cookie-consent.cmp.test.d.ts +1 -0
- package/dist/types/components/bs-cookie-consent/bs-cookie-consent.d.ts +136 -0
- package/dist/types/components/bs-cookie-consent/bs-cookie-consent.stories.d.ts +16 -0
- package/dist/types/components/bs-datepicker/bs-datepicker.d.ts +2 -0
- package/dist/types/components/bs-error-page/bs-error-page.cmp.test.d.ts +1 -0
- package/dist/types/components/bs-error-page/bs-error-page.d.ts +60 -0
- package/dist/types/components/bs-error-page/bs-error-page.stories.d.ts +22 -0
- package/dist/types/components/bs-icon-tile/bs-icon-tile.cmp.test.d.ts +1 -0
- package/dist/types/components/bs-icon-tile/bs-icon-tile.d.ts +40 -0
- package/dist/types/components/bs-icon-tile/bs-icon-tile.stories.d.ts +13 -0
- package/dist/types/components/bs-input/bs-input.d.ts +4 -1
- package/dist/types/components/bs-onboarding-checklist/bs-onboarding-checklist.cmp.test.d.ts +1 -0
- package/dist/types/components/bs-onboarding-checklist/bs-onboarding-checklist.d.ts +140 -0
- package/dist/types/components/bs-onboarding-checklist/bs-onboarding-checklist.stories.d.ts +18 -0
- package/dist/types/components/bs-product-tour/bs-product-tour.cmp.test.d.ts +1 -0
- package/dist/types/components/bs-product-tour/bs-product-tour.d.ts +78 -0
- package/dist/types/components/bs-product-tour/bs-product-tour.stories.d.ts +19 -0
- package/dist/types/components/bs-qr-code/bs-qr-code.cmp.test.d.ts +1 -0
- package/dist/types/components/bs-qr-code/bs-qr-code.d.ts +124 -0
- package/dist/types/components/bs-qr-code/bs-qr-code.stories.d.ts +28 -0
- package/dist/types/components/bs-session-timeout/bs-session-timeout.cmp.test.d.ts +1 -0
- package/dist/types/components/bs-session-timeout/bs-session-timeout.d.ts +141 -0
- package/dist/types/components/bs-session-timeout/bs-session-timeout.stories.d.ts +19 -0
- package/dist/types/components/bs-snackbar/bs-snackbar.d.ts +7 -0
- package/dist/types/components/bs-timepicker/bs-timepicker.d.ts +2 -0
- package/dist/types/components/bs-whats-new/bs-whats-new.cmp.test.d.ts +1 -0
- package/dist/types/components/bs-whats-new/bs-whats-new.d.ts +147 -0
- package/dist/types/components/bs-whats-new/bs-whats-new.stories.d.ts +14 -0
- package/dist/types/components/bs-whats-new-entry/bs-whats-new-entry.cmp.test.d.ts +1 -0
- package/dist/types/components/bs-whats-new-entry/bs-whats-new-entry.d.ts +53 -0
- package/dist/types/components/bs-whats-new-entry/bs-whats-new-entry.stories.d.ts +18 -0
- package/dist/types/components.d.ts +2642 -98
- package/package.json +3 -2
- package/dist/brandsync-wc/p-1c3a43c7.entry.js +0 -1
- package/dist/brandsync-wc/p-1c427ffb.entry.js +0 -1
- package/dist/brandsync-wc/p-4f2c4929.entry.js +0 -1
- package/dist/brandsync-wc/p-76e1c295.entry.js +0 -1
- package/dist/brandsync-wc/p-790db8b3.entry.js +0 -1
- package/dist/brandsync-wc/p-796a1860.entry.js +0 -1
- package/dist/brandsync-wc/p-806a5347.entry.js +0 -1
- package/dist/brandsync-wc/p-addfa0a0.entry.js +0 -1
- package/dist/brandsync-wc/p-c9a72416.entry.js +0 -1
- package/dist/brandsync-wc/p-d42b1c2b.entry.js +0 -1
- package/dist/brandsync-wc/p-f006d962.entry.js +0 -1
- package/dist/brandsync-wc/p-f074f94e.entry.js +0 -1
- package/dist/cjs/bs-menu.cjs.entry.js +0 -39
- package/dist/cjs/bs-tab.cjs.entry.js +0 -88
- package/dist/cjs/bs-tabs.cjs.entry.js +0 -133
- package/dist/components/p-BTvme8CE.js +0 -1
- package/dist/components/p-Ba860ej1.js +0 -1
- package/dist/components/p-CpUHnsq9.js +0 -1
- package/dist/components/p-jDO25SfF.js +0 -1
- package/dist/esm/bs-menu.entry.js +0 -37
- package/dist/esm/bs-tab.entry.js +0 -86
- package/dist/esm/bs-tabs.entry.js +0 -131
|
@@ -0,0 +1,668 @@
|
|
|
1
|
+
import { h } from "@stencil/core";
|
|
2
|
+
/**
|
|
3
|
+
* A cookie consent prompt in four forms, matching the Figma "Cookie consent" component:
|
|
4
|
+
*
|
|
5
|
+
* - `banner` -- a wide bar: icon, heading, text, policy link, and Customise / Reject optional / Accept
|
|
6
|
+
* all. Stacks into a column on narrow containers (its own width, not the viewport's).
|
|
7
|
+
* - `card` -- the compact version of the same question, in a card.
|
|
8
|
+
* - `preferences` -- the detailed dialog: one row per cookie category with a switch (strictly
|
|
9
|
+
* necessary is "Always on"), an expandable list of the cookies in each, and Reject optional /
|
|
10
|
+
* Accept all / Save choices.
|
|
11
|
+
* - `saved` -- a dark confirmation bar ("Cookie choices saved") with a Change action.
|
|
12
|
+
*
|
|
13
|
+
* The component only collects the choice. It doesn't set, read or delete cookies, remember that the
|
|
14
|
+
* user answered, or decide when to show itself: your app does that from the events, and swaps `type`
|
|
15
|
+
* (e.g. `banner` -> `preferences` on `bsCustomise`, `preferences` -> `saved` on `bsSave`).
|
|
16
|
+
*
|
|
17
|
+
* **Built from:** `bs-card` (the surface), `bs-icon-tile` (the icon), `bs-button` (the actions),
|
|
18
|
+
* `bs-switch` (the category switches), `bs-chip-informative` (the "Always on" badge), `bs-icon-button`
|
|
19
|
+
* (the close button), `bs-snackbar` (the saved confirmation).
|
|
20
|
+
*
|
|
21
|
+
* ## When to use
|
|
22
|
+
* - Asking for consent to optional cookies or similar tracking, as the law of your market requires.
|
|
23
|
+
*
|
|
24
|
+
* ## When not to use
|
|
25
|
+
* - Telling people about necessary cookies only -- that needs no consent prompt.
|
|
26
|
+
*
|
|
27
|
+
* ## Fair choice
|
|
28
|
+
* "Reject optional" has the same prominence as "Accept all" (same size, both always visible). Keep it
|
|
29
|
+
* that way: a prompt that makes refusing harder than accepting isn't valid consent in most places.
|
|
30
|
+
*
|
|
31
|
+
* @slot icon - Replaces the cookie glyph in the icon tile. Draw it with `currentColor`.
|
|
32
|
+
* @part container - The card (or the snackbar, for `saved`).
|
|
33
|
+
* @part art - The icon tile.
|
|
34
|
+
* @part heading - The heading.
|
|
35
|
+
* @part description - The paragraph under it.
|
|
36
|
+
* @part policy - The cookie policy link.
|
|
37
|
+
* @part actions - The row of consent buttons.
|
|
38
|
+
* @part customise - The Customise button.
|
|
39
|
+
* @part reject - The Reject optional button.
|
|
40
|
+
* @part accept - The Accept all button.
|
|
41
|
+
* @part save - The Save choices button (`preferences`).
|
|
42
|
+
* @part close - The close button (`preferences`).
|
|
43
|
+
* @part category - Each cookie category (`preferences`).
|
|
44
|
+
* @part switch - Each category's switch (`preferences`).
|
|
45
|
+
*/
|
|
46
|
+
export class BsCookieConsent {
|
|
47
|
+
/** Which form: `banner`, `card`, `preferences` or `saved`. */
|
|
48
|
+
type = 'banner';
|
|
49
|
+
/** Heading. Defaults per `type`. */
|
|
50
|
+
heading;
|
|
51
|
+
/** HTML heading level, 1-6. */
|
|
52
|
+
headingLevel = 2;
|
|
53
|
+
/** Paragraph under the heading (the message, for `saved`). Defaults per `type`. */
|
|
54
|
+
description;
|
|
55
|
+
/** URL of your cookie policy. The "Read the cookie policy" link is only shown when this is set. */
|
|
56
|
+
policyUrl;
|
|
57
|
+
/** Text of the policy link. */
|
|
58
|
+
policyLabel = 'Read the cookie policy';
|
|
59
|
+
/** Label of the Customise button. */
|
|
60
|
+
customiseLabel = 'Customise';
|
|
61
|
+
/** Label of the Reject optional button. */
|
|
62
|
+
rejectLabel = 'Reject optional';
|
|
63
|
+
/** Label of the Accept all button. */
|
|
64
|
+
acceptLabel = 'Accept all';
|
|
65
|
+
/** Label of the Save choices button (`preferences`). */
|
|
66
|
+
saveLabel = 'Save choices';
|
|
67
|
+
/** Label of the action on the confirmation (`saved`). */
|
|
68
|
+
changeLabel = 'Change';
|
|
69
|
+
/** Text of the badge on required categories (`preferences`). */
|
|
70
|
+
alwaysOnLabel = 'Always on';
|
|
71
|
+
/** Label of a category's disclosure; `{count}` is replaced by the number of cookies. */
|
|
72
|
+
seeCookiesLabel = 'See {count} cookies';
|
|
73
|
+
/** Accessible name of the close button (`preferences`). */
|
|
74
|
+
closeLabel = 'Close';
|
|
75
|
+
/** The categories in the preferences dialog (`preferences`): `[{ id, label, description?, required?,
|
|
76
|
+
* enabled?, cookies? }]`. Defaults to Strictly necessary, Preferences, Analytics and Marketing. Must
|
|
77
|
+
* be set as a JS property, not an HTML attribute -- see CONVENTIONS.md's non-string props rule. */
|
|
78
|
+
categories = [
|
|
79
|
+
{
|
|
80
|
+
id: 'necessary',
|
|
81
|
+
label: 'Strictly necessary',
|
|
82
|
+
description: 'Needed for sign-in, security and to keep the service running. These cannot be turned off.',
|
|
83
|
+
required: true,
|
|
84
|
+
cookies: [
|
|
85
|
+
'Session cookie — keeps you signed in as you move between pages.',
|
|
86
|
+
'Security cookie — helps prevent fraud and unauthorized access.',
|
|
87
|
+
'Consent cookie — remembers your cookie consent choices.',
|
|
88
|
+
],
|
|
89
|
+
},
|
|
90
|
+
{ id: 'preferences', label: 'Preferences', description: 'Remember your language, theme and table layouts on this device.', enabled: true },
|
|
91
|
+
{ id: 'analytics', label: 'Analytics', description: 'Help us understand which features are used so we can improve them. Data is anonymised.' },
|
|
92
|
+
{ id: 'marketing', label: 'Marketing', description: 'Show relevant products on other websites.' },
|
|
93
|
+
];
|
|
94
|
+
/** Fires when Accept all is pressed. `{ choices }` has every category on. */
|
|
95
|
+
bsAccept;
|
|
96
|
+
/** Fires when Reject optional is pressed. `{ choices }` has only the required categories on. */
|
|
97
|
+
bsReject;
|
|
98
|
+
/** Fires when Customise is pressed -- show the `preferences` form. */
|
|
99
|
+
bsCustomise;
|
|
100
|
+
/** Fires when Save choices is pressed (`preferences`), with the current switches. */
|
|
101
|
+
bsSave;
|
|
102
|
+
/** Fires when a category switch is toggled (`preferences`). */
|
|
103
|
+
bsChoice;
|
|
104
|
+
/** Fires when the close button is pressed (`preferences`). */
|
|
105
|
+
bsClose;
|
|
106
|
+
/** Fires when the action on the confirmation is pressed (`saved`) -- reopen the preferences. */
|
|
107
|
+
bsManage;
|
|
108
|
+
/** Current switch state per category id. */
|
|
109
|
+
choices = {};
|
|
110
|
+
/** Which category disclosures are open. */
|
|
111
|
+
open = {};
|
|
112
|
+
componentWillLoad() {
|
|
113
|
+
this.resetChoices();
|
|
114
|
+
}
|
|
115
|
+
onCategoriesChange() {
|
|
116
|
+
this.resetChoices();
|
|
117
|
+
}
|
|
118
|
+
resetChoices() {
|
|
119
|
+
const next = {};
|
|
120
|
+
(this.categories ?? []).forEach(c => (next[c.id] = !!c.required || !!c.enabled));
|
|
121
|
+
this.choices = next;
|
|
122
|
+
}
|
|
123
|
+
all(value) {
|
|
124
|
+
const out = {};
|
|
125
|
+
(this.categories ?? []).forEach(c => (out[c.id] = value === 'required' ? !!c.required : value));
|
|
126
|
+
return out;
|
|
127
|
+
}
|
|
128
|
+
get defaults() {
|
|
129
|
+
return DEFAULTS[this.type] ?? DEFAULTS.banner;
|
|
130
|
+
}
|
|
131
|
+
// --- rendering ---------------------------------------------------------------------------
|
|
132
|
+
heading_(text) {
|
|
133
|
+
const level = Math.min(6, Math.max(1, Math.trunc(Number(this.headingLevel)) || 2));
|
|
134
|
+
return h(`h${level}`, { part: 'heading', id: 'heading', class: { 'bs-cookie-consent__heading': true } }, text);
|
|
135
|
+
}
|
|
136
|
+
policy() {
|
|
137
|
+
if (!this.policyUrl)
|
|
138
|
+
return null;
|
|
139
|
+
return (h("a", { part: "policy", class: "bs-cookie-consent__policy", href: this.policyUrl }, this.policyLabel));
|
|
140
|
+
}
|
|
141
|
+
customise() {
|
|
142
|
+
return (h("bs-button", { part: "customise", class: "bs-cookie-consent__text-button", variant: "subtle", onClick: () => this.bsCustomise.emit() }, this.customiseLabel));
|
|
143
|
+
}
|
|
144
|
+
reject(variant = 'outlined') {
|
|
145
|
+
return (h("bs-button", { part: "reject", variant: variant, onClick: () => this.bsReject.emit({ choices: this.all('required') }) }, this.rejectLabel));
|
|
146
|
+
}
|
|
147
|
+
accept(variant = 'primary') {
|
|
148
|
+
return (h("bs-button", { part: "accept", variant: variant, onClick: () => this.bsAccept.emit({ choices: this.all(true) }) }, this.acceptLabel));
|
|
149
|
+
}
|
|
150
|
+
renderBanner(d) {
|
|
151
|
+
return (h("bs-card", { part: "container", class: "bs-cookie-consent bs-cookie-consent--banner", surface: "base", role: "region", "aria-labelledby": "heading" }, h("div", { class: "bs-cookie-consent__banner" }, h("div", { class: "bs-cookie-consent__banner-content" }, h("bs-icon-tile", { part: "art", size: "lg" }, h("slot", { name: "icon" }, h(CookieIcon, null))), h("div", { class: "bs-cookie-consent__copy" }, this.heading_(this.heading ?? d.heading), h("p", { part: "description", class: "bs-cookie-consent__description" }, this.description ?? d.description), this.policy())), h("div", { part: "actions", class: "bs-cookie-consent__actions bs-cookie-consent__actions--banner" }, this.customise(), this.reject(), this.accept()))));
|
|
152
|
+
}
|
|
153
|
+
renderCard(d) {
|
|
154
|
+
return (h("bs-card", { part: "container", class: "bs-cookie-consent bs-cookie-consent--card", surface: "base", role: "region", "aria-labelledby": "heading" }, h("div", { class: "bs-cookie-consent__card" }, h("div", { class: "bs-cookie-consent__head" }, h("bs-icon-tile", { part: "art", size: "md" }, h("slot", { name: "icon" }, h(CookieIcon, null))), this.heading_(this.heading ?? d.heading)), h("p", { part: "description", class: "bs-cookie-consent__description" }, this.description ?? d.description), this.policy(), h("div", { class: "bs-cookie-consent__rule" }), h("div", { part: "actions", class: "bs-cookie-consent__actions bs-cookie-consent__actions--card" }, this.customise(), h("span", { class: "bs-cookie-consent__spacer" }), this.reject(), this.accept()))));
|
|
155
|
+
}
|
|
156
|
+
renderCategory(c, last) {
|
|
157
|
+
const expanded = !!this.open[c.id];
|
|
158
|
+
const count = c.cookies?.length ?? 0;
|
|
159
|
+
const listId = `cookies-${c.id}`;
|
|
160
|
+
return [
|
|
161
|
+
h("div", { part: "category", class: "bs-cookie-consent__category" }, h("div", { class: { 'bs-cookie-consent__category-head': true, 'bs-cookie-consent__category-head--switch': !c.required } }, h("span", { class: "bs-cookie-consent__category-name" }, c.label), c.required ? (h("bs-chip-informative", { size: "sm", color: "neutral" }, this.alwaysOnLabel)) : (h("bs-switch", { part: "switch", size: "md", ariaLabel: c.label, checked: !!this.choices[c.id], onBsChange: (ev) => {
|
|
162
|
+
this.choices = { ...this.choices, [c.id]: ev.detail };
|
|
163
|
+
this.bsChoice.emit({ id: c.id, enabled: ev.detail });
|
|
164
|
+
} }))), c.description && h("p", { class: "bs-cookie-consent__category-text" }, c.description), count > 0 && (h("div", { class: "bs-cookie-consent__details" }, h("button", { type: "button", class: "bs-cookie-consent__disclosure", "aria-expanded": String(expanded), "aria-controls": listId, onClick: () => (this.open = { ...this.open, [c.id]: !expanded }) }, h("span", null, this.seeCookiesLabel.replace('{count}', String(count))), h("svg", { viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", "stroke-width": "2", "stroke-linecap": "round", "stroke-linejoin": "round", "aria-hidden": "true" }, h("path", { d: expanded ? 'M6 15L12 9L18 15' : 'M6 9L12 15L18 9' }))), expanded && (h("ol", { id: listId, class: "bs-cookie-consent__cookie-list" }, c.cookies.map(text => (h("li", null, text)))))))),
|
|
165
|
+
!last && h("div", { class: "bs-cookie-consent__rule" }),
|
|
166
|
+
];
|
|
167
|
+
}
|
|
168
|
+
renderPreferences(d) {
|
|
169
|
+
const cats = this.categories ?? [];
|
|
170
|
+
return (h("bs-card", { part: "container", class: "bs-cookie-consent bs-cookie-consent--preferences", surface: "base", role: "group", "aria-labelledby": "heading" }, h("div", { class: "bs-cookie-consent__prefs" }, h("div", { class: "bs-cookie-consent__head" }, h("bs-icon-tile", { part: "art", size: "md" }, h("slot", { name: "icon" }, h(CookieIcon, null))), this.heading_(this.heading ?? d.heading), h("span", { class: "bs-cookie-consent__spacer" }), h("bs-icon-button", { part: "close", variant: "subtle", size: "md", ariaLabel: this.closeLabel, onClick: () => this.bsClose.emit() }, h("svg", { viewBox: "0 0 20 20", fill: "none", stroke: "currentColor", "stroke-width": "1.6", "stroke-linecap": "round", "aria-hidden": "true" }, h("path", { d: "M5 5L15 15M15 5L5 15" })))), h("p", { part: "description", class: "bs-cookie-consent__description" }, this.description ?? d.description), cats.map((c, i) => this.renderCategory(c, i === cats.length - 1)), h("div", { class: "bs-cookie-consent__rule" }), h("div", { part: "actions", class: "bs-cookie-consent__actions bs-cookie-consent__actions--prefs" }, this.reject(), this.accept('outlined'), h("span", { class: "bs-cookie-consent__spacer" }), h("bs-button", { part: "save", variant: "primary", onClick: () => this.bsSave.emit({ choices: { ...this.choices } }) }, this.saveLabel)))));
|
|
171
|
+
}
|
|
172
|
+
renderSaved(d) {
|
|
173
|
+
return (h("bs-snackbar", { part: "container", class: "bs-cookie-consent bs-cookie-consent--saved", actionLabel: this.changeLabel, actionVariant: "subtle", hideClose: true, onBsAction: () => this.bsManage.emit() }, this.description ?? d.description));
|
|
174
|
+
}
|
|
175
|
+
render() {
|
|
176
|
+
const d = this.defaults;
|
|
177
|
+
switch (this.type) {
|
|
178
|
+
case 'card':
|
|
179
|
+
return this.renderCard(d);
|
|
180
|
+
case 'preferences':
|
|
181
|
+
return this.renderPreferences(d);
|
|
182
|
+
case 'saved':
|
|
183
|
+
return this.renderSaved(d);
|
|
184
|
+
default:
|
|
185
|
+
return this.renderBanner(d);
|
|
186
|
+
}
|
|
187
|
+
}
|
|
188
|
+
static get is() { return "bs-cookie-consent"; }
|
|
189
|
+
static get encapsulation() { return "shadow"; }
|
|
190
|
+
static get originalStyleUrls() {
|
|
191
|
+
return {
|
|
192
|
+
"$": ["bs-cookie-consent.css"]
|
|
193
|
+
};
|
|
194
|
+
}
|
|
195
|
+
static get styleUrls() {
|
|
196
|
+
return {
|
|
197
|
+
"$": ["bs-cookie-consent.css"]
|
|
198
|
+
};
|
|
199
|
+
}
|
|
200
|
+
static get properties() {
|
|
201
|
+
return {
|
|
202
|
+
"type": {
|
|
203
|
+
"type": "string",
|
|
204
|
+
"mutable": false,
|
|
205
|
+
"complexType": {
|
|
206
|
+
"original": "BsCookieConsentType",
|
|
207
|
+
"resolved": "\"banner\" | \"card\" | \"preferences\" | \"saved\"",
|
|
208
|
+
"references": {
|
|
209
|
+
"BsCookieConsentType": {
|
|
210
|
+
"location": "local",
|
|
211
|
+
"path": "/home/runner/work/eg-brandsync-storybook/eg-brandsync-storybook/packages/wc/src/components/bs-cookie-consent/bs-cookie-consent.tsx",
|
|
212
|
+
"id": "src/components/bs-cookie-consent/bs-cookie-consent.tsx::BsCookieConsentType"
|
|
213
|
+
}
|
|
214
|
+
}
|
|
215
|
+
},
|
|
216
|
+
"required": false,
|
|
217
|
+
"optional": false,
|
|
218
|
+
"docs": {
|
|
219
|
+
"tags": [],
|
|
220
|
+
"text": "Which form: `banner`, `card`, `preferences` or `saved`."
|
|
221
|
+
},
|
|
222
|
+
"getter": false,
|
|
223
|
+
"setter": false,
|
|
224
|
+
"reflect": true,
|
|
225
|
+
"attribute": "type",
|
|
226
|
+
"defaultValue": "'banner'"
|
|
227
|
+
},
|
|
228
|
+
"heading": {
|
|
229
|
+
"type": "string",
|
|
230
|
+
"mutable": false,
|
|
231
|
+
"complexType": {
|
|
232
|
+
"original": "string",
|
|
233
|
+
"resolved": "string",
|
|
234
|
+
"references": {}
|
|
235
|
+
},
|
|
236
|
+
"required": false,
|
|
237
|
+
"optional": true,
|
|
238
|
+
"docs": {
|
|
239
|
+
"tags": [],
|
|
240
|
+
"text": "Heading. Defaults per `type`."
|
|
241
|
+
},
|
|
242
|
+
"getter": false,
|
|
243
|
+
"setter": false,
|
|
244
|
+
"reflect": false,
|
|
245
|
+
"attribute": "heading"
|
|
246
|
+
},
|
|
247
|
+
"headingLevel": {
|
|
248
|
+
"type": "number",
|
|
249
|
+
"mutable": false,
|
|
250
|
+
"complexType": {
|
|
251
|
+
"original": "number",
|
|
252
|
+
"resolved": "number",
|
|
253
|
+
"references": {}
|
|
254
|
+
},
|
|
255
|
+
"required": false,
|
|
256
|
+
"optional": false,
|
|
257
|
+
"docs": {
|
|
258
|
+
"tags": [],
|
|
259
|
+
"text": "HTML heading level, 1-6."
|
|
260
|
+
},
|
|
261
|
+
"getter": false,
|
|
262
|
+
"setter": false,
|
|
263
|
+
"reflect": false,
|
|
264
|
+
"attribute": "heading-level",
|
|
265
|
+
"defaultValue": "2"
|
|
266
|
+
},
|
|
267
|
+
"description": {
|
|
268
|
+
"type": "string",
|
|
269
|
+
"mutable": false,
|
|
270
|
+
"complexType": {
|
|
271
|
+
"original": "string",
|
|
272
|
+
"resolved": "string",
|
|
273
|
+
"references": {}
|
|
274
|
+
},
|
|
275
|
+
"required": false,
|
|
276
|
+
"optional": true,
|
|
277
|
+
"docs": {
|
|
278
|
+
"tags": [],
|
|
279
|
+
"text": "Paragraph under the heading (the message, for `saved`). Defaults per `type`."
|
|
280
|
+
},
|
|
281
|
+
"getter": false,
|
|
282
|
+
"setter": false,
|
|
283
|
+
"reflect": false,
|
|
284
|
+
"attribute": "description"
|
|
285
|
+
},
|
|
286
|
+
"policyUrl": {
|
|
287
|
+
"type": "string",
|
|
288
|
+
"mutable": false,
|
|
289
|
+
"complexType": {
|
|
290
|
+
"original": "string",
|
|
291
|
+
"resolved": "string",
|
|
292
|
+
"references": {}
|
|
293
|
+
},
|
|
294
|
+
"required": false,
|
|
295
|
+
"optional": true,
|
|
296
|
+
"docs": {
|
|
297
|
+
"tags": [],
|
|
298
|
+
"text": "URL of your cookie policy. The \"Read the cookie policy\" link is only shown when this is set."
|
|
299
|
+
},
|
|
300
|
+
"getter": false,
|
|
301
|
+
"setter": false,
|
|
302
|
+
"reflect": false,
|
|
303
|
+
"attribute": "policy-url"
|
|
304
|
+
},
|
|
305
|
+
"policyLabel": {
|
|
306
|
+
"type": "string",
|
|
307
|
+
"mutable": false,
|
|
308
|
+
"complexType": {
|
|
309
|
+
"original": "string",
|
|
310
|
+
"resolved": "string",
|
|
311
|
+
"references": {}
|
|
312
|
+
},
|
|
313
|
+
"required": false,
|
|
314
|
+
"optional": false,
|
|
315
|
+
"docs": {
|
|
316
|
+
"tags": [],
|
|
317
|
+
"text": "Text of the policy link."
|
|
318
|
+
},
|
|
319
|
+
"getter": false,
|
|
320
|
+
"setter": false,
|
|
321
|
+
"reflect": false,
|
|
322
|
+
"attribute": "policy-label",
|
|
323
|
+
"defaultValue": "'Read the cookie policy'"
|
|
324
|
+
},
|
|
325
|
+
"customiseLabel": {
|
|
326
|
+
"type": "string",
|
|
327
|
+
"mutable": false,
|
|
328
|
+
"complexType": {
|
|
329
|
+
"original": "string",
|
|
330
|
+
"resolved": "string",
|
|
331
|
+
"references": {}
|
|
332
|
+
},
|
|
333
|
+
"required": false,
|
|
334
|
+
"optional": false,
|
|
335
|
+
"docs": {
|
|
336
|
+
"tags": [],
|
|
337
|
+
"text": "Label of the Customise button."
|
|
338
|
+
},
|
|
339
|
+
"getter": false,
|
|
340
|
+
"setter": false,
|
|
341
|
+
"reflect": false,
|
|
342
|
+
"attribute": "customise-label",
|
|
343
|
+
"defaultValue": "'Customise'"
|
|
344
|
+
},
|
|
345
|
+
"rejectLabel": {
|
|
346
|
+
"type": "string",
|
|
347
|
+
"mutable": false,
|
|
348
|
+
"complexType": {
|
|
349
|
+
"original": "string",
|
|
350
|
+
"resolved": "string",
|
|
351
|
+
"references": {}
|
|
352
|
+
},
|
|
353
|
+
"required": false,
|
|
354
|
+
"optional": false,
|
|
355
|
+
"docs": {
|
|
356
|
+
"tags": [],
|
|
357
|
+
"text": "Label of the Reject optional button."
|
|
358
|
+
},
|
|
359
|
+
"getter": false,
|
|
360
|
+
"setter": false,
|
|
361
|
+
"reflect": false,
|
|
362
|
+
"attribute": "reject-label",
|
|
363
|
+
"defaultValue": "'Reject optional'"
|
|
364
|
+
},
|
|
365
|
+
"acceptLabel": {
|
|
366
|
+
"type": "string",
|
|
367
|
+
"mutable": false,
|
|
368
|
+
"complexType": {
|
|
369
|
+
"original": "string",
|
|
370
|
+
"resolved": "string",
|
|
371
|
+
"references": {}
|
|
372
|
+
},
|
|
373
|
+
"required": false,
|
|
374
|
+
"optional": false,
|
|
375
|
+
"docs": {
|
|
376
|
+
"tags": [],
|
|
377
|
+
"text": "Label of the Accept all button."
|
|
378
|
+
},
|
|
379
|
+
"getter": false,
|
|
380
|
+
"setter": false,
|
|
381
|
+
"reflect": false,
|
|
382
|
+
"attribute": "accept-label",
|
|
383
|
+
"defaultValue": "'Accept all'"
|
|
384
|
+
},
|
|
385
|
+
"saveLabel": {
|
|
386
|
+
"type": "string",
|
|
387
|
+
"mutable": false,
|
|
388
|
+
"complexType": {
|
|
389
|
+
"original": "string",
|
|
390
|
+
"resolved": "string",
|
|
391
|
+
"references": {}
|
|
392
|
+
},
|
|
393
|
+
"required": false,
|
|
394
|
+
"optional": false,
|
|
395
|
+
"docs": {
|
|
396
|
+
"tags": [],
|
|
397
|
+
"text": "Label of the Save choices button (`preferences`)."
|
|
398
|
+
},
|
|
399
|
+
"getter": false,
|
|
400
|
+
"setter": false,
|
|
401
|
+
"reflect": false,
|
|
402
|
+
"attribute": "save-label",
|
|
403
|
+
"defaultValue": "'Save choices'"
|
|
404
|
+
},
|
|
405
|
+
"changeLabel": {
|
|
406
|
+
"type": "string",
|
|
407
|
+
"mutable": false,
|
|
408
|
+
"complexType": {
|
|
409
|
+
"original": "string",
|
|
410
|
+
"resolved": "string",
|
|
411
|
+
"references": {}
|
|
412
|
+
},
|
|
413
|
+
"required": false,
|
|
414
|
+
"optional": false,
|
|
415
|
+
"docs": {
|
|
416
|
+
"tags": [],
|
|
417
|
+
"text": "Label of the action on the confirmation (`saved`)."
|
|
418
|
+
},
|
|
419
|
+
"getter": false,
|
|
420
|
+
"setter": false,
|
|
421
|
+
"reflect": false,
|
|
422
|
+
"attribute": "change-label",
|
|
423
|
+
"defaultValue": "'Change'"
|
|
424
|
+
},
|
|
425
|
+
"alwaysOnLabel": {
|
|
426
|
+
"type": "string",
|
|
427
|
+
"mutable": false,
|
|
428
|
+
"complexType": {
|
|
429
|
+
"original": "string",
|
|
430
|
+
"resolved": "string",
|
|
431
|
+
"references": {}
|
|
432
|
+
},
|
|
433
|
+
"required": false,
|
|
434
|
+
"optional": false,
|
|
435
|
+
"docs": {
|
|
436
|
+
"tags": [],
|
|
437
|
+
"text": "Text of the badge on required categories (`preferences`)."
|
|
438
|
+
},
|
|
439
|
+
"getter": false,
|
|
440
|
+
"setter": false,
|
|
441
|
+
"reflect": false,
|
|
442
|
+
"attribute": "always-on-label",
|
|
443
|
+
"defaultValue": "'Always on'"
|
|
444
|
+
},
|
|
445
|
+
"seeCookiesLabel": {
|
|
446
|
+
"type": "string",
|
|
447
|
+
"mutable": false,
|
|
448
|
+
"complexType": {
|
|
449
|
+
"original": "string",
|
|
450
|
+
"resolved": "string",
|
|
451
|
+
"references": {}
|
|
452
|
+
},
|
|
453
|
+
"required": false,
|
|
454
|
+
"optional": false,
|
|
455
|
+
"docs": {
|
|
456
|
+
"tags": [],
|
|
457
|
+
"text": "Label of a category's disclosure; `{count}` is replaced by the number of cookies."
|
|
458
|
+
},
|
|
459
|
+
"getter": false,
|
|
460
|
+
"setter": false,
|
|
461
|
+
"reflect": false,
|
|
462
|
+
"attribute": "see-cookies-label",
|
|
463
|
+
"defaultValue": "'See {count} cookies'"
|
|
464
|
+
},
|
|
465
|
+
"closeLabel": {
|
|
466
|
+
"type": "string",
|
|
467
|
+
"mutable": false,
|
|
468
|
+
"complexType": {
|
|
469
|
+
"original": "string",
|
|
470
|
+
"resolved": "string",
|
|
471
|
+
"references": {}
|
|
472
|
+
},
|
|
473
|
+
"required": false,
|
|
474
|
+
"optional": false,
|
|
475
|
+
"docs": {
|
|
476
|
+
"tags": [],
|
|
477
|
+
"text": "Accessible name of the close button (`preferences`)."
|
|
478
|
+
},
|
|
479
|
+
"getter": false,
|
|
480
|
+
"setter": false,
|
|
481
|
+
"reflect": false,
|
|
482
|
+
"attribute": "close-label",
|
|
483
|
+
"defaultValue": "'Close'"
|
|
484
|
+
},
|
|
485
|
+
"categories": {
|
|
486
|
+
"type": "unknown",
|
|
487
|
+
"mutable": false,
|
|
488
|
+
"complexType": {
|
|
489
|
+
"original": "BsCookieCategory[]",
|
|
490
|
+
"resolved": "BsCookieCategory[]",
|
|
491
|
+
"references": {
|
|
492
|
+
"BsCookieCategory": {
|
|
493
|
+
"location": "local",
|
|
494
|
+
"path": "/home/runner/work/eg-brandsync-storybook/eg-brandsync-storybook/packages/wc/src/components/bs-cookie-consent/bs-cookie-consent.tsx",
|
|
495
|
+
"id": "src/components/bs-cookie-consent/bs-cookie-consent.tsx::BsCookieCategory"
|
|
496
|
+
}
|
|
497
|
+
}
|
|
498
|
+
},
|
|
499
|
+
"required": false,
|
|
500
|
+
"optional": false,
|
|
501
|
+
"docs": {
|
|
502
|
+
"tags": [],
|
|
503
|
+
"text": "The categories in the preferences dialog (`preferences`): `[{ id, label, description?, required?,\nenabled?, cookies? }]`. Defaults to Strictly necessary, Preferences, Analytics and Marketing. Must\nbe set as a JS property, not an HTML attribute -- see CONVENTIONS.md's non-string props rule."
|
|
504
|
+
},
|
|
505
|
+
"getter": false,
|
|
506
|
+
"setter": false,
|
|
507
|
+
"defaultValue": "[\n {\n id: 'necessary',\n label: 'Strictly necessary',\n description: 'Needed for sign-in, security and to keep the service running. These cannot be turned off.',\n required: true,\n cookies: [\n 'Session cookie \u2014 keeps you signed in as you move between pages.',\n 'Security cookie \u2014 helps prevent fraud and unauthorized access.',\n 'Consent cookie \u2014 remembers your cookie consent choices.',\n ],\n },\n { id: 'preferences', label: 'Preferences', description: 'Remember your language, theme and table layouts on this device.', enabled: true },\n { id: 'analytics', label: 'Analytics', description: 'Help us understand which features are used so we can improve them. Data is anonymised.' },\n { id: 'marketing', label: 'Marketing', description: 'Show relevant products on other websites.' },\n ]"
|
|
508
|
+
}
|
|
509
|
+
};
|
|
510
|
+
}
|
|
511
|
+
static get states() {
|
|
512
|
+
return {
|
|
513
|
+
"choices": {},
|
|
514
|
+
"open": {}
|
|
515
|
+
};
|
|
516
|
+
}
|
|
517
|
+
static get events() {
|
|
518
|
+
return [{
|
|
519
|
+
"method": "bsAccept",
|
|
520
|
+
"name": "bsAccept",
|
|
521
|
+
"bubbles": true,
|
|
522
|
+
"cancelable": true,
|
|
523
|
+
"composed": true,
|
|
524
|
+
"docs": {
|
|
525
|
+
"tags": [],
|
|
526
|
+
"text": "Fires when Accept all is pressed. `{ choices }` has every category on."
|
|
527
|
+
},
|
|
528
|
+
"complexType": {
|
|
529
|
+
"original": "{ choices: BsCookieChoices }",
|
|
530
|
+
"resolved": "{ choices: BsCookieChoices; }",
|
|
531
|
+
"references": {
|
|
532
|
+
"BsCookieChoices": {
|
|
533
|
+
"location": "local",
|
|
534
|
+
"path": "/home/runner/work/eg-brandsync-storybook/eg-brandsync-storybook/packages/wc/src/components/bs-cookie-consent/bs-cookie-consent.tsx",
|
|
535
|
+
"id": "src/components/bs-cookie-consent/bs-cookie-consent.tsx::BsCookieChoices"
|
|
536
|
+
}
|
|
537
|
+
}
|
|
538
|
+
}
|
|
539
|
+
}, {
|
|
540
|
+
"method": "bsReject",
|
|
541
|
+
"name": "bsReject",
|
|
542
|
+
"bubbles": true,
|
|
543
|
+
"cancelable": true,
|
|
544
|
+
"composed": true,
|
|
545
|
+
"docs": {
|
|
546
|
+
"tags": [],
|
|
547
|
+
"text": "Fires when Reject optional is pressed. `{ choices }` has only the required categories on."
|
|
548
|
+
},
|
|
549
|
+
"complexType": {
|
|
550
|
+
"original": "{ choices: BsCookieChoices }",
|
|
551
|
+
"resolved": "{ choices: BsCookieChoices; }",
|
|
552
|
+
"references": {
|
|
553
|
+
"BsCookieChoices": {
|
|
554
|
+
"location": "local",
|
|
555
|
+
"path": "/home/runner/work/eg-brandsync-storybook/eg-brandsync-storybook/packages/wc/src/components/bs-cookie-consent/bs-cookie-consent.tsx",
|
|
556
|
+
"id": "src/components/bs-cookie-consent/bs-cookie-consent.tsx::BsCookieChoices"
|
|
557
|
+
}
|
|
558
|
+
}
|
|
559
|
+
}
|
|
560
|
+
}, {
|
|
561
|
+
"method": "bsCustomise",
|
|
562
|
+
"name": "bsCustomise",
|
|
563
|
+
"bubbles": true,
|
|
564
|
+
"cancelable": true,
|
|
565
|
+
"composed": true,
|
|
566
|
+
"docs": {
|
|
567
|
+
"tags": [],
|
|
568
|
+
"text": "Fires when Customise is pressed -- show the `preferences` form."
|
|
569
|
+
},
|
|
570
|
+
"complexType": {
|
|
571
|
+
"original": "void",
|
|
572
|
+
"resolved": "void",
|
|
573
|
+
"references": {}
|
|
574
|
+
}
|
|
575
|
+
}, {
|
|
576
|
+
"method": "bsSave",
|
|
577
|
+
"name": "bsSave",
|
|
578
|
+
"bubbles": true,
|
|
579
|
+
"cancelable": true,
|
|
580
|
+
"composed": true,
|
|
581
|
+
"docs": {
|
|
582
|
+
"tags": [],
|
|
583
|
+
"text": "Fires when Save choices is pressed (`preferences`), with the current switches."
|
|
584
|
+
},
|
|
585
|
+
"complexType": {
|
|
586
|
+
"original": "{ choices: BsCookieChoices }",
|
|
587
|
+
"resolved": "{ choices: BsCookieChoices; }",
|
|
588
|
+
"references": {
|
|
589
|
+
"BsCookieChoices": {
|
|
590
|
+
"location": "local",
|
|
591
|
+
"path": "/home/runner/work/eg-brandsync-storybook/eg-brandsync-storybook/packages/wc/src/components/bs-cookie-consent/bs-cookie-consent.tsx",
|
|
592
|
+
"id": "src/components/bs-cookie-consent/bs-cookie-consent.tsx::BsCookieChoices"
|
|
593
|
+
}
|
|
594
|
+
}
|
|
595
|
+
}
|
|
596
|
+
}, {
|
|
597
|
+
"method": "bsChoice",
|
|
598
|
+
"name": "bsChoice",
|
|
599
|
+
"bubbles": true,
|
|
600
|
+
"cancelable": true,
|
|
601
|
+
"composed": true,
|
|
602
|
+
"docs": {
|
|
603
|
+
"tags": [],
|
|
604
|
+
"text": "Fires when a category switch is toggled (`preferences`)."
|
|
605
|
+
},
|
|
606
|
+
"complexType": {
|
|
607
|
+
"original": "{ id: string; enabled: boolean }",
|
|
608
|
+
"resolved": "{ id: string; enabled: boolean; }",
|
|
609
|
+
"references": {}
|
|
610
|
+
}
|
|
611
|
+
}, {
|
|
612
|
+
"method": "bsClose",
|
|
613
|
+
"name": "bsClose",
|
|
614
|
+
"bubbles": true,
|
|
615
|
+
"cancelable": true,
|
|
616
|
+
"composed": true,
|
|
617
|
+
"docs": {
|
|
618
|
+
"tags": [],
|
|
619
|
+
"text": "Fires when the close button is pressed (`preferences`)."
|
|
620
|
+
},
|
|
621
|
+
"complexType": {
|
|
622
|
+
"original": "void",
|
|
623
|
+
"resolved": "void",
|
|
624
|
+
"references": {}
|
|
625
|
+
}
|
|
626
|
+
}, {
|
|
627
|
+
"method": "bsManage",
|
|
628
|
+
"name": "bsManage",
|
|
629
|
+
"bubbles": true,
|
|
630
|
+
"cancelable": true,
|
|
631
|
+
"composed": true,
|
|
632
|
+
"docs": {
|
|
633
|
+
"tags": [],
|
|
634
|
+
"text": "Fires when the action on the confirmation is pressed (`saved`) -- reopen the preferences."
|
|
635
|
+
},
|
|
636
|
+
"complexType": {
|
|
637
|
+
"original": "void",
|
|
638
|
+
"resolved": "void",
|
|
639
|
+
"references": {}
|
|
640
|
+
}
|
|
641
|
+
}];
|
|
642
|
+
}
|
|
643
|
+
static get watchers() {
|
|
644
|
+
return [{
|
|
645
|
+
"propName": "categories",
|
|
646
|
+
"methodName": "onCategoriesChange"
|
|
647
|
+
}];
|
|
648
|
+
}
|
|
649
|
+
}
|
|
650
|
+
const CookieIcon = () => (h("svg", { class: "bs-cookie-consent__glyph", viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", "stroke-width": "1.8", "stroke-linecap": "round", "stroke-linejoin": "round", "aria-hidden": "true" }, h("path", { d: "M20.5 12.5A8.5 8.5 0 1 1 11.5 3.5A3.2 3.2 0 0 0 15 7A3.2 3.2 0 0 0 18.5 9.5A3 3 0 0 0 20.5 12.5Z" }), h("path", { d: "M9 9V9.01" }), h("path", { d: "M8.5 14.5V14.51" }), h("path", { d: "M13 13V13.01" }), h("path", { d: "M14 17V17.01" })));
|
|
651
|
+
const DEFAULTS = {
|
|
652
|
+
banner: {
|
|
653
|
+
heading: 'Your cookie choices',
|
|
654
|
+
description: 'We use necessary cookies to keep you signed in and secure. With your permission we also use cookies to remember your preferences and to understand how this service is used.',
|
|
655
|
+
},
|
|
656
|
+
card: {
|
|
657
|
+
heading: 'Cookies on this site',
|
|
658
|
+
description: 'We use necessary cookies to keep you signed in. May we also use optional cookies for preferences and analytics?',
|
|
659
|
+
},
|
|
660
|
+
preferences: {
|
|
661
|
+
heading: 'Cookie preferences',
|
|
662
|
+
description: 'Choose which optional cookies we may use. You can change this at any time in your privacy settings.',
|
|
663
|
+
},
|
|
664
|
+
saved: {
|
|
665
|
+
heading: '',
|
|
666
|
+
description: 'Cookie choices saved. You can change them any time in your privacy settings.',
|
|
667
|
+
},
|
|
668
|
+
};
|