@tarojs/plugin-platform-harmony-ets 4.0.0-beta.1 → 4.0.0-beta.10

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (55) hide show
  1. package/dist/apis/device/memory.ts +10 -3
  2. package/dist/apis/index.ts +2 -0
  3. package/dist/apis/network/request.ts +5 -5
  4. package/dist/apis/route/index.ts +15 -0
  5. package/dist/apis/storage/index.ts +124 -60
  6. package/dist/apis/wxml/index.ts +2 -0
  7. package/dist/components-harmony-ets/button.ets +22 -71
  8. package/dist/components-harmony-ets/checkbox.ets +22 -138
  9. package/dist/components-harmony-ets/form.ets +29 -76
  10. package/dist/components-harmony-ets/icon.ets +5 -67
  11. package/dist/components-harmony-ets/image.ets +2 -66
  12. package/dist/components-harmony-ets/innerHtml.ets +2 -2
  13. package/dist/components-harmony-ets/input.ets +2 -61
  14. package/dist/components-harmony-ets/label.ets +40 -81
  15. package/dist/components-harmony-ets/picker.ets +31 -140
  16. package/dist/components-harmony-ets/radio.ets +22 -138
  17. package/dist/components-harmony-ets/richText.ets +4 -70
  18. package/dist/components-harmony-ets/scrollView.ets +34 -132
  19. package/dist/components-harmony-ets/slider.ets +4 -68
  20. package/dist/components-harmony-ets/style.ets +154 -0
  21. package/dist/components-harmony-ets/swiper.ets +4 -68
  22. package/dist/components-harmony-ets/switch.ets +4 -68
  23. package/dist/components-harmony-ets/text.ets +5 -69
  24. package/dist/components-harmony-ets/textArea.ets +2 -61
  25. package/dist/components-harmony-ets/utils/flexManager.ets +44 -6
  26. package/dist/components-harmony-ets/utils/helper.ets +2 -2
  27. package/dist/components-harmony-ets/utils/styles.ets +12 -1
  28. package/dist/components-harmony-ets/video.ets +4 -68
  29. package/dist/components-harmony-ets/view.ets +15 -125
  30. package/dist/components-harmony-ets/webView.ets +50 -0
  31. package/dist/index.js +87 -2
  32. package/dist/index.js.map +1 -1
  33. package/dist/runtime-ets/bom/window.ts +2 -2
  34. package/dist/runtime-ets/dom/cssStyleDeclaration.ts +23 -3
  35. package/dist/runtime-ets/dom/document.ts +21 -4
  36. package/dist/runtime-ets/dom/element/index.ts +4 -1
  37. package/dist/runtime-ets/dom/element/normal.ts +1 -0
  38. package/dist/runtime-ets/dom/element/webView.ts +61 -0
  39. package/dist/runtime-ets/dom/stylesheet/covertWeb2Hm.ts +73 -0
  40. package/dist/runtime-ets/dom/stylesheet/util.ts +3 -1
  41. package/dist/runtime-ets/index.ts +1 -2
  42. package/dist/runtime-ets/utils/index.ts +4 -1
  43. package/dist/runtime-framework/react/app.ts +12 -22
  44. package/dist/runtime-framework/react/hooks.ts +3 -3
  45. package/dist/runtime-framework/react/index.ts +1 -0
  46. package/dist/runtime-framework/react/native-page.ts +344 -0
  47. package/dist/runtime-framework/react/page.ts +2 -2
  48. package/dist/runtime-framework/solid/hooks.ts +3 -3
  49. package/dist/runtime-utils.js +134 -68
  50. package/dist/runtime-utils.js.map +1 -1
  51. package/dist/runtime.js +134 -68
  52. package/dist/runtime.js.map +1 -1
  53. package/package.json +10 -10
  54. package/types/runtime.d.ts +2 -0
  55. package/dist/runtime-ets/utils/bind.ts +0 -24
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tarojs/plugin-platform-harmony-ets",
3
- "version": "4.0.0-beta.1",
3
+ "version": "4.0.0-beta.10",
4
4
  "description": "OpenHarmony & 鸿蒙系统插件",
5
5
  "author": "O2Team",
6
6
  "homepage": "https://gitee.com/openharmony-sig/taro",
@@ -25,17 +25,17 @@
25
25
  },
26
26
  "dependencies": {
27
27
  "webpack-sources": "^3.2.3",
28
- "@tarojs/components": "4.0.0-beta.1",
29
- "@tarojs/runtime": "4.0.0-beta.1",
30
- "@tarojs/helper": "4.0.0-beta.1",
31
- "@tarojs/service": "4.0.0-beta.1",
32
- "@tarojs/shared": "4.0.0-beta.1",
33
- "@tarojs/taro": "4.0.0-beta.1",
34
- "@tarojs/runner-utils": "4.0.0-beta.1"
28
+ "@tarojs/components": "4.0.0-beta.10",
29
+ "@tarojs/runner-utils": "4.0.0-beta.10",
30
+ "@tarojs/runtime": "4.0.0-beta.10",
31
+ "@tarojs/helper": "4.0.0-beta.10",
32
+ "@tarojs/service": "4.0.0-beta.10",
33
+ "@tarojs/shared": "4.0.0-beta.10",
34
+ "@tarojs/taro": "4.0.0-beta.10"
35
35
  },
36
36
  "devDependencies": {
37
- "@rollup/plugin-commonjs": "^20.0.0",
38
- "@rollup/plugin-node-resolve": "^8.0.0",
37
+ "@rollup/plugin-commonjs": "^25.0.7",
38
+ "@rollup/plugin-node-resolve": "^15.2.3",
39
39
  "@rollup/plugin-typescript": "^11.1.0",
40
40
  "fast-glob": "^3.3.1",
41
41
  "rollup": "^3.8.1",
@@ -16,4 +16,6 @@ declare module '@tarojs/runtime' {
16
16
  export function findChildNodeWithDFS<T extends TaroElement = TaroElement> (node: TaroElement, selector: string | ((ele: T) => boolean), selectAll: true): T[] | null
17
17
  export function findChildNodeWithDFS<T extends TaroElement = TaroElement> (node: TaroElement, selector: string | ((ele: T) => boolean), selectAll?: false): T | null
18
18
  export function findChildNodeWithDFS<T extends TaroElement = TaroElement> (node: TaroElement, selector: string | ((ele: T) => boolean), selectAll: boolean): T[] | T | null
19
+
20
+ export const window: any
19
21
  }
@@ -1,24 +0,0 @@
1
- import { bindAttributesCallback } from './info'
2
-
3
- import type { TaroElement } from '../dom/element/element'
4
-
5
- // function convertToCamelCase(str) {
6
- // return str.replace(/-(.)/g, (_, char) => char.toUpperCase()).replace(/^\w/, firstChar => firstChar.toUpperCase())
7
- // }
8
-
9
- export function bindScrollTo (node: TaroElement) {
10
- bindAttributesCallback(node, 'scrollTo', () => {
11
- node.scroller.scrollTo({
12
- xOffset: node._attrs.scrollLeft || 0,
13
- yOffset: node._attrs.scrollTop || 0,
14
- })
15
- })
16
- }
17
-
18
- export function bindFocus (node: TaroElement) {
19
- bindAttributesCallback(node, 'focus', () => {
20
- // TODO: ETS转TS
21
- // focusControl.requestFocus(node._nid)
22
- })
23
- }
24
-