diff --git a/AppScope/app.json5 b/AppScope/app.json5 index 1da7825560d0665bc56edfaa6e9731c17d16986d..31e70b74dd3579f5d13819c2594e3774a160a861 100644 --- a/AppScope/app.json5 +++ b/AppScope/app.json5 @@ -3,7 +3,7 @@ "bundleName": "jp.wasabeef.example.recyclerview", "vendor": "example", "versionCode": 1000000, - "versionName": "1.0.2", + "versionName": "1.1.0", "icon": "$media:app_icon", "label": "$string:app_name", "distributedNotificationEnabled": true diff --git a/CHANGELOG.md b/CHANGELOG.md index 836cbcd875acf2aecb97aa9ff4cf697b42a0a560..6b20ce531e8ef985c5331cfad9c7e3241f13a32b 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,8 @@ +## v1.1.0 + +1. 名称由recyclerview-animators-ets修改recyclerview-animators。 +2. 旧的包@ohos/recyclerview-animators-ets已不维护,请使用新包@ohos/recyclerview-animators + ## v1.0.2 - api8升级到api9 diff --git a/NOTICE b/NOTICE new file mode 100644 index 0000000000000000000000000000000000000000..7b2c55cf09dc0f01bce38243cb73138558470221 --- /dev/null +++ b/NOTICE @@ -0,0 +1,26 @@ +OPEN SOURCE SOFTWARE NOTICE + +Please note we provide an open source software notice for the third party open source software along with this software and/or this software component (in the following just “this SOFTWARE”). The open source software licenses are granted by the respective right holders. + +Warranty Disclaimer +THE OPEN SOURCE SOFTWARE IN THIS PRODUCT IS DISTRIBUTED IN THE HOPE THAT IT WILL BE USEFUL, BUT WITHOUT ANY WARRANTY, WITHOUT EVEN THE IMPLIED WARRANTY OF MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE. SEE THE APPLICABLE LICENSES FOR MORE DETAILS. + +Copyright Notice and License Texts + +---------------------------------------------------------------------- +Software: RecyclerView Animators 4.0.2 + +Copyright notice: +Copyright 2020 Daichi Furiya / Wasabeef + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. \ No newline at end of file diff --git a/README.md b/README.md index f9441da513a99edfbfa802cdd00d31548ce2274f..f06c293d3f4141a2a2f0696eaa4729946cbf847b 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,4 @@ -# recyclerview_animators_ets +# recyclerview_animators ## 简介 > 带有添加删除动画效果以及整体动画效果的list组件库 @@ -7,7 +7,7 @@ ## 下载安装 ```shell -npm install @ohos/recyclerview-animators-ets --save +npm install @ohos/recyclerview-animators --save ``` OpenHarmony npm环境配置等更多内容,请参考 [如何安装OpenHarmony npm包](https://gitee.com/openharmony-tpc/docs/blob/master/OpenHarmony_npm_usage.md) 。 @@ -15,7 +15,7 @@ OpenHarmony npm环境配置等更多内容,请参考 [如何安装OpenHarmony 1. 引入组件库 ``` -import { RecyclerView } from "@ohos/recyclerview-animators-ets" +import { RecyclerView } from "@ohos/recyclerview-animators" ``` 2. 在代码中使用 @@ -23,7 +23,7 @@ import { RecyclerView } from "@ohos/recyclerview-animators-ets" @State controller: RecyclerView.Controller = new RecyclerView.Controller() private listDatas = ["A","B","C"] -private aboutToAppear() { +aboutToAppear() { this.controller.setAdapterAnimation(RecyclerView.AdapterAnimationType.AlphaIn) // 设置列表整体效果类型 this.controller.setFirstOnly(false) // 设置是否在item重复出现时显示动画效果 this.controller.setDuration(500) // 设置动画时长 @@ -68,9 +68,9 @@ build() { ## 目录结构 ```` -|---- recyclerview_animators_ets +|---- recyclerview_animators | |---- entry # 示例代码文件夹 -| |---- recyclerview_animators_ets # 库文件夹 +| |---- recyclerview_animators # 库文件夹 | |----src |----main |----ets @@ -83,7 +83,7 @@ build() { ```` ## 贡献代码 -使用过程中发现任何问题都可以提 [Issue](https://gitee.com/openharmony-sig/recyclerview-animators-ets/issues) 给我们,当然,我们也非常欢迎你给我们发 [PR](https://gitee.com/openharmony-sig/recyclerview-animators-ets/pulls) 。 +使用过程中发现任何问题都可以提 [Issue](https://gitee.com/openharmony-sig/recyclerview-animators/issues) 给我们,当然,我们也非常欢迎你给我们发 [PR](https://gitee.com/openharmony-sig/recyclerview-animators/pulls) 。 ## 开源协议 -本项目基于 [Apache License 2.0](https://gitee.com/openharmony-sig/recyclerview-animators-ets/blob/master/LICENSE) ,请自由地享受和参与开源。 +本项目基于 [Apache License 2.0](https://gitee.com/openharmony-sig/recyclerview-animators/blob/master/LICENSE) ,请自由地享受和参与开源。 diff --git a/build-profile.json5 b/build-profile.json5 index 523ffeaccc459b3cf5f505d238618ec07fda0a3c..bb53cf837fbc752d41a8cd54b7f23b63bff8535f 100644 --- a/build-profile.json5 +++ b/build-profile.json5 @@ -26,8 +26,8 @@ ] }, { - "name": "recyclerview_animators_ets", - "srcPath": "./recyclerview_animators_ets" + "name": "recyclerview_animators", + "srcPath": "./recyclerview_animators" } ] } \ No newline at end of file diff --git a/entry/package.json b/entry/package.json index ec944c8623cbe7b1d289735f8a4980d71c684a35..36bca6febfef3e2f0774cc20d0304dbc0b8a3234 100644 --- a/entry/package.json +++ b/entry/package.json @@ -1,16 +1,16 @@ { - "license": "Apache-2.0", - "devDependencies": {}, - "name": "entry", - "ohos": { - "org": "huawei", - "directoryLevel": "module", - "buildTool": "hvigor" + "license":"Apache-2.0", + "devDependencies":{}, + "name":"entry", + "ohos":{ + "org":"huawei", + "directoryLevel":"module", + "buildTool":"hvigor" }, - "description": "example description", - "repository": {}, - "version": "1.0.2", - "dependencies": { - "@ohos/recyclerview-animators-ets": "file:../recyclerview_animators_ets" + "description":"example description", + "repository":{}, + "version":"1.1.0", + "dependencies":{ + "@ohos/recyclerview-animators":"file:../recyclerview_animators" } -} +} \ No newline at end of file diff --git a/entry/src/main/ets/pages/index_adapter_animator.ets b/entry/src/main/ets/pages/index_adapter_animator.ets index 7615491b07f56b1c171bd9717b5f316509ed5fd0..e66d21d1a46c140e241c6f59895fb38e065438e0 100644 --- a/entry/src/main/ets/pages/index_adapter_animator.ets +++ b/entry/src/main/ets/pages/index_adapter_animator.ets @@ -14,7 +14,7 @@ * limitations under the License. */ -import { RecyclerView } from "@ohos/recyclerview-animators-ets" +import { RecyclerView } from "@ohos/recyclerview-animators" @Entry @Component @@ -35,7 +35,7 @@ struct Index_adapter_animator { @State controller: RecyclerView.Controller = new RecyclerView.Controller() @State selectIndex: number = 0 - private aboutToAppear() { + aboutToAppear() { this.controller.setAdapterAnimation(RecyclerView.AdapterAnimationType.AlphaIn) this.controller.setFirstOnly(false) this.controller.setDuration(500) diff --git a/entry/src/main/ets/pages/index_item_animator.ets b/entry/src/main/ets/pages/index_item_animator.ets index 0468cebaa353db03e05611a812cd9fb6263ec3ae..676c261ec67c1be62477ea60b922e3efbcdd98eb 100644 --- a/entry/src/main/ets/pages/index_item_animator.ets +++ b/entry/src/main/ets/pages/index_item_animator.ets @@ -14,7 +14,7 @@ * limitations under the License. */ -import { RecyclerView } from "@ohos/recyclerview-animators-ets" +import { RecyclerView } from "@ohos/recyclerview-animators" import router from '@system.router'; @Entry @@ -47,7 +47,7 @@ struct Index_item_animator { @State controller: RecyclerView.Controller = new RecyclerView.Controller() @State selectIndex: number = 0 - private aboutToAppear() { + aboutToAppear() { this.controller.setItemAnimation(RecyclerView.ItemAnimationType.FadeIn) this.controller.setDuration(500) } diff --git a/entry/src/main/module.json5 b/entry/src/main/module.json5 index 953e471024ea24c738ae2eb6751572e43a96c5de..35faec6f888650226cccc18c6b76c8140434e186 100644 --- a/entry/src/main/module.json5 +++ b/entry/src/main/module.json5 @@ -12,7 +12,6 @@ "deliveryWithInstall": true, "installationFree": false, "pages": "$profile:main_pages", - "uiSyntax": "ets", "abilities": [ { "name": "MainAbility", diff --git a/entry/src/ohosTest/module.json5 b/entry/src/ohosTest/module.json5 index 4cf8a1f0548b082176ac5a275e2db782d0bb0e5d..d4d6e200a6ee51067910f642cece7e2412cbad3a 100644 --- a/entry/src/ohosTest/module.json5 +++ b/entry/src/ohosTest/module.json5 @@ -12,7 +12,6 @@ "deliveryWithInstall": true, "installationFree": false, "pages": "$profile:test_pages", - "uiSyntax": "ets", "abilities": [ { "name": "TestAbility", diff --git a/package.json b/package.json index bd069b96f21c24b157d50733a4c43286694939ce..537cde7ba70b7e58765c29e5f38111c9e991f412 100644 --- a/package.json +++ b/package.json @@ -9,11 +9,11 @@ }, "description": "example description", "repository": {}, - "version": "1.0.2", + "version": "1.1.0", "dependencies": { + "@ohos/hypium": "1.0.1", "@ohos/hvigor-ohos-plugin": "1.1.6", "hypium": "^1.0.0", - "@ohos/hvigor": "1.1.6", - "@ohos/hypium": "1.0.1" + "@ohos/hvigor": "1.1.6" } } diff --git a/recyclerview_animators_ets/.gitignore b/recyclerview_animators/.gitignore similarity index 100% rename from recyclerview_animators_ets/.gitignore rename to recyclerview_animators/.gitignore diff --git a/recyclerview_animators_ets/build-profile.json5 b/recyclerview_animators/build-profile.json5 similarity index 100% rename from recyclerview_animators_ets/build-profile.json5 rename to recyclerview_animators/build-profile.json5 diff --git a/recyclerview_animators_ets/hvigorfile.js b/recyclerview_animators/hvigorfile.js similarity index 100% rename from recyclerview_animators_ets/hvigorfile.js rename to recyclerview_animators/hvigorfile.js diff --git a/recyclerview_animators_ets/index.ets b/recyclerview_animators/index.ets similarity index 100% rename from recyclerview_animators_ets/index.ets rename to recyclerview_animators/index.ets diff --git a/recyclerview_animators/package.json b/recyclerview_animators/package.json new file mode 100644 index 0000000000000000000000000000000000000000..4b9f44d3be0959c5dfd2d21a33a86442ec6d3901 --- /dev/null +++ b/recyclerview_animators/package.json @@ -0,0 +1,23 @@ +{ + "types":"", + "keywords":[ + "UI", + "Animation" + ], + "author":"hihope", + "description":"RecyclerView Animators is an Ohos library that allows developers to easily create RecyclerView with animations.", + "ohos":{ + "org":"opensource" + }, + "main":"index.ets", + "repository":"https://gitee.com/openharmony-sig/recyclerview-animators", + "version":"1.1.0", + "tags":[ + "UI", + "Animation" + ], + "dependencies":{}, + "license":"Apache-2.0", + "devDependencies":{}, + "name":"@ohos/recyclerview-animators" +} \ No newline at end of file diff --git a/recyclerview_animators_ets/src/main/ets/components/RecyclerView.ets b/recyclerview_animators/src/main/ets/components/RecyclerView.ets similarity index 100% rename from recyclerview_animators_ets/src/main/ets/components/RecyclerView.ets rename to recyclerview_animators/src/main/ets/components/RecyclerView.ets diff --git a/recyclerview_animators_ets/src/main/ets/components/adapterAnimator/AlphaInAnimationAdapter.ets b/recyclerview_animators/src/main/ets/components/adapterAnimator/AlphaInAnimationAdapter.ets similarity index 98% rename from recyclerview_animators_ets/src/main/ets/components/adapterAnimator/AlphaInAnimationAdapter.ets rename to recyclerview_animators/src/main/ets/components/adapterAnimator/AlphaInAnimationAdapter.ets index b378c56716ed4c24561779594bd3e142747b9e4a..40fe0e16da7504e86a83282ed5170a45fbfa794b 100644 --- a/recyclerview_animators_ets/src/main/ets/components/adapterAnimator/AlphaInAnimationAdapter.ets +++ b/recyclerview_animators/src/main/ets/components/adapterAnimator/AlphaInAnimationAdapter.ets @@ -25,7 +25,7 @@ export struct AlphaInAnimationAdapter { @State private start: number = 0 @State private end: number = 0 - private aboutToAppear() { + aboutToAppear() { this.array.forEach(item => { let temp = { alpha: 0, diff --git a/recyclerview_animators_ets/src/main/ets/components/adapterAnimator/ScaleInAnimationAdapter.ets b/recyclerview_animators/src/main/ets/components/adapterAnimator/ScaleInAnimationAdapter.ets similarity index 98% rename from recyclerview_animators_ets/src/main/ets/components/adapterAnimator/ScaleInAnimationAdapter.ets rename to recyclerview_animators/src/main/ets/components/adapterAnimator/ScaleInAnimationAdapter.ets index 174e82dd0cc91e01d721ec73d4f497143bfdceb3..4703abd5bc0ad2ba688ed12f2406a6adebc7ca76 100644 --- a/recyclerview_animators_ets/src/main/ets/components/adapterAnimator/ScaleInAnimationAdapter.ets +++ b/recyclerview_animators/src/main/ets/components/adapterAnimator/ScaleInAnimationAdapter.ets @@ -25,7 +25,7 @@ export struct ScaleInAnimationAdapter { @State private start: number = 0 @State private end: number = 0 - private aboutToAppear() { + aboutToAppear() { this.array.forEach(item => { let temp = { landing: 0, diff --git a/recyclerview_animators_ets/src/main/ets/components/adapterAnimator/SlideInBottomAnimationAdapter.ets b/recyclerview_animators/src/main/ets/components/adapterAnimator/SlideInBottomAnimationAdapter.ets similarity index 98% rename from recyclerview_animators_ets/src/main/ets/components/adapterAnimator/SlideInBottomAnimationAdapter.ets rename to recyclerview_animators/src/main/ets/components/adapterAnimator/SlideInBottomAnimationAdapter.ets index abb12c16cec5acc790ca15b8a55821d3563bd92b..8797b3bc2fd356a591d12867db4ea5e820218652 100644 --- a/recyclerview_animators_ets/src/main/ets/components/adapterAnimator/SlideInBottomAnimationAdapter.ets +++ b/recyclerview_animators/src/main/ets/components/adapterAnimator/SlideInBottomAnimationAdapter.ets @@ -25,7 +25,7 @@ export struct SlideInBottomAnimationAdapter { @State private start: number = 0 @State private end: number = 0 - private aboutToAppear() { + aboutToAppear() { this.array.forEach(item => { let temp = { y: '100%', diff --git a/recyclerview_animators_ets/src/main/ets/components/adapterAnimator/SlideInLeftAnimationAdapter.ets b/recyclerview_animators/src/main/ets/components/adapterAnimator/SlideInLeftAnimationAdapter.ets similarity index 98% rename from recyclerview_animators_ets/src/main/ets/components/adapterAnimator/SlideInLeftAnimationAdapter.ets rename to recyclerview_animators/src/main/ets/components/adapterAnimator/SlideInLeftAnimationAdapter.ets index 90126f389631cd48099a2b55949d274c8ef82d50..9be62e41c7d5e1909933d6fa67ac61cbef8a4b4b 100644 --- a/recyclerview_animators_ets/src/main/ets/components/adapterAnimator/SlideInLeftAnimationAdapter.ets +++ b/recyclerview_animators/src/main/ets/components/adapterAnimator/SlideInLeftAnimationAdapter.ets @@ -25,7 +25,7 @@ export struct SlideInLeftAnimationAdapter { @State private start: number = 0 @State private end: number = 0 - private aboutToAppear() { + aboutToAppear() { this.array.forEach(item => { let temp = { x: '-100%', diff --git a/recyclerview_animators_ets/src/main/ets/components/adapterAnimator/SlideInRightAnimationAdapter.ets b/recyclerview_animators/src/main/ets/components/adapterAnimator/SlideInRightAnimationAdapter.ets similarity index 98% rename from recyclerview_animators_ets/src/main/ets/components/adapterAnimator/SlideInRightAnimationAdapter.ets rename to recyclerview_animators/src/main/ets/components/adapterAnimator/SlideInRightAnimationAdapter.ets index 62edf2b45bca3623888b78f960b8a7c76fc01513..eeeb20892ad43af93434b7bed54d54d5c3a62a4b 100644 --- a/recyclerview_animators_ets/src/main/ets/components/adapterAnimator/SlideInRightAnimationAdapter.ets +++ b/recyclerview_animators/src/main/ets/components/adapterAnimator/SlideInRightAnimationAdapter.ets @@ -25,7 +25,7 @@ export struct SlideInRightAnimationAdapter { @State private start: number = 0 @State private end: number = 0 - private aboutToAppear() { + aboutToAppear() { this.array.forEach(item => { let temp = { x: '100%', diff --git a/recyclerview_animators_ets/src/main/ets/components/itemAnimator/FadeInAnimator.ets b/recyclerview_animators/src/main/ets/components/itemAnimator/FadeInAnimator.ets similarity index 99% rename from recyclerview_animators_ets/src/main/ets/components/itemAnimator/FadeInAnimator.ets rename to recyclerview_animators/src/main/ets/components/itemAnimator/FadeInAnimator.ets index 01f5667fb6b8679765f662ea10b02601e8dcd42f..7796c9fd70063f8609ee96a8d0107ba280fff231 100644 --- a/recyclerview_animators_ets/src/main/ets/components/itemAnimator/FadeInAnimator.ets +++ b/recyclerview_animators/src/main/ets/components/itemAnimator/FadeInAnimator.ets @@ -28,7 +28,7 @@ export struct FadeInAnimator { columnsNum: number = 1 private colNumStr: string = '' - private aboutToAppear() { + aboutToAppear() { this.controller.addValueCallback = this.addValue.bind(this) this.controller.deleteValueCallback = this.deleteValue.bind(this) diff --git a/recyclerview_animators_ets/src/main/ets/components/itemAnimator/FadeInDownAnimator.ets b/recyclerview_animators/src/main/ets/components/itemAnimator/FadeInDownAnimator.ets similarity index 99% rename from recyclerview_animators_ets/src/main/ets/components/itemAnimator/FadeInDownAnimator.ets rename to recyclerview_animators/src/main/ets/components/itemAnimator/FadeInDownAnimator.ets index c51f4d28ac5a8137ed224b75384e23469bd539eb..5d74d634b5e837b45fbf0650f58cdf8d0e59077f 100644 --- a/recyclerview_animators_ets/src/main/ets/components/itemAnimator/FadeInDownAnimator.ets +++ b/recyclerview_animators/src/main/ets/components/itemAnimator/FadeInDownAnimator.ets @@ -29,7 +29,7 @@ export struct FadeInDownAnimator { columnsNum: number = 1 private colNumStr: string = '' - private aboutToAppear() { + aboutToAppear() { this.controller.addValueCallback = this.addValue.bind(this) this.controller.deleteValueCallback = this.deleteValue.bind(this) diff --git a/recyclerview_animators_ets/src/main/ets/components/itemAnimator/FadeInLeftAnimator.ets b/recyclerview_animators/src/main/ets/components/itemAnimator/FadeInLeftAnimator.ets similarity index 99% rename from recyclerview_animators_ets/src/main/ets/components/itemAnimator/FadeInLeftAnimator.ets rename to recyclerview_animators/src/main/ets/components/itemAnimator/FadeInLeftAnimator.ets index 640a108f2fe018250d94f5870da52167e265034c..b051613780f4a999cfb104ab16c1f4e16b2dc5a1 100644 --- a/recyclerview_animators_ets/src/main/ets/components/itemAnimator/FadeInLeftAnimator.ets +++ b/recyclerview_animators/src/main/ets/components/itemAnimator/FadeInLeftAnimator.ets @@ -29,7 +29,7 @@ export struct FadeInLeftAnimator { columnsNum: number = 1 private colNumStr: string = '' - private aboutToAppear() { + aboutToAppear() { this.controller.addValueCallback = this.addValue.bind(this) this.controller.deleteValueCallback = this.deleteValue.bind(this) diff --git a/recyclerview_animators_ets/src/main/ets/components/itemAnimator/FadeInRightAnimator.ets b/recyclerview_animators/src/main/ets/components/itemAnimator/FadeInRightAnimator.ets similarity index 99% rename from recyclerview_animators_ets/src/main/ets/components/itemAnimator/FadeInRightAnimator.ets rename to recyclerview_animators/src/main/ets/components/itemAnimator/FadeInRightAnimator.ets index b213b577e0c7a80a8e849a57956b1f019e8fc71d..12f6221f0ca16d9206470a165414aaab1116dd3f 100644 --- a/recyclerview_animators_ets/src/main/ets/components/itemAnimator/FadeInRightAnimator.ets +++ b/recyclerview_animators/src/main/ets/components/itemAnimator/FadeInRightAnimator.ets @@ -29,7 +29,7 @@ export struct FadeInRightAnimator { columnsNum: number = 1 private colNumStr: string = '' - private aboutToAppear() { + aboutToAppear() { this.controller.addValueCallback = this.addValue.bind(this) this.controller.deleteValueCallback = this.deleteValue.bind(this) diff --git a/recyclerview_animators_ets/src/main/ets/components/itemAnimator/FadeInUpAnimator.ets b/recyclerview_animators/src/main/ets/components/itemAnimator/FadeInUpAnimator.ets similarity index 99% rename from recyclerview_animators_ets/src/main/ets/components/itemAnimator/FadeInUpAnimator.ets rename to recyclerview_animators/src/main/ets/components/itemAnimator/FadeInUpAnimator.ets index 40e3cef0bd4adf0d7b71e345ab19074b179accbc..b800b0fb92e8e23f2e137260d6afefaa04d566f1 100644 --- a/recyclerview_animators_ets/src/main/ets/components/itemAnimator/FadeInUpAnimator.ets +++ b/recyclerview_animators/src/main/ets/components/itemAnimator/FadeInUpAnimator.ets @@ -29,7 +29,7 @@ export struct FadeInUpAnimator { columnsNum: number = 1 private colNumStr: string = '' - private aboutToAppear() { + aboutToAppear() { this.controller.addValueCallback = this.addValue.bind(this) this.controller.deleteValueCallback = this.deleteValue.bind(this) diff --git a/recyclerview_animators_ets/src/main/ets/components/itemAnimator/LandingAnimator.ets b/recyclerview_animators/src/main/ets/components/itemAnimator/LandingAnimator.ets similarity index 99% rename from recyclerview_animators_ets/src/main/ets/components/itemAnimator/LandingAnimator.ets rename to recyclerview_animators/src/main/ets/components/itemAnimator/LandingAnimator.ets index d11a6a4ca311c665c4069e16fcfce473433998b6..6f2f8cb01c707a04db78f58563bde230a8da0217 100644 --- a/recyclerview_animators_ets/src/main/ets/components/itemAnimator/LandingAnimator.ets +++ b/recyclerview_animators/src/main/ets/components/itemAnimator/LandingAnimator.ets @@ -29,7 +29,7 @@ export struct LandingAnimator { columnsNum: number = 1 private colNumStr: string = '' - private aboutToAppear() { + aboutToAppear() { this.controller.addValueCallback = this.addValue.bind(this) this.controller.deleteValueCallback = this.deleteValue.bind(this) diff --git a/recyclerview_animators_ets/src/main/ets/components/itemAnimator/OvershootInLeftAnimator.ets b/recyclerview_animators/src/main/ets/components/itemAnimator/OvershootInLeftAnimator.ets similarity index 99% rename from recyclerview_animators_ets/src/main/ets/components/itemAnimator/OvershootInLeftAnimator.ets rename to recyclerview_animators/src/main/ets/components/itemAnimator/OvershootInLeftAnimator.ets index 6249b003a25567529efd972b96802bb9ba2475da..13a26bd31393544f3eb7ebec7985e761ca000f39 100644 --- a/recyclerview_animators_ets/src/main/ets/components/itemAnimator/OvershootInLeftAnimator.ets +++ b/recyclerview_animators/src/main/ets/components/itemAnimator/OvershootInLeftAnimator.ets @@ -30,7 +30,7 @@ export struct OvershootInLeftAnimator { columnsNum: number = 1 private colNumStr: string = '' - private aboutToAppear() { + aboutToAppear() { this.controller.addValueCallback = this.addValue.bind(this) this.controller.deleteValueCallback = this.deleteValue.bind(this) diff --git a/recyclerview_animators_ets/src/main/ets/components/itemAnimator/OvershootInRightAnimator.ets b/recyclerview_animators/src/main/ets/components/itemAnimator/OvershootInRightAnimator.ets similarity index 99% rename from recyclerview_animators_ets/src/main/ets/components/itemAnimator/OvershootInRightAnimator.ets rename to recyclerview_animators/src/main/ets/components/itemAnimator/OvershootInRightAnimator.ets index c9b8d8c03d34589fff0d490e51a22ba7a4b19ff5..bb48bf9d7ebea6e6c30ce3506bdf0300a5011a4b 100644 --- a/recyclerview_animators_ets/src/main/ets/components/itemAnimator/OvershootInRightAnimator.ets +++ b/recyclerview_animators/src/main/ets/components/itemAnimator/OvershootInRightAnimator.ets @@ -30,7 +30,7 @@ export struct OvershootInRightAnimator { @State private x: string = '0%' @State private y: string = '0%' - private aboutToAppear() { + aboutToAppear() { this.controller.addValueCallback = this.addValue.bind(this) this.controller.deleteValueCallback = this.deleteValue.bind(this) diff --git a/recyclerview_animators_ets/src/main/ets/components/itemAnimator/ScaleInAnimator.ets b/recyclerview_animators/src/main/ets/components/itemAnimator/ScaleInAnimator.ets similarity index 99% rename from recyclerview_animators_ets/src/main/ets/components/itemAnimator/ScaleInAnimator.ets rename to recyclerview_animators/src/main/ets/components/itemAnimator/ScaleInAnimator.ets index 43d70de52bfb1078a626fe945f6affefc5add683..0f9696b2d0b8f401530a668000253233859821fa 100644 --- a/recyclerview_animators_ets/src/main/ets/components/itemAnimator/ScaleInAnimator.ets +++ b/recyclerview_animators/src/main/ets/components/itemAnimator/ScaleInAnimator.ets @@ -29,7 +29,7 @@ export struct ScaleInAnimator { columnsNum: number = 1 private colNumStr: string = '' - private aboutToAppear() { + aboutToAppear() { this.controller.addValueCallback = this.addValue.bind(this) this.controller.deleteValueCallback = this.deleteValue.bind(this) diff --git a/recyclerview_animators_ets/src/main/ets/components/itemAnimator/ScaleInBottomAnimator.ets b/recyclerview_animators/src/main/ets/components/itemAnimator/ScaleInBottomAnimator.ets similarity index 99% rename from recyclerview_animators_ets/src/main/ets/components/itemAnimator/ScaleInBottomAnimator.ets rename to recyclerview_animators/src/main/ets/components/itemAnimator/ScaleInBottomAnimator.ets index ed14ffb4fb91c410e5fb414e55a36df923092660..67088e0ae4a13ac969fa07693c2caf00da37ffbd 100644 --- a/recyclerview_animators_ets/src/main/ets/components/itemAnimator/ScaleInBottomAnimator.ets +++ b/recyclerview_animators/src/main/ets/components/itemAnimator/ScaleInBottomAnimator.ets @@ -29,7 +29,7 @@ export struct ScaleInBottomAnimator { columnsNum: number = 1 private colNumStr: string = '' - private aboutToAppear() { + aboutToAppear() { this.controller.addValueCallback = this.addValue.bind(this) this.controller.deleteValueCallback = this.deleteValue.bind(this) diff --git a/recyclerview_animators_ets/src/main/ets/components/itemAnimator/ScaleInLeftAnimator.ets b/recyclerview_animators/src/main/ets/components/itemAnimator/ScaleInLeftAnimator.ets similarity index 99% rename from recyclerview_animators_ets/src/main/ets/components/itemAnimator/ScaleInLeftAnimator.ets rename to recyclerview_animators/src/main/ets/components/itemAnimator/ScaleInLeftAnimator.ets index 992caae6c1cb69883cd4f265d7fb7fb3d96821ec..54c42850ab772ef8833d7b337d4e74317afc04e6 100644 --- a/recyclerview_animators_ets/src/main/ets/components/itemAnimator/ScaleInLeftAnimator.ets +++ b/recyclerview_animators/src/main/ets/components/itemAnimator/ScaleInLeftAnimator.ets @@ -29,7 +29,7 @@ export struct ScaleInLeftAnimator { columnsNum: number = 1 private colNumStr: string = '' - private aboutToAppear() { + aboutToAppear() { this.controller.addValueCallback = this.addValue.bind(this) this.controller.deleteValueCallback = this.deleteValue.bind(this) diff --git a/recyclerview_animators_ets/src/main/ets/components/itemAnimator/ScaleInRightAnimator.ets b/recyclerview_animators/src/main/ets/components/itemAnimator/ScaleInRightAnimator.ets similarity index 99% rename from recyclerview_animators_ets/src/main/ets/components/itemAnimator/ScaleInRightAnimator.ets rename to recyclerview_animators/src/main/ets/components/itemAnimator/ScaleInRightAnimator.ets index 7a8d6ae22af32a644a6c9e0eb87d5be8c44a9567..cff9d0be3d46c28f907897c318a698f259971c4d 100644 --- a/recyclerview_animators_ets/src/main/ets/components/itemAnimator/ScaleInRightAnimator.ets +++ b/recyclerview_animators/src/main/ets/components/itemAnimator/ScaleInRightAnimator.ets @@ -29,7 +29,7 @@ export struct ScaleInRightAnimator { columnsNum: number = 1 private colNumStr: string = '' - private aboutToAppear() { + aboutToAppear() { this.controller.addValueCallback = this.addValue.bind(this) this.controller.deleteValueCallback = this.deleteValue.bind(this) diff --git a/recyclerview_animators_ets/src/main/ets/components/itemAnimator/ScaleInTopAnimator.ets b/recyclerview_animators/src/main/ets/components/itemAnimator/ScaleInTopAnimator.ets similarity index 99% rename from recyclerview_animators_ets/src/main/ets/components/itemAnimator/ScaleInTopAnimator.ets rename to recyclerview_animators/src/main/ets/components/itemAnimator/ScaleInTopAnimator.ets index 79a3c457a27a88545622ad228d89272463c4053e..91f3bba8fa5adfa5c5378c5495553863431a4f0e 100644 --- a/recyclerview_animators_ets/src/main/ets/components/itemAnimator/ScaleInTopAnimator.ets +++ b/recyclerview_animators/src/main/ets/components/itemAnimator/ScaleInTopAnimator.ets @@ -29,7 +29,7 @@ export struct ScaleInTopAnimator { columnsNum: number = 1 private colNumStr: string = '' - private aboutToAppear() { + aboutToAppear() { this.controller.addValueCallback = this.addValue.bind(this) this.controller.deleteValueCallback = this.deleteValue.bind(this) diff --git a/recyclerview_animators_ets/src/main/ets/components/itemAnimator/SlideInDownAnimator.ets b/recyclerview_animators/src/main/ets/components/itemAnimator/SlideInDownAnimator.ets similarity index 99% rename from recyclerview_animators_ets/src/main/ets/components/itemAnimator/SlideInDownAnimator.ets rename to recyclerview_animators/src/main/ets/components/itemAnimator/SlideInDownAnimator.ets index 6b4ced428c7e4f8746f225c23e606401ea81b5d4..0adb3197950ddc50546b84d2e4ac88038decfc3b 100644 --- a/recyclerview_animators_ets/src/main/ets/components/itemAnimator/SlideInDownAnimator.ets +++ b/recyclerview_animators/src/main/ets/components/itemAnimator/SlideInDownAnimator.ets @@ -30,7 +30,7 @@ export struct SlideInDownAnimator { columnsNum: number = 1 private colNumStr: string = '' - private aboutToAppear() { + aboutToAppear() { this.controller.addValueCallback = this.addValue.bind(this) this.controller.deleteValueCallback = this.deleteValue.bind(this) diff --git a/recyclerview_animators_ets/src/main/ets/components/itemAnimator/SlideInLeftAnimator.ets b/recyclerview_animators/src/main/ets/components/itemAnimator/SlideInLeftAnimator.ets similarity index 99% rename from recyclerview_animators_ets/src/main/ets/components/itemAnimator/SlideInLeftAnimator.ets rename to recyclerview_animators/src/main/ets/components/itemAnimator/SlideInLeftAnimator.ets index 1c70d795f2fd3f2083d8d8392aa09dd3610026fa..d83ed0dea8fa490b993aa204b706ab3ec45c4089 100644 --- a/recyclerview_animators_ets/src/main/ets/components/itemAnimator/SlideInLeftAnimator.ets +++ b/recyclerview_animators/src/main/ets/components/itemAnimator/SlideInLeftAnimator.ets @@ -30,7 +30,7 @@ export struct SlideInLeftAnimator { columnsNum: number = 1 private colNumStr: string = '' - private aboutToAppear() { + aboutToAppear() { this.controller.addValueCallback = this.addValue.bind(this) this.controller.deleteValueCallback = this.deleteValue.bind(this) diff --git a/recyclerview_animators_ets/src/main/ets/components/itemAnimator/SlideInRightAnimator.ets b/recyclerview_animators/src/main/ets/components/itemAnimator/SlideInRightAnimator.ets similarity index 99% rename from recyclerview_animators_ets/src/main/ets/components/itemAnimator/SlideInRightAnimator.ets rename to recyclerview_animators/src/main/ets/components/itemAnimator/SlideInRightAnimator.ets index e32f08f2e3ea9d2152b27e8dcbf75a09feddbb17..f63a98ce35ca548803e5d49029e9a217cf0e2c4a 100644 --- a/recyclerview_animators_ets/src/main/ets/components/itemAnimator/SlideInRightAnimator.ets +++ b/recyclerview_animators/src/main/ets/components/itemAnimator/SlideInRightAnimator.ets @@ -30,7 +30,7 @@ export struct SlideInRightAnimator { columnsNum: number = 1 private colNumStr: string = '' - private aboutToAppear() { + aboutToAppear() { this.controller.addValueCallback = this.addValue.bind(this) this.controller.deleteValueCallback = this.deleteValue.bind(this) diff --git a/recyclerview_animators_ets/src/main/ets/components/itemAnimator/SlideInUpAnimator.ets b/recyclerview_animators/src/main/ets/components/itemAnimator/SlideInUpAnimator.ets similarity index 99% rename from recyclerview_animators_ets/src/main/ets/components/itemAnimator/SlideInUpAnimator.ets rename to recyclerview_animators/src/main/ets/components/itemAnimator/SlideInUpAnimator.ets index 31311069532adb31f4abc5aed2c8d6fac6dfb2cb..665aa76595268647febde6698dcf354a3f3193d0 100644 --- a/recyclerview_animators_ets/src/main/ets/components/itemAnimator/SlideInUpAnimator.ets +++ b/recyclerview_animators/src/main/ets/components/itemAnimator/SlideInUpAnimator.ets @@ -30,7 +30,7 @@ export struct SlideInUpAnimator { columnsNum: number = 1 private colNumStr: string = '' - private aboutToAppear() { + aboutToAppear() { this.controller.addValueCallback = this.addValue.bind(this) this.controller.deleteValueCallback = this.deleteValue.bind(this) diff --git a/recyclerview_animators_ets/src/main/module.json5 b/recyclerview_animators/src/main/module.json5 similarity index 60% rename from recyclerview_animators_ets/src/main/module.json5 rename to recyclerview_animators/src/main/module.json5 index a06f87ed3d79be79fbfb21948f5190c6bb408c35..b5092a788bb50bc670bd697e11d1896bd4d65175 100644 --- a/recyclerview_animators_ets/src/main/module.json5 +++ b/recyclerview_animators/src/main/module.json5 @@ -1,11 +1,10 @@ { "module": { - "name": "recyclerview_animators_ets", + "name": "recyclerview_animators", "type": "har", "deviceTypes": [ "default", "tablet" ], - "uiSyntax": "ets" } -} +} \ No newline at end of file diff --git a/recyclerview_animators_ets/src/main/resources/base/element/string.json b/recyclerview_animators/src/main/resources/base/element/string.json similarity index 100% rename from recyclerview_animators_ets/src/main/resources/base/element/string.json rename to recyclerview_animators/src/main/resources/base/element/string.json diff --git a/recyclerview_animators_ets/package.json b/recyclerview_animators_ets/package.json deleted file mode 100644 index 5b6127878368f968617be9798edecccdf1b5a539..0000000000000000000000000000000000000000 --- a/recyclerview_animators_ets/package.json +++ /dev/null @@ -1,23 +0,0 @@ -{ - "types": "", - "keywords": [ - "Recyclerview", - "OpenHarmony" - ], - "author": "hihope", - "description": "RecyclerView Animators is an Ohos library that allows developers to easily create RecyclerView with animations.", - "ohos": { - "org": "opensource" - }, - "main": "index.ets", - "repository": "https://gitee.com/openharmony-sig/recyclerview-animators-ets", - "version": "1.0.2", - "tags": [ - "Recyclerview", - "OpenHarmony" - ], - "dependencies": {}, - "license": "Apache-2.0", - "devDependencies": {}, - "name": "@ohos/recyclerview-animators-ets" -}