testaugnitosdk2 1.0.12

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.
Files changed (79) hide show
  1. package/README.md +442 -0
  2. package/dist/Augnito.d.ts +130 -0
  3. package/dist/AugnitoMobile.d.ts +13 -0
  4. package/dist/api/BaseAPI.d.ts +32 -0
  5. package/dist/api/FactoryAPI.d.ts +25 -0
  6. package/dist/api/Formatting/FormattingAPI.d.ts +15 -0
  7. package/dist/api/Formatting/FormattingModels.d.ts +29 -0
  8. package/dist/api/Macros/MacrosAPI.d.ts +28 -0
  9. package/dist/api/Macros/MacrosModels.d.ts +32 -0
  10. package/dist/api/MedicineOrdering/MedicineOrderderingData.d.ts +6 -0
  11. package/dist/api/MedicineOrdering/MedicineOrderingAPI.d.ts +15 -0
  12. package/dist/api/MedicineOrdering/MedicineOrderingModels.d.ts +26 -0
  13. package/dist/api/Vocabulary/VocabularyAPI.d.ts +31 -0
  14. package/dist/api/Vocabulary/VocabularyModels.d.ts +38 -0
  15. package/dist/api/index.d.ts +9 -0
  16. package/dist/augnitosdk.js +11067 -0
  17. package/dist/client/MobileClient.d.ts +17 -0
  18. package/dist/client/NotificationClient.d.ts +25 -0
  19. package/dist/client/PhilipsMicClient.d.ts +17 -0
  20. package/dist/client/WebClient.d.ts +59 -0
  21. package/dist/commands/AugnitoCommands.d.ts +93 -0
  22. package/dist/commands/AugnitoCommandsRegex.d.ts +9 -0
  23. package/dist/commands/AugnitoCommandsStatic.d.ts +6 -0
  24. package/dist/commands/AugnitoCustomCommands.d.ts +8 -0
  25. package/dist/commands/index.d.ts +1 -0
  26. package/dist/commands/utils/CustomCommandModel.d.ts +5 -0
  27. package/dist/commands/utils/TextToWordInteger.d.ts +5 -0
  28. package/dist/config/AugnitoConfig.d.ts +113 -0
  29. package/dist/config/AugnitoFormattingConfig.d.ts +10 -0
  30. package/dist/config/AugnitoMobileConfig.d.ts +7 -0
  31. package/dist/config/AugnitoVocabularyConfig.d.ts +10 -0
  32. package/dist/config/ConfigValidator.d.ts +15 -0
  33. package/dist/config/IConfiguration .d.ts +35 -0
  34. package/dist/config/PhilipsMicConfig.d.ts +8 -0
  35. package/dist/config/SDKConfig.d.ts +40 -0
  36. package/dist/config/SDKConfigMobile.d.ts +21 -0
  37. package/dist/config/index.d.ts +4 -0
  38. package/dist/index.d.ts +10 -0
  39. package/dist/index.js +188 -0
  40. package/dist/interop/core/CommonEditorUtils.d.ts +10 -0
  41. package/dist/interop/core/EditorHandler.d.ts +35 -0
  42. package/dist/interop/core/EditorType.d.ts +8 -0
  43. package/dist/interop/core/PhilipsMicMode.d.ts +6 -0
  44. package/dist/interop/core/ProcessorFactory.d.ts +9 -0
  45. package/dist/interop/core/ProcessorHandler.d.ts +35 -0
  46. package/dist/interop/core/RichEditClientCommand.d.ts +416 -0
  47. package/dist/interop/core/TargetEditor.d.ts +7 -0
  48. package/dist/interop/index.d.ts +3 -0
  49. package/dist/interop/processors/BaseInteropProcessor.d.ts +10 -0
  50. package/dist/interop/processors/CKEditor4InteropProcessor.d.ts +14 -0
  51. package/dist/interop/processors/CKEditor5InteropProcessor.d.ts +17 -0
  52. package/dist/interop/processors/CommonContentEditableProcessor.d.ts +63 -0
  53. package/dist/interop/processors/DevExpressRichEditProcessor.d.ts +14 -0
  54. package/dist/interop/processors/GenericInteropProcessor.d.ts +11 -0
  55. package/dist/interop/processors/HTMLInteropProcessor.d.ts +41 -0
  56. package/dist/interop/processors/InteropProcessor.d.ts +11 -0
  57. package/dist/interop/processors/InteropProcessorCommon.d.ts +21 -0
  58. package/dist/interop/types/AnchoredEditorData.d.ts +4 -0
  59. package/dist/interop/types/CKEditorExtensions.d.ts +8 -0
  60. package/dist/interop/types/CommonTypes.d.ts +27 -0
  61. package/dist/interop/types/DynamicBadge.d.ts +5 -0
  62. package/dist/interop/types/DynamicSelect.d.ts +14 -0
  63. package/dist/recipe/ActionRecipe.d.ts +19 -0
  64. package/dist/recipe/index.d.ts +1 -0
  65. package/dist/support/AugnitoMobileSocketResponse.d.ts +19 -0
  66. package/dist/support/AugnitoNotificationMessage.d.ts +9 -0
  67. package/dist/support/AugnitoSDKErrorMessage.d.ts +7 -0
  68. package/dist/support/AugnitoSDKErrors.d.ts +7 -0
  69. package/dist/support/AugnitoSDKEvent.d.ts +11 -0
  70. package/dist/support/AugnitoServerStatusCode.d.ts +7 -0
  71. package/dist/support/AugnitoSocketResponse.d.ts +17 -0
  72. package/dist/support/AugnitoSource.d.ts +17 -0
  73. package/dist/support/AugnitoStatus.d.ts +27 -0
  74. package/dist/utils/AugnitoDomainUtils.d.ts +8 -0
  75. package/dist/utils/AugnitoUtils.d.ts +11 -0
  76. package/dist/utils/Guard.d.ts +11 -0
  77. package/dist/utils/Logger.d.ts +6 -0
  78. package/dist/utils/RichEditAction.d.ts +11 -0
  79. package/package.json +79 -0
@@ -0,0 +1,10 @@
1
+ import { AnchoredEditorData } from '../types/AnchoredEditorData';
2
+ import { TargetEditor } from './TargetEditor';
3
+ declare abstract class CommonEditorUtils {
4
+ static anchoredEditor: AnchoredEditorData | undefined;
5
+ static setAnchoredElement(activeEditor: Element | undefined, editorName: string | null): void;
6
+ static moveToPreviousField(activeEditor: Element, listOfControls: TargetEditor[]): void;
7
+ static moveToNextField(activeEditor: Element, listOfControls: TargetEditor[]): void;
8
+ static getActiveEditorElement(): Element | null;
9
+ }
10
+ export { CommonEditorUtils };
@@ -0,0 +1,35 @@
1
+ import { ActionRecipe } from '../../recipe/ActionRecipe';
2
+ import { EditorType } from './EditorType';
3
+ import { TargetEditor } from './TargetEditor';
4
+ declare class EditorHandler {
5
+ private _listOfControls;
6
+ private _editor?;
7
+ private processorHandler;
8
+ constructor(_listOfControls: TargetEditor[], _enableLogs: boolean, _editor?: EditorType | undefined);
9
+ /**
10
+ * Writes in the current editor
11
+ * @param recipe The recipe received from the server
12
+ */
13
+ onFinalResult(recipe: Partial<ActionRecipe>): void;
14
+ /**
15
+ * Process the command in the current editor
16
+ * @param command The command received from the server
17
+ */
18
+ onCommandResult(command: Partial<ActionRecipe>): void;
19
+ /**
20
+ * To set selected editor for text anchoring
21
+ * @param activeEditor The editor selected for anchoring
22
+ */
23
+ onSetAnchoredEditor(activeEditor: Element | undefined, editorName: string | null): void;
24
+ handleDynamicFieldNavigation(recipe: Partial<ActionRecipe>): void;
25
+ handleGotoDocumentEnd(): void;
26
+ getCursorPosition(): any;
27
+ setCursorAtPosition(position: number): void;
28
+ /**
29
+ *Intercepts common commands (independent from editors)
30
+ * @param command The command received from the server
31
+ * @param activeEditor The current focused editor
32
+ */
33
+ private interfaceSharedCommand;
34
+ }
35
+ export { EditorHandler };
@@ -0,0 +1,8 @@
1
+ declare enum EditorType {
2
+ HTML = 1,
3
+ CKEDITOR4 = 2,
4
+ CKEDITOR5 = 3,
5
+ DEVEXPRESS = 4,
6
+ GENERIC = 99
7
+ }
8
+ export { EditorType };
@@ -0,0 +1,6 @@
1
+ declare enum PhilipsMicMode {
2
+ HandsFree = 1,
3
+ PushToTalk = 2,
4
+ BOTH = 3
5
+ }
6
+ export { PhilipsMicMode };
@@ -0,0 +1,9 @@
1
+ import { CKEditor4InteropProcessor } from '../processors/CKEditor4InteropProcessor';
2
+ import { CKEditor5InteropProcessor } from '../processors/CKEditor5InteropProcessor';
3
+ import { DevExpressRichEditProcessor } from '../processors/DevExpressRichEditProcessor';
4
+ import { GenericInteropProcessor } from '../processors/GenericInteropProcessor';
5
+ import { HTMLInteropProcessor } from '../processors/HTMLInteropProcessor';
6
+ import { EditorType } from './EditorType';
7
+ export declare class ProcessorFactory {
8
+ static createProcessor(editorType: EditorType, enableLogs: boolean): HTMLInteropProcessor | CKEditor4InteropProcessor | CKEditor5InteropProcessor | DevExpressRichEditProcessor | GenericInteropProcessor;
9
+ }
@@ -0,0 +1,35 @@
1
+ import { InteropProcessor } from '../processors/InteropProcessor';
2
+ import { EditorType } from './EditorType';
3
+ import { TargetEditor } from './TargetEditor';
4
+ export declare class ProcessorHandler {
5
+ private _listOfControls;
6
+ private _enableLogs;
7
+ private _editorType?;
8
+ private _interopProcessors;
9
+ private _logTag;
10
+ constructor(_listOfControls: TargetEditor[], _enableLogs: boolean, _editorType?: EditorType | undefined);
11
+ /**
12
+ * returns an interop processor for the provided element. If a list of controls
13
+ * is present the processor only checks within the editors present on the list.
14
+ * If there is no list of controls only html interop processor is checked for.
15
+ * @param editor HTMLElement editor
16
+ * @returns an adequate processor if one found
17
+ */
18
+ getProcessorForEditor(editor: Element): InteropProcessor;
19
+ /**
20
+ * Checks if the current focused editor is a valid editor
21
+ * @returns If it is valid, returns current editor Element; otherwise returns false
22
+ */
23
+ getValidEditor(): Element | null;
24
+ private getActiveEditorElement;
25
+ /**
26
+ * checks if an editor is a valid element to interact with. If a list of control is present
27
+ * the Editor must be within the list
28
+ * @param editor Element holding the editor
29
+ * @returns true if it's valid
30
+ */
31
+ private isValidEditor;
32
+ private getProcessor;
33
+ private isHtmlEditor;
34
+ private isContentEditable;
35
+ }
@@ -0,0 +1,416 @@
1
+ export declare enum RichEditClientCommand {
2
+ None = 0,
3
+ filenew = 1,
4
+ fileopen = 2,
5
+ filesave = 3,
6
+ filesaveas = 4,
7
+ fileprint = 5,
8
+ undoit = 6,
9
+ redoit = 7,
10
+ pasteselection = 8,
11
+ copyselection = 9,
12
+ cutselection = 10,
13
+ changefontname = 11,
14
+ changestyle = 12,
15
+ changefontsize = 13,
16
+ increasefontsize = 14,
17
+ decreasefontsize = 15,
18
+ maketextuppercase = 16,
19
+ maketextlowercase = 17,
20
+ capitalizeeachwordtextcase = 18,
21
+ toggletextcase = 19,
22
+ togglefontbold = 20,
23
+ togglefontitalic = 21,
24
+ togglefontunderline = 22,
25
+ togglefontdoubleunderline = 23,
26
+ togglefontstrikeout = 24,
27
+ togglefontsuperscript = 26,
28
+ togglefontsubscript = 27,
29
+ changefontforecolor = 28,
30
+ changefontbackcolor = 29,
31
+ clearformatting = 30,
32
+ togglebulletedlistitem = 31,
33
+ togglenumberinglistitem = 32,
34
+ togglemultilevellistitem = 33,
35
+ decreaseindent = 34,
36
+ increaseindent = 35,
37
+ toggleshowwhitespace = 36,
38
+ toggleparagraphalignmentleft = 37,
39
+ toggleparagraphalignmentcenter = 38,
40
+ toggleparagraphalignmentright = 39,
41
+ toggleparagraphalignmentjustify = 40,
42
+ setsingleparagraphspacing = 41,
43
+ setsesquialteralparagraphspacing = 42,
44
+ setdoubleparagraphspacing = 43,
45
+ addspacingbeforeparagraph = 45,
46
+ addspacingafterparagraph = 46,
47
+ removespacingbeforeparagraph = 47,
48
+ removespacingafterparagraph = 48,
49
+ changeparagraphbackcolor = 49,
50
+ find = 50,
51
+ replace = 51,
52
+ showfontform = 52,
53
+ showparagraphform = 53,
54
+ insertpagebreak = 54,
55
+ showinserttableform = 55,
56
+ insertpicture = 56,
57
+ showbookmarkform = 58,
58
+ showhyperlinkform = 59,
59
+ showsymbolform = 65,
60
+ setnormalsectionpagemargins = 66,
61
+ setnarrowsectionpagemargins = 67,
62
+ setmoderatesectionpagemargins = 68,
63
+ setwidesectionpagemargins = 69,
64
+ showpagemarginssetupform = 70,
65
+ setportraitpageorientation = 71,
66
+ setlandscapepageorientation = 72,
67
+ showpagepapersetupform = 73,
68
+ setsectiononecolumn = 74,
69
+ setsectiontwocolumns = 75,
70
+ setsectionthreecolumns = 76,
71
+ showcolumnssetupform = 77,
72
+ insertcolumnbreak = 79,
73
+ insertsectionbreaknextpage = 80,
74
+ insertsectionbreakevenpage = 81,
75
+ insertsectionbreakoddpage = 82,
76
+ changepagecolor = 90,
77
+ toggleshowhorizontalruler = 94,
78
+ fullscreen = 98,
79
+ setsectionlegalpaperkind = 99,
80
+ setsectionfoliopaperkind = 100,
81
+ setsectiona4paperkind = 101,
82
+ setsectiona5paperkind = 102,
83
+ setsectiona6paperkind = 103,
84
+ setsectionb5paperkind = 104,
85
+ setsectionexecutivepaperkind = 105,
86
+ selectall = 106,
87
+ showpagesetupform = 107,
88
+ shownumberinglistform = 108,
89
+ extendlinedown = 109,
90
+ extendlineend = 110,
91
+ extendlinestart = 111,
92
+ extendlineup = 112,
93
+ extendnextcharacter = 113,
94
+ extendpreviouscharacter = 114,
95
+ extendselectline = 115,
96
+ insertparagraph = 116,
97
+ inserttext = 117,
98
+ linedown = 118,
99
+ gotolineend = 119,
100
+ gotolinestart = 120,
101
+ lineup = 121,
102
+ nextcharacter = 122,
103
+ previouscharacter = 123,
104
+ selectline = 124,
105
+ togglebackspacekey = 125,
106
+ toggledeletekey = 126,
107
+ insertlinebreak = 127,
108
+ nextpage = 128,
109
+ extendnextpage = 129,
110
+ previouspage = 130,
111
+ extendpreviouspage = 131,
112
+ changeinlinepicturescale = 132,
113
+ incrementparagraphleftindent = 133,
114
+ decrementparagraphleftindent = 134,
115
+ dragmovecontent = 135,
116
+ dragcopycontent = 136,
117
+ insertspace = 137,
118
+ rulersectionmarginleft = 138,
119
+ rulersectionmarginright = 139,
120
+ rulerparagraphrightindent = 140,
121
+ rulersectioncolumnssettings = 141,
122
+ rulerparagraphleftindents = 142,
123
+ inserttabmark = 143,
124
+ insertshifttabmark = 144,
125
+ gotodocumentstart = 145,
126
+ extenddocumentstart = 146,
127
+ gotodocumentend = 147,
128
+ extenddocumentend = 148,
129
+ gotonextword = 149,
130
+ extendgotonextword = 150,
131
+ gotoprevword = 151,
132
+ extendgotoprevword = 152,
133
+ gotostartparagraph = 153,
134
+ extendgotostartparagraph = 154,
135
+ gotoendparagraph = 155,
136
+ extendgotoendparagraph = 156,
137
+ reloaddocument = 157,
138
+ showerrormodelischangedmessagecommand = 158,
139
+ showerrorsessionhasexpiredmessagecommand = 159,
140
+ selectparagraph = 160,
141
+ showerroropeningandoverstoreimpossiblemessagecommand = 161,
142
+ setsectionletterpaperkind = 162,
143
+ showerrorclipboardaccessdeniedmessagecommand = 163,
144
+ selectlinenoupdatecontrolstate = 164,
145
+ extendselectlinenoupdatecontrolstate = 165,
146
+ showtabsform = 166,
147
+ showcustomnumberinglistform = 167,
148
+ showservicefontform = 168,
149
+ showservicesymbolsform = 169,
150
+ restartnumberinglist = 170,
151
+ deletetabruler = 171,
152
+ inserttabruler = 172,
153
+ movetabruler = 173,
154
+ incrementnumberingindent = 174,
155
+ decrementnumberingindent = 175,
156
+ incrementparagraphindentfromfirstrow = 176,
157
+ decrementparagraphindentfromfirstrow = 177,
158
+ createfield = 178,
159
+ updatefield = 179,
160
+ togglefieldcodes = 180,
161
+ showallfieldcodes = 186,
162
+ showallfieldresults = 187,
163
+ toggleallfields = 188,
164
+ continuenumberinglist = 189,
165
+ insertnumerationtoparagraphs = 190,
166
+ deletenumerationfromparagraphs = 191,
167
+ showerrorinnerexceptionmessagecommand = 192,
168
+ showerrorauthexceptionmessagecommand = 193,
169
+ showedithyperlinkform = 194,
170
+ openhyperlink = 195,
171
+ removehyperlink = 196,
172
+ showerrorsavingmessagecommand = 197,
173
+ showerroropeningmessagecommand = 198,
174
+ showerrordocvariableerrorcommand = 199,
175
+ updateallfields = 200,
176
+ insertnonbreakingspace = 201,
177
+ removehyperlinks = 202,
178
+ createdatefield = 203,
179
+ createtimefield = 204,
180
+ createpagefield = 205,
181
+ showcreatehyperlinkform = 206,
182
+ sentencecase = 207,
183
+ switchtextcase = 208,
184
+ gotofirstdatarecord = 209,
185
+ gotopreviousdatarecord = 210,
186
+ gotonextdatarecord = 211,
187
+ gotolastdatarecord = 212,
188
+ toggleviewmergeddata = 213,
189
+ showinsertmergefieldform = 214,
190
+ createmergefield = 215,
191
+ showfinishandmergeform = 216,
192
+ showsavemergeddocumentform = 218,
193
+ addselectedlinecommandnoupdatecontrolstate = 219,
194
+ insertheader = 220,
195
+ insertfooter = 221,
196
+ linkheaderfootertoprevious = 222,
197
+ createbookmark = 225,
198
+ deletebookmarks = 226,
199
+ gotopageheader = 227,
200
+ gotopagefooter = 228,
201
+ gotonextpageheaderfooter = 229,
202
+ gotopreviouspageheaderfooter = 230,
203
+ toggledifferentfirstpage = 231,
204
+ toggledifferentoddandevenpages = 232,
205
+ closepageheaderfooter = 233,
206
+ contextitem_headersfooters = 234,
207
+ insertpagenumberfield = 235,
208
+ insertpagecountfield = 236,
209
+ gotobookmark = 237,
210
+ inserttablecore = 238,
211
+ contextitem_tables = 239,
212
+ showtablepropertiesform = 240,
213
+ showcelloptionsform = 242,
214
+ inserttablecolumntotheleft = 243,
215
+ inserttablecolumntotheright = 244,
216
+ inserttablerowbelow = 245,
217
+ inserttablerowabove = 246,
218
+ deletetablerows = 247,
219
+ deletetablecolumns = 248,
220
+ inserttablecellwithshifttotheleft = 249,
221
+ deletetablecellswithshifttothehorizontally = 250,
222
+ deletetable = 251,
223
+ showinserttablecellsform = 252,
224
+ showdeletetablecellsform = 253,
225
+ mergetablecells = 254,
226
+ showsplittablecellsform = 255,
227
+ splittablecellscommand = 256,
228
+ inserttablecellswithshifttothevertically = 257,
229
+ deletetablecellswithshifttothevertically = 258,
230
+ showbordershadingform = 259,
231
+ tablecellaligntopleft = 260,
232
+ tablecellaligntopcenter = 261,
233
+ tablecellaligntopright = 262,
234
+ tablecellalignmiddleleft = 263,
235
+ tablecellalignmiddlecenter = 264,
236
+ tablecellalignmiddleright = 265,
237
+ tablecellalignbottomleft = 266,
238
+ tablecellalignbottomcenter = 267,
239
+ tablecellalignbottomright = 268,
240
+ applytablestyle = 269,
241
+ toggletablecellstopborder = 270,
242
+ toggletablecellsrightborder = 271,
243
+ toggletablecellsbottomborder = 272,
244
+ toggletablecellsleftborder = 273,
245
+ toggletablecellnoborder = 274,
246
+ toggletablecellallborders = 275,
247
+ toggletablecellinsideborders = 276,
248
+ toggletablecellinsidehorizontalborders = 277,
249
+ toggletablecellinsideverticalborders = 278,
250
+ toggletablecelloutsideborders = 279,
251
+ togglefirstrow = 280,
252
+ togglelastrow = 281,
253
+ togglefirstcolumn = 282,
254
+ togglelastcolumn = 283,
255
+ togglebandedrows = 284,
256
+ togglebandedcolumn = 285,
257
+ selecttablecell = 286,
258
+ selecttablecolumn = 287,
259
+ selecttablerow = 288,
260
+ selecttable = 289,
261
+ changetablebordercolorrepositoryitem = 290,
262
+ changetableborderwidthrepositoryitem = 291,
263
+ changetableborderstylerepositoryitem = 292,
264
+ showerrorpathtoolongcommand = 293,
265
+ changetablecellshading = 294,
266
+ toggleshowtablegridlines = 295,
267
+ extendselecttablecell = 296,
268
+ extendselecttablecolumn = 297,
269
+ extendselecttablerow = 298,
270
+ extendselecttable = 299,
271
+ selecttablecellsrange = 300,
272
+ showservicebordershadingform = 301,
273
+ rulertablecolumnseparators = 302,
274
+ changeactivesubdocumenttomain = 303,
275
+ changeactivesubdocumenttoheaderfooterbypageindex = 304,
276
+ changeactivesubdocumenttoheaderfooterbysubdocument = 305,
277
+ showerrorinvaliddocumentformat = 306,
278
+ setsectionpagesize = 307,
279
+ setsectioncolumncount = 308,
280
+ changetablerowheight = 309,
281
+ changetablecellwidth = 310,
282
+ changetablecolumnwidth = 311,
283
+ changetablelook = 312,
284
+ showspellcheckerform = 313,
285
+ ignorespellingerror = 314,
286
+ ignoreallspellingerrors = 315,
287
+ deleterepeatedword = 316,
288
+ addwordtodictionary = 317,
289
+ changespellingerror = 318,
290
+ changeallspellingerrors = 319,
291
+ showspellingcheckcompletedmessage = 320,
292
+ rulerchangetablecolumnwidth = 321,
293
+ rulerchangetablerowheight = 322,
294
+ deletetablecellsbybackspace = 323,
295
+ gotodatarecord = 324,
296
+ findall = 325,
297
+ replacenext = 326,
298
+ replaceall = 327,
299
+ hidefindresults = 328,
300
+ activateribbon = 329,
301
+ changeheaderoffset = 330,
302
+ changefooteroffset = 331,
303
+ download = 332,
304
+ showerrorcantsavetoemptypathmessagecommand = 333,
305
+ removenextword = 334,
306
+ removeprevword = 335,
307
+ gotostartnextpage = 336,
308
+ gotostartprevpage = 337,
309
+ extendgotostartnextpage = 338,
310
+ extendgotostartprevpage = 339,
311
+ setsectionpagemargins = 340,
312
+ assignshortcut = 341,
313
+ showlayoutoptionsform = 342,
314
+ changefloatingobjectfillcolor = 343,
315
+ changefloatingobjectoutlinecolor = 344,
316
+ changefloatingobjectoutlinewidth = 345,
317
+ setfloatingobjectsquaretextwraptype = 346,
318
+ setfloatingobjecttighttextwraptype = 347,
319
+ setfloatingobjectthroughtextwraptype = 348,
320
+ setfloatingobjecttopandbottomtextwraptype = 349,
321
+ setfloatingobjectbehindtextwraptype = 350,
322
+ setfloatingobjectinfrontoftextwraptype = 351,
323
+ setfloatingobjecttopleftalignment = 352,
324
+ setfloatingobjecttopcenteralignment = 353,
325
+ setfloatingobjecttoprightalignment = 354,
326
+ setfloatingobjectmiddleleftalignment = 355,
327
+ setfloatingobjectmiddlecenteralignment = 356,
328
+ setfloatingobjectmiddlerightalignment = 357,
329
+ setfloatingobjectbottomleftalignment = 358,
330
+ setfloatingobjectbottomcenteralignment = 359,
331
+ setfloatingobjectbottomrightalignment = 360,
332
+ floatingobjectbringforward = 361,
333
+ floatingobjectbringtofront = 362,
334
+ floatingobjectbringinfrontoftext = 363,
335
+ floatingobjectsendbackward = 364,
336
+ floatingobjectsendtoback = 365,
337
+ floatingobjectsendbehindtext = 366,
338
+ contextitem_floatingobjects = 367,
339
+ insertanchoredtextbox = 368,
340
+ changeactivesubdocumenttotextbox = 369,
341
+ changetextboxproperties = 370,
342
+ changefloatingobjectshape = 371,
343
+ createemptymergefield = 372,
344
+ createemptydocvariablefield = 373,
345
+ setfloatingobjectinlinetextwraptype = 374,
346
+ floatingobjectdragdropchangeposition = 375,
347
+ inserthtml = 376,
348
+ createtocfield = 377,
349
+ createtableofequationsfield = 378,
350
+ createtableoffiguresfield = 379,
351
+ createtableoftablesfield = 380,
352
+ createequationcaptionfield = 381,
353
+ createfigurecaptionfield = 382,
354
+ createtablecaptionfield = 383,
355
+ updatetableofcontents = 384,
356
+ setparagraphbodytextlevel = 385,
357
+ setparagraphheading1level = 386,
358
+ setparagraphheading2level = 387,
359
+ setparagraphheading3level = 388,
360
+ setparagraphheading4level = 389,
361
+ setparagraphheading5level = 390,
362
+ setparagraphheading6level = 391,
363
+ setparagraphheading7level = 392,
364
+ setparagraphheading8level = 393,
365
+ setparagraphheading9level = 394,
366
+ changeheadinglevel = 395,
367
+ setparagraphlevel = 396,
368
+ createfieldwithcode = 397,
369
+ changehyperlink = 398,
370
+ setautofitcontents = 399,
371
+ setautofitwindow = 400,
372
+ setfixedcolumnwidth = 401,
373
+ insertrtf = 402,
374
+ getrtf = 403,
375
+ forcesyncwithserver = 404,
376
+ switchtosimpleview = 405,
377
+ switchtoprintlayoutview = 406,
378
+ changeviewtype = 407,
379
+ insertcontentfromserver = 408,
380
+ showinsertcontentfromservererrordialogcommand = 409,
381
+ opendocumentlocally = 410,
382
+ insertpicturelocally = 411,
383
+ createnewdocumentlocally = 412,
384
+ exportdocument = 413,
385
+ downloaddocumentlocally = 414,
386
+ showerrorloadpicturemessage = 415,
387
+ printdocumentonclient = 416,
388
+ mailmergeonclient = 417,
389
+ downloaddocx = 418,
390
+ downloadrtf = 419,
391
+ downloadtxt = 420,
392
+ pdfexported = 430,
393
+ changecasemenu = 431,
394
+ alignparagraphmenu = 432,
395
+ linespacingmenu = 433,
396
+ marginsmenu = 434,
397
+ orientationmenu = 435,
398
+ sizemenu = 436,
399
+ columnsmenu = 437,
400
+ breaksmenu = 438,
401
+ addtextmenu = 439,
402
+ insertcaptionmenu = 440,
403
+ inserttableoffiguresmenu = 441,
404
+ createfieldmenu = 442,
405
+ tablestyleoptionsmenu = 443,
406
+ bordersmenu = 444,
407
+ selectmenu = 445,
408
+ deletemenu = 446,
409
+ insertmenu = 447,
410
+ autofitmenu = 448,
411
+ alignmentmenu = 449,
412
+ wraptextmenu = 450,
413
+ positionmenu = 451,
414
+ bringforwardmenu = 452,
415
+ sendbackwardmenu = 453
416
+ }
@@ -0,0 +1,7 @@
1
+ import { EditorType } from './EditorType';
2
+ export interface TargetEditor {
3
+ controlId: string;
4
+ controlName: string;
5
+ type?: EditorType;
6
+ editorInstance?: any;
7
+ }
@@ -0,0 +1,3 @@
1
+ export * from './core/EditorType';
2
+ export * from './core/TargetEditor';
3
+ export * from './core/PhilipsMicMode';
@@ -0,0 +1,10 @@
1
+ declare abstract class BaseInteropProcessor {
2
+ private _logTag;
3
+ private _loggingEnabled;
4
+ get loggingEnabled(): boolean;
5
+ set loggingEnabled(enabled: boolean);
6
+ constructor(loggingEnabled: boolean, interopTag: string);
7
+ protected log(message: string): void;
8
+ protected error(message: string): void;
9
+ }
10
+ export { BaseInteropProcessor };
@@ -0,0 +1,14 @@
1
+ import { ActionRecipe } from '../../recipe/ActionRecipe';
2
+ import { EditorType } from '../core/EditorType';
3
+ import { CommonContentEditableProcessor } from './CommonContentEditableProcessor';
4
+ declare class CKEditor4InteropProcessor extends CommonContentEditableProcessor {
5
+ validateDependencies(): void;
6
+ get editorType(): EditorType;
7
+ customLineBreakFunction(): void;
8
+ customSelectProcessor(actionRecipe: Partial<ActionRecipe>): boolean;
9
+ customCommandProcessor(action: string): boolean;
10
+ private getEditor;
11
+ private findInstance;
12
+ private CKEditorPanelButtonEnable;
13
+ }
14
+ export { CKEditor4InteropProcessor };
@@ -0,0 +1,17 @@
1
+ import { ActionRecipe } from '../../recipe/ActionRecipe';
2
+ import { EditorType } from '../core/EditorType';
3
+ import { CommonContentEditableProcessor } from './CommonContentEditableProcessor';
4
+ declare class CKEditor5InteropProcessor extends CommonContentEditableProcessor {
5
+ validateDependencies(): void;
6
+ get editorType(): EditorType;
7
+ customLineBreakFunction(): void;
8
+ customTextWriteFunction(insertText: string): void;
9
+ customSelectProcessor(actionRecipe: Partial<ActionRecipe>): boolean;
10
+ customCommandProcessor(action: string): boolean;
11
+ customActionProcessor(selectFor: string): boolean;
12
+ private getEditor;
13
+ private getActiveEditorElement;
14
+ private findInstance;
15
+ private CKEditorPanelButtonEnable;
16
+ }
17
+ export { CKEditor5InteropProcessor };
@@ -0,0 +1,63 @@
1
+ import { ActionRecipe } from '../../recipe';
2
+ import { EditorType } from '../core/EditorType';
3
+ import { BaseInteropProcessor } from './BaseInteropProcessor';
4
+ import { InteropProcessor } from './InteropProcessor';
5
+ import { AugnitoRange, WrappedRange, WrappedRangeFindOptions, WrappedSelection } from 'augnito-dom-ranges';
6
+ import { FindLastCharType, TraverseTextNodeResult } from '../types/CommonTypes';
7
+ import { DynamicSelect } from '../types/DynamicSelect';
8
+ declare abstract class CommonContentEditableProcessor extends BaseInteropProcessor implements InteropProcessor {
9
+ protected _augnitoRange: AugnitoRange;
10
+ protected _editorDocument: Document | null;
11
+ protected _dynamicSelect: DynamicSelect | null;
12
+ protected customLineBreakFunction?(): void;
13
+ protected customTextWriteFunction?(insertText: string): void;
14
+ protected customActionProcessor?(selectFor: string): boolean;
15
+ protected customSelectProcessor?(recipe: Partial<ActionRecipe>): boolean;
16
+ protected customCommandProcessor?(action: string): boolean;
17
+ constructor(loggingEnabled: boolean);
18
+ abstract get editorType(): EditorType;
19
+ abstract validateDependencies(): void;
20
+ processFinalResult(recipe: Partial<ActionRecipe>, editor?: Element): void;
21
+ processCommand(command: Pick<ActionRecipe, 'name'> & Partial<ActionRecipe>, editor?: Element): void;
22
+ /**
23
+ * Inserts text at the current position
24
+ * @param editorInstance The current editor
25
+ * @param newProcessText The text to be inserted
26
+ */
27
+ protected insertTextAtCursor(editorInstance: Document, newProcessText: string): void;
28
+ protected findLastChar(editorDocument: Document): FindLastCharType;
29
+ protected processSelect(recipe: Partial<ActionRecipe>, editorDocument: Document): boolean;
30
+ protected processSelectForAction(selectFor: string, editorDocument: Document, DeSelectRequired?: boolean): boolean;
31
+ /**
32
+ * Checks if there is a selection Pending to be handled. It could be the case the user said
33
+ * "Select 'criteria' and there were more than one results. If there is nothing pending, it does nothing"
34
+ * @param actionRecipe The current recipe
35
+ * @returns True if a badge was selected; false otherwise
36
+ */
37
+ protected onBeforeProcess(actionRecipe: Partial<ActionRecipe>): boolean;
38
+ private removeDynamicSelect;
39
+ protected getLastLines(ItemCount: number, editorDocument: Document): WrappedRange | null;
40
+ protected getLastLinesRecursive(count: number, ItemCount: number, element: ChildNode | Node | Element): ChildNode | Node | Element;
41
+ protected isListElement(element: ChildNode): boolean;
42
+ protected getNextInterval(item: 'word' | string, itemCount: number, editorDocument: Document): WrappedRange | null;
43
+ protected getPrevInterval(item: 'word' | 'line' | string, itemCount: number, editorDocument: Document): WrappedRange | null;
44
+ protected getNextWordInterval(itemCount: number, editorDocument: Document): WrappedRange;
45
+ protected getPrevWordInterval(ItemCount: number, editorDocument: Document): WrappedRange;
46
+ protected deSelectSelection(editorDocument: Document, atStart?: boolean, forceDeselect?: boolean): void;
47
+ protected searchDynamicFiled(searchOption: WrappedRangeFindOptions): void;
48
+ protected deleteSelection(editorDocument: Document | null): void;
49
+ protected setSelectionRange(editorDocument: Document, range: WrappedRange): void;
50
+ /**
51
+ * Callback for inserting a line of text
52
+ * @param editorDocument The current Editor
53
+ * @param insertText The text to be inserted
54
+ */
55
+ protected insertTextCallback(editorDocument: Document, insertText: string, IsAddSpace: boolean): void;
56
+ protected scrollElementToView(selection: WrappedSelection): void;
57
+ protected findLineBreakAtCursor: (currentNode: Node) => boolean;
58
+ protected findLineBreakAtNextCursor: (currentNode: Node) => boolean;
59
+ protected traverseTextNodes(moveby: 'character' | 'word', jumpRange: number, breakCondition: string[] | number, isInvert: boolean, editorDocument: Document, keepToLastStep?: boolean): TraverseTextNodeResult;
60
+ static findActiveEditor(activeControl: Element): Element;
61
+ private validateEditorDocument;
62
+ }
63
+ export { CommonContentEditableProcessor };
@@ -0,0 +1,14 @@
1
+ import { ActionRecipe } from '../../recipe';
2
+ import { EditorType } from '../core/EditorType';
3
+ import { BaseInteropProcessor } from './BaseInteropProcessor';
4
+ import { InteropProcessor } from './InteropProcessor';
5
+ declare class DevExpressRichEditProcessor extends BaseInteropProcessor implements InteropProcessor {
6
+ private searchWordList;
7
+ constructor(loggingEnabled: boolean);
8
+ get editorType(): EditorType;
9
+ processFinalResult(recipe: Partial<ActionRecipe>, editor?: Element | any): void;
10
+ processCommand(command: Partial<ActionRecipe>, editor?: Element | any): void;
11
+ GetLastCharacter(RichEdit: any): any[];
12
+ ApplyPostBeautification(recipe: Partial<ActionRecipe>, lineEnd: boolean, RichEdit: any): void;
13
+ }
14
+ export { DevExpressRichEditProcessor };
@@ -0,0 +1,11 @@
1
+ import { ActionRecipe } from '../../recipe/ActionRecipe';
2
+ import { EditorType } from '../core/EditorType';
3
+ import { CommonContentEditableProcessor } from './CommonContentEditableProcessor';
4
+ declare class GenericInteropProcessor extends CommonContentEditableProcessor {
5
+ insertTextAtCursorHandler?: (editorInstance: Element, newProcessText: string) => void;
6
+ validateDependencies(): void;
7
+ get editorType(): EditorType;
8
+ customSelectProcessor(actionRecipe: Partial<ActionRecipe>): boolean;
9
+ customCommandProcessor(_action: string): boolean;
10
+ }
11
+ export { GenericInteropProcessor };