fit-ui 2.5.6 → 2.6.2

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 (29) hide show
  1. package/dist/Documentation.html +3 -3
  2. package/dist/Fit.UI.css +102 -6
  3. package/dist/Fit.UI.js +750 -109
  4. package/dist/Fit.UI.min.css +1 -1
  5. package/dist/Fit.UI.min.js +1 -1
  6. package/dist/Resources/CKEditor/build-config.js +7 -3
  7. package/dist/Resources/CKEditor/ckeditor.js +93 -5
  8. package/dist/Resources/CKEditor/lang/da.js +2 -2
  9. package/dist/Resources/CKEditor/lang/de.js +2 -2
  10. package/dist/Resources/CKEditor/lang/en.js +2 -2
  11. package/dist/Resources/CKEditor/plugins/autocomplete/skins/default.css +38 -0
  12. package/dist/Resources/CKEditor/plugins/base64image/plugin.js +1 -1
  13. package/dist/Resources/CKEditor/plugins/emoji/assets/iconsall.png +0 -0
  14. package/dist/Resources/CKEditor/plugins/emoji/assets/iconsall.svg +58 -0
  15. package/dist/Resources/CKEditor/plugins/emoji/emoji.json +1 -0
  16. package/dist/Resources/CKEditor/plugins/emoji/skins/default.css +237 -0
  17. package/dist/Resources/CKEditor/plugins/icons.png +0 -0
  18. package/dist/Resources/CKEditor/plugins/icons_hidpi.png +0 -0
  19. package/dist/Resources/CKEditor/skins/moono-lisa/editor.css +5 -5
  20. package/dist/Resources/CKEditor/skins/moono-lisa/editor_gecko.css +5 -5
  21. package/dist/Resources/CKEditor/skins/moono-lisa/editor_ie.css +5 -5
  22. package/dist/Resources/CKEditor/skins/moono-lisa/editor_ie8.css +5 -5
  23. package/dist/Resources/CKEditor/skins/moono-lisa/editor_iequirks.css +5 -5
  24. package/dist/Resources/CKEditor/skins/moono-lisa/icons.png +0 -0
  25. package/dist/Resources/CKEditor/skins/moono-lisa/icons_hidpi.png +0 -0
  26. package/package.json +1 -1
  27. package/types/index.d.ts +497 -136
  28. package/dist/Resources/CKEditor/plugins/htmlwriter/plugin.js +0 -364
  29. package/dist/Resources/CKEditor/plugins/resize/plugin.js +0 -187
package/types/index.d.ts CHANGED
@@ -2353,6 +2353,36 @@ declare namespace Fit
2353
2353
  {
2354
2354
  // Functions defined by Fit.Controls.Dialog
2355
2355
  /**
2356
+ * Display alert dialog.
2357
+ * @function Alert
2358
+ * @static
2359
+ * @param {string} content - Content to display in alert dialog.
2360
+ * @param {Function} [cb=undefined] - Optional callback function invoked when OK button is clicked.
2361
+ * @returns Fit.Controls.DialogInterface
2362
+ */
2363
+ public static Alert(content:string, cb?:Function):Fit.Controls.DialogInterface;
2364
+ /**
2365
+ * Display confirmation dialog with OK and Cancel buttons.
2366
+ * @function Confirm
2367
+ * @static
2368
+ * @param {string} content - Content to display in confirmation dialog.
2369
+ * @param {Fit.Controls.DialogTypeDefs.ConfirmCallback} cb - Callback function invoked when a button is clicked.
2370
+ True is passed to callback function when OK is clicked, otherwise False.
2371
+ * @returns Fit.Controls.DialogInterface
2372
+ */
2373
+ public static Confirm(content:string, cb:Fit.Controls.DialogTypeDefs.ConfirmCallback):Fit.Controls.DialogInterface;
2374
+ /**
2375
+ * Display prompt dialog that allows for user input.
2376
+ * @function Prompt
2377
+ * @static
2378
+ * @param {string} content - Content to display in prompt dialog.
2379
+ * @param {string} defaultValue - Default value in input field.
2380
+ * @param {Fit.Controls.DialogTypeDefs.PromptCallback} [cb=undefined] - Callback function invoked when OK or Cancel button is clicked.
2381
+ Value entered in input field is passed, null if prompt is canceled.
2382
+ * @returns Fit.Controls.DialogInterface
2383
+ */
2384
+ public static Prompt(content:string, defaultValue:string, cb?:Fit.Controls.DialogTypeDefs.PromptCallback):Fit.Controls.DialogInterface;
2385
+ /**
2356
2386
  * Add button to dialog.
2357
2387
  * @function AddButton
2358
2388
  * @param {Fit.Controls.Button} btn - Instance of Fit.Controls.Button.
@@ -2520,36 +2550,6 @@ declare namespace Fit
2520
2550
  * @returns Fit.TypeDefs.CssValue
2521
2551
  */
2522
2552
  public Width(val?:number, unit?:Fit.TypeDefs.CssUnit | "%" | "ch" | "cm" | "em" | "ex" | "in" | "mm" | "pc" | "pt" | "px" | "rem" | "vh" | "vmax" | "vmin" | "vw"):Fit.TypeDefs.CssValue;
2523
- /**
2524
- * Display alert dialog.
2525
- * @function Alert
2526
- * @static
2527
- * @param {string} content - Content to display in alert dialog.
2528
- * @param {Function} [cb=undefined] - Optional callback function invoked when OK button is clicked.
2529
- * @returns Fit.Controls.DialogInterface
2530
- */
2531
- public static Alert(content:string, cb?:Function):Fit.Controls.DialogInterface;
2532
- /**
2533
- * Display confirmation dialog with OK and Cancel buttons.
2534
- * @function Confirm
2535
- * @static
2536
- * @param {string} content - Content to display in confirmation dialog.
2537
- * @param {Fit.Controls.DialogTypeDefs.ConfirmCallback} cb - Callback function invoked when a button is clicked.
2538
- True is passed to callback function when OK is clicked, otherwise False.
2539
- * @returns Fit.Controls.DialogInterface
2540
- */
2541
- public static Confirm(content:string, cb:Fit.Controls.DialogTypeDefs.ConfirmCallback):Fit.Controls.DialogInterface;
2542
- /**
2543
- * Display prompt dialog that allows for user input.
2544
- * @function Prompt
2545
- * @static
2546
- * @param {string} content - Content to display in prompt dialog.
2547
- * @param {string} defaultValue - Default value in input field.
2548
- * @param {Fit.Controls.DialogTypeDefs.PromptCallback} [cb=undefined] - Callback function invoked when OK or Cancel button is clicked.
2549
- Value entered in input field is passed, null if prompt is canceled.
2550
- * @returns Fit.Controls.DialogInterface
2551
- */
2552
- public static Prompt(content:string, defaultValue:string, cb?:Fit.Controls.DialogTypeDefs.PromptCallback):Fit.Controls.DialogInterface;
2553
2553
  // Functions defined by Fit.Controls.Component
2554
2554
  /**
2555
2555
  * Destroys control to free up memory.
@@ -3785,9 +3785,10 @@ declare namespace Fit
3785
3785
  Notice that this control type requires dimensions (Width/Height) to be specified in pixels.
3786
3786
  * @function DesignMode
3787
3787
  * @param {boolean} [val=undefined] - If defined, True enables Design Mode, False disables it.
3788
+ * @param {Fit.Controls.InputTypeDefs.DesignModeConfig} [editorConfig=undefined] - If provided and DesignMode is enabled, configuration is applied when editor is created.
3788
3789
  * @returns boolean
3789
3790
  */
3790
- public DesignMode(val?:boolean):boolean;
3791
+ public DesignMode(val?:boolean, editorConfig?:Fit.Controls.InputTypeDefs.DesignModeConfig):boolean;
3791
3792
  /**
3792
3793
  * Create instance of Input control.
3793
3794
  * @function Input
@@ -4091,6 +4092,398 @@ declare namespace Fit
4091
4092
  public Render(toElement?:HTMLElement):void;
4092
4093
  }
4093
4094
  /**
4095
+ *
4096
+ * @namespace [Fit.Controls.InputTypeDefs InputTypeDefs]
4097
+ */
4098
+ namespace InputTypeDefs
4099
+ {
4100
+ // Functions defined by Fit.Controls.InputTypeDefs
4101
+ /**
4102
+ * Cancelable request event handler.
4103
+ * @callback DesignModeTagsOnRequest
4104
+ * @param {Fit.Controls.Input} sender - Instance of control.
4105
+ * @param {Fit.Controls.InputTypeDefs.DesignModeTagsOnRequestEventHandlerArgs} eventArgs - Event arguments.
4106
+ * @returns boolean | void
4107
+ */
4108
+ type DesignModeTagsOnRequest = (sender:Fit.Controls.Input, eventArgs:Fit.Controls.InputTypeDefs.DesignModeTagsOnRequestEventHandlerArgs) => boolean | void;
4109
+ /**
4110
+ * Response event handler.
4111
+ * @callback DesignModeTagsOnResponse
4112
+ * @param {Fit.Controls.Input} sender - Instance of control.
4113
+ * @param {Fit.Controls.InputTypeDefs.DesignModeTagsOnResponseEventHandlerArgs} eventArgs - Event arguments.
4114
+ */
4115
+ type DesignModeTagsOnResponse = (sender:Fit.Controls.Input, eventArgs:Fit.Controls.InputTypeDefs.DesignModeTagsOnResponseEventHandlerArgs) => void;
4116
+ /**
4117
+ * Function producing JSON object representing tag to be inserted into editor.
4118
+ Returning nothing or Null results in default tag being inserted into editor.
4119
+ * @callback DesignModeTagsTagCreator
4120
+ * @param {Fit.Controls.Input} sender - Instance of control.
4121
+ * @param {Fit.Controls.InputTypeDefs.DesignModeTagsTagCreatorCallbackArgs} eventArgs - Event arguments.
4122
+ * @returns Fit.Controls.InputTypeDefs.DesignModeTagsTagCreatorReturnType | null | void
4123
+ */
4124
+ type DesignModeTagsTagCreator = (sender:Fit.Controls.Input, eventArgs:Fit.Controls.InputTypeDefs.DesignModeTagsTagCreatorCallbackArgs) => Fit.Controls.InputTypeDefs.DesignModeTagsTagCreatorReturnType | null | void;
4125
+ /**
4126
+ * Configuration for DesignMode.
4127
+ * @class [Fit.Controls.InputTypeDefs.DesignModeConfig DesignModeConfig]
4128
+ */
4129
+ class DesignModeConfig
4130
+ {
4131
+ // Properties defined by Fit.Controls.InputTypeDefs.DesignModeConfig
4132
+ /**
4133
+ * Information panel configuration.
4134
+ * @member {Fit.Controls.InputTypeDefs.DesignModeConfigInfoPanel} [InfoPanel=undefined]
4135
+ */
4136
+ InfoPanel?:Fit.Controls.InputTypeDefs.DesignModeConfigInfoPanel;
4137
+ /**
4138
+ * Plugins configuration.
4139
+ * @member {Fit.Controls.InputTypeDefs.DesignModeConfigPlugins} [Plugins=undefined]
4140
+ */
4141
+ Plugins?:Fit.Controls.InputTypeDefs.DesignModeConfigPlugins;
4142
+ /**
4143
+ * Tags configuration.
4144
+ * @member {Fit.Controls.InputTypeDefs.DesignModeConfigTags} [Tags=undefined]
4145
+ */
4146
+ Tags?:Fit.Controls.InputTypeDefs.DesignModeConfigTags;
4147
+ /**
4148
+ * Toolbar configuration.
4149
+ * @member {Fit.Controls.InputTypeDefs.DesignModeConfigToolbar} [Toolbar=undefined]
4150
+ */
4151
+ Toolbar?:Fit.Controls.InputTypeDefs.DesignModeConfigToolbar;
4152
+ }
4153
+ /**
4154
+ * Information panel at the bottom of the editor.
4155
+ * @class [Fit.Controls.InputTypeDefs.DesignModeConfigInfoPanel DesignModeConfigInfoPanel]
4156
+ */
4157
+ class DesignModeConfigInfoPanel
4158
+ {
4159
+ // Properties defined by Fit.Controls.InputTypeDefs.DesignModeConfigInfoPanel
4160
+ /**
4161
+ * Text alignment - defaults to Center.
4162
+ * @member {'Left' | 'Center' | 'Right'} [Alignment=undefined]
4163
+ */
4164
+ Alignment?:'Left' | 'Center' | 'Right';
4165
+ /**
4166
+ * Text to display.
4167
+ * @member {string} [Text=undefined]
4168
+ */
4169
+ Text?:string;
4170
+ }
4171
+ /**
4172
+ * Additional plugins enabled in DesignMode.
4173
+ * @class [Fit.Controls.InputTypeDefs.DesignModeConfigPlugins DesignModeConfigPlugins]
4174
+ */
4175
+ class DesignModeConfigPlugins
4176
+ {
4177
+ // Properties defined by Fit.Controls.InputTypeDefs.DesignModeConfigPlugins
4178
+ /**
4179
+ * Plugin(s) related to emoji support (defaults to False).
4180
+ * @member {boolean} [Emojis=undefined]
4181
+ */
4182
+ Emojis?:boolean;
4183
+ /**
4184
+ * Plugin(s) related to support for images (defaults to False).
4185
+ * @member {Fit.Controls.InputTypeDefs.DesignModeConfigPluginsImagesConfig} [Images=undefined]
4186
+ */
4187
+ Images?:Fit.Controls.InputTypeDefs.DesignModeConfigPluginsImagesConfig;
4188
+ }
4189
+ /**
4190
+ * Configuration for image plugins.
4191
+ * @class [Fit.Controls.InputTypeDefs.DesignModeConfigPluginsImagesConfig DesignModeConfigPluginsImagesConfig]
4192
+ */
4193
+ class DesignModeConfigPluginsImagesConfig
4194
+ {
4195
+ // Properties defined by Fit.Controls.InputTypeDefs.DesignModeConfigPluginsImagesConfig
4196
+ /**
4197
+ * How to store and embed images. Base64 is persistent while blob (default) is temporary
4198
+ and must be extracted from memory and uploaded/stored to be permanantly persisted.
4199
+ References to blobs can be parsed from the HTML value produced by the editor.
4200
+ * @member {'base64' | 'blob'} [EmbedType=undefined]
4201
+ */
4202
+ EmbedType?:'base64' | 'blob';
4203
+ /**
4204
+ * Flag indicating whether to enable image plugins or not (defaults to False).
4205
+ * @member {boolean} Enabled
4206
+ */
4207
+ Enabled:boolean;
4208
+ /**
4209
+ * This option is in effect when EmbedType is blob.
4210
+ Dispose images from blob storage (revoke blob URLs) added though image plugins when control is disposed.
4211
+ If "UnreferencedOnly" is specified, the component using Fit.UI's input control will be responsible for
4212
+ disposing referenced blobs. Failing to do so may cause a memory leak. Defaults to All.
4213
+ * @member {'All' | 'UnreferencedOnly'} [RevokeBlobUrlsOnDispose=undefined]
4214
+ */
4215
+ RevokeBlobUrlsOnDispose?:'All' | 'UnreferencedOnly';
4216
+ /**
4217
+ * This option is in effect when EmbedType is blob.
4218
+ Dispose images from blob storage (revoke blob URLs) added through Value(..)
4219
+ function when control is disposed. Basically ownership of these blobs are handed
4220
+ over to the control for the duration of its life time.
4221
+ These images are furthermore subject to the rule set in RevokeBlobUrlsOnDispose.
4222
+ Defaults to False.
4223
+ * @member {boolean} [RevokeExternalBlobUrlsOnDispose=undefined]
4224
+ */
4225
+ RevokeExternalBlobUrlsOnDispose?:boolean;
4226
+ }
4227
+ /**
4228
+ * Configuration for tags in DesignMode.
4229
+ * @class [Fit.Controls.InputTypeDefs.DesignModeConfigTags DesignModeConfigTags]
4230
+ */
4231
+ class DesignModeConfigTags
4232
+ {
4233
+ // Properties defined by Fit.Controls.InputTypeDefs.DesignModeConfigTags
4234
+ /**
4235
+ * Name of URL parameter receiving name of JSONP callback function (only for JSONP services).
4236
+ * @member {string} [JsonpCallback=undefined]
4237
+ */
4238
+ JsonpCallback?:string;
4239
+ /**
4240
+ * Number of milliseconds to allow JSONP request to wait for a response before aborting (only for JSONP services).
4241
+ * @member {number} [JsonpTimeout=undefined]
4242
+ */
4243
+ JsonpTimeout?:number;
4244
+ /**
4245
+ * Event handler invoked when tags are requested. Request may be canceled by returning False.
4246
+ Function receives two arguments:
4247
+ Sender (Fit.Controls.Input) and EventArgs object.
4248
+ EventArgs object contains the following properties:
4249
+ - Sender: Fit.Controls.Input instance
4250
+ - Request: Fit.Http.JsonpRequest or Fit.Http.JsonRequest instance
4251
+ - Query: Contains query information in its Marker and Query property.
4252
+ * @member {Fit.Controls.InputTypeDefs.DesignModeTagsOnRequest} [OnRequest=undefined]
4253
+ */
4254
+ OnRequest?:Fit.Controls.InputTypeDefs.DesignModeTagsOnRequest;
4255
+ /**
4256
+ * Event handler invoked when tags data is received, allowing for data transformation.
4257
+ Function receives two arguments:
4258
+ Sender (Fit.Controls.Input) and EventArgs object.
4259
+ EventArgs object contains the following properties:
4260
+ - Sender: Fit.Controls.Input instance
4261
+ - Request: Fit.Http.JsonpRequest or Fit.Http.JsonRequest instance
4262
+ - Query: Contains query information in its Marker and Query property
4263
+ - Tags: JSON tags array received from WebService.
4264
+ * @member {Fit.Controls.InputTypeDefs.DesignModeTagsOnResponse} [OnResponse=undefined]
4265
+ */
4266
+ OnResponse?:Fit.Controls.InputTypeDefs.DesignModeTagsOnResponse;
4267
+ /**
4268
+ * URL to request data from. Endpoint receives the following payload:
4269
+ { Marker: "@", Query: "search" }
4270
+
4271
+ Data is expected to be returned in the following format:
4272
+ [
4273
+ { Value: "t-1", Title: "Tag 1", Icon: "images/img1.jpeg", Url: "show/1", Data: "..." },
4274
+ { Value: "t-2", Title: "Tag 2", Icon: "images/img2.jpeg", Url: "show/2", Data: "..." }, ...
4275
+ ]
4276
+
4277
+ The Value and Title properties are required. The Icon property is optional and must specify the path to an image.
4278
+ The Url property is optional and must specify a path to a related page/resource.
4279
+ The Data property is optional and allows for additional data to be associated with the tag.
4280
+ To hold multiple values, consider using a base64 encoded JSON object:
4281
+ btoa(JSON.stringify({ creationDate: new Date(), active: true }))
4282
+
4283
+ The data eventuelly results in a tag being added to the editor with the following format:
4284
+ Tag name 1
4285
+ The data-tag-data attribute is only declared if the corresponding Data property is defined in data.
4286
+ * @member {string} QueryUrl
4287
+ */
4288
+ QueryUrl:string;
4289
+ /**
4290
+ * Callback invoked when a tag is being inserted into editor, allowing
4291
+ for customization to the title and attributes associated with the tag.
4292
+ Function receives two arguments:
4293
+ Sender (Fit.Controls.Input) and EventArgs object.
4294
+ EventArgs object contains the following properties:
4295
+ - Sender: Fit.Controls.Input instance
4296
+ - QueryMarker: String containing query marker
4297
+ - Tag: JSON tag received from WebService.
4298
+ * @member {Fit.Controls.InputTypeDefs.DesignModeTagsTagCreator} [TagCreator=undefined]
4299
+ */
4300
+ TagCreator?:Fit.Controls.InputTypeDefs.DesignModeTagsTagCreator;
4301
+ /**
4302
+ * Markers triggering tags request and context menu.
4303
+ * @member {{ Marker: string, MinimumCharacters?: number, DebounceQuery?: number }[]} Triggers
4304
+ */
4305
+ Triggers:{ Marker: string, MinimumCharacters?: number, DebounceQuery?: number }[];
4306
+ }
4307
+ /**
4308
+ * Toolbar buttons enabled in DesignMode.
4309
+ * @class [Fit.Controls.InputTypeDefs.DesignModeConfigToolbar DesignModeConfigToolbar]
4310
+ */
4311
+ class DesignModeConfigToolbar
4312
+ {
4313
+ // Properties defined by Fit.Controls.InputTypeDefs.DesignModeConfigToolbar
4314
+ /**
4315
+ * Enable emoji button (defaults to False).
4316
+ * @member {boolean} [Emojis=undefined]
4317
+ */
4318
+ Emojis?:boolean;
4319
+ /**
4320
+ * Enable text formatting (bold, italic, underline) (defaults to True).
4321
+ * @member {boolean} [Formatting=undefined]
4322
+ */
4323
+ Formatting?:boolean;
4324
+ /**
4325
+ * Enable image button (defaults to false).
4326
+ * @member {boolean} [Images=undefined]
4327
+ */
4328
+ Images?:boolean;
4329
+ /**
4330
+ * Enable text alignment (defaults to True).
4331
+ * @member {boolean} [Justify=undefined]
4332
+ */
4333
+ Justify?:boolean;
4334
+ /**
4335
+ * Enable links (defaults to True).
4336
+ * @member {boolean} [Links=undefined]
4337
+ */
4338
+ Links?:boolean;
4339
+ /**
4340
+ * Enable ordered and unordered lists with indentation (defaults to True).
4341
+ * @member {boolean} [Lists=undefined]
4342
+ */
4343
+ Lists?:boolean;
4344
+ }
4345
+ /**
4346
+ * Request handler event arguments.
4347
+ * @class [Fit.Controls.InputTypeDefs.DesignModeTagsOnRequestEventHandlerArgs DesignModeTagsOnRequestEventHandlerArgs]
4348
+ */
4349
+ class DesignModeTagsOnRequestEventHandlerArgs
4350
+ {
4351
+ // Properties defined by Fit.Controls.InputTypeDefs.DesignModeTagsOnRequestEventHandlerArgs
4352
+ /**
4353
+ * Query information.
4354
+ * @member {{ Marker: string, Query: string }} Query
4355
+ */
4356
+ Query:{ Marker: string, Query: string };
4357
+ /**
4358
+ * Instance of JsonRequest or JsonpRequest.
4359
+ * @member {Fit.Http.JsonRequest | Fit.Http.JsonpRequest} Request
4360
+ */
4361
+ Request:Fit.Http.JsonRequest | Fit.Http.JsonpRequest;
4362
+ /**
4363
+ * Instance of control.
4364
+ * @member {Fit.Controls.Input} Sender
4365
+ */
4366
+ Sender:Fit.Controls.Input;
4367
+ }
4368
+ /**
4369
+ * Response handler event arguments.
4370
+ * @class [Fit.Controls.InputTypeDefs.DesignModeTagsOnResponseEventHandlerArgs DesignModeTagsOnResponseEventHandlerArgs]
4371
+ */
4372
+ class DesignModeTagsOnResponseEventHandlerArgs
4373
+ {
4374
+ // Properties defined by Fit.Controls.InputTypeDefs.DesignModeTagsOnResponseEventHandlerArgs
4375
+ /**
4376
+ * Query information.
4377
+ * @member {{ Marker: string, Query: string }} Query
4378
+ */
4379
+ Query:{ Marker: string, Query: string };
4380
+ /**
4381
+ * Instance of JsonRequest or JsonpRequest.
4382
+ * @member {Fit.Http.JsonRequest | Fit.Http.JsonpRequest} Request
4383
+ */
4384
+ Request:Fit.Http.JsonRequest | Fit.Http.JsonpRequest;
4385
+ /**
4386
+ * Instance of control.
4387
+ * @member {Fit.Controls.Input} Sender
4388
+ */
4389
+ Sender:Fit.Controls.Input;
4390
+ /**
4391
+ * Tags received from WebService.
4392
+ * @member {Fit.Controls.InputTypeDefs.DesignModeTagsOnResponseJsonTag[]} Tags
4393
+ */
4394
+ Tags:Fit.Controls.InputTypeDefs.DesignModeTagsOnResponseJsonTag[];
4395
+ }
4396
+ /**
4397
+ * JSON object representing tag.
4398
+ * @class [Fit.Controls.InputTypeDefs.DesignModeTagsOnResponseJsonTag DesignModeTagsOnResponseJsonTag]
4399
+ */
4400
+ class DesignModeTagsOnResponseJsonTag
4401
+ {
4402
+ // Properties defined by Fit.Controls.InputTypeDefs.DesignModeTagsOnResponseJsonTag
4403
+ /**
4404
+ * Optional data to associate with tag.
4405
+ * @member {string} [Data=undefined]
4406
+ */
4407
+ Data?:string;
4408
+ /**
4409
+ * Optional URL to icon/image.
4410
+ * @member {string} [Icon=undefined]
4411
+ */
4412
+ Icon?:string;
4413
+ /**
4414
+ * Title.
4415
+ * @member {string} Title
4416
+ */
4417
+ Title:string;
4418
+ /**
4419
+ * Optional URL to associate with tag.
4420
+ * @member {string} [Url=undefined]
4421
+ */
4422
+ Url?:string;
4423
+ /**
4424
+ * Unique value.
4425
+ * @member {string} Value
4426
+ */
4427
+ Value:string;
4428
+ }
4429
+ /**
4430
+ * TagCreator event arguments.
4431
+ * @class [Fit.Controls.InputTypeDefs.DesignModeTagsTagCreatorCallbackArgs DesignModeTagsTagCreatorCallbackArgs]
4432
+ */
4433
+ class DesignModeTagsTagCreatorCallbackArgs
4434
+ {
4435
+ // Properties defined by Fit.Controls.InputTypeDefs.DesignModeTagsTagCreatorCallbackArgs
4436
+ /**
4437
+ * Query marker.
4438
+ * @member {string} QueryMarker
4439
+ */
4440
+ QueryMarker:string;
4441
+ /**
4442
+ * Instance of control.
4443
+ * @member {Fit.Controls.Input} Sender
4444
+ */
4445
+ Sender:Fit.Controls.Input;
4446
+ /**
4447
+ * Tag received from WebService.
4448
+ * @member {Fit.Controls.InputTypeDefs.DesignModeTagsOnResponseJsonTag} Tag
4449
+ */
4450
+ Tag:Fit.Controls.InputTypeDefs.DesignModeTagsOnResponseJsonTag;
4451
+ }
4452
+ /**
4453
+ * JSON object representing tag to be inserted into editor.
4454
+ * @class [Fit.Controls.InputTypeDefs.DesignModeTagsTagCreatorReturnType DesignModeTagsTagCreatorReturnType]
4455
+ */
4456
+ class DesignModeTagsTagCreatorReturnType
4457
+ {
4458
+ // Properties defined by Fit.Controls.InputTypeDefs.DesignModeTagsTagCreatorReturnType
4459
+ /**
4460
+ * Optional tag data.
4461
+ * @member {string} [Data=undefined]
4462
+ */
4463
+ Data?:string;
4464
+ /**
4465
+ * Tag title.
4466
+ * @member {string} Title
4467
+ */
4468
+ Title:string;
4469
+ /**
4470
+ * Tag type (marker).
4471
+ * @member {string} Type
4472
+ */
4473
+ Type:string;
4474
+ /**
4475
+ * Optional tag URL.
4476
+ * @member {string} [Url=undefined]
4477
+ */
4478
+ Url?:string;
4479
+ /**
4480
+ * Tag value (ID).
4481
+ * @member {string} Value
4482
+ */
4483
+ Value:string;
4484
+ }
4485
+ }
4486
+ /**
4094
4487
  * Picker control which allows for entries
4095
4488
  to be selected in the DropDown control.
4096
4489
  * @class [Fit.Controls.ListView ListView]
@@ -8366,74 +8759,6 @@ declare namespace Fit
8366
8759
  {
8367
8760
  // Functions defined by Fit.Cookies
8368
8761
  /**
8369
- * Create instance of cookie container isolated to either current path (default)
8370
- or a custom path, and optionally an alternative part of the domain (by default
8371
- cookies are available only on the current domain, while defining a domain makes
8372
- cookies available to that particular domain and subdomains).
8373
- * @function Cookies
8374
- */
8375
- constructor();
8376
- /**
8377
- * Get/set portion of domain to which cookies are isolated.
8378
- * @function Domain
8379
- * @param {string | null} [val=undefined] - If defined, changes isolation to specified domain portion, including subdomains - pass
8380
- Null to unset it to make cookies available to current domain only (excluding subdomains).
8381
- * @returns string | null
8382
- */
8383
- public Domain(val?:string | null):string | null;
8384
- /**
8385
- * Returns cookie value if found, otherwise Null.
8386
- * @function Get
8387
- * @param {string} name - Unique cookie name.
8388
- * @returns string | null
8389
- */
8390
- public Get(name:string):string | null;
8391
- /**
8392
- * Get/set path to which cookies are isolated.
8393
- * @function Path
8394
- * @param {string} [val=undefined] - If defined, changes isolation to specified path.
8395
- * @returns string
8396
- */
8397
- public Path(val?:string):string;
8398
- /**
8399
- * Get/set prefix added to all cookies - useful for grouping related cookies and to avoid naming conflicts.
8400
- Notice that Set/Get/Remove functions automatically apply the prefix to cookie names, so the use of a prefix
8401
- is completely transparent.
8402
- * @function Prefix
8403
- * @param {string} [val=undefined] - If defined, changes cookie prefix to specified value - pass Null to unset it.
8404
- * @returns string | null
8405
- */
8406
- public Prefix(val?:string):string | null;
8407
- /**
8408
- * Remove cookie.
8409
- * @function Remove
8410
- * @param {string} name - Unique cookie name.
8411
- */
8412
- public Remove(name:string):void;
8413
- /**
8414
- * Get/set SameSite policy.
8415
- * @function SameSite
8416
- * @param {"None" | "Lax" | "Strict" | null} [val=undefined] - If defined, changes SameSite policy - pass Null to unset it.
8417
- * @returns string | null
8418
- */
8419
- public SameSite(val?:"None" | "Lax" | "Strict" | null):string | null;
8420
- /**
8421
- * Get/set Secure flag.
8422
- * @function Secure
8423
- * @param {boolean} [val=undefined] - If defined, changes Secure flag.
8424
- * @returns boolean
8425
- */
8426
- public Secure(val?:boolean):boolean;
8427
- /**
8428
- * Create or update cookie.
8429
- * @function Set
8430
- * @param {string} name - Unique cookie name.
8431
- * @param {string} value - Cookie value (cannot contain semicolon!).
8432
- * @param {number} [seconds=undefined] - Optional expiration time in seconds. Creating a cookie with
8433
- no expiration time will cause it to expire when session ends.
8434
- */
8435
- public Set(name:string, value:string, seconds?:number):void;
8436
- /**
8437
8762
  * Returns cookie value if found, otherwise Null.
8438
8763
  * @function Get
8439
8764
  * @static
@@ -8503,6 +8828,74 @@ declare namespace Fit
8503
8828
  * @param {Fit.CookiesDefs.Cookie} newCookie - New or updated cookie.
8504
8829
  */
8505
8830
  public static Set(newCookie:Fit.CookiesDefs.Cookie):void;
8831
+ /**
8832
+ * Create instance of cookie container isolated to either current path (default)
8833
+ or a custom path, and optionally an alternative part of the domain (by default
8834
+ cookies are available only on the current domain, while defining a domain makes
8835
+ cookies available to that particular domain and subdomains).
8836
+ * @function Cookies
8837
+ */
8838
+ constructor();
8839
+ /**
8840
+ * Get/set portion of domain to which cookies are isolated.
8841
+ * @function Domain
8842
+ * @param {string | null} [val=undefined] - If defined, changes isolation to specified domain portion, including subdomains - pass
8843
+ Null to unset it to make cookies available to current domain only (excluding subdomains).
8844
+ * @returns string | null
8845
+ */
8846
+ public Domain(val?:string | null):string | null;
8847
+ /**
8848
+ * Returns cookie value if found, otherwise Null.
8849
+ * @function Get
8850
+ * @param {string} name - Unique cookie name.
8851
+ * @returns string | null
8852
+ */
8853
+ public Get(name:string):string | null;
8854
+ /**
8855
+ * Get/set path to which cookies are isolated.
8856
+ * @function Path
8857
+ * @param {string} [val=undefined] - If defined, changes isolation to specified path.
8858
+ * @returns string
8859
+ */
8860
+ public Path(val?:string):string;
8861
+ /**
8862
+ * Get/set prefix added to all cookies - useful for grouping related cookies and to avoid naming conflicts.
8863
+ Notice that Set/Get/Remove functions automatically apply the prefix to cookie names, so the use of a prefix
8864
+ is completely transparent.
8865
+ * @function Prefix
8866
+ * @param {string} [val=undefined] - If defined, changes cookie prefix to specified value - pass Null to unset it.
8867
+ * @returns string | null
8868
+ */
8869
+ public Prefix(val?:string):string | null;
8870
+ /**
8871
+ * Remove cookie.
8872
+ * @function Remove
8873
+ * @param {string} name - Unique cookie name.
8874
+ */
8875
+ public Remove(name:string):void;
8876
+ /**
8877
+ * Get/set SameSite policy.
8878
+ * @function SameSite
8879
+ * @param {"None" | "Lax" | "Strict" | null} [val=undefined] - If defined, changes SameSite policy - pass Null to unset it.
8880
+ * @returns string | null
8881
+ */
8882
+ public SameSite(val?:"None" | "Lax" | "Strict" | null):string | null;
8883
+ /**
8884
+ * Get/set Secure flag.
8885
+ * @function Secure
8886
+ * @param {boolean} [val=undefined] - If defined, changes Secure flag.
8887
+ * @returns boolean
8888
+ */
8889
+ public Secure(val?:boolean):boolean;
8890
+ /**
8891
+ * Create or update cookie.
8892
+ * @function Set
8893
+ * @param {string} name - Unique cookie name.
8894
+ * @param {string} value - Cookie value (cannot contain semicolon!).
8895
+ * @param {number} [seconds=undefined] - Optional expiration time in seconds. Creating a cookie with
8896
+ no expiration time will cause it to expire when session ends.
8897
+ */
8898
+ public Set(name:string, value:string, seconds?:number):void;
8506
8899
  }
8507
8900
  /**
8508
8901
  * Core features extending the capabilities of native JS.
@@ -10469,31 +10862,6 @@ declare namespace Fit
10469
10862
  */
10470
10863
  namespace Input
10471
10864
  {
10472
- /**
10473
- * Internal settings related to blob storage management in HTML Editor (Design Mode).
10474
- * @class [Fit._internal.Controls.Input.BlobManager BlobManager]
10475
- */
10476
- class BlobManager
10477
- {
10478
- // Properties defined by Fit._internal.Controls.Input.BlobManager
10479
- /**
10480
- * Dispose images from blob storage (revoke blob URLs) added though image plugins when control is disposed.
10481
- If "UnreferencedOnly" is specified, the component using Fit.UI's input control will be responsible for
10482
- disposing referenced blobs. Failing to do so may cause a memory leak.
10483
- * @member {'All' | 'UnreferencedOnly'} RevokeBlobUrlsOnDispose
10484
- * @static
10485
- */
10486
- static RevokeBlobUrlsOnDispose:'All' | 'UnreferencedOnly';
10487
- /**
10488
- * Dispose images from blob storage (revoke blob URLs) added through Value(..)
10489
- function when control is disposed. Basically ownership of these blobs are handed
10490
- over to the control for the duration of its life time.
10491
- These images are furthermore subject to the rule set in RevokeBlobUrlsOnDispose.
10492
- * @member {boolean} RevokeExternalBlobUrlsOnDispose
10493
- * @static
10494
- */
10495
- static RevokeExternalBlobUrlsOnDispose:boolean;
10496
- }
10497
10865
  /**
10498
10866
  * Internal settings related to HTML Editor (Design Mode).
10499
10867
  * @class [Fit._internal.Controls.Input.Editor Editor]
@@ -10502,23 +10870,11 @@ declare namespace Fit
10502
10870
  {
10503
10871
  // Properties defined by Fit._internal.Controls.Input.Editor
10504
10872
  /**
10505
- * Additional plugins used with DesignMode.
10506
- * @member {('htmlwriter' | 'justify' | 'pastefromword' | 'resize' | 'base64image' | 'base64imagepaste' | 'dragresize')[]} Plugins
10507
- * @static
10508
- */
10509
- static Plugins:('htmlwriter' | 'justify' | 'pastefromword' | 'resize' | 'base64image' | 'base64imagepaste' | 'dragresize')[];
10510
- /**
10511
10873
  * Skin used with DesignMode - must be set before an editor is created and cannot be changed for each individual control.
10512
10874
  * @member {'bootstrapck' | 'moono-lisa' | null} Skin
10513
10875
  * @static
10514
10876
  */
10515
10877
  static Skin:'bootstrapck' | 'moono-lisa' | null;
10516
- /**
10517
- * Toolbar buttons used with DesignMode - make sure necessary plugins are loaded (see Fit._internal.Controls.Input.EditorPlugins).
10518
- * @member {( { name: 'BasicFormatting', items: ('Bold' | 'Italic' | 'Underline')[] } | { name: 'Justify', items: ('JustifyLeft' | 'JustifyCenter' | 'JustifyRight')[] } | { name: 'Lists', items: ('NumberedList' | 'BulletedList' | 'Indent' | 'Outdent')[] } | { name: 'Links', items: ('Link' | 'Unlink')[] } | { name: 'Insert', items: ('base64image')[] } )[]} Toolbar
10519
- * @static
10520
- */
10521
- static Toolbar:( { name: 'BasicFormatting', items: ('Bold' | 'Italic' | 'Underline')[] } | { name: 'Justify', items: ('JustifyLeft' | 'JustifyCenter' | 'JustifyRight')[] } | { name: 'Lists', items: ('NumberedList' | 'BulletedList' | 'Indent' | 'Outdent')[] } | { name: 'Links', items: ('Link' | 'Unlink')[] } | { name: 'Insert', items: ('base64image')[] } )[];
10522
10878
  }
10523
10879
  }
10524
10880
  }
@@ -11148,6 +11504,11 @@ declare namespace Fit
11148
11504
  {
11149
11505
  // Functions defined by Fit.Http.JsonpRequest
11150
11506
  /**
11507
+ * Abort request.
11508
+ * @function Abort
11509
+ */
11510
+ public Abort():void;
11511
+ /**
11151
11512
  * Get/set name of URL parameter receiving the name of the JSONP callback function.
11152
11513
  * @function Callback
11153
11514
  * @param {string} [val=undefined] - If defined, changes the name of the URL parameter to specified value.