From b990abb748084ac101c4d2c9f6fce14e2966dbe5 Mon Sep 17 00:00:00 2001
From: * <8>
Date: Sat, 8 Oct 2022 11:54:03 +0800
Subject: [PATCH] Match-id-18248370ee22699bae092800d3caf4cf65b1a782
---
.cloudbuild/release.js | 13 +-
.eslintrc.js | 15 +++
.prettierrc.js | 15 +++
License | 125 ++++++++++++++++++
babel.config.js | 15 +++
jest.config.js | 15 +++
libs/horizon/global.d.ts | 15 +++
libs/horizon/index.ts | 15 +++
libs/horizon/npm/index.js | 15 +++
libs/horizon/src/dom/DOMExternal.ts | 15 +++
libs/horizon/src/dom/DOMInternalKeys.ts | 15 +++
libs/horizon/src/dom/DOMOperator.ts | 15 +++
.../DOMPropertiesHandler.ts | 15 +++
.../dom/DOMPropertiesHandler/StyleHandler.ts | 15 +++
.../DOMPropertiesHandler/UpdateCommonProp.ts | 15 +++
libs/horizon/src/dom/SelectionRangeHandler.ts | 15 +++
libs/horizon/src/dom/utils/Common.ts | 15 +++
libs/horizon/src/dom/utils/DomCreator.ts | 15 +++
libs/horizon/src/dom/utils/Interface.ts | 15 +++
.../src/dom/validators/PropertiesData.ts | 15 +++
.../src/dom/validators/ValidateProps.ts | 15 +++
.../src/dom/valueHandler/InputValueHandler.ts | 15 +++
.../dom/valueHandler/OptionValueHandler.ts | 15 +++
.../dom/valueHandler/SelectValueHandler.ts | 15 +++
.../dom/valueHandler/TextareaValueHandler.ts | 15 +++
.../dom/valueHandler/ValueChangeHandler.ts | 15 +++
libs/horizon/src/dom/valueHandler/index.ts | 15 +++
libs/horizon/src/event/EventBinding.ts | 15 +++
libs/horizon/src/event/EventHub.ts | 15 +++
libs/horizon/src/event/EventWrapper.ts | 15 +++
libs/horizon/src/event/FormValueController.ts | 13 +-
libs/horizon/src/event/HorizonEventMain.ts | 15 +++
libs/horizon/src/event/ListenerGetter.ts | 15 +++
libs/horizon/src/event/Types.ts | 15 +++
libs/horizon/src/event/utils.ts | 15 +++
libs/horizon/src/external/ChildrenUtil.ts | 15 +++
libs/horizon/src/external/HorizonIs.ts | 13 +-
libs/horizon/src/external/JSXElement.ts | 15 +++
libs/horizon/src/external/JSXElementType.ts | 15 +++
libs/horizon/src/external/devtools.ts | 15 +++
libs/horizon/src/horizonx/CommonUtils.js | 15 +++
libs/horizon/src/horizonx/Constants.ts | 15 +++
libs/horizon/src/horizonx/adapters/redux.ts | 15 +++
.../src/horizonx/adapters/reduxReact.ts | 15 +++
.../src/horizonx/adapters/reduxThunk.ts | 15 +++
.../src/horizonx/proxy/HooklessObserver.ts | 15 +++
libs/horizon/src/horizonx/proxy/Observer.ts | 15 +++
.../src/horizonx/proxy/ProxyHandler.ts | 15 +++
.../proxy/handlers/ArrayProxyHandler.ts | 15 +++
.../proxy/handlers/CollectionProxyHandler.ts | 15 +++
.../proxy/handlers/ObjectProxyHandler.ts | 15 +++
.../src/horizonx/proxy/readonlyProxy.ts | 15 +++
libs/horizon/src/horizonx/proxy/watch.ts | 15 +++
.../src/horizonx/store/StoreHandler.ts | 15 +++
libs/horizon/src/horizonx/types.d.ts | 15 +++
libs/horizon/src/renderer/ContextSaver.ts | 15 +++
libs/horizon/src/renderer/ErrorHandler.ts | 15 +++
libs/horizon/src/renderer/ExecuteMode.ts | 15 +++
libs/horizon/src/renderer/GlobalVar.ts | 15 +++
libs/horizon/src/renderer/Renderer.ts | 15 +++
libs/horizon/src/renderer/RootStack.ts | 13 +-
libs/horizon/src/renderer/TreeBuilder.ts | 15 +++
libs/horizon/src/renderer/Types.ts | 15 +++
libs/horizon/src/renderer/UpdateHandler.ts | 15 +++
.../renderer/components/BaseClassComponent.ts | 15 +++
.../src/renderer/components/CreatePortal.ts | 15 +++
.../src/renderer/components/CreateRef.ts | 15 +++
.../src/renderer/components/ForwardRef.ts | 15 +++
libs/horizon/src/renderer/components/Lazy.ts | 15 +++
libs/horizon/src/renderer/components/Memo.ts | 15 +++
.../renderer/components/context/Context.ts | 15 +++
.../components/context/CreateContext.ts | 15 +++
libs/horizon/src/renderer/diff/DiffTools.ts | 15 +++
.../src/renderer/diff/nodeDiffComparator.ts | 15 +++
libs/horizon/src/renderer/hooks/BaseHook.ts | 15 +++
.../src/renderer/hooks/EffectConstant.js | 15 +++
.../src/renderer/hooks/HookExternal.ts | 15 +++
libs/horizon/src/renderer/hooks/HookMain.ts | 15 +++
libs/horizon/src/renderer/hooks/HookStage.ts | 15 +++
libs/horizon/src/renderer/hooks/HookType.ts | 15 +++
.../src/renderer/hooks/UseCallbackHook.ts | 15 +++
.../src/renderer/hooks/UseEffectHook.ts | 15 +++
.../src/renderer/hooks/UseImperativeHook.ts | 15 +++
.../horizon/src/renderer/hooks/UseMemoHook.ts | 15 +++
.../src/renderer/hooks/UseReducerHook.ts | 15 +++
libs/horizon/src/renderer/hooks/UseRefHook.ts | 15 +++
.../src/renderer/hooks/UseStateHook.ts | 15 +++
.../src/renderer/render/BaseComponent.ts | 15 +++
.../src/renderer/render/ClassComponent.ts | 15 +++
.../src/renderer/render/ContextConsumer.ts | 15 +++
.../src/renderer/render/ContextProvider.ts | 15 +++
.../src/renderer/render/DomComponent.ts | 15 +++
libs/horizon/src/renderer/render/DomPortal.ts | 15 +++
libs/horizon/src/renderer/render/DomText.ts | 15 +++
.../horizon/src/renderer/render/ForwardRef.ts | 15 +++
libs/horizon/src/renderer/render/Fragment.ts | 15 +++
.../src/renderer/render/FunctionComponent.ts | 15 +++
.../src/renderer/render/LazyComponent.ts | 15 +++
.../src/renderer/render/MemoComponent.ts | 15 +++
.../src/renderer/render/SuspenseComponent.ts | 15 +++
libs/horizon/src/renderer/render/TreeRoot.ts | 15 +++
.../render/class/ClassLifeCycleProcessor.ts | 15 +++
libs/horizon/src/renderer/render/index.ts | 15 +++
.../src/renderer/submit/HookEffectHandler.ts | 21 ++-
.../src/renderer/submit/LifeCycleHandler.ts | 15 +++
libs/horizon/src/renderer/submit/Submit.ts | 15 +++
.../src/renderer/taskExecutor/BrowserAsync.ts | 15 +++
.../src/renderer/taskExecutor/RenderQueue.ts | 15 +++
.../src/renderer/taskExecutor/TaskExecutor.ts | 15 +++
.../src/renderer/taskExecutor/TaskQueue.ts | 15 +++
libs/horizon/src/renderer/utils/compare.ts | 15 +++
.../horizon/src/renderer/utils/throwIfTrue.ts | 15 +++
libs/horizon/src/renderer/utils/vNodePath.ts | 15 +++
libs/horizon/src/renderer/vnode/VNode.ts | 15 +++
.../src/renderer/vnode/VNodeCreator.ts | 15 +++
libs/horizon/src/renderer/vnode/VNodeFlags.ts | 15 +++
.../src/renderer/vnode/VNodeShouldUpdate.ts | 15 +++
libs/horizon/src/renderer/vnode/VNodeTags.ts | 15 +++
libs/horizon/src/renderer/vnode/VNodeUtils.ts | 15 +++
.../ComponentTest/ComponentError.test.js | 19 ++-
.../__tests__/ComponentTest/Context.test.js | 15 +++
.../ComponentTest/DiffAlgorithm.test.js | 13 +-
.../ComponentTest/ForwardRef.test.js | 15 +++
.../ComponentTest/FragmentComponent.test.js | 17 ++-
.../ComponentTest/FunctionComponent.test.js | 17 ++-
.../HookTest/UseCallback.test.js | 15 +++
.../ComponentTest/HookTest/UseContext.test.js | 15 +++
.../ComponentTest/HookTest/UseEffect.test.js | 15 +++
.../HookTest/UseImperativeHandle.test.js | 15 +++
.../HookTest/UseLayoutEffect.test.js | 15 +++
.../ComponentTest/HookTest/UseMemo.test.js | 15 +++
.../ComponentTest/HookTest/UseReducer.test.js | 15 +++
.../ComponentTest/HookTest/UseRef.test.js | 15 +++
.../ComponentTest/HookTest/UseState.test.js | 15 +++
.../ComponentTest/LazyComponent.test.js | 15 +++
.../__tests__/ComponentTest/LifeCycle.test.js | 15 +++
scripts/__tests__/ComponentTest/Memo.test.js | 13 +-
.../ComponentTest/PortalComponent.test.js | 15 +++
.../ComponentTest/SuspenseComponent.test.js | 15 +++
scripts/__tests__/DomTest/Attribute.test.js | 15 +++
scripts/__tests__/DomTest/DomInput.test.js | 15 +++
scripts/__tests__/DomTest/DomSelect.test.js | 15 +++
scripts/__tests__/DomTest/DomTextarea.test.js | 15 +++
scripts/__tests__/EventTest/EventMain.test.js | 15 +++
.../__tests__/EventTest/FocusEvent.test.js | 15 +++
.../__tests__/EventTest/KeyboardEvent.test.js | 15 +++
.../__tests__/EventTest/MouseEvent.test.js | 15 +++
.../__tests__/EventTest/WheelEvent.test.js | 17 ++-
scripts/__tests__/HorizonIsTest/index.test.js | 13 +-
.../StateManager/StateArray.test.tsx | 15 +++
.../StateManager/StateMap.test.tsx | 15 +++
.../StateManager/StateMixType.test.tsx | 15 +++
.../StateManager/StateSet.test.tsx | 15 +++
.../StateManager/StateWeakMap.test.tsx | 15 +++
.../StateManager/StateWeakSet.test.tsx | 15 +++
.../StoreFunctionality/async.test.tsx | 15 +++
.../StoreFunctionality/basicAccess.test.tsx | 25 +++-
.../StoreFunctionality/cloneDeep.test.js | 15 +++
.../StoreFunctionality/dollarAccess.test.tsx | 15 +++
.../StoreFunctionality/otherCases.test.tsx | 15 +++
.../HorizonXText/StoreFunctionality/reset.js | 15 +++
.../HorizonXText/StoreFunctionality/store.ts | 15 +++
.../StoreFunctionality/watch.test.tsx | 15 +++
.../adapters/ReduxAdapter.test.tsx | 15 +++
.../adapters/ReduxAdapterThunk.test.tsx | 15 +++
.../adapters/ReduxReactAdapter.test.tsx | 15 +++
.../class/ClassException.test.tsx | 15 +++
.../class/ClassStateArray.test.tsx | 15 +++
.../HorizonXText/class/ClassStateMap.test.tsx | 15 +++
.../clear/ClassVNodeClear.test.tsx | 15 +++
.../clear/FunctionVNodeClear.test.tsx | 15 +++
.../edgeCases/multipleStores.test.tsx | 15 +++
.../HorizonXText/edgeCases/proxy.test.tsx | 15 +++
scripts/__tests__/jest/commonComponents.js | 15 +++
scripts/__tests__/jest/jestEnvironment.js | 15 +++
scripts/__tests__/jest/jestSetting.js | 15 +++
scripts/__tests__/jest/logUtils.js | 15 +++
scripts/__tests__/jest/testUtils.js | 15 +++
.../__tests__/utils/dispatchChangeEvent.js | 13 +-
scripts/gen3rdLib.js | 15 +++
scripts/rollup/copy-plugin.js | 15 +++
scripts/rollup/rollup.config.js | 15 +++
182 files changed, 2829 insertions(+), 21 deletions(-)
create mode 100644 License
diff --git a/.cloudbuild/release.js b/.cloudbuild/release.js
index be212829..4e9edfb0 100644
--- a/.cloudbuild/release.js
+++ b/.cloudbuild/release.js
@@ -1,5 +1,16 @@
/*
- * Copyright (c) Huawei Technologies Co., Ltd. 2022-2022. All rights reserved.
+ * Copyright (c) 2020 Huawei Technologies Co.,Ltd.
+ *
+ * openGauss is licensed under Mulan PSL v2.
+ * You can use this software according to the terms and conditions of the Mulan PSL v2.
+ * You may obtain a copy of Mulan PSL v2 at:
+ *
+ * http://license.coscl.org.cn/MulanPSL2
+ *
+ * THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND,
+ * EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT,
+ * MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE.
+ * See the Mulan PSL v2 for more details.
*/
const fs = require('fs');
diff --git a/.eslintrc.js b/.eslintrc.js
index 43a84822..860de8a4 100644
--- a/.eslintrc.js
+++ b/.eslintrc.js
@@ -1,3 +1,18 @@
+/*
+ * Copyright (c) 2020 Huawei Technologies Co.,Ltd.
+ *
+ * openGauss is licensed under Mulan PSL v2.
+ * You can use this software according to the terms and conditions of the Mulan PSL v2.
+ * You may obtain a copy of Mulan PSL v2 at:
+ *
+ * http://license.coscl.org.cn/MulanPSL2
+ *
+ * THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND,
+ * EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT,
+ * MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE.
+ * See the Mulan PSL v2 for more details.
+ */
+
module.exports = {
extends: [
'eslint:recommended',
diff --git a/.prettierrc.js b/.prettierrc.js
index 18746c04..9835a18f 100644
--- a/.prettierrc.js
+++ b/.prettierrc.js
@@ -1,3 +1,18 @@
+/*
+ * Copyright (c) 2020 Huawei Technologies Co.,Ltd.
+ *
+ * openGauss is licensed under Mulan PSL v2.
+ * You can use this software according to the terms and conditions of the Mulan PSL v2.
+ * You may obtain a copy of Mulan PSL v2 at:
+ *
+ * http://license.coscl.org.cn/MulanPSL2
+ *
+ * THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND,
+ * EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT,
+ * MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE.
+ * See the Mulan PSL v2 for more details.
+ */
+
'use strict';
module.exports = {
diff --git a/License b/License
new file mode 100644
index 00000000..0d8d3801
--- /dev/null
+++ b/License
@@ -0,0 +1,125 @@
+木兰宽松许可证, 第2版
+木兰宽松许可证, 第2版
+
+2020年1月 http://license.coscl.org.cn/MulanPSL2
+
+您对“软件”的复制、使用、修改及分发受木兰宽松许可证,第2版(“本许可证”)的如下条款的约束:
+
+0. 定义
+
+“软件” 是指由“贡献”构成的许可在“本许可证”下的程序和相关文档的集合。
+
+“贡献” 是指由任一“贡献者”许可在“本许可证”下的受版权法保护的作品。
+
+“贡献者” 是指将受版权法保护的作品许可在“本许可证”下的自然人或“法人实体”。
+
+“法人实体” 是指提交贡献的机构及其“关联实体”。
+
+“关联实体” 是指,对“本许可证”下的行为方而言,控制、受控制或与其共同受控制的机构,此处的控制是指有受控方或共同受控方至少50%直接或间接的投票权、资金或其他有价证券。
+
+1. 授予版权许可
+
+每个“贡献者”根据“本许可证”授予您永久性的、全球性的、免费的、非独占的、不可撤销的版权许可,您可以复制、使用、修改、分发其“贡献”,不论修改与否。
+
+2. 授予专利许可
+
+每个“贡献者”根据“本许可证”授予您永久性的、全球性的、免费的、非独占的、不可撤销的(根据本条规定撤销除外)专利许可,供您制造、委托制造、使用、许诺销售、销售、进口其“贡献”或以其他方式转移其“贡献”。前述专利许可仅限于“贡献者”现在或将来拥有或控制的其“贡献”本身或其“贡献”与许可“贡献”时的“软件”结合而将必然会侵犯的专利权利要求,不包括对“贡献”的修改或包含“贡献”的其他结合。如果您或您的“关联实体”直接或间接地,就“软件”或其中的“贡献”对任何人发起专利侵权诉讼(包括反诉或交叉诉讼)或其他专利维权行动,指控其侵犯专利权,则“本许可证”授予您对“软件”的专利许可自您提起诉讼或发起维权行动之日终止。
+
+3. 无商标许可
+
+“本许可证”不提供对“贡献者”的商品名称、商标、服务标志或产品名称的商标许可,但您为满足第4条规定的声明义务而必须使用除外。
+
+4. 分发限制
+
+您可以在任何媒介中将“软件”以源程序形式或可执行形式重新分发,不论修改与否,但您必须向接收者提供“本许可证”的副本,并保留“软件”中的版权、商标、专利及免责声明。
+
+5. 免责声明与责任限制
+
+“软件”及其中的“贡献”在提供时不带任何明示或默示的担保。在任何情况下,“贡献者”或版权所有者不对任何人因使用“软件”或其中的“贡献”而引发的任何直接或间接损失承担责任,不论因何种原因导致或者基于何种法律理论,即使其曾被建议有此种损失的可能性。
+
+6. 语言
+
+“本许可证”以中英文双语表述,中英文版本具有同等法律效力。如果中英文版本存在任何冲突不一致,以中文版为准。
+
+条款结束
+
+如何将木兰宽松许可证,第2版,应用到您的软件
+
+如果您希望将木兰宽松许可证,第2版,应用到您的新软件,为了方便接收者查阅,建议您完成如下三步:
+
+1, 请您补充如下声明中的空白,包括软件名、软件的首次发表年份以及您作为版权人的名字;
+
+2, 请您在软件包的一级目录下创建以“LICENSE”为名的文件,将整个许可证文本放入该文件中;
+
+3, 请将如下声明文本放入每个源文件的头部注释中。
+
+Copyright (c) [Year] [name of copyright holder]
+[Software Name] is licensed under Mulan PSL v2.
+You can use this software according to the terms and conditions of the Mulan PSL v2.
+You may obtain a copy of Mulan PSL v2 at:
+ http://license.coscl.org.cn/MulanPSL2
+THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND,
+EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT,
+MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE.
+See the Mulan PSL v2 for more details.
+Mulan Permissive Software License,Version 2
+Mulan Permissive Software License,Version 2 (Mulan PSL v2)
+
+January 2020 http://license.coscl.org.cn/MulanPSL2
+
+Your reproduction, use, modification and distribution of the Software shall be subject to Mulan PSL v2 (this License) with the following terms and conditions:
+
+0. Definition
+
+Software means the program and related documents which are licensed under this License and comprise all Contribution(s).
+
+Contribution means the copyrightable work licensed by a particular Contributor under this License.
+
+Contributor means the Individual or Legal Entity who licenses its copyrightable work under this License.
+
+Legal Entity means the entity making a Contribution and all its Affiliates.
+
+Affiliates means entities that control, are controlled by, or are under common control with the acting entity under this License, ‘control’ means direct or indirect ownership of at least fifty percent (50%) of the voting power, capital or other securities of controlled or commonly controlled entity.
+
+1. Grant of Copyright License
+
+Subject to the terms and conditions of this License, each Contributor hereby grants to you a perpetual, worldwide, royalty-free, non-exclusive, irrevocable copyright license to reproduce, use, modify, or distribute its Contribution, with modification or not.
+
+2. Grant of Patent License
+
+Subject to the terms and conditions of this License, each Contributor hereby grants to you a perpetual, worldwide, royalty-free, non-exclusive, irrevocable (except for revocation under this Section) patent license to make, have made, use, offer for sale, sell, import or otherwise transfer its Contribution, where such patent license is only limited to the patent claims owned or controlled by such Contributor now or in future which will be necessarily infringed by its Contribution alone, or by combination of the Contribution with the Software to which the Contribution was contributed. The patent license shall not apply to any modification of the Contribution, and any other combination which includes the Contribution. If you or your Affiliates directly or indirectly institute patent litigation (including a cross claim or counterclaim in a litigation) or other patent enforcement activities against any individual or entity by alleging that the Software or any Contribution in it infringes patents, then any patent license granted to you under this License for the Software shall terminate as of the date such litigation or activity is filed or taken.
+
+3. No Trademark License
+
+No trademark license is granted to use the trade names, trademarks, service marks, or product names of Contributor, except as required to fulfill notice requirements in section 4.
+
+4. Distribution Restriction
+
+You may distribute the Software in any medium with or without modification, whether in source or executable forms, provided that you provide recipients with a copy of this License and retain copyright, patent, trademark and disclaimer statements in the Software.
+
+5. Disclaimer of Warranty and Limitation of Liability
+
+THE SOFTWARE AND CONTRIBUTION IN IT ARE PROVIDED WITHOUT WARRANTIES OF ANY KIND, EITHER EXPRESS OR IMPLIED. IN NO EVENT SHALL ANY CONTRIBUTOR OR COPYRIGHT HOLDER BE LIABLE TO YOU FOR ANY DAMAGES, INCLUDING, BUT NOT LIMITED TO ANY DIRECT, OR INDIRECT, SPECIAL OR CONSEQUENTIAL DAMAGES ARISING FROM YOUR USE OR INABILITY TO USE THE SOFTWARE OR THE CONTRIBUTION IN IT, NO MATTER HOW IT’S CAUSED OR BASED ON WHICH LEGAL THEORY, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGES.
+
+6. Language
+
+THIS LICENSE IS WRITTEN IN BOTH CHINESE AND ENGLISH, AND THE CHINESE VERSION AND ENGLISH VERSION SHALL HAVE THE SAME LEGAL EFFECT. IN THE CASE OF DIVERGENCE BETWEEN THE CHINESE AND ENGLISH VERSIONS, THE CHINESE VERSION SHALL PREVAIL.
+
+END OF THE TERMS AND CONDITIONS
+
+How to Apply the Mulan Permissive Software License,Version 2 (Mulan PSL v2) to Your Software
+
+To apply the Mulan PSL v2 to your work, for easy identification by recipients, you are suggested to complete following three steps:
+
+Fill in the blanks in following statement, including insert your software name, the year of the first publication of your software, and your name identified as the copyright owner;
+Create a file named "LICENSE" which contains the whole context of this License in the first directory of your software package;
+Attach the statement to the appropriate annotated syntax at the beginning of each source file.
+Copyright (c) [Year] [name of copyright holder]
+[Software Name] is licensed under Mulan PSL v2.
+You can use this software according to the terms and conditions of the Mulan PSL v2.
+You may obtain a copy of Mulan PSL v2 at:
+ http://license.coscl.org.cn/MulanPSL2
+THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND,
+EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT,
+MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE.
+See the Mulan PSL v2 for more details.
diff --git a/babel.config.js b/babel.config.js
index dd703552..46b2d085 100644
--- a/babel.config.js
+++ b/babel.config.js
@@ -1,3 +1,18 @@
+/*
+ * Copyright (c) 2020 Huawei Technologies Co.,Ltd.
+ *
+ * openGauss is licensed under Mulan PSL v2.
+ * You can use this software according to the terms and conditions of the Mulan PSL v2.
+ * You may obtain a copy of Mulan PSL v2 at:
+ *
+ * http://license.coscl.org.cn/MulanPSL2
+ *
+ * THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND,
+ * EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT,
+ * MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE.
+ * See the Mulan PSL v2 for more details.
+ */
+
module.exports = {
presets: ['@babel/preset-typescript', ['@babel/preset-env', { targets: { node: 'current' } }]],
plugins: [
diff --git a/jest.config.js b/jest.config.js
index c0193a04..ddff3e15 100644
--- a/jest.config.js
+++ b/jest.config.js
@@ -1,3 +1,18 @@
+/*
+ * Copyright (c) 2020 Huawei Technologies Co.,Ltd.
+ *
+ * openGauss is licensed under Mulan PSL v2.
+ * You can use this software according to the terms and conditions of the Mulan PSL v2.
+ * You may obtain a copy of Mulan PSL v2 at:
+ *
+ * http://license.coscl.org.cn/MulanPSL2
+ *
+ * THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND,
+ * EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT,
+ * MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE.
+ * See the Mulan PSL v2 for more details.
+ */
+
module.exports = {
coverageDirectory: 'coverage',
resetModules: true,
diff --git a/libs/horizon/global.d.ts b/libs/horizon/global.d.ts
index a3777f70..34c32508 100644
--- a/libs/horizon/global.d.ts
+++ b/libs/horizon/global.d.ts
@@ -1,3 +1,18 @@
+/*
+ * Copyright (c) 2020 Huawei Technologies Co.,Ltd.
+ *
+ * openGauss is licensed under Mulan PSL v2.
+ * You can use this software according to the terms and conditions of the Mulan PSL v2.
+ * You may obtain a copy of Mulan PSL v2 at:
+ *
+ * http://license.coscl.org.cn/MulanPSL2
+ *
+ * THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND,
+ * EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT,
+ * MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE.
+ * See the Mulan PSL v2 for more details.
+ */
+
/*
区分是否开发者模式
*/
diff --git a/libs/horizon/index.ts b/libs/horizon/index.ts
index eae3c451..ebd80121 100644
--- a/libs/horizon/index.ts
+++ b/libs/horizon/index.ts
@@ -1,3 +1,18 @@
+/*
+ * Copyright (c) 2020 Huawei Technologies Co.,Ltd.
+ *
+ * openGauss is licensed under Mulan PSL v2.
+ * You can use this software according to the terms and conditions of the Mulan PSL v2.
+ * You may obtain a copy of Mulan PSL v2 at:
+ *
+ * http://license.coscl.org.cn/MulanPSL2
+ *
+ * THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND,
+ * EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT,
+ * MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE.
+ * See the Mulan PSL v2 for more details.
+ */
+
import {
TYPE_FRAGMENT as Fragment,
TYPE_PROFILER as Profiler,
diff --git a/libs/horizon/npm/index.js b/libs/horizon/npm/index.js
index 5e307ea8..c2cf8335 100644
--- a/libs/horizon/npm/index.js
+++ b/libs/horizon/npm/index.js
@@ -1,3 +1,18 @@
+/*
+ * Copyright (c) 2020 Huawei Technologies Co.,Ltd.
+ *
+ * openGauss is licensed under Mulan PSL v2.
+ * You can use this software according to the terms and conditions of the Mulan PSL v2.
+ * You may obtain a copy of Mulan PSL v2 at:
+ *
+ * http://license.coscl.org.cn/MulanPSL2
+ *
+ * THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND,
+ * EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT,
+ * MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE.
+ * See the Mulan PSL v2 for more details.
+ */
+
'use strict';
if (process.env.NODE_ENV === 'production') {
diff --git a/libs/horizon/src/dom/DOMExternal.ts b/libs/horizon/src/dom/DOMExternal.ts
index 0baa43c2..556f5952 100644
--- a/libs/horizon/src/dom/DOMExternal.ts
+++ b/libs/horizon/src/dom/DOMExternal.ts
@@ -1,3 +1,18 @@
+/*
+ * Copyright (c) 2020 Huawei Technologies Co.,Ltd.
+ *
+ * openGauss is licensed under Mulan PSL v2.
+ * You can use this software according to the terms and conditions of the Mulan PSL v2.
+ * You may obtain a copy of Mulan PSL v2 at:
+ *
+ * http://license.coscl.org.cn/MulanPSL2
+ *
+ * THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND,
+ * EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT,
+ * MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE.
+ * See the Mulan PSL v2 for more details.
+ */
+
import { asyncUpdates, getFirstCustomDom, syncUpdates, startUpdate, createTreeRootVNode } from '../renderer/Renderer';
import { createPortal } from '../renderer/components/CreatePortal';
import type { Container } from './DOMOperator';
diff --git a/libs/horizon/src/dom/DOMInternalKeys.ts b/libs/horizon/src/dom/DOMInternalKeys.ts
index f389a0cf..056793ca 100644
--- a/libs/horizon/src/dom/DOMInternalKeys.ts
+++ b/libs/horizon/src/dom/DOMInternalKeys.ts
@@ -1,3 +1,18 @@
+/*
+ * Copyright (c) 2020 Huawei Technologies Co.,Ltd.
+ *
+ * openGauss is licensed under Mulan PSL v2.
+ * You can use this software according to the terms and conditions of the Mulan PSL v2.
+ * You may obtain a copy of Mulan PSL v2 at:
+ *
+ * http://license.coscl.org.cn/MulanPSL2
+ *
+ * THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND,
+ * EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT,
+ * MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE.
+ * See the Mulan PSL v2 for more details.
+ */
+
/**
* 文件整体功能:给dom节点赋 VNode 的结构体和事件初始化标记
*/
diff --git a/libs/horizon/src/dom/DOMOperator.ts b/libs/horizon/src/dom/DOMOperator.ts
index dfa668de..8e944175 100644
--- a/libs/horizon/src/dom/DOMOperator.ts
+++ b/libs/horizon/src/dom/DOMOperator.ts
@@ -1,3 +1,18 @@
+/*
+ * Copyright (c) 2020 Huawei Technologies Co.,Ltd.
+ *
+ * openGauss is licensed under Mulan PSL v2.
+ * You can use this software according to the terms and conditions of the Mulan PSL v2.
+ * You may obtain a copy of Mulan PSL v2 at:
+ *
+ * http://license.coscl.org.cn/MulanPSL2
+ *
+ * THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND,
+ * EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT,
+ * MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE.
+ * See the Mulan PSL v2 for more details.
+ */
+
import {
saveVNode,
updateVNodeProps,
diff --git a/libs/horizon/src/dom/DOMPropertiesHandler/DOMPropertiesHandler.ts b/libs/horizon/src/dom/DOMPropertiesHandler/DOMPropertiesHandler.ts
index 0d9dc259..d8e64743 100644
--- a/libs/horizon/src/dom/DOMPropertiesHandler/DOMPropertiesHandler.ts
+++ b/libs/horizon/src/dom/DOMPropertiesHandler/DOMPropertiesHandler.ts
@@ -1,3 +1,18 @@
+/*
+ * Copyright (c) 2020 Huawei Technologies Co.,Ltd.
+ *
+ * openGauss is licensed under Mulan PSL v2.
+ * You can use this software according to the terms and conditions of the Mulan PSL v2.
+ * You may obtain a copy of Mulan PSL v2 at:
+ *
+ * http://license.coscl.org.cn/MulanPSL2
+ *
+ * THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND,
+ * EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT,
+ * MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE.
+ * See the Mulan PSL v2 for more details.
+ */
+
import { allDelegatedHorizonEvents } from '../../event/EventHub';
import { updateCommonProp } from './UpdateCommonProp';
import { setStyles } from './StyleHandler';
diff --git a/libs/horizon/src/dom/DOMPropertiesHandler/StyleHandler.ts b/libs/horizon/src/dom/DOMPropertiesHandler/StyleHandler.ts
index b93e1581..fea7e9d2 100644
--- a/libs/horizon/src/dom/DOMPropertiesHandler/StyleHandler.ts
+++ b/libs/horizon/src/dom/DOMPropertiesHandler/StyleHandler.ts
@@ -1,3 +1,18 @@
+/*
+ * Copyright (c) 2020 Huawei Technologies Co.,Ltd.
+ *
+ * openGauss is licensed under Mulan PSL v2.
+ * You can use this software according to the terms and conditions of the Mulan PSL v2.
+ * You may obtain a copy of Mulan PSL v2 at:
+ *
+ * http://license.coscl.org.cn/MulanPSL2
+ *
+ * THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND,
+ * EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT,
+ * MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE.
+ * See the Mulan PSL v2 for more details.
+ */
+
function isNeedUnitCSS(styleName: string) {
return !(noUnitCSS.includes(styleName)
|| styleName.startsWith('borderImage')
diff --git a/libs/horizon/src/dom/DOMPropertiesHandler/UpdateCommonProp.ts b/libs/horizon/src/dom/DOMPropertiesHandler/UpdateCommonProp.ts
index 468408ac..7800addf 100644
--- a/libs/horizon/src/dom/DOMPropertiesHandler/UpdateCommonProp.ts
+++ b/libs/horizon/src/dom/DOMPropertiesHandler/UpdateCommonProp.ts
@@ -1,3 +1,18 @@
+/*
+ * Copyright (c) 2020 Huawei Technologies Co.,Ltd.
+ *
+ * openGauss is licensed under Mulan PSL v2.
+ * You can use this software according to the terms and conditions of the Mulan PSL v2.
+ * You may obtain a copy of Mulan PSL v2 at:
+ *
+ * http://license.coscl.org.cn/MulanPSL2
+ *
+ * THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND,
+ * EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT,
+ * MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE.
+ * See the Mulan PSL v2 for more details.
+ */
+
import {
getPropDetails,
PROPERTY_TYPE,
diff --git a/libs/horizon/src/dom/SelectionRangeHandler.ts b/libs/horizon/src/dom/SelectionRangeHandler.ts
index 284faa41..8ed611f8 100644
--- a/libs/horizon/src/dom/SelectionRangeHandler.ts
+++ b/libs/horizon/src/dom/SelectionRangeHandler.ts
@@ -1,3 +1,18 @@
+/*
+ * Copyright (c) 2020 Huawei Technologies Co.,Ltd.
+ *
+ * openGauss is licensed under Mulan PSL v2.
+ * You can use this software according to the terms and conditions of the Mulan PSL v2.
+ * You may obtain a copy of Mulan PSL v2 at:
+ *
+ * http://license.coscl.org.cn/MulanPSL2
+ *
+ * THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND,
+ * EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT,
+ * MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE.
+ * See the Mulan PSL v2 for more details.
+ */
+
/**
* 处理文本框、输入框中框选范围内的数据
*/
diff --git a/libs/horizon/src/dom/utils/Common.ts b/libs/horizon/src/dom/utils/Common.ts
index 3ed6a462..1926f185 100644
--- a/libs/horizon/src/dom/utils/Common.ts
+++ b/libs/horizon/src/dom/utils/Common.ts
@@ -1,3 +1,18 @@
+/*
+ * Copyright (c) 2020 Huawei Technologies Co.,Ltd.
+ *
+ * openGauss is licensed under Mulan PSL v2.
+ * You can use this software according to the terms and conditions of the Mulan PSL v2.
+ * You may obtain a copy of Mulan PSL v2 at:
+ *
+ * http://license.coscl.org.cn/MulanPSL2
+ *
+ * THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND,
+ * EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT,
+ * MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE.
+ * See the Mulan PSL v2 for more details.
+ */
+
import {HorizonDom} from './Interface';
import {Props} from '../DOMOperator';
diff --git a/libs/horizon/src/dom/utils/DomCreator.ts b/libs/horizon/src/dom/utils/DomCreator.ts
index 360aea81..31f30544 100644
--- a/libs/horizon/src/dom/utils/DomCreator.ts
+++ b/libs/horizon/src/dom/utils/DomCreator.ts
@@ -1,4 +1,19 @@
+/*
+ * Copyright (c) 2020 Huawei Technologies Co.,Ltd.
+ *
+ * openGauss is licensed under Mulan PSL v2.
+ * You can use this software according to the terms and conditions of the Mulan PSL v2.
+ * You may obtain a copy of Mulan PSL v2 at:
+ *
+ * http://license.coscl.org.cn/MulanPSL2
+ *
+ * THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND,
+ * EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT,
+ * MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE.
+ * See the Mulan PSL v2 for more details.
+ */
+
export const NSS = {
html: 'http://www.w3.org/1999/xhtml',
math: 'http://www.w3.org/1998/Math/MathML',
diff --git a/libs/horizon/src/dom/utils/Interface.ts b/libs/horizon/src/dom/utils/Interface.ts
index b6a901e3..dd8e2c52 100644
--- a/libs/horizon/src/dom/utils/Interface.ts
+++ b/libs/horizon/src/dom/utils/Interface.ts
@@ -1,3 +1,18 @@
+/*
+ * Copyright (c) 2020 Huawei Technologies Co.,Ltd.
+ *
+ * openGauss is licensed under Mulan PSL v2.
+ * You can use this software according to the terms and conditions of the Mulan PSL v2.
+ * You may obtain a copy of Mulan PSL v2 at:
+ *
+ * http://license.coscl.org.cn/MulanPSL2
+ *
+ * THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND,
+ * EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT,
+ * MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE.
+ * See the Mulan PSL v2 for more details.
+ */
+
export interface Props {
[propName: string]: any;
}
diff --git a/libs/horizon/src/dom/validators/PropertiesData.ts b/libs/horizon/src/dom/validators/PropertiesData.ts
index 70645aae..f2db0dd8 100644
--- a/libs/horizon/src/dom/validators/PropertiesData.ts
+++ b/libs/horizon/src/dom/validators/PropertiesData.ts
@@ -1,3 +1,18 @@
+/*
+ * Copyright (c) 2020 Huawei Technologies Co.,Ltd.
+ *
+ * openGauss is licensed under Mulan PSL v2.
+ * You can use this software according to the terms and conditions of the Mulan PSL v2.
+ * You may obtain a copy of Mulan PSL v2 at:
+ *
+ * http://license.coscl.org.cn/MulanPSL2
+ *
+ * THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND,
+ * EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT,
+ * MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE.
+ * See the Mulan PSL v2 for more details.
+ */
+
/* eslint-disable no-sparse-arrays */
// 属性值的数据类型
diff --git a/libs/horizon/src/dom/validators/ValidateProps.ts b/libs/horizon/src/dom/validators/ValidateProps.ts
index 9dcf4a23..48de7df2 100644
--- a/libs/horizon/src/dom/validators/ValidateProps.ts
+++ b/libs/horizon/src/dom/validators/ValidateProps.ts
@@ -1,3 +1,18 @@
+/*
+ * Copyright (c) 2020 Huawei Technologies Co.,Ltd.
+ *
+ * openGauss is licensed under Mulan PSL v2.
+ * You can use this software according to the terms and conditions of the Mulan PSL v2.
+ * You may obtain a copy of Mulan PSL v2 at:
+ *
+ * http://license.coscl.org.cn/MulanPSL2
+ *
+ * THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND,
+ * EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT,
+ * MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE.
+ * See the Mulan PSL v2 for more details.
+ */
+
import {
getPropDetails, PROPERTY_TYPE, PropDetails,
} from './PropertiesData';
diff --git a/libs/horizon/src/dom/valueHandler/InputValueHandler.ts b/libs/horizon/src/dom/valueHandler/InputValueHandler.ts
index d9e9f8ef..ee374e43 100644
--- a/libs/horizon/src/dom/valueHandler/InputValueHandler.ts
+++ b/libs/horizon/src/dom/valueHandler/InputValueHandler.ts
@@ -1,3 +1,18 @@
+/*
+ * Copyright (c) 2020 Huawei Technologies Co.,Ltd.
+ *
+ * openGauss is licensed under Mulan PSL v2.
+ * You can use this software according to the terms and conditions of the Mulan PSL v2.
+ * You may obtain a copy of Mulan PSL v2 at:
+ *
+ * http://license.coscl.org.cn/MulanPSL2
+ *
+ * THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND,
+ * EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT,
+ * MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE.
+ * See the Mulan PSL v2 for more details.
+ */
+
import { updateCommonProp } from '../DOMPropertiesHandler/UpdateCommonProp';
import { Props } from '../utils/Interface';
diff --git a/libs/horizon/src/dom/valueHandler/OptionValueHandler.ts b/libs/horizon/src/dom/valueHandler/OptionValueHandler.ts
index 3f867293..89f33bc7 100644
--- a/libs/horizon/src/dom/valueHandler/OptionValueHandler.ts
+++ b/libs/horizon/src/dom/valueHandler/OptionValueHandler.ts
@@ -1,3 +1,18 @@
+/*
+ * Copyright (c) 2020 Huawei Technologies Co.,Ltd.
+ *
+ * openGauss is licensed under Mulan PSL v2.
+ * You can use this software according to the terms and conditions of the Mulan PSL v2.
+ * You may obtain a copy of Mulan PSL v2 at:
+ *
+ * http://license.coscl.org.cn/MulanPSL2
+ *
+ * THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND,
+ * EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT,
+ * MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE.
+ * See the Mulan PSL v2 for more details.
+ */
+
import { Children } from '../../external/ChildrenUtil';
import { Props } from '../utils/Interface';
diff --git a/libs/horizon/src/dom/valueHandler/SelectValueHandler.ts b/libs/horizon/src/dom/valueHandler/SelectValueHandler.ts
index c651432b..ed78b5c9 100644
--- a/libs/horizon/src/dom/valueHandler/SelectValueHandler.ts
+++ b/libs/horizon/src/dom/valueHandler/SelectValueHandler.ts
@@ -1,3 +1,18 @@
+/*
+ * Copyright (c) 2020 Huawei Technologies Co.,Ltd.
+ *
+ * openGauss is licensed under Mulan PSL v2.
+ * You can use this software according to the terms and conditions of the Mulan PSL v2.
+ * You may obtain a copy of Mulan PSL v2 at:
+ *
+ * http://license.coscl.org.cn/MulanPSL2
+ *
+ * THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND,
+ * EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT,
+ * MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE.
+ * See the Mulan PSL v2 for more details.
+ */
+
import {HorizonSelect, Props} from '../utils/Interface';
function updateMultipleValue(options, newValues) {
diff --git a/libs/horizon/src/dom/valueHandler/TextareaValueHandler.ts b/libs/horizon/src/dom/valueHandler/TextareaValueHandler.ts
index dd87c6ae..595fd663 100644
--- a/libs/horizon/src/dom/valueHandler/TextareaValueHandler.ts
+++ b/libs/horizon/src/dom/valueHandler/TextareaValueHandler.ts
@@ -1,3 +1,18 @@
+/*
+ * Copyright (c) 2020 Huawei Technologies Co.,Ltd.
+ *
+ * openGauss is licensed under Mulan PSL v2.
+ * You can use this software according to the terms and conditions of the Mulan PSL v2.
+ * You may obtain a copy of Mulan PSL v2 at:
+ *
+ * http://license.coscl.org.cn/MulanPSL2
+ *
+ * THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND,
+ * EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT,
+ * MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE.
+ * See the Mulan PSL v2 for more details.
+ */
+
import {Props} from '../utils/Interface';
diff --git a/libs/horizon/src/dom/valueHandler/ValueChangeHandler.ts b/libs/horizon/src/dom/valueHandler/ValueChangeHandler.ts
index 134e980e..d95c2be5 100644
--- a/libs/horizon/src/dom/valueHandler/ValueChangeHandler.ts
+++ b/libs/horizon/src/dom/valueHandler/ValueChangeHandler.ts
@@ -1,3 +1,18 @@
+/*
+ * Copyright (c) 2020 Huawei Technologies Co.,Ltd.
+ *
+ * openGauss is licensed under Mulan PSL v2.
+ * You can use this software according to the terms and conditions of the Mulan PSL v2.
+ * You may obtain a copy of Mulan PSL v2 at:
+ *
+ * http://license.coscl.org.cn/MulanPSL2
+ *
+ * THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND,
+ * EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT,
+ * MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE.
+ * See the Mulan PSL v2 for more details.
+ */
+
/**
* Horizon的输入框和文本框的change事件在原生的change事件上做了一层处理
* 只有值发生变化时才会触发change事件。
diff --git a/libs/horizon/src/dom/valueHandler/index.ts b/libs/horizon/src/dom/valueHandler/index.ts
index 178727d5..828190e0 100644
--- a/libs/horizon/src/dom/valueHandler/index.ts
+++ b/libs/horizon/src/dom/valueHandler/index.ts
@@ -1,3 +1,18 @@
+/*
+ * Copyright (c) 2020 Huawei Technologies Co.,Ltd.
+ *
+ * openGauss is licensed under Mulan PSL v2.
+ * You can use this software according to the terms and conditions of the Mulan PSL v2.
+ * You may obtain a copy of Mulan PSL v2 at:
+ *
+ * http://license.coscl.org.cn/MulanPSL2
+ *
+ * THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND,
+ * EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT,
+ * MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE.
+ * See the Mulan PSL v2 for more details.
+ */
+
/**
*