@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
|
@@ -432,7 +432,6 @@ const setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags) => {
|
|
|
432
432
|
// Workaround for Safari, moving the <input> caret when re-assigning the same valued
|
|
433
433
|
if (memberName === 'list') {
|
|
434
434
|
isProp = false;
|
|
435
|
-
// tslint:disable-next-line: triple-equals
|
|
436
435
|
}
|
|
437
436
|
else if (oldValue == null || elm[memberName] != n) {
|
|
438
437
|
elm[memberName] = n;
|
|
@@ -1601,14 +1600,14 @@ const proxyComponent = (Cstr, cmpMeta, flags) => {
|
|
|
1601
1600
|
prototype.attributeChangedCallback = function (attrName, _oldValue, newValue) {
|
|
1602
1601
|
plt.jmp(() => {
|
|
1603
1602
|
const propName = attrNameToPropName.get(attrName);
|
|
1604
|
-
// In a
|
|
1603
|
+
// In a web component lifecycle the attributeChangedCallback runs prior to connectedCallback
|
|
1605
1604
|
// in the case where an attribute was set inline.
|
|
1606
1605
|
// ```html
|
|
1607
1606
|
// <my-component some-attribute="some-value"></my-component>
|
|
1608
1607
|
// ```
|
|
1609
1608
|
//
|
|
1610
|
-
// There is an edge case where a developer sets the attribute inline on a custom element and then
|
|
1611
|
-
// changes it before it has been upgraded as shown below:
|
|
1609
|
+
// There is an edge case where a developer sets the attribute inline on a custom element and then
|
|
1610
|
+
// programmatically changes it before it has been upgraded as shown below:
|
|
1612
1611
|
//
|
|
1613
1612
|
// ```html
|
|
1614
1613
|
// <!-- this component has _not_ been upgraded yet -->
|
|
@@ -1618,13 +1617,13 @@ const proxyComponent = (Cstr, cmpMeta, flags) => {
|
|
|
1618
1617
|
// el = document.querySelector("#test");
|
|
1619
1618
|
// el.someAttribute = "another-value";
|
|
1620
1619
|
// // upgrade component
|
|
1621
|
-
//
|
|
1620
|
+
// customElements.define('my-component', MyComponent);
|
|
1622
1621
|
// </script>
|
|
1623
1622
|
// ```
|
|
1624
1623
|
// In this case if we do not unshadow here and use the value of the shadowing property, attributeChangedCallback
|
|
1625
1624
|
// will be called with `newValue = "some-value"` and will set the shadowed property (this.someAttribute = "another-value")
|
|
1626
1625
|
// to the value that was set inline i.e. "some-value" from above example. When
|
|
1627
|
-
// the connectedCallback attempts to unshadow it will use "some-value" as the
|
|
1626
|
+
// the connectedCallback attempts to unshadow it will use "some-value" as the initial value rather than "another-value"
|
|
1628
1627
|
//
|
|
1629
1628
|
// The case where the attribute was NOT set inline but was not set programmatically shall be handled/unshadowed
|
|
1630
1629
|
// by connectedCallback as this attributeChangedCallback will not fire.
|
|
@@ -1638,6 +1637,14 @@ const proxyComponent = (Cstr, cmpMeta, flags) => {
|
|
|
1638
1637
|
newValue = this[propName];
|
|
1639
1638
|
delete this[propName];
|
|
1640
1639
|
}
|
|
1640
|
+
else if (prototype.hasOwnProperty(propName) &&
|
|
1641
|
+
typeof this[propName] === 'number' &&
|
|
1642
|
+
this[propName] == newValue) {
|
|
1643
|
+
// if the propName exists on the prototype of `Cstr`, this update may be a result of Stencil using native
|
|
1644
|
+
// APIs to reflect props as attributes. Calls to `setAttribute(someElement, propName)` will result in
|
|
1645
|
+
// `propName` to be converted to a `DOMString`, which may not be what we want for other primitive props.
|
|
1646
|
+
return;
|
|
1647
|
+
}
|
|
1641
1648
|
this[propName] = newValue === null && typeof this[propName] === 'boolean' ? false : newValue;
|
|
1642
1649
|
});
|
|
1643
1650
|
};
|
|
@@ -1724,7 +1731,7 @@ const initializeComponent = async (elm, hostRef, cmpMeta, hmrVersionId, Cstr) =>
|
|
|
1724
1731
|
const ancestorComponent = hostRef.$ancestorComponent$;
|
|
1725
1732
|
const schedule = () => scheduleUpdate(hostRef, true);
|
|
1726
1733
|
if (ancestorComponent && ancestorComponent['s-rc']) {
|
|
1727
|
-
// this is the
|
|
1734
|
+
// this is the initial load and this component it has an ancestor component
|
|
1728
1735
|
// but the ancestor component has NOT fired its will update lifecycle yet
|
|
1729
1736
|
// so let's just cool our jets and wait for the ancestor to continue first
|
|
1730
1737
|
// this will get fired off when the ancestor component
|
|
@@ -1864,71 +1871,73 @@ const bootstrapLazy = (lazyBundles, options = {}) => {
|
|
|
1864
1871
|
registerStyle(styles[i].getAttribute(HYDRATED_STYLE_ID), convertScopedToShadow(styles[i].innerHTML), true);
|
|
1865
1872
|
}
|
|
1866
1873
|
}
|
|
1867
|
-
lazyBundles.map((lazyBundle) =>
|
|
1868
|
-
|
|
1869
|
-
|
|
1870
|
-
|
|
1871
|
-
|
|
1872
|
-
|
|
1873
|
-
|
|
1874
|
-
|
|
1875
|
-
|
|
1876
|
-
|
|
1877
|
-
|
|
1878
|
-
|
|
1879
|
-
|
|
1880
|
-
|
|
1881
|
-
|
|
1882
|
-
|
|
1883
|
-
|
|
1884
|
-
|
|
1885
|
-
|
|
1886
|
-
|
|
1887
|
-
|
|
1888
|
-
|
|
1889
|
-
|
|
1890
|
-
|
|
1891
|
-
|
|
1892
|
-
|
|
1893
|
-
|
|
1894
|
-
|
|
1895
|
-
|
|
1896
|
-
|
|
1897
|
-
|
|
1898
|
-
|
|
1899
|
-
|
|
1874
|
+
lazyBundles.map((lazyBundle) => {
|
|
1875
|
+
lazyBundle[1].map((compactMeta) => {
|
|
1876
|
+
const cmpMeta = {
|
|
1877
|
+
$flags$: compactMeta[0],
|
|
1878
|
+
$tagName$: compactMeta[1],
|
|
1879
|
+
$members$: compactMeta[2],
|
|
1880
|
+
$listeners$: compactMeta[3],
|
|
1881
|
+
};
|
|
1882
|
+
{
|
|
1883
|
+
cmpMeta.$members$ = compactMeta[2];
|
|
1884
|
+
}
|
|
1885
|
+
{
|
|
1886
|
+
cmpMeta.$listeners$ = compactMeta[3];
|
|
1887
|
+
}
|
|
1888
|
+
{
|
|
1889
|
+
cmpMeta.$attrsToReflect$ = [];
|
|
1890
|
+
}
|
|
1891
|
+
{
|
|
1892
|
+
cmpMeta.$watchers$ = {};
|
|
1893
|
+
}
|
|
1894
|
+
const tagName = cmpMeta.$tagName$;
|
|
1895
|
+
const HostElement = class extends HTMLElement {
|
|
1896
|
+
// StencilLazyHost
|
|
1897
|
+
constructor(self) {
|
|
1898
|
+
// @ts-ignore
|
|
1899
|
+
super(self);
|
|
1900
|
+
self = this;
|
|
1901
|
+
registerHost(self, cmpMeta);
|
|
1902
|
+
if (cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */) {
|
|
1903
|
+
// this component is using shadow dom
|
|
1904
|
+
// and this browser supports shadow dom
|
|
1905
|
+
// add the read-only property "shadowRoot" to the host element
|
|
1906
|
+
// adding the shadow root build conditionals to minimize runtime
|
|
1900
1907
|
{
|
|
1901
|
-
|
|
1908
|
+
{
|
|
1909
|
+
self.attachShadow({ mode: 'open' });
|
|
1910
|
+
}
|
|
1902
1911
|
}
|
|
1903
1912
|
}
|
|
1904
1913
|
}
|
|
1905
|
-
|
|
1906
|
-
|
|
1907
|
-
|
|
1908
|
-
|
|
1909
|
-
|
|
1914
|
+
connectedCallback() {
|
|
1915
|
+
if (appLoadFallback) {
|
|
1916
|
+
clearTimeout(appLoadFallback);
|
|
1917
|
+
appLoadFallback = null;
|
|
1918
|
+
}
|
|
1919
|
+
if (isBootstrapping) {
|
|
1920
|
+
// connectedCallback will be processed once all components have been registered
|
|
1921
|
+
deferredConnectedCallbacks.push(this);
|
|
1922
|
+
}
|
|
1923
|
+
else {
|
|
1924
|
+
plt.jmp(() => connectedCallback(this));
|
|
1925
|
+
}
|
|
1910
1926
|
}
|
|
1911
|
-
|
|
1912
|
-
|
|
1913
|
-
deferredConnectedCallbacks.push(this);
|
|
1927
|
+
disconnectedCallback() {
|
|
1928
|
+
plt.jmp(() => disconnectedCallback(this));
|
|
1914
1929
|
}
|
|
1915
|
-
|
|
1916
|
-
|
|
1930
|
+
componentOnReady() {
|
|
1931
|
+
return getHostRef(this).$onReadyPromise$;
|
|
1917
1932
|
}
|
|
1933
|
+
};
|
|
1934
|
+
cmpMeta.$lazyBundleId$ = lazyBundle[0];
|
|
1935
|
+
if (!exclude.includes(tagName) && !customElements.get(tagName)) {
|
|
1936
|
+
cmpTags.push(tagName);
|
|
1937
|
+
customElements.define(tagName, proxyComponent(HostElement, cmpMeta, 1 /* isElementConstructor */));
|
|
1918
1938
|
}
|
|
1919
|
-
|
|
1920
|
-
|
|
1921
|
-
}
|
|
1922
|
-
componentOnReady() {
|
|
1923
|
-
return getHostRef(this).$onReadyPromise$;
|
|
1924
|
-
}
|
|
1925
|
-
};
|
|
1926
|
-
cmpMeta.$lazyBundleId$ = lazyBundle[0];
|
|
1927
|
-
if (!exclude.includes(tagName) && !customElements.get(tagName)) {
|
|
1928
|
-
cmpTags.push(tagName);
|
|
1929
|
-
customElements.define(tagName, proxyComponent(HostElement, cmpMeta, 1 /* isElementConstructor */));
|
|
1930
|
-
}
|
|
1931
|
-
}));
|
|
1939
|
+
});
|
|
1940
|
+
});
|
|
1932
1941
|
{
|
|
1933
1942
|
visibilityStyle.innerHTML = cmpTags + HYDRATED_CSS;
|
|
1934
1943
|
visibilityStyle.setAttribute('data-styles', '');
|
|
@@ -0,0 +1,427 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
/*!
|
|
4
|
+
* tabbable 5.3.1
|
|
5
|
+
* @license MIT, https://github.com/focus-trap/tabbable/blob/master/LICENSE
|
|
6
|
+
*/
|
|
7
|
+
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'];
|
|
8
|
+
var candidateSelector = /* #__PURE__ */candidateSelectors.join(',');
|
|
9
|
+
var NoElement = typeof Element === 'undefined';
|
|
10
|
+
var matches = NoElement ? function () {} : Element.prototype.matches || Element.prototype.msMatchesSelector || Element.prototype.webkitMatchesSelector;
|
|
11
|
+
var getRootNode = !NoElement && Element.prototype.getRootNode ? function (element) {
|
|
12
|
+
return element.getRootNode();
|
|
13
|
+
} : function (element) {
|
|
14
|
+
return element.ownerDocument;
|
|
15
|
+
};
|
|
16
|
+
/**
|
|
17
|
+
* @param {Element} el container to check in
|
|
18
|
+
* @param {boolean} includeContainer add container to check
|
|
19
|
+
* @param {(node: Element) => boolean} filter filter candidates
|
|
20
|
+
* @returns {Element[]}
|
|
21
|
+
*/
|
|
22
|
+
|
|
23
|
+
var getCandidates = function getCandidates(el, includeContainer, filter) {
|
|
24
|
+
var candidates = Array.prototype.slice.apply(el.querySelectorAll(candidateSelector));
|
|
25
|
+
|
|
26
|
+
if (includeContainer && matches.call(el, candidateSelector)) {
|
|
27
|
+
candidates.unshift(el);
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
candidates = candidates.filter(filter);
|
|
31
|
+
return candidates;
|
|
32
|
+
};
|
|
33
|
+
/**
|
|
34
|
+
* @callback GetShadowRoot
|
|
35
|
+
* @param {Element} element to check for shadow root
|
|
36
|
+
* @returns {ShadowRoot|boolean} ShadowRoot if available or boolean indicating if a shadowRoot is attached but not available.
|
|
37
|
+
*/
|
|
38
|
+
|
|
39
|
+
/**
|
|
40
|
+
* @typedef {Object} CandidatesScope
|
|
41
|
+
* @property {Element} scope contains inner candidates
|
|
42
|
+
* @property {Element[]} candidates
|
|
43
|
+
*/
|
|
44
|
+
|
|
45
|
+
/**
|
|
46
|
+
* @typedef {Object} IterativeOptions
|
|
47
|
+
* @property {GetShadowRoot|boolean} getShadowRoot true if shadow support is enabled; falsy if not;
|
|
48
|
+
* if a function, implies shadow support is enabled and either returns the shadow root of an element
|
|
49
|
+
* or a boolean stating if it has an undisclosed shadow root
|
|
50
|
+
* @property {(node: Element) => boolean} filter filter candidates
|
|
51
|
+
* @property {boolean} flatten if true then result will flatten any CandidatesScope into the returned list
|
|
52
|
+
*/
|
|
53
|
+
|
|
54
|
+
/**
|
|
55
|
+
* @param {Element[]} elements list of element containers to match candidates from
|
|
56
|
+
* @param {boolean} includeContainer add container list to check
|
|
57
|
+
* @param {IterativeOptions} options
|
|
58
|
+
* @returns {Array.<Element|CandidatesScope>}
|
|
59
|
+
*/
|
|
60
|
+
|
|
61
|
+
|
|
62
|
+
var getCandidatesIteratively = function getCandidatesIteratively(elements, includeContainer, options) {
|
|
63
|
+
var candidates = [];
|
|
64
|
+
var elementsToCheck = Array.from(elements);
|
|
65
|
+
|
|
66
|
+
while (elementsToCheck.length) {
|
|
67
|
+
var element = elementsToCheck.shift();
|
|
68
|
+
|
|
69
|
+
if (element.tagName === 'SLOT') {
|
|
70
|
+
// add shadow dom slot scope (slot itself cannot be focusable)
|
|
71
|
+
var assigned = element.assignedElements();
|
|
72
|
+
var content = assigned.length ? assigned : element.children;
|
|
73
|
+
var nestedCandidates = getCandidatesIteratively(content, true, options);
|
|
74
|
+
|
|
75
|
+
if (options.flatten) {
|
|
76
|
+
candidates.push.apply(candidates, nestedCandidates);
|
|
77
|
+
} else {
|
|
78
|
+
candidates.push({
|
|
79
|
+
scope: element,
|
|
80
|
+
candidates: nestedCandidates
|
|
81
|
+
});
|
|
82
|
+
}
|
|
83
|
+
} else {
|
|
84
|
+
// check candidate element
|
|
85
|
+
var validCandidate = matches.call(element, candidateSelector);
|
|
86
|
+
|
|
87
|
+
if (validCandidate && options.filter(element) && (includeContainer || !elements.includes(element))) {
|
|
88
|
+
candidates.push(element);
|
|
89
|
+
} // iterate over shadow content if possible
|
|
90
|
+
|
|
91
|
+
|
|
92
|
+
var shadowRoot = element.shadowRoot || // check for an undisclosed shadow
|
|
93
|
+
typeof options.getShadowRoot === 'function' && options.getShadowRoot(element);
|
|
94
|
+
|
|
95
|
+
if (shadowRoot) {
|
|
96
|
+
// add shadow dom scope IIF a shadow root node was given; otherwise, an undisclosed
|
|
97
|
+
// shadow exists, so look at light dom children as fallback BUT create a scope for any
|
|
98
|
+
// child candidates found because they're likely slotted elements (elements that are
|
|
99
|
+
// children of the web component element (which has the shadow), in the light dom, but
|
|
100
|
+
// slotted somewhere _inside_ the undisclosed shadow) -- the scope is created below,
|
|
101
|
+
// _after_ we return from this recursive call
|
|
102
|
+
var _nestedCandidates = getCandidatesIteratively(shadowRoot === true ? element.children : shadowRoot.children, true, options);
|
|
103
|
+
|
|
104
|
+
if (options.flatten) {
|
|
105
|
+
candidates.push.apply(candidates, _nestedCandidates);
|
|
106
|
+
} else {
|
|
107
|
+
candidates.push({
|
|
108
|
+
scope: element,
|
|
109
|
+
candidates: _nestedCandidates
|
|
110
|
+
});
|
|
111
|
+
}
|
|
112
|
+
} else {
|
|
113
|
+
// there's not shadow so just dig into the element's (light dom) children
|
|
114
|
+
// __without__ giving the element special scope treatment
|
|
115
|
+
elementsToCheck.unshift.apply(elementsToCheck, element.children);
|
|
116
|
+
}
|
|
117
|
+
}
|
|
118
|
+
}
|
|
119
|
+
|
|
120
|
+
return candidates;
|
|
121
|
+
};
|
|
122
|
+
|
|
123
|
+
var getTabindex = function getTabindex(node, isScope) {
|
|
124
|
+
if (node.tabIndex < 0) {
|
|
125
|
+
// in Chrome, <details/>, <audio controls/> and <video controls/> elements get a default
|
|
126
|
+
// `tabIndex` of -1 when the 'tabindex' attribute isn't specified in the DOM,
|
|
127
|
+
// yet they are still part of the regular tab order; in FF, they get a default
|
|
128
|
+
// `tabIndex` of 0; since Chrome still puts those elements in the regular tab
|
|
129
|
+
// order, consider their tab index to be 0.
|
|
130
|
+
// Also browsers do not return `tabIndex` correctly for contentEditable nodes;
|
|
131
|
+
// so if they don't have a tabindex attribute specifically set, assume it's 0.
|
|
132
|
+
//
|
|
133
|
+
// isScope is positive for custom element with shadow root or slot that by default
|
|
134
|
+
// have tabIndex -1, but need to be sorted by document order in order for their
|
|
135
|
+
// content to be inserted in the correct position
|
|
136
|
+
if ((isScope || /^(AUDIO|VIDEO|DETAILS)$/.test(node.tagName) || node.isContentEditable) && isNaN(parseInt(node.getAttribute('tabindex'), 10))) {
|
|
137
|
+
return 0;
|
|
138
|
+
}
|
|
139
|
+
}
|
|
140
|
+
|
|
141
|
+
return node.tabIndex;
|
|
142
|
+
};
|
|
143
|
+
|
|
144
|
+
var sortOrderedTabbables = function sortOrderedTabbables(a, b) {
|
|
145
|
+
return a.tabIndex === b.tabIndex ? a.documentOrder - b.documentOrder : a.tabIndex - b.tabIndex;
|
|
146
|
+
};
|
|
147
|
+
|
|
148
|
+
var isInput = function isInput(node) {
|
|
149
|
+
return node.tagName === 'INPUT';
|
|
150
|
+
};
|
|
151
|
+
|
|
152
|
+
var isHiddenInput = function isHiddenInput(node) {
|
|
153
|
+
return isInput(node) && node.type === 'hidden';
|
|
154
|
+
};
|
|
155
|
+
|
|
156
|
+
var isDetailsWithSummary = function isDetailsWithSummary(node) {
|
|
157
|
+
var r = node.tagName === 'DETAILS' && Array.prototype.slice.apply(node.children).some(function (child) {
|
|
158
|
+
return child.tagName === 'SUMMARY';
|
|
159
|
+
});
|
|
160
|
+
return r;
|
|
161
|
+
};
|
|
162
|
+
|
|
163
|
+
var getCheckedRadio = function getCheckedRadio(nodes, form) {
|
|
164
|
+
for (var i = 0; i < nodes.length; i++) {
|
|
165
|
+
if (nodes[i].checked && nodes[i].form === form) {
|
|
166
|
+
return nodes[i];
|
|
167
|
+
}
|
|
168
|
+
}
|
|
169
|
+
};
|
|
170
|
+
|
|
171
|
+
var isTabbableRadio = function isTabbableRadio(node) {
|
|
172
|
+
if (!node.name) {
|
|
173
|
+
return true;
|
|
174
|
+
}
|
|
175
|
+
|
|
176
|
+
var radioScope = node.form || getRootNode(node);
|
|
177
|
+
|
|
178
|
+
var queryRadios = function queryRadios(name) {
|
|
179
|
+
return radioScope.querySelectorAll('input[type="radio"][name="' + name + '"]');
|
|
180
|
+
};
|
|
181
|
+
|
|
182
|
+
var radioSet;
|
|
183
|
+
|
|
184
|
+
if (typeof window !== 'undefined' && typeof window.CSS !== 'undefined' && typeof window.CSS.escape === 'function') {
|
|
185
|
+
radioSet = queryRadios(window.CSS.escape(node.name));
|
|
186
|
+
} else {
|
|
187
|
+
try {
|
|
188
|
+
radioSet = queryRadios(node.name);
|
|
189
|
+
} catch (err) {
|
|
190
|
+
// eslint-disable-next-line no-console
|
|
191
|
+
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);
|
|
192
|
+
return false;
|
|
193
|
+
}
|
|
194
|
+
}
|
|
195
|
+
|
|
196
|
+
var checked = getCheckedRadio(radioSet, node.form);
|
|
197
|
+
return !checked || checked === node;
|
|
198
|
+
};
|
|
199
|
+
|
|
200
|
+
var isRadio = function isRadio(node) {
|
|
201
|
+
return isInput(node) && node.type === 'radio';
|
|
202
|
+
};
|
|
203
|
+
|
|
204
|
+
var isNonTabbableRadio = function isNonTabbableRadio(node) {
|
|
205
|
+
return isRadio(node) && !isTabbableRadio(node);
|
|
206
|
+
};
|
|
207
|
+
|
|
208
|
+
var isZeroArea = function isZeroArea(node) {
|
|
209
|
+
var _node$getBoundingClie = node.getBoundingClientRect(),
|
|
210
|
+
width = _node$getBoundingClie.width,
|
|
211
|
+
height = _node$getBoundingClie.height;
|
|
212
|
+
|
|
213
|
+
return width === 0 && height === 0;
|
|
214
|
+
};
|
|
215
|
+
|
|
216
|
+
var isHidden = function isHidden(node, _ref) {
|
|
217
|
+
var displayCheck = _ref.displayCheck,
|
|
218
|
+
getShadowRoot = _ref.getShadowRoot;
|
|
219
|
+
|
|
220
|
+
if (getComputedStyle(node).visibility === 'hidden') {
|
|
221
|
+
return true;
|
|
222
|
+
}
|
|
223
|
+
|
|
224
|
+
var isDirectSummary = matches.call(node, 'details>summary:first-of-type');
|
|
225
|
+
var nodeUnderDetails = isDirectSummary ? node.parentElement : node;
|
|
226
|
+
|
|
227
|
+
if (matches.call(nodeUnderDetails, 'details:not([open]) *')) {
|
|
228
|
+
return true;
|
|
229
|
+
}
|
|
230
|
+
|
|
231
|
+
if (!displayCheck || displayCheck === 'full') {
|
|
232
|
+
if (typeof getShadowRoot === 'function') {
|
|
233
|
+
// figure out if we should consider the node to be in an undisclosed shadow and use the
|
|
234
|
+
// 'non-zero-area' fallback
|
|
235
|
+
var originalNode = node;
|
|
236
|
+
|
|
237
|
+
while (node) {
|
|
238
|
+
var parentElement = node.parentElement;
|
|
239
|
+
var rootNode = getRootNode(node);
|
|
240
|
+
|
|
241
|
+
if (parentElement && !parentElement.shadowRoot && getShadowRoot(parentElement) === true // check if there's an undisclosed shadow
|
|
242
|
+
) {
|
|
243
|
+
// node has an undisclosed shadow which means we can only treat it as a black box, so we
|
|
244
|
+
// fall back to a non-zero-area test
|
|
245
|
+
return isZeroArea(node);
|
|
246
|
+
} else if (node.assignedSlot) {
|
|
247
|
+
// iterate up slot
|
|
248
|
+
node = node.assignedSlot;
|
|
249
|
+
} else if (!parentElement && rootNode !== node.ownerDocument) {
|
|
250
|
+
// cross shadow boundary
|
|
251
|
+
node = rootNode.host;
|
|
252
|
+
} else {
|
|
253
|
+
// iterate up normal dom
|
|
254
|
+
node = parentElement;
|
|
255
|
+
}
|
|
256
|
+
}
|
|
257
|
+
|
|
258
|
+
node = originalNode;
|
|
259
|
+
} // else, `getShadowRoot` might be true, but all that does is enable shadow DOM support
|
|
260
|
+
// (i.e. it does not also presume that all nodes might have undisclosed shadows); or
|
|
261
|
+
// it might be a falsy value, which means shadow DOM support is disabled
|
|
262
|
+
// didn't find it sitting in an undisclosed shadow (or shadows are disabled) so now we
|
|
263
|
+
// can just test to see if it would normally be visible or not
|
|
264
|
+
// this works wherever the node is: if there's at least one client rect, it's
|
|
265
|
+
// somehow displayed; it also covers the CSS 'display: contents' case where the
|
|
266
|
+
// node itself is hidden in place of its contents; and there's no need to search
|
|
267
|
+
// up the hierarchy either
|
|
268
|
+
|
|
269
|
+
|
|
270
|
+
return !node.getClientRects().length;
|
|
271
|
+
} else if (displayCheck === 'non-zero-area') {
|
|
272
|
+
return isZeroArea(node);
|
|
273
|
+
}
|
|
274
|
+
|
|
275
|
+
return false;
|
|
276
|
+
}; // form fields (nested) inside a disabled fieldset are not focusable/tabbable
|
|
277
|
+
// unless they are in the _first_ <legend> element of the top-most disabled
|
|
278
|
+
// fieldset
|
|
279
|
+
|
|
280
|
+
|
|
281
|
+
var isDisabledFromFieldset = function isDisabledFromFieldset(node) {
|
|
282
|
+
if (/^(INPUT|BUTTON|SELECT|TEXTAREA)$/.test(node.tagName)) {
|
|
283
|
+
var parentNode = node.parentElement; // check if `node` is contained in a disabled <fieldset>
|
|
284
|
+
|
|
285
|
+
while (parentNode) {
|
|
286
|
+
if (parentNode.tagName === 'FIELDSET' && parentNode.disabled) {
|
|
287
|
+
// look for the first <legend> among the children of the disabled <fieldset>
|
|
288
|
+
for (var i = 0; i < parentNode.children.length; i++) {
|
|
289
|
+
var child = parentNode.children.item(i); // when the first <legend> (in document order) is found
|
|
290
|
+
|
|
291
|
+
if (child.tagName === 'LEGEND') {
|
|
292
|
+
// if its parent <fieldset> is not nested in another disabled <fieldset>,
|
|
293
|
+
// return whether `node` is a descendant of its first <legend>
|
|
294
|
+
return matches.call(parentNode, 'fieldset[disabled] *') ? true : !child.contains(node);
|
|
295
|
+
}
|
|
296
|
+
} // the disabled <fieldset> containing `node` has no <legend>
|
|
297
|
+
|
|
298
|
+
|
|
299
|
+
return true;
|
|
300
|
+
}
|
|
301
|
+
|
|
302
|
+
parentNode = parentNode.parentElement;
|
|
303
|
+
}
|
|
304
|
+
} // else, node's tabbable/focusable state should not be affected by a fieldset's
|
|
305
|
+
// enabled/disabled state
|
|
306
|
+
|
|
307
|
+
|
|
308
|
+
return false;
|
|
309
|
+
};
|
|
310
|
+
|
|
311
|
+
var isNodeMatchingSelectorFocusable = function isNodeMatchingSelectorFocusable(options, node) {
|
|
312
|
+
if (node.disabled || isHiddenInput(node) || isHidden(node, options) || // For a details element with a summary, the summary element gets the focus
|
|
313
|
+
isDetailsWithSummary(node) || isDisabledFromFieldset(node)) {
|
|
314
|
+
return false;
|
|
315
|
+
}
|
|
316
|
+
|
|
317
|
+
return true;
|
|
318
|
+
};
|
|
319
|
+
|
|
320
|
+
var isNodeMatchingSelectorTabbable = function isNodeMatchingSelectorTabbable(options, node) {
|
|
321
|
+
if (isNonTabbableRadio(node) || getTabindex(node) < 0 || !isNodeMatchingSelectorFocusable(options, node)) {
|
|
322
|
+
return false;
|
|
323
|
+
}
|
|
324
|
+
|
|
325
|
+
return true;
|
|
326
|
+
};
|
|
327
|
+
/**
|
|
328
|
+
* @param {Array.<Element|CandidatesScope>} candidates
|
|
329
|
+
* @returns Element[]
|
|
330
|
+
*/
|
|
331
|
+
|
|
332
|
+
|
|
333
|
+
var sortByOrder = function sortByOrder(candidates) {
|
|
334
|
+
var regularTabbables = [];
|
|
335
|
+
var orderedTabbables = [];
|
|
336
|
+
candidates.forEach(function (item, i) {
|
|
337
|
+
var isScope = !!item.scope;
|
|
338
|
+
var element = isScope ? item.scope : item;
|
|
339
|
+
var candidateTabindex = getTabindex(element, isScope);
|
|
340
|
+
var elements = isScope ? sortByOrder(item.candidates) : element;
|
|
341
|
+
|
|
342
|
+
if (candidateTabindex === 0) {
|
|
343
|
+
isScope ? regularTabbables.push.apply(regularTabbables, elements) : regularTabbables.push(element);
|
|
344
|
+
} else {
|
|
345
|
+
orderedTabbables.push({
|
|
346
|
+
documentOrder: i,
|
|
347
|
+
tabIndex: candidateTabindex,
|
|
348
|
+
item: item,
|
|
349
|
+
isScope: isScope,
|
|
350
|
+
content: elements
|
|
351
|
+
});
|
|
352
|
+
}
|
|
353
|
+
});
|
|
354
|
+
return orderedTabbables.sort(sortOrderedTabbables).reduce(function (acc, sortable) {
|
|
355
|
+
sortable.isScope ? acc.push.apply(acc, sortable.content) : acc.push(sortable.content);
|
|
356
|
+
return acc;
|
|
357
|
+
}, []).concat(regularTabbables);
|
|
358
|
+
};
|
|
359
|
+
|
|
360
|
+
var tabbable = function tabbable(el, options) {
|
|
361
|
+
options = options || {};
|
|
362
|
+
var candidates;
|
|
363
|
+
|
|
364
|
+
if (options.getShadowRoot) {
|
|
365
|
+
candidates = getCandidatesIteratively([el], options.includeContainer, {
|
|
366
|
+
filter: isNodeMatchingSelectorTabbable.bind(null, options),
|
|
367
|
+
flatten: false,
|
|
368
|
+
getShadowRoot: options.getShadowRoot
|
|
369
|
+
});
|
|
370
|
+
} else {
|
|
371
|
+
candidates = getCandidates(el, options.includeContainer, isNodeMatchingSelectorTabbable.bind(null, options));
|
|
372
|
+
}
|
|
373
|
+
|
|
374
|
+
return sortByOrder(candidates);
|
|
375
|
+
};
|
|
376
|
+
|
|
377
|
+
var focusable = function focusable(el, options) {
|
|
378
|
+
options = options || {};
|
|
379
|
+
var candidates;
|
|
380
|
+
|
|
381
|
+
if (options.getShadowRoot) {
|
|
382
|
+
candidates = getCandidatesIteratively([el], options.includeContainer, {
|
|
383
|
+
filter: isNodeMatchingSelectorFocusable.bind(null, options),
|
|
384
|
+
flatten: true,
|
|
385
|
+
getShadowRoot: options.getShadowRoot
|
|
386
|
+
});
|
|
387
|
+
} else {
|
|
388
|
+
candidates = getCandidates(el, options.includeContainer, isNodeMatchingSelectorFocusable.bind(null, options));
|
|
389
|
+
}
|
|
390
|
+
|
|
391
|
+
return candidates;
|
|
392
|
+
};
|
|
393
|
+
|
|
394
|
+
var isTabbable = function isTabbable(node, options) {
|
|
395
|
+
options = options || {};
|
|
396
|
+
|
|
397
|
+
if (!node) {
|
|
398
|
+
throw new Error('No node provided');
|
|
399
|
+
}
|
|
400
|
+
|
|
401
|
+
if (matches.call(node, candidateSelector) === false) {
|
|
402
|
+
return false;
|
|
403
|
+
}
|
|
404
|
+
|
|
405
|
+
return isNodeMatchingSelectorTabbable(options, node);
|
|
406
|
+
};
|
|
407
|
+
|
|
408
|
+
var focusableCandidateSelector = /* #__PURE__ */candidateSelectors.concat('iframe').join(',');
|
|
409
|
+
|
|
410
|
+
var isFocusable = function isFocusable(node, options) {
|
|
411
|
+
options = options || {};
|
|
412
|
+
|
|
413
|
+
if (!node) {
|
|
414
|
+
throw new Error('No node provided');
|
|
415
|
+
}
|
|
416
|
+
|
|
417
|
+
if (matches.call(node, focusableCandidateSelector) === false) {
|
|
418
|
+
return false;
|
|
419
|
+
}
|
|
420
|
+
|
|
421
|
+
return isNodeMatchingSelectorFocusable(options, node);
|
|
422
|
+
};
|
|
423
|
+
|
|
424
|
+
exports.focusable = focusable;
|
|
425
|
+
exports.isFocusable = isFocusable;
|
|
426
|
+
exports.isTabbable = isTabbable;
|
|
427
|
+
exports.tabbable = tabbable;
|
package/dist/cjs/loader.cjs.js
CHANGED
|
@@ -2,10 +2,10 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
const index = require('./index-
|
|
5
|
+
const index = require('./index-dfb4ea62.js');
|
|
6
6
|
|
|
7
7
|
/*
|
|
8
|
-
Stencil Client Patch Esm v2.
|
|
8
|
+
Stencil Client Patch Esm v2.10.0 | MIT Licensed | https://stenciljs.com
|
|
9
9
|
*/
|
|
10
10
|
const patchEsm = () => {
|
|
11
11
|
return index.promiseResolve();
|
|
@@ -14,7 +14,7 @@ const patchEsm = () => {
|
|
|
14
14
|
const defineCustomElements = (win, options) => {
|
|
15
15
|
if (typeof window === 'undefined') return Promise.resolve();
|
|
16
16
|
return patchEsm().then(() => {
|
|
17
|
-
return index.bootstrapLazy([["dso-map-base-layers.cjs",[[1,"dso-map-base-layers",{"baseLayers":[16]}]]],["dso-map-overlays.cjs",[[1,"dso-map-overlays",{"overlays":[16]}]]],["dso-header.cjs",[[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.cjs",[[1,"dso-toggletip",{"label":[1],"position":[1],"small":[4],"secondary":[4],"active":[32]}]]],["dso-tree-view.cjs",[[1,"dso-tree-view",{"collection":[16]}]]],["dso-date-picker.cjs",[[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.cjs",[[1,"dso-helpcenter-panel",{"label":[1],"url":[1],"visibility":[32],"isOpen":[32],"slideState":[32],"loadIframe":[32]}]]],["dso-label.cjs",[[1,"dso-label",{"compact":[4],"removable":[4],"status":[1],"hover":[32]}]]],["dso-map-controls.cjs",[[1,"dso-map-controls",{"open":[1540],"disableZoom":[1,"disable-zoom"],"hideContent":[32]}]]],["dso-viewer-grid.cjs",[[1,"dso-viewer-grid",{"filterpanelOpen":[516,"filterpanel-open"],"overlayOpen":[516,"overlay-open"],"mainSize":[32]}]]],["dso-alert.cjs",[[1,"dso-alert",{"status":[1],"roleAlert":[4,"role-alert"]}]]],["dso-attachments-counter.cjs",[[1,"dso-attachments-counter",{"count":[2]}]]],["dso-autosuggest.cjs",[[6,"dso-autosuggest",{"suggestions":[16],"suggestOnFocus":[4,"suggest-on-focus"],"showSuggestions":[32],"selectedSuggestion":[32]},[[4,"click","onDocumentClick"]]]]],["dso-badge.cjs",[[1,"dso-badge",{"status":[1]}]]],["dso-banner.cjs",[[1,"dso-banner",{"status":[1]}]]],["dso-highlight-box.cjs",[[1,"dso-highlight-box",{"yellow":[4],"border":[4],"white":[4],"dropShadow":[4,"drop-shadow"],"step":[2]}]]],["dso-ozon-content.cjs",[[
|
|
17
|
+
return index.bootstrapLazy([["dso-map-base-layers.cjs",[[1,"dso-map-base-layers",{"baseLayers":[16]}]]],["dso-map-overlays.cjs",[[1,"dso-map-overlays",{"overlays":[16]}]]],["dso-header.cjs",[[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.cjs",[[1,"dso-toggletip",{"label":[1],"position":[1],"small":[4],"secondary":[4],"active":[32]}]]],["dso-tree-view.cjs",[[1,"dso-tree-view",{"collection":[16]}]]],["dso-date-picker.cjs",[[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.cjs",[[1,"dso-helpcenter-panel",{"label":[1],"url":[1],"visibility":[32],"isOpen":[32],"slideState":[32],"loadIframe":[32]}]]],["dso-image-overlay.cjs",[[1,"dso-image-overlay",{"active":[32],"focused":[32]}]]],["dso-label.cjs",[[1,"dso-label",{"compact":[4],"removable":[4],"status":[1],"hover":[32]}]]],["dso-map-controls.cjs",[[1,"dso-map-controls",{"open":[1540],"disableZoom":[1,"disable-zoom"],"hideContent":[32]}]]],["dso-viewer-grid.cjs",[[1,"dso-viewer-grid",{"filterpanelOpen":[516,"filterpanel-open"],"overlayOpen":[516,"overlay-open"],"mainSize":[32]}]]],["dso-alert.cjs",[[1,"dso-alert",{"status":[1],"roleAlert":[4,"role-alert"]}]]],["dso-attachments-counter.cjs",[[1,"dso-attachments-counter",{"count":[2]}]]],["dso-autosuggest.cjs",[[6,"dso-autosuggest",{"suggestions":[16],"suggestOnFocus":[4,"suggest-on-focus"],"showSuggestions":[32],"selectedSuggestion":[32]},[[4,"click","onDocumentClick"]]]]],["dso-badge.cjs",[[1,"dso-badge",{"status":[1]}]]],["dso-banner.cjs",[[1,"dso-banner",{"status":[1]}]]],["dso-highlight-box.cjs",[[1,"dso-highlight-box",{"yellow":[4],"border":[4],"white":[4],"dropShadow":[4,"drop-shadow"],"step":[2]}]]],["dso-ozon-content.cjs",[[2,"dso-ozon-content",{"content":[1],"state":[32]}]]],["dso-progress-bar.cjs",[[1,"dso-progress-bar",{"progress":[2],"min":[2],"max":[2]}]]],["dso-dropdown-menu.cjs",[[1,"dso-dropdown-menu",{"open":[1540],"dropdownAlign":[1,"dropdown-align"],"checkable":[4]}]]],["dso-progress-indicator.cjs",[[1,"dso-progress-indicator",{"label":[1],"size":[1],"block":[4]}]]],["dso-tooltip.cjs",[[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.cjs",[[1,"dso-info-button",{"active":[1540],"secondary":[4],"label":[1]}]]],["dso-info_2.cjs",[[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.cjs",[[1,"dso-icon",{"icon":[1]}]]]], options);
|
|
18
18
|
});
|
|
19
19
|
};
|
|
20
20
|
|