@rindo/core 1.8.12 → 1.17.4

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 (545) hide show
  1. package/bin/rindo +53 -19
  2. package/cli/index.cjs.js +524 -0
  3. package/cli/index.d.ts +15 -0
  4. package/cli/index.js +500 -0
  5. package/cli/package.json +9 -0
  6. package/compiler/package.json +8 -6
  7. package/compiler/rindo.d.ts +111 -0
  8. package/compiler/rindo.js +62852 -6655
  9. package/compiler/rindo.min.js +17 -0
  10. package/dependencies.json +80 -0
  11. package/dev-server/client/app-error.d.ts +18 -0
  12. package/dev-server/client/events.d.ts +6 -0
  13. package/dev-server/client/hmr-components.d.ts +1 -0
  14. package/dev-server/client/hmr-external-styles.d.ts +1 -0
  15. package/dev-server/client/hmr-images.d.ts +1 -0
  16. package/dev-server/client/hmr-inline-styles.d.ts +1 -0
  17. package/dev-server/client/hmr-util.d.ts +9 -0
  18. package/dev-server/client/hmr-window.d.ts +10 -0
  19. package/dev-server/client/index.d.ts +6 -0
  20. package/dev-server/client/index.js +785 -0
  21. package/dev-server/client/logger.d.ts +5 -0
  22. package/dev-server/client/package.json +8 -0
  23. package/dev-server/client/progress.d.ts +3 -0
  24. package/dev-server/client/status.d.ts +4 -0
  25. package/dev-server/connector.html +6 -0
  26. package/dev-server/content-type-db.json +1 -0
  27. package/dev-server/index.d.ts +6 -0
  28. package/dev-server/index.js +260 -0
  29. package/dev-server/open-in-editor-api.js +1 -0
  30. package/dev-server/package.json +8 -0
  31. package/dev-server/server-worker.js +1570 -0
  32. package/{dist/dev-server → dev-server}/static/favicon.ico +0 -0
  33. package/{dist/dev-server → dev-server}/templates/directory-index.html +132 -132
  34. package/dev-server/templates/initial-load.html +160 -0
  35. package/{dist/sys/node → dev-server}/visualstudio.vbs +0 -0
  36. package/dev-server/ws.js +1 -0
  37. package/{dist/sys/node → dev-server}/xdg-open +0 -0
  38. package/internal/app-data/index.cjs.js +88 -0
  39. package/internal/app-data/index.d.ts +3 -0
  40. package/internal/{client/build-conditionals.mjs → app-data/index.js} +24 -21
  41. package/internal/app-data/package.json +9 -0
  42. package/internal/client/css-shim.js +4 -0
  43. package/internal/client/{dom.rindo-client.mjs → dom.js} +73 -137
  44. package/{dist/client/index.mjs → internal/client/index.js} +736 -736
  45. package/internal/client/package.json +7 -0
  46. package/internal/client/patch.js +136 -0
  47. package/internal/client/polyfills/core-js.js +11 -10
  48. package/internal/client/polyfills/css-shim.js +1 -656
  49. package/internal/client/polyfills/dom.js +79 -146
  50. package/internal/client/polyfills/es5-html-element.js +1 -18
  51. package/internal/client/polyfills/index.js +6 -7
  52. package/internal/client/{shadow-css.rindo-client.mjs → shadow-css.js} +14 -17
  53. package/internal/hydrate/index.js +1073 -0
  54. package/internal/hydrate/package.json +7 -0
  55. package/internal/hydrate/runner.d.ts +205 -0
  56. package/internal/hydrate/runner.js +748 -0
  57. package/internal/hydrate/shadow-css.js +146 -0
  58. package/internal/index.d.ts +4 -18
  59. package/internal/index.js +1 -1
  60. package/internal/package.json +8 -6
  61. package/internal/rindo-core/index.d.ts +2 -0
  62. package/{dist → internal/rindo-core}/index.js +0 -0
  63. package/internal/rindo-ext-modules.d.ts +39 -0
  64. package/internal/rindo-private.d.ts +2183 -0
  65. package/internal/rindo-public-compiler.d.ts +2094 -0
  66. package/{dist/declarations/docs.d.ts → internal/rindo-public-docs.d.ts} +13 -1
  67. package/internal/rindo-public-runtime.d.ts +1552 -0
  68. package/internal/testing/index.js +1032 -0
  69. package/internal/testing/package.json +7 -0
  70. package/internal/testing/shadow-css.js +146 -0
  71. package/mock-doc/index.cjs.js +4500 -0
  72. package/mock-doc/index.d.ts +905 -0
  73. package/mock-doc/index.js +4464 -2
  74. package/mock-doc/package.json +9 -10
  75. package/package.json +84 -137
  76. package/readme.md +3 -82
  77. package/screenshot/compare/build/app.css +1 -1
  78. package/screenshot/compare/build/app.esm.js +1 -1
  79. package/screenshot/compare/build/app.js +27 -812
  80. package/{dist/compiler/polyfills.d.ts → screenshot/compare/build/index.esm.js} +0 -0
  81. package/screenshot/compare/build/{p-113f7459.js → p-081b0641.js} +1 -1
  82. package/screenshot/compare/build/p-227a1e18.entry.js +1 -0
  83. package/screenshot/compare/build/p-2c298727.entry.js +1 -0
  84. package/screenshot/compare/build/p-5479268c.entry.js +1 -0
  85. package/screenshot/compare/build/p-573ec8a4.entry.js +1 -0
  86. package/screenshot/compare/build/p-6ba08604.entry.js +1 -0
  87. package/screenshot/compare/build/p-6bc63295.entry.js +1 -0
  88. package/screenshot/compare/build/p-7a3759fd.entry.js +1 -0
  89. package/screenshot/compare/build/{p-ejpsp3kx.js → p-7b4e3ba7.js} +1 -1
  90. package/screenshot/compare/build/p-988eb362.css +1 -0
  91. package/screenshot/compare/build/p-9b6a9315.js +1 -0
  92. package/screenshot/compare/build/p-b4cc611c.entry.js +1 -0
  93. package/screenshot/compare/build/p-d1bf53f5.entry.js +1 -0
  94. package/screenshot/compare/build/{p-efb0eac6.js → p-e2efe0df.js} +1 -1
  95. package/screenshot/compare/build/p-e8ca6d97.entry.js +1 -0
  96. package/screenshot/compare/build/p-ec2f13e0.entry.js +1 -0
  97. package/screenshot/compare/build/p-f0b99977.entry.js +1 -0
  98. package/screenshot/compare/build/p-f4745c2f.entry.js +1 -0
  99. package/screenshot/compare/build/p-fbbae598.js +1 -0
  100. package/screenshot/compare/host.config.json +14 -14
  101. package/screenshot/compare/index.html +1 -1
  102. package/{dist/screenshot → screenshot}/connector-base.d.ts +1 -1
  103. package/{dist/screenshot → screenshot}/connector-local.d.ts +1 -1
  104. package/screenshot/connector.js +2 -3
  105. package/{dist/screenshot → screenshot}/index.d.ts +1 -1
  106. package/screenshot/index.js +642 -2
  107. package/screenshot/local-connector.js +2 -3
  108. package/screenshot/package.json +8 -13
  109. package/{dist/screenshot → screenshot}/pixel-match.d.ts +0 -0
  110. package/screenshot/pixel-match.js +22 -6
  111. package/screenshot/screenshot-compare.d.ts +3 -0
  112. package/{dist/screenshot → screenshot}/screenshot-fs.d.ts +1 -1
  113. package/sys/node/autoprefixer.js +1 -0
  114. package/sys/node/glob.js +1 -0
  115. package/sys/node/graceful-fs.js +1 -0
  116. package/sys/node/index.d.ts +18 -0
  117. package/sys/node/index.js +1402 -2
  118. package/sys/node/node-fetch.js +1 -0
  119. package/sys/node/package.json +8 -5
  120. package/sys/node/prompts.js +1 -0
  121. package/sys/node/worker.js +33 -0
  122. package/{dist/testing → testing}/index.d.ts +5 -6
  123. package/testing/index.js +3903 -2
  124. package/testing/jest/jest-config.d.ts +92 -0
  125. package/{dist/testing → testing}/jest/jest-environment.d.ts +4 -2
  126. package/{dist/testing → testing}/jest/jest-preprocessor.d.ts +1 -0
  127. package/{dist/testing → testing}/jest/jest-runner.d.ts +1 -1
  128. package/{dist/testing → testing}/jest/jest-screenshot.d.ts +1 -1
  129. package/{dist/testing → testing}/jest/jest-serializer.d.ts +1 -1
  130. package/{dist/testing → testing}/jest/jest-setup-test-framework.d.ts +0 -0
  131. package/testing/jest-environment.js +3 -3
  132. package/testing/jest-preprocessor.js +3 -3
  133. package/testing/jest-preset.js +20 -28
  134. package/testing/jest-runner.js +3 -3
  135. package/testing/jest-setuptestframework.js +3 -3
  136. package/{dist/testing → testing}/matchers/attributes.d.ts +0 -0
  137. package/{dist/testing → testing}/matchers/class-list.d.ts +0 -0
  138. package/{dist/testing → testing}/matchers/events.d.ts +9 -1
  139. package/{dist/testing → testing}/matchers/html.d.ts +0 -0
  140. package/{dist/testing → testing}/matchers/index.d.ts +3 -1
  141. package/{dist/testing → testing}/matchers/screenshot.d.ts +1 -1
  142. package/{dist/testing → testing}/matchers/text.d.ts +0 -0
  143. package/testing/mock-fetch.d.ts +11 -0
  144. package/testing/mocks.d.ts +14 -0
  145. package/testing/package.json +8 -6
  146. package/testing/puppeteer/index.d.ts +2 -0
  147. package/{dist/testing → testing}/puppeteer/puppeteer-browser.d.ts +2 -2
  148. package/{dist/testing → testing}/puppeteer/puppeteer-declarations.d.ts +9 -9
  149. package/{dist/testing → testing}/puppeteer/puppeteer-element.d.ts +5 -3
  150. package/testing/puppeteer/puppeteer-emulate.d.ts +2 -0
  151. package/{dist/testing → testing}/puppeteer/puppeteer-events.d.ts +7 -7
  152. package/testing/puppeteer/puppeteer-page.d.ts +2 -0
  153. package/testing/puppeteer/puppeteer-screenshot.d.ts +4 -0
  154. package/testing/reset-build-conditionals.d.ts +2 -0
  155. package/testing/spec-page.d.ts +2 -0
  156. package/testing/test-transpile.d.ts +2 -0
  157. package/{dist/testing → testing}/testing-logger.d.ts +10 -8
  158. package/testing/testing-sys.d.ts +1 -0
  159. package/{dist/testing → testing}/testing-utils.d.ts +3 -2
  160. package/testing/testing.d.ts +2 -0
  161. package/build-conditionals/index.d.ts +0 -2
  162. package/build-conditionals/index.mjs +0 -66
  163. package/build-conditionals/package.json +0 -6
  164. package/compiler/index.js +0 -2
  165. package/dist/cli/index.js +0 -6068
  166. package/dist/client/css-shim-14a9812e.js +0 -656
  167. package/dist/client/css-shim-69821662.js +0 -658
  168. package/dist/client/declarations/rindo.core.d.ts +0 -1347
  169. package/dist/client/dom-68c8fe31.js +0 -139
  170. package/dist/client/dom-af01458a.js +0 -137
  171. package/dist/client/index.js +0 -2937
  172. package/dist/client/polyfills/core-js.js +0 -10
  173. package/dist/client/polyfills/css-shim.js +0 -656
  174. package/dist/client/polyfills/dom.js +0 -146
  175. package/dist/client/polyfills/es5-html-element.js +0 -18
  176. package/dist/client/polyfills/index.js +0 -35
  177. package/dist/client/polyfills/promise.js +0 -9
  178. package/dist/client/polyfills/system.js +0 -6
  179. package/dist/client/shadow-css-6ef31c68.js +0 -386
  180. package/dist/client/shadow-css-8fd1a9e4.js +0 -388
  181. package/dist/compiler/app-core/app-es5-disabled.d.ts +0 -2
  182. package/dist/compiler/app-core/app-polyfills.d.ts +0 -3
  183. package/dist/compiler/app-core/build-conditionals.d.ts +0 -6
  184. package/dist/compiler/app-core/bundle-app-core.d.ts +0 -6
  185. package/dist/compiler/app-core/component-styles.d.ts +0 -4
  186. package/dist/compiler/app-core/format-component-runtime-meta.d.ts +0 -4
  187. package/dist/compiler/app-core/optimize-module.d.ts +0 -7
  188. package/dist/compiler/browser/build-conditionals-client.d.ts +0 -3
  189. package/dist/compiler/browser/compile-options.d.ts +0 -12
  190. package/dist/compiler/browser/compile.d.ts +0 -2
  191. package/dist/compiler/browser/create-compiler.d.ts +0 -14
  192. package/dist/compiler/browser/index.d.ts +0 -11
  193. package/dist/compiler/build/build-ctx.d.ts +0 -74
  194. package/dist/compiler/build/build-finish.d.ts +0 -3
  195. package/dist/compiler/build/build-hmr.d.ts +0 -2
  196. package/dist/compiler/build/build-results.d.ts +0 -2
  197. package/dist/compiler/build/build-stats.d.ts +0 -3
  198. package/dist/compiler/build/build.d.ts +0 -2
  199. package/dist/compiler/build/cache-stats.d.ts +0 -4
  200. package/dist/compiler/build/compiler-build-id.d.ts +0 -6
  201. package/dist/compiler/build/compiler-ctx.d.ts +0 -44
  202. package/dist/compiler/build/init-index-html.d.ts +0 -2
  203. package/dist/compiler/build/validate-files.d.ts +0 -2
  204. package/dist/compiler/build/write-build.d.ts +0 -2
  205. package/dist/compiler/cache.d.ts +0 -22
  206. package/dist/compiler/compiler.d.ts +0 -27
  207. package/dist/compiler/component-hydrate/bundle-hydrate-factory.d.ts +0 -3
  208. package/dist/compiler/component-hydrate/generate-hydrate-app.d.ts +0 -2
  209. package/dist/compiler/component-hydrate/hydrate-factory-closure.d.ts +0 -2
  210. package/dist/compiler/component-hydrate/update-to-hydrate-components.d.ts +0 -2
  211. package/dist/compiler/component-hydrate/write-hydrate-outputs.d.ts +0 -3
  212. package/dist/compiler/component-lazy/generate-cjs.d.ts +0 -3
  213. package/dist/compiler/component-lazy/generate-esm-browser.d.ts +0 -3
  214. package/dist/compiler/component-lazy/generate-esm.d.ts +0 -3
  215. package/dist/compiler/component-lazy/generate-lazy-app.d.ts +0 -3
  216. package/dist/compiler/component-lazy/generate-lazy-module.d.ts +0 -4
  217. package/dist/compiler/component-lazy/generate-system.d.ts +0 -3
  218. package/dist/compiler/component-lazy/update-to-lazy-component.d.ts +0 -2
  219. package/dist/compiler/component-lazy/write-lazy-entry-module.d.ts +0 -2
  220. package/dist/compiler/component-native/update-to-native-component.d.ts +0 -2
  221. package/dist/compiler/config/config-reload.d.ts +0 -3
  222. package/dist/compiler/config/config-utils.d.ts +0 -4
  223. package/dist/compiler/config/validate-config.d.ts +0 -4
  224. package/dist/compiler/config/validate-copy.d.ts +0 -2
  225. package/dist/compiler/config/validate-dev-server.d.ts +0 -2
  226. package/dist/compiler/config/validate-docs.d.ts +0 -2
  227. package/dist/compiler/config/validate-namespace.d.ts +0 -3
  228. package/dist/compiler/config/validate-output-stats.d.ts +0 -2
  229. package/dist/compiler/config/validate-outputs-angular.d.ts +0 -2
  230. package/dist/compiler/config/validate-outputs-custom.d.ts +0 -2
  231. package/dist/compiler/config/validate-outputs-dist-module.d.ts +0 -2
  232. package/dist/compiler/config/validate-outputs-dist.d.ts +0 -2
  233. package/dist/compiler/config/validate-outputs-hydrate-script.d.ts +0 -2
  234. package/dist/compiler/config/validate-outputs-www.d.ts +0 -2
  235. package/dist/compiler/config/validate-outputs.d.ts +0 -2
  236. package/dist/compiler/config/validate-paths.d.ts +0 -2
  237. package/dist/compiler/config/validate-plugins.d.ts +0 -2
  238. package/dist/compiler/config/validate-prerender.d.ts +0 -2
  239. package/dist/compiler/config/validate-rollup-config.d.ts +0 -2
  240. package/dist/compiler/config/validate-service-worker.d.ts +0 -2
  241. package/dist/compiler/config/validate-testing.d.ts +0 -2
  242. package/dist/compiler/config/validate-workers.d.ts +0 -2
  243. package/dist/compiler/copy/assets-copy-tasks.d.ts +0 -3
  244. package/dist/compiler/copy/hashed-copy.d.ts +0 -2
  245. package/dist/compiler/copy/local-copy-tasks.d.ts +0 -3
  246. package/dist/compiler/docs/constants.d.ts +0 -2
  247. package/dist/compiler/docs/custom/index.d.ts +0 -2
  248. package/dist/compiler/docs/docs.d.ts +0 -2
  249. package/dist/compiler/docs/generate-doc-data.d.ts +0 -3
  250. package/dist/compiler/docs/json/index.d.ts +0 -3
  251. package/dist/compiler/docs/readme/docs-util.d.ts +0 -13
  252. package/dist/compiler/docs/readme/index.d.ts +0 -3
  253. package/dist/compiler/docs/readme/markdown-css-props.d.ts +0 -2
  254. package/dist/compiler/docs/readme/markdown-dependencies.d.ts +0 -2
  255. package/dist/compiler/docs/readme/markdown-events.d.ts +0 -2
  256. package/dist/compiler/docs/readme/markdown-methods.d.ts +0 -2
  257. package/dist/compiler/docs/readme/markdown-props.d.ts +0 -2
  258. package/dist/compiler/docs/readme/markdown-slots.d.ts +0 -2
  259. package/dist/compiler/docs/readme/markdown-usage.d.ts +0 -6
  260. package/dist/compiler/docs/readme/output-docs.d.ts +0 -3
  261. package/dist/compiler/docs/style-docs.d.ts +0 -2
  262. package/dist/compiler/docs/vscode/index.d.ts +0 -2
  263. package/dist/compiler/entries/component-bundles.d.ts +0 -3
  264. package/dist/compiler/entries/component-graph.d.ts +0 -2
  265. package/dist/compiler/entries/default-bundles.d.ts +0 -3
  266. package/dist/compiler/entries/entry-modules.d.ts +0 -6
  267. package/dist/compiler/entries/resolve-component-dependencies.d.ts +0 -2
  268. package/dist/compiler/events.d.ts +0 -15
  269. package/dist/compiler/fs-watch/fs-watch-init.d.ts +0 -2
  270. package/dist/compiler/fs-watch/fs-watch-log.d.ts +0 -2
  271. package/dist/compiler/fs-watch/fs-watch-rebuild.d.ts +0 -7
  272. package/dist/compiler/html/inject-module-preloads.d.ts +0 -3
  273. package/dist/compiler/html/inject-sw-script.d.ts +0 -4
  274. package/dist/compiler/html/inline-esm-import.d.ts +0 -2
  275. package/dist/compiler/html/inline-style-sheets.d.ts +0 -2
  276. package/dist/compiler/html/update-global-styles-link.d.ts +0 -2
  277. package/dist/compiler/html/used-components.d.ts +0 -2
  278. package/dist/compiler/html/utils.d.ts +0 -2
  279. package/dist/compiler/html/validate-manifest-json.d.ts +0 -2
  280. package/dist/compiler/index.d.ts +0 -10
  281. package/dist/compiler/index.js +0 -18008
  282. package/dist/compiler/output-targets/empty-dir.d.ts +0 -6
  283. package/dist/compiler/output-targets/index.d.ts +0 -2
  284. package/dist/compiler/output-targets/output-angular.d.ts +0 -4
  285. package/dist/compiler/output-targets/output-app.d.ts +0 -4
  286. package/dist/compiler/output-targets/output-collection.d.ts +0 -3
  287. package/dist/compiler/output-targets/output-copy.d.ts +0 -2
  288. package/dist/compiler/output-targets/output-custom.d.ts +0 -2
  289. package/dist/compiler/output-targets/output-docs.d.ts +0 -2
  290. package/dist/compiler/output-targets/output-hydrate.d.ts +0 -2
  291. package/dist/compiler/output-targets/output-lazy-loader.d.ts +0 -2
  292. package/dist/compiler/output-targets/output-module.d.ts +0 -4
  293. package/dist/compiler/output-targets/output-prerender.d.ts +0 -2
  294. package/dist/compiler/output-targets/output-service-workers.d.ts +0 -2
  295. package/dist/compiler/output-targets/output-types.d.ts +0 -2
  296. package/dist/compiler/output-targets/output-utils.d.ts +0 -54
  297. package/dist/compiler/output-targets/output-www.d.ts +0 -2
  298. package/dist/compiler/plugin/plugin.d.ts +0 -6
  299. package/dist/compiler/prerender/crawl-urls.d.ts +0 -3
  300. package/dist/compiler/prerender/host-config.d.ts +0 -12
  301. package/dist/compiler/prerender/prerender-config.d.ts +0 -2
  302. package/dist/compiler/prerender/prerender-main.d.ts +0 -2
  303. package/dist/compiler/prerender/prerender-queue.d.ts +0 -3
  304. package/dist/compiler/prerender/prerender-template-html.d.ts +0 -2
  305. package/dist/compiler/prerender/prerendered-write-path.d.ts +0 -2
  306. package/dist/compiler/prerender/robots-txt.d.ts +0 -2
  307. package/dist/compiler/prerender/sitemap-xml.d.ts +0 -3
  308. package/dist/compiler/rollup-plugins/component-entry.d.ts +0 -3
  309. package/dist/compiler/rollup-plugins/css-transformer.d.ts +0 -3
  310. package/dist/compiler/rollup-plugins/global-scripts.d.ts +0 -4
  311. package/dist/compiler/rollup-plugins/image-plugin.d.ts +0 -3
  312. package/dist/compiler/rollup-plugins/in-memory-fs-read.d.ts +0 -3
  313. package/dist/compiler/rollup-plugins/loader.d.ts +0 -4
  314. package/dist/compiler/rollup-plugins/plugin-helper.d.ts +0 -5
  315. package/dist/compiler/rollup-plugins/rindo-build-conditionals.d.ts +0 -7
  316. package/dist/compiler/rollup-plugins/rindo-client.d.ts +0 -3
  317. package/dist/compiler/rollup-plugins/rindo-external-runtime.d.ts +0 -2
  318. package/dist/compiler/rollup-plugins/rindo-hydrate.d.ts +0 -3
  319. package/dist/compiler/rollup-plugins/rindo-public-plugin.d.ts +0 -2
  320. package/dist/compiler/service-worker/generate-sw.d.ts +0 -7
  321. package/dist/compiler/service-worker/service-worker-util.d.ts +0 -2
  322. package/dist/compiler/style/cached-styles.d.ts +0 -5
  323. package/dist/compiler/style/component-styles.d.ts +0 -2
  324. package/dist/compiler/style/css-imports.d.ts +0 -9
  325. package/dist/compiler/style/css-to-esm.d.ts +0 -5
  326. package/dist/compiler/style/generate-styles.d.ts +0 -2
  327. package/dist/compiler/style/global-styles.d.ts +0 -3
  328. package/dist/compiler/style/normalize-styles.d.ts +0 -2
  329. package/dist/compiler/style/optimize-css.d.ts +0 -2
  330. package/dist/compiler/style/scope-css.d.ts +0 -3
  331. package/dist/compiler/style/style-utils.d.ts +0 -10
  332. package/dist/compiler/transformers/add-component-meta-proxy.d.ts +0 -3
  333. package/dist/compiler/transformers/add-component-meta-static.d.ts +0 -4
  334. package/dist/compiler/transformers/add-imports.d.ts +0 -3
  335. package/dist/compiler/transformers/collections/add-external-import.d.ts +0 -2
  336. package/dist/compiler/transformers/collections/parse-collection-components.d.ts +0 -2
  337. package/dist/compiler/transformers/collections/parse-collection-deprecated.d.ts +0 -2
  338. package/dist/compiler/transformers/collections/parse-collection-manifest.d.ts +0 -7
  339. package/dist/compiler/transformers/collections/parse-collection-module.d.ts +0 -2
  340. package/dist/compiler/transformers/component-build-conditionals.d.ts +0 -2
  341. package/dist/compiler/transformers/component-hydrate/hydrate-component.d.ts +0 -3
  342. package/dist/compiler/transformers/component-hydrate/hydrate-runtime-cmp-meta.d.ts +0 -3
  343. package/dist/compiler/transformers/component-hydrate/tranform-to-hydrate-component.d.ts +0 -2
  344. package/dist/compiler/transformers/component-lazy/lazy-component.d.ts +0 -3
  345. package/dist/compiler/transformers/component-lazy/lazy-constructor.d.ts +0 -3
  346. package/dist/compiler/transformers/component-lazy/lazy-element-getter.d.ts +0 -3
  347. package/dist/compiler/transformers/component-lazy/transform-lazy-component.d.ts +0 -4
  348. package/dist/compiler/transformers/component-native/native-component.d.ts +0 -3
  349. package/dist/compiler/transformers/component-native/native-connected-callback.d.ts +0 -3
  350. package/dist/compiler/transformers/component-native/native-constructor.d.ts +0 -3
  351. package/dist/compiler/transformers/component-native/native-element-getter.d.ts +0 -3
  352. package/dist/compiler/transformers/component-native/native-static-style.d.ts +0 -3
  353. package/dist/compiler/transformers/component-native/tranform-to-native-component.d.ts +0 -4
  354. package/dist/compiler/transformers/core-runtime-apis.d.ts +0 -30
  355. package/dist/compiler/transformers/create-event.d.ts +0 -3
  356. package/dist/compiler/transformers/decorators-to-static/component-decorator.d.ts +0 -3
  357. package/dist/compiler/transformers/decorators-to-static/convert-decorators.d.ts +0 -3
  358. package/dist/compiler/transformers/decorators-to-static/decorator-utils.d.ts +0 -10
  359. package/dist/compiler/transformers/decorators-to-static/element-decorator.d.ts +0 -3
  360. package/dist/compiler/transformers/decorators-to-static/event-decorator.d.ts +0 -4
  361. package/dist/compiler/transformers/decorators-to-static/listen-decorator.d.ts +0 -6
  362. package/dist/compiler/transformers/decorators-to-static/method-decorator.d.ts +0 -3
  363. package/dist/compiler/transformers/decorators-to-static/prop-decorator.d.ts +0 -4
  364. package/dist/compiler/transformers/decorators-to-static/state-decorator.d.ts +0 -3
  365. package/dist/compiler/transformers/decorators-to-static/style-to-static.d.ts +0 -3
  366. package/dist/compiler/transformers/decorators-to-static/watch-decorator.d.ts +0 -3
  367. package/dist/compiler/transformers/define-custom-element.d.ts +0 -3
  368. package/dist/compiler/transformers/host-data-transform.d.ts +0 -3
  369. package/dist/compiler/transformers/legacy-props.d.ts +0 -3
  370. package/dist/compiler/transformers/remove-static-meta-properties.d.ts +0 -2
  371. package/dist/compiler/transformers/reserved-public-members.d.ts +0 -3
  372. package/dist/compiler/transformers/rindo-import-path.d.ts +0 -3
  373. package/dist/compiler/transformers/static-to-meta/call-expression.d.ts +0 -3
  374. package/dist/compiler/transformers/static-to-meta/class-methods.d.ts +0 -3
  375. package/dist/compiler/transformers/static-to-meta/component.d.ts +0 -3
  376. package/dist/compiler/transformers/static-to-meta/element-ref.d.ts +0 -2
  377. package/dist/compiler/transformers/static-to-meta/encapsulation.d.ts +0 -3
  378. package/dist/compiler/transformers/static-to-meta/events.d.ts +0 -3
  379. package/dist/compiler/transformers/static-to-meta/import.d.ts +0 -3
  380. package/dist/compiler/transformers/static-to-meta/listeners.d.ts +0 -3
  381. package/dist/compiler/transformers/static-to-meta/methods.d.ts +0 -3
  382. package/dist/compiler/transformers/static-to-meta/props.d.ts +0 -3
  383. package/dist/compiler/transformers/static-to-meta/states.d.ts +0 -3
  384. package/dist/compiler/transformers/static-to-meta/string-literal.d.ts +0 -3
  385. package/dist/compiler/transformers/static-to-meta/styles.d.ts +0 -3
  386. package/dist/compiler/transformers/static-to-meta/vdom.d.ts +0 -3
  387. package/dist/compiler/transformers/static-to-meta/visitor.d.ts +0 -3
  388. package/dist/compiler/transformers/static-to-meta/watchers.d.ts +0 -3
  389. package/dist/compiler/transformers/style-imports.d.ts +0 -3
  390. package/dist/compiler/transformers/transform-utils.d.ts +0 -31
  391. package/dist/compiler/transformers/update-component-class.d.ts +0 -3
  392. package/dist/compiler/transformers/update-rindo-core-import.d.ts +0 -3
  393. package/dist/compiler/transformers/watcher-meta-transform.d.ts +0 -3
  394. package/dist/compiler/transpile/compiler-options.d.ts +0 -4
  395. package/dist/compiler/transpile/transpile-app.d.ts +0 -2
  396. package/dist/compiler/transpile/transpile-module.d.ts +0 -5
  397. package/dist/compiler/transpile/transpile-service.d.ts +0 -3
  398. package/dist/compiler/transpile/transpile-to-es5-main.d.ts +0 -2
  399. package/dist/compiler/transpile/validate-types-main.d.ts +0 -2
  400. package/dist/compiler/types/generate-app-types.d.ts +0 -2
  401. package/dist/compiler/types/generate-component-types.d.ts +0 -8
  402. package/dist/compiler/types/generate-event-types.d.ts +0 -2
  403. package/dist/compiler/types/generate-method-types.d.ts +0 -2
  404. package/dist/compiler/types/generate-prop-types.d.ts +0 -2
  405. package/dist/compiler/types/generate-types.d.ts +0 -2
  406. package/dist/compiler/types/rindo-types.d.ts +0 -3
  407. package/dist/compiler/types/types-utils.d.ts +0 -4
  408. package/dist/compiler/types/update-import-refs.d.ts +0 -11
  409. package/dist/compiler/types/validate-package-json.d.ts +0 -9
  410. package/dist/declarations/assets.d.ts +0 -17
  411. package/dist/declarations/browser-compile.d.ts +0 -47
  412. package/dist/declarations/build-conditionals.d.ts +0 -91
  413. package/dist/declarations/build-events.d.ts +0 -19
  414. package/dist/declarations/build.d.ts +0 -247
  415. package/dist/declarations/cache.d.ts +0 -11
  416. package/dist/declarations/collection-manifest.d.ts +0 -106
  417. package/dist/declarations/collection.d.ts +0 -139
  418. package/dist/declarations/compiler.d.ts +0 -53
  419. package/dist/declarations/component-compiler-meta.d.ts +0 -198
  420. package/dist/declarations/component-constructor.d.ts +0 -61
  421. package/dist/declarations/component-interfaces.d.ts +0 -123
  422. package/dist/declarations/config.d.ts +0 -409
  423. package/dist/declarations/css-var-shim.d.ts +0 -9
  424. package/dist/declarations/decorators.d.ts +0 -150
  425. package/dist/declarations/dev-server.d.ts +0 -135
  426. package/dist/declarations/diagnostics.d.ts +0 -21
  427. package/dist/declarations/entry.d.ts +0 -28
  428. package/dist/declarations/events.d.ts +0 -13
  429. package/dist/declarations/file-system.d.ts +0 -91
  430. package/dist/declarations/fs-watch.d.ts +0 -15
  431. package/dist/declarations/host-element.d.ts +0 -53
  432. package/dist/declarations/hydrate.d.ts +0 -99
  433. package/dist/declarations/in-memory-fs.d.ts +0 -59
  434. package/dist/declarations/index.d.ts +0 -45
  435. package/dist/declarations/jsdoc.d.ts +0 -16
  436. package/dist/declarations/jsx.d.ts +0 -1050
  437. package/dist/declarations/logger.d.ts +0 -25
  438. package/dist/declarations/minify-js.d.ts +0 -11
  439. package/dist/declarations/module.d.ts +0 -35
  440. package/dist/declarations/optimize-css.d.ts +0 -12
  441. package/dist/declarations/output-targets.d.ts +0 -189
  442. package/dist/declarations/plugin.d.ts +0 -23
  443. package/dist/declarations/prerender.d.ts +0 -79
  444. package/dist/declarations/render.d.ts +0 -62
  445. package/dist/declarations/runtime.d.ts +0 -92
  446. package/dist/declarations/screenshots.d.ts +0 -192
  447. package/dist/declarations/server.d.ts +0 -19
  448. package/dist/declarations/style.d.ts +0 -35
  449. package/dist/declarations/system.d.ts +0 -174
  450. package/dist/declarations/testing.d.ts +0 -523
  451. package/dist/declarations/transpile.d.ts +0 -24
  452. package/dist/declarations/types.d.ts +0 -24
  453. package/dist/declarations/vdom.d.ts +0 -55
  454. package/dist/declarations/worker.d.ts +0 -33
  455. package/dist/dev-server/content-type-db.json +0 -1
  456. package/dist/dev-server/index.js +0 -887
  457. package/dist/dev-server/static/app-error.css +0 -257
  458. package/dist/dev-server/static/dev-server-client.html +0 -13
  459. package/dist/dev-server/templates/initial-load.html +0 -160
  460. package/dist/hydrate/index.d.ts +0 -101
  461. package/dist/hydrate/index.mjs +0 -1281
  462. package/dist/hydrate/platform.mjs +0 -347
  463. package/dist/index.d.ts +0 -99
  464. package/dist/mock-doc/index.d.ts +0 -851
  465. package/dist/mock-doc/index.js +0 -3982
  466. package/dist/mock-doc/index.mjs +0 -3954
  467. package/dist/runtime/index.js +0 -2576
  468. package/dist/runtime/index.mjs +0 -2521
  469. package/dist/runtime/shadow-css-6ef31c68.js +0 -386
  470. package/dist/runtime/shadow-css-8fd1a9e4.js +0 -388
  471. package/dist/screenshot/index.js +0 -520
  472. package/dist/sys/node/graceful-fs.js +0 -975
  473. package/dist/sys/node/index.js +0 -33545
  474. package/dist/sys/node/node-fetch.js +0 -1779
  475. package/dist/sys/node/open-in-editor.js +0 -734
  476. package/dist/sys/node/sys-worker.js +0 -67035
  477. package/dist/sys/node/websocket.js +0 -3728
  478. package/dist/testing/build-conditionals.d.ts +0 -4
  479. package/dist/testing/build-conditionals.js +0 -43
  480. package/dist/testing/core.d.ts +0 -35
  481. package/dist/testing/core.js +0 -52
  482. package/dist/testing/index.js +0 -40511
  483. package/dist/testing/jest/jest-config.d.ts +0 -4
  484. package/dist/testing/mock-fetch.d.ts +0 -46
  485. package/dist/testing/mocks.d.ts +0 -12
  486. package/dist/testing/platform.d.ts +0 -23
  487. package/dist/testing/platform.js +0 -321
  488. package/dist/testing/puppeteer/puppeteer-emulate.d.ts +0 -2
  489. package/dist/testing/puppeteer/puppeteer-find.d.ts +0 -5
  490. package/dist/testing/puppeteer/puppeteer-page.d.ts +0 -2
  491. package/dist/testing/puppeteer/puppeteer-screenshot.d.ts +0 -4
  492. package/dist/testing/spec-page.d.ts +0 -5
  493. package/dist/testing/task-queue.d.ts +0 -15
  494. package/dist/testing/test-transpile.d.ts +0 -5
  495. package/dist/testing/testing-fs.d.ts +0 -31
  496. package/dist/testing/testing-sys.d.ts +0 -19
  497. package/dist/testing/testing.d.ts +0 -12
  498. package/dist/utils/index.js +0 -1575
  499. package/dist/utils/index.mjs +0 -1511
  500. package/internal/client/css-shim.rindo-client.mjs +0 -656
  501. package/internal/client/index.mjs +0 -2859
  502. package/internal/client/polyfills/promise.js +0 -9
  503. package/internal/images.d.ts +0 -5
  504. package/runtime/package.json +0 -5
  505. package/screenshot/compare/build/p-020f8d73.js +0 -1
  506. package/screenshot/compare/build/p-09qdknbg.system.entry.js +0 -1
  507. package/screenshot/compare/build/p-0a13mpsc.system.entry.js +0 -1
  508. package/screenshot/compare/build/p-168ec2c4.system.js +0 -1
  509. package/screenshot/compare/build/p-2ab1fdf1.system.js +0 -1
  510. package/screenshot/compare/build/p-2pxcsgrj.entry.js +0 -1
  511. package/screenshot/compare/build/p-42fb7034.system.js +0 -1
  512. package/screenshot/compare/build/p-54d9d7c2.system.js +0 -1
  513. package/screenshot/compare/build/p-67c1f911.js +0 -1
  514. package/screenshot/compare/build/p-68613371.system.js +0 -1
  515. package/screenshot/compare/build/p-7dvsjpu0.entry.js +0 -1
  516. package/screenshot/compare/build/p-aa67fb06.js +0 -1
  517. package/screenshot/compare/build/p-aeb3cec1.system.js +0 -1
  518. package/screenshot/compare/build/p-b6e44a24.js +0 -1
  519. package/screenshot/compare/build/p-c1c25b8a.js +0 -1
  520. package/screenshot/compare/build/p-c9bopbjy.system.entry.js +0 -1
  521. package/screenshot/compare/build/p-c9iqz1pp.system.entry.js +0 -1
  522. package/screenshot/compare/build/p-dizjz8rg.entry.js +0 -1
  523. package/screenshot/compare/build/p-dnta0rwp.system.entry.js +0 -1
  524. package/screenshot/compare/build/p-e9670d22.system.js +0 -1
  525. package/screenshot/compare/build/p-ei9jkpd0.system.entry.js +0 -1
  526. package/screenshot/compare/build/p-ejwcppol.entry.js +0 -1
  527. package/screenshot/compare/build/p-f6612d5d.system.js +0 -1
  528. package/screenshot/compare/build/p-foiivsfc.css +0 -1
  529. package/screenshot/compare/build/p-gpjjyogx.entry.js +0 -1
  530. package/screenshot/compare/build/p-howklem2.system.entry.js +0 -1
  531. package/screenshot/compare/build/p-knv9wvoc.entry.js +0 -1
  532. package/screenshot/compare/build/p-nsqsfhhy.entry.js +0 -1
  533. package/screenshot/compare/build/p-ojt278pp.entry.js +0 -1
  534. package/screenshot/compare/build/p-oywass99.entry.js +0 -1
  535. package/screenshot/compare/build/p-q3ujhub6.entry.js +0 -1
  536. package/screenshot/compare/build/p-qw4xnmxv.entry.js +0 -1
  537. package/screenshot/compare/build/p-t1wvevhc.system.entry.js +0 -1
  538. package/screenshot/compare/build/p-tnjarrex.system.entry.js +0 -1
  539. package/screenshot/compare/build/p-vhfpd6kk.system.entry.js +0 -1
  540. package/screenshot/compare/build/p-vk6rhemd.system.entry.js +0 -1
  541. package/screenshot/compare/build/p-w6bnm16k.entry.js +0 -1
  542. package/screenshot/compare/build/p-xje6d7zl.system.entry.js +0 -1
  543. package/screenshot/compare/build/p-y5jlrcha.system.entry.js +0 -1
  544. package/screenshot/compare/build/p-yh170wkt.entry.js +0 -1
  545. package/testing/jest.preprocessor.js +0 -7
@@ -0,0 +1,1552 @@
1
+ declare type CustomMethodDecorator<T> = (target: Object, propertyKey: string | symbol, descriptor: TypedPropertyDescriptor<T>) => TypedPropertyDescriptor<T> | void;
2
+ export interface ComponentDecorator {
3
+ (opts?: ComponentOptions): ClassDecorator;
4
+ }
5
+ export interface ComponentOptions {
6
+ /**
7
+ * Tag name of the web component. Ideally, the tag name must be globally unique,
8
+ * so it's recommended to choose an unique prefix for all your components within the same collection.
9
+ *
10
+ * In addition, tag name must contain a '-'
11
+ */
12
+ tag: string;
13
+ /**
14
+ * If `true`, the component will use scoped stylesheets. Similar to shadow-dom,
15
+ * but without native isolation. Defaults to `false`.
16
+ */
17
+ scoped?: boolean;
18
+ /**
19
+ * If `true`, the component will use native shadow-dom encapsulation, it will fallback to
20
+ * `scoped` if the browser does not support shadow-dom natively. Defaults to `false`.
21
+ * Additionally, `shadow` can also be given options when attaching the shadow root.
22
+ */
23
+ shadow?: boolean | ShadowRootOptions;
24
+ /**
25
+ * Relative URL to some external stylesheet file. It should be a `.css` file unless some
26
+ * external plugin is installed like `@rindo/sass`.
27
+ */
28
+ styleUrl?: string;
29
+ /**
30
+ * Similar as `styleUrl` but allows to specify different stylesheets for different modes.
31
+ */
32
+ styleUrls?: string[] | ModeStyles;
33
+ /**
34
+ * String that contains inlined CSS instead of using an external stylesheet.
35
+ * The performance characteristics of this feature are the same as using an external stylesheet.
36
+ *
37
+ * Notice, you can't use sass, or less, only `css` is allowed using `styles`, use `styleUrl` is you need more advanced features.
38
+ */
39
+ styles?: string | {
40
+ [modeName: string]: any;
41
+ };
42
+ /**
43
+ * Array of relative links to folders of assets required by the component.
44
+ */
45
+ assetsDirs?: string[];
46
+ /**
47
+ * @deprecated Use `assetsDirs` instead
48
+ */
49
+ assetsDir?: string;
50
+ }
51
+ export interface ShadowRootOptions {
52
+ /**
53
+ * When set to `true`, specifies behavior that mitigates custom element issues
54
+ * around focusability. When a non-focusable part of the shadow DOM is clicked, the first
55
+ * focusable part is given focus, and the shadow host is given any available `:focus` styling.
56
+ */
57
+ delegatesFocus?: boolean;
58
+ }
59
+ export interface ModeStyles {
60
+ [modeName: string]: string | string[];
61
+ }
62
+ export interface PropDecorator {
63
+ (opts?: PropOptions): PropertyDecorator;
64
+ }
65
+ export interface PropOptions {
66
+ /**
67
+ * The name of the associated DOM attribute.
68
+ * Rindo uses different heuristics to determine the default name of the attribute,
69
+ * but using this property, you can override the default behaviour.
70
+ */
71
+ attribute?: string | null;
72
+ /**
73
+ * A Prop is _by default_ immutable from inside the component logic.
74
+ * Once a value is set by a user, the component cannot update it internally.
75
+ * However, it's possible to explicitly allow a Prop to be mutated from inside the component,
76
+ * by setting this `mutable` option to `true`.
77
+ */
78
+ mutable?: boolean;
79
+ /**
80
+ * In some cases it may be useful to keep a Prop in sync with an attribute.
81
+ * In this case you can set the `reflect` option to `true`, since it defaults to `false`:
82
+ */
83
+ reflect?: boolean;
84
+ /** @deprecated: "attr" has been deprecated, please use "attribute" instead. */
85
+ attr?: string;
86
+ /** @deprecated "context" has been deprecated. */
87
+ context?: string;
88
+ /** @deprecated "connect" has been deprecated, please use ES modules and/or dynamic imports instead. */
89
+ connect?: string;
90
+ /** @deprecated "reflectToAttr" has been deprecated, please use "reflect" instead. */
91
+ reflectToAttr?: boolean;
92
+ }
93
+ export interface MethodDecorator {
94
+ (opts?: MethodOptions): CustomMethodDecorator<any>;
95
+ }
96
+ export interface MethodOptions {
97
+ }
98
+ export interface ElementDecorator {
99
+ (): PropertyDecorator;
100
+ }
101
+ export interface EventDecorator {
102
+ (opts?: EventOptions): PropertyDecorator;
103
+ }
104
+ export interface EventOptions {
105
+ /**
106
+ * A string custom event name to override the default.
107
+ */
108
+ eventName?: string;
109
+ /**
110
+ * A Boolean indicating whether the event bubbles up through the DOM or not.
111
+ */
112
+ bubbles?: boolean;
113
+ /**
114
+ * A Boolean indicating whether the event is cancelable.
115
+ */
116
+ cancelable?: boolean;
117
+ /**
118
+ * A Boolean value indicating whether or not the event can bubble across the boundary between the shadow DOM and the regular DOM.
119
+ */
120
+ composed?: boolean;
121
+ }
122
+ export interface ListenDecorator {
123
+ (eventName: string, opts?: ListenOptions): CustomMethodDecorator<any>;
124
+ }
125
+ export interface ListenOptions {
126
+ /**
127
+ * Handlers can also be registered for an event other than the host itself.
128
+ * The `target` option can be used to change where the event listener is attached,
129
+ * this is useful for listening to application-wide events.
130
+ */
131
+ target?: ListenTargetOptions;
132
+ /**
133
+ * Event listener attached with `@Listen` does not "capture" by default,
134
+ * When a event listener is set to "capture", means the event will be dispatched
135
+ * during the "capture phase". Please see
136
+ * https://www.quirksmode.org/js/events_order.html for further information.
137
+ */
138
+ capture?: boolean;
139
+ /**
140
+ * By default, Rindo uses several heuristics to determine if
141
+ * it must attach a `passive` event listener or not.
142
+ *
143
+ * Using the `passive` option can be used to change the default behaviour.
144
+ * Please see https://developers.google.com/web/updates/2016/06/passive-event-listeners for further information.
145
+ */
146
+ passive?: boolean;
147
+ }
148
+ export declare type ListenTargetOptions = 'parent' | 'body' | 'document' | 'window';
149
+ export interface StateDecorator {
150
+ (): PropertyDecorator;
151
+ }
152
+ export interface WatchDecorator {
153
+ (propName: string): CustomMethodDecorator<any>;
154
+ }
155
+ export interface UserBuildConditionals {
156
+ isDev: boolean;
157
+ isBrowser: boolean;
158
+ isServer: boolean;
159
+ isTesting: boolean;
160
+ }
161
+ /**
162
+ * The `Build` object provides many build conditionals that can be used to
163
+ * include or exclude code depending on the build.
164
+ */
165
+ export declare const Build: UserBuildConditionals;
166
+ /**
167
+ * The `@Component()` decorator is used to provide metadata about the component class.
168
+ * https://rindojs.com/docs/component
169
+ */
170
+ export declare const Component: ComponentDecorator;
171
+ /**
172
+ * The `@Element()` decorator is a reference to the actual host element
173
+ * once it has rendered.
174
+ */
175
+ export declare const Element: ElementDecorator;
176
+ /**
177
+ * Components can emit data and events using the Event Emitter decorator.
178
+ * To dispatch Custom DOM events for other components to handle, use the
179
+ * `@Event()` decorator. The Event decorator also makes it easier for Rindo
180
+ * to automatically build types and documentation for the event data.
181
+ * https://rindojs.com/docs/events
182
+ */
183
+ export declare const Event: EventDecorator;
184
+ /**
185
+ * The `Listen()` decorator is for listening DOM events, including the ones
186
+ * dispatched from `@Events()`.
187
+ * https://rindojs.com/docs/events#listen-decorator
188
+ */
189
+ export declare const Listen: ListenDecorator;
190
+ /**
191
+ * The `@Method()` decorator is used to expose methods on the public API.
192
+ * Class methods decorated with the @Method() decorator can be called directly
193
+ * from the element, meaning they are intended to be callable from the outside.
194
+ * https://rindojs.com/docs/methods
195
+ */
196
+ export declare const Method: MethodDecorator;
197
+ /**
198
+ * Props are custom attribute/properties exposed publicly on the element
199
+ * that developers can provide values for. Children components do not need to
200
+ * know about or reference parent components, so Props can be used to pass
201
+ * data down from the parent to the child. Components need to explicitly
202
+ * declare the Props they expect to receive using the `@Prop()` decorator.
203
+ * Any value changes to a Prop will cause a re-render.
204
+ * https://rindojs.com/docs/properties
205
+ */
206
+ export declare const Prop: PropDecorator;
207
+ /**
208
+ * The `@State()` decorator can be used to manage internal data for a component.
209
+ * This means that a user cannot modify this data from outside the component,
210
+ * but the component can modify it however it sees fit. Any value changes to a
211
+ * `@State()` property will cause the components render function to be called again.
212
+ * https://rindojs.com/docs/state
213
+ */
214
+ export declare const State: StateDecorator;
215
+ /**
216
+ * When a property's value has changed, a method decorated with `@Watch()` will be
217
+ * called and passed the new value of the prop along with the old value. Watch is
218
+ * useful for validating props or handling side effects. Watch decorator does not
219
+ * fire when a component initially loads.
220
+ * https://rindojs.com/docs/reactive-data#watch-decorator
221
+ */
222
+ export declare const Watch: WatchDecorator;
223
+ export declare type ResolutionHandler = (elm: HTMLElement) => string | undefined | null;
224
+ /**
225
+ * `setMode()` is used for libraries which provide multiple "modes" for styles.
226
+ */
227
+ export declare const setMode: (handler: ResolutionHandler) => void;
228
+ /**
229
+ * getMode
230
+ */
231
+ export declare function getMode<T = string | undefined>(ref: any): T;
232
+ /**
233
+ * Get the base path to where the assets can be found. Use `setAssetPath(path)`
234
+ * if the path needs to be customized.
235
+ */
236
+ export declare function getAssetPath(path: string): string;
237
+ /**
238
+ * Used to manually set the base path where assets can be found. For lazy-loaded
239
+ * builds the asset path is automatically set and assets copied to the correct
240
+ * build directory. However, for custom elements builds, the `setAssetPath(path)` could
241
+ * be used to customize the asset path depending on how the script file is consumed.
242
+ * If the script is used as "module", it's recommended to use "import.meta.url", such
243
+ * as `setAssetPath(import.meta.url)`. Other options include
244
+ * `setAssetPath(document.currentScript.src)`, or using a bundler's replace plugin to
245
+ * dynamically set the path at build time, such as `setAssetPath(process.env.ASSET_PATH)`.
246
+ * But do note that this configuration depends on how your script is bundled, or lack of
247
+ * bunding, and where your assets can be loaded from. Additionally custom bundling
248
+ * will have to ensure the static assets are copied to its build directory.
249
+ */
250
+ export declare function setAssetPath(path: string): string;
251
+ /**
252
+ * getElement
253
+ */
254
+ export declare function getElement(ref: any): HTMLRindoElement;
255
+ /**
256
+ * Schedules a new render of the given instance or element even if no state changed.
257
+ *
258
+ * Notice `forceUpdate()` is not syncronous and might perform the DOM render in the next frame.
259
+ */
260
+ export declare function forceUpdate(ref: any): void;
261
+ /**
262
+ * getRenderingRef
263
+ */
264
+ export declare function getRenderingRef(): any;
265
+ export interface HTMLRindoElement extends HTMLElement {
266
+ componentOnReady(): Promise<this>;
267
+ /** @deprecated */
268
+ forceUpdate(): void;
269
+ }
270
+ /**
271
+ * Schedules a DOM-write task. The provided callback will be executed
272
+ * in the best moment to perform DOM mutation without causing layout thrashing.
273
+ *
274
+ * For further information: https://developers.google.com/web/fundamentals/performance/rendering/avoid-large-complex-layouts-and-layout-thrashing
275
+ */
276
+ export declare function writeTask(task: RafCallback): void;
277
+ /**
278
+ * Schedules a DOM-read task. The provided callback will be executed
279
+ * in the best moment to perform DOM reads without causing layout thrashing.
280
+ *
281
+ * For further information: https://developers.google.com/web/fundamentals/performance/rendering/avoid-large-complex-layouts-and-layout-thrashing
282
+ */
283
+ export declare function readTask(task: RafCallback): void;
284
+ /**
285
+ * This file gets copied to all distributions of rindo component collections.
286
+ * - no imports
287
+ */
288
+ export interface ComponentWillLoad {
289
+ /**
290
+ * The component is about to load and it has not
291
+ * rendered yet.
292
+ *
293
+ * This is the best place to make any data updates
294
+ * before the first render.
295
+ *
296
+ * componentWillLoad will only be called once.
297
+ */
298
+ componentWillLoad(): Promise<void> | void;
299
+ }
300
+ export interface ComponentDidLoad {
301
+ /**
302
+ * The component has loaded and has already rendered.
303
+ *
304
+ * Updating data in this method will cause the
305
+ * component to re-render.
306
+ *
307
+ * componentDidLoad will only be called once.
308
+ */
309
+ componentDidLoad(): void;
310
+ }
311
+ export interface ComponentWillUpdate {
312
+ /**
313
+ * The component is about to update and re-render.
314
+ *
315
+ * Called multiple times throughout the life of
316
+ * the component as it updates.
317
+ *
318
+ * componentWillUpdate is not called on the first render.
319
+ */
320
+ componentWillUpdate(): Promise<void> | void;
321
+ }
322
+ export interface ComponentDidUpdate {
323
+ /**
324
+ * The component has just re-rendered.
325
+ *
326
+ * Called multiple times throughout the life of
327
+ * the component as it updates.
328
+ *
329
+ * componentWillUpdate is not called on the
330
+ * first render.
331
+ */
332
+ componentDidUpdate(): void;
333
+ }
334
+ export interface ComponentDidUnload {
335
+ /**
336
+ * The component did unload and the element
337
+ * will be destroyed.
338
+ */
339
+ componentDidUnload(): void;
340
+ }
341
+ export interface ComponentInterface {
342
+ connectedCallback?(): void;
343
+ disconnectedCallback?(): void;
344
+ componentWillRender?(): Promise<void> | void;
345
+ componentDidRender?(): void;
346
+ /**
347
+ * The component is about to load and it has not
348
+ * rendered yet.
349
+ *
350
+ * This is the best place to make any data updates
351
+ * before the first render.
352
+ *
353
+ * componentWillLoad will only be called once.
354
+ */
355
+ componentWillLoad?(): Promise<void> | void;
356
+ /**
357
+ * The component has loaded and has already rendered.
358
+ *
359
+ * Updating data in this method will cause the
360
+ * component to re-render.
361
+ *
362
+ * componentDidLoad will only be called once.
363
+ */
364
+ componentDidLoad?(): void;
365
+ /**
366
+ * A `@Prop` or `@State` property changed and a rerender is about to be requested.
367
+ *
368
+ * Called multiple times throughout the life of
369
+ * the component as its properties change.
370
+ *
371
+ * componentShouldUpdate is not called on the first render.
372
+ */
373
+ componentShouldUpdate?(newVal: any, oldVal: any, propName: string): boolean | void;
374
+ /**
375
+ * The component is about to update and re-render.
376
+ *
377
+ * Called multiple times throughout the life of
378
+ * the component as it updates.
379
+ *
380
+ * componentWillUpdate is not called on the first render.
381
+ */
382
+ componentWillUpdate?(): Promise<void> | void;
383
+ /**
384
+ * The component has just re-rendered.
385
+ *
386
+ * Called multiple times throughout the life of
387
+ * the component as it updates.
388
+ *
389
+ * componentWillUpdate is not called on the
390
+ * first render.
391
+ */
392
+ componentDidUpdate?(): void;
393
+ render?(): any;
394
+ [memberName: string]: any;
395
+ }
396
+ export interface EventEmitter<T = any> {
397
+ emit: (data?: T) => CustomEvent<T>;
398
+ }
399
+ export interface RafCallback {
400
+ (timeStamp: number): void;
401
+ }
402
+ export interface QueueApi {
403
+ tick: (cb: RafCallback) => void;
404
+ read: (cb: RafCallback) => void;
405
+ write: (cb: RafCallback) => void;
406
+ clear?: () => void;
407
+ flush?: (cb?: () => void) => void;
408
+ }
409
+ /**
410
+ * Host
411
+ */
412
+ interface HostAttributes {
413
+ class?: string | {
414
+ [className: string]: boolean;
415
+ };
416
+ style?: {
417
+ [key: string]: string | undefined;
418
+ };
419
+ ref?: (el: HTMLElement | null) => void;
420
+ [prop: string]: any;
421
+ }
422
+ export interface FunctionalUtilities {
423
+ forEach: (children: VNode[], cb: (vnode: ChildNode, index: number, array: ChildNode[]) => void) => void;
424
+ map: (children: VNode[], cb: (vnode: ChildNode, index: number, array: ChildNode[]) => ChildNode) => VNode[];
425
+ }
426
+ export interface FunctionalComponent<T = {}> {
427
+ (props: T, children: VNode[], utils: FunctionalUtilities): VNode | VNode[];
428
+ }
429
+ export interface ChildNode {
430
+ vtag?: string | number | Function;
431
+ vkey?: string | number;
432
+ vtext?: string;
433
+ vchildren?: VNode[];
434
+ vattrs?: any;
435
+ vname?: string;
436
+ }
437
+ /**
438
+ * Host is a functional component can be used at the root of the render function
439
+ * to set attributes and event listeners to the host element itself.
440
+ *
441
+ * For further information: https://rindojs.com/docs/host-element
442
+ */
443
+ export declare const Host: FunctionalComponent<HostAttributes>;
444
+ /**
445
+ * The "h" namespace is used to import JSX types for elements and attributes.
446
+ * It is imported in order to avoid conflicting global JSX issues.
447
+ */
448
+ export declare namespace h {
449
+ function h(sel: any): VNode;
450
+ function h(sel: Node, data: VNodeData): VNode;
451
+ function h(sel: any, data: VNodeData): VNode;
452
+ function h(sel: any, text: string): VNode;
453
+ function h(sel: any, children: Array<VNode | undefined | null>): VNode;
454
+ function h(sel: any, data: VNodeData, text: string): VNode;
455
+ function h(sel: any, data: VNodeData, children: Array<VNode | undefined | null>): VNode;
456
+ function h(sel: any, data: VNodeData, children: VNode): VNode;
457
+ namespace JSX {
458
+ interface IntrinsicElements extends LocalJSX.IntrinsicElements, JSXBase.IntrinsicElements {
459
+ [tagName: string]: any;
460
+ }
461
+ }
462
+ }
463
+ export interface VNode {
464
+ $flags$: number;
465
+ $tag$: string | number | Function;
466
+ $elm$: any;
467
+ $text$: string;
468
+ $children$: VNode[];
469
+ $attrs$?: any;
470
+ $name$?: string;
471
+ $key$?: string | number;
472
+ }
473
+ export interface VNodeData {
474
+ class?: {
475
+ [className: string]: boolean;
476
+ };
477
+ style?: any;
478
+ [attrName: string]: any;
479
+ }
480
+ declare namespace LocalJSX {
481
+ interface Element {
482
+ }
483
+ interface IntrinsicElements {
484
+ }
485
+ }
486
+ export { LocalJSX as JSX };
487
+ export declare namespace JSXBase {
488
+ interface IntrinsicElements {
489
+ slot: JSXBase.SlotAttributes;
490
+ a: JSXBase.AnchorHTMLAttributes<HTMLAnchorElement>;
491
+ abbr: JSXBase.HTMLAttributes;
492
+ address: JSXBase.HTMLAttributes;
493
+ area: JSXBase.AreaHTMLAttributes<HTMLAreaElement>;
494
+ article: JSXBase.HTMLAttributes;
495
+ aside: JSXBase.HTMLAttributes;
496
+ audio: JSXBase.AudioHTMLAttributes<HTMLAudioElement>;
497
+ b: JSXBase.HTMLAttributes;
498
+ base: JSXBase.BaseHTMLAttributes<HTMLBaseElement>;
499
+ bdi: JSXBase.HTMLAttributes;
500
+ bdo: JSXBase.HTMLAttributes;
501
+ big: JSXBase.HTMLAttributes;
502
+ blockquote: JSXBase.BlockquoteHTMLAttributes<HTMLQuoteElement>;
503
+ body: JSXBase.HTMLAttributes<HTMLBodyElement>;
504
+ br: JSXBase.HTMLAttributes<HTMLBRElement>;
505
+ button: JSXBase.ButtonHTMLAttributes<HTMLButtonElement>;
506
+ canvas: JSXBase.CanvasHTMLAttributes<HTMLCanvasElement>;
507
+ caption: JSXBase.HTMLAttributes<HTMLTableCaptionElement>;
508
+ cite: JSXBase.HTMLAttributes;
509
+ code: JSXBase.HTMLAttributes;
510
+ col: JSXBase.ColHTMLAttributes<HTMLTableColElement>;
511
+ colgroup: JSXBase.ColgroupHTMLAttributes<HTMLTableColElement>;
512
+ data: JSXBase.HTMLAttributes<HTMLDataElement>;
513
+ datalist: JSXBase.HTMLAttributes<HTMLDataListElement>;
514
+ dd: JSXBase.HTMLAttributes;
515
+ del: JSXBase.DelHTMLAttributes<HTMLModElement>;
516
+ details: JSXBase.DetailsHTMLAttributes<HTMLElement>;
517
+ dfn: JSXBase.HTMLAttributes;
518
+ dialog: JSXBase.DialogHTMLAttributes<HTMLDialogElement>;
519
+ div: JSXBase.HTMLAttributes<HTMLDivElement>;
520
+ dl: JSXBase.HTMLAttributes<HTMLDListElement>;
521
+ dt: JSXBase.HTMLAttributes;
522
+ em: JSXBase.HTMLAttributes;
523
+ embed: JSXBase.EmbedHTMLAttributes<HTMLEmbedElement>;
524
+ fieldset: JSXBase.FieldsetHTMLAttributes<HTMLFieldSetElement>;
525
+ figcaption: JSXBase.HTMLAttributes;
526
+ figure: JSXBase.HTMLAttributes;
527
+ footer: JSXBase.HTMLAttributes;
528
+ form: JSXBase.FormHTMLAttributes<HTMLFormElement>;
529
+ h1: JSXBase.HTMLAttributes<HTMLHeadingElement>;
530
+ h2: JSXBase.HTMLAttributes<HTMLHeadingElement>;
531
+ h3: JSXBase.HTMLAttributes<HTMLHeadingElement>;
532
+ h4: JSXBase.HTMLAttributes<HTMLHeadingElement>;
533
+ h5: JSXBase.HTMLAttributes<HTMLHeadingElement>;
534
+ h6: JSXBase.HTMLAttributes<HTMLHeadingElement>;
535
+ head: JSXBase.HTMLAttributes<HTMLHeadElement>;
536
+ header: JSXBase.HTMLAttributes;
537
+ hgroup: JSXBase.HTMLAttributes;
538
+ hr: JSXBase.HTMLAttributes<HTMLHRElement>;
539
+ html: JSXBase.HTMLAttributes<HTMLHtmlElement>;
540
+ i: JSXBase.HTMLAttributes;
541
+ iframe: JSXBase.IframeHTMLAttributes<HTMLIFrameElement>;
542
+ img: JSXBase.ImgHTMLAttributes<HTMLImageElement>;
543
+ input: JSXBase.InputHTMLAttributes<HTMLInputElement>;
544
+ ins: JSXBase.InsHTMLAttributes<HTMLModElement>;
545
+ kbd: JSXBase.HTMLAttributes;
546
+ keygen: JSXBase.KeygenHTMLAttributes<HTMLElement>;
547
+ label: JSXBase.LabelHTMLAttributes<HTMLLabelElement>;
548
+ legend: JSXBase.HTMLAttributes<HTMLLegendElement>;
549
+ li: JSXBase.LiHTMLAttributes<HTMLLIElement>;
550
+ link: JSXBase.LinkHTMLAttributes<HTMLLinkElement>;
551
+ main: JSXBase.HTMLAttributes;
552
+ map: JSXBase.MapHTMLAttributes<HTMLMapElement>;
553
+ mark: JSXBase.HTMLAttributes;
554
+ menu: JSXBase.MenuHTMLAttributes<HTMLMenuElement>;
555
+ menuitem: JSXBase.HTMLAttributes;
556
+ meta: JSXBase.MetaHTMLAttributes<HTMLMetaElement>;
557
+ meter: JSXBase.MeterHTMLAttributes<HTMLMeterElement>;
558
+ nav: JSXBase.HTMLAttributes;
559
+ noscript: JSXBase.HTMLAttributes;
560
+ object: JSXBase.ObjectHTMLAttributes<HTMLObjectElement>;
561
+ ol: JSXBase.OlHTMLAttributes<HTMLOListElement>;
562
+ optgroup: JSXBase.OptgroupHTMLAttributes<HTMLOptGroupElement>;
563
+ option: JSXBase.OptionHTMLAttributes<HTMLOptionElement>;
564
+ output: JSXBase.OutputHTMLAttributes<HTMLOutputElement>;
565
+ p: JSXBase.HTMLAttributes<HTMLParagraphElement>;
566
+ param: JSXBase.ParamHTMLAttributes<HTMLParamElement>;
567
+ picture: JSXBase.HTMLAttributes<HTMLPictureElement>;
568
+ pre: JSXBase.HTMLAttributes<HTMLPreElement>;
569
+ progress: JSXBase.ProgressHTMLAttributes<HTMLProgressElement>;
570
+ q: JSXBase.QuoteHTMLAttributes<HTMLQuoteElement>;
571
+ rp: JSXBase.HTMLAttributes;
572
+ rt: JSXBase.HTMLAttributes;
573
+ ruby: JSXBase.HTMLAttributes;
574
+ s: JSXBase.HTMLAttributes;
575
+ samp: JSXBase.HTMLAttributes;
576
+ script: JSXBase.ScriptHTMLAttributes<HTMLScriptElement>;
577
+ section: JSXBase.HTMLAttributes;
578
+ select: JSXBase.SelectHTMLAttributes<HTMLSelectElement>;
579
+ small: JSXBase.HTMLAttributes;
580
+ source: JSXBase.SourceHTMLAttributes<HTMLSourceElement>;
581
+ span: JSXBase.HTMLAttributes<HTMLSpanElement>;
582
+ strong: JSXBase.HTMLAttributes;
583
+ style: JSXBase.StyleHTMLAttributes<HTMLStyleElement>;
584
+ sub: JSXBase.HTMLAttributes;
585
+ summary: JSXBase.HTMLAttributes;
586
+ sup: JSXBase.HTMLAttributes;
587
+ table: JSXBase.TableHTMLAttributes<HTMLTableElement>;
588
+ tbody: JSXBase.HTMLAttributes<HTMLTableSectionElement>;
589
+ td: JSXBase.TdHTMLAttributes<HTMLTableDataCellElement>;
590
+ textarea: JSXBase.TextareaHTMLAttributes<HTMLTextAreaElement>;
591
+ tfoot: JSXBase.HTMLAttributes<HTMLTableSectionElement>;
592
+ th: JSXBase.ThHTMLAttributes<HTMLTableHeaderCellElement>;
593
+ thead: JSXBase.HTMLAttributes<HTMLTableSectionElement>;
594
+ time: JSXBase.TimeHTMLAttributes<HTMLTimeElement>;
595
+ title: JSXBase.HTMLAttributes<HTMLTitleElement>;
596
+ tr: JSXBase.HTMLAttributes<HTMLTableRowElement>;
597
+ track: JSXBase.TrackHTMLAttributes<HTMLTrackElement>;
598
+ u: JSXBase.HTMLAttributes;
599
+ ul: JSXBase.HTMLAttributes<HTMLUListElement>;
600
+ var: JSXBase.HTMLAttributes;
601
+ video: JSXBase.VideoHTMLAttributes<HTMLVideoElement>;
602
+ wbr: JSXBase.HTMLAttributes;
603
+ animate: JSXBase.SVGAttributes;
604
+ circle: JSXBase.SVGAttributes;
605
+ clipPath: JSXBase.SVGAttributes;
606
+ defs: JSXBase.SVGAttributes;
607
+ desc: JSXBase.SVGAttributes;
608
+ ellipse: JSXBase.SVGAttributes;
609
+ feBlend: JSXBase.SVGAttributes;
610
+ feColorMatrix: JSXBase.SVGAttributes;
611
+ feComponentTransfer: JSXBase.SVGAttributes;
612
+ feComposite: JSXBase.SVGAttributes;
613
+ feConvolveMatrix: JSXBase.SVGAttributes;
614
+ feDiffuseLighting: JSXBase.SVGAttributes;
615
+ feDisplacementMap: JSXBase.SVGAttributes;
616
+ feDistantLight: JSXBase.SVGAttributes;
617
+ feDropShadow: JSXBase.SVGAttributes;
618
+ feFlood: JSXBase.SVGAttributes;
619
+ feFuncA: JSXBase.SVGAttributes;
620
+ feFuncB: JSXBase.SVGAttributes;
621
+ feFuncG: JSXBase.SVGAttributes;
622
+ feFuncR: JSXBase.SVGAttributes;
623
+ feGaussianBlur: JSXBase.SVGAttributes;
624
+ feImage: JSXBase.SVGAttributes;
625
+ feMerge: JSXBase.SVGAttributes;
626
+ feMergeNode: JSXBase.SVGAttributes;
627
+ feMorphology: JSXBase.SVGAttributes;
628
+ feOffset: JSXBase.SVGAttributes;
629
+ fePointLight: JSXBase.SVGAttributes;
630
+ feSpecularLighting: JSXBase.SVGAttributes;
631
+ feSpotLight: JSXBase.SVGAttributes;
632
+ feTile: JSXBase.SVGAttributes;
633
+ feTurbulence: JSXBase.SVGAttributes;
634
+ filter: JSXBase.SVGAttributes;
635
+ foreignObject: JSXBase.SVGAttributes;
636
+ g: JSXBase.SVGAttributes;
637
+ image: JSXBase.SVGAttributes;
638
+ line: JSXBase.SVGAttributes;
639
+ linearGradient: JSXBase.SVGAttributes;
640
+ marker: JSXBase.SVGAttributes;
641
+ mask: JSXBase.SVGAttributes;
642
+ metadata: JSXBase.SVGAttributes;
643
+ path: JSXBase.SVGAttributes;
644
+ pattern: JSXBase.SVGAttributes;
645
+ polygon: JSXBase.SVGAttributes;
646
+ polyline: JSXBase.SVGAttributes;
647
+ radialGradient: JSXBase.SVGAttributes;
648
+ rect: JSXBase.SVGAttributes;
649
+ stop: JSXBase.SVGAttributes;
650
+ svg: JSXBase.SVGAttributes;
651
+ switch: JSXBase.SVGAttributes;
652
+ symbol: JSXBase.SVGAttributes;
653
+ text: JSXBase.SVGAttributes;
654
+ textPath: JSXBase.SVGAttributes;
655
+ tspan: JSXBase.SVGAttributes;
656
+ use: JSXBase.SVGAttributes;
657
+ view: JSXBase.SVGAttributes;
658
+ }
659
+ interface SlotAttributes {
660
+ name?: string;
661
+ slot?: string;
662
+ onSlotchange?: (event: Event) => void;
663
+ }
664
+ interface AnchorHTMLAttributes<T> extends HTMLAttributes<T> {
665
+ download?: any;
666
+ href?: string;
667
+ hrefLang?: string;
668
+ hreflang?: string;
669
+ media?: string;
670
+ rel?: string;
671
+ target?: string;
672
+ }
673
+ interface AudioHTMLAttributes<T> extends MediaHTMLAttributes<T> {
674
+ }
675
+ interface AreaHTMLAttributes<T> extends HTMLAttributes<T> {
676
+ alt?: string;
677
+ coords?: string;
678
+ download?: any;
679
+ href?: string;
680
+ hrefLang?: string;
681
+ hreflang?: string;
682
+ media?: string;
683
+ rel?: string;
684
+ shape?: string;
685
+ target?: string;
686
+ }
687
+ interface BaseHTMLAttributes<T> extends HTMLAttributes<T> {
688
+ href?: string;
689
+ target?: string;
690
+ }
691
+ interface BlockquoteHTMLAttributes<T> extends HTMLAttributes<T> {
692
+ cite?: string;
693
+ }
694
+ interface ButtonHTMLAttributes<T> extends HTMLAttributes<T> {
695
+ autoFocus?: boolean;
696
+ disabled?: boolean;
697
+ form?: string;
698
+ formAction?: string;
699
+ formaction?: string;
700
+ formEncType?: string;
701
+ formenctype?: string;
702
+ formMethod?: string;
703
+ formmethod?: string;
704
+ formNoValidate?: boolean;
705
+ formnovalidate?: boolean;
706
+ formTarget?: string;
707
+ formtarget?: string;
708
+ name?: string;
709
+ type?: string;
710
+ value?: string | string[] | number;
711
+ }
712
+ interface CanvasHTMLAttributes<T> extends HTMLAttributes<T> {
713
+ height?: number | string;
714
+ width?: number | string;
715
+ }
716
+ interface ColHTMLAttributes<T> extends HTMLAttributes<T> {
717
+ span?: number;
718
+ }
719
+ interface ColgroupHTMLAttributes<T> extends HTMLAttributes<T> {
720
+ span?: number;
721
+ }
722
+ interface DetailsHTMLAttributes<T> extends HTMLAttributes<T> {
723
+ open?: boolean;
724
+ onToggle?: (event: Event) => void;
725
+ }
726
+ interface DelHTMLAttributes<T> extends HTMLAttributes<T> {
727
+ cite?: string;
728
+ dateTime?: string;
729
+ datetime?: string;
730
+ }
731
+ interface DialogHTMLAttributes<T> extends HTMLAttributes<T> {
732
+ onClose?: (event: Event) => void;
733
+ open?: boolean;
734
+ returnValue?: string;
735
+ }
736
+ interface EmbedHTMLAttributes<T> extends HTMLAttributes<T> {
737
+ height?: number | string;
738
+ src?: string;
739
+ type?: string;
740
+ width?: number | string;
741
+ }
742
+ interface FieldsetHTMLAttributes<T> extends HTMLAttributes<T> {
743
+ disabled?: boolean;
744
+ form?: string;
745
+ name?: string;
746
+ }
747
+ interface FormHTMLAttributes<T> extends HTMLAttributes<T> {
748
+ acceptCharset?: string;
749
+ acceptcharset?: string;
750
+ action?: string;
751
+ autoComplete?: string;
752
+ autocomplete?: string;
753
+ encType?: string;
754
+ enctype?: string;
755
+ method?: string;
756
+ name?: string;
757
+ noValidate?: boolean;
758
+ novalidate?: boolean | string;
759
+ target?: string;
760
+ }
761
+ interface HtmlHTMLAttributes<T> extends HTMLAttributes<T> {
762
+ manifest?: string;
763
+ }
764
+ interface IframeHTMLAttributes<T> extends HTMLAttributes<T> {
765
+ allow?: string;
766
+ allowFullScreen?: boolean;
767
+ allowfullScreen?: string | boolean;
768
+ allowTransparency?: boolean;
769
+ allowtransparency?: string | boolean;
770
+ frameBorder?: number | string;
771
+ frameborder?: number | string;
772
+ importance?: 'low' | 'auto' | 'high';
773
+ height?: number | string;
774
+ loading?: 'lazy' | 'auto' | 'eager';
775
+ marginHeight?: number;
776
+ marginheight?: string | number;
777
+ marginWidth?: number;
778
+ marginwidth?: string | number;
779
+ name?: string;
780
+ referrerPolicy?: ReferrerPolicy;
781
+ sandbox?: string;
782
+ scrolling?: string;
783
+ seamless?: boolean;
784
+ src?: string;
785
+ srcDoc?: string;
786
+ srcdoc?: string;
787
+ width?: number | string;
788
+ }
789
+ interface ImgHTMLAttributes<T> extends HTMLAttributes<T> {
790
+ alt?: string;
791
+ decoding?: 'async' | 'auto' | 'sync';
792
+ importance?: 'low' | 'auto' | 'high';
793
+ height?: number | string;
794
+ loading?: 'lazy' | 'auto' | 'eager';
795
+ sizes?: string;
796
+ src?: string;
797
+ srcSet?: string;
798
+ srcset?: string;
799
+ useMap?: string;
800
+ usemap?: string;
801
+ width?: number | string;
802
+ }
803
+ interface InsHTMLAttributes<T> extends HTMLAttributes<T> {
804
+ cite?: string;
805
+ dateTime?: string;
806
+ datetime?: string;
807
+ }
808
+ interface InputHTMLAttributes<T> extends HTMLAttributes<T> {
809
+ accept?: string;
810
+ allowdirs?: boolean;
811
+ alt?: string;
812
+ autoCapitalize?: any;
813
+ autocapitalize?: any;
814
+ autoComplete?: string;
815
+ autocomplete?: string;
816
+ autoFocus?: boolean;
817
+ autofocus?: boolean | string;
818
+ capture?: string;
819
+ checked?: boolean;
820
+ crossOrigin?: string;
821
+ crossorigin?: string;
822
+ defaultChecked?: boolean;
823
+ defaultValue?: string;
824
+ dirName?: string;
825
+ disabled?: boolean;
826
+ files?: any;
827
+ form?: string;
828
+ formAction?: string;
829
+ formaction?: string;
830
+ formEncType?: string;
831
+ formenctype?: string;
832
+ formMethod?: string;
833
+ formmethod?: string;
834
+ formNoValidate?: boolean;
835
+ formnovalidate?: boolean;
836
+ formTarget?: string;
837
+ formtarget?: string;
838
+ height?: number | string;
839
+ indeterminate?: boolean;
840
+ list?: string;
841
+ max?: number | string;
842
+ maxLength?: number;
843
+ maxlength?: number | string;
844
+ min?: number | string;
845
+ minLength?: number;
846
+ minlength?: number | string;
847
+ multiple?: boolean;
848
+ name?: string;
849
+ pattern?: string;
850
+ placeholder?: string;
851
+ readOnly?: boolean;
852
+ readonly?: boolean | string;
853
+ required?: boolean;
854
+ selectionStart?: number | string;
855
+ selectionEnd?: number | string;
856
+ selectionDirection?: string;
857
+ size?: number;
858
+ src?: string;
859
+ step?: number | string;
860
+ type?: string;
861
+ value?: string | string[] | number;
862
+ valueAsDate?: any;
863
+ valueAsNumber?: any;
864
+ webkitdirectory?: boolean;
865
+ webkitEntries?: any;
866
+ width?: number | string;
867
+ }
868
+ interface KeygenHTMLAttributes<T> extends HTMLAttributes<T> {
869
+ autoFocus?: boolean;
870
+ autofocus?: boolean | string;
871
+ challenge?: string;
872
+ disabled?: boolean;
873
+ form?: string;
874
+ keyType?: string;
875
+ keytype?: string;
876
+ keyParams?: string;
877
+ keyparams?: string;
878
+ name?: string;
879
+ }
880
+ interface LabelHTMLAttributes<T> extends HTMLAttributes<T> {
881
+ form?: string;
882
+ htmlFor?: string;
883
+ htmlfor?: string;
884
+ }
885
+ interface LiHTMLAttributes<T> extends HTMLAttributes<T> {
886
+ value?: string | string[] | number;
887
+ }
888
+ interface LinkHTMLAttributes<T> extends HTMLAttributes<T> {
889
+ as?: string;
890
+ href?: string;
891
+ hrefLang?: string;
892
+ hreflang?: string;
893
+ importance?: 'low' | 'auto' | 'high';
894
+ integrity?: string;
895
+ media?: string;
896
+ rel?: string;
897
+ sizes?: string;
898
+ type?: string;
899
+ }
900
+ interface MapHTMLAttributes<T> extends HTMLAttributes<T> {
901
+ name?: string;
902
+ }
903
+ interface MenuHTMLAttributes<T> extends HTMLAttributes<T> {
904
+ type?: string;
905
+ }
906
+ interface MediaHTMLAttributes<T> extends HTMLAttributes<T> {
907
+ autoPlay?: boolean;
908
+ autoplay?: boolean | string;
909
+ controls?: boolean;
910
+ crossOrigin?: string;
911
+ crossorigin?: string;
912
+ loop?: boolean;
913
+ mediaGroup?: string;
914
+ mediagroup?: string;
915
+ muted?: boolean;
916
+ preload?: string;
917
+ src?: string;
918
+ onAbort?: (event: Event) => void;
919
+ onCanPlay?: (event: Event) => void;
920
+ onCanPlayThrough?: (event: Event) => void;
921
+ onDurationChange?: (event: Event) => void;
922
+ onEmptied?: (event: Event) => void;
923
+ onEnded?: (event: Event) => void;
924
+ onError?: (event: Event) => void;
925
+ onInterruptBegin?: (event: Event) => void;
926
+ onInterruptEnd?: (event: Event) => void;
927
+ onLoadedData?: (event: Event) => void;
928
+ onLoadedMetaData?: (event: Event) => void;
929
+ onLoadStart?: (event: Event) => void;
930
+ onMozAudioAvailable?: (event: Event) => void;
931
+ onPause?: (event: Event) => void;
932
+ onPlay?: (event: Event) => void;
933
+ onPlaying?: (event: Event) => void;
934
+ onProgress?: (event: Event) => void;
935
+ onRateChange?: (event: Event) => void;
936
+ onSeeked?: (event: Event) => void;
937
+ onSeeking?: (event: Event) => void;
938
+ onStalled?: (event: Event) => void;
939
+ onSuspend?: (event: Event) => void;
940
+ onTimeUpdate?: (event: Event) => void;
941
+ onVolumeChange?: (event: Event) => void;
942
+ onWaiting?: (event: Event) => void;
943
+ }
944
+ interface MetaHTMLAttributes<T> extends HTMLAttributes<T> {
945
+ charSet?: string;
946
+ charset?: string;
947
+ content?: string;
948
+ httpEquiv?: string;
949
+ httpequiv?: string;
950
+ name?: string;
951
+ }
952
+ interface MeterHTMLAttributes<T> extends HTMLAttributes<T> {
953
+ form?: string;
954
+ high?: number;
955
+ low?: number;
956
+ max?: number | string;
957
+ min?: number | string;
958
+ optimum?: number;
959
+ value?: string | string[] | number;
960
+ }
961
+ interface QuoteHTMLAttributes<T> extends HTMLAttributes<T> {
962
+ cite?: string;
963
+ }
964
+ interface ObjectHTMLAttributes<T> extends HTMLAttributes<T> {
965
+ classID?: string;
966
+ classid?: string;
967
+ data?: string;
968
+ form?: string;
969
+ height?: number | string;
970
+ name?: string;
971
+ type?: string;
972
+ useMap?: string;
973
+ usemap?: string;
974
+ width?: number | string;
975
+ wmode?: string;
976
+ }
977
+ interface OlHTMLAttributes<T> extends HTMLAttributes<T> {
978
+ reversed?: boolean;
979
+ start?: number;
980
+ }
981
+ interface OptgroupHTMLAttributes<T> extends HTMLAttributes<T> {
982
+ disabled?: boolean;
983
+ label?: string;
984
+ }
985
+ interface OptionHTMLAttributes<T> extends HTMLAttributes<T> {
986
+ disabled?: boolean;
987
+ label?: string;
988
+ selected?: boolean;
989
+ value?: string | string[] | number;
990
+ }
991
+ interface OutputHTMLAttributes<T> extends HTMLAttributes<T> {
992
+ form?: string;
993
+ htmlFor?: string;
994
+ htmlfor?: string;
995
+ name?: string;
996
+ }
997
+ interface ParamHTMLAttributes<T> extends HTMLAttributes<T> {
998
+ name?: string;
999
+ value?: string | string[] | number;
1000
+ }
1001
+ interface ProgressHTMLAttributes<T> extends HTMLAttributes<T> {
1002
+ max?: number | string;
1003
+ value?: string | string[] | number;
1004
+ }
1005
+ interface ScriptHTMLAttributes<T> extends HTMLAttributes<T> {
1006
+ async?: boolean;
1007
+ charSet?: string;
1008
+ charset?: string;
1009
+ crossOrigin?: string;
1010
+ crossorigin?: string;
1011
+ defer?: boolean;
1012
+ importance?: 'low' | 'auto' | 'high';
1013
+ integrity?: string;
1014
+ nonce?: string;
1015
+ src?: string;
1016
+ type?: string;
1017
+ }
1018
+ interface SelectHTMLAttributes<T> extends HTMLAttributes<T> {
1019
+ autoFocus?: boolean;
1020
+ disabled?: boolean;
1021
+ form?: string;
1022
+ multiple?: boolean;
1023
+ name?: string;
1024
+ required?: boolean;
1025
+ size?: number;
1026
+ autoComplete?: string;
1027
+ autocomplete?: string;
1028
+ }
1029
+ interface SourceHTMLAttributes<T> extends HTMLAttributes<T> {
1030
+ media?: string;
1031
+ sizes?: string;
1032
+ src?: string;
1033
+ srcSet?: string;
1034
+ type?: string;
1035
+ }
1036
+ interface StyleHTMLAttributes<T> extends HTMLAttributes<T> {
1037
+ media?: string;
1038
+ nonce?: string;
1039
+ scoped?: boolean;
1040
+ type?: string;
1041
+ }
1042
+ interface TableHTMLAttributes<T> extends HTMLAttributes<T> {
1043
+ cellPadding?: number | string;
1044
+ cellpadding?: number | string;
1045
+ cellSpacing?: number | string;
1046
+ cellspacing?: number | string;
1047
+ summary?: string;
1048
+ }
1049
+ interface TextareaHTMLAttributes<T> extends HTMLAttributes<T> {
1050
+ autoFocus?: boolean;
1051
+ autofocus?: boolean | string;
1052
+ cols?: number;
1053
+ disabled?: boolean;
1054
+ form?: string;
1055
+ maxLength?: number;
1056
+ maxlength?: number | string;
1057
+ minLength?: number;
1058
+ minlength?: number | string;
1059
+ name?: string;
1060
+ placeholder?: string;
1061
+ readOnly?: boolean;
1062
+ readonly?: boolean | string;
1063
+ required?: boolean;
1064
+ rows?: number;
1065
+ value?: string | string[] | number;
1066
+ wrap?: string;
1067
+ }
1068
+ interface TdHTMLAttributes<T> extends HTMLAttributes<T> {
1069
+ colSpan?: number;
1070
+ headers?: string;
1071
+ rowSpan?: number;
1072
+ }
1073
+ interface ThHTMLAttributes<T> extends HTMLAttributes<T> {
1074
+ abbr?: string;
1075
+ colSpan?: number;
1076
+ headers?: string;
1077
+ rowSpan?: number;
1078
+ rowspan?: number | string;
1079
+ scope?: string;
1080
+ }
1081
+ interface TimeHTMLAttributes<T> extends HTMLAttributes<T> {
1082
+ dateTime?: string;
1083
+ }
1084
+ interface TrackHTMLAttributes<T> extends HTMLAttributes<T> {
1085
+ default?: boolean;
1086
+ kind?: string;
1087
+ label?: string;
1088
+ src?: string;
1089
+ srcLang?: string;
1090
+ srclang?: string;
1091
+ }
1092
+ interface VideoHTMLAttributes<T> extends MediaHTMLAttributes<T> {
1093
+ height?: number | string;
1094
+ playsInline?: boolean;
1095
+ playsinline?: boolean | string;
1096
+ poster?: string;
1097
+ width?: number | string;
1098
+ }
1099
+ interface HTMLAttributes<T = HTMLElement> extends DOMAttributes<T> {
1100
+ innerHTML?: string;
1101
+ accessKey?: string;
1102
+ class?: string | {
1103
+ [className: string]: boolean;
1104
+ };
1105
+ contentEditable?: boolean | string;
1106
+ contenteditable?: boolean | string;
1107
+ contextMenu?: string;
1108
+ contextmenu?: string;
1109
+ dir?: string;
1110
+ draggable?: boolean;
1111
+ hidden?: boolean;
1112
+ id?: string;
1113
+ lang?: string;
1114
+ spellcheck?: 'true' | 'false' | any;
1115
+ style?: {
1116
+ [key: string]: string | undefined;
1117
+ };
1118
+ tabIndex?: number;
1119
+ tabindex?: number | string;
1120
+ title?: string;
1121
+ inputMode?: string;
1122
+ inputmode?: string;
1123
+ enterKeyHint?: string;
1124
+ enterkeyhint?: string;
1125
+ is?: string;
1126
+ radioGroup?: string;
1127
+ radiogroup?: string;
1128
+ role?: string;
1129
+ about?: string;
1130
+ datatype?: string;
1131
+ inlist?: any;
1132
+ prefix?: string;
1133
+ property?: string;
1134
+ resource?: string;
1135
+ typeof?: string;
1136
+ vocab?: string;
1137
+ autoCapitalize?: any;
1138
+ autocapitalize?: any;
1139
+ autoCorrect?: string;
1140
+ autocorrect?: string;
1141
+ autoSave?: string;
1142
+ autosave?: string;
1143
+ color?: string;
1144
+ itemProp?: string;
1145
+ itemprop?: string;
1146
+ itemScope?: boolean;
1147
+ itemscope?: boolean;
1148
+ itemType?: string;
1149
+ itemtype?: string;
1150
+ itemID?: string;
1151
+ itemid?: string;
1152
+ itemRef?: string;
1153
+ itemref?: string;
1154
+ results?: number;
1155
+ security?: string;
1156
+ unselectable?: boolean;
1157
+ }
1158
+ interface SVGAttributes<T = SVGElement> extends DOMAttributes<T> {
1159
+ 'class'?: string | {
1160
+ [className: string]: boolean;
1161
+ };
1162
+ 'color'?: string;
1163
+ 'height'?: number | string;
1164
+ 'id'?: string;
1165
+ 'lang'?: string;
1166
+ 'max'?: number | string;
1167
+ 'media'?: string;
1168
+ 'method'?: string;
1169
+ 'min'?: number | string;
1170
+ 'name'?: string;
1171
+ 'style'?: {
1172
+ [key: string]: string | undefined;
1173
+ };
1174
+ 'target'?: string;
1175
+ 'type'?: string;
1176
+ 'width'?: number | string;
1177
+ 'role'?: string;
1178
+ 'tabindex'?: number;
1179
+ 'accent-height'?: number | string;
1180
+ 'accumulate'?: 'none' | 'sum';
1181
+ 'additive'?: 'replace' | 'sum';
1182
+ 'alignment-baseline'?: 'auto' | 'baseline' | 'before-edge' | 'text-before-edge' | 'middle' | 'central' | 'after-edge' | 'text-after-edge' | 'ideographic' | 'alphabetic' | 'hanging' | 'mathematical' | 'inherit';
1183
+ 'allowReorder'?: 'no' | 'yes';
1184
+ 'alphabetic'?: number | string;
1185
+ 'amplitude'?: number | string;
1186
+ 'arabic-form'?: 'initial' | 'medial' | 'terminal' | 'isolated';
1187
+ 'ascent'?: number | string;
1188
+ 'attributeName'?: string;
1189
+ 'attributeType'?: string;
1190
+ 'autoReverse'?: number | string;
1191
+ 'azimuth'?: number | string;
1192
+ 'baseFrequency'?: number | string;
1193
+ 'baseline-shift'?: number | string;
1194
+ 'baseProfile'?: number | string;
1195
+ 'bbox'?: number | string;
1196
+ 'begin'?: number | string;
1197
+ 'bias'?: number | string;
1198
+ 'by'?: number | string;
1199
+ 'calcMode'?: number | string;
1200
+ 'cap-height'?: number | string;
1201
+ 'clip'?: number | string;
1202
+ 'clip-path'?: string;
1203
+ 'clipPathUnits'?: number | string;
1204
+ 'clip-rule'?: number | string;
1205
+ 'color-interpolation'?: number | string;
1206
+ 'color-interpolation-filters'?: 'auto' | 's-rGB' | 'linear-rGB' | 'inherit';
1207
+ 'color-profile'?: number | string;
1208
+ 'color-rendering'?: number | string;
1209
+ 'contentScriptType'?: number | string;
1210
+ 'contentStyleType'?: number | string;
1211
+ 'cursor'?: number | string;
1212
+ 'cx'?: number | string;
1213
+ 'cy'?: number | string;
1214
+ 'd'?: string;
1215
+ 'decelerate'?: number | string;
1216
+ 'descent'?: number | string;
1217
+ 'diffuseConstant'?: number | string;
1218
+ 'direction'?: number | string;
1219
+ 'display'?: number | string;
1220
+ 'divisor'?: number | string;
1221
+ 'dominant-baseline'?: number | string;
1222
+ 'dur'?: number | string;
1223
+ 'dx'?: number | string;
1224
+ 'dy'?: number | string;
1225
+ 'edge-mode'?: number | string;
1226
+ 'elevation'?: number | string;
1227
+ 'enable-background'?: number | string;
1228
+ 'end'?: number | string;
1229
+ 'exponent'?: number | string;
1230
+ 'externalResourcesRequired'?: number | string;
1231
+ 'fill'?: string;
1232
+ 'fill-opacity'?: number | string;
1233
+ 'fill-rule'?: 'nonzero' | 'evenodd' | 'inherit';
1234
+ 'filter'?: string;
1235
+ 'filterRes'?: number | string;
1236
+ 'filterUnits'?: number | string;
1237
+ 'flood-color'?: number | string;
1238
+ 'flood-opacity'?: number | string;
1239
+ 'focusable'?: number | string;
1240
+ 'font-family'?: string;
1241
+ 'font-size'?: number | string;
1242
+ 'font-size-adjust'?: number | string;
1243
+ 'font-stretch'?: number | string;
1244
+ 'font-style'?: number | string;
1245
+ 'font-variant'?: number | string;
1246
+ 'font-weight'?: number | string;
1247
+ 'format'?: number | string;
1248
+ 'from'?: number | string;
1249
+ 'fx'?: number | string;
1250
+ 'fy'?: number | string;
1251
+ 'g1'?: number | string;
1252
+ 'g2'?: number | string;
1253
+ 'glyph-name'?: number | string;
1254
+ 'glyph-orientation-horizontal'?: number | string;
1255
+ 'glyph-orientation-vertical'?: number | string;
1256
+ 'glyphRef'?: number | string;
1257
+ 'gradientTransform'?: string;
1258
+ 'gradientUnits'?: string;
1259
+ 'hanging'?: number | string;
1260
+ 'horiz-adv-x'?: number | string;
1261
+ 'horiz-origin-x'?: number | string;
1262
+ 'href'?: string;
1263
+ 'ideographic'?: number | string;
1264
+ 'image-rendering'?: number | string;
1265
+ 'in2'?: number | string;
1266
+ 'in'?: string;
1267
+ 'intercept'?: number | string;
1268
+ 'k1'?: number | string;
1269
+ 'k2'?: number | string;
1270
+ 'k3'?: number | string;
1271
+ 'k4'?: number | string;
1272
+ 'k'?: number | string;
1273
+ 'kernelMatrix'?: number | string;
1274
+ 'kernelUnitLength'?: number | string;
1275
+ 'kerning'?: number | string;
1276
+ 'keyPoints'?: number | string;
1277
+ 'keySplines'?: number | string;
1278
+ 'keyTimes'?: number | string;
1279
+ 'lengthAdjust'?: number | string;
1280
+ 'letter-spacing'?: number | string;
1281
+ 'lighting-color'?: number | string;
1282
+ 'limitingConeAngle'?: number | string;
1283
+ 'local'?: number | string;
1284
+ 'marker-end'?: string;
1285
+ 'markerHeight'?: number | string;
1286
+ 'marker-mid'?: string;
1287
+ 'marker-start'?: string;
1288
+ 'markerUnits'?: number | string;
1289
+ 'markerWidth'?: number | string;
1290
+ 'mask'?: string;
1291
+ 'maskContentUnits'?: number | string;
1292
+ 'maskUnits'?: number | string;
1293
+ 'mathematical'?: number | string;
1294
+ 'mode'?: number | string;
1295
+ 'numOctaves'?: number | string;
1296
+ 'offset'?: number | string;
1297
+ 'opacity'?: number | string;
1298
+ 'operator'?: number | string;
1299
+ 'order'?: number | string;
1300
+ 'orient'?: number | string;
1301
+ 'orientation'?: number | string;
1302
+ 'origin'?: number | string;
1303
+ 'overflow'?: number | string;
1304
+ 'overline-position'?: number | string;
1305
+ 'overline-thickness'?: number | string;
1306
+ 'paint-order'?: number | string;
1307
+ 'panose1'?: number | string;
1308
+ 'pathLength'?: number | string;
1309
+ 'patternContentUnits'?: string;
1310
+ 'patternTransform'?: number | string;
1311
+ 'patternUnits'?: string;
1312
+ 'pointer-events'?: number | string;
1313
+ 'points'?: string;
1314
+ 'pointsAtX'?: number | string;
1315
+ 'pointsAtY'?: number | string;
1316
+ 'pointsAtZ'?: number | string;
1317
+ 'preserveAlpha'?: number | string;
1318
+ 'preserveAspectRatio'?: string;
1319
+ 'primitiveUnits'?: number | string;
1320
+ 'r'?: number | string;
1321
+ 'radius'?: number | string;
1322
+ 'refX'?: number | string;
1323
+ 'refY'?: number | string;
1324
+ 'rendering-intent'?: number | string;
1325
+ 'repeatCount'?: number | string;
1326
+ 'repeatDur'?: number | string;
1327
+ 'requiredextensions'?: number | string;
1328
+ 'requiredFeatures'?: number | string;
1329
+ 'restart'?: number | string;
1330
+ 'result'?: string;
1331
+ 'rotate'?: number | string;
1332
+ 'rx'?: number | string;
1333
+ 'ry'?: number | string;
1334
+ 'scale'?: number | string;
1335
+ 'seed'?: number | string;
1336
+ 'shape-rendering'?: number | string;
1337
+ 'slope'?: number | string;
1338
+ 'spacing'?: number | string;
1339
+ 'specularConstant'?: number | string;
1340
+ 'specularExponent'?: number | string;
1341
+ 'speed'?: number | string;
1342
+ 'spreadMethod'?: string;
1343
+ 'startOffset'?: number | string;
1344
+ 'stdDeviation'?: number | string;
1345
+ 'stemh'?: number | string;
1346
+ 'stemv'?: number | string;
1347
+ 'stitchTiles'?: number | string;
1348
+ 'stop-color'?: string;
1349
+ 'stop-opacity'?: number | string;
1350
+ 'strikethrough-position'?: number | string;
1351
+ 'strikethrough-thickness'?: number | string;
1352
+ 'string'?: number | string;
1353
+ 'stroke'?: string;
1354
+ 'stroke-dasharray'?: string | number;
1355
+ 'stroke-dashoffset'?: string | number;
1356
+ 'stroke-linecap'?: 'butt' | 'round' | 'square' | 'inherit';
1357
+ 'stroke-linejoin'?: 'miter' | 'round' | 'bevel' | 'inherit';
1358
+ 'stroke-miterlimit'?: string;
1359
+ 'stroke-opacity'?: number | string;
1360
+ 'stroke-width'?: number | string;
1361
+ 'surfaceScale'?: number | string;
1362
+ 'systemLanguage'?: number | string;
1363
+ 'tableValues'?: number | string;
1364
+ 'targetX'?: number | string;
1365
+ 'targetY'?: number | string;
1366
+ 'text-anchor'?: string;
1367
+ 'text-decoration'?: number | string;
1368
+ 'textLength'?: number | string;
1369
+ 'text-rendering'?: number | string;
1370
+ 'to'?: number | string;
1371
+ 'transform'?: string;
1372
+ 'u1'?: number | string;
1373
+ 'u2'?: number | string;
1374
+ 'underline-position'?: number | string;
1375
+ 'underline-thickness'?: number | string;
1376
+ 'unicode'?: number | string;
1377
+ 'unicode-bidi'?: number | string;
1378
+ 'unicode-range'?: number | string;
1379
+ 'units-per-em'?: number | string;
1380
+ 'v-alphabetic'?: number | string;
1381
+ 'values'?: string;
1382
+ 'vector-effect'?: number | string;
1383
+ 'version'?: string;
1384
+ 'vert-adv-y'?: number | string;
1385
+ 'vert-origin-x'?: number | string;
1386
+ 'vert-origin-y'?: number | string;
1387
+ 'v-hanging'?: number | string;
1388
+ 'v-ideographic'?: number | string;
1389
+ 'viewBox'?: string;
1390
+ 'viewTarget'?: number | string;
1391
+ 'visibility'?: number | string;
1392
+ 'v-mathematical'?: number | string;
1393
+ 'widths'?: number | string;
1394
+ 'word-spacing'?: number | string;
1395
+ 'writing-mode'?: number | string;
1396
+ 'x1'?: number | string;
1397
+ 'x2'?: number | string;
1398
+ 'x'?: number | string;
1399
+ 'x-channel-selector'?: string;
1400
+ 'x-height'?: number | string;
1401
+ 'xlinkActuate'?: string;
1402
+ 'xlinkArcrole'?: string;
1403
+ 'xlinkHref'?: string;
1404
+ 'xlinkRole'?: string;
1405
+ 'xlinkShow'?: string;
1406
+ 'xlinkTitle'?: string;
1407
+ 'xlinkType'?: string;
1408
+ 'xmlBase'?: string;
1409
+ 'xmlLang'?: string;
1410
+ 'xmlns'?: string;
1411
+ 'xmlSpace'?: string;
1412
+ 'y1'?: number | string;
1413
+ 'y2'?: number | string;
1414
+ 'y'?: number | string;
1415
+ 'yChannelSelector'?: string;
1416
+ 'z'?: number | string;
1417
+ 'zoomAndPan'?: string;
1418
+ }
1419
+ interface DOMAttributes<T = Element> {
1420
+ key?: string | number;
1421
+ ref?: (elm?: T) => void;
1422
+ slot?: string;
1423
+ part?: string;
1424
+ exportparts?: string;
1425
+ onCopy?: (event: ClipboardEvent) => void;
1426
+ onCopyCapture?: (event: ClipboardEvent) => void;
1427
+ onCut?: (event: ClipboardEvent) => void;
1428
+ onCutCapture?: (event: ClipboardEvent) => void;
1429
+ onPaste?: (event: ClipboardEvent) => void;
1430
+ onPasteCapture?: (event: ClipboardEvent) => void;
1431
+ onCompositionEnd?: (event: CompositionEvent) => void;
1432
+ onCompositionEndCapture?: (event: CompositionEvent) => void;
1433
+ onCompositionStart?: (event: CompositionEvent) => void;
1434
+ onCompositionStartCapture?: (event: CompositionEvent) => void;
1435
+ onCompositionUpdate?: (event: CompositionEvent) => void;
1436
+ onCompositionUpdateCapture?: (event: CompositionEvent) => void;
1437
+ onFocus?: (event: FocusEvent) => void;
1438
+ onFocusCapture?: (event: FocusEvent) => void;
1439
+ onFocusIn?: (event: FocusEvent) => void;
1440
+ onFocusInCapture?: (event: FocusEvent) => void;
1441
+ onFocusOut?: (event: FocusEvent) => void;
1442
+ onFocusOutCapture?: (event: FocusEvent) => void;
1443
+ onBlur?: (event: FocusEvent) => void;
1444
+ onBlurCapture?: (event: FocusEvent) => void;
1445
+ onChange?: (event: Event) => void;
1446
+ onChangeCapture?: (event: Event) => void;
1447
+ onInput?: (event: Event) => void;
1448
+ onInputCapture?: (event: Event) => void;
1449
+ onReset?: (event: Event) => void;
1450
+ onResetCapture?: (event: Event) => void;
1451
+ onSubmit?: (event: Event) => void;
1452
+ onSubmitCapture?: (event: Event) => void;
1453
+ onInvalid?: (event: Event) => void;
1454
+ onInvalidCapture?: (event: Event) => void;
1455
+ onLoad?: (event: Event) => void;
1456
+ onLoadCapture?: (event: Event) => void;
1457
+ onError?: (event: Event) => void;
1458
+ onErrorCapture?: (event: Event) => void;
1459
+ onKeyDown?: (event: KeyboardEvent) => void;
1460
+ onKeyDownCapture?: (event: KeyboardEvent) => void;
1461
+ onKeyPress?: (event: KeyboardEvent) => void;
1462
+ onKeyPressCapture?: (event: KeyboardEvent) => void;
1463
+ onKeyUp?: (event: KeyboardEvent) => void;
1464
+ onKeyUpCapture?: (event: KeyboardEvent) => void;
1465
+ onAuxClick?: (event: MouseEvent) => void;
1466
+ onClick?: (event: MouseEvent) => void;
1467
+ onClickCapture?: (event: MouseEvent) => void;
1468
+ onContextMenu?: (event: MouseEvent) => void;
1469
+ onContextMenuCapture?: (event: MouseEvent) => void;
1470
+ onDblClick?: (event: MouseEvent) => void;
1471
+ onDblClickCapture?: (event: MouseEvent) => void;
1472
+ onDrag?: (event: DragEvent) => void;
1473
+ onDragCapture?: (event: DragEvent) => void;
1474
+ onDragEnd?: (event: DragEvent) => void;
1475
+ onDragEndCapture?: (event: DragEvent) => void;
1476
+ onDragEnter?: (event: DragEvent) => void;
1477
+ onDragEnterCapture?: (event: DragEvent) => void;
1478
+ onDragExit?: (event: DragEvent) => void;
1479
+ onDragExitCapture?: (event: DragEvent) => void;
1480
+ onDragLeave?: (event: DragEvent) => void;
1481
+ onDragLeaveCapture?: (event: DragEvent) => void;
1482
+ onDragOver?: (event: DragEvent) => void;
1483
+ onDragOverCapture?: (event: DragEvent) => void;
1484
+ onDragStart?: (event: DragEvent) => void;
1485
+ onDragStartCapture?: (event: DragEvent) => void;
1486
+ onDrop?: (event: DragEvent) => void;
1487
+ onDropCapture?: (event: DragEvent) => void;
1488
+ onMouseDown?: (event: MouseEvent) => void;
1489
+ onMouseDownCapture?: (event: MouseEvent) => void;
1490
+ onMouseEnter?: (event: MouseEvent) => void;
1491
+ onMouseLeave?: (event: MouseEvent) => void;
1492
+ onMouseMove?: (event: MouseEvent) => void;
1493
+ onMouseMoveCapture?: (event: MouseEvent) => void;
1494
+ onMouseOut?: (event: MouseEvent) => void;
1495
+ onMouseOutCapture?: (event: MouseEvent) => void;
1496
+ onMouseOver?: (event: MouseEvent) => void;
1497
+ onMouseOverCapture?: (event: MouseEvent) => void;
1498
+ onMouseUp?: (event: MouseEvent) => void;
1499
+ onMouseUpCapture?: (event: MouseEvent) => void;
1500
+ onTouchCancel?: (event: TouchEvent) => void;
1501
+ onTouchCancelCapture?: (event: TouchEvent) => void;
1502
+ onTouchEnd?: (event: TouchEvent) => void;
1503
+ onTouchEndCapture?: (event: TouchEvent) => void;
1504
+ onTouchMove?: (event: TouchEvent) => void;
1505
+ onTouchMoveCapture?: (event: TouchEvent) => void;
1506
+ onTouchStart?: (event: TouchEvent) => void;
1507
+ onTouchStartCapture?: (event: TouchEvent) => void;
1508
+ onPointerDown?: (event: PointerEvent) => void;
1509
+ onPointerDownCapture?: (event: PointerEvent) => void;
1510
+ onPointerMove?: (event: PointerEvent) => void;
1511
+ onPointerMoveCapture?: (event: PointerEvent) => void;
1512
+ onPointerUp?: (event: PointerEvent) => void;
1513
+ onPointerUpCapture?: (event: PointerEvent) => void;
1514
+ onPointerCancel?: (event: PointerEvent) => void;
1515
+ onPointerCancelCapture?: (event: PointerEvent) => void;
1516
+ onPointerEnter?: (event: PointerEvent) => void;
1517
+ onPointerEnterCapture?: (event: PointerEvent) => void;
1518
+ onPointerLeave?: (event: PointerEvent) => void;
1519
+ onPointerLeaveCapture?: (event: PointerEvent) => void;
1520
+ onPointerOver?: (event: PointerEvent) => void;
1521
+ onPointerOverCapture?: (event: PointerEvent) => void;
1522
+ onPointerOut?: (event: PointerEvent) => void;
1523
+ onPointerOutCapture?: (event: PointerEvent) => void;
1524
+ onGotPointerCapture?: (event: PointerEvent) => void;
1525
+ onGotPointerCaptureCapture?: (event: PointerEvent) => void;
1526
+ onLostPointerCapture?: (event: PointerEvent) => void;
1527
+ onLostPointerCaptureCapture?: (event: PointerEvent) => void;
1528
+ onScroll?: (event: UIEvent) => void;
1529
+ onScrollCapture?: (event: UIEvent) => void;
1530
+ onWheel?: (event: WheelEvent) => void;
1531
+ onWheelCapture?: (event: WheelEvent) => void;
1532
+ onAnimationStart?: (event: AnimationEvent) => void;
1533
+ onAnimationStartCapture?: (event: AnimationEvent) => void;
1534
+ onAnimationEnd?: (event: AnimationEvent) => void;
1535
+ onAnimationEndCapture?: (event: AnimationEvent) => void;
1536
+ onAnimationIteration?: (event: AnimationEvent) => void;
1537
+ onAnimationIterationCapture?: (event: AnimationEvent) => void;
1538
+ onTransitionEnd?: (event: TransitionEvent) => void;
1539
+ onTransitionEndCapture?: (event: TransitionEvent) => void;
1540
+ }
1541
+ }
1542
+ export interface CustomElementsDefineOptions {
1543
+ exclude?: string[];
1544
+ resourcesUrl?: string;
1545
+ syncQueue?: boolean;
1546
+ transformTagName?: (tagName: string) => string;
1547
+ jmp?: (c: Function) => any;
1548
+ raf?: (c: FrameRequestCallback) => number;
1549
+ ael?: (el: EventTarget, eventName: string, listener: EventListenerOrEventListenerObject, options: boolean | AddEventListenerOptions) => void;
1550
+ rel?: (el: EventTarget, eventName: string, listener: EventListenerOrEventListenerObject, options: boolean | AddEventListenerOptions) => void;
1551
+ ce?: (eventName: string, opts?: any) => CustomEvent;
1552
+ }