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