@tarojs/components 3.7.0-alpha.1 → 3.7.0-alpha.10

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (219) hide show
  1. package/dist/cjs/hls-00fec546.js +25673 -0
  2. package/dist/{esm/index-394db4c1.js → cjs/index-f6805218.js} +2 -6
  3. package/dist/cjs/loader.cjs.js +1 -1
  4. package/dist/cjs/taro-button-core.cjs.entry.js +2 -2
  5. package/dist/cjs/taro-components.cjs.js +1 -1
  6. package/dist/cjs/taro-cover-view-core.cjs.entry.js +1 -1
  7. package/dist/cjs/taro-icon-core.cjs.entry.js +1 -1
  8. package/dist/cjs/taro-image-core.cjs.entry.js +5 -4
  9. package/dist/cjs/taro-input-core.cjs.entry.js +6 -11
  10. package/dist/cjs/taro-navigator-core.cjs.entry.js +1 -1
  11. package/dist/cjs/taro-picker-core_2.cjs.entry.js +23 -20
  12. package/dist/cjs/taro-picker-view-column-core_2.cjs.entry.js +1 -1
  13. package/dist/cjs/taro-pull-to-refresh.cjs.entry.js +3 -3
  14. package/dist/cjs/taro-rich-text-core.cjs.entry.js +6 -0
  15. package/dist/cjs/taro-scroll-view-core.cjs.entry.js +5 -4
  16. package/dist/cjs/taro-swiper-core_2.cjs.entry.js +37 -36
  17. package/dist/cjs/taro-tabbar.cjs.entry.js +1 -1
  18. package/dist/cjs/taro-text-core.cjs.entry.js +9 -6
  19. package/dist/cjs/taro-textarea-core.cjs.entry.js +1 -8
  20. package/dist/cjs/taro-video-control_3.cjs.entry.js +3 -3
  21. package/dist/cjs/taro-view-core.cjs.entry.js +1 -1
  22. package/dist/collection/components/button/style/index.css +12 -0
  23. package/dist/collection/components/checkbox/checkbox.js +4 -4
  24. package/dist/collection/components/image/image.js +6 -4
  25. package/dist/collection/components/input/input.js +9 -13
  26. package/dist/collection/components/picker/picker-group.js +29 -26
  27. package/dist/collection/components/picker/picker.js +42 -16
  28. package/dist/collection/components/pull-to-refresh/pull-to-refresh.js +1 -1
  29. package/dist/collection/components/pull-to-refresh/style/index.css +0 -1
  30. package/dist/collection/components/rich-text/rich-text.js +71 -0
  31. package/dist/collection/components/rich-text/style/index.css +16 -0
  32. package/dist/collection/components/scroll-view/scroll-view.js +22 -4
  33. package/dist/collection/components/swiper/swiper-item.js +34 -35
  34. package/dist/collection/components/swiper/swiper.js +2 -0
  35. package/dist/collection/components/text/style/index.css +20 -3
  36. package/dist/collection/components/text/text.js +66 -6
  37. package/dist/collection/components/textarea/textarea.js +4 -10
  38. package/dist/collection/components/video/video.js +1 -1
  39. package/dist/components/hls.js +23206 -24210
  40. package/dist/components/index2.js +1 -7
  41. package/dist/components/picker-group.js +9 -9
  42. package/dist/components/taro-button-core.js +1 -1
  43. package/dist/components/taro-checkbox-core.js +1 -1
  44. package/dist/components/taro-image-core.js +6 -4
  45. package/dist/components/taro-input-core.js +7 -12
  46. package/dist/components/taro-picker-core.js +16 -13
  47. package/dist/components/taro-pull-to-refresh.js +2 -2
  48. package/dist/components/taro-rich-text-core.js +10 -1
  49. package/dist/components/taro-scroll-view-core.js +5 -3
  50. package/dist/components/taro-swiper-core.js +2 -0
  51. package/dist/components/taro-swiper-item-core.js +34 -35
  52. package/dist/components/taro-text-core.js +13 -7
  53. package/dist/components/taro-textarea-core.js +2 -9
  54. package/dist/components/taro-video-core.js +2 -2
  55. package/dist/esm/hls-4018c7ea.js +25671 -0
  56. package/dist/{cjs/index-067a58c1.js → esm/index-c3e4004b.js} +1 -12
  57. package/dist/esm/loader.js +1 -1
  58. package/dist/esm/taro-button-core.entry.js +2 -2
  59. package/dist/esm/taro-components.js +1 -1
  60. package/dist/esm/taro-cover-view-core.entry.js +1 -1
  61. package/dist/esm/taro-icon-core.entry.js +1 -1
  62. package/dist/esm/taro-image-core.entry.js +5 -4
  63. package/dist/esm/taro-input-core.entry.js +6 -11
  64. package/dist/esm/taro-navigator-core.entry.js +1 -1
  65. package/dist/esm/taro-picker-core_2.entry.js +23 -20
  66. package/dist/esm/taro-picker-view-column-core_2.entry.js +1 -1
  67. package/dist/esm/taro-pull-to-refresh.entry.js +3 -3
  68. package/dist/esm/taro-rich-text-core.entry.js +6 -0
  69. package/dist/esm/taro-scroll-view-core.entry.js +5 -4
  70. package/dist/esm/taro-swiper-core_2.entry.js +37 -36
  71. package/dist/esm/taro-tabbar.entry.js +1 -1
  72. package/dist/esm/taro-text-core.entry.js +9 -6
  73. package/dist/esm/taro-textarea-core.entry.js +1 -8
  74. package/dist/esm/taro-video-control_3.entry.js +3 -3
  75. package/dist/esm/taro-view-core.entry.js +1 -1
  76. package/dist/esm-es5/hls-4018c7ea.js +1 -0
  77. package/dist/esm-es5/index-c3e4004b.js +7 -0
  78. package/dist/esm-es5/loader.js +1 -1
  79. package/dist/esm-es5/taro-button-core.entry.js +1 -1
  80. package/dist/esm-es5/taro-components.js +1 -1
  81. package/dist/esm-es5/taro-cover-view-core.entry.js +1 -1
  82. package/dist/esm-es5/taro-icon-core.entry.js +1 -1
  83. package/dist/esm-es5/taro-image-core.entry.js +1 -1
  84. package/dist/esm-es5/taro-input-core.entry.js +1 -1
  85. package/dist/esm-es5/taro-navigator-core.entry.js +1 -1
  86. package/dist/esm-es5/taro-picker-core_2.entry.js +1 -1
  87. package/dist/esm-es5/taro-picker-view-column-core_2.entry.js +1 -1
  88. package/dist/esm-es5/taro-pull-to-refresh.entry.js +1 -1
  89. package/dist/esm-es5/taro-rich-text-core.entry.js +1 -1
  90. package/dist/esm-es5/taro-scroll-view-core.entry.js +1 -1
  91. package/dist/esm-es5/taro-swiper-core_2.entry.js +1 -1
  92. package/dist/esm-es5/taro-tabbar.entry.js +1 -1
  93. package/dist/esm-es5/taro-text-core.entry.js +1 -1
  94. package/dist/esm-es5/taro-textarea-core.entry.js +1 -1
  95. package/dist/esm-es5/taro-video-control_3.entry.js +1 -1
  96. package/dist/esm-es5/taro-view-core.entry.js +1 -1
  97. package/dist/taro-components/{p-1e43a2d5.entry.js → p-0114a2e4.entry.js} +1 -1
  98. package/dist/taro-components/p-01e163f8.system.entry.js +1 -0
  99. package/dist/taro-components/p-085076c5.system.entry.js +1 -0
  100. package/dist/taro-components/p-0fa96970.entry.js +1 -0
  101. package/dist/taro-components/{p-edbb1a17.system.entry.js → p-1991cc1a.system.entry.js} +1 -1
  102. package/dist/taro-components/{p-c0ec2f41.system.entry.js → p-2de2a3fd.system.entry.js} +1 -1
  103. package/dist/taro-components/p-2ec68968.system.js +7 -0
  104. package/dist/taro-components/{p-18703731.system.entry.js → p-416cc4dd.system.entry.js} +1 -1
  105. package/dist/taro-components/p-425c209a.entry.js +1 -0
  106. package/dist/taro-components/p-43efbf30.js +1 -0
  107. package/dist/taro-components/p-478deb81.entry.js +1 -0
  108. package/dist/taro-components/{p-2c89af5b.system.entry.js → p-657cb6e4.system.entry.js} +1 -1
  109. package/dist/taro-components/p-6cde180b.entry.js +1 -0
  110. package/dist/taro-components/{p-b898d734.entry.js → p-78e4805e.entry.js} +1 -1
  111. package/dist/taro-components/{p-c490cd45.entry.js → p-7b68dee8.entry.js} +1 -1
  112. package/dist/taro-components/{p-5905e3ef.system.entry.js → p-7e998213.system.entry.js} +1 -1
  113. package/dist/taro-components/p-982bb5bf.entry.js +1 -0
  114. package/dist/taro-components/{p-16336cc6.system.entry.js → p-98f9f50f.system.entry.js} +1 -1
  115. package/dist/taro-components/p-9edea30f.system.entry.js +1 -0
  116. package/dist/taro-components/{p-3f9f3448.entry.js → p-9fe49bab.entry.js} +1 -1
  117. package/dist/taro-components/{p-31bba7c3.entry.js → p-a20ecd3b.entry.js} +1 -1
  118. package/dist/taro-components/p-a20fed0a.entry.js +1 -0
  119. package/dist/taro-components/{p-e5f78321.system.entry.js → p-a4882902.system.entry.js} +1 -1
  120. package/dist/taro-components/{p-7c2454dd.system.entry.js → p-a8925584.system.entry.js} +1 -1
  121. package/dist/taro-components/p-a8e7cf87.entry.js +1 -0
  122. package/dist/taro-components/{p-c2322741.system.entry.js → p-b1d2b575.system.entry.js} +1 -1
  123. package/dist/taro-components/p-ba3b2aa5.system.entry.js +1 -0
  124. package/dist/taro-components/p-c39a46ca.system.entry.js +1 -0
  125. package/dist/taro-components/{p-ca3a269f.entry.js → p-c4b8851b.entry.js} +1 -1
  126. package/dist/taro-components/p-ce33f1f3.entry.js +1 -0
  127. package/dist/taro-components/p-dab28e1f.system.entry.js +1 -0
  128. package/dist/taro-components/p-de951a46.js +7 -0
  129. package/dist/taro-components/p-e09451c5.system.entry.js +1 -0
  130. package/dist/taro-components/{p-df4c2f21.entry.js → p-e33f3592.entry.js} +1 -1
  131. package/dist/taro-components/p-e78775ce.system.js +1 -0
  132. package/dist/taro-components/p-ebc7b6fc.entry.js +1 -0
  133. package/dist/taro-components/p-ed331c06.system.js +1 -1
  134. package/dist/taro-components/p-f02b6f70.entry.js +1 -0
  135. package/dist/taro-components/p-f6f6a996.system.entry.js +1 -0
  136. package/dist/taro-components/taro-components.css +1 -1
  137. package/dist/taro-components/taro-components.esm.js +1 -1
  138. package/dist/types/components/checkbox/checkbox.d.ts +1 -1
  139. package/dist/types/components/image/image.d.ts +1 -0
  140. package/dist/types/components/input/input.d.ts +2 -2
  141. package/dist/types/components/picker/picker-group.d.ts +3 -3
  142. package/dist/types/components/picker/picker.d.ts +7 -2
  143. package/dist/types/components/rich-text/rich-text.d.ts +4 -0
  144. package/dist/types/components/scroll-view/scroll-view.d.ts +1 -0
  145. package/dist/types/components/text/text.d.ts +4 -0
  146. package/dist/types/components/textarea/textarea.d.ts +0 -1
  147. package/dist/types/components.d.ts +28 -8
  148. package/lib/react/component-lib/index.js +50 -50
  149. package/lib/react/component-lib/index.js.map +1 -1
  150. package/lib/react/component-lib/reactify-wc.js +1 -1
  151. package/lib/react/component-lib/reactify-wc.js.map +1 -1
  152. package/lib/react/components.d.ts +1 -3
  153. package/lib/react/components.js +2 -2
  154. package/lib/react/components.js.map +1 -1
  155. package/lib/react/helper.d.ts +1 -1
  156. package/lib/react/react-component-lib/createOverlayComponent.js.map +1 -1
  157. package/lib/react/react-component-lib/utils/attachProps.js +21 -5
  158. package/lib/react/react-component-lib/utils/attachProps.js.map +1 -1
  159. package/lib/vue2/component-lib/index.js +0 -5
  160. package/lib/vue2/component-lib/index.js.map +1 -1
  161. package/lib/vue2/components-loader.js +1 -1
  162. package/lib/vue2/components-loader.js.map +1 -1
  163. package/lib/vue2/components.d.ts +10 -3
  164. package/lib/vue2/components.js +13 -6
  165. package/lib/vue2/components.js.map +1 -1
  166. package/lib/vue2/vue-component-lib/utils.js.map +1 -1
  167. package/lib/vue3/component-lib/index.js +48 -48
  168. package/lib/vue3/component-lib/index.js.map +1 -1
  169. package/lib/vue3/components.d.ts +1 -1
  170. package/lib/vue3/components.js +14 -6
  171. package/lib/vue3/components.js.map +1 -1
  172. package/lib/vue3/vue-component-lib/utils.js.map +1 -1
  173. package/package.json +13 -11
  174. package/types/Button.d.ts +71 -8
  175. package/types/ChannelVideo.d.ts +4 -0
  176. package/types/Form.d.ts +11 -0
  177. package/types/Image.d.ts +5 -0
  178. package/types/Input.d.ts +6 -1
  179. package/types/LivePlayer.d.ts +17 -0
  180. package/types/LivePusher.d.ts +10 -0
  181. package/types/Picker.d.ts +9 -0
  182. package/types/Progress.d.ts +2 -2
  183. package/types/RichText.d.ts +6 -4
  184. package/types/ScrollView.d.ts +7 -7
  185. package/types/ShareElement.d.ts +39 -0
  186. package/types/StickySection.d.ts +0 -1
  187. package/types/Swiper.d.ts +10 -0
  188. package/types/Text.d.ts +8 -3
  189. package/types/Textarea.d.ts +11 -4
  190. package/types/Video.d.ts +12 -0
  191. package/types/View.d.ts +1 -1
  192. package/types/index.vue3.d.ts +18 -9
  193. package/virtual-list/index.js +2 -2
  194. package/dist/cjs/hls-0f2d4d85.js +0 -26677
  195. package/dist/esm/hls-0e83e558.js +0 -26675
  196. package/dist/esm-es5/hls-0e83e558.js +0 -289
  197. package/dist/esm-es5/index-394db4c1.js +0 -7
  198. package/dist/taro-components/p-198000d8.system.js +0 -289
  199. package/dist/taro-components/p-25adb80c.entry.js +0 -1
  200. package/dist/taro-components/p-2fad2a65.js +0 -7
  201. package/dist/taro-components/p-385d8aed.entry.js +0 -1
  202. package/dist/taro-components/p-387314fa.system.js +0 -7
  203. package/dist/taro-components/p-3e701660.js +0 -289
  204. package/dist/taro-components/p-4e9bd4f6.entry.js +0 -1
  205. package/dist/taro-components/p-589293fd.entry.js +0 -1
  206. package/dist/taro-components/p-58b19305.system.entry.js +0 -1
  207. package/dist/taro-components/p-5b67a98e.entry.js +0 -1
  208. package/dist/taro-components/p-6800ccdc.system.entry.js +0 -1
  209. package/dist/taro-components/p-735c2a72.system.entry.js +0 -1
  210. package/dist/taro-components/p-97f0ad72.system.entry.js +0 -1
  211. package/dist/taro-components/p-a132ebb9.entry.js +0 -1
  212. package/dist/taro-components/p-ab2d4f12.entry.js +0 -1
  213. package/dist/taro-components/p-c43c5e89.system.entry.js +0 -1
  214. package/dist/taro-components/p-cc7b95fd.system.entry.js +0 -1
  215. package/dist/taro-components/p-cd90bead.system.entry.js +0 -1
  216. package/dist/taro-components/p-d9e2e3aa.entry.js +0 -1
  217. package/dist/taro-components/p-dcbb7b2d.entry.js +0 -1
  218. package/dist/taro-components/p-ed011ff9.entry.js +0 -1
  219. package/dist/taro-components/p-fa43177b.system.entry.js +0 -1
@@ -1,9 +1,3 @@
1
- var commonjsGlobal = typeof globalThis !== 'undefined' ? globalThis : typeof window !== 'undefined' ? window : typeof global !== 'undefined' ? global : typeof self !== 'undefined' ? self : {};
2
-
3
- function getDefaultExportFromCjs (x) {
4
- return x && x.__esModule && Object.prototype.hasOwnProperty.call(x, 'default') ? x['default'] : x;
5
- }
6
-
7
1
  function createCommonjsModule(fn, basedir, module) {
8
2
  return module = {
9
3
  path: basedir,
@@ -74,4 +68,4 @@ var classnames = createCommonjsModule(function (module) {
74
68
  }());
75
69
  });
76
70
 
77
- export { createCommonjsModule as a, commonjsGlobal as b, classnames as c, getDefaultExportFromCjs as g };
71
+ export { classnames as c };
@@ -1,4 +1,4 @@
1
- import { proxyCustomElement, HTMLElement, h, Host } from '@stencil/core/internal/client';
1
+ import { proxyCustomElement, HTMLElement, createEvent, h, Host } from '@stencil/core/internal/client';
2
2
 
3
3
  const TOP = 102;
4
4
  const LINE_HEIGHT = 34;
@@ -8,13 +8,13 @@ const TaroPickerGroup = /*@__PURE__*/ proxyCustomElement(class extends HTMLEleme
8
8
  constructor() {
9
9
  super();
10
10
  this.__registerHost();
11
+ this.onColumnChange = createEvent(this, "columnChange", 7);
11
12
  this.mode = undefined;
12
13
  this.range = [];
13
14
  this.rangeKey = undefined;
14
15
  this.height = undefined;
15
16
  this.columnId = undefined;
16
17
  this.updateHeight = undefined;
17
- this.onColumnChange = undefined;
18
18
  this.updateDay = undefined;
19
19
  this.startY = undefined;
20
20
  this.preY = undefined;
@@ -84,7 +84,7 @@ const TaroPickerGroup = /*@__PURE__*/ proxyCustomElement(class extends HTMLEleme
84
84
  this.updateHeight(newPos, this.columnId);
85
85
  }
86
86
  async handleMoveEnd(clientY) {
87
- const { mode, range, height, updateHeight, onColumnChange, columnId } = this;
87
+ const { mode, range, height, updateHeight, columnId } = this;
88
88
  const max = 0;
89
89
  const min = -LINE_HEIGHT * (range.length - 1);
90
90
  const endY = clientY;
@@ -135,7 +135,7 @@ const TaroPickerGroup = /*@__PURE__*/ proxyCustomElement(class extends HTMLEleme
135
135
  // 先按公式算出 index, 再用此 index 算出一个整数高度
136
136
  const index = Math.round(absoluteHeight / -LINE_HEIGHT);
137
137
  const relativeHeight = TOP - LINE_HEIGHT * index;
138
- if (this.mode === 'date') {
138
+ if (this.mode === 'date' && typeof this.updateDay === 'function') {
139
139
  if (this.columnId === '0') {
140
140
  this.updateDay(+this.range[index].replace(/[^0-9]/gi, ''), 0);
141
141
  }
@@ -147,14 +147,16 @@ const TaroPickerGroup = /*@__PURE__*/ proxyCustomElement(class extends HTMLEleme
147
147
  }
148
148
  }
149
149
  updateHeight(relativeHeight, columnId, mode === 'time');
150
- onColumnChange && onColumnChange(relativeHeight, columnId);
150
+ this.onColumnChange.emit({
151
+ columnId,
152
+ height: relativeHeight,
153
+ });
151
154
  }
152
155
  onMouseDown(e) {
153
156
  this.isMove = true;
154
157
  this.handleMoveStart(e.clientY);
155
158
  }
156
159
  onMouseMove(e) {
157
- e.preventDefault();
158
160
  if (!this.isMove)
159
161
  return;
160
162
  this.handleMoving(e.clientY);
@@ -169,7 +171,6 @@ const TaroPickerGroup = /*@__PURE__*/ proxyCustomElement(class extends HTMLEleme
169
171
  this.handleMoveStart(e.changedTouches[0].clientY);
170
172
  }
171
173
  onTouchMove(e) {
172
- e.preventDefault();
173
174
  this.handleMoving(e.changedTouches[0].clientY);
174
175
  }
175
176
  onTouchEnd(e) {
@@ -190,7 +191,6 @@ const TaroPickerGroup = /*@__PURE__*/ proxyCustomElement(class extends HTMLEleme
190
191
  "height": [2],
191
192
  "columnId": [1, "column-id"],
192
193
  "updateHeight": [16],
193
- "onColumnChange": [16],
194
194
  "updateDay": [16],
195
195
  "startY": [32],
196
196
  "preY": [32],
@@ -200,7 +200,7 @@ const TaroPickerGroup = /*@__PURE__*/ proxyCustomElement(class extends HTMLEleme
200
200
  "handleMoveStart": [64],
201
201
  "handleMoving": [64],
202
202
  "handleMoveEnd": [64]
203
- }, [[1, "mousedown", "onMouseDown"], [1, "mousemove", "onMouseMove"], [1, "mouseup", "onMouseMoveEnd"], [1, "mouseleave", "onMouseMoveEnd"], [1, "touchstart", "onTouchStart"], [1, "touchmove", "onTouchMove"], [1, "touchend", "onTouchEnd"]]]);
203
+ }, [[1, "mousedown", "onMouseDown"], [3, "mousemove", "onMouseMove"], [1, "mouseup", "onMouseMoveEnd"], [1, "mouseleave", "onMouseMoveEnd"], [1, "touchstart", "onTouchStart"], [3, "touchmove", "onTouchMove"], [1, "touchend", "onTouchEnd"]]]);
204
204
  function defineCustomElement() {
205
205
  if (typeof customElements === "undefined") {
206
206
  return;
@@ -1,7 +1,7 @@
1
1
  import { proxyCustomElement, HTMLElement, createEvent, h, Host } from '@stencil/core/internal/client';
2
2
  import { c as classnames } from './index2.js';
3
3
 
4
- const indexCss = "taro-button-core{display:block;overflow:hidden;position:relative;-webkit-box-sizing:border-box;box-sizing:border-box;margin-left:auto;margin-right:auto;padding-left:14px;padding-right:14px;border-width:0;border-radius:5px;width:100%;-webkit-appearance:none;-moz-appearance:none;appearance:none;outline:0;background-color:#f8f8f8;line-height:2.55555556;text-decoration:none;text-align:center;font-size:18px;color:#000;-webkit-tap-highlight-color:rgba(0, 0, 0, 0)}taro-button-core:focus{outline:0}taro-button-core:not([disabled]):active{background-color:#dedede;color:rgba(0, 0, 0, 0.6)}taro-button-core::after{position:absolute;left:0;top:0;-webkit-box-sizing:border-box;box-sizing:border-box;border:1px solid rgba(0, 0, 0, 0.2);border-radius:10px;width:200%;height:200%;content:\" \";-webkit-transform:scale(0.5);transform:scale(0.5);-webkit-transform-origin:0 0;transform-origin:0 0}taro-button-core+taro-button-core{margin-top:15px}taro-button-core[type=default]{background-color:#f8f8f8;color:#000}taro-button-core[type=default]:not([disabled]):visited{color:#000}taro-button-core[type=default]:not([disabled]):active{background-color:#dedede;color:rgba(0, 0, 0, 0.6)}taro-button-core[size=mini]{display:inline-block;padding:0 1.32em;width:auto;line-height:2.3;font-size:13px}taro-button-core[plain],taro-button-core[plain][type=default],taro-button-core[plain][type=primary]{border-width:1px;background-color:transparent}taro-button-core[disabled]{color:rgba(255, 255, 255, 0.6)}taro-button-core[disabled][type=default]{background-color:#f7f7f7;color:rgba(0, 0, 0, 0.3)}taro-button-core[disabled][type=primary]{background-color:#9ed99d}taro-button-core[disabled][type=warn]{background-color:#ec8b89}taro-button-core[loading] .weui-loading{margin:-0.2em 0.34em 0 0}taro-button-core[loading][type=primary],taro-button-core[loading][type=warn]{color:rgba(255, 255, 255, 0.6)}taro-button-core[loading][type=primary]{background-color:#179b16}taro-button-core[loading][type=warn]{background-color:#ce3c39}taro-button-core[plain][type=primary]{border:1px solid #1aad19;color:#1aad19}taro-button-core[plain][type=primary]:not([disabled]):active{border-color:rgba(26, 173, 25, 0.6);background-color:transparent;color:rgba(26, 173, 25, 0.6)}taro-button-core[plain][type=primary]::after{border-width:0}taro-button-core[plain],taro-button-core[plain][type=default]{border:1px solid #353535;color:#353535}taro-button-core[plain]:not([disabled]):active,taro-button-core[plain][type=default]:not([disabled]):active{border-color:rgba(53, 53, 53, 0.6);background-color:transparent;color:rgba(53, 53, 53, 0.6)}taro-button-core[plain]::after,taro-button-core[plain][type=default]::after{border-width:0}taro-button-core[type=primary]{background-color:#1aad19;color:#fff}taro-button-core[type=primary]:not([disabled]):visited{color:#fff}taro-button-core[type=primary]:not([disabled]):active{background-color:#179b16;color:rgba(255, 255, 255, 0.6)}taro-button-core[type=warn]{background-color:#e64340;color:#fff}taro-button-core[type=warn]:not([disabled]):visited{color:#fff}taro-button-core[type=warn]:not([disabled]):active{background-color:#ce3c39;color:rgba(255, 255, 255, 0.6)}taro-button-core[plain][disabled]{border:1px solid rgba(0, 0, 0, 0.2);background-color:#f7f7f7;color:rgba(0, 0, 0, 0.3)}taro-button-core[plain][disabled][type=primary]{border:1px solid rgba(0, 0, 0, 0.2);background-color:#f7f7f7;color:rgba(0, 0, 0, 0.3)}";
4
+ const indexCss = "taro-button-core{display:block;overflow:hidden;position:relative;-webkit-box-sizing:border-box;box-sizing:border-box;margin-left:auto;margin-right:auto;padding-left:14px;padding-right:14px;border-width:0;border-radius:5px;width:100%;-webkit-appearance:none;-moz-appearance:none;appearance:none;outline:0;background-color:#f8f8f8;line-height:2.55555556;text-decoration:none;text-align:center;font-size:18px;color:#000;-webkit-tap-highlight-color:rgba(0, 0, 0, 0)}taro-button-core:focus{outline:0}taro-button-core:not([disabled]):active{background-color:#dedede;color:rgba(0, 0, 0, 0.6)}taro-button-core::after{position:absolute;left:0;top:0;-webkit-box-sizing:border-box;box-sizing:border-box;border:1px solid rgba(0, 0, 0, 0.2);border-radius:10px;width:200%;height:200%;content:\" \";-webkit-transform:scale(0.5);transform:scale(0.5);-webkit-transform-origin:0 0;transform-origin:0 0}taro-button-core+taro-button-core{margin-top:15px}taro-button-core[type=default]{background-color:#f8f8f8;color:#000}taro-button-core[type=default]:not([disabled]):visited{color:#000}taro-button-core[type=default]:not([disabled]):active{background-color:#dedede;color:rgba(0, 0, 0, 0.6)}taro-button-core[size=mini]{display:inline-block;padding:0 1.32em;width:auto;line-height:2.3;font-size:13px}taro-button-core[plain],taro-button-core[plain][type=default],taro-button-core[plain][type=primary]{border-width:1px;background-color:transparent}taro-button-core[disabled]{color:rgba(255, 255, 255, 0.6)}taro-button-core[disabled][type=default]{background-color:#f7f7f7;color:rgba(0, 0, 0, 0.3)}taro-button-core[disabled][type=primary]{background-color:#9ed99d}taro-button-core[disabled][type=warn]{background-color:#ec8b89}taro-button-core[loading] .weui-loading{margin:-0.2em 0.34em 0 0}taro-button-core[loading][type=primary],taro-button-core[loading][type=warn]{color:rgba(255, 255, 255, 0.6)}taro-button-core[loading][type=primary]{background-color:#179b16}taro-button-core[loading][type=warn]{background-color:#ce3c39}taro-button-core[plain][type=primary]{border:1px solid #1aad19;color:#1aad19}taro-button-core[plain][type=primary]:not([disabled]):active{border-color:rgba(26, 173, 25, 0.6);background-color:transparent;color:rgba(26, 173, 25, 0.6)}taro-button-core[plain][type=primary]::after{border-width:0}taro-button-core[plain][type=warn]{border:1px solid #e64340;color:#e64340}taro-button-core[plain][type=warn]:not([disabled]):active{border-color:rgba(230, 67, 64, 0.6);background-color:transparent;color:rgba(230, 67, 64, 0.6)}taro-button-core[plain][type=warn]::after{border-width:0}taro-button-core[plain],taro-button-core[plain][type=default]{border:1px solid #353535;color:#353535}taro-button-core[plain]:not([disabled]):active,taro-button-core[plain][type=default]:not([disabled]):active{border-color:rgba(53, 53, 53, 0.6);background-color:transparent;color:rgba(53, 53, 53, 0.6)}taro-button-core[plain]::after,taro-button-core[plain][type=default]::after{border-width:0}taro-button-core[type=primary]{background-color:#1aad19;color:#fff}taro-button-core[type=primary]:not([disabled]):visited{color:#fff}taro-button-core[type=primary]:not([disabled]):active{background-color:#179b16;color:rgba(255, 255, 255, 0.6)}taro-button-core[type=warn]{background-color:#e64340;color:#fff}taro-button-core[type=warn]:not([disabled]):visited{color:#fff}taro-button-core[type=warn]:not([disabled]):active{background-color:#ce3c39;color:rgba(255, 255, 255, 0.6)}taro-button-core[plain][disabled]{border:1px solid rgba(0, 0, 0, 0.2);background-color:#f7f7f7;color:rgba(0, 0, 0, 0.3)}taro-button-core[plain][disabled][type=primary]{border:1px solid rgba(0, 0, 0, 0.2);background-color:#f7f7f7;color:rgba(0, 0, 0, 0.3)}";
5
5
 
6
6
  const Button = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement {
7
7
  constructor() {
@@ -51,7 +51,7 @@ const Checkbox = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement {
51
51
  static get style() { return indexCss; }
52
52
  }, [4, "taro-checkbox-core", {
53
53
  "name": [1],
54
- "value": [1],
54
+ "value": [1032],
55
55
  "color": [1],
56
56
  "id": [1025],
57
57
  "checked": [4],
@@ -15,6 +15,7 @@ const Image = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement {
15
15
  this.lazyLoad = false;
16
16
  this.nativeProps = {};
17
17
  this.aspectFillMode = 'width';
18
+ this.didLoad = false;
18
19
  }
19
20
  componentDidLoad() {
20
21
  if (!this.lazyLoad)
@@ -23,7 +24,7 @@ const Image = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement {
23
24
  // 异步 api 关系
24
25
  if (entries[entries.length - 1].isIntersecting) {
25
26
  lazyImg.unobserve(this.imgRef);
26
- this.imgRef.src = this.src;
27
+ this.didLoad = true;
27
28
  }
28
29
  }, {
29
30
  rootMargin: '300px 0px'
@@ -42,14 +43,14 @@ const Image = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement {
42
43
  this.onError.emit(e);
43
44
  }
44
45
  render() {
45
- const { src, mode = 'scaleToFill', lazyLoad = false, aspectFillMode = 'width', imageOnLoad, imageOnError, nativeProps } = this;
46
+ const { src, mode = 'scaleToFill', lazyLoad = false, aspectFillMode = 'width', imageOnLoad, imageOnError, nativeProps, didLoad } = this;
46
47
  const cls = classnames({
47
48
  'taro-img__widthfix': mode === 'widthFix'
48
49
  });
49
50
  const imgCls = classnames(`taro-img__mode-${mode.toLowerCase().replace(/\s/g, '')}`, {
50
51
  [`taro-img__mode-aspectfill--${aspectFillMode}`]: mode === 'aspectFill'
51
52
  });
52
- return (h(Host, { class: cls }, lazyLoad ? (h("img", Object.assign({ ref: img => (this.imgRef = img), class: imgCls, onLoad: imageOnLoad.bind(this), onError: imageOnError.bind(this) }, nativeProps))) : (h("img", Object.assign({ ref: img => (this.imgRef = img), class: imgCls, src: src, onLoad: imageOnLoad.bind(this), onError: imageOnError.bind(this) }, nativeProps)))));
53
+ return (h(Host, { class: cls }, h("img", Object.assign({ ref: (img) => (this.imgRef = img), class: imgCls, src: lazyLoad && !didLoad ? undefined : src, onLoad: imageOnLoad.bind(this), onError: imageOnError.bind(this) }, nativeProps))));
53
54
  }
54
55
  static get style() { return indexCss; }
55
56
  }, [0, "taro-image-core", {
@@ -57,7 +58,8 @@ const Image = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement {
57
58
  "mode": [1],
58
59
  "lazyLoad": [4, "lazy-load"],
59
60
  "nativeProps": [16],
60
- "aspectFillMode": [32]
61
+ "aspectFillMode": [32],
62
+ "didLoad": [32]
61
63
  }]);
62
64
  function defineCustomElement$1() {
63
65
  if (typeof customElements === "undefined") {
@@ -126,7 +126,7 @@ const Input = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement {
126
126
  this.isOnComposition = true;
127
127
  }
128
128
  };
129
- this.handleBeforeinput = (e) => {
129
+ this.handleBeforeInput = (e) => {
130
130
  if (!e.data)
131
131
  return;
132
132
  const isNumber = e.data && /[0-9]/.test(e.data);
@@ -139,7 +139,7 @@ const Input = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement {
139
139
  }
140
140
  }
141
141
  };
142
- this.value = undefined;
142
+ this.value = '';
143
143
  this.type = undefined;
144
144
  this.password = false;
145
145
  this.placeholder = undefined;
@@ -176,14 +176,9 @@ const Input = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement {
176
176
  else {
177
177
  (_b = this.inputRef) === null || _b === void 0 ? void 0 : _b.addEventListener('compositionstart', this.handleComposition);
178
178
  (_c = this.inputRef) === null || _c === void 0 ? void 0 : _c.addEventListener('compositionend', this.handleComposition);
179
- (_d = this.inputRef) === null || _d === void 0 ? void 0 : _d.addEventListener('beforeinput', this.handleBeforeinput);
180
- (_e = this.inputRef) === null || _e === void 0 ? void 0 : _e.addEventListener('textInput', this.handleBeforeinput);
179
+ (_d = this.inputRef) === null || _d === void 0 ? void 0 : _d.addEventListener('beforeinput', this.handleBeforeInput);
180
+ (_e = this.inputRef) === null || _e === void 0 ? void 0 : _e.addEventListener('textInput', this.handleBeforeInput);
181
181
  }
182
- Object.defineProperty(this.el, 'value', {
183
- get: () => this.inputRef.value,
184
- set: value => this.value !== value && (this.value = value),
185
- configurable: true
186
- });
187
182
  }
188
183
  disconnectedCallback() {
189
184
  var _a, _b, _c, _d, _e;
@@ -193,8 +188,8 @@ const Input = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement {
193
188
  else {
194
189
  (_b = this.inputRef) === null || _b === void 0 ? void 0 : _b.removeEventListener('compositionstart', this.handleComposition);
195
190
  (_c = this.inputRef) === null || _c === void 0 ? void 0 : _c.removeEventListener('compositionend', this.handleComposition);
196
- (_d = this.inputRef) === null || _d === void 0 ? void 0 : _d.removeEventListener('beforeinput', this.handleBeforeinput);
197
- (_e = this.inputRef) === null || _e === void 0 ? void 0 : _e.removeEventListener('textInput', this.handleBeforeinput);
191
+ (_d = this.inputRef) === null || _d === void 0 ? void 0 : _d.removeEventListener('beforeinput', this.handleBeforeInput);
192
+ (_e = this.inputRef) === null || _e === void 0 ? void 0 : _e.removeEventListener('textInput', this.handleBeforeInput);
198
193
  }
199
194
  }
200
195
  render() {
@@ -218,7 +213,7 @@ const Input = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement {
218
213
  "placeholder": [1],
219
214
  "disabled": [4],
220
215
  "maxlength": [2],
221
- "autoFocus": [516, "focus"],
216
+ "autoFocus": [4, "focus"],
222
217
  "confirmType": [1, "confirm-type"],
223
218
  "name": [1],
224
219
  "nativeProps": [16],
@@ -218,11 +218,19 @@ const Picker = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement {
218
218
  })
219
219
  .join('-');
220
220
  }
221
- this.pickerValue = value;
221
+ this.value = value;
222
+ this.pickerValue = this.value;
222
223
  this.onChange.emit({
223
224
  value
224
225
  });
225
226
  };
227
+ this.handleColumnChange = (e) => {
228
+ const { columnId, height } = e.detail;
229
+ this.onColumnChange.emit({
230
+ column: Number(columnId),
231
+ value: (TOP - height) / LINE_HEIGHT
232
+ });
233
+ };
226
234
  // 点击取消按钮或蒙层
227
235
  this.handleCancel = () => {
228
236
  this.hidePicker();
@@ -260,12 +268,6 @@ const Picker = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement {
260
268
  }
261
269
  }
262
270
  };
263
- this.handleColumnChange = (height, columnId) => {
264
- this.onColumnChange.emit({
265
- column: Number(columnId),
266
- value: (TOP - height) / LINE_HEIGHT
267
- });
268
- };
269
271
  this.updateDay = (value, fields) => {
270
272
  const { _start, _end, _updateValue } = this.pickerDate;
271
273
  _updateValue[fields] = value;
@@ -351,6 +353,7 @@ const Picker = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement {
351
353
  this.end = '';
352
354
  this.fields = 'day';
353
355
  this.name = '';
356
+ this.textProps = {};
354
357
  this.pickerValue = [];
355
358
  this.height = [];
356
359
  this.hidden = true;
@@ -362,11 +365,6 @@ const Picker = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement {
362
365
  this.handleProps();
363
366
  }
364
367
  componentDidLoad() {
365
- Object.defineProperty(this.el, 'value', {
366
- get: () => this.pickerValue,
367
- set: value => this.value !== value && (this.value = value),
368
- configurable: true
369
- });
370
368
  if (this.overlay) {
371
369
  document.body.appendChild(this.overlay);
372
370
  }
@@ -445,6 +443,9 @@ const Picker = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement {
445
443
  throw new Error('Date Interval Error');
446
444
  }
447
445
  }
446
+ else {
447
+ throw new Error(`Picker not support "${mode}" mode.`);
448
+ }
448
449
  // Prop 变化时,无论是否正在显示弹层,都更新 height 值
449
450
  this.height = this.getHeightByIndex();
450
451
  // 同步表单 value 值,用于 form submit
@@ -460,6 +461,7 @@ const Picker = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement {
460
461
  }
461
462
  }
462
463
  render() {
464
+ var _a, _b;
463
465
  const { name, mode, fadeOut, hidden } = this;
464
466
  // 选项条
465
467
  let pickerGroup;
@@ -484,7 +486,7 @@ const Picker = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement {
484
486
  'weui-animate-slide-down': fadeOut
485
487
  });
486
488
  const shouldDivHidden = hidden ? { display: 'none' } : {};
487
- return (h(Host, null, h("div", { onClick: this.showPicker }, h("slot", null), h("input", { type: 'hidden', name: name, value: formatValue(this.pickerValue) })), h("div", { class: 'weui-picker__overlay', style: shouldDivHidden, ref: el => { this.overlay = el; } }, h("div", { class: clsMask, onClick: this.handleCancel }), h("div", { class: clsSlider }, h("div", { class: 'weui-picker__hd' }, h("div", { class: 'weui-picker__action', onClick: this.handleCancel }, "\u53D6\u6D88"), h("div", { class: 'weui-picker__action', onClick: this.handleChange }, "\u786E\u5B9A")), h("div", { class: 'weui-picker__bd' }, pickerGroup), h("input", { type: 'hidden', name: name, value: formatValue(this.pickerValue) })))));
489
+ return (h(Host, null, h("div", { onClick: this.showPicker }, h("slot", null), h("input", { type: 'hidden', name: name, value: formatValue(this.pickerValue) })), h("div", { class: 'weui-picker__overlay', style: shouldDivHidden, ref: el => { this.overlay = el; } }, h("div", { class: clsMask, onClick: this.handleCancel }), h("div", { class: clsSlider }, h("div", { class: 'weui-picker__hd' }, h("div", { class: 'weui-picker__action', onClick: this.handleCancel }, (_a = this.textProps.cancelText) !== null && _a !== void 0 ? _a : '取消'), h("div", { class: 'weui-picker__action', onClick: this.handleChange }, (_b = this.textProps.okText) !== null && _b !== void 0 ? _b : '确定')), h("div", { class: 'weui-picker__bd' }, pickerGroup), h("input", { type: 'hidden', name: name, value: formatValue(this.pickerValue) })))));
488
490
  }
489
491
  get el() { return this; }
490
492
  static get watchers() { return {
@@ -505,6 +507,7 @@ const Picker = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement {
505
507
  "end": [1],
506
508
  "fields": [1],
507
509
  "name": [1],
510
+ "textProps": [16],
508
511
  "pickerValue": [32],
509
512
  "height": [32],
510
513
  "hidden": [32],
@@ -2,7 +2,7 @@ import { proxyCustomElement, HTMLElement, createEvent, h, Host } from '@stencil/
2
2
  import Taro from '@tarojs/taro';
3
3
  import { c as classnames } from './index2.js';
4
4
 
5
- const indexCss = ".rmc-pull-to-refresh-content{-webkit-transform-origin:left top 0;transform-origin:left top 0}.rmc-pull-to-refresh-content-wrapper{overflow:hidden;min-height:100vh}.rmc-pull-to-refresh-transition{-webkit-transition:-webkit-transform 0.3s;transition:-webkit-transform 0.3s;transition:transform 0.3s;transition:transform 0.3s, -webkit-transform 0.3s}@-webkit-keyframes rmc-pull-to-refresh-indicator{50%{opacity:0.2}100%{opacity:1}}@keyframes rmc-pull-to-refresh-indicator{50%{opacity:0.2}100%{opacity:1}}.rmc-pull-to-refresh-indicator{height:30px;line-height:10px;text-align:center}.rmc-pull-to-refresh-indicator>div{display:inline-block;margin:3px;border-radius:100%;width:6px;height:6px;background-color:grey;-webkit-animation:rmc-pull-to-refresh-indicator 0.5s 0s infinite linear;animation:rmc-pull-to-refresh-indicator 0.5s 0s infinite linear;-webkit-animation-fill-mode:both;animation-fill-mode:both}.rmc-pull-to-refresh-indicator>div:nth-child(0){-webkit-animation-delay:-0.1s !important;animation-delay:-0.1s !important}.rmc-pull-to-refresh-indicator>div:nth-child(1){-webkit-animation-delay:-0.2s !important;animation-delay:-0.2s !important}.rmc-pull-to-refresh-indicator>div:nth-child(2){-webkit-animation-delay:-0.3s !important;animation-delay:-0.3s !important}.rmc-pull-to-refresh-down .rmc-pull-to-refresh-indicator{margin-top:-25px}";
5
+ const indexCss = ".rmc-pull-to-refresh-content{-webkit-transform-origin:left top 0;transform-origin:left top 0}.rmc-pull-to-refresh-content-wrapper{min-height:100vh}.rmc-pull-to-refresh-transition{-webkit-transition:-webkit-transform 0.3s;transition:-webkit-transform 0.3s;transition:transform 0.3s;transition:transform 0.3s, -webkit-transform 0.3s}@-webkit-keyframes rmc-pull-to-refresh-indicator{50%{opacity:0.2}100%{opacity:1}}@keyframes rmc-pull-to-refresh-indicator{50%{opacity:0.2}100%{opacity:1}}.rmc-pull-to-refresh-indicator{height:30px;line-height:10px;text-align:center}.rmc-pull-to-refresh-indicator>div{display:inline-block;margin:3px;border-radius:100%;width:6px;height:6px;background-color:grey;-webkit-animation:rmc-pull-to-refresh-indicator 0.5s 0s infinite linear;animation:rmc-pull-to-refresh-indicator 0.5s 0s infinite linear;-webkit-animation-fill-mode:both;animation-fill-mode:both}.rmc-pull-to-refresh-indicator>div:nth-child(0){-webkit-animation-delay:-0.1s !important;animation-delay:-0.1s !important}.rmc-pull-to-refresh-indicator>div:nth-child(1){-webkit-animation-delay:-0.2s !important;animation-delay:-0.2s !important}.rmc-pull-to-refresh-indicator>div:nth-child(2){-webkit-animation-delay:-0.3s !important;animation-delay:-0.3s !important}.rmc-pull-to-refresh-down .rmc-pull-to-refresh-indicator{margin-top:-25px}";
6
6
 
7
7
  function setTransform(nodeStyle, value) {
8
8
  nodeStyle.transform = value;
@@ -55,7 +55,7 @@ const PullToRefresh = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement
55
55
  };
56
56
  this.init = () => {
57
57
  const ele = this.scrollContainer;
58
- const child = this.el.querySelector('rmc-pull-to-refresh-content');
58
+ const child = this.el.querySelector('.rmc-pull-to-refresh-content');
59
59
  this.el.appendChild = child === null || child === void 0 ? void 0 : child.appendChild.bind(child);
60
60
  this.el.insertBefore = child === null || child === void 0 ? void 0 : child.insertBefore.bind(child);
61
61
  this.el.replaceChild = child === null || child === void 0 ? void 0 : child.replaceChild.bind(child);
@@ -1,5 +1,7 @@
1
1
  import { proxyCustomElement, HTMLElement, h, Host } from '@stencil/core/internal/client';
2
2
 
3
+ const indexCss = "taro-rich-text-core{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}taro-rich-text-core[selectable=true],taro-rich-text-core[user-select=true]{display:block;-webkit-user-select:text;-moz-user-select:text;-ms-user-select:text;user-select:text}taro-rich-text-core[space]{white-space:pre-wrap}taro-rich-text-core[space=ensp]{word-spacing:0.5em}taro-rich-text-core[space=nbsp]{word-spacing:1em}";
4
+
3
5
  const RichText = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement {
4
6
  constructor() {
5
7
  super();
@@ -51,6 +53,9 @@ const RichText = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement {
51
53
  return null;
52
54
  };
53
55
  this.nodes = undefined;
56
+ this.selectable = false;
57
+ this.userSelect = false;
58
+ this.space = undefined;
54
59
  }
55
60
  render() {
56
61
  const { nodes, renderNode } = this;
@@ -61,8 +66,12 @@ const RichText = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement {
61
66
  return h(Host, { innerHTML: nodes });
62
67
  }
63
68
  }
69
+ static get style() { return indexCss; }
64
70
  }, [0, "taro-rich-text-core", {
65
- "nodes": [1]
71
+ "nodes": [1],
72
+ "selectable": [1028],
73
+ "userSelect": [1028, "user-select"],
74
+ "space": [1]
66
75
  }]);
67
76
  function defineCustomElement$1() {
68
77
  if (typeof customElements === "undefined") {
@@ -60,6 +60,7 @@ const ScrollView = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement {
60
60
  this.mpScrollTop = undefined;
61
61
  this.mpScrollLeft = undefined;
62
62
  this.mpScrollIntoView = undefined;
63
+ this.mpScrollIntoViewAlignment = undefined;
63
64
  this.animated = false;
64
65
  }
65
66
  watchScrollLeft(newVal) {
@@ -119,9 +120,9 @@ const ScrollView = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement {
119
120
  var _a;
120
121
  if (typeof selector === 'string' && selector) {
121
122
  (_a = document.querySelector(`#${selector}`)) === null || _a === void 0 ? void 0 : _a.scrollIntoView({
122
- behavior: 'smooth',
123
- block: 'center',
124
- inline: 'start'
123
+ behavior: this.animated ? 'smooth' : 'auto',
124
+ block: this.scrollY ? (this.mpScrollIntoViewAlignment || 'center') : 'center',
125
+ inline: this.scrollX ? (this.mpScrollIntoViewAlignment || 'start') : 'start'
125
126
  });
126
127
  }
127
128
  }
@@ -156,6 +157,7 @@ const ScrollView = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement {
156
157
  "mpScrollTop": [520, "scroll-top"],
157
158
  "mpScrollLeft": [520, "scroll-left"],
158
159
  "mpScrollIntoView": [513, "scroll-into-view"],
160
+ "mpScrollIntoViewAlignment": [1, "scroll-into-view-alignment"],
159
161
  "animated": [4, "scroll-with-animation"],
160
162
  "mpScrollToMethod": [64],
161
163
  "mpScrollIntoViewMethod": [64]
@@ -9988,6 +9988,7 @@ const Swiper = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement$1 {
9988
9988
  };
9989
9989
  this.el.addEventListener('DOMNodeInserted', this.handleSwiperSize);
9990
9990
  this.el.addEventListener('DOMNodeRemoved', this.handleSwiperSize);
9991
+ this.el.addEventListener('MutationObserver', this.handleSwiperSize);
9991
9992
  }
9992
9993
  watchCircular() {
9993
9994
  if (this.swiper) {
@@ -10031,6 +10032,7 @@ const Swiper = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement$1 {
10031
10032
  var _a, _b, _c, _d, _e, _f;
10032
10033
  this.el.removeEventListener('DOMNodeInserted', this.handleSwiperSize);
10033
10034
  this.el.removeEventListener('DOMNodeRemoved', this.handleSwiperSize);
10035
+ this.el.removeEventListener('MutationObserver', this.handleSwiperSize);
10034
10036
  (_b = (_a = this.observer) === null || _a === void 0 ? void 0 : _a.disconnect) === null || _b === void 0 ? void 0 : _b.call(_a);
10035
10037
  (_d = (_c = this.observerFirst) === null || _c === void 0 ? void 0 : _c.disconnect) === null || _d === void 0 ? void 0 : _d.call(_c);
10036
10038
  (_f = (_e = this.observerLast) === null || _e === void 0 ? void 0 : _e.disconnect) === null || _f === void 0 ? void 0 : _f.call(_e);
@@ -1,34 +1,40 @@
1
1
  import { proxyCustomElement, HTMLElement, h, Host } from '@stencil/core/internal/client';
2
2
 
3
- function isEqualTag(a, b) {
4
- return typeof a.tagName === 'undefined' ? a.nodeType === b.nodeType : a.tagName === b.tagName;
5
- }
6
- function parseChildNodes(items, targets, needClean = false) {
7
- const list = Array.from(targets.values());
8
- for (let i = 0, j = 0; i < list.length; i++) {
9
- const target = list[i];
10
- if (!target)
11
- return;
12
- let item = items.item(j);
13
- while (item) {
14
- if (!isEqualTag(item, target) || needClean) {
15
- item.remove();
16
- j++;
17
- item = items.item(j);
18
- continue;
19
- }
20
- if (target.childNodes.length > 0) {
21
- const cleanAll = ['taro-image-core'].includes(target.tagName.toLocaleLowerCase());
22
- parseChildNodes(item.childNodes, target.childNodes, cleanAll);
3
+ const nativeCloneNode = Node.prototype.cloneNode;
4
+ function cloneNode(node, deep) {
5
+ const clonedNode = nativeCloneNode.call(node, false);
6
+ const srcChildNodes = childNodes(node);
7
+ if (deep) {
8
+ for (let i = 0; i < srcChildNodes.length; i++) {
9
+ const srcNode = srcChildNodes[i];
10
+ let srcDeep = deep;
11
+ if (srcNode.nodeType !== 2 && srcNode.nodeType !== 8) {
12
+ // Note: 没有引用节点(s-cr[reference comment])的情况下,不复制子节点避免冗余(例如:Image 组件)
13
+ if (!srcNode['s-cr']) {
14
+ srcDeep = false;
15
+ }
16
+ const childClone = cloneNode(srcNode, srcDeep);
17
+ clonedNode.appendChild(childClone);
23
18
  }
24
- break;
25
19
  }
26
- while (i === list.length - 1 && j < items.length) {
27
- j++;
28
- item = items.item(j);
29
- item === null || item === void 0 ? void 0 : item.remove();
20
+ }
21
+ return clonedNode;
22
+ }
23
+ function childNodes(node) {
24
+ const childNodes = node.childNodes;
25
+ // check if element is stencil element without shadow dom
26
+ // and then detect elements that were slotted into the element
27
+ if (node['s-sc']) {
28
+ const result = [];
29
+ for (let i = 0; i < childNodes.length; i++) {
30
+ const slot = childNodes[i]['s-nr'];
31
+ if (slot) {
32
+ result.push(slot);
33
+ }
30
34
  }
35
+ return result;
31
36
  }
37
+ return Array.from(childNodes);
32
38
  }
33
39
  const SwiperItem = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement {
34
40
  constructor() {
@@ -37,16 +43,9 @@ const SwiperItem = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement {
37
43
  this.itemId = undefined;
38
44
  }
39
45
  componentDidRender() {
40
- var _a, _b, _c;
41
- const el = this.el;
42
- if (el.classList.contains('swiper-slide-duplicate')) {
43
- const list = Array
44
- .from(((_b = (_a = el.parentElement) === null || _a === void 0 ? void 0 : _a.childNodes) === null || _b === void 0 ? void 0 : _b.values()) || [])
45
- .filter((e) => e.tagName === 'TARO-SWIPER-ITEM-CORE');
46
- if (list.length > 0) {
47
- parseChildNodes(el.childNodes, (_c = list[list.indexOf(el) === 0 ? list.length - 2 : 1]) === null || _c === void 0 ? void 0 : _c.childNodes);
48
- }
49
- }
46
+ this.el.cloneNode = (deep = false) => {
47
+ return cloneNode.call(null, this.el, deep);
48
+ };
50
49
  }
51
50
  render() {
52
51
  return (h(Host, { class: 'swiper-slide', "item-id": this.itemId }));
@@ -1,23 +1,29 @@
1
1
  import { proxyCustomElement, HTMLElement, h, Host } from '@stencil/core/internal/client';
2
- import { c as classnames } from './index2.js';
3
2
 
4
- const indexCss = "taro-text-core{display:inline;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;white-space:pre-wrap}.taro-text__selectable{-webkit-user-select:text;-moz-user-select:text;-ms-user-select:text;user-select:text}";
3
+ const indexCss = "taro-text-core{display:inline;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}taro-text-core[selectable=true],taro-text-core[user-select=true]{display:inline-block;-webkit-user-select:text;-moz-user-select:text;-ms-user-select:text;user-select:text}taro-text-core[space]{white-space:pre-wrap}taro-text-core[space=ensp]{word-spacing:0.5em}taro-text-core[space=nbsp]{word-spacing:1em}taro-text-core[number-of-lines]{--line-clamp:2;display:-webkit-box;-webkit-box-orient:vertical;word-wrap:break-word;overflow:hidden;text-overflow:ellipsis;-webkit-line-clamp:var(--line-clamp)}";
5
4
 
6
5
  const Text = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement {
7
6
  constructor() {
8
7
  super();
9
8
  this.__registerHost();
10
9
  this.selectable = false;
10
+ this.userSelect = false;
11
+ this.space = undefined;
12
+ this.numberOfLines = undefined;
11
13
  }
12
14
  render() {
13
- const cls = classnames({
14
- 'taro-text__selectable': this.selectable
15
- });
16
- return (h(Host, { class: cls }, h("slot", null)));
15
+ const style = {};
16
+ if (typeof this.numberOfLines === 'number') {
17
+ style['--line-clamp'] = this.numberOfLines;
18
+ }
19
+ return (h(Host, { style: style }, h("slot", null)));
17
20
  }
18
21
  static get style() { return indexCss; }
19
22
  }, [4, "taro-text-core", {
20
- "selectable": [4]
23
+ "selectable": [1028],
24
+ "userSelect": [1028, "user-select"],
25
+ "space": [1025],
26
+ "numberOfLines": [2, "number-of-lines"]
21
27
  }]);
22
28
  function defineCustomElement$1() {
23
29
  if (typeof customElements === "undefined") {
@@ -108,7 +108,7 @@ const Textarea = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement {
108
108
  numberOfLines = Math.floor(taHeight / taLineHeight);
109
109
  return numberOfLines;
110
110
  };
111
- this.value = undefined;
111
+ this.value = '';
112
112
  this.placeholder = undefined;
113
113
  this.disabled = false;
114
114
  this.maxlength = 140;
@@ -127,13 +127,6 @@ const Textarea = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement {
127
127
  async focus() {
128
128
  this.textareaRef.focus();
129
129
  }
130
- componentDidLoad() {
131
- Object.defineProperty(this.el, 'value', {
132
- get: () => this.textareaRef.value,
133
- set: value => this.value !== value && (this.value = value),
134
- configurable: true
135
- });
136
- }
137
130
  render() {
138
131
  const { value, placeholder, disabled, maxlength, autoFocus, autoHeight, name, nativeProps, handleInput, handleFocus, handleBlur, handleChange } = this;
139
132
  const otherProps = {};
@@ -158,7 +151,7 @@ const Textarea = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement {
158
151
  "placeholder": [1],
159
152
  "disabled": [4],
160
153
  "maxlength": [2],
161
- "autoFocus": [516, "focus"],
154
+ "autoFocus": [4, "focus"],
162
155
  "autoHeight": [4, "auto-height"],
163
156
  "name": [1],
164
157
  "nativeProps": [16],
@@ -74,8 +74,8 @@ const Video = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement {
74
74
  const { src, videoRef } = this;
75
75
  if (isHls(src)) {
76
76
  import(
77
- /* webpackMode: "weak" */
78
- './hls.js').then(function (n) { return n.h; }).then(e => {
77
+ /* webpackExports: ["default"] */
78
+ './hls.js').then(e => {
79
79
  const Hls = e.default;
80
80
  this.HLS = Hls;
81
81
  if (Hls.isSupported()) {