@tarojs/components 3.6.5-canary.0 → 3.6.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/taro-checkbox-core_2.cjs.entry.js +24 -5
- package/dist/cjs/taro-form-core.cjs.entry.js +23 -5
- package/dist/cjs/taro-radio-core_2.cjs.entry.js +24 -5
- package/dist/collection/components/checkbox/checkbox-group.js +24 -5
- package/dist/collection/components/form/form.js +23 -5
- package/dist/collection/components/radio/radio-group.js +24 -5
- package/dist/components/taro-checkbox-group-core.js +24 -5
- package/dist/components/taro-form-core.js +23 -5
- package/dist/components/taro-radio-group-core.js +24 -5
- package/dist/esm/taro-checkbox-core_2.entry.js +24 -5
- package/dist/esm/taro-form-core.entry.js +23 -5
- package/dist/esm/taro-radio-core_2.entry.js +24 -5
- package/dist/esm-es5/taro-checkbox-core_2.entry.js +1 -1
- package/dist/esm-es5/taro-form-core.entry.js +1 -1
- package/dist/esm-es5/taro-radio-core_2.entry.js +1 -1
- package/dist/taro-components/p-0d7a705b.system.entry.js +1 -0
- package/dist/taro-components/p-2a071adf.system.entry.js +1 -0
- package/dist/taro-components/p-43720011.entry.js +1 -0
- package/dist/taro-components/p-962f28cb.entry.js +1 -0
- package/dist/taro-components/p-b641e598.entry.js +1 -0
- package/dist/taro-components/p-ed331c06.system.js +1 -1
- package/dist/taro-components/p-fd7ff0f3.system.entry.js +1 -0
- package/dist/taro-components/taro-components.esm.js +1 -1
- package/dist/types/components/form/form.d.ts +1 -1
- package/lib/react/node_modules/.pnpm/{registry.npmjs.org_tslib@1.14.1 → registry.npmjs.org_tslib@2.5.0}/node_modules/tslib/tslib.es6.js +98 -23
- package/lib/react/node_modules/.pnpm/{registry.npmjs.org_tslib@1.14.1 → registry.npmjs.org_tslib@2.5.0}/node_modules/tslib/tslib.es6.js.map +1 -1
- package/lib/react/react-component-lib/createComponent.js +1 -1
- package/lib/react/react-component-lib/createOverlayComponent.js +1 -1
- package/package.json +4 -4
- package/dist/taro-components/p-2ce33c64.system.entry.js +0 -1
- package/dist/taro-components/p-5125596b.entry.js +0 -1
- package/dist/taro-components/p-5ab755ed.entry.js +0 -1
- package/dist/taro-components/p-6c5f7bc3.system.entry.js +0 -1
- package/dist/taro-components/p-7e59fb3b.system.entry.js +0 -1
- 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
|
|
87
|
+
__classPrivateFieldSet(this, _CheckboxGroup_value, this.getValues(childList), "f");
|
|
70
88
|
this.onChange.emit({
|
|
71
|
-
value: this
|
|
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
|
|
99
|
+
if (!__classPrivateFieldGet(this, _CheckboxGroup_value, "f")) {
|
|
82
100
|
const childList = this.el.querySelectorAll('taro-checkbox-core');
|
|
83
|
-
this
|
|
101
|
+
__classPrivateFieldSet(this, _CheckboxGroup_value, this.getValues(childList), "f");
|
|
84
102
|
}
|
|
85
|
-
return this
|
|
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
|
|
28
|
+
_Form_value.set(this, {});
|
|
12
29
|
}
|
|
13
30
|
onButtonSubmit(e) {
|
|
14
31
|
e.stopPropagation();
|
|
15
|
-
this
|
|
32
|
+
__classPrivateFieldSet(this, _Form_value, this.getFormValue(), "f");
|
|
16
33
|
this.onSubmit.emit({
|
|
17
|
-
value: this
|
|
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
|
|
42
|
+
__classPrivateFieldSet(this, _Form_value, this.getFormValue(), "f");
|
|
26
43
|
Object.defineProperty(this.el, 'value', {
|
|
27
|
-
get: () => this
|
|
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
|
|
97
|
+
__classPrivateFieldSet(this, _RadioGroup_value, e.detail.value, "f");
|
|
80
98
|
this.onChange.emit({
|
|
81
|
-
value: this
|
|
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
|
|
110
|
+
if (!__classPrivateFieldGet(this, _RadioGroup_value, "f")) {
|
|
93
111
|
const childList = this.el.querySelectorAll('taro-radio-core');
|
|
94
|
-
this
|
|
112
|
+
__classPrivateFieldSet(this, _RadioGroup_value, this.getValues(childList), "f");
|
|
95
113
|
}
|
|
96
|
-
return this
|
|
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
|
|
31
|
+
__classPrivateFieldSet(this, _CheckboxGroup_value, this.getValues(childList), "f");
|
|
14
32
|
this.onChange.emit({
|
|
15
|
-
value: this
|
|
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
|
|
43
|
+
if (!__classPrivateFieldGet(this, _CheckboxGroup_value, "f")) {
|
|
26
44
|
const childList = this.el.querySelectorAll('taro-checkbox-core');
|
|
27
|
-
this
|
|
45
|
+
__classPrivateFieldSet(this, _CheckboxGroup_value, this.getValues(childList), "f");
|
|
28
46
|
}
|
|
29
|
-
return this
|
|
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
|
|
21
|
+
_Form_value.set(this, {});
|
|
5
22
|
}
|
|
6
23
|
onButtonSubmit(e) {
|
|
7
24
|
e.stopPropagation();
|
|
8
|
-
this
|
|
25
|
+
__classPrivateFieldSet(this, _Form_value, this.getFormValue(), "f");
|
|
9
26
|
this.onSubmit.emit({
|
|
10
|
-
value: this
|
|
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
|
|
35
|
+
__classPrivateFieldSet(this, _Form_value, this.getFormValue(), "f");
|
|
19
36
|
Object.defineProperty(this.el, 'value', {
|
|
20
|
-
get: () => this
|
|
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
|
|
37
|
+
__classPrivateFieldSet(this, _RadioGroup_value, e.detail.value, "f");
|
|
20
38
|
this.onChange.emit({
|
|
21
|
-
value: this
|
|
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
|
|
50
|
+
if (!__classPrivateFieldGet(this, _RadioGroup_value, "f")) {
|
|
33
51
|
const childList = this.el.querySelectorAll('taro-radio-core');
|
|
34
|
-
this
|
|
52
|
+
__classPrivateFieldSet(this, _RadioGroup_value, this.getValues(childList), "f");
|
|
35
53
|
}
|
|
36
|
-
return this
|
|
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
|
|
34
|
+
__classPrivateFieldSet(this, _CheckboxGroup_value, this.getValues(childList), "f");
|
|
17
35
|
this.onChange.emit({
|
|
18
|
-
value: this
|
|
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
|
|
46
|
+
if (!__classPrivateFieldGet(this, _CheckboxGroup_value, "f")) {
|
|
29
47
|
const childList = this.el.querySelectorAll('taro-checkbox-core');
|
|
30
|
-
this
|
|
48
|
+
__classPrivateFieldSet(this, _CheckboxGroup_value, this.getValues(childList), "f");
|
|
31
49
|
}
|
|
32
|
-
return this
|
|
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
|
|
25
|
+
_Form_value.set(this, {});
|
|
9
26
|
}
|
|
10
27
|
onButtonSubmit(e) {
|
|
11
28
|
e.stopPropagation();
|
|
12
|
-
this
|
|
29
|
+
__classPrivateFieldSet(this, _Form_value, this.getFormValue(), "f");
|
|
13
30
|
this.onSubmit.emit({
|
|
14
|
-
value: this
|
|
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
|
|
39
|
+
__classPrivateFieldSet(this, _Form_value, this.getFormValue(), "f");
|
|
23
40
|
Object.defineProperty(this.el, 'value', {
|
|
24
|
-
get: () => this
|
|
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
|
|
41
|
+
__classPrivateFieldSet(this, _RadioGroup_value, e.detail.value, "f");
|
|
24
42
|
this.onChange.emit({
|
|
25
|
-
value: this
|
|
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
|
|
54
|
+
if (!__classPrivateFieldGet(this, _RadioGroup_value, "f")) {
|
|
37
55
|
const childList = this.el.querySelectorAll('taro-radio-core');
|
|
38
|
-
this
|
|
56
|
+
__classPrivateFieldSet(this, _RadioGroup_value, this.getValues(childList), "f");
|
|
39
57
|
}
|
|
40
|
-
return this
|
|
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
|
|
83
|
+
__classPrivateFieldSet(this, _CheckboxGroup_value, this.getValues(childList), "f");
|
|
66
84
|
this.onChange.emit({
|
|
67
|
-
value: this
|
|
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
|
|
95
|
+
if (!__classPrivateFieldGet(this, _CheckboxGroup_value, "f")) {
|
|
78
96
|
const childList = this.el.querySelectorAll('taro-checkbox-core');
|
|
79
|
-
this
|
|
97
|
+
__classPrivateFieldSet(this, _CheckboxGroup_value, this.getValues(childList), "f");
|
|
80
98
|
}
|
|
81
|
-
return this
|
|
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
|
|
24
|
+
_Form_value.set(this, {});
|
|
8
25
|
}
|
|
9
26
|
onButtonSubmit(e) {
|
|
10
27
|
e.stopPropagation();
|
|
11
|
-
this
|
|
28
|
+
__classPrivateFieldSet(this, _Form_value, this.getFormValue(), "f");
|
|
12
29
|
this.onSubmit.emit({
|
|
13
|
-
value: this
|
|
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
|
|
38
|
+
__classPrivateFieldSet(this, _Form_value, this.getFormValue(), "f");
|
|
22
39
|
Object.defineProperty(this.el, 'value', {
|
|
23
|
-
get: () => this
|
|
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 };
|