@swisspost/design-system-components 2.0.0 → 2.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +183 -185
- package/dist/cjs/check-non-empty-eeaa8f77.js +0 -2
- package/dist/cjs/constants-238701d3.js +0 -2
- package/dist/cjs/fade-35a3633a.js +0 -2
- package/dist/cjs/index-8c288b1a.js +0 -2
- package/dist/cjs/{index-13695f3f.js → index-f243643b.js} +30 -4
- package/dist/cjs/index.cjs.js +15 -15
- package/dist/cjs/loader.cjs.js +1 -3
- package/dist/cjs/package-0645dd08.js +5 -0
- package/dist/cjs/{post-accordion-9877919c.js → post-accordion-64aa88cf.js} +5 -6
- package/dist/cjs/post-accordion-item-51df1dfa.js +51 -0
- package/dist/cjs/post-accordion-item.cjs.entry.js +5 -47
- package/dist/cjs/post-accordion.cjs.entry.js +3 -5
- package/dist/cjs/{post-alert-d87e6132.js → post-alert-ac59385a.js} +8 -11
- package/dist/cjs/post-alert.cjs.entry.js +3 -5
- package/dist/cjs/{post-collapsible-ef0561b4.js → post-collapsible-84416953.js} +5 -6
- package/dist/cjs/post-collapsible.cjs.entry.js +3 -5
- package/dist/cjs/post-components.cjs.js +2 -4
- package/dist/cjs/{post-icon-e9dcd643.js → post-icon-5fc20211.js} +5 -6
- package/dist/cjs/post-icon.cjs.entry.js +3 -5
- package/dist/cjs/{post-popover-e114ebe7.js → post-popover-be868244.js} +5 -6
- package/dist/cjs/post-popover.cjs.entry.js +3 -5
- package/dist/cjs/{post-popovercontainer-20fb22ee.js → post-popovercontainer-cc5fa030.js} +118 -30
- package/dist/cjs/post-popovercontainer.cjs.entry.js +3 -5
- package/dist/cjs/{post-tab-header-34c1cc21.js → post-tab-header-5a7070e9.js} +5 -6
- package/dist/cjs/post-tab-header.cjs.entry.js +3 -5
- package/dist/cjs/{post-tab-panel-95cf7092.js → post-tab-panel-1143ea40.js} +5 -6
- package/dist/cjs/post-tab-panel.cjs.entry.js +3 -5
- package/dist/cjs/{post-tabs-dbe7c341.js → post-tabs-7ef36ff6.js} +5 -6
- package/dist/cjs/post-tabs.cjs.entry.js +3 -5
- package/dist/cjs/{post-tooltip-659af1e3.js → post-tooltip-45784e17.js} +1727 -356
- package/dist/cjs/post-tooltip.cjs.entry.js +3 -5
- package/dist/collection/animations/collapse.js +0 -1
- package/dist/collection/animations/fade.js +0 -1
- package/dist/collection/animations/index.js +0 -1
- package/dist/collection/collection-manifest.json +3 -3
- package/dist/collection/components/post-accordion/post-accordion.js +4 -2
- package/dist/collection/components/post-accordion-item/heading-levels.js +0 -1
- package/dist/collection/components/post-accordion-item/post-accordion-item.js +5 -2
- package/dist/collection/components/post-alert/alert-types.js +0 -1
- package/dist/collection/components/post-alert/post-alert.js +10 -8
- package/dist/collection/components/post-collapsible/post-collapsible.js +4 -2
- package/dist/collection/components/post-icon/post-icon.js +1 -2
- package/dist/collection/components/post-popover/post-popover.js +5 -3
- package/dist/collection/components/post-popovercontainer/post-popovercontainer.css +1 -1
- package/dist/collection/components/post-popovercontainer/post-popovercontainer.js +6 -4
- package/dist/collection/components/post-tab-header/post-tab-header.js +4 -2
- package/dist/collection/components/post-tab-panel/post-tab-panel.js +4 -2
- package/dist/collection/components/post-tabs/post-tabs.js +5 -2
- package/dist/collection/components/post-tooltip/post-tooltip.js +6 -4
- package/dist/collection/components/post-tooltip/types.js +0 -1
- package/dist/collection/index.js +1 -1
- package/dist/collection/index.spec.js +27 -0
- package/dist/collection/utils/index.js +0 -1
- package/dist/collection/utils/is-motion-reduced.js +0 -1
- package/dist/collection/utils/property-checkers/check-non-empty.js +0 -1
- package/dist/collection/utils/property-checkers/check-one-of.js +0 -1
- package/dist/collection/utils/property-checkers/check-pattern.js +0 -1
- package/dist/collection/utils/property-checkers/check-type.js +0 -1
- package/dist/collection/utils/property-checkers/constants.js +0 -1
- package/dist/collection/utils/property-checkers/empty-or.js +0 -1
- package/dist/collection/utils/property-checkers/index.js +0 -1
- package/dist/components/check-non-empty.js +0 -2
- package/dist/components/constants.js +0 -2
- package/dist/components/fade.js +0 -2
- package/dist/components/index.js +1 -2
- package/dist/components/index2.js +1 -3
- package/dist/components/package.js +1 -3
- package/dist/components/post-accordion-item.js +1 -77
- package/dist/components/post-accordion-item2.js +78 -0
- package/dist/components/post-accordion.js +0 -2
- package/dist/components/post-accordion2.js +3 -4
- package/dist/components/post-alert.js +0 -2
- package/dist/components/post-alert2.js +7 -10
- package/dist/components/post-collapsible.js +0 -2
- package/dist/components/post-collapsible2.js +3 -4
- package/dist/components/post-icon.js +0 -2
- package/dist/components/post-icon2.js +4 -5
- package/dist/components/post-popover.js +0 -2
- package/dist/components/post-popover2.js +3 -4
- package/dist/components/post-popovercontainer.js +0 -2
- package/dist/components/post-popovercontainer2.js +116 -28
- package/dist/components/post-tab-header.js +0 -2
- package/dist/components/post-tab-header2.js +3 -4
- package/dist/components/post-tab-panel.js +0 -2
- package/dist/components/post-tab-panel2.js +3 -4
- package/dist/components/post-tabs.js +0 -2
- package/dist/components/post-tabs2.js +3 -4
- package/dist/components/post-tooltip.js +0 -2
- package/dist/components/post-tooltip2.js +1726 -355
- package/dist/docs.json +164 -32
- package/dist/esm/check-non-empty-58bd6b17.js +0 -2
- package/dist/esm/constants-8d548297.js +0 -2
- package/dist/esm/fade-7fd71785.js +0 -2
- package/dist/esm/{index-74cf5c9d.js → index-1708db56.js} +30 -4
- package/dist/esm/{index-1427953c.js → index-b444db27.js} +1 -3
- package/dist/esm/index.js +15 -16
- package/dist/esm/loader.js +2 -4
- package/dist/esm/package-37a68f71.js +3 -0
- package/dist/esm/{post-accordion-3b137073.js → post-accordion-8872dc1b.js} +5 -6
- package/dist/esm/post-accordion-item-02b9f01c.js +49 -0
- package/dist/esm/post-accordion-item.entry.js +4 -50
- package/dist/esm/post-accordion.entry.js +3 -5
- package/dist/esm/{post-alert-0dcc6ac7.js → post-alert-1a766c15.js} +9 -12
- package/dist/esm/post-alert.entry.js +4 -6
- package/dist/esm/{post-collapsible-a418570f.js → post-collapsible-1f23fe7d.js} +6 -7
- package/dist/esm/post-collapsible.entry.js +4 -6
- package/dist/esm/post-components.js +3 -5
- package/dist/esm/{post-icon-302d1767.js → post-icon-2ec2127e.js} +6 -7
- package/dist/esm/post-icon.entry.js +4 -6
- package/dist/esm/{post-popover-5725afc7.js → post-popover-f6029c96.js} +5 -6
- package/dist/esm/post-popover.entry.js +3 -5
- package/dist/esm/{post-popovercontainer-1c050e83.js → post-popovercontainer-4a48161f.js} +118 -30
- package/dist/esm/post-popovercontainer.entry.js +3 -5
- package/dist/esm/{post-tab-header-ede9f078.js → post-tab-header-63676360.js} +5 -6
- package/dist/esm/post-tab-header.entry.js +3 -5
- package/dist/esm/{post-tab-panel-16796ee3.js → post-tab-panel-da24046f.js} +5 -6
- package/dist/esm/post-tab-panel.entry.js +3 -5
- package/dist/esm/{post-tabs-16f99043.js → post-tabs-21a5dfeb.js} +5 -6
- package/dist/esm/post-tabs.entry.js +3 -5
- package/dist/esm/{post-tooltip-03a6d578.js → post-tooltip-4f4f87b4.js} +1727 -356
- package/dist/esm/post-tooltip.entry.js +3 -5
- package/dist/post-components/index.esm.js +1 -2
- package/dist/post-components/p-0b46c9ba.entry.js +1 -0
- package/dist/post-components/p-10b4cf7a.js +2 -0
- package/dist/post-components/p-21557c34.js +15 -0
- package/dist/post-components/p-2737eaf5.js +1 -2
- package/dist/post-components/p-2b67b933.js +1 -0
- package/dist/post-components/p-440193f4.js +1 -2
- package/dist/post-components/p-47fd6eb0.js +1 -0
- package/dist/post-components/p-548ee455.entry.js +1 -0
- package/dist/post-components/p-63b6c589.entry.js +1 -0
- package/dist/post-components/p-66f346fb.entry.js +1 -0
- package/dist/post-components/p-73a7d4f9.js +1 -0
- package/dist/post-components/p-7973e3e4.js +1 -0
- package/dist/post-components/p-829f9eaf.entry.js +1 -0
- package/dist/post-components/p-82facb04.js +1 -0
- package/dist/post-components/p-8aa01298.js +1 -0
- package/dist/post-components/p-9170d84d.entry.js +1 -0
- package/dist/post-components/p-959f83c0.entry.js +1 -0
- package/dist/post-components/p-9bc7ed9e.entry.js +1 -0
- package/dist/post-components/p-a3fc7eaf.js +1 -0
- package/dist/post-components/p-a762b512.entry.js +1 -0
- package/dist/post-components/p-aee1750c.js +1 -0
- package/dist/post-components/p-b095519d.js +1 -2
- package/dist/post-components/p-c1c8f2ec.js +1 -0
- package/dist/post-components/p-ccd827a1.js +1 -0
- package/dist/post-components/p-d25e401c.entry.js +1 -0
- package/dist/post-components/p-e836df41.js +1 -0
- package/dist/post-components/p-f0e82e63.js +1 -0
- package/dist/post-components/p-f655856d.entry.js +1 -0
- package/dist/post-components/post-components.esm.js +1 -2
- package/dist/types/components/post-accordion/post-accordion.d.ts +3 -0
- package/dist/types/components/post-accordion-item/post-accordion-item.d.ts +4 -0
- package/dist/types/components/post-alert/post-alert.d.ts +5 -0
- package/dist/types/components/post-collapsible/post-collapsible.d.ts +3 -0
- package/dist/types/components/post-popover/post-popover.d.ts +3 -0
- package/dist/types/components/post-popovercontainer/post-popovercontainer.d.ts +3 -0
- package/dist/types/components/post-tab-header/post-tab-header.d.ts +3 -0
- package/dist/types/components/post-tab-panel/post-tab-panel.d.ts +3 -0
- package/dist/types/components/post-tabs/post-tabs.d.ts +4 -0
- package/dist/types/components/post-tooltip/post-tooltip.d.ts +3 -0
- package/dist/types/index.d.ts +1 -0
- package/package.json +13 -14
- package/dist/cjs/check-non-empty-eeaa8f77.js.map +0 -1
- package/dist/cjs/constants-238701d3.js.map +0 -1
- package/dist/cjs/fade-35a3633a.js.map +0 -1
- package/dist/cjs/index-13695f3f.js.map +0 -1
- package/dist/cjs/index-8c288b1a.js.map +0 -1
- package/dist/cjs/index.cjs.js.map +0 -1
- package/dist/cjs/loader.cjs.js.map +0 -1
- package/dist/cjs/package-8152e25e.js +0 -7
- package/dist/cjs/package-8152e25e.js.map +0 -1
- package/dist/cjs/post-accordion-9877919c.js.map +0 -1
- package/dist/cjs/post-accordion-item.cjs.entry.js.map +0 -1
- package/dist/cjs/post-accordion.cjs.entry.js.map +0 -1
- package/dist/cjs/post-alert-d87e6132.js.map +0 -1
- package/dist/cjs/post-alert.cjs.entry.js.map +0 -1
- package/dist/cjs/post-collapsible-ef0561b4.js.map +0 -1
- package/dist/cjs/post-collapsible.cjs.entry.js.map +0 -1
- package/dist/cjs/post-components.cjs.js.map +0 -1
- package/dist/cjs/post-icon-e9dcd643.js.map +0 -1
- package/dist/cjs/post-icon.cjs.entry.js.map +0 -1
- package/dist/cjs/post-popover-e114ebe7.js.map +0 -1
- package/dist/cjs/post-popover.cjs.entry.js.map +0 -1
- package/dist/cjs/post-popovercontainer-20fb22ee.js.map +0 -1
- package/dist/cjs/post-popovercontainer.cjs.entry.js.map +0 -1
- package/dist/cjs/post-tab-header-34c1cc21.js.map +0 -1
- package/dist/cjs/post-tab-header.cjs.entry.js.map +0 -1
- package/dist/cjs/post-tab-panel-95cf7092.js.map +0 -1
- package/dist/cjs/post-tab-panel.cjs.entry.js.map +0 -1
- package/dist/cjs/post-tabs-dbe7c341.js.map +0 -1
- package/dist/cjs/post-tabs.cjs.entry.js.map +0 -1
- package/dist/cjs/post-tooltip-659af1e3.js.map +0 -1
- package/dist/cjs/post-tooltip.cjs.entry.js.map +0 -1
- package/dist/collection/animations/collapse.js.map +0 -1
- package/dist/collection/animations/fade.js.map +0 -1
- package/dist/collection/animations/index.js.map +0 -1
- package/dist/collection/components/post-accordion/post-accordion.js.map +0 -1
- package/dist/collection/components/post-accordion-item/heading-levels.js.map +0 -1
- package/dist/collection/components/post-accordion-item/post-accordion-item.js.map +0 -1
- package/dist/collection/components/post-alert/alert-types.js.map +0 -1
- package/dist/collection/components/post-alert/post-alert.js.map +0 -1
- package/dist/collection/components/post-collapsible/post-collapsible.js.map +0 -1
- package/dist/collection/components/post-icon/post-icon.js.map +0 -1
- package/dist/collection/components/post-popover/post-popover.js.map +0 -1
- package/dist/collection/components/post-popovercontainer/post-popovercontainer.js.map +0 -1
- package/dist/collection/components/post-tab-header/post-tab-header.js.map +0 -1
- package/dist/collection/components/post-tab-panel/post-tab-panel.js.map +0 -1
- package/dist/collection/components/post-tabs/post-tabs.js.map +0 -1
- package/dist/collection/components/post-tooltip/post-tooltip.js.map +0 -1
- package/dist/collection/components/post-tooltip/types.js.map +0 -1
- package/dist/collection/index.js.map +0 -1
- package/dist/collection/utils/index.js.map +0 -1
- package/dist/collection/utils/is-motion-reduced.js.map +0 -1
- package/dist/collection/utils/property-checkers/check-non-empty.js.map +0 -1
- package/dist/collection/utils/property-checkers/check-one-of.js.map +0 -1
- package/dist/collection/utils/property-checkers/check-pattern.js.map +0 -1
- package/dist/collection/utils/property-checkers/check-type.js.map +0 -1
- package/dist/collection/utils/property-checkers/constants.js.map +0 -1
- package/dist/collection/utils/property-checkers/empty-or.js.map +0 -1
- package/dist/collection/utils/property-checkers/index.js.map +0 -1
- package/dist/components/check-non-empty.js.map +0 -1
- package/dist/components/constants.js.map +0 -1
- package/dist/components/fade.js.map +0 -1
- package/dist/components/index.js.map +0 -1
- package/dist/components/index2.js.map +0 -1
- package/dist/components/package.js.map +0 -1
- package/dist/components/post-accordion-item.js.map +0 -1
- package/dist/components/post-accordion.js.map +0 -1
- package/dist/components/post-accordion2.js.map +0 -1
- package/dist/components/post-alert.js.map +0 -1
- package/dist/components/post-alert2.js.map +0 -1
- package/dist/components/post-collapsible.js.map +0 -1
- package/dist/components/post-collapsible2.js.map +0 -1
- package/dist/components/post-icon.js.map +0 -1
- package/dist/components/post-icon2.js.map +0 -1
- package/dist/components/post-popover.js.map +0 -1
- package/dist/components/post-popover2.js.map +0 -1
- package/dist/components/post-popovercontainer.js.map +0 -1
- package/dist/components/post-popovercontainer2.js.map +0 -1
- package/dist/components/post-tab-header.js.map +0 -1
- package/dist/components/post-tab-header2.js.map +0 -1
- package/dist/components/post-tab-panel.js.map +0 -1
- package/dist/components/post-tab-panel2.js.map +0 -1
- package/dist/components/post-tabs.js.map +0 -1
- package/dist/components/post-tabs2.js.map +0 -1
- package/dist/components/post-tooltip.js.map +0 -1
- package/dist/components/post-tooltip2.js.map +0 -1
- package/dist/esm/check-non-empty-58bd6b17.js.map +0 -1
- package/dist/esm/constants-8d548297.js.map +0 -1
- package/dist/esm/fade-7fd71785.js.map +0 -1
- package/dist/esm/index-1427953c.js.map +0 -1
- package/dist/esm/index-74cf5c9d.js.map +0 -1
- package/dist/esm/index.js.map +0 -1
- package/dist/esm/loader.js.map +0 -1
- package/dist/esm/package-af0ef704.js +0 -5
- package/dist/esm/package-af0ef704.js.map +0 -1
- package/dist/esm/post-accordion-3b137073.js.map +0 -1
- package/dist/esm/post-accordion-item.entry.js.map +0 -1
- package/dist/esm/post-accordion.entry.js.map +0 -1
- package/dist/esm/post-alert-0dcc6ac7.js.map +0 -1
- package/dist/esm/post-alert.entry.js.map +0 -1
- package/dist/esm/post-collapsible-a418570f.js.map +0 -1
- package/dist/esm/post-collapsible.entry.js.map +0 -1
- package/dist/esm/post-components.js.map +0 -1
- package/dist/esm/post-icon-302d1767.js.map +0 -1
- package/dist/esm/post-icon.entry.js.map +0 -1
- package/dist/esm/post-popover-5725afc7.js.map +0 -1
- package/dist/esm/post-popover.entry.js.map +0 -1
- package/dist/esm/post-popovercontainer-1c050e83.js.map +0 -1
- package/dist/esm/post-popovercontainer.entry.js.map +0 -1
- package/dist/esm/post-tab-header-ede9f078.js.map +0 -1
- package/dist/esm/post-tab-header.entry.js.map +0 -1
- package/dist/esm/post-tab-panel-16796ee3.js.map +0 -1
- package/dist/esm/post-tab-panel.entry.js.map +0 -1
- package/dist/esm/post-tabs-16f99043.js.map +0 -1
- package/dist/esm/post-tabs.entry.js.map +0 -1
- package/dist/esm/post-tooltip-03a6d578.js.map +0 -1
- package/dist/esm/post-tooltip.entry.js.map +0 -1
- package/dist/post-components/index.esm.js.map +0 -1
- package/dist/post-components/p-06566f88.js +0 -2
- package/dist/post-components/p-06566f88.js.map +0 -1
- package/dist/post-components/p-12a0f4b9.js +0 -2
- package/dist/post-components/p-12a0f4b9.js.map +0 -1
- package/dist/post-components/p-26dad3c3.js +0 -2
- package/dist/post-components/p-26dad3c3.js.map +0 -1
- package/dist/post-components/p-2737eaf5.js.map +0 -1
- package/dist/post-components/p-299a3e41.entry.js +0 -2
- package/dist/post-components/p-299a3e41.entry.js.map +0 -1
- package/dist/post-components/p-3241987a.entry.js +0 -2
- package/dist/post-components/p-3241987a.entry.js.map +0 -1
- package/dist/post-components/p-3fd14a00.js +0 -2
- package/dist/post-components/p-3fd14a00.js.map +0 -1
- package/dist/post-components/p-440193f4.js.map +0 -1
- package/dist/post-components/p-4b950d70.js +0 -2
- package/dist/post-components/p-4b950d70.js.map +0 -1
- package/dist/post-components/p-503ac49b.entry.js +0 -2
- package/dist/post-components/p-503ac49b.entry.js.map +0 -1
- package/dist/post-components/p-6391f970.js +0 -2
- package/dist/post-components/p-6391f970.js.map +0 -1
- package/dist/post-components/p-6d0226cd.entry.js +0 -2
- package/dist/post-components/p-6d0226cd.entry.js.map +0 -1
- package/dist/post-components/p-775859cc.entry.js +0 -2
- package/dist/post-components/p-775859cc.entry.js.map +0 -1
- package/dist/post-components/p-78589fac.entry.js +0 -2
- package/dist/post-components/p-78589fac.entry.js.map +0 -1
- package/dist/post-components/p-803284de.js +0 -9
- package/dist/post-components/p-803284de.js.map +0 -1
- package/dist/post-components/p-83cedb31.entry.js +0 -2
- package/dist/post-components/p-83cedb31.entry.js.map +0 -1
- package/dist/post-components/p-88481640.entry.js +0 -2
- package/dist/post-components/p-88481640.entry.js.map +0 -1
- package/dist/post-components/p-8f37921c.entry.js +0 -2
- package/dist/post-components/p-8f37921c.entry.js.map +0 -1
- package/dist/post-components/p-91236c61.js +0 -2
- package/dist/post-components/p-91236c61.js.map +0 -1
- package/dist/post-components/p-91f2291a.js +0 -2
- package/dist/post-components/p-91f2291a.js.map +0 -1
- package/dist/post-components/p-93ab273b.js +0 -2
- package/dist/post-components/p-93ab273b.js.map +0 -1
- package/dist/post-components/p-96f4ebc4.js +0 -2
- package/dist/post-components/p-96f4ebc4.js.map +0 -1
- package/dist/post-components/p-b095519d.js.map +0 -1
- package/dist/post-components/p-b4f01350.js +0 -3
- package/dist/post-components/p-b4f01350.js.map +0 -1
- package/dist/post-components/p-d96fbe33.entry.js +0 -2
- package/dist/post-components/p-d96fbe33.entry.js.map +0 -1
- package/dist/post-components/p-de4704fc.js +0 -2
- package/dist/post-components/p-de4704fc.js.map +0 -1
- package/dist/post-components/p-fe7650bc.entry.js +0 -2
- package/dist/post-components/p-fe7650bc.entry.js.map +0 -1
- package/dist/post-components/post-components.esm.js.map +0 -1
|
@@ -1,10 +1,30 @@
|
|
|
1
1
|
import { proxyCustomElement, HTMLElement as HTMLElement$1, h, Host } from '@stencil/core/internal/client';
|
|
2
|
-
import { v as version$
|
|
2
|
+
import { v as version$1 } from './package.js';
|
|
3
3
|
import { d as defineCustomElement$1 } from './post-popovercontainer2.js';
|
|
4
4
|
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
function
|
|
5
|
+
var commonjsGlobal = typeof globalThis !== 'undefined' ? globalThis : typeof window !== 'undefined' ? window : typeof global !== 'undefined' ? global : typeof self !== 'undefined' ? self : {};
|
|
6
|
+
|
|
7
|
+
function getDefaultExportFromCjs (x) {
|
|
8
|
+
return x && x.__esModule && Object.prototype.hasOwnProperty.call(x, 'default') ? x['default'] : x;
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
var focusable = {exports: {}};
|
|
12
|
+
|
|
13
|
+
var focusRelevant = {exports: {}};
|
|
14
|
+
|
|
15
|
+
var parents = {exports: {}};
|
|
16
|
+
|
|
17
|
+
var contextToElement = {exports: {}};
|
|
18
|
+
|
|
19
|
+
var nodeArray = {exports: {}};
|
|
20
|
+
|
|
21
|
+
(function (module, exports) {
|
|
22
|
+
|
|
23
|
+
Object.defineProperty(exports, "__esModule", {
|
|
24
|
+
value: true
|
|
25
|
+
});
|
|
26
|
+
|
|
27
|
+
exports.default = function (input) {
|
|
8
28
|
if (!input) {
|
|
9
29
|
return [];
|
|
10
30
|
}
|
|
@@ -27,16 +47,28 @@ function nodeArray (input) {
|
|
|
27
47
|
}
|
|
28
48
|
|
|
29
49
|
throw new TypeError('unexpected input ' + String(input));
|
|
30
|
-
}
|
|
50
|
+
};
|
|
31
51
|
|
|
32
|
-
|
|
52
|
+
module.exports = exports['default'];
|
|
53
|
+
// input may be undefined, selector-tring, Node, NodeList, HTMLCollection, array of Nodes
|
|
54
|
+
// yes, to some extent this is a bad replica of jQuery's constructor function
|
|
55
|
+
|
|
56
|
+
}(nodeArray, nodeArray.exports));
|
|
57
|
+
|
|
58
|
+
(function (module, exports) {
|
|
59
|
+
|
|
60
|
+
Object.defineProperty(exports, "__esModule", {
|
|
61
|
+
value: true
|
|
62
|
+
});
|
|
63
|
+
|
|
64
|
+
exports.default = function (_ref) {
|
|
33
65
|
var context = _ref.context,
|
|
34
66
|
_ref$label = _ref.label,
|
|
35
67
|
label = _ref$label === undefined ? 'context-to-element' : _ref$label,
|
|
36
68
|
resolveDocument = _ref.resolveDocument,
|
|
37
69
|
defaultToDocument = _ref.defaultToDocument;
|
|
38
70
|
|
|
39
|
-
var element =
|
|
71
|
+
var element = (0, _nodeArray2.default)(context)[0];
|
|
40
72
|
|
|
41
73
|
if (resolveDocument && element && element.nodeType === Node.DOCUMENT_NODE) {
|
|
42
74
|
element = element.documentElement;
|
|
@@ -55,16 +87,30 @@ function contextToElement (_ref) {
|
|
|
55
87
|
}
|
|
56
88
|
|
|
57
89
|
return element;
|
|
58
|
-
}
|
|
90
|
+
};
|
|
59
91
|
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
92
|
+
var _nodeArray = nodeArray.exports;
|
|
93
|
+
|
|
94
|
+
var _nodeArray2 = _interopRequireDefault(_nodeArray);
|
|
95
|
+
|
|
96
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
97
|
+
|
|
98
|
+
module.exports = exports['default'];
|
|
99
|
+
|
|
100
|
+
}(contextToElement, contextToElement.exports));
|
|
101
|
+
|
|
102
|
+
(function (module, exports) {
|
|
103
|
+
|
|
104
|
+
Object.defineProperty(exports, "__esModule", {
|
|
105
|
+
value: true
|
|
106
|
+
});
|
|
107
|
+
|
|
108
|
+
exports.default = function () {
|
|
63
109
|
var _ref = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {},
|
|
64
110
|
context = _ref.context;
|
|
65
111
|
|
|
66
112
|
var list = [];
|
|
67
|
-
var element =
|
|
113
|
+
var element = (0, _contextToElement2.default)({
|
|
68
114
|
label: 'get/parents',
|
|
69
115
|
context: context
|
|
70
116
|
});
|
|
@@ -79,7 +125,29 @@ function getParents () {
|
|
|
79
125
|
}
|
|
80
126
|
|
|
81
127
|
return list;
|
|
82
|
-
}
|
|
128
|
+
};
|
|
129
|
+
|
|
130
|
+
var _contextToElement = contextToElement.exports;
|
|
131
|
+
|
|
132
|
+
var _contextToElement2 = _interopRequireDefault(_contextToElement);
|
|
133
|
+
|
|
134
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
135
|
+
|
|
136
|
+
module.exports = exports['default'];
|
|
137
|
+
|
|
138
|
+
// [elem, elem.parent, elem.parent.parent, …, html]
|
|
139
|
+
// will not contain the shadowRoot (DOCUMENT_FRAGMENT_NODE) and shadowHost
|
|
140
|
+
|
|
141
|
+
}(parents, parents.exports));
|
|
142
|
+
|
|
143
|
+
var elementMatches = {exports: {}};
|
|
144
|
+
|
|
145
|
+
(function (module, exports) {
|
|
146
|
+
|
|
147
|
+
Object.defineProperty(exports, "__esModule", {
|
|
148
|
+
value: true
|
|
149
|
+
});
|
|
150
|
+
exports.default = elementMatches;
|
|
83
151
|
|
|
84
152
|
// Element.prototype.matches may be available at a different name
|
|
85
153
|
// https://developer.mozilla.org/en/docs/Web/API/Element/matches
|
|
@@ -105,24 +173,30 @@ function elementMatches(element, selector) {
|
|
|
105
173
|
|
|
106
174
|
return element[name](selector);
|
|
107
175
|
}
|
|
176
|
+
module.exports = exports['default'];
|
|
108
177
|
|
|
109
|
-
|
|
178
|
+
}(elementMatches, elementMatches.exports));
|
|
110
179
|
|
|
111
|
-
|
|
112
|
-
return module = {
|
|
113
|
-
path: basedir,
|
|
114
|
-
exports: {},
|
|
115
|
-
require: function (path, base) {
|
|
116
|
-
return commonjsRequire();
|
|
117
|
-
}
|
|
118
|
-
}, fn(module, module.exports), module.exports;
|
|
119
|
-
}
|
|
180
|
+
var tabindexValue = {exports: {}};
|
|
120
181
|
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
}
|
|
182
|
+
var validTabindex = {exports: {}};
|
|
183
|
+
|
|
184
|
+
var supports = {exports: {}};
|
|
185
|
+
|
|
186
|
+
var detectFocus = {exports: {}};
|
|
187
|
+
|
|
188
|
+
var platform$1 = {exports: {}};
|
|
124
189
|
|
|
125
|
-
var platform
|
|
190
|
+
var platform = {exports: {}};
|
|
191
|
+
|
|
192
|
+
/*!
|
|
193
|
+
* Platform.js <https://mths.be/platform>
|
|
194
|
+
* Copyright 2014-2016 Benjamin Tan <https://demoneaux.github.io/>
|
|
195
|
+
* Copyright 2011-2013 John-David Dalton <http://allyoucanleet.com/>
|
|
196
|
+
* Available under MIT license <https://mths.be/mit>
|
|
197
|
+
*/
|
|
198
|
+
|
|
199
|
+
(function (module, exports) {
|
|
126
200
|
(function() {
|
|
127
201
|
|
|
128
202
|
/** Used to determine if values are of the language type `Object`. */
|
|
@@ -138,10 +212,10 @@ var platform$1 = createCommonjsModule(function (module, exports) {
|
|
|
138
212
|
var oldRoot = root;
|
|
139
213
|
|
|
140
214
|
/** Detect free variable `exports`. */
|
|
141
|
-
var freeExports =
|
|
215
|
+
var freeExports = exports;
|
|
142
216
|
|
|
143
217
|
/** Detect free variable `module`. */
|
|
144
|
-
var freeModule =
|
|
218
|
+
var freeModule = module && !module.nodeType && module;
|
|
145
219
|
|
|
146
220
|
/** Detect free variable `global` from Node.js or Browserified code and use it as `root`. */
|
|
147
221
|
var freeGlobal = freeExports && freeModule && typeof commonjsGlobal == 'object' && commonjsGlobal;
|
|
@@ -1258,31 +1332,49 @@ var platform$1 = createCommonjsModule(function (module, exports) {
|
|
|
1258
1332
|
root.platform = platform;
|
|
1259
1333
|
}
|
|
1260
1334
|
}.call(commonjsGlobal));
|
|
1335
|
+
}(platform, platform.exports));
|
|
1336
|
+
|
|
1337
|
+
(function (module, exports) {
|
|
1338
|
+
|
|
1339
|
+
Object.defineProperty(exports, "__esModule", {
|
|
1340
|
+
value: true
|
|
1261
1341
|
});
|
|
1262
1342
|
|
|
1343
|
+
var _platform2 = platform.exports;
|
|
1344
|
+
|
|
1345
|
+
var _platform3 = _interopRequireDefault(_platform2);
|
|
1346
|
+
|
|
1347
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
1348
|
+
|
|
1263
1349
|
// deep clone of original platform
|
|
1264
|
-
var platform = JSON.parse(JSON.stringify(
|
|
1350
|
+
var platform$1 = JSON.parse(JSON.stringify(_platform3.default));
|
|
1265
1351
|
|
|
1266
1352
|
// operating system
|
|
1267
|
-
|
|
1353
|
+
|
|
1354
|
+
// sugar for https://github.com/bestiejs/platform.js
|
|
1355
|
+
// make sure to ALWAYS reference the layout engine,
|
|
1356
|
+
// even if it is not necessary for the condition,
|
|
1357
|
+
// as this makes grepping for this stuff simpler
|
|
1358
|
+
|
|
1359
|
+
var os = platform$1.os.family || '';
|
|
1268
1360
|
var ANDROID = os === 'Android';
|
|
1269
1361
|
var WINDOWS = os.slice(0, 7) === 'Windows';
|
|
1270
1362
|
var OSX = os === 'OS X';
|
|
1271
1363
|
var IOS = os === 'iOS';
|
|
1272
1364
|
|
|
1273
1365
|
// layout
|
|
1274
|
-
var BLINK = platform.layout === 'Blink';
|
|
1275
|
-
var GECKO = platform.layout === 'Gecko';
|
|
1276
|
-
var TRIDENT = platform.layout === 'Trident';
|
|
1277
|
-
var EDGE = platform.layout === 'EdgeHTML';
|
|
1278
|
-
var WEBKIT = platform.layout === 'WebKit';
|
|
1366
|
+
var BLINK = platform$1.layout === 'Blink';
|
|
1367
|
+
var GECKO = platform$1.layout === 'Gecko';
|
|
1368
|
+
var TRIDENT = platform$1.layout === 'Trident';
|
|
1369
|
+
var EDGE = platform$1.layout === 'EdgeHTML';
|
|
1370
|
+
var WEBKIT = platform$1.layout === 'WebKit';
|
|
1279
1371
|
|
|
1280
1372
|
// browser version (not layout engine version!)
|
|
1281
|
-
var version
|
|
1282
|
-
var majorVersion = Math.floor(version
|
|
1283
|
-
platform.majorVersion = majorVersion;
|
|
1373
|
+
var version = parseFloat(platform$1.version);
|
|
1374
|
+
var majorVersion = Math.floor(version);
|
|
1375
|
+
platform$1.majorVersion = majorVersion;
|
|
1284
1376
|
|
|
1285
|
-
platform.is = {
|
|
1377
|
+
platform$1.is = {
|
|
1286
1378
|
// operating system
|
|
1287
1379
|
ANDROID: ANDROID,
|
|
1288
1380
|
WINDOWS: WINDOWS,
|
|
@@ -1300,6 +1392,35 @@ platform.is = {
|
|
|
1300
1392
|
IE11: TRIDENT && majorVersion === 11
|
|
1301
1393
|
};
|
|
1302
1394
|
|
|
1395
|
+
exports.default = platform$1;
|
|
1396
|
+
module.exports = exports['default'];
|
|
1397
|
+
|
|
1398
|
+
}(platform$1, platform$1.exports));
|
|
1399
|
+
|
|
1400
|
+
(function (module, exports) {
|
|
1401
|
+
|
|
1402
|
+
Object.defineProperty(exports, "__esModule", {
|
|
1403
|
+
value: true
|
|
1404
|
+
});
|
|
1405
|
+
|
|
1406
|
+
exports.default = function (tests) {
|
|
1407
|
+
var data = before();
|
|
1408
|
+
|
|
1409
|
+
var results = {};
|
|
1410
|
+
Object.keys(tests).map(function (key) {
|
|
1411
|
+
results[key] = test(data, tests[key]);
|
|
1412
|
+
});
|
|
1413
|
+
|
|
1414
|
+
after(data);
|
|
1415
|
+
return results;
|
|
1416
|
+
};
|
|
1417
|
+
|
|
1418
|
+
var _platform = platform$1.exports;
|
|
1419
|
+
|
|
1420
|
+
var _platform2 = _interopRequireDefault(_platform);
|
|
1421
|
+
|
|
1422
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
1423
|
+
|
|
1303
1424
|
function before() {
|
|
1304
1425
|
var data = {
|
|
1305
1426
|
// remember what had focus to restore after test
|
|
@@ -1367,7 +1488,7 @@ function after(data) {
|
|
|
1367
1488
|
// restore focus to what it was before test and cleanup
|
|
1368
1489
|
if (data.activeElement === document.body) {
|
|
1369
1490
|
document.activeElement && document.activeElement.blur && document.activeElement.blur();
|
|
1370
|
-
if (
|
|
1491
|
+
if (_platform2.default.is.IE10) {
|
|
1371
1492
|
// IE10 does not redirect focus to <body> when the activeElement is removed
|
|
1372
1493
|
document.body.focus();
|
|
1373
1494
|
}
|
|
@@ -1384,28 +1505,38 @@ function after(data) {
|
|
|
1384
1505
|
document.body.scrollLeft = data.bodyScrollLeft;
|
|
1385
1506
|
}
|
|
1386
1507
|
|
|
1387
|
-
|
|
1388
|
-
var data = before();
|
|
1508
|
+
module.exports = exports['default'];
|
|
1389
1509
|
|
|
1390
|
-
|
|
1391
|
-
Object.keys(tests).map(function (key) {
|
|
1392
|
-
results[key] = test(data, tests[key]);
|
|
1393
|
-
});
|
|
1510
|
+
}(detectFocus, detectFocus.exports));
|
|
1394
1511
|
|
|
1395
|
-
|
|
1396
|
-
|
|
1397
|
-
}
|
|
1512
|
+
var supportsCache = {exports: {}};
|
|
1513
|
+
|
|
1514
|
+
var version = {exports: {}};
|
|
1515
|
+
|
|
1516
|
+
(function (module, exports) {
|
|
1517
|
+
|
|
1518
|
+
Object.defineProperty(exports, "__esModule", {
|
|
1519
|
+
value: true
|
|
1520
|
+
});
|
|
1398
1521
|
|
|
1399
1522
|
// this file is overwritten by `npm run build:pre`
|
|
1400
1523
|
var version = '1.4.1';
|
|
1524
|
+
exports.default = version;
|
|
1525
|
+
module.exports = exports['default'];
|
|
1401
1526
|
|
|
1402
|
-
|
|
1403
|
-
Facility to cache test results in localStorage.
|
|
1527
|
+
}(version, version.exports));
|
|
1404
1528
|
|
|
1405
|
-
|
|
1406
|
-
|
|
1407
|
-
|
|
1408
|
-
|
|
1529
|
+
(function (module, exports) {
|
|
1530
|
+
|
|
1531
|
+
Object.defineProperty(exports, "__esModule", {
|
|
1532
|
+
value: true
|
|
1533
|
+
});
|
|
1534
|
+
|
|
1535
|
+
var _version = version.exports;
|
|
1536
|
+
|
|
1537
|
+
var _version2 = _interopRequireDefault(_version);
|
|
1538
|
+
|
|
1539
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
1409
1540
|
|
|
1410
1541
|
function readLocalStorage(key) {
|
|
1411
1542
|
// allow reading from storage to retrieve previous support results
|
|
@@ -1420,7 +1551,13 @@ function readLocalStorage(key) {
|
|
|
1420
1551
|
}
|
|
1421
1552
|
|
|
1422
1553
|
return data;
|
|
1423
|
-
}
|
|
1554
|
+
} /*
|
|
1555
|
+
Facility to cache test results in localStorage.
|
|
1556
|
+
|
|
1557
|
+
USAGE:
|
|
1558
|
+
cache.get('key');
|
|
1559
|
+
cache.set('key', 'value');
|
|
1560
|
+
*/
|
|
1424
1561
|
|
|
1425
1562
|
function writeLocalStorage(key, value) {
|
|
1426
1563
|
if (!document.hasFocus()) {
|
|
@@ -1448,14 +1585,14 @@ var cacheKey = 'ally-supports-cache';
|
|
|
1448
1585
|
var cache = readLocalStorage(cacheKey);
|
|
1449
1586
|
|
|
1450
1587
|
// update the cache if ally or the user agent changed (newer version, etc)
|
|
1451
|
-
if (cache.userAgent !== userAgent || cache.version !==
|
|
1588
|
+
if (cache.userAgent !== userAgent || cache.version !== _version2.default) {
|
|
1452
1589
|
cache = {};
|
|
1453
1590
|
}
|
|
1454
1591
|
|
|
1455
1592
|
cache.userAgent = userAgent;
|
|
1456
|
-
cache.version =
|
|
1593
|
+
cache.version = _version2.default;
|
|
1457
1594
|
|
|
1458
|
-
|
|
1595
|
+
exports.default = {
|
|
1459
1596
|
get: function get() {
|
|
1460
1597
|
return cache;
|
|
1461
1598
|
},
|
|
@@ -1468,8 +1605,19 @@ const cache$1 = {
|
|
|
1468
1605
|
writeLocalStorage(cacheKey, cache);
|
|
1469
1606
|
}
|
|
1470
1607
|
};
|
|
1608
|
+
module.exports = exports['default'];
|
|
1471
1609
|
|
|
1472
|
-
|
|
1610
|
+
}(supportsCache, supportsCache.exports));
|
|
1611
|
+
|
|
1612
|
+
var cssShadowPiercingDeepCombinator = {exports: {}};
|
|
1613
|
+
|
|
1614
|
+
(function (module, exports) {
|
|
1615
|
+
|
|
1616
|
+
Object.defineProperty(exports, "__esModule", {
|
|
1617
|
+
value: true
|
|
1618
|
+
});
|
|
1619
|
+
|
|
1620
|
+
exports.default = function () {
|
|
1473
1621
|
var combinator = void 0;
|
|
1474
1622
|
|
|
1475
1623
|
// see https://dev.w3.org/csswg/css-scoping-1/#deep-combinator
|
|
@@ -1490,30 +1638,79 @@ function cssShadowPiercingDeepCombinator () {
|
|
|
1490
1638
|
}
|
|
1491
1639
|
|
|
1492
1640
|
return combinator;
|
|
1493
|
-
}
|
|
1641
|
+
};
|
|
1642
|
+
|
|
1643
|
+
module.exports = exports['default'];
|
|
1494
1644
|
|
|
1495
|
-
|
|
1645
|
+
}(cssShadowPiercingDeepCombinator, cssShadowPiercingDeepCombinator.exports));
|
|
1646
|
+
|
|
1647
|
+
var focusAreaImgTabindex = {exports: {}};
|
|
1648
|
+
|
|
1649
|
+
var gif = {exports: {}};
|
|
1650
|
+
|
|
1651
|
+
(function (module, exports) {
|
|
1652
|
+
|
|
1653
|
+
Object.defineProperty(exports, "__esModule", {
|
|
1654
|
+
value: true
|
|
1655
|
+
});
|
|
1656
|
+
exports.default = 'data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7';
|
|
1657
|
+
module.exports = exports['default'];
|
|
1658
|
+
|
|
1659
|
+
}(gif, gif.exports));
|
|
1660
|
+
|
|
1661
|
+
(function (module, exports) {
|
|
1662
|
+
|
|
1663
|
+
Object.defineProperty(exports, "__esModule", {
|
|
1664
|
+
value: true
|
|
1665
|
+
});
|
|
1666
|
+
|
|
1667
|
+
var _gif = gif.exports;
|
|
1668
|
+
|
|
1669
|
+
var _gif2 = _interopRequireDefault(_gif);
|
|
1670
|
+
|
|
1671
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
1496
1672
|
|
|
1497
1673
|
// https://developer.mozilla.org/en-US/docs/Web/HTML/Element/img#attr-usemap
|
|
1498
|
-
|
|
1674
|
+
exports.default = {
|
|
1499
1675
|
element: 'div',
|
|
1500
1676
|
mutate: function mutate(element) {
|
|
1501
|
-
element.innerHTML = '<map name="image-map-tabindex-test">' + '<area shape="rect" coords="63,19,144,45"></map>' + '<img usemap="#image-map-tabindex-test" tabindex="-1" alt="" src="' +
|
|
1677
|
+
element.innerHTML = '<map name="image-map-tabindex-test">' + '<area shape="rect" coords="63,19,144,45"></map>' + '<img usemap="#image-map-tabindex-test" tabindex="-1" alt="" src="' + _gif2.default + '">';
|
|
1502
1678
|
|
|
1503
1679
|
return element.querySelector('area');
|
|
1504
1680
|
}
|
|
1505
1681
|
};
|
|
1682
|
+
module.exports = exports['default'];
|
|
1683
|
+
|
|
1684
|
+
}(focusAreaImgTabindex, focusAreaImgTabindex.exports));
|
|
1685
|
+
|
|
1686
|
+
var focusAreaTabindex = {exports: {}};
|
|
1687
|
+
|
|
1688
|
+
(function (module, exports) {
|
|
1689
|
+
|
|
1690
|
+
Object.defineProperty(exports, "__esModule", {
|
|
1691
|
+
value: true
|
|
1692
|
+
});
|
|
1693
|
+
|
|
1694
|
+
var _gif = gif.exports;
|
|
1695
|
+
|
|
1696
|
+
var _gif2 = _interopRequireDefault(_gif);
|
|
1697
|
+
|
|
1698
|
+
var _platform = platform$1.exports;
|
|
1699
|
+
|
|
1700
|
+
var _platform2 = _interopRequireDefault(_platform);
|
|
1701
|
+
|
|
1702
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
1506
1703
|
|
|
1507
1704
|
// https://developer.mozilla.org/en-US/docs/Web/HTML/Element/img#attr-usemap
|
|
1508
|
-
|
|
1705
|
+
exports.default = {
|
|
1509
1706
|
element: 'div',
|
|
1510
1707
|
mutate: function mutate(element) {
|
|
1511
|
-
element.innerHTML = '<map name="image-map-tabindex-test">' + '<area href="#void" tabindex="-1" shape="rect" coords="63,19,144,45"></map>' + '<img usemap="#image-map-tabindex-test" alt="" src="' +
|
|
1708
|
+
element.innerHTML = '<map name="image-map-tabindex-test">' + '<area href="#void" tabindex="-1" shape="rect" coords="63,19,144,45"></map>' + '<img usemap="#image-map-tabindex-test" alt="" src="' + _gif2.default + '">';
|
|
1512
1709
|
|
|
1513
1710
|
return false;
|
|
1514
1711
|
},
|
|
1515
1712
|
validate: function validate(element, focusTarget, _document) {
|
|
1516
|
-
if (
|
|
1713
|
+
if (_platform2.default.is.GECKO) {
|
|
1517
1714
|
// fixes https://github.com/medialize/ally.js/issues/35
|
|
1518
1715
|
// Firefox loads the DataURI asynchronously, causing a false-negative
|
|
1519
1716
|
return true;
|
|
@@ -1524,17 +1721,38 @@ const focusAreaTabindex = {
|
|
|
1524
1721
|
return _document.activeElement === focus;
|
|
1525
1722
|
}
|
|
1526
1723
|
};
|
|
1724
|
+
module.exports = exports['default'];
|
|
1725
|
+
|
|
1726
|
+
}(focusAreaTabindex, focusAreaTabindex.exports));
|
|
1727
|
+
|
|
1728
|
+
var focusAreaWithoutHref = {exports: {}};
|
|
1729
|
+
|
|
1730
|
+
(function (module, exports) {
|
|
1731
|
+
|
|
1732
|
+
Object.defineProperty(exports, "__esModule", {
|
|
1733
|
+
value: true
|
|
1734
|
+
});
|
|
1735
|
+
|
|
1736
|
+
var _gif = gif.exports;
|
|
1737
|
+
|
|
1738
|
+
var _gif2 = _interopRequireDefault(_gif);
|
|
1739
|
+
|
|
1740
|
+
var _platform = platform$1.exports;
|
|
1741
|
+
|
|
1742
|
+
var _platform2 = _interopRequireDefault(_platform);
|
|
1743
|
+
|
|
1744
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
1527
1745
|
|
|
1528
1746
|
// https://developer.mozilla.org/en-US/docs/Web/HTML/Element/img#attr-usemap
|
|
1529
|
-
|
|
1747
|
+
exports.default = {
|
|
1530
1748
|
element: 'div',
|
|
1531
1749
|
mutate: function mutate(element) {
|
|
1532
|
-
element.innerHTML = '<map name="image-map-area-href-test">' + '<area shape="rect" coords="63,19,144,45"></map>' + '<img usemap="#image-map-area-href-test" alt="" src="' +
|
|
1750
|
+
element.innerHTML = '<map name="image-map-area-href-test">' + '<area shape="rect" coords="63,19,144,45"></map>' + '<img usemap="#image-map-area-href-test" alt="" src="' + _gif2.default + '">';
|
|
1533
1751
|
|
|
1534
1752
|
return element.querySelector('area');
|
|
1535
1753
|
},
|
|
1536
1754
|
validate: function validate(element, focusTarget, _document) {
|
|
1537
|
-
if (
|
|
1755
|
+
if (_platform2.default.is.GECKO) {
|
|
1538
1756
|
// fixes https://github.com/medialize/ally.js/issues/35
|
|
1539
1757
|
// Firefox loads the DataURI asynchronously, causing a false-negative
|
|
1540
1758
|
return true;
|
|
@@ -1543,35 +1761,111 @@ const focusAreaWithoutHref = {
|
|
|
1543
1761
|
return _document.activeElement === focusTarget;
|
|
1544
1762
|
}
|
|
1545
1763
|
};
|
|
1764
|
+
module.exports = exports['default'];
|
|
1765
|
+
|
|
1766
|
+
}(focusAreaWithoutHref, focusAreaWithoutHref.exports));
|
|
1767
|
+
|
|
1768
|
+
var focusAudioWithoutControls = {exports: {}};
|
|
1769
|
+
|
|
1770
|
+
var mp3 = {exports: {}};
|
|
1771
|
+
|
|
1772
|
+
(function (module, exports) {
|
|
1773
|
+
|
|
1774
|
+
Object.defineProperty(exports, "__esModule", {
|
|
1775
|
+
value: true
|
|
1776
|
+
});
|
|
1777
|
+
|
|
1778
|
+
var _gif = gif.exports;
|
|
1779
|
+
|
|
1780
|
+
var _gif2 = _interopRequireDefault(_gif);
|
|
1781
|
+
|
|
1782
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
1783
|
+
|
|
1784
|
+
exports.default = _gif2.default;
|
|
1785
|
+
// export default 'data:audio/mp3;base64,audio-focus-test';
|
|
1786
|
+
|
|
1787
|
+
module.exports = exports['default'];
|
|
1788
|
+
|
|
1789
|
+
}(mp3, mp3.exports));
|
|
1790
|
+
|
|
1791
|
+
(function (module, exports) {
|
|
1792
|
+
|
|
1793
|
+
Object.defineProperty(exports, "__esModule", {
|
|
1794
|
+
value: true
|
|
1795
|
+
});
|
|
1796
|
+
|
|
1797
|
+
var _mp = mp3.exports;
|
|
1546
1798
|
|
|
1547
|
-
|
|
1799
|
+
var _mp2 = _interopRequireDefault(_mp);
|
|
1800
|
+
|
|
1801
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
1802
|
+
|
|
1803
|
+
exports.default = {
|
|
1548
1804
|
name: 'can-focus-audio-without-controls',
|
|
1549
1805
|
element: 'audio',
|
|
1550
1806
|
mutate: function mutate(element) {
|
|
1551
1807
|
try {
|
|
1552
1808
|
// invalid media file can trigger warning in console, data-uri to prevent HTTP request
|
|
1553
|
-
element.setAttribute('src',
|
|
1809
|
+
element.setAttribute('src', _mp2.default);
|
|
1554
1810
|
} catch (e) {
|
|
1555
1811
|
// IE9 may throw "Error: Not implemented"
|
|
1556
1812
|
}
|
|
1557
1813
|
}
|
|
1558
1814
|
};
|
|
1815
|
+
module.exports = exports['default'];
|
|
1816
|
+
|
|
1817
|
+
}(focusAudioWithoutControls, focusAudioWithoutControls.exports));
|
|
1818
|
+
|
|
1819
|
+
var focusBrokenImageMap = {exports: {}};
|
|
1820
|
+
|
|
1821
|
+
var gif_invalid = {exports: {}};
|
|
1822
|
+
|
|
1823
|
+
(function (module, exports) {
|
|
1824
|
+
|
|
1825
|
+
Object.defineProperty(exports, "__esModule", {
|
|
1826
|
+
value: true
|
|
1827
|
+
});
|
|
1828
|
+
exports.default = 'data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///ZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZ';
|
|
1829
|
+
module.exports = exports['default'];
|
|
1559
1830
|
|
|
1560
|
-
|
|
1831
|
+
}(gif_invalid, gif_invalid.exports));
|
|
1832
|
+
|
|
1833
|
+
(function (module, exports) {
|
|
1834
|
+
|
|
1835
|
+
Object.defineProperty(exports, "__esModule", {
|
|
1836
|
+
value: true
|
|
1837
|
+
});
|
|
1838
|
+
|
|
1839
|
+
var _gif = gif_invalid.exports;
|
|
1840
|
+
|
|
1841
|
+
var _gif2 = _interopRequireDefault(_gif);
|
|
1842
|
+
|
|
1843
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
1561
1844
|
|
|
1562
1845
|
// NOTE: https://github.com/medialize/ally.js/issues/35
|
|
1563
1846
|
// https://developer.mozilla.org/en-US/docs/Web/HTML/Element/img#attr-usemap
|
|
1564
|
-
|
|
1847
|
+
exports.default = {
|
|
1565
1848
|
element: 'div',
|
|
1566
1849
|
mutate: function mutate(element) {
|
|
1567
|
-
element.innerHTML = '<map name="broken-image-map-test"><area href="#void" shape="rect" coords="63,19,144,45"></map>' + '<img usemap="#broken-image-map-test" alt="" src="' +
|
|
1850
|
+
element.innerHTML = '<map name="broken-image-map-test"><area href="#void" shape="rect" coords="63,19,144,45"></map>' + '<img usemap="#broken-image-map-test" alt="" src="' + _gif2.default + '">';
|
|
1568
1851
|
|
|
1569
1852
|
return element.querySelector('area');
|
|
1570
1853
|
}
|
|
1571
1854
|
};
|
|
1855
|
+
module.exports = exports['default'];
|
|
1856
|
+
|
|
1857
|
+
}(focusBrokenImageMap, focusBrokenImageMap.exports));
|
|
1858
|
+
|
|
1859
|
+
var focusChildrenOfFocusableFlexbox = {exports: {}};
|
|
1860
|
+
|
|
1861
|
+
(function (module, exports) {
|
|
1862
|
+
|
|
1863
|
+
Object.defineProperty(exports, "__esModule", {
|
|
1864
|
+
value: true
|
|
1865
|
+
});
|
|
1572
1866
|
|
|
1573
1867
|
// Children of focusable elements with display:flex are focusable in IE10-11
|
|
1574
|
-
|
|
1868
|
+
exports.default = {
|
|
1575
1869
|
element: 'div',
|
|
1576
1870
|
mutate: function mutate(element) {
|
|
1577
1871
|
element.setAttribute('tabindex', '-1');
|
|
@@ -1580,70 +1874,157 @@ const focusChildrenOfFocusableFlexbox = {
|
|
|
1580
1874
|
return element.querySelector('span');
|
|
1581
1875
|
}
|
|
1582
1876
|
};
|
|
1877
|
+
module.exports = exports['default'];
|
|
1878
|
+
|
|
1879
|
+
}(focusChildrenOfFocusableFlexbox, focusChildrenOfFocusableFlexbox.exports));
|
|
1880
|
+
|
|
1881
|
+
var focusFieldsetDisabled = {exports: {}};
|
|
1882
|
+
|
|
1883
|
+
(function (module, exports) {
|
|
1884
|
+
|
|
1885
|
+
Object.defineProperty(exports, "__esModule", {
|
|
1886
|
+
value: true
|
|
1887
|
+
});
|
|
1583
1888
|
|
|
1584
1889
|
// fieldset[tabindex=0][disabled] should not be focusable, but Blink and WebKit disagree
|
|
1585
1890
|
// @specification https://www.w3.org/TR/html5/disabled-elements.html#concept-element-disabled
|
|
1586
1891
|
// @browser-issue Chromium https://crbug.com/453847
|
|
1587
1892
|
// @browser-issue WebKit https://bugs.webkit.org/show_bug.cgi?id=141086
|
|
1588
|
-
|
|
1893
|
+
exports.default = {
|
|
1589
1894
|
element: 'fieldset',
|
|
1590
1895
|
mutate: function mutate(element) {
|
|
1591
1896
|
element.setAttribute('tabindex', 0);
|
|
1592
1897
|
element.setAttribute('disabled', 'disabled');
|
|
1593
1898
|
}
|
|
1594
1899
|
};
|
|
1900
|
+
module.exports = exports['default'];
|
|
1595
1901
|
|
|
1596
|
-
|
|
1902
|
+
}(focusFieldsetDisabled, focusFieldsetDisabled.exports));
|
|
1903
|
+
|
|
1904
|
+
var focusFieldset = {exports: {}};
|
|
1905
|
+
|
|
1906
|
+
(function (module, exports) {
|
|
1907
|
+
|
|
1908
|
+
Object.defineProperty(exports, "__esModule", {
|
|
1909
|
+
value: true
|
|
1910
|
+
});
|
|
1911
|
+
exports.default = {
|
|
1597
1912
|
element: 'fieldset',
|
|
1598
1913
|
mutate: function mutate(element) {
|
|
1599
1914
|
element.innerHTML = '<legend>legend</legend><p>content</p>';
|
|
1600
1915
|
}
|
|
1601
1916
|
};
|
|
1917
|
+
module.exports = exports['default'];
|
|
1918
|
+
|
|
1919
|
+
}(focusFieldset, focusFieldset.exports));
|
|
1920
|
+
|
|
1921
|
+
var focusFlexboxContainer = {exports: {}};
|
|
1922
|
+
|
|
1923
|
+
(function (module, exports) {
|
|
1924
|
+
|
|
1925
|
+
Object.defineProperty(exports, "__esModule", {
|
|
1926
|
+
value: true
|
|
1927
|
+
});
|
|
1602
1928
|
|
|
1603
1929
|
// elements with display:flex are focusable in IE10-11
|
|
1604
|
-
|
|
1930
|
+
exports.default = {
|
|
1605
1931
|
element: 'span',
|
|
1606
1932
|
mutate: function mutate(element) {
|
|
1607
1933
|
element.setAttribute('style', 'display: -webkit-flex; display: -ms-flexbox; display: flex;');
|
|
1608
1934
|
element.innerHTML = '<span style="display: block;">hello</span>';
|
|
1609
1935
|
}
|
|
1610
1936
|
};
|
|
1937
|
+
module.exports = exports['default'];
|
|
1938
|
+
|
|
1939
|
+
}(focusFlexboxContainer, focusFlexboxContainer.exports));
|
|
1940
|
+
|
|
1941
|
+
var focusFormDisabled = {exports: {}};
|
|
1942
|
+
|
|
1943
|
+
(function (module, exports) {
|
|
1944
|
+
|
|
1945
|
+
Object.defineProperty(exports, "__esModule", {
|
|
1946
|
+
value: true
|
|
1947
|
+
});
|
|
1611
1948
|
|
|
1612
1949
|
// form[tabindex=0][disabled] should be focusable as the
|
|
1613
1950
|
// specification doesn't know the disabled attribute on the form element
|
|
1614
1951
|
// @specification https://www.w3.org/TR/html5/forms.html#the-form-element
|
|
1615
|
-
|
|
1952
|
+
exports.default = {
|
|
1616
1953
|
element: 'form',
|
|
1617
1954
|
mutate: function mutate(element) {
|
|
1618
1955
|
element.setAttribute('tabindex', 0);
|
|
1619
1956
|
element.setAttribute('disabled', 'disabled');
|
|
1620
1957
|
}
|
|
1621
1958
|
};
|
|
1959
|
+
module.exports = exports['default'];
|
|
1960
|
+
|
|
1961
|
+
}(focusFormDisabled, focusFormDisabled.exports));
|
|
1962
|
+
|
|
1963
|
+
var focusImgIsmap = {exports: {}};
|
|
1964
|
+
|
|
1965
|
+
(function (module, exports) {
|
|
1966
|
+
|
|
1967
|
+
Object.defineProperty(exports, "__esModule", {
|
|
1968
|
+
value: true
|
|
1969
|
+
});
|
|
1970
|
+
|
|
1971
|
+
var _gif = gif.exports;
|
|
1972
|
+
|
|
1973
|
+
var _gif2 = _interopRequireDefault(_gif);
|
|
1974
|
+
|
|
1975
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
1622
1976
|
|
|
1623
1977
|
// NOTE: https://github.com/medialize/ally.js/issues/35
|
|
1624
1978
|
// fixes https://github.com/medialize/ally.js/issues/20
|
|
1625
1979
|
// https://developer.mozilla.org/en-US/docs/Web/HTML/Element/img#attr-ismap
|
|
1626
|
-
|
|
1980
|
+
exports.default = {
|
|
1627
1981
|
element: 'a',
|
|
1628
1982
|
mutate: function mutate(element) {
|
|
1629
1983
|
element.href = '#void';
|
|
1630
|
-
element.innerHTML = '<img ismap src="' +
|
|
1984
|
+
element.innerHTML = '<img ismap src="' + _gif2.default + '" alt="">';
|
|
1631
1985
|
return element.querySelector('img');
|
|
1632
1986
|
}
|
|
1633
1987
|
};
|
|
1988
|
+
module.exports = exports['default'];
|
|
1989
|
+
|
|
1990
|
+
}(focusImgIsmap, focusImgIsmap.exports));
|
|
1991
|
+
|
|
1992
|
+
var focusImgUsemapTabindex = {exports: {}};
|
|
1993
|
+
|
|
1994
|
+
(function (module, exports) {
|
|
1995
|
+
|
|
1996
|
+
Object.defineProperty(exports, "__esModule", {
|
|
1997
|
+
value: true
|
|
1998
|
+
});
|
|
1999
|
+
|
|
2000
|
+
var _gif = gif.exports;
|
|
2001
|
+
|
|
2002
|
+
var _gif2 = _interopRequireDefault(_gif);
|
|
2003
|
+
|
|
2004
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
1634
2005
|
|
|
1635
2006
|
// NOTE: https://github.com/medialize/ally.js/issues/35
|
|
1636
2007
|
// https://developer.mozilla.org/en-US/docs/Web/HTML/Element/img#attr-usemap
|
|
1637
|
-
|
|
2008
|
+
exports.default = {
|
|
1638
2009
|
element: 'div',
|
|
1639
2010
|
mutate: function mutate(element) {
|
|
1640
|
-
element.innerHTML = '<map name="image-map-tabindex-test"><area href="#void" shape="rect" coords="63,19,144,45"></map>' + '<img usemap="#image-map-tabindex-test" tabindex="-1" alt="" ' + 'src="' +
|
|
2011
|
+
element.innerHTML = '<map name="image-map-tabindex-test"><area href="#void" shape="rect" coords="63,19,144,45"></map>' + '<img usemap="#image-map-tabindex-test" tabindex="-1" alt="" ' + 'src="' + _gif2.default + '">';
|
|
1641
2012
|
|
|
1642
2013
|
return element.querySelector('img');
|
|
1643
2014
|
}
|
|
1644
2015
|
};
|
|
2016
|
+
module.exports = exports['default'];
|
|
2017
|
+
|
|
2018
|
+
}(focusImgUsemapTabindex, focusImgUsemapTabindex.exports));
|
|
2019
|
+
|
|
2020
|
+
var focusInHiddenIframe = {exports: {}};
|
|
1645
2021
|
|
|
1646
|
-
|
|
2022
|
+
(function (module, exports) {
|
|
2023
|
+
|
|
2024
|
+
Object.defineProperty(exports, "__esModule", {
|
|
2025
|
+
value: true
|
|
2026
|
+
});
|
|
2027
|
+
exports.default = {
|
|
1647
2028
|
element: function element(wrapper, _document) {
|
|
1648
2029
|
var iframe = _document.createElement('iframe');
|
|
1649
2030
|
|
|
@@ -1670,23 +2051,62 @@ const focusInHiddenIframe = {
|
|
|
1670
2051
|
return iframeDocument.activeElement === focus;
|
|
1671
2052
|
}
|
|
1672
2053
|
};
|
|
2054
|
+
module.exports = exports['default'];
|
|
1673
2055
|
|
|
1674
|
-
|
|
2056
|
+
}(focusInHiddenIframe, focusInHiddenIframe.exports));
|
|
1675
2057
|
|
|
1676
|
-
|
|
1677
|
-
|
|
1678
|
-
|
|
2058
|
+
var focusInZeroDimensionObject = {exports: {}};
|
|
2059
|
+
|
|
2060
|
+
(function (module, exports) {
|
|
2061
|
+
|
|
2062
|
+
Object.defineProperty(exports, "__esModule", {
|
|
2063
|
+
value: true
|
|
2064
|
+
});
|
|
2065
|
+
|
|
2066
|
+
exports.default = function () {
|
|
2067
|
+
return result;
|
|
2068
|
+
};
|
|
2069
|
+
|
|
2070
|
+
var _platform = platform$1.exports;
|
|
2071
|
+
|
|
2072
|
+
var _platform2 = _interopRequireDefault(_platform);
|
|
2073
|
+
|
|
2074
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
2075
|
+
|
|
2076
|
+
var result = !_platform2.default.is.WEBKIT;
|
|
2077
|
+
|
|
2078
|
+
module.exports = exports['default'];
|
|
2079
|
+
|
|
2080
|
+
}(focusInZeroDimensionObject, focusInZeroDimensionObject.exports));
|
|
2081
|
+
|
|
2082
|
+
var focusInvalidTabindex = {exports: {}};
|
|
2083
|
+
|
|
2084
|
+
(function (module, exports) {
|
|
2085
|
+
|
|
2086
|
+
Object.defineProperty(exports, "__esModule", {
|
|
2087
|
+
value: true
|
|
2088
|
+
});
|
|
1679
2089
|
|
|
1680
2090
|
// Firefox allows *any* value and treats invalid values like tabindex="-1"
|
|
1681
2091
|
// @browser-issue Gecko https://bugzilla.mozilla.org/show_bug.cgi?id=1128054
|
|
1682
|
-
|
|
2092
|
+
exports.default = {
|
|
1683
2093
|
element: 'div',
|
|
1684
2094
|
mutate: function mutate(element) {
|
|
1685
2095
|
element.setAttribute('tabindex', 'invalid-value');
|
|
1686
2096
|
}
|
|
1687
2097
|
};
|
|
2098
|
+
module.exports = exports['default'];
|
|
2099
|
+
|
|
2100
|
+
}(focusInvalidTabindex, focusInvalidTabindex.exports));
|
|
1688
2101
|
|
|
1689
|
-
|
|
2102
|
+
var focusLabelTabindex = {exports: {}};
|
|
2103
|
+
|
|
2104
|
+
(function (module, exports) {
|
|
2105
|
+
|
|
2106
|
+
Object.defineProperty(exports, "__esModule", {
|
|
2107
|
+
value: true
|
|
2108
|
+
});
|
|
2109
|
+
exports.default = {
|
|
1690
2110
|
element: 'label',
|
|
1691
2111
|
mutate: function mutate(element) {
|
|
1692
2112
|
element.setAttribute('tabindex', '-1');
|
|
@@ -1697,35 +2117,83 @@ const focusLabelTabindex = {
|
|
|
1697
2117
|
return _document.activeElement === element;
|
|
1698
2118
|
}
|
|
1699
2119
|
};
|
|
2120
|
+
module.exports = exports['default'];
|
|
2121
|
+
|
|
2122
|
+
}(focusLabelTabindex, focusLabelTabindex.exports));
|
|
1700
2123
|
|
|
1701
|
-
|
|
2124
|
+
var focusObjectSvgHidden = {exports: {}};
|
|
2125
|
+
|
|
2126
|
+
var svg$1 = {exports: {}};
|
|
2127
|
+
|
|
2128
|
+
(function (module, exports) {
|
|
2129
|
+
|
|
2130
|
+
Object.defineProperty(exports, "__esModule", {
|
|
2131
|
+
value: true
|
|
2132
|
+
});
|
|
2133
|
+
exports.default = 'data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHhtb' + 'G5zOnhsaW5rPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5L3hsaW5rIiBpZD0ic3ZnIj48dGV4dCB4PSIxMCIgeT0iMjAiIGlkPSJ' + 'zdmctbGluay10ZXh0Ij50ZXh0PC90ZXh0Pjwvc3ZnPg==';
|
|
2134
|
+
module.exports = exports['default'];
|
|
2135
|
+
|
|
2136
|
+
}(svg$1, svg$1.exports));
|
|
2137
|
+
|
|
2138
|
+
(function (module, exports) {
|
|
2139
|
+
|
|
2140
|
+
Object.defineProperty(exports, "__esModule", {
|
|
2141
|
+
value: true
|
|
2142
|
+
});
|
|
2143
|
+
|
|
2144
|
+
var _svg = svg$1.exports;
|
|
2145
|
+
|
|
2146
|
+
var _svg2 = _interopRequireDefault(_svg);
|
|
2147
|
+
|
|
2148
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
1702
2149
|
|
|
1703
2150
|
// Note: IE10 on BrowserStack does not like this test
|
|
1704
2151
|
|
|
1705
|
-
|
|
2152
|
+
exports.default = {
|
|
1706
2153
|
element: 'object',
|
|
1707
2154
|
mutate: function mutate(element) {
|
|
1708
2155
|
element.setAttribute('type', 'image/svg+xml');
|
|
1709
|
-
element.setAttribute('data',
|
|
2156
|
+
element.setAttribute('data', _svg2.default);
|
|
1710
2157
|
element.setAttribute('width', '200');
|
|
1711
2158
|
element.setAttribute('height', '50');
|
|
1712
2159
|
element.style.visibility = 'hidden';
|
|
1713
2160
|
}
|
|
1714
2161
|
};
|
|
2162
|
+
module.exports = exports['default'];
|
|
1715
2163
|
|
|
1716
|
-
|
|
2164
|
+
}(focusObjectSvgHidden, focusObjectSvgHidden.exports));
|
|
1717
2165
|
|
|
1718
|
-
|
|
1719
|
-
|
|
1720
|
-
|
|
1721
|
-
|
|
1722
|
-
|
|
1723
|
-
|
|
2166
|
+
var focusObjectSvg = {exports: {}};
|
|
2167
|
+
|
|
2168
|
+
(function (module, exports) {
|
|
2169
|
+
|
|
2170
|
+
Object.defineProperty(exports, "__esModule", {
|
|
2171
|
+
value: true
|
|
2172
|
+
});
|
|
2173
|
+
|
|
2174
|
+
var _svg = svg$1.exports;
|
|
2175
|
+
|
|
2176
|
+
var _svg2 = _interopRequireDefault(_svg);
|
|
2177
|
+
|
|
2178
|
+
var _platform = platform$1.exports;
|
|
2179
|
+
|
|
2180
|
+
var _platform2 = _interopRequireDefault(_platform);
|
|
2181
|
+
|
|
2182
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
2183
|
+
|
|
2184
|
+
// Note: IE10 on BrowserStack does not like this test
|
|
2185
|
+
|
|
2186
|
+
exports.default = {
|
|
2187
|
+
name: 'can-focus-object-svg',
|
|
2188
|
+
element: 'object',
|
|
2189
|
+
mutate: function mutate(element) {
|
|
2190
|
+
element.setAttribute('type', 'image/svg+xml');
|
|
2191
|
+
element.setAttribute('data', _svg2.default);
|
|
1724
2192
|
element.setAttribute('width', '200');
|
|
1725
2193
|
element.setAttribute('height', '50');
|
|
1726
2194
|
},
|
|
1727
2195
|
validate: function validate(element, focusTarget, _document) {
|
|
1728
|
-
if (
|
|
2196
|
+
if (_platform2.default.is.GECKO) {
|
|
1729
2197
|
// Firefox seems to be handling the object creation asynchronously and thereby produces a false negative test result.
|
|
1730
2198
|
// Because we know Firefox is able to focus object elements referencing SVGs, we simply cheat by sniffing the user agent string
|
|
1731
2199
|
return true;
|
|
@@ -1734,18 +2202,53 @@ const focusObjectSvg = {
|
|
|
1734
2202
|
return _document.activeElement === element;
|
|
1735
2203
|
}
|
|
1736
2204
|
};
|
|
2205
|
+
module.exports = exports['default'];
|
|
2206
|
+
|
|
2207
|
+
}(focusObjectSvg, focusObjectSvg.exports));
|
|
2208
|
+
|
|
2209
|
+
var focusObjectSwf = {exports: {}};
|
|
2210
|
+
|
|
2211
|
+
(function (module, exports) {
|
|
2212
|
+
|
|
2213
|
+
Object.defineProperty(exports, "__esModule", {
|
|
2214
|
+
value: true
|
|
2215
|
+
});
|
|
2216
|
+
|
|
2217
|
+
exports.default = function () {
|
|
2218
|
+
return result;
|
|
2219
|
+
};
|
|
2220
|
+
|
|
2221
|
+
var _platform = platform$1.exports;
|
|
2222
|
+
|
|
2223
|
+
var _platform2 = _interopRequireDefault(_platform);
|
|
2224
|
+
|
|
2225
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
1737
2226
|
|
|
1738
2227
|
// Every Environment except IE9 considers SWF objects focusable
|
|
1739
|
-
var result
|
|
2228
|
+
var result = !_platform2.default.is.IE9;
|
|
1740
2229
|
|
|
1741
|
-
|
|
1742
|
-
|
|
1743
|
-
}
|
|
2230
|
+
module.exports = exports['default'];
|
|
2231
|
+
|
|
2232
|
+
}(focusObjectSwf, focusObjectSwf.exports));
|
|
2233
|
+
|
|
2234
|
+
var focusRedirectImgUsemap = {exports: {}};
|
|
1744
2235
|
|
|
1745
|
-
|
|
2236
|
+
(function (module, exports) {
|
|
2237
|
+
|
|
2238
|
+
Object.defineProperty(exports, "__esModule", {
|
|
2239
|
+
value: true
|
|
2240
|
+
});
|
|
2241
|
+
|
|
2242
|
+
var _gif = gif.exports;
|
|
2243
|
+
|
|
2244
|
+
var _gif2 = _interopRequireDefault(_gif);
|
|
2245
|
+
|
|
2246
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
2247
|
+
|
|
2248
|
+
exports.default = {
|
|
1746
2249
|
element: 'div',
|
|
1747
2250
|
mutate: function mutate(element) {
|
|
1748
|
-
element.innerHTML = '<map name="focus-redirect-img-usemap"><area href="#void" shape="rect" coords="63,19,144,45"></map>' + '<img usemap="#focus-redirect-img-usemap" alt="" ' + 'src="' +
|
|
2251
|
+
element.innerHTML = '<map name="focus-redirect-img-usemap"><area href="#void" shape="rect" coords="63,19,144,45"></map>' + '<img usemap="#focus-redirect-img-usemap" alt="" ' + 'src="' + _gif2.default + '">';
|
|
1749
2252
|
|
|
1750
2253
|
// focus the <img>, not the <div>
|
|
1751
2254
|
return element.querySelector('img');
|
|
@@ -1755,10 +2258,21 @@ const focusRedirectImgUsemap = {
|
|
|
1755
2258
|
return _document.activeElement === target;
|
|
1756
2259
|
}
|
|
1757
2260
|
};
|
|
2261
|
+
module.exports = exports['default'];
|
|
2262
|
+
|
|
2263
|
+
}(focusRedirectImgUsemap, focusRedirectImgUsemap.exports));
|
|
2264
|
+
|
|
2265
|
+
var focusRedirectLegend = {exports: {}};
|
|
2266
|
+
|
|
2267
|
+
(function (module, exports) {
|
|
2268
|
+
|
|
2269
|
+
Object.defineProperty(exports, "__esModule", {
|
|
2270
|
+
value: true
|
|
2271
|
+
});
|
|
1758
2272
|
|
|
1759
2273
|
// see https://jsbin.com/nenirisage/edit?html,js,console,output
|
|
1760
2274
|
|
|
1761
|
-
|
|
2275
|
+
exports.default = {
|
|
1762
2276
|
element: 'fieldset',
|
|
1763
2277
|
mutate: function mutate(element) {
|
|
1764
2278
|
element.innerHTML = '<legend>legend</legend><input tabindex="-1"><input tabindex="0">';
|
|
@@ -1777,9 +2291,20 @@ const focusRedirectLegend = {
|
|
|
1777
2291
|
return _document.activeElement === focusable && 'focusable' || _document.activeElement === tabbable && 'tabbable' || '';
|
|
1778
2292
|
}
|
|
1779
2293
|
};
|
|
2294
|
+
module.exports = exports['default'];
|
|
2295
|
+
|
|
2296
|
+
}(focusRedirectLegend, focusRedirectLegend.exports));
|
|
2297
|
+
|
|
2298
|
+
var focusScrollBody = {exports: {}};
|
|
2299
|
+
|
|
2300
|
+
(function (module, exports) {
|
|
2301
|
+
|
|
2302
|
+
Object.defineProperty(exports, "__esModule", {
|
|
2303
|
+
value: true
|
|
2304
|
+
});
|
|
1780
2305
|
|
|
1781
2306
|
// https://github.com/medialize/ally.js/issues/21
|
|
1782
|
-
|
|
2307
|
+
exports.default = {
|
|
1783
2308
|
element: 'div',
|
|
1784
2309
|
mutate: function mutate(element) {
|
|
1785
2310
|
element.setAttribute('style', 'width: 100px; height: 50px; overflow: auto;');
|
|
@@ -1787,41 +2312,81 @@ const focusScrollBody = {
|
|
|
1787
2312
|
return element.querySelector('div');
|
|
1788
2313
|
}
|
|
1789
2314
|
};
|
|
2315
|
+
module.exports = exports['default'];
|
|
2316
|
+
|
|
2317
|
+
}(focusScrollBody, focusScrollBody.exports));
|
|
2318
|
+
|
|
2319
|
+
var focusScrollContainerWithoutOverflow = {exports: {}};
|
|
2320
|
+
|
|
2321
|
+
(function (module, exports) {
|
|
2322
|
+
|
|
2323
|
+
Object.defineProperty(exports, "__esModule", {
|
|
2324
|
+
value: true
|
|
2325
|
+
});
|
|
1790
2326
|
|
|
1791
2327
|
// https://github.com/medialize/ally.js/issues/21
|
|
1792
|
-
|
|
2328
|
+
exports.default = {
|
|
1793
2329
|
element: 'div',
|
|
1794
2330
|
mutate: function mutate(element) {
|
|
1795
2331
|
element.setAttribute('style', 'width: 100px; height: 50px;');
|
|
1796
2332
|
element.innerHTML = '<div style="width: 500px; height: 40px;">scrollable content</div>';
|
|
1797
2333
|
}
|
|
1798
2334
|
};
|
|
2335
|
+
module.exports = exports['default'];
|
|
2336
|
+
|
|
2337
|
+
}(focusScrollContainerWithoutOverflow, focusScrollContainerWithoutOverflow.exports));
|
|
2338
|
+
|
|
2339
|
+
var focusScrollContainer = {exports: {}};
|
|
2340
|
+
|
|
2341
|
+
(function (module, exports) {
|
|
2342
|
+
|
|
2343
|
+
Object.defineProperty(exports, "__esModule", {
|
|
2344
|
+
value: true
|
|
2345
|
+
});
|
|
1799
2346
|
|
|
1800
2347
|
// https://github.com/medialize/ally.js/issues/21
|
|
1801
|
-
|
|
2348
|
+
exports.default = {
|
|
1802
2349
|
element: 'div',
|
|
1803
2350
|
mutate: function mutate(element) {
|
|
1804
2351
|
element.setAttribute('style', 'width: 100px; height: 50px; overflow: auto;');
|
|
1805
2352
|
element.innerHTML = '<div style="width: 500px; height: 40px;">scrollable content</div>';
|
|
1806
2353
|
}
|
|
1807
2354
|
};
|
|
2355
|
+
module.exports = exports['default'];
|
|
2356
|
+
|
|
2357
|
+
}(focusScrollContainer, focusScrollContainer.exports));
|
|
2358
|
+
|
|
2359
|
+
var focusSummary = {exports: {}};
|
|
1808
2360
|
|
|
1809
|
-
|
|
2361
|
+
(function (module, exports) {
|
|
2362
|
+
|
|
2363
|
+
Object.defineProperty(exports, "__esModule", {
|
|
2364
|
+
value: true
|
|
2365
|
+
});
|
|
2366
|
+
exports.default = {
|
|
1810
2367
|
element: 'details',
|
|
1811
2368
|
mutate: function mutate(element) {
|
|
1812
2369
|
element.innerHTML = '<summary>foo</summary><p>content</p>';
|
|
1813
2370
|
return element.firstElementChild;
|
|
1814
2371
|
}
|
|
1815
2372
|
};
|
|
2373
|
+
module.exports = exports['default'];
|
|
1816
2374
|
|
|
1817
|
-
|
|
1818
|
-
var fragment = document.createElement('div');
|
|
1819
|
-
fragment.innerHTML = '<svg><foreignObject width="30" height="30">\n <input type="text"/>\n </foreignObject></svg>';
|
|
2375
|
+
}(focusSummary, focusSummary.exports));
|
|
1820
2376
|
|
|
1821
|
-
|
|
1822
|
-
|
|
2377
|
+
var focusSvgFocusableAttribute = {exports: {}};
|
|
2378
|
+
|
|
2379
|
+
var svg = {};
|
|
2380
|
+
|
|
2381
|
+
var focus_svgForeignObjectHack = {exports: {}};
|
|
1823
2382
|
|
|
1824
|
-
function
|
|
2383
|
+
(function (module, exports) {
|
|
2384
|
+
|
|
2385
|
+
Object.defineProperty(exports, "__esModule", {
|
|
2386
|
+
value: true
|
|
2387
|
+
});
|
|
2388
|
+
|
|
2389
|
+
exports.default = function (element) {
|
|
1825
2390
|
// Edge13, Edge14: foreignObject focus hack
|
|
1826
2391
|
// https://jsbin.com/kunehinugi/edit?html,js,output
|
|
1827
2392
|
// https://jsbin.com/fajagi/3/edit?html,js,output
|
|
@@ -1845,8 +2410,32 @@ function focusSvgForeignObjectHack (element) {
|
|
|
1845
2410
|
// clean up
|
|
1846
2411
|
element.removeChild(foreignObject);
|
|
1847
2412
|
return true;
|
|
2413
|
+
};
|
|
2414
|
+
|
|
2415
|
+
function makeFocusableForeignObject() {
|
|
2416
|
+
var fragment = document.createElement('div');
|
|
2417
|
+
fragment.innerHTML = '<svg><foreignObject width="30" height="30">\n <input type="text"/>\n </foreignObject></svg>';
|
|
2418
|
+
|
|
2419
|
+
return fragment.firstChild.firstChild;
|
|
1848
2420
|
}
|
|
1849
2421
|
|
|
2422
|
+
module.exports = exports['default'];
|
|
2423
|
+
|
|
2424
|
+
}(focus_svgForeignObjectHack, focus_svgForeignObjectHack.exports));
|
|
2425
|
+
|
|
2426
|
+
Object.defineProperty(svg, "__esModule", {
|
|
2427
|
+
value: true
|
|
2428
|
+
});
|
|
2429
|
+
svg.generate = generate;
|
|
2430
|
+
svg.focus = focus;
|
|
2431
|
+
svg.validate = validate;
|
|
2432
|
+
|
|
2433
|
+
var _focus = focus_svgForeignObjectHack.exports;
|
|
2434
|
+
|
|
2435
|
+
var _focus2 = _interopRequireDefault$1(_focus);
|
|
2436
|
+
|
|
2437
|
+
function _interopRequireDefault$1(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
2438
|
+
|
|
1850
2439
|
function generate(element) {
|
|
1851
2440
|
return '<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">' + element + '</svg>';
|
|
1852
2441
|
}
|
|
@@ -1859,7 +2448,7 @@ function focus(element) {
|
|
|
1859
2448
|
try {
|
|
1860
2449
|
HTMLElement.prototype.focus.call(element);
|
|
1861
2450
|
} catch (e) {
|
|
1862
|
-
|
|
2451
|
+
(0, _focus2.default)(element);
|
|
1863
2452
|
}
|
|
1864
2453
|
}
|
|
1865
2454
|
|
|
@@ -1868,84 +2457,196 @@ function validate(element, focusTarget, _document) {
|
|
|
1868
2457
|
return _document.activeElement === focusTarget;
|
|
1869
2458
|
}
|
|
1870
2459
|
|
|
1871
|
-
|
|
2460
|
+
(function (module, exports) {
|
|
2461
|
+
|
|
2462
|
+
Object.defineProperty(exports, "__esModule", {
|
|
2463
|
+
value: true
|
|
2464
|
+
});
|
|
2465
|
+
|
|
2466
|
+
var _svg = svg;
|
|
2467
|
+
|
|
2468
|
+
exports.default = {
|
|
1872
2469
|
element: 'div',
|
|
1873
2470
|
mutate: function mutate(element) {
|
|
1874
|
-
element.innerHTML = generate('<text focusable="true">a</text>');
|
|
2471
|
+
element.innerHTML = (0, _svg.generate)('<text focusable="true">a</text>');
|
|
1875
2472
|
return element.querySelector('text');
|
|
1876
2473
|
},
|
|
1877
|
-
validate: validate
|
|
2474
|
+
validate: _svg.validate
|
|
1878
2475
|
};
|
|
2476
|
+
module.exports = exports['default'];
|
|
2477
|
+
|
|
2478
|
+
}(focusSvgFocusableAttribute, focusSvgFocusableAttribute.exports));
|
|
2479
|
+
|
|
2480
|
+
var focusSvgTabindexAttribute = {exports: {}};
|
|
2481
|
+
|
|
2482
|
+
(function (module, exports) {
|
|
1879
2483
|
|
|
1880
|
-
|
|
2484
|
+
Object.defineProperty(exports, "__esModule", {
|
|
2485
|
+
value: true
|
|
2486
|
+
});
|
|
2487
|
+
|
|
2488
|
+
var _svg = svg;
|
|
2489
|
+
|
|
2490
|
+
exports.default = {
|
|
1881
2491
|
element: 'div',
|
|
1882
2492
|
mutate: function mutate(element) {
|
|
1883
|
-
element.innerHTML = generate('<text tabindex="0">a</text>');
|
|
2493
|
+
element.innerHTML = (0, _svg.generate)('<text tabindex="0">a</text>');
|
|
1884
2494
|
return element.querySelector('text');
|
|
1885
2495
|
},
|
|
1886
|
-
validate: validate
|
|
2496
|
+
validate: _svg.validate
|
|
1887
2497
|
};
|
|
2498
|
+
module.exports = exports['default'];
|
|
2499
|
+
|
|
2500
|
+
}(focusSvgTabindexAttribute, focusSvgTabindexAttribute.exports));
|
|
1888
2501
|
|
|
1889
|
-
|
|
2502
|
+
var focusSvgNegativeTabindexAttribute = {exports: {}};
|
|
2503
|
+
|
|
2504
|
+
(function (module, exports) {
|
|
2505
|
+
|
|
2506
|
+
Object.defineProperty(exports, "__esModule", {
|
|
2507
|
+
value: true
|
|
2508
|
+
});
|
|
2509
|
+
|
|
2510
|
+
var _svg = svg;
|
|
2511
|
+
|
|
2512
|
+
exports.default = {
|
|
1890
2513
|
element: 'div',
|
|
1891
2514
|
mutate: function mutate(element) {
|
|
1892
|
-
element.innerHTML = generate('<text tabindex="-1">a</text>');
|
|
2515
|
+
element.innerHTML = (0, _svg.generate)('<text tabindex="-1">a</text>');
|
|
1893
2516
|
return element.querySelector('text');
|
|
1894
2517
|
},
|
|
1895
|
-
validate: validate
|
|
2518
|
+
validate: _svg.validate
|
|
1896
2519
|
};
|
|
2520
|
+
module.exports = exports['default'];
|
|
2521
|
+
|
|
2522
|
+
}(focusSvgNegativeTabindexAttribute, focusSvgNegativeTabindexAttribute.exports));
|
|
2523
|
+
|
|
2524
|
+
var focusSvgUseTabindex = {exports: {}};
|
|
2525
|
+
|
|
2526
|
+
(function (module, exports) {
|
|
2527
|
+
|
|
2528
|
+
Object.defineProperty(exports, "__esModule", {
|
|
2529
|
+
value: true
|
|
2530
|
+
});
|
|
2531
|
+
|
|
2532
|
+
var _svg = svg;
|
|
1897
2533
|
|
|
1898
|
-
|
|
2534
|
+
exports.default = {
|
|
1899
2535
|
element: 'div',
|
|
1900
2536
|
mutate: function mutate(element) {
|
|
1901
|
-
element.innerHTML = generate(['<g id="ally-test-target"><a xlink:href="#void"><text>link</text></a></g>', '<use xlink:href="#ally-test-target" x="0" y="0" tabindex="-1" />'].join(''));
|
|
2537
|
+
element.innerHTML = (0, _svg.generate)(['<g id="ally-test-target"><a xlink:href="#void"><text>link</text></a></g>', '<use xlink:href="#ally-test-target" x="0" y="0" tabindex="-1" />'].join(''));
|
|
1902
2538
|
|
|
1903
2539
|
return element.querySelector('use');
|
|
1904
2540
|
},
|
|
1905
|
-
validate: validate
|
|
2541
|
+
validate: _svg.validate
|
|
1906
2542
|
};
|
|
2543
|
+
module.exports = exports['default'];
|
|
2544
|
+
|
|
2545
|
+
}(focusSvgUseTabindex, focusSvgUseTabindex.exports));
|
|
2546
|
+
|
|
2547
|
+
var focusSvgForeignobjectTabindex = {exports: {}};
|
|
2548
|
+
|
|
2549
|
+
(function (module, exports) {
|
|
1907
2550
|
|
|
1908
|
-
|
|
2551
|
+
Object.defineProperty(exports, "__esModule", {
|
|
2552
|
+
value: true
|
|
2553
|
+
});
|
|
2554
|
+
|
|
2555
|
+
var _svg = svg;
|
|
2556
|
+
|
|
2557
|
+
exports.default = {
|
|
1909
2558
|
element: 'div',
|
|
1910
2559
|
mutate: function mutate(element) {
|
|
1911
|
-
element.innerHTML = generate('<foreignObject tabindex="-1"><input type="text" /></foreignObject>');
|
|
2560
|
+
element.innerHTML = (0, _svg.generate)('<foreignObject tabindex="-1"><input type="text" /></foreignObject>');
|
|
1912
2561
|
// Safari 8's quersSelector() can't identify foreignObject, but getElementyByTagName() can
|
|
1913
2562
|
return element.querySelector('foreignObject') || element.getElementsByTagName('foreignObject')[0];
|
|
1914
2563
|
},
|
|
1915
|
-
validate: validate
|
|
2564
|
+
validate: _svg.validate
|
|
2565
|
+
|
|
2566
|
+
};
|
|
2567
|
+
module.exports = exports['default'];
|
|
2568
|
+
|
|
2569
|
+
}(focusSvgForeignobjectTabindex, focusSvgForeignobjectTabindex.exports));
|
|
2570
|
+
|
|
2571
|
+
var focusSvgInIframe = {exports: {}};
|
|
2572
|
+
|
|
2573
|
+
(function (module, exports) {
|
|
2574
|
+
|
|
2575
|
+
Object.defineProperty(exports, "__esModule", {
|
|
2576
|
+
value: true
|
|
2577
|
+
});
|
|
1916
2578
|
|
|
2579
|
+
exports.default = function () {
|
|
2580
|
+
return result;
|
|
1917
2581
|
};
|
|
1918
2582
|
|
|
2583
|
+
var _platform = platform$1.exports;
|
|
2584
|
+
|
|
2585
|
+
var _platform2 = _interopRequireDefault(_platform);
|
|
2586
|
+
|
|
2587
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
2588
|
+
|
|
1919
2589
|
// Firefox seems to be handling the SVG-document-in-iframe creation asynchronously
|
|
1920
2590
|
// and thereby produces a false negative test result. Thus the test is pointless
|
|
1921
2591
|
// and we resort to UA sniffing once again.
|
|
1922
2592
|
// see http://jsbin.com/vunadohoko/1/edit?js,console,output
|
|
1923
2593
|
|
|
1924
|
-
var result
|
|
2594
|
+
var result = Boolean(_platform2.default.is.GECKO && typeof SVGElement !== 'undefined' && SVGElement.prototype.focus);
|
|
1925
2595
|
|
|
1926
|
-
|
|
1927
|
-
|
|
1928
|
-
}
|
|
2596
|
+
module.exports = exports['default'];
|
|
2597
|
+
|
|
2598
|
+
}(focusSvgInIframe, focusSvgInIframe.exports));
|
|
2599
|
+
|
|
2600
|
+
var focusSvg = {exports: {}};
|
|
1929
2601
|
|
|
1930
|
-
|
|
2602
|
+
(function (module, exports) {
|
|
2603
|
+
|
|
2604
|
+
Object.defineProperty(exports, "__esModule", {
|
|
2605
|
+
value: true
|
|
2606
|
+
});
|
|
2607
|
+
|
|
2608
|
+
var _svg = svg;
|
|
2609
|
+
|
|
2610
|
+
exports.default = {
|
|
1931
2611
|
element: 'div',
|
|
1932
2612
|
mutate: function mutate(element) {
|
|
1933
|
-
element.innerHTML = generate('');
|
|
2613
|
+
element.innerHTML = (0, _svg.generate)('');
|
|
1934
2614
|
return element.firstChild;
|
|
1935
2615
|
},
|
|
1936
|
-
validate: validate
|
|
2616
|
+
validate: _svg.validate
|
|
1937
2617
|
};
|
|
2618
|
+
module.exports = exports['default'];
|
|
2619
|
+
|
|
2620
|
+
}(focusSvg, focusSvg.exports));
|
|
2621
|
+
|
|
2622
|
+
var focusTabindexTrailingCharacters = {exports: {}};
|
|
2623
|
+
|
|
2624
|
+
(function (module, exports) {
|
|
2625
|
+
|
|
2626
|
+
Object.defineProperty(exports, "__esModule", {
|
|
2627
|
+
value: true
|
|
2628
|
+
});
|
|
1938
2629
|
|
|
1939
2630
|
// Firefox allows *any* value and treats invalid values like tabindex="-1"
|
|
1940
2631
|
// @browser-issue Gecko https://bugzilla.mozilla.org/show_bug.cgi?id=1128054
|
|
1941
|
-
|
|
2632
|
+
exports.default = {
|
|
1942
2633
|
element: 'div',
|
|
1943
2634
|
mutate: function mutate(element) {
|
|
1944
2635
|
element.setAttribute('tabindex', '3x');
|
|
1945
2636
|
}
|
|
1946
2637
|
};
|
|
2638
|
+
module.exports = exports['default'];
|
|
2639
|
+
|
|
2640
|
+
}(focusTabindexTrailingCharacters, focusTabindexTrailingCharacters.exports));
|
|
2641
|
+
|
|
2642
|
+
var focusTable = {exports: {}};
|
|
1947
2643
|
|
|
1948
|
-
|
|
2644
|
+
(function (module, exports) {
|
|
2645
|
+
|
|
2646
|
+
Object.defineProperty(exports, "__esModule", {
|
|
2647
|
+
value: true
|
|
2648
|
+
});
|
|
2649
|
+
exports.default = {
|
|
1949
2650
|
element: 'table',
|
|
1950
2651
|
mutate: function mutate(element, wrapper, _document) {
|
|
1951
2652
|
// IE9 has a problem replacing TBODY contents with innerHTML.
|
|
@@ -1956,71 +2657,308 @@ const focusTable = {
|
|
|
1956
2657
|
element.appendChild(fragment);
|
|
1957
2658
|
}
|
|
1958
2659
|
};
|
|
2660
|
+
module.exports = exports['default'];
|
|
2661
|
+
|
|
2662
|
+
}(focusTable, focusTable.exports));
|
|
2663
|
+
|
|
2664
|
+
var focusVideoWithoutControls = {exports: {}};
|
|
2665
|
+
|
|
2666
|
+
var mp4 = {exports: {}};
|
|
2667
|
+
|
|
2668
|
+
(function (module, exports) {
|
|
2669
|
+
|
|
2670
|
+
Object.defineProperty(exports, "__esModule", {
|
|
2671
|
+
value: true
|
|
2672
|
+
});
|
|
2673
|
+
|
|
2674
|
+
var _gif = gif.exports;
|
|
2675
|
+
|
|
2676
|
+
var _gif2 = _interopRequireDefault(_gif);
|
|
2677
|
+
|
|
2678
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
2679
|
+
|
|
2680
|
+
exports.default = _gif2.default;
|
|
2681
|
+
// export default 'data:video/mp4;base64,video-focus-test';
|
|
2682
|
+
|
|
2683
|
+
module.exports = exports['default'];
|
|
1959
2684
|
|
|
1960
|
-
|
|
2685
|
+
}(mp4, mp4.exports));
|
|
2686
|
+
|
|
2687
|
+
(function (module, exports) {
|
|
2688
|
+
|
|
2689
|
+
Object.defineProperty(exports, "__esModule", {
|
|
2690
|
+
value: true
|
|
2691
|
+
});
|
|
2692
|
+
|
|
2693
|
+
var _mp = mp4.exports;
|
|
2694
|
+
|
|
2695
|
+
var _mp2 = _interopRequireDefault(_mp);
|
|
2696
|
+
|
|
2697
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
2698
|
+
|
|
2699
|
+
exports.default = {
|
|
1961
2700
|
element: 'video',
|
|
1962
2701
|
mutate: function mutate(element) {
|
|
1963
2702
|
try {
|
|
1964
2703
|
// invalid media file can trigger warning in console, data-uri to prevent HTTP request
|
|
1965
|
-
element.setAttribute('src',
|
|
2704
|
+
element.setAttribute('src', _mp2.default);
|
|
1966
2705
|
} catch (e) {
|
|
1967
2706
|
// IE9 may throw "Error: Not implemented"
|
|
1968
2707
|
}
|
|
1969
2708
|
}
|
|
1970
2709
|
};
|
|
2710
|
+
module.exports = exports['default'];
|
|
1971
2711
|
|
|
1972
|
-
|
|
1973
|
-
|
|
2712
|
+
}(focusVideoWithoutControls, focusVideoWithoutControls.exports));
|
|
2713
|
+
|
|
2714
|
+
var tabsequenceAreaAtImgPosition = {exports: {}};
|
|
2715
|
+
|
|
2716
|
+
(function (module, exports) {
|
|
1974
2717
|
|
|
1975
|
-
|
|
2718
|
+
Object.defineProperty(exports, "__esModule", {
|
|
2719
|
+
value: true
|
|
2720
|
+
});
|
|
2721
|
+
|
|
2722
|
+
exports.default = function () {
|
|
1976
2723
|
return result;
|
|
1977
|
-
}
|
|
2724
|
+
};
|
|
2725
|
+
|
|
2726
|
+
var _platform = platform$1.exports;
|
|
2727
|
+
|
|
2728
|
+
var _platform2 = _interopRequireDefault(_platform);
|
|
2729
|
+
|
|
2730
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
2731
|
+
|
|
2732
|
+
// https://jsbin.com/vafaba/3/edit?html,js,console,output
|
|
2733
|
+
var result = _platform2.default.is.GECKO || _platform2.default.is.TRIDENT || _platform2.default.is.EDGE;
|
|
2734
|
+
|
|
2735
|
+
module.exports = exports['default'];
|
|
2736
|
+
|
|
2737
|
+
}(tabsequenceAreaAtImgPosition, tabsequenceAreaAtImgPosition.exports));
|
|
2738
|
+
|
|
2739
|
+
(function (module, exports) {
|
|
2740
|
+
|
|
2741
|
+
Object.defineProperty(exports, "__esModule", {
|
|
2742
|
+
value: true
|
|
2743
|
+
});
|
|
2744
|
+
|
|
2745
|
+
exports.default = function () {
|
|
2746
|
+
if (supportsCache$1) {
|
|
2747
|
+
return supportsCache$1;
|
|
2748
|
+
}
|
|
2749
|
+
|
|
2750
|
+
supportsCache$1 = _supportsCache2.default.get();
|
|
2751
|
+
if (!supportsCache$1.time) {
|
|
2752
|
+
_supportsCache2.default.set(executeTests());
|
|
2753
|
+
supportsCache$1 = _supportsCache2.default.get();
|
|
2754
|
+
}
|
|
2755
|
+
|
|
2756
|
+
return supportsCache$1;
|
|
2757
|
+
};
|
|
2758
|
+
|
|
2759
|
+
var _detectFocus = detectFocus.exports;
|
|
2760
|
+
|
|
2761
|
+
var _detectFocus2 = _interopRequireDefault(_detectFocus);
|
|
2762
|
+
|
|
2763
|
+
var _supportsCache = supportsCache.exports;
|
|
2764
|
+
|
|
2765
|
+
var _supportsCache2 = _interopRequireDefault(_supportsCache);
|
|
2766
|
+
|
|
2767
|
+
var _cssShadowPiercingDeepCombinator = cssShadowPiercingDeepCombinator.exports;
|
|
2768
|
+
|
|
2769
|
+
var _cssShadowPiercingDeepCombinator2 = _interopRequireDefault(_cssShadowPiercingDeepCombinator);
|
|
2770
|
+
|
|
2771
|
+
var _focusAreaImgTabindex = focusAreaImgTabindex.exports;
|
|
2772
|
+
|
|
2773
|
+
var _focusAreaImgTabindex2 = _interopRequireDefault(_focusAreaImgTabindex);
|
|
2774
|
+
|
|
2775
|
+
var _focusAreaTabindex = focusAreaTabindex.exports;
|
|
2776
|
+
|
|
2777
|
+
var _focusAreaTabindex2 = _interopRequireDefault(_focusAreaTabindex);
|
|
2778
|
+
|
|
2779
|
+
var _focusAreaWithoutHref = focusAreaWithoutHref.exports;
|
|
2780
|
+
|
|
2781
|
+
var _focusAreaWithoutHref2 = _interopRequireDefault(_focusAreaWithoutHref);
|
|
2782
|
+
|
|
2783
|
+
var _focusAudioWithoutControls = focusAudioWithoutControls.exports;
|
|
2784
|
+
|
|
2785
|
+
var _focusAudioWithoutControls2 = _interopRequireDefault(_focusAudioWithoutControls);
|
|
2786
|
+
|
|
2787
|
+
var _focusBrokenImageMap = focusBrokenImageMap.exports;
|
|
2788
|
+
|
|
2789
|
+
var _focusBrokenImageMap2 = _interopRequireDefault(_focusBrokenImageMap);
|
|
2790
|
+
|
|
2791
|
+
var _focusChildrenOfFocusableFlexbox = focusChildrenOfFocusableFlexbox.exports;
|
|
2792
|
+
|
|
2793
|
+
var _focusChildrenOfFocusableFlexbox2 = _interopRequireDefault(_focusChildrenOfFocusableFlexbox);
|
|
2794
|
+
|
|
2795
|
+
var _focusFieldsetDisabled = focusFieldsetDisabled.exports;
|
|
2796
|
+
|
|
2797
|
+
var _focusFieldsetDisabled2 = _interopRequireDefault(_focusFieldsetDisabled);
|
|
2798
|
+
|
|
2799
|
+
var _focusFieldset = focusFieldset.exports;
|
|
2800
|
+
|
|
2801
|
+
var _focusFieldset2 = _interopRequireDefault(_focusFieldset);
|
|
2802
|
+
|
|
2803
|
+
var _focusFlexboxContainer = focusFlexboxContainer.exports;
|
|
2804
|
+
|
|
2805
|
+
var _focusFlexboxContainer2 = _interopRequireDefault(_focusFlexboxContainer);
|
|
2806
|
+
|
|
2807
|
+
var _focusFormDisabled = focusFormDisabled.exports;
|
|
2808
|
+
|
|
2809
|
+
var _focusFormDisabled2 = _interopRequireDefault(_focusFormDisabled);
|
|
2810
|
+
|
|
2811
|
+
var _focusImgIsmap = focusImgIsmap.exports;
|
|
2812
|
+
|
|
2813
|
+
var _focusImgIsmap2 = _interopRequireDefault(_focusImgIsmap);
|
|
2814
|
+
|
|
2815
|
+
var _focusImgUsemapTabindex = focusImgUsemapTabindex.exports;
|
|
2816
|
+
|
|
2817
|
+
var _focusImgUsemapTabindex2 = _interopRequireDefault(_focusImgUsemapTabindex);
|
|
2818
|
+
|
|
2819
|
+
var _focusInHiddenIframe = focusInHiddenIframe.exports;
|
|
2820
|
+
|
|
2821
|
+
var _focusInHiddenIframe2 = _interopRequireDefault(_focusInHiddenIframe);
|
|
2822
|
+
|
|
2823
|
+
var _focusInZeroDimensionObject = focusInZeroDimensionObject.exports;
|
|
2824
|
+
|
|
2825
|
+
var _focusInZeroDimensionObject2 = _interopRequireDefault(_focusInZeroDimensionObject);
|
|
2826
|
+
|
|
2827
|
+
var _focusInvalidTabindex = focusInvalidTabindex.exports;
|
|
2828
|
+
|
|
2829
|
+
var _focusInvalidTabindex2 = _interopRequireDefault(_focusInvalidTabindex);
|
|
2830
|
+
|
|
2831
|
+
var _focusLabelTabindex = focusLabelTabindex.exports;
|
|
2832
|
+
|
|
2833
|
+
var _focusLabelTabindex2 = _interopRequireDefault(_focusLabelTabindex);
|
|
2834
|
+
|
|
2835
|
+
var _focusObjectSvgHidden = focusObjectSvgHidden.exports;
|
|
2836
|
+
|
|
2837
|
+
var _focusObjectSvgHidden2 = _interopRequireDefault(_focusObjectSvgHidden);
|
|
2838
|
+
|
|
2839
|
+
var _focusObjectSvg = focusObjectSvg.exports;
|
|
2840
|
+
|
|
2841
|
+
var _focusObjectSvg2 = _interopRequireDefault(_focusObjectSvg);
|
|
2842
|
+
|
|
2843
|
+
var _focusObjectSwf = focusObjectSwf.exports;
|
|
2844
|
+
|
|
2845
|
+
var _focusObjectSwf2 = _interopRequireDefault(_focusObjectSwf);
|
|
2846
|
+
|
|
2847
|
+
var _focusRedirectImgUsemap = focusRedirectImgUsemap.exports;
|
|
2848
|
+
|
|
2849
|
+
var _focusRedirectImgUsemap2 = _interopRequireDefault(_focusRedirectImgUsemap);
|
|
2850
|
+
|
|
2851
|
+
var _focusRedirectLegend = focusRedirectLegend.exports;
|
|
2852
|
+
|
|
2853
|
+
var _focusRedirectLegend2 = _interopRequireDefault(_focusRedirectLegend);
|
|
2854
|
+
|
|
2855
|
+
var _focusScrollBody = focusScrollBody.exports;
|
|
2856
|
+
|
|
2857
|
+
var _focusScrollBody2 = _interopRequireDefault(_focusScrollBody);
|
|
2858
|
+
|
|
2859
|
+
var _focusScrollContainerWithoutOverflow = focusScrollContainerWithoutOverflow.exports;
|
|
2860
|
+
|
|
2861
|
+
var _focusScrollContainerWithoutOverflow2 = _interopRequireDefault(_focusScrollContainerWithoutOverflow);
|
|
2862
|
+
|
|
2863
|
+
var _focusScrollContainer = focusScrollContainer.exports;
|
|
2864
|
+
|
|
2865
|
+
var _focusScrollContainer2 = _interopRequireDefault(_focusScrollContainer);
|
|
2866
|
+
|
|
2867
|
+
var _focusSummary = focusSummary.exports;
|
|
2868
|
+
|
|
2869
|
+
var _focusSummary2 = _interopRequireDefault(_focusSummary);
|
|
2870
|
+
|
|
2871
|
+
var _focusSvgFocusableAttribute = focusSvgFocusableAttribute.exports;
|
|
2872
|
+
|
|
2873
|
+
var _focusSvgFocusableAttribute2 = _interopRequireDefault(_focusSvgFocusableAttribute);
|
|
2874
|
+
|
|
2875
|
+
var _focusSvgTabindexAttribute = focusSvgTabindexAttribute.exports;
|
|
2876
|
+
|
|
2877
|
+
var _focusSvgTabindexAttribute2 = _interopRequireDefault(_focusSvgTabindexAttribute);
|
|
2878
|
+
|
|
2879
|
+
var _focusSvgNegativeTabindexAttribute = focusSvgNegativeTabindexAttribute.exports;
|
|
2880
|
+
|
|
2881
|
+
var _focusSvgNegativeTabindexAttribute2 = _interopRequireDefault(_focusSvgNegativeTabindexAttribute);
|
|
2882
|
+
|
|
2883
|
+
var _focusSvgUseTabindex = focusSvgUseTabindex.exports;
|
|
2884
|
+
|
|
2885
|
+
var _focusSvgUseTabindex2 = _interopRequireDefault(_focusSvgUseTabindex);
|
|
2886
|
+
|
|
2887
|
+
var _focusSvgForeignobjectTabindex = focusSvgForeignobjectTabindex.exports;
|
|
2888
|
+
|
|
2889
|
+
var _focusSvgForeignobjectTabindex2 = _interopRequireDefault(_focusSvgForeignobjectTabindex);
|
|
2890
|
+
|
|
2891
|
+
var _focusSvgInIframe = focusSvgInIframe.exports;
|
|
2892
|
+
|
|
2893
|
+
var _focusSvgInIframe2 = _interopRequireDefault(_focusSvgInIframe);
|
|
2894
|
+
|
|
2895
|
+
var _focusSvg = focusSvg.exports;
|
|
2896
|
+
|
|
2897
|
+
var _focusSvg2 = _interopRequireDefault(_focusSvg);
|
|
2898
|
+
|
|
2899
|
+
var _focusTabindexTrailingCharacters = focusTabindexTrailingCharacters.exports;
|
|
2900
|
+
|
|
2901
|
+
var _focusTabindexTrailingCharacters2 = _interopRequireDefault(_focusTabindexTrailingCharacters);
|
|
2902
|
+
|
|
2903
|
+
var _focusTable = focusTable.exports;
|
|
2904
|
+
|
|
2905
|
+
var _focusTable2 = _interopRequireDefault(_focusTable);
|
|
2906
|
+
|
|
2907
|
+
var _focusVideoWithoutControls = focusVideoWithoutControls.exports;
|
|
2908
|
+
|
|
2909
|
+
var _focusVideoWithoutControls2 = _interopRequireDefault(_focusVideoWithoutControls);
|
|
2910
|
+
|
|
2911
|
+
var _tabsequenceAreaAtImgPosition = tabsequenceAreaAtImgPosition.exports;
|
|
2912
|
+
|
|
2913
|
+
var _tabsequenceAreaAtImgPosition2 = _interopRequireDefault(_tabsequenceAreaAtImgPosition);
|
|
2914
|
+
|
|
2915
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
1978
2916
|
|
|
1979
2917
|
var testCallbacks = {
|
|
1980
|
-
cssShadowPiercingDeepCombinator:
|
|
1981
|
-
focusInZeroDimensionObject:
|
|
1982
|
-
focusObjectSwf:
|
|
1983
|
-
focusSvgInIframe:
|
|
1984
|
-
tabsequenceAreaAtImgPosition:
|
|
2918
|
+
cssShadowPiercingDeepCombinator: _cssShadowPiercingDeepCombinator2.default,
|
|
2919
|
+
focusInZeroDimensionObject: _focusInZeroDimensionObject2.default,
|
|
2920
|
+
focusObjectSwf: _focusObjectSwf2.default,
|
|
2921
|
+
focusSvgInIframe: _focusSvgInIframe2.default,
|
|
2922
|
+
tabsequenceAreaAtImgPosition: _tabsequenceAreaAtImgPosition2.default
|
|
1985
2923
|
};
|
|
1986
2924
|
|
|
1987
2925
|
var testDescriptions = {
|
|
1988
|
-
focusAreaImgTabindex:
|
|
1989
|
-
focusAreaTabindex:
|
|
1990
|
-
focusAreaWithoutHref:
|
|
1991
|
-
focusAudioWithoutControls:
|
|
1992
|
-
focusBrokenImageMap:
|
|
1993
|
-
focusChildrenOfFocusableFlexbox:
|
|
1994
|
-
focusFieldsetDisabled:
|
|
1995
|
-
focusFieldset:
|
|
1996
|
-
focusFlexboxContainer:
|
|
1997
|
-
focusFormDisabled:
|
|
1998
|
-
focusImgIsmap:
|
|
1999
|
-
focusImgUsemapTabindex:
|
|
2000
|
-
focusInHiddenIframe:
|
|
2001
|
-
focusInvalidTabindex:
|
|
2002
|
-
focusLabelTabindex:
|
|
2003
|
-
focusObjectSvg:
|
|
2004
|
-
focusObjectSvgHidden:
|
|
2005
|
-
focusRedirectImgUsemap:
|
|
2006
|
-
focusRedirectLegend:
|
|
2007
|
-
focusScrollBody:
|
|
2008
|
-
focusScrollContainerWithoutOverflow:
|
|
2009
|
-
focusScrollContainer:
|
|
2010
|
-
focusSummary:
|
|
2011
|
-
focusSvgFocusableAttribute:
|
|
2012
|
-
focusSvgTabindexAttribute:
|
|
2013
|
-
focusSvgNegativeTabindexAttribute:
|
|
2014
|
-
focusSvgUseTabindex:
|
|
2015
|
-
focusSvgForeignobjectTabindex:
|
|
2016
|
-
focusSvg:
|
|
2017
|
-
focusTabindexTrailingCharacters:
|
|
2018
|
-
focusTable:
|
|
2019
|
-
focusVideoWithoutControls:
|
|
2926
|
+
focusAreaImgTabindex: _focusAreaImgTabindex2.default,
|
|
2927
|
+
focusAreaTabindex: _focusAreaTabindex2.default,
|
|
2928
|
+
focusAreaWithoutHref: _focusAreaWithoutHref2.default,
|
|
2929
|
+
focusAudioWithoutControls: _focusAudioWithoutControls2.default,
|
|
2930
|
+
focusBrokenImageMap: _focusBrokenImageMap2.default,
|
|
2931
|
+
focusChildrenOfFocusableFlexbox: _focusChildrenOfFocusableFlexbox2.default,
|
|
2932
|
+
focusFieldsetDisabled: _focusFieldsetDisabled2.default,
|
|
2933
|
+
focusFieldset: _focusFieldset2.default,
|
|
2934
|
+
focusFlexboxContainer: _focusFlexboxContainer2.default,
|
|
2935
|
+
focusFormDisabled: _focusFormDisabled2.default,
|
|
2936
|
+
focusImgIsmap: _focusImgIsmap2.default,
|
|
2937
|
+
focusImgUsemapTabindex: _focusImgUsemapTabindex2.default,
|
|
2938
|
+
focusInHiddenIframe: _focusInHiddenIframe2.default,
|
|
2939
|
+
focusInvalidTabindex: _focusInvalidTabindex2.default,
|
|
2940
|
+
focusLabelTabindex: _focusLabelTabindex2.default,
|
|
2941
|
+
focusObjectSvg: _focusObjectSvg2.default,
|
|
2942
|
+
focusObjectSvgHidden: _focusObjectSvgHidden2.default,
|
|
2943
|
+
focusRedirectImgUsemap: _focusRedirectImgUsemap2.default,
|
|
2944
|
+
focusRedirectLegend: _focusRedirectLegend2.default,
|
|
2945
|
+
focusScrollBody: _focusScrollBody2.default,
|
|
2946
|
+
focusScrollContainerWithoutOverflow: _focusScrollContainerWithoutOverflow2.default,
|
|
2947
|
+
focusScrollContainer: _focusScrollContainer2.default,
|
|
2948
|
+
focusSummary: _focusSummary2.default,
|
|
2949
|
+
focusSvgFocusableAttribute: _focusSvgFocusableAttribute2.default,
|
|
2950
|
+
focusSvgTabindexAttribute: _focusSvgTabindexAttribute2.default,
|
|
2951
|
+
focusSvgNegativeTabindexAttribute: _focusSvgNegativeTabindexAttribute2.default,
|
|
2952
|
+
focusSvgUseTabindex: _focusSvgUseTabindex2.default,
|
|
2953
|
+
focusSvgForeignobjectTabindex: _focusSvgForeignobjectTabindex2.default,
|
|
2954
|
+
focusSvg: _focusSvg2.default,
|
|
2955
|
+
focusTabindexTrailingCharacters: _focusTabindexTrailingCharacters2.default,
|
|
2956
|
+
focusTable: _focusTable2.default,
|
|
2957
|
+
focusVideoWithoutControls: _focusVideoWithoutControls2.default
|
|
2020
2958
|
};
|
|
2021
2959
|
|
|
2022
2960
|
function executeTests() {
|
|
2023
|
-
var results =
|
|
2961
|
+
var results = (0, _detectFocus2.default)(testDescriptions);
|
|
2024
2962
|
Object.keys(testCallbacks).forEach(function (key) {
|
|
2025
2963
|
results[key] = testCallbacks[key]();
|
|
2026
2964
|
});
|
|
@@ -2028,37 +2966,26 @@ function executeTests() {
|
|
|
2028
2966
|
return results;
|
|
2029
2967
|
}
|
|
2030
2968
|
|
|
2031
|
-
var supportsCache = null;
|
|
2032
|
-
|
|
2033
|
-
function _supports () {
|
|
2034
|
-
if (supportsCache) {
|
|
2035
|
-
return supportsCache;
|
|
2036
|
-
}
|
|
2969
|
+
var supportsCache$1 = null;
|
|
2037
2970
|
|
|
2038
|
-
|
|
2039
|
-
if (!supportsCache.time) {
|
|
2040
|
-
cache$1.set(executeTests());
|
|
2041
|
-
supportsCache = cache$1.get();
|
|
2042
|
-
}
|
|
2971
|
+
module.exports = exports['default'];
|
|
2043
2972
|
|
|
2044
|
-
|
|
2045
|
-
}
|
|
2973
|
+
}(supports, supports.exports));
|
|
2046
2974
|
|
|
2047
|
-
|
|
2975
|
+
(function (module, exports) {
|
|
2048
2976
|
|
|
2049
|
-
|
|
2050
|
-
|
|
2051
|
-
|
|
2052
|
-
var validIntegerPatternWithTrailing = /^\s*(-|\+)?[0-9]+.*$/;
|
|
2977
|
+
Object.defineProperty(exports, "__esModule", {
|
|
2978
|
+
value: true
|
|
2979
|
+
});
|
|
2053
2980
|
|
|
2054
|
-
function
|
|
2055
|
-
if (!supports$
|
|
2056
|
-
supports$
|
|
2981
|
+
exports.default = function (context) {
|
|
2982
|
+
if (!supports$1) {
|
|
2983
|
+
supports$1 = (0, _supports3.default)();
|
|
2057
2984
|
}
|
|
2058
2985
|
|
|
2059
|
-
var validIntegerPattern = supports$
|
|
2986
|
+
var validIntegerPattern = supports$1.focusTabindexTrailingCharacters ? validIntegerPatternWithTrailing : validIntegerPatternNoTrailing;
|
|
2060
2987
|
|
|
2061
|
-
var element =
|
|
2988
|
+
var element = (0, _contextToElement2.default)({
|
|
2062
2989
|
label: 'is/valid-tabindex',
|
|
2063
2990
|
resolveDocument: true,
|
|
2064
2991
|
context: context
|
|
@@ -2075,12 +3002,12 @@ function isValidTabindex (context) {
|
|
|
2075
3002
|
|
|
2076
3003
|
// older Firefox and Internet Explorer don't support tabindex on SVG elements
|
|
2077
3004
|
var isSvgElement = element.ownerSVGElement || element.nodeName.toLowerCase() === 'svg';
|
|
2078
|
-
if (isSvgElement && !supports$
|
|
3005
|
+
if (isSvgElement && !supports$1.focusSvgTabindexAttribute) {
|
|
2079
3006
|
return false;
|
|
2080
3007
|
}
|
|
2081
3008
|
|
|
2082
3009
|
// @browser-issue Gecko https://bugzilla.mozilla.org/show_bug.cgi?id=1128054
|
|
2083
|
-
if (supports$
|
|
3010
|
+
if (supports$1.focusInvalidTabindex) {
|
|
2084
3011
|
return true;
|
|
2085
3012
|
}
|
|
2086
3013
|
|
|
@@ -2093,10 +3020,39 @@ function isValidTabindex (context) {
|
|
|
2093
3020
|
}
|
|
2094
3021
|
|
|
2095
3022
|
return Boolean(tabindex && validIntegerPattern.test(tabindex));
|
|
2096
|
-
}
|
|
3023
|
+
};
|
|
2097
3024
|
|
|
2098
|
-
|
|
2099
|
-
|
|
3025
|
+
var _contextToElement = contextToElement.exports;
|
|
3026
|
+
|
|
3027
|
+
var _contextToElement2 = _interopRequireDefault(_contextToElement);
|
|
3028
|
+
|
|
3029
|
+
var _supports2 = supports.exports;
|
|
3030
|
+
|
|
3031
|
+
var _supports3 = _interopRequireDefault(_supports2);
|
|
3032
|
+
|
|
3033
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
3034
|
+
|
|
3035
|
+
// determine if an element's tabindex attribute has a valid value
|
|
3036
|
+
|
|
3037
|
+
var supports$1 = void 0;
|
|
3038
|
+
|
|
3039
|
+
// https://www.w3.org/TR/html5/infrastructure.html#rules-for-parsing-integers
|
|
3040
|
+
// NOTE: all browsers agree to allow trailing spaces as well
|
|
3041
|
+
var validIntegerPatternNoTrailing = /^\s*(-|\+)?[0-9]+\s*$/;
|
|
3042
|
+
var validIntegerPatternWithTrailing = /^\s*(-|\+)?[0-9]+.*$/;
|
|
3043
|
+
|
|
3044
|
+
module.exports = exports['default'];
|
|
3045
|
+
|
|
3046
|
+
}(validTabindex, validTabindex.exports));
|
|
3047
|
+
|
|
3048
|
+
(function (module, exports) {
|
|
3049
|
+
|
|
3050
|
+
Object.defineProperty(exports, "__esModule", {
|
|
3051
|
+
value: true
|
|
3052
|
+
});
|
|
3053
|
+
|
|
3054
|
+
exports.default = function (element) {
|
|
3055
|
+
if (!(0, _validTabindex2.default)(element)) {
|
|
2100
3056
|
return null;
|
|
2101
3057
|
}
|
|
2102
3058
|
|
|
@@ -2105,10 +3061,30 @@ function tabindexValue (element) {
|
|
|
2105
3061
|
var hasTabindex = element.hasAttribute('tabindex');
|
|
2106
3062
|
var attributeName = hasTabindex ? 'tabindex' : 'tabIndex';
|
|
2107
3063
|
|
|
2108
|
-
// @browser-issue Gecko https://bugzilla.mozilla.org/show_bug.cgi?id=1128054
|
|
2109
|
-
var tabindex = parseInt(element.getAttribute(attributeName), 10);
|
|
2110
|
-
return isNaN(tabindex) ? -1 : tabindex;
|
|
2111
|
-
}
|
|
3064
|
+
// @browser-issue Gecko https://bugzilla.mozilla.org/show_bug.cgi?id=1128054
|
|
3065
|
+
var tabindex = parseInt(element.getAttribute(attributeName), 10);
|
|
3066
|
+
return isNaN(tabindex) ? -1 : tabindex;
|
|
3067
|
+
};
|
|
3068
|
+
|
|
3069
|
+
var _validTabindex = validTabindex.exports;
|
|
3070
|
+
|
|
3071
|
+
var _validTabindex2 = _interopRequireDefault(_validTabindex);
|
|
3072
|
+
|
|
3073
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
3074
|
+
|
|
3075
|
+
module.exports = exports['default'];
|
|
3076
|
+
|
|
3077
|
+
}(tabindexValue, tabindexValue.exports));
|
|
3078
|
+
|
|
3079
|
+
var is_util = {};
|
|
3080
|
+
|
|
3081
|
+
Object.defineProperty(is_util, "__esModule", {
|
|
3082
|
+
value: true
|
|
3083
|
+
});
|
|
3084
|
+
is_util.isUserModifyWritable = isUserModifyWritable;
|
|
3085
|
+
is_util.hasCssOverflowScroll = hasCssOverflowScroll;
|
|
3086
|
+
is_util.hasCssDisplayFlex = hasCssDisplayFlex;
|
|
3087
|
+
is_util.isScrollableContainer = isScrollableContainer;
|
|
2112
3088
|
|
|
2113
3089
|
// this is a shared utility file for focus-relevant.js and tabbable.js
|
|
2114
3090
|
// separate testing of this file's functions is not necessary,
|
|
@@ -2146,7 +3122,44 @@ function isScrollableContainer(element, nodeName, parentNodeName, parentStyle) {
|
|
|
2146
3122
|
return element.offsetHeight < element.scrollHeight || element.offsetWidth < element.scrollWidth;
|
|
2147
3123
|
}
|
|
2148
3124
|
|
|
2149
|
-
|
|
3125
|
+
(function (module, exports) {
|
|
3126
|
+
|
|
3127
|
+
Object.defineProperty(exports, "__esModule", {
|
|
3128
|
+
value: true
|
|
3129
|
+
});
|
|
3130
|
+
|
|
3131
|
+
var _parents = parents.exports;
|
|
3132
|
+
|
|
3133
|
+
var _parents2 = _interopRequireDefault(_parents);
|
|
3134
|
+
|
|
3135
|
+
var _contextToElement = contextToElement.exports;
|
|
3136
|
+
|
|
3137
|
+
var _contextToElement2 = _interopRequireDefault(_contextToElement);
|
|
3138
|
+
|
|
3139
|
+
var _elementMatches = elementMatches.exports;
|
|
3140
|
+
|
|
3141
|
+
var _elementMatches2 = _interopRequireDefault(_elementMatches);
|
|
3142
|
+
|
|
3143
|
+
var _tabindexValue = tabindexValue.exports;
|
|
3144
|
+
|
|
3145
|
+
var _tabindexValue2 = _interopRequireDefault(_tabindexValue);
|
|
3146
|
+
|
|
3147
|
+
var _validTabindex = validTabindex.exports;
|
|
3148
|
+
|
|
3149
|
+
var _validTabindex2 = _interopRequireDefault(_validTabindex);
|
|
3150
|
+
|
|
3151
|
+
var _is = is_util;
|
|
3152
|
+
|
|
3153
|
+
var _supports2 = supports.exports;
|
|
3154
|
+
|
|
3155
|
+
var _supports3 = _interopRequireDefault(_supports2);
|
|
3156
|
+
|
|
3157
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
3158
|
+
|
|
3159
|
+
var supports$1 = void 0;
|
|
3160
|
+
// determine if an element supports.can be focused by script regardless
|
|
3161
|
+
// of the element actually being focusable at the time of execution
|
|
3162
|
+
// i.e. <input disabled> is conisdered focus-relevant, but not focusable
|
|
2150
3163
|
|
|
2151
3164
|
function isFocusRelevantRules() {
|
|
2152
3165
|
var _ref = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {},
|
|
@@ -2158,11 +3171,11 @@ function isFocusRelevantRules() {
|
|
|
2158
3171
|
shadow: false
|
|
2159
3172
|
} : _ref$except;
|
|
2160
3173
|
|
|
2161
|
-
if (!supports$
|
|
2162
|
-
supports$
|
|
3174
|
+
if (!supports$1) {
|
|
3175
|
+
supports$1 = (0, _supports3.default)();
|
|
2163
3176
|
}
|
|
2164
3177
|
|
|
2165
|
-
var element =
|
|
3178
|
+
var element = (0, _contextToElement2.default)({
|
|
2166
3179
|
label: 'is/focus-relevant',
|
|
2167
3180
|
resolveDocument: true,
|
|
2168
3181
|
context: context
|
|
@@ -2184,7 +3197,7 @@ function isFocusRelevantRules() {
|
|
|
2184
3197
|
return true;
|
|
2185
3198
|
}
|
|
2186
3199
|
|
|
2187
|
-
if (nodeName === 'legend' && supports$
|
|
3200
|
+
if (nodeName === 'legend' && supports$1.focusRedirectLegend) {
|
|
2188
3201
|
// specifics filtered in is/focusable
|
|
2189
3202
|
return true;
|
|
2190
3203
|
}
|
|
@@ -2210,10 +3223,10 @@ function isFocusRelevantRules() {
|
|
|
2210
3223
|
|
|
2211
3224
|
if (nodeName === 'object') {
|
|
2212
3225
|
var svgType = element.getAttribute('type');
|
|
2213
|
-
if (!supports$
|
|
3226
|
+
if (!supports$1.focusObjectSvg && svgType === 'image/svg+xml') {
|
|
2214
3227
|
// object[type="image/svg+xml"] is not focusable in Internet Explorer
|
|
2215
3228
|
return false;
|
|
2216
|
-
} else if (!supports$
|
|
3229
|
+
} else if (!supports$1.focusObjectSwf && svgType === 'application/x-shockwave-flash') {
|
|
2217
3230
|
// object[type="application/x-shockwave-flash"] is not focusable in Internet Explorer 9
|
|
2218
3231
|
return false;
|
|
2219
3232
|
}
|
|
@@ -2235,32 +3248,32 @@ function isFocusRelevantRules() {
|
|
|
2235
3248
|
return true;
|
|
2236
3249
|
}
|
|
2237
3250
|
|
|
2238
|
-
if (nodeName === 'audio' && (supports$
|
|
3251
|
+
if (nodeName === 'audio' && (supports$1.focusAudioWithoutControls || element.hasAttribute('controls'))) {
|
|
2239
3252
|
return true;
|
|
2240
3253
|
}
|
|
2241
3254
|
|
|
2242
|
-
if (nodeName === 'video' && (supports$
|
|
3255
|
+
if (nodeName === 'video' && (supports$1.focusVideoWithoutControls || element.hasAttribute('controls'))) {
|
|
2243
3256
|
return true;
|
|
2244
3257
|
}
|
|
2245
3258
|
|
|
2246
|
-
if (supports$
|
|
3259
|
+
if (supports$1.focusSummary && nodeName === 'summary') {
|
|
2247
3260
|
return true;
|
|
2248
3261
|
}
|
|
2249
3262
|
|
|
2250
|
-
var validTabindex =
|
|
3263
|
+
var validTabindex = (0, _validTabindex2.default)(element);
|
|
2251
3264
|
|
|
2252
3265
|
if (nodeName === 'img' && element.hasAttribute('usemap')) {
|
|
2253
3266
|
// Gecko, Trident and Edge do not allow an image with an image map and tabindex to be focused,
|
|
2254
3267
|
// it appears the tabindex is overruled so focus is still forwarded to the <map>
|
|
2255
|
-
return validTabindex && supports$
|
|
3268
|
+
return validTabindex && supports$1.focusImgUsemapTabindex || supports$1.focusRedirectImgUsemap;
|
|
2256
3269
|
}
|
|
2257
3270
|
|
|
2258
|
-
if (supports$
|
|
3271
|
+
if (supports$1.focusTable && (nodeName === 'table' || nodeName === 'td')) {
|
|
2259
3272
|
// IE10-11 supports.can focus <table> and <td>
|
|
2260
3273
|
return true;
|
|
2261
3274
|
}
|
|
2262
3275
|
|
|
2263
|
-
if (supports$
|
|
3276
|
+
if (supports$1.focusFieldset && nodeName === 'fieldset') {
|
|
2264
3277
|
// IE10-11 supports.can focus <fieldset>
|
|
2265
3278
|
return true;
|
|
2266
3279
|
}
|
|
@@ -2268,23 +3281,23 @@ function isFocusRelevantRules() {
|
|
|
2268
3281
|
var isSvgElement = nodeName === 'svg';
|
|
2269
3282
|
var isSvgContent = element.ownerSVGElement;
|
|
2270
3283
|
var focusableAttribute = element.getAttribute('focusable');
|
|
2271
|
-
var tabindex =
|
|
3284
|
+
var tabindex = (0, _tabindexValue2.default)(element);
|
|
2272
3285
|
|
|
2273
|
-
if (nodeName === 'use' && tabindex !== null && !supports$
|
|
3286
|
+
if (nodeName === 'use' && tabindex !== null && !supports$1.focusSvgUseTabindex) {
|
|
2274
3287
|
// <use> cannot be made focusable by adding a tabindex attribute anywhere but Blink and WebKit
|
|
2275
3288
|
return false;
|
|
2276
3289
|
}
|
|
2277
3290
|
|
|
2278
3291
|
if (nodeName === 'foreignobject') {
|
|
2279
3292
|
// <use> can only be made focusable in Blink and WebKit
|
|
2280
|
-
return tabindex !== null && supports$
|
|
3293
|
+
return tabindex !== null && supports$1.focusSvgForeignobjectTabindex;
|
|
2281
3294
|
}
|
|
2282
3295
|
|
|
2283
|
-
if (
|
|
3296
|
+
if ((0, _elementMatches2.default)(element, 'svg a') && element.hasAttribute('xlink:href')) {
|
|
2284
3297
|
return true;
|
|
2285
3298
|
}
|
|
2286
3299
|
|
|
2287
|
-
if ((isSvgElement || isSvgContent) && element.focus && !supports$
|
|
3300
|
+
if ((isSvgElement || isSvgContent) && element.focus && !supports$1.focusSvgNegativeTabindexAttribute && tabindex < 0) {
|
|
2288
3301
|
// Firefox 51 and 52 treat any natively tabbable SVG element with
|
|
2289
3302
|
// tabindex="-1" as tabbable and everything else as inert
|
|
2290
3303
|
// see https://bugzilla.mozilla.org/show_bug.cgi?id=1302340
|
|
@@ -2292,17 +3305,17 @@ function isFocusRelevantRules() {
|
|
|
2292
3305
|
}
|
|
2293
3306
|
|
|
2294
3307
|
if (isSvgElement) {
|
|
2295
|
-
return validTabindex || supports$
|
|
3308
|
+
return validTabindex || supports$1.focusSvg || supports$1.focusSvgInIframe
|
|
2296
3309
|
// Internet Explorer understands the focusable attribute introduced in SVG Tiny 1.2
|
|
2297
|
-
|| Boolean(supports$
|
|
3310
|
+
|| Boolean(supports$1.focusSvgFocusableAttribute && focusableAttribute && focusableAttribute === 'true');
|
|
2298
3311
|
}
|
|
2299
3312
|
|
|
2300
3313
|
if (isSvgContent) {
|
|
2301
|
-
if (supports$
|
|
3314
|
+
if (supports$1.focusSvgTabindexAttribute && validTabindex) {
|
|
2302
3315
|
return true;
|
|
2303
3316
|
}
|
|
2304
3317
|
|
|
2305
|
-
if (supports$
|
|
3318
|
+
if (supports$1.focusSvgFocusableAttribute) {
|
|
2306
3319
|
// Internet Explorer understands the focusable attribute introduced in SVG Tiny 1.2
|
|
2307
3320
|
return focusableAttribute === 'true';
|
|
2308
3321
|
}
|
|
@@ -2314,14 +3327,14 @@ function isFocusRelevantRules() {
|
|
|
2314
3327
|
}
|
|
2315
3328
|
|
|
2316
3329
|
var style = window.getComputedStyle(element, null);
|
|
2317
|
-
if (isUserModifyWritable(style)) {
|
|
3330
|
+
if ((0, _is.isUserModifyWritable)(style)) {
|
|
2318
3331
|
return true;
|
|
2319
3332
|
}
|
|
2320
3333
|
|
|
2321
|
-
if (supports$
|
|
3334
|
+
if (supports$1.focusImgIsmap && nodeName === 'img' && element.hasAttribute('ismap')) {
|
|
2322
3335
|
// IE10-11 considers the <img> in <a href><img ismap> focusable
|
|
2323
3336
|
// https://github.com/medialize/ally.js/issues/20
|
|
2324
|
-
var hasLinkParent =
|
|
3337
|
+
var hasLinkParent = (0, _parents2.default)({ context: element }).some(function (parent) {
|
|
2325
3338
|
return parent.nodeName.toLowerCase() === 'a' && parent.hasAttribute('href');
|
|
2326
3339
|
});
|
|
2327
3340
|
|
|
@@ -2331,22 +3344,22 @@ function isFocusRelevantRules() {
|
|
|
2331
3344
|
}
|
|
2332
3345
|
|
|
2333
3346
|
// https://github.com/medialize/ally.js/issues/21
|
|
2334
|
-
if (!except.scrollable && supports$
|
|
2335
|
-
if (supports$
|
|
3347
|
+
if (!except.scrollable && supports$1.focusScrollContainer) {
|
|
3348
|
+
if (supports$1.focusScrollContainerWithoutOverflow) {
|
|
2336
3349
|
// Internet Explorer does will consider the scrollable area focusable
|
|
2337
3350
|
// if the element is a <div> or a <span> and it is in fact scrollable,
|
|
2338
3351
|
// regardless of the CSS overflow property
|
|
2339
|
-
if (isScrollableContainer(element, nodeName)) {
|
|
3352
|
+
if ((0, _is.isScrollableContainer)(element, nodeName)) {
|
|
2340
3353
|
return true;
|
|
2341
3354
|
}
|
|
2342
|
-
} else if (hasCssOverflowScroll(style)) {
|
|
3355
|
+
} else if ((0, _is.hasCssOverflowScroll)(style)) {
|
|
2343
3356
|
// Firefox requires proper overflow setting, IE does not necessarily
|
|
2344
3357
|
// https://developer.mozilla.org/en-US/docs/Web/CSS/overflow
|
|
2345
3358
|
return true;
|
|
2346
3359
|
}
|
|
2347
3360
|
}
|
|
2348
3361
|
|
|
2349
|
-
if (!except.flexbox && supports$
|
|
3362
|
+
if (!except.flexbox && supports$1.focusFlexboxContainer && (0, _is.hasCssDisplayFlex)(style)) {
|
|
2350
3363
|
// elements with display:flex are focusable in IE10-11
|
|
2351
3364
|
return true;
|
|
2352
3365
|
}
|
|
@@ -2355,15 +3368,15 @@ function isFocusRelevantRules() {
|
|
|
2355
3368
|
if (!except.scrollable && parent) {
|
|
2356
3369
|
var parentNodeName = parent.nodeName.toLowerCase();
|
|
2357
3370
|
var parentStyle = window.getComputedStyle(parent, null);
|
|
2358
|
-
if (supports$
|
|
3371
|
+
if (supports$1.focusScrollBody && (0, _is.isScrollableContainer)(parent, nodeName, parentNodeName, parentStyle)) {
|
|
2359
3372
|
// scrollable bodies are focusable Internet Explorer
|
|
2360
3373
|
// https://github.com/medialize/ally.js/issues/21
|
|
2361
3374
|
return true;
|
|
2362
3375
|
}
|
|
2363
3376
|
|
|
2364
3377
|
// Children of focusable elements with display:flex are focusable in IE10-11
|
|
2365
|
-
if (supports$
|
|
2366
|
-
if (hasCssDisplayFlex(parentStyle)) {
|
|
3378
|
+
if (supports$1.focusChildrenOfFocusableFlexbox) {
|
|
3379
|
+
if ((0, _is.hasCssDisplayFlex)(parentStyle)) {
|
|
2367
3380
|
return true;
|
|
2368
3381
|
}
|
|
2369
3382
|
}
|
|
@@ -2393,7 +3406,23 @@ isFocusRelevantRules.except = function () {
|
|
|
2393
3406
|
|
|
2394
3407
|
// provide isFocusRelevant(context) as default iterator callback
|
|
2395
3408
|
var isFocusRelevant = isFocusRelevantRules.except({});
|
|
3409
|
+
exports.default = isFocusRelevant;
|
|
3410
|
+
module.exports = exports['default'];
|
|
3411
|
+
|
|
3412
|
+
}(focusRelevant, focusRelevant.exports));
|
|
3413
|
+
|
|
3414
|
+
var validArea = {exports: {}};
|
|
2396
3415
|
|
|
3416
|
+
var visible = {exports: {}};
|
|
3417
|
+
|
|
3418
|
+
var arrayFindIndex = {exports: {}};
|
|
3419
|
+
|
|
3420
|
+
(function (module, exports) {
|
|
3421
|
+
|
|
3422
|
+
Object.defineProperty(exports, "__esModule", {
|
|
3423
|
+
value: true
|
|
3424
|
+
});
|
|
3425
|
+
exports.default = findIndex;
|
|
2397
3426
|
function findIndex(array, callback) {
|
|
2398
3427
|
// attempt to use native or polyfilled Array#findIndex first
|
|
2399
3428
|
if (array.findIndex) {
|
|
@@ -2416,8 +3445,21 @@ function findIndex(array, callback) {
|
|
|
2416
3445
|
|
|
2417
3446
|
return -1;
|
|
2418
3447
|
}
|
|
3448
|
+
module.exports = exports["default"];
|
|
2419
3449
|
|
|
2420
|
-
|
|
3450
|
+
}(arrayFindIndex, arrayFindIndex.exports));
|
|
3451
|
+
|
|
3452
|
+
var getFrameElement = {exports: {}};
|
|
3453
|
+
|
|
3454
|
+
var getContentDocument = {exports: {}};
|
|
3455
|
+
|
|
3456
|
+
(function (module, exports) {
|
|
3457
|
+
|
|
3458
|
+
Object.defineProperty(exports, "__esModule", {
|
|
3459
|
+
value: true
|
|
3460
|
+
});
|
|
3461
|
+
|
|
3462
|
+
exports.default = function (node) {
|
|
2421
3463
|
try {
|
|
2422
3464
|
// works on <object> and <iframe>
|
|
2423
3465
|
return node.contentDocument
|
|
@@ -2430,9 +3472,23 @@ function getContentDocument (node) {
|
|
|
2430
3472
|
// also IE may throw member not found exception e.g. on <object type="image/png">
|
|
2431
3473
|
return null;
|
|
2432
3474
|
}
|
|
2433
|
-
}
|
|
3475
|
+
};
|
|
2434
3476
|
|
|
2435
|
-
|
|
3477
|
+
module.exports = exports["default"];
|
|
3478
|
+
|
|
3479
|
+
}(getContentDocument, getContentDocument.exports));
|
|
3480
|
+
|
|
3481
|
+
var getWindow = {exports: {}};
|
|
3482
|
+
|
|
3483
|
+
var getDocument = {exports: {}};
|
|
3484
|
+
|
|
3485
|
+
(function (module, exports) {
|
|
3486
|
+
|
|
3487
|
+
Object.defineProperty(exports, "__esModule", {
|
|
3488
|
+
value: true
|
|
3489
|
+
});
|
|
3490
|
+
|
|
3491
|
+
exports.default = function (node) {
|
|
2436
3492
|
if (!node) {
|
|
2437
3493
|
return document;
|
|
2438
3494
|
}
|
|
@@ -2442,18 +3498,44 @@ function getDocument (node) {
|
|
|
2442
3498
|
}
|
|
2443
3499
|
|
|
2444
3500
|
return node.ownerDocument || document;
|
|
2445
|
-
}
|
|
3501
|
+
};
|
|
3502
|
+
|
|
3503
|
+
module.exports = exports["default"];
|
|
3504
|
+
|
|
3505
|
+
}(getDocument, getDocument.exports));
|
|
3506
|
+
|
|
3507
|
+
(function (module, exports) {
|
|
2446
3508
|
|
|
2447
|
-
|
|
2448
|
-
|
|
3509
|
+
Object.defineProperty(exports, "__esModule", {
|
|
3510
|
+
value: true
|
|
3511
|
+
});
|
|
3512
|
+
|
|
3513
|
+
exports.default = function (node) {
|
|
3514
|
+
var _document = (0, _getDocument2.default)(node);
|
|
2449
3515
|
return _document.defaultView || window;
|
|
2450
|
-
}
|
|
3516
|
+
};
|
|
2451
3517
|
|
|
2452
|
-
var
|
|
3518
|
+
var _getDocument = getDocument.exports;
|
|
3519
|
+
|
|
3520
|
+
var _getDocument2 = _interopRequireDefault(_getDocument);
|
|
3521
|
+
|
|
3522
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
3523
|
+
|
|
3524
|
+
module.exports = exports['default'];
|
|
3525
|
+
|
|
3526
|
+
}(getWindow, getWindow.exports));
|
|
3527
|
+
|
|
3528
|
+
var selectInShadows = {exports: {}};
|
|
3529
|
+
|
|
3530
|
+
(function (module, exports) {
|
|
3531
|
+
|
|
3532
|
+
Object.defineProperty(exports, "__esModule", {
|
|
3533
|
+
value: true
|
|
3534
|
+
});
|
|
2453
3535
|
|
|
2454
|
-
function
|
|
3536
|
+
exports.default = function (selector) {
|
|
2455
3537
|
if (typeof shadowPrefix !== 'string') {
|
|
2456
|
-
var operator =
|
|
3538
|
+
var operator = (0, _cssShadowPiercingDeepCombinator2.default)();
|
|
2457
3539
|
if (operator) {
|
|
2458
3540
|
shadowPrefix = ', html ' + operator + ' ';
|
|
2459
3541
|
}
|
|
@@ -2464,13 +3546,48 @@ function selectInShadows (selector) {
|
|
|
2464
3546
|
}
|
|
2465
3547
|
|
|
2466
3548
|
return selector + shadowPrefix + selector.replace(/\s*,\s*/g, ',').split(',').join(shadowPrefix);
|
|
2467
|
-
}
|
|
3549
|
+
};
|
|
3550
|
+
|
|
3551
|
+
var _cssShadowPiercingDeepCombinator = cssShadowPiercingDeepCombinator.exports;
|
|
3552
|
+
|
|
3553
|
+
var _cssShadowPiercingDeepCombinator2 = _interopRequireDefault(_cssShadowPiercingDeepCombinator);
|
|
3554
|
+
|
|
3555
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
3556
|
+
|
|
3557
|
+
var shadowPrefix = void 0;
|
|
3558
|
+
// convert a CSS selector so that it also pierces ShadowDOM
|
|
3559
|
+
// takes ".a, #b" and turns it into ".a, #b, html >>> .a, html >>> #b"
|
|
3560
|
+
|
|
3561
|
+
module.exports = exports['default'];
|
|
3562
|
+
|
|
3563
|
+
}(selectInShadows, selectInShadows.exports));
|
|
3564
|
+
|
|
3565
|
+
(function (module, exports) {
|
|
3566
|
+
|
|
3567
|
+
Object.defineProperty(exports, "__esModule", {
|
|
3568
|
+
value: true
|
|
3569
|
+
});
|
|
3570
|
+
exports.default = getFrameElement;
|
|
3571
|
+
|
|
3572
|
+
var _getContentDocument = getContentDocument.exports;
|
|
3573
|
+
|
|
3574
|
+
var _getContentDocument2 = _interopRequireDefault(_getContentDocument);
|
|
3575
|
+
|
|
3576
|
+
var _getWindow = getWindow.exports;
|
|
3577
|
+
|
|
3578
|
+
var _getWindow2 = _interopRequireDefault(_getWindow);
|
|
3579
|
+
|
|
3580
|
+
var _selectInShadows = selectInShadows.exports;
|
|
3581
|
+
|
|
3582
|
+
var _selectInShadows2 = _interopRequireDefault(_selectInShadows);
|
|
3583
|
+
|
|
3584
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
2468
3585
|
|
|
2469
3586
|
var selector = void 0;
|
|
2470
3587
|
|
|
2471
3588
|
function findDocumentHostElement(_window) {
|
|
2472
3589
|
if (!selector) {
|
|
2473
|
-
selector =
|
|
3590
|
+
selector = (0, _selectInShadows2.default)('object, iframe');
|
|
2474
3591
|
}
|
|
2475
3592
|
|
|
2476
3593
|
if (_window._frameElement !== undefined) {
|
|
@@ -2481,7 +3598,7 @@ function findDocumentHostElement(_window) {
|
|
|
2481
3598
|
|
|
2482
3599
|
var potentialHosts = _window.parent.document.querySelectorAll(selector);
|
|
2483
3600
|
[].some.call(potentialHosts, function (element) {
|
|
2484
|
-
var _document =
|
|
3601
|
+
var _document = (0, _getContentDocument2.default)(element);
|
|
2485
3602
|
if (_document !== _window.document) {
|
|
2486
3603
|
return false;
|
|
2487
3604
|
}
|
|
@@ -2494,7 +3611,7 @@ function findDocumentHostElement(_window) {
|
|
|
2494
3611
|
}
|
|
2495
3612
|
|
|
2496
3613
|
function getFrameElement(element) {
|
|
2497
|
-
var _window =
|
|
3614
|
+
var _window = (0, _getWindow2.default)(element);
|
|
2498
3615
|
if (!_window.parent || _window.parent === _window) {
|
|
2499
3616
|
// if there is no parent browsing context,
|
|
2500
3617
|
// we're not going to get a frameElement either way
|
|
@@ -2509,9 +3626,40 @@ function getFrameElement(element) {
|
|
|
2509
3626
|
return null;
|
|
2510
3627
|
}
|
|
2511
3628
|
}
|
|
3629
|
+
module.exports = exports['default'];
|
|
3630
|
+
|
|
3631
|
+
}(getFrameElement, getFrameElement.exports));
|
|
3632
|
+
|
|
3633
|
+
(function (module, exports) {
|
|
3634
|
+
|
|
3635
|
+
Object.defineProperty(exports, "__esModule", {
|
|
3636
|
+
value: true
|
|
3637
|
+
});
|
|
3638
|
+
|
|
3639
|
+
var _arrayFindIndex = arrayFindIndex.exports;
|
|
3640
|
+
|
|
3641
|
+
var _arrayFindIndex2 = _interopRequireDefault(_arrayFindIndex);
|
|
3642
|
+
|
|
3643
|
+
var _parents = parents.exports;
|
|
3644
|
+
|
|
3645
|
+
var _parents2 = _interopRequireDefault(_parents);
|
|
3646
|
+
|
|
3647
|
+
var _contextToElement = contextToElement.exports;
|
|
3648
|
+
|
|
3649
|
+
var _contextToElement2 = _interopRequireDefault(_contextToElement);
|
|
3650
|
+
|
|
3651
|
+
var _getFrameElement = getFrameElement.exports;
|
|
3652
|
+
|
|
3653
|
+
var _getFrameElement2 = _interopRequireDefault(_getFrameElement);
|
|
3654
|
+
|
|
3655
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
2512
3656
|
|
|
2513
3657
|
// https://www.w3.org/TR/html5/rendering.html#being-rendered
|
|
2514
3658
|
// <area> is not rendered, but we *consider* it visible to simplfiy this function's usage
|
|
3659
|
+
|
|
3660
|
+
// determine if an element is rendered
|
|
3661
|
+
// NOTE: that does not mean an element is visible in the viewport, see util/visible-area
|
|
3662
|
+
|
|
2515
3663
|
var notRenderedElementsPattern = /^(area)$/;
|
|
2516
3664
|
|
|
2517
3665
|
function computedStyle(element, property) {
|
|
@@ -2529,7 +3677,7 @@ function notVisible(_path) {
|
|
|
2529
3677
|
// https://github.com/jquery/jquery-ui/blob/master/ui/core.js#L109-L114
|
|
2530
3678
|
// NOTE: a nested element can reverse visibility:hidden|collapse by explicitly setting visibility:visible
|
|
2531
3679
|
// NOTE: visibility can be ["", "visible", "hidden", "collapse"]
|
|
2532
|
-
var hidden =
|
|
3680
|
+
var hidden = (0, _arrayFindIndex2.default)(_path, function (element) {
|
|
2533
3681
|
var visibility = computedStyle(element, 'visibility');
|
|
2534
3682
|
return visibility === 'hidden' || visibility === 'collapse';
|
|
2535
3683
|
});
|
|
@@ -2539,7 +3687,7 @@ function notVisible(_path) {
|
|
|
2539
3687
|
return false;
|
|
2540
3688
|
}
|
|
2541
3689
|
|
|
2542
|
-
var visible =
|
|
3690
|
+
var visible = (0, _arrayFindIndex2.default)(_path, function (element) {
|
|
2543
3691
|
return computedStyle(element, 'visibility') === 'visible';
|
|
2544
3692
|
});
|
|
2545
3693
|
|
|
@@ -2581,7 +3729,7 @@ function isVisibleRules() {
|
|
|
2581
3729
|
browsingContext: false
|
|
2582
3730
|
} : _ref$except;
|
|
2583
3731
|
|
|
2584
|
-
var element =
|
|
3732
|
+
var element = (0, _contextToElement2.default)({
|
|
2585
3733
|
label: 'is/visible',
|
|
2586
3734
|
resolveDocument: true,
|
|
2587
3735
|
context: context
|
|
@@ -2592,7 +3740,7 @@ function isVisibleRules() {
|
|
|
2592
3740
|
return true;
|
|
2593
3741
|
}
|
|
2594
3742
|
|
|
2595
|
-
var _path =
|
|
3743
|
+
var _path = (0, _parents2.default)({ context: element });
|
|
2596
3744
|
|
|
2597
3745
|
// in Internet Explorer <audio> has a default display: none, where others have display: inline
|
|
2598
3746
|
// but IE allows focusing <audio style="display:none">, but not <div display:none><audio>
|
|
@@ -2613,7 +3761,7 @@ function isVisibleRules() {
|
|
|
2613
3761
|
if (!except.browsingContext) {
|
|
2614
3762
|
// elements within a browsing context are affected by the
|
|
2615
3763
|
// browsing context host element's visibility and tabindex
|
|
2616
|
-
var frameElement =
|
|
3764
|
+
var frameElement = (0, _getFrameElement2.default)(element);
|
|
2617
3765
|
var _isVisible = isVisibleRules.except(except);
|
|
2618
3766
|
if (frameElement && !_isVisible(frameElement)) {
|
|
2619
3767
|
return false;
|
|
@@ -2640,8 +3788,18 @@ isVisibleRules.except = function () {
|
|
|
2640
3788
|
|
|
2641
3789
|
// provide isVisible(context) as default iterator callback
|
|
2642
3790
|
var isVisible = isVisibleRules.except({});
|
|
3791
|
+
exports.default = isVisible;
|
|
3792
|
+
module.exports = exports['default'];
|
|
3793
|
+
|
|
3794
|
+
}(visible, visible.exports));
|
|
2643
3795
|
|
|
2644
|
-
var
|
|
3796
|
+
var imageMap = {};
|
|
3797
|
+
|
|
3798
|
+
var css_escape = {exports: {}};
|
|
3799
|
+
|
|
3800
|
+
/*! https://mths.be/cssescape v1.5.1 by @mathias | MIT license */
|
|
3801
|
+
|
|
3802
|
+
(function (module, exports) {
|
|
2645
3803
|
(function(root, factory) {
|
|
2646
3804
|
// https://github.com/umdjs/umd/blob/master/returnExports.js
|
|
2647
3805
|
{
|
|
@@ -2741,7 +3899,41 @@ var css_escape = createCommonjsModule(function (module, exports) {
|
|
|
2741
3899
|
return cssEscape;
|
|
2742
3900
|
|
|
2743
3901
|
}));
|
|
3902
|
+
}(css_escape));
|
|
3903
|
+
|
|
3904
|
+
Object.defineProperty(imageMap, "__esModule", {
|
|
3905
|
+
value: true
|
|
2744
3906
|
});
|
|
3907
|
+
imageMap.getMapByName = getMapByName;
|
|
3908
|
+
imageMap.getMapOfImage = getMapOfImage;
|
|
3909
|
+
imageMap.getImageOfArea = getImageOfArea;
|
|
3910
|
+
|
|
3911
|
+
var _css = css_escape.exports;
|
|
3912
|
+
|
|
3913
|
+
var _css2 = _interopRequireDefault(_css);
|
|
3914
|
+
|
|
3915
|
+
var _getDocument = getDocument.exports;
|
|
3916
|
+
|
|
3917
|
+
var _getDocument2 = _interopRequireDefault(_getDocument);
|
|
3918
|
+
|
|
3919
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
3920
|
+
|
|
3921
|
+
function getMapByName(name, _document) {
|
|
3922
|
+
// apparently getElementsByName() also considers id attribute in IE & opera
|
|
3923
|
+
// https://developer.mozilla.org/en-US/docs/Web/API/Document/getElementsByName
|
|
3924
|
+
var map = _document.querySelector('map[name="' + (0, _css2.default)(name) + '"]');
|
|
3925
|
+
return map || null;
|
|
3926
|
+
}
|
|
3927
|
+
|
|
3928
|
+
function getMapOfImage(element) {
|
|
3929
|
+
var usemap = element.getAttribute('usemap');
|
|
3930
|
+
if (!usemap) {
|
|
3931
|
+
return null;
|
|
3932
|
+
}
|
|
3933
|
+
|
|
3934
|
+
var _document = (0, _getDocument2.default)(element);
|
|
3935
|
+
return getMapByName(usemap.slice(1), _document);
|
|
3936
|
+
}
|
|
2745
3937
|
|
|
2746
3938
|
function getImageOfArea(element) {
|
|
2747
3939
|
var map = element.parentElement;
|
|
@@ -2758,21 +3950,22 @@ function getImageOfArea(element) {
|
|
|
2758
3950
|
// https://www.w3.org/TR/html5/embedded-content-0.html#the-map-element
|
|
2759
3951
|
// https://developer.mozilla.org/en-US/docs/Web/API/HTMLMapElement
|
|
2760
3952
|
// the image must be valid and loaded for the map to take effect
|
|
2761
|
-
var _document =
|
|
2762
|
-
return _document.querySelector('img[usemap="#' +
|
|
3953
|
+
var _document = (0, _getDocument2.default)(element);
|
|
3954
|
+
return _document.querySelector('img[usemap="#' + (0, _css2.default)(map.name) + '"]') || null;
|
|
2763
3955
|
}
|
|
2764
3956
|
|
|
2765
|
-
|
|
3957
|
+
(function (module, exports) {
|
|
2766
3958
|
|
|
2767
|
-
|
|
2768
|
-
|
|
2769
|
-
|
|
2770
|
-
|
|
2771
|
-
|
|
2772
|
-
|
|
3959
|
+
Object.defineProperty(exports, "__esModule", {
|
|
3960
|
+
value: true
|
|
3961
|
+
});
|
|
3962
|
+
|
|
3963
|
+
exports.default = function (context) {
|
|
3964
|
+
if (!supports$1) {
|
|
3965
|
+
supports$1 = (0, _supports3.default)();
|
|
2773
3966
|
}
|
|
2774
3967
|
|
|
2775
|
-
var element =
|
|
3968
|
+
var element = (0, _contextToElement2.default)({
|
|
2776
3969
|
label: 'is/valid-area',
|
|
2777
3970
|
context: context
|
|
2778
3971
|
});
|
|
@@ -2783,31 +3976,31 @@ function isValidArea (context) {
|
|
|
2783
3976
|
}
|
|
2784
3977
|
|
|
2785
3978
|
var hasTabindex = element.hasAttribute('tabindex');
|
|
2786
|
-
if (!supports$
|
|
3979
|
+
if (!supports$1.focusAreaTabindex && hasTabindex) {
|
|
2787
3980
|
// Blink and WebKit do not consider <area tabindex="-1" href="#void"> focusable
|
|
2788
3981
|
return false;
|
|
2789
3982
|
}
|
|
2790
3983
|
|
|
2791
|
-
var img = getImageOfArea(element);
|
|
2792
|
-
if (!img || !
|
|
3984
|
+
var img = (0, _imageMap.getImageOfArea)(element);
|
|
3985
|
+
if (!img || !(0, _visible2.default)(img)) {
|
|
2793
3986
|
return false;
|
|
2794
3987
|
}
|
|
2795
3988
|
|
|
2796
3989
|
// Firefox only allows fully loaded images to reference image maps
|
|
2797
3990
|
// https://stereochro.me/ideas/detecting-broken-images-js
|
|
2798
|
-
if (!supports$
|
|
3991
|
+
if (!supports$1.focusBrokenImageMap && (!img.complete || !img.naturalHeight || img.offsetWidth <= 0 || img.offsetHeight <= 0)) {
|
|
2799
3992
|
return false;
|
|
2800
3993
|
}
|
|
2801
3994
|
|
|
2802
3995
|
// Firefox supports.can focus area elements even if they don't have an href attribute
|
|
2803
|
-
if (!supports$
|
|
3996
|
+
if (!supports$1.focusAreaWithoutHref && !element.href) {
|
|
2804
3997
|
// Internet explorer supports.can focus area elements without href if either
|
|
2805
3998
|
// the area element or the image element has a tabindex attribute
|
|
2806
|
-
return supports$
|
|
3999
|
+
return supports$1.focusAreaTabindex && hasTabindex || supports$1.focusAreaImgTabindex && img.hasAttribute('tabindex');
|
|
2807
4000
|
}
|
|
2808
4001
|
|
|
2809
4002
|
// https://developer.mozilla.org/en-US/docs/Web/HTML/Element/img#attr-usemap
|
|
2810
|
-
var childOfInteractive =
|
|
4003
|
+
var childOfInteractive = (0, _parents2.default)({ context: img }).slice(1).some(function (_element) {
|
|
2811
4004
|
var name = _element.nodeName.toLowerCase();
|
|
2812
4005
|
return name === 'button' || name === 'a';
|
|
2813
4006
|
});
|
|
@@ -2817,63 +4010,115 @@ function isValidArea (context) {
|
|
|
2817
4010
|
}
|
|
2818
4011
|
|
|
2819
4012
|
return true;
|
|
2820
|
-
}
|
|
4013
|
+
};
|
|
2821
4014
|
|
|
2822
|
-
var
|
|
4015
|
+
var _contextToElement = contextToElement.exports;
|
|
2823
4016
|
|
|
2824
|
-
|
|
2825
|
-
|
|
2826
|
-
var
|
|
2827
|
-
|
|
2828
|
-
|
|
2829
|
-
|
|
2830
|
-
|
|
2831
|
-
|
|
2832
|
-
|
|
2833
|
-
|
|
4017
|
+
var _contextToElement2 = _interopRequireDefault(_contextToElement);
|
|
4018
|
+
|
|
4019
|
+
var _visible = visible.exports;
|
|
4020
|
+
|
|
4021
|
+
var _visible2 = _interopRequireDefault(_visible);
|
|
4022
|
+
|
|
4023
|
+
var _parents = parents.exports;
|
|
4024
|
+
|
|
4025
|
+
var _parents2 = _interopRequireDefault(_parents);
|
|
4026
|
+
|
|
4027
|
+
var _imageMap = imageMap;
|
|
4028
|
+
|
|
4029
|
+
var _supports2 = supports.exports;
|
|
4030
|
+
|
|
4031
|
+
var _supports3 = _interopRequireDefault(_supports2);
|
|
4032
|
+
|
|
4033
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
4034
|
+
|
|
4035
|
+
var supports$1 = void 0;
|
|
2834
4036
|
|
|
2835
|
-
|
|
2836
|
-
|
|
2837
|
-
|
|
4037
|
+
// https://developer.mozilla.org/en-US/docs/Web/HTML/Element/map
|
|
4038
|
+
// https://developer.mozilla.org/en-US/docs/Web/HTML/Element/img#attr-usemap
|
|
4039
|
+
// https://github.com/jquery/jquery-ui/blob/master/ui/core.js#L88-L107
|
|
4040
|
+
|
|
4041
|
+
// determine if an <area> element is being properly used by and <img> via a <map>
|
|
4042
|
+
|
|
4043
|
+
module.exports = exports['default'];
|
|
4044
|
+
|
|
4045
|
+
}(validArea, validArea.exports));
|
|
4046
|
+
|
|
4047
|
+
var disabled = {exports: {}};
|
|
4048
|
+
|
|
4049
|
+
var nativeDisabledSupported = {exports: {}};
|
|
2838
4050
|
|
|
2839
|
-
|
|
4051
|
+
(function (module, exports) {
|
|
4052
|
+
|
|
4053
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4054
|
+
value: true
|
|
4055
|
+
});
|
|
4056
|
+
|
|
4057
|
+
exports.default = function (context) {
|
|
4058
|
+
if (!supports$1) {
|
|
4059
|
+
supports$1 = (0, _supports3.default)();
|
|
4060
|
+
|
|
4061
|
+
if (supports$1.focusFieldsetDisabled) {
|
|
2840
4062
|
delete disabledElements.fieldset;
|
|
2841
4063
|
}
|
|
2842
4064
|
|
|
2843
|
-
if (supports$
|
|
4065
|
+
if (supports$1.focusFormDisabled) {
|
|
2844
4066
|
delete disabledElements.form;
|
|
2845
4067
|
}
|
|
2846
4068
|
|
|
2847
4069
|
disabledElementsPattern = new RegExp('^(' + Object.keys(disabledElements).join('|') + ')$');
|
|
2848
4070
|
}
|
|
2849
4071
|
|
|
2850
|
-
var element =
|
|
4072
|
+
var element = (0, _contextToElement2.default)({
|
|
2851
4073
|
label: 'is/native-disabled-supported',
|
|
2852
4074
|
context: context
|
|
2853
4075
|
});
|
|
2854
4076
|
|
|
2855
4077
|
var nodeName = element.nodeName.toLowerCase();
|
|
2856
4078
|
return Boolean(disabledElementsPattern.test(nodeName));
|
|
2857
|
-
}
|
|
4079
|
+
};
|
|
4080
|
+
|
|
4081
|
+
var _contextToElement = contextToElement.exports;
|
|
4082
|
+
|
|
4083
|
+
var _contextToElement2 = _interopRequireDefault(_contextToElement);
|
|
4084
|
+
|
|
4085
|
+
var _supports2 = supports.exports;
|
|
4086
|
+
|
|
4087
|
+
var _supports3 = _interopRequireDefault(_supports2);
|
|
4088
|
+
|
|
4089
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
4090
|
+
|
|
4091
|
+
// Determine if an element supports the disabled attribute
|
|
2858
4092
|
|
|
2859
4093
|
var supports$1 = void 0;
|
|
2860
4094
|
|
|
2861
|
-
|
|
2862
|
-
|
|
2863
|
-
|
|
2864
|
-
|
|
4095
|
+
// https://www.w3.org/TR/html5/disabled-elements.html#concept-element-disabled
|
|
4096
|
+
var disabledElementsPattern = void 0;
|
|
4097
|
+
var disabledElements = {
|
|
4098
|
+
input: true,
|
|
4099
|
+
select: true,
|
|
4100
|
+
textarea: true,
|
|
4101
|
+
button: true,
|
|
4102
|
+
fieldset: true,
|
|
4103
|
+
form: true
|
|
4104
|
+
};
|
|
2865
4105
|
|
|
2866
|
-
|
|
2867
|
-
|
|
2868
|
-
|
|
2869
|
-
}
|
|
4106
|
+
module.exports = exports['default'];
|
|
4107
|
+
|
|
4108
|
+
}(nativeDisabledSupported, nativeDisabledSupported.exports));
|
|
2870
4109
|
|
|
2871
|
-
function
|
|
4110
|
+
(function (module, exports) {
|
|
4111
|
+
|
|
4112
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4113
|
+
value: true
|
|
4114
|
+
});
|
|
4115
|
+
|
|
4116
|
+
exports.default = function (context) {
|
|
2872
4117
|
if (!supports$1) {
|
|
2873
|
-
supports$1 =
|
|
4118
|
+
supports$1 = (0, _supports3.default)();
|
|
2874
4119
|
}
|
|
2875
4120
|
|
|
2876
|
-
var element =
|
|
4121
|
+
var element = (0, _contextToElement2.default)({
|
|
2877
4122
|
label: 'is/disabled',
|
|
2878
4123
|
context: context
|
|
2879
4124
|
});
|
|
@@ -2883,7 +4128,7 @@ function isDisabled (context) {
|
|
|
2883
4128
|
return true;
|
|
2884
4129
|
}
|
|
2885
4130
|
|
|
2886
|
-
if (!
|
|
4131
|
+
if (!(0, _nativeDisabledSupported2.default)(element)) {
|
|
2887
4132
|
// non-form elements do not support the disabled attribute
|
|
2888
4133
|
return false;
|
|
2889
4134
|
}
|
|
@@ -2893,7 +4138,7 @@ function isDisabled (context) {
|
|
|
2893
4138
|
return true;
|
|
2894
4139
|
}
|
|
2895
4140
|
|
|
2896
|
-
var parents =
|
|
4141
|
+
var parents = (0, _parents2.default)({ context: element });
|
|
2897
4142
|
if (parents.some(isDisabledFieldset)) {
|
|
2898
4143
|
// a parental <fieldset> is disabld and inherits the state onto this element
|
|
2899
4144
|
return true;
|
|
@@ -2905,8 +4150,74 @@ function isDisabled (context) {
|
|
|
2905
4150
|
}
|
|
2906
4151
|
|
|
2907
4152
|
return false;
|
|
4153
|
+
};
|
|
4154
|
+
|
|
4155
|
+
var _contextToElement = contextToElement.exports;
|
|
4156
|
+
|
|
4157
|
+
var _contextToElement2 = _interopRequireDefault(_contextToElement);
|
|
4158
|
+
|
|
4159
|
+
var _parents = parents.exports;
|
|
4160
|
+
|
|
4161
|
+
var _parents2 = _interopRequireDefault(_parents);
|
|
4162
|
+
|
|
4163
|
+
var _nativeDisabledSupported = nativeDisabledSupported.exports;
|
|
4164
|
+
|
|
4165
|
+
var _nativeDisabledSupported2 = _interopRequireDefault(_nativeDisabledSupported);
|
|
4166
|
+
|
|
4167
|
+
var _supports2 = supports.exports;
|
|
4168
|
+
|
|
4169
|
+
var _supports3 = _interopRequireDefault(_supports2);
|
|
4170
|
+
|
|
4171
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
4172
|
+
|
|
4173
|
+
// Determine if an element is disabled (i.e. not editable)
|
|
4174
|
+
|
|
4175
|
+
var supports$1 = void 0;
|
|
4176
|
+
|
|
4177
|
+
function isDisabledFieldset(element) {
|
|
4178
|
+
var nodeName = element.nodeName.toLowerCase();
|
|
4179
|
+
return nodeName === 'fieldset' && element.disabled;
|
|
4180
|
+
}
|
|
4181
|
+
|
|
4182
|
+
function isDisabledForm(element) {
|
|
4183
|
+
var nodeName = element.nodeName.toLowerCase();
|
|
4184
|
+
return nodeName === 'form' && element.disabled;
|
|
2908
4185
|
}
|
|
2909
4186
|
|
|
4187
|
+
module.exports = exports['default'];
|
|
4188
|
+
|
|
4189
|
+
}(disabled, disabled.exports));
|
|
4190
|
+
|
|
4191
|
+
var onlyTabbable = {exports: {}};
|
|
4192
|
+
|
|
4193
|
+
(function (module, exports) {
|
|
4194
|
+
|
|
4195
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4196
|
+
value: true
|
|
4197
|
+
});
|
|
4198
|
+
|
|
4199
|
+
var _visible = visible.exports;
|
|
4200
|
+
|
|
4201
|
+
var _visible2 = _interopRequireDefault(_visible);
|
|
4202
|
+
|
|
4203
|
+
var _contextToElement = contextToElement.exports;
|
|
4204
|
+
|
|
4205
|
+
var _contextToElement2 = _interopRequireDefault(_contextToElement);
|
|
4206
|
+
|
|
4207
|
+
var _getFrameElement = getFrameElement.exports;
|
|
4208
|
+
|
|
4209
|
+
var _getFrameElement2 = _interopRequireDefault(_getFrameElement);
|
|
4210
|
+
|
|
4211
|
+
var _tabindexValue = tabindexValue.exports;
|
|
4212
|
+
|
|
4213
|
+
var _tabindexValue2 = _interopRequireDefault(_tabindexValue);
|
|
4214
|
+
|
|
4215
|
+
var _platform = platform$1.exports;
|
|
4216
|
+
|
|
4217
|
+
var _platform2 = _interopRequireDefault(_platform);
|
|
4218
|
+
|
|
4219
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
4220
|
+
|
|
2910
4221
|
function isOnlyTabbableRules() {
|
|
2911
4222
|
var _ref = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {},
|
|
2912
4223
|
context = _ref.context,
|
|
@@ -2916,20 +4227,20 @@ function isOnlyTabbableRules() {
|
|
|
2916
4227
|
visible: false
|
|
2917
4228
|
} : _ref$except;
|
|
2918
4229
|
|
|
2919
|
-
var element =
|
|
4230
|
+
var element = (0, _contextToElement2.default)({
|
|
2920
4231
|
label: 'is/only-tabbable',
|
|
2921
4232
|
resolveDocument: true,
|
|
2922
4233
|
context: context
|
|
2923
4234
|
});
|
|
2924
4235
|
|
|
2925
|
-
if (!except.visible && !
|
|
4236
|
+
if (!except.visible && !(0, _visible2.default)(element)) {
|
|
2926
4237
|
return false;
|
|
2927
4238
|
}
|
|
2928
4239
|
|
|
2929
|
-
if (!except.onlyFocusableBrowsingContext && (
|
|
2930
|
-
var frameElement =
|
|
4240
|
+
if (!except.onlyFocusableBrowsingContext && (_platform2.default.is.GECKO || _platform2.default.is.TRIDENT || _platform2.default.is.EDGE)) {
|
|
4241
|
+
var frameElement = (0, _getFrameElement2.default)(element);
|
|
2931
4242
|
if (frameElement) {
|
|
2932
|
-
if (
|
|
4243
|
+
if ((0, _tabindexValue2.default)(frameElement) < 0) {
|
|
2933
4244
|
// iframe[tabindex="-1"] and object[tabindex="-1"] inherit the
|
|
2934
4245
|
// tabbable demotion onto elements of their browsing contexts
|
|
2935
4246
|
return false;
|
|
@@ -2938,9 +4249,9 @@ function isOnlyTabbableRules() {
|
|
|
2938
4249
|
}
|
|
2939
4250
|
|
|
2940
4251
|
var nodeName = element.nodeName.toLowerCase();
|
|
2941
|
-
var tabindex =
|
|
4252
|
+
var tabindex = (0, _tabindexValue2.default)(element);
|
|
2942
4253
|
|
|
2943
|
-
if (nodeName === 'label' &&
|
|
4254
|
+
if (nodeName === 'label' && _platform2.default.is.GECKO) {
|
|
2944
4255
|
// Firefox cannot focus, but tab to: label[tabindex=0]
|
|
2945
4256
|
return tabindex !== null && tabindex >= 0;
|
|
2946
4257
|
}
|
|
@@ -2948,10 +4259,10 @@ function isOnlyTabbableRules() {
|
|
|
2948
4259
|
// SVG Elements were keyboard focusable but not script focusable before Firefox 51.
|
|
2949
4260
|
// Firefox 51 added the focus management DOM API (.focus and .blur) to SVGElement,
|
|
2950
4261
|
// see https://bugzilla.mozilla.org/show_bug.cgi?id=778654
|
|
2951
|
-
if (
|
|
4262
|
+
if (_platform2.default.is.GECKO && element.ownerSVGElement && !element.focus) {
|
|
2952
4263
|
if (nodeName === 'a' && element.hasAttribute('xlink:href')) {
|
|
2953
4264
|
// any focusable child of <svg> cannot be focused, but tabbed to
|
|
2954
|
-
if (
|
|
4265
|
+
if (_platform2.default.is.GECKO) {
|
|
2955
4266
|
return true;
|
|
2956
4267
|
}
|
|
2957
4268
|
}
|
|
@@ -2977,8 +4288,63 @@ isOnlyTabbableRules.except = function () {
|
|
|
2977
4288
|
|
|
2978
4289
|
// provide isOnlyTabbable(context) as default iterator callback
|
|
2979
4290
|
var isOnlyTabbable = isOnlyTabbableRules.except({});
|
|
4291
|
+
exports.default = isOnlyTabbable;
|
|
4292
|
+
module.exports = exports['default'];
|
|
4293
|
+
|
|
4294
|
+
}(onlyTabbable, onlyTabbable.exports));
|
|
4295
|
+
|
|
4296
|
+
(function (module, exports) {
|
|
4297
|
+
|
|
4298
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4299
|
+
value: true
|
|
4300
|
+
});
|
|
4301
|
+
|
|
4302
|
+
var _focusRelevant = focusRelevant.exports;
|
|
4303
|
+
|
|
4304
|
+
var _focusRelevant2 = _interopRequireDefault(_focusRelevant);
|
|
4305
|
+
|
|
4306
|
+
var _validArea = validArea.exports;
|
|
4307
|
+
|
|
4308
|
+
var _validArea2 = _interopRequireDefault(_validArea);
|
|
4309
|
+
|
|
4310
|
+
var _visible = visible.exports;
|
|
4311
|
+
|
|
4312
|
+
var _visible2 = _interopRequireDefault(_visible);
|
|
4313
|
+
|
|
4314
|
+
var _disabled = disabled.exports;
|
|
4315
|
+
|
|
4316
|
+
var _disabled2 = _interopRequireDefault(_disabled);
|
|
4317
|
+
|
|
4318
|
+
var _onlyTabbable = onlyTabbable.exports;
|
|
4319
|
+
|
|
4320
|
+
var _onlyTabbable2 = _interopRequireDefault(_onlyTabbable);
|
|
2980
4321
|
|
|
2981
|
-
var
|
|
4322
|
+
var _contextToElement = contextToElement.exports;
|
|
4323
|
+
|
|
4324
|
+
var _contextToElement2 = _interopRequireDefault(_contextToElement);
|
|
4325
|
+
|
|
4326
|
+
var _getFrameElement = getFrameElement.exports;
|
|
4327
|
+
|
|
4328
|
+
var _getFrameElement2 = _interopRequireDefault(_getFrameElement);
|
|
4329
|
+
|
|
4330
|
+
var _tabindexValue = tabindexValue.exports;
|
|
4331
|
+
|
|
4332
|
+
var _tabindexValue2 = _interopRequireDefault(_tabindexValue);
|
|
4333
|
+
|
|
4334
|
+
var _supports2 = supports.exports;
|
|
4335
|
+
|
|
4336
|
+
var _supports3 = _interopRequireDefault(_supports2);
|
|
4337
|
+
|
|
4338
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
4339
|
+
|
|
4340
|
+
var supports$1 = void 0;
|
|
4341
|
+
// determine if an element can be focused
|
|
4342
|
+
|
|
4343
|
+
// https://www.w3.org/TR/html5/editing.html#focus-management
|
|
4344
|
+
|
|
4345
|
+
// NOTE: The following known issues exist:
|
|
4346
|
+
// Gecko: `svg a[xlink|href]` is not identified as focusable (because SVGElement.prototype.focus is missing)
|
|
4347
|
+
// Blink, WebKit: SVGElements that have been made focusable by adding a focus event listener are not identified as focusable
|
|
2982
4348
|
|
|
2983
4349
|
function isOnlyFocusRelevant(element) {
|
|
2984
4350
|
var nodeName = element.nodeName.toLowerCase();
|
|
@@ -2988,7 +4354,7 @@ function isOnlyFocusRelevant(element) {
|
|
|
2988
4354
|
return true;
|
|
2989
4355
|
}
|
|
2990
4356
|
|
|
2991
|
-
var _tabindex =
|
|
4357
|
+
var _tabindex = (0, _tabindexValue2.default)(element);
|
|
2992
4358
|
if (element.shadowRoot && _tabindex === null) {
|
|
2993
4359
|
// ShadowDOM host elements *may* receive focus
|
|
2994
4360
|
// even though they are not considered focuable
|
|
@@ -3000,14 +4366,14 @@ function isOnlyFocusRelevant(element) {
|
|
|
3000
4366
|
// there's no way to make an element focusable other than by adding a tabindex,
|
|
3001
4367
|
// and focus behavior of the label element seems hard-wired to ignore tabindex
|
|
3002
4368
|
// in some browsers (like Gecko, Blink and WebKit)
|
|
3003
|
-
return !supports.focusLabelTabindex || _tabindex === null;
|
|
4369
|
+
return !supports$1.focusLabelTabindex || _tabindex === null;
|
|
3004
4370
|
}
|
|
3005
4371
|
|
|
3006
4372
|
if (nodeName === 'legend') {
|
|
3007
4373
|
return _tabindex === null;
|
|
3008
4374
|
}
|
|
3009
4375
|
|
|
3010
|
-
if (supports.focusSvgFocusableAttribute && (element.ownerSVGElement || nodeName === 'svg')) {
|
|
4376
|
+
if (supports$1.focusSvgFocusableAttribute && (element.ownerSVGElement || nodeName === 'svg')) {
|
|
3011
4377
|
// Internet Explorer understands the focusable attribute introduced in SVG Tiny 1.2
|
|
3012
4378
|
var focusableAttribute = element.getAttribute('focusable');
|
|
3013
4379
|
return focusableAttribute && focusableAttribute === 'false';
|
|
@@ -3016,13 +4382,13 @@ function isOnlyFocusRelevant(element) {
|
|
|
3016
4382
|
if (nodeName === 'img' && element.hasAttribute('usemap')) {
|
|
3017
4383
|
// Gecko, Trident and Edge do not allow an image with an image map and tabindex to be focused,
|
|
3018
4384
|
// it appears the tabindex is overruled so focus is still forwarded to the <map>
|
|
3019
|
-
return _tabindex === null || !supports.focusImgUsemapTabindex;
|
|
4385
|
+
return _tabindex === null || !supports$1.focusImgUsemapTabindex;
|
|
3020
4386
|
}
|
|
3021
4387
|
|
|
3022
4388
|
if (nodeName === 'area') {
|
|
3023
4389
|
// all <area>s are considered relevant,
|
|
3024
4390
|
// but only the valid <area>s are focusable
|
|
3025
|
-
return !
|
|
4391
|
+
return !(0, _validArea2.default)(element);
|
|
3026
4392
|
}
|
|
3027
4393
|
|
|
3028
4394
|
return false;
|
|
@@ -3038,22 +4404,22 @@ function isFocusableRules() {
|
|
|
3038
4404
|
onlyTabbable: false
|
|
3039
4405
|
} : _ref$except;
|
|
3040
4406
|
|
|
3041
|
-
if (!supports) {
|
|
3042
|
-
supports =
|
|
4407
|
+
if (!supports$1) {
|
|
4408
|
+
supports$1 = (0, _supports3.default)();
|
|
3043
4409
|
}
|
|
3044
4410
|
|
|
3045
|
-
var _isOnlyTabbable =
|
|
4411
|
+
var _isOnlyTabbable = _onlyTabbable2.default.rules.except({
|
|
3046
4412
|
onlyFocusableBrowsingContext: true,
|
|
3047
4413
|
visible: except.visible
|
|
3048
4414
|
});
|
|
3049
4415
|
|
|
3050
|
-
var element =
|
|
4416
|
+
var element = (0, _contextToElement2.default)({
|
|
3051
4417
|
label: 'is/focusable',
|
|
3052
4418
|
resolveDocument: true,
|
|
3053
4419
|
context: context
|
|
3054
4420
|
});
|
|
3055
4421
|
|
|
3056
|
-
var focusRelevant =
|
|
4422
|
+
var focusRelevant = _focusRelevant2.default.rules({
|
|
3057
4423
|
context: element,
|
|
3058
4424
|
except: except
|
|
3059
4425
|
});
|
|
@@ -3062,7 +4428,7 @@ function isFocusableRules() {
|
|
|
3062
4428
|
return false;
|
|
3063
4429
|
}
|
|
3064
4430
|
|
|
3065
|
-
if (!except.disabled &&
|
|
4431
|
+
if (!except.disabled && (0, _disabled2.default)(element)) {
|
|
3066
4432
|
return false;
|
|
3067
4433
|
}
|
|
3068
4434
|
|
|
@@ -3078,12 +4444,12 @@ function isFocusableRules() {
|
|
|
3078
4444
|
except: {}
|
|
3079
4445
|
};
|
|
3080
4446
|
|
|
3081
|
-
if (supports.focusInHiddenIframe) {
|
|
4447
|
+
if (supports$1.focusInHiddenIframe) {
|
|
3082
4448
|
// WebKit and Blink can focus content in hidden <iframe> and <object>
|
|
3083
4449
|
visibilityOptions.except.browsingContext = true;
|
|
3084
4450
|
}
|
|
3085
4451
|
|
|
3086
|
-
if (supports.focusObjectSvgHidden) {
|
|
4452
|
+
if (supports$1.focusObjectSvgHidden) {
|
|
3087
4453
|
// Blink allows focusing the object element, even if it has visibility: hidden;
|
|
3088
4454
|
// @browser-issue Blink https://code.google.com/p/chromium/issues/detail?id=586191
|
|
3089
4455
|
var _nodeName2 = element.nodeName.toLowerCase();
|
|
@@ -3092,15 +4458,15 @@ function isFocusableRules() {
|
|
|
3092
4458
|
}
|
|
3093
4459
|
}
|
|
3094
4460
|
|
|
3095
|
-
if (!
|
|
4461
|
+
if (!_visible2.default.rules(visibilityOptions)) {
|
|
3096
4462
|
return false;
|
|
3097
4463
|
}
|
|
3098
4464
|
}
|
|
3099
4465
|
|
|
3100
|
-
var frameElement =
|
|
4466
|
+
var frameElement = (0, _getFrameElement2.default)(element);
|
|
3101
4467
|
if (frameElement) {
|
|
3102
4468
|
var _nodeName = frameElement.nodeName.toLowerCase();
|
|
3103
|
-
if (_nodeName === 'object' && !supports.focusInZeroDimensionObject) {
|
|
4469
|
+
if (_nodeName === 'object' && !supports$1.focusInZeroDimensionObject) {
|
|
3104
4470
|
if (!frameElement.offsetWidth || !frameElement.offsetHeight) {
|
|
3105
4471
|
// WebKit can not focus content in <object> if it doesn't have dimensions
|
|
3106
4472
|
return false;
|
|
@@ -3109,7 +4475,7 @@ function isFocusableRules() {
|
|
|
3109
4475
|
}
|
|
3110
4476
|
|
|
3111
4477
|
var nodeName = element.nodeName.toLowerCase();
|
|
3112
|
-
if (nodeName === 'svg' && supports.focusSvgInIframe && !frameElement && element.getAttribute('tabindex') === null) {
|
|
4478
|
+
if (nodeName === 'svg' && supports$1.focusSvgInIframe && !frameElement && element.getAttribute('tabindex') === null) {
|
|
3113
4479
|
return false;
|
|
3114
4480
|
}
|
|
3115
4481
|
|
|
@@ -3133,6 +4499,12 @@ isFocusableRules.except = function () {
|
|
|
3133
4499
|
|
|
3134
4500
|
// provide isFocusRelevant(context) as default iterator callback
|
|
3135
4501
|
var isFocusable = isFocusableRules.except({});
|
|
4502
|
+
exports.default = isFocusable;
|
|
4503
|
+
module.exports = exports['default'];
|
|
4504
|
+
|
|
4505
|
+
}(focusable, focusable.exports));
|
|
4506
|
+
|
|
4507
|
+
const isFocusable = /*@__PURE__*/getDefaultExportFromCjs(focusable.exports);
|
|
3136
4508
|
|
|
3137
4509
|
/*!
|
|
3138
4510
|
* long-press-event - v@version@
|
|
@@ -3399,6 +4771,7 @@ var isFocusable = isFocusableRules.except({});
|
|
|
3399
4771
|
}(window, document));
|
|
3400
4772
|
|
|
3401
4773
|
const postTooltipCss = ":host{--post-contrast-color:#fff;--post-bg-rgb:51, 51, 51}post-popovercontainer::part(popover){padding:.25rem .5rem;max-width:13.5rem;min-height:1rem}";
|
|
4774
|
+
const PostTooltipStyle0 = postTooltipCss;
|
|
3402
4775
|
|
|
3403
4776
|
const PostTooltip = /*@__PURE__*/ proxyCustomElement(class PostTooltip extends HTMLElement$1 {
|
|
3404
4777
|
constructor() {
|
|
@@ -3484,10 +4857,10 @@ const PostTooltip = /*@__PURE__*/ proxyCustomElement(class PostTooltip extends H
|
|
|
3484
4857
|
}
|
|
3485
4858
|
}
|
|
3486
4859
|
render() {
|
|
3487
|
-
return (h(Host, { "data-version": version$
|
|
4860
|
+
return (h(Host, { key: 'e4a9dcb08b0e468e83bc6655d1cbece256a5299c', "data-version": version$1 }, h("post-popovercontainer", { key: '819cafc2521bc4d9a69fda5a30a24f1e6c158272', role: "tooltip", tabindex: "-1", arrow: this.arrow, placement: this.placement, ref: (el) => (this.popoverRef = el) }, h("slot", { key: '1432f96849a598a2be823acc7e96d70ab539df0c' }))));
|
|
3488
4861
|
}
|
|
3489
4862
|
get host() { return this; }
|
|
3490
|
-
static get style() { return
|
|
4863
|
+
static get style() { return PostTooltipStyle0; }
|
|
3491
4864
|
}, [1, "post-tooltip", {
|
|
3492
4865
|
"placement": [1],
|
|
3493
4866
|
"arrow": [4],
|
|
@@ -3515,5 +4888,3 @@ function defineCustomElement() {
|
|
|
3515
4888
|
}
|
|
3516
4889
|
|
|
3517
4890
|
export { PostTooltip as P, defineCustomElement as d };
|
|
3518
|
-
|
|
3519
|
-
//# sourceMappingURL=post-tooltip2.js.map
|