@tarojs/components 3.6.6 → 3.6.7

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 (136) 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 +1 -1
  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 +1 -1
  9. package/dist/cjs/taro-navigator-core.cjs.entry.js +1 -1
  10. package/dist/cjs/taro-picker-core_2.cjs.entry.js +4 -2
  11. package/dist/cjs/taro-picker-view-column-core_2.cjs.entry.js +1 -1
  12. package/dist/cjs/taro-pull-to-refresh.cjs.entry.js +1 -1
  13. package/dist/cjs/taro-rich-text-core.cjs.entry.js +6 -0
  14. package/dist/cjs/taro-scroll-view-core.cjs.entry.js +1 -1
  15. package/dist/cjs/taro-swiper-core_2.cjs.entry.js +1 -1
  16. package/dist/cjs/taro-tabbar.cjs.entry.js +1 -1
  17. package/dist/cjs/taro-text-core.cjs.entry.js +9 -6
  18. package/dist/cjs/taro-video-control_3.cjs.entry.js +2 -2
  19. package/dist/cjs/taro-view-core.cjs.entry.js +1 -1
  20. package/dist/collection/components/picker/picker.js +23 -1
  21. package/dist/collection/components/rich-text/rich-text.js +71 -0
  22. package/dist/collection/components/rich-text/style/index.css +16 -0
  23. package/dist/collection/components/text/style/index.css +20 -3
  24. package/dist/collection/components/text/text.js +66 -6
  25. package/dist/components/hls.js +23206 -24210
  26. package/dist/components/index2.js +1 -7
  27. package/dist/components/taro-picker-core.js +4 -1
  28. package/dist/components/taro-rich-text-core.js +10 -1
  29. package/dist/components/taro-text-core.js +13 -7
  30. package/dist/components/taro-video-core.js +1 -1
  31. package/dist/esm/hls-4018c7ea.js +25671 -0
  32. package/dist/{cjs/index-067a58c1.js → esm/index-c3e4004b.js} +1 -12
  33. package/dist/esm/loader.js +1 -1
  34. package/dist/esm/taro-button-core.entry.js +1 -1
  35. package/dist/esm/taro-components.js +1 -1
  36. package/dist/esm/taro-cover-view-core.entry.js +1 -1
  37. package/dist/esm/taro-icon-core.entry.js +1 -1
  38. package/dist/esm/taro-image-core.entry.js +1 -1
  39. package/dist/esm/taro-navigator-core.entry.js +1 -1
  40. package/dist/esm/taro-picker-core_2.entry.js +4 -2
  41. package/dist/esm/taro-picker-view-column-core_2.entry.js +1 -1
  42. package/dist/esm/taro-pull-to-refresh.entry.js +1 -1
  43. package/dist/esm/taro-rich-text-core.entry.js +6 -0
  44. package/dist/esm/taro-scroll-view-core.entry.js +1 -1
  45. package/dist/esm/taro-swiper-core_2.entry.js +1 -1
  46. package/dist/esm/taro-tabbar.entry.js +1 -1
  47. package/dist/esm/taro-text-core.entry.js +9 -6
  48. package/dist/esm/taro-video-control_3.entry.js +2 -2
  49. package/dist/esm/taro-view-core.entry.js +1 -1
  50. package/dist/esm-es5/hls-4018c7ea.js +1 -0
  51. package/dist/esm-es5/index-c3e4004b.js +7 -0
  52. package/dist/esm-es5/loader.js +1 -1
  53. package/dist/esm-es5/taro-button-core.entry.js +1 -1
  54. package/dist/esm-es5/taro-components.js +1 -1
  55. package/dist/esm-es5/taro-cover-view-core.entry.js +1 -1
  56. package/dist/esm-es5/taro-icon-core.entry.js +1 -1
  57. package/dist/esm-es5/taro-image-core.entry.js +1 -1
  58. package/dist/esm-es5/taro-navigator-core.entry.js +1 -1
  59. package/dist/esm-es5/taro-picker-core_2.entry.js +1 -1
  60. package/dist/esm-es5/taro-picker-view-column-core_2.entry.js +1 -1
  61. package/dist/esm-es5/taro-pull-to-refresh.entry.js +1 -1
  62. package/dist/esm-es5/taro-rich-text-core.entry.js +1 -1
  63. package/dist/esm-es5/taro-scroll-view-core.entry.js +1 -1
  64. package/dist/esm-es5/taro-swiper-core_2.entry.js +1 -1
  65. package/dist/esm-es5/taro-tabbar.entry.js +1 -1
  66. package/dist/esm-es5/taro-text-core.entry.js +1 -1
  67. package/dist/esm-es5/taro-video-control_3.entry.js +1 -1
  68. package/dist/esm-es5/taro-view-core.entry.js +1 -1
  69. package/dist/taro-components/p-085076c5.system.entry.js +1 -0
  70. package/dist/taro-components/{p-25adb80c.entry.js → p-091a7153.entry.js} +1 -1
  71. package/dist/taro-components/{p-cd90bead.system.entry.js → p-0cf235de.system.entry.js} +1 -1
  72. package/dist/taro-components/p-0fa96970.entry.js +1 -0
  73. package/dist/taro-components/{p-edbb1a17.system.entry.js → p-1991cc1a.system.entry.js} +1 -1
  74. package/dist/taro-components/{p-c0ec2f41.system.entry.js → p-2accb92c.system.entry.js} +1 -1
  75. package/dist/taro-components/p-2ec68968.system.js +7 -0
  76. package/dist/taro-components/{p-18703731.system.entry.js → p-416cc4dd.system.entry.js} +1 -1
  77. package/dist/taro-components/p-425c209a.entry.js +1 -0
  78. package/dist/taro-components/p-43efbf30.js +1 -0
  79. package/dist/taro-components/p-4715ef9a.entry.js +1 -0
  80. package/dist/taro-components/{p-385d8aed.entry.js → p-4874f671.entry.js} +1 -1
  81. package/dist/taro-components/{p-c490cd45.entry.js → p-7152d85b.entry.js} +1 -1
  82. package/dist/taro-components/{p-ab2d4f12.entry.js → p-719e1eaf.entry.js} +1 -1
  83. package/dist/taro-components/{p-b898d734.entry.js → p-78e4805e.entry.js} +1 -1
  84. package/dist/taro-components/{p-6800ccdc.system.entry.js → p-7ff654e6.system.entry.js} +1 -1
  85. package/dist/taro-components/{p-16336cc6.system.entry.js → p-98f9f50f.system.entry.js} +1 -1
  86. package/dist/taro-components/p-9edea30f.system.entry.js +1 -0
  87. package/dist/taro-components/{p-3f9f3448.entry.js → p-9fe49bab.entry.js} +1 -1
  88. package/dist/taro-components/{p-31bba7c3.entry.js → p-a20ecd3b.entry.js} +1 -1
  89. package/dist/taro-components/p-a20fed0a.entry.js +1 -0
  90. package/dist/taro-components/{p-7c2454dd.system.entry.js → p-a8925584.system.entry.js} +1 -1
  91. package/dist/taro-components/p-a8e7cf87.entry.js +1 -0
  92. package/dist/taro-components/{p-5905e3ef.system.entry.js → p-a96b4b19.system.entry.js} +1 -1
  93. package/dist/taro-components/{p-8414da06.system.entry.js → p-a9a62c54.system.entry.js} +1 -1
  94. package/dist/taro-components/{p-c2322741.system.entry.js → p-b1d2b575.system.entry.js} +1 -1
  95. package/dist/taro-components/{p-ca3a269f.entry.js → p-c4b8851b.entry.js} +1 -1
  96. package/dist/taro-components/{p-e5f78321.system.entry.js → p-cdb76676.system.entry.js} +1 -1
  97. package/dist/taro-components/p-de951a46.js +7 -0
  98. package/dist/taro-components/p-e09451c5.system.entry.js +1 -0
  99. package/dist/taro-components/{p-df4c2f21.entry.js → p-e33f3592.entry.js} +1 -1
  100. package/dist/taro-components/p-e78775ce.system.js +1 -0
  101. package/dist/taro-components/p-ed331c06.system.js +1 -1
  102. package/dist/taro-components/{p-1e43a2d5.entry.js → p-f07cd1de.entry.js} +1 -1
  103. package/dist/taro-components/p-f6f6a996.system.entry.js +1 -0
  104. package/dist/taro-components/taro-components.esm.js +1 -1
  105. package/dist/types/components/picker/picker.d.ts +5 -0
  106. package/dist/types/components/rich-text/rich-text.d.ts +4 -0
  107. package/dist/types/components/text/text.d.ts +4 -0
  108. package/dist/types/components.d.ts +16 -1
  109. package/lib/react/helper.d.ts +1 -1
  110. package/lib/vue2/components.d.ts +7 -0
  111. package/lib/vue2/components.js +10 -3
  112. package/lib/vue2/components.js.map +1 -1
  113. package/lib/vue3/components.js +9 -2
  114. package/lib/vue3/components.js.map +1 -1
  115. package/package.json +4 -4
  116. package/types/Picker.d.ts +9 -0
  117. package/types/RichText.d.ts +6 -4
  118. package/types/Text.d.ts +4 -3
  119. package/types/Textarea.d.ts +4 -2
  120. package/dist/cjs/hls-0f2d4d85.js +0 -26677
  121. package/dist/esm/hls-0e83e558.js +0 -26675
  122. package/dist/esm-es5/hls-0e83e558.js +0 -289
  123. package/dist/esm-es5/index-394db4c1.js +0 -7
  124. package/dist/taro-components/p-198000d8.system.js +0 -289
  125. package/dist/taro-components/p-2fad2a65.js +0 -7
  126. package/dist/taro-components/p-387314fa.system.js +0 -7
  127. package/dist/taro-components/p-3e701660.js +0 -289
  128. package/dist/taro-components/p-4e9bd4f6.entry.js +0 -1
  129. package/dist/taro-components/p-58b19305.system.entry.js +0 -1
  130. package/dist/taro-components/p-5b67a98e.entry.js +0 -1
  131. package/dist/taro-components/p-97f0ad72.system.entry.js +0 -1
  132. package/dist/taro-components/p-af2cd702.entry.js +0 -1
  133. package/dist/taro-components/p-c43c5e89.system.entry.js +0 -1
  134. package/dist/taro-components/p-dcbb7b2d.entry.js +0 -1
  135. package/dist/taro-components/p-ed011ff9.entry.js +0 -1
  136. 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 };
@@ -352,6 +352,7 @@ const Picker = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement {
352
352
  this.end = '';
353
353
  this.fields = 'day';
354
354
  this.name = '';
355
+ this.textProps = {};
355
356
  this.pickerValue = [];
356
357
  this.height = [];
357
358
  this.hidden = true;
@@ -456,6 +457,7 @@ const Picker = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement {
456
457
  }
457
458
  }
458
459
  render() {
460
+ var _a, _b;
459
461
  const { name, mode, fadeOut, hidden } = this;
460
462
  // 选项条
461
463
  let pickerGroup;
@@ -480,7 +482,7 @@ const Picker = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement {
480
482
  'weui-animate-slide-down': fadeOut
481
483
  });
482
484
  const shouldDivHidden = hidden ? { display: 'none' } : {};
483
- 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) })))));
485
+ 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) })))));
484
486
  }
485
487
  get el() { return this; }
486
488
  static get watchers() { return {
@@ -501,6 +503,7 @@ const Picker = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement {
501
503
  "end": [1],
502
504
  "fields": [1],
503
505
  "name": [1],
506
+ "textProps": [16],
504
507
  "pickerValue": [32],
505
508
  "height": [32],
506
509
  "hidden": [32],
@@ -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") {
@@ -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") {
@@ -75,7 +75,7 @@ const Video = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement {
75
75
  if (isHls(src)) {
76
76
  import(
77
77
  /* webpackMode: "weak" */
78
- './hls.js').then(function (n) { return n.h; }).then(e => {
78
+ './hls.js').then(e => {
79
79
  const Hls = e.default;
80
80
  this.HLS = Hls;
81
81
  if (Hls.isSupported()) {