@dso-toolkit/core 34.2.1 → 36.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/dso-alert.cjs.entry.js +1 -1
- package/dist/cjs/dso-attachments-counter.cjs.entry.js +1 -1
- package/dist/cjs/dso-autosuggest.cjs.entry.js +7 -3
- package/dist/cjs/dso-badge.cjs.entry.js +1 -1
- package/dist/cjs/dso-banner.cjs.entry.js +1 -1
- package/dist/cjs/dso-date-picker.cjs.entry.js +2 -2
- package/dist/cjs/dso-dropdown-menu.cjs.entry.js +2 -2
- package/dist/cjs/dso-header.cjs.entry.js +16 -7
- package/dist/cjs/dso-helpcenter-panel.cjs.entry.js +1 -1
- package/dist/cjs/dso-highlight-box.cjs.entry.js +1 -1
- package/dist/cjs/dso-icon.cjs.entry.js +1 -1
- package/dist/cjs/dso-image-overlay.cjs.entry.js +62 -0
- package/dist/cjs/dso-info-button.cjs.entry.js +1 -1
- package/dist/cjs/dso-info_2.cjs.entry.js +2 -2
- package/dist/cjs/dso-label.cjs.entry.js +1 -1
- package/dist/cjs/dso-map-base-layers.cjs.entry.js +1 -1
- package/dist/cjs/dso-map-controls.cjs.entry.js +22 -19
- package/dist/cjs/dso-map-overlays.cjs.entry.js +1 -1
- package/dist/cjs/dso-ozon-content.cjs.entry.js +289 -419
- package/dist/cjs/dso-progress-bar.cjs.entry.js +1 -1
- package/dist/cjs/dso-progress-indicator.cjs.entry.js +1 -1
- package/dist/cjs/dso-toggletip.cjs.entry.js +1 -1
- package/dist/cjs/dso-toolkit.cjs.js +3 -3
- package/dist/cjs/dso-tooltip.cjs.entry.js +8 -4
- package/dist/cjs/dso-tree-view.cjs.entry.js +9 -9
- package/dist/cjs/dso-viewer-grid.cjs.entry.js +6 -712
- package/dist/cjs/focus-trap.esm-a85643b0.js +746 -0
- package/dist/cjs/{index-5ea63531.js → index-dfb4ea62.js} +73 -64
- package/dist/cjs/index.esm-3520a2a6.js +427 -0
- package/dist/cjs/loader.cjs.js +3 -3
- package/dist/collection/collection-manifest.json +3 -2
- package/dist/collection/components/alert/alert.template.js +1 -1
- package/dist/collection/components/anchor/anchor.template.js +1 -1
- package/dist/collection/components/autosuggest/autosuggest.css +1 -1
- package/dist/collection/components/autosuggest/autosuggest.js +6 -2
- package/dist/collection/components/badge/badge.template.js +1 -1
- package/dist/collection/components/button/button.template.js +1 -1
- package/dist/collection/components/date-picker/date-picker.css +6 -6
- package/dist/collection/components/date-picker/date-picker.template.js +1 -1
- package/dist/collection/components/definition-list/definition-list.template.js +2 -2
- package/dist/collection/components/dropdown-menu/dropdown-menu.template.js +1 -1
- package/dist/collection/components/header/header.css +1 -1
- package/dist/collection/components/header/header.js +38 -9
- package/dist/collection/components/header/header.template.js +4 -2
- package/dist/collection/components/helpcenter-panel/helpcenter-panel.template.js +2 -2
- package/dist/collection/components/highlight-box/highlight-box.template.js +5 -2
- package/dist/collection/components/icon/icon.template.js +1 -1
- package/dist/collection/components/image-overlay/image-overlay.css +263 -0
- package/dist/collection/components/image-overlay/image-overlay.js +72 -0
- package/dist/collection/components/image-overlay/image-overlay.template.js +7 -0
- package/dist/collection/components/label/label.template.js +2 -2
- package/dist/collection/components/list/list.template.js +1 -1
- package/dist/collection/components/map-controls/map-controls.js +17 -19
- package/dist/collection/components/ozon-content/get-node-name.function.js +9 -0
- package/dist/collection/components/ozon-content/nodes/al.node.js +14 -0
- package/dist/collection/components/ozon-content/nodes/document.node.js +9 -0
- package/dist/collection/components/ozon-content/nodes/ext-ref.node.js +15 -0
- package/dist/collection/components/ozon-content/nodes/fallback.node.js +11 -0
- package/dist/collection/components/ozon-content/nodes/illustratie.node.js +13 -0
- package/dist/collection/components/ozon-content/nodes/inhoud.node.js +14 -0
- package/dist/collection/components/ozon-content/nodes/inline.nodes.js +21 -0
- package/dist/collection/components/ozon-content/nodes/int-ref.node.js +26 -0
- package/dist/collection/components/ozon-content/nodes/noot.node.js +27 -0
- package/dist/collection/components/ozon-content/nodes/table.node/colspec/colspec-mapper.js +39 -0
- package/dist/collection/components/ozon-content/nodes/table.node/colspec/colspec.interface.js +2 -0
- package/dist/collection/components/ozon-content/nodes/table.node/index.js +1 -0
- package/dist/collection/components/ozon-content/nodes/table.node/table-cell.js +25 -0
- package/dist/collection/components/ozon-content/nodes/table.node/table-colgroup.js +4 -0
- package/dist/collection/components/ozon-content/nodes/table.node/table-rows.js +5 -0
- package/dist/collection/components/ozon-content/nodes/table.node/table.node.js +32 -0
- package/dist/collection/components/ozon-content/nodes/text.node.js +9 -0
- package/dist/collection/components/ozon-content/ozon-content-context.interface.js +1 -0
- package/dist/collection/components/ozon-content/ozon-content-mapper.js +80 -0
- package/dist/collection/components/ozon-content/ozon-content-node-context.interface.js +1 -0
- package/dist/collection/components/ozon-content/ozon-content-node-state.interface.js +1 -0
- package/dist/collection/components/ozon-content/ozon-content-node.interface.js +1 -0
- package/dist/collection/components/ozon-content/ozon-content.css +84 -23
- package/dist/collection/components/ozon-content/ozon-content.js +21 -33
- package/dist/collection/components/progress-bar/progress-bar.template.js +1 -1
- package/dist/collection/components/progress-indicator/progress-indicator.template.js +1 -1
- package/dist/collection/components/selectable/selectable.css +7 -1
- package/dist/collection/components/selectable/selectable.template.js +1 -1
- package/dist/collection/components/toggletip/toggletip.template.js +2 -2
- package/dist/collection/components/tooltip/tooltip.css +1 -1
- package/dist/collection/components/tooltip/tooltip.template.js +1 -1
- package/dist/collection/components/tree-view/tree-item.js +7 -7
- package/dist/collection/components/tree-view/tree-view.css +86 -15
- package/dist/collection/components/viewer-grid/viewer-grid.css +32 -4
- package/dist/custom-elements/index.d.ts +6 -0
- package/dist/custom-elements/index.js +1541 -1400
- package/dist/dso-toolkit/dso-toolkit.css +1 -1
- package/dist/dso-toolkit/dso-toolkit.esm.js +1 -1
- package/dist/dso-toolkit/p-016ed5a8.entry.js +1 -0
- package/dist/dso-toolkit/p-0216f283.entry.js +1 -0
- package/dist/dso-toolkit/{p-348414bf.entry.js → p-09bcacd0.entry.js} +1 -1
- package/dist/dso-toolkit/{p-2b6a3dfa.entry.js → p-117a31fe.entry.js} +1 -1
- package/dist/dso-toolkit/p-131d54e3.js +5 -0
- package/dist/dso-toolkit/{p-50b63cf4.entry.js → p-1eeadd3e.entry.js} +1 -1
- package/dist/dso-toolkit/{p-ad540748.entry.js → p-2279329b.entry.js} +1 -1
- package/dist/dso-toolkit/p-258e8371.entry.js +1 -0
- package/dist/dso-toolkit/{p-bc14cafd.entry.js → p-3ced438e.entry.js} +1 -1
- package/dist/dso-toolkit/{p-c54ecae1.entry.js → p-406b179d.entry.js} +1 -1
- package/dist/dso-toolkit/p-4b5f6b4c.entry.js +1 -0
- package/dist/dso-toolkit/{p-3b493a2c.entry.js → p-527a85b6.entry.js} +1 -1
- package/dist/dso-toolkit/{p-94dffa65.entry.js → p-52f159e7.entry.js} +1 -1
- package/dist/dso-toolkit/{p-dc86d830.entry.js → p-58f5e092.entry.js} +1 -1
- package/dist/dso-toolkit/p-5e5fbd41.js +5 -0
- package/dist/dso-toolkit/{p-f0b67246.entry.js → p-639228f6.entry.js} +1 -1
- package/dist/dso-toolkit/{p-951f5872.entry.js → p-6a8452bd.entry.js} +1 -1
- package/dist/dso-toolkit/{p-4e573fc5.entry.js → p-98ef5f8c.entry.js} +1 -1
- package/dist/dso-toolkit/{p-94b79e43.entry.js → p-a1c9bb35.entry.js} +1 -1
- package/dist/dso-toolkit/{p-3c4dbd89.entry.js → p-a5008a4e.entry.js} +1 -1
- package/dist/dso-toolkit/{p-c95108fe.entry.js → p-a59dcbb0.entry.js} +1 -1
- package/dist/dso-toolkit/p-b06c275a.entry.js +1 -0
- package/dist/dso-toolkit/p-b4222d6e.entry.js +1 -0
- package/dist/dso-toolkit/{p-dad72605.js → p-b9eb3491.js} +1 -1
- package/dist/dso-toolkit/p-bec38cf5.entry.js +1 -0
- package/dist/dso-toolkit/{p-ad2210ad.entry.js → p-d0d3ca99.entry.js} +1 -1
- package/dist/dso-toolkit/{p-5037944e.entry.js → p-d72edd80.entry.js} +1 -1
- package/dist/dso-toolkit/{p-1fefbf8c.entry.js → p-e1934ab6.entry.js} +1 -1
- package/dist/esm/dso-alert.entry.js +1 -1
- package/dist/esm/dso-attachments-counter.entry.js +1 -1
- package/dist/esm/dso-autosuggest.entry.js +7 -3
- package/dist/esm/dso-badge.entry.js +1 -1
- package/dist/esm/dso-banner.entry.js +1 -1
- package/dist/esm/dso-date-picker.entry.js +2 -2
- package/dist/esm/dso-dropdown-menu.entry.js +2 -2
- package/dist/esm/dso-header.entry.js +16 -7
- package/dist/esm/dso-helpcenter-panel.entry.js +1 -1
- package/dist/esm/dso-highlight-box.entry.js +1 -1
- package/dist/esm/dso-icon.entry.js +1 -1
- package/dist/esm/dso-image-overlay.entry.js +58 -0
- package/dist/esm/dso-info-button.entry.js +1 -1
- package/dist/esm/dso-info_2.entry.js +2 -2
- package/dist/esm/dso-label.entry.js +1 -1
- package/dist/esm/dso-map-base-layers.entry.js +1 -1
- package/dist/esm/dso-map-controls.entry.js +22 -19
- package/dist/esm/dso-map-overlays.entry.js +1 -1
- package/dist/esm/dso-ozon-content.entry.js +289 -419
- package/dist/esm/dso-progress-bar.entry.js +1 -1
- package/dist/esm/dso-progress-indicator.entry.js +1 -1
- package/dist/esm/dso-toggletip.entry.js +1 -1
- package/dist/esm/dso-toolkit.js +3 -3
- package/dist/esm/dso-tooltip.entry.js +8 -4
- package/dist/esm/dso-tree-view.entry.js +9 -9
- package/dist/esm/dso-viewer-grid.entry.js +4 -710
- package/dist/esm/focus-trap.esm-a01ad6c9.js +744 -0
- package/dist/esm/{index-d54cae76.js → index-9ec8c07f.js} +73 -64
- package/dist/esm/index.esm-45465af7.js +422 -0
- package/dist/esm/loader.js +3 -3
- package/dist/types/components/autosuggest/autosuggest.d.ts +15 -1
- package/dist/types/components/header/header.d.ts +7 -1
- package/dist/types/components/header/header.template.d.ts +1 -1
- package/dist/types/components/image-overlay/image-overlay.d.ts +15 -0
- package/dist/types/components/image-overlay/image-overlay.template.d.ts +2 -0
- package/dist/types/components/ozon-content/get-node-name.function.d.ts +1 -0
- package/dist/types/components/ozon-content/nodes/al.node.d.ts +6 -0
- package/dist/types/components/ozon-content/nodes/document.node.d.ts +6 -0
- package/dist/types/components/ozon-content/nodes/ext-ref.node.d.ts +6 -0
- package/dist/types/components/ozon-content/nodes/fallback.node.d.ts +6 -0
- package/dist/types/components/ozon-content/nodes/illustratie.node.d.ts +5 -0
- package/dist/types/components/ozon-content/nodes/inhoud.node.d.ts +6 -0
- package/dist/types/components/ozon-content/nodes/inline.nodes.d.ts +6 -0
- package/dist/types/components/ozon-content/nodes/int-ref.node.d.ts +6 -0
- package/dist/types/components/ozon-content/nodes/noot.node.d.ts +8 -0
- package/dist/types/components/ozon-content/nodes/table.node/colspec/colspec-mapper.d.ts +2 -0
- package/dist/types/components/ozon-content/nodes/table.node/colspec/colspec.interface.d.ts +10 -0
- package/dist/types/components/ozon-content/nodes/table.node/index.d.ts +1 -0
- package/dist/types/components/ozon-content/nodes/table.node/table-cell.d.ts +8 -0
- package/dist/types/components/ozon-content/nodes/table.node/table-colgroup.d.ts +5 -0
- package/dist/types/components/ozon-content/nodes/table.node/table-rows.d.ts +8 -0
- package/dist/types/components/ozon-content/nodes/table.node/table.node.d.ts +7 -0
- package/dist/types/components/ozon-content/nodes/text.node.d.ts +5 -0
- package/dist/types/components/ozon-content/ozon-content-context.interface.d.ts +8 -0
- package/dist/types/components/ozon-content/ozon-content-mapper.d.ts +11 -0
- package/dist/types/components/ozon-content/ozon-content-node-context.interface.d.ts +7 -0
- package/dist/types/components/ozon-content/ozon-content-node-state.interface.d.ts +3 -0
- package/dist/types/components/ozon-content/ozon-content-node.interface.d.ts +7 -0
- package/dist/types/components/ozon-content/ozon-content.d.ts +7 -10
- package/dist/types/components/ozon-content/ozon-content.interfaces.d.ts +2 -2
- package/dist/types/components.d.ts +22 -8
- package/dist/types/icon/dso-icon-sass-function.d.ts +1 -1
- package/package.json +31 -27
- package/dist/cjs/index.esm-2ac7081c.js +0 -267
- package/dist/collection/components/ozon-content/ozon-content.transformer.js +0 -105
- package/dist/dso-toolkit/p-20856f91.entry.js +0 -1
- package/dist/dso-toolkit/p-88bc5873.entry.js +0 -1
- package/dist/dso-toolkit/p-8b6e3abc.entry.js +0 -1
- package/dist/dso-toolkit/p-8bf3a60e.js +0 -5
- package/dist/dso-toolkit/p-a7306b7b.entry.js +0 -1
- package/dist/dso-toolkit/p-daa1e29d.entry.js +0 -1
- package/dist/dso-toolkit/p-de3ab027.entry.js +0 -5
- package/dist/esm/index.esm-a1362957.js +0 -262
- package/dist/types/components/ozon-content/ozon-content.transformer.d.ts +0 -15
|
@@ -410,7 +410,6 @@ const setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags) => {
|
|
|
410
410
|
// Workaround for Safari, moving the <input> caret when re-assigning the same valued
|
|
411
411
|
if (memberName === 'list') {
|
|
412
412
|
isProp = false;
|
|
413
|
-
// tslint:disable-next-line: triple-equals
|
|
414
413
|
}
|
|
415
414
|
else if (oldValue == null || elm[memberName] != n) {
|
|
416
415
|
elm[memberName] = n;
|
|
@@ -1579,14 +1578,14 @@ const proxyComponent = (Cstr, cmpMeta, flags) => {
|
|
|
1579
1578
|
prototype.attributeChangedCallback = function (attrName, _oldValue, newValue) {
|
|
1580
1579
|
plt.jmp(() => {
|
|
1581
1580
|
const propName = attrNameToPropName.get(attrName);
|
|
1582
|
-
// In a
|
|
1581
|
+
// In a web component lifecycle the attributeChangedCallback runs prior to connectedCallback
|
|
1583
1582
|
// in the case where an attribute was set inline.
|
|
1584
1583
|
// ```html
|
|
1585
1584
|
// <my-component some-attribute="some-value"></my-component>
|
|
1586
1585
|
// ```
|
|
1587
1586
|
//
|
|
1588
|
-
// There is an edge case where a developer sets the attribute inline on a custom element and then
|
|
1589
|
-
// changes it before it has been upgraded as shown below:
|
|
1587
|
+
// There is an edge case where a developer sets the attribute inline on a custom element and then
|
|
1588
|
+
// programmatically changes it before it has been upgraded as shown below:
|
|
1590
1589
|
//
|
|
1591
1590
|
// ```html
|
|
1592
1591
|
// <!-- this component has _not_ been upgraded yet -->
|
|
@@ -1596,13 +1595,13 @@ const proxyComponent = (Cstr, cmpMeta, flags) => {
|
|
|
1596
1595
|
// el = document.querySelector("#test");
|
|
1597
1596
|
// el.someAttribute = "another-value";
|
|
1598
1597
|
// // upgrade component
|
|
1599
|
-
//
|
|
1598
|
+
// customElements.define('my-component', MyComponent);
|
|
1600
1599
|
// </script>
|
|
1601
1600
|
// ```
|
|
1602
1601
|
// In this case if we do not unshadow here and use the value of the shadowing property, attributeChangedCallback
|
|
1603
1602
|
// will be called with `newValue = "some-value"` and will set the shadowed property (this.someAttribute = "another-value")
|
|
1604
1603
|
// to the value that was set inline i.e. "some-value" from above example. When
|
|
1605
|
-
// the connectedCallback attempts to unshadow it will use "some-value" as the
|
|
1604
|
+
// the connectedCallback attempts to unshadow it will use "some-value" as the initial value rather than "another-value"
|
|
1606
1605
|
//
|
|
1607
1606
|
// The case where the attribute was NOT set inline but was not set programmatically shall be handled/unshadowed
|
|
1608
1607
|
// by connectedCallback as this attributeChangedCallback will not fire.
|
|
@@ -1616,6 +1615,14 @@ const proxyComponent = (Cstr, cmpMeta, flags) => {
|
|
|
1616
1615
|
newValue = this[propName];
|
|
1617
1616
|
delete this[propName];
|
|
1618
1617
|
}
|
|
1618
|
+
else if (prototype.hasOwnProperty(propName) &&
|
|
1619
|
+
typeof this[propName] === 'number' &&
|
|
1620
|
+
this[propName] == newValue) {
|
|
1621
|
+
// if the propName exists on the prototype of `Cstr`, this update may be a result of Stencil using native
|
|
1622
|
+
// APIs to reflect props as attributes. Calls to `setAttribute(someElement, propName)` will result in
|
|
1623
|
+
// `propName` to be converted to a `DOMString`, which may not be what we want for other primitive props.
|
|
1624
|
+
return;
|
|
1625
|
+
}
|
|
1619
1626
|
this[propName] = newValue === null && typeof this[propName] === 'boolean' ? false : newValue;
|
|
1620
1627
|
});
|
|
1621
1628
|
};
|
|
@@ -1702,7 +1709,7 @@ const initializeComponent = async (elm, hostRef, cmpMeta, hmrVersionId, Cstr) =>
|
|
|
1702
1709
|
const ancestorComponent = hostRef.$ancestorComponent$;
|
|
1703
1710
|
const schedule = () => scheduleUpdate(hostRef, true);
|
|
1704
1711
|
if (ancestorComponent && ancestorComponent['s-rc']) {
|
|
1705
|
-
// this is the
|
|
1712
|
+
// this is the initial load and this component it has an ancestor component
|
|
1706
1713
|
// but the ancestor component has NOT fired its will update lifecycle yet
|
|
1707
1714
|
// so let's just cool our jets and wait for the ancestor to continue first
|
|
1708
1715
|
// this will get fired off when the ancestor component
|
|
@@ -1842,71 +1849,73 @@ const bootstrapLazy = (lazyBundles, options = {}) => {
|
|
|
1842
1849
|
registerStyle(styles[i].getAttribute(HYDRATED_STYLE_ID), convertScopedToShadow(styles[i].innerHTML), true);
|
|
1843
1850
|
}
|
|
1844
1851
|
}
|
|
1845
|
-
lazyBundles.map((lazyBundle) =>
|
|
1846
|
-
|
|
1847
|
-
|
|
1848
|
-
|
|
1849
|
-
|
|
1850
|
-
|
|
1851
|
-
|
|
1852
|
-
|
|
1853
|
-
|
|
1854
|
-
|
|
1855
|
-
|
|
1856
|
-
|
|
1857
|
-
|
|
1858
|
-
|
|
1859
|
-
|
|
1860
|
-
|
|
1861
|
-
|
|
1862
|
-
|
|
1863
|
-
|
|
1864
|
-
|
|
1865
|
-
|
|
1866
|
-
|
|
1867
|
-
|
|
1868
|
-
|
|
1869
|
-
|
|
1870
|
-
|
|
1871
|
-
|
|
1872
|
-
|
|
1873
|
-
|
|
1874
|
-
|
|
1875
|
-
|
|
1876
|
-
|
|
1877
|
-
|
|
1852
|
+
lazyBundles.map((lazyBundle) => {
|
|
1853
|
+
lazyBundle[1].map((compactMeta) => {
|
|
1854
|
+
const cmpMeta = {
|
|
1855
|
+
$flags$: compactMeta[0],
|
|
1856
|
+
$tagName$: compactMeta[1],
|
|
1857
|
+
$members$: compactMeta[2],
|
|
1858
|
+
$listeners$: compactMeta[3],
|
|
1859
|
+
};
|
|
1860
|
+
{
|
|
1861
|
+
cmpMeta.$members$ = compactMeta[2];
|
|
1862
|
+
}
|
|
1863
|
+
{
|
|
1864
|
+
cmpMeta.$listeners$ = compactMeta[3];
|
|
1865
|
+
}
|
|
1866
|
+
{
|
|
1867
|
+
cmpMeta.$attrsToReflect$ = [];
|
|
1868
|
+
}
|
|
1869
|
+
{
|
|
1870
|
+
cmpMeta.$watchers$ = {};
|
|
1871
|
+
}
|
|
1872
|
+
const tagName = cmpMeta.$tagName$;
|
|
1873
|
+
const HostElement = class extends HTMLElement {
|
|
1874
|
+
// StencilLazyHost
|
|
1875
|
+
constructor(self) {
|
|
1876
|
+
// @ts-ignore
|
|
1877
|
+
super(self);
|
|
1878
|
+
self = this;
|
|
1879
|
+
registerHost(self, cmpMeta);
|
|
1880
|
+
if (cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */) {
|
|
1881
|
+
// this component is using shadow dom
|
|
1882
|
+
// and this browser supports shadow dom
|
|
1883
|
+
// add the read-only property "shadowRoot" to the host element
|
|
1884
|
+
// adding the shadow root build conditionals to minimize runtime
|
|
1878
1885
|
{
|
|
1879
|
-
|
|
1886
|
+
{
|
|
1887
|
+
self.attachShadow({ mode: 'open' });
|
|
1888
|
+
}
|
|
1880
1889
|
}
|
|
1881
1890
|
}
|
|
1882
1891
|
}
|
|
1883
|
-
|
|
1884
|
-
|
|
1885
|
-
|
|
1886
|
-
|
|
1887
|
-
|
|
1892
|
+
connectedCallback() {
|
|
1893
|
+
if (appLoadFallback) {
|
|
1894
|
+
clearTimeout(appLoadFallback);
|
|
1895
|
+
appLoadFallback = null;
|
|
1896
|
+
}
|
|
1897
|
+
if (isBootstrapping) {
|
|
1898
|
+
// connectedCallback will be processed once all components have been registered
|
|
1899
|
+
deferredConnectedCallbacks.push(this);
|
|
1900
|
+
}
|
|
1901
|
+
else {
|
|
1902
|
+
plt.jmp(() => connectedCallback(this));
|
|
1903
|
+
}
|
|
1888
1904
|
}
|
|
1889
|
-
|
|
1890
|
-
|
|
1891
|
-
deferredConnectedCallbacks.push(this);
|
|
1905
|
+
disconnectedCallback() {
|
|
1906
|
+
plt.jmp(() => disconnectedCallback(this));
|
|
1892
1907
|
}
|
|
1893
|
-
|
|
1894
|
-
|
|
1908
|
+
componentOnReady() {
|
|
1909
|
+
return getHostRef(this).$onReadyPromise$;
|
|
1895
1910
|
}
|
|
1911
|
+
};
|
|
1912
|
+
cmpMeta.$lazyBundleId$ = lazyBundle[0];
|
|
1913
|
+
if (!exclude.includes(tagName) && !customElements.get(tagName)) {
|
|
1914
|
+
cmpTags.push(tagName);
|
|
1915
|
+
customElements.define(tagName, proxyComponent(HostElement, cmpMeta, 1 /* isElementConstructor */));
|
|
1896
1916
|
}
|
|
1897
|
-
|
|
1898
|
-
|
|
1899
|
-
}
|
|
1900
|
-
componentOnReady() {
|
|
1901
|
-
return getHostRef(this).$onReadyPromise$;
|
|
1902
|
-
}
|
|
1903
|
-
};
|
|
1904
|
-
cmpMeta.$lazyBundleId$ = lazyBundle[0];
|
|
1905
|
-
if (!exclude.includes(tagName) && !customElements.get(tagName)) {
|
|
1906
|
-
cmpTags.push(tagName);
|
|
1907
|
-
customElements.define(tagName, proxyComponent(HostElement, cmpMeta, 1 /* isElementConstructor */));
|
|
1908
|
-
}
|
|
1909
|
-
}));
|
|
1917
|
+
});
|
|
1918
|
+
});
|
|
1910
1919
|
{
|
|
1911
1920
|
visibilityStyle.innerHTML = cmpTags + HYDRATED_CSS;
|
|
1912
1921
|
visibilityStyle.setAttribute('data-styles', '');
|
|
@@ -0,0 +1,422 @@
|
|
|
1
|
+
/*!
|
|
2
|
+
* tabbable 5.3.1
|
|
3
|
+
* @license MIT, https://github.com/focus-trap/tabbable/blob/master/LICENSE
|
|
4
|
+
*/
|
|
5
|
+
var candidateSelectors = ['input', 'select', 'textarea', 'a[href]', 'button', '[tabindex]:not(slot)', 'audio[controls]', 'video[controls]', '[contenteditable]:not([contenteditable="false"])', 'details>summary:first-of-type', 'details'];
|
|
6
|
+
var candidateSelector = /* #__PURE__ */candidateSelectors.join(',');
|
|
7
|
+
var NoElement = typeof Element === 'undefined';
|
|
8
|
+
var matches = NoElement ? function () {} : Element.prototype.matches || Element.prototype.msMatchesSelector || Element.prototype.webkitMatchesSelector;
|
|
9
|
+
var getRootNode = !NoElement && Element.prototype.getRootNode ? function (element) {
|
|
10
|
+
return element.getRootNode();
|
|
11
|
+
} : function (element) {
|
|
12
|
+
return element.ownerDocument;
|
|
13
|
+
};
|
|
14
|
+
/**
|
|
15
|
+
* @param {Element} el container to check in
|
|
16
|
+
* @param {boolean} includeContainer add container to check
|
|
17
|
+
* @param {(node: Element) => boolean} filter filter candidates
|
|
18
|
+
* @returns {Element[]}
|
|
19
|
+
*/
|
|
20
|
+
|
|
21
|
+
var getCandidates = function getCandidates(el, includeContainer, filter) {
|
|
22
|
+
var candidates = Array.prototype.slice.apply(el.querySelectorAll(candidateSelector));
|
|
23
|
+
|
|
24
|
+
if (includeContainer && matches.call(el, candidateSelector)) {
|
|
25
|
+
candidates.unshift(el);
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
candidates = candidates.filter(filter);
|
|
29
|
+
return candidates;
|
|
30
|
+
};
|
|
31
|
+
/**
|
|
32
|
+
* @callback GetShadowRoot
|
|
33
|
+
* @param {Element} element to check for shadow root
|
|
34
|
+
* @returns {ShadowRoot|boolean} ShadowRoot if available or boolean indicating if a shadowRoot is attached but not available.
|
|
35
|
+
*/
|
|
36
|
+
|
|
37
|
+
/**
|
|
38
|
+
* @typedef {Object} CandidatesScope
|
|
39
|
+
* @property {Element} scope contains inner candidates
|
|
40
|
+
* @property {Element[]} candidates
|
|
41
|
+
*/
|
|
42
|
+
|
|
43
|
+
/**
|
|
44
|
+
* @typedef {Object} IterativeOptions
|
|
45
|
+
* @property {GetShadowRoot|boolean} getShadowRoot true if shadow support is enabled; falsy if not;
|
|
46
|
+
* if a function, implies shadow support is enabled and either returns the shadow root of an element
|
|
47
|
+
* or a boolean stating if it has an undisclosed shadow root
|
|
48
|
+
* @property {(node: Element) => boolean} filter filter candidates
|
|
49
|
+
* @property {boolean} flatten if true then result will flatten any CandidatesScope into the returned list
|
|
50
|
+
*/
|
|
51
|
+
|
|
52
|
+
/**
|
|
53
|
+
* @param {Element[]} elements list of element containers to match candidates from
|
|
54
|
+
* @param {boolean} includeContainer add container list to check
|
|
55
|
+
* @param {IterativeOptions} options
|
|
56
|
+
* @returns {Array.<Element|CandidatesScope>}
|
|
57
|
+
*/
|
|
58
|
+
|
|
59
|
+
|
|
60
|
+
var getCandidatesIteratively = function getCandidatesIteratively(elements, includeContainer, options) {
|
|
61
|
+
var candidates = [];
|
|
62
|
+
var elementsToCheck = Array.from(elements);
|
|
63
|
+
|
|
64
|
+
while (elementsToCheck.length) {
|
|
65
|
+
var element = elementsToCheck.shift();
|
|
66
|
+
|
|
67
|
+
if (element.tagName === 'SLOT') {
|
|
68
|
+
// add shadow dom slot scope (slot itself cannot be focusable)
|
|
69
|
+
var assigned = element.assignedElements();
|
|
70
|
+
var content = assigned.length ? assigned : element.children;
|
|
71
|
+
var nestedCandidates = getCandidatesIteratively(content, true, options);
|
|
72
|
+
|
|
73
|
+
if (options.flatten) {
|
|
74
|
+
candidates.push.apply(candidates, nestedCandidates);
|
|
75
|
+
} else {
|
|
76
|
+
candidates.push({
|
|
77
|
+
scope: element,
|
|
78
|
+
candidates: nestedCandidates
|
|
79
|
+
});
|
|
80
|
+
}
|
|
81
|
+
} else {
|
|
82
|
+
// check candidate element
|
|
83
|
+
var validCandidate = matches.call(element, candidateSelector);
|
|
84
|
+
|
|
85
|
+
if (validCandidate && options.filter(element) && (includeContainer || !elements.includes(element))) {
|
|
86
|
+
candidates.push(element);
|
|
87
|
+
} // iterate over shadow content if possible
|
|
88
|
+
|
|
89
|
+
|
|
90
|
+
var shadowRoot = element.shadowRoot || // check for an undisclosed shadow
|
|
91
|
+
typeof options.getShadowRoot === 'function' && options.getShadowRoot(element);
|
|
92
|
+
|
|
93
|
+
if (shadowRoot) {
|
|
94
|
+
// add shadow dom scope IIF a shadow root node was given; otherwise, an undisclosed
|
|
95
|
+
// shadow exists, so look at light dom children as fallback BUT create a scope for any
|
|
96
|
+
// child candidates found because they're likely slotted elements (elements that are
|
|
97
|
+
// children of the web component element (which has the shadow), in the light dom, but
|
|
98
|
+
// slotted somewhere _inside_ the undisclosed shadow) -- the scope is created below,
|
|
99
|
+
// _after_ we return from this recursive call
|
|
100
|
+
var _nestedCandidates = getCandidatesIteratively(shadowRoot === true ? element.children : shadowRoot.children, true, options);
|
|
101
|
+
|
|
102
|
+
if (options.flatten) {
|
|
103
|
+
candidates.push.apply(candidates, _nestedCandidates);
|
|
104
|
+
} else {
|
|
105
|
+
candidates.push({
|
|
106
|
+
scope: element,
|
|
107
|
+
candidates: _nestedCandidates
|
|
108
|
+
});
|
|
109
|
+
}
|
|
110
|
+
} else {
|
|
111
|
+
// there's not shadow so just dig into the element's (light dom) children
|
|
112
|
+
// __without__ giving the element special scope treatment
|
|
113
|
+
elementsToCheck.unshift.apply(elementsToCheck, element.children);
|
|
114
|
+
}
|
|
115
|
+
}
|
|
116
|
+
}
|
|
117
|
+
|
|
118
|
+
return candidates;
|
|
119
|
+
};
|
|
120
|
+
|
|
121
|
+
var getTabindex = function getTabindex(node, isScope) {
|
|
122
|
+
if (node.tabIndex < 0) {
|
|
123
|
+
// in Chrome, <details/>, <audio controls/> and <video controls/> elements get a default
|
|
124
|
+
// `tabIndex` of -1 when the 'tabindex' attribute isn't specified in the DOM,
|
|
125
|
+
// yet they are still part of the regular tab order; in FF, they get a default
|
|
126
|
+
// `tabIndex` of 0; since Chrome still puts those elements in the regular tab
|
|
127
|
+
// order, consider their tab index to be 0.
|
|
128
|
+
// Also browsers do not return `tabIndex` correctly for contentEditable nodes;
|
|
129
|
+
// so if they don't have a tabindex attribute specifically set, assume it's 0.
|
|
130
|
+
//
|
|
131
|
+
// isScope is positive for custom element with shadow root or slot that by default
|
|
132
|
+
// have tabIndex -1, but need to be sorted by document order in order for their
|
|
133
|
+
// content to be inserted in the correct position
|
|
134
|
+
if ((isScope || /^(AUDIO|VIDEO|DETAILS)$/.test(node.tagName) || node.isContentEditable) && isNaN(parseInt(node.getAttribute('tabindex'), 10))) {
|
|
135
|
+
return 0;
|
|
136
|
+
}
|
|
137
|
+
}
|
|
138
|
+
|
|
139
|
+
return node.tabIndex;
|
|
140
|
+
};
|
|
141
|
+
|
|
142
|
+
var sortOrderedTabbables = function sortOrderedTabbables(a, b) {
|
|
143
|
+
return a.tabIndex === b.tabIndex ? a.documentOrder - b.documentOrder : a.tabIndex - b.tabIndex;
|
|
144
|
+
};
|
|
145
|
+
|
|
146
|
+
var isInput = function isInput(node) {
|
|
147
|
+
return node.tagName === 'INPUT';
|
|
148
|
+
};
|
|
149
|
+
|
|
150
|
+
var isHiddenInput = function isHiddenInput(node) {
|
|
151
|
+
return isInput(node) && node.type === 'hidden';
|
|
152
|
+
};
|
|
153
|
+
|
|
154
|
+
var isDetailsWithSummary = function isDetailsWithSummary(node) {
|
|
155
|
+
var r = node.tagName === 'DETAILS' && Array.prototype.slice.apply(node.children).some(function (child) {
|
|
156
|
+
return child.tagName === 'SUMMARY';
|
|
157
|
+
});
|
|
158
|
+
return r;
|
|
159
|
+
};
|
|
160
|
+
|
|
161
|
+
var getCheckedRadio = function getCheckedRadio(nodes, form) {
|
|
162
|
+
for (var i = 0; i < nodes.length; i++) {
|
|
163
|
+
if (nodes[i].checked && nodes[i].form === form) {
|
|
164
|
+
return nodes[i];
|
|
165
|
+
}
|
|
166
|
+
}
|
|
167
|
+
};
|
|
168
|
+
|
|
169
|
+
var isTabbableRadio = function isTabbableRadio(node) {
|
|
170
|
+
if (!node.name) {
|
|
171
|
+
return true;
|
|
172
|
+
}
|
|
173
|
+
|
|
174
|
+
var radioScope = node.form || getRootNode(node);
|
|
175
|
+
|
|
176
|
+
var queryRadios = function queryRadios(name) {
|
|
177
|
+
return radioScope.querySelectorAll('input[type="radio"][name="' + name + '"]');
|
|
178
|
+
};
|
|
179
|
+
|
|
180
|
+
var radioSet;
|
|
181
|
+
|
|
182
|
+
if (typeof window !== 'undefined' && typeof window.CSS !== 'undefined' && typeof window.CSS.escape === 'function') {
|
|
183
|
+
radioSet = queryRadios(window.CSS.escape(node.name));
|
|
184
|
+
} else {
|
|
185
|
+
try {
|
|
186
|
+
radioSet = queryRadios(node.name);
|
|
187
|
+
} catch (err) {
|
|
188
|
+
// eslint-disable-next-line no-console
|
|
189
|
+
console.error('Looks like you have a radio button with a name attribute containing invalid CSS selector characters and need the CSS.escape polyfill: %s', err.message);
|
|
190
|
+
return false;
|
|
191
|
+
}
|
|
192
|
+
}
|
|
193
|
+
|
|
194
|
+
var checked = getCheckedRadio(radioSet, node.form);
|
|
195
|
+
return !checked || checked === node;
|
|
196
|
+
};
|
|
197
|
+
|
|
198
|
+
var isRadio = function isRadio(node) {
|
|
199
|
+
return isInput(node) && node.type === 'radio';
|
|
200
|
+
};
|
|
201
|
+
|
|
202
|
+
var isNonTabbableRadio = function isNonTabbableRadio(node) {
|
|
203
|
+
return isRadio(node) && !isTabbableRadio(node);
|
|
204
|
+
};
|
|
205
|
+
|
|
206
|
+
var isZeroArea = function isZeroArea(node) {
|
|
207
|
+
var _node$getBoundingClie = node.getBoundingClientRect(),
|
|
208
|
+
width = _node$getBoundingClie.width,
|
|
209
|
+
height = _node$getBoundingClie.height;
|
|
210
|
+
|
|
211
|
+
return width === 0 && height === 0;
|
|
212
|
+
};
|
|
213
|
+
|
|
214
|
+
var isHidden = function isHidden(node, _ref) {
|
|
215
|
+
var displayCheck = _ref.displayCheck,
|
|
216
|
+
getShadowRoot = _ref.getShadowRoot;
|
|
217
|
+
|
|
218
|
+
if (getComputedStyle(node).visibility === 'hidden') {
|
|
219
|
+
return true;
|
|
220
|
+
}
|
|
221
|
+
|
|
222
|
+
var isDirectSummary = matches.call(node, 'details>summary:first-of-type');
|
|
223
|
+
var nodeUnderDetails = isDirectSummary ? node.parentElement : node;
|
|
224
|
+
|
|
225
|
+
if (matches.call(nodeUnderDetails, 'details:not([open]) *')) {
|
|
226
|
+
return true;
|
|
227
|
+
}
|
|
228
|
+
|
|
229
|
+
if (!displayCheck || displayCheck === 'full') {
|
|
230
|
+
if (typeof getShadowRoot === 'function') {
|
|
231
|
+
// figure out if we should consider the node to be in an undisclosed shadow and use the
|
|
232
|
+
// 'non-zero-area' fallback
|
|
233
|
+
var originalNode = node;
|
|
234
|
+
|
|
235
|
+
while (node) {
|
|
236
|
+
var parentElement = node.parentElement;
|
|
237
|
+
var rootNode = getRootNode(node);
|
|
238
|
+
|
|
239
|
+
if (parentElement && !parentElement.shadowRoot && getShadowRoot(parentElement) === true // check if there's an undisclosed shadow
|
|
240
|
+
) {
|
|
241
|
+
// node has an undisclosed shadow which means we can only treat it as a black box, so we
|
|
242
|
+
// fall back to a non-zero-area test
|
|
243
|
+
return isZeroArea(node);
|
|
244
|
+
} else if (node.assignedSlot) {
|
|
245
|
+
// iterate up slot
|
|
246
|
+
node = node.assignedSlot;
|
|
247
|
+
} else if (!parentElement && rootNode !== node.ownerDocument) {
|
|
248
|
+
// cross shadow boundary
|
|
249
|
+
node = rootNode.host;
|
|
250
|
+
} else {
|
|
251
|
+
// iterate up normal dom
|
|
252
|
+
node = parentElement;
|
|
253
|
+
}
|
|
254
|
+
}
|
|
255
|
+
|
|
256
|
+
node = originalNode;
|
|
257
|
+
} // else, `getShadowRoot` might be true, but all that does is enable shadow DOM support
|
|
258
|
+
// (i.e. it does not also presume that all nodes might have undisclosed shadows); or
|
|
259
|
+
// it might be a falsy value, which means shadow DOM support is disabled
|
|
260
|
+
// didn't find it sitting in an undisclosed shadow (or shadows are disabled) so now we
|
|
261
|
+
// can just test to see if it would normally be visible or not
|
|
262
|
+
// this works wherever the node is: if there's at least one client rect, it's
|
|
263
|
+
// somehow displayed; it also covers the CSS 'display: contents' case where the
|
|
264
|
+
// node itself is hidden in place of its contents; and there's no need to search
|
|
265
|
+
// up the hierarchy either
|
|
266
|
+
|
|
267
|
+
|
|
268
|
+
return !node.getClientRects().length;
|
|
269
|
+
} else if (displayCheck === 'non-zero-area') {
|
|
270
|
+
return isZeroArea(node);
|
|
271
|
+
}
|
|
272
|
+
|
|
273
|
+
return false;
|
|
274
|
+
}; // form fields (nested) inside a disabled fieldset are not focusable/tabbable
|
|
275
|
+
// unless they are in the _first_ <legend> element of the top-most disabled
|
|
276
|
+
// fieldset
|
|
277
|
+
|
|
278
|
+
|
|
279
|
+
var isDisabledFromFieldset = function isDisabledFromFieldset(node) {
|
|
280
|
+
if (/^(INPUT|BUTTON|SELECT|TEXTAREA)$/.test(node.tagName)) {
|
|
281
|
+
var parentNode = node.parentElement; // check if `node` is contained in a disabled <fieldset>
|
|
282
|
+
|
|
283
|
+
while (parentNode) {
|
|
284
|
+
if (parentNode.tagName === 'FIELDSET' && parentNode.disabled) {
|
|
285
|
+
// look for the first <legend> among the children of the disabled <fieldset>
|
|
286
|
+
for (var i = 0; i < parentNode.children.length; i++) {
|
|
287
|
+
var child = parentNode.children.item(i); // when the first <legend> (in document order) is found
|
|
288
|
+
|
|
289
|
+
if (child.tagName === 'LEGEND') {
|
|
290
|
+
// if its parent <fieldset> is not nested in another disabled <fieldset>,
|
|
291
|
+
// return whether `node` is a descendant of its first <legend>
|
|
292
|
+
return matches.call(parentNode, 'fieldset[disabled] *') ? true : !child.contains(node);
|
|
293
|
+
}
|
|
294
|
+
} // the disabled <fieldset> containing `node` has no <legend>
|
|
295
|
+
|
|
296
|
+
|
|
297
|
+
return true;
|
|
298
|
+
}
|
|
299
|
+
|
|
300
|
+
parentNode = parentNode.parentElement;
|
|
301
|
+
}
|
|
302
|
+
} // else, node's tabbable/focusable state should not be affected by a fieldset's
|
|
303
|
+
// enabled/disabled state
|
|
304
|
+
|
|
305
|
+
|
|
306
|
+
return false;
|
|
307
|
+
};
|
|
308
|
+
|
|
309
|
+
var isNodeMatchingSelectorFocusable = function isNodeMatchingSelectorFocusable(options, node) {
|
|
310
|
+
if (node.disabled || isHiddenInput(node) || isHidden(node, options) || // For a details element with a summary, the summary element gets the focus
|
|
311
|
+
isDetailsWithSummary(node) || isDisabledFromFieldset(node)) {
|
|
312
|
+
return false;
|
|
313
|
+
}
|
|
314
|
+
|
|
315
|
+
return true;
|
|
316
|
+
};
|
|
317
|
+
|
|
318
|
+
var isNodeMatchingSelectorTabbable = function isNodeMatchingSelectorTabbable(options, node) {
|
|
319
|
+
if (isNonTabbableRadio(node) || getTabindex(node) < 0 || !isNodeMatchingSelectorFocusable(options, node)) {
|
|
320
|
+
return false;
|
|
321
|
+
}
|
|
322
|
+
|
|
323
|
+
return true;
|
|
324
|
+
};
|
|
325
|
+
/**
|
|
326
|
+
* @param {Array.<Element|CandidatesScope>} candidates
|
|
327
|
+
* @returns Element[]
|
|
328
|
+
*/
|
|
329
|
+
|
|
330
|
+
|
|
331
|
+
var sortByOrder = function sortByOrder(candidates) {
|
|
332
|
+
var regularTabbables = [];
|
|
333
|
+
var orderedTabbables = [];
|
|
334
|
+
candidates.forEach(function (item, i) {
|
|
335
|
+
var isScope = !!item.scope;
|
|
336
|
+
var element = isScope ? item.scope : item;
|
|
337
|
+
var candidateTabindex = getTabindex(element, isScope);
|
|
338
|
+
var elements = isScope ? sortByOrder(item.candidates) : element;
|
|
339
|
+
|
|
340
|
+
if (candidateTabindex === 0) {
|
|
341
|
+
isScope ? regularTabbables.push.apply(regularTabbables, elements) : regularTabbables.push(element);
|
|
342
|
+
} else {
|
|
343
|
+
orderedTabbables.push({
|
|
344
|
+
documentOrder: i,
|
|
345
|
+
tabIndex: candidateTabindex,
|
|
346
|
+
item: item,
|
|
347
|
+
isScope: isScope,
|
|
348
|
+
content: elements
|
|
349
|
+
});
|
|
350
|
+
}
|
|
351
|
+
});
|
|
352
|
+
return orderedTabbables.sort(sortOrderedTabbables).reduce(function (acc, sortable) {
|
|
353
|
+
sortable.isScope ? acc.push.apply(acc, sortable.content) : acc.push(sortable.content);
|
|
354
|
+
return acc;
|
|
355
|
+
}, []).concat(regularTabbables);
|
|
356
|
+
};
|
|
357
|
+
|
|
358
|
+
var tabbable = function tabbable(el, options) {
|
|
359
|
+
options = options || {};
|
|
360
|
+
var candidates;
|
|
361
|
+
|
|
362
|
+
if (options.getShadowRoot) {
|
|
363
|
+
candidates = getCandidatesIteratively([el], options.includeContainer, {
|
|
364
|
+
filter: isNodeMatchingSelectorTabbable.bind(null, options),
|
|
365
|
+
flatten: false,
|
|
366
|
+
getShadowRoot: options.getShadowRoot
|
|
367
|
+
});
|
|
368
|
+
} else {
|
|
369
|
+
candidates = getCandidates(el, options.includeContainer, isNodeMatchingSelectorTabbable.bind(null, options));
|
|
370
|
+
}
|
|
371
|
+
|
|
372
|
+
return sortByOrder(candidates);
|
|
373
|
+
};
|
|
374
|
+
|
|
375
|
+
var focusable = function focusable(el, options) {
|
|
376
|
+
options = options || {};
|
|
377
|
+
var candidates;
|
|
378
|
+
|
|
379
|
+
if (options.getShadowRoot) {
|
|
380
|
+
candidates = getCandidatesIteratively([el], options.includeContainer, {
|
|
381
|
+
filter: isNodeMatchingSelectorFocusable.bind(null, options),
|
|
382
|
+
flatten: true,
|
|
383
|
+
getShadowRoot: options.getShadowRoot
|
|
384
|
+
});
|
|
385
|
+
} else {
|
|
386
|
+
candidates = getCandidates(el, options.includeContainer, isNodeMatchingSelectorFocusable.bind(null, options));
|
|
387
|
+
}
|
|
388
|
+
|
|
389
|
+
return candidates;
|
|
390
|
+
};
|
|
391
|
+
|
|
392
|
+
var isTabbable = function isTabbable(node, options) {
|
|
393
|
+
options = options || {};
|
|
394
|
+
|
|
395
|
+
if (!node) {
|
|
396
|
+
throw new Error('No node provided');
|
|
397
|
+
}
|
|
398
|
+
|
|
399
|
+
if (matches.call(node, candidateSelector) === false) {
|
|
400
|
+
return false;
|
|
401
|
+
}
|
|
402
|
+
|
|
403
|
+
return isNodeMatchingSelectorTabbable(options, node);
|
|
404
|
+
};
|
|
405
|
+
|
|
406
|
+
var focusableCandidateSelector = /* #__PURE__ */candidateSelectors.concat('iframe').join(',');
|
|
407
|
+
|
|
408
|
+
var isFocusable = function isFocusable(node, options) {
|
|
409
|
+
options = options || {};
|
|
410
|
+
|
|
411
|
+
if (!node) {
|
|
412
|
+
throw new Error('No node provided');
|
|
413
|
+
}
|
|
414
|
+
|
|
415
|
+
if (matches.call(node, focusableCandidateSelector) === false) {
|
|
416
|
+
return false;
|
|
417
|
+
}
|
|
418
|
+
|
|
419
|
+
return isNodeMatchingSelectorFocusable(options, node);
|
|
420
|
+
};
|
|
421
|
+
|
|
422
|
+
export { isFocusable as a, focusable as f, isTabbable as i, tabbable as t };
|
package/dist/esm/loader.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { p as promiseResolve, b as bootstrapLazy } from './index-
|
|
1
|
+
import { p as promiseResolve, b as bootstrapLazy } from './index-9ec8c07f.js';
|
|
2
2
|
|
|
3
3
|
/*
|
|
4
|
-
Stencil Client Patch Esm v2.
|
|
4
|
+
Stencil Client Patch Esm v2.10.0 | MIT Licensed | https://stenciljs.com
|
|
5
5
|
*/
|
|
6
6
|
const patchEsm = () => {
|
|
7
7
|
return promiseResolve();
|
|
@@ -10,7 +10,7 @@ const patchEsm = () => {
|
|
|
10
10
|
const defineCustomElements = (win, options) => {
|
|
11
11
|
if (typeof window === 'undefined') return Promise.resolve();
|
|
12
12
|
return patchEsm().then(() => {
|
|
13
|
-
return bootstrapLazy([["dso-map-base-layers",[[1,"dso-map-base-layers",{"baseLayers":[16]}]]],["dso-map-overlays",[[1,"dso-map-overlays",{"overlays":[16]}]]],["dso-header",[[1,"dso-header",{"loginUrl":[1,"login-url"],"logoutUrl":[1,"logout-url"],"mainMenu":[16],"useDropDownMenu":[1,"use-drop-down-menu"],"isLoggedIn":[4,"is-logged-in"],"userProfileName":[1,"user-profile-name"],"userProfileUrl":[1,"user-profile-url"],"userHomeUrl":[1,"user-home-url"],"showDropDown":[32],"hasSubLogo":[32],"overflowMenuItems":[32]}]]],["dso-toggletip",[[1,"dso-toggletip",{"label":[1],"position":[1],"small":[4],"secondary":[4],"active":[32]}]]],["dso-tree-view",[[1,"dso-tree-view",{"collection":[16]}]]],["dso-date-picker",[[2,"dso-date-picker",{"name":[1],"identifier":[1],"disabled":[516],"role":[1],"direction":[1],"required":[4],"dsoAutofocus":[4,"dso-autofocus"],"value":[1537],"min":[1],"max":[1],"activeFocus":[32],"focusedDay":[32],"open":[32],"setFocus":[64],"show":[64],"hide":[64]},[[6,"click","handleDocumentClick"]]]]],["dso-helpcenter-panel",[[1,"dso-helpcenter-panel",{"label":[1],"url":[1],"visibility":[32],"isOpen":[32],"slideState":[32],"loadIframe":[32]}]]],["dso-label",[[1,"dso-label",{"compact":[4],"removable":[4],"status":[1],"hover":[32]}]]],["dso-map-controls",[[1,"dso-map-controls",{"open":[1540],"disableZoom":[1,"disable-zoom"],"hideContent":[32]}]]],["dso-viewer-grid",[[1,"dso-viewer-grid",{"filterpanelOpen":[516,"filterpanel-open"],"overlayOpen":[516,"overlay-open"],"mainSize":[32]}]]],["dso-alert",[[1,"dso-alert",{"status":[1],"roleAlert":[4,"role-alert"]}]]],["dso-attachments-counter",[[1,"dso-attachments-counter",{"count":[2]}]]],["dso-autosuggest",[[6,"dso-autosuggest",{"suggestions":[16],"suggestOnFocus":[4,"suggest-on-focus"],"showSuggestions":[32],"selectedSuggestion":[32]},[[4,"click","onDocumentClick"]]]]],["dso-badge",[[1,"dso-badge",{"status":[1]}]]],["dso-banner",[[1,"dso-banner",{"status":[1]}]]],["dso-highlight-box",[[1,"dso-highlight-box",{"yellow":[4],"border":[4],"white":[4],"dropShadow":[4,"drop-shadow"],"step":[2]}]]],["dso-ozon-content",[[
|
|
13
|
+
return bootstrapLazy([["dso-map-base-layers",[[1,"dso-map-base-layers",{"baseLayers":[16]}]]],["dso-map-overlays",[[1,"dso-map-overlays",{"overlays":[16]}]]],["dso-header",[[1,"dso-header",{"loginUrl":[1,"login-url"],"logoutUrl":[1,"logout-url"],"mainMenu":[16],"useDropDownMenu":[1,"use-drop-down-menu"],"isLoggedIn":[4,"is-logged-in"],"userProfileName":[1,"user-profile-name"],"userProfileUrl":[1,"user-profile-url"],"userHomeUrl":[1,"user-home-url"],"showDropDown":[32],"hasSubLogo":[32],"overflowMenuItems":[32]}]]],["dso-toggletip",[[1,"dso-toggletip",{"label":[1],"position":[1],"small":[4],"secondary":[4],"active":[32]}]]],["dso-tree-view",[[1,"dso-tree-view",{"collection":[16]}]]],["dso-date-picker",[[2,"dso-date-picker",{"name":[1],"identifier":[1],"disabled":[516],"role":[1],"direction":[1],"required":[4],"dsoAutofocus":[4,"dso-autofocus"],"value":[1537],"min":[1],"max":[1],"activeFocus":[32],"focusedDay":[32],"open":[32],"setFocus":[64],"show":[64],"hide":[64]},[[6,"click","handleDocumentClick"]]]]],["dso-helpcenter-panel",[[1,"dso-helpcenter-panel",{"label":[1],"url":[1],"visibility":[32],"isOpen":[32],"slideState":[32],"loadIframe":[32]}]]],["dso-image-overlay",[[1,"dso-image-overlay",{"active":[32],"focused":[32]}]]],["dso-label",[[1,"dso-label",{"compact":[4],"removable":[4],"status":[1],"hover":[32]}]]],["dso-map-controls",[[1,"dso-map-controls",{"open":[1540],"disableZoom":[1,"disable-zoom"],"hideContent":[32]}]]],["dso-viewer-grid",[[1,"dso-viewer-grid",{"filterpanelOpen":[516,"filterpanel-open"],"overlayOpen":[516,"overlay-open"],"mainSize":[32]}]]],["dso-alert",[[1,"dso-alert",{"status":[1],"roleAlert":[4,"role-alert"]}]]],["dso-attachments-counter",[[1,"dso-attachments-counter",{"count":[2]}]]],["dso-autosuggest",[[6,"dso-autosuggest",{"suggestions":[16],"suggestOnFocus":[4,"suggest-on-focus"],"showSuggestions":[32],"selectedSuggestion":[32]},[[4,"click","onDocumentClick"]]]]],["dso-badge",[[1,"dso-badge",{"status":[1]}]]],["dso-banner",[[1,"dso-banner",{"status":[1]}]]],["dso-highlight-box",[[1,"dso-highlight-box",{"yellow":[4],"border":[4],"white":[4],"dropShadow":[4,"drop-shadow"],"step":[2]}]]],["dso-ozon-content",[[2,"dso-ozon-content",{"content":[1],"state":[32]}]]],["dso-progress-bar",[[1,"dso-progress-bar",{"progress":[2],"min":[2],"max":[2]}]]],["dso-dropdown-menu",[[1,"dso-dropdown-menu",{"open":[1540],"dropdownAlign":[1,"dropdown-align"],"checkable":[4]}]]],["dso-progress-indicator",[[1,"dso-progress-indicator",{"label":[1],"size":[1],"block":[4]}]]],["dso-tooltip",[[1,"dso-tooltip",{"position":[1],"for":[1],"noArrow":[4,"no-arrow"],"stateless":[4],"small":[4],"active":[1540],"hidden":[32],"activate":[64],"deactivate":[64]},[[0,"click","listenClick"]]]]],["dso-info-button",[[1,"dso-info-button",{"active":[1540],"secondary":[4],"label":[1]}]]],["dso-info_2",[[1,"dso-selectable",{"type":[1],"identifier":[1],"name":[1],"value":[1],"invalid":[4],"describedById":[1,"described-by-id"],"disabled":[4],"required":[4],"checked":[4],"indeterminate":[4],"infoFixed":[4,"info-fixed"],"infoActive":[32],"toggleInfo":[64]}],[1,"dso-info",{"fixed":[516],"active":[516]}]]],["dso-icon",[[1,"dso-icon",{"icon":[1]}]]]], options);
|
|
14
14
|
});
|
|
15
15
|
};
|
|
16
16
|
|