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