@tarojs/components-react 4.0.0-beta.0 → 4.0.0-beta.10

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 (59) hide show
  1. package/LICENSE +14 -0
  2. package/dist/components/button/index.js +84 -0
  3. package/dist/components/button/index.js.map +1 -0
  4. package/dist/components/button/style/index.scss.js +4 -0
  5. package/dist/components/button/style/index.scss.js.map +1 -0
  6. package/dist/components/icon/index.js +28 -0
  7. package/dist/components/icon/index.js.map +1 -0
  8. package/dist/components/icon/style/index.scss.js +4 -0
  9. package/dist/components/icon/style/index.scss.js.map +1 -0
  10. package/dist/components/image/index.js +76 -100
  11. package/dist/components/image/index.js.map +1 -1
  12. package/dist/components/image/style/index.css.js +4 -0
  13. package/dist/components/image/style/index.css.js.map +1 -0
  14. package/dist/components/input/index.js +228 -0
  15. package/dist/components/input/index.js.map +1 -0
  16. package/dist/components/input/style/index.scss.js +4 -0
  17. package/dist/components/input/style/index.scss.js.map +1 -0
  18. package/dist/components/pull-down-refresh/index.js +184 -211
  19. package/dist/components/pull-down-refresh/index.js.map +1 -1
  20. package/dist/components/pull-down-refresh/style/index.css.js +4 -0
  21. package/dist/components/pull-down-refresh/style/index.css.js.map +1 -0
  22. package/dist/components/scroll-view/index.js +128 -157
  23. package/dist/components/scroll-view/index.js.map +1 -1
  24. package/dist/components/scroll-view/style/index.css.js +4 -0
  25. package/dist/components/scroll-view/style/index.css.js.map +1 -0
  26. package/dist/components/swiper/index.js +232 -271
  27. package/dist/components/swiper/index.js.map +1 -1
  28. package/dist/components/swiper/style/index.css.js +4 -0
  29. package/dist/components/swiper/style/index.css.js.map +1 -0
  30. package/dist/components/text/index.js +17 -31
  31. package/dist/components/text/index.js.map +1 -1
  32. package/dist/components/text/style/index.css.js +4 -0
  33. package/dist/components/text/style/index.css.js.map +1 -0
  34. package/dist/components/view/index.js +74 -96
  35. package/dist/components/view/index.js.map +1 -1
  36. package/dist/components/view/style/index.css.js +4 -0
  37. package/dist/components/view/style/index.css.js.map +1 -0
  38. package/dist/index.css +1 -0
  39. package/dist/index.js +4 -1
  40. package/dist/index.js.map +1 -1
  41. package/dist/utils/index.js +20 -12
  42. package/dist/utils/index.js.map +1 -1
  43. package/package.json +17 -12
  44. package/dist/components/image/style/index.js +0 -8
  45. package/dist/components/image/style/index.js.map +0 -1
  46. package/dist/components/pull-down-refresh/style/index.js +0 -8
  47. package/dist/components/pull-down-refresh/style/index.js.map +0 -1
  48. package/dist/components/scroll-view/style/index.js +0 -8
  49. package/dist/components/scroll-view/style/index.js.map +0 -1
  50. package/dist/components/swiper/style/index.js +0 -8
  51. package/dist/components/swiper/style/index.js.map +0 -1
  52. package/dist/components/text/style/index.js +0 -8
  53. package/dist/components/text/style/index.js.map +0 -1
  54. package/dist/components/view/style/index.js +0 -8
  55. package/dist/components/view/style/index.js.map +0 -1
  56. package/dist/node_modules/.pnpm/registry.npmjs.org_style-inject@0.3.0/node_modules/style-inject/dist/style-inject.es.js +0 -27
  57. package/dist/node_modules/.pnpm/registry.npmjs.org_style-inject@0.3.0/node_modules/style-inject/dist/style-inject.es.js.map +0 -1
  58. package/dist/node_modules/.pnpm/registry.npmjs.org_tslib@2.5.0/node_modules/tslib/tslib.es6.js +0 -446
  59. package/dist/node_modules/.pnpm/registry.npmjs.org_tslib@2.5.0/node_modules/tslib/tslib.es6.js.map +0 -1
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tarojs/components-react",
3
- "version": "4.0.0-beta.0",
3
+ "version": "4.0.0-beta.10",
4
4
  "description": "",
5
5
  "main:h5": "dist/index.js",
6
6
  "main": "dist/index.js",
@@ -8,7 +8,9 @@
8
8
  "types": "types/index.d.ts",
9
9
  "sideEffects": [
10
10
  "./dist/components/**/loader.js",
11
- "**/style/*.js"
11
+ "**/style/*.js",
12
+ "*.scss",
13
+ "*.css"
12
14
  ],
13
15
  "files": [
14
16
  "dist",
@@ -24,26 +26,29 @@
24
26
  "dependencies": {
25
27
  "@babel/runtime": "^7.14.5",
26
28
  "classnames": "^2.2.5",
27
- "intersection-observer": "^0.7.0",
28
- "resolve-pathname": "^3.0.0",
29
29
  "swiper": "6.8.0",
30
- "weui": "^1.1.2",
31
- "@tarojs/components": "4.0.0-beta.0",
32
- "@tarojs/taro": "4.0.0-beta.0"
30
+ "tslib": "^2.6.2",
31
+ "@tarojs/taro": "4.0.0-beta.10",
32
+ "@tarojs/components": "4.0.0-beta.10"
33
33
  },
34
34
  "devDependencies": {
35
35
  "@babel/core": "^7.14.5",
36
- "@rollup/plugin-babel": "^6.0.3",
36
+ "@rollup/plugin-babel": "^6.0.4",
37
37
  "@rollup/plugin-commonjs": "^25.0.7",
38
38
  "@rollup/plugin-node-resolve": "^15.2.3",
39
- "rollup": "^2.79.0",
39
+ "@rollup/plugin-typescript": "^11.1.0",
40
+ "postcss": "^8.4.18",
41
+ "rollup": "^3.8.1",
40
42
  "rollup-plugin-node-externals": "^5.0.0",
41
- "rollup-plugin-postcss": "^3.1.8",
43
+ "rollup-plugin-postcss": "^4.0.2",
42
44
  "rollup-plugin-ts": "^3.0.2",
43
45
  "typescript": "^4.7.4"
44
46
  },
45
47
  "scripts": {
46
- "build": "rollup -c",
47
- "dev": "rollup -c -w"
48
+ "prebuild": "pnpm run clean",
49
+ "build": "pnpm run rollup --environment NODE_ENV:production",
50
+ "clean": "rimraf ./dist",
51
+ "dev": "pnpm run rollup --environment NODE_ENV:development -w",
52
+ "rollup": "rollup --config rollup.config.ts --configPlugin @rollup/plugin-typescript --bundleConfigAsCjs"
48
53
  }
49
54
  }
@@ -1,8 +0,0 @@
1
- import styleInject from '../../../node_modules/.pnpm/registry.npmjs.org_style-inject@0.3.0/node_modules/style-inject/dist/style-inject.es.js';
2
-
3
- var css_248z = "img[src=\"\"] {\n opacity: 0;\n}\n\n.taro-img {\n display: inline-block;\n overflow: hidden;\n position: relative;\n font-size: 0;\n width: 320px;\n height: 240px;\n}\n\n.taro-img.taro-img__widthfix {\n height: 100%;\n}\n\n.taro-img__mode-scaletofill {\n object-fit: contain;\n width: 100%;\n height: 100%;\n}\n\n.taro-img__mode-aspectfit {\n object-fit: contain;\n width: 100%;\n height: 100%;\n}\n\n.taro-img__mode-aspectfill {\n object-fit: cover;\n width: 100%;\n height: 100%;\n}\n\n.taro-img__mode-widthfix {\n width: 100%;\n}\n\n.taro-img__mode-top {\n width: 100%;\n}\n\n.taro-img__mode-bottom {\n width: 100%;\n position: absolute;\n bottom: 0;\n}\n\n.taro-img__mode-left {\n height: 100%;\n}\n\n.taro-img__mode-right {\n position: absolute;\n height: 100%;\n right: 0;\n}\n\n.taro-img__mode-topright {\n position: absolute;\n right: 0;\n}\n\n.taro-img__mode-bottomleft {\n position: absolute;\n bottom: 0;\n}\n\n.taro-img__mode-bottomright {\n position: absolute;\n right: 0;\n bottom: 0;\n}\n";
4
- var stylesheet="img[src=\"\"] {\n opacity: 0;\n}\n\n.taro-img {\n display: inline-block;\n overflow: hidden;\n position: relative;\n font-size: 0;\n width: 320px;\n height: 240px;\n}\n\n.taro-img.taro-img__widthfix {\n height: 100%;\n}\n\n.taro-img__mode-scaletofill {\n object-fit: contain;\n width: 100%;\n height: 100%;\n}\n\n.taro-img__mode-aspectfit {\n object-fit: contain;\n width: 100%;\n height: 100%;\n}\n\n.taro-img__mode-aspectfill {\n object-fit: cover;\n width: 100%;\n height: 100%;\n}\n\n.taro-img__mode-widthfix {\n width: 100%;\n}\n\n.taro-img__mode-top {\n width: 100%;\n}\n\n.taro-img__mode-bottom {\n width: 100%;\n position: absolute;\n bottom: 0;\n}\n\n.taro-img__mode-left {\n height: 100%;\n}\n\n.taro-img__mode-right {\n position: absolute;\n height: 100%;\n right: 0;\n}\n\n.taro-img__mode-topright {\n position: absolute;\n right: 0;\n}\n\n.taro-img__mode-bottomleft {\n position: absolute;\n bottom: 0;\n}\n\n.taro-img__mode-bottomright {\n position: absolute;\n right: 0;\n bottom: 0;\n}\n";
5
- styleInject(css_248z,{"insertAt":"top"});
6
-
7
- export { css_248z as default, stylesheet };
8
- //# sourceMappingURL=index.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;"}
@@ -1,8 +0,0 @@
1
- import styleInject from '../../../node_modules/.pnpm/registry.npmjs.org_style-inject@0.3.0/node_modules/style-inject/dist/style-inject.es.js';
2
-
3
- var css_248z = ".rmc-pull-to-refresh-content {\r\n transform-origin: left top 0px;\r\n}\r\n.rmc-pull-to-refresh-content-wrapper {\r\n min-height: 100%;\r\n}\r\n\r\n.rmc-pull-to-refresh-transition {\r\n transition: transform 0.3s;\r\n}\r\n\r\n@keyframes rmc-pull-to-refresh-indicator {\r\n 50% {\r\n opacity: 0.2;\r\n }\r\n 100% {\r\n opacity: 1;\r\n }\r\n}\r\n\r\n.rmc-pull-to-refresh-indicator {\r\n text-align: center;\r\n height: 30px;\r\n line-height: 10px;\r\n}\r\n\r\n.rmc-pull-to-refresh-indicator > div {\r\n background-color: grey;\r\n width: 6px;\r\n height: 6px;\r\n border-radius: 100%;\r\n margin: 3px;\r\n animation-fill-mode: both;\r\n display: inline-block;\r\n animation: rmc-pull-to-refresh-indicator 0.5s 0s infinite linear;\r\n}\r\n.rmc-pull-to-refresh-indicator > div:nth-child(0) {\r\n animation-delay: -0.1s !important;\r\n}\r\n.rmc-pull-to-refresh-indicator > div:nth-child(1) {\r\n animation-delay: -0.2s !important;\r\n}\r\n.rmc-pull-to-refresh-indicator > div:nth-child(2) {\r\n animation-delay: -0.3s !important;\r\n}\r\n.rmc-pull-to-refresh-down .rmc-pull-to-refresh-indicator {\r\n margin-top: -25px;\r\n}\r\n";
4
- var stylesheet=".rmc-pull-to-refresh-content {\r\n transform-origin: left top 0px;\r\n}\r\n.rmc-pull-to-refresh-content-wrapper {\r\n min-height: 100%;\r\n}\r\n\r\n.rmc-pull-to-refresh-transition {\r\n transition: transform 0.3s;\r\n}\r\n\r\n@keyframes rmc-pull-to-refresh-indicator {\r\n 50% {\r\n opacity: 0.2;\r\n }\r\n 100% {\r\n opacity: 1;\r\n }\r\n}\r\n\r\n.rmc-pull-to-refresh-indicator {\r\n text-align: center;\r\n height: 30px;\r\n line-height: 10px;\r\n}\r\n\r\n.rmc-pull-to-refresh-indicator > div {\r\n background-color: grey;\r\n width: 6px;\r\n height: 6px;\r\n border-radius: 100%;\r\n margin: 3px;\r\n animation-fill-mode: both;\r\n display: inline-block;\r\n animation: rmc-pull-to-refresh-indicator 0.5s 0s infinite linear;\r\n}\r\n.rmc-pull-to-refresh-indicator > div:nth-child(0) {\r\n animation-delay: -0.1s !important;\r\n}\r\n.rmc-pull-to-refresh-indicator > div:nth-child(1) {\r\n animation-delay: -0.2s !important;\r\n}\r\n.rmc-pull-to-refresh-indicator > div:nth-child(2) {\r\n animation-delay: -0.3s !important;\r\n}\r\n.rmc-pull-to-refresh-down .rmc-pull-to-refresh-indicator {\r\n margin-top: -25px;\r\n}\r\n";
5
- styleInject(css_248z,{"insertAt":"top"});
6
-
7
- export { css_248z as default, stylesheet };
8
- //# sourceMappingURL=index.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;"}
@@ -1,8 +0,0 @@
1
- import styleInject from '../../../node_modules/.pnpm/registry.npmjs.org_style-inject@0.3.0/node_modules/style-inject/dist/style-inject.es.js';
2
-
3
- var css_248z = ".taro-scroll {\n -webkit-overflow-scrolling: auto;\n}\n\n.taro-scroll::-webkit-scrollbar {\n display: none;\n}\n\n.taro-scroll-view {\n overflow: hidden;\n}\n\n.taro-scroll-view__scroll-x {\n overflow-x: scroll;\n overflow-y: hidden;\n}\n\n.taro-scroll-view__scroll-y {\n overflow-x: hidden;\n overflow-y: scroll;\n}\n";
4
- var stylesheet=".taro-scroll {\n -webkit-overflow-scrolling: auto;\n}\n\n.taro-scroll::-webkit-scrollbar {\n display: none;\n}\n\n.taro-scroll-view {\n overflow: hidden;\n}\n\n.taro-scroll-view__scroll-x {\n overflow-x: scroll;\n overflow-y: hidden;\n}\n\n.taro-scroll-view__scroll-y {\n overflow-x: hidden;\n overflow-y: scroll;\n}\n";
5
- styleInject(css_248z,{"insertAt":"top"});
6
-
7
- export { css_248z as default, stylesheet };
8
- //# sourceMappingURL=index.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;"}
@@ -1,8 +0,0 @@
1
- import styleInject from '../../../node_modules/.pnpm/registry.npmjs.org_style-inject@0.3.0/node_modules/style-inject/dist/style-inject.es.js';
2
-
3
- var css_248z = ".swiper-container-wrapper {\n height: 150px;\n}\n\n.swiper-container {\n height: 100%;\n}\n\n.swiper-pagination {\n font-size: 0;\n}\n\n.swiper-pagination-bullet {\n opacity: 1\n}\n";
4
- var stylesheet=".swiper-container-wrapper {\n height: 150px;\n}\n\n.swiper-container {\n height: 100%;\n}\n\n.swiper-pagination {\n font-size: 0;\n}\n\n.swiper-pagination-bullet {\n opacity: 1\n}\n";
5
- styleInject(css_248z,{"insertAt":"top"});
6
-
7
- export { css_248z as default, stylesheet };
8
- //# sourceMappingURL=index.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;"}
@@ -1,8 +0,0 @@
1
- import styleInject from '../../../node_modules/.pnpm/registry.npmjs.org_style-inject@0.3.0/node_modules/style-inject/dist/style-inject.es.js';
2
-
3
- var css_248z = ".taro-text {\n -moz-user-select: none;\n -webkit-user-select: none;\n -ms-user-select: none;\n user-select: none;\n}\n\n.taro-text__selectable {\n -moz-user-select: text;\n -webkit-user-select: text;\n -ms-user-select: text;\n user-select: text;\n}\n";
4
- var stylesheet=".taro-text {\n -moz-user-select: none;\n -webkit-user-select: none;\n -ms-user-select: none;\n user-select: none;\n}\n\n.taro-text__selectable {\n -moz-user-select: text;\n -webkit-user-select: text;\n -ms-user-select: text;\n user-select: text;\n}\n";
5
- styleInject(css_248z,{"insertAt":"top"});
6
-
7
- export { css_248z as default, stylesheet };
8
- //# sourceMappingURL=index.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;"}
@@ -1,8 +0,0 @@
1
- import styleInject from '../../../node_modules/.pnpm/registry.npmjs.org_style-inject@0.3.0/node_modules/style-inject/dist/style-inject.es.js';
2
-
3
- var css_248z = "body, html{\n -webkit-tap-highlight-color: rgba(0, 0, 0, 0);\n user-select: none;\n -moz-user-select: none;\n -webkit-user-select: none;\n -ms-user-select: none;\n}\n";
4
- var stylesheet="body, html{\n -webkit-tap-highlight-color: rgba(0, 0, 0, 0);\n user-select: none;\n -moz-user-select: none;\n -webkit-user-select: none;\n -ms-user-select: none;\n}\n";
5
- styleInject(css_248z,{"insertAt":"top"});
6
-
7
- export { css_248z as default, stylesheet };
8
- //# sourceMappingURL=index.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;"}
@@ -1,27 +0,0 @@
1
- function styleInject(css, ref) {
2
- if (ref === void 0) ref = {};
3
- var insertAt = ref.insertAt;
4
- if (!css || typeof document === 'undefined') {
5
- return;
6
- }
7
- var head = document.head || document.getElementsByTagName('head')[0];
8
- var style = document.createElement('style');
9
- style.type = 'text/css';
10
- if (insertAt === 'top') {
11
- if (head.firstChild) {
12
- head.insertBefore(style, head.firstChild);
13
- } else {
14
- head.appendChild(style);
15
- }
16
- } else {
17
- head.appendChild(style);
18
- }
19
- if (style.styleSheet) {
20
- style.styleSheet.cssText = css;
21
- } else {
22
- style.appendChild(document.createTextNode(css));
23
- }
24
- }
25
-
26
- export { styleInject as default };
27
- //# sourceMappingURL=style-inject.es.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"style-inject.es.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;"}
@@ -1,446 +0,0 @@
1
- import _typeof from '@babel/runtime/helpers/typeof';
2
-
3
- /******************************************************************************
4
- Copyright (c) Microsoft Corporation.
5
-
6
- Permission to use, copy, modify, and/or distribute this software for any
7
- purpose with or without fee is hereby granted.
8
-
9
- THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
10
- REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
11
- AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
12
- INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
13
- LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
14
- OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
15
- PERFORMANCE OF THIS SOFTWARE.
16
- ***************************************************************************** */
17
- /* global Reflect, Promise */
18
-
19
- var _extendStatics = function extendStatics(d, b) {
20
- _extendStatics = Object.setPrototypeOf || {
21
- __proto__: []
22
- } instanceof Array && function (d, b) {
23
- d.__proto__ = b;
24
- } || function (d, b) {
25
- for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p];
26
- };
27
- return _extendStatics(d, b);
28
- };
29
- function __extends(d, b) {
30
- if (typeof b !== "function" && b !== null) throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
31
- _extendStatics(d, b);
32
- function __() {
33
- this.constructor = d;
34
- }
35
- d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
36
- }
37
- var _assign = function __assign() {
38
- _assign = Object.assign || function __assign(t) {
39
- for (var s, i = 1, n = arguments.length; i < n; i++) {
40
- s = arguments[i];
41
- for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];
42
- }
43
- return t;
44
- };
45
- return _assign.apply(this, arguments);
46
- };
47
- function __rest(s, e) {
48
- var t = {};
49
- for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) t[p] = s[p];
50
- if (s != null && typeof Object.getOwnPropertySymbols === "function") for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
51
- if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) t[p[i]] = s[p[i]];
52
- }
53
- return t;
54
- }
55
- function __decorate(decorators, target, key, desc) {
56
- var c = arguments.length,
57
- r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc,
58
- d;
59
- if ((typeof Reflect === "undefined" ? "undefined" : _typeof(Reflect)) === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
60
- return c > 3 && r && Object.defineProperty(target, key, r), r;
61
- }
62
- function __param(paramIndex, decorator) {
63
- return function (target, key) {
64
- decorator(target, key, paramIndex);
65
- };
66
- }
67
- function __esDecorate(ctor, descriptorIn, decorators, contextIn, initializers, extraInitializers) {
68
- function accept(f) {
69
- if (f !== void 0 && typeof f !== "function") throw new TypeError("Function expected");
70
- return f;
71
- }
72
- var kind = contextIn.kind,
73
- key = kind === "getter" ? "get" : kind === "setter" ? "set" : "value";
74
- var target = !descriptorIn && ctor ? contextIn["static"] ? ctor : ctor.prototype : null;
75
- var descriptor = descriptorIn || (target ? Object.getOwnPropertyDescriptor(target, contextIn.name) : {});
76
- var _,
77
- done = false;
78
- for (var i = decorators.length - 1; i >= 0; i--) {
79
- var context = {};
80
- for (var p in contextIn) context[p] = p === "access" ? {} : contextIn[p];
81
- for (var p in contextIn.access) context.access[p] = contextIn.access[p];
82
- context.addInitializer = function (f) {
83
- if (done) throw new TypeError("Cannot add initializers after decoration has completed");
84
- extraInitializers.push(accept(f || null));
85
- };
86
- var result = (0, decorators[i])(kind === "accessor" ? {
87
- get: descriptor.get,
88
- set: descriptor.set
89
- } : descriptor[key], context);
90
- if (kind === "accessor") {
91
- if (result === void 0) continue;
92
- if (result === null || _typeof(result) !== "object") throw new TypeError("Object expected");
93
- if (_ = accept(result.get)) descriptor.get = _;
94
- if (_ = accept(result.set)) descriptor.set = _;
95
- if (_ = accept(result.init)) initializers.push(_);
96
- } else if (_ = accept(result)) {
97
- if (kind === "field") initializers.push(_);else descriptor[key] = _;
98
- }
99
- }
100
- if (target) Object.defineProperty(target, contextIn.name, descriptor);
101
- done = true;
102
- }
103
- ;
104
- function __runInitializers(thisArg, initializers, value) {
105
- var useValue = arguments.length > 2;
106
- for (var i = 0; i < initializers.length; i++) {
107
- value = useValue ? initializers[i].call(thisArg, value) : initializers[i].call(thisArg);
108
- }
109
- return useValue ? value : void 0;
110
- }
111
- ;
112
- function __propKey(x) {
113
- return _typeof(x) === "symbol" ? x : "".concat(x);
114
- }
115
- ;
116
- function __setFunctionName(f, name, prefix) {
117
- if (_typeof(name) === "symbol") name = name.description ? "[".concat(name.description, "]") : "";
118
- return Object.defineProperty(f, "name", {
119
- configurable: true,
120
- value: prefix ? "".concat(prefix, " ", name) : name
121
- });
122
- }
123
- ;
124
- function __metadata(metadataKey, metadataValue) {
125
- if ((typeof Reflect === "undefined" ? "undefined" : _typeof(Reflect)) === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(metadataKey, metadataValue);
126
- }
127
- function __awaiter(thisArg, _arguments, P, generator) {
128
- function adopt(value) {
129
- return value instanceof P ? value : new P(function (resolve) {
130
- resolve(value);
131
- });
132
- }
133
- return new (P || (P = Promise))(function (resolve, reject) {
134
- function fulfilled(value) {
135
- try {
136
- step(generator.next(value));
137
- } catch (e) {
138
- reject(e);
139
- }
140
- }
141
- function rejected(value) {
142
- try {
143
- step(generator["throw"](value));
144
- } catch (e) {
145
- reject(e);
146
- }
147
- }
148
- function step(result) {
149
- result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected);
150
- }
151
- step((generator = generator.apply(thisArg, _arguments || [])).next());
152
- });
153
- }
154
- function __generator(thisArg, body) {
155
- var _ = {
156
- label: 0,
157
- sent: function sent() {
158
- if (t[0] & 1) throw t[1];
159
- return t[1];
160
- },
161
- trys: [],
162
- ops: []
163
- },
164
- f,
165
- y,
166
- t,
167
- g;
168
- return g = {
169
- next: verb(0),
170
- "throw": verb(1),
171
- "return": verb(2)
172
- }, typeof Symbol === "function" && (g[Symbol.iterator] = function () {
173
- return this;
174
- }), g;
175
- function verb(n) {
176
- return function (v) {
177
- return step([n, v]);
178
- };
179
- }
180
- function step(op) {
181
- if (f) throw new TypeError("Generator is already executing.");
182
- while (g && (g = 0, op[0] && (_ = 0)), _) try {
183
- if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
184
- if (y = 0, t) op = [op[0] & 2, t.value];
185
- switch (op[0]) {
186
- case 0:
187
- case 1:
188
- t = op;
189
- break;
190
- case 4:
191
- _.label++;
192
- return {
193
- value: op[1],
194
- done: false
195
- };
196
- case 5:
197
- _.label++;
198
- y = op[1];
199
- op = [0];
200
- continue;
201
- case 7:
202
- op = _.ops.pop();
203
- _.trys.pop();
204
- continue;
205
- default:
206
- if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) {
207
- _ = 0;
208
- continue;
209
- }
210
- if (op[0] === 3 && (!t || op[1] > t[0] && op[1] < t[3])) {
211
- _.label = op[1];
212
- break;
213
- }
214
- if (op[0] === 6 && _.label < t[1]) {
215
- _.label = t[1];
216
- t = op;
217
- break;
218
- }
219
- if (t && _.label < t[2]) {
220
- _.label = t[2];
221
- _.ops.push(op);
222
- break;
223
- }
224
- if (t[2]) _.ops.pop();
225
- _.trys.pop();
226
- continue;
227
- }
228
- op = body.call(thisArg, _);
229
- } catch (e) {
230
- op = [6, e];
231
- y = 0;
232
- } finally {
233
- f = t = 0;
234
- }
235
- if (op[0] & 5) throw op[1];
236
- return {
237
- value: op[0] ? op[1] : void 0,
238
- done: true
239
- };
240
- }
241
- }
242
- var __createBinding = Object.create ? function (o, m, k, k2) {
243
- if (k2 === undefined) k2 = k;
244
- var desc = Object.getOwnPropertyDescriptor(m, k);
245
- if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
246
- desc = {
247
- enumerable: true,
248
- get: function get() {
249
- return m[k];
250
- }
251
- };
252
- }
253
- Object.defineProperty(o, k2, desc);
254
- } : function (o, m, k, k2) {
255
- if (k2 === undefined) k2 = k;
256
- o[k2] = m[k];
257
- };
258
- function __exportStar(m, o) {
259
- for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(o, p)) __createBinding(o, m, p);
260
- }
261
- function __values(o) {
262
- var s = typeof Symbol === "function" && Symbol.iterator,
263
- m = s && o[s],
264
- i = 0;
265
- if (m) return m.call(o);
266
- if (o && typeof o.length === "number") return {
267
- next: function next() {
268
- if (o && i >= o.length) o = void 0;
269
- return {
270
- value: o && o[i++],
271
- done: !o
272
- };
273
- }
274
- };
275
- throw new TypeError(s ? "Object is not iterable." : "Symbol.iterator is not defined.");
276
- }
277
- function __read(o, n) {
278
- var m = typeof Symbol === "function" && o[Symbol.iterator];
279
- if (!m) return o;
280
- var i = m.call(o),
281
- r,
282
- ar = [],
283
- e;
284
- try {
285
- while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value);
286
- } catch (error) {
287
- e = {
288
- error: error
289
- };
290
- } finally {
291
- try {
292
- if (r && !r.done && (m = i["return"])) m.call(i);
293
- } finally {
294
- if (e) throw e.error;
295
- }
296
- }
297
- return ar;
298
- }
299
-
300
- /** @deprecated */
301
- function __spread() {
302
- for (var ar = [], i = 0; i < arguments.length; i++) ar = ar.concat(__read(arguments[i]));
303
- return ar;
304
- }
305
-
306
- /** @deprecated */
307
- function __spreadArrays() {
308
- for (var s = 0, i = 0, il = arguments.length; i < il; i++) s += arguments[i].length;
309
- for (var r = Array(s), k = 0, i = 0; i < il; i++) for (var a = arguments[i], j = 0, jl = a.length; j < jl; j++, k++) r[k] = a[j];
310
- return r;
311
- }
312
- function __spreadArray(to, from, pack) {
313
- if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) {
314
- if (ar || !(i in from)) {
315
- if (!ar) ar = Array.prototype.slice.call(from, 0, i);
316
- ar[i] = from[i];
317
- }
318
- }
319
- return to.concat(ar || Array.prototype.slice.call(from));
320
- }
321
- function __await(v) {
322
- return this instanceof __await ? (this.v = v, this) : new __await(v);
323
- }
324
- function __asyncGenerator(thisArg, _arguments, generator) {
325
- if (!Symbol.asyncIterator) throw new TypeError("Symbol.asyncIterator is not defined.");
326
- var g = generator.apply(thisArg, _arguments || []),
327
- i,
328
- q = [];
329
- return i = {}, verb("next"), verb("throw"), verb("return"), i[Symbol.asyncIterator] = function () {
330
- return this;
331
- }, i;
332
- function verb(n) {
333
- if (g[n]) i[n] = function (v) {
334
- return new Promise(function (a, b) {
335
- q.push([n, v, a, b]) > 1 || resume(n, v);
336
- });
337
- };
338
- }
339
- function resume(n, v) {
340
- try {
341
- step(g[n](v));
342
- } catch (e) {
343
- settle(q[0][3], e);
344
- }
345
- }
346
- function step(r) {
347
- r.value instanceof __await ? Promise.resolve(r.value.v).then(fulfill, reject) : settle(q[0][2], r);
348
- }
349
- function fulfill(value) {
350
- resume("next", value);
351
- }
352
- function reject(value) {
353
- resume("throw", value);
354
- }
355
- function settle(f, v) {
356
- if (f(v), q.shift(), q.length) resume(q[0][0], q[0][1]);
357
- }
358
- }
359
- function __asyncDelegator(o) {
360
- var i, p;
361
- return i = {}, verb("next"), verb("throw", function (e) {
362
- throw e;
363
- }), verb("return"), i[Symbol.iterator] = function () {
364
- return this;
365
- }, i;
366
- function verb(n, f) {
367
- i[n] = o[n] ? function (v) {
368
- return (p = !p) ? {
369
- value: __await(o[n](v)),
370
- done: false
371
- } : f ? f(v) : v;
372
- } : f;
373
- }
374
- }
375
- function __asyncValues(o) {
376
- if (!Symbol.asyncIterator) throw new TypeError("Symbol.asyncIterator is not defined.");
377
- var m = o[Symbol.asyncIterator],
378
- i;
379
- return m ? m.call(o) : (o = typeof __values === "function" ? __values(o) : o[Symbol.iterator](), i = {}, verb("next"), verb("throw"), verb("return"), i[Symbol.asyncIterator] = function () {
380
- return this;
381
- }, i);
382
- function verb(n) {
383
- i[n] = o[n] && function (v) {
384
- return new Promise(function (resolve, reject) {
385
- v = o[n](v), settle(resolve, reject, v.done, v.value);
386
- });
387
- };
388
- }
389
- function settle(resolve, reject, d, v) {
390
- Promise.resolve(v).then(function (v) {
391
- resolve({
392
- value: v,
393
- done: d
394
- });
395
- }, reject);
396
- }
397
- }
398
- function __makeTemplateObject(cooked, raw) {
399
- if (Object.defineProperty) {
400
- Object.defineProperty(cooked, "raw", {
401
- value: raw
402
- });
403
- } else {
404
- cooked.raw = raw;
405
- }
406
- return cooked;
407
- }
408
- ;
409
- var __setModuleDefault = Object.create ? function (o, v) {
410
- Object.defineProperty(o, "default", {
411
- enumerable: true,
412
- value: v
413
- });
414
- } : function (o, v) {
415
- o["default"] = v;
416
- };
417
- function __importStar(mod) {
418
- if (mod && mod.__esModule) return mod;
419
- var result = {};
420
- if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
421
- __setModuleDefault(result, mod);
422
- return result;
423
- }
424
- function __importDefault(mod) {
425
- return mod && mod.__esModule ? mod : {
426
- default: mod
427
- };
428
- }
429
- function __classPrivateFieldGet(receiver, state, kind, f) {
430
- if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a getter");
431
- if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot read private member from an object whose class did not declare it");
432
- return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
433
- }
434
- function __classPrivateFieldSet(receiver, state, value, kind, f) {
435
- if (kind === "m") throw new TypeError("Private method is not writable");
436
- if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a setter");
437
- if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot write private member to an object whose class did not declare it");
438
- return kind === "a" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value), value;
439
- }
440
- function __classPrivateFieldIn(state, receiver) {
441
- if (receiver === null || _typeof(receiver) !== "object" && typeof receiver !== "function") throw new TypeError("Cannot use 'in' operator on non-object");
442
- return typeof state === "function" ? receiver === state : state.has(receiver);
443
- }
444
-
445
- export { _assign as __assign, __asyncDelegator, __asyncGenerator, __asyncValues, __await, __awaiter, __classPrivateFieldGet, __classPrivateFieldIn, __classPrivateFieldSet, __createBinding, __decorate, __esDecorate, __exportStar, __extends, __generator, __importDefault, __importStar, __makeTemplateObject, __metadata, __param, __propKey, __read, __rest, __runInitializers, __setFunctionName, __spread, __spreadArray, __spreadArrays, __values };
446
- //# sourceMappingURL=tslib.es6.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"tslib.es6.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}