1/* 2 * Copyright (c) 2021-2024 Huawei Device Co., Ltd. 3 * Licensed under the Apache License, Version 2.0 (the "License"); 4 * you may not use this file except in compliance with the License. 5 * You may obtain a copy of the License at 6 * 7 * http://www.apache.org/licenses/LICENSE-2.0 8 * 9 * Unless required by applicable law or agreed to in writing, software 10 * distributed under the License is distributed on an "AS IS" BASIS, 11 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12 * See the License for the specific language governing permissions and 13 * limitations under the License. 14 */ 15 16import path from 'path'; 17 18export const NATIVE_MODULE: Set<string> = new Set( 19 ['system.app', 'ohos.app', 'system.router', 'system.curves', 'ohos.curves', 'system.matrix4', 'ohos.matrix4']); 20export const VALIDATE_MODULE: string[] = ['application', 'util', 'screen', 'mediaquery']; 21export const SYSTEM_PLUGIN: string = 'system'; 22export const OHOS_PLUGIN: string = 'ohos'; 23// 'arkui-x' represents cross platform related APIs, processed as 'ohos' 24export const ARKUI_X_PLUGIN: string = 'arkui-x'; 25 26export const COMPONENT_DECORATOR_ENTRY: string = '@Entry'; 27export const COMPONENT_DECORATOR_PREVIEW: string = '@Preview'; 28export const COMPONENT_DECORATOR_COMPONENT: string = '@Component'; 29export const COMPONENT_DECORATOR_CUSTOM_DIALOG: string = '@CustomDialog'; 30export const COMPONENT_DECORATOR_REUSEABLE: string = '@Reusable'; 31export const DECORATOR_REUSEABLE: string = 'Reusable'; 32 33export const COMPONENT_RECYCLE: string = '__Recycle__'; 34export const RECYCLE_REUSE_ID: string = 'reuseId'; 35 36export const COMPONENT_NON_DECORATOR: string = 'regular'; 37export const COMPONENT_STATE_DECORATOR: string = '@State'; 38export const COMPONENT_PROP_DECORATOR: string = '@Prop'; 39export const COMPONENT_LINK_DECORATOR: string = '@Link'; 40export const COMPONENT_STORAGE_PROP_DECORATOR: string = '@StorageProp'; 41export const COMPONENT_STORAGE_LINK_DECORATOR: string = '@StorageLink'; 42export const COMPONENT_PROVIDE_DECORATOR: string = '@Provide'; 43export const COMPONENT_CONSUME_DECORATOR: string = '@Consume'; 44export const COMPONENT_OBJECT_LINK_DECORATOR: string = '@ObjectLink'; 45export const COMPONENT_WATCH_DECORATOR: string = '@Watch'; 46export const COMPONENT_BUILDERPARAM_DECORATOR: string = '@BuilderParam'; 47export const COMPONENT_LOCAL_STORAGE_LINK_DECORATOR: string = '@LocalStorageLink'; 48export const COMPONENT_LOCAL_STORAGE_PROP_DECORATOR: string = '@LocalStorageProp'; 49export const COMPONENT_CUSTOM_DECORATOR: string = 'COMPONENT_CUSTOM_DECORATOR'; 50export const COMPONENT_REQUIRE_DECORATOR: string = '@Require'; 51 52export const COMPONENTV2_LOCAL_DECORATOR: string = '@Local'; 53export const COMPONENTV2_PARAM_DECORATOR: string = '@Param'; 54export const COMPONENTV2_ONCE_DECORATOR: string = '@Once'; 55export const COMPONENTV2_EVENT_DECORATOR: string = '@Event'; 56export const COMPONENTV2_CONSUMER_DECORATOR: string = '@Consumer'; 57export const COMPONENTV2_PROVIDER_DECORATOR: string = '@Provider'; 58 59export const CLASS_TRACK_DECORATOR: string = 'Track'; 60export const CLASS_MIN_TRACK_DECORATOR: string = 'Trace'; 61export const COMPONENT_DECORATOR_COMPONENT_V2: string = '@ComponentV2'; 62export const COMPONENT_DECORATOR_REUSABLE_V2: string = '@ReusableV2'; 63export const DECORATOR_REUSABLE_V2: string = 'ReusableV2'; 64export const REUSABLE_V2_INNER_DECORATOR: string = '__ReusableV2_Inner_Decorator__'; 65export const REUSE_ATTRIBUTE: string = 'reuse'; 66 67export const COMPONENT_DECORATORS_PARAMS: Set<string> = new Set([COMPONENT_CONSUME_DECORATOR, 68 COMPONENT_STORAGE_PROP_DECORATOR, COMPONENT_STORAGE_LINK_DECORATOR, COMPONENT_PROVIDE_DECORATOR, 69 COMPONENT_WATCH_DECORATOR]); 70export const INNER_COMPONENT_DECORATORS: Set<string> = new Set([COMPONENT_DECORATOR_ENTRY, 71 COMPONENT_DECORATOR_PREVIEW, COMPONENT_DECORATOR_COMPONENT, COMPONENT_DECORATOR_CUSTOM_DIALOG, 72 COMPONENT_DECORATOR_REUSEABLE, COMPONENT_DECORATOR_COMPONENT_V2, COMPONENT_DECORATOR_REUSABLE_V2]); 73export const INNER_COMPONENT_MEMBER_DECORATORS: Set<string> = new Set([COMPONENT_STATE_DECORATOR, 74 COMPONENT_PROP_DECORATOR, COMPONENT_LINK_DECORATOR, COMPONENT_STORAGE_PROP_DECORATOR, 75 COMPONENT_STORAGE_LINK_DECORATOR, COMPONENT_PROVIDE_DECORATOR, COMPONENT_CONSUME_DECORATOR, 76 COMPONENT_OBJECT_LINK_DECORATOR, COMPONENT_WATCH_DECORATOR, COMPONENT_BUILDERPARAM_DECORATOR, 77 COMPONENT_LOCAL_STORAGE_LINK_DECORATOR, COMPONENT_LOCAL_STORAGE_PROP_DECORATOR, 78 COMPONENT_REQUIRE_DECORATOR]); 79export const STRUCT_DECORATORS: Set<string> = new Set([...INNER_COMPONENT_DECORATORS, 80 ...INNER_COMPONENT_MEMBER_DECORATORS]); 81 82export const COMPONENT_OBSERVED_DECORATOR: string = '@Observed'; 83export const OBSERVED: string = 'Observed'; 84export const MIN_OBSERVED: string = 'ObservedV2'; 85export const SENDABLE: string = 'Sendable'; 86export const TYPE: string = 'Type'; 87export const COMPONENT_BUILDER_DECORATOR: string = '@Builder'; 88export const COMPONENT_LOCAL_BUILDER_DECORATOR: string = '@LocalBuilder'; 89export const COMPONENT_EXTEND_DECORATOR: string = '@Extend'; 90export const COMPONENT_STYLES_DECORATOR: string = '@Styles'; 91export const COMPONENT_ANIMATABLE_EXTEND_DECORATOR: string = '@AnimatableExtend'; 92export const COMPONENT_CONCURRENT_DECORATOR: string = '@Concurrent'; 93export const COMPONENT_SENDABLE_DECORATOR: string = '@Sendable'; 94export const CHECK_COMPONENT_EXTEND_DECORATOR: string = 'Extend'; 95export const STRUCT_CONTEXT_METHOD_DECORATORS: Set<string> = new Set([COMPONENT_BUILDER_DECORATOR, 96 COMPONENT_STYLES_DECORATOR, COMPONENT_LOCAL_BUILDER_DECORATOR]); 97export const CHECK_COMPONENT_ANIMATABLE_EXTEND_DECORATOR: string = 'AnimatableExtend'; 98export const EXTEND_DECORATORS: string[] = [ 99 COMPONENT_EXTEND_DECORATOR, 100 COMPONENT_ANIMATABLE_EXTEND_DECORATOR 101]; 102export const CHECK_EXTEND_DECORATORS: string[] = [ 103 CHECK_COMPONENT_EXTEND_DECORATOR, 104 CHECK_COMPONENT_ANIMATABLE_EXTEND_DECORATOR 105]; 106 107export const CREATE_ANIMATABLE_PROPERTY: string = 'createAnimatableProperty'; 108export const UPDATE_ANIMATABLE_PROPERTY: string = 'updateAnimatableProperty'; 109export const GET_AND_PUSH_FRAME_NODE: string = 'GetAndPushFrameNode'; 110export const FINISH_UPDATE_FUNC: string = 'finishUpdateFunc'; 111 112export const OBSERVED_PROPERTY_SIMPLE: string = 'ObservedPropertySimple'; 113export const OBSERVED_PROPERTY_OBJECT: string = 'ObservedPropertyObject'; 114export const SYNCHED_PROPERTY_SIMPLE_ONE_WAY: string = 'SynchedPropertySimpleOneWay'; 115export const SYNCHED_PROPERTY_SIMPLE_TWO_WAY: string = 'SynchedPropertySimpleTwoWay'; 116export const SYNCHED_PROPERTY_OBJECT_TWO_WAY: string = 'SynchedPropertyObjectTwoWay'; 117export const SYNCHED_PROPERTY_NESED_OBJECT: string = 'SynchedPropertyNesedObject'; 118export const DECORATOR_TYPE_ANY: string = 'any'; 119 120export const INITIALIZE_CONSUME_FUNCTION: string = 'initializeConsume'; 121export const ADD_PROVIDED_VAR: string = 'addProvidedVar'; 122 123export const APP_STORAGE: string = 'AppStorage'; 124export const APP_STORAGE_SET_AND_PROP: string = 'SetAndProp'; 125export const APP_STORAGE_SET_AND_LINK: string = 'SetAndLink'; 126 127export const PAGE_ENTRY_FUNCTION_NAME: string = 'loadDocument'; 128export const STORE_PREVIEW_COMPONENTS: string = 'storePreviewComponents'; 129export const PREVIEW_COMPONENT_FUNCTION_NAME: string = 'previewComponent'; 130export const GET_PREVIEW_FLAG_FUNCTION_NAME: string = 'getPreviewComponentFlag'; 131 132export const COMPONENT_DECORATOR_NAME_COMPONENT: string = 'Component'; 133export const XCOMPONENT_SINGLE_QUOTATION: string = `'component'`; 134export const XCOMPONENT_DOUBLE_QUOTATION: string = `"component"`; 135export const XCOMPONENTTYPE: string = 'XComponentType'; 136export const XCOMPONENTTYPE_CONTAINER: string = 'COMPONENT'; 137export const COMPONENT_DECORATOR_NAME_CUSTOMDIALOG: string = 'CustomDialog'; 138export const CUSTOM_DECORATOR_NAME: Set<string> = new Set([ 139 COMPONENT_DECORATOR_NAME_COMPONENT, COMPONENT_DECORATOR_NAME_CUSTOMDIALOG, 140 DECORATOR_REUSEABLE, 'Entry', 'Preview' 141]); 142 143export const EXTNAME_ETS: string = '.ets'; 144export const NODE_MODULES: string = 'node_modules'; 145export const PACKAGES: string = 'pkg_modules'; 146export const INDEX_ETS: string = 'index.ets'; 147export const INDEX_TS: string = 'index.ts'; 148export const PACKAGE_JSON: string = 'package.json'; 149export const CUSTOM_COMPONENT_DEFAULT: string = 'default'; 150export const TS_WATCH_END_MSG: string = 'TS Watch End'; 151 152export const BASE_COMPONENT_NAME: string = 'View'; 153export const STRUCT: string = 'struct'; 154export const CLASS: string = 'class'; 155export const COMPONENT_BUILD_FUNCTION: string = 'build'; 156export const COMPONENT_RENDER_FUNCTION: string = 'render'; 157export const COMPONENT_TRANSITION_FUNCTION: string = 'pageTransition'; 158export const COMPONENT_TRANSITION_NAME: string = 'PageTransition'; 159export const CUSTOM_COMPONENT: string = 'CustomComponent'; 160export const GLOBAL_THIS_REQUIRE_NATIVE_MODULE: string = 'globalThis.requireNativeModule'; 161export const GLOBAL_THIS_REQUIRE_NAPI: string = 'globalThis.requireNapi'; 162 163export const COMPONENT_BUTTON: string = 'Button'; 164export const COMPONENT_FOREACH: string = 'ForEach'; 165export const COMPONENT_LAZYFOREACH: string = 'LazyForEach'; 166export const COMPONENT_REPEAT: string = 'Repeat'; 167export const REPEAT_EACH: string = 'each'; 168export const REPEAT_TEMPLATE: string = 'template'; 169export const IS_RENDERING_IN_PROGRESS: string = 'isRenderingInProgress'; 170export const FOREACH_OBSERVED_OBJECT: string = 'ObservedObject'; 171export const FOREACH_GET_RAW_OBJECT: string = 'GetRawObject'; 172export const COMPONENT_IF: string = 'If'; 173export const COMPONENT_IF_BRANCH_ID_FUNCTION: string = 'branchId'; 174export const COMPONENT_IF_UNDEFINED: string = 'undefined'; 175export const GLOBAL_CONTEXT: string = 'Context'; 176export const ATTRIBUTE_ANIMATION: string = 'animation'; 177export const ATTRIBUTE_ANIMATETO_SET: Set<string> = new Set(['animateTo', 'animateToImmediately']); 178export const ATTRIBUTE_STATESTYLES: string = 'stateStyles'; 179export const ATTRIBUTE_ID: string = 'id'; 180export const ATTRIBUTE_ATTRIBUTE_MODIFIER: string = 'attributeModifier'; 181export const ATTRIBUTE_CONTENT_MODIFIER: string = 'contentModifier'; 182export const ATTRIBUTE_MENUITEM_CONTENT_MODIFIER: string = 'menuItemContentModifier'; 183export const TRUE: string = 'true'; 184export const FALSE: string = 'false'; 185export const NULL: string = 'null'; 186export const FOREACH_LAZYFOREACH: Set<string> = new Set([ 187 COMPONENT_FOREACH, COMPONENT_LAZYFOREACH 188]); 189 190export const COMPONENT_CONSTRUCTOR_ID: string = 'compilerAssignedUniqueChildId'; 191export const COMPONENT_CONSTRUCTOR_PARENT: string = 'parent'; 192export const COMPONENT_CONSTRUCTOR_PARAMS: string = 'params'; 193export const COMPONENT_PARAMS_FUNCTION: string = 'paramsGenerator_'; 194export const COMPONENT_PARAMS_LAMBDA_FUNCTION: string = 'paramsLambda'; 195export const COMPONENT_CONSTRUCTOR_UNDEFINED: string = 'undefined'; 196export const COMPONENT_CONSTRUCTOR_LOCALSTORAGE: string = 'localStorage'; 197export const COMPONENT_ABOUTTOREUSEINTERNAL_FUNCTION: string = 'aboutToReuseInternal'; 198export const COMPONENT_SET_AND_LINK: string = 'setAndLink'; 199export const COMPONENT_SET_AND_PROP: string = 'setAndProp'; 200 201export const BUILD_ON: string = 'on'; 202export const BUILD_OFF: string = 'off'; 203 204export const START: string = 'start'; 205export const END: string = 'end'; 206 207export const COMPONENT_CREATE_FUNCTION: string = 'create'; 208export const COMPONENT_CREATE_LABEL_FUNCTION: string = 'createWithLabel'; 209export const COMPONENT_CREATE_CHILD_FUNCTION: string = 'createWithChild'; 210export const COMPONENT_POP_FUNCTION: string = 'pop'; 211export const COMPONENT_DEBUGLINE_FUNCTION: string = 'debugLine'; 212export const COMPONENT_COMMON: string = '__Common__'; 213 214export const OBSERVE_RECYCLE_COMPONENT_CREATION: string = 'observeRecycleComponentCreation'; 215export const COMPONENT_CREATE_RECYCLE: string = 'createRecycle'; 216export const RECYCLE_NODE: string = 'recycleNode'; 217export const ABOUT_TO_REUSE: string = 'aboutToReuse'; 218export const COMPONENT_UPDATE_ELMT_ID: string = 'updateElmtId'; 219export const UPDATE_RECYCLE_ELMT_ID: string = 'updateRecycleElmtId'; 220export const OLD_ELMT_ID: string = 'oldElmtId'; 221export const NEW_ELMT_ID: string = 'newElmtId'; 222export const NAVIGATION: string = 'Navigation'; 223export const NAV_DESTINATION: string = 'NavDestination'; 224export const NAV_PATH_STACK: string = 'NavPathStack'; 225export const CREATE_ROUTER_COMPONENT_COLLECT: Set<string> = new Set([NAVIGATION, NAV_DESTINATION]); 226 227export const COMPONENT_CONSTRUCTOR_UPDATE_PARAMS: string = 'updateWithValueParams'; 228export const COMPONENT_CONSTRUCTOR_DELETE_PARAMS: string = 'aboutToBeDeleted'; 229 230export const CREATE_GET_METHOD: string = 'get'; 231export const CREATE_SET_METHOD: string = 'set'; 232export const CREATE_NEWVALUE_IDENTIFIER: string = 'newValue'; 233export const CREATE_CONSTRUCTOR_PARAMS: string = 'params'; 234export const CREATE_CONSTRUCTOR_SUBSCRIBER_MANAGER: string = 'SubscriberManager'; 235export const CREATE_CONSTRUCTOR_GET_FUNCTION: string = 'Get'; 236export const CREATE_CONSTRUCTOR_DELETE_FUNCTION: string = 'delete'; 237export const ABOUT_TO_BE_DELETE_FUNCTION_ID: string = 'id'; 238export const COMPONENT_WATCH_FUNCTION: string = 'declareWatch'; 239export const CONTEXT_STACK: string = 'contextStack'; 240 241export const CREATE_STATE_METHOD: string = 'createState'; 242export const CREATE_PROP_METHOD: string = 'createProp'; 243export const CREATE_LINK_METHOD: string = 'createLink'; 244export const CREATE_OBSERVABLE_OBJECT_METHOD: string = 'createObservableObject'; 245 246export const CUSTOM_COMPONENT_EARLIER_CREATE_CHILD: string = 'earlierCreatedChild_'; 247export const CUSTOM_COMPONENT_FUNCTION_FIND_CHILD_BY_ID: string = 'findChildById'; 248export const CUSTOM_COMPONENT_NEEDS_UPDATE_FUNCTION: string = 'needsUpdate'; 249export const CUSTOM_COMPONENT_MARK_STATIC_FUNCTION: string = 'markStatic'; 250export const CUSTOM_COMPONENT_EXTRAINFO: string = 'extraInfo'; 251 252export const COMPONENT_GESTURE: string = 'Gesture'; 253export const COMPONENT_GESTURE_GROUP: string = 'GestureGroup'; 254export const GESTURE_ATTRIBUTE: string = 'gesture'; 255export const PARALLEL_GESTURE_ATTRIBUTE: string = 'parallelGesture'; 256export const PRIORITY_GESTURE_ATTRIBUTE: string = 'priorityGesture'; 257export const GESTURE_ENUM_KEY: string = 'GesturePriority'; 258export const GESTURE_ENUM_VALUE_HIGH: string = 'High'; 259export const GESTURE_ENUM_VALUE_LOW: string = 'Low'; 260export const GESTURE_ENUM_VALUE_PARALLEL: string = 'Parallel'; 261 262export const RESOURCE: string = '$r'; 263export const RESOURCE_RAWFILE: string = '$rawfile'; 264export const RESOURCE_NAME_ID: string = 'id'; 265export const RESOURCE_NAME_TYPE: string = 'type'; 266export const RESOURCE_NAME_PARAMS: string = 'params'; 267export const RESOURCE_NAME_BUNDLE: string = 'bundleName'; 268export const RESOURCE_NAME_MODULE: string = 'moduleName'; 269export const RESOURCE_TYPE = { 270 color: 10001, 271 float: 10002, 272 string: 10003, 273 plural: 10004, 274 boolean: 10005, 275 intarray: 10006, 276 integer: 10007, 277 pattern: 10008, 278 strarray: 10009, 279 media: 20000, 280 rawfile: 30000, 281 symbol: 40000 282}; 283 284export const WORKERS_DIR: string = 'workers'; 285export const WORKER_OBJECT: string = 'Worker'; 286 287export const TEST_RUNNER_DIR_SET: Set<string> = new Set(['TestRunner', 'testrunner']); 288 289export const SET_CONTROLLER_METHOD: string = 'setController'; 290export const SET_CONTROLLER_CTR: string = 'ctr'; 291export const SET_CONTROLLER_CTR_TYPE: string = 'CustomDialogController'; 292export const JS_DIALOG: string = 'jsDialog'; 293export const CUSTOM_DIALOG_CONTROLLER_BUILDER: string = 'builder'; 294 295export const BUILDER_ATTR_NAME: string = 'builder'; 296export const BUILDER_ATTR_BIND: string = 'bind'; 297 298export const GEOMETRY_VIEW: string = 'GeometryView'; 299 300export const MODULE_SHARE_PATH: string = 'src' + path.sep + 'main' + path.sep + 'ets' + path.sep + 'share'; 301export const BUILD_SHARE_PATH: string = '../share'; 302export const MODULE_ETS_PATH: string = 'src' + path.sep + 'main' + path.sep + 'ets'; 303export const MODULE_VISUAL_PATH: string = 'src' + path.sep + 'main' + path.sep + 'supervisual'; 304 305export const THIS: string = 'this'; 306export const STYLES: string = 'Styles'; 307export const VISUAL_STATE: string = 'visualState'; 308export const VIEW_STACK_PROCESSOR: string = 'ViewStackProcessor'; 309 310export const BIND_POPUP: string = 'bindPopup'; 311export const BIND_POPUP_SET: Set<string> = new Set(['bindPopup']); 312export const BIND_DRAG_SET: Set<string> = new Set(['onDragStart', 'onItemDragStart']); 313export const ALL_COMPONENTS: string = 'AllComponents'; 314export const BIND_OBJECT_PROPERTY: Map<string, Set<string>> = new Map([ 315 ['Navigation', new Set(['title'])], 316 ['NavDestination', new Set(['title'])], 317 ['ListItem', new Set(['swipeAction'])], 318 ['MenuItem', new Set([COMPONENT_CREATE_FUNCTION])], 319 ['MenuItemGroup', new Set([COMPONENT_CREATE_FUNCTION])], 320 ['Refresh', new Set([COMPONENT_CREATE_FUNCTION])], 321 ['WaterFlow', new Set([COMPONENT_CREATE_FUNCTION])], 322 ['Radio', new Set([COMPONENT_CREATE_FUNCTION])], 323 ['Checkbox', new Set([COMPONENT_CREATE_FUNCTION])], 324 ['Web', new Set(['bindSelectionMenu'])], 325 [ALL_COMPONENTS, new Set(['bindMenu', 'bindContextMenu', 'bindSheet', 'dragPreview'])] 326]); 327 328export const CHECKED: string = 'checked'; 329export const RADIO: string = 'Radio'; 330export const $$_VALUE: string = 'value'; 331export const $$_CHANGE_EVENT: string = 'changeEvent'; 332export const $_VALUE: string = '$value'; 333export const TEXT_TIMER: string = 'TextTimer'; 334export const REFRESH: string = 'Refresh'; 335export const REFRESHING: string = 'refreshing'; 336export const FORMAT: string = 'format'; 337export const IS_COUNT_DOWN: string = 'isCountDown'; 338export const COUNT: string = 'count'; 339export const $$_THIS: string = '$$this'; 340export const $$_NEW_VALUE: string = 'newValue'; 341export const $$: string = '$$'; 342export const $$_VISIBILITY: string = 'visibility'; 343export const BIND_CONTENT_COVER: string = 'bindContentCover'; 344export const BIND_SHEET: string = 'bindSheet'; 345export const DATE_PICKER: string = 'DatePicker'; 346export const TIME_PICKER: string = 'TimePicker'; 347export const RATING: string = 'Rating'; 348export const SEAECH: string = 'Search'; 349export const CALENDAR: string = 'Calendar'; 350export const MODE: string = 'mode'; 351export const SHOW_SIDE_BAR: string = 'showSideBar'; 352export const SIDE_BAR_WIDTH: string = 'sideBarWidth'; 353export const CHECK_BOX: string = 'Checkbox'; 354export const SELECT_LOW: string = 'select'; 355export const CHECKBOX_GROUP: string = 'CheckboxGroup'; 356export const SELECT_ALL: string = 'selectAll'; 357export const SELECTED: string = 'selected'; 358export const MENU_ITEM: string = 'MenuItem'; 359export const PANEL: string = 'Panel'; 360export const RATING_LOW: string = 'rating'; 361export const VALUE: string = 'value'; 362export const SIDE_BAR_CONTAINER: string = 'SideBarContainer'; 363export const SLIDER: string = 'Slider'; 364export const STEPPER: string = 'Stepper'; 365export const INDEX: string = 'index'; 366export const SWIPER: string = 'Swiper'; 367export const TABS: string = 'Tabs'; 368export const TEXT_AREA: string = 'TextArea'; 369export const TEXT: string = 'text'; 370export const SELECT: string = 'Select'; 371export const TEXT_INPUT: string = 'TextInput'; 372export const TEXT_PICKER: string = 'TextPicker'; 373export const TOGGLE: string = 'Toggle'; 374export const ALPHABET_INDEXER: string = 'AlphabetIndexer'; 375export const ARC_ALPHABET_INDEXER: string = 'ArcAlphabetIndexer'; 376export const IS_ON: string = 'isOn'; 377export const DATE: string = 'date'; 378export const GRID_ITEM: string = 'GridItem'; 379export const LIST_ITEM: string = 'ListItem'; 380export const UPDATE_FUNC_BY_ELMT_ID: string = 'updateFuncByElmtId'; 381export const BIND_MENU: string = 'bindMenu'; 382export const BIND_CONTEXT_MENU: string = 'bindContextMenu'; 383export const NAV_BAR_WIDTH: string = 'navBarWidth'; 384export const ARC_LIST_ITEM: string = 'ArcListItem'; 385 386export const DOLLAR_BLOCK_INTERFACE: Set<string> = new Set([ 387 CHECK_BOX, CHECKBOX_GROUP, DATE_PICKER, TIME_PICKER, MENU_ITEM, PANEL, RATING, SIDE_BAR_CONTAINER, STEPPER, SWIPER, TABS, TEXT_PICKER, TOGGLE, SELECT, 388 REFRESH, CALENDAR, GRID_ITEM, LIST_ITEM, TEXT_TIMER, SEAECH, TEXT_INPUT, SLIDER, TEXT_AREA, ALPHABET_INDEXER, ARC_ALPHABET_INDEXER]); 389export const STYLE_ADD_DOUBLE_DOLLAR: Set<string> = new Set([ 390 BIND_POPUP, $$_VISIBILITY, BIND_CONTENT_COVER, BIND_SHEET]); 391export const STYLE_ADD_DOUBLE_EXCLAMATION: Set<string> = new Set([ 392 BIND_MENU, BIND_CONTEXT_MENU, BIND_POPUP, BIND_CONTENT_COVER, BIND_SHEET]); 393export const PROPERTIES_ADD_DOUBLE_DOLLAR: Map<string, Set<string>> = new Map([ 394 [RADIO, new Set([CHECKED])], 395 [TEXT_TIMER, new Set([FORMAT, COUNT, IS_COUNT_DOWN])], 396 [REFRESH, new Set([REFRESHING])], 397 [CHECK_BOX, new Set([SELECT_LOW])], 398 [CHECKBOX_GROUP, new Set([SELECT_ALL])], 399 [DATE_PICKER, new Set([SELECTED])], 400 [TIME_PICKER, new Set([SELECTED])], 401 [MENU_ITEM, new Set([SELECTED])], 402 [PANEL, new Set([MODE])], 403 [RATING, new Set([RATING_LOW])], 404 [SEAECH, new Set([VALUE])], 405 [SIDE_BAR_CONTAINER, new Set([SHOW_SIDE_BAR])], 406 [SLIDER, new Set([VALUE])], 407 [STEPPER, new Set([INDEX])], 408 [SWIPER, new Set([INDEX])], 409 [TABS, new Set([INDEX])], 410 [TEXT_AREA, new Set([TEXT])], 411 [TEXT_INPUT, new Set([TEXT])], 412 [TEXT_PICKER, new Set([VALUE, SELECTED])], 413 [TOGGLE, new Set([IS_ON])], 414 [ALPHABET_INDEXER, new Set([SELECTED])], 415 [SELECT, new Set([SELECTED, VALUE])], 416 [CALENDAR, new Set([DATE])], 417 [GRID_ITEM, new Set([SELECTED])], 418 [LIST_ITEM, new Set([SELECTED])] 419]); 420export const PROPERTIES_ADD_DOUBLE_EXCLAMATION: Map<string, Set<string>> = new Map([ 421 [RADIO, new Set([CHECKED])], 422 [TEXT_TIMER, new Set([FORMAT, COUNT, IS_COUNT_DOWN])], 423 [REFRESH, new Set([REFRESHING])], 424 [CHECK_BOX, new Set([SELECT_LOW])], 425 [CHECKBOX_GROUP, new Set([SELECT_ALL])], 426 [DATE_PICKER, new Set([SELECTED])], 427 [TIME_PICKER, new Set([SELECTED])], 428 [MENU_ITEM, new Set([SELECTED])], 429 [NAVIGATION, new Set([NAV_BAR_WIDTH])], 430 [PANEL, new Set([MODE])], 431 [RATING, new Set([RATING_LOW])], 432 [SEAECH, new Set([VALUE])], 433 [SIDE_BAR_CONTAINER, new Set([SHOW_SIDE_BAR, SIDE_BAR_WIDTH])], 434 [SLIDER, new Set([VALUE])], 435 [STEPPER, new Set([INDEX])], 436 [SWIPER, new Set([INDEX])], 437 [TABS, new Set([INDEX])], 438 [TEXT_AREA, new Set([TEXT])], 439 [TEXT_INPUT, new Set([TEXT])], 440 [TEXT_PICKER, new Set([VALUE, SELECTED])], 441 [TOGGLE, new Set([IS_ON])], 442 [ALPHABET_INDEXER, new Set([SELECTED])], 443 [ARC_ALPHABET_INDEXER, new Set([SELECTED])], 444 [SELECT, new Set([SELECTED, VALUE])], 445 [CALENDAR, new Set([DATE])], 446 [GRID_ITEM, new Set([SELECTED])], 447 [LIST_ITEM, new Set([SELECTED])] 448]); 449 450export const CREATE_BIND_COMPONENT: Set<string> = new Set(['ListItemGroup', REFRESH]); 451export const HEADER: string = 'header'; 452export const INDICATORBUILDER: string = 'indicatorBuilder'; 453export const FOOTER: string = 'footer'; 454 455export const INTERFACE_NAME_SUFFIX: string = '_Params'; 456export const OBSERVED_PROPERTY_ABSTRACT: string = 'ObservedPropertyAbstract'; 457 458export const SUPERVISUAL: string = './supervisual'; 459export const SUPERVISUAL_SOURCEMAP_EXT: string = '.visual.js.map'; 460 461export const INSTANCE: string = 'Instance'; 462 463export const COMPONENT_TOGGLE: string = 'Toggle'; 464export const TTOGGLE_CHECKBOX: string = 'Checkbox'; 465export const TOGGLE_SWITCH: string = 'Switch'; 466 467export const FILESINFO_TXT: string = 'filesInfo.txt'; 468export const NPMENTRIES_TXT: string = 'npmEntries.txt'; 469export const MODULES_CACHE: string = 'modules.cache'; 470export const MODULES_ABC: string = 'modules.abc'; 471export const MODULELIST_JSON: string = 'moduleList.json'; 472export const PREBUILDINFO_JSON: string = 'preBuildInfo.json'; 473export const SOURCEMAPS_JSON: string = 'sourceMaps.json'; 474export const SOURCEMAPS: string = 'sourceMaps.map'; 475export const PROTO_FILESINFO_TXT: string = 'protoFilesInfo.txt'; 476export const AOT_FULL: string = 'full'; 477export const AOT_TYPE: string = 'type'; 478export const AOT_PARTIAL: string = 'partial'; 479export const AOT_PROFILE_SUFFIX: string = '.ap'; 480 481export const ESMODULE: string = 'esmodule'; 482export const JSBUNDLE: string = 'jsbundle'; 483export const ARK: string = 'ark'; 484export const TEMPORARY: string = 'temporary'; 485export const MAIN: string = 'main'; 486export const AUXILIARY: string = 'auxiliary'; 487export const ZERO: string = '0'; 488export const ONE: string = '1'; 489export const EXTNAME_JS: string = '.js'; 490export const EXTNAME_TS: string = '.ts'; 491export const EXTNAME_JS_MAP: string = '.js.map'; 492export const EXTNAME_TS_MAP: string = '.ts.map'; 493export const EXTNAME_MJS: string = '.mjs'; 494export const EXTNAME_CJS: string = '.cjs'; 495export const EXTNAME_D_TS: string = '.d.ts'; 496export const EXTNAME_D_ETS: string = '.d.ets'; 497export const EXTNAME_JSON: string = '.json'; 498export const EXTNAME_ABC: string = '.abc'; 499export const EXTNAME_PROTO_BIN: string = '.protoBin'; 500export const PATCH_SYMBOL_TABLE: string = 'symbol.txt'; 501export const MANAGE_WORKERS_SCRIPT: string = 'manage_workers.js'; 502export const GEN_ABC_SCRIPT: string = 'gen_abc.js'; 503export const GEN_MODULE_ABC_SCRIPT: string = 'gen_module_abc.js'; 504 505export const SUCCESS: number = 0; 506export const FAIL: number = 1; 507 508export const TS2ABC: string = 'ts2abc'; 509export const ES2ABC: string = 'es2abc'; 510 511export const MAX_WORKER_NUMBER: number = 3; 512 513export const GENERATE_ID = 'generateId'; 514export const _GENERATE_ID = '__generate__Id'; 515 516export const COMPONENT_CONSTRUCTOR_INITIAL_PARAMS: string = 'setInitiallyProvidedValue'; 517export const COMPONENT_UPDATE_STATE_VARS: string = 'updateStateVars'; 518export const COMPONENT_RERENDER_FUNCTION: string = 'rerender'; 519export const COMPONENT_CONSTRUCTOR_PURGE_VARIABLE_DEP: string = 'purgeVariableDependenciesOnElmtId'; 520export const MARKDEPENDENTELEMENTSDIRTY: string = 'markDependentElementsDirty'; 521export const ABOUT_TO_BE_DELETE_FUNCTION_ID__: string = 'id__'; 522export const RMELMTID: string = 'rmElmtId'; 523export const PURGEDEPENDENCYONELMTID: string = 'purgeDependencyOnElmtId'; 524export const SETPROPERTYUNCHANGED: string = 'SetPropertyUnchanged'; 525export const ABOUTTOBEDELETEDINTERNAL: string = 'aboutToBeDeletedInternal'; 526export const UPDATEDIRTYELEMENTS: string = 'updateDirtyElements'; 527export const BASICDECORATORS: Set<string> = new Set([COMPONENT_STATE_DECORATOR, COMPONENT_PROP_DECORATOR, 528 COMPONENT_LINK_DECORATOR, COMPONENT_OBJECT_LINK_DECORATOR, COMPONENT_PROVIDE_DECORATOR, COMPONENT_CONSUME_DECORATOR, 529 COMPONENT_STORAGE_LINK_DECORATOR, COMPONENT_STORAGE_PROP_DECORATOR, COMPONENT_LOCAL_STORAGE_LINK_DECORATOR, 530 COMPONENT_LOCAL_STORAGE_PROP_DECORATOR]); 531export const LINKS_DECORATORS: Set<string> = new Set([COMPONENT_LINK_DECORATOR, COMPONENT_OBJECT_LINK_DECORATOR]); 532export const ISINITIALRENDER: string = 'isInitialRender'; 533export const ELMTID: string = 'elmtId'; 534export const STARTGETACCESSRECORDINGFOR: string = 'StartGetAccessRecordingFor'; 535export const STOPGETACCESSRECORDING: string = 'StopGetAccessRecording'; 536export const UPDATE_STATE_VARS_OF_CHIND_BY_ELMTID: string = 'updateStateVarsOfChildByElmtId'; 537export const VIEWSTACKPROCESSOR: string = 'ViewStackProcessor'; 538export const OBSERVECOMPONENTCREATION: string = 'observeComponentCreation'; 539export const OBSERVECOMPONENTCREATION2: string = 'observeComponentCreation2'; 540export const ISLAZYCREATE: string = 'isLazyCreate'; 541export const DEEPRENDERFUNCTION: string = 'deepRenderFunction'; 542export const ITEMCREATION: string = 'itemCreation'; 543export const ITEMCREATION2: string = 'itemCreation2'; 544export const OBSERVEDSHALLOWRENDER: string = 'observedShallowRender'; 545export const OBSERVEDDEEPRENDER: string = 'observedDeepRender'; 546export const ItemComponents: string[] = ['ListItem', 'GridItem', 'ArcListItem']; 547export const FOREACHITEMGENFUNCTION: string = 'forEachItemGenFunction'; 548export const __LAZYFOREACHITEMGENFUNCTION: string = '__lazyForEachItemGenFunction'; 549export const _ITEM: string = '_item'; 550export const FOREACHITEMIDFUNC: string = 'forEachItemIdFunc'; 551export const __LAZYFOREACHITEMIDFUNC: string = '__lazyForEachItemIdFunc'; 552export const FOREACHUPDATEFUNCTION: string = 'forEachUpdateFunction'; 553export const ALLOCATENEWELMETIDFORNEXTCOMPONENT: string = 'AllocateNewElmetIdForNextComponent'; 554export const STATE_OBJECTLINK_DECORATORS: string[] = [COMPONENT_STATE_DECORATOR, COMPONENT_OBJECT_LINK_DECORATOR]; 555export const COMPONENT_INITIAL_RENDER_FUNCTION: string = 'initialRender'; 556export const DECORATOR_COMPONENT_FREEZEWHENINACTIVE: string = 'freezeWhenInactive'; 557export const INIT_ALLOW_COMPONENT_FREEZE: string = 'initAllowComponentFreeze'; 558export const GRID_COMPONENT: string = 'Grid'; 559export const GRIDITEM_COMPONENT: string = 'GridItem'; 560export const WILLUSEPROXY: string = 'willUseProxy'; 561export const BASE_COMPONENT_NAME_PU: string = 'ViewPU'; 562export const PUV2_VIEW_BASE: string = 'PUV2ViewBase'; 563export const GLOBAL_THIS: string = 'globalThis'; 564export const OBSERVED_PROPERTY_SIMPLE_PU: string = 'ObservedPropertySimplePU'; 565export const OBSERVED_PROPERTY_OBJECT_PU: string = 'ObservedPropertyObjectPU'; 566export const SYNCHED_PROPERTY_SIMPLE_ONE_WAY_PU: string = 'SynchedPropertySimpleOneWayPU'; 567export const SYNCHED_PROPERTY_OBJECT_ONE_WAY_PU: string = 'SynchedPropertyObjectOneWayPU'; 568export const SYNCHED_PROPERTY_SIMPLE_TWO_WAY_PU: string = 'SynchedPropertySimpleTwoWayPU'; 569export const SYNCHED_PROPERTY_OBJECT_TWO_WAY_PU: string = 'SynchedPropertyObjectTwoWayPU'; 570export const SYNCHED_PROPERTY_NESED_OBJECT_PU: string = 'SynchedPropertyNesedObjectPU'; 571export const OBSERVED_PROPERTY_ABSTRACT_PU: string = 'ObservedPropertyAbstractPU'; 572export const COMPONENT_CONSTRUCTOR_LOCALSTORAGE_PU: string = '__localStorage'; 573export const COMPONENT_CONSTRUCTOR_LOCALSTORAGE_TYPE_PU: string = 'LocalStorage'; 574export const IFELSEBRANCHUPDATEFUNCTION = 'ifElseBranchUpdateFunction'; 575export const CREATE_STORAGE_LINK = 'createStorageLink'; 576export const CREATE_STORAGE_PROP = 'createStorageProp'; 577export const CREATE_LOCAL_STORAGE_LINK = 'createLocalStorageLink'; 578export const CREATE_LOCAL_STORAGE_PROP = 'createLocalStorageProp'; 579export const GET_ENTRYNAME: string = 'getEntryName'; 580export const SUPER_ARGS: string = 'args'; 581export const FINALIZE_CONSTRUCTION: string = 'finalizeConstruction'; 582export const PROTOTYPE: string = 'prototype'; 583export const REFLECT: string = 'Reflect'; 584export const DEFINE_PROPERTY: string = 'defineProperty'; 585export const BASE_CLASS: string = 'BaseClass'; 586export const IS_REUSABLE_: string = 'isReusable_'; 587export const GET_ATTRIBUTE: string = 'get'; 588 589export const CARD_ENTRY_FUNCTION_NAME: string = 'loadEtsCard'; 590export const CARD_ENABLE_DECORATORS: Set<string> = new Set([ 591 '@StorageLink', '@StorageProp', '@LocalStorageLink', '@LocalStorageProp' 592]); 593export const CARD_ENABLE_COMPONENTS: Set<string> = new Set([ 594 'AbilityComponent', 'PluginComponent', 'FormComponent', 'RemoteWindow', 595 'XComponent', 'Web', 'RichText' 596]); 597export const TabContentAndNavDestination: Set<string> = new Set(['TabContent', 598 'NavDestination']); 599export const CARD_LOG_TYPE_DECORATORS = 1; 600export const CARD_LOG_TYPE_COMPONENTS = 2; 601export const CARD_LOG_TYPE_IMPORT = 3; 602 603export const CALL = 'call'; 604export const RESERT = 'reset'; 605 606export const TS_NOCHECK: string = '// @ts-nocheck'; 607 608export const BUILDER_PARAM_PROXY: string = 'makeBuilderParameterProxy'; 609export const BUILDER_TYPE: string = 'BuilderType'; 610 611export const FUNCTION: string = 'function'; 612export const NAME: string = 'name'; 613 614export const ROUTENAME_NODE: string = 'routeNameNode'; 615export const STORAGE_NODE: string = 'storageNode'; 616export const STORAGE: string = 'storage'; 617export const REGISTER_NAMED_ROUTE: string = 'registerNamedRoute'; 618export const ROUTE_NAME: string = 'routeName'; 619export const PAGE_PATH: string = 'pagePath'; 620export const PAGE_FULL_PATH: string = 'pageFullPath'; 621export const IS_USER_CREATE_STACK: string = 'isUserCreateStack'; 622 623export const CAN_RETAKE: string = 'canRetake'; 624export const DECORATOR_SUFFIX: string = '@'; 625export const TRANSFORMED_MOCK_CONFIG: string = 'mock-config.json'; 626export const USER_DEFINE_MOCK_CONFIG: string = 'mock-config.json5'; 627 628export const WRAPBUILDER_FUNCTION: string = 'wrapBuilder'; 629export const WRAPPEDBUILDER_CLASS: string = 'WrappedBuilder'; 630export const WRAPBUILDER_BUILDERPROP: string = 'builder'; 631export const LENGTH: string = 'length'; 632 633export const PREVIEW: string = 'preview'; 634export const TITLE: string = 'title'; 635 636export const IDS: string = 'ids'; 637export const PUSH: string = 'push'; 638export const UPDATE_LAZY_FOREACH_ELEMENTS = 'UpdateLazyForEachElements'; 639export const IS_INITIAL_ITEM = 'isInitialItem'; 640export const MY_IDS = 'myIds'; 641export const COMPONENT_CALL: string = 'componentCall'; 642 643export const TS_BUILD_INFO_SUFFIX = '.tsbuildinfo'; 644export const ARKTS_LINTER_BUILD_INFO_SUFFIX = 'inversedArkTsLinter.tsbuildinfo'; 645export const HOT_RELOAD_BUILD_INFO_SUFFIX = 'hotReload.tsbuildinfo'; 646export const WATCH_COMPILER_BUILD_INFO_SUFFIX = 'watchCompiler.tsbuildinfo'; 647 648export const GET_SHARED: string = 'getShared'; 649export const USE_SHARED_STORAGE: string = 'useSharedStorage'; 650export const ARKTS_MODULE_PREFIX: string = '@arkts'; 651export const ARKTS_MODULE_NAME: string = 'arkts'; 652export const COLD_RELOAD_MODE: string = 'coldReload'; 653export const INTEGRATED_HSP: string = 'integratedHsp';