@epa-wg/custom-element-dist 0.0.24 → 0.0.26

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 (317) hide show
  1. package/.storybook/main.ts +19 -21
  2. package/.storybook/preview-head.html +8 -0
  3. package/.storybook/preview.ts +13 -5
  4. package/README.md +4 -4
  5. package/bin/postinstall.sh +3 -2
  6. package/bin/vitest/vitest-browser-importmaps.mjs +20 -0
  7. package/coverage/coverage-final.json +13 -8
  8. package/coverage/index.html +51 -36
  9. package/coverage/src/custom-element/coverage.svg +1 -1
  10. package/coverage/src/custom-element/custom-element.js/coverage.svg +1 -1
  11. package/coverage/src/custom-element/custom-element.js.html +493 -406
  12. package/coverage/src/custom-element/demo/coverage.svg +10 -0
  13. package/coverage/src/custom-element/demo/index.html +116 -0
  14. package/coverage/src/custom-element/demo/z.js/coverage.svg +10 -0
  15. package/coverage/src/custom-element/demo/z.js.html +112 -0
  16. package/coverage/src/custom-element/http-request.js.html +12 -12
  17. package/coverage/src/custom-element/index.html +37 -22
  18. package/coverage/src/custom-element/local-storage.js.html +1 -1
  19. package/coverage/src/custom-element/location-element.js/coverage.svg +1 -1
  20. package/coverage/src/custom-element/location-element.js.html +116 -47
  21. package/coverage/src/custom-element/module-url.js/coverage.svg +10 -0
  22. package/coverage/src/custom-element/module-url.js.html +181 -0
  23. package/coverage/src/index.html +1 -1
  24. package/coverage/src/mocks/coverage.svg +1 -1
  25. package/coverage/src/mocks/handlers.ts/coverage.svg +1 -1
  26. package/coverage/src/mocks/handlers.ts.html +36 -12
  27. package/coverage/src/mocks/index.html +19 -19
  28. package/coverage/src/stories/attributes.test.stories.ts.html +6 -9
  29. package/coverage/src/stories/coverage.svg +1 -1
  30. package/coverage/src/stories/css.test.stories.ts.html +1 -1
  31. package/coverage/src/stories/dom-merge.test.stories.ts.html +1 -1
  32. package/coverage/src/stories/external-template.test.stories.ts.html +22 -10
  33. package/coverage/src/stories/form.test.stories.ts.html +1 -1
  34. package/coverage/src/stories/http-request.stories.ts.html +1 -1
  35. package/coverage/src/stories/index.html +58 -13
  36. package/coverage/src/stories/local-storage.test.stories.ts.html +1 -1
  37. package/coverage/src/stories/location-element.test.stories.ts.html +1 -1
  38. package/coverage/src/stories/module-url.test.stories.ts/coverage.svg +10 -0
  39. package/coverage/src/stories/module-url.test.stories.ts.html +634 -0
  40. package/coverage/src/stories/set-url.test.stories.ts/coverage.svg +10 -0
  41. package/coverage/src/stories/set-url.test.stories.ts.html +427 -0
  42. package/coverage/src/stories/slice-events.test.stories.ts.html +1 -1
  43. package/coverage/src/stories/slots.test.stories.ts.html +1 -1
  44. package/coverage/src/stories/testStoryBook.ts.html +12 -12
  45. package/coverage/src/stories/version-select.test.stories.ts/coverage.svg +10 -0
  46. package/coverage/src/stories/version-select.test.stories.ts.html +391 -0
  47. package/coverage/src/sum.ts.html +1 -1
  48. package/dist/confused.svg +1 -0
  49. package/dist/custom-element-CckoVsvO.cjs +53 -0
  50. package/dist/custom-element-b7c_7Kz4.js +485 -0
  51. package/dist/custom-element-bundle.cjs +1 -1
  52. package/dist/custom-element-bundle.js +3 -3
  53. package/dist/demo/a.html +60 -0
  54. package/dist/demo/b.html +13 -0
  55. package/dist/demo/confused.svg +38 -0
  56. package/dist/demo/data-slices.html +216 -0
  57. package/dist/demo/dce-social-preview.png +0 -0
  58. package/dist/demo/demo.css +26 -0
  59. package/dist/demo/dom-merge.html +123 -0
  60. package/dist/demo/embed-1.html +2 -0
  61. package/dist/demo/external-template.html +239 -0
  62. package/dist/demo/form.html +239 -0
  63. package/dist/demo/hex-grid-dce.html +183 -0
  64. package/dist/demo/hex-grid-transform.png +0 -0
  65. package/dist/demo/hex-grid.html +66 -0
  66. package/dist/demo/html-template.html +126 -0
  67. package/dist/demo/html-template.xhtml +45 -0
  68. package/dist/demo/html-template.xml +45 -0
  69. package/dist/demo/http-request.html +143 -0
  70. package/dist/demo/lib-dir/Smiley.svg +24 -0
  71. package/dist/demo/lib-dir/embed-lib.html +34 -0
  72. package/dist/demo/local-storage.html +218 -0
  73. package/dist/demo/location-element.html +168 -0
  74. package/dist/demo/logo.png +0 -0
  75. package/dist/demo/module-url.html +215 -0
  76. package/dist/demo/npm-versions-demo.html +105 -0
  77. package/dist/demo/npm-versions.html +65 -0
  78. package/dist/demo/parameters.html +70 -0
  79. package/dist/demo/s.xml +28 -0
  80. package/dist/demo/s.xslt +97 -0
  81. package/dist/demo/s1.xslt +60 -0
  82. package/dist/demo/scoped-css.html +169 -0
  83. package/dist/demo/set-url.html +141 -0
  84. package/dist/demo/ss.html +57 -0
  85. package/dist/demo/table.xml +25 -0
  86. package/dist/demo/table.xsl +293 -0
  87. package/dist/demo/template.xsl +46 -0
  88. package/dist/demo/tree.xml +25 -0
  89. package/dist/demo/tree.xsl +33 -0
  90. package/dist/demo/wc-square.svg +1 -0
  91. package/dist/demo/xhtml-template.xhtml +45 -0
  92. package/dist/demo/z.html +62 -0
  93. package/dist/demo/z.js +9 -0
  94. package/dist/demo/z.xml +60 -0
  95. package/dist/embed-1.html +1 -2
  96. package/dist/location-element-DRB7hCwA.cjs +1 -0
  97. package/dist/location-element-FJlONi2n.js +65 -0
  98. package/dist/mockServiceWorker.js +1 -1
  99. package/package.json +93 -93
  100. package/public/confused.svg +1 -0
  101. package/public/demo/a.html +60 -0
  102. package/public/demo/b.html +13 -0
  103. package/public/demo/confused.svg +38 -0
  104. package/public/demo/data-slices.html +216 -0
  105. package/public/demo/dce-social-preview.png +0 -0
  106. package/public/demo/demo.css +26 -0
  107. package/public/demo/dom-merge.html +123 -0
  108. package/public/demo/embed-1.html +2 -0
  109. package/public/demo/external-template.html +239 -0
  110. package/public/demo/form.html +239 -0
  111. package/public/demo/hex-grid-dce.html +183 -0
  112. package/public/demo/hex-grid-transform.png +0 -0
  113. package/public/demo/hex-grid.html +66 -0
  114. package/public/demo/html-template.html +126 -0
  115. package/public/demo/html-template.xhtml +45 -0
  116. package/public/demo/html-template.xml +45 -0
  117. package/public/demo/http-request.html +143 -0
  118. package/public/demo/lib-dir/Smiley.svg +24 -0
  119. package/public/demo/lib-dir/embed-lib.html +34 -0
  120. package/public/demo/local-storage.html +218 -0
  121. package/public/demo/location-element.html +168 -0
  122. package/public/demo/logo.png +0 -0
  123. package/public/demo/module-url.html +215 -0
  124. package/public/demo/npm-versions-demo.html +105 -0
  125. package/public/demo/npm-versions.html +65 -0
  126. package/public/demo/parameters.html +70 -0
  127. package/public/demo/s.xml +28 -0
  128. package/public/demo/s.xslt +97 -0
  129. package/public/demo/s1.xslt +60 -0
  130. package/public/demo/scoped-css.html +169 -0
  131. package/public/demo/set-url.html +141 -0
  132. package/public/demo/ss.html +57 -0
  133. package/public/demo/table.xml +25 -0
  134. package/public/demo/table.xsl +293 -0
  135. package/public/demo/template.xsl +46 -0
  136. package/public/demo/tree.xml +25 -0
  137. package/public/demo/tree.xsl +33 -0
  138. package/public/demo/wc-square.svg +1 -0
  139. package/public/demo/xhtml-template.xhtml +45 -0
  140. package/public/demo/z.html +62 -0
  141. package/public/demo/z.js +9 -0
  142. package/public/demo/z.xml +60 -0
  143. package/public/embed-1.html +1 -2
  144. package/public/mockServiceWorker.js +1 -1
  145. package/src/custom-element/custom-element.js +52 -23
  146. package/src/custom-element/demo/confused.svg +1 -0
  147. package/src/custom-element/demo/demo.css +5 -1
  148. package/src/custom-element/demo/embed-1.html +1 -2
  149. package/src/custom-element/demo/external-template.html +122 -62
  150. package/src/custom-element/demo/lib-dir/Smiley.svg +24 -0
  151. package/src/custom-element/demo/lib-dir/embed-lib.html +34 -0
  152. package/src/custom-element/demo/location-element.html +17 -4
  153. package/src/custom-element/demo/module-url.html +215 -0
  154. package/src/custom-element/demo/npm-versions-demo.html +105 -0
  155. package/src/custom-element/demo/npm-versions.html +65 -0
  156. package/src/custom-element/demo/s.xml +27 -10
  157. package/src/custom-element/demo/s.xslt +96 -59
  158. package/src/custom-element/demo/set-url.html +141 -0
  159. package/src/custom-element/demo/z.js +9 -0
  160. package/src/custom-element/ide/customData-dce.json +215 -125
  161. package/src/custom-element/ide/web-types-dce.json +184 -116
  162. package/src/custom-element/ide/web-types-xsl.json +1 -1
  163. package/src/custom-element/index.html +3 -1
  164. package/src/custom-element/location-element.js +25 -2
  165. package/src/custom-element/module-url.js +33 -0
  166. package/src/custom-element.test.ts +26 -26
  167. package/src/mocks/handlers.ts +10 -1
  168. package/src/mocks/versions.mock.ts +786 -0
  169. package/src/stories/attributes.test.stories.ts +0 -1
  170. package/src/stories/external-template.test.stories.ts +11 -7
  171. package/src/stories/module-url.test.stories.ts +183 -0
  172. package/src/stories/set-url.test.stories.ts +114 -0
  173. package/src/stories/version-select.test.stories.ts +102 -0
  174. package/storybook-static/assets/Color-KGDBMAHA-CH-YyWYq.js +1 -0
  175. package/storybook-static/assets/{Configure-CyLVkwlf.js → Configure-DFL_bm2M.js} +2 -2
  176. package/storybook-static/assets/DocsRenderer-PKQXORMH-Bz-_1hmS.js +2 -0
  177. package/storybook-static/assets/{attributes.test.stories-BckCcyrF.js → attributes.test.stories-DIQXccHc.js} +2 -3
  178. package/storybook-static/assets/{css.test.stories-B-QcObCF.js → css.test.stories-BV2hi4CY.js} +1 -1
  179. package/storybook-static/assets/custom-element-wn23PUwN.js +231 -0
  180. package/storybook-static/assets/{dom-merge.test.stories-CjXhjTQY.js → dom-merge.test.stories-Dws0C2-g.js} +1 -1
  181. package/storybook-static/assets/{entry-preview-DrgzXgwT.js → entry-preview-BKQ8UCxI.js} +1 -1
  182. package/storybook-static/assets/{entry-preview-docs-Bxv0qQWs.js → entry-preview-docs-BMKNVQXA.js} +2 -2
  183. package/storybook-static/assets/{external-template.test.stories-BBqyi0az.js → external-template.test.stories-BHO48b0j.js} +19 -16
  184. package/storybook-static/assets/{form.test.stories-DsIo1B4n.js → form.test.stories-dv9mwp24.js} +1 -1
  185. package/storybook-static/assets/handlers-CaCq2ZPF.js +467 -0
  186. package/storybook-static/assets/http-request-DNq59pnj.js +1 -0
  187. package/storybook-static/assets/http-request.stories-B2ke7LtS.js +281 -0
  188. package/storybook-static/assets/iframe-D4Sos1HO.js +2 -0
  189. package/storybook-static/assets/index-BnXBQqj9.js +605 -0
  190. package/storybook-static/assets/index-C8k3Z-3Y.js +28 -0
  191. package/storybook-static/assets/index-Cpxqn5iQ.js +1 -0
  192. package/storybook-static/assets/{index-DXimoRZY.js → index-D-8MO0q_.js} +1 -1
  193. package/storybook-static/assets/index-DGdNYaqV.js +8 -0
  194. package/storybook-static/assets/index-Dz4OaB2k.js +1 -0
  195. package/storybook-static/assets/index-sm7QlJZE.js +1 -0
  196. package/storybook-static/assets/lit-element-DzhCn-8W.js +19 -0
  197. package/storybook-static/assets/{local-storage.test.stories-Cs2v3QTS.js → local-storage.test.stories-BpogLNq-.js} +1 -1
  198. package/storybook-static/assets/location-element-hKpcXCdn.js +1 -0
  199. package/storybook-static/assets/{location-element.test.stories-WkrQDzJJ.js → location-element.test.stories-BiFvBop7.js} +9 -9
  200. package/storybook-static/assets/module-url.test.stories-BXoM34tX.js +208 -0
  201. package/storybook-static/assets/{preview-BKCN0mOr.js → preview-0Jj89qip.js} +1 -1
  202. package/storybook-static/assets/{preview-TCN6m6T-.js → preview-BJPLiuSt.js} +1 -1
  203. package/storybook-static/assets/{preview-BDY5ThwJ.js → preview-BMWqy4Bi.js} +1 -1
  204. package/storybook-static/assets/preview-BnWGZYux.js +1 -0
  205. package/storybook-static/assets/preview-Cg7hXPRq.js +2 -0
  206. package/storybook-static/assets/{preview-BAz7FMXc.js → preview-DB9FwMii.js} +1 -1
  207. package/storybook-static/assets/preview-Djh1_Tal.js +20 -0
  208. package/storybook-static/assets/{preview-DRnyIGXK.js → preview-oHxXRSIu.js} +15 -15
  209. package/storybook-static/assets/set-url.test.stories-Cg5Z0r7x.js +81 -0
  210. package/storybook-static/assets/{slice-events.test.stories-BRBBc0JT.js → slice-events.test.stories-D_ttGp3g.js} +1 -1
  211. package/storybook-static/assets/{slots.test.stories-r-i91k3y.js → slots.test.stories-DBNXOm0T.js} +1 -1
  212. package/storybook-static/assets/version-select.test.stories-CgV3UCim.js +109 -0
  213. package/storybook-static/confused.svg +1 -0
  214. package/storybook-static/demo/a.html +60 -0
  215. package/storybook-static/demo/b.html +13 -0
  216. package/storybook-static/demo/confused.svg +38 -0
  217. package/storybook-static/demo/data-slices.html +216 -0
  218. package/storybook-static/demo/dce-social-preview.png +0 -0
  219. package/storybook-static/demo/demo.css +26 -0
  220. package/storybook-static/demo/dom-merge.html +123 -0
  221. package/storybook-static/demo/embed-1.html +2 -0
  222. package/storybook-static/demo/external-template.html +239 -0
  223. package/storybook-static/demo/form.html +239 -0
  224. package/storybook-static/demo/hex-grid-dce.html +183 -0
  225. package/storybook-static/demo/hex-grid-transform.png +0 -0
  226. package/storybook-static/demo/hex-grid.html +66 -0
  227. package/storybook-static/demo/html-template.html +126 -0
  228. package/storybook-static/demo/html-template.xhtml +45 -0
  229. package/storybook-static/demo/html-template.xml +45 -0
  230. package/storybook-static/demo/http-request.html +143 -0
  231. package/storybook-static/demo/lib-dir/Smiley.svg +24 -0
  232. package/storybook-static/demo/lib-dir/embed-lib.html +34 -0
  233. package/storybook-static/demo/local-storage.html +218 -0
  234. package/storybook-static/demo/location-element.html +168 -0
  235. package/storybook-static/demo/logo.png +0 -0
  236. package/storybook-static/demo/module-url.html +215 -0
  237. package/storybook-static/demo/npm-versions-demo.html +105 -0
  238. package/storybook-static/demo/npm-versions.html +65 -0
  239. package/storybook-static/demo/parameters.html +70 -0
  240. package/storybook-static/demo/s.xml +28 -0
  241. package/storybook-static/demo/s.xslt +97 -0
  242. package/storybook-static/demo/s1.xslt +60 -0
  243. package/storybook-static/demo/scoped-css.html +169 -0
  244. package/storybook-static/demo/set-url.html +141 -0
  245. package/storybook-static/demo/ss.html +57 -0
  246. package/storybook-static/demo/table.xml +25 -0
  247. package/storybook-static/demo/table.xsl +293 -0
  248. package/storybook-static/demo/template.xsl +46 -0
  249. package/storybook-static/demo/tree.xml +25 -0
  250. package/storybook-static/demo/tree.xsl +33 -0
  251. package/storybook-static/demo/wc-square.svg +1 -0
  252. package/storybook-static/demo/xhtml-template.xhtml +45 -0
  253. package/storybook-static/demo/z.html +62 -0
  254. package/storybook-static/demo/z.js +9 -0
  255. package/storybook-static/demo/z.xml +60 -0
  256. package/storybook-static/embed-1.html +1 -2
  257. package/storybook-static/favicon.svg +1 -7
  258. package/storybook-static/iframe.html +42 -30
  259. package/storybook-static/index.html +36 -18
  260. package/storybook-static/index.json +1 -1
  261. package/storybook-static/mockServiceWorker.js +1 -1
  262. package/storybook-static/nunito-sans-bold-italic.woff2 +0 -0
  263. package/storybook-static/nunito-sans-bold.woff2 +0 -0
  264. package/storybook-static/nunito-sans-italic.woff2 +0 -0
  265. package/storybook-static/nunito-sans-regular.woff2 +0 -0
  266. package/storybook-static/project.json +1 -1
  267. package/storybook-static/sb-addons/chromatic-com-storybook-9/manager-bundle.js +32 -32
  268. package/storybook-static/sb-addons/chromatic-com-storybook-9/manager-bundle.js.LEGAL.txt +1 -1
  269. package/storybook-static/sb-addons/essentials-actions-3/manager-bundle.js +1 -1
  270. package/storybook-static/sb-addons/essentials-controls-2/manager-bundle.js +395 -43
  271. package/storybook-static/sb-addons/essentials-controls-2/manager-bundle.js.LEGAL.txt +0 -18
  272. package/storybook-static/sb-addons/essentials-viewport-5/manager-bundle.js +1 -1
  273. package/storybook-static/sb-addons/interactions-10/manager-bundle.js +221 -22
  274. package/storybook-static/sb-addons/storybook-core-core-server-presets-0/common-manager-bundle.js +3 -0
  275. package/storybook-static/sb-common-assets/favicon.svg +1 -0
  276. package/storybook-static/sb-manager/globals-module-info.js +995 -1
  277. package/storybook-static/sb-manager/globals-runtime.js +53525 -1
  278. package/storybook-static/sb-manager/globals.js +48 -1
  279. package/storybook-static/sb-manager/runtime.js +11884 -1
  280. package/storybook-static/sb-preview/globals.js +33 -1
  281. package/storybook-static/sb-preview/runtime.js +9437 -108
  282. package/vite.config.js +2 -1
  283. package/dist/custom-element-BDK7dcJN.cjs +0 -53
  284. package/dist/custom-element-DqtzLkTG.js +0 -471
  285. package/dist/location-element-2m0gWq_d.cjs +0 -1
  286. package/dist/location-element-nA_wsqBt.js +0 -49
  287. package/storybook-static/assets/Color-PRSJMWNM-y4ZsI1hY.js +0 -1
  288. package/storybook-static/assets/DocsRenderer-K4EAMTCU-VRGUwRrq.js +0 -2
  289. package/storybook-static/assets/WithTooltip-KJL26V4Q-xdXH9Ztt.js +0 -1
  290. package/storybook-static/assets/custom-element-BIxkVg7K.js +0 -219
  291. package/storybook-static/assets/formatter-2WMMO6ZP-CThVcQxM.js +0 -58
  292. package/storybook-static/assets/http-request.stories-sXA_Y-VM.js +0 -300
  293. package/storybook-static/assets/iframe-DcDTQOmA.js +0 -2
  294. package/storybook-static/assets/index-CUFHd5VD.js +0 -1
  295. package/storybook-static/assets/index-CVRyq5ci.js +0 -27
  296. package/storybook-static/assets/index-Cc7K62zD.js +0 -3
  297. package/storybook-static/assets/index-DPPi9iZu.js +0 -548
  298. package/storybook-static/assets/index-DuIEV_9C.js +0 -13
  299. package/storybook-static/assets/index-VWixWKZ7.js +0 -1
  300. package/storybook-static/assets/lit-element-CenEXOuS.js +0 -19
  301. package/storybook-static/assets/preview-B4GcaC1c.js +0 -1
  302. package/storybook-static/assets/preview-B63p-W8V.js +0 -20
  303. package/storybook-static/assets/preview-p-Bwze-K.js +0 -2
  304. package/storybook-static/assets/syntaxhighlighter-BP7B2CQK-OnioRcs9.js +0 -1
  305. package/storybook-static/sb-addons/storybook-core-server-presets-0/common-manager-bundle.js +0 -3
  306. package/storybook-static/sb-common-assets/fonts.css +0 -31
  307. package/storybook-static/sb-manager/WithTooltip-KJL26V4Q-5LS5AN27.js +0 -1
  308. package/storybook-static/sb-manager/chunk-B3YDJJJH.js +0 -347
  309. package/storybook-static/sb-manager/chunk-BLWCBWKL.js +0 -9
  310. package/storybook-static/sb-manager/chunk-GUVK2GTO.js +0 -6
  311. package/storybook-static/sb-manager/chunk-LFRML3ZV.js +0 -186
  312. package/storybook-static/sb-manager/chunk-MC7RAF2B.js +0 -274
  313. package/storybook-static/sb-manager/chunk-ZR5JZWHI.js +0 -1
  314. package/storybook-static/sb-manager/formatter-2WMMO6ZP-JI7RHVTW.js +0 -58
  315. package/storybook-static/sb-manager/index.js +0 -1
  316. package/storybook-static/sb-manager/syntaxhighlighter-BP7B2CQK-WOJYHKQR.js +0 -1
  317. /package/storybook-static/sb-addons/{storybook-core-server-presets-0 → storybook-core-core-server-presets-0}/common-manager-bundle.js.LEGAL.txt +0 -0
@@ -1,125 +1,215 @@
1
- {
2
- "version": 1.1,
3
- "globalAttributes": [
4
- {
5
- "name": "slice",
6
- "description": {
7
- "kind": "markdown",
8
- "value": "Defines the name of data slice in DCE where the data from `value` will be propagated on `change` or by `slice-event` event\n\nOn: any component with `value` and associated change event"
9
- },
10
- "references": [
11
- {
12
- "name": "Demo",
13
- "url": "https://unpkg.com/@epa-wg/custom-element/demo/dom-merge.html"
14
- }
15
- ]
16
- },
17
- {
18
- "name": "slice-event",
19
- "description": {
20
- "kind": "markdown",
21
- "value": "Defines the event name on which `value` would be synchronized with DCE slice\n\nOn: any component with `value` and associated change event"
22
- },
23
- "references": [
24
- {
25
- "name": "Demo",
26
- "url": "https://unpkg.com/@epa-wg/custom-element/demo/dom-merge.html"
27
- }
28
- ]
29
- },
30
- {
31
- "name": "custom-validity",
32
- "description": {
33
- "kind": "markdown",
34
- "value": "XPath expression to return either boolean or error string to be shown by browser native UI on form validation event. Unless value is true, prevents the form submission."
35
- },
36
- "references": [
37
- {
38
- "name": "Demo",
39
- "url": "https://unpkg.com/@epa-wg/custom-element/demo/form.html"
40
- }
41
- ]
42
- },
43
- {
44
- "name": "slice-value",
45
- "description": {
46
- "kind": "markdown",
47
- "value": "XPath expression to populate into the slice"
48
- },
49
- "references": [
50
- {
51
- "name": "Demo",
52
- "url": "https://unpkg.com/@epa-wg/custom-element/demo/data-slices.html"
53
- }
54
- ]
55
- }
56
- ],
57
- "tags": [
58
- {
59
- "name": "custom-element",
60
- "description": "Declarative Cuestom ELement(DCE). `<custom-element tag='my-element'></custom-element>`.",
61
- "attributes": [
62
- {
63
- "name": "hidden",
64
- "description": "hides DCE definition to prevent visual appearance of content. Wrap the payload into template tag to prevent applying the inline CSS in global scope.",
65
- "type": "boolean"
66
- },
67
- {
68
- "name": "tag",
69
- "description": "HTML tag for Custom Element. Used for window.customElements.define(). If not set, would be generated and DCE instance rendered inline.",
70
- "type": "string"
71
- },
72
- {
73
- "name": "src",
74
- "description": "full, relative, or hash URL to DCE template",
75
- "type": "string",
76
- "references": [
77
- {
78
- "name": "example",
79
- "url": "https://unpkg.com/@epa-wg/custom-element/demo/external-template.html"
80
- }
81
- ]
82
- }
83
- ],
84
- "references": [
85
- {
86
- "name": "custom-element",
87
- "url": "https://github.com/EPA-WG/custom-element"
88
- }
89
- ]
90
- },
91
- {
92
- "name": "for-each",
93
- "description": "The <xsl:for-each> element selects a set of nodes and processes each of them in the same way. It is often used to iterate through a set of nodes or to change the current node. If one or more <xsl:sort> elements appear as the children of this element, sorting occurs before processing. Otherwise, nodes are processed in document order.",
94
- "attributes": [
95
- {
96
- "name": "select",
97
- "description": "Uses an XPath expression to select nodes to be processed.",
98
- "type": "string",
99
- "references": [
100
- {
101
- "name": "MDN docs",
102
- "url": "https://developer.mozilla.org/en-US/docs/Web/XSLT/Element/for-each#select"
103
- }
104
- ]
105
- }
106
- ],
107
- "references": [
108
- {
109
- "name": "for-each",
110
- "url": "https://developer.mozilla.org/en-US/docs/Web/XSLT/Element/for-each"
111
- }
112
- ]
113
- },
114
- {
115
- "name": "slice",
116
- "description": "Synthetic element for defining the slice-attributed when more then one slice/event/value associated with parent element",
117
- "references": [
118
- {
119
- "name": "README",
120
- "url": "https://github.com/EPA-WG/custom-element/tree/develop?tab=readme-ov-file#interactivity-via-data-slice-triggered-by-events"
121
- }
122
- ]
123
- }
124
- ]
125
- }
1
+ {
2
+ "version": 1.1,
3
+ "globalAttributes": [
4
+ {
5
+ "name": "slice",
6
+ "description": {
7
+ "kind": "markdown",
8
+ "value": "Defines the name of data slice in DCE where the data from `value` will be propagated on `change` or by `slice-event` event\n\nOn: any component with `value` and associated change event"
9
+ },
10
+ "references": [
11
+ {
12
+ "name": "Demo",
13
+ "url": "https://unpkg.com/@epa-wg/custom-element/demo/dom-merge.html"
14
+ }
15
+ ]
16
+ },
17
+ {
18
+ "name": "slice-event",
19
+ "description": {
20
+ "kind": "markdown",
21
+ "value": "Defines the event name on which `value` would be synchronized with DCE slice\n\nOn: any component with `value` and associated change event"
22
+ },
23
+ "references": [
24
+ {
25
+ "name": "Demo",
26
+ "url": "https://unpkg.com/@epa-wg/custom-element/demo/dom-merge.html"
27
+ }
28
+ ]
29
+ },
30
+ {
31
+ "name": "custom-validity",
32
+ "description": {
33
+ "kind": "markdown",
34
+ "value": "XPath expression to return either boolean or error string to be shown by browser native UI on form validation event. Unless value is true, prevents the form submission."
35
+ },
36
+ "references": [
37
+ {
38
+ "name": "Demo",
39
+ "url": "https://unpkg.com/@epa-wg/custom-element/demo/form.html"
40
+ }
41
+ ]
42
+ },
43
+ {
44
+ "name": "slice-value",
45
+ "description": {
46
+ "kind": "markdown",
47
+ "value": "XPath expression to populate into the slice"
48
+ },
49
+ "references": [
50
+ {
51
+ "name": "Demo",
52
+ "url": "https://unpkg.com/@epa-wg/custom-element/demo/data-slices.html"
53
+ }
54
+ ]
55
+ }
56
+ ],
57
+ "tags": [
58
+ {
59
+ "name": "custom-element",
60
+ "description": "Declarative Cuestom ELement(DCE). `<custom-element tag='my-element'></custom-element>`.",
61
+ "attributes": [
62
+ {
63
+ "name": "hidden",
64
+ "description": "hides DCE definition to prevent visual appearance of content. Wrap the payload into template tag to prevent applying the inline CSS in global scope.",
65
+ "type": "boolean"
66
+ },
67
+ {
68
+ "name": "tag",
69
+ "description": "HTML tag for Custom Element. Used for window.customElements.define(). If not set, would be generated and DCE instance rendered inline.",
70
+ "type": "string"
71
+ },
72
+ {
73
+ "name": "src",
74
+ "description": "full, relative, or hash URL to DCE template",
75
+ "type": "string",
76
+ "references": [
77
+ {
78
+ "name": "example",
79
+ "url": "https://unpkg.com/@epa-wg/custom-element/demo/external-template.html"
80
+ }
81
+ ]
82
+ }
83
+ ],
84
+ "references": [
85
+ {
86
+ "name": "custom-element",
87
+ "url": "https://github.com/EPA-WG/custom-element"
88
+ }
89
+ ]
90
+ },
91
+ {
92
+ "name": "for-each",
93
+ "description": "The <xsl:for-each> element selects a set of nodes and processes each of them in the same way. It is often used to iterate through a set of nodes or to change the current node. If one or more <xsl:sort> elements appear as the children of this element, sorting occurs before processing. Otherwise, nodes are processed in document order.",
94
+ "attributes": [
95
+ {
96
+ "name": "select",
97
+ "description": "Uses an XPath expression to select nodes to be processed.",
98
+ "type": "string",
99
+ "references": [
100
+ {
101
+ "name": "MDN docs",
102
+ "url": "https://developer.mozilla.org/en-US/docs/Web/XSLT/Element/for-each#select"
103
+ }
104
+ ]
105
+ }
106
+ ],
107
+ "references": [
108
+ {
109
+ "name": "for-each",
110
+ "url": "https://developer.mozilla.org/en-US/docs/Web/XSLT/Element/for-each"
111
+ }
112
+ ]
113
+ },
114
+ {
115
+ "name": "slice",
116
+ "description": "Synthetic element for defining the slice-attributed when more then one slice/event/value associated with parent element",
117
+ "references": [
118
+ {
119
+ "name": "README",
120
+ "url": "https://github.com/EPA-WG/custom-element/tree/develop?tab=readme-ov-file#interactivity-via-data-slice-triggered-by-events"
121
+ }
122
+ ]
123
+ },
124
+ {
125
+ "name": "location-element",
126
+ "description": "get/set window URL parts or from SRC URL",
127
+ "attributes": [
128
+ {
129
+ "name": "href",
130
+ "description": "url to be parsed. When omitted window.location is used.",
131
+ "type": "string",
132
+ "references": [
133
+ {
134
+ "name": "MDN docs",
135
+ "url": "https://developer.mozilla.org/en-US/docs/Web/API/Location/href"
136
+ }
137
+ ]
138
+ },
139
+ {
140
+ "name": "live",
141
+ "description": "monitors history change, applicable only when href is omitted.",
142
+ "type": "string",
143
+ "references": [
144
+ {
145
+ "name": "docs",
146
+ "url": "https://unpkg.com/@epa-wg/custom-element@0/demo/location-element.html"
147
+ }
148
+ ]
149
+ },
150
+ {
151
+ "name": "src",
152
+ "description": "sets the window URL",
153
+ "type": "string",
154
+ "references": [
155
+ {
156
+ "name": "docs",
157
+ "url": "https://unpkg.com/@epa-wg/custom-element@0/demo/set-url.html"
158
+ }
159
+ ]
160
+ },
161
+ {
162
+ "name": "method",
163
+ "description": "when defined, changes URL by one of predefined methods.",
164
+ "type": "string",
165
+ "references": [
166
+ {
167
+ "name": "docs",
168
+ "url": "https://unpkg.com/@epa-wg/custom-element@0/demo/set-url.html"
169
+ }
170
+ ]
171
+ }
172
+ ],
173
+ "references": [
174
+ {
175
+ "name": "docs",
176
+ "url": "https://github.com/EPA-WG/custom-element"
177
+ }
178
+ ]
179
+ },
180
+ {
181
+ "name": "module-url",
182
+ "description": "get module URL into slice from SRC according to web page importmap",
183
+ "attributes": [
184
+ {
185
+ "name": "src",
186
+ "description": "path to module resource, If omitted, it would match the window.location.href",
187
+ "type": "string",
188
+ "references": [
189
+ {
190
+ "name": "docs",
191
+ "url": "https://unpkg.com/@epa-wg/custom-element@0/demo/module-url.html"
192
+ }
193
+ ]
194
+ },
195
+ {
196
+ "name": "slice",
197
+ "description": "slice name where resolved URL would be propagated",
198
+ "type": "string",
199
+ "references": [
200
+ {
201
+ "name": "docs",
202
+ "url": "https://unpkg.com/@epa-wg/custom-element@0/demo/data-slices.html"
203
+ }
204
+ ]
205
+ }
206
+ ],
207
+ "references": [
208
+ {
209
+ "name": "docs",
210
+ "url": "https://unpkg.com/@epa-wg/custom-element@0/demo/module-url.html"
211
+ }
212
+ ]
213
+ }
214
+ ]
215
+ }
@@ -1,116 +1,184 @@
1
- {
2
- "$schema": "http://json.schemastore.org/web-types",
3
- "name": "@epa-wg/custom-element",
4
- "version": "0.0.24",
5
- "js-types-syntax": "typescript",
6
- "description-markup": "markdown",
7
- "contributions": {
8
- "html": {
9
- "attributes": [
10
- {
11
- "name": "slice",
12
- "description": "Defines the name of data slice in DCE where the data from `value` will be propagated on `change` or by `slice-event` event\n\nOn: any component with `value` and associated change event",
13
- "doc-url": "https://unpkg.com/@epa-wg/custom-element/demo/dom-merge.html"
14
- },
15
- {
16
- "name": "slice-event",
17
- "description": "Defines the event name on which `value` would be synchronized with DCE slice\n\nOn: any component with `value` and associated change event",
18
- "doc-url": "https://unpkg.com/@epa-wg/custom-element/demo/dom-merge.html"
19
- },
20
- {
21
- "name": "custom-validity",
22
- "description": "XPath expression to return either boolean or error string to be shown by browser native UI on form validation event. Unless value is true, prevents the form submission.",
23
- "doc-url": "https://unpkg.com/@epa-wg/custom-element/demo/form.html"
24
- },
25
- {
26
- "name": "slice-value",
27
- "description": "XPath expression to populate into the slice",
28
- "doc-url": "https://unpkg.com/@epa-wg/custom-element/demo/data-slices.html"
29
- }
30
- ],
31
- "elements": [
32
- {
33
- "name": "custom-element",
34
- "description": "Declarative Custom Element as W3C proposal PoC with native(XSLT) based templating",
35
- "doc-url": "https://github.com/EPA-WG/custom-element?tab=readme-ov-file#custom-element",
36
- "attributes": [
37
- {
38
- "name": "hidden",
39
- "description": "hides DCE definition to prevent visual appearance of content. Wrap the payload into template tag to prevent applying the inline CSS in global scope.",
40
- "required": false,
41
- "doc-url": "https://developer.mozilla.org/en-US/docs/web/html/global_attributes/hidden",
42
- "value": {
43
- "type": "boolean"
44
- }
45
- },
46
- {
47
- "name": "tag",
48
- "description": "HTML tag for Custom Element. Used for window.customElements.define(). If not set, would be generated and DCE instance rendered inline. ",
49
- "default": "",
50
- "required": false,
51
- "doc-url": "https://github.com/EPA-WG/custom-element?tab=readme-ov-file#tag-attribute",
52
- "value": {
53
- "type": "string"
54
- }
55
- },
56
- {
57
- "name": "src",
58
- "description": "full, relative, or hash URL to DCE template.",
59
- "default": "",
60
- "required": false,
61
- "doc-url": "https://github.com/EPA-WG/custom-element?tab=readme-ov-file#src-attribute",
62
- "value": {
63
- "type": "URL"
64
- }
65
- }
66
- ],
67
- "slots": [],
68
- "js": {
69
- "events": [
70
- {
71
- "name": "value:changed",
72
- "description": "Emitted when data changes. Can be used for state serialization in hydration flow"
73
- }
74
- ],
75
- "properties": [
76
- {
77
- "name": "value",
78
- "type": "string",
79
- "default": "",
80
- "description": "DCE state. Can be used for state serialization in hydration flow. Format TBD, most likely encoded XML string"
81
- }
82
- ]
83
- },
84
- "css": {
85
- "properties": [
86
- ]
87
- }
88
- },
89
- {
90
- "name": "for-each",
91
- "description": "The <xsl:for-each> element selects a set of nodes and processes each of them in the same way. It is often used to iterate through a set of nodes or to change the current node. If one or more <xsl:sort> elements appear as the children of this element, sorting occurs before processing. Otherwise, nodes are processed in document order.",
92
- "doc-url": "https://developer.mozilla.org/en-US/docs/Web/XSLT/Element/for-each",
93
- "attributes": [
94
- {
95
- "name": "select",
96
- "description": "Uses an XPath expression to select nodes to be processed.",
97
- "required": true,
98
- "doc-url": "https://developer.mozilla.org/en-US/docs/Web/XSLT/Element/for-each#select",
99
- "value": {
100
- "type": "string"
101
- }
102
- }
103
- ]
104
- },
105
- {
106
- "name": "slice",
107
- "description": "Synthetic element for defining the slice-attributed when more then one slice/event/value associated with parent element",
108
- "doc-url": "https://github.com/EPA-WG/custom-element/tree/develop?tab=readme-ov-file#interactivity-via-data-slice-triggered-by-events",
109
- "attributes": [
110
-
111
- ]
112
- }
113
- ]
114
- }
115
- }
116
- }
1
+ {
2
+ "$schema": "http://json.schemastore.org/web-types",
3
+ "name": "@epa-wg/custom-element",
4
+ "version": "0.0.26",
5
+ "js-types-syntax": "typescript",
6
+ "description-markup": "markdown",
7
+ "contributions": {
8
+ "html": {
9
+ "attributes": [
10
+ {
11
+ "name": "slice",
12
+ "description": "Defines the name of data slice in DCE where the data from `value` will be propagated on `change` or by `slice-event` event\n\nOn: any component with `value` and associated change event",
13
+ "doc-url": "https://unpkg.com/@epa-wg/custom-element/demo/dom-merge.html"
14
+ },
15
+ {
16
+ "name": "slice-event",
17
+ "description": "Defines the event name on which `value` would be synchronized with DCE slice\n\nOn: any component with `value` and associated change event",
18
+ "doc-url": "https://unpkg.com/@epa-wg/custom-element/demo/dom-merge.html"
19
+ },
20
+ {
21
+ "name": "custom-validity",
22
+ "description": "XPath expression to return either boolean or error string to be shown by browser native UI on form validation event. Unless value is true, prevents the form submission.",
23
+ "doc-url": "https://unpkg.com/@epa-wg/custom-element/demo/form.html"
24
+ },
25
+ {
26
+ "name": "slice-value",
27
+ "description": "XPath expression to populate into the slice",
28
+ "doc-url": "https://unpkg.com/@epa-wg/custom-element/demo/data-slices.html"
29
+ }
30
+ ],
31
+ "elements": [
32
+ {
33
+ "name": "custom-element",
34
+ "description": "Declarative Custom Element as W3C proposal PoC with native(XSLT) based templating",
35
+ "doc-url": "https://github.com/EPA-WG/custom-element?tab=readme-ov-file#custom-element",
36
+ "attributes": [
37
+ {
38
+ "name": "hidden",
39
+ "description": "hides DCE definition to prevent visual appearance of content. Wrap the payload into template tag to prevent applying the inline CSS in global scope.",
40
+ "required": false,
41
+ "doc-url": "https://developer.mozilla.org/en-US/docs/web/html/global_attributes/hidden",
42
+ "value": {
43
+ "type": "boolean"
44
+ }
45
+ },
46
+ {
47
+ "name": "tag",
48
+ "description": "HTML tag for Custom Element. Used for window.customElements.define(). If not set, would be generated and DCE instance rendered inline. ",
49
+ "default": "",
50
+ "required": false,
51
+ "doc-url": "https://github.com/EPA-WG/custom-element?tab=readme-ov-file#tag-attribute",
52
+ "value": {
53
+ "type": "string"
54
+ }
55
+ },
56
+ {
57
+ "name": "src",
58
+ "description": "full, relative, or hash URL to DCE template.",
59
+ "default": "",
60
+ "required": false,
61
+ "doc-url": "https://github.com/EPA-WG/custom-element?tab=readme-ov-file#src-attribute",
62
+ "value": {
63
+ "type": "URL"
64
+ }
65
+ }
66
+ ],
67
+ "slots": [ ],
68
+ "js": {
69
+ "events": [
70
+ {
71
+ "name": "value:changed",
72
+ "description": "Emitted when data changes. Can be used for state serialization in hydration flow"
73
+ }
74
+ ],
75
+ "properties": [
76
+ {
77
+ "name": "value",
78
+ "type": "string",
79
+ "default": "",
80
+ "description": "DCE state. Can be used for state serialization in hydration flow. Format TBD, most likely encoded XML string"
81
+ }
82
+ ]
83
+ },
84
+ "css": {
85
+ "properties": [
86
+ ]
87
+ }
88
+ },
89
+ {
90
+ "name": "for-each",
91
+ "description": "The <xsl:for-each> element selects a set of nodes and processes each of them in the same way. It is often used to iterate through a set of nodes or to change the current node. If one or more <xsl:sort> elements appear as the children of this element, sorting occurs before processing. Otherwise, nodes are processed in document order.",
92
+ "doc-url": "https://developer.mozilla.org/en-US/docs/Web/XSLT/Element/for-each",
93
+ "attributes": [
94
+ {
95
+ "name": "select",
96
+ "description": "Uses an XPath expression to select nodes to be processed.",
97
+ "required": true,
98
+ "doc-url": "https://developer.mozilla.org/en-US/docs/Web/XSLT/Element/for-each#select",
99
+ "value": {
100
+ "type": "string"
101
+ }
102
+ }
103
+ ]
104
+ },
105
+ {
106
+ "name": "location-element",
107
+ "description": "get/set window URL parts or from SRC URL",
108
+ "doc-url": "https://github.com/EPA-WG/custom-element",
109
+ "attributes": [
110
+ {
111
+ "name": "href",
112
+ "description": "url to be parsed. When omitted window.location is used.",
113
+ "required": false,
114
+ "doc-url": "https://developer.mozilla.org/en-US/docs/Web/API/Location/href",
115
+ "value": {
116
+ "type": "string"
117
+ }
118
+ },
119
+ {
120
+ "name": "live",
121
+ "description": "monitors history change, applicable only when href is omitted.",
122
+ "required": false,
123
+ "doc-url": "https://unpkg.com/@epa-wg/custom-element@0/demo/location-element.html",
124
+ "value": {
125
+ "type": "string"
126
+ }
127
+ },
128
+ {
129
+ "name": "src",
130
+ "description": "sets the window URL",
131
+ "required": false,
132
+ "doc-url": "https://unpkg.com/@epa-wg/custom-element@0/demo/set-url.html",
133
+ "value": {
134
+ "type": "string"
135
+ }
136
+ },
137
+ {
138
+ "name": "method",
139
+ "description": "when defined, changes URL by one of predefined methods.",
140
+ "required": false,
141
+ "doc-url": "https://unpkg.com/@epa-wg/custom-element@0/demo/set-url.html",
142
+ "value": {
143
+ "type": "string"
144
+ }
145
+ }
146
+ ]
147
+ },
148
+ {
149
+ "name": "module-url",
150
+ "description": "get module URL into slice from SRC according to web page importmap",
151
+ "doc-url": "https://unpkg.com/@epa-wg/custom-element@0/demo/module-url.html",
152
+ "attributes": [
153
+ {
154
+ "name": "src",
155
+ "description": "path to module resource, If omitted, it would match the window.location.href",
156
+ "required": false,
157
+ "doc-url": "https://unpkg.com/@epa-wg/custom-element@0/demo/module-url.html",
158
+ "value": {
159
+ "type": "string"
160
+ }
161
+ },
162
+ {
163
+ "name": "slice",
164
+ "description": "slice name where resolved URL would be propagated",
165
+ "required": false,
166
+ "doc-url": "https://unpkg.com/@epa-wg/custom-element@0/demo/data-slices.html",
167
+ "value": {
168
+ "type": "string"
169
+ }
170
+ }
171
+ ]
172
+ },
173
+ {
174
+ "name": "slice",
175
+ "description": "Synthetic element for defining the slice-attributed when more then one slice/event/value associated with parent element",
176
+ "doc-url": "https://github.com/EPA-WG/custom-element/tree/develop?tab=readme-ov-file#interactivity-via-data-slice-triggered-by-events",
177
+ "attributes": [
178
+
179
+ ]
180
+ }
181
+ ]
182
+ }
183
+ }
184
+ }