@ircam/comote-helpers 1.0.1 → 1.0.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.
- package/README.md +9 -0
- package/package.json +4 -1
- package/.babelrc +0 -5
- package/.github/workflows/main.yml +0 -45
- package/.history/.gitignore_20250415160643 +0 -6
- package/.history/.gitignore_20250415160723 +0 -6
- package/.history/examples/simple-webview/package-lock_20250415130242.json +0 -5109
- package/.history/examples/simple-webview/package-lock_20250416103557.json +0 -5109
- package/.history/examples/simple-webview/package_20250415130704.json +0 -26
- package/.history/examples/simple-webview/package_20250415184837.json +0 -26
- package/.history/examples/simple-webview/package_20250415190300.json +0 -23
- package/.history/examples/simple-webview/src/server_20250415105733.js +0 -20
- package/.history/examples/simple-webview/src/server_20250415184604.js +0 -20
- package/.history/examples/soundworks/package_20250415132431.json +0 -35
- package/.history/examples/soundworks/package_20250416105956.json +0 -35
- package/.history/max/CoMote/examples/simple-webview/package_20250415184836.json +0 -26
- package/.history/max/CoMote/examples/simple-webview/package_20250415185949.json +0 -23
- package/.history/max/CoMote/examples/simple-webview/package_20250415185950.json +0 -23
- package/.history/max/CoMote/package-info_20241018173608.json +0 -41
- package/.history/max/CoMote/package-info_20250416105743.json +0 -27
- package/.history/max/CoMote/package-info_20250416105826.json +0 -27
- package/.history/max/CoMote/source/comote-connect/package_20250415132759.json +0 -19
- package/.history/max/CoMote/source/comote-connect/package_20250416110158.json +0 -19
- package/.history/max/CoMote/source/comote-connect/server_20250414175059.js +0 -193
- package/.history/max/CoMote/source/comote-connect/server_20250415180549.js +0 -193
- package/.history/package_20250415143437.json +0 -26
- package/.history/package_20250416105907.json +0 -26
- package/examples/simple-webview/README.md +0 -10
- package/examples/simple-webview/build/comote-simple-webview-server.js +0 -44
- package/examples/simple-webview/package-lock.json +0 -5109
- package/examples/simple-webview/package.json +0 -23
- package/examples/simple-webview/public/favicon.ico +0 -0
- package/examples/simple-webview/public/index.html +0 -13
- package/examples/simple-webview/public/index.mjs +0 -3623
- package/examples/simple-webview/public/styles.css +0 -99
- package/examples/simple-webview/src/client.js +0 -35
- package/examples/simple-webview/src/server.js +0 -20
- package/examples/soundworks/.build/clients/components/sw-audit.js +0 -64
- package/examples/soundworks/.build/clients/components/sw-audit.js.map +0 -1
- package/examples/soundworks/.build/clients/components/sw-credits.js +0 -73
- package/examples/soundworks/.build/clients/components/sw-credits.js.map +0 -1
- package/examples/soundworks/.build/clients/player/.editorbackup/PlayerExperience.js~ +0 -131
- package/examples/soundworks/.build/clients/player/index.js +0 -116
- package/examples/soundworks/.build/clients/player/index.js.map +0 -1
- package/examples/soundworks/.build/clients/styles/app.scss +0 -79
- package/examples/soundworks/.build/clients/styles/normalize.scss +0 -359
- package/examples/soundworks/.build/clients/webview/index.js +0 -72
- package/examples/soundworks/.build/clients/webview/index.js.map +0 -1
- package/examples/soundworks/.build/public/css/app.css +0 -76
- package/examples/soundworks/.build/public/css/app.css.map +0 -1
- package/examples/soundworks/.build/public/css/normalize.css +0 -321
- package/examples/soundworks/.build/public/css/normalize.css.map +0 -1
- package/examples/soundworks/.build/public/player.js +0 -98098
- package/examples/soundworks/.build/public/player.js.map +0 -1
- package/examples/soundworks/.build/public/webview.js +0 -50725
- package/examples/soundworks/.build/public/webview.js.map +0 -1
- package/examples/soundworks/.build/server/index.js +0 -57
- package/examples/soundworks/.build/server/index.js.map +0 -1
- package/examples/soundworks/.build/server/schemas/.gitkeep +0 -1
- package/examples/soundworks/.build/server/schemas/global.js +0 -19
- package/examples/soundworks/.build/server/schemas/global.js.map +0 -1
- package/examples/soundworks/.build/server/tmpl/default.tmpl +0 -27
- package/examples/soundworks/.build/utils/catch-unhandled-errors.js +0 -9
- package/examples/soundworks/.build/utils/catch-unhandled-errors.js.map +0 -1
- package/examples/soundworks/.editorconfig +0 -12
- package/examples/soundworks/.eslintrc +0 -3
- package/examples/soundworks/.soundworks +0 -7
- package/examples/soundworks/.vendors/public/webcomponentsjs/CHANGELOG.md +0 -76
- package/examples/soundworks/.vendors/public/webcomponentsjs/LICENSE.md +0 -19
- package/examples/soundworks/.vendors/public/webcomponentsjs/README.md +0 -259
- package/examples/soundworks/.vendors/public/webcomponentsjs/bundles/webcomponents-ce.js +0 -63
- package/examples/soundworks/.vendors/public/webcomponentsjs/bundles/webcomponents-ce.js.map +0 -1
- package/examples/soundworks/.vendors/public/webcomponentsjs/bundles/webcomponents-pf_dom.js +0 -62
- package/examples/soundworks/.vendors/public/webcomponentsjs/bundles/webcomponents-pf_dom.js.map +0 -1
- package/examples/soundworks/.vendors/public/webcomponentsjs/bundles/webcomponents-pf_js.js +0 -95
- package/examples/soundworks/.vendors/public/webcomponentsjs/bundles/webcomponents-pf_js.js.map +0 -1
- package/examples/soundworks/.vendors/public/webcomponentsjs/bundles/webcomponents-sd-ce-pf.js +0 -374
- package/examples/soundworks/.vendors/public/webcomponentsjs/bundles/webcomponents-sd-ce-pf.js.map +0 -1
- package/examples/soundworks/.vendors/public/webcomponentsjs/bundles/webcomponents-sd-ce.js +0 -240
- package/examples/soundworks/.vendors/public/webcomponentsjs/bundles/webcomponents-sd-ce.js.map +0 -1
- package/examples/soundworks/.vendors/public/webcomponentsjs/bundles/webcomponents-sd.js +0 -196
- package/examples/soundworks/.vendors/public/webcomponentsjs/bundles/webcomponents-sd.js.map +0 -1
- package/examples/soundworks/.vendors/public/webcomponentsjs/custom-elements-es5-adapter.js +0 -15
- package/examples/soundworks/.vendors/public/webcomponentsjs/package.json +0 -51
- package/examples/soundworks/.vendors/public/webcomponentsjs/src/entrypoints/custom-elements-es5-adapter-index.js +0 -16
- package/examples/soundworks/.vendors/public/webcomponentsjs/src/entrypoints/webcomponents-bundle-index.js +0 -55
- package/examples/soundworks/.vendors/public/webcomponentsjs/src/entrypoints/webcomponents-ce-index.js +0 -17
- package/examples/soundworks/.vendors/public/webcomponentsjs/src/entrypoints/webcomponents-pf_dom-index.js +0 -19
- package/examples/soundworks/.vendors/public/webcomponentsjs/src/entrypoints/webcomponents-pf_js-index.js +0 -13
- package/examples/soundworks/.vendors/public/webcomponentsjs/src/entrypoints/webcomponents-sd-ce-index.js +0 -19
- package/examples/soundworks/.vendors/public/webcomponentsjs/src/entrypoints/webcomponents-sd-ce-pf-index.js +0 -25
- package/examples/soundworks/.vendors/public/webcomponentsjs/src/entrypoints/webcomponents-sd-index.js +0 -18
- package/examples/soundworks/.vendors/public/webcomponentsjs/src/flag-parser.js +0 -69
- package/examples/soundworks/.vendors/public/webcomponentsjs/src/platform/baseuri.js +0 -28
- package/examples/soundworks/.vendors/public/webcomponentsjs/src/platform/child-node/after.js +0 -47
- package/examples/soundworks/.vendors/public/webcomponentsjs/src/platform/child-node/before.js +0 -40
- package/examples/soundworks/.vendors/public/webcomponentsjs/src/platform/child-node/index.js +0 -14
- package/examples/soundworks/.vendors/public/webcomponentsjs/src/platform/child-node/remove.js +0 -37
- package/examples/soundworks/.vendors/public/webcomponentsjs/src/platform/child-node/replace-with.js +0 -42
- package/examples/soundworks/.vendors/public/webcomponentsjs/src/platform/custom-event.js +0 -79
- package/examples/soundworks/.vendors/public/webcomponentsjs/src/platform/es6-misc.js +0 -38
- package/examples/soundworks/.vendors/public/webcomponentsjs/src/platform/event-listener-options.js +0 -122
- package/examples/soundworks/.vendors/public/webcomponentsjs/src/platform/get-attribute-names.js +0 -27
- package/examples/soundworks/.vendors/public/webcomponentsjs/src/platform/matches.js +0 -21
- package/examples/soundworks/.vendors/public/webcomponentsjs/src/platform/parent-node/append.js +0 -31
- package/examples/soundworks/.vendors/public/webcomponentsjs/src/platform/parent-node/index.js +0 -13
- package/examples/soundworks/.vendors/public/webcomponentsjs/src/platform/parent-node/prepend.js +0 -42
- package/examples/soundworks/.vendors/public/webcomponentsjs/src/platform/parent-node/replace-children.js +0 -45
- package/examples/soundworks/.vendors/public/webcomponentsjs/src/platform/promise.js +0 -50
- package/examples/soundworks/.vendors/public/webcomponentsjs/src/platform/svg-element-class-list.js +0 -28
- package/examples/soundworks/.vendors/public/webcomponentsjs/src/platform/symbol.js +0 -64
- package/examples/soundworks/.vendors/public/webcomponentsjs/src/platform/toggle-attribute.js +0 -39
- package/examples/soundworks/.vendors/public/webcomponentsjs/src/unresolved.js +0 -32
- package/examples/soundworks/.vendors/public/webcomponentsjs/webcomponents-bundle.d.ts +0 -175
- package/examples/soundworks/.vendors/public/webcomponentsjs/webcomponents-bundle.js +0 -384
- package/examples/soundworks/.vendors/public/webcomponentsjs/webcomponents-bundle.js.map +0 -1
- package/examples/soundworks/.vendors/public/webcomponentsjs/webcomponents-loader.js +0 -238
- package/examples/soundworks/LICENSE +0 -28
- package/examples/soundworks/README.md +0 -26
- package/examples/soundworks/config/application.yaml +0 -8
- package/examples/soundworks/config/env-default.yaml +0 -12
- package/examples/soundworks/package.json +0 -35
- package/examples/soundworks/public/favicon.ico +0 -0
- package/examples/soundworks/public/images/loader.gif +0 -0
- package/examples/soundworks/src/clients/components/sw-audit.js +0 -78
- package/examples/soundworks/src/clients/components/sw-credits.js +0 -80
- package/examples/soundworks/src/clients/player/.editorbackup/PlayerExperience.js~ +0 -131
- package/examples/soundworks/src/clients/player/index.js +0 -118
- package/examples/soundworks/src/clients/styles/app.scss +0 -79
- package/examples/soundworks/src/clients/styles/normalize.scss +0 -359
- package/examples/soundworks/src/clients/webview/index.js +0 -78
- package/examples/soundworks/src/server/index.js +0 -62
- package/examples/soundworks/src/server/schemas/.gitkeep +0 -1
- package/examples/soundworks/src/server/schemas/global.js +0 -18
- package/examples/soundworks/src/server/tmpl/default.tmpl +0 -27
- package/examples/soundworks/src/utils/catch-unhandled-errors.js +0 -9
- package/index.html +0 -51
- package/max/CoMote/docs/sw.shared-state.maxref.xml +0 -95
- package/max/CoMote/examples/simple-webview/README.md +0 -10
- package/max/CoMote/examples/simple-webview/build/comote-simple-webview-server.js +0 -44
- package/max/CoMote/examples/simple-webview/comote-simple-webview-server.maxpat +0 -186
- package/max/CoMote/examples/simple-webview/package-lock.json +0 -5109
- package/max/CoMote/examples/simple-webview/package.json +0 -23
- package/max/CoMote/examples/simple-webview/public/favicon.ico +0 -0
- package/max/CoMote/examples/simple-webview/public/index.html +0 -13
- package/max/CoMote/examples/simple-webview/public/index.mjs +0 -3623
- package/max/CoMote/examples/simple-webview/public/styles.css +0 -99
- package/max/CoMote/examples/simple-webview/src/client.js +0 -35
- package/max/CoMote/examples/simple-webview/src/server.js +0 -20
- package/max/CoMote/examples/soundworks/.editorconfig +0 -12
- package/max/CoMote/examples/soundworks/.eslintrc +0 -3
- package/max/CoMote/examples/soundworks/.soundworks +0 -7
- package/max/CoMote/examples/soundworks/LICENSE +0 -28
- package/max/CoMote/examples/soundworks/README.md +0 -26
- package/max/CoMote/examples/soundworks/config/application.yaml +0 -8
- package/max/CoMote/examples/soundworks/config/env-default.yaml +0 -12
- package/max/CoMote/examples/soundworks/package.json +0 -35
- package/max/CoMote/examples/soundworks/public/favicon.ico +0 -0
- package/max/CoMote/examples/soundworks/public/images/loader.gif +0 -0
- package/max/CoMote/examples/soundworks/src/clients/components/sw-audit.js +0 -78
- package/max/CoMote/examples/soundworks/src/clients/components/sw-credits.js +0 -80
- package/max/CoMote/examples/soundworks/src/clients/player/.editorbackup/PlayerExperience.js~ +0 -131
- package/max/CoMote/examples/soundworks/src/clients/player/index.js +0 -118
- package/max/CoMote/examples/soundworks/src/clients/styles/app.scss +0 -79
- package/max/CoMote/examples/soundworks/src/clients/styles/normalize.scss +0 -359
- package/max/CoMote/examples/soundworks/src/clients/webview/index.js +0 -78
- package/max/CoMote/examples/soundworks/src/server/index.js +0 -62
- package/max/CoMote/examples/soundworks/src/server/schemas/.gitkeep +0 -1
- package/max/CoMote/examples/soundworks/src/server/schemas/global.js +0 -18
- package/max/CoMote/examples/soundworks/src/server/tmpl/default.tmpl +0 -27
- package/max/CoMote/examples/soundworks/src/utils/catch-unhandled-errors.js +0 -9
- package/max/CoMote/extras/CoMote.maxpat +0 -1994
- package/max/CoMote/help/comote_osc_receive.maxhelp +0 -946
- package/max/CoMote/icon.png +0 -0
- package/max/CoMote/init/objectmappings.txt +0 -2
- package/max/CoMote/media/comote-screenshot.png +0 -0
- package/max/CoMote/package-info.json +0 -27
- package/max/CoMote/patchers/comote-connect/comote-connect-public/comote-connect-client.mjs +0 -2821
- package/max/CoMote/patchers/comote-connect/comote-connect-public/favicon.ico +0 -0
- package/max/CoMote/patchers/comote-connect/comote-connect-public/index.html +0 -22
- package/max/CoMote/patchers/comote-connect/comote-connect-server.js +0 -24775
- package/max/CoMote/patchers/comote-connect/comote-connect.maxpat +0 -1048
- package/max/CoMote/patchers/comote-connect/package.json +0 -4
- package/max/CoMote/patchers/comote_format_from_comote_v2.maxpat +0 -613
- package/max/CoMote/patchers/comote_format_from_v3.maxpat +0 -443
- package/max/CoMote/patchers/comote_format_gyro_v2_to_v3.maxpat +0 -240
- package/max/CoMote/patchers/comote_format_gyro_v3_to_v2.maxpat +0 -240
- package/max/CoMote/patchers/comote_format_heading_v2_to_v3.maxpat +0 -171
- package/max/CoMote/patchers/comote_osc_receive.maxpat +0 -440
- package/max/CoMote/patchers/comote_osc_to_list.maxpat +0 -161
- package/max/CoMote/readme.md +0 -22
- package/max/CoMote/source/comote-connect/client.js +0 -104
- package/max/CoMote/source/comote-connect/package-lock.json +0 -591
- package/max/CoMote/source/comote-connect/package.json +0 -19
- package/max/CoMote/source/comote-connect/server.js +0 -193
- package/max-update.bash +0 -44
- package/src/.editorbackup/network-infos.js~ +0 -60
- package/src/.editorbackup/wifi-infos.js~ +0 -33
|
@@ -1,15 +0,0 @@
|
|
|
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
|
-
}());
|
|
@@ -1,51 +0,0 @@
|
|
|
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
|
-
}
|
|
@@ -1,16 +0,0 @@
|
|
|
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';
|
|
@@ -1,55 +0,0 @@
|
|
|
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
|
-
}
|
|
@@ -1,17 +0,0 @@
|
|
|
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';
|
|
@@ -1,19 +0,0 @@
|
|
|
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';
|
|
@@ -1,13 +0,0 @@
|
|
|
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';
|
|
@@ -1,19 +0,0 @@
|
|
|
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';
|
|
@@ -1,25 +0,0 @@
|
|
|
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';
|
|
@@ -1,18 +0,0 @@
|
|
|
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';
|
|
@@ -1,69 +0,0 @@
|
|
|
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
|
|
@@ -1,28 +0,0 @@
|
|
|
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
|
package/examples/soundworks/.vendors/public/webcomponentsjs/src/platform/child-node/after.js
DELETED
|
@@ -1,47 +0,0 @@
|
|
|
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
|
package/examples/soundworks/.vendors/public/webcomponentsjs/src/platform/child-node/before.js
DELETED
|
@@ -1,40 +0,0 @@
|
|
|
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
|
package/examples/soundworks/.vendors/public/webcomponentsjs/src/platform/child-node/index.js
DELETED
|
@@ -1,14 +0,0 @@
|
|
|
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
|
package/examples/soundworks/.vendors/public/webcomponentsjs/src/platform/child-node/remove.js
DELETED
|
@@ -1,37 +0,0 @@
|
|
|
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
|
package/examples/soundworks/.vendors/public/webcomponentsjs/src/platform/child-node/replace-with.js
DELETED
|
@@ -1,42 +0,0 @@
|
|
|
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
|
|
@@ -1,79 +0,0 @@
|
|
|
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
|