fit-ui 3.0.0 → 3.2.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/Controls/ColorPicker/transparent.jpg +0 -0
- package/dist/Documentation.html +2 -2
- package/dist/Fit.UI.css +202 -8
- package/dist/Fit.UI.js +600 -41
- package/dist/Fit.UI.min.css +1 -1
- package/dist/Fit.UI.min.js +1 -1
- package/dist/Resources/CKEditor/contents.css +208 -208
- package/dist/Resources/CKEditor/plugins/autocomplete/skins/default.css +38 -38
- package/dist/Resources/CKEditor/plugins/dialog/styles/dialog.css +18 -18
- package/dist/Resources/CKEditor/plugins/emoji/skins/default.css +237 -237
- package/dist/Resources/CKEditor/plugins/tableselection/styles/tableselection.css +36 -36
- package/dist/Resources/CKEditor/skins/moono-lisa/dialog.css +4 -4
- package/dist/Resources/CKEditor/skins/moono-lisa/dialog_ie.css +4 -4
- package/dist/Resources/CKEditor/skins/moono-lisa/dialog_ie8.css +4 -4
- package/dist/Resources/CKEditor/skins/moono-lisa/dialog_iequirks.css +4 -4
- package/dist/Resources/CKEditor/skins/moono-lisa/editor.css +4 -4
- package/dist/Resources/CKEditor/skins/moono-lisa/editor_gecko.css +4 -4
- package/dist/Resources/CKEditor/skins/moono-lisa/editor_ie.css +4 -4
- package/dist/Resources/CKEditor/skins/moono-lisa/editor_ie8.css +4 -4
- package/dist/Resources/CKEditor/skins/moono-lisa/editor_iequirks.css +4 -4
- package/dist/Resources/CKEditor/styles.js +137 -137
- package/package.json +1 -1
- package/types/index.d.ts +440 -144
package/types/index.d.ts
CHANGED
|
@@ -896,6 +896,16 @@ declare namespace Fit
|
|
|
896
896
|
{
|
|
897
897
|
// Functions defined by Fit.Color
|
|
898
898
|
/**
|
|
899
|
+
* Get "black" or "white" depending on which is best suited in combination with specified color.
|
|
900
|
+
* @function GetContrastColor
|
|
901
|
+
* @static
|
|
902
|
+
* @param {string} hex - HEX color string, e.g. #C0C0C0 (hash symbol is optional).
|
|
903
|
+
* @param {number} [threshold=undefined] - Returns "black" when brightness is above threshold, "white" otherwise.
|
|
904
|
+
0 = all black, 255 = all white. Value defaults to 128.
|
|
905
|
+
* @returns string
|
|
906
|
+
*/
|
|
907
|
+
public static GetContrastColor(hex:string, threshold?:number):string;
|
|
908
|
+
/**
|
|
899
909
|
* Convert HEX color string into RGB color string.
|
|
900
910
|
* @function HexToRgb
|
|
901
911
|
* @static
|
|
@@ -1433,6 +1443,278 @@ declare namespace Fit
|
|
|
1433
1443
|
public Render(toElement?:HTMLElement):void;
|
|
1434
1444
|
}
|
|
1435
1445
|
/**
|
|
1446
|
+
* ColorPicker control which allows for color selection.
|
|
1447
|
+
Extending from Fit.Controls.ControlBase.
|
|
1448
|
+
* @class [Fit.Controls.ColorPicker ColorPicker]
|
|
1449
|
+
*/
|
|
1450
|
+
class ColorPicker
|
|
1451
|
+
{
|
|
1452
|
+
// Functions defined by Fit.Controls.ColorPicker
|
|
1453
|
+
/**
|
|
1454
|
+
* Create instance of ColorPicker control.
|
|
1455
|
+
* @function ColorPicker
|
|
1456
|
+
* @param {string} [ctlId=undefined] - Unique control ID that can be used to access control using Fit.Controls.Find(..).
|
|
1457
|
+
*/
|
|
1458
|
+
constructor(ctlId?:string);
|
|
1459
|
+
// Functions defined by Fit.Controls.ControlBase
|
|
1460
|
+
/**
|
|
1461
|
+
* Add CSS class to DOMElement representing control.
|
|
1462
|
+
* @function AddCssClass
|
|
1463
|
+
* @param {string} val - CSS class to add.
|
|
1464
|
+
*/
|
|
1465
|
+
public AddCssClass(val:string):void;
|
|
1466
|
+
/**
|
|
1467
|
+
* Set callback function used to perform on-the-fly validation against control.
|
|
1468
|
+
* @function AddValidationRule
|
|
1469
|
+
* @param {Fit.Controls.ControlBaseTypeDefs.ValidationCallback<this>} validator - Function receiving an instance of the control.
|
|
1470
|
+
A value of False or a non-empty string with an
|
|
1471
|
+
error message must be returned if value is invalid.
|
|
1472
|
+
*/
|
|
1473
|
+
public AddValidationRule(validator:Fit.Controls.ControlBaseTypeDefs.ValidationCallback<this>):void;
|
|
1474
|
+
/**
|
|
1475
|
+
* Set regular expression used to perform on-the-fly validation against control value, as returned by the Value() function.
|
|
1476
|
+
* @function AddValidationRule
|
|
1477
|
+
* @param {RegExp} validator - Regular expression to validate value against.
|
|
1478
|
+
* @param {string} [errorMessage=undefined] - Optional error message displayed if value validation fails.
|
|
1479
|
+
*/
|
|
1480
|
+
public AddValidationRule(validator:RegExp, errorMessage?:string):void;
|
|
1481
|
+
/**
|
|
1482
|
+
* Get/set value indicating whether control is always considered dirty. This
|
|
1483
|
+
comes in handy when programmatically changing a value of a control on behalf
|
|
1484
|
+
of the user. Some applications may choose to only save values from dirty controls.
|
|
1485
|
+
* @function AlwaysDirty
|
|
1486
|
+
* @param {boolean} [val=undefined] - If defined, Always Dirty is enabled/disabled.
|
|
1487
|
+
* @returns boolean
|
|
1488
|
+
*/
|
|
1489
|
+
public AlwaysDirty(val?:boolean):boolean;
|
|
1490
|
+
/**
|
|
1491
|
+
* Set flag indicating whether control should post back changes automatically when value is changed.
|
|
1492
|
+
* @function AutoPostBack
|
|
1493
|
+
* @param {boolean} [val=undefined] - If defined, True enables auto post back, False disables it.
|
|
1494
|
+
* @returns boolean
|
|
1495
|
+
*/
|
|
1496
|
+
public AutoPostBack(val?:boolean):boolean;
|
|
1497
|
+
/**
|
|
1498
|
+
* Clear control value.
|
|
1499
|
+
* @function Clear
|
|
1500
|
+
*/
|
|
1501
|
+
public Clear():void;
|
|
1502
|
+
/**
|
|
1503
|
+
* Get/set value indicating whether control is enabled or disabled.
|
|
1504
|
+
A disabled control's value and state is still included on postback, if part of a form.
|
|
1505
|
+
* @function Enabled
|
|
1506
|
+
* @param {boolean} [val=undefined] - If defined, True enables control (default), False disables control.
|
|
1507
|
+
* @returns boolean
|
|
1508
|
+
*/
|
|
1509
|
+
public Enabled(val?:boolean):boolean;
|
|
1510
|
+
/**
|
|
1511
|
+
* Get/set value indicating whether control has focus.
|
|
1512
|
+
Control must be rooted in DOM and be visible for control to gain focus.
|
|
1513
|
+
* @function Focused
|
|
1514
|
+
* @param {boolean} [value=undefined] - If defined, True assigns focus, False removes focus (blur).
|
|
1515
|
+
* @returns boolean
|
|
1516
|
+
*/
|
|
1517
|
+
public Focused(value?:boolean):boolean;
|
|
1518
|
+
/**
|
|
1519
|
+
* Check whether CSS class is found on DOMElement representing control.
|
|
1520
|
+
* @function HasCssClass
|
|
1521
|
+
* @param {string} val - CSS class to check for.
|
|
1522
|
+
* @returns boolean
|
|
1523
|
+
*/
|
|
1524
|
+
public HasCssClass(val:string):boolean;
|
|
1525
|
+
/**
|
|
1526
|
+
* Get/set control height - returns object with Value and Unit properties.
|
|
1527
|
+
* @function Height
|
|
1528
|
+
* @param {number} [val=undefined] - If defined, control height is updated to specified value. A value of -1 resets control height.
|
|
1529
|
+
* @param {Fit.TypeDefs.CssUnit | "%" | "ch" | "cm" | "em" | "ex" | "in" | "mm" | "pc" | "pt" | "px" | "rem" | "vh" | "vmax" | "vmin" | "vw"} [unit=px] - If defined, control height is updated to specified CSS unit.
|
|
1530
|
+
* @returns Fit.TypeDefs.CssValue
|
|
1531
|
+
*/
|
|
1532
|
+
public Height(val?:number, unit?:Fit.TypeDefs.CssUnit | "%" | "ch" | "cm" | "em" | "ex" | "in" | "mm" | "pc" | "pt" | "px" | "rem" | "vh" | "vmax" | "vmin" | "vw"):Fit.TypeDefs.CssValue;
|
|
1533
|
+
/**
|
|
1534
|
+
* Get value indicating whether user has changed control value.
|
|
1535
|
+
* @function IsDirty
|
|
1536
|
+
* @returns boolean
|
|
1537
|
+
*/
|
|
1538
|
+
public IsDirty():boolean;
|
|
1539
|
+
/**
|
|
1540
|
+
* Get value indicating whether control value is valid.
|
|
1541
|
+
Control value is considered invalid if control is required, but no value is set,
|
|
1542
|
+
or if control value does not match regular expression set using SetValidationExpression(..).
|
|
1543
|
+
* @function IsValid
|
|
1544
|
+
* @returns boolean
|
|
1545
|
+
*/
|
|
1546
|
+
public IsValid():boolean;
|
|
1547
|
+
/**
|
|
1548
|
+
* Get/set value indicating whether control initially appears as valid, even
|
|
1549
|
+
though it is not. It will appear invalid once the user touches the control,
|
|
1550
|
+
or when control value is validated using Fit.Controls.ValidateAll(..).
|
|
1551
|
+
* @function LazyValidation
|
|
1552
|
+
* @param {boolean} [val=undefined] - If defined, Lazy Validation is enabled/disabled.
|
|
1553
|
+
* @returns boolean
|
|
1554
|
+
*/
|
|
1555
|
+
public LazyValidation(val?:boolean):boolean;
|
|
1556
|
+
/**
|
|
1557
|
+
* Register OnBlur event handler which is invoked when control loses focus.
|
|
1558
|
+
* @function OnBlur
|
|
1559
|
+
* @param {Fit.Controls.ControlBaseTypeDefs.BaseEvent<this>} cb - Event handler function which accepts Sender (ControlBase).
|
|
1560
|
+
*/
|
|
1561
|
+
public OnBlur(cb:Fit.Controls.ControlBaseTypeDefs.BaseEvent<this>):void;
|
|
1562
|
+
/**
|
|
1563
|
+
* Register OnChange event handler which is invoked when control value is changed either programmatically or by user.
|
|
1564
|
+
* @function OnChange
|
|
1565
|
+
* @param {Fit.Controls.ControlBaseTypeDefs.BaseEvent<this>} cb - Event handler function which accepts Sender (ControlBase).
|
|
1566
|
+
*/
|
|
1567
|
+
public OnChange(cb:Fit.Controls.ControlBaseTypeDefs.BaseEvent<this>):void;
|
|
1568
|
+
/**
|
|
1569
|
+
* Register OnFocus event handler which is invoked when control gains focus.
|
|
1570
|
+
* @function OnFocus
|
|
1571
|
+
* @param {Fit.Controls.ControlBaseTypeDefs.BaseEvent<this>} cb - Event handler function which accepts Sender (ControlBase).
|
|
1572
|
+
*/
|
|
1573
|
+
public OnFocus(cb:Fit.Controls.ControlBaseTypeDefs.BaseEvent<this>):void;
|
|
1574
|
+
/**
|
|
1575
|
+
* Remove all validation rules.
|
|
1576
|
+
* @function RemoveAllValidationRules
|
|
1577
|
+
*/
|
|
1578
|
+
public RemoveAllValidationRules():void;
|
|
1579
|
+
/**
|
|
1580
|
+
* Remove CSS class from DOMElement representing control.
|
|
1581
|
+
* @function RemoveCssClass
|
|
1582
|
+
* @param {string} val - CSS class to remove.
|
|
1583
|
+
*/
|
|
1584
|
+
public RemoveCssClass(val:string):void;
|
|
1585
|
+
/**
|
|
1586
|
+
* Remove validation function used to perform on-the-fly validation against control.
|
|
1587
|
+
* @function RemoveValidationRule
|
|
1588
|
+
* @param {Fit.Controls.ControlBaseTypeDefs.ValidationCallback<this>} validator - Validation function registered using AddValidationRule(..).
|
|
1589
|
+
*/
|
|
1590
|
+
public RemoveValidationRule(validator:Fit.Controls.ControlBaseTypeDefs.ValidationCallback<this>):void;
|
|
1591
|
+
/**
|
|
1592
|
+
* Remove regular expression used to perform on-the-fly validation against control value.
|
|
1593
|
+
* @function RemoveValidationRule
|
|
1594
|
+
* @param {RegExp} validator - Regular expression registered using AddValidationRule(..).
|
|
1595
|
+
*/
|
|
1596
|
+
public RemoveValidationRule(validator:RegExp):void;
|
|
1597
|
+
/**
|
|
1598
|
+
* Get/set value indicating whether control is required to be set.
|
|
1599
|
+
* @function Required
|
|
1600
|
+
* @param {boolean} [val=undefined] - If defined, control required feature is enabled/disabled.
|
|
1601
|
+
* @returns boolean
|
|
1602
|
+
*/
|
|
1603
|
+
public Required(val?:boolean):boolean;
|
|
1604
|
+
/**
|
|
1605
|
+
* Get/set scope to which control belongs - this is used to validate multiple
|
|
1606
|
+
controls at once using Fit.Controls.ValidateAll(scope) or Fit.Controls.DirtyCheckAll(scope).
|
|
1607
|
+
* @function Scope
|
|
1608
|
+
* @param {string} [val=undefined] - If defined, control scope is updated.
|
|
1609
|
+
* @returns string
|
|
1610
|
+
*/
|
|
1611
|
+
public Scope(val?:string):string;
|
|
1612
|
+
/**
|
|
1613
|
+
* DEPRECATED! Please use AddValidationRule(..) instead.
|
|
1614
|
+
Set callback function used to perform on-the-fly validation against control value.
|
|
1615
|
+
* @function SetValidationCallback
|
|
1616
|
+
* @param {Function | null} cb - Function receiving control value - must return True if value is valid, otherwise False.
|
|
1617
|
+
* @param {string} [errorMsg=undefined] - If defined, specified error message is displayed when user clicks or hovers validation error indicator.
|
|
1618
|
+
*/
|
|
1619
|
+
public SetValidationCallback(cb:Function | null, errorMsg?:string):void;
|
|
1620
|
+
/**
|
|
1621
|
+
* DEPRECATED! Please use AddValidationRule(..) instead.
|
|
1622
|
+
Set regular expression used to perform on-the-fly validation against control value.
|
|
1623
|
+
* @function SetValidationExpression
|
|
1624
|
+
* @param {RegExp | null} regEx - Regular expression to validate against.
|
|
1625
|
+
* @param {string} [errorMsg=undefined] - If defined, specified error message is displayed when user clicks or hovers validation error indicator.
|
|
1626
|
+
*/
|
|
1627
|
+
public SetValidationExpression(regEx:RegExp | null, errorMsg?:string):void;
|
|
1628
|
+
/**
|
|
1629
|
+
* DEPRECATED! Please use AddValidationRule(..) instead.
|
|
1630
|
+
Set callback function used to perform on-the-fly validation against control value.
|
|
1631
|
+
* @function SetValidationHandler
|
|
1632
|
+
* @param {Function | null} cb - Function receiving an instance of the control and its value.
|
|
1633
|
+
An error message string must be returned if value is invalid,
|
|
1634
|
+
otherwise Null or an empty string if the value is valid.
|
|
1635
|
+
*/
|
|
1636
|
+
public SetValidationHandler(cb:Function | null):void;
|
|
1637
|
+
/**
|
|
1638
|
+
* Get/set value indicating whether control immediately shows and
|
|
1639
|
+
updates its validation error as the user changes the control value.
|
|
1640
|
+
* @function ShowValidationErrorsOnChange
|
|
1641
|
+
* @param {boolean} [val=undefined] - If defined, True enables feature, False disables it.
|
|
1642
|
+
* @returns boolean
|
|
1643
|
+
*/
|
|
1644
|
+
public ShowValidationErrorsOnChange(val?:boolean):boolean;
|
|
1645
|
+
/**
|
|
1646
|
+
* Get/set value as if it was changed by the user. Contrary to Value(..), this function will never reset the dirty state.
|
|
1647
|
+
Restrictions/filtering/modifications may be enforced just as the UI control might do, e.g. prevent the use of certain
|
|
1648
|
+
characters, or completely ignore input if not allowed. It may also allow invalid values such as a partially entered date
|
|
1649
|
+
value. The intention with UserValue(..) is to mimic the behaviour of what the user can do with the user interface control.
|
|
1650
|
+
For picker controls the value format is equivalent to the one dictated by the Value(..) function.
|
|
1651
|
+
* @function UserValue
|
|
1652
|
+
* @param {string} [val=undefined] - If defined, value is inserted into control.
|
|
1653
|
+
* @returns string
|
|
1654
|
+
*/
|
|
1655
|
+
public UserValue(val?:string):string;
|
|
1656
|
+
/**
|
|
1657
|
+
* Get/set control value.
|
|
1658
|
+
For controls supporting multiple selections: Set value by providing a string in one the following formats:
|
|
1659
|
+
title1=val1[;title2=val2[;title3=val3]] or val1[;val2[;val3]].
|
|
1660
|
+
If Title or Value contains reserved characters (semicolon or equality sign), these most be URIEncoded.
|
|
1661
|
+
Selected items are returned in the first format described, also with reserved characters URIEncoded.
|
|
1662
|
+
Providing a new value to this function results in OnChange being fired.
|
|
1663
|
+
* @function Value
|
|
1664
|
+
* @param {string} [val=undefined] - If defined, value is inserted into control.
|
|
1665
|
+
* @param {boolean} [preserveDirtyState=false] - If defined, True prevents dirty state from being reset, False (default) resets the dirty state.
|
|
1666
|
+
If dirty state is reset (default), the control value will be compared against the value passed,
|
|
1667
|
+
to determine whether it has been changed by the user or not, when IsDirty() is called.
|
|
1668
|
+
* @returns string
|
|
1669
|
+
*/
|
|
1670
|
+
public Value(val?:string, preserveDirtyState?:boolean):string;
|
|
1671
|
+
/**
|
|
1672
|
+
* Get/set value indicating whether control is visible.
|
|
1673
|
+
* @function Visible
|
|
1674
|
+
* @param {boolean} [val=undefined] - If defined, control visibility is updated.
|
|
1675
|
+
* @returns boolean
|
|
1676
|
+
*/
|
|
1677
|
+
public Visible(val?:boolean):boolean;
|
|
1678
|
+
/**
|
|
1679
|
+
* Get/set control width - returns object with Value and Unit properties.
|
|
1680
|
+
* @function Width
|
|
1681
|
+
* @param {number} [val=undefined] - If defined, control width is updated to specified value. A value of -1 resets control width.
|
|
1682
|
+
* @param {Fit.TypeDefs.CssUnit | "%" | "ch" | "cm" | "em" | "ex" | "in" | "mm" | "pc" | "pt" | "px" | "rem" | "vh" | "vmax" | "vmin" | "vw"} [unit=px] - If defined, control width is updated to specified CSS unit.
|
|
1683
|
+
* @returns Fit.TypeDefs.CssValue
|
|
1684
|
+
*/
|
|
1685
|
+
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;
|
|
1686
|
+
// Functions defined by Fit.Controls.Component
|
|
1687
|
+
/**
|
|
1688
|
+
* Destroys control to free up memory.
|
|
1689
|
+
Make sure to call Dispose() on Component which can be done like so:
|
|
1690
|
+
this.Dispose = Fit.Core.CreateOverride(this.Dispose, function()
|
|
1691
|
+
{
|
|
1692
|
+
// Add control specific dispose logic here
|
|
1693
|
+
base(); // Call Dispose on Component
|
|
1694
|
+
});.
|
|
1695
|
+
* @function Dispose
|
|
1696
|
+
*/
|
|
1697
|
+
public Dispose():void;
|
|
1698
|
+
/**
|
|
1699
|
+
* Get DOMElement representing control.
|
|
1700
|
+
* @function GetDomElement
|
|
1701
|
+
* @returns HTMLElement
|
|
1702
|
+
*/
|
|
1703
|
+
public GetDomElement():HTMLElement;
|
|
1704
|
+
/**
|
|
1705
|
+
* Get unique Control ID.
|
|
1706
|
+
* @function GetId
|
|
1707
|
+
* @returns string
|
|
1708
|
+
*/
|
|
1709
|
+
public GetId():string;
|
|
1710
|
+
/**
|
|
1711
|
+
* Render control, either inline or to element specified.
|
|
1712
|
+
* @function Render
|
|
1713
|
+
* @param {HTMLElement} [toElement=undefined] - If defined, control is rendered to this element.
|
|
1714
|
+
*/
|
|
1715
|
+
public Render(toElement?:HTMLElement):void;
|
|
1716
|
+
}
|
|
1717
|
+
/**
|
|
1436
1718
|
* Class from which all UI components extend.
|
|
1437
1719
|
* @class [Fit.Controls.Component Component]
|
|
1438
1720
|
*/
|
|
@@ -2126,6 +2408,13 @@ declare namespace Fit
|
|
|
2126
2408
|
*/
|
|
2127
2409
|
public Locale(val?:string):string;
|
|
2128
2410
|
/**
|
|
2411
|
+
* Get/set value indicating whether an entire week is selected, in which case the first day of the week is returned as control value.
|
|
2412
|
+
* @function SelectWeek
|
|
2413
|
+
* @param {boolean} [val=undefined] - If defined, True enables week selection, False disables it (default).
|
|
2414
|
+
* @returns boolean
|
|
2415
|
+
*/
|
|
2416
|
+
public SelectWeek(val?:boolean):boolean;
|
|
2417
|
+
/**
|
|
2129
2418
|
* Calling this function will open the calendar widget.
|
|
2130
2419
|
Whether this results in picker being displayed on mobile depends on implementation.
|
|
2131
2420
|
Often it will only work if Show() or Focused(true) is triggered by a user action such as a button click.
|
|
@@ -2148,6 +2437,13 @@ declare namespace Fit
|
|
|
2148
2437
|
*/
|
|
2149
2438
|
public TimePlaceholder(val?:string | null):string | null;
|
|
2150
2439
|
/**
|
|
2440
|
+
* Get/set value indicating whether a DatePicker trigger icon is shown.
|
|
2441
|
+
* @function TriggerIcon
|
|
2442
|
+
* @param {boolean} [val=undefined] - If defined, True enables trigger icon (default), False disables it.
|
|
2443
|
+
* @returns boolean
|
|
2444
|
+
*/
|
|
2445
|
+
public TriggerIcon(val?:boolean):boolean;
|
|
2446
|
+
/**
|
|
2151
2447
|
* Get/set value as if it was changed by the user.
|
|
2152
2448
|
Contrary to Value(..), this function allows for a partial (or invalid) date value.
|
|
2153
2449
|
If the time picker is enabled (see Time(..)) then both the date and time portion can
|
|
@@ -2424,15 +2720,45 @@ declare namespace Fit
|
|
|
2424
2720
|
* @function Render
|
|
2425
2721
|
* @param {HTMLElement} [toElement=undefined] - If defined, control is rendered to this element.
|
|
2426
2722
|
*/
|
|
2427
|
-
public Render(toElement?:HTMLElement):void;
|
|
2428
|
-
}
|
|
2429
|
-
/**
|
|
2430
|
-
* Simple Dialog control with support for Fit.UI buttons.
|
|
2431
|
-
* @class [Fit.Controls.Dialog Dialog]
|
|
2432
|
-
*/
|
|
2433
|
-
class Dialog
|
|
2434
|
-
{
|
|
2435
|
-
// Functions defined by Fit.Controls.Dialog
|
|
2723
|
+
public Render(toElement?:HTMLElement):void;
|
|
2724
|
+
}
|
|
2725
|
+
/**
|
|
2726
|
+
* Simple Dialog control with support for Fit.UI buttons.
|
|
2727
|
+
* @class [Fit.Controls.Dialog Dialog]
|
|
2728
|
+
*/
|
|
2729
|
+
class Dialog
|
|
2730
|
+
{
|
|
2731
|
+
// Functions defined by Fit.Controls.Dialog
|
|
2732
|
+
/**
|
|
2733
|
+
* Display alert dialog.
|
|
2734
|
+
* @function Alert
|
|
2735
|
+
* @static
|
|
2736
|
+
* @param {string} content - Content to display in alert dialog.
|
|
2737
|
+
* @param {Function} [cb=undefined] - Optional callback function invoked when OK button is clicked.
|
|
2738
|
+
* @returns Fit.Controls.DialogInterface
|
|
2739
|
+
*/
|
|
2740
|
+
public static Alert(content:string, cb?:Function):Fit.Controls.DialogInterface;
|
|
2741
|
+
/**
|
|
2742
|
+
* Display confirmation dialog with OK and Cancel buttons.
|
|
2743
|
+
* @function Confirm
|
|
2744
|
+
* @static
|
|
2745
|
+
* @param {string} content - Content to display in confirmation dialog.
|
|
2746
|
+
* @param {Fit.Controls.DialogTypeDefs.ConfirmCallback} cb - Callback function invoked when a button is clicked.
|
|
2747
|
+
True is passed to callback function when OK is clicked, otherwise False.
|
|
2748
|
+
* @returns Fit.Controls.DialogInterface
|
|
2749
|
+
*/
|
|
2750
|
+
public static Confirm(content:string, cb:Fit.Controls.DialogTypeDefs.ConfirmCallback):Fit.Controls.DialogInterface;
|
|
2751
|
+
/**
|
|
2752
|
+
* Display prompt dialog that allows for user input.
|
|
2753
|
+
* @function Prompt
|
|
2754
|
+
* @static
|
|
2755
|
+
* @param {string} content - Content to display in prompt dialog.
|
|
2756
|
+
* @param {string} defaultValue - Default value in input field.
|
|
2757
|
+
* @param {Fit.Controls.DialogTypeDefs.PromptCallback} [cb=undefined] - Callback function invoked when OK or Cancel button is clicked.
|
|
2758
|
+
Value entered in input field is passed, null if prompt is canceled.
|
|
2759
|
+
* @returns Fit.Controls.DialogInterface
|
|
2760
|
+
*/
|
|
2761
|
+
public static Prompt(content:string, defaultValue:string, cb?:Fit.Controls.DialogTypeDefs.PromptCallback):Fit.Controls.DialogInterface;
|
|
2436
2762
|
/**
|
|
2437
2763
|
* Add button to dialog.
|
|
2438
2764
|
* @function AddButton
|
|
@@ -2625,36 +2951,6 @@ declare namespace Fit
|
|
|
2625
2951
|
* @returns Fit.TypeDefs.CssValue
|
|
2626
2952
|
*/
|
|
2627
2953
|
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
2954
|
// Functions defined by Fit.Controls.Component
|
|
2659
2955
|
/**
|
|
2660
2956
|
* Destroys control to free up memory.
|
|
@@ -2783,6 +3079,36 @@ declare namespace Fit
|
|
|
2783
3079
|
public Value(val?:string):string;
|
|
2784
3080
|
// Functions defined by Fit.Controls.Dialog
|
|
2785
3081
|
/**
|
|
3082
|
+
* Display alert dialog.
|
|
3083
|
+
* @function Alert
|
|
3084
|
+
* @static
|
|
3085
|
+
* @param {string} content - Content to display in alert dialog.
|
|
3086
|
+
* @param {Function} [cb=undefined] - Optional callback function invoked when OK button is clicked.
|
|
3087
|
+
* @returns Fit.Controls.DialogInterface
|
|
3088
|
+
*/
|
|
3089
|
+
public static Alert(content:string, cb?:Function):Fit.Controls.DialogInterface;
|
|
3090
|
+
/**
|
|
3091
|
+
* Display confirmation dialog with OK and Cancel buttons.
|
|
3092
|
+
* @function Confirm
|
|
3093
|
+
* @static
|
|
3094
|
+
* @param {string} content - Content to display in confirmation dialog.
|
|
3095
|
+
* @param {Fit.Controls.DialogTypeDefs.ConfirmCallback} cb - Callback function invoked when a button is clicked.
|
|
3096
|
+
True is passed to callback function when OK is clicked, otherwise False.
|
|
3097
|
+
* @returns Fit.Controls.DialogInterface
|
|
3098
|
+
*/
|
|
3099
|
+
public static Confirm(content:string, cb:Fit.Controls.DialogTypeDefs.ConfirmCallback):Fit.Controls.DialogInterface;
|
|
3100
|
+
/**
|
|
3101
|
+
* Display prompt dialog that allows for user input.
|
|
3102
|
+
* @function Prompt
|
|
3103
|
+
* @static
|
|
3104
|
+
* @param {string} content - Content to display in prompt dialog.
|
|
3105
|
+
* @param {string} defaultValue - Default value in input field.
|
|
3106
|
+
* @param {Fit.Controls.DialogTypeDefs.PromptCallback} [cb=undefined] - Callback function invoked when OK or Cancel button is clicked.
|
|
3107
|
+
Value entered in input field is passed, null if prompt is canceled.
|
|
3108
|
+
* @returns Fit.Controls.DialogInterface
|
|
3109
|
+
*/
|
|
3110
|
+
public static Prompt(content:string, defaultValue:string, cb?:Fit.Controls.DialogTypeDefs.PromptCallback):Fit.Controls.DialogInterface;
|
|
3111
|
+
/**
|
|
2786
3112
|
* Add button to dialog.
|
|
2787
3113
|
* @function AddButton
|
|
2788
3114
|
* @param {Fit.Controls.Button} btn - Instance of Fit.Controls.Button.
|
|
@@ -2968,36 +3294,6 @@ declare namespace Fit
|
|
|
2968
3294
|
* @returns Fit.TypeDefs.CssValue
|
|
2969
3295
|
*/
|
|
2970
3296
|
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
3297
|
// Functions defined by Fit.Controls.Component
|
|
3002
3298
|
/**
|
|
3003
3299
|
* Destroys control to free up memory.
|
|
@@ -9539,74 +9835,6 @@ declare namespace Fit
|
|
|
9539
9835
|
{
|
|
9540
9836
|
// Functions defined by Fit.Cookies
|
|
9541
9837
|
/**
|
|
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
9838
|
* Returns cookie value if found, otherwise Null.
|
|
9611
9839
|
* @function Get
|
|
9612
9840
|
* @static
|
|
@@ -9676,6 +9904,74 @@ declare namespace Fit
|
|
|
9676
9904
|
* @param {Fit.CookiesDefs.Cookie} newCookie - New or updated cookie.
|
|
9677
9905
|
*/
|
|
9678
9906
|
public static Set(newCookie:Fit.CookiesDefs.Cookie):void;
|
|
9907
|
+
/**
|
|
9908
|
+
* Create instance of cookie container isolated to either current path (default)
|
|
9909
|
+
or a custom path, and optionally an alternative part of the domain (by default
|
|
9910
|
+
cookies are available only on the current domain, while defining a domain makes
|
|
9911
|
+
cookies available to that particular domain and subdomains).
|
|
9912
|
+
* @function Cookies
|
|
9913
|
+
*/
|
|
9914
|
+
constructor();
|
|
9915
|
+
/**
|
|
9916
|
+
* Get/set portion of domain to which cookies are isolated.
|
|
9917
|
+
* @function Domain
|
|
9918
|
+
* @param {string | null} [val=undefined] - If defined, changes isolation to specified domain portion, including subdomains - pass
|
|
9919
|
+
Null to unset it to make cookies available to current domain only (excluding subdomains).
|
|
9920
|
+
* @returns string | null
|
|
9921
|
+
*/
|
|
9922
|
+
public Domain(val?:string | null):string | null;
|
|
9923
|
+
/**
|
|
9924
|
+
* Returns cookie value if found, otherwise Null.
|
|
9925
|
+
* @function Get
|
|
9926
|
+
* @param {string} name - Unique cookie name.
|
|
9927
|
+
* @returns string | null
|
|
9928
|
+
*/
|
|
9929
|
+
public Get(name:string):string | null;
|
|
9930
|
+
/**
|
|
9931
|
+
* Get/set path to which cookies are isolated.
|
|
9932
|
+
* @function Path
|
|
9933
|
+
* @param {string} [val=undefined] - If defined, changes isolation to specified path.
|
|
9934
|
+
* @returns string
|
|
9935
|
+
*/
|
|
9936
|
+
public Path(val?:string):string;
|
|
9937
|
+
/**
|
|
9938
|
+
* Get/set prefix added to all cookies - useful for grouping related cookies and to avoid naming conflicts.
|
|
9939
|
+
Notice that Set/Get/Remove functions automatically apply the prefix to cookie names, so the use of a prefix
|
|
9940
|
+
is completely transparent.
|
|
9941
|
+
* @function Prefix
|
|
9942
|
+
* @param {string} [val=undefined] - If defined, changes cookie prefix to specified value - pass Null to unset it.
|
|
9943
|
+
* @returns string | null
|
|
9944
|
+
*/
|
|
9945
|
+
public Prefix(val?:string):string | null;
|
|
9946
|
+
/**
|
|
9947
|
+
* Remove cookie.
|
|
9948
|
+
* @function Remove
|
|
9949
|
+
* @param {string} name - Unique cookie name.
|
|
9950
|
+
*/
|
|
9951
|
+
public Remove(name:string):void;
|
|
9952
|
+
/**
|
|
9953
|
+
* Get/set SameSite policy.
|
|
9954
|
+
* @function SameSite
|
|
9955
|
+
* @param {"None" | "Lax" | "Strict" | null} [val=undefined] - If defined, changes SameSite policy - pass Null to unset it.
|
|
9956
|
+
* @returns string | null
|
|
9957
|
+
*/
|
|
9958
|
+
public SameSite(val?:"None" | "Lax" | "Strict" | null):string | null;
|
|
9959
|
+
/**
|
|
9960
|
+
* Get/set Secure flag.
|
|
9961
|
+
* @function Secure
|
|
9962
|
+
* @param {boolean} [val=undefined] - If defined, changes Secure flag.
|
|
9963
|
+
* @returns boolean
|
|
9964
|
+
*/
|
|
9965
|
+
public Secure(val?:boolean):boolean;
|
|
9966
|
+
/**
|
|
9967
|
+
* Create or update cookie.
|
|
9968
|
+
* @function Set
|
|
9969
|
+
* @param {string} name - Unique cookie name.
|
|
9970
|
+
* @param {string} value - Cookie value (cannot contain semicolon!).
|
|
9971
|
+
* @param {number} [seconds=undefined] - Optional expiration time in seconds. Creating a cookie with
|
|
9972
|
+
no expiration time will cause it to expire when session ends.
|
|
9973
|
+
*/
|
|
9974
|
+
public Set(name:string, value:string, seconds?:number):void;
|
|
9679
9975
|
}
|
|
9680
9976
|
/**
|
|
9681
9977
|
* Core features extending the capabilities of native JS.
|
|
@@ -12141,6 +12437,13 @@ declare namespace Fit
|
|
|
12141
12437
|
{
|
|
12142
12438
|
// Functions defined by Fit.DragDrop.Draggable
|
|
12143
12439
|
/**
|
|
12440
|
+
* Get next z-index which will place an element above any draggable element.
|
|
12441
|
+
* @function GetNextZindex
|
|
12442
|
+
* @static
|
|
12443
|
+
* @returns number
|
|
12444
|
+
*/
|
|
12445
|
+
public static GetNextZindex():number;
|
|
12446
|
+
/**
|
|
12144
12447
|
* Bring draggable to front.
|
|
12145
12448
|
* @function BringToFront
|
|
12146
12449
|
*/
|
|
@@ -12201,13 +12504,6 @@ declare namespace Fit
|
|
|
12201
12504
|
* @returns boolean
|
|
12202
12505
|
*/
|
|
12203
12506
|
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
12507
|
}
|
|
12212
12508
|
/**
|
|
12213
12509
|
*
|