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