@dso-toolkit/core 47.0.0 → 48.0.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.
Files changed (215) hide show
  1. package/dist/cjs/dso-accordion-section.cjs.entry.js +1447 -58
  2. package/dist/cjs/dso-autosuggest.cjs.entry.js +57 -47
  3. package/dist/cjs/dso-date-picker.cjs.entry.js +3 -2
  4. package/dist/cjs/dso-dropdown-menu.cjs.entry.js +2 -2
  5. package/dist/cjs/dso-helpcenter-panel.cjs.entry.js +1 -1
  6. package/dist/cjs/dso-image-overlay.cjs.entry.js +1 -1
  7. package/dist/cjs/dso-info_2.cjs.entry.js +2 -2
  8. package/dist/cjs/dso-label.cjs.entry.js +2 -2
  9. package/dist/cjs/dso-modal.cjs.entry.js +4 -7
  10. package/dist/cjs/dso-ozon-content.cjs.entry.js +3 -3
  11. package/dist/cjs/dso-table.cjs.entry.js +3 -5
  12. package/dist/cjs/dso-toggletip.cjs.entry.js +1 -1
  13. package/dist/cjs/dso-toolkit.cjs.js +2 -2
  14. package/dist/cjs/dso-tooltip.cjs.entry.js +13 -21
  15. package/dist/cjs/dso-viewer-grid.cjs.entry.js +8 -3
  16. package/dist/cjs/{focus-trap.esm-d83fd673.js → focus-trap.esm-c501d382.js} +82 -155
  17. package/dist/cjs/loader.cjs.js +2 -2
  18. package/dist/collection/collection-manifest.json +8 -8
  19. package/dist/collection/components/accordion/components/accordion-section.css +27 -4
  20. package/dist/collection/components/accordion/components/accordion-section.interfaces.js +6 -0
  21. package/dist/collection/components/accordion/components/accordion-section.js +91 -59
  22. package/dist/collection/components/accordion/components/handles/element.handle.js +7 -0
  23. package/dist/collection/components/accordion/components/handles/heading.handle.js +14 -0
  24. package/dist/collection/components/accordion/components/handles/icon.handle.js +13 -0
  25. package/dist/collection/components/accordion/components/handles/index.js +4 -0
  26. package/dist/collection/components/accordion/components/handles/state-icon.handle.js +15 -0
  27. package/dist/collection/components/autosuggest/autosuggest.interfaces.js +1 -0
  28. package/dist/collection/components/autosuggest/autosuggest.js +61 -49
  29. package/dist/collection/components/banner/banner.js +1 -1
  30. package/dist/collection/components/card-container/card-container.js +1 -1
  31. package/dist/collection/components/date-picker/date-picker.interfaces.js +1 -0
  32. package/dist/collection/components/date-picker/date-picker.js +19 -11
  33. package/dist/collection/components/dropdown-menu/dropdown-menu.js +2 -2
  34. package/dist/collection/components/header/header.js +2 -6
  35. package/dist/collection/components/info-button/info-button.interfaces.js +1 -0
  36. package/dist/collection/components/info-button/info-button.js +2 -1
  37. package/dist/collection/components/label/label.js +2 -2
  38. package/dist/collection/components/modal/modal.css +103 -75
  39. package/dist/collection/components/modal/modal.interfaces.js +1 -0
  40. package/dist/collection/components/modal/modal.js +6 -9
  41. package/dist/collection/components/ozon-content/nodes/noot.node.js +1 -1
  42. package/dist/collection/components/ozon-content/nodes/table.node/table.node.js +1 -1
  43. package/dist/collection/components/progress-indicator/progress-indicator.js +1 -1
  44. package/dist/collection/components/selectable/selectable.css +18 -1
  45. package/dist/collection/components/selectable/selectable.interfaces.js +1 -0
  46. package/dist/collection/components/selectable/selectable.js +3 -2
  47. package/dist/collection/components/table/table.css +49 -16
  48. package/dist/collection/components/table/table.js +2 -4
  49. package/dist/collection/components/toggletip/toggletip.js +1 -1
  50. package/dist/collection/components/tooltip/tooltip.js +13 -42
  51. package/dist/collection/components/tree-view/tree-view.js +8 -2
  52. package/dist/collection/components/viewer-grid/viewer-grid.interfaces.js +1 -0
  53. package/dist/collection/components/viewer-grid/viewer-grid.js +19 -11
  54. package/dist/collection/index.js +13 -0
  55. package/dist/components/clsx.m.js +3 -0
  56. package/dist/components/create-identifier.js +15 -0
  57. package/dist/components/dropdown-menu.js +151 -0
  58. package/dist/components/dso-accordion-section.d.ts +11 -0
  59. package/dist/components/dso-accordion-section.js +1535 -0
  60. package/dist/components/dso-accordion.d.ts +11 -0
  61. package/dist/components/dso-accordion.js +316 -0
  62. package/dist/components/dso-alert.d.ts +11 -0
  63. package/dist/components/dso-alert.js +55 -0
  64. package/dist/components/dso-attachments-counter.d.ts +11 -0
  65. package/dist/components/dso-attachments-counter.js +42 -0
  66. package/dist/components/dso-autosuggest.d.ts +11 -0
  67. package/dist/components/dso-autosuggest.js +309 -0
  68. package/dist/components/dso-badge.d.ts +11 -0
  69. package/dist/components/dso-badge.js +37 -0
  70. package/dist/components/dso-banner.d.ts +11 -0
  71. package/dist/components/dso-banner.js +37 -0
  72. package/dist/components/dso-card-container.d.ts +11 -0
  73. package/dist/components/dso-card-container.js +36 -0
  74. package/dist/components/dso-card.d.ts +11 -0
  75. package/dist/components/dso-card.js +66 -0
  76. package/dist/components/dso-date-picker.d.ts +11 -0
  77. package/dist/components/dso-date-picker.js +682 -0
  78. package/dist/components/dso-dropdown-menu.d.ts +11 -0
  79. package/dist/components/dso-dropdown-menu.js +6 -0
  80. package/dist/components/dso-header.d.ts +11 -0
  81. package/dist/components/dso-header.js +159 -0
  82. package/dist/components/dso-helpcenter-panel.d.ts +11 -0
  83. package/dist/components/dso-helpcenter-panel.js +127 -0
  84. package/dist/components/dso-highlight-box.d.ts +11 -0
  85. package/dist/components/dso-highlight-box.js +55 -0
  86. package/dist/components/dso-icon.d.ts +11 -0
  87. package/dist/components/dso-icon.js +6 -0
  88. package/dist/components/dso-image-overlay.d.ts +11 -0
  89. package/dist/components/dso-image-overlay.js +129 -0
  90. package/dist/components/dso-info-button.d.ts +11 -0
  91. package/dist/components/dso-info-button.js +6 -0
  92. package/dist/components/dso-info.d.ts +11 -0
  93. package/dist/components/dso-info.js +6 -0
  94. package/dist/components/dso-label.d.ts +11 -0
  95. package/dist/components/dso-label.js +156 -0
  96. package/dist/components/dso-map-base-layers.d.ts +11 -0
  97. package/dist/components/dso-map-base-layers.js +80 -0
  98. package/dist/components/dso-map-controls.d.ts +11 -0
  99. package/dist/components/dso-map-controls.js +86 -0
  100. package/dist/components/dso-map-overlays.d.ts +11 -0
  101. package/dist/components/dso-map-overlays.js +81 -0
  102. package/dist/components/dso-modal.d.ts +11 -0
  103. package/dist/components/dso-modal.js +85 -0
  104. package/dist/components/dso-ozon-content.d.ts +11 -0
  105. package/dist/components/dso-ozon-content.js +507 -0
  106. package/dist/components/dso-pagination.d.ts +11 -0
  107. package/dist/components/dso-pagination.js +159 -0
  108. package/dist/components/dso-progress-bar.d.ts +11 -0
  109. package/dist/components/dso-progress-bar.js +42 -0
  110. package/dist/components/dso-progress-indicator.d.ts +11 -0
  111. package/dist/components/dso-progress-indicator.js +6 -0
  112. package/dist/components/dso-responsive-element.d.ts +11 -0
  113. package/dist/components/dso-responsive-element.js +6 -0
  114. package/dist/components/dso-selectable.d.ts +11 -0
  115. package/dist/components/dso-selectable.js +6 -0
  116. package/dist/components/dso-table.d.ts +11 -0
  117. package/dist/components/dso-table.js +111 -0
  118. package/dist/components/dso-toggletip.d.ts +11 -0
  119. package/dist/components/dso-toggletip.js +90 -0
  120. package/dist/components/dso-tooltip.d.ts +11 -0
  121. package/dist/components/dso-tooltip.js +6 -0
  122. package/dist/components/dso-tree-view.d.ts +11 -0
  123. package/dist/components/dso-tree-view.js +227 -0
  124. package/dist/components/dso-viewer-grid.d.ts +11 -0
  125. package/dist/components/dso-viewer-grid.js +171 -0
  126. package/dist/components/focus-trap.esm.js +688 -0
  127. package/dist/components/icon.js +663 -0
  128. package/dist/components/index.d.ts +55 -0
  129. package/dist/components/index.esm.js +458 -0
  130. package/dist/components/index.js +35 -0
  131. package/dist/components/index2.js +70 -0
  132. package/dist/components/info-button.js +56 -0
  133. package/dist/components/info.js +42 -0
  134. package/dist/components/is-modified-event.js +4 -0
  135. package/dist/components/progress-indicator.js +44 -0
  136. package/dist/components/responsive-element.js +67 -0
  137. package/dist/components/selectable.js +108 -0
  138. package/dist/components/tooltip.js +2047 -0
  139. package/dist/components/v4.js +66 -0
  140. package/dist/dso-toolkit/dso-toolkit.esm.js +1 -1
  141. package/dist/dso-toolkit/p-04ffcc93.entry.js +1 -0
  142. package/dist/dso-toolkit/{p-e0a37d82.entry.js → p-06b4f78d.entry.js} +1 -1
  143. package/dist/dso-toolkit/{p-2b83a825.entry.js → p-35687d62.entry.js} +1 -1
  144. package/dist/dso-toolkit/p-52bc72d0.entry.js +1 -0
  145. package/dist/dso-toolkit/p-57ceabab.js +5 -0
  146. package/dist/dso-toolkit/p-655eff47.entry.js +1 -0
  147. package/dist/dso-toolkit/p-672c8323.entry.js +1 -0
  148. package/dist/dso-toolkit/p-7f8be9bc.entry.js +1 -0
  149. package/dist/dso-toolkit/p-80575700.entry.js +1 -0
  150. package/dist/dso-toolkit/p-8e9f6355.entry.js +1 -0
  151. package/dist/dso-toolkit/p-a8cb2eae.entry.js +1 -0
  152. package/dist/dso-toolkit/p-d31805a9.entry.js +1 -0
  153. package/dist/dso-toolkit/{p-dcc74039.entry.js → p-d7b2adc3.entry.js} +1 -1
  154. package/dist/dso-toolkit/{p-800e1267.entry.js → p-daee3252.entry.js} +1 -1
  155. package/dist/dso-toolkit/p-ec5412aa.entry.js +1 -0
  156. package/dist/esm/dso-accordion-section.entry.js +1448 -59
  157. package/dist/esm/dso-autosuggest.entry.js +57 -47
  158. package/dist/esm/dso-date-picker.entry.js +3 -2
  159. package/dist/esm/dso-dropdown-menu.entry.js +2 -2
  160. package/dist/esm/dso-helpcenter-panel.entry.js +1 -1
  161. package/dist/esm/dso-image-overlay.entry.js +1 -1
  162. package/dist/esm/dso-info_2.entry.js +2 -2
  163. package/dist/esm/dso-label.entry.js +2 -2
  164. package/dist/esm/dso-modal.entry.js +5 -8
  165. package/dist/esm/dso-ozon-content.entry.js +3 -3
  166. package/dist/esm/dso-table.entry.js +3 -5
  167. package/dist/esm/dso-toggletip.entry.js +1 -1
  168. package/dist/esm/dso-toolkit.js +2 -2
  169. package/dist/esm/dso-tooltip.entry.js +13 -21
  170. package/dist/esm/dso-viewer-grid.entry.js +8 -3
  171. package/dist/esm/{focus-trap.esm-33203b60.js → focus-trap.esm-94794d92.js} +82 -155
  172. package/dist/esm/loader.js +2 -2
  173. package/dist/types/components/accordion/accordion.interfaces.d.ts +0 -2
  174. package/dist/types/components/accordion/components/accordion-section.d.ts +10 -1
  175. package/dist/types/components/accordion/components/accordion-section.interfaces.d.ts +3 -0
  176. package/dist/types/components/accordion/components/handles/element.handle.d.ts +6 -0
  177. package/dist/types/components/accordion/components/handles/heading.handle.d.ts +5 -0
  178. package/dist/types/components/accordion/components/handles/icon.handle.d.ts +7 -0
  179. package/dist/types/components/accordion/components/handles/index.d.ts +4 -0
  180. package/dist/types/components/accordion/components/handles/state-icon.handle.d.ts +5 -0
  181. package/dist/types/components/autosuggest/autosuggest.d.ts +2 -15
  182. package/dist/types/components/autosuggest/autosuggest.interfaces.d.ts +14 -0
  183. package/dist/types/components/date-picker/date-picker.d.ts +2 -15
  184. package/dist/types/components/date-picker/date-picker.interfaces.d.ts +14 -0
  185. package/dist/types/components/dropdown-menu/dropdown-menu.d.ts +1 -1
  186. package/dist/types/components/header/header.d.ts +2 -2
  187. package/dist/types/components/header/header.interfaces.d.ts +1 -0
  188. package/dist/types/components/info-button/info-button.d.ts +1 -4
  189. package/dist/types/components/info-button/info-button.interfaces.d.ts +4 -0
  190. package/dist/types/components/map-overlays/map-overlays.d.ts +1 -1
  191. package/dist/types/components/modal/modal.d.ts +3 -5
  192. package/dist/types/components/modal/modal.interfaces.d.ts +3 -0
  193. package/dist/types/components/selectable/selectable.d.ts +1 -2
  194. package/dist/types/components/selectable/selectable.interfaces.d.ts +2 -0
  195. package/dist/types/components/table/table.d.ts +1 -1
  196. package/dist/types/components/tooltip/tooltip.d.ts +0 -8
  197. package/dist/types/components/tree-view/tree-view.d.ts +2 -2
  198. package/dist/types/components/viewer-grid/viewer-grid.d.ts +5 -16
  199. package/dist/types/components/viewer-grid/viewer-grid.interfaces.d.ts +15 -0
  200. package/dist/types/components.d.ts +20 -27
  201. package/dist/types/index.d.ts +13 -0
  202. package/package.json +8 -8
  203. package/dist/custom-elements/index.d.ts +0 -243
  204. package/dist/custom-elements/index.js +0 -7555
  205. package/dist/dso-toolkit/p-0917f18a.entry.js +0 -1
  206. package/dist/dso-toolkit/p-0c8cd0d8.entry.js +0 -1
  207. package/dist/dso-toolkit/p-203fc66c.entry.js +0 -1
  208. package/dist/dso-toolkit/p-3ab4441a.entry.js +0 -1
  209. package/dist/dso-toolkit/p-44c0bb3e.entry.js +0 -1
  210. package/dist/dso-toolkit/p-89d262b7.js +0 -5
  211. package/dist/dso-toolkit/p-9aa3fa9d.entry.js +0 -1
  212. package/dist/dso-toolkit/p-ba253bcd.entry.js +0 -1
  213. package/dist/dso-toolkit/p-e43e39cf.entry.js +0 -1
  214. package/dist/dso-toolkit/p-e8b22546.entry.js +0 -1
  215. package/dist/dso-toolkit/p-f93b7c7a.entry.js +0 -1
@@ -0,0 +1,55 @@
1
+ /* DsoToolkit custom elements */
2
+ export { Accordion as DsoAccordion } from '../types/components/accordion/accordion';
3
+ export { AccordionSection as DsoAccordionSection } from '../types/components/accordion/components/accordion-section';
4
+ export { Alert as DsoAlert } from '../types/components/alert/alert';
5
+ export { AttachmentsCounter as DsoAttachmentsCounter } from '../types/components/attachments-counter/attachments-counter';
6
+ export { Autosuggest as DsoAutosuggest } from '../types/components/autosuggest/autosuggest';
7
+ export { Badge as DsoBadge } from '../types/components/badge/badge';
8
+ export { Banner as DsoBanner } from '../types/components/banner/banner';
9
+ export { Card as DsoCard } from '../types/components/card/card';
10
+ export { CardContainer as DsoCardContainer } from '../types/components/card-container/card-container';
11
+ export { DsoDatePicker as DsoDatePicker } from '../types/components/date-picker/date-picker';
12
+ export { DropdownMenu as DsoDropdownMenu } from '../types/components/dropdown-menu/dropdown-menu';
13
+ export { Header as DsoHeader } from '../types/components/header/header';
14
+ export { HelpcenterPanel as DsoHelpcenterPanel } from '../types/components/helpcenter-panel/helpcenter-panel';
15
+ export { HighlightBox as DsoHighlightBox } from '../types/components/highlight-box/highlight-box';
16
+ export { Icon as DsoIcon } from '../types/components/icon/icon';
17
+ export { ImageOverlay as DsoImageOverlay } from '../types/components/image-overlay/image-overlay';
18
+ export { Info as DsoInfo } from '../types/components/info/info';
19
+ export { InfoButton as DsoInfoButton } from '../types/components/info-button/info-button';
20
+ export { Label as DsoLabel } from '../types/components/label/label';
21
+ export { MapBaseLayers as DsoMapBaseLayers } from '../types/components/map-base-layers/map-base-layers';
22
+ export { MapControls as DsoMapControls } from '../types/components/map-controls/map-controls';
23
+ export { MapOverlays as DsoMapOverlays } from '../types/components/map-overlays/map-overlays';
24
+ export { Modal as DsoModal } from '../types/components/modal/modal';
25
+ export { OzonContent as DsoOzonContent } from '../types/components/ozon-content/ozon-content';
26
+ export { Pagination as DsoPagination } from '../types/components/pagination/pagination';
27
+ export { ProgressBar as DsoProgressBar } from '../types/components/progress-bar/progress-bar';
28
+ export { Progressindicator as DsoProgressIndicator } from '../types/components/progress-indicator/progress-indicator';
29
+ export { ResponsiveElement as DsoResponsiveElement } from '../types/components/responsive-element/responsive-element';
30
+ export { Selectable as DsoSelectable } from '../types/components/selectable/selectable';
31
+ export { Table as DsoTable } from '../types/components/table/table';
32
+ export { Toggletip as DsoToggletip } from '../types/components/toggletip/toggletip';
33
+ export { Tooltip as DsoTooltip } from '../types/components/tooltip/tooltip';
34
+ export { TreeView as DsoTreeView } from '../types/components/tree-view/tree-view';
35
+ export { ViewerGrid as DsoViewerGrid } from '../types/components/viewer-grid/viewer-grid';
36
+
37
+ /**
38
+ * Used to manually set the base path where assets can be found.
39
+ * If the script is used as "module", it's recommended to use "import.meta.url",
40
+ * such as "setAssetPath(import.meta.url)". Other options include
41
+ * "setAssetPath(document.currentScript.src)", or using a bundler's replace plugin to
42
+ * dynamically set the path at build time, such as "setAssetPath(process.env.ASSET_PATH)".
43
+ * But do note that this configuration depends on how your script is bundled, or lack of
44
+ * bundling, and where your assets can be loaded from. Additionally custom bundling
45
+ * will have to ensure the static assets are copied to its build directory.
46
+ */
47
+ export declare const setAssetPath: (path: string) => void;
48
+
49
+ export interface SetPlatformOptions {
50
+ raf?: (c: FrameRequestCallback) => number;
51
+ ael?: (el: EventTarget, eventName: string, listener: EventListenerOrEventListenerObject, options: boolean | AddEventListenerOptions) => void;
52
+ rel?: (el: EventTarget, eventName: string, listener: EventListenerOrEventListenerObject, options: boolean | AddEventListenerOptions) => void;
53
+ }
54
+ export declare const setPlatformOptions: (opts: SetPlatformOptions) => void;
55
+ export * from '../types';
@@ -0,0 +1,458 @@
1
+ /*!
2
+ * tabbable 6.0.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
+ /**
16
+ * @param {Element} el container to check in
17
+ * @param {boolean} includeContainer add container to check
18
+ * @param {(node: Element) => boolean} filter filter candidates
19
+ * @returns {Element[]}
20
+ */
21
+ var getCandidates = function getCandidates(el, includeContainer, filter) {
22
+ var candidates = Array.prototype.slice.apply(el.querySelectorAll(candidateSelector));
23
+ if (includeContainer && matches.call(el, candidateSelector)) {
24
+ candidates.unshift(el);
25
+ }
26
+ candidates = candidates.filter(filter);
27
+ return candidates;
28
+ };
29
+
30
+ /**
31
+ * @callback GetShadowRoot
32
+ * @param {Element} element to check for shadow root
33
+ * @returns {ShadowRoot|boolean} ShadowRoot if available or boolean indicating if a shadowRoot is attached but not available.
34
+ */
35
+
36
+ /**
37
+ * @callback ShadowRootFilter
38
+ * @param {Element} shadowHostNode the element which contains shadow content
39
+ * @returns {boolean} true if a shadow root could potentially contain valid candidates.
40
+ */
41
+
42
+ /**
43
+ * @typedef {Object} CandidateScope
44
+ * @property {Element} scopeParent contains inner candidates
45
+ * @property {Element[]} candidates list of candidates found in the scope parent
46
+ */
47
+
48
+ /**
49
+ * @typedef {Object} IterativeOptions
50
+ * @property {GetShadowRoot|boolean} getShadowRoot true if shadow support is enabled; falsy if not;
51
+ * if a function, implies shadow support is enabled and either returns the shadow root of an element
52
+ * or a boolean stating if it has an undisclosed shadow root
53
+ * @property {(node: Element) => boolean} filter filter candidates
54
+ * @property {boolean} flatten if true then result will flatten any CandidateScope into the returned list
55
+ * @property {ShadowRootFilter} shadowRootFilter filter shadow roots;
56
+ */
57
+
58
+ /**
59
+ * @param {Element[]} elements list of element containers to match candidates from
60
+ * @param {boolean} includeContainer add container list to check
61
+ * @param {IterativeOptions} options
62
+ * @returns {Array.<Element|CandidateScope>}
63
+ */
64
+ var getCandidatesIteratively = function getCandidatesIteratively(elements, includeContainer, options) {
65
+ var candidates = [];
66
+ var elementsToCheck = Array.from(elements);
67
+ while (elementsToCheck.length) {
68
+ var element = elementsToCheck.shift();
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
+ if (options.flatten) {
75
+ candidates.push.apply(candidates, nestedCandidates);
76
+ } else {
77
+ candidates.push({
78
+ scopeParent: element,
79
+ candidates: nestedCandidates
80
+ });
81
+ }
82
+ } else {
83
+ // check candidate element
84
+ var validCandidate = matches.call(element, candidateSelector);
85
+ if (validCandidate && options.filter(element) && (includeContainer || !elements.includes(element))) {
86
+ candidates.push(element);
87
+ }
88
+
89
+ // iterate over shadow content if possible
90
+ var shadowRoot = element.shadowRoot ||
91
+ // check for an undisclosed shadow
92
+ typeof options.getShadowRoot === 'function' && options.getShadowRoot(element);
93
+ var validShadowRoot = !options.shadowRootFilter || options.shadowRootFilter(element);
94
+ if (shadowRoot && validShadowRoot) {
95
+ // add shadow dom scope IIF a shadow root node was given; otherwise, an undisclosed
96
+ // shadow exists, so look at light dom children as fallback BUT create a scope for any
97
+ // child candidates found because they're likely slotted elements (elements that are
98
+ // children of the web component element (which has the shadow), in the light dom, but
99
+ // slotted somewhere _inside_ the undisclosed shadow) -- the scope is created below,
100
+ // _after_ we return from this recursive call
101
+ var _nestedCandidates = getCandidatesIteratively(shadowRoot === true ? element.children : shadowRoot.children, true, options);
102
+ if (options.flatten) {
103
+ candidates.push.apply(candidates, _nestedCandidates);
104
+ } else {
105
+ candidates.push({
106
+ scopeParent: 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
+ return candidates;
118
+ };
119
+ var getTabindex = function getTabindex(node, isScope) {
120
+ if (node.tabIndex < 0) {
121
+ // in Chrome, <details/>, <audio controls/> and <video controls/> elements get a default
122
+ // `tabIndex` of -1 when the 'tabindex' attribute isn't specified in the DOM,
123
+ // yet they are still part of the regular tab order; in FF, they get a default
124
+ // `tabIndex` of 0; since Chrome still puts those elements in the regular tab
125
+ // order, consider their tab index to be 0.
126
+ // Also browsers do not return `tabIndex` correctly for contentEditable nodes;
127
+ // so if they don't have a tabindex attribute specifically set, assume it's 0.
128
+ //
129
+ // isScope is positive for custom element with shadow root or slot that by default
130
+ // have tabIndex -1, but need to be sorted by document order in order for their
131
+ // content to be inserted in the correct position
132
+ if ((isScope || /^(AUDIO|VIDEO|DETAILS)$/.test(node.tagName) || node.isContentEditable) && isNaN(parseInt(node.getAttribute('tabindex'), 10))) {
133
+ return 0;
134
+ }
135
+ }
136
+ return node.tabIndex;
137
+ };
138
+ var sortOrderedTabbables = function sortOrderedTabbables(a, b) {
139
+ return a.tabIndex === b.tabIndex ? a.documentOrder - b.documentOrder : a.tabIndex - b.tabIndex;
140
+ };
141
+ var isInput = function isInput(node) {
142
+ return node.tagName === 'INPUT';
143
+ };
144
+ var isHiddenInput = function isHiddenInput(node) {
145
+ return isInput(node) && node.type === 'hidden';
146
+ };
147
+ var isDetailsWithSummary = function isDetailsWithSummary(node) {
148
+ var r = node.tagName === 'DETAILS' && Array.prototype.slice.apply(node.children).some(function (child) {
149
+ return child.tagName === 'SUMMARY';
150
+ });
151
+ return r;
152
+ };
153
+ var getCheckedRadio = function getCheckedRadio(nodes, form) {
154
+ for (var i = 0; i < nodes.length; i++) {
155
+ if (nodes[i].checked && nodes[i].form === form) {
156
+ return nodes[i];
157
+ }
158
+ }
159
+ };
160
+ var isTabbableRadio = function isTabbableRadio(node) {
161
+ if (!node.name) {
162
+ return true;
163
+ }
164
+ var radioScope = node.form || getRootNode(node);
165
+ var queryRadios = function queryRadios(name) {
166
+ return radioScope.querySelectorAll('input[type="radio"][name="' + name + '"]');
167
+ };
168
+ var radioSet;
169
+ if (typeof window !== 'undefined' && typeof window.CSS !== 'undefined' && typeof window.CSS.escape === 'function') {
170
+ radioSet = queryRadios(window.CSS.escape(node.name));
171
+ } else {
172
+ try {
173
+ radioSet = queryRadios(node.name);
174
+ } catch (err) {
175
+ // eslint-disable-next-line no-console
176
+ 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);
177
+ return false;
178
+ }
179
+ }
180
+ var checked = getCheckedRadio(radioSet, node.form);
181
+ return !checked || checked === node;
182
+ };
183
+ var isRadio = function isRadio(node) {
184
+ return isInput(node) && node.type === 'radio';
185
+ };
186
+ var isNonTabbableRadio = function isNonTabbableRadio(node) {
187
+ return isRadio(node) && !isTabbableRadio(node);
188
+ };
189
+
190
+ // determines if a node is ultimately attached to the window's document
191
+ var isNodeAttached = function isNodeAttached(node) {
192
+ var _nodeRootHost;
193
+ // The root node is the shadow root if the node is in a shadow DOM; some document otherwise
194
+ // (but NOT _the_ document; see second 'If' comment below for more).
195
+ // If rootNode is shadow root, it'll have a host, which is the element to which the shadow
196
+ // is attached, and the one we need to check if it's in the document or not (because the
197
+ // shadow, and all nodes it contains, is never considered in the document since shadows
198
+ // behave like self-contained DOMs; but if the shadow's HOST, which is part of the document,
199
+ // is hidden, or is not in the document itself but is detached, it will affect the shadow's
200
+ // visibility, including all the nodes it contains). The host could be any normal node,
201
+ // or a custom element (i.e. web component). Either way, that's the one that is considered
202
+ // part of the document, not the shadow root, nor any of its children (i.e. the node being
203
+ // tested).
204
+ // To further complicate things, we have to look all the way up until we find a shadow HOST
205
+ // that is attached (or find none) because the node might be in nested shadows...
206
+ // If rootNode is not a shadow root, it won't have a host, and so rootNode should be the
207
+ // document (per the docs) and while it's a Document-type object, that document does not
208
+ // appear to be the same as the node's `ownerDocument` for some reason, so it's safer
209
+ // to ignore the rootNode at this point, and use `node.ownerDocument`. Otherwise,
210
+ // using `rootNode.contains(node)` will _always_ be true we'll get false-positives when
211
+ // node is actually detached.
212
+ var nodeRootHost = getRootNode(node).host;
213
+ var attached = !!((_nodeRootHost = nodeRootHost) !== null && _nodeRootHost !== void 0 && _nodeRootHost.ownerDocument.contains(nodeRootHost) || node.ownerDocument.contains(node));
214
+ while (!attached && nodeRootHost) {
215
+ var _nodeRootHost2;
216
+ // since it's not attached and we have a root host, the node MUST be in a nested shadow DOM,
217
+ // which means we need to get the host's host and check if that parent host is contained
218
+ // in (i.e. attached to) the document
219
+ nodeRootHost = getRootNode(nodeRootHost).host;
220
+ attached = !!((_nodeRootHost2 = nodeRootHost) !== null && _nodeRootHost2 !== void 0 && _nodeRootHost2.ownerDocument.contains(nodeRootHost));
221
+ }
222
+ return attached;
223
+ };
224
+ var isZeroArea = function isZeroArea(node) {
225
+ var _node$getBoundingClie = node.getBoundingClientRect(),
226
+ width = _node$getBoundingClie.width,
227
+ height = _node$getBoundingClie.height;
228
+ return width === 0 && height === 0;
229
+ };
230
+ var isHidden = function isHidden(node, _ref) {
231
+ var displayCheck = _ref.displayCheck,
232
+ getShadowRoot = _ref.getShadowRoot;
233
+ // NOTE: visibility will be `undefined` if node is detached from the document
234
+ // (see notes about this further down), which means we will consider it visible
235
+ // (this is legacy behavior from a very long way back)
236
+ // NOTE: we check this regardless of `displayCheck="none"` because this is a
237
+ // _visibility_ check, not a _display_ check
238
+ if (getComputedStyle(node).visibility === 'hidden') {
239
+ return true;
240
+ }
241
+ var isDirectSummary = matches.call(node, 'details>summary:first-of-type');
242
+ var nodeUnderDetails = isDirectSummary ? node.parentElement : node;
243
+ if (matches.call(nodeUnderDetails, 'details:not([open]) *')) {
244
+ return true;
245
+ }
246
+ if (!displayCheck || displayCheck === 'full' || displayCheck === 'legacy-full') {
247
+ if (typeof getShadowRoot === 'function') {
248
+ // figure out if we should consider the node to be in an undisclosed shadow and use the
249
+ // 'non-zero-area' fallback
250
+ var originalNode = node;
251
+ while (node) {
252
+ var parentElement = node.parentElement;
253
+ var rootNode = getRootNode(node);
254
+ if (parentElement && !parentElement.shadowRoot && getShadowRoot(parentElement) === true // check if there's an undisclosed shadow
255
+ ) {
256
+ // node has an undisclosed shadow which means we can only treat it as a black box, so we
257
+ // fall back to a non-zero-area test
258
+ return isZeroArea(node);
259
+ } else if (node.assignedSlot) {
260
+ // iterate up slot
261
+ node = node.assignedSlot;
262
+ } else if (!parentElement && rootNode !== node.ownerDocument) {
263
+ // cross shadow boundary
264
+ node = rootNode.host;
265
+ } else {
266
+ // iterate up normal dom
267
+ node = parentElement;
268
+ }
269
+ }
270
+ node = originalNode;
271
+ }
272
+ // else, `getShadowRoot` might be true, but all that does is enable shadow DOM support
273
+ // (i.e. it does not also presume that all nodes might have undisclosed shadows); or
274
+ // it might be a falsy value, which means shadow DOM support is disabled
275
+
276
+ // Since we didn't find it sitting in an undisclosed shadow (or shadows are disabled)
277
+ // now we can just test to see if it would normally be visible or not, provided it's
278
+ // attached to the main document.
279
+ // NOTE: We must consider case where node is inside a shadow DOM and given directly to
280
+ // `isTabbable()` or `isFocusable()` -- regardless of `getShadowRoot` option setting.
281
+
282
+ if (isNodeAttached(node)) {
283
+ // this works wherever the node is: if there's at least one client rect, it's
284
+ // somehow displayed; it also covers the CSS 'display: contents' case where the
285
+ // node itself is hidden in place of its contents; and there's no need to search
286
+ // up the hierarchy either
287
+ return !node.getClientRects().length;
288
+ }
289
+
290
+ // Else, the node isn't attached to the document, which means the `getClientRects()`
291
+ // API will __always__ return zero rects (this can happen, for example, if React
292
+ // is used to render nodes onto a detached tree, as confirmed in this thread:
293
+ // https://github.com/facebook/react/issues/9117#issuecomment-284228870)
294
+ //
295
+ // It also means that even window.getComputedStyle(node).display will return `undefined`
296
+ // because styles are only computed for nodes that are in the document.
297
+ //
298
+ // NOTE: THIS HAS BEEN THE CASE FOR YEARS. It is not new, nor is it caused by tabbable
299
+ // somehow. Though it was never stated officially, anyone who has ever used tabbable
300
+ // APIs on nodes in detached containers has actually implicitly used tabbable in what
301
+ // was later (as of v5.2.0 on Apr 9, 2021) called `displayCheck="none"` mode -- essentially
302
+ // considering __everything__ to be visible because of the innability to determine styles.
303
+ //
304
+ // v6.0.0: As of this major release, the default 'full' option __no longer treats detached
305
+ // nodes as visible with the 'none' fallback.__
306
+ if (displayCheck !== 'legacy-full') {
307
+ return true; // hidden
308
+ }
309
+ // else, fallback to 'none' mode and consider the node visible
310
+ } else if (displayCheck === 'non-zero-area') {
311
+ // NOTE: Even though this tests that the node's client rect is non-zero to determine
312
+ // whether it's displayed, and that a detached node will __always__ have a zero-area
313
+ // client rect, we don't special-case for whether the node is attached or not. In
314
+ // this mode, we do want to consider nodes that have a zero area to be hidden at all
315
+ // times, and that includes attached or not.
316
+ return isZeroArea(node);
317
+ }
318
+
319
+ // visible, as far as we can tell, or per current `displayCheck=none` mode, we assume
320
+ // it's visible
321
+ return false;
322
+ };
323
+
324
+ // form fields (nested) inside a disabled fieldset are not focusable/tabbable
325
+ // unless they are in the _first_ <legend> element of the top-most disabled
326
+ // fieldset
327
+ var isDisabledFromFieldset = function isDisabledFromFieldset(node) {
328
+ if (/^(INPUT|BUTTON|SELECT|TEXTAREA)$/.test(node.tagName)) {
329
+ var parentNode = node.parentElement;
330
+ // check if `node` is contained in a disabled <fieldset>
331
+ while (parentNode) {
332
+ if (parentNode.tagName === 'FIELDSET' && parentNode.disabled) {
333
+ // look for the first <legend> among the children of the disabled <fieldset>
334
+ for (var i = 0; i < parentNode.children.length; i++) {
335
+ var child = parentNode.children.item(i);
336
+ // when the first <legend> (in document order) is found
337
+ if (child.tagName === 'LEGEND') {
338
+ // if its parent <fieldset> is not nested in another disabled <fieldset>,
339
+ // return whether `node` is a descendant of its first <legend>
340
+ return matches.call(parentNode, 'fieldset[disabled] *') ? true : !child.contains(node);
341
+ }
342
+ }
343
+ // the disabled <fieldset> containing `node` has no <legend>
344
+ return true;
345
+ }
346
+ parentNode = parentNode.parentElement;
347
+ }
348
+ }
349
+
350
+ // else, node's tabbable/focusable state should not be affected by a fieldset's
351
+ // enabled/disabled state
352
+ return false;
353
+ };
354
+ var isNodeMatchingSelectorFocusable = function isNodeMatchingSelectorFocusable(options, node) {
355
+ if (node.disabled || isHiddenInput(node) || isHidden(node, options) ||
356
+ // For a details element with a summary, the summary element gets the focus
357
+ isDetailsWithSummary(node) || isDisabledFromFieldset(node)) {
358
+ return false;
359
+ }
360
+ return true;
361
+ };
362
+ var isNodeMatchingSelectorTabbable = function isNodeMatchingSelectorTabbable(options, node) {
363
+ if (isNonTabbableRadio(node) || getTabindex(node) < 0 || !isNodeMatchingSelectorFocusable(options, node)) {
364
+ return false;
365
+ }
366
+ return true;
367
+ };
368
+ var isValidShadowRootTabbable = function isValidShadowRootTabbable(shadowHostNode) {
369
+ var tabIndex = parseInt(shadowHostNode.getAttribute('tabindex'), 10);
370
+ if (isNaN(tabIndex) || tabIndex >= 0) {
371
+ return true;
372
+ }
373
+ // If a custom element has an explicit negative tabindex,
374
+ // browsers will not allow tab targeting said element's children.
375
+ return false;
376
+ };
377
+
378
+ /**
379
+ * @param {Array.<Element|CandidateScope>} candidates
380
+ * @returns Element[]
381
+ */
382
+ var sortByOrder = function sortByOrder(candidates) {
383
+ var regularTabbables = [];
384
+ var orderedTabbables = [];
385
+ candidates.forEach(function (item, i) {
386
+ var isScope = !!item.scopeParent;
387
+ var element = isScope ? item.scopeParent : item;
388
+ var candidateTabindex = getTabindex(element, isScope);
389
+ var elements = isScope ? sortByOrder(item.candidates) : element;
390
+ if (candidateTabindex === 0) {
391
+ isScope ? regularTabbables.push.apply(regularTabbables, elements) : regularTabbables.push(element);
392
+ } else {
393
+ orderedTabbables.push({
394
+ documentOrder: i,
395
+ tabIndex: candidateTabindex,
396
+ item: item,
397
+ isScope: isScope,
398
+ content: elements
399
+ });
400
+ }
401
+ });
402
+ return orderedTabbables.sort(sortOrderedTabbables).reduce(function (acc, sortable) {
403
+ sortable.isScope ? acc.push.apply(acc, sortable.content) : acc.push(sortable.content);
404
+ return acc;
405
+ }, []).concat(regularTabbables);
406
+ };
407
+ var tabbable = function tabbable(el, options) {
408
+ options = options || {};
409
+ var candidates;
410
+ if (options.getShadowRoot) {
411
+ candidates = getCandidatesIteratively([el], options.includeContainer, {
412
+ filter: isNodeMatchingSelectorTabbable.bind(null, options),
413
+ flatten: false,
414
+ getShadowRoot: options.getShadowRoot,
415
+ shadowRootFilter: isValidShadowRootTabbable
416
+ });
417
+ } else {
418
+ candidates = getCandidates(el, options.includeContainer, isNodeMatchingSelectorTabbable.bind(null, options));
419
+ }
420
+ return sortByOrder(candidates);
421
+ };
422
+ var focusable = function focusable(el, options) {
423
+ options = options || {};
424
+ var candidates;
425
+ if (options.getShadowRoot) {
426
+ candidates = getCandidatesIteratively([el], options.includeContainer, {
427
+ filter: isNodeMatchingSelectorFocusable.bind(null, options),
428
+ flatten: true,
429
+ getShadowRoot: options.getShadowRoot
430
+ });
431
+ } else {
432
+ candidates = getCandidates(el, options.includeContainer, isNodeMatchingSelectorFocusable.bind(null, options));
433
+ }
434
+ return candidates;
435
+ };
436
+ var isTabbable = function isTabbable(node, options) {
437
+ options = options || {};
438
+ if (!node) {
439
+ throw new Error('No node provided');
440
+ }
441
+ if (matches.call(node, candidateSelector) === false) {
442
+ return false;
443
+ }
444
+ return isNodeMatchingSelectorTabbable(options, node);
445
+ };
446
+ var focusableCandidateSelector = /* #__PURE__ */candidateSelectors.concat('iframe').join(',');
447
+ var isFocusable = function isFocusable(node, options) {
448
+ options = options || {};
449
+ if (!node) {
450
+ throw new Error('No node provided');
451
+ }
452
+ if (matches.call(node, focusableCandidateSelector) === false) {
453
+ return false;
454
+ }
455
+ return isNodeMatchingSelectorFocusable(options, node);
456
+ };
457
+
458
+ export { isFocusable as a, focusable as f, isTabbable as i, tabbable as t };
@@ -0,0 +1,35 @@
1
+ export { setAssetPath, setPlatformOptions } from '@stencil/core/internal/client';
2
+ export { DsoAccordion, defineCustomElement as defineCustomElementDsoAccordion } from './dso-accordion.js';
3
+ export { DsoAccordionSection, defineCustomElement as defineCustomElementDsoAccordionSection } from './dso-accordion-section.js';
4
+ export { DsoAlert, defineCustomElement as defineCustomElementDsoAlert } from './dso-alert.js';
5
+ export { DsoAttachmentsCounter, defineCustomElement as defineCustomElementDsoAttachmentsCounter } from './dso-attachments-counter.js';
6
+ export { DsoAutosuggest, defineCustomElement as defineCustomElementDsoAutosuggest } from './dso-autosuggest.js';
7
+ export { DsoBadge, defineCustomElement as defineCustomElementDsoBadge } from './dso-badge.js';
8
+ export { DsoBanner, defineCustomElement as defineCustomElementDsoBanner } from './dso-banner.js';
9
+ export { DsoCard, defineCustomElement as defineCustomElementDsoCard } from './dso-card.js';
10
+ export { DsoCardContainer, defineCustomElement as defineCustomElementDsoCardContainer } from './dso-card-container.js';
11
+ export { DsoDatePicker, defineCustomElement as defineCustomElementDsoDatePicker } from './dso-date-picker.js';
12
+ export { DsoDropdownMenu, defineCustomElement as defineCustomElementDsoDropdownMenu } from './dso-dropdown-menu.js';
13
+ export { DsoHeader, defineCustomElement as defineCustomElementDsoHeader } from './dso-header.js';
14
+ export { DsoHelpcenterPanel, defineCustomElement as defineCustomElementDsoHelpcenterPanel } from './dso-helpcenter-panel.js';
15
+ export { DsoHighlightBox, defineCustomElement as defineCustomElementDsoHighlightBox } from './dso-highlight-box.js';
16
+ export { DsoIcon, defineCustomElement as defineCustomElementDsoIcon } from './dso-icon.js';
17
+ export { DsoImageOverlay, defineCustomElement as defineCustomElementDsoImageOverlay } from './dso-image-overlay.js';
18
+ export { DsoInfo, defineCustomElement as defineCustomElementDsoInfo } from './dso-info.js';
19
+ export { DsoInfoButton, defineCustomElement as defineCustomElementDsoInfoButton } from './dso-info-button.js';
20
+ export { DsoLabel, defineCustomElement as defineCustomElementDsoLabel } from './dso-label.js';
21
+ export { DsoMapBaseLayers, defineCustomElement as defineCustomElementDsoMapBaseLayers } from './dso-map-base-layers.js';
22
+ export { DsoMapControls, defineCustomElement as defineCustomElementDsoMapControls } from './dso-map-controls.js';
23
+ export { DsoMapOverlays, defineCustomElement as defineCustomElementDsoMapOverlays } from './dso-map-overlays.js';
24
+ export { DsoModal, defineCustomElement as defineCustomElementDsoModal } from './dso-modal.js';
25
+ export { DsoOzonContent, defineCustomElement as defineCustomElementDsoOzonContent } from './dso-ozon-content.js';
26
+ export { DsoPagination, defineCustomElement as defineCustomElementDsoPagination } from './dso-pagination.js';
27
+ export { DsoProgressBar, defineCustomElement as defineCustomElementDsoProgressBar } from './dso-progress-bar.js';
28
+ export { DsoProgressIndicator, defineCustomElement as defineCustomElementDsoProgressIndicator } from './dso-progress-indicator.js';
29
+ export { DsoResponsiveElement, defineCustomElement as defineCustomElementDsoResponsiveElement } from './dso-responsive-element.js';
30
+ export { DsoSelectable, defineCustomElement as defineCustomElementDsoSelectable } from './dso-selectable.js';
31
+ export { DsoTable, defineCustomElement as defineCustomElementDsoTable } from './dso-table.js';
32
+ export { DsoToggletip, defineCustomElement as defineCustomElementDsoToggletip } from './dso-toggletip.js';
33
+ export { DsoTooltip, defineCustomElement as defineCustomElementDsoTooltip } from './dso-tooltip.js';
34
+ export { DsoTreeView, defineCustomElement as defineCustomElementDsoTreeView } from './dso-tree-view.js';
35
+ export { DsoViewerGrid, defineCustomElement as defineCustomElementDsoViewerGrid } from './dso-viewer-grid.js';
@@ -0,0 +1,70 @@
1
+ /**
2
+ * Returns a function, that, as long as it continues to be invoked, will not
3
+ * be triggered. The function will be called after it stops being called for
4
+ * N milliseconds. If `immediate` is passed, trigger the function on the
5
+ * leading edge, instead of the trailing. The function also has a property 'clear'
6
+ * that is a function which will clear the timer to prevent previously scheduled executions.
7
+ *
8
+ * @source underscore.js
9
+ * @see http://unscriptable.com/2009/03/20/debouncing-javascript-methods/
10
+ * @param {Function} function to wrap
11
+ * @param {Number} timeout in ms (`100`)
12
+ * @param {Boolean} whether to execute at the beginning (`false`)
13
+ * @api public
14
+ */
15
+ function debounce(func, wait, immediate){
16
+ var timeout, args, context, timestamp, result;
17
+ if (null == wait) wait = 100;
18
+
19
+ function later() {
20
+ var last = Date.now() - timestamp;
21
+
22
+ if (last < wait && last >= 0) {
23
+ timeout = setTimeout(later, wait - last);
24
+ } else {
25
+ timeout = null;
26
+ if (!immediate) {
27
+ result = func.apply(context, args);
28
+ context = args = null;
29
+ }
30
+ }
31
+ }
32
+ var debounced = function(){
33
+ context = this;
34
+ args = arguments;
35
+ timestamp = Date.now();
36
+ var callNow = immediate && !timeout;
37
+ if (!timeout) timeout = setTimeout(later, wait);
38
+ if (callNow) {
39
+ result = func.apply(context, args);
40
+ context = args = null;
41
+ }
42
+
43
+ return result;
44
+ };
45
+
46
+ debounced.clear = function() {
47
+ if (timeout) {
48
+ clearTimeout(timeout);
49
+ timeout = null;
50
+ }
51
+ };
52
+
53
+ debounced.flush = function() {
54
+ if (timeout) {
55
+ result = func.apply(context, args);
56
+ context = args = null;
57
+
58
+ clearTimeout(timeout);
59
+ timeout = null;
60
+ }
61
+ };
62
+
63
+ return debounced;
64
+ }
65
+ // Adds compatibility for ES modules
66
+ debounce.debounce = debounce;
67
+
68
+ var debounce_1 = debounce;
69
+
70
+ export { debounce_1 as d };