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

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 (67) 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 +54 -100
  8. package/dist/components-harmony-ets/checkbox.ets +25 -140
  9. package/dist/components-harmony-ets/form.ets +34 -78
  10. package/dist/components-harmony-ets/icon.ets +24 -82
  11. package/dist/components-harmony-ets/image.ets +16 -76
  12. package/dist/components-harmony-ets/innerHtml.ets +10 -6
  13. package/dist/components-harmony-ets/input.ets +3 -62
  14. package/dist/components-harmony-ets/label.ets +46 -83
  15. package/dist/components-harmony-ets/movableArea.ets +67 -0
  16. package/dist/components-harmony-ets/movableView.ets +66 -0
  17. package/dist/components-harmony-ets/picker.ets +33 -141
  18. package/dist/components-harmony-ets/progress.ets +45 -0
  19. package/dist/components-harmony-ets/radio.ets +24 -140
  20. package/dist/components-harmony-ets/richText.ets +17 -78
  21. package/dist/components-harmony-ets/scrollView.ets +61 -155
  22. package/dist/components-harmony-ets/slider.ets +5 -69
  23. package/dist/components-harmony-ets/style.ets +154 -0
  24. package/dist/components-harmony-ets/swiper.ets +26 -86
  25. package/dist/components-harmony-ets/switch.ets +5 -69
  26. package/dist/components-harmony-ets/text.ets +29 -87
  27. package/dist/components-harmony-ets/textArea.ets +3 -62
  28. package/dist/components-harmony-ets/utils/flexManager.ets +44 -6
  29. package/dist/components-harmony-ets/utils/helper.ets +2 -2
  30. package/dist/components-harmony-ets/utils/styles.ets +12 -1
  31. package/dist/components-harmony-ets/video.ets +29 -88
  32. package/dist/components-harmony-ets/view.ets +38 -144
  33. package/dist/components-harmony-ets/webView.ets +55 -0
  34. package/dist/index.js +122 -17
  35. package/dist/index.js.map +1 -1
  36. package/dist/runtime-ets/bom/window.ts +2 -2
  37. package/dist/runtime-ets/dom/cssStyleDeclaration.ts +23 -3
  38. package/dist/runtime-ets/dom/document.ts +21 -4
  39. package/dist/runtime-ets/dom/element/element.ts +0 -1
  40. package/dist/runtime-ets/dom/element/form.ts +11 -4
  41. package/dist/runtime-ets/dom/element/index.ts +12 -1
  42. package/dist/runtime-ets/dom/element/movableArea.ts +12 -0
  43. package/dist/runtime-ets/dom/element/movableView.ts +12 -0
  44. package/dist/runtime-ets/dom/element/normal.ts +9 -2
  45. package/dist/runtime-ets/dom/element/progress.ts +13 -0
  46. package/dist/runtime-ets/dom/element/scrollView.ts +1 -0
  47. package/dist/runtime-ets/dom/element/text.ts +1 -0
  48. package/dist/runtime-ets/dom/element/video.ts +1 -0
  49. package/dist/runtime-ets/dom/element/webView.ts +69 -0
  50. package/dist/runtime-ets/dom/node.ts +18 -17
  51. package/dist/runtime-ets/dom/stylesheet/covertWeb2Hm.ts +73 -0
  52. package/dist/runtime-ets/dom/stylesheet/util.ts +3 -1
  53. package/dist/runtime-ets/index.ts +1 -2
  54. package/dist/runtime-ets/utils/index.ts +4 -1
  55. package/dist/runtime-framework/react/app.ts +12 -22
  56. package/dist/runtime-framework/react/hooks.ts +3 -3
  57. package/dist/runtime-framework/react/index.ts +1 -0
  58. package/dist/runtime-framework/react/native-page.ts +344 -0
  59. package/dist/runtime-framework/react/page.ts +2 -2
  60. package/dist/runtime-framework/solid/hooks.ts +3 -3
  61. package/dist/runtime-utils.js +134 -68
  62. package/dist/runtime-utils.js.map +1 -1
  63. package/dist/runtime.js +134 -68
  64. package/dist/runtime.js.map +1 -1
  65. package/package.json +10 -10
  66. package/types/runtime.d.ts +2 -0
  67. 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.11",
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.11",
29
+ "@tarojs/runner-utils": "4.0.0-beta.11",
30
+ "@tarojs/service": "4.0.0-beta.11",
31
+ "@tarojs/helper": "4.0.0-beta.11",
32
+ "@tarojs/runtime": "4.0.0-beta.11",
33
+ "@tarojs/shared": "4.0.0-beta.11",
34
+ "@tarojs/taro": "4.0.0-beta.11"
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
-