@ircam/comote-helpers 0.3.1 → 1.0.1

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 (204) hide show
  1. package/.babelrc +5 -0
  2. package/.github/workflows/main.yml +3 -3
  3. package/.history/.gitignore_20250415160643 +6 -0
  4. package/.history/.gitignore_20250415160723 +6 -0
  5. package/.history/examples/simple-webview/package-lock_20250415130242.json +5109 -0
  6. package/.history/examples/simple-webview/package-lock_20250416103557.json +5109 -0
  7. package/.history/examples/simple-webview/package_20250415130704.json +26 -0
  8. package/.history/examples/simple-webview/package_20250415184837.json +26 -0
  9. package/.history/examples/simple-webview/package_20250415190300.json +23 -0
  10. package/.history/examples/simple-webview/src/server_20250415105733.js +20 -0
  11. package/.history/examples/simple-webview/src/server_20250415184604.js +20 -0
  12. package/.history/examples/soundworks/package_20250415132431.json +35 -0
  13. package/.history/examples/soundworks/package_20250416105956.json +35 -0
  14. package/.history/max/CoMote/examples/simple-webview/package_20250415184836.json +26 -0
  15. package/.history/max/CoMote/examples/simple-webview/package_20250415185949.json +23 -0
  16. package/.history/max/CoMote/examples/simple-webview/package_20250415185950.json +23 -0
  17. package/.history/max/CoMote/package-info_20241018173608.json +41 -0
  18. package/.history/max/CoMote/package-info_20250416105743.json +27 -0
  19. package/.history/max/CoMote/package-info_20250416105826.json +27 -0
  20. package/.history/max/CoMote/source/comote-connect/package_20250415132759.json +19 -0
  21. package/.history/max/CoMote/source/comote-connect/package_20250416110158.json +19 -0
  22. package/.history/max/CoMote/source/comote-connect/server_20250414175059.js +193 -0
  23. package/.history/max/CoMote/source/comote-connect/server_20250415180549.js +193 -0
  24. package/.history/package_20250415143437.json +26 -0
  25. package/.history/package_20250416105907.json +26 -0
  26. package/LICENSE +2 -2
  27. package/examples/simple-webview/README.md +10 -0
  28. package/examples/simple-webview/build/comote-simple-webview-server.js +44 -0
  29. package/examples/simple-webview/package-lock.json +5109 -0
  30. package/examples/simple-webview/package.json +23 -0
  31. package/examples/simple-webview/public/favicon.ico +0 -0
  32. package/examples/simple-webview/public/index.html +13 -0
  33. package/examples/simple-webview/public/index.mjs +3623 -0
  34. package/examples/simple-webview/public/styles.css +99 -0
  35. package/examples/simple-webview/src/client.js +35 -0
  36. package/examples/simple-webview/src/server.js +20 -0
  37. package/examples/soundworks/.build/clients/components/sw-audit.js +64 -0
  38. package/examples/soundworks/.build/clients/components/sw-audit.js.map +1 -0
  39. package/examples/soundworks/.build/clients/components/sw-credits.js +73 -0
  40. package/examples/soundworks/.build/clients/components/sw-credits.js.map +1 -0
  41. package/examples/soundworks/.build/clients/player/.editorbackup/PlayerExperience.js~ +131 -0
  42. package/examples/soundworks/.build/clients/player/index.js +116 -0
  43. package/examples/soundworks/.build/clients/player/index.js.map +1 -0
  44. package/examples/soundworks/.build/clients/styles/app.scss +79 -0
  45. package/examples/soundworks/.build/clients/styles/normalize.scss +359 -0
  46. package/examples/soundworks/.build/clients/webview/index.js +72 -0
  47. package/examples/soundworks/.build/clients/webview/index.js.map +1 -0
  48. package/examples/soundworks/.build/public/css/app.css +76 -0
  49. package/examples/soundworks/.build/public/css/app.css.map +1 -0
  50. package/examples/soundworks/.build/public/css/normalize.css +321 -0
  51. package/examples/soundworks/.build/public/css/normalize.css.map +1 -0
  52. package/examples/soundworks/.build/public/player.js +98098 -0
  53. package/examples/soundworks/.build/public/player.js.map +1 -0
  54. package/examples/soundworks/.build/public/webview.js +50725 -0
  55. package/examples/soundworks/.build/public/webview.js.map +1 -0
  56. package/examples/soundworks/.build/server/index.js +57 -0
  57. package/examples/soundworks/.build/server/index.js.map +1 -0
  58. package/examples/soundworks/.build/server/schemas/.gitkeep +1 -0
  59. package/examples/soundworks/.build/server/schemas/global.js +19 -0
  60. package/examples/soundworks/.build/server/schemas/global.js.map +1 -0
  61. package/examples/soundworks/.build/server/tmpl/default.tmpl +27 -0
  62. package/examples/soundworks/.build/utils/catch-unhandled-errors.js +9 -0
  63. package/examples/soundworks/.build/utils/catch-unhandled-errors.js.map +1 -0
  64. package/examples/soundworks/.editorconfig +12 -0
  65. package/examples/soundworks/.eslintrc +3 -0
  66. package/examples/soundworks/.soundworks +7 -0
  67. package/examples/soundworks/.vendors/public/webcomponentsjs/CHANGELOG.md +76 -0
  68. package/examples/soundworks/.vendors/public/webcomponentsjs/LICENSE.md +19 -0
  69. package/examples/soundworks/.vendors/public/webcomponentsjs/README.md +259 -0
  70. package/examples/soundworks/.vendors/public/webcomponentsjs/bundles/webcomponents-ce.js +63 -0
  71. package/examples/soundworks/.vendors/public/webcomponentsjs/bundles/webcomponents-ce.js.map +1 -0
  72. package/examples/soundworks/.vendors/public/webcomponentsjs/bundles/webcomponents-pf_dom.js +62 -0
  73. package/examples/soundworks/.vendors/public/webcomponentsjs/bundles/webcomponents-pf_dom.js.map +1 -0
  74. package/examples/soundworks/.vendors/public/webcomponentsjs/bundles/webcomponents-pf_js.js +95 -0
  75. package/examples/soundworks/.vendors/public/webcomponentsjs/bundles/webcomponents-pf_js.js.map +1 -0
  76. package/examples/soundworks/.vendors/public/webcomponentsjs/bundles/webcomponents-sd-ce-pf.js +374 -0
  77. package/examples/soundworks/.vendors/public/webcomponentsjs/bundles/webcomponents-sd-ce-pf.js.map +1 -0
  78. package/examples/soundworks/.vendors/public/webcomponentsjs/bundles/webcomponents-sd-ce.js +240 -0
  79. package/examples/soundworks/.vendors/public/webcomponentsjs/bundles/webcomponents-sd-ce.js.map +1 -0
  80. package/examples/soundworks/.vendors/public/webcomponentsjs/bundles/webcomponents-sd.js +196 -0
  81. package/examples/soundworks/.vendors/public/webcomponentsjs/bundles/webcomponents-sd.js.map +1 -0
  82. package/examples/soundworks/.vendors/public/webcomponentsjs/custom-elements-es5-adapter.js +15 -0
  83. package/examples/soundworks/.vendors/public/webcomponentsjs/package.json +51 -0
  84. package/examples/soundworks/.vendors/public/webcomponentsjs/src/entrypoints/custom-elements-es5-adapter-index.js +16 -0
  85. package/examples/soundworks/.vendors/public/webcomponentsjs/src/entrypoints/webcomponents-bundle-index.js +55 -0
  86. package/examples/soundworks/.vendors/public/webcomponentsjs/src/entrypoints/webcomponents-ce-index.js +17 -0
  87. package/examples/soundworks/.vendors/public/webcomponentsjs/src/entrypoints/webcomponents-pf_dom-index.js +19 -0
  88. package/examples/soundworks/.vendors/public/webcomponentsjs/src/entrypoints/webcomponents-pf_js-index.js +13 -0
  89. package/examples/soundworks/.vendors/public/webcomponentsjs/src/entrypoints/webcomponents-sd-ce-index.js +19 -0
  90. package/examples/soundworks/.vendors/public/webcomponentsjs/src/entrypoints/webcomponents-sd-ce-pf-index.js +25 -0
  91. package/examples/soundworks/.vendors/public/webcomponentsjs/src/entrypoints/webcomponents-sd-index.js +18 -0
  92. package/examples/soundworks/.vendors/public/webcomponentsjs/src/flag-parser.js +69 -0
  93. package/examples/soundworks/.vendors/public/webcomponentsjs/src/platform/baseuri.js +28 -0
  94. package/examples/soundworks/.vendors/public/webcomponentsjs/src/platform/child-node/after.js +47 -0
  95. package/examples/soundworks/.vendors/public/webcomponentsjs/src/platform/child-node/before.js +40 -0
  96. package/examples/soundworks/.vendors/public/webcomponentsjs/src/platform/child-node/index.js +14 -0
  97. package/examples/soundworks/.vendors/public/webcomponentsjs/src/platform/child-node/remove.js +37 -0
  98. package/examples/soundworks/.vendors/public/webcomponentsjs/src/platform/child-node/replace-with.js +42 -0
  99. package/examples/soundworks/.vendors/public/webcomponentsjs/src/platform/custom-event.js +79 -0
  100. package/examples/soundworks/.vendors/public/webcomponentsjs/src/platform/es6-misc.js +38 -0
  101. package/examples/soundworks/.vendors/public/webcomponentsjs/src/platform/event-listener-options.js +122 -0
  102. package/examples/soundworks/.vendors/public/webcomponentsjs/src/platform/get-attribute-names.js +27 -0
  103. package/examples/soundworks/.vendors/public/webcomponentsjs/src/platform/matches.js +21 -0
  104. package/examples/soundworks/.vendors/public/webcomponentsjs/src/platform/parent-node/append.js +31 -0
  105. package/examples/soundworks/.vendors/public/webcomponentsjs/src/platform/parent-node/index.js +13 -0
  106. package/examples/soundworks/.vendors/public/webcomponentsjs/src/platform/parent-node/prepend.js +42 -0
  107. package/examples/soundworks/.vendors/public/webcomponentsjs/src/platform/parent-node/replace-children.js +45 -0
  108. package/examples/soundworks/.vendors/public/webcomponentsjs/src/platform/promise.js +50 -0
  109. package/examples/soundworks/.vendors/public/webcomponentsjs/src/platform/svg-element-class-list.js +28 -0
  110. package/examples/soundworks/.vendors/public/webcomponentsjs/src/platform/symbol.js +64 -0
  111. package/examples/soundworks/.vendors/public/webcomponentsjs/src/platform/toggle-attribute.js +39 -0
  112. package/examples/soundworks/.vendors/public/webcomponentsjs/src/unresolved.js +32 -0
  113. package/examples/soundworks/.vendors/public/webcomponentsjs/webcomponents-bundle.d.ts +175 -0
  114. package/examples/soundworks/.vendors/public/webcomponentsjs/webcomponents-bundle.js +384 -0
  115. package/examples/soundworks/.vendors/public/webcomponentsjs/webcomponents-bundle.js.map +1 -0
  116. package/examples/soundworks/.vendors/public/webcomponentsjs/webcomponents-loader.js +238 -0
  117. package/examples/soundworks/LICENSE +28 -0
  118. package/examples/soundworks/README.md +26 -0
  119. package/examples/soundworks/config/application.yaml +8 -0
  120. package/examples/soundworks/config/env-default.yaml +12 -0
  121. package/examples/soundworks/package.json +35 -0
  122. package/examples/soundworks/public/favicon.ico +0 -0
  123. package/examples/soundworks/public/images/loader.gif +0 -0
  124. package/examples/soundworks/src/clients/components/sw-audit.js +78 -0
  125. package/examples/soundworks/src/clients/components/sw-credits.js +80 -0
  126. package/examples/soundworks/src/clients/player/.editorbackup/PlayerExperience.js~ +131 -0
  127. package/examples/soundworks/src/clients/player/index.js +118 -0
  128. package/examples/soundworks/src/clients/styles/app.scss +79 -0
  129. package/examples/soundworks/src/clients/styles/normalize.scss +359 -0
  130. package/examples/soundworks/src/clients/webview/index.js +78 -0
  131. package/examples/soundworks/src/server/index.js +62 -0
  132. package/examples/soundworks/src/server/schemas/.gitkeep +1 -0
  133. package/examples/soundworks/src/server/schemas/global.js +18 -0
  134. package/examples/soundworks/src/server/tmpl/default.tmpl +27 -0
  135. package/examples/soundworks/src/utils/catch-unhandled-errors.js +9 -0
  136. package/index.html +51 -0
  137. package/max/CoMote/docs/sw.shared-state.maxref.xml +95 -0
  138. package/max/CoMote/examples/simple-webview/README.md +10 -0
  139. package/max/CoMote/examples/simple-webview/build/comote-simple-webview-server.js +44 -0
  140. package/max/CoMote/examples/simple-webview/comote-simple-webview-server.maxpat +186 -0
  141. package/max/CoMote/examples/simple-webview/package-lock.json +5109 -0
  142. package/max/CoMote/examples/simple-webview/package.json +23 -0
  143. package/max/CoMote/examples/simple-webview/public/favicon.ico +0 -0
  144. package/max/CoMote/examples/simple-webview/public/index.html +13 -0
  145. package/max/CoMote/examples/simple-webview/public/index.mjs +3623 -0
  146. package/max/CoMote/examples/simple-webview/public/styles.css +99 -0
  147. package/max/CoMote/examples/simple-webview/src/client.js +35 -0
  148. package/max/CoMote/examples/simple-webview/src/server.js +20 -0
  149. package/max/CoMote/examples/soundworks/.editorconfig +12 -0
  150. package/max/CoMote/examples/soundworks/.eslintrc +3 -0
  151. package/max/CoMote/examples/soundworks/.soundworks +7 -0
  152. package/max/CoMote/examples/soundworks/LICENSE +28 -0
  153. package/max/CoMote/examples/soundworks/README.md +26 -0
  154. package/max/CoMote/examples/soundworks/config/application.yaml +8 -0
  155. package/max/CoMote/examples/soundworks/config/env-default.yaml +12 -0
  156. package/max/CoMote/examples/soundworks/package.json +35 -0
  157. package/max/CoMote/examples/soundworks/public/favicon.ico +0 -0
  158. package/max/CoMote/examples/soundworks/public/images/loader.gif +0 -0
  159. package/max/CoMote/examples/soundworks/src/clients/components/sw-audit.js +78 -0
  160. package/max/CoMote/examples/soundworks/src/clients/components/sw-credits.js +80 -0
  161. package/max/CoMote/examples/soundworks/src/clients/player/.editorbackup/PlayerExperience.js~ +131 -0
  162. package/max/CoMote/examples/soundworks/src/clients/player/index.js +118 -0
  163. package/max/CoMote/examples/soundworks/src/clients/styles/app.scss +79 -0
  164. package/max/CoMote/examples/soundworks/src/clients/styles/normalize.scss +359 -0
  165. package/max/CoMote/examples/soundworks/src/clients/webview/index.js +78 -0
  166. package/max/CoMote/examples/soundworks/src/server/index.js +62 -0
  167. package/max/CoMote/examples/soundworks/src/server/schemas/.gitkeep +1 -0
  168. package/max/CoMote/examples/soundworks/src/server/schemas/global.js +18 -0
  169. package/max/CoMote/examples/soundworks/src/server/tmpl/default.tmpl +27 -0
  170. package/max/CoMote/examples/soundworks/src/utils/catch-unhandled-errors.js +9 -0
  171. package/max/CoMote/extras/CoMote.maxpat +1994 -0
  172. package/max/CoMote/help/comote_osc_receive.maxhelp +946 -0
  173. package/max/CoMote/icon.png +0 -0
  174. package/max/CoMote/init/objectmappings.txt +2 -0
  175. package/max/CoMote/media/comote-screenshot.png +0 -0
  176. package/max/CoMote/package-info.json +27 -0
  177. package/max/CoMote/patchers/comote-connect/comote-connect-public/comote-connect-client.mjs +2821 -0
  178. package/max/CoMote/patchers/comote-connect/comote-connect-public/favicon.ico +0 -0
  179. package/max/CoMote/patchers/comote-connect/comote-connect-public/index.html +22 -0
  180. package/max/CoMote/patchers/comote-connect/comote-connect-server.js +24775 -0
  181. package/max/CoMote/patchers/comote-connect/comote-connect.maxpat +1048 -0
  182. package/max/CoMote/patchers/comote-connect/package.json +4 -0
  183. package/max/CoMote/patchers/comote_format_from_comote_v2.maxpat +613 -0
  184. package/max/CoMote/patchers/comote_format_from_v3.maxpat +443 -0
  185. package/max/CoMote/patchers/comote_format_gyro_v2_to_v3.maxpat +240 -0
  186. package/max/CoMote/patchers/comote_format_gyro_v3_to_v2.maxpat +240 -0
  187. package/max/CoMote/patchers/comote_format_heading_v2_to_v3.maxpat +171 -0
  188. package/max/CoMote/patchers/comote_osc_receive.maxpat +440 -0
  189. package/max/CoMote/patchers/comote_osc_to_list.maxpat +161 -0
  190. package/max/CoMote/readme.md +22 -0
  191. package/max/CoMote/source/comote-connect/client.js +104 -0
  192. package/max/CoMote/source/comote-connect/package-lock.json +591 -0
  193. package/max/CoMote/source/comote-connect/package.json +19 -0
  194. package/max/CoMote/source/comote-connect/server.js +193 -0
  195. package/max-update.bash +44 -0
  196. package/package.json +10 -29
  197. package/src/.editorbackup/network-infos.js~ +60 -0
  198. package/src/.editorbackup/wifi-infos.js~ +33 -0
  199. package/src/network-infos.js +67 -0
  200. package/{qrcode.js → src/qrcode.js} +26 -40
  201. package/{server.js → src/server.js} +45 -69
  202. package/src/wifi-infos.js +33 -0
  203. package/README.md +0 -160
  204. package/wifi-infos.js +0 -41
@@ -0,0 +1,15 @@
1
+ /**
2
+ @license @nocompile
3
+ Copyright (c) 2018 The Polymer Project Authors. All rights reserved.
4
+ This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
5
+ The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
6
+ The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
7
+ Code distributed by Google as part of the polymer project is also
8
+ subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
9
+ */
10
+ (function () {
11
+ 'use strict';
12
+
13
+ (function(){if(void 0===window.Reflect||void 0===window.customElements||window.customElements.polyfillWrapFlushCallback)return;const a=HTMLElement;window.HTMLElement={HTMLElement:function HTMLElement(){return Reflect.construct(a,[],this.constructor)}}.HTMLElement,HTMLElement.prototype=a.prototype,HTMLElement.prototype.constructor=HTMLElement,Object.setPrototypeOf(HTMLElement,a);})();
14
+
15
+ }());
@@ -0,0 +1,51 @@
1
+ {
2
+ "name": "@webcomponents/webcomponentsjs",
3
+ "version": "2.8.0",
4
+ "publishConfig": {
5
+ "access": "public"
6
+ },
7
+ "description": "Web Components Polyfills",
8
+ "license": "BSD-3-Clause",
9
+ "repository": {
10
+ "type": "git",
11
+ "url": "https://github.com/webcomponents/polyfills.git",
12
+ "directory": "packages/webcomponentsjs"
13
+ },
14
+ "author": "The Polymer Project Authors (https://polymer.github.io/AUTHORS.txt)",
15
+ "homepage": "https://github.com/webcomponents/polyfills/tree/master/packages/webcomponentsjs",
16
+ "bugs": "https://github.com/webcomponents/polyfills/issues?q=is%3Aissue+is%3Aopen+label%3A\"Package%3A+webcomponentsjs\"",
17
+ "main": "webcomponents-bundle.js",
18
+ "scripts": {
19
+ "build": "tsc && gulp",
20
+ "build:watch": "chokidar --initial --follow-symlinks 'src/entrypoints/**/*.js' 'ts_src/**/*.ts' 'node_modules/@webcomponents/**/*.js' -c 'npm run build'",
21
+ "clean": "gulp clean",
22
+ "prepack": "npm run build",
23
+ "regen-package-lock": "rm -rf node_modules package-lock.json; npm install"
24
+ },
25
+ "files": [
26
+ "bundles/**/*",
27
+ "CHANGELOG.md",
28
+ "custom-elements-es5-adapter.js",
29
+ "src/**/*.js",
30
+ "webcomponents-bundle.d.ts",
31
+ "webcomponents-bundle.js*",
32
+ "webcomponents-loader.js"
33
+ ],
34
+ "keywords": [
35
+ "webcomponents",
36
+ "web-components",
37
+ "polyfill",
38
+ "shim"
39
+ ],
40
+ "devDependencies": {
41
+ "@webcomponents/custom-elements": "^1.6.0",
42
+ "@webcomponents/shadycss": "^1.11.2",
43
+ "@webcomponents/shadydom": "^1.11.0",
44
+ "@webcomponents/template": "^1.5.1",
45
+ "@webcomponents/url": "^0.7.9",
46
+ "babel-preset-minify": "^0.4.3",
47
+ "get-own-property-symbols": "^0.9.2",
48
+ "gulp-concat": "^2.6.1",
49
+ "promise-polyfill": "^8.0.0"
50
+ }
51
+ }
@@ -0,0 +1,16 @@
1
+ /**
2
+ @license
3
+ Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
4
+ This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
5
+ The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
6
+ The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
7
+ Code distributed by Google as part of the polymer project is also
8
+ subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
9
+ */
10
+ 'use strict';
11
+
12
+ /*
13
+ * Polyfills loaded: Custom Elements ES5 Shim
14
+ */
15
+
16
+ import '../../node_modules/@webcomponents/custom-elements/src/native-shim.js';
@@ -0,0 +1,55 @@
1
+ /**
2
+ @license
3
+ Copyright (c) 2018 The Polymer Project Authors. All rights reserved.
4
+ This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
5
+ The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
6
+ The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
7
+ Code distributed by Google as part of the polymer project is also
8
+ subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
9
+ */
10
+ 'use strict';
11
+
12
+ /*
13
+ * Polyfills loaded: HTML Imports, Custom Elements, Shady DOM/Shady CSS, platform polyfills, template
14
+ * Used in: webcomponents bundle to load ALL the things
15
+ */
16
+
17
+ import './webcomponents-sd-ce-pf-index.js';
18
+
19
+ const customElements = window.customElements;
20
+
21
+ let shouldFlush = false;
22
+ /** @type {?function()} */
23
+ let flusher = null;
24
+
25
+ if (customElements['polyfillWrapFlushCallback']) {
26
+ customElements['polyfillWrapFlushCallback']((flush) => {
27
+ flusher = flush;
28
+ if (shouldFlush) {
29
+ flush();
30
+ }
31
+ });
32
+ }
33
+
34
+ function flushAndFire() {
35
+ if (window.HTMLTemplateElement.bootstrap) {
36
+ window.HTMLTemplateElement.bootstrap(window.document);
37
+ }
38
+ flusher && flusher();
39
+ shouldFlush = true;
40
+ window.WebComponents.ready = true;
41
+ document.dispatchEvent(
42
+ new CustomEvent('WebComponentsReady', {bubbles: true})
43
+ );
44
+ }
45
+
46
+ if (document.readyState !== 'complete') {
47
+ // this script may come between DCL and load, so listen for both, and cancel load listener if DCL fires
48
+ window.addEventListener('load', flushAndFire);
49
+ window.addEventListener('DOMContentLoaded', () => {
50
+ window.removeEventListener('load', flushAndFire);
51
+ flushAndFire();
52
+ });
53
+ } else {
54
+ flushAndFire();
55
+ }
@@ -0,0 +1,17 @@
1
+ /**
2
+ @license
3
+ Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
4
+ This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
5
+ The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
6
+ The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
7
+ Code distributed by Google as part of the polymer project is also
8
+ subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
9
+ */
10
+ 'use strict';
11
+
12
+ /*
13
+ * Polyfills loaded: Custom Elements
14
+ * Used in: Safari 10
15
+ */
16
+
17
+ import '../../node_modules/@webcomponents/custom-elements/src/custom-elements.js';
@@ -0,0 +1,19 @@
1
+ /**
2
+ @license
3
+ Copyright (c) 2020 The Polymer Project Authors. All rights reserved.
4
+ This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
5
+ The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
6
+ The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
7
+ Code distributed by Google as part of the polymer project is also
8
+ subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
9
+ */
10
+
11
+ import '../platform/custom-event.js';
12
+ import '../platform/event-listener-options.js';
13
+ import '../platform/baseuri.js';
14
+ import '../platform/get-attribute-names.js';
15
+ import '../platform/matches.js';
16
+ import '../platform/parent-node/index.js';
17
+ import '../platform/child-node/index.js';
18
+ import '../platform/svg-element-class-list.js';
19
+ import '../platform/toggle-attribute.js';
@@ -0,0 +1,13 @@
1
+ /**
2
+ @license
3
+ Copyright (c) 2020 The Polymer Project Authors. All rights reserved.
4
+ This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
5
+ The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
6
+ The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
7
+ Code distributed by Google as part of the polymer project is also
8
+ subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
9
+ */
10
+
11
+ import '../platform/es6-misc.js';
12
+ import '../platform/promise.js';
13
+ import '../platform/symbol.js';
@@ -0,0 +1,19 @@
1
+ /**
2
+ @license
3
+ Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
4
+ This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
5
+ The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
6
+ The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
7
+ Code distributed by Google as part of the polymer project is also
8
+ subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
9
+ */
10
+ 'use strict';
11
+
12
+ /*
13
+ * Polyfills loaded: Custom Elements, Shady DOM/Shady CSS
14
+ * Used in: Safari 9, Firefox, Edge
15
+ */
16
+
17
+ import '../../node_modules/@webcomponents/shadydom/src/shadydom.js';
18
+ import '../../node_modules/@webcomponents/custom-elements/src/custom-elements.js';
19
+ import '../../node_modules/@webcomponents/shadycss/entrypoints/scoping-shim.js';
@@ -0,0 +1,25 @@
1
+ /**
2
+ @license
3
+ Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
4
+ This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
5
+ The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
6
+ The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
7
+ Code distributed by Google as part of the polymer project is also
8
+ subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
9
+ */
10
+ 'use strict';
11
+
12
+ /*
13
+ * Polyfills loaded: HTML Imports, Custom Elements, Shady DOM/Shady CSS, platform polyfills, template
14
+ * Used in: IE 11
15
+ */
16
+
17
+ import './webcomponents-pf_js-index.js';
18
+ import './webcomponents-pf_dom-index.js';
19
+ import '../unresolved.js';
20
+ import '../flag-parser.js';
21
+ import '@webcomponents/template/template.js';
22
+ import '@webcomponents/shadydom/src/shadydom.js';
23
+ import '@webcomponents/custom-elements/src/custom-elements.js';
24
+ import '@webcomponents/shadycss/entrypoints/scoping-shim.js';
25
+ import '@webcomponents/url/url.js';
@@ -0,0 +1,18 @@
1
+ /**
2
+ @license
3
+ Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
4
+ This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
5
+ The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
6
+ The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
7
+ Code distributed by Google as part of the polymer project is also
8
+ subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
9
+ */
10
+ 'use strict';
11
+
12
+ /*
13
+ * Polyfills loaded: Shady DOM/Shady CSS
14
+ * Used in: Firefox when CE is implemented
15
+ */
16
+
17
+ import '../../node_modules/@webcomponents/shadydom/src/shadydom.js';
18
+ import '../../node_modules/@webcomponents/shadycss/entrypoints/scoping-shim.js';
@@ -0,0 +1,69 @@
1
+ /**
2
+ * @license
3
+ * Copyright (c) 2014 The Polymer Project Authors. All rights reserved.
4
+ * This code may only be used under the BSD style license found at
5
+ * http://polymer.github.io/LICENSE.txt The complete set of authors may be found
6
+ * at http://polymer.github.io/AUTHORS.txt The complete set of contributors may
7
+ * be found at http://polymer.github.io/CONTRIBUTORS.txt Code distributed by
8
+ * Google as part of the polymer project is also subject to an additional IP
9
+ * rights grant found at http://polymer.github.io/PATENTS.txt
10
+ */
11
+ // Establish scope.
12
+ const extendedWindow = window;
13
+ extendedWindow['WebComponents'] = extendedWindow['WebComponents'] || {
14
+ 'flags': {},
15
+ };
16
+ // loading script
17
+ const file = 'webcomponents-bundle';
18
+ const script = document.querySelector('script[src*="' + file + '"]');
19
+ const flagMatcher = /wc-(.+)/;
20
+ // Note(rictic): a lot of this code looks wrong. Should we be pulling
21
+ // the flags local variable off of window.WebComponents.flags? If not
22
+ // then why check for noOpts, which can't possibly have been set?
23
+ // Flags. Convert url arguments to flags
24
+ const flags = {};
25
+ if (!flags['noOpts']) {
26
+ // from url
27
+ location.search
28
+ .slice(1)
29
+ .split('&')
30
+ .forEach(function (option) {
31
+ const parts = option.split('=');
32
+ let match;
33
+ if (parts[0] && (match = parts[0].match(flagMatcher))) {
34
+ flags[match[1]] = parts[1] || true;
35
+ }
36
+ });
37
+ // from script
38
+ if (script) {
39
+ for (let i = 0, a; (a = script.attributes[i]); i++) {
40
+ if (a.name !== 'src') {
41
+ flags[a.name] = a.value || true;
42
+ }
43
+ }
44
+ }
45
+ // log flags
46
+ const log = {};
47
+ if (flags['log'] && flags['log']['split']) {
48
+ const parts = flags['log'].split(',');
49
+ parts.forEach(function (f) {
50
+ log[f] = true;
51
+ });
52
+ }
53
+ flags['log'] = log;
54
+ }
55
+ // exports
56
+ extendedWindow['WebComponents']['flags'] = flags;
57
+ const forceShady = flags['shadydom'];
58
+ if (forceShady) {
59
+ extendedWindow['ShadyDOM'] = extendedWindow['ShadyDOM'] || {};
60
+ extendedWindow['ShadyDOM']['force'] = forceShady;
61
+ const noPatch = flags['noPatch'];
62
+ extendedWindow['ShadyDOM']['noPatch'] = noPatch === 'true' ? true : noPatch;
63
+ }
64
+ const forceCE = (flags['register'] || flags['ce']);
65
+ if (forceCE && window['customElements']) {
66
+ extendedWindow['customElements']['forcePolyfill'] = forceCE;
67
+ }
68
+ export {};
69
+ //# sourceMappingURL=flag-parser.js.map
@@ -0,0 +1,28 @@
1
+ /**
2
+ @license
3
+ Copyright (c) 2018 The Polymer Project Authors. All rights reserved.
4
+ This code may only be used under the BSD style license found at
5
+ http://polymer.github.io/LICENSE.txt The complete set of authors may be found at
6
+ http://polymer.github.io/AUTHORS.txt The complete set of contributors may be
7
+ found at http://polymer.github.io/CONTRIBUTORS.txt Code distributed by Google as
8
+ part of the polymer project is also subject to an additional IP rights grant
9
+ found at http://polymer.github.io/PATENTS.txt
10
+ */
11
+ // Implement Node.baseURI for IE 11
12
+ // adapted from
13
+ // https://github.com/webcomponents/html-imports/blob/v1.2.0/src/html-imports.js
14
+ const native_baseURI = Object.getOwnPropertyDescriptor(Node.prototype, 'baseURI');
15
+ if (!native_baseURI) {
16
+ Object.defineProperty(Node.prototype, 'baseURI', {
17
+ get() {
18
+ // this.ownerDocument is `null` for documents
19
+ const doc = this.ownerDocument || this;
20
+ const base = doc.querySelector('base[href]');
21
+ return (base && base.href) || window.location.href;
22
+ },
23
+ configurable: true,
24
+ enumerable: true,
25
+ });
26
+ }
27
+ export {};
28
+ //# sourceMappingURL=baseuri.js.map
@@ -0,0 +1,47 @@
1
+ /**
2
+ @license
3
+ Copyright (c) 2020 The Polymer Project Authors. All rights reserved.
4
+ This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
5
+ The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
6
+ The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
7
+ Code distributed by Google as part of the polymer project is also
8
+ subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
9
+ */
10
+ var _a, _b, _c, _d;
11
+ const nativeInsertBefore = Node.prototype.insertBefore;
12
+ const nativeGetParentNode = (_b = (_a = Object.getOwnPropertyDescriptor(Node.prototype, 'parentNode')) === null || _a === void 0 ? void 0 : _a.get) !== null && _b !== void 0 ? _b :
13
+ // In Safari 9, the `parentNode` descriptor's `get` and `set` are undefined.
14
+ function () {
15
+ return this.parentNode;
16
+ };
17
+ const nativeGetNextSibling = (_d = (_c = Object.getOwnPropertyDescriptor(Node.prototype, 'nextSibling')) === null || _c === void 0 ? void 0 : _c.get) !== null && _d !== void 0 ? _d :
18
+ // In Safari 9, the `nextSibling` descriptor's `get` and `set` are
19
+ // undefined.
20
+ function () {
21
+ return this.nextSibling;
22
+ };
23
+ const installAfter = (constructor) => {
24
+ const prototype = constructor.prototype;
25
+ if (prototype.hasOwnProperty('after')) {
26
+ return;
27
+ }
28
+ Object.defineProperty(prototype, 'after', {
29
+ configurable: true,
30
+ enumerable: true,
31
+ writable: true,
32
+ value: function after(...args) {
33
+ const parentNode = nativeGetParentNode.call(this);
34
+ if (parentNode === null) {
35
+ return;
36
+ }
37
+ const nextSibling = nativeGetNextSibling.call(this);
38
+ for (const arg of args) {
39
+ nativeInsertBefore.call(parentNode, typeof arg === 'string' ? document.createTextNode(arg) : arg, nextSibling);
40
+ }
41
+ },
42
+ });
43
+ };
44
+ installAfter(CharacterData);
45
+ installAfter(Element);
46
+ export {};
47
+ //# sourceMappingURL=after.js.map
@@ -0,0 +1,40 @@
1
+ /**
2
+ @license
3
+ Copyright (c) 2020 The Polymer Project Authors. All rights reserved.
4
+ This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
5
+ The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
6
+ The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
7
+ Code distributed by Google as part of the polymer project is also
8
+ subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
9
+ */
10
+ var _a, _b;
11
+ const nativeInsertBefore = Node.prototype.insertBefore;
12
+ const nativeGetParentNode = (_b = (_a = Object.getOwnPropertyDescriptor(Node.prototype, 'parentNode')) === null || _a === void 0 ? void 0 : _a.get) !== null && _b !== void 0 ? _b :
13
+ // In Safari 9, the `parentNode` descriptor's `get` and `set` are undefined.
14
+ function () {
15
+ return this.parentNode;
16
+ };
17
+ const installBefore = (constructor) => {
18
+ const prototype = constructor.prototype;
19
+ if (prototype.hasOwnProperty('before')) {
20
+ return;
21
+ }
22
+ Object.defineProperty(prototype, 'before', {
23
+ configurable: true,
24
+ enumerable: true,
25
+ writable: true,
26
+ value: function before(...args) {
27
+ const parentNode = nativeGetParentNode.call(this);
28
+ if (parentNode === null) {
29
+ return;
30
+ }
31
+ for (const arg of args) {
32
+ nativeInsertBefore.call(parentNode, typeof arg === 'string' ? document.createTextNode(arg) : arg, this);
33
+ }
34
+ },
35
+ });
36
+ };
37
+ installBefore(CharacterData);
38
+ installBefore(Element);
39
+ export {};
40
+ //# sourceMappingURL=before.js.map
@@ -0,0 +1,14 @@
1
+ /**
2
+ @license
3
+ Copyright (c) 2020 The Polymer Project Authors. All rights reserved.
4
+ This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
5
+ The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
6
+ The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
7
+ Code distributed by Google as part of the polymer project is also
8
+ subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
9
+ */
10
+ import './after.js';
11
+ import './before.js';
12
+ import './remove.js';
13
+ import './replace-with.js';
14
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1,37 @@
1
+ /**
2
+ @license
3
+ Copyright (c) 2020 The Polymer Project Authors. All rights reserved.
4
+ This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
5
+ The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
6
+ The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
7
+ Code distributed by Google as part of the polymer project is also
8
+ subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
9
+ */
10
+ var _a, _b;
11
+ const nativeRemoveChild = Node.prototype.removeChild;
12
+ const nativeGetParentNode = (_b = (_a = Object.getOwnPropertyDescriptor(Node.prototype, 'parentNode')) === null || _a === void 0 ? void 0 : _a.get) !== null && _b !== void 0 ? _b :
13
+ // In Safari 9, the `parentNode` descriptor's `get` and `set` are undefined.
14
+ function () {
15
+ return this.parentNode;
16
+ };
17
+ const installRemove = (constructor) => {
18
+ const prototype = constructor.prototype;
19
+ if (prototype.hasOwnProperty('remove')) {
20
+ return;
21
+ }
22
+ Object.defineProperty(prototype, 'remove', {
23
+ configurable: true,
24
+ enumerable: true,
25
+ writable: true,
26
+ value: function remove() {
27
+ const parentNode = nativeGetParentNode.call(this);
28
+ if (parentNode) {
29
+ nativeRemoveChild.call(parentNode, this);
30
+ }
31
+ },
32
+ });
33
+ };
34
+ installRemove(CharacterData);
35
+ installRemove(Element);
36
+ export {};
37
+ //# sourceMappingURL=remove.js.map
@@ -0,0 +1,42 @@
1
+ /**
2
+ @license
3
+ Copyright (c) 2020 The Polymer Project Authors. All rights reserved.
4
+ This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
5
+ The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
6
+ The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
7
+ Code distributed by Google as part of the polymer project is also
8
+ subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
9
+ */
10
+ var _a, _b;
11
+ const nativeInsertBefore = Node.prototype.insertBefore;
12
+ const nativeRemoveChild = Node.prototype.removeChild;
13
+ const nativeGetParentNode = (_b = (_a = Object.getOwnPropertyDescriptor(Node.prototype, 'parentNode')) === null || _a === void 0 ? void 0 : _a.get) !== null && _b !== void 0 ? _b :
14
+ // In Safari 9, the `parentNode` descriptor's `get` and `set` are undefined.
15
+ function () {
16
+ return this.parentNode;
17
+ };
18
+ const installReplaceWith = (constructor) => {
19
+ const prototype = constructor.prototype;
20
+ if (prototype.hasOwnProperty('replaceWith')) {
21
+ return;
22
+ }
23
+ Object.defineProperty(prototype, 'replaceWith', {
24
+ configurable: true,
25
+ enumerable: true,
26
+ writable: true,
27
+ value: function replaceWith(...args) {
28
+ const parentNode = nativeGetParentNode.call(this);
29
+ if (parentNode === null) {
30
+ return;
31
+ }
32
+ for (const arg of args) {
33
+ nativeInsertBefore.call(parentNode, typeof arg === 'string' ? document.createTextNode(arg) : arg, this);
34
+ }
35
+ nativeRemoveChild.call(parentNode, this);
36
+ },
37
+ });
38
+ };
39
+ installReplaceWith(CharacterData);
40
+ installReplaceWith(Element);
41
+ export {};
42
+ //# sourceMappingURL=replace-with.js.map
@@ -0,0 +1,79 @@
1
+ /**
2
+ * @license
3
+ * Copyright (c) 2016 The Polymer Project Authors. All rights reserved.
4
+ * This code may only be used under the BSD style license found at
5
+ * http://polymer.github.io/LICENSE.txt The complete set of authors may be found
6
+ * at http://polymer.github.io/AUTHORS.txt The complete set of contributors may
7
+ * be found at http://polymer.github.io/CONTRIBUTORS.txt Code distributed by
8
+ * Google as part of the polymer project is also subject to an additional IP
9
+ * rights grant found at http://polymer.github.io/PATENTS.txt
10
+ */
11
+ // defaultPrevented is broken in IE.
12
+ // https://connect.microsoft.com/IE/feedback/details/790389/event-defaultprevented-returns-false-after-preventdefault-was-called
13
+ const workingDefaultPrevented = (() => {
14
+ const e = document.createEvent('Event');
15
+ e.initEvent('foo', true, true);
16
+ e.preventDefault();
17
+ return e.defaultPrevented;
18
+ })();
19
+ if (!workingDefaultPrevented) {
20
+ const origPreventDefault = Event.prototype.preventDefault;
21
+ Event.prototype.preventDefault = function () {
22
+ if (!this.cancelable) {
23
+ return;
24
+ }
25
+ origPreventDefault.call(this);
26
+ Object.defineProperty(this, 'defaultPrevented', {
27
+ get() {
28
+ return true;
29
+ },
30
+ configurable: true,
31
+ });
32
+ };
33
+ }
34
+ const isIE = /Trident/.test(navigator.userAgent);
35
+ // Event constructor shim
36
+ if (!window.Event || (isIE && typeof window.Event !== 'function')) {
37
+ const origEvent = window.Event;
38
+ window['Event'] = ((inType, params) => {
39
+ params = params || {};
40
+ const e = document.createEvent('Event');
41
+ e.initEvent(inType, Boolean(params.bubbles), Boolean(params.cancelable));
42
+ return e;
43
+ });
44
+ if (origEvent) {
45
+ for (const i in origEvent) {
46
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
47
+ window['Event'][i] = origEvent[i];
48
+ }
49
+ window['Event'].prototype = origEvent.prototype;
50
+ }
51
+ }
52
+ // CustomEvent constructor shim
53
+ if (!window.CustomEvent || (isIE && typeof window.CustomEvent !== 'function')) {
54
+ window['CustomEvent'] = ((inType, params) => {
55
+ params = params || {};
56
+ const e = document.createEvent('CustomEvent');
57
+ e.initCustomEvent(inType, Boolean(params.bubbles), Boolean(params.cancelable), params.detail);
58
+ return e;
59
+ });
60
+ window['CustomEvent'].prototype = window.Event.prototype;
61
+ }
62
+ if (!window.MouseEvent || (isIE && typeof window.MouseEvent !== 'function')) {
63
+ const origMouseEvent = window.MouseEvent;
64
+ window['MouseEvent'] = ((inType, params) => {
65
+ params = params || {};
66
+ const e = document.createEvent('MouseEvent');
67
+ e.initMouseEvent(inType, Boolean(params.bubbles), Boolean(params.cancelable), params.view || window, params.detail, params.screenX, params.screenY, params.clientX, params.clientY, params.ctrlKey, params.altKey, params.shiftKey, params.metaKey, params.button, params.relatedTarget);
68
+ return e;
69
+ });
70
+ if (origMouseEvent) {
71
+ for (const j in origMouseEvent) {
72
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
73
+ window.MouseEvent[j] = origMouseEvent[j];
74
+ }
75
+ }
76
+ window['MouseEvent'].prototype = origMouseEvent.prototype;
77
+ }
78
+ export {};
79
+ //# sourceMappingURL=custom-event.js.map