mirror of
https://gitee.com/ant-design-blazor/ant-design-blazor.git
synced 2024-12-15 01:11:52 +08:00
b27e4d47a6
* fix(module:datepicker): validate manually entered date against format * fix(module:datepicker): keep frozen the panel until valid date entered * fix(module:datepicker): switch to current culture format * fix(module:datepicker): build fix * fix(module:datepicker): use InvariantCulture when calling ToString on date * fix(module:datepicker): FormatAnalyzer handles also year, week, month & quarter picker * fix(module:datepicker): FormatAnalyzer broken tests * fix: FormatAnalyzer handles prefixes in format. Suffix is handled for picker type = "year" Tests include validation of not changing state * fix: all modes go through format analyzing (inluding week&quarter) * fix(module:datepickerbase): InternalFormat initalized properly for all modes * fix(module:rangepicker): reset opposing date when in conflict with current * fix(module:rangePicker): handle null in second part of range * fix(module:datepicker): switch from BindConverter to partials * tests(module:datepicker): FormatAnalyzer new tests to cover switch from BindConverter * tests(module:datepicker): missed change in tests * fix: focus, key events, reset value to original if not confirmed * fix: bug fix on range & clean-up * Update DatePicker.razor Co-authored-by: James Yeung <shunjiey@hotmail.com>
135 lines
5.4 KiB
C#
135 lines
5.4 KiB
C#
namespace AntDesign
|
|
{
|
|
public static class JSInteropConstants
|
|
{
|
|
private const string FUNC_PREFIX = "AntDesign.interop.";
|
|
|
|
public static string IsResizeObserverSupported => $"{FUNC_PREFIX}isResizeObserverSupported";
|
|
public static string GetDomInfo => $"{FUNC_PREFIX}getDomInfo";
|
|
|
|
public static string TriggerEvent => $"{FUNC_PREFIX}triggerEvent";
|
|
|
|
public static string AddFileClickEventListener => $"{FUNC_PREFIX}addFileClickEventListener";
|
|
|
|
public static string RemoveFileClickEventListener => $"{FUNC_PREFIX}removeFileClickEventListener";
|
|
|
|
public static string ClearFile => $"{FUNC_PREFIX}clearFile";
|
|
|
|
public static string UploadFile => $"{FUNC_PREFIX}uploadFile";
|
|
|
|
public static string GetObjectURL => $"{FUNC_PREFIX}getObjectURL";
|
|
|
|
public static string GetFileInfo => $"{FUNC_PREFIX}getFileInfo";
|
|
|
|
public static string GetBoundingClientRect => $"{FUNC_PREFIX}getBoundingClientRect";
|
|
|
|
public static string AddDomEventListener => $"{FUNC_PREFIX}addDomEventListener";
|
|
|
|
public static string MatchMedia => $"{FUNC_PREFIX}matchMedia";
|
|
|
|
public static string Copy => $"{FUNC_PREFIX}copy";
|
|
|
|
public static string Log => $"{FUNC_PREFIX}log";
|
|
|
|
public static string Focus => $"{FUNC_PREFIX}focus";
|
|
public static string HasFocus => $"{FUNC_PREFIX}hasFocus";
|
|
|
|
public static string Blur => $"{FUNC_PREFIX}blur";
|
|
|
|
public static string BackTop => $"{FUNC_PREFIX}backTop";
|
|
|
|
public static string ScrollTo => $"{FUNC_PREFIX}scrollTo";
|
|
|
|
public static string GetFirstChildDomInfo => $"{FUNC_PREFIX}getFirstChildDomInfo";
|
|
|
|
public static string AddClsToFirstChild => $"{FUNC_PREFIX}addClsToFirstChild";
|
|
|
|
public static string RemoveClsFromFirstChild => $"{FUNC_PREFIX}removeClsFromFirstChild";
|
|
|
|
public static string AddDomEventListenerToFirstChild => $"{FUNC_PREFIX}addDomEventListenerToFirstChild";
|
|
|
|
public static string AddElementToBody => $"{FUNC_PREFIX}addElementToBody";
|
|
|
|
public static string DelElementFromBody => $"{FUNC_PREFIX}delElementFromBody";
|
|
|
|
public static string AddElementTo => $"{FUNC_PREFIX}addElementTo";
|
|
|
|
public static string DelElementFrom => $"{FUNC_PREFIX}delElementFrom";
|
|
|
|
public static string GetActiveElement => $"{FUNC_PREFIX}getActiveElement";
|
|
|
|
public static string FocusDialog => $"{FUNC_PREFIX}focusDialog";
|
|
|
|
public static string GetWindow = $"{FUNC_PREFIX}getWindow";
|
|
|
|
public static string DisableBodyScroll => $"{FUNC_PREFIX}disableBodyScroll";
|
|
|
|
public static string EnableBodyScroll => $"{FUNC_PREFIX}enableBodyScroll";
|
|
|
|
public static string DestroyAllDialog => $"{FUNC_PREFIX}destroyAllDialog";
|
|
|
|
public static string CreateIconFromfontCN => $"{FUNC_PREFIX}createIconFromfontCN";
|
|
|
|
public static string GetScroll => $"{FUNC_PREFIX}getScroll";
|
|
|
|
public static string GetInnerText => $"{FUNC_PREFIX}getInnerText";
|
|
|
|
public static string GetMaxZIndex => $"{FUNC_PREFIX}getMaxZIndex";
|
|
|
|
public static string GetCursorXY => $"{FUNC_PREFIX}getCursorXY";
|
|
|
|
public static string DisposeObj => $"{FUNC_PREFIX}disposeObj";
|
|
|
|
public static string ElementScrollIntoView => $"{FUNC_PREFIX}elementScrollIntoView";
|
|
|
|
public static string BindTableHeaderAndBodyScroll => $"{FUNC_PREFIX}bindTableHeaderAndBodyScroll";
|
|
|
|
public static string UnbindTableHeaderAndBodyScroll => $"{FUNC_PREFIX}unbindTableHeaderAndBodyScroll";
|
|
|
|
public static string AddPreventKeys => $"{FUNC_PREFIX}addPreventKeys";
|
|
|
|
public static string RemovePreventKeys => $"{FUNC_PREFIX}removePreventKeys";
|
|
|
|
public static string AddPreventEnterOnOverlayVisible => $"{FUNC_PREFIX}addPreventEnterOnOverlayVisible";
|
|
|
|
public static string RemovePreventEnterOnOverlayVisible => $"{FUNC_PREFIX}removePreventEnterOnOverlayVisible";
|
|
|
|
public static string GetStyle => $"{FUNC_PREFIX}getStyle";
|
|
|
|
public static string RegisterResizeTextArea => $"{FUNC_PREFIX}registerResizeTextArea";
|
|
|
|
public static string DisposeResizeTextArea => $"{FUNC_PREFIX}disposeResizeTextArea";
|
|
|
|
public static string SetDomAttribute => $"{FUNC_PREFIX}setDomAttribute";
|
|
|
|
public static string SetSelectionStart => $"{FUNC_PREFIX}setSelectionStart";
|
|
public static string InvokeTabKey => $"{FUNC_PREFIX}invokeTabKey";
|
|
|
|
#region Draggable Modal
|
|
|
|
public static string EnableDraggable => $"{FUNC_PREFIX}enableDraggable";
|
|
|
|
public static string DisableDraggable => $"{FUNC_PREFIX}disableDraggable";
|
|
|
|
public static string ResetModalPosition => $"{FUNC_PREFIX}resetModalPosition";
|
|
|
|
#endregion Draggable Modal
|
|
|
|
public static class ObserverConstants
|
|
{
|
|
private const string FUNC_PREFIX = JSInteropConstants.FUNC_PREFIX + "observable.";
|
|
|
|
public static class Resize
|
|
{
|
|
private const string FUNC_PREFIX = ObserverConstants.FUNC_PREFIX + "resize.";
|
|
|
|
public static string Create = $"{FUNC_PREFIX}create";
|
|
public static string Observe = $"{FUNC_PREFIX}observe";
|
|
public static string Unobserve = $"{FUNC_PREFIX}unobserve";
|
|
public static string Disconnect = $"{FUNC_PREFIX}disconnect";
|
|
public static string Dispose = $"{FUNC_PREFIX}dispose";
|
|
}
|
|
}
|
|
}
|
|
}
|