fit-ui 2.4.1 → 2.5.3
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/dist/Documentation.html +2 -2
- package/dist/Fit.UI.css +8 -1
- package/dist/Fit.UI.js +557 -47
- package/dist/Fit.UI.min.css +1 -1
- package/dist/Fit.UI.min.js +1 -1
- package/package.json +1 -1
- package/types/index.d.ts +95 -32
package/package.json
CHANGED
package/types/index.d.ts
CHANGED
|
@@ -4104,6 +4104,12 @@ declare namespace Fit
|
|
|
4104
4104
|
*/
|
|
4105
4105
|
public GetItem(value:string):Fit.Controls.ListViewTypeDefs.ListViewItem | null;
|
|
4106
4106
|
/**
|
|
4107
|
+
* Get all items - returns array containing objects with Title (string) and Value (string) properties.
|
|
4108
|
+
* @function GetItems
|
|
4109
|
+
* @returns Fit.Controls.ListViewTypeDefs.ListViewItem[]
|
|
4110
|
+
*/
|
|
4111
|
+
public GetItems():Fit.Controls.ListViewTypeDefs.ListViewItem[];
|
|
4112
|
+
/**
|
|
4107
4113
|
* Returns value indicating whether control contains item with specified value.
|
|
4108
4114
|
* @function HasItem
|
|
4109
4115
|
* @param {string} value - Value of item to check for.
|
|
@@ -4117,6 +4123,23 @@ declare namespace Fit
|
|
|
4117
4123
|
*/
|
|
4118
4124
|
constructor(controlId?:string);
|
|
4119
4125
|
/**
|
|
4126
|
+
* Register event handler fired when item is being selected.
|
|
4127
|
+
Selection can be canceled by returning False.
|
|
4128
|
+
The following arguments are passed to event handler function:
|
|
4129
|
+
Sender (ListView) and Item (with Title (string) and Value (string) properties).
|
|
4130
|
+
* @function OnSelect
|
|
4131
|
+
* @param {Fit.Controls.ListViewTypeDefs.OnSelectEventHandler<this>} cb - Event handler function.
|
|
4132
|
+
*/
|
|
4133
|
+
public OnSelect(cb:Fit.Controls.ListViewTypeDefs.OnSelectEventHandler<this>):void;
|
|
4134
|
+
/**
|
|
4135
|
+
* Register event handler fired when item is selected.
|
|
4136
|
+
The following arguments are passed to event handler function:
|
|
4137
|
+
Sender (ListView) and Item (with Title (string) and Value (string) properties).
|
|
4138
|
+
* @function OnSelected
|
|
4139
|
+
* @param {Fit.Controls.ListViewTypeDefs.OnSelectedEventHandler<this>} cb - Event handler function.
|
|
4140
|
+
*/
|
|
4141
|
+
public OnSelected(cb:Fit.Controls.ListViewTypeDefs.OnSelectedEventHandler<this>):void;
|
|
4142
|
+
/**
|
|
4120
4143
|
* Remove item from ListView.
|
|
4121
4144
|
* @function RemoveItem
|
|
4122
4145
|
* @param {string} value - Value of item to remove.
|
|
@@ -4331,6 +4354,49 @@ declare namespace Fit
|
|
|
4331
4354
|
public Render(toElement?:HTMLElement):void;
|
|
4332
4355
|
}
|
|
4333
4356
|
/**
|
|
4357
|
+
*
|
|
4358
|
+
* @namespace [Fit.Controls.ListViewTypeDefs ListViewTypeDefs]
|
|
4359
|
+
*/
|
|
4360
|
+
namespace ListViewTypeDefs
|
|
4361
|
+
{
|
|
4362
|
+
// Functions defined by Fit.Controls.ListViewTypeDefs
|
|
4363
|
+
/**
|
|
4364
|
+
* OnSelected event handler.
|
|
4365
|
+
* @template TypeOfThis
|
|
4366
|
+
* @callback OnSelectedEventHandler
|
|
4367
|
+
* @param {TypeOfThis} sender - Instance of control.
|
|
4368
|
+
* @param {{ Title: string, Value: string }} item - Selected item.
|
|
4369
|
+
*/
|
|
4370
|
+
type OnSelectedEventHandler<TypeOfThis> = (sender:TypeOfThis, item:{ Title: string, Value: string }) => void;
|
|
4371
|
+
/**
|
|
4372
|
+
* OnSelect event handler.
|
|
4373
|
+
* @template TypeOfThis
|
|
4374
|
+
* @callback OnSelectEventHandler
|
|
4375
|
+
* @param {TypeOfThis} sender - Instance of control.
|
|
4376
|
+
* @param {{ Title: string, Value: string }} item - Selected item.
|
|
4377
|
+
* @returns boolean | void
|
|
4378
|
+
*/
|
|
4379
|
+
type OnSelectEventHandler<TypeOfThis> = (sender:TypeOfThis, item:{ Title: string, Value: string }) => boolean | void;
|
|
4380
|
+
/**
|
|
4381
|
+
* ListView item.
|
|
4382
|
+
* @class [Fit.Controls.ListViewTypeDefs.ListViewItem ListViewItem]
|
|
4383
|
+
*/
|
|
4384
|
+
class ListViewItem
|
|
4385
|
+
{
|
|
4386
|
+
// Properties defined by Fit.Controls.ListViewTypeDefs.ListViewItem
|
|
4387
|
+
/**
|
|
4388
|
+
* Item title.
|
|
4389
|
+
* @member {string} Title
|
|
4390
|
+
*/
|
|
4391
|
+
Title:string;
|
|
4392
|
+
/**
|
|
4393
|
+
* Unique item value.
|
|
4394
|
+
* @member {string} Value
|
|
4395
|
+
*/
|
|
4396
|
+
Value:string;
|
|
4397
|
+
}
|
|
4398
|
+
}
|
|
4399
|
+
/**
|
|
4334
4400
|
* Class from which all Picker Controls extend.
|
|
4335
4401
|
Control developers must override: GetDomElement, Destroy.
|
|
4336
4402
|
Overriding the following functions is optional:
|
|
@@ -5993,13 +6059,6 @@ declare namespace Fit
|
|
|
5993
6059
|
*/
|
|
5994
6060
|
public JsonpCallback(val?:string | null):string | null;
|
|
5995
6061
|
/**
|
|
5996
|
-
* Get/set value indicating whether control allows for multiple selections simultaneously.
|
|
5997
|
-
* @function MultiSelectionMode
|
|
5998
|
-
* @param {boolean} [val=undefined] - If defined, True enables support for multiple selections, False disables it.
|
|
5999
|
-
* @returns boolean
|
|
6000
|
-
*/
|
|
6001
|
-
public MultiSelectionMode(val?:boolean):boolean;
|
|
6002
|
-
/**
|
|
6003
6062
|
* Add event handler fired if data request is canceled.
|
|
6004
6063
|
Function receives two arguments:
|
|
6005
6064
|
Sender (Fit.Controls.WSDropDown) and EventArgs object.
|
|
@@ -6061,6 +6120,12 @@ declare namespace Fit
|
|
|
6061
6120
|
*/
|
|
6062
6121
|
public Url(wsUrl?:string):string;
|
|
6063
6122
|
/**
|
|
6123
|
+
* Get/set value indicating whether control uses the built-in action menu to ease addition and removal of items.
|
|
6124
|
+
* @function UseActionMenu
|
|
6125
|
+
* @param {boolean} [val=undefined] - If defined, True enables the action menu, False disables it.
|
|
6126
|
+
*/
|
|
6127
|
+
public UseActionMenu(val?:boolean):void;
|
|
6128
|
+
/**
|
|
6064
6129
|
* Create instance of WSDropDown control.
|
|
6065
6130
|
* @function WSDropDown
|
|
6066
6131
|
* @param {string} [ctlId=undefined] - Unique control ID that can be used to access control using Fit.Controls.Find(..).
|
|
@@ -6828,6 +6893,12 @@ declare namespace Fit
|
|
|
6828
6893
|
*/
|
|
6829
6894
|
public GetItem(value:string):Fit.Controls.ListViewTypeDefs.ListViewItem | null;
|
|
6830
6895
|
/**
|
|
6896
|
+
* Get all items - returns array containing objects with Title (string) and Value (string) properties.
|
|
6897
|
+
* @function GetItems
|
|
6898
|
+
* @returns Fit.Controls.ListViewTypeDefs.ListViewItem[]
|
|
6899
|
+
*/
|
|
6900
|
+
public GetItems():Fit.Controls.ListViewTypeDefs.ListViewItem[];
|
|
6901
|
+
/**
|
|
6831
6902
|
* Returns value indicating whether control contains item with specified value.
|
|
6832
6903
|
* @function HasItem
|
|
6833
6904
|
* @param {string} value - Value of item to check for.
|
|
@@ -6835,6 +6906,23 @@ declare namespace Fit
|
|
|
6835
6906
|
*/
|
|
6836
6907
|
public HasItem(value:string):boolean;
|
|
6837
6908
|
/**
|
|
6909
|
+
* Register event handler fired when item is being selected.
|
|
6910
|
+
Selection can be canceled by returning False.
|
|
6911
|
+
The following arguments are passed to event handler function:
|
|
6912
|
+
Sender (ListView) and Item (with Title (string) and Value (string) properties).
|
|
6913
|
+
* @function OnSelect
|
|
6914
|
+
* @param {Fit.Controls.ListViewTypeDefs.OnSelectEventHandler<this>} cb - Event handler function.
|
|
6915
|
+
*/
|
|
6916
|
+
public OnSelect(cb:Fit.Controls.ListViewTypeDefs.OnSelectEventHandler<this>):void;
|
|
6917
|
+
/**
|
|
6918
|
+
* Register event handler fired when item is selected.
|
|
6919
|
+
The following arguments are passed to event handler function:
|
|
6920
|
+
Sender (ListView) and Item (with Title (string) and Value (string) properties).
|
|
6921
|
+
* @function OnSelected
|
|
6922
|
+
* @param {Fit.Controls.ListViewTypeDefs.OnSelectedEventHandler<this>} cb - Event handler function.
|
|
6923
|
+
*/
|
|
6924
|
+
public OnSelected(cb:Fit.Controls.ListViewTypeDefs.OnSelectedEventHandler<this>):void;
|
|
6925
|
+
/**
|
|
6838
6926
|
* Remove item from ListView.
|
|
6839
6927
|
* @function RemoveItem
|
|
6840
6928
|
* @param {string} value - Value of item to remove.
|
|
@@ -8143,31 +8231,6 @@ declare namespace Fit
|
|
|
8143
8231
|
}
|
|
8144
8232
|
}
|
|
8145
8233
|
/**
|
|
8146
|
-
*
|
|
8147
|
-
* @namespace [Fit.Controls.ListViewTypeDefs ListViewTypeDefs]
|
|
8148
|
-
*/
|
|
8149
|
-
namespace ListViewTypeDefs
|
|
8150
|
-
{
|
|
8151
|
-
/**
|
|
8152
|
-
* ListView item.
|
|
8153
|
-
* @class [Fit.Controls.ListViewTypeDefs.ListViewItem ListViewItem]
|
|
8154
|
-
*/
|
|
8155
|
-
class ListViewItem
|
|
8156
|
-
{
|
|
8157
|
-
// Properties defined by Fit.Controls.ListViewTypeDefs.ListViewItem
|
|
8158
|
-
/**
|
|
8159
|
-
* Item title.
|
|
8160
|
-
* @member {string} Title
|
|
8161
|
-
*/
|
|
8162
|
-
Title:string;
|
|
8163
|
-
/**
|
|
8164
|
-
* Unique item value.
|
|
8165
|
-
* @member {string} Value
|
|
8166
|
-
*/
|
|
8167
|
-
Value:string;
|
|
8168
|
-
}
|
|
8169
|
-
}
|
|
8170
|
-
/**
|
|
8171
8234
|
* Enum values determining visual appearance of button controls.
|
|
8172
8235
|
* @enum {string}
|
|
8173
8236
|
*/
|