@epa-wg/custom-element-dist 0.0.27 → 0.0.28

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 (176) hide show
  1. package/.storybook/main.ts +2 -2
  2. package/README.md +4 -4
  3. package/coverage/coverage-final.json +22 -22
  4. package/coverage/index.html +18 -18
  5. package/coverage/src/custom-element/coverage.svg +1 -1
  6. package/coverage/src/custom-element/custom-element.js/coverage.svg +1 -1
  7. package/coverage/src/custom-element/custom-element.js.html +490 -367
  8. package/coverage/src/custom-element/demo/index.html +1 -1
  9. package/coverage/src/custom-element/demo/z.js.html +1 -1
  10. package/coverage/src/custom-element/http-request.js.html +12 -12
  11. package/coverage/src/custom-element/index.html +19 -19
  12. package/coverage/src/custom-element/local-storage.js.html +52 -52
  13. package/coverage/src/custom-element/location-element.js.html +4 -4
  14. package/coverage/src/custom-element/module-url.js.html +1 -1
  15. package/coverage/src/index.html +1 -1
  16. package/coverage/src/mocks/handlers.ts.html +1 -1
  17. package/coverage/src/mocks/index.html +1 -1
  18. package/coverage/src/stories/attributes.test.stories.ts.html +11 -2
  19. package/coverage/src/stories/css.test.stories.ts.html +8 -2
  20. package/coverage/src/stories/dom-merge.test.stories.ts.html +3 -3
  21. package/coverage/src/stories/external-template.test.stories.ts.html +8 -2
  22. package/coverage/src/stories/form.test.stories.ts.html +8 -2
  23. package/coverage/src/stories/http-request.stories.ts.html +1 -1
  24. package/coverage/src/stories/index.html +1 -1
  25. package/coverage/src/stories/local-storage.test.stories.ts.html +24 -18
  26. package/coverage/src/stories/location-element.test.stories.ts.html +8 -2
  27. package/coverage/src/stories/module-url.test.stories.ts.html +8 -2
  28. package/coverage/src/stories/set-url.test.stories.ts.html +8 -2
  29. package/coverage/src/stories/slice-events.test.stories.ts.html +8 -2
  30. package/coverage/src/stories/slots.test.stories.ts.html +8 -2
  31. package/coverage/src/stories/testStoryBook.ts.html +12 -12
  32. package/coverage/src/stories/version-select.test.stories.ts.html +8 -2
  33. package/coverage/src/sum.ts.html +1 -1
  34. package/dist/custom-element-BOIPgtxz.js +565 -0
  35. package/dist/custom-element-CUsSENWc.cjs +97 -0
  36. package/dist/custom-element-bundle.cjs +1 -1
  37. package/dist/custom-element-bundle.js +22 -21
  38. package/dist/demo/a.svg +26 -26
  39. package/dist/demo/s.xml +18 -3
  40. package/dist/demo/s.xslt +37 -54
  41. package/dist/demo/s1.xslt +59 -59
  42. package/dist/demo/ss.html +24 -57
  43. package/dist/demo/z.html +33 -33
  44. package/dist/demo/z.xml +59 -59
  45. package/dist/demo/z1.html +34 -34
  46. package/package.json +13 -13
  47. package/public/demo/a.svg +26 -26
  48. package/public/demo/s.xml +18 -3
  49. package/public/demo/s.xslt +37 -54
  50. package/public/demo/s1.xslt +59 -59
  51. package/public/demo/ss.html +24 -57
  52. package/public/demo/z.html +33 -33
  53. package/public/demo/z.xml +59 -59
  54. package/public/demo/z1.html +34 -34
  55. package/src/custom-element/custom-element.js +61 -20
  56. package/src/custom-element/demo/a.svg +26 -26
  57. package/src/custom-element/demo/s.xml +18 -3
  58. package/src/custom-element/demo/s.xslt +37 -54
  59. package/src/custom-element/demo/s1.xslt +59 -59
  60. package/src/custom-element/demo/ss.html +24 -57
  61. package/src/custom-element/demo/z.html +33 -33
  62. package/src/custom-element/demo/z.xml +59 -59
  63. package/src/custom-element/demo/z1.html +34 -34
  64. package/src/custom-element/ide/web-types-dce.json +1 -1
  65. package/src/custom-element/ide/web-types-xsl.json +1 -1
  66. package/src/dce-social-preview.png +0 -0
  67. package/src/material/angular.css +987 -0
  68. package/src/material/components/autocomplete.html +241 -0
  69. package/src/material/components/dropdown.html +115 -0
  70. package/src/material/components/menu.html +235 -0
  71. package/src/material/components.html +109 -0
  72. package/src/material/demo.css +31 -0
  73. package/src/material/index.html +169 -0
  74. package/src/material/material.css +357 -0
  75. package/src/material/theme/README.md +18 -0
  76. package/src/material/theme/semantic.css +112 -0
  77. package/src/mocks/versions.mock.ts +8 -8
  78. package/src/stories/attributes.test.stories.ts +3 -0
  79. package/src/stories/css.test.stories.ts +2 -0
  80. package/src/stories/dom-merge.test.stories.ts +2 -2
  81. package/src/stories/external-template.test.stories.ts +2 -0
  82. package/src/stories/form.test.stories.ts +2 -0
  83. package/src/stories/local-storage.test.stories.ts +2 -0
  84. package/src/stories/location-element.test.stories.ts +2 -0
  85. package/src/stories/module-url.test.stories.ts +2 -0
  86. package/src/stories/set-url.test.stories.ts +2 -0
  87. package/src/stories/slice-events.test.stories.ts +2 -0
  88. package/src/stories/slots.test.stories.ts +2 -0
  89. package/src/stories/version-select.test.stories.ts +2 -0
  90. package/storybook-static/assets/Color-ERTF36HU-ChyYtq0t.js +1 -0
  91. package/storybook-static/assets/Configure-CJVwFVjC.js +165 -0
  92. package/storybook-static/assets/DocsRenderer-CFRXHY34-Bz6q-OqD.js +2 -0
  93. package/storybook-static/assets/{attributes.test.stories-Bt5V18qO.js → attributes.test.stories-BJBuuXgZ.js} +4 -4
  94. package/storybook-static/assets/{css.test.stories-CGYy2daE.js → css.test.stories-pgbBc17d.js} +1 -1
  95. package/storybook-static/assets/custom-element-BDGsYgbP.js +97 -0
  96. package/storybook-static/assets/{dom-merge.test.stories-XlsZ0UvX.js → dom-merge.test.stories-CXcYP_-J.js} +5 -5
  97. package/storybook-static/assets/entry-preview-C313OLrj.js +26 -0
  98. package/storybook-static/assets/{entry-preview-docs-BMKNVQXA.js → entry-preview-docs-B7ORr9w5.js} +2 -2
  99. package/storybook-static/assets/{external-template.test.stories-Bt_Pflu8.js → external-template.test.stories-CpJ68Ghy.js} +13 -13
  100. package/storybook-static/assets/{form.test.stories-B0NoI8wm.js → form.test.stories-D35lyqd8.js} +2 -2
  101. package/storybook-static/assets/{handlers-B5969HUu.js → handlers-B-OZtf2K.js} +6 -6
  102. package/storybook-static/assets/{http-request.stories-B2skuTFV.js → http-request.stories-DccXgHyF.js} +6 -6
  103. package/storybook-static/assets/iframe-Ddc_axoC.js +2 -0
  104. package/storybook-static/assets/index-BSz1w4Gl.js +234 -0
  105. package/storybook-static/assets/index-BdcJ-iJ7.js +8 -0
  106. package/storybook-static/assets/index-CiCdFubk.js +634 -0
  107. package/storybook-static/assets/{index-C7lvoJNv.js → index-f2MAjm2i.js} +1 -1
  108. package/storybook-static/assets/index-lY6s0fkU.js +1 -0
  109. package/storybook-static/assets/index-tfEkrhWr.js +1 -0
  110. package/storybook-static/assets/{local-storage.test.stories-DfY6feqG.js → local-storage.test.stories-BY-PWhuk.js} +5 -5
  111. package/storybook-static/assets/{location-element.test.stories-944AotIJ.js → location-element.test.stories-3auBYEaU.js} +3 -3
  112. package/storybook-static/assets/{module-url.test.stories-DSKcwApl.js → module-url.test.stories-B7L9cL60.js} +6 -6
  113. package/storybook-static/assets/{preview-0Jj89qip.js → preview-BRPR-UXC.js} +1 -1
  114. package/storybook-static/assets/{preview-AJR7rVPD.js → preview-BUQm51_C.js} +1 -1
  115. package/storybook-static/assets/{preview-DB9FwMii.js → preview-BWzBA1C2.js} +1 -1
  116. package/storybook-static/assets/preview-BhhEZcNS.js +1 -0
  117. package/storybook-static/assets/preview-CcS4DQh8.js +1 -0
  118. package/storybook-static/assets/{preview-CadgX-4y.js → preview-CfH4_OzN.js} +2 -2
  119. package/storybook-static/assets/{preview-FpHGYA1q.js → preview-DHPc-V4N.js} +1 -1
  120. package/storybook-static/assets/preview-DYzi3Z2p.js +1 -0
  121. package/storybook-static/assets/{preview-4Up_z4Em.js → preview-caVMbCIR.js} +2 -2
  122. package/storybook-static/assets/preview-ncvtW_hb.js +34 -0
  123. package/storybook-static/assets/{set-url.test.stories-DjLHKkEh.js → set-url.test.stories-CuSuDLIx.js} +3 -3
  124. package/storybook-static/assets/{slice-events.test.stories-8I_BrHd6.js → slice-events.test.stories-BkRKsKem.js} +4 -4
  125. package/storybook-static/assets/{slots.test.stories-CvZz4jyP.js → slots.test.stories-BJCUWFkE.js} +8 -8
  126. package/storybook-static/assets/{version-select.test.stories-DSxmJylI.js → version-select.test.stories-B3ybJn_Z.js} +2 -2
  127. package/storybook-static/demo/a.svg +26 -26
  128. package/storybook-static/demo/s.xml +18 -3
  129. package/storybook-static/demo/s.xslt +37 -54
  130. package/storybook-static/demo/s1.xslt +59 -59
  131. package/storybook-static/demo/ss.html +24 -57
  132. package/storybook-static/demo/z.html +33 -33
  133. package/storybook-static/demo/z.xml +59 -59
  134. package/storybook-static/demo/z1.html +34 -34
  135. package/storybook-static/iframe.html +1 -1
  136. package/storybook-static/index.html +3 -7
  137. package/storybook-static/project.json +1 -1
  138. package/storybook-static/sb-addons/essentials-actions-3/manager-bundle.js +1 -1
  139. package/storybook-static/sb-addons/essentials-backgrounds-4/manager-bundle.js +9 -9
  140. package/storybook-static/sb-addons/essentials-controls-2/manager-bundle.js +76 -94
  141. package/storybook-static/sb-addons/essentials-measure-7/manager-bundle.js +1 -1
  142. package/storybook-static/sb-addons/essentials-outline-8/manager-bundle.js +1 -1
  143. package/storybook-static/sb-addons/essentials-toolbars-6/manager-bundle.js +1 -1
  144. package/storybook-static/sb-addons/essentials-viewport-5/manager-bundle.js +1 -1
  145. package/storybook-static/sb-addons/interactions-9/manager-bundle.js +211 -0
  146. package/storybook-static/sb-addons/interactions-9/manager-bundle.js.LEGAL.txt +0 -0
  147. package/storybook-static/sb-manager/globals-module-info.js +11 -0
  148. package/storybook-static/sb-manager/globals-runtime.js +27803 -26928
  149. package/storybook-static/sb-manager/runtime.js +10341 -10136
  150. package/storybook-static/sb-preview/runtime.js +3841 -3828
  151. package/.idea/custom-element-dist.iml +0 -9
  152. package/.idea/misc.xml +0 -6
  153. package/.idea/modules.xml +0 -8
  154. package/.idea/vcs.xml +0 -6
  155. package/dist/custom-element-BMMsP1Dy.js +0 -533
  156. package/dist/custom-element-CPSk7s0j.cjs +0 -87
  157. package/storybook-static/assets/Color-KGDBMAHA-CJo5gHY3.js +0 -1
  158. package/storybook-static/assets/Configure-DdXbGKhY.js +0 -173
  159. package/storybook-static/assets/DocsRenderer-PKQXORMH-DLnpL5hE.js +0 -2
  160. package/storybook-static/assets/custom-element-D8hcDZHh.js +0 -265
  161. package/storybook-static/assets/entry-preview-BKQ8UCxI.js +0 -8
  162. package/storybook-static/assets/iframe-Dfrt81rk.js +0 -2
  163. package/storybook-static/assets/index-Ay195x2L.js +0 -605
  164. package/storybook-static/assets/index-C3ChPTMh.js +0 -1
  165. package/storybook-static/assets/index-C8k3Z-3Y.js +0 -28
  166. package/storybook-static/assets/index-DGdNYaqV.js +0 -8
  167. package/storybook-static/assets/index-Gpdhz4ab.js +0 -1
  168. package/storybook-static/assets/lit-element-DzhCn-8W.js +0 -19
  169. package/storybook-static/assets/preview-BJPLiuSt.js +0 -1
  170. package/storybook-static/assets/preview-BMWqy4Bi.js +0 -1
  171. package/storybook-static/assets/preview-BnWGZYux.js +0 -1
  172. package/storybook-static/assets/preview-Djh1_Tal.js +0 -20
  173. package/storybook-static/sb-addons/chromatic-com-storybook-9/manager-bundle.js +0 -336
  174. package/storybook-static/sb-addons/chromatic-com-storybook-9/manager-bundle.js.LEGAL.txt +0 -77
  175. package/storybook-static/sb-addons/interactions-10/manager-bundle.js +0 -234
  176. /package/{storybook-static/sb-addons/interactions-10/manager-bundle.js.LEGAL.txt → src/material/guide/getting-started/index.html} +0 -0
@@ -1 +1 @@
1
- import{ae as e}from"./index-Ay195x2L.js";const o={},c=e.createContext(o);function u(n){const t=e.useContext(c);return e.useMemo(function(){return typeof n=="function"?n(t):{...t,...n}},[t,n])}function s(n){let t;return n.disableParentContext?t=typeof n.components=="function"?n.components(o):n.components||o:t=u(n.components),e.createElement(c.Provider,{value:t},n.children)}export{s as M,u};
1
+ import{ae as e}from"./index-CiCdFubk.js";const o={},c=e.createContext(o);function u(n){const t=e.useContext(c);return e.useMemo(function(){return typeof n=="function"?n(t):{...t,...n}},[t,n])}function s(n){let t;return n.disableParentContext?t=typeof n.components=="function"?n.components(o):n.components||o:t=u(n.components),e.createElement(c.Provider,{value:t},n.children)}export{s as M,u};
@@ -0,0 +1 @@
1
+ import{f as p,n as i,F as l,$ as m,L as c,h as T,B as b,e as d,m as S,g as B,v as L,u as C,I as H,t as u,X as g,x as y,w as I,b as h,y as k,D as P,a as W,C as A,E as F,T as x,c as D,_ as R,S as f,R as v,O as E,d as M,G as N,i as q,A as w,j as O,P as U,k as Z,l as j,o as z,p as G,q as J,r as K,z as Q,H as V,s as X,J as Y,K as _,M as $,N as aa,Q as sa,U as oa,V as ta,W as ea,Y as ra,Z as na,a0 as pa,a1 as ia,a2 as la,a3 as ma,a4 as ca,a5 as Ta,a6 as ba,a7 as da,a8 as Sa,a9 as Ba,aa as La,ab as Ca,ac as Ha,ad as ua}from"./index-CiCdFubk.js";import"./iframe-Ddc_axoC.js";import"../sb-preview/runtime.js";import"./index-BdcJ-iJ7.js";import"./index-D-8MO0q_.js";import"./index-DrFu-skq.js";export{p as A,i as ActionBar,l as AddonPanel,m as Badge,c as Bar,T as Blockquote,b as Button,d as ClipboardCode,S as Code,B as DL,L as Div,C as DocumentWrapper,H as EmptyTabContent,u as ErrorFormatter,g as FlexBar,y as Form,I as H1,h as H2,k as H3,P as H4,W as H5,A as H6,F as HR,x as IconButton,D as IconButtonSkeleton,R as Icons,f as Img,v as LI,E as Link,M as ListItem,N as Loader,q as Modal,w as OL,O as P,U as Placeholder,Z as Pre,j as ResetWrapper,z as ScrollArea,G as Separator,J as Spaced,K as Span,Q as StorybookIcon,V as StorybookLogo,X as Symbols,Y as SyntaxHighlighter,_ as TT,$ as TabBar,aa as TabButton,sa as TabWrapper,oa as Table,ta as Tabs,ea as TabsState,ra as TooltipLinkList,na as TooltipMessage,pa as TooltipNote,ia as UL,la as WithTooltip,ma as WithTooltipPure,ca as Zoom,Ta as codeCommon,ba as components,da as createCopyToClipboardFunction,Sa as getStoryHref,Ba as icons,La as interleaveSeparators,Ca as nameSpaceClassNames,Ha as resetComponents,ua as withReset};
@@ -0,0 +1 @@
1
+ import{M,u as a}from"./index-f2MAjm2i.js";import"./index-CiCdFubk.js";import"./iframe-Ddc_axoC.js";import"../sb-preview/runtime.js";import"./index-BdcJ-iJ7.js";import"./index-D-8MO0q_.js";import"./index-DrFu-skq.js";export{M as MDXProvider,a as useMDXComponents};
@@ -1,4 +1,4 @@
1
- import{w as x,u as y,e as c}from"./custom-element-D8hcDZHh.js";import"./http-request-DNq59pnj.js";import"./location-element-hKpcXCdn.js";import"./index-C8k3Z-3Y.js";const g=(l,t)=>{if(l==="text")return t;if(l==="json")try{return JSON.parse(t)}catch{return null}const a=document.createElement("input");return a.setAttribute("type",l),l==="number"?(a.value=t,a.valueAsNumber):l==="date"?t?(a.valueAsDate=new Date(t),a.value):null:(a.value=t,a.value)};let b,S,w;function I(l,t){b.call(localStorage,l,t),window.dispatchEvent(new CustomEvent("local-storage",{detail:{key:l,value:t}}))}function B(l){S.call(localStorage,l),window.dispatchEvent(new CustomEvent("local-storage",{detail:{key:l}}))}function p(){w.call(localStorage),window.dispatchEvent(new CustomEvent("local-storage",{detail:{}}))}function T(){b||(b=localStorage.setItem,localStorage.setItem=I,S=localStorage.removeItem,localStorage.removeItem=B,w=localStorage.clear,localStorage.clear=p)}T();function V(l,t){I(l,t)}class K extends HTMLElement{static observedAttributes=["value","slice","key","type","live"];#e;get value(){return this.#e===null?void 0:this.#e}set value(t){return this.#e=t}async connectedCallback(){const t=i=>this.getAttribute(i),a=()=>{this.#e=g(t("type"),localStorage.getItem(t("key"))),this.dispatchEvent(new Event("change"))};if(this.#e=g(t("type"),localStorage.getItem(t("key"))),this.hasAttribute("value")?V(t("key"),this.#e=t("value")):a(),this.hasAttribute("live")){const i=e=>(e.detail.key===t("key")||!e.detail.key)&&a();window.addEventListener("local-storage",i),T(),this._destroy=()=>window.removeEventListener("local-storage",i)}}disconnectedCallback(){this._destroy?.()}}window.customElements.define("local-storage",K);const r={title:"",slice:"ls-slice",key:"sb-ls-key",value:"",live:"",body:""};function o(l){return new Promise(t=>setTimeout(t,l))}function f(l){const{title:t,slice:a,key:i,value:e,live:n,body:u}={...r,...l};return`
1
+ import{w as x,u as y,e as c}from"./index-BSz1w4Gl.js";import"./custom-element-BDGsYgbP.js";import"./http-request-DNq59pnj.js";import"./location-element-hKpcXCdn.js";const g=(l,t)=>{if(l==="text")return t;if(l==="json")try{return JSON.parse(t)}catch{return null}const a=document.createElement("input");return a.setAttribute("type",l),l==="number"?(a.value=t,a.valueAsNumber):l==="date"?t?(a.valueAsDate=new Date(t),a.value):null:(a.value=t,a.value)};let b,S,w;function I(l,t){b.call(localStorage,l,t),window.dispatchEvent(new CustomEvent("local-storage",{detail:{key:l,value:t}}))}function B(l){S.call(localStorage,l),window.dispatchEvent(new CustomEvent("local-storage",{detail:{key:l}}))}function p(){w.call(localStorage),window.dispatchEvent(new CustomEvent("local-storage",{detail:{}}))}function T(){b||(b=localStorage.setItem,localStorage.setItem=I,S=localStorage.removeItem,localStorage.removeItem=B,w=localStorage.clear,localStorage.clear=p)}T();function V(l,t){I(l,t)}class K extends HTMLElement{static observedAttributes=["value","slice","key","type","live"];#e;get value(){return this.#e===null?void 0:this.#e}set value(t){return this.#e=t}async connectedCallback(){const t=i=>this.getAttribute(i),a=()=>{this.#e=g(t("type"),localStorage.getItem(t("key"))),this.dispatchEvent(new Event("change"))};if(this.#e=g(t("type"),localStorage.getItem(t("key"))),this.hasAttribute("value")?V(t("key"),this.#e=t("value")):a(),this.hasAttribute("live")){const i=e=>(e.detail.key===t("key")||!e.detail.key)&&a();window.addEventListener("local-storage",i),T(),this._destroy=()=>window.removeEventListener("local-storage",i)}}disconnectedCallback(){this._destroy?.()}}window.customElements.define("local-storage",K);const r={title:"",slice:"ls-slice",key:"sb-ls-key",value:"",live:"",body:""};function o(l){return new Promise(t=>setTimeout(t,l))}function f(l){const{title:t,slice:a,key:i,value:e,live:n,body:u}={...r,...l};return`
2
2
  <fieldset>
3
3
  <legend>${t}</legend>
4
4
 
@@ -109,7 +109,7 @@ import{w as x,u as y,e as c}from"./custom-element-D8hcDZHh.js";import"./http-req
109
109
  }) => {
110
110
  localStorage_clear();
111
111
  const canvas = within(canvasElement);
112
- await canvas.findByText((Demo.args!.title as string));
112
+ await canvas.findByText(Demo.args!.title as string);
113
113
  const val = () => canvas.getByTestId('slice-value').textContent;
114
114
  await userEvent.click(await canvas.findByText('set blank'));
115
115
  await expect(localStorage.getItem(defs.key)).toEqual(null, 'from localStorage');
@@ -144,7 +144,7 @@ import{w as x,u as y,e as c}from"./custom-element-D8hcDZHh.js";import"./http-req
144
144
  canvasElement
145
145
  }) => {
146
146
  const canvas = within(canvasElement);
147
- await canvas.findByText((AlwaysOverride.args!.title as string));
147
+ await canvas.findByText(AlwaysOverride.args!.title as string);
148
148
  const val = () => canvas.getByTestId('slice-value').textContent;
149
149
  const click = async text => await userEvent.click(await canvas.findByText(text));
150
150
  await sleep(10);
@@ -184,7 +184,7 @@ import{w as x,u as y,e as c}from"./custom-element-D8hcDZHh.js";import"./http-req
184
184
  canvasElement
185
185
  }) => {
186
186
  const canvas = within(canvasElement);
187
- await canvas.findByText((FromStorageWithDefault.args!.title as string));
187
+ await canvas.findByText(FromStorageWithDefault.args!.title as string);
188
188
  const byText = txt => canvas.getByText(txt);
189
189
  expect(localStorage.getItem(defs.key)).toEqual('ABC', 'from localStorage');
190
190
  byText('clear localStorage').click();
@@ -265,7 +265,7 @@ import{w as x,u as y,e as c}from"./custom-element-D8hcDZHh.js";import"./http-req
265
265
  b: 'B'
266
266
  };
267
267
  const canvas = within(canvasElement);
268
- await canvas.findByText((TypeAttribute.args!.title as string));
268
+ await canvas.findByText(TypeAttribute.args!.title as string);
269
269
  const byText = txt => canvas.getByText(txt),
270
270
  val = testId => canvas.getByTestId(testId).textContent,
271
271
  expectVal = (key, value) => {
@@ -1,4 +1,4 @@
1
- import{w as m,e}from"./custom-element-D8hcDZHh.js";import"./location-element-hKpcXCdn.js";import"./index-C8k3Z-3Y.js";const u={title:"",slice:"url-slice",href:"",live:"",body:""};function h(c){return new Promise(o=>setTimeout(o,c))}function x(c){const{title:o,slice:t,href:l,live:r,body:i}={...u,...c};return`
1
+ import{w as m,e}from"./index-BSz1w4Gl.js";import"./custom-element-BDGsYgbP.js";import"./location-element-hKpcXCdn.js";const u={title:"",slice:"url-slice",href:"",live:"",body:""};function h(c){return new Promise(o=>setTimeout(o,c))}function x(c){const{title:o,slice:t,href:l,live:r,body:i}={...u,...c};return`
2
2
  <fieldset>
3
3
  <legend>${o}</legend>
4
4
 
@@ -53,7 +53,7 @@ import{w as m,e}from"./custom-element-D8hcDZHh.js";import"./location-element-hKp
53
53
  canvasElement
54
54
  }) => {
55
55
  const canvas = within(canvasElement);
56
- await canvas.findByText((Demo.args!.title as string));
56
+ await canvas.findByText(Demo.args!.title as string);
57
57
  const val = prop => canvas.getByTestId('param-' + prop).textContent.trim(),
58
58
  byText = txt => canvas.getByText(txt),
59
59
  expectMatch = (l, prop) => expect(val(prop)).toEqual(l[prop], prop),
@@ -84,7 +84,7 @@ import{w as m,e}from"./custom-element-D8hcDZHh.js";import"./location-element-hKp
84
84
  canvasElement
85
85
  }) => {
86
86
  const canvas = within(canvasElement);
87
- await canvas.findByText((SrcAttribute.args!.title as string));
87
+ await canvas.findByText(SrcAttribute.args!.title as string);
88
88
  const val = prop => canvas.getByTestId('param-' + prop).textContent.trim(),
89
89
  byText = txt => canvas.getByText(txt),
90
90
  expectMatch = (l, prop) => expect(val(prop)).toEqual(l[prop], prop),
@@ -1,4 +1,4 @@
1
- import{w as s,e as a}from"./custom-element-D8hcDZHh.js";import"./index-C8k3Z-3Y.js";const c=(t,e)=>t.getAttribute(e);class b extends HTMLElement{static observedAttributes=["slice","src"];sliceInit(){let e=c(this,"src");try{const l=e.charAt(0)==="."?new URL(e,this.closest("[base]")?.getAttribute("base")||location.href).href:import.meta.resolve(e);this.setAttribute("value",this.value=l)}catch(l){this.setAttribute("error",l.message),this.setAttribute("value",e),console.error(l.message??l,e)}this.dispatchEvent(new Event("change"))}attributeChangedCallback(e,l,u){e==="src"&&this.sliceInit()}}window.customElements.define("module-url",b);function d(t){const{title:e,body:l}=t;return`
1
+ import{w as s,e as a}from"./index-BSz1w4Gl.js";import"./custom-element-BDGsYgbP.js";const c=(t,e)=>t.getAttribute(e);class b extends HTMLElement{static observedAttributes=["slice","src"];sliceInit(){let e=c(this,"src");try{const l=e.charAt(0)==="."?new URL(e,this.closest("[base]")?.getAttribute("base")||location.href).href:import.meta.resolve(e);this.setAttribute("value",this.value=l)}catch(l){this.setAttribute("error",l.message),this.setAttribute("value",e),console.error(l.message??l,e)}this.dispatchEvent(new Event("change"))}attributeChangedCallback(e,l,u){e==="src"&&this.sliceInit()}}window.customElements.define("module-url",b);function d(t){const{title:e,body:l}=t;return`
2
2
  <fieldset>
3
3
  <legend>${e}</legend>
4
4
  ${l}
@@ -84,7 +84,7 @@ import{w as s,e as a}from"./custom-element-D8hcDZHh.js";import"./index-C8k3Z-3Y.
84
84
  canvasElement
85
85
  }) => {
86
86
  const canvas = within(canvasElement);
87
- await canvas.findByText((RelativeToPagePath.args!.title as string));
87
+ await canvas.findByText(RelativeToPagePath.args!.title as string);
88
88
  await expect(await canvas.findByText('🖖')).toBeInTheDocument();
89
89
  await expect(await canvas.findByText('embed-1.html')).toBeInTheDocument();
90
90
  }
@@ -113,7 +113,7 @@ import{w as s,e as a}from"./custom-element-D8hcDZHh.js";import"./index-C8k3Z-3Y.
113
113
  }) => {
114
114
  const p = import.meta.resolve('embed-lib');
115
115
  const canvas = within(canvasElement);
116
- await canvas.findByText((ModuleBySymbolicName.args!.title as string));
116
+ await canvas.findByText(ModuleBySymbolicName.args!.title as string);
117
117
  await expect(await canvas.findByText('check the link:')).toBeInTheDocument();
118
118
  await expect(await canvas.findByText('👋 from embed-lib-component')).toBeInTheDocument();
119
119
  }
@@ -141,7 +141,7 @@ import{w as s,e as a}from"./custom-element-D8hcDZHh.js";import"./index-C8k3Z-3Y.
141
141
  canvasElement
142
142
  }) => {
143
143
  const canvas = within(canvasElement);
144
- await canvas.findByText((MissingImportmapEntry.args!.title as string));
144
+ await canvas.findByText(MissingImportmapEntry.args!.title as string);
145
145
  await expect(await canvas.findByText('error:')).toBeInTheDocument();
146
146
  await expect(await canvas.findByText('failed to load')).toBeInTheDocument();
147
147
  }
@@ -170,7 +170,7 @@ import{w as s,e as a}from"./custom-element-D8hcDZHh.js";import"./index-C8k3Z-3Y.
170
170
  canvasElement
171
171
  }) => {
172
172
  const canvas = within(canvasElement);
173
- await canvas.findByText((ModuleByName.args!.title as string));
173
+ await canvas.findByText(ModuleByName.args!.title as string);
174
174
  await expect(await canvas.findByText('👌 from embed-relative-hash invoking')).toBeInTheDocument();
175
175
  await expect(await canvas.findByText('lib-root/embed-lib.html#embed-relative-hash')).toBeInTheDocument();
176
176
  await expect(await canvas.findByText('#embed-lib-component')).toBeInTheDocument();
@@ -198,7 +198,7 @@ import{w as s,e as a}from"./custom-element-D8hcDZHh.js";import"./index-C8k3Z-3Y.
198
198
  canvasElement
199
199
  }) => {
200
200
  const canvas = within(canvasElement);
201
- await canvas.findByText((HashWithinLib.args!.title as string));
201
+ await canvas.findByText(HashWithinLib.args!.title as string);
202
202
  await expect(await canvas.findByText('lib-root/embed-lib.html#embed-relative-file')).toBeInTheDocument();
203
203
  await expect(await canvas.findByText('👍 from embed-relative-file invoking')).toBeInTheDocument();
204
204
  await expect(await canvas.findByText('../embed-1.html')).toBeInTheDocument();
@@ -1 +1 @@
1
- import{i as r}from"./index-C8k3Z-3Y.js";var{step:a}=r({step:(p,t,e)=>t(e)},{intercept:!0}),i={throwPlayFunctionExceptions:!1};export{i as parameters,a as runStep};
1
+ import{i as r}from"./index-BSz1w4Gl.js";var{step:a}=r({step:(p,t,e)=>t(e)},{intercept:!0}),i={throwPlayFunctionExceptions:!1};export{i as parameters,a as runStep};
@@ -1,4 +1,4 @@
1
- import{i as F,d,E as N,t as ye,I as G,k as ve,c as we,R as be,h as Ee}from"./handlers-B5969HUu.js";function Re(e,t){const r=e.emit;if(r._isPiped)return;const s=function(n,...i){return t.emit(n,...i),r.call(this,n,...i)};s._isPiped=!0,e.emit=s}function ke(e){const t=[...e];return Object.freeze(t),t}class qe{subscriptions=[];dispose(){let t;for(;t=this.subscriptions.shift();)t()}}class Se{constructor(t){this.initialHandlers=t,this.handlers=[...t]}handlers;prepend(t){this.handlers.unshift(...t)}reset(t){this.handlers=t.length>0?[...t]:[...this.initialHandlers]}currentHandlers(){return this.handlers}}class Le extends qe{handlersController;emitter;publicEmitter;events;constructor(...t){super(),F(this.validateHandlers(t),d.formatMessage("Failed to apply given request handlers: invalid input. Did you forget to spread the request handlers Array?")),this.handlersController=new Se(t),this.emitter=new N,this.publicEmitter=new N,Re(this.emitter,this.publicEmitter),this.events=this.createLifeCycleEvents(),this.subscriptions.push(()=>{this.emitter.removeAllListeners(),this.publicEmitter.removeAllListeners()})}validateHandlers(t){return t.every(r=>!Array.isArray(r))}use(...t){F(this.validateHandlers(t),d.formatMessage('Failed to call "use()" with the given request handlers: invalid input. Did you forget to spread the array of request handlers?')),this.handlersController.prepend(t)}restoreHandlers(){this.handlersController.currentHandlers().forEach(t=>{t.isUsed=!1})}resetHandlers(...t){this.handlersController.reset(t)}listHandlers(){return ke(this.handlersController.currentHandlers())}createLifeCycleEvents(){return{on:(...t)=>this.publicEmitter.on(...t),removeListener:(...t)=>this.publicEmitter.removeListener(...t),removeAllListeners:(...t)=>this.publicEmitter.removeAllListeners(...t)}}}var Te=async e=>{try{return{error:null,data:await e().catch(r=>{throw r})}}catch(t){return{error:t,data:null}}};const xe=async({request:e,requestId:t,handlers:r,resolutionContext:s})=>{let o=null,n=null;for(const i of r)if(n=await i.run({request:e,requestId:t,resolutionContext:s}),n!==null&&(o=i),n?.response)break;return o?{handler:o,parsedResult:n?.parsedResult,response:n?.response}:null};async function Pe(e,t="warn"){const r=new URL(e.url),s=ye(r)+r.search,o=e.method==="HEAD"||e.method==="GET"?null:await e.clone().text(),i=`intercepted a request without a matching request handler:${`
1
+ import{i as F,d,E as N,t as ye,I as G,k as ve,c as we,R as be,h as Ee}from"./handlers-B-OZtf2K.js";function Re(e,t){const r=e.emit;if(r._isPiped)return;const s=function(n,...i){return t.emit(n,...i),r.call(this,n,...i)};s._isPiped=!0,e.emit=s}function ke(e){const t=[...e];return Object.freeze(t),t}class qe{subscriptions=[];dispose(){let t;for(;t=this.subscriptions.shift();)t()}}class Se{constructor(t){this.initialHandlers=t,this.handlers=[...t]}handlers;prepend(t){this.handlers.unshift(...t)}reset(t){this.handlers=t.length>0?[...t]:[...this.initialHandlers]}currentHandlers(){return this.handlers}}class Le extends qe{handlersController;emitter;publicEmitter;events;constructor(...t){super(),F(this.validateHandlers(t),d.formatMessage("Failed to apply given request handlers: invalid input. Did you forget to spread the request handlers Array?")),this.handlersController=new Se(t),this.emitter=new N,this.publicEmitter=new N,Re(this.emitter,this.publicEmitter),this.events=this.createLifeCycleEvents(),this.subscriptions.push(()=>{this.emitter.removeAllListeners(),this.publicEmitter.removeAllListeners()})}validateHandlers(t){return t.every(r=>!Array.isArray(r))}use(...t){F(this.validateHandlers(t),d.formatMessage('Failed to call "use()" with the given request handlers: invalid input. Did you forget to spread the array of request handlers?')),this.handlersController.prepend(t)}restoreHandlers(){this.handlersController.currentHandlers().forEach(t=>{t.isUsed=!1})}resetHandlers(...t){this.handlersController.reset(t)}listHandlers(){return ke(this.handlersController.currentHandlers())}createLifeCycleEvents(){return{on:(...t)=>this.publicEmitter.on(...t),removeListener:(...t)=>this.publicEmitter.removeListener(...t),removeAllListeners:(...t)=>this.publicEmitter.removeAllListeners(...t)}}}var Te=async e=>{try{return{error:null,data:await e().catch(r=>{throw r})}}catch(t){return{error:t,data:null}}};const xe=async({request:e,requestId:t,handlers:r,resolutionContext:s})=>{let o=null,n=null;for(const i of r)if(n=await i.run({request:e,requestId:t,resolutionContext:s}),n!==null&&(o=i),n?.response)break;return o?{handler:o,parsedResult:n?.parsedResult,response:n?.response}:null};async function Pe(e,t="warn"){const r=new URL(e.url),s=ye(r)+r.search,o=e.method==="HEAD"||e.method==="GET"?null:await e.clone().text(),i=`intercepted a request without a matching request handler:${`
2
2
 
3
3
  • ${e.method} ${s}
4
4
 
@@ -1,4 +1,4 @@
1
- import{d as $}from"./index-DrFu-skq.js";const{useMemo:x,useEffect:f}=__STORYBOOK_MODULE_PREVIEW_API__,{global:p}=__STORYBOOK_MODULE_GLOBAL__;var u=i=>{(Array.isArray(i)?i:[i]).forEach(r)},r=i=>{let t=typeof i=="string"?i:i.join(""),o=p.document.getElementById(t);o&&o.parentElement&&o.parentElement.removeChild(o)},b=(i,t)=>{let o=p.document.getElementById(i);if(o)o.innerHTML!==t&&(o.innerHTML=t);else{let n=p.document.createElement("style");n.setAttribute("id",i),n.innerHTML=t,p.document.head.appendChild(n)}},m="outline";function s(i){return $`
1
+ import{d as $}from"./index-DrFu-skq.js";const{useMemo:x,useEffect:f}=__STORYBOOK_MODULE_PREVIEW_API__,{global:p}=__STORYBOOK_MODULE_GLOBAL__;var m="outline",u=i=>{(Array.isArray(i)?i:[i]).forEach(r)},r=i=>{let t=typeof i=="string"?i:i.join(""),o=p.document.getElementById(t);o&&o.parentElement&&o.parentElement.removeChild(o)},b=(i,t)=>{let o=p.document.getElementById(i);if(o)o.innerHTML!==t&&(o.innerHTML=t);else{let n=p.document.createElement("style");n.setAttribute("id",i),n.innerHTML=t,p.document.head.appendChild(n)}};function s(i){return $`
2
2
  ${i} body {
3
3
  outline: 1px solid #2980b9 !important;
4
4
  }
@@ -0,0 +1 @@
1
+ import"./index-D-8MO0q_.js";const{STORY_CHANGED:O,SELECT_STORY:E}=__STORYBOOK_MODULE_CORE_EVENTS__,{makeDecorator:l,addons:_}=__STORYBOOK_MODULE_PREVIEW_API__,{global:L}=__STORYBOOK_MODULE_GLOBAL__;var c="links",{document:i,HTMLElement:m}=L,v=e=>_.getChannel().emit(E,e),o=e=>{let{target:t}=e;if(!(t instanceof m))return;let s=t,{sbKind:a,sbStory:r}=s.dataset;(a||r)&&(e.preventDefault(),v({kind:a,story:r}))},n=!1,d=()=>{n||(n=!0,i.addEventListener("click",o))},k=()=>{n&&(n=!1,i.removeEventListener("click",o))},R=l({name:"withLinks",parameterName:c,wrapper:(e,t)=>(d(),_.getChannel().once(O,k),e(t))}),T=[R];export{T as decorators};
@@ -0,0 +1 @@
1
+ import{i as S}from"./tiny-invariant-BxWVcicq.js";const{useEffect:T}=__STORYBOOK_MODULE_PREVIEW_API__,{global:d}=__STORYBOOK_MODULE_GLOBAL__;var j="measureEnabled";function Y(){let e=d.document.documentElement,t=Math.max(e.scrollHeight,e.offsetHeight);return{width:Math.max(e.scrollWidth,e.offsetWidth),height:t}}function K(){let e=d.document.createElement("canvas");e.id="storybook-addon-measure";let t=e.getContext("2d");S(t!=null);let{width:o,height:l}=Y();return A(e,t,{width:o,height:l}),e.style.position="absolute",e.style.left="0",e.style.top="0",e.style.zIndex="2147483647",e.style.pointerEvents="none",d.document.body.appendChild(e),{canvas:e,context:t,width:o,height:l}}function A(e,t,{width:o,height:l}){e.style.width=`${o}px`,e.style.height=`${l}px`;let i=d.window.devicePixelRatio;e.width=Math.floor(o*i),e.height=Math.floor(l*i),t.scale(i,i)}var h={};function G(){h.canvas||(h=K())}function H(){h.context&&h.context.clearRect(0,0,h.width??0,h.height??0)}function U(e){H(),e(h.context)}function V(){S(h.canvas,"Canvas should exist in the state."),S(h.context,"Context should exist in the state."),A(h.canvas,h.context,{width:0,height:0});let{width:e,height:t}=Y();A(h.canvas,h.context,{width:e,height:t}),h.width=e,h.height=t}function Z(){h.canvas&&(H(),h.canvas.parentNode?.removeChild(h.canvas),h={})}var w={margin:"#f6b26b",border:"#ffe599",padding:"#93c47d",content:"#6fa8dc",text:"#232020"},c=6;function W(e,{x:t,y:o,w:l,h:i,r:n}){t=t-l/2,o=o-i/2,l<2*n&&(n=l/2),i<2*n&&(n=i/2),e.beginPath(),e.moveTo(t+n,o),e.arcTo(t+l,o,t+l,o+i,n),e.arcTo(t+l,o+i,t,o+i,n),e.arcTo(t,o+i,t,o,n),e.arcTo(t,o,t+l,o,n),e.closePath()}function J(e,{padding:t,border:o,width:l,height:i,top:n,left:r}){let f=l-o.left-o.right-t.left-t.right,a=i-t.top-t.bottom-o.top-o.bottom,s=r+o.left+t.left,u=n+o.top+t.top;return e==="top"?s+=f/2:e==="right"?(s+=f,u+=a/2):e==="bottom"?(s+=f/2,u+=a):e==="left"?u+=a/2:e==="center"&&(s+=f/2,u+=a/2),{x:s,y:u}}function Q(e,t,{margin:o,border:l,padding:i},n,r){let f=m=>0,a=0,s=0,u=r?1:.5,g=r?n*2:0;return e==="padding"?f=m=>i[m]*u+g:e==="border"?f=m=>i[m]+l[m]*u+g:e==="margin"&&(f=m=>i[m]+l[m]+o[m]*u+g),t==="top"?s=-f("top"):t==="right"?a=f("right"):t==="bottom"?s=f("bottom"):t==="left"&&(a=-f("left")),{offsetX:a,offsetY:s}}function x(e,t){return Math.abs(e.x-t.x)<Math.abs(e.w+t.w)/2&&Math.abs(e.y-t.y)<Math.abs(e.h+t.h)/2}function tt(e,t,o){return e==="top"?t.y=o.y-o.h-c:e==="right"?t.x=o.x+o.w/2+c+t.w/2:e==="bottom"?t.y=o.y+o.h+c:e==="left"&&(t.x=o.x-o.w/2-c-t.w/2),{x:t.x,y:t.y}}function C(e,t,{x:o,y:l,w:i,h:n},r){return W(e,{x:o,y:l,w:i,h:n,r:3}),e.fillStyle=`${w[t]}dd`,e.fill(),e.strokeStyle=w[t],e.stroke(),e.fillStyle=w.text,e.fillText(r,o,l),W(e,{x:o,y:l,w:i,h:n,r:3}),e.fillStyle=`${w[t]}dd`,e.fill(),e.strokeStyle=w[t],e.stroke(),e.fillStyle=w.text,e.fillText(r,o,l),{x:o,y:l,w:i,h:n}}function X(e,t){e.font="600 12px monospace",e.textBaseline="middle",e.textAlign="center";let o=e.measureText(t),l=o.actualBoundingBoxAscent+o.actualBoundingBoxDescent,i=o.width+c*2,n=l+c*2;return{w:i,h:n}}function et(e,t,{type:o,position:l="center",text:i},n,r=!1){let{x:f,y:a}=J(l,t),{offsetX:s,offsetY:u}=Q(o,l,t,c+1,r);f+=s,a+=u;let{w:g,h:m}=X(e,i);if(n&&x({x:f,y:a,w:g,h:m},n)){let M=tt(l,{x:f,y:a,w:g,h:m},n);f=M.x,a=M.y}return C(e,o,{x:f,y:a,w:g,h:m},i)}function ot(e,{w:t,h:o}){let l=t*.5+c,i=o*.5+c;return{offsetX:(e.x==="left"?-1:1)*l,offsetY:(e.y==="top"?-1:1)*i}}function it(e,t,{type:o,text:l}){let{floatingAlignment:i,extremities:n}=t,r=n[i.x],f=n[i.y],{w:a,h:s}=X(e,l),{offsetX:u,offsetY:g}=ot(i,{w:a,h:s});return r+=u,f+=g,C(e,o,{x:r,y:f,w:a,h:s},l)}function E(e,t,o,l){let i=[];o.forEach((n,r)=>{let f=l&&n.position==="center"?it(e,t,n):et(e,t,n,i[r-1],l);i[r]=f})}function lt(e,t,o,l){let i=o.reduce((n,r)=>(Object.prototype.hasOwnProperty.call(n,r.position)||(n[r.position]=[]),n[r.position]?.push(r),n),{});i.top&&E(e,t,i.top,l),i.right&&E(e,t,i.right,l),i.bottom&&E(e,t,i.bottom,l),i.left&&E(e,t,i.left,l),i.center&&E(e,t,i.center,l)}var L={margin:"#f6b26ba8",border:"#ffe599a8",padding:"#93c47d8c",content:"#6fa8dca8"},B=30;function p(e){return parseInt(e.replace("px",""),10)}function b(e){return Number.isInteger(e)?e:e.toFixed(2)}function P(e){return e.filter(t=>t.text!==0&&t.text!=="0")}function nt(e){let t={top:d.window.scrollY,bottom:d.window.scrollY+d.window.innerHeight,left:d.window.scrollX,right:d.window.scrollX+d.window.innerWidth},o={top:Math.abs(t.top-e.top),bottom:Math.abs(t.bottom-e.bottom),left:Math.abs(t.left-e.left),right:Math.abs(t.right-e.right)};return{x:o.left>o.right?"left":"right",y:o.top>o.bottom?"top":"bottom"}}function ft(e){let t=d.getComputedStyle(e),{top:o,left:l,right:i,bottom:n,width:r,height:f}=e.getBoundingClientRect(),{marginTop:a,marginBottom:s,marginLeft:u,marginRight:g,paddingTop:m,paddingBottom:M,paddingLeft:k,paddingRight:F,borderBottomWidth:D,borderTopWidth:I,borderLeftWidth:$,borderRightWidth:N}=t;o=o+d.window.scrollY,l=l+d.window.scrollX,n=n+d.window.scrollY,i=i+d.window.scrollX;let y={top:p(a),bottom:p(s),left:p(u),right:p(g)},q={top:p(m),bottom:p(M),left:p(k),right:p(F)},z={top:p(I),bottom:p(D),left:p($),right:p(N)},_={top:o-y.top,bottom:n+y.bottom,left:l-y.left,right:i+y.right};return{margin:y,padding:q,border:z,top:o,left:l,bottom:n,right:i,width:r,height:f,extremities:_,floatingAlignment:nt(_)}}function rt(e,{margin:t,width:o,height:l,top:i,left:n,bottom:r,right:f}){let a=l+t.bottom+t.top;e.fillStyle=L.margin,e.fillRect(n,i-t.top,o,t.top),e.fillRect(f,i-t.top,t.right,a),e.fillRect(n,r,o,t.bottom),e.fillRect(n-t.left,i-t.top,t.left,a);let s=[{type:"margin",text:b(t.top),position:"top"},{type:"margin",text:b(t.right),position:"right"},{type:"margin",text:b(t.bottom),position:"bottom"},{type:"margin",text:b(t.left),position:"left"}];return P(s)}function at(e,{padding:t,border:o,width:l,height:i,top:n,left:r,bottom:f,right:a}){let s=l-o.left-o.right,u=i-t.top-t.bottom-o.top-o.bottom;e.fillStyle=L.padding,e.fillRect(r+o.left,n+o.top,s,t.top),e.fillRect(a-t.right-o.right,n+t.top+o.top,t.right,u),e.fillRect(r+o.left,f-t.bottom-o.bottom,s,t.bottom),e.fillRect(r+o.left,n+t.top+o.top,t.left,u);let g=[{type:"padding",text:t.top,position:"top"},{type:"padding",text:t.right,position:"right"},{type:"padding",text:t.bottom,position:"bottom"},{type:"padding",text:t.left,position:"left"}];return P(g)}function st(e,{border:t,width:o,height:l,top:i,left:n,bottom:r,right:f}){let a=l-t.top-t.bottom;e.fillStyle=L.border,e.fillRect(n,i,o,t.top),e.fillRect(n,r-t.bottom,o,t.bottom),e.fillRect(n,i+t.top,t.left,a),e.fillRect(f-t.right,i+t.top,t.right,a);let s=[{type:"border",text:t.top,position:"top"},{type:"border",text:t.right,position:"right"},{type:"border",text:t.bottom,position:"bottom"},{type:"border",text:t.left,position:"left"}];return P(s)}function ht(e,{padding:t,border:o,width:l,height:i,top:n,left:r}){let f=l-o.left-o.right-t.left-t.right,a=i-t.top-t.bottom-o.top-o.bottom;return e.fillStyle=L.content,e.fillRect(r+o.left+t.left,n+o.top+t.top,f,a),[{type:"content",position:"center",text:`${b(f)} x ${b(a)}`}]}function ut(e){return t=>{if(e&&t){let o=ft(e),l=rt(t,o),i=at(t,o),n=st(t,o),r=ht(t,o),f=o.width<=B*3||o.height<=B;lt(t,o,[...r,...i,...n,...l],f)}}}function dt(e){U(ut(e))}var mt=(e,t)=>{let o=d.document.elementFromPoint(e,t),l=i=>{if(i&&i.shadowRoot){let n=i.shadowRoot.elementFromPoint(e,t);return i.isEqualNode(n)?i:n.shadowRoot?l(n):n}return i};return l(o)||o},O,v={x:0,y:0};function R(e,t){O=mt(e,t),dt(O)}var gt=(e,t)=>{let{measureEnabled:o}=t.globals;return T(()=>{let l=i=>{window.requestAnimationFrame(()=>{i.stopPropagation(),v.x=i.clientX,v.y=i.clientY})};return document.addEventListener("pointermove",l),()=>{document.removeEventListener("pointermove",l)}},[]),T(()=>{let l=n=>{window.requestAnimationFrame(()=>{n.stopPropagation(),R(n.clientX,n.clientY)})},i=()=>{window.requestAnimationFrame(()=>{V()})};return t.viewMode==="story"&&o&&(document.addEventListener("pointerover",l),G(),window.addEventListener("resize",i),R(v.x,v.y)),()=>{window.removeEventListener("resize",i),Z()}},[o,t.viewMode]),e()},ct=[gt],wt={[j]:!1};export{ct as decorators,wt as initialGlobals};
@@ -1,2 +1,2 @@
1
- const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./DocsRenderer-PKQXORMH-DLnpL5hE.js","./iframe-Dfrt81rk.js","./index-Ay195x2L.js","./index-D-8MO0q_.js","./index-DGdNYaqV.js","./index-DrFu-skq.js"])))=>i.map(i=>d[i]);
2
- import{_ as a}from"./iframe-Dfrt81rk.js";import"../sb-preview/runtime.js";const{global:s}=__STORYBOOK_MODULE_GLOBAL__;var _=Object.entries(s.TAGS_OPTIONS??{}).reduce((e,r)=>{let[t,o]=r;return o.excludeFromDocsStories&&(e[t]=!0),e},{}),d={docs:{renderer:async()=>{let{DocsRenderer:e}=await a(()=>import("./DocsRenderer-PKQXORMH-DLnpL5hE.js"),__vite__mapDeps([0,1,2,3,4,5]),import.meta.url);return new e},stories:{filter:e=>(e.tags||[]).filter(r=>_[r]).length===0&&!e.parameters.docs?.disable}}};export{d as parameters};
1
+ const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./DocsRenderer-CFRXHY34-Bz6q-OqD.js","./iframe-Ddc_axoC.js","./index-CiCdFubk.js","./index-BdcJ-iJ7.js","./index-D-8MO0q_.js","./index-DrFu-skq.js"])))=>i.map(i=>d[i]);
2
+ import{_ as a}from"./iframe-Ddc_axoC.js";import"../sb-preview/runtime.js";const{global:s}=__STORYBOOK_MODULE_GLOBAL__;var _=Object.entries(s.TAGS_OPTIONS??{}).reduce((e,r)=>{let[t,o]=r;return o.excludeFromDocsStories&&(e[t]=!0),e},{}),d={docs:{renderer:async()=>{let{DocsRenderer:e}=await a(()=>import("./DocsRenderer-CFRXHY34-Bz6q-OqD.js"),__vite__mapDeps([0,1,2,3,4,5]),import.meta.url);return new e},stories:{filter:e=>(e.tags||[]).filter(r=>_[r]).length===0&&!e.parameters.docs?.disable}}};export{d as parameters};
@@ -1 +1 @@
1
- let l;const b=new Uint8Array(16);function x(){if(!l&&(l=typeof crypto<"u"&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto),!l))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return l(b)}const i=[];for(let e=0;e<256;++e)i.push((e+256).toString(16).slice(1));function S(e,t=0){return i[e[t+0]]+i[e[t+1]]+i[e[t+2]]+i[e[t+3]]+"-"+i[e[t+4]]+i[e[t+5]]+"-"+i[e[t+6]]+i[e[t+7]]+"-"+i[e[t+8]]+i[e[t+9]]+"-"+i[e[t+10]]+i[e[t+11]]+i[e[t+12]]+i[e[t+13]]+i[e[t+14]]+i[e[t+15]]}const v=typeof crypto<"u"&&crypto.randomUUID&&crypto.randomUUID.bind(crypto),y={randomUUID:v};function A(e,t,n){if(y.randomUUID&&!t&&!e)return y.randomUUID();e=e||{};const r=e.random||(e.rng||x)();return r[6]=r[6]&15|64,r[8]=r[8]&63|128,S(r)}const{addons:w}=__STORYBOOK_MODULE_PREVIEW_API__,{global:p}=__STORYBOOK_MODULE_GLOBAL__,{ImplicitActionsDuringRendering:D}=__STORYBOOK_MODULE_CORE_EVENTS_PREVIEW_ERRORS__;var I="storybook/actions",U=`${I}/action-event`,f={depth:10,clearOnStoryChange:!0,limit:50},m=(e,t)=>{let n=Object.getPrototypeOf(e);return!n||t(n)?n:m(n,t)},j=e=>!!(typeof e=="object"&&e&&m(e,t=>/^Synthetic(?:Base)?Event$/.test(t.constructor.name))&&typeof e.persist=="function"),V=e=>{if(j(e)){let t=Object.create(e.constructor.prototype,Object.getOwnPropertyDescriptors(e));t.persist();let n=Object.getOwnPropertyDescriptor(t,"view"),r=n?.value;return typeof r=="object"&&r?.constructor.name==="Window"&&Object.defineProperty(t,"view",{...n,value:Object.create(r.constructor.prototype)}),t}return e},C=()=>typeof crypto=="object"&&typeof crypto.getRandomValues=="function"?A():Date.now().toString(36)+Math.random().toString(36).substring(2);function u(e,t={}){let n={...f,...t},r=function(...c){if(t.implicit){let g=("__STORYBOOK_PREVIEW__"in p?p.__STORYBOOK_PREVIEW__:void 0)?.storyRenders.find(d=>d.phase==="playing"||d.phase==="rendering");if(g){let d=!window?.FEATURES?.disallowImplicitActionsInRenderV8,O=new D({phase:g.phase,name:e,deprecated:d});if(d)console.warn(O);else throw O}}let o=w.getChannel(),s=C(),a=5,_=c.map(V),E=c.length>1?_:_[0],T={id:s,count:0,data:{name:e,args:E},options:{...n,maxDepth:a+(n.depth||3),allowFunction:n.allowFunction||!1}};o.emit(U,T)};return r.isAction=!0,r.implicit=t.implicit,r}var h=(e,t)=>typeof t[e]>"u"&&!(e in t),K=e=>{let{initialArgs:t,argTypes:n,id:r,parameters:{actions:c}}=e;if(!c||c.disable||!c.argTypesRegex||!n)return{};let o=new RegExp(c.argTypesRegex);return Object.entries(n).filter(([s])=>!!o.test(s)).reduce((s,[a,_])=>(h(a,t)&&(s[a]=u(a,{implicit:!0,id:r})),s),{})},L=e=>{let{initialArgs:t,argTypes:n,parameters:{actions:r}}=e;return r?.disable||!n?{}:Object.entries(n).filter(([c,o])=>!!o.action).reduce((c,[o,s])=>(h(o,t)&&(c[o]=u(typeof s.action=="string"?s.action:o)),c),{})},M=[L,K],R=!1,B=e=>{let{parameters:{actions:t}}=e;if(!t?.disable&&!R&&"__STORYBOOK_TEST_ON_MOCK_CALL__"in p&&typeof p.__STORYBOOK_TEST_ON_MOCK_CALL__=="function"){let n=p.__STORYBOOK_TEST_ON_MOCK_CALL__;n((r,c)=>{let o=r.getMockName();o!=="spy"&&(!/^next\/.*::/.test(o)||["next/router::useRouter()","next/navigation::useRouter()","next/navigation::redirect","next/cache::","next/headers::cookies().set","next/headers::cookies().delete","next/headers::headers().set","next/headers::headers().delete"].some(s=>o.startsWith(s)))&&u(o)(c)}),R=!0}},P=[B];export{M as argsEnhancers,P as loaders};
1
+ let l;const b=new Uint8Array(16);function x(){if(!l&&(l=typeof crypto<"u"&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto),!l))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return l(b)}const i=[];for(let e=0;e<256;++e)i.push((e+256).toString(16).slice(1));function S(e,t=0){return i[e[t+0]]+i[e[t+1]]+i[e[t+2]]+i[e[t+3]]+"-"+i[e[t+4]]+i[e[t+5]]+"-"+i[e[t+6]]+i[e[t+7]]+"-"+i[e[t+8]]+i[e[t+9]]+"-"+i[e[t+10]]+i[e[t+11]]+i[e[t+12]]+i[e[t+13]]+i[e[t+14]]+i[e[t+15]]}const v=typeof crypto<"u"&&crypto.randomUUID&&crypto.randomUUID.bind(crypto),y={randomUUID:v};function A(e,t,n){if(y.randomUUID&&!t&&!e)return y.randomUUID();e=e||{};const r=e.random||(e.rng||x)();return r[6]=r[6]&15|64,r[8]=r[8]&63|128,S(r)}const{addons:w}=__STORYBOOK_MODULE_PREVIEW_API__,{ImplicitActionsDuringRendering:D}=__STORYBOOK_MODULE_CORE_EVENTS_PREVIEW_ERRORS__,{global:p}=__STORYBOOK_MODULE_GLOBAL__;var I="storybook/actions",U=`${I}/action-event`,f={depth:10,clearOnStoryChange:!0,limit:50},m=(e,t)=>{let n=Object.getPrototypeOf(e);return!n||t(n)?n:m(n,t)},j=e=>!!(typeof e=="object"&&e&&m(e,t=>/^Synthetic(?:Base)?Event$/.test(t.constructor.name))&&typeof e.persist=="function"),V=e=>{if(j(e)){let t=Object.create(e.constructor.prototype,Object.getOwnPropertyDescriptors(e));t.persist();let n=Object.getOwnPropertyDescriptor(t,"view"),r=n?.value;return typeof r=="object"&&r?.constructor.name==="Window"&&Object.defineProperty(t,"view",{...n,value:Object.create(r.constructor.prototype)}),t}return e},C=()=>typeof crypto=="object"&&typeof crypto.getRandomValues=="function"?A():Date.now().toString(36)+Math.random().toString(36).substring(2);function u(e,t={}){let n={...f,...t},r=function(...c){if(t.implicit){let g=("__STORYBOOK_PREVIEW__"in p?p.__STORYBOOK_PREVIEW__:void 0)?.storyRenders.find(d=>d.phase==="playing"||d.phase==="rendering");if(g){let d=!window?.FEATURES?.disallowImplicitActionsInRenderV8,O=new D({phase:g.phase,name:e,deprecated:d});if(d)console.warn(O);else throw O}}let o=w.getChannel(),s=C(),a=5,_=c.map(V),E=c.length>1?_:_[0],T={id:s,count:0,data:{name:e,args:E},options:{...n,maxDepth:a+(n.depth||3),allowFunction:n.allowFunction||!1}};o.emit(U,T)};return r.isAction=!0,r.implicit=t.implicit,r}var h=(e,t)=>typeof t[e]>"u"&&!(e in t),K=e=>{let{initialArgs:t,argTypes:n,id:r,parameters:{actions:c}}=e;if(!c||c.disable||!c.argTypesRegex||!n)return{};let o=new RegExp(c.argTypesRegex);return Object.entries(n).filter(([s])=>!!o.test(s)).reduce((s,[a,_])=>(h(a,t)&&(s[a]=u(a,{implicit:!0,id:r})),s),{})},L=e=>{let{initialArgs:t,argTypes:n,parameters:{actions:r}}=e;return r?.disable||!n?{}:Object.entries(n).filter(([c,o])=>!!o.action).reduce((c,[o,s])=>(h(o,t)&&(c[o]=u(typeof s.action=="string"?s.action:o)),c),{})},M=[L,K],R=!1,B=e=>{let{parameters:{actions:t}}=e;if(!t?.disable&&!R&&"__STORYBOOK_TEST_ON_MOCK_CALL__"in p&&typeof p.__STORYBOOK_TEST_ON_MOCK_CALL__=="function"){let n=p.__STORYBOOK_TEST_ON_MOCK_CALL__;n((r,c)=>{let o=r.getMockName();o!=="spy"&&(!/^next\/.*::/.test(o)||["next/router::useRouter()","next/navigation::useRouter()","next/navigation::redirect","next/cache::","next/headers::cookies().set","next/headers::cookies().delete","next/headers::headers().set","next/headers::headers().delete"].some(s=>o.startsWith(s)))&&u(o)(c)}),R=!0}},P=[B];export{M as argsEnhancers,P as loaders};
@@ -0,0 +1 @@
1
+ var e="viewport",o={[e]:{value:void 0,isRotated:!1}},t={viewport:"reset",viewportRotated:!1},r=FEATURES?.viewportStoryGlobals?o:t;export{r as initialGlobals};
@@ -1,7 +1,7 @@
1
- const{global:r}=__STORYBOOK_MODULE_GLOBAL__,{addons:s}=__STORYBOOK_MODULE_PREVIEW_API__,{STORY_CHANGED:O}=__STORYBOOK_MODULE_CORE_EVENTS__;var n="storybook/highlight",d="storybookHighlight",g=`${n}/add`,E=`${n}/reset`,{document:_}=r,H=(e="#FF4785",t="dashed")=>`
1
+ const{STORY_CHANGED:r}=__STORYBOOK_MODULE_CORE_EVENTS__,{addons:s}=__STORYBOOK_MODULE_PREVIEW_API__,{global:O}=__STORYBOOK_MODULE_GLOBAL__;var n="storybook/highlight",d="storybookHighlight",g=`${n}/add`,E=`${n}/reset`,{document:_}=O,H=(e="#FF4785",t="dashed")=>`
2
2
  outline: 2px ${t} ${e};
3
3
  outline-offset: 2px;
4
4
  box-shadow: 0 0 0 6px rgba(255,255,255,0.6);
5
5
  `,l=s.getChannel(),T=e=>{let t=d;h();let i=Array.from(new Set(e.elements)),o=_.createElement("style");o.setAttribute("id",t),o.innerHTML=i.map(a=>`${a}{
6
6
  ${H(e.color,e.style)}
7
- }`).join(" "),_.head.appendChild(o)},h=()=>{let e=d,t=_.getElementById(e);t&&t.parentNode?.removeChild(t)};l.on(O,h);l.on(E,h);l.on(g,T);
7
+ }`).join(" "),_.head.appendChild(o)},h=()=>{let e=d,t=_.getElementById(e);t&&t.parentNode?.removeChild(t)};l.on(r,h);l.on(E,h);l.on(g,T);
@@ -0,0 +1,34 @@
1
+ import{d as F}from"./index-DrFu-skq.js";const{useEffect:h,useMemo:E}=__STORYBOOK_MODULE_PREVIEW_API__,{global:Y}=__STORYBOOK_MODULE_GLOBAL__,{logger:H}=__STORYBOOK_MODULE_CLIENT_LOGGER__;var p="backgrounds",R={light:{name:"light",value:"#F8F8F8"},dark:{name:"dark",value:"#333"}},{document:u,window:K}=Y,C=()=>!!K?.matchMedia("(prefers-reduced-motion: reduce)")?.matches,_=a=>{(Array.isArray(a)?a:[a]).forEach(P)},P=a=>{let e=u.getElementById(a);e&&e.parentElement?.removeChild(e)},I=(a,e)=>{let t=u.getElementById(a);if(t)t.innerHTML!==e&&(t.innerHTML=e);else{let d=u.createElement("style");d.setAttribute("id",a),d.innerHTML=e,u.head.appendChild(d)}},z=(a,e,t)=>{let d=u.getElementById(a);if(d)d.innerHTML!==e&&(d.innerHTML=e);else{let r=u.createElement("style");r.setAttribute("id",a),r.innerHTML=e;let o=`addon-backgrounds-grid${t?`-docs-${t}`:""}`,n=u.getElementById(o);n?n.parentElement?.insertBefore(r,n):u.head.appendChild(r)}},j={cellSize:100,cellAmount:10,opacity:.8},L="addon-backgrounds",G="addon-backgrounds-grid",X=C()?"":"transition: background-color 0.3s;",N=(a,e)=>{let{globals:t,parameters:d,viewMode:r,id:o}=e,{options:n=R,disable:i,grid:l=j}=d[p]||{},g=t[p]||{},c=g.value,$=c?n[c]:void 0,b=$?.value||"transparent",f=g.grid||!1,m=!!$&&!i,S=r==="docs"?`#anchor--${o} .docs-story`:".sb-show-main",O=r==="docs"?`#anchor--${o} .docs-story`:".sb-show-main",U=d.layout===void 0||d.layout==="padded",w=r==="docs"?20:U?16:0,{cellAmount:y,cellSize:s,opacity:k,offsetX:x=w,offsetY:v=w}=l,A=r==="docs"?`${L}-docs-${o}`:`${L}-color`,T=r==="docs"?o:null;h(()=>{let M=`
2
+ ${S} {
3
+ background: ${b} !important;
4
+ ${X}
5
+ }`;if(!m){_(A);return}z(A,M,T)},[S,A,T,m,b]);let B=r==="docs"?`${G}-docs-${o}`:`${G}`;return h(()=>{if(!f){_(B);return}let M=[`${s*y}px ${s*y}px`,`${s*y}px ${s*y}px`,`${s}px ${s}px`,`${s}px ${s}px`].join(", "),D=`
6
+ ${O} {
7
+ background-size: ${M} !important;
8
+ background-position: ${x}px ${v}px, ${x}px ${v}px, ${x}px ${v}px, ${x}px ${v}px !important;
9
+ background-blend-mode: difference !important;
10
+ background-image: linear-gradient(rgba(130, 130, 130, ${k}) 1px, transparent 1px),
11
+ linear-gradient(90deg, rgba(130, 130, 130, ${k}) 1px, transparent 1px),
12
+ linear-gradient(rgba(130, 130, 130, ${k/2}) 1px, transparent 1px),
13
+ linear-gradient(90deg, rgba(130, 130, 130, ${k/2}) 1px, transparent 1px) !important;
14
+ }
15
+ `;I(B,D)},[y,s,O,B,f,x,v,k]),a()},W=(a,e=[],t)=>{if(a==="transparent")return"transparent";if(e.find(r=>r.value===a)||a)return a;let d=e.find(r=>r.name===t);if(d)return d.value;if(t){let r=e.map(o=>o.name).join(", ");H.warn(F`
16
+ Backgrounds Addon: could not find the default color "${t}".
17
+ These are the available colors for your story based on your configuration:
18
+ ${r}.
19
+ `)}return"transparent"},q=(a,e)=>{let{globals:t,parameters:d}=e,r=t[p]?.value,o=d[p],n=E(()=>o.disable?"transparent":W(r,o.values,o.default),[o,r]),i=E(()=>n&&n!=="transparent",[n]),l=e.viewMode==="docs"?`#anchor--${e.id} .docs-story`:".sb-show-main",g=E(()=>`
20
+ ${l} {
21
+ background: ${n} !important;
22
+ ${C()?"":"transition: background-color 0.3s;"}
23
+ }
24
+ `,[n,l]);return h(()=>{let c=e.viewMode==="docs"?`addon-backgrounds-docs-${e.id}`:"addon-backgrounds-color";if(!i){_(c);return}z(c,g,e.viewMode==="docs"?e.id:null)},[i,g,e]),a()},J=(a,e)=>{let{globals:t,parameters:d}=e,r=d[p].grid,o=t[p]?.grid===!0&&r.disable!==!0,{cellAmount:n,cellSize:i,opacity:l}=r,g=e.viewMode==="docs",c=d.layout===void 0||d.layout==="padded"?16:0,$=r.offsetX??(g?20:c),b=r.offsetY??(g?20:c),f=E(()=>{let m=e.viewMode==="docs"?`#anchor--${e.id} .docs-story`:".sb-show-main",S=[`${i*n}px ${i*n}px`,`${i*n}px ${i*n}px`,`${i}px ${i}px`,`${i}px ${i}px`].join(", ");return`
25
+ ${m} {
26
+ background-size: ${S} !important;
27
+ background-position: ${$}px ${b}px, ${$}px ${b}px, ${$}px ${b}px, ${$}px ${b}px !important;
28
+ background-blend-mode: difference !important;
29
+ background-image: linear-gradient(rgba(130, 130, 130, ${l}) 1px, transparent 1px),
30
+ linear-gradient(90deg, rgba(130, 130, 130, ${l}) 1px, transparent 1px),
31
+ linear-gradient(rgba(130, 130, 130, ${l/2}) 1px, transparent 1px),
32
+ linear-gradient(90deg, rgba(130, 130, 130, ${l/2}) 1px, transparent 1px) !important;
33
+ }
34
+ `},[i]);return h(()=>{let m=e.viewMode==="docs"?`addon-backgrounds-grid-docs-${e.id}`:"addon-backgrounds-grid";if(!o){_(m);return}I(m,f)},[o,f,e]),a()},V=FEATURES?.backgroundsStoryGlobals?[N]:[J,q],ee={[p]:{grid:{cellSize:20,opacity:.5,cellAmount:5},disable:!1,...!FEATURES?.backgroundsStoryGlobals&&{values:Object.values(R)}}},Q={[p]:{value:void 0,grid:!1}},re=FEATURES?.backgroundsStoryGlobals?Q:{[p]:null};export{V as decorators,re as initialGlobals,ee as parameters};
@@ -1,4 +1,4 @@
1
- import{w as u,u as s,e as n}from"./custom-element-D8hcDZHh.js";import"./location-element-hKpcXCdn.js";import"./index-C8k3Z-3Y.js";const b={title:"",slice:"url-slice",href:"",live:"",body:""};function l(e){return new Promise(t=>setTimeout(t,e))}function y(e){const{title:t,body:i}={...b,...e};return`
1
+ import{w as u,u as s,e as n}from"./index-BSz1w4Gl.js";import"./custom-element-BDGsYgbP.js";import"./location-element-hKpcXCdn.js";const b={title:"",slice:"url-slice",href:"",live:"",body:""};function l(e){return new Promise(t=>setTimeout(t,e))}function y(e){const{title:t,body:i}={...b,...e};return`
2
2
  <fieldset>
3
3
  <legend>${t}</legend>
4
4
 
@@ -35,7 +35,7 @@ import{w as u,u as s,e as n}from"./custom-element-D8hcDZHh.js";import"./location
35
35
  canvasElement
36
36
  }) => {
37
37
  const canvas = within(canvasElement);
38
- await canvas.findByText((DynamicSrc.args!.title as string));
38
+ await canvas.findByText(DynamicSrc.args!.title as string);
39
39
  await userEvent.click(canvas.getByText('#dce1'));
40
40
  await sleep(1);
41
41
  await expect(window.location.hash).toEqual('#dce1');
@@ -63,7 +63,7 @@ import{w as u,u as s,e as n}from"./custom-element-D8hcDZHh.js";import"./location
63
63
  }) => {
64
64
  const canvas = within(canvasElement);
65
65
  const le = canvasElement.querySelector('location-element');
66
- await canvas.findByText((DynamicMethod.args!.title as string));
66
+ await canvas.findByText(DynamicMethod.args!.title as string);
67
67
  async function testHash(hash, text) {
68
68
  le.setAttribute('method', ''); // to prevent immediate URL change
69
69
  le.setAttribute('src', hash);
@@ -1,4 +1,4 @@
1
- import{w as d,e as c,u}from"./custom-element-D8hcDZHh.js";import"./index-C8k3Z-3Y.js";function i(e){return new Promise(t=>setTimeout(t,e))}function h(e){const{title:t,body:a}=e;return`
1
+ import{w as d,e as c,u}from"./index-BSz1w4Gl.js";import"./custom-element-BDGsYgbP.js";function i(e){return new Promise(t=>setTimeout(t,e))}function h(e){const{title:t,body:a}=e;return`
2
2
  <fieldset>
3
3
  <legend>${t}</legend>
4
4
  ${a}
@@ -77,11 +77,11 @@ import{w as d,e as c,u}from"./custom-element-D8hcDZHh.js";import"./index-C8k3Z-3
77
77
  play: async ({
78
78
  canvasElement
79
79
  }) => {
80
- const titleText = (SliceInitChangeEvent.args!.title as string);
80
+ const titleText = SliceInitChangeEvent.args!.title as string;
81
81
  const canvas = within(canvasElement);
82
82
  await canvas.findByText(titleText);
83
83
  const code = await canvas.findByTestId('slice-value');
84
- const input = (await canvasElement.querySelector('[type="number"]') as HTMLInputElement);
84
+ const input = (await canvasElement.querySelector('[type="number"]')) as HTMLInputElement;
85
85
  await expect(code).toBeInTheDocument();
86
86
  expect(code.textContent).to.equal('0', 'initial slot value 0');
87
87
  expect(input.value).to.equal('0', 'initial input value 0');
@@ -119,7 +119,7 @@ import{w as d,e as c,u}from"./custom-element-D8hcDZHh.js";import"./index-C8k3Z-3
119
119
  play: async ({
120
120
  canvasElement
121
121
  }) => {
122
- const titleText = (RealtimeEventInSlice.args!.title as string);
122
+ const titleText = RealtimeEventInSlice.args!.title as string;
123
123
  const canvas = within(canvasElement);
124
124
  await canvas.findByText(titleText);
125
125
  const sliceText = () => canvas.getByTestId('//slice/s').textContent,
@@ -1,4 +1,4 @@
1
- import{w as o,e as l}from"./custom-element-D8hcDZHh.js";import"./index-C8k3Z-3Y.js";function y(t){const{title:a,tag:n,attributes:e,slot:s,payload:g}=t;return`
1
+ import{w as o,e as l}from"./index-BSz1w4Gl.js";import"./custom-element-BDGsYgbP.js";function y(t){const{title:a,tag:n,attributes:e,slot:s,payload:g}=t;return`
2
2
  <fieldset>
3
3
  <legend>${a}</legend>
4
4
  <custom-element
@@ -57,7 +57,7 @@ import{w as o,e as l}from"./custom-element-D8hcDZHh.js";import"./index-C8k3Z-3Y.
57
57
  play: async ({
58
58
  canvasElement
59
59
  }) => {
60
- const titleText = (Regular.args!.title as string);
60
+ const titleText = Regular.args!.title as string;
61
61
  const canvas = within(canvasElement);
62
62
  await canvas.findByText(titleText);
63
63
  const el = canvasElement;
@@ -74,7 +74,7 @@ import{w as o,e as l}from"./custom-element-D8hcDZHh.js";import"./index-C8k3Z-3Y.
74
74
  play: async ({
75
75
  canvasElement
76
76
  }) => {
77
- const titleText = (NamedSlot.args!.title as string);
77
+ const titleText = NamedSlot.args!.title as string;
78
78
  const canvas = within(canvasElement);
79
79
  await canvas.findByText(titleText);
80
80
  const el = canvasElement;
@@ -91,7 +91,7 @@ import{w as o,e as l}from"./custom-element-D8hcDZHh.js";import"./index-C8k3Z-3Y.
91
91
  play: async ({
92
92
  canvasElement
93
93
  }) => {
94
- const titleText = (DoubleSlot.args!.title as string);
94
+ const titleText = DoubleSlot.args!.title as string;
95
95
  const canvas = within(canvasElement);
96
96
  await canvas.findByText(titleText);
97
97
  const el = canvasElement;
@@ -109,7 +109,7 @@ import{w as o,e as l}from"./custom-element-D8hcDZHh.js";import"./index-C8k3Z-3Y.
109
109
  play: async ({
110
110
  canvasElement
111
111
  }) => {
112
- const titleText = (NamedUnnamedDefaultSlot.args!.title as string);
112
+ const titleText = NamedUnnamedDefaultSlot.args!.title as string;
113
113
  const canvas = within(canvasElement);
114
114
  await canvas.findByText(titleText);
115
115
  const el = canvasElement;
@@ -128,7 +128,7 @@ import{w as o,e as l}from"./custom-element-D8hcDZHh.js";import"./index-C8k3Z-3Y.
128
128
  play: async ({
129
129
  canvasElement
130
130
  }) => {
131
- const titleText = (NamedDefaultSlot.args!.title as string);
131
+ const titleText = NamedDefaultSlot.args!.title as string;
132
132
  const canvas = within(canvasElement);
133
133
  await canvas.findByText(titleText);
134
134
  const el = canvasElement;
@@ -146,7 +146,7 @@ import{w as o,e as l}from"./custom-element-D8hcDZHh.js";import"./index-C8k3Z-3Y.
146
146
  play: async ({
147
147
  canvasElement
148
148
  }) => {
149
- const titleText = (DefaultSlot.args!.title as string);
149
+ const titleText = DefaultSlot.args!.title as string;
150
150
  const canvas = within(canvasElement);
151
151
  await canvas.findByText(titleText);
152
152
  const el = canvasElement;
@@ -200,7 +200,7 @@ import{w as o,e as l}from"./custom-element-D8hcDZHh.js";import"./index-C8k3Z-3Y.
200
200
  play: async ({
201
201
  canvasElement
202
202
  }) => {
203
- const titleText = (TemplateWithAttributesAndCondition.args!.title as string);
203
+ const titleText = TemplateWithAttributesAndCondition.args!.title as string;
204
204
  const canvas = within(canvasElement);
205
205
  await canvas.findByText(titleText);
206
206
  const el = canvasElement;
@@ -1,4 +1,4 @@
1
- import{w as r}from"./custom-element-D8hcDZHh.js";import"./http-request-DNq59pnj.js";import"./location-element-hKpcXCdn.js";import"./index-C8k3Z-3Y.js";function o(e){return new Promise(s=>setTimeout(s,e))}function n(e){const{title:s,body:i}=e;return`
1
+ import{w as r}from"./index-BSz1w4Gl.js";import"./custom-element-BDGsYgbP.js";import"./http-request-DNq59pnj.js";import"./location-element-hKpcXCdn.js";function o(e){return new Promise(s=>setTimeout(s,e))}function n(e){const{title:s,body:i}=e;return`
2
2
  <fieldset>
3
3
  <legend>${s}</legend>
4
4
  ${i}
@@ -97,7 +97,7 @@ import{w as r}from"./custom-element-D8hcDZHh.js";import"./http-request-DNq59pnj.
97
97
  play: async ({
98
98
  canvasElement
99
99
  }) => {
100
- const titleText = (VersionsSelect.args!.title as string);
100
+ const titleText = VersionsSelect.args!.title as string;
101
101
  const canvas = within(canvasElement),
102
102
  code = async id => (await canvas.findByTestId(id)).textContent.trim();
103
103
  window.location.hash = '#@epa-wg/custom-element-dist@0.0.24/storybook-static/index.html';
@@ -1,27 +1,27 @@
1
- <svg id="dwc-logo" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 216 209.18" xmlns:xhtml="http://www.w3.org/1999/xhtml" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
2
- <defs>
3
-
4
- </defs>
5
- <polygon class="cls-3" points="0 82.47 0 126.71 34.84 146.83 34.84 187.06 73.16 209.18 108 189.07 142.84 209.18 181.16 187.06 181.16 146.83 216 126.71 216 82.47 181.16 62.35 181.16 22.12 142.84 0 108 20.12 73.16 0 34.84 22.12 34.84 62.35 0 82.47"/>
6
- <path class="cls-2" d="m114.33,56.69l20.64-11.92c.47-.27.47-.79,0-1.06l-20.65-11.92h0c-4.44-2.57-8.22-2.57-12.67,0l-20.65,11.92c-.47.27-.47.79,0,1.06l20.64,11.92c4.44,2.57,8.22,2.57,12.67,0h0Z"/>
7
- <path class="cls-2" d="m98.19,62.71h0s-20.64-11.92-20.64-11.92c-.47-.27-.92-.01-.92.53v23.84s0,0,0,0c0,5.13,1.89,8.4,6.33,10.97l20.65,11.92c.47.27.92,0,.92-.54v-23.84c0-5.13-1.89-8.4-6.33-10.97Z"/>
8
- <path class="cls-1" d="m48.12,66.01l20.65,11.92c.47.27.92,0,.92-.54v-23.84c0-5.13-1.89-8.4-6.33-10.97h0s-20.64-11.92-20.64-11.92c-.47-.27-.92-.01-.92.53v23.84s0,0,0,0c0,5.13,1.89,8.4,6.33,10.97Z"/>
9
- <path class="cls-2" d="m46.18,24.66l20.64,11.92c4.44,2.57,8.22,2.57,12.67,0h0s20.64-11.92,20.64-11.92c.47-.27.47-.79,0-1.06l-20.65-11.92h0c-4.44-2.57-8.22-2.57-12.67,0l-20.65,11.92c-.47.27-.47.79,0,1.06Z"/>
10
- <path class="cls-2" d="m115.87,24.66l20.64,11.92c4.44,2.57,8.22,2.57,12.67,0h0s20.64-11.92,20.64-11.92c.47-.27.47-.79,0-1.06l-20.65-11.92h0c-4.44-2.57-8.22-2.57-12.67,0l-20.65,11.92c-.47.27-.47.79,0,1.06Z"/>
11
- <path class="cls-2" d="m152.65,42.59c-4.44,2.56-6.33,5.84-6.33,10.97v23.84c0,.54.45.8.92.54l20.65-11.92c4.44-2.57,6.33-5.84,6.33-10.97h0v-23.84c0-.54-.45-.8-.92-.53l-20.64,11.92h0Z"/>
12
- <path class="cls-2" d="m77.55,158.4l20.65-11.92h0c4.44-2.57,6.33-5.84,6.33-10.97v-23.84c0-.54-.45-.8-.92-.53l-20.64,11.92c-4.44,2.57-6.33,5.84-6.33,10.97h0s0,23.84,0,23.84c0,.54.45.8.92.54Z"/>
13
- <path class="cls-4" d="m146.31,134.03v23.84c0,.54.45.8.92.54l20.65-11.92c4.44-2.57,6.33-5.84,6.33-10.97h0s0-23.84,0-23.84c0-.54-.45-.8-.92-.53l-20.64,11.92h0c-4.44,2.57-6.33,5.84-6.33,10.97Z"/>
14
- <path class="cls-4" d="m63.35,123.06h0s-20.64-11.92-20.64-11.92c-.47-.27-.92-.01-.92.53v23.84s0,0,0,0c0,5.13,1.89,8.4,6.33,10.97l20.65,11.92c.47.27.92,0,.92-.54v-23.84c0-5.13-1.89-8.4-6.33-10.97Z"/>
15
- <path class="cls-4" d="m103.61,151.37l-20.64,11.92c-4.44,2.57-6.33,5.84-6.33,10.97h0s0,23.84,0,23.84c0,.54.45.8.92.54l20.65-11.92h0c4.44-2.57,6.33-5.84,6.33-10.97v-23.84c0-.54-.45-.8-.92-.53Z"/>
16
- <path class="cls-4" d="m63.35,163.29h0s-20.64-11.92-20.64-11.92c-.47-.27-.92-.01-.92.53v23.84s0,0,0,0c0,5.13,1.89,8.4,6.33,10.97l20.65,11.92c.47.27.92,0,.92-.54v-23.84c0-5.13-1.89-8.4-6.33-10.97Z"/>
17
- <path class="cls-4" d="m28.51,102.94h0s-20.64-11.92-20.64-11.92c-.47-.27-.92-.01-.92.53v23.84s0,0,0,0c0,5.13,1.89,8.4,6.33,10.97l20.65,11.92c.47.27.92,0,.92-.54v-23.84c0-5.13-1.89-8.4-6.33-10.97Z"/>
18
- <path class="cls-4" d="m133.04,163.29l-20.64-11.92c-.47-.27-.92-.01-.92.53v23.84c0,5.13,1.89,8.4,6.33,10.97h0s20.65,11.92,20.65,11.92c.47.27.92,0,.92-.54v-23.84s0,0,0,0c0-5.13-1.89-8.4-6.33-10.97Z"/>
19
- <path class="cls-4" d="m173.29,151.37l-20.64,11.92h0c-4.44,2.57-6.33,5.84-6.33,10.97v23.84c0,.54.45.8.92.54l20.65-11.92c4.44-2.57,6.33-5.84,6.33-10.97h0s0-23.84,0-23.84c0-.54-.45-.8-.92-.53Z"/>
20
- <path class="cls-4" d="m209.06,91.55c0-.54-.45-.8-.92-.53l-20.64,11.92h0c-4.44,2.57-6.33,5.84-6.33,10.97v23.84c0,.54.45.8.92.54l20.65-11.92c4.44-2.57,6.33-5.84,6.33-10.97h0v-23.84Z"/>
21
- <path class="cls-2" d="m149.18,117.04l20.64-11.92c.47-.27.47-.79,0-1.06l-20.65-11.92h0c-4.44-2.57-8.22-2.57-12.67,0l-20.65,11.92c-.47.27-.47.79,0,1.06l20.64,11.92c4.44,2.57,8.22,2.57,12.67,0h0Z"/>
22
- <path class="cls-1" d="m112.39,98.05l20.65-11.92c4.44-2.57,6.33-5.84,6.33-10.97h0v-23.84c0-.54-.45-.8-.92-.53l-20.64,11.92h0c-4.44,2.57-6.33,5.84-6.33,10.97v23.84c0,.54.45.8.92.54Z"/>
23
- <path class="cls-1" d="m100.13,105.12c.47-.27.47-.79,0-1.06l-20.65-11.92c-4.44-2.57-8.22-2.57-12.67,0h0s-20.65,11.92-20.65,11.92c-.47.27-.47.79,0,1.06l20.64,11.92h0c4.44,2.57,8.22,2.57,12.67,0l20.64-11.92Z"/>
24
- <path class="cls-2" d="m65.29,85.01c.47-.27.47-.79,0-1.06l-20.65-11.92c-4.44-2.57-8.22-2.57-12.67,0h0s-20.65,11.92-20.65,11.92c-.47.27-.47.79,0,1.06l20.64,11.92h0c4.44,2.57,8.22,2.57,12.67,0l20.64-11.92Z"/>
25
- <path class="cls-1" d="m133.04,123.06l-20.64-11.92c-.47-.27-.92-.01-.92.53v23.84c0,5.13,1.89,8.4,6.33,10.97h0s20.65,11.92,20.65,11.92c.47.27.92,0,.92-.54v-23.84s0,0,0,0c0-5.13-1.89-8.4-6.33-10.97Z"/>
26
- <path class="cls-1" d="m184.02,96.93l20.64-11.92c.47-.27.47-.79,0-1.06l-20.65-11.92h0c-4.44-2.57-8.22-2.57-12.67,0l-20.65,11.92c-.47.27-.47.79,0,1.06l20.64,11.92c4.44,2.57,8.22,2.57,12.67,0h0Z"/>
1
+ <svg id="dwc-logo" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 216 209.18" xmlns:xhtml="http://www.w3.org/1999/xhtml" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
2
+ <defs>
3
+
4
+ </defs>
5
+ <polygon class="cls-3" points="0 82.47 0 126.71 34.84 146.83 34.84 187.06 73.16 209.18 108 189.07 142.84 209.18 181.16 187.06 181.16 146.83 216 126.71 216 82.47 181.16 62.35 181.16 22.12 142.84 0 108 20.12 73.16 0 34.84 22.12 34.84 62.35 0 82.47"/>
6
+ <path class="cls-2" d="m114.33,56.69l20.64-11.92c.47-.27.47-.79,0-1.06l-20.65-11.92h0c-4.44-2.57-8.22-2.57-12.67,0l-20.65,11.92c-.47.27-.47.79,0,1.06l20.64,11.92c4.44,2.57,8.22,2.57,12.67,0h0Z"/>
7
+ <path class="cls-2" d="m98.19,62.71h0s-20.64-11.92-20.64-11.92c-.47-.27-.92-.01-.92.53v23.84s0,0,0,0c0,5.13,1.89,8.4,6.33,10.97l20.65,11.92c.47.27.92,0,.92-.54v-23.84c0-5.13-1.89-8.4-6.33-10.97Z"/>
8
+ <path class="cls-1" d="m48.12,66.01l20.65,11.92c.47.27.92,0,.92-.54v-23.84c0-5.13-1.89-8.4-6.33-10.97h0s-20.64-11.92-20.64-11.92c-.47-.27-.92-.01-.92.53v23.84s0,0,0,0c0,5.13,1.89,8.4,6.33,10.97Z"/>
9
+ <path class="cls-2" d="m46.18,24.66l20.64,11.92c4.44,2.57,8.22,2.57,12.67,0h0s20.64-11.92,20.64-11.92c.47-.27.47-.79,0-1.06l-20.65-11.92h0c-4.44-2.57-8.22-2.57-12.67,0l-20.65,11.92c-.47.27-.47.79,0,1.06Z"/>
10
+ <path class="cls-2" d="m115.87,24.66l20.64,11.92c4.44,2.57,8.22,2.57,12.67,0h0s20.64-11.92,20.64-11.92c.47-.27.47-.79,0-1.06l-20.65-11.92h0c-4.44-2.57-8.22-2.57-12.67,0l-20.65,11.92c-.47.27-.47.79,0,1.06Z"/>
11
+ <path class="cls-2" d="m152.65,42.59c-4.44,2.56-6.33,5.84-6.33,10.97v23.84c0,.54.45.8.92.54l20.65-11.92c4.44-2.57,6.33-5.84,6.33-10.97h0v-23.84c0-.54-.45-.8-.92-.53l-20.64,11.92h0Z"/>
12
+ <path class="cls-2" d="m77.55,158.4l20.65-11.92h0c4.44-2.57,6.33-5.84,6.33-10.97v-23.84c0-.54-.45-.8-.92-.53l-20.64,11.92c-4.44,2.57-6.33,5.84-6.33,10.97h0s0,23.84,0,23.84c0,.54.45.8.92.54Z"/>
13
+ <path class="cls-4" d="m146.31,134.03v23.84c0,.54.45.8.92.54l20.65-11.92c4.44-2.57,6.33-5.84,6.33-10.97h0s0-23.84,0-23.84c0-.54-.45-.8-.92-.53l-20.64,11.92h0c-4.44,2.57-6.33,5.84-6.33,10.97Z"/>
14
+ <path class="cls-4" d="m63.35,123.06h0s-20.64-11.92-20.64-11.92c-.47-.27-.92-.01-.92.53v23.84s0,0,0,0c0,5.13,1.89,8.4,6.33,10.97l20.65,11.92c.47.27.92,0,.92-.54v-23.84c0-5.13-1.89-8.4-6.33-10.97Z"/>
15
+ <path class="cls-4" d="m103.61,151.37l-20.64,11.92c-4.44,2.57-6.33,5.84-6.33,10.97h0s0,23.84,0,23.84c0,.54.45.8.92.54l20.65-11.92h0c4.44-2.57,6.33-5.84,6.33-10.97v-23.84c0-.54-.45-.8-.92-.53Z"/>
16
+ <path class="cls-4" d="m63.35,163.29h0s-20.64-11.92-20.64-11.92c-.47-.27-.92-.01-.92.53v23.84s0,0,0,0c0,5.13,1.89,8.4,6.33,10.97l20.65,11.92c.47.27.92,0,.92-.54v-23.84c0-5.13-1.89-8.4-6.33-10.97Z"/>
17
+ <path class="cls-4" d="m28.51,102.94h0s-20.64-11.92-20.64-11.92c-.47-.27-.92-.01-.92.53v23.84s0,0,0,0c0,5.13,1.89,8.4,6.33,10.97l20.65,11.92c.47.27.92,0,.92-.54v-23.84c0-5.13-1.89-8.4-6.33-10.97Z"/>
18
+ <path class="cls-4" d="m133.04,163.29l-20.64-11.92c-.47-.27-.92-.01-.92.53v23.84c0,5.13,1.89,8.4,6.33,10.97h0s20.65,11.92,20.65,11.92c.47.27.92,0,.92-.54v-23.84s0,0,0,0c0-5.13-1.89-8.4-6.33-10.97Z"/>
19
+ <path class="cls-4" d="m173.29,151.37l-20.64,11.92h0c-4.44,2.57-6.33,5.84-6.33,10.97v23.84c0,.54.45.8.92.54l20.65-11.92c4.44-2.57,6.33-5.84,6.33-10.97h0s0-23.84,0-23.84c0-.54-.45-.8-.92-.53Z"/>
20
+ <path class="cls-4" d="m209.06,91.55c0-.54-.45-.8-.92-.53l-20.64,11.92h0c-4.44,2.57-6.33,5.84-6.33,10.97v23.84c0,.54.45.8.92.54l20.65-11.92c4.44-2.57,6.33-5.84,6.33-10.97h0v-23.84Z"/>
21
+ <path class="cls-2" d="m149.18,117.04l20.64-11.92c.47-.27.47-.79,0-1.06l-20.65-11.92h0c-4.44-2.57-8.22-2.57-12.67,0l-20.65,11.92c-.47.27-.47.79,0,1.06l20.64,11.92c4.44,2.57,8.22,2.57,12.67,0h0Z"/>
22
+ <path class="cls-1" d="m112.39,98.05l20.65-11.92c4.44-2.57,6.33-5.84,6.33-10.97h0v-23.84c0-.54-.45-.8-.92-.53l-20.64,11.92h0c-4.44,2.57-6.33,5.84-6.33,10.97v23.84c0,.54.45.8.92.54Z"/>
23
+ <path class="cls-1" d="m100.13,105.12c.47-.27.47-.79,0-1.06l-20.65-11.92c-4.44-2.57-8.22-2.57-12.67,0h0s-20.65,11.92-20.65,11.92c-.47.27-.47.79,0,1.06l20.64,11.92h0c4.44,2.57,8.22,2.57,12.67,0l20.64-11.92Z"/>
24
+ <path class="cls-2" d="m65.29,85.01c.47-.27.47-.79,0-1.06l-20.65-11.92c-4.44-2.57-8.22-2.57-12.67,0h0s-20.65,11.92-20.65,11.92c-.47.27-.47.79,0,1.06l20.64,11.92h0c4.44,2.57,8.22,2.57,12.67,0l20.64-11.92Z"/>
25
+ <path class="cls-1" d="m133.04,123.06l-20.64-11.92c-.47-.27-.92-.01-.92.53v23.84c0,5.13,1.89,8.4,6.33,10.97h0s20.65,11.92,20.65,11.92c.47.27.92,0,.92-.54v-23.84s0,0,0,0c0-5.13-1.89-8.4-6.33-10.97Z"/>
26
+ <path class="cls-1" d="m184.02,96.93l20.64-11.92c.47-.27.47-.79,0-1.06l-20.65-11.92h0c-4.44-2.57-8.22-2.57-12.67,0l-20.65,11.92c-.47.27-.47.79,0,1.06l20.64,11.92c4.44,2.57,8.22,2.57,12.67,0h0Z"/>
27
27
  </svg>
@@ -1,3 +1,18 @@
1
- <body xmlns="http://www.w3.org/1999/xhtml" xmlns:xhtml="http://www.w3.org/1999/xhtml" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"><h4>embed-1.html</h4>
2
- <custom-element><template>🖖</template></custom-element>
3
- </body>
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <datadom>
3
+ <payload xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:xhtml="http://www.w3.org/1999/xhtml">
4
+ <a xmlns="http://www.w3.org/1999/xhtml" href="#" data-dce-id="4" slot="">link 1</a>
5
+ <a xmlns="http://www.w3.org/1999/xhtml" href="#" data-dce-id="5" slot="">link 2</a>
6
+ <a xmlns="http://www.w3.org/1999/xhtml" href="#" data-dce-id="6" slot="">link 3</a>
7
+ </payload>
8
+ <attributes>
9
+ <xmlns/>
10
+ <justify>end</justify>
11
+ <data-dce-id>2</data-dce-id>
12
+ <direction>row</direction>
13
+ </attributes>
14
+ <dataset>
15
+ <dceId>2</dceId>
16
+ </dataset>
17
+ <slice/>
18
+ </datadom>