fit-ui 2.19.0 → 2.19.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.
- package/dist/Documentation.html +1 -1
- package/dist/Fit.UI.css +37 -4
- package/dist/Fit.UI.js +80 -2
- package/dist/Fit.UI.min.css +2 -2
- package/dist/Fit.UI.min.js +1 -1
- package/package.json +1 -1
- package/types/index.d.ts +40 -0
package/package.json
CHANGED
package/types/index.d.ts
CHANGED
|
@@ -2687,6 +2687,21 @@ declare namespace Fit
|
|
|
2687
2687
|
{
|
|
2688
2688
|
// Functions defined by Fit.Controls.DialogEditor
|
|
2689
2689
|
/**
|
|
2690
|
+
* Set callback function used to perform on-the-fly validation against control.
|
|
2691
|
+
* @function AddValidationRule
|
|
2692
|
+
* @param {Fit.Controls.ControlBaseTypeDefs.ValidationCallback<this>} validator - Function receiving an instance of the control.
|
|
2693
|
+
A value of False or a non-empty string with an
|
|
2694
|
+
error message must be returned if value is invalid.
|
|
2695
|
+
*/
|
|
2696
|
+
public AddValidationRule(validator:Fit.Controls.ControlBaseTypeDefs.ValidationCallback<this>):void;
|
|
2697
|
+
/**
|
|
2698
|
+
* Set regular expression used to perform on-the-fly validation against control value, as returned by the Value() function.
|
|
2699
|
+
* @function AddValidationRule
|
|
2700
|
+
* @param {RegExp} validator - Regular expression to validate value against.
|
|
2701
|
+
* @param {string} [errorMessage=undefined] - Optional error message displayed if value validation fails.
|
|
2702
|
+
*/
|
|
2703
|
+
public AddValidationRule(validator:RegExp, errorMessage?:string):void;
|
|
2704
|
+
/**
|
|
2690
2705
|
* Get/set value indicating whether control should have spell checking enabled (default) or disabled.
|
|
2691
2706
|
* @function CheckSpelling
|
|
2692
2707
|
* @param {boolean} [val=undefined] - If defined, true enables spell checking while false disables it.
|
|
@@ -2721,6 +2736,14 @@ declare namespace Fit
|
|
|
2721
2736
|
*/
|
|
2722
2737
|
public IsDirty():boolean;
|
|
2723
2738
|
/**
|
|
2739
|
+
* Get value indicating whether control value is valid.
|
|
2740
|
+
Control value is considered invalid if control is required, but no value is set,
|
|
2741
|
+
or if control value does not match regular expression set using SetValidationExpression(..).
|
|
2742
|
+
* @function IsValid
|
|
2743
|
+
* @returns boolean
|
|
2744
|
+
*/
|
|
2745
|
+
public IsValid():boolean;
|
|
2746
|
+
/**
|
|
2724
2747
|
* Get/set value used as a placeholder to indicate expected input on supported browsers.
|
|
2725
2748
|
* @function Placeholder
|
|
2726
2749
|
* @param {string} [val=undefined] - If defined, value is set as placeholder.
|
|
@@ -2728,6 +2751,23 @@ declare namespace Fit
|
|
|
2728
2751
|
*/
|
|
2729
2752
|
public Placeholder(val?:string):string;
|
|
2730
2753
|
/**
|
|
2754
|
+
* Remove all validation rules.
|
|
2755
|
+
* @function RemoveAllValidationRules
|
|
2756
|
+
*/
|
|
2757
|
+
public RemoveAllValidationRules():void;
|
|
2758
|
+
/**
|
|
2759
|
+
* Remove validation function used to perform on-the-fly validation against control.
|
|
2760
|
+
* @function RemoveValidationRule
|
|
2761
|
+
* @param {Fit.Controls.ControlBaseTypeDefs.ValidationCallback<this>} validator - Validation function registered using AddValidationRule(..).
|
|
2762
|
+
*/
|
|
2763
|
+
public RemoveValidationRule(validator:Fit.Controls.ControlBaseTypeDefs.ValidationCallback<this>):void;
|
|
2764
|
+
/**
|
|
2765
|
+
* Remove regular expression used to perform on-the-fly validation against control value.
|
|
2766
|
+
* @function RemoveValidationRule
|
|
2767
|
+
* @param {RegExp} validator - Regular expression registered using AddValidationRule(..).
|
|
2768
|
+
*/
|
|
2769
|
+
public RemoveValidationRule(validator:RegExp):void;
|
|
2770
|
+
/**
|
|
2731
2771
|
* Get/set editor control value.
|
|
2732
2772
|
* @function Value
|
|
2733
2773
|
* @param {string} [val=undefined] - If defined, value is inserted into control.
|