@tarojs/components 3.6.5-alpha.1 → 3.6.5-alpha.2

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 (32) hide show
  1. package/dist/cjs/taro-checkbox-core_2.cjs.entry.js +24 -5
  2. package/dist/cjs/taro-form-core.cjs.entry.js +23 -5
  3. package/dist/cjs/taro-radio-core_2.cjs.entry.js +24 -5
  4. package/dist/collection/components/checkbox/checkbox-group.js +24 -5
  5. package/dist/collection/components/form/form.js +23 -5
  6. package/dist/collection/components/radio/radio-group.js +24 -5
  7. package/dist/components/taro-checkbox-group-core.js +24 -5
  8. package/dist/components/taro-form-core.js +23 -5
  9. package/dist/components/taro-radio-group-core.js +24 -5
  10. package/dist/esm/taro-checkbox-core_2.entry.js +24 -5
  11. package/dist/esm/taro-form-core.entry.js +23 -5
  12. package/dist/esm/taro-radio-core_2.entry.js +24 -5
  13. package/dist/esm-es5/taro-checkbox-core_2.entry.js +1 -1
  14. package/dist/esm-es5/taro-form-core.entry.js +1 -1
  15. package/dist/esm-es5/taro-radio-core_2.entry.js +1 -1
  16. package/dist/taro-components/p-0d7a705b.system.entry.js +1 -0
  17. package/dist/taro-components/p-2a071adf.system.entry.js +1 -0
  18. package/dist/taro-components/p-43720011.entry.js +1 -0
  19. package/dist/taro-components/p-962f28cb.entry.js +1 -0
  20. package/dist/taro-components/p-b641e598.entry.js +1 -0
  21. package/dist/taro-components/p-ed331c06.system.js +1 -1
  22. package/dist/taro-components/p-fd7ff0f3.system.entry.js +1 -0
  23. package/dist/taro-components/taro-components.esm.js +1 -1
  24. package/dist/types/components/form/form.d.ts +1 -1
  25. package/package.json +4 -4
  26. package/types/ScrollView.d.ts +1 -1
  27. package/dist/taro-components/p-2ce33c64.system.entry.js +0 -1
  28. package/dist/taro-components/p-5125596b.entry.js +0 -1
  29. package/dist/taro-components/p-5ab755ed.entry.js +0 -1
  30. package/dist/taro-components/p-6c5f7bc3.system.entry.js +0 -1
  31. package/dist/taro-components/p-7e59fb3b.system.entry.js +0 -1
  32. package/dist/taro-components/p-a350c6cb.entry.js +0 -1
@@ -54,11 +54,29 @@ const Checkbox = class {
54
54
  };
55
55
  Checkbox.style = indexCss;
56
56
 
57
+ var __classPrivateFieldSet = (undefined && undefined.__classPrivateFieldSet) || function (receiver, state, value, kind, f) {
58
+ if (kind === "m")
59
+ throw new TypeError("Private method is not writable");
60
+ if (kind === "a" && !f)
61
+ throw new TypeError("Private accessor was defined without a setter");
62
+ if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver))
63
+ throw new TypeError("Cannot write private member to an object whose class did not declare it");
64
+ return (kind === "a" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value)), value;
65
+ };
66
+ var __classPrivateFieldGet = (undefined && undefined.__classPrivateFieldGet) || function (receiver, state, kind, f) {
67
+ if (kind === "a" && !f)
68
+ throw new TypeError("Private accessor was defined without a getter");
69
+ if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver))
70
+ throw new TypeError("Cannot read private member from an object whose class did not declare it");
71
+ return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
72
+ };
73
+ var _CheckboxGroup_value;
57
74
  const CheckboxGroup = class {
58
75
  constructor(hostRef) {
59
76
  index.registerInstance(this, hostRef);
60
77
  this.onChange = index.createEvent(this, "change", 7);
61
78
  this.uniqueName = Date.now().toString(36);
79
+ _CheckboxGroup_value.set(this, void 0);
62
80
  this.name = undefined;
63
81
  }
64
82
  function(e) {
@@ -66,9 +84,9 @@ const CheckboxGroup = class {
66
84
  if (e.target.tagName !== 'TARO-CHECKBOX-CORE')
67
85
  return;
68
86
  const childList = this.el.querySelectorAll('taro-checkbox-core');
69
- this.value = this.getValues(childList);
87
+ __classPrivateFieldSet(this, _CheckboxGroup_value, this.getValues(childList), "f");
70
88
  this.onChange.emit({
71
- value: this.value
89
+ value: __classPrivateFieldGet(this, _CheckboxGroup_value, "f")
72
90
  });
73
91
  }
74
92
  componentDidLoad() {
@@ -78,11 +96,11 @@ const CheckboxGroup = class {
78
96
  });
79
97
  Object.defineProperty(this.el, 'value', {
80
98
  get: () => {
81
- if (!this.value) {
99
+ if (!__classPrivateFieldGet(this, _CheckboxGroup_value, "f")) {
82
100
  const childList = this.el.querySelectorAll('taro-checkbox-core');
83
- this.value = this.getValues(childList);
101
+ __classPrivateFieldSet(this, _CheckboxGroup_value, this.getValues(childList), "f");
84
102
  }
85
- return this.value;
103
+ return __classPrivateFieldGet(this, _CheckboxGroup_value, "f");
86
104
  },
87
105
  configurable: true
88
106
  });
@@ -100,6 +118,7 @@ const CheckboxGroup = class {
100
118
  }
101
119
  get el() { return index.getElement(this); }
102
120
  };
121
+ _CheckboxGroup_value = new WeakMap();
103
122
 
104
123
  exports.taro_checkbox_core = Checkbox;
105
124
  exports.taro_checkbox_group_core = CheckboxGroup;
@@ -4,17 +4,34 @@ Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
5
  const index = require('./index-e751dfe3.js');
6
6
 
7
+ var __classPrivateFieldSet = (undefined && undefined.__classPrivateFieldSet) || function (receiver, state, value, kind, f) {
8
+ if (kind === "m")
9
+ throw new TypeError("Private method is not writable");
10
+ if (kind === "a" && !f)
11
+ throw new TypeError("Private accessor was defined without a setter");
12
+ if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver))
13
+ throw new TypeError("Cannot write private member to an object whose class did not declare it");
14
+ return (kind === "a" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value)), value;
15
+ };
16
+ var __classPrivateFieldGet = (undefined && undefined.__classPrivateFieldGet) || function (receiver, state, kind, f) {
17
+ if (kind === "a" && !f)
18
+ throw new TypeError("Private accessor was defined without a getter");
19
+ if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver))
20
+ throw new TypeError("Cannot read private member from an object whose class did not declare it");
21
+ return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
22
+ };
23
+ var _Form_value;
7
24
  const Form = class {
8
25
  constructor(hostRef) {
9
26
  index.registerInstance(this, hostRef);
10
27
  this.onSubmit = index.createEvent(this, "submit", 7);
11
- this.value = {};
28
+ _Form_value.set(this, {});
12
29
  }
13
30
  onButtonSubmit(e) {
14
31
  e.stopPropagation();
15
- this.value = this.getFormValue();
32
+ __classPrivateFieldSet(this, _Form_value, this.getFormValue(), "f");
16
33
  this.onSubmit.emit({
17
- value: this.value
34
+ value: __classPrivateFieldGet(this, _Form_value, "f")
18
35
  });
19
36
  }
20
37
  onButtonReset(e) {
@@ -22,9 +39,9 @@ const Form = class {
22
39
  this.form.reset();
23
40
  }
24
41
  componentDidLoad() {
25
- this.value = this.getFormValue();
42
+ __classPrivateFieldSet(this, _Form_value, this.getFormValue(), "f");
26
43
  Object.defineProperty(this.el, 'value', {
27
- get: () => this.value,
44
+ get: () => __classPrivateFieldGet(this, _Form_value, "f"),
28
45
  configurable: true
29
46
  });
30
47
  }
@@ -121,5 +138,6 @@ const Form = class {
121
138
  }
122
139
  get el() { return index.getElement(this); }
123
140
  };
141
+ _Form_value = new WeakMap();
124
142
 
125
143
  exports.taro_form_core = Form;
@@ -57,11 +57,29 @@ const Radio = class {
57
57
  }; }
58
58
  };
59
59
 
60
+ var __classPrivateFieldSet = (undefined && undefined.__classPrivateFieldSet) || function (receiver, state, value, kind, f) {
61
+ if (kind === "m")
62
+ throw new TypeError("Private method is not writable");
63
+ if (kind === "a" && !f)
64
+ throw new TypeError("Private accessor was defined without a setter");
65
+ if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver))
66
+ throw new TypeError("Cannot write private member to an object whose class did not declare it");
67
+ return (kind === "a" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value)), value;
68
+ };
69
+ var __classPrivateFieldGet = (undefined && undefined.__classPrivateFieldGet) || function (receiver, state, kind, f) {
70
+ if (kind === "a" && !f)
71
+ throw new TypeError("Private accessor was defined without a getter");
72
+ if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver))
73
+ throw new TypeError("Cannot read private member from an object whose class did not declare it");
74
+ return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
75
+ };
76
+ var _RadioGroup_value;
60
77
  const RadioGroup = class {
61
78
  constructor(hostRef) {
62
79
  index.registerInstance(this, hostRef);
63
80
  this.onChange = index.createEvent(this, "change", 7);
64
81
  this.uniqueName = Date.now().toString(36);
82
+ _RadioGroup_value.set(this, void 0);
65
83
  this.name = undefined;
66
84
  }
67
85
  function(e) {
@@ -76,9 +94,9 @@ const RadioGroup = class {
76
94
  element.checked = false;
77
95
  }
78
96
  });
79
- this.value = e.detail.value;
97
+ __classPrivateFieldSet(this, _RadioGroup_value, e.detail.value, "f");
80
98
  this.onChange.emit({
81
- value: this.value
99
+ value: __classPrivateFieldGet(this, _RadioGroup_value, "f")
82
100
  });
83
101
  }
84
102
  }
@@ -89,11 +107,11 @@ const RadioGroup = class {
89
107
  });
90
108
  Object.defineProperty(this.el, 'value', {
91
109
  get: () => {
92
- if (!this.value) {
110
+ if (!__classPrivateFieldGet(this, _RadioGroup_value, "f")) {
93
111
  const childList = this.el.querySelectorAll('taro-radio-core');
94
- this.value = this.getValues(childList);
112
+ __classPrivateFieldSet(this, _RadioGroup_value, this.getValues(childList), "f");
95
113
  }
96
- return this.value;
114
+ return __classPrivateFieldGet(this, _RadioGroup_value, "f");
97
115
  },
98
116
  configurable: true
99
117
  });
@@ -114,6 +132,7 @@ const RadioGroup = class {
114
132
  }
115
133
  get el() { return index.getElement(this); }
116
134
  };
135
+ _RadioGroup_value = new WeakMap();
117
136
 
118
137
  exports.taro_radio_core = Radio;
119
138
  exports.taro_radio_group_core = RadioGroup;
@@ -1,8 +1,26 @@
1
+ var __classPrivateFieldSet = (this && this.__classPrivateFieldSet) || function (receiver, state, value, kind, f) {
2
+ if (kind === "m")
3
+ throw new TypeError("Private method is not writable");
4
+ if (kind === "a" && !f)
5
+ throw new TypeError("Private accessor was defined without a setter");
6
+ if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver))
7
+ throw new TypeError("Cannot write private member to an object whose class did not declare it");
8
+ return (kind === "a" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value)), value;
9
+ };
10
+ var __classPrivateFieldGet = (this && this.__classPrivateFieldGet) || function (receiver, state, kind, f) {
11
+ if (kind === "a" && !f)
12
+ throw new TypeError("Private accessor was defined without a getter");
13
+ if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver))
14
+ throw new TypeError("Cannot read private member from an object whose class did not declare it");
15
+ return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
16
+ };
17
+ var _CheckboxGroup_value;
1
18
  // eslint-disable-next-line @typescript-eslint/no-unused-vars
2
19
  import { h, Host } from '@stencil/core';
3
20
  export class CheckboxGroup {
4
21
  constructor() {
5
22
  this.uniqueName = Date.now().toString(36);
23
+ _CheckboxGroup_value.set(this, void 0);
6
24
  this.name = undefined;
7
25
  }
8
26
  function(e) {
@@ -10,9 +28,9 @@ export class CheckboxGroup {
10
28
  if (e.target.tagName !== 'TARO-CHECKBOX-CORE')
11
29
  return;
12
30
  const childList = this.el.querySelectorAll('taro-checkbox-core');
13
- this.value = this.getValues(childList);
31
+ __classPrivateFieldSet(this, _CheckboxGroup_value, this.getValues(childList), "f");
14
32
  this.onChange.emit({
15
- value: this.value
33
+ value: __classPrivateFieldGet(this, _CheckboxGroup_value, "f")
16
34
  });
17
35
  }
18
36
  componentDidLoad() {
@@ -22,11 +40,11 @@ export class CheckboxGroup {
22
40
  });
23
41
  Object.defineProperty(this.el, 'value', {
24
42
  get: () => {
25
- if (!this.value) {
43
+ if (!__classPrivateFieldGet(this, _CheckboxGroup_value, "f")) {
26
44
  const childList = this.el.querySelectorAll('taro-checkbox-core');
27
- this.value = this.getValues(childList);
45
+ __classPrivateFieldSet(this, _CheckboxGroup_value, this.getValues(childList), "f");
28
46
  }
29
- return this.value;
47
+ return __classPrivateFieldGet(this, _CheckboxGroup_value, "f");
30
48
  },
31
49
  configurable: true
32
50
  });
@@ -93,3 +111,4 @@ export class CheckboxGroup {
93
111
  }];
94
112
  }
95
113
  }
114
+ _CheckboxGroup_value = new WeakMap();
@@ -1,13 +1,30 @@
1
+ var __classPrivateFieldSet = (this && this.__classPrivateFieldSet) || function (receiver, state, value, kind, f) {
2
+ if (kind === "m")
3
+ throw new TypeError("Private method is not writable");
4
+ if (kind === "a" && !f)
5
+ throw new TypeError("Private accessor was defined without a setter");
6
+ if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver))
7
+ throw new TypeError("Cannot write private member to an object whose class did not declare it");
8
+ return (kind === "a" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value)), value;
9
+ };
10
+ var __classPrivateFieldGet = (this && this.__classPrivateFieldGet) || function (receiver, state, kind, f) {
11
+ if (kind === "a" && !f)
12
+ throw new TypeError("Private accessor was defined without a getter");
13
+ if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver))
14
+ throw new TypeError("Cannot read private member from an object whose class did not declare it");
15
+ return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
16
+ };
17
+ var _Form_value;
1
18
  import { h } from '@stencil/core';
2
19
  export class Form {
3
20
  constructor() {
4
- this.value = {};
21
+ _Form_value.set(this, {});
5
22
  }
6
23
  onButtonSubmit(e) {
7
24
  e.stopPropagation();
8
- this.value = this.getFormValue();
25
+ __classPrivateFieldSet(this, _Form_value, this.getFormValue(), "f");
9
26
  this.onSubmit.emit({
10
- value: this.value
27
+ value: __classPrivateFieldGet(this, _Form_value, "f")
11
28
  });
12
29
  }
13
30
  onButtonReset(e) {
@@ -15,9 +32,9 @@ export class Form {
15
32
  this.form.reset();
16
33
  }
17
34
  componentDidLoad() {
18
- this.value = this.getFormValue();
35
+ __classPrivateFieldSet(this, _Form_value, this.getFormValue(), "f");
19
36
  Object.defineProperty(this.el, 'value', {
20
- get: () => this.value,
37
+ get: () => __classPrivateFieldGet(this, _Form_value, "f"),
21
38
  configurable: true
22
39
  });
23
40
  }
@@ -148,3 +165,4 @@ export class Form {
148
165
  }];
149
166
  }
150
167
  }
168
+ _Form_value = new WeakMap();
@@ -1,7 +1,25 @@
1
+ var __classPrivateFieldSet = (this && this.__classPrivateFieldSet) || function (receiver, state, value, kind, f) {
2
+ if (kind === "m")
3
+ throw new TypeError("Private method is not writable");
4
+ if (kind === "a" && !f)
5
+ throw new TypeError("Private accessor was defined without a setter");
6
+ if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver))
7
+ throw new TypeError("Cannot write private member to an object whose class did not declare it");
8
+ return (kind === "a" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value)), value;
9
+ };
10
+ var __classPrivateFieldGet = (this && this.__classPrivateFieldGet) || function (receiver, state, kind, f) {
11
+ if (kind === "a" && !f)
12
+ throw new TypeError("Private accessor was defined without a getter");
13
+ if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver))
14
+ throw new TypeError("Cannot read private member from an object whose class did not declare it");
15
+ return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
16
+ };
17
+ var _RadioGroup_value;
1
18
  import { h, Host } from '@stencil/core';
2
19
  export class RadioGroup {
3
20
  constructor() {
4
21
  this.uniqueName = Date.now().toString(36);
22
+ _RadioGroup_value.set(this, void 0);
5
23
  this.name = undefined;
6
24
  }
7
25
  function(e) {
@@ -16,9 +34,9 @@ export class RadioGroup {
16
34
  element.checked = false;
17
35
  }
18
36
  });
19
- this.value = e.detail.value;
37
+ __classPrivateFieldSet(this, _RadioGroup_value, e.detail.value, "f");
20
38
  this.onChange.emit({
21
- value: this.value
39
+ value: __classPrivateFieldGet(this, _RadioGroup_value, "f")
22
40
  });
23
41
  }
24
42
  }
@@ -29,11 +47,11 @@ export class RadioGroup {
29
47
  });
30
48
  Object.defineProperty(this.el, 'value', {
31
49
  get: () => {
32
- if (!this.value) {
50
+ if (!__classPrivateFieldGet(this, _RadioGroup_value, "f")) {
33
51
  const childList = this.el.querySelectorAll('taro-radio-core');
34
- this.value = this.getValues(childList);
52
+ __classPrivateFieldSet(this, _RadioGroup_value, this.getValues(childList), "f");
35
53
  }
36
- return this.value;
54
+ return __classPrivateFieldGet(this, _RadioGroup_value, "f");
37
55
  },
38
56
  configurable: true
39
57
  });
@@ -103,3 +121,4 @@ export class RadioGroup {
103
121
  }];
104
122
  }
105
123
  }
124
+ _RadioGroup_value = new WeakMap();
@@ -1,11 +1,29 @@
1
1
  import { proxyCustomElement, HTMLElement, createEvent, h, Host } from '@stencil/core/internal/client';
2
2
 
3
+ var __classPrivateFieldSet = (undefined && undefined.__classPrivateFieldSet) || function (receiver, state, value, kind, f) {
4
+ if (kind === "m")
5
+ throw new TypeError("Private method is not writable");
6
+ if (kind === "a" && !f)
7
+ throw new TypeError("Private accessor was defined without a setter");
8
+ if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver))
9
+ throw new TypeError("Cannot write private member to an object whose class did not declare it");
10
+ return (kind === "a" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value)), value;
11
+ };
12
+ var __classPrivateFieldGet = (undefined && undefined.__classPrivateFieldGet) || function (receiver, state, kind, f) {
13
+ if (kind === "a" && !f)
14
+ throw new TypeError("Private accessor was defined without a getter");
15
+ if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver))
16
+ throw new TypeError("Cannot read private member from an object whose class did not declare it");
17
+ return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
18
+ };
19
+ var _CheckboxGroup_value;
3
20
  const CheckboxGroup = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement {
4
21
  constructor() {
5
22
  super();
6
23
  this.__registerHost();
7
24
  this.onChange = createEvent(this, "change", 7);
8
25
  this.uniqueName = Date.now().toString(36);
26
+ _CheckboxGroup_value.set(this, void 0);
9
27
  this.name = undefined;
10
28
  }
11
29
  function(e) {
@@ -13,9 +31,9 @@ const CheckboxGroup = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement
13
31
  if (e.target.tagName !== 'TARO-CHECKBOX-CORE')
14
32
  return;
15
33
  const childList = this.el.querySelectorAll('taro-checkbox-core');
16
- this.value = this.getValues(childList);
34
+ __classPrivateFieldSet(this, _CheckboxGroup_value, this.getValues(childList), "f");
17
35
  this.onChange.emit({
18
- value: this.value
36
+ value: __classPrivateFieldGet(this, _CheckboxGroup_value, "f")
19
37
  });
20
38
  }
21
39
  componentDidLoad() {
@@ -25,11 +43,11 @@ const CheckboxGroup = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement
25
43
  });
26
44
  Object.defineProperty(this.el, 'value', {
27
45
  get: () => {
28
- if (!this.value) {
46
+ if (!__classPrivateFieldGet(this, _CheckboxGroup_value, "f")) {
29
47
  const childList = this.el.querySelectorAll('taro-checkbox-core');
30
- this.value = this.getValues(childList);
48
+ __classPrivateFieldSet(this, _CheckboxGroup_value, this.getValues(childList), "f");
31
49
  }
32
- return this.value;
50
+ return __classPrivateFieldGet(this, _CheckboxGroup_value, "f");
33
51
  },
34
52
  configurable: true
35
53
  });
@@ -49,6 +67,7 @@ const CheckboxGroup = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement
49
67
  }, [0, "taro-checkbox-group-core", {
50
68
  "name": [8]
51
69
  }, [[0, "checkboxchange", "function"]]]);
70
+ _CheckboxGroup_value = new WeakMap();
52
71
  function defineCustomElement$1() {
53
72
  if (typeof customElements === "undefined") {
54
73
  return;
@@ -1,17 +1,34 @@
1
1
  import { proxyCustomElement, HTMLElement, createEvent, h } from '@stencil/core/internal/client';
2
2
 
3
+ var __classPrivateFieldSet = (undefined && undefined.__classPrivateFieldSet) || function (receiver, state, value, kind, f) {
4
+ if (kind === "m")
5
+ throw new TypeError("Private method is not writable");
6
+ if (kind === "a" && !f)
7
+ throw new TypeError("Private accessor was defined without a setter");
8
+ if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver))
9
+ throw new TypeError("Cannot write private member to an object whose class did not declare it");
10
+ return (kind === "a" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value)), value;
11
+ };
12
+ var __classPrivateFieldGet = (undefined && undefined.__classPrivateFieldGet) || function (receiver, state, kind, f) {
13
+ if (kind === "a" && !f)
14
+ throw new TypeError("Private accessor was defined without a getter");
15
+ if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver))
16
+ throw new TypeError("Cannot read private member from an object whose class did not declare it");
17
+ return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
18
+ };
19
+ var _Form_value;
3
20
  const Form = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement {
4
21
  constructor() {
5
22
  super();
6
23
  this.__registerHost();
7
24
  this.onSubmit = createEvent(this, "submit", 7);
8
- this.value = {};
25
+ _Form_value.set(this, {});
9
26
  }
10
27
  onButtonSubmit(e) {
11
28
  e.stopPropagation();
12
- this.value = this.getFormValue();
29
+ __classPrivateFieldSet(this, _Form_value, this.getFormValue(), "f");
13
30
  this.onSubmit.emit({
14
- value: this.value
31
+ value: __classPrivateFieldGet(this, _Form_value, "f")
15
32
  });
16
33
  }
17
34
  onButtonReset(e) {
@@ -19,9 +36,9 @@ const Form = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement {
19
36
  this.form.reset();
20
37
  }
21
38
  componentDidLoad() {
22
- this.value = this.getFormValue();
39
+ __classPrivateFieldSet(this, _Form_value, this.getFormValue(), "f");
23
40
  Object.defineProperty(this.el, 'value', {
24
- get: () => this.value,
41
+ get: () => __classPrivateFieldGet(this, _Form_value, "f"),
25
42
  configurable: true
26
43
  });
27
44
  }
@@ -118,6 +135,7 @@ const Form = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement {
118
135
  }
119
136
  get el() { return this; }
120
137
  }, [4, "taro-form-core", undefined, [[0, "tarobuttonsubmit", "onButtonSubmit"], [0, "tarobuttonreset", "onButtonReset"]]]);
138
+ _Form_value = new WeakMap();
121
139
  function defineCustomElement$1() {
122
140
  if (typeof customElements === "undefined") {
123
141
  return;
@@ -1,11 +1,29 @@
1
1
  import { proxyCustomElement, HTMLElement, createEvent, h, Host } from '@stencil/core/internal/client';
2
2
 
3
+ var __classPrivateFieldSet = (undefined && undefined.__classPrivateFieldSet) || function (receiver, state, value, kind, f) {
4
+ if (kind === "m")
5
+ throw new TypeError("Private method is not writable");
6
+ if (kind === "a" && !f)
7
+ throw new TypeError("Private accessor was defined without a setter");
8
+ if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver))
9
+ throw new TypeError("Cannot write private member to an object whose class did not declare it");
10
+ return (kind === "a" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value)), value;
11
+ };
12
+ var __classPrivateFieldGet = (undefined && undefined.__classPrivateFieldGet) || function (receiver, state, kind, f) {
13
+ if (kind === "a" && !f)
14
+ throw new TypeError("Private accessor was defined without a getter");
15
+ if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver))
16
+ throw new TypeError("Cannot read private member from an object whose class did not declare it");
17
+ return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
18
+ };
19
+ var _RadioGroup_value;
3
20
  const RadioGroup = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement {
4
21
  constructor() {
5
22
  super();
6
23
  this.__registerHost();
7
24
  this.onChange = createEvent(this, "change", 7);
8
25
  this.uniqueName = Date.now().toString(36);
26
+ _RadioGroup_value.set(this, void 0);
9
27
  this.name = undefined;
10
28
  }
11
29
  function(e) {
@@ -20,9 +38,9 @@ const RadioGroup = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement {
20
38
  element.checked = false;
21
39
  }
22
40
  });
23
- this.value = e.detail.value;
41
+ __classPrivateFieldSet(this, _RadioGroup_value, e.detail.value, "f");
24
42
  this.onChange.emit({
25
- value: this.value
43
+ value: __classPrivateFieldGet(this, _RadioGroup_value, "f")
26
44
  });
27
45
  }
28
46
  }
@@ -33,11 +51,11 @@ const RadioGroup = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement {
33
51
  });
34
52
  Object.defineProperty(this.el, 'value', {
35
53
  get: () => {
36
- if (!this.value) {
54
+ if (!__classPrivateFieldGet(this, _RadioGroup_value, "f")) {
37
55
  const childList = this.el.querySelectorAll('taro-radio-core');
38
- this.value = this.getValues(childList);
56
+ __classPrivateFieldSet(this, _RadioGroup_value, this.getValues(childList), "f");
39
57
  }
40
- return this.value;
58
+ return __classPrivateFieldGet(this, _RadioGroup_value, "f");
41
59
  },
42
60
  configurable: true
43
61
  });
@@ -60,6 +78,7 @@ const RadioGroup = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement {
60
78
  }, [0, "taro-radio-group-core", {
61
79
  "name": [8]
62
80
  }, [[0, "radiochange", "function"]]]);
81
+ _RadioGroup_value = new WeakMap();
63
82
  function defineCustomElement$1() {
64
83
  if (typeof customElements === "undefined") {
65
84
  return;
@@ -50,11 +50,29 @@ const Checkbox = class {
50
50
  };
51
51
  Checkbox.style = indexCss;
52
52
 
53
+ var __classPrivateFieldSet = (undefined && undefined.__classPrivateFieldSet) || function (receiver, state, value, kind, f) {
54
+ if (kind === "m")
55
+ throw new TypeError("Private method is not writable");
56
+ if (kind === "a" && !f)
57
+ throw new TypeError("Private accessor was defined without a setter");
58
+ if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver))
59
+ throw new TypeError("Cannot write private member to an object whose class did not declare it");
60
+ return (kind === "a" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value)), value;
61
+ };
62
+ var __classPrivateFieldGet = (undefined && undefined.__classPrivateFieldGet) || function (receiver, state, kind, f) {
63
+ if (kind === "a" && !f)
64
+ throw new TypeError("Private accessor was defined without a getter");
65
+ if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver))
66
+ throw new TypeError("Cannot read private member from an object whose class did not declare it");
67
+ return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
68
+ };
69
+ var _CheckboxGroup_value;
53
70
  const CheckboxGroup = class {
54
71
  constructor(hostRef) {
55
72
  registerInstance(this, hostRef);
56
73
  this.onChange = createEvent(this, "change", 7);
57
74
  this.uniqueName = Date.now().toString(36);
75
+ _CheckboxGroup_value.set(this, void 0);
58
76
  this.name = undefined;
59
77
  }
60
78
  function(e) {
@@ -62,9 +80,9 @@ const CheckboxGroup = class {
62
80
  if (e.target.tagName !== 'TARO-CHECKBOX-CORE')
63
81
  return;
64
82
  const childList = this.el.querySelectorAll('taro-checkbox-core');
65
- this.value = this.getValues(childList);
83
+ __classPrivateFieldSet(this, _CheckboxGroup_value, this.getValues(childList), "f");
66
84
  this.onChange.emit({
67
- value: this.value
85
+ value: __classPrivateFieldGet(this, _CheckboxGroup_value, "f")
68
86
  });
69
87
  }
70
88
  componentDidLoad() {
@@ -74,11 +92,11 @@ const CheckboxGroup = class {
74
92
  });
75
93
  Object.defineProperty(this.el, 'value', {
76
94
  get: () => {
77
- if (!this.value) {
95
+ if (!__classPrivateFieldGet(this, _CheckboxGroup_value, "f")) {
78
96
  const childList = this.el.querySelectorAll('taro-checkbox-core');
79
- this.value = this.getValues(childList);
97
+ __classPrivateFieldSet(this, _CheckboxGroup_value, this.getValues(childList), "f");
80
98
  }
81
- return this.value;
99
+ return __classPrivateFieldGet(this, _CheckboxGroup_value, "f");
82
100
  },
83
101
  configurable: true
84
102
  });
@@ -96,5 +114,6 @@ const CheckboxGroup = class {
96
114
  }
97
115
  get el() { return getElement(this); }
98
116
  };
117
+ _CheckboxGroup_value = new WeakMap();
99
118
 
100
119
  export { Checkbox as taro_checkbox_core, CheckboxGroup as taro_checkbox_group_core };
@@ -1,16 +1,33 @@
1
1
  import { r as registerInstance, c as createEvent, h, g as getElement } from './index-980f930f.js';
2
2
 
3
+ var __classPrivateFieldSet = (undefined && undefined.__classPrivateFieldSet) || function (receiver, state, value, kind, f) {
4
+ if (kind === "m")
5
+ throw new TypeError("Private method is not writable");
6
+ if (kind === "a" && !f)
7
+ throw new TypeError("Private accessor was defined without a setter");
8
+ if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver))
9
+ throw new TypeError("Cannot write private member to an object whose class did not declare it");
10
+ return (kind === "a" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value)), value;
11
+ };
12
+ var __classPrivateFieldGet = (undefined && undefined.__classPrivateFieldGet) || function (receiver, state, kind, f) {
13
+ if (kind === "a" && !f)
14
+ throw new TypeError("Private accessor was defined without a getter");
15
+ if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver))
16
+ throw new TypeError("Cannot read private member from an object whose class did not declare it");
17
+ return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
18
+ };
19
+ var _Form_value;
3
20
  const Form = class {
4
21
  constructor(hostRef) {
5
22
  registerInstance(this, hostRef);
6
23
  this.onSubmit = createEvent(this, "submit", 7);
7
- this.value = {};
24
+ _Form_value.set(this, {});
8
25
  }
9
26
  onButtonSubmit(e) {
10
27
  e.stopPropagation();
11
- this.value = this.getFormValue();
28
+ __classPrivateFieldSet(this, _Form_value, this.getFormValue(), "f");
12
29
  this.onSubmit.emit({
13
- value: this.value
30
+ value: __classPrivateFieldGet(this, _Form_value, "f")
14
31
  });
15
32
  }
16
33
  onButtonReset(e) {
@@ -18,9 +35,9 @@ const Form = class {
18
35
  this.form.reset();
19
36
  }
20
37
  componentDidLoad() {
21
- this.value = this.getFormValue();
38
+ __classPrivateFieldSet(this, _Form_value, this.getFormValue(), "f");
22
39
  Object.defineProperty(this.el, 'value', {
23
- get: () => this.value,
40
+ get: () => __classPrivateFieldGet(this, _Form_value, "f"),
24
41
  configurable: true
25
42
  });
26
43
  }
@@ -117,5 +134,6 @@ const Form = class {
117
134
  }
118
135
  get el() { return getElement(this); }
119
136
  };
137
+ _Form_value = new WeakMap();
120
138
 
121
139
  export { Form as taro_form_core };
@@ -53,11 +53,29 @@ const Radio = class {
53
53
  }; }
54
54
  };
55
55
 
56
+ var __classPrivateFieldSet = (undefined && undefined.__classPrivateFieldSet) || function (receiver, state, value, kind, f) {
57
+ if (kind === "m")
58
+ throw new TypeError("Private method is not writable");
59
+ if (kind === "a" && !f)
60
+ throw new TypeError("Private accessor was defined without a setter");
61
+ if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver))
62
+ throw new TypeError("Cannot write private member to an object whose class did not declare it");
63
+ return (kind === "a" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value)), value;
64
+ };
65
+ var __classPrivateFieldGet = (undefined && undefined.__classPrivateFieldGet) || function (receiver, state, kind, f) {
66
+ if (kind === "a" && !f)
67
+ throw new TypeError("Private accessor was defined without a getter");
68
+ if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver))
69
+ throw new TypeError("Cannot read private member from an object whose class did not declare it");
70
+ return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
71
+ };
72
+ var _RadioGroup_value;
56
73
  const RadioGroup = class {
57
74
  constructor(hostRef) {
58
75
  registerInstance(this, hostRef);
59
76
  this.onChange = createEvent(this, "change", 7);
60
77
  this.uniqueName = Date.now().toString(36);
78
+ _RadioGroup_value.set(this, void 0);
61
79
  this.name = undefined;
62
80
  }
63
81
  function(e) {
@@ -72,9 +90,9 @@ const RadioGroup = class {
72
90
  element.checked = false;
73
91
  }
74
92
  });
75
- this.value = e.detail.value;
93
+ __classPrivateFieldSet(this, _RadioGroup_value, e.detail.value, "f");
76
94
  this.onChange.emit({
77
- value: this.value
95
+ value: __classPrivateFieldGet(this, _RadioGroup_value, "f")
78
96
  });
79
97
  }
80
98
  }
@@ -85,11 +103,11 @@ const RadioGroup = class {
85
103
  });
86
104
  Object.defineProperty(this.el, 'value', {
87
105
  get: () => {
88
- if (!this.value) {
106
+ if (!__classPrivateFieldGet(this, _RadioGroup_value, "f")) {
89
107
  const childList = this.el.querySelectorAll('taro-radio-core');
90
- this.value = this.getValues(childList);
108
+ __classPrivateFieldSet(this, _RadioGroup_value, this.getValues(childList), "f");
91
109
  }
92
- return this.value;
110
+ return __classPrivateFieldGet(this, _RadioGroup_value, "f");
93
111
  },
94
112
  configurable: true
95
113
  });
@@ -110,5 +128,6 @@ const RadioGroup = class {
110
128
  }
111
129
  get el() { return getElement(this); }
112
130
  };
131
+ _RadioGroup_value = new WeakMap();
113
132
 
114
133
  export { Radio as taro_radio_core, RadioGroup as taro_radio_group_core };
@@ -1 +1 @@
1
- import{r as registerInstance,c as createEvent,h,H as Host,g as getElement}from"./index-980f930f.js";var indexCss='.taro-checkbox{display:inline-block;position:relative}.taro-checkbox_checked{display:inline-block;position:relative;top:5px;border:1px solid #d1d1d1;border-radius:3px;width:23px;height:23px;min-height:0;-webkit-appearance:none;-moz-appearance:none;appearance:none;outline:0;background-color:#fff;vertical-align:0;font-size:23px;color:#1aad19}.taro-checkbox_checked:checked::before{display:inline-block;position:absolute;left:50%;top:50%;vertical-align:middle;text-decoration:inherit;text-align:center;text-transform:none;font-family:weui;font-style:normal;font-weight:normal;font-variant:normal;font-size:inherit;color:inherit;content:"\\ea08";-webkit-transform:translate(-50%, -48%) scale(0.73);transform:translate(-50%, -48%) scale(0.73);speak:none}';var Checkbox=function(){function e(e){var t=this;registerInstance(this,e);this.onChange=createEvent(this,"checkboxchange",7);this.handleChange=function(e){e.stopPropagation();t.onChange.emit({value:t.value})};this.name=undefined;this.value="";this.color=undefined;this.id=undefined;this.checked=false;this.disabled=false;this.nativeProps={};this.isWillLoadCalled=false}e.prototype.watchId=function(e){if(!this.isWillLoadCalled)return;if(e)this.inputEl.setAttribute("id",e)};e.prototype.componentWillLoad=function(){this.isWillLoadCalled=true};e.prototype.componentDidRender=function(){this.id&&this.el.removeAttribute("id")};e.prototype.render=function(){var e=this;var t=this,n=t.checked,o=t.name,i=t.color,r=t.value,a=t.disabled,c=t.nativeProps;return h(Host,{className:"weui-cells_checkbox"},h("input",Object.assign({ref:function(t){if(!t)return;e.inputEl=t;if(e.id)t.setAttribute("id",e.id)},type:"checkbox",value:r,name:o,class:"taro-checkbox_checked",style:{color:i},checked:n,disabled:a,onChange:this.handleChange},c)),h("slot",null))};Object.defineProperty(e.prototype,"el",{get:function(){return getElement(this)},enumerable:false,configurable:true});Object.defineProperty(e,"watchers",{get:function(){return{id:["watchId"]}},enumerable:false,configurable:true});return e}();Checkbox.style=indexCss;var CheckboxGroup=function(){function e(e){registerInstance(this,e);this.onChange=createEvent(this,"change",7);this.uniqueName=Date.now().toString(36);this.name=undefined}e.prototype.function=function(e){e.stopPropagation();if(e.target.tagName!=="TARO-CHECKBOX-CORE")return;var t=this.el.querySelectorAll("taro-checkbox-core");this.value=this.getValues(t);this.onChange.emit({value:this.value})};e.prototype.componentDidLoad=function(){var e=this;var t=this.el.querySelectorAll("taro-checkbox-core");t.forEach((function(t){t.setAttribute("name",e.name||e.uniqueName)}));Object.defineProperty(this.el,"value",{get:function(){if(!e.value){var t=e.el.querySelectorAll("taro-checkbox-core");e.value=e.getValues(t)}return e.value},configurable:true})};e.prototype.getValues=function(e){return Array.from(e).filter((function(e){var t=e.querySelector("input");return t===null||t===void 0?void 0:t.checked})).map((function(e){return e.value}))};e.prototype.render=function(){return h(Host,null)};Object.defineProperty(e.prototype,"el",{get:function(){return getElement(this)},enumerable:false,configurable:true});return e}();export{Checkbox as taro_checkbox_core,CheckboxGroup as taro_checkbox_group_core};
1
+ import{r as registerInstance,c as createEvent,h,H as Host,g as getElement}from"./index-980f930f.js";var indexCss='.taro-checkbox{display:inline-block;position:relative}.taro-checkbox_checked{display:inline-block;position:relative;top:5px;border:1px solid #d1d1d1;border-radius:3px;width:23px;height:23px;min-height:0;-webkit-appearance:none;-moz-appearance:none;appearance:none;outline:0;background-color:#fff;vertical-align:0;font-size:23px;color:#1aad19}.taro-checkbox_checked:checked::before{display:inline-block;position:absolute;left:50%;top:50%;vertical-align:middle;text-decoration:inherit;text-align:center;text-transform:none;font-family:weui;font-style:normal;font-weight:normal;font-variant:normal;font-size:inherit;color:inherit;content:"\\ea08";-webkit-transform:translate(-50%, -48%) scale(0.73);transform:translate(-50%, -48%) scale(0.73);speak:none}';var Checkbox=function(){function e(e){var t=this;registerInstance(this,e);this.onChange=createEvent(this,"checkboxchange",7);this.handleChange=function(e){e.stopPropagation();t.onChange.emit({value:t.value})};this.name=undefined;this.value="";this.color=undefined;this.id=undefined;this.checked=false;this.disabled=false;this.nativeProps={};this.isWillLoadCalled=false}e.prototype.watchId=function(e){if(!this.isWillLoadCalled)return;if(e)this.inputEl.setAttribute("id",e)};e.prototype.componentWillLoad=function(){this.isWillLoadCalled=true};e.prototype.componentDidRender=function(){this.id&&this.el.removeAttribute("id")};e.prototype.render=function(){var e=this;var t=this,r=t.checked,o=t.name,n=t.color,i=t.value,a=t.disabled,c=t.nativeProps;return h(Host,{className:"weui-cells_checkbox"},h("input",Object.assign({ref:function(t){if(!t)return;e.inputEl=t;if(e.id)t.setAttribute("id",e.id)},type:"checkbox",value:i,name:o,class:"taro-checkbox_checked",style:{color:n},checked:r,disabled:a,onChange:this.handleChange},c)),h("slot",null))};Object.defineProperty(e.prototype,"el",{get:function(){return getElement(this)},enumerable:false,configurable:true});Object.defineProperty(e,"watchers",{get:function(){return{id:["watchId"]}},enumerable:false,configurable:true});return e}();Checkbox.style=indexCss;var __classPrivateFieldSet=undefined&&undefined.__classPrivateFieldSet||function(e,t,r,o,n){if(o==="m")throw new TypeError("Private method is not writable");if(o==="a"&&!n)throw new TypeError("Private accessor was defined without a setter");if(typeof t==="function"?e!==t||!n:!t.has(e))throw new TypeError("Cannot write private member to an object whose class did not declare it");return o==="a"?n.call(e,r):n?n.value=r:t.set(e,r),r};var __classPrivateFieldGet=undefined&&undefined.__classPrivateFieldGet||function(e,t,r,o){if(r==="a"&&!o)throw new TypeError("Private accessor was defined without a getter");if(typeof t==="function"?e!==t||!o:!t.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return r==="m"?o:r==="a"?o.call(e):o?o.value:t.get(e)};var _CheckboxGroup_value;var CheckboxGroup=function(){function e(e){registerInstance(this,e);this.onChange=createEvent(this,"change",7);this.uniqueName=Date.now().toString(36);_CheckboxGroup_value.set(this,void 0);this.name=undefined}e.prototype.function=function(e){e.stopPropagation();if(e.target.tagName!=="TARO-CHECKBOX-CORE")return;var t=this.el.querySelectorAll("taro-checkbox-core");__classPrivateFieldSet(this,_CheckboxGroup_value,this.getValues(t),"f");this.onChange.emit({value:__classPrivateFieldGet(this,_CheckboxGroup_value,"f")})};e.prototype.componentDidLoad=function(){var e=this;var t=this.el.querySelectorAll("taro-checkbox-core");t.forEach((function(t){t.setAttribute("name",e.name||e.uniqueName)}));Object.defineProperty(this.el,"value",{get:function(){if(!__classPrivateFieldGet(e,_CheckboxGroup_value,"f")){var t=e.el.querySelectorAll("taro-checkbox-core");__classPrivateFieldSet(e,_CheckboxGroup_value,e.getValues(t),"f")}return __classPrivateFieldGet(e,_CheckboxGroup_value,"f")},configurable:true})};e.prototype.getValues=function(e){return Array.from(e).filter((function(e){var t=e.querySelector("input");return t===null||t===void 0?void 0:t.checked})).map((function(e){return e.value}))};e.prototype.render=function(){return h(Host,null)};Object.defineProperty(e.prototype,"el",{get:function(){return getElement(this)},enumerable:false,configurable:true});return e}();_CheckboxGroup_value=new WeakMap;export{Checkbox as taro_checkbox_core,CheckboxGroup as taro_checkbox_group_core};
@@ -1 +1 @@
1
- import{r as registerInstance,c as createEvent,h,g as getElement}from"./index-980f930f.js";var Form=function(){function e(e){registerInstance(this,e);this.onSubmit=createEvent(this,"submit",7);this.value={}}e.prototype.onButtonSubmit=function(e){e.stopPropagation();this.value=this.getFormValue();this.onSubmit.emit({value:this.value})};e.prototype.onButtonReset=function(e){e.stopPropagation();this.form.reset()};e.prototype.componentDidLoad=function(){var e=this;this.value=this.getFormValue();Object.defineProperty(this.el,"value",{get:function(){return e.value},configurable:true})};e.prototype.componentDidRender=function(){var e=this;if(!this.originalAppendChild){this.originalAppendChild=this.el.appendChild;this.originalInsertBefore=this.el.insertBefore;this.originalReplaceChild=this.el.replaceChild;this.originalRemoveChild=this.el.removeChild}if(!this.form){this.el.appendChild=this.originalAppendChild;this.el.insertBefore=this.originalInsertBefore;this.el.replaceChild=this.originalReplaceChild;this.el.removeChild=this.originalRemoveChild;return}this.el.appendChild=function(t){return e.form.appendChild(t)};this.el.insertBefore=function(t,i){return e.form.insertBefore(t,i)};this.el.replaceChild=function(t,i){return e.form.replaceChild(t,i)};this.el.removeChild=function(t){return e.form.removeChild(t)}};e.prototype.getFormValue=function(){var e=this.el;var t=[];var i=e.getElementsByTagName("input");for(var r=0;r<i.length;r++){t.push(i[r])}var n={};var o={};t.forEach((function(e){if(typeof e.name!=="string")return;if(e.className.indexOf("weui-switch")!==-1){n[e.name]=e.checked;return}if(e.type==="radio"){if(e.checked){o[e.name]=true;n[e.name]=e.value}else{if(!o[e.name]){n[e.name]=""}}return}if(e.type==="checkbox"){if(e.checked){if(o[e.name]){n[e.name].push(e.value)}else{o[e.name]=true;n[e.name]=[e.value]}}else{if(!o[e.name]){n[e.name]=[]}}return}n[e.name]=e.value}));var a=e.getElementsByTagName("textarea");var l=[];for(var s=0;s<a.length;s++){l.push(a[s])}l.forEach((function(e){if(typeof e.name!=="string")return;n[e.name]=e.value}));return n};e.prototype.render=function(){var e=this;return h("form",{ref:function(t){e.form=t}},h("slot",null))};Object.defineProperty(e.prototype,"el",{get:function(){return getElement(this)},enumerable:false,configurable:true});return e}();export{Form as taro_form_core};
1
+ import{r as registerInstance,c as createEvent,h,g as getElement}from"./index-980f930f.js";var __classPrivateFieldSet=undefined&&undefined.__classPrivateFieldSet||function(e,t,r,i,n){if(i==="m")throw new TypeError("Private method is not writable");if(i==="a"&&!n)throw new TypeError("Private accessor was defined without a setter");if(typeof t==="function"?e!==t||!n:!t.has(e))throw new TypeError("Cannot write private member to an object whose class did not declare it");return i==="a"?n.call(e,r):n?n.value=r:t.set(e,r),r};var __classPrivateFieldGet=undefined&&undefined.__classPrivateFieldGet||function(e,t,r,i){if(r==="a"&&!i)throw new TypeError("Private accessor was defined without a getter");if(typeof t==="function"?e!==t||!i:!t.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return r==="m"?i:r==="a"?i.call(e):i?i.value:t.get(e)};var _Form_value;var Form=function(){function e(e){registerInstance(this,e);this.onSubmit=createEvent(this,"submit",7);_Form_value.set(this,{})}e.prototype.onButtonSubmit=function(e){e.stopPropagation();__classPrivateFieldSet(this,_Form_value,this.getFormValue(),"f");this.onSubmit.emit({value:__classPrivateFieldGet(this,_Form_value,"f")})};e.prototype.onButtonReset=function(e){e.stopPropagation();this.form.reset()};e.prototype.componentDidLoad=function(){var e=this;__classPrivateFieldSet(this,_Form_value,this.getFormValue(),"f");Object.defineProperty(this.el,"value",{get:function(){return __classPrivateFieldGet(e,_Form_value,"f")},configurable:true})};e.prototype.componentDidRender=function(){var e=this;if(!this.originalAppendChild){this.originalAppendChild=this.el.appendChild;this.originalInsertBefore=this.el.insertBefore;this.originalReplaceChild=this.el.replaceChild;this.originalRemoveChild=this.el.removeChild}if(!this.form){this.el.appendChild=this.originalAppendChild;this.el.insertBefore=this.originalInsertBefore;this.el.replaceChild=this.originalReplaceChild;this.el.removeChild=this.originalRemoveChild;return}this.el.appendChild=function(t){return e.form.appendChild(t)};this.el.insertBefore=function(t,r){return e.form.insertBefore(t,r)};this.el.replaceChild=function(t,r){return e.form.replaceChild(t,r)};this.el.removeChild=function(t){return e.form.removeChild(t)}};e.prototype.getFormValue=function(){var e=this.el;var t=[];var r=e.getElementsByTagName("input");for(var i=0;i<r.length;i++){t.push(r[i])}var n={};var a={};t.forEach((function(e){if(typeof e.name!=="string")return;if(e.className.indexOf("weui-switch")!==-1){n[e.name]=e.checked;return}if(e.type==="radio"){if(e.checked){a[e.name]=true;n[e.name]=e.value}else{if(!a[e.name]){n[e.name]=""}}return}if(e.type==="checkbox"){if(e.checked){if(a[e.name]){n[e.name].push(e.value)}else{a[e.name]=true;n[e.name]=[e.value]}}else{if(!a[e.name]){n[e.name]=[]}}return}n[e.name]=e.value}));var o=e.getElementsByTagName("textarea");var l=[];for(var s=0;s<o.length;s++){l.push(o[s])}l.forEach((function(e){if(typeof e.name!=="string")return;n[e.name]=e.value}));return n};e.prototype.render=function(){var e=this;return h("form",{ref:function(t){e.form=t}},h("slot",null))};Object.defineProperty(e.prototype,"el",{get:function(){return getElement(this)},enumerable:false,configurable:true});return e}();_Form_value=new WeakMap;export{Form as taro_form_core};
@@ -1 +1 @@
1
- import{r as registerInstance,c as createEvent,h,H as Host,g as getElement}from"./index-980f930f.js";var Radio=function(){function e(e){var t=this;registerInstance(this,e);this.onChange=createEvent(this,"radiochange",7);this.handleClick=function(e){e.stopPropagation();if(t.disabled)return;if(!t.checked)t.checked=true};this.name=undefined;this.value="";this.id=undefined;this.checked=false;this.disabled=false;this.nativeProps={};this.isWillLoadCalled=false}e.prototype.watchChecked=function(e){if(!this.isWillLoadCalled)return;e&&this.onChange.emit({value:this.value})};e.prototype.watchId=function(e){if(!this.isWillLoadCalled)return;if(e)this.inputEl.setAttribute("id",e)};e.prototype.componentDidRender=function(){this.id&&this.el.removeAttribute("id")};e.prototype.componentWillLoad=function(){this.isWillLoadCalled=true};e.prototype.render=function(){var e=this;var t=this,i=t.checked,r=t.name,n=t.value,a=t.disabled,o=t.nativeProps;return h(Host,{className:"weui-cells_checkbox",onClick:this.handleClick},h("input",Object.assign({ref:function(t){if(!t)return;e.inputEl=t;if(e.id)t.setAttribute("id",e.id)},type:"radio",name:r,value:n,class:"weui-check",checked:i,disabled:a,onChange:function(e){return e.stopPropagation()}},o)),h("i",{class:"weui-icon-checked"}),h("slot",null))};Object.defineProperty(e.prototype,"el",{get:function(){return getElement(this)},enumerable:false,configurable:true});Object.defineProperty(e,"watchers",{get:function(){return{checked:["watchChecked"],id:["watchId"]}},enumerable:false,configurable:true});return e}();var RadioGroup=function(){function e(e){registerInstance(this,e);this.onChange=createEvent(this,"change",7);this.uniqueName=Date.now().toString(36);this.name=undefined}e.prototype.function=function(e){e.stopPropagation();if(e.target.tagName!=="TARO-RADIO-CORE")return;var t=e.target;if(t.checked){var i=this.el.querySelectorAll("taro-radio-core");i.forEach((function(e){if(e!==t){e.checked=false}}));this.value=e.detail.value;this.onChange.emit({value:this.value})}};e.prototype.componentDidLoad=function(){var e=this;var t=this.el.querySelectorAll("taro-radio-core");t.forEach((function(t){t.setAttribute("name",e.name||e.uniqueName)}));Object.defineProperty(this.el,"value",{get:function(){if(!e.value){var t=e.el.querySelectorAll("taro-radio-core");e.value=e.getValues(t)}return e.value},configurable:true})};e.prototype.getValues=function(e){var t="";Array.from(e).forEach((function(e){var i=e.querySelector("input");if(i===null||i===void 0?void 0:i.checked){t=i.value||""}}));return t};e.prototype.render=function(){return h(Host,{class:"weui-cells_radiogroup"})};Object.defineProperty(e.prototype,"el",{get:function(){return getElement(this)},enumerable:false,configurable:true});return e}();export{Radio as taro_radio_core,RadioGroup as taro_radio_group_core};
1
+ import{r as registerInstance,c as createEvent,h,H as Host,g as getElement}from"./index-980f930f.js";var Radio=function(){function e(e){var t=this;registerInstance(this,e);this.onChange=createEvent(this,"radiochange",7);this.handleClick=function(e){e.stopPropagation();if(t.disabled)return;if(!t.checked)t.checked=true};this.name=undefined;this.value="";this.id=undefined;this.checked=false;this.disabled=false;this.nativeProps={};this.isWillLoadCalled=false}e.prototype.watchChecked=function(e){if(!this.isWillLoadCalled)return;e&&this.onChange.emit({value:this.value})};e.prototype.watchId=function(e){if(!this.isWillLoadCalled)return;if(e)this.inputEl.setAttribute("id",e)};e.prototype.componentDidRender=function(){this.id&&this.el.removeAttribute("id")};e.prototype.componentWillLoad=function(){this.isWillLoadCalled=true};e.prototype.render=function(){var e=this;var t=this,i=t.checked,r=t.name,a=t.value,o=t.disabled,n=t.nativeProps;return h(Host,{className:"weui-cells_checkbox",onClick:this.handleClick},h("input",Object.assign({ref:function(t){if(!t)return;e.inputEl=t;if(e.id)t.setAttribute("id",e.id)},type:"radio",name:r,value:a,class:"weui-check",checked:i,disabled:o,onChange:function(e){return e.stopPropagation()}},n)),h("i",{class:"weui-icon-checked"}),h("slot",null))};Object.defineProperty(e.prototype,"el",{get:function(){return getElement(this)},enumerable:false,configurable:true});Object.defineProperty(e,"watchers",{get:function(){return{checked:["watchChecked"],id:["watchId"]}},enumerable:false,configurable:true});return e}();var __classPrivateFieldSet=undefined&&undefined.__classPrivateFieldSet||function(e,t,i,r,a){if(r==="m")throw new TypeError("Private method is not writable");if(r==="a"&&!a)throw new TypeError("Private accessor was defined without a setter");if(typeof t==="function"?e!==t||!a:!t.has(e))throw new TypeError("Cannot write private member to an object whose class did not declare it");return r==="a"?a.call(e,i):a?a.value=i:t.set(e,i),i};var __classPrivateFieldGet=undefined&&undefined.__classPrivateFieldGet||function(e,t,i,r){if(i==="a"&&!r)throw new TypeError("Private accessor was defined without a getter");if(typeof t==="function"?e!==t||!r:!t.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return i==="m"?r:i==="a"?r.call(e):r?r.value:t.get(e)};var _RadioGroup_value;var RadioGroup=function(){function e(e){registerInstance(this,e);this.onChange=createEvent(this,"change",7);this.uniqueName=Date.now().toString(36);_RadioGroup_value.set(this,void 0);this.name=undefined}e.prototype.function=function(e){e.stopPropagation();if(e.target.tagName!=="TARO-RADIO-CORE")return;var t=e.target;if(t.checked){var i=this.el.querySelectorAll("taro-radio-core");i.forEach((function(e){if(e!==t){e.checked=false}}));__classPrivateFieldSet(this,_RadioGroup_value,e.detail.value,"f");this.onChange.emit({value:__classPrivateFieldGet(this,_RadioGroup_value,"f")})}};e.prototype.componentDidLoad=function(){var e=this;var t=this.el.querySelectorAll("taro-radio-core");t.forEach((function(t){t.setAttribute("name",e.name||e.uniqueName)}));Object.defineProperty(this.el,"value",{get:function(){if(!__classPrivateFieldGet(e,_RadioGroup_value,"f")){var t=e.el.querySelectorAll("taro-radio-core");__classPrivateFieldSet(e,_RadioGroup_value,e.getValues(t),"f")}return __classPrivateFieldGet(e,_RadioGroup_value,"f")},configurable:true})};e.prototype.getValues=function(e){var t="";Array.from(e).forEach((function(e){var i=e.querySelector("input");if(i===null||i===void 0?void 0:i.checked){t=i.value||""}}));return t};e.prototype.render=function(){return h(Host,{class:"weui-cells_radiogroup"})};Object.defineProperty(e.prototype,"el",{get:function(){return getElement(this)},enumerable:false,configurable:true});return e}();_RadioGroup_value=new WeakMap;export{Radio as taro_radio_core,RadioGroup as taro_radio_group_core};
@@ -0,0 +1 @@
1
+ System.register(["./p-7e6b54cb.system.js"],(function(e){"use strict";var t,i,r,n,o;return{setters:[function(e){t=e.r;i=e.c;r=e.h;n=e.H;o=e.g}],execute:function(){var a=e("taro_radio_core",function(){function e(e){var r=this;t(this,e);this.onChange=i(this,"radiochange",7);this.handleClick=function(e){e.stopPropagation();if(r.disabled)return;if(!r.checked)r.checked=true};this.name=undefined;this.value="";this.id=undefined;this.checked=false;this.disabled=false;this.nativeProps={};this.isWillLoadCalled=false}e.prototype.watchChecked=function(e){if(!this.isWillLoadCalled)return;e&&this.onChange.emit({value:this.value})};e.prototype.watchId=function(e){if(!this.isWillLoadCalled)return;if(e)this.inputEl.setAttribute("id",e)};e.prototype.componentDidRender=function(){this.id&&this.el.removeAttribute("id")};e.prototype.componentWillLoad=function(){this.isWillLoadCalled=true};e.prototype.render=function(){var e=this;var t=this,i=t.checked,o=t.name,a=t.value,c=t.disabled,u=t.nativeProps;return r(n,{className:"weui-cells_checkbox",onClick:this.handleClick},r("input",Object.assign({ref:function(t){if(!t)return;e.inputEl=t;if(e.id)t.setAttribute("id",e.id)},type:"radio",name:o,value:a,class:"weui-check",checked:i,disabled:c,onChange:function(e){return e.stopPropagation()}},u)),r("i",{class:"weui-icon-checked"}),r("slot",null))};Object.defineProperty(e.prototype,"el",{get:function(){return o(this)},enumerable:false,configurable:true});Object.defineProperty(e,"watchers",{get:function(){return{checked:["watchChecked"],id:["watchId"]}},enumerable:false,configurable:true});return e}());var c=undefined&&undefined.__classPrivateFieldSet||function(e,t,i,r,n){if(r==="m")throw new TypeError("Private method is not writable");if(r==="a"&&!n)throw new TypeError("Private accessor was defined without a setter");if(typeof t==="function"?e!==t||!n:!t.has(e))throw new TypeError("Cannot write private member to an object whose class did not declare it");return r==="a"?n.call(e,i):n?n.value=i:t.set(e,i),i};var u=undefined&&undefined.__classPrivateFieldGet||function(e,t,i,r){if(i==="a"&&!r)throw new TypeError("Private accessor was defined without a getter");if(typeof t==="function"?e!==t||!r:!t.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return i==="m"?r:i==="a"?r.call(e):r?r.value:t.get(e)};var s;var l=e("taro_radio_group_core",function(){function e(e){t(this,e);this.onChange=i(this,"change",7);this.uniqueName=Date.now().toString(36);s.set(this,void 0);this.name=undefined}e.prototype.function=function(e){e.stopPropagation();if(e.target.tagName!=="TARO-RADIO-CORE")return;var t=e.target;if(t.checked){var i=this.el.querySelectorAll("taro-radio-core");i.forEach((function(e){if(e!==t){e.checked=false}}));c(this,s,e.detail.value,"f");this.onChange.emit({value:u(this,s,"f")})}};e.prototype.componentDidLoad=function(){var e=this;var t=this.el.querySelectorAll("taro-radio-core");t.forEach((function(t){t.setAttribute("name",e.name||e.uniqueName)}));Object.defineProperty(this.el,"value",{get:function(){if(!u(e,s,"f")){var t=e.el.querySelectorAll("taro-radio-core");c(e,s,e.getValues(t),"f")}return u(e,s,"f")},configurable:true})};e.prototype.getValues=function(e){var t="";Array.from(e).forEach((function(e){var i=e.querySelector("input");if(i===null||i===void 0?void 0:i.checked){t=i.value||""}}));return t};e.prototype.render=function(){return r(n,{class:"weui-cells_radiogroup"})};Object.defineProperty(e.prototype,"el",{get:function(){return o(this)},enumerable:false,configurable:true});return e}());s=new WeakMap}}}));
@@ -0,0 +1 @@
1
+ System.register(["./p-7e6b54cb.system.js"],(function(e){"use strict";var t,n,r,i,o;return{setters:[function(e){t=e.r;n=e.c;r=e.h;i=e.H;o=e.g}],execute:function(){var a='.taro-checkbox{display:inline-block;position:relative}.taro-checkbox_checked{display:inline-block;position:relative;top:5px;border:1px solid #d1d1d1;border-radius:3px;width:23px;height:23px;min-height:0;-webkit-appearance:none;-moz-appearance:none;appearance:none;outline:0;background-color:#fff;vertical-align:0;font-size:23px;color:#1aad19}.taro-checkbox_checked:checked::before{display:inline-block;position:absolute;left:50%;top:50%;vertical-align:middle;text-decoration:inherit;text-align:center;text-transform:none;font-family:weui;font-style:normal;font-weight:normal;font-variant:normal;font-size:inherit;color:inherit;content:"\\ea08";-webkit-transform:translate(-50%, -48%) scale(0.73);transform:translate(-50%, -48%) scale(0.73);speak:none}';var c=e("taro_checkbox_core",function(){function e(e){var r=this;t(this,e);this.onChange=n(this,"checkboxchange",7);this.handleChange=function(e){e.stopPropagation();r.onChange.emit({value:r.value})};this.name=undefined;this.value="";this.color=undefined;this.id=undefined;this.checked=false;this.disabled=false;this.nativeProps={};this.isWillLoadCalled=false}e.prototype.watchId=function(e){if(!this.isWillLoadCalled)return;if(e)this.inputEl.setAttribute("id",e)};e.prototype.componentWillLoad=function(){this.isWillLoadCalled=true};e.prototype.componentDidRender=function(){this.id&&this.el.removeAttribute("id")};e.prototype.render=function(){var e=this;var t=this,n=t.checked,o=t.name,a=t.color,c=t.value,l=t.disabled,s=t.nativeProps;return r(i,{className:"weui-cells_checkbox"},r("input",Object.assign({ref:function(t){if(!t)return;e.inputEl=t;if(e.id)t.setAttribute("id",e.id)},type:"checkbox",value:c,name:o,class:"taro-checkbox_checked",style:{color:a},checked:n,disabled:l,onChange:this.handleChange},s)),r("slot",null))};Object.defineProperty(e.prototype,"el",{get:function(){return o(this)},enumerable:false,configurable:true});Object.defineProperty(e,"watchers",{get:function(){return{id:["watchId"]}},enumerable:false,configurable:true});return e}());c.style=a;var l=undefined&&undefined.__classPrivateFieldSet||function(e,t,n,r,i){if(r==="m")throw new TypeError("Private method is not writable");if(r==="a"&&!i)throw new TypeError("Private accessor was defined without a setter");if(typeof t==="function"?e!==t||!i:!t.has(e))throw new TypeError("Cannot write private member to an object whose class did not declare it");return r==="a"?i.call(e,n):i?i.value=n:t.set(e,n),n};var s=undefined&&undefined.__classPrivateFieldGet||function(e,t,n,r){if(n==="a"&&!r)throw new TypeError("Private accessor was defined without a getter");if(typeof t==="function"?e!==t||!r:!t.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return n==="m"?r:n==="a"?r.call(e):r?r.value:t.get(e)};var u;var h=e("taro_checkbox_group_core",function(){function e(e){t(this,e);this.onChange=n(this,"change",7);this.uniqueName=Date.now().toString(36);u.set(this,void 0);this.name=undefined}e.prototype.function=function(e){e.stopPropagation();if(e.target.tagName!=="TARO-CHECKBOX-CORE")return;var t=this.el.querySelectorAll("taro-checkbox-core");l(this,u,this.getValues(t),"f");this.onChange.emit({value:s(this,u,"f")})};e.prototype.componentDidLoad=function(){var e=this;var t=this.el.querySelectorAll("taro-checkbox-core");t.forEach((function(t){t.setAttribute("name",e.name||e.uniqueName)}));Object.defineProperty(this.el,"value",{get:function(){if(!s(e,u,"f")){var t=e.el.querySelectorAll("taro-checkbox-core");l(e,u,e.getValues(t),"f")}return s(e,u,"f")},configurable:true})};e.prototype.getValues=function(e){return Array.from(e).filter((function(e){var t=e.querySelector("input");return t===null||t===void 0?void 0:t.checked})).map((function(e){return e.value}))};e.prototype.render=function(){return r(i,null)};Object.defineProperty(e.prototype,"el",{get:function(){return o(this)},enumerable:false,configurable:true});return e}());u=new WeakMap}}}));
@@ -0,0 +1 @@
1
+ import{r as t,c as i,h as e,g as s}from"./p-9137dcab.js";var r,o=function(t,i,e,s,r){if("m"===s)throw new TypeError("Private method is not writable");if("a"===s&&!r)throw new TypeError("Private accessor was defined without a setter");if("function"==typeof i?t!==i||!r:!i.has(t))throw new TypeError("Cannot write private member to an object whose class did not declare it");return"a"===s?r.call(t,e):r?r.value=e:i.set(t,e),e},h=function(t,i,e,s){if("a"===e&&!s)throw new TypeError("Private accessor was defined without a getter");if("function"==typeof i?t!==i||!s:!i.has(t))throw new TypeError("Cannot read private member from an object whose class did not declare it");return"m"===e?s:"a"===e?s.call(t):s?s.value:i.get(t)};const n=class{constructor(e){t(this,e),this.onSubmit=i(this,"submit",7),r.set(this,{})}onButtonSubmit(t){t.stopPropagation(),o(this,r,this.getFormValue(),"f"),this.onSubmit.emit({value:h(this,r,"f")})}onButtonReset(t){t.stopPropagation(),this.form.reset()}componentDidLoad(){o(this,r,this.getFormValue(),"f"),Object.defineProperty(this.el,"value",{get:()=>h(this,r,"f"),configurable:!0})}componentDidRender(){if(this.originalAppendChild||(this.originalAppendChild=this.el.appendChild,this.originalInsertBefore=this.el.insertBefore,this.originalReplaceChild=this.el.replaceChild,this.originalRemoveChild=this.el.removeChild),!this.form)return this.el.appendChild=this.originalAppendChild,this.el.insertBefore=this.originalInsertBefore,this.el.replaceChild=this.originalReplaceChild,void(this.el.removeChild=this.originalRemoveChild);this.el.appendChild=t=>this.form.appendChild(t),this.el.insertBefore=(t,i)=>this.form.insertBefore(t,i),this.el.replaceChild=(t,i)=>this.form.replaceChild(t,i),this.el.removeChild=t=>this.form.removeChild(t)}getFormValue(){const t=this.el,i=[],e=t.getElementsByTagName("input");for(let t=0;t<e.length;t++)i.push(e[t]);const s={},r={};i.forEach((t=>{"string"==typeof t.name&&(-1===t.className.indexOf("weui-switch")?"radio"!==t.type?"checkbox"!==t.type?s[t.name]=t.value:t.checked?r[t.name]?s[t.name].push(t.value):(r[t.name]=!0,s[t.name]=[t.value]):r[t.name]||(s[t.name]=[]):t.checked?(r[t.name]=!0,s[t.name]=t.value):r[t.name]||(s[t.name]=""):s[t.name]=t.checked)}));const o=t.getElementsByTagName("textarea"),h=[];for(let t=0;t<o.length;t++)h.push(o[t]);return h.forEach((t=>{"string"==typeof t.name&&(s[t.name]=t.value)})),s}render(){return e("form",{ref:t=>{this.form=t}},e("slot",null))}get el(){return s(this)}};r=new WeakMap;export{n as taro_form_core}
@@ -0,0 +1 @@
1
+ import{r as t,c as e,h as i,H as o,g as r}from"./p-9137dcab.js";const n=class{constructor(i){t(this,i),this.onChange=e(this,"checkboxchange",7),this.handleChange=t=>{t.stopPropagation(),this.onChange.emit({value:this.value})},this.name=void 0,this.value="",this.color=void 0,this.id=void 0,this.checked=!1,this.disabled=!1,this.nativeProps={},this.isWillLoadCalled=!1}watchId(t){this.isWillLoadCalled&&t&&this.inputEl.setAttribute("id",t)}componentWillLoad(){this.isWillLoadCalled=!0}componentDidRender(){this.id&&this.el.removeAttribute("id")}render(){const{checked:t,name:e,color:r,value:n,disabled:a,nativeProps:s}=this;return i(o,{className:"weui-cells_checkbox"},i("input",Object.assign({ref:t=>{t&&(this.inputEl=t,this.id&&t.setAttribute("id",this.id))},type:"checkbox",value:n,name:e,class:"taro-checkbox_checked",style:{color:r},checked:t,disabled:a,onChange:this.handleChange},s)),i("slot",null))}get el(){return r(this)}static get watchers(){return{id:["watchId"]}}};n.style='.taro-checkbox{display:inline-block;position:relative}.taro-checkbox_checked{display:inline-block;position:relative;top:5px;border:1px solid #d1d1d1;border-radius:3px;width:23px;height:23px;min-height:0;-webkit-appearance:none;-moz-appearance:none;appearance:none;outline:0;background-color:#fff;vertical-align:0;font-size:23px;color:#1aad19}.taro-checkbox_checked:checked::before{display:inline-block;position:absolute;left:50%;top:50%;vertical-align:middle;text-decoration:inherit;text-align:center;text-transform:none;font-family:weui;font-style:normal;font-weight:normal;font-variant:normal;font-size:inherit;color:inherit;content:"\\ea08";-webkit-transform:translate(-50%, -48%) scale(0.73);transform:translate(-50%, -48%) scale(0.73);speak:none}';var a,s=function(t,e,i,o,r){if("m"===o)throw new TypeError("Private method is not writable");if("a"===o&&!r)throw new TypeError("Private accessor was defined without a setter");if("function"==typeof e?t!==e||!r:!e.has(t))throw new TypeError("Cannot write private member to an object whose class did not declare it");return"a"===o?r.call(t,i):r?r.value=i:e.set(t,i),i},c=function(t,e,i,o){if("a"===i&&!o)throw new TypeError("Private accessor was defined without a getter");if("function"==typeof e?t!==e||!o:!e.has(t))throw new TypeError("Cannot read private member from an object whose class did not declare it");return"m"===i?o:"a"===i?o.call(t):o?o.value:e.get(t)};const h=class{constructor(i){t(this,i),this.onChange=e(this,"change",7),this.uniqueName=Date.now().toString(36),a.set(this,void 0),this.name=void 0}function(t){if(t.stopPropagation(),"TARO-CHECKBOX-CORE"!==t.target.tagName)return;const e=this.el.querySelectorAll("taro-checkbox-core");s(this,a,this.getValues(e),"f"),this.onChange.emit({value:c(this,a,"f")})}componentDidLoad(){this.el.querySelectorAll("taro-checkbox-core").forEach((t=>{t.setAttribute("name",this.name||this.uniqueName)})),Object.defineProperty(this.el,"value",{get:()=>{if(!c(this,a,"f")){const t=this.el.querySelectorAll("taro-checkbox-core");s(this,a,this.getValues(t),"f")}return c(this,a,"f")},configurable:!0})}getValues(t){return Array.from(t).filter((t=>{const e=t.querySelector("input");return null==e?void 0:e.checked})).map((t=>t.value))}render(){return i(o,null)}get el(){return r(this)}};a=new WeakMap;export{n as taro_checkbox_core,h as taro_checkbox_group_core}
@@ -0,0 +1 @@
1
+ import{r as t,c as e,h as i,H as s,g as r}from"./p-9137dcab.js";const o=class{constructor(i){t(this,i),this.onChange=e(this,"radiochange",7),this.handleClick=t=>{t.stopPropagation(),this.disabled||this.checked||(this.checked=!0)},this.name=void 0,this.value="",this.id=void 0,this.checked=!1,this.disabled=!1,this.nativeProps={},this.isWillLoadCalled=!1}watchChecked(t){this.isWillLoadCalled&&t&&this.onChange.emit({value:this.value})}watchId(t){this.isWillLoadCalled&&t&&this.inputEl.setAttribute("id",t)}componentDidRender(){this.id&&this.el.removeAttribute("id")}componentWillLoad(){this.isWillLoadCalled=!0}render(){const{checked:t,name:e,value:r,disabled:o,nativeProps:a}=this;return i(s,{className:"weui-cells_checkbox",onClick:this.handleClick},i("input",Object.assign({ref:t=>{t&&(this.inputEl=t,this.id&&t.setAttribute("id",this.id))},type:"radio",name:e,value:r,class:"weui-check",checked:t,disabled:o,onChange:t=>t.stopPropagation()},a)),i("i",{class:"weui-icon-checked"}),i("slot",null))}get el(){return r(this)}static get watchers(){return{checked:["watchChecked"],id:["watchId"]}}};var a,h=function(t,e,i,s,r){if("m"===s)throw new TypeError("Private method is not writable");if("a"===s&&!r)throw new TypeError("Private accessor was defined without a setter");if("function"==typeof e?t!==e||!r:!e.has(t))throw new TypeError("Cannot write private member to an object whose class did not declare it");return"a"===s?r.call(t,i):r?r.value=i:e.set(t,i),i},c=function(t,e,i,s){if("a"===i&&!s)throw new TypeError("Private accessor was defined without a getter");if("function"==typeof e?t!==e||!s:!e.has(t))throw new TypeError("Cannot read private member from an object whose class did not declare it");return"m"===i?s:"a"===i?s.call(t):s?s.value:e.get(t)};const n=class{constructor(i){t(this,i),this.onChange=e(this,"change",7),this.uniqueName=Date.now().toString(36),a.set(this,void 0),this.name=void 0}function(t){if(t.stopPropagation(),"TARO-RADIO-CORE"!==t.target.tagName)return;const e=t.target;e.checked&&(this.el.querySelectorAll("taro-radio-core").forEach((t=>{t!==e&&(t.checked=!1)})),h(this,a,t.detail.value,"f"),this.onChange.emit({value:c(this,a,"f")}))}componentDidLoad(){this.el.querySelectorAll("taro-radio-core").forEach((t=>{t.setAttribute("name",this.name||this.uniqueName)})),Object.defineProperty(this.el,"value",{get:()=>{if(!c(this,a,"f")){const t=this.el.querySelectorAll("taro-radio-core");h(this,a,this.getValues(t),"f")}return c(this,a,"f")},configurable:!0})}getValues(t){let e="";return Array.from(t).forEach((t=>{const i=t.querySelector("input");(null==i?void 0:i.checked)&&(e=i.value||"")})),e}render(){return i(s,{class:"weui-cells_radiogroup"})}get el(){return r(this)}};a=new WeakMap;export{o as taro_radio_core,n as taro_radio_group_core}
@@ -1 +1 @@
1
- System.register(["./p-7e6b54cb.system.js"],(function(e,o){"use strict";var t,r;return{setters:[function(o){t=o.p;r=o.b;e("setNonce",o.s)}],execute:function(){var e=function(){var e=o.meta.url;var r={};if(e!==""){r.resourcesUrl=new URL(".",e).href}return t(r)};e().then((function(e){return r(JSON.parse('[["p-2ce33c64.system",[[4,"taro-checkbox-core",{"name":[1],"value":[1],"color":[1],"id":[1025],"checked":[4],"disabled":[4],"nativeProps":[16],"isWillLoadCalled":[32]}],[0,"taro-checkbox-group-core",{"name":[8]},[[0,"checkboxchange","function"]]]]],["p-e67755f0.system",[[0,"taro-movable-area-core",{"scaleArea":[4,"scale-area"]}],[0,"taro-movable-view-core",{"x":[8],"y":[8],"direction":[1],"outOfBounds":[4,"out-of-bounds"],"inertia":[4],"friction":[2],"damping":[2],"disabled":[4],"scale":[4],"scaleMin":[2,"scale-min"],"scaleMax":[2,"scale-max"],"scaleValue":[2,"scale-value"],"animation":[4],"setParent":[64],"endScale":[64],"setScale":[64]}]]],["p-edbb1a17.system",[[0,"taro-picker-view-column-core",{"col":[1],"initialPosition":[1,"initial-position"],"paddingVertical":[2,"padding-vertical"],"isInit":[32],"isMove":[32]},[[1,"scroll","onScroll"],[1,"mouseup","onMouseEnd"],[1,"mouseout","onMouseEnd"],[1,"mouseleave","onMouseEnd"],[1,"touchend","onTouchEnd"]]],[4,"taro-picker-view-core",{"indicatorStyle":[1,"indicator-style"],"indicatorClass":[1,"indicator-class"],"value":[16],"maskStyle":[1,"mask-style"],"maskClass":[1,"mask-class"]},[[0,"onselect","onSelect"],[0,"onselectstart","onSelectStart"],[0,"onselectend","onPickerColEnd"]]]]],["p-7e59fb3b.system",[[4,"taro-radio-core",{"name":[1],"value":[1],"id":[1025],"checked":[1540],"disabled":[4],"nativeProps":[16],"isWillLoadCalled":[32]}],[0,"taro-radio-group-core",{"name":[8]},[[0,"radiochange","function"]]]]],["p-f7baa03f.system",[[4,"taro-swiper-core",{"indicatorDots":[4,"indicator-dots"],"indicatorColor":[1,"indicator-color"],"indicatorActiveColor":[1,"indicator-active-color"],"autoplay":[4],"current":[2],"interval":[2],"duration":[2],"circular":[4],"vertical":[4],"previousMargin":[1,"previous-margin"],"nextMargin":[1,"next-margin"],"displayMultipleItems":[2,"display-multiple-items"],"full":[4],"zoom":[4],"swiperWrapper":[32],"swiper":[32],"isWillLoadCalled":[32],"observer":[32],"observerFirst":[32],"observerLast":[32]}],[0,"taro-swiper-item-core",{"itemId":[1,"item-id"]}]]],["p-2d1b4dcc.system",[[0,"taro-ad-core"]]],["p-052da7f0.system",[[0,"taro-ad-custom-core"]]],["p-6127b1b6.system",[[0,"taro-animation-video-core"]]],["p-5640e9f4.system",[[0,"taro-animation-view-core"]]],["p-69cd1f2a.system",[[0,"taro-ar-camera-core"]]],["p-473afc8e.system",[[0,"taro-audio-core",{"src":[1],"controls":[4],"autoplay":[4],"loop":[4],"muted":[4],"nativeProps":[16]}]]],["p-b6d4634f.system",[[0,"taro-aweme-data-core"]]],["p-357ba712.system",[[0,"taro-block-core"]]],["p-cd90bead.system",[[4,"taro-button-core",{"disabled":[4],"hoverClass":[1,"hover-class"],"type":[1],"hoverStartTime":[2,"hover-start-time"],"hoverStayTime":[2,"hover-stay-time"],"size":[1],"plain":[4],"loading":[4],"formType":[513,"form-type"],"hover":[32],"touch":[32]},[[0,"click","onClick"],[1,"touchstart","onTouchStart"],[1,"touchend","onTouchEnd"]]]]],["p-907d9d01.system",[[0,"taro-camera-core"]]],["p-f7927285.system",[[0,"taro-canvas-core",{"canvasId":[1,"canvas-id"],"nativeProps":[16]}]]],["p-88d2b41b.system",[[0,"taro-channel-live-core"]]],["p-8201ee31.system",[[0,"taro-channel-video-core"]]],["p-ab726c20.system",[[0,"taro-comment-detail-core"]]],["p-f11c9c37.system",[[0,"taro-comment-list-core"]]],["p-5dab46cd.system",[[0,"taro-contact-button-core"]]],["p-7e8e355b.system",[[0,"taro-cover-image-core",{"src":[1],"nativeProps":[16]}]]],["p-c2322741.system",[[4,"taro-cover-view-core",{"animation":[1],"hoverClass":[1,"hover-class"],"hoverStartTime":[2,"hover-start-time"],"hoverStayTime":[2,"hover-stay-time"],"hover":[32],"touch":[32]},[[1,"touchstart","onTouchStart"],[1,"touchmove","onTouchMove"],[1,"touchend","onTouchEnd"]]]]],["p-f420680c.system",[[0,"taro-custom-wrapper-core"]]],["p-3094bda6.system",[[0,"taro-editor-core"]]],["p-e53508c1.system",[[0,"taro-follow-swan-core"]]],["p-6c5f7bc3.system",[[4,"taro-form-core",null,[[0,"tarobuttonsubmit","onButtonSubmit"],[0,"tarobuttonreset","onButtonReset"]]]]],["p-85a7daeb.system",[[0,"taro-functional-page-navigator-core"]]],["p-da239b8b.system",[[0,"taro-grid-view-core"]]],["p-58b19305.system",[[0,"taro-icon-core",{"type":[1],"size":[8],"color":[1]}]]],["p-e5f78321.system",[[0,"taro-image-core",{"src":[1],"mode":[1],"lazyLoad":[4,"lazy-load"],"nativeProps":[16],"aspectFillMode":[32]}]]],["p-07302165.system",[[0,"taro-inline-payment-panel-core"]]],["p-cc7b95fd.system",[[0,"taro-input-core",{"value":[1025],"type":[1],"password":[4],"placeholder":[1],"disabled":[4],"maxlength":[2],"autoFocus":[516,"focus"],"confirmType":[1,"confirm-type"],"name":[1],"nativeProps":[16],"focus":[64]}]]],["p-af3fa859.system",[[0,"taro-keyboard-accessory-core"]]],["p-b5b30493.system",[[4,"taro-label-core",{"for":[1]}]]],["p-afb3895c.system",[[0,"taro-lifestyle-core"]]],["p-66b0b419.system",[[0,"taro-like-core"]]],["p-0517f107.system",[[0,"taro-list-view-core"]]],["p-9d9ede17.system",[[0,"taro-live-player-core"]]],["p-1f39576a.system",[[0,"taro-live-pusher-core"]]],["p-bcf80126.system",[[0,"taro-login-core"]]],["p-6d4b7e5c.system",[[0,"taro-lottie-core"]]],["p-cc70bb7a.system",[[0,"taro-map-core"]]],["p-f534057e.system",[[0,"taro-match-media-core"]]],["p-227e33fc.system",[[0,"taro-native-slot-core"]]],["p-79c3fde3.system",[[0,"taro-navigation-bar-core"]]],["p-97f0ad72.system",[[0,"taro-navigator-core",{"hoverClass":[1,"hover-class"],"url":[1],"openType":[1,"open-type"],"isHover":[4,"is-hover"],"delta":[2]},[[0,"click","onClick"]]]]],["p-57b9943c.system",[[0,"taro-official-account-core"]]],["p-81f2ad70.system",[[0,"taro-open-data-core"]]],["p-9ac947ac.system",[[0,"taro-page-container-core"]]],["p-1b3d41d3.system",[[0,"taro-page-meta-core"]]],["p-e6481671.system",[[0,"taro-progress-core",{"percent":[2],"showInfo":[4,"show-info"],"borderRadius":[8,"border-radius"],"fontSize":[8,"font-size"],"strokeWidth":[8,"stroke-width"],"activeColor":[1,"active-color"],"backgroundColor":[1,"background-color"],"active":[4]}]]],["p-6800ccdc.system",[[4,"taro-pull-to-refresh",{"prefixCls":[1,"prefix-cls"],"distanceToRefresh":[2,"distance-to-refresh"],"damping":[2],"indicator":[16],"currSt":[32],"dragOnEdge":[32]}]]],["p-c43c5e89.system",[[0,"taro-rich-text-core",{"nodes":[1]}]]],["p-fa0f6dab.system",[[0,"taro-root-portal-core"]]],["p-53ef8a6c.system",[[0,"taro-rtc-room-core"]]],["p-fa6c022a.system",[[0,"taro-rtc-room-item-core"]]],["p-c0ec2f41.system",[[4,"taro-scroll-view-core",{"scrollX":[4,"scroll-x"],"scrollY":[4,"scroll-y"],"upperThreshold":[8,"upper-threshold"],"lowerThreshold":[8,"lower-threshold"],"mpScrollTop":[520,"scroll-top"],"mpScrollLeft":[520,"scroll-left"],"mpScrollIntoView":[513,"scroll-into-view"],"animated":[4,"scroll-with-animation"],"mpScrollToMethod":[64],"mpScrollIntoViewMethod":[64]},[[3,"scroll","handleScroll"]]]]],["p-1974e52e.system",[[0,"taro-share-element-core"]]],["p-117633e9.system",[[0,"taro-slider-core",{"min":[2],"max":[2],"step":[2],"disabled":[4],"value":[1538],"activeColor":[1,"active-color"],"backgroundColor":[1,"background-color"],"blockSize":[2,"block-size"],"blockColor":[1,"block-color"],"showValue":[4,"show-value"],"name":[1],"totalWidth":[32],"touching":[32],"ogX":[32],"touchId":[32],"percent":[32],"ogPercent":[32],"isWillLoadCalled":[32]}]]],["p-c1073ed6.system",[[0,"taro-slot-core"]]],["p-5c1e6b1c.system",[[0,"taro-sticky-header-core"]]],["p-ebdd350f.system",[[0,"taro-sticky-section-core"]]],["p-1e739fcb.system",[[0,"taro-switch-core",{"type":[1],"checked":[4],"color":[1],"name":[1],"disabled":[4],"nativeProps":[16],"isChecked":[32],"isWillLoadCalled":[32]}]]],["p-898db637.system",[[0,"taro-tab-item-core"]]],["p-7c2454dd.system",[[0,"taro-tabbar",{"conf":[16],"list":[32],"borderStyle":[32],"backgroundColor":[32],"color":[32],"selectedColor":[32],"selectedIndex":[32],"status":[32]}]]],["p-90333d0a.system",[[0,"taro-tabs-core"]]],["p-fa43177b.system",[[4,"taro-text-core",{"selectable":[4]}]]],["p-cfb01848.system",[[0,"taro-textarea-core",{"value":[1025],"placeholder":[1],"disabled":[4],"maxlength":[2],"autoFocus":[516,"focus"],"autoHeight":[4,"auto-height"],"name":[1],"nativeProps":[16],"line":[32],"focus":[64]}]]],["p-16336cc6.system",[[4,"taro-view-core",{"animation":[1],"hoverClass":[1,"hover-class"],"hoverStartTime":[2,"hover-start-time"],"hoverStayTime":[2,"hover-stay-time"],"hover":[32],"touch":[32]},[[1,"touchstart","onTouchStart"],[1,"touchmove","onTouchMove"],[1,"touchend","onTouchEnd"]]]]],["p-eaa370a9.system",[[0,"taro-voip-room-core"]]],["p-208e438c.system",[[0,"taro-web-view-core",{"src":[1]}]]],["p-735c2a72.system",[[4,"taro-picker-core",{"mode":[1],"disabled":[4],"range":[16],"rangeKey":[1,"range-key"],"value":[1032],"start":[1],"end":[1],"fields":[1],"name":[1],"pickerValue":[32],"height":[32],"hidden":[32],"fadeOut":[32],"isWillLoadCalled":[32]}],[0,"taro-picker-group",{"mode":[1],"range":[16],"rangeKey":[1,"range-key"],"height":[2],"columnId":[1,"column-id"],"updateHeight":[16],"onColumnChange":[16],"updateDay":[16],"startY":[32],"preY":[32],"hadMove":[32],"touchEnd":[32],"isMove":[32],"handleMoveStart":[64],"handleMoving":[64],"handleMoveEnd":[64]},[[1,"mousedown","onMouseDown"],[1,"mousemove","onMouseMove"],[1,"mouseup","onMouseMoveEnd"],[1,"mouseleave","onMouseMoveEnd"],[1,"touchstart","onTouchStart"],[1,"touchmove","onTouchMove"],[1,"touchend","onTouchEnd"]]]]],["p-18703731.system",[[0,"taro-video-core",{"src":[1],"duration":[2],"controls":[4],"autoplay":[4],"loop":[4],"muted":[4],"initialTime":[2,"initial-time"],"poster":[1],"objectFit":[1,"object-fit"],"showProgress":[4,"show-progress"],"showFullscreenBtn":[4,"show-fullscreen-btn"],"showPlayBtn":[4,"show-play-btn"],"showCenterPlayBtn":[4,"show-center-play-btn"],"showMuteBtn":[4,"show-mute-btn"],"danmuList":[16],"danmuBtn":[4,"danmu-btn"],"enableDanmu":[4,"enable-danmu"],"enablePlayGesture":[4,"enable-play-gesture"],"enableProgressGesture":[4,"enable-progress-gesture"],"vslideGesture":[4,"vslide-gesture"],"vslideGestureInFullscreen":[4,"vslide-gesture-in-fullscreen"],"nativeProps":[16],"_duration":[32],"_enableDanmu":[32],"isPlaying":[32],"isFirst":[32],"isFullScreen":[32],"fullScreenTimestamp":[32],"isMute":[32],"getHlsObject":[64],"play":[64],"pause":[64],"stop":[64],"seek":[64],"requestFullScreen":[64],"exitFullScreen":[64]},[[5,"touchmove","onDocumentTouchMove"],[5,"touchend","onDocumentTouchEnd"],[5,"touchcancel","onDocumentTouchEnd"]]],[4,"taro-video-control",{"controls":[4],"currentTime":[2,"current-time"],"duration":[2],"isPlaying":[4,"is-playing"],"pauseFunc":[16],"playFunc":[16],"seekFunc":[16],"showPlayBtn":[4,"show-play-btn"],"showProgress":[4,"show-progress"],"setProgressBall":[64],"toggleVisibility":[64],"getIsDraggingProgressBall":[64],"setCurrentTime":[64]},[[5,"touchmove","onDocumentTouchMove"],[5,"touchend","onDocumentTouchEnd"],[5,"touchcancel","onDocumentTouchEnd"]]],[0,"taro-video-danmu",{"enable":[4],"danmuList":[32],"sendDanmu":[64],"tick":[64]}]]]]'),e)}))}}}));
1
+ System.register(["./p-7e6b54cb.system.js"],(function(e,o){"use strict";var t,r;return{setters:[function(o){t=o.p;r=o.b;e("setNonce",o.s)}],execute:function(){var e=function(){var e=o.meta.url;var r={};if(e!==""){r.resourcesUrl=new URL(".",e).href}return t(r)};e().then((function(e){return r(JSON.parse('[["p-2a071adf.system",[[4,"taro-checkbox-core",{"name":[1],"value":[1],"color":[1],"id":[1025],"checked":[4],"disabled":[4],"nativeProps":[16],"isWillLoadCalled":[32]}],[0,"taro-checkbox-group-core",{"name":[8]},[[0,"checkboxchange","function"]]]]],["p-e67755f0.system",[[0,"taro-movable-area-core",{"scaleArea":[4,"scale-area"]}],[0,"taro-movable-view-core",{"x":[8],"y":[8],"direction":[1],"outOfBounds":[4,"out-of-bounds"],"inertia":[4],"friction":[2],"damping":[2],"disabled":[4],"scale":[4],"scaleMin":[2,"scale-min"],"scaleMax":[2,"scale-max"],"scaleValue":[2,"scale-value"],"animation":[4],"setParent":[64],"endScale":[64],"setScale":[64]}]]],["p-edbb1a17.system",[[0,"taro-picker-view-column-core",{"col":[1],"initialPosition":[1,"initial-position"],"paddingVertical":[2,"padding-vertical"],"isInit":[32],"isMove":[32]},[[1,"scroll","onScroll"],[1,"mouseup","onMouseEnd"],[1,"mouseout","onMouseEnd"],[1,"mouseleave","onMouseEnd"],[1,"touchend","onTouchEnd"]]],[4,"taro-picker-view-core",{"indicatorStyle":[1,"indicator-style"],"indicatorClass":[1,"indicator-class"],"value":[16],"maskStyle":[1,"mask-style"],"maskClass":[1,"mask-class"]},[[0,"onselect","onSelect"],[0,"onselectstart","onSelectStart"],[0,"onselectend","onPickerColEnd"]]]]],["p-0d7a705b.system",[[4,"taro-radio-core",{"name":[1],"value":[1],"id":[1025],"checked":[1540],"disabled":[4],"nativeProps":[16],"isWillLoadCalled":[32]}],[0,"taro-radio-group-core",{"name":[8]},[[0,"radiochange","function"]]]]],["p-f7baa03f.system",[[4,"taro-swiper-core",{"indicatorDots":[4,"indicator-dots"],"indicatorColor":[1,"indicator-color"],"indicatorActiveColor":[1,"indicator-active-color"],"autoplay":[4],"current":[2],"interval":[2],"duration":[2],"circular":[4],"vertical":[4],"previousMargin":[1,"previous-margin"],"nextMargin":[1,"next-margin"],"displayMultipleItems":[2,"display-multiple-items"],"full":[4],"zoom":[4],"swiperWrapper":[32],"swiper":[32],"isWillLoadCalled":[32],"observer":[32],"observerFirst":[32],"observerLast":[32]}],[0,"taro-swiper-item-core",{"itemId":[1,"item-id"]}]]],["p-2d1b4dcc.system",[[0,"taro-ad-core"]]],["p-052da7f0.system",[[0,"taro-ad-custom-core"]]],["p-6127b1b6.system",[[0,"taro-animation-video-core"]]],["p-5640e9f4.system",[[0,"taro-animation-view-core"]]],["p-69cd1f2a.system",[[0,"taro-ar-camera-core"]]],["p-473afc8e.system",[[0,"taro-audio-core",{"src":[1],"controls":[4],"autoplay":[4],"loop":[4],"muted":[4],"nativeProps":[16]}]]],["p-b6d4634f.system",[[0,"taro-aweme-data-core"]]],["p-357ba712.system",[[0,"taro-block-core"]]],["p-cd90bead.system",[[4,"taro-button-core",{"disabled":[4],"hoverClass":[1,"hover-class"],"type":[1],"hoverStartTime":[2,"hover-start-time"],"hoverStayTime":[2,"hover-stay-time"],"size":[1],"plain":[4],"loading":[4],"formType":[513,"form-type"],"hover":[32],"touch":[32]},[[0,"click","onClick"],[1,"touchstart","onTouchStart"],[1,"touchend","onTouchEnd"]]]]],["p-907d9d01.system",[[0,"taro-camera-core"]]],["p-f7927285.system",[[0,"taro-canvas-core",{"canvasId":[1,"canvas-id"],"nativeProps":[16]}]]],["p-88d2b41b.system",[[0,"taro-channel-live-core"]]],["p-8201ee31.system",[[0,"taro-channel-video-core"]]],["p-ab726c20.system",[[0,"taro-comment-detail-core"]]],["p-f11c9c37.system",[[0,"taro-comment-list-core"]]],["p-5dab46cd.system",[[0,"taro-contact-button-core"]]],["p-7e8e355b.system",[[0,"taro-cover-image-core",{"src":[1],"nativeProps":[16]}]]],["p-c2322741.system",[[4,"taro-cover-view-core",{"animation":[1],"hoverClass":[1,"hover-class"],"hoverStartTime":[2,"hover-start-time"],"hoverStayTime":[2,"hover-stay-time"],"hover":[32],"touch":[32]},[[1,"touchstart","onTouchStart"],[1,"touchmove","onTouchMove"],[1,"touchend","onTouchEnd"]]]]],["p-f420680c.system",[[0,"taro-custom-wrapper-core"]]],["p-3094bda6.system",[[0,"taro-editor-core"]]],["p-e53508c1.system",[[0,"taro-follow-swan-core"]]],["p-fd7ff0f3.system",[[4,"taro-form-core",null,[[0,"tarobuttonsubmit","onButtonSubmit"],[0,"tarobuttonreset","onButtonReset"]]]]],["p-85a7daeb.system",[[0,"taro-functional-page-navigator-core"]]],["p-da239b8b.system",[[0,"taro-grid-view-core"]]],["p-58b19305.system",[[0,"taro-icon-core",{"type":[1],"size":[8],"color":[1]}]]],["p-e5f78321.system",[[0,"taro-image-core",{"src":[1],"mode":[1],"lazyLoad":[4,"lazy-load"],"nativeProps":[16],"aspectFillMode":[32]}]]],["p-07302165.system",[[0,"taro-inline-payment-panel-core"]]],["p-cc7b95fd.system",[[0,"taro-input-core",{"value":[1025],"type":[1],"password":[4],"placeholder":[1],"disabled":[4],"maxlength":[2],"autoFocus":[516,"focus"],"confirmType":[1,"confirm-type"],"name":[1],"nativeProps":[16],"focus":[64]}]]],["p-af3fa859.system",[[0,"taro-keyboard-accessory-core"]]],["p-b5b30493.system",[[4,"taro-label-core",{"for":[1]}]]],["p-afb3895c.system",[[0,"taro-lifestyle-core"]]],["p-66b0b419.system",[[0,"taro-like-core"]]],["p-0517f107.system",[[0,"taro-list-view-core"]]],["p-9d9ede17.system",[[0,"taro-live-player-core"]]],["p-1f39576a.system",[[0,"taro-live-pusher-core"]]],["p-bcf80126.system",[[0,"taro-login-core"]]],["p-6d4b7e5c.system",[[0,"taro-lottie-core"]]],["p-cc70bb7a.system",[[0,"taro-map-core"]]],["p-f534057e.system",[[0,"taro-match-media-core"]]],["p-227e33fc.system",[[0,"taro-native-slot-core"]]],["p-79c3fde3.system",[[0,"taro-navigation-bar-core"]]],["p-97f0ad72.system",[[0,"taro-navigator-core",{"hoverClass":[1,"hover-class"],"url":[1],"openType":[1,"open-type"],"isHover":[4,"is-hover"],"delta":[2]},[[0,"click","onClick"]]]]],["p-57b9943c.system",[[0,"taro-official-account-core"]]],["p-81f2ad70.system",[[0,"taro-open-data-core"]]],["p-9ac947ac.system",[[0,"taro-page-container-core"]]],["p-1b3d41d3.system",[[0,"taro-page-meta-core"]]],["p-e6481671.system",[[0,"taro-progress-core",{"percent":[2],"showInfo":[4,"show-info"],"borderRadius":[8,"border-radius"],"fontSize":[8,"font-size"],"strokeWidth":[8,"stroke-width"],"activeColor":[1,"active-color"],"backgroundColor":[1,"background-color"],"active":[4]}]]],["p-6800ccdc.system",[[4,"taro-pull-to-refresh",{"prefixCls":[1,"prefix-cls"],"distanceToRefresh":[2,"distance-to-refresh"],"damping":[2],"indicator":[16],"currSt":[32],"dragOnEdge":[32]}]]],["p-c43c5e89.system",[[0,"taro-rich-text-core",{"nodes":[1]}]]],["p-fa0f6dab.system",[[0,"taro-root-portal-core"]]],["p-53ef8a6c.system",[[0,"taro-rtc-room-core"]]],["p-fa6c022a.system",[[0,"taro-rtc-room-item-core"]]],["p-c0ec2f41.system",[[4,"taro-scroll-view-core",{"scrollX":[4,"scroll-x"],"scrollY":[4,"scroll-y"],"upperThreshold":[8,"upper-threshold"],"lowerThreshold":[8,"lower-threshold"],"mpScrollTop":[520,"scroll-top"],"mpScrollLeft":[520,"scroll-left"],"mpScrollIntoView":[513,"scroll-into-view"],"animated":[4,"scroll-with-animation"],"mpScrollToMethod":[64],"mpScrollIntoViewMethod":[64]},[[3,"scroll","handleScroll"]]]]],["p-1974e52e.system",[[0,"taro-share-element-core"]]],["p-117633e9.system",[[0,"taro-slider-core",{"min":[2],"max":[2],"step":[2],"disabled":[4],"value":[1538],"activeColor":[1,"active-color"],"backgroundColor":[1,"background-color"],"blockSize":[2,"block-size"],"blockColor":[1,"block-color"],"showValue":[4,"show-value"],"name":[1],"totalWidth":[32],"touching":[32],"ogX":[32],"touchId":[32],"percent":[32],"ogPercent":[32],"isWillLoadCalled":[32]}]]],["p-c1073ed6.system",[[0,"taro-slot-core"]]],["p-5c1e6b1c.system",[[0,"taro-sticky-header-core"]]],["p-ebdd350f.system",[[0,"taro-sticky-section-core"]]],["p-1e739fcb.system",[[0,"taro-switch-core",{"type":[1],"checked":[4],"color":[1],"name":[1],"disabled":[4],"nativeProps":[16],"isChecked":[32],"isWillLoadCalled":[32]}]]],["p-898db637.system",[[0,"taro-tab-item-core"]]],["p-7c2454dd.system",[[0,"taro-tabbar",{"conf":[16],"list":[32],"borderStyle":[32],"backgroundColor":[32],"color":[32],"selectedColor":[32],"selectedIndex":[32],"status":[32]}]]],["p-90333d0a.system",[[0,"taro-tabs-core"]]],["p-fa43177b.system",[[4,"taro-text-core",{"selectable":[4]}]]],["p-cfb01848.system",[[0,"taro-textarea-core",{"value":[1025],"placeholder":[1],"disabled":[4],"maxlength":[2],"autoFocus":[516,"focus"],"autoHeight":[4,"auto-height"],"name":[1],"nativeProps":[16],"line":[32],"focus":[64]}]]],["p-16336cc6.system",[[4,"taro-view-core",{"animation":[1],"hoverClass":[1,"hover-class"],"hoverStartTime":[2,"hover-start-time"],"hoverStayTime":[2,"hover-stay-time"],"hover":[32],"touch":[32]},[[1,"touchstart","onTouchStart"],[1,"touchmove","onTouchMove"],[1,"touchend","onTouchEnd"]]]]],["p-eaa370a9.system",[[0,"taro-voip-room-core"]]],["p-208e438c.system",[[0,"taro-web-view-core",{"src":[1]}]]],["p-735c2a72.system",[[4,"taro-picker-core",{"mode":[1],"disabled":[4],"range":[16],"rangeKey":[1,"range-key"],"value":[1032],"start":[1],"end":[1],"fields":[1],"name":[1],"pickerValue":[32],"height":[32],"hidden":[32],"fadeOut":[32],"isWillLoadCalled":[32]}],[0,"taro-picker-group",{"mode":[1],"range":[16],"rangeKey":[1,"range-key"],"height":[2],"columnId":[1,"column-id"],"updateHeight":[16],"onColumnChange":[16],"updateDay":[16],"startY":[32],"preY":[32],"hadMove":[32],"touchEnd":[32],"isMove":[32],"handleMoveStart":[64],"handleMoving":[64],"handleMoveEnd":[64]},[[1,"mousedown","onMouseDown"],[1,"mousemove","onMouseMove"],[1,"mouseup","onMouseMoveEnd"],[1,"mouseleave","onMouseMoveEnd"],[1,"touchstart","onTouchStart"],[1,"touchmove","onTouchMove"],[1,"touchend","onTouchEnd"]]]]],["p-18703731.system",[[0,"taro-video-core",{"src":[1],"duration":[2],"controls":[4],"autoplay":[4],"loop":[4],"muted":[4],"initialTime":[2,"initial-time"],"poster":[1],"objectFit":[1,"object-fit"],"showProgress":[4,"show-progress"],"showFullscreenBtn":[4,"show-fullscreen-btn"],"showPlayBtn":[4,"show-play-btn"],"showCenterPlayBtn":[4,"show-center-play-btn"],"showMuteBtn":[4,"show-mute-btn"],"danmuList":[16],"danmuBtn":[4,"danmu-btn"],"enableDanmu":[4,"enable-danmu"],"enablePlayGesture":[4,"enable-play-gesture"],"enableProgressGesture":[4,"enable-progress-gesture"],"vslideGesture":[4,"vslide-gesture"],"vslideGestureInFullscreen":[4,"vslide-gesture-in-fullscreen"],"nativeProps":[16],"_duration":[32],"_enableDanmu":[32],"isPlaying":[32],"isFirst":[32],"isFullScreen":[32],"fullScreenTimestamp":[32],"isMute":[32],"getHlsObject":[64],"play":[64],"pause":[64],"stop":[64],"seek":[64],"requestFullScreen":[64],"exitFullScreen":[64]},[[5,"touchmove","onDocumentTouchMove"],[5,"touchend","onDocumentTouchEnd"],[5,"touchcancel","onDocumentTouchEnd"]]],[4,"taro-video-control",{"controls":[4],"currentTime":[2,"current-time"],"duration":[2],"isPlaying":[4,"is-playing"],"pauseFunc":[16],"playFunc":[16],"seekFunc":[16],"showPlayBtn":[4,"show-play-btn"],"showProgress":[4,"show-progress"],"setProgressBall":[64],"toggleVisibility":[64],"getIsDraggingProgressBall":[64],"setCurrentTime":[64]},[[5,"touchmove","onDocumentTouchMove"],[5,"touchend","onDocumentTouchEnd"],[5,"touchcancel","onDocumentTouchEnd"]]],[0,"taro-video-danmu",{"enable":[4],"danmuList":[32],"sendDanmu":[64],"tick":[64]}]]]]'),e)}))}}}));
@@ -0,0 +1 @@
1
+ System.register(["./p-7e6b54cb.system.js"],(function(e){"use strict";var t,r,i,n;return{setters:[function(e){t=e.r;r=e.c;i=e.h;n=e.g}],execute:function(){var o=undefined&&undefined.__classPrivateFieldSet||function(e,t,r,i,n){if(i==="m")throw new TypeError("Private method is not writable");if(i==="a"&&!n)throw new TypeError("Private accessor was defined without a setter");if(typeof t==="function"?e!==t||!n:!t.has(e))throw new TypeError("Cannot write private member to an object whose class did not declare it");return i==="a"?n.call(e,r):n?n.value=r:t.set(e,r),r};var a=undefined&&undefined.__classPrivateFieldGet||function(e,t,r,i){if(r==="a"&&!i)throw new TypeError("Private accessor was defined without a getter");if(typeof t==="function"?e!==t||!i:!t.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return r==="m"?i:r==="a"?i.call(e):i?i.value:t.get(e)};var s;var l=e("taro_form_core",function(){function e(e){t(this,e);this.onSubmit=r(this,"submit",7);s.set(this,{})}e.prototype.onButtonSubmit=function(e){e.stopPropagation();o(this,s,this.getFormValue(),"f");this.onSubmit.emit({value:a(this,s,"f")})};e.prototype.onButtonReset=function(e){e.stopPropagation();this.form.reset()};e.prototype.componentDidLoad=function(){var e=this;o(this,s,this.getFormValue(),"f");Object.defineProperty(this.el,"value",{get:function(){return a(e,s,"f")},configurable:true})};e.prototype.componentDidRender=function(){var e=this;if(!this.originalAppendChild){this.originalAppendChild=this.el.appendChild;this.originalInsertBefore=this.el.insertBefore;this.originalReplaceChild=this.el.replaceChild;this.originalRemoveChild=this.el.removeChild}if(!this.form){this.el.appendChild=this.originalAppendChild;this.el.insertBefore=this.originalInsertBefore;this.el.replaceChild=this.originalReplaceChild;this.el.removeChild=this.originalRemoveChild;return}this.el.appendChild=function(t){return e.form.appendChild(t)};this.el.insertBefore=function(t,r){return e.form.insertBefore(t,r)};this.el.replaceChild=function(t,r){return e.form.replaceChild(t,r)};this.el.removeChild=function(t){return e.form.removeChild(t)}};e.prototype.getFormValue=function(){var e=this.el;var t=[];var r=e.getElementsByTagName("input");for(var i=0;i<r.length;i++){t.push(r[i])}var n={};var o={};t.forEach((function(e){if(typeof e.name!=="string")return;if(e.className.indexOf("weui-switch")!==-1){n[e.name]=e.checked;return}if(e.type==="radio"){if(e.checked){o[e.name]=true;n[e.name]=e.value}else{if(!o[e.name]){n[e.name]=""}}return}if(e.type==="checkbox"){if(e.checked){if(o[e.name]){n[e.name].push(e.value)}else{o[e.name]=true;n[e.name]=[e.value]}}else{if(!o[e.name]){n[e.name]=[]}}return}n[e.name]=e.value}));var a=e.getElementsByTagName("textarea");var s=[];for(var l=0;l<a.length;l++){s.push(a[l])}s.forEach((function(e){if(typeof e.name!=="string")return;n[e.name]=e.value}));return n};e.prototype.render=function(){var e=this;return i("form",{ref:function(t){e.form=t}},i("slot",null))};Object.defineProperty(e.prototype,"el",{get:function(){return n(this)},enumerable:false,configurable:true});return e}());s=new WeakMap}}}));
@@ -1 +1 @@
1
- import{p as e,b as o}from"./p-9137dcab.js";export{s as setNonce}from"./p-9137dcab.js";(()=>{const o=import.meta.url,r={};return""!==o&&(r.resourcesUrl=new URL(".",o).href),e(r)})().then((e=>o(JSON.parse('[["p-5125596b",[[4,"taro-checkbox-core",{"name":[1],"value":[1],"color":[1],"id":[1025],"checked":[4],"disabled":[4],"nativeProps":[16],"isWillLoadCalled":[32]}],[0,"taro-checkbox-group-core",{"name":[8]},[[0,"checkboxchange","function"]]]]],["p-f0340edf",[[0,"taro-movable-area-core",{"scaleArea":[4,"scale-area"]}],[0,"taro-movable-view-core",{"x":[8],"y":[8],"direction":[1],"outOfBounds":[4,"out-of-bounds"],"inertia":[4],"friction":[2],"damping":[2],"disabled":[4],"scale":[4],"scaleMin":[2,"scale-min"],"scaleMax":[2,"scale-max"],"scaleValue":[2,"scale-value"],"animation":[4],"setParent":[64],"endScale":[64],"setScale":[64]}]]],["p-31bba7c3",[[0,"taro-picker-view-column-core",{"col":[1],"initialPosition":[1,"initial-position"],"paddingVertical":[2,"padding-vertical"],"isInit":[32],"isMove":[32]},[[1,"scroll","onScroll"],[1,"mouseup","onMouseEnd"],[1,"mouseout","onMouseEnd"],[1,"mouseleave","onMouseEnd"],[1,"touchend","onTouchEnd"]]],[4,"taro-picker-view-core",{"indicatorStyle":[1,"indicator-style"],"indicatorClass":[1,"indicator-class"],"value":[16],"maskStyle":[1,"mask-style"],"maskClass":[1,"mask-class"]},[[0,"onselect","onSelect"],[0,"onselectstart","onSelectStart"],[0,"onselectend","onPickerColEnd"]]]]],["p-5ab755ed",[[4,"taro-radio-core",{"name":[1],"value":[1],"id":[1025],"checked":[1540],"disabled":[4],"nativeProps":[16],"isWillLoadCalled":[32]}],[0,"taro-radio-group-core",{"name":[8]},[[0,"radiochange","function"]]]]],["p-ba7cb688",[[4,"taro-swiper-core",{"indicatorDots":[4,"indicator-dots"],"indicatorColor":[1,"indicator-color"],"indicatorActiveColor":[1,"indicator-active-color"],"autoplay":[4],"current":[2],"interval":[2],"duration":[2],"circular":[4],"vertical":[4],"previousMargin":[1,"previous-margin"],"nextMargin":[1,"next-margin"],"displayMultipleItems":[2,"display-multiple-items"],"full":[4],"zoom":[4],"swiperWrapper":[32],"swiper":[32],"isWillLoadCalled":[32],"observer":[32],"observerFirst":[32],"observerLast":[32]}],[0,"taro-swiper-item-core",{"itemId":[1,"item-id"]}]]],["p-7b3b8057",[[0,"taro-ad-core"]]],["p-6db97374",[[0,"taro-ad-custom-core"]]],["p-2af69b72",[[0,"taro-animation-video-core"]]],["p-139e6251",[[0,"taro-animation-view-core"]]],["p-a8565231",[[0,"taro-ar-camera-core"]]],["p-bf0e0394",[[0,"taro-audio-core",{"src":[1],"controls":[4],"autoplay":[4],"loop":[4],"muted":[4],"nativeProps":[16]}]]],["p-f7b32c6b",[[0,"taro-aweme-data-core"]]],["p-9a5fbb2e",[[0,"taro-block-core"]]],["p-c490cd45",[[4,"taro-button-core",{"disabled":[4],"hoverClass":[1,"hover-class"],"type":[1],"hoverStartTime":[2,"hover-start-time"],"hoverStayTime":[2,"hover-stay-time"],"size":[1],"plain":[4],"loading":[4],"formType":[513,"form-type"],"hover":[32],"touch":[32]},[[0,"click","onClick"],[1,"touchstart","onTouchStart"],[1,"touchend","onTouchEnd"]]]]],["p-d34a6c04",[[0,"taro-camera-core"]]],["p-469ee343",[[0,"taro-canvas-core",{"canvasId":[1,"canvas-id"],"nativeProps":[16]}]]],["p-fb983850",[[0,"taro-channel-live-core"]]],["p-c11a42e0",[[0,"taro-channel-video-core"]]],["p-9aeb7995",[[0,"taro-comment-detail-core"]]],["p-af8e521a",[[0,"taro-comment-list-core"]]],["p-b027181b",[[0,"taro-contact-button-core"]]],["p-38ee526a",[[0,"taro-cover-image-core",{"src":[1],"nativeProps":[16]}]]],["p-3f9f3448",[[4,"taro-cover-view-core",{"animation":[1],"hoverClass":[1,"hover-class"],"hoverStartTime":[2,"hover-start-time"],"hoverStayTime":[2,"hover-stay-time"],"hover":[32],"touch":[32]},[[1,"touchstart","onTouchStart"],[1,"touchmove","onTouchMove"],[1,"touchend","onTouchEnd"]]]]],["p-72b118b0",[[0,"taro-custom-wrapper-core"]]],["p-1404c119",[[0,"taro-editor-core"]]],["p-a3a1a779",[[0,"taro-follow-swan-core"]]],["p-a350c6cb",[[4,"taro-form-core",null,[[0,"tarobuttonsubmit","onButtonSubmit"],[0,"tarobuttonreset","onButtonReset"]]]]],["p-1c4e3899",[[0,"taro-functional-page-navigator-core"]]],["p-8c0b740e",[[0,"taro-grid-view-core"]]],["p-4e9bd4f6",[[0,"taro-icon-core",{"type":[1],"size":[8],"color":[1]}]]],["p-385d8aed",[[0,"taro-image-core",{"src":[1],"mode":[1],"lazyLoad":[4,"lazy-load"],"nativeProps":[16],"aspectFillMode":[32]}]]],["p-801f09b8",[[0,"taro-inline-payment-panel-core"]]],["p-a132ebb9",[[0,"taro-input-core",{"value":[1025],"type":[1],"password":[4],"placeholder":[1],"disabled":[4],"maxlength":[2],"autoFocus":[516,"focus"],"confirmType":[1,"confirm-type"],"name":[1],"nativeProps":[16],"focus":[64]}]]],["p-904df510",[[0,"taro-keyboard-accessory-core"]]],["p-f533bc2f",[[4,"taro-label-core",{"for":[1]}]]],["p-204bd245",[[0,"taro-lifestyle-core"]]],["p-407ca16e",[[0,"taro-like-core"]]],["p-355e4dbc",[[0,"taro-list-view-core"]]],["p-66f7eea6",[[0,"taro-live-player-core"]]],["p-af9ef8b4",[[0,"taro-live-pusher-core"]]],["p-50902cd0",[[0,"taro-login-core"]]],["p-9b6550fc",[[0,"taro-lottie-core"]]],["p-6e115968",[[0,"taro-map-core"]]],["p-7d635413",[[0,"taro-match-media-core"]]],["p-b4ea72ea",[[0,"taro-native-slot-core"]]],["p-9046110a",[[0,"taro-navigation-bar-core"]]],["p-b898d734",[[0,"taro-navigator-core",{"hoverClass":[1,"hover-class"],"url":[1],"openType":[1,"open-type"],"isHover":[4,"is-hover"],"delta":[2]},[[0,"click","onClick"]]]]],["p-bdc30301",[[0,"taro-official-account-core"]]],["p-b4f3d0ab",[[0,"taro-open-data-core"]]],["p-e3480c4c",[[0,"taro-page-container-core"]]],["p-86280254",[[0,"taro-page-meta-core"]]],["p-a940a65b",[[0,"taro-progress-core",{"percent":[2],"showInfo":[4,"show-info"],"borderRadius":[8,"border-radius"],"fontSize":[8,"font-size"],"strokeWidth":[8,"stroke-width"],"activeColor":[1,"active-color"],"backgroundColor":[1,"background-color"],"active":[4]}]]],["p-ab2d4f12",[[4,"taro-pull-to-refresh",{"prefixCls":[1,"prefix-cls"],"distanceToRefresh":[2,"distance-to-refresh"],"damping":[2],"indicator":[16],"currSt":[32],"dragOnEdge":[32]}]]],["p-5b67a98e",[[0,"taro-rich-text-core",{"nodes":[1]}]]],["p-5613907c",[[0,"taro-root-portal-core"]]],["p-b235e43c",[[0,"taro-rtc-room-core"]]],["p-46b8f89b",[[0,"taro-rtc-room-item-core"]]],["p-25adb80c",[[4,"taro-scroll-view-core",{"scrollX":[4,"scroll-x"],"scrollY":[4,"scroll-y"],"upperThreshold":[8,"upper-threshold"],"lowerThreshold":[8,"lower-threshold"],"mpScrollTop":[520,"scroll-top"],"mpScrollLeft":[520,"scroll-left"],"mpScrollIntoView":[513,"scroll-into-view"],"animated":[4,"scroll-with-animation"],"mpScrollToMethod":[64],"mpScrollIntoViewMethod":[64]},[[3,"scroll","handleScroll"]]]]],["p-486d0ec7",[[0,"taro-share-element-core"]]],["p-a1763153",[[0,"taro-slider-core",{"min":[2],"max":[2],"step":[2],"disabled":[4],"value":[1538],"activeColor":[1,"active-color"],"backgroundColor":[1,"background-color"],"blockSize":[2,"block-size"],"blockColor":[1,"block-color"],"showValue":[4,"show-value"],"name":[1],"totalWidth":[32],"touching":[32],"ogX":[32],"touchId":[32],"percent":[32],"ogPercent":[32],"isWillLoadCalled":[32]}]]],["p-cc164fa3",[[0,"taro-slot-core"]]],["p-71b54f06",[[0,"taro-sticky-header-core"]]],["p-3d8c9dfb",[[0,"taro-sticky-section-core"]]],["p-0fe855c6",[[0,"taro-switch-core",{"type":[1],"checked":[4],"color":[1],"name":[1],"disabled":[4],"nativeProps":[16],"isChecked":[32],"isWillLoadCalled":[32]}]]],["p-6f84e936",[[0,"taro-tab-item-core"]]],["p-df4c2f21",[[0,"taro-tabbar",{"conf":[16],"list":[32],"borderStyle":[32],"backgroundColor":[32],"color":[32],"selectedColor":[32],"selectedIndex":[32],"status":[32]}]]],["p-968b7c1d",[[0,"taro-tabs-core"]]],["p-ed011ff9",[[4,"taro-text-core",{"selectable":[4]}]]],["p-d8831b3c",[[0,"taro-textarea-core",{"value":[1025],"placeholder":[1],"disabled":[4],"maxlength":[2],"autoFocus":[516,"focus"],"autoHeight":[4,"auto-height"],"name":[1],"nativeProps":[16],"line":[32],"focus":[64]}]]],["p-ca3a269f",[[4,"taro-view-core",{"animation":[1],"hoverClass":[1,"hover-class"],"hoverStartTime":[2,"hover-start-time"],"hoverStayTime":[2,"hover-stay-time"],"hover":[32],"touch":[32]},[[1,"touchstart","onTouchStart"],[1,"touchmove","onTouchMove"],[1,"touchend","onTouchEnd"]]]]],["p-137531b6",[[0,"taro-voip-room-core"]]],["p-30805bdf",[[0,"taro-web-view-core",{"src":[1]}]]],["p-589293fd",[[4,"taro-picker-core",{"mode":[1],"disabled":[4],"range":[16],"rangeKey":[1,"range-key"],"value":[1032],"start":[1],"end":[1],"fields":[1],"name":[1],"pickerValue":[32],"height":[32],"hidden":[32],"fadeOut":[32],"isWillLoadCalled":[32]}],[0,"taro-picker-group",{"mode":[1],"range":[16],"rangeKey":[1,"range-key"],"height":[2],"columnId":[1,"column-id"],"updateHeight":[16],"onColumnChange":[16],"updateDay":[16],"startY":[32],"preY":[32],"hadMove":[32],"touchEnd":[32],"isMove":[32],"handleMoveStart":[64],"handleMoving":[64],"handleMoveEnd":[64]},[[1,"mousedown","onMouseDown"],[1,"mousemove","onMouseMove"],[1,"mouseup","onMouseMoveEnd"],[1,"mouseleave","onMouseMoveEnd"],[1,"touchstart","onTouchStart"],[1,"touchmove","onTouchMove"],[1,"touchend","onTouchEnd"]]]]],["p-dcbb7b2d",[[0,"taro-video-core",{"src":[1],"duration":[2],"controls":[4],"autoplay":[4],"loop":[4],"muted":[4],"initialTime":[2,"initial-time"],"poster":[1],"objectFit":[1,"object-fit"],"showProgress":[4,"show-progress"],"showFullscreenBtn":[4,"show-fullscreen-btn"],"showPlayBtn":[4,"show-play-btn"],"showCenterPlayBtn":[4,"show-center-play-btn"],"showMuteBtn":[4,"show-mute-btn"],"danmuList":[16],"danmuBtn":[4,"danmu-btn"],"enableDanmu":[4,"enable-danmu"],"enablePlayGesture":[4,"enable-play-gesture"],"enableProgressGesture":[4,"enable-progress-gesture"],"vslideGesture":[4,"vslide-gesture"],"vslideGestureInFullscreen":[4,"vslide-gesture-in-fullscreen"],"nativeProps":[16],"_duration":[32],"_enableDanmu":[32],"isPlaying":[32],"isFirst":[32],"isFullScreen":[32],"fullScreenTimestamp":[32],"isMute":[32],"getHlsObject":[64],"play":[64],"pause":[64],"stop":[64],"seek":[64],"requestFullScreen":[64],"exitFullScreen":[64]},[[5,"touchmove","onDocumentTouchMove"],[5,"touchend","onDocumentTouchEnd"],[5,"touchcancel","onDocumentTouchEnd"]]],[4,"taro-video-control",{"controls":[4],"currentTime":[2,"current-time"],"duration":[2],"isPlaying":[4,"is-playing"],"pauseFunc":[16],"playFunc":[16],"seekFunc":[16],"showPlayBtn":[4,"show-play-btn"],"showProgress":[4,"show-progress"],"setProgressBall":[64],"toggleVisibility":[64],"getIsDraggingProgressBall":[64],"setCurrentTime":[64]},[[5,"touchmove","onDocumentTouchMove"],[5,"touchend","onDocumentTouchEnd"],[5,"touchcancel","onDocumentTouchEnd"]]],[0,"taro-video-danmu",{"enable":[4],"danmuList":[32],"sendDanmu":[64],"tick":[64]}]]]]'),e)));
1
+ import{p as e,b as o}from"./p-9137dcab.js";export{s as setNonce}from"./p-9137dcab.js";(()=>{const o=import.meta.url,r={};return""!==o&&(r.resourcesUrl=new URL(".",o).href),e(r)})().then((e=>o(JSON.parse('[["p-962f28cb",[[4,"taro-checkbox-core",{"name":[1],"value":[1],"color":[1],"id":[1025],"checked":[4],"disabled":[4],"nativeProps":[16],"isWillLoadCalled":[32]}],[0,"taro-checkbox-group-core",{"name":[8]},[[0,"checkboxchange","function"]]]]],["p-f0340edf",[[0,"taro-movable-area-core",{"scaleArea":[4,"scale-area"]}],[0,"taro-movable-view-core",{"x":[8],"y":[8],"direction":[1],"outOfBounds":[4,"out-of-bounds"],"inertia":[4],"friction":[2],"damping":[2],"disabled":[4],"scale":[4],"scaleMin":[2,"scale-min"],"scaleMax":[2,"scale-max"],"scaleValue":[2,"scale-value"],"animation":[4],"setParent":[64],"endScale":[64],"setScale":[64]}]]],["p-31bba7c3",[[0,"taro-picker-view-column-core",{"col":[1],"initialPosition":[1,"initial-position"],"paddingVertical":[2,"padding-vertical"],"isInit":[32],"isMove":[32]},[[1,"scroll","onScroll"],[1,"mouseup","onMouseEnd"],[1,"mouseout","onMouseEnd"],[1,"mouseleave","onMouseEnd"],[1,"touchend","onTouchEnd"]]],[4,"taro-picker-view-core",{"indicatorStyle":[1,"indicator-style"],"indicatorClass":[1,"indicator-class"],"value":[16],"maskStyle":[1,"mask-style"],"maskClass":[1,"mask-class"]},[[0,"onselect","onSelect"],[0,"onselectstart","onSelectStart"],[0,"onselectend","onPickerColEnd"]]]]],["p-b641e598",[[4,"taro-radio-core",{"name":[1],"value":[1],"id":[1025],"checked":[1540],"disabled":[4],"nativeProps":[16],"isWillLoadCalled":[32]}],[0,"taro-radio-group-core",{"name":[8]},[[0,"radiochange","function"]]]]],["p-ba7cb688",[[4,"taro-swiper-core",{"indicatorDots":[4,"indicator-dots"],"indicatorColor":[1,"indicator-color"],"indicatorActiveColor":[1,"indicator-active-color"],"autoplay":[4],"current":[2],"interval":[2],"duration":[2],"circular":[4],"vertical":[4],"previousMargin":[1,"previous-margin"],"nextMargin":[1,"next-margin"],"displayMultipleItems":[2,"display-multiple-items"],"full":[4],"zoom":[4],"swiperWrapper":[32],"swiper":[32],"isWillLoadCalled":[32],"observer":[32],"observerFirst":[32],"observerLast":[32]}],[0,"taro-swiper-item-core",{"itemId":[1,"item-id"]}]]],["p-7b3b8057",[[0,"taro-ad-core"]]],["p-6db97374",[[0,"taro-ad-custom-core"]]],["p-2af69b72",[[0,"taro-animation-video-core"]]],["p-139e6251",[[0,"taro-animation-view-core"]]],["p-a8565231",[[0,"taro-ar-camera-core"]]],["p-bf0e0394",[[0,"taro-audio-core",{"src":[1],"controls":[4],"autoplay":[4],"loop":[4],"muted":[4],"nativeProps":[16]}]]],["p-f7b32c6b",[[0,"taro-aweme-data-core"]]],["p-9a5fbb2e",[[0,"taro-block-core"]]],["p-c490cd45",[[4,"taro-button-core",{"disabled":[4],"hoverClass":[1,"hover-class"],"type":[1],"hoverStartTime":[2,"hover-start-time"],"hoverStayTime":[2,"hover-stay-time"],"size":[1],"plain":[4],"loading":[4],"formType":[513,"form-type"],"hover":[32],"touch":[32]},[[0,"click","onClick"],[1,"touchstart","onTouchStart"],[1,"touchend","onTouchEnd"]]]]],["p-d34a6c04",[[0,"taro-camera-core"]]],["p-469ee343",[[0,"taro-canvas-core",{"canvasId":[1,"canvas-id"],"nativeProps":[16]}]]],["p-fb983850",[[0,"taro-channel-live-core"]]],["p-c11a42e0",[[0,"taro-channel-video-core"]]],["p-9aeb7995",[[0,"taro-comment-detail-core"]]],["p-af8e521a",[[0,"taro-comment-list-core"]]],["p-b027181b",[[0,"taro-contact-button-core"]]],["p-38ee526a",[[0,"taro-cover-image-core",{"src":[1],"nativeProps":[16]}]]],["p-3f9f3448",[[4,"taro-cover-view-core",{"animation":[1],"hoverClass":[1,"hover-class"],"hoverStartTime":[2,"hover-start-time"],"hoverStayTime":[2,"hover-stay-time"],"hover":[32],"touch":[32]},[[1,"touchstart","onTouchStart"],[1,"touchmove","onTouchMove"],[1,"touchend","onTouchEnd"]]]]],["p-72b118b0",[[0,"taro-custom-wrapper-core"]]],["p-1404c119",[[0,"taro-editor-core"]]],["p-a3a1a779",[[0,"taro-follow-swan-core"]]],["p-43720011",[[4,"taro-form-core",null,[[0,"tarobuttonsubmit","onButtonSubmit"],[0,"tarobuttonreset","onButtonReset"]]]]],["p-1c4e3899",[[0,"taro-functional-page-navigator-core"]]],["p-8c0b740e",[[0,"taro-grid-view-core"]]],["p-4e9bd4f6",[[0,"taro-icon-core",{"type":[1],"size":[8],"color":[1]}]]],["p-385d8aed",[[0,"taro-image-core",{"src":[1],"mode":[1],"lazyLoad":[4,"lazy-load"],"nativeProps":[16],"aspectFillMode":[32]}]]],["p-801f09b8",[[0,"taro-inline-payment-panel-core"]]],["p-a132ebb9",[[0,"taro-input-core",{"value":[1025],"type":[1],"password":[4],"placeholder":[1],"disabled":[4],"maxlength":[2],"autoFocus":[516,"focus"],"confirmType":[1,"confirm-type"],"name":[1],"nativeProps":[16],"focus":[64]}]]],["p-904df510",[[0,"taro-keyboard-accessory-core"]]],["p-f533bc2f",[[4,"taro-label-core",{"for":[1]}]]],["p-204bd245",[[0,"taro-lifestyle-core"]]],["p-407ca16e",[[0,"taro-like-core"]]],["p-355e4dbc",[[0,"taro-list-view-core"]]],["p-66f7eea6",[[0,"taro-live-player-core"]]],["p-af9ef8b4",[[0,"taro-live-pusher-core"]]],["p-50902cd0",[[0,"taro-login-core"]]],["p-9b6550fc",[[0,"taro-lottie-core"]]],["p-6e115968",[[0,"taro-map-core"]]],["p-7d635413",[[0,"taro-match-media-core"]]],["p-b4ea72ea",[[0,"taro-native-slot-core"]]],["p-9046110a",[[0,"taro-navigation-bar-core"]]],["p-b898d734",[[0,"taro-navigator-core",{"hoverClass":[1,"hover-class"],"url":[1],"openType":[1,"open-type"],"isHover":[4,"is-hover"],"delta":[2]},[[0,"click","onClick"]]]]],["p-bdc30301",[[0,"taro-official-account-core"]]],["p-b4f3d0ab",[[0,"taro-open-data-core"]]],["p-e3480c4c",[[0,"taro-page-container-core"]]],["p-86280254",[[0,"taro-page-meta-core"]]],["p-a940a65b",[[0,"taro-progress-core",{"percent":[2],"showInfo":[4,"show-info"],"borderRadius":[8,"border-radius"],"fontSize":[8,"font-size"],"strokeWidth":[8,"stroke-width"],"activeColor":[1,"active-color"],"backgroundColor":[1,"background-color"],"active":[4]}]]],["p-ab2d4f12",[[4,"taro-pull-to-refresh",{"prefixCls":[1,"prefix-cls"],"distanceToRefresh":[2,"distance-to-refresh"],"damping":[2],"indicator":[16],"currSt":[32],"dragOnEdge":[32]}]]],["p-5b67a98e",[[0,"taro-rich-text-core",{"nodes":[1]}]]],["p-5613907c",[[0,"taro-root-portal-core"]]],["p-b235e43c",[[0,"taro-rtc-room-core"]]],["p-46b8f89b",[[0,"taro-rtc-room-item-core"]]],["p-25adb80c",[[4,"taro-scroll-view-core",{"scrollX":[4,"scroll-x"],"scrollY":[4,"scroll-y"],"upperThreshold":[8,"upper-threshold"],"lowerThreshold":[8,"lower-threshold"],"mpScrollTop":[520,"scroll-top"],"mpScrollLeft":[520,"scroll-left"],"mpScrollIntoView":[513,"scroll-into-view"],"animated":[4,"scroll-with-animation"],"mpScrollToMethod":[64],"mpScrollIntoViewMethod":[64]},[[3,"scroll","handleScroll"]]]]],["p-486d0ec7",[[0,"taro-share-element-core"]]],["p-a1763153",[[0,"taro-slider-core",{"min":[2],"max":[2],"step":[2],"disabled":[4],"value":[1538],"activeColor":[1,"active-color"],"backgroundColor":[1,"background-color"],"blockSize":[2,"block-size"],"blockColor":[1,"block-color"],"showValue":[4,"show-value"],"name":[1],"totalWidth":[32],"touching":[32],"ogX":[32],"touchId":[32],"percent":[32],"ogPercent":[32],"isWillLoadCalled":[32]}]]],["p-cc164fa3",[[0,"taro-slot-core"]]],["p-71b54f06",[[0,"taro-sticky-header-core"]]],["p-3d8c9dfb",[[0,"taro-sticky-section-core"]]],["p-0fe855c6",[[0,"taro-switch-core",{"type":[1],"checked":[4],"color":[1],"name":[1],"disabled":[4],"nativeProps":[16],"isChecked":[32],"isWillLoadCalled":[32]}]]],["p-6f84e936",[[0,"taro-tab-item-core"]]],["p-df4c2f21",[[0,"taro-tabbar",{"conf":[16],"list":[32],"borderStyle":[32],"backgroundColor":[32],"color":[32],"selectedColor":[32],"selectedIndex":[32],"status":[32]}]]],["p-968b7c1d",[[0,"taro-tabs-core"]]],["p-ed011ff9",[[4,"taro-text-core",{"selectable":[4]}]]],["p-d8831b3c",[[0,"taro-textarea-core",{"value":[1025],"placeholder":[1],"disabled":[4],"maxlength":[2],"autoFocus":[516,"focus"],"autoHeight":[4,"auto-height"],"name":[1],"nativeProps":[16],"line":[32],"focus":[64]}]]],["p-ca3a269f",[[4,"taro-view-core",{"animation":[1],"hoverClass":[1,"hover-class"],"hoverStartTime":[2,"hover-start-time"],"hoverStayTime":[2,"hover-stay-time"],"hover":[32],"touch":[32]},[[1,"touchstart","onTouchStart"],[1,"touchmove","onTouchMove"],[1,"touchend","onTouchEnd"]]]]],["p-137531b6",[[0,"taro-voip-room-core"]]],["p-30805bdf",[[0,"taro-web-view-core",{"src":[1]}]]],["p-589293fd",[[4,"taro-picker-core",{"mode":[1],"disabled":[4],"range":[16],"rangeKey":[1,"range-key"],"value":[1032],"start":[1],"end":[1],"fields":[1],"name":[1],"pickerValue":[32],"height":[32],"hidden":[32],"fadeOut":[32],"isWillLoadCalled":[32]}],[0,"taro-picker-group",{"mode":[1],"range":[16],"rangeKey":[1,"range-key"],"height":[2],"columnId":[1,"column-id"],"updateHeight":[16],"onColumnChange":[16],"updateDay":[16],"startY":[32],"preY":[32],"hadMove":[32],"touchEnd":[32],"isMove":[32],"handleMoveStart":[64],"handleMoving":[64],"handleMoveEnd":[64]},[[1,"mousedown","onMouseDown"],[1,"mousemove","onMouseMove"],[1,"mouseup","onMouseMoveEnd"],[1,"mouseleave","onMouseMoveEnd"],[1,"touchstart","onTouchStart"],[1,"touchmove","onTouchMove"],[1,"touchend","onTouchEnd"]]]]],["p-dcbb7b2d",[[0,"taro-video-core",{"src":[1],"duration":[2],"controls":[4],"autoplay":[4],"loop":[4],"muted":[4],"initialTime":[2,"initial-time"],"poster":[1],"objectFit":[1,"object-fit"],"showProgress":[4,"show-progress"],"showFullscreenBtn":[4,"show-fullscreen-btn"],"showPlayBtn":[4,"show-play-btn"],"showCenterPlayBtn":[4,"show-center-play-btn"],"showMuteBtn":[4,"show-mute-btn"],"danmuList":[16],"danmuBtn":[4,"danmu-btn"],"enableDanmu":[4,"enable-danmu"],"enablePlayGesture":[4,"enable-play-gesture"],"enableProgressGesture":[4,"enable-progress-gesture"],"vslideGesture":[4,"vslide-gesture"],"vslideGestureInFullscreen":[4,"vslide-gesture-in-fullscreen"],"nativeProps":[16],"_duration":[32],"_enableDanmu":[32],"isPlaying":[32],"isFirst":[32],"isFullScreen":[32],"fullScreenTimestamp":[32],"isMute":[32],"getHlsObject":[64],"play":[64],"pause":[64],"stop":[64],"seek":[64],"requestFullScreen":[64],"exitFullScreen":[64]},[[5,"touchmove","onDocumentTouchMove"],[5,"touchend","onDocumentTouchEnd"],[5,"touchcancel","onDocumentTouchEnd"]]],[4,"taro-video-control",{"controls":[4],"currentTime":[2,"current-time"],"duration":[2],"isPlaying":[4,"is-playing"],"pauseFunc":[16],"playFunc":[16],"seekFunc":[16],"showPlayBtn":[4,"show-play-btn"],"showProgress":[4,"show-progress"],"setProgressBall":[64],"toggleVisibility":[64],"getIsDraggingProgressBall":[64],"setCurrentTime":[64]},[[5,"touchmove","onDocumentTouchMove"],[5,"touchend","onDocumentTouchEnd"],[5,"touchcancel","onDocumentTouchEnd"]]],[0,"taro-video-danmu",{"enable":[4],"danmuList":[32],"sendDanmu":[64],"tick":[64]}]]]]'),e)));
@@ -1,7 +1,7 @@
1
1
  import { ComponentInterface, EventEmitter } from '../../stencil-public-runtime';
2
2
  export declare class Form implements ComponentInterface {
3
+ #private;
3
4
  private form;
4
- private value;
5
5
  private originalAppendChild;
6
6
  private originalInsertBefore;
7
7
  private originalReplaceChild;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tarojs/components",
3
- "version": "3.6.5-alpha.1",
3
+ "version": "3.6.5-alpha.2",
4
4
  "description": "Taro 组件库",
5
5
  "browser": "dist/index.js",
6
6
  "main:h5": "dist/index.js",
@@ -37,9 +37,9 @@
37
37
  "resolve-pathname": "^3.0.0",
38
38
  "swiper": "6.8.0",
39
39
  "weui": "^1.1.2",
40
- "@tarojs/components-advanced": "3.6.5-alpha.1",
41
- "@tarojs/router": "3.6.5-alpha.1",
42
- "@tarojs/taro": "3.6.5-alpha.1"
40
+ "@tarojs/components-advanced": "3.6.5-alpha.2",
41
+ "@tarojs/router": "3.6.5-alpha.2",
42
+ "@tarojs/taro": "3.6.5-alpha.2"
43
43
  },
44
44
  "devDependencies": {
45
45
  "@babel/generator": "^7.20.0",
@@ -137,7 +137,7 @@ interface ScrollViewProps extends StandardProps {
137
137
  * @supported weapp
138
138
  * @default 'list'
139
139
  */
140
- type: 'list' | 'custom'
140
+ type?: 'list' | 'custom'
141
141
  /** 是否反向滚动。一般初始滚动位置是在顶部,反向滚动则是在底部。
142
142
  * @supported weapp
143
143
  * @default false
@@ -1 +0,0 @@
1
- System.register(["./p-7e6b54cb.system.js"],(function(e){"use strict";var t,n,i,o,r;return{setters:[function(e){t=e.r;n=e.c;i=e.h;o=e.H;r=e.g}],execute:function(){var a='.taro-checkbox{display:inline-block;position:relative}.taro-checkbox_checked{display:inline-block;position:relative;top:5px;border:1px solid #d1d1d1;border-radius:3px;width:23px;height:23px;min-height:0;-webkit-appearance:none;-moz-appearance:none;appearance:none;outline:0;background-color:#fff;vertical-align:0;font-size:23px;color:#1aad19}.taro-checkbox_checked:checked::before{display:inline-block;position:absolute;left:50%;top:50%;vertical-align:middle;text-decoration:inherit;text-align:center;text-transform:none;font-family:weui;font-style:normal;font-weight:normal;font-variant:normal;font-size:inherit;color:inherit;content:"\\ea08";-webkit-transform:translate(-50%, -48%) scale(0.73);transform:translate(-50%, -48%) scale(0.73);speak:none}';var c=e("taro_checkbox_core",function(){function e(e){var i=this;t(this,e);this.onChange=n(this,"checkboxchange",7);this.handleChange=function(e){e.stopPropagation();i.onChange.emit({value:i.value})};this.name=undefined;this.value="";this.color=undefined;this.id=undefined;this.checked=false;this.disabled=false;this.nativeProps={};this.isWillLoadCalled=false}e.prototype.watchId=function(e){if(!this.isWillLoadCalled)return;if(e)this.inputEl.setAttribute("id",e)};e.prototype.componentWillLoad=function(){this.isWillLoadCalled=true};e.prototype.componentDidRender=function(){this.id&&this.el.removeAttribute("id")};e.prototype.render=function(){var e=this;var t=this,n=t.checked,r=t.name,a=t.color,c=t.value,l=t.disabled,u=t.nativeProps;return i(o,{className:"weui-cells_checkbox"},i("input",Object.assign({ref:function(t){if(!t)return;e.inputEl=t;if(e.id)t.setAttribute("id",e.id)},type:"checkbox",value:c,name:r,class:"taro-checkbox_checked",style:{color:a},checked:n,disabled:l,onChange:this.handleChange},u)),i("slot",null))};Object.defineProperty(e.prototype,"el",{get:function(){return r(this)},enumerable:false,configurable:true});Object.defineProperty(e,"watchers",{get:function(){return{id:["watchId"]}},enumerable:false,configurable:true});return e}());c.style=a;var l=e("taro_checkbox_group_core",function(){function e(e){t(this,e);this.onChange=n(this,"change",7);this.uniqueName=Date.now().toString(36);this.name=undefined}e.prototype.function=function(e){e.stopPropagation();if(e.target.tagName!=="TARO-CHECKBOX-CORE")return;var t=this.el.querySelectorAll("taro-checkbox-core");this.value=this.getValues(t);this.onChange.emit({value:this.value})};e.prototype.componentDidLoad=function(){var e=this;var t=this.el.querySelectorAll("taro-checkbox-core");t.forEach((function(t){t.setAttribute("name",e.name||e.uniqueName)}));Object.defineProperty(this.el,"value",{get:function(){if(!e.value){var t=e.el.querySelectorAll("taro-checkbox-core");e.value=e.getValues(t)}return e.value},configurable:true})};e.prototype.getValues=function(e){return Array.from(e).filter((function(e){var t=e.querySelector("input");return t===null||t===void 0?void 0:t.checked})).map((function(e){return e.value}))};e.prototype.render=function(){return i(o,null)};Object.defineProperty(e.prototype,"el",{get:function(){return r(this)},enumerable:false,configurable:true});return e}())}}}));
@@ -1 +0,0 @@
1
- import{r as t,c as e,h as i,H as o,g as s}from"./p-9137dcab.js";const n=class{constructor(i){t(this,i),this.onChange=e(this,"checkboxchange",7),this.handleChange=t=>{t.stopPropagation(),this.onChange.emit({value:this.value})},this.name=void 0,this.value="",this.color=void 0,this.id=void 0,this.checked=!1,this.disabled=!1,this.nativeProps={},this.isWillLoadCalled=!1}watchId(t){this.isWillLoadCalled&&t&&this.inputEl.setAttribute("id",t)}componentWillLoad(){this.isWillLoadCalled=!0}componentDidRender(){this.id&&this.el.removeAttribute("id")}render(){const{checked:t,name:e,color:s,value:n,disabled:c,nativeProps:r}=this;return i(o,{className:"weui-cells_checkbox"},i("input",Object.assign({ref:t=>{t&&(this.inputEl=t,this.id&&t.setAttribute("id",this.id))},type:"checkbox",value:n,name:e,class:"taro-checkbox_checked",style:{color:s},checked:t,disabled:c,onChange:this.handleChange},r)),i("slot",null))}get el(){return s(this)}static get watchers(){return{id:["watchId"]}}};n.style='.taro-checkbox{display:inline-block;position:relative}.taro-checkbox_checked{display:inline-block;position:relative;top:5px;border:1px solid #d1d1d1;border-radius:3px;width:23px;height:23px;min-height:0;-webkit-appearance:none;-moz-appearance:none;appearance:none;outline:0;background-color:#fff;vertical-align:0;font-size:23px;color:#1aad19}.taro-checkbox_checked:checked::before{display:inline-block;position:absolute;left:50%;top:50%;vertical-align:middle;text-decoration:inherit;text-align:center;text-transform:none;font-family:weui;font-style:normal;font-weight:normal;font-variant:normal;font-size:inherit;color:inherit;content:"\\ea08";-webkit-transform:translate(-50%, -48%) scale(0.73);transform:translate(-50%, -48%) scale(0.73);speak:none}';const c=class{constructor(i){t(this,i),this.onChange=e(this,"change",7),this.uniqueName=Date.now().toString(36),this.name=void 0}function(t){if(t.stopPropagation(),"TARO-CHECKBOX-CORE"!==t.target.tagName)return;const e=this.el.querySelectorAll("taro-checkbox-core");this.value=this.getValues(e),this.onChange.emit({value:this.value})}componentDidLoad(){this.el.querySelectorAll("taro-checkbox-core").forEach((t=>{t.setAttribute("name",this.name||this.uniqueName)})),Object.defineProperty(this.el,"value",{get:()=>{if(!this.value){const t=this.el.querySelectorAll("taro-checkbox-core");this.value=this.getValues(t)}return this.value},configurable:!0})}getValues(t){return Array.from(t).filter((t=>{const e=t.querySelector("input");return null==e?void 0:e.checked})).map((t=>t.value))}render(){return i(o,null)}get el(){return s(this)}};export{n as taro_checkbox_core,c as taro_checkbox_group_core}
@@ -1 +0,0 @@
1
- import{r as t,c as i,h as s,H as e,g as h}from"./p-9137dcab.js";const c=class{constructor(s){t(this,s),this.onChange=i(this,"radiochange",7),this.handleClick=t=>{t.stopPropagation(),this.disabled||this.checked||(this.checked=!0)},this.name=void 0,this.value="",this.id=void 0,this.checked=!1,this.disabled=!1,this.nativeProps={},this.isWillLoadCalled=!1}watchChecked(t){this.isWillLoadCalled&&t&&this.onChange.emit({value:this.value})}watchId(t){this.isWillLoadCalled&&t&&this.inputEl.setAttribute("id",t)}componentDidRender(){this.id&&this.el.removeAttribute("id")}componentWillLoad(){this.isWillLoadCalled=!0}render(){const{checked:t,name:i,value:h,disabled:c,nativeProps:r}=this;return s(e,{className:"weui-cells_checkbox",onClick:this.handleClick},s("input",Object.assign({ref:t=>{t&&(this.inputEl=t,this.id&&t.setAttribute("id",this.id))},type:"radio",name:i,value:h,class:"weui-check",checked:t,disabled:c,onChange:t=>t.stopPropagation()},r)),s("i",{class:"weui-icon-checked"}),s("slot",null))}get el(){return h(this)}static get watchers(){return{checked:["watchChecked"],id:["watchId"]}}},r=class{constructor(s){t(this,s),this.onChange=i(this,"change",7),this.uniqueName=Date.now().toString(36),this.name=void 0}function(t){if(t.stopPropagation(),"TARO-RADIO-CORE"!==t.target.tagName)return;const i=t.target;i.checked&&(this.el.querySelectorAll("taro-radio-core").forEach((t=>{t!==i&&(t.checked=!1)})),this.value=t.detail.value,this.onChange.emit({value:this.value}))}componentDidLoad(){this.el.querySelectorAll("taro-radio-core").forEach((t=>{t.setAttribute("name",this.name||this.uniqueName)})),Object.defineProperty(this.el,"value",{get:()=>{if(!this.value){const t=this.el.querySelectorAll("taro-radio-core");this.value=this.getValues(t)}return this.value},configurable:!0})}getValues(t){let i="";return Array.from(t).forEach((t=>{const s=t.querySelector("input");(null==s?void 0:s.checked)&&(i=s.value||"")})),i}render(){return s(e,{class:"weui-cells_radiogroup"})}get el(){return h(this)}};export{c as taro_radio_core,r as taro_radio_group_core}
@@ -1 +0,0 @@
1
- System.register(["./p-7e6b54cb.system.js"],(function(e){"use strict";var t,i,r,n;return{setters:[function(e){t=e.r;i=e.c;r=e.h;n=e.g}],execute:function(){var o=e("taro_form_core",function(){function e(e){t(this,e);this.onSubmit=i(this,"submit",7);this.value={}}e.prototype.onButtonSubmit=function(e){e.stopPropagation();this.value=this.getFormValue();this.onSubmit.emit({value:this.value})};e.prototype.onButtonReset=function(e){e.stopPropagation();this.form.reset()};e.prototype.componentDidLoad=function(){var e=this;this.value=this.getFormValue();Object.defineProperty(this.el,"value",{get:function(){return e.value},configurable:true})};e.prototype.componentDidRender=function(){var e=this;if(!this.originalAppendChild){this.originalAppendChild=this.el.appendChild;this.originalInsertBefore=this.el.insertBefore;this.originalReplaceChild=this.el.replaceChild;this.originalRemoveChild=this.el.removeChild}if(!this.form){this.el.appendChild=this.originalAppendChild;this.el.insertBefore=this.originalInsertBefore;this.el.replaceChild=this.originalReplaceChild;this.el.removeChild=this.originalRemoveChild;return}this.el.appendChild=function(t){return e.form.appendChild(t)};this.el.insertBefore=function(t,i){return e.form.insertBefore(t,i)};this.el.replaceChild=function(t,i){return e.form.replaceChild(t,i)};this.el.removeChild=function(t){return e.form.removeChild(t)}};e.prototype.getFormValue=function(){var e=this.el;var t=[];var i=e.getElementsByTagName("input");for(var r=0;r<i.length;r++){t.push(i[r])}var n={};var o={};t.forEach((function(e){if(typeof e.name!=="string")return;if(e.className.indexOf("weui-switch")!==-1){n[e.name]=e.checked;return}if(e.type==="radio"){if(e.checked){o[e.name]=true;n[e.name]=e.value}else{if(!o[e.name]){n[e.name]=""}}return}if(e.type==="checkbox"){if(e.checked){if(o[e.name]){n[e.name].push(e.value)}else{o[e.name]=true;n[e.name]=[e.value]}}else{if(!o[e.name]){n[e.name]=[]}}return}n[e.name]=e.value}));var a=e.getElementsByTagName("textarea");var l=[];for(var s=0;s<a.length;s++){l.push(a[s])}l.forEach((function(e){if(typeof e.name!=="string")return;n[e.name]=e.value}));return n};e.prototype.render=function(){var e=this;return r("form",{ref:function(t){e.form=t}},r("slot",null))};Object.defineProperty(e.prototype,"el",{get:function(){return n(this)},enumerable:false,configurable:true});return e}())}}}));
@@ -1 +0,0 @@
1
- System.register(["./p-7e6b54cb.system.js"],(function(e){"use strict";var t,i,r,n,o;return{setters:[function(e){t=e.r;i=e.c;r=e.h;n=e.H;o=e.g}],execute:function(){var a=e("taro_radio_core",function(){function e(e){var r=this;t(this,e);this.onChange=i(this,"radiochange",7);this.handleClick=function(e){e.stopPropagation();if(r.disabled)return;if(!r.checked)r.checked=true};this.name=undefined;this.value="";this.id=undefined;this.checked=false;this.disabled=false;this.nativeProps={};this.isWillLoadCalled=false}e.prototype.watchChecked=function(e){if(!this.isWillLoadCalled)return;e&&this.onChange.emit({value:this.value})};e.prototype.watchId=function(e){if(!this.isWillLoadCalled)return;if(e)this.inputEl.setAttribute("id",e)};e.prototype.componentDidRender=function(){this.id&&this.el.removeAttribute("id")};e.prototype.componentWillLoad=function(){this.isWillLoadCalled=true};e.prototype.render=function(){var e=this;var t=this,i=t.checked,o=t.name,a=t.value,u=t.disabled,c=t.nativeProps;return r(n,{className:"weui-cells_checkbox",onClick:this.handleClick},r("input",Object.assign({ref:function(t){if(!t)return;e.inputEl=t;if(e.id)t.setAttribute("id",e.id)},type:"radio",name:o,value:a,class:"weui-check",checked:i,disabled:u,onChange:function(e){return e.stopPropagation()}},c)),r("i",{class:"weui-icon-checked"}),r("slot",null))};Object.defineProperty(e.prototype,"el",{get:function(){return o(this)},enumerable:false,configurable:true});Object.defineProperty(e,"watchers",{get:function(){return{checked:["watchChecked"],id:["watchId"]}},enumerable:false,configurable:true});return e}());var u=e("taro_radio_group_core",function(){function e(e){t(this,e);this.onChange=i(this,"change",7);this.uniqueName=Date.now().toString(36);this.name=undefined}e.prototype.function=function(e){e.stopPropagation();if(e.target.tagName!=="TARO-RADIO-CORE")return;var t=e.target;if(t.checked){var i=this.el.querySelectorAll("taro-radio-core");i.forEach((function(e){if(e!==t){e.checked=false}}));this.value=e.detail.value;this.onChange.emit({value:this.value})}};e.prototype.componentDidLoad=function(){var e=this;var t=this.el.querySelectorAll("taro-radio-core");t.forEach((function(t){t.setAttribute("name",e.name||e.uniqueName)}));Object.defineProperty(this.el,"value",{get:function(){if(!e.value){var t=e.el.querySelectorAll("taro-radio-core");e.value=e.getValues(t)}return e.value},configurable:true})};e.prototype.getValues=function(e){var t="";Array.from(e).forEach((function(e){var i=e.querySelector("input");if(i===null||i===void 0?void 0:i.checked){t=i.value||""}}));return t};e.prototype.render=function(){return r(n,{class:"weui-cells_radiogroup"})};Object.defineProperty(e.prototype,"el",{get:function(){return o(this)},enumerable:false,configurable:true});return e}())}}}));
@@ -1 +0,0 @@
1
- import{r as t,c as s,h as i,g as h}from"./p-9137dcab.js";const e=class{constructor(i){t(this,i),this.onSubmit=s(this,"submit",7),this.value={}}onButtonSubmit(t){t.stopPropagation(),this.value=this.getFormValue(),this.onSubmit.emit({value:this.value})}onButtonReset(t){t.stopPropagation(),this.form.reset()}componentDidLoad(){this.value=this.getFormValue(),Object.defineProperty(this.el,"value",{get:()=>this.value,configurable:!0})}componentDidRender(){if(this.originalAppendChild||(this.originalAppendChild=this.el.appendChild,this.originalInsertBefore=this.el.insertBefore,this.originalReplaceChild=this.el.replaceChild,this.originalRemoveChild=this.el.removeChild),!this.form)return this.el.appendChild=this.originalAppendChild,this.el.insertBefore=this.originalInsertBefore,this.el.replaceChild=this.originalReplaceChild,void(this.el.removeChild=this.originalRemoveChild);this.el.appendChild=t=>this.form.appendChild(t),this.el.insertBefore=(t,s)=>this.form.insertBefore(t,s),this.el.replaceChild=(t,s)=>this.form.replaceChild(t,s),this.el.removeChild=t=>this.form.removeChild(t)}getFormValue(){const t=this.el,s=[],i=t.getElementsByTagName("input");for(let t=0;t<i.length;t++)s.push(i[t]);const h={},e={};s.forEach((t=>{"string"==typeof t.name&&(-1===t.className.indexOf("weui-switch")?"radio"!==t.type?"checkbox"!==t.type?h[t.name]=t.value:t.checked?e[t.name]?h[t.name].push(t.value):(e[t.name]=!0,h[t.name]=[t.value]):e[t.name]||(h[t.name]=[]):t.checked?(e[t.name]=!0,h[t.name]=t.value):e[t.name]||(h[t.name]=""):h[t.name]=t.checked)}));const o=t.getElementsByTagName("textarea"),r=[];for(let t=0;t<o.length;t++)r.push(o[t]);return r.forEach((t=>{"string"==typeof t.name&&(h[t.name]=t.value)})),h}render(){return i("form",{ref:t=>{this.form=t}},i("slot",null))}get el(){return h(this)}};export{e as taro_form_core}