fit-ui 2.8.2 → 2.8.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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "fit-ui",
3
- "version": "2.8.2",
3
+ "version": "2.8.3",
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
@@ -8956,9 +8956,9 @@ declare namespace Fit
8956
8956
  }
8957
8957
  /**
8958
8958
  * Core features extending the capabilities of native JS.
8959
- * @class [Fit.Core Core]
8959
+ * @namespace [Fit.Core Core]
8960
8960
  */
8961
- class Core
8961
+ namespace Core
8962
8962
  {
8963
8963
  // Functions defined by Fit.Core
8964
8964
  /**
@@ -8982,7 +8982,7 @@ declare namespace Fit
8982
8982
  * @param {ObjectType} obj - JS object to clone.
8983
8983
  * @returns ObjectType
8984
8984
  */
8985
- public static Clone<ObjectType>(obj:ObjectType):ObjectType;
8985
+ export function Clone<ObjectType>(obj:ObjectType):ObjectType;
8986
8986
  /**
8987
8987
  * Create a debouncing function that delays execution the specified number of milliseconds.
8988
8988
  Invoking function multiple times merely postpone execution the specified number of milliseconds.
@@ -8994,7 +8994,7 @@ declare namespace Fit
8994
8994
  * @param {any} [thisArg=undefined] - The value 'this' resolves to within debounced function.
8995
8995
  * @returns Fit.CoreTypeDefs.DebounceFunction
8996
8996
  */
8997
- public static CreateDebouncer(func:Function, timeout:number, thisArg?:any):Fit.CoreTypeDefs.DebounceFunction;
8997
+ export function CreateDebouncer(func:Function, timeout:number, thisArg?:any):Fit.CoreTypeDefs.DebounceFunction;
8998
8998
  /**
8999
8999
  * Create a function override for any given function using the approach below.
9000
9000
 
@@ -9014,7 +9014,7 @@ declare namespace Fit
9014
9014
  * @param {Function} newFunction - Reference to replacement function.
9015
9015
  * @returns Function
9016
9016
  */
9017
- public static CreateOverride(originalFunction:Function, newFunction:Function):Function;
9017
+ export function CreateOverride(originalFunction:Function, newFunction:Function):Function;
9018
9018
  /**
9019
9019
  * Extend any object with the public members of a super class.
9020
9020
 
@@ -9043,7 +9043,7 @@ declare namespace Fit
9043
9043
  * @param {Function} superType - Class (function) to extend from.
9044
9044
  * @returns any
9045
9045
  */
9046
- public static Extend(subInstance:any, superType:Function):any;
9046
+ export function Extend(subInstance:any, superType:Function):any;
9047
9047
  /**
9048
9048
  * Returns boolean indicating whether given object is an extension of a given super type - see Fit.Core.Extend(..).
9049
9049
  Also look into Fit.Core.InstanceOf(..) which may provide the desired behaviour.
@@ -9053,7 +9053,7 @@ declare namespace Fit
9053
9053
  * @param {Function} superType - Reference to super class (function).
9054
9054
  * @returns boolean
9055
9055
  */
9056
- public static Extends(instance:any, superType:Function):boolean;
9056
+ export function Extends(instance:any, superType:Function):boolean;
9057
9057
  /**
9058
9058
  * Returns boolean indicating whether given object is an instance or extension of a given class type - see Fit.Core.Extend(..).
9059
9059
  This is equivalent of: var result = (obj instanceof MyType || Fit.Core.Extends(obj, MyType));.
@@ -9063,7 +9063,7 @@ declare namespace Fit
9063
9063
  * @param {Function} type - Reference to class (function).
9064
9064
  * @returns boolean
9065
9065
  */
9066
- public static InstanceOf(instance:any, type:Function):boolean;
9066
+ export function InstanceOf(instance:any, type:Function):boolean;
9067
9067
  /**
9068
9068
  * Compare two JavaScript objects to determine whether they are identical.
9069
9069
  Returns True if objects are identical (equal), otherwise False.
@@ -9079,7 +9079,7 @@ declare namespace Fit
9079
9079
  * @param {any} jsObj2 - JS object to compare agains first JS object.
9080
9080
  * @returns boolean
9081
9081
  */
9082
- public static IsEqual(jsObj1:any, jsObj2:any):boolean;
9082
+ export function IsEqual(jsObj1:any, jsObj2:any):boolean;
9083
9083
  /**
9084
9084
  * Deep merges two objects and returns the resulting object.
9085
9085
  Take notice of the behaviour and restriction of Fit.Core.Clone(..) since
@@ -9093,9 +9093,23 @@ declare namespace Fit
9093
9093
  * @static
9094
9094
  * @param {ObjectTypeA} targetObject - Target object.
9095
9095
  * @param {ObjectTypeB} mergeObject - Merge object.
9096
+ * @param {Fit.Core.MergeOverwriteBehaviour | "Always" | "Never" | "SkipNullAndUndefined"} [mergeObjectOverwriteBehaviour=undefined] - Overwrite behaviour for merge object.
9096
9097
  * @returns ObjectTypeA & ObjectTypeB
9097
9098
  */
9098
- public static Merge<ObjectTypeA, ObjectTypeB>(targetObject:ObjectTypeA, mergeObject:ObjectTypeB):ObjectTypeA & ObjectTypeB;
9099
+ export function Merge<ObjectTypeA, ObjectTypeB>(targetObject:ObjectTypeA, mergeObject:ObjectTypeB, mergeObjectOverwriteBehaviour?:Fit.Core.MergeOverwriteBehaviour | "Always" | "Never" | "SkipNullAndUndefined"):ObjectTypeA & ObjectTypeB;
9100
+ /**
9101
+ * Merge behaviour.
9102
+ * @enum {string}
9103
+ */
9104
+ enum MergeOverwriteBehaviour
9105
+ {
9106
+ /** Always overwrite property values from target object with property values from merge object (default behaviour). */
9107
+ Always = "Always",
9108
+ /** Never overwrite property values from target object - only add missing property values from merge object. */
9109
+ Never = "Never",
9110
+ /** Always overwrite property values from target object with property values from merge object, except values from merge object that are Null or Undefined. */
9111
+ SkipNullAndUndefined = "SkipNullAndUndefined"
9112
+ }
9099
9113
  }
9100
9114
  /**
9101
9115
  *