@carbon/ibmdotcom-web-components 1.42.0 → 1.43.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 +9 -0
- package/custom-elements.json +72 -0
- package/dist/{20-226f5235.js → 20-2716deb2.js} +2 -2
- package/dist/{20-ae232adb.js → 20-64562b76.js} +2 -2
- package/dist/{20-42be8940.js → 20-83838405.js} +2 -2
- package/dist/{20-8a571bed.js → 20-ab55acde.js} +2 -2
- package/dist/cloud-masthead.js +3 -3
- package/dist/cloud-masthead.min.js +2 -2
- package/dist/cloud-masthead.rtl.js +3 -3
- package/dist/cloud-masthead.rtl.min.js +2 -2
- package/dist/dotcom-shell.js +3 -3
- package/dist/dotcom-shell.min.js +2 -2
- package/dist/dotcom-shell.rtl.js +3 -3
- package/dist/dotcom-shell.rtl.min.js +2 -2
- package/dist/ibmdotcom-web-components-dotcom-shell.js +5 -5
- package/dist/ibmdotcom-web-components-dotcom-shell.min.js +3 -3
- package/dist/ibmdotcom-web-components-dotcom-shell.rtl.js +5 -5
- package/dist/ibmdotcom-web-components-dotcom-shell.rtl.min.js +3 -3
- package/dist/{left-nav-menu-1eb13169.js → left-nav-menu-9f192b6a.js} +2 -2
- package/dist/{left-nav-menu-5967755b.js → left-nav-menu-b5b824b1.js} +2 -2
- package/dist/{left-nav-menu-31a63b5b.js → left-nav-menu-b8935343.js} +2 -2
- package/dist/{left-nav-menu-category-heading-6afd1369.js → left-nav-menu-category-heading-2151023a.js} +2 -2
- package/dist/{left-nav-menu-category-heading-091bc278.js → left-nav-menu-category-heading-44c8f6f7.js} +2 -2
- package/dist/{left-nav-menu-category-heading-2e11cd21.js → left-nav-menu-category-heading-d4840d25.js} +2 -2
- package/dist/{left-nav-menu-category-heading-014fadcc.js → left-nav-menu-category-heading-f2b293f7.js} +2 -2
- package/dist/{left-nav-menu-d8304fbf.js → left-nav-menu-fdee16e0.js} +3 -3
- package/dist/{left-nav-menu-item-529a1af3.js → left-nav-menu-item-083b6a60.js} +2 -2
- package/dist/{left-nav-menu-item-14105283.js → left-nav-menu-item-4db75af5.js} +2 -2
- package/dist/{left-nav-menu-item-c57e5c9c.js → left-nav-menu-item-adb8dff3.js} +2 -2
- package/dist/{left-nav-menu-item-e558aaee.js → left-nav-menu-item-c0c65628.js} +2 -2
- package/dist/{left-nav-menu-section-4ed4e94a.js → left-nav-menu-section-08f384fd.js} +3 -3
- package/dist/{left-nav-menu-section-1a28faa0.js → left-nav-menu-section-c2a1358d.js} +2 -2
- package/dist/{left-nav-menu-section-5153130f.js → left-nav-menu-section-e9a17f84.js} +2 -2
- package/dist/{left-nav-menu-section-86854ca9.js → left-nav-menu-section-edda8473.js} +3 -3
- package/dist/{left-nav-overlay-2e10dacf.js → left-nav-overlay-0f3c987e.js} +2 -2
- package/dist/{left-nav-overlay-e23650aa.js → left-nav-overlay-59f2c4e7.js} +2 -2
- package/dist/{left-nav-overlay-fe853cf1.js → left-nav-overlay-7d97eb65.js} +2 -2
- package/dist/{left-nav-overlay-e8b1c8ed.js → left-nav-overlay-b705c6f4.js} +2 -2
- package/dist/{masthead-composite-229eb3ea.js → masthead-composite-93d89a8c.js} +6 -6
- package/dist/{masthead-composite-dd5cd95d.js → masthead-composite-a2c406c2.js} +17 -17
- package/dist/{masthead-composite-b702d6b5.js → masthead-composite-b6d13251.js} +6 -6
- package/dist/{masthead-composite-67694b72.js → masthead-composite-d8992a4a.js} +17 -17
- package/dist/{megamenu-category-group-601d5533.js → megamenu-category-group-31f822ee.js} +2 -2
- package/dist/{megamenu-category-group-54aec7fc.js → megamenu-category-group-58dd20ca.js} +2 -2
- package/dist/{megamenu-category-group-6f35440c.js → megamenu-category-group-9f2f923b.js} +2 -2
- package/dist/{megamenu-category-group-copy-3c9066ea.js → megamenu-category-group-copy-08bc787f.js} +2 -2
- package/dist/{megamenu-category-group-copy-91810225.js → megamenu-category-group-copy-9b8b74d1.js} +2 -2
- package/dist/{megamenu-category-group-copy-223c9104.js → megamenu-category-group-copy-b74aa21a.js} +2 -2
- package/dist/{megamenu-category-group-copy-bf7d292d.js → megamenu-category-group-copy-e64634e9.js} +2 -2
- package/dist/{megamenu-category-group-5e211a32.js → megamenu-category-group-fabcfb04.js} +2 -2
- package/dist/{megamenu-category-link-7a7e19ef.js → megamenu-category-link-45c7c408.js} +2 -2
- package/dist/{megamenu-category-link-8e548c5f.js → megamenu-category-link-5557c650.js} +2 -2
- package/dist/{megamenu-category-link-9196e396.js → megamenu-category-link-cb3a06f4.js} +2 -2
- package/dist/{megamenu-category-link-942e0984.js → megamenu-category-link-d6dab016.js} +2 -2
- package/dist/{megamenu-left-navigation-661aafa7.js → megamenu-left-navigation-145786bd.js} +2 -2
- package/dist/{megamenu-left-navigation-f44ae637.js → megamenu-left-navigation-658c3d8c.js} +2 -2
- package/dist/{megamenu-left-navigation-a3b6fc6c.js → megamenu-left-navigation-b4dbb6f9.js} +2 -2
- package/dist/{megamenu-left-navigation-abb67d52.js → megamenu-left-navigation-f6dbf81a.js} +2 -2
- package/dist/{megamenu-overlay-9203abd8.js → megamenu-overlay-5c2e2cf9.js} +2 -2
- package/dist/{megamenu-overlay-1918b25e.js → megamenu-overlay-826a086d.js} +2 -2
- package/dist/{megamenu-overlay-965779d4.js → megamenu-overlay-aa9215c9.js} +2 -2
- package/dist/{megamenu-overlay-929abbb0.js → megamenu-overlay-c03042c5.js} +2 -2
- package/es/component-mixins/callout/callout.d.ts +1 -1
- package/es/component-mixins/cta/cta.d.ts +1 -1
- package/es/component-mixins/cta/video.d.ts +1 -1
- package/es/component-mixins/media-query/media-query.d.ts +1 -1
- package/es/component-mixins/parent-visibility/parent-visibility.d.ts +1 -1
- package/es/components/back-to-top/back-to-top.d.ts +2 -2
- package/es/components/button/button.d.ts +2 -2
- package/es/components/button-group/button-group.d.ts +1 -1
- package/es/components/callout-quote/callout-quote.d.ts +1 -1
- package/es/components/callout-with-media/callout-with-media.d.ts +2 -2
- package/es/components/card/card-eyebrow.d.ts +1 -1
- package/es/components/card/card-heading.d.ts +1 -1
- package/es/components/card/card.d.ts +1 -1
- package/es/components/card-group/card-group.d.ts +1 -1
- package/es/components/card-group/card-group.js +8 -5
- package/es/components/card-group/card-group.js.map +1 -1
- package/es/components/card-in-card/card-in-card.d.ts +1 -1
- package/es/components/card-section-offset/card-section-offset.d.ts +1 -1
- package/es/components/card-section-simple/card-section-simple.d.ts +1 -1
- package/es/components/carousel/carousel.d.ts +2 -2
- package/es/components/content-block/content-block-copy.d.ts +1 -1
- package/es/components/content-block/content-block-heading.d.ts +1 -1
- package/es/components/content-block/content-block-paragraph.d.ts +1 -1
- package/es/components/content-block/content-block.d.ts +1 -1
- package/es/components/content-block-card-static/content-block-card-static.d.ts +1 -1
- package/es/components/content-block-cards/content-block-cards.d.ts +1 -1
- package/es/components/content-block-headlines/content-block-headlines-heading.d.ts +1 -1
- package/es/components/content-block-headlines/content-block-headlines-item.d.ts +1 -1
- package/es/components/content-block-headlines/content-block-headlines.d.ts +1 -1
- package/es/components/content-block-media/content-block-media-content.d.ts +1 -1
- package/es/components/content-block-segmented/content-block-segmented-item.d.ts +1 -1
- package/es/components/content-block-simple/content-block-simple.d.ts +1 -1
- package/es/components/content-group/content-group-copy.d.ts +1 -1
- package/es/components/content-group/content-group-heading.d.ts +1 -1
- package/es/components/content-group/content-group-paragraph.d.ts +1 -1
- package/es/components/content-group/content-group.d.ts +1 -1
- package/es/components/content-group-banner/content-group-banner.d.ts +1 -1
- package/es/components/content-group-cards/content-group-cards-item.d.ts +1 -1
- package/es/components/content-group-simple/content-group-simple.d.ts +1 -1
- package/es/components/content-item/content-item-copy.d.ts +1 -1
- package/es/components/content-item/content-item-heading.d.ts +1 -1
- package/es/components/content-item/content-item-paragraph.d.ts +1 -1
- package/es/components/content-item/content-item.d.ts +1 -1
- package/es/components/content-item-horizontal/content-item-horizontal-copy.d.ts +1 -1
- package/es/components/content-item-horizontal/content-item-horizontal-eyebrow.d.ts +1 -1
- package/es/components/content-item-horizontal/content-item-horizontal-media-copy.d.ts +1 -1
- package/es/components/content-item-horizontal/content-item-horizontal-media.d.ts +1 -1
- package/es/components/content-item-horizontal/content-item-horizontal-thumbnail-copy.d.ts +1 -1
- package/es/components/content-section/content-section-copy.d.ts +1 -1
- package/es/components/content-section/content-section-heading.d.ts +1 -1
- package/es/components/content-section/content-section.d.ts +1 -1
- package/es/components/cta/button-cta.d.ts +2 -2
- package/es/components/cta/card-cta-footer.d.ts +2 -2
- package/es/components/cta/card-cta.d.ts +2 -2
- package/es/components/cta/card-link-cta.d.ts +2 -2
- package/es/components/cta/cta.d.ts +2 -2
- package/es/components/cta/feature-cta-footer.d.ts +2 -2
- package/es/components/cta/feature-cta.d.ts +2 -2
- package/es/components/cta/text-cta.d.ts +2 -2
- package/es/components/cta/video-cta-composite.d.ts +2 -2
- package/es/components/cta/video-cta-container.d.ts +2 -2
- package/es/components/cta-block/cta-block-item-row.d.ts +2 -2
- package/es/components/cta-block/cta-block-item.d.ts +1 -1
- package/es/components/cta-block/cta-block.d.ts +1 -1
- package/es/components/cta-section/cta-section.d.ts +1 -1
- package/es/components/dotcom-shell/dotcom-shell-container.d.ts +1 -1
- package/es/components/dotcom-shell/dotcom-shell.d.ts +1 -1
- package/es/components/expressive-modal/expressive-modal-body.d.ts +1 -1
- package/es/components/expressive-modal/expressive-modal-close-button.d.ts +1 -1
- package/es/components/expressive-modal/expressive-modal-footer.d.ts +1 -1
- package/es/components/expressive-modal/expressive-modal-header.d.ts +1 -1
- package/es/components/expressive-modal/expressive-modal-heading.d.ts +1 -1
- package/es/components/expressive-modal/expressive-modal.d.ts +2 -2
- package/es/components/feature-card/feature-card.d.ts +1 -1
- package/es/components/feature-section/feature-section.d.ts +1 -1
- package/es/components/filter-panel/filter-group-item.d.ts +1 -1
- package/es/components/filter-panel/filter-group.d.ts +1 -1
- package/es/components/filter-panel/filter-modal-button.d.ts +1 -1
- package/es/components/filter-panel/filter-modal-footer.d.ts +1 -1
- package/es/components/filter-panel/filter-modal-heading.d.ts +1 -1
- package/es/components/filter-panel/filter-panel-checkbox.d.ts +2 -2
- package/es/components/filter-panel/filter-panel-composite.d.ts +3 -3
- package/es/components/filter-panel/filter-panel-heading.d.ts +1 -1
- package/es/components/filter-panel/filter-panel-input-select-item.d.ts +2 -2
- package/es/components/filter-panel/filter-panel-input-select.d.ts +2 -2
- package/es/components/filter-panel/filter-panel-modal.d.ts +2 -2
- package/es/components/filter-panel/filter-panel.d.ts +2 -2
- package/es/components/footer/footer-composite.d.ts +4 -4
- package/es/components/footer/footer-container.d.ts +1 -1
- package/es/components/footer/footer-logo.d.ts +2 -2
- package/es/components/footer/footer-nav-group.d.ts +2 -2
- package/es/components/footer/footer-nav.d.ts +1 -1
- package/es/components/footer/footer.d.ts +1 -1
- package/es/components/footer/language-selector-desktop.d.ts +1 -1
- package/es/components/footer/legal-nav-cookie-preferences-placeholder.d.ts +1 -1
- package/es/components/footer/legal-nav.d.ts +1 -1
- package/es/components/footer/locale-button.d.ts +2 -2
- package/es/components/horizontal-rule/horizontal-rule.d.ts +1 -1
- package/es/components/image/image-item.d.ts +1 -1
- package/es/components/image/image.d.ts +3 -3
- package/es/components/leadspace/breadcrumb-item.d.ts +1 -1
- package/es/components/leadspace/breadcrumb-link.d.ts +1 -1
- package/es/components/leadspace/breadcrumb.d.ts +1 -1
- package/es/components/leadspace/leadspace-heading.d.ts +1 -1
- package/es/components/leadspace/leadspace-image.d.ts +1 -1
- package/es/components/leadspace/leadspace.d.ts +1 -1
- package/es/components/leadspace/leadspace.js +5 -2
- package/es/components/leadspace/leadspace.js.map +1 -1
- package/es/components/leadspace-block/leadspace-block-cta.d.ts +1 -1
- package/es/components/leadspace-block/leadspace-block-heading.d.ts +1 -1
- package/es/components/leadspace-block/leadspace-block-media.d.ts +1 -1
- package/es/components/leadspace-block/leadspace-block.d.ts +1 -1
- package/es/components/leadspace-with-search/leadspace-with-search-content-copy.d.ts +1 -1
- package/es/components/leadspace-with-search/leadspace-with-search-content-heading.d.ts +1 -1
- package/es/components/leadspace-with-search/leadspace-with-search-content.d.ts +1 -1
- package/es/components/leadspace-with-search/leadspace-with-search-heading.d.ts +1 -1
- package/es/components/leadspace-with-search/leadspace-with-search.d.ts +1 -1
- package/es/components/leaving-ibm/leaving-ibm-composite.d.ts +2 -2
- package/es/components/leaving-ibm/leaving-ibm-container.d.ts +1 -1
- package/es/components/leaving-ibm/leaving-ibm-modal-body.d.ts +1 -1
- package/es/components/leaving-ibm/leaving-ibm-modal-heading.d.ts +1 -1
- package/es/components/leaving-ibm/leaving-ibm-modal-supplemental.d.ts +1 -1
- package/es/components/leaving-ibm/leaving-ibm-modal.d.ts +1 -1
- package/es/components/lightbox-media-viewer/lightbox-media-viewer-body.d.ts +1 -1
- package/es/components/lightbox-media-viewer/lightbox-video-player-composite.d.ts +1 -1
- package/es/components/lightbox-media-viewer/lightbox-video-player-container.d.ts +2 -2
- package/es/components/link-list/link-list-heading.d.ts +1 -1
- package/es/components/link-list/link-list.d.ts +1 -1
- package/es/components/link-list-section/link-list-section.d.ts +1 -1
- package/es/components/link-with-icon/link-with-icon.d.ts +1 -1
- package/es/components/locale-modal/locale-modal-composite.d.ts +2 -2
- package/es/components/locale-modal/locale-modal-container.d.ts +1 -1
- package/es/components/locale-modal/locale-search.d.ts +2 -2
- package/es/components/locale-modal/regions.d.ts +1 -1
- package/es/components/logo-grid/logo-grid-item.d.ts +1 -1
- package/es/components/logo-grid/logo-grid-link.d.ts +1 -1
- package/es/components/logo-grid/logo-grid.d.ts +1 -1
- package/es/components/masthead/cloud/cloud-masthead-container.d.ts +1 -1
- package/es/components/masthead/left-nav-menu-section.d.ts +2 -2
- package/es/components/masthead/left-nav-menu.d.ts +1 -1
- package/es/components/masthead/left-nav.d.ts +1 -1
- package/es/components/masthead/masthead-composite.d.ts +1 -1
- package/es/components/masthead/masthead-container.d.ts +1 -1
- package/es/components/masthead/masthead-global-bar.d.ts +3 -3
- package/es/components/masthead/masthead-l1-name.d.ts +1 -1
- package/es/components/masthead/masthead-l1.d.ts +1 -1
- package/es/components/masthead/masthead-logo.d.ts +3 -3
- package/es/components/masthead/masthead-menu-button.d.ts +1 -1
- package/es/components/masthead/masthead-profile.d.ts +3 -3
- package/es/components/masthead/masthead.d.ts +1 -1
- package/es/components/masthead/megamenu.d.ts +1 -1
- package/es/components/masthead/top-nav.d.ts +2 -2
- package/es/components/notice-choice/notice-choice.d.ts +1 -1
- package/es/components/pictogram-item/pictogram-item.d.ts +1 -1
- package/es/components/pricing-table/pricing-table-annotation-toggle.d.ts +2 -2
- package/es/components/pricing-table/pricing-table-annotation-toggle.js +1 -1
- package/es/components/pricing-table/pricing-table-annotation-toggle.js.map +1 -1
- package/es/components/pricing-table/pricing-table-body.d.ts +1 -1
- package/es/components/pricing-table/pricing-table-cell-annotation.d.ts +1 -1
- package/es/components/pricing-table/pricing-table-cell.d.ts +2 -2
- package/es/components/pricing-table/pricing-table-group.d.ts +1 -1
- package/es/components/pricing-table/pricing-table-head.d.ts +1 -1
- package/es/components/pricing-table/pricing-table-header-cell-caption.d.ts +1 -1
- package/es/components/pricing-table/pricing-table-header-cell-cta.d.ts +1 -1
- package/es/components/pricing-table/pricing-table-header-cell-description.d.ts +1 -1
- package/es/components/pricing-table/pricing-table-header-cell-headline.d.ts +1 -1
- package/es/components/pricing-table/pricing-table-header-cell-tag.d.ts +1 -1
- package/es/components/pricing-table/pricing-table-header-cell.d.ts +1 -1
- package/es/components/pricing-table/pricing-table-header-row.d.ts +1 -1
- package/es/components/pricing-table/pricing-table-highlight-label.d.ts +1 -1
- package/es/components/pricing-table/pricing-table-row.d.ts +1 -1
- package/es/components/pricing-table/pricing-table.css.js +1 -1
- package/es/components/pricing-table/pricing-table.d.ts +2 -2
- package/es/components/pricing-table/pricing-table.rtl.css.js +1 -1
- package/es/components/quote/quote.d.ts +1 -1
- package/es/components/scroll-animations/scroll-animations.d.ts +1 -1
- package/es/components/search-with-typeahead/search-with-typeahead.d.ts +2 -2
- package/es/components/structured-list/structured-list-group.d.ts +1 -1
- package/es/components/structured-list/structured-list.d.ts +1 -1
- package/es/components/table-of-contents/table-of-contents.d.ts +2 -2
- package/es/components/tabs-extended/tab.d.ts +2 -2
- package/es/components/tabs-extended/tab.js.map +1 -1
- package/es/components/tabs-extended/tabs-extended.d.ts +6 -4
- package/es/components/tabs-extended/tabs-extended.js +19 -1
- package/es/components/tabs-extended/tabs-extended.js.map +1 -1
- package/es/components/tag-group/tag-group.d.ts +1 -1
- package/es/components/tag-link/tag-link.d.ts +1 -1
- package/es/components/universal-banner/universal-banner-copy.d.ts +1 -1
- package/es/components/universal-banner/universal-banner-heading.d.ts +1 -1
- package/es/components/universal-banner/universal-banner.d.ts +1 -1
- package/es/components/video-player/video-player-composite.d.ts +2 -2
- package/es/components/video-player/video-player-container.d.ts +3 -3
- package/es/components/video-player/video-player-container.js +11 -0
- package/es/components/video-player/video-player-container.js.map +1 -1
- package/es/components/video-player/video-player.d.ts +3 -3
- package/es/globals/mixins/connect.d.ts +1 -1
- package/es/globals/mixins/hybrid-render.d.ts +1 -1
- package/es/globals/mixins/modal-render.d.ts +1 -1
- package/es/globals/mixins/stable-selector.d.ts +1 -1
- package/es/globals/mixins/throttled-input.d.ts +1 -1
- package/es/internal/vendor/@carbon/ibmdotcom-services/internal/vendor/@carbon/ibmdotcom-utilities/utilities/settings/settings.js +2 -2
- package/es/internal/vendor/@carbon/ibmdotcom-utilities/utilities/settings/settings.js +2 -2
- package/es/internal/vendor/@carbon/web-components/components/pagination-nav/index.d.ts +11 -0
- package/es/internal/vendor/@carbon/web-components/components/pagination-nav/index.js +11 -0
- package/es/internal/vendor/@carbon/web-components/components/pagination-nav/index.js.map +1 -0
- package/es/internal/vendor/@carbon/web-components/components/pagination-nav/pagination-nav.css.js +12 -0
- package/es/internal/vendor/@carbon/web-components/components/pagination-nav/pagination-nav.d.ts +94 -0
- package/es/internal/vendor/@carbon/web-components/components/pagination-nav/pagination-nav.js +438 -0
- package/es/internal/vendor/@carbon/web-components/components/pagination-nav/pagination-nav.js.map +1 -0
- package/es/internal/vendor/@carbon/web-components/components/pagination-nav/pagination-nav.rtl.css.js +12 -0
- package/es/internal/vendor/@carbon/web-components/components-react/pagination-nav/index.d.ts +14 -0
- package/es/internal/vendor/@carbon/web-components/components-react/pagination-nav/index.js +8 -0
- package/es/internal/vendor/@carbon/web-components/components-react/pagination-nav/pagination-nav.d.ts +39 -0
- package/es/internal/vendor/@carbon/web-components/components-react/pagination-nav/pagination-nav.js +46 -0
- package/es/internal/vendor/@carbon/web-components/icons/caret--left/16.js +1 -1
- package/es/internal/vendor/@carbon/web-components/icons/caret--right/16.js +1 -1
- package/es/internal/vendor/@carbon/web-components/icons/overflow-menu--horizontal/16.js +1 -1
- package/lib/internal/vendor/@carbon/ibmdotcom-services/internal/vendor/@carbon/ibmdotcom-utilities/utilities/settings/settings.js +2 -2
- package/lib/internal/vendor/@carbon/ibmdotcom-utilities/utilities/settings/settings.js +2 -2
- package/lib/internal/vendor/@carbon/web-components/components-react-node/pagination-nav/index.js +9 -0
- package/lib/internal/vendor/@carbon/web-components/components-react-node/pagination-nav/pagination-nav.js +78 -0
- package/package.json +10 -9
- package/telemetry.yml +9 -0
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"video-player-container.js","names":["_redux","require","_settings","_interopRequireDefault","_KalturaPlayer","_settings2","_store","_kalturaPlayerAPI","_connect","_stableSelector","_videoPlayerComposite","_carbonElement","ownKeys","e","r","t","Object","keys","getOwnPropertySymbols","o","filter","getOwnPropertyDescriptor","enumerable","push","apply","_objectSpread","arguments","length","forEach","_defineProperty2","getOwnPropertyDescriptors","defineProperties","defineProperty","_createSuper","Derived","hasNativeReflectConstruct","_isNativeReflectConstruct","_createSuperInternal","Super","_getPrototypeOf2","result","NewTarget","constructor","Reflect","construct","_possibleConstructorReturn2","sham","Proxy","Boolean","prototype","valueOf","call","prefix","settings","ddsPrefix","ddsSettings","stablePrefix","mapStateToProps","state","kalturaPlayerAPI","_ref","mediaData","mapDispatchToProps","dispatch","bindActionCreators","_loadVideoData","loadMediaData","DDSVideoPlayerContainerMixin","exports","Base","DDSVideoPlayerContainerMixinImpl","_StableSelectorMixin","_inherits2","_super","_this","_classCallCheck2","_len","args","Array","_key","concat","_assertThisInitialized2","_ref2","_asyncToGenerator2","_regenerator","mark","_callee","videoId","backgroundMode","_assertThisInitialize","requestsEmbedVideo","requestEmbedVideo","promiseEmbedVideo","_args","wrap","_callee$","_context","prev","next","undefined","_requestsEmbedVideo","abrupt","_embedVideoImpl","_setRequestEmbedVideoInProgress","t0","t1","t2","sent","_setEmbeddedVideo","t3","_setErrorRequestEmbedVideo","stop","_x","_createClass2","key","value","request","oldRequestsEmbedVideo","error","Promise","reject","kWidget","resolve","oldEmbeddedVideos","embeddedVideos","_setAutoplayPreference","preference","updatedValue","localStorage","setItem","prefersAutoplayStorageKey","_getAutoplayPreference","storedValue","getItem","returnValue","parseInt","_getPlayerOptions","playerOptions","storedMotionPreference","autoplayPreference","window","matchMedia","matches","loop","autoMute","autoPlay","closedCaptions","plugin","_embedVideoImpl2","_callee2","_getElementById","doc","playerId","div","videoPlayer","embedVideoHandle","_yield$KalturaPlayerA","width","height","videoEmbed","_args2","_callee2$","_context2","hasOwnProperty","getRootNode","ownerDocument","Math","random","toString","slice","document","createElement","id","className","_videoPlayer","TypeError","appendChild","KalturaPlayerAPI","embedMedia","api","style","setProperty","getElementById","dataset","firstElementChild","focus","_x2","firstUpdated","_this2","requestAnimationFrame","_this2$querySelector","button","querySelector","shadowRoot","getAttribute","setAttribute","transposeAttributes","StableSelectorMixin","DDSVideoPlayerContainer","_decorate2","customElement","_initialize","_ConnectMixin","_ConnectMixin2","_super2","_this3","_len2","_key2","F","d","ConnectMixin","store","DDSVideoPlayerComposite","_default"],"sources":["components/video-player/video-player-container.ts"],"sourcesContent":["/**\n * @license\n *\n * Copyright IBM Corp. 2020, 2023\n *\n * This source code is licensed under the Apache-2.0 license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\nimport {\n ActionCreatorsMapObject,\n Dispatch,\n Store,\n bindActionCreators,\n} from 'redux';\nimport {} from 'lit-element';\nimport settings from 'carbon-components/es/globals/js/settings.js';\nimport KalturaPlayerAPI from '@carbon/ibmdotcom-services/es/services/KalturaPlayer/KalturaPlayer.js';\nimport ddsSettings from '../../internal/vendor/@carbon/ibmdotcom-utilities/utilities/settings/settings';\nimport store from '../../internal/vendor/@carbon/ibmdotcom-services-store/store';\nimport {\n MediaData,\n MediaPlayerAPIState,\n} from '../../internal/vendor/@carbon/ibmdotcom-services-store/types/kalturaPlayerAPI.d';\nimport { loadMediaData } from '../../internal/vendor/@carbon/ibmdotcom-services-store/actions/kalturaPlayerAPI';\nimport { MediaPlayerAPIActions } from '../../internal/vendor/@carbon/ibmdotcom-services-store/actions/kalturaPlayerAPI.d';\nimport { Constructor } from '../../globals/defs';\nimport ConnectMixin from '../../globals/mixins/connect';\nimport StableSelectorMixin from '../../globals/mixins/stable-selector';\nimport DDSVideoPlayerComposite from './video-player-composite';\nimport { carbonElement as customElement } from '../../internal/vendor/@carbon/web-components/globals/decorators/carbon-element';\n\nconst { prefix } = settings;\nconst { stablePrefix: ddsPrefix } = ddsSettings;\n\n/**\n * The Redux state used for `<dds-video-player-container>`.\n */\nexport interface VideoPlayerContainerState {\n /**\n * The Redux state for `KalturaPlayerAPI`.\n */\n kalturaPlayerAPI?: MediaPlayerAPIState;\n}\n\n/**\n * The properties for `<dds-video-player-container>` from Redux state.\n */\nexport interface VideoPlayerContainerStateProps {\n /**\n * The video data, keyed by the video ID.\n */\n mediaData?: { [videoId: string]: MediaData };\n}\n\nexport type VideoPlayerActions = ReturnType<typeof loadMediaData>;\n\n/**\n * @param state The Redux state for video player.\n * @returns The converted version of the given state, tailored for `<dds-video-player-container>`.\n */\nexport function mapStateToProps(\n state: VideoPlayerContainerState\n): VideoPlayerContainerStateProps {\n const { kalturaPlayerAPI } = state;\n const { mediaData } = kalturaPlayerAPI ?? {};\n return !mediaData ? {} : { mediaData };\n}\n\n/**\n * @param dispatch The Redux `dispatch()` API.\n * @returns The methods in `<dds-video-player-container>` to dispatch Redux actions.\n */\nexport function mapDispatchToProps(dispatch: Dispatch<MediaPlayerAPIActions>) {\n return bindActionCreators<\n VideoPlayerActions,\n ActionCreatorsMapObject<VideoPlayerActions>\n >(\n {\n _loadVideoData: loadMediaData,\n },\n dispatch as Dispatch // TS definition of `bindActionCreators()` seems to have no templated `Dispatch`\n );\n}\n\n/**\n * @param Base The base class.\n * @returns A mix-in that implements video embedding API calls.\n */\nexport const DDSVideoPlayerContainerMixin = <\n T extends Constructor<HTMLElement>\n>(\n Base: T\n) => {\n /**\n * A mix-in class that sets up and cleans up event listeners defined by `@HostListener` decorator.\n */\n abstract class DDSVideoPlayerContainerMixinImpl extends StableSelectorMixin(\n Base\n ) {\n /**\n * The video player.\n */\n abstract _videoPlayer?: HTMLElement;\n\n /**\n * The embedded Kaltura player element (that has `.sendNotification()`, etc. APIs), keyed by the video ID.\n */\n abstract embeddedVideos?: { [videoId: string]: any };\n\n /**\n * The request for the embedded Kaltura player element (that has `.sendNotification()`, etc. APIs), keyed by the video ID.\n *\n * @protected\n */\n // Not using TypeScript `private` due to: microsoft/TypeScript#17744\n _requestsEmbedVideo: { [videoId: string]: Promise<any> } = {};\n\n /**\n * Sets the state that the API call for embedding the video for the given video ID is in progress.\n *\n * @param videoId The video ID.\n * @param request The promise of the API call for embedding the video of the given video ID that is in progress.\n * @private\n */\n // Not using TypeScript `private` due to: microsoft/TypeScript#17744\n _setRequestEmbedVideoInProgress(videoId: string, request: Promise<any>) {\n const { _requestsEmbedVideo: oldRequestsEmbedVideo } = this;\n this._requestsEmbedVideo = {\n ...oldRequestsEmbedVideo,\n [videoId]: request,\n };\n }\n\n /**\n * Set the state that the API call for embedding the video for the given video ID is failed.\n *\n * @param videoId The video ID.\n * @param error An error from the API call for embedding the video of the given video ID.\n * @private\n */\n // Not using TypeScript `private` due to: microsoft/TypeScript#17744\n _setErrorRequestEmbedVideo(videoId: string, error: Error) {\n this._setRequestEmbedVideoInProgress(videoId, Promise.reject(error));\n }\n\n /**\n * Sets the given embedded Kaltura player element (that has `.sendNotification()`, etc. APIs) for the given video ID.\n *\n * @param videoId The video ID.\n * @param kWidget The embedded Kaltura player element (that has `.sendNotification()`, etc. APIs).\n * @private\n */\n // Not using TypeScript `private` due to: microsoft/TypeScript#17744\n _setEmbeddedVideo(videoId: string, kWidget: any) {\n this._setRequestEmbedVideoInProgress(videoId, Promise.resolve(kWidget));\n const { embeddedVideos: oldEmbeddedVideos } = this;\n this.embeddedVideos = {\n ...oldEmbeddedVideos,\n [videoId]: kWidget,\n };\n }\n\n _setAutoplayPreference(preference: Boolean) {\n const updatedValue = preference ? '1' : '0';\n localStorage.setItem(`${this.prefersAutoplayStorageKey}`, updatedValue);\n }\n\n _getAutoplayPreference() {\n const storedValue = localStorage.getItem(\n `${this.prefersAutoplayStorageKey}`\n );\n const returnValue =\n storedValue === null ? null : Boolean(parseInt(storedValue, 10));\n return returnValue;\n }\n\n _getPlayerOptions(backgroundMode = false) {\n let playerOptions = {};\n\n if (backgroundMode) {\n const storedMotionPreference: boolean | null =\n this._getAutoplayPreference();\n\n let autoplayPreference: boolean | undefined;\n\n if (storedMotionPreference === null) {\n autoplayPreference = !window.matchMedia(\n '(prefers-reduced-motion: reduce)'\n ).matches;\n } else {\n autoplayPreference = storedMotionPreference;\n }\n playerOptions = {\n 'topBarContainer.plugin': false,\n 'controlBarContainer.plugin': false,\n 'largePlayBtn.plugin': false,\n 'loadingSpinner.plugin': false,\n 'unMuteOverlayButton.plugin': false,\n 'EmbedPlayer.DisableVideoTagSupport': false,\n loop: true,\n autoMute: true,\n autoPlay: autoplayPreference,\n // Turn off CTA's including mid-roll card and end cards.\n 'ibm.callToActions': false,\n // Turn off captions display, background/ambient videos have no\n // audio.\n closedCaptions: {\n plugin: false,\n },\n };\n }\n\n return playerOptions;\n }\n\n /**\n * Sets up and sends the API call for embedding video for the given video ID.\n *\n * @param videoId The video ID.\n * @private\n */\n // Not using TypeScript `private` due to: microsoft/TypeScript#17744\n async _embedVideoImpl(videoId: string, backgroundMode = false) {\n const doc = Object.prototype.hasOwnProperty.call(this, 'getRootNode')\n ? (this.getRootNode() as Document | ShadowRoot)\n : this.ownerDocument;\n // Given Kaltura replaces the `<div>` here with `<iframe>` with the video player,\n // rendering this `<div>` in `renderLightDOM()` will cause the video player being clobbered\n const playerId = Math.random().toString(36).slice(2);\n const div = document.createElement('div');\n div.id = playerId;\n div.className = `${prefix}--video-player__video`;\n const { _videoPlayer: videoPlayer } = this;\n if (!videoPlayer) {\n throw new TypeError(\n 'Cannot find the video player component to put the video content into.'\n );\n }\n videoPlayer.appendChild(div);\n\n const embedVideoHandle = await KalturaPlayerAPI.embedMedia(\n videoId,\n playerId,\n this._getPlayerOptions(backgroundMode)\n );\n const { width, height } = await KalturaPlayerAPI.api(videoId);\n videoPlayer.style.setProperty('--native-file-width', `${width}px`);\n videoPlayer.style.setProperty('--native-file-height', `${height}px`);\n videoPlayer.style.setProperty(\n '--native-file-aspect-ratio',\n `${width} / ${height}`\n );\n doc!.getElementById(playerId)!.dataset.videoId = videoId;\n const videoEmbed = doc!.getElementById(playerId)?.firstElementChild;\n if (videoEmbed) {\n (videoEmbed as HTMLElement).focus();\n }\n return embedVideoHandle.kWidget();\n }\n\n /**\n * Sends the API call for embedding video for the given video ID, and tracks the progress and the error of the REST call.\n *\n * @param videoId The video ID.\n * @internal\n */\n _embedMedia = async (videoId: string, backgroundMode = false) => {\n const { _requestsEmbedVideo: requestsEmbedVideo } = this;\n const requestEmbedVideo = requestsEmbedVideo[videoId];\n\n if (requestEmbedVideo) {\n return requestEmbedVideo;\n }\n\n const promiseEmbedVideo = this._embedVideoImpl(videoId, backgroundMode);\n\n this._setRequestEmbedVideoInProgress(videoId, promiseEmbedVideo);\n try {\n this._setEmbeddedVideo(videoId, await promiseEmbedVideo);\n } catch (error) {\n this._setErrorRequestEmbedVideo(videoId, error as Error);\n }\n return promiseEmbedVideo;\n };\n\n /**\n * Calls the data-* attribute transpose function to target `dds-video-player`'s button element.\n */\n firstUpdated() {\n window.requestAnimationFrame(() => {\n const button =\n this.querySelector('dds-video-player')?.shadowRoot?.querySelector(\n 'button'\n );\n if (!this.getAttribute('href') && this.getAttribute('video-id')) {\n this.setAttribute(\n 'href',\n `https://mediacenter.ibm.com/id/${this.getAttribute('video-id')}`\n );\n }\n this.transposeAttributes(button, ['href']);\n });\n }\n\n prefersAutoplayStorageKey: String = `${ddsPrefix}-background-video-prefers-autoplay`;\n }\n\n return DDSVideoPlayerContainerMixinImpl;\n};\n\n/**\n * Container component for video player.\n *\n * @element dds-video-player-container\n */\n@customElement(`${ddsPrefix}-video-player-container`)\nclass DDSVideoPlayerContainer extends ConnectMixin<\n VideoPlayerContainerState,\n MediaPlayerAPIActions,\n VideoPlayerContainerStateProps,\n ActionCreatorsMapObject<VideoPlayerActions>\n>(\n store as Store<VideoPlayerContainerState, MediaPlayerAPIActions>,\n mapStateToProps,\n mapDispatchToProps\n)(DDSVideoPlayerContainerMixin(DDSVideoPlayerComposite)) {}\n\n/* @__GENERATE_REACT_CUSTOM_ELEMENT_TYPE__ */\nexport default DDSVideoPlayerContainer;\n"],"mappings":";;;;;;;;;;;;;;;;;;;AASA,IAAAA,MAAA,GAAAC,OAAA;AAMAA,OAAA;AACA,IAAAC,SAAA,GAAAC,sBAAA,CAAAF,OAAA;AACA,IAAAG,cAAA,GAAAD,sBAAA,CAAAF,OAAA;AACA,IAAAI,UAAA,GAAAF,sBAAA,CAAAF,OAAA;AACA,IAAAK,MAAA,GAAAH,sBAAA,CAAAF,OAAA;AAKA,IAAAM,iBAAA,GAAAN,OAAA;AAGA,IAAAO,QAAA,GAAAL,sBAAA,CAAAF,OAAA;AACA,IAAAQ,eAAA,GAAAN,sBAAA,CAAAF,OAAA;AACA,IAAAS,qBAAA,GAAAP,sBAAA,CAAAF,OAAA;AACA,IAAAU,cAAA,GAAAV,OAAA;AAAgI,SAAAW,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AAA,CAAA3B,KAAA,CAAAoL,OAAA,SAAA5H,MAAA,CAAAH,IAAA;MAAA4H,WAAA,KAAAxH,uBAAA,aAAA4H,MAAA;MAAA,OAAAA,MAAA;IAAA;IAAA,WAAA5F,aAAA,aAAAqF,uBAAA;EAAA,EAAAI,aAAA;EAAA;IAAAM,CAAA,EAAvBV,uBAAuB;IAAAW,CAAA;EAAA;AAAA,GAAS,IAAAC,mBAAY,EAMhDC,iBAAK,EACL1J,eAAe,EACfK,kBACF,CAAC,CAACK,4BAA4B,CAACiJ,gCAAuB,CAAC,CAAC;AAExD;AAAA,IAAAC,QAAA,GAAAjJ,OAAA,cACekI,uBAAuB"}
|
|
1
|
+
{"version":3,"file":"video-player-container.js","names":["_redux","require","_settings","_interopRequireDefault","_KalturaPlayer","_settings2","_store","_kalturaPlayerAPI","_connect","_stableSelector","_videoPlayerComposite","_carbonElement","ownKeys","e","r","t","Object","keys","getOwnPropertySymbols","o","filter","getOwnPropertyDescriptor","enumerable","push","apply","_objectSpread","arguments","length","forEach","_defineProperty2","getOwnPropertyDescriptors","defineProperties","defineProperty","_createSuper","Derived","hasNativeReflectConstruct","_isNativeReflectConstruct","_createSuperInternal","Super","_getPrototypeOf2","result","NewTarget","constructor","Reflect","construct","_possibleConstructorReturn2","sham","Proxy","Boolean","prototype","valueOf","call","prefix","settings","ddsPrefix","ddsSettings","stablePrefix","mapStateToProps","state","kalturaPlayerAPI","_ref","mediaData","mapDispatchToProps","dispatch","bindActionCreators","_loadVideoData","loadMediaData","DDSVideoPlayerContainerMixin","exports","Base","DDSVideoPlayerContainerMixinImpl","_StableSelectorMixin","_inherits2","_super","_this","_classCallCheck2","_len","args","Array","_key","concat","_assertThisInitialized2","_ref2","_asyncToGenerator2","_regenerator","mark","_callee","videoId","backgroundMode","_assertThisInitialize","requestsEmbedVideo","requestEmbedVideo","promiseEmbedVideo","_args","wrap","_callee$","_context","prev","next","undefined","_requestsEmbedVideo","abrupt","_embedVideoImpl","_setRequestEmbedVideoInProgress","t0","t1","t2","sent","_setEmbeddedVideo","t3","_setErrorRequestEmbedVideo","stop","_x","_createClass2","key","value","request","oldRequestsEmbedVideo","error","Promise","reject","kWidget","resolve","oldEmbeddedVideos","embeddedVideos","_setAutoplayPreference","preference","updatedValue","localStorage","setItem","prefersAutoplayStorageKey","_getAutoplayPreference","storedValue","getItem","returnValue","parseInt","_getPlayerOptions","playerOptions","storedMotionPreference","autoplayPreference","window","matchMedia","matches","loop","autoMute","autoPlay","closedCaptions","plugin","_embedVideoImpl2","_callee2","_getElementById","doc","playerId","div","videoPlayer","embedVideoHandle","_yield$KalturaPlayerA","width","height","videoEmbed","_args2","_callee2$","_context2","hasOwnProperty","getRootNode","ownerDocument","Math","random","toString","slice","document","createElement","id","className","_videoPlayer","TypeError","appendChild","KalturaPlayerAPI","embedMedia","api","style","setProperty","getElementById","dataset","firstElementChild","opacity","addEventListener","once","setTimeout","transition","focus","_x2","firstUpdated","_this2","requestAnimationFrame","_this2$querySelector","button","querySelector","shadowRoot","getAttribute","setAttribute","transposeAttributes","StableSelectorMixin","DDSVideoPlayerContainer","_decorate2","customElement","_initialize","_ConnectMixin","_ConnectMixin2","_super2","_this3","_len2","_key2","F","d","ConnectMixin","store","DDSVideoPlayerComposite","_default"],"sources":["components/video-player/video-player-container.ts"],"sourcesContent":["/**\n * @license\n *\n * Copyright IBM Corp. 2020, 2023\n *\n * This source code is licensed under the Apache-2.0 license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\nimport {\n ActionCreatorsMapObject,\n Dispatch,\n Store,\n bindActionCreators,\n} from 'redux';\nimport {} from 'lit-element';\nimport settings from 'carbon-components/es/globals/js/settings.js';\nimport KalturaPlayerAPI from '@carbon/ibmdotcom-services/es/services/KalturaPlayer/KalturaPlayer.js';\nimport ddsSettings from '../../internal/vendor/@carbon/ibmdotcom-utilities/utilities/settings/settings';\nimport store from '../../internal/vendor/@carbon/ibmdotcom-services-store/store';\nimport {\n MediaData,\n MediaPlayerAPIState,\n} from '../../internal/vendor/@carbon/ibmdotcom-services-store/types/kalturaPlayerAPI.d';\nimport { loadMediaData } from '../../internal/vendor/@carbon/ibmdotcom-services-store/actions/kalturaPlayerAPI';\nimport { MediaPlayerAPIActions } from '../../internal/vendor/@carbon/ibmdotcom-services-store/actions/kalturaPlayerAPI.d';\nimport { Constructor } from '../../globals/defs';\nimport ConnectMixin from '../../globals/mixins/connect';\nimport StableSelectorMixin from '../../globals/mixins/stable-selector';\nimport DDSVideoPlayerComposite from './video-player-composite';\nimport { carbonElement as customElement } from '../../internal/vendor/@carbon/web-components/globals/decorators/carbon-element';\n\nconst { prefix } = settings;\nconst { stablePrefix: ddsPrefix } = ddsSettings;\n\n/**\n * The Redux state used for `<dds-video-player-container>`.\n */\nexport interface VideoPlayerContainerState {\n /**\n * The Redux state for `KalturaPlayerAPI`.\n */\n kalturaPlayerAPI?: MediaPlayerAPIState;\n}\n\n/**\n * The properties for `<dds-video-player-container>` from Redux state.\n */\nexport interface VideoPlayerContainerStateProps {\n /**\n * The video data, keyed by the video ID.\n */\n mediaData?: { [videoId: string]: MediaData };\n}\n\nexport type VideoPlayerActions = ReturnType<typeof loadMediaData>;\n\n/**\n * @param state The Redux state for video player.\n * @returns The converted version of the given state, tailored for `<dds-video-player-container>`.\n */\nexport function mapStateToProps(\n state: VideoPlayerContainerState\n): VideoPlayerContainerStateProps {\n const { kalturaPlayerAPI } = state;\n const { mediaData } = kalturaPlayerAPI ?? {};\n return !mediaData ? {} : { mediaData };\n}\n\n/**\n * @param dispatch The Redux `dispatch()` API.\n * @returns The methods in `<dds-video-player-container>` to dispatch Redux actions.\n */\nexport function mapDispatchToProps(dispatch: Dispatch<MediaPlayerAPIActions>) {\n return bindActionCreators<\n VideoPlayerActions,\n ActionCreatorsMapObject<VideoPlayerActions>\n >(\n {\n _loadVideoData: loadMediaData,\n },\n dispatch as Dispatch // TS definition of `bindActionCreators()` seems to have no templated `Dispatch`\n );\n}\n\n/**\n * @param Base The base class.\n * @returns A mix-in that implements video embedding API calls.\n */\nexport const DDSVideoPlayerContainerMixin = <\n T extends Constructor<HTMLElement>\n>(\n Base: T\n) => {\n /**\n * A mix-in class that sets up and cleans up event listeners defined by `@HostListener` decorator.\n */\n abstract class DDSVideoPlayerContainerMixinImpl extends StableSelectorMixin(\n Base\n ) {\n /**\n * The video player.\n */\n abstract _videoPlayer?: HTMLElement;\n\n /**\n * The embedded Kaltura player element (that has `.sendNotification()`, etc. APIs), keyed by the video ID.\n */\n abstract embeddedVideos?: { [videoId: string]: any };\n\n /**\n * The request for the embedded Kaltura player element (that has `.sendNotification()`, etc. APIs), keyed by the video ID.\n *\n * @protected\n */\n // Not using TypeScript `private` due to: microsoft/TypeScript#17744\n _requestsEmbedVideo: { [videoId: string]: Promise<any> } = {};\n\n /**\n * Sets the state that the API call for embedding the video for the given video ID is in progress.\n *\n * @param videoId The video ID.\n * @param request The promise of the API call for embedding the video of the given video ID that is in progress.\n * @private\n */\n // Not using TypeScript `private` due to: microsoft/TypeScript#17744\n _setRequestEmbedVideoInProgress(videoId: string, request: Promise<any>) {\n const { _requestsEmbedVideo: oldRequestsEmbedVideo } = this;\n this._requestsEmbedVideo = {\n ...oldRequestsEmbedVideo,\n [videoId]: request,\n };\n }\n\n /**\n * Set the state that the API call for embedding the video for the given video ID is failed.\n *\n * @param videoId The video ID.\n * @param error An error from the API call for embedding the video of the given video ID.\n * @private\n */\n // Not using TypeScript `private` due to: microsoft/TypeScript#17744\n _setErrorRequestEmbedVideo(videoId: string, error: Error) {\n this._setRequestEmbedVideoInProgress(videoId, Promise.reject(error));\n }\n\n /**\n * Sets the given embedded Kaltura player element (that has `.sendNotification()`, etc. APIs) for the given video ID.\n *\n * @param videoId The video ID.\n * @param kWidget The embedded Kaltura player element (that has `.sendNotification()`, etc. APIs).\n * @private\n */\n // Not using TypeScript `private` due to: microsoft/TypeScript#17744\n _setEmbeddedVideo(videoId: string, kWidget: any) {\n this._setRequestEmbedVideoInProgress(videoId, Promise.resolve(kWidget));\n const { embeddedVideos: oldEmbeddedVideos } = this;\n this.embeddedVideos = {\n ...oldEmbeddedVideos,\n [videoId]: kWidget,\n };\n }\n\n _setAutoplayPreference(preference: Boolean) {\n const updatedValue = preference ? '1' : '0';\n localStorage.setItem(`${this.prefersAutoplayStorageKey}`, updatedValue);\n }\n\n _getAutoplayPreference() {\n const storedValue = localStorage.getItem(\n `${this.prefersAutoplayStorageKey}`\n );\n const returnValue =\n storedValue === null ? null : Boolean(parseInt(storedValue, 10));\n return returnValue;\n }\n\n _getPlayerOptions(backgroundMode = false) {\n let playerOptions = {};\n\n if (backgroundMode) {\n const storedMotionPreference: boolean | null =\n this._getAutoplayPreference();\n\n let autoplayPreference: boolean | undefined;\n\n if (storedMotionPreference === null) {\n autoplayPreference = !window.matchMedia(\n '(prefers-reduced-motion: reduce)'\n ).matches;\n } else {\n autoplayPreference = storedMotionPreference;\n }\n playerOptions = {\n 'topBarContainer.plugin': false,\n 'controlBarContainer.plugin': false,\n 'largePlayBtn.plugin': false,\n 'loadingSpinner.plugin': false,\n 'unMuteOverlayButton.plugin': false,\n 'EmbedPlayer.DisableVideoTagSupport': false,\n loop: true,\n autoMute: true,\n autoPlay: autoplayPreference,\n // Turn off CTA's including mid-roll card and end cards.\n 'ibm.callToActions': false,\n // Turn off captions display, background/ambient videos have no\n // audio.\n closedCaptions: {\n plugin: false,\n },\n };\n }\n\n return playerOptions;\n }\n\n /**\n * Sets up and sends the API call for embedding video for the given video ID.\n *\n * @param videoId The video ID.\n * @private\n */\n // Not using TypeScript `private` due to: microsoft/TypeScript#17744\n async _embedVideoImpl(videoId: string, backgroundMode = false) {\n const doc = Object.prototype.hasOwnProperty.call(this, 'getRootNode')\n ? (this.getRootNode() as Document | ShadowRoot)\n : this.ownerDocument;\n // Given Kaltura replaces the `<div>` here with `<iframe>` with the video player,\n // rendering this `<div>` in `renderLightDOM()` will cause the video player being clobbered\n const playerId = Math.random().toString(36).slice(2);\n const div = document.createElement('div');\n div.id = playerId;\n div.className = `${prefix}--video-player__video`;\n const { _videoPlayer: videoPlayer } = this;\n if (!videoPlayer) {\n throw new TypeError(\n 'Cannot find the video player component to put the video content into.'\n );\n }\n videoPlayer.appendChild(div);\n\n const embedVideoHandle = await KalturaPlayerAPI.embedMedia(\n videoId,\n playerId,\n this._getPlayerOptions(backgroundMode)\n );\n const { width, height } = await KalturaPlayerAPI.api(videoId);\n videoPlayer.style.setProperty('--native-file-width', `${width}px`);\n videoPlayer.style.setProperty('--native-file-height', `${height}px`);\n videoPlayer.style.setProperty(\n '--native-file-aspect-ratio',\n `${width} / ${height}`\n );\n doc!.getElementById(playerId)!.dataset.videoId = videoId;\n const videoEmbed = doc!.getElementById(playerId)?.firstElementChild as\n | HTMLIFrameElement\n | null\n | undefined;\n if (videoEmbed) {\n // Hide iFrame until it's fully loaded\n videoEmbed.style.opacity = '0';\n videoEmbed.addEventListener(\n 'load',\n () => {\n videoEmbed.style.opacity = '';\n },\n { once: true }\n );\n setTimeout(() => {\n // Fade in (@carbon/motion moderate02)\n videoEmbed.style.transition = 'opacity 240ms ease-in-out';\n }, 0);\n\n (videoEmbed as HTMLElement).focus();\n }\n return embedVideoHandle.kWidget();\n }\n\n /**\n * Sends the API call for embedding video for the given video ID, and tracks the progress and the error of the REST call.\n *\n * @param videoId The video ID.\n * @internal\n */\n _embedMedia = async (videoId: string, backgroundMode = false) => {\n const { _requestsEmbedVideo: requestsEmbedVideo } = this;\n const requestEmbedVideo = requestsEmbedVideo[videoId];\n\n if (requestEmbedVideo) {\n return requestEmbedVideo;\n }\n\n const promiseEmbedVideo = this._embedVideoImpl(videoId, backgroundMode);\n\n this._setRequestEmbedVideoInProgress(videoId, promiseEmbedVideo);\n try {\n this._setEmbeddedVideo(videoId, await promiseEmbedVideo);\n } catch (error) {\n this._setErrorRequestEmbedVideo(videoId, error as Error);\n }\n return promiseEmbedVideo;\n };\n\n /**\n * Calls the data-* attribute transpose function to target `dds-video-player`'s button element.\n */\n firstUpdated() {\n window.requestAnimationFrame(() => {\n const button =\n this.querySelector('dds-video-player')?.shadowRoot?.querySelector(\n 'button'\n );\n if (!this.getAttribute('href') && this.getAttribute('video-id')) {\n this.setAttribute(\n 'href',\n `https://mediacenter.ibm.com/id/${this.getAttribute('video-id')}`\n );\n }\n this.transposeAttributes(button, ['href']);\n });\n }\n\n prefersAutoplayStorageKey: String = `${ddsPrefix}-background-video-prefers-autoplay`;\n }\n\n return DDSVideoPlayerContainerMixinImpl;\n};\n\n/**\n * Container component for video player.\n *\n * @element dds-video-player-container\n */\n@customElement(`${ddsPrefix}-video-player-container`)\nclass DDSVideoPlayerContainer extends ConnectMixin<\n VideoPlayerContainerState,\n MediaPlayerAPIActions,\n VideoPlayerContainerStateProps,\n ActionCreatorsMapObject<VideoPlayerActions>\n>(\n store as Store<VideoPlayerContainerState, MediaPlayerAPIActions>,\n mapStateToProps,\n mapDispatchToProps\n)(DDSVideoPlayerContainerMixin(DDSVideoPlayerComposite)) {}\n\n/* @__GENERATE_REACT_CUSTOM_ELEMENT_TYPE__ */\nexport default DDSVideoPlayerContainer;\n"],"mappings":";;;;;;;;;;;;;;;;;;;AASA,IAAAA,MAAA,GAAAC,OAAA;AAMAA,OAAA;AACA,IAAAC,SAAA,GAAAC,sBAAA,CAAAF,OAAA;AACA,IAAAG,cAAA,GAAAD,sBAAA,CAAAF,OAAA;AACA,IAAAI,UAAA,GAAAF,sBAAA,CAAAF,OAAA;AACA,IAAAK,MAAA,GAAAH,sBAAA,CAAAF,OAAA;AAKA,IAAAM,iBAAA,GAAAN,OAAA;AAGA,IAAAO,QAAA,GAAAL,sBAAA,CAAAF,OAAA;AACA,IAAAQ,eAAA,GAAAN,sBAAA,CAAAF,OAAA;AACA,IAAAS,qBAAA,GAAAP,sBAAA,CAAAF,OAAA;AACA,IAAAU,cAAA,GAAAV,OAAA;AAAgI,SAAAW,QAAAC,CAAA,EAAAC,CAAA,QAAAC,CAAA,GAAAC,MAAA,CAAAC,IAAA,CAAAJ,CAAA,OAAAG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BAAAgI,uBAAA;MAAA,SAAAQ,KAAA,GAAAzL,SAAA,CAAAC,MAAA,EAAAkD,IAAA,OAAAC,KAAA,CAAAqI,KAAA,GAAAC,KAAA,MAAAA,KAAA,GAAAD,KAAA,EAAAC,KAAA;QAAAvI,IAAA,CAAAuI,KAAA,IAAA1L,SAAA,CAAA0L,KAAA;MAAA;MAAAF,MAAA,GAAAD,OAAA,CAAA9J,IAAA,CAAA3B,KAAA,CAAAyL,OAAA,SAAAjI,MAAA,CAAAH,IAAA;MAAAiI,WAAA,KAAA7H,uBAAA,aAAAiI,MAAA;MAAA,OAAAA,MAAA;IAAA;IAAA,WAAAjG,aAAA,aAAA0F,uBAAA;EAAA,EAAAI,aAAA;EAAA;IAAAM,CAAA,EAAvBV,uBAAuB;IAAAW,CAAA;EAAA;AAAA,GAAS,IAAAC,mBAAY,EAMhDC,iBAAK,EACL/J,eAAe,EACfK,kBACF,CAAC,CAACK,4BAA4B,CAACsJ,gCAAuB,CAAC,CAAC;AAExD;AAAA,IAAAC,QAAA,GAAAtJ,OAAA,cACeuI,uBAAuB"}
|
|
@@ -206,7 +206,7 @@ declare const DDSVideoPlayer_base: (new (...args: any[]) => {
|
|
|
206
206
|
ariaValueNow: string | null;
|
|
207
207
|
ariaValueText: string | null;
|
|
208
208
|
role: string | null;
|
|
209
|
-
animate(keyframes:
|
|
209
|
+
animate(keyframes: Keyframe[] | PropertyIndexedKeyframes | null, options?: number | KeyframeAnimationOptions | undefined): Animation;
|
|
210
210
|
getAnimations(options?: GetAnimationsOptions | undefined): Animation[];
|
|
211
211
|
after(...nodes: (string | Node)[]): void;
|
|
212
212
|
before(...nodes: (string | Node)[]): void;
|
|
@@ -538,7 +538,7 @@ declare const DDSVideoPlayer_base: (new (...args: any[]) => {
|
|
|
538
538
|
ariaValueNow: string | null;
|
|
539
539
|
ariaValueText: string | null;
|
|
540
540
|
role: string | null;
|
|
541
|
-
animate(keyframes:
|
|
541
|
+
animate(keyframes: Keyframe[] | PropertyIndexedKeyframes | null, options?: number | KeyframeAnimationOptions | undefined): Animation;
|
|
542
542
|
getAnimations(options?: GetAnimationsOptions | undefined): Animation[];
|
|
543
543
|
after(...nodes: (string | Node)[]): void;
|
|
544
544
|
before(...nodes: (string | Node)[]): void;
|
|
@@ -865,7 +865,7 @@ declare const DDSVideoPlayer_base: (new (...args: any[]) => {
|
|
|
865
865
|
ariaValueNow: string | null;
|
|
866
866
|
ariaValueText: string | null;
|
|
867
867
|
role: string | null;
|
|
868
|
-
animate(keyframes:
|
|
868
|
+
animate(keyframes: Keyframe[] | PropertyIndexedKeyframes | null, options?: number | KeyframeAnimationOptions | undefined): Animation;
|
|
869
869
|
getAnimations(options?: GetAnimationsOptions | undefined): Animation[];
|
|
870
870
|
after(...nodes: (string | Node)[]): void;
|
|
871
871
|
before(...nodes: (string | Node)[]): void;
|
|
@@ -214,7 +214,7 @@ declare const ConnectMixin: <TState, TAction extends AnyAction = AnyAction, TSta
|
|
|
214
214
|
ariaValueNow: string | null;
|
|
215
215
|
ariaValueText: string | null;
|
|
216
216
|
role: string | null;
|
|
217
|
-
animate(keyframes:
|
|
217
|
+
animate(keyframes: Keyframe[] | PropertyIndexedKeyframes | null, options?: number | KeyframeAnimationOptions | undefined): Animation;
|
|
218
218
|
getAnimations(options?: GetAnimationsOptions | undefined): Animation[];
|
|
219
219
|
after(...nodes: (string | Node)[]): void;
|
|
220
220
|
before(...nodes: (string | Node)[]): void;
|
|
@@ -214,7 +214,7 @@ declare const HybridRenderMixin: <T extends Constructor<HTMLElement>>(Base: T) =
|
|
|
214
214
|
ariaValueNow: string | null;
|
|
215
215
|
ariaValueText: string | null;
|
|
216
216
|
role: string | null;
|
|
217
|
-
animate(keyframes:
|
|
217
|
+
animate(keyframes: Keyframe[] | PropertyIndexedKeyframes | null, options?: number | KeyframeAnimationOptions | undefined): Animation;
|
|
218
218
|
getAnimations(options?: GetAnimationsOptions | undefined): Animation[];
|
|
219
219
|
after(...nodes: (string | Node)[]): void;
|
|
220
220
|
before(...nodes: (string | Node)[]): void;
|
|
@@ -237,7 +237,7 @@ declare const ModalRenderMixin: <T extends Constructor<HTMLElement>>(Base: T) =>
|
|
|
237
237
|
ariaValueNow: string | null;
|
|
238
238
|
ariaValueText: string | null;
|
|
239
239
|
role: string | null;
|
|
240
|
-
animate(keyframes:
|
|
240
|
+
animate(keyframes: Keyframe[] | PropertyIndexedKeyframes | null, options?: number | KeyframeAnimationOptions | undefined): Animation;
|
|
241
241
|
getAnimations(options?: GetAnimationsOptions | undefined): Animation[];
|
|
242
242
|
after(...nodes: (string | Node)[]): void;
|
|
243
243
|
before(...nodes: (string | Node)[]): void;
|
|
@@ -237,7 +237,7 @@ declare const StableSelectorMixin: <T extends Constructor<HTMLElement>>(Base: T)
|
|
|
237
237
|
ariaValueNow: string | null;
|
|
238
238
|
ariaValueText: string | null;
|
|
239
239
|
role: string | null;
|
|
240
|
-
animate(keyframes:
|
|
240
|
+
animate(keyframes: Keyframe[] | PropertyIndexedKeyframes | null, options?: number | KeyframeAnimationOptions | undefined): Animation;
|
|
241
241
|
getAnimations(options?: GetAnimationsOptions | undefined): Animation[];
|
|
242
242
|
after(...nodes: (string | Node)[]): void;
|
|
243
243
|
before(...nodes: (string | Node)[]): void;
|
|
@@ -242,7 +242,7 @@ declare const ThrottledInputMixin: <T extends Constructor<HTMLElement>>(Base: T)
|
|
|
242
242
|
ariaValueNow: string | null;
|
|
243
243
|
ariaValueText: string | null;
|
|
244
244
|
role: string | null;
|
|
245
|
-
animate(keyframes:
|
|
245
|
+
animate(keyframes: Keyframe[] | PropertyIndexedKeyframes | null, options?: number | KeyframeAnimationOptions | undefined): Animation;
|
|
246
246
|
getAnimations(options?: GetAnimationsOptions | undefined): Animation[];
|
|
247
247
|
after(...nodes: (string | Node)[]): void;
|
|
248
248
|
before(...nodes: (string | Node)[]): void;
|
|
@@ -11,10 +11,10 @@
|
|
|
11
11
|
* @exports ibmdotcom.settings
|
|
12
12
|
* @type {object} Settings object
|
|
13
13
|
* @property {string} [prefix=dds]
|
|
14
|
-
* Carbon for IBM.com v1.
|
|
14
|
+
* Carbon for IBM.com v1.58.0',
|
|
15
15
|
*/
|
|
16
16
|
var settings = {
|
|
17
|
-
version: 'Carbon for IBM.com v1.
|
|
17
|
+
version: 'Carbon for IBM.com v1.58.0',
|
|
18
18
|
stablePrefix: 'dds'
|
|
19
19
|
};
|
|
20
20
|
export default settings;
|
|
@@ -11,10 +11,10 @@
|
|
|
11
11
|
* @exports ibmdotcom.settings
|
|
12
12
|
* @type {object} Settings object
|
|
13
13
|
* @property {string} [prefix=dds]
|
|
14
|
-
* Carbon for IBM.com v1.
|
|
14
|
+
* Carbon for IBM.com v1.58.0',
|
|
15
15
|
*/
|
|
16
16
|
var settings = {
|
|
17
|
-
version: 'Carbon for IBM.com v1.
|
|
17
|
+
version: 'Carbon for IBM.com v1.58.0',
|
|
18
18
|
stablePrefix: 'dds'
|
|
19
19
|
};
|
|
20
20
|
export default settings;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
*
|
|
4
|
+
* Copyright IBM Corp. 2024
|
|
5
|
+
*
|
|
6
|
+
* This source code is licensed under the Apache-2.0 license found in the
|
|
7
|
+
* LICENSE file in the root directory of this source tree.
|
|
8
|
+
*/
|
|
9
|
+
import './pagination-nav';
|
|
10
|
+
|
|
11
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
*
|
|
4
|
+
* Copyright IBM Corp. 2024
|
|
5
|
+
*
|
|
6
|
+
* This source code is licensed under the Apache-2.0 license found in the
|
|
7
|
+
* LICENSE file in the root directory of this source tree.
|
|
8
|
+
*/
|
|
9
|
+
|
|
10
|
+
import './pagination-nav';
|
|
11
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","names":[],"sources":["components/pagination-nav/index.ts"],"sourcesContent":["/**\n * @license\n *\n * Copyright IBM Corp. 2024\n *\n * This source code is licensed under the Apache-2.0 license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\nimport './pagination-nav';\n"],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,OAAO,kBAAkB"}
|
package/es/internal/vendor/@carbon/web-components/components/pagination-nav/pagination-nav.css.js
ADDED
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
*
|
|
4
|
+
* Copyright IBM Corp. 2019, 2020
|
|
5
|
+
*
|
|
6
|
+
* This source code is licensed under the Apache-2.0 license found in the
|
|
7
|
+
* LICENSE file in the root directory of this source tree.
|
|
8
|
+
*/
|
|
9
|
+
import { css } from 'lit-element';
|
|
10
|
+
export default css([
|
|
11
|
+
'a,abbr,acronym,address,applet,article,aside,audio,b,big,blockquote,body,canvas,caption,center,cite,code,dd,del,details,dfn,div,dl,dt,em,embed,fieldset,figcaption,figure,footer,form,h1,h2,h3,h4,h5,h6,header,hgroup,html,i,iframe,img,ins,kbd,label,legend,li,mark,menu,nav,object,ol,output,p,pre,q,ruby,s,samp,section,small,span,strike,strong,sub,summary,sup,table,tbody,td,tfoot,th,thead,time,tr,tt,u,ul,var,video{padding:0;border:0;margin:0;font:inherit;font-size:100%;vertical-align:baseline}button,input,select,textarea{border-radius:0;font-family:inherit}input[type=text]::-ms-clear{display:none}article,aside,details,figcaption,figure,footer,header,hgroup,main,menu,nav,section{display:block}body{line-height:1}sup{vertical-align:super}sub{vertical-align:sub}ol,ul{list-style:none}blockquote,q{quotes:none}blockquote::after,blockquote::before,q::after,q::before{content:""}table{border-collapse:collapse;border-spacing:0}*{box-sizing:border-box}button{margin:0}html{font-size:100%}body{font-weight:400;font-family:\'IBM Plex Sans\',\'Helvetica Neue\',Arial,sans-serif;-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;text-rendering:optimizeLegibility}code{font-family:\'IBM Plex Mono\',Menlo,\'DejaVu Sans Mono\',\'Bitstream Vera Sans Mono\',Courier,monospace}strong{font-weight:600}@media screen and (-ms-high-contrast:active){svg{fill:ButtonText}}h1{font-size:var(--cds-productive-heading-06-font-size,2.625rem);font-weight:var(--cds-productive-heading-06-font-weight,300);line-height:var(--cds-productive-heading-06-line-height,1.199);letter-spacing:var(--cds-productive-heading-06-letter-spacing,0)}h2{font-size:var(--cds-productive-heading-05-font-size,2rem);font-weight:var(--cds-productive-heading-05-font-weight,300);line-height:var(--cds-productive-heading-05-line-height,1.25);letter-spacing:var(--cds-productive-heading-05-letter-spacing,0)}h3{font-size:var(--cds-productive-heading-04-font-size,1.75rem);font-weight:var(--cds-productive-heading-04-font-weight,400);line-height:var(--cds-productive-heading-04-line-height,1.28572);letter-spacing:var(--cds-productive-heading-04-letter-spacing,0)}h4{font-size:var(--cds-productive-heading-03-font-size,1.25rem);font-weight:var(--cds-productive-heading-03-font-weight,400);line-height:var(--cds-productive-heading-03-line-height,1.4);letter-spacing:var(--cds-productive-heading-03-letter-spacing,0)}h5{font-size:var(--cds-productive-heading-02-font-size,1rem);font-weight:var(--cds-productive-heading-02-font-weight,600);line-height:var(--cds-productive-heading-02-line-height,1.375);letter-spacing:var(--cds-productive-heading-02-letter-spacing,0)}h6{font-size:var(--cds-productive-heading-01-font-size,.875rem);font-weight:var(--cds-productive-heading-01-font-weight,600);line-height:var(--cds-productive-heading-01-line-height,1.28572);letter-spacing:var(--cds-productive-heading-01-letter-spacing,.16px)}p{font-size:var(--cds-body-long-02-font-size,1rem);font-weight:var(--cds-body-long-02-font-weight,400);line-height:var(--cds-body-long-02-line-height,1.5);letter-spacing:var(--cds-body-long-02-letter-spacing,0)}a{color:#0f62fe}em{font-style:italic}@keyframes skeleton{0%{opacity:.3;transform:scaleX(0);transform-origin:left}20%{opacity:1;transform:scaleX(1);transform-origin:left}28%{transform:scaleX(1);transform-origin:right}51%{transform:scaleX(0);transform-origin:right}58%{transform:scaleX(0);transform-origin:right}82%{transform:scaleX(1);transform-origin:right}83%{transform:scaleX(1);transform-origin:left}96%{transform:scaleX(0);transform-origin:left}100%{opacity:.3;transform:scaleX(0);transform-origin:left}}.bx--pagination-nav{box-sizing:border-box;padding:0;border:0;margin:0;font-family:inherit;font-size:100%;vertical-align:baseline;font-size:var(--cds-body-short-01-font-size,.875rem);font-weight:var(--cds-body-short-01-font-weight,400);line-height:var(--cds-body-short-01-line-height,1.28572);letter-spacing:var(--cds-body-short-01-letter-spacing,.16px);line-height:0}.bx--pagination-nav *,.bx--pagination-nav ::after,.bx--pagination-nav ::before{box-sizing:inherit}.bx--pagination-nav__list{display:flex;align-items:center;list-style:none}.bx--pagination-nav__list-item{padding:0}.bx--pagination-nav__list-item:first-child{padding-left:0}.bx--pagination-nav__list-item:last-child{padding-right:0}.bx--pagination-nav__page{font-size:var(--cds-body-short-01-font-size,.875rem);font-weight:var(--cds-body-short-01-font-weight,400);line-height:var(--cds-body-short-01-line-height,1.28572);letter-spacing:var(--cds-body-short-01-letter-spacing,.16px);box-sizing:border-box;padding:0;border:0;margin:0;font-family:inherit;font-size:100%;vertical-align:baseline;display:inline-block;padding:0;border:0;-webkit-appearance:none;-moz-appearance:none;appearance:none;background:0 0;cursor:pointer;position:relative;display:block;min-width:3rem;padding:1.0625rem .25rem;border-radius:0;color:var(--cds-text-02,#525252);font-weight:400;line-height:1;outline:0;text-align:center;text-decoration:none;transition:background-color 110ms cubic-bezier(.2,0,.38,.9),color 110ms cubic-bezier(.2,0,.38,.9);-webkit-user-select:none;-moz-user-select:none;user-select:none}.bx--pagination-nav__page *,.bx--pagination-nav__page ::after,.bx--pagination-nav__page ::before{box-sizing:inherit}.bx--pagination-nav__page::-moz-focus-inner{border:0}.bx--pagination-nav__page:hover{background-color:var(--cds-hover-ui,#e5e5e5);color:var(--cds-text-02,#525252)}.bx--pagination-nav__page:focus{outline:2px solid var(--cds-focus,#0f62fe);outline-offset:-2px}@media screen and (prefers-contrast){.bx--pagination-nav__page:focus{outline-style:dotted}}.bx--pagination-nav__page.bx--pagination-nav__page--disabled,.bx--pagination-nav__page:disabled{background:0 0;color:rgba(var(--cds-text-02,#525252),.5);outline:0;pointer-events:none}.bx--pagination-nav__page:not(.bx--pagination-nav__page--direction)::after{position:absolute;bottom:0;left:50%;display:block;width:0;height:.25rem;background-color:var(--cds-interactive-01,#0f62fe);content:"";opacity:0;transition:width 110ms cubic-bezier(.2,0,.38,.9)}@media screen and (prefers-reduced-motion:reduce){.bx--pagination-nav__page:not(.bx--pagination-nav__page--direction)::after{transition:none}}.bx--pagination-nav__page--active+.bx--pagination-nav__page::after,.bx--pagination-nav__page.bx--pagination-nav__page--active::after{left:calc(50% - .5rem);width:1rem;opacity:1}.bx--pagination-nav__page.bx--pagination-nav__page--active{background-color:initial;color:var(--cds-text-02,#525252);font-weight:600}.bx--pagination-nav__page .bx--pagination-nav__icon{fill:currentColor;pointer-events:none}.bx--pagination-nav__page--direction{display:flex;width:3rem;height:3rem;align-items:center;justify-content:center;line-height:0}.bx--pagination-nav__select{position:relative}.bx--pagination-nav__page--select{max-height:3rem;-webkit-appearance:none;-moz-appearance:none;appearance:none;text-indent:calc(50% - 4.5px)}@-moz-document url-prefix(){.bx--pagination-nav__page--select{text-indent:0}}.bx--pagination-nav__select-icon-wrapper{position:absolute;top:0;width:100%;height:100%;pointer-events:none}.bx--pagination-nav__select-icon-wrapper:not(.bx--pagination-nav__page--direction)::after{position:absolute;bottom:0;left:50%;display:block;width:0;height:.25rem;background-color:var(--cds-interactive-01,#0f62fe);content:"";opacity:0;transition:width 110ms cubic-bezier(.2,0,.38,.9)}@media screen and (prefers-reduced-motion:reduce){.bx--pagination-nav__select-icon-wrapper:not(.bx--pagination-nav__page--direction)::after{transition:none}}.bx--pagination-nav__page--active+.bx--pagination-nav__select-icon-wrapper::after,.bx--pagination-nav__select-icon-wrapper.bx--pagination-nav__page--active::after{left:calc(50% - .5rem);width:1rem;opacity:1}.bx--pagination-nav__page--active+.bx--pagination-nav__select-icon-wrapper .bx--pagination-nav__select-icon{display:none}.bx--pagination-nav__select-icon{position:absolute;top:calc(50% - .5rem);left:calc(50% - .5rem);pointer-events:none}.bx--pagination-nav__accessibility-label{position:absolute;overflow:hidden;width:1px;height:1px;padding:0;border:0;margin:-1px;clip:rect(0,0,0,0);visibility:inherit;white-space:nowrap}:host(bx-pagination-nav) .bx--pagination-nav{box-sizing:border-box;padding:0;border:0;margin:0;font-family:inherit;font-size:100%;vertical-align:baseline;font-size:var(--cds-body-short-01-font-size,.875rem);font-weight:var(--cds-body-short-01-font-weight,400);line-height:var(--cds-body-short-01-line-height,1.28572);letter-spacing:var(--cds-body-short-01-letter-spacing,.16px);line-height:0}:host(bx-pagination-nav) .bx--pagination-nav *,:host(bx-pagination-nav) .bx--pagination-nav ::after,:host(bx-pagination-nav) .bx--pagination-nav ::before{box-sizing:inherit}:host(bx-pagination-nav) .bx--pagination-nav__list{display:flex;align-items:center;list-style:none}:host(bx-pagination-nav) .bx--pagination-nav__list-item{padding:0}:host(bx-pagination-nav) .bx--pagination-nav__list-item:first-child{padding-left:0}:host(bx-pagination-nav) .bx--pagination-nav__list-item:last-child{padding-right:0}:host(bx-pagination-nav) .bx--pagination-nav__page{font-size:var(--cds-body-short-01-font-size,.875rem);font-weight:var(--cds-body-short-01-font-weight,400);line-height:var(--cds-body-short-01-line-height,1.28572);letter-spacing:var(--cds-body-short-01-letter-spacing,.16px);box-sizing:border-box;padding:0;border:0;margin:0;font-family:inherit;font-size:100%;vertical-align:baseline;display:inline-block;padding:0;border:0;-webkit-appearance:none;-moz-appearance:none;appearance:none;background:0 0;cursor:pointer;position:relative;display:block;min-width:3rem;padding:1.0625rem .25rem;border-radius:0;color:var(--cds-text-02,#525252);font-weight:400;line-height:1;outline:0;text-align:center;text-decoration:none;transition:background-color 110ms cubic-bezier(.2,0,.38,.9),color 110ms cubic-bezier(.2,0,.38,.9);-webkit-user-select:none;-moz-user-select:none;user-select:none}:host(bx-pagination-nav) .bx--pagination-nav__page *,:host(bx-pagination-nav) .bx--pagination-nav__page ::after,:host(bx-pagination-nav) .bx--pagination-nav__page ::before{box-sizing:inherit}:host(bx-pagination-nav) .bx--pagination-nav__page::-moz-focus-inner{border:0}:host(bx-pagination-nav) .bx--pagination-nav__page:hover{background-color:var(--cds-hover-ui,#e5e5e5);color:var(--cds-text-02,#525252)}:host(bx-pagination-nav) .bx--pagination-nav__page:focus{outline:2px solid var(--cds-focus,#0f62fe);outline-offset:-2px}@media screen and (prefers-contrast){:host(bx-pagination-nav) .bx--pagination-nav__page:focus{outline-style:dotted}}:host(bx-pagination-nav) .bx--pagination-nav__page.bx--pagination-nav__page--disabled,:host(bx-pagination-nav) .bx--pagination-nav__page:disabled{background:0 0;color:rgba(var(--cds-text-02,#525252),.5);outline:0;pointer-events:none}:host(bx-pagination-nav) .bx--pagination-nav__page:not(.bx--pagination-nav__page--direction)::after{position:absolute;bottom:0;left:50%;display:block;width:0;height:.25rem;background-color:var(--cds-interactive-01,#0f62fe);content:"";opacity:0;transition:width 110ms cubic-bezier(.2,0,.38,.9)}@media screen and (prefers-reduced-motion:reduce){:host(bx-pagination-nav) .bx--pagination-nav__page:not(.bx--pagination-nav__page--direction)::after{transition:none}}.bx--pagination-nav__page--active+:host(bx-pagination-nav) .bx--pagination-nav__page::after,:host(bx-pagination-nav) .bx--pagination-nav__page.bx--pagination-nav__page--active::after{left:calc(50% - .5rem);width:1rem;opacity:1}:host(bx-pagination-nav) .bx--pagination-nav__page.bx--pagination-nav__page--active{background-color:initial;color:var(--cds-text-02,#525252);font-weight:600}:host(bx-pagination-nav) .bx--pagination-nav__page .bx--pagination-nav__icon{fill:currentColor;pointer-events:none}:host(bx-pagination-nav) .bx--pagination-nav__page--direction{display:flex;width:3rem;height:3rem;align-items:center;justify-content:center;line-height:0}:host(bx-pagination-nav) .bx--pagination-nav__select{position:relative}:host(bx-pagination-nav) .bx--pagination-nav__page--select{max-height:3rem;-webkit-appearance:none;-moz-appearance:none;appearance:none;text-indent:calc(50% - 4.5px)}@-moz-document url-prefix(){:host(bx-pagination-nav) .bx--pagination-nav__page--select{text-indent:0}}:host(bx-pagination-nav) .bx--pagination-nav__select-icon-wrapper{position:absolute;top:0;width:100%;height:100%;pointer-events:none}:host(bx-pagination-nav) .bx--pagination-nav__select-icon-wrapper:not(.bx--pagination-nav__page--direction)::after{position:absolute;bottom:0;left:50%;display:block;width:0;height:.25rem;background-color:var(--cds-interactive-01,#0f62fe);content:"";opacity:0;transition:width 110ms cubic-bezier(.2,0,.38,.9)}@media screen and (prefers-reduced-motion:reduce){:host(bx-pagination-nav) .bx--pagination-nav__select-icon-wrapper:not(.bx--pagination-nav__page--direction)::after{transition:none}}.bx--pagination-nav__page--active+:host(bx-pagination-nav) .bx--pagination-nav__select-icon-wrapper::after,:host(bx-pagination-nav) .bx--pagination-nav__select-icon-wrapper.bx--pagination-nav__page--active::after{left:calc(50% - .5rem);width:1rem;opacity:1}.bx--pagination-nav__page--active+:host(bx-pagination-nav) .bx--pagination-nav__select-icon-wrapper .bx--pagination-nav__select-icon{display:none}:host(bx-pagination-nav) .bx--pagination-nav__select-icon{position:absolute;top:calc(50% - .5rem);left:calc(50% - .5rem);pointer-events:none}:host(bx-pagination-nav) .bx--pagination-nav__accessibility-label{position:absolute;overflow:hidden;width:1px;height:1px;padding:0;border:0;margin:-1px;clip:rect(0,0,0,0);visibility:inherit;white-space:nowrap}:host(bx-pagination-nav) .bx--pagination-nav__page:disabled{color:var(--cds-disabled-02,#c6c6c6);pointer-events:revert;cursor:not-allowed}',
|
|
12
|
+
]);
|
package/es/internal/vendor/@carbon/web-components/components/pagination-nav/pagination-nav.d.ts
ADDED
|
@@ -0,0 +1,94 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
*
|
|
4
|
+
* Copyright IBM Corp. 2019, 2023
|
|
5
|
+
*
|
|
6
|
+
* This source code is licensed under the Apache-2.0 license found in the
|
|
7
|
+
* LICENSE file in the root directory of this source tree.
|
|
8
|
+
*/
|
|
9
|
+
import { LitElement } from 'lit-element';
|
|
10
|
+
/**
|
|
11
|
+
* Pagination Navigation.
|
|
12
|
+
*
|
|
13
|
+
* @element bx-pagination-nav
|
|
14
|
+
* @fires bx-page-changed - The custom event fired when the the page has been changed.
|
|
15
|
+
*/
|
|
16
|
+
declare class BXPaginationNav extends LitElement {
|
|
17
|
+
/**
|
|
18
|
+
* The maxiumum number of items to show in pager nav.
|
|
19
|
+
* - includes overflow items
|
|
20
|
+
* - excludes prev/next buttons
|
|
21
|
+
* - minumum value of 5
|
|
22
|
+
*/
|
|
23
|
+
itemsShown: number;
|
|
24
|
+
/**
|
|
25
|
+
* Whether to allow looping between first/last pages.
|
|
26
|
+
*/
|
|
27
|
+
loop: boolean;
|
|
28
|
+
/**
|
|
29
|
+
* Active page index (0-based).
|
|
30
|
+
*/
|
|
31
|
+
page: number;
|
|
32
|
+
/**
|
|
33
|
+
* Total number of pages
|
|
34
|
+
*/
|
|
35
|
+
totalItems: number;
|
|
36
|
+
/**
|
|
37
|
+
* Array allowing us to map out the items
|
|
38
|
+
* - Prefer showing this.count
|
|
39
|
+
* - Maximum of this.visible
|
|
40
|
+
* - Minumum of 1
|
|
41
|
+
*/
|
|
42
|
+
private _iterator;
|
|
43
|
+
shouldUpdate(changedProperties: any): boolean;
|
|
44
|
+
/**
|
|
45
|
+
* After values are updated, but before rendering, update the iterator.
|
|
46
|
+
*
|
|
47
|
+
* @param changedProperties map of previous values of changed properties
|
|
48
|
+
*/
|
|
49
|
+
update(changedProperties: any): void;
|
|
50
|
+
/**
|
|
51
|
+
* After page is selected, dispatch event & ensure focus is on active page.
|
|
52
|
+
*
|
|
53
|
+
* @param changedProperties map of changed props.
|
|
54
|
+
*/
|
|
55
|
+
updated(changedProperties: any): void;
|
|
56
|
+
/**
|
|
57
|
+
* Sets the current page to a specified index.
|
|
58
|
+
*
|
|
59
|
+
* @param e the click event
|
|
60
|
+
*/
|
|
61
|
+
setIndex(e: PointerEvent): void;
|
|
62
|
+
/**
|
|
63
|
+
* Reduce current page by one, but no lower than 0.
|
|
64
|
+
*/
|
|
65
|
+
decrementIndex(): void;
|
|
66
|
+
/**
|
|
67
|
+
* Increase current page by one, but no higher than (this.totalItems - 1).
|
|
68
|
+
*/
|
|
69
|
+
incrementIndex(): void;
|
|
70
|
+
/**
|
|
71
|
+
* Renders a single list item & button.
|
|
72
|
+
*
|
|
73
|
+
* @param i the index to render
|
|
74
|
+
* @returns Rendered item
|
|
75
|
+
*/
|
|
76
|
+
renderIndividualItem(i?: number): import("lit-element").TemplateResult;
|
|
77
|
+
/**
|
|
78
|
+
* Renders overflow items in a select list.
|
|
79
|
+
*
|
|
80
|
+
* @param group the indecies to render
|
|
81
|
+
* @returns Rendered item
|
|
82
|
+
*/
|
|
83
|
+
renderGroupedItems(group: number[]): import("lit-element").TemplateResult;
|
|
84
|
+
render(): import("lit-element").TemplateResult;
|
|
85
|
+
static get pageChangedEvent(): string;
|
|
86
|
+
static calculateCuts(page: number, totalItems: number, itemsDisplayedOnPage: number): {
|
|
87
|
+
front: number;
|
|
88
|
+
back: number;
|
|
89
|
+
};
|
|
90
|
+
static styles: any;
|
|
91
|
+
}
|
|
92
|
+
export default BXPaginationNav;
|
|
93
|
+
|
|
94
|
+
//# sourceMappingURL=pagination-nav.d.ts.map
|