fit-ui 2.20.2 → 3.1.0
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 +120 -8
- package/dist/Fit.UI.js +349 -41
- 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 +149 -135
package/package.json
CHANGED
package/types/index.d.ts
CHANGED
|
@@ -2126,6 +2126,13 @@ declare namespace Fit
|
|
|
2126
2126
|
*/
|
|
2127
2127
|
public Locale(val?:string):string;
|
|
2128
2128
|
/**
|
|
2129
|
+
* Get/set value indicating whether an entire week is selected, in which case the first day of the week is returned as control value.
|
|
2130
|
+
* @function SelectWeek
|
|
2131
|
+
* @param {boolean} [val=undefined] - If defined, True enables week selection, False disables it (default).
|
|
2132
|
+
* @returns boolean
|
|
2133
|
+
*/
|
|
2134
|
+
public SelectWeek(val?:boolean):boolean;
|
|
2135
|
+
/**
|
|
2129
2136
|
* Calling this function will open the calendar widget.
|
|
2130
2137
|
Whether this results in picker being displayed on mobile depends on implementation.
|
|
2131
2138
|
Often it will only work if Show() or Focused(true) is triggered by a user action such as a button click.
|
|
@@ -2148,6 +2155,13 @@ declare namespace Fit
|
|
|
2148
2155
|
*/
|
|
2149
2156
|
public TimePlaceholder(val?:string | null):string | null;
|
|
2150
2157
|
/**
|
|
2158
|
+
* Get/set value indicating whether a DatePicker trigger icon is shown.
|
|
2159
|
+
* @function TriggerIcon
|
|
2160
|
+
* @param {boolean} [val=undefined] - If defined, True enables trigger icon (default), False disables it.
|
|
2161
|
+
* @returns boolean
|
|
2162
|
+
*/
|
|
2163
|
+
public TriggerIcon(val?:boolean):boolean;
|
|
2164
|
+
/**
|
|
2151
2165
|
* Get/set value as if it was changed by the user.
|
|
2152
2166
|
Contrary to Value(..), this function allows for a partial (or invalid) date value.
|
|
2153
2167
|
If the time picker is enabled (see Time(..)) then both the date and time portion can
|
|
@@ -2434,6 +2448,36 @@ declare namespace Fit
|
|
|
2434
2448
|
{
|
|
2435
2449
|
// Functions defined by Fit.Controls.Dialog
|
|
2436
2450
|
/**
|
|
2451
|
+
* Display alert dialog.
|
|
2452
|
+
* @function Alert
|
|
2453
|
+
* @static
|
|
2454
|
+
* @param {string} content - Content to display in alert dialog.
|
|
2455
|
+
* @param {Function} [cb=undefined] - Optional callback function invoked when OK button is clicked.
|
|
2456
|
+
* @returns Fit.Controls.DialogInterface
|
|
2457
|
+
*/
|
|
2458
|
+
public static Alert(content:string, cb?:Function):Fit.Controls.DialogInterface;
|
|
2459
|
+
/**
|
|
2460
|
+
* Display confirmation dialog with OK and Cancel buttons.
|
|
2461
|
+
* @function Confirm
|
|
2462
|
+
* @static
|
|
2463
|
+
* @param {string} content - Content to display in confirmation dialog.
|
|
2464
|
+
* @param {Fit.Controls.DialogTypeDefs.ConfirmCallback} cb - Callback function invoked when a button is clicked.
|
|
2465
|
+
True is passed to callback function when OK is clicked, otherwise False.
|
|
2466
|
+
* @returns Fit.Controls.DialogInterface
|
|
2467
|
+
*/
|
|
2468
|
+
public static Confirm(content:string, cb:Fit.Controls.DialogTypeDefs.ConfirmCallback):Fit.Controls.DialogInterface;
|
|
2469
|
+
/**
|
|
2470
|
+
* Display prompt dialog that allows for user input.
|
|
2471
|
+
* @function Prompt
|
|
2472
|
+
* @static
|
|
2473
|
+
* @param {string} content - Content to display in prompt dialog.
|
|
2474
|
+
* @param {string} defaultValue - Default value in input field.
|
|
2475
|
+
* @param {Fit.Controls.DialogTypeDefs.PromptCallback} [cb=undefined] - Callback function invoked when OK or Cancel button is clicked.
|
|
2476
|
+
Value entered in input field is passed, null if prompt is canceled.
|
|
2477
|
+
* @returns Fit.Controls.DialogInterface
|
|
2478
|
+
*/
|
|
2479
|
+
public static Prompt(content:string, defaultValue:string, cb?:Fit.Controls.DialogTypeDefs.PromptCallback):Fit.Controls.DialogInterface;
|
|
2480
|
+
/**
|
|
2437
2481
|
* Add button to dialog.
|
|
2438
2482
|
* @function AddButton
|
|
2439
2483
|
* @param {Fit.Controls.Button} btn - Instance of Fit.Controls.Button.
|
|
@@ -2625,36 +2669,6 @@ declare namespace Fit
|
|
|
2625
2669
|
* @returns Fit.TypeDefs.CssValue
|
|
2626
2670
|
*/
|
|
2627
2671
|
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;
|
|
2628
|
-
/**
|
|
2629
|
-
* Display alert dialog.
|
|
2630
|
-
* @function Alert
|
|
2631
|
-
* @static
|
|
2632
|
-
* @param {string} content - Content to display in alert dialog.
|
|
2633
|
-
* @param {Function} [cb=undefined] - Optional callback function invoked when OK button is clicked.
|
|
2634
|
-
* @returns Fit.Controls.DialogInterface
|
|
2635
|
-
*/
|
|
2636
|
-
public static Alert(content:string, cb?:Function):Fit.Controls.DialogInterface;
|
|
2637
|
-
/**
|
|
2638
|
-
* Display confirmation dialog with OK and Cancel buttons.
|
|
2639
|
-
* @function Confirm
|
|
2640
|
-
* @static
|
|
2641
|
-
* @param {string} content - Content to display in confirmation dialog.
|
|
2642
|
-
* @param {Fit.Controls.DialogTypeDefs.ConfirmCallback} cb - Callback function invoked when a button is clicked.
|
|
2643
|
-
True is passed to callback function when OK is clicked, otherwise False.
|
|
2644
|
-
* @returns Fit.Controls.DialogInterface
|
|
2645
|
-
*/
|
|
2646
|
-
public static Confirm(content:string, cb:Fit.Controls.DialogTypeDefs.ConfirmCallback):Fit.Controls.DialogInterface;
|
|
2647
|
-
/**
|
|
2648
|
-
* Display prompt dialog that allows for user input.
|
|
2649
|
-
* @function Prompt
|
|
2650
|
-
* @static
|
|
2651
|
-
* @param {string} content - Content to display in prompt dialog.
|
|
2652
|
-
* @param {string} defaultValue - Default value in input field.
|
|
2653
|
-
* @param {Fit.Controls.DialogTypeDefs.PromptCallback} [cb=undefined] - Callback function invoked when OK or Cancel button is clicked.
|
|
2654
|
-
Value entered in input field is passed, null if prompt is canceled.
|
|
2655
|
-
* @returns Fit.Controls.DialogInterface
|
|
2656
|
-
*/
|
|
2657
|
-
public static Prompt(content:string, defaultValue:string, cb?:Fit.Controls.DialogTypeDefs.PromptCallback):Fit.Controls.DialogInterface;
|
|
2658
2672
|
// Functions defined by Fit.Controls.Component
|
|
2659
2673
|
/**
|
|
2660
2674
|
* Destroys control to free up memory.
|
|
@@ -2783,6 +2797,36 @@ declare namespace Fit
|
|
|
2783
2797
|
public Value(val?:string):string;
|
|
2784
2798
|
// Functions defined by Fit.Controls.Dialog
|
|
2785
2799
|
/**
|
|
2800
|
+
* Display alert dialog.
|
|
2801
|
+
* @function Alert
|
|
2802
|
+
* @static
|
|
2803
|
+
* @param {string} content - Content to display in alert dialog.
|
|
2804
|
+
* @param {Function} [cb=undefined] - Optional callback function invoked when OK button is clicked.
|
|
2805
|
+
* @returns Fit.Controls.DialogInterface
|
|
2806
|
+
*/
|
|
2807
|
+
public static Alert(content:string, cb?:Function):Fit.Controls.DialogInterface;
|
|
2808
|
+
/**
|
|
2809
|
+
* Display confirmation dialog with OK and Cancel buttons.
|
|
2810
|
+
* @function Confirm
|
|
2811
|
+
* @static
|
|
2812
|
+
* @param {string} content - Content to display in confirmation dialog.
|
|
2813
|
+
* @param {Fit.Controls.DialogTypeDefs.ConfirmCallback} cb - Callback function invoked when a button is clicked.
|
|
2814
|
+
True is passed to callback function when OK is clicked, otherwise False.
|
|
2815
|
+
* @returns Fit.Controls.DialogInterface
|
|
2816
|
+
*/
|
|
2817
|
+
public static Confirm(content:string, cb:Fit.Controls.DialogTypeDefs.ConfirmCallback):Fit.Controls.DialogInterface;
|
|
2818
|
+
/**
|
|
2819
|
+
* Display prompt dialog that allows for user input.
|
|
2820
|
+
* @function Prompt
|
|
2821
|
+
* @static
|
|
2822
|
+
* @param {string} content - Content to display in prompt dialog.
|
|
2823
|
+
* @param {string} defaultValue - Default value in input field.
|
|
2824
|
+
* @param {Fit.Controls.DialogTypeDefs.PromptCallback} [cb=undefined] - Callback function invoked when OK or Cancel button is clicked.
|
|
2825
|
+
Value entered in input field is passed, null if prompt is canceled.
|
|
2826
|
+
* @returns Fit.Controls.DialogInterface
|
|
2827
|
+
*/
|
|
2828
|
+
public static Prompt(content:string, defaultValue:string, cb?:Fit.Controls.DialogTypeDefs.PromptCallback):Fit.Controls.DialogInterface;
|
|
2829
|
+
/**
|
|
2786
2830
|
* Add button to dialog.
|
|
2787
2831
|
* @function AddButton
|
|
2788
2832
|
* @param {Fit.Controls.Button} btn - Instance of Fit.Controls.Button.
|
|
@@ -2968,36 +3012,6 @@ declare namespace Fit
|
|
|
2968
3012
|
* @returns Fit.TypeDefs.CssValue
|
|
2969
3013
|
*/
|
|
2970
3014
|
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;
|
|
2971
|
-
/**
|
|
2972
|
-
* Display alert dialog.
|
|
2973
|
-
* @function Alert
|
|
2974
|
-
* @static
|
|
2975
|
-
* @param {string} content - Content to display in alert dialog.
|
|
2976
|
-
* @param {Function} [cb=undefined] - Optional callback function invoked when OK button is clicked.
|
|
2977
|
-
* @returns Fit.Controls.DialogInterface
|
|
2978
|
-
*/
|
|
2979
|
-
public static Alert(content:string, cb?:Function):Fit.Controls.DialogInterface;
|
|
2980
|
-
/**
|
|
2981
|
-
* Display confirmation dialog with OK and Cancel buttons.
|
|
2982
|
-
* @function Confirm
|
|
2983
|
-
* @static
|
|
2984
|
-
* @param {string} content - Content to display in confirmation dialog.
|
|
2985
|
-
* @param {Fit.Controls.DialogTypeDefs.ConfirmCallback} cb - Callback function invoked when a button is clicked.
|
|
2986
|
-
True is passed to callback function when OK is clicked, otherwise False.
|
|
2987
|
-
* @returns Fit.Controls.DialogInterface
|
|
2988
|
-
*/
|
|
2989
|
-
public static Confirm(content:string, cb:Fit.Controls.DialogTypeDefs.ConfirmCallback):Fit.Controls.DialogInterface;
|
|
2990
|
-
/**
|
|
2991
|
-
* Display prompt dialog that allows for user input.
|
|
2992
|
-
* @function Prompt
|
|
2993
|
-
* @static
|
|
2994
|
-
* @param {string} content - Content to display in prompt dialog.
|
|
2995
|
-
* @param {string} defaultValue - Default value in input field.
|
|
2996
|
-
* @param {Fit.Controls.DialogTypeDefs.PromptCallback} [cb=undefined] - Callback function invoked when OK or Cancel button is clicked.
|
|
2997
|
-
Value entered in input field is passed, null if prompt is canceled.
|
|
2998
|
-
* @returns Fit.Controls.DialogInterface
|
|
2999
|
-
*/
|
|
3000
|
-
public static Prompt(content:string, defaultValue:string, cb?:Fit.Controls.DialogTypeDefs.PromptCallback):Fit.Controls.DialogInterface;
|
|
3001
3015
|
// Functions defined by Fit.Controls.Component
|
|
3002
3016
|
/**
|
|
3003
3017
|
* Destroys control to free up memory.
|
|
@@ -9539,74 +9553,6 @@ declare namespace Fit
|
|
|
9539
9553
|
{
|
|
9540
9554
|
// Functions defined by Fit.Cookies
|
|
9541
9555
|
/**
|
|
9542
|
-
* Create instance of cookie container isolated to either current path (default)
|
|
9543
|
-
or a custom path, and optionally an alternative part of the domain (by default
|
|
9544
|
-
cookies are available only on the current domain, while defining a domain makes
|
|
9545
|
-
cookies available to that particular domain and subdomains).
|
|
9546
|
-
* @function Cookies
|
|
9547
|
-
*/
|
|
9548
|
-
constructor();
|
|
9549
|
-
/**
|
|
9550
|
-
* Get/set portion of domain to which cookies are isolated.
|
|
9551
|
-
* @function Domain
|
|
9552
|
-
* @param {string | null} [val=undefined] - If defined, changes isolation to specified domain portion, including subdomains - pass
|
|
9553
|
-
Null to unset it to make cookies available to current domain only (excluding subdomains).
|
|
9554
|
-
* @returns string | null
|
|
9555
|
-
*/
|
|
9556
|
-
public Domain(val?:string | null):string | null;
|
|
9557
|
-
/**
|
|
9558
|
-
* Returns cookie value if found, otherwise Null.
|
|
9559
|
-
* @function Get
|
|
9560
|
-
* @param {string} name - Unique cookie name.
|
|
9561
|
-
* @returns string | null
|
|
9562
|
-
*/
|
|
9563
|
-
public Get(name:string):string | null;
|
|
9564
|
-
/**
|
|
9565
|
-
* Get/set path to which cookies are isolated.
|
|
9566
|
-
* @function Path
|
|
9567
|
-
* @param {string} [val=undefined] - If defined, changes isolation to specified path.
|
|
9568
|
-
* @returns string
|
|
9569
|
-
*/
|
|
9570
|
-
public Path(val?:string):string;
|
|
9571
|
-
/**
|
|
9572
|
-
* Get/set prefix added to all cookies - useful for grouping related cookies and to avoid naming conflicts.
|
|
9573
|
-
Notice that Set/Get/Remove functions automatically apply the prefix to cookie names, so the use of a prefix
|
|
9574
|
-
is completely transparent.
|
|
9575
|
-
* @function Prefix
|
|
9576
|
-
* @param {string} [val=undefined] - If defined, changes cookie prefix to specified value - pass Null to unset it.
|
|
9577
|
-
* @returns string | null
|
|
9578
|
-
*/
|
|
9579
|
-
public Prefix(val?:string):string | null;
|
|
9580
|
-
/**
|
|
9581
|
-
* Remove cookie.
|
|
9582
|
-
* @function Remove
|
|
9583
|
-
* @param {string} name - Unique cookie name.
|
|
9584
|
-
*/
|
|
9585
|
-
public Remove(name:string):void;
|
|
9586
|
-
/**
|
|
9587
|
-
* Get/set SameSite policy.
|
|
9588
|
-
* @function SameSite
|
|
9589
|
-
* @param {"None" | "Lax" | "Strict" | null} [val=undefined] - If defined, changes SameSite policy - pass Null to unset it.
|
|
9590
|
-
* @returns string | null
|
|
9591
|
-
*/
|
|
9592
|
-
public SameSite(val?:"None" | "Lax" | "Strict" | null):string | null;
|
|
9593
|
-
/**
|
|
9594
|
-
* Get/set Secure flag.
|
|
9595
|
-
* @function Secure
|
|
9596
|
-
* @param {boolean} [val=undefined] - If defined, changes Secure flag.
|
|
9597
|
-
* @returns boolean
|
|
9598
|
-
*/
|
|
9599
|
-
public Secure(val?:boolean):boolean;
|
|
9600
|
-
/**
|
|
9601
|
-
* Create or update cookie.
|
|
9602
|
-
* @function Set
|
|
9603
|
-
* @param {string} name - Unique cookie name.
|
|
9604
|
-
* @param {string} value - Cookie value (cannot contain semicolon!).
|
|
9605
|
-
* @param {number} [seconds=undefined] - Optional expiration time in seconds. Creating a cookie with
|
|
9606
|
-
no expiration time will cause it to expire when session ends.
|
|
9607
|
-
*/
|
|
9608
|
-
public Set(name:string, value:string, seconds?:number):void;
|
|
9609
|
-
/**
|
|
9610
9556
|
* Returns cookie value if found, otherwise Null.
|
|
9611
9557
|
* @function Get
|
|
9612
9558
|
* @static
|
|
@@ -9676,6 +9622,74 @@ declare namespace Fit
|
|
|
9676
9622
|
* @param {Fit.CookiesDefs.Cookie} newCookie - New or updated cookie.
|
|
9677
9623
|
*/
|
|
9678
9624
|
public static Set(newCookie:Fit.CookiesDefs.Cookie):void;
|
|
9625
|
+
/**
|
|
9626
|
+
* Create instance of cookie container isolated to either current path (default)
|
|
9627
|
+
or a custom path, and optionally an alternative part of the domain (by default
|
|
9628
|
+
cookies are available only on the current domain, while defining a domain makes
|
|
9629
|
+
cookies available to that particular domain and subdomains).
|
|
9630
|
+
* @function Cookies
|
|
9631
|
+
*/
|
|
9632
|
+
constructor();
|
|
9633
|
+
/**
|
|
9634
|
+
* Get/set portion of domain to which cookies are isolated.
|
|
9635
|
+
* @function Domain
|
|
9636
|
+
* @param {string | null} [val=undefined] - If defined, changes isolation to specified domain portion, including subdomains - pass
|
|
9637
|
+
Null to unset it to make cookies available to current domain only (excluding subdomains).
|
|
9638
|
+
* @returns string | null
|
|
9639
|
+
*/
|
|
9640
|
+
public Domain(val?:string | null):string | null;
|
|
9641
|
+
/**
|
|
9642
|
+
* Returns cookie value if found, otherwise Null.
|
|
9643
|
+
* @function Get
|
|
9644
|
+
* @param {string} name - Unique cookie name.
|
|
9645
|
+
* @returns string | null
|
|
9646
|
+
*/
|
|
9647
|
+
public Get(name:string):string | null;
|
|
9648
|
+
/**
|
|
9649
|
+
* Get/set path to which cookies are isolated.
|
|
9650
|
+
* @function Path
|
|
9651
|
+
* @param {string} [val=undefined] - If defined, changes isolation to specified path.
|
|
9652
|
+
* @returns string
|
|
9653
|
+
*/
|
|
9654
|
+
public Path(val?:string):string;
|
|
9655
|
+
/**
|
|
9656
|
+
* Get/set prefix added to all cookies - useful for grouping related cookies and to avoid naming conflicts.
|
|
9657
|
+
Notice that Set/Get/Remove functions automatically apply the prefix to cookie names, so the use of a prefix
|
|
9658
|
+
is completely transparent.
|
|
9659
|
+
* @function Prefix
|
|
9660
|
+
* @param {string} [val=undefined] - If defined, changes cookie prefix to specified value - pass Null to unset it.
|
|
9661
|
+
* @returns string | null
|
|
9662
|
+
*/
|
|
9663
|
+
public Prefix(val?:string):string | null;
|
|
9664
|
+
/**
|
|
9665
|
+
* Remove cookie.
|
|
9666
|
+
* @function Remove
|
|
9667
|
+
* @param {string} name - Unique cookie name.
|
|
9668
|
+
*/
|
|
9669
|
+
public Remove(name:string):void;
|
|
9670
|
+
/**
|
|
9671
|
+
* Get/set SameSite policy.
|
|
9672
|
+
* @function SameSite
|
|
9673
|
+
* @param {"None" | "Lax" | "Strict" | null} [val=undefined] - If defined, changes SameSite policy - pass Null to unset it.
|
|
9674
|
+
* @returns string | null
|
|
9675
|
+
*/
|
|
9676
|
+
public SameSite(val?:"None" | "Lax" | "Strict" | null):string | null;
|
|
9677
|
+
/**
|
|
9678
|
+
* Get/set Secure flag.
|
|
9679
|
+
* @function Secure
|
|
9680
|
+
* @param {boolean} [val=undefined] - If defined, changes Secure flag.
|
|
9681
|
+
* @returns boolean
|
|
9682
|
+
*/
|
|
9683
|
+
public Secure(val?:boolean):boolean;
|
|
9684
|
+
/**
|
|
9685
|
+
* Create or update cookie.
|
|
9686
|
+
* @function Set
|
|
9687
|
+
* @param {string} name - Unique cookie name.
|
|
9688
|
+
* @param {string} value - Cookie value (cannot contain semicolon!).
|
|
9689
|
+
* @param {number} [seconds=undefined] - Optional expiration time in seconds. Creating a cookie with
|
|
9690
|
+
no expiration time will cause it to expire when session ends.
|
|
9691
|
+
*/
|
|
9692
|
+
public Set(name:string, value:string, seconds?:number):void;
|
|
9679
9693
|
}
|
|
9680
9694
|
/**
|
|
9681
9695
|
* Core features extending the capabilities of native JS.
|
|
@@ -12141,6 +12155,13 @@ declare namespace Fit
|
|
|
12141
12155
|
{
|
|
12142
12156
|
// Functions defined by Fit.DragDrop.Draggable
|
|
12143
12157
|
/**
|
|
12158
|
+
* Get next z-index which will place an element above any draggable element.
|
|
12159
|
+
* @function GetNextZindex
|
|
12160
|
+
* @static
|
|
12161
|
+
* @returns number
|
|
12162
|
+
*/
|
|
12163
|
+
public static GetNextZindex():number;
|
|
12164
|
+
/**
|
|
12144
12165
|
* Bring draggable to front.
|
|
12145
12166
|
* @function BringToFront
|
|
12146
12167
|
*/
|
|
@@ -12201,13 +12222,6 @@ declare namespace Fit
|
|
|
12201
12222
|
* @returns boolean
|
|
12202
12223
|
*/
|
|
12203
12224
|
public ReturnFocus(val?:boolean):boolean;
|
|
12204
|
-
/**
|
|
12205
|
-
* Get next z-index which will place an element above any draggable element.
|
|
12206
|
-
* @function GetNextZindex
|
|
12207
|
-
* @static
|
|
12208
|
-
* @returns number
|
|
12209
|
-
*/
|
|
12210
|
-
public static GetNextZindex():number;
|
|
12211
12225
|
}
|
|
12212
12226
|
/**
|
|
12213
12227
|
*
|