@react-native-ohos/react-native-text-input-mask 3.1.6-rc.1 → 3.1.6-rc.4
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.
- package/LICENSE +21 -21
- package/README.OpenSource +10 -10
- package/README.md +15 -134
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/harmony/text_input_mask/BuildProfile.ets +16 -16
- package/harmony/text_input_mask/Index.ets +7 -7
- package/harmony/text_input_mask/build-profile.json5 +31 -31
- package/harmony/text_input_mask/hvigorfile.ts +6 -6
- package/harmony/text_input_mask/obfuscation-rules.txt +22 -22
- package/harmony/text_input_mask/oh-package.json5 +11 -11
- package/harmony/text_input_mask/src/main/cpp/CMakeLists.txt +9 -9
- package/harmony/text_input_mask/src/main/cpp/RNTextInputMask.cpp +421 -415
- package/harmony/text_input_mask/src/main/cpp/RNTextInputMask.h +93 -93
- package/harmony/text_input_mask/src/main/cpp/RNTextInputMaskPackage.h +31 -31
- package/harmony/text_input_mask/src/main/cpp/common/Compiler.h +174 -174
- package/harmony/text_input_mask/src/main/cpp/common/FormatError.h +22 -22
- package/harmony/text_input_mask/src/main/cpp/common/FormatSanitizer.h +230 -230
- package/harmony/text_input_mask/src/main/cpp/common/Mask.h +380 -377
- package/harmony/text_input_mask/src/main/cpp/common/RTLMask.h +78 -78
- package/harmony/text_input_mask/src/main/cpp/common/model/AffinityCalculationStrategy.h +57 -57
- package/harmony/text_input_mask/src/main/cpp/common/model/CaretString.h +75 -75
- package/harmony/text_input_mask/src/main/cpp/common/model/CaretStringIterator.h +58 -58
- package/harmony/text_input_mask/src/main/cpp/common/model/Next.h +24 -24
- package/harmony/text_input_mask/src/main/cpp/common/model/Notation.h +29 -24
- package/harmony/text_input_mask/src/main/cpp/common/model/RTLCaretStringIterator.h +22 -22
- package/harmony/text_input_mask/src/main/cpp/common/model/State.h +302 -302
- package/harmony/text_input_mask/src/main/cpp/common/model/common.h +94 -94
- package/harmony/text_input_mask/src/main/ets/RNTextInputMaskPackage.ts +28 -28
- package/harmony/text_input_mask/src/main/ets/RNTextInputMaskTurboModle.ts +32 -32
- package/harmony/text_input_mask/src/main/module.json5 +11 -11
- package/harmony/text_input_mask/src/main/resources/base/element/string.json +8 -8
- package/harmony/text_input_mask/src/main/resources/en_US/element/string.json +8 -8
- package/harmony/text_input_mask/src/main/resources/zh_CN/element/string.json +8 -8
- package/harmony/text_input_mask/ts.ts +8 -8
- package/harmony/text_input_mask.har +0 -0
- package/index.tsx +258 -258
- package/package.json +48 -50
- package/src/RNNativeTextInputMask.ts +142 -142
- package/src/index.harmony.ts +147 -147
- package/src/index.ts +36 -36
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Use these variables when you tailor your ArkTS code. They must be of the const type.
|
|
3
|
-
*/
|
|
4
|
-
export const HAR_VERSION = '3.1.6-rc.
|
|
5
|
-
export const BUILD_MODE_NAME = 'debug';
|
|
6
|
-
export const DEBUG = true;
|
|
7
|
-
export const TARGET_NAME = 'default';
|
|
8
|
-
|
|
9
|
-
/**
|
|
10
|
-
* BuildProfile Class is used only for compatibility purposes.
|
|
11
|
-
*/
|
|
12
|
-
export default class BuildProfile {
|
|
13
|
-
static readonly HAR_VERSION = HAR_VERSION;
|
|
14
|
-
static readonly BUILD_MODE_NAME = BUILD_MODE_NAME;
|
|
15
|
-
static readonly DEBUG = DEBUG;
|
|
16
|
-
static readonly TARGET_NAME = TARGET_NAME;
|
|
1
|
+
/**
|
|
2
|
+
* Use these variables when you tailor your ArkTS code. They must be of the const type.
|
|
3
|
+
*/
|
|
4
|
+
export const HAR_VERSION = '3.1.6-rc.2';
|
|
5
|
+
export const BUILD_MODE_NAME = 'debug';
|
|
6
|
+
export const DEBUG = true;
|
|
7
|
+
export const TARGET_NAME = 'default';
|
|
8
|
+
|
|
9
|
+
/**
|
|
10
|
+
* BuildProfile Class is used only for compatibility purposes.
|
|
11
|
+
*/
|
|
12
|
+
export default class BuildProfile {
|
|
13
|
+
static readonly HAR_VERSION = HAR_VERSION;
|
|
14
|
+
static readonly BUILD_MODE_NAME = BUILD_MODE_NAME;
|
|
15
|
+
static readonly DEBUG = DEBUG;
|
|
16
|
+
static readonly TARGET_NAME = TARGET_NAME;
|
|
17
17
|
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
/*
|
|
2
|
-
* Copyright (c) 2024 Huawei Device Co., Ltd. All rights reserved
|
|
3
|
-
* Use of this source code is governed by a MIT license that can be
|
|
4
|
-
* found in the LICENSE file.
|
|
5
|
-
*/
|
|
6
|
-
|
|
7
|
-
export * from "./ts";
|
|
1
|
+
/*
|
|
2
|
+
* Copyright (c) 2024 Huawei Device Co., Ltd. All rights reserved
|
|
3
|
+
* Use of this source code is governed by a MIT license that can be
|
|
4
|
+
* found in the LICENSE file.
|
|
5
|
+
*/
|
|
6
|
+
|
|
7
|
+
export * from "./ts";
|
|
@@ -1,31 +1,31 @@
|
|
|
1
|
-
{
|
|
2
|
-
"apiType": "stageMode",
|
|
3
|
-
"buildOption": {
|
|
4
|
-
},
|
|
5
|
-
"buildOptionSet": [
|
|
6
|
-
{
|
|
7
|
-
"name": "release",
|
|
8
|
-
"arkOptions": {
|
|
9
|
-
"obfuscation": {
|
|
10
|
-
"ruleOptions": {
|
|
11
|
-
"enable": false,
|
|
12
|
-
"files": [
|
|
13
|
-
"./obfuscation-rules.txt"
|
|
14
|
-
]
|
|
15
|
-
},
|
|
16
|
-
"consumerFiles": [
|
|
17
|
-
"./consumer-rules.txt"
|
|
18
|
-
]
|
|
19
|
-
}
|
|
20
|
-
},
|
|
21
|
-
},
|
|
22
|
-
],
|
|
23
|
-
"targets": [
|
|
24
|
-
{
|
|
25
|
-
"name": "default"
|
|
26
|
-
},
|
|
27
|
-
{
|
|
28
|
-
"name": "ohosTest"
|
|
29
|
-
}
|
|
30
|
-
]
|
|
31
|
-
}
|
|
1
|
+
{
|
|
2
|
+
"apiType": "stageMode",
|
|
3
|
+
"buildOption": {
|
|
4
|
+
},
|
|
5
|
+
"buildOptionSet": [
|
|
6
|
+
{
|
|
7
|
+
"name": "release",
|
|
8
|
+
"arkOptions": {
|
|
9
|
+
"obfuscation": {
|
|
10
|
+
"ruleOptions": {
|
|
11
|
+
"enable": false,
|
|
12
|
+
"files": [
|
|
13
|
+
"./obfuscation-rules.txt"
|
|
14
|
+
]
|
|
15
|
+
},
|
|
16
|
+
"consumerFiles": [
|
|
17
|
+
"./consumer-rules.txt"
|
|
18
|
+
]
|
|
19
|
+
}
|
|
20
|
+
},
|
|
21
|
+
},
|
|
22
|
+
],
|
|
23
|
+
"targets": [
|
|
24
|
+
{
|
|
25
|
+
"name": "default"
|
|
26
|
+
},
|
|
27
|
+
{
|
|
28
|
+
"name": "ohosTest"
|
|
29
|
+
}
|
|
30
|
+
]
|
|
31
|
+
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { harTasks } from '@ohos/hvigor-ohos-plugin';
|
|
2
|
-
|
|
3
|
-
export default {
|
|
4
|
-
system: harTasks, /* Built-in plugin of Hvigor. It cannot be modified. */
|
|
5
|
-
plugins:[] /* Custom plugin to extend the functionality of Hvigor. */
|
|
6
|
-
}
|
|
1
|
+
import { harTasks } from '@ohos/hvigor-ohos-plugin';
|
|
2
|
+
|
|
3
|
+
export default {
|
|
4
|
+
system: harTasks, /* Built-in plugin of Hvigor. It cannot be modified. */
|
|
5
|
+
plugins:[] /* Custom plugin to extend the functionality of Hvigor. */
|
|
6
|
+
}
|
|
@@ -1,23 +1,23 @@
|
|
|
1
|
-
# Define project specific obfuscation rules here.
|
|
2
|
-
# You can include the obfuscation configuration files in the current module's build-profile.json5.
|
|
3
|
-
#
|
|
4
|
-
# For more details, see
|
|
5
|
-
# https://developer.huawei.com/consumer/cn/doc/harmonyos-guides-V5/source-obfuscation-V5
|
|
6
|
-
|
|
7
|
-
# Obfuscation options:
|
|
8
|
-
# -disable-obfuscation: disable all obfuscations
|
|
9
|
-
# -enable-property-obfuscation: obfuscate the property names
|
|
10
|
-
# -enable-toplevel-obfuscation: obfuscate the names in the global scope
|
|
11
|
-
# -compact: remove unnecessary blank spaces and all line feeds
|
|
12
|
-
# -remove-log: remove all console.* statements
|
|
13
|
-
# -print-namecache: print the name cache that contains the mapping from the old names to new names
|
|
14
|
-
# -apply-namecache: reuse the given cache file
|
|
15
|
-
|
|
16
|
-
# Keep options:
|
|
17
|
-
# -keep-property-name: specifies property names that you want to keep
|
|
18
|
-
# -keep-global-name: specifies names that you want to keep in the global scope
|
|
19
|
-
|
|
20
|
-
-enable-property-obfuscation
|
|
21
|
-
-enable-toplevel-obfuscation
|
|
22
|
-
-enable-filename-obfuscation
|
|
1
|
+
# Define project specific obfuscation rules here.
|
|
2
|
+
# You can include the obfuscation configuration files in the current module's build-profile.json5.
|
|
3
|
+
#
|
|
4
|
+
# For more details, see
|
|
5
|
+
# https://developer.huawei.com/consumer/cn/doc/harmonyos-guides-V5/source-obfuscation-V5
|
|
6
|
+
|
|
7
|
+
# Obfuscation options:
|
|
8
|
+
# -disable-obfuscation: disable all obfuscations
|
|
9
|
+
# -enable-property-obfuscation: obfuscate the property names
|
|
10
|
+
# -enable-toplevel-obfuscation: obfuscate the names in the global scope
|
|
11
|
+
# -compact: remove unnecessary blank spaces and all line feeds
|
|
12
|
+
# -remove-log: remove all console.* statements
|
|
13
|
+
# -print-namecache: print the name cache that contains the mapping from the old names to new names
|
|
14
|
+
# -apply-namecache: reuse the given cache file
|
|
15
|
+
|
|
16
|
+
# Keep options:
|
|
17
|
+
# -keep-property-name: specifies property names that you want to keep
|
|
18
|
+
# -keep-global-name: specifies names that you want to keep in the global scope
|
|
19
|
+
|
|
20
|
+
-enable-property-obfuscation
|
|
21
|
+
-enable-toplevel-obfuscation
|
|
22
|
+
-enable-filename-obfuscation
|
|
23
23
|
-enable-export-obfuscation
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "@react-native-ohos/react-native-text-input-mask",
|
|
3
|
-
"version": "3.1.6-rc.
|
|
4
|
-
"description": "Please describe the basic information.",
|
|
5
|
-
"main": "Index.ets",
|
|
6
|
-
"author": "",
|
|
7
|
-
"license": "Apache-2.0",
|
|
8
|
-
"dependencies": {
|
|
9
|
-
"@rnoh/react-native-openharmony": "file:../react_native_openharmony.har"
|
|
10
|
-
}
|
|
11
|
-
}
|
|
1
|
+
{
|
|
2
|
+
"name": "@react-native-ohos/react-native-text-input-mask",
|
|
3
|
+
"version": "3.1.6-rc.4",
|
|
4
|
+
"description": "Please describe the basic information.",
|
|
5
|
+
"main": "Index.ets",
|
|
6
|
+
"author": "",
|
|
7
|
+
"license": "Apache-2.0",
|
|
8
|
+
"dependencies": {
|
|
9
|
+
"@rnoh/react-native-openharmony": "file:../react_native_openharmony.har"
|
|
10
|
+
}
|
|
11
|
+
}
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
cmake_minimum_required(VERSION 3.13)
|
|
2
|
-
set(CMAKE_VERBOSE_MAKEFILE on)
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
file(GLOB text_input_mask_SRC CONFIGURE_DEPENDS *.cpp ${CMAKE_CURRENT_SOURCE_DIR}/**/*.h)
|
|
6
|
-
|
|
7
|
-
add_library(text_input_mask SHARED ${text_input_mask_SRC})
|
|
8
|
-
target_include_directories(text_input_mask PUBLIC ${CMAKE_CURRENT_SOURCE_DIR})
|
|
9
|
-
target_link_libraries(text_input_mask PUBLIC rnoh)
|
|
1
|
+
cmake_minimum_required(VERSION 3.13)
|
|
2
|
+
set(CMAKE_VERBOSE_MAKEFILE on)
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
file(GLOB text_input_mask_SRC CONFIGURE_DEPENDS *.cpp ${CMAKE_CURRENT_SOURCE_DIR}/**/*.h)
|
|
6
|
+
|
|
7
|
+
add_library(text_input_mask SHARED ${text_input_mask_SRC})
|
|
8
|
+
target_include_directories(text_input_mask PUBLIC ${CMAKE_CURRENT_SOURCE_DIR})
|
|
9
|
+
target_link_libraries(text_input_mask PUBLIC rnoh)
|