fit-ui 2.5.0 → 2.5.4

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "fit-ui",
3
- "version": "2.5.0",
3
+ "version": "2.5.4",
4
4
  "title": "Fit.UI",
5
5
  "description": "Object Oriented framework for building rich User Interfaces",
6
6
  "main": "dist/Fit.UI.js",
package/types/index.d.ts CHANGED
@@ -6059,12 +6059,13 @@ declare namespace Fit
6059
6059
  */
6060
6060
  public JsonpCallback(val?:string | null):string | null;
6061
6061
  /**
6062
- * Get/set value indicating whether control allows for multiple selections simultaneously.
6063
- * @function MultiSelectionMode
6064
- * @param {boolean} [val=undefined] - If defined, True enables support for multiple selections, False disables it.
6062
+ * Get/set flag indicating whether searchable ListView is enabled or not.
6063
+ The value provided also determines the value for InputEnabled and vice versa.
6064
+ * @function ListViewEnabled
6065
+ * @param {boolean} [val=undefined] - If defined, True enables ListView and search capability (default), False disables it.
6065
6066
  * @returns boolean
6066
6067
  */
6067
- public MultiSelectionMode(val?:boolean):boolean;
6068
+ public ListViewEnabled(val?:boolean):boolean;
6068
6069
  /**
6069
6070
  * Add event handler fired if data request is canceled.
6070
6071
  Function receives two arguments:
@@ -6112,6 +6113,13 @@ declare namespace Fit
6112
6113
  */
6113
6114
  public OnResponse(cb:Fit.Controls.WSDropDownTypeDefs.ResponseEventHandler<this>):void;
6114
6115
  /**
6116
+ * Get/set value indicating whether TreeView control is enabled or not.
6117
+ * @function TreeViewEnabled
6118
+ * @param {boolean} [val=undefined] - If defined, True enables TreeView (default), False disables it.
6119
+ * @returns boolean
6120
+ */
6121
+ public TreeViewEnabled(val?:boolean):boolean;
6122
+ /**
6115
6123
  * Get/set URL to WebService responsible for providing data to drop down.
6116
6124
  WebService must deliver data in the following JSON format:
6117
6125
  [
@@ -6128,6 +6136,18 @@ declare namespace Fit
6128
6136
  public Url(wsUrl?:string):string;
6129
6137
  /**
6130
6138
  * Get/set value indicating whether control uses the built-in action menu to ease addition and removal of items.
6139
+ If this property is not explicitly set, it will automatically be changed by the control depending on data and other settings.
6140
+ The action menu will be enabled if TreeViewEnabled is set to False, as it would otherwise not show anything unless the user
6141
+ enters a search value. If TreeViewEnabled is True but no data is provided to the TreeView control upon request, the action menu
6142
+ is also enabled.
6143
+ If the control does not have any selections, InputEnabled (or its alias ListViewEnabled) is True, and TreeViewEnabled is False,
6144
+ no picker will be displayed since the action menu would only display the "Search for options" item - but it should already
6145
+ be obvious to the user that searching is required due to the placeholder displaying "Search.." by default.
6146
+ Likewise, if TreeViewEnabled is True and InputEnabled (or its alias ListViewEnabled) is False, and no selections are made,
6147
+ the action menu would only display "Show available options". In this case the TreeView will be displayed instead,
6148
+ even if UseActionMenu has explicitely been set to True.
6149
+ The behaviour described is in place to make sure the action menu is only displayed when it makes sense, since it introduces
6150
+ and extra step (click) required by the user to access data.
6131
6151
  * @function UseActionMenu
6132
6152
  * @param {boolean} [val=undefined] - If defined, True enables the action menu, False disables it.
6133
6153
  */