@magic-xpa/gui 4.1100.0-dev4110.99 → 4.1100.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +7 -7
- package/{esm2020 → esm2022}/index.mjs +71 -71
- package/{esm2020 → esm2022}/magic-xpa-gui.mjs +1 -1
- package/esm2022/src/Commands.mjs +184 -0
- package/esm2022/src/Events.mjs +425 -0
- package/{esm2020 → esm2022}/src/EventsProcessor.mjs +66 -66
- package/{esm2020 → esm2022}/src/FocusManager.mjs +33 -33
- package/esm2022/src/GuiConstants.mjs +68 -0
- package/{esm2020 → esm2022}/src/GuiEnums.mjs +301 -300
- package/esm2022/src/GuiEnvironment.mjs +4 -0
- package/{esm2020 → esm2022}/src/IFlowMonitorQueue.mjs +1 -1
- package/esm2022/src/Manager.mjs +91 -0
- package/esm2022/src/UIBridge.mjs +33 -0
- package/{esm2020 → esm2022}/src/env/IEnvironment.mjs +1 -1
- package/{esm2020 → esm2022}/src/gui/ControlBase.mjs +2 -2
- package/esm2022/src/gui/GuiMgControl.mjs +123 -0
- package/{esm2020 → esm2022}/src/gui/GuiMgForm.mjs +3 -3
- package/esm2022/src/gui/KeyboardItem.mjs +135 -0
- package/esm2022/src/gui/LastFocusedVal.mjs +11 -0
- package/esm2022/src/gui/MgValue.mjs +16 -0
- package/{esm2020 → esm2022}/src/gui/PropParentInterface.mjs +1 -1
- package/{esm2020 → esm2022}/src/gui/low/DialogHandler.mjs +6 -6
- package/esm2022/src/gui/low/GuiCommand.mjs +68 -0
- package/esm2022/src/gui/low/GuiCommandQueue.mjs +35 -0
- package/esm2022/src/gui/low/GuiInteractive.mjs +178 -0
- package/esm2022/src/gui/low/Style.mjs +20 -0
- package/esm2022/src/management/RuntimeContextBase.mjs +42 -0
- package/esm2022/src/management/data/BlobType.mjs +281 -0
- package/esm2022/src/management/data/DcValues.mjs +214 -0
- package/{esm2020 → esm2022}/src/management/data/DcValuesBuilderBase.mjs +95 -95
- package/esm2022/src/management/data/FieldDef.mjs +331 -0
- package/{esm2020 → esm2022}/src/management/data/FieldsTable.mjs +54 -54
- package/esm2022/src/management/data/GuiDataViewBase.mjs +88 -0
- package/esm2022/src/management/data/GuiFieldBase.mjs +82 -0
- package/{esm2020 → esm2022}/src/management/data/IRecord.mjs +1 -1
- package/{esm2020 → esm2022}/src/management/data/IReferencedObject.mjs +1 -1
- package/esm2022/src/management/data/NUM_TYPE.mjs +1739 -0
- package/esm2022/src/management/data/ObjectReferenceBase.mjs +48 -0
- package/esm2022/src/management/data/ObjectReferencesCollection.mjs +27 -0
- package/{esm2020 → esm2022}/src/management/data/RecordUtils.mjs +360 -360
- package/esm2022/src/management/data/VectorType.mjs +612 -0
- package/esm2022/src/management/data/VectorTypeBase.mjs +88 -0
- package/{esm2020 → esm2022}/src/management/events/IActionManager.mjs +1 -1
- package/{esm2020 → esm2022}/src/management/events/IGuiEventsManager.mjs +1 -1
- package/esm2022/src/management/exp/ExpressionInterface.mjs +244 -0
- package/esm2022/src/management/exp/GuiExpressionEvaluator.mjs +305 -0
- package/esm2022/src/management/gui/ControlTable.mjs +118 -0
- package/esm2022/src/management/gui/DisplayConvertor.mjs +1649 -0
- package/esm2022/src/management/gui/FieldValidator.mjs +711 -0
- package/esm2022/src/management/gui/GuiControlPropertyAdapter.mjs +24 -0
- package/{esm2020 → esm2022}/src/management/gui/GuiFormPropertyAdapter.mjs +10 -10
- package/esm2022/src/management/gui/HebrewDate.mjs +278 -0
- package/esm2022/src/management/gui/Helps.mjs +237 -0
- package/esm2022/src/management/gui/MgControlBase.mjs +1869 -0
- package/esm2022/src/management/gui/MgFormBase.mjs +741 -0
- package/esm2022/src/management/gui/PIC.mjs +1185 -0
- package/{esm2020 → esm2022}/src/management/gui/PropDefaults.mjs +229 -229
- package/{esm2020 → esm2022}/src/management/gui/PropInterface.mjs +246 -245
- package/esm2022/src/management/gui/PropTable.mjs +221 -0
- package/esm2022/src/management/gui/Property.mjs +1362 -0
- package/esm2022/src/management/gui/ValidationDetails.mjs +248 -0
- package/{esm2020 → esm2022}/src/management/gui/ValidationDetailsBase.mjs +93 -93
- package/{esm2020 → esm2022}/src/management/gui/WrongFormatException.mjs +29 -29
- package/esm2022/src/management/tasks/GuiDataCollection.mjs +4 -0
- package/esm2022/src/management/tasks/GuiTaskBase.mjs +511 -0
- package/{esm2020 → esm2022}/src/management/tasks/IMGDataTable.mjs +1 -1
- package/{esm2020 → esm2022}/src/management/tasks/ITask.mjs +1 -1
- package/esm2022/src/management/tasks/MgTimer.mjs +21 -0
- package/esm2022/src/management/tasks/TaskDefinitionId.mjs +54 -0
- package/{esm2020 → esm2022}/src/management/tasks/TaskDefinitionIdTableSaxHandler.mjs +41 -41
- package/{esm2020 → esm2022}/src/util/MemoryUtil.mjs +34 -34
- package/esm2022/src/util/ObjectReference.mjs +36 -0
- package/esm2022/src/util/UsernamePasswordCredentials.mjs +52 -0
- package/{fesm2020 → fesm2022}/magic-xpa-gui.mjs +16086 -16095
- package/fesm2022/magic-xpa-gui.mjs.map +1 -0
- package/index.d.ts +70 -70
- package/package.json +6 -12
- package/src/Commands.d.ts +40 -40
- package/src/Events.d.ts +157 -155
- package/src/EventsProcessor.d.ts +13 -13
- package/src/FocusManager.d.ts +8 -8
- package/src/GuiConstants.d.ts +65 -65
- package/src/GuiEnums.d.ts +283 -282
- package/src/GuiEnvironment.d.ts +4 -4
- package/src/IFlowMonitorQueue.d.ts +3 -3
- package/src/Manager.d.ts +26 -26
- package/src/UIBridge.d.ts +16 -16
- package/src/env/IEnvironment.d.ts +31 -31
- package/src/gui/ControlBase.d.ts +4 -4
- package/src/gui/GuiMgControl.d.ts +38 -38
- package/src/gui/GuiMgForm.d.ts +3 -3
- package/src/gui/KeyboardItem.d.ts +18 -18
- package/src/gui/LastFocusedVal.d.ts +7 -7
- package/src/gui/MgValue.d.ts +15 -15
- package/src/gui/PropParentInterface.d.ts +13 -13
- package/src/gui/low/DialogHandler.d.ts +4 -4
- package/src/gui/low/GuiCommand.d.ts +37 -37
- package/src/gui/low/GuiCommandQueue.d.ts +13 -13
- package/src/gui/low/GuiInteractive.d.ts +55 -55
- package/src/gui/low/Style.d.ts +19 -19
- package/src/management/RuntimeContextBase.d.ts +23 -23
- package/src/management/data/BlobType.d.ts +29 -29
- package/src/management/data/DcValues.d.ts +33 -33
- package/src/management/data/DcValuesBuilderBase.d.ts +17 -17
- package/src/management/data/FieldDef.d.ts +53 -53
- package/src/management/data/FieldsTable.d.ts +16 -16
- package/src/management/data/GuiDataViewBase.d.ts +27 -27
- package/src/management/data/GuiFieldBase.d.ts +17 -17
- package/src/management/data/IRecord.d.ts +12 -12
- package/src/management/data/IReferencedObject.d.ts +5 -5
- package/src/management/data/NUM_TYPE.d.ts +103 -103
- package/src/management/data/ObjectReferenceBase.d.ts +16 -16
- package/src/management/data/ObjectReferencesCollection.d.ts +10 -10
- package/src/management/data/RecordUtils.d.ts +21 -21
- package/src/management/data/VectorType.d.ts +52 -52
- package/src/management/data/VectorTypeBase.d.ts +8 -8
- package/src/management/events/IActionManager.d.ts +7 -7
- package/src/management/events/IGuiEventsManager.d.ts +20 -20
- package/src/management/exp/ExpressionInterface.d.ts +242 -242
- package/src/management/exp/GuiExpressionEvaluator.d.ts +47 -47
- package/src/management/gui/ControlTable.d.ts +28 -28
- package/src/management/gui/DisplayConvertor.d.ts +103 -103
- package/src/management/gui/FieldValidator.d.ts +35 -35
- package/src/management/gui/GuiControlPropertyAdapter.d.ts +40 -40
- package/src/management/gui/GuiFormPropertyAdapter.d.ts +17 -17
- package/src/management/gui/HebrewDate.d.ts +46 -46
- package/src/management/gui/Helps.d.ts +51 -51
- package/src/management/gui/MgControlBase.d.ts +225 -223
- package/src/management/gui/MgFormBase.d.ts +160 -160
- package/src/management/gui/PIC.d.ts +108 -108
- package/src/management/gui/PropDefaults.d.ts +7 -7
- package/src/management/gui/PropInterface.d.ts +244 -243
- package/src/management/gui/PropTable.d.ts +33 -33
- package/src/management/gui/Property.d.ts +121 -121
- package/src/management/gui/ValidationDetails.d.ts +52 -52
- package/src/management/gui/ValidationDetailsBase.d.ts +14 -14
- package/src/management/gui/WrongFormatException.d.ts +9 -9
- package/src/management/tasks/GuiDataCollection.d.ts +4 -4
- package/src/management/tasks/GuiTaskBase.d.ts +150 -150
- package/src/management/tasks/IMGDataTable.d.ts +10 -10
- package/src/management/tasks/ITask.d.ts +6 -6
- package/src/management/tasks/MgTimer.d.ts +8 -8
- package/src/management/tasks/TaskDefinitionId.d.ts +16 -16
- package/src/management/tasks/TaskDefinitionIdTableSaxHandler.d.ts +7 -7
- package/src/util/MemoryUtil.d.ts +6 -6
- package/src/util/ObjectReference.d.ts +9 -9
- package/src/util/UsernamePasswordCredentials.d.ts +18 -18
- package/esm2020/src/Commands.mjs +0 -184
- package/esm2020/src/Events.mjs +0 -420
- package/esm2020/src/GuiConstants.mjs +0 -68
- package/esm2020/src/GuiEnvironment.mjs +0 -4
- package/esm2020/src/Manager.mjs +0 -91
- package/esm2020/src/UIBridge.mjs +0 -32
- package/esm2020/src/gui/GuiMgControl.mjs +0 -125
- package/esm2020/src/gui/KeyboardItem.mjs +0 -135
- package/esm2020/src/gui/LastFocusedVal.mjs +0 -11
- package/esm2020/src/gui/MgValue.mjs +0 -16
- package/esm2020/src/gui/low/GuiCommand.mjs +0 -66
- package/esm2020/src/gui/low/GuiCommandQueue.mjs +0 -35
- package/esm2020/src/gui/low/GuiInteractive.mjs +0 -176
- package/esm2020/src/gui/low/Style.mjs +0 -20
- package/esm2020/src/management/RuntimeContextBase.mjs +0 -43
- package/esm2020/src/management/data/BlobType.mjs +0 -281
- package/esm2020/src/management/data/DcValues.mjs +0 -214
- package/esm2020/src/management/data/FieldDef.mjs +0 -331
- package/esm2020/src/management/data/GuiDataViewBase.mjs +0 -90
- package/esm2020/src/management/data/GuiFieldBase.mjs +0 -82
- package/esm2020/src/management/data/NUM_TYPE.mjs +0 -1741
- package/esm2020/src/management/data/ObjectReferenceBase.mjs +0 -48
- package/esm2020/src/management/data/ObjectReferencesCollection.mjs +0 -29
- package/esm2020/src/management/data/VectorType.mjs +0 -612
- package/esm2020/src/management/data/VectorTypeBase.mjs +0 -88
- package/esm2020/src/management/exp/ExpressionInterface.mjs +0 -244
- package/esm2020/src/management/exp/GuiExpressionEvaluator.mjs +0 -307
- package/esm2020/src/management/gui/ControlTable.mjs +0 -118
- package/esm2020/src/management/gui/DisplayConvertor.mjs +0 -1679
- package/esm2020/src/management/gui/FieldValidator.mjs +0 -711
- package/esm2020/src/management/gui/GuiControlPropertyAdapter.mjs +0 -22
- package/esm2020/src/management/gui/HebrewDate.mjs +0 -278
- package/esm2020/src/management/gui/Helps.mjs +0 -237
- package/esm2020/src/management/gui/MgControlBase.mjs +0 -1858
- package/esm2020/src/management/gui/MgFormBase.mjs +0 -741
- package/esm2020/src/management/gui/PIC.mjs +0 -1185
- package/esm2020/src/management/gui/PropTable.mjs +0 -221
- package/esm2020/src/management/gui/Property.mjs +0 -1356
- package/esm2020/src/management/gui/ValidationDetails.mjs +0 -248
- package/esm2020/src/management/tasks/GuiDataCollection.mjs +0 -4
- package/esm2020/src/management/tasks/GuiTaskBase.mjs +0 -510
- package/esm2020/src/management/tasks/MgTimer.mjs +0 -21
- package/esm2020/src/management/tasks/TaskDefinitionId.mjs +0 -54
- package/esm2020/src/util/ObjectReference.mjs +0 -36
- package/esm2020/src/util/UsernamePasswordCredentials.mjs +0 -52
- package/fesm2015/magic-xpa-gui.mjs +0 -16391
- package/fesm2015/magic-xpa-gui.mjs.map +0 -1
- package/fesm2020/magic-xpa-gui.mjs.map +0 -1
|
@@ -1,223 +1,225 @@
|
|
|
1
|
-
import { List, RefParam } from '@magic-xpa/mscorelib';
|
|
2
|
-
import { GuiMgControl } from '../../gui/GuiMgControl';
|
|
3
|
-
import { PropParentInterface } from '../../gui/PropParentInterface';
|
|
4
|
-
import { GuiFieldBase } from '../data/GuiFieldBase';
|
|
5
|
-
import { MgControlType, StorageAttribute, XmlParser } from '@magic-xpa/utils';
|
|
6
|
-
import { MgFormBase } from './MgFormBase';
|
|
7
|
-
import { PIC } from './PIC';
|
|
8
|
-
import { PropTable } from './PropTable';
|
|
9
|
-
import { ValidationDetails } from './ValidationDetails';
|
|
10
|
-
import { Property } from './Property';
|
|
11
|
-
import { CommandType } from '../../GuiEnums';
|
|
12
|
-
import { NUM_TYPE } from '../data/NUM_TYPE';
|
|
13
|
-
import { DcValues } from '../data/DcValues';
|
|
14
|
-
import { ObjectReference } from '../../util/ObjectReference';
|
|
15
|
-
import { GuiControlPropertyAdapter } from './GuiControlPropertyAdapter';
|
|
16
|
-
export declare abstract class MgControlBase extends GuiControlPropertyAdapter implements PropParentInterface {
|
|
17
|
-
_ditIdx: number;
|
|
18
|
-
private _linkedControls;
|
|
19
|
-
_field: GuiFieldBase;
|
|
20
|
-
private _picStr;
|
|
21
|
-
_choiceDisps: List<string[]>;
|
|
22
|
-
_choiceLayerList: List<string[]>;
|
|
23
|
-
_choiceLinks: List<string[]>;
|
|
24
|
-
_choiceNums: List<NUM_TYPE[]>;
|
|
25
|
-
private _containerDitIdx;
|
|
26
|
-
_currReadOnly: List<boolean>;
|
|
27
|
-
private _dataCtrl;
|
|
28
|
-
_dcTableRefs: List<number>;
|
|
29
|
-
private _firstRefreshProperties;
|
|
30
|
-
private _form;
|
|
31
|
-
private _hasValidItmAndDispVal;
|
|
32
|
-
private _controlIsn;
|
|
33
|
-
private _linkedParentDitIdx;
|
|
34
|
-
_orgChoiceDisps: List<string[]>;
|
|
35
|
-
_parentTable: MgControlBase;
|
|
36
|
-
_pic: PIC;
|
|
37
|
-
private _picExpExists;
|
|
38
|
-
_prevIsNulls: List<boolean>;
|
|
39
|
-
private _prevPicExpResult;
|
|
40
|
-
_prevValues: List<string>;
|
|
41
|
-
_propTab: PropTable;
|
|
42
|
-
private _range;
|
|
43
|
-
private _rangeChanged;
|
|
44
|
-
_valExpId: number;
|
|
45
|
-
private _vd;
|
|
46
|
-
private _dcValId;
|
|
47
|
-
parent: number;
|
|
48
|
-
veeIndx: number;
|
|
49
|
-
SourceTableReference: ObjectReference;
|
|
50
|
-
ClipBoardDataExists: boolean;
|
|
51
|
-
DataType: StorageAttribute;
|
|
52
|
-
KeyStrokeOn: boolean;
|
|
53
|
-
ModifiedByUser: boolean;
|
|
54
|
-
Value: any;
|
|
55
|
-
IsNull: boolean;
|
|
56
|
-
forceRefresh: boolean;
|
|
57
|
-
private _isModal;
|
|
58
|
-
protected set Form(value: MgFormBase);
|
|
59
|
-
protected get Form(): MgFormBase;
|
|
60
|
-
get ControlIsn(): number;
|
|
61
|
-
RefreshOnVisible: boolean;
|
|
62
|
-
InControl: boolean;
|
|
63
|
-
ValidateControl: boolean;
|
|
64
|
-
PromptHelp: string;
|
|
65
|
-
constructor();
|
|
66
|
-
constructor(type: MgControlType, parentMgForm: MgFormBase, parentControl: number);
|
|
67
|
-
private constructor_0;
|
|
68
|
-
private constructor_1;
|
|
69
|
-
get UniqueName(): string;
|
|
70
|
-
get TaskTag(): string;
|
|
71
|
-
checkIfExistProp(propId: number): boolean;
|
|
72
|
-
getProp(propId: number): Property;
|
|
73
|
-
getForm(): MgFormBase;
|
|
74
|
-
getCompIdx(): number;
|
|
75
|
-
IsFirstRefreshOfProps(): boolean;
|
|
76
|
-
EvaluateExpression(expId: number, resType: StorageAttribute, length: number, contentTypeUnicode: boolean, resCellType: StorageAttribute, alwaysEvaluate: boolean, wasEvaluated: RefParam<boolean>): Promise<string>;
|
|
77
|
-
GetExpressionStorage(expId: number): StorageAttribute;
|
|
78
|
-
GetComputedProperty(propId: number): Property;
|
|
79
|
-
private initReferences;
|
|
80
|
-
createArrays(forceCreateArrays: boolean): void;
|
|
81
|
-
SetFocus(ctrl: MgControlBase, line: number, activateForm: boolean): Promise<void>;
|
|
82
|
-
InsertArrays(idx: number, count: number): void;
|
|
83
|
-
updateArrays(newSize: number): void;
|
|
84
|
-
updatePrevValArrays(newSize: number): void;
|
|
85
|
-
fillData(mgForm: MgFormBase, ditIdx: number, parser: XmlParser): void;
|
|
86
|
-
initInnerObjects(foundTagName: string, parser: XmlParser): boolean;
|
|
87
|
-
private ParseSourceTable;
|
|
88
|
-
private parseAttributes;
|
|
89
|
-
SetAttribute(attribute: string, valueStr: string): boolean;
|
|
90
|
-
setImage(): void;
|
|
91
|
-
setImageWithFileName(fileName: string): void;
|
|
92
|
-
private setContainer;
|
|
93
|
-
getName(): string;
|
|
94
|
-
getLinkedControls(): List<MgControlBase>;
|
|
95
|
-
isRepeatable(): boolean;
|
|
96
|
-
IsModal(): boolean;
|
|
97
|
-
getDisplayLine(useLineForItems: boolean): number;
|
|
98
|
-
isVisible(): boolean;
|
|
99
|
-
isEnabled(): boolean;
|
|
100
|
-
isModifiable(): boolean;
|
|
101
|
-
getDcVals(): DcValues;
|
|
102
|
-
getPrevIsNull(): boolean;
|
|
103
|
-
setPrevIsNull(newValue: boolean): void;
|
|
104
|
-
setPIC(picStr: string): void;
|
|
105
|
-
getPIC(): PIC;
|
|
106
|
-
getParent(): any;
|
|
107
|
-
getField(): GuiFieldBase;
|
|
108
|
-
setField(fieldOrFieldStrID: any): void;
|
|
109
|
-
private setField_0;
|
|
110
|
-
private setField_1;
|
|
111
|
-
setPicStr(format: string, expId: number): void;
|
|
112
|
-
setRange(newRange: string): void;
|
|
113
|
-
setValExp(expId: number): void;
|
|
114
|
-
buildCopyPicture(oldVal: string, newVal: string): ValidationDetails;
|
|
115
|
-
private getCopyOfVD;
|
|
116
|
-
getRanges(): string;
|
|
117
|
-
getRangedValue(newVal: any): string;
|
|
118
|
-
validate(newVal: any): string;
|
|
119
|
-
private getFieldByValueStr;
|
|
120
|
-
hasContainer(): boolean;
|
|
121
|
-
getLayer(): number;
|
|
122
|
-
computePIC(picExpResult: string): PIC;
|
|
123
|
-
getCurrentIndexOfChoice(): number[];
|
|
124
|
-
IsMultipleSelectionListBox(): boolean;
|
|
125
|
-
IsDateTimePicture(): boolean;
|
|
126
|
-
SupportsDataSource(): boolean;
|
|
127
|
-
HasAutocomplete(): boolean;
|
|
128
|
-
getIndexOfChoice(mgVal: string, line: number, isNull: boolean): Promise<number[]>;
|
|
129
|
-
getDispVals(line: number, execComputeChoice: boolean): Promise<string[]>;
|
|
130
|
-
private emptyChoice;
|
|
131
|
-
private computeChoice;
|
|
132
|
-
getTopMostForm(): MgFormBase;
|
|
133
|
-
private setUrl;
|
|
134
|
-
getMgValue(dispVal: any): Promise<string>;
|
|
135
|
-
getLinkValue(selectedIndice: string, line: number): Promise<string>;
|
|
136
|
-
private setText;
|
|
137
|
-
private setRadioChecked;
|
|
138
|
-
setControlToFocus(): void;
|
|
139
|
-
private setCheckBoxValue;
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
private
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
private
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
1
|
+
import { List, RefParam } from '@magic-xpa/mscorelib';
|
|
2
|
+
import { GuiMgControl } from '../../gui/GuiMgControl';
|
|
3
|
+
import { PropParentInterface } from '../../gui/PropParentInterface';
|
|
4
|
+
import { GuiFieldBase } from '../data/GuiFieldBase';
|
|
5
|
+
import { MgControlType, StorageAttribute, XmlParser } from '@magic-xpa/utils';
|
|
6
|
+
import { MgFormBase } from './MgFormBase';
|
|
7
|
+
import { PIC } from './PIC';
|
|
8
|
+
import { PropTable } from './PropTable';
|
|
9
|
+
import { ValidationDetails } from './ValidationDetails';
|
|
10
|
+
import { Property } from './Property';
|
|
11
|
+
import { CommandType } from '../../GuiEnums';
|
|
12
|
+
import { NUM_TYPE } from '../data/NUM_TYPE';
|
|
13
|
+
import { DcValues } from '../data/DcValues';
|
|
14
|
+
import { ObjectReference } from '../../util/ObjectReference';
|
|
15
|
+
import { GuiControlPropertyAdapter } from './GuiControlPropertyAdapter';
|
|
16
|
+
export declare abstract class MgControlBase extends GuiControlPropertyAdapter implements PropParentInterface {
|
|
17
|
+
_ditIdx: number;
|
|
18
|
+
private _linkedControls;
|
|
19
|
+
_field: GuiFieldBase;
|
|
20
|
+
private _picStr;
|
|
21
|
+
_choiceDisps: List<string[]>;
|
|
22
|
+
_choiceLayerList: List<string[]>;
|
|
23
|
+
_choiceLinks: List<string[]>;
|
|
24
|
+
_choiceNums: List<NUM_TYPE[]>;
|
|
25
|
+
private _containerDitIdx;
|
|
26
|
+
_currReadOnly: List<boolean>;
|
|
27
|
+
private _dataCtrl;
|
|
28
|
+
_dcTableRefs: List<number>;
|
|
29
|
+
private _firstRefreshProperties;
|
|
30
|
+
private _form;
|
|
31
|
+
private _hasValidItmAndDispVal;
|
|
32
|
+
private _controlIsn;
|
|
33
|
+
private _linkedParentDitIdx;
|
|
34
|
+
_orgChoiceDisps: List<string[]>;
|
|
35
|
+
_parentTable: MgControlBase;
|
|
36
|
+
_pic: PIC;
|
|
37
|
+
private _picExpExists;
|
|
38
|
+
_prevIsNulls: List<boolean>;
|
|
39
|
+
private _prevPicExpResult;
|
|
40
|
+
_prevValues: List<string>;
|
|
41
|
+
_propTab: PropTable;
|
|
42
|
+
private _range;
|
|
43
|
+
private _rangeChanged;
|
|
44
|
+
_valExpId: number;
|
|
45
|
+
private _vd;
|
|
46
|
+
private _dcValId;
|
|
47
|
+
parent: number;
|
|
48
|
+
veeIndx: number;
|
|
49
|
+
SourceTableReference: ObjectReference;
|
|
50
|
+
ClipBoardDataExists: boolean;
|
|
51
|
+
DataType: StorageAttribute;
|
|
52
|
+
KeyStrokeOn: boolean;
|
|
53
|
+
ModifiedByUser: boolean;
|
|
54
|
+
Value: any;
|
|
55
|
+
IsNull: boolean;
|
|
56
|
+
forceRefresh: boolean;
|
|
57
|
+
private _isModal;
|
|
58
|
+
protected set Form(value: MgFormBase);
|
|
59
|
+
protected get Form(): MgFormBase;
|
|
60
|
+
get ControlIsn(): number;
|
|
61
|
+
RefreshOnVisible: boolean;
|
|
62
|
+
InControl: boolean;
|
|
63
|
+
ValidateControl: boolean;
|
|
64
|
+
PromptHelp: string;
|
|
65
|
+
constructor();
|
|
66
|
+
constructor(type: MgControlType, parentMgForm: MgFormBase, parentControl: number);
|
|
67
|
+
private constructor_0;
|
|
68
|
+
private constructor_1;
|
|
69
|
+
get UniqueName(): string;
|
|
70
|
+
get TaskTag(): string;
|
|
71
|
+
checkIfExistProp(propId: number): boolean;
|
|
72
|
+
getProp(propId: number): Property;
|
|
73
|
+
getForm(): MgFormBase;
|
|
74
|
+
getCompIdx(): number;
|
|
75
|
+
IsFirstRefreshOfProps(): boolean;
|
|
76
|
+
EvaluateExpression(expId: number, resType: StorageAttribute, length: number, contentTypeUnicode: boolean, resCellType: StorageAttribute, alwaysEvaluate: boolean, wasEvaluated: RefParam<boolean>): Promise<string>;
|
|
77
|
+
GetExpressionStorage(expId: number): StorageAttribute;
|
|
78
|
+
GetComputedProperty(propId: number): Property;
|
|
79
|
+
private initReferences;
|
|
80
|
+
createArrays(forceCreateArrays: boolean): void;
|
|
81
|
+
SetFocus(ctrl: MgControlBase, line: number, activateForm: boolean): Promise<void>;
|
|
82
|
+
InsertArrays(idx: number, count: number): void;
|
|
83
|
+
updateArrays(newSize: number): void;
|
|
84
|
+
updatePrevValArrays(newSize: number): void;
|
|
85
|
+
fillData(mgForm: MgFormBase, ditIdx: number, parser: XmlParser): void;
|
|
86
|
+
initInnerObjects(foundTagName: string, parser: XmlParser): boolean;
|
|
87
|
+
private ParseSourceTable;
|
|
88
|
+
private parseAttributes;
|
|
89
|
+
SetAttribute(attribute: string, valueStr: string): boolean;
|
|
90
|
+
setImage(): void;
|
|
91
|
+
setImageWithFileName(fileName: string): void;
|
|
92
|
+
private setContainer;
|
|
93
|
+
getName(): string;
|
|
94
|
+
getLinkedControls(): List<MgControlBase>;
|
|
95
|
+
isRepeatable(): boolean;
|
|
96
|
+
IsModal(): boolean;
|
|
97
|
+
getDisplayLine(useLineForItems: boolean): number;
|
|
98
|
+
isVisible(): boolean;
|
|
99
|
+
isEnabled(): boolean;
|
|
100
|
+
isModifiable(): boolean;
|
|
101
|
+
getDcVals(): DcValues;
|
|
102
|
+
getPrevIsNull(): boolean;
|
|
103
|
+
setPrevIsNull(newValue: boolean): void;
|
|
104
|
+
setPIC(picStr: string): void;
|
|
105
|
+
getPIC(): PIC;
|
|
106
|
+
getParent(): any;
|
|
107
|
+
getField(): GuiFieldBase;
|
|
108
|
+
setField(fieldOrFieldStrID: any): void;
|
|
109
|
+
private setField_0;
|
|
110
|
+
private setField_1;
|
|
111
|
+
setPicStr(format: string, expId: number): void;
|
|
112
|
+
setRange(newRange: string): void;
|
|
113
|
+
setValExp(expId: number): void;
|
|
114
|
+
buildCopyPicture(oldVal: string, newVal: string): ValidationDetails;
|
|
115
|
+
private getCopyOfVD;
|
|
116
|
+
getRanges(): string;
|
|
117
|
+
getRangedValue(newVal: any): string;
|
|
118
|
+
validate(newVal: any): string;
|
|
119
|
+
private getFieldByValueStr;
|
|
120
|
+
hasContainer(): boolean;
|
|
121
|
+
getLayer(): number;
|
|
122
|
+
computePIC(picExpResult: string): PIC;
|
|
123
|
+
getCurrentIndexOfChoice(): number[];
|
|
124
|
+
IsMultipleSelectionListBox(): boolean;
|
|
125
|
+
IsDateTimePicture(): boolean;
|
|
126
|
+
SupportsDataSource(): boolean;
|
|
127
|
+
HasAutocomplete(): boolean;
|
|
128
|
+
getIndexOfChoice(mgVal: string, line: number, isNull: boolean): Promise<number[]>;
|
|
129
|
+
getDispVals(line: number, execComputeChoice: boolean): Promise<string[]>;
|
|
130
|
+
private emptyChoice;
|
|
131
|
+
private computeChoice;
|
|
132
|
+
getTopMostForm(): MgFormBase;
|
|
133
|
+
private setUrl;
|
|
134
|
+
getMgValue(dispVal: any): Promise<string>;
|
|
135
|
+
getLinkValue(selectedIndice: string, line: number): Promise<string>;
|
|
136
|
+
private setText;
|
|
137
|
+
private setRadioChecked;
|
|
138
|
+
setControlToFocus(): void;
|
|
139
|
+
private setCheckBoxValue;
|
|
140
|
+
setAsThreeState(): void;
|
|
141
|
+
isThreeStateCheckBox(): boolean;
|
|
142
|
+
private refreshAndSetItemListByDataSource;
|
|
143
|
+
setDcRef(dcId: number): void;
|
|
144
|
+
setImageList(url: string): void;
|
|
145
|
+
updatePropertyLogicNesting(propId: number, commandType: CommandType, val: boolean, updateThis: boolean): Promise<void>;
|
|
146
|
+
SetEnabled(val: boolean): void;
|
|
147
|
+
updateChildrenPropValue(propId: number, commandType: CommandType, val: boolean): Promise<void>;
|
|
148
|
+
isDescendentOfControl(control: GuiMgControl): boolean;
|
|
149
|
+
updateSubformChildrenPropValue(propId: number, commandType: CommandType, val: boolean): void;
|
|
150
|
+
isChildOnCurrentLayer(child: MgControlBase): boolean;
|
|
151
|
+
getCurrentLinkIdx(): number;
|
|
152
|
+
getLayerFromLinkIdx(indice: number[]): number[];
|
|
153
|
+
private getLinkIdxFromLayer;
|
|
154
|
+
isParentPropValue(propId: number): boolean;
|
|
155
|
+
getLinkedParent(checkSubformFather: boolean): GuiControlPropertyAdapter;
|
|
156
|
+
SetCurrReadOnly(newVal: boolean): void;
|
|
157
|
+
GetCurrReadOnly(): boolean;
|
|
158
|
+
isDataCtrl(): boolean;
|
|
159
|
+
getDcRef(): number;
|
|
160
|
+
private getDcLineNum;
|
|
161
|
+
private optionIsValid;
|
|
162
|
+
private getOrderedDispList;
|
|
163
|
+
resetPrevVal(): void;
|
|
164
|
+
setPrevIsNull_ToNull(): void;
|
|
165
|
+
expressionSetAsData(): boolean;
|
|
166
|
+
clearRange(line: number): void;
|
|
167
|
+
haveToCheckParentValue(): boolean;
|
|
168
|
+
isContainedInLinkedParent(): boolean;
|
|
169
|
+
private static combineStringArrays;
|
|
170
|
+
GetComputedBooleanProperty(propId: number, defaultRetVal: boolean, line?: number): boolean;
|
|
171
|
+
private GetComputedBooleanProperty_0;
|
|
172
|
+
private GetComputedBooleanProperty_1;
|
|
173
|
+
checkPropWithLine(propId: number, defaultRetVal: boolean, line: number): Promise<boolean>;
|
|
174
|
+
checkProp(propId: number, defaultRetVal: boolean): Promise<boolean>;
|
|
175
|
+
isPropertyRepeatable(propId: number): boolean;
|
|
176
|
+
SetAndRefreshDisplayValue(mgVal: string, isNull: boolean): Promise<void>;
|
|
177
|
+
UpdateModifiedByUser(newValue: string): void;
|
|
178
|
+
private rtrimValue;
|
|
179
|
+
private getMinimumValueLength;
|
|
180
|
+
isNullValue(str: string): boolean;
|
|
181
|
+
CanGetNullFromControlValue(): boolean;
|
|
182
|
+
isChoiceNull(idx: number): boolean;
|
|
183
|
+
ComputeAndRefreshDisplayValue(forceRefresh: boolean): Promise<void>;
|
|
184
|
+
ShouldRefreshOnControlEnter(): boolean;
|
|
185
|
+
RefreshDisplayValue(mgVal: string): Promise<void>;
|
|
186
|
+
RefreshDisplay(onlyRepeatableProps?: boolean): Promise<void>;
|
|
187
|
+
private RefreshDisplay_1;
|
|
188
|
+
ShouldComputeAndRefreshOnClosedForm(): boolean;
|
|
189
|
+
refreshProperties(onlyRepeatableProps: boolean): Promise<void>;
|
|
190
|
+
refreshTabForLayerList(line: number): Promise<void>;
|
|
191
|
+
refreshAndSetItemsList(line: number, execComputeChoice: boolean): Promise<void>;
|
|
192
|
+
refreshDispRange(execComputeChoice: boolean): Promise<string[]>;
|
|
193
|
+
refreshItmRange(execComputeChoice: boolean): Promise<string[]>;
|
|
194
|
+
GetItemsRange(): Promise<string[]>;
|
|
195
|
+
GetDisplayRange(): Promise<string[]>;
|
|
196
|
+
private createDefaultProps;
|
|
197
|
+
private setLinkedParentIdx;
|
|
198
|
+
buildPicture(oldVal: any, val: any): ValidationDetails;
|
|
199
|
+
isDifferentValue(newValue: any, isNull: boolean, checkNullValue: boolean): boolean;
|
|
200
|
+
CompareDate(d1: Date, d2: Date): boolean;
|
|
201
|
+
CompareTime(d1: Date, d2: Date): boolean;
|
|
202
|
+
isColumnSortable(): boolean;
|
|
203
|
+
getColumnChildControl(): MgControlBase;
|
|
204
|
+
getControlNameForHandlerSearch(): string;
|
|
205
|
+
linkCtrl(ctrl: MgControlBase): void;
|
|
206
|
+
removeRefFromField(): void;
|
|
207
|
+
getDitIdx(): number;
|
|
208
|
+
setDcValId(dcValId: number): void;
|
|
209
|
+
SetKeyboardLanguage(): void;
|
|
210
|
+
Init(): void;
|
|
211
|
+
IsParkable(): Promise<boolean>;
|
|
212
|
+
HasExpOrParentTaskField(): boolean;
|
|
213
|
+
isParkable(checkEnabledAndVisible: boolean): Promise<boolean>;
|
|
214
|
+
RaiseControlHitOnLeftClickOfMouseDown(): boolean;
|
|
215
|
+
GetVarIndex(): number;
|
|
216
|
+
RaiseControlHitOnMouseDown(leftClickWasPressed: boolean): boolean;
|
|
217
|
+
OnSubformClick(): void;
|
|
218
|
+
GetSubformMgForm(): MgFormBase;
|
|
219
|
+
PropertyExists(id: number): boolean;
|
|
220
|
+
toString(): string;
|
|
221
|
+
isDateZero(val: Date): boolean;
|
|
222
|
+
IsDefaultRouterOutlet(): boolean;
|
|
223
|
+
IsRouterOutlet(): boolean;
|
|
224
|
+
ZoomButtonInitialization(): Promise<void>;
|
|
225
|
+
}
|