From 9dd81bf61bcae328ea6b16d686bca7a323086098 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Miha=20Marki=C4=8D?= Date: Fri, 16 Nov 2018 14:21:44 +0100 Subject: [PATCH] Closes #13 Adds super type properties --- .../Components/BaseChart.cshtml | 303 ++- .../Components/BaseGauge.cshtml | 290 ++- .../Components/BaseSparkline.cshtml | 299 ++- .../Components/BaseWidget.cshtml | 110 +- .../Components/CollectionWidget.cshtml | 241 ++- .../Components/DxAccordion.cshtml | 394 +++- .../Components/DxActionSheet.cshtml | 444 ++++- .../Components/DxAutocomplete.cshtml | 1004 +++++++++- .../Components/DxBarGauge.cshtml | 300 ++- .../BlazorDevExtreme/Components/DxBox.cshtml | 451 ++++- .../Components/DxBullet.cshtml | 362 +++- .../Components/DxButton.cshtml | 212 ++- .../Components/DxCalendar.cshtml | 282 ++- .../Components/DxChart.cshtml | 533 +++++- .../Components/DxCheckBox.cshtml | 276 ++- .../Components/DxCircularGauge.cshtml | 409 +++- .../Components/DxColorBox.cshtml | 770 +++++++- .../Components/DxCommand.cshtml | 129 +- .../Components/DxContextMenu.cshtml | 540 +++++- .../Components/DxDataGrid.cshtml | 975 +++++++++- .../Components/DxDateBox.cshtml | 784 +++++++- .../Components/DxDeferRendering.cshtml | 239 ++- .../Components/DxDropDownBox.cshtml | 827 +++++++- .../Components/DxDropDownEditor.cshtml | 671 ++++++- .../Components/DxDropDownList.cshtml | 825 +++++++- .../Components/DxDropDownMenu.cshtml | 221 ++- .../Components/DxFileUploader.cshtml | 306 ++- .../Components/DxFilterBuilder.cshtml | 237 ++- .../BlazorDevExtreme/Components/DxForm.cshtml | 263 ++- .../Components/DxFunnel.cshtml | 321 +++- .../Components/DxGallery.cshtml | 445 ++++- .../Components/DxLinearGauge.cshtml | 409 +++- .../BlazorDevExtreme/Components/DxList.cshtml | 488 ++++- .../Components/DxLoadIndicator.cshtml | 237 ++- .../Components/DxLoadPanel.cshtml | 408 +++- .../Components/DxLookup.cshtml | 967 +++++++++- .../BlazorDevExtreme/Components/DxMap.cshtml | 210 ++- .../BlazorDevExtreme/Components/DxMenu.cshtml | 557 +++++- .../Components/DxMenuBase.cshtml | 479 ++++- .../Components/DxMultiView.cshtml | 431 ++++- .../Components/DxNavBar.cshtml | 486 ++++- .../Components/DxNumberBox.cshtml | 664 ++++++- .../Components/DxOverlay.cshtml | 208 ++- .../Components/DxPanorama.cshtml | 425 ++++- .../Components/DxPieChart.cshtml | 502 ++++- .../Components/DxPivot.cshtml | 436 ++++- .../Components/DxPivotGrid.cshtml | 263 ++- .../Components/DxPivotGridFieldChooser.cshtml | 226 ++- .../Components/DxPolarChart.cshtml | 504 ++++- .../Components/DxPopover.cshtml | 549 +++++- .../Components/DxPopup.cshtml | 404 +++- .../Components/DxProgressBar.cshtml | 333 +++- .../Components/DxRadioGroup.cshtml | 339 +++- .../Components/DxRangeSelector.cshtml | 318 +++- .../Components/DxRangeSlider.cshtml | 399 +++- .../Components/DxResizable.cshtml | 99 +- .../Components/DxResponsiveBox.cshtml | 421 ++++- .../Components/DxScheduler.cshtml | 272 ++- .../Components/DxScrollView.cshtml | 246 ++- .../Components/DxScrollable.cshtml | 129 +- .../Components/DxSelectBox.cshtml | 993 +++++++++- .../Components/DxSlideOut.cshtml | 431 ++++- .../Components/DxSlideOutView.cshtml | 241 ++- .../Components/DxSlider.cshtml | 409 +++- .../Components/DxSliderBase.cshtml | 317 +++- .../Components/DxSparkline.cshtml | 386 +++- .../Components/DxSwitch.cshtml | 278 ++- .../Components/DxTabPanel.cshtml | 459 ++++- .../BlazorDevExtreme/Components/DxTabs.cshtml | 418 ++++- .../Components/DxTagBox.cshtml | 1036 +++++++++- .../Components/DxTextArea.cshtml | 678 ++++++- .../Components/DxTextBox.cshtml | 652 ++++++- .../Components/DxTextEditor.cshtml | 303 ++- .../Components/DxTileView.cshtml | 409 +++- .../Components/DxToast.cshtml | 365 +++- .../Components/DxToolbar.cshtml | 447 ++++- .../Components/DxTooltip.cshtml | 675 ++++++- .../Components/DxTrackBar.cshtml | 320 +++- .../Components/DxTreeList.cshtml | 968 +++++++++- .../Components/DxTreeMap.cshtml | 323 +++- .../Components/DxTreeView.cshtml | 504 ++++- .../Components/DxValidationGroup.cshtml | 115 +- .../Components/DxValidationSummary.cshtml | 447 ++++- .../Components/DxValidator.cshtml | 119 +- .../Components/DxVectorMap.cshtml | 311 ++- .../BlazorDevExtreme/Components/Editor.cshtml | 241 ++- .../Components/GridBase.cshtml | 273 ++- .../HierarchicalCollectionWidget.cshtml | 410 +++- .../BlazorDevExtreme/Components/Widget.cshtml | 131 +- sources/BlazorDevExtreme/Controls.cs | 1661 ++--------------- 90 files changed, 37079 insertions(+), 2113 deletions(-) diff --git a/sources/BlazorDevExtreme/Components/BaseChart.cshtml b/sources/BlazorDevExtreme/Components/BaseChart.cshtml index 4735837..1da70c9 100644 --- a/sources/BlazorDevExtreme/Components/BaseChart.cshtml +++ b/sources/BlazorDevExtreme/Components/BaseChart.cshtml @@ -21,16 +21,37 @@ pointSelectionMode = pointSelectionMode, series = series, tooltip = tooltip, + export = export, + loadingIndicator = loadingIndicator, + margin = margin, + pathModified = pathModified, + redrawOnResize = redrawOnResize, + rtlEnabled = rtlEnabled, + size = size, + theme = theme, + title = title, + bindingOptions = bindingOptions, + elementAttr = elementAttr, + height = height, + width = width, onDoneEnabled = onDoneEnabled, onPointClickEnabled = onPointClickEnabled, onPointHoverChangedEnabled = onPointHoverChangedEnabled, onPointSelectionChangedEnabled = onPointSelectionChangedEnabled, onTooltipHiddenEnabled = onTooltipHiddenEnabled, onTooltipShownEnabled = onTooltipShownEnabled, + onDrawnEnabled = onDrawnEnabled, + onExportedEnabled = onExportedEnabled, + onExportingEnabled = onExportingEnabled, + onFileSavingEnabled = onFileSavingEnabled, + onIncidentOccurredEnabled = onIncidentOccurredEnabled, + onDisposingEnabled = onDisposingEnabled, + onOptionChangedEnabled = onOptionChangedEnabled, + onInitializedEnabled = onInitializedEnabled, }; } protected override Task Init(DevExpress.Viz.Charts.BaseChartOptions options) { -return DevExpress.Viz.BaseChartInterop.Init(dxTarget, options); + return DevExpress.Viz.BaseChartInterop.Init(dxTarget, options); } object adaptiveLayout; [Parameter] @@ -119,7 +140,7 @@ return DevExpress.Viz.BaseChartInterop.Init(dxTarget, options); string paletteExtensionMode; [Parameter] string PaletteExtensionMode { - get => isInitialized ? DevExpress.Viz.BaseChartInterop.GetPaletteExtensionMode(dxTarget).Result : paletteExtensionMode; + get => isInitialized ? (string)DevExpress.Viz.BaseChartInterop.GetPaletteExtensionMode(dxTarget).Result : paletteExtensionMode; set { if (isInitialized) { DevExpress.Viz.BaseChartInterop.SetPaletteExtensionMode(dxTarget, value); @@ -131,7 +152,7 @@ return DevExpress.Viz.BaseChartInterop.Init(dxTarget, options); string pointSelectionMode; [Parameter] string PointSelectionMode { - get => isInitialized ? DevExpress.Viz.BaseChartInterop.GetPointSelectionMode(dxTarget).Result : pointSelectionMode; + get => isInitialized ? (string)DevExpress.Viz.BaseChartInterop.GetPointSelectionMode(dxTarget).Result : pointSelectionMode; set { if (isInitialized) { DevExpress.Viz.BaseChartInterop.SetPointSelectionMode(dxTarget, value); @@ -164,6 +185,162 @@ return DevExpress.Viz.BaseChartInterop.Init(dxTarget, options); } } } + object export; + [Parameter] + object Export { + get => isInitialized ? DevExpress.Viz.BaseChartInterop.GetExport(dxTarget).Result : export; + set { + if (isInitialized) { + DevExpress.Viz.BaseChartInterop.SetExport(dxTarget, value); + } else { + this.export = value; + } + } + } + object loadingIndicator; + [Parameter] + object LoadingIndicator { + get => isInitialized ? DevExpress.Viz.BaseChartInterop.GetLoadingIndicator(dxTarget).Result : loadingIndicator; + set { + if (isInitialized) { + DevExpress.Viz.BaseChartInterop.SetLoadingIndicator(dxTarget, value); + } else { + this.loadingIndicator = value; + } + } + } + object margin; + [Parameter] + object Margin { + get => isInitialized ? DevExpress.Viz.BaseChartInterop.GetMargin(dxTarget).Result : margin; + set { + if (isInitialized) { + DevExpress.Viz.BaseChartInterop.SetMargin(dxTarget, value); + } else { + this.margin = value; + } + } + } + bool? pathModified; + [Parameter] + bool? PathModified { + get => isInitialized ? (bool?)DevExpress.Viz.BaseChartInterop.GetPathModified(dxTarget).Result : pathModified; + set { + if (isInitialized) { + DevExpress.Viz.BaseChartInterop.SetPathModified(dxTarget, value); + } else { + this.pathModified = value; + } + } + } + bool? redrawOnResize; + [Parameter] + bool? RedrawOnResize { + get => isInitialized ? (bool?)DevExpress.Viz.BaseChartInterop.GetRedrawOnResize(dxTarget).Result : redrawOnResize; + set { + if (isInitialized) { + DevExpress.Viz.BaseChartInterop.SetRedrawOnResize(dxTarget, value); + } else { + this.redrawOnResize = value; + } + } + } + bool? rtlEnabled; + [Parameter] + bool? RtlEnabled { + get => isInitialized ? (bool?)DevExpress.Viz.BaseChartInterop.GetRtlEnabled(dxTarget).Result : rtlEnabled; + set { + if (isInitialized) { + DevExpress.Viz.BaseChartInterop.SetRtlEnabled(dxTarget, value); + } else { + this.rtlEnabled = value; + } + } + } + object size; + [Parameter] + object Size { + get => isInitialized ? DevExpress.Viz.BaseChartInterop.GetSize(dxTarget).Result : size; + set { + if (isInitialized) { + DevExpress.Viz.BaseChartInterop.SetSize(dxTarget, value); + } else { + this.size = value; + } + } + } + string theme; + [Parameter] + string Theme { + get => isInitialized ? (string)DevExpress.Viz.BaseChartInterop.GetTheme(dxTarget).Result : theme; + set { + if (isInitialized) { + DevExpress.Viz.BaseChartInterop.SetTheme(dxTarget, value); + } else { + this.theme = value; + } + } + } + object title; + [Parameter] + object Title { + get => isInitialized ? DevExpress.Viz.BaseChartInterop.GetTitle(dxTarget).Result : title; + set { + if (isInitialized) { + DevExpress.Viz.BaseChartInterop.SetTitle(dxTarget, value); + } else { + this.title = value; + } + } + } + object bindingOptions; + [Parameter] + object BindingOptions { + get => isInitialized ? DevExpress.Viz.BaseChartInterop.GetBindingOptions(dxTarget).Result : bindingOptions; + set { + if (isInitialized) { + DevExpress.Viz.BaseChartInterop.SetBindingOptions(dxTarget, value); + } else { + this.bindingOptions = value; + } + } + } + object elementAttr; + [Parameter] + object ElementAttr { + get => isInitialized ? DevExpress.Viz.BaseChartInterop.GetElementAttr(dxTarget).Result : elementAttr; + set { + if (isInitialized) { + DevExpress.Viz.BaseChartInterop.SetElementAttr(dxTarget, value); + } else { + this.elementAttr = value; + } + } + } + object height; + [Parameter] + object Height { + get => isInitialized ? DevExpress.Viz.BaseChartInterop.GetHeight(dxTarget).Result : height; + set { + if (isInitialized) { + DevExpress.Viz.BaseChartInterop.SetHeight(dxTarget, value); + } else { + this.height = value; + } + } + } + object width; + [Parameter] + object Width { + get => isInitialized ? DevExpress.Viz.BaseChartInterop.GetWidth(dxTarget).Result : width; + set { + if (isInitialized) { + DevExpress.Viz.BaseChartInterop.SetWidth(dxTarget, value); + } else { + this.width = value; + } + } + } bool? onDoneEnabled; [Parameter] bool? OnDoneEnabled { @@ -200,6 +377,54 @@ return DevExpress.Viz.BaseChartInterop.Init(dxTarget, options); get => onTooltipShownEnabled; set => this.onTooltipShownEnabled = value; } + bool? onDrawnEnabled; + [Parameter] + bool? OnDrawnEnabled { + get => onDrawnEnabled; + set => this.onDrawnEnabled = value; + } + bool? onExportedEnabled; + [Parameter] + bool? OnExportedEnabled { + get => onExportedEnabled; + set => this.onExportedEnabled = value; + } + bool? onExportingEnabled; + [Parameter] + bool? OnExportingEnabled { + get => onExportingEnabled; + set => this.onExportingEnabled = value; + } + bool? onFileSavingEnabled; + [Parameter] + bool? OnFileSavingEnabled { + get => onFileSavingEnabled; + set => this.onFileSavingEnabled = value; + } + bool? onIncidentOccurredEnabled; + [Parameter] + bool? OnIncidentOccurredEnabled { + get => onIncidentOccurredEnabled; + set => this.onIncidentOccurredEnabled = value; + } + bool? onDisposingEnabled; + [Parameter] + bool? OnDisposingEnabled { + get => onDisposingEnabled; + set => this.onDisposingEnabled = value; + } + bool? onOptionChangedEnabled; + [Parameter] + bool? OnOptionChangedEnabled { + get => onOptionChangedEnabled; + set => this.onOptionChangedEnabled = value; + } + bool? onInitializedEnabled; + [Parameter] + bool? OnInitializedEnabled { + get => onInitializedEnabled; + set => this.onInitializedEnabled = value; + } protected override async Task OnInitAsync() { await base.OnInitAsync(); DevExpress.Viz.BaseChartInterop.Done += BaseChart_Done; @@ -208,6 +433,14 @@ return DevExpress.Viz.BaseChartInterop.Init(dxTarget, options); DevExpress.Viz.BaseChartInterop.PointSelectionChanged += BaseChart_PointSelectionChanged; DevExpress.Viz.BaseChartInterop.TooltipHidden += BaseChart_TooltipHidden; DevExpress.Viz.BaseChartInterop.TooltipShown += BaseChart_TooltipShown; + DevExpress.Viz.BaseChartInterop.Drawn += BaseChart_Drawn; + DevExpress.Viz.BaseChartInterop.Exported += BaseChart_Exported; + DevExpress.Viz.BaseChartInterop.Exporting += BaseChart_Exporting; + DevExpress.Viz.BaseChartInterop.FileSaving += BaseChart_FileSaving; + DevExpress.Viz.BaseChartInterop.IncidentOccurred += BaseChart_IncidentOccurred; + DevExpress.Viz.BaseChartInterop.Disposing += BaseChart_Disposing; + DevExpress.Viz.BaseChartInterop.OptionChanged += BaseChart_OptionChanged; + DevExpress.Viz.BaseChartInterop.Initialized += BaseChart_Initialized; } [Parameter] Action Done { get; set; } @@ -251,6 +484,62 @@ return DevExpress.Viz.BaseChartInterop.Init(dxTarget, options); TooltipShown?.Invoke(); } } + [Parameter] + Action Drawn { get; set; } + void BaseChart_Drawn(object sender, JQueryEventArgs e) { + if (e.Identifier == Id) { + Drawn?.Invoke(); + } + } + [Parameter] + Action Exported { get; set; } + void BaseChart_Exported(object sender, JQueryEventArgs e) { + if (e.Identifier == Id) { + Exported?.Invoke(); + } + } + [Parameter] + Action Exporting { get; set; } + void BaseChart_Exporting(object sender, JQueryEventArgs e) { + if (e.Identifier == Id) { + Exporting?.Invoke(); + } + } + [Parameter] + Action FileSaving { get; set; } + void BaseChart_FileSaving(object sender, JQueryEventArgs e) { + if (e.Identifier == Id) { + FileSaving?.Invoke(); + } + } + [Parameter] + Action IncidentOccurred { get; set; } + void BaseChart_IncidentOccurred(object sender, JQueryEventArgs e) { + if (e.Identifier == Id) { + IncidentOccurred?.Invoke(); + } + } + [Parameter] + Action Disposing { get; set; } + void BaseChart_Disposing(object sender, JQueryEventArgs e) { + if (e.Identifier == Id) { + Disposing?.Invoke(); + } + } + [Parameter] + Action OptionChanged { get; set; } + void BaseChart_OptionChanged(object sender, JQueryEventArgs e) { + if (e.Identifier == Id) { + OptionChanged?.Invoke(); + } + } + [Parameter] + Action Initialized { get; set; } + void BaseChart_Initialized(object sender, JQueryEventArgs e) { + if (e.Identifier == Id) { + Initialized?.Invoke(); + } + } public void ClearSelection() { DevExpress.Viz.BaseChartInterop.ClearSelection(dxTarget); } @@ -282,5 +571,13 @@ return DevExpress.Viz.BaseChartInterop.Init(dxTarget, options); DevExpress.Viz.BaseChartInterop.PointSelectionChanged -= BaseChart_PointSelectionChanged; DevExpress.Viz.BaseChartInterop.TooltipHidden -= BaseChart_TooltipHidden; DevExpress.Viz.BaseChartInterop.TooltipShown -= BaseChart_TooltipShown; + DevExpress.Viz.BaseChartInterop.Drawn -= BaseChart_Drawn; + DevExpress.Viz.BaseChartInterop.Exported -= BaseChart_Exported; + DevExpress.Viz.BaseChartInterop.Exporting -= BaseChart_Exporting; + DevExpress.Viz.BaseChartInterop.FileSaving -= BaseChart_FileSaving; + DevExpress.Viz.BaseChartInterop.IncidentOccurred -= BaseChart_IncidentOccurred; + DevExpress.Viz.BaseChartInterop.Disposing -= BaseChart_Disposing; + DevExpress.Viz.BaseChartInterop.OptionChanged -= BaseChart_OptionChanged; + DevExpress.Viz.BaseChartInterop.Initialized -= BaseChart_Initialized; } } diff --git a/sources/BlazorDevExtreme/Components/BaseGauge.cshtml b/sources/BlazorDevExtreme/Components/BaseGauge.cshtml index 97e6bc2..9d69c60 100644 --- a/sources/BlazorDevExtreme/Components/BaseGauge.cshtml +++ b/sources/BlazorDevExtreme/Components/BaseGauge.cshtml @@ -19,12 +19,32 @@ title = title, tooltip = tooltip, value = value, + export = export, + loadingIndicator = loadingIndicator, + margin = margin, + pathModified = pathModified, + redrawOnResize = redrawOnResize, + rtlEnabled = rtlEnabled, + size = size, + theme = theme, + bindingOptions = bindingOptions, + elementAttr = elementAttr, + height = height, + width = width, onTooltipHiddenEnabled = onTooltipHiddenEnabled, onTooltipShownEnabled = onTooltipShownEnabled, + onDrawnEnabled = onDrawnEnabled, + onExportedEnabled = onExportedEnabled, + onExportingEnabled = onExportingEnabled, + onFileSavingEnabled = onFileSavingEnabled, + onIncidentOccurredEnabled = onIncidentOccurredEnabled, + onDisposingEnabled = onDisposingEnabled, + onOptionChangedEnabled = onOptionChangedEnabled, + onInitializedEnabled = onInitializedEnabled, }; } protected override Task Init(DevExpress.Viz.Gauges.BaseGaugeOptions options) { -return DevExpress.Viz.BaseGaugeInterop.Init(dxTarget, options); + return DevExpress.Viz.BaseGaugeInterop.Init(dxTarget, options); } object animation; [Parameter] @@ -41,7 +61,7 @@ return DevExpress.Viz.BaseGaugeInterop.Init(dxTarget, options); string containerBackgroundColor; [Parameter] string ContainerBackgroundColor { - get => isInitialized ? DevExpress.Viz.BaseGaugeInterop.GetContainerBackgroundColor(dxTarget).Result : containerBackgroundColor; + get => isInitialized ? (string)DevExpress.Viz.BaseGaugeInterop.GetContainerBackgroundColor(dxTarget).Result : containerBackgroundColor; set { if (isInitialized) { DevExpress.Viz.BaseGaugeInterop.SetContainerBackgroundColor(dxTarget, value); @@ -125,7 +145,7 @@ return DevExpress.Viz.BaseGaugeInterop.Init(dxTarget, options); float? value; [Parameter] float? Value { - get => isInitialized ? DevExpress.Viz.BaseGaugeInterop.GetValue(dxTarget).Result : value; + get => isInitialized ? (float?)DevExpress.Viz.BaseGaugeInterop.GetValue(dxTarget).Result : value; set { if (isInitialized) { DevExpress.Viz.BaseGaugeInterop.SetValue(dxTarget, value); @@ -134,6 +154,150 @@ return DevExpress.Viz.BaseGaugeInterop.Init(dxTarget, options); } } } + object export; + [Parameter] + object Export { + get => isInitialized ? DevExpress.Viz.BaseGaugeInterop.GetExport(dxTarget).Result : export; + set { + if (isInitialized) { + DevExpress.Viz.BaseGaugeInterop.SetExport(dxTarget, value); + } else { + this.export = value; + } + } + } + object loadingIndicator; + [Parameter] + object LoadingIndicator { + get => isInitialized ? DevExpress.Viz.BaseGaugeInterop.GetLoadingIndicator(dxTarget).Result : loadingIndicator; + set { + if (isInitialized) { + DevExpress.Viz.BaseGaugeInterop.SetLoadingIndicator(dxTarget, value); + } else { + this.loadingIndicator = value; + } + } + } + object margin; + [Parameter] + object Margin { + get => isInitialized ? DevExpress.Viz.BaseGaugeInterop.GetMargin(dxTarget).Result : margin; + set { + if (isInitialized) { + DevExpress.Viz.BaseGaugeInterop.SetMargin(dxTarget, value); + } else { + this.margin = value; + } + } + } + bool? pathModified; + [Parameter] + bool? PathModified { + get => isInitialized ? (bool?)DevExpress.Viz.BaseGaugeInterop.GetPathModified(dxTarget).Result : pathModified; + set { + if (isInitialized) { + DevExpress.Viz.BaseGaugeInterop.SetPathModified(dxTarget, value); + } else { + this.pathModified = value; + } + } + } + bool? redrawOnResize; + [Parameter] + bool? RedrawOnResize { + get => isInitialized ? (bool?)DevExpress.Viz.BaseGaugeInterop.GetRedrawOnResize(dxTarget).Result : redrawOnResize; + set { + if (isInitialized) { + DevExpress.Viz.BaseGaugeInterop.SetRedrawOnResize(dxTarget, value); + } else { + this.redrawOnResize = value; + } + } + } + bool? rtlEnabled; + [Parameter] + bool? RtlEnabled { + get => isInitialized ? (bool?)DevExpress.Viz.BaseGaugeInterop.GetRtlEnabled(dxTarget).Result : rtlEnabled; + set { + if (isInitialized) { + DevExpress.Viz.BaseGaugeInterop.SetRtlEnabled(dxTarget, value); + } else { + this.rtlEnabled = value; + } + } + } + object size; + [Parameter] + object Size { + get => isInitialized ? DevExpress.Viz.BaseGaugeInterop.GetSize(dxTarget).Result : size; + set { + if (isInitialized) { + DevExpress.Viz.BaseGaugeInterop.SetSize(dxTarget, value); + } else { + this.size = value; + } + } + } + string theme; + [Parameter] + string Theme { + get => isInitialized ? (string)DevExpress.Viz.BaseGaugeInterop.GetTheme(dxTarget).Result : theme; + set { + if (isInitialized) { + DevExpress.Viz.BaseGaugeInterop.SetTheme(dxTarget, value); + } else { + this.theme = value; + } + } + } + object bindingOptions; + [Parameter] + object BindingOptions { + get => isInitialized ? DevExpress.Viz.BaseGaugeInterop.GetBindingOptions(dxTarget).Result : bindingOptions; + set { + if (isInitialized) { + DevExpress.Viz.BaseGaugeInterop.SetBindingOptions(dxTarget, value); + } else { + this.bindingOptions = value; + } + } + } + object elementAttr; + [Parameter] + object ElementAttr { + get => isInitialized ? DevExpress.Viz.BaseGaugeInterop.GetElementAttr(dxTarget).Result : elementAttr; + set { + if (isInitialized) { + DevExpress.Viz.BaseGaugeInterop.SetElementAttr(dxTarget, value); + } else { + this.elementAttr = value; + } + } + } + object height; + [Parameter] + object Height { + get => isInitialized ? DevExpress.Viz.BaseGaugeInterop.GetHeight(dxTarget).Result : height; + set { + if (isInitialized) { + DevExpress.Viz.BaseGaugeInterop.SetHeight(dxTarget, value); + } else { + this.height = value; + } + } + } + object width; + [Parameter] + object Width { + get => isInitialized ? DevExpress.Viz.BaseGaugeInterop.GetWidth(dxTarget).Result : width; + set { + if (isInitialized) { + DevExpress.Viz.BaseGaugeInterop.SetWidth(dxTarget, value); + } else { + this.width = value; + } + } + } bool? onTooltipHiddenEnabled; [Parameter] bool? OnTooltipHiddenEnabled { @@ -146,10 +310,66 @@ return DevExpress.Viz.BaseGaugeInterop.Init(dxTarget, options); get => onTooltipShownEnabled; set => this.onTooltipShownEnabled = value; } + bool? onDrawnEnabled; + [Parameter] + bool? OnDrawnEnabled { + get => onDrawnEnabled; + set => this.onDrawnEnabled = value; + } + bool? onExportedEnabled; + [Parameter] + bool? OnExportedEnabled { + get => onExportedEnabled; + set => this.onExportedEnabled = value; + } + bool? onExportingEnabled; + [Parameter] + bool? OnExportingEnabled { + get => onExportingEnabled; + set => this.onExportingEnabled = value; + } + bool? onFileSavingEnabled; + [Parameter] + bool? OnFileSavingEnabled { + get => onFileSavingEnabled; + set => this.onFileSavingEnabled = value; + } + bool? onIncidentOccurredEnabled; + [Parameter] + bool? OnIncidentOccurredEnabled { + get => onIncidentOccurredEnabled; + set => this.onIncidentOccurredEnabled = value; + } + bool? onDisposingEnabled; + [Parameter] + bool? OnDisposingEnabled { + get => onDisposingEnabled; + set => this.onDisposingEnabled = value; + } + bool? onOptionChangedEnabled; + [Parameter] + bool? OnOptionChangedEnabled { + get => onOptionChangedEnabled; + set => this.onOptionChangedEnabled = value; + } + bool? onInitializedEnabled; + [Parameter] + bool? OnInitializedEnabled { + get => onInitializedEnabled; + set => this.onInitializedEnabled = value; + } protected override async Task OnInitAsync() { await base.OnInitAsync(); DevExpress.Viz.BaseGaugeInterop.TooltipHidden += BaseGauge_TooltipHidden; DevExpress.Viz.BaseGaugeInterop.TooltipShown += BaseGauge_TooltipShown; + DevExpress.Viz.BaseGaugeInterop.Drawn += BaseGauge_Drawn; + DevExpress.Viz.BaseGaugeInterop.Exported += BaseGauge_Exported; + DevExpress.Viz.BaseGaugeInterop.Exporting += BaseGauge_Exporting; + DevExpress.Viz.BaseGaugeInterop.FileSaving += BaseGauge_FileSaving; + DevExpress.Viz.BaseGaugeInterop.IncidentOccurred += BaseGauge_IncidentOccurred; + DevExpress.Viz.BaseGaugeInterop.Disposing += BaseGauge_Disposing; + DevExpress.Viz.BaseGaugeInterop.OptionChanged += BaseGauge_OptionChanged; + DevExpress.Viz.BaseGaugeInterop.Initialized += BaseGauge_Initialized; } [Parameter] Action TooltipHidden { get; set; } @@ -165,6 +385,62 @@ return DevExpress.Viz.BaseGaugeInterop.Init(dxTarget, options); TooltipShown?.Invoke(); } } + [Parameter] + Action Drawn { get; set; } + void BaseGauge_Drawn(object sender, JQueryEventArgs e) { + if (e.Identifier == Id) { + Drawn?.Invoke(); + } + } + [Parameter] + Action Exported { get; set; } + void BaseGauge_Exported(object sender, JQueryEventArgs e) { + if (e.Identifier == Id) { + Exported?.Invoke(); + } + } + [Parameter] + Action Exporting { get; set; } + void BaseGauge_Exporting(object sender, JQueryEventArgs e) { + if (e.Identifier == Id) { + Exporting?.Invoke(); + } + } + [Parameter] + Action FileSaving { get; set; } + void BaseGauge_FileSaving(object sender, JQueryEventArgs e) { + if (e.Identifier == Id) { + FileSaving?.Invoke(); + } + } + [Parameter] + Action IncidentOccurred { get; set; } + void BaseGauge_IncidentOccurred(object sender, JQueryEventArgs e) { + if (e.Identifier == Id) { + IncidentOccurred?.Invoke(); + } + } + [Parameter] + Action Disposing { get; set; } + void BaseGauge_Disposing(object sender, JQueryEventArgs e) { + if (e.Identifier == Id) { + Disposing?.Invoke(); + } + } + [Parameter] + Action OptionChanged { get; set; } + void BaseGauge_OptionChanged(object sender, JQueryEventArgs e) { + if (e.Identifier == Id) { + OptionChanged?.Invoke(); + } + } + [Parameter] + Action Initialized { get; set; } + void BaseGauge_Initialized(object sender, JQueryEventArgs e) { + if (e.Identifier == Id) { + Initialized?.Invoke(); + } + } public object SubvaluesEx() { return DevExpress.Viz.BaseGaugeInterop.SubvaluesEx(dxTarget).Result; } @@ -180,5 +456,13 @@ return DevExpress.Viz.BaseGaugeInterop.Init(dxTarget, options); public void Dispose() { DevExpress.Viz.BaseGaugeInterop.TooltipHidden -= BaseGauge_TooltipHidden; DevExpress.Viz.BaseGaugeInterop.TooltipShown -= BaseGauge_TooltipShown; + DevExpress.Viz.BaseGaugeInterop.Drawn -= BaseGauge_Drawn; + DevExpress.Viz.BaseGaugeInterop.Exported -= BaseGauge_Exported; + DevExpress.Viz.BaseGaugeInterop.Exporting -= BaseGauge_Exporting; + DevExpress.Viz.BaseGaugeInterop.FileSaving -= BaseGauge_FileSaving; + DevExpress.Viz.BaseGaugeInterop.IncidentOccurred -= BaseGauge_IncidentOccurred; + DevExpress.Viz.BaseGaugeInterop.Disposing -= BaseGauge_Disposing; + DevExpress.Viz.BaseGaugeInterop.OptionChanged -= BaseGauge_OptionChanged; + DevExpress.Viz.BaseGaugeInterop.Initialized -= BaseGauge_Initialized; } } diff --git a/sources/BlazorDevExtreme/Components/BaseSparkline.cshtml b/sources/BlazorDevExtreme/Components/BaseSparkline.cshtml index 79c8277..5e1f8bc 100644 --- a/sources/BlazorDevExtreme/Components/BaseSparkline.cshtml +++ b/sources/BlazorDevExtreme/Components/BaseSparkline.cshtml @@ -11,12 +11,33 @@ protected override DevExpress.Viz.Sparklines.BaseSparklineOptions CreateOptions() { return new DevExpress.Viz.Sparklines.BaseSparklineOptions { tooltip = tooltip, + export = export, + loadingIndicator = loadingIndicator, + margin = margin, + pathModified = pathModified, + redrawOnResize = redrawOnResize, + rtlEnabled = rtlEnabled, + size = size, + theme = theme, + title = title, + bindingOptions = bindingOptions, + elementAttr = elementAttr, + height = height, + width = width, onTooltipHiddenEnabled = onTooltipHiddenEnabled, onTooltipShownEnabled = onTooltipShownEnabled, + onDrawnEnabled = onDrawnEnabled, + onExportedEnabled = onExportedEnabled, + onExportingEnabled = onExportingEnabled, + onFileSavingEnabled = onFileSavingEnabled, + onIncidentOccurredEnabled = onIncidentOccurredEnabled, + onDisposingEnabled = onDisposingEnabled, + onOptionChangedEnabled = onOptionChangedEnabled, + onInitializedEnabled = onInitializedEnabled, }; } protected override Task Init(DevExpress.Viz.Sparklines.BaseSparklineOptions options) { -return DevExpress.Viz.BaseSparklineInterop.Init(dxTarget, options); + return DevExpress.Viz.BaseSparklineInterop.Init(dxTarget, options); } object tooltip; [Parameter] @@ -30,6 +51,162 @@ return DevExpress.Viz.BaseSparklineInterop.Init(dxTarget, options); } } } + object export; + [Parameter] + object Export { + get => isInitialized ? DevExpress.Viz.BaseSparklineInterop.GetExport(dxTarget).Result : export; + set { + if (isInitialized) { + DevExpress.Viz.BaseSparklineInterop.SetExport(dxTarget, value); + } else { + this.export = value; + } + } + } + object loadingIndicator; + [Parameter] + object LoadingIndicator { + get => isInitialized ? DevExpress.Viz.BaseSparklineInterop.GetLoadingIndicator(dxTarget).Result : loadingIndicator; + set { + if (isInitialized) { + DevExpress.Viz.BaseSparklineInterop.SetLoadingIndicator(dxTarget, value); + } else { + this.loadingIndicator = value; + } + } + } + object margin; + [Parameter] + object Margin { + get => isInitialized ? DevExpress.Viz.BaseSparklineInterop.GetMargin(dxTarget).Result : margin; + set { + if (isInitialized) { + DevExpress.Viz.BaseSparklineInterop.SetMargin(dxTarget, value); + } else { + this.margin = value; + } + } + } + bool? pathModified; + [Parameter] + bool? PathModified { + get => isInitialized ? (bool?)DevExpress.Viz.BaseSparklineInterop.GetPathModified(dxTarget).Result : pathModified; + set { + if (isInitialized) { + DevExpress.Viz.BaseSparklineInterop.SetPathModified(dxTarget, value); + } else { + this.pathModified = value; + } + } + } + bool? redrawOnResize; + [Parameter] + bool? RedrawOnResize { + get => isInitialized ? (bool?)DevExpress.Viz.BaseSparklineInterop.GetRedrawOnResize(dxTarget).Result : redrawOnResize; + set { + if (isInitialized) { + DevExpress.Viz.BaseSparklineInterop.SetRedrawOnResize(dxTarget, value); + } else { + this.redrawOnResize = value; + } + } + } + bool? rtlEnabled; + [Parameter] + bool? RtlEnabled { + get => isInitialized ? (bool?)DevExpress.Viz.BaseSparklineInterop.GetRtlEnabled(dxTarget).Result : rtlEnabled; + set { + if (isInitialized) { + DevExpress.Viz.BaseSparklineInterop.SetRtlEnabled(dxTarget, value); + } else { + this.rtlEnabled = value; + } + } + } + object size; + [Parameter] + object Size { + get => isInitialized ? DevExpress.Viz.BaseSparklineInterop.GetSize(dxTarget).Result : size; + set { + if (isInitialized) { + DevExpress.Viz.BaseSparklineInterop.SetSize(dxTarget, value); + } else { + this.size = value; + } + } + } + string theme; + [Parameter] + string Theme { + get => isInitialized ? (string)DevExpress.Viz.BaseSparklineInterop.GetTheme(dxTarget).Result : theme; + set { + if (isInitialized) { + DevExpress.Viz.BaseSparklineInterop.SetTheme(dxTarget, value); + } else { + this.theme = value; + } + } + } + object title; + [Parameter] + object Title { + get => isInitialized ? DevExpress.Viz.BaseSparklineInterop.GetTitle(dxTarget).Result : title; + set { + if (isInitialized) { + DevExpress.Viz.BaseSparklineInterop.SetTitle(dxTarget, value); + } else { + this.title = value; + } + } + } + object bindingOptions; + [Parameter] + object BindingOptions { + get => isInitialized ? DevExpress.Viz.BaseSparklineInterop.GetBindingOptions(dxTarget).Result : bindingOptions; + set { + if (isInitialized) { + DevExpress.Viz.BaseSparklineInterop.SetBindingOptions(dxTarget, value); + } else { + this.bindingOptions = value; + } + } + } + object elementAttr; + [Parameter] + object ElementAttr { + get => isInitialized ? DevExpress.Viz.BaseSparklineInterop.GetElementAttr(dxTarget).Result : elementAttr; + set { + if (isInitialized) { + DevExpress.Viz.BaseSparklineInterop.SetElementAttr(dxTarget, value); + } else { + this.elementAttr = value; + } + } + } + object height; + [Parameter] + object Height { + get => isInitialized ? DevExpress.Viz.BaseSparklineInterop.GetHeight(dxTarget).Result : height; + set { + if (isInitialized) { + DevExpress.Viz.BaseSparklineInterop.SetHeight(dxTarget, value); + } else { + this.height = value; + } + } + } + object width; + [Parameter] + object Width { + get => isInitialized ? DevExpress.Viz.BaseSparklineInterop.GetWidth(dxTarget).Result : width; + set { + if (isInitialized) { + DevExpress.Viz.BaseSparklineInterop.SetWidth(dxTarget, value); + } else { + this.width = value; + } + } + } bool? onTooltipHiddenEnabled; [Parameter] bool? OnTooltipHiddenEnabled { @@ -42,10 +219,66 @@ return DevExpress.Viz.BaseSparklineInterop.Init(dxTarget, options); get => onTooltipShownEnabled; set => this.onTooltipShownEnabled = value; } + bool? onDrawnEnabled; + [Parameter] + bool? OnDrawnEnabled { + get => onDrawnEnabled; + set => this.onDrawnEnabled = value; + } + bool? onExportedEnabled; + [Parameter] + bool? OnExportedEnabled { + get => onExportedEnabled; + set => this.onExportedEnabled = value; + } + bool? onExportingEnabled; + [Parameter] + bool? OnExportingEnabled { + get => onExportingEnabled; + set => this.onExportingEnabled = value; + } + bool? onFileSavingEnabled; + [Parameter] + bool? OnFileSavingEnabled { + get => onFileSavingEnabled; + set => this.onFileSavingEnabled = value; + } + bool? onIncidentOccurredEnabled; + [Parameter] + bool? OnIncidentOccurredEnabled { + get => onIncidentOccurredEnabled; + set => this.onIncidentOccurredEnabled = value; + } + bool? onDisposingEnabled; + [Parameter] + bool? OnDisposingEnabled { + get => onDisposingEnabled; + set => this.onDisposingEnabled = value; + } + bool? onOptionChangedEnabled; + [Parameter] + bool? OnOptionChangedEnabled { + get => onOptionChangedEnabled; + set => this.onOptionChangedEnabled = value; + } + bool? onInitializedEnabled; + [Parameter] + bool? OnInitializedEnabled { + get => onInitializedEnabled; + set => this.onInitializedEnabled = value; + } protected override async Task OnInitAsync() { await base.OnInitAsync(); DevExpress.Viz.BaseSparklineInterop.TooltipHidden += BaseSparkline_TooltipHidden; DevExpress.Viz.BaseSparklineInterop.TooltipShown += BaseSparkline_TooltipShown; + DevExpress.Viz.BaseSparklineInterop.Drawn += BaseSparkline_Drawn; + DevExpress.Viz.BaseSparklineInterop.Exported += BaseSparkline_Exported; + DevExpress.Viz.BaseSparklineInterop.Exporting += BaseSparkline_Exporting; + DevExpress.Viz.BaseSparklineInterop.FileSaving += BaseSparkline_FileSaving; + DevExpress.Viz.BaseSparklineInterop.IncidentOccurred += BaseSparkline_IncidentOccurred; + DevExpress.Viz.BaseSparklineInterop.Disposing += BaseSparkline_Disposing; + DevExpress.Viz.BaseSparklineInterop.OptionChanged += BaseSparkline_OptionChanged; + DevExpress.Viz.BaseSparklineInterop.Initialized += BaseSparkline_Initialized; } [Parameter] Action TooltipHidden { get; set; } @@ -61,8 +294,72 @@ return DevExpress.Viz.BaseSparklineInterop.Init(dxTarget, options); TooltipShown?.Invoke(); } } + [Parameter] + Action Drawn { get; set; } + void BaseSparkline_Drawn(object sender, JQueryEventArgs e) { + if (e.Identifier == Id) { + Drawn?.Invoke(); + } + } + [Parameter] + Action Exported { get; set; } + void BaseSparkline_Exported(object sender, JQueryEventArgs e) { + if (e.Identifier == Id) { + Exported?.Invoke(); + } + } + [Parameter] + Action Exporting { get; set; } + void BaseSparkline_Exporting(object sender, JQueryEventArgs e) { + if (e.Identifier == Id) { + Exporting?.Invoke(); + } + } + [Parameter] + Action FileSaving { get; set; } + void BaseSparkline_FileSaving(object sender, JQueryEventArgs e) { + if (e.Identifier == Id) { + FileSaving?.Invoke(); + } + } + [Parameter] + Action IncidentOccurred { get; set; } + void BaseSparkline_IncidentOccurred(object sender, JQueryEventArgs e) { + if (e.Identifier == Id) { + IncidentOccurred?.Invoke(); + } + } + [Parameter] + Action Disposing { get; set; } + void BaseSparkline_Disposing(object sender, JQueryEventArgs e) { + if (e.Identifier == Id) { + Disposing?.Invoke(); + } + } + [Parameter] + Action OptionChanged { get; set; } + void BaseSparkline_OptionChanged(object sender, JQueryEventArgs e) { + if (e.Identifier == Id) { + OptionChanged?.Invoke(); + } + } + [Parameter] + Action Initialized { get; set; } + void BaseSparkline_Initialized(object sender, JQueryEventArgs e) { + if (e.Identifier == Id) { + Initialized?.Invoke(); + } + } public void Dispose() { DevExpress.Viz.BaseSparklineInterop.TooltipHidden -= BaseSparkline_TooltipHidden; DevExpress.Viz.BaseSparklineInterop.TooltipShown -= BaseSparkline_TooltipShown; + DevExpress.Viz.BaseSparklineInterop.Drawn -= BaseSparkline_Drawn; + DevExpress.Viz.BaseSparklineInterop.Exported -= BaseSparkline_Exported; + DevExpress.Viz.BaseSparklineInterop.Exporting -= BaseSparkline_Exporting; + DevExpress.Viz.BaseSparklineInterop.FileSaving -= BaseSparkline_FileSaving; + DevExpress.Viz.BaseSparklineInterop.IncidentOccurred -= BaseSparkline_IncidentOccurred; + DevExpress.Viz.BaseSparklineInterop.Disposing -= BaseSparkline_Disposing; + DevExpress.Viz.BaseSparklineInterop.OptionChanged -= BaseSparkline_OptionChanged; + DevExpress.Viz.BaseSparklineInterop.Initialized -= BaseSparkline_Initialized; } } diff --git a/sources/BlazorDevExtreme/Components/BaseWidget.cshtml b/sources/BlazorDevExtreme/Components/BaseWidget.cshtml index 276b42a..1ff1bb8 100644 --- a/sources/BlazorDevExtreme/Components/BaseWidget.cshtml +++ b/sources/BlazorDevExtreme/Components/BaseWidget.cshtml @@ -20,15 +20,22 @@ theme = theme, title = title, tooltip = tooltip, + bindingOptions = bindingOptions, + elementAttr = elementAttr, + height = height, + width = width, onDrawnEnabled = onDrawnEnabled, onExportedEnabled = onExportedEnabled, onExportingEnabled = onExportingEnabled, onFileSavingEnabled = onFileSavingEnabled, onIncidentOccurredEnabled = onIncidentOccurredEnabled, + onDisposingEnabled = onDisposingEnabled, + onOptionChangedEnabled = onOptionChangedEnabled, + onInitializedEnabled = onInitializedEnabled, }; } protected override Task Init(DevExpress.Viz.BaseWidgetOptions options) { -return DevExpress.Viz.BaseWidgetInterop.Init(dxTarget, options); + return DevExpress.Viz.BaseWidgetInterop.Init(dxTarget, options); } object export; [Parameter] @@ -69,7 +76,7 @@ return DevExpress.Viz.BaseWidgetInterop.Init(dxTarget, options); bool? pathModified; [Parameter] bool? PathModified { - get => isInitialized ? DevExpress.Viz.BaseWidgetInterop.GetPathModified(dxTarget).Result : pathModified; + get => isInitialized ? (bool?)DevExpress.Viz.BaseWidgetInterop.GetPathModified(dxTarget).Result : pathModified; set { if (isInitialized) { DevExpress.Viz.BaseWidgetInterop.SetPathModified(dxTarget, value); @@ -81,7 +88,7 @@ return DevExpress.Viz.BaseWidgetInterop.Init(dxTarget, options); bool? redrawOnResize; [Parameter] bool? RedrawOnResize { - get => isInitialized ? DevExpress.Viz.BaseWidgetInterop.GetRedrawOnResize(dxTarget).Result : redrawOnResize; + get => isInitialized ? (bool?)DevExpress.Viz.BaseWidgetInterop.GetRedrawOnResize(dxTarget).Result : redrawOnResize; set { if (isInitialized) { DevExpress.Viz.BaseWidgetInterop.SetRedrawOnResize(dxTarget, value); @@ -93,7 +100,7 @@ return DevExpress.Viz.BaseWidgetInterop.Init(dxTarget, options); bool? rtlEnabled; [Parameter] bool? RtlEnabled { - get => isInitialized ? DevExpress.Viz.BaseWidgetInterop.GetRtlEnabled(dxTarget).Result : rtlEnabled; + get => isInitialized ? (bool?)DevExpress.Viz.BaseWidgetInterop.GetRtlEnabled(dxTarget).Result : rtlEnabled; set { if (isInitialized) { DevExpress.Viz.BaseWidgetInterop.SetRtlEnabled(dxTarget, value); @@ -117,7 +124,7 @@ return DevExpress.Viz.BaseWidgetInterop.Init(dxTarget, options); string theme; [Parameter] string Theme { - get => isInitialized ? DevExpress.Viz.BaseWidgetInterop.GetTheme(dxTarget).Result : theme; + get => isInitialized ? (string)DevExpress.Viz.BaseWidgetInterop.GetTheme(dxTarget).Result : theme; set { if (isInitialized) { DevExpress.Viz.BaseWidgetInterop.SetTheme(dxTarget, value); @@ -150,6 +157,54 @@ return DevExpress.Viz.BaseWidgetInterop.Init(dxTarget, options); } } } + object bindingOptions; + [Parameter] + object BindingOptions { + get => isInitialized ? DevExpress.Viz.BaseWidgetInterop.GetBindingOptions(dxTarget).Result : bindingOptions; + set { + if (isInitialized) { + DevExpress.Viz.BaseWidgetInterop.SetBindingOptions(dxTarget, value); + } else { + this.bindingOptions = value; + } + } + } + object elementAttr; + [Parameter] + object ElementAttr { + get => isInitialized ? DevExpress.Viz.BaseWidgetInterop.GetElementAttr(dxTarget).Result : elementAttr; + set { + if (isInitialized) { + DevExpress.Viz.BaseWidgetInterop.SetElementAttr(dxTarget, value); + } else { + this.elementAttr = value; + } + } + } + object height; + [Parameter] + object Height { + get => isInitialized ? DevExpress.Viz.BaseWidgetInterop.GetHeight(dxTarget).Result : height; + set { + if (isInitialized) { + DevExpress.Viz.BaseWidgetInterop.SetHeight(dxTarget, value); + } else { + this.height = value; + } + } + } + object width; + [Parameter] + object Width { + get => isInitialized ? DevExpress.Viz.BaseWidgetInterop.GetWidth(dxTarget).Result : width; + set { + if (isInitialized) { + DevExpress.Viz.BaseWidgetInterop.SetWidth(dxTarget, value); + } else { + this.width = value; + } + } + } bool? onDrawnEnabled; [Parameter] bool? OnDrawnEnabled { @@ -180,6 +235,24 @@ return DevExpress.Viz.BaseWidgetInterop.Init(dxTarget, options); get => onIncidentOccurredEnabled; set => this.onIncidentOccurredEnabled = value; } + bool? onDisposingEnabled; + [Parameter] + bool? OnDisposingEnabled { + get => onDisposingEnabled; + set => this.onDisposingEnabled = value; + } + bool? onOptionChangedEnabled; + [Parameter] + bool? OnOptionChangedEnabled { + get => onOptionChangedEnabled; + set => this.onOptionChangedEnabled = value; + } + bool? onInitializedEnabled; + [Parameter] + bool? OnInitializedEnabled { + get => onInitializedEnabled; + set => this.onInitializedEnabled = value; + } protected override async Task OnInitAsync() { await base.OnInitAsync(); DevExpress.Viz.BaseWidgetInterop.Drawn += BaseWidget_Drawn; @@ -187,6 +260,9 @@ return DevExpress.Viz.BaseWidgetInterop.Init(dxTarget, options); DevExpress.Viz.BaseWidgetInterop.Exporting += BaseWidget_Exporting; DevExpress.Viz.BaseWidgetInterop.FileSaving += BaseWidget_FileSaving; DevExpress.Viz.BaseWidgetInterop.IncidentOccurred += BaseWidget_IncidentOccurred; + DevExpress.Viz.BaseWidgetInterop.Disposing += BaseWidget_Disposing; + DevExpress.Viz.BaseWidgetInterop.OptionChanged += BaseWidget_OptionChanged; + DevExpress.Viz.BaseWidgetInterop.Initialized += BaseWidget_Initialized; } [Parameter] Action Drawn { get; set; } @@ -223,6 +299,27 @@ return DevExpress.Viz.BaseWidgetInterop.Init(dxTarget, options); IncidentOccurred?.Invoke(); } } + [Parameter] + Action Disposing { get; set; } + void BaseWidget_Disposing(object sender, JQueryEventArgs e) { + if (e.Identifier == Id) { + Disposing?.Invoke(); + } + } + [Parameter] + Action OptionChanged { get; set; } + void BaseWidget_OptionChanged(object sender, JQueryEventArgs e) { + if (e.Identifier == Id) { + OptionChanged?.Invoke(); + } + } + [Parameter] + Action Initialized { get; set; } + void BaseWidget_Initialized(object sender, JQueryEventArgs e) { + if (e.Identifier == Id) { + Initialized?.Invoke(); + } + } public void ExportTo(string fileName, string format) { DevExpress.Viz.BaseWidgetInterop.ExportTo(dxTarget, fileName, format); } @@ -250,5 +347,8 @@ return DevExpress.Viz.BaseWidgetInterop.Init(dxTarget, options); DevExpress.Viz.BaseWidgetInterop.Exporting -= BaseWidget_Exporting; DevExpress.Viz.BaseWidgetInterop.FileSaving -= BaseWidget_FileSaving; DevExpress.Viz.BaseWidgetInterop.IncidentOccurred -= BaseWidget_IncidentOccurred; + DevExpress.Viz.BaseWidgetInterop.Disposing -= BaseWidget_Disposing; + DevExpress.Viz.BaseWidgetInterop.OptionChanged -= BaseWidget_OptionChanged; + DevExpress.Viz.BaseWidgetInterop.Initialized -= BaseWidget_Initialized; } } diff --git a/sources/BlazorDevExtreme/Components/CollectionWidget.cshtml b/sources/BlazorDevExtreme/Components/CollectionWidget.cshtml index b6d99d6..693e4fe 100644 --- a/sources/BlazorDevExtreme/Components/CollectionWidget.cshtml +++ b/sources/BlazorDevExtreme/Components/CollectionWidget.cshtml @@ -20,15 +20,32 @@ selectedItem = selectedItem, selectedItemKeys = selectedItemKeys, selectedItems = selectedItems, + accessKey = accessKey, + activeStateEnabled = activeStateEnabled, + disabled = disabled, + focusStateEnabled = focusStateEnabled, + hint = hint, + hoverStateEnabled = hoverStateEnabled, + tabIndex = tabIndex, + visible = visible, + bindingOptions = bindingOptions, + elementAttr = elementAttr, + height = height, + rtlEnabled = rtlEnabled, + width = width, onItemClickEnabled = onItemClickEnabled, onItemContextMenuEnabled = onItemContextMenuEnabled, onItemHoldEnabled = onItemHoldEnabled, onItemRenderedEnabled = onItemRenderedEnabled, onSelectionChangedEnabled = onSelectionChangedEnabled, + onContentReadyEnabled = onContentReadyEnabled, + onDisposingEnabled = onDisposingEnabled, + onOptionChangedEnabled = onOptionChangedEnabled, + onInitializedEnabled = onInitializedEnabled, }; } protected override Task Init(DevExpress.Ui.CollectionWidgetOptions options) { -return DevExpress.Ui.CollectionWidgetInterop.Init(dxTarget, options); + return DevExpress.Ui.CollectionWidgetInterop.Init(dxTarget, options); } object dataSource; [Parameter] @@ -45,7 +62,7 @@ return DevExpress.Ui.CollectionWidgetInterop.Init(dxTarget, options); float? itemHoldTimeout; [Parameter] float? ItemHoldTimeout { - get => isInitialized ? DevExpress.Ui.CollectionWidgetInterop.GetItemHoldTimeout(dxTarget).Result : itemHoldTimeout; + get => isInitialized ? (float?)DevExpress.Ui.CollectionWidgetInterop.GetItemHoldTimeout(dxTarget).Result : itemHoldTimeout; set { if (isInitialized) { DevExpress.Ui.CollectionWidgetInterop.SetItemHoldTimeout(dxTarget, value); @@ -93,7 +110,7 @@ return DevExpress.Ui.CollectionWidgetInterop.Init(dxTarget, options); string noDataText; [Parameter] string NoDataText { - get => isInitialized ? DevExpress.Ui.CollectionWidgetInterop.GetNoDataText(dxTarget).Result : noDataText; + get => isInitialized ? (string)DevExpress.Ui.CollectionWidgetInterop.GetNoDataText(dxTarget).Result : noDataText; set { if (isInitialized) { DevExpress.Ui.CollectionWidgetInterop.SetNoDataText(dxTarget, value); @@ -105,7 +122,7 @@ return DevExpress.Ui.CollectionWidgetInterop.Init(dxTarget, options); float? selectedIndex; [Parameter] float? SelectedIndex { - get => isInitialized ? DevExpress.Ui.CollectionWidgetInterop.GetSelectedIndex(dxTarget).Result : selectedIndex; + get => isInitialized ? (float?)DevExpress.Ui.CollectionWidgetInterop.GetSelectedIndex(dxTarget).Result : selectedIndex; set { if (isInitialized) { DevExpress.Ui.CollectionWidgetInterop.SetSelectedIndex(dxTarget, value); @@ -150,6 +167,162 @@ return DevExpress.Ui.CollectionWidgetInterop.Init(dxTarget, options); } } } + string accessKey; + [Parameter] + string AccessKey { + get => isInitialized ? (string)DevExpress.Ui.CollectionWidgetInterop.GetAccessKey(dxTarget).Result : accessKey; + set { + if (isInitialized) { + DevExpress.Ui.CollectionWidgetInterop.SetAccessKey(dxTarget, value); + } else { + this.accessKey = value; + } + } + } + bool? activeStateEnabled; + [Parameter] + bool? ActiveStateEnabled { + get => isInitialized ? (bool?)DevExpress.Ui.CollectionWidgetInterop.GetActiveStateEnabled(dxTarget).Result : activeStateEnabled; + set { + if (isInitialized) { + DevExpress.Ui.CollectionWidgetInterop.SetActiveStateEnabled(dxTarget, value); + } else { + this.activeStateEnabled = value; + } + } + } + bool? disabled; + [Parameter] + bool? Disabled { + get => isInitialized ? (bool?)DevExpress.Ui.CollectionWidgetInterop.GetDisabled(dxTarget).Result : disabled; + set { + if (isInitialized) { + DevExpress.Ui.CollectionWidgetInterop.SetDisabled(dxTarget, value); + } else { + this.disabled = value; + } + } + } + bool? focusStateEnabled; + [Parameter] + bool? FocusStateEnabled { + get => isInitialized ? (bool?)DevExpress.Ui.CollectionWidgetInterop.GetFocusStateEnabled(dxTarget).Result : focusStateEnabled; + set { + if (isInitialized) { + DevExpress.Ui.CollectionWidgetInterop.SetFocusStateEnabled(dxTarget, value); + } else { + this.focusStateEnabled = value; + } + } + } + string hint; + [Parameter] + string Hint { + get => isInitialized ? (string)DevExpress.Ui.CollectionWidgetInterop.GetHint(dxTarget).Result : hint; + set { + if (isInitialized) { + DevExpress.Ui.CollectionWidgetInterop.SetHint(dxTarget, value); + } else { + this.hint = value; + } + } + } + bool? hoverStateEnabled; + [Parameter] + bool? HoverStateEnabled { + get => isInitialized ? (bool?)DevExpress.Ui.CollectionWidgetInterop.GetHoverStateEnabled(dxTarget).Result : hoverStateEnabled; + set { + if (isInitialized) { + DevExpress.Ui.CollectionWidgetInterop.SetHoverStateEnabled(dxTarget, value); + } else { + this.hoverStateEnabled = value; + } + } + } + float? tabIndex; + [Parameter] + float? TabIndex { + get => isInitialized ? (float?)DevExpress.Ui.CollectionWidgetInterop.GetTabIndex(dxTarget).Result : tabIndex; + set { + if (isInitialized) { + DevExpress.Ui.CollectionWidgetInterop.SetTabIndex(dxTarget, value); + } else { + this.tabIndex = value; + } + } + } + bool? visible; + [Parameter] + bool? Visible { + get => isInitialized ? (bool?)DevExpress.Ui.CollectionWidgetInterop.GetVisible(dxTarget).Result : visible; + set { + if (isInitialized) { + DevExpress.Ui.CollectionWidgetInterop.SetVisible(dxTarget, value); + } else { + this.visible = value; + } + } + } + object bindingOptions; + [Parameter] + object BindingOptions { + get => isInitialized ? DevExpress.Ui.CollectionWidgetInterop.GetBindingOptions(dxTarget).Result : bindingOptions; + set { + if (isInitialized) { + DevExpress.Ui.CollectionWidgetInterop.SetBindingOptions(dxTarget, value); + } else { + this.bindingOptions = value; + } + } + } + object elementAttr; + [Parameter] + object ElementAttr { + get => isInitialized ? DevExpress.Ui.CollectionWidgetInterop.GetElementAttr(dxTarget).Result : elementAttr; + set { + if (isInitialized) { + DevExpress.Ui.CollectionWidgetInterop.SetElementAttr(dxTarget, value); + } else { + this.elementAttr = value; + } + } + } + object height; + [Parameter] + object Height { + get => isInitialized ? DevExpress.Ui.CollectionWidgetInterop.GetHeight(dxTarget).Result : height; + set { + if (isInitialized) { + DevExpress.Ui.CollectionWidgetInterop.SetHeight(dxTarget, value); + } else { + this.height = value; + } + } + } + bool? rtlEnabled; + [Parameter] + bool? RtlEnabled { + get => isInitialized ? (bool?)DevExpress.Ui.CollectionWidgetInterop.GetRtlEnabled(dxTarget).Result : rtlEnabled; + set { + if (isInitialized) { + DevExpress.Ui.CollectionWidgetInterop.SetRtlEnabled(dxTarget, value); + } else { + this.rtlEnabled = value; + } + } + } + object width; + [Parameter] + object Width { + get => isInitialized ? DevExpress.Ui.CollectionWidgetInterop.GetWidth(dxTarget).Result : width; + set { + if (isInitialized) { + DevExpress.Ui.CollectionWidgetInterop.SetWidth(dxTarget, value); + } else { + this.width = value; + } + } + } bool? onItemClickEnabled; [Parameter] bool? OnItemClickEnabled { @@ -180,6 +353,30 @@ return DevExpress.Ui.CollectionWidgetInterop.Init(dxTarget, options); get => onSelectionChangedEnabled; set => this.onSelectionChangedEnabled = value; } + bool? onContentReadyEnabled; + [Parameter] + bool? OnContentReadyEnabled { + get => onContentReadyEnabled; + set => this.onContentReadyEnabled = value; + } + bool? onDisposingEnabled; + [Parameter] + bool? OnDisposingEnabled { + get => onDisposingEnabled; + set => this.onDisposingEnabled = value; + } + bool? onOptionChangedEnabled; + [Parameter] + bool? OnOptionChangedEnabled { + get => onOptionChangedEnabled; + set => this.onOptionChangedEnabled = value; + } + bool? onInitializedEnabled; + [Parameter] + bool? OnInitializedEnabled { + get => onInitializedEnabled; + set => this.onInitializedEnabled = value; + } protected override async Task OnInitAsync() { await base.OnInitAsync(); DevExpress.Ui.CollectionWidgetInterop.ItemClick += CollectionWidget_ItemClick; @@ -187,6 +384,10 @@ return DevExpress.Ui.CollectionWidgetInterop.Init(dxTarget, options); DevExpress.Ui.CollectionWidgetInterop.ItemHold += CollectionWidget_ItemHold; DevExpress.Ui.CollectionWidgetInterop.ItemRendered += CollectionWidget_ItemRendered; DevExpress.Ui.CollectionWidgetInterop.SelectionChanged += CollectionWidget_SelectionChanged; + DevExpress.Ui.CollectionWidgetInterop.ContentReady += CollectionWidget_ContentReady; + DevExpress.Ui.CollectionWidgetInterop.Disposing += CollectionWidget_Disposing; + DevExpress.Ui.CollectionWidgetInterop.OptionChanged += CollectionWidget_OptionChanged; + DevExpress.Ui.CollectionWidgetInterop.Initialized += CollectionWidget_Initialized; } [Parameter] Action ItemClick { get; set; } @@ -223,6 +424,34 @@ return DevExpress.Ui.CollectionWidgetInterop.Init(dxTarget, options); SelectionChanged?.Invoke(); } } + [Parameter] + Action ContentReady { get; set; } + void CollectionWidget_ContentReady(object sender, JQueryEventArgs e) { + if (e.Identifier == Id) { + ContentReady?.Invoke(); + } + } + [Parameter] + Action Disposing { get; set; } + void CollectionWidget_Disposing(object sender, JQueryEventArgs e) { + if (e.Identifier == Id) { + Disposing?.Invoke(); + } + } + [Parameter] + Action OptionChanged { get; set; } + void CollectionWidget_OptionChanged(object sender, JQueryEventArgs e) { + if (e.Identifier == Id) { + OptionChanged?.Invoke(); + } + } + [Parameter] + Action Initialized { get; set; } + void CollectionWidget_Initialized(object sender, JQueryEventArgs e) { + if (e.Identifier == Id) { + Initialized?.Invoke(); + } + } public object GetDataSourceEx() { return DevExpress.Ui.CollectionWidgetInterop.GetDataSourceEx(dxTarget).Result; } @@ -232,5 +461,9 @@ return DevExpress.Ui.CollectionWidgetInterop.Init(dxTarget, options); DevExpress.Ui.CollectionWidgetInterop.ItemHold -= CollectionWidget_ItemHold; DevExpress.Ui.CollectionWidgetInterop.ItemRendered -= CollectionWidget_ItemRendered; DevExpress.Ui.CollectionWidgetInterop.SelectionChanged -= CollectionWidget_SelectionChanged; + DevExpress.Ui.CollectionWidgetInterop.ContentReady -= CollectionWidget_ContentReady; + DevExpress.Ui.CollectionWidgetInterop.Disposing -= CollectionWidget_Disposing; + DevExpress.Ui.CollectionWidgetInterop.OptionChanged -= CollectionWidget_OptionChanged; + DevExpress.Ui.CollectionWidgetInterop.Initialized -= CollectionWidget_Initialized; } } diff --git a/sources/BlazorDevExtreme/Components/DxAccordion.cshtml b/sources/BlazorDevExtreme/Components/DxAccordion.cshtml index 7fb6ab4..27fa614 100644 --- a/sources/BlazorDevExtreme/Components/DxAccordion.cshtml +++ b/sources/BlazorDevExtreme/Components/DxAccordion.cshtml @@ -20,16 +20,43 @@ itemTitleTemplate = itemTitleTemplate, multiple = multiple, selectedIndex = selectedIndex, + dataSource = dataSource, + itemHoldTimeout = itemHoldTimeout, + items = items, + keyExpr = keyExpr, + noDataText = noDataText, + selectedItem = selectedItem, + selectedItemKeys = selectedItemKeys, + selectedItems = selectedItems, + accessKey = accessKey, + activeStateEnabled = activeStateEnabled, + disabled = disabled, + hint = hint, + tabIndex = tabIndex, + visible = visible, + bindingOptions = bindingOptions, + elementAttr = elementAttr, + rtlEnabled = rtlEnabled, + width = width, onItemTitleClickEnabled = onItemTitleClickEnabled, + onItemClickEnabled = onItemClickEnabled, + onItemContextMenuEnabled = onItemContextMenuEnabled, + onItemHoldEnabled = onItemHoldEnabled, + onItemRenderedEnabled = onItemRenderedEnabled, + onSelectionChangedEnabled = onSelectionChangedEnabled, + onContentReadyEnabled = onContentReadyEnabled, + onDisposingEnabled = onDisposingEnabled, + onOptionChangedEnabled = onOptionChangedEnabled, + onInitializedEnabled = onInitializedEnabled, }; } protected override Task Init(DevExpress.Ui.DxAccordionOptions options) { -return DevExpress.Ui.DxAccordionInterop.Init(dxTarget, options); + return DevExpress.Ui.DxAccordionInterop.Init(dxTarget, options); } float? animationDuration; [Parameter] float? AnimationDuration { - get => isInitialized ? DevExpress.Ui.DxAccordionInterop.GetAnimationDuration(dxTarget).Result : animationDuration; + get => isInitialized ? (float?)DevExpress.Ui.DxAccordionInterop.GetAnimationDuration(dxTarget).Result : animationDuration; set { if (isInitialized) { DevExpress.Ui.DxAccordionInterop.SetAnimationDuration(dxTarget, value); @@ -41,7 +68,7 @@ return DevExpress.Ui.DxAccordionInterop.Init(dxTarget, options); bool? collapsible; [Parameter] bool? Collapsible { - get => isInitialized ? DevExpress.Ui.DxAccordionInterop.GetCollapsible(dxTarget).Result : collapsible; + get => isInitialized ? (bool?)DevExpress.Ui.DxAccordionInterop.GetCollapsible(dxTarget).Result : collapsible; set { if (isInitialized) { DevExpress.Ui.DxAccordionInterop.SetCollapsible(dxTarget, value); @@ -53,7 +80,7 @@ return DevExpress.Ui.DxAccordionInterop.Init(dxTarget, options); bool? deferRendering; [Parameter] bool? DeferRendering { - get => isInitialized ? DevExpress.Ui.DxAccordionInterop.GetDeferRendering(dxTarget).Result : deferRendering; + get => isInitialized ? (bool?)DevExpress.Ui.DxAccordionInterop.GetDeferRendering(dxTarget).Result : deferRendering; set { if (isInitialized) { DevExpress.Ui.DxAccordionInterop.SetDeferRendering(dxTarget, value); @@ -65,7 +92,7 @@ return DevExpress.Ui.DxAccordionInterop.Init(dxTarget, options); bool? focusStateEnabled; [Parameter] bool? FocusStateEnabled { - get => isInitialized ? DevExpress.Ui.DxAccordionInterop.GetFocusStateEnabled(dxTarget).Result : focusStateEnabled; + get => isInitialized ? (bool?)DevExpress.Ui.DxAccordionInterop.GetFocusStateEnabled(dxTarget).Result : focusStateEnabled; set { if (isInitialized) { DevExpress.Ui.DxAccordionInterop.SetFocusStateEnabled(dxTarget, value); @@ -89,7 +116,7 @@ return DevExpress.Ui.DxAccordionInterop.Init(dxTarget, options); bool? hoverStateEnabled; [Parameter] bool? HoverStateEnabled { - get => isInitialized ? DevExpress.Ui.DxAccordionInterop.GetHoverStateEnabled(dxTarget).Result : hoverStateEnabled; + get => isInitialized ? (bool?)DevExpress.Ui.DxAccordionInterop.GetHoverStateEnabled(dxTarget).Result : hoverStateEnabled; set { if (isInitialized) { DevExpress.Ui.DxAccordionInterop.SetHoverStateEnabled(dxTarget, value); @@ -125,7 +152,7 @@ return DevExpress.Ui.DxAccordionInterop.Init(dxTarget, options); bool? multiple; [Parameter] bool? Multiple { - get => isInitialized ? DevExpress.Ui.DxAccordionInterop.GetMultiple(dxTarget).Result : multiple; + get => isInitialized ? (bool?)DevExpress.Ui.DxAccordionInterop.GetMultiple(dxTarget).Result : multiple; set { if (isInitialized) { DevExpress.Ui.DxAccordionInterop.SetMultiple(dxTarget, value); @@ -137,7 +164,7 @@ return DevExpress.Ui.DxAccordionInterop.Init(dxTarget, options); float? selectedIndex; [Parameter] float? SelectedIndex { - get => isInitialized ? DevExpress.Ui.DxAccordionInterop.GetSelectedIndex(dxTarget).Result : selectedIndex; + get => isInitialized ? (float?)DevExpress.Ui.DxAccordionInterop.GetSelectedIndex(dxTarget).Result : selectedIndex; set { if (isInitialized) { DevExpress.Ui.DxAccordionInterop.SetSelectedIndex(dxTarget, value); @@ -146,15 +173,294 @@ return DevExpress.Ui.DxAccordionInterop.Init(dxTarget, options); } } } + object dataSource; + [Parameter] + object DataSource { + get => isInitialized ? DevExpress.Ui.DxAccordionInterop.GetDataSource(dxTarget).Result : dataSource; + set { + if (isInitialized) { + DevExpress.Ui.DxAccordionInterop.SetDataSource(dxTarget, value); + } else { + this.dataSource = value; + } + } + } + float? itemHoldTimeout; + [Parameter] + float? ItemHoldTimeout { + get => isInitialized ? (float?)DevExpress.Ui.DxAccordionInterop.GetItemHoldTimeout(dxTarget).Result : itemHoldTimeout; + set { + if (isInitialized) { + DevExpress.Ui.DxAccordionInterop.SetItemHoldTimeout(dxTarget, value); + } else { + this.itemHoldTimeout = value; + } + } + } + object items; + [Parameter] + object Items { + get => isInitialized ? DevExpress.Ui.DxAccordionInterop.GetItems(dxTarget).Result : items; + set { + if (isInitialized) { + DevExpress.Ui.DxAccordionInterop.SetItems(dxTarget, value); + } else { + this.items = value; + } + } + } + object keyExpr; + [Parameter] + object KeyExpr { + get => isInitialized ? DevExpress.Ui.DxAccordionInterop.GetKeyExpr(dxTarget).Result : keyExpr; + set { + if (isInitialized) { + DevExpress.Ui.DxAccordionInterop.SetKeyExpr(dxTarget, value); + } else { + this.keyExpr = value; + } + } + } + string noDataText; + [Parameter] + string NoDataText { + get => isInitialized ? (string)DevExpress.Ui.DxAccordionInterop.GetNoDataText(dxTarget).Result : noDataText; + set { + if (isInitialized) { + DevExpress.Ui.DxAccordionInterop.SetNoDataText(dxTarget, value); + } else { + this.noDataText = value; + } + } + } + object selectedItem; + [Parameter] + object SelectedItem { + get => isInitialized ? DevExpress.Ui.DxAccordionInterop.GetSelectedItem(dxTarget).Result : selectedItem; + set { + if (isInitialized) { + DevExpress.Ui.DxAccordionInterop.SetSelectedItem(dxTarget, value); + } else { + this.selectedItem = value; + } + } + } + object selectedItemKeys; + [Parameter] + object SelectedItemKeys { + get => isInitialized ? DevExpress.Ui.DxAccordionInterop.GetSelectedItemKeys(dxTarget).Result : selectedItemKeys; + set { + if (isInitialized) { + DevExpress.Ui.DxAccordionInterop.SetSelectedItemKeys(dxTarget, value); + } else { + this.selectedItemKeys = value; + } + } + } + object selectedItems; + [Parameter] + object SelectedItems { + get => isInitialized ? DevExpress.Ui.DxAccordionInterop.GetSelectedItems(dxTarget).Result : selectedItems; + set { + if (isInitialized) { + DevExpress.Ui.DxAccordionInterop.SetSelectedItems(dxTarget, value); + } else { + this.selectedItems = value; + } + } + } + string accessKey; + [Parameter] + string AccessKey { + get => isInitialized ? (string)DevExpress.Ui.DxAccordionInterop.GetAccessKey(dxTarget).Result : accessKey; + set { + if (isInitialized) { + DevExpress.Ui.DxAccordionInterop.SetAccessKey(dxTarget, value); + } else { + this.accessKey = value; + } + } + } + bool? activeStateEnabled; + [Parameter] + bool? ActiveStateEnabled { + get => isInitialized ? (bool?)DevExpress.Ui.DxAccordionInterop.GetActiveStateEnabled(dxTarget).Result : activeStateEnabled; + set { + if (isInitialized) { + DevExpress.Ui.DxAccordionInterop.SetActiveStateEnabled(dxTarget, value); + } else { + this.activeStateEnabled = value; + } + } + } + bool? disabled; + [Parameter] + bool? Disabled { + get => isInitialized ? (bool?)DevExpress.Ui.DxAccordionInterop.GetDisabled(dxTarget).Result : disabled; + set { + if (isInitialized) { + DevExpress.Ui.DxAccordionInterop.SetDisabled(dxTarget, value); + } else { + this.disabled = value; + } + } + } + string hint; + [Parameter] + string Hint { + get => isInitialized ? (string)DevExpress.Ui.DxAccordionInterop.GetHint(dxTarget).Result : hint; + set { + if (isInitialized) { + DevExpress.Ui.DxAccordionInterop.SetHint(dxTarget, value); + } else { + this.hint = value; + } + } + } + float? tabIndex; + [Parameter] + float? TabIndex { + get => isInitialized ? (float?)DevExpress.Ui.DxAccordionInterop.GetTabIndex(dxTarget).Result : tabIndex; + set { + if (isInitialized) { + DevExpress.Ui.DxAccordionInterop.SetTabIndex(dxTarget, value); + } else { + this.tabIndex = value; + } + } + } + bool? visible; + [Parameter] + bool? Visible { + get => isInitialized ? (bool?)DevExpress.Ui.DxAccordionInterop.GetVisible(dxTarget).Result : visible; + set { + if (isInitialized) { + DevExpress.Ui.DxAccordionInterop.SetVisible(dxTarget, value); + } else { + this.visible = value; + } + } + } + object bindingOptions; + [Parameter] + object BindingOptions { + get => isInitialized ? DevExpress.Ui.DxAccordionInterop.GetBindingOptions(dxTarget).Result : bindingOptions; + set { + if (isInitialized) { + DevExpress.Ui.DxAccordionInterop.SetBindingOptions(dxTarget, value); + } else { + this.bindingOptions = value; + } + } + } + object elementAttr; + [Parameter] + object ElementAttr { + get => isInitialized ? DevExpress.Ui.DxAccordionInterop.GetElementAttr(dxTarget).Result : elementAttr; + set { + if (isInitialized) { + DevExpress.Ui.DxAccordionInterop.SetElementAttr(dxTarget, value); + } else { + this.elementAttr = value; + } + } + } + bool? rtlEnabled; + [Parameter] + bool? RtlEnabled { + get => isInitialized ? (bool?)DevExpress.Ui.DxAccordionInterop.GetRtlEnabled(dxTarget).Result : rtlEnabled; + set { + if (isInitialized) { + DevExpress.Ui.DxAccordionInterop.SetRtlEnabled(dxTarget, value); + } else { + this.rtlEnabled = value; + } + } + } + object width; + [Parameter] + object Width { + get => isInitialized ? DevExpress.Ui.DxAccordionInterop.GetWidth(dxTarget).Result : width; + set { + if (isInitialized) { + DevExpress.Ui.DxAccordionInterop.SetWidth(dxTarget, value); + } else { + this.width = value; + } + } + } bool? onItemTitleClickEnabled; [Parameter] bool? OnItemTitleClickEnabled { get => onItemTitleClickEnabled; set => this.onItemTitleClickEnabled = value; } + bool? onItemClickEnabled; + [Parameter] + bool? OnItemClickEnabled { + get => onItemClickEnabled; + set => this.onItemClickEnabled = value; + } + bool? onItemContextMenuEnabled; + [Parameter] + bool? OnItemContextMenuEnabled { + get => onItemContextMenuEnabled; + set => this.onItemContextMenuEnabled = value; + } + bool? onItemHoldEnabled; + [Parameter] + bool? OnItemHoldEnabled { + get => onItemHoldEnabled; + set => this.onItemHoldEnabled = value; + } + bool? onItemRenderedEnabled; + [Parameter] + bool? OnItemRenderedEnabled { + get => onItemRenderedEnabled; + set => this.onItemRenderedEnabled = value; + } + bool? onSelectionChangedEnabled; + [Parameter] + bool? OnSelectionChangedEnabled { + get => onSelectionChangedEnabled; + set => this.onSelectionChangedEnabled = value; + } + bool? onContentReadyEnabled; + [Parameter] + bool? OnContentReadyEnabled { + get => onContentReadyEnabled; + set => this.onContentReadyEnabled = value; + } + bool? onDisposingEnabled; + [Parameter] + bool? OnDisposingEnabled { + get => onDisposingEnabled; + set => this.onDisposingEnabled = value; + } + bool? onOptionChangedEnabled; + [Parameter] + bool? OnOptionChangedEnabled { + get => onOptionChangedEnabled; + set => this.onOptionChangedEnabled = value; + } + bool? onInitializedEnabled; + [Parameter] + bool? OnInitializedEnabled { + get => onInitializedEnabled; + set => this.onInitializedEnabled = value; + } protected override async Task OnInitAsync() { await base.OnInitAsync(); DevExpress.Ui.DxAccordionInterop.ItemTitleClick += DxAccordion_ItemTitleClick; + DevExpress.Ui.DxAccordionInterop.ItemClick += DxAccordion_ItemClick; + DevExpress.Ui.DxAccordionInterop.ItemContextMenu += DxAccordion_ItemContextMenu; + DevExpress.Ui.DxAccordionInterop.ItemHold += DxAccordion_ItemHold; + DevExpress.Ui.DxAccordionInterop.ItemRendered += DxAccordion_ItemRendered; + DevExpress.Ui.DxAccordionInterop.SelectionChanged += DxAccordion_SelectionChanged; + DevExpress.Ui.DxAccordionInterop.ContentReady += DxAccordion_ContentReady; + DevExpress.Ui.DxAccordionInterop.Disposing += DxAccordion_Disposing; + DevExpress.Ui.DxAccordionInterop.OptionChanged += DxAccordion_OptionChanged; + DevExpress.Ui.DxAccordionInterop.Initialized += DxAccordion_Initialized; } [Parameter] Action ItemTitleClick { get; set; } @@ -163,6 +469,69 @@ return DevExpress.Ui.DxAccordionInterop.Init(dxTarget, options); ItemTitleClick?.Invoke(); } } + [Parameter] + Action ItemClick { get; set; } + void DxAccordion_ItemClick(object sender, JQueryEventArgs e) { + if (e.Identifier == Id) { + ItemClick?.Invoke(); + } + } + [Parameter] + Action ItemContextMenu { get; set; } + void DxAccordion_ItemContextMenu(object sender, JQueryEventArgs e) { + if (e.Identifier == Id) { + ItemContextMenu?.Invoke(); + } + } + [Parameter] + Action ItemHold { get; set; } + void DxAccordion_ItemHold(object sender, JQueryEventArgs e) { + if (e.Identifier == Id) { + ItemHold?.Invoke(); + } + } + [Parameter] + Action ItemRendered { get; set; } + void DxAccordion_ItemRendered(object sender, JQueryEventArgs e) { + if (e.Identifier == Id) { + ItemRendered?.Invoke(); + } + } + [Parameter] + Action SelectionChanged { get; set; } + void DxAccordion_SelectionChanged(object sender, JQueryEventArgs e) { + if (e.Identifier == Id) { + SelectionChanged?.Invoke(); + } + } + [Parameter] + Action ContentReady { get; set; } + void DxAccordion_ContentReady(object sender, JQueryEventArgs e) { + if (e.Identifier == Id) { + ContentReady?.Invoke(); + } + } + [Parameter] + Action Disposing { get; set; } + void DxAccordion_Disposing(object sender, JQueryEventArgs e) { + if (e.Identifier == Id) { + Disposing?.Invoke(); + } + } + [Parameter] + Action OptionChanged { get; set; } + void DxAccordion_OptionChanged(object sender, JQueryEventArgs e) { + if (e.Identifier == Id) { + OptionChanged?.Invoke(); + } + } + [Parameter] + Action Initialized { get; set; } + void DxAccordion_Initialized(object sender, JQueryEventArgs e) { + if (e.Identifier == Id) { + Initialized?.Invoke(); + } + } public object CollapseItem(float index) { return DevExpress.Ui.DxAccordionInterop.CollapseItem(dxTarget, index).Result; } @@ -174,5 +543,14 @@ return DevExpress.Ui.DxAccordionInterop.Init(dxTarget, options); } public void Dispose() { DevExpress.Ui.DxAccordionInterop.ItemTitleClick -= DxAccordion_ItemTitleClick; + DevExpress.Ui.DxAccordionInterop.ItemClick -= DxAccordion_ItemClick; + DevExpress.Ui.DxAccordionInterop.ItemContextMenu -= DxAccordion_ItemContextMenu; + DevExpress.Ui.DxAccordionInterop.ItemHold -= DxAccordion_ItemHold; + DevExpress.Ui.DxAccordionInterop.ItemRendered -= DxAccordion_ItemRendered; + DevExpress.Ui.DxAccordionInterop.SelectionChanged -= DxAccordion_SelectionChanged; + DevExpress.Ui.DxAccordionInterop.ContentReady -= DxAccordion_ContentReady; + DevExpress.Ui.DxAccordionInterop.Disposing -= DxAccordion_Disposing; + DevExpress.Ui.DxAccordionInterop.OptionChanged -= DxAccordion_OptionChanged; + DevExpress.Ui.DxAccordionInterop.Initialized -= DxAccordion_Initialized; } } diff --git a/sources/BlazorDevExtreme/Components/DxActionSheet.cshtml b/sources/BlazorDevExtreme/Components/DxActionSheet.cshtml index adac969..0315020 100644 --- a/sources/BlazorDevExtreme/Components/DxActionSheet.cshtml +++ b/sources/BlazorDevExtreme/Components/DxActionSheet.cshtml @@ -17,16 +17,47 @@ title = title, usePopover = usePopover, visible = visible, + dataSource = dataSource, + itemHoldTimeout = itemHoldTimeout, + items = items, + itemTemplate = itemTemplate, + keyExpr = keyExpr, + noDataText = noDataText, + selectedIndex = selectedIndex, + selectedItem = selectedItem, + selectedItemKeys = selectedItemKeys, + selectedItems = selectedItems, + accessKey = accessKey, + activeStateEnabled = activeStateEnabled, + disabled = disabled, + focusStateEnabled = focusStateEnabled, + hint = hint, + hoverStateEnabled = hoverStateEnabled, + tabIndex = tabIndex, + bindingOptions = bindingOptions, + elementAttr = elementAttr, + height = height, + rtlEnabled = rtlEnabled, + width = width, onCancelClickEnabled = onCancelClickEnabled, + onItemClickEnabled = onItemClickEnabled, + onItemContextMenuEnabled = onItemContextMenuEnabled, + onItemHoldEnabled = onItemHoldEnabled, + onItemRenderedEnabled = onItemRenderedEnabled, + onSelectionChangedEnabled = onSelectionChangedEnabled, + onContentReadyEnabled = onContentReadyEnabled, + onDisposingEnabled = onDisposingEnabled, + onOptionChangedEnabled = onOptionChangedEnabled, + onInitializedEnabled = onInitializedEnabled, }; } protected override Task Init(DevExpress.Ui.DxActionSheetOptions options) { -return DevExpress.Ui.DxActionSheetInterop.Init(dxTarget, options); + return DevExpress.Ui.DxActionSheetInterop.Init(dxTarget, options); } string cancelText; [Parameter] string CancelText { - get => isInitialized ? DevExpress.Ui.DxActionSheetInterop.GetCancelText(dxTarget).Result : cancelText; + get => isInitialized ? (string)DevExpress.Ui.DxActionSheetInterop.GetCancelText(dxTarget).Result : cancelText; set { if (isInitialized) { DevExpress.Ui.DxActionSheetInterop.SetCancelText(dxTarget, value); @@ -38,7 +69,7 @@ return DevExpress.Ui.DxActionSheetInterop.Init(dxTarget, options); bool? showCancelButton; [Parameter] bool? ShowCancelButton { - get => isInitialized ? DevExpress.Ui.DxActionSheetInterop.GetShowCancelButton(dxTarget).Result : showCancelButton; + get => isInitialized ? (bool?)DevExpress.Ui.DxActionSheetInterop.GetShowCancelButton(dxTarget).Result : showCancelButton; set { if (isInitialized) { DevExpress.Ui.DxActionSheetInterop.SetShowCancelButton(dxTarget, value); @@ -50,7 +81,7 @@ return DevExpress.Ui.DxActionSheetInterop.Init(dxTarget, options); bool? showTitle; [Parameter] bool? ShowTitle { - get => isInitialized ? DevExpress.Ui.DxActionSheetInterop.GetShowTitle(dxTarget).Result : showTitle; + get => isInitialized ? (bool?)DevExpress.Ui.DxActionSheetInterop.GetShowTitle(dxTarget).Result : showTitle; set { if (isInitialized) { DevExpress.Ui.DxActionSheetInterop.SetShowTitle(dxTarget, value); @@ -74,7 +105,7 @@ return DevExpress.Ui.DxActionSheetInterop.Init(dxTarget, options); string title; [Parameter] string Title { - get => isInitialized ? DevExpress.Ui.DxActionSheetInterop.GetTitle(dxTarget).Result : title; + get => isInitialized ? (string)DevExpress.Ui.DxActionSheetInterop.GetTitle(dxTarget).Result : title; set { if (isInitialized) { DevExpress.Ui.DxActionSheetInterop.SetTitle(dxTarget, value); @@ -86,7 +117,7 @@ return DevExpress.Ui.DxActionSheetInterop.Init(dxTarget, options); bool? usePopover; [Parameter] bool? UsePopover { - get => isInitialized ? DevExpress.Ui.DxActionSheetInterop.GetUsePopover(dxTarget).Result : usePopover; + get => isInitialized ? (bool?)DevExpress.Ui.DxActionSheetInterop.GetUsePopover(dxTarget).Result : usePopover; set { if (isInitialized) { DevExpress.Ui.DxActionSheetInterop.SetUsePopover(dxTarget, value); @@ -98,7 +129,7 @@ return DevExpress.Ui.DxActionSheetInterop.Init(dxTarget, options); bool? visible; [Parameter] bool? Visible { - get => isInitialized ? DevExpress.Ui.DxActionSheetInterop.GetVisible(dxTarget).Result : visible; + get => isInitialized ? (bool?)DevExpress.Ui.DxActionSheetInterop.GetVisible(dxTarget).Result : visible; set { if (isInitialized) { DevExpress.Ui.DxActionSheetInterop.SetVisible(dxTarget, value); @@ -107,15 +138,342 @@ return DevExpress.Ui.DxActionSheetInterop.Init(dxTarget, options); } } } + object dataSource; + [Parameter] + object DataSource { + get => isInitialized ? DevExpress.Ui.DxActionSheetInterop.GetDataSource(dxTarget).Result : dataSource; + set { + if (isInitialized) { + DevExpress.Ui.DxActionSheetInterop.SetDataSource(dxTarget, value); + } else { + this.dataSource = value; + } + } + } + float? itemHoldTimeout; + [Parameter] + float? ItemHoldTimeout { + get => isInitialized ? (float?)DevExpress.Ui.DxActionSheetInterop.GetItemHoldTimeout(dxTarget).Result : itemHoldTimeout; + set { + if (isInitialized) { + DevExpress.Ui.DxActionSheetInterop.SetItemHoldTimeout(dxTarget, value); + } else { + this.itemHoldTimeout = value; + } + } + } + object items; + [Parameter] + object Items { + get => isInitialized ? DevExpress.Ui.DxActionSheetInterop.GetItems(dxTarget).Result : items; + set { + if (isInitialized) { + DevExpress.Ui.DxActionSheetInterop.SetItems(dxTarget, value); + } else { + this.items = value; + } + } + } + object itemTemplate; + [Parameter] + object ItemTemplate { + get => isInitialized ? DevExpress.Ui.DxActionSheetInterop.GetItemTemplate(dxTarget).Result : itemTemplate; + set { + if (isInitialized) { + DevExpress.Ui.DxActionSheetInterop.SetItemTemplate(dxTarget, value); + } else { + this.itemTemplate = value; + } + } + } + object keyExpr; + [Parameter] + object KeyExpr { + get => isInitialized ? DevExpress.Ui.DxActionSheetInterop.GetKeyExpr(dxTarget).Result : keyExpr; + set { + if (isInitialized) { + DevExpress.Ui.DxActionSheetInterop.SetKeyExpr(dxTarget, value); + } else { + this.keyExpr = value; + } + } + } + string noDataText; + [Parameter] + string NoDataText { + get => isInitialized ? (string)DevExpress.Ui.DxActionSheetInterop.GetNoDataText(dxTarget).Result : noDataText; + set { + if (isInitialized) { + DevExpress.Ui.DxActionSheetInterop.SetNoDataText(dxTarget, value); + } else { + this.noDataText = value; + } + } + } + float? selectedIndex; + [Parameter] + float? SelectedIndex { + get => isInitialized ? (float?)DevExpress.Ui.DxActionSheetInterop.GetSelectedIndex(dxTarget).Result : selectedIndex; + set { + if (isInitialized) { + DevExpress.Ui.DxActionSheetInterop.SetSelectedIndex(dxTarget, value); + } else { + this.selectedIndex = value; + } + } + } + object selectedItem; + [Parameter] + object SelectedItem { + get => isInitialized ? DevExpress.Ui.DxActionSheetInterop.GetSelectedItem(dxTarget).Result : selectedItem; + set { + if (isInitialized) { + DevExpress.Ui.DxActionSheetInterop.SetSelectedItem(dxTarget, value); + } else { + this.selectedItem = value; + } + } + } + object selectedItemKeys; + [Parameter] + object SelectedItemKeys { + get => isInitialized ? DevExpress.Ui.DxActionSheetInterop.GetSelectedItemKeys(dxTarget).Result : selectedItemKeys; + set { + if (isInitialized) { + DevExpress.Ui.DxActionSheetInterop.SetSelectedItemKeys(dxTarget, value); + } else { + this.selectedItemKeys = value; + } + } + } + object selectedItems; + [Parameter] + object SelectedItems { + get => isInitialized ? DevExpress.Ui.DxActionSheetInterop.GetSelectedItems(dxTarget).Result : selectedItems; + set { + if (isInitialized) { + DevExpress.Ui.DxActionSheetInterop.SetSelectedItems(dxTarget, value); + } else { + this.selectedItems = value; + } + } + } + string accessKey; + [Parameter] + string AccessKey { + get => isInitialized ? (string)DevExpress.Ui.DxActionSheetInterop.GetAccessKey(dxTarget).Result : accessKey; + set { + if (isInitialized) { + DevExpress.Ui.DxActionSheetInterop.SetAccessKey(dxTarget, value); + } else { + this.accessKey = value; + } + } + } + bool? activeStateEnabled; + [Parameter] + bool? ActiveStateEnabled { + get => isInitialized ? (bool?)DevExpress.Ui.DxActionSheetInterop.GetActiveStateEnabled(dxTarget).Result : activeStateEnabled; + set { + if (isInitialized) { + DevExpress.Ui.DxActionSheetInterop.SetActiveStateEnabled(dxTarget, value); + } else { + this.activeStateEnabled = value; + } + } + } + bool? disabled; + [Parameter] + bool? Disabled { + get => isInitialized ? (bool?)DevExpress.Ui.DxActionSheetInterop.GetDisabled(dxTarget).Result : disabled; + set { + if (isInitialized) { + DevExpress.Ui.DxActionSheetInterop.SetDisabled(dxTarget, value); + } else { + this.disabled = value; + } + } + } + bool? focusStateEnabled; + [Parameter] + bool? FocusStateEnabled { + get => isInitialized ? (bool?)DevExpress.Ui.DxActionSheetInterop.GetFocusStateEnabled(dxTarget).Result : focusStateEnabled; + set { + if (isInitialized) { + DevExpress.Ui.DxActionSheetInterop.SetFocusStateEnabled(dxTarget, value); + } else { + this.focusStateEnabled = value; + } + } + } + string hint; + [Parameter] + string Hint { + get => isInitialized ? (string)DevExpress.Ui.DxActionSheetInterop.GetHint(dxTarget).Result : hint; + set { + if (isInitialized) { + DevExpress.Ui.DxActionSheetInterop.SetHint(dxTarget, value); + } else { + this.hint = value; + } + } + } + bool? hoverStateEnabled; + [Parameter] + bool? HoverStateEnabled { + get => isInitialized ? (bool?)DevExpress.Ui.DxActionSheetInterop.GetHoverStateEnabled(dxTarget).Result : hoverStateEnabled; + set { + if (isInitialized) { + DevExpress.Ui.DxActionSheetInterop.SetHoverStateEnabled(dxTarget, value); + } else { + this.hoverStateEnabled = value; + } + } + } + float? tabIndex; + [Parameter] + float? TabIndex { + get => isInitialized ? (float?)DevExpress.Ui.DxActionSheetInterop.GetTabIndex(dxTarget).Result : tabIndex; + set { + if (isInitialized) { + DevExpress.Ui.DxActionSheetInterop.SetTabIndex(dxTarget, value); + } else { + this.tabIndex = value; + } + } + } + object bindingOptions; + [Parameter] + object BindingOptions { + get => isInitialized ? DevExpress.Ui.DxActionSheetInterop.GetBindingOptions(dxTarget).Result : bindingOptions; + set { + if (isInitialized) { + DevExpress.Ui.DxActionSheetInterop.SetBindingOptions(dxTarget, value); + } else { + this.bindingOptions = value; + } + } + } + object elementAttr; + [Parameter] + object ElementAttr { + get => isInitialized ? DevExpress.Ui.DxActionSheetInterop.GetElementAttr(dxTarget).Result : elementAttr; + set { + if (isInitialized) { + DevExpress.Ui.DxActionSheetInterop.SetElementAttr(dxTarget, value); + } else { + this.elementAttr = value; + } + } + } + object height; + [Parameter] + object Height { + get => isInitialized ? DevExpress.Ui.DxActionSheetInterop.GetHeight(dxTarget).Result : height; + set { + if (isInitialized) { + DevExpress.Ui.DxActionSheetInterop.SetHeight(dxTarget, value); + } else { + this.height = value; + } + } + } + bool? rtlEnabled; + [Parameter] + bool? RtlEnabled { + get => isInitialized ? (bool?)DevExpress.Ui.DxActionSheetInterop.GetRtlEnabled(dxTarget).Result : rtlEnabled; + set { + if (isInitialized) { + DevExpress.Ui.DxActionSheetInterop.SetRtlEnabled(dxTarget, value); + } else { + this.rtlEnabled = value; + } + } + } + object width; + [Parameter] + object Width { + get => isInitialized ? DevExpress.Ui.DxActionSheetInterop.GetWidth(dxTarget).Result : width; + set { + if (isInitialized) { + DevExpress.Ui.DxActionSheetInterop.SetWidth(dxTarget, value); + } else { + this.width = value; + } + } + } bool? onCancelClickEnabled; [Parameter] bool? OnCancelClickEnabled { get => onCancelClickEnabled; set => this.onCancelClickEnabled = value; } + bool? onItemClickEnabled; + [Parameter] + bool? OnItemClickEnabled { + get => onItemClickEnabled; + set => this.onItemClickEnabled = value; + } + bool? onItemContextMenuEnabled; + [Parameter] + bool? OnItemContextMenuEnabled { + get => onItemContextMenuEnabled; + set => this.onItemContextMenuEnabled = value; + } + bool? onItemHoldEnabled; + [Parameter] + bool? OnItemHoldEnabled { + get => onItemHoldEnabled; + set => this.onItemHoldEnabled = value; + } + bool? onItemRenderedEnabled; + [Parameter] + bool? OnItemRenderedEnabled { + get => onItemRenderedEnabled; + set => this.onItemRenderedEnabled = value; + } + bool? onSelectionChangedEnabled; + [Parameter] + bool? OnSelectionChangedEnabled { + get => onSelectionChangedEnabled; + set => this.onSelectionChangedEnabled = value; + } + bool? onContentReadyEnabled; + [Parameter] + bool? OnContentReadyEnabled { + get => onContentReadyEnabled; + set => this.onContentReadyEnabled = value; + } + bool? onDisposingEnabled; + [Parameter] + bool? OnDisposingEnabled { + get => onDisposingEnabled; + set => this.onDisposingEnabled = value; + } + bool? onOptionChangedEnabled; + [Parameter] + bool? OnOptionChangedEnabled { + get => onOptionChangedEnabled; + set => this.onOptionChangedEnabled = value; + } + bool? onInitializedEnabled; + [Parameter] + bool? OnInitializedEnabled { + get => onInitializedEnabled; + set => this.onInitializedEnabled = value; + } protected override async Task OnInitAsync() { await base.OnInitAsync(); DevExpress.Ui.DxActionSheetInterop.CancelClick += DxActionSheet_CancelClick; + DevExpress.Ui.DxActionSheetInterop.ItemClick += DxActionSheet_ItemClick; + DevExpress.Ui.DxActionSheetInterop.ItemContextMenu += DxActionSheet_ItemContextMenu; + DevExpress.Ui.DxActionSheetInterop.ItemHold += DxActionSheet_ItemHold; + DevExpress.Ui.DxActionSheetInterop.ItemRendered += DxActionSheet_ItemRendered; + DevExpress.Ui.DxActionSheetInterop.SelectionChanged += DxActionSheet_SelectionChanged; + DevExpress.Ui.DxActionSheetInterop.ContentReady += DxActionSheet_ContentReady; + DevExpress.Ui.DxActionSheetInterop.Disposing += DxActionSheet_Disposing; + DevExpress.Ui.DxActionSheetInterop.OptionChanged += DxActionSheet_OptionChanged; + DevExpress.Ui.DxActionSheetInterop.Initialized += DxActionSheet_Initialized; } [Parameter] Action CancelClick { get; set; } @@ -124,6 +482,69 @@ return DevExpress.Ui.DxActionSheetInterop.Init(dxTarget, options); CancelClick?.Invoke(); } } + [Parameter] + Action ItemClick { get; set; } + void DxActionSheet_ItemClick(object sender, JQueryEventArgs e) { + if (e.Identifier == Id) { + ItemClick?.Invoke(); + } + } + [Parameter] + Action ItemContextMenu { get; set; } + void DxActionSheet_ItemContextMenu(object sender, JQueryEventArgs e) { + if (e.Identifier == Id) { + ItemContextMenu?.Invoke(); + } + } + [Parameter] + Action ItemHold { get; set; } + void DxActionSheet_ItemHold(object sender, JQueryEventArgs e) { + if (e.Identifier == Id) { + ItemHold?.Invoke(); + } + } + [Parameter] + Action ItemRendered { get; set; } + void DxActionSheet_ItemRendered(object sender, JQueryEventArgs e) { + if (e.Identifier == Id) { + ItemRendered?.Invoke(); + } + } + [Parameter] + Action SelectionChanged { get; set; } + void DxActionSheet_SelectionChanged(object sender, JQueryEventArgs e) { + if (e.Identifier == Id) { + SelectionChanged?.Invoke(); + } + } + [Parameter] + Action ContentReady { get; set; } + void DxActionSheet_ContentReady(object sender, JQueryEventArgs e) { + if (e.Identifier == Id) { + ContentReady?.Invoke(); + } + } + [Parameter] + Action Disposing { get; set; } + void DxActionSheet_Disposing(object sender, JQueryEventArgs e) { + if (e.Identifier == Id) { + Disposing?.Invoke(); + } + } + [Parameter] + Action OptionChanged { get; set; } + void DxActionSheet_OptionChanged(object sender, JQueryEventArgs e) { + if (e.Identifier == Id) { + OptionChanged?.Invoke(); + } + } + [Parameter] + Action Initialized { get; set; } + void DxActionSheet_Initialized(object sender, JQueryEventArgs e) { + if (e.Identifier == Id) { + Initialized?.Invoke(); + } + } public object Hide() { return DevExpress.Ui.DxActionSheetInterop.Hide(dxTarget).Result; } @@ -135,5 +556,14 @@ return DevExpress.Ui.DxActionSheetInterop.Init(dxTarget, options); } public void Dispose() { DevExpress.Ui.DxActionSheetInterop.CancelClick -= DxActionSheet_CancelClick; + DevExpress.Ui.DxActionSheetInterop.ItemClick -= DxActionSheet_ItemClick; + DevExpress.Ui.DxActionSheetInterop.ItemContextMenu -= DxActionSheet_ItemContextMenu; + DevExpress.Ui.DxActionSheetInterop.ItemHold -= DxActionSheet_ItemHold; + DevExpress.Ui.DxActionSheetInterop.ItemRendered -= DxActionSheet_ItemRendered; + DevExpress.Ui.DxActionSheetInterop.SelectionChanged -= DxActionSheet_SelectionChanged; + DevExpress.Ui.DxActionSheetInterop.ContentReady -= DxActionSheet_ContentReady; + DevExpress.Ui.DxActionSheetInterop.Disposing -= DxActionSheet_Disposing; + DevExpress.Ui.DxActionSheetInterop.OptionChanged -= DxActionSheet_OptionChanged; + DevExpress.Ui.DxActionSheetInterop.Initialized -= DxActionSheet_Initialized; } } diff --git a/sources/BlazorDevExtreme/Components/DxAutocomplete.cshtml b/sources/BlazorDevExtreme/Components/DxAutocomplete.cshtml index f4f9969..c4b28fd 100644 --- a/sources/BlazorDevExtreme/Components/DxAutocomplete.cshtml +++ b/sources/BlazorDevExtreme/Components/DxAutocomplete.cshtml @@ -13,15 +13,87 @@ maxItemCount = maxItemCount, minSearchLength = minSearchLength, value = value, + displayValue = displayValue, + grouped = grouped, + groupTemplate = groupTemplate, + noDataText = noDataText, + searchEnabled = searchEnabled, + searchExpr = searchExpr, + searchMode = searchMode, + searchTimeout = searchTimeout, + selectedItem = selectedItem, + showDataBeforeSearch = showDataBeforeSearch, + valueChangeEvent = valueChangeEvent, + acceptCustomValue = acceptCustomValue, + activeStateEnabled = activeStateEnabled, + applyValueMode = applyValueMode, + deferRendering = deferRendering, + dropDownButtonTemplate = dropDownButtonTemplate, + opened = isOpened, + maxLength = maxLength, + mode = mode, + focusStateEnabled = focusStateEnabled, + hoverStateEnabled = hoverStateEnabled, + inputAttr = inputAttr, + mask = mask, + maskChar = maskChar, + maskInvalidMessage = maskInvalidMessage, + maskRules = maskRules, + name = name, + placeholder = placeholder, + showClearButton = showClearButton, + showMaskMode = showMaskMode, + spellcheck = spellcheck, + text = text, + useMaskedValue = useMaskedValue, + isValid = isValid, + readOnly = readOnly, + validationError = validationError, + validationMessageMode = validationMessageMode, + accessKey = accessKey, + disabled = disabled, + hint = hint, + tabIndex = tabIndex, + visible = visible, + bindingOptions = bindingOptions, + elementAttr = elementAttr, + height = height, + rtlEnabled = rtlEnabled, + width = width, + dataSource = dataSource, + displayExpr = displayExpr, + items = items, + itemTemplate = itemTemplate, + valueExpr = valueExpr, + onItemClickEnabled = onItemClickEnabled, + onSelectionChangedEnabled = onSelectionChangedEnabled, + onValueChangedEnabled = onValueChangedEnabled, + onClosedEnabled = onClosedEnabled, + onOpenedEnabled = onOpenedEnabled, + onChangeEnabled = onChangeEnabled, + onCopyEnabled = onCopyEnabled, + onCutEnabled = onCutEnabled, + onEnterKeyEnabled = onEnterKeyEnabled, + onFocusInEnabled = onFocusInEnabled, + onFocusOutEnabled = onFocusOutEnabled, + onInputEnabled = onInputEnabled, + onKeyDownEnabled = onKeyDownEnabled, + onKeyPressEnabled = onKeyPressEnabled, + onKeyUpEnabled = onKeyUpEnabled, + onPasteEnabled = onPasteEnabled, + onContentReadyEnabled = onContentReadyEnabled, + onDisposingEnabled = onDisposingEnabled, + onOptionChangedEnabled = onOptionChangedEnabled, + onInitializedEnabled = onInitializedEnabled, }; } protected override Task Init(DevExpress.Ui.DxAutocompleteOptions options) { -return DevExpress.Ui.DxAutocompleteInterop.Init(dxTarget, options); + return DevExpress.Ui.DxAutocompleteInterop.Init(dxTarget, options); } float? maxItemCount; [Parameter] float? MaxItemCount { - get => isInitialized ? DevExpress.Ui.DxAutocompleteInterop.GetMaxItemCount(dxTarget).Result : maxItemCount; + get => isInitialized ? (float?)DevExpress.Ui.DxAutocompleteInterop.GetMaxItemCount(dxTarget).Result : maxItemCount; set { if (isInitialized) { DevExpress.Ui.DxAutocompleteInterop.SetMaxItemCount(dxTarget, value); @@ -33,7 +105,7 @@ return DevExpress.Ui.DxAutocompleteInterop.Init(dxTarget, options); float? minSearchLength; [Parameter] float? MinSearchLength { - get => isInitialized ? DevExpress.Ui.DxAutocompleteInterop.GetMinSearchLength(dxTarget).Result : minSearchLength; + get => isInitialized ? (float?)DevExpress.Ui.DxAutocompleteInterop.GetMinSearchLength(dxTarget).Result : minSearchLength; set { if (isInitialized) { DevExpress.Ui.DxAutocompleteInterop.SetMinSearchLength(dxTarget, value); @@ -45,7 +117,7 @@ return DevExpress.Ui.DxAutocompleteInterop.Init(dxTarget, options); string value; [Parameter] string Value { - get => isInitialized ? DevExpress.Ui.DxAutocompleteInterop.GetValue(dxTarget).Result : value; + get => isInitialized ? (string)DevExpress.Ui.DxAutocompleteInterop.GetValue(dxTarget).Result : value; set { if (isInitialized) { DevExpress.Ui.DxAutocompleteInterop.SetValue(dxTarget, value); @@ -54,9 +126,933 @@ return DevExpress.Ui.DxAutocompleteInterop.Init(dxTarget, options); } } } + string displayValue; + [Parameter] + string DisplayValue { + get => isInitialized ? (string)DevExpress.Ui.DxAutocompleteInterop.GetDisplayValue(dxTarget).Result : displayValue; + set { + if (isInitialized) { + DevExpress.Ui.DxAutocompleteInterop.SetDisplayValue(dxTarget, value); + } else { + this.displayValue = value; + } + } + } + bool? grouped; + [Parameter] + bool? Grouped { + get => isInitialized ? (bool?)DevExpress.Ui.DxAutocompleteInterop.GetGrouped(dxTarget).Result : grouped; + set { + if (isInitialized) { + DevExpress.Ui.DxAutocompleteInterop.SetGrouped(dxTarget, value); + } else { + this.grouped = value; + } + } + } + object groupTemplate; + [Parameter] + object GroupTemplate { + get => isInitialized ? DevExpress.Ui.DxAutocompleteInterop.GetGroupTemplate(dxTarget).Result : groupTemplate; + set { + if (isInitialized) { + DevExpress.Ui.DxAutocompleteInterop.SetGroupTemplate(dxTarget, value); + } else { + this.groupTemplate = value; + } + } + } + string noDataText; + [Parameter] + string NoDataText { + get => isInitialized ? (string)DevExpress.Ui.DxAutocompleteInterop.GetNoDataText(dxTarget).Result : noDataText; + set { + if (isInitialized) { + DevExpress.Ui.DxAutocompleteInterop.SetNoDataText(dxTarget, value); + } else { + this.noDataText = value; + } + } + } + bool? searchEnabled; + [Parameter] + bool? SearchEnabled { + get => isInitialized ? (bool?)DevExpress.Ui.DxAutocompleteInterop.GetSearchEnabled(dxTarget).Result : searchEnabled; + set { + if (isInitialized) { + DevExpress.Ui.DxAutocompleteInterop.SetSearchEnabled(dxTarget, value); + } else { + this.searchEnabled = value; + } + } + } + object searchExpr; + [Parameter] + object SearchExpr { + get => isInitialized ? DevExpress.Ui.DxAutocompleteInterop.GetSearchExpr(dxTarget).Result : searchExpr; + set { + if (isInitialized) { + DevExpress.Ui.DxAutocompleteInterop.SetSearchExpr(dxTarget, value); + } else { + this.searchExpr = value; + } + } + } + string searchMode; + [Parameter] + string SearchMode { + get => isInitialized ? (string)DevExpress.Ui.DxAutocompleteInterop.GetSearchMode(dxTarget).Result : searchMode; + set { + if (isInitialized) { + DevExpress.Ui.DxAutocompleteInterop.SetSearchMode(dxTarget, value); + } else { + this.searchMode = value; + } + } + } + float? searchTimeout; + [Parameter] + float? SearchTimeout { + get => isInitialized ? (float?)DevExpress.Ui.DxAutocompleteInterop.GetSearchTimeout(dxTarget).Result : searchTimeout; + set { + if (isInitialized) { + DevExpress.Ui.DxAutocompleteInterop.SetSearchTimeout(dxTarget, value); + } else { + this.searchTimeout = value; + } + } + } + object selectedItem; + [Parameter] + object SelectedItem { + get => isInitialized ? DevExpress.Ui.DxAutocompleteInterop.GetSelectedItem(dxTarget).Result : selectedItem; + set { + if (isInitialized) { + DevExpress.Ui.DxAutocompleteInterop.SetSelectedItem(dxTarget, value); + } else { + this.selectedItem = value; + } + } + } + bool? showDataBeforeSearch; + [Parameter] + bool? ShowDataBeforeSearch { + get => isInitialized ? (bool?)DevExpress.Ui.DxAutocompleteInterop.GetShowDataBeforeSearch(dxTarget).Result : showDataBeforeSearch; + set { + if (isInitialized) { + DevExpress.Ui.DxAutocompleteInterop.SetShowDataBeforeSearch(dxTarget, value); + } else { + this.showDataBeforeSearch = value; + } + } + } + string valueChangeEvent; + [Parameter] + string ValueChangeEvent { + get => isInitialized ? (string)DevExpress.Ui.DxAutocompleteInterop.GetValueChangeEvent(dxTarget).Result : valueChangeEvent; + set { + if (isInitialized) { + DevExpress.Ui.DxAutocompleteInterop.SetValueChangeEvent(dxTarget, value); + } else { + this.valueChangeEvent = value; + } + } + } + bool? acceptCustomValue; + [Parameter] + bool? AcceptCustomValue { + get => isInitialized ? (bool?)DevExpress.Ui.DxAutocompleteInterop.GetAcceptCustomValue(dxTarget).Result : acceptCustomValue; + set { + if (isInitialized) { + DevExpress.Ui.DxAutocompleteInterop.SetAcceptCustomValue(dxTarget, value); + } else { + this.acceptCustomValue = value; + } + } + } + bool? activeStateEnabled; + [Parameter] + bool? ActiveStateEnabled { + get => isInitialized ? (bool?)DevExpress.Ui.DxAutocompleteInterop.GetActiveStateEnabled(dxTarget).Result : activeStateEnabled; + set { + if (isInitialized) { + DevExpress.Ui.DxAutocompleteInterop.SetActiveStateEnabled(dxTarget, value); + } else { + this.activeStateEnabled = value; + } + } + } + string applyValueMode; + [Parameter] + string ApplyValueMode { + get => isInitialized ? (string)DevExpress.Ui.DxAutocompleteInterop.GetApplyValueMode(dxTarget).Result : applyValueMode; + set { + if (isInitialized) { + DevExpress.Ui.DxAutocompleteInterop.SetApplyValueMode(dxTarget, value); + } else { + this.applyValueMode = value; + } + } + } + bool? deferRendering; + [Parameter] + bool? DeferRendering { + get => isInitialized ? (bool?)DevExpress.Ui.DxAutocompleteInterop.GetDeferRendering(dxTarget).Result : deferRendering; + set { + if (isInitialized) { + DevExpress.Ui.DxAutocompleteInterop.SetDeferRendering(dxTarget, value); + } else { + this.deferRendering = value; + } + } + } + object dropDownButtonTemplate; + [Parameter] + object DropDownButtonTemplate { + get => isInitialized ? DevExpress.Ui.DxAutocompleteInterop.GetDropDownButtonTemplate(dxTarget).Result : dropDownButtonTemplate; + set { + if (isInitialized) { + DevExpress.Ui.DxAutocompleteInterop.SetDropDownButtonTemplate(dxTarget, value); + } else { + this.dropDownButtonTemplate = value; + } + } + } + bool? isOpened; + [Parameter] + bool? IsOpened { + get => isInitialized ? (bool?)DevExpress.Ui.DxAutocompleteInterop.GetOpened(dxTarget).Result : isOpened; + set { + if (isInitialized) { + DevExpress.Ui.DxAutocompleteInterop.SetOpened(dxTarget, value); + } else { + this.isOpened = value; + } + } + } + object maxLength; + [Parameter] + object MaxLength { + get => isInitialized ? DevExpress.Ui.DxAutocompleteInterop.GetMaxLength(dxTarget).Result : maxLength; + set { + if (isInitialized) { + DevExpress.Ui.DxAutocompleteInterop.SetMaxLength(dxTarget, value); + } else { + this.maxLength = value; + } + } + } + string mode; + [Parameter] + string Mode { + get => isInitialized ? (string)DevExpress.Ui.DxAutocompleteInterop.GetMode(dxTarget).Result : mode; + set { + if (isInitialized) { + DevExpress.Ui.DxAutocompleteInterop.SetMode(dxTarget, value); + } else { + this.mode = value; + } + } + } + bool? focusStateEnabled; + [Parameter] + bool? FocusStateEnabled { + get => isInitialized ? (bool?)DevExpress.Ui.DxAutocompleteInterop.GetFocusStateEnabled(dxTarget).Result : focusStateEnabled; + set { + if (isInitialized) { + DevExpress.Ui.DxAutocompleteInterop.SetFocusStateEnabled(dxTarget, value); + } else { + this.focusStateEnabled = value; + } + } + } + bool? hoverStateEnabled; + [Parameter] + bool? HoverStateEnabled { + get => isInitialized ? (bool?)DevExpress.Ui.DxAutocompleteInterop.GetHoverStateEnabled(dxTarget).Result : hoverStateEnabled; + set { + if (isInitialized) { + DevExpress.Ui.DxAutocompleteInterop.SetHoverStateEnabled(dxTarget, value); + } else { + this.hoverStateEnabled = value; + } + } + } + object inputAttr; + [Parameter] + object InputAttr { + get => isInitialized ? DevExpress.Ui.DxAutocompleteInterop.GetInputAttr(dxTarget).Result : inputAttr; + set { + if (isInitialized) { + DevExpress.Ui.DxAutocompleteInterop.SetInputAttr(dxTarget, value); + } else { + this.inputAttr = value; + } + } + } + string mask; + [Parameter] + string Mask { + get => isInitialized ? (string)DevExpress.Ui.DxAutocompleteInterop.GetMask(dxTarget).Result : mask; + set { + if (isInitialized) { + DevExpress.Ui.DxAutocompleteInterop.SetMask(dxTarget, value); + } else { + this.mask = value; + } + } + } + string maskChar; + [Parameter] + string MaskChar { + get => isInitialized ? (string)DevExpress.Ui.DxAutocompleteInterop.GetMaskChar(dxTarget).Result : maskChar; + set { + if (isInitialized) { + DevExpress.Ui.DxAutocompleteInterop.SetMaskChar(dxTarget, value); + } else { + this.maskChar = value; + } + } + } + string maskInvalidMessage; + [Parameter] + string MaskInvalidMessage { + get => isInitialized ? (string)DevExpress.Ui.DxAutocompleteInterop.GetMaskInvalidMessage(dxTarget).Result : maskInvalidMessage; + set { + if (isInitialized) { + DevExpress.Ui.DxAutocompleteInterop.SetMaskInvalidMessage(dxTarget, value); + } else { + this.maskInvalidMessage = value; + } + } + } + object maskRules; + [Parameter] + object MaskRules { + get => isInitialized ? DevExpress.Ui.DxAutocompleteInterop.GetMaskRules(dxTarget).Result : maskRules; + set { + if (isInitialized) { + DevExpress.Ui.DxAutocompleteInterop.SetMaskRules(dxTarget, value); + } else { + this.maskRules = value; + } + } + } + string name; + [Parameter] + string Name { + get => isInitialized ? (string)DevExpress.Ui.DxAutocompleteInterop.GetName(dxTarget).Result : name; + set { + if (isInitialized) { + DevExpress.Ui.DxAutocompleteInterop.SetName(dxTarget, value); + } else { + this.name = value; + } + } + } + string placeholder; + [Parameter] + string Placeholder { + get => isInitialized ? (string)DevExpress.Ui.DxAutocompleteInterop.GetPlaceholder(dxTarget).Result : placeholder; + set { + if (isInitialized) { + DevExpress.Ui.DxAutocompleteInterop.SetPlaceholder(dxTarget, value); + } else { + this.placeholder = value; + } + } + } + bool? showClearButton; + [Parameter] + bool? ShowClearButton { + get => isInitialized ? (bool?)DevExpress.Ui.DxAutocompleteInterop.GetShowClearButton(dxTarget).Result : showClearButton; + set { + if (isInitialized) { + DevExpress.Ui.DxAutocompleteInterop.SetShowClearButton(dxTarget, value); + } else { + this.showClearButton = value; + } + } + } + string showMaskMode; + [Parameter] + string ShowMaskMode { + get => isInitialized ? (string)DevExpress.Ui.DxAutocompleteInterop.GetShowMaskMode(dxTarget).Result : showMaskMode; + set { + if (isInitialized) { + DevExpress.Ui.DxAutocompleteInterop.SetShowMaskMode(dxTarget, value); + } else { + this.showMaskMode = value; + } + } + } + bool? spellcheck; + [Parameter] + bool? Spellcheck { + get => isInitialized ? (bool?)DevExpress.Ui.DxAutocompleteInterop.GetSpellcheck(dxTarget).Result : spellcheck; + set { + if (isInitialized) { + DevExpress.Ui.DxAutocompleteInterop.SetSpellcheck(dxTarget, value); + } else { + this.spellcheck = value; + } + } + } + string text; + [Parameter] + string Text { + get => isInitialized ? (string)DevExpress.Ui.DxAutocompleteInterop.GetText(dxTarget).Result : text; + set { + if (isInitialized) { + DevExpress.Ui.DxAutocompleteInterop.SetText(dxTarget, value); + } else { + this.text = value; + } + } + } + bool? useMaskedValue; + [Parameter] + bool? UseMaskedValue { + get => isInitialized ? (bool?)DevExpress.Ui.DxAutocompleteInterop.GetUseMaskedValue(dxTarget).Result : useMaskedValue; + set { + if (isInitialized) { + DevExpress.Ui.DxAutocompleteInterop.SetUseMaskedValue(dxTarget, value); + } else { + this.useMaskedValue = value; + } + } + } + bool? isValid; + [Parameter] + bool? IsValid { + get => isInitialized ? (bool?)DevExpress.Ui.DxAutocompleteInterop.GetIsValid(dxTarget).Result : isValid; + set { + if (isInitialized) { + DevExpress.Ui.DxAutocompleteInterop.SetIsValid(dxTarget, value); + } else { + this.isValid = value; + } + } + } + bool? readOnly; + [Parameter] + bool? ReadOnly { + get => isInitialized ? (bool?)DevExpress.Ui.DxAutocompleteInterop.GetReadOnly(dxTarget).Result : readOnly; + set { + if (isInitialized) { + DevExpress.Ui.DxAutocompleteInterop.SetReadOnly(dxTarget, value); + } else { + this.readOnly = value; + } + } + } + object validationError; + [Parameter] + object ValidationError { + get => isInitialized ? DevExpress.Ui.DxAutocompleteInterop.GetValidationError(dxTarget).Result : validationError; + set { + if (isInitialized) { + DevExpress.Ui.DxAutocompleteInterop.SetValidationError(dxTarget, value); + } else { + this.validationError = value; + } + } + } + string validationMessageMode; + [Parameter] + string ValidationMessageMode { + get => isInitialized ? (string)DevExpress.Ui.DxAutocompleteInterop.GetValidationMessageMode(dxTarget).Result : validationMessageMode; + set { + if (isInitialized) { + DevExpress.Ui.DxAutocompleteInterop.SetValidationMessageMode(dxTarget, value); + } else { + this.validationMessageMode = value; + } + } + } + string accessKey; + [Parameter] + string AccessKey { + get => isInitialized ? (string)DevExpress.Ui.DxAutocompleteInterop.GetAccessKey(dxTarget).Result : accessKey; + set { + if (isInitialized) { + DevExpress.Ui.DxAutocompleteInterop.SetAccessKey(dxTarget, value); + } else { + this.accessKey = value; + } + } + } + bool? disabled; + [Parameter] + bool? Disabled { + get => isInitialized ? (bool?)DevExpress.Ui.DxAutocompleteInterop.GetDisabled(dxTarget).Result : disabled; + set { + if (isInitialized) { + DevExpress.Ui.DxAutocompleteInterop.SetDisabled(dxTarget, value); + } else { + this.disabled = value; + } + } + } + string hint; + [Parameter] + string Hint { + get => isInitialized ? (string)DevExpress.Ui.DxAutocompleteInterop.GetHint(dxTarget).Result : hint; + set { + if (isInitialized) { + DevExpress.Ui.DxAutocompleteInterop.SetHint(dxTarget, value); + } else { + this.hint = value; + } + } + } + float? tabIndex; + [Parameter] + float? TabIndex { + get => isInitialized ? (float?)DevExpress.Ui.DxAutocompleteInterop.GetTabIndex(dxTarget).Result : tabIndex; + set { + if (isInitialized) { + DevExpress.Ui.DxAutocompleteInterop.SetTabIndex(dxTarget, value); + } else { + this.tabIndex = value; + } + } + } + bool? visible; + [Parameter] + bool? Visible { + get => isInitialized ? (bool?)DevExpress.Ui.DxAutocompleteInterop.GetVisible(dxTarget).Result : visible; + set { + if (isInitialized) { + DevExpress.Ui.DxAutocompleteInterop.SetVisible(dxTarget, value); + } else { + this.visible = value; + } + } + } + object bindingOptions; + [Parameter] + object BindingOptions { + get => isInitialized ? DevExpress.Ui.DxAutocompleteInterop.GetBindingOptions(dxTarget).Result : bindingOptions; + set { + if (isInitialized) { + DevExpress.Ui.DxAutocompleteInterop.SetBindingOptions(dxTarget, value); + } else { + this.bindingOptions = value; + } + } + } + object elementAttr; + [Parameter] + object ElementAttr { + get => isInitialized ? DevExpress.Ui.DxAutocompleteInterop.GetElementAttr(dxTarget).Result : elementAttr; + set { + if (isInitialized) { + DevExpress.Ui.DxAutocompleteInterop.SetElementAttr(dxTarget, value); + } else { + this.elementAttr = value; + } + } + } + object height; + [Parameter] + object Height { + get => isInitialized ? DevExpress.Ui.DxAutocompleteInterop.GetHeight(dxTarget).Result : height; + set { + if (isInitialized) { + DevExpress.Ui.DxAutocompleteInterop.SetHeight(dxTarget, value); + } else { + this.height = value; + } + } + } + bool? rtlEnabled; + [Parameter] + bool? RtlEnabled { + get => isInitialized ? (bool?)DevExpress.Ui.DxAutocompleteInterop.GetRtlEnabled(dxTarget).Result : rtlEnabled; + set { + if (isInitialized) { + DevExpress.Ui.DxAutocompleteInterop.SetRtlEnabled(dxTarget, value); + } else { + this.rtlEnabled = value; + } + } + } + object width; + [Parameter] + object Width { + get => isInitialized ? DevExpress.Ui.DxAutocompleteInterop.GetWidth(dxTarget).Result : width; + set { + if (isInitialized) { + DevExpress.Ui.DxAutocompleteInterop.SetWidth(dxTarget, value); + } else { + this.width = value; + } + } + } + object dataSource; + [Parameter] + object DataSource { + get => isInitialized ? DevExpress.Ui.DxAutocompleteInterop.GetDataSource(dxTarget).Result : dataSource; + set { + if (isInitialized) { + DevExpress.Ui.DxAutocompleteInterop.SetDataSource(dxTarget, value); + } else { + this.dataSource = value; + } + } + } + object displayExpr; + [Parameter] + object DisplayExpr { + get => isInitialized ? DevExpress.Ui.DxAutocompleteInterop.GetDisplayExpr(dxTarget).Result : displayExpr; + set { + if (isInitialized) { + DevExpress.Ui.DxAutocompleteInterop.SetDisplayExpr(dxTarget, value); + } else { + this.displayExpr = value; + } + } + } + object items; + [Parameter] + object Items { + get => isInitialized ? DevExpress.Ui.DxAutocompleteInterop.GetItems(dxTarget).Result : items; + set { + if (isInitialized) { + DevExpress.Ui.DxAutocompleteInterop.SetItems(dxTarget, value); + } else { + this.items = value; + } + } + } + object itemTemplate; + [Parameter] + object ItemTemplate { + get => isInitialized ? DevExpress.Ui.DxAutocompleteInterop.GetItemTemplate(dxTarget).Result : itemTemplate; + set { + if (isInitialized) { + DevExpress.Ui.DxAutocompleteInterop.SetItemTemplate(dxTarget, value); + } else { + this.itemTemplate = value; + } + } + } + object valueExpr; + [Parameter] + object ValueExpr { + get => isInitialized ? DevExpress.Ui.DxAutocompleteInterop.GetValueExpr(dxTarget).Result : valueExpr; + set { + if (isInitialized) { + DevExpress.Ui.DxAutocompleteInterop.SetValueExpr(dxTarget, value); + } else { + this.valueExpr = value; + } + } + } + bool? onItemClickEnabled; + [Parameter] + bool? OnItemClickEnabled { + get => onItemClickEnabled; + set => this.onItemClickEnabled = value; + } + bool? onSelectionChangedEnabled; + [Parameter] + bool? OnSelectionChangedEnabled { + get => onSelectionChangedEnabled; + set => this.onSelectionChangedEnabled = value; + } + bool? onValueChangedEnabled; + [Parameter] + bool? OnValueChangedEnabled { + get => onValueChangedEnabled; + set => this.onValueChangedEnabled = value; + } + bool? onClosedEnabled; + [Parameter] + bool? OnClosedEnabled { + get => onClosedEnabled; + set => this.onClosedEnabled = value; + } + bool? onOpenedEnabled; + [Parameter] + bool? OnOpenedEnabled { + get => onOpenedEnabled; + set => this.onOpenedEnabled = value; + } + bool? onChangeEnabled; + [Parameter] + bool? OnChangeEnabled { + get => onChangeEnabled; + set => this.onChangeEnabled = value; + } + bool? onCopyEnabled; + [Parameter] + bool? OnCopyEnabled { + get => onCopyEnabled; + set => this.onCopyEnabled = value; + } + bool? onCutEnabled; + [Parameter] + bool? OnCutEnabled { + get => onCutEnabled; + set => this.onCutEnabled = value; + } + bool? onEnterKeyEnabled; + [Parameter] + bool? OnEnterKeyEnabled { + get => onEnterKeyEnabled; + set => this.onEnterKeyEnabled = value; + } + bool? onFocusInEnabled; + [Parameter] + bool? OnFocusInEnabled { + get => onFocusInEnabled; + set => this.onFocusInEnabled = value; + } + bool? onFocusOutEnabled; + [Parameter] + bool? OnFocusOutEnabled { + get => onFocusOutEnabled; + set => this.onFocusOutEnabled = value; + } + bool? onInputEnabled; + [Parameter] + bool? OnInputEnabled { + get => onInputEnabled; + set => this.onInputEnabled = value; + } + bool? onKeyDownEnabled; + [Parameter] + bool? OnKeyDownEnabled { + get => onKeyDownEnabled; + set => this.onKeyDownEnabled = value; + } + bool? onKeyPressEnabled; + [Parameter] + bool? OnKeyPressEnabled { + get => onKeyPressEnabled; + set => this.onKeyPressEnabled = value; + } + bool? onKeyUpEnabled; + [Parameter] + bool? OnKeyUpEnabled { + get => onKeyUpEnabled; + set => this.onKeyUpEnabled = value; + } + bool? onPasteEnabled; + [Parameter] + bool? OnPasteEnabled { + get => onPasteEnabled; + set => this.onPasteEnabled = value; + } + bool? onContentReadyEnabled; + [Parameter] + bool? OnContentReadyEnabled { + get => onContentReadyEnabled; + set => this.onContentReadyEnabled = value; + } + bool? onDisposingEnabled; + [Parameter] + bool? OnDisposingEnabled { + get => onDisposingEnabled; + set => this.onDisposingEnabled = value; + } + bool? onOptionChangedEnabled; + [Parameter] + bool? OnOptionChangedEnabled { + get => onOptionChangedEnabled; + set => this.onOptionChangedEnabled = value; + } + bool? onInitializedEnabled; + [Parameter] + bool? OnInitializedEnabled { + get => onInitializedEnabled; + set => this.onInitializedEnabled = value; + } protected override async Task OnInitAsync() { await base.OnInitAsync(); + DevExpress.Ui.DxAutocompleteInterop.ItemClick += DxAutocomplete_ItemClick; + DevExpress.Ui.DxAutocompleteInterop.SelectionChanged += DxAutocomplete_SelectionChanged; + DevExpress.Ui.DxAutocompleteInterop.ValueChanged += DxAutocomplete_ValueChanged; + DevExpress.Ui.DxAutocompleteInterop.Closed += DxAutocomplete_Closed; + DevExpress.Ui.DxAutocompleteInterop.Opened += DxAutocomplete_Opened; + DevExpress.Ui.DxAutocompleteInterop.Change += DxAutocomplete_Change; + DevExpress.Ui.DxAutocompleteInterop.Copy += DxAutocomplete_Copy; + DevExpress.Ui.DxAutocompleteInterop.Cut += DxAutocomplete_Cut; + DevExpress.Ui.DxAutocompleteInterop.EnterKey += DxAutocomplete_EnterKey; + DevExpress.Ui.DxAutocompleteInterop.FocusIn += DxAutocomplete_FocusIn; + DevExpress.Ui.DxAutocompleteInterop.FocusOut += DxAutocomplete_FocusOut; + DevExpress.Ui.DxAutocompleteInterop.Input += DxAutocomplete_Input; + DevExpress.Ui.DxAutocompleteInterop.KeyDown += DxAutocomplete_KeyDown; + DevExpress.Ui.DxAutocompleteInterop.KeyPress += DxAutocomplete_KeyPress; + DevExpress.Ui.DxAutocompleteInterop.KeyUp += DxAutocomplete_KeyUp; + DevExpress.Ui.DxAutocompleteInterop.Paste += DxAutocomplete_Paste; + DevExpress.Ui.DxAutocompleteInterop.ContentReady += DxAutocomplete_ContentReady; + DevExpress.Ui.DxAutocompleteInterop.Disposing += DxAutocomplete_Disposing; + DevExpress.Ui.DxAutocompleteInterop.OptionChanged += DxAutocomplete_OptionChanged; + DevExpress.Ui.DxAutocompleteInterop.Initialized += DxAutocomplete_Initialized; + } + [Parameter] + Action ItemClick { get; set; } + void DxAutocomplete_ItemClick(object sender, JQueryEventArgs e) { + if (e.Identifier == Id) { + ItemClick?.Invoke(); + } + } + [Parameter] + Action SelectionChanged { get; set; } + void DxAutocomplete_SelectionChanged(object sender, JQueryEventArgs e) { + if (e.Identifier == Id) { + SelectionChanged?.Invoke(); + } + } + [Parameter] + Action ValueChanged { get; set; } + void DxAutocomplete_ValueChanged(object sender, JQueryEventArgs e) { + if (e.Identifier == Id) { + ValueChanged?.Invoke(); + } + } + [Parameter] + Action Closed { get; set; } + void DxAutocomplete_Closed(object sender, JQueryEventArgs e) { + if (e.Identifier == Id) { + Closed?.Invoke(); + } + } + [Parameter] + Action Opened { get; set; } + void DxAutocomplete_Opened(object sender, JQueryEventArgs e) { + if (e.Identifier == Id) { + Opened?.Invoke(); + } + } + [Parameter] + Action Change { get; set; } + void DxAutocomplete_Change(object sender, JQueryEventArgs e) { + if (e.Identifier == Id) { + Change?.Invoke(); + } + } + [Parameter] + Action Copy { get; set; } + void DxAutocomplete_Copy(object sender, JQueryEventArgs e) { + if (e.Identifier == Id) { + Copy?.Invoke(); + } + } + [Parameter] + Action Cut { get; set; } + void DxAutocomplete_Cut(object sender, JQueryEventArgs e) { + if (e.Identifier == Id) { + Cut?.Invoke(); + } + } + [Parameter] + Action EnterKey { get; set; } + void DxAutocomplete_EnterKey(object sender, JQueryEventArgs e) { + if (e.Identifier == Id) { + EnterKey?.Invoke(); + } + } + [Parameter] + Action FocusIn { get; set; } + void DxAutocomplete_FocusIn(object sender, JQueryEventArgs e) { + if (e.Identifier == Id) { + FocusIn?.Invoke(); + } + } + [Parameter] + Action FocusOut { get; set; } + void DxAutocomplete_FocusOut(object sender, JQueryEventArgs e) { + if (e.Identifier == Id) { + FocusOut?.Invoke(); + } + } + [Parameter] + Action Input { get; set; } + void DxAutocomplete_Input(object sender, JQueryEventArgs e) { + if (e.Identifier == Id) { + Input?.Invoke(); + } + } + [Parameter] + Action KeyDown { get; set; } + void DxAutocomplete_KeyDown(object sender, JQueryEventArgs e) { + if (e.Identifier == Id) { + KeyDown?.Invoke(); + } + } + [Parameter] + Action KeyPress { get; set; } + void DxAutocomplete_KeyPress(object sender, JQueryEventArgs e) { + if (e.Identifier == Id) { + KeyPress?.Invoke(); + } + } + [Parameter] + Action KeyUp { get; set; } + void DxAutocomplete_KeyUp(object sender, JQueryEventArgs e) { + if (e.Identifier == Id) { + KeyUp?.Invoke(); + } + } + [Parameter] + Action Paste { get; set; } + void DxAutocomplete_Paste(object sender, JQueryEventArgs e) { + if (e.Identifier == Id) { + Paste?.Invoke(); + } + } + [Parameter] + Action ContentReady { get; set; } + void DxAutocomplete_ContentReady(object sender, JQueryEventArgs e) { + if (e.Identifier == Id) { + ContentReady?.Invoke(); + } + } + [Parameter] + Action Disposing { get; set; } + void DxAutocomplete_Disposing(object sender, JQueryEventArgs e) { + if (e.Identifier == Id) { + Disposing?.Invoke(); + } + } + [Parameter] + Action OptionChanged { get; set; } + void DxAutocomplete_OptionChanged(object sender, JQueryEventArgs e) { + if (e.Identifier == Id) { + OptionChanged?.Invoke(); + } + } + [Parameter] + Action Initialized { get; set; } + void DxAutocomplete_Initialized(object sender, JQueryEventArgs e) { + if (e.Identifier == Id) { + Initialized?.Invoke(); + } } public void Dispose() { + DevExpress.Ui.DxAutocompleteInterop.ItemClick -= DxAutocomplete_ItemClick; + DevExpress.Ui.DxAutocompleteInterop.SelectionChanged -= DxAutocomplete_SelectionChanged; + DevExpress.Ui.DxAutocompleteInterop.ValueChanged -= DxAutocomplete_ValueChanged; + DevExpress.Ui.DxAutocompleteInterop.Closed -= DxAutocomplete_Closed; + DevExpress.Ui.DxAutocompleteInterop.Opened -= DxAutocomplete_Opened; + DevExpress.Ui.DxAutocompleteInterop.Change -= DxAutocomplete_Change; + DevExpress.Ui.DxAutocompleteInterop.Copy -= DxAutocomplete_Copy; + DevExpress.Ui.DxAutocompleteInterop.Cut -= DxAutocomplete_Cut; + DevExpress.Ui.DxAutocompleteInterop.EnterKey -= DxAutocomplete_EnterKey; + DevExpress.Ui.DxAutocompleteInterop.FocusIn -= DxAutocomplete_FocusIn; + DevExpress.Ui.DxAutocompleteInterop.FocusOut -= DxAutocomplete_FocusOut; + DevExpress.Ui.DxAutocompleteInterop.Input -= DxAutocomplete_Input; + DevExpress.Ui.DxAutocompleteInterop.KeyDown -= DxAutocomplete_KeyDown; + DevExpress.Ui.DxAutocompleteInterop.KeyPress -= DxAutocomplete_KeyPress; + DevExpress.Ui.DxAutocompleteInterop.KeyUp -= DxAutocomplete_KeyUp; + DevExpress.Ui.DxAutocompleteInterop.Paste -= DxAutocomplete_Paste; + DevExpress.Ui.DxAutocompleteInterop.ContentReady -= DxAutocomplete_ContentReady; + DevExpress.Ui.DxAutocompleteInterop.Disposing -= DxAutocomplete_Disposing; + DevExpress.Ui.DxAutocompleteInterop.OptionChanged -= DxAutocomplete_OptionChanged; + DevExpress.Ui.DxAutocompleteInterop.Initialized -= DxAutocomplete_Initialized; } } diff --git a/sources/BlazorDevExtreme/Components/DxBarGauge.cshtml b/sources/BlazorDevExtreme/Components/DxBarGauge.cshtml index 63a242d..a475f8f 100644 --- a/sources/BlazorDevExtreme/Components/DxBarGauge.cshtml +++ b/sources/BlazorDevExtreme/Components/DxBarGauge.cshtml @@ -25,12 +25,32 @@ title = title, tooltip = tooltip, values = values, + export = export, + loadingIndicator = loadingIndicator, + margin = margin, + pathModified = pathModified, + redrawOnResize = redrawOnResize, + rtlEnabled = rtlEnabled, + size = size, + theme = theme, + bindingOptions = bindingOptions, + elementAttr = elementAttr, + height = height, + width = width, onTooltipHiddenEnabled = onTooltipHiddenEnabled, onTooltipShownEnabled = onTooltipShownEnabled, + onDrawnEnabled = onDrawnEnabled, + onExportedEnabled = onExportedEnabled, + onExportingEnabled = onExportingEnabled, + onFileSavingEnabled = onFileSavingEnabled, + onIncidentOccurredEnabled = onIncidentOccurredEnabled, + onDisposingEnabled = onDisposingEnabled, + onOptionChangedEnabled = onOptionChangedEnabled, + onInitializedEnabled = onInitializedEnabled, }; } protected override Task Init(DevExpress.Viz.Gauges.DxBarGaugeOptions options) { -return DevExpress.Viz.DxBarGaugeInterop.Init(dxTarget, options); + return DevExpress.Viz.DxBarGaugeInterop.Init(dxTarget, options); } object animation; [Parameter] @@ -47,7 +67,7 @@ return DevExpress.Viz.DxBarGaugeInterop.Init(dxTarget, options); string backgroundColor; [Parameter] string BackgroundColor { - get => isInitialized ? DevExpress.Viz.DxBarGaugeInterop.GetBackgroundColor(dxTarget).Result : backgroundColor; + get => isInitialized ? (string)DevExpress.Viz.DxBarGaugeInterop.GetBackgroundColor(dxTarget).Result : backgroundColor; set { if (isInitialized) { DevExpress.Viz.DxBarGaugeInterop.SetBackgroundColor(dxTarget, value); @@ -59,7 +79,7 @@ return DevExpress.Viz.DxBarGaugeInterop.Init(dxTarget, options); float? barSpacing; [Parameter] float? BarSpacing { - get => isInitialized ? DevExpress.Viz.DxBarGaugeInterop.GetBarSpacing(dxTarget).Result : barSpacing; + get => isInitialized ? (float?)DevExpress.Viz.DxBarGaugeInterop.GetBarSpacing(dxTarget).Result : barSpacing; set { if (isInitialized) { DevExpress.Viz.DxBarGaugeInterop.SetBarSpacing(dxTarget, value); @@ -71,7 +91,7 @@ return DevExpress.Viz.DxBarGaugeInterop.Init(dxTarget, options); float? baseValue; [Parameter] float? BaseValue { - get => isInitialized ? DevExpress.Viz.DxBarGaugeInterop.GetBaseValue(dxTarget).Result : baseValue; + get => isInitialized ? (float?)DevExpress.Viz.DxBarGaugeInterop.GetBaseValue(dxTarget).Result : baseValue; set { if (isInitialized) { DevExpress.Viz.DxBarGaugeInterop.SetBaseValue(dxTarget, value); @@ -83,7 +103,7 @@ return DevExpress.Viz.DxBarGaugeInterop.Init(dxTarget, options); float? endValue; [Parameter] float? EndValue { - get => isInitialized ? DevExpress.Viz.DxBarGaugeInterop.GetEndValue(dxTarget).Result : endValue; + get => isInitialized ? (float?)DevExpress.Viz.DxBarGaugeInterop.GetEndValue(dxTarget).Result : endValue; set { if (isInitialized) { DevExpress.Viz.DxBarGaugeInterop.SetEndValue(dxTarget, value); @@ -131,7 +151,7 @@ return DevExpress.Viz.DxBarGaugeInterop.Init(dxTarget, options); string paletteExtensionMode; [Parameter] string PaletteExtensionMode { - get => isInitialized ? DevExpress.Viz.DxBarGaugeInterop.GetPaletteExtensionMode(dxTarget).Result : paletteExtensionMode; + get => isInitialized ? (string)DevExpress.Viz.DxBarGaugeInterop.GetPaletteExtensionMode(dxTarget).Result : paletteExtensionMode; set { if (isInitialized) { DevExpress.Viz.DxBarGaugeInterop.SetPaletteExtensionMode(dxTarget, value); @@ -143,7 +163,7 @@ return DevExpress.Viz.DxBarGaugeInterop.Init(dxTarget, options); float? relativeInnerRadius; [Parameter] float? RelativeInnerRadius { - get => isInitialized ? DevExpress.Viz.DxBarGaugeInterop.GetRelativeInnerRadius(dxTarget).Result : relativeInnerRadius; + get => isInitialized ? (float?)DevExpress.Viz.DxBarGaugeInterop.GetRelativeInnerRadius(dxTarget).Result : relativeInnerRadius; set { if (isInitialized) { DevExpress.Viz.DxBarGaugeInterop.SetRelativeInnerRadius(dxTarget, value); @@ -155,7 +175,7 @@ return DevExpress.Viz.DxBarGaugeInterop.Init(dxTarget, options); float? startValue; [Parameter] float? StartValue { - get => isInitialized ? DevExpress.Viz.DxBarGaugeInterop.GetStartValue(dxTarget).Result : startValue; + get => isInitialized ? (float?)DevExpress.Viz.DxBarGaugeInterop.GetStartValue(dxTarget).Result : startValue; set { if (isInitialized) { DevExpress.Viz.DxBarGaugeInterop.SetStartValue(dxTarget, value); @@ -212,6 +232,150 @@ return DevExpress.Viz.DxBarGaugeInterop.Init(dxTarget, options); } } } + object export; + [Parameter] + object Export { + get => isInitialized ? DevExpress.Viz.DxBarGaugeInterop.GetExport(dxTarget).Result : export; + set { + if (isInitialized) { + DevExpress.Viz.DxBarGaugeInterop.SetExport(dxTarget, value); + } else { + this.export = value; + } + } + } + object loadingIndicator; + [Parameter] + object LoadingIndicator { + get => isInitialized ? DevExpress.Viz.DxBarGaugeInterop.GetLoadingIndicator(dxTarget).Result : loadingIndicator; + set { + if (isInitialized) { + DevExpress.Viz.DxBarGaugeInterop.SetLoadingIndicator(dxTarget, value); + } else { + this.loadingIndicator = value; + } + } + } + object margin; + [Parameter] + object Margin { + get => isInitialized ? DevExpress.Viz.DxBarGaugeInterop.GetMargin(dxTarget).Result : margin; + set { + if (isInitialized) { + DevExpress.Viz.DxBarGaugeInterop.SetMargin(dxTarget, value); + } else { + this.margin = value; + } + } + } + bool? pathModified; + [Parameter] + bool? PathModified { + get => isInitialized ? (bool?)DevExpress.Viz.DxBarGaugeInterop.GetPathModified(dxTarget).Result : pathModified; + set { + if (isInitialized) { + DevExpress.Viz.DxBarGaugeInterop.SetPathModified(dxTarget, value); + } else { + this.pathModified = value; + } + } + } + bool? redrawOnResize; + [Parameter] + bool? RedrawOnResize { + get => isInitialized ? (bool?)DevExpress.Viz.DxBarGaugeInterop.GetRedrawOnResize(dxTarget).Result : redrawOnResize; + set { + if (isInitialized) { + DevExpress.Viz.DxBarGaugeInterop.SetRedrawOnResize(dxTarget, value); + } else { + this.redrawOnResize = value; + } + } + } + bool? rtlEnabled; + [Parameter] + bool? RtlEnabled { + get => isInitialized ? (bool?)DevExpress.Viz.DxBarGaugeInterop.GetRtlEnabled(dxTarget).Result : rtlEnabled; + set { + if (isInitialized) { + DevExpress.Viz.DxBarGaugeInterop.SetRtlEnabled(dxTarget, value); + } else { + this.rtlEnabled = value; + } + } + } + object size; + [Parameter] + object Size { + get => isInitialized ? DevExpress.Viz.DxBarGaugeInterop.GetSize(dxTarget).Result : size; + set { + if (isInitialized) { + DevExpress.Viz.DxBarGaugeInterop.SetSize(dxTarget, value); + } else { + this.size = value; + } + } + } + string theme; + [Parameter] + string Theme { + get => isInitialized ? (string)DevExpress.Viz.DxBarGaugeInterop.GetTheme(dxTarget).Result : theme; + set { + if (isInitialized) { + DevExpress.Viz.DxBarGaugeInterop.SetTheme(dxTarget, value); + } else { + this.theme = value; + } + } + } + object bindingOptions; + [Parameter] + object BindingOptions { + get => isInitialized ? DevExpress.Viz.DxBarGaugeInterop.GetBindingOptions(dxTarget).Result : bindingOptions; + set { + if (isInitialized) { + DevExpress.Viz.DxBarGaugeInterop.SetBindingOptions(dxTarget, value); + } else { + this.bindingOptions = value; + } + } + } + object elementAttr; + [Parameter] + object ElementAttr { + get => isInitialized ? DevExpress.Viz.DxBarGaugeInterop.GetElementAttr(dxTarget).Result : elementAttr; + set { + if (isInitialized) { + DevExpress.Viz.DxBarGaugeInterop.SetElementAttr(dxTarget, value); + } else { + this.elementAttr = value; + } + } + } + object height; + [Parameter] + object Height { + get => isInitialized ? DevExpress.Viz.DxBarGaugeInterop.GetHeight(dxTarget).Result : height; + set { + if (isInitialized) { + DevExpress.Viz.DxBarGaugeInterop.SetHeight(dxTarget, value); + } else { + this.height = value; + } + } + } + object width; + [Parameter] + object Width { + get => isInitialized ? DevExpress.Viz.DxBarGaugeInterop.GetWidth(dxTarget).Result : width; + set { + if (isInitialized) { + DevExpress.Viz.DxBarGaugeInterop.SetWidth(dxTarget, value); + } else { + this.width = value; + } + } + } bool? onTooltipHiddenEnabled; [Parameter] bool? OnTooltipHiddenEnabled { @@ -224,10 +388,66 @@ return DevExpress.Viz.DxBarGaugeInterop.Init(dxTarget, options); get => onTooltipShownEnabled; set => this.onTooltipShownEnabled = value; } + bool? onDrawnEnabled; + [Parameter] + bool? OnDrawnEnabled { + get => onDrawnEnabled; + set => this.onDrawnEnabled = value; + } + bool? onExportedEnabled; + [Parameter] + bool? OnExportedEnabled { + get => onExportedEnabled; + set => this.onExportedEnabled = value; + } + bool? onExportingEnabled; + [Parameter] + bool? OnExportingEnabled { + get => onExportingEnabled; + set => this.onExportingEnabled = value; + } + bool? onFileSavingEnabled; + [Parameter] + bool? OnFileSavingEnabled { + get => onFileSavingEnabled; + set => this.onFileSavingEnabled = value; + } + bool? onIncidentOccurredEnabled; + [Parameter] + bool? OnIncidentOccurredEnabled { + get => onIncidentOccurredEnabled; + set => this.onIncidentOccurredEnabled = value; + } + bool? onDisposingEnabled; + [Parameter] + bool? OnDisposingEnabled { + get => onDisposingEnabled; + set => this.onDisposingEnabled = value; + } + bool? onOptionChangedEnabled; + [Parameter] + bool? OnOptionChangedEnabled { + get => onOptionChangedEnabled; + set => this.onOptionChangedEnabled = value; + } + bool? onInitializedEnabled; + [Parameter] + bool? OnInitializedEnabled { + get => onInitializedEnabled; + set => this.onInitializedEnabled = value; + } protected override async Task OnInitAsync() { await base.OnInitAsync(); DevExpress.Viz.DxBarGaugeInterop.TooltipHidden += DxBarGauge_TooltipHidden; DevExpress.Viz.DxBarGaugeInterop.TooltipShown += DxBarGauge_TooltipShown; + DevExpress.Viz.DxBarGaugeInterop.Drawn += DxBarGauge_Drawn; + DevExpress.Viz.DxBarGaugeInterop.Exported += DxBarGauge_Exported; + DevExpress.Viz.DxBarGaugeInterop.Exporting += DxBarGauge_Exporting; + DevExpress.Viz.DxBarGaugeInterop.FileSaving += DxBarGauge_FileSaving; + DevExpress.Viz.DxBarGaugeInterop.IncidentOccurred += DxBarGauge_IncidentOccurred; + DevExpress.Viz.DxBarGaugeInterop.Disposing += DxBarGauge_Disposing; + DevExpress.Viz.DxBarGaugeInterop.OptionChanged += DxBarGauge_OptionChanged; + DevExpress.Viz.DxBarGaugeInterop.Initialized += DxBarGauge_Initialized; } [Parameter] Action TooltipHidden { get; set; } @@ -243,6 +463,62 @@ return DevExpress.Viz.DxBarGaugeInterop.Init(dxTarget, options); TooltipShown?.Invoke(); } } + [Parameter] + Action Drawn { get; set; } + void DxBarGauge_Drawn(object sender, JQueryEventArgs e) { + if (e.Identifier == Id) { + Drawn?.Invoke(); + } + } + [Parameter] + Action Exported { get; set; } + void DxBarGauge_Exported(object sender, JQueryEventArgs e) { + if (e.Identifier == Id) { + Exported?.Invoke(); + } + } + [Parameter] + Action Exporting { get; set; } + void DxBarGauge_Exporting(object sender, JQueryEventArgs e) { + if (e.Identifier == Id) { + Exporting?.Invoke(); + } + } + [Parameter] + Action FileSaving { get; set; } + void DxBarGauge_FileSaving(object sender, JQueryEventArgs e) { + if (e.Identifier == Id) { + FileSaving?.Invoke(); + } + } + [Parameter] + Action IncidentOccurred { get; set; } + void DxBarGauge_IncidentOccurred(object sender, JQueryEventArgs e) { + if (e.Identifier == Id) { + IncidentOccurred?.Invoke(); + } + } + [Parameter] + Action Disposing { get; set; } + void DxBarGauge_Disposing(object sender, JQueryEventArgs e) { + if (e.Identifier == Id) { + Disposing?.Invoke(); + } + } + [Parameter] + Action OptionChanged { get; set; } + void DxBarGauge_OptionChanged(object sender, JQueryEventArgs e) { + if (e.Identifier == Id) { + OptionChanged?.Invoke(); + } + } + [Parameter] + Action Initialized { get; set; } + void DxBarGauge_Initialized(object sender, JQueryEventArgs e) { + if (e.Identifier == Id) { + Initialized?.Invoke(); + } + } public object ValuesEx() { return DevExpress.Viz.DxBarGaugeInterop.ValuesEx(dxTarget).Result; } @@ -252,5 +528,13 @@ return DevExpress.Viz.DxBarGaugeInterop.Init(dxTarget, options); public void Dispose() { DevExpress.Viz.DxBarGaugeInterop.TooltipHidden -= DxBarGauge_TooltipHidden; DevExpress.Viz.DxBarGaugeInterop.TooltipShown -= DxBarGauge_TooltipShown; + DevExpress.Viz.DxBarGaugeInterop.Drawn -= DxBarGauge_Drawn; + DevExpress.Viz.DxBarGaugeInterop.Exported -= DxBarGauge_Exported; + DevExpress.Viz.DxBarGaugeInterop.Exporting -= DxBarGauge_Exporting; + DevExpress.Viz.DxBarGaugeInterop.FileSaving -= DxBarGauge_FileSaving; + DevExpress.Viz.DxBarGaugeInterop.IncidentOccurred -= DxBarGauge_IncidentOccurred; + DevExpress.Viz.DxBarGaugeInterop.Disposing -= DxBarGauge_Disposing; + DevExpress.Viz.DxBarGaugeInterop.OptionChanged -= DxBarGauge_OptionChanged; + DevExpress.Viz.DxBarGaugeInterop.Initialized -= DxBarGauge_Initialized; } } diff --git a/sources/BlazorDevExtreme/Components/DxBox.cshtml b/sources/BlazorDevExtreme/Components/DxBox.cshtml index aecf257..8c23bda 100644 --- a/sources/BlazorDevExtreme/Components/DxBox.cshtml +++ b/sources/BlazorDevExtreme/Components/DxBox.cshtml @@ -13,15 +13,47 @@ align = align, crossAlign = crossAlign, direction = direction, + dataSource = dataSource, + itemHoldTimeout = itemHoldTimeout, + items = items, + itemTemplate = itemTemplate, + keyExpr = keyExpr, + noDataText = noDataText, + selectedIndex = selectedIndex, + selectedItem = selectedItem, + selectedItemKeys = selectedItemKeys, + selectedItems = selectedItems, + accessKey = accessKey, + activeStateEnabled = activeStateEnabled, + disabled = disabled, + focusStateEnabled = focusStateEnabled, + hint = hint, + hoverStateEnabled = hoverStateEnabled, + tabIndex = tabIndex, + visible = visible, + bindingOptions = bindingOptions, + elementAttr = elementAttr, + height = height, + rtlEnabled = rtlEnabled, + width = width, + onItemClickEnabled = onItemClickEnabled, + onItemContextMenuEnabled = onItemContextMenuEnabled, + onItemHoldEnabled = onItemHoldEnabled, + onItemRenderedEnabled = onItemRenderedEnabled, + onSelectionChangedEnabled = onSelectionChangedEnabled, + onContentReadyEnabled = onContentReadyEnabled, + onDisposingEnabled = onDisposingEnabled, + onOptionChangedEnabled = onOptionChangedEnabled, + onInitializedEnabled = onInitializedEnabled, }; } protected override Task Init(DevExpress.Ui.DxBoxOptions options) { -return DevExpress.Ui.DxBoxInterop.Init(dxTarget, options); + return DevExpress.Ui.DxBoxInterop.Init(dxTarget, options); } string align; [Parameter] string Align { - get => isInitialized ? DevExpress.Ui.DxBoxInterop.GetAlign(dxTarget).Result : align; + get => isInitialized ? (string)DevExpress.Ui.DxBoxInterop.GetAlign(dxTarget).Result : align; set { if (isInitialized) { DevExpress.Ui.DxBoxInterop.SetAlign(dxTarget, value); @@ -33,7 +65,7 @@ return DevExpress.Ui.DxBoxInterop.Init(dxTarget, options); string crossAlign; [Parameter] string CrossAlign { - get => isInitialized ? DevExpress.Ui.DxBoxInterop.GetCrossAlign(dxTarget).Result : crossAlign; + get => isInitialized ? (string)DevExpress.Ui.DxBoxInterop.GetCrossAlign(dxTarget).Result : crossAlign; set { if (isInitialized) { DevExpress.Ui.DxBoxInterop.SetCrossAlign(dxTarget, value); @@ -45,7 +77,7 @@ return DevExpress.Ui.DxBoxInterop.Init(dxTarget, options); string direction; [Parameter] string Direction { - get => isInitialized ? DevExpress.Ui.DxBoxInterop.GetDirection(dxTarget).Result : direction; + get => isInitialized ? (string)DevExpress.Ui.DxBoxInterop.GetDirection(dxTarget).Result : direction; set { if (isInitialized) { DevExpress.Ui.DxBoxInterop.SetDirection(dxTarget, value); @@ -54,9 +86,420 @@ return DevExpress.Ui.DxBoxInterop.Init(dxTarget, options); } } } + object dataSource; + [Parameter] + object DataSource { + get => isInitialized ? DevExpress.Ui.DxBoxInterop.GetDataSource(dxTarget).Result : dataSource; + set { + if (isInitialized) { + DevExpress.Ui.DxBoxInterop.SetDataSource(dxTarget, value); + } else { + this.dataSource = value; + } + } + } + float? itemHoldTimeout; + [Parameter] + float? ItemHoldTimeout { + get => isInitialized ? (float?)DevExpress.Ui.DxBoxInterop.GetItemHoldTimeout(dxTarget).Result : itemHoldTimeout; + set { + if (isInitialized) { + DevExpress.Ui.DxBoxInterop.SetItemHoldTimeout(dxTarget, value); + } else { + this.itemHoldTimeout = value; + } + } + } + object items; + [Parameter] + object Items { + get => isInitialized ? DevExpress.Ui.DxBoxInterop.GetItems(dxTarget).Result : items; + set { + if (isInitialized) { + DevExpress.Ui.DxBoxInterop.SetItems(dxTarget, value); + } else { + this.items = value; + } + } + } + object itemTemplate; + [Parameter] + object ItemTemplate { + get => isInitialized ? DevExpress.Ui.DxBoxInterop.GetItemTemplate(dxTarget).Result : itemTemplate; + set { + if (isInitialized) { + DevExpress.Ui.DxBoxInterop.SetItemTemplate(dxTarget, value); + } else { + this.itemTemplate = value; + } + } + } + object keyExpr; + [Parameter] + object KeyExpr { + get => isInitialized ? DevExpress.Ui.DxBoxInterop.GetKeyExpr(dxTarget).Result : keyExpr; + set { + if (isInitialized) { + DevExpress.Ui.DxBoxInterop.SetKeyExpr(dxTarget, value); + } else { + this.keyExpr = value; + } + } + } + string noDataText; + [Parameter] + string NoDataText { + get => isInitialized ? (string)DevExpress.Ui.DxBoxInterop.GetNoDataText(dxTarget).Result : noDataText; + set { + if (isInitialized) { + DevExpress.Ui.DxBoxInterop.SetNoDataText(dxTarget, value); + } else { + this.noDataText = value; + } + } + } + float? selectedIndex; + [Parameter] + float? SelectedIndex { + get => isInitialized ? (float?)DevExpress.Ui.DxBoxInterop.GetSelectedIndex(dxTarget).Result : selectedIndex; + set { + if (isInitialized) { + DevExpress.Ui.DxBoxInterop.SetSelectedIndex(dxTarget, value); + } else { + this.selectedIndex = value; + } + } + } + object selectedItem; + [Parameter] + object SelectedItem { + get => isInitialized ? DevExpress.Ui.DxBoxInterop.GetSelectedItem(dxTarget).Result : selectedItem; + set { + if (isInitialized) { + DevExpress.Ui.DxBoxInterop.SetSelectedItem(dxTarget, value); + } else { + this.selectedItem = value; + } + } + } + object selectedItemKeys; + [Parameter] + object SelectedItemKeys { + get => isInitialized ? DevExpress.Ui.DxBoxInterop.GetSelectedItemKeys(dxTarget).Result : selectedItemKeys; + set { + if (isInitialized) { + DevExpress.Ui.DxBoxInterop.SetSelectedItemKeys(dxTarget, value); + } else { + this.selectedItemKeys = value; + } + } + } + object selectedItems; + [Parameter] + object SelectedItems { + get => isInitialized ? DevExpress.Ui.DxBoxInterop.GetSelectedItems(dxTarget).Result : selectedItems; + set { + if (isInitialized) { + DevExpress.Ui.DxBoxInterop.SetSelectedItems(dxTarget, value); + } else { + this.selectedItems = value; + } + } + } + string accessKey; + [Parameter] + string AccessKey { + get => isInitialized ? (string)DevExpress.Ui.DxBoxInterop.GetAccessKey(dxTarget).Result : accessKey; + set { + if (isInitialized) { + DevExpress.Ui.DxBoxInterop.SetAccessKey(dxTarget, value); + } else { + this.accessKey = value; + } + } + } + bool? activeStateEnabled; + [Parameter] + bool? ActiveStateEnabled { + get => isInitialized ? (bool?)DevExpress.Ui.DxBoxInterop.GetActiveStateEnabled(dxTarget).Result : activeStateEnabled; + set { + if (isInitialized) { + DevExpress.Ui.DxBoxInterop.SetActiveStateEnabled(dxTarget, value); + } else { + this.activeStateEnabled = value; + } + } + } + bool? disabled; + [Parameter] + bool? Disabled { + get => isInitialized ? (bool?)DevExpress.Ui.DxBoxInterop.GetDisabled(dxTarget).Result : disabled; + set { + if (isInitialized) { + DevExpress.Ui.DxBoxInterop.SetDisabled(dxTarget, value); + } else { + this.disabled = value; + } + } + } + bool? focusStateEnabled; + [Parameter] + bool? FocusStateEnabled { + get => isInitialized ? (bool?)DevExpress.Ui.DxBoxInterop.GetFocusStateEnabled(dxTarget).Result : focusStateEnabled; + set { + if (isInitialized) { + DevExpress.Ui.DxBoxInterop.SetFocusStateEnabled(dxTarget, value); + } else { + this.focusStateEnabled = value; + } + } + } + string hint; + [Parameter] + string Hint { + get => isInitialized ? (string)DevExpress.Ui.DxBoxInterop.GetHint(dxTarget).Result : hint; + set { + if (isInitialized) { + DevExpress.Ui.DxBoxInterop.SetHint(dxTarget, value); + } else { + this.hint = value; + } + } + } + bool? hoverStateEnabled; + [Parameter] + bool? HoverStateEnabled { + get => isInitialized ? (bool?)DevExpress.Ui.DxBoxInterop.GetHoverStateEnabled(dxTarget).Result : hoverStateEnabled; + set { + if (isInitialized) { + DevExpress.Ui.DxBoxInterop.SetHoverStateEnabled(dxTarget, value); + } else { + this.hoverStateEnabled = value; + } + } + } + float? tabIndex; + [Parameter] + float? TabIndex { + get => isInitialized ? (float?)DevExpress.Ui.DxBoxInterop.GetTabIndex(dxTarget).Result : tabIndex; + set { + if (isInitialized) { + DevExpress.Ui.DxBoxInterop.SetTabIndex(dxTarget, value); + } else { + this.tabIndex = value; + } + } + } + bool? visible; + [Parameter] + bool? Visible { + get => isInitialized ? (bool?)DevExpress.Ui.DxBoxInterop.GetVisible(dxTarget).Result : visible; + set { + if (isInitialized) { + DevExpress.Ui.DxBoxInterop.SetVisible(dxTarget, value); + } else { + this.visible = value; + } + } + } + object bindingOptions; + [Parameter] + object BindingOptions { + get => isInitialized ? DevExpress.Ui.DxBoxInterop.GetBindingOptions(dxTarget).Result : bindingOptions; + set { + if (isInitialized) { + DevExpress.Ui.DxBoxInterop.SetBindingOptions(dxTarget, value); + } else { + this.bindingOptions = value; + } + } + } + object elementAttr; + [Parameter] + object ElementAttr { + get => isInitialized ? DevExpress.Ui.DxBoxInterop.GetElementAttr(dxTarget).Result : elementAttr; + set { + if (isInitialized) { + DevExpress.Ui.DxBoxInterop.SetElementAttr(dxTarget, value); + } else { + this.elementAttr = value; + } + } + } + object height; + [Parameter] + object Height { + get => isInitialized ? DevExpress.Ui.DxBoxInterop.GetHeight(dxTarget).Result : height; + set { + if (isInitialized) { + DevExpress.Ui.DxBoxInterop.SetHeight(dxTarget, value); + } else { + this.height = value; + } + } + } + bool? rtlEnabled; + [Parameter] + bool? RtlEnabled { + get => isInitialized ? (bool?)DevExpress.Ui.DxBoxInterop.GetRtlEnabled(dxTarget).Result : rtlEnabled; + set { + if (isInitialized) { + DevExpress.Ui.DxBoxInterop.SetRtlEnabled(dxTarget, value); + } else { + this.rtlEnabled = value; + } + } + } + object width; + [Parameter] + object Width { + get => isInitialized ? DevExpress.Ui.DxBoxInterop.GetWidth(dxTarget).Result : width; + set { + if (isInitialized) { + DevExpress.Ui.DxBoxInterop.SetWidth(dxTarget, value); + } else { + this.width = value; + } + } + } + bool? onItemClickEnabled; + [Parameter] + bool? OnItemClickEnabled { + get => onItemClickEnabled; + set => this.onItemClickEnabled = value; + } + bool? onItemContextMenuEnabled; + [Parameter] + bool? OnItemContextMenuEnabled { + get => onItemContextMenuEnabled; + set => this.onItemContextMenuEnabled = value; + } + bool? onItemHoldEnabled; + [Parameter] + bool? OnItemHoldEnabled { + get => onItemHoldEnabled; + set => this.onItemHoldEnabled = value; + } + bool? onItemRenderedEnabled; + [Parameter] + bool? OnItemRenderedEnabled { + get => onItemRenderedEnabled; + set => this.onItemRenderedEnabled = value; + } + bool? onSelectionChangedEnabled; + [Parameter] + bool? OnSelectionChangedEnabled { + get => onSelectionChangedEnabled; + set => this.onSelectionChangedEnabled = value; + } + bool? onContentReadyEnabled; + [Parameter] + bool? OnContentReadyEnabled { + get => onContentReadyEnabled; + set => this.onContentReadyEnabled = value; + } + bool? onDisposingEnabled; + [Parameter] + bool? OnDisposingEnabled { + get => onDisposingEnabled; + set => this.onDisposingEnabled = value; + } + bool? onOptionChangedEnabled; + [Parameter] + bool? OnOptionChangedEnabled { + get => onOptionChangedEnabled; + set => this.onOptionChangedEnabled = value; + } + bool? onInitializedEnabled; + [Parameter] + bool? OnInitializedEnabled { + get => onInitializedEnabled; + set => this.onInitializedEnabled = value; + } protected override async Task OnInitAsync() { await base.OnInitAsync(); + DevExpress.Ui.DxBoxInterop.ItemClick += DxBox_ItemClick; + DevExpress.Ui.DxBoxInterop.ItemContextMenu += DxBox_ItemContextMenu; + DevExpress.Ui.DxBoxInterop.ItemHold += DxBox_ItemHold; + DevExpress.Ui.DxBoxInterop.ItemRendered += DxBox_ItemRendered; + DevExpress.Ui.DxBoxInterop.SelectionChanged += DxBox_SelectionChanged; + DevExpress.Ui.DxBoxInterop.ContentReady += DxBox_ContentReady; + DevExpress.Ui.DxBoxInterop.Disposing += DxBox_Disposing; + DevExpress.Ui.DxBoxInterop.OptionChanged += DxBox_OptionChanged; + DevExpress.Ui.DxBoxInterop.Initialized += DxBox_Initialized; + } + [Parameter] + Action ItemClick { get; set; } + void DxBox_ItemClick(object sender, JQueryEventArgs e) { + if (e.Identifier == Id) { + ItemClick?.Invoke(); + } + } + [Parameter] + Action ItemContextMenu { get; set; } + void DxBox_ItemContextMenu(object sender, JQueryEventArgs e) { + if (e.Identifier == Id) { + ItemContextMenu?.Invoke(); + } + } + [Parameter] + Action ItemHold { get; set; } + void DxBox_ItemHold(object sender, JQueryEventArgs e) { + if (e.Identifier == Id) { + ItemHold?.Invoke(); + } + } + [Parameter] + Action ItemRendered { get; set; } + void DxBox_ItemRendered(object sender, JQueryEventArgs e) { + if (e.Identifier == Id) { + ItemRendered?.Invoke(); + } + } + [Parameter] + Action SelectionChanged { get; set; } + void DxBox_SelectionChanged(object sender, JQueryEventArgs e) { + if (e.Identifier == Id) { + SelectionChanged?.Invoke(); + } + } + [Parameter] + Action ContentReady { get; set; } + void DxBox_ContentReady(object sender, JQueryEventArgs e) { + if (e.Identifier == Id) { + ContentReady?.Invoke(); + } + } + [Parameter] + Action Disposing { get; set; } + void DxBox_Disposing(object sender, JQueryEventArgs e) { + if (e.Identifier == Id) { + Disposing?.Invoke(); + } + } + [Parameter] + Action OptionChanged { get; set; } + void DxBox_OptionChanged(object sender, JQueryEventArgs e) { + if (e.Identifier == Id) { + OptionChanged?.Invoke(); + } + } + [Parameter] + Action Initialized { get; set; } + void DxBox_Initialized(object sender, JQueryEventArgs e) { + if (e.Identifier == Id) { + Initialized?.Invoke(); + } } public void Dispose() { + DevExpress.Ui.DxBoxInterop.ItemClick -= DxBox_ItemClick; + DevExpress.Ui.DxBoxInterop.ItemContextMenu -= DxBox_ItemContextMenu; + DevExpress.Ui.DxBoxInterop.ItemHold -= DxBox_ItemHold; + DevExpress.Ui.DxBoxInterop.ItemRendered -= DxBox_ItemRendered; + DevExpress.Ui.DxBoxInterop.SelectionChanged -= DxBox_SelectionChanged; + DevExpress.Ui.DxBoxInterop.ContentReady -= DxBox_ContentReady; + DevExpress.Ui.DxBoxInterop.Disposing -= DxBox_Disposing; + DevExpress.Ui.DxBoxInterop.OptionChanged -= DxBox_OptionChanged; + DevExpress.Ui.DxBoxInterop.Initialized -= DxBox_Initialized; } } diff --git a/sources/BlazorDevExtreme/Components/DxBullet.cshtml b/sources/BlazorDevExtreme/Components/DxBullet.cshtml index b06e7c5..640aa27 100644 --- a/sources/BlazorDevExtreme/Components/DxBullet.cshtml +++ b/sources/BlazorDevExtreme/Components/DxBullet.cshtml @@ -19,15 +19,39 @@ targetColor = targetColor, targetWidth = targetWidth, value = value, + tooltip = tooltip, + export = export, + loadingIndicator = loadingIndicator, + margin = margin, + pathModified = pathModified, + redrawOnResize = redrawOnResize, + rtlEnabled = rtlEnabled, + size = size, + theme = theme, + title = title, + bindingOptions = bindingOptions, + elementAttr = elementAttr, + height = height, + width = width, + onTooltipHiddenEnabled = onTooltipHiddenEnabled, + onTooltipShownEnabled = onTooltipShownEnabled, + onDrawnEnabled = onDrawnEnabled, + onExportedEnabled = onExportedEnabled, + onExportingEnabled = onExportingEnabled, + onFileSavingEnabled = onFileSavingEnabled, + onIncidentOccurredEnabled = onIncidentOccurredEnabled, + onDisposingEnabled = onDisposingEnabled, + onOptionChangedEnabled = onOptionChangedEnabled, + onInitializedEnabled = onInitializedEnabled, }; } protected override Task Init(DevExpress.Viz.Sparklines.DxBulletOptions options) { -return DevExpress.Viz.DxBulletInterop.Init(dxTarget, options); + return DevExpress.Viz.DxBulletInterop.Init(dxTarget, options); } string color; [Parameter] string Color { - get => isInitialized ? DevExpress.Viz.DxBulletInterop.GetColor(dxTarget).Result : color; + get => isInitialized ? (string)DevExpress.Viz.DxBulletInterop.GetColor(dxTarget).Result : color; set { if (isInitialized) { DevExpress.Viz.DxBulletInterop.SetColor(dxTarget, value); @@ -39,7 +63,7 @@ return DevExpress.Viz.DxBulletInterop.Init(dxTarget, options); float? endScaleValue; [Parameter] float? EndScaleValue { - get => isInitialized ? DevExpress.Viz.DxBulletInterop.GetEndScaleValue(dxTarget).Result : endScaleValue; + get => isInitialized ? (float?)DevExpress.Viz.DxBulletInterop.GetEndScaleValue(dxTarget).Result : endScaleValue; set { if (isInitialized) { DevExpress.Viz.DxBulletInterop.SetEndScaleValue(dxTarget, value); @@ -51,7 +75,7 @@ return DevExpress.Viz.DxBulletInterop.Init(dxTarget, options); bool? showTarget; [Parameter] bool? ShowTarget { - get => isInitialized ? DevExpress.Viz.DxBulletInterop.GetShowTarget(dxTarget).Result : showTarget; + get => isInitialized ? (bool?)DevExpress.Viz.DxBulletInterop.GetShowTarget(dxTarget).Result : showTarget; set { if (isInitialized) { DevExpress.Viz.DxBulletInterop.SetShowTarget(dxTarget, value); @@ -63,7 +87,7 @@ return DevExpress.Viz.DxBulletInterop.Init(dxTarget, options); bool? showZeroLevel; [Parameter] bool? ShowZeroLevel { - get => isInitialized ? DevExpress.Viz.DxBulletInterop.GetShowZeroLevel(dxTarget).Result : showZeroLevel; + get => isInitialized ? (bool?)DevExpress.Viz.DxBulletInterop.GetShowZeroLevel(dxTarget).Result : showZeroLevel; set { if (isInitialized) { DevExpress.Viz.DxBulletInterop.SetShowZeroLevel(dxTarget, value); @@ -75,7 +99,7 @@ return DevExpress.Viz.DxBulletInterop.Init(dxTarget, options); float? startScaleValue; [Parameter] float? StartScaleValue { - get => isInitialized ? DevExpress.Viz.DxBulletInterop.GetStartScaleValue(dxTarget).Result : startScaleValue; + get => isInitialized ? (float?)DevExpress.Viz.DxBulletInterop.GetStartScaleValue(dxTarget).Result : startScaleValue; set { if (isInitialized) { DevExpress.Viz.DxBulletInterop.SetStartScaleValue(dxTarget, value); @@ -87,7 +111,7 @@ return DevExpress.Viz.DxBulletInterop.Init(dxTarget, options); float? target; [Parameter] float? Target { - get => isInitialized ? DevExpress.Viz.DxBulletInterop.GetTarget(dxTarget).Result : target; + get => isInitialized ? (float?)DevExpress.Viz.DxBulletInterop.GetTarget(dxTarget).Result : target; set { if (isInitialized) { DevExpress.Viz.DxBulletInterop.SetTarget(dxTarget, value); @@ -99,7 +123,7 @@ return DevExpress.Viz.DxBulletInterop.Init(dxTarget, options); string targetColor; [Parameter] string TargetColor { - get => isInitialized ? DevExpress.Viz.DxBulletInterop.GetTargetColor(dxTarget).Result : targetColor; + get => isInitialized ? (string)DevExpress.Viz.DxBulletInterop.GetTargetColor(dxTarget).Result : targetColor; set { if (isInitialized) { DevExpress.Viz.DxBulletInterop.SetTargetColor(dxTarget, value); @@ -111,7 +135,7 @@ return DevExpress.Viz.DxBulletInterop.Init(dxTarget, options); float? targetWidth; [Parameter] float? TargetWidth { - get => isInitialized ? DevExpress.Viz.DxBulletInterop.GetTargetWidth(dxTarget).Result : targetWidth; + get => isInitialized ? (float?)DevExpress.Viz.DxBulletInterop.GetTargetWidth(dxTarget).Result : targetWidth; set { if (isInitialized) { DevExpress.Viz.DxBulletInterop.SetTargetWidth(dxTarget, value); @@ -123,7 +147,7 @@ return DevExpress.Viz.DxBulletInterop.Init(dxTarget, options); float? value; [Parameter] float? Value { - get => isInitialized ? DevExpress.Viz.DxBulletInterop.GetValue(dxTarget).Result : value; + get => isInitialized ? (float?)DevExpress.Viz.DxBulletInterop.GetValue(dxTarget).Result : value; set { if (isInitialized) { DevExpress.Viz.DxBulletInterop.SetValue(dxTarget, value); @@ -132,9 +156,327 @@ return DevExpress.Viz.DxBulletInterop.Init(dxTarget, options); } } } + object tooltip; + [Parameter] + object Tooltip { + get => isInitialized ? DevExpress.Viz.DxBulletInterop.GetTooltip(dxTarget).Result : tooltip; + set { + if (isInitialized) { + DevExpress.Viz.DxBulletInterop.SetTooltip(dxTarget, value); + } else { + this.tooltip = value; + } + } + } + object export; + [Parameter] + object Export { + get => isInitialized ? DevExpress.Viz.DxBulletInterop.GetExport(dxTarget).Result : export; + set { + if (isInitialized) { + DevExpress.Viz.DxBulletInterop.SetExport(dxTarget, value); + } else { + this.export = value; + } + } + } + object loadingIndicator; + [Parameter] + object LoadingIndicator { + get => isInitialized ? DevExpress.Viz.DxBulletInterop.GetLoadingIndicator(dxTarget).Result : loadingIndicator; + set { + if (isInitialized) { + DevExpress.Viz.DxBulletInterop.SetLoadingIndicator(dxTarget, value); + } else { + this.loadingIndicator = value; + } + } + } + object margin; + [Parameter] + object Margin { + get => isInitialized ? DevExpress.Viz.DxBulletInterop.GetMargin(dxTarget).Result : margin; + set { + if (isInitialized) { + DevExpress.Viz.DxBulletInterop.SetMargin(dxTarget, value); + } else { + this.margin = value; + } + } + } + bool? pathModified; + [Parameter] + bool? PathModified { + get => isInitialized ? (bool?)DevExpress.Viz.DxBulletInterop.GetPathModified(dxTarget).Result : pathModified; + set { + if (isInitialized) { + DevExpress.Viz.DxBulletInterop.SetPathModified(dxTarget, value); + } else { + this.pathModified = value; + } + } + } + bool? redrawOnResize; + [Parameter] + bool? RedrawOnResize { + get => isInitialized ? (bool?)DevExpress.Viz.DxBulletInterop.GetRedrawOnResize(dxTarget).Result : redrawOnResize; + set { + if (isInitialized) { + DevExpress.Viz.DxBulletInterop.SetRedrawOnResize(dxTarget, value); + } else { + this.redrawOnResize = value; + } + } + } + bool? rtlEnabled; + [Parameter] + bool? RtlEnabled { + get => isInitialized ? (bool?)DevExpress.Viz.DxBulletInterop.GetRtlEnabled(dxTarget).Result : rtlEnabled; + set { + if (isInitialized) { + DevExpress.Viz.DxBulletInterop.SetRtlEnabled(dxTarget, value); + } else { + this.rtlEnabled = value; + } + } + } + object size; + [Parameter] + object Size { + get => isInitialized ? DevExpress.Viz.DxBulletInterop.GetSize(dxTarget).Result : size; + set { + if (isInitialized) { + DevExpress.Viz.DxBulletInterop.SetSize(dxTarget, value); + } else { + this.size = value; + } + } + } + string theme; + [Parameter] + string Theme { + get => isInitialized ? (string)DevExpress.Viz.DxBulletInterop.GetTheme(dxTarget).Result : theme; + set { + if (isInitialized) { + DevExpress.Viz.DxBulletInterop.SetTheme(dxTarget, value); + } else { + this.theme = value; + } + } + } + object title; + [Parameter] + object Title { + get => isInitialized ? DevExpress.Viz.DxBulletInterop.GetTitle(dxTarget).Result : title; + set { + if (isInitialized) { + DevExpress.Viz.DxBulletInterop.SetTitle(dxTarget, value); + } else { + this.title = value; + } + } + } + object bindingOptions; + [Parameter] + object BindingOptions { + get => isInitialized ? DevExpress.Viz.DxBulletInterop.GetBindingOptions(dxTarget).Result : bindingOptions; + set { + if (isInitialized) { + DevExpress.Viz.DxBulletInterop.SetBindingOptions(dxTarget, value); + } else { + this.bindingOptions = value; + } + } + } + object elementAttr; + [Parameter] + object ElementAttr { + get => isInitialized ? DevExpress.Viz.DxBulletInterop.GetElementAttr(dxTarget).Result : elementAttr; + set { + if (isInitialized) { + DevExpress.Viz.DxBulletInterop.SetElementAttr(dxTarget, value); + } else { + this.elementAttr = value; + } + } + } + object height; + [Parameter] + object Height { + get => isInitialized ? DevExpress.Viz.DxBulletInterop.GetHeight(dxTarget).Result : height; + set { + if (isInitialized) { + DevExpress.Viz.DxBulletInterop.SetHeight(dxTarget, value); + } else { + this.height = value; + } + } + } + object width; + [Parameter] + object Width { + get => isInitialized ? DevExpress.Viz.DxBulletInterop.GetWidth(dxTarget).Result : width; + set { + if (isInitialized) { + DevExpress.Viz.DxBulletInterop.SetWidth(dxTarget, value); + } else { + this.width = value; + } + } + } + bool? onTooltipHiddenEnabled; + [Parameter] + bool? OnTooltipHiddenEnabled { + get => onTooltipHiddenEnabled; + set => this.onTooltipHiddenEnabled = value; + } + bool? onTooltipShownEnabled; + [Parameter] + bool? OnTooltipShownEnabled { + get => onTooltipShownEnabled; + set => this.onTooltipShownEnabled = value; + } + bool? onDrawnEnabled; + [Parameter] + bool? OnDrawnEnabled { + get => onDrawnEnabled; + set => this.onDrawnEnabled = value; + } + bool? onExportedEnabled; + [Parameter] + bool? OnExportedEnabled { + get => onExportedEnabled; + set => this.onExportedEnabled = value; + } + bool? onExportingEnabled; + [Parameter] + bool? OnExportingEnabled { + get => onExportingEnabled; + set => this.onExportingEnabled = value; + } + bool? onFileSavingEnabled; + [Parameter] + bool? OnFileSavingEnabled { + get => onFileSavingEnabled; + set => this.onFileSavingEnabled = value; + } + bool? onIncidentOccurredEnabled; + [Parameter] + bool? OnIncidentOccurredEnabled { + get => onIncidentOccurredEnabled; + set => this.onIncidentOccurredEnabled = value; + } + bool? onDisposingEnabled; + [Parameter] + bool? OnDisposingEnabled { + get => onDisposingEnabled; + set => this.onDisposingEnabled = value; + } + bool? onOptionChangedEnabled; + [Parameter] + bool? OnOptionChangedEnabled { + get => onOptionChangedEnabled; + set => this.onOptionChangedEnabled = value; + } + bool? onInitializedEnabled; + [Parameter] + bool? OnInitializedEnabled { + get => onInitializedEnabled; + set => this.onInitializedEnabled = value; + } protected override async Task OnInitAsync() { await base.OnInitAsync(); + DevExpress.Viz.DxBulletInterop.TooltipHidden += DxBullet_TooltipHidden; + DevExpress.Viz.DxBulletInterop.TooltipShown += DxBullet_TooltipShown; + DevExpress.Viz.DxBulletInterop.Drawn += DxBullet_Drawn; + DevExpress.Viz.DxBulletInterop.Exported += DxBullet_Exported; + DevExpress.Viz.DxBulletInterop.Exporting += DxBullet_Exporting; + DevExpress.Viz.DxBulletInterop.FileSaving += DxBullet_FileSaving; + DevExpress.Viz.DxBulletInterop.IncidentOccurred += DxBullet_IncidentOccurred; + DevExpress.Viz.DxBulletInterop.Disposing += DxBullet_Disposing; + DevExpress.Viz.DxBulletInterop.OptionChanged += DxBullet_OptionChanged; + DevExpress.Viz.DxBulletInterop.Initialized += DxBullet_Initialized; + } + [Parameter] + Action TooltipHidden { get; set; } + void DxBullet_TooltipHidden(object sender, JQueryEventArgs e) { + if (e.Identifier == Id) { + TooltipHidden?.Invoke(); + } + } + [Parameter] + Action TooltipShown { get; set; } + void DxBullet_TooltipShown(object sender, JQueryEventArgs e) { + if (e.Identifier == Id) { + TooltipShown?.Invoke(); + } + } + [Parameter] + Action Drawn { get; set; } + void DxBullet_Drawn(object sender, JQueryEventArgs e) { + if (e.Identifier == Id) { + Drawn?.Invoke(); + } + } + [Parameter] + Action Exported { get; set; } + void DxBullet_Exported(object sender, JQueryEventArgs e) { + if (e.Identifier == Id) { + Exported?.Invoke(); + } + } + [Parameter] + Action Exporting { get; set; } + void DxBullet_Exporting(object sender, JQueryEventArgs e) { + if (e.Identifier == Id) { + Exporting?.Invoke(); + } + } + [Parameter] + Action FileSaving { get; set; } + void DxBullet_FileSaving(object sender, JQueryEventArgs e) { + if (e.Identifier == Id) { + FileSaving?.Invoke(); + } + } + [Parameter] + Action IncidentOccurred { get; set; } + void DxBullet_IncidentOccurred(object sender, JQueryEventArgs e) { + if (e.Identifier == Id) { + IncidentOccurred?.Invoke(); + } + } + [Parameter] + Action Disposing { get; set; } + void DxBullet_Disposing(object sender, JQueryEventArgs e) { + if (e.Identifier == Id) { + Disposing?.Invoke(); + } + } + [Parameter] + Action OptionChanged { get; set; } + void DxBullet_OptionChanged(object sender, JQueryEventArgs e) { + if (e.Identifier == Id) { + OptionChanged?.Invoke(); + } + } + [Parameter] + Action Initialized { get; set; } + void DxBullet_Initialized(object sender, JQueryEventArgs e) { + if (e.Identifier == Id) { + Initialized?.Invoke(); + } } public void Dispose() { + DevExpress.Viz.DxBulletInterop.TooltipHidden -= DxBullet_TooltipHidden; + DevExpress.Viz.DxBulletInterop.TooltipShown -= DxBullet_TooltipShown; + DevExpress.Viz.DxBulletInterop.Drawn -= DxBullet_Drawn; + DevExpress.Viz.DxBulletInterop.Exported -= DxBullet_Exported; + DevExpress.Viz.DxBulletInterop.Exporting -= DxBullet_Exporting; + DevExpress.Viz.DxBulletInterop.FileSaving -= DxBullet_FileSaving; + DevExpress.Viz.DxBulletInterop.IncidentOccurred -= DxBullet_IncidentOccurred; + DevExpress.Viz.DxBulletInterop.Disposing -= DxBullet_Disposing; + DevExpress.Viz.DxBulletInterop.OptionChanged -= DxBullet_OptionChanged; + DevExpress.Viz.DxBulletInterop.Initialized -= DxBullet_Initialized; } } diff --git a/sources/BlazorDevExtreme/Components/DxButton.cshtml b/sources/BlazorDevExtreme/Components/DxButton.cshtml index c893ff2..1616ba1 100644 --- a/sources/BlazorDevExtreme/Components/DxButton.cshtml +++ b/sources/BlazorDevExtreme/Components/DxButton.cshtml @@ -19,16 +19,30 @@ type = type, useSubmitBehavior = useSubmitBehavior, validationGroup = validationGroup, + accessKey = accessKey, + disabled = disabled, + hint = hint, + tabIndex = tabIndex, + visible = visible, + bindingOptions = bindingOptions, + elementAttr = elementAttr, + height = height, + rtlEnabled = rtlEnabled, + width = width, onClickEnabled = onClickEnabled, + onContentReadyEnabled = onContentReadyEnabled, + onDisposingEnabled = onDisposingEnabled, + onOptionChangedEnabled = onOptionChangedEnabled, + onInitializedEnabled = onInitializedEnabled, }; } protected override Task Init(DevExpress.Ui.DxButtonOptions options) { -return DevExpress.Ui.DxButtonInterop.Init(dxTarget, options); + return DevExpress.Ui.DxButtonInterop.Init(dxTarget, options); } bool? activeStateEnabled; [Parameter] bool? ActiveStateEnabled { - get => isInitialized ? DevExpress.Ui.DxButtonInterop.GetActiveStateEnabled(dxTarget).Result : activeStateEnabled; + get => isInitialized ? (bool?)DevExpress.Ui.DxButtonInterop.GetActiveStateEnabled(dxTarget).Result : activeStateEnabled; set { if (isInitialized) { DevExpress.Ui.DxButtonInterop.SetActiveStateEnabled(dxTarget, value); @@ -40,7 +54,7 @@ return DevExpress.Ui.DxButtonInterop.Init(dxTarget, options); bool? focusStateEnabled; [Parameter] bool? FocusStateEnabled { - get => isInitialized ? DevExpress.Ui.DxButtonInterop.GetFocusStateEnabled(dxTarget).Result : focusStateEnabled; + get => isInitialized ? (bool?)DevExpress.Ui.DxButtonInterop.GetFocusStateEnabled(dxTarget).Result : focusStateEnabled; set { if (isInitialized) { DevExpress.Ui.DxButtonInterop.SetFocusStateEnabled(dxTarget, value); @@ -52,7 +66,7 @@ return DevExpress.Ui.DxButtonInterop.Init(dxTarget, options); bool? hoverStateEnabled; [Parameter] bool? HoverStateEnabled { - get => isInitialized ? DevExpress.Ui.DxButtonInterop.GetHoverStateEnabled(dxTarget).Result : hoverStateEnabled; + get => isInitialized ? (bool?)DevExpress.Ui.DxButtonInterop.GetHoverStateEnabled(dxTarget).Result : hoverStateEnabled; set { if (isInitialized) { DevExpress.Ui.DxButtonInterop.SetHoverStateEnabled(dxTarget, value); @@ -64,7 +78,7 @@ return DevExpress.Ui.DxButtonInterop.Init(dxTarget, options); string icon; [Parameter] string Icon { - get => isInitialized ? DevExpress.Ui.DxButtonInterop.GetIcon(dxTarget).Result : icon; + get => isInitialized ? (string)DevExpress.Ui.DxButtonInterop.GetIcon(dxTarget).Result : icon; set { if (isInitialized) { DevExpress.Ui.DxButtonInterop.SetIcon(dxTarget, value); @@ -88,7 +102,7 @@ return DevExpress.Ui.DxButtonInterop.Init(dxTarget, options); string text; [Parameter] string Text { - get => isInitialized ? DevExpress.Ui.DxButtonInterop.GetText(dxTarget).Result : text; + get => isInitialized ? (string)DevExpress.Ui.DxButtonInterop.GetText(dxTarget).Result : text; set { if (isInitialized) { DevExpress.Ui.DxButtonInterop.SetText(dxTarget, value); @@ -100,7 +114,7 @@ return DevExpress.Ui.DxButtonInterop.Init(dxTarget, options); string type; [Parameter] string Type { - get => isInitialized ? DevExpress.Ui.DxButtonInterop.GetType(dxTarget).Result : type; + get => isInitialized ? (string)DevExpress.Ui.DxButtonInterop.GetType(dxTarget).Result : type; set { if (isInitialized) { DevExpress.Ui.DxButtonInterop.SetType(dxTarget, value); @@ -112,7 +126,7 @@ return DevExpress.Ui.DxButtonInterop.Init(dxTarget, options); bool? useSubmitBehavior; [Parameter] bool? UseSubmitBehavior { - get => isInitialized ? DevExpress.Ui.DxButtonInterop.GetUseSubmitBehavior(dxTarget).Result : useSubmitBehavior; + get => isInitialized ? (bool?)DevExpress.Ui.DxButtonInterop.GetUseSubmitBehavior(dxTarget).Result : useSubmitBehavior; set { if (isInitialized) { DevExpress.Ui.DxButtonInterop.SetUseSubmitBehavior(dxTarget, value); @@ -124,7 +138,7 @@ return DevExpress.Ui.DxButtonInterop.Init(dxTarget, options); string validationGroup; [Parameter] string ValidationGroup { - get => isInitialized ? DevExpress.Ui.DxButtonInterop.GetValidationGroup(dxTarget).Result : validationGroup; + get => isInitialized ? (string)DevExpress.Ui.DxButtonInterop.GetValidationGroup(dxTarget).Result : validationGroup; set { if (isInitialized) { DevExpress.Ui.DxButtonInterop.SetValidationGroup(dxTarget, value); @@ -133,15 +147,163 @@ return DevExpress.Ui.DxButtonInterop.Init(dxTarget, options); } } } + string accessKey; + [Parameter] + string AccessKey { + get => isInitialized ? (string)DevExpress.Ui.DxButtonInterop.GetAccessKey(dxTarget).Result : accessKey; + set { + if (isInitialized) { + DevExpress.Ui.DxButtonInterop.SetAccessKey(dxTarget, value); + } else { + this.accessKey = value; + } + } + } + bool? disabled; + [Parameter] + bool? Disabled { + get => isInitialized ? (bool?)DevExpress.Ui.DxButtonInterop.GetDisabled(dxTarget).Result : disabled; + set { + if (isInitialized) { + DevExpress.Ui.DxButtonInterop.SetDisabled(dxTarget, value); + } else { + this.disabled = value; + } + } + } + string hint; + [Parameter] + string Hint { + get => isInitialized ? (string)DevExpress.Ui.DxButtonInterop.GetHint(dxTarget).Result : hint; + set { + if (isInitialized) { + DevExpress.Ui.DxButtonInterop.SetHint(dxTarget, value); + } else { + this.hint = value; + } + } + } + float? tabIndex; + [Parameter] + float? TabIndex { + get => isInitialized ? (float?)DevExpress.Ui.DxButtonInterop.GetTabIndex(dxTarget).Result : tabIndex; + set { + if (isInitialized) { + DevExpress.Ui.DxButtonInterop.SetTabIndex(dxTarget, value); + } else { + this.tabIndex = value; + } + } + } + bool? visible; + [Parameter] + bool? Visible { + get => isInitialized ? (bool?)DevExpress.Ui.DxButtonInterop.GetVisible(dxTarget).Result : visible; + set { + if (isInitialized) { + DevExpress.Ui.DxButtonInterop.SetVisible(dxTarget, value); + } else { + this.visible = value; + } + } + } + object bindingOptions; + [Parameter] + object BindingOptions { + get => isInitialized ? DevExpress.Ui.DxButtonInterop.GetBindingOptions(dxTarget).Result : bindingOptions; + set { + if (isInitialized) { + DevExpress.Ui.DxButtonInterop.SetBindingOptions(dxTarget, value); + } else { + this.bindingOptions = value; + } + } + } + object elementAttr; + [Parameter] + object ElementAttr { + get => isInitialized ? DevExpress.Ui.DxButtonInterop.GetElementAttr(dxTarget).Result : elementAttr; + set { + if (isInitialized) { + DevExpress.Ui.DxButtonInterop.SetElementAttr(dxTarget, value); + } else { + this.elementAttr = value; + } + } + } + object height; + [Parameter] + object Height { + get => isInitialized ? DevExpress.Ui.DxButtonInterop.GetHeight(dxTarget).Result : height; + set { + if (isInitialized) { + DevExpress.Ui.DxButtonInterop.SetHeight(dxTarget, value); + } else { + this.height = value; + } + } + } + bool? rtlEnabled; + [Parameter] + bool? RtlEnabled { + get => isInitialized ? (bool?)DevExpress.Ui.DxButtonInterop.GetRtlEnabled(dxTarget).Result : rtlEnabled; + set { + if (isInitialized) { + DevExpress.Ui.DxButtonInterop.SetRtlEnabled(dxTarget, value); + } else { + this.rtlEnabled = value; + } + } + } + object width; + [Parameter] + object Width { + get => isInitialized ? DevExpress.Ui.DxButtonInterop.GetWidth(dxTarget).Result : width; + set { + if (isInitialized) { + DevExpress.Ui.DxButtonInterop.SetWidth(dxTarget, value); + } else { + this.width = value; + } + } + } bool? onClickEnabled; [Parameter] bool? OnClickEnabled { get => onClickEnabled; set => this.onClickEnabled = value; } + bool? onContentReadyEnabled; + [Parameter] + bool? OnContentReadyEnabled { + get => onContentReadyEnabled; + set => this.onContentReadyEnabled = value; + } + bool? onDisposingEnabled; + [Parameter] + bool? OnDisposingEnabled { + get => onDisposingEnabled; + set => this.onDisposingEnabled = value; + } + bool? onOptionChangedEnabled; + [Parameter] + bool? OnOptionChangedEnabled { + get => onOptionChangedEnabled; + set => this.onOptionChangedEnabled = value; + } + bool? onInitializedEnabled; + [Parameter] + bool? OnInitializedEnabled { + get => onInitializedEnabled; + set => this.onInitializedEnabled = value; + } protected override async Task OnInitAsync() { await base.OnInitAsync(); DevExpress.Ui.DxButtonInterop.Click += DxButton_Click; + DevExpress.Ui.DxButtonInterop.ContentReady += DxButton_ContentReady; + DevExpress.Ui.DxButtonInterop.Disposing += DxButton_Disposing; + DevExpress.Ui.DxButtonInterop.OptionChanged += DxButton_OptionChanged; + DevExpress.Ui.DxButtonInterop.Initialized += DxButton_Initialized; } [Parameter] Action Click { get; set; } @@ -150,7 +312,39 @@ return DevExpress.Ui.DxButtonInterop.Init(dxTarget, options); Click?.Invoke(); } } + [Parameter] + Action ContentReady { get; set; } + void DxButton_ContentReady(object sender, JQueryEventArgs e) { + if (e.Identifier == Id) { + ContentReady?.Invoke(); + } + } + [Parameter] + Action Disposing { get; set; } + void DxButton_Disposing(object sender, JQueryEventArgs e) { + if (e.Identifier == Id) { + Disposing?.Invoke(); + } + } + [Parameter] + Action OptionChanged { get; set; } + void DxButton_OptionChanged(object sender, JQueryEventArgs e) { + if (e.Identifier == Id) { + OptionChanged?.Invoke(); + } + } + [Parameter] + Action Initialized { get; set; } + void DxButton_Initialized(object sender, JQueryEventArgs e) { + if (e.Identifier == Id) { + Initialized?.Invoke(); + } + } public void Dispose() { DevExpress.Ui.DxButtonInterop.Click -= DxButton_Click; + DevExpress.Ui.DxButtonInterop.ContentReady -= DxButton_ContentReady; + DevExpress.Ui.DxButtonInterop.Disposing -= DxButton_Disposing; + DevExpress.Ui.DxButtonInterop.OptionChanged -= DxButton_OptionChanged; + DevExpress.Ui.DxButtonInterop.Initialized -= DxButton_Initialized; } } diff --git a/sources/BlazorDevExtreme/Components/DxCalendar.cshtml b/sources/BlazorDevExtreme/Components/DxCalendar.cshtml index 986e03c..beb5763 100644 --- a/sources/BlazorDevExtreme/Components/DxCalendar.cshtml +++ b/sources/BlazorDevExtreme/Components/DxCalendar.cshtml @@ -25,15 +25,34 @@ showTodayButton = showTodayButton, value = value, zoomLevel = zoomLevel, + isValid = isValid, + readOnly = readOnly, + validationError = validationError, + validationMessageMode = validationMessageMode, + accessKey = accessKey, + disabled = disabled, + hint = hint, + tabIndex = tabIndex, + visible = visible, + bindingOptions = bindingOptions, + elementAttr = elementAttr, + height = height, + rtlEnabled = rtlEnabled, + width = width, + onValueChangedEnabled = onValueChangedEnabled, + onContentReadyEnabled = onContentReadyEnabled, + onDisposingEnabled = onDisposingEnabled, + onOptionChangedEnabled = onOptionChangedEnabled, + onInitializedEnabled = onInitializedEnabled, }; } protected override Task Init(DevExpress.Ui.DxCalendarOptions options) { -return DevExpress.Ui.DxCalendarInterop.Init(dxTarget, options); + return DevExpress.Ui.DxCalendarInterop.Init(dxTarget, options); } bool? activeStateEnabled; [Parameter] bool? ActiveStateEnabled { - get => isInitialized ? DevExpress.Ui.DxCalendarInterop.GetActiveStateEnabled(dxTarget).Result : activeStateEnabled; + get => isInitialized ? (bool?)DevExpress.Ui.DxCalendarInterop.GetActiveStateEnabled(dxTarget).Result : activeStateEnabled; set { if (isInitialized) { DevExpress.Ui.DxCalendarInterop.SetActiveStateEnabled(dxTarget, value); @@ -57,7 +76,7 @@ return DevExpress.Ui.DxCalendarInterop.Init(dxTarget, options); string dateSerializationFormat; [Parameter] string DateSerializationFormat { - get => isInitialized ? DevExpress.Ui.DxCalendarInterop.GetDateSerializationFormat(dxTarget).Result : dateSerializationFormat; + get => isInitialized ? (string)DevExpress.Ui.DxCalendarInterop.GetDateSerializationFormat(dxTarget).Result : dateSerializationFormat; set { if (isInitialized) { DevExpress.Ui.DxCalendarInterop.SetDateSerializationFormat(dxTarget, value); @@ -93,7 +112,7 @@ return DevExpress.Ui.DxCalendarInterop.Init(dxTarget, options); bool? focusStateEnabled; [Parameter] bool? FocusStateEnabled { - get => isInitialized ? DevExpress.Ui.DxCalendarInterop.GetFocusStateEnabled(dxTarget).Result : focusStateEnabled; + get => isInitialized ? (bool?)DevExpress.Ui.DxCalendarInterop.GetFocusStateEnabled(dxTarget).Result : focusStateEnabled; set { if (isInitialized) { DevExpress.Ui.DxCalendarInterop.SetFocusStateEnabled(dxTarget, value); @@ -105,7 +124,7 @@ return DevExpress.Ui.DxCalendarInterop.Init(dxTarget, options); bool? hoverStateEnabled; [Parameter] bool? HoverStateEnabled { - get => isInitialized ? DevExpress.Ui.DxCalendarInterop.GetHoverStateEnabled(dxTarget).Result : hoverStateEnabled; + get => isInitialized ? (bool?)DevExpress.Ui.DxCalendarInterop.GetHoverStateEnabled(dxTarget).Result : hoverStateEnabled; set { if (isInitialized) { DevExpress.Ui.DxCalendarInterop.SetHoverStateEnabled(dxTarget, value); @@ -129,7 +148,7 @@ return DevExpress.Ui.DxCalendarInterop.Init(dxTarget, options); string maxZoomLevel; [Parameter] string MaxZoomLevel { - get => isInitialized ? DevExpress.Ui.DxCalendarInterop.GetMaxZoomLevel(dxTarget).Result : maxZoomLevel; + get => isInitialized ? (string)DevExpress.Ui.DxCalendarInterop.GetMaxZoomLevel(dxTarget).Result : maxZoomLevel; set { if (isInitialized) { DevExpress.Ui.DxCalendarInterop.SetMaxZoomLevel(dxTarget, value); @@ -153,7 +172,7 @@ return DevExpress.Ui.DxCalendarInterop.Init(dxTarget, options); string minZoomLevel; [Parameter] string MinZoomLevel { - get => isInitialized ? DevExpress.Ui.DxCalendarInterop.GetMinZoomLevel(dxTarget).Result : minZoomLevel; + get => isInitialized ? (string)DevExpress.Ui.DxCalendarInterop.GetMinZoomLevel(dxTarget).Result : minZoomLevel; set { if (isInitialized) { DevExpress.Ui.DxCalendarInterop.SetMinZoomLevel(dxTarget, value); @@ -165,7 +184,7 @@ return DevExpress.Ui.DxCalendarInterop.Init(dxTarget, options); string name; [Parameter] string Name { - get => isInitialized ? DevExpress.Ui.DxCalendarInterop.GetName(dxTarget).Result : name; + get => isInitialized ? (string)DevExpress.Ui.DxCalendarInterop.GetName(dxTarget).Result : name; set { if (isInitialized) { DevExpress.Ui.DxCalendarInterop.SetName(dxTarget, value); @@ -177,7 +196,7 @@ return DevExpress.Ui.DxCalendarInterop.Init(dxTarget, options); bool? showTodayButton; [Parameter] bool? ShowTodayButton { - get => isInitialized ? DevExpress.Ui.DxCalendarInterop.GetShowTodayButton(dxTarget).Result : showTodayButton; + get => isInitialized ? (bool?)DevExpress.Ui.DxCalendarInterop.GetShowTodayButton(dxTarget).Result : showTodayButton; set { if (isInitialized) { DevExpress.Ui.DxCalendarInterop.SetShowTodayButton(dxTarget, value); @@ -201,7 +220,7 @@ return DevExpress.Ui.DxCalendarInterop.Init(dxTarget, options); string zoomLevel; [Parameter] string ZoomLevel { - get => isInitialized ? DevExpress.Ui.DxCalendarInterop.GetZoomLevel(dxTarget).Result : zoomLevel; + get => isInitialized ? (string)DevExpress.Ui.DxCalendarInterop.GetZoomLevel(dxTarget).Result : zoomLevel; set { if (isInitialized) { DevExpress.Ui.DxCalendarInterop.SetZoomLevel(dxTarget, value); @@ -210,9 +229,252 @@ return DevExpress.Ui.DxCalendarInterop.Init(dxTarget, options); } } } + bool? isValid; + [Parameter] + bool? IsValid { + get => isInitialized ? (bool?)DevExpress.Ui.DxCalendarInterop.GetIsValid(dxTarget).Result : isValid; + set { + if (isInitialized) { + DevExpress.Ui.DxCalendarInterop.SetIsValid(dxTarget, value); + } else { + this.isValid = value; + } + } + } + bool? readOnly; + [Parameter] + bool? ReadOnly { + get => isInitialized ? (bool?)DevExpress.Ui.DxCalendarInterop.GetReadOnly(dxTarget).Result : readOnly; + set { + if (isInitialized) { + DevExpress.Ui.DxCalendarInterop.SetReadOnly(dxTarget, value); + } else { + this.readOnly = value; + } + } + } + object validationError; + [Parameter] + object ValidationError { + get => isInitialized ? DevExpress.Ui.DxCalendarInterop.GetValidationError(dxTarget).Result : validationError; + set { + if (isInitialized) { + DevExpress.Ui.DxCalendarInterop.SetValidationError(dxTarget, value); + } else { + this.validationError = value; + } + } + } + string validationMessageMode; + [Parameter] + string ValidationMessageMode { + get => isInitialized ? (string)DevExpress.Ui.DxCalendarInterop.GetValidationMessageMode(dxTarget).Result : validationMessageMode; + set { + if (isInitialized) { + DevExpress.Ui.DxCalendarInterop.SetValidationMessageMode(dxTarget, value); + } else { + this.validationMessageMode = value; + } + } + } + string accessKey; + [Parameter] + string AccessKey { + get => isInitialized ? (string)DevExpress.Ui.DxCalendarInterop.GetAccessKey(dxTarget).Result : accessKey; + set { + if (isInitialized) { + DevExpress.Ui.DxCalendarInterop.SetAccessKey(dxTarget, value); + } else { + this.accessKey = value; + } + } + } + bool? disabled; + [Parameter] + bool? Disabled { + get => isInitialized ? (bool?)DevExpress.Ui.DxCalendarInterop.GetDisabled(dxTarget).Result : disabled; + set { + if (isInitialized) { + DevExpress.Ui.DxCalendarInterop.SetDisabled(dxTarget, value); + } else { + this.disabled = value; + } + } + } + string hint; + [Parameter] + string Hint { + get => isInitialized ? (string)DevExpress.Ui.DxCalendarInterop.GetHint(dxTarget).Result : hint; + set { + if (isInitialized) { + DevExpress.Ui.DxCalendarInterop.SetHint(dxTarget, value); + } else { + this.hint = value; + } + } + } + float? tabIndex; + [Parameter] + float? TabIndex { + get => isInitialized ? (float?)DevExpress.Ui.DxCalendarInterop.GetTabIndex(dxTarget).Result : tabIndex; + set { + if (isInitialized) { + DevExpress.Ui.DxCalendarInterop.SetTabIndex(dxTarget, value); + } else { + this.tabIndex = value; + } + } + } + bool? visible; + [Parameter] + bool? Visible { + get => isInitialized ? (bool?)DevExpress.Ui.DxCalendarInterop.GetVisible(dxTarget).Result : visible; + set { + if (isInitialized) { + DevExpress.Ui.DxCalendarInterop.SetVisible(dxTarget, value); + } else { + this.visible = value; + } + } + } + object bindingOptions; + [Parameter] + object BindingOptions { + get => isInitialized ? DevExpress.Ui.DxCalendarInterop.GetBindingOptions(dxTarget).Result : bindingOptions; + set { + if (isInitialized) { + DevExpress.Ui.DxCalendarInterop.SetBindingOptions(dxTarget, value); + } else { + this.bindingOptions = value; + } + } + } + object elementAttr; + [Parameter] + object ElementAttr { + get => isInitialized ? DevExpress.Ui.DxCalendarInterop.GetElementAttr(dxTarget).Result : elementAttr; + set { + if (isInitialized) { + DevExpress.Ui.DxCalendarInterop.SetElementAttr(dxTarget, value); + } else { + this.elementAttr = value; + } + } + } + object height; + [Parameter] + object Height { + get => isInitialized ? DevExpress.Ui.DxCalendarInterop.GetHeight(dxTarget).Result : height; + set { + if (isInitialized) { + DevExpress.Ui.DxCalendarInterop.SetHeight(dxTarget, value); + } else { + this.height = value; + } + } + } + bool? rtlEnabled; + [Parameter] + bool? RtlEnabled { + get => isInitialized ? (bool?)DevExpress.Ui.DxCalendarInterop.GetRtlEnabled(dxTarget).Result : rtlEnabled; + set { + if (isInitialized) { + DevExpress.Ui.DxCalendarInterop.SetRtlEnabled(dxTarget, value); + } else { + this.rtlEnabled = value; + } + } + } + object width; + [Parameter] + object Width { + get => isInitialized ? DevExpress.Ui.DxCalendarInterop.GetWidth(dxTarget).Result : width; + set { + if (isInitialized) { + DevExpress.Ui.DxCalendarInterop.SetWidth(dxTarget, value); + } else { + this.width = value; + } + } + } + bool? onValueChangedEnabled; + [Parameter] + bool? OnValueChangedEnabled { + get => onValueChangedEnabled; + set => this.onValueChangedEnabled = value; + } + bool? onContentReadyEnabled; + [Parameter] + bool? OnContentReadyEnabled { + get => onContentReadyEnabled; + set => this.onContentReadyEnabled = value; + } + bool? onDisposingEnabled; + [Parameter] + bool? OnDisposingEnabled { + get => onDisposingEnabled; + set => this.onDisposingEnabled = value; + } + bool? onOptionChangedEnabled; + [Parameter] + bool? OnOptionChangedEnabled { + get => onOptionChangedEnabled; + set => this.onOptionChangedEnabled = value; + } + bool? onInitializedEnabled; + [Parameter] + bool? OnInitializedEnabled { + get => onInitializedEnabled; + set => this.onInitializedEnabled = value; + } protected override async Task OnInitAsync() { await base.OnInitAsync(); + DevExpress.Ui.DxCalendarInterop.ValueChanged += DxCalendar_ValueChanged; + DevExpress.Ui.DxCalendarInterop.ContentReady += DxCalendar_ContentReady; + DevExpress.Ui.DxCalendarInterop.Disposing += DxCalendar_Disposing; + DevExpress.Ui.DxCalendarInterop.OptionChanged += DxCalendar_OptionChanged; + DevExpress.Ui.DxCalendarInterop.Initialized += DxCalendar_Initialized; + } + [Parameter] + Action ValueChanged { get; set; } + void DxCalendar_ValueChanged(object sender, JQueryEventArgs e) { + if (e.Identifier == Id) { + ValueChanged?.Invoke(); + } + } + [Parameter] + Action ContentReady { get; set; } + void DxCalendar_ContentReady(object sender, JQueryEventArgs e) { + if (e.Identifier == Id) { + ContentReady?.Invoke(); + } + } + [Parameter] + Action Disposing { get; set; } + void DxCalendar_Disposing(object sender, JQueryEventArgs e) { + if (e.Identifier == Id) { + Disposing?.Invoke(); + } + } + [Parameter] + Action OptionChanged { get; set; } + void DxCalendar_OptionChanged(object sender, JQueryEventArgs e) { + if (e.Identifier == Id) { + OptionChanged?.Invoke(); + } + } + [Parameter] + Action Initialized { get; set; } + void DxCalendar_Initialized(object sender, JQueryEventArgs e) { + if (e.Identifier == Id) { + Initialized?.Invoke(); + } } public void Dispose() { + DevExpress.Ui.DxCalendarInterop.ValueChanged -= DxCalendar_ValueChanged; + DevExpress.Ui.DxCalendarInterop.ContentReady -= DxCalendar_ContentReady; + DevExpress.Ui.DxCalendarInterop.Disposing -= DxCalendar_Disposing; + DevExpress.Ui.DxCalendarInterop.OptionChanged -= DxCalendar_OptionChanged; + DevExpress.Ui.DxCalendarInterop.Initialized -= DxCalendar_Initialized; } } diff --git a/sources/BlazorDevExtreme/Components/DxChart.cshtml b/sources/BlazorDevExtreme/Components/DxChart.cshtml index 50be2a6..0f35f1b 100644 --- a/sources/BlazorDevExtreme/Components/DxChart.cshtml +++ b/sources/BlazorDevExtreme/Components/DxChart.cshtml @@ -40,6 +40,27 @@ useAggregation = useAggregation, valueAxis = valueAxis, zoomingMode = zoomingMode, + adaptiveLayout = adaptiveLayout, + animation = animation, + customizeLabel = customizeLabel, + customizePoint = customizePoint, + dataSource = dataSource, + palette = palette, + paletteExtensionMode = paletteExtensionMode, + pointSelectionMode = pointSelectionMode, + export = export, + loadingIndicator = loadingIndicator, + margin = margin, + pathModified = pathModified, + redrawOnResize = redrawOnResize, + rtlEnabled = rtlEnabled, + size = size, + theme = theme, + title = title, + bindingOptions = bindingOptions, + elementAttr = elementAttr, + height = height, + width = width, onArgumentAxisClickEnabled = onArgumentAxisClickEnabled, onLegendClickEnabled = onLegendClickEnabled, onSeriesClickEnabled = onSeriesClickEnabled, @@ -47,15 +68,29 @@ onSeriesSelectionChangedEnabled = onSeriesSelectionChangedEnabled, onZoomEndEnabled = onZoomEndEnabled, onZoomStartEnabled = onZoomStartEnabled, + onDoneEnabled = onDoneEnabled, + onPointClickEnabled = onPointClickEnabled, + onPointHoverChangedEnabled = onPointHoverChangedEnabled, + onPointSelectionChangedEnabled = onPointSelectionChangedEnabled, + onTooltipHiddenEnabled = onTooltipHiddenEnabled, + onTooltipShownEnabled = onTooltipShownEnabled, + onDrawnEnabled = onDrawnEnabled, + onExportedEnabled = onExportedEnabled, + onExportingEnabled = onExportingEnabled, + onFileSavingEnabled = onFileSavingEnabled, + onIncidentOccurredEnabled = onIncidentOccurredEnabled, + onDisposingEnabled = onDisposingEnabled, + onOptionChangedEnabled = onOptionChangedEnabled, + onInitializedEnabled = onInitializedEnabled, }; } protected override Task Init(DevExpress.Viz.Charts.DxChartOptions options) { -return DevExpress.Viz.DxChartInterop.Init(dxTarget, options); + return DevExpress.Viz.DxChartInterop.Init(dxTarget, options); } bool? adjustOnZoom; [Parameter] bool? AdjustOnZoom { - get => isInitialized ? DevExpress.Viz.DxChartInterop.GetAdjustOnZoom(dxTarget).Result : adjustOnZoom; + get => isInitialized ? (bool?)DevExpress.Viz.DxChartInterop.GetAdjustOnZoom(dxTarget).Result : adjustOnZoom; set { if (isInitialized) { DevExpress.Viz.DxChartInterop.SetAdjustOnZoom(dxTarget, value); @@ -79,7 +114,7 @@ return DevExpress.Viz.DxChartInterop.Init(dxTarget, options); float? barGroupPadding; [Parameter] float? BarGroupPadding { - get => isInitialized ? DevExpress.Viz.DxChartInterop.GetBarGroupPadding(dxTarget).Result : barGroupPadding; + get => isInitialized ? (float?)DevExpress.Viz.DxChartInterop.GetBarGroupPadding(dxTarget).Result : barGroupPadding; set { if (isInitialized) { DevExpress.Viz.DxChartInterop.SetBarGroupPadding(dxTarget, value); @@ -91,7 +126,7 @@ return DevExpress.Viz.DxChartInterop.Init(dxTarget, options); float? barGroupWidth; [Parameter] float? BarGroupWidth { - get => isInitialized ? DevExpress.Viz.DxChartInterop.GetBarGroupWidth(dxTarget).Result : barGroupWidth; + get => isInitialized ? (float?)DevExpress.Viz.DxChartInterop.GetBarGroupWidth(dxTarget).Result : barGroupWidth; set { if (isInitialized) { DevExpress.Viz.DxChartInterop.SetBarGroupWidth(dxTarget, value); @@ -103,7 +138,7 @@ return DevExpress.Viz.DxChartInterop.Init(dxTarget, options); float? barWidth; [Parameter] float? BarWidth { - get => isInitialized ? DevExpress.Viz.DxChartInterop.GetBarWidth(dxTarget).Result : barWidth; + get => isInitialized ? (float?)DevExpress.Viz.DxChartInterop.GetBarWidth(dxTarget).Result : barWidth; set { if (isInitialized) { DevExpress.Viz.DxChartInterop.SetBarWidth(dxTarget, value); @@ -151,7 +186,7 @@ return DevExpress.Viz.DxChartInterop.Init(dxTarget, options); string containerBackgroundColor; [Parameter] string ContainerBackgroundColor { - get => isInitialized ? DevExpress.Viz.DxChartInterop.GetContainerBackgroundColor(dxTarget).Result : containerBackgroundColor; + get => isInitialized ? (string)DevExpress.Viz.DxChartInterop.GetContainerBackgroundColor(dxTarget).Result : containerBackgroundColor; set { if (isInitialized) { DevExpress.Viz.DxChartInterop.SetContainerBackgroundColor(dxTarget, value); @@ -187,7 +222,7 @@ return DevExpress.Viz.DxChartInterop.Init(dxTarget, options); string defaultPane; [Parameter] string DefaultPane { - get => isInitialized ? DevExpress.Viz.DxChartInterop.GetDefaultPane(dxTarget).Result : defaultPane; + get => isInitialized ? (string)DevExpress.Viz.DxChartInterop.GetDefaultPane(dxTarget).Result : defaultPane; set { if (isInitialized) { DevExpress.Viz.DxChartInterop.SetDefaultPane(dxTarget, value); @@ -199,7 +234,7 @@ return DevExpress.Viz.DxChartInterop.Init(dxTarget, options); bool? equalBarWidth; [Parameter] bool? EqualBarWidth { - get => isInitialized ? DevExpress.Viz.DxChartInterop.GetEqualBarWidth(dxTarget).Result : equalBarWidth; + get => isInitialized ? (bool?)DevExpress.Viz.DxChartInterop.GetEqualBarWidth(dxTarget).Result : equalBarWidth; set { if (isInitialized) { DevExpress.Viz.DxChartInterop.SetEqualBarWidth(dxTarget, value); @@ -223,7 +258,7 @@ return DevExpress.Viz.DxChartInterop.Init(dxTarget, options); float? maxBubbleSize; [Parameter] float? MaxBubbleSize { - get => isInitialized ? DevExpress.Viz.DxChartInterop.GetMaxBubbleSize(dxTarget).Result : maxBubbleSize; + get => isInitialized ? (float?)DevExpress.Viz.DxChartInterop.GetMaxBubbleSize(dxTarget).Result : maxBubbleSize; set { if (isInitialized) { DevExpress.Viz.DxChartInterop.SetMaxBubbleSize(dxTarget, value); @@ -235,7 +270,7 @@ return DevExpress.Viz.DxChartInterop.Init(dxTarget, options); float? minBubbleSize; [Parameter] float? MinBubbleSize { - get => isInitialized ? DevExpress.Viz.DxChartInterop.GetMinBubbleSize(dxTarget).Result : minBubbleSize; + get => isInitialized ? (float?)DevExpress.Viz.DxChartInterop.GetMinBubbleSize(dxTarget).Result : minBubbleSize; set { if (isInitialized) { DevExpress.Viz.DxChartInterop.SetMinBubbleSize(dxTarget, value); @@ -247,7 +282,7 @@ return DevExpress.Viz.DxChartInterop.Init(dxTarget, options); bool? negativesAsZeroes; [Parameter] bool? NegativesAsZeroes { - get => isInitialized ? DevExpress.Viz.DxChartInterop.GetNegativesAsZeroes(dxTarget).Result : negativesAsZeroes; + get => isInitialized ? (bool?)DevExpress.Viz.DxChartInterop.GetNegativesAsZeroes(dxTarget).Result : negativesAsZeroes; set { if (isInitialized) { DevExpress.Viz.DxChartInterop.SetNegativesAsZeroes(dxTarget, value); @@ -271,7 +306,7 @@ return DevExpress.Viz.DxChartInterop.Init(dxTarget, options); string resolveLabelOverlapping; [Parameter] string ResolveLabelOverlapping { - get => isInitialized ? DevExpress.Viz.DxChartInterop.GetResolveLabelOverlapping(dxTarget).Result : resolveLabelOverlapping; + get => isInitialized ? (string)DevExpress.Viz.DxChartInterop.GetResolveLabelOverlapping(dxTarget).Result : resolveLabelOverlapping; set { if (isInitialized) { DevExpress.Viz.DxChartInterop.SetResolveLabelOverlapping(dxTarget, value); @@ -283,7 +318,7 @@ return DevExpress.Viz.DxChartInterop.Init(dxTarget, options); bool? rotated; [Parameter] bool? Rotated { - get => isInitialized ? DevExpress.Viz.DxChartInterop.GetRotated(dxTarget).Result : rotated; + get => isInitialized ? (bool?)DevExpress.Viz.DxChartInterop.GetRotated(dxTarget).Result : rotated; set { if (isInitialized) { DevExpress.Viz.DxChartInterop.SetRotated(dxTarget, value); @@ -307,7 +342,7 @@ return DevExpress.Viz.DxChartInterop.Init(dxTarget, options); string scrollingMode; [Parameter] string ScrollingMode { - get => isInitialized ? DevExpress.Viz.DxChartInterop.GetScrollingMode(dxTarget).Result : scrollingMode; + get => isInitialized ? (string)DevExpress.Viz.DxChartInterop.GetScrollingMode(dxTarget).Result : scrollingMode; set { if (isInitialized) { DevExpress.Viz.DxChartInterop.SetScrollingMode(dxTarget, value); @@ -331,7 +366,7 @@ return DevExpress.Viz.DxChartInterop.Init(dxTarget, options); string seriesSelectionMode; [Parameter] string SeriesSelectionMode { - get => isInitialized ? DevExpress.Viz.DxChartInterop.GetSeriesSelectionMode(dxTarget).Result : seriesSelectionMode; + get => isInitialized ? (string)DevExpress.Viz.DxChartInterop.GetSeriesSelectionMode(dxTarget).Result : seriesSelectionMode; set { if (isInitialized) { DevExpress.Viz.DxChartInterop.SetSeriesSelectionMode(dxTarget, value); @@ -355,7 +390,7 @@ return DevExpress.Viz.DxChartInterop.Init(dxTarget, options); bool? synchronizeMultiAxes; [Parameter] bool? SynchronizeMultiAxes { - get => isInitialized ? DevExpress.Viz.DxChartInterop.GetSynchronizeMultiAxes(dxTarget).Result : synchronizeMultiAxes; + get => isInitialized ? (bool?)DevExpress.Viz.DxChartInterop.GetSynchronizeMultiAxes(dxTarget).Result : synchronizeMultiAxes; set { if (isInitialized) { DevExpress.Viz.DxChartInterop.SetSynchronizeMultiAxes(dxTarget, value); @@ -379,7 +414,7 @@ return DevExpress.Viz.DxChartInterop.Init(dxTarget, options); bool? useAggregation; [Parameter] bool? UseAggregation { - get => isInitialized ? DevExpress.Viz.DxChartInterop.GetUseAggregation(dxTarget).Result : useAggregation; + get => isInitialized ? (bool?)DevExpress.Viz.DxChartInterop.GetUseAggregation(dxTarget).Result : useAggregation; set { if (isInitialized) { DevExpress.Viz.DxChartInterop.SetUseAggregation(dxTarget, value); @@ -403,7 +438,7 @@ return DevExpress.Viz.DxChartInterop.Init(dxTarget, options); string zoomingMode; [Parameter] string ZoomingMode { - get => isInitialized ? DevExpress.Viz.DxChartInterop.GetZoomingMode(dxTarget).Result : zoomingMode; + get => isInitialized ? (string)DevExpress.Viz.DxChartInterop.GetZoomingMode(dxTarget).Result : zoomingMode; set { if (isInitialized) { DevExpress.Viz.DxChartInterop.SetZoomingMode(dxTarget, value); @@ -412,6 +447,258 @@ return DevExpress.Viz.DxChartInterop.Init(dxTarget, options); } } } + object adaptiveLayout; + [Parameter] + object AdaptiveLayout { + get => isInitialized ? DevExpress.Viz.DxChartInterop.GetAdaptiveLayout(dxTarget).Result : adaptiveLayout; + set { + if (isInitialized) { + DevExpress.Viz.DxChartInterop.SetAdaptiveLayout(dxTarget, value); + } else { + this.adaptiveLayout = value; + } + } + } + object animation; + [Parameter] + object Animation { + get => isInitialized ? DevExpress.Viz.DxChartInterop.GetAnimation(dxTarget).Result : animation; + set { + if (isInitialized) { + DevExpress.Viz.DxChartInterop.SetAnimation(dxTarget, value); + } else { + this.animation = value; + } + } + } + object customizeLabel; + [Parameter] + object CustomizeLabel { + get => isInitialized ? DevExpress.Viz.DxChartInterop.GetCustomizeLabel(dxTarget).Result : customizeLabel; + set { + if (isInitialized) { + DevExpress.Viz.DxChartInterop.SetCustomizeLabel(dxTarget, value); + } else { + this.customizeLabel = value; + } + } + } + object customizePoint; + [Parameter] + object CustomizePoint { + get => isInitialized ? DevExpress.Viz.DxChartInterop.GetCustomizePoint(dxTarget).Result : customizePoint; + set { + if (isInitialized) { + DevExpress.Viz.DxChartInterop.SetCustomizePoint(dxTarget, value); + } else { + this.customizePoint = value; + } + } + } + object dataSource; + [Parameter] + object DataSource { + get => isInitialized ? DevExpress.Viz.DxChartInterop.GetDataSource(dxTarget).Result : dataSource; + set { + if (isInitialized) { + DevExpress.Viz.DxChartInterop.SetDataSource(dxTarget, value); + } else { + this.dataSource = value; + } + } + } + object palette; + [Parameter] + object Palette { + get => isInitialized ? DevExpress.Viz.DxChartInterop.GetPalette(dxTarget).Result : palette; + set { + if (isInitialized) { + DevExpress.Viz.DxChartInterop.SetPalette(dxTarget, value); + } else { + this.palette = value; + } + } + } + string paletteExtensionMode; + [Parameter] + string PaletteExtensionMode { + get => isInitialized ? (string)DevExpress.Viz.DxChartInterop.GetPaletteExtensionMode(dxTarget).Result : paletteExtensionMode; + set { + if (isInitialized) { + DevExpress.Viz.DxChartInterop.SetPaletteExtensionMode(dxTarget, value); + } else { + this.paletteExtensionMode = value; + } + } + } + string pointSelectionMode; + [Parameter] + string PointSelectionMode { + get => isInitialized ? (string)DevExpress.Viz.DxChartInterop.GetPointSelectionMode(dxTarget).Result : pointSelectionMode; + set { + if (isInitialized) { + DevExpress.Viz.DxChartInterop.SetPointSelectionMode(dxTarget, value); + } else { + this.pointSelectionMode = value; + } + } + } + object export; + [Parameter] + object Export { + get => isInitialized ? DevExpress.Viz.DxChartInterop.GetExport(dxTarget).Result : export; + set { + if (isInitialized) { + DevExpress.Viz.DxChartInterop.SetExport(dxTarget, value); + } else { + this.export = value; + } + } + } + object loadingIndicator; + [Parameter] + object LoadingIndicator { + get => isInitialized ? DevExpress.Viz.DxChartInterop.GetLoadingIndicator(dxTarget).Result : loadingIndicator; + set { + if (isInitialized) { + DevExpress.Viz.DxChartInterop.SetLoadingIndicator(dxTarget, value); + } else { + this.loadingIndicator = value; + } + } + } + object margin; + [Parameter] + object Margin { + get => isInitialized ? DevExpress.Viz.DxChartInterop.GetMargin(dxTarget).Result : margin; + set { + if (isInitialized) { + DevExpress.Viz.DxChartInterop.SetMargin(dxTarget, value); + } else { + this.margin = value; + } + } + } + bool? pathModified; + [Parameter] + bool? PathModified { + get => isInitialized ? (bool?)DevExpress.Viz.DxChartInterop.GetPathModified(dxTarget).Result : pathModified; + set { + if (isInitialized) { + DevExpress.Viz.DxChartInterop.SetPathModified(dxTarget, value); + } else { + this.pathModified = value; + } + } + } + bool? redrawOnResize; + [Parameter] + bool? RedrawOnResize { + get => isInitialized ? (bool?)DevExpress.Viz.DxChartInterop.GetRedrawOnResize(dxTarget).Result : redrawOnResize; + set { + if (isInitialized) { + DevExpress.Viz.DxChartInterop.SetRedrawOnResize(dxTarget, value); + } else { + this.redrawOnResize = value; + } + } + } + bool? rtlEnabled; + [Parameter] + bool? RtlEnabled { + get => isInitialized ? (bool?)DevExpress.Viz.DxChartInterop.GetRtlEnabled(dxTarget).Result : rtlEnabled; + set { + if (isInitialized) { + DevExpress.Viz.DxChartInterop.SetRtlEnabled(dxTarget, value); + } else { + this.rtlEnabled = value; + } + } + } + object size; + [Parameter] + object Size { + get => isInitialized ? DevExpress.Viz.DxChartInterop.GetSize(dxTarget).Result : size; + set { + if (isInitialized) { + DevExpress.Viz.DxChartInterop.SetSize(dxTarget, value); + } else { + this.size = value; + } + } + } + string theme; + [Parameter] + string Theme { + get => isInitialized ? (string)DevExpress.Viz.DxChartInterop.GetTheme(dxTarget).Result : theme; + set { + if (isInitialized) { + DevExpress.Viz.DxChartInterop.SetTheme(dxTarget, value); + } else { + this.theme = value; + } + } + } + object title; + [Parameter] + object Title { + get => isInitialized ? DevExpress.Viz.DxChartInterop.GetTitle(dxTarget).Result : title; + set { + if (isInitialized) { + DevExpress.Viz.DxChartInterop.SetTitle(dxTarget, value); + } else { + this.title = value; + } + } + } + object bindingOptions; + [Parameter] + object BindingOptions { + get => isInitialized ? DevExpress.Viz.DxChartInterop.GetBindingOptions(dxTarget).Result : bindingOptions; + set { + if (isInitialized) { + DevExpress.Viz.DxChartInterop.SetBindingOptions(dxTarget, value); + } else { + this.bindingOptions = value; + } + } + } + object elementAttr; + [Parameter] + object ElementAttr { + get => isInitialized ? DevExpress.Viz.DxChartInterop.GetElementAttr(dxTarget).Result : elementAttr; + set { + if (isInitialized) { + DevExpress.Viz.DxChartInterop.SetElementAttr(dxTarget, value); + } else { + this.elementAttr = value; + } + } + } + object height; + [Parameter] + object Height { + get => isInitialized ? DevExpress.Viz.DxChartInterop.GetHeight(dxTarget).Result : height; + set { + if (isInitialized) { + DevExpress.Viz.DxChartInterop.SetHeight(dxTarget, value); + } else { + this.height = value; + } + } + } + object width; + [Parameter] + object Width { + get => isInitialized ? DevExpress.Viz.DxChartInterop.GetWidth(dxTarget).Result : width; + set { + if (isInitialized) { + DevExpress.Viz.DxChartInterop.SetWidth(dxTarget, value); + } else { + this.width = value; + } + } + } bool? onArgumentAxisClickEnabled; [Parameter] bool? OnArgumentAxisClickEnabled { @@ -454,6 +741,90 @@ return DevExpress.Viz.DxChartInterop.Init(dxTarget, options); get => onZoomStartEnabled; set => this.onZoomStartEnabled = value; } + bool? onDoneEnabled; + [Parameter] + bool? OnDoneEnabled { + get => onDoneEnabled; + set => this.onDoneEnabled = value; + } + bool? onPointClickEnabled; + [Parameter] + bool? OnPointClickEnabled { + get => onPointClickEnabled; + set => this.onPointClickEnabled = value; + } + bool? onPointHoverChangedEnabled; + [Parameter] + bool? OnPointHoverChangedEnabled { + get => onPointHoverChangedEnabled; + set => this.onPointHoverChangedEnabled = value; + } + bool? onPointSelectionChangedEnabled; + [Parameter] + bool? OnPointSelectionChangedEnabled { + get => onPointSelectionChangedEnabled; + set => this.onPointSelectionChangedEnabled = value; + } + bool? onTooltipHiddenEnabled; + [Parameter] + bool? OnTooltipHiddenEnabled { + get => onTooltipHiddenEnabled; + set => this.onTooltipHiddenEnabled = value; + } + bool? onTooltipShownEnabled; + [Parameter] + bool? OnTooltipShownEnabled { + get => onTooltipShownEnabled; + set => this.onTooltipShownEnabled = value; + } + bool? onDrawnEnabled; + [Parameter] + bool? OnDrawnEnabled { + get => onDrawnEnabled; + set => this.onDrawnEnabled = value; + } + bool? onExportedEnabled; + [Parameter] + bool? OnExportedEnabled { + get => onExportedEnabled; + set => this.onExportedEnabled = value; + } + bool? onExportingEnabled; + [Parameter] + bool? OnExportingEnabled { + get => onExportingEnabled; + set => this.onExportingEnabled = value; + } + bool? onFileSavingEnabled; + [Parameter] + bool? OnFileSavingEnabled { + get => onFileSavingEnabled; + set => this.onFileSavingEnabled = value; + } + bool? onIncidentOccurredEnabled; + [Parameter] + bool? OnIncidentOccurredEnabled { + get => onIncidentOccurredEnabled; + set => this.onIncidentOccurredEnabled = value; + } + bool? onDisposingEnabled; + [Parameter] + bool? OnDisposingEnabled { + get => onDisposingEnabled; + set => this.onDisposingEnabled = value; + } + bool? onOptionChangedEnabled; + [Parameter] + bool? OnOptionChangedEnabled { + get => onOptionChangedEnabled; + set => this.onOptionChangedEnabled = value; + } + bool? onInitializedEnabled; + [Parameter] + bool? OnInitializedEnabled { + get => onInitializedEnabled; + set => this.onInitializedEnabled = value; + } protected override async Task OnInitAsync() { await base.OnInitAsync(); DevExpress.Viz.DxChartInterop.ArgumentAxisClick += DxChart_ArgumentAxisClick; @@ -463,6 +834,20 @@ return DevExpress.Viz.DxChartInterop.Init(dxTarget, options); DevExpress.Viz.DxChartInterop.SeriesSelectionChanged += DxChart_SeriesSelectionChanged; DevExpress.Viz.DxChartInterop.ZoomEnd += DxChart_ZoomEnd; DevExpress.Viz.DxChartInterop.ZoomStart += DxChart_ZoomStart; + DevExpress.Viz.DxChartInterop.Done += DxChart_Done; + DevExpress.Viz.DxChartInterop.PointClick += DxChart_PointClick; + DevExpress.Viz.DxChartInterop.PointHoverChanged += DxChart_PointHoverChanged; + DevExpress.Viz.DxChartInterop.PointSelectionChanged += DxChart_PointSelectionChanged; + DevExpress.Viz.DxChartInterop.TooltipHidden += DxChart_TooltipHidden; + DevExpress.Viz.DxChartInterop.TooltipShown += DxChart_TooltipShown; + DevExpress.Viz.DxChartInterop.Drawn += DxChart_Drawn; + DevExpress.Viz.DxChartInterop.Exported += DxChart_Exported; + DevExpress.Viz.DxChartInterop.Exporting += DxChart_Exporting; + DevExpress.Viz.DxChartInterop.FileSaving += DxChart_FileSaving; + DevExpress.Viz.DxChartInterop.IncidentOccurred += DxChart_IncidentOccurred; + DevExpress.Viz.DxChartInterop.Disposing += DxChart_Disposing; + DevExpress.Viz.DxChartInterop.OptionChanged += DxChart_OptionChanged; + DevExpress.Viz.DxChartInterop.Initialized += DxChart_Initialized; } [Parameter] Action ArgumentAxisClick { get; set; } @@ -513,6 +898,104 @@ return DevExpress.Viz.DxChartInterop.Init(dxTarget, options); ZoomStart?.Invoke(); } } + [Parameter] + Action Done { get; set; } + void DxChart_Done(object sender, JQueryEventArgs e) { + if (e.Identifier == Id) { + Done?.Invoke(); + } + } + [Parameter] + Action PointClick { get; set; } + void DxChart_PointClick(object sender, JQueryEventArgs e) { + if (e.Identifier == Id) { + PointClick?.Invoke(); + } + } + [Parameter] + Action PointHoverChanged { get; set; } + void DxChart_PointHoverChanged(object sender, JQueryEventArgs e) { + if (e.Identifier == Id) { + PointHoverChanged?.Invoke(); + } + } + [Parameter] + Action PointSelectionChanged { get; set; } + void DxChart_PointSelectionChanged(object sender, JQueryEventArgs e) { + if (e.Identifier == Id) { + PointSelectionChanged?.Invoke(); + } + } + [Parameter] + Action TooltipHidden { get; set; } + void DxChart_TooltipHidden(object sender, JQueryEventArgs e) { + if (e.Identifier == Id) { + TooltipHidden?.Invoke(); + } + } + [Parameter] + Action TooltipShown { get; set; } + void DxChart_TooltipShown(object sender, JQueryEventArgs e) { + if (e.Identifier == Id) { + TooltipShown?.Invoke(); + } + } + [Parameter] + Action Drawn { get; set; } + void DxChart_Drawn(object sender, JQueryEventArgs e) { + if (e.Identifier == Id) { + Drawn?.Invoke(); + } + } + [Parameter] + Action Exported { get; set; } + void DxChart_Exported(object sender, JQueryEventArgs e) { + if (e.Identifier == Id) { + Exported?.Invoke(); + } + } + [Parameter] + Action Exporting { get; set; } + void DxChart_Exporting(object sender, JQueryEventArgs e) { + if (e.Identifier == Id) { + Exporting?.Invoke(); + } + } + [Parameter] + Action FileSaving { get; set; } + void DxChart_FileSaving(object sender, JQueryEventArgs e) { + if (e.Identifier == Id) { + FileSaving?.Invoke(); + } + } + [Parameter] + Action IncidentOccurred { get; set; } + void DxChart_IncidentOccurred(object sender, JQueryEventArgs e) { + if (e.Identifier == Id) { + IncidentOccurred?.Invoke(); + } + } + [Parameter] + Action Disposing { get; set; } + void DxChart_Disposing(object sender, JQueryEventArgs e) { + if (e.Identifier == Id) { + Disposing?.Invoke(); + } + } + [Parameter] + Action OptionChanged { get; set; } + void DxChart_OptionChanged(object sender, JQueryEventArgs e) { + if (e.Identifier == Id) { + OptionChanged?.Invoke(); + } + } + [Parameter] + Action Initialized { get; set; } + void DxChart_Initialized(object sender, JQueryEventArgs e) { + if (e.Identifier == Id) { + Initialized?.Invoke(); + } + } public void ZoomArgument(object startValue, object endValue) { DevExpress.Viz.DxChartInterop.ZoomArgument(dxTarget, startValue, endValue); } @@ -524,5 +1007,19 @@ return DevExpress.Viz.DxChartInterop.Init(dxTarget, options); DevExpress.Viz.DxChartInterop.SeriesSelectionChanged -= DxChart_SeriesSelectionChanged; DevExpress.Viz.DxChartInterop.ZoomEnd -= DxChart_ZoomEnd; DevExpress.Viz.DxChartInterop.ZoomStart -= DxChart_ZoomStart; + DevExpress.Viz.DxChartInterop.Done -= DxChart_Done; + DevExpress.Viz.DxChartInterop.PointClick -= DxChart_PointClick; + DevExpress.Viz.DxChartInterop.PointHoverChanged -= DxChart_PointHoverChanged; + DevExpress.Viz.DxChartInterop.PointSelectionChanged -= DxChart_PointSelectionChanged; + DevExpress.Viz.DxChartInterop.TooltipHidden -= DxChart_TooltipHidden; + DevExpress.Viz.DxChartInterop.TooltipShown -= DxChart_TooltipShown; + DevExpress.Viz.DxChartInterop.Drawn -= DxChart_Drawn; + DevExpress.Viz.DxChartInterop.Exported -= DxChart_Exported; + DevExpress.Viz.DxChartInterop.Exporting -= DxChart_Exporting; + DevExpress.Viz.DxChartInterop.FileSaving -= DxChart_FileSaving; + DevExpress.Viz.DxChartInterop.IncidentOccurred -= DxChart_IncidentOccurred; + DevExpress.Viz.DxChartInterop.Disposing -= DxChart_Disposing; + DevExpress.Viz.DxChartInterop.OptionChanged -= DxChart_OptionChanged; + DevExpress.Viz.DxChartInterop.Initialized -= DxChart_Initialized; } } diff --git a/sources/BlazorDevExtreme/Components/DxCheckBox.cshtml b/sources/BlazorDevExtreme/Components/DxCheckBox.cshtml index 2abfd87..592eca9 100644 --- a/sources/BlazorDevExtreme/Components/DxCheckBox.cshtml +++ b/sources/BlazorDevExtreme/Components/DxCheckBox.cshtml @@ -16,15 +16,34 @@ name = name, text = text, value = value, + isValid = isValid, + readOnly = readOnly, + validationError = validationError, + validationMessageMode = validationMessageMode, + accessKey = accessKey, + disabled = disabled, + hint = hint, + tabIndex = tabIndex, + visible = visible, + bindingOptions = bindingOptions, + elementAttr = elementAttr, + height = height, + rtlEnabled = rtlEnabled, + width = width, + onValueChangedEnabled = onValueChangedEnabled, + onContentReadyEnabled = onContentReadyEnabled, + onDisposingEnabled = onDisposingEnabled, + onOptionChangedEnabled = onOptionChangedEnabled, + onInitializedEnabled = onInitializedEnabled, }; } protected override Task Init(DevExpress.Ui.DxCheckBoxOptions options) { -return DevExpress.Ui.DxCheckBoxInterop.Init(dxTarget, options); + return DevExpress.Ui.DxCheckBoxInterop.Init(dxTarget, options); } bool? activeStateEnabled; [Parameter] bool? ActiveStateEnabled { - get => isInitialized ? DevExpress.Ui.DxCheckBoxInterop.GetActiveStateEnabled(dxTarget).Result : activeStateEnabled; + get => isInitialized ? (bool?)DevExpress.Ui.DxCheckBoxInterop.GetActiveStateEnabled(dxTarget).Result : activeStateEnabled; set { if (isInitialized) { DevExpress.Ui.DxCheckBoxInterop.SetActiveStateEnabled(dxTarget, value); @@ -36,7 +55,7 @@ return DevExpress.Ui.DxCheckBoxInterop.Init(dxTarget, options); bool? focusStateEnabled; [Parameter] bool? FocusStateEnabled { - get => isInitialized ? DevExpress.Ui.DxCheckBoxInterop.GetFocusStateEnabled(dxTarget).Result : focusStateEnabled; + get => isInitialized ? (bool?)DevExpress.Ui.DxCheckBoxInterop.GetFocusStateEnabled(dxTarget).Result : focusStateEnabled; set { if (isInitialized) { DevExpress.Ui.DxCheckBoxInterop.SetFocusStateEnabled(dxTarget, value); @@ -48,7 +67,7 @@ return DevExpress.Ui.DxCheckBoxInterop.Init(dxTarget, options); bool? hoverStateEnabled; [Parameter] bool? HoverStateEnabled { - get => isInitialized ? DevExpress.Ui.DxCheckBoxInterop.GetHoverStateEnabled(dxTarget).Result : hoverStateEnabled; + get => isInitialized ? (bool?)DevExpress.Ui.DxCheckBoxInterop.GetHoverStateEnabled(dxTarget).Result : hoverStateEnabled; set { if (isInitialized) { DevExpress.Ui.DxCheckBoxInterop.SetHoverStateEnabled(dxTarget, value); @@ -60,7 +79,7 @@ return DevExpress.Ui.DxCheckBoxInterop.Init(dxTarget, options); string name; [Parameter] string Name { - get => isInitialized ? DevExpress.Ui.DxCheckBoxInterop.GetName(dxTarget).Result : name; + get => isInitialized ? (string)DevExpress.Ui.DxCheckBoxInterop.GetName(dxTarget).Result : name; set { if (isInitialized) { DevExpress.Ui.DxCheckBoxInterop.SetName(dxTarget, value); @@ -72,7 +91,7 @@ return DevExpress.Ui.DxCheckBoxInterop.Init(dxTarget, options); string text; [Parameter] string Text { - get => isInitialized ? DevExpress.Ui.DxCheckBoxInterop.GetText(dxTarget).Result : text; + get => isInitialized ? (string)DevExpress.Ui.DxCheckBoxInterop.GetText(dxTarget).Result : text; set { if (isInitialized) { DevExpress.Ui.DxCheckBoxInterop.SetText(dxTarget, value); @@ -84,7 +103,7 @@ return DevExpress.Ui.DxCheckBoxInterop.Init(dxTarget, options); bool? value; [Parameter] bool? Value { - get => isInitialized ? DevExpress.Ui.DxCheckBoxInterop.GetValue(dxTarget).Result : value; + get => isInitialized ? (bool?)DevExpress.Ui.DxCheckBoxInterop.GetValue(dxTarget).Result : value; set { if (isInitialized) { DevExpress.Ui.DxCheckBoxInterop.SetValue(dxTarget, value); @@ -93,9 +112,252 @@ return DevExpress.Ui.DxCheckBoxInterop.Init(dxTarget, options); } } } + bool? isValid; + [Parameter] + bool? IsValid { + get => isInitialized ? (bool?)DevExpress.Ui.DxCheckBoxInterop.GetIsValid(dxTarget).Result : isValid; + set { + if (isInitialized) { + DevExpress.Ui.DxCheckBoxInterop.SetIsValid(dxTarget, value); + } else { + this.isValid = value; + } + } + } + bool? readOnly; + [Parameter] + bool? ReadOnly { + get => isInitialized ? (bool?)DevExpress.Ui.DxCheckBoxInterop.GetReadOnly(dxTarget).Result : readOnly; + set { + if (isInitialized) { + DevExpress.Ui.DxCheckBoxInterop.SetReadOnly(dxTarget, value); + } else { + this.readOnly = value; + } + } + } + object validationError; + [Parameter] + object ValidationError { + get => isInitialized ? DevExpress.Ui.DxCheckBoxInterop.GetValidationError(dxTarget).Result : validationError; + set { + if (isInitialized) { + DevExpress.Ui.DxCheckBoxInterop.SetValidationError(dxTarget, value); + } else { + this.validationError = value; + } + } + } + string validationMessageMode; + [Parameter] + string ValidationMessageMode { + get => isInitialized ? (string)DevExpress.Ui.DxCheckBoxInterop.GetValidationMessageMode(dxTarget).Result : validationMessageMode; + set { + if (isInitialized) { + DevExpress.Ui.DxCheckBoxInterop.SetValidationMessageMode(dxTarget, value); + } else { + this.validationMessageMode = value; + } + } + } + string accessKey; + [Parameter] + string AccessKey { + get => isInitialized ? (string)DevExpress.Ui.DxCheckBoxInterop.GetAccessKey(dxTarget).Result : accessKey; + set { + if (isInitialized) { + DevExpress.Ui.DxCheckBoxInterop.SetAccessKey(dxTarget, value); + } else { + this.accessKey = value; + } + } + } + bool? disabled; + [Parameter] + bool? Disabled { + get => isInitialized ? (bool?)DevExpress.Ui.DxCheckBoxInterop.GetDisabled(dxTarget).Result : disabled; + set { + if (isInitialized) { + DevExpress.Ui.DxCheckBoxInterop.SetDisabled(dxTarget, value); + } else { + this.disabled = value; + } + } + } + string hint; + [Parameter] + string Hint { + get => isInitialized ? (string)DevExpress.Ui.DxCheckBoxInterop.GetHint(dxTarget).Result : hint; + set { + if (isInitialized) { + DevExpress.Ui.DxCheckBoxInterop.SetHint(dxTarget, value); + } else { + this.hint = value; + } + } + } + float? tabIndex; + [Parameter] + float? TabIndex { + get => isInitialized ? (float?)DevExpress.Ui.DxCheckBoxInterop.GetTabIndex(dxTarget).Result : tabIndex; + set { + if (isInitialized) { + DevExpress.Ui.DxCheckBoxInterop.SetTabIndex(dxTarget, value); + } else { + this.tabIndex = value; + } + } + } + bool? visible; + [Parameter] + bool? Visible { + get => isInitialized ? (bool?)DevExpress.Ui.DxCheckBoxInterop.GetVisible(dxTarget).Result : visible; + set { + if (isInitialized) { + DevExpress.Ui.DxCheckBoxInterop.SetVisible(dxTarget, value); + } else { + this.visible = value; + } + } + } + object bindingOptions; + [Parameter] + object BindingOptions { + get => isInitialized ? DevExpress.Ui.DxCheckBoxInterop.GetBindingOptions(dxTarget).Result : bindingOptions; + set { + if (isInitialized) { + DevExpress.Ui.DxCheckBoxInterop.SetBindingOptions(dxTarget, value); + } else { + this.bindingOptions = value; + } + } + } + object elementAttr; + [Parameter] + object ElementAttr { + get => isInitialized ? DevExpress.Ui.DxCheckBoxInterop.GetElementAttr(dxTarget).Result : elementAttr; + set { + if (isInitialized) { + DevExpress.Ui.DxCheckBoxInterop.SetElementAttr(dxTarget, value); + } else { + this.elementAttr = value; + } + } + } + object height; + [Parameter] + object Height { + get => isInitialized ? DevExpress.Ui.DxCheckBoxInterop.GetHeight(dxTarget).Result : height; + set { + if (isInitialized) { + DevExpress.Ui.DxCheckBoxInterop.SetHeight(dxTarget, value); + } else { + this.height = value; + } + } + } + bool? rtlEnabled; + [Parameter] + bool? RtlEnabled { + get => isInitialized ? (bool?)DevExpress.Ui.DxCheckBoxInterop.GetRtlEnabled(dxTarget).Result : rtlEnabled; + set { + if (isInitialized) { + DevExpress.Ui.DxCheckBoxInterop.SetRtlEnabled(dxTarget, value); + } else { + this.rtlEnabled = value; + } + } + } + object width; + [Parameter] + object Width { + get => isInitialized ? DevExpress.Ui.DxCheckBoxInterop.GetWidth(dxTarget).Result : width; + set { + if (isInitialized) { + DevExpress.Ui.DxCheckBoxInterop.SetWidth(dxTarget, value); + } else { + this.width = value; + } + } + } + bool? onValueChangedEnabled; + [Parameter] + bool? OnValueChangedEnabled { + get => onValueChangedEnabled; + set => this.onValueChangedEnabled = value; + } + bool? onContentReadyEnabled; + [Parameter] + bool? OnContentReadyEnabled { + get => onContentReadyEnabled; + set => this.onContentReadyEnabled = value; + } + bool? onDisposingEnabled; + [Parameter] + bool? OnDisposingEnabled { + get => onDisposingEnabled; + set => this.onDisposingEnabled = value; + } + bool? onOptionChangedEnabled; + [Parameter] + bool? OnOptionChangedEnabled { + get => onOptionChangedEnabled; + set => this.onOptionChangedEnabled = value; + } + bool? onInitializedEnabled; + [Parameter] + bool? OnInitializedEnabled { + get => onInitializedEnabled; + set => this.onInitializedEnabled = value; + } protected override async Task OnInitAsync() { await base.OnInitAsync(); + DevExpress.Ui.DxCheckBoxInterop.ValueChanged += DxCheckBox_ValueChanged; + DevExpress.Ui.DxCheckBoxInterop.ContentReady += DxCheckBox_ContentReady; + DevExpress.Ui.DxCheckBoxInterop.Disposing += DxCheckBox_Disposing; + DevExpress.Ui.DxCheckBoxInterop.OptionChanged += DxCheckBox_OptionChanged; + DevExpress.Ui.DxCheckBoxInterop.Initialized += DxCheckBox_Initialized; + } + [Parameter] + Action ValueChanged { get; set; } + void DxCheckBox_ValueChanged(object sender, JQueryEventArgs e) { + if (e.Identifier == Id) { + ValueChanged?.Invoke(); + } + } + [Parameter] + Action ContentReady { get; set; } + void DxCheckBox_ContentReady(object sender, JQueryEventArgs e) { + if (e.Identifier == Id) { + ContentReady?.Invoke(); + } + } + [Parameter] + Action Disposing { get; set; } + void DxCheckBox_Disposing(object sender, JQueryEventArgs e) { + if (e.Identifier == Id) { + Disposing?.Invoke(); + } + } + [Parameter] + Action OptionChanged { get; set; } + void DxCheckBox_OptionChanged(object sender, JQueryEventArgs e) { + if (e.Identifier == Id) { + OptionChanged?.Invoke(); + } + } + [Parameter] + Action Initialized { get; set; } + void DxCheckBox_Initialized(object sender, JQueryEventArgs e) { + if (e.Identifier == Id) { + Initialized?.Invoke(); + } } public void Dispose() { + DevExpress.Ui.DxCheckBoxInterop.ValueChanged -= DxCheckBox_ValueChanged; + DevExpress.Ui.DxCheckBoxInterop.ContentReady -= DxCheckBox_ContentReady; + DevExpress.Ui.DxCheckBoxInterop.Disposing -= DxCheckBox_Disposing; + DevExpress.Ui.DxCheckBoxInterop.OptionChanged -= DxCheckBox_OptionChanged; + DevExpress.Ui.DxCheckBoxInterop.Initialized -= DxCheckBox_Initialized; } } diff --git a/sources/BlazorDevExtreme/Components/DxCircularGauge.cshtml b/sources/BlazorDevExtreme/Components/DxCircularGauge.cshtml index ed60b68..48efec3 100644 --- a/sources/BlazorDevExtreme/Components/DxCircularGauge.cshtml +++ b/sources/BlazorDevExtreme/Components/DxCircularGauge.cshtml @@ -15,10 +15,39 @@ scale = scale, subvalueIndicator = subvalueIndicator, valueIndicator = valueIndicator, + animation = animation, + containerBackgroundColor = containerBackgroundColor, + subtitle = subtitle, + subvalues = subvalues, + title = title, + tooltip = tooltip, + value = value, + export = export, + loadingIndicator = loadingIndicator, + margin = margin, + pathModified = pathModified, + redrawOnResize = redrawOnResize, + rtlEnabled = rtlEnabled, + size = size, + theme = theme, + bindingOptions = bindingOptions, + elementAttr = elementAttr, + height = height, + width = width, + onTooltipHiddenEnabled = onTooltipHiddenEnabled, + onTooltipShownEnabled = onTooltipShownEnabled, + onDrawnEnabled = onDrawnEnabled, + onExportedEnabled = onExportedEnabled, + onExportingEnabled = onExportingEnabled, + onFileSavingEnabled = onFileSavingEnabled, + onIncidentOccurredEnabled = onIncidentOccurredEnabled, + onDisposingEnabled = onDisposingEnabled, + onOptionChangedEnabled = onOptionChangedEnabled, + onInitializedEnabled = onInitializedEnabled, }; } protected override Task Init(DevExpress.Viz.Gauges.DxCircularGaugeOptions options) { -return DevExpress.Viz.DxCircularGaugeInterop.Init(dxTarget, options); + return DevExpress.Viz.DxCircularGaugeInterop.Init(dxTarget, options); } object geometry; [Parameter] @@ -80,9 +109,387 @@ return DevExpress.Viz.DxCircularGaugeInterop.Init(dxTarget, options); } } } + object animation; + [Parameter] + object Animation { + get => isInitialized ? DevExpress.Viz.DxCircularGaugeInterop.GetAnimation(dxTarget).Result : animation; + set { + if (isInitialized) { + DevExpress.Viz.DxCircularGaugeInterop.SetAnimation(dxTarget, value); + } else { + this.animation = value; + } + } + } + string containerBackgroundColor; + [Parameter] + string ContainerBackgroundColor { + get => isInitialized ? (string)DevExpress.Viz.DxCircularGaugeInterop.GetContainerBackgroundColor(dxTarget).Result : containerBackgroundColor; + set { + if (isInitialized) { + DevExpress.Viz.DxCircularGaugeInterop.SetContainerBackgroundColor(dxTarget, value); + } else { + this.containerBackgroundColor = value; + } + } + } + object subtitle; + [Parameter] + object Subtitle { + get => isInitialized ? DevExpress.Viz.DxCircularGaugeInterop.GetSubtitle(dxTarget).Result : subtitle; + set { + if (isInitialized) { + DevExpress.Viz.DxCircularGaugeInterop.SetSubtitle(dxTarget, value); + } else { + this.subtitle = value; + } + } + } + object subvalues; + [Parameter] + object Subvalues { + get => isInitialized ? DevExpress.Viz.DxCircularGaugeInterop.GetSubvalues(dxTarget).Result : subvalues; + set { + if (isInitialized) { + DevExpress.Viz.DxCircularGaugeInterop.SetSubvalues(dxTarget, value); + } else { + this.subvalues = value; + } + } + } + object title; + [Parameter] + object Title { + get => isInitialized ? DevExpress.Viz.DxCircularGaugeInterop.GetTitle(dxTarget).Result : title; + set { + if (isInitialized) { + DevExpress.Viz.DxCircularGaugeInterop.SetTitle(dxTarget, value); + } else { + this.title = value; + } + } + } + object tooltip; + [Parameter] + object Tooltip { + get => isInitialized ? DevExpress.Viz.DxCircularGaugeInterop.GetTooltip(dxTarget).Result : tooltip; + set { + if (isInitialized) { + DevExpress.Viz.DxCircularGaugeInterop.SetTooltip(dxTarget, value); + } else { + this.tooltip = value; + } + } + } + float? value; + [Parameter] + float? Value { + get => isInitialized ? (float?)DevExpress.Viz.DxCircularGaugeInterop.GetValue(dxTarget).Result : value; + set { + if (isInitialized) { + DevExpress.Viz.DxCircularGaugeInterop.SetValue(dxTarget, value); + } else { + this.value = value; + } + } + } + object export; + [Parameter] + object Export { + get => isInitialized ? DevExpress.Viz.DxCircularGaugeInterop.GetExport(dxTarget).Result : export; + set { + if (isInitialized) { + DevExpress.Viz.DxCircularGaugeInterop.SetExport(dxTarget, value); + } else { + this.export = value; + } + } + } + object loadingIndicator; + [Parameter] + object LoadingIndicator { + get => isInitialized ? DevExpress.Viz.DxCircularGaugeInterop.GetLoadingIndicator(dxTarget).Result : loadingIndicator; + set { + if (isInitialized) { + DevExpress.Viz.DxCircularGaugeInterop.SetLoadingIndicator(dxTarget, value); + } else { + this.loadingIndicator = value; + } + } + } + object margin; + [Parameter] + object Margin { + get => isInitialized ? DevExpress.Viz.DxCircularGaugeInterop.GetMargin(dxTarget).Result : margin; + set { + if (isInitialized) { + DevExpress.Viz.DxCircularGaugeInterop.SetMargin(dxTarget, value); + } else { + this.margin = value; + } + } + } + bool? pathModified; + [Parameter] + bool? PathModified { + get => isInitialized ? (bool?)DevExpress.Viz.DxCircularGaugeInterop.GetPathModified(dxTarget).Result : pathModified; + set { + if (isInitialized) { + DevExpress.Viz.DxCircularGaugeInterop.SetPathModified(dxTarget, value); + } else { + this.pathModified = value; + } + } + } + bool? redrawOnResize; + [Parameter] + bool? RedrawOnResize { + get => isInitialized ? (bool?)DevExpress.Viz.DxCircularGaugeInterop.GetRedrawOnResize(dxTarget).Result : redrawOnResize; + set { + if (isInitialized) { + DevExpress.Viz.DxCircularGaugeInterop.SetRedrawOnResize(dxTarget, value); + } else { + this.redrawOnResize = value; + } + } + } + bool? rtlEnabled; + [Parameter] + bool? RtlEnabled { + get => isInitialized ? (bool?)DevExpress.Viz.DxCircularGaugeInterop.GetRtlEnabled(dxTarget).Result : rtlEnabled; + set { + if (isInitialized) { + DevExpress.Viz.DxCircularGaugeInterop.SetRtlEnabled(dxTarget, value); + } else { + this.rtlEnabled = value; + } + } + } + object size; + [Parameter] + object Size { + get => isInitialized ? DevExpress.Viz.DxCircularGaugeInterop.GetSize(dxTarget).Result : size; + set { + if (isInitialized) { + DevExpress.Viz.DxCircularGaugeInterop.SetSize(dxTarget, value); + } else { + this.size = value; + } + } + } + string theme; + [Parameter] + string Theme { + get => isInitialized ? (string)DevExpress.Viz.DxCircularGaugeInterop.GetTheme(dxTarget).Result : theme; + set { + if (isInitialized) { + DevExpress.Viz.DxCircularGaugeInterop.SetTheme(dxTarget, value); + } else { + this.theme = value; + } + } + } + object bindingOptions; + [Parameter] + object BindingOptions { + get => isInitialized ? DevExpress.Viz.DxCircularGaugeInterop.GetBindingOptions(dxTarget).Result : bindingOptions; + set { + if (isInitialized) { + DevExpress.Viz.DxCircularGaugeInterop.SetBindingOptions(dxTarget, value); + } else { + this.bindingOptions = value; + } + } + } + object elementAttr; + [Parameter] + object ElementAttr { + get => isInitialized ? DevExpress.Viz.DxCircularGaugeInterop.GetElementAttr(dxTarget).Result : elementAttr; + set { + if (isInitialized) { + DevExpress.Viz.DxCircularGaugeInterop.SetElementAttr(dxTarget, value); + } else { + this.elementAttr = value; + } + } + } + object height; + [Parameter] + object Height { + get => isInitialized ? DevExpress.Viz.DxCircularGaugeInterop.GetHeight(dxTarget).Result : height; + set { + if (isInitialized) { + DevExpress.Viz.DxCircularGaugeInterop.SetHeight(dxTarget, value); + } else { + this.height = value; + } + } + } + object width; + [Parameter] + object Width { + get => isInitialized ? DevExpress.Viz.DxCircularGaugeInterop.GetWidth(dxTarget).Result : width; + set { + if (isInitialized) { + DevExpress.Viz.DxCircularGaugeInterop.SetWidth(dxTarget, value); + } else { + this.width = value; + } + } + } + bool? onTooltipHiddenEnabled; + [Parameter] + bool? OnTooltipHiddenEnabled { + get => onTooltipHiddenEnabled; + set => this.onTooltipHiddenEnabled = value; + } + bool? onTooltipShownEnabled; + [Parameter] + bool? OnTooltipShownEnabled { + get => onTooltipShownEnabled; + set => this.onTooltipShownEnabled = value; + } + bool? onDrawnEnabled; + [Parameter] + bool? OnDrawnEnabled { + get => onDrawnEnabled; + set => this.onDrawnEnabled = value; + } + bool? onExportedEnabled; + [Parameter] + bool? OnExportedEnabled { + get => onExportedEnabled; + set => this.onExportedEnabled = value; + } + bool? onExportingEnabled; + [Parameter] + bool? OnExportingEnabled { + get => onExportingEnabled; + set => this.onExportingEnabled = value; + } + bool? onFileSavingEnabled; + [Parameter] + bool? OnFileSavingEnabled { + get => onFileSavingEnabled; + set => this.onFileSavingEnabled = value; + } + bool? onIncidentOccurredEnabled; + [Parameter] + bool? OnIncidentOccurredEnabled { + get => onIncidentOccurredEnabled; + set => this.onIncidentOccurredEnabled = value; + } + bool? onDisposingEnabled; + [Parameter] + bool? OnDisposingEnabled { + get => onDisposingEnabled; + set => this.onDisposingEnabled = value; + } + bool? onOptionChangedEnabled; + [Parameter] + bool? OnOptionChangedEnabled { + get => onOptionChangedEnabled; + set => this.onOptionChangedEnabled = value; + } + bool? onInitializedEnabled; + [Parameter] + bool? OnInitializedEnabled { + get => onInitializedEnabled; + set => this.onInitializedEnabled = value; + } protected override async Task OnInitAsync() { await base.OnInitAsync(); + DevExpress.Viz.DxCircularGaugeInterop.TooltipHidden += DxCircularGauge_TooltipHidden; + DevExpress.Viz.DxCircularGaugeInterop.TooltipShown += DxCircularGauge_TooltipShown; + DevExpress.Viz.DxCircularGaugeInterop.Drawn += DxCircularGauge_Drawn; + DevExpress.Viz.DxCircularGaugeInterop.Exported += DxCircularGauge_Exported; + DevExpress.Viz.DxCircularGaugeInterop.Exporting += DxCircularGauge_Exporting; + DevExpress.Viz.DxCircularGaugeInterop.FileSaving += DxCircularGauge_FileSaving; + DevExpress.Viz.DxCircularGaugeInterop.IncidentOccurred += DxCircularGauge_IncidentOccurred; + DevExpress.Viz.DxCircularGaugeInterop.Disposing += DxCircularGauge_Disposing; + DevExpress.Viz.DxCircularGaugeInterop.OptionChanged += DxCircularGauge_OptionChanged; + DevExpress.Viz.DxCircularGaugeInterop.Initialized += DxCircularGauge_Initialized; + } + [Parameter] + Action TooltipHidden { get; set; } + void DxCircularGauge_TooltipHidden(object sender, JQueryEventArgs e) { + if (e.Identifier == Id) { + TooltipHidden?.Invoke(); + } + } + [Parameter] + Action TooltipShown { get; set; } + void DxCircularGauge_TooltipShown(object sender, JQueryEventArgs e) { + if (e.Identifier == Id) { + TooltipShown?.Invoke(); + } + } + [Parameter] + Action Drawn { get; set; } + void DxCircularGauge_Drawn(object sender, JQueryEventArgs e) { + if (e.Identifier == Id) { + Drawn?.Invoke(); + } + } + [Parameter] + Action Exported { get; set; } + void DxCircularGauge_Exported(object sender, JQueryEventArgs e) { + if (e.Identifier == Id) { + Exported?.Invoke(); + } + } + [Parameter] + Action Exporting { get; set; } + void DxCircularGauge_Exporting(object sender, JQueryEventArgs e) { + if (e.Identifier == Id) { + Exporting?.Invoke(); + } + } + [Parameter] + Action FileSaving { get; set; } + void DxCircularGauge_FileSaving(object sender, JQueryEventArgs e) { + if (e.Identifier == Id) { + FileSaving?.Invoke(); + } + } + [Parameter] + Action IncidentOccurred { get; set; } + void DxCircularGauge_IncidentOccurred(object sender, JQueryEventArgs e) { + if (e.Identifier == Id) { + IncidentOccurred?.Invoke(); + } + } + [Parameter] + Action Disposing { get; set; } + void DxCircularGauge_Disposing(object sender, JQueryEventArgs e) { + if (e.Identifier == Id) { + Disposing?.Invoke(); + } + } + [Parameter] + Action OptionChanged { get; set; } + void DxCircularGauge_OptionChanged(object sender, JQueryEventArgs e) { + if (e.Identifier == Id) { + OptionChanged?.Invoke(); + } + } + [Parameter] + Action Initialized { get; set; } + void DxCircularGauge_Initialized(object sender, JQueryEventArgs e) { + if (e.Identifier == Id) { + Initialized?.Invoke(); + } } public void Dispose() { + DevExpress.Viz.DxCircularGaugeInterop.TooltipHidden -= DxCircularGauge_TooltipHidden; + DevExpress.Viz.DxCircularGaugeInterop.TooltipShown -= DxCircularGauge_TooltipShown; + DevExpress.Viz.DxCircularGaugeInterop.Drawn -= DxCircularGauge_Drawn; + DevExpress.Viz.DxCircularGaugeInterop.Exported -= DxCircularGauge_Exported; + DevExpress.Viz.DxCircularGaugeInterop.Exporting -= DxCircularGauge_Exporting; + DevExpress.Viz.DxCircularGaugeInterop.FileSaving -= DxCircularGauge_FileSaving; + DevExpress.Viz.DxCircularGaugeInterop.IncidentOccurred -= DxCircularGauge_IncidentOccurred; + DevExpress.Viz.DxCircularGaugeInterop.Disposing -= DxCircularGauge_Disposing; + DevExpress.Viz.DxCircularGaugeInterop.OptionChanged -= DxCircularGauge_OptionChanged; + DevExpress.Viz.DxCircularGaugeInterop.Initialized -= DxCircularGauge_Initialized; } } diff --git a/sources/BlazorDevExtreme/Components/DxColorBox.cshtml b/sources/BlazorDevExtreme/Components/DxColorBox.cshtml index bbe9c11..6812d14 100644 --- a/sources/BlazorDevExtreme/Components/DxColorBox.cshtml +++ b/sources/BlazorDevExtreme/Components/DxColorBox.cshtml @@ -17,15 +17,69 @@ fieldTemplate = fieldTemplate, keyStep = keyStep, value = value, + acceptCustomValue = acceptCustomValue, + activeStateEnabled = activeStateEnabled, + deferRendering = deferRendering, + dropDownButtonTemplate = dropDownButtonTemplate, + opened = isOpened, + maxLength = maxLength, + mode = mode, + focusStateEnabled = focusStateEnabled, + hoverStateEnabled = hoverStateEnabled, + inputAttr = inputAttr, + mask = mask, + maskChar = maskChar, + maskInvalidMessage = maskInvalidMessage, + maskRules = maskRules, + name = name, + placeholder = placeholder, + showClearButton = showClearButton, + showMaskMode = showMaskMode, + spellcheck = spellcheck, + text = text, + useMaskedValue = useMaskedValue, + valueChangeEvent = valueChangeEvent, + isValid = isValid, + readOnly = readOnly, + validationError = validationError, + validationMessageMode = validationMessageMode, + accessKey = accessKey, + disabled = disabled, + hint = hint, + tabIndex = tabIndex, + visible = visible, + bindingOptions = bindingOptions, + elementAttr = elementAttr, + height = height, + rtlEnabled = rtlEnabled, + width = width, + onClosedEnabled = onClosedEnabled, + onOpenedEnabled = onOpenedEnabled, + onChangeEnabled = onChangeEnabled, + onCopyEnabled = onCopyEnabled, + onCutEnabled = onCutEnabled, + onEnterKeyEnabled = onEnterKeyEnabled, + onFocusInEnabled = onFocusInEnabled, + onFocusOutEnabled = onFocusOutEnabled, + onInputEnabled = onInputEnabled, + onKeyDownEnabled = onKeyDownEnabled, + onKeyPressEnabled = onKeyPressEnabled, + onKeyUpEnabled = onKeyUpEnabled, + onPasteEnabled = onPasteEnabled, + onValueChangedEnabled = onValueChangedEnabled, + onContentReadyEnabled = onContentReadyEnabled, + onDisposingEnabled = onDisposingEnabled, + onOptionChangedEnabled = onOptionChangedEnabled, + onInitializedEnabled = onInitializedEnabled, }; } protected override Task Init(DevExpress.Ui.DxColorBoxOptions options) { -return DevExpress.Ui.DxColorBoxInterop.Init(dxTarget, options); + return DevExpress.Ui.DxColorBoxInterop.Init(dxTarget, options); } string applyButtonText; [Parameter] string ApplyButtonText { - get => isInitialized ? DevExpress.Ui.DxColorBoxInterop.GetApplyButtonText(dxTarget).Result : applyButtonText; + get => isInitialized ? (string)DevExpress.Ui.DxColorBoxInterop.GetApplyButtonText(dxTarget).Result : applyButtonText; set { if (isInitialized) { DevExpress.Ui.DxColorBoxInterop.SetApplyButtonText(dxTarget, value); @@ -37,7 +91,7 @@ return DevExpress.Ui.DxColorBoxInterop.Init(dxTarget, options); string applyValueMode; [Parameter] string ApplyValueMode { - get => isInitialized ? DevExpress.Ui.DxColorBoxInterop.GetApplyValueMode(dxTarget).Result : applyValueMode; + get => isInitialized ? (string)DevExpress.Ui.DxColorBoxInterop.GetApplyValueMode(dxTarget).Result : applyValueMode; set { if (isInitialized) { DevExpress.Ui.DxColorBoxInterop.SetApplyValueMode(dxTarget, value); @@ -49,7 +103,7 @@ return DevExpress.Ui.DxColorBoxInterop.Init(dxTarget, options); string cancelButtonText; [Parameter] string CancelButtonText { - get => isInitialized ? DevExpress.Ui.DxColorBoxInterop.GetCancelButtonText(dxTarget).Result : cancelButtonText; + get => isInitialized ? (string)DevExpress.Ui.DxColorBoxInterop.GetCancelButtonText(dxTarget).Result : cancelButtonText; set { if (isInitialized) { DevExpress.Ui.DxColorBoxInterop.SetCancelButtonText(dxTarget, value); @@ -61,7 +115,7 @@ return DevExpress.Ui.DxColorBoxInterop.Init(dxTarget, options); bool? editAlphaChannel; [Parameter] bool? EditAlphaChannel { - get => isInitialized ? DevExpress.Ui.DxColorBoxInterop.GetEditAlphaChannel(dxTarget).Result : editAlphaChannel; + get => isInitialized ? (bool?)DevExpress.Ui.DxColorBoxInterop.GetEditAlphaChannel(dxTarget).Result : editAlphaChannel; set { if (isInitialized) { DevExpress.Ui.DxColorBoxInterop.SetEditAlphaChannel(dxTarget, value); @@ -85,7 +139,7 @@ return DevExpress.Ui.DxColorBoxInterop.Init(dxTarget, options); float? keyStep; [Parameter] float? KeyStep { - get => isInitialized ? DevExpress.Ui.DxColorBoxInterop.GetKeyStep(dxTarget).Result : keyStep; + get => isInitialized ? (float?)DevExpress.Ui.DxColorBoxInterop.GetKeyStep(dxTarget).Result : keyStep; set { if (isInitialized) { DevExpress.Ui.DxColorBoxInterop.SetKeyStep(dxTarget, value); @@ -97,7 +151,7 @@ return DevExpress.Ui.DxColorBoxInterop.Init(dxTarget, options); string value; [Parameter] string Value { - get => isInitialized ? DevExpress.Ui.DxColorBoxInterop.GetValue(dxTarget).Result : value; + get => isInitialized ? (string)DevExpress.Ui.DxColorBoxInterop.GetValue(dxTarget).Result : value; set { if (isInitialized) { DevExpress.Ui.DxColorBoxInterop.SetValue(dxTarget, value); @@ -106,9 +160,711 @@ return DevExpress.Ui.DxColorBoxInterop.Init(dxTarget, options); } } } + bool? acceptCustomValue; + [Parameter] + bool? AcceptCustomValue { + get => isInitialized ? (bool?)DevExpress.Ui.DxColorBoxInterop.GetAcceptCustomValue(dxTarget).Result : acceptCustomValue; + set { + if (isInitialized) { + DevExpress.Ui.DxColorBoxInterop.SetAcceptCustomValue(dxTarget, value); + } else { + this.acceptCustomValue = value; + } + } + } + bool? activeStateEnabled; + [Parameter] + bool? ActiveStateEnabled { + get => isInitialized ? (bool?)DevExpress.Ui.DxColorBoxInterop.GetActiveStateEnabled(dxTarget).Result : activeStateEnabled; + set { + if (isInitialized) { + DevExpress.Ui.DxColorBoxInterop.SetActiveStateEnabled(dxTarget, value); + } else { + this.activeStateEnabled = value; + } + } + } + bool? deferRendering; + [Parameter] + bool? DeferRendering { + get => isInitialized ? (bool?)DevExpress.Ui.DxColorBoxInterop.GetDeferRendering(dxTarget).Result : deferRendering; + set { + if (isInitialized) { + DevExpress.Ui.DxColorBoxInterop.SetDeferRendering(dxTarget, value); + } else { + this.deferRendering = value; + } + } + } + object dropDownButtonTemplate; + [Parameter] + object DropDownButtonTemplate { + get => isInitialized ? DevExpress.Ui.DxColorBoxInterop.GetDropDownButtonTemplate(dxTarget).Result : dropDownButtonTemplate; + set { + if (isInitialized) { + DevExpress.Ui.DxColorBoxInterop.SetDropDownButtonTemplate(dxTarget, value); + } else { + this.dropDownButtonTemplate = value; + } + } + } + bool? isOpened; + [Parameter] + bool? IsOpened { + get => isInitialized ? (bool?)DevExpress.Ui.DxColorBoxInterop.GetOpened(dxTarget).Result : isOpened; + set { + if (isInitialized) { + DevExpress.Ui.DxColorBoxInterop.SetOpened(dxTarget, value); + } else { + this.isOpened = value; + } + } + } + object maxLength; + [Parameter] + object MaxLength { + get => isInitialized ? DevExpress.Ui.DxColorBoxInterop.GetMaxLength(dxTarget).Result : maxLength; + set { + if (isInitialized) { + DevExpress.Ui.DxColorBoxInterop.SetMaxLength(dxTarget, value); + } else { + this.maxLength = value; + } + } + } + string mode; + [Parameter] + string Mode { + get => isInitialized ? (string)DevExpress.Ui.DxColorBoxInterop.GetMode(dxTarget).Result : mode; + set { + if (isInitialized) { + DevExpress.Ui.DxColorBoxInterop.SetMode(dxTarget, value); + } else { + this.mode = value; + } + } + } + bool? focusStateEnabled; + [Parameter] + bool? FocusStateEnabled { + get => isInitialized ? (bool?)DevExpress.Ui.DxColorBoxInterop.GetFocusStateEnabled(dxTarget).Result : focusStateEnabled; + set { + if (isInitialized) { + DevExpress.Ui.DxColorBoxInterop.SetFocusStateEnabled(dxTarget, value); + } else { + this.focusStateEnabled = value; + } + } + } + bool? hoverStateEnabled; + [Parameter] + bool? HoverStateEnabled { + get => isInitialized ? (bool?)DevExpress.Ui.DxColorBoxInterop.GetHoverStateEnabled(dxTarget).Result : hoverStateEnabled; + set { + if (isInitialized) { + DevExpress.Ui.DxColorBoxInterop.SetHoverStateEnabled(dxTarget, value); + } else { + this.hoverStateEnabled = value; + } + } + } + object inputAttr; + [Parameter] + object InputAttr { + get => isInitialized ? DevExpress.Ui.DxColorBoxInterop.GetInputAttr(dxTarget).Result : inputAttr; + set { + if (isInitialized) { + DevExpress.Ui.DxColorBoxInterop.SetInputAttr(dxTarget, value); + } else { + this.inputAttr = value; + } + } + } + string mask; + [Parameter] + string Mask { + get => isInitialized ? (string)DevExpress.Ui.DxColorBoxInterop.GetMask(dxTarget).Result : mask; + set { + if (isInitialized) { + DevExpress.Ui.DxColorBoxInterop.SetMask(dxTarget, value); + } else { + this.mask = value; + } + } + } + string maskChar; + [Parameter] + string MaskChar { + get => isInitialized ? (string)DevExpress.Ui.DxColorBoxInterop.GetMaskChar(dxTarget).Result : maskChar; + set { + if (isInitialized) { + DevExpress.Ui.DxColorBoxInterop.SetMaskChar(dxTarget, value); + } else { + this.maskChar = value; + } + } + } + string maskInvalidMessage; + [Parameter] + string MaskInvalidMessage { + get => isInitialized ? (string)DevExpress.Ui.DxColorBoxInterop.GetMaskInvalidMessage(dxTarget).Result : maskInvalidMessage; + set { + if (isInitialized) { + DevExpress.Ui.DxColorBoxInterop.SetMaskInvalidMessage(dxTarget, value); + } else { + this.maskInvalidMessage = value; + } + } + } + object maskRules; + [Parameter] + object MaskRules { + get => isInitialized ? DevExpress.Ui.DxColorBoxInterop.GetMaskRules(dxTarget).Result : maskRules; + set { + if (isInitialized) { + DevExpress.Ui.DxColorBoxInterop.SetMaskRules(dxTarget, value); + } else { + this.maskRules = value; + } + } + } + string name; + [Parameter] + string Name { + get => isInitialized ? (string)DevExpress.Ui.DxColorBoxInterop.GetName(dxTarget).Result : name; + set { + if (isInitialized) { + DevExpress.Ui.DxColorBoxInterop.SetName(dxTarget, value); + } else { + this.name = value; + } + } + } + string placeholder; + [Parameter] + string Placeholder { + get => isInitialized ? (string)DevExpress.Ui.DxColorBoxInterop.GetPlaceholder(dxTarget).Result : placeholder; + set { + if (isInitialized) { + DevExpress.Ui.DxColorBoxInterop.SetPlaceholder(dxTarget, value); + } else { + this.placeholder = value; + } + } + } + bool? showClearButton; + [Parameter] + bool? ShowClearButton { + get => isInitialized ? (bool?)DevExpress.Ui.DxColorBoxInterop.GetShowClearButton(dxTarget).Result : showClearButton; + set { + if (isInitialized) { + DevExpress.Ui.DxColorBoxInterop.SetShowClearButton(dxTarget, value); + } else { + this.showClearButton = value; + } + } + } + string showMaskMode; + [Parameter] + string ShowMaskMode { + get => isInitialized ? (string)DevExpress.Ui.DxColorBoxInterop.GetShowMaskMode(dxTarget).Result : showMaskMode; + set { + if (isInitialized) { + DevExpress.Ui.DxColorBoxInterop.SetShowMaskMode(dxTarget, value); + } else { + this.showMaskMode = value; + } + } + } + bool? spellcheck; + [Parameter] + bool? Spellcheck { + get => isInitialized ? (bool?)DevExpress.Ui.DxColorBoxInterop.GetSpellcheck(dxTarget).Result : spellcheck; + set { + if (isInitialized) { + DevExpress.Ui.DxColorBoxInterop.SetSpellcheck(dxTarget, value); + } else { + this.spellcheck = value; + } + } + } + string text; + [Parameter] + string Text { + get => isInitialized ? (string)DevExpress.Ui.DxColorBoxInterop.GetText(dxTarget).Result : text; + set { + if (isInitialized) { + DevExpress.Ui.DxColorBoxInterop.SetText(dxTarget, value); + } else { + this.text = value; + } + } + } + bool? useMaskedValue; + [Parameter] + bool? UseMaskedValue { + get => isInitialized ? (bool?)DevExpress.Ui.DxColorBoxInterop.GetUseMaskedValue(dxTarget).Result : useMaskedValue; + set { + if (isInitialized) { + DevExpress.Ui.DxColorBoxInterop.SetUseMaskedValue(dxTarget, value); + } else { + this.useMaskedValue = value; + } + } + } + string valueChangeEvent; + [Parameter] + string ValueChangeEvent { + get => isInitialized ? (string)DevExpress.Ui.DxColorBoxInterop.GetValueChangeEvent(dxTarget).Result : valueChangeEvent; + set { + if (isInitialized) { + DevExpress.Ui.DxColorBoxInterop.SetValueChangeEvent(dxTarget, value); + } else { + this.valueChangeEvent = value; + } + } + } + bool? isValid; + [Parameter] + bool? IsValid { + get => isInitialized ? (bool?)DevExpress.Ui.DxColorBoxInterop.GetIsValid(dxTarget).Result : isValid; + set { + if (isInitialized) { + DevExpress.Ui.DxColorBoxInterop.SetIsValid(dxTarget, value); + } else { + this.isValid = value; + } + } + } + bool? readOnly; + [Parameter] + bool? ReadOnly { + get => isInitialized ? (bool?)DevExpress.Ui.DxColorBoxInterop.GetReadOnly(dxTarget).Result : readOnly; + set { + if (isInitialized) { + DevExpress.Ui.DxColorBoxInterop.SetReadOnly(dxTarget, value); + } else { + this.readOnly = value; + } + } + } + object validationError; + [Parameter] + object ValidationError { + get => isInitialized ? DevExpress.Ui.DxColorBoxInterop.GetValidationError(dxTarget).Result : validationError; + set { + if (isInitialized) { + DevExpress.Ui.DxColorBoxInterop.SetValidationError(dxTarget, value); + } else { + this.validationError = value; + } + } + } + string validationMessageMode; + [Parameter] + string ValidationMessageMode { + get => isInitialized ? (string)DevExpress.Ui.DxColorBoxInterop.GetValidationMessageMode(dxTarget).Result : validationMessageMode; + set { + if (isInitialized) { + DevExpress.Ui.DxColorBoxInterop.SetValidationMessageMode(dxTarget, value); + } else { + this.validationMessageMode = value; + } + } + } + string accessKey; + [Parameter] + string AccessKey { + get => isInitialized ? (string)DevExpress.Ui.DxColorBoxInterop.GetAccessKey(dxTarget).Result : accessKey; + set { + if (isInitialized) { + DevExpress.Ui.DxColorBoxInterop.SetAccessKey(dxTarget, value); + } else { + this.accessKey = value; + } + } + } + bool? disabled; + [Parameter] + bool? Disabled { + get => isInitialized ? (bool?)DevExpress.Ui.DxColorBoxInterop.GetDisabled(dxTarget).Result : disabled; + set { + if (isInitialized) { + DevExpress.Ui.DxColorBoxInterop.SetDisabled(dxTarget, value); + } else { + this.disabled = value; + } + } + } + string hint; + [Parameter] + string Hint { + get => isInitialized ? (string)DevExpress.Ui.DxColorBoxInterop.GetHint(dxTarget).Result : hint; + set { + if (isInitialized) { + DevExpress.Ui.DxColorBoxInterop.SetHint(dxTarget, value); + } else { + this.hint = value; + } + } + } + float? tabIndex; + [Parameter] + float? TabIndex { + get => isInitialized ? (float?)DevExpress.Ui.DxColorBoxInterop.GetTabIndex(dxTarget).Result : tabIndex; + set { + if (isInitialized) { + DevExpress.Ui.DxColorBoxInterop.SetTabIndex(dxTarget, value); + } else { + this.tabIndex = value; + } + } + } + bool? visible; + [Parameter] + bool? Visible { + get => isInitialized ? (bool?)DevExpress.Ui.DxColorBoxInterop.GetVisible(dxTarget).Result : visible; + set { + if (isInitialized) { + DevExpress.Ui.DxColorBoxInterop.SetVisible(dxTarget, value); + } else { + this.visible = value; + } + } + } + object bindingOptions; + [Parameter] + object BindingOptions { + get => isInitialized ? DevExpress.Ui.DxColorBoxInterop.GetBindingOptions(dxTarget).Result : bindingOptions; + set { + if (isInitialized) { + DevExpress.Ui.DxColorBoxInterop.SetBindingOptions(dxTarget, value); + } else { + this.bindingOptions = value; + } + } + } + object elementAttr; + [Parameter] + object ElementAttr { + get => isInitialized ? DevExpress.Ui.DxColorBoxInterop.GetElementAttr(dxTarget).Result : elementAttr; + set { + if (isInitialized) { + DevExpress.Ui.DxColorBoxInterop.SetElementAttr(dxTarget, value); + } else { + this.elementAttr = value; + } + } + } + object height; + [Parameter] + object Height { + get => isInitialized ? DevExpress.Ui.DxColorBoxInterop.GetHeight(dxTarget).Result : height; + set { + if (isInitialized) { + DevExpress.Ui.DxColorBoxInterop.SetHeight(dxTarget, value); + } else { + this.height = value; + } + } + } + bool? rtlEnabled; + [Parameter] + bool? RtlEnabled { + get => isInitialized ? (bool?)DevExpress.Ui.DxColorBoxInterop.GetRtlEnabled(dxTarget).Result : rtlEnabled; + set { + if (isInitialized) { + DevExpress.Ui.DxColorBoxInterop.SetRtlEnabled(dxTarget, value); + } else { + this.rtlEnabled = value; + } + } + } + object width; + [Parameter] + object Width { + get => isInitialized ? DevExpress.Ui.DxColorBoxInterop.GetWidth(dxTarget).Result : width; + set { + if (isInitialized) { + DevExpress.Ui.DxColorBoxInterop.SetWidth(dxTarget, value); + } else { + this.width = value; + } + } + } + bool? onClosedEnabled; + [Parameter] + bool? OnClosedEnabled { + get => onClosedEnabled; + set => this.onClosedEnabled = value; + } + bool? onOpenedEnabled; + [Parameter] + bool? OnOpenedEnabled { + get => onOpenedEnabled; + set => this.onOpenedEnabled = value; + } + bool? onChangeEnabled; + [Parameter] + bool? OnChangeEnabled { + get => onChangeEnabled; + set => this.onChangeEnabled = value; + } + bool? onCopyEnabled; + [Parameter] + bool? OnCopyEnabled { + get => onCopyEnabled; + set => this.onCopyEnabled = value; + } + bool? onCutEnabled; + [Parameter] + bool? OnCutEnabled { + get => onCutEnabled; + set => this.onCutEnabled = value; + } + bool? onEnterKeyEnabled; + [Parameter] + bool? OnEnterKeyEnabled { + get => onEnterKeyEnabled; + set => this.onEnterKeyEnabled = value; + } + bool? onFocusInEnabled; + [Parameter] + bool? OnFocusInEnabled { + get => onFocusInEnabled; + set => this.onFocusInEnabled = value; + } + bool? onFocusOutEnabled; + [Parameter] + bool? OnFocusOutEnabled { + get => onFocusOutEnabled; + set => this.onFocusOutEnabled = value; + } + bool? onInputEnabled; + [Parameter] + bool? OnInputEnabled { + get => onInputEnabled; + set => this.onInputEnabled = value; + } + bool? onKeyDownEnabled; + [Parameter] + bool? OnKeyDownEnabled { + get => onKeyDownEnabled; + set => this.onKeyDownEnabled = value; + } + bool? onKeyPressEnabled; + [Parameter] + bool? OnKeyPressEnabled { + get => onKeyPressEnabled; + set => this.onKeyPressEnabled = value; + } + bool? onKeyUpEnabled; + [Parameter] + bool? OnKeyUpEnabled { + get => onKeyUpEnabled; + set => this.onKeyUpEnabled = value; + } + bool? onPasteEnabled; + [Parameter] + bool? OnPasteEnabled { + get => onPasteEnabled; + set => this.onPasteEnabled = value; + } + bool? onValueChangedEnabled; + [Parameter] + bool? OnValueChangedEnabled { + get => onValueChangedEnabled; + set => this.onValueChangedEnabled = value; + } + bool? onContentReadyEnabled; + [Parameter] + bool? OnContentReadyEnabled { + get => onContentReadyEnabled; + set => this.onContentReadyEnabled = value; + } + bool? onDisposingEnabled; + [Parameter] + bool? OnDisposingEnabled { + get => onDisposingEnabled; + set => this.onDisposingEnabled = value; + } + bool? onOptionChangedEnabled; + [Parameter] + bool? OnOptionChangedEnabled { + get => onOptionChangedEnabled; + set => this.onOptionChangedEnabled = value; + } + bool? onInitializedEnabled; + [Parameter] + bool? OnInitializedEnabled { + get => onInitializedEnabled; + set => this.onInitializedEnabled = value; + } protected override async Task OnInitAsync() { await base.OnInitAsync(); + DevExpress.Ui.DxColorBoxInterop.Closed += DxColorBox_Closed; + DevExpress.Ui.DxColorBoxInterop.Opened += DxColorBox_Opened; + DevExpress.Ui.DxColorBoxInterop.Change += DxColorBox_Change; + DevExpress.Ui.DxColorBoxInterop.Copy += DxColorBox_Copy; + DevExpress.Ui.DxColorBoxInterop.Cut += DxColorBox_Cut; + DevExpress.Ui.DxColorBoxInterop.EnterKey += DxColorBox_EnterKey; + DevExpress.Ui.DxColorBoxInterop.FocusIn += DxColorBox_FocusIn; + DevExpress.Ui.DxColorBoxInterop.FocusOut += DxColorBox_FocusOut; + DevExpress.Ui.DxColorBoxInterop.Input += DxColorBox_Input; + DevExpress.Ui.DxColorBoxInterop.KeyDown += DxColorBox_KeyDown; + DevExpress.Ui.DxColorBoxInterop.KeyPress += DxColorBox_KeyPress; + DevExpress.Ui.DxColorBoxInterop.KeyUp += DxColorBox_KeyUp; + DevExpress.Ui.DxColorBoxInterop.Paste += DxColorBox_Paste; + DevExpress.Ui.DxColorBoxInterop.ValueChanged += DxColorBox_ValueChanged; + DevExpress.Ui.DxColorBoxInterop.ContentReady += DxColorBox_ContentReady; + DevExpress.Ui.DxColorBoxInterop.Disposing += DxColorBox_Disposing; + DevExpress.Ui.DxColorBoxInterop.OptionChanged += DxColorBox_OptionChanged; + DevExpress.Ui.DxColorBoxInterop.Initialized += DxColorBox_Initialized; + } + [Parameter] + Action Closed { get; set; } + void DxColorBox_Closed(object sender, JQueryEventArgs e) { + if (e.Identifier == Id) { + Closed?.Invoke(); + } + } + [Parameter] + Action Opened { get; set; } + void DxColorBox_Opened(object sender, JQueryEventArgs e) { + if (e.Identifier == Id) { + Opened?.Invoke(); + } + } + [Parameter] + Action Change { get; set; } + void DxColorBox_Change(object sender, JQueryEventArgs e) { + if (e.Identifier == Id) { + Change?.Invoke(); + } + } + [Parameter] + Action Copy { get; set; } + void DxColorBox_Copy(object sender, JQueryEventArgs e) { + if (e.Identifier == Id) { + Copy?.Invoke(); + } + } + [Parameter] + Action Cut { get; set; } + void DxColorBox_Cut(object sender, JQueryEventArgs e) { + if (e.Identifier == Id) { + Cut?.Invoke(); + } + } + [Parameter] + Action EnterKey { get; set; } + void DxColorBox_EnterKey(object sender, JQueryEventArgs e) { + if (e.Identifier == Id) { + EnterKey?.Invoke(); + } + } + [Parameter] + Action FocusIn { get; set; } + void DxColorBox_FocusIn(object sender, JQueryEventArgs e) { + if (e.Identifier == Id) { + FocusIn?.Invoke(); + } + } + [Parameter] + Action FocusOut { get; set; } + void DxColorBox_FocusOut(object sender, JQueryEventArgs e) { + if (e.Identifier == Id) { + FocusOut?.Invoke(); + } + } + [Parameter] + Action Input { get; set; } + void DxColorBox_Input(object sender, JQueryEventArgs e) { + if (e.Identifier == Id) { + Input?.Invoke(); + } + } + [Parameter] + Action KeyDown { get; set; } + void DxColorBox_KeyDown(object sender, JQueryEventArgs e) { + if (e.Identifier == Id) { + KeyDown?.Invoke(); + } + } + [Parameter] + Action KeyPress { get; set; } + void DxColorBox_KeyPress(object sender, JQueryEventArgs e) { + if (e.Identifier == Id) { + KeyPress?.Invoke(); + } + } + [Parameter] + Action KeyUp { get; set; } + void DxColorBox_KeyUp(object sender, JQueryEventArgs e) { + if (e.Identifier == Id) { + KeyUp?.Invoke(); + } + } + [Parameter] + Action Paste { get; set; } + void DxColorBox_Paste(object sender, JQueryEventArgs e) { + if (e.Identifier == Id) { + Paste?.Invoke(); + } + } + [Parameter] + Action ValueChanged { get; set; } + void DxColorBox_ValueChanged(object sender, JQueryEventArgs e) { + if (e.Identifier == Id) { + ValueChanged?.Invoke(); + } + } + [Parameter] + Action ContentReady { get; set; } + void DxColorBox_ContentReady(object sender, JQueryEventArgs e) { + if (e.Identifier == Id) { + ContentReady?.Invoke(); + } + } + [Parameter] + Action Disposing { get; set; } + void DxColorBox_Disposing(object sender, JQueryEventArgs e) { + if (e.Identifier == Id) { + Disposing?.Invoke(); + } + } + [Parameter] + Action OptionChanged { get; set; } + void DxColorBox_OptionChanged(object sender, JQueryEventArgs e) { + if (e.Identifier == Id) { + OptionChanged?.Invoke(); + } + } + [Parameter] + Action Initialized { get; set; } + void DxColorBox_Initialized(object sender, JQueryEventArgs e) { + if (e.Identifier == Id) { + Initialized?.Invoke(); + } } public void Dispose() { + DevExpress.Ui.DxColorBoxInterop.Closed -= DxColorBox_Closed; + DevExpress.Ui.DxColorBoxInterop.Opened -= DxColorBox_Opened; + DevExpress.Ui.DxColorBoxInterop.Change -= DxColorBox_Change; + DevExpress.Ui.DxColorBoxInterop.Copy -= DxColorBox_Copy; + DevExpress.Ui.DxColorBoxInterop.Cut -= DxColorBox_Cut; + DevExpress.Ui.DxColorBoxInterop.EnterKey -= DxColorBox_EnterKey; + DevExpress.Ui.DxColorBoxInterop.FocusIn -= DxColorBox_FocusIn; + DevExpress.Ui.DxColorBoxInterop.FocusOut -= DxColorBox_FocusOut; + DevExpress.Ui.DxColorBoxInterop.Input -= DxColorBox_Input; + DevExpress.Ui.DxColorBoxInterop.KeyDown -= DxColorBox_KeyDown; + DevExpress.Ui.DxColorBoxInterop.KeyPress -= DxColorBox_KeyPress; + DevExpress.Ui.DxColorBoxInterop.KeyUp -= DxColorBox_KeyUp; + DevExpress.Ui.DxColorBoxInterop.Paste -= DxColorBox_Paste; + DevExpress.Ui.DxColorBoxInterop.ValueChanged -= DxColorBox_ValueChanged; + DevExpress.Ui.DxColorBoxInterop.ContentReady -= DxColorBox_ContentReady; + DevExpress.Ui.DxColorBoxInterop.Disposing -= DxColorBox_Disposing; + DevExpress.Ui.DxColorBoxInterop.OptionChanged -= DxColorBox_OptionChanged; + DevExpress.Ui.DxColorBoxInterop.Initialized -= DxColorBox_Initialized; } } diff --git a/sources/BlazorDevExtreme/Components/DxCommand.cshtml b/sources/BlazorDevExtreme/Components/DxCommand.cshtml index c09678f..ab88204 100644 --- a/sources/BlazorDevExtreme/Components/DxCommand.cshtml +++ b/sources/BlazorDevExtreme/Components/DxCommand.cshtml @@ -18,16 +18,24 @@ title = title, type = type, visible = visible, + bindingOptions = bindingOptions, + elementAttr = elementAttr, + height = height, + rtlEnabled = rtlEnabled, + width = width, onExecuteEnabled = onExecuteEnabled, + onDisposingEnabled = onDisposingEnabled, + onOptionChangedEnabled = onOptionChangedEnabled, + onInitializedEnabled = onInitializedEnabled, }; } protected override Task Init(DevExpress.Framework.DxCommandOptions options) { -return DevExpress.Framework.DxCommandInterop.Init(dxTarget, options); + return DevExpress.Framework.DxCommandInterop.Init(dxTarget, options); } bool? disabled; [Parameter] bool? Disabled { - get => isInitialized ? DevExpress.Framework.DxCommandInterop.GetDisabled(dxTarget).Result : disabled; + get => isInitialized ? (bool?)DevExpress.Framework.DxCommandInterop.GetDisabled(dxTarget).Result : disabled; set { if (isInitialized) { DevExpress.Framework.DxCommandInterop.SetDisabled(dxTarget, value); @@ -39,7 +47,7 @@ return DevExpress.Framework.DxCommandInterop.Init(dxTarget, options); string icon; [Parameter] string Icon { - get => isInitialized ? DevExpress.Framework.DxCommandInterop.GetIcon(dxTarget).Result : icon; + get => isInitialized ? (string)DevExpress.Framework.DxCommandInterop.GetIcon(dxTarget).Result : icon; set { if (isInitialized) { DevExpress.Framework.DxCommandInterop.SetIcon(dxTarget, value); @@ -63,7 +71,7 @@ return DevExpress.Framework.DxCommandInterop.Init(dxTarget, options); string id; [Parameter] string Id { - get => isInitialized ? DevExpress.Framework.DxCommandInterop.GetId(dxTarget).Result : id; + get => isInitialized ? (string)DevExpress.Framework.DxCommandInterop.GetId(dxTarget).Result : id; set { if (isInitialized) { DevExpress.Framework.DxCommandInterop.SetId(dxTarget, value); @@ -75,7 +83,7 @@ return DevExpress.Framework.DxCommandInterop.Init(dxTarget, options); string renderStage; [Parameter] string RenderStage { - get => isInitialized ? DevExpress.Framework.DxCommandInterop.GetRenderStage(dxTarget).Result : renderStage; + get => isInitialized ? (string)DevExpress.Framework.DxCommandInterop.GetRenderStage(dxTarget).Result : renderStage; set { if (isInitialized) { DevExpress.Framework.DxCommandInterop.SetRenderStage(dxTarget, value); @@ -87,7 +95,7 @@ return DevExpress.Framework.DxCommandInterop.Init(dxTarget, options); string title; [Parameter] string Title { - get => isInitialized ? DevExpress.Framework.DxCommandInterop.GetTitle(dxTarget).Result : title; + get => isInitialized ? (string)DevExpress.Framework.DxCommandInterop.GetTitle(dxTarget).Result : title; set { if (isInitialized) { DevExpress.Framework.DxCommandInterop.SetTitle(dxTarget, value); @@ -99,7 +107,7 @@ return DevExpress.Framework.DxCommandInterop.Init(dxTarget, options); string type; [Parameter] string Type { - get => isInitialized ? DevExpress.Framework.DxCommandInterop.GetType(dxTarget).Result : type; + get => isInitialized ? (string)DevExpress.Framework.DxCommandInterop.GetType(dxTarget).Result : type; set { if (isInitialized) { DevExpress.Framework.DxCommandInterop.SetType(dxTarget, value); @@ -111,7 +119,7 @@ return DevExpress.Framework.DxCommandInterop.Init(dxTarget, options); bool? visible; [Parameter] bool? Visible { - get => isInitialized ? DevExpress.Framework.DxCommandInterop.GetVisible(dxTarget).Result : visible; + get => isInitialized ? (bool?)DevExpress.Framework.DxCommandInterop.GetVisible(dxTarget).Result : visible; set { if (isInitialized) { DevExpress.Framework.DxCommandInterop.SetVisible(dxTarget, value); @@ -120,15 +128,96 @@ return DevExpress.Framework.DxCommandInterop.Init(dxTarget, options); } } } + object bindingOptions; + [Parameter] + object BindingOptions { + get => isInitialized ? DevExpress.Framework.DxCommandInterop.GetBindingOptions(dxTarget).Result : bindingOptions; + set { + if (isInitialized) { + DevExpress.Framework.DxCommandInterop.SetBindingOptions(dxTarget, value); + } else { + this.bindingOptions = value; + } + } + } + object elementAttr; + [Parameter] + object ElementAttr { + get => isInitialized ? DevExpress.Framework.DxCommandInterop.GetElementAttr(dxTarget).Result : elementAttr; + set { + if (isInitialized) { + DevExpress.Framework.DxCommandInterop.SetElementAttr(dxTarget, value); + } else { + this.elementAttr = value; + } + } + } + object height; + [Parameter] + object Height { + get => isInitialized ? DevExpress.Framework.DxCommandInterop.GetHeight(dxTarget).Result : height; + set { + if (isInitialized) { + DevExpress.Framework.DxCommandInterop.SetHeight(dxTarget, value); + } else { + this.height = value; + } + } + } + bool? rtlEnabled; + [Parameter] + bool? RtlEnabled { + get => isInitialized ? (bool?)DevExpress.Framework.DxCommandInterop.GetRtlEnabled(dxTarget).Result : rtlEnabled; + set { + if (isInitialized) { + DevExpress.Framework.DxCommandInterop.SetRtlEnabled(dxTarget, value); + } else { + this.rtlEnabled = value; + } + } + } + object width; + [Parameter] + object Width { + get => isInitialized ? DevExpress.Framework.DxCommandInterop.GetWidth(dxTarget).Result : width; + set { + if (isInitialized) { + DevExpress.Framework.DxCommandInterop.SetWidth(dxTarget, value); + } else { + this.width = value; + } + } + } bool? onExecuteEnabled; [Parameter] bool? OnExecuteEnabled { get => onExecuteEnabled; set => this.onExecuteEnabled = value; } + bool? onDisposingEnabled; + [Parameter] + bool? OnDisposingEnabled { + get => onDisposingEnabled; + set => this.onDisposingEnabled = value; + } + bool? onOptionChangedEnabled; + [Parameter] + bool? OnOptionChangedEnabled { + get => onOptionChangedEnabled; + set => this.onOptionChangedEnabled = value; + } + bool? onInitializedEnabled; + [Parameter] + bool? OnInitializedEnabled { + get => onInitializedEnabled; + set => this.onInitializedEnabled = value; + } protected override async Task OnInitAsync() { await base.OnInitAsync(); DevExpress.Framework.DxCommandInterop.Execute += DxCommand_Execute; + DevExpress.Framework.DxCommandInterop.Disposing += DxCommand_Disposing; + DevExpress.Framework.DxCommandInterop.OptionChanged += DxCommand_OptionChanged; + DevExpress.Framework.DxCommandInterop.Initialized += DxCommand_Initialized; } [Parameter] Action Execute { get; set; } @@ -137,10 +226,34 @@ return DevExpress.Framework.DxCommandInterop.Init(dxTarget, options); Execute?.Invoke(); } } + [Parameter] + Action Disposing { get; set; } + void DxCommand_Disposing(object sender, JQueryEventArgs e) { + if (e.Identifier == Id) { + Disposing?.Invoke(); + } + } + [Parameter] + Action OptionChanged { get; set; } + void DxCommand_OptionChanged(object sender, JQueryEventArgs e) { + if (e.Identifier == Id) { + OptionChanged?.Invoke(); + } + } + [Parameter] + Action Initialized { get; set; } + void DxCommand_Initialized(object sender, JQueryEventArgs e) { + if (e.Identifier == Id) { + Initialized?.Invoke(); + } + } public void DoExecute() { DevExpress.Framework.DxCommandInterop.DoExecute(dxTarget); } public void Dispose() { DevExpress.Framework.DxCommandInterop.Execute -= DxCommand_Execute; + DevExpress.Framework.DxCommandInterop.Disposing -= DxCommand_Disposing; + DevExpress.Framework.DxCommandInterop.OptionChanged -= DxCommand_OptionChanged; + DevExpress.Framework.DxCommandInterop.Initialized -= DxCommand_Initialized; } } diff --git a/sources/BlazorDevExtreme/Components/DxContextMenu.cshtml b/sources/BlazorDevExtreme/Components/DxContextMenu.cshtml index 112b63c..d039283 100644 --- a/sources/BlazorDevExtreme/Components/DxContextMenu.cshtml +++ b/sources/BlazorDevExtreme/Components/DxContextMenu.cshtml @@ -17,15 +17,54 @@ submenuDirection = submenuDirection, target = target, visible = visible, + activeStateEnabled = activeStateEnabled, + animation = animation, + cssClass = cssClass, + selectByClick = selectByClick, + selectionMode = selectionMode, + showSubmenuMode = showSubmenuMode, + disabledExpr = disabledExpr, + displayExpr = displayExpr, + focusStateEnabled = focusStateEnabled, + hoverStateEnabled = hoverStateEnabled, + itemsExpr = itemsExpr, + keyExpr = keyExpr, + selectedExpr = selectedExpr, + dataSource = dataSource, + itemHoldTimeout = itemHoldTimeout, + itemTemplate = itemTemplate, + noDataText = noDataText, + selectedIndex = selectedIndex, + selectedItem = selectedItem, + selectedItemKeys = selectedItemKeys, + selectedItems = selectedItems, + accessKey = accessKey, + disabled = disabled, + hint = hint, + tabIndex = tabIndex, + bindingOptions = bindingOptions, + elementAttr = elementAttr, + height = height, + rtlEnabled = rtlEnabled, + width = width, onHiddenEnabled = onHiddenEnabled, onHidingEnabled = onHidingEnabled, onPositioningEnabled = onPositioningEnabled, onShowingEnabled = onShowingEnabled, onShownEnabled = onShownEnabled, + onItemClickEnabled = onItemClickEnabled, + onItemContextMenuEnabled = onItemContextMenuEnabled, + onItemHoldEnabled = onItemHoldEnabled, + onItemRenderedEnabled = onItemRenderedEnabled, + onSelectionChangedEnabled = onSelectionChangedEnabled, + onContentReadyEnabled = onContentReadyEnabled, + onDisposingEnabled = onDisposingEnabled, + onOptionChangedEnabled = onOptionChangedEnabled, + onInitializedEnabled = onInitializedEnabled, }; } protected override Task Init(DevExpress.Ui.DxContextMenuOptions options) { -return DevExpress.Ui.DxContextMenuInterop.Init(dxTarget, options); + return DevExpress.Ui.DxContextMenuInterop.Init(dxTarget, options); } object closeOnOutsideClick; [Parameter] @@ -78,7 +117,7 @@ return DevExpress.Ui.DxContextMenuInterop.Init(dxTarget, options); string submenuDirection; [Parameter] string SubmenuDirection { - get => isInitialized ? DevExpress.Ui.DxContextMenuInterop.GetSubmenuDirection(dxTarget).Result : submenuDirection; + get => isInitialized ? (string)DevExpress.Ui.DxContextMenuInterop.GetSubmenuDirection(dxTarget).Result : submenuDirection; set { if (isInitialized) { DevExpress.Ui.DxContextMenuInterop.SetSubmenuDirection(dxTarget, value); @@ -102,7 +141,7 @@ return DevExpress.Ui.DxContextMenuInterop.Init(dxTarget, options); bool? visible; [Parameter] bool? Visible { - get => isInitialized ? DevExpress.Ui.DxContextMenuInterop.GetVisible(dxTarget).Result : visible; + get => isInitialized ? (bool?)DevExpress.Ui.DxContextMenuInterop.GetVisible(dxTarget).Result : visible; set { if (isInitialized) { DevExpress.Ui.DxContextMenuInterop.SetVisible(dxTarget, value); @@ -111,6 +150,366 @@ return DevExpress.Ui.DxContextMenuInterop.Init(dxTarget, options); } } } + bool? activeStateEnabled; + [Parameter] + bool? ActiveStateEnabled { + get => isInitialized ? (bool?)DevExpress.Ui.DxContextMenuInterop.GetActiveStateEnabled(dxTarget).Result : activeStateEnabled; + set { + if (isInitialized) { + DevExpress.Ui.DxContextMenuInterop.SetActiveStateEnabled(dxTarget, value); + } else { + this.activeStateEnabled = value; + } + } + } + object animation; + [Parameter] + object Animation { + get => isInitialized ? DevExpress.Ui.DxContextMenuInterop.GetAnimation(dxTarget).Result : animation; + set { + if (isInitialized) { + DevExpress.Ui.DxContextMenuInterop.SetAnimation(dxTarget, value); + } else { + this.animation = value; + } + } + } + string cssClass; + [Parameter] + string CssClass { + get => isInitialized ? (string)DevExpress.Ui.DxContextMenuInterop.GetCssClass(dxTarget).Result : cssClass; + set { + if (isInitialized) { + DevExpress.Ui.DxContextMenuInterop.SetCssClass(dxTarget, value); + } else { + this.cssClass = value; + } + } + } + bool? selectByClick; + [Parameter] + bool? SelectByClick { + get => isInitialized ? (bool?)DevExpress.Ui.DxContextMenuInterop.GetSelectByClick(dxTarget).Result : selectByClick; + set { + if (isInitialized) { + DevExpress.Ui.DxContextMenuInterop.SetSelectByClick(dxTarget, value); + } else { + this.selectByClick = value; + } + } + } + string selectionMode; + [Parameter] + string SelectionMode { + get => isInitialized ? (string)DevExpress.Ui.DxContextMenuInterop.GetSelectionMode(dxTarget).Result : selectionMode; + set { + if (isInitialized) { + DevExpress.Ui.DxContextMenuInterop.SetSelectionMode(dxTarget, value); + } else { + this.selectionMode = value; + } + } + } + object showSubmenuMode; + [Parameter] + object ShowSubmenuMode { + get => isInitialized ? DevExpress.Ui.DxContextMenuInterop.GetShowSubmenuMode(dxTarget).Result : showSubmenuMode; + set { + if (isInitialized) { + DevExpress.Ui.DxContextMenuInterop.SetShowSubmenuMode(dxTarget, value); + } else { + this.showSubmenuMode = value; + } + } + } + object disabledExpr; + [Parameter] + object DisabledExpr { + get => isInitialized ? DevExpress.Ui.DxContextMenuInterop.GetDisabledExpr(dxTarget).Result : disabledExpr; + set { + if (isInitialized) { + DevExpress.Ui.DxContextMenuInterop.SetDisabledExpr(dxTarget, value); + } else { + this.disabledExpr = value; + } + } + } + object displayExpr; + [Parameter] + object DisplayExpr { + get => isInitialized ? DevExpress.Ui.DxContextMenuInterop.GetDisplayExpr(dxTarget).Result : displayExpr; + set { + if (isInitialized) { + DevExpress.Ui.DxContextMenuInterop.SetDisplayExpr(dxTarget, value); + } else { + this.displayExpr = value; + } + } + } + bool? focusStateEnabled; + [Parameter] + bool? FocusStateEnabled { + get => isInitialized ? (bool?)DevExpress.Ui.DxContextMenuInterop.GetFocusStateEnabled(dxTarget).Result : focusStateEnabled; + set { + if (isInitialized) { + DevExpress.Ui.DxContextMenuInterop.SetFocusStateEnabled(dxTarget, value); + } else { + this.focusStateEnabled = value; + } + } + } + bool? hoverStateEnabled; + [Parameter] + bool? HoverStateEnabled { + get => isInitialized ? (bool?)DevExpress.Ui.DxContextMenuInterop.GetHoverStateEnabled(dxTarget).Result : hoverStateEnabled; + set { + if (isInitialized) { + DevExpress.Ui.DxContextMenuInterop.SetHoverStateEnabled(dxTarget, value); + } else { + this.hoverStateEnabled = value; + } + } + } + object itemsExpr; + [Parameter] + object ItemsExpr { + get => isInitialized ? DevExpress.Ui.DxContextMenuInterop.GetItemsExpr(dxTarget).Result : itemsExpr; + set { + if (isInitialized) { + DevExpress.Ui.DxContextMenuInterop.SetItemsExpr(dxTarget, value); + } else { + this.itemsExpr = value; + } + } + } + object keyExpr; + [Parameter] + object KeyExpr { + get => isInitialized ? DevExpress.Ui.DxContextMenuInterop.GetKeyExpr(dxTarget).Result : keyExpr; + set { + if (isInitialized) { + DevExpress.Ui.DxContextMenuInterop.SetKeyExpr(dxTarget, value); + } else { + this.keyExpr = value; + } + } + } + object selectedExpr; + [Parameter] + object SelectedExpr { + get => isInitialized ? DevExpress.Ui.DxContextMenuInterop.GetSelectedExpr(dxTarget).Result : selectedExpr; + set { + if (isInitialized) { + DevExpress.Ui.DxContextMenuInterop.SetSelectedExpr(dxTarget, value); + } else { + this.selectedExpr = value; + } + } + } + object dataSource; + [Parameter] + object DataSource { + get => isInitialized ? DevExpress.Ui.DxContextMenuInterop.GetDataSource(dxTarget).Result : dataSource; + set { + if (isInitialized) { + DevExpress.Ui.DxContextMenuInterop.SetDataSource(dxTarget, value); + } else { + this.dataSource = value; + } + } + } + float? itemHoldTimeout; + [Parameter] + float? ItemHoldTimeout { + get => isInitialized ? (float?)DevExpress.Ui.DxContextMenuInterop.GetItemHoldTimeout(dxTarget).Result : itemHoldTimeout; + set { + if (isInitialized) { + DevExpress.Ui.DxContextMenuInterop.SetItemHoldTimeout(dxTarget, value); + } else { + this.itemHoldTimeout = value; + } + } + } + object itemTemplate; + [Parameter] + object ItemTemplate { + get => isInitialized ? DevExpress.Ui.DxContextMenuInterop.GetItemTemplate(dxTarget).Result : itemTemplate; + set { + if (isInitialized) { + DevExpress.Ui.DxContextMenuInterop.SetItemTemplate(dxTarget, value); + } else { + this.itemTemplate = value; + } + } + } + string noDataText; + [Parameter] + string NoDataText { + get => isInitialized ? (string)DevExpress.Ui.DxContextMenuInterop.GetNoDataText(dxTarget).Result : noDataText; + set { + if (isInitialized) { + DevExpress.Ui.DxContextMenuInterop.SetNoDataText(dxTarget, value); + } else { + this.noDataText = value; + } + } + } + float? selectedIndex; + [Parameter] + float? SelectedIndex { + get => isInitialized ? (float?)DevExpress.Ui.DxContextMenuInterop.GetSelectedIndex(dxTarget).Result : selectedIndex; + set { + if (isInitialized) { + DevExpress.Ui.DxContextMenuInterop.SetSelectedIndex(dxTarget, value); + } else { + this.selectedIndex = value; + } + } + } + object selectedItem; + [Parameter] + object SelectedItem { + get => isInitialized ? DevExpress.Ui.DxContextMenuInterop.GetSelectedItem(dxTarget).Result : selectedItem; + set { + if (isInitialized) { + DevExpress.Ui.DxContextMenuInterop.SetSelectedItem(dxTarget, value); + } else { + this.selectedItem = value; + } + } + } + object selectedItemKeys; + [Parameter] + object SelectedItemKeys { + get => isInitialized ? DevExpress.Ui.DxContextMenuInterop.GetSelectedItemKeys(dxTarget).Result : selectedItemKeys; + set { + if (isInitialized) { + DevExpress.Ui.DxContextMenuInterop.SetSelectedItemKeys(dxTarget, value); + } else { + this.selectedItemKeys = value; + } + } + } + object selectedItems; + [Parameter] + object SelectedItems { + get => isInitialized ? DevExpress.Ui.DxContextMenuInterop.GetSelectedItems(dxTarget).Result : selectedItems; + set { + if (isInitialized) { + DevExpress.Ui.DxContextMenuInterop.SetSelectedItems(dxTarget, value); + } else { + this.selectedItems = value; + } + } + } + string accessKey; + [Parameter] + string AccessKey { + get => isInitialized ? (string)DevExpress.Ui.DxContextMenuInterop.GetAccessKey(dxTarget).Result : accessKey; + set { + if (isInitialized) { + DevExpress.Ui.DxContextMenuInterop.SetAccessKey(dxTarget, value); + } else { + this.accessKey = value; + } + } + } + bool? disabled; + [Parameter] + bool? Disabled { + get => isInitialized ? (bool?)DevExpress.Ui.DxContextMenuInterop.GetDisabled(dxTarget).Result : disabled; + set { + if (isInitialized) { + DevExpress.Ui.DxContextMenuInterop.SetDisabled(dxTarget, value); + } else { + this.disabled = value; + } + } + } + string hint; + [Parameter] + string Hint { + get => isInitialized ? (string)DevExpress.Ui.DxContextMenuInterop.GetHint(dxTarget).Result : hint; + set { + if (isInitialized) { + DevExpress.Ui.DxContextMenuInterop.SetHint(dxTarget, value); + } else { + this.hint = value; + } + } + } + float? tabIndex; + [Parameter] + float? TabIndex { + get => isInitialized ? (float?)DevExpress.Ui.DxContextMenuInterop.GetTabIndex(dxTarget).Result : tabIndex; + set { + if (isInitialized) { + DevExpress.Ui.DxContextMenuInterop.SetTabIndex(dxTarget, value); + } else { + this.tabIndex = value; + } + } + } + object bindingOptions; + [Parameter] + object BindingOptions { + get => isInitialized ? DevExpress.Ui.DxContextMenuInterop.GetBindingOptions(dxTarget).Result : bindingOptions; + set { + if (isInitialized) { + DevExpress.Ui.DxContextMenuInterop.SetBindingOptions(dxTarget, value); + } else { + this.bindingOptions = value; + } + } + } + object elementAttr; + [Parameter] + object ElementAttr { + get => isInitialized ? DevExpress.Ui.DxContextMenuInterop.GetElementAttr(dxTarget).Result : elementAttr; + set { + if (isInitialized) { + DevExpress.Ui.DxContextMenuInterop.SetElementAttr(dxTarget, value); + } else { + this.elementAttr = value; + } + } + } + object height; + [Parameter] + object Height { + get => isInitialized ? DevExpress.Ui.DxContextMenuInterop.GetHeight(dxTarget).Result : height; + set { + if (isInitialized) { + DevExpress.Ui.DxContextMenuInterop.SetHeight(dxTarget, value); + } else { + this.height = value; + } + } + } + bool? rtlEnabled; + [Parameter] + bool? RtlEnabled { + get => isInitialized ? (bool?)DevExpress.Ui.DxContextMenuInterop.GetRtlEnabled(dxTarget).Result : rtlEnabled; + set { + if (isInitialized) { + DevExpress.Ui.DxContextMenuInterop.SetRtlEnabled(dxTarget, value); + } else { + this.rtlEnabled = value; + } + } + } + object width; + [Parameter] + object Width { + get => isInitialized ? DevExpress.Ui.DxContextMenuInterop.GetWidth(dxTarget).Result : width; + set { + if (isInitialized) { + DevExpress.Ui.DxContextMenuInterop.SetWidth(dxTarget, value); + } else { + this.width = value; + } + } + } bool? onHiddenEnabled; [Parameter] bool? OnHiddenEnabled { @@ -141,6 +540,60 @@ return DevExpress.Ui.DxContextMenuInterop.Init(dxTarget, options); get => onShownEnabled; set => this.onShownEnabled = value; } + bool? onItemClickEnabled; + [Parameter] + bool? OnItemClickEnabled { + get => onItemClickEnabled; + set => this.onItemClickEnabled = value; + } + bool? onItemContextMenuEnabled; + [Parameter] + bool? OnItemContextMenuEnabled { + get => onItemContextMenuEnabled; + set => this.onItemContextMenuEnabled = value; + } + bool? onItemHoldEnabled; + [Parameter] + bool? OnItemHoldEnabled { + get => onItemHoldEnabled; + set => this.onItemHoldEnabled = value; + } + bool? onItemRenderedEnabled; + [Parameter] + bool? OnItemRenderedEnabled { + get => onItemRenderedEnabled; + set => this.onItemRenderedEnabled = value; + } + bool? onSelectionChangedEnabled; + [Parameter] + bool? OnSelectionChangedEnabled { + get => onSelectionChangedEnabled; + set => this.onSelectionChangedEnabled = value; + } + bool? onContentReadyEnabled; + [Parameter] + bool? OnContentReadyEnabled { + get => onContentReadyEnabled; + set => this.onContentReadyEnabled = value; + } + bool? onDisposingEnabled; + [Parameter] + bool? OnDisposingEnabled { + get => onDisposingEnabled; + set => this.onDisposingEnabled = value; + } + bool? onOptionChangedEnabled; + [Parameter] + bool? OnOptionChangedEnabled { + get => onOptionChangedEnabled; + set => this.onOptionChangedEnabled = value; + } + bool? onInitializedEnabled; + [Parameter] + bool? OnInitializedEnabled { + get => onInitializedEnabled; + set => this.onInitializedEnabled = value; + } protected override async Task OnInitAsync() { await base.OnInitAsync(); DevExpress.Ui.DxContextMenuInterop.Hidden += DxContextMenu_Hidden; @@ -148,6 +601,15 @@ return DevExpress.Ui.DxContextMenuInterop.Init(dxTarget, options); DevExpress.Ui.DxContextMenuInterop.Positioning += DxContextMenu_Positioning; DevExpress.Ui.DxContextMenuInterop.Showing += DxContextMenu_Showing; DevExpress.Ui.DxContextMenuInterop.Shown += DxContextMenu_Shown; + DevExpress.Ui.DxContextMenuInterop.ItemClick += DxContextMenu_ItemClick; + DevExpress.Ui.DxContextMenuInterop.ItemContextMenu += DxContextMenu_ItemContextMenu; + DevExpress.Ui.DxContextMenuInterop.ItemHold += DxContextMenu_ItemHold; + DevExpress.Ui.DxContextMenuInterop.ItemRendered += DxContextMenu_ItemRendered; + DevExpress.Ui.DxContextMenuInterop.SelectionChanged += DxContextMenu_SelectionChanged; + DevExpress.Ui.DxContextMenuInterop.ContentReady += DxContextMenu_ContentReady; + DevExpress.Ui.DxContextMenuInterop.Disposing += DxContextMenu_Disposing; + DevExpress.Ui.DxContextMenuInterop.OptionChanged += DxContextMenu_OptionChanged; + DevExpress.Ui.DxContextMenuInterop.Initialized += DxContextMenu_Initialized; } [Parameter] Action Hidden { get; set; } @@ -184,6 +646,69 @@ return DevExpress.Ui.DxContextMenuInterop.Init(dxTarget, options); Shown?.Invoke(); } } + [Parameter] + Action ItemClick { get; set; } + void DxContextMenu_ItemClick(object sender, JQueryEventArgs e) { + if (e.Identifier == Id) { + ItemClick?.Invoke(); + } + } + [Parameter] + Action ItemContextMenu { get; set; } + void DxContextMenu_ItemContextMenu(object sender, JQueryEventArgs e) { + if (e.Identifier == Id) { + ItemContextMenu?.Invoke(); + } + } + [Parameter] + Action ItemHold { get; set; } + void DxContextMenu_ItemHold(object sender, JQueryEventArgs e) { + if (e.Identifier == Id) { + ItemHold?.Invoke(); + } + } + [Parameter] + Action ItemRendered { get; set; } + void DxContextMenu_ItemRendered(object sender, JQueryEventArgs e) { + if (e.Identifier == Id) { + ItemRendered?.Invoke(); + } + } + [Parameter] + Action SelectionChanged { get; set; } + void DxContextMenu_SelectionChanged(object sender, JQueryEventArgs e) { + if (e.Identifier == Id) { + SelectionChanged?.Invoke(); + } + } + [Parameter] + Action ContentReady { get; set; } + void DxContextMenu_ContentReady(object sender, JQueryEventArgs e) { + if (e.Identifier == Id) { + ContentReady?.Invoke(); + } + } + [Parameter] + Action Disposing { get; set; } + void DxContextMenu_Disposing(object sender, JQueryEventArgs e) { + if (e.Identifier == Id) { + Disposing?.Invoke(); + } + } + [Parameter] + Action OptionChanged { get; set; } + void DxContextMenu_OptionChanged(object sender, JQueryEventArgs e) { + if (e.Identifier == Id) { + OptionChanged?.Invoke(); + } + } + [Parameter] + Action Initialized { get; set; } + void DxContextMenu_Initialized(object sender, JQueryEventArgs e) { + if (e.Identifier == Id) { + Initialized?.Invoke(); + } + } public object Hide() { return DevExpress.Ui.DxContextMenuInterop.Hide(dxTarget).Result; } @@ -199,5 +724,14 @@ return DevExpress.Ui.DxContextMenuInterop.Init(dxTarget, options); DevExpress.Ui.DxContextMenuInterop.Positioning -= DxContextMenu_Positioning; DevExpress.Ui.DxContextMenuInterop.Showing -= DxContextMenu_Showing; DevExpress.Ui.DxContextMenuInterop.Shown -= DxContextMenu_Shown; + DevExpress.Ui.DxContextMenuInterop.ItemClick -= DxContextMenu_ItemClick; + DevExpress.Ui.DxContextMenuInterop.ItemContextMenu -= DxContextMenu_ItemContextMenu; + DevExpress.Ui.DxContextMenuInterop.ItemHold -= DxContextMenu_ItemHold; + DevExpress.Ui.DxContextMenuInterop.ItemRendered -= DxContextMenu_ItemRendered; + DevExpress.Ui.DxContextMenuInterop.SelectionChanged -= DxContextMenu_SelectionChanged; + DevExpress.Ui.DxContextMenuInterop.ContentReady -= DxContextMenu_ContentReady; + DevExpress.Ui.DxContextMenuInterop.Disposing -= DxContextMenu_Disposing; + DevExpress.Ui.DxContextMenuInterop.OptionChanged -= DxContextMenu_OptionChanged; + DevExpress.Ui.DxContextMenuInterop.Initialized -= DxContextMenu_Initialized; } } diff --git a/sources/BlazorDevExtreme/Components/DxDataGrid.cshtml b/sources/BlazorDevExtreme/Components/DxDataGrid.cshtml index af90b7f..9a655ff 100644 --- a/sources/BlazorDevExtreme/Components/DxDataGrid.cshtml +++ b/sources/BlazorDevExtreme/Components/DxDataGrid.cshtml @@ -26,6 +26,55 @@ selectionFilter = selectionFilter, sortByGroupSummaryInfo = sortByGroupSummaryInfo, summary = summary, + allowColumnReordering = allowColumnReordering, + allowColumnResizing = allowColumnResizing, + cacheEnabled = cacheEnabled, + cellHintEnabled = cellHintEnabled, + columnAutoWidth = columnAutoWidth, + columnChooser = columnChooser, + columnFixing = columnFixing, + columnHidingEnabled = columnHidingEnabled, + columnMinWidth = columnMinWidth, + columnResizingMode = columnResizingMode, + columnWidth = columnWidth, + dataSource = dataSource, + dateSerializationFormat = dateSerializationFormat, + errorRowEnabled = errorRowEnabled, + filterBuilder = filterBuilder, + filterBuilderPopup = filterBuilderPopup, + filterPanel = filterPanel, + filterRow = filterRow, + filterSyncEnabled = filterSyncEnabled, + filterValue = filterValue, + headerFilter = headerFilter, + loadPanel = loadPanel, + noDataText = noDataText, + pager = pager, + paging = paging, + rowAlternationEnabled = rowAlternationEnabled, + searchPanel = searchPanel, + selectedRowKeys = selectedRowKeys, + showBorders = showBorders, + showColumnHeaders = showColumnHeaders, + showColumnLines = showColumnLines, + showRowLines = showRowLines, + sorting = sorting, + stateStoring = stateStoring, + twoWayBindingEnabled = twoWayBindingEnabled, + wordWrapEnabled = wordWrapEnabled, + accessKey = accessKey, + activeStateEnabled = activeStateEnabled, + disabled = disabled, + focusStateEnabled = focusStateEnabled, + hint = hint, + hoverStateEnabled = hoverStateEnabled, + tabIndex = tabIndex, + visible = visible, + bindingOptions = bindingOptions, + elementAttr = elementAttr, + height = height, + rtlEnabled = rtlEnabled, + width = width, onCellClickEnabled = onCellClickEnabled, onCellHoverChangedEnabled = onCellHoverChangedEnabled, onCellPreparedEnabled = onCellPreparedEnabled, @@ -38,10 +87,31 @@ onFileSavingEnabled = onFileSavingEnabled, onRowClickEnabled = onRowClickEnabled, onRowPreparedEnabled = onRowPreparedEnabled, + onAdaptiveDetailRowPreparingEnabled = onAdaptiveDetailRowPreparingEnabled, + onDataErrorOccurredEnabled = onDataErrorOccurredEnabled, + onInitNewRowEnabled = onInitNewRowEnabled, + onKeyDownEnabled = onKeyDownEnabled, + onRowCollapsedEnabled = onRowCollapsedEnabled, + onRowCollapsingEnabled = onRowCollapsingEnabled, + onRowExpandedEnabled = onRowExpandedEnabled, + onRowExpandingEnabled = onRowExpandingEnabled, + onRowInsertedEnabled = onRowInsertedEnabled, + onRowInsertingEnabled = onRowInsertingEnabled, + onRowRemovedEnabled = onRowRemovedEnabled, + onRowRemovingEnabled = onRowRemovingEnabled, + onRowUpdatedEnabled = onRowUpdatedEnabled, + onRowUpdatingEnabled = onRowUpdatingEnabled, + onRowValidatingEnabled = onRowValidatingEnabled, + onSelectionChangedEnabled = onSelectionChangedEnabled, + onToolbarPreparingEnabled = onToolbarPreparingEnabled, + onContentReadyEnabled = onContentReadyEnabled, + onDisposingEnabled = onDisposingEnabled, + onOptionChangedEnabled = onOptionChangedEnabled, + onInitializedEnabled = onInitializedEnabled, }; } protected override Task Init(DevExpress.Ui.DxDataGridOptions options) { -return DevExpress.Ui.DxDataGridInterop.Init(dxTarget, options); + return DevExpress.Ui.DxDataGridInterop.Init(dxTarget, options); } object columns; [Parameter] @@ -235,6 +305,594 @@ return DevExpress.Ui.DxDataGridInterop.Init(dxTarget, options); } } } + bool? allowColumnReordering; + [Parameter] + bool? AllowColumnReordering { + get => isInitialized ? (bool?)DevExpress.Ui.DxDataGridInterop.GetAllowColumnReordering(dxTarget).Result : allowColumnReordering; + set { + if (isInitialized) { + DevExpress.Ui.DxDataGridInterop.SetAllowColumnReordering(dxTarget, value); + } else { + this.allowColumnReordering = value; + } + } + } + bool? allowColumnResizing; + [Parameter] + bool? AllowColumnResizing { + get => isInitialized ? (bool?)DevExpress.Ui.DxDataGridInterop.GetAllowColumnResizing(dxTarget).Result : allowColumnResizing; + set { + if (isInitialized) { + DevExpress.Ui.DxDataGridInterop.SetAllowColumnResizing(dxTarget, value); + } else { + this.allowColumnResizing = value; + } + } + } + bool? cacheEnabled; + [Parameter] + bool? CacheEnabled { + get => isInitialized ? (bool?)DevExpress.Ui.DxDataGridInterop.GetCacheEnabled(dxTarget).Result : cacheEnabled; + set { + if (isInitialized) { + DevExpress.Ui.DxDataGridInterop.SetCacheEnabled(dxTarget, value); + } else { + this.cacheEnabled = value; + } + } + } + bool? cellHintEnabled; + [Parameter] + bool? CellHintEnabled { + get => isInitialized ? (bool?)DevExpress.Ui.DxDataGridInterop.GetCellHintEnabled(dxTarget).Result : cellHintEnabled; + set { + if (isInitialized) { + DevExpress.Ui.DxDataGridInterop.SetCellHintEnabled(dxTarget, value); + } else { + this.cellHintEnabled = value; + } + } + } + bool? columnAutoWidth; + [Parameter] + bool? ColumnAutoWidth { + get => isInitialized ? (bool?)DevExpress.Ui.DxDataGridInterop.GetColumnAutoWidth(dxTarget).Result : columnAutoWidth; + set { + if (isInitialized) { + DevExpress.Ui.DxDataGridInterop.SetColumnAutoWidth(dxTarget, value); + } else { + this.columnAutoWidth = value; + } + } + } + object columnChooser; + [Parameter] + object ColumnChooser { + get => isInitialized ? DevExpress.Ui.DxDataGridInterop.GetColumnChooser(dxTarget).Result : columnChooser; + set { + if (isInitialized) { + DevExpress.Ui.DxDataGridInterop.SetColumnChooser(dxTarget, value); + } else { + this.columnChooser = value; + } + } + } + object columnFixing; + [Parameter] + object ColumnFixing { + get => isInitialized ? DevExpress.Ui.DxDataGridInterop.GetColumnFixing(dxTarget).Result : columnFixing; + set { + if (isInitialized) { + DevExpress.Ui.DxDataGridInterop.SetColumnFixing(dxTarget, value); + } else { + this.columnFixing = value; + } + } + } + bool? columnHidingEnabled; + [Parameter] + bool? ColumnHidingEnabled { + get => isInitialized ? (bool?)DevExpress.Ui.DxDataGridInterop.GetColumnHidingEnabled(dxTarget).Result : columnHidingEnabled; + set { + if (isInitialized) { + DevExpress.Ui.DxDataGridInterop.SetColumnHidingEnabled(dxTarget, value); + } else { + this.columnHidingEnabled = value; + } + } + } + float? columnMinWidth; + [Parameter] + float? ColumnMinWidth { + get => isInitialized ? (float?)DevExpress.Ui.DxDataGridInterop.GetColumnMinWidth(dxTarget).Result : columnMinWidth; + set { + if (isInitialized) { + DevExpress.Ui.DxDataGridInterop.SetColumnMinWidth(dxTarget, value); + } else { + this.columnMinWidth = value; + } + } + } + string columnResizingMode; + [Parameter] + string ColumnResizingMode { + get => isInitialized ? (string)DevExpress.Ui.DxDataGridInterop.GetColumnResizingMode(dxTarget).Result : columnResizingMode; + set { + if (isInitialized) { + DevExpress.Ui.DxDataGridInterop.SetColumnResizingMode(dxTarget, value); + } else { + this.columnResizingMode = value; + } + } + } + float? columnWidth; + [Parameter] + float? ColumnWidth { + get => isInitialized ? (float?)DevExpress.Ui.DxDataGridInterop.GetColumnWidth(dxTarget).Result : columnWidth; + set { + if (isInitialized) { + DevExpress.Ui.DxDataGridInterop.SetColumnWidth(dxTarget, value); + } else { + this.columnWidth = value; + } + } + } + object dataSource; + [Parameter] + object DataSource { + get => isInitialized ? DevExpress.Ui.DxDataGridInterop.GetDataSource(dxTarget).Result : dataSource; + set { + if (isInitialized) { + DevExpress.Ui.DxDataGridInterop.SetDataSource(dxTarget, value); + } else { + this.dataSource = value; + } + } + } + string dateSerializationFormat; + [Parameter] + string DateSerializationFormat { + get => isInitialized ? (string)DevExpress.Ui.DxDataGridInterop.GetDateSerializationFormat(dxTarget).Result : dateSerializationFormat; + set { + if (isInitialized) { + DevExpress.Ui.DxDataGridInterop.SetDateSerializationFormat(dxTarget, value); + } else { + this.dateSerializationFormat = value; + } + } + } + bool? errorRowEnabled; + [Parameter] + bool? ErrorRowEnabled { + get => isInitialized ? (bool?)DevExpress.Ui.DxDataGridInterop.GetErrorRowEnabled(dxTarget).Result : errorRowEnabled; + set { + if (isInitialized) { + DevExpress.Ui.DxDataGridInterop.SetErrorRowEnabled(dxTarget, value); + } else { + this.errorRowEnabled = value; + } + } + } + object filterBuilder; + [Parameter] + object FilterBuilder { + get => isInitialized ? DevExpress.Ui.DxDataGridInterop.GetFilterBuilder(dxTarget).Result : filterBuilder; + set { + if (isInitialized) { + DevExpress.Ui.DxDataGridInterop.SetFilterBuilder(dxTarget, value); + } else { + this.filterBuilder = value; + } + } + } + object filterBuilderPopup; + [Parameter] + object FilterBuilderPopup { + get => isInitialized ? DevExpress.Ui.DxDataGridInterop.GetFilterBuilderPopup(dxTarget).Result : filterBuilderPopup; + set { + if (isInitialized) { + DevExpress.Ui.DxDataGridInterop.SetFilterBuilderPopup(dxTarget, value); + } else { + this.filterBuilderPopup = value; + } + } + } + object filterPanel; + [Parameter] + object FilterPanel { + get => isInitialized ? DevExpress.Ui.DxDataGridInterop.GetFilterPanel(dxTarget).Result : filterPanel; + set { + if (isInitialized) { + DevExpress.Ui.DxDataGridInterop.SetFilterPanel(dxTarget, value); + } else { + this.filterPanel = value; + } + } + } + object filterRow; + [Parameter] + object FilterRow { + get => isInitialized ? DevExpress.Ui.DxDataGridInterop.GetFilterRow(dxTarget).Result : filterRow; + set { + if (isInitialized) { + DevExpress.Ui.DxDataGridInterop.SetFilterRow(dxTarget, value); + } else { + this.filterRow = value; + } + } + } + object filterSyncEnabled; + [Parameter] + object FilterSyncEnabled { + get => isInitialized ? DevExpress.Ui.DxDataGridInterop.GetFilterSyncEnabled(dxTarget).Result : filterSyncEnabled; + set { + if (isInitialized) { + DevExpress.Ui.DxDataGridInterop.SetFilterSyncEnabled(dxTarget, value); + } else { + this.filterSyncEnabled = value; + } + } + } + object filterValue; + [Parameter] + object FilterValue { + get => isInitialized ? DevExpress.Ui.DxDataGridInterop.GetFilterValue(dxTarget).Result : filterValue; + set { + if (isInitialized) { + DevExpress.Ui.DxDataGridInterop.SetFilterValue(dxTarget, value); + } else { + this.filterValue = value; + } + } + } + object headerFilter; + [Parameter] + object HeaderFilter { + get => isInitialized ? DevExpress.Ui.DxDataGridInterop.GetHeaderFilter(dxTarget).Result : headerFilter; + set { + if (isInitialized) { + DevExpress.Ui.DxDataGridInterop.SetHeaderFilter(dxTarget, value); + } else { + this.headerFilter = value; + } + } + } + object loadPanel; + [Parameter] + object LoadPanel { + get => isInitialized ? DevExpress.Ui.DxDataGridInterop.GetLoadPanel(dxTarget).Result : loadPanel; + set { + if (isInitialized) { + DevExpress.Ui.DxDataGridInterop.SetLoadPanel(dxTarget, value); + } else { + this.loadPanel = value; + } + } + } + string noDataText; + [Parameter] + string NoDataText { + get => isInitialized ? (string)DevExpress.Ui.DxDataGridInterop.GetNoDataText(dxTarget).Result : noDataText; + set { + if (isInitialized) { + DevExpress.Ui.DxDataGridInterop.SetNoDataText(dxTarget, value); + } else { + this.noDataText = value; + } + } + } + object pager; + [Parameter] + object Pager { + get => isInitialized ? DevExpress.Ui.DxDataGridInterop.GetPager(dxTarget).Result : pager; + set { + if (isInitialized) { + DevExpress.Ui.DxDataGridInterop.SetPager(dxTarget, value); + } else { + this.pager = value; + } + } + } + object paging; + [Parameter] + object Paging { + get => isInitialized ? DevExpress.Ui.DxDataGridInterop.GetPaging(dxTarget).Result : paging; + set { + if (isInitialized) { + DevExpress.Ui.DxDataGridInterop.SetPaging(dxTarget, value); + } else { + this.paging = value; + } + } + } + bool? rowAlternationEnabled; + [Parameter] + bool? RowAlternationEnabled { + get => isInitialized ? (bool?)DevExpress.Ui.DxDataGridInterop.GetRowAlternationEnabled(dxTarget).Result : rowAlternationEnabled; + set { + if (isInitialized) { + DevExpress.Ui.DxDataGridInterop.SetRowAlternationEnabled(dxTarget, value); + } else { + this.rowAlternationEnabled = value; + } + } + } + object searchPanel; + [Parameter] + object SearchPanel { + get => isInitialized ? DevExpress.Ui.DxDataGridInterop.GetSearchPanel(dxTarget).Result : searchPanel; + set { + if (isInitialized) { + DevExpress.Ui.DxDataGridInterop.SetSearchPanel(dxTarget, value); + } else { + this.searchPanel = value; + } + } + } + object selectedRowKeys; + [Parameter] + object SelectedRowKeys { + get => isInitialized ? DevExpress.Ui.DxDataGridInterop.GetSelectedRowKeys(dxTarget).Result : selectedRowKeys; + set { + if (isInitialized) { + DevExpress.Ui.DxDataGridInterop.SetSelectedRowKeys(dxTarget, value); + } else { + this.selectedRowKeys = value; + } + } + } + bool? showBorders; + [Parameter] + bool? ShowBorders { + get => isInitialized ? (bool?)DevExpress.Ui.DxDataGridInterop.GetShowBorders(dxTarget).Result : showBorders; + set { + if (isInitialized) { + DevExpress.Ui.DxDataGridInterop.SetShowBorders(dxTarget, value); + } else { + this.showBorders = value; + } + } + } + bool? showColumnHeaders; + [Parameter] + bool? ShowColumnHeaders { + get => isInitialized ? (bool?)DevExpress.Ui.DxDataGridInterop.GetShowColumnHeaders(dxTarget).Result : showColumnHeaders; + set { + if (isInitialized) { + DevExpress.Ui.DxDataGridInterop.SetShowColumnHeaders(dxTarget, value); + } else { + this.showColumnHeaders = value; + } + } + } + bool? showColumnLines; + [Parameter] + bool? ShowColumnLines { + get => isInitialized ? (bool?)DevExpress.Ui.DxDataGridInterop.GetShowColumnLines(dxTarget).Result : showColumnLines; + set { + if (isInitialized) { + DevExpress.Ui.DxDataGridInterop.SetShowColumnLines(dxTarget, value); + } else { + this.showColumnLines = value; + } + } + } + bool? showRowLines; + [Parameter] + bool? ShowRowLines { + get => isInitialized ? (bool?)DevExpress.Ui.DxDataGridInterop.GetShowRowLines(dxTarget).Result : showRowLines; + set { + if (isInitialized) { + DevExpress.Ui.DxDataGridInterop.SetShowRowLines(dxTarget, value); + } else { + this.showRowLines = value; + } + } + } + object sorting; + [Parameter] + object Sorting { + get => isInitialized ? DevExpress.Ui.DxDataGridInterop.GetSorting(dxTarget).Result : sorting; + set { + if (isInitialized) { + DevExpress.Ui.DxDataGridInterop.SetSorting(dxTarget, value); + } else { + this.sorting = value; + } + } + } + object stateStoring; + [Parameter] + object StateStoring { + get => isInitialized ? DevExpress.Ui.DxDataGridInterop.GetStateStoring(dxTarget).Result : stateStoring; + set { + if (isInitialized) { + DevExpress.Ui.DxDataGridInterop.SetStateStoring(dxTarget, value); + } else { + this.stateStoring = value; + } + } + } + bool? twoWayBindingEnabled; + [Parameter] + bool? TwoWayBindingEnabled { + get => isInitialized ? (bool?)DevExpress.Ui.DxDataGridInterop.GetTwoWayBindingEnabled(dxTarget).Result : twoWayBindingEnabled; + set { + if (isInitialized) { + DevExpress.Ui.DxDataGridInterop.SetTwoWayBindingEnabled(dxTarget, value); + } else { + this.twoWayBindingEnabled = value; + } + } + } + bool? wordWrapEnabled; + [Parameter] + bool? WordWrapEnabled { + get => isInitialized ? (bool?)DevExpress.Ui.DxDataGridInterop.GetWordWrapEnabled(dxTarget).Result : wordWrapEnabled; + set { + if (isInitialized) { + DevExpress.Ui.DxDataGridInterop.SetWordWrapEnabled(dxTarget, value); + } else { + this.wordWrapEnabled = value; + } + } + } + string accessKey; + [Parameter] + string AccessKey { + get => isInitialized ? (string)DevExpress.Ui.DxDataGridInterop.GetAccessKey(dxTarget).Result : accessKey; + set { + if (isInitialized) { + DevExpress.Ui.DxDataGridInterop.SetAccessKey(dxTarget, value); + } else { + this.accessKey = value; + } + } + } + bool? activeStateEnabled; + [Parameter] + bool? ActiveStateEnabled { + get => isInitialized ? (bool?)DevExpress.Ui.DxDataGridInterop.GetActiveStateEnabled(dxTarget).Result : activeStateEnabled; + set { + if (isInitialized) { + DevExpress.Ui.DxDataGridInterop.SetActiveStateEnabled(dxTarget, value); + } else { + this.activeStateEnabled = value; + } + } + } + bool? disabled; + [Parameter] + bool? Disabled { + get => isInitialized ? (bool?)DevExpress.Ui.DxDataGridInterop.GetDisabled(dxTarget).Result : disabled; + set { + if (isInitialized) { + DevExpress.Ui.DxDataGridInterop.SetDisabled(dxTarget, value); + } else { + this.disabled = value; + } + } + } + bool? focusStateEnabled; + [Parameter] + bool? FocusStateEnabled { + get => isInitialized ? (bool?)DevExpress.Ui.DxDataGridInterop.GetFocusStateEnabled(dxTarget).Result : focusStateEnabled; + set { + if (isInitialized) { + DevExpress.Ui.DxDataGridInterop.SetFocusStateEnabled(dxTarget, value); + } else { + this.focusStateEnabled = value; + } + } + } + string hint; + [Parameter] + string Hint { + get => isInitialized ? (string)DevExpress.Ui.DxDataGridInterop.GetHint(dxTarget).Result : hint; + set { + if (isInitialized) { + DevExpress.Ui.DxDataGridInterop.SetHint(dxTarget, value); + } else { + this.hint = value; + } + } + } + bool? hoverStateEnabled; + [Parameter] + bool? HoverStateEnabled { + get => isInitialized ? (bool?)DevExpress.Ui.DxDataGridInterop.GetHoverStateEnabled(dxTarget).Result : hoverStateEnabled; + set { + if (isInitialized) { + DevExpress.Ui.DxDataGridInterop.SetHoverStateEnabled(dxTarget, value); + } else { + this.hoverStateEnabled = value; + } + } + } + float? tabIndex; + [Parameter] + float? TabIndex { + get => isInitialized ? (float?)DevExpress.Ui.DxDataGridInterop.GetTabIndex(dxTarget).Result : tabIndex; + set { + if (isInitialized) { + DevExpress.Ui.DxDataGridInterop.SetTabIndex(dxTarget, value); + } else { + this.tabIndex = value; + } + } + } + bool? visible; + [Parameter] + bool? Visible { + get => isInitialized ? (bool?)DevExpress.Ui.DxDataGridInterop.GetVisible(dxTarget).Result : visible; + set { + if (isInitialized) { + DevExpress.Ui.DxDataGridInterop.SetVisible(dxTarget, value); + } else { + this.visible = value; + } + } + } + object bindingOptions; + [Parameter] + object BindingOptions { + get => isInitialized ? DevExpress.Ui.DxDataGridInterop.GetBindingOptions(dxTarget).Result : bindingOptions; + set { + if (isInitialized) { + DevExpress.Ui.DxDataGridInterop.SetBindingOptions(dxTarget, value); + } else { + this.bindingOptions = value; + } + } + } + object elementAttr; + [Parameter] + object ElementAttr { + get => isInitialized ? DevExpress.Ui.DxDataGridInterop.GetElementAttr(dxTarget).Result : elementAttr; + set { + if (isInitialized) { + DevExpress.Ui.DxDataGridInterop.SetElementAttr(dxTarget, value); + } else { + this.elementAttr = value; + } + } + } + object height; + [Parameter] + object Height { + get => isInitialized ? DevExpress.Ui.DxDataGridInterop.GetHeight(dxTarget).Result : height; + set { + if (isInitialized) { + DevExpress.Ui.DxDataGridInterop.SetHeight(dxTarget, value); + } else { + this.height = value; + } + } + } + bool? rtlEnabled; + [Parameter] + bool? RtlEnabled { + get => isInitialized ? (bool?)DevExpress.Ui.DxDataGridInterop.GetRtlEnabled(dxTarget).Result : rtlEnabled; + set { + if (isInitialized) { + DevExpress.Ui.DxDataGridInterop.SetRtlEnabled(dxTarget, value); + } else { + this.rtlEnabled = value; + } + } + } + object width; + [Parameter] + object Width { + get => isInitialized ? DevExpress.Ui.DxDataGridInterop.GetWidth(dxTarget).Result : width; + set { + if (isInitialized) { + DevExpress.Ui.DxDataGridInterop.SetWidth(dxTarget, value); + } else { + this.width = value; + } + } + } bool? onCellClickEnabled; [Parameter] bool? OnCellClickEnabled { @@ -307,6 +965,132 @@ return DevExpress.Ui.DxDataGridInterop.Init(dxTarget, options); get => onRowPreparedEnabled; set => this.onRowPreparedEnabled = value; } + bool? onAdaptiveDetailRowPreparingEnabled; + [Parameter] + bool? OnAdaptiveDetailRowPreparingEnabled { + get => onAdaptiveDetailRowPreparingEnabled; + set => this.onAdaptiveDetailRowPreparingEnabled = value; + } + bool? onDataErrorOccurredEnabled; + [Parameter] + bool? OnDataErrorOccurredEnabled { + get => onDataErrorOccurredEnabled; + set => this.onDataErrorOccurredEnabled = value; + } + bool? onInitNewRowEnabled; + [Parameter] + bool? OnInitNewRowEnabled { + get => onInitNewRowEnabled; + set => this.onInitNewRowEnabled = value; + } + bool? onKeyDownEnabled; + [Parameter] + bool? OnKeyDownEnabled { + get => onKeyDownEnabled; + set => this.onKeyDownEnabled = value; + } + bool? onRowCollapsedEnabled; + [Parameter] + bool? OnRowCollapsedEnabled { + get => onRowCollapsedEnabled; + set => this.onRowCollapsedEnabled = value; + } + bool? onRowCollapsingEnabled; + [Parameter] + bool? OnRowCollapsingEnabled { + get => onRowCollapsingEnabled; + set => this.onRowCollapsingEnabled = value; + } + bool? onRowExpandedEnabled; + [Parameter] + bool? OnRowExpandedEnabled { + get => onRowExpandedEnabled; + set => this.onRowExpandedEnabled = value; + } + bool? onRowExpandingEnabled; + [Parameter] + bool? OnRowExpandingEnabled { + get => onRowExpandingEnabled; + set => this.onRowExpandingEnabled = value; + } + bool? onRowInsertedEnabled; + [Parameter] + bool? OnRowInsertedEnabled { + get => onRowInsertedEnabled; + set => this.onRowInsertedEnabled = value; + } + bool? onRowInsertingEnabled; + [Parameter] + bool? OnRowInsertingEnabled { + get => onRowInsertingEnabled; + set => this.onRowInsertingEnabled = value; + } + bool? onRowRemovedEnabled; + [Parameter] + bool? OnRowRemovedEnabled { + get => onRowRemovedEnabled; + set => this.onRowRemovedEnabled = value; + } + bool? onRowRemovingEnabled; + [Parameter] + bool? OnRowRemovingEnabled { + get => onRowRemovingEnabled; + set => this.onRowRemovingEnabled = value; + } + bool? onRowUpdatedEnabled; + [Parameter] + bool? OnRowUpdatedEnabled { + get => onRowUpdatedEnabled; + set => this.onRowUpdatedEnabled = value; + } + bool? onRowUpdatingEnabled; + [Parameter] + bool? OnRowUpdatingEnabled { + get => onRowUpdatingEnabled; + set => this.onRowUpdatingEnabled = value; + } + bool? onRowValidatingEnabled; + [Parameter] + bool? OnRowValidatingEnabled { + get => onRowValidatingEnabled; + set => this.onRowValidatingEnabled = value; + } + bool? onSelectionChangedEnabled; + [Parameter] + bool? OnSelectionChangedEnabled { + get => onSelectionChangedEnabled; + set => this.onSelectionChangedEnabled = value; + } + bool? onToolbarPreparingEnabled; + [Parameter] + bool? OnToolbarPreparingEnabled { + get => onToolbarPreparingEnabled; + set => this.onToolbarPreparingEnabled = value; + } + bool? onContentReadyEnabled; + [Parameter] + bool? OnContentReadyEnabled { + get => onContentReadyEnabled; + set => this.onContentReadyEnabled = value; + } + bool? onDisposingEnabled; + [Parameter] + bool? OnDisposingEnabled { + get => onDisposingEnabled; + set => this.onDisposingEnabled = value; + } + bool? onOptionChangedEnabled; + [Parameter] + bool? OnOptionChangedEnabled { + get => onOptionChangedEnabled; + set => this.onOptionChangedEnabled = value; + } + bool? onInitializedEnabled; + [Parameter] + bool? OnInitializedEnabled { + get => onInitializedEnabled; + set => this.onInitializedEnabled = value; + } protected override async Task OnInitAsync() { await base.OnInitAsync(); DevExpress.Ui.DxDataGridInterop.CellClick += DxDataGrid_CellClick; @@ -321,6 +1105,27 @@ return DevExpress.Ui.DxDataGridInterop.Init(dxTarget, options); DevExpress.Ui.DxDataGridInterop.FileSaving += DxDataGrid_FileSaving; DevExpress.Ui.DxDataGridInterop.RowClick += DxDataGrid_RowClick; DevExpress.Ui.DxDataGridInterop.RowPrepared += DxDataGrid_RowPrepared; + DevExpress.Ui.DxDataGridInterop.AdaptiveDetailRowPreparing += DxDataGrid_AdaptiveDetailRowPreparing; + DevExpress.Ui.DxDataGridInterop.DataErrorOccurred += DxDataGrid_DataErrorOccurred; + DevExpress.Ui.DxDataGridInterop.InitNewRow += DxDataGrid_InitNewRow; + DevExpress.Ui.DxDataGridInterop.KeyDown += DxDataGrid_KeyDown; + DevExpress.Ui.DxDataGridInterop.RowCollapsed += DxDataGrid_RowCollapsed; + DevExpress.Ui.DxDataGridInterop.RowCollapsing += DxDataGrid_RowCollapsing; + DevExpress.Ui.DxDataGridInterop.RowExpanded += DxDataGrid_RowExpanded; + DevExpress.Ui.DxDataGridInterop.RowExpanding += DxDataGrid_RowExpanding; + DevExpress.Ui.DxDataGridInterop.RowInserted += DxDataGrid_RowInserted; + DevExpress.Ui.DxDataGridInterop.RowInserting += DxDataGrid_RowInserting; + DevExpress.Ui.DxDataGridInterop.RowRemoved += DxDataGrid_RowRemoved; + DevExpress.Ui.DxDataGridInterop.RowRemoving += DxDataGrid_RowRemoving; + DevExpress.Ui.DxDataGridInterop.RowUpdated += DxDataGrid_RowUpdated; + DevExpress.Ui.DxDataGridInterop.RowUpdating += DxDataGrid_RowUpdating; + DevExpress.Ui.DxDataGridInterop.RowValidating += DxDataGrid_RowValidating; + DevExpress.Ui.DxDataGridInterop.SelectionChanged += DxDataGrid_SelectionChanged; + DevExpress.Ui.DxDataGridInterop.ToolbarPreparing += DxDataGrid_ToolbarPreparing; + DevExpress.Ui.DxDataGridInterop.ContentReady += DxDataGrid_ContentReady; + DevExpress.Ui.DxDataGridInterop.Disposing += DxDataGrid_Disposing; + DevExpress.Ui.DxDataGridInterop.OptionChanged += DxDataGrid_OptionChanged; + DevExpress.Ui.DxDataGridInterop.Initialized += DxDataGrid_Initialized; } [Parameter] Action CellClick { get; set; } @@ -406,6 +1211,153 @@ return DevExpress.Ui.DxDataGridInterop.Init(dxTarget, options); RowPrepared?.Invoke(); } } + [Parameter] + Action AdaptiveDetailRowPreparing { get; set; } + void DxDataGrid_AdaptiveDetailRowPreparing(object sender, JQueryEventArgs e) { + if (e.Identifier == Id) { + AdaptiveDetailRowPreparing?.Invoke(); + } + } + [Parameter] + Action DataErrorOccurred { get; set; } + void DxDataGrid_DataErrorOccurred(object sender, JQueryEventArgs e) { + if (e.Identifier == Id) { + DataErrorOccurred?.Invoke(); + } + } + [Parameter] + Action InitNewRow { get; set; } + void DxDataGrid_InitNewRow(object sender, JQueryEventArgs e) { + if (e.Identifier == Id) { + InitNewRow?.Invoke(); + } + } + [Parameter] + Action KeyDown { get; set; } + void DxDataGrid_KeyDown(object sender, JQueryEventArgs e) { + if (e.Identifier == Id) { + KeyDown?.Invoke(); + } + } + [Parameter] + Action RowCollapsed { get; set; } + void DxDataGrid_RowCollapsed(object sender, JQueryEventArgs e) { + if (e.Identifier == Id) { + RowCollapsed?.Invoke(); + } + } + [Parameter] + Action RowCollapsing { get; set; } + void DxDataGrid_RowCollapsing(object sender, JQueryEventArgs e) { + if (e.Identifier == Id) { + RowCollapsing?.Invoke(); + } + } + [Parameter] + Action RowExpanded { get; set; } + void DxDataGrid_RowExpanded(object sender, JQueryEventArgs e) { + if (e.Identifier == Id) { + RowExpanded?.Invoke(); + } + } + [Parameter] + Action RowExpanding { get; set; } + void DxDataGrid_RowExpanding(object sender, JQueryEventArgs e) { + if (e.Identifier == Id) { + RowExpanding?.Invoke(); + } + } + [Parameter] + Action RowInserted { get; set; } + void DxDataGrid_RowInserted(object sender, JQueryEventArgs e) { + if (e.Identifier == Id) { + RowInserted?.Invoke(); + } + } + [Parameter] + Action RowInserting { get; set; } + void DxDataGrid_RowInserting(object sender, JQueryEventArgs e) { + if (e.Identifier == Id) { + RowInserting?.Invoke(); + } + } + [Parameter] + Action RowRemoved { get; set; } + void DxDataGrid_RowRemoved(object sender, JQueryEventArgs e) { + if (e.Identifier == Id) { + RowRemoved?.Invoke(); + } + } + [Parameter] + Action RowRemoving { get; set; } + void DxDataGrid_RowRemoving(object sender, JQueryEventArgs e) { + if (e.Identifier == Id) { + RowRemoving?.Invoke(); + } + } + [Parameter] + Action RowUpdated { get; set; } + void DxDataGrid_RowUpdated(object sender, JQueryEventArgs e) { + if (e.Identifier == Id) { + RowUpdated?.Invoke(); + } + } + [Parameter] + Action RowUpdating { get; set; } + void DxDataGrid_RowUpdating(object sender, JQueryEventArgs e) { + if (e.Identifier == Id) { + RowUpdating?.Invoke(); + } + } + [Parameter] + Action RowValidating { get; set; } + void DxDataGrid_RowValidating(object sender, JQueryEventArgs e) { + if (e.Identifier == Id) { + RowValidating?.Invoke(); + } + } + [Parameter] + Action SelectionChanged { get; set; } + void DxDataGrid_SelectionChanged(object sender, JQueryEventArgs e) { + if (e.Identifier == Id) { + SelectionChanged?.Invoke(); + } + } + [Parameter] + Action ToolbarPreparing { get; set; } + void DxDataGrid_ToolbarPreparing(object sender, JQueryEventArgs e) { + if (e.Identifier == Id) { + ToolbarPreparing?.Invoke(); + } + } + [Parameter] + Action ContentReady { get; set; } + void DxDataGrid_ContentReady(object sender, JQueryEventArgs e) { + if (e.Identifier == Id) { + ContentReady?.Invoke(); + } + } + [Parameter] + Action Disposing { get; set; } + void DxDataGrid_Disposing(object sender, JQueryEventArgs e) { + if (e.Identifier == Id) { + Disposing?.Invoke(); + } + } + [Parameter] + Action OptionChanged { get; set; } + void DxDataGrid_OptionChanged(object sender, JQueryEventArgs e) { + if (e.Identifier == Id) { + OptionChanged?.Invoke(); + } + } + [Parameter] + Action Initialized { get; set; } + void DxDataGrid_Initialized(object sender, JQueryEventArgs e) { + if (e.Identifier == Id) { + Initialized?.Invoke(); + } + } public void AddColumn(object columnOptions) { DevExpress.Ui.DxDataGridInterop.AddColumn(dxTarget, columnOptions); } @@ -476,5 +1428,26 @@ return DevExpress.Ui.DxDataGridInterop.Init(dxTarget, options); DevExpress.Ui.DxDataGridInterop.FileSaving -= DxDataGrid_FileSaving; DevExpress.Ui.DxDataGridInterop.RowClick -= DxDataGrid_RowClick; DevExpress.Ui.DxDataGridInterop.RowPrepared -= DxDataGrid_RowPrepared; + DevExpress.Ui.DxDataGridInterop.AdaptiveDetailRowPreparing -= DxDataGrid_AdaptiveDetailRowPreparing; + DevExpress.Ui.DxDataGridInterop.DataErrorOccurred -= DxDataGrid_DataErrorOccurred; + DevExpress.Ui.DxDataGridInterop.InitNewRow -= DxDataGrid_InitNewRow; + DevExpress.Ui.DxDataGridInterop.KeyDown -= DxDataGrid_KeyDown; + DevExpress.Ui.DxDataGridInterop.RowCollapsed -= DxDataGrid_RowCollapsed; + DevExpress.Ui.DxDataGridInterop.RowCollapsing -= DxDataGrid_RowCollapsing; + DevExpress.Ui.DxDataGridInterop.RowExpanded -= DxDataGrid_RowExpanded; + DevExpress.Ui.DxDataGridInterop.RowExpanding -= DxDataGrid_RowExpanding; + DevExpress.Ui.DxDataGridInterop.RowInserted -= DxDataGrid_RowInserted; + DevExpress.Ui.DxDataGridInterop.RowInserting -= DxDataGrid_RowInserting; + DevExpress.Ui.DxDataGridInterop.RowRemoved -= DxDataGrid_RowRemoved; + DevExpress.Ui.DxDataGridInterop.RowRemoving -= DxDataGrid_RowRemoving; + DevExpress.Ui.DxDataGridInterop.RowUpdated -= DxDataGrid_RowUpdated; + DevExpress.Ui.DxDataGridInterop.RowUpdating -= DxDataGrid_RowUpdating; + DevExpress.Ui.DxDataGridInterop.RowValidating -= DxDataGrid_RowValidating; + DevExpress.Ui.DxDataGridInterop.SelectionChanged -= DxDataGrid_SelectionChanged; + DevExpress.Ui.DxDataGridInterop.ToolbarPreparing -= DxDataGrid_ToolbarPreparing; + DevExpress.Ui.DxDataGridInterop.ContentReady -= DxDataGrid_ContentReady; + DevExpress.Ui.DxDataGridInterop.Disposing -= DxDataGrid_Disposing; + DevExpress.Ui.DxDataGridInterop.OptionChanged -= DxDataGrid_OptionChanged; + DevExpress.Ui.DxDataGridInterop.Initialized -= DxDataGrid_Initialized; } } diff --git a/sources/BlazorDevExtreme/Components/DxDateBox.cshtml b/sources/BlazorDevExtreme/Components/DxDateBox.cshtml index d73c82e..0c20448 100644 --- a/sources/BlazorDevExtreme/Components/DxDateBox.cshtml +++ b/sources/BlazorDevExtreme/Components/DxDateBox.cshtml @@ -29,15 +29,69 @@ showAnalogClock = showAnalogClock, type = type, value = value, + acceptCustomValue = acceptCustomValue, + activeStateEnabled = activeStateEnabled, + applyValueMode = applyValueMode, + deferRendering = deferRendering, + dropDownButtonTemplate = dropDownButtonTemplate, + opened = isOpened, + maxLength = maxLength, + mode = mode, + focusStateEnabled = focusStateEnabled, + hoverStateEnabled = hoverStateEnabled, + inputAttr = inputAttr, + mask = mask, + maskChar = maskChar, + maskInvalidMessage = maskInvalidMessage, + maskRules = maskRules, + name = name, + showClearButton = showClearButton, + showMaskMode = showMaskMode, + spellcheck = spellcheck, + text = text, + useMaskedValue = useMaskedValue, + valueChangeEvent = valueChangeEvent, + isValid = isValid, + readOnly = readOnly, + validationError = validationError, + validationMessageMode = validationMessageMode, + accessKey = accessKey, + disabled = disabled, + hint = hint, + tabIndex = tabIndex, + visible = visible, + bindingOptions = bindingOptions, + elementAttr = elementAttr, + height = height, + rtlEnabled = rtlEnabled, + width = width, + onClosedEnabled = onClosedEnabled, + onOpenedEnabled = onOpenedEnabled, + onChangeEnabled = onChangeEnabled, + onCopyEnabled = onCopyEnabled, + onCutEnabled = onCutEnabled, + onEnterKeyEnabled = onEnterKeyEnabled, + onFocusInEnabled = onFocusInEnabled, + onFocusOutEnabled = onFocusOutEnabled, + onInputEnabled = onInputEnabled, + onKeyDownEnabled = onKeyDownEnabled, + onKeyPressEnabled = onKeyPressEnabled, + onKeyUpEnabled = onKeyUpEnabled, + onPasteEnabled = onPasteEnabled, + onValueChangedEnabled = onValueChangedEnabled, + onContentReadyEnabled = onContentReadyEnabled, + onDisposingEnabled = onDisposingEnabled, + onOptionChangedEnabled = onOptionChangedEnabled, + onInitializedEnabled = onInitializedEnabled, }; } protected override Task Init(DevExpress.Ui.DxDateBoxOptions options) { -return DevExpress.Ui.DxDateBoxInterop.Init(dxTarget, options); + return DevExpress.Ui.DxDateBoxInterop.Init(dxTarget, options); } bool? adaptivityEnabled; [Parameter] bool? AdaptivityEnabled { - get => isInitialized ? DevExpress.Ui.DxDateBoxInterop.GetAdaptivityEnabled(dxTarget).Result : adaptivityEnabled; + get => isInitialized ? (bool?)DevExpress.Ui.DxDateBoxInterop.GetAdaptivityEnabled(dxTarget).Result : adaptivityEnabled; set { if (isInitialized) { DevExpress.Ui.DxDateBoxInterop.SetAdaptivityEnabled(dxTarget, value); @@ -49,7 +103,7 @@ return DevExpress.Ui.DxDateBoxInterop.Init(dxTarget, options); string applyButtonText; [Parameter] string ApplyButtonText { - get => isInitialized ? DevExpress.Ui.DxDateBoxInterop.GetApplyButtonText(dxTarget).Result : applyButtonText; + get => isInitialized ? (string)DevExpress.Ui.DxDateBoxInterop.GetApplyButtonText(dxTarget).Result : applyButtonText; set { if (isInitialized) { DevExpress.Ui.DxDateBoxInterop.SetApplyButtonText(dxTarget, value); @@ -73,7 +127,7 @@ return DevExpress.Ui.DxDateBoxInterop.Init(dxTarget, options); string cancelButtonText; [Parameter] string CancelButtonText { - get => isInitialized ? DevExpress.Ui.DxDateBoxInterop.GetCancelButtonText(dxTarget).Result : cancelButtonText; + get => isInitialized ? (string)DevExpress.Ui.DxDateBoxInterop.GetCancelButtonText(dxTarget).Result : cancelButtonText; set { if (isInitialized) { DevExpress.Ui.DxDateBoxInterop.SetCancelButtonText(dxTarget, value); @@ -85,7 +139,7 @@ return DevExpress.Ui.DxDateBoxInterop.Init(dxTarget, options); string dateOutOfRangeMessage; [Parameter] string DateOutOfRangeMessage { - get => isInitialized ? DevExpress.Ui.DxDateBoxInterop.GetDateOutOfRangeMessage(dxTarget).Result : dateOutOfRangeMessage; + get => isInitialized ? (string)DevExpress.Ui.DxDateBoxInterop.GetDateOutOfRangeMessage(dxTarget).Result : dateOutOfRangeMessage; set { if (isInitialized) { DevExpress.Ui.DxDateBoxInterop.SetDateOutOfRangeMessage(dxTarget, value); @@ -97,7 +151,7 @@ return DevExpress.Ui.DxDateBoxInterop.Init(dxTarget, options); string dateSerializationFormat; [Parameter] string DateSerializationFormat { - get => isInitialized ? DevExpress.Ui.DxDateBoxInterop.GetDateSerializationFormat(dxTarget).Result : dateSerializationFormat; + get => isInitialized ? (string)DevExpress.Ui.DxDateBoxInterop.GetDateSerializationFormat(dxTarget).Result : dateSerializationFormat; set { if (isInitialized) { DevExpress.Ui.DxDateBoxInterop.SetDateSerializationFormat(dxTarget, value); @@ -133,7 +187,7 @@ return DevExpress.Ui.DxDateBoxInterop.Init(dxTarget, options); float? interval; [Parameter] float? Interval { - get => isInitialized ? DevExpress.Ui.DxDateBoxInterop.GetInterval(dxTarget).Result : interval; + get => isInitialized ? (float?)DevExpress.Ui.DxDateBoxInterop.GetInterval(dxTarget).Result : interval; set { if (isInitialized) { DevExpress.Ui.DxDateBoxInterop.SetInterval(dxTarget, value); @@ -145,7 +199,7 @@ return DevExpress.Ui.DxDateBoxInterop.Init(dxTarget, options); string invalidDateMessage; [Parameter] string InvalidDateMessage { - get => isInitialized ? DevExpress.Ui.DxDateBoxInterop.GetInvalidDateMessage(dxTarget).Result : invalidDateMessage; + get => isInitialized ? (string)DevExpress.Ui.DxDateBoxInterop.GetInvalidDateMessage(dxTarget).Result : invalidDateMessage; set { if (isInitialized) { DevExpress.Ui.DxDateBoxInterop.SetInvalidDateMessage(dxTarget, value); @@ -169,7 +223,7 @@ return DevExpress.Ui.DxDateBoxInterop.Init(dxTarget, options); string maxZoomLevel; [Parameter] string MaxZoomLevel { - get => isInitialized ? DevExpress.Ui.DxDateBoxInterop.GetMaxZoomLevel(dxTarget).Result : maxZoomLevel; + get => isInitialized ? (string)DevExpress.Ui.DxDateBoxInterop.GetMaxZoomLevel(dxTarget).Result : maxZoomLevel; set { if (isInitialized) { DevExpress.Ui.DxDateBoxInterop.SetMaxZoomLevel(dxTarget, value); @@ -193,7 +247,7 @@ return DevExpress.Ui.DxDateBoxInterop.Init(dxTarget, options); string minZoomLevel; [Parameter] string MinZoomLevel { - get => isInitialized ? DevExpress.Ui.DxDateBoxInterop.GetMinZoomLevel(dxTarget).Result : minZoomLevel; + get => isInitialized ? (string)DevExpress.Ui.DxDateBoxInterop.GetMinZoomLevel(dxTarget).Result : minZoomLevel; set { if (isInitialized) { DevExpress.Ui.DxDateBoxInterop.SetMinZoomLevel(dxTarget, value); @@ -205,7 +259,7 @@ return DevExpress.Ui.DxDateBoxInterop.Init(dxTarget, options); string pickerType; [Parameter] string PickerType { - get => isInitialized ? DevExpress.Ui.DxDateBoxInterop.GetPickerType(dxTarget).Result : pickerType; + get => isInitialized ? (string)DevExpress.Ui.DxDateBoxInterop.GetPickerType(dxTarget).Result : pickerType; set { if (isInitialized) { DevExpress.Ui.DxDateBoxInterop.SetPickerType(dxTarget, value); @@ -217,7 +271,7 @@ return DevExpress.Ui.DxDateBoxInterop.Init(dxTarget, options); string placeholder; [Parameter] string Placeholder { - get => isInitialized ? DevExpress.Ui.DxDateBoxInterop.GetPlaceholder(dxTarget).Result : placeholder; + get => isInitialized ? (string)DevExpress.Ui.DxDateBoxInterop.GetPlaceholder(dxTarget).Result : placeholder; set { if (isInitialized) { DevExpress.Ui.DxDateBoxInterop.SetPlaceholder(dxTarget, value); @@ -229,7 +283,7 @@ return DevExpress.Ui.DxDateBoxInterop.Init(dxTarget, options); bool? showAnalogClock; [Parameter] bool? ShowAnalogClock { - get => isInitialized ? DevExpress.Ui.DxDateBoxInterop.GetShowAnalogClock(dxTarget).Result : showAnalogClock; + get => isInitialized ? (bool?)DevExpress.Ui.DxDateBoxInterop.GetShowAnalogClock(dxTarget).Result : showAnalogClock; set { if (isInitialized) { DevExpress.Ui.DxDateBoxInterop.SetShowAnalogClock(dxTarget, value); @@ -241,7 +295,7 @@ return DevExpress.Ui.DxDateBoxInterop.Init(dxTarget, options); string type; [Parameter] string Type { - get => isInitialized ? DevExpress.Ui.DxDateBoxInterop.GetType(dxTarget).Result : type; + get => isInitialized ? (string)DevExpress.Ui.DxDateBoxInterop.GetType(dxTarget).Result : type; set { if (isInitialized) { DevExpress.Ui.DxDateBoxInterop.SetType(dxTarget, value); @@ -262,8 +316,692 @@ return DevExpress.Ui.DxDateBoxInterop.Init(dxTarget, options); } } } + bool? acceptCustomValue; + [Parameter] + bool? AcceptCustomValue { + get => isInitialized ? (bool?)DevExpress.Ui.DxDateBoxInterop.GetAcceptCustomValue(dxTarget).Result : acceptCustomValue; + set { + if (isInitialized) { + DevExpress.Ui.DxDateBoxInterop.SetAcceptCustomValue(dxTarget, value); + } else { + this.acceptCustomValue = value; + } + } + } + bool? activeStateEnabled; + [Parameter] + bool? ActiveStateEnabled { + get => isInitialized ? (bool?)DevExpress.Ui.DxDateBoxInterop.GetActiveStateEnabled(dxTarget).Result : activeStateEnabled; + set { + if (isInitialized) { + DevExpress.Ui.DxDateBoxInterop.SetActiveStateEnabled(dxTarget, value); + } else { + this.activeStateEnabled = value; + } + } + } + string applyValueMode; + [Parameter] + string ApplyValueMode { + get => isInitialized ? (string)DevExpress.Ui.DxDateBoxInterop.GetApplyValueMode(dxTarget).Result : applyValueMode; + set { + if (isInitialized) { + DevExpress.Ui.DxDateBoxInterop.SetApplyValueMode(dxTarget, value); + } else { + this.applyValueMode = value; + } + } + } + bool? deferRendering; + [Parameter] + bool? DeferRendering { + get => isInitialized ? (bool?)DevExpress.Ui.DxDateBoxInterop.GetDeferRendering(dxTarget).Result : deferRendering; + set { + if (isInitialized) { + DevExpress.Ui.DxDateBoxInterop.SetDeferRendering(dxTarget, value); + } else { + this.deferRendering = value; + } + } + } + object dropDownButtonTemplate; + [Parameter] + object DropDownButtonTemplate { + get => isInitialized ? DevExpress.Ui.DxDateBoxInterop.GetDropDownButtonTemplate(dxTarget).Result : dropDownButtonTemplate; + set { + if (isInitialized) { + DevExpress.Ui.DxDateBoxInterop.SetDropDownButtonTemplate(dxTarget, value); + } else { + this.dropDownButtonTemplate = value; + } + } + } + bool? isOpened; + [Parameter] + bool? IsOpened { + get => isInitialized ? (bool?)DevExpress.Ui.DxDateBoxInterop.GetOpened(dxTarget).Result : isOpened; + set { + if (isInitialized) { + DevExpress.Ui.DxDateBoxInterop.SetOpened(dxTarget, value); + } else { + this.isOpened = value; + } + } + } + object maxLength; + [Parameter] + object MaxLength { + get => isInitialized ? DevExpress.Ui.DxDateBoxInterop.GetMaxLength(dxTarget).Result : maxLength; + set { + if (isInitialized) { + DevExpress.Ui.DxDateBoxInterop.SetMaxLength(dxTarget, value); + } else { + this.maxLength = value; + } + } + } + string mode; + [Parameter] + string Mode { + get => isInitialized ? (string)DevExpress.Ui.DxDateBoxInterop.GetMode(dxTarget).Result : mode; + set { + if (isInitialized) { + DevExpress.Ui.DxDateBoxInterop.SetMode(dxTarget, value); + } else { + this.mode = value; + } + } + } + bool? focusStateEnabled; + [Parameter] + bool? FocusStateEnabled { + get => isInitialized ? (bool?)DevExpress.Ui.DxDateBoxInterop.GetFocusStateEnabled(dxTarget).Result : focusStateEnabled; + set { + if (isInitialized) { + DevExpress.Ui.DxDateBoxInterop.SetFocusStateEnabled(dxTarget, value); + } else { + this.focusStateEnabled = value; + } + } + } + bool? hoverStateEnabled; + [Parameter] + bool? HoverStateEnabled { + get => isInitialized ? (bool?)DevExpress.Ui.DxDateBoxInterop.GetHoverStateEnabled(dxTarget).Result : hoverStateEnabled; + set { + if (isInitialized) { + DevExpress.Ui.DxDateBoxInterop.SetHoverStateEnabled(dxTarget, value); + } else { + this.hoverStateEnabled = value; + } + } + } + object inputAttr; + [Parameter] + object InputAttr { + get => isInitialized ? DevExpress.Ui.DxDateBoxInterop.GetInputAttr(dxTarget).Result : inputAttr; + set { + if (isInitialized) { + DevExpress.Ui.DxDateBoxInterop.SetInputAttr(dxTarget, value); + } else { + this.inputAttr = value; + } + } + } + string mask; + [Parameter] + string Mask { + get => isInitialized ? (string)DevExpress.Ui.DxDateBoxInterop.GetMask(dxTarget).Result : mask; + set { + if (isInitialized) { + DevExpress.Ui.DxDateBoxInterop.SetMask(dxTarget, value); + } else { + this.mask = value; + } + } + } + string maskChar; + [Parameter] + string MaskChar { + get => isInitialized ? (string)DevExpress.Ui.DxDateBoxInterop.GetMaskChar(dxTarget).Result : maskChar; + set { + if (isInitialized) { + DevExpress.Ui.DxDateBoxInterop.SetMaskChar(dxTarget, value); + } else { + this.maskChar = value; + } + } + } + string maskInvalidMessage; + [Parameter] + string MaskInvalidMessage { + get => isInitialized ? (string)DevExpress.Ui.DxDateBoxInterop.GetMaskInvalidMessage(dxTarget).Result : maskInvalidMessage; + set { + if (isInitialized) { + DevExpress.Ui.DxDateBoxInterop.SetMaskInvalidMessage(dxTarget, value); + } else { + this.maskInvalidMessage = value; + } + } + } + object maskRules; + [Parameter] + object MaskRules { + get => isInitialized ? DevExpress.Ui.DxDateBoxInterop.GetMaskRules(dxTarget).Result : maskRules; + set { + if (isInitialized) { + DevExpress.Ui.DxDateBoxInterop.SetMaskRules(dxTarget, value); + } else { + this.maskRules = value; + } + } + } + string name; + [Parameter] + string Name { + get => isInitialized ? (string)DevExpress.Ui.DxDateBoxInterop.GetName(dxTarget).Result : name; + set { + if (isInitialized) { + DevExpress.Ui.DxDateBoxInterop.SetName(dxTarget, value); + } else { + this.name = value; + } + } + } + bool? showClearButton; + [Parameter] + bool? ShowClearButton { + get => isInitialized ? (bool?)DevExpress.Ui.DxDateBoxInterop.GetShowClearButton(dxTarget).Result : showClearButton; + set { + if (isInitialized) { + DevExpress.Ui.DxDateBoxInterop.SetShowClearButton(dxTarget, value); + } else { + this.showClearButton = value; + } + } + } + string showMaskMode; + [Parameter] + string ShowMaskMode { + get => isInitialized ? (string)DevExpress.Ui.DxDateBoxInterop.GetShowMaskMode(dxTarget).Result : showMaskMode; + set { + if (isInitialized) { + DevExpress.Ui.DxDateBoxInterop.SetShowMaskMode(dxTarget, value); + } else { + this.showMaskMode = value; + } + } + } + bool? spellcheck; + [Parameter] + bool? Spellcheck { + get => isInitialized ? (bool?)DevExpress.Ui.DxDateBoxInterop.GetSpellcheck(dxTarget).Result : spellcheck; + set { + if (isInitialized) { + DevExpress.Ui.DxDateBoxInterop.SetSpellcheck(dxTarget, value); + } else { + this.spellcheck = value; + } + } + } + string text; + [Parameter] + string Text { + get => isInitialized ? (string)DevExpress.Ui.DxDateBoxInterop.GetText(dxTarget).Result : text; + set { + if (isInitialized) { + DevExpress.Ui.DxDateBoxInterop.SetText(dxTarget, value); + } else { + this.text = value; + } + } + } + bool? useMaskedValue; + [Parameter] + bool? UseMaskedValue { + get => isInitialized ? (bool?)DevExpress.Ui.DxDateBoxInterop.GetUseMaskedValue(dxTarget).Result : useMaskedValue; + set { + if (isInitialized) { + DevExpress.Ui.DxDateBoxInterop.SetUseMaskedValue(dxTarget, value); + } else { + this.useMaskedValue = value; + } + } + } + string valueChangeEvent; + [Parameter] + string ValueChangeEvent { + get => isInitialized ? (string)DevExpress.Ui.DxDateBoxInterop.GetValueChangeEvent(dxTarget).Result : valueChangeEvent; + set { + if (isInitialized) { + DevExpress.Ui.DxDateBoxInterop.SetValueChangeEvent(dxTarget, value); + } else { + this.valueChangeEvent = value; + } + } + } + bool? isValid; + [Parameter] + bool? IsValid { + get => isInitialized ? (bool?)DevExpress.Ui.DxDateBoxInterop.GetIsValid(dxTarget).Result : isValid; + set { + if (isInitialized) { + DevExpress.Ui.DxDateBoxInterop.SetIsValid(dxTarget, value); + } else { + this.isValid = value; + } + } + } + bool? readOnly; + [Parameter] + bool? ReadOnly { + get => isInitialized ? (bool?)DevExpress.Ui.DxDateBoxInterop.GetReadOnly(dxTarget).Result : readOnly; + set { + if (isInitialized) { + DevExpress.Ui.DxDateBoxInterop.SetReadOnly(dxTarget, value); + } else { + this.readOnly = value; + } + } + } + object validationError; + [Parameter] + object ValidationError { + get => isInitialized ? DevExpress.Ui.DxDateBoxInterop.GetValidationError(dxTarget).Result : validationError; + set { + if (isInitialized) { + DevExpress.Ui.DxDateBoxInterop.SetValidationError(dxTarget, value); + } else { + this.validationError = value; + } + } + } + string validationMessageMode; + [Parameter] + string ValidationMessageMode { + get => isInitialized ? (string)DevExpress.Ui.DxDateBoxInterop.GetValidationMessageMode(dxTarget).Result : validationMessageMode; + set { + if (isInitialized) { + DevExpress.Ui.DxDateBoxInterop.SetValidationMessageMode(dxTarget, value); + } else { + this.validationMessageMode = value; + } + } + } + string accessKey; + [Parameter] + string AccessKey { + get => isInitialized ? (string)DevExpress.Ui.DxDateBoxInterop.GetAccessKey(dxTarget).Result : accessKey; + set { + if (isInitialized) { + DevExpress.Ui.DxDateBoxInterop.SetAccessKey(dxTarget, value); + } else { + this.accessKey = value; + } + } + } + bool? disabled; + [Parameter] + bool? Disabled { + get => isInitialized ? (bool?)DevExpress.Ui.DxDateBoxInterop.GetDisabled(dxTarget).Result : disabled; + set { + if (isInitialized) { + DevExpress.Ui.DxDateBoxInterop.SetDisabled(dxTarget, value); + } else { + this.disabled = value; + } + } + } + string hint; + [Parameter] + string Hint { + get => isInitialized ? (string)DevExpress.Ui.DxDateBoxInterop.GetHint(dxTarget).Result : hint; + set { + if (isInitialized) { + DevExpress.Ui.DxDateBoxInterop.SetHint(dxTarget, value); + } else { + this.hint = value; + } + } + } + float? tabIndex; + [Parameter] + float? TabIndex { + get => isInitialized ? (float?)DevExpress.Ui.DxDateBoxInterop.GetTabIndex(dxTarget).Result : tabIndex; + set { + if (isInitialized) { + DevExpress.Ui.DxDateBoxInterop.SetTabIndex(dxTarget, value); + } else { + this.tabIndex = value; + } + } + } + bool? visible; + [Parameter] + bool? Visible { + get => isInitialized ? (bool?)DevExpress.Ui.DxDateBoxInterop.GetVisible(dxTarget).Result : visible; + set { + if (isInitialized) { + DevExpress.Ui.DxDateBoxInterop.SetVisible(dxTarget, value); + } else { + this.visible = value; + } + } + } + object bindingOptions; + [Parameter] + object BindingOptions { + get => isInitialized ? DevExpress.Ui.DxDateBoxInterop.GetBindingOptions(dxTarget).Result : bindingOptions; + set { + if (isInitialized) { + DevExpress.Ui.DxDateBoxInterop.SetBindingOptions(dxTarget, value); + } else { + this.bindingOptions = value; + } + } + } + object elementAttr; + [Parameter] + object ElementAttr { + get => isInitialized ? DevExpress.Ui.DxDateBoxInterop.GetElementAttr(dxTarget).Result : elementAttr; + set { + if (isInitialized) { + DevExpress.Ui.DxDateBoxInterop.SetElementAttr(dxTarget, value); + } else { + this.elementAttr = value; + } + } + } + object height; + [Parameter] + object Height { + get => isInitialized ? DevExpress.Ui.DxDateBoxInterop.GetHeight(dxTarget).Result : height; + set { + if (isInitialized) { + DevExpress.Ui.DxDateBoxInterop.SetHeight(dxTarget, value); + } else { + this.height = value; + } + } + } + bool? rtlEnabled; + [Parameter] + bool? RtlEnabled { + get => isInitialized ? (bool?)DevExpress.Ui.DxDateBoxInterop.GetRtlEnabled(dxTarget).Result : rtlEnabled; + set { + if (isInitialized) { + DevExpress.Ui.DxDateBoxInterop.SetRtlEnabled(dxTarget, value); + } else { + this.rtlEnabled = value; + } + } + } + object width; + [Parameter] + object Width { + get => isInitialized ? DevExpress.Ui.DxDateBoxInterop.GetWidth(dxTarget).Result : width; + set { + if (isInitialized) { + DevExpress.Ui.DxDateBoxInterop.SetWidth(dxTarget, value); + } else { + this.width = value; + } + } + } + bool? onClosedEnabled; + [Parameter] + bool? OnClosedEnabled { + get => onClosedEnabled; + set => this.onClosedEnabled = value; + } + bool? onOpenedEnabled; + [Parameter] + bool? OnOpenedEnabled { + get => onOpenedEnabled; + set => this.onOpenedEnabled = value; + } + bool? onChangeEnabled; + [Parameter] + bool? OnChangeEnabled { + get => onChangeEnabled; + set => this.onChangeEnabled = value; + } + bool? onCopyEnabled; + [Parameter] + bool? OnCopyEnabled { + get => onCopyEnabled; + set => this.onCopyEnabled = value; + } + bool? onCutEnabled; + [Parameter] + bool? OnCutEnabled { + get => onCutEnabled; + set => this.onCutEnabled = value; + } + bool? onEnterKeyEnabled; + [Parameter] + bool? OnEnterKeyEnabled { + get => onEnterKeyEnabled; + set => this.onEnterKeyEnabled = value; + } + bool? onFocusInEnabled; + [Parameter] + bool? OnFocusInEnabled { + get => onFocusInEnabled; + set => this.onFocusInEnabled = value; + } + bool? onFocusOutEnabled; + [Parameter] + bool? OnFocusOutEnabled { + get => onFocusOutEnabled; + set => this.onFocusOutEnabled = value; + } + bool? onInputEnabled; + [Parameter] + bool? OnInputEnabled { + get => onInputEnabled; + set => this.onInputEnabled = value; + } + bool? onKeyDownEnabled; + [Parameter] + bool? OnKeyDownEnabled { + get => onKeyDownEnabled; + set => this.onKeyDownEnabled = value; + } + bool? onKeyPressEnabled; + [Parameter] + bool? OnKeyPressEnabled { + get => onKeyPressEnabled; + set => this.onKeyPressEnabled = value; + } + bool? onKeyUpEnabled; + [Parameter] + bool? OnKeyUpEnabled { + get => onKeyUpEnabled; + set => this.onKeyUpEnabled = value; + } + bool? onPasteEnabled; + [Parameter] + bool? OnPasteEnabled { + get => onPasteEnabled; + set => this.onPasteEnabled = value; + } + bool? onValueChangedEnabled; + [Parameter] + bool? OnValueChangedEnabled { + get => onValueChangedEnabled; + set => this.onValueChangedEnabled = value; + } + bool? onContentReadyEnabled; + [Parameter] + bool? OnContentReadyEnabled { + get => onContentReadyEnabled; + set => this.onContentReadyEnabled = value; + } + bool? onDisposingEnabled; + [Parameter] + bool? OnDisposingEnabled { + get => onDisposingEnabled; + set => this.onDisposingEnabled = value; + } + bool? onOptionChangedEnabled; + [Parameter] + bool? OnOptionChangedEnabled { + get => onOptionChangedEnabled; + set => this.onOptionChangedEnabled = value; + } + bool? onInitializedEnabled; + [Parameter] + bool? OnInitializedEnabled { + get => onInitializedEnabled; + set => this.onInitializedEnabled = value; + } protected override async Task OnInitAsync() { await base.OnInitAsync(); + DevExpress.Ui.DxDateBoxInterop.Closed += DxDateBox_Closed; + DevExpress.Ui.DxDateBoxInterop.Opened += DxDateBox_Opened; + DevExpress.Ui.DxDateBoxInterop.Change += DxDateBox_Change; + DevExpress.Ui.DxDateBoxInterop.Copy += DxDateBox_Copy; + DevExpress.Ui.DxDateBoxInterop.Cut += DxDateBox_Cut; + DevExpress.Ui.DxDateBoxInterop.EnterKey += DxDateBox_EnterKey; + DevExpress.Ui.DxDateBoxInterop.FocusIn += DxDateBox_FocusIn; + DevExpress.Ui.DxDateBoxInterop.FocusOut += DxDateBox_FocusOut; + DevExpress.Ui.DxDateBoxInterop.Input += DxDateBox_Input; + DevExpress.Ui.DxDateBoxInterop.KeyDown += DxDateBox_KeyDown; + DevExpress.Ui.DxDateBoxInterop.KeyPress += DxDateBox_KeyPress; + DevExpress.Ui.DxDateBoxInterop.KeyUp += DxDateBox_KeyUp; + DevExpress.Ui.DxDateBoxInterop.Paste += DxDateBox_Paste; + DevExpress.Ui.DxDateBoxInterop.ValueChanged += DxDateBox_ValueChanged; + DevExpress.Ui.DxDateBoxInterop.ContentReady += DxDateBox_ContentReady; + DevExpress.Ui.DxDateBoxInterop.Disposing += DxDateBox_Disposing; + DevExpress.Ui.DxDateBoxInterop.OptionChanged += DxDateBox_OptionChanged; + DevExpress.Ui.DxDateBoxInterop.Initialized += DxDateBox_Initialized; + } + [Parameter] + Action Closed { get; set; } + void DxDateBox_Closed(object sender, JQueryEventArgs e) { + if (e.Identifier == Id) { + Closed?.Invoke(); + } + } + [Parameter] + Action Opened { get; set; } + void DxDateBox_Opened(object sender, JQueryEventArgs e) { + if (e.Identifier == Id) { + Opened?.Invoke(); + } + } + [Parameter] + Action Change { get; set; } + void DxDateBox_Change(object sender, JQueryEventArgs e) { + if (e.Identifier == Id) { + Change?.Invoke(); + } + } + [Parameter] + Action Copy { get; set; } + void DxDateBox_Copy(object sender, JQueryEventArgs e) { + if (e.Identifier == Id) { + Copy?.Invoke(); + } + } + [Parameter] + Action Cut { get; set; } + void DxDateBox_Cut(object sender, JQueryEventArgs e) { + if (e.Identifier == Id) { + Cut?.Invoke(); + } + } + [Parameter] + Action EnterKey { get; set; } + void DxDateBox_EnterKey(object sender, JQueryEventArgs e) { + if (e.Identifier == Id) { + EnterKey?.Invoke(); + } + } + [Parameter] + Action FocusIn { get; set; } + void DxDateBox_FocusIn(object sender, JQueryEventArgs e) { + if (e.Identifier == Id) { + FocusIn?.Invoke(); + } + } + [Parameter] + Action FocusOut { get; set; } + void DxDateBox_FocusOut(object sender, JQueryEventArgs e) { + if (e.Identifier == Id) { + FocusOut?.Invoke(); + } + } + [Parameter] + Action Input { get; set; } + void DxDateBox_Input(object sender, JQueryEventArgs e) { + if (e.Identifier == Id) { + Input?.Invoke(); + } + } + [Parameter] + Action KeyDown { get; set; } + void DxDateBox_KeyDown(object sender, JQueryEventArgs e) { + if (e.Identifier == Id) { + KeyDown?.Invoke(); + } + } + [Parameter] + Action KeyPress { get; set; } + void DxDateBox_KeyPress(object sender, JQueryEventArgs e) { + if (e.Identifier == Id) { + KeyPress?.Invoke(); + } + } + [Parameter] + Action KeyUp { get; set; } + void DxDateBox_KeyUp(object sender, JQueryEventArgs e) { + if (e.Identifier == Id) { + KeyUp?.Invoke(); + } + } + [Parameter] + Action Paste { get; set; } + void DxDateBox_Paste(object sender, JQueryEventArgs e) { + if (e.Identifier == Id) { + Paste?.Invoke(); + } + } + [Parameter] + Action ValueChanged { get; set; } + void DxDateBox_ValueChanged(object sender, JQueryEventArgs e) { + if (e.Identifier == Id) { + ValueChanged?.Invoke(); + } + } + [Parameter] + Action ContentReady { get; set; } + void DxDateBox_ContentReady(object sender, JQueryEventArgs e) { + if (e.Identifier == Id) { + ContentReady?.Invoke(); + } + } + [Parameter] + Action Disposing { get; set; } + void DxDateBox_Disposing(object sender, JQueryEventArgs e) { + if (e.Identifier == Id) { + Disposing?.Invoke(); + } + } + [Parameter] + Action OptionChanged { get; set; } + void DxDateBox_OptionChanged(object sender, JQueryEventArgs e) { + if (e.Identifier == Id) { + OptionChanged?.Invoke(); + } + } + [Parameter] + Action Initialized { get; set; } + void DxDateBox_Initialized(object sender, JQueryEventArgs e) { + if (e.Identifier == Id) { + Initialized?.Invoke(); + } } public void Close() { DevExpress.Ui.DxDateBoxInterop.Close(dxTarget); @@ -272,5 +1010,23 @@ return DevExpress.Ui.DxDateBoxInterop.Init(dxTarget, options); DevExpress.Ui.DxDateBoxInterop.Open(dxTarget); } public void Dispose() { + DevExpress.Ui.DxDateBoxInterop.Closed -= DxDateBox_Closed; + DevExpress.Ui.DxDateBoxInterop.Opened -= DxDateBox_Opened; + DevExpress.Ui.DxDateBoxInterop.Change -= DxDateBox_Change; + DevExpress.Ui.DxDateBoxInterop.Copy -= DxDateBox_Copy; + DevExpress.Ui.DxDateBoxInterop.Cut -= DxDateBox_Cut; + DevExpress.Ui.DxDateBoxInterop.EnterKey -= DxDateBox_EnterKey; + DevExpress.Ui.DxDateBoxInterop.FocusIn -= DxDateBox_FocusIn; + DevExpress.Ui.DxDateBoxInterop.FocusOut -= DxDateBox_FocusOut; + DevExpress.Ui.DxDateBoxInterop.Input -= DxDateBox_Input; + DevExpress.Ui.DxDateBoxInterop.KeyDown -= DxDateBox_KeyDown; + DevExpress.Ui.DxDateBoxInterop.KeyPress -= DxDateBox_KeyPress; + DevExpress.Ui.DxDateBoxInterop.KeyUp -= DxDateBox_KeyUp; + DevExpress.Ui.DxDateBoxInterop.Paste -= DxDateBox_Paste; + DevExpress.Ui.DxDateBoxInterop.ValueChanged -= DxDateBox_ValueChanged; + DevExpress.Ui.DxDateBoxInterop.ContentReady -= DxDateBox_ContentReady; + DevExpress.Ui.DxDateBoxInterop.Disposing -= DxDateBox_Disposing; + DevExpress.Ui.DxDateBoxInterop.OptionChanged -= DxDateBox_OptionChanged; + DevExpress.Ui.DxDateBoxInterop.Initialized -= DxDateBox_Initialized; } } diff --git a/sources/BlazorDevExtreme/Components/DxDeferRendering.cshtml b/sources/BlazorDevExtreme/Components/DxDeferRendering.cshtml index 847e147..d2a4324 100644 --- a/sources/BlazorDevExtreme/Components/DxDeferRendering.cshtml +++ b/sources/BlazorDevExtreme/Components/DxDeferRendering.cshtml @@ -14,12 +14,29 @@ renderWhen = renderWhen, showLoadIndicator = showLoadIndicator, staggerItemSelector = staggerItemSelector, + accessKey = accessKey, + activeStateEnabled = activeStateEnabled, + disabled = disabled, + focusStateEnabled = focusStateEnabled, + hint = hint, + hoverStateEnabled = hoverStateEnabled, + tabIndex = tabIndex, + visible = visible, + bindingOptions = bindingOptions, + elementAttr = elementAttr, + height = height, + rtlEnabled = rtlEnabled, + width = width, onRenderedEnabled = onRenderedEnabled, onShownEnabled = onShownEnabled, + onContentReadyEnabled = onContentReadyEnabled, + onDisposingEnabled = onDisposingEnabled, + onOptionChangedEnabled = onOptionChangedEnabled, + onInitializedEnabled = onInitializedEnabled, }; } protected override Task Init(DevExpress.Ui.DxDeferRenderingOptions options) { -return DevExpress.Ui.DxDeferRenderingInterop.Init(dxTarget, options); + return DevExpress.Ui.DxDeferRenderingInterop.Init(dxTarget, options); } object animation; [Parameter] @@ -48,7 +65,7 @@ return DevExpress.Ui.DxDeferRenderingInterop.Init(dxTarget, options); bool? showLoadIndicator; [Parameter] bool? ShowLoadIndicator { - get => isInitialized ? DevExpress.Ui.DxDeferRenderingInterop.GetShowLoadIndicator(dxTarget).Result : showLoadIndicator; + get => isInitialized ? (bool?)DevExpress.Ui.DxDeferRenderingInterop.GetShowLoadIndicator(dxTarget).Result : showLoadIndicator; set { if (isInitialized) { DevExpress.Ui.DxDeferRenderingInterop.SetShowLoadIndicator(dxTarget, value); @@ -60,7 +77,7 @@ return DevExpress.Ui.DxDeferRenderingInterop.Init(dxTarget, options); string staggerItemSelector; [Parameter] string StaggerItemSelector { - get => isInitialized ? DevExpress.Ui.DxDeferRenderingInterop.GetStaggerItemSelector(dxTarget).Result : staggerItemSelector; + get => isInitialized ? (string)DevExpress.Ui.DxDeferRenderingInterop.GetStaggerItemSelector(dxTarget).Result : staggerItemSelector; set { if (isInitialized) { DevExpress.Ui.DxDeferRenderingInterop.SetStaggerItemSelector(dxTarget, value); @@ -69,6 +86,162 @@ return DevExpress.Ui.DxDeferRenderingInterop.Init(dxTarget, options); } } } + string accessKey; + [Parameter] + string AccessKey { + get => isInitialized ? (string)DevExpress.Ui.DxDeferRenderingInterop.GetAccessKey(dxTarget).Result : accessKey; + set { + if (isInitialized) { + DevExpress.Ui.DxDeferRenderingInterop.SetAccessKey(dxTarget, value); + } else { + this.accessKey = value; + } + } + } + bool? activeStateEnabled; + [Parameter] + bool? ActiveStateEnabled { + get => isInitialized ? (bool?)DevExpress.Ui.DxDeferRenderingInterop.GetActiveStateEnabled(dxTarget).Result : activeStateEnabled; + set { + if (isInitialized) { + DevExpress.Ui.DxDeferRenderingInterop.SetActiveStateEnabled(dxTarget, value); + } else { + this.activeStateEnabled = value; + } + } + } + bool? disabled; + [Parameter] + bool? Disabled { + get => isInitialized ? (bool?)DevExpress.Ui.DxDeferRenderingInterop.GetDisabled(dxTarget).Result : disabled; + set { + if (isInitialized) { + DevExpress.Ui.DxDeferRenderingInterop.SetDisabled(dxTarget, value); + } else { + this.disabled = value; + } + } + } + bool? focusStateEnabled; + [Parameter] + bool? FocusStateEnabled { + get => isInitialized ? (bool?)DevExpress.Ui.DxDeferRenderingInterop.GetFocusStateEnabled(dxTarget).Result : focusStateEnabled; + set { + if (isInitialized) { + DevExpress.Ui.DxDeferRenderingInterop.SetFocusStateEnabled(dxTarget, value); + } else { + this.focusStateEnabled = value; + } + } + } + string hint; + [Parameter] + string Hint { + get => isInitialized ? (string)DevExpress.Ui.DxDeferRenderingInterop.GetHint(dxTarget).Result : hint; + set { + if (isInitialized) { + DevExpress.Ui.DxDeferRenderingInterop.SetHint(dxTarget, value); + } else { + this.hint = value; + } + } + } + bool? hoverStateEnabled; + [Parameter] + bool? HoverStateEnabled { + get => isInitialized ? (bool?)DevExpress.Ui.DxDeferRenderingInterop.GetHoverStateEnabled(dxTarget).Result : hoverStateEnabled; + set { + if (isInitialized) { + DevExpress.Ui.DxDeferRenderingInterop.SetHoverStateEnabled(dxTarget, value); + } else { + this.hoverStateEnabled = value; + } + } + } + float? tabIndex; + [Parameter] + float? TabIndex { + get => isInitialized ? (float?)DevExpress.Ui.DxDeferRenderingInterop.GetTabIndex(dxTarget).Result : tabIndex; + set { + if (isInitialized) { + DevExpress.Ui.DxDeferRenderingInterop.SetTabIndex(dxTarget, value); + } else { + this.tabIndex = value; + } + } + } + bool? visible; + [Parameter] + bool? Visible { + get => isInitialized ? (bool?)DevExpress.Ui.DxDeferRenderingInterop.GetVisible(dxTarget).Result : visible; + set { + if (isInitialized) { + DevExpress.Ui.DxDeferRenderingInterop.SetVisible(dxTarget, value); + } else { + this.visible = value; + } + } + } + object bindingOptions; + [Parameter] + object BindingOptions { + get => isInitialized ? DevExpress.Ui.DxDeferRenderingInterop.GetBindingOptions(dxTarget).Result : bindingOptions; + set { + if (isInitialized) { + DevExpress.Ui.DxDeferRenderingInterop.SetBindingOptions(dxTarget, value); + } else { + this.bindingOptions = value; + } + } + } + object elementAttr; + [Parameter] + object ElementAttr { + get => isInitialized ? DevExpress.Ui.DxDeferRenderingInterop.GetElementAttr(dxTarget).Result : elementAttr; + set { + if (isInitialized) { + DevExpress.Ui.DxDeferRenderingInterop.SetElementAttr(dxTarget, value); + } else { + this.elementAttr = value; + } + } + } + object height; + [Parameter] + object Height { + get => isInitialized ? DevExpress.Ui.DxDeferRenderingInterop.GetHeight(dxTarget).Result : height; + set { + if (isInitialized) { + DevExpress.Ui.DxDeferRenderingInterop.SetHeight(dxTarget, value); + } else { + this.height = value; + } + } + } + bool? rtlEnabled; + [Parameter] + bool? RtlEnabled { + get => isInitialized ? (bool?)DevExpress.Ui.DxDeferRenderingInterop.GetRtlEnabled(dxTarget).Result : rtlEnabled; + set { + if (isInitialized) { + DevExpress.Ui.DxDeferRenderingInterop.SetRtlEnabled(dxTarget, value); + } else { + this.rtlEnabled = value; + } + } + } + object width; + [Parameter] + object Width { + get => isInitialized ? DevExpress.Ui.DxDeferRenderingInterop.GetWidth(dxTarget).Result : width; + set { + if (isInitialized) { + DevExpress.Ui.DxDeferRenderingInterop.SetWidth(dxTarget, value); + } else { + this.width = value; + } + } + } bool? onRenderedEnabled; [Parameter] bool? OnRenderedEnabled { @@ -81,10 +254,38 @@ return DevExpress.Ui.DxDeferRenderingInterop.Init(dxTarget, options); get => onShownEnabled; set => this.onShownEnabled = value; } + bool? onContentReadyEnabled; + [Parameter] + bool? OnContentReadyEnabled { + get => onContentReadyEnabled; + set => this.onContentReadyEnabled = value; + } + bool? onDisposingEnabled; + [Parameter] + bool? OnDisposingEnabled { + get => onDisposingEnabled; + set => this.onDisposingEnabled = value; + } + bool? onOptionChangedEnabled; + [Parameter] + bool? OnOptionChangedEnabled { + get => onOptionChangedEnabled; + set => this.onOptionChangedEnabled = value; + } + bool? onInitializedEnabled; + [Parameter] + bool? OnInitializedEnabled { + get => onInitializedEnabled; + set => this.onInitializedEnabled = value; + } protected override async Task OnInitAsync() { await base.OnInitAsync(); DevExpress.Ui.DxDeferRenderingInterop.Rendered += DxDeferRendering_Rendered; DevExpress.Ui.DxDeferRenderingInterop.Shown += DxDeferRendering_Shown; + DevExpress.Ui.DxDeferRenderingInterop.ContentReady += DxDeferRendering_ContentReady; + DevExpress.Ui.DxDeferRenderingInterop.Disposing += DxDeferRendering_Disposing; + DevExpress.Ui.DxDeferRenderingInterop.OptionChanged += DxDeferRendering_OptionChanged; + DevExpress.Ui.DxDeferRenderingInterop.Initialized += DxDeferRendering_Initialized; } [Parameter] Action Rendered { get; set; } @@ -100,8 +301,40 @@ return DevExpress.Ui.DxDeferRenderingInterop.Init(dxTarget, options); Shown?.Invoke(); } } + [Parameter] + Action ContentReady { get; set; } + void DxDeferRendering_ContentReady(object sender, JQueryEventArgs e) { + if (e.Identifier == Id) { + ContentReady?.Invoke(); + } + } + [Parameter] + Action Disposing { get; set; } + void DxDeferRendering_Disposing(object sender, JQueryEventArgs e) { + if (e.Identifier == Id) { + Disposing?.Invoke(); + } + } + [Parameter] + Action OptionChanged { get; set; } + void DxDeferRendering_OptionChanged(object sender, JQueryEventArgs e) { + if (e.Identifier == Id) { + OptionChanged?.Invoke(); + } + } + [Parameter] + Action Initialized { get; set; } + void DxDeferRendering_Initialized(object sender, JQueryEventArgs e) { + if (e.Identifier == Id) { + Initialized?.Invoke(); + } + } public void Dispose() { DevExpress.Ui.DxDeferRenderingInterop.Rendered -= DxDeferRendering_Rendered; DevExpress.Ui.DxDeferRenderingInterop.Shown -= DxDeferRendering_Shown; + DevExpress.Ui.DxDeferRenderingInterop.ContentReady -= DxDeferRendering_ContentReady; + DevExpress.Ui.DxDeferRenderingInterop.Disposing -= DxDeferRendering_Disposing; + DevExpress.Ui.DxDeferRenderingInterop.OptionChanged -= DxDeferRendering_OptionChanged; + DevExpress.Ui.DxDeferRenderingInterop.Initialized -= DxDeferRendering_Initialized; } } diff --git a/sources/BlazorDevExtreme/Components/DxDropDownBox.cshtml b/sources/BlazorDevExtreme/Components/DxDropDownBox.cshtml index 27da1e4..1a0fb1a 100644 --- a/sources/BlazorDevExtreme/Components/DxDropDownBox.cshtml +++ b/sources/BlazorDevExtreme/Components/DxDropDownBox.cshtml @@ -15,15 +15,74 @@ dropDownOptions = dropDownOptions, fieldTemplate = fieldTemplate, valueChangeEvent = valueChangeEvent, + activeStateEnabled = activeStateEnabled, + applyValueMode = applyValueMode, + deferRendering = deferRendering, + dropDownButtonTemplate = dropDownButtonTemplate, + opened = isOpened, + value = value, + maxLength = maxLength, + mode = mode, + focusStateEnabled = focusStateEnabled, + hoverStateEnabled = hoverStateEnabled, + inputAttr = inputAttr, + mask = mask, + maskChar = maskChar, + maskInvalidMessage = maskInvalidMessage, + maskRules = maskRules, + name = name, + placeholder = placeholder, + showClearButton = showClearButton, + showMaskMode = showMaskMode, + spellcheck = spellcheck, + text = text, + useMaskedValue = useMaskedValue, + isValid = isValid, + readOnly = readOnly, + validationError = validationError, + validationMessageMode = validationMessageMode, + accessKey = accessKey, + disabled = disabled, + hint = hint, + tabIndex = tabIndex, + visible = visible, + bindingOptions = bindingOptions, + elementAttr = elementAttr, + height = height, + rtlEnabled = rtlEnabled, + width = width, + dataSource = dataSource, + displayExpr = displayExpr, + items = items, + itemTemplate = itemTemplate, + valueExpr = valueExpr, + onClosedEnabled = onClosedEnabled, + onOpenedEnabled = onOpenedEnabled, + onChangeEnabled = onChangeEnabled, + onCopyEnabled = onCopyEnabled, + onCutEnabled = onCutEnabled, + onEnterKeyEnabled = onEnterKeyEnabled, + onFocusInEnabled = onFocusInEnabled, + onFocusOutEnabled = onFocusOutEnabled, + onInputEnabled = onInputEnabled, + onKeyDownEnabled = onKeyDownEnabled, + onKeyPressEnabled = onKeyPressEnabled, + onKeyUpEnabled = onKeyUpEnabled, + onPasteEnabled = onPasteEnabled, + onValueChangedEnabled = onValueChangedEnabled, + onContentReadyEnabled = onContentReadyEnabled, + onDisposingEnabled = onDisposingEnabled, + onOptionChangedEnabled = onOptionChangedEnabled, + onInitializedEnabled = onInitializedEnabled, }; } protected override Task Init(DevExpress.Ui.DxDropDownBoxOptions options) { -return DevExpress.Ui.DxDropDownBoxInterop.Init(dxTarget, options); + return DevExpress.Ui.DxDropDownBoxInterop.Init(dxTarget, options); } bool? acceptCustomValue; [Parameter] bool? AcceptCustomValue { - get => isInitialized ? DevExpress.Ui.DxDropDownBoxInterop.GetAcceptCustomValue(dxTarget).Result : acceptCustomValue; + get => isInitialized ? (bool?)DevExpress.Ui.DxDropDownBoxInterop.GetAcceptCustomValue(dxTarget).Result : acceptCustomValue; set { if (isInitialized) { DevExpress.Ui.DxDropDownBoxInterop.SetAcceptCustomValue(dxTarget, value); @@ -71,7 +130,7 @@ return DevExpress.Ui.DxDropDownBoxInterop.Init(dxTarget, options); string valueChangeEvent; [Parameter] string ValueChangeEvent { - get => isInitialized ? DevExpress.Ui.DxDropDownBoxInterop.GetValueChangeEvent(dxTarget).Result : valueChangeEvent; + get => isInitialized ? (string)DevExpress.Ui.DxDropDownBoxInterop.GetValueChangeEvent(dxTarget).Result : valueChangeEvent; set { if (isInitialized) { DevExpress.Ui.DxDropDownBoxInterop.SetValueChangeEvent(dxTarget, value); @@ -80,12 +139,774 @@ return DevExpress.Ui.DxDropDownBoxInterop.Init(dxTarget, options); } } } + bool? activeStateEnabled; + [Parameter] + bool? ActiveStateEnabled { + get => isInitialized ? (bool?)DevExpress.Ui.DxDropDownBoxInterop.GetActiveStateEnabled(dxTarget).Result : activeStateEnabled; + set { + if (isInitialized) { + DevExpress.Ui.DxDropDownBoxInterop.SetActiveStateEnabled(dxTarget, value); + } else { + this.activeStateEnabled = value; + } + } + } + string applyValueMode; + [Parameter] + string ApplyValueMode { + get => isInitialized ? (string)DevExpress.Ui.DxDropDownBoxInterop.GetApplyValueMode(dxTarget).Result : applyValueMode; + set { + if (isInitialized) { + DevExpress.Ui.DxDropDownBoxInterop.SetApplyValueMode(dxTarget, value); + } else { + this.applyValueMode = value; + } + } + } + bool? deferRendering; + [Parameter] + bool? DeferRendering { + get => isInitialized ? (bool?)DevExpress.Ui.DxDropDownBoxInterop.GetDeferRendering(dxTarget).Result : deferRendering; + set { + if (isInitialized) { + DevExpress.Ui.DxDropDownBoxInterop.SetDeferRendering(dxTarget, value); + } else { + this.deferRendering = value; + } + } + } + object dropDownButtonTemplate; + [Parameter] + object DropDownButtonTemplate { + get => isInitialized ? DevExpress.Ui.DxDropDownBoxInterop.GetDropDownButtonTemplate(dxTarget).Result : dropDownButtonTemplate; + set { + if (isInitialized) { + DevExpress.Ui.DxDropDownBoxInterop.SetDropDownButtonTemplate(dxTarget, value); + } else { + this.dropDownButtonTemplate = value; + } + } + } + bool? isOpened; + [Parameter] + bool? IsOpened { + get => isInitialized ? (bool?)DevExpress.Ui.DxDropDownBoxInterop.GetOpened(dxTarget).Result : isOpened; + set { + if (isInitialized) { + DevExpress.Ui.DxDropDownBoxInterop.SetOpened(dxTarget, value); + } else { + this.isOpened = value; + } + } + } + object value; + [Parameter] + object Value { + get => isInitialized ? DevExpress.Ui.DxDropDownBoxInterop.GetValue(dxTarget).Result : value; + set { + if (isInitialized) { + DevExpress.Ui.DxDropDownBoxInterop.SetValue(dxTarget, value); + } else { + this.value = value; + } + } + } + object maxLength; + [Parameter] + object MaxLength { + get => isInitialized ? DevExpress.Ui.DxDropDownBoxInterop.GetMaxLength(dxTarget).Result : maxLength; + set { + if (isInitialized) { + DevExpress.Ui.DxDropDownBoxInterop.SetMaxLength(dxTarget, value); + } else { + this.maxLength = value; + } + } + } + string mode; + [Parameter] + string Mode { + get => isInitialized ? (string)DevExpress.Ui.DxDropDownBoxInterop.GetMode(dxTarget).Result : mode; + set { + if (isInitialized) { + DevExpress.Ui.DxDropDownBoxInterop.SetMode(dxTarget, value); + } else { + this.mode = value; + } + } + } + bool? focusStateEnabled; + [Parameter] + bool? FocusStateEnabled { + get => isInitialized ? (bool?)DevExpress.Ui.DxDropDownBoxInterop.GetFocusStateEnabled(dxTarget).Result : focusStateEnabled; + set { + if (isInitialized) { + DevExpress.Ui.DxDropDownBoxInterop.SetFocusStateEnabled(dxTarget, value); + } else { + this.focusStateEnabled = value; + } + } + } + bool? hoverStateEnabled; + [Parameter] + bool? HoverStateEnabled { + get => isInitialized ? (bool?)DevExpress.Ui.DxDropDownBoxInterop.GetHoverStateEnabled(dxTarget).Result : hoverStateEnabled; + set { + if (isInitialized) { + DevExpress.Ui.DxDropDownBoxInterop.SetHoverStateEnabled(dxTarget, value); + } else { + this.hoverStateEnabled = value; + } + } + } + object inputAttr; + [Parameter] + object InputAttr { + get => isInitialized ? DevExpress.Ui.DxDropDownBoxInterop.GetInputAttr(dxTarget).Result : inputAttr; + set { + if (isInitialized) { + DevExpress.Ui.DxDropDownBoxInterop.SetInputAttr(dxTarget, value); + } else { + this.inputAttr = value; + } + } + } + string mask; + [Parameter] + string Mask { + get => isInitialized ? (string)DevExpress.Ui.DxDropDownBoxInterop.GetMask(dxTarget).Result : mask; + set { + if (isInitialized) { + DevExpress.Ui.DxDropDownBoxInterop.SetMask(dxTarget, value); + } else { + this.mask = value; + } + } + } + string maskChar; + [Parameter] + string MaskChar { + get => isInitialized ? (string)DevExpress.Ui.DxDropDownBoxInterop.GetMaskChar(dxTarget).Result : maskChar; + set { + if (isInitialized) { + DevExpress.Ui.DxDropDownBoxInterop.SetMaskChar(dxTarget, value); + } else { + this.maskChar = value; + } + } + } + string maskInvalidMessage; + [Parameter] + string MaskInvalidMessage { + get => isInitialized ? (string)DevExpress.Ui.DxDropDownBoxInterop.GetMaskInvalidMessage(dxTarget).Result : maskInvalidMessage; + set { + if (isInitialized) { + DevExpress.Ui.DxDropDownBoxInterop.SetMaskInvalidMessage(dxTarget, value); + } else { + this.maskInvalidMessage = value; + } + } + } + object maskRules; + [Parameter] + object MaskRules { + get => isInitialized ? DevExpress.Ui.DxDropDownBoxInterop.GetMaskRules(dxTarget).Result : maskRules; + set { + if (isInitialized) { + DevExpress.Ui.DxDropDownBoxInterop.SetMaskRules(dxTarget, value); + } else { + this.maskRules = value; + } + } + } + string name; + [Parameter] + string Name { + get => isInitialized ? (string)DevExpress.Ui.DxDropDownBoxInterop.GetName(dxTarget).Result : name; + set { + if (isInitialized) { + DevExpress.Ui.DxDropDownBoxInterop.SetName(dxTarget, value); + } else { + this.name = value; + } + } + } + string placeholder; + [Parameter] + string Placeholder { + get => isInitialized ? (string)DevExpress.Ui.DxDropDownBoxInterop.GetPlaceholder(dxTarget).Result : placeholder; + set { + if (isInitialized) { + DevExpress.Ui.DxDropDownBoxInterop.SetPlaceholder(dxTarget, value); + } else { + this.placeholder = value; + } + } + } + bool? showClearButton; + [Parameter] + bool? ShowClearButton { + get => isInitialized ? (bool?)DevExpress.Ui.DxDropDownBoxInterop.GetShowClearButton(dxTarget).Result : showClearButton; + set { + if (isInitialized) { + DevExpress.Ui.DxDropDownBoxInterop.SetShowClearButton(dxTarget, value); + } else { + this.showClearButton = value; + } + } + } + string showMaskMode; + [Parameter] + string ShowMaskMode { + get => isInitialized ? (string)DevExpress.Ui.DxDropDownBoxInterop.GetShowMaskMode(dxTarget).Result : showMaskMode; + set { + if (isInitialized) { + DevExpress.Ui.DxDropDownBoxInterop.SetShowMaskMode(dxTarget, value); + } else { + this.showMaskMode = value; + } + } + } + bool? spellcheck; + [Parameter] + bool? Spellcheck { + get => isInitialized ? (bool?)DevExpress.Ui.DxDropDownBoxInterop.GetSpellcheck(dxTarget).Result : spellcheck; + set { + if (isInitialized) { + DevExpress.Ui.DxDropDownBoxInterop.SetSpellcheck(dxTarget, value); + } else { + this.spellcheck = value; + } + } + } + string text; + [Parameter] + string Text { + get => isInitialized ? (string)DevExpress.Ui.DxDropDownBoxInterop.GetText(dxTarget).Result : text; + set { + if (isInitialized) { + DevExpress.Ui.DxDropDownBoxInterop.SetText(dxTarget, value); + } else { + this.text = value; + } + } + } + bool? useMaskedValue; + [Parameter] + bool? UseMaskedValue { + get => isInitialized ? (bool?)DevExpress.Ui.DxDropDownBoxInterop.GetUseMaskedValue(dxTarget).Result : useMaskedValue; + set { + if (isInitialized) { + DevExpress.Ui.DxDropDownBoxInterop.SetUseMaskedValue(dxTarget, value); + } else { + this.useMaskedValue = value; + } + } + } + bool? isValid; + [Parameter] + bool? IsValid { + get => isInitialized ? (bool?)DevExpress.Ui.DxDropDownBoxInterop.GetIsValid(dxTarget).Result : isValid; + set { + if (isInitialized) { + DevExpress.Ui.DxDropDownBoxInterop.SetIsValid(dxTarget, value); + } else { + this.isValid = value; + } + } + } + bool? readOnly; + [Parameter] + bool? ReadOnly { + get => isInitialized ? (bool?)DevExpress.Ui.DxDropDownBoxInterop.GetReadOnly(dxTarget).Result : readOnly; + set { + if (isInitialized) { + DevExpress.Ui.DxDropDownBoxInterop.SetReadOnly(dxTarget, value); + } else { + this.readOnly = value; + } + } + } + object validationError; + [Parameter] + object ValidationError { + get => isInitialized ? DevExpress.Ui.DxDropDownBoxInterop.GetValidationError(dxTarget).Result : validationError; + set { + if (isInitialized) { + DevExpress.Ui.DxDropDownBoxInterop.SetValidationError(dxTarget, value); + } else { + this.validationError = value; + } + } + } + string validationMessageMode; + [Parameter] + string ValidationMessageMode { + get => isInitialized ? (string)DevExpress.Ui.DxDropDownBoxInterop.GetValidationMessageMode(dxTarget).Result : validationMessageMode; + set { + if (isInitialized) { + DevExpress.Ui.DxDropDownBoxInterop.SetValidationMessageMode(dxTarget, value); + } else { + this.validationMessageMode = value; + } + } + } + string accessKey; + [Parameter] + string AccessKey { + get => isInitialized ? (string)DevExpress.Ui.DxDropDownBoxInterop.GetAccessKey(dxTarget).Result : accessKey; + set { + if (isInitialized) { + DevExpress.Ui.DxDropDownBoxInterop.SetAccessKey(dxTarget, value); + } else { + this.accessKey = value; + } + } + } + bool? disabled; + [Parameter] + bool? Disabled { + get => isInitialized ? (bool?)DevExpress.Ui.DxDropDownBoxInterop.GetDisabled(dxTarget).Result : disabled; + set { + if (isInitialized) { + DevExpress.Ui.DxDropDownBoxInterop.SetDisabled(dxTarget, value); + } else { + this.disabled = value; + } + } + } + string hint; + [Parameter] + string Hint { + get => isInitialized ? (string)DevExpress.Ui.DxDropDownBoxInterop.GetHint(dxTarget).Result : hint; + set { + if (isInitialized) { + DevExpress.Ui.DxDropDownBoxInterop.SetHint(dxTarget, value); + } else { + this.hint = value; + } + } + } + float? tabIndex; + [Parameter] + float? TabIndex { + get => isInitialized ? (float?)DevExpress.Ui.DxDropDownBoxInterop.GetTabIndex(dxTarget).Result : tabIndex; + set { + if (isInitialized) { + DevExpress.Ui.DxDropDownBoxInterop.SetTabIndex(dxTarget, value); + } else { + this.tabIndex = value; + } + } + } + bool? visible; + [Parameter] + bool? Visible { + get => isInitialized ? (bool?)DevExpress.Ui.DxDropDownBoxInterop.GetVisible(dxTarget).Result : visible; + set { + if (isInitialized) { + DevExpress.Ui.DxDropDownBoxInterop.SetVisible(dxTarget, value); + } else { + this.visible = value; + } + } + } + object bindingOptions; + [Parameter] + object BindingOptions { + get => isInitialized ? DevExpress.Ui.DxDropDownBoxInterop.GetBindingOptions(dxTarget).Result : bindingOptions; + set { + if (isInitialized) { + DevExpress.Ui.DxDropDownBoxInterop.SetBindingOptions(dxTarget, value); + } else { + this.bindingOptions = value; + } + } + } + object elementAttr; + [Parameter] + object ElementAttr { + get => isInitialized ? DevExpress.Ui.DxDropDownBoxInterop.GetElementAttr(dxTarget).Result : elementAttr; + set { + if (isInitialized) { + DevExpress.Ui.DxDropDownBoxInterop.SetElementAttr(dxTarget, value); + } else { + this.elementAttr = value; + } + } + } + object height; + [Parameter] + object Height { + get => isInitialized ? DevExpress.Ui.DxDropDownBoxInterop.GetHeight(dxTarget).Result : height; + set { + if (isInitialized) { + DevExpress.Ui.DxDropDownBoxInterop.SetHeight(dxTarget, value); + } else { + this.height = value; + } + } + } + bool? rtlEnabled; + [Parameter] + bool? RtlEnabled { + get => isInitialized ? (bool?)DevExpress.Ui.DxDropDownBoxInterop.GetRtlEnabled(dxTarget).Result : rtlEnabled; + set { + if (isInitialized) { + DevExpress.Ui.DxDropDownBoxInterop.SetRtlEnabled(dxTarget, value); + } else { + this.rtlEnabled = value; + } + } + } + object width; + [Parameter] + object Width { + get => isInitialized ? DevExpress.Ui.DxDropDownBoxInterop.GetWidth(dxTarget).Result : width; + set { + if (isInitialized) { + DevExpress.Ui.DxDropDownBoxInterop.SetWidth(dxTarget, value); + } else { + this.width = value; + } + } + } + object dataSource; + [Parameter] + object DataSource { + get => isInitialized ? DevExpress.Ui.DxDropDownBoxInterop.GetDataSource(dxTarget).Result : dataSource; + set { + if (isInitialized) { + DevExpress.Ui.DxDropDownBoxInterop.SetDataSource(dxTarget, value); + } else { + this.dataSource = value; + } + } + } + object displayExpr; + [Parameter] + object DisplayExpr { + get => isInitialized ? DevExpress.Ui.DxDropDownBoxInterop.GetDisplayExpr(dxTarget).Result : displayExpr; + set { + if (isInitialized) { + DevExpress.Ui.DxDropDownBoxInterop.SetDisplayExpr(dxTarget, value); + } else { + this.displayExpr = value; + } + } + } + object items; + [Parameter] + object Items { + get => isInitialized ? DevExpress.Ui.DxDropDownBoxInterop.GetItems(dxTarget).Result : items; + set { + if (isInitialized) { + DevExpress.Ui.DxDropDownBoxInterop.SetItems(dxTarget, value); + } else { + this.items = value; + } + } + } + object itemTemplate; + [Parameter] + object ItemTemplate { + get => isInitialized ? DevExpress.Ui.DxDropDownBoxInterop.GetItemTemplate(dxTarget).Result : itemTemplate; + set { + if (isInitialized) { + DevExpress.Ui.DxDropDownBoxInterop.SetItemTemplate(dxTarget, value); + } else { + this.itemTemplate = value; + } + } + } + object valueExpr; + [Parameter] + object ValueExpr { + get => isInitialized ? DevExpress.Ui.DxDropDownBoxInterop.GetValueExpr(dxTarget).Result : valueExpr; + set { + if (isInitialized) { + DevExpress.Ui.DxDropDownBoxInterop.SetValueExpr(dxTarget, value); + } else { + this.valueExpr = value; + } + } + } + bool? onClosedEnabled; + [Parameter] + bool? OnClosedEnabled { + get => onClosedEnabled; + set => this.onClosedEnabled = value; + } + bool? onOpenedEnabled; + [Parameter] + bool? OnOpenedEnabled { + get => onOpenedEnabled; + set => this.onOpenedEnabled = value; + } + bool? onChangeEnabled; + [Parameter] + bool? OnChangeEnabled { + get => onChangeEnabled; + set => this.onChangeEnabled = value; + } + bool? onCopyEnabled; + [Parameter] + bool? OnCopyEnabled { + get => onCopyEnabled; + set => this.onCopyEnabled = value; + } + bool? onCutEnabled; + [Parameter] + bool? OnCutEnabled { + get => onCutEnabled; + set => this.onCutEnabled = value; + } + bool? onEnterKeyEnabled; + [Parameter] + bool? OnEnterKeyEnabled { + get => onEnterKeyEnabled; + set => this.onEnterKeyEnabled = value; + } + bool? onFocusInEnabled; + [Parameter] + bool? OnFocusInEnabled { + get => onFocusInEnabled; + set => this.onFocusInEnabled = value; + } + bool? onFocusOutEnabled; + [Parameter] + bool? OnFocusOutEnabled { + get => onFocusOutEnabled; + set => this.onFocusOutEnabled = value; + } + bool? onInputEnabled; + [Parameter] + bool? OnInputEnabled { + get => onInputEnabled; + set => this.onInputEnabled = value; + } + bool? onKeyDownEnabled; + [Parameter] + bool? OnKeyDownEnabled { + get => onKeyDownEnabled; + set => this.onKeyDownEnabled = value; + } + bool? onKeyPressEnabled; + [Parameter] + bool? OnKeyPressEnabled { + get => onKeyPressEnabled; + set => this.onKeyPressEnabled = value; + } + bool? onKeyUpEnabled; + [Parameter] + bool? OnKeyUpEnabled { + get => onKeyUpEnabled; + set => this.onKeyUpEnabled = value; + } + bool? onPasteEnabled; + [Parameter] + bool? OnPasteEnabled { + get => onPasteEnabled; + set => this.onPasteEnabled = value; + } + bool? onValueChangedEnabled; + [Parameter] + bool? OnValueChangedEnabled { + get => onValueChangedEnabled; + set => this.onValueChangedEnabled = value; + } + bool? onContentReadyEnabled; + [Parameter] + bool? OnContentReadyEnabled { + get => onContentReadyEnabled; + set => this.onContentReadyEnabled = value; + } + bool? onDisposingEnabled; + [Parameter] + bool? OnDisposingEnabled { + get => onDisposingEnabled; + set => this.onDisposingEnabled = value; + } + bool? onOptionChangedEnabled; + [Parameter] + bool? OnOptionChangedEnabled { + get => onOptionChangedEnabled; + set => this.onOptionChangedEnabled = value; + } + bool? onInitializedEnabled; + [Parameter] + bool? OnInitializedEnabled { + get => onInitializedEnabled; + set => this.onInitializedEnabled = value; + } protected override async Task OnInitAsync() { await base.OnInitAsync(); + DevExpress.Ui.DxDropDownBoxInterop.Closed += DxDropDownBox_Closed; + DevExpress.Ui.DxDropDownBoxInterop.Opened += DxDropDownBox_Opened; + DevExpress.Ui.DxDropDownBoxInterop.Change += DxDropDownBox_Change; + DevExpress.Ui.DxDropDownBoxInterop.Copy += DxDropDownBox_Copy; + DevExpress.Ui.DxDropDownBoxInterop.Cut += DxDropDownBox_Cut; + DevExpress.Ui.DxDropDownBoxInterop.EnterKey += DxDropDownBox_EnterKey; + DevExpress.Ui.DxDropDownBoxInterop.FocusIn += DxDropDownBox_FocusIn; + DevExpress.Ui.DxDropDownBoxInterop.FocusOut += DxDropDownBox_FocusOut; + DevExpress.Ui.DxDropDownBoxInterop.Input += DxDropDownBox_Input; + DevExpress.Ui.DxDropDownBoxInterop.KeyDown += DxDropDownBox_KeyDown; + DevExpress.Ui.DxDropDownBoxInterop.KeyPress += DxDropDownBox_KeyPress; + DevExpress.Ui.DxDropDownBoxInterop.KeyUp += DxDropDownBox_KeyUp; + DevExpress.Ui.DxDropDownBoxInterop.Paste += DxDropDownBox_Paste; + DevExpress.Ui.DxDropDownBoxInterop.ValueChanged += DxDropDownBox_ValueChanged; + DevExpress.Ui.DxDropDownBoxInterop.ContentReady += DxDropDownBox_ContentReady; + DevExpress.Ui.DxDropDownBoxInterop.Disposing += DxDropDownBox_Disposing; + DevExpress.Ui.DxDropDownBoxInterop.OptionChanged += DxDropDownBox_OptionChanged; + DevExpress.Ui.DxDropDownBoxInterop.Initialized += DxDropDownBox_Initialized; + } + [Parameter] + Action Closed { get; set; } + void DxDropDownBox_Closed(object sender, JQueryEventArgs e) { + if (e.Identifier == Id) { + Closed?.Invoke(); + } + } + [Parameter] + Action Opened { get; set; } + void DxDropDownBox_Opened(object sender, JQueryEventArgs e) { + if (e.Identifier == Id) { + Opened?.Invoke(); + } + } + [Parameter] + Action Change { get; set; } + void DxDropDownBox_Change(object sender, JQueryEventArgs e) { + if (e.Identifier == Id) { + Change?.Invoke(); + } + } + [Parameter] + Action Copy { get; set; } + void DxDropDownBox_Copy(object sender, JQueryEventArgs e) { + if (e.Identifier == Id) { + Copy?.Invoke(); + } + } + [Parameter] + Action Cut { get; set; } + void DxDropDownBox_Cut(object sender, JQueryEventArgs e) { + if (e.Identifier == Id) { + Cut?.Invoke(); + } + } + [Parameter] + Action EnterKey { get; set; } + void DxDropDownBox_EnterKey(object sender, JQueryEventArgs e) { + if (e.Identifier == Id) { + EnterKey?.Invoke(); + } + } + [Parameter] + Action FocusIn { get; set; } + void DxDropDownBox_FocusIn(object sender, JQueryEventArgs e) { + if (e.Identifier == Id) { + FocusIn?.Invoke(); + } + } + [Parameter] + Action FocusOut { get; set; } + void DxDropDownBox_FocusOut(object sender, JQueryEventArgs e) { + if (e.Identifier == Id) { + FocusOut?.Invoke(); + } + } + [Parameter] + Action Input { get; set; } + void DxDropDownBox_Input(object sender, JQueryEventArgs e) { + if (e.Identifier == Id) { + Input?.Invoke(); + } + } + [Parameter] + Action KeyDown { get; set; } + void DxDropDownBox_KeyDown(object sender, JQueryEventArgs e) { + if (e.Identifier == Id) { + KeyDown?.Invoke(); + } + } + [Parameter] + Action KeyPress { get; set; } + void DxDropDownBox_KeyPress(object sender, JQueryEventArgs e) { + if (e.Identifier == Id) { + KeyPress?.Invoke(); + } + } + [Parameter] + Action KeyUp { get; set; } + void DxDropDownBox_KeyUp(object sender, JQueryEventArgs e) { + if (e.Identifier == Id) { + KeyUp?.Invoke(); + } + } + [Parameter] + Action Paste { get; set; } + void DxDropDownBox_Paste(object sender, JQueryEventArgs e) { + if (e.Identifier == Id) { + Paste?.Invoke(); + } + } + [Parameter] + Action ValueChanged { get; set; } + void DxDropDownBox_ValueChanged(object sender, JQueryEventArgs e) { + if (e.Identifier == Id) { + ValueChanged?.Invoke(); + } + } + [Parameter] + Action ContentReady { get; set; } + void DxDropDownBox_ContentReady(object sender, JQueryEventArgs e) { + if (e.Identifier == Id) { + ContentReady?.Invoke(); + } + } + [Parameter] + Action Disposing { get; set; } + void DxDropDownBox_Disposing(object sender, JQueryEventArgs e) { + if (e.Identifier == Id) { + Disposing?.Invoke(); + } + } + [Parameter] + Action OptionChanged { get; set; } + void DxDropDownBox_OptionChanged(object sender, JQueryEventArgs e) { + if (e.Identifier == Id) { + OptionChanged?.Invoke(); + } + } + [Parameter] + Action Initialized { get; set; } + void DxDropDownBox_Initialized(object sender, JQueryEventArgs e) { + if (e.Identifier == Id) { + Initialized?.Invoke(); + } } public object GetDataSourceEx() { return DevExpress.Ui.DxDropDownBoxInterop.GetDataSourceEx(dxTarget).Result; } public void Dispose() { + DevExpress.Ui.DxDropDownBoxInterop.Closed -= DxDropDownBox_Closed; + DevExpress.Ui.DxDropDownBoxInterop.Opened -= DxDropDownBox_Opened; + DevExpress.Ui.DxDropDownBoxInterop.Change -= DxDropDownBox_Change; + DevExpress.Ui.DxDropDownBoxInterop.Copy -= DxDropDownBox_Copy; + DevExpress.Ui.DxDropDownBoxInterop.Cut -= DxDropDownBox_Cut; + DevExpress.Ui.DxDropDownBoxInterop.EnterKey -= DxDropDownBox_EnterKey; + DevExpress.Ui.DxDropDownBoxInterop.FocusIn -= DxDropDownBox_FocusIn; + DevExpress.Ui.DxDropDownBoxInterop.FocusOut -= DxDropDownBox_FocusOut; + DevExpress.Ui.DxDropDownBoxInterop.Input -= DxDropDownBox_Input; + DevExpress.Ui.DxDropDownBoxInterop.KeyDown -= DxDropDownBox_KeyDown; + DevExpress.Ui.DxDropDownBoxInterop.KeyPress -= DxDropDownBox_KeyPress; + DevExpress.Ui.DxDropDownBoxInterop.KeyUp -= DxDropDownBox_KeyUp; + DevExpress.Ui.DxDropDownBoxInterop.Paste -= DxDropDownBox_Paste; + DevExpress.Ui.DxDropDownBoxInterop.ValueChanged -= DxDropDownBox_ValueChanged; + DevExpress.Ui.DxDropDownBoxInterop.ContentReady -= DxDropDownBox_ContentReady; + DevExpress.Ui.DxDropDownBoxInterop.Disposing -= DxDropDownBox_Disposing; + DevExpress.Ui.DxDropDownBoxInterop.OptionChanged -= DxDropDownBox_OptionChanged; + DevExpress.Ui.DxDropDownBoxInterop.Initialized -= DxDropDownBox_Initialized; } } diff --git a/sources/BlazorDevExtreme/Components/DxDropDownEditor.cshtml b/sources/BlazorDevExtreme/Components/DxDropDownEditor.cshtml index fed8085..d4f98de 100644 --- a/sources/BlazorDevExtreme/Components/DxDropDownEditor.cshtml +++ b/sources/BlazorDevExtreme/Components/DxDropDownEditor.cshtml @@ -17,17 +17,64 @@ dropDownButtonTemplate = dropDownButtonTemplate, opened = isOpened, value = value, + maxLength = maxLength, + mode = mode, + focusStateEnabled = focusStateEnabled, + hoverStateEnabled = hoverStateEnabled, + inputAttr = inputAttr, + mask = mask, + maskChar = maskChar, + maskInvalidMessage = maskInvalidMessage, + maskRules = maskRules, + name = name, + placeholder = placeholder, + showClearButton = showClearButton, + showMaskMode = showMaskMode, + spellcheck = spellcheck, + text = text, + useMaskedValue = useMaskedValue, + valueChangeEvent = valueChangeEvent, + isValid = isValid, + readOnly = readOnly, + validationError = validationError, + validationMessageMode = validationMessageMode, + accessKey = accessKey, + disabled = disabled, + hint = hint, + tabIndex = tabIndex, + visible = visible, + bindingOptions = bindingOptions, + elementAttr = elementAttr, + height = height, + rtlEnabled = rtlEnabled, + width = width, onClosedEnabled = onClosedEnabled, onOpenedEnabled = onOpenedEnabled, + onChangeEnabled = onChangeEnabled, + onCopyEnabled = onCopyEnabled, + onCutEnabled = onCutEnabled, + onEnterKeyEnabled = onEnterKeyEnabled, + onFocusInEnabled = onFocusInEnabled, + onFocusOutEnabled = onFocusOutEnabled, + onInputEnabled = onInputEnabled, + onKeyDownEnabled = onKeyDownEnabled, + onKeyPressEnabled = onKeyPressEnabled, + onKeyUpEnabled = onKeyUpEnabled, + onPasteEnabled = onPasteEnabled, + onValueChangedEnabled = onValueChangedEnabled, + onContentReadyEnabled = onContentReadyEnabled, + onDisposingEnabled = onDisposingEnabled, + onOptionChangedEnabled = onOptionChangedEnabled, + onInitializedEnabled = onInitializedEnabled, }; } protected override Task Init(DevExpress.Ui.DxDropDownEditorOptions options) { -return DevExpress.Ui.DxDropDownEditorInterop.Init(dxTarget, options); + return DevExpress.Ui.DxDropDownEditorInterop.Init(dxTarget, options); } bool? acceptCustomValue; [Parameter] bool? AcceptCustomValue { - get => isInitialized ? DevExpress.Ui.DxDropDownEditorInterop.GetAcceptCustomValue(dxTarget).Result : acceptCustomValue; + get => isInitialized ? (bool?)DevExpress.Ui.DxDropDownEditorInterop.GetAcceptCustomValue(dxTarget).Result : acceptCustomValue; set { if (isInitialized) { DevExpress.Ui.DxDropDownEditorInterop.SetAcceptCustomValue(dxTarget, value); @@ -39,7 +86,7 @@ return DevExpress.Ui.DxDropDownEditorInterop.Init(dxTarget, options); bool? activeStateEnabled; [Parameter] bool? ActiveStateEnabled { - get => isInitialized ? DevExpress.Ui.DxDropDownEditorInterop.GetActiveStateEnabled(dxTarget).Result : activeStateEnabled; + get => isInitialized ? (bool?)DevExpress.Ui.DxDropDownEditorInterop.GetActiveStateEnabled(dxTarget).Result : activeStateEnabled; set { if (isInitialized) { DevExpress.Ui.DxDropDownEditorInterop.SetActiveStateEnabled(dxTarget, value); @@ -51,7 +98,7 @@ return DevExpress.Ui.DxDropDownEditorInterop.Init(dxTarget, options); string applyValueMode; [Parameter] string ApplyValueMode { - get => isInitialized ? DevExpress.Ui.DxDropDownEditorInterop.GetApplyValueMode(dxTarget).Result : applyValueMode; + get => isInitialized ? (string)DevExpress.Ui.DxDropDownEditorInterop.GetApplyValueMode(dxTarget).Result : applyValueMode; set { if (isInitialized) { DevExpress.Ui.DxDropDownEditorInterop.SetApplyValueMode(dxTarget, value); @@ -63,7 +110,7 @@ return DevExpress.Ui.DxDropDownEditorInterop.Init(dxTarget, options); bool? deferRendering; [Parameter] bool? DeferRendering { - get => isInitialized ? DevExpress.Ui.DxDropDownEditorInterop.GetDeferRendering(dxTarget).Result : deferRendering; + get => isInitialized ? (bool?)DevExpress.Ui.DxDropDownEditorInterop.GetDeferRendering(dxTarget).Result : deferRendering; set { if (isInitialized) { DevExpress.Ui.DxDropDownEditorInterop.SetDeferRendering(dxTarget, value); @@ -87,7 +134,7 @@ return DevExpress.Ui.DxDropDownEditorInterop.Init(dxTarget, options); bool? isOpened; [Parameter] bool? IsOpened { - get => isInitialized ? DevExpress.Ui.DxDropDownEditorInterop.GetOpened(dxTarget).Result : isOpened; + get => isInitialized ? (bool?)DevExpress.Ui.DxDropDownEditorInterop.GetOpened(dxTarget).Result : isOpened; set { if (isInitialized) { DevExpress.Ui.DxDropDownEditorInterop.SetOpened(dxTarget, value); @@ -108,6 +155,378 @@ return DevExpress.Ui.DxDropDownEditorInterop.Init(dxTarget, options); } } } + object maxLength; + [Parameter] + object MaxLength { + get => isInitialized ? DevExpress.Ui.DxDropDownEditorInterop.GetMaxLength(dxTarget).Result : maxLength; + set { + if (isInitialized) { + DevExpress.Ui.DxDropDownEditorInterop.SetMaxLength(dxTarget, value); + } else { + this.maxLength = value; + } + } + } + string mode; + [Parameter] + string Mode { + get => isInitialized ? (string)DevExpress.Ui.DxDropDownEditorInterop.GetMode(dxTarget).Result : mode; + set { + if (isInitialized) { + DevExpress.Ui.DxDropDownEditorInterop.SetMode(dxTarget, value); + } else { + this.mode = value; + } + } + } + bool? focusStateEnabled; + [Parameter] + bool? FocusStateEnabled { + get => isInitialized ? (bool?)DevExpress.Ui.DxDropDownEditorInterop.GetFocusStateEnabled(dxTarget).Result : focusStateEnabled; + set { + if (isInitialized) { + DevExpress.Ui.DxDropDownEditorInterop.SetFocusStateEnabled(dxTarget, value); + } else { + this.focusStateEnabled = value; + } + } + } + bool? hoverStateEnabled; + [Parameter] + bool? HoverStateEnabled { + get => isInitialized ? (bool?)DevExpress.Ui.DxDropDownEditorInterop.GetHoverStateEnabled(dxTarget).Result : hoverStateEnabled; + set { + if (isInitialized) { + DevExpress.Ui.DxDropDownEditorInterop.SetHoverStateEnabled(dxTarget, value); + } else { + this.hoverStateEnabled = value; + } + } + } + object inputAttr; + [Parameter] + object InputAttr { + get => isInitialized ? DevExpress.Ui.DxDropDownEditorInterop.GetInputAttr(dxTarget).Result : inputAttr; + set { + if (isInitialized) { + DevExpress.Ui.DxDropDownEditorInterop.SetInputAttr(dxTarget, value); + } else { + this.inputAttr = value; + } + } + } + string mask; + [Parameter] + string Mask { + get => isInitialized ? (string)DevExpress.Ui.DxDropDownEditorInterop.GetMask(dxTarget).Result : mask; + set { + if (isInitialized) { + DevExpress.Ui.DxDropDownEditorInterop.SetMask(dxTarget, value); + } else { + this.mask = value; + } + } + } + string maskChar; + [Parameter] + string MaskChar { + get => isInitialized ? (string)DevExpress.Ui.DxDropDownEditorInterop.GetMaskChar(dxTarget).Result : maskChar; + set { + if (isInitialized) { + DevExpress.Ui.DxDropDownEditorInterop.SetMaskChar(dxTarget, value); + } else { + this.maskChar = value; + } + } + } + string maskInvalidMessage; + [Parameter] + string MaskInvalidMessage { + get => isInitialized ? (string)DevExpress.Ui.DxDropDownEditorInterop.GetMaskInvalidMessage(dxTarget).Result : maskInvalidMessage; + set { + if (isInitialized) { + DevExpress.Ui.DxDropDownEditorInterop.SetMaskInvalidMessage(dxTarget, value); + } else { + this.maskInvalidMessage = value; + } + } + } + object maskRules; + [Parameter] + object MaskRules { + get => isInitialized ? DevExpress.Ui.DxDropDownEditorInterop.GetMaskRules(dxTarget).Result : maskRules; + set { + if (isInitialized) { + DevExpress.Ui.DxDropDownEditorInterop.SetMaskRules(dxTarget, value); + } else { + this.maskRules = value; + } + } + } + string name; + [Parameter] + string Name { + get => isInitialized ? (string)DevExpress.Ui.DxDropDownEditorInterop.GetName(dxTarget).Result : name; + set { + if (isInitialized) { + DevExpress.Ui.DxDropDownEditorInterop.SetName(dxTarget, value); + } else { + this.name = value; + } + } + } + string placeholder; + [Parameter] + string Placeholder { + get => isInitialized ? (string)DevExpress.Ui.DxDropDownEditorInterop.GetPlaceholder(dxTarget).Result : placeholder; + set { + if (isInitialized) { + DevExpress.Ui.DxDropDownEditorInterop.SetPlaceholder(dxTarget, value); + } else { + this.placeholder = value; + } + } + } + bool? showClearButton; + [Parameter] + bool? ShowClearButton { + get => isInitialized ? (bool?)DevExpress.Ui.DxDropDownEditorInterop.GetShowClearButton(dxTarget).Result : showClearButton; + set { + if (isInitialized) { + DevExpress.Ui.DxDropDownEditorInterop.SetShowClearButton(dxTarget, value); + } else { + this.showClearButton = value; + } + } + } + string showMaskMode; + [Parameter] + string ShowMaskMode { + get => isInitialized ? (string)DevExpress.Ui.DxDropDownEditorInterop.GetShowMaskMode(dxTarget).Result : showMaskMode; + set { + if (isInitialized) { + DevExpress.Ui.DxDropDownEditorInterop.SetShowMaskMode(dxTarget, value); + } else { + this.showMaskMode = value; + } + } + } + bool? spellcheck; + [Parameter] + bool? Spellcheck { + get => isInitialized ? (bool?)DevExpress.Ui.DxDropDownEditorInterop.GetSpellcheck(dxTarget).Result : spellcheck; + set { + if (isInitialized) { + DevExpress.Ui.DxDropDownEditorInterop.SetSpellcheck(dxTarget, value); + } else { + this.spellcheck = value; + } + } + } + string text; + [Parameter] + string Text { + get => isInitialized ? (string)DevExpress.Ui.DxDropDownEditorInterop.GetText(dxTarget).Result : text; + set { + if (isInitialized) { + DevExpress.Ui.DxDropDownEditorInterop.SetText(dxTarget, value); + } else { + this.text = value; + } + } + } + bool? useMaskedValue; + [Parameter] + bool? UseMaskedValue { + get => isInitialized ? (bool?)DevExpress.Ui.DxDropDownEditorInterop.GetUseMaskedValue(dxTarget).Result : useMaskedValue; + set { + if (isInitialized) { + DevExpress.Ui.DxDropDownEditorInterop.SetUseMaskedValue(dxTarget, value); + } else { + this.useMaskedValue = value; + } + } + } + string valueChangeEvent; + [Parameter] + string ValueChangeEvent { + get => isInitialized ? (string)DevExpress.Ui.DxDropDownEditorInterop.GetValueChangeEvent(dxTarget).Result : valueChangeEvent; + set { + if (isInitialized) { + DevExpress.Ui.DxDropDownEditorInterop.SetValueChangeEvent(dxTarget, value); + } else { + this.valueChangeEvent = value; + } + } + } + bool? isValid; + [Parameter] + bool? IsValid { + get => isInitialized ? (bool?)DevExpress.Ui.DxDropDownEditorInterop.GetIsValid(dxTarget).Result : isValid; + set { + if (isInitialized) { + DevExpress.Ui.DxDropDownEditorInterop.SetIsValid(dxTarget, value); + } else { + this.isValid = value; + } + } + } + bool? readOnly; + [Parameter] + bool? ReadOnly { + get => isInitialized ? (bool?)DevExpress.Ui.DxDropDownEditorInterop.GetReadOnly(dxTarget).Result : readOnly; + set { + if (isInitialized) { + DevExpress.Ui.DxDropDownEditorInterop.SetReadOnly(dxTarget, value); + } else { + this.readOnly = value; + } + } + } + object validationError; + [Parameter] + object ValidationError { + get => isInitialized ? DevExpress.Ui.DxDropDownEditorInterop.GetValidationError(dxTarget).Result : validationError; + set { + if (isInitialized) { + DevExpress.Ui.DxDropDownEditorInterop.SetValidationError(dxTarget, value); + } else { + this.validationError = value; + } + } + } + string validationMessageMode; + [Parameter] + string ValidationMessageMode { + get => isInitialized ? (string)DevExpress.Ui.DxDropDownEditorInterop.GetValidationMessageMode(dxTarget).Result : validationMessageMode; + set { + if (isInitialized) { + DevExpress.Ui.DxDropDownEditorInterop.SetValidationMessageMode(dxTarget, value); + } else { + this.validationMessageMode = value; + } + } + } + string accessKey; + [Parameter] + string AccessKey { + get => isInitialized ? (string)DevExpress.Ui.DxDropDownEditorInterop.GetAccessKey(dxTarget).Result : accessKey; + set { + if (isInitialized) { + DevExpress.Ui.DxDropDownEditorInterop.SetAccessKey(dxTarget, value); + } else { + this.accessKey = value; + } + } + } + bool? disabled; + [Parameter] + bool? Disabled { + get => isInitialized ? (bool?)DevExpress.Ui.DxDropDownEditorInterop.GetDisabled(dxTarget).Result : disabled; + set { + if (isInitialized) { + DevExpress.Ui.DxDropDownEditorInterop.SetDisabled(dxTarget, value); + } else { + this.disabled = value; + } + } + } + string hint; + [Parameter] + string Hint { + get => isInitialized ? (string)DevExpress.Ui.DxDropDownEditorInterop.GetHint(dxTarget).Result : hint; + set { + if (isInitialized) { + DevExpress.Ui.DxDropDownEditorInterop.SetHint(dxTarget, value); + } else { + this.hint = value; + } + } + } + float? tabIndex; + [Parameter] + float? TabIndex { + get => isInitialized ? (float?)DevExpress.Ui.DxDropDownEditorInterop.GetTabIndex(dxTarget).Result : tabIndex; + set { + if (isInitialized) { + DevExpress.Ui.DxDropDownEditorInterop.SetTabIndex(dxTarget, value); + } else { + this.tabIndex = value; + } + } + } + bool? visible; + [Parameter] + bool? Visible { + get => isInitialized ? (bool?)DevExpress.Ui.DxDropDownEditorInterop.GetVisible(dxTarget).Result : visible; + set { + if (isInitialized) { + DevExpress.Ui.DxDropDownEditorInterop.SetVisible(dxTarget, value); + } else { + this.visible = value; + } + } + } + object bindingOptions; + [Parameter] + object BindingOptions { + get => isInitialized ? DevExpress.Ui.DxDropDownEditorInterop.GetBindingOptions(dxTarget).Result : bindingOptions; + set { + if (isInitialized) { + DevExpress.Ui.DxDropDownEditorInterop.SetBindingOptions(dxTarget, value); + } else { + this.bindingOptions = value; + } + } + } + object elementAttr; + [Parameter] + object ElementAttr { + get => isInitialized ? DevExpress.Ui.DxDropDownEditorInterop.GetElementAttr(dxTarget).Result : elementAttr; + set { + if (isInitialized) { + DevExpress.Ui.DxDropDownEditorInterop.SetElementAttr(dxTarget, value); + } else { + this.elementAttr = value; + } + } + } + object height; + [Parameter] + object Height { + get => isInitialized ? DevExpress.Ui.DxDropDownEditorInterop.GetHeight(dxTarget).Result : height; + set { + if (isInitialized) { + DevExpress.Ui.DxDropDownEditorInterop.SetHeight(dxTarget, value); + } else { + this.height = value; + } + } + } + bool? rtlEnabled; + [Parameter] + bool? RtlEnabled { + get => isInitialized ? (bool?)DevExpress.Ui.DxDropDownEditorInterop.GetRtlEnabled(dxTarget).Result : rtlEnabled; + set { + if (isInitialized) { + DevExpress.Ui.DxDropDownEditorInterop.SetRtlEnabled(dxTarget, value); + } else { + this.rtlEnabled = value; + } + } + } + object width; + [Parameter] + object Width { + get => isInitialized ? DevExpress.Ui.DxDropDownEditorInterop.GetWidth(dxTarget).Result : width; + set { + if (isInitialized) { + DevExpress.Ui.DxDropDownEditorInterop.SetWidth(dxTarget, value); + } else { + this.width = value; + } + } + } bool? onClosedEnabled; [Parameter] bool? OnClosedEnabled { @@ -120,10 +539,122 @@ return DevExpress.Ui.DxDropDownEditorInterop.Init(dxTarget, options); get => onOpenedEnabled; set => this.onOpenedEnabled = value; } + bool? onChangeEnabled; + [Parameter] + bool? OnChangeEnabled { + get => onChangeEnabled; + set => this.onChangeEnabled = value; + } + bool? onCopyEnabled; + [Parameter] + bool? OnCopyEnabled { + get => onCopyEnabled; + set => this.onCopyEnabled = value; + } + bool? onCutEnabled; + [Parameter] + bool? OnCutEnabled { + get => onCutEnabled; + set => this.onCutEnabled = value; + } + bool? onEnterKeyEnabled; + [Parameter] + bool? OnEnterKeyEnabled { + get => onEnterKeyEnabled; + set => this.onEnterKeyEnabled = value; + } + bool? onFocusInEnabled; + [Parameter] + bool? OnFocusInEnabled { + get => onFocusInEnabled; + set => this.onFocusInEnabled = value; + } + bool? onFocusOutEnabled; + [Parameter] + bool? OnFocusOutEnabled { + get => onFocusOutEnabled; + set => this.onFocusOutEnabled = value; + } + bool? onInputEnabled; + [Parameter] + bool? OnInputEnabled { + get => onInputEnabled; + set => this.onInputEnabled = value; + } + bool? onKeyDownEnabled; + [Parameter] + bool? OnKeyDownEnabled { + get => onKeyDownEnabled; + set => this.onKeyDownEnabled = value; + } + bool? onKeyPressEnabled; + [Parameter] + bool? OnKeyPressEnabled { + get => onKeyPressEnabled; + set => this.onKeyPressEnabled = value; + } + bool? onKeyUpEnabled; + [Parameter] + bool? OnKeyUpEnabled { + get => onKeyUpEnabled; + set => this.onKeyUpEnabled = value; + } + bool? onPasteEnabled; + [Parameter] + bool? OnPasteEnabled { + get => onPasteEnabled; + set => this.onPasteEnabled = value; + } + bool? onValueChangedEnabled; + [Parameter] + bool? OnValueChangedEnabled { + get => onValueChangedEnabled; + set => this.onValueChangedEnabled = value; + } + bool? onContentReadyEnabled; + [Parameter] + bool? OnContentReadyEnabled { + get => onContentReadyEnabled; + set => this.onContentReadyEnabled = value; + } + bool? onDisposingEnabled; + [Parameter] + bool? OnDisposingEnabled { + get => onDisposingEnabled; + set => this.onDisposingEnabled = value; + } + bool? onOptionChangedEnabled; + [Parameter] + bool? OnOptionChangedEnabled { + get => onOptionChangedEnabled; + set => this.onOptionChangedEnabled = value; + } + bool? onInitializedEnabled; + [Parameter] + bool? OnInitializedEnabled { + get => onInitializedEnabled; + set => this.onInitializedEnabled = value; + } protected override async Task OnInitAsync() { await base.OnInitAsync(); DevExpress.Ui.DxDropDownEditorInterop.Closed += DxDropDownEditor_Closed; DevExpress.Ui.DxDropDownEditorInterop.Opened += DxDropDownEditor_Opened; + DevExpress.Ui.DxDropDownEditorInterop.Change += DxDropDownEditor_Change; + DevExpress.Ui.DxDropDownEditorInterop.Copy += DxDropDownEditor_Copy; + DevExpress.Ui.DxDropDownEditorInterop.Cut += DxDropDownEditor_Cut; + DevExpress.Ui.DxDropDownEditorInterop.EnterKey += DxDropDownEditor_EnterKey; + DevExpress.Ui.DxDropDownEditorInterop.FocusIn += DxDropDownEditor_FocusIn; + DevExpress.Ui.DxDropDownEditorInterop.FocusOut += DxDropDownEditor_FocusOut; + DevExpress.Ui.DxDropDownEditorInterop.Input += DxDropDownEditor_Input; + DevExpress.Ui.DxDropDownEditorInterop.KeyDown += DxDropDownEditor_KeyDown; + DevExpress.Ui.DxDropDownEditorInterop.KeyPress += DxDropDownEditor_KeyPress; + DevExpress.Ui.DxDropDownEditorInterop.KeyUp += DxDropDownEditor_KeyUp; + DevExpress.Ui.DxDropDownEditorInterop.Paste += DxDropDownEditor_Paste; + DevExpress.Ui.DxDropDownEditorInterop.ValueChanged += DxDropDownEditor_ValueChanged; + DevExpress.Ui.DxDropDownEditorInterop.ContentReady += DxDropDownEditor_ContentReady; + DevExpress.Ui.DxDropDownEditorInterop.Disposing += DxDropDownEditor_Disposing; + DevExpress.Ui.DxDropDownEditorInterop.OptionChanged += DxDropDownEditor_OptionChanged; + DevExpress.Ui.DxDropDownEditorInterop.Initialized += DxDropDownEditor_Initialized; } [Parameter] Action Closed { get; set; } @@ -139,6 +670,118 @@ return DevExpress.Ui.DxDropDownEditorInterop.Init(dxTarget, options); Opened?.Invoke(); } } + [Parameter] + Action Change { get; set; } + void DxDropDownEditor_Change(object sender, JQueryEventArgs e) { + if (e.Identifier == Id) { + Change?.Invoke(); + } + } + [Parameter] + Action Copy { get; set; } + void DxDropDownEditor_Copy(object sender, JQueryEventArgs e) { + if (e.Identifier == Id) { + Copy?.Invoke(); + } + } + [Parameter] + Action Cut { get; set; } + void DxDropDownEditor_Cut(object sender, JQueryEventArgs e) { + if (e.Identifier == Id) { + Cut?.Invoke(); + } + } + [Parameter] + Action EnterKey { get; set; } + void DxDropDownEditor_EnterKey(object sender, JQueryEventArgs e) { + if (e.Identifier == Id) { + EnterKey?.Invoke(); + } + } + [Parameter] + Action FocusIn { get; set; } + void DxDropDownEditor_FocusIn(object sender, JQueryEventArgs e) { + if (e.Identifier == Id) { + FocusIn?.Invoke(); + } + } + [Parameter] + Action FocusOut { get; set; } + void DxDropDownEditor_FocusOut(object sender, JQueryEventArgs e) { + if (e.Identifier == Id) { + FocusOut?.Invoke(); + } + } + [Parameter] + Action Input { get; set; } + void DxDropDownEditor_Input(object sender, JQueryEventArgs e) { + if (e.Identifier == Id) { + Input?.Invoke(); + } + } + [Parameter] + Action KeyDown { get; set; } + void DxDropDownEditor_KeyDown(object sender, JQueryEventArgs e) { + if (e.Identifier == Id) { + KeyDown?.Invoke(); + } + } + [Parameter] + Action KeyPress { get; set; } + void DxDropDownEditor_KeyPress(object sender, JQueryEventArgs e) { + if (e.Identifier == Id) { + KeyPress?.Invoke(); + } + } + [Parameter] + Action KeyUp { get; set; } + void DxDropDownEditor_KeyUp(object sender, JQueryEventArgs e) { + if (e.Identifier == Id) { + KeyUp?.Invoke(); + } + } + [Parameter] + Action Paste { get; set; } + void DxDropDownEditor_Paste(object sender, JQueryEventArgs e) { + if (e.Identifier == Id) { + Paste?.Invoke(); + } + } + [Parameter] + Action ValueChanged { get; set; } + void DxDropDownEditor_ValueChanged(object sender, JQueryEventArgs e) { + if (e.Identifier == Id) { + ValueChanged?.Invoke(); + } + } + [Parameter] + Action ContentReady { get; set; } + void DxDropDownEditor_ContentReady(object sender, JQueryEventArgs e) { + if (e.Identifier == Id) { + ContentReady?.Invoke(); + } + } + [Parameter] + Action Disposing { get; set; } + void DxDropDownEditor_Disposing(object sender, JQueryEventArgs e) { + if (e.Identifier == Id) { + Disposing?.Invoke(); + } + } + [Parameter] + Action OptionChanged { get; set; } + void DxDropDownEditor_OptionChanged(object sender, JQueryEventArgs e) { + if (e.Identifier == Id) { + OptionChanged?.Invoke(); + } + } + [Parameter] + Action Initialized { get; set; } + void DxDropDownEditor_Initialized(object sender, JQueryEventArgs e) { + if (e.Identifier == Id) { + Initialized?.Invoke(); + } + } public void Close() { DevExpress.Ui.DxDropDownEditorInterop.Close(dxTarget); } @@ -157,5 +800,21 @@ return DevExpress.Ui.DxDropDownEditorInterop.Init(dxTarget, options); public void Dispose() { DevExpress.Ui.DxDropDownEditorInterop.Closed -= DxDropDownEditor_Closed; DevExpress.Ui.DxDropDownEditorInterop.Opened -= DxDropDownEditor_Opened; + DevExpress.Ui.DxDropDownEditorInterop.Change -= DxDropDownEditor_Change; + DevExpress.Ui.DxDropDownEditorInterop.Copy -= DxDropDownEditor_Copy; + DevExpress.Ui.DxDropDownEditorInterop.Cut -= DxDropDownEditor_Cut; + DevExpress.Ui.DxDropDownEditorInterop.EnterKey -= DxDropDownEditor_EnterKey; + DevExpress.Ui.DxDropDownEditorInterop.FocusIn -= DxDropDownEditor_FocusIn; + DevExpress.Ui.DxDropDownEditorInterop.FocusOut -= DxDropDownEditor_FocusOut; + DevExpress.Ui.DxDropDownEditorInterop.Input -= DxDropDownEditor_Input; + DevExpress.Ui.DxDropDownEditorInterop.KeyDown -= DxDropDownEditor_KeyDown; + DevExpress.Ui.DxDropDownEditorInterop.KeyPress -= DxDropDownEditor_KeyPress; + DevExpress.Ui.DxDropDownEditorInterop.KeyUp -= DxDropDownEditor_KeyUp; + DevExpress.Ui.DxDropDownEditorInterop.Paste -= DxDropDownEditor_Paste; + DevExpress.Ui.DxDropDownEditorInterop.ValueChanged -= DxDropDownEditor_ValueChanged; + DevExpress.Ui.DxDropDownEditorInterop.ContentReady -= DxDropDownEditor_ContentReady; + DevExpress.Ui.DxDropDownEditorInterop.Disposing -= DxDropDownEditor_Disposing; + DevExpress.Ui.DxDropDownEditorInterop.OptionChanged -= DxDropDownEditor_OptionChanged; + DevExpress.Ui.DxDropDownEditorInterop.Initialized -= DxDropDownEditor_Initialized; } } diff --git a/sources/BlazorDevExtreme/Components/DxDropDownList.cshtml b/sources/BlazorDevExtreme/Components/DxDropDownList.cshtml index 9e30f29..bc373bd 100644 --- a/sources/BlazorDevExtreme/Components/DxDropDownList.cshtml +++ b/sources/BlazorDevExtreme/Components/DxDropDownList.cshtml @@ -23,18 +23,76 @@ showDataBeforeSearch = showDataBeforeSearch, value = value, valueChangeEvent = valueChangeEvent, + acceptCustomValue = acceptCustomValue, + activeStateEnabled = activeStateEnabled, + applyValueMode = applyValueMode, + deferRendering = deferRendering, + dropDownButtonTemplate = dropDownButtonTemplate, + opened = isOpened, + maxLength = maxLength, + mode = mode, + focusStateEnabled = focusStateEnabled, + hoverStateEnabled = hoverStateEnabled, + inputAttr = inputAttr, + mask = mask, + maskChar = maskChar, + maskInvalidMessage = maskInvalidMessage, + maskRules = maskRules, + name = name, + placeholder = placeholder, + showClearButton = showClearButton, + showMaskMode = showMaskMode, + spellcheck = spellcheck, + text = text, + useMaskedValue = useMaskedValue, + isValid = isValid, + readOnly = readOnly, + validationError = validationError, + validationMessageMode = validationMessageMode, + accessKey = accessKey, + disabled = disabled, + hint = hint, + tabIndex = tabIndex, + visible = visible, + bindingOptions = bindingOptions, + elementAttr = elementAttr, + height = height, + rtlEnabled = rtlEnabled, + width = width, + dataSource = dataSource, + displayExpr = displayExpr, + items = items, + itemTemplate = itemTemplate, + valueExpr = valueExpr, onItemClickEnabled = onItemClickEnabled, onSelectionChangedEnabled = onSelectionChangedEnabled, onValueChangedEnabled = onValueChangedEnabled, + onClosedEnabled = onClosedEnabled, + onOpenedEnabled = onOpenedEnabled, + onChangeEnabled = onChangeEnabled, + onCopyEnabled = onCopyEnabled, + onCutEnabled = onCutEnabled, + onEnterKeyEnabled = onEnterKeyEnabled, + onFocusInEnabled = onFocusInEnabled, + onFocusOutEnabled = onFocusOutEnabled, + onInputEnabled = onInputEnabled, + onKeyDownEnabled = onKeyDownEnabled, + onKeyPressEnabled = onKeyPressEnabled, + onKeyUpEnabled = onKeyUpEnabled, + onPasteEnabled = onPasteEnabled, + onContentReadyEnabled = onContentReadyEnabled, + onDisposingEnabled = onDisposingEnabled, + onOptionChangedEnabled = onOptionChangedEnabled, + onInitializedEnabled = onInitializedEnabled, }; } protected override Task Init(DevExpress.Ui.DxDropDownListOptions options) { -return DevExpress.Ui.DxDropDownListInterop.Init(dxTarget, options); + return DevExpress.Ui.DxDropDownListInterop.Init(dxTarget, options); } string displayValue; [Parameter] string DisplayValue { - get => isInitialized ? DevExpress.Ui.DxDropDownListInterop.GetDisplayValue(dxTarget).Result : displayValue; + get => isInitialized ? (string)DevExpress.Ui.DxDropDownListInterop.GetDisplayValue(dxTarget).Result : displayValue; set { if (isInitialized) { DevExpress.Ui.DxDropDownListInterop.SetDisplayValue(dxTarget, value); @@ -46,7 +104,7 @@ return DevExpress.Ui.DxDropDownListInterop.Init(dxTarget, options); bool? grouped; [Parameter] bool? Grouped { - get => isInitialized ? DevExpress.Ui.DxDropDownListInterop.GetGrouped(dxTarget).Result : grouped; + get => isInitialized ? (bool?)DevExpress.Ui.DxDropDownListInterop.GetGrouped(dxTarget).Result : grouped; set { if (isInitialized) { DevExpress.Ui.DxDropDownListInterop.SetGrouped(dxTarget, value); @@ -70,7 +128,7 @@ return DevExpress.Ui.DxDropDownListInterop.Init(dxTarget, options); float? minSearchLength; [Parameter] float? MinSearchLength { - get => isInitialized ? DevExpress.Ui.DxDropDownListInterop.GetMinSearchLength(dxTarget).Result : minSearchLength; + get => isInitialized ? (float?)DevExpress.Ui.DxDropDownListInterop.GetMinSearchLength(dxTarget).Result : minSearchLength; set { if (isInitialized) { DevExpress.Ui.DxDropDownListInterop.SetMinSearchLength(dxTarget, value); @@ -82,7 +140,7 @@ return DevExpress.Ui.DxDropDownListInterop.Init(dxTarget, options); string noDataText; [Parameter] string NoDataText { - get => isInitialized ? DevExpress.Ui.DxDropDownListInterop.GetNoDataText(dxTarget).Result : noDataText; + get => isInitialized ? (string)DevExpress.Ui.DxDropDownListInterop.GetNoDataText(dxTarget).Result : noDataText; set { if (isInitialized) { DevExpress.Ui.DxDropDownListInterop.SetNoDataText(dxTarget, value); @@ -94,7 +152,7 @@ return DevExpress.Ui.DxDropDownListInterop.Init(dxTarget, options); bool? searchEnabled; [Parameter] bool? SearchEnabled { - get => isInitialized ? DevExpress.Ui.DxDropDownListInterop.GetSearchEnabled(dxTarget).Result : searchEnabled; + get => isInitialized ? (bool?)DevExpress.Ui.DxDropDownListInterop.GetSearchEnabled(dxTarget).Result : searchEnabled; set { if (isInitialized) { DevExpress.Ui.DxDropDownListInterop.SetSearchEnabled(dxTarget, value); @@ -118,7 +176,7 @@ return DevExpress.Ui.DxDropDownListInterop.Init(dxTarget, options); string searchMode; [Parameter] string SearchMode { - get => isInitialized ? DevExpress.Ui.DxDropDownListInterop.GetSearchMode(dxTarget).Result : searchMode; + get => isInitialized ? (string)DevExpress.Ui.DxDropDownListInterop.GetSearchMode(dxTarget).Result : searchMode; set { if (isInitialized) { DevExpress.Ui.DxDropDownListInterop.SetSearchMode(dxTarget, value); @@ -130,7 +188,7 @@ return DevExpress.Ui.DxDropDownListInterop.Init(dxTarget, options); float? searchTimeout; [Parameter] float? SearchTimeout { - get => isInitialized ? DevExpress.Ui.DxDropDownListInterop.GetSearchTimeout(dxTarget).Result : searchTimeout; + get => isInitialized ? (float?)DevExpress.Ui.DxDropDownListInterop.GetSearchTimeout(dxTarget).Result : searchTimeout; set { if (isInitialized) { DevExpress.Ui.DxDropDownListInterop.SetSearchTimeout(dxTarget, value); @@ -154,7 +212,7 @@ return DevExpress.Ui.DxDropDownListInterop.Init(dxTarget, options); bool? showDataBeforeSearch; [Parameter] bool? ShowDataBeforeSearch { - get => isInitialized ? DevExpress.Ui.DxDropDownListInterop.GetShowDataBeforeSearch(dxTarget).Result : showDataBeforeSearch; + get => isInitialized ? (bool?)DevExpress.Ui.DxDropDownListInterop.GetShowDataBeforeSearch(dxTarget).Result : showDataBeforeSearch; set { if (isInitialized) { DevExpress.Ui.DxDropDownListInterop.SetShowDataBeforeSearch(dxTarget, value); @@ -178,7 +236,7 @@ return DevExpress.Ui.DxDropDownListInterop.Init(dxTarget, options); string valueChangeEvent; [Parameter] string ValueChangeEvent { - get => isInitialized ? DevExpress.Ui.DxDropDownListInterop.GetValueChangeEvent(dxTarget).Result : valueChangeEvent; + get => isInitialized ? (string)DevExpress.Ui.DxDropDownListInterop.GetValueChangeEvent(dxTarget).Result : valueChangeEvent; set { if (isInitialized) { DevExpress.Ui.DxDropDownListInterop.SetValueChangeEvent(dxTarget, value); @@ -187,6 +245,498 @@ return DevExpress.Ui.DxDropDownListInterop.Init(dxTarget, options); } } } + bool? acceptCustomValue; + [Parameter] + bool? AcceptCustomValue { + get => isInitialized ? (bool?)DevExpress.Ui.DxDropDownListInterop.GetAcceptCustomValue(dxTarget).Result : acceptCustomValue; + set { + if (isInitialized) { + DevExpress.Ui.DxDropDownListInterop.SetAcceptCustomValue(dxTarget, value); + } else { + this.acceptCustomValue = value; + } + } + } + bool? activeStateEnabled; + [Parameter] + bool? ActiveStateEnabled { + get => isInitialized ? (bool?)DevExpress.Ui.DxDropDownListInterop.GetActiveStateEnabled(dxTarget).Result : activeStateEnabled; + set { + if (isInitialized) { + DevExpress.Ui.DxDropDownListInterop.SetActiveStateEnabled(dxTarget, value); + } else { + this.activeStateEnabled = value; + } + } + } + string applyValueMode; + [Parameter] + string ApplyValueMode { + get => isInitialized ? (string)DevExpress.Ui.DxDropDownListInterop.GetApplyValueMode(dxTarget).Result : applyValueMode; + set { + if (isInitialized) { + DevExpress.Ui.DxDropDownListInterop.SetApplyValueMode(dxTarget, value); + } else { + this.applyValueMode = value; + } + } + } + bool? deferRendering; + [Parameter] + bool? DeferRendering { + get => isInitialized ? (bool?)DevExpress.Ui.DxDropDownListInterop.GetDeferRendering(dxTarget).Result : deferRendering; + set { + if (isInitialized) { + DevExpress.Ui.DxDropDownListInterop.SetDeferRendering(dxTarget, value); + } else { + this.deferRendering = value; + } + } + } + object dropDownButtonTemplate; + [Parameter] + object DropDownButtonTemplate { + get => isInitialized ? DevExpress.Ui.DxDropDownListInterop.GetDropDownButtonTemplate(dxTarget).Result : dropDownButtonTemplate; + set { + if (isInitialized) { + DevExpress.Ui.DxDropDownListInterop.SetDropDownButtonTemplate(dxTarget, value); + } else { + this.dropDownButtonTemplate = value; + } + } + } + bool? isOpened; + [Parameter] + bool? IsOpened { + get => isInitialized ? (bool?)DevExpress.Ui.DxDropDownListInterop.GetOpened(dxTarget).Result : isOpened; + set { + if (isInitialized) { + DevExpress.Ui.DxDropDownListInterop.SetOpened(dxTarget, value); + } else { + this.isOpened = value; + } + } + } + object maxLength; + [Parameter] + object MaxLength { + get => isInitialized ? DevExpress.Ui.DxDropDownListInterop.GetMaxLength(dxTarget).Result : maxLength; + set { + if (isInitialized) { + DevExpress.Ui.DxDropDownListInterop.SetMaxLength(dxTarget, value); + } else { + this.maxLength = value; + } + } + } + string mode; + [Parameter] + string Mode { + get => isInitialized ? (string)DevExpress.Ui.DxDropDownListInterop.GetMode(dxTarget).Result : mode; + set { + if (isInitialized) { + DevExpress.Ui.DxDropDownListInterop.SetMode(dxTarget, value); + } else { + this.mode = value; + } + } + } + bool? focusStateEnabled; + [Parameter] + bool? FocusStateEnabled { + get => isInitialized ? (bool?)DevExpress.Ui.DxDropDownListInterop.GetFocusStateEnabled(dxTarget).Result : focusStateEnabled; + set { + if (isInitialized) { + DevExpress.Ui.DxDropDownListInterop.SetFocusStateEnabled(dxTarget, value); + } else { + this.focusStateEnabled = value; + } + } + } + bool? hoverStateEnabled; + [Parameter] + bool? HoverStateEnabled { + get => isInitialized ? (bool?)DevExpress.Ui.DxDropDownListInterop.GetHoverStateEnabled(dxTarget).Result : hoverStateEnabled; + set { + if (isInitialized) { + DevExpress.Ui.DxDropDownListInterop.SetHoverStateEnabled(dxTarget, value); + } else { + this.hoverStateEnabled = value; + } + } + } + object inputAttr; + [Parameter] + object InputAttr { + get => isInitialized ? DevExpress.Ui.DxDropDownListInterop.GetInputAttr(dxTarget).Result : inputAttr; + set { + if (isInitialized) { + DevExpress.Ui.DxDropDownListInterop.SetInputAttr(dxTarget, value); + } else { + this.inputAttr = value; + } + } + } + string mask; + [Parameter] + string Mask { + get => isInitialized ? (string)DevExpress.Ui.DxDropDownListInterop.GetMask(dxTarget).Result : mask; + set { + if (isInitialized) { + DevExpress.Ui.DxDropDownListInterop.SetMask(dxTarget, value); + } else { + this.mask = value; + } + } + } + string maskChar; + [Parameter] + string MaskChar { + get => isInitialized ? (string)DevExpress.Ui.DxDropDownListInterop.GetMaskChar(dxTarget).Result : maskChar; + set { + if (isInitialized) { + DevExpress.Ui.DxDropDownListInterop.SetMaskChar(dxTarget, value); + } else { + this.maskChar = value; + } + } + } + string maskInvalidMessage; + [Parameter] + string MaskInvalidMessage { + get => isInitialized ? (string)DevExpress.Ui.DxDropDownListInterop.GetMaskInvalidMessage(dxTarget).Result : maskInvalidMessage; + set { + if (isInitialized) { + DevExpress.Ui.DxDropDownListInterop.SetMaskInvalidMessage(dxTarget, value); + } else { + this.maskInvalidMessage = value; + } + } + } + object maskRules; + [Parameter] + object MaskRules { + get => isInitialized ? DevExpress.Ui.DxDropDownListInterop.GetMaskRules(dxTarget).Result : maskRules; + set { + if (isInitialized) { + DevExpress.Ui.DxDropDownListInterop.SetMaskRules(dxTarget, value); + } else { + this.maskRules = value; + } + } + } + string name; + [Parameter] + string Name { + get => isInitialized ? (string)DevExpress.Ui.DxDropDownListInterop.GetName(dxTarget).Result : name; + set { + if (isInitialized) { + DevExpress.Ui.DxDropDownListInterop.SetName(dxTarget, value); + } else { + this.name = value; + } + } + } + string placeholder; + [Parameter] + string Placeholder { + get => isInitialized ? (string)DevExpress.Ui.DxDropDownListInterop.GetPlaceholder(dxTarget).Result : placeholder; + set { + if (isInitialized) { + DevExpress.Ui.DxDropDownListInterop.SetPlaceholder(dxTarget, value); + } else { + this.placeholder = value; + } + } + } + bool? showClearButton; + [Parameter] + bool? ShowClearButton { + get => isInitialized ? (bool?)DevExpress.Ui.DxDropDownListInterop.GetShowClearButton(dxTarget).Result : showClearButton; + set { + if (isInitialized) { + DevExpress.Ui.DxDropDownListInterop.SetShowClearButton(dxTarget, value); + } else { + this.showClearButton = value; + } + } + } + string showMaskMode; + [Parameter] + string ShowMaskMode { + get => isInitialized ? (string)DevExpress.Ui.DxDropDownListInterop.GetShowMaskMode(dxTarget).Result : showMaskMode; + set { + if (isInitialized) { + DevExpress.Ui.DxDropDownListInterop.SetShowMaskMode(dxTarget, value); + } else { + this.showMaskMode = value; + } + } + } + bool? spellcheck; + [Parameter] + bool? Spellcheck { + get => isInitialized ? (bool?)DevExpress.Ui.DxDropDownListInterop.GetSpellcheck(dxTarget).Result : spellcheck; + set { + if (isInitialized) { + DevExpress.Ui.DxDropDownListInterop.SetSpellcheck(dxTarget, value); + } else { + this.spellcheck = value; + } + } + } + string text; + [Parameter] + string Text { + get => isInitialized ? (string)DevExpress.Ui.DxDropDownListInterop.GetText(dxTarget).Result : text; + set { + if (isInitialized) { + DevExpress.Ui.DxDropDownListInterop.SetText(dxTarget, value); + } else { + this.text = value; + } + } + } + bool? useMaskedValue; + [Parameter] + bool? UseMaskedValue { + get => isInitialized ? (bool?)DevExpress.Ui.DxDropDownListInterop.GetUseMaskedValue(dxTarget).Result : useMaskedValue; + set { + if (isInitialized) { + DevExpress.Ui.DxDropDownListInterop.SetUseMaskedValue(dxTarget, value); + } else { + this.useMaskedValue = value; + } + } + } + bool? isValid; + [Parameter] + bool? IsValid { + get => isInitialized ? (bool?)DevExpress.Ui.DxDropDownListInterop.GetIsValid(dxTarget).Result : isValid; + set { + if (isInitialized) { + DevExpress.Ui.DxDropDownListInterop.SetIsValid(dxTarget, value); + } else { + this.isValid = value; + } + } + } + bool? readOnly; + [Parameter] + bool? ReadOnly { + get => isInitialized ? (bool?)DevExpress.Ui.DxDropDownListInterop.GetReadOnly(dxTarget).Result : readOnly; + set { + if (isInitialized) { + DevExpress.Ui.DxDropDownListInterop.SetReadOnly(dxTarget, value); + } else { + this.readOnly = value; + } + } + } + object validationError; + [Parameter] + object ValidationError { + get => isInitialized ? DevExpress.Ui.DxDropDownListInterop.GetValidationError(dxTarget).Result : validationError; + set { + if (isInitialized) { + DevExpress.Ui.DxDropDownListInterop.SetValidationError(dxTarget, value); + } else { + this.validationError = value; + } + } + } + string validationMessageMode; + [Parameter] + string ValidationMessageMode { + get => isInitialized ? (string)DevExpress.Ui.DxDropDownListInterop.GetValidationMessageMode(dxTarget).Result : validationMessageMode; + set { + if (isInitialized) { + DevExpress.Ui.DxDropDownListInterop.SetValidationMessageMode(dxTarget, value); + } else { + this.validationMessageMode = value; + } + } + } + string accessKey; + [Parameter] + string AccessKey { + get => isInitialized ? (string)DevExpress.Ui.DxDropDownListInterop.GetAccessKey(dxTarget).Result : accessKey; + set { + if (isInitialized) { + DevExpress.Ui.DxDropDownListInterop.SetAccessKey(dxTarget, value); + } else { + this.accessKey = value; + } + } + } + bool? disabled; + [Parameter] + bool? Disabled { + get => isInitialized ? (bool?)DevExpress.Ui.DxDropDownListInterop.GetDisabled(dxTarget).Result : disabled; + set { + if (isInitialized) { + DevExpress.Ui.DxDropDownListInterop.SetDisabled(dxTarget, value); + } else { + this.disabled = value; + } + } + } + string hint; + [Parameter] + string Hint { + get => isInitialized ? (string)DevExpress.Ui.DxDropDownListInterop.GetHint(dxTarget).Result : hint; + set { + if (isInitialized) { + DevExpress.Ui.DxDropDownListInterop.SetHint(dxTarget, value); + } else { + this.hint = value; + } + } + } + float? tabIndex; + [Parameter] + float? TabIndex { + get => isInitialized ? (float?)DevExpress.Ui.DxDropDownListInterop.GetTabIndex(dxTarget).Result : tabIndex; + set { + if (isInitialized) { + DevExpress.Ui.DxDropDownListInterop.SetTabIndex(dxTarget, value); + } else { + this.tabIndex = value; + } + } + } + bool? visible; + [Parameter] + bool? Visible { + get => isInitialized ? (bool?)DevExpress.Ui.DxDropDownListInterop.GetVisible(dxTarget).Result : visible; + set { + if (isInitialized) { + DevExpress.Ui.DxDropDownListInterop.SetVisible(dxTarget, value); + } else { + this.visible = value; + } + } + } + object bindingOptions; + [Parameter] + object BindingOptions { + get => isInitialized ? DevExpress.Ui.DxDropDownListInterop.GetBindingOptions(dxTarget).Result : bindingOptions; + set { + if (isInitialized) { + DevExpress.Ui.DxDropDownListInterop.SetBindingOptions(dxTarget, value); + } else { + this.bindingOptions = value; + } + } + } + object elementAttr; + [Parameter] + object ElementAttr { + get => isInitialized ? DevExpress.Ui.DxDropDownListInterop.GetElementAttr(dxTarget).Result : elementAttr; + set { + if (isInitialized) { + DevExpress.Ui.DxDropDownListInterop.SetElementAttr(dxTarget, value); + } else { + this.elementAttr = value; + } + } + } + object height; + [Parameter] + object Height { + get => isInitialized ? DevExpress.Ui.DxDropDownListInterop.GetHeight(dxTarget).Result : height; + set { + if (isInitialized) { + DevExpress.Ui.DxDropDownListInterop.SetHeight(dxTarget, value); + } else { + this.height = value; + } + } + } + bool? rtlEnabled; + [Parameter] + bool? RtlEnabled { + get => isInitialized ? (bool?)DevExpress.Ui.DxDropDownListInterop.GetRtlEnabled(dxTarget).Result : rtlEnabled; + set { + if (isInitialized) { + DevExpress.Ui.DxDropDownListInterop.SetRtlEnabled(dxTarget, value); + } else { + this.rtlEnabled = value; + } + } + } + object width; + [Parameter] + object Width { + get => isInitialized ? DevExpress.Ui.DxDropDownListInterop.GetWidth(dxTarget).Result : width; + set { + if (isInitialized) { + DevExpress.Ui.DxDropDownListInterop.SetWidth(dxTarget, value); + } else { + this.width = value; + } + } + } + object dataSource; + [Parameter] + object DataSource { + get => isInitialized ? DevExpress.Ui.DxDropDownListInterop.GetDataSource(dxTarget).Result : dataSource; + set { + if (isInitialized) { + DevExpress.Ui.DxDropDownListInterop.SetDataSource(dxTarget, value); + } else { + this.dataSource = value; + } + } + } + object displayExpr; + [Parameter] + object DisplayExpr { + get => isInitialized ? DevExpress.Ui.DxDropDownListInterop.GetDisplayExpr(dxTarget).Result : displayExpr; + set { + if (isInitialized) { + DevExpress.Ui.DxDropDownListInterop.SetDisplayExpr(dxTarget, value); + } else { + this.displayExpr = value; + } + } + } + object items; + [Parameter] + object Items { + get => isInitialized ? DevExpress.Ui.DxDropDownListInterop.GetItems(dxTarget).Result : items; + set { + if (isInitialized) { + DevExpress.Ui.DxDropDownListInterop.SetItems(dxTarget, value); + } else { + this.items = value; + } + } + } + object itemTemplate; + [Parameter] + object ItemTemplate { + get => isInitialized ? DevExpress.Ui.DxDropDownListInterop.GetItemTemplate(dxTarget).Result : itemTemplate; + set { + if (isInitialized) { + DevExpress.Ui.DxDropDownListInterop.SetItemTemplate(dxTarget, value); + } else { + this.itemTemplate = value; + } + } + } + object valueExpr; + [Parameter] + object ValueExpr { + get => isInitialized ? DevExpress.Ui.DxDropDownListInterop.GetValueExpr(dxTarget).Result : valueExpr; + set { + if (isInitialized) { + DevExpress.Ui.DxDropDownListInterop.SetValueExpr(dxTarget, value); + } else { + this.valueExpr = value; + } + } + } bool? onItemClickEnabled; [Parameter] bool? OnItemClickEnabled { @@ -205,11 +755,130 @@ return DevExpress.Ui.DxDropDownListInterop.Init(dxTarget, options); get => onValueChangedEnabled; set => this.onValueChangedEnabled = value; } + bool? onClosedEnabled; + [Parameter] + bool? OnClosedEnabled { + get => onClosedEnabled; + set => this.onClosedEnabled = value; + } + bool? onOpenedEnabled; + [Parameter] + bool? OnOpenedEnabled { + get => onOpenedEnabled; + set => this.onOpenedEnabled = value; + } + bool? onChangeEnabled; + [Parameter] + bool? OnChangeEnabled { + get => onChangeEnabled; + set => this.onChangeEnabled = value; + } + bool? onCopyEnabled; + [Parameter] + bool? OnCopyEnabled { + get => onCopyEnabled; + set => this.onCopyEnabled = value; + } + bool? onCutEnabled; + [Parameter] + bool? OnCutEnabled { + get => onCutEnabled; + set => this.onCutEnabled = value; + } + bool? onEnterKeyEnabled; + [Parameter] + bool? OnEnterKeyEnabled { + get => onEnterKeyEnabled; + set => this.onEnterKeyEnabled = value; + } + bool? onFocusInEnabled; + [Parameter] + bool? OnFocusInEnabled { + get => onFocusInEnabled; + set => this.onFocusInEnabled = value; + } + bool? onFocusOutEnabled; + [Parameter] + bool? OnFocusOutEnabled { + get => onFocusOutEnabled; + set => this.onFocusOutEnabled = value; + } + bool? onInputEnabled; + [Parameter] + bool? OnInputEnabled { + get => onInputEnabled; + set => this.onInputEnabled = value; + } + bool? onKeyDownEnabled; + [Parameter] + bool? OnKeyDownEnabled { + get => onKeyDownEnabled; + set => this.onKeyDownEnabled = value; + } + bool? onKeyPressEnabled; + [Parameter] + bool? OnKeyPressEnabled { + get => onKeyPressEnabled; + set => this.onKeyPressEnabled = value; + } + bool? onKeyUpEnabled; + [Parameter] + bool? OnKeyUpEnabled { + get => onKeyUpEnabled; + set => this.onKeyUpEnabled = value; + } + bool? onPasteEnabled; + [Parameter] + bool? OnPasteEnabled { + get => onPasteEnabled; + set => this.onPasteEnabled = value; + } + bool? onContentReadyEnabled; + [Parameter] + bool? OnContentReadyEnabled { + get => onContentReadyEnabled; + set => this.onContentReadyEnabled = value; + } + bool? onDisposingEnabled; + [Parameter] + bool? OnDisposingEnabled { + get => onDisposingEnabled; + set => this.onDisposingEnabled = value; + } + bool? onOptionChangedEnabled; + [Parameter] + bool? OnOptionChangedEnabled { + get => onOptionChangedEnabled; + set => this.onOptionChangedEnabled = value; + } + bool? onInitializedEnabled; + [Parameter] + bool? OnInitializedEnabled { + get => onInitializedEnabled; + set => this.onInitializedEnabled = value; + } protected override async Task OnInitAsync() { await base.OnInitAsync(); DevExpress.Ui.DxDropDownListInterop.ItemClick += DxDropDownList_ItemClick; DevExpress.Ui.DxDropDownListInterop.SelectionChanged += DxDropDownList_SelectionChanged; DevExpress.Ui.DxDropDownListInterop.ValueChanged += DxDropDownList_ValueChanged; + DevExpress.Ui.DxDropDownListInterop.Closed += DxDropDownList_Closed; + DevExpress.Ui.DxDropDownListInterop.Opened += DxDropDownList_Opened; + DevExpress.Ui.DxDropDownListInterop.Change += DxDropDownList_Change; + DevExpress.Ui.DxDropDownListInterop.Copy += DxDropDownList_Copy; + DevExpress.Ui.DxDropDownListInterop.Cut += DxDropDownList_Cut; + DevExpress.Ui.DxDropDownListInterop.EnterKey += DxDropDownList_EnterKey; + DevExpress.Ui.DxDropDownListInterop.FocusIn += DxDropDownList_FocusIn; + DevExpress.Ui.DxDropDownListInterop.FocusOut += DxDropDownList_FocusOut; + DevExpress.Ui.DxDropDownListInterop.Input += DxDropDownList_Input; + DevExpress.Ui.DxDropDownListInterop.KeyDown += DxDropDownList_KeyDown; + DevExpress.Ui.DxDropDownListInterop.KeyPress += DxDropDownList_KeyPress; + DevExpress.Ui.DxDropDownListInterop.KeyUp += DxDropDownList_KeyUp; + DevExpress.Ui.DxDropDownListInterop.Paste += DxDropDownList_Paste; + DevExpress.Ui.DxDropDownListInterop.ContentReady += DxDropDownList_ContentReady; + DevExpress.Ui.DxDropDownListInterop.Disposing += DxDropDownList_Disposing; + DevExpress.Ui.DxDropDownListInterop.OptionChanged += DxDropDownList_OptionChanged; + DevExpress.Ui.DxDropDownListInterop.Initialized += DxDropDownList_Initialized; } [Parameter] Action ItemClick { get; set; } @@ -232,6 +901,125 @@ return DevExpress.Ui.DxDropDownListInterop.Init(dxTarget, options); ValueChanged?.Invoke(); } } + [Parameter] + Action Closed { get; set; } + void DxDropDownList_Closed(object sender, JQueryEventArgs e) { + if (e.Identifier == Id) { + Closed?.Invoke(); + } + } + [Parameter] + Action Opened { get; set; } + void DxDropDownList_Opened(object sender, JQueryEventArgs e) { + if (e.Identifier == Id) { + Opened?.Invoke(); + } + } + [Parameter] + Action Change { get; set; } + void DxDropDownList_Change(object sender, JQueryEventArgs e) { + if (e.Identifier == Id) { + Change?.Invoke(); + } + } + [Parameter] + Action Copy { get; set; } + void DxDropDownList_Copy(object sender, JQueryEventArgs e) { + if (e.Identifier == Id) { + Copy?.Invoke(); + } + } + [Parameter] + Action Cut { get; set; } + void DxDropDownList_Cut(object sender, JQueryEventArgs e) { + if (e.Identifier == Id) { + Cut?.Invoke(); + } + } + [Parameter] + Action EnterKey { get; set; } + void DxDropDownList_EnterKey(object sender, JQueryEventArgs e) { + if (e.Identifier == Id) { + EnterKey?.Invoke(); + } + } + [Parameter] + Action FocusIn { get; set; } + void DxDropDownList_FocusIn(object sender, JQueryEventArgs e) { + if (e.Identifier == Id) { + FocusIn?.Invoke(); + } + } + [Parameter] + Action FocusOut { get; set; } + void DxDropDownList_FocusOut(object sender, JQueryEventArgs e) { + if (e.Identifier == Id) { + FocusOut?.Invoke(); + } + } + [Parameter] + Action Input { get; set; } + void DxDropDownList_Input(object sender, JQueryEventArgs e) { + if (e.Identifier == Id) { + Input?.Invoke(); + } + } + [Parameter] + Action KeyDown { get; set; } + void DxDropDownList_KeyDown(object sender, JQueryEventArgs e) { + if (e.Identifier == Id) { + KeyDown?.Invoke(); + } + } + [Parameter] + Action KeyPress { get; set; } + void DxDropDownList_KeyPress(object sender, JQueryEventArgs e) { + if (e.Identifier == Id) { + KeyPress?.Invoke(); + } + } + [Parameter] + Action KeyUp { get; set; } + void DxDropDownList_KeyUp(object sender, JQueryEventArgs e) { + if (e.Identifier == Id) { + KeyUp?.Invoke(); + } + } + [Parameter] + Action Paste { get; set; } + void DxDropDownList_Paste(object sender, JQueryEventArgs e) { + if (e.Identifier == Id) { + Paste?.Invoke(); + } + } + [Parameter] + Action ContentReady { get; set; } + void DxDropDownList_ContentReady(object sender, JQueryEventArgs e) { + if (e.Identifier == Id) { + ContentReady?.Invoke(); + } + } + [Parameter] + Action Disposing { get; set; } + void DxDropDownList_Disposing(object sender, JQueryEventArgs e) { + if (e.Identifier == Id) { + Disposing?.Invoke(); + } + } + [Parameter] + Action OptionChanged { get; set; } + void DxDropDownList_OptionChanged(object sender, JQueryEventArgs e) { + if (e.Identifier == Id) { + OptionChanged?.Invoke(); + } + } + [Parameter] + Action Initialized { get; set; } + void DxDropDownList_Initialized(object sender, JQueryEventArgs e) { + if (e.Identifier == Id) { + Initialized?.Invoke(); + } + } public object GetDataSourceEx() { return DevExpress.Ui.DxDropDownListInterop.GetDataSourceEx(dxTarget).Result; } @@ -239,5 +1027,22 @@ return DevExpress.Ui.DxDropDownListInterop.Init(dxTarget, options); DevExpress.Ui.DxDropDownListInterop.ItemClick -= DxDropDownList_ItemClick; DevExpress.Ui.DxDropDownListInterop.SelectionChanged -= DxDropDownList_SelectionChanged; DevExpress.Ui.DxDropDownListInterop.ValueChanged -= DxDropDownList_ValueChanged; + DevExpress.Ui.DxDropDownListInterop.Closed -= DxDropDownList_Closed; + DevExpress.Ui.DxDropDownListInterop.Opened -= DxDropDownList_Opened; + DevExpress.Ui.DxDropDownListInterop.Change -= DxDropDownList_Change; + DevExpress.Ui.DxDropDownListInterop.Copy -= DxDropDownList_Copy; + DevExpress.Ui.DxDropDownListInterop.Cut -= DxDropDownList_Cut; + DevExpress.Ui.DxDropDownListInterop.EnterKey -= DxDropDownList_EnterKey; + DevExpress.Ui.DxDropDownListInterop.FocusIn -= DxDropDownList_FocusIn; + DevExpress.Ui.DxDropDownListInterop.FocusOut -= DxDropDownList_FocusOut; + DevExpress.Ui.DxDropDownListInterop.Input -= DxDropDownList_Input; + DevExpress.Ui.DxDropDownListInterop.KeyDown -= DxDropDownList_KeyDown; + DevExpress.Ui.DxDropDownListInterop.KeyPress -= DxDropDownList_KeyPress; + DevExpress.Ui.DxDropDownListInterop.KeyUp -= DxDropDownList_KeyUp; + DevExpress.Ui.DxDropDownListInterop.Paste -= DxDropDownList_Paste; + DevExpress.Ui.DxDropDownListInterop.ContentReady -= DxDropDownList_ContentReady; + DevExpress.Ui.DxDropDownListInterop.Disposing -= DxDropDownList_Disposing; + DevExpress.Ui.DxDropDownListInterop.OptionChanged -= DxDropDownList_OptionChanged; + DevExpress.Ui.DxDropDownListInterop.Initialized -= DxDropDownList_Initialized; } } diff --git a/sources/BlazorDevExtreme/Components/DxDropDownMenu.cshtml b/sources/BlazorDevExtreme/Components/DxDropDownMenu.cshtml index 1950f03..5a37614 100644 --- a/sources/BlazorDevExtreme/Components/DxDropDownMenu.cshtml +++ b/sources/BlazorDevExtreme/Components/DxDropDownMenu.cshtml @@ -21,17 +21,32 @@ popupHeight = popupHeight, popupWidth = popupWidth, usePopover = usePopover, + accessKey = accessKey, + disabled = disabled, + focusStateEnabled = focusStateEnabled, + hint = hint, + tabIndex = tabIndex, + visible = visible, + bindingOptions = bindingOptions, + elementAttr = elementAttr, + height = height, + rtlEnabled = rtlEnabled, + width = width, onButtonClickEnabled = onButtonClickEnabled, onItemClickEnabled = onItemClickEnabled, + onContentReadyEnabled = onContentReadyEnabled, + onDisposingEnabled = onDisposingEnabled, + onOptionChangedEnabled = onOptionChangedEnabled, + onInitializedEnabled = onInitializedEnabled, }; } protected override Task Init(DevExpress.Ui.DxDropDownMenuOptions options) { -return DevExpress.Ui.DxDropDownMenuInterop.Init(dxTarget, options); + return DevExpress.Ui.DxDropDownMenuInterop.Init(dxTarget, options); } bool? activeStateEnabled; [Parameter] bool? ActiveStateEnabled { - get => isInitialized ? DevExpress.Ui.DxDropDownMenuInterop.GetActiveStateEnabled(dxTarget).Result : activeStateEnabled; + get => isInitialized ? (bool?)DevExpress.Ui.DxDropDownMenuInterop.GetActiveStateEnabled(dxTarget).Result : activeStateEnabled; set { if (isInitialized) { DevExpress.Ui.DxDropDownMenuInterop.SetActiveStateEnabled(dxTarget, value); @@ -43,7 +58,7 @@ return DevExpress.Ui.DxDropDownMenuInterop.Init(dxTarget, options); string buttonIcon; [Parameter] string ButtonIcon { - get => isInitialized ? DevExpress.Ui.DxDropDownMenuInterop.GetButtonIcon(dxTarget).Result : buttonIcon; + get => isInitialized ? (string)DevExpress.Ui.DxDropDownMenuInterop.GetButtonIcon(dxTarget).Result : buttonIcon; set { if (isInitialized) { DevExpress.Ui.DxDropDownMenuInterop.SetButtonIcon(dxTarget, value); @@ -55,7 +70,7 @@ return DevExpress.Ui.DxDropDownMenuInterop.Init(dxTarget, options); string buttonText; [Parameter] string ButtonText { - get => isInitialized ? DevExpress.Ui.DxDropDownMenuInterop.GetButtonText(dxTarget).Result : buttonText; + get => isInitialized ? (string)DevExpress.Ui.DxDropDownMenuInterop.GetButtonText(dxTarget).Result : buttonText; set { if (isInitialized) { DevExpress.Ui.DxDropDownMenuInterop.SetButtonText(dxTarget, value); @@ -79,7 +94,7 @@ return DevExpress.Ui.DxDropDownMenuInterop.Init(dxTarget, options); bool? hoverStateEnabled; [Parameter] bool? HoverStateEnabled { - get => isInitialized ? DevExpress.Ui.DxDropDownMenuInterop.GetHoverStateEnabled(dxTarget).Result : hoverStateEnabled; + get => isInitialized ? (bool?)DevExpress.Ui.DxDropDownMenuInterop.GetHoverStateEnabled(dxTarget).Result : hoverStateEnabled; set { if (isInitialized) { DevExpress.Ui.DxDropDownMenuInterop.SetHoverStateEnabled(dxTarget, value); @@ -115,7 +130,7 @@ return DevExpress.Ui.DxDropDownMenuInterop.Init(dxTarget, options); bool? isOpened; [Parameter] bool? IsOpened { - get => isInitialized ? DevExpress.Ui.DxDropDownMenuInterop.GetOpened(dxTarget).Result : isOpened; + get => isInitialized ? (bool?)DevExpress.Ui.DxDropDownMenuInterop.GetOpened(dxTarget).Result : isOpened; set { if (isInitialized) { DevExpress.Ui.DxDropDownMenuInterop.SetOpened(dxTarget, value); @@ -151,7 +166,7 @@ return DevExpress.Ui.DxDropDownMenuInterop.Init(dxTarget, options); bool? usePopover; [Parameter] bool? UsePopover { - get => isInitialized ? DevExpress.Ui.DxDropDownMenuInterop.GetUsePopover(dxTarget).Result : usePopover; + get => isInitialized ? (bool?)DevExpress.Ui.DxDropDownMenuInterop.GetUsePopover(dxTarget).Result : usePopover; set { if (isInitialized) { DevExpress.Ui.DxDropDownMenuInterop.SetUsePopover(dxTarget, value); @@ -160,6 +175,138 @@ return DevExpress.Ui.DxDropDownMenuInterop.Init(dxTarget, options); } } } + string accessKey; + [Parameter] + string AccessKey { + get => isInitialized ? (string)DevExpress.Ui.DxDropDownMenuInterop.GetAccessKey(dxTarget).Result : accessKey; + set { + if (isInitialized) { + DevExpress.Ui.DxDropDownMenuInterop.SetAccessKey(dxTarget, value); + } else { + this.accessKey = value; + } + } + } + bool? disabled; + [Parameter] + bool? Disabled { + get => isInitialized ? (bool?)DevExpress.Ui.DxDropDownMenuInterop.GetDisabled(dxTarget).Result : disabled; + set { + if (isInitialized) { + DevExpress.Ui.DxDropDownMenuInterop.SetDisabled(dxTarget, value); + } else { + this.disabled = value; + } + } + } + bool? focusStateEnabled; + [Parameter] + bool? FocusStateEnabled { + get => isInitialized ? (bool?)DevExpress.Ui.DxDropDownMenuInterop.GetFocusStateEnabled(dxTarget).Result : focusStateEnabled; + set { + if (isInitialized) { + DevExpress.Ui.DxDropDownMenuInterop.SetFocusStateEnabled(dxTarget, value); + } else { + this.focusStateEnabled = value; + } + } + } + string hint; + [Parameter] + string Hint { + get => isInitialized ? (string)DevExpress.Ui.DxDropDownMenuInterop.GetHint(dxTarget).Result : hint; + set { + if (isInitialized) { + DevExpress.Ui.DxDropDownMenuInterop.SetHint(dxTarget, value); + } else { + this.hint = value; + } + } + } + float? tabIndex; + [Parameter] + float? TabIndex { + get => isInitialized ? (float?)DevExpress.Ui.DxDropDownMenuInterop.GetTabIndex(dxTarget).Result : tabIndex; + set { + if (isInitialized) { + DevExpress.Ui.DxDropDownMenuInterop.SetTabIndex(dxTarget, value); + } else { + this.tabIndex = value; + } + } + } + bool? visible; + [Parameter] + bool? Visible { + get => isInitialized ? (bool?)DevExpress.Ui.DxDropDownMenuInterop.GetVisible(dxTarget).Result : visible; + set { + if (isInitialized) { + DevExpress.Ui.DxDropDownMenuInterop.SetVisible(dxTarget, value); + } else { + this.visible = value; + } + } + } + object bindingOptions; + [Parameter] + object BindingOptions { + get => isInitialized ? DevExpress.Ui.DxDropDownMenuInterop.GetBindingOptions(dxTarget).Result : bindingOptions; + set { + if (isInitialized) { + DevExpress.Ui.DxDropDownMenuInterop.SetBindingOptions(dxTarget, value); + } else { + this.bindingOptions = value; + } + } + } + object elementAttr; + [Parameter] + object ElementAttr { + get => isInitialized ? DevExpress.Ui.DxDropDownMenuInterop.GetElementAttr(dxTarget).Result : elementAttr; + set { + if (isInitialized) { + DevExpress.Ui.DxDropDownMenuInterop.SetElementAttr(dxTarget, value); + } else { + this.elementAttr = value; + } + } + } + object height; + [Parameter] + object Height { + get => isInitialized ? DevExpress.Ui.DxDropDownMenuInterop.GetHeight(dxTarget).Result : height; + set { + if (isInitialized) { + DevExpress.Ui.DxDropDownMenuInterop.SetHeight(dxTarget, value); + } else { + this.height = value; + } + } + } + bool? rtlEnabled; + [Parameter] + bool? RtlEnabled { + get => isInitialized ? (bool?)DevExpress.Ui.DxDropDownMenuInterop.GetRtlEnabled(dxTarget).Result : rtlEnabled; + set { + if (isInitialized) { + DevExpress.Ui.DxDropDownMenuInterop.SetRtlEnabled(dxTarget, value); + } else { + this.rtlEnabled = value; + } + } + } + object width; + [Parameter] + object Width { + get => isInitialized ? DevExpress.Ui.DxDropDownMenuInterop.GetWidth(dxTarget).Result : width; + set { + if (isInitialized) { + DevExpress.Ui.DxDropDownMenuInterop.SetWidth(dxTarget, value); + } else { + this.width = value; + } + } + } bool? onButtonClickEnabled; [Parameter] bool? OnButtonClickEnabled { @@ -172,10 +319,38 @@ return DevExpress.Ui.DxDropDownMenuInterop.Init(dxTarget, options); get => onItemClickEnabled; set => this.onItemClickEnabled = value; } + bool? onContentReadyEnabled; + [Parameter] + bool? OnContentReadyEnabled { + get => onContentReadyEnabled; + set => this.onContentReadyEnabled = value; + } + bool? onDisposingEnabled; + [Parameter] + bool? OnDisposingEnabled { + get => onDisposingEnabled; + set => this.onDisposingEnabled = value; + } + bool? onOptionChangedEnabled; + [Parameter] + bool? OnOptionChangedEnabled { + get => onOptionChangedEnabled; + set => this.onOptionChangedEnabled = value; + } + bool? onInitializedEnabled; + [Parameter] + bool? OnInitializedEnabled { + get => onInitializedEnabled; + set => this.onInitializedEnabled = value; + } protected override async Task OnInitAsync() { await base.OnInitAsync(); DevExpress.Ui.DxDropDownMenuInterop.ButtonClick += DxDropDownMenu_ButtonClick; DevExpress.Ui.DxDropDownMenuInterop.ItemClick += DxDropDownMenu_ItemClick; + DevExpress.Ui.DxDropDownMenuInterop.ContentReady += DxDropDownMenu_ContentReady; + DevExpress.Ui.DxDropDownMenuInterop.Disposing += DxDropDownMenu_Disposing; + DevExpress.Ui.DxDropDownMenuInterop.OptionChanged += DxDropDownMenu_OptionChanged; + DevExpress.Ui.DxDropDownMenuInterop.Initialized += DxDropDownMenu_Initialized; } [Parameter] Action ButtonClick { get; set; } @@ -191,6 +366,34 @@ return DevExpress.Ui.DxDropDownMenuInterop.Init(dxTarget, options); ItemClick?.Invoke(); } } + [Parameter] + Action ContentReady { get; set; } + void DxDropDownMenu_ContentReady(object sender, JQueryEventArgs e) { + if (e.Identifier == Id) { + ContentReady?.Invoke(); + } + } + [Parameter] + Action Disposing { get; set; } + void DxDropDownMenu_Disposing(object sender, JQueryEventArgs e) { + if (e.Identifier == Id) { + Disposing?.Invoke(); + } + } + [Parameter] + Action OptionChanged { get; set; } + void DxDropDownMenu_OptionChanged(object sender, JQueryEventArgs e) { + if (e.Identifier == Id) { + OptionChanged?.Invoke(); + } + } + [Parameter] + Action Initialized { get; set; } + void DxDropDownMenu_Initialized(object sender, JQueryEventArgs e) { + if (e.Identifier == Id) { + Initialized?.Invoke(); + } + } public void Close() { DevExpress.Ui.DxDropDownMenuInterop.Close(dxTarget); } @@ -200,5 +403,9 @@ return DevExpress.Ui.DxDropDownMenuInterop.Init(dxTarget, options); public void Dispose() { DevExpress.Ui.DxDropDownMenuInterop.ButtonClick -= DxDropDownMenu_ButtonClick; DevExpress.Ui.DxDropDownMenuInterop.ItemClick -= DxDropDownMenu_ItemClick; + DevExpress.Ui.DxDropDownMenuInterop.ContentReady -= DxDropDownMenu_ContentReady; + DevExpress.Ui.DxDropDownMenuInterop.Disposing -= DxDropDownMenu_Disposing; + DevExpress.Ui.DxDropDownMenuInterop.OptionChanged -= DxDropDownMenu_OptionChanged; + DevExpress.Ui.DxDropDownMenuInterop.Initialized -= DxDropDownMenu_Initialized; } } diff --git a/sources/BlazorDevExtreme/Components/DxFileUploader.cshtml b/sources/BlazorDevExtreme/Components/DxFileUploader.cshtml index 8e94b5b..ab651c7 100644 --- a/sources/BlazorDevExtreme/Components/DxFileUploader.cshtml +++ b/sources/BlazorDevExtreme/Components/DxFileUploader.cshtml @@ -28,21 +28,41 @@ uploadMode = uploadMode, uploadUrl = uploadUrl, value = value, + isValid = isValid, + readOnly = readOnly, + validationError = validationError, + validationMessageMode = validationMessageMode, + accessKey = accessKey, + activeStateEnabled = activeStateEnabled, + disabled = disabled, + hint = hint, + hoverStateEnabled = hoverStateEnabled, + tabIndex = tabIndex, + visible = visible, + bindingOptions = bindingOptions, + elementAttr = elementAttr, + height = height, + rtlEnabled = rtlEnabled, + width = width, onProgressEnabled = onProgressEnabled, onUploadAbortedEnabled = onUploadAbortedEnabled, onUploadedEnabled = onUploadedEnabled, onUploadErrorEnabled = onUploadErrorEnabled, onUploadStartedEnabled = onUploadStartedEnabled, onValueChangedEnabled = onValueChangedEnabled, + onContentReadyEnabled = onContentReadyEnabled, + onDisposingEnabled = onDisposingEnabled, + onOptionChangedEnabled = onOptionChangedEnabled, + onInitializedEnabled = onInitializedEnabled, }; } protected override Task Init(DevExpress.Ui.DxFileUploaderOptions options) { -return DevExpress.Ui.DxFileUploaderInterop.Init(dxTarget, options); + return DevExpress.Ui.DxFileUploaderInterop.Init(dxTarget, options); } string accept; [Parameter] string Accept { - get => isInitialized ? DevExpress.Ui.DxFileUploaderInterop.GetAccept(dxTarget).Result : accept; + get => isInitialized ? (string)DevExpress.Ui.DxFileUploaderInterop.GetAccept(dxTarget).Result : accept; set { if (isInitialized) { DevExpress.Ui.DxFileUploaderInterop.SetAccept(dxTarget, value); @@ -54,7 +74,7 @@ return DevExpress.Ui.DxFileUploaderInterop.Init(dxTarget, options); bool? allowCanceling; [Parameter] bool? AllowCanceling { - get => isInitialized ? DevExpress.Ui.DxFileUploaderInterop.GetAllowCanceling(dxTarget).Result : allowCanceling; + get => isInitialized ? (bool?)DevExpress.Ui.DxFileUploaderInterop.GetAllowCanceling(dxTarget).Result : allowCanceling; set { if (isInitialized) { DevExpress.Ui.DxFileUploaderInterop.SetAllowCanceling(dxTarget, value); @@ -66,7 +86,7 @@ return DevExpress.Ui.DxFileUploaderInterop.Init(dxTarget, options); bool? focusStateEnabled; [Parameter] bool? FocusStateEnabled { - get => isInitialized ? DevExpress.Ui.DxFileUploaderInterop.GetFocusStateEnabled(dxTarget).Result : focusStateEnabled; + get => isInitialized ? (bool?)DevExpress.Ui.DxFileUploaderInterop.GetFocusStateEnabled(dxTarget).Result : focusStateEnabled; set { if (isInitialized) { DevExpress.Ui.DxFileUploaderInterop.SetFocusStateEnabled(dxTarget, value); @@ -78,7 +98,7 @@ return DevExpress.Ui.DxFileUploaderInterop.Init(dxTarget, options); string labelText; [Parameter] string LabelText { - get => isInitialized ? DevExpress.Ui.DxFileUploaderInterop.GetLabelText(dxTarget).Result : labelText; + get => isInitialized ? (string)DevExpress.Ui.DxFileUploaderInterop.GetLabelText(dxTarget).Result : labelText; set { if (isInitialized) { DevExpress.Ui.DxFileUploaderInterop.SetLabelText(dxTarget, value); @@ -90,7 +110,7 @@ return DevExpress.Ui.DxFileUploaderInterop.Init(dxTarget, options); bool? multiple; [Parameter] bool? Multiple { - get => isInitialized ? DevExpress.Ui.DxFileUploaderInterop.GetMultiple(dxTarget).Result : multiple; + get => isInitialized ? (bool?)DevExpress.Ui.DxFileUploaderInterop.GetMultiple(dxTarget).Result : multiple; set { if (isInitialized) { DevExpress.Ui.DxFileUploaderInterop.SetMultiple(dxTarget, value); @@ -102,7 +122,7 @@ return DevExpress.Ui.DxFileUploaderInterop.Init(dxTarget, options); string name; [Parameter] string Name { - get => isInitialized ? DevExpress.Ui.DxFileUploaderInterop.GetName(dxTarget).Result : name; + get => isInitialized ? (string)DevExpress.Ui.DxFileUploaderInterop.GetName(dxTarget).Result : name; set { if (isInitialized) { DevExpress.Ui.DxFileUploaderInterop.SetName(dxTarget, value); @@ -114,7 +134,7 @@ return DevExpress.Ui.DxFileUploaderInterop.Init(dxTarget, options); float? progressValue; [Parameter] float? ProgressValue { - get => isInitialized ? DevExpress.Ui.DxFileUploaderInterop.GetProgress(dxTarget).Result : progressValue; + get => isInitialized ? (float?)DevExpress.Ui.DxFileUploaderInterop.GetProgress(dxTarget).Result : progressValue; set { if (isInitialized) { DevExpress.Ui.DxFileUploaderInterop.SetProgress(dxTarget, value); @@ -126,7 +146,7 @@ return DevExpress.Ui.DxFileUploaderInterop.Init(dxTarget, options); string readyToUploadMessage; [Parameter] string ReadyToUploadMessage { - get => isInitialized ? DevExpress.Ui.DxFileUploaderInterop.GetReadyToUploadMessage(dxTarget).Result : readyToUploadMessage; + get => isInitialized ? (string)DevExpress.Ui.DxFileUploaderInterop.GetReadyToUploadMessage(dxTarget).Result : readyToUploadMessage; set { if (isInitialized) { DevExpress.Ui.DxFileUploaderInterop.SetReadyToUploadMessage(dxTarget, value); @@ -138,7 +158,7 @@ return DevExpress.Ui.DxFileUploaderInterop.Init(dxTarget, options); string selectButtonText; [Parameter] string SelectButtonText { - get => isInitialized ? DevExpress.Ui.DxFileUploaderInterop.GetSelectButtonText(dxTarget).Result : selectButtonText; + get => isInitialized ? (string)DevExpress.Ui.DxFileUploaderInterop.GetSelectButtonText(dxTarget).Result : selectButtonText; set { if (isInitialized) { DevExpress.Ui.DxFileUploaderInterop.SetSelectButtonText(dxTarget, value); @@ -150,7 +170,7 @@ return DevExpress.Ui.DxFileUploaderInterop.Init(dxTarget, options); bool? showFileList; [Parameter] bool? ShowFileList { - get => isInitialized ? DevExpress.Ui.DxFileUploaderInterop.GetShowFileList(dxTarget).Result : showFileList; + get => isInitialized ? (bool?)DevExpress.Ui.DxFileUploaderInterop.GetShowFileList(dxTarget).Result : showFileList; set { if (isInitialized) { DevExpress.Ui.DxFileUploaderInterop.SetShowFileList(dxTarget, value); @@ -162,7 +182,7 @@ return DevExpress.Ui.DxFileUploaderInterop.Init(dxTarget, options); string uploadButtonText; [Parameter] string UploadButtonText { - get => isInitialized ? DevExpress.Ui.DxFileUploaderInterop.GetUploadButtonText(dxTarget).Result : uploadButtonText; + get => isInitialized ? (string)DevExpress.Ui.DxFileUploaderInterop.GetUploadButtonText(dxTarget).Result : uploadButtonText; set { if (isInitialized) { DevExpress.Ui.DxFileUploaderInterop.SetUploadButtonText(dxTarget, value); @@ -174,7 +194,7 @@ return DevExpress.Ui.DxFileUploaderInterop.Init(dxTarget, options); string uploadedMessage; [Parameter] string UploadedMessage { - get => isInitialized ? DevExpress.Ui.DxFileUploaderInterop.GetUploadedMessage(dxTarget).Result : uploadedMessage; + get => isInitialized ? (string)DevExpress.Ui.DxFileUploaderInterop.GetUploadedMessage(dxTarget).Result : uploadedMessage; set { if (isInitialized) { DevExpress.Ui.DxFileUploaderInterop.SetUploadedMessage(dxTarget, value); @@ -186,7 +206,7 @@ return DevExpress.Ui.DxFileUploaderInterop.Init(dxTarget, options); string uploadFailedMessage; [Parameter] string UploadFailedMessage { - get => isInitialized ? DevExpress.Ui.DxFileUploaderInterop.GetUploadFailedMessage(dxTarget).Result : uploadFailedMessage; + get => isInitialized ? (string)DevExpress.Ui.DxFileUploaderInterop.GetUploadFailedMessage(dxTarget).Result : uploadFailedMessage; set { if (isInitialized) { DevExpress.Ui.DxFileUploaderInterop.SetUploadFailedMessage(dxTarget, value); @@ -210,7 +230,7 @@ return DevExpress.Ui.DxFileUploaderInterop.Init(dxTarget, options); string uploadMethod; [Parameter] string UploadMethod { - get => isInitialized ? DevExpress.Ui.DxFileUploaderInterop.GetUploadMethod(dxTarget).Result : uploadMethod; + get => isInitialized ? (string)DevExpress.Ui.DxFileUploaderInterop.GetUploadMethod(dxTarget).Result : uploadMethod; set { if (isInitialized) { DevExpress.Ui.DxFileUploaderInterop.SetUploadMethod(dxTarget, value); @@ -222,7 +242,7 @@ return DevExpress.Ui.DxFileUploaderInterop.Init(dxTarget, options); string uploadMode; [Parameter] string UploadMode { - get => isInitialized ? DevExpress.Ui.DxFileUploaderInterop.GetUploadMode(dxTarget).Result : uploadMode; + get => isInitialized ? (string)DevExpress.Ui.DxFileUploaderInterop.GetUploadMode(dxTarget).Result : uploadMode; set { if (isInitialized) { DevExpress.Ui.DxFileUploaderInterop.SetUploadMode(dxTarget, value); @@ -234,7 +254,7 @@ return DevExpress.Ui.DxFileUploaderInterop.Init(dxTarget, options); string uploadUrl; [Parameter] string UploadUrl { - get => isInitialized ? DevExpress.Ui.DxFileUploaderInterop.GetUploadUrl(dxTarget).Result : uploadUrl; + get => isInitialized ? (string)DevExpress.Ui.DxFileUploaderInterop.GetUploadUrl(dxTarget).Result : uploadUrl; set { if (isInitialized) { DevExpress.Ui.DxFileUploaderInterop.SetUploadUrl(dxTarget, value); @@ -255,6 +275,198 @@ return DevExpress.Ui.DxFileUploaderInterop.Init(dxTarget, options); } } } + bool? isValid; + [Parameter] + bool? IsValid { + get => isInitialized ? (bool?)DevExpress.Ui.DxFileUploaderInterop.GetIsValid(dxTarget).Result : isValid; + set { + if (isInitialized) { + DevExpress.Ui.DxFileUploaderInterop.SetIsValid(dxTarget, value); + } else { + this.isValid = value; + } + } + } + bool? readOnly; + [Parameter] + bool? ReadOnly { + get => isInitialized ? (bool?)DevExpress.Ui.DxFileUploaderInterop.GetReadOnly(dxTarget).Result : readOnly; + set { + if (isInitialized) { + DevExpress.Ui.DxFileUploaderInterop.SetReadOnly(dxTarget, value); + } else { + this.readOnly = value; + } + } + } + object validationError; + [Parameter] + object ValidationError { + get => isInitialized ? DevExpress.Ui.DxFileUploaderInterop.GetValidationError(dxTarget).Result : validationError; + set { + if (isInitialized) { + DevExpress.Ui.DxFileUploaderInterop.SetValidationError(dxTarget, value); + } else { + this.validationError = value; + } + } + } + string validationMessageMode; + [Parameter] + string ValidationMessageMode { + get => isInitialized ? (string)DevExpress.Ui.DxFileUploaderInterop.GetValidationMessageMode(dxTarget).Result : validationMessageMode; + set { + if (isInitialized) { + DevExpress.Ui.DxFileUploaderInterop.SetValidationMessageMode(dxTarget, value); + } else { + this.validationMessageMode = value; + } + } + } + string accessKey; + [Parameter] + string AccessKey { + get => isInitialized ? (string)DevExpress.Ui.DxFileUploaderInterop.GetAccessKey(dxTarget).Result : accessKey; + set { + if (isInitialized) { + DevExpress.Ui.DxFileUploaderInterop.SetAccessKey(dxTarget, value); + } else { + this.accessKey = value; + } + } + } + bool? activeStateEnabled; + [Parameter] + bool? ActiveStateEnabled { + get => isInitialized ? (bool?)DevExpress.Ui.DxFileUploaderInterop.GetActiveStateEnabled(dxTarget).Result : activeStateEnabled; + set { + if (isInitialized) { + DevExpress.Ui.DxFileUploaderInterop.SetActiveStateEnabled(dxTarget, value); + } else { + this.activeStateEnabled = value; + } + } + } + bool? disabled; + [Parameter] + bool? Disabled { + get => isInitialized ? (bool?)DevExpress.Ui.DxFileUploaderInterop.GetDisabled(dxTarget).Result : disabled; + set { + if (isInitialized) { + DevExpress.Ui.DxFileUploaderInterop.SetDisabled(dxTarget, value); + } else { + this.disabled = value; + } + } + } + string hint; + [Parameter] + string Hint { + get => isInitialized ? (string)DevExpress.Ui.DxFileUploaderInterop.GetHint(dxTarget).Result : hint; + set { + if (isInitialized) { + DevExpress.Ui.DxFileUploaderInterop.SetHint(dxTarget, value); + } else { + this.hint = value; + } + } + } + bool? hoverStateEnabled; + [Parameter] + bool? HoverStateEnabled { + get => isInitialized ? (bool?)DevExpress.Ui.DxFileUploaderInterop.GetHoverStateEnabled(dxTarget).Result : hoverStateEnabled; + set { + if (isInitialized) { + DevExpress.Ui.DxFileUploaderInterop.SetHoverStateEnabled(dxTarget, value); + } else { + this.hoverStateEnabled = value; + } + } + } + float? tabIndex; + [Parameter] + float? TabIndex { + get => isInitialized ? (float?)DevExpress.Ui.DxFileUploaderInterop.GetTabIndex(dxTarget).Result : tabIndex; + set { + if (isInitialized) { + DevExpress.Ui.DxFileUploaderInterop.SetTabIndex(dxTarget, value); + } else { + this.tabIndex = value; + } + } + } + bool? visible; + [Parameter] + bool? Visible { + get => isInitialized ? (bool?)DevExpress.Ui.DxFileUploaderInterop.GetVisible(dxTarget).Result : visible; + set { + if (isInitialized) { + DevExpress.Ui.DxFileUploaderInterop.SetVisible(dxTarget, value); + } else { + this.visible = value; + } + } + } + object bindingOptions; + [Parameter] + object BindingOptions { + get => isInitialized ? DevExpress.Ui.DxFileUploaderInterop.GetBindingOptions(dxTarget).Result : bindingOptions; + set { + if (isInitialized) { + DevExpress.Ui.DxFileUploaderInterop.SetBindingOptions(dxTarget, value); + } else { + this.bindingOptions = value; + } + } + } + object elementAttr; + [Parameter] + object ElementAttr { + get => isInitialized ? DevExpress.Ui.DxFileUploaderInterop.GetElementAttr(dxTarget).Result : elementAttr; + set { + if (isInitialized) { + DevExpress.Ui.DxFileUploaderInterop.SetElementAttr(dxTarget, value); + } else { + this.elementAttr = value; + } + } + } + object height; + [Parameter] + object Height { + get => isInitialized ? DevExpress.Ui.DxFileUploaderInterop.GetHeight(dxTarget).Result : height; + set { + if (isInitialized) { + DevExpress.Ui.DxFileUploaderInterop.SetHeight(dxTarget, value); + } else { + this.height = value; + } + } + } + bool? rtlEnabled; + [Parameter] + bool? RtlEnabled { + get => isInitialized ? (bool?)DevExpress.Ui.DxFileUploaderInterop.GetRtlEnabled(dxTarget).Result : rtlEnabled; + set { + if (isInitialized) { + DevExpress.Ui.DxFileUploaderInterop.SetRtlEnabled(dxTarget, value); + } else { + this.rtlEnabled = value; + } + } + } + object width; + [Parameter] + object Width { + get => isInitialized ? DevExpress.Ui.DxFileUploaderInterop.GetWidth(dxTarget).Result : width; + set { + if (isInitialized) { + DevExpress.Ui.DxFileUploaderInterop.SetWidth(dxTarget, value); + } else { + this.width = value; + } + } + } bool? onProgressEnabled; [Parameter] bool? OnProgressEnabled { @@ -291,6 +503,30 @@ return DevExpress.Ui.DxFileUploaderInterop.Init(dxTarget, options); get => onValueChangedEnabled; set => this.onValueChangedEnabled = value; } + bool? onContentReadyEnabled; + [Parameter] + bool? OnContentReadyEnabled { + get => onContentReadyEnabled; + set => this.onContentReadyEnabled = value; + } + bool? onDisposingEnabled; + [Parameter] + bool? OnDisposingEnabled { + get => onDisposingEnabled; + set => this.onDisposingEnabled = value; + } + bool? onOptionChangedEnabled; + [Parameter] + bool? OnOptionChangedEnabled { + get => onOptionChangedEnabled; + set => this.onOptionChangedEnabled = value; + } + bool? onInitializedEnabled; + [Parameter] + bool? OnInitializedEnabled { + get => onInitializedEnabled; + set => this.onInitializedEnabled = value; + } protected override async Task OnInitAsync() { await base.OnInitAsync(); DevExpress.Ui.DxFileUploaderInterop.Progress += DxFileUploader_Progress; @@ -299,6 +535,10 @@ return DevExpress.Ui.DxFileUploaderInterop.Init(dxTarget, options); DevExpress.Ui.DxFileUploaderInterop.UploadError += DxFileUploader_UploadError; DevExpress.Ui.DxFileUploaderInterop.UploadStarted += DxFileUploader_UploadStarted; DevExpress.Ui.DxFileUploaderInterop.ValueChanged += DxFileUploader_ValueChanged; + DevExpress.Ui.DxFileUploaderInterop.ContentReady += DxFileUploader_ContentReady; + DevExpress.Ui.DxFileUploaderInterop.Disposing += DxFileUploader_Disposing; + DevExpress.Ui.DxFileUploaderInterop.OptionChanged += DxFileUploader_OptionChanged; + DevExpress.Ui.DxFileUploaderInterop.Initialized += DxFileUploader_Initialized; } [Parameter] Action Progress { get; set; } @@ -342,6 +582,34 @@ return DevExpress.Ui.DxFileUploaderInterop.Init(dxTarget, options); ValueChanged?.Invoke(); } } + [Parameter] + Action ContentReady { get; set; } + void DxFileUploader_ContentReady(object sender, JQueryEventArgs e) { + if (e.Identifier == Id) { + ContentReady?.Invoke(); + } + } + [Parameter] + Action Disposing { get; set; } + void DxFileUploader_Disposing(object sender, JQueryEventArgs e) { + if (e.Identifier == Id) { + Disposing?.Invoke(); + } + } + [Parameter] + Action OptionChanged { get; set; } + void DxFileUploader_OptionChanged(object sender, JQueryEventArgs e) { + if (e.Identifier == Id) { + OptionChanged?.Invoke(); + } + } + [Parameter] + Action Initialized { get; set; } + void DxFileUploader_Initialized(object sender, JQueryEventArgs e) { + if (e.Identifier == Id) { + Initialized?.Invoke(); + } + } public void Dispose() { DevExpress.Ui.DxFileUploaderInterop.Progress -= DxFileUploader_Progress; DevExpress.Ui.DxFileUploaderInterop.UploadAborted -= DxFileUploader_UploadAborted; @@ -349,5 +617,9 @@ return DevExpress.Ui.DxFileUploaderInterop.Init(dxTarget, options); DevExpress.Ui.DxFileUploaderInterop.UploadError -= DxFileUploader_UploadError; DevExpress.Ui.DxFileUploaderInterop.UploadStarted -= DxFileUploader_UploadStarted; DevExpress.Ui.DxFileUploaderInterop.ValueChanged -= DxFileUploader_ValueChanged; + DevExpress.Ui.DxFileUploaderInterop.ContentReady -= DxFileUploader_ContentReady; + DevExpress.Ui.DxFileUploaderInterop.Disposing -= DxFileUploader_Disposing; + DevExpress.Ui.DxFileUploaderInterop.OptionChanged -= DxFileUploader_OptionChanged; + DevExpress.Ui.DxFileUploaderInterop.Initialized -= DxFileUploader_Initialized; } } diff --git a/sources/BlazorDevExtreme/Components/DxFilterBuilder.cshtml b/sources/BlazorDevExtreme/Components/DxFilterBuilder.cshtml index 3ad8335..a977571 100644 --- a/sources/BlazorDevExtreme/Components/DxFilterBuilder.cshtml +++ b/sources/BlazorDevExtreme/Components/DxFilterBuilder.cshtml @@ -16,18 +16,35 @@ filterOperationDescriptions = filterOperationDescriptions, groupOperationDescriptions = groupOperationDescriptions, value = value, + accessKey = accessKey, + activeStateEnabled = activeStateEnabled, + disabled = disabled, + focusStateEnabled = focusStateEnabled, + hint = hint, + hoverStateEnabled = hoverStateEnabled, + tabIndex = tabIndex, + visible = visible, + bindingOptions = bindingOptions, + elementAttr = elementAttr, + height = height, + rtlEnabled = rtlEnabled, + width = width, onEditorPreparedEnabled = onEditorPreparedEnabled, onEditorPreparingEnabled = onEditorPreparingEnabled, onValueChangedEnabled = onValueChangedEnabled, + onContentReadyEnabled = onContentReadyEnabled, + onDisposingEnabled = onDisposingEnabled, + onOptionChangedEnabled = onOptionChangedEnabled, + onInitializedEnabled = onInitializedEnabled, }; } protected override Task Init(DevExpress.Ui.DxFilterBuilderOptions options) { -return DevExpress.Ui.DxFilterBuilderInterop.Init(dxTarget, options); + return DevExpress.Ui.DxFilterBuilderInterop.Init(dxTarget, options); } bool? allowHierarchicalFields; [Parameter] bool? AllowHierarchicalFields { - get => isInitialized ? DevExpress.Ui.DxFilterBuilderInterop.GetAllowHierarchicalFields(dxTarget).Result : allowHierarchicalFields; + get => isInitialized ? (bool?)DevExpress.Ui.DxFilterBuilderInterop.GetAllowHierarchicalFields(dxTarget).Result : allowHierarchicalFields; set { if (isInitialized) { DevExpress.Ui.DxFilterBuilderInterop.SetAllowHierarchicalFields(dxTarget, value); @@ -96,6 +113,162 @@ return DevExpress.Ui.DxFilterBuilderInterop.Init(dxTarget, options); } } } + string accessKey; + [Parameter] + string AccessKey { + get => isInitialized ? (string)DevExpress.Ui.DxFilterBuilderInterop.GetAccessKey(dxTarget).Result : accessKey; + set { + if (isInitialized) { + DevExpress.Ui.DxFilterBuilderInterop.SetAccessKey(dxTarget, value); + } else { + this.accessKey = value; + } + } + } + bool? activeStateEnabled; + [Parameter] + bool? ActiveStateEnabled { + get => isInitialized ? (bool?)DevExpress.Ui.DxFilterBuilderInterop.GetActiveStateEnabled(dxTarget).Result : activeStateEnabled; + set { + if (isInitialized) { + DevExpress.Ui.DxFilterBuilderInterop.SetActiveStateEnabled(dxTarget, value); + } else { + this.activeStateEnabled = value; + } + } + } + bool? disabled; + [Parameter] + bool? Disabled { + get => isInitialized ? (bool?)DevExpress.Ui.DxFilterBuilderInterop.GetDisabled(dxTarget).Result : disabled; + set { + if (isInitialized) { + DevExpress.Ui.DxFilterBuilderInterop.SetDisabled(dxTarget, value); + } else { + this.disabled = value; + } + } + } + bool? focusStateEnabled; + [Parameter] + bool? FocusStateEnabled { + get => isInitialized ? (bool?)DevExpress.Ui.DxFilterBuilderInterop.GetFocusStateEnabled(dxTarget).Result : focusStateEnabled; + set { + if (isInitialized) { + DevExpress.Ui.DxFilterBuilderInterop.SetFocusStateEnabled(dxTarget, value); + } else { + this.focusStateEnabled = value; + } + } + } + string hint; + [Parameter] + string Hint { + get => isInitialized ? (string)DevExpress.Ui.DxFilterBuilderInterop.GetHint(dxTarget).Result : hint; + set { + if (isInitialized) { + DevExpress.Ui.DxFilterBuilderInterop.SetHint(dxTarget, value); + } else { + this.hint = value; + } + } + } + bool? hoverStateEnabled; + [Parameter] + bool? HoverStateEnabled { + get => isInitialized ? (bool?)DevExpress.Ui.DxFilterBuilderInterop.GetHoverStateEnabled(dxTarget).Result : hoverStateEnabled; + set { + if (isInitialized) { + DevExpress.Ui.DxFilterBuilderInterop.SetHoverStateEnabled(dxTarget, value); + } else { + this.hoverStateEnabled = value; + } + } + } + float? tabIndex; + [Parameter] + float? TabIndex { + get => isInitialized ? (float?)DevExpress.Ui.DxFilterBuilderInterop.GetTabIndex(dxTarget).Result : tabIndex; + set { + if (isInitialized) { + DevExpress.Ui.DxFilterBuilderInterop.SetTabIndex(dxTarget, value); + } else { + this.tabIndex = value; + } + } + } + bool? visible; + [Parameter] + bool? Visible { + get => isInitialized ? (bool?)DevExpress.Ui.DxFilterBuilderInterop.GetVisible(dxTarget).Result : visible; + set { + if (isInitialized) { + DevExpress.Ui.DxFilterBuilderInterop.SetVisible(dxTarget, value); + } else { + this.visible = value; + } + } + } + object bindingOptions; + [Parameter] + object BindingOptions { + get => isInitialized ? DevExpress.Ui.DxFilterBuilderInterop.GetBindingOptions(dxTarget).Result : bindingOptions; + set { + if (isInitialized) { + DevExpress.Ui.DxFilterBuilderInterop.SetBindingOptions(dxTarget, value); + } else { + this.bindingOptions = value; + } + } + } + object elementAttr; + [Parameter] + object ElementAttr { + get => isInitialized ? DevExpress.Ui.DxFilterBuilderInterop.GetElementAttr(dxTarget).Result : elementAttr; + set { + if (isInitialized) { + DevExpress.Ui.DxFilterBuilderInterop.SetElementAttr(dxTarget, value); + } else { + this.elementAttr = value; + } + } + } + object height; + [Parameter] + object Height { + get => isInitialized ? DevExpress.Ui.DxFilterBuilderInterop.GetHeight(dxTarget).Result : height; + set { + if (isInitialized) { + DevExpress.Ui.DxFilterBuilderInterop.SetHeight(dxTarget, value); + } else { + this.height = value; + } + } + } + bool? rtlEnabled; + [Parameter] + bool? RtlEnabled { + get => isInitialized ? (bool?)DevExpress.Ui.DxFilterBuilderInterop.GetRtlEnabled(dxTarget).Result : rtlEnabled; + set { + if (isInitialized) { + DevExpress.Ui.DxFilterBuilderInterop.SetRtlEnabled(dxTarget, value); + } else { + this.rtlEnabled = value; + } + } + } + object width; + [Parameter] + object Width { + get => isInitialized ? DevExpress.Ui.DxFilterBuilderInterop.GetWidth(dxTarget).Result : width; + set { + if (isInitialized) { + DevExpress.Ui.DxFilterBuilderInterop.SetWidth(dxTarget, value); + } else { + this.width = value; + } + } + } bool? onEditorPreparedEnabled; [Parameter] bool? OnEditorPreparedEnabled { @@ -114,11 +287,39 @@ return DevExpress.Ui.DxFilterBuilderInterop.Init(dxTarget, options); get => onValueChangedEnabled; set => this.onValueChangedEnabled = value; } + bool? onContentReadyEnabled; + [Parameter] + bool? OnContentReadyEnabled { + get => onContentReadyEnabled; + set => this.onContentReadyEnabled = value; + } + bool? onDisposingEnabled; + [Parameter] + bool? OnDisposingEnabled { + get => onDisposingEnabled; + set => this.onDisposingEnabled = value; + } + bool? onOptionChangedEnabled; + [Parameter] + bool? OnOptionChangedEnabled { + get => onOptionChangedEnabled; + set => this.onOptionChangedEnabled = value; + } + bool? onInitializedEnabled; + [Parameter] + bool? OnInitializedEnabled { + get => onInitializedEnabled; + set => this.onInitializedEnabled = value; + } protected override async Task OnInitAsync() { await base.OnInitAsync(); DevExpress.Ui.DxFilterBuilderInterop.EditorPrepared += DxFilterBuilder_EditorPrepared; DevExpress.Ui.DxFilterBuilderInterop.EditorPreparing += DxFilterBuilder_EditorPreparing; DevExpress.Ui.DxFilterBuilderInterop.ValueChanged += DxFilterBuilder_ValueChanged; + DevExpress.Ui.DxFilterBuilderInterop.ContentReady += DxFilterBuilder_ContentReady; + DevExpress.Ui.DxFilterBuilderInterop.Disposing += DxFilterBuilder_Disposing; + DevExpress.Ui.DxFilterBuilderInterop.OptionChanged += DxFilterBuilder_OptionChanged; + DevExpress.Ui.DxFilterBuilderInterop.Initialized += DxFilterBuilder_Initialized; } [Parameter] Action EditorPrepared { get; set; } @@ -141,6 +342,34 @@ return DevExpress.Ui.DxFilterBuilderInterop.Init(dxTarget, options); ValueChanged?.Invoke(); } } + [Parameter] + Action ContentReady { get; set; } + void DxFilterBuilder_ContentReady(object sender, JQueryEventArgs e) { + if (e.Identifier == Id) { + ContentReady?.Invoke(); + } + } + [Parameter] + Action Disposing { get; set; } + void DxFilterBuilder_Disposing(object sender, JQueryEventArgs e) { + if (e.Identifier == Id) { + Disposing?.Invoke(); + } + } + [Parameter] + Action OptionChanged { get; set; } + void DxFilterBuilder_OptionChanged(object sender, JQueryEventArgs e) { + if (e.Identifier == Id) { + OptionChanged?.Invoke(); + } + } + [Parameter] + Action Initialized { get; set; } + void DxFilterBuilder_Initialized(object sender, JQueryEventArgs e) { + if (e.Identifier == Id) { + Initialized?.Invoke(); + } + } public object GetFilterExpression() { return DevExpress.Ui.DxFilterBuilderInterop.GetFilterExpression(dxTarget).Result; } @@ -148,5 +377,9 @@ return DevExpress.Ui.DxFilterBuilderInterop.Init(dxTarget, options); DevExpress.Ui.DxFilterBuilderInterop.EditorPrepared -= DxFilterBuilder_EditorPrepared; DevExpress.Ui.DxFilterBuilderInterop.EditorPreparing -= DxFilterBuilder_EditorPreparing; DevExpress.Ui.DxFilterBuilderInterop.ValueChanged -= DxFilterBuilder_ValueChanged; + DevExpress.Ui.DxFilterBuilderInterop.ContentReady -= DxFilterBuilder_ContentReady; + DevExpress.Ui.DxFilterBuilderInterop.Disposing -= DxFilterBuilder_Disposing; + DevExpress.Ui.DxFilterBuilderInterop.OptionChanged -= DxFilterBuilder_OptionChanged; + DevExpress.Ui.DxFilterBuilderInterop.Initialized -= DxFilterBuilder_Initialized; } } diff --git a/sources/BlazorDevExtreme/Components/DxForm.cshtml b/sources/BlazorDevExtreme/Components/DxForm.cshtml index 195e514..9b0b00a 100644 --- a/sources/BlazorDevExtreme/Components/DxForm.cshtml +++ b/sources/BlazorDevExtreme/Components/DxForm.cshtml @@ -30,17 +30,34 @@ showRequiredMark = showRequiredMark, showValidationSummary = showValidationSummary, validationGroup = validationGroup, + accessKey = accessKey, + activeStateEnabled = activeStateEnabled, + disabled = disabled, + focusStateEnabled = focusStateEnabled, + hint = hint, + hoverStateEnabled = hoverStateEnabled, + tabIndex = tabIndex, + visible = visible, + bindingOptions = bindingOptions, + elementAttr = elementAttr, + height = height, + rtlEnabled = rtlEnabled, + width = width, onEditorEnterKeyEnabled = onEditorEnterKeyEnabled, onFieldDataChangedEnabled = onFieldDataChangedEnabled, + onContentReadyEnabled = onContentReadyEnabled, + onDisposingEnabled = onDisposingEnabled, + onOptionChangedEnabled = onOptionChangedEnabled, + onInitializedEnabled = onInitializedEnabled, }; } protected override Task Init(DevExpress.Ui.DxFormOptions options) { -return DevExpress.Ui.DxFormInterop.Init(dxTarget, options); + return DevExpress.Ui.DxFormInterop.Init(dxTarget, options); } bool? alignItemLabels; [Parameter] bool? AlignItemLabels { - get => isInitialized ? DevExpress.Ui.DxFormInterop.GetAlignItemLabels(dxTarget).Result : alignItemLabels; + get => isInitialized ? (bool?)DevExpress.Ui.DxFormInterop.GetAlignItemLabels(dxTarget).Result : alignItemLabels; set { if (isInitialized) { DevExpress.Ui.DxFormInterop.SetAlignItemLabels(dxTarget, value); @@ -52,7 +69,7 @@ return DevExpress.Ui.DxFormInterop.Init(dxTarget, options); bool? alignItemLabelsInAllGroups; [Parameter] bool? AlignItemLabelsInAllGroups { - get => isInitialized ? DevExpress.Ui.DxFormInterop.GetAlignItemLabelsInAllGroups(dxTarget).Result : alignItemLabelsInAllGroups; + get => isInitialized ? (bool?)DevExpress.Ui.DxFormInterop.GetAlignItemLabelsInAllGroups(dxTarget).Result : alignItemLabelsInAllGroups; set { if (isInitialized) { DevExpress.Ui.DxFormInterop.SetAlignItemLabelsInAllGroups(dxTarget, value); @@ -124,7 +141,7 @@ return DevExpress.Ui.DxFormInterop.Init(dxTarget, options); string labelLocation; [Parameter] string LabelLocation { - get => isInitialized ? DevExpress.Ui.DxFormInterop.GetLabelLocation(dxTarget).Result : labelLocation; + get => isInitialized ? (string)DevExpress.Ui.DxFormInterop.GetLabelLocation(dxTarget).Result : labelLocation; set { if (isInitialized) { DevExpress.Ui.DxFormInterop.SetLabelLocation(dxTarget, value); @@ -136,7 +153,7 @@ return DevExpress.Ui.DxFormInterop.Init(dxTarget, options); float? minColWidth; [Parameter] float? MinColWidth { - get => isInitialized ? DevExpress.Ui.DxFormInterop.GetMinColWidth(dxTarget).Result : minColWidth; + get => isInitialized ? (float?)DevExpress.Ui.DxFormInterop.GetMinColWidth(dxTarget).Result : minColWidth; set { if (isInitialized) { DevExpress.Ui.DxFormInterop.SetMinColWidth(dxTarget, value); @@ -148,7 +165,7 @@ return DevExpress.Ui.DxFormInterop.Init(dxTarget, options); string optionalMark; [Parameter] string OptionalMark { - get => isInitialized ? DevExpress.Ui.DxFormInterop.GetOptionalMark(dxTarget).Result : optionalMark; + get => isInitialized ? (string)DevExpress.Ui.DxFormInterop.GetOptionalMark(dxTarget).Result : optionalMark; set { if (isInitialized) { DevExpress.Ui.DxFormInterop.SetOptionalMark(dxTarget, value); @@ -160,7 +177,7 @@ return DevExpress.Ui.DxFormInterop.Init(dxTarget, options); bool? readOnly; [Parameter] bool? ReadOnly { - get => isInitialized ? DevExpress.Ui.DxFormInterop.GetReadOnly(dxTarget).Result : readOnly; + get => isInitialized ? (bool?)DevExpress.Ui.DxFormInterop.GetReadOnly(dxTarget).Result : readOnly; set { if (isInitialized) { DevExpress.Ui.DxFormInterop.SetReadOnly(dxTarget, value); @@ -172,7 +189,7 @@ return DevExpress.Ui.DxFormInterop.Init(dxTarget, options); string requiredMark; [Parameter] string RequiredMark { - get => isInitialized ? DevExpress.Ui.DxFormInterop.GetRequiredMark(dxTarget).Result : requiredMark; + get => isInitialized ? (string)DevExpress.Ui.DxFormInterop.GetRequiredMark(dxTarget).Result : requiredMark; set { if (isInitialized) { DevExpress.Ui.DxFormInterop.SetRequiredMark(dxTarget, value); @@ -184,7 +201,7 @@ return DevExpress.Ui.DxFormInterop.Init(dxTarget, options); string requiredMessage; [Parameter] string RequiredMessage { - get => isInitialized ? DevExpress.Ui.DxFormInterop.GetRequiredMessage(dxTarget).Result : requiredMessage; + get => isInitialized ? (string)DevExpress.Ui.DxFormInterop.GetRequiredMessage(dxTarget).Result : requiredMessage; set { if (isInitialized) { DevExpress.Ui.DxFormInterop.SetRequiredMessage(dxTarget, value); @@ -208,7 +225,7 @@ return DevExpress.Ui.DxFormInterop.Init(dxTarget, options); bool? scrollingEnabled; [Parameter] bool? ScrollingEnabled { - get => isInitialized ? DevExpress.Ui.DxFormInterop.GetScrollingEnabled(dxTarget).Result : scrollingEnabled; + get => isInitialized ? (bool?)DevExpress.Ui.DxFormInterop.GetScrollingEnabled(dxTarget).Result : scrollingEnabled; set { if (isInitialized) { DevExpress.Ui.DxFormInterop.SetScrollingEnabled(dxTarget, value); @@ -220,7 +237,7 @@ return DevExpress.Ui.DxFormInterop.Init(dxTarget, options); bool? showColonAfterLabel; [Parameter] bool? ShowColonAfterLabel { - get => isInitialized ? DevExpress.Ui.DxFormInterop.GetShowColonAfterLabel(dxTarget).Result : showColonAfterLabel; + get => isInitialized ? (bool?)DevExpress.Ui.DxFormInterop.GetShowColonAfterLabel(dxTarget).Result : showColonAfterLabel; set { if (isInitialized) { DevExpress.Ui.DxFormInterop.SetShowColonAfterLabel(dxTarget, value); @@ -232,7 +249,7 @@ return DevExpress.Ui.DxFormInterop.Init(dxTarget, options); bool? showOptionalMark; [Parameter] bool? ShowOptionalMark { - get => isInitialized ? DevExpress.Ui.DxFormInterop.GetShowOptionalMark(dxTarget).Result : showOptionalMark; + get => isInitialized ? (bool?)DevExpress.Ui.DxFormInterop.GetShowOptionalMark(dxTarget).Result : showOptionalMark; set { if (isInitialized) { DevExpress.Ui.DxFormInterop.SetShowOptionalMark(dxTarget, value); @@ -244,7 +261,7 @@ return DevExpress.Ui.DxFormInterop.Init(dxTarget, options); bool? showRequiredMark; [Parameter] bool? ShowRequiredMark { - get => isInitialized ? DevExpress.Ui.DxFormInterop.GetShowRequiredMark(dxTarget).Result : showRequiredMark; + get => isInitialized ? (bool?)DevExpress.Ui.DxFormInterop.GetShowRequiredMark(dxTarget).Result : showRequiredMark; set { if (isInitialized) { DevExpress.Ui.DxFormInterop.SetShowRequiredMark(dxTarget, value); @@ -256,7 +273,7 @@ return DevExpress.Ui.DxFormInterop.Init(dxTarget, options); bool? showValidationSummary; [Parameter] bool? ShowValidationSummary { - get => isInitialized ? DevExpress.Ui.DxFormInterop.GetShowValidationSummary(dxTarget).Result : showValidationSummary; + get => isInitialized ? (bool?)DevExpress.Ui.DxFormInterop.GetShowValidationSummary(dxTarget).Result : showValidationSummary; set { if (isInitialized) { DevExpress.Ui.DxFormInterop.SetShowValidationSummary(dxTarget, value); @@ -268,7 +285,7 @@ return DevExpress.Ui.DxFormInterop.Init(dxTarget, options); string validationGroup; [Parameter] string ValidationGroup { - get => isInitialized ? DevExpress.Ui.DxFormInterop.GetValidationGroup(dxTarget).Result : validationGroup; + get => isInitialized ? (string)DevExpress.Ui.DxFormInterop.GetValidationGroup(dxTarget).Result : validationGroup; set { if (isInitialized) { DevExpress.Ui.DxFormInterop.SetValidationGroup(dxTarget, value); @@ -277,6 +294,162 @@ return DevExpress.Ui.DxFormInterop.Init(dxTarget, options); } } } + string accessKey; + [Parameter] + string AccessKey { + get => isInitialized ? (string)DevExpress.Ui.DxFormInterop.GetAccessKey(dxTarget).Result : accessKey; + set { + if (isInitialized) { + DevExpress.Ui.DxFormInterop.SetAccessKey(dxTarget, value); + } else { + this.accessKey = value; + } + } + } + bool? activeStateEnabled; + [Parameter] + bool? ActiveStateEnabled { + get => isInitialized ? (bool?)DevExpress.Ui.DxFormInterop.GetActiveStateEnabled(dxTarget).Result : activeStateEnabled; + set { + if (isInitialized) { + DevExpress.Ui.DxFormInterop.SetActiveStateEnabled(dxTarget, value); + } else { + this.activeStateEnabled = value; + } + } + } + bool? disabled; + [Parameter] + bool? Disabled { + get => isInitialized ? (bool?)DevExpress.Ui.DxFormInterop.GetDisabled(dxTarget).Result : disabled; + set { + if (isInitialized) { + DevExpress.Ui.DxFormInterop.SetDisabled(dxTarget, value); + } else { + this.disabled = value; + } + } + } + bool? focusStateEnabled; + [Parameter] + bool? FocusStateEnabled { + get => isInitialized ? (bool?)DevExpress.Ui.DxFormInterop.GetFocusStateEnabled(dxTarget).Result : focusStateEnabled; + set { + if (isInitialized) { + DevExpress.Ui.DxFormInterop.SetFocusStateEnabled(dxTarget, value); + } else { + this.focusStateEnabled = value; + } + } + } + string hint; + [Parameter] + string Hint { + get => isInitialized ? (string)DevExpress.Ui.DxFormInterop.GetHint(dxTarget).Result : hint; + set { + if (isInitialized) { + DevExpress.Ui.DxFormInterop.SetHint(dxTarget, value); + } else { + this.hint = value; + } + } + } + bool? hoverStateEnabled; + [Parameter] + bool? HoverStateEnabled { + get => isInitialized ? (bool?)DevExpress.Ui.DxFormInterop.GetHoverStateEnabled(dxTarget).Result : hoverStateEnabled; + set { + if (isInitialized) { + DevExpress.Ui.DxFormInterop.SetHoverStateEnabled(dxTarget, value); + } else { + this.hoverStateEnabled = value; + } + } + } + float? tabIndex; + [Parameter] + float? TabIndex { + get => isInitialized ? (float?)DevExpress.Ui.DxFormInterop.GetTabIndex(dxTarget).Result : tabIndex; + set { + if (isInitialized) { + DevExpress.Ui.DxFormInterop.SetTabIndex(dxTarget, value); + } else { + this.tabIndex = value; + } + } + } + bool? visible; + [Parameter] + bool? Visible { + get => isInitialized ? (bool?)DevExpress.Ui.DxFormInterop.GetVisible(dxTarget).Result : visible; + set { + if (isInitialized) { + DevExpress.Ui.DxFormInterop.SetVisible(dxTarget, value); + } else { + this.visible = value; + } + } + } + object bindingOptions; + [Parameter] + object BindingOptions { + get => isInitialized ? DevExpress.Ui.DxFormInterop.GetBindingOptions(dxTarget).Result : bindingOptions; + set { + if (isInitialized) { + DevExpress.Ui.DxFormInterop.SetBindingOptions(dxTarget, value); + } else { + this.bindingOptions = value; + } + } + } + object elementAttr; + [Parameter] + object ElementAttr { + get => isInitialized ? DevExpress.Ui.DxFormInterop.GetElementAttr(dxTarget).Result : elementAttr; + set { + if (isInitialized) { + DevExpress.Ui.DxFormInterop.SetElementAttr(dxTarget, value); + } else { + this.elementAttr = value; + } + } + } + object height; + [Parameter] + object Height { + get => isInitialized ? DevExpress.Ui.DxFormInterop.GetHeight(dxTarget).Result : height; + set { + if (isInitialized) { + DevExpress.Ui.DxFormInterop.SetHeight(dxTarget, value); + } else { + this.height = value; + } + } + } + bool? rtlEnabled; + [Parameter] + bool? RtlEnabled { + get => isInitialized ? (bool?)DevExpress.Ui.DxFormInterop.GetRtlEnabled(dxTarget).Result : rtlEnabled; + set { + if (isInitialized) { + DevExpress.Ui.DxFormInterop.SetRtlEnabled(dxTarget, value); + } else { + this.rtlEnabled = value; + } + } + } + object width; + [Parameter] + object Width { + get => isInitialized ? DevExpress.Ui.DxFormInterop.GetWidth(dxTarget).Result : width; + set { + if (isInitialized) { + DevExpress.Ui.DxFormInterop.SetWidth(dxTarget, value); + } else { + this.width = value; + } + } + } bool? onEditorEnterKeyEnabled; [Parameter] bool? OnEditorEnterKeyEnabled { @@ -289,10 +462,38 @@ return DevExpress.Ui.DxFormInterop.Init(dxTarget, options); get => onFieldDataChangedEnabled; set => this.onFieldDataChangedEnabled = value; } + bool? onContentReadyEnabled; + [Parameter] + bool? OnContentReadyEnabled { + get => onContentReadyEnabled; + set => this.onContentReadyEnabled = value; + } + bool? onDisposingEnabled; + [Parameter] + bool? OnDisposingEnabled { + get => onDisposingEnabled; + set => this.onDisposingEnabled = value; + } + bool? onOptionChangedEnabled; + [Parameter] + bool? OnOptionChangedEnabled { + get => onOptionChangedEnabled; + set => this.onOptionChangedEnabled = value; + } + bool? onInitializedEnabled; + [Parameter] + bool? OnInitializedEnabled { + get => onInitializedEnabled; + set => this.onInitializedEnabled = value; + } protected override async Task OnInitAsync() { await base.OnInitAsync(); DevExpress.Ui.DxFormInterop.EditorEnterKey += DxForm_EditorEnterKey; DevExpress.Ui.DxFormInterop.FieldDataChanged += DxForm_FieldDataChanged; + DevExpress.Ui.DxFormInterop.ContentReady += DxForm_ContentReady; + DevExpress.Ui.DxFormInterop.Disposing += DxForm_Disposing; + DevExpress.Ui.DxFormInterop.OptionChanged += DxForm_OptionChanged; + DevExpress.Ui.DxFormInterop.Initialized += DxForm_Initialized; } [Parameter] Action EditorEnterKey { get; set; } @@ -308,6 +509,34 @@ return DevExpress.Ui.DxFormInterop.Init(dxTarget, options); FieldDataChanged?.Invoke(); } } + [Parameter] + Action ContentReady { get; set; } + void DxForm_ContentReady(object sender, JQueryEventArgs e) { + if (e.Identifier == Id) { + ContentReady?.Invoke(); + } + } + [Parameter] + Action Disposing { get; set; } + void DxForm_Disposing(object sender, JQueryEventArgs e) { + if (e.Identifier == Id) { + Disposing?.Invoke(); + } + } + [Parameter] + Action OptionChanged { get; set; } + void DxForm_OptionChanged(object sender, JQueryEventArgs e) { + if (e.Identifier == Id) { + OptionChanged?.Invoke(); + } + } + [Parameter] + Action Initialized { get; set; } + void DxForm_Initialized(object sender, JQueryEventArgs e) { + if (e.Identifier == Id) { + Initialized?.Invoke(); + } + } public object GetEditor(string dataField) { return DevExpress.Ui.DxFormInterop.GetEditor(dxTarget, dataField).Result; } @@ -338,5 +567,9 @@ return DevExpress.Ui.DxFormInterop.Init(dxTarget, options); public void Dispose() { DevExpress.Ui.DxFormInterop.EditorEnterKey -= DxForm_EditorEnterKey; DevExpress.Ui.DxFormInterop.FieldDataChanged -= DxForm_FieldDataChanged; + DevExpress.Ui.DxFormInterop.ContentReady -= DxForm_ContentReady; + DevExpress.Ui.DxFormInterop.Disposing -= DxForm_Disposing; + DevExpress.Ui.DxFormInterop.OptionChanged -= DxForm_OptionChanged; + DevExpress.Ui.DxFormInterop.Initialized -= DxForm_Initialized; } } diff --git a/sources/BlazorDevExtreme/Components/DxFunnel.cshtml b/sources/BlazorDevExtreme/Components/DxFunnel.cshtml index 698f066..a6b11e8 100644 --- a/sources/BlazorDevExtreme/Components/DxFunnel.cshtml +++ b/sources/BlazorDevExtreme/Components/DxFunnel.cshtml @@ -28,14 +28,35 @@ sortData = sortData, tooltip = tooltip, valueField = valueField, + export = export, + loadingIndicator = loadingIndicator, + margin = margin, + pathModified = pathModified, + redrawOnResize = redrawOnResize, + rtlEnabled = rtlEnabled, + size = size, + theme = theme, + title = title, + bindingOptions = bindingOptions, + elementAttr = elementAttr, + height = height, + width = width, onHoverChangedEnabled = onHoverChangedEnabled, onItemClickEnabled = onItemClickEnabled, onLegendClickEnabled = onLegendClickEnabled, onSelectionChangedEnabled = onSelectionChangedEnabled, + onDrawnEnabled = onDrawnEnabled, + onExportedEnabled = onExportedEnabled, + onExportingEnabled = onExportingEnabled, + onFileSavingEnabled = onFileSavingEnabled, + onIncidentOccurredEnabled = onIncidentOccurredEnabled, + onDisposingEnabled = onDisposingEnabled, + onOptionChangedEnabled = onOptionChangedEnabled, + onInitializedEnabled = onInitializedEnabled, }; } protected override Task Init(DevExpress.Viz.Funnel.DxFunnelOptions options) { -return DevExpress.Viz.DxFunnelInterop.Init(dxTarget, options); + return DevExpress.Viz.DxFunnelInterop.Init(dxTarget, options); } object adaptiveLayout; [Parameter] @@ -52,7 +73,7 @@ return DevExpress.Viz.DxFunnelInterop.Init(dxTarget, options); string algorithm; [Parameter] string Algorithm { - get => isInitialized ? DevExpress.Viz.DxFunnelInterop.GetAlgorithm(dxTarget).Result : algorithm; + get => isInitialized ? (string)DevExpress.Viz.DxFunnelInterop.GetAlgorithm(dxTarget).Result : algorithm; set { if (isInitialized) { DevExpress.Viz.DxFunnelInterop.SetAlgorithm(dxTarget, value); @@ -64,7 +85,7 @@ return DevExpress.Viz.DxFunnelInterop.Init(dxTarget, options); string argumentField; [Parameter] string ArgumentField { - get => isInitialized ? DevExpress.Viz.DxFunnelInterop.GetArgumentField(dxTarget).Result : argumentField; + get => isInitialized ? (string)DevExpress.Viz.DxFunnelInterop.GetArgumentField(dxTarget).Result : argumentField; set { if (isInitialized) { DevExpress.Viz.DxFunnelInterop.SetArgumentField(dxTarget, value); @@ -76,7 +97,7 @@ return DevExpress.Viz.DxFunnelInterop.Init(dxTarget, options); string colorField; [Parameter] string ColorField { - get => isInitialized ? DevExpress.Viz.DxFunnelInterop.GetColorField(dxTarget).Result : colorField; + get => isInitialized ? (string)DevExpress.Viz.DxFunnelInterop.GetColorField(dxTarget).Result : colorField; set { if (isInitialized) { DevExpress.Viz.DxFunnelInterop.SetColorField(dxTarget, value); @@ -100,7 +121,7 @@ return DevExpress.Viz.DxFunnelInterop.Init(dxTarget, options); bool? hoverEnabled; [Parameter] bool? HoverEnabled { - get => isInitialized ? DevExpress.Viz.DxFunnelInterop.GetHoverEnabled(dxTarget).Result : hoverEnabled; + get => isInitialized ? (bool?)DevExpress.Viz.DxFunnelInterop.GetHoverEnabled(dxTarget).Result : hoverEnabled; set { if (isInitialized) { DevExpress.Viz.DxFunnelInterop.SetHoverEnabled(dxTarget, value); @@ -112,7 +133,7 @@ return DevExpress.Viz.DxFunnelInterop.Init(dxTarget, options); bool? inverted; [Parameter] bool? Inverted { - get => isInitialized ? DevExpress.Viz.DxFunnelInterop.GetInverted(dxTarget).Result : inverted; + get => isInitialized ? (bool?)DevExpress.Viz.DxFunnelInterop.GetInverted(dxTarget).Result : inverted; set { if (isInitialized) { DevExpress.Viz.DxFunnelInterop.SetInverted(dxTarget, value); @@ -160,7 +181,7 @@ return DevExpress.Viz.DxFunnelInterop.Init(dxTarget, options); float? neckHeight; [Parameter] float? NeckHeight { - get => isInitialized ? DevExpress.Viz.DxFunnelInterop.GetNeckHeight(dxTarget).Result : neckHeight; + get => isInitialized ? (float?)DevExpress.Viz.DxFunnelInterop.GetNeckHeight(dxTarget).Result : neckHeight; set { if (isInitialized) { DevExpress.Viz.DxFunnelInterop.SetNeckHeight(dxTarget, value); @@ -172,7 +193,7 @@ return DevExpress.Viz.DxFunnelInterop.Init(dxTarget, options); float? neckWidth; [Parameter] float? NeckWidth { - get => isInitialized ? DevExpress.Viz.DxFunnelInterop.GetNeckWidth(dxTarget).Result : neckWidth; + get => isInitialized ? (float?)DevExpress.Viz.DxFunnelInterop.GetNeckWidth(dxTarget).Result : neckWidth; set { if (isInitialized) { DevExpress.Viz.DxFunnelInterop.SetNeckWidth(dxTarget, value); @@ -196,7 +217,7 @@ return DevExpress.Viz.DxFunnelInterop.Init(dxTarget, options); string paletteExtensionMode; [Parameter] string PaletteExtensionMode { - get => isInitialized ? DevExpress.Viz.DxFunnelInterop.GetPaletteExtensionMode(dxTarget).Result : paletteExtensionMode; + get => isInitialized ? (string)DevExpress.Viz.DxFunnelInterop.GetPaletteExtensionMode(dxTarget).Result : paletteExtensionMode; set { if (isInitialized) { DevExpress.Viz.DxFunnelInterop.SetPaletteExtensionMode(dxTarget, value); @@ -208,7 +229,7 @@ return DevExpress.Viz.DxFunnelInterop.Init(dxTarget, options); string selectionMode; [Parameter] string SelectionMode { - get => isInitialized ? DevExpress.Viz.DxFunnelInterop.GetSelectionMode(dxTarget).Result : selectionMode; + get => isInitialized ? (string)DevExpress.Viz.DxFunnelInterop.GetSelectionMode(dxTarget).Result : selectionMode; set { if (isInitialized) { DevExpress.Viz.DxFunnelInterop.SetSelectionMode(dxTarget, value); @@ -220,7 +241,7 @@ return DevExpress.Viz.DxFunnelInterop.Init(dxTarget, options); bool? sortData; [Parameter] bool? SortData { - get => isInitialized ? DevExpress.Viz.DxFunnelInterop.GetSortData(dxTarget).Result : sortData; + get => isInitialized ? (bool?)DevExpress.Viz.DxFunnelInterop.GetSortData(dxTarget).Result : sortData; set { if (isInitialized) { DevExpress.Viz.DxFunnelInterop.SetSortData(dxTarget, value); @@ -244,7 +265,7 @@ return DevExpress.Viz.DxFunnelInterop.Init(dxTarget, options); string valueField; [Parameter] string ValueField { - get => isInitialized ? DevExpress.Viz.DxFunnelInterop.GetValueField(dxTarget).Result : valueField; + get => isInitialized ? (string)DevExpress.Viz.DxFunnelInterop.GetValueField(dxTarget).Result : valueField; set { if (isInitialized) { DevExpress.Viz.DxFunnelInterop.SetValueField(dxTarget, value); @@ -253,6 +274,162 @@ return DevExpress.Viz.DxFunnelInterop.Init(dxTarget, options); } } } + object export; + [Parameter] + object Export { + get => isInitialized ? DevExpress.Viz.DxFunnelInterop.GetExport(dxTarget).Result : export; + set { + if (isInitialized) { + DevExpress.Viz.DxFunnelInterop.SetExport(dxTarget, value); + } else { + this.export = value; + } + } + } + object loadingIndicator; + [Parameter] + object LoadingIndicator { + get => isInitialized ? DevExpress.Viz.DxFunnelInterop.GetLoadingIndicator(dxTarget).Result : loadingIndicator; + set { + if (isInitialized) { + DevExpress.Viz.DxFunnelInterop.SetLoadingIndicator(dxTarget, value); + } else { + this.loadingIndicator = value; + } + } + } + object margin; + [Parameter] + object Margin { + get => isInitialized ? DevExpress.Viz.DxFunnelInterop.GetMargin(dxTarget).Result : margin; + set { + if (isInitialized) { + DevExpress.Viz.DxFunnelInterop.SetMargin(dxTarget, value); + } else { + this.margin = value; + } + } + } + bool? pathModified; + [Parameter] + bool? PathModified { + get => isInitialized ? (bool?)DevExpress.Viz.DxFunnelInterop.GetPathModified(dxTarget).Result : pathModified; + set { + if (isInitialized) { + DevExpress.Viz.DxFunnelInterop.SetPathModified(dxTarget, value); + } else { + this.pathModified = value; + } + } + } + bool? redrawOnResize; + [Parameter] + bool? RedrawOnResize { + get => isInitialized ? (bool?)DevExpress.Viz.DxFunnelInterop.GetRedrawOnResize(dxTarget).Result : redrawOnResize; + set { + if (isInitialized) { + DevExpress.Viz.DxFunnelInterop.SetRedrawOnResize(dxTarget, value); + } else { + this.redrawOnResize = value; + } + } + } + bool? rtlEnabled; + [Parameter] + bool? RtlEnabled { + get => isInitialized ? (bool?)DevExpress.Viz.DxFunnelInterop.GetRtlEnabled(dxTarget).Result : rtlEnabled; + set { + if (isInitialized) { + DevExpress.Viz.DxFunnelInterop.SetRtlEnabled(dxTarget, value); + } else { + this.rtlEnabled = value; + } + } + } + object size; + [Parameter] + object Size { + get => isInitialized ? DevExpress.Viz.DxFunnelInterop.GetSize(dxTarget).Result : size; + set { + if (isInitialized) { + DevExpress.Viz.DxFunnelInterop.SetSize(dxTarget, value); + } else { + this.size = value; + } + } + } + string theme; + [Parameter] + string Theme { + get => isInitialized ? (string)DevExpress.Viz.DxFunnelInterop.GetTheme(dxTarget).Result : theme; + set { + if (isInitialized) { + DevExpress.Viz.DxFunnelInterop.SetTheme(dxTarget, value); + } else { + this.theme = value; + } + } + } + object title; + [Parameter] + object Title { + get => isInitialized ? DevExpress.Viz.DxFunnelInterop.GetTitle(dxTarget).Result : title; + set { + if (isInitialized) { + DevExpress.Viz.DxFunnelInterop.SetTitle(dxTarget, value); + } else { + this.title = value; + } + } + } + object bindingOptions; + [Parameter] + object BindingOptions { + get => isInitialized ? DevExpress.Viz.DxFunnelInterop.GetBindingOptions(dxTarget).Result : bindingOptions; + set { + if (isInitialized) { + DevExpress.Viz.DxFunnelInterop.SetBindingOptions(dxTarget, value); + } else { + this.bindingOptions = value; + } + } + } + object elementAttr; + [Parameter] + object ElementAttr { + get => isInitialized ? DevExpress.Viz.DxFunnelInterop.GetElementAttr(dxTarget).Result : elementAttr; + set { + if (isInitialized) { + DevExpress.Viz.DxFunnelInterop.SetElementAttr(dxTarget, value); + } else { + this.elementAttr = value; + } + } + } + object height; + [Parameter] + object Height { + get => isInitialized ? DevExpress.Viz.DxFunnelInterop.GetHeight(dxTarget).Result : height; + set { + if (isInitialized) { + DevExpress.Viz.DxFunnelInterop.SetHeight(dxTarget, value); + } else { + this.height = value; + } + } + } + object width; + [Parameter] + object Width { + get => isInitialized ? DevExpress.Viz.DxFunnelInterop.GetWidth(dxTarget).Result : width; + set { + if (isInitialized) { + DevExpress.Viz.DxFunnelInterop.SetWidth(dxTarget, value); + } else { + this.width = value; + } + } + } bool? onHoverChangedEnabled; [Parameter] bool? OnHoverChangedEnabled { @@ -277,12 +454,68 @@ return DevExpress.Viz.DxFunnelInterop.Init(dxTarget, options); get => onSelectionChangedEnabled; set => this.onSelectionChangedEnabled = value; } + bool? onDrawnEnabled; + [Parameter] + bool? OnDrawnEnabled { + get => onDrawnEnabled; + set => this.onDrawnEnabled = value; + } + bool? onExportedEnabled; + [Parameter] + bool? OnExportedEnabled { + get => onExportedEnabled; + set => this.onExportedEnabled = value; + } + bool? onExportingEnabled; + [Parameter] + bool? OnExportingEnabled { + get => onExportingEnabled; + set => this.onExportingEnabled = value; + } + bool? onFileSavingEnabled; + [Parameter] + bool? OnFileSavingEnabled { + get => onFileSavingEnabled; + set => this.onFileSavingEnabled = value; + } + bool? onIncidentOccurredEnabled; + [Parameter] + bool? OnIncidentOccurredEnabled { + get => onIncidentOccurredEnabled; + set => this.onIncidentOccurredEnabled = value; + } + bool? onDisposingEnabled; + [Parameter] + bool? OnDisposingEnabled { + get => onDisposingEnabled; + set => this.onDisposingEnabled = value; + } + bool? onOptionChangedEnabled; + [Parameter] + bool? OnOptionChangedEnabled { + get => onOptionChangedEnabled; + set => this.onOptionChangedEnabled = value; + } + bool? onInitializedEnabled; + [Parameter] + bool? OnInitializedEnabled { + get => onInitializedEnabled; + set => this.onInitializedEnabled = value; + } protected override async Task OnInitAsync() { await base.OnInitAsync(); DevExpress.Viz.DxFunnelInterop.HoverChanged += DxFunnel_HoverChanged; DevExpress.Viz.DxFunnelInterop.ItemClick += DxFunnel_ItemClick; DevExpress.Viz.DxFunnelInterop.LegendClick += DxFunnel_LegendClick; DevExpress.Viz.DxFunnelInterop.SelectionChanged += DxFunnel_SelectionChanged; + DevExpress.Viz.DxFunnelInterop.Drawn += DxFunnel_Drawn; + DevExpress.Viz.DxFunnelInterop.Exported += DxFunnel_Exported; + DevExpress.Viz.DxFunnelInterop.Exporting += DxFunnel_Exporting; + DevExpress.Viz.DxFunnelInterop.FileSaving += DxFunnel_FileSaving; + DevExpress.Viz.DxFunnelInterop.IncidentOccurred += DxFunnel_IncidentOccurred; + DevExpress.Viz.DxFunnelInterop.Disposing += DxFunnel_Disposing; + DevExpress.Viz.DxFunnelInterop.OptionChanged += DxFunnel_OptionChanged; + DevExpress.Viz.DxFunnelInterop.Initialized += DxFunnel_Initialized; } [Parameter] Action HoverChanged { get; set; } @@ -312,6 +545,62 @@ return DevExpress.Viz.DxFunnelInterop.Init(dxTarget, options); SelectionChanged?.Invoke(); } } + [Parameter] + Action Drawn { get; set; } + void DxFunnel_Drawn(object sender, JQueryEventArgs e) { + if (e.Identifier == Id) { + Drawn?.Invoke(); + } + } + [Parameter] + Action Exported { get; set; } + void DxFunnel_Exported(object sender, JQueryEventArgs e) { + if (e.Identifier == Id) { + Exported?.Invoke(); + } + } + [Parameter] + Action Exporting { get; set; } + void DxFunnel_Exporting(object sender, JQueryEventArgs e) { + if (e.Identifier == Id) { + Exporting?.Invoke(); + } + } + [Parameter] + Action FileSaving { get; set; } + void DxFunnel_FileSaving(object sender, JQueryEventArgs e) { + if (e.Identifier == Id) { + FileSaving?.Invoke(); + } + } + [Parameter] + Action IncidentOccurred { get; set; } + void DxFunnel_IncidentOccurred(object sender, JQueryEventArgs e) { + if (e.Identifier == Id) { + IncidentOccurred?.Invoke(); + } + } + [Parameter] + Action Disposing { get; set; } + void DxFunnel_Disposing(object sender, JQueryEventArgs e) { + if (e.Identifier == Id) { + Disposing?.Invoke(); + } + } + [Parameter] + Action OptionChanged { get; set; } + void DxFunnel_OptionChanged(object sender, JQueryEventArgs e) { + if (e.Identifier == Id) { + OptionChanged?.Invoke(); + } + } + [Parameter] + Action Initialized { get; set; } + void DxFunnel_Initialized(object sender, JQueryEventArgs e) { + if (e.Identifier == Id) { + Initialized?.Invoke(); + } + } public void ClearSelection() { DevExpress.Viz.DxFunnelInterop.ClearSelection(dxTarget); } @@ -329,5 +618,13 @@ return DevExpress.Viz.DxFunnelInterop.Init(dxTarget, options); DevExpress.Viz.DxFunnelInterop.ItemClick -= DxFunnel_ItemClick; DevExpress.Viz.DxFunnelInterop.LegendClick -= DxFunnel_LegendClick; DevExpress.Viz.DxFunnelInterop.SelectionChanged -= DxFunnel_SelectionChanged; + DevExpress.Viz.DxFunnelInterop.Drawn -= DxFunnel_Drawn; + DevExpress.Viz.DxFunnelInterop.Exported -= DxFunnel_Exported; + DevExpress.Viz.DxFunnelInterop.Exporting -= DxFunnel_Exporting; + DevExpress.Viz.DxFunnelInterop.FileSaving -= DxFunnel_FileSaving; + DevExpress.Viz.DxFunnelInterop.IncidentOccurred -= DxFunnel_IncidentOccurred; + DevExpress.Viz.DxFunnelInterop.Disposing -= DxFunnel_Disposing; + DevExpress.Viz.DxFunnelInterop.OptionChanged -= DxFunnel_OptionChanged; + DevExpress.Viz.DxFunnelInterop.Initialized -= DxFunnel_Initialized; } } diff --git a/sources/BlazorDevExtreme/Components/DxGallery.cshtml b/sources/BlazorDevExtreme/Components/DxGallery.cshtml index 798fdca..52fc631 100644 --- a/sources/BlazorDevExtreme/Components/DxGallery.cshtml +++ b/sources/BlazorDevExtreme/Components/DxGallery.cshtml @@ -23,15 +23,45 @@ stretchImages = stretchImages, swipeEnabled = swipeEnabled, wrapAround = wrapAround, + dataSource = dataSource, + itemHoldTimeout = itemHoldTimeout, + items = items, + itemTemplate = itemTemplate, + keyExpr = keyExpr, + noDataText = noDataText, + selectedItem = selectedItem, + selectedItemKeys = selectedItemKeys, + selectedItems = selectedItems, + accessKey = accessKey, + activeStateEnabled = activeStateEnabled, + disabled = disabled, + hint = hint, + hoverStateEnabled = hoverStateEnabled, + tabIndex = tabIndex, + visible = visible, + bindingOptions = bindingOptions, + elementAttr = elementAttr, + height = height, + rtlEnabled = rtlEnabled, + width = width, + onItemClickEnabled = onItemClickEnabled, + onItemContextMenuEnabled = onItemContextMenuEnabled, + onItemHoldEnabled = onItemHoldEnabled, + onItemRenderedEnabled = onItemRenderedEnabled, + onSelectionChangedEnabled = onSelectionChangedEnabled, + onContentReadyEnabled = onContentReadyEnabled, + onDisposingEnabled = onDisposingEnabled, + onOptionChangedEnabled = onOptionChangedEnabled, + onInitializedEnabled = onInitializedEnabled, }; } protected override Task Init(DevExpress.Ui.DxGalleryOptions options) { -return DevExpress.Ui.DxGalleryInterop.Init(dxTarget, options); + return DevExpress.Ui.DxGalleryInterop.Init(dxTarget, options); } float? animationDuration; [Parameter] float? AnimationDuration { - get => isInitialized ? DevExpress.Ui.DxGalleryInterop.GetAnimationDuration(dxTarget).Result : animationDuration; + get => isInitialized ? (float?)DevExpress.Ui.DxGalleryInterop.GetAnimationDuration(dxTarget).Result : animationDuration; set { if (isInitialized) { DevExpress.Ui.DxGalleryInterop.SetAnimationDuration(dxTarget, value); @@ -43,7 +73,7 @@ return DevExpress.Ui.DxGalleryInterop.Init(dxTarget, options); bool? animationEnabled; [Parameter] bool? AnimationEnabled { - get => isInitialized ? DevExpress.Ui.DxGalleryInterop.GetAnimationEnabled(dxTarget).Result : animationEnabled; + get => isInitialized ? (bool?)DevExpress.Ui.DxGalleryInterop.GetAnimationEnabled(dxTarget).Result : animationEnabled; set { if (isInitialized) { DevExpress.Ui.DxGalleryInterop.SetAnimationEnabled(dxTarget, value); @@ -55,7 +85,7 @@ return DevExpress.Ui.DxGalleryInterop.Init(dxTarget, options); bool? focusStateEnabled; [Parameter] bool? FocusStateEnabled { - get => isInitialized ? DevExpress.Ui.DxGalleryInterop.GetFocusStateEnabled(dxTarget).Result : focusStateEnabled; + get => isInitialized ? (bool?)DevExpress.Ui.DxGalleryInterop.GetFocusStateEnabled(dxTarget).Result : focusStateEnabled; set { if (isInitialized) { DevExpress.Ui.DxGalleryInterop.SetFocusStateEnabled(dxTarget, value); @@ -67,7 +97,7 @@ return DevExpress.Ui.DxGalleryInterop.Init(dxTarget, options); bool? indicatorEnabled; [Parameter] bool? IndicatorEnabled { - get => isInitialized ? DevExpress.Ui.DxGalleryInterop.GetIndicatorEnabled(dxTarget).Result : indicatorEnabled; + get => isInitialized ? (bool?)DevExpress.Ui.DxGalleryInterop.GetIndicatorEnabled(dxTarget).Result : indicatorEnabled; set { if (isInitialized) { DevExpress.Ui.DxGalleryInterop.SetIndicatorEnabled(dxTarget, value); @@ -79,7 +109,7 @@ return DevExpress.Ui.DxGalleryInterop.Init(dxTarget, options); float? initialItemWidth; [Parameter] float? InitialItemWidth { - get => isInitialized ? DevExpress.Ui.DxGalleryInterop.GetInitialItemWidth(dxTarget).Result : initialItemWidth; + get => isInitialized ? (float?)DevExpress.Ui.DxGalleryInterop.GetInitialItemWidth(dxTarget).Result : initialItemWidth; set { if (isInitialized) { DevExpress.Ui.DxGalleryInterop.SetInitialItemWidth(dxTarget, value); @@ -91,7 +121,7 @@ return DevExpress.Ui.DxGalleryInterop.Init(dxTarget, options); bool? loop; [Parameter] bool? Loop { - get => isInitialized ? DevExpress.Ui.DxGalleryInterop.GetLoop(dxTarget).Result : loop; + get => isInitialized ? (bool?)DevExpress.Ui.DxGalleryInterop.GetLoop(dxTarget).Result : loop; set { if (isInitialized) { DevExpress.Ui.DxGalleryInterop.SetLoop(dxTarget, value); @@ -103,7 +133,7 @@ return DevExpress.Ui.DxGalleryInterop.Init(dxTarget, options); float? selectedIndex; [Parameter] float? SelectedIndex { - get => isInitialized ? DevExpress.Ui.DxGalleryInterop.GetSelectedIndex(dxTarget).Result : selectedIndex; + get => isInitialized ? (float?)DevExpress.Ui.DxGalleryInterop.GetSelectedIndex(dxTarget).Result : selectedIndex; set { if (isInitialized) { DevExpress.Ui.DxGalleryInterop.SetSelectedIndex(dxTarget, value); @@ -115,7 +145,7 @@ return DevExpress.Ui.DxGalleryInterop.Init(dxTarget, options); bool? showIndicator; [Parameter] bool? ShowIndicator { - get => isInitialized ? DevExpress.Ui.DxGalleryInterop.GetShowIndicator(dxTarget).Result : showIndicator; + get => isInitialized ? (bool?)DevExpress.Ui.DxGalleryInterop.GetShowIndicator(dxTarget).Result : showIndicator; set { if (isInitialized) { DevExpress.Ui.DxGalleryInterop.SetShowIndicator(dxTarget, value); @@ -127,7 +157,7 @@ return DevExpress.Ui.DxGalleryInterop.Init(dxTarget, options); bool? showNavButtons; [Parameter] bool? ShowNavButtons { - get => isInitialized ? DevExpress.Ui.DxGalleryInterop.GetShowNavButtons(dxTarget).Result : showNavButtons; + get => isInitialized ? (bool?)DevExpress.Ui.DxGalleryInterop.GetShowNavButtons(dxTarget).Result : showNavButtons; set { if (isInitialized) { DevExpress.Ui.DxGalleryInterop.SetShowNavButtons(dxTarget, value); @@ -139,7 +169,7 @@ return DevExpress.Ui.DxGalleryInterop.Init(dxTarget, options); float? slideshowDelay; [Parameter] float? SlideshowDelay { - get => isInitialized ? DevExpress.Ui.DxGalleryInterop.GetSlideshowDelay(dxTarget).Result : slideshowDelay; + get => isInitialized ? (float?)DevExpress.Ui.DxGalleryInterop.GetSlideshowDelay(dxTarget).Result : slideshowDelay; set { if (isInitialized) { DevExpress.Ui.DxGalleryInterop.SetSlideshowDelay(dxTarget, value); @@ -151,7 +181,7 @@ return DevExpress.Ui.DxGalleryInterop.Init(dxTarget, options); bool? stretchImages; [Parameter] bool? StretchImages { - get => isInitialized ? DevExpress.Ui.DxGalleryInterop.GetStretchImages(dxTarget).Result : stretchImages; + get => isInitialized ? (bool?)DevExpress.Ui.DxGalleryInterop.GetStretchImages(dxTarget).Result : stretchImages; set { if (isInitialized) { DevExpress.Ui.DxGalleryInterop.SetStretchImages(dxTarget, value); @@ -163,7 +193,7 @@ return DevExpress.Ui.DxGalleryInterop.Init(dxTarget, options); bool? swipeEnabled; [Parameter] bool? SwipeEnabled { - get => isInitialized ? DevExpress.Ui.DxGalleryInterop.GetSwipeEnabled(dxTarget).Result : swipeEnabled; + get => isInitialized ? (bool?)DevExpress.Ui.DxGalleryInterop.GetSwipeEnabled(dxTarget).Result : swipeEnabled; set { if (isInitialized) { DevExpress.Ui.DxGalleryInterop.SetSwipeEnabled(dxTarget, value); @@ -175,7 +205,7 @@ return DevExpress.Ui.DxGalleryInterop.Init(dxTarget, options); bool? wrapAround; [Parameter] bool? WrapAround { - get => isInitialized ? DevExpress.Ui.DxGalleryInterop.GetWrapAround(dxTarget).Result : wrapAround; + get => isInitialized ? (bool?)DevExpress.Ui.DxGalleryInterop.GetWrapAround(dxTarget).Result : wrapAround; set { if (isInitialized) { DevExpress.Ui.DxGalleryInterop.SetWrapAround(dxTarget, value); @@ -184,8 +214,386 @@ return DevExpress.Ui.DxGalleryInterop.Init(dxTarget, options); } } } + object dataSource; + [Parameter] + object DataSource { + get => isInitialized ? DevExpress.Ui.DxGalleryInterop.GetDataSource(dxTarget).Result : dataSource; + set { + if (isInitialized) { + DevExpress.Ui.DxGalleryInterop.SetDataSource(dxTarget, value); + } else { + this.dataSource = value; + } + } + } + float? itemHoldTimeout; + [Parameter] + float? ItemHoldTimeout { + get => isInitialized ? (float?)DevExpress.Ui.DxGalleryInterop.GetItemHoldTimeout(dxTarget).Result : itemHoldTimeout; + set { + if (isInitialized) { + DevExpress.Ui.DxGalleryInterop.SetItemHoldTimeout(dxTarget, value); + } else { + this.itemHoldTimeout = value; + } + } + } + object items; + [Parameter] + object Items { + get => isInitialized ? DevExpress.Ui.DxGalleryInterop.GetItems(dxTarget).Result : items; + set { + if (isInitialized) { + DevExpress.Ui.DxGalleryInterop.SetItems(dxTarget, value); + } else { + this.items = value; + } + } + } + object itemTemplate; + [Parameter] + object ItemTemplate { + get => isInitialized ? DevExpress.Ui.DxGalleryInterop.GetItemTemplate(dxTarget).Result : itemTemplate; + set { + if (isInitialized) { + DevExpress.Ui.DxGalleryInterop.SetItemTemplate(dxTarget, value); + } else { + this.itemTemplate = value; + } + } + } + object keyExpr; + [Parameter] + object KeyExpr { + get => isInitialized ? DevExpress.Ui.DxGalleryInterop.GetKeyExpr(dxTarget).Result : keyExpr; + set { + if (isInitialized) { + DevExpress.Ui.DxGalleryInterop.SetKeyExpr(dxTarget, value); + } else { + this.keyExpr = value; + } + } + } + string noDataText; + [Parameter] + string NoDataText { + get => isInitialized ? (string)DevExpress.Ui.DxGalleryInterop.GetNoDataText(dxTarget).Result : noDataText; + set { + if (isInitialized) { + DevExpress.Ui.DxGalleryInterop.SetNoDataText(dxTarget, value); + } else { + this.noDataText = value; + } + } + } + object selectedItem; + [Parameter] + object SelectedItem { + get => isInitialized ? DevExpress.Ui.DxGalleryInterop.GetSelectedItem(dxTarget).Result : selectedItem; + set { + if (isInitialized) { + DevExpress.Ui.DxGalleryInterop.SetSelectedItem(dxTarget, value); + } else { + this.selectedItem = value; + } + } + } + object selectedItemKeys; + [Parameter] + object SelectedItemKeys { + get => isInitialized ? DevExpress.Ui.DxGalleryInterop.GetSelectedItemKeys(dxTarget).Result : selectedItemKeys; + set { + if (isInitialized) { + DevExpress.Ui.DxGalleryInterop.SetSelectedItemKeys(dxTarget, value); + } else { + this.selectedItemKeys = value; + } + } + } + object selectedItems; + [Parameter] + object SelectedItems { + get => isInitialized ? DevExpress.Ui.DxGalleryInterop.GetSelectedItems(dxTarget).Result : selectedItems; + set { + if (isInitialized) { + DevExpress.Ui.DxGalleryInterop.SetSelectedItems(dxTarget, value); + } else { + this.selectedItems = value; + } + } + } + string accessKey; + [Parameter] + string AccessKey { + get => isInitialized ? (string)DevExpress.Ui.DxGalleryInterop.GetAccessKey(dxTarget).Result : accessKey; + set { + if (isInitialized) { + DevExpress.Ui.DxGalleryInterop.SetAccessKey(dxTarget, value); + } else { + this.accessKey = value; + } + } + } + bool? activeStateEnabled; + [Parameter] + bool? ActiveStateEnabled { + get => isInitialized ? (bool?)DevExpress.Ui.DxGalleryInterop.GetActiveStateEnabled(dxTarget).Result : activeStateEnabled; + set { + if (isInitialized) { + DevExpress.Ui.DxGalleryInterop.SetActiveStateEnabled(dxTarget, value); + } else { + this.activeStateEnabled = value; + } + } + } + bool? disabled; + [Parameter] + bool? Disabled { + get => isInitialized ? (bool?)DevExpress.Ui.DxGalleryInterop.GetDisabled(dxTarget).Result : disabled; + set { + if (isInitialized) { + DevExpress.Ui.DxGalleryInterop.SetDisabled(dxTarget, value); + } else { + this.disabled = value; + } + } + } + string hint; + [Parameter] + string Hint { + get => isInitialized ? (string)DevExpress.Ui.DxGalleryInterop.GetHint(dxTarget).Result : hint; + set { + if (isInitialized) { + DevExpress.Ui.DxGalleryInterop.SetHint(dxTarget, value); + } else { + this.hint = value; + } + } + } + bool? hoverStateEnabled; + [Parameter] + bool? HoverStateEnabled { + get => isInitialized ? (bool?)DevExpress.Ui.DxGalleryInterop.GetHoverStateEnabled(dxTarget).Result : hoverStateEnabled; + set { + if (isInitialized) { + DevExpress.Ui.DxGalleryInterop.SetHoverStateEnabled(dxTarget, value); + } else { + this.hoverStateEnabled = value; + } + } + } + float? tabIndex; + [Parameter] + float? TabIndex { + get => isInitialized ? (float?)DevExpress.Ui.DxGalleryInterop.GetTabIndex(dxTarget).Result : tabIndex; + set { + if (isInitialized) { + DevExpress.Ui.DxGalleryInterop.SetTabIndex(dxTarget, value); + } else { + this.tabIndex = value; + } + } + } + bool? visible; + [Parameter] + bool? Visible { + get => isInitialized ? (bool?)DevExpress.Ui.DxGalleryInterop.GetVisible(dxTarget).Result : visible; + set { + if (isInitialized) { + DevExpress.Ui.DxGalleryInterop.SetVisible(dxTarget, value); + } else { + this.visible = value; + } + } + } + object bindingOptions; + [Parameter] + object BindingOptions { + get => isInitialized ? DevExpress.Ui.DxGalleryInterop.GetBindingOptions(dxTarget).Result : bindingOptions; + set { + if (isInitialized) { + DevExpress.Ui.DxGalleryInterop.SetBindingOptions(dxTarget, value); + } else { + this.bindingOptions = value; + } + } + } + object elementAttr; + [Parameter] + object ElementAttr { + get => isInitialized ? DevExpress.Ui.DxGalleryInterop.GetElementAttr(dxTarget).Result : elementAttr; + set { + if (isInitialized) { + DevExpress.Ui.DxGalleryInterop.SetElementAttr(dxTarget, value); + } else { + this.elementAttr = value; + } + } + } + object height; + [Parameter] + object Height { + get => isInitialized ? DevExpress.Ui.DxGalleryInterop.GetHeight(dxTarget).Result : height; + set { + if (isInitialized) { + DevExpress.Ui.DxGalleryInterop.SetHeight(dxTarget, value); + } else { + this.height = value; + } + } + } + bool? rtlEnabled; + [Parameter] + bool? RtlEnabled { + get => isInitialized ? (bool?)DevExpress.Ui.DxGalleryInterop.GetRtlEnabled(dxTarget).Result : rtlEnabled; + set { + if (isInitialized) { + DevExpress.Ui.DxGalleryInterop.SetRtlEnabled(dxTarget, value); + } else { + this.rtlEnabled = value; + } + } + } + object width; + [Parameter] + object Width { + get => isInitialized ? DevExpress.Ui.DxGalleryInterop.GetWidth(dxTarget).Result : width; + set { + if (isInitialized) { + DevExpress.Ui.DxGalleryInterop.SetWidth(dxTarget, value); + } else { + this.width = value; + } + } + } + bool? onItemClickEnabled; + [Parameter] + bool? OnItemClickEnabled { + get => onItemClickEnabled; + set => this.onItemClickEnabled = value; + } + bool? onItemContextMenuEnabled; + [Parameter] + bool? OnItemContextMenuEnabled { + get => onItemContextMenuEnabled; + set => this.onItemContextMenuEnabled = value; + } + bool? onItemHoldEnabled; + [Parameter] + bool? OnItemHoldEnabled { + get => onItemHoldEnabled; + set => this.onItemHoldEnabled = value; + } + bool? onItemRenderedEnabled; + [Parameter] + bool? OnItemRenderedEnabled { + get => onItemRenderedEnabled; + set => this.onItemRenderedEnabled = value; + } + bool? onSelectionChangedEnabled; + [Parameter] + bool? OnSelectionChangedEnabled { + get => onSelectionChangedEnabled; + set => this.onSelectionChangedEnabled = value; + } + bool? onContentReadyEnabled; + [Parameter] + bool? OnContentReadyEnabled { + get => onContentReadyEnabled; + set => this.onContentReadyEnabled = value; + } + bool? onDisposingEnabled; + [Parameter] + bool? OnDisposingEnabled { + get => onDisposingEnabled; + set => this.onDisposingEnabled = value; + } + bool? onOptionChangedEnabled; + [Parameter] + bool? OnOptionChangedEnabled { + get => onOptionChangedEnabled; + set => this.onOptionChangedEnabled = value; + } + bool? onInitializedEnabled; + [Parameter] + bool? OnInitializedEnabled { + get => onInitializedEnabled; + set => this.onInitializedEnabled = value; + } protected override async Task OnInitAsync() { await base.OnInitAsync(); + DevExpress.Ui.DxGalleryInterop.ItemClick += DxGallery_ItemClick; + DevExpress.Ui.DxGalleryInterop.ItemContextMenu += DxGallery_ItemContextMenu; + DevExpress.Ui.DxGalleryInterop.ItemHold += DxGallery_ItemHold; + DevExpress.Ui.DxGalleryInterop.ItemRendered += DxGallery_ItemRendered; + DevExpress.Ui.DxGalleryInterop.SelectionChanged += DxGallery_SelectionChanged; + DevExpress.Ui.DxGalleryInterop.ContentReady += DxGallery_ContentReady; + DevExpress.Ui.DxGalleryInterop.Disposing += DxGallery_Disposing; + DevExpress.Ui.DxGalleryInterop.OptionChanged += DxGallery_OptionChanged; + DevExpress.Ui.DxGalleryInterop.Initialized += DxGallery_Initialized; + } + [Parameter] + Action ItemClick { get; set; } + void DxGallery_ItemClick(object sender, JQueryEventArgs e) { + if (e.Identifier == Id) { + ItemClick?.Invoke(); + } + } + [Parameter] + Action ItemContextMenu { get; set; } + void DxGallery_ItemContextMenu(object sender, JQueryEventArgs e) { + if (e.Identifier == Id) { + ItemContextMenu?.Invoke(); + } + } + [Parameter] + Action ItemHold { get; set; } + void DxGallery_ItemHold(object sender, JQueryEventArgs e) { + if (e.Identifier == Id) { + ItemHold?.Invoke(); + } + } + [Parameter] + Action ItemRendered { get; set; } + void DxGallery_ItemRendered(object sender, JQueryEventArgs e) { + if (e.Identifier == Id) { + ItemRendered?.Invoke(); + } + } + [Parameter] + Action SelectionChanged { get; set; } + void DxGallery_SelectionChanged(object sender, JQueryEventArgs e) { + if (e.Identifier == Id) { + SelectionChanged?.Invoke(); + } + } + [Parameter] + Action ContentReady { get; set; } + void DxGallery_ContentReady(object sender, JQueryEventArgs e) { + if (e.Identifier == Id) { + ContentReady?.Invoke(); + } + } + [Parameter] + Action Disposing { get; set; } + void DxGallery_Disposing(object sender, JQueryEventArgs e) { + if (e.Identifier == Id) { + Disposing?.Invoke(); + } + } + [Parameter] + Action OptionChanged { get; set; } + void DxGallery_OptionChanged(object sender, JQueryEventArgs e) { + if (e.Identifier == Id) { + OptionChanged?.Invoke(); + } + } + [Parameter] + Action Initialized { get; set; } + void DxGallery_Initialized(object sender, JQueryEventArgs e) { + if (e.Identifier == Id) { + Initialized?.Invoke(); + } } public object GoToItem(float itemIndex, bool animation) { return DevExpress.Ui.DxGalleryInterop.GoToItem(dxTarget, itemIndex, animation).Result; @@ -197,5 +605,14 @@ return DevExpress.Ui.DxGalleryInterop.Init(dxTarget, options); return DevExpress.Ui.DxGalleryInterop.PrevItem(dxTarget, animation).Result; } public void Dispose() { + DevExpress.Ui.DxGalleryInterop.ItemClick -= DxGallery_ItemClick; + DevExpress.Ui.DxGalleryInterop.ItemContextMenu -= DxGallery_ItemContextMenu; + DevExpress.Ui.DxGalleryInterop.ItemHold -= DxGallery_ItemHold; + DevExpress.Ui.DxGalleryInterop.ItemRendered -= DxGallery_ItemRendered; + DevExpress.Ui.DxGalleryInterop.SelectionChanged -= DxGallery_SelectionChanged; + DevExpress.Ui.DxGalleryInterop.ContentReady -= DxGallery_ContentReady; + DevExpress.Ui.DxGalleryInterop.Disposing -= DxGallery_Disposing; + DevExpress.Ui.DxGalleryInterop.OptionChanged -= DxGallery_OptionChanged; + DevExpress.Ui.DxGalleryInterop.Initialized -= DxGallery_Initialized; } } diff --git a/sources/BlazorDevExtreme/Components/DxLinearGauge.cshtml b/sources/BlazorDevExtreme/Components/DxLinearGauge.cshtml index d97a721..5b498f1 100644 --- a/sources/BlazorDevExtreme/Components/DxLinearGauge.cshtml +++ b/sources/BlazorDevExtreme/Components/DxLinearGauge.cshtml @@ -15,10 +15,39 @@ scale = scale, subvalueIndicator = subvalueIndicator, valueIndicator = valueIndicator, + animation = animation, + containerBackgroundColor = containerBackgroundColor, + subtitle = subtitle, + subvalues = subvalues, + title = title, + tooltip = tooltip, + value = value, + export = export, + loadingIndicator = loadingIndicator, + margin = margin, + pathModified = pathModified, + redrawOnResize = redrawOnResize, + rtlEnabled = rtlEnabled, + size = size, + theme = theme, + bindingOptions = bindingOptions, + elementAttr = elementAttr, + height = height, + width = width, + onTooltipHiddenEnabled = onTooltipHiddenEnabled, + onTooltipShownEnabled = onTooltipShownEnabled, + onDrawnEnabled = onDrawnEnabled, + onExportedEnabled = onExportedEnabled, + onExportingEnabled = onExportingEnabled, + onFileSavingEnabled = onFileSavingEnabled, + onIncidentOccurredEnabled = onIncidentOccurredEnabled, + onDisposingEnabled = onDisposingEnabled, + onOptionChangedEnabled = onOptionChangedEnabled, + onInitializedEnabled = onInitializedEnabled, }; } protected override Task Init(DevExpress.Viz.Gauges.DxLinearGaugeOptions options) { -return DevExpress.Viz.DxLinearGaugeInterop.Init(dxTarget, options); + return DevExpress.Viz.DxLinearGaugeInterop.Init(dxTarget, options); } object geometry; [Parameter] @@ -80,9 +109,387 @@ return DevExpress.Viz.DxLinearGaugeInterop.Init(dxTarget, options); } } } + object animation; + [Parameter] + object Animation { + get => isInitialized ? DevExpress.Viz.DxLinearGaugeInterop.GetAnimation(dxTarget).Result : animation; + set { + if (isInitialized) { + DevExpress.Viz.DxLinearGaugeInterop.SetAnimation(dxTarget, value); + } else { + this.animation = value; + } + } + } + string containerBackgroundColor; + [Parameter] + string ContainerBackgroundColor { + get => isInitialized ? (string)DevExpress.Viz.DxLinearGaugeInterop.GetContainerBackgroundColor(dxTarget).Result : containerBackgroundColor; + set { + if (isInitialized) { + DevExpress.Viz.DxLinearGaugeInterop.SetContainerBackgroundColor(dxTarget, value); + } else { + this.containerBackgroundColor = value; + } + } + } + object subtitle; + [Parameter] + object Subtitle { + get => isInitialized ? DevExpress.Viz.DxLinearGaugeInterop.GetSubtitle(dxTarget).Result : subtitle; + set { + if (isInitialized) { + DevExpress.Viz.DxLinearGaugeInterop.SetSubtitle(dxTarget, value); + } else { + this.subtitle = value; + } + } + } + object subvalues; + [Parameter] + object Subvalues { + get => isInitialized ? DevExpress.Viz.DxLinearGaugeInterop.GetSubvalues(dxTarget).Result : subvalues; + set { + if (isInitialized) { + DevExpress.Viz.DxLinearGaugeInterop.SetSubvalues(dxTarget, value); + } else { + this.subvalues = value; + } + } + } + object title; + [Parameter] + object Title { + get => isInitialized ? DevExpress.Viz.DxLinearGaugeInterop.GetTitle(dxTarget).Result : title; + set { + if (isInitialized) { + DevExpress.Viz.DxLinearGaugeInterop.SetTitle(dxTarget, value); + } else { + this.title = value; + } + } + } + object tooltip; + [Parameter] + object Tooltip { + get => isInitialized ? DevExpress.Viz.DxLinearGaugeInterop.GetTooltip(dxTarget).Result : tooltip; + set { + if (isInitialized) { + DevExpress.Viz.DxLinearGaugeInterop.SetTooltip(dxTarget, value); + } else { + this.tooltip = value; + } + } + } + float? value; + [Parameter] + float? Value { + get => isInitialized ? (float?)DevExpress.Viz.DxLinearGaugeInterop.GetValue(dxTarget).Result : value; + set { + if (isInitialized) { + DevExpress.Viz.DxLinearGaugeInterop.SetValue(dxTarget, value); + } else { + this.value = value; + } + } + } + object export; + [Parameter] + object Export { + get => isInitialized ? DevExpress.Viz.DxLinearGaugeInterop.GetExport(dxTarget).Result : export; + set { + if (isInitialized) { + DevExpress.Viz.DxLinearGaugeInterop.SetExport(dxTarget, value); + } else { + this.export = value; + } + } + } + object loadingIndicator; + [Parameter] + object LoadingIndicator { + get => isInitialized ? DevExpress.Viz.DxLinearGaugeInterop.GetLoadingIndicator(dxTarget).Result : loadingIndicator; + set { + if (isInitialized) { + DevExpress.Viz.DxLinearGaugeInterop.SetLoadingIndicator(dxTarget, value); + } else { + this.loadingIndicator = value; + } + } + } + object margin; + [Parameter] + object Margin { + get => isInitialized ? DevExpress.Viz.DxLinearGaugeInterop.GetMargin(dxTarget).Result : margin; + set { + if (isInitialized) { + DevExpress.Viz.DxLinearGaugeInterop.SetMargin(dxTarget, value); + } else { + this.margin = value; + } + } + } + bool? pathModified; + [Parameter] + bool? PathModified { + get => isInitialized ? (bool?)DevExpress.Viz.DxLinearGaugeInterop.GetPathModified(dxTarget).Result : pathModified; + set { + if (isInitialized) { + DevExpress.Viz.DxLinearGaugeInterop.SetPathModified(dxTarget, value); + } else { + this.pathModified = value; + } + } + } + bool? redrawOnResize; + [Parameter] + bool? RedrawOnResize { + get => isInitialized ? (bool?)DevExpress.Viz.DxLinearGaugeInterop.GetRedrawOnResize(dxTarget).Result : redrawOnResize; + set { + if (isInitialized) { + DevExpress.Viz.DxLinearGaugeInterop.SetRedrawOnResize(dxTarget, value); + } else { + this.redrawOnResize = value; + } + } + } + bool? rtlEnabled; + [Parameter] + bool? RtlEnabled { + get => isInitialized ? (bool?)DevExpress.Viz.DxLinearGaugeInterop.GetRtlEnabled(dxTarget).Result : rtlEnabled; + set { + if (isInitialized) { + DevExpress.Viz.DxLinearGaugeInterop.SetRtlEnabled(dxTarget, value); + } else { + this.rtlEnabled = value; + } + } + } + object size; + [Parameter] + object Size { + get => isInitialized ? DevExpress.Viz.DxLinearGaugeInterop.GetSize(dxTarget).Result : size; + set { + if (isInitialized) { + DevExpress.Viz.DxLinearGaugeInterop.SetSize(dxTarget, value); + } else { + this.size = value; + } + } + } + string theme; + [Parameter] + string Theme { + get => isInitialized ? (string)DevExpress.Viz.DxLinearGaugeInterop.GetTheme(dxTarget).Result : theme; + set { + if (isInitialized) { + DevExpress.Viz.DxLinearGaugeInterop.SetTheme(dxTarget, value); + } else { + this.theme = value; + } + } + } + object bindingOptions; + [Parameter] + object BindingOptions { + get => isInitialized ? DevExpress.Viz.DxLinearGaugeInterop.GetBindingOptions(dxTarget).Result : bindingOptions; + set { + if (isInitialized) { + DevExpress.Viz.DxLinearGaugeInterop.SetBindingOptions(dxTarget, value); + } else { + this.bindingOptions = value; + } + } + } + object elementAttr; + [Parameter] + object ElementAttr { + get => isInitialized ? DevExpress.Viz.DxLinearGaugeInterop.GetElementAttr(dxTarget).Result : elementAttr; + set { + if (isInitialized) { + DevExpress.Viz.DxLinearGaugeInterop.SetElementAttr(dxTarget, value); + } else { + this.elementAttr = value; + } + } + } + object height; + [Parameter] + object Height { + get => isInitialized ? DevExpress.Viz.DxLinearGaugeInterop.GetHeight(dxTarget).Result : height; + set { + if (isInitialized) { + DevExpress.Viz.DxLinearGaugeInterop.SetHeight(dxTarget, value); + } else { + this.height = value; + } + } + } + object width; + [Parameter] + object Width { + get => isInitialized ? DevExpress.Viz.DxLinearGaugeInterop.GetWidth(dxTarget).Result : width; + set { + if (isInitialized) { + DevExpress.Viz.DxLinearGaugeInterop.SetWidth(dxTarget, value); + } else { + this.width = value; + } + } + } + bool? onTooltipHiddenEnabled; + [Parameter] + bool? OnTooltipHiddenEnabled { + get => onTooltipHiddenEnabled; + set => this.onTooltipHiddenEnabled = value; + } + bool? onTooltipShownEnabled; + [Parameter] + bool? OnTooltipShownEnabled { + get => onTooltipShownEnabled; + set => this.onTooltipShownEnabled = value; + } + bool? onDrawnEnabled; + [Parameter] + bool? OnDrawnEnabled { + get => onDrawnEnabled; + set => this.onDrawnEnabled = value; + } + bool? onExportedEnabled; + [Parameter] + bool? OnExportedEnabled { + get => onExportedEnabled; + set => this.onExportedEnabled = value; + } + bool? onExportingEnabled; + [Parameter] + bool? OnExportingEnabled { + get => onExportingEnabled; + set => this.onExportingEnabled = value; + } + bool? onFileSavingEnabled; + [Parameter] + bool? OnFileSavingEnabled { + get => onFileSavingEnabled; + set => this.onFileSavingEnabled = value; + } + bool? onIncidentOccurredEnabled; + [Parameter] + bool? OnIncidentOccurredEnabled { + get => onIncidentOccurredEnabled; + set => this.onIncidentOccurredEnabled = value; + } + bool? onDisposingEnabled; + [Parameter] + bool? OnDisposingEnabled { + get => onDisposingEnabled; + set => this.onDisposingEnabled = value; + } + bool? onOptionChangedEnabled; + [Parameter] + bool? OnOptionChangedEnabled { + get => onOptionChangedEnabled; + set => this.onOptionChangedEnabled = value; + } + bool? onInitializedEnabled; + [Parameter] + bool? OnInitializedEnabled { + get => onInitializedEnabled; + set => this.onInitializedEnabled = value; + } protected override async Task OnInitAsync() { await base.OnInitAsync(); + DevExpress.Viz.DxLinearGaugeInterop.TooltipHidden += DxLinearGauge_TooltipHidden; + DevExpress.Viz.DxLinearGaugeInterop.TooltipShown += DxLinearGauge_TooltipShown; + DevExpress.Viz.DxLinearGaugeInterop.Drawn += DxLinearGauge_Drawn; + DevExpress.Viz.DxLinearGaugeInterop.Exported += DxLinearGauge_Exported; + DevExpress.Viz.DxLinearGaugeInterop.Exporting += DxLinearGauge_Exporting; + DevExpress.Viz.DxLinearGaugeInterop.FileSaving += DxLinearGauge_FileSaving; + DevExpress.Viz.DxLinearGaugeInterop.IncidentOccurred += DxLinearGauge_IncidentOccurred; + DevExpress.Viz.DxLinearGaugeInterop.Disposing += DxLinearGauge_Disposing; + DevExpress.Viz.DxLinearGaugeInterop.OptionChanged += DxLinearGauge_OptionChanged; + DevExpress.Viz.DxLinearGaugeInterop.Initialized += DxLinearGauge_Initialized; + } + [Parameter] + Action TooltipHidden { get; set; } + void DxLinearGauge_TooltipHidden(object sender, JQueryEventArgs e) { + if (e.Identifier == Id) { + TooltipHidden?.Invoke(); + } + } + [Parameter] + Action TooltipShown { get; set; } + void DxLinearGauge_TooltipShown(object sender, JQueryEventArgs e) { + if (e.Identifier == Id) { + TooltipShown?.Invoke(); + } + } + [Parameter] + Action Drawn { get; set; } + void DxLinearGauge_Drawn(object sender, JQueryEventArgs e) { + if (e.Identifier == Id) { + Drawn?.Invoke(); + } + } + [Parameter] + Action Exported { get; set; } + void DxLinearGauge_Exported(object sender, JQueryEventArgs e) { + if (e.Identifier == Id) { + Exported?.Invoke(); + } + } + [Parameter] + Action Exporting { get; set; } + void DxLinearGauge_Exporting(object sender, JQueryEventArgs e) { + if (e.Identifier == Id) { + Exporting?.Invoke(); + } + } + [Parameter] + Action FileSaving { get; set; } + void DxLinearGauge_FileSaving(object sender, JQueryEventArgs e) { + if (e.Identifier == Id) { + FileSaving?.Invoke(); + } + } + [Parameter] + Action IncidentOccurred { get; set; } + void DxLinearGauge_IncidentOccurred(object sender, JQueryEventArgs e) { + if (e.Identifier == Id) { + IncidentOccurred?.Invoke(); + } + } + [Parameter] + Action Disposing { get; set; } + void DxLinearGauge_Disposing(object sender, JQueryEventArgs e) { + if (e.Identifier == Id) { + Disposing?.Invoke(); + } + } + [Parameter] + Action OptionChanged { get; set; } + void DxLinearGauge_OptionChanged(object sender, JQueryEventArgs e) { + if (e.Identifier == Id) { + OptionChanged?.Invoke(); + } + } + [Parameter] + Action Initialized { get; set; } + void DxLinearGauge_Initialized(object sender, JQueryEventArgs e) { + if (e.Identifier == Id) { + Initialized?.Invoke(); + } } public void Dispose() { + DevExpress.Viz.DxLinearGaugeInterop.TooltipHidden -= DxLinearGauge_TooltipHidden; + DevExpress.Viz.DxLinearGaugeInterop.TooltipShown -= DxLinearGauge_TooltipShown; + DevExpress.Viz.DxLinearGaugeInterop.Drawn -= DxLinearGauge_Drawn; + DevExpress.Viz.DxLinearGaugeInterop.Exported -= DxLinearGauge_Exported; + DevExpress.Viz.DxLinearGaugeInterop.Exporting -= DxLinearGauge_Exporting; + DevExpress.Viz.DxLinearGaugeInterop.FileSaving -= DxLinearGauge_FileSaving; + DevExpress.Viz.DxLinearGaugeInterop.IncidentOccurred -= DxLinearGauge_IncidentOccurred; + DevExpress.Viz.DxLinearGaugeInterop.Disposing -= DxLinearGauge_Disposing; + DevExpress.Viz.DxLinearGaugeInterop.OptionChanged -= DxLinearGauge_OptionChanged; + DevExpress.Viz.DxLinearGaugeInterop.Initialized -= DxLinearGauge_Initialized; } } diff --git a/sources/BlazorDevExtreme/Components/DxList.cshtml b/sources/BlazorDevExtreme/Components/DxList.cshtml index 7ee4bd5..944398f 100644 --- a/sources/BlazorDevExtreme/Components/DxList.cshtml +++ b/sources/BlazorDevExtreme/Components/DxList.cshtml @@ -38,6 +38,32 @@ showScrollbar = showScrollbar, showSelectionControls = showSelectionControls, useNativeScrolling = useNativeScrolling, + dataSource = dataSource, + itemHoldTimeout = itemHoldTimeout, + items = items, + itemTemplate = itemTemplate, + keyExpr = keyExpr, + noDataText = noDataText, + selectedIndex = selectedIndex, + selectedItem = selectedItem, + selectedItemKeys = selectedItemKeys, + selectedItems = selectedItems, + accessKey = accessKey, + disabled = disabled, + hint = hint, + tabIndex = tabIndex, + visible = visible, + bindingOptions = bindingOptions, + elementAttr = elementAttr, + height = height, + rtlEnabled = rtlEnabled, + width = width, + searchEditorOptions = searchEditorOptions, + searchEnabled = searchEnabled, + searchExpr = searchExpr, + searchMode = searchMode, + searchTimeout = searchTimeout, + searchValue = searchValue, onGroupRenderedEnabled = onGroupRenderedEnabled, onItemClickEnabled = onItemClickEnabled, onItemContextMenuEnabled = onItemContextMenuEnabled, @@ -50,15 +76,21 @@ onPullRefreshEnabled = onPullRefreshEnabled, onScrollEnabled = onScrollEnabled, onSelectAllValueChangedEnabled = onSelectAllValueChangedEnabled, + onItemRenderedEnabled = onItemRenderedEnabled, + onSelectionChangedEnabled = onSelectionChangedEnabled, + onContentReadyEnabled = onContentReadyEnabled, + onDisposingEnabled = onDisposingEnabled, + onOptionChangedEnabled = onOptionChangedEnabled, + onInitializedEnabled = onInitializedEnabled, }; } protected override Task Init(DevExpress.Ui.DxListOptions options) { -return DevExpress.Ui.DxListInterop.Init(dxTarget, options); + return DevExpress.Ui.DxListInterop.Init(dxTarget, options); } bool? activeStateEnabled; [Parameter] bool? ActiveStateEnabled { - get => isInitialized ? DevExpress.Ui.DxListInterop.GetActiveStateEnabled(dxTarget).Result : activeStateEnabled; + get => isInitialized ? (bool?)DevExpress.Ui.DxListInterop.GetActiveStateEnabled(dxTarget).Result : activeStateEnabled; set { if (isInitialized) { DevExpress.Ui.DxListInterop.SetActiveStateEnabled(dxTarget, value); @@ -70,7 +102,7 @@ return DevExpress.Ui.DxListInterop.Init(dxTarget, options); bool? allowItemDeleting; [Parameter] bool? AllowItemDeleting { - get => isInitialized ? DevExpress.Ui.DxListInterop.GetAllowItemDeleting(dxTarget).Result : allowItemDeleting; + get => isInitialized ? (bool?)DevExpress.Ui.DxListInterop.GetAllowItemDeleting(dxTarget).Result : allowItemDeleting; set { if (isInitialized) { DevExpress.Ui.DxListInterop.SetAllowItemDeleting(dxTarget, value); @@ -82,7 +114,7 @@ return DevExpress.Ui.DxListInterop.Init(dxTarget, options); bool? allowItemReordering; [Parameter] bool? AllowItemReordering { - get => isInitialized ? DevExpress.Ui.DxListInterop.GetAllowItemReordering(dxTarget).Result : allowItemReordering; + get => isInitialized ? (bool?)DevExpress.Ui.DxListInterop.GetAllowItemReordering(dxTarget).Result : allowItemReordering; set { if (isInitialized) { DevExpress.Ui.DxListInterop.SetAllowItemReordering(dxTarget, value); @@ -94,7 +126,7 @@ return DevExpress.Ui.DxListInterop.Init(dxTarget, options); bool? bounceEnabled; [Parameter] bool? BounceEnabled { - get => isInitialized ? DevExpress.Ui.DxListInterop.GetBounceEnabled(dxTarget).Result : bounceEnabled; + get => isInitialized ? (bool?)DevExpress.Ui.DxListInterop.GetBounceEnabled(dxTarget).Result : bounceEnabled; set { if (isInitialized) { DevExpress.Ui.DxListInterop.SetBounceEnabled(dxTarget, value); @@ -106,7 +138,7 @@ return DevExpress.Ui.DxListInterop.Init(dxTarget, options); bool? collapsibleGroups; [Parameter] bool? CollapsibleGroups { - get => isInitialized ? DevExpress.Ui.DxListInterop.GetCollapsibleGroups(dxTarget).Result : collapsibleGroups; + get => isInitialized ? (bool?)DevExpress.Ui.DxListInterop.GetCollapsibleGroups(dxTarget).Result : collapsibleGroups; set { if (isInitialized) { DevExpress.Ui.DxListInterop.SetCollapsibleGroups(dxTarget, value); @@ -118,7 +150,7 @@ return DevExpress.Ui.DxListInterop.Init(dxTarget, options); bool? focusStateEnabled; [Parameter] bool? FocusStateEnabled { - get => isInitialized ? DevExpress.Ui.DxListInterop.GetFocusStateEnabled(dxTarget).Result : focusStateEnabled; + get => isInitialized ? (bool?)DevExpress.Ui.DxListInterop.GetFocusStateEnabled(dxTarget).Result : focusStateEnabled; set { if (isInitialized) { DevExpress.Ui.DxListInterop.SetFocusStateEnabled(dxTarget, value); @@ -130,7 +162,7 @@ return DevExpress.Ui.DxListInterop.Init(dxTarget, options); bool? grouped; [Parameter] bool? Grouped { - get => isInitialized ? DevExpress.Ui.DxListInterop.GetGrouped(dxTarget).Result : grouped; + get => isInitialized ? (bool?)DevExpress.Ui.DxListInterop.GetGrouped(dxTarget).Result : grouped; set { if (isInitialized) { DevExpress.Ui.DxListInterop.SetGrouped(dxTarget, value); @@ -154,7 +186,7 @@ return DevExpress.Ui.DxListInterop.Init(dxTarget, options); bool? hoverStateEnabled; [Parameter] bool? HoverStateEnabled { - get => isInitialized ? DevExpress.Ui.DxListInterop.GetHoverStateEnabled(dxTarget).Result : hoverStateEnabled; + get => isInitialized ? (bool?)DevExpress.Ui.DxListInterop.GetHoverStateEnabled(dxTarget).Result : hoverStateEnabled; set { if (isInitialized) { DevExpress.Ui.DxListInterop.SetHoverStateEnabled(dxTarget, value); @@ -166,7 +198,7 @@ return DevExpress.Ui.DxListInterop.Init(dxTarget, options); bool? indicateLoading; [Parameter] bool? IndicateLoading { - get => isInitialized ? DevExpress.Ui.DxListInterop.GetIndicateLoading(dxTarget).Result : indicateLoading; + get => isInitialized ? (bool?)DevExpress.Ui.DxListInterop.GetIndicateLoading(dxTarget).Result : indicateLoading; set { if (isInitialized) { DevExpress.Ui.DxListInterop.SetIndicateLoading(dxTarget, value); @@ -178,7 +210,7 @@ return DevExpress.Ui.DxListInterop.Init(dxTarget, options); string itemDeleteMode; [Parameter] string ItemDeleteMode { - get => isInitialized ? DevExpress.Ui.DxListInterop.GetItemDeleteMode(dxTarget).Result : itemDeleteMode; + get => isInitialized ? (string)DevExpress.Ui.DxListInterop.GetItemDeleteMode(dxTarget).Result : itemDeleteMode; set { if (isInitialized) { DevExpress.Ui.DxListInterop.SetItemDeleteMode(dxTarget, value); @@ -202,7 +234,7 @@ return DevExpress.Ui.DxListInterop.Init(dxTarget, options); string menuMode; [Parameter] string MenuMode { - get => isInitialized ? DevExpress.Ui.DxListInterop.GetMenuMode(dxTarget).Result : menuMode; + get => isInitialized ? (string)DevExpress.Ui.DxListInterop.GetMenuMode(dxTarget).Result : menuMode; set { if (isInitialized) { DevExpress.Ui.DxListInterop.SetMenuMode(dxTarget, value); @@ -214,7 +246,7 @@ return DevExpress.Ui.DxListInterop.Init(dxTarget, options); string nextButtonText; [Parameter] string NextButtonText { - get => isInitialized ? DevExpress.Ui.DxListInterop.GetNextButtonText(dxTarget).Result : nextButtonText; + get => isInitialized ? (string)DevExpress.Ui.DxListInterop.GetNextButtonText(dxTarget).Result : nextButtonText; set { if (isInitialized) { DevExpress.Ui.DxListInterop.SetNextButtonText(dxTarget, value); @@ -226,7 +258,7 @@ return DevExpress.Ui.DxListInterop.Init(dxTarget, options); string pageLoadingText; [Parameter] string PageLoadingText { - get => isInitialized ? DevExpress.Ui.DxListInterop.GetPageLoadingText(dxTarget).Result : pageLoadingText; + get => isInitialized ? (string)DevExpress.Ui.DxListInterop.GetPageLoadingText(dxTarget).Result : pageLoadingText; set { if (isInitialized) { DevExpress.Ui.DxListInterop.SetPageLoadingText(dxTarget, value); @@ -238,7 +270,7 @@ return DevExpress.Ui.DxListInterop.Init(dxTarget, options); string pageLoadMode; [Parameter] string PageLoadMode { - get => isInitialized ? DevExpress.Ui.DxListInterop.GetPageLoadMode(dxTarget).Result : pageLoadMode; + get => isInitialized ? (string)DevExpress.Ui.DxListInterop.GetPageLoadMode(dxTarget).Result : pageLoadMode; set { if (isInitialized) { DevExpress.Ui.DxListInterop.SetPageLoadMode(dxTarget, value); @@ -250,7 +282,7 @@ return DevExpress.Ui.DxListInterop.Init(dxTarget, options); string pulledDownText; [Parameter] string PulledDownText { - get => isInitialized ? DevExpress.Ui.DxListInterop.GetPulledDownText(dxTarget).Result : pulledDownText; + get => isInitialized ? (string)DevExpress.Ui.DxListInterop.GetPulledDownText(dxTarget).Result : pulledDownText; set { if (isInitialized) { DevExpress.Ui.DxListInterop.SetPulledDownText(dxTarget, value); @@ -262,7 +294,7 @@ return DevExpress.Ui.DxListInterop.Init(dxTarget, options); string pullingDownText; [Parameter] string PullingDownText { - get => isInitialized ? DevExpress.Ui.DxListInterop.GetPullingDownText(dxTarget).Result : pullingDownText; + get => isInitialized ? (string)DevExpress.Ui.DxListInterop.GetPullingDownText(dxTarget).Result : pullingDownText; set { if (isInitialized) { DevExpress.Ui.DxListInterop.SetPullingDownText(dxTarget, value); @@ -274,7 +306,7 @@ return DevExpress.Ui.DxListInterop.Init(dxTarget, options); bool? pullRefreshEnabled; [Parameter] bool? PullRefreshEnabled { - get => isInitialized ? DevExpress.Ui.DxListInterop.GetPullRefreshEnabled(dxTarget).Result : pullRefreshEnabled; + get => isInitialized ? (bool?)DevExpress.Ui.DxListInterop.GetPullRefreshEnabled(dxTarget).Result : pullRefreshEnabled; set { if (isInitialized) { DevExpress.Ui.DxListInterop.SetPullRefreshEnabled(dxTarget, value); @@ -286,7 +318,7 @@ return DevExpress.Ui.DxListInterop.Init(dxTarget, options); string refreshingText; [Parameter] string RefreshingText { - get => isInitialized ? DevExpress.Ui.DxListInterop.GetRefreshingText(dxTarget).Result : refreshingText; + get => isInitialized ? (string)DevExpress.Ui.DxListInterop.GetRefreshingText(dxTarget).Result : refreshingText; set { if (isInitialized) { DevExpress.Ui.DxListInterop.SetRefreshingText(dxTarget, value); @@ -298,7 +330,7 @@ return DevExpress.Ui.DxListInterop.Init(dxTarget, options); bool? scrollByContent; [Parameter] bool? ScrollByContent { - get => isInitialized ? DevExpress.Ui.DxListInterop.GetScrollByContent(dxTarget).Result : scrollByContent; + get => isInitialized ? (bool?)DevExpress.Ui.DxListInterop.GetScrollByContent(dxTarget).Result : scrollByContent; set { if (isInitialized) { DevExpress.Ui.DxListInterop.SetScrollByContent(dxTarget, value); @@ -310,7 +342,7 @@ return DevExpress.Ui.DxListInterop.Init(dxTarget, options); bool? scrollByThumb; [Parameter] bool? ScrollByThumb { - get => isInitialized ? DevExpress.Ui.DxListInterop.GetScrollByThumb(dxTarget).Result : scrollByThumb; + get => isInitialized ? (bool?)DevExpress.Ui.DxListInterop.GetScrollByThumb(dxTarget).Result : scrollByThumb; set { if (isInitialized) { DevExpress.Ui.DxListInterop.SetScrollByThumb(dxTarget, value); @@ -322,7 +354,7 @@ return DevExpress.Ui.DxListInterop.Init(dxTarget, options); bool? scrollingEnabled; [Parameter] bool? ScrollingEnabled { - get => isInitialized ? DevExpress.Ui.DxListInterop.GetScrollingEnabled(dxTarget).Result : scrollingEnabled; + get => isInitialized ? (bool?)DevExpress.Ui.DxListInterop.GetScrollingEnabled(dxTarget).Result : scrollingEnabled; set { if (isInitialized) { DevExpress.Ui.DxListInterop.SetScrollingEnabled(dxTarget, value); @@ -334,7 +366,7 @@ return DevExpress.Ui.DxListInterop.Init(dxTarget, options); string selectAllMode; [Parameter] string SelectAllMode { - get => isInitialized ? DevExpress.Ui.DxListInterop.GetSelectAllMode(dxTarget).Result : selectAllMode; + get => isInitialized ? (string)DevExpress.Ui.DxListInterop.GetSelectAllMode(dxTarget).Result : selectAllMode; set { if (isInitialized) { DevExpress.Ui.DxListInterop.SetSelectAllMode(dxTarget, value); @@ -346,7 +378,7 @@ return DevExpress.Ui.DxListInterop.Init(dxTarget, options); string selectionMode; [Parameter] string SelectionMode { - get => isInitialized ? DevExpress.Ui.DxListInterop.GetSelectionMode(dxTarget).Result : selectionMode; + get => isInitialized ? (string)DevExpress.Ui.DxListInterop.GetSelectionMode(dxTarget).Result : selectionMode; set { if (isInitialized) { DevExpress.Ui.DxListInterop.SetSelectionMode(dxTarget, value); @@ -358,7 +390,7 @@ return DevExpress.Ui.DxListInterop.Init(dxTarget, options); string showScrollbar; [Parameter] string ShowScrollbar { - get => isInitialized ? DevExpress.Ui.DxListInterop.GetShowScrollbar(dxTarget).Result : showScrollbar; + get => isInitialized ? (string)DevExpress.Ui.DxListInterop.GetShowScrollbar(dxTarget).Result : showScrollbar; set { if (isInitialized) { DevExpress.Ui.DxListInterop.SetShowScrollbar(dxTarget, value); @@ -370,7 +402,7 @@ return DevExpress.Ui.DxListInterop.Init(dxTarget, options); bool? showSelectionControls; [Parameter] bool? ShowSelectionControls { - get => isInitialized ? DevExpress.Ui.DxListInterop.GetShowSelectionControls(dxTarget).Result : showSelectionControls; + get => isInitialized ? (bool?)DevExpress.Ui.DxListInterop.GetShowSelectionControls(dxTarget).Result : showSelectionControls; set { if (isInitialized) { DevExpress.Ui.DxListInterop.SetShowSelectionControls(dxTarget, value); @@ -382,7 +414,7 @@ return DevExpress.Ui.DxListInterop.Init(dxTarget, options); bool? useNativeScrolling; [Parameter] bool? UseNativeScrolling { - get => isInitialized ? DevExpress.Ui.DxListInterop.GetUseNativeScrolling(dxTarget).Result : useNativeScrolling; + get => isInitialized ? (bool?)DevExpress.Ui.DxListInterop.GetUseNativeScrolling(dxTarget).Result : useNativeScrolling; set { if (isInitialized) { DevExpress.Ui.DxListInterop.SetUseNativeScrolling(dxTarget, value); @@ -391,6 +423,318 @@ return DevExpress.Ui.DxListInterop.Init(dxTarget, options); } } } + object dataSource; + [Parameter] + object DataSource { + get => isInitialized ? DevExpress.Ui.DxListInterop.GetDataSource(dxTarget).Result : dataSource; + set { + if (isInitialized) { + DevExpress.Ui.DxListInterop.SetDataSource(dxTarget, value); + } else { + this.dataSource = value; + } + } + } + float? itemHoldTimeout; + [Parameter] + float? ItemHoldTimeout { + get => isInitialized ? (float?)DevExpress.Ui.DxListInterop.GetItemHoldTimeout(dxTarget).Result : itemHoldTimeout; + set { + if (isInitialized) { + DevExpress.Ui.DxListInterop.SetItemHoldTimeout(dxTarget, value); + } else { + this.itemHoldTimeout = value; + } + } + } + object items; + [Parameter] + object Items { + get => isInitialized ? DevExpress.Ui.DxListInterop.GetItems(dxTarget).Result : items; + set { + if (isInitialized) { + DevExpress.Ui.DxListInterop.SetItems(dxTarget, value); + } else { + this.items = value; + } + } + } + object itemTemplate; + [Parameter] + object ItemTemplate { + get => isInitialized ? DevExpress.Ui.DxListInterop.GetItemTemplate(dxTarget).Result : itemTemplate; + set { + if (isInitialized) { + DevExpress.Ui.DxListInterop.SetItemTemplate(dxTarget, value); + } else { + this.itemTemplate = value; + } + } + } + object keyExpr; + [Parameter] + object KeyExpr { + get => isInitialized ? DevExpress.Ui.DxListInterop.GetKeyExpr(dxTarget).Result : keyExpr; + set { + if (isInitialized) { + DevExpress.Ui.DxListInterop.SetKeyExpr(dxTarget, value); + } else { + this.keyExpr = value; + } + } + } + string noDataText; + [Parameter] + string NoDataText { + get => isInitialized ? (string)DevExpress.Ui.DxListInterop.GetNoDataText(dxTarget).Result : noDataText; + set { + if (isInitialized) { + DevExpress.Ui.DxListInterop.SetNoDataText(dxTarget, value); + } else { + this.noDataText = value; + } + } + } + float? selectedIndex; + [Parameter] + float? SelectedIndex { + get => isInitialized ? (float?)DevExpress.Ui.DxListInterop.GetSelectedIndex(dxTarget).Result : selectedIndex; + set { + if (isInitialized) { + DevExpress.Ui.DxListInterop.SetSelectedIndex(dxTarget, value); + } else { + this.selectedIndex = value; + } + } + } + object selectedItem; + [Parameter] + object SelectedItem { + get => isInitialized ? DevExpress.Ui.DxListInterop.GetSelectedItem(dxTarget).Result : selectedItem; + set { + if (isInitialized) { + DevExpress.Ui.DxListInterop.SetSelectedItem(dxTarget, value); + } else { + this.selectedItem = value; + } + } + } + object selectedItemKeys; + [Parameter] + object SelectedItemKeys { + get => isInitialized ? DevExpress.Ui.DxListInterop.GetSelectedItemKeys(dxTarget).Result : selectedItemKeys; + set { + if (isInitialized) { + DevExpress.Ui.DxListInterop.SetSelectedItemKeys(dxTarget, value); + } else { + this.selectedItemKeys = value; + } + } + } + object selectedItems; + [Parameter] + object SelectedItems { + get => isInitialized ? DevExpress.Ui.DxListInterop.GetSelectedItems(dxTarget).Result : selectedItems; + set { + if (isInitialized) { + DevExpress.Ui.DxListInterop.SetSelectedItems(dxTarget, value); + } else { + this.selectedItems = value; + } + } + } + string accessKey; + [Parameter] + string AccessKey { + get => isInitialized ? (string)DevExpress.Ui.DxListInterop.GetAccessKey(dxTarget).Result : accessKey; + set { + if (isInitialized) { + DevExpress.Ui.DxListInterop.SetAccessKey(dxTarget, value); + } else { + this.accessKey = value; + } + } + } + bool? disabled; + [Parameter] + bool? Disabled { + get => isInitialized ? (bool?)DevExpress.Ui.DxListInterop.GetDisabled(dxTarget).Result : disabled; + set { + if (isInitialized) { + DevExpress.Ui.DxListInterop.SetDisabled(dxTarget, value); + } else { + this.disabled = value; + } + } + } + string hint; + [Parameter] + string Hint { + get => isInitialized ? (string)DevExpress.Ui.DxListInterop.GetHint(dxTarget).Result : hint; + set { + if (isInitialized) { + DevExpress.Ui.DxListInterop.SetHint(dxTarget, value); + } else { + this.hint = value; + } + } + } + float? tabIndex; + [Parameter] + float? TabIndex { + get => isInitialized ? (float?)DevExpress.Ui.DxListInterop.GetTabIndex(dxTarget).Result : tabIndex; + set { + if (isInitialized) { + DevExpress.Ui.DxListInterop.SetTabIndex(dxTarget, value); + } else { + this.tabIndex = value; + } + } + } + bool? visible; + [Parameter] + bool? Visible { + get => isInitialized ? (bool?)DevExpress.Ui.DxListInterop.GetVisible(dxTarget).Result : visible; + set { + if (isInitialized) { + DevExpress.Ui.DxListInterop.SetVisible(dxTarget, value); + } else { + this.visible = value; + } + } + } + object bindingOptions; + [Parameter] + object BindingOptions { + get => isInitialized ? DevExpress.Ui.DxListInterop.GetBindingOptions(dxTarget).Result : bindingOptions; + set { + if (isInitialized) { + DevExpress.Ui.DxListInterop.SetBindingOptions(dxTarget, value); + } else { + this.bindingOptions = value; + } + } + } + object elementAttr; + [Parameter] + object ElementAttr { + get => isInitialized ? DevExpress.Ui.DxListInterop.GetElementAttr(dxTarget).Result : elementAttr; + set { + if (isInitialized) { + DevExpress.Ui.DxListInterop.SetElementAttr(dxTarget, value); + } else { + this.elementAttr = value; + } + } + } + object height; + [Parameter] + object Height { + get => isInitialized ? DevExpress.Ui.DxListInterop.GetHeight(dxTarget).Result : height; + set { + if (isInitialized) { + DevExpress.Ui.DxListInterop.SetHeight(dxTarget, value); + } else { + this.height = value; + } + } + } + bool? rtlEnabled; + [Parameter] + bool? RtlEnabled { + get => isInitialized ? (bool?)DevExpress.Ui.DxListInterop.GetRtlEnabled(dxTarget).Result : rtlEnabled; + set { + if (isInitialized) { + DevExpress.Ui.DxListInterop.SetRtlEnabled(dxTarget, value); + } else { + this.rtlEnabled = value; + } + } + } + object width; + [Parameter] + object Width { + get => isInitialized ? DevExpress.Ui.DxListInterop.GetWidth(dxTarget).Result : width; + set { + if (isInitialized) { + DevExpress.Ui.DxListInterop.SetWidth(dxTarget, value); + } else { + this.width = value; + } + } + } + object searchEditorOptions; + [Parameter] + object SearchEditorOptions { + get => isInitialized ? DevExpress.Ui.DxListInterop.GetSearchEditorOptions(dxTarget).Result : searchEditorOptions; + set { + if (isInitialized) { + DevExpress.Ui.DxListInterop.SetSearchEditorOptions(dxTarget, value); + } else { + this.searchEditorOptions = value; + } + } + } + bool? searchEnabled; + [Parameter] + bool? SearchEnabled { + get => isInitialized ? (bool?)DevExpress.Ui.DxListInterop.GetSearchEnabled(dxTarget).Result : searchEnabled; + set { + if (isInitialized) { + DevExpress.Ui.DxListInterop.SetSearchEnabled(dxTarget, value); + } else { + this.searchEnabled = value; + } + } + } + object searchExpr; + [Parameter] + object SearchExpr { + get => isInitialized ? DevExpress.Ui.DxListInterop.GetSearchExpr(dxTarget).Result : searchExpr; + set { + if (isInitialized) { + DevExpress.Ui.DxListInterop.SetSearchExpr(dxTarget, value); + } else { + this.searchExpr = value; + } + } + } + string searchMode; + [Parameter] + string SearchMode { + get => isInitialized ? (string)DevExpress.Ui.DxListInterop.GetSearchMode(dxTarget).Result : searchMode; + set { + if (isInitialized) { + DevExpress.Ui.DxListInterop.SetSearchMode(dxTarget, value); + } else { + this.searchMode = value; + } + } + } + float? searchTimeout; + [Parameter] + float? SearchTimeout { + get => isInitialized ? (float?)DevExpress.Ui.DxListInterop.GetSearchTimeout(dxTarget).Result : searchTimeout; + set { + if (isInitialized) { + DevExpress.Ui.DxListInterop.SetSearchTimeout(dxTarget, value); + } else { + this.searchTimeout = value; + } + } + } + string searchValue; + [Parameter] + string SearchValue { + get => isInitialized ? (string)DevExpress.Ui.DxListInterop.GetSearchValue(dxTarget).Result : searchValue; + set { + if (isInitialized) { + DevExpress.Ui.DxListInterop.SetSearchValue(dxTarget, value); + } else { + this.searchValue = value; + } + } + } bool? onGroupRenderedEnabled; [Parameter] bool? OnGroupRenderedEnabled { @@ -463,6 +807,42 @@ return DevExpress.Ui.DxListInterop.Init(dxTarget, options); get => onSelectAllValueChangedEnabled; set => this.onSelectAllValueChangedEnabled = value; } + bool? onItemRenderedEnabled; + [Parameter] + bool? OnItemRenderedEnabled { + get => onItemRenderedEnabled; + set => this.onItemRenderedEnabled = value; + } + bool? onSelectionChangedEnabled; + [Parameter] + bool? OnSelectionChangedEnabled { + get => onSelectionChangedEnabled; + set => this.onSelectionChangedEnabled = value; + } + bool? onContentReadyEnabled; + [Parameter] + bool? OnContentReadyEnabled { + get => onContentReadyEnabled; + set => this.onContentReadyEnabled = value; + } + bool? onDisposingEnabled; + [Parameter] + bool? OnDisposingEnabled { + get => onDisposingEnabled; + set => this.onDisposingEnabled = value; + } + bool? onOptionChangedEnabled; + [Parameter] + bool? OnOptionChangedEnabled { + get => onOptionChangedEnabled; + set => this.onOptionChangedEnabled = value; + } + bool? onInitializedEnabled; + [Parameter] + bool? OnInitializedEnabled { + get => onInitializedEnabled; + set => this.onInitializedEnabled = value; + } protected override async Task OnInitAsync() { await base.OnInitAsync(); DevExpress.Ui.DxListInterop.GroupRendered += DxList_GroupRendered; @@ -477,6 +857,12 @@ return DevExpress.Ui.DxListInterop.Init(dxTarget, options); DevExpress.Ui.DxListInterop.PullRefresh += DxList_PullRefresh; DevExpress.Ui.DxListInterop.Scroll += DxList_Scroll; DevExpress.Ui.DxListInterop.SelectAllValueChanged += DxList_SelectAllValueChanged; + DevExpress.Ui.DxListInterop.ItemRendered += DxList_ItemRendered; + DevExpress.Ui.DxListInterop.SelectionChanged += DxList_SelectionChanged; + DevExpress.Ui.DxListInterop.ContentReady += DxList_ContentReady; + DevExpress.Ui.DxListInterop.Disposing += DxList_Disposing; + DevExpress.Ui.DxListInterop.OptionChanged += DxList_OptionChanged; + DevExpress.Ui.DxListInterop.Initialized += DxList_Initialized; } [Parameter] Action GroupRendered { get; set; } @@ -562,6 +948,48 @@ return DevExpress.Ui.DxListInterop.Init(dxTarget, options); SelectAllValueChanged?.Invoke(); } } + [Parameter] + Action ItemRendered { get; set; } + void DxList_ItemRendered(object sender, JQueryEventArgs e) { + if (e.Identifier == Id) { + ItemRendered?.Invoke(); + } + } + [Parameter] + Action SelectionChanged { get; set; } + void DxList_SelectionChanged(object sender, JQueryEventArgs e) { + if (e.Identifier == Id) { + SelectionChanged?.Invoke(); + } + } + [Parameter] + Action ContentReady { get; set; } + void DxList_ContentReady(object sender, JQueryEventArgs e) { + if (e.Identifier == Id) { + ContentReady?.Invoke(); + } + } + [Parameter] + Action Disposing { get; set; } + void DxList_Disposing(object sender, JQueryEventArgs e) { + if (e.Identifier == Id) { + Disposing?.Invoke(); + } + } + [Parameter] + Action OptionChanged { get; set; } + void DxList_OptionChanged(object sender, JQueryEventArgs e) { + if (e.Identifier == Id) { + OptionChanged?.Invoke(); + } + } + [Parameter] + Action Initialized { get; set; } + void DxList_Initialized(object sender, JQueryEventArgs e) { + if (e.Identifier == Id) { + Initialized?.Invoke(); + } + } public float ClientHeight() { return DevExpress.Ui.DxListInterop.ClientHeight(dxTarget).Result; } @@ -626,5 +1054,11 @@ return DevExpress.Ui.DxListInterop.Init(dxTarget, options); DevExpress.Ui.DxListInterop.PullRefresh -= DxList_PullRefresh; DevExpress.Ui.DxListInterop.Scroll -= DxList_Scroll; DevExpress.Ui.DxListInterop.SelectAllValueChanged -= DxList_SelectAllValueChanged; + DevExpress.Ui.DxListInterop.ItemRendered -= DxList_ItemRendered; + DevExpress.Ui.DxListInterop.SelectionChanged -= DxList_SelectionChanged; + DevExpress.Ui.DxListInterop.ContentReady -= DxList_ContentReady; + DevExpress.Ui.DxListInterop.Disposing -= DxList_Disposing; + DevExpress.Ui.DxListInterop.OptionChanged -= DxList_OptionChanged; + DevExpress.Ui.DxListInterop.Initialized -= DxList_Initialized; } } diff --git a/sources/BlazorDevExtreme/Components/DxLoadIndicator.cshtml b/sources/BlazorDevExtreme/Components/DxLoadIndicator.cshtml index 506cb36..96388ee 100644 --- a/sources/BlazorDevExtreme/Components/DxLoadIndicator.cshtml +++ b/sources/BlazorDevExtreme/Components/DxLoadIndicator.cshtml @@ -11,15 +11,32 @@ protected override DevExpress.Ui.DxLoadIndicatorOptions CreateOptions() { return new DevExpress.Ui.DxLoadIndicatorOptions { indicatorSrc = indicatorSrc, + accessKey = accessKey, + activeStateEnabled = activeStateEnabled, + disabled = disabled, + focusStateEnabled = focusStateEnabled, + hint = hint, + hoverStateEnabled = hoverStateEnabled, + tabIndex = tabIndex, + visible = visible, + bindingOptions = bindingOptions, + elementAttr = elementAttr, + height = height, + rtlEnabled = rtlEnabled, + width = width, + onContentReadyEnabled = onContentReadyEnabled, + onDisposingEnabled = onDisposingEnabled, + onOptionChangedEnabled = onOptionChangedEnabled, + onInitializedEnabled = onInitializedEnabled, }; } protected override Task Init(DevExpress.Ui.DxLoadIndicatorOptions options) { -return DevExpress.Ui.DxLoadIndicatorInterop.Init(dxTarget, options); + return DevExpress.Ui.DxLoadIndicatorInterop.Init(dxTarget, options); } string indicatorSrc; [Parameter] string IndicatorSrc { - get => isInitialized ? DevExpress.Ui.DxLoadIndicatorInterop.GetIndicatorSrc(dxTarget).Result : indicatorSrc; + get => isInitialized ? (string)DevExpress.Ui.DxLoadIndicatorInterop.GetIndicatorSrc(dxTarget).Result : indicatorSrc; set { if (isInitialized) { DevExpress.Ui.DxLoadIndicatorInterop.SetIndicatorSrc(dxTarget, value); @@ -28,9 +45,225 @@ return DevExpress.Ui.DxLoadIndicatorInterop.Init(dxTarget, options); } } } + string accessKey; + [Parameter] + string AccessKey { + get => isInitialized ? (string)DevExpress.Ui.DxLoadIndicatorInterop.GetAccessKey(dxTarget).Result : accessKey; + set { + if (isInitialized) { + DevExpress.Ui.DxLoadIndicatorInterop.SetAccessKey(dxTarget, value); + } else { + this.accessKey = value; + } + } + } + bool? activeStateEnabled; + [Parameter] + bool? ActiveStateEnabled { + get => isInitialized ? (bool?)DevExpress.Ui.DxLoadIndicatorInterop.GetActiveStateEnabled(dxTarget).Result : activeStateEnabled; + set { + if (isInitialized) { + DevExpress.Ui.DxLoadIndicatorInterop.SetActiveStateEnabled(dxTarget, value); + } else { + this.activeStateEnabled = value; + } + } + } + bool? disabled; + [Parameter] + bool? Disabled { + get => isInitialized ? (bool?)DevExpress.Ui.DxLoadIndicatorInterop.GetDisabled(dxTarget).Result : disabled; + set { + if (isInitialized) { + DevExpress.Ui.DxLoadIndicatorInterop.SetDisabled(dxTarget, value); + } else { + this.disabled = value; + } + } + } + bool? focusStateEnabled; + [Parameter] + bool? FocusStateEnabled { + get => isInitialized ? (bool?)DevExpress.Ui.DxLoadIndicatorInterop.GetFocusStateEnabled(dxTarget).Result : focusStateEnabled; + set { + if (isInitialized) { + DevExpress.Ui.DxLoadIndicatorInterop.SetFocusStateEnabled(dxTarget, value); + } else { + this.focusStateEnabled = value; + } + } + } + string hint; + [Parameter] + string Hint { + get => isInitialized ? (string)DevExpress.Ui.DxLoadIndicatorInterop.GetHint(dxTarget).Result : hint; + set { + if (isInitialized) { + DevExpress.Ui.DxLoadIndicatorInterop.SetHint(dxTarget, value); + } else { + this.hint = value; + } + } + } + bool? hoverStateEnabled; + [Parameter] + bool? HoverStateEnabled { + get => isInitialized ? (bool?)DevExpress.Ui.DxLoadIndicatorInterop.GetHoverStateEnabled(dxTarget).Result : hoverStateEnabled; + set { + if (isInitialized) { + DevExpress.Ui.DxLoadIndicatorInterop.SetHoverStateEnabled(dxTarget, value); + } else { + this.hoverStateEnabled = value; + } + } + } + float? tabIndex; + [Parameter] + float? TabIndex { + get => isInitialized ? (float?)DevExpress.Ui.DxLoadIndicatorInterop.GetTabIndex(dxTarget).Result : tabIndex; + set { + if (isInitialized) { + DevExpress.Ui.DxLoadIndicatorInterop.SetTabIndex(dxTarget, value); + } else { + this.tabIndex = value; + } + } + } + bool? visible; + [Parameter] + bool? Visible { + get => isInitialized ? (bool?)DevExpress.Ui.DxLoadIndicatorInterop.GetVisible(dxTarget).Result : visible; + set { + if (isInitialized) { + DevExpress.Ui.DxLoadIndicatorInterop.SetVisible(dxTarget, value); + } else { + this.visible = value; + } + } + } + object bindingOptions; + [Parameter] + object BindingOptions { + get => isInitialized ? DevExpress.Ui.DxLoadIndicatorInterop.GetBindingOptions(dxTarget).Result : bindingOptions; + set { + if (isInitialized) { + DevExpress.Ui.DxLoadIndicatorInterop.SetBindingOptions(dxTarget, value); + } else { + this.bindingOptions = value; + } + } + } + object elementAttr; + [Parameter] + object ElementAttr { + get => isInitialized ? DevExpress.Ui.DxLoadIndicatorInterop.GetElementAttr(dxTarget).Result : elementAttr; + set { + if (isInitialized) { + DevExpress.Ui.DxLoadIndicatorInterop.SetElementAttr(dxTarget, value); + } else { + this.elementAttr = value; + } + } + } + object height; + [Parameter] + object Height { + get => isInitialized ? DevExpress.Ui.DxLoadIndicatorInterop.GetHeight(dxTarget).Result : height; + set { + if (isInitialized) { + DevExpress.Ui.DxLoadIndicatorInterop.SetHeight(dxTarget, value); + } else { + this.height = value; + } + } + } + bool? rtlEnabled; + [Parameter] + bool? RtlEnabled { + get => isInitialized ? (bool?)DevExpress.Ui.DxLoadIndicatorInterop.GetRtlEnabled(dxTarget).Result : rtlEnabled; + set { + if (isInitialized) { + DevExpress.Ui.DxLoadIndicatorInterop.SetRtlEnabled(dxTarget, value); + } else { + this.rtlEnabled = value; + } + } + } + object width; + [Parameter] + object Width { + get => isInitialized ? DevExpress.Ui.DxLoadIndicatorInterop.GetWidth(dxTarget).Result : width; + set { + if (isInitialized) { + DevExpress.Ui.DxLoadIndicatorInterop.SetWidth(dxTarget, value); + } else { + this.width = value; + } + } + } + bool? onContentReadyEnabled; + [Parameter] + bool? OnContentReadyEnabled { + get => onContentReadyEnabled; + set => this.onContentReadyEnabled = value; + } + bool? onDisposingEnabled; + [Parameter] + bool? OnDisposingEnabled { + get => onDisposingEnabled; + set => this.onDisposingEnabled = value; + } + bool? onOptionChangedEnabled; + [Parameter] + bool? OnOptionChangedEnabled { + get => onOptionChangedEnabled; + set => this.onOptionChangedEnabled = value; + } + bool? onInitializedEnabled; + [Parameter] + bool? OnInitializedEnabled { + get => onInitializedEnabled; + set => this.onInitializedEnabled = value; + } protected override async Task OnInitAsync() { await base.OnInitAsync(); + DevExpress.Ui.DxLoadIndicatorInterop.ContentReady += DxLoadIndicator_ContentReady; + DevExpress.Ui.DxLoadIndicatorInterop.Disposing += DxLoadIndicator_Disposing; + DevExpress.Ui.DxLoadIndicatorInterop.OptionChanged += DxLoadIndicator_OptionChanged; + DevExpress.Ui.DxLoadIndicatorInterop.Initialized += DxLoadIndicator_Initialized; + } + [Parameter] + Action ContentReady { get; set; } + void DxLoadIndicator_ContentReady(object sender, JQueryEventArgs e) { + if (e.Identifier == Id) { + ContentReady?.Invoke(); + } + } + [Parameter] + Action Disposing { get; set; } + void DxLoadIndicator_Disposing(object sender, JQueryEventArgs e) { + if (e.Identifier == Id) { + Disposing?.Invoke(); + } + } + [Parameter] + Action OptionChanged { get; set; } + void DxLoadIndicator_OptionChanged(object sender, JQueryEventArgs e) { + if (e.Identifier == Id) { + OptionChanged?.Invoke(); + } + } + [Parameter] + Action Initialized { get; set; } + void DxLoadIndicator_Initialized(object sender, JQueryEventArgs e) { + if (e.Identifier == Id) { + Initialized?.Invoke(); + } } public void Dispose() { + DevExpress.Ui.DxLoadIndicatorInterop.ContentReady -= DxLoadIndicator_ContentReady; + DevExpress.Ui.DxLoadIndicatorInterop.Disposing -= DxLoadIndicator_Disposing; + DevExpress.Ui.DxLoadIndicatorInterop.OptionChanged -= DxLoadIndicator_OptionChanged; + DevExpress.Ui.DxLoadIndicatorInterop.Initialized -= DxLoadIndicator_Initialized; } } diff --git a/sources/BlazorDevExtreme/Components/DxLoadPanel.cshtml b/sources/BlazorDevExtreme/Components/DxLoadPanel.cshtml index 014cb56..4434097 100644 --- a/sources/BlazorDevExtreme/Components/DxLoadPanel.cshtml +++ b/sources/BlazorDevExtreme/Components/DxLoadPanel.cshtml @@ -21,10 +21,38 @@ showIndicator = showIndicator, showPane = showPane, width = width, + closeOnBackButton = closeOnBackButton, + closeOnOutsideClick = closeOnOutsideClick, + contentTemplate = contentTemplate, + deferRendering = deferRendering, + dragEnabled = dragEnabled, + maxHeight = maxHeight, + maxWidth = maxWidth, + minHeight = minHeight, + minWidth = minWidth, + shading = shading, + visible = visible, + accessKey = accessKey, + activeStateEnabled = activeStateEnabled, + disabled = disabled, + hint = hint, + hoverStateEnabled = hoverStateEnabled, + tabIndex = tabIndex, + bindingOptions = bindingOptions, + elementAttr = elementAttr, + rtlEnabled = rtlEnabled, + onHiddenEnabled = onHiddenEnabled, + onHidingEnabled = onHidingEnabled, + onShowingEnabled = onShowingEnabled, + onShownEnabled = onShownEnabled, + onContentReadyEnabled = onContentReadyEnabled, + onDisposingEnabled = onDisposingEnabled, + onOptionChangedEnabled = onOptionChangedEnabled, + onInitializedEnabled = onInitializedEnabled, }; } protected override Task Init(DevExpress.Ui.DxLoadPanelOptions options) { -return DevExpress.Ui.DxLoadPanelInterop.Init(dxTarget, options); + return DevExpress.Ui.DxLoadPanelInterop.Init(dxTarget, options); } object animation; [Parameter] @@ -41,7 +69,7 @@ return DevExpress.Ui.DxLoadPanelInterop.Init(dxTarget, options); float? delay; [Parameter] float? Delay { - get => isInitialized ? DevExpress.Ui.DxLoadPanelInterop.GetDelay(dxTarget).Result : delay; + get => isInitialized ? (float?)DevExpress.Ui.DxLoadPanelInterop.GetDelay(dxTarget).Result : delay; set { if (isInitialized) { DevExpress.Ui.DxLoadPanelInterop.SetDelay(dxTarget, value); @@ -53,7 +81,7 @@ return DevExpress.Ui.DxLoadPanelInterop.Init(dxTarget, options); bool? focusStateEnabled; [Parameter] bool? FocusStateEnabled { - get => isInitialized ? DevExpress.Ui.DxLoadPanelInterop.GetFocusStateEnabled(dxTarget).Result : focusStateEnabled; + get => isInitialized ? (bool?)DevExpress.Ui.DxLoadPanelInterop.GetFocusStateEnabled(dxTarget).Result : focusStateEnabled; set { if (isInitialized) { DevExpress.Ui.DxLoadPanelInterop.SetFocusStateEnabled(dxTarget, value); @@ -65,7 +93,7 @@ return DevExpress.Ui.DxLoadPanelInterop.Init(dxTarget, options); float? height; [Parameter] float? Height { - get => isInitialized ? DevExpress.Ui.DxLoadPanelInterop.GetHeight(dxTarget).Result : height; + get => isInitialized ? (float?)DevExpress.Ui.DxLoadPanelInterop.GetHeight(dxTarget).Result : height; set { if (isInitialized) { DevExpress.Ui.DxLoadPanelInterop.SetHeight(dxTarget, value); @@ -77,7 +105,7 @@ return DevExpress.Ui.DxLoadPanelInterop.Init(dxTarget, options); string indicatorSrc; [Parameter] string IndicatorSrc { - get => isInitialized ? DevExpress.Ui.DxLoadPanelInterop.GetIndicatorSrc(dxTarget).Result : indicatorSrc; + get => isInitialized ? (string)DevExpress.Ui.DxLoadPanelInterop.GetIndicatorSrc(dxTarget).Result : indicatorSrc; set { if (isInitialized) { DevExpress.Ui.DxLoadPanelInterop.SetIndicatorSrc(dxTarget, value); @@ -89,7 +117,7 @@ return DevExpress.Ui.DxLoadPanelInterop.Init(dxTarget, options); string message; [Parameter] string Message { - get => isInitialized ? DevExpress.Ui.DxLoadPanelInterop.GetMessage(dxTarget).Result : message; + get => isInitialized ? (string)DevExpress.Ui.DxLoadPanelInterop.GetMessage(dxTarget).Result : message; set { if (isInitialized) { DevExpress.Ui.DxLoadPanelInterop.SetMessage(dxTarget, value); @@ -113,7 +141,7 @@ return DevExpress.Ui.DxLoadPanelInterop.Init(dxTarget, options); string shadingColor; [Parameter] string ShadingColor { - get => isInitialized ? DevExpress.Ui.DxLoadPanelInterop.GetShadingColor(dxTarget).Result : shadingColor; + get => isInitialized ? (string)DevExpress.Ui.DxLoadPanelInterop.GetShadingColor(dxTarget).Result : shadingColor; set { if (isInitialized) { DevExpress.Ui.DxLoadPanelInterop.SetShadingColor(dxTarget, value); @@ -125,7 +153,7 @@ return DevExpress.Ui.DxLoadPanelInterop.Init(dxTarget, options); bool? showIndicator; [Parameter] bool? ShowIndicator { - get => isInitialized ? DevExpress.Ui.DxLoadPanelInterop.GetShowIndicator(dxTarget).Result : showIndicator; + get => isInitialized ? (bool?)DevExpress.Ui.DxLoadPanelInterop.GetShowIndicator(dxTarget).Result : showIndicator; set { if (isInitialized) { DevExpress.Ui.DxLoadPanelInterop.SetShowIndicator(dxTarget, value); @@ -137,7 +165,7 @@ return DevExpress.Ui.DxLoadPanelInterop.Init(dxTarget, options); bool? showPane; [Parameter] bool? ShowPane { - get => isInitialized ? DevExpress.Ui.DxLoadPanelInterop.GetShowPane(dxTarget).Result : showPane; + get => isInitialized ? (bool?)DevExpress.Ui.DxLoadPanelInterop.GetShowPane(dxTarget).Result : showPane; set { if (isInitialized) { DevExpress.Ui.DxLoadPanelInterop.SetShowPane(dxTarget, value); @@ -149,7 +177,7 @@ return DevExpress.Ui.DxLoadPanelInterop.Init(dxTarget, options); float? width; [Parameter] float? Width { - get => isInitialized ? DevExpress.Ui.DxLoadPanelInterop.GetWidth(dxTarget).Result : width; + get => isInitialized ? (float?)DevExpress.Ui.DxLoadPanelInterop.GetWidth(dxTarget).Result : width; set { if (isInitialized) { DevExpress.Ui.DxLoadPanelInterop.SetWidth(dxTarget, value); @@ -158,9 +186,369 @@ return DevExpress.Ui.DxLoadPanelInterop.Init(dxTarget, options); } } } + bool? closeOnBackButton; + [Parameter] + bool? CloseOnBackButton { + get => isInitialized ? (bool?)DevExpress.Ui.DxLoadPanelInterop.GetCloseOnBackButton(dxTarget).Result : closeOnBackButton; + set { + if (isInitialized) { + DevExpress.Ui.DxLoadPanelInterop.SetCloseOnBackButton(dxTarget, value); + } else { + this.closeOnBackButton = value; + } + } + } + object closeOnOutsideClick; + [Parameter] + object CloseOnOutsideClick { + get => isInitialized ? DevExpress.Ui.DxLoadPanelInterop.GetCloseOnOutsideClick(dxTarget).Result : closeOnOutsideClick; + set { + if (isInitialized) { + DevExpress.Ui.DxLoadPanelInterop.SetCloseOnOutsideClick(dxTarget, value); + } else { + this.closeOnOutsideClick = value; + } + } + } + object contentTemplate; + [Parameter] + object ContentTemplate { + get => isInitialized ? DevExpress.Ui.DxLoadPanelInterop.GetContentTemplate(dxTarget).Result : contentTemplate; + set { + if (isInitialized) { + DevExpress.Ui.DxLoadPanelInterop.SetContentTemplate(dxTarget, value); + } else { + this.contentTemplate = value; + } + } + } + bool? deferRendering; + [Parameter] + bool? DeferRendering { + get => isInitialized ? (bool?)DevExpress.Ui.DxLoadPanelInterop.GetDeferRendering(dxTarget).Result : deferRendering; + set { + if (isInitialized) { + DevExpress.Ui.DxLoadPanelInterop.SetDeferRendering(dxTarget, value); + } else { + this.deferRendering = value; + } + } + } + bool? dragEnabled; + [Parameter] + bool? DragEnabled { + get => isInitialized ? (bool?)DevExpress.Ui.DxLoadPanelInterop.GetDragEnabled(dxTarget).Result : dragEnabled; + set { + if (isInitialized) { + DevExpress.Ui.DxLoadPanelInterop.SetDragEnabled(dxTarget, value); + } else { + this.dragEnabled = value; + } + } + } + object maxHeight; + [Parameter] + object MaxHeight { + get => isInitialized ? DevExpress.Ui.DxLoadPanelInterop.GetMaxHeight(dxTarget).Result : maxHeight; + set { + if (isInitialized) { + DevExpress.Ui.DxLoadPanelInterop.SetMaxHeight(dxTarget, value); + } else { + this.maxHeight = value; + } + } + } + object maxWidth; + [Parameter] + object MaxWidth { + get => isInitialized ? DevExpress.Ui.DxLoadPanelInterop.GetMaxWidth(dxTarget).Result : maxWidth; + set { + if (isInitialized) { + DevExpress.Ui.DxLoadPanelInterop.SetMaxWidth(dxTarget, value); + } else { + this.maxWidth = value; + } + } + } + object minHeight; + [Parameter] + object MinHeight { + get => isInitialized ? DevExpress.Ui.DxLoadPanelInterop.GetMinHeight(dxTarget).Result : minHeight; + set { + if (isInitialized) { + DevExpress.Ui.DxLoadPanelInterop.SetMinHeight(dxTarget, value); + } else { + this.minHeight = value; + } + } + } + object minWidth; + [Parameter] + object MinWidth { + get => isInitialized ? DevExpress.Ui.DxLoadPanelInterop.GetMinWidth(dxTarget).Result : minWidth; + set { + if (isInitialized) { + DevExpress.Ui.DxLoadPanelInterop.SetMinWidth(dxTarget, value); + } else { + this.minWidth = value; + } + } + } + bool? shading; + [Parameter] + bool? Shading { + get => isInitialized ? (bool?)DevExpress.Ui.DxLoadPanelInterop.GetShading(dxTarget).Result : shading; + set { + if (isInitialized) { + DevExpress.Ui.DxLoadPanelInterop.SetShading(dxTarget, value); + } else { + this.shading = value; + } + } + } + bool? visible; + [Parameter] + bool? Visible { + get => isInitialized ? (bool?)DevExpress.Ui.DxLoadPanelInterop.GetVisible(dxTarget).Result : visible; + set { + if (isInitialized) { + DevExpress.Ui.DxLoadPanelInterop.SetVisible(dxTarget, value); + } else { + this.visible = value; + } + } + } + string accessKey; + [Parameter] + string AccessKey { + get => isInitialized ? (string)DevExpress.Ui.DxLoadPanelInterop.GetAccessKey(dxTarget).Result : accessKey; + set { + if (isInitialized) { + DevExpress.Ui.DxLoadPanelInterop.SetAccessKey(dxTarget, value); + } else { + this.accessKey = value; + } + } + } + bool? activeStateEnabled; + [Parameter] + bool? ActiveStateEnabled { + get => isInitialized ? (bool?)DevExpress.Ui.DxLoadPanelInterop.GetActiveStateEnabled(dxTarget).Result : activeStateEnabled; + set { + if (isInitialized) { + DevExpress.Ui.DxLoadPanelInterop.SetActiveStateEnabled(dxTarget, value); + } else { + this.activeStateEnabled = value; + } + } + } + bool? disabled; + [Parameter] + bool? Disabled { + get => isInitialized ? (bool?)DevExpress.Ui.DxLoadPanelInterop.GetDisabled(dxTarget).Result : disabled; + set { + if (isInitialized) { + DevExpress.Ui.DxLoadPanelInterop.SetDisabled(dxTarget, value); + } else { + this.disabled = value; + } + } + } + string hint; + [Parameter] + string Hint { + get => isInitialized ? (string)DevExpress.Ui.DxLoadPanelInterop.GetHint(dxTarget).Result : hint; + set { + if (isInitialized) { + DevExpress.Ui.DxLoadPanelInterop.SetHint(dxTarget, value); + } else { + this.hint = value; + } + } + } + bool? hoverStateEnabled; + [Parameter] + bool? HoverStateEnabled { + get => isInitialized ? (bool?)DevExpress.Ui.DxLoadPanelInterop.GetHoverStateEnabled(dxTarget).Result : hoverStateEnabled; + set { + if (isInitialized) { + DevExpress.Ui.DxLoadPanelInterop.SetHoverStateEnabled(dxTarget, value); + } else { + this.hoverStateEnabled = value; + } + } + } + float? tabIndex; + [Parameter] + float? TabIndex { + get => isInitialized ? (float?)DevExpress.Ui.DxLoadPanelInterop.GetTabIndex(dxTarget).Result : tabIndex; + set { + if (isInitialized) { + DevExpress.Ui.DxLoadPanelInterop.SetTabIndex(dxTarget, value); + } else { + this.tabIndex = value; + } + } + } + object bindingOptions; + [Parameter] + object BindingOptions { + get => isInitialized ? DevExpress.Ui.DxLoadPanelInterop.GetBindingOptions(dxTarget).Result : bindingOptions; + set { + if (isInitialized) { + DevExpress.Ui.DxLoadPanelInterop.SetBindingOptions(dxTarget, value); + } else { + this.bindingOptions = value; + } + } + } + object elementAttr; + [Parameter] + object ElementAttr { + get => isInitialized ? DevExpress.Ui.DxLoadPanelInterop.GetElementAttr(dxTarget).Result : elementAttr; + set { + if (isInitialized) { + DevExpress.Ui.DxLoadPanelInterop.SetElementAttr(dxTarget, value); + } else { + this.elementAttr = value; + } + } + } + bool? rtlEnabled; + [Parameter] + bool? RtlEnabled { + get => isInitialized ? (bool?)DevExpress.Ui.DxLoadPanelInterop.GetRtlEnabled(dxTarget).Result : rtlEnabled; + set { + if (isInitialized) { + DevExpress.Ui.DxLoadPanelInterop.SetRtlEnabled(dxTarget, value); + } else { + this.rtlEnabled = value; + } + } + } + bool? onHiddenEnabled; + [Parameter] + bool? OnHiddenEnabled { + get => onHiddenEnabled; + set => this.onHiddenEnabled = value; + } + bool? onHidingEnabled; + [Parameter] + bool? OnHidingEnabled { + get => onHidingEnabled; + set => this.onHidingEnabled = value; + } + bool? onShowingEnabled; + [Parameter] + bool? OnShowingEnabled { + get => onShowingEnabled; + set => this.onShowingEnabled = value; + } + bool? onShownEnabled; + [Parameter] + bool? OnShownEnabled { + get => onShownEnabled; + set => this.onShownEnabled = value; + } + bool? onContentReadyEnabled; + [Parameter] + bool? OnContentReadyEnabled { + get => onContentReadyEnabled; + set => this.onContentReadyEnabled = value; + } + bool? onDisposingEnabled; + [Parameter] + bool? OnDisposingEnabled { + get => onDisposingEnabled; + set => this.onDisposingEnabled = value; + } + bool? onOptionChangedEnabled; + [Parameter] + bool? OnOptionChangedEnabled { + get => onOptionChangedEnabled; + set => this.onOptionChangedEnabled = value; + } + bool? onInitializedEnabled; + [Parameter] + bool? OnInitializedEnabled { + get => onInitializedEnabled; + set => this.onInitializedEnabled = value; + } protected override async Task OnInitAsync() { await base.OnInitAsync(); + DevExpress.Ui.DxLoadPanelInterop.Hidden += DxLoadPanel_Hidden; + DevExpress.Ui.DxLoadPanelInterop.Hiding += DxLoadPanel_Hiding; + DevExpress.Ui.DxLoadPanelInterop.Showing += DxLoadPanel_Showing; + DevExpress.Ui.DxLoadPanelInterop.Shown += DxLoadPanel_Shown; + DevExpress.Ui.DxLoadPanelInterop.ContentReady += DxLoadPanel_ContentReady; + DevExpress.Ui.DxLoadPanelInterop.Disposing += DxLoadPanel_Disposing; + DevExpress.Ui.DxLoadPanelInterop.OptionChanged += DxLoadPanel_OptionChanged; + DevExpress.Ui.DxLoadPanelInterop.Initialized += DxLoadPanel_Initialized; + } + [Parameter] + Action Hidden { get; set; } + void DxLoadPanel_Hidden(object sender, JQueryEventArgs e) { + if (e.Identifier == Id) { + Hidden?.Invoke(); + } + } + [Parameter] + Action Hiding { get; set; } + void DxLoadPanel_Hiding(object sender, JQueryEventArgs e) { + if (e.Identifier == Id) { + Hiding?.Invoke(); + } + } + [Parameter] + Action Showing { get; set; } + void DxLoadPanel_Showing(object sender, JQueryEventArgs e) { + if (e.Identifier == Id) { + Showing?.Invoke(); + } + } + [Parameter] + Action Shown { get; set; } + void DxLoadPanel_Shown(object sender, JQueryEventArgs e) { + if (e.Identifier == Id) { + Shown?.Invoke(); + } + } + [Parameter] + Action ContentReady { get; set; } + void DxLoadPanel_ContentReady(object sender, JQueryEventArgs e) { + if (e.Identifier == Id) { + ContentReady?.Invoke(); + } + } + [Parameter] + Action Disposing { get; set; } + void DxLoadPanel_Disposing(object sender, JQueryEventArgs e) { + if (e.Identifier == Id) { + Disposing?.Invoke(); + } + } + [Parameter] + Action OptionChanged { get; set; } + void DxLoadPanel_OptionChanged(object sender, JQueryEventArgs e) { + if (e.Identifier == Id) { + OptionChanged?.Invoke(); + } + } + [Parameter] + Action Initialized { get; set; } + void DxLoadPanel_Initialized(object sender, JQueryEventArgs e) { + if (e.Identifier == Id) { + Initialized?.Invoke(); + } } public void Dispose() { + DevExpress.Ui.DxLoadPanelInterop.Hidden -= DxLoadPanel_Hidden; + DevExpress.Ui.DxLoadPanelInterop.Hiding -= DxLoadPanel_Hiding; + DevExpress.Ui.DxLoadPanelInterop.Showing -= DxLoadPanel_Showing; + DevExpress.Ui.DxLoadPanelInterop.Shown -= DxLoadPanel_Shown; + DevExpress.Ui.DxLoadPanelInterop.ContentReady -= DxLoadPanel_ContentReady; + DevExpress.Ui.DxLoadPanelInterop.Disposing -= DxLoadPanel_Disposing; + DevExpress.Ui.DxLoadPanelInterop.OptionChanged -= DxLoadPanel_OptionChanged; + DevExpress.Ui.DxLoadPanelInterop.Initialized -= DxLoadPanel_Initialized; } } diff --git a/sources/BlazorDevExtreme/Components/DxLookup.cshtml b/sources/BlazorDevExtreme/Components/DxLookup.cshtml index c8840bf..37d3f6c 100644 --- a/sources/BlazorDevExtreme/Components/DxLookup.cshtml +++ b/sources/BlazorDevExtreme/Components/DxLookup.cshtml @@ -43,15 +43,81 @@ titleTemplate = titleTemplate, useNativeScrolling = useNativeScrolling, usePopover = usePopover, + displayValue = displayValue, + minSearchLength = minSearchLength, + noDataText = noDataText, + searchExpr = searchExpr, + searchMode = searchMode, + searchTimeout = searchTimeout, + selectedItem = selectedItem, + showDataBeforeSearch = showDataBeforeSearch, + value = value, + valueChangeEvent = valueChangeEvent, + acceptCustomValue = acceptCustomValue, + activeStateEnabled = activeStateEnabled, + deferRendering = deferRendering, + dropDownButtonTemplate = dropDownButtonTemplate, + opened = isOpened, + maxLength = maxLength, + mode = mode, + hoverStateEnabled = hoverStateEnabled, + inputAttr = inputAttr, + mask = mask, + maskChar = maskChar, + maskInvalidMessage = maskInvalidMessage, + maskRules = maskRules, + name = name, + showMaskMode = showMaskMode, + spellcheck = spellcheck, + text = text, + useMaskedValue = useMaskedValue, + isValid = isValid, + readOnly = readOnly, + validationError = validationError, + validationMessageMode = validationMessageMode, + accessKey = accessKey, + disabled = disabled, + hint = hint, + tabIndex = tabIndex, + visible = visible, + bindingOptions = bindingOptions, + elementAttr = elementAttr, + height = height, + rtlEnabled = rtlEnabled, + width = width, + dataSource = dataSource, + displayExpr = displayExpr, + items = items, + itemTemplate = itemTemplate, + valueExpr = valueExpr, onPageLoadingEnabled = onPageLoadingEnabled, onPullRefreshEnabled = onPullRefreshEnabled, onScrollEnabled = onScrollEnabled, onTitleRenderedEnabled = onTitleRenderedEnabled, onValueChangedEnabled = onValueChangedEnabled, + onItemClickEnabled = onItemClickEnabled, + onSelectionChangedEnabled = onSelectionChangedEnabled, + onClosedEnabled = onClosedEnabled, + onOpenedEnabled = onOpenedEnabled, + onChangeEnabled = onChangeEnabled, + onCopyEnabled = onCopyEnabled, + onCutEnabled = onCutEnabled, + onEnterKeyEnabled = onEnterKeyEnabled, + onFocusInEnabled = onFocusInEnabled, + onFocusOutEnabled = onFocusOutEnabled, + onInputEnabled = onInputEnabled, + onKeyDownEnabled = onKeyDownEnabled, + onKeyPressEnabled = onKeyPressEnabled, + onKeyUpEnabled = onKeyUpEnabled, + onPasteEnabled = onPasteEnabled, + onContentReadyEnabled = onContentReadyEnabled, + onDisposingEnabled = onDisposingEnabled, + onOptionChangedEnabled = onOptionChangedEnabled, + onInitializedEnabled = onInitializedEnabled, }; } protected override Task Init(DevExpress.Ui.DxLookupOptions options) { -return DevExpress.Ui.DxLookupInterop.Init(dxTarget, options); + return DevExpress.Ui.DxLookupInterop.Init(dxTarget, options); } object animation; [Parameter] @@ -68,7 +134,7 @@ return DevExpress.Ui.DxLookupInterop.Init(dxTarget, options); string applyButtonText; [Parameter] string ApplyButtonText { - get => isInitialized ? DevExpress.Ui.DxLookupInterop.GetApplyButtonText(dxTarget).Result : applyButtonText; + get => isInitialized ? (string)DevExpress.Ui.DxLookupInterop.GetApplyButtonText(dxTarget).Result : applyButtonText; set { if (isInitialized) { DevExpress.Ui.DxLookupInterop.SetApplyButtonText(dxTarget, value); @@ -80,7 +146,7 @@ return DevExpress.Ui.DxLookupInterop.Init(dxTarget, options); string applyValueMode; [Parameter] string ApplyValueMode { - get => isInitialized ? DevExpress.Ui.DxLookupInterop.GetApplyValueMode(dxTarget).Result : applyValueMode; + get => isInitialized ? (string)DevExpress.Ui.DxLookupInterop.GetApplyValueMode(dxTarget).Result : applyValueMode; set { if (isInitialized) { DevExpress.Ui.DxLookupInterop.SetApplyValueMode(dxTarget, value); @@ -92,7 +158,7 @@ return DevExpress.Ui.DxLookupInterop.Init(dxTarget, options); string cancelButtonText; [Parameter] string CancelButtonText { - get => isInitialized ? DevExpress.Ui.DxLookupInterop.GetCancelButtonText(dxTarget).Result : cancelButtonText; + get => isInitialized ? (string)DevExpress.Ui.DxLookupInterop.GetCancelButtonText(dxTarget).Result : cancelButtonText; set { if (isInitialized) { DevExpress.Ui.DxLookupInterop.SetCancelButtonText(dxTarget, value); @@ -104,7 +170,7 @@ return DevExpress.Ui.DxLookupInterop.Init(dxTarget, options); bool? cleanSearchOnOpening; [Parameter] bool? CleanSearchOnOpening { - get => isInitialized ? DevExpress.Ui.DxLookupInterop.GetCleanSearchOnOpening(dxTarget).Result : cleanSearchOnOpening; + get => isInitialized ? (bool?)DevExpress.Ui.DxLookupInterop.GetCleanSearchOnOpening(dxTarget).Result : cleanSearchOnOpening; set { if (isInitialized) { DevExpress.Ui.DxLookupInterop.SetCleanSearchOnOpening(dxTarget, value); @@ -116,7 +182,7 @@ return DevExpress.Ui.DxLookupInterop.Init(dxTarget, options); string clearButtonText; [Parameter] string ClearButtonText { - get => isInitialized ? DevExpress.Ui.DxLookupInterop.GetClearButtonText(dxTarget).Result : clearButtonText; + get => isInitialized ? (string)DevExpress.Ui.DxLookupInterop.GetClearButtonText(dxTarget).Result : clearButtonText; set { if (isInitialized) { DevExpress.Ui.DxLookupInterop.SetClearButtonText(dxTarget, value); @@ -152,7 +218,7 @@ return DevExpress.Ui.DxLookupInterop.Init(dxTarget, options); bool? focusStateEnabled; [Parameter] bool? FocusStateEnabled { - get => isInitialized ? DevExpress.Ui.DxLookupInterop.GetFocusStateEnabled(dxTarget).Result : focusStateEnabled; + get => isInitialized ? (bool?)DevExpress.Ui.DxLookupInterop.GetFocusStateEnabled(dxTarget).Result : focusStateEnabled; set { if (isInitialized) { DevExpress.Ui.DxLookupInterop.SetFocusStateEnabled(dxTarget, value); @@ -164,7 +230,7 @@ return DevExpress.Ui.DxLookupInterop.Init(dxTarget, options); bool? fullScreen; [Parameter] bool? FullScreen { - get => isInitialized ? DevExpress.Ui.DxLookupInterop.GetFullScreen(dxTarget).Result : fullScreen; + get => isInitialized ? (bool?)DevExpress.Ui.DxLookupInterop.GetFullScreen(dxTarget).Result : fullScreen; set { if (isInitialized) { DevExpress.Ui.DxLookupInterop.SetFullScreen(dxTarget, value); @@ -176,7 +242,7 @@ return DevExpress.Ui.DxLookupInterop.Init(dxTarget, options); bool? grouped; [Parameter] bool? Grouped { - get => isInitialized ? DevExpress.Ui.DxLookupInterop.GetGrouped(dxTarget).Result : grouped; + get => isInitialized ? (bool?)DevExpress.Ui.DxLookupInterop.GetGrouped(dxTarget).Result : grouped; set { if (isInitialized) { DevExpress.Ui.DxLookupInterop.SetGrouped(dxTarget, value); @@ -200,7 +266,7 @@ return DevExpress.Ui.DxLookupInterop.Init(dxTarget, options); string nextButtonText; [Parameter] string NextButtonText { - get => isInitialized ? DevExpress.Ui.DxLookupInterop.GetNextButtonText(dxTarget).Result : nextButtonText; + get => isInitialized ? (string)DevExpress.Ui.DxLookupInterop.GetNextButtonText(dxTarget).Result : nextButtonText; set { if (isInitialized) { DevExpress.Ui.DxLookupInterop.SetNextButtonText(dxTarget, value); @@ -212,7 +278,7 @@ return DevExpress.Ui.DxLookupInterop.Init(dxTarget, options); string pageLoadingText; [Parameter] string PageLoadingText { - get => isInitialized ? DevExpress.Ui.DxLookupInterop.GetPageLoadingText(dxTarget).Result : pageLoadingText; + get => isInitialized ? (string)DevExpress.Ui.DxLookupInterop.GetPageLoadingText(dxTarget).Result : pageLoadingText; set { if (isInitialized) { DevExpress.Ui.DxLookupInterop.SetPageLoadingText(dxTarget, value); @@ -224,7 +290,7 @@ return DevExpress.Ui.DxLookupInterop.Init(dxTarget, options); string pageLoadMode; [Parameter] string PageLoadMode { - get => isInitialized ? DevExpress.Ui.DxLookupInterop.GetPageLoadMode(dxTarget).Result : pageLoadMode; + get => isInitialized ? (string)DevExpress.Ui.DxLookupInterop.GetPageLoadMode(dxTarget).Result : pageLoadMode; set { if (isInitialized) { DevExpress.Ui.DxLookupInterop.SetPageLoadMode(dxTarget, value); @@ -236,7 +302,7 @@ return DevExpress.Ui.DxLookupInterop.Init(dxTarget, options); string placeholder; [Parameter] string Placeholder { - get => isInitialized ? DevExpress.Ui.DxLookupInterop.GetPlaceholder(dxTarget).Result : placeholder; + get => isInitialized ? (string)DevExpress.Ui.DxLookupInterop.GetPlaceholder(dxTarget).Result : placeholder; set { if (isInitialized) { DevExpress.Ui.DxLookupInterop.SetPlaceholder(dxTarget, value); @@ -284,7 +350,7 @@ return DevExpress.Ui.DxLookupInterop.Init(dxTarget, options); string pulledDownText; [Parameter] string PulledDownText { - get => isInitialized ? DevExpress.Ui.DxLookupInterop.GetPulledDownText(dxTarget).Result : pulledDownText; + get => isInitialized ? (string)DevExpress.Ui.DxLookupInterop.GetPulledDownText(dxTarget).Result : pulledDownText; set { if (isInitialized) { DevExpress.Ui.DxLookupInterop.SetPulledDownText(dxTarget, value); @@ -296,7 +362,7 @@ return DevExpress.Ui.DxLookupInterop.Init(dxTarget, options); string pullingDownText; [Parameter] string PullingDownText { - get => isInitialized ? DevExpress.Ui.DxLookupInterop.GetPullingDownText(dxTarget).Result : pullingDownText; + get => isInitialized ? (string)DevExpress.Ui.DxLookupInterop.GetPullingDownText(dxTarget).Result : pullingDownText; set { if (isInitialized) { DevExpress.Ui.DxLookupInterop.SetPullingDownText(dxTarget, value); @@ -308,7 +374,7 @@ return DevExpress.Ui.DxLookupInterop.Init(dxTarget, options); bool? pullRefreshEnabled; [Parameter] bool? PullRefreshEnabled { - get => isInitialized ? DevExpress.Ui.DxLookupInterop.GetPullRefreshEnabled(dxTarget).Result : pullRefreshEnabled; + get => isInitialized ? (bool?)DevExpress.Ui.DxLookupInterop.GetPullRefreshEnabled(dxTarget).Result : pullRefreshEnabled; set { if (isInitialized) { DevExpress.Ui.DxLookupInterop.SetPullRefreshEnabled(dxTarget, value); @@ -320,7 +386,7 @@ return DevExpress.Ui.DxLookupInterop.Init(dxTarget, options); string refreshingText; [Parameter] string RefreshingText { - get => isInitialized ? DevExpress.Ui.DxLookupInterop.GetRefreshingText(dxTarget).Result : refreshingText; + get => isInitialized ? (string)DevExpress.Ui.DxLookupInterop.GetRefreshingText(dxTarget).Result : refreshingText; set { if (isInitialized) { DevExpress.Ui.DxLookupInterop.SetRefreshingText(dxTarget, value); @@ -332,7 +398,7 @@ return DevExpress.Ui.DxLookupInterop.Init(dxTarget, options); bool? searchEnabled; [Parameter] bool? SearchEnabled { - get => isInitialized ? DevExpress.Ui.DxLookupInterop.GetSearchEnabled(dxTarget).Result : searchEnabled; + get => isInitialized ? (bool?)DevExpress.Ui.DxLookupInterop.GetSearchEnabled(dxTarget).Result : searchEnabled; set { if (isInitialized) { DevExpress.Ui.DxLookupInterop.SetSearchEnabled(dxTarget, value); @@ -344,7 +410,7 @@ return DevExpress.Ui.DxLookupInterop.Init(dxTarget, options); string searchPlaceholder; [Parameter] string SearchPlaceholder { - get => isInitialized ? DevExpress.Ui.DxLookupInterop.GetSearchPlaceholder(dxTarget).Result : searchPlaceholder; + get => isInitialized ? (string)DevExpress.Ui.DxLookupInterop.GetSearchPlaceholder(dxTarget).Result : searchPlaceholder; set { if (isInitialized) { DevExpress.Ui.DxLookupInterop.SetSearchPlaceholder(dxTarget, value); @@ -356,7 +422,7 @@ return DevExpress.Ui.DxLookupInterop.Init(dxTarget, options); bool? shading; [Parameter] bool? Shading { - get => isInitialized ? DevExpress.Ui.DxLookupInterop.GetShading(dxTarget).Result : shading; + get => isInitialized ? (bool?)DevExpress.Ui.DxLookupInterop.GetShading(dxTarget).Result : shading; set { if (isInitialized) { DevExpress.Ui.DxLookupInterop.SetShading(dxTarget, value); @@ -368,7 +434,7 @@ return DevExpress.Ui.DxLookupInterop.Init(dxTarget, options); bool? showCancelButton; [Parameter] bool? ShowCancelButton { - get => isInitialized ? DevExpress.Ui.DxLookupInterop.GetShowCancelButton(dxTarget).Result : showCancelButton; + get => isInitialized ? (bool?)DevExpress.Ui.DxLookupInterop.GetShowCancelButton(dxTarget).Result : showCancelButton; set { if (isInitialized) { DevExpress.Ui.DxLookupInterop.SetShowCancelButton(dxTarget, value); @@ -380,7 +446,7 @@ return DevExpress.Ui.DxLookupInterop.Init(dxTarget, options); bool? showClearButton; [Parameter] bool? ShowClearButton { - get => isInitialized ? DevExpress.Ui.DxLookupInterop.GetShowClearButton(dxTarget).Result : showClearButton; + get => isInitialized ? (bool?)DevExpress.Ui.DxLookupInterop.GetShowClearButton(dxTarget).Result : showClearButton; set { if (isInitialized) { DevExpress.Ui.DxLookupInterop.SetShowClearButton(dxTarget, value); @@ -392,7 +458,7 @@ return DevExpress.Ui.DxLookupInterop.Init(dxTarget, options); bool? showPopupTitle; [Parameter] bool? ShowPopupTitle { - get => isInitialized ? DevExpress.Ui.DxLookupInterop.GetShowPopupTitle(dxTarget).Result : showPopupTitle; + get => isInitialized ? (bool?)DevExpress.Ui.DxLookupInterop.GetShowPopupTitle(dxTarget).Result : showPopupTitle; set { if (isInitialized) { DevExpress.Ui.DxLookupInterop.SetShowPopupTitle(dxTarget, value); @@ -404,7 +470,7 @@ return DevExpress.Ui.DxLookupInterop.Init(dxTarget, options); string title; [Parameter] string Title { - get => isInitialized ? DevExpress.Ui.DxLookupInterop.GetTitle(dxTarget).Result : title; + get => isInitialized ? (string)DevExpress.Ui.DxLookupInterop.GetTitle(dxTarget).Result : title; set { if (isInitialized) { DevExpress.Ui.DxLookupInterop.SetTitle(dxTarget, value); @@ -428,7 +494,7 @@ return DevExpress.Ui.DxLookupInterop.Init(dxTarget, options); bool? useNativeScrolling; [Parameter] bool? UseNativeScrolling { - get => isInitialized ? DevExpress.Ui.DxLookupInterop.GetUseNativeScrolling(dxTarget).Result : useNativeScrolling; + get => isInitialized ? (bool?)DevExpress.Ui.DxLookupInterop.GetUseNativeScrolling(dxTarget).Result : useNativeScrolling; set { if (isInitialized) { DevExpress.Ui.DxLookupInterop.SetUseNativeScrolling(dxTarget, value); @@ -440,7 +506,7 @@ return DevExpress.Ui.DxLookupInterop.Init(dxTarget, options); bool? usePopover; [Parameter] bool? UsePopover { - get => isInitialized ? DevExpress.Ui.DxLookupInterop.GetUsePopover(dxTarget).Result : usePopover; + get => isInitialized ? (bool?)DevExpress.Ui.DxLookupInterop.GetUsePopover(dxTarget).Result : usePopover; set { if (isInitialized) { DevExpress.Ui.DxLookupInterop.SetUsePopover(dxTarget, value); @@ -449,6 +515,570 @@ return DevExpress.Ui.DxLookupInterop.Init(dxTarget, options); } } } + string displayValue; + [Parameter] + string DisplayValue { + get => isInitialized ? (string)DevExpress.Ui.DxLookupInterop.GetDisplayValue(dxTarget).Result : displayValue; + set { + if (isInitialized) { + DevExpress.Ui.DxLookupInterop.SetDisplayValue(dxTarget, value); + } else { + this.displayValue = value; + } + } + } + float? minSearchLength; + [Parameter] + float? MinSearchLength { + get => isInitialized ? (float?)DevExpress.Ui.DxLookupInterop.GetMinSearchLength(dxTarget).Result : minSearchLength; + set { + if (isInitialized) { + DevExpress.Ui.DxLookupInterop.SetMinSearchLength(dxTarget, value); + } else { + this.minSearchLength = value; + } + } + } + string noDataText; + [Parameter] + string NoDataText { + get => isInitialized ? (string)DevExpress.Ui.DxLookupInterop.GetNoDataText(dxTarget).Result : noDataText; + set { + if (isInitialized) { + DevExpress.Ui.DxLookupInterop.SetNoDataText(dxTarget, value); + } else { + this.noDataText = value; + } + } + } + object searchExpr; + [Parameter] + object SearchExpr { + get => isInitialized ? DevExpress.Ui.DxLookupInterop.GetSearchExpr(dxTarget).Result : searchExpr; + set { + if (isInitialized) { + DevExpress.Ui.DxLookupInterop.SetSearchExpr(dxTarget, value); + } else { + this.searchExpr = value; + } + } + } + string searchMode; + [Parameter] + string SearchMode { + get => isInitialized ? (string)DevExpress.Ui.DxLookupInterop.GetSearchMode(dxTarget).Result : searchMode; + set { + if (isInitialized) { + DevExpress.Ui.DxLookupInterop.SetSearchMode(dxTarget, value); + } else { + this.searchMode = value; + } + } + } + float? searchTimeout; + [Parameter] + float? SearchTimeout { + get => isInitialized ? (float?)DevExpress.Ui.DxLookupInterop.GetSearchTimeout(dxTarget).Result : searchTimeout; + set { + if (isInitialized) { + DevExpress.Ui.DxLookupInterop.SetSearchTimeout(dxTarget, value); + } else { + this.searchTimeout = value; + } + } + } + object selectedItem; + [Parameter] + object SelectedItem { + get => isInitialized ? DevExpress.Ui.DxLookupInterop.GetSelectedItem(dxTarget).Result : selectedItem; + set { + if (isInitialized) { + DevExpress.Ui.DxLookupInterop.SetSelectedItem(dxTarget, value); + } else { + this.selectedItem = value; + } + } + } + bool? showDataBeforeSearch; + [Parameter] + bool? ShowDataBeforeSearch { + get => isInitialized ? (bool?)DevExpress.Ui.DxLookupInterop.GetShowDataBeforeSearch(dxTarget).Result : showDataBeforeSearch; + set { + if (isInitialized) { + DevExpress.Ui.DxLookupInterop.SetShowDataBeforeSearch(dxTarget, value); + } else { + this.showDataBeforeSearch = value; + } + } + } + object value; + [Parameter] + object Value { + get => isInitialized ? DevExpress.Ui.DxLookupInterop.GetValue(dxTarget).Result : value; + set { + if (isInitialized) { + DevExpress.Ui.DxLookupInterop.SetValue(dxTarget, value); + } else { + this.value = value; + } + } + } + string valueChangeEvent; + [Parameter] + string ValueChangeEvent { + get => isInitialized ? (string)DevExpress.Ui.DxLookupInterop.GetValueChangeEvent(dxTarget).Result : valueChangeEvent; + set { + if (isInitialized) { + DevExpress.Ui.DxLookupInterop.SetValueChangeEvent(dxTarget, value); + } else { + this.valueChangeEvent = value; + } + } + } + bool? acceptCustomValue; + [Parameter] + bool? AcceptCustomValue { + get => isInitialized ? (bool?)DevExpress.Ui.DxLookupInterop.GetAcceptCustomValue(dxTarget).Result : acceptCustomValue; + set { + if (isInitialized) { + DevExpress.Ui.DxLookupInterop.SetAcceptCustomValue(dxTarget, value); + } else { + this.acceptCustomValue = value; + } + } + } + bool? activeStateEnabled; + [Parameter] + bool? ActiveStateEnabled { + get => isInitialized ? (bool?)DevExpress.Ui.DxLookupInterop.GetActiveStateEnabled(dxTarget).Result : activeStateEnabled; + set { + if (isInitialized) { + DevExpress.Ui.DxLookupInterop.SetActiveStateEnabled(dxTarget, value); + } else { + this.activeStateEnabled = value; + } + } + } + bool? deferRendering; + [Parameter] + bool? DeferRendering { + get => isInitialized ? (bool?)DevExpress.Ui.DxLookupInterop.GetDeferRendering(dxTarget).Result : deferRendering; + set { + if (isInitialized) { + DevExpress.Ui.DxLookupInterop.SetDeferRendering(dxTarget, value); + } else { + this.deferRendering = value; + } + } + } + object dropDownButtonTemplate; + [Parameter] + object DropDownButtonTemplate { + get => isInitialized ? DevExpress.Ui.DxLookupInterop.GetDropDownButtonTemplate(dxTarget).Result : dropDownButtonTemplate; + set { + if (isInitialized) { + DevExpress.Ui.DxLookupInterop.SetDropDownButtonTemplate(dxTarget, value); + } else { + this.dropDownButtonTemplate = value; + } + } + } + bool? isOpened; + [Parameter] + bool? IsOpened { + get => isInitialized ? (bool?)DevExpress.Ui.DxLookupInterop.GetOpened(dxTarget).Result : isOpened; + set { + if (isInitialized) { + DevExpress.Ui.DxLookupInterop.SetOpened(dxTarget, value); + } else { + this.isOpened = value; + } + } + } + object maxLength; + [Parameter] + object MaxLength { + get => isInitialized ? DevExpress.Ui.DxLookupInterop.GetMaxLength(dxTarget).Result : maxLength; + set { + if (isInitialized) { + DevExpress.Ui.DxLookupInterop.SetMaxLength(dxTarget, value); + } else { + this.maxLength = value; + } + } + } + string mode; + [Parameter] + string Mode { + get => isInitialized ? (string)DevExpress.Ui.DxLookupInterop.GetMode(dxTarget).Result : mode; + set { + if (isInitialized) { + DevExpress.Ui.DxLookupInterop.SetMode(dxTarget, value); + } else { + this.mode = value; + } + } + } + bool? hoverStateEnabled; + [Parameter] + bool? HoverStateEnabled { + get => isInitialized ? (bool?)DevExpress.Ui.DxLookupInterop.GetHoverStateEnabled(dxTarget).Result : hoverStateEnabled; + set { + if (isInitialized) { + DevExpress.Ui.DxLookupInterop.SetHoverStateEnabled(dxTarget, value); + } else { + this.hoverStateEnabled = value; + } + } + } + object inputAttr; + [Parameter] + object InputAttr { + get => isInitialized ? DevExpress.Ui.DxLookupInterop.GetInputAttr(dxTarget).Result : inputAttr; + set { + if (isInitialized) { + DevExpress.Ui.DxLookupInterop.SetInputAttr(dxTarget, value); + } else { + this.inputAttr = value; + } + } + } + string mask; + [Parameter] + string Mask { + get => isInitialized ? (string)DevExpress.Ui.DxLookupInterop.GetMask(dxTarget).Result : mask; + set { + if (isInitialized) { + DevExpress.Ui.DxLookupInterop.SetMask(dxTarget, value); + } else { + this.mask = value; + } + } + } + string maskChar; + [Parameter] + string MaskChar { + get => isInitialized ? (string)DevExpress.Ui.DxLookupInterop.GetMaskChar(dxTarget).Result : maskChar; + set { + if (isInitialized) { + DevExpress.Ui.DxLookupInterop.SetMaskChar(dxTarget, value); + } else { + this.maskChar = value; + } + } + } + string maskInvalidMessage; + [Parameter] + string MaskInvalidMessage { + get => isInitialized ? (string)DevExpress.Ui.DxLookupInterop.GetMaskInvalidMessage(dxTarget).Result : maskInvalidMessage; + set { + if (isInitialized) { + DevExpress.Ui.DxLookupInterop.SetMaskInvalidMessage(dxTarget, value); + } else { + this.maskInvalidMessage = value; + } + } + } + object maskRules; + [Parameter] + object MaskRules { + get => isInitialized ? DevExpress.Ui.DxLookupInterop.GetMaskRules(dxTarget).Result : maskRules; + set { + if (isInitialized) { + DevExpress.Ui.DxLookupInterop.SetMaskRules(dxTarget, value); + } else { + this.maskRules = value; + } + } + } + string name; + [Parameter] + string Name { + get => isInitialized ? (string)DevExpress.Ui.DxLookupInterop.GetName(dxTarget).Result : name; + set { + if (isInitialized) { + DevExpress.Ui.DxLookupInterop.SetName(dxTarget, value); + } else { + this.name = value; + } + } + } + string showMaskMode; + [Parameter] + string ShowMaskMode { + get => isInitialized ? (string)DevExpress.Ui.DxLookupInterop.GetShowMaskMode(dxTarget).Result : showMaskMode; + set { + if (isInitialized) { + DevExpress.Ui.DxLookupInterop.SetShowMaskMode(dxTarget, value); + } else { + this.showMaskMode = value; + } + } + } + bool? spellcheck; + [Parameter] + bool? Spellcheck { + get => isInitialized ? (bool?)DevExpress.Ui.DxLookupInterop.GetSpellcheck(dxTarget).Result : spellcheck; + set { + if (isInitialized) { + DevExpress.Ui.DxLookupInterop.SetSpellcheck(dxTarget, value); + } else { + this.spellcheck = value; + } + } + } + string text; + [Parameter] + string Text { + get => isInitialized ? (string)DevExpress.Ui.DxLookupInterop.GetText(dxTarget).Result : text; + set { + if (isInitialized) { + DevExpress.Ui.DxLookupInterop.SetText(dxTarget, value); + } else { + this.text = value; + } + } + } + bool? useMaskedValue; + [Parameter] + bool? UseMaskedValue { + get => isInitialized ? (bool?)DevExpress.Ui.DxLookupInterop.GetUseMaskedValue(dxTarget).Result : useMaskedValue; + set { + if (isInitialized) { + DevExpress.Ui.DxLookupInterop.SetUseMaskedValue(dxTarget, value); + } else { + this.useMaskedValue = value; + } + } + } + bool? isValid; + [Parameter] + bool? IsValid { + get => isInitialized ? (bool?)DevExpress.Ui.DxLookupInterop.GetIsValid(dxTarget).Result : isValid; + set { + if (isInitialized) { + DevExpress.Ui.DxLookupInterop.SetIsValid(dxTarget, value); + } else { + this.isValid = value; + } + } + } + bool? readOnly; + [Parameter] + bool? ReadOnly { + get => isInitialized ? (bool?)DevExpress.Ui.DxLookupInterop.GetReadOnly(dxTarget).Result : readOnly; + set { + if (isInitialized) { + DevExpress.Ui.DxLookupInterop.SetReadOnly(dxTarget, value); + } else { + this.readOnly = value; + } + } + } + object validationError; + [Parameter] + object ValidationError { + get => isInitialized ? DevExpress.Ui.DxLookupInterop.GetValidationError(dxTarget).Result : validationError; + set { + if (isInitialized) { + DevExpress.Ui.DxLookupInterop.SetValidationError(dxTarget, value); + } else { + this.validationError = value; + } + } + } + string validationMessageMode; + [Parameter] + string ValidationMessageMode { + get => isInitialized ? (string)DevExpress.Ui.DxLookupInterop.GetValidationMessageMode(dxTarget).Result : validationMessageMode; + set { + if (isInitialized) { + DevExpress.Ui.DxLookupInterop.SetValidationMessageMode(dxTarget, value); + } else { + this.validationMessageMode = value; + } + } + } + string accessKey; + [Parameter] + string AccessKey { + get => isInitialized ? (string)DevExpress.Ui.DxLookupInterop.GetAccessKey(dxTarget).Result : accessKey; + set { + if (isInitialized) { + DevExpress.Ui.DxLookupInterop.SetAccessKey(dxTarget, value); + } else { + this.accessKey = value; + } + } + } + bool? disabled; + [Parameter] + bool? Disabled { + get => isInitialized ? (bool?)DevExpress.Ui.DxLookupInterop.GetDisabled(dxTarget).Result : disabled; + set { + if (isInitialized) { + DevExpress.Ui.DxLookupInterop.SetDisabled(dxTarget, value); + } else { + this.disabled = value; + } + } + } + string hint; + [Parameter] + string Hint { + get => isInitialized ? (string)DevExpress.Ui.DxLookupInterop.GetHint(dxTarget).Result : hint; + set { + if (isInitialized) { + DevExpress.Ui.DxLookupInterop.SetHint(dxTarget, value); + } else { + this.hint = value; + } + } + } + float? tabIndex; + [Parameter] + float? TabIndex { + get => isInitialized ? (float?)DevExpress.Ui.DxLookupInterop.GetTabIndex(dxTarget).Result : tabIndex; + set { + if (isInitialized) { + DevExpress.Ui.DxLookupInterop.SetTabIndex(dxTarget, value); + } else { + this.tabIndex = value; + } + } + } + bool? visible; + [Parameter] + bool? Visible { + get => isInitialized ? (bool?)DevExpress.Ui.DxLookupInterop.GetVisible(dxTarget).Result : visible; + set { + if (isInitialized) { + DevExpress.Ui.DxLookupInterop.SetVisible(dxTarget, value); + } else { + this.visible = value; + } + } + } + object bindingOptions; + [Parameter] + object BindingOptions { + get => isInitialized ? DevExpress.Ui.DxLookupInterop.GetBindingOptions(dxTarget).Result : bindingOptions; + set { + if (isInitialized) { + DevExpress.Ui.DxLookupInterop.SetBindingOptions(dxTarget, value); + } else { + this.bindingOptions = value; + } + } + } + object elementAttr; + [Parameter] + object ElementAttr { + get => isInitialized ? DevExpress.Ui.DxLookupInterop.GetElementAttr(dxTarget).Result : elementAttr; + set { + if (isInitialized) { + DevExpress.Ui.DxLookupInterop.SetElementAttr(dxTarget, value); + } else { + this.elementAttr = value; + } + } + } + object height; + [Parameter] + object Height { + get => isInitialized ? DevExpress.Ui.DxLookupInterop.GetHeight(dxTarget).Result : height; + set { + if (isInitialized) { + DevExpress.Ui.DxLookupInterop.SetHeight(dxTarget, value); + } else { + this.height = value; + } + } + } + bool? rtlEnabled; + [Parameter] + bool? RtlEnabled { + get => isInitialized ? (bool?)DevExpress.Ui.DxLookupInterop.GetRtlEnabled(dxTarget).Result : rtlEnabled; + set { + if (isInitialized) { + DevExpress.Ui.DxLookupInterop.SetRtlEnabled(dxTarget, value); + } else { + this.rtlEnabled = value; + } + } + } + object width; + [Parameter] + object Width { + get => isInitialized ? DevExpress.Ui.DxLookupInterop.GetWidth(dxTarget).Result : width; + set { + if (isInitialized) { + DevExpress.Ui.DxLookupInterop.SetWidth(dxTarget, value); + } else { + this.width = value; + } + } + } + object dataSource; + [Parameter] + object DataSource { + get => isInitialized ? DevExpress.Ui.DxLookupInterop.GetDataSource(dxTarget).Result : dataSource; + set { + if (isInitialized) { + DevExpress.Ui.DxLookupInterop.SetDataSource(dxTarget, value); + } else { + this.dataSource = value; + } + } + } + object displayExpr; + [Parameter] + object DisplayExpr { + get => isInitialized ? DevExpress.Ui.DxLookupInterop.GetDisplayExpr(dxTarget).Result : displayExpr; + set { + if (isInitialized) { + DevExpress.Ui.DxLookupInterop.SetDisplayExpr(dxTarget, value); + } else { + this.displayExpr = value; + } + } + } + object items; + [Parameter] + object Items { + get => isInitialized ? DevExpress.Ui.DxLookupInterop.GetItems(dxTarget).Result : items; + set { + if (isInitialized) { + DevExpress.Ui.DxLookupInterop.SetItems(dxTarget, value); + } else { + this.items = value; + } + } + } + object itemTemplate; + [Parameter] + object ItemTemplate { + get => isInitialized ? DevExpress.Ui.DxLookupInterop.GetItemTemplate(dxTarget).Result : itemTemplate; + set { + if (isInitialized) { + DevExpress.Ui.DxLookupInterop.SetItemTemplate(dxTarget, value); + } else { + this.itemTemplate = value; + } + } + } + object valueExpr; + [Parameter] + object ValueExpr { + get => isInitialized ? DevExpress.Ui.DxLookupInterop.GetValueExpr(dxTarget).Result : valueExpr; + set { + if (isInitialized) { + DevExpress.Ui.DxLookupInterop.SetValueExpr(dxTarget, value); + } else { + this.valueExpr = value; + } + } + } bool? onPageLoadingEnabled; [Parameter] bool? OnPageLoadingEnabled { @@ -479,6 +1109,120 @@ return DevExpress.Ui.DxLookupInterop.Init(dxTarget, options); get => onValueChangedEnabled; set => this.onValueChangedEnabled = value; } + bool? onItemClickEnabled; + [Parameter] + bool? OnItemClickEnabled { + get => onItemClickEnabled; + set => this.onItemClickEnabled = value; + } + bool? onSelectionChangedEnabled; + [Parameter] + bool? OnSelectionChangedEnabled { + get => onSelectionChangedEnabled; + set => this.onSelectionChangedEnabled = value; + } + bool? onClosedEnabled; + [Parameter] + bool? OnClosedEnabled { + get => onClosedEnabled; + set => this.onClosedEnabled = value; + } + bool? onOpenedEnabled; + [Parameter] + bool? OnOpenedEnabled { + get => onOpenedEnabled; + set => this.onOpenedEnabled = value; + } + bool? onChangeEnabled; + [Parameter] + bool? OnChangeEnabled { + get => onChangeEnabled; + set => this.onChangeEnabled = value; + } + bool? onCopyEnabled; + [Parameter] + bool? OnCopyEnabled { + get => onCopyEnabled; + set => this.onCopyEnabled = value; + } + bool? onCutEnabled; + [Parameter] + bool? OnCutEnabled { + get => onCutEnabled; + set => this.onCutEnabled = value; + } + bool? onEnterKeyEnabled; + [Parameter] + bool? OnEnterKeyEnabled { + get => onEnterKeyEnabled; + set => this.onEnterKeyEnabled = value; + } + bool? onFocusInEnabled; + [Parameter] + bool? OnFocusInEnabled { + get => onFocusInEnabled; + set => this.onFocusInEnabled = value; + } + bool? onFocusOutEnabled; + [Parameter] + bool? OnFocusOutEnabled { + get => onFocusOutEnabled; + set => this.onFocusOutEnabled = value; + } + bool? onInputEnabled; + [Parameter] + bool? OnInputEnabled { + get => onInputEnabled; + set => this.onInputEnabled = value; + } + bool? onKeyDownEnabled; + [Parameter] + bool? OnKeyDownEnabled { + get => onKeyDownEnabled; + set => this.onKeyDownEnabled = value; + } + bool? onKeyPressEnabled; + [Parameter] + bool? OnKeyPressEnabled { + get => onKeyPressEnabled; + set => this.onKeyPressEnabled = value; + } + bool? onKeyUpEnabled; + [Parameter] + bool? OnKeyUpEnabled { + get => onKeyUpEnabled; + set => this.onKeyUpEnabled = value; + } + bool? onPasteEnabled; + [Parameter] + bool? OnPasteEnabled { + get => onPasteEnabled; + set => this.onPasteEnabled = value; + } + bool? onContentReadyEnabled; + [Parameter] + bool? OnContentReadyEnabled { + get => onContentReadyEnabled; + set => this.onContentReadyEnabled = value; + } + bool? onDisposingEnabled; + [Parameter] + bool? OnDisposingEnabled { + get => onDisposingEnabled; + set => this.onDisposingEnabled = value; + } + bool? onOptionChangedEnabled; + [Parameter] + bool? OnOptionChangedEnabled { + get => onOptionChangedEnabled; + set => this.onOptionChangedEnabled = value; + } + bool? onInitializedEnabled; + [Parameter] + bool? OnInitializedEnabled { + get => onInitializedEnabled; + set => this.onInitializedEnabled = value; + } protected override async Task OnInitAsync() { await base.OnInitAsync(); DevExpress.Ui.DxLookupInterop.PageLoading += DxLookup_PageLoading; @@ -486,6 +1230,25 @@ return DevExpress.Ui.DxLookupInterop.Init(dxTarget, options); DevExpress.Ui.DxLookupInterop.Scroll += DxLookup_Scroll; DevExpress.Ui.DxLookupInterop.TitleRendered += DxLookup_TitleRendered; DevExpress.Ui.DxLookupInterop.ValueChanged += DxLookup_ValueChanged; + DevExpress.Ui.DxLookupInterop.ItemClick += DxLookup_ItemClick; + DevExpress.Ui.DxLookupInterop.SelectionChanged += DxLookup_SelectionChanged; + DevExpress.Ui.DxLookupInterop.Closed += DxLookup_Closed; + DevExpress.Ui.DxLookupInterop.Opened += DxLookup_Opened; + DevExpress.Ui.DxLookupInterop.Change += DxLookup_Change; + DevExpress.Ui.DxLookupInterop.Copy += DxLookup_Copy; + DevExpress.Ui.DxLookupInterop.Cut += DxLookup_Cut; + DevExpress.Ui.DxLookupInterop.EnterKey += DxLookup_EnterKey; + DevExpress.Ui.DxLookupInterop.FocusIn += DxLookup_FocusIn; + DevExpress.Ui.DxLookupInterop.FocusOut += DxLookup_FocusOut; + DevExpress.Ui.DxLookupInterop.Input += DxLookup_Input; + DevExpress.Ui.DxLookupInterop.KeyDown += DxLookup_KeyDown; + DevExpress.Ui.DxLookupInterop.KeyPress += DxLookup_KeyPress; + DevExpress.Ui.DxLookupInterop.KeyUp += DxLookup_KeyUp; + DevExpress.Ui.DxLookupInterop.Paste += DxLookup_Paste; + DevExpress.Ui.DxLookupInterop.ContentReady += DxLookup_ContentReady; + DevExpress.Ui.DxLookupInterop.Disposing += DxLookup_Disposing; + DevExpress.Ui.DxLookupInterop.OptionChanged += DxLookup_OptionChanged; + DevExpress.Ui.DxLookupInterop.Initialized += DxLookup_Initialized; } [Parameter] Action PageLoading { get; set; } @@ -522,11 +1285,163 @@ return DevExpress.Ui.DxLookupInterop.Init(dxTarget, options); ValueChanged?.Invoke(); } } + [Parameter] + Action ItemClick { get; set; } + void DxLookup_ItemClick(object sender, JQueryEventArgs e) { + if (e.Identifier == Id) { + ItemClick?.Invoke(); + } + } + [Parameter] + Action SelectionChanged { get; set; } + void DxLookup_SelectionChanged(object sender, JQueryEventArgs e) { + if (e.Identifier == Id) { + SelectionChanged?.Invoke(); + } + } + [Parameter] + Action Closed { get; set; } + void DxLookup_Closed(object sender, JQueryEventArgs e) { + if (e.Identifier == Id) { + Closed?.Invoke(); + } + } + [Parameter] + Action Opened { get; set; } + void DxLookup_Opened(object sender, JQueryEventArgs e) { + if (e.Identifier == Id) { + Opened?.Invoke(); + } + } + [Parameter] + Action Change { get; set; } + void DxLookup_Change(object sender, JQueryEventArgs e) { + if (e.Identifier == Id) { + Change?.Invoke(); + } + } + [Parameter] + Action Copy { get; set; } + void DxLookup_Copy(object sender, JQueryEventArgs e) { + if (e.Identifier == Id) { + Copy?.Invoke(); + } + } + [Parameter] + Action Cut { get; set; } + void DxLookup_Cut(object sender, JQueryEventArgs e) { + if (e.Identifier == Id) { + Cut?.Invoke(); + } + } + [Parameter] + Action EnterKey { get; set; } + void DxLookup_EnterKey(object sender, JQueryEventArgs e) { + if (e.Identifier == Id) { + EnterKey?.Invoke(); + } + } + [Parameter] + Action FocusIn { get; set; } + void DxLookup_FocusIn(object sender, JQueryEventArgs e) { + if (e.Identifier == Id) { + FocusIn?.Invoke(); + } + } + [Parameter] + Action FocusOut { get; set; } + void DxLookup_FocusOut(object sender, JQueryEventArgs e) { + if (e.Identifier == Id) { + FocusOut?.Invoke(); + } + } + [Parameter] + Action Input { get; set; } + void DxLookup_Input(object sender, JQueryEventArgs e) { + if (e.Identifier == Id) { + Input?.Invoke(); + } + } + [Parameter] + Action KeyDown { get; set; } + void DxLookup_KeyDown(object sender, JQueryEventArgs e) { + if (e.Identifier == Id) { + KeyDown?.Invoke(); + } + } + [Parameter] + Action KeyPress { get; set; } + void DxLookup_KeyPress(object sender, JQueryEventArgs e) { + if (e.Identifier == Id) { + KeyPress?.Invoke(); + } + } + [Parameter] + Action KeyUp { get; set; } + void DxLookup_KeyUp(object sender, JQueryEventArgs e) { + if (e.Identifier == Id) { + KeyUp?.Invoke(); + } + } + [Parameter] + Action Paste { get; set; } + void DxLookup_Paste(object sender, JQueryEventArgs e) { + if (e.Identifier == Id) { + Paste?.Invoke(); + } + } + [Parameter] + Action ContentReady { get; set; } + void DxLookup_ContentReady(object sender, JQueryEventArgs e) { + if (e.Identifier == Id) { + ContentReady?.Invoke(); + } + } + [Parameter] + Action Disposing { get; set; } + void DxLookup_Disposing(object sender, JQueryEventArgs e) { + if (e.Identifier == Id) { + Disposing?.Invoke(); + } + } + [Parameter] + Action OptionChanged { get; set; } + void DxLookup_OptionChanged(object sender, JQueryEventArgs e) { + if (e.Identifier == Id) { + OptionChanged?.Invoke(); + } + } + [Parameter] + Action Initialized { get; set; } + void DxLookup_Initialized(object sender, JQueryEventArgs e) { + if (e.Identifier == Id) { + Initialized?.Invoke(); + } + } public void Dispose() { DevExpress.Ui.DxLookupInterop.PageLoading -= DxLookup_PageLoading; DevExpress.Ui.DxLookupInterop.PullRefresh -= DxLookup_PullRefresh; DevExpress.Ui.DxLookupInterop.Scroll -= DxLookup_Scroll; DevExpress.Ui.DxLookupInterop.TitleRendered -= DxLookup_TitleRendered; DevExpress.Ui.DxLookupInterop.ValueChanged -= DxLookup_ValueChanged; + DevExpress.Ui.DxLookupInterop.ItemClick -= DxLookup_ItemClick; + DevExpress.Ui.DxLookupInterop.SelectionChanged -= DxLookup_SelectionChanged; + DevExpress.Ui.DxLookupInterop.Closed -= DxLookup_Closed; + DevExpress.Ui.DxLookupInterop.Opened -= DxLookup_Opened; + DevExpress.Ui.DxLookupInterop.Change -= DxLookup_Change; + DevExpress.Ui.DxLookupInterop.Copy -= DxLookup_Copy; + DevExpress.Ui.DxLookupInterop.Cut -= DxLookup_Cut; + DevExpress.Ui.DxLookupInterop.EnterKey -= DxLookup_EnterKey; + DevExpress.Ui.DxLookupInterop.FocusIn -= DxLookup_FocusIn; + DevExpress.Ui.DxLookupInterop.FocusOut -= DxLookup_FocusOut; + DevExpress.Ui.DxLookupInterop.Input -= DxLookup_Input; + DevExpress.Ui.DxLookupInterop.KeyDown -= DxLookup_KeyDown; + DevExpress.Ui.DxLookupInterop.KeyPress -= DxLookup_KeyPress; + DevExpress.Ui.DxLookupInterop.KeyUp -= DxLookup_KeyUp; + DevExpress.Ui.DxLookupInterop.Paste -= DxLookup_Paste; + DevExpress.Ui.DxLookupInterop.ContentReady -= DxLookup_ContentReady; + DevExpress.Ui.DxLookupInterop.Disposing -= DxLookup_Disposing; + DevExpress.Ui.DxLookupInterop.OptionChanged -= DxLookup_OptionChanged; + DevExpress.Ui.DxLookupInterop.Initialized -= DxLookup_Initialized; } } diff --git a/sources/BlazorDevExtreme/Components/DxMap.cshtml b/sources/BlazorDevExtreme/Components/DxMap.cshtml index fbb2add..0f950f7 100644 --- a/sources/BlazorDevExtreme/Components/DxMap.cshtml +++ b/sources/BlazorDevExtreme/Components/DxMap.cshtml @@ -23,21 +23,35 @@ type = type, width = width, zoom = zoom, + accessKey = accessKey, + activeStateEnabled = activeStateEnabled, + disabled = disabled, + hint = hint, + hoverStateEnabled = hoverStateEnabled, + tabIndex = tabIndex, + visible = visible, + bindingOptions = bindingOptions, + elementAttr = elementAttr, + rtlEnabled = rtlEnabled, onClickEnabled = onClickEnabled, onMarkerAddedEnabled = onMarkerAddedEnabled, onMarkerRemovedEnabled = onMarkerRemovedEnabled, onReadyEnabled = onReadyEnabled, onRouteAddedEnabled = onRouteAddedEnabled, onRouteRemovedEnabled = onRouteRemovedEnabled, + onContentReadyEnabled = onContentReadyEnabled, + onDisposingEnabled = onDisposingEnabled, + onOptionChangedEnabled = onOptionChangedEnabled, + onInitializedEnabled = onInitializedEnabled, }; } protected override Task Init(DevExpress.Ui.DxMapOptions options) { -return DevExpress.Ui.DxMapInterop.Init(dxTarget, options); + return DevExpress.Ui.DxMapInterop.Init(dxTarget, options); } bool? autoAdjust; [Parameter] bool? AutoAdjust { - get => isInitialized ? DevExpress.Ui.DxMapInterop.GetAutoAdjust(dxTarget).Result : autoAdjust; + get => isInitialized ? (bool?)DevExpress.Ui.DxMapInterop.GetAutoAdjust(dxTarget).Result : autoAdjust; set { if (isInitialized) { DevExpress.Ui.DxMapInterop.SetAutoAdjust(dxTarget, value); @@ -61,7 +75,7 @@ return DevExpress.Ui.DxMapInterop.Init(dxTarget, options); bool? controls; [Parameter] bool? Controls { - get => isInitialized ? DevExpress.Ui.DxMapInterop.GetControls(dxTarget).Result : controls; + get => isInitialized ? (bool?)DevExpress.Ui.DxMapInterop.GetControls(dxTarget).Result : controls; set { if (isInitialized) { DevExpress.Ui.DxMapInterop.SetControls(dxTarget, value); @@ -73,7 +87,7 @@ return DevExpress.Ui.DxMapInterop.Init(dxTarget, options); bool? focusStateEnabled; [Parameter] bool? FocusStateEnabled { - get => isInitialized ? DevExpress.Ui.DxMapInterop.GetFocusStateEnabled(dxTarget).Result : focusStateEnabled; + get => isInitialized ? (bool?)DevExpress.Ui.DxMapInterop.GetFocusStateEnabled(dxTarget).Result : focusStateEnabled; set { if (isInitialized) { DevExpress.Ui.DxMapInterop.SetFocusStateEnabled(dxTarget, value); @@ -109,7 +123,7 @@ return DevExpress.Ui.DxMapInterop.Init(dxTarget, options); string markerIconSrc; [Parameter] string MarkerIconSrc { - get => isInitialized ? DevExpress.Ui.DxMapInterop.GetMarkerIconSrc(dxTarget).Result : markerIconSrc; + get => isInitialized ? (string)DevExpress.Ui.DxMapInterop.GetMarkerIconSrc(dxTarget).Result : markerIconSrc; set { if (isInitialized) { DevExpress.Ui.DxMapInterop.SetMarkerIconSrc(dxTarget, value); @@ -133,7 +147,7 @@ return DevExpress.Ui.DxMapInterop.Init(dxTarget, options); string provider; [Parameter] string Provider { - get => isInitialized ? DevExpress.Ui.DxMapInterop.GetProvider(dxTarget).Result : provider; + get => isInitialized ? (string)DevExpress.Ui.DxMapInterop.GetProvider(dxTarget).Result : provider; set { if (isInitialized) { DevExpress.Ui.DxMapInterop.SetProvider(dxTarget, value); @@ -157,7 +171,7 @@ return DevExpress.Ui.DxMapInterop.Init(dxTarget, options); string type; [Parameter] string Type { - get => isInitialized ? DevExpress.Ui.DxMapInterop.GetType(dxTarget).Result : type; + get => isInitialized ? (string)DevExpress.Ui.DxMapInterop.GetType(dxTarget).Result : type; set { if (isInitialized) { DevExpress.Ui.DxMapInterop.SetType(dxTarget, value); @@ -181,7 +195,7 @@ return DevExpress.Ui.DxMapInterop.Init(dxTarget, options); float? zoom; [Parameter] float? Zoom { - get => isInitialized ? DevExpress.Ui.DxMapInterop.GetZoom(dxTarget).Result : zoom; + get => isInitialized ? (float?)DevExpress.Ui.DxMapInterop.GetZoom(dxTarget).Result : zoom; set { if (isInitialized) { DevExpress.Ui.DxMapInterop.SetZoom(dxTarget, value); @@ -190,6 +204,126 @@ return DevExpress.Ui.DxMapInterop.Init(dxTarget, options); } } } + string accessKey; + [Parameter] + string AccessKey { + get => isInitialized ? (string)DevExpress.Ui.DxMapInterop.GetAccessKey(dxTarget).Result : accessKey; + set { + if (isInitialized) { + DevExpress.Ui.DxMapInterop.SetAccessKey(dxTarget, value); + } else { + this.accessKey = value; + } + } + } + bool? activeStateEnabled; + [Parameter] + bool? ActiveStateEnabled { + get => isInitialized ? (bool?)DevExpress.Ui.DxMapInterop.GetActiveStateEnabled(dxTarget).Result : activeStateEnabled; + set { + if (isInitialized) { + DevExpress.Ui.DxMapInterop.SetActiveStateEnabled(dxTarget, value); + } else { + this.activeStateEnabled = value; + } + } + } + bool? disabled; + [Parameter] + bool? Disabled { + get => isInitialized ? (bool?)DevExpress.Ui.DxMapInterop.GetDisabled(dxTarget).Result : disabled; + set { + if (isInitialized) { + DevExpress.Ui.DxMapInterop.SetDisabled(dxTarget, value); + } else { + this.disabled = value; + } + } + } + string hint; + [Parameter] + string Hint { + get => isInitialized ? (string)DevExpress.Ui.DxMapInterop.GetHint(dxTarget).Result : hint; + set { + if (isInitialized) { + DevExpress.Ui.DxMapInterop.SetHint(dxTarget, value); + } else { + this.hint = value; + } + } + } + bool? hoverStateEnabled; + [Parameter] + bool? HoverStateEnabled { + get => isInitialized ? (bool?)DevExpress.Ui.DxMapInterop.GetHoverStateEnabled(dxTarget).Result : hoverStateEnabled; + set { + if (isInitialized) { + DevExpress.Ui.DxMapInterop.SetHoverStateEnabled(dxTarget, value); + } else { + this.hoverStateEnabled = value; + } + } + } + float? tabIndex; + [Parameter] + float? TabIndex { + get => isInitialized ? (float?)DevExpress.Ui.DxMapInterop.GetTabIndex(dxTarget).Result : tabIndex; + set { + if (isInitialized) { + DevExpress.Ui.DxMapInterop.SetTabIndex(dxTarget, value); + } else { + this.tabIndex = value; + } + } + } + bool? visible; + [Parameter] + bool? Visible { + get => isInitialized ? (bool?)DevExpress.Ui.DxMapInterop.GetVisible(dxTarget).Result : visible; + set { + if (isInitialized) { + DevExpress.Ui.DxMapInterop.SetVisible(dxTarget, value); + } else { + this.visible = value; + } + } + } + object bindingOptions; + [Parameter] + object BindingOptions { + get => isInitialized ? DevExpress.Ui.DxMapInterop.GetBindingOptions(dxTarget).Result : bindingOptions; + set { + if (isInitialized) { + DevExpress.Ui.DxMapInterop.SetBindingOptions(dxTarget, value); + } else { + this.bindingOptions = value; + } + } + } + object elementAttr; + [Parameter] + object ElementAttr { + get => isInitialized ? DevExpress.Ui.DxMapInterop.GetElementAttr(dxTarget).Result : elementAttr; + set { + if (isInitialized) { + DevExpress.Ui.DxMapInterop.SetElementAttr(dxTarget, value); + } else { + this.elementAttr = value; + } + } + } + bool? rtlEnabled; + [Parameter] + bool? RtlEnabled { + get => isInitialized ? (bool?)DevExpress.Ui.DxMapInterop.GetRtlEnabled(dxTarget).Result : rtlEnabled; + set { + if (isInitialized) { + DevExpress.Ui.DxMapInterop.SetRtlEnabled(dxTarget, value); + } else { + this.rtlEnabled = value; + } + } + } bool? onClickEnabled; [Parameter] bool? OnClickEnabled { @@ -226,6 +360,30 @@ return DevExpress.Ui.DxMapInterop.Init(dxTarget, options); get => onRouteRemovedEnabled; set => this.onRouteRemovedEnabled = value; } + bool? onContentReadyEnabled; + [Parameter] + bool? OnContentReadyEnabled { + get => onContentReadyEnabled; + set => this.onContentReadyEnabled = value; + } + bool? onDisposingEnabled; + [Parameter] + bool? OnDisposingEnabled { + get => onDisposingEnabled; + set => this.onDisposingEnabled = value; + } + bool? onOptionChangedEnabled; + [Parameter] + bool? OnOptionChangedEnabled { + get => onOptionChangedEnabled; + set => this.onOptionChangedEnabled = value; + } + bool? onInitializedEnabled; + [Parameter] + bool? OnInitializedEnabled { + get => onInitializedEnabled; + set => this.onInitializedEnabled = value; + } protected override async Task OnInitAsync() { await base.OnInitAsync(); DevExpress.Ui.DxMapInterop.Click += DxMap_Click; @@ -234,6 +392,10 @@ return DevExpress.Ui.DxMapInterop.Init(dxTarget, options); DevExpress.Ui.DxMapInterop.Ready += DxMap_Ready; DevExpress.Ui.DxMapInterop.RouteAdded += DxMap_RouteAdded; DevExpress.Ui.DxMapInterop.RouteRemoved += DxMap_RouteRemoved; + DevExpress.Ui.DxMapInterop.ContentReady += DxMap_ContentReady; + DevExpress.Ui.DxMapInterop.Disposing += DxMap_Disposing; + DevExpress.Ui.DxMapInterop.OptionChanged += DxMap_OptionChanged; + DevExpress.Ui.DxMapInterop.Initialized += DxMap_Initialized; } [Parameter] Action Click { get; set; } @@ -277,6 +439,34 @@ return DevExpress.Ui.DxMapInterop.Init(dxTarget, options); RouteRemoved?.Invoke(); } } + [Parameter] + Action ContentReady { get; set; } + void DxMap_ContentReady(object sender, JQueryEventArgs e) { + if (e.Identifier == Id) { + ContentReady?.Invoke(); + } + } + [Parameter] + Action Disposing { get; set; } + void DxMap_Disposing(object sender, JQueryEventArgs e) { + if (e.Identifier == Id) { + Disposing?.Invoke(); + } + } + [Parameter] + Action OptionChanged { get; set; } + void DxMap_OptionChanged(object sender, JQueryEventArgs e) { + if (e.Identifier == Id) { + OptionChanged?.Invoke(); + } + } + [Parameter] + Action Initialized { get; set; } + void DxMap_Initialized(object sender, JQueryEventArgs e) { + if (e.Identifier == Id) { + Initialized?.Invoke(); + } + } public object AddMarker(object markerOptions) { return DevExpress.Ui.DxMapInterop.AddMarker(dxTarget, markerOptions).Result; } @@ -296,5 +486,9 @@ return DevExpress.Ui.DxMapInterop.Init(dxTarget, options); DevExpress.Ui.DxMapInterop.Ready -= DxMap_Ready; DevExpress.Ui.DxMapInterop.RouteAdded -= DxMap_RouteAdded; DevExpress.Ui.DxMapInterop.RouteRemoved -= DxMap_RouteRemoved; + DevExpress.Ui.DxMapInterop.ContentReady -= DxMap_ContentReady; + DevExpress.Ui.DxMapInterop.Disposing -= DxMap_Disposing; + DevExpress.Ui.DxMapInterop.OptionChanged -= DxMap_OptionChanged; + DevExpress.Ui.DxMapInterop.Initialized -= DxMap_Initialized; } } diff --git a/sources/BlazorDevExtreme/Components/DxMenu.cshtml b/sources/BlazorDevExtreme/Components/DxMenu.cshtml index fd256d4..7e165ab 100644 --- a/sources/BlazorDevExtreme/Components/DxMenu.cshtml +++ b/sources/BlazorDevExtreme/Components/DxMenu.cshtml @@ -16,19 +16,59 @@ orientation = orientation, showFirstSubmenuMode = showFirstSubmenuMode, submenuDirection = submenuDirection, + activeStateEnabled = activeStateEnabled, + animation = animation, + cssClass = cssClass, + selectByClick = selectByClick, + selectionMode = selectionMode, + showSubmenuMode = showSubmenuMode, + disabledExpr = disabledExpr, + displayExpr = displayExpr, + focusStateEnabled = focusStateEnabled, + hoverStateEnabled = hoverStateEnabled, + itemsExpr = itemsExpr, + keyExpr = keyExpr, + selectedExpr = selectedExpr, + dataSource = dataSource, + itemHoldTimeout = itemHoldTimeout, + itemTemplate = itemTemplate, + noDataText = noDataText, + selectedIndex = selectedIndex, + selectedItem = selectedItem, + selectedItemKeys = selectedItemKeys, + selectedItems = selectedItems, + accessKey = accessKey, + disabled = disabled, + hint = hint, + tabIndex = tabIndex, + visible = visible, + bindingOptions = bindingOptions, + elementAttr = elementAttr, + height = height, + rtlEnabled = rtlEnabled, + width = width, onSubmenuHiddenEnabled = onSubmenuHiddenEnabled, onSubmenuHidingEnabled = onSubmenuHidingEnabled, onSubmenuShowingEnabled = onSubmenuShowingEnabled, onSubmenuShownEnabled = onSubmenuShownEnabled, + onItemClickEnabled = onItemClickEnabled, + onItemContextMenuEnabled = onItemContextMenuEnabled, + onItemHoldEnabled = onItemHoldEnabled, + onItemRenderedEnabled = onItemRenderedEnabled, + onSelectionChangedEnabled = onSelectionChangedEnabled, + onContentReadyEnabled = onContentReadyEnabled, + onDisposingEnabled = onDisposingEnabled, + onOptionChangedEnabled = onOptionChangedEnabled, + onInitializedEnabled = onInitializedEnabled, }; } protected override Task Init(DevExpress.Ui.DxMenuOptions options) { -return DevExpress.Ui.DxMenuInterop.Init(dxTarget, options); + return DevExpress.Ui.DxMenuInterop.Init(dxTarget, options); } bool? adaptivityEnabled; [Parameter] bool? AdaptivityEnabled { - get => isInitialized ? DevExpress.Ui.DxMenuInterop.GetAdaptivityEnabled(dxTarget).Result : adaptivityEnabled; + get => isInitialized ? (bool?)DevExpress.Ui.DxMenuInterop.GetAdaptivityEnabled(dxTarget).Result : adaptivityEnabled; set { if (isInitialized) { DevExpress.Ui.DxMenuInterop.SetAdaptivityEnabled(dxTarget, value); @@ -40,7 +80,7 @@ return DevExpress.Ui.DxMenuInterop.Init(dxTarget, options); bool? hideSubmenuOnMouseLeave; [Parameter] bool? HideSubmenuOnMouseLeave { - get => isInitialized ? DevExpress.Ui.DxMenuInterop.GetHideSubmenuOnMouseLeave(dxTarget).Result : hideSubmenuOnMouseLeave; + get => isInitialized ? (bool?)DevExpress.Ui.DxMenuInterop.GetHideSubmenuOnMouseLeave(dxTarget).Result : hideSubmenuOnMouseLeave; set { if (isInitialized) { DevExpress.Ui.DxMenuInterop.SetHideSubmenuOnMouseLeave(dxTarget, value); @@ -64,7 +104,7 @@ return DevExpress.Ui.DxMenuInterop.Init(dxTarget, options); string orientation; [Parameter] string Orientation { - get => isInitialized ? DevExpress.Ui.DxMenuInterop.GetOrientation(dxTarget).Result : orientation; + get => isInitialized ? (string)DevExpress.Ui.DxMenuInterop.GetOrientation(dxTarget).Result : orientation; set { if (isInitialized) { DevExpress.Ui.DxMenuInterop.SetOrientation(dxTarget, value); @@ -88,7 +128,7 @@ return DevExpress.Ui.DxMenuInterop.Init(dxTarget, options); string submenuDirection; [Parameter] string SubmenuDirection { - get => isInitialized ? DevExpress.Ui.DxMenuInterop.GetSubmenuDirection(dxTarget).Result : submenuDirection; + get => isInitialized ? (string)DevExpress.Ui.DxMenuInterop.GetSubmenuDirection(dxTarget).Result : submenuDirection; set { if (isInitialized) { DevExpress.Ui.DxMenuInterop.SetSubmenuDirection(dxTarget, value); @@ -97,6 +137,378 @@ return DevExpress.Ui.DxMenuInterop.Init(dxTarget, options); } } } + bool? activeStateEnabled; + [Parameter] + bool? ActiveStateEnabled { + get => isInitialized ? (bool?)DevExpress.Ui.DxMenuInterop.GetActiveStateEnabled(dxTarget).Result : activeStateEnabled; + set { + if (isInitialized) { + DevExpress.Ui.DxMenuInterop.SetActiveStateEnabled(dxTarget, value); + } else { + this.activeStateEnabled = value; + } + } + } + object animation; + [Parameter] + object Animation { + get => isInitialized ? DevExpress.Ui.DxMenuInterop.GetAnimation(dxTarget).Result : animation; + set { + if (isInitialized) { + DevExpress.Ui.DxMenuInterop.SetAnimation(dxTarget, value); + } else { + this.animation = value; + } + } + } + string cssClass; + [Parameter] + string CssClass { + get => isInitialized ? (string)DevExpress.Ui.DxMenuInterop.GetCssClass(dxTarget).Result : cssClass; + set { + if (isInitialized) { + DevExpress.Ui.DxMenuInterop.SetCssClass(dxTarget, value); + } else { + this.cssClass = value; + } + } + } + bool? selectByClick; + [Parameter] + bool? SelectByClick { + get => isInitialized ? (bool?)DevExpress.Ui.DxMenuInterop.GetSelectByClick(dxTarget).Result : selectByClick; + set { + if (isInitialized) { + DevExpress.Ui.DxMenuInterop.SetSelectByClick(dxTarget, value); + } else { + this.selectByClick = value; + } + } + } + string selectionMode; + [Parameter] + string SelectionMode { + get => isInitialized ? (string)DevExpress.Ui.DxMenuInterop.GetSelectionMode(dxTarget).Result : selectionMode; + set { + if (isInitialized) { + DevExpress.Ui.DxMenuInterop.SetSelectionMode(dxTarget, value); + } else { + this.selectionMode = value; + } + } + } + object showSubmenuMode; + [Parameter] + object ShowSubmenuMode { + get => isInitialized ? DevExpress.Ui.DxMenuInterop.GetShowSubmenuMode(dxTarget).Result : showSubmenuMode; + set { + if (isInitialized) { + DevExpress.Ui.DxMenuInterop.SetShowSubmenuMode(dxTarget, value); + } else { + this.showSubmenuMode = value; + } + } + } + object disabledExpr; + [Parameter] + object DisabledExpr { + get => isInitialized ? DevExpress.Ui.DxMenuInterop.GetDisabledExpr(dxTarget).Result : disabledExpr; + set { + if (isInitialized) { + DevExpress.Ui.DxMenuInterop.SetDisabledExpr(dxTarget, value); + } else { + this.disabledExpr = value; + } + } + } + object displayExpr; + [Parameter] + object DisplayExpr { + get => isInitialized ? DevExpress.Ui.DxMenuInterop.GetDisplayExpr(dxTarget).Result : displayExpr; + set { + if (isInitialized) { + DevExpress.Ui.DxMenuInterop.SetDisplayExpr(dxTarget, value); + } else { + this.displayExpr = value; + } + } + } + bool? focusStateEnabled; + [Parameter] + bool? FocusStateEnabled { + get => isInitialized ? (bool?)DevExpress.Ui.DxMenuInterop.GetFocusStateEnabled(dxTarget).Result : focusStateEnabled; + set { + if (isInitialized) { + DevExpress.Ui.DxMenuInterop.SetFocusStateEnabled(dxTarget, value); + } else { + this.focusStateEnabled = value; + } + } + } + bool? hoverStateEnabled; + [Parameter] + bool? HoverStateEnabled { + get => isInitialized ? (bool?)DevExpress.Ui.DxMenuInterop.GetHoverStateEnabled(dxTarget).Result : hoverStateEnabled; + set { + if (isInitialized) { + DevExpress.Ui.DxMenuInterop.SetHoverStateEnabled(dxTarget, value); + } else { + this.hoverStateEnabled = value; + } + } + } + object itemsExpr; + [Parameter] + object ItemsExpr { + get => isInitialized ? DevExpress.Ui.DxMenuInterop.GetItemsExpr(dxTarget).Result : itemsExpr; + set { + if (isInitialized) { + DevExpress.Ui.DxMenuInterop.SetItemsExpr(dxTarget, value); + } else { + this.itemsExpr = value; + } + } + } + object keyExpr; + [Parameter] + object KeyExpr { + get => isInitialized ? DevExpress.Ui.DxMenuInterop.GetKeyExpr(dxTarget).Result : keyExpr; + set { + if (isInitialized) { + DevExpress.Ui.DxMenuInterop.SetKeyExpr(dxTarget, value); + } else { + this.keyExpr = value; + } + } + } + object selectedExpr; + [Parameter] + object SelectedExpr { + get => isInitialized ? DevExpress.Ui.DxMenuInterop.GetSelectedExpr(dxTarget).Result : selectedExpr; + set { + if (isInitialized) { + DevExpress.Ui.DxMenuInterop.SetSelectedExpr(dxTarget, value); + } else { + this.selectedExpr = value; + } + } + } + object dataSource; + [Parameter] + object DataSource { + get => isInitialized ? DevExpress.Ui.DxMenuInterop.GetDataSource(dxTarget).Result : dataSource; + set { + if (isInitialized) { + DevExpress.Ui.DxMenuInterop.SetDataSource(dxTarget, value); + } else { + this.dataSource = value; + } + } + } + float? itemHoldTimeout; + [Parameter] + float? ItemHoldTimeout { + get => isInitialized ? (float?)DevExpress.Ui.DxMenuInterop.GetItemHoldTimeout(dxTarget).Result : itemHoldTimeout; + set { + if (isInitialized) { + DevExpress.Ui.DxMenuInterop.SetItemHoldTimeout(dxTarget, value); + } else { + this.itemHoldTimeout = value; + } + } + } + object itemTemplate; + [Parameter] + object ItemTemplate { + get => isInitialized ? DevExpress.Ui.DxMenuInterop.GetItemTemplate(dxTarget).Result : itemTemplate; + set { + if (isInitialized) { + DevExpress.Ui.DxMenuInterop.SetItemTemplate(dxTarget, value); + } else { + this.itemTemplate = value; + } + } + } + string noDataText; + [Parameter] + string NoDataText { + get => isInitialized ? (string)DevExpress.Ui.DxMenuInterop.GetNoDataText(dxTarget).Result : noDataText; + set { + if (isInitialized) { + DevExpress.Ui.DxMenuInterop.SetNoDataText(dxTarget, value); + } else { + this.noDataText = value; + } + } + } + float? selectedIndex; + [Parameter] + float? SelectedIndex { + get => isInitialized ? (float?)DevExpress.Ui.DxMenuInterop.GetSelectedIndex(dxTarget).Result : selectedIndex; + set { + if (isInitialized) { + DevExpress.Ui.DxMenuInterop.SetSelectedIndex(dxTarget, value); + } else { + this.selectedIndex = value; + } + } + } + object selectedItem; + [Parameter] + object SelectedItem { + get => isInitialized ? DevExpress.Ui.DxMenuInterop.GetSelectedItem(dxTarget).Result : selectedItem; + set { + if (isInitialized) { + DevExpress.Ui.DxMenuInterop.SetSelectedItem(dxTarget, value); + } else { + this.selectedItem = value; + } + } + } + object selectedItemKeys; + [Parameter] + object SelectedItemKeys { + get => isInitialized ? DevExpress.Ui.DxMenuInterop.GetSelectedItemKeys(dxTarget).Result : selectedItemKeys; + set { + if (isInitialized) { + DevExpress.Ui.DxMenuInterop.SetSelectedItemKeys(dxTarget, value); + } else { + this.selectedItemKeys = value; + } + } + } + object selectedItems; + [Parameter] + object SelectedItems { + get => isInitialized ? DevExpress.Ui.DxMenuInterop.GetSelectedItems(dxTarget).Result : selectedItems; + set { + if (isInitialized) { + DevExpress.Ui.DxMenuInterop.SetSelectedItems(dxTarget, value); + } else { + this.selectedItems = value; + } + } + } + string accessKey; + [Parameter] + string AccessKey { + get => isInitialized ? (string)DevExpress.Ui.DxMenuInterop.GetAccessKey(dxTarget).Result : accessKey; + set { + if (isInitialized) { + DevExpress.Ui.DxMenuInterop.SetAccessKey(dxTarget, value); + } else { + this.accessKey = value; + } + } + } + bool? disabled; + [Parameter] + bool? Disabled { + get => isInitialized ? (bool?)DevExpress.Ui.DxMenuInterop.GetDisabled(dxTarget).Result : disabled; + set { + if (isInitialized) { + DevExpress.Ui.DxMenuInterop.SetDisabled(dxTarget, value); + } else { + this.disabled = value; + } + } + } + string hint; + [Parameter] + string Hint { + get => isInitialized ? (string)DevExpress.Ui.DxMenuInterop.GetHint(dxTarget).Result : hint; + set { + if (isInitialized) { + DevExpress.Ui.DxMenuInterop.SetHint(dxTarget, value); + } else { + this.hint = value; + } + } + } + float? tabIndex; + [Parameter] + float? TabIndex { + get => isInitialized ? (float?)DevExpress.Ui.DxMenuInterop.GetTabIndex(dxTarget).Result : tabIndex; + set { + if (isInitialized) { + DevExpress.Ui.DxMenuInterop.SetTabIndex(dxTarget, value); + } else { + this.tabIndex = value; + } + } + } + bool? visible; + [Parameter] + bool? Visible { + get => isInitialized ? (bool?)DevExpress.Ui.DxMenuInterop.GetVisible(dxTarget).Result : visible; + set { + if (isInitialized) { + DevExpress.Ui.DxMenuInterop.SetVisible(dxTarget, value); + } else { + this.visible = value; + } + } + } + object bindingOptions; + [Parameter] + object BindingOptions { + get => isInitialized ? DevExpress.Ui.DxMenuInterop.GetBindingOptions(dxTarget).Result : bindingOptions; + set { + if (isInitialized) { + DevExpress.Ui.DxMenuInterop.SetBindingOptions(dxTarget, value); + } else { + this.bindingOptions = value; + } + } + } + object elementAttr; + [Parameter] + object ElementAttr { + get => isInitialized ? DevExpress.Ui.DxMenuInterop.GetElementAttr(dxTarget).Result : elementAttr; + set { + if (isInitialized) { + DevExpress.Ui.DxMenuInterop.SetElementAttr(dxTarget, value); + } else { + this.elementAttr = value; + } + } + } + object height; + [Parameter] + object Height { + get => isInitialized ? DevExpress.Ui.DxMenuInterop.GetHeight(dxTarget).Result : height; + set { + if (isInitialized) { + DevExpress.Ui.DxMenuInterop.SetHeight(dxTarget, value); + } else { + this.height = value; + } + } + } + bool? rtlEnabled; + [Parameter] + bool? RtlEnabled { + get => isInitialized ? (bool?)DevExpress.Ui.DxMenuInterop.GetRtlEnabled(dxTarget).Result : rtlEnabled; + set { + if (isInitialized) { + DevExpress.Ui.DxMenuInterop.SetRtlEnabled(dxTarget, value); + } else { + this.rtlEnabled = value; + } + } + } + object width; + [Parameter] + object Width { + get => isInitialized ? DevExpress.Ui.DxMenuInterop.GetWidth(dxTarget).Result : width; + set { + if (isInitialized) { + DevExpress.Ui.DxMenuInterop.SetWidth(dxTarget, value); + } else { + this.width = value; + } + } + } bool? onSubmenuHiddenEnabled; [Parameter] bool? OnSubmenuHiddenEnabled { @@ -121,12 +533,75 @@ return DevExpress.Ui.DxMenuInterop.Init(dxTarget, options); get => onSubmenuShownEnabled; set => this.onSubmenuShownEnabled = value; } + bool? onItemClickEnabled; + [Parameter] + bool? OnItemClickEnabled { + get => onItemClickEnabled; + set => this.onItemClickEnabled = value; + } + bool? onItemContextMenuEnabled; + [Parameter] + bool? OnItemContextMenuEnabled { + get => onItemContextMenuEnabled; + set => this.onItemContextMenuEnabled = value; + } + bool? onItemHoldEnabled; + [Parameter] + bool? OnItemHoldEnabled { + get => onItemHoldEnabled; + set => this.onItemHoldEnabled = value; + } + bool? onItemRenderedEnabled; + [Parameter] + bool? OnItemRenderedEnabled { + get => onItemRenderedEnabled; + set => this.onItemRenderedEnabled = value; + } + bool? onSelectionChangedEnabled; + [Parameter] + bool? OnSelectionChangedEnabled { + get => onSelectionChangedEnabled; + set => this.onSelectionChangedEnabled = value; + } + bool? onContentReadyEnabled; + [Parameter] + bool? OnContentReadyEnabled { + get => onContentReadyEnabled; + set => this.onContentReadyEnabled = value; + } + bool? onDisposingEnabled; + [Parameter] + bool? OnDisposingEnabled { + get => onDisposingEnabled; + set => this.onDisposingEnabled = value; + } + bool? onOptionChangedEnabled; + [Parameter] + bool? OnOptionChangedEnabled { + get => onOptionChangedEnabled; + set => this.onOptionChangedEnabled = value; + } + bool? onInitializedEnabled; + [Parameter] + bool? OnInitializedEnabled { + get => onInitializedEnabled; + set => this.onInitializedEnabled = value; + } protected override async Task OnInitAsync() { await base.OnInitAsync(); DevExpress.Ui.DxMenuInterop.SubmenuHidden += DxMenu_SubmenuHidden; DevExpress.Ui.DxMenuInterop.SubmenuHiding += DxMenu_SubmenuHiding; DevExpress.Ui.DxMenuInterop.SubmenuShowing += DxMenu_SubmenuShowing; DevExpress.Ui.DxMenuInterop.SubmenuShown += DxMenu_SubmenuShown; + DevExpress.Ui.DxMenuInterop.ItemClick += DxMenu_ItemClick; + DevExpress.Ui.DxMenuInterop.ItemContextMenu += DxMenu_ItemContextMenu; + DevExpress.Ui.DxMenuInterop.ItemHold += DxMenu_ItemHold; + DevExpress.Ui.DxMenuInterop.ItemRendered += DxMenu_ItemRendered; + DevExpress.Ui.DxMenuInterop.SelectionChanged += DxMenu_SelectionChanged; + DevExpress.Ui.DxMenuInterop.ContentReady += DxMenu_ContentReady; + DevExpress.Ui.DxMenuInterop.Disposing += DxMenu_Disposing; + DevExpress.Ui.DxMenuInterop.OptionChanged += DxMenu_OptionChanged; + DevExpress.Ui.DxMenuInterop.Initialized += DxMenu_Initialized; } [Parameter] Action SubmenuHidden { get; set; } @@ -156,10 +631,82 @@ return DevExpress.Ui.DxMenuInterop.Init(dxTarget, options); SubmenuShown?.Invoke(); } } + [Parameter] + Action ItemClick { get; set; } + void DxMenu_ItemClick(object sender, JQueryEventArgs e) { + if (e.Identifier == Id) { + ItemClick?.Invoke(); + } + } + [Parameter] + Action ItemContextMenu { get; set; } + void DxMenu_ItemContextMenu(object sender, JQueryEventArgs e) { + if (e.Identifier == Id) { + ItemContextMenu?.Invoke(); + } + } + [Parameter] + Action ItemHold { get; set; } + void DxMenu_ItemHold(object sender, JQueryEventArgs e) { + if (e.Identifier == Id) { + ItemHold?.Invoke(); + } + } + [Parameter] + Action ItemRendered { get; set; } + void DxMenu_ItemRendered(object sender, JQueryEventArgs e) { + if (e.Identifier == Id) { + ItemRendered?.Invoke(); + } + } + [Parameter] + Action SelectionChanged { get; set; } + void DxMenu_SelectionChanged(object sender, JQueryEventArgs e) { + if (e.Identifier == Id) { + SelectionChanged?.Invoke(); + } + } + [Parameter] + Action ContentReady { get; set; } + void DxMenu_ContentReady(object sender, JQueryEventArgs e) { + if (e.Identifier == Id) { + ContentReady?.Invoke(); + } + } + [Parameter] + Action Disposing { get; set; } + void DxMenu_Disposing(object sender, JQueryEventArgs e) { + if (e.Identifier == Id) { + Disposing?.Invoke(); + } + } + [Parameter] + Action OptionChanged { get; set; } + void DxMenu_OptionChanged(object sender, JQueryEventArgs e) { + if (e.Identifier == Id) { + OptionChanged?.Invoke(); + } + } + [Parameter] + Action Initialized { get; set; } + void DxMenu_Initialized(object sender, JQueryEventArgs e) { + if (e.Identifier == Id) { + Initialized?.Invoke(); + } + } public void Dispose() { DevExpress.Ui.DxMenuInterop.SubmenuHidden -= DxMenu_SubmenuHidden; DevExpress.Ui.DxMenuInterop.SubmenuHiding -= DxMenu_SubmenuHiding; DevExpress.Ui.DxMenuInterop.SubmenuShowing -= DxMenu_SubmenuShowing; DevExpress.Ui.DxMenuInterop.SubmenuShown -= DxMenu_SubmenuShown; + DevExpress.Ui.DxMenuInterop.ItemClick -= DxMenu_ItemClick; + DevExpress.Ui.DxMenuInterop.ItemContextMenu -= DxMenu_ItemContextMenu; + DevExpress.Ui.DxMenuInterop.ItemHold -= DxMenu_ItemHold; + DevExpress.Ui.DxMenuInterop.ItemRendered -= DxMenu_ItemRendered; + DevExpress.Ui.DxMenuInterop.SelectionChanged -= DxMenu_SelectionChanged; + DevExpress.Ui.DxMenuInterop.ContentReady -= DxMenu_ContentReady; + DevExpress.Ui.DxMenuInterop.Disposing -= DxMenu_Disposing; + DevExpress.Ui.DxMenuInterop.OptionChanged -= DxMenu_OptionChanged; + DevExpress.Ui.DxMenuInterop.Initialized -= DxMenu_Initialized; } } diff --git a/sources/BlazorDevExtreme/Components/DxMenuBase.cshtml b/sources/BlazorDevExtreme/Components/DxMenuBase.cshtml index f682dfd..c02ebe8 100644 --- a/sources/BlazorDevExtreme/Components/DxMenuBase.cshtml +++ b/sources/BlazorDevExtreme/Components/DxMenuBase.cshtml @@ -17,15 +17,49 @@ selectByClick = selectByClick, selectionMode = selectionMode, showSubmenuMode = showSubmenuMode, + disabledExpr = disabledExpr, + displayExpr = displayExpr, + focusStateEnabled = focusStateEnabled, + hoverStateEnabled = hoverStateEnabled, + itemsExpr = itemsExpr, + keyExpr = keyExpr, + selectedExpr = selectedExpr, + dataSource = dataSource, + itemHoldTimeout = itemHoldTimeout, + itemTemplate = itemTemplate, + noDataText = noDataText, + selectedIndex = selectedIndex, + selectedItem = selectedItem, + selectedItemKeys = selectedItemKeys, + selectedItems = selectedItems, + accessKey = accessKey, + disabled = disabled, + hint = hint, + tabIndex = tabIndex, + visible = visible, + bindingOptions = bindingOptions, + elementAttr = elementAttr, + height = height, + rtlEnabled = rtlEnabled, + width = width, + onItemClickEnabled = onItemClickEnabled, + onItemContextMenuEnabled = onItemContextMenuEnabled, + onItemHoldEnabled = onItemHoldEnabled, + onItemRenderedEnabled = onItemRenderedEnabled, + onSelectionChangedEnabled = onSelectionChangedEnabled, + onContentReadyEnabled = onContentReadyEnabled, + onDisposingEnabled = onDisposingEnabled, + onOptionChangedEnabled = onOptionChangedEnabled, + onInitializedEnabled = onInitializedEnabled, }; } protected override Task Init(DevExpress.Ui.DxMenuBaseOptions options) { -return DevExpress.Ui.DxMenuBaseInterop.Init(dxTarget, options); + return DevExpress.Ui.DxMenuBaseInterop.Init(dxTarget, options); } bool? activeStateEnabled; [Parameter] bool? ActiveStateEnabled { - get => isInitialized ? DevExpress.Ui.DxMenuBaseInterop.GetActiveStateEnabled(dxTarget).Result : activeStateEnabled; + get => isInitialized ? (bool?)DevExpress.Ui.DxMenuBaseInterop.GetActiveStateEnabled(dxTarget).Result : activeStateEnabled; set { if (isInitialized) { DevExpress.Ui.DxMenuBaseInterop.SetActiveStateEnabled(dxTarget, value); @@ -49,7 +83,7 @@ return DevExpress.Ui.DxMenuBaseInterop.Init(dxTarget, options); string cssClass; [Parameter] string CssClass { - get => isInitialized ? DevExpress.Ui.DxMenuBaseInterop.GetCssClass(dxTarget).Result : cssClass; + get => isInitialized ? (string)DevExpress.Ui.DxMenuBaseInterop.GetCssClass(dxTarget).Result : cssClass; set { if (isInitialized) { DevExpress.Ui.DxMenuBaseInterop.SetCssClass(dxTarget, value); @@ -73,7 +107,7 @@ return DevExpress.Ui.DxMenuBaseInterop.Init(dxTarget, options); bool? selectByClick; [Parameter] bool? SelectByClick { - get => isInitialized ? DevExpress.Ui.DxMenuBaseInterop.GetSelectByClick(dxTarget).Result : selectByClick; + get => isInitialized ? (bool?)DevExpress.Ui.DxMenuBaseInterop.GetSelectByClick(dxTarget).Result : selectByClick; set { if (isInitialized) { DevExpress.Ui.DxMenuBaseInterop.SetSelectByClick(dxTarget, value); @@ -85,7 +119,7 @@ return DevExpress.Ui.DxMenuBaseInterop.Init(dxTarget, options); string selectionMode; [Parameter] string SelectionMode { - get => isInitialized ? DevExpress.Ui.DxMenuBaseInterop.GetSelectionMode(dxTarget).Result : selectionMode; + get => isInitialized ? (string)DevExpress.Ui.DxMenuBaseInterop.GetSelectionMode(dxTarget).Result : selectionMode; set { if (isInitialized) { DevExpress.Ui.DxMenuBaseInterop.SetSelectionMode(dxTarget, value); @@ -106,8 +140,434 @@ return DevExpress.Ui.DxMenuBaseInterop.Init(dxTarget, options); } } } + object disabledExpr; + [Parameter] + object DisabledExpr { + get => isInitialized ? DevExpress.Ui.DxMenuBaseInterop.GetDisabledExpr(dxTarget).Result : disabledExpr; + set { + if (isInitialized) { + DevExpress.Ui.DxMenuBaseInterop.SetDisabledExpr(dxTarget, value); + } else { + this.disabledExpr = value; + } + } + } + object displayExpr; + [Parameter] + object DisplayExpr { + get => isInitialized ? DevExpress.Ui.DxMenuBaseInterop.GetDisplayExpr(dxTarget).Result : displayExpr; + set { + if (isInitialized) { + DevExpress.Ui.DxMenuBaseInterop.SetDisplayExpr(dxTarget, value); + } else { + this.displayExpr = value; + } + } + } + bool? focusStateEnabled; + [Parameter] + bool? FocusStateEnabled { + get => isInitialized ? (bool?)DevExpress.Ui.DxMenuBaseInterop.GetFocusStateEnabled(dxTarget).Result : focusStateEnabled; + set { + if (isInitialized) { + DevExpress.Ui.DxMenuBaseInterop.SetFocusStateEnabled(dxTarget, value); + } else { + this.focusStateEnabled = value; + } + } + } + bool? hoverStateEnabled; + [Parameter] + bool? HoverStateEnabled { + get => isInitialized ? (bool?)DevExpress.Ui.DxMenuBaseInterop.GetHoverStateEnabled(dxTarget).Result : hoverStateEnabled; + set { + if (isInitialized) { + DevExpress.Ui.DxMenuBaseInterop.SetHoverStateEnabled(dxTarget, value); + } else { + this.hoverStateEnabled = value; + } + } + } + object itemsExpr; + [Parameter] + object ItemsExpr { + get => isInitialized ? DevExpress.Ui.DxMenuBaseInterop.GetItemsExpr(dxTarget).Result : itemsExpr; + set { + if (isInitialized) { + DevExpress.Ui.DxMenuBaseInterop.SetItemsExpr(dxTarget, value); + } else { + this.itemsExpr = value; + } + } + } + object keyExpr; + [Parameter] + object KeyExpr { + get => isInitialized ? DevExpress.Ui.DxMenuBaseInterop.GetKeyExpr(dxTarget).Result : keyExpr; + set { + if (isInitialized) { + DevExpress.Ui.DxMenuBaseInterop.SetKeyExpr(dxTarget, value); + } else { + this.keyExpr = value; + } + } + } + object selectedExpr; + [Parameter] + object SelectedExpr { + get => isInitialized ? DevExpress.Ui.DxMenuBaseInterop.GetSelectedExpr(dxTarget).Result : selectedExpr; + set { + if (isInitialized) { + DevExpress.Ui.DxMenuBaseInterop.SetSelectedExpr(dxTarget, value); + } else { + this.selectedExpr = value; + } + } + } + object dataSource; + [Parameter] + object DataSource { + get => isInitialized ? DevExpress.Ui.DxMenuBaseInterop.GetDataSource(dxTarget).Result : dataSource; + set { + if (isInitialized) { + DevExpress.Ui.DxMenuBaseInterop.SetDataSource(dxTarget, value); + } else { + this.dataSource = value; + } + } + } + float? itemHoldTimeout; + [Parameter] + float? ItemHoldTimeout { + get => isInitialized ? (float?)DevExpress.Ui.DxMenuBaseInterop.GetItemHoldTimeout(dxTarget).Result : itemHoldTimeout; + set { + if (isInitialized) { + DevExpress.Ui.DxMenuBaseInterop.SetItemHoldTimeout(dxTarget, value); + } else { + this.itemHoldTimeout = value; + } + } + } + object itemTemplate; + [Parameter] + object ItemTemplate { + get => isInitialized ? DevExpress.Ui.DxMenuBaseInterop.GetItemTemplate(dxTarget).Result : itemTemplate; + set { + if (isInitialized) { + DevExpress.Ui.DxMenuBaseInterop.SetItemTemplate(dxTarget, value); + } else { + this.itemTemplate = value; + } + } + } + string noDataText; + [Parameter] + string NoDataText { + get => isInitialized ? (string)DevExpress.Ui.DxMenuBaseInterop.GetNoDataText(dxTarget).Result : noDataText; + set { + if (isInitialized) { + DevExpress.Ui.DxMenuBaseInterop.SetNoDataText(dxTarget, value); + } else { + this.noDataText = value; + } + } + } + float? selectedIndex; + [Parameter] + float? SelectedIndex { + get => isInitialized ? (float?)DevExpress.Ui.DxMenuBaseInterop.GetSelectedIndex(dxTarget).Result : selectedIndex; + set { + if (isInitialized) { + DevExpress.Ui.DxMenuBaseInterop.SetSelectedIndex(dxTarget, value); + } else { + this.selectedIndex = value; + } + } + } + object selectedItem; + [Parameter] + object SelectedItem { + get => isInitialized ? DevExpress.Ui.DxMenuBaseInterop.GetSelectedItem(dxTarget).Result : selectedItem; + set { + if (isInitialized) { + DevExpress.Ui.DxMenuBaseInterop.SetSelectedItem(dxTarget, value); + } else { + this.selectedItem = value; + } + } + } + object selectedItemKeys; + [Parameter] + object SelectedItemKeys { + get => isInitialized ? DevExpress.Ui.DxMenuBaseInterop.GetSelectedItemKeys(dxTarget).Result : selectedItemKeys; + set { + if (isInitialized) { + DevExpress.Ui.DxMenuBaseInterop.SetSelectedItemKeys(dxTarget, value); + } else { + this.selectedItemKeys = value; + } + } + } + object selectedItems; + [Parameter] + object SelectedItems { + get => isInitialized ? DevExpress.Ui.DxMenuBaseInterop.GetSelectedItems(dxTarget).Result : selectedItems; + set { + if (isInitialized) { + DevExpress.Ui.DxMenuBaseInterop.SetSelectedItems(dxTarget, value); + } else { + this.selectedItems = value; + } + } + } + string accessKey; + [Parameter] + string AccessKey { + get => isInitialized ? (string)DevExpress.Ui.DxMenuBaseInterop.GetAccessKey(dxTarget).Result : accessKey; + set { + if (isInitialized) { + DevExpress.Ui.DxMenuBaseInterop.SetAccessKey(dxTarget, value); + } else { + this.accessKey = value; + } + } + } + bool? disabled; + [Parameter] + bool? Disabled { + get => isInitialized ? (bool?)DevExpress.Ui.DxMenuBaseInterop.GetDisabled(dxTarget).Result : disabled; + set { + if (isInitialized) { + DevExpress.Ui.DxMenuBaseInterop.SetDisabled(dxTarget, value); + } else { + this.disabled = value; + } + } + } + string hint; + [Parameter] + string Hint { + get => isInitialized ? (string)DevExpress.Ui.DxMenuBaseInterop.GetHint(dxTarget).Result : hint; + set { + if (isInitialized) { + DevExpress.Ui.DxMenuBaseInterop.SetHint(dxTarget, value); + } else { + this.hint = value; + } + } + } + float? tabIndex; + [Parameter] + float? TabIndex { + get => isInitialized ? (float?)DevExpress.Ui.DxMenuBaseInterop.GetTabIndex(dxTarget).Result : tabIndex; + set { + if (isInitialized) { + DevExpress.Ui.DxMenuBaseInterop.SetTabIndex(dxTarget, value); + } else { + this.tabIndex = value; + } + } + } + bool? visible; + [Parameter] + bool? Visible { + get => isInitialized ? (bool?)DevExpress.Ui.DxMenuBaseInterop.GetVisible(dxTarget).Result : visible; + set { + if (isInitialized) { + DevExpress.Ui.DxMenuBaseInterop.SetVisible(dxTarget, value); + } else { + this.visible = value; + } + } + } + object bindingOptions; + [Parameter] + object BindingOptions { + get => isInitialized ? DevExpress.Ui.DxMenuBaseInterop.GetBindingOptions(dxTarget).Result : bindingOptions; + set { + if (isInitialized) { + DevExpress.Ui.DxMenuBaseInterop.SetBindingOptions(dxTarget, value); + } else { + this.bindingOptions = value; + } + } + } + object elementAttr; + [Parameter] + object ElementAttr { + get => isInitialized ? DevExpress.Ui.DxMenuBaseInterop.GetElementAttr(dxTarget).Result : elementAttr; + set { + if (isInitialized) { + DevExpress.Ui.DxMenuBaseInterop.SetElementAttr(dxTarget, value); + } else { + this.elementAttr = value; + } + } + } + object height; + [Parameter] + object Height { + get => isInitialized ? DevExpress.Ui.DxMenuBaseInterop.GetHeight(dxTarget).Result : height; + set { + if (isInitialized) { + DevExpress.Ui.DxMenuBaseInterop.SetHeight(dxTarget, value); + } else { + this.height = value; + } + } + } + bool? rtlEnabled; + [Parameter] + bool? RtlEnabled { + get => isInitialized ? (bool?)DevExpress.Ui.DxMenuBaseInterop.GetRtlEnabled(dxTarget).Result : rtlEnabled; + set { + if (isInitialized) { + DevExpress.Ui.DxMenuBaseInterop.SetRtlEnabled(dxTarget, value); + } else { + this.rtlEnabled = value; + } + } + } + object width; + [Parameter] + object Width { + get => isInitialized ? DevExpress.Ui.DxMenuBaseInterop.GetWidth(dxTarget).Result : width; + set { + if (isInitialized) { + DevExpress.Ui.DxMenuBaseInterop.SetWidth(dxTarget, value); + } else { + this.width = value; + } + } + } + bool? onItemClickEnabled; + [Parameter] + bool? OnItemClickEnabled { + get => onItemClickEnabled; + set => this.onItemClickEnabled = value; + } + bool? onItemContextMenuEnabled; + [Parameter] + bool? OnItemContextMenuEnabled { + get => onItemContextMenuEnabled; + set => this.onItemContextMenuEnabled = value; + } + bool? onItemHoldEnabled; + [Parameter] + bool? OnItemHoldEnabled { + get => onItemHoldEnabled; + set => this.onItemHoldEnabled = value; + } + bool? onItemRenderedEnabled; + [Parameter] + bool? OnItemRenderedEnabled { + get => onItemRenderedEnabled; + set => this.onItemRenderedEnabled = value; + } + bool? onSelectionChangedEnabled; + [Parameter] + bool? OnSelectionChangedEnabled { + get => onSelectionChangedEnabled; + set => this.onSelectionChangedEnabled = value; + } + bool? onContentReadyEnabled; + [Parameter] + bool? OnContentReadyEnabled { + get => onContentReadyEnabled; + set => this.onContentReadyEnabled = value; + } + bool? onDisposingEnabled; + [Parameter] + bool? OnDisposingEnabled { + get => onDisposingEnabled; + set => this.onDisposingEnabled = value; + } + bool? onOptionChangedEnabled; + [Parameter] + bool? OnOptionChangedEnabled { + get => onOptionChangedEnabled; + set => this.onOptionChangedEnabled = value; + } + bool? onInitializedEnabled; + [Parameter] + bool? OnInitializedEnabled { + get => onInitializedEnabled; + set => this.onInitializedEnabled = value; + } protected override async Task OnInitAsync() { await base.OnInitAsync(); + DevExpress.Ui.DxMenuBaseInterop.ItemClick += DxMenuBase_ItemClick; + DevExpress.Ui.DxMenuBaseInterop.ItemContextMenu += DxMenuBase_ItemContextMenu; + DevExpress.Ui.DxMenuBaseInterop.ItemHold += DxMenuBase_ItemHold; + DevExpress.Ui.DxMenuBaseInterop.ItemRendered += DxMenuBase_ItemRendered; + DevExpress.Ui.DxMenuBaseInterop.SelectionChanged += DxMenuBase_SelectionChanged; + DevExpress.Ui.DxMenuBaseInterop.ContentReady += DxMenuBase_ContentReady; + DevExpress.Ui.DxMenuBaseInterop.Disposing += DxMenuBase_Disposing; + DevExpress.Ui.DxMenuBaseInterop.OptionChanged += DxMenuBase_OptionChanged; + DevExpress.Ui.DxMenuBaseInterop.Initialized += DxMenuBase_Initialized; + } + [Parameter] + Action ItemClick { get; set; } + void DxMenuBase_ItemClick(object sender, JQueryEventArgs e) { + if (e.Identifier == Id) { + ItemClick?.Invoke(); + } + } + [Parameter] + Action ItemContextMenu { get; set; } + void DxMenuBase_ItemContextMenu(object sender, JQueryEventArgs e) { + if (e.Identifier == Id) { + ItemContextMenu?.Invoke(); + } + } + [Parameter] + Action ItemHold { get; set; } + void DxMenuBase_ItemHold(object sender, JQueryEventArgs e) { + if (e.Identifier == Id) { + ItemHold?.Invoke(); + } + } + [Parameter] + Action ItemRendered { get; set; } + void DxMenuBase_ItemRendered(object sender, JQueryEventArgs e) { + if (e.Identifier == Id) { + ItemRendered?.Invoke(); + } + } + [Parameter] + Action SelectionChanged { get; set; } + void DxMenuBase_SelectionChanged(object sender, JQueryEventArgs e) { + if (e.Identifier == Id) { + SelectionChanged?.Invoke(); + } + } + [Parameter] + Action ContentReady { get; set; } + void DxMenuBase_ContentReady(object sender, JQueryEventArgs e) { + if (e.Identifier == Id) { + ContentReady?.Invoke(); + } + } + [Parameter] + Action Disposing { get; set; } + void DxMenuBase_Disposing(object sender, JQueryEventArgs e) { + if (e.Identifier == Id) { + Disposing?.Invoke(); + } + } + [Parameter] + Action OptionChanged { get; set; } + void DxMenuBase_OptionChanged(object sender, JQueryEventArgs e) { + if (e.Identifier == Id) { + OptionChanged?.Invoke(); + } + } + [Parameter] + Action Initialized { get; set; } + void DxMenuBase_Initialized(object sender, JQueryEventArgs e) { + if (e.Identifier == Id) { + Initialized?.Invoke(); + } } public void SelectItem(object itemElement) { DevExpress.Ui.DxMenuBaseInterop.SelectItem(dxTarget, itemElement); @@ -116,5 +576,14 @@ return DevExpress.Ui.DxMenuBaseInterop.Init(dxTarget, options); DevExpress.Ui.DxMenuBaseInterop.UnselectItem(dxTarget, itemElement); } public void Dispose() { + DevExpress.Ui.DxMenuBaseInterop.ItemClick -= DxMenuBase_ItemClick; + DevExpress.Ui.DxMenuBaseInterop.ItemContextMenu -= DxMenuBase_ItemContextMenu; + DevExpress.Ui.DxMenuBaseInterop.ItemHold -= DxMenuBase_ItemHold; + DevExpress.Ui.DxMenuBaseInterop.ItemRendered -= DxMenuBase_ItemRendered; + DevExpress.Ui.DxMenuBaseInterop.SelectionChanged -= DxMenuBase_SelectionChanged; + DevExpress.Ui.DxMenuBaseInterop.ContentReady -= DxMenuBase_ContentReady; + DevExpress.Ui.DxMenuBaseInterop.Disposing -= DxMenuBase_Disposing; + DevExpress.Ui.DxMenuBaseInterop.OptionChanged -= DxMenuBase_OptionChanged; + DevExpress.Ui.DxMenuBaseInterop.Initialized -= DxMenuBase_Initialized; } } diff --git a/sources/BlazorDevExtreme/Components/DxMultiView.cshtml b/sources/BlazorDevExtreme/Components/DxMultiView.cshtml index 0624775..8f377a5 100644 --- a/sources/BlazorDevExtreme/Components/DxMultiView.cshtml +++ b/sources/BlazorDevExtreme/Components/DxMultiView.cshtml @@ -16,15 +16,45 @@ loop = loop, selectedIndex = selectedIndex, swipeEnabled = swipeEnabled, + dataSource = dataSource, + itemHoldTimeout = itemHoldTimeout, + items = items, + itemTemplate = itemTemplate, + keyExpr = keyExpr, + noDataText = noDataText, + selectedItem = selectedItem, + selectedItemKeys = selectedItemKeys, + selectedItems = selectedItems, + accessKey = accessKey, + activeStateEnabled = activeStateEnabled, + disabled = disabled, + hint = hint, + hoverStateEnabled = hoverStateEnabled, + tabIndex = tabIndex, + visible = visible, + bindingOptions = bindingOptions, + elementAttr = elementAttr, + height = height, + rtlEnabled = rtlEnabled, + width = width, + onItemClickEnabled = onItemClickEnabled, + onItemContextMenuEnabled = onItemContextMenuEnabled, + onItemHoldEnabled = onItemHoldEnabled, + onItemRenderedEnabled = onItemRenderedEnabled, + onSelectionChangedEnabled = onSelectionChangedEnabled, + onContentReadyEnabled = onContentReadyEnabled, + onDisposingEnabled = onDisposingEnabled, + onOptionChangedEnabled = onOptionChangedEnabled, + onInitializedEnabled = onInitializedEnabled, }; } protected override Task Init(DevExpress.Ui.DxMultiViewOptions options) { -return DevExpress.Ui.DxMultiViewInterop.Init(dxTarget, options); + return DevExpress.Ui.DxMultiViewInterop.Init(dxTarget, options); } bool? animationEnabled; [Parameter] bool? AnimationEnabled { - get => isInitialized ? DevExpress.Ui.DxMultiViewInterop.GetAnimationEnabled(dxTarget).Result : animationEnabled; + get => isInitialized ? (bool?)DevExpress.Ui.DxMultiViewInterop.GetAnimationEnabled(dxTarget).Result : animationEnabled; set { if (isInitialized) { DevExpress.Ui.DxMultiViewInterop.SetAnimationEnabled(dxTarget, value); @@ -36,7 +66,7 @@ return DevExpress.Ui.DxMultiViewInterop.Init(dxTarget, options); bool? deferRendering; [Parameter] bool? DeferRendering { - get => isInitialized ? DevExpress.Ui.DxMultiViewInterop.GetDeferRendering(dxTarget).Result : deferRendering; + get => isInitialized ? (bool?)DevExpress.Ui.DxMultiViewInterop.GetDeferRendering(dxTarget).Result : deferRendering; set { if (isInitialized) { DevExpress.Ui.DxMultiViewInterop.SetDeferRendering(dxTarget, value); @@ -48,7 +78,7 @@ return DevExpress.Ui.DxMultiViewInterop.Init(dxTarget, options); bool? focusStateEnabled; [Parameter] bool? FocusStateEnabled { - get => isInitialized ? DevExpress.Ui.DxMultiViewInterop.GetFocusStateEnabled(dxTarget).Result : focusStateEnabled; + get => isInitialized ? (bool?)DevExpress.Ui.DxMultiViewInterop.GetFocusStateEnabled(dxTarget).Result : focusStateEnabled; set { if (isInitialized) { DevExpress.Ui.DxMultiViewInterop.SetFocusStateEnabled(dxTarget, value); @@ -60,7 +90,7 @@ return DevExpress.Ui.DxMultiViewInterop.Init(dxTarget, options); bool? loop; [Parameter] bool? Loop { - get => isInitialized ? DevExpress.Ui.DxMultiViewInterop.GetLoop(dxTarget).Result : loop; + get => isInitialized ? (bool?)DevExpress.Ui.DxMultiViewInterop.GetLoop(dxTarget).Result : loop; set { if (isInitialized) { DevExpress.Ui.DxMultiViewInterop.SetLoop(dxTarget, value); @@ -72,7 +102,7 @@ return DevExpress.Ui.DxMultiViewInterop.Init(dxTarget, options); float? selectedIndex; [Parameter] float? SelectedIndex { - get => isInitialized ? DevExpress.Ui.DxMultiViewInterop.GetSelectedIndex(dxTarget).Result : selectedIndex; + get => isInitialized ? (float?)DevExpress.Ui.DxMultiViewInterop.GetSelectedIndex(dxTarget).Result : selectedIndex; set { if (isInitialized) { DevExpress.Ui.DxMultiViewInterop.SetSelectedIndex(dxTarget, value); @@ -84,7 +114,7 @@ return DevExpress.Ui.DxMultiViewInterop.Init(dxTarget, options); bool? swipeEnabled; [Parameter] bool? SwipeEnabled { - get => isInitialized ? DevExpress.Ui.DxMultiViewInterop.GetSwipeEnabled(dxTarget).Result : swipeEnabled; + get => isInitialized ? (bool?)DevExpress.Ui.DxMultiViewInterop.GetSwipeEnabled(dxTarget).Result : swipeEnabled; set { if (isInitialized) { DevExpress.Ui.DxMultiViewInterop.SetSwipeEnabled(dxTarget, value); @@ -93,9 +123,396 @@ return DevExpress.Ui.DxMultiViewInterop.Init(dxTarget, options); } } } + object dataSource; + [Parameter] + object DataSource { + get => isInitialized ? DevExpress.Ui.DxMultiViewInterop.GetDataSource(dxTarget).Result : dataSource; + set { + if (isInitialized) { + DevExpress.Ui.DxMultiViewInterop.SetDataSource(dxTarget, value); + } else { + this.dataSource = value; + } + } + } + float? itemHoldTimeout; + [Parameter] + float? ItemHoldTimeout { + get => isInitialized ? (float?)DevExpress.Ui.DxMultiViewInterop.GetItemHoldTimeout(dxTarget).Result : itemHoldTimeout; + set { + if (isInitialized) { + DevExpress.Ui.DxMultiViewInterop.SetItemHoldTimeout(dxTarget, value); + } else { + this.itemHoldTimeout = value; + } + } + } + object items; + [Parameter] + object Items { + get => isInitialized ? DevExpress.Ui.DxMultiViewInterop.GetItems(dxTarget).Result : items; + set { + if (isInitialized) { + DevExpress.Ui.DxMultiViewInterop.SetItems(dxTarget, value); + } else { + this.items = value; + } + } + } + object itemTemplate; + [Parameter] + object ItemTemplate { + get => isInitialized ? DevExpress.Ui.DxMultiViewInterop.GetItemTemplate(dxTarget).Result : itemTemplate; + set { + if (isInitialized) { + DevExpress.Ui.DxMultiViewInterop.SetItemTemplate(dxTarget, value); + } else { + this.itemTemplate = value; + } + } + } + object keyExpr; + [Parameter] + object KeyExpr { + get => isInitialized ? DevExpress.Ui.DxMultiViewInterop.GetKeyExpr(dxTarget).Result : keyExpr; + set { + if (isInitialized) { + DevExpress.Ui.DxMultiViewInterop.SetKeyExpr(dxTarget, value); + } else { + this.keyExpr = value; + } + } + } + string noDataText; + [Parameter] + string NoDataText { + get => isInitialized ? (string)DevExpress.Ui.DxMultiViewInterop.GetNoDataText(dxTarget).Result : noDataText; + set { + if (isInitialized) { + DevExpress.Ui.DxMultiViewInterop.SetNoDataText(dxTarget, value); + } else { + this.noDataText = value; + } + } + } + object selectedItem; + [Parameter] + object SelectedItem { + get => isInitialized ? DevExpress.Ui.DxMultiViewInterop.GetSelectedItem(dxTarget).Result : selectedItem; + set { + if (isInitialized) { + DevExpress.Ui.DxMultiViewInterop.SetSelectedItem(dxTarget, value); + } else { + this.selectedItem = value; + } + } + } + object selectedItemKeys; + [Parameter] + object SelectedItemKeys { + get => isInitialized ? DevExpress.Ui.DxMultiViewInterop.GetSelectedItemKeys(dxTarget).Result : selectedItemKeys; + set { + if (isInitialized) { + DevExpress.Ui.DxMultiViewInterop.SetSelectedItemKeys(dxTarget, value); + } else { + this.selectedItemKeys = value; + } + } + } + object selectedItems; + [Parameter] + object SelectedItems { + get => isInitialized ? DevExpress.Ui.DxMultiViewInterop.GetSelectedItems(dxTarget).Result : selectedItems; + set { + if (isInitialized) { + DevExpress.Ui.DxMultiViewInterop.SetSelectedItems(dxTarget, value); + } else { + this.selectedItems = value; + } + } + } + string accessKey; + [Parameter] + string AccessKey { + get => isInitialized ? (string)DevExpress.Ui.DxMultiViewInterop.GetAccessKey(dxTarget).Result : accessKey; + set { + if (isInitialized) { + DevExpress.Ui.DxMultiViewInterop.SetAccessKey(dxTarget, value); + } else { + this.accessKey = value; + } + } + } + bool? activeStateEnabled; + [Parameter] + bool? ActiveStateEnabled { + get => isInitialized ? (bool?)DevExpress.Ui.DxMultiViewInterop.GetActiveStateEnabled(dxTarget).Result : activeStateEnabled; + set { + if (isInitialized) { + DevExpress.Ui.DxMultiViewInterop.SetActiveStateEnabled(dxTarget, value); + } else { + this.activeStateEnabled = value; + } + } + } + bool? disabled; + [Parameter] + bool? Disabled { + get => isInitialized ? (bool?)DevExpress.Ui.DxMultiViewInterop.GetDisabled(dxTarget).Result : disabled; + set { + if (isInitialized) { + DevExpress.Ui.DxMultiViewInterop.SetDisabled(dxTarget, value); + } else { + this.disabled = value; + } + } + } + string hint; + [Parameter] + string Hint { + get => isInitialized ? (string)DevExpress.Ui.DxMultiViewInterop.GetHint(dxTarget).Result : hint; + set { + if (isInitialized) { + DevExpress.Ui.DxMultiViewInterop.SetHint(dxTarget, value); + } else { + this.hint = value; + } + } + } + bool? hoverStateEnabled; + [Parameter] + bool? HoverStateEnabled { + get => isInitialized ? (bool?)DevExpress.Ui.DxMultiViewInterop.GetHoverStateEnabled(dxTarget).Result : hoverStateEnabled; + set { + if (isInitialized) { + DevExpress.Ui.DxMultiViewInterop.SetHoverStateEnabled(dxTarget, value); + } else { + this.hoverStateEnabled = value; + } + } + } + float? tabIndex; + [Parameter] + float? TabIndex { + get => isInitialized ? (float?)DevExpress.Ui.DxMultiViewInterop.GetTabIndex(dxTarget).Result : tabIndex; + set { + if (isInitialized) { + DevExpress.Ui.DxMultiViewInterop.SetTabIndex(dxTarget, value); + } else { + this.tabIndex = value; + } + } + } + bool? visible; + [Parameter] + bool? Visible { + get => isInitialized ? (bool?)DevExpress.Ui.DxMultiViewInterop.GetVisible(dxTarget).Result : visible; + set { + if (isInitialized) { + DevExpress.Ui.DxMultiViewInterop.SetVisible(dxTarget, value); + } else { + this.visible = value; + } + } + } + object bindingOptions; + [Parameter] + object BindingOptions { + get => isInitialized ? DevExpress.Ui.DxMultiViewInterop.GetBindingOptions(dxTarget).Result : bindingOptions; + set { + if (isInitialized) { + DevExpress.Ui.DxMultiViewInterop.SetBindingOptions(dxTarget, value); + } else { + this.bindingOptions = value; + } + } + } + object elementAttr; + [Parameter] + object ElementAttr { + get => isInitialized ? DevExpress.Ui.DxMultiViewInterop.GetElementAttr(dxTarget).Result : elementAttr; + set { + if (isInitialized) { + DevExpress.Ui.DxMultiViewInterop.SetElementAttr(dxTarget, value); + } else { + this.elementAttr = value; + } + } + } + object height; + [Parameter] + object Height { + get => isInitialized ? DevExpress.Ui.DxMultiViewInterop.GetHeight(dxTarget).Result : height; + set { + if (isInitialized) { + DevExpress.Ui.DxMultiViewInterop.SetHeight(dxTarget, value); + } else { + this.height = value; + } + } + } + bool? rtlEnabled; + [Parameter] + bool? RtlEnabled { + get => isInitialized ? (bool?)DevExpress.Ui.DxMultiViewInterop.GetRtlEnabled(dxTarget).Result : rtlEnabled; + set { + if (isInitialized) { + DevExpress.Ui.DxMultiViewInterop.SetRtlEnabled(dxTarget, value); + } else { + this.rtlEnabled = value; + } + } + } + object width; + [Parameter] + object Width { + get => isInitialized ? DevExpress.Ui.DxMultiViewInterop.GetWidth(dxTarget).Result : width; + set { + if (isInitialized) { + DevExpress.Ui.DxMultiViewInterop.SetWidth(dxTarget, value); + } else { + this.width = value; + } + } + } + bool? onItemClickEnabled; + [Parameter] + bool? OnItemClickEnabled { + get => onItemClickEnabled; + set => this.onItemClickEnabled = value; + } + bool? onItemContextMenuEnabled; + [Parameter] + bool? OnItemContextMenuEnabled { + get => onItemContextMenuEnabled; + set => this.onItemContextMenuEnabled = value; + } + bool? onItemHoldEnabled; + [Parameter] + bool? OnItemHoldEnabled { + get => onItemHoldEnabled; + set => this.onItemHoldEnabled = value; + } + bool? onItemRenderedEnabled; + [Parameter] + bool? OnItemRenderedEnabled { + get => onItemRenderedEnabled; + set => this.onItemRenderedEnabled = value; + } + bool? onSelectionChangedEnabled; + [Parameter] + bool? OnSelectionChangedEnabled { + get => onSelectionChangedEnabled; + set => this.onSelectionChangedEnabled = value; + } + bool? onContentReadyEnabled; + [Parameter] + bool? OnContentReadyEnabled { + get => onContentReadyEnabled; + set => this.onContentReadyEnabled = value; + } + bool? onDisposingEnabled; + [Parameter] + bool? OnDisposingEnabled { + get => onDisposingEnabled; + set => this.onDisposingEnabled = value; + } + bool? onOptionChangedEnabled; + [Parameter] + bool? OnOptionChangedEnabled { + get => onOptionChangedEnabled; + set => this.onOptionChangedEnabled = value; + } + bool? onInitializedEnabled; + [Parameter] + bool? OnInitializedEnabled { + get => onInitializedEnabled; + set => this.onInitializedEnabled = value; + } protected override async Task OnInitAsync() { await base.OnInitAsync(); + DevExpress.Ui.DxMultiViewInterop.ItemClick += DxMultiView_ItemClick; + DevExpress.Ui.DxMultiViewInterop.ItemContextMenu += DxMultiView_ItemContextMenu; + DevExpress.Ui.DxMultiViewInterop.ItemHold += DxMultiView_ItemHold; + DevExpress.Ui.DxMultiViewInterop.ItemRendered += DxMultiView_ItemRendered; + DevExpress.Ui.DxMultiViewInterop.SelectionChanged += DxMultiView_SelectionChanged; + DevExpress.Ui.DxMultiViewInterop.ContentReady += DxMultiView_ContentReady; + DevExpress.Ui.DxMultiViewInterop.Disposing += DxMultiView_Disposing; + DevExpress.Ui.DxMultiViewInterop.OptionChanged += DxMultiView_OptionChanged; + DevExpress.Ui.DxMultiViewInterop.Initialized += DxMultiView_Initialized; + } + [Parameter] + Action ItemClick { get; set; } + void DxMultiView_ItemClick(object sender, JQueryEventArgs e) { + if (e.Identifier == Id) { + ItemClick?.Invoke(); + } + } + [Parameter] + Action ItemContextMenu { get; set; } + void DxMultiView_ItemContextMenu(object sender, JQueryEventArgs e) { + if (e.Identifier == Id) { + ItemContextMenu?.Invoke(); + } + } + [Parameter] + Action ItemHold { get; set; } + void DxMultiView_ItemHold(object sender, JQueryEventArgs e) { + if (e.Identifier == Id) { + ItemHold?.Invoke(); + } + } + [Parameter] + Action ItemRendered { get; set; } + void DxMultiView_ItemRendered(object sender, JQueryEventArgs e) { + if (e.Identifier == Id) { + ItemRendered?.Invoke(); + } + } + [Parameter] + Action SelectionChanged { get; set; } + void DxMultiView_SelectionChanged(object sender, JQueryEventArgs e) { + if (e.Identifier == Id) { + SelectionChanged?.Invoke(); + } + } + [Parameter] + Action ContentReady { get; set; } + void DxMultiView_ContentReady(object sender, JQueryEventArgs e) { + if (e.Identifier == Id) { + ContentReady?.Invoke(); + } + } + [Parameter] + Action Disposing { get; set; } + void DxMultiView_Disposing(object sender, JQueryEventArgs e) { + if (e.Identifier == Id) { + Disposing?.Invoke(); + } + } + [Parameter] + Action OptionChanged { get; set; } + void DxMultiView_OptionChanged(object sender, JQueryEventArgs e) { + if (e.Identifier == Id) { + OptionChanged?.Invoke(); + } + } + [Parameter] + Action Initialized { get; set; } + void DxMultiView_Initialized(object sender, JQueryEventArgs e) { + if (e.Identifier == Id) { + Initialized?.Invoke(); + } } public void Dispose() { + DevExpress.Ui.DxMultiViewInterop.ItemClick -= DxMultiView_ItemClick; + DevExpress.Ui.DxMultiViewInterop.ItemContextMenu -= DxMultiView_ItemContextMenu; + DevExpress.Ui.DxMultiViewInterop.ItemHold -= DxMultiView_ItemHold; + DevExpress.Ui.DxMultiViewInterop.ItemRendered -= DxMultiView_ItemRendered; + DevExpress.Ui.DxMultiViewInterop.SelectionChanged -= DxMultiView_SelectionChanged; + DevExpress.Ui.DxMultiViewInterop.ContentReady -= DxMultiView_ContentReady; + DevExpress.Ui.DxMultiViewInterop.Disposing -= DxMultiView_Disposing; + DevExpress.Ui.DxMultiViewInterop.OptionChanged -= DxMultiView_OptionChanged; + DevExpress.Ui.DxMultiViewInterop.Initialized -= DxMultiView_Initialized; } } diff --git a/sources/BlazorDevExtreme/Components/DxNavBar.cshtml b/sources/BlazorDevExtreme/Components/DxNavBar.cshtml index ee88510..cc0dd6d 100644 --- a/sources/BlazorDevExtreme/Components/DxNavBar.cshtml +++ b/sources/BlazorDevExtreme/Components/DxNavBar.cshtml @@ -11,15 +11,50 @@ protected override DevExpress.Ui.DxNavBarOptions CreateOptions() { return new DevExpress.Ui.DxNavBarOptions { scrollByContent = scrollByContent, + focusStateEnabled = focusStateEnabled, + hoverStateEnabled = hoverStateEnabled, + scrollingEnabled = scrollingEnabled, + selectedItems = selectedItems, + selectionMode = selectionMode, + showNavButtons = showNavButtons, + dataSource = dataSource, + itemHoldTimeout = itemHoldTimeout, + items = items, + itemTemplate = itemTemplate, + keyExpr = keyExpr, + noDataText = noDataText, + selectedIndex = selectedIndex, + selectedItem = selectedItem, + selectedItemKeys = selectedItemKeys, + accessKey = accessKey, + activeStateEnabled = activeStateEnabled, + disabled = disabled, + hint = hint, + tabIndex = tabIndex, + visible = visible, + bindingOptions = bindingOptions, + elementAttr = elementAttr, + height = height, + rtlEnabled = rtlEnabled, + width = width, + onItemClickEnabled = onItemClickEnabled, + onItemContextMenuEnabled = onItemContextMenuEnabled, + onItemHoldEnabled = onItemHoldEnabled, + onItemRenderedEnabled = onItemRenderedEnabled, + onSelectionChangedEnabled = onSelectionChangedEnabled, + onContentReadyEnabled = onContentReadyEnabled, + onDisposingEnabled = onDisposingEnabled, + onOptionChangedEnabled = onOptionChangedEnabled, + onInitializedEnabled = onInitializedEnabled, }; } protected override Task Init(DevExpress.Ui.DxNavBarOptions options) { -return DevExpress.Ui.DxNavBarInterop.Init(dxTarget, options); + return DevExpress.Ui.DxNavBarInterop.Init(dxTarget, options); } bool? scrollByContent; [Parameter] bool? ScrollByContent { - get => isInitialized ? DevExpress.Ui.DxNavBarInterop.GetScrollByContent(dxTarget).Result : scrollByContent; + get => isInitialized ? (bool?)DevExpress.Ui.DxNavBarInterop.GetScrollByContent(dxTarget).Result : scrollByContent; set { if (isInitialized) { DevExpress.Ui.DxNavBarInterop.SetScrollByContent(dxTarget, value); @@ -28,9 +63,456 @@ return DevExpress.Ui.DxNavBarInterop.Init(dxTarget, options); } } } + bool? focusStateEnabled; + [Parameter] + bool? FocusStateEnabled { + get => isInitialized ? (bool?)DevExpress.Ui.DxNavBarInterop.GetFocusStateEnabled(dxTarget).Result : focusStateEnabled; + set { + if (isInitialized) { + DevExpress.Ui.DxNavBarInterop.SetFocusStateEnabled(dxTarget, value); + } else { + this.focusStateEnabled = value; + } + } + } + bool? hoverStateEnabled; + [Parameter] + bool? HoverStateEnabled { + get => isInitialized ? (bool?)DevExpress.Ui.DxNavBarInterop.GetHoverStateEnabled(dxTarget).Result : hoverStateEnabled; + set { + if (isInitialized) { + DevExpress.Ui.DxNavBarInterop.SetHoverStateEnabled(dxTarget, value); + } else { + this.hoverStateEnabled = value; + } + } + } + bool? scrollingEnabled; + [Parameter] + bool? ScrollingEnabled { + get => isInitialized ? (bool?)DevExpress.Ui.DxNavBarInterop.GetScrollingEnabled(dxTarget).Result : scrollingEnabled; + set { + if (isInitialized) { + DevExpress.Ui.DxNavBarInterop.SetScrollingEnabled(dxTarget, value); + } else { + this.scrollingEnabled = value; + } + } + } + object selectedItems; + [Parameter] + object SelectedItems { + get => isInitialized ? DevExpress.Ui.DxNavBarInterop.GetSelectedItems(dxTarget).Result : selectedItems; + set { + if (isInitialized) { + DevExpress.Ui.DxNavBarInterop.SetSelectedItems(dxTarget, value); + } else { + this.selectedItems = value; + } + } + } + string selectionMode; + [Parameter] + string SelectionMode { + get => isInitialized ? (string)DevExpress.Ui.DxNavBarInterop.GetSelectionMode(dxTarget).Result : selectionMode; + set { + if (isInitialized) { + DevExpress.Ui.DxNavBarInterop.SetSelectionMode(dxTarget, value); + } else { + this.selectionMode = value; + } + } + } + bool? showNavButtons; + [Parameter] + bool? ShowNavButtons { + get => isInitialized ? (bool?)DevExpress.Ui.DxNavBarInterop.GetShowNavButtons(dxTarget).Result : showNavButtons; + set { + if (isInitialized) { + DevExpress.Ui.DxNavBarInterop.SetShowNavButtons(dxTarget, value); + } else { + this.showNavButtons = value; + } + } + } + object dataSource; + [Parameter] + object DataSource { + get => isInitialized ? DevExpress.Ui.DxNavBarInterop.GetDataSource(dxTarget).Result : dataSource; + set { + if (isInitialized) { + DevExpress.Ui.DxNavBarInterop.SetDataSource(dxTarget, value); + } else { + this.dataSource = value; + } + } + } + float? itemHoldTimeout; + [Parameter] + float? ItemHoldTimeout { + get => isInitialized ? (float?)DevExpress.Ui.DxNavBarInterop.GetItemHoldTimeout(dxTarget).Result : itemHoldTimeout; + set { + if (isInitialized) { + DevExpress.Ui.DxNavBarInterop.SetItemHoldTimeout(dxTarget, value); + } else { + this.itemHoldTimeout = value; + } + } + } + object items; + [Parameter] + object Items { + get => isInitialized ? DevExpress.Ui.DxNavBarInterop.GetItems(dxTarget).Result : items; + set { + if (isInitialized) { + DevExpress.Ui.DxNavBarInterop.SetItems(dxTarget, value); + } else { + this.items = value; + } + } + } + object itemTemplate; + [Parameter] + object ItemTemplate { + get => isInitialized ? DevExpress.Ui.DxNavBarInterop.GetItemTemplate(dxTarget).Result : itemTemplate; + set { + if (isInitialized) { + DevExpress.Ui.DxNavBarInterop.SetItemTemplate(dxTarget, value); + } else { + this.itemTemplate = value; + } + } + } + object keyExpr; + [Parameter] + object KeyExpr { + get => isInitialized ? DevExpress.Ui.DxNavBarInterop.GetKeyExpr(dxTarget).Result : keyExpr; + set { + if (isInitialized) { + DevExpress.Ui.DxNavBarInterop.SetKeyExpr(dxTarget, value); + } else { + this.keyExpr = value; + } + } + } + string noDataText; + [Parameter] + string NoDataText { + get => isInitialized ? (string)DevExpress.Ui.DxNavBarInterop.GetNoDataText(dxTarget).Result : noDataText; + set { + if (isInitialized) { + DevExpress.Ui.DxNavBarInterop.SetNoDataText(dxTarget, value); + } else { + this.noDataText = value; + } + } + } + float? selectedIndex; + [Parameter] + float? SelectedIndex { + get => isInitialized ? (float?)DevExpress.Ui.DxNavBarInterop.GetSelectedIndex(dxTarget).Result : selectedIndex; + set { + if (isInitialized) { + DevExpress.Ui.DxNavBarInterop.SetSelectedIndex(dxTarget, value); + } else { + this.selectedIndex = value; + } + } + } + object selectedItem; + [Parameter] + object SelectedItem { + get => isInitialized ? DevExpress.Ui.DxNavBarInterop.GetSelectedItem(dxTarget).Result : selectedItem; + set { + if (isInitialized) { + DevExpress.Ui.DxNavBarInterop.SetSelectedItem(dxTarget, value); + } else { + this.selectedItem = value; + } + } + } + object selectedItemKeys; + [Parameter] + object SelectedItemKeys { + get => isInitialized ? DevExpress.Ui.DxNavBarInterop.GetSelectedItemKeys(dxTarget).Result : selectedItemKeys; + set { + if (isInitialized) { + DevExpress.Ui.DxNavBarInterop.SetSelectedItemKeys(dxTarget, value); + } else { + this.selectedItemKeys = value; + } + } + } + string accessKey; + [Parameter] + string AccessKey { + get => isInitialized ? (string)DevExpress.Ui.DxNavBarInterop.GetAccessKey(dxTarget).Result : accessKey; + set { + if (isInitialized) { + DevExpress.Ui.DxNavBarInterop.SetAccessKey(dxTarget, value); + } else { + this.accessKey = value; + } + } + } + bool? activeStateEnabled; + [Parameter] + bool? ActiveStateEnabled { + get => isInitialized ? (bool?)DevExpress.Ui.DxNavBarInterop.GetActiveStateEnabled(dxTarget).Result : activeStateEnabled; + set { + if (isInitialized) { + DevExpress.Ui.DxNavBarInterop.SetActiveStateEnabled(dxTarget, value); + } else { + this.activeStateEnabled = value; + } + } + } + bool? disabled; + [Parameter] + bool? Disabled { + get => isInitialized ? (bool?)DevExpress.Ui.DxNavBarInterop.GetDisabled(dxTarget).Result : disabled; + set { + if (isInitialized) { + DevExpress.Ui.DxNavBarInterop.SetDisabled(dxTarget, value); + } else { + this.disabled = value; + } + } + } + string hint; + [Parameter] + string Hint { + get => isInitialized ? (string)DevExpress.Ui.DxNavBarInterop.GetHint(dxTarget).Result : hint; + set { + if (isInitialized) { + DevExpress.Ui.DxNavBarInterop.SetHint(dxTarget, value); + } else { + this.hint = value; + } + } + } + float? tabIndex; + [Parameter] + float? TabIndex { + get => isInitialized ? (float?)DevExpress.Ui.DxNavBarInterop.GetTabIndex(dxTarget).Result : tabIndex; + set { + if (isInitialized) { + DevExpress.Ui.DxNavBarInterop.SetTabIndex(dxTarget, value); + } else { + this.tabIndex = value; + } + } + } + bool? visible; + [Parameter] + bool? Visible { + get => isInitialized ? (bool?)DevExpress.Ui.DxNavBarInterop.GetVisible(dxTarget).Result : visible; + set { + if (isInitialized) { + DevExpress.Ui.DxNavBarInterop.SetVisible(dxTarget, value); + } else { + this.visible = value; + } + } + } + object bindingOptions; + [Parameter] + object BindingOptions { + get => isInitialized ? DevExpress.Ui.DxNavBarInterop.GetBindingOptions(dxTarget).Result : bindingOptions; + set { + if (isInitialized) { + DevExpress.Ui.DxNavBarInterop.SetBindingOptions(dxTarget, value); + } else { + this.bindingOptions = value; + } + } + } + object elementAttr; + [Parameter] + object ElementAttr { + get => isInitialized ? DevExpress.Ui.DxNavBarInterop.GetElementAttr(dxTarget).Result : elementAttr; + set { + if (isInitialized) { + DevExpress.Ui.DxNavBarInterop.SetElementAttr(dxTarget, value); + } else { + this.elementAttr = value; + } + } + } + object height; + [Parameter] + object Height { + get => isInitialized ? DevExpress.Ui.DxNavBarInterop.GetHeight(dxTarget).Result : height; + set { + if (isInitialized) { + DevExpress.Ui.DxNavBarInterop.SetHeight(dxTarget, value); + } else { + this.height = value; + } + } + } + bool? rtlEnabled; + [Parameter] + bool? RtlEnabled { + get => isInitialized ? (bool?)DevExpress.Ui.DxNavBarInterop.GetRtlEnabled(dxTarget).Result : rtlEnabled; + set { + if (isInitialized) { + DevExpress.Ui.DxNavBarInterop.SetRtlEnabled(dxTarget, value); + } else { + this.rtlEnabled = value; + } + } + } + object width; + [Parameter] + object Width { + get => isInitialized ? DevExpress.Ui.DxNavBarInterop.GetWidth(dxTarget).Result : width; + set { + if (isInitialized) { + DevExpress.Ui.DxNavBarInterop.SetWidth(dxTarget, value); + } else { + this.width = value; + } + } + } + bool? onItemClickEnabled; + [Parameter] + bool? OnItemClickEnabled { + get => onItemClickEnabled; + set => this.onItemClickEnabled = value; + } + bool? onItemContextMenuEnabled; + [Parameter] + bool? OnItemContextMenuEnabled { + get => onItemContextMenuEnabled; + set => this.onItemContextMenuEnabled = value; + } + bool? onItemHoldEnabled; + [Parameter] + bool? OnItemHoldEnabled { + get => onItemHoldEnabled; + set => this.onItemHoldEnabled = value; + } + bool? onItemRenderedEnabled; + [Parameter] + bool? OnItemRenderedEnabled { + get => onItemRenderedEnabled; + set => this.onItemRenderedEnabled = value; + } + bool? onSelectionChangedEnabled; + [Parameter] + bool? OnSelectionChangedEnabled { + get => onSelectionChangedEnabled; + set => this.onSelectionChangedEnabled = value; + } + bool? onContentReadyEnabled; + [Parameter] + bool? OnContentReadyEnabled { + get => onContentReadyEnabled; + set => this.onContentReadyEnabled = value; + } + bool? onDisposingEnabled; + [Parameter] + bool? OnDisposingEnabled { + get => onDisposingEnabled; + set => this.onDisposingEnabled = value; + } + bool? onOptionChangedEnabled; + [Parameter] + bool? OnOptionChangedEnabled { + get => onOptionChangedEnabled; + set => this.onOptionChangedEnabled = value; + } + bool? onInitializedEnabled; + [Parameter] + bool? OnInitializedEnabled { + get => onInitializedEnabled; + set => this.onInitializedEnabled = value; + } protected override async Task OnInitAsync() { await base.OnInitAsync(); + DevExpress.Ui.DxNavBarInterop.ItemClick += DxNavBar_ItemClick; + DevExpress.Ui.DxNavBarInterop.ItemContextMenu += DxNavBar_ItemContextMenu; + DevExpress.Ui.DxNavBarInterop.ItemHold += DxNavBar_ItemHold; + DevExpress.Ui.DxNavBarInterop.ItemRendered += DxNavBar_ItemRendered; + DevExpress.Ui.DxNavBarInterop.SelectionChanged += DxNavBar_SelectionChanged; + DevExpress.Ui.DxNavBarInterop.ContentReady += DxNavBar_ContentReady; + DevExpress.Ui.DxNavBarInterop.Disposing += DxNavBar_Disposing; + DevExpress.Ui.DxNavBarInterop.OptionChanged += DxNavBar_OptionChanged; + DevExpress.Ui.DxNavBarInterop.Initialized += DxNavBar_Initialized; + } + [Parameter] + Action ItemClick { get; set; } + void DxNavBar_ItemClick(object sender, JQueryEventArgs e) { + if (e.Identifier == Id) { + ItemClick?.Invoke(); + } + } + [Parameter] + Action ItemContextMenu { get; set; } + void DxNavBar_ItemContextMenu(object sender, JQueryEventArgs e) { + if (e.Identifier == Id) { + ItemContextMenu?.Invoke(); + } + } + [Parameter] + Action ItemHold { get; set; } + void DxNavBar_ItemHold(object sender, JQueryEventArgs e) { + if (e.Identifier == Id) { + ItemHold?.Invoke(); + } + } + [Parameter] + Action ItemRendered { get; set; } + void DxNavBar_ItemRendered(object sender, JQueryEventArgs e) { + if (e.Identifier == Id) { + ItemRendered?.Invoke(); + } + } + [Parameter] + Action SelectionChanged { get; set; } + void DxNavBar_SelectionChanged(object sender, JQueryEventArgs e) { + if (e.Identifier == Id) { + SelectionChanged?.Invoke(); + } + } + [Parameter] + Action ContentReady { get; set; } + void DxNavBar_ContentReady(object sender, JQueryEventArgs e) { + if (e.Identifier == Id) { + ContentReady?.Invoke(); + } + } + [Parameter] + Action Disposing { get; set; } + void DxNavBar_Disposing(object sender, JQueryEventArgs e) { + if (e.Identifier == Id) { + Disposing?.Invoke(); + } + } + [Parameter] + Action OptionChanged { get; set; } + void DxNavBar_OptionChanged(object sender, JQueryEventArgs e) { + if (e.Identifier == Id) { + OptionChanged?.Invoke(); + } + } + [Parameter] + Action Initialized { get; set; } + void DxNavBar_Initialized(object sender, JQueryEventArgs e) { + if (e.Identifier == Id) { + Initialized?.Invoke(); + } } public void Dispose() { + DevExpress.Ui.DxNavBarInterop.ItemClick -= DxNavBar_ItemClick; + DevExpress.Ui.DxNavBarInterop.ItemContextMenu -= DxNavBar_ItemContextMenu; + DevExpress.Ui.DxNavBarInterop.ItemHold -= DxNavBar_ItemHold; + DevExpress.Ui.DxNavBarInterop.ItemRendered -= DxNavBar_ItemRendered; + DevExpress.Ui.DxNavBarInterop.SelectionChanged -= DxNavBar_SelectionChanged; + DevExpress.Ui.DxNavBarInterop.ContentReady -= DxNavBar_ContentReady; + DevExpress.Ui.DxNavBarInterop.Disposing -= DxNavBar_Disposing; + DevExpress.Ui.DxNavBarInterop.OptionChanged -= DxNavBar_OptionChanged; + DevExpress.Ui.DxNavBarInterop.Initialized -= DxNavBar_Initialized; } } diff --git a/sources/BlazorDevExtreme/Components/DxNumberBox.cshtml b/sources/BlazorDevExtreme/Components/DxNumberBox.cshtml index b89c2a1..ee76602 100644 --- a/sources/BlazorDevExtreme/Components/DxNumberBox.cshtml +++ b/sources/BlazorDevExtreme/Components/DxNumberBox.cshtml @@ -19,10 +19,56 @@ step = step, useLargeSpinButtons = useLargeSpinButtons, value = value, + focusStateEnabled = focusStateEnabled, + hoverStateEnabled = hoverStateEnabled, + inputAttr = inputAttr, + mask = mask, + maskChar = maskChar, + maskInvalidMessage = maskInvalidMessage, + maskRules = maskRules, + name = name, + placeholder = placeholder, + showClearButton = showClearButton, + showMaskMode = showMaskMode, + spellcheck = spellcheck, + text = text, + useMaskedValue = useMaskedValue, + valueChangeEvent = valueChangeEvent, + isValid = isValid, + readOnly = readOnly, + validationError = validationError, + validationMessageMode = validationMessageMode, + accessKey = accessKey, + activeStateEnabled = activeStateEnabled, + disabled = disabled, + hint = hint, + tabIndex = tabIndex, + visible = visible, + bindingOptions = bindingOptions, + elementAttr = elementAttr, + height = height, + rtlEnabled = rtlEnabled, + width = width, + onChangeEnabled = onChangeEnabled, + onCopyEnabled = onCopyEnabled, + onCutEnabled = onCutEnabled, + onEnterKeyEnabled = onEnterKeyEnabled, + onFocusInEnabled = onFocusInEnabled, + onFocusOutEnabled = onFocusOutEnabled, + onInputEnabled = onInputEnabled, + onKeyDownEnabled = onKeyDownEnabled, + onKeyPressEnabled = onKeyPressEnabled, + onKeyUpEnabled = onKeyUpEnabled, + onPasteEnabled = onPasteEnabled, + onValueChangedEnabled = onValueChangedEnabled, + onContentReadyEnabled = onContentReadyEnabled, + onDisposingEnabled = onDisposingEnabled, + onOptionChangedEnabled = onOptionChangedEnabled, + onInitializedEnabled = onInitializedEnabled, }; } protected override Task Init(DevExpress.Ui.DxNumberBoxOptions options) { -return DevExpress.Ui.DxNumberBoxInterop.Init(dxTarget, options); + return DevExpress.Ui.DxNumberBoxInterop.Init(dxTarget, options); } object format; [Parameter] @@ -39,7 +85,7 @@ return DevExpress.Ui.DxNumberBoxInterop.Init(dxTarget, options); string invalidValueMessage; [Parameter] string InvalidValueMessage { - get => isInitialized ? DevExpress.Ui.DxNumberBoxInterop.GetInvalidValueMessage(dxTarget).Result : invalidValueMessage; + get => isInitialized ? (string)DevExpress.Ui.DxNumberBoxInterop.GetInvalidValueMessage(dxTarget).Result : invalidValueMessage; set { if (isInitialized) { DevExpress.Ui.DxNumberBoxInterop.SetInvalidValueMessage(dxTarget, value); @@ -51,7 +97,7 @@ return DevExpress.Ui.DxNumberBoxInterop.Init(dxTarget, options); float? max; [Parameter] float? Max { - get => isInitialized ? DevExpress.Ui.DxNumberBoxInterop.GetMax(dxTarget).Result : max; + get => isInitialized ? (float?)DevExpress.Ui.DxNumberBoxInterop.GetMax(dxTarget).Result : max; set { if (isInitialized) { DevExpress.Ui.DxNumberBoxInterop.SetMax(dxTarget, value); @@ -63,7 +109,7 @@ return DevExpress.Ui.DxNumberBoxInterop.Init(dxTarget, options); float? min; [Parameter] float? Min { - get => isInitialized ? DevExpress.Ui.DxNumberBoxInterop.GetMin(dxTarget).Result : min; + get => isInitialized ? (float?)DevExpress.Ui.DxNumberBoxInterop.GetMin(dxTarget).Result : min; set { if (isInitialized) { DevExpress.Ui.DxNumberBoxInterop.SetMin(dxTarget, value); @@ -75,7 +121,7 @@ return DevExpress.Ui.DxNumberBoxInterop.Init(dxTarget, options); string mode; [Parameter] string Mode { - get => isInitialized ? DevExpress.Ui.DxNumberBoxInterop.GetMode(dxTarget).Result : mode; + get => isInitialized ? (string)DevExpress.Ui.DxNumberBoxInterop.GetMode(dxTarget).Result : mode; set { if (isInitialized) { DevExpress.Ui.DxNumberBoxInterop.SetMode(dxTarget, value); @@ -87,7 +133,7 @@ return DevExpress.Ui.DxNumberBoxInterop.Init(dxTarget, options); bool? showSpinButtons; [Parameter] bool? ShowSpinButtons { - get => isInitialized ? DevExpress.Ui.DxNumberBoxInterop.GetShowSpinButtons(dxTarget).Result : showSpinButtons; + get => isInitialized ? (bool?)DevExpress.Ui.DxNumberBoxInterop.GetShowSpinButtons(dxTarget).Result : showSpinButtons; set { if (isInitialized) { DevExpress.Ui.DxNumberBoxInterop.SetShowSpinButtons(dxTarget, value); @@ -99,7 +145,7 @@ return DevExpress.Ui.DxNumberBoxInterop.Init(dxTarget, options); float? step; [Parameter] float? Step { - get => isInitialized ? DevExpress.Ui.DxNumberBoxInterop.GetStep(dxTarget).Result : step; + get => isInitialized ? (float?)DevExpress.Ui.DxNumberBoxInterop.GetStep(dxTarget).Result : step; set { if (isInitialized) { DevExpress.Ui.DxNumberBoxInterop.SetStep(dxTarget, value); @@ -111,7 +157,7 @@ return DevExpress.Ui.DxNumberBoxInterop.Init(dxTarget, options); bool? useLargeSpinButtons; [Parameter] bool? UseLargeSpinButtons { - get => isInitialized ? DevExpress.Ui.DxNumberBoxInterop.GetUseLargeSpinButtons(dxTarget).Result : useLargeSpinButtons; + get => isInitialized ? (bool?)DevExpress.Ui.DxNumberBoxInterop.GetUseLargeSpinButtons(dxTarget).Result : useLargeSpinButtons; set { if (isInitialized) { DevExpress.Ui.DxNumberBoxInterop.SetUseLargeSpinButtons(dxTarget, value); @@ -123,7 +169,7 @@ return DevExpress.Ui.DxNumberBoxInterop.Init(dxTarget, options); float? value; [Parameter] float? Value { - get => isInitialized ? DevExpress.Ui.DxNumberBoxInterop.GetValue(dxTarget).Result : value; + get => isInitialized ? (float?)DevExpress.Ui.DxNumberBoxInterop.GetValue(dxTarget).Result : value; set { if (isInitialized) { DevExpress.Ui.DxNumberBoxInterop.SetValue(dxTarget, value); @@ -132,9 +178,609 @@ return DevExpress.Ui.DxNumberBoxInterop.Init(dxTarget, options); } } } + bool? focusStateEnabled; + [Parameter] + bool? FocusStateEnabled { + get => isInitialized ? (bool?)DevExpress.Ui.DxNumberBoxInterop.GetFocusStateEnabled(dxTarget).Result : focusStateEnabled; + set { + if (isInitialized) { + DevExpress.Ui.DxNumberBoxInterop.SetFocusStateEnabled(dxTarget, value); + } else { + this.focusStateEnabled = value; + } + } + } + bool? hoverStateEnabled; + [Parameter] + bool? HoverStateEnabled { + get => isInitialized ? (bool?)DevExpress.Ui.DxNumberBoxInterop.GetHoverStateEnabled(dxTarget).Result : hoverStateEnabled; + set { + if (isInitialized) { + DevExpress.Ui.DxNumberBoxInterop.SetHoverStateEnabled(dxTarget, value); + } else { + this.hoverStateEnabled = value; + } + } + } + object inputAttr; + [Parameter] + object InputAttr { + get => isInitialized ? DevExpress.Ui.DxNumberBoxInterop.GetInputAttr(dxTarget).Result : inputAttr; + set { + if (isInitialized) { + DevExpress.Ui.DxNumberBoxInterop.SetInputAttr(dxTarget, value); + } else { + this.inputAttr = value; + } + } + } + string mask; + [Parameter] + string Mask { + get => isInitialized ? (string)DevExpress.Ui.DxNumberBoxInterop.GetMask(dxTarget).Result : mask; + set { + if (isInitialized) { + DevExpress.Ui.DxNumberBoxInterop.SetMask(dxTarget, value); + } else { + this.mask = value; + } + } + } + string maskChar; + [Parameter] + string MaskChar { + get => isInitialized ? (string)DevExpress.Ui.DxNumberBoxInterop.GetMaskChar(dxTarget).Result : maskChar; + set { + if (isInitialized) { + DevExpress.Ui.DxNumberBoxInterop.SetMaskChar(dxTarget, value); + } else { + this.maskChar = value; + } + } + } + string maskInvalidMessage; + [Parameter] + string MaskInvalidMessage { + get => isInitialized ? (string)DevExpress.Ui.DxNumberBoxInterop.GetMaskInvalidMessage(dxTarget).Result : maskInvalidMessage; + set { + if (isInitialized) { + DevExpress.Ui.DxNumberBoxInterop.SetMaskInvalidMessage(dxTarget, value); + } else { + this.maskInvalidMessage = value; + } + } + } + object maskRules; + [Parameter] + object MaskRules { + get => isInitialized ? DevExpress.Ui.DxNumberBoxInterop.GetMaskRules(dxTarget).Result : maskRules; + set { + if (isInitialized) { + DevExpress.Ui.DxNumberBoxInterop.SetMaskRules(dxTarget, value); + } else { + this.maskRules = value; + } + } + } + string name; + [Parameter] + string Name { + get => isInitialized ? (string)DevExpress.Ui.DxNumberBoxInterop.GetName(dxTarget).Result : name; + set { + if (isInitialized) { + DevExpress.Ui.DxNumberBoxInterop.SetName(dxTarget, value); + } else { + this.name = value; + } + } + } + string placeholder; + [Parameter] + string Placeholder { + get => isInitialized ? (string)DevExpress.Ui.DxNumberBoxInterop.GetPlaceholder(dxTarget).Result : placeholder; + set { + if (isInitialized) { + DevExpress.Ui.DxNumberBoxInterop.SetPlaceholder(dxTarget, value); + } else { + this.placeholder = value; + } + } + } + bool? showClearButton; + [Parameter] + bool? ShowClearButton { + get => isInitialized ? (bool?)DevExpress.Ui.DxNumberBoxInterop.GetShowClearButton(dxTarget).Result : showClearButton; + set { + if (isInitialized) { + DevExpress.Ui.DxNumberBoxInterop.SetShowClearButton(dxTarget, value); + } else { + this.showClearButton = value; + } + } + } + string showMaskMode; + [Parameter] + string ShowMaskMode { + get => isInitialized ? (string)DevExpress.Ui.DxNumberBoxInterop.GetShowMaskMode(dxTarget).Result : showMaskMode; + set { + if (isInitialized) { + DevExpress.Ui.DxNumberBoxInterop.SetShowMaskMode(dxTarget, value); + } else { + this.showMaskMode = value; + } + } + } + bool? spellcheck; + [Parameter] + bool? Spellcheck { + get => isInitialized ? (bool?)DevExpress.Ui.DxNumberBoxInterop.GetSpellcheck(dxTarget).Result : spellcheck; + set { + if (isInitialized) { + DevExpress.Ui.DxNumberBoxInterop.SetSpellcheck(dxTarget, value); + } else { + this.spellcheck = value; + } + } + } + string text; + [Parameter] + string Text { + get => isInitialized ? (string)DevExpress.Ui.DxNumberBoxInterop.GetText(dxTarget).Result : text; + set { + if (isInitialized) { + DevExpress.Ui.DxNumberBoxInterop.SetText(dxTarget, value); + } else { + this.text = value; + } + } + } + bool? useMaskedValue; + [Parameter] + bool? UseMaskedValue { + get => isInitialized ? (bool?)DevExpress.Ui.DxNumberBoxInterop.GetUseMaskedValue(dxTarget).Result : useMaskedValue; + set { + if (isInitialized) { + DevExpress.Ui.DxNumberBoxInterop.SetUseMaskedValue(dxTarget, value); + } else { + this.useMaskedValue = value; + } + } + } + string valueChangeEvent; + [Parameter] + string ValueChangeEvent { + get => isInitialized ? (string)DevExpress.Ui.DxNumberBoxInterop.GetValueChangeEvent(dxTarget).Result : valueChangeEvent; + set { + if (isInitialized) { + DevExpress.Ui.DxNumberBoxInterop.SetValueChangeEvent(dxTarget, value); + } else { + this.valueChangeEvent = value; + } + } + } + bool? isValid; + [Parameter] + bool? IsValid { + get => isInitialized ? (bool?)DevExpress.Ui.DxNumberBoxInterop.GetIsValid(dxTarget).Result : isValid; + set { + if (isInitialized) { + DevExpress.Ui.DxNumberBoxInterop.SetIsValid(dxTarget, value); + } else { + this.isValid = value; + } + } + } + bool? readOnly; + [Parameter] + bool? ReadOnly { + get => isInitialized ? (bool?)DevExpress.Ui.DxNumberBoxInterop.GetReadOnly(dxTarget).Result : readOnly; + set { + if (isInitialized) { + DevExpress.Ui.DxNumberBoxInterop.SetReadOnly(dxTarget, value); + } else { + this.readOnly = value; + } + } + } + object validationError; + [Parameter] + object ValidationError { + get => isInitialized ? DevExpress.Ui.DxNumberBoxInterop.GetValidationError(dxTarget).Result : validationError; + set { + if (isInitialized) { + DevExpress.Ui.DxNumberBoxInterop.SetValidationError(dxTarget, value); + } else { + this.validationError = value; + } + } + } + string validationMessageMode; + [Parameter] + string ValidationMessageMode { + get => isInitialized ? (string)DevExpress.Ui.DxNumberBoxInterop.GetValidationMessageMode(dxTarget).Result : validationMessageMode; + set { + if (isInitialized) { + DevExpress.Ui.DxNumberBoxInterop.SetValidationMessageMode(dxTarget, value); + } else { + this.validationMessageMode = value; + } + } + } + string accessKey; + [Parameter] + string AccessKey { + get => isInitialized ? (string)DevExpress.Ui.DxNumberBoxInterop.GetAccessKey(dxTarget).Result : accessKey; + set { + if (isInitialized) { + DevExpress.Ui.DxNumberBoxInterop.SetAccessKey(dxTarget, value); + } else { + this.accessKey = value; + } + } + } + bool? activeStateEnabled; + [Parameter] + bool? ActiveStateEnabled { + get => isInitialized ? (bool?)DevExpress.Ui.DxNumberBoxInterop.GetActiveStateEnabled(dxTarget).Result : activeStateEnabled; + set { + if (isInitialized) { + DevExpress.Ui.DxNumberBoxInterop.SetActiveStateEnabled(dxTarget, value); + } else { + this.activeStateEnabled = value; + } + } + } + bool? disabled; + [Parameter] + bool? Disabled { + get => isInitialized ? (bool?)DevExpress.Ui.DxNumberBoxInterop.GetDisabled(dxTarget).Result : disabled; + set { + if (isInitialized) { + DevExpress.Ui.DxNumberBoxInterop.SetDisabled(dxTarget, value); + } else { + this.disabled = value; + } + } + } + string hint; + [Parameter] + string Hint { + get => isInitialized ? (string)DevExpress.Ui.DxNumberBoxInterop.GetHint(dxTarget).Result : hint; + set { + if (isInitialized) { + DevExpress.Ui.DxNumberBoxInterop.SetHint(dxTarget, value); + } else { + this.hint = value; + } + } + } + float? tabIndex; + [Parameter] + float? TabIndex { + get => isInitialized ? (float?)DevExpress.Ui.DxNumberBoxInterop.GetTabIndex(dxTarget).Result : tabIndex; + set { + if (isInitialized) { + DevExpress.Ui.DxNumberBoxInterop.SetTabIndex(dxTarget, value); + } else { + this.tabIndex = value; + } + } + } + bool? visible; + [Parameter] + bool? Visible { + get => isInitialized ? (bool?)DevExpress.Ui.DxNumberBoxInterop.GetVisible(dxTarget).Result : visible; + set { + if (isInitialized) { + DevExpress.Ui.DxNumberBoxInterop.SetVisible(dxTarget, value); + } else { + this.visible = value; + } + } + } + object bindingOptions; + [Parameter] + object BindingOptions { + get => isInitialized ? DevExpress.Ui.DxNumberBoxInterop.GetBindingOptions(dxTarget).Result : bindingOptions; + set { + if (isInitialized) { + DevExpress.Ui.DxNumberBoxInterop.SetBindingOptions(dxTarget, value); + } else { + this.bindingOptions = value; + } + } + } + object elementAttr; + [Parameter] + object ElementAttr { + get => isInitialized ? DevExpress.Ui.DxNumberBoxInterop.GetElementAttr(dxTarget).Result : elementAttr; + set { + if (isInitialized) { + DevExpress.Ui.DxNumberBoxInterop.SetElementAttr(dxTarget, value); + } else { + this.elementAttr = value; + } + } + } + object height; + [Parameter] + object Height { + get => isInitialized ? DevExpress.Ui.DxNumberBoxInterop.GetHeight(dxTarget).Result : height; + set { + if (isInitialized) { + DevExpress.Ui.DxNumberBoxInterop.SetHeight(dxTarget, value); + } else { + this.height = value; + } + } + } + bool? rtlEnabled; + [Parameter] + bool? RtlEnabled { + get => isInitialized ? (bool?)DevExpress.Ui.DxNumberBoxInterop.GetRtlEnabled(dxTarget).Result : rtlEnabled; + set { + if (isInitialized) { + DevExpress.Ui.DxNumberBoxInterop.SetRtlEnabled(dxTarget, value); + } else { + this.rtlEnabled = value; + } + } + } + object width; + [Parameter] + object Width { + get => isInitialized ? DevExpress.Ui.DxNumberBoxInterop.GetWidth(dxTarget).Result : width; + set { + if (isInitialized) { + DevExpress.Ui.DxNumberBoxInterop.SetWidth(dxTarget, value); + } else { + this.width = value; + } + } + } + bool? onChangeEnabled; + [Parameter] + bool? OnChangeEnabled { + get => onChangeEnabled; + set => this.onChangeEnabled = value; + } + bool? onCopyEnabled; + [Parameter] + bool? OnCopyEnabled { + get => onCopyEnabled; + set => this.onCopyEnabled = value; + } + bool? onCutEnabled; + [Parameter] + bool? OnCutEnabled { + get => onCutEnabled; + set => this.onCutEnabled = value; + } + bool? onEnterKeyEnabled; + [Parameter] + bool? OnEnterKeyEnabled { + get => onEnterKeyEnabled; + set => this.onEnterKeyEnabled = value; + } + bool? onFocusInEnabled; + [Parameter] + bool? OnFocusInEnabled { + get => onFocusInEnabled; + set => this.onFocusInEnabled = value; + } + bool? onFocusOutEnabled; + [Parameter] + bool? OnFocusOutEnabled { + get => onFocusOutEnabled; + set => this.onFocusOutEnabled = value; + } + bool? onInputEnabled; + [Parameter] + bool? OnInputEnabled { + get => onInputEnabled; + set => this.onInputEnabled = value; + } + bool? onKeyDownEnabled; + [Parameter] + bool? OnKeyDownEnabled { + get => onKeyDownEnabled; + set => this.onKeyDownEnabled = value; + } + bool? onKeyPressEnabled; + [Parameter] + bool? OnKeyPressEnabled { + get => onKeyPressEnabled; + set => this.onKeyPressEnabled = value; + } + bool? onKeyUpEnabled; + [Parameter] + bool? OnKeyUpEnabled { + get => onKeyUpEnabled; + set => this.onKeyUpEnabled = value; + } + bool? onPasteEnabled; + [Parameter] + bool? OnPasteEnabled { + get => onPasteEnabled; + set => this.onPasteEnabled = value; + } + bool? onValueChangedEnabled; + [Parameter] + bool? OnValueChangedEnabled { + get => onValueChangedEnabled; + set => this.onValueChangedEnabled = value; + } + bool? onContentReadyEnabled; + [Parameter] + bool? OnContentReadyEnabled { + get => onContentReadyEnabled; + set => this.onContentReadyEnabled = value; + } + bool? onDisposingEnabled; + [Parameter] + bool? OnDisposingEnabled { + get => onDisposingEnabled; + set => this.onDisposingEnabled = value; + } + bool? onOptionChangedEnabled; + [Parameter] + bool? OnOptionChangedEnabled { + get => onOptionChangedEnabled; + set => this.onOptionChangedEnabled = value; + } + bool? onInitializedEnabled; + [Parameter] + bool? OnInitializedEnabled { + get => onInitializedEnabled; + set => this.onInitializedEnabled = value; + } protected override async Task OnInitAsync() { await base.OnInitAsync(); + DevExpress.Ui.DxNumberBoxInterop.Change += DxNumberBox_Change; + DevExpress.Ui.DxNumberBoxInterop.Copy += DxNumberBox_Copy; + DevExpress.Ui.DxNumberBoxInterop.Cut += DxNumberBox_Cut; + DevExpress.Ui.DxNumberBoxInterop.EnterKey += DxNumberBox_EnterKey; + DevExpress.Ui.DxNumberBoxInterop.FocusIn += DxNumberBox_FocusIn; + DevExpress.Ui.DxNumberBoxInterop.FocusOut += DxNumberBox_FocusOut; + DevExpress.Ui.DxNumberBoxInterop.Input += DxNumberBox_Input; + DevExpress.Ui.DxNumberBoxInterop.KeyDown += DxNumberBox_KeyDown; + DevExpress.Ui.DxNumberBoxInterop.KeyPress += DxNumberBox_KeyPress; + DevExpress.Ui.DxNumberBoxInterop.KeyUp += DxNumberBox_KeyUp; + DevExpress.Ui.DxNumberBoxInterop.Paste += DxNumberBox_Paste; + DevExpress.Ui.DxNumberBoxInterop.ValueChanged += DxNumberBox_ValueChanged; + DevExpress.Ui.DxNumberBoxInterop.ContentReady += DxNumberBox_ContentReady; + DevExpress.Ui.DxNumberBoxInterop.Disposing += DxNumberBox_Disposing; + DevExpress.Ui.DxNumberBoxInterop.OptionChanged += DxNumberBox_OptionChanged; + DevExpress.Ui.DxNumberBoxInterop.Initialized += DxNumberBox_Initialized; + } + [Parameter] + Action Change { get; set; } + void DxNumberBox_Change(object sender, JQueryEventArgs e) { + if (e.Identifier == Id) { + Change?.Invoke(); + } + } + [Parameter] + Action Copy { get; set; } + void DxNumberBox_Copy(object sender, JQueryEventArgs e) { + if (e.Identifier == Id) { + Copy?.Invoke(); + } + } + [Parameter] + Action Cut { get; set; } + void DxNumberBox_Cut(object sender, JQueryEventArgs e) { + if (e.Identifier == Id) { + Cut?.Invoke(); + } + } + [Parameter] + Action EnterKey { get; set; } + void DxNumberBox_EnterKey(object sender, JQueryEventArgs e) { + if (e.Identifier == Id) { + EnterKey?.Invoke(); + } + } + [Parameter] + Action FocusIn { get; set; } + void DxNumberBox_FocusIn(object sender, JQueryEventArgs e) { + if (e.Identifier == Id) { + FocusIn?.Invoke(); + } + } + [Parameter] + Action FocusOut { get; set; } + void DxNumberBox_FocusOut(object sender, JQueryEventArgs e) { + if (e.Identifier == Id) { + FocusOut?.Invoke(); + } + } + [Parameter] + Action Input { get; set; } + void DxNumberBox_Input(object sender, JQueryEventArgs e) { + if (e.Identifier == Id) { + Input?.Invoke(); + } + } + [Parameter] + Action KeyDown { get; set; } + void DxNumberBox_KeyDown(object sender, JQueryEventArgs e) { + if (e.Identifier == Id) { + KeyDown?.Invoke(); + } + } + [Parameter] + Action KeyPress { get; set; } + void DxNumberBox_KeyPress(object sender, JQueryEventArgs e) { + if (e.Identifier == Id) { + KeyPress?.Invoke(); + } + } + [Parameter] + Action KeyUp { get; set; } + void DxNumberBox_KeyUp(object sender, JQueryEventArgs e) { + if (e.Identifier == Id) { + KeyUp?.Invoke(); + } + } + [Parameter] + Action Paste { get; set; } + void DxNumberBox_Paste(object sender, JQueryEventArgs e) { + if (e.Identifier == Id) { + Paste?.Invoke(); + } + } + [Parameter] + Action ValueChanged { get; set; } + void DxNumberBox_ValueChanged(object sender, JQueryEventArgs e) { + if (e.Identifier == Id) { + ValueChanged?.Invoke(); + } + } + [Parameter] + Action ContentReady { get; set; } + void DxNumberBox_ContentReady(object sender, JQueryEventArgs e) { + if (e.Identifier == Id) { + ContentReady?.Invoke(); + } + } + [Parameter] + Action Disposing { get; set; } + void DxNumberBox_Disposing(object sender, JQueryEventArgs e) { + if (e.Identifier == Id) { + Disposing?.Invoke(); + } + } + [Parameter] + Action OptionChanged { get; set; } + void DxNumberBox_OptionChanged(object sender, JQueryEventArgs e) { + if (e.Identifier == Id) { + OptionChanged?.Invoke(); + } + } + [Parameter] + Action Initialized { get; set; } + void DxNumberBox_Initialized(object sender, JQueryEventArgs e) { + if (e.Identifier == Id) { + Initialized?.Invoke(); + } } public void Dispose() { + DevExpress.Ui.DxNumberBoxInterop.Change -= DxNumberBox_Change; + DevExpress.Ui.DxNumberBoxInterop.Copy -= DxNumberBox_Copy; + DevExpress.Ui.DxNumberBoxInterop.Cut -= DxNumberBox_Cut; + DevExpress.Ui.DxNumberBoxInterop.EnterKey -= DxNumberBox_EnterKey; + DevExpress.Ui.DxNumberBoxInterop.FocusIn -= DxNumberBox_FocusIn; + DevExpress.Ui.DxNumberBoxInterop.FocusOut -= DxNumberBox_FocusOut; + DevExpress.Ui.DxNumberBoxInterop.Input -= DxNumberBox_Input; + DevExpress.Ui.DxNumberBoxInterop.KeyDown -= DxNumberBox_KeyDown; + DevExpress.Ui.DxNumberBoxInterop.KeyPress -= DxNumberBox_KeyPress; + DevExpress.Ui.DxNumberBoxInterop.KeyUp -= DxNumberBox_KeyUp; + DevExpress.Ui.DxNumberBoxInterop.Paste -= DxNumberBox_Paste; + DevExpress.Ui.DxNumberBoxInterop.ValueChanged -= DxNumberBox_ValueChanged; + DevExpress.Ui.DxNumberBoxInterop.ContentReady -= DxNumberBox_ContentReady; + DevExpress.Ui.DxNumberBoxInterop.Disposing -= DxNumberBox_Disposing; + DevExpress.Ui.DxNumberBoxInterop.OptionChanged -= DxNumberBox_OptionChanged; + DevExpress.Ui.DxNumberBoxInterop.Initialized -= DxNumberBox_Initialized; } } diff --git a/sources/BlazorDevExtreme/Components/DxOverlay.cshtml b/sources/BlazorDevExtreme/Components/DxOverlay.cshtml index 1a2d347..18730a2 100644 --- a/sources/BlazorDevExtreme/Components/DxOverlay.cshtml +++ b/sources/BlazorDevExtreme/Components/DxOverlay.cshtml @@ -26,14 +26,28 @@ shadingColor = shadingColor, visible = visible, width = width, + accessKey = accessKey, + activeStateEnabled = activeStateEnabled, + disabled = disabled, + focusStateEnabled = focusStateEnabled, + hint = hint, + hoverStateEnabled = hoverStateEnabled, + tabIndex = tabIndex, + bindingOptions = bindingOptions, + elementAttr = elementAttr, + rtlEnabled = rtlEnabled, onHiddenEnabled = onHiddenEnabled, onHidingEnabled = onHidingEnabled, onShowingEnabled = onShowingEnabled, onShownEnabled = onShownEnabled, + onContentReadyEnabled = onContentReadyEnabled, + onDisposingEnabled = onDisposingEnabled, + onOptionChangedEnabled = onOptionChangedEnabled, + onInitializedEnabled = onInitializedEnabled, }; } protected override Task Init(DevExpress.Ui.DxOverlayOptions options) { -return DevExpress.Ui.DxOverlayInterop.Init(dxTarget, options); + return DevExpress.Ui.DxOverlayInterop.Init(dxTarget, options); } object animation; [Parameter] @@ -50,7 +64,7 @@ return DevExpress.Ui.DxOverlayInterop.Init(dxTarget, options); bool? closeOnBackButton; [Parameter] bool? CloseOnBackButton { - get => isInitialized ? DevExpress.Ui.DxOverlayInterop.GetCloseOnBackButton(dxTarget).Result : closeOnBackButton; + get => isInitialized ? (bool?)DevExpress.Ui.DxOverlayInterop.GetCloseOnBackButton(dxTarget).Result : closeOnBackButton; set { if (isInitialized) { DevExpress.Ui.DxOverlayInterop.SetCloseOnBackButton(dxTarget, value); @@ -86,7 +100,7 @@ return DevExpress.Ui.DxOverlayInterop.Init(dxTarget, options); bool? deferRendering; [Parameter] bool? DeferRendering { - get => isInitialized ? DevExpress.Ui.DxOverlayInterop.GetDeferRendering(dxTarget).Result : deferRendering; + get => isInitialized ? (bool?)DevExpress.Ui.DxOverlayInterop.GetDeferRendering(dxTarget).Result : deferRendering; set { if (isInitialized) { DevExpress.Ui.DxOverlayInterop.SetDeferRendering(dxTarget, value); @@ -98,7 +112,7 @@ return DevExpress.Ui.DxOverlayInterop.Init(dxTarget, options); bool? dragEnabled; [Parameter] bool? DragEnabled { - get => isInitialized ? DevExpress.Ui.DxOverlayInterop.GetDragEnabled(dxTarget).Result : dragEnabled; + get => isInitialized ? (bool?)DevExpress.Ui.DxOverlayInterop.GetDragEnabled(dxTarget).Result : dragEnabled; set { if (isInitialized) { DevExpress.Ui.DxOverlayInterop.SetDragEnabled(dxTarget, value); @@ -182,7 +196,7 @@ return DevExpress.Ui.DxOverlayInterop.Init(dxTarget, options); bool? shading; [Parameter] bool? Shading { - get => isInitialized ? DevExpress.Ui.DxOverlayInterop.GetShading(dxTarget).Result : shading; + get => isInitialized ? (bool?)DevExpress.Ui.DxOverlayInterop.GetShading(dxTarget).Result : shading; set { if (isInitialized) { DevExpress.Ui.DxOverlayInterop.SetShading(dxTarget, value); @@ -194,7 +208,7 @@ return DevExpress.Ui.DxOverlayInterop.Init(dxTarget, options); string shadingColor; [Parameter] string ShadingColor { - get => isInitialized ? DevExpress.Ui.DxOverlayInterop.GetShadingColor(dxTarget).Result : shadingColor; + get => isInitialized ? (string)DevExpress.Ui.DxOverlayInterop.GetShadingColor(dxTarget).Result : shadingColor; set { if (isInitialized) { DevExpress.Ui.DxOverlayInterop.SetShadingColor(dxTarget, value); @@ -206,7 +220,7 @@ return DevExpress.Ui.DxOverlayInterop.Init(dxTarget, options); bool? visible; [Parameter] bool? Visible { - get => isInitialized ? DevExpress.Ui.DxOverlayInterop.GetVisible(dxTarget).Result : visible; + get => isInitialized ? (bool?)DevExpress.Ui.DxOverlayInterop.GetVisible(dxTarget).Result : visible; set { if (isInitialized) { DevExpress.Ui.DxOverlayInterop.SetVisible(dxTarget, value); @@ -227,6 +241,126 @@ return DevExpress.Ui.DxOverlayInterop.Init(dxTarget, options); } } } + string accessKey; + [Parameter] + string AccessKey { + get => isInitialized ? (string)DevExpress.Ui.DxOverlayInterop.GetAccessKey(dxTarget).Result : accessKey; + set { + if (isInitialized) { + DevExpress.Ui.DxOverlayInterop.SetAccessKey(dxTarget, value); + } else { + this.accessKey = value; + } + } + } + bool? activeStateEnabled; + [Parameter] + bool? ActiveStateEnabled { + get => isInitialized ? (bool?)DevExpress.Ui.DxOverlayInterop.GetActiveStateEnabled(dxTarget).Result : activeStateEnabled; + set { + if (isInitialized) { + DevExpress.Ui.DxOverlayInterop.SetActiveStateEnabled(dxTarget, value); + } else { + this.activeStateEnabled = value; + } + } + } + bool? disabled; + [Parameter] + bool? Disabled { + get => isInitialized ? (bool?)DevExpress.Ui.DxOverlayInterop.GetDisabled(dxTarget).Result : disabled; + set { + if (isInitialized) { + DevExpress.Ui.DxOverlayInterop.SetDisabled(dxTarget, value); + } else { + this.disabled = value; + } + } + } + bool? focusStateEnabled; + [Parameter] + bool? FocusStateEnabled { + get => isInitialized ? (bool?)DevExpress.Ui.DxOverlayInterop.GetFocusStateEnabled(dxTarget).Result : focusStateEnabled; + set { + if (isInitialized) { + DevExpress.Ui.DxOverlayInterop.SetFocusStateEnabled(dxTarget, value); + } else { + this.focusStateEnabled = value; + } + } + } + string hint; + [Parameter] + string Hint { + get => isInitialized ? (string)DevExpress.Ui.DxOverlayInterop.GetHint(dxTarget).Result : hint; + set { + if (isInitialized) { + DevExpress.Ui.DxOverlayInterop.SetHint(dxTarget, value); + } else { + this.hint = value; + } + } + } + bool? hoverStateEnabled; + [Parameter] + bool? HoverStateEnabled { + get => isInitialized ? (bool?)DevExpress.Ui.DxOverlayInterop.GetHoverStateEnabled(dxTarget).Result : hoverStateEnabled; + set { + if (isInitialized) { + DevExpress.Ui.DxOverlayInterop.SetHoverStateEnabled(dxTarget, value); + } else { + this.hoverStateEnabled = value; + } + } + } + float? tabIndex; + [Parameter] + float? TabIndex { + get => isInitialized ? (float?)DevExpress.Ui.DxOverlayInterop.GetTabIndex(dxTarget).Result : tabIndex; + set { + if (isInitialized) { + DevExpress.Ui.DxOverlayInterop.SetTabIndex(dxTarget, value); + } else { + this.tabIndex = value; + } + } + } + object bindingOptions; + [Parameter] + object BindingOptions { + get => isInitialized ? DevExpress.Ui.DxOverlayInterop.GetBindingOptions(dxTarget).Result : bindingOptions; + set { + if (isInitialized) { + DevExpress.Ui.DxOverlayInterop.SetBindingOptions(dxTarget, value); + } else { + this.bindingOptions = value; + } + } + } + object elementAttr; + [Parameter] + object ElementAttr { + get => isInitialized ? DevExpress.Ui.DxOverlayInterop.GetElementAttr(dxTarget).Result : elementAttr; + set { + if (isInitialized) { + DevExpress.Ui.DxOverlayInterop.SetElementAttr(dxTarget, value); + } else { + this.elementAttr = value; + } + } + } + bool? rtlEnabled; + [Parameter] + bool? RtlEnabled { + get => isInitialized ? (bool?)DevExpress.Ui.DxOverlayInterop.GetRtlEnabled(dxTarget).Result : rtlEnabled; + set { + if (isInitialized) { + DevExpress.Ui.DxOverlayInterop.SetRtlEnabled(dxTarget, value); + } else { + this.rtlEnabled = value; + } + } + } bool? onHiddenEnabled; [Parameter] bool? OnHiddenEnabled { @@ -251,12 +385,40 @@ return DevExpress.Ui.DxOverlayInterop.Init(dxTarget, options); get => onShownEnabled; set => this.onShownEnabled = value; } + bool? onContentReadyEnabled; + [Parameter] + bool? OnContentReadyEnabled { + get => onContentReadyEnabled; + set => this.onContentReadyEnabled = value; + } + bool? onDisposingEnabled; + [Parameter] + bool? OnDisposingEnabled { + get => onDisposingEnabled; + set => this.onDisposingEnabled = value; + } + bool? onOptionChangedEnabled; + [Parameter] + bool? OnOptionChangedEnabled { + get => onOptionChangedEnabled; + set => this.onOptionChangedEnabled = value; + } + bool? onInitializedEnabled; + [Parameter] + bool? OnInitializedEnabled { + get => onInitializedEnabled; + set => this.onInitializedEnabled = value; + } protected override async Task OnInitAsync() { await base.OnInitAsync(); DevExpress.Ui.DxOverlayInterop.Hidden += DxOverlay_Hidden; DevExpress.Ui.DxOverlayInterop.Hiding += DxOverlay_Hiding; DevExpress.Ui.DxOverlayInterop.Showing += DxOverlay_Showing; DevExpress.Ui.DxOverlayInterop.Shown += DxOverlay_Shown; + DevExpress.Ui.DxOverlayInterop.ContentReady += DxOverlay_ContentReady; + DevExpress.Ui.DxOverlayInterop.Disposing += DxOverlay_Disposing; + DevExpress.Ui.DxOverlayInterop.OptionChanged += DxOverlay_OptionChanged; + DevExpress.Ui.DxOverlayInterop.Initialized += DxOverlay_Initialized; } [Parameter] Action Hidden { get; set; } @@ -286,6 +448,34 @@ return DevExpress.Ui.DxOverlayInterop.Init(dxTarget, options); Shown?.Invoke(); } } + [Parameter] + Action ContentReady { get; set; } + void DxOverlay_ContentReady(object sender, JQueryEventArgs e) { + if (e.Identifier == Id) { + ContentReady?.Invoke(); + } + } + [Parameter] + Action Disposing { get; set; } + void DxOverlay_Disposing(object sender, JQueryEventArgs e) { + if (e.Identifier == Id) { + Disposing?.Invoke(); + } + } + [Parameter] + Action OptionChanged { get; set; } + void DxOverlay_OptionChanged(object sender, JQueryEventArgs e) { + if (e.Identifier == Id) { + OptionChanged?.Invoke(); + } + } + [Parameter] + Action Initialized { get; set; } + void DxOverlay_Initialized(object sender, JQueryEventArgs e) { + if (e.Identifier == Id) { + Initialized?.Invoke(); + } + } public object Content() { return DevExpress.Ui.DxOverlayInterop.Content(dxTarget).Result; } @@ -306,5 +496,9 @@ return DevExpress.Ui.DxOverlayInterop.Init(dxTarget, options); DevExpress.Ui.DxOverlayInterop.Hiding -= DxOverlay_Hiding; DevExpress.Ui.DxOverlayInterop.Showing -= DxOverlay_Showing; DevExpress.Ui.DxOverlayInterop.Shown -= DxOverlay_Shown; + DevExpress.Ui.DxOverlayInterop.ContentReady -= DxOverlay_ContentReady; + DevExpress.Ui.DxOverlayInterop.Disposing -= DxOverlay_Disposing; + DevExpress.Ui.DxOverlayInterop.OptionChanged -= DxOverlay_OptionChanged; + DevExpress.Ui.DxOverlayInterop.Initialized -= DxOverlay_Initialized; } } diff --git a/sources/BlazorDevExtreme/Components/DxPanorama.cshtml b/sources/BlazorDevExtreme/Components/DxPanorama.cshtml index 7ef05b0..cc0b337 100644 --- a/sources/BlazorDevExtreme/Components/DxPanorama.cshtml +++ b/sources/BlazorDevExtreme/Components/DxPanorama.cshtml @@ -14,10 +14,40 @@ focusStateEnabled = focusStateEnabled, selectedIndex = selectedIndex, title = title, + dataSource = dataSource, + itemHoldTimeout = itemHoldTimeout, + items = items, + itemTemplate = itemTemplate, + keyExpr = keyExpr, + noDataText = noDataText, + selectedItem = selectedItem, + selectedItemKeys = selectedItemKeys, + selectedItems = selectedItems, + accessKey = accessKey, + activeStateEnabled = activeStateEnabled, + disabled = disabled, + hint = hint, + hoverStateEnabled = hoverStateEnabled, + tabIndex = tabIndex, + visible = visible, + bindingOptions = bindingOptions, + elementAttr = elementAttr, + height = height, + rtlEnabled = rtlEnabled, + width = width, + onItemClickEnabled = onItemClickEnabled, + onItemContextMenuEnabled = onItemContextMenuEnabled, + onItemHoldEnabled = onItemHoldEnabled, + onItemRenderedEnabled = onItemRenderedEnabled, + onSelectionChangedEnabled = onSelectionChangedEnabled, + onContentReadyEnabled = onContentReadyEnabled, + onDisposingEnabled = onDisposingEnabled, + onOptionChangedEnabled = onOptionChangedEnabled, + onInitializedEnabled = onInitializedEnabled, }; } protected override Task Init(DevExpress.Ui.DxPanoramaOptions options) { -return DevExpress.Ui.DxPanoramaInterop.Init(dxTarget, options); + return DevExpress.Ui.DxPanoramaInterop.Init(dxTarget, options); } object backgroundImage; [Parameter] @@ -34,7 +64,7 @@ return DevExpress.Ui.DxPanoramaInterop.Init(dxTarget, options); bool? focusStateEnabled; [Parameter] bool? FocusStateEnabled { - get => isInitialized ? DevExpress.Ui.DxPanoramaInterop.GetFocusStateEnabled(dxTarget).Result : focusStateEnabled; + get => isInitialized ? (bool?)DevExpress.Ui.DxPanoramaInterop.GetFocusStateEnabled(dxTarget).Result : focusStateEnabled; set { if (isInitialized) { DevExpress.Ui.DxPanoramaInterop.SetFocusStateEnabled(dxTarget, value); @@ -46,7 +76,7 @@ return DevExpress.Ui.DxPanoramaInterop.Init(dxTarget, options); float? selectedIndex; [Parameter] float? SelectedIndex { - get => isInitialized ? DevExpress.Ui.DxPanoramaInterop.GetSelectedIndex(dxTarget).Result : selectedIndex; + get => isInitialized ? (float?)DevExpress.Ui.DxPanoramaInterop.GetSelectedIndex(dxTarget).Result : selectedIndex; set { if (isInitialized) { DevExpress.Ui.DxPanoramaInterop.SetSelectedIndex(dxTarget, value); @@ -58,7 +88,7 @@ return DevExpress.Ui.DxPanoramaInterop.Init(dxTarget, options); string title; [Parameter] string Title { - get => isInitialized ? DevExpress.Ui.DxPanoramaInterop.GetTitle(dxTarget).Result : title; + get => isInitialized ? (string)DevExpress.Ui.DxPanoramaInterop.GetTitle(dxTarget).Result : title; set { if (isInitialized) { DevExpress.Ui.DxPanoramaInterop.SetTitle(dxTarget, value); @@ -67,9 +97,396 @@ return DevExpress.Ui.DxPanoramaInterop.Init(dxTarget, options); } } } + object dataSource; + [Parameter] + object DataSource { + get => isInitialized ? DevExpress.Ui.DxPanoramaInterop.GetDataSource(dxTarget).Result : dataSource; + set { + if (isInitialized) { + DevExpress.Ui.DxPanoramaInterop.SetDataSource(dxTarget, value); + } else { + this.dataSource = value; + } + } + } + float? itemHoldTimeout; + [Parameter] + float? ItemHoldTimeout { + get => isInitialized ? (float?)DevExpress.Ui.DxPanoramaInterop.GetItemHoldTimeout(dxTarget).Result : itemHoldTimeout; + set { + if (isInitialized) { + DevExpress.Ui.DxPanoramaInterop.SetItemHoldTimeout(dxTarget, value); + } else { + this.itemHoldTimeout = value; + } + } + } + object items; + [Parameter] + object Items { + get => isInitialized ? DevExpress.Ui.DxPanoramaInterop.GetItems(dxTarget).Result : items; + set { + if (isInitialized) { + DevExpress.Ui.DxPanoramaInterop.SetItems(dxTarget, value); + } else { + this.items = value; + } + } + } + object itemTemplate; + [Parameter] + object ItemTemplate { + get => isInitialized ? DevExpress.Ui.DxPanoramaInterop.GetItemTemplate(dxTarget).Result : itemTemplate; + set { + if (isInitialized) { + DevExpress.Ui.DxPanoramaInterop.SetItemTemplate(dxTarget, value); + } else { + this.itemTemplate = value; + } + } + } + object keyExpr; + [Parameter] + object KeyExpr { + get => isInitialized ? DevExpress.Ui.DxPanoramaInterop.GetKeyExpr(dxTarget).Result : keyExpr; + set { + if (isInitialized) { + DevExpress.Ui.DxPanoramaInterop.SetKeyExpr(dxTarget, value); + } else { + this.keyExpr = value; + } + } + } + string noDataText; + [Parameter] + string NoDataText { + get => isInitialized ? (string)DevExpress.Ui.DxPanoramaInterop.GetNoDataText(dxTarget).Result : noDataText; + set { + if (isInitialized) { + DevExpress.Ui.DxPanoramaInterop.SetNoDataText(dxTarget, value); + } else { + this.noDataText = value; + } + } + } + object selectedItem; + [Parameter] + object SelectedItem { + get => isInitialized ? DevExpress.Ui.DxPanoramaInterop.GetSelectedItem(dxTarget).Result : selectedItem; + set { + if (isInitialized) { + DevExpress.Ui.DxPanoramaInterop.SetSelectedItem(dxTarget, value); + } else { + this.selectedItem = value; + } + } + } + object selectedItemKeys; + [Parameter] + object SelectedItemKeys { + get => isInitialized ? DevExpress.Ui.DxPanoramaInterop.GetSelectedItemKeys(dxTarget).Result : selectedItemKeys; + set { + if (isInitialized) { + DevExpress.Ui.DxPanoramaInterop.SetSelectedItemKeys(dxTarget, value); + } else { + this.selectedItemKeys = value; + } + } + } + object selectedItems; + [Parameter] + object SelectedItems { + get => isInitialized ? DevExpress.Ui.DxPanoramaInterop.GetSelectedItems(dxTarget).Result : selectedItems; + set { + if (isInitialized) { + DevExpress.Ui.DxPanoramaInterop.SetSelectedItems(dxTarget, value); + } else { + this.selectedItems = value; + } + } + } + string accessKey; + [Parameter] + string AccessKey { + get => isInitialized ? (string)DevExpress.Ui.DxPanoramaInterop.GetAccessKey(dxTarget).Result : accessKey; + set { + if (isInitialized) { + DevExpress.Ui.DxPanoramaInterop.SetAccessKey(dxTarget, value); + } else { + this.accessKey = value; + } + } + } + bool? activeStateEnabled; + [Parameter] + bool? ActiveStateEnabled { + get => isInitialized ? (bool?)DevExpress.Ui.DxPanoramaInterop.GetActiveStateEnabled(dxTarget).Result : activeStateEnabled; + set { + if (isInitialized) { + DevExpress.Ui.DxPanoramaInterop.SetActiveStateEnabled(dxTarget, value); + } else { + this.activeStateEnabled = value; + } + } + } + bool? disabled; + [Parameter] + bool? Disabled { + get => isInitialized ? (bool?)DevExpress.Ui.DxPanoramaInterop.GetDisabled(dxTarget).Result : disabled; + set { + if (isInitialized) { + DevExpress.Ui.DxPanoramaInterop.SetDisabled(dxTarget, value); + } else { + this.disabled = value; + } + } + } + string hint; + [Parameter] + string Hint { + get => isInitialized ? (string)DevExpress.Ui.DxPanoramaInterop.GetHint(dxTarget).Result : hint; + set { + if (isInitialized) { + DevExpress.Ui.DxPanoramaInterop.SetHint(dxTarget, value); + } else { + this.hint = value; + } + } + } + bool? hoverStateEnabled; + [Parameter] + bool? HoverStateEnabled { + get => isInitialized ? (bool?)DevExpress.Ui.DxPanoramaInterop.GetHoverStateEnabled(dxTarget).Result : hoverStateEnabled; + set { + if (isInitialized) { + DevExpress.Ui.DxPanoramaInterop.SetHoverStateEnabled(dxTarget, value); + } else { + this.hoverStateEnabled = value; + } + } + } + float? tabIndex; + [Parameter] + float? TabIndex { + get => isInitialized ? (float?)DevExpress.Ui.DxPanoramaInterop.GetTabIndex(dxTarget).Result : tabIndex; + set { + if (isInitialized) { + DevExpress.Ui.DxPanoramaInterop.SetTabIndex(dxTarget, value); + } else { + this.tabIndex = value; + } + } + } + bool? visible; + [Parameter] + bool? Visible { + get => isInitialized ? (bool?)DevExpress.Ui.DxPanoramaInterop.GetVisible(dxTarget).Result : visible; + set { + if (isInitialized) { + DevExpress.Ui.DxPanoramaInterop.SetVisible(dxTarget, value); + } else { + this.visible = value; + } + } + } + object bindingOptions; + [Parameter] + object BindingOptions { + get => isInitialized ? DevExpress.Ui.DxPanoramaInterop.GetBindingOptions(dxTarget).Result : bindingOptions; + set { + if (isInitialized) { + DevExpress.Ui.DxPanoramaInterop.SetBindingOptions(dxTarget, value); + } else { + this.bindingOptions = value; + } + } + } + object elementAttr; + [Parameter] + object ElementAttr { + get => isInitialized ? DevExpress.Ui.DxPanoramaInterop.GetElementAttr(dxTarget).Result : elementAttr; + set { + if (isInitialized) { + DevExpress.Ui.DxPanoramaInterop.SetElementAttr(dxTarget, value); + } else { + this.elementAttr = value; + } + } + } + object height; + [Parameter] + object Height { + get => isInitialized ? DevExpress.Ui.DxPanoramaInterop.GetHeight(dxTarget).Result : height; + set { + if (isInitialized) { + DevExpress.Ui.DxPanoramaInterop.SetHeight(dxTarget, value); + } else { + this.height = value; + } + } + } + bool? rtlEnabled; + [Parameter] + bool? RtlEnabled { + get => isInitialized ? (bool?)DevExpress.Ui.DxPanoramaInterop.GetRtlEnabled(dxTarget).Result : rtlEnabled; + set { + if (isInitialized) { + DevExpress.Ui.DxPanoramaInterop.SetRtlEnabled(dxTarget, value); + } else { + this.rtlEnabled = value; + } + } + } + object width; + [Parameter] + object Width { + get => isInitialized ? DevExpress.Ui.DxPanoramaInterop.GetWidth(dxTarget).Result : width; + set { + if (isInitialized) { + DevExpress.Ui.DxPanoramaInterop.SetWidth(dxTarget, value); + } else { + this.width = value; + } + } + } + bool? onItemClickEnabled; + [Parameter] + bool? OnItemClickEnabled { + get => onItemClickEnabled; + set => this.onItemClickEnabled = value; + } + bool? onItemContextMenuEnabled; + [Parameter] + bool? OnItemContextMenuEnabled { + get => onItemContextMenuEnabled; + set => this.onItemContextMenuEnabled = value; + } + bool? onItemHoldEnabled; + [Parameter] + bool? OnItemHoldEnabled { + get => onItemHoldEnabled; + set => this.onItemHoldEnabled = value; + } + bool? onItemRenderedEnabled; + [Parameter] + bool? OnItemRenderedEnabled { + get => onItemRenderedEnabled; + set => this.onItemRenderedEnabled = value; + } + bool? onSelectionChangedEnabled; + [Parameter] + bool? OnSelectionChangedEnabled { + get => onSelectionChangedEnabled; + set => this.onSelectionChangedEnabled = value; + } + bool? onContentReadyEnabled; + [Parameter] + bool? OnContentReadyEnabled { + get => onContentReadyEnabled; + set => this.onContentReadyEnabled = value; + } + bool? onDisposingEnabled; + [Parameter] + bool? OnDisposingEnabled { + get => onDisposingEnabled; + set => this.onDisposingEnabled = value; + } + bool? onOptionChangedEnabled; + [Parameter] + bool? OnOptionChangedEnabled { + get => onOptionChangedEnabled; + set => this.onOptionChangedEnabled = value; + } + bool? onInitializedEnabled; + [Parameter] + bool? OnInitializedEnabled { + get => onInitializedEnabled; + set => this.onInitializedEnabled = value; + } protected override async Task OnInitAsync() { await base.OnInitAsync(); + DevExpress.Ui.DxPanoramaInterop.ItemClick += DxPanorama_ItemClick; + DevExpress.Ui.DxPanoramaInterop.ItemContextMenu += DxPanorama_ItemContextMenu; + DevExpress.Ui.DxPanoramaInterop.ItemHold += DxPanorama_ItemHold; + DevExpress.Ui.DxPanoramaInterop.ItemRendered += DxPanorama_ItemRendered; + DevExpress.Ui.DxPanoramaInterop.SelectionChanged += DxPanorama_SelectionChanged; + DevExpress.Ui.DxPanoramaInterop.ContentReady += DxPanorama_ContentReady; + DevExpress.Ui.DxPanoramaInterop.Disposing += DxPanorama_Disposing; + DevExpress.Ui.DxPanoramaInterop.OptionChanged += DxPanorama_OptionChanged; + DevExpress.Ui.DxPanoramaInterop.Initialized += DxPanorama_Initialized; + } + [Parameter] + Action ItemClick { get; set; } + void DxPanorama_ItemClick(object sender, JQueryEventArgs e) { + if (e.Identifier == Id) { + ItemClick?.Invoke(); + } + } + [Parameter] + Action ItemContextMenu { get; set; } + void DxPanorama_ItemContextMenu(object sender, JQueryEventArgs e) { + if (e.Identifier == Id) { + ItemContextMenu?.Invoke(); + } + } + [Parameter] + Action ItemHold { get; set; } + void DxPanorama_ItemHold(object sender, JQueryEventArgs e) { + if (e.Identifier == Id) { + ItemHold?.Invoke(); + } + } + [Parameter] + Action ItemRendered { get; set; } + void DxPanorama_ItemRendered(object sender, JQueryEventArgs e) { + if (e.Identifier == Id) { + ItemRendered?.Invoke(); + } + } + [Parameter] + Action SelectionChanged { get; set; } + void DxPanorama_SelectionChanged(object sender, JQueryEventArgs e) { + if (e.Identifier == Id) { + SelectionChanged?.Invoke(); + } + } + [Parameter] + Action ContentReady { get; set; } + void DxPanorama_ContentReady(object sender, JQueryEventArgs e) { + if (e.Identifier == Id) { + ContentReady?.Invoke(); + } + } + [Parameter] + Action Disposing { get; set; } + void DxPanorama_Disposing(object sender, JQueryEventArgs e) { + if (e.Identifier == Id) { + Disposing?.Invoke(); + } + } + [Parameter] + Action OptionChanged { get; set; } + void DxPanorama_OptionChanged(object sender, JQueryEventArgs e) { + if (e.Identifier == Id) { + OptionChanged?.Invoke(); + } + } + [Parameter] + Action Initialized { get; set; } + void DxPanorama_Initialized(object sender, JQueryEventArgs e) { + if (e.Identifier == Id) { + Initialized?.Invoke(); + } } public void Dispose() { + DevExpress.Ui.DxPanoramaInterop.ItemClick -= DxPanorama_ItemClick; + DevExpress.Ui.DxPanoramaInterop.ItemContextMenu -= DxPanorama_ItemContextMenu; + DevExpress.Ui.DxPanoramaInterop.ItemHold -= DxPanorama_ItemHold; + DevExpress.Ui.DxPanoramaInterop.ItemRendered -= DxPanorama_ItemRendered; + DevExpress.Ui.DxPanoramaInterop.SelectionChanged -= DxPanorama_SelectionChanged; + DevExpress.Ui.DxPanoramaInterop.ContentReady -= DxPanorama_ContentReady; + DevExpress.Ui.DxPanoramaInterop.Disposing -= DxPanorama_Disposing; + DevExpress.Ui.DxPanoramaInterop.OptionChanged -= DxPanorama_OptionChanged; + DevExpress.Ui.DxPanoramaInterop.Initialized -= DxPanorama_Initialized; } } diff --git a/sources/BlazorDevExtreme/Components/DxPieChart.cshtml b/sources/BlazorDevExtreme/Components/DxPieChart.cshtml index 5012f41..85edd64 100644 --- a/sources/BlazorDevExtreme/Components/DxPieChart.cshtml +++ b/sources/BlazorDevExtreme/Components/DxPieChart.cshtml @@ -24,11 +24,45 @@ sizeGroup = sizeGroup, startAngle = startAngle, type = type, + animation = animation, + customizeLabel = customizeLabel, + customizePoint = customizePoint, + dataSource = dataSource, + paletteExtensionMode = paletteExtensionMode, + pointSelectionMode = pointSelectionMode, + tooltip = tooltip, + export = export, + loadingIndicator = loadingIndicator, + margin = margin, + pathModified = pathModified, + redrawOnResize = redrawOnResize, + rtlEnabled = rtlEnabled, + size = size, + theme = theme, + title = title, + bindingOptions = bindingOptions, + elementAttr = elementAttr, + height = height, + width = width, onLegendClickEnabled = onLegendClickEnabled, + onDoneEnabled = onDoneEnabled, + onPointClickEnabled = onPointClickEnabled, + onPointHoverChangedEnabled = onPointHoverChangedEnabled, + onPointSelectionChangedEnabled = onPointSelectionChangedEnabled, + onTooltipHiddenEnabled = onTooltipHiddenEnabled, + onTooltipShownEnabled = onTooltipShownEnabled, + onDrawnEnabled = onDrawnEnabled, + onExportedEnabled = onExportedEnabled, + onExportingEnabled = onExportingEnabled, + onFileSavingEnabled = onFileSavingEnabled, + onIncidentOccurredEnabled = onIncidentOccurredEnabled, + onDisposingEnabled = onDisposingEnabled, + onOptionChangedEnabled = onOptionChangedEnabled, + onInitializedEnabled = onInitializedEnabled, }; } protected override Task Init(DevExpress.Viz.Charts.DxPieChartOptions options) { -return DevExpress.Viz.DxPieChartInterop.Init(dxTarget, options); + return DevExpress.Viz.DxPieChartInterop.Init(dxTarget, options); } object adaptiveLayout; [Parameter] @@ -57,7 +91,7 @@ return DevExpress.Viz.DxPieChartInterop.Init(dxTarget, options); float? diameter; [Parameter] float? Diameter { - get => isInitialized ? DevExpress.Viz.DxPieChartInterop.GetDiameter(dxTarget).Result : diameter; + get => isInitialized ? (float?)DevExpress.Viz.DxPieChartInterop.GetDiameter(dxTarget).Result : diameter; set { if (isInitialized) { DevExpress.Viz.DxPieChartInterop.SetDiameter(dxTarget, value); @@ -69,7 +103,7 @@ return DevExpress.Viz.DxPieChartInterop.Init(dxTarget, options); float? innerRadius; [Parameter] float? InnerRadius { - get => isInitialized ? DevExpress.Viz.DxPieChartInterop.GetInnerRadius(dxTarget).Result : innerRadius; + get => isInitialized ? (float?)DevExpress.Viz.DxPieChartInterop.GetInnerRadius(dxTarget).Result : innerRadius; set { if (isInitialized) { DevExpress.Viz.DxPieChartInterop.SetInnerRadius(dxTarget, value); @@ -93,7 +127,7 @@ return DevExpress.Viz.DxPieChartInterop.Init(dxTarget, options); float? minDiameter; [Parameter] float? MinDiameter { - get => isInitialized ? DevExpress.Viz.DxPieChartInterop.GetMinDiameter(dxTarget).Result : minDiameter; + get => isInitialized ? (float?)DevExpress.Viz.DxPieChartInterop.GetMinDiameter(dxTarget).Result : minDiameter; set { if (isInitialized) { DevExpress.Viz.DxPieChartInterop.SetMinDiameter(dxTarget, value); @@ -117,7 +151,7 @@ return DevExpress.Viz.DxPieChartInterop.Init(dxTarget, options); string resolveLabelOverlapping; [Parameter] string ResolveLabelOverlapping { - get => isInitialized ? DevExpress.Viz.DxPieChartInterop.GetResolveLabelOverlapping(dxTarget).Result : resolveLabelOverlapping; + get => isInitialized ? (string)DevExpress.Viz.DxPieChartInterop.GetResolveLabelOverlapping(dxTarget).Result : resolveLabelOverlapping; set { if (isInitialized) { DevExpress.Viz.DxPieChartInterop.SetResolveLabelOverlapping(dxTarget, value); @@ -129,7 +163,7 @@ return DevExpress.Viz.DxPieChartInterop.Init(dxTarget, options); string segmentsDirection; [Parameter] string SegmentsDirection { - get => isInitialized ? DevExpress.Viz.DxPieChartInterop.GetSegmentsDirection(dxTarget).Result : segmentsDirection; + get => isInitialized ? (string)DevExpress.Viz.DxPieChartInterop.GetSegmentsDirection(dxTarget).Result : segmentsDirection; set { if (isInitialized) { DevExpress.Viz.DxPieChartInterop.SetSegmentsDirection(dxTarget, value); @@ -165,7 +199,7 @@ return DevExpress.Viz.DxPieChartInterop.Init(dxTarget, options); string sizeGroup; [Parameter] string SizeGroup { - get => isInitialized ? DevExpress.Viz.DxPieChartInterop.GetSizeGroup(dxTarget).Result : sizeGroup; + get => isInitialized ? (string)DevExpress.Viz.DxPieChartInterop.GetSizeGroup(dxTarget).Result : sizeGroup; set { if (isInitialized) { DevExpress.Viz.DxPieChartInterop.SetSizeGroup(dxTarget, value); @@ -177,7 +211,7 @@ return DevExpress.Viz.DxPieChartInterop.Init(dxTarget, options); float? startAngle; [Parameter] float? StartAngle { - get => isInitialized ? DevExpress.Viz.DxPieChartInterop.GetStartAngle(dxTarget).Result : startAngle; + get => isInitialized ? (float?)DevExpress.Viz.DxPieChartInterop.GetStartAngle(dxTarget).Result : startAngle; set { if (isInitialized) { DevExpress.Viz.DxPieChartInterop.SetStartAngle(dxTarget, value); @@ -189,7 +223,7 @@ return DevExpress.Viz.DxPieChartInterop.Init(dxTarget, options); string type; [Parameter] string Type { - get => isInitialized ? DevExpress.Viz.DxPieChartInterop.GetType(dxTarget).Result : type; + get => isInitialized ? (string)DevExpress.Viz.DxPieChartInterop.GetType(dxTarget).Result : type; set { if (isInitialized) { DevExpress.Viz.DxPieChartInterop.SetType(dxTarget, value); @@ -198,15 +232,353 @@ return DevExpress.Viz.DxPieChartInterop.Init(dxTarget, options); } } } + object animation; + [Parameter] + object Animation { + get => isInitialized ? DevExpress.Viz.DxPieChartInterop.GetAnimation(dxTarget).Result : animation; + set { + if (isInitialized) { + DevExpress.Viz.DxPieChartInterop.SetAnimation(dxTarget, value); + } else { + this.animation = value; + } + } + } + object customizeLabel; + [Parameter] + object CustomizeLabel { + get => isInitialized ? DevExpress.Viz.DxPieChartInterop.GetCustomizeLabel(dxTarget).Result : customizeLabel; + set { + if (isInitialized) { + DevExpress.Viz.DxPieChartInterop.SetCustomizeLabel(dxTarget, value); + } else { + this.customizeLabel = value; + } + } + } + object customizePoint; + [Parameter] + object CustomizePoint { + get => isInitialized ? DevExpress.Viz.DxPieChartInterop.GetCustomizePoint(dxTarget).Result : customizePoint; + set { + if (isInitialized) { + DevExpress.Viz.DxPieChartInterop.SetCustomizePoint(dxTarget, value); + } else { + this.customizePoint = value; + } + } + } + object dataSource; + [Parameter] + object DataSource { + get => isInitialized ? DevExpress.Viz.DxPieChartInterop.GetDataSource(dxTarget).Result : dataSource; + set { + if (isInitialized) { + DevExpress.Viz.DxPieChartInterop.SetDataSource(dxTarget, value); + } else { + this.dataSource = value; + } + } + } + string paletteExtensionMode; + [Parameter] + string PaletteExtensionMode { + get => isInitialized ? (string)DevExpress.Viz.DxPieChartInterop.GetPaletteExtensionMode(dxTarget).Result : paletteExtensionMode; + set { + if (isInitialized) { + DevExpress.Viz.DxPieChartInterop.SetPaletteExtensionMode(dxTarget, value); + } else { + this.paletteExtensionMode = value; + } + } + } + string pointSelectionMode; + [Parameter] + string PointSelectionMode { + get => isInitialized ? (string)DevExpress.Viz.DxPieChartInterop.GetPointSelectionMode(dxTarget).Result : pointSelectionMode; + set { + if (isInitialized) { + DevExpress.Viz.DxPieChartInterop.SetPointSelectionMode(dxTarget, value); + } else { + this.pointSelectionMode = value; + } + } + } + object tooltip; + [Parameter] + object Tooltip { + get => isInitialized ? DevExpress.Viz.DxPieChartInterop.GetTooltip(dxTarget).Result : tooltip; + set { + if (isInitialized) { + DevExpress.Viz.DxPieChartInterop.SetTooltip(dxTarget, value); + } else { + this.tooltip = value; + } + } + } + object export; + [Parameter] + object Export { + get => isInitialized ? DevExpress.Viz.DxPieChartInterop.GetExport(dxTarget).Result : export; + set { + if (isInitialized) { + DevExpress.Viz.DxPieChartInterop.SetExport(dxTarget, value); + } else { + this.export = value; + } + } + } + object loadingIndicator; + [Parameter] + object LoadingIndicator { + get => isInitialized ? DevExpress.Viz.DxPieChartInterop.GetLoadingIndicator(dxTarget).Result : loadingIndicator; + set { + if (isInitialized) { + DevExpress.Viz.DxPieChartInterop.SetLoadingIndicator(dxTarget, value); + } else { + this.loadingIndicator = value; + } + } + } + object margin; + [Parameter] + object Margin { + get => isInitialized ? DevExpress.Viz.DxPieChartInterop.GetMargin(dxTarget).Result : margin; + set { + if (isInitialized) { + DevExpress.Viz.DxPieChartInterop.SetMargin(dxTarget, value); + } else { + this.margin = value; + } + } + } + bool? pathModified; + [Parameter] + bool? PathModified { + get => isInitialized ? (bool?)DevExpress.Viz.DxPieChartInterop.GetPathModified(dxTarget).Result : pathModified; + set { + if (isInitialized) { + DevExpress.Viz.DxPieChartInterop.SetPathModified(dxTarget, value); + } else { + this.pathModified = value; + } + } + } + bool? redrawOnResize; + [Parameter] + bool? RedrawOnResize { + get => isInitialized ? (bool?)DevExpress.Viz.DxPieChartInterop.GetRedrawOnResize(dxTarget).Result : redrawOnResize; + set { + if (isInitialized) { + DevExpress.Viz.DxPieChartInterop.SetRedrawOnResize(dxTarget, value); + } else { + this.redrawOnResize = value; + } + } + } + bool? rtlEnabled; + [Parameter] + bool? RtlEnabled { + get => isInitialized ? (bool?)DevExpress.Viz.DxPieChartInterop.GetRtlEnabled(dxTarget).Result : rtlEnabled; + set { + if (isInitialized) { + DevExpress.Viz.DxPieChartInterop.SetRtlEnabled(dxTarget, value); + } else { + this.rtlEnabled = value; + } + } + } + object size; + [Parameter] + object Size { + get => isInitialized ? DevExpress.Viz.DxPieChartInterop.GetSize(dxTarget).Result : size; + set { + if (isInitialized) { + DevExpress.Viz.DxPieChartInterop.SetSize(dxTarget, value); + } else { + this.size = value; + } + } + } + string theme; + [Parameter] + string Theme { + get => isInitialized ? (string)DevExpress.Viz.DxPieChartInterop.GetTheme(dxTarget).Result : theme; + set { + if (isInitialized) { + DevExpress.Viz.DxPieChartInterop.SetTheme(dxTarget, value); + } else { + this.theme = value; + } + } + } + object title; + [Parameter] + object Title { + get => isInitialized ? DevExpress.Viz.DxPieChartInterop.GetTitle(dxTarget).Result : title; + set { + if (isInitialized) { + DevExpress.Viz.DxPieChartInterop.SetTitle(dxTarget, value); + } else { + this.title = value; + } + } + } + object bindingOptions; + [Parameter] + object BindingOptions { + get => isInitialized ? DevExpress.Viz.DxPieChartInterop.GetBindingOptions(dxTarget).Result : bindingOptions; + set { + if (isInitialized) { + DevExpress.Viz.DxPieChartInterop.SetBindingOptions(dxTarget, value); + } else { + this.bindingOptions = value; + } + } + } + object elementAttr; + [Parameter] + object ElementAttr { + get => isInitialized ? DevExpress.Viz.DxPieChartInterop.GetElementAttr(dxTarget).Result : elementAttr; + set { + if (isInitialized) { + DevExpress.Viz.DxPieChartInterop.SetElementAttr(dxTarget, value); + } else { + this.elementAttr = value; + } + } + } + object height; + [Parameter] + object Height { + get => isInitialized ? DevExpress.Viz.DxPieChartInterop.GetHeight(dxTarget).Result : height; + set { + if (isInitialized) { + DevExpress.Viz.DxPieChartInterop.SetHeight(dxTarget, value); + } else { + this.height = value; + } + } + } + object width; + [Parameter] + object Width { + get => isInitialized ? DevExpress.Viz.DxPieChartInterop.GetWidth(dxTarget).Result : width; + set { + if (isInitialized) { + DevExpress.Viz.DxPieChartInterop.SetWidth(dxTarget, value); + } else { + this.width = value; + } + } + } bool? onLegendClickEnabled; [Parameter] bool? OnLegendClickEnabled { get => onLegendClickEnabled; set => this.onLegendClickEnabled = value; } + bool? onDoneEnabled; + [Parameter] + bool? OnDoneEnabled { + get => onDoneEnabled; + set => this.onDoneEnabled = value; + } + bool? onPointClickEnabled; + [Parameter] + bool? OnPointClickEnabled { + get => onPointClickEnabled; + set => this.onPointClickEnabled = value; + } + bool? onPointHoverChangedEnabled; + [Parameter] + bool? OnPointHoverChangedEnabled { + get => onPointHoverChangedEnabled; + set => this.onPointHoverChangedEnabled = value; + } + bool? onPointSelectionChangedEnabled; + [Parameter] + bool? OnPointSelectionChangedEnabled { + get => onPointSelectionChangedEnabled; + set => this.onPointSelectionChangedEnabled = value; + } + bool? onTooltipHiddenEnabled; + [Parameter] + bool? OnTooltipHiddenEnabled { + get => onTooltipHiddenEnabled; + set => this.onTooltipHiddenEnabled = value; + } + bool? onTooltipShownEnabled; + [Parameter] + bool? OnTooltipShownEnabled { + get => onTooltipShownEnabled; + set => this.onTooltipShownEnabled = value; + } + bool? onDrawnEnabled; + [Parameter] + bool? OnDrawnEnabled { + get => onDrawnEnabled; + set => this.onDrawnEnabled = value; + } + bool? onExportedEnabled; + [Parameter] + bool? OnExportedEnabled { + get => onExportedEnabled; + set => this.onExportedEnabled = value; + } + bool? onExportingEnabled; + [Parameter] + bool? OnExportingEnabled { + get => onExportingEnabled; + set => this.onExportingEnabled = value; + } + bool? onFileSavingEnabled; + [Parameter] + bool? OnFileSavingEnabled { + get => onFileSavingEnabled; + set => this.onFileSavingEnabled = value; + } + bool? onIncidentOccurredEnabled; + [Parameter] + bool? OnIncidentOccurredEnabled { + get => onIncidentOccurredEnabled; + set => this.onIncidentOccurredEnabled = value; + } + bool? onDisposingEnabled; + [Parameter] + bool? OnDisposingEnabled { + get => onDisposingEnabled; + set => this.onDisposingEnabled = value; + } + bool? onOptionChangedEnabled; + [Parameter] + bool? OnOptionChangedEnabled { + get => onOptionChangedEnabled; + set => this.onOptionChangedEnabled = value; + } + bool? onInitializedEnabled; + [Parameter] + bool? OnInitializedEnabled { + get => onInitializedEnabled; + set => this.onInitializedEnabled = value; + } protected override async Task OnInitAsync() { await base.OnInitAsync(); DevExpress.Viz.DxPieChartInterop.LegendClick += DxPieChart_LegendClick; + DevExpress.Viz.DxPieChartInterop.Done += DxPieChart_Done; + DevExpress.Viz.DxPieChartInterop.PointClick += DxPieChart_PointClick; + DevExpress.Viz.DxPieChartInterop.PointHoverChanged += DxPieChart_PointHoverChanged; + DevExpress.Viz.DxPieChartInterop.PointSelectionChanged += DxPieChart_PointSelectionChanged; + DevExpress.Viz.DxPieChartInterop.TooltipHidden += DxPieChart_TooltipHidden; + DevExpress.Viz.DxPieChartInterop.TooltipShown += DxPieChart_TooltipShown; + DevExpress.Viz.DxPieChartInterop.Drawn += DxPieChart_Drawn; + DevExpress.Viz.DxPieChartInterop.Exported += DxPieChart_Exported; + DevExpress.Viz.DxPieChartInterop.Exporting += DxPieChart_Exporting; + DevExpress.Viz.DxPieChartInterop.FileSaving += DxPieChart_FileSaving; + DevExpress.Viz.DxPieChartInterop.IncidentOccurred += DxPieChart_IncidentOccurred; + DevExpress.Viz.DxPieChartInterop.Disposing += DxPieChart_Disposing; + DevExpress.Viz.DxPieChartInterop.OptionChanged += DxPieChart_OptionChanged; + DevExpress.Viz.DxPieChartInterop.Initialized += DxPieChart_Initialized; } [Parameter] Action LegendClick { get; set; } @@ -215,6 +587,104 @@ return DevExpress.Viz.DxPieChartInterop.Init(dxTarget, options); LegendClick?.Invoke(); } } + [Parameter] + Action Done { get; set; } + void DxPieChart_Done(object sender, JQueryEventArgs e) { + if (e.Identifier == Id) { + Done?.Invoke(); + } + } + [Parameter] + Action PointClick { get; set; } + void DxPieChart_PointClick(object sender, JQueryEventArgs e) { + if (e.Identifier == Id) { + PointClick?.Invoke(); + } + } + [Parameter] + Action PointHoverChanged { get; set; } + void DxPieChart_PointHoverChanged(object sender, JQueryEventArgs e) { + if (e.Identifier == Id) { + PointHoverChanged?.Invoke(); + } + } + [Parameter] + Action PointSelectionChanged { get; set; } + void DxPieChart_PointSelectionChanged(object sender, JQueryEventArgs e) { + if (e.Identifier == Id) { + PointSelectionChanged?.Invoke(); + } + } + [Parameter] + Action TooltipHidden { get; set; } + void DxPieChart_TooltipHidden(object sender, JQueryEventArgs e) { + if (e.Identifier == Id) { + TooltipHidden?.Invoke(); + } + } + [Parameter] + Action TooltipShown { get; set; } + void DxPieChart_TooltipShown(object sender, JQueryEventArgs e) { + if (e.Identifier == Id) { + TooltipShown?.Invoke(); + } + } + [Parameter] + Action Drawn { get; set; } + void DxPieChart_Drawn(object sender, JQueryEventArgs e) { + if (e.Identifier == Id) { + Drawn?.Invoke(); + } + } + [Parameter] + Action Exported { get; set; } + void DxPieChart_Exported(object sender, JQueryEventArgs e) { + if (e.Identifier == Id) { + Exported?.Invoke(); + } + } + [Parameter] + Action Exporting { get; set; } + void DxPieChart_Exporting(object sender, JQueryEventArgs e) { + if (e.Identifier == Id) { + Exporting?.Invoke(); + } + } + [Parameter] + Action FileSaving { get; set; } + void DxPieChart_FileSaving(object sender, JQueryEventArgs e) { + if (e.Identifier == Id) { + FileSaving?.Invoke(); + } + } + [Parameter] + Action IncidentOccurred { get; set; } + void DxPieChart_IncidentOccurred(object sender, JQueryEventArgs e) { + if (e.Identifier == Id) { + IncidentOccurred?.Invoke(); + } + } + [Parameter] + Action Disposing { get; set; } + void DxPieChart_Disposing(object sender, JQueryEventArgs e) { + if (e.Identifier == Id) { + Disposing?.Invoke(); + } + } + [Parameter] + Action OptionChanged { get; set; } + void DxPieChart_OptionChanged(object sender, JQueryEventArgs e) { + if (e.Identifier == Id) { + OptionChanged?.Invoke(); + } + } + [Parameter] + Action Initialized { get; set; } + void DxPieChart_Initialized(object sender, JQueryEventArgs e) { + if (e.Identifier == Id) { + Initialized?.Invoke(); + } + } public object GetSeriesEx() { return DevExpress.Viz.DxPieChartInterop.GetSeriesEx(dxTarget).Result; } @@ -226,5 +696,19 @@ return DevExpress.Viz.DxPieChartInterop.Init(dxTarget, options); } public void Dispose() { DevExpress.Viz.DxPieChartInterop.LegendClick -= DxPieChart_LegendClick; + DevExpress.Viz.DxPieChartInterop.Done -= DxPieChart_Done; + DevExpress.Viz.DxPieChartInterop.PointClick -= DxPieChart_PointClick; + DevExpress.Viz.DxPieChartInterop.PointHoverChanged -= DxPieChart_PointHoverChanged; + DevExpress.Viz.DxPieChartInterop.PointSelectionChanged -= DxPieChart_PointSelectionChanged; + DevExpress.Viz.DxPieChartInterop.TooltipHidden -= DxPieChart_TooltipHidden; + DevExpress.Viz.DxPieChartInterop.TooltipShown -= DxPieChart_TooltipShown; + DevExpress.Viz.DxPieChartInterop.Drawn -= DxPieChart_Drawn; + DevExpress.Viz.DxPieChartInterop.Exported -= DxPieChart_Exported; + DevExpress.Viz.DxPieChartInterop.Exporting -= DxPieChart_Exporting; + DevExpress.Viz.DxPieChartInterop.FileSaving -= DxPieChart_FileSaving; + DevExpress.Viz.DxPieChartInterop.IncidentOccurred -= DxPieChart_IncidentOccurred; + DevExpress.Viz.DxPieChartInterop.Disposing -= DxPieChart_Disposing; + DevExpress.Viz.DxPieChartInterop.OptionChanged -= DxPieChart_OptionChanged; + DevExpress.Viz.DxPieChartInterop.Initialized -= DxPieChart_Initialized; } } diff --git a/sources/BlazorDevExtreme/Components/DxPivot.cshtml b/sources/BlazorDevExtreme/Components/DxPivot.cshtml index fe29ffb..67f4aa1 100644 --- a/sources/BlazorDevExtreme/Components/DxPivot.cshtml +++ b/sources/BlazorDevExtreme/Components/DxPivot.cshtml @@ -14,10 +14,41 @@ itemTitleTemplate = itemTitleTemplate, selectedIndex = selectedIndex, swipeEnabled = swipeEnabled, + dataSource = dataSource, + itemHoldTimeout = itemHoldTimeout, + items = items, + itemTemplate = itemTemplate, + keyExpr = keyExpr, + noDataText = noDataText, + selectedItem = selectedItem, + selectedItemKeys = selectedItemKeys, + selectedItems = selectedItems, + accessKey = accessKey, + activeStateEnabled = activeStateEnabled, + disabled = disabled, + focusStateEnabled = focusStateEnabled, + hint = hint, + hoverStateEnabled = hoverStateEnabled, + tabIndex = tabIndex, + visible = visible, + bindingOptions = bindingOptions, + elementAttr = elementAttr, + height = height, + rtlEnabled = rtlEnabled, + width = width, + onItemClickEnabled = onItemClickEnabled, + onItemContextMenuEnabled = onItemContextMenuEnabled, + onItemHoldEnabled = onItemHoldEnabled, + onItemRenderedEnabled = onItemRenderedEnabled, + onSelectionChangedEnabled = onSelectionChangedEnabled, + onContentReadyEnabled = onContentReadyEnabled, + onDisposingEnabled = onDisposingEnabled, + onOptionChangedEnabled = onOptionChangedEnabled, + onInitializedEnabled = onInitializedEnabled, }; } protected override Task Init(DevExpress.Ui.DxPivotOptions options) { -return DevExpress.Ui.DxPivotInterop.Init(dxTarget, options); + return DevExpress.Ui.DxPivotInterop.Init(dxTarget, options); } object contentTemplate; [Parameter] @@ -46,7 +77,7 @@ return DevExpress.Ui.DxPivotInterop.Init(dxTarget, options); float? selectedIndex; [Parameter] float? SelectedIndex { - get => isInitialized ? DevExpress.Ui.DxPivotInterop.GetSelectedIndex(dxTarget).Result : selectedIndex; + get => isInitialized ? (float?)DevExpress.Ui.DxPivotInterop.GetSelectedIndex(dxTarget).Result : selectedIndex; set { if (isInitialized) { DevExpress.Ui.DxPivotInterop.SetSelectedIndex(dxTarget, value); @@ -58,7 +89,7 @@ return DevExpress.Ui.DxPivotInterop.Init(dxTarget, options); bool? swipeEnabled; [Parameter] bool? SwipeEnabled { - get => isInitialized ? DevExpress.Ui.DxPivotInterop.GetSwipeEnabled(dxTarget).Result : swipeEnabled; + get => isInitialized ? (bool?)DevExpress.Ui.DxPivotInterop.GetSwipeEnabled(dxTarget).Result : swipeEnabled; set { if (isInitialized) { DevExpress.Ui.DxPivotInterop.SetSwipeEnabled(dxTarget, value); @@ -67,9 +98,408 @@ return DevExpress.Ui.DxPivotInterop.Init(dxTarget, options); } } } + object dataSource; + [Parameter] + object DataSource { + get => isInitialized ? DevExpress.Ui.DxPivotInterop.GetDataSource(dxTarget).Result : dataSource; + set { + if (isInitialized) { + DevExpress.Ui.DxPivotInterop.SetDataSource(dxTarget, value); + } else { + this.dataSource = value; + } + } + } + float? itemHoldTimeout; + [Parameter] + float? ItemHoldTimeout { + get => isInitialized ? (float?)DevExpress.Ui.DxPivotInterop.GetItemHoldTimeout(dxTarget).Result : itemHoldTimeout; + set { + if (isInitialized) { + DevExpress.Ui.DxPivotInterop.SetItemHoldTimeout(dxTarget, value); + } else { + this.itemHoldTimeout = value; + } + } + } + object items; + [Parameter] + object Items { + get => isInitialized ? DevExpress.Ui.DxPivotInterop.GetItems(dxTarget).Result : items; + set { + if (isInitialized) { + DevExpress.Ui.DxPivotInterop.SetItems(dxTarget, value); + } else { + this.items = value; + } + } + } + object itemTemplate; + [Parameter] + object ItemTemplate { + get => isInitialized ? DevExpress.Ui.DxPivotInterop.GetItemTemplate(dxTarget).Result : itemTemplate; + set { + if (isInitialized) { + DevExpress.Ui.DxPivotInterop.SetItemTemplate(dxTarget, value); + } else { + this.itemTemplate = value; + } + } + } + object keyExpr; + [Parameter] + object KeyExpr { + get => isInitialized ? DevExpress.Ui.DxPivotInterop.GetKeyExpr(dxTarget).Result : keyExpr; + set { + if (isInitialized) { + DevExpress.Ui.DxPivotInterop.SetKeyExpr(dxTarget, value); + } else { + this.keyExpr = value; + } + } + } + string noDataText; + [Parameter] + string NoDataText { + get => isInitialized ? (string)DevExpress.Ui.DxPivotInterop.GetNoDataText(dxTarget).Result : noDataText; + set { + if (isInitialized) { + DevExpress.Ui.DxPivotInterop.SetNoDataText(dxTarget, value); + } else { + this.noDataText = value; + } + } + } + object selectedItem; + [Parameter] + object SelectedItem { + get => isInitialized ? DevExpress.Ui.DxPivotInterop.GetSelectedItem(dxTarget).Result : selectedItem; + set { + if (isInitialized) { + DevExpress.Ui.DxPivotInterop.SetSelectedItem(dxTarget, value); + } else { + this.selectedItem = value; + } + } + } + object selectedItemKeys; + [Parameter] + object SelectedItemKeys { + get => isInitialized ? DevExpress.Ui.DxPivotInterop.GetSelectedItemKeys(dxTarget).Result : selectedItemKeys; + set { + if (isInitialized) { + DevExpress.Ui.DxPivotInterop.SetSelectedItemKeys(dxTarget, value); + } else { + this.selectedItemKeys = value; + } + } + } + object selectedItems; + [Parameter] + object SelectedItems { + get => isInitialized ? DevExpress.Ui.DxPivotInterop.GetSelectedItems(dxTarget).Result : selectedItems; + set { + if (isInitialized) { + DevExpress.Ui.DxPivotInterop.SetSelectedItems(dxTarget, value); + } else { + this.selectedItems = value; + } + } + } + string accessKey; + [Parameter] + string AccessKey { + get => isInitialized ? (string)DevExpress.Ui.DxPivotInterop.GetAccessKey(dxTarget).Result : accessKey; + set { + if (isInitialized) { + DevExpress.Ui.DxPivotInterop.SetAccessKey(dxTarget, value); + } else { + this.accessKey = value; + } + } + } + bool? activeStateEnabled; + [Parameter] + bool? ActiveStateEnabled { + get => isInitialized ? (bool?)DevExpress.Ui.DxPivotInterop.GetActiveStateEnabled(dxTarget).Result : activeStateEnabled; + set { + if (isInitialized) { + DevExpress.Ui.DxPivotInterop.SetActiveStateEnabled(dxTarget, value); + } else { + this.activeStateEnabled = value; + } + } + } + bool? disabled; + [Parameter] + bool? Disabled { + get => isInitialized ? (bool?)DevExpress.Ui.DxPivotInterop.GetDisabled(dxTarget).Result : disabled; + set { + if (isInitialized) { + DevExpress.Ui.DxPivotInterop.SetDisabled(dxTarget, value); + } else { + this.disabled = value; + } + } + } + bool? focusStateEnabled; + [Parameter] + bool? FocusStateEnabled { + get => isInitialized ? (bool?)DevExpress.Ui.DxPivotInterop.GetFocusStateEnabled(dxTarget).Result : focusStateEnabled; + set { + if (isInitialized) { + DevExpress.Ui.DxPivotInterop.SetFocusStateEnabled(dxTarget, value); + } else { + this.focusStateEnabled = value; + } + } + } + string hint; + [Parameter] + string Hint { + get => isInitialized ? (string)DevExpress.Ui.DxPivotInterop.GetHint(dxTarget).Result : hint; + set { + if (isInitialized) { + DevExpress.Ui.DxPivotInterop.SetHint(dxTarget, value); + } else { + this.hint = value; + } + } + } + bool? hoverStateEnabled; + [Parameter] + bool? HoverStateEnabled { + get => isInitialized ? (bool?)DevExpress.Ui.DxPivotInterop.GetHoverStateEnabled(dxTarget).Result : hoverStateEnabled; + set { + if (isInitialized) { + DevExpress.Ui.DxPivotInterop.SetHoverStateEnabled(dxTarget, value); + } else { + this.hoverStateEnabled = value; + } + } + } + float? tabIndex; + [Parameter] + float? TabIndex { + get => isInitialized ? (float?)DevExpress.Ui.DxPivotInterop.GetTabIndex(dxTarget).Result : tabIndex; + set { + if (isInitialized) { + DevExpress.Ui.DxPivotInterop.SetTabIndex(dxTarget, value); + } else { + this.tabIndex = value; + } + } + } + bool? visible; + [Parameter] + bool? Visible { + get => isInitialized ? (bool?)DevExpress.Ui.DxPivotInterop.GetVisible(dxTarget).Result : visible; + set { + if (isInitialized) { + DevExpress.Ui.DxPivotInterop.SetVisible(dxTarget, value); + } else { + this.visible = value; + } + } + } + object bindingOptions; + [Parameter] + object BindingOptions { + get => isInitialized ? DevExpress.Ui.DxPivotInterop.GetBindingOptions(dxTarget).Result : bindingOptions; + set { + if (isInitialized) { + DevExpress.Ui.DxPivotInterop.SetBindingOptions(dxTarget, value); + } else { + this.bindingOptions = value; + } + } + } + object elementAttr; + [Parameter] + object ElementAttr { + get => isInitialized ? DevExpress.Ui.DxPivotInterop.GetElementAttr(dxTarget).Result : elementAttr; + set { + if (isInitialized) { + DevExpress.Ui.DxPivotInterop.SetElementAttr(dxTarget, value); + } else { + this.elementAttr = value; + } + } + } + object height; + [Parameter] + object Height { + get => isInitialized ? DevExpress.Ui.DxPivotInterop.GetHeight(dxTarget).Result : height; + set { + if (isInitialized) { + DevExpress.Ui.DxPivotInterop.SetHeight(dxTarget, value); + } else { + this.height = value; + } + } + } + bool? rtlEnabled; + [Parameter] + bool? RtlEnabled { + get => isInitialized ? (bool?)DevExpress.Ui.DxPivotInterop.GetRtlEnabled(dxTarget).Result : rtlEnabled; + set { + if (isInitialized) { + DevExpress.Ui.DxPivotInterop.SetRtlEnabled(dxTarget, value); + } else { + this.rtlEnabled = value; + } + } + } + object width; + [Parameter] + object Width { + get => isInitialized ? DevExpress.Ui.DxPivotInterop.GetWidth(dxTarget).Result : width; + set { + if (isInitialized) { + DevExpress.Ui.DxPivotInterop.SetWidth(dxTarget, value); + } else { + this.width = value; + } + } + } + bool? onItemClickEnabled; + [Parameter] + bool? OnItemClickEnabled { + get => onItemClickEnabled; + set => this.onItemClickEnabled = value; + } + bool? onItemContextMenuEnabled; + [Parameter] + bool? OnItemContextMenuEnabled { + get => onItemContextMenuEnabled; + set => this.onItemContextMenuEnabled = value; + } + bool? onItemHoldEnabled; + [Parameter] + bool? OnItemHoldEnabled { + get => onItemHoldEnabled; + set => this.onItemHoldEnabled = value; + } + bool? onItemRenderedEnabled; + [Parameter] + bool? OnItemRenderedEnabled { + get => onItemRenderedEnabled; + set => this.onItemRenderedEnabled = value; + } + bool? onSelectionChangedEnabled; + [Parameter] + bool? OnSelectionChangedEnabled { + get => onSelectionChangedEnabled; + set => this.onSelectionChangedEnabled = value; + } + bool? onContentReadyEnabled; + [Parameter] + bool? OnContentReadyEnabled { + get => onContentReadyEnabled; + set => this.onContentReadyEnabled = value; + } + bool? onDisposingEnabled; + [Parameter] + bool? OnDisposingEnabled { + get => onDisposingEnabled; + set => this.onDisposingEnabled = value; + } + bool? onOptionChangedEnabled; + [Parameter] + bool? OnOptionChangedEnabled { + get => onOptionChangedEnabled; + set => this.onOptionChangedEnabled = value; + } + bool? onInitializedEnabled; + [Parameter] + bool? OnInitializedEnabled { + get => onInitializedEnabled; + set => this.onInitializedEnabled = value; + } protected override async Task OnInitAsync() { await base.OnInitAsync(); + DevExpress.Ui.DxPivotInterop.ItemClick += DxPivot_ItemClick; + DevExpress.Ui.DxPivotInterop.ItemContextMenu += DxPivot_ItemContextMenu; + DevExpress.Ui.DxPivotInterop.ItemHold += DxPivot_ItemHold; + DevExpress.Ui.DxPivotInterop.ItemRendered += DxPivot_ItemRendered; + DevExpress.Ui.DxPivotInterop.SelectionChanged += DxPivot_SelectionChanged; + DevExpress.Ui.DxPivotInterop.ContentReady += DxPivot_ContentReady; + DevExpress.Ui.DxPivotInterop.Disposing += DxPivot_Disposing; + DevExpress.Ui.DxPivotInterop.OptionChanged += DxPivot_OptionChanged; + DevExpress.Ui.DxPivotInterop.Initialized += DxPivot_Initialized; + } + [Parameter] + Action ItemClick { get; set; } + void DxPivot_ItemClick(object sender, JQueryEventArgs e) { + if (e.Identifier == Id) { + ItemClick?.Invoke(); + } + } + [Parameter] + Action ItemContextMenu { get; set; } + void DxPivot_ItemContextMenu(object sender, JQueryEventArgs e) { + if (e.Identifier == Id) { + ItemContextMenu?.Invoke(); + } + } + [Parameter] + Action ItemHold { get; set; } + void DxPivot_ItemHold(object sender, JQueryEventArgs e) { + if (e.Identifier == Id) { + ItemHold?.Invoke(); + } + } + [Parameter] + Action ItemRendered { get; set; } + void DxPivot_ItemRendered(object sender, JQueryEventArgs e) { + if (e.Identifier == Id) { + ItemRendered?.Invoke(); + } + } + [Parameter] + Action SelectionChanged { get; set; } + void DxPivot_SelectionChanged(object sender, JQueryEventArgs e) { + if (e.Identifier == Id) { + SelectionChanged?.Invoke(); + } + } + [Parameter] + Action ContentReady { get; set; } + void DxPivot_ContentReady(object sender, JQueryEventArgs e) { + if (e.Identifier == Id) { + ContentReady?.Invoke(); + } + } + [Parameter] + Action Disposing { get; set; } + void DxPivot_Disposing(object sender, JQueryEventArgs e) { + if (e.Identifier == Id) { + Disposing?.Invoke(); + } + } + [Parameter] + Action OptionChanged { get; set; } + void DxPivot_OptionChanged(object sender, JQueryEventArgs e) { + if (e.Identifier == Id) { + OptionChanged?.Invoke(); + } + } + [Parameter] + Action Initialized { get; set; } + void DxPivot_Initialized(object sender, JQueryEventArgs e) { + if (e.Identifier == Id) { + Initialized?.Invoke(); + } } public void Dispose() { + DevExpress.Ui.DxPivotInterop.ItemClick -= DxPivot_ItemClick; + DevExpress.Ui.DxPivotInterop.ItemContextMenu -= DxPivot_ItemContextMenu; + DevExpress.Ui.DxPivotInterop.ItemHold -= DxPivot_ItemHold; + DevExpress.Ui.DxPivotInterop.ItemRendered -= DxPivot_ItemRendered; + DevExpress.Ui.DxPivotInterop.SelectionChanged -= DxPivot_SelectionChanged; + DevExpress.Ui.DxPivotInterop.ContentReady -= DxPivot_ContentReady; + DevExpress.Ui.DxPivotInterop.Disposing -= DxPivot_Disposing; + DevExpress.Ui.DxPivotInterop.OptionChanged -= DxPivot_OptionChanged; + DevExpress.Ui.DxPivotInterop.Initialized -= DxPivot_Initialized; } } diff --git a/sources/BlazorDevExtreme/Components/DxPivotGrid.cshtml b/sources/BlazorDevExtreme/Components/DxPivotGrid.cshtml index aaa1b42..c8db5aa 100644 --- a/sources/BlazorDevExtreme/Components/DxPivotGrid.cshtml +++ b/sources/BlazorDevExtreme/Components/DxPivotGrid.cshtml @@ -33,21 +33,38 @@ stateStoring = stateStoring, texts = texts, wordWrapEnabled = wordWrapEnabled, + accessKey = accessKey, + activeStateEnabled = activeStateEnabled, + disabled = disabled, + focusStateEnabled = focusStateEnabled, + hint = hint, + hoverStateEnabled = hoverStateEnabled, + tabIndex = tabIndex, + visible = visible, + bindingOptions = bindingOptions, + elementAttr = elementAttr, + height = height, + rtlEnabled = rtlEnabled, + width = width, onCellClickEnabled = onCellClickEnabled, onCellPreparedEnabled = onCellPreparedEnabled, onContextMenuPreparingEnabled = onContextMenuPreparingEnabled, onExportedEnabled = onExportedEnabled, onExportingEnabled = onExportingEnabled, onFileSavingEnabled = onFileSavingEnabled, + onContentReadyEnabled = onContentReadyEnabled, + onDisposingEnabled = onDisposingEnabled, + onOptionChangedEnabled = onOptionChangedEnabled, + onInitializedEnabled = onInitializedEnabled, }; } protected override Task Init(DevExpress.Ui.DxPivotGridOptions options) { -return DevExpress.Ui.DxPivotGridInterop.Init(dxTarget, options); + return DevExpress.Ui.DxPivotGridInterop.Init(dxTarget, options); } bool? allowExpandAll; [Parameter] bool? AllowExpandAll { - get => isInitialized ? DevExpress.Ui.DxPivotGridInterop.GetAllowExpandAll(dxTarget).Result : allowExpandAll; + get => isInitialized ? (bool?)DevExpress.Ui.DxPivotGridInterop.GetAllowExpandAll(dxTarget).Result : allowExpandAll; set { if (isInitialized) { DevExpress.Ui.DxPivotGridInterop.SetAllowExpandAll(dxTarget, value); @@ -59,7 +76,7 @@ return DevExpress.Ui.DxPivotGridInterop.Init(dxTarget, options); bool? allowFiltering; [Parameter] bool? AllowFiltering { - get => isInitialized ? DevExpress.Ui.DxPivotGridInterop.GetAllowFiltering(dxTarget).Result : allowFiltering; + get => isInitialized ? (bool?)DevExpress.Ui.DxPivotGridInterop.GetAllowFiltering(dxTarget).Result : allowFiltering; set { if (isInitialized) { DevExpress.Ui.DxPivotGridInterop.SetAllowFiltering(dxTarget, value); @@ -71,7 +88,7 @@ return DevExpress.Ui.DxPivotGridInterop.Init(dxTarget, options); bool? allowSorting; [Parameter] bool? AllowSorting { - get => isInitialized ? DevExpress.Ui.DxPivotGridInterop.GetAllowSorting(dxTarget).Result : allowSorting; + get => isInitialized ? (bool?)DevExpress.Ui.DxPivotGridInterop.GetAllowSorting(dxTarget).Result : allowSorting; set { if (isInitialized) { DevExpress.Ui.DxPivotGridInterop.SetAllowSorting(dxTarget, value); @@ -83,7 +100,7 @@ return DevExpress.Ui.DxPivotGridInterop.Init(dxTarget, options); bool? allowSortingBySummary; [Parameter] bool? AllowSortingBySummary { - get => isInitialized ? DevExpress.Ui.DxPivotGridInterop.GetAllowSortingBySummary(dxTarget).Result : allowSortingBySummary; + get => isInitialized ? (bool?)DevExpress.Ui.DxPivotGridInterop.GetAllowSortingBySummary(dxTarget).Result : allowSortingBySummary; set { if (isInitialized) { DevExpress.Ui.DxPivotGridInterop.SetAllowSortingBySummary(dxTarget, value); @@ -95,7 +112,7 @@ return DevExpress.Ui.DxPivotGridInterop.Init(dxTarget, options); string dataFieldArea; [Parameter] string DataFieldArea { - get => isInitialized ? DevExpress.Ui.DxPivotGridInterop.GetDataFieldArea(dxTarget).Result : dataFieldArea; + get => isInitialized ? (string)DevExpress.Ui.DxPivotGridInterop.GetDataFieldArea(dxTarget).Result : dataFieldArea; set { if (isInitialized) { DevExpress.Ui.DxPivotGridInterop.SetDataFieldArea(dxTarget, value); @@ -167,7 +184,7 @@ return DevExpress.Ui.DxPivotGridInterop.Init(dxTarget, options); bool? hideEmptySummaryCells; [Parameter] bool? HideEmptySummaryCells { - get => isInitialized ? DevExpress.Ui.DxPivotGridInterop.GetHideEmptySummaryCells(dxTarget).Result : hideEmptySummaryCells; + get => isInitialized ? (bool?)DevExpress.Ui.DxPivotGridInterop.GetHideEmptySummaryCells(dxTarget).Result : hideEmptySummaryCells; set { if (isInitialized) { DevExpress.Ui.DxPivotGridInterop.SetHideEmptySummaryCells(dxTarget, value); @@ -191,7 +208,7 @@ return DevExpress.Ui.DxPivotGridInterop.Init(dxTarget, options); string rowHeaderLayout; [Parameter] string RowHeaderLayout { - get => isInitialized ? DevExpress.Ui.DxPivotGridInterop.GetRowHeaderLayout(dxTarget).Result : rowHeaderLayout; + get => isInitialized ? (string)DevExpress.Ui.DxPivotGridInterop.GetRowHeaderLayout(dxTarget).Result : rowHeaderLayout; set { if (isInitialized) { DevExpress.Ui.DxPivotGridInterop.SetRowHeaderLayout(dxTarget, value); @@ -215,7 +232,7 @@ return DevExpress.Ui.DxPivotGridInterop.Init(dxTarget, options); bool? showBorders; [Parameter] bool? ShowBorders { - get => isInitialized ? DevExpress.Ui.DxPivotGridInterop.GetShowBorders(dxTarget).Result : showBorders; + get => isInitialized ? (bool?)DevExpress.Ui.DxPivotGridInterop.GetShowBorders(dxTarget).Result : showBorders; set { if (isInitialized) { DevExpress.Ui.DxPivotGridInterop.SetShowBorders(dxTarget, value); @@ -227,7 +244,7 @@ return DevExpress.Ui.DxPivotGridInterop.Init(dxTarget, options); bool? showColumnGrandTotals; [Parameter] bool? ShowColumnGrandTotals { - get => isInitialized ? DevExpress.Ui.DxPivotGridInterop.GetShowColumnGrandTotals(dxTarget).Result : showColumnGrandTotals; + get => isInitialized ? (bool?)DevExpress.Ui.DxPivotGridInterop.GetShowColumnGrandTotals(dxTarget).Result : showColumnGrandTotals; set { if (isInitialized) { DevExpress.Ui.DxPivotGridInterop.SetShowColumnGrandTotals(dxTarget, value); @@ -239,7 +256,7 @@ return DevExpress.Ui.DxPivotGridInterop.Init(dxTarget, options); bool? showColumnTotals; [Parameter] bool? ShowColumnTotals { - get => isInitialized ? DevExpress.Ui.DxPivotGridInterop.GetShowColumnTotals(dxTarget).Result : showColumnTotals; + get => isInitialized ? (bool?)DevExpress.Ui.DxPivotGridInterop.GetShowColumnTotals(dxTarget).Result : showColumnTotals; set { if (isInitialized) { DevExpress.Ui.DxPivotGridInterop.SetShowColumnTotals(dxTarget, value); @@ -251,7 +268,7 @@ return DevExpress.Ui.DxPivotGridInterop.Init(dxTarget, options); bool? showRowGrandTotals; [Parameter] bool? ShowRowGrandTotals { - get => isInitialized ? DevExpress.Ui.DxPivotGridInterop.GetShowRowGrandTotals(dxTarget).Result : showRowGrandTotals; + get => isInitialized ? (bool?)DevExpress.Ui.DxPivotGridInterop.GetShowRowGrandTotals(dxTarget).Result : showRowGrandTotals; set { if (isInitialized) { DevExpress.Ui.DxPivotGridInterop.SetShowRowGrandTotals(dxTarget, value); @@ -263,7 +280,7 @@ return DevExpress.Ui.DxPivotGridInterop.Init(dxTarget, options); bool? showRowTotals; [Parameter] bool? ShowRowTotals { - get => isInitialized ? DevExpress.Ui.DxPivotGridInterop.GetShowRowTotals(dxTarget).Result : showRowTotals; + get => isInitialized ? (bool?)DevExpress.Ui.DxPivotGridInterop.GetShowRowTotals(dxTarget).Result : showRowTotals; set { if (isInitialized) { DevExpress.Ui.DxPivotGridInterop.SetShowRowTotals(dxTarget, value); @@ -275,7 +292,7 @@ return DevExpress.Ui.DxPivotGridInterop.Init(dxTarget, options); string showTotalsPrior; [Parameter] string ShowTotalsPrior { - get => isInitialized ? DevExpress.Ui.DxPivotGridInterop.GetShowTotalsPrior(dxTarget).Result : showTotalsPrior; + get => isInitialized ? (string)DevExpress.Ui.DxPivotGridInterop.GetShowTotalsPrior(dxTarget).Result : showTotalsPrior; set { if (isInitialized) { DevExpress.Ui.DxPivotGridInterop.SetShowTotalsPrior(dxTarget, value); @@ -311,7 +328,7 @@ return DevExpress.Ui.DxPivotGridInterop.Init(dxTarget, options); bool? wordWrapEnabled; [Parameter] bool? WordWrapEnabled { - get => isInitialized ? DevExpress.Ui.DxPivotGridInterop.GetWordWrapEnabled(dxTarget).Result : wordWrapEnabled; + get => isInitialized ? (bool?)DevExpress.Ui.DxPivotGridInterop.GetWordWrapEnabled(dxTarget).Result : wordWrapEnabled; set { if (isInitialized) { DevExpress.Ui.DxPivotGridInterop.SetWordWrapEnabled(dxTarget, value); @@ -320,6 +337,162 @@ return DevExpress.Ui.DxPivotGridInterop.Init(dxTarget, options); } } } + string accessKey; + [Parameter] + string AccessKey { + get => isInitialized ? (string)DevExpress.Ui.DxPivotGridInterop.GetAccessKey(dxTarget).Result : accessKey; + set { + if (isInitialized) { + DevExpress.Ui.DxPivotGridInterop.SetAccessKey(dxTarget, value); + } else { + this.accessKey = value; + } + } + } + bool? activeStateEnabled; + [Parameter] + bool? ActiveStateEnabled { + get => isInitialized ? (bool?)DevExpress.Ui.DxPivotGridInterop.GetActiveStateEnabled(dxTarget).Result : activeStateEnabled; + set { + if (isInitialized) { + DevExpress.Ui.DxPivotGridInterop.SetActiveStateEnabled(dxTarget, value); + } else { + this.activeStateEnabled = value; + } + } + } + bool? disabled; + [Parameter] + bool? Disabled { + get => isInitialized ? (bool?)DevExpress.Ui.DxPivotGridInterop.GetDisabled(dxTarget).Result : disabled; + set { + if (isInitialized) { + DevExpress.Ui.DxPivotGridInterop.SetDisabled(dxTarget, value); + } else { + this.disabled = value; + } + } + } + bool? focusStateEnabled; + [Parameter] + bool? FocusStateEnabled { + get => isInitialized ? (bool?)DevExpress.Ui.DxPivotGridInterop.GetFocusStateEnabled(dxTarget).Result : focusStateEnabled; + set { + if (isInitialized) { + DevExpress.Ui.DxPivotGridInterop.SetFocusStateEnabled(dxTarget, value); + } else { + this.focusStateEnabled = value; + } + } + } + string hint; + [Parameter] + string Hint { + get => isInitialized ? (string)DevExpress.Ui.DxPivotGridInterop.GetHint(dxTarget).Result : hint; + set { + if (isInitialized) { + DevExpress.Ui.DxPivotGridInterop.SetHint(dxTarget, value); + } else { + this.hint = value; + } + } + } + bool? hoverStateEnabled; + [Parameter] + bool? HoverStateEnabled { + get => isInitialized ? (bool?)DevExpress.Ui.DxPivotGridInterop.GetHoverStateEnabled(dxTarget).Result : hoverStateEnabled; + set { + if (isInitialized) { + DevExpress.Ui.DxPivotGridInterop.SetHoverStateEnabled(dxTarget, value); + } else { + this.hoverStateEnabled = value; + } + } + } + float? tabIndex; + [Parameter] + float? TabIndex { + get => isInitialized ? (float?)DevExpress.Ui.DxPivotGridInterop.GetTabIndex(dxTarget).Result : tabIndex; + set { + if (isInitialized) { + DevExpress.Ui.DxPivotGridInterop.SetTabIndex(dxTarget, value); + } else { + this.tabIndex = value; + } + } + } + bool? visible; + [Parameter] + bool? Visible { + get => isInitialized ? (bool?)DevExpress.Ui.DxPivotGridInterop.GetVisible(dxTarget).Result : visible; + set { + if (isInitialized) { + DevExpress.Ui.DxPivotGridInterop.SetVisible(dxTarget, value); + } else { + this.visible = value; + } + } + } + object bindingOptions; + [Parameter] + object BindingOptions { + get => isInitialized ? DevExpress.Ui.DxPivotGridInterop.GetBindingOptions(dxTarget).Result : bindingOptions; + set { + if (isInitialized) { + DevExpress.Ui.DxPivotGridInterop.SetBindingOptions(dxTarget, value); + } else { + this.bindingOptions = value; + } + } + } + object elementAttr; + [Parameter] + object ElementAttr { + get => isInitialized ? DevExpress.Ui.DxPivotGridInterop.GetElementAttr(dxTarget).Result : elementAttr; + set { + if (isInitialized) { + DevExpress.Ui.DxPivotGridInterop.SetElementAttr(dxTarget, value); + } else { + this.elementAttr = value; + } + } + } + object height; + [Parameter] + object Height { + get => isInitialized ? DevExpress.Ui.DxPivotGridInterop.GetHeight(dxTarget).Result : height; + set { + if (isInitialized) { + DevExpress.Ui.DxPivotGridInterop.SetHeight(dxTarget, value); + } else { + this.height = value; + } + } + } + bool? rtlEnabled; + [Parameter] + bool? RtlEnabled { + get => isInitialized ? (bool?)DevExpress.Ui.DxPivotGridInterop.GetRtlEnabled(dxTarget).Result : rtlEnabled; + set { + if (isInitialized) { + DevExpress.Ui.DxPivotGridInterop.SetRtlEnabled(dxTarget, value); + } else { + this.rtlEnabled = value; + } + } + } + object width; + [Parameter] + object Width { + get => isInitialized ? DevExpress.Ui.DxPivotGridInterop.GetWidth(dxTarget).Result : width; + set { + if (isInitialized) { + DevExpress.Ui.DxPivotGridInterop.SetWidth(dxTarget, value); + } else { + this.width = value; + } + } + } bool? onCellClickEnabled; [Parameter] bool? OnCellClickEnabled { @@ -356,6 +529,30 @@ return DevExpress.Ui.DxPivotGridInterop.Init(dxTarget, options); get => onFileSavingEnabled; set => this.onFileSavingEnabled = value; } + bool? onContentReadyEnabled; + [Parameter] + bool? OnContentReadyEnabled { + get => onContentReadyEnabled; + set => this.onContentReadyEnabled = value; + } + bool? onDisposingEnabled; + [Parameter] + bool? OnDisposingEnabled { + get => onDisposingEnabled; + set => this.onDisposingEnabled = value; + } + bool? onOptionChangedEnabled; + [Parameter] + bool? OnOptionChangedEnabled { + get => onOptionChangedEnabled; + set => this.onOptionChangedEnabled = value; + } + bool? onInitializedEnabled; + [Parameter] + bool? OnInitializedEnabled { + get => onInitializedEnabled; + set => this.onInitializedEnabled = value; + } protected override async Task OnInitAsync() { await base.OnInitAsync(); DevExpress.Ui.DxPivotGridInterop.CellClick += DxPivotGrid_CellClick; @@ -364,6 +561,10 @@ return DevExpress.Ui.DxPivotGridInterop.Init(dxTarget, options); DevExpress.Ui.DxPivotGridInterop.Exported += DxPivotGrid_Exported; DevExpress.Ui.DxPivotGridInterop.Exporting += DxPivotGrid_Exporting; DevExpress.Ui.DxPivotGridInterop.FileSaving += DxPivotGrid_FileSaving; + DevExpress.Ui.DxPivotGridInterop.ContentReady += DxPivotGrid_ContentReady; + DevExpress.Ui.DxPivotGridInterop.Disposing += DxPivotGrid_Disposing; + DevExpress.Ui.DxPivotGridInterop.OptionChanged += DxPivotGrid_OptionChanged; + DevExpress.Ui.DxPivotGridInterop.Initialized += DxPivotGrid_Initialized; } [Parameter] Action CellClick { get; set; } @@ -407,6 +608,34 @@ return DevExpress.Ui.DxPivotGridInterop.Init(dxTarget, options); FileSaving?.Invoke(); } } + [Parameter] + Action ContentReady { get; set; } + void DxPivotGrid_ContentReady(object sender, JQueryEventArgs e) { + if (e.Identifier == Id) { + ContentReady?.Invoke(); + } + } + [Parameter] + Action Disposing { get; set; } + void DxPivotGrid_Disposing(object sender, JQueryEventArgs e) { + if (e.Identifier == Id) { + Disposing?.Invoke(); + } + } + [Parameter] + Action OptionChanged { get; set; } + void DxPivotGrid_OptionChanged(object sender, JQueryEventArgs e) { + if (e.Identifier == Id) { + OptionChanged?.Invoke(); + } + } + [Parameter] + Action Initialized { get; set; } + void DxPivotGrid_Initialized(object sender, JQueryEventArgs e) { + if (e.Identifier == Id) { + Initialized?.Invoke(); + } + } public object BindChart(object chart, object integrationOptions) { return DevExpress.Ui.DxPivotGridInterop.BindChart(dxTarget, chart, integrationOptions).Result; } @@ -429,5 +658,9 @@ return DevExpress.Ui.DxPivotGridInterop.Init(dxTarget, options); DevExpress.Ui.DxPivotGridInterop.Exported -= DxPivotGrid_Exported; DevExpress.Ui.DxPivotGridInterop.Exporting -= DxPivotGrid_Exporting; DevExpress.Ui.DxPivotGridInterop.FileSaving -= DxPivotGrid_FileSaving; + DevExpress.Ui.DxPivotGridInterop.ContentReady -= DxPivotGrid_ContentReady; + DevExpress.Ui.DxPivotGridInterop.Disposing -= DxPivotGrid_Disposing; + DevExpress.Ui.DxPivotGridInterop.OptionChanged -= DxPivotGrid_OptionChanged; + DevExpress.Ui.DxPivotGridInterop.Initialized -= DxPivotGrid_Initialized; } } diff --git a/sources/BlazorDevExtreme/Components/DxPivotGridFieldChooser.cshtml b/sources/BlazorDevExtreme/Components/DxPivotGridFieldChooser.cshtml index 4b21ad4..01aa386 100644 --- a/sources/BlazorDevExtreme/Components/DxPivotGridFieldChooser.cshtml +++ b/sources/BlazorDevExtreme/Components/DxPivotGridFieldChooser.cshtml @@ -18,16 +18,32 @@ layout = layout, state = state, texts = texts, + accessKey = accessKey, + activeStateEnabled = activeStateEnabled, + disabled = disabled, + focusStateEnabled = focusStateEnabled, + hint = hint, + hoverStateEnabled = hoverStateEnabled, + tabIndex = tabIndex, + visible = visible, + bindingOptions = bindingOptions, + elementAttr = elementAttr, + rtlEnabled = rtlEnabled, + width = width, onContextMenuPreparingEnabled = onContextMenuPreparingEnabled, + onContentReadyEnabled = onContentReadyEnabled, + onDisposingEnabled = onDisposingEnabled, + onOptionChangedEnabled = onOptionChangedEnabled, + onInitializedEnabled = onInitializedEnabled, }; } protected override Task Init(DevExpress.Ui.DxPivotGridFieldChooserOptions options) { -return DevExpress.Ui.DxPivotGridFieldChooserInterop.Init(dxTarget, options); + return DevExpress.Ui.DxPivotGridFieldChooserInterop.Init(dxTarget, options); } bool? allowSearch; [Parameter] bool? AllowSearch { - get => isInitialized ? DevExpress.Ui.DxPivotGridFieldChooserInterop.GetAllowSearch(dxTarget).Result : allowSearch; + get => isInitialized ? (bool?)DevExpress.Ui.DxPivotGridFieldChooserInterop.GetAllowSearch(dxTarget).Result : allowSearch; set { if (isInitialized) { DevExpress.Ui.DxPivotGridFieldChooserInterop.SetAllowSearch(dxTarget, value); @@ -39,7 +55,7 @@ return DevExpress.Ui.DxPivotGridFieldChooserInterop.Init(dxTarget, options); string applyChangesMode; [Parameter] string ApplyChangesMode { - get => isInitialized ? DevExpress.Ui.DxPivotGridFieldChooserInterop.GetApplyChangesMode(dxTarget).Result : applyChangesMode; + get => isInitialized ? (string)DevExpress.Ui.DxPivotGridFieldChooserInterop.GetApplyChangesMode(dxTarget).Result : applyChangesMode; set { if (isInitialized) { DevExpress.Ui.DxPivotGridFieldChooserInterop.SetApplyChangesMode(dxTarget, value); @@ -120,15 +136,187 @@ return DevExpress.Ui.DxPivotGridFieldChooserInterop.Init(dxTarget, options); } } } + string accessKey; + [Parameter] + string AccessKey { + get => isInitialized ? (string)DevExpress.Ui.DxPivotGridFieldChooserInterop.GetAccessKey(dxTarget).Result : accessKey; + set { + if (isInitialized) { + DevExpress.Ui.DxPivotGridFieldChooserInterop.SetAccessKey(dxTarget, value); + } else { + this.accessKey = value; + } + } + } + bool? activeStateEnabled; + [Parameter] + bool? ActiveStateEnabled { + get => isInitialized ? (bool?)DevExpress.Ui.DxPivotGridFieldChooserInterop.GetActiveStateEnabled(dxTarget).Result : activeStateEnabled; + set { + if (isInitialized) { + DevExpress.Ui.DxPivotGridFieldChooserInterop.SetActiveStateEnabled(dxTarget, value); + } else { + this.activeStateEnabled = value; + } + } + } + bool? disabled; + [Parameter] + bool? Disabled { + get => isInitialized ? (bool?)DevExpress.Ui.DxPivotGridFieldChooserInterop.GetDisabled(dxTarget).Result : disabled; + set { + if (isInitialized) { + DevExpress.Ui.DxPivotGridFieldChooserInterop.SetDisabled(dxTarget, value); + } else { + this.disabled = value; + } + } + } + bool? focusStateEnabled; + [Parameter] + bool? FocusStateEnabled { + get => isInitialized ? (bool?)DevExpress.Ui.DxPivotGridFieldChooserInterop.GetFocusStateEnabled(dxTarget).Result : focusStateEnabled; + set { + if (isInitialized) { + DevExpress.Ui.DxPivotGridFieldChooserInterop.SetFocusStateEnabled(dxTarget, value); + } else { + this.focusStateEnabled = value; + } + } + } + string hint; + [Parameter] + string Hint { + get => isInitialized ? (string)DevExpress.Ui.DxPivotGridFieldChooserInterop.GetHint(dxTarget).Result : hint; + set { + if (isInitialized) { + DevExpress.Ui.DxPivotGridFieldChooserInterop.SetHint(dxTarget, value); + } else { + this.hint = value; + } + } + } + bool? hoverStateEnabled; + [Parameter] + bool? HoverStateEnabled { + get => isInitialized ? (bool?)DevExpress.Ui.DxPivotGridFieldChooserInterop.GetHoverStateEnabled(dxTarget).Result : hoverStateEnabled; + set { + if (isInitialized) { + DevExpress.Ui.DxPivotGridFieldChooserInterop.SetHoverStateEnabled(dxTarget, value); + } else { + this.hoverStateEnabled = value; + } + } + } + float? tabIndex; + [Parameter] + float? TabIndex { + get => isInitialized ? (float?)DevExpress.Ui.DxPivotGridFieldChooserInterop.GetTabIndex(dxTarget).Result : tabIndex; + set { + if (isInitialized) { + DevExpress.Ui.DxPivotGridFieldChooserInterop.SetTabIndex(dxTarget, value); + } else { + this.tabIndex = value; + } + } + } + bool? visible; + [Parameter] + bool? Visible { + get => isInitialized ? (bool?)DevExpress.Ui.DxPivotGridFieldChooserInterop.GetVisible(dxTarget).Result : visible; + set { + if (isInitialized) { + DevExpress.Ui.DxPivotGridFieldChooserInterop.SetVisible(dxTarget, value); + } else { + this.visible = value; + } + } + } + object bindingOptions; + [Parameter] + object BindingOptions { + get => isInitialized ? DevExpress.Ui.DxPivotGridFieldChooserInterop.GetBindingOptions(dxTarget).Result : bindingOptions; + set { + if (isInitialized) { + DevExpress.Ui.DxPivotGridFieldChooserInterop.SetBindingOptions(dxTarget, value); + } else { + this.bindingOptions = value; + } + } + } + object elementAttr; + [Parameter] + object ElementAttr { + get => isInitialized ? DevExpress.Ui.DxPivotGridFieldChooserInterop.GetElementAttr(dxTarget).Result : elementAttr; + set { + if (isInitialized) { + DevExpress.Ui.DxPivotGridFieldChooserInterop.SetElementAttr(dxTarget, value); + } else { + this.elementAttr = value; + } + } + } + bool? rtlEnabled; + [Parameter] + bool? RtlEnabled { + get => isInitialized ? (bool?)DevExpress.Ui.DxPivotGridFieldChooserInterop.GetRtlEnabled(dxTarget).Result : rtlEnabled; + set { + if (isInitialized) { + DevExpress.Ui.DxPivotGridFieldChooserInterop.SetRtlEnabled(dxTarget, value); + } else { + this.rtlEnabled = value; + } + } + } + object width; + [Parameter] + object Width { + get => isInitialized ? DevExpress.Ui.DxPivotGridFieldChooserInterop.GetWidth(dxTarget).Result : width; + set { + if (isInitialized) { + DevExpress.Ui.DxPivotGridFieldChooserInterop.SetWidth(dxTarget, value); + } else { + this.width = value; + } + } + } bool? onContextMenuPreparingEnabled; [Parameter] bool? OnContextMenuPreparingEnabled { get => onContextMenuPreparingEnabled; set => this.onContextMenuPreparingEnabled = value; } + bool? onContentReadyEnabled; + [Parameter] + bool? OnContentReadyEnabled { + get => onContentReadyEnabled; + set => this.onContentReadyEnabled = value; + } + bool? onDisposingEnabled; + [Parameter] + bool? OnDisposingEnabled { + get => onDisposingEnabled; + set => this.onDisposingEnabled = value; + } + bool? onOptionChangedEnabled; + [Parameter] + bool? OnOptionChangedEnabled { + get => onOptionChangedEnabled; + set => this.onOptionChangedEnabled = value; + } + bool? onInitializedEnabled; + [Parameter] + bool? OnInitializedEnabled { + get => onInitializedEnabled; + set => this.onInitializedEnabled = value; + } protected override async Task OnInitAsync() { await base.OnInitAsync(); DevExpress.Ui.DxPivotGridFieldChooserInterop.ContextMenuPreparing += DxPivotGridFieldChooser_ContextMenuPreparing; + DevExpress.Ui.DxPivotGridFieldChooserInterop.ContentReady += DxPivotGridFieldChooser_ContentReady; + DevExpress.Ui.DxPivotGridFieldChooserInterop.Disposing += DxPivotGridFieldChooser_Disposing; + DevExpress.Ui.DxPivotGridFieldChooserInterop.OptionChanged += DxPivotGridFieldChooser_OptionChanged; + DevExpress.Ui.DxPivotGridFieldChooserInterop.Initialized += DxPivotGridFieldChooser_Initialized; } [Parameter] Action ContextMenuPreparing { get; set; } @@ -137,6 +325,34 @@ return DevExpress.Ui.DxPivotGridFieldChooserInterop.Init(dxTarget, options); ContextMenuPreparing?.Invoke(); } } + [Parameter] + Action ContentReady { get; set; } + void DxPivotGridFieldChooser_ContentReady(object sender, JQueryEventArgs e) { + if (e.Identifier == Id) { + ContentReady?.Invoke(); + } + } + [Parameter] + Action Disposing { get; set; } + void DxPivotGridFieldChooser_Disposing(object sender, JQueryEventArgs e) { + if (e.Identifier == Id) { + Disposing?.Invoke(); + } + } + [Parameter] + Action OptionChanged { get; set; } + void DxPivotGridFieldChooser_OptionChanged(object sender, JQueryEventArgs e) { + if (e.Identifier == Id) { + OptionChanged?.Invoke(); + } + } + [Parameter] + Action Initialized { get; set; } + void DxPivotGridFieldChooser_Initialized(object sender, JQueryEventArgs e) { + if (e.Identifier == Id) { + Initialized?.Invoke(); + } + } public void ApplyChanges() { DevExpress.Ui.DxPivotGridFieldChooserInterop.ApplyChanges(dxTarget); } @@ -151,5 +367,9 @@ return DevExpress.Ui.DxPivotGridFieldChooserInterop.Init(dxTarget, options); } public void Dispose() { DevExpress.Ui.DxPivotGridFieldChooserInterop.ContextMenuPreparing -= DxPivotGridFieldChooser_ContextMenuPreparing; + DevExpress.Ui.DxPivotGridFieldChooserInterop.ContentReady -= DxPivotGridFieldChooser_ContentReady; + DevExpress.Ui.DxPivotGridFieldChooserInterop.Disposing -= DxPivotGridFieldChooser_Disposing; + DevExpress.Ui.DxPivotGridFieldChooserInterop.OptionChanged -= DxPivotGridFieldChooser_OptionChanged; + DevExpress.Ui.DxPivotGridFieldChooserInterop.Initialized -= DxPivotGridFieldChooser_Initialized; } } diff --git a/sources/BlazorDevExtreme/Components/DxPolarChart.cshtml b/sources/BlazorDevExtreme/Components/DxPolarChart.cshtml index 863117a..b64bb72 100644 --- a/sources/BlazorDevExtreme/Components/DxPolarChart.cshtml +++ b/sources/BlazorDevExtreme/Components/DxPolarChart.cshtml @@ -29,15 +29,49 @@ tooltip = tooltip, useSpiderWeb = useSpiderWeb, valueAxis = valueAxis, + animation = animation, + customizeLabel = customizeLabel, + customizePoint = customizePoint, + dataSource = dataSource, + palette = palette, + paletteExtensionMode = paletteExtensionMode, + pointSelectionMode = pointSelectionMode, + export = export, + loadingIndicator = loadingIndicator, + margin = margin, + pathModified = pathModified, + redrawOnResize = redrawOnResize, + rtlEnabled = rtlEnabled, + size = size, + theme = theme, + title = title, + bindingOptions = bindingOptions, + elementAttr = elementAttr, + height = height, + width = width, onArgumentAxisClickEnabled = onArgumentAxisClickEnabled, onLegendClickEnabled = onLegendClickEnabled, onSeriesClickEnabled = onSeriesClickEnabled, onSeriesHoverChangedEnabled = onSeriesHoverChangedEnabled, onSeriesSelectionChangedEnabled = onSeriesSelectionChangedEnabled, + onDoneEnabled = onDoneEnabled, + onPointClickEnabled = onPointClickEnabled, + onPointHoverChangedEnabled = onPointHoverChangedEnabled, + onPointSelectionChangedEnabled = onPointSelectionChangedEnabled, + onTooltipHiddenEnabled = onTooltipHiddenEnabled, + onTooltipShownEnabled = onTooltipShownEnabled, + onDrawnEnabled = onDrawnEnabled, + onExportedEnabled = onExportedEnabled, + onExportingEnabled = onExportingEnabled, + onFileSavingEnabled = onFileSavingEnabled, + onIncidentOccurredEnabled = onIncidentOccurredEnabled, + onDisposingEnabled = onDisposingEnabled, + onOptionChangedEnabled = onOptionChangedEnabled, + onInitializedEnabled = onInitializedEnabled, }; } protected override Task Init(DevExpress.Viz.Charts.DxPolarChartOptions options) { -return DevExpress.Viz.DxPolarChartInterop.Init(dxTarget, options); + return DevExpress.Viz.DxPolarChartInterop.Init(dxTarget, options); } object adaptiveLayout; [Parameter] @@ -66,7 +100,7 @@ return DevExpress.Viz.DxPolarChartInterop.Init(dxTarget, options); float? barGroupPadding; [Parameter] float? BarGroupPadding { - get => isInitialized ? DevExpress.Viz.DxPolarChartInterop.GetBarGroupPadding(dxTarget).Result : barGroupPadding; + get => isInitialized ? (float?)DevExpress.Viz.DxPolarChartInterop.GetBarGroupPadding(dxTarget).Result : barGroupPadding; set { if (isInitialized) { DevExpress.Viz.DxPolarChartInterop.SetBarGroupPadding(dxTarget, value); @@ -78,7 +112,7 @@ return DevExpress.Viz.DxPolarChartInterop.Init(dxTarget, options); float? barGroupWidth; [Parameter] float? BarGroupWidth { - get => isInitialized ? DevExpress.Viz.DxPolarChartInterop.GetBarGroupWidth(dxTarget).Result : barGroupWidth; + get => isInitialized ? (float?)DevExpress.Viz.DxPolarChartInterop.GetBarGroupWidth(dxTarget).Result : barGroupWidth; set { if (isInitialized) { DevExpress.Viz.DxPolarChartInterop.SetBarGroupWidth(dxTarget, value); @@ -90,7 +124,7 @@ return DevExpress.Viz.DxPolarChartInterop.Init(dxTarget, options); float? barWidth; [Parameter] float? BarWidth { - get => isInitialized ? DevExpress.Viz.DxPolarChartInterop.GetBarWidth(dxTarget).Result : barWidth; + get => isInitialized ? (float?)DevExpress.Viz.DxPolarChartInterop.GetBarWidth(dxTarget).Result : barWidth; set { if (isInitialized) { DevExpress.Viz.DxPolarChartInterop.SetBarWidth(dxTarget, value); @@ -126,7 +160,7 @@ return DevExpress.Viz.DxPolarChartInterop.Init(dxTarget, options); string containerBackgroundColor; [Parameter] string ContainerBackgroundColor { - get => isInitialized ? DevExpress.Viz.DxPolarChartInterop.GetContainerBackgroundColor(dxTarget).Result : containerBackgroundColor; + get => isInitialized ? (string)DevExpress.Viz.DxPolarChartInterop.GetContainerBackgroundColor(dxTarget).Result : containerBackgroundColor; set { if (isInitialized) { DevExpress.Viz.DxPolarChartInterop.SetContainerBackgroundColor(dxTarget, value); @@ -150,7 +184,7 @@ return DevExpress.Viz.DxPolarChartInterop.Init(dxTarget, options); bool? equalBarWidth; [Parameter] bool? EqualBarWidth { - get => isInitialized ? DevExpress.Viz.DxPolarChartInterop.GetEqualBarWidth(dxTarget).Result : equalBarWidth; + get => isInitialized ? (bool?)DevExpress.Viz.DxPolarChartInterop.GetEqualBarWidth(dxTarget).Result : equalBarWidth; set { if (isInitialized) { DevExpress.Viz.DxPolarChartInterop.SetEqualBarWidth(dxTarget, value); @@ -174,7 +208,7 @@ return DevExpress.Viz.DxPolarChartInterop.Init(dxTarget, options); bool? negativesAsZeroes; [Parameter] bool? NegativesAsZeroes { - get => isInitialized ? DevExpress.Viz.DxPolarChartInterop.GetNegativesAsZeroes(dxTarget).Result : negativesAsZeroes; + get => isInitialized ? (bool?)DevExpress.Viz.DxPolarChartInterop.GetNegativesAsZeroes(dxTarget).Result : negativesAsZeroes; set { if (isInitialized) { DevExpress.Viz.DxPolarChartInterop.SetNegativesAsZeroes(dxTarget, value); @@ -186,7 +220,7 @@ return DevExpress.Viz.DxPolarChartInterop.Init(dxTarget, options); string resolveLabelOverlapping; [Parameter] string ResolveLabelOverlapping { - get => isInitialized ? DevExpress.Viz.DxPolarChartInterop.GetResolveLabelOverlapping(dxTarget).Result : resolveLabelOverlapping; + get => isInitialized ? (string)DevExpress.Viz.DxPolarChartInterop.GetResolveLabelOverlapping(dxTarget).Result : resolveLabelOverlapping; set { if (isInitialized) { DevExpress.Viz.DxPolarChartInterop.SetResolveLabelOverlapping(dxTarget, value); @@ -210,7 +244,7 @@ return DevExpress.Viz.DxPolarChartInterop.Init(dxTarget, options); string seriesSelectionMode; [Parameter] string SeriesSelectionMode { - get => isInitialized ? DevExpress.Viz.DxPolarChartInterop.GetSeriesSelectionMode(dxTarget).Result : seriesSelectionMode; + get => isInitialized ? (string)DevExpress.Viz.DxPolarChartInterop.GetSeriesSelectionMode(dxTarget).Result : seriesSelectionMode; set { if (isInitialized) { DevExpress.Viz.DxPolarChartInterop.SetSeriesSelectionMode(dxTarget, value); @@ -246,7 +280,7 @@ return DevExpress.Viz.DxPolarChartInterop.Init(dxTarget, options); bool? useSpiderWeb; [Parameter] bool? UseSpiderWeb { - get => isInitialized ? DevExpress.Viz.DxPolarChartInterop.GetUseSpiderWeb(dxTarget).Result : useSpiderWeb; + get => isInitialized ? (bool?)DevExpress.Viz.DxPolarChartInterop.GetUseSpiderWeb(dxTarget).Result : useSpiderWeb; set { if (isInitialized) { DevExpress.Viz.DxPolarChartInterop.SetUseSpiderWeb(dxTarget, value); @@ -267,6 +301,246 @@ return DevExpress.Viz.DxPolarChartInterop.Init(dxTarget, options); } } } + object animation; + [Parameter] + object Animation { + get => isInitialized ? DevExpress.Viz.DxPolarChartInterop.GetAnimation(dxTarget).Result : animation; + set { + if (isInitialized) { + DevExpress.Viz.DxPolarChartInterop.SetAnimation(dxTarget, value); + } else { + this.animation = value; + } + } + } + object customizeLabel; + [Parameter] + object CustomizeLabel { + get => isInitialized ? DevExpress.Viz.DxPolarChartInterop.GetCustomizeLabel(dxTarget).Result : customizeLabel; + set { + if (isInitialized) { + DevExpress.Viz.DxPolarChartInterop.SetCustomizeLabel(dxTarget, value); + } else { + this.customizeLabel = value; + } + } + } + object customizePoint; + [Parameter] + object CustomizePoint { + get => isInitialized ? DevExpress.Viz.DxPolarChartInterop.GetCustomizePoint(dxTarget).Result : customizePoint; + set { + if (isInitialized) { + DevExpress.Viz.DxPolarChartInterop.SetCustomizePoint(dxTarget, value); + } else { + this.customizePoint = value; + } + } + } + object dataSource; + [Parameter] + object DataSource { + get => isInitialized ? DevExpress.Viz.DxPolarChartInterop.GetDataSource(dxTarget).Result : dataSource; + set { + if (isInitialized) { + DevExpress.Viz.DxPolarChartInterop.SetDataSource(dxTarget, value); + } else { + this.dataSource = value; + } + } + } + object palette; + [Parameter] + object Palette { + get => isInitialized ? DevExpress.Viz.DxPolarChartInterop.GetPalette(dxTarget).Result : palette; + set { + if (isInitialized) { + DevExpress.Viz.DxPolarChartInterop.SetPalette(dxTarget, value); + } else { + this.palette = value; + } + } + } + string paletteExtensionMode; + [Parameter] + string PaletteExtensionMode { + get => isInitialized ? (string)DevExpress.Viz.DxPolarChartInterop.GetPaletteExtensionMode(dxTarget).Result : paletteExtensionMode; + set { + if (isInitialized) { + DevExpress.Viz.DxPolarChartInterop.SetPaletteExtensionMode(dxTarget, value); + } else { + this.paletteExtensionMode = value; + } + } + } + string pointSelectionMode; + [Parameter] + string PointSelectionMode { + get => isInitialized ? (string)DevExpress.Viz.DxPolarChartInterop.GetPointSelectionMode(dxTarget).Result : pointSelectionMode; + set { + if (isInitialized) { + DevExpress.Viz.DxPolarChartInterop.SetPointSelectionMode(dxTarget, value); + } else { + this.pointSelectionMode = value; + } + } + } + object export; + [Parameter] + object Export { + get => isInitialized ? DevExpress.Viz.DxPolarChartInterop.GetExport(dxTarget).Result : export; + set { + if (isInitialized) { + DevExpress.Viz.DxPolarChartInterop.SetExport(dxTarget, value); + } else { + this.export = value; + } + } + } + object loadingIndicator; + [Parameter] + object LoadingIndicator { + get => isInitialized ? DevExpress.Viz.DxPolarChartInterop.GetLoadingIndicator(dxTarget).Result : loadingIndicator; + set { + if (isInitialized) { + DevExpress.Viz.DxPolarChartInterop.SetLoadingIndicator(dxTarget, value); + } else { + this.loadingIndicator = value; + } + } + } + object margin; + [Parameter] + object Margin { + get => isInitialized ? DevExpress.Viz.DxPolarChartInterop.GetMargin(dxTarget).Result : margin; + set { + if (isInitialized) { + DevExpress.Viz.DxPolarChartInterop.SetMargin(dxTarget, value); + } else { + this.margin = value; + } + } + } + bool? pathModified; + [Parameter] + bool? PathModified { + get => isInitialized ? (bool?)DevExpress.Viz.DxPolarChartInterop.GetPathModified(dxTarget).Result : pathModified; + set { + if (isInitialized) { + DevExpress.Viz.DxPolarChartInterop.SetPathModified(dxTarget, value); + } else { + this.pathModified = value; + } + } + } + bool? redrawOnResize; + [Parameter] + bool? RedrawOnResize { + get => isInitialized ? (bool?)DevExpress.Viz.DxPolarChartInterop.GetRedrawOnResize(dxTarget).Result : redrawOnResize; + set { + if (isInitialized) { + DevExpress.Viz.DxPolarChartInterop.SetRedrawOnResize(dxTarget, value); + } else { + this.redrawOnResize = value; + } + } + } + bool? rtlEnabled; + [Parameter] + bool? RtlEnabled { + get => isInitialized ? (bool?)DevExpress.Viz.DxPolarChartInterop.GetRtlEnabled(dxTarget).Result : rtlEnabled; + set { + if (isInitialized) { + DevExpress.Viz.DxPolarChartInterop.SetRtlEnabled(dxTarget, value); + } else { + this.rtlEnabled = value; + } + } + } + object size; + [Parameter] + object Size { + get => isInitialized ? DevExpress.Viz.DxPolarChartInterop.GetSize(dxTarget).Result : size; + set { + if (isInitialized) { + DevExpress.Viz.DxPolarChartInterop.SetSize(dxTarget, value); + } else { + this.size = value; + } + } + } + string theme; + [Parameter] + string Theme { + get => isInitialized ? (string)DevExpress.Viz.DxPolarChartInterop.GetTheme(dxTarget).Result : theme; + set { + if (isInitialized) { + DevExpress.Viz.DxPolarChartInterop.SetTheme(dxTarget, value); + } else { + this.theme = value; + } + } + } + object title; + [Parameter] + object Title { + get => isInitialized ? DevExpress.Viz.DxPolarChartInterop.GetTitle(dxTarget).Result : title; + set { + if (isInitialized) { + DevExpress.Viz.DxPolarChartInterop.SetTitle(dxTarget, value); + } else { + this.title = value; + } + } + } + object bindingOptions; + [Parameter] + object BindingOptions { + get => isInitialized ? DevExpress.Viz.DxPolarChartInterop.GetBindingOptions(dxTarget).Result : bindingOptions; + set { + if (isInitialized) { + DevExpress.Viz.DxPolarChartInterop.SetBindingOptions(dxTarget, value); + } else { + this.bindingOptions = value; + } + } + } + object elementAttr; + [Parameter] + object ElementAttr { + get => isInitialized ? DevExpress.Viz.DxPolarChartInterop.GetElementAttr(dxTarget).Result : elementAttr; + set { + if (isInitialized) { + DevExpress.Viz.DxPolarChartInterop.SetElementAttr(dxTarget, value); + } else { + this.elementAttr = value; + } + } + } + object height; + [Parameter] + object Height { + get => isInitialized ? DevExpress.Viz.DxPolarChartInterop.GetHeight(dxTarget).Result : height; + set { + if (isInitialized) { + DevExpress.Viz.DxPolarChartInterop.SetHeight(dxTarget, value); + } else { + this.height = value; + } + } + } + object width; + [Parameter] + object Width { + get => isInitialized ? DevExpress.Viz.DxPolarChartInterop.GetWidth(dxTarget).Result : width; + set { + if (isInitialized) { + DevExpress.Viz.DxPolarChartInterop.SetWidth(dxTarget, value); + } else { + this.width = value; + } + } + } bool? onArgumentAxisClickEnabled; [Parameter] bool? OnArgumentAxisClickEnabled { @@ -297,6 +571,90 @@ return DevExpress.Viz.DxPolarChartInterop.Init(dxTarget, options); get => onSeriesSelectionChangedEnabled; set => this.onSeriesSelectionChangedEnabled = value; } + bool? onDoneEnabled; + [Parameter] + bool? OnDoneEnabled { + get => onDoneEnabled; + set => this.onDoneEnabled = value; + } + bool? onPointClickEnabled; + [Parameter] + bool? OnPointClickEnabled { + get => onPointClickEnabled; + set => this.onPointClickEnabled = value; + } + bool? onPointHoverChangedEnabled; + [Parameter] + bool? OnPointHoverChangedEnabled { + get => onPointHoverChangedEnabled; + set => this.onPointHoverChangedEnabled = value; + } + bool? onPointSelectionChangedEnabled; + [Parameter] + bool? OnPointSelectionChangedEnabled { + get => onPointSelectionChangedEnabled; + set => this.onPointSelectionChangedEnabled = value; + } + bool? onTooltipHiddenEnabled; + [Parameter] + bool? OnTooltipHiddenEnabled { + get => onTooltipHiddenEnabled; + set => this.onTooltipHiddenEnabled = value; + } + bool? onTooltipShownEnabled; + [Parameter] + bool? OnTooltipShownEnabled { + get => onTooltipShownEnabled; + set => this.onTooltipShownEnabled = value; + } + bool? onDrawnEnabled; + [Parameter] + bool? OnDrawnEnabled { + get => onDrawnEnabled; + set => this.onDrawnEnabled = value; + } + bool? onExportedEnabled; + [Parameter] + bool? OnExportedEnabled { + get => onExportedEnabled; + set => this.onExportedEnabled = value; + } + bool? onExportingEnabled; + [Parameter] + bool? OnExportingEnabled { + get => onExportingEnabled; + set => this.onExportingEnabled = value; + } + bool? onFileSavingEnabled; + [Parameter] + bool? OnFileSavingEnabled { + get => onFileSavingEnabled; + set => this.onFileSavingEnabled = value; + } + bool? onIncidentOccurredEnabled; + [Parameter] + bool? OnIncidentOccurredEnabled { + get => onIncidentOccurredEnabled; + set => this.onIncidentOccurredEnabled = value; + } + bool? onDisposingEnabled; + [Parameter] + bool? OnDisposingEnabled { + get => onDisposingEnabled; + set => this.onDisposingEnabled = value; + } + bool? onOptionChangedEnabled; + [Parameter] + bool? OnOptionChangedEnabled { + get => onOptionChangedEnabled; + set => this.onOptionChangedEnabled = value; + } + bool? onInitializedEnabled; + [Parameter] + bool? OnInitializedEnabled { + get => onInitializedEnabled; + set => this.onInitializedEnabled = value; + } protected override async Task OnInitAsync() { await base.OnInitAsync(); DevExpress.Viz.DxPolarChartInterop.ArgumentAxisClick += DxPolarChart_ArgumentAxisClick; @@ -304,6 +662,20 @@ return DevExpress.Viz.DxPolarChartInterop.Init(dxTarget, options); DevExpress.Viz.DxPolarChartInterop.SeriesClick += DxPolarChart_SeriesClick; DevExpress.Viz.DxPolarChartInterop.SeriesHoverChanged += DxPolarChart_SeriesHoverChanged; DevExpress.Viz.DxPolarChartInterop.SeriesSelectionChanged += DxPolarChart_SeriesSelectionChanged; + DevExpress.Viz.DxPolarChartInterop.Done += DxPolarChart_Done; + DevExpress.Viz.DxPolarChartInterop.PointClick += DxPolarChart_PointClick; + DevExpress.Viz.DxPolarChartInterop.PointHoverChanged += DxPolarChart_PointHoverChanged; + DevExpress.Viz.DxPolarChartInterop.PointSelectionChanged += DxPolarChart_PointSelectionChanged; + DevExpress.Viz.DxPolarChartInterop.TooltipHidden += DxPolarChart_TooltipHidden; + DevExpress.Viz.DxPolarChartInterop.TooltipShown += DxPolarChart_TooltipShown; + DevExpress.Viz.DxPolarChartInterop.Drawn += DxPolarChart_Drawn; + DevExpress.Viz.DxPolarChartInterop.Exported += DxPolarChart_Exported; + DevExpress.Viz.DxPolarChartInterop.Exporting += DxPolarChart_Exporting; + DevExpress.Viz.DxPolarChartInterop.FileSaving += DxPolarChart_FileSaving; + DevExpress.Viz.DxPolarChartInterop.IncidentOccurred += DxPolarChart_IncidentOccurred; + DevExpress.Viz.DxPolarChartInterop.Disposing += DxPolarChart_Disposing; + DevExpress.Viz.DxPolarChartInterop.OptionChanged += DxPolarChart_OptionChanged; + DevExpress.Viz.DxPolarChartInterop.Initialized += DxPolarChart_Initialized; } [Parameter] Action ArgumentAxisClick { get; set; } @@ -340,11 +712,123 @@ return DevExpress.Viz.DxPolarChartInterop.Init(dxTarget, options); SeriesSelectionChanged?.Invoke(); } } + [Parameter] + Action Done { get; set; } + void DxPolarChart_Done(object sender, JQueryEventArgs e) { + if (e.Identifier == Id) { + Done?.Invoke(); + } + } + [Parameter] + Action PointClick { get; set; } + void DxPolarChart_PointClick(object sender, JQueryEventArgs e) { + if (e.Identifier == Id) { + PointClick?.Invoke(); + } + } + [Parameter] + Action PointHoverChanged { get; set; } + void DxPolarChart_PointHoverChanged(object sender, JQueryEventArgs e) { + if (e.Identifier == Id) { + PointHoverChanged?.Invoke(); + } + } + [Parameter] + Action PointSelectionChanged { get; set; } + void DxPolarChart_PointSelectionChanged(object sender, JQueryEventArgs e) { + if (e.Identifier == Id) { + PointSelectionChanged?.Invoke(); + } + } + [Parameter] + Action TooltipHidden { get; set; } + void DxPolarChart_TooltipHidden(object sender, JQueryEventArgs e) { + if (e.Identifier == Id) { + TooltipHidden?.Invoke(); + } + } + [Parameter] + Action TooltipShown { get; set; } + void DxPolarChart_TooltipShown(object sender, JQueryEventArgs e) { + if (e.Identifier == Id) { + TooltipShown?.Invoke(); + } + } + [Parameter] + Action Drawn { get; set; } + void DxPolarChart_Drawn(object sender, JQueryEventArgs e) { + if (e.Identifier == Id) { + Drawn?.Invoke(); + } + } + [Parameter] + Action Exported { get; set; } + void DxPolarChart_Exported(object sender, JQueryEventArgs e) { + if (e.Identifier == Id) { + Exported?.Invoke(); + } + } + [Parameter] + Action Exporting { get; set; } + void DxPolarChart_Exporting(object sender, JQueryEventArgs e) { + if (e.Identifier == Id) { + Exporting?.Invoke(); + } + } + [Parameter] + Action FileSaving { get; set; } + void DxPolarChart_FileSaving(object sender, JQueryEventArgs e) { + if (e.Identifier == Id) { + FileSaving?.Invoke(); + } + } + [Parameter] + Action IncidentOccurred { get; set; } + void DxPolarChart_IncidentOccurred(object sender, JQueryEventArgs e) { + if (e.Identifier == Id) { + IncidentOccurred?.Invoke(); + } + } + [Parameter] + Action Disposing { get; set; } + void DxPolarChart_Disposing(object sender, JQueryEventArgs e) { + if (e.Identifier == Id) { + Disposing?.Invoke(); + } + } + [Parameter] + Action OptionChanged { get; set; } + void DxPolarChart_OptionChanged(object sender, JQueryEventArgs e) { + if (e.Identifier == Id) { + OptionChanged?.Invoke(); + } + } + [Parameter] + Action Initialized { get; set; } + void DxPolarChart_Initialized(object sender, JQueryEventArgs e) { + if (e.Identifier == Id) { + Initialized?.Invoke(); + } + } public void Dispose() { DevExpress.Viz.DxPolarChartInterop.ArgumentAxisClick -= DxPolarChart_ArgumentAxisClick; DevExpress.Viz.DxPolarChartInterop.LegendClick -= DxPolarChart_LegendClick; DevExpress.Viz.DxPolarChartInterop.SeriesClick -= DxPolarChart_SeriesClick; DevExpress.Viz.DxPolarChartInterop.SeriesHoverChanged -= DxPolarChart_SeriesHoverChanged; DevExpress.Viz.DxPolarChartInterop.SeriesSelectionChanged -= DxPolarChart_SeriesSelectionChanged; + DevExpress.Viz.DxPolarChartInterop.Done -= DxPolarChart_Done; + DevExpress.Viz.DxPolarChartInterop.PointClick -= DxPolarChart_PointClick; + DevExpress.Viz.DxPolarChartInterop.PointHoverChanged -= DxPolarChart_PointHoverChanged; + DevExpress.Viz.DxPolarChartInterop.PointSelectionChanged -= DxPolarChart_PointSelectionChanged; + DevExpress.Viz.DxPolarChartInterop.TooltipHidden -= DxPolarChart_TooltipHidden; + DevExpress.Viz.DxPolarChartInterop.TooltipShown -= DxPolarChart_TooltipShown; + DevExpress.Viz.DxPolarChartInterop.Drawn -= DxPolarChart_Drawn; + DevExpress.Viz.DxPolarChartInterop.Exported -= DxPolarChart_Exported; + DevExpress.Viz.DxPolarChartInterop.Exporting -= DxPolarChart_Exporting; + DevExpress.Viz.DxPolarChartInterop.FileSaving -= DxPolarChart_FileSaving; + DevExpress.Viz.DxPolarChartInterop.IncidentOccurred -= DxPolarChart_IncidentOccurred; + DevExpress.Viz.DxPolarChartInterop.Disposing -= DxPolarChart_Disposing; + DevExpress.Viz.DxPolarChartInterop.OptionChanged -= DxPolarChart_OptionChanged; + DevExpress.Viz.DxPolarChartInterop.Initialized -= DxPolarChart_Initialized; } } diff --git a/sources/BlazorDevExtreme/Components/DxPopover.cshtml b/sources/BlazorDevExtreme/Components/DxPopover.cshtml index cbf0711..76f38fd 100644 --- a/sources/BlazorDevExtreme/Components/DxPopover.cshtml +++ b/sources/BlazorDevExtreme/Components/DxPopover.cshtml @@ -20,10 +20,49 @@ showTitle = showTitle, target = target, width = width, + container = container, + dragEnabled = dragEnabled, + focusStateEnabled = focusStateEnabled, + fullScreen = fullScreen, + resizeEnabled = resizeEnabled, + showCloseButton = showCloseButton, + title = title, + titleTemplate = titleTemplate, + toolbarItems = toolbarItems, + closeOnBackButton = closeOnBackButton, + contentTemplate = contentTemplate, + deferRendering = deferRendering, + maxHeight = maxHeight, + maxWidth = maxWidth, + minHeight = minHeight, + minWidth = minWidth, + shadingColor = shadingColor, + visible = visible, + accessKey = accessKey, + activeStateEnabled = activeStateEnabled, + disabled = disabled, + hint = hint, + hoverStateEnabled = hoverStateEnabled, + tabIndex = tabIndex, + bindingOptions = bindingOptions, + elementAttr = elementAttr, + rtlEnabled = rtlEnabled, + onResizeEnabled = onResizeEnabled, + onResizeEndEnabled = onResizeEndEnabled, + onResizeStartEnabled = onResizeStartEnabled, + onTitleRenderedEnabled = onTitleRenderedEnabled, + onHiddenEnabled = onHiddenEnabled, + onHidingEnabled = onHidingEnabled, + onShowingEnabled = onShowingEnabled, + onShownEnabled = onShownEnabled, + onContentReadyEnabled = onContentReadyEnabled, + onDisposingEnabled = onDisposingEnabled, + onOptionChangedEnabled = onOptionChangedEnabled, + onInitializedEnabled = onInitializedEnabled, }; } protected override Task Init(DevExpress.Ui.DxPopoverOptions options) { -return DevExpress.Ui.DxPopoverInterop.Init(dxTarget, options); + return DevExpress.Ui.DxPopoverInterop.Init(dxTarget, options); } object animation; [Parameter] @@ -88,7 +127,7 @@ return DevExpress.Ui.DxPopoverInterop.Init(dxTarget, options); bool? shading; [Parameter] bool? Shading { - get => isInitialized ? DevExpress.Ui.DxPopoverInterop.GetShading(dxTarget).Result : shading; + get => isInitialized ? (bool?)DevExpress.Ui.DxPopoverInterop.GetShading(dxTarget).Result : shading; set { if (isInitialized) { DevExpress.Ui.DxPopoverInterop.SetShading(dxTarget, value); @@ -112,7 +151,7 @@ return DevExpress.Ui.DxPopoverInterop.Init(dxTarget, options); bool? showTitle; [Parameter] bool? ShowTitle { - get => isInitialized ? DevExpress.Ui.DxPopoverInterop.GetShowTitle(dxTarget).Result : showTitle; + get => isInitialized ? (bool?)DevExpress.Ui.DxPopoverInterop.GetShowTitle(dxTarget).Result : showTitle; set { if (isInitialized) { DevExpress.Ui.DxPopoverInterop.SetShowTitle(dxTarget, value); @@ -145,8 +184,500 @@ return DevExpress.Ui.DxPopoverInterop.Init(dxTarget, options); } } } + object container; + [Parameter] + object Container { + get => isInitialized ? DevExpress.Ui.DxPopoverInterop.GetContainer(dxTarget).Result : container; + set { + if (isInitialized) { + DevExpress.Ui.DxPopoverInterop.SetContainer(dxTarget, value); + } else { + this.container = value; + } + } + } + bool? dragEnabled; + [Parameter] + bool? DragEnabled { + get => isInitialized ? (bool?)DevExpress.Ui.DxPopoverInterop.GetDragEnabled(dxTarget).Result : dragEnabled; + set { + if (isInitialized) { + DevExpress.Ui.DxPopoverInterop.SetDragEnabled(dxTarget, value); + } else { + this.dragEnabled = value; + } + } + } + bool? focusStateEnabled; + [Parameter] + bool? FocusStateEnabled { + get => isInitialized ? (bool?)DevExpress.Ui.DxPopoverInterop.GetFocusStateEnabled(dxTarget).Result : focusStateEnabled; + set { + if (isInitialized) { + DevExpress.Ui.DxPopoverInterop.SetFocusStateEnabled(dxTarget, value); + } else { + this.focusStateEnabled = value; + } + } + } + bool? fullScreen; + [Parameter] + bool? FullScreen { + get => isInitialized ? (bool?)DevExpress.Ui.DxPopoverInterop.GetFullScreen(dxTarget).Result : fullScreen; + set { + if (isInitialized) { + DevExpress.Ui.DxPopoverInterop.SetFullScreen(dxTarget, value); + } else { + this.fullScreen = value; + } + } + } + bool? resizeEnabled; + [Parameter] + bool? ResizeEnabled { + get => isInitialized ? (bool?)DevExpress.Ui.DxPopoverInterop.GetResizeEnabled(dxTarget).Result : resizeEnabled; + set { + if (isInitialized) { + DevExpress.Ui.DxPopoverInterop.SetResizeEnabled(dxTarget, value); + } else { + this.resizeEnabled = value; + } + } + } + bool? showCloseButton; + [Parameter] + bool? ShowCloseButton { + get => isInitialized ? (bool?)DevExpress.Ui.DxPopoverInterop.GetShowCloseButton(dxTarget).Result : showCloseButton; + set { + if (isInitialized) { + DevExpress.Ui.DxPopoverInterop.SetShowCloseButton(dxTarget, value); + } else { + this.showCloseButton = value; + } + } + } + string title; + [Parameter] + string Title { + get => isInitialized ? (string)DevExpress.Ui.DxPopoverInterop.GetTitle(dxTarget).Result : title; + set { + if (isInitialized) { + DevExpress.Ui.DxPopoverInterop.SetTitle(dxTarget, value); + } else { + this.title = value; + } + } + } + object titleTemplate; + [Parameter] + object TitleTemplate { + get => isInitialized ? DevExpress.Ui.DxPopoverInterop.GetTitleTemplate(dxTarget).Result : titleTemplate; + set { + if (isInitialized) { + DevExpress.Ui.DxPopoverInterop.SetTitleTemplate(dxTarget, value); + } else { + this.titleTemplate = value; + } + } + } + object toolbarItems; + [Parameter] + object ToolbarItems { + get => isInitialized ? DevExpress.Ui.DxPopoverInterop.GetToolbarItems(dxTarget).Result : toolbarItems; + set { + if (isInitialized) { + DevExpress.Ui.DxPopoverInterop.SetToolbarItems(dxTarget, value); + } else { + this.toolbarItems = value; + } + } + } + bool? closeOnBackButton; + [Parameter] + bool? CloseOnBackButton { + get => isInitialized ? (bool?)DevExpress.Ui.DxPopoverInterop.GetCloseOnBackButton(dxTarget).Result : closeOnBackButton; + set { + if (isInitialized) { + DevExpress.Ui.DxPopoverInterop.SetCloseOnBackButton(dxTarget, value); + } else { + this.closeOnBackButton = value; + } + } + } + object contentTemplate; + [Parameter] + object ContentTemplate { + get => isInitialized ? DevExpress.Ui.DxPopoverInterop.GetContentTemplate(dxTarget).Result : contentTemplate; + set { + if (isInitialized) { + DevExpress.Ui.DxPopoverInterop.SetContentTemplate(dxTarget, value); + } else { + this.contentTemplate = value; + } + } + } + bool? deferRendering; + [Parameter] + bool? DeferRendering { + get => isInitialized ? (bool?)DevExpress.Ui.DxPopoverInterop.GetDeferRendering(dxTarget).Result : deferRendering; + set { + if (isInitialized) { + DevExpress.Ui.DxPopoverInterop.SetDeferRendering(dxTarget, value); + } else { + this.deferRendering = value; + } + } + } + object maxHeight; + [Parameter] + object MaxHeight { + get => isInitialized ? DevExpress.Ui.DxPopoverInterop.GetMaxHeight(dxTarget).Result : maxHeight; + set { + if (isInitialized) { + DevExpress.Ui.DxPopoverInterop.SetMaxHeight(dxTarget, value); + } else { + this.maxHeight = value; + } + } + } + object maxWidth; + [Parameter] + object MaxWidth { + get => isInitialized ? DevExpress.Ui.DxPopoverInterop.GetMaxWidth(dxTarget).Result : maxWidth; + set { + if (isInitialized) { + DevExpress.Ui.DxPopoverInterop.SetMaxWidth(dxTarget, value); + } else { + this.maxWidth = value; + } + } + } + object minHeight; + [Parameter] + object MinHeight { + get => isInitialized ? DevExpress.Ui.DxPopoverInterop.GetMinHeight(dxTarget).Result : minHeight; + set { + if (isInitialized) { + DevExpress.Ui.DxPopoverInterop.SetMinHeight(dxTarget, value); + } else { + this.minHeight = value; + } + } + } + object minWidth; + [Parameter] + object MinWidth { + get => isInitialized ? DevExpress.Ui.DxPopoverInterop.GetMinWidth(dxTarget).Result : minWidth; + set { + if (isInitialized) { + DevExpress.Ui.DxPopoverInterop.SetMinWidth(dxTarget, value); + } else { + this.minWidth = value; + } + } + } + string shadingColor; + [Parameter] + string ShadingColor { + get => isInitialized ? (string)DevExpress.Ui.DxPopoverInterop.GetShadingColor(dxTarget).Result : shadingColor; + set { + if (isInitialized) { + DevExpress.Ui.DxPopoverInterop.SetShadingColor(dxTarget, value); + } else { + this.shadingColor = value; + } + } + } + bool? visible; + [Parameter] + bool? Visible { + get => isInitialized ? (bool?)DevExpress.Ui.DxPopoverInterop.GetVisible(dxTarget).Result : visible; + set { + if (isInitialized) { + DevExpress.Ui.DxPopoverInterop.SetVisible(dxTarget, value); + } else { + this.visible = value; + } + } + } + string accessKey; + [Parameter] + string AccessKey { + get => isInitialized ? (string)DevExpress.Ui.DxPopoverInterop.GetAccessKey(dxTarget).Result : accessKey; + set { + if (isInitialized) { + DevExpress.Ui.DxPopoverInterop.SetAccessKey(dxTarget, value); + } else { + this.accessKey = value; + } + } + } + bool? activeStateEnabled; + [Parameter] + bool? ActiveStateEnabled { + get => isInitialized ? (bool?)DevExpress.Ui.DxPopoverInterop.GetActiveStateEnabled(dxTarget).Result : activeStateEnabled; + set { + if (isInitialized) { + DevExpress.Ui.DxPopoverInterop.SetActiveStateEnabled(dxTarget, value); + } else { + this.activeStateEnabled = value; + } + } + } + bool? disabled; + [Parameter] + bool? Disabled { + get => isInitialized ? (bool?)DevExpress.Ui.DxPopoverInterop.GetDisabled(dxTarget).Result : disabled; + set { + if (isInitialized) { + DevExpress.Ui.DxPopoverInterop.SetDisabled(dxTarget, value); + } else { + this.disabled = value; + } + } + } + string hint; + [Parameter] + string Hint { + get => isInitialized ? (string)DevExpress.Ui.DxPopoverInterop.GetHint(dxTarget).Result : hint; + set { + if (isInitialized) { + DevExpress.Ui.DxPopoverInterop.SetHint(dxTarget, value); + } else { + this.hint = value; + } + } + } + bool? hoverStateEnabled; + [Parameter] + bool? HoverStateEnabled { + get => isInitialized ? (bool?)DevExpress.Ui.DxPopoverInterop.GetHoverStateEnabled(dxTarget).Result : hoverStateEnabled; + set { + if (isInitialized) { + DevExpress.Ui.DxPopoverInterop.SetHoverStateEnabled(dxTarget, value); + } else { + this.hoverStateEnabled = value; + } + } + } + float? tabIndex; + [Parameter] + float? TabIndex { + get => isInitialized ? (float?)DevExpress.Ui.DxPopoverInterop.GetTabIndex(dxTarget).Result : tabIndex; + set { + if (isInitialized) { + DevExpress.Ui.DxPopoverInterop.SetTabIndex(dxTarget, value); + } else { + this.tabIndex = value; + } + } + } + object bindingOptions; + [Parameter] + object BindingOptions { + get => isInitialized ? DevExpress.Ui.DxPopoverInterop.GetBindingOptions(dxTarget).Result : bindingOptions; + set { + if (isInitialized) { + DevExpress.Ui.DxPopoverInterop.SetBindingOptions(dxTarget, value); + } else { + this.bindingOptions = value; + } + } + } + object elementAttr; + [Parameter] + object ElementAttr { + get => isInitialized ? DevExpress.Ui.DxPopoverInterop.GetElementAttr(dxTarget).Result : elementAttr; + set { + if (isInitialized) { + DevExpress.Ui.DxPopoverInterop.SetElementAttr(dxTarget, value); + } else { + this.elementAttr = value; + } + } + } + bool? rtlEnabled; + [Parameter] + bool? RtlEnabled { + get => isInitialized ? (bool?)DevExpress.Ui.DxPopoverInterop.GetRtlEnabled(dxTarget).Result : rtlEnabled; + set { + if (isInitialized) { + DevExpress.Ui.DxPopoverInterop.SetRtlEnabled(dxTarget, value); + } else { + this.rtlEnabled = value; + } + } + } + bool? onResizeEnabled; + [Parameter] + bool? OnResizeEnabled { + get => onResizeEnabled; + set => this.onResizeEnabled = value; + } + bool? onResizeEndEnabled; + [Parameter] + bool? OnResizeEndEnabled { + get => onResizeEndEnabled; + set => this.onResizeEndEnabled = value; + } + bool? onResizeStartEnabled; + [Parameter] + bool? OnResizeStartEnabled { + get => onResizeStartEnabled; + set => this.onResizeStartEnabled = value; + } + bool? onTitleRenderedEnabled; + [Parameter] + bool? OnTitleRenderedEnabled { + get => onTitleRenderedEnabled; + set => this.onTitleRenderedEnabled = value; + } + bool? onHiddenEnabled; + [Parameter] + bool? OnHiddenEnabled { + get => onHiddenEnabled; + set => this.onHiddenEnabled = value; + } + bool? onHidingEnabled; + [Parameter] + bool? OnHidingEnabled { + get => onHidingEnabled; + set => this.onHidingEnabled = value; + } + bool? onShowingEnabled; + [Parameter] + bool? OnShowingEnabled { + get => onShowingEnabled; + set => this.onShowingEnabled = value; + } + bool? onShownEnabled; + [Parameter] + bool? OnShownEnabled { + get => onShownEnabled; + set => this.onShownEnabled = value; + } + bool? onContentReadyEnabled; + [Parameter] + bool? OnContentReadyEnabled { + get => onContentReadyEnabled; + set => this.onContentReadyEnabled = value; + } + bool? onDisposingEnabled; + [Parameter] + bool? OnDisposingEnabled { + get => onDisposingEnabled; + set => this.onDisposingEnabled = value; + } + bool? onOptionChangedEnabled; + [Parameter] + bool? OnOptionChangedEnabled { + get => onOptionChangedEnabled; + set => this.onOptionChangedEnabled = value; + } + bool? onInitializedEnabled; + [Parameter] + bool? OnInitializedEnabled { + get => onInitializedEnabled; + set => this.onInitializedEnabled = value; + } protected override async Task OnInitAsync() { await base.OnInitAsync(); + DevExpress.Ui.DxPopoverInterop.Resize += DxPopover_Resize; + DevExpress.Ui.DxPopoverInterop.ResizeEnd += DxPopover_ResizeEnd; + DevExpress.Ui.DxPopoverInterop.ResizeStart += DxPopover_ResizeStart; + DevExpress.Ui.DxPopoverInterop.TitleRendered += DxPopover_TitleRendered; + DevExpress.Ui.DxPopoverInterop.Hidden += DxPopover_Hidden; + DevExpress.Ui.DxPopoverInterop.Hiding += DxPopover_Hiding; + DevExpress.Ui.DxPopoverInterop.Showing += DxPopover_Showing; + DevExpress.Ui.DxPopoverInterop.Shown += DxPopover_Shown; + DevExpress.Ui.DxPopoverInterop.ContentReady += DxPopover_ContentReady; + DevExpress.Ui.DxPopoverInterop.Disposing += DxPopover_Disposing; + DevExpress.Ui.DxPopoverInterop.OptionChanged += DxPopover_OptionChanged; + DevExpress.Ui.DxPopoverInterop.Initialized += DxPopover_Initialized; + } + [Parameter] + Action Resize { get; set; } + void DxPopover_Resize(object sender, JQueryEventArgs e) { + if (e.Identifier == Id) { + Resize?.Invoke(); + } + } + [Parameter] + Action ResizeEnd { get; set; } + void DxPopover_ResizeEnd(object sender, JQueryEventArgs e) { + if (e.Identifier == Id) { + ResizeEnd?.Invoke(); + } + } + [Parameter] + Action ResizeStart { get; set; } + void DxPopover_ResizeStart(object sender, JQueryEventArgs e) { + if (e.Identifier == Id) { + ResizeStart?.Invoke(); + } + } + [Parameter] + Action TitleRendered { get; set; } + void DxPopover_TitleRendered(object sender, JQueryEventArgs e) { + if (e.Identifier == Id) { + TitleRendered?.Invoke(); + } + } + [Parameter] + Action Hidden { get; set; } + void DxPopover_Hidden(object sender, JQueryEventArgs e) { + if (e.Identifier == Id) { + Hidden?.Invoke(); + } + } + [Parameter] + Action Hiding { get; set; } + void DxPopover_Hiding(object sender, JQueryEventArgs e) { + if (e.Identifier == Id) { + Hiding?.Invoke(); + } + } + [Parameter] + Action Showing { get; set; } + void DxPopover_Showing(object sender, JQueryEventArgs e) { + if (e.Identifier == Id) { + Showing?.Invoke(); + } + } + [Parameter] + Action Shown { get; set; } + void DxPopover_Shown(object sender, JQueryEventArgs e) { + if (e.Identifier == Id) { + Shown?.Invoke(); + } + } + [Parameter] + Action ContentReady { get; set; } + void DxPopover_ContentReady(object sender, JQueryEventArgs e) { + if (e.Identifier == Id) { + ContentReady?.Invoke(); + } + } + [Parameter] + Action Disposing { get; set; } + void DxPopover_Disposing(object sender, JQueryEventArgs e) { + if (e.Identifier == Id) { + Disposing?.Invoke(); + } + } + [Parameter] + Action OptionChanged { get; set; } + void DxPopover_OptionChanged(object sender, JQueryEventArgs e) { + if (e.Identifier == Id) { + OptionChanged?.Invoke(); + } + } + [Parameter] + Action Initialized { get; set; } + void DxPopover_Initialized(object sender, JQueryEventArgs e) { + if (e.Identifier == Id) { + Initialized?.Invoke(); + } } public object Show() { return DevExpress.Ui.DxPopoverInterop.Show(dxTarget).Result; @@ -155,5 +686,17 @@ return DevExpress.Ui.DxPopoverInterop.Init(dxTarget, options); return DevExpress.Ui.DxPopoverInterop.Show(dxTarget, target).Result; } public void Dispose() { + DevExpress.Ui.DxPopoverInterop.Resize -= DxPopover_Resize; + DevExpress.Ui.DxPopoverInterop.ResizeEnd -= DxPopover_ResizeEnd; + DevExpress.Ui.DxPopoverInterop.ResizeStart -= DxPopover_ResizeStart; + DevExpress.Ui.DxPopoverInterop.TitleRendered -= DxPopover_TitleRendered; + DevExpress.Ui.DxPopoverInterop.Hidden -= DxPopover_Hidden; + DevExpress.Ui.DxPopoverInterop.Hiding -= DxPopover_Hiding; + DevExpress.Ui.DxPopoverInterop.Showing -= DxPopover_Showing; + DevExpress.Ui.DxPopoverInterop.Shown -= DxPopover_Shown; + DevExpress.Ui.DxPopoverInterop.ContentReady -= DxPopover_ContentReady; + DevExpress.Ui.DxPopoverInterop.Disposing -= DxPopover_Disposing; + DevExpress.Ui.DxPopoverInterop.OptionChanged -= DxPopover_OptionChanged; + DevExpress.Ui.DxPopoverInterop.Initialized -= DxPopover_Initialized; } } diff --git a/sources/BlazorDevExtreme/Components/DxPopup.cshtml b/sources/BlazorDevExtreme/Components/DxPopup.cshtml index 444c532..43aeefc 100644 --- a/sources/BlazorDevExtreme/Components/DxPopup.cshtml +++ b/sources/BlazorDevExtreme/Components/DxPopup.cshtml @@ -24,14 +24,42 @@ titleTemplate = titleTemplate, toolbarItems = toolbarItems, width = width, + closeOnBackButton = closeOnBackButton, + closeOnOutsideClick = closeOnOutsideClick, + contentTemplate = contentTemplate, + deferRendering = deferRendering, + maxHeight = maxHeight, + maxWidth = maxWidth, + minHeight = minHeight, + minWidth = minWidth, + shading = shading, + shadingColor = shadingColor, + visible = visible, + accessKey = accessKey, + activeStateEnabled = activeStateEnabled, + disabled = disabled, + hint = hint, + hoverStateEnabled = hoverStateEnabled, + tabIndex = tabIndex, + bindingOptions = bindingOptions, + elementAttr = elementAttr, + rtlEnabled = rtlEnabled, onResizeEnabled = onResizeEnabled, onResizeEndEnabled = onResizeEndEnabled, onResizeStartEnabled = onResizeStartEnabled, onTitleRenderedEnabled = onTitleRenderedEnabled, + onHiddenEnabled = onHiddenEnabled, + onHidingEnabled = onHidingEnabled, + onShowingEnabled = onShowingEnabled, + onShownEnabled = onShownEnabled, + onContentReadyEnabled = onContentReadyEnabled, + onDisposingEnabled = onDisposingEnabled, + onOptionChangedEnabled = onOptionChangedEnabled, + onInitializedEnabled = onInitializedEnabled, }; } protected override Task Init(DevExpress.Ui.DxPopupOptions options) { -return DevExpress.Ui.DxPopupInterop.Init(dxTarget, options); + return DevExpress.Ui.DxPopupInterop.Init(dxTarget, options); } object animation; [Parameter] @@ -60,7 +88,7 @@ return DevExpress.Ui.DxPopupInterop.Init(dxTarget, options); bool? dragEnabled; [Parameter] bool? DragEnabled { - get => isInitialized ? DevExpress.Ui.DxPopupInterop.GetDragEnabled(dxTarget).Result : dragEnabled; + get => isInitialized ? (bool?)DevExpress.Ui.DxPopupInterop.GetDragEnabled(dxTarget).Result : dragEnabled; set { if (isInitialized) { DevExpress.Ui.DxPopupInterop.SetDragEnabled(dxTarget, value); @@ -72,7 +100,7 @@ return DevExpress.Ui.DxPopupInterop.Init(dxTarget, options); bool? focusStateEnabled; [Parameter] bool? FocusStateEnabled { - get => isInitialized ? DevExpress.Ui.DxPopupInterop.GetFocusStateEnabled(dxTarget).Result : focusStateEnabled; + get => isInitialized ? (bool?)DevExpress.Ui.DxPopupInterop.GetFocusStateEnabled(dxTarget).Result : focusStateEnabled; set { if (isInitialized) { DevExpress.Ui.DxPopupInterop.SetFocusStateEnabled(dxTarget, value); @@ -84,7 +112,7 @@ return DevExpress.Ui.DxPopupInterop.Init(dxTarget, options); bool? fullScreen; [Parameter] bool? FullScreen { - get => isInitialized ? DevExpress.Ui.DxPopupInterop.GetFullScreen(dxTarget).Result : fullScreen; + get => isInitialized ? (bool?)DevExpress.Ui.DxPopupInterop.GetFullScreen(dxTarget).Result : fullScreen; set { if (isInitialized) { DevExpress.Ui.DxPopupInterop.SetFullScreen(dxTarget, value); @@ -120,7 +148,7 @@ return DevExpress.Ui.DxPopupInterop.Init(dxTarget, options); bool? resizeEnabled; [Parameter] bool? ResizeEnabled { - get => isInitialized ? DevExpress.Ui.DxPopupInterop.GetResizeEnabled(dxTarget).Result : resizeEnabled; + get => isInitialized ? (bool?)DevExpress.Ui.DxPopupInterop.GetResizeEnabled(dxTarget).Result : resizeEnabled; set { if (isInitialized) { DevExpress.Ui.DxPopupInterop.SetResizeEnabled(dxTarget, value); @@ -132,7 +160,7 @@ return DevExpress.Ui.DxPopupInterop.Init(dxTarget, options); bool? showCloseButton; [Parameter] bool? ShowCloseButton { - get => isInitialized ? DevExpress.Ui.DxPopupInterop.GetShowCloseButton(dxTarget).Result : showCloseButton; + get => isInitialized ? (bool?)DevExpress.Ui.DxPopupInterop.GetShowCloseButton(dxTarget).Result : showCloseButton; set { if (isInitialized) { DevExpress.Ui.DxPopupInterop.SetShowCloseButton(dxTarget, value); @@ -144,7 +172,7 @@ return DevExpress.Ui.DxPopupInterop.Init(dxTarget, options); bool? showTitle; [Parameter] bool? ShowTitle { - get => isInitialized ? DevExpress.Ui.DxPopupInterop.GetShowTitle(dxTarget).Result : showTitle; + get => isInitialized ? (bool?)DevExpress.Ui.DxPopupInterop.GetShowTitle(dxTarget).Result : showTitle; set { if (isInitialized) { DevExpress.Ui.DxPopupInterop.SetShowTitle(dxTarget, value); @@ -156,7 +184,7 @@ return DevExpress.Ui.DxPopupInterop.Init(dxTarget, options); string title; [Parameter] string Title { - get => isInitialized ? DevExpress.Ui.DxPopupInterop.GetTitle(dxTarget).Result : title; + get => isInitialized ? (string)DevExpress.Ui.DxPopupInterop.GetTitle(dxTarget).Result : title; set { if (isInitialized) { DevExpress.Ui.DxPopupInterop.SetTitle(dxTarget, value); @@ -201,6 +229,246 @@ return DevExpress.Ui.DxPopupInterop.Init(dxTarget, options); } } } + bool? closeOnBackButton; + [Parameter] + bool? CloseOnBackButton { + get => isInitialized ? (bool?)DevExpress.Ui.DxPopupInterop.GetCloseOnBackButton(dxTarget).Result : closeOnBackButton; + set { + if (isInitialized) { + DevExpress.Ui.DxPopupInterop.SetCloseOnBackButton(dxTarget, value); + } else { + this.closeOnBackButton = value; + } + } + } + object closeOnOutsideClick; + [Parameter] + object CloseOnOutsideClick { + get => isInitialized ? DevExpress.Ui.DxPopupInterop.GetCloseOnOutsideClick(dxTarget).Result : closeOnOutsideClick; + set { + if (isInitialized) { + DevExpress.Ui.DxPopupInterop.SetCloseOnOutsideClick(dxTarget, value); + } else { + this.closeOnOutsideClick = value; + } + } + } + object contentTemplate; + [Parameter] + object ContentTemplate { + get => isInitialized ? DevExpress.Ui.DxPopupInterop.GetContentTemplate(dxTarget).Result : contentTemplate; + set { + if (isInitialized) { + DevExpress.Ui.DxPopupInterop.SetContentTemplate(dxTarget, value); + } else { + this.contentTemplate = value; + } + } + } + bool? deferRendering; + [Parameter] + bool? DeferRendering { + get => isInitialized ? (bool?)DevExpress.Ui.DxPopupInterop.GetDeferRendering(dxTarget).Result : deferRendering; + set { + if (isInitialized) { + DevExpress.Ui.DxPopupInterop.SetDeferRendering(dxTarget, value); + } else { + this.deferRendering = value; + } + } + } + object maxHeight; + [Parameter] + object MaxHeight { + get => isInitialized ? DevExpress.Ui.DxPopupInterop.GetMaxHeight(dxTarget).Result : maxHeight; + set { + if (isInitialized) { + DevExpress.Ui.DxPopupInterop.SetMaxHeight(dxTarget, value); + } else { + this.maxHeight = value; + } + } + } + object maxWidth; + [Parameter] + object MaxWidth { + get => isInitialized ? DevExpress.Ui.DxPopupInterop.GetMaxWidth(dxTarget).Result : maxWidth; + set { + if (isInitialized) { + DevExpress.Ui.DxPopupInterop.SetMaxWidth(dxTarget, value); + } else { + this.maxWidth = value; + } + } + } + object minHeight; + [Parameter] + object MinHeight { + get => isInitialized ? DevExpress.Ui.DxPopupInterop.GetMinHeight(dxTarget).Result : minHeight; + set { + if (isInitialized) { + DevExpress.Ui.DxPopupInterop.SetMinHeight(dxTarget, value); + } else { + this.minHeight = value; + } + } + } + object minWidth; + [Parameter] + object MinWidth { + get => isInitialized ? DevExpress.Ui.DxPopupInterop.GetMinWidth(dxTarget).Result : minWidth; + set { + if (isInitialized) { + DevExpress.Ui.DxPopupInterop.SetMinWidth(dxTarget, value); + } else { + this.minWidth = value; + } + } + } + bool? shading; + [Parameter] + bool? Shading { + get => isInitialized ? (bool?)DevExpress.Ui.DxPopupInterop.GetShading(dxTarget).Result : shading; + set { + if (isInitialized) { + DevExpress.Ui.DxPopupInterop.SetShading(dxTarget, value); + } else { + this.shading = value; + } + } + } + string shadingColor; + [Parameter] + string ShadingColor { + get => isInitialized ? (string)DevExpress.Ui.DxPopupInterop.GetShadingColor(dxTarget).Result : shadingColor; + set { + if (isInitialized) { + DevExpress.Ui.DxPopupInterop.SetShadingColor(dxTarget, value); + } else { + this.shadingColor = value; + } + } + } + bool? visible; + [Parameter] + bool? Visible { + get => isInitialized ? (bool?)DevExpress.Ui.DxPopupInterop.GetVisible(dxTarget).Result : visible; + set { + if (isInitialized) { + DevExpress.Ui.DxPopupInterop.SetVisible(dxTarget, value); + } else { + this.visible = value; + } + } + } + string accessKey; + [Parameter] + string AccessKey { + get => isInitialized ? (string)DevExpress.Ui.DxPopupInterop.GetAccessKey(dxTarget).Result : accessKey; + set { + if (isInitialized) { + DevExpress.Ui.DxPopupInterop.SetAccessKey(dxTarget, value); + } else { + this.accessKey = value; + } + } + } + bool? activeStateEnabled; + [Parameter] + bool? ActiveStateEnabled { + get => isInitialized ? (bool?)DevExpress.Ui.DxPopupInterop.GetActiveStateEnabled(dxTarget).Result : activeStateEnabled; + set { + if (isInitialized) { + DevExpress.Ui.DxPopupInterop.SetActiveStateEnabled(dxTarget, value); + } else { + this.activeStateEnabled = value; + } + } + } + bool? disabled; + [Parameter] + bool? Disabled { + get => isInitialized ? (bool?)DevExpress.Ui.DxPopupInterop.GetDisabled(dxTarget).Result : disabled; + set { + if (isInitialized) { + DevExpress.Ui.DxPopupInterop.SetDisabled(dxTarget, value); + } else { + this.disabled = value; + } + } + } + string hint; + [Parameter] + string Hint { + get => isInitialized ? (string)DevExpress.Ui.DxPopupInterop.GetHint(dxTarget).Result : hint; + set { + if (isInitialized) { + DevExpress.Ui.DxPopupInterop.SetHint(dxTarget, value); + } else { + this.hint = value; + } + } + } + bool? hoverStateEnabled; + [Parameter] + bool? HoverStateEnabled { + get => isInitialized ? (bool?)DevExpress.Ui.DxPopupInterop.GetHoverStateEnabled(dxTarget).Result : hoverStateEnabled; + set { + if (isInitialized) { + DevExpress.Ui.DxPopupInterop.SetHoverStateEnabled(dxTarget, value); + } else { + this.hoverStateEnabled = value; + } + } + } + float? tabIndex; + [Parameter] + float? TabIndex { + get => isInitialized ? (float?)DevExpress.Ui.DxPopupInterop.GetTabIndex(dxTarget).Result : tabIndex; + set { + if (isInitialized) { + DevExpress.Ui.DxPopupInterop.SetTabIndex(dxTarget, value); + } else { + this.tabIndex = value; + } + } + } + object bindingOptions; + [Parameter] + object BindingOptions { + get => isInitialized ? DevExpress.Ui.DxPopupInterop.GetBindingOptions(dxTarget).Result : bindingOptions; + set { + if (isInitialized) { + DevExpress.Ui.DxPopupInterop.SetBindingOptions(dxTarget, value); + } else { + this.bindingOptions = value; + } + } + } + object elementAttr; + [Parameter] + object ElementAttr { + get => isInitialized ? DevExpress.Ui.DxPopupInterop.GetElementAttr(dxTarget).Result : elementAttr; + set { + if (isInitialized) { + DevExpress.Ui.DxPopupInterop.SetElementAttr(dxTarget, value); + } else { + this.elementAttr = value; + } + } + } + bool? rtlEnabled; + [Parameter] + bool? RtlEnabled { + get => isInitialized ? (bool?)DevExpress.Ui.DxPopupInterop.GetRtlEnabled(dxTarget).Result : rtlEnabled; + set { + if (isInitialized) { + DevExpress.Ui.DxPopupInterop.SetRtlEnabled(dxTarget, value); + } else { + this.rtlEnabled = value; + } + } + } bool? onResizeEnabled; [Parameter] bool? OnResizeEnabled { @@ -225,12 +493,68 @@ return DevExpress.Ui.DxPopupInterop.Init(dxTarget, options); get => onTitleRenderedEnabled; set => this.onTitleRenderedEnabled = value; } + bool? onHiddenEnabled; + [Parameter] + bool? OnHiddenEnabled { + get => onHiddenEnabled; + set => this.onHiddenEnabled = value; + } + bool? onHidingEnabled; + [Parameter] + bool? OnHidingEnabled { + get => onHidingEnabled; + set => this.onHidingEnabled = value; + } + bool? onShowingEnabled; + [Parameter] + bool? OnShowingEnabled { + get => onShowingEnabled; + set => this.onShowingEnabled = value; + } + bool? onShownEnabled; + [Parameter] + bool? OnShownEnabled { + get => onShownEnabled; + set => this.onShownEnabled = value; + } + bool? onContentReadyEnabled; + [Parameter] + bool? OnContentReadyEnabled { + get => onContentReadyEnabled; + set => this.onContentReadyEnabled = value; + } + bool? onDisposingEnabled; + [Parameter] + bool? OnDisposingEnabled { + get => onDisposingEnabled; + set => this.onDisposingEnabled = value; + } + bool? onOptionChangedEnabled; + [Parameter] + bool? OnOptionChangedEnabled { + get => onOptionChangedEnabled; + set => this.onOptionChangedEnabled = value; + } + bool? onInitializedEnabled; + [Parameter] + bool? OnInitializedEnabled { + get => onInitializedEnabled; + set => this.onInitializedEnabled = value; + } protected override async Task OnInitAsync() { await base.OnInitAsync(); DevExpress.Ui.DxPopupInterop.Resize += DxPopup_Resize; DevExpress.Ui.DxPopupInterop.ResizeEnd += DxPopup_ResizeEnd; DevExpress.Ui.DxPopupInterop.ResizeStart += DxPopup_ResizeStart; DevExpress.Ui.DxPopupInterop.TitleRendered += DxPopup_TitleRendered; + DevExpress.Ui.DxPopupInterop.Hidden += DxPopup_Hidden; + DevExpress.Ui.DxPopupInterop.Hiding += DxPopup_Hiding; + DevExpress.Ui.DxPopupInterop.Showing += DxPopup_Showing; + DevExpress.Ui.DxPopupInterop.Shown += DxPopup_Shown; + DevExpress.Ui.DxPopupInterop.ContentReady += DxPopup_ContentReady; + DevExpress.Ui.DxPopupInterop.Disposing += DxPopup_Disposing; + DevExpress.Ui.DxPopupInterop.OptionChanged += DxPopup_OptionChanged; + DevExpress.Ui.DxPopupInterop.Initialized += DxPopup_Initialized; } [Parameter] Action Resize { get; set; } @@ -260,10 +584,74 @@ return DevExpress.Ui.DxPopupInterop.Init(dxTarget, options); TitleRendered?.Invoke(); } } + [Parameter] + Action Hidden { get; set; } + void DxPopup_Hidden(object sender, JQueryEventArgs e) { + if (e.Identifier == Id) { + Hidden?.Invoke(); + } + } + [Parameter] + Action Hiding { get; set; } + void DxPopup_Hiding(object sender, JQueryEventArgs e) { + if (e.Identifier == Id) { + Hiding?.Invoke(); + } + } + [Parameter] + Action Showing { get; set; } + void DxPopup_Showing(object sender, JQueryEventArgs e) { + if (e.Identifier == Id) { + Showing?.Invoke(); + } + } + [Parameter] + Action Shown { get; set; } + void DxPopup_Shown(object sender, JQueryEventArgs e) { + if (e.Identifier == Id) { + Shown?.Invoke(); + } + } + [Parameter] + Action ContentReady { get; set; } + void DxPopup_ContentReady(object sender, JQueryEventArgs e) { + if (e.Identifier == Id) { + ContentReady?.Invoke(); + } + } + [Parameter] + Action Disposing { get; set; } + void DxPopup_Disposing(object sender, JQueryEventArgs e) { + if (e.Identifier == Id) { + Disposing?.Invoke(); + } + } + [Parameter] + Action OptionChanged { get; set; } + void DxPopup_OptionChanged(object sender, JQueryEventArgs e) { + if (e.Identifier == Id) { + OptionChanged?.Invoke(); + } + } + [Parameter] + Action Initialized { get; set; } + void DxPopup_Initialized(object sender, JQueryEventArgs e) { + if (e.Identifier == Id) { + Initialized?.Invoke(); + } + } public void Dispose() { DevExpress.Ui.DxPopupInterop.Resize -= DxPopup_Resize; DevExpress.Ui.DxPopupInterop.ResizeEnd -= DxPopup_ResizeEnd; DevExpress.Ui.DxPopupInterop.ResizeStart -= DxPopup_ResizeStart; DevExpress.Ui.DxPopupInterop.TitleRendered -= DxPopup_TitleRendered; + DevExpress.Ui.DxPopupInterop.Hidden -= DxPopup_Hidden; + DevExpress.Ui.DxPopupInterop.Hiding -= DxPopup_Hiding; + DevExpress.Ui.DxPopupInterop.Showing -= DxPopup_Showing; + DevExpress.Ui.DxPopupInterop.Shown -= DxPopup_Shown; + DevExpress.Ui.DxPopupInterop.ContentReady -= DxPopup_ContentReady; + DevExpress.Ui.DxPopupInterop.Disposing -= DxPopup_Disposing; + DevExpress.Ui.DxPopupInterop.OptionChanged -= DxPopup_OptionChanged; + DevExpress.Ui.DxPopupInterop.Initialized -= DxPopup_Initialized; } } diff --git a/sources/BlazorDevExtreme/Components/DxProgressBar.cshtml b/sources/BlazorDevExtreme/Components/DxProgressBar.cshtml index 40272f5..884959e 100644 --- a/sources/BlazorDevExtreme/Components/DxProgressBar.cshtml +++ b/sources/BlazorDevExtreme/Components/DxProgressBar.cshtml @@ -13,16 +13,40 @@ showStatus = showStatus, statusFormat = statusFormat, value = value, + max = max, + min = min, + isValid = isValid, + readOnly = readOnly, + validationError = validationError, + validationMessageMode = validationMessageMode, + accessKey = accessKey, + activeStateEnabled = activeStateEnabled, + disabled = disabled, + focusStateEnabled = focusStateEnabled, + hint = hint, + hoverStateEnabled = hoverStateEnabled, + tabIndex = tabIndex, + visible = visible, + bindingOptions = bindingOptions, + elementAttr = elementAttr, + height = height, + rtlEnabled = rtlEnabled, + width = width, onCompleteEnabled = onCompleteEnabled, + onValueChangedEnabled = onValueChangedEnabled, + onContentReadyEnabled = onContentReadyEnabled, + onDisposingEnabled = onDisposingEnabled, + onOptionChangedEnabled = onOptionChangedEnabled, + onInitializedEnabled = onInitializedEnabled, }; } protected override Task Init(DevExpress.Ui.DxProgressBarOptions options) { -return DevExpress.Ui.DxProgressBarInterop.Init(dxTarget, options); + return DevExpress.Ui.DxProgressBarInterop.Init(dxTarget, options); } bool? showStatus; [Parameter] bool? ShowStatus { - get => isInitialized ? DevExpress.Ui.DxProgressBarInterop.GetShowStatus(dxTarget).Result : showStatus; + get => isInitialized ? (bool?)DevExpress.Ui.DxProgressBarInterop.GetShowStatus(dxTarget).Result : showStatus; set { if (isInitialized) { DevExpress.Ui.DxProgressBarInterop.SetShowStatus(dxTarget, value); @@ -46,7 +70,7 @@ return DevExpress.Ui.DxProgressBarInterop.Init(dxTarget, options); float? value; [Parameter] float? Value { - get => isInitialized ? DevExpress.Ui.DxProgressBarInterop.GetValue(dxTarget).Result : value; + get => isInitialized ? (float?)DevExpress.Ui.DxProgressBarInterop.GetValue(dxTarget).Result : value; set { if (isInitialized) { DevExpress.Ui.DxProgressBarInterop.SetValue(dxTarget, value); @@ -55,15 +79,278 @@ return DevExpress.Ui.DxProgressBarInterop.Init(dxTarget, options); } } } + float? max; + [Parameter] + float? Max { + get => isInitialized ? (float?)DevExpress.Ui.DxProgressBarInterop.GetMax(dxTarget).Result : max; + set { + if (isInitialized) { + DevExpress.Ui.DxProgressBarInterop.SetMax(dxTarget, value); + } else { + this.max = value; + } + } + } + float? min; + [Parameter] + float? Min { + get => isInitialized ? (float?)DevExpress.Ui.DxProgressBarInterop.GetMin(dxTarget).Result : min; + set { + if (isInitialized) { + DevExpress.Ui.DxProgressBarInterop.SetMin(dxTarget, value); + } else { + this.min = value; + } + } + } + bool? isValid; + [Parameter] + bool? IsValid { + get => isInitialized ? (bool?)DevExpress.Ui.DxProgressBarInterop.GetIsValid(dxTarget).Result : isValid; + set { + if (isInitialized) { + DevExpress.Ui.DxProgressBarInterop.SetIsValid(dxTarget, value); + } else { + this.isValid = value; + } + } + } + bool? readOnly; + [Parameter] + bool? ReadOnly { + get => isInitialized ? (bool?)DevExpress.Ui.DxProgressBarInterop.GetReadOnly(dxTarget).Result : readOnly; + set { + if (isInitialized) { + DevExpress.Ui.DxProgressBarInterop.SetReadOnly(dxTarget, value); + } else { + this.readOnly = value; + } + } + } + object validationError; + [Parameter] + object ValidationError { + get => isInitialized ? DevExpress.Ui.DxProgressBarInterop.GetValidationError(dxTarget).Result : validationError; + set { + if (isInitialized) { + DevExpress.Ui.DxProgressBarInterop.SetValidationError(dxTarget, value); + } else { + this.validationError = value; + } + } + } + string validationMessageMode; + [Parameter] + string ValidationMessageMode { + get => isInitialized ? (string)DevExpress.Ui.DxProgressBarInterop.GetValidationMessageMode(dxTarget).Result : validationMessageMode; + set { + if (isInitialized) { + DevExpress.Ui.DxProgressBarInterop.SetValidationMessageMode(dxTarget, value); + } else { + this.validationMessageMode = value; + } + } + } + string accessKey; + [Parameter] + string AccessKey { + get => isInitialized ? (string)DevExpress.Ui.DxProgressBarInterop.GetAccessKey(dxTarget).Result : accessKey; + set { + if (isInitialized) { + DevExpress.Ui.DxProgressBarInterop.SetAccessKey(dxTarget, value); + } else { + this.accessKey = value; + } + } + } + bool? activeStateEnabled; + [Parameter] + bool? ActiveStateEnabled { + get => isInitialized ? (bool?)DevExpress.Ui.DxProgressBarInterop.GetActiveStateEnabled(dxTarget).Result : activeStateEnabled; + set { + if (isInitialized) { + DevExpress.Ui.DxProgressBarInterop.SetActiveStateEnabled(dxTarget, value); + } else { + this.activeStateEnabled = value; + } + } + } + bool? disabled; + [Parameter] + bool? Disabled { + get => isInitialized ? (bool?)DevExpress.Ui.DxProgressBarInterop.GetDisabled(dxTarget).Result : disabled; + set { + if (isInitialized) { + DevExpress.Ui.DxProgressBarInterop.SetDisabled(dxTarget, value); + } else { + this.disabled = value; + } + } + } + bool? focusStateEnabled; + [Parameter] + bool? FocusStateEnabled { + get => isInitialized ? (bool?)DevExpress.Ui.DxProgressBarInterop.GetFocusStateEnabled(dxTarget).Result : focusStateEnabled; + set { + if (isInitialized) { + DevExpress.Ui.DxProgressBarInterop.SetFocusStateEnabled(dxTarget, value); + } else { + this.focusStateEnabled = value; + } + } + } + string hint; + [Parameter] + string Hint { + get => isInitialized ? (string)DevExpress.Ui.DxProgressBarInterop.GetHint(dxTarget).Result : hint; + set { + if (isInitialized) { + DevExpress.Ui.DxProgressBarInterop.SetHint(dxTarget, value); + } else { + this.hint = value; + } + } + } + bool? hoverStateEnabled; + [Parameter] + bool? HoverStateEnabled { + get => isInitialized ? (bool?)DevExpress.Ui.DxProgressBarInterop.GetHoverStateEnabled(dxTarget).Result : hoverStateEnabled; + set { + if (isInitialized) { + DevExpress.Ui.DxProgressBarInterop.SetHoverStateEnabled(dxTarget, value); + } else { + this.hoverStateEnabled = value; + } + } + } + float? tabIndex; + [Parameter] + float? TabIndex { + get => isInitialized ? (float?)DevExpress.Ui.DxProgressBarInterop.GetTabIndex(dxTarget).Result : tabIndex; + set { + if (isInitialized) { + DevExpress.Ui.DxProgressBarInterop.SetTabIndex(dxTarget, value); + } else { + this.tabIndex = value; + } + } + } + bool? visible; + [Parameter] + bool? Visible { + get => isInitialized ? (bool?)DevExpress.Ui.DxProgressBarInterop.GetVisible(dxTarget).Result : visible; + set { + if (isInitialized) { + DevExpress.Ui.DxProgressBarInterop.SetVisible(dxTarget, value); + } else { + this.visible = value; + } + } + } + object bindingOptions; + [Parameter] + object BindingOptions { + get => isInitialized ? DevExpress.Ui.DxProgressBarInterop.GetBindingOptions(dxTarget).Result : bindingOptions; + set { + if (isInitialized) { + DevExpress.Ui.DxProgressBarInterop.SetBindingOptions(dxTarget, value); + } else { + this.bindingOptions = value; + } + } + } + object elementAttr; + [Parameter] + object ElementAttr { + get => isInitialized ? DevExpress.Ui.DxProgressBarInterop.GetElementAttr(dxTarget).Result : elementAttr; + set { + if (isInitialized) { + DevExpress.Ui.DxProgressBarInterop.SetElementAttr(dxTarget, value); + } else { + this.elementAttr = value; + } + } + } + object height; + [Parameter] + object Height { + get => isInitialized ? DevExpress.Ui.DxProgressBarInterop.GetHeight(dxTarget).Result : height; + set { + if (isInitialized) { + DevExpress.Ui.DxProgressBarInterop.SetHeight(dxTarget, value); + } else { + this.height = value; + } + } + } + bool? rtlEnabled; + [Parameter] + bool? RtlEnabled { + get => isInitialized ? (bool?)DevExpress.Ui.DxProgressBarInterop.GetRtlEnabled(dxTarget).Result : rtlEnabled; + set { + if (isInitialized) { + DevExpress.Ui.DxProgressBarInterop.SetRtlEnabled(dxTarget, value); + } else { + this.rtlEnabled = value; + } + } + } + object width; + [Parameter] + object Width { + get => isInitialized ? DevExpress.Ui.DxProgressBarInterop.GetWidth(dxTarget).Result : width; + set { + if (isInitialized) { + DevExpress.Ui.DxProgressBarInterop.SetWidth(dxTarget, value); + } else { + this.width = value; + } + } + } bool? onCompleteEnabled; [Parameter] bool? OnCompleteEnabled { get => onCompleteEnabled; set => this.onCompleteEnabled = value; } + bool? onValueChangedEnabled; + [Parameter] + bool? OnValueChangedEnabled { + get => onValueChangedEnabled; + set => this.onValueChangedEnabled = value; + } + bool? onContentReadyEnabled; + [Parameter] + bool? OnContentReadyEnabled { + get => onContentReadyEnabled; + set => this.onContentReadyEnabled = value; + } + bool? onDisposingEnabled; + [Parameter] + bool? OnDisposingEnabled { + get => onDisposingEnabled; + set => this.onDisposingEnabled = value; + } + bool? onOptionChangedEnabled; + [Parameter] + bool? OnOptionChangedEnabled { + get => onOptionChangedEnabled; + set => this.onOptionChangedEnabled = value; + } + bool? onInitializedEnabled; + [Parameter] + bool? OnInitializedEnabled { + get => onInitializedEnabled; + set => this.onInitializedEnabled = value; + } protected override async Task OnInitAsync() { await base.OnInitAsync(); DevExpress.Ui.DxProgressBarInterop.Complete += DxProgressBar_Complete; + DevExpress.Ui.DxProgressBarInterop.ValueChanged += DxProgressBar_ValueChanged; + DevExpress.Ui.DxProgressBarInterop.ContentReady += DxProgressBar_ContentReady; + DevExpress.Ui.DxProgressBarInterop.Disposing += DxProgressBar_Disposing; + DevExpress.Ui.DxProgressBarInterop.OptionChanged += DxProgressBar_OptionChanged; + DevExpress.Ui.DxProgressBarInterop.Initialized += DxProgressBar_Initialized; } [Parameter] Action Complete { get; set; } @@ -72,7 +359,47 @@ return DevExpress.Ui.DxProgressBarInterop.Init(dxTarget, options); Complete?.Invoke(); } } + [Parameter] + Action ValueChanged { get; set; } + void DxProgressBar_ValueChanged(object sender, JQueryEventArgs e) { + if (e.Identifier == Id) { + ValueChanged?.Invoke(); + } + } + [Parameter] + Action ContentReady { get; set; } + void DxProgressBar_ContentReady(object sender, JQueryEventArgs e) { + if (e.Identifier == Id) { + ContentReady?.Invoke(); + } + } + [Parameter] + Action Disposing { get; set; } + void DxProgressBar_Disposing(object sender, JQueryEventArgs e) { + if (e.Identifier == Id) { + Disposing?.Invoke(); + } + } + [Parameter] + Action OptionChanged { get; set; } + void DxProgressBar_OptionChanged(object sender, JQueryEventArgs e) { + if (e.Identifier == Id) { + OptionChanged?.Invoke(); + } + } + [Parameter] + Action Initialized { get; set; } + void DxProgressBar_Initialized(object sender, JQueryEventArgs e) { + if (e.Identifier == Id) { + Initialized?.Invoke(); + } + } public void Dispose() { DevExpress.Ui.DxProgressBarInterop.Complete -= DxProgressBar_Complete; + DevExpress.Ui.DxProgressBarInterop.ValueChanged -= DxProgressBar_ValueChanged; + DevExpress.Ui.DxProgressBarInterop.ContentReady -= DxProgressBar_ContentReady; + DevExpress.Ui.DxProgressBarInterop.Disposing -= DxProgressBar_Disposing; + DevExpress.Ui.DxProgressBarInterop.OptionChanged -= DxProgressBar_OptionChanged; + DevExpress.Ui.DxProgressBarInterop.Initialized -= DxProgressBar_Initialized; } } diff --git a/sources/BlazorDevExtreme/Components/DxRadioGroup.cshtml b/sources/BlazorDevExtreme/Components/DxRadioGroup.cshtml index af524e6..03e7b26 100644 --- a/sources/BlazorDevExtreme/Components/DxRadioGroup.cshtml +++ b/sources/BlazorDevExtreme/Components/DxRadioGroup.cshtml @@ -16,15 +16,39 @@ layout = layout, name = name, value = value, + isValid = isValid, + readOnly = readOnly, + validationError = validationError, + validationMessageMode = validationMessageMode, + accessKey = accessKey, + disabled = disabled, + hint = hint, + tabIndex = tabIndex, + visible = visible, + bindingOptions = bindingOptions, + elementAttr = elementAttr, + height = height, + rtlEnabled = rtlEnabled, + width = width, + dataSource = dataSource, + displayExpr = displayExpr, + items = items, + itemTemplate = itemTemplate, + valueExpr = valueExpr, + onValueChangedEnabled = onValueChangedEnabled, + onContentReadyEnabled = onContentReadyEnabled, + onDisposingEnabled = onDisposingEnabled, + onOptionChangedEnabled = onOptionChangedEnabled, + onInitializedEnabled = onInitializedEnabled, }; } protected override Task Init(DevExpress.Ui.DxRadioGroupOptions options) { -return DevExpress.Ui.DxRadioGroupInterop.Init(dxTarget, options); + return DevExpress.Ui.DxRadioGroupInterop.Init(dxTarget, options); } bool? activeStateEnabled; [Parameter] bool? ActiveStateEnabled { - get => isInitialized ? DevExpress.Ui.DxRadioGroupInterop.GetActiveStateEnabled(dxTarget).Result : activeStateEnabled; + get => isInitialized ? (bool?)DevExpress.Ui.DxRadioGroupInterop.GetActiveStateEnabled(dxTarget).Result : activeStateEnabled; set { if (isInitialized) { DevExpress.Ui.DxRadioGroupInterop.SetActiveStateEnabled(dxTarget, value); @@ -36,7 +60,7 @@ return DevExpress.Ui.DxRadioGroupInterop.Init(dxTarget, options); bool? focusStateEnabled; [Parameter] bool? FocusStateEnabled { - get => isInitialized ? DevExpress.Ui.DxRadioGroupInterop.GetFocusStateEnabled(dxTarget).Result : focusStateEnabled; + get => isInitialized ? (bool?)DevExpress.Ui.DxRadioGroupInterop.GetFocusStateEnabled(dxTarget).Result : focusStateEnabled; set { if (isInitialized) { DevExpress.Ui.DxRadioGroupInterop.SetFocusStateEnabled(dxTarget, value); @@ -48,7 +72,7 @@ return DevExpress.Ui.DxRadioGroupInterop.Init(dxTarget, options); bool? hoverStateEnabled; [Parameter] bool? HoverStateEnabled { - get => isInitialized ? DevExpress.Ui.DxRadioGroupInterop.GetHoverStateEnabled(dxTarget).Result : hoverStateEnabled; + get => isInitialized ? (bool?)DevExpress.Ui.DxRadioGroupInterop.GetHoverStateEnabled(dxTarget).Result : hoverStateEnabled; set { if (isInitialized) { DevExpress.Ui.DxRadioGroupInterop.SetHoverStateEnabled(dxTarget, value); @@ -60,7 +84,7 @@ return DevExpress.Ui.DxRadioGroupInterop.Init(dxTarget, options); string layout; [Parameter] string Layout { - get => isInitialized ? DevExpress.Ui.DxRadioGroupInterop.GetLayout(dxTarget).Result : layout; + get => isInitialized ? (string)DevExpress.Ui.DxRadioGroupInterop.GetLayout(dxTarget).Result : layout; set { if (isInitialized) { DevExpress.Ui.DxRadioGroupInterop.SetLayout(dxTarget, value); @@ -72,7 +96,7 @@ return DevExpress.Ui.DxRadioGroupInterop.Init(dxTarget, options); string name; [Parameter] string Name { - get => isInitialized ? DevExpress.Ui.DxRadioGroupInterop.GetName(dxTarget).Result : name; + get => isInitialized ? (string)DevExpress.Ui.DxRadioGroupInterop.GetName(dxTarget).Result : name; set { if (isInitialized) { DevExpress.Ui.DxRadioGroupInterop.SetName(dxTarget, value); @@ -93,12 +117,315 @@ return DevExpress.Ui.DxRadioGroupInterop.Init(dxTarget, options); } } } + bool? isValid; + [Parameter] + bool? IsValid { + get => isInitialized ? (bool?)DevExpress.Ui.DxRadioGroupInterop.GetIsValid(dxTarget).Result : isValid; + set { + if (isInitialized) { + DevExpress.Ui.DxRadioGroupInterop.SetIsValid(dxTarget, value); + } else { + this.isValid = value; + } + } + } + bool? readOnly; + [Parameter] + bool? ReadOnly { + get => isInitialized ? (bool?)DevExpress.Ui.DxRadioGroupInterop.GetReadOnly(dxTarget).Result : readOnly; + set { + if (isInitialized) { + DevExpress.Ui.DxRadioGroupInterop.SetReadOnly(dxTarget, value); + } else { + this.readOnly = value; + } + } + } + object validationError; + [Parameter] + object ValidationError { + get => isInitialized ? DevExpress.Ui.DxRadioGroupInterop.GetValidationError(dxTarget).Result : validationError; + set { + if (isInitialized) { + DevExpress.Ui.DxRadioGroupInterop.SetValidationError(dxTarget, value); + } else { + this.validationError = value; + } + } + } + string validationMessageMode; + [Parameter] + string ValidationMessageMode { + get => isInitialized ? (string)DevExpress.Ui.DxRadioGroupInterop.GetValidationMessageMode(dxTarget).Result : validationMessageMode; + set { + if (isInitialized) { + DevExpress.Ui.DxRadioGroupInterop.SetValidationMessageMode(dxTarget, value); + } else { + this.validationMessageMode = value; + } + } + } + string accessKey; + [Parameter] + string AccessKey { + get => isInitialized ? (string)DevExpress.Ui.DxRadioGroupInterop.GetAccessKey(dxTarget).Result : accessKey; + set { + if (isInitialized) { + DevExpress.Ui.DxRadioGroupInterop.SetAccessKey(dxTarget, value); + } else { + this.accessKey = value; + } + } + } + bool? disabled; + [Parameter] + bool? Disabled { + get => isInitialized ? (bool?)DevExpress.Ui.DxRadioGroupInterop.GetDisabled(dxTarget).Result : disabled; + set { + if (isInitialized) { + DevExpress.Ui.DxRadioGroupInterop.SetDisabled(dxTarget, value); + } else { + this.disabled = value; + } + } + } + string hint; + [Parameter] + string Hint { + get => isInitialized ? (string)DevExpress.Ui.DxRadioGroupInterop.GetHint(dxTarget).Result : hint; + set { + if (isInitialized) { + DevExpress.Ui.DxRadioGroupInterop.SetHint(dxTarget, value); + } else { + this.hint = value; + } + } + } + float? tabIndex; + [Parameter] + float? TabIndex { + get => isInitialized ? (float?)DevExpress.Ui.DxRadioGroupInterop.GetTabIndex(dxTarget).Result : tabIndex; + set { + if (isInitialized) { + DevExpress.Ui.DxRadioGroupInterop.SetTabIndex(dxTarget, value); + } else { + this.tabIndex = value; + } + } + } + bool? visible; + [Parameter] + bool? Visible { + get => isInitialized ? (bool?)DevExpress.Ui.DxRadioGroupInterop.GetVisible(dxTarget).Result : visible; + set { + if (isInitialized) { + DevExpress.Ui.DxRadioGroupInterop.SetVisible(dxTarget, value); + } else { + this.visible = value; + } + } + } + object bindingOptions; + [Parameter] + object BindingOptions { + get => isInitialized ? DevExpress.Ui.DxRadioGroupInterop.GetBindingOptions(dxTarget).Result : bindingOptions; + set { + if (isInitialized) { + DevExpress.Ui.DxRadioGroupInterop.SetBindingOptions(dxTarget, value); + } else { + this.bindingOptions = value; + } + } + } + object elementAttr; + [Parameter] + object ElementAttr { + get => isInitialized ? DevExpress.Ui.DxRadioGroupInterop.GetElementAttr(dxTarget).Result : elementAttr; + set { + if (isInitialized) { + DevExpress.Ui.DxRadioGroupInterop.SetElementAttr(dxTarget, value); + } else { + this.elementAttr = value; + } + } + } + object height; + [Parameter] + object Height { + get => isInitialized ? DevExpress.Ui.DxRadioGroupInterop.GetHeight(dxTarget).Result : height; + set { + if (isInitialized) { + DevExpress.Ui.DxRadioGroupInterop.SetHeight(dxTarget, value); + } else { + this.height = value; + } + } + } + bool? rtlEnabled; + [Parameter] + bool? RtlEnabled { + get => isInitialized ? (bool?)DevExpress.Ui.DxRadioGroupInterop.GetRtlEnabled(dxTarget).Result : rtlEnabled; + set { + if (isInitialized) { + DevExpress.Ui.DxRadioGroupInterop.SetRtlEnabled(dxTarget, value); + } else { + this.rtlEnabled = value; + } + } + } + object width; + [Parameter] + object Width { + get => isInitialized ? DevExpress.Ui.DxRadioGroupInterop.GetWidth(dxTarget).Result : width; + set { + if (isInitialized) { + DevExpress.Ui.DxRadioGroupInterop.SetWidth(dxTarget, value); + } else { + this.width = value; + } + } + } + object dataSource; + [Parameter] + object DataSource { + get => isInitialized ? DevExpress.Ui.DxRadioGroupInterop.GetDataSource(dxTarget).Result : dataSource; + set { + if (isInitialized) { + DevExpress.Ui.DxRadioGroupInterop.SetDataSource(dxTarget, value); + } else { + this.dataSource = value; + } + } + } + object displayExpr; + [Parameter] + object DisplayExpr { + get => isInitialized ? DevExpress.Ui.DxRadioGroupInterop.GetDisplayExpr(dxTarget).Result : displayExpr; + set { + if (isInitialized) { + DevExpress.Ui.DxRadioGroupInterop.SetDisplayExpr(dxTarget, value); + } else { + this.displayExpr = value; + } + } + } + object items; + [Parameter] + object Items { + get => isInitialized ? DevExpress.Ui.DxRadioGroupInterop.GetItems(dxTarget).Result : items; + set { + if (isInitialized) { + DevExpress.Ui.DxRadioGroupInterop.SetItems(dxTarget, value); + } else { + this.items = value; + } + } + } + object itemTemplate; + [Parameter] + object ItemTemplate { + get => isInitialized ? DevExpress.Ui.DxRadioGroupInterop.GetItemTemplate(dxTarget).Result : itemTemplate; + set { + if (isInitialized) { + DevExpress.Ui.DxRadioGroupInterop.SetItemTemplate(dxTarget, value); + } else { + this.itemTemplate = value; + } + } + } + object valueExpr; + [Parameter] + object ValueExpr { + get => isInitialized ? DevExpress.Ui.DxRadioGroupInterop.GetValueExpr(dxTarget).Result : valueExpr; + set { + if (isInitialized) { + DevExpress.Ui.DxRadioGroupInterop.SetValueExpr(dxTarget, value); + } else { + this.valueExpr = value; + } + } + } + bool? onValueChangedEnabled; + [Parameter] + bool? OnValueChangedEnabled { + get => onValueChangedEnabled; + set => this.onValueChangedEnabled = value; + } + bool? onContentReadyEnabled; + [Parameter] + bool? OnContentReadyEnabled { + get => onContentReadyEnabled; + set => this.onContentReadyEnabled = value; + } + bool? onDisposingEnabled; + [Parameter] + bool? OnDisposingEnabled { + get => onDisposingEnabled; + set => this.onDisposingEnabled = value; + } + bool? onOptionChangedEnabled; + [Parameter] + bool? OnOptionChangedEnabled { + get => onOptionChangedEnabled; + set => this.onOptionChangedEnabled = value; + } + bool? onInitializedEnabled; + [Parameter] + bool? OnInitializedEnabled { + get => onInitializedEnabled; + set => this.onInitializedEnabled = value; + } protected override async Task OnInitAsync() { await base.OnInitAsync(); + DevExpress.Ui.DxRadioGroupInterop.ValueChanged += DxRadioGroup_ValueChanged; + DevExpress.Ui.DxRadioGroupInterop.ContentReady += DxRadioGroup_ContentReady; + DevExpress.Ui.DxRadioGroupInterop.Disposing += DxRadioGroup_Disposing; + DevExpress.Ui.DxRadioGroupInterop.OptionChanged += DxRadioGroup_OptionChanged; + DevExpress.Ui.DxRadioGroupInterop.Initialized += DxRadioGroup_Initialized; + } + [Parameter] + Action ValueChanged { get; set; } + void DxRadioGroup_ValueChanged(object sender, JQueryEventArgs e) { + if (e.Identifier == Id) { + ValueChanged?.Invoke(); + } + } + [Parameter] + Action ContentReady { get; set; } + void DxRadioGroup_ContentReady(object sender, JQueryEventArgs e) { + if (e.Identifier == Id) { + ContentReady?.Invoke(); + } + } + [Parameter] + Action Disposing { get; set; } + void DxRadioGroup_Disposing(object sender, JQueryEventArgs e) { + if (e.Identifier == Id) { + Disposing?.Invoke(); + } + } + [Parameter] + Action OptionChanged { get; set; } + void DxRadioGroup_OptionChanged(object sender, JQueryEventArgs e) { + if (e.Identifier == Id) { + OptionChanged?.Invoke(); + } + } + [Parameter] + Action Initialized { get; set; } + void DxRadioGroup_Initialized(object sender, JQueryEventArgs e) { + if (e.Identifier == Id) { + Initialized?.Invoke(); + } } public object GetDataSourceEx() { return DevExpress.Ui.DxRadioGroupInterop.GetDataSourceEx(dxTarget).Result; } public void Dispose() { + DevExpress.Ui.DxRadioGroupInterop.ValueChanged -= DxRadioGroup_ValueChanged; + DevExpress.Ui.DxRadioGroupInterop.ContentReady -= DxRadioGroup_ContentReady; + DevExpress.Ui.DxRadioGroupInterop.Disposing -= DxRadioGroup_Disposing; + DevExpress.Ui.DxRadioGroupInterop.OptionChanged -= DxRadioGroup_OptionChanged; + DevExpress.Ui.DxRadioGroupInterop.Initialized -= DxRadioGroup_Initialized; } } diff --git a/sources/BlazorDevExtreme/Components/DxRangeSelector.cshtml b/sources/BlazorDevExtreme/Components/DxRangeSelector.cshtml index 7df7350..aa3ec75 100644 --- a/sources/BlazorDevExtreme/Components/DxRangeSelector.cshtml +++ b/sources/BlazorDevExtreme/Components/DxRangeSelector.cshtml @@ -24,12 +24,34 @@ sliderHandle = sliderHandle, sliderMarker = sliderMarker, value = value, + export = export, + loadingIndicator = loadingIndicator, + margin = margin, + pathModified = pathModified, + redrawOnResize = redrawOnResize, + rtlEnabled = rtlEnabled, + size = size, + theme = theme, + title = title, + tooltip = tooltip, + bindingOptions = bindingOptions, + elementAttr = elementAttr, + height = height, + width = width, onSelectedRangeChangedEnabled = onSelectedRangeChangedEnabled, onValueChangedEnabled = onValueChangedEnabled, + onDrawnEnabled = onDrawnEnabled, + onExportedEnabled = onExportedEnabled, + onExportingEnabled = onExportingEnabled, + onFileSavingEnabled = onFileSavingEnabled, + onIncidentOccurredEnabled = onIncidentOccurredEnabled, + onDisposingEnabled = onDisposingEnabled, + onOptionChangedEnabled = onOptionChangedEnabled, + onInitializedEnabled = onInitializedEnabled, }; } protected override Task Init(DevExpress.Viz.RangeSelector.DxRangeSelectorOptions options) { -return DevExpress.Viz.DxRangeSelectorInterop.Init(dxTarget, options); + return DevExpress.Viz.DxRangeSelectorInterop.Init(dxTarget, options); } object background; [Parameter] @@ -70,7 +92,7 @@ return DevExpress.Viz.DxRangeSelectorInterop.Init(dxTarget, options); string containerBackgroundColor; [Parameter] string ContainerBackgroundColor { - get => isInitialized ? DevExpress.Viz.DxRangeSelectorInterop.GetContainerBackgroundColor(dxTarget).Result : containerBackgroundColor; + get => isInitialized ? (string)DevExpress.Viz.DxRangeSelectorInterop.GetContainerBackgroundColor(dxTarget).Result : containerBackgroundColor; set { if (isInitialized) { DevExpress.Viz.DxRangeSelectorInterop.SetContainerBackgroundColor(dxTarget, value); @@ -94,7 +116,7 @@ return DevExpress.Viz.DxRangeSelectorInterop.Init(dxTarget, options); string dataSourceField; [Parameter] string DataSourceField { - get => isInitialized ? DevExpress.Viz.DxRangeSelectorInterop.GetDataSourceField(dxTarget).Result : dataSourceField; + get => isInitialized ? (string)DevExpress.Viz.DxRangeSelectorInterop.GetDataSourceField(dxTarget).Result : dataSourceField; set { if (isInitialized) { DevExpress.Viz.DxRangeSelectorInterop.SetDataSourceField(dxTarget, value); @@ -142,7 +164,7 @@ return DevExpress.Viz.DxRangeSelectorInterop.Init(dxTarget, options); string selectedRangeColor; [Parameter] string SelectedRangeColor { - get => isInitialized ? DevExpress.Viz.DxRangeSelectorInterop.GetSelectedRangeColor(dxTarget).Result : selectedRangeColor; + get => isInitialized ? (string)DevExpress.Viz.DxRangeSelectorInterop.GetSelectedRangeColor(dxTarget).Result : selectedRangeColor; set { if (isInitialized) { DevExpress.Viz.DxRangeSelectorInterop.SetSelectedRangeColor(dxTarget, value); @@ -199,6 +221,174 @@ return DevExpress.Viz.DxRangeSelectorInterop.Init(dxTarget, options); } } } + object export; + [Parameter] + object Export { + get => isInitialized ? DevExpress.Viz.DxRangeSelectorInterop.GetExport(dxTarget).Result : export; + set { + if (isInitialized) { + DevExpress.Viz.DxRangeSelectorInterop.SetExport(dxTarget, value); + } else { + this.export = value; + } + } + } + object loadingIndicator; + [Parameter] + object LoadingIndicator { + get => isInitialized ? DevExpress.Viz.DxRangeSelectorInterop.GetLoadingIndicator(dxTarget).Result : loadingIndicator; + set { + if (isInitialized) { + DevExpress.Viz.DxRangeSelectorInterop.SetLoadingIndicator(dxTarget, value); + } else { + this.loadingIndicator = value; + } + } + } + object margin; + [Parameter] + object Margin { + get => isInitialized ? DevExpress.Viz.DxRangeSelectorInterop.GetMargin(dxTarget).Result : margin; + set { + if (isInitialized) { + DevExpress.Viz.DxRangeSelectorInterop.SetMargin(dxTarget, value); + } else { + this.margin = value; + } + } + } + bool? pathModified; + [Parameter] + bool? PathModified { + get => isInitialized ? (bool?)DevExpress.Viz.DxRangeSelectorInterop.GetPathModified(dxTarget).Result : pathModified; + set { + if (isInitialized) { + DevExpress.Viz.DxRangeSelectorInterop.SetPathModified(dxTarget, value); + } else { + this.pathModified = value; + } + } + } + bool? redrawOnResize; + [Parameter] + bool? RedrawOnResize { + get => isInitialized ? (bool?)DevExpress.Viz.DxRangeSelectorInterop.GetRedrawOnResize(dxTarget).Result : redrawOnResize; + set { + if (isInitialized) { + DevExpress.Viz.DxRangeSelectorInterop.SetRedrawOnResize(dxTarget, value); + } else { + this.redrawOnResize = value; + } + } + } + bool? rtlEnabled; + [Parameter] + bool? RtlEnabled { + get => isInitialized ? (bool?)DevExpress.Viz.DxRangeSelectorInterop.GetRtlEnabled(dxTarget).Result : rtlEnabled; + set { + if (isInitialized) { + DevExpress.Viz.DxRangeSelectorInterop.SetRtlEnabled(dxTarget, value); + } else { + this.rtlEnabled = value; + } + } + } + object size; + [Parameter] + object Size { + get => isInitialized ? DevExpress.Viz.DxRangeSelectorInterop.GetSize(dxTarget).Result : size; + set { + if (isInitialized) { + DevExpress.Viz.DxRangeSelectorInterop.SetSize(dxTarget, value); + } else { + this.size = value; + } + } + } + string theme; + [Parameter] + string Theme { + get => isInitialized ? (string)DevExpress.Viz.DxRangeSelectorInterop.GetTheme(dxTarget).Result : theme; + set { + if (isInitialized) { + DevExpress.Viz.DxRangeSelectorInterop.SetTheme(dxTarget, value); + } else { + this.theme = value; + } + } + } + object title; + [Parameter] + object Title { + get => isInitialized ? DevExpress.Viz.DxRangeSelectorInterop.GetTitle(dxTarget).Result : title; + set { + if (isInitialized) { + DevExpress.Viz.DxRangeSelectorInterop.SetTitle(dxTarget, value); + } else { + this.title = value; + } + } + } + object tooltip; + [Parameter] + object Tooltip { + get => isInitialized ? DevExpress.Viz.DxRangeSelectorInterop.GetTooltip(dxTarget).Result : tooltip; + set { + if (isInitialized) { + DevExpress.Viz.DxRangeSelectorInterop.SetTooltip(dxTarget, value); + } else { + this.tooltip = value; + } + } + } + object bindingOptions; + [Parameter] + object BindingOptions { + get => isInitialized ? DevExpress.Viz.DxRangeSelectorInterop.GetBindingOptions(dxTarget).Result : bindingOptions; + set { + if (isInitialized) { + DevExpress.Viz.DxRangeSelectorInterop.SetBindingOptions(dxTarget, value); + } else { + this.bindingOptions = value; + } + } + } + object elementAttr; + [Parameter] + object ElementAttr { + get => isInitialized ? DevExpress.Viz.DxRangeSelectorInterop.GetElementAttr(dxTarget).Result : elementAttr; + set { + if (isInitialized) { + DevExpress.Viz.DxRangeSelectorInterop.SetElementAttr(dxTarget, value); + } else { + this.elementAttr = value; + } + } + } + object height; + [Parameter] + object Height { + get => isInitialized ? DevExpress.Viz.DxRangeSelectorInterop.GetHeight(dxTarget).Result : height; + set { + if (isInitialized) { + DevExpress.Viz.DxRangeSelectorInterop.SetHeight(dxTarget, value); + } else { + this.height = value; + } + } + } + object width; + [Parameter] + object Width { + get => isInitialized ? DevExpress.Viz.DxRangeSelectorInterop.GetWidth(dxTarget).Result : width; + set { + if (isInitialized) { + DevExpress.Viz.DxRangeSelectorInterop.SetWidth(dxTarget, value); + } else { + this.width = value; + } + } + } bool? onSelectedRangeChangedEnabled; [Parameter] bool? OnSelectedRangeChangedEnabled { @@ -211,10 +401,66 @@ return DevExpress.Viz.DxRangeSelectorInterop.Init(dxTarget, options); get => onValueChangedEnabled; set => this.onValueChangedEnabled = value; } + bool? onDrawnEnabled; + [Parameter] + bool? OnDrawnEnabled { + get => onDrawnEnabled; + set => this.onDrawnEnabled = value; + } + bool? onExportedEnabled; + [Parameter] + bool? OnExportedEnabled { + get => onExportedEnabled; + set => this.onExportedEnabled = value; + } + bool? onExportingEnabled; + [Parameter] + bool? OnExportingEnabled { + get => onExportingEnabled; + set => this.onExportingEnabled = value; + } + bool? onFileSavingEnabled; + [Parameter] + bool? OnFileSavingEnabled { + get => onFileSavingEnabled; + set => this.onFileSavingEnabled = value; + } + bool? onIncidentOccurredEnabled; + [Parameter] + bool? OnIncidentOccurredEnabled { + get => onIncidentOccurredEnabled; + set => this.onIncidentOccurredEnabled = value; + } + bool? onDisposingEnabled; + [Parameter] + bool? OnDisposingEnabled { + get => onDisposingEnabled; + set => this.onDisposingEnabled = value; + } + bool? onOptionChangedEnabled; + [Parameter] + bool? OnOptionChangedEnabled { + get => onOptionChangedEnabled; + set => this.onOptionChangedEnabled = value; + } + bool? onInitializedEnabled; + [Parameter] + bool? OnInitializedEnabled { + get => onInitializedEnabled; + set => this.onInitializedEnabled = value; + } protected override async Task OnInitAsync() { await base.OnInitAsync(); DevExpress.Viz.DxRangeSelectorInterop.SelectedRangeChanged += DxRangeSelector_SelectedRangeChanged; DevExpress.Viz.DxRangeSelectorInterop.ValueChanged += DxRangeSelector_ValueChanged; + DevExpress.Viz.DxRangeSelectorInterop.Drawn += DxRangeSelector_Drawn; + DevExpress.Viz.DxRangeSelectorInterop.Exported += DxRangeSelector_Exported; + DevExpress.Viz.DxRangeSelectorInterop.Exporting += DxRangeSelector_Exporting; + DevExpress.Viz.DxRangeSelectorInterop.FileSaving += DxRangeSelector_FileSaving; + DevExpress.Viz.DxRangeSelectorInterop.IncidentOccurred += DxRangeSelector_IncidentOccurred; + DevExpress.Viz.DxRangeSelectorInterop.Disposing += DxRangeSelector_Disposing; + DevExpress.Viz.DxRangeSelectorInterop.OptionChanged += DxRangeSelector_OptionChanged; + DevExpress.Viz.DxRangeSelectorInterop.Initialized += DxRangeSelector_Initialized; } [Parameter] Action SelectedRangeChanged { get; set; } @@ -230,6 +476,62 @@ return DevExpress.Viz.DxRangeSelectorInterop.Init(dxTarget, options); ValueChanged?.Invoke(); } } + [Parameter] + Action Drawn { get; set; } + void DxRangeSelector_Drawn(object sender, JQueryEventArgs e) { + if (e.Identifier == Id) { + Drawn?.Invoke(); + } + } + [Parameter] + Action Exported { get; set; } + void DxRangeSelector_Exported(object sender, JQueryEventArgs e) { + if (e.Identifier == Id) { + Exported?.Invoke(); + } + } + [Parameter] + Action Exporting { get; set; } + void DxRangeSelector_Exporting(object sender, JQueryEventArgs e) { + if (e.Identifier == Id) { + Exporting?.Invoke(); + } + } + [Parameter] + Action FileSaving { get; set; } + void DxRangeSelector_FileSaving(object sender, JQueryEventArgs e) { + if (e.Identifier == Id) { + FileSaving?.Invoke(); + } + } + [Parameter] + Action IncidentOccurred { get; set; } + void DxRangeSelector_IncidentOccurred(object sender, JQueryEventArgs e) { + if (e.Identifier == Id) { + IncidentOccurred?.Invoke(); + } + } + [Parameter] + Action Disposing { get; set; } + void DxRangeSelector_Disposing(object sender, JQueryEventArgs e) { + if (e.Identifier == Id) { + Disposing?.Invoke(); + } + } + [Parameter] + Action OptionChanged { get; set; } + void DxRangeSelector_OptionChanged(object sender, JQueryEventArgs e) { + if (e.Identifier == Id) { + OptionChanged?.Invoke(); + } + } + [Parameter] + Action Initialized { get; set; } + void DxRangeSelector_Initialized(object sender, JQueryEventArgs e) { + if (e.Identifier == Id) { + Initialized?.Invoke(); + } + } public object GetDataSourceEx() { return DevExpress.Viz.DxRangeSelectorInterop.GetDataSourceEx(dxTarget).Result; } @@ -254,5 +556,13 @@ return DevExpress.Viz.DxRangeSelectorInterop.Init(dxTarget, options); public void Dispose() { DevExpress.Viz.DxRangeSelectorInterop.SelectedRangeChanged -= DxRangeSelector_SelectedRangeChanged; DevExpress.Viz.DxRangeSelectorInterop.ValueChanged -= DxRangeSelector_ValueChanged; + DevExpress.Viz.DxRangeSelectorInterop.Drawn -= DxRangeSelector_Drawn; + DevExpress.Viz.DxRangeSelectorInterop.Exported -= DxRangeSelector_Exported; + DevExpress.Viz.DxRangeSelectorInterop.Exporting -= DxRangeSelector_Exporting; + DevExpress.Viz.DxRangeSelectorInterop.FileSaving -= DxRangeSelector_FileSaving; + DevExpress.Viz.DxRangeSelectorInterop.IncidentOccurred -= DxRangeSelector_IncidentOccurred; + DevExpress.Viz.DxRangeSelectorInterop.Disposing -= DxRangeSelector_Disposing; + DevExpress.Viz.DxRangeSelectorInterop.OptionChanged -= DxRangeSelector_OptionChanged; + DevExpress.Viz.DxRangeSelectorInterop.Initialized -= DxRangeSelector_Initialized; } } diff --git a/sources/BlazorDevExtreme/Components/DxRangeSlider.cshtml b/sources/BlazorDevExtreme/Components/DxRangeSlider.cshtml index 4aed7b3..3a18a8e 100644 --- a/sources/BlazorDevExtreme/Components/DxRangeSlider.cshtml +++ b/sources/BlazorDevExtreme/Components/DxRangeSlider.cshtml @@ -15,16 +15,45 @@ start = start, startName = startName, value = value, + activeStateEnabled = activeStateEnabled, + focusStateEnabled = focusStateEnabled, + hoverStateEnabled = hoverStateEnabled, + keyStep = keyStep, + label = label, + name = name, + showRange = showRange, + step = step, + tooltip = tooltip, + max = max, + min = min, + isValid = isValid, + readOnly = readOnly, + validationError = validationError, + validationMessageMode = validationMessageMode, + accessKey = accessKey, + disabled = disabled, + hint = hint, + tabIndex = tabIndex, + visible = visible, + bindingOptions = bindingOptions, + elementAttr = elementAttr, + height = height, + rtlEnabled = rtlEnabled, + width = width, onValueChangedEnabled = onValueChangedEnabled, + onContentReadyEnabled = onContentReadyEnabled, + onDisposingEnabled = onDisposingEnabled, + onOptionChangedEnabled = onOptionChangedEnabled, + onInitializedEnabled = onInitializedEnabled, }; } protected override Task Init(DevExpress.Ui.DxRangeSliderOptions options) { -return DevExpress.Ui.DxRangeSliderInterop.Init(dxTarget, options); + return DevExpress.Ui.DxRangeSliderInterop.Init(dxTarget, options); } float? end; [Parameter] float? End { - get => isInitialized ? DevExpress.Ui.DxRangeSliderInterop.GetEnd(dxTarget).Result : end; + get => isInitialized ? (float?)DevExpress.Ui.DxRangeSliderInterop.GetEnd(dxTarget).Result : end; set { if (isInitialized) { DevExpress.Ui.DxRangeSliderInterop.SetEnd(dxTarget, value); @@ -36,7 +65,7 @@ return DevExpress.Ui.DxRangeSliderInterop.Init(dxTarget, options); string endName; [Parameter] string EndName { - get => isInitialized ? DevExpress.Ui.DxRangeSliderInterop.GetEndName(dxTarget).Result : endName; + get => isInitialized ? (string)DevExpress.Ui.DxRangeSliderInterop.GetEndName(dxTarget).Result : endName; set { if (isInitialized) { DevExpress.Ui.DxRangeSliderInterop.SetEndName(dxTarget, value); @@ -48,7 +77,7 @@ return DevExpress.Ui.DxRangeSliderInterop.Init(dxTarget, options); float? start; [Parameter] float? Start { - get => isInitialized ? DevExpress.Ui.DxRangeSliderInterop.GetStart(dxTarget).Result : start; + get => isInitialized ? (float?)DevExpress.Ui.DxRangeSliderInterop.GetStart(dxTarget).Result : start; set { if (isInitialized) { DevExpress.Ui.DxRangeSliderInterop.SetStart(dxTarget, value); @@ -60,7 +89,7 @@ return DevExpress.Ui.DxRangeSliderInterop.Init(dxTarget, options); string startName; [Parameter] string StartName { - get => isInitialized ? DevExpress.Ui.DxRangeSliderInterop.GetStartName(dxTarget).Result : startName; + get => isInitialized ? (string)DevExpress.Ui.DxRangeSliderInterop.GetStartName(dxTarget).Result : startName; set { if (isInitialized) { DevExpress.Ui.DxRangeSliderInterop.SetStartName(dxTarget, value); @@ -81,15 +110,343 @@ return DevExpress.Ui.DxRangeSliderInterop.Init(dxTarget, options); } } } + bool? activeStateEnabled; + [Parameter] + bool? ActiveStateEnabled { + get => isInitialized ? (bool?)DevExpress.Ui.DxRangeSliderInterop.GetActiveStateEnabled(dxTarget).Result : activeStateEnabled; + set { + if (isInitialized) { + DevExpress.Ui.DxRangeSliderInterop.SetActiveStateEnabled(dxTarget, value); + } else { + this.activeStateEnabled = value; + } + } + } + bool? focusStateEnabled; + [Parameter] + bool? FocusStateEnabled { + get => isInitialized ? (bool?)DevExpress.Ui.DxRangeSliderInterop.GetFocusStateEnabled(dxTarget).Result : focusStateEnabled; + set { + if (isInitialized) { + DevExpress.Ui.DxRangeSliderInterop.SetFocusStateEnabled(dxTarget, value); + } else { + this.focusStateEnabled = value; + } + } + } + bool? hoverStateEnabled; + [Parameter] + bool? HoverStateEnabled { + get => isInitialized ? (bool?)DevExpress.Ui.DxRangeSliderInterop.GetHoverStateEnabled(dxTarget).Result : hoverStateEnabled; + set { + if (isInitialized) { + DevExpress.Ui.DxRangeSliderInterop.SetHoverStateEnabled(dxTarget, value); + } else { + this.hoverStateEnabled = value; + } + } + } + float? keyStep; + [Parameter] + float? KeyStep { + get => isInitialized ? (float?)DevExpress.Ui.DxRangeSliderInterop.GetKeyStep(dxTarget).Result : keyStep; + set { + if (isInitialized) { + DevExpress.Ui.DxRangeSliderInterop.SetKeyStep(dxTarget, value); + } else { + this.keyStep = value; + } + } + } + object label; + [Parameter] + object Label { + get => isInitialized ? DevExpress.Ui.DxRangeSliderInterop.GetLabel(dxTarget).Result : label; + set { + if (isInitialized) { + DevExpress.Ui.DxRangeSliderInterop.SetLabel(dxTarget, value); + } else { + this.label = value; + } + } + } + string name; + [Parameter] + string Name { + get => isInitialized ? (string)DevExpress.Ui.DxRangeSliderInterop.GetName(dxTarget).Result : name; + set { + if (isInitialized) { + DevExpress.Ui.DxRangeSliderInterop.SetName(dxTarget, value); + } else { + this.name = value; + } + } + } + bool? showRange; + [Parameter] + bool? ShowRange { + get => isInitialized ? (bool?)DevExpress.Ui.DxRangeSliderInterop.GetShowRange(dxTarget).Result : showRange; + set { + if (isInitialized) { + DevExpress.Ui.DxRangeSliderInterop.SetShowRange(dxTarget, value); + } else { + this.showRange = value; + } + } + } + float? step; + [Parameter] + float? Step { + get => isInitialized ? (float?)DevExpress.Ui.DxRangeSliderInterop.GetStep(dxTarget).Result : step; + set { + if (isInitialized) { + DevExpress.Ui.DxRangeSliderInterop.SetStep(dxTarget, value); + } else { + this.step = value; + } + } + } + object tooltip; + [Parameter] + object Tooltip { + get => isInitialized ? DevExpress.Ui.DxRangeSliderInterop.GetTooltip(dxTarget).Result : tooltip; + set { + if (isInitialized) { + DevExpress.Ui.DxRangeSliderInterop.SetTooltip(dxTarget, value); + } else { + this.tooltip = value; + } + } + } + float? max; + [Parameter] + float? Max { + get => isInitialized ? (float?)DevExpress.Ui.DxRangeSliderInterop.GetMax(dxTarget).Result : max; + set { + if (isInitialized) { + DevExpress.Ui.DxRangeSliderInterop.SetMax(dxTarget, value); + } else { + this.max = value; + } + } + } + float? min; + [Parameter] + float? Min { + get => isInitialized ? (float?)DevExpress.Ui.DxRangeSliderInterop.GetMin(dxTarget).Result : min; + set { + if (isInitialized) { + DevExpress.Ui.DxRangeSliderInterop.SetMin(dxTarget, value); + } else { + this.min = value; + } + } + } + bool? isValid; + [Parameter] + bool? IsValid { + get => isInitialized ? (bool?)DevExpress.Ui.DxRangeSliderInterop.GetIsValid(dxTarget).Result : isValid; + set { + if (isInitialized) { + DevExpress.Ui.DxRangeSliderInterop.SetIsValid(dxTarget, value); + } else { + this.isValid = value; + } + } + } + bool? readOnly; + [Parameter] + bool? ReadOnly { + get => isInitialized ? (bool?)DevExpress.Ui.DxRangeSliderInterop.GetReadOnly(dxTarget).Result : readOnly; + set { + if (isInitialized) { + DevExpress.Ui.DxRangeSliderInterop.SetReadOnly(dxTarget, value); + } else { + this.readOnly = value; + } + } + } + object validationError; + [Parameter] + object ValidationError { + get => isInitialized ? DevExpress.Ui.DxRangeSliderInterop.GetValidationError(dxTarget).Result : validationError; + set { + if (isInitialized) { + DevExpress.Ui.DxRangeSliderInterop.SetValidationError(dxTarget, value); + } else { + this.validationError = value; + } + } + } + string validationMessageMode; + [Parameter] + string ValidationMessageMode { + get => isInitialized ? (string)DevExpress.Ui.DxRangeSliderInterop.GetValidationMessageMode(dxTarget).Result : validationMessageMode; + set { + if (isInitialized) { + DevExpress.Ui.DxRangeSliderInterop.SetValidationMessageMode(dxTarget, value); + } else { + this.validationMessageMode = value; + } + } + } + string accessKey; + [Parameter] + string AccessKey { + get => isInitialized ? (string)DevExpress.Ui.DxRangeSliderInterop.GetAccessKey(dxTarget).Result : accessKey; + set { + if (isInitialized) { + DevExpress.Ui.DxRangeSliderInterop.SetAccessKey(dxTarget, value); + } else { + this.accessKey = value; + } + } + } + bool? disabled; + [Parameter] + bool? Disabled { + get => isInitialized ? (bool?)DevExpress.Ui.DxRangeSliderInterop.GetDisabled(dxTarget).Result : disabled; + set { + if (isInitialized) { + DevExpress.Ui.DxRangeSliderInterop.SetDisabled(dxTarget, value); + } else { + this.disabled = value; + } + } + } + string hint; + [Parameter] + string Hint { + get => isInitialized ? (string)DevExpress.Ui.DxRangeSliderInterop.GetHint(dxTarget).Result : hint; + set { + if (isInitialized) { + DevExpress.Ui.DxRangeSliderInterop.SetHint(dxTarget, value); + } else { + this.hint = value; + } + } + } + float? tabIndex; + [Parameter] + float? TabIndex { + get => isInitialized ? (float?)DevExpress.Ui.DxRangeSliderInterop.GetTabIndex(dxTarget).Result : tabIndex; + set { + if (isInitialized) { + DevExpress.Ui.DxRangeSliderInterop.SetTabIndex(dxTarget, value); + } else { + this.tabIndex = value; + } + } + } + bool? visible; + [Parameter] + bool? Visible { + get => isInitialized ? (bool?)DevExpress.Ui.DxRangeSliderInterop.GetVisible(dxTarget).Result : visible; + set { + if (isInitialized) { + DevExpress.Ui.DxRangeSliderInterop.SetVisible(dxTarget, value); + } else { + this.visible = value; + } + } + } + object bindingOptions; + [Parameter] + object BindingOptions { + get => isInitialized ? DevExpress.Ui.DxRangeSliderInterop.GetBindingOptions(dxTarget).Result : bindingOptions; + set { + if (isInitialized) { + DevExpress.Ui.DxRangeSliderInterop.SetBindingOptions(dxTarget, value); + } else { + this.bindingOptions = value; + } + } + } + object elementAttr; + [Parameter] + object ElementAttr { + get => isInitialized ? DevExpress.Ui.DxRangeSliderInterop.GetElementAttr(dxTarget).Result : elementAttr; + set { + if (isInitialized) { + DevExpress.Ui.DxRangeSliderInterop.SetElementAttr(dxTarget, value); + } else { + this.elementAttr = value; + } + } + } + object height; + [Parameter] + object Height { + get => isInitialized ? DevExpress.Ui.DxRangeSliderInterop.GetHeight(dxTarget).Result : height; + set { + if (isInitialized) { + DevExpress.Ui.DxRangeSliderInterop.SetHeight(dxTarget, value); + } else { + this.height = value; + } + } + } + bool? rtlEnabled; + [Parameter] + bool? RtlEnabled { + get => isInitialized ? (bool?)DevExpress.Ui.DxRangeSliderInterop.GetRtlEnabled(dxTarget).Result : rtlEnabled; + set { + if (isInitialized) { + DevExpress.Ui.DxRangeSliderInterop.SetRtlEnabled(dxTarget, value); + } else { + this.rtlEnabled = value; + } + } + } + object width; + [Parameter] + object Width { + get => isInitialized ? DevExpress.Ui.DxRangeSliderInterop.GetWidth(dxTarget).Result : width; + set { + if (isInitialized) { + DevExpress.Ui.DxRangeSliderInterop.SetWidth(dxTarget, value); + } else { + this.width = value; + } + } + } bool? onValueChangedEnabled; [Parameter] bool? OnValueChangedEnabled { get => onValueChangedEnabled; set => this.onValueChangedEnabled = value; } + bool? onContentReadyEnabled; + [Parameter] + bool? OnContentReadyEnabled { + get => onContentReadyEnabled; + set => this.onContentReadyEnabled = value; + } + bool? onDisposingEnabled; + [Parameter] + bool? OnDisposingEnabled { + get => onDisposingEnabled; + set => this.onDisposingEnabled = value; + } + bool? onOptionChangedEnabled; + [Parameter] + bool? OnOptionChangedEnabled { + get => onOptionChangedEnabled; + set => this.onOptionChangedEnabled = value; + } + bool? onInitializedEnabled; + [Parameter] + bool? OnInitializedEnabled { + get => onInitializedEnabled; + set => this.onInitializedEnabled = value; + } protected override async Task OnInitAsync() { await base.OnInitAsync(); DevExpress.Ui.DxRangeSliderInterop.ValueChanged += DxRangeSlider_ValueChanged; + DevExpress.Ui.DxRangeSliderInterop.ContentReady += DxRangeSlider_ContentReady; + DevExpress.Ui.DxRangeSliderInterop.Disposing += DxRangeSlider_Disposing; + DevExpress.Ui.DxRangeSliderInterop.OptionChanged += DxRangeSlider_OptionChanged; + DevExpress.Ui.DxRangeSliderInterop.Initialized += DxRangeSlider_Initialized; } [Parameter] Action ValueChanged { get; set; } @@ -98,10 +455,42 @@ return DevExpress.Ui.DxRangeSliderInterop.Init(dxTarget, options); ValueChanged?.Invoke(); } } + [Parameter] + Action ContentReady { get; set; } + void DxRangeSlider_ContentReady(object sender, JQueryEventArgs e) { + if (e.Identifier == Id) { + ContentReady?.Invoke(); + } + } + [Parameter] + Action Disposing { get; set; } + void DxRangeSlider_Disposing(object sender, JQueryEventArgs e) { + if (e.Identifier == Id) { + Disposing?.Invoke(); + } + } + [Parameter] + Action OptionChanged { get; set; } + void DxRangeSlider_OptionChanged(object sender, JQueryEventArgs e) { + if (e.Identifier == Id) { + OptionChanged?.Invoke(); + } + } + [Parameter] + Action Initialized { get; set; } + void DxRangeSlider_Initialized(object sender, JQueryEventArgs e) { + if (e.Identifier == Id) { + Initialized?.Invoke(); + } + } public void Reset() { DevExpress.Ui.DxRangeSliderInterop.Reset(dxTarget); } public void Dispose() { DevExpress.Ui.DxRangeSliderInterop.ValueChanged -= DxRangeSlider_ValueChanged; + DevExpress.Ui.DxRangeSliderInterop.ContentReady -= DxRangeSlider_ContentReady; + DevExpress.Ui.DxRangeSliderInterop.Disposing -= DxRangeSlider_Disposing; + DevExpress.Ui.DxRangeSliderInterop.OptionChanged -= DxRangeSlider_OptionChanged; + DevExpress.Ui.DxRangeSliderInterop.Initialized -= DxRangeSlider_Initialized; } } diff --git a/sources/BlazorDevExtreme/Components/DxResizable.cshtml b/sources/BlazorDevExtreme/Components/DxResizable.cshtml index dc3d1c6..32c4fce 100644 --- a/sources/BlazorDevExtreme/Components/DxResizable.cshtml +++ b/sources/BlazorDevExtreme/Components/DxResizable.cshtml @@ -17,18 +17,24 @@ minHeight = minHeight, minWidth = minWidth, width = width, + bindingOptions = bindingOptions, + elementAttr = elementAttr, + rtlEnabled = rtlEnabled, onResizeEnabled = onResizeEnabled, onResizeEndEnabled = onResizeEndEnabled, onResizeStartEnabled = onResizeStartEnabled, + onDisposingEnabled = onDisposingEnabled, + onOptionChangedEnabled = onOptionChangedEnabled, + onInitializedEnabled = onInitializedEnabled, }; } protected override Task Init(DevExpress.Ui.DxResizableOptions options) { -return DevExpress.Ui.DxResizableInterop.Init(dxTarget, options); + return DevExpress.Ui.DxResizableInterop.Init(dxTarget, options); } string handles; [Parameter] string Handles { - get => isInitialized ? DevExpress.Ui.DxResizableInterop.GetHandles(dxTarget).Result : handles; + get => isInitialized ? (string)DevExpress.Ui.DxResizableInterop.GetHandles(dxTarget).Result : handles; set { if (isInitialized) { DevExpress.Ui.DxResizableInterop.SetHandles(dxTarget, value); @@ -52,7 +58,7 @@ return DevExpress.Ui.DxResizableInterop.Init(dxTarget, options); float? maxHeight; [Parameter] float? MaxHeight { - get => isInitialized ? DevExpress.Ui.DxResizableInterop.GetMaxHeight(dxTarget).Result : maxHeight; + get => isInitialized ? (float?)DevExpress.Ui.DxResizableInterop.GetMaxHeight(dxTarget).Result : maxHeight; set { if (isInitialized) { DevExpress.Ui.DxResizableInterop.SetMaxHeight(dxTarget, value); @@ -64,7 +70,7 @@ return DevExpress.Ui.DxResizableInterop.Init(dxTarget, options); float? maxWidth; [Parameter] float? MaxWidth { - get => isInitialized ? DevExpress.Ui.DxResizableInterop.GetMaxWidth(dxTarget).Result : maxWidth; + get => isInitialized ? (float?)DevExpress.Ui.DxResizableInterop.GetMaxWidth(dxTarget).Result : maxWidth; set { if (isInitialized) { DevExpress.Ui.DxResizableInterop.SetMaxWidth(dxTarget, value); @@ -76,7 +82,7 @@ return DevExpress.Ui.DxResizableInterop.Init(dxTarget, options); float? minHeight; [Parameter] float? MinHeight { - get => isInitialized ? DevExpress.Ui.DxResizableInterop.GetMinHeight(dxTarget).Result : minHeight; + get => isInitialized ? (float?)DevExpress.Ui.DxResizableInterop.GetMinHeight(dxTarget).Result : minHeight; set { if (isInitialized) { DevExpress.Ui.DxResizableInterop.SetMinHeight(dxTarget, value); @@ -88,7 +94,7 @@ return DevExpress.Ui.DxResizableInterop.Init(dxTarget, options); float? minWidth; [Parameter] float? MinWidth { - get => isInitialized ? DevExpress.Ui.DxResizableInterop.GetMinWidth(dxTarget).Result : minWidth; + get => isInitialized ? (float?)DevExpress.Ui.DxResizableInterop.GetMinWidth(dxTarget).Result : minWidth; set { if (isInitialized) { DevExpress.Ui.DxResizableInterop.SetMinWidth(dxTarget, value); @@ -109,6 +115,42 @@ return DevExpress.Ui.DxResizableInterop.Init(dxTarget, options); } } } + object bindingOptions; + [Parameter] + object BindingOptions { + get => isInitialized ? DevExpress.Ui.DxResizableInterop.GetBindingOptions(dxTarget).Result : bindingOptions; + set { + if (isInitialized) { + DevExpress.Ui.DxResizableInterop.SetBindingOptions(dxTarget, value); + } else { + this.bindingOptions = value; + } + } + } + object elementAttr; + [Parameter] + object ElementAttr { + get => isInitialized ? DevExpress.Ui.DxResizableInterop.GetElementAttr(dxTarget).Result : elementAttr; + set { + if (isInitialized) { + DevExpress.Ui.DxResizableInterop.SetElementAttr(dxTarget, value); + } else { + this.elementAttr = value; + } + } + } + bool? rtlEnabled; + [Parameter] + bool? RtlEnabled { + get => isInitialized ? (bool?)DevExpress.Ui.DxResizableInterop.GetRtlEnabled(dxTarget).Result : rtlEnabled; + set { + if (isInitialized) { + DevExpress.Ui.DxResizableInterop.SetRtlEnabled(dxTarget, value); + } else { + this.rtlEnabled = value; + } + } + } bool? onResizeEnabled; [Parameter] bool? OnResizeEnabled { @@ -127,11 +169,32 @@ return DevExpress.Ui.DxResizableInterop.Init(dxTarget, options); get => onResizeStartEnabled; set => this.onResizeStartEnabled = value; } + bool? onDisposingEnabled; + [Parameter] + bool? OnDisposingEnabled { + get => onDisposingEnabled; + set => this.onDisposingEnabled = value; + } + bool? onOptionChangedEnabled; + [Parameter] + bool? OnOptionChangedEnabled { + get => onOptionChangedEnabled; + set => this.onOptionChangedEnabled = value; + } + bool? onInitializedEnabled; + [Parameter] + bool? OnInitializedEnabled { + get => onInitializedEnabled; + set => this.onInitializedEnabled = value; + } protected override async Task OnInitAsync() { await base.OnInitAsync(); DevExpress.Ui.DxResizableInterop.Resize += DxResizable_Resize; DevExpress.Ui.DxResizableInterop.ResizeEnd += DxResizable_ResizeEnd; DevExpress.Ui.DxResizableInterop.ResizeStart += DxResizable_ResizeStart; + DevExpress.Ui.DxResizableInterop.Disposing += DxResizable_Disposing; + DevExpress.Ui.DxResizableInterop.OptionChanged += DxResizable_OptionChanged; + DevExpress.Ui.DxResizableInterop.Initialized += DxResizable_Initialized; } [Parameter] Action Resize { get; set; } @@ -154,9 +217,33 @@ return DevExpress.Ui.DxResizableInterop.Init(dxTarget, options); ResizeStart?.Invoke(); } } + [Parameter] + Action Disposing { get; set; } + void DxResizable_Disposing(object sender, JQueryEventArgs e) { + if (e.Identifier == Id) { + Disposing?.Invoke(); + } + } + [Parameter] + Action OptionChanged { get; set; } + void DxResizable_OptionChanged(object sender, JQueryEventArgs e) { + if (e.Identifier == Id) { + OptionChanged?.Invoke(); + } + } + [Parameter] + Action Initialized { get; set; } + void DxResizable_Initialized(object sender, JQueryEventArgs e) { + if (e.Identifier == Id) { + Initialized?.Invoke(); + } + } public void Dispose() { DevExpress.Ui.DxResizableInterop.Resize -= DxResizable_Resize; DevExpress.Ui.DxResizableInterop.ResizeEnd -= DxResizable_ResizeEnd; DevExpress.Ui.DxResizableInterop.ResizeStart -= DxResizable_ResizeStart; + DevExpress.Ui.DxResizableInterop.Disposing -= DxResizable_Disposing; + DevExpress.Ui.DxResizableInterop.OptionChanged -= DxResizable_OptionChanged; + DevExpress.Ui.DxResizableInterop.Initialized -= DxResizable_Initialized; } } diff --git a/sources/BlazorDevExtreme/Components/DxResponsiveBox.cshtml b/sources/BlazorDevExtreme/Components/DxResponsiveBox.cshtml index 3a0794b..2370b50 100644 --- a/sources/BlazorDevExtreme/Components/DxResponsiveBox.cshtml +++ b/sources/BlazorDevExtreme/Components/DxResponsiveBox.cshtml @@ -16,10 +16,40 @@ screenByWidth = screenByWidth, singleColumnScreen = singleColumnScreen, width = width, + dataSource = dataSource, + itemHoldTimeout = itemHoldTimeout, + items = items, + itemTemplate = itemTemplate, + keyExpr = keyExpr, + noDataText = noDataText, + selectedIndex = selectedIndex, + selectedItem = selectedItem, + selectedItemKeys = selectedItemKeys, + selectedItems = selectedItems, + accessKey = accessKey, + activeStateEnabled = activeStateEnabled, + disabled = disabled, + focusStateEnabled = focusStateEnabled, + hint = hint, + hoverStateEnabled = hoverStateEnabled, + tabIndex = tabIndex, + visible = visible, + bindingOptions = bindingOptions, + elementAttr = elementAttr, + rtlEnabled = rtlEnabled, + onItemClickEnabled = onItemClickEnabled, + onItemContextMenuEnabled = onItemContextMenuEnabled, + onItemHoldEnabled = onItemHoldEnabled, + onItemRenderedEnabled = onItemRenderedEnabled, + onSelectionChangedEnabled = onSelectionChangedEnabled, + onContentReadyEnabled = onContentReadyEnabled, + onDisposingEnabled = onDisposingEnabled, + onOptionChangedEnabled = onOptionChangedEnabled, + onInitializedEnabled = onInitializedEnabled, }; } protected override Task Init(DevExpress.Ui.DxResponsiveBoxOptions options) { -return DevExpress.Ui.DxResponsiveBoxInterop.Init(dxTarget, options); + return DevExpress.Ui.DxResponsiveBoxInterop.Init(dxTarget, options); } object cols; [Parameter] @@ -72,7 +102,7 @@ return DevExpress.Ui.DxResponsiveBoxInterop.Init(dxTarget, options); string singleColumnScreen; [Parameter] string SingleColumnScreen { - get => isInitialized ? DevExpress.Ui.DxResponsiveBoxInterop.GetSingleColumnScreen(dxTarget).Result : singleColumnScreen; + get => isInitialized ? (string)DevExpress.Ui.DxResponsiveBoxInterop.GetSingleColumnScreen(dxTarget).Result : singleColumnScreen; set { if (isInitialized) { DevExpress.Ui.DxResponsiveBoxInterop.SetSingleColumnScreen(dxTarget, value); @@ -93,9 +123,396 @@ return DevExpress.Ui.DxResponsiveBoxInterop.Init(dxTarget, options); } } } + object dataSource; + [Parameter] + object DataSource { + get => isInitialized ? DevExpress.Ui.DxResponsiveBoxInterop.GetDataSource(dxTarget).Result : dataSource; + set { + if (isInitialized) { + DevExpress.Ui.DxResponsiveBoxInterop.SetDataSource(dxTarget, value); + } else { + this.dataSource = value; + } + } + } + float? itemHoldTimeout; + [Parameter] + float? ItemHoldTimeout { + get => isInitialized ? (float?)DevExpress.Ui.DxResponsiveBoxInterop.GetItemHoldTimeout(dxTarget).Result : itemHoldTimeout; + set { + if (isInitialized) { + DevExpress.Ui.DxResponsiveBoxInterop.SetItemHoldTimeout(dxTarget, value); + } else { + this.itemHoldTimeout = value; + } + } + } + object items; + [Parameter] + object Items { + get => isInitialized ? DevExpress.Ui.DxResponsiveBoxInterop.GetItems(dxTarget).Result : items; + set { + if (isInitialized) { + DevExpress.Ui.DxResponsiveBoxInterop.SetItems(dxTarget, value); + } else { + this.items = value; + } + } + } + object itemTemplate; + [Parameter] + object ItemTemplate { + get => isInitialized ? DevExpress.Ui.DxResponsiveBoxInterop.GetItemTemplate(dxTarget).Result : itemTemplate; + set { + if (isInitialized) { + DevExpress.Ui.DxResponsiveBoxInterop.SetItemTemplate(dxTarget, value); + } else { + this.itemTemplate = value; + } + } + } + object keyExpr; + [Parameter] + object KeyExpr { + get => isInitialized ? DevExpress.Ui.DxResponsiveBoxInterop.GetKeyExpr(dxTarget).Result : keyExpr; + set { + if (isInitialized) { + DevExpress.Ui.DxResponsiveBoxInterop.SetKeyExpr(dxTarget, value); + } else { + this.keyExpr = value; + } + } + } + string noDataText; + [Parameter] + string NoDataText { + get => isInitialized ? (string)DevExpress.Ui.DxResponsiveBoxInterop.GetNoDataText(dxTarget).Result : noDataText; + set { + if (isInitialized) { + DevExpress.Ui.DxResponsiveBoxInterop.SetNoDataText(dxTarget, value); + } else { + this.noDataText = value; + } + } + } + float? selectedIndex; + [Parameter] + float? SelectedIndex { + get => isInitialized ? (float?)DevExpress.Ui.DxResponsiveBoxInterop.GetSelectedIndex(dxTarget).Result : selectedIndex; + set { + if (isInitialized) { + DevExpress.Ui.DxResponsiveBoxInterop.SetSelectedIndex(dxTarget, value); + } else { + this.selectedIndex = value; + } + } + } + object selectedItem; + [Parameter] + object SelectedItem { + get => isInitialized ? DevExpress.Ui.DxResponsiveBoxInterop.GetSelectedItem(dxTarget).Result : selectedItem; + set { + if (isInitialized) { + DevExpress.Ui.DxResponsiveBoxInterop.SetSelectedItem(dxTarget, value); + } else { + this.selectedItem = value; + } + } + } + object selectedItemKeys; + [Parameter] + object SelectedItemKeys { + get => isInitialized ? DevExpress.Ui.DxResponsiveBoxInterop.GetSelectedItemKeys(dxTarget).Result : selectedItemKeys; + set { + if (isInitialized) { + DevExpress.Ui.DxResponsiveBoxInterop.SetSelectedItemKeys(dxTarget, value); + } else { + this.selectedItemKeys = value; + } + } + } + object selectedItems; + [Parameter] + object SelectedItems { + get => isInitialized ? DevExpress.Ui.DxResponsiveBoxInterop.GetSelectedItems(dxTarget).Result : selectedItems; + set { + if (isInitialized) { + DevExpress.Ui.DxResponsiveBoxInterop.SetSelectedItems(dxTarget, value); + } else { + this.selectedItems = value; + } + } + } + string accessKey; + [Parameter] + string AccessKey { + get => isInitialized ? (string)DevExpress.Ui.DxResponsiveBoxInterop.GetAccessKey(dxTarget).Result : accessKey; + set { + if (isInitialized) { + DevExpress.Ui.DxResponsiveBoxInterop.SetAccessKey(dxTarget, value); + } else { + this.accessKey = value; + } + } + } + bool? activeStateEnabled; + [Parameter] + bool? ActiveStateEnabled { + get => isInitialized ? (bool?)DevExpress.Ui.DxResponsiveBoxInterop.GetActiveStateEnabled(dxTarget).Result : activeStateEnabled; + set { + if (isInitialized) { + DevExpress.Ui.DxResponsiveBoxInterop.SetActiveStateEnabled(dxTarget, value); + } else { + this.activeStateEnabled = value; + } + } + } + bool? disabled; + [Parameter] + bool? Disabled { + get => isInitialized ? (bool?)DevExpress.Ui.DxResponsiveBoxInterop.GetDisabled(dxTarget).Result : disabled; + set { + if (isInitialized) { + DevExpress.Ui.DxResponsiveBoxInterop.SetDisabled(dxTarget, value); + } else { + this.disabled = value; + } + } + } + bool? focusStateEnabled; + [Parameter] + bool? FocusStateEnabled { + get => isInitialized ? (bool?)DevExpress.Ui.DxResponsiveBoxInterop.GetFocusStateEnabled(dxTarget).Result : focusStateEnabled; + set { + if (isInitialized) { + DevExpress.Ui.DxResponsiveBoxInterop.SetFocusStateEnabled(dxTarget, value); + } else { + this.focusStateEnabled = value; + } + } + } + string hint; + [Parameter] + string Hint { + get => isInitialized ? (string)DevExpress.Ui.DxResponsiveBoxInterop.GetHint(dxTarget).Result : hint; + set { + if (isInitialized) { + DevExpress.Ui.DxResponsiveBoxInterop.SetHint(dxTarget, value); + } else { + this.hint = value; + } + } + } + bool? hoverStateEnabled; + [Parameter] + bool? HoverStateEnabled { + get => isInitialized ? (bool?)DevExpress.Ui.DxResponsiveBoxInterop.GetHoverStateEnabled(dxTarget).Result : hoverStateEnabled; + set { + if (isInitialized) { + DevExpress.Ui.DxResponsiveBoxInterop.SetHoverStateEnabled(dxTarget, value); + } else { + this.hoverStateEnabled = value; + } + } + } + float? tabIndex; + [Parameter] + float? TabIndex { + get => isInitialized ? (float?)DevExpress.Ui.DxResponsiveBoxInterop.GetTabIndex(dxTarget).Result : tabIndex; + set { + if (isInitialized) { + DevExpress.Ui.DxResponsiveBoxInterop.SetTabIndex(dxTarget, value); + } else { + this.tabIndex = value; + } + } + } + bool? visible; + [Parameter] + bool? Visible { + get => isInitialized ? (bool?)DevExpress.Ui.DxResponsiveBoxInterop.GetVisible(dxTarget).Result : visible; + set { + if (isInitialized) { + DevExpress.Ui.DxResponsiveBoxInterop.SetVisible(dxTarget, value); + } else { + this.visible = value; + } + } + } + object bindingOptions; + [Parameter] + object BindingOptions { + get => isInitialized ? DevExpress.Ui.DxResponsiveBoxInterop.GetBindingOptions(dxTarget).Result : bindingOptions; + set { + if (isInitialized) { + DevExpress.Ui.DxResponsiveBoxInterop.SetBindingOptions(dxTarget, value); + } else { + this.bindingOptions = value; + } + } + } + object elementAttr; + [Parameter] + object ElementAttr { + get => isInitialized ? DevExpress.Ui.DxResponsiveBoxInterop.GetElementAttr(dxTarget).Result : elementAttr; + set { + if (isInitialized) { + DevExpress.Ui.DxResponsiveBoxInterop.SetElementAttr(dxTarget, value); + } else { + this.elementAttr = value; + } + } + } + bool? rtlEnabled; + [Parameter] + bool? RtlEnabled { + get => isInitialized ? (bool?)DevExpress.Ui.DxResponsiveBoxInterop.GetRtlEnabled(dxTarget).Result : rtlEnabled; + set { + if (isInitialized) { + DevExpress.Ui.DxResponsiveBoxInterop.SetRtlEnabled(dxTarget, value); + } else { + this.rtlEnabled = value; + } + } + } + bool? onItemClickEnabled; + [Parameter] + bool? OnItemClickEnabled { + get => onItemClickEnabled; + set => this.onItemClickEnabled = value; + } + bool? onItemContextMenuEnabled; + [Parameter] + bool? OnItemContextMenuEnabled { + get => onItemContextMenuEnabled; + set => this.onItemContextMenuEnabled = value; + } + bool? onItemHoldEnabled; + [Parameter] + bool? OnItemHoldEnabled { + get => onItemHoldEnabled; + set => this.onItemHoldEnabled = value; + } + bool? onItemRenderedEnabled; + [Parameter] + bool? OnItemRenderedEnabled { + get => onItemRenderedEnabled; + set => this.onItemRenderedEnabled = value; + } + bool? onSelectionChangedEnabled; + [Parameter] + bool? OnSelectionChangedEnabled { + get => onSelectionChangedEnabled; + set => this.onSelectionChangedEnabled = value; + } + bool? onContentReadyEnabled; + [Parameter] + bool? OnContentReadyEnabled { + get => onContentReadyEnabled; + set => this.onContentReadyEnabled = value; + } + bool? onDisposingEnabled; + [Parameter] + bool? OnDisposingEnabled { + get => onDisposingEnabled; + set => this.onDisposingEnabled = value; + } + bool? onOptionChangedEnabled; + [Parameter] + bool? OnOptionChangedEnabled { + get => onOptionChangedEnabled; + set => this.onOptionChangedEnabled = value; + } + bool? onInitializedEnabled; + [Parameter] + bool? OnInitializedEnabled { + get => onInitializedEnabled; + set => this.onInitializedEnabled = value; + } protected override async Task OnInitAsync() { await base.OnInitAsync(); + DevExpress.Ui.DxResponsiveBoxInterop.ItemClick += DxResponsiveBox_ItemClick; + DevExpress.Ui.DxResponsiveBoxInterop.ItemContextMenu += DxResponsiveBox_ItemContextMenu; + DevExpress.Ui.DxResponsiveBoxInterop.ItemHold += DxResponsiveBox_ItemHold; + DevExpress.Ui.DxResponsiveBoxInterop.ItemRendered += DxResponsiveBox_ItemRendered; + DevExpress.Ui.DxResponsiveBoxInterop.SelectionChanged += DxResponsiveBox_SelectionChanged; + DevExpress.Ui.DxResponsiveBoxInterop.ContentReady += DxResponsiveBox_ContentReady; + DevExpress.Ui.DxResponsiveBoxInterop.Disposing += DxResponsiveBox_Disposing; + DevExpress.Ui.DxResponsiveBoxInterop.OptionChanged += DxResponsiveBox_OptionChanged; + DevExpress.Ui.DxResponsiveBoxInterop.Initialized += DxResponsiveBox_Initialized; + } + [Parameter] + Action ItemClick { get; set; } + void DxResponsiveBox_ItemClick(object sender, JQueryEventArgs e) { + if (e.Identifier == Id) { + ItemClick?.Invoke(); + } + } + [Parameter] + Action ItemContextMenu { get; set; } + void DxResponsiveBox_ItemContextMenu(object sender, JQueryEventArgs e) { + if (e.Identifier == Id) { + ItemContextMenu?.Invoke(); + } + } + [Parameter] + Action ItemHold { get; set; } + void DxResponsiveBox_ItemHold(object sender, JQueryEventArgs e) { + if (e.Identifier == Id) { + ItemHold?.Invoke(); + } + } + [Parameter] + Action ItemRendered { get; set; } + void DxResponsiveBox_ItemRendered(object sender, JQueryEventArgs e) { + if (e.Identifier == Id) { + ItemRendered?.Invoke(); + } + } + [Parameter] + Action SelectionChanged { get; set; } + void DxResponsiveBox_SelectionChanged(object sender, JQueryEventArgs e) { + if (e.Identifier == Id) { + SelectionChanged?.Invoke(); + } + } + [Parameter] + Action ContentReady { get; set; } + void DxResponsiveBox_ContentReady(object sender, JQueryEventArgs e) { + if (e.Identifier == Id) { + ContentReady?.Invoke(); + } + } + [Parameter] + Action Disposing { get; set; } + void DxResponsiveBox_Disposing(object sender, JQueryEventArgs e) { + if (e.Identifier == Id) { + Disposing?.Invoke(); + } + } + [Parameter] + Action OptionChanged { get; set; } + void DxResponsiveBox_OptionChanged(object sender, JQueryEventArgs e) { + if (e.Identifier == Id) { + OptionChanged?.Invoke(); + } + } + [Parameter] + Action Initialized { get; set; } + void DxResponsiveBox_Initialized(object sender, JQueryEventArgs e) { + if (e.Identifier == Id) { + Initialized?.Invoke(); + } } public void Dispose() { + DevExpress.Ui.DxResponsiveBoxInterop.ItemClick -= DxResponsiveBox_ItemClick; + DevExpress.Ui.DxResponsiveBoxInterop.ItemContextMenu -= DxResponsiveBox_ItemContextMenu; + DevExpress.Ui.DxResponsiveBoxInterop.ItemHold -= DxResponsiveBox_ItemHold; + DevExpress.Ui.DxResponsiveBoxInterop.ItemRendered -= DxResponsiveBox_ItemRendered; + DevExpress.Ui.DxResponsiveBoxInterop.SelectionChanged -= DxResponsiveBox_SelectionChanged; + DevExpress.Ui.DxResponsiveBoxInterop.ContentReady -= DxResponsiveBox_ContentReady; + DevExpress.Ui.DxResponsiveBoxInterop.Disposing -= DxResponsiveBox_Disposing; + DevExpress.Ui.DxResponsiveBoxInterop.OptionChanged -= DxResponsiveBox_OptionChanged; + DevExpress.Ui.DxResponsiveBoxInterop.Initialized -= DxResponsiveBox_Initialized; } } diff --git a/sources/BlazorDevExtreme/Components/DxScheduler.cshtml b/sources/BlazorDevExtreme/Components/DxScheduler.cshtml index 9b128ae..485d2c4 100644 --- a/sources/BlazorDevExtreme/Components/DxScheduler.cshtml +++ b/sources/BlazorDevExtreme/Components/DxScheduler.cshtml @@ -53,6 +53,18 @@ timeZone = timeZone, useDropDownViewSwitcher = useDropDownViewSwitcher, views = views, + accessKey = accessKey, + activeStateEnabled = activeStateEnabled, + disabled = disabled, + hint = hint, + hoverStateEnabled = hoverStateEnabled, + tabIndex = tabIndex, + visible = visible, + bindingOptions = bindingOptions, + elementAttr = elementAttr, + height = height, + rtlEnabled = rtlEnabled, + width = width, onAppointmentAddedEnabled = onAppointmentAddedEnabled, onAppointmentAddingEnabled = onAppointmentAddingEnabled, onAppointmentClickEnabled = onAppointmentClickEnabled, @@ -66,15 +78,19 @@ onAppointmentUpdatingEnabled = onAppointmentUpdatingEnabled, onCellClickEnabled = onCellClickEnabled, onCellContextMenuEnabled = onCellContextMenuEnabled, + onContentReadyEnabled = onContentReadyEnabled, + onDisposingEnabled = onDisposingEnabled, + onOptionChangedEnabled = onOptionChangedEnabled, + onInitializedEnabled = onInitializedEnabled, }; } protected override Task Init(DevExpress.Ui.DxSchedulerOptions options) { -return DevExpress.Ui.DxSchedulerInterop.Init(dxTarget, options); + return DevExpress.Ui.DxSchedulerInterop.Init(dxTarget, options); } string allDayExpr; [Parameter] string AllDayExpr { - get => isInitialized ? DevExpress.Ui.DxSchedulerInterop.GetAllDayExpr(dxTarget).Result : allDayExpr; + get => isInitialized ? (string)DevExpress.Ui.DxSchedulerInterop.GetAllDayExpr(dxTarget).Result : allDayExpr; set { if (isInitialized) { DevExpress.Ui.DxSchedulerInterop.SetAllDayExpr(dxTarget, value); @@ -110,7 +126,7 @@ return DevExpress.Ui.DxSchedulerInterop.Init(dxTarget, options); float? cellDuration; [Parameter] float? CellDuration { - get => isInitialized ? DevExpress.Ui.DxSchedulerInterop.GetCellDuration(dxTarget).Result : cellDuration; + get => isInitialized ? (float?)DevExpress.Ui.DxSchedulerInterop.GetCellDuration(dxTarget).Result : cellDuration; set { if (isInitialized) { DevExpress.Ui.DxSchedulerInterop.SetCellDuration(dxTarget, value); @@ -122,7 +138,7 @@ return DevExpress.Ui.DxSchedulerInterop.Init(dxTarget, options); bool? crossScrollingEnabled; [Parameter] bool? CrossScrollingEnabled { - get => isInitialized ? DevExpress.Ui.DxSchedulerInterop.GetCrossScrollingEnabled(dxTarget).Result : crossScrollingEnabled; + get => isInitialized ? (bool?)DevExpress.Ui.DxSchedulerInterop.GetCrossScrollingEnabled(dxTarget).Result : crossScrollingEnabled; set { if (isInitialized) { DevExpress.Ui.DxSchedulerInterop.SetCrossScrollingEnabled(dxTarget, value); @@ -146,7 +162,7 @@ return DevExpress.Ui.DxSchedulerInterop.Init(dxTarget, options); string currentView; [Parameter] string CurrentView { - get => isInitialized ? DevExpress.Ui.DxSchedulerInterop.GetCurrentView(dxTarget).Result : currentView; + get => isInitialized ? (string)DevExpress.Ui.DxSchedulerInterop.GetCurrentView(dxTarget).Result : currentView; set { if (isInitialized) { DevExpress.Ui.DxSchedulerInterop.SetCurrentView(dxTarget, value); @@ -194,7 +210,7 @@ return DevExpress.Ui.DxSchedulerInterop.Init(dxTarget, options); string dateSerializationFormat; [Parameter] string DateSerializationFormat { - get => isInitialized ? DevExpress.Ui.DxSchedulerInterop.GetDateSerializationFormat(dxTarget).Result : dateSerializationFormat; + get => isInitialized ? (string)DevExpress.Ui.DxSchedulerInterop.GetDateSerializationFormat(dxTarget).Result : dateSerializationFormat; set { if (isInitialized) { DevExpress.Ui.DxSchedulerInterop.SetDateSerializationFormat(dxTarget, value); @@ -206,7 +222,7 @@ return DevExpress.Ui.DxSchedulerInterop.Init(dxTarget, options); string descriptionExpr; [Parameter] string DescriptionExpr { - get => isInitialized ? DevExpress.Ui.DxSchedulerInterop.GetDescriptionExpr(dxTarget).Result : descriptionExpr; + get => isInitialized ? (string)DevExpress.Ui.DxSchedulerInterop.GetDescriptionExpr(dxTarget).Result : descriptionExpr; set { if (isInitialized) { DevExpress.Ui.DxSchedulerInterop.SetDescriptionExpr(dxTarget, value); @@ -242,7 +258,7 @@ return DevExpress.Ui.DxSchedulerInterop.Init(dxTarget, options); string endDateExpr; [Parameter] string EndDateExpr { - get => isInitialized ? DevExpress.Ui.DxSchedulerInterop.GetEndDateExpr(dxTarget).Result : endDateExpr; + get => isInitialized ? (string)DevExpress.Ui.DxSchedulerInterop.GetEndDateExpr(dxTarget).Result : endDateExpr; set { if (isInitialized) { DevExpress.Ui.DxSchedulerInterop.SetEndDateExpr(dxTarget, value); @@ -254,7 +270,7 @@ return DevExpress.Ui.DxSchedulerInterop.Init(dxTarget, options); string endDateTimeZoneExpr; [Parameter] string EndDateTimeZoneExpr { - get => isInitialized ? DevExpress.Ui.DxSchedulerInterop.GetEndDateTimeZoneExpr(dxTarget).Result : endDateTimeZoneExpr; + get => isInitialized ? (string)DevExpress.Ui.DxSchedulerInterop.GetEndDateTimeZoneExpr(dxTarget).Result : endDateTimeZoneExpr; set { if (isInitialized) { DevExpress.Ui.DxSchedulerInterop.SetEndDateTimeZoneExpr(dxTarget, value); @@ -266,7 +282,7 @@ return DevExpress.Ui.DxSchedulerInterop.Init(dxTarget, options); float? endDayHour; [Parameter] float? EndDayHour { - get => isInitialized ? DevExpress.Ui.DxSchedulerInterop.GetEndDayHour(dxTarget).Result : endDayHour; + get => isInitialized ? (float?)DevExpress.Ui.DxSchedulerInterop.GetEndDayHour(dxTarget).Result : endDayHour; set { if (isInitialized) { DevExpress.Ui.DxSchedulerInterop.SetEndDayHour(dxTarget, value); @@ -290,7 +306,7 @@ return DevExpress.Ui.DxSchedulerInterop.Init(dxTarget, options); bool? focusStateEnabled; [Parameter] bool? FocusStateEnabled { - get => isInitialized ? DevExpress.Ui.DxSchedulerInterop.GetFocusStateEnabled(dxTarget).Result : focusStateEnabled; + get => isInitialized ? (bool?)DevExpress.Ui.DxSchedulerInterop.GetFocusStateEnabled(dxTarget).Result : focusStateEnabled; set { if (isInitialized) { DevExpress.Ui.DxSchedulerInterop.SetFocusStateEnabled(dxTarget, value); @@ -314,7 +330,7 @@ return DevExpress.Ui.DxSchedulerInterop.Init(dxTarget, options); float? indicatorUpdateInterval; [Parameter] float? IndicatorUpdateInterval { - get => isInitialized ? DevExpress.Ui.DxSchedulerInterop.GetIndicatorUpdateInterval(dxTarget).Result : indicatorUpdateInterval; + get => isInitialized ? (float?)DevExpress.Ui.DxSchedulerInterop.GetIndicatorUpdateInterval(dxTarget).Result : indicatorUpdateInterval; set { if (isInitialized) { DevExpress.Ui.DxSchedulerInterop.SetIndicatorUpdateInterval(dxTarget, value); @@ -362,7 +378,7 @@ return DevExpress.Ui.DxSchedulerInterop.Init(dxTarget, options); string noDataText; [Parameter] string NoDataText { - get => isInitialized ? DevExpress.Ui.DxSchedulerInterop.GetNoDataText(dxTarget).Result : noDataText; + get => isInitialized ? (string)DevExpress.Ui.DxSchedulerInterop.GetNoDataText(dxTarget).Result : noDataText; set { if (isInitialized) { DevExpress.Ui.DxSchedulerInterop.SetNoDataText(dxTarget, value); @@ -374,7 +390,7 @@ return DevExpress.Ui.DxSchedulerInterop.Init(dxTarget, options); string recurrenceEditMode; [Parameter] string RecurrenceEditMode { - get => isInitialized ? DevExpress.Ui.DxSchedulerInterop.GetRecurrenceEditMode(dxTarget).Result : recurrenceEditMode; + get => isInitialized ? (string)DevExpress.Ui.DxSchedulerInterop.GetRecurrenceEditMode(dxTarget).Result : recurrenceEditMode; set { if (isInitialized) { DevExpress.Ui.DxSchedulerInterop.SetRecurrenceEditMode(dxTarget, value); @@ -386,7 +402,7 @@ return DevExpress.Ui.DxSchedulerInterop.Init(dxTarget, options); string recurrenceExceptionExpr; [Parameter] string RecurrenceExceptionExpr { - get => isInitialized ? DevExpress.Ui.DxSchedulerInterop.GetRecurrenceExceptionExpr(dxTarget).Result : recurrenceExceptionExpr; + get => isInitialized ? (string)DevExpress.Ui.DxSchedulerInterop.GetRecurrenceExceptionExpr(dxTarget).Result : recurrenceExceptionExpr; set { if (isInitialized) { DevExpress.Ui.DxSchedulerInterop.SetRecurrenceExceptionExpr(dxTarget, value); @@ -398,7 +414,7 @@ return DevExpress.Ui.DxSchedulerInterop.Init(dxTarget, options); string recurrenceRuleExpr; [Parameter] string RecurrenceRuleExpr { - get => isInitialized ? DevExpress.Ui.DxSchedulerInterop.GetRecurrenceRuleExpr(dxTarget).Result : recurrenceRuleExpr; + get => isInitialized ? (string)DevExpress.Ui.DxSchedulerInterop.GetRecurrenceRuleExpr(dxTarget).Result : recurrenceRuleExpr; set { if (isInitialized) { DevExpress.Ui.DxSchedulerInterop.SetRecurrenceRuleExpr(dxTarget, value); @@ -410,7 +426,7 @@ return DevExpress.Ui.DxSchedulerInterop.Init(dxTarget, options); bool? remoteFiltering; [Parameter] bool? RemoteFiltering { - get => isInitialized ? DevExpress.Ui.DxSchedulerInterop.GetRemoteFiltering(dxTarget).Result : remoteFiltering; + get => isInitialized ? (bool?)DevExpress.Ui.DxSchedulerInterop.GetRemoteFiltering(dxTarget).Result : remoteFiltering; set { if (isInitialized) { DevExpress.Ui.DxSchedulerInterop.SetRemoteFiltering(dxTarget, value); @@ -458,7 +474,7 @@ return DevExpress.Ui.DxSchedulerInterop.Init(dxTarget, options); bool? shadeUntilCurrentTime; [Parameter] bool? ShadeUntilCurrentTime { - get => isInitialized ? DevExpress.Ui.DxSchedulerInterop.GetShadeUntilCurrentTime(dxTarget).Result : shadeUntilCurrentTime; + get => isInitialized ? (bool?)DevExpress.Ui.DxSchedulerInterop.GetShadeUntilCurrentTime(dxTarget).Result : shadeUntilCurrentTime; set { if (isInitialized) { DevExpress.Ui.DxSchedulerInterop.SetShadeUntilCurrentTime(dxTarget, value); @@ -470,7 +486,7 @@ return DevExpress.Ui.DxSchedulerInterop.Init(dxTarget, options); bool? showAllDayPanel; [Parameter] bool? ShowAllDayPanel { - get => isInitialized ? DevExpress.Ui.DxSchedulerInterop.GetShowAllDayPanel(dxTarget).Result : showAllDayPanel; + get => isInitialized ? (bool?)DevExpress.Ui.DxSchedulerInterop.GetShowAllDayPanel(dxTarget).Result : showAllDayPanel; set { if (isInitialized) { DevExpress.Ui.DxSchedulerInterop.SetShowAllDayPanel(dxTarget, value); @@ -482,7 +498,7 @@ return DevExpress.Ui.DxSchedulerInterop.Init(dxTarget, options); bool? showCurrentTimeIndicator; [Parameter] bool? ShowCurrentTimeIndicator { - get => isInitialized ? DevExpress.Ui.DxSchedulerInterop.GetShowCurrentTimeIndicator(dxTarget).Result : showCurrentTimeIndicator; + get => isInitialized ? (bool?)DevExpress.Ui.DxSchedulerInterop.GetShowCurrentTimeIndicator(dxTarget).Result : showCurrentTimeIndicator; set { if (isInitialized) { DevExpress.Ui.DxSchedulerInterop.SetShowCurrentTimeIndicator(dxTarget, value); @@ -494,7 +510,7 @@ return DevExpress.Ui.DxSchedulerInterop.Init(dxTarget, options); string startDateExpr; [Parameter] string StartDateExpr { - get => isInitialized ? DevExpress.Ui.DxSchedulerInterop.GetStartDateExpr(dxTarget).Result : startDateExpr; + get => isInitialized ? (string)DevExpress.Ui.DxSchedulerInterop.GetStartDateExpr(dxTarget).Result : startDateExpr; set { if (isInitialized) { DevExpress.Ui.DxSchedulerInterop.SetStartDateExpr(dxTarget, value); @@ -506,7 +522,7 @@ return DevExpress.Ui.DxSchedulerInterop.Init(dxTarget, options); string startDateTimeZoneExpr; [Parameter] string StartDateTimeZoneExpr { - get => isInitialized ? DevExpress.Ui.DxSchedulerInterop.GetStartDateTimeZoneExpr(dxTarget).Result : startDateTimeZoneExpr; + get => isInitialized ? (string)DevExpress.Ui.DxSchedulerInterop.GetStartDateTimeZoneExpr(dxTarget).Result : startDateTimeZoneExpr; set { if (isInitialized) { DevExpress.Ui.DxSchedulerInterop.SetStartDateTimeZoneExpr(dxTarget, value); @@ -518,7 +534,7 @@ return DevExpress.Ui.DxSchedulerInterop.Init(dxTarget, options); float? startDayHour; [Parameter] float? StartDayHour { - get => isInitialized ? DevExpress.Ui.DxSchedulerInterop.GetStartDayHour(dxTarget).Result : startDayHour; + get => isInitialized ? (float?)DevExpress.Ui.DxSchedulerInterop.GetStartDayHour(dxTarget).Result : startDayHour; set { if (isInitialized) { DevExpress.Ui.DxSchedulerInterop.SetStartDayHour(dxTarget, value); @@ -530,7 +546,7 @@ return DevExpress.Ui.DxSchedulerInterop.Init(dxTarget, options); string textExpr; [Parameter] string TextExpr { - get => isInitialized ? DevExpress.Ui.DxSchedulerInterop.GetTextExpr(dxTarget).Result : textExpr; + get => isInitialized ? (string)DevExpress.Ui.DxSchedulerInterop.GetTextExpr(dxTarget).Result : textExpr; set { if (isInitialized) { DevExpress.Ui.DxSchedulerInterop.SetTextExpr(dxTarget, value); @@ -554,7 +570,7 @@ return DevExpress.Ui.DxSchedulerInterop.Init(dxTarget, options); string timeZone; [Parameter] string TimeZone { - get => isInitialized ? DevExpress.Ui.DxSchedulerInterop.GetTimeZone(dxTarget).Result : timeZone; + get => isInitialized ? (string)DevExpress.Ui.DxSchedulerInterop.GetTimeZone(dxTarget).Result : timeZone; set { if (isInitialized) { DevExpress.Ui.DxSchedulerInterop.SetTimeZone(dxTarget, value); @@ -566,7 +582,7 @@ return DevExpress.Ui.DxSchedulerInterop.Init(dxTarget, options); bool? useDropDownViewSwitcher; [Parameter] bool? UseDropDownViewSwitcher { - get => isInitialized ? DevExpress.Ui.DxSchedulerInterop.GetUseDropDownViewSwitcher(dxTarget).Result : useDropDownViewSwitcher; + get => isInitialized ? (bool?)DevExpress.Ui.DxSchedulerInterop.GetUseDropDownViewSwitcher(dxTarget).Result : useDropDownViewSwitcher; set { if (isInitialized) { DevExpress.Ui.DxSchedulerInterop.SetUseDropDownViewSwitcher(dxTarget, value); @@ -587,6 +603,150 @@ return DevExpress.Ui.DxSchedulerInterop.Init(dxTarget, options); } } } + string accessKey; + [Parameter] + string AccessKey { + get => isInitialized ? (string)DevExpress.Ui.DxSchedulerInterop.GetAccessKey(dxTarget).Result : accessKey; + set { + if (isInitialized) { + DevExpress.Ui.DxSchedulerInterop.SetAccessKey(dxTarget, value); + } else { + this.accessKey = value; + } + } + } + bool? activeStateEnabled; + [Parameter] + bool? ActiveStateEnabled { + get => isInitialized ? (bool?)DevExpress.Ui.DxSchedulerInterop.GetActiveStateEnabled(dxTarget).Result : activeStateEnabled; + set { + if (isInitialized) { + DevExpress.Ui.DxSchedulerInterop.SetActiveStateEnabled(dxTarget, value); + } else { + this.activeStateEnabled = value; + } + } + } + bool? disabled; + [Parameter] + bool? Disabled { + get => isInitialized ? (bool?)DevExpress.Ui.DxSchedulerInterop.GetDisabled(dxTarget).Result : disabled; + set { + if (isInitialized) { + DevExpress.Ui.DxSchedulerInterop.SetDisabled(dxTarget, value); + } else { + this.disabled = value; + } + } + } + string hint; + [Parameter] + string Hint { + get => isInitialized ? (string)DevExpress.Ui.DxSchedulerInterop.GetHint(dxTarget).Result : hint; + set { + if (isInitialized) { + DevExpress.Ui.DxSchedulerInterop.SetHint(dxTarget, value); + } else { + this.hint = value; + } + } + } + bool? hoverStateEnabled; + [Parameter] + bool? HoverStateEnabled { + get => isInitialized ? (bool?)DevExpress.Ui.DxSchedulerInterop.GetHoverStateEnabled(dxTarget).Result : hoverStateEnabled; + set { + if (isInitialized) { + DevExpress.Ui.DxSchedulerInterop.SetHoverStateEnabled(dxTarget, value); + } else { + this.hoverStateEnabled = value; + } + } + } + float? tabIndex; + [Parameter] + float? TabIndex { + get => isInitialized ? (float?)DevExpress.Ui.DxSchedulerInterop.GetTabIndex(dxTarget).Result : tabIndex; + set { + if (isInitialized) { + DevExpress.Ui.DxSchedulerInterop.SetTabIndex(dxTarget, value); + } else { + this.tabIndex = value; + } + } + } + bool? visible; + [Parameter] + bool? Visible { + get => isInitialized ? (bool?)DevExpress.Ui.DxSchedulerInterop.GetVisible(dxTarget).Result : visible; + set { + if (isInitialized) { + DevExpress.Ui.DxSchedulerInterop.SetVisible(dxTarget, value); + } else { + this.visible = value; + } + } + } + object bindingOptions; + [Parameter] + object BindingOptions { + get => isInitialized ? DevExpress.Ui.DxSchedulerInterop.GetBindingOptions(dxTarget).Result : bindingOptions; + set { + if (isInitialized) { + DevExpress.Ui.DxSchedulerInterop.SetBindingOptions(dxTarget, value); + } else { + this.bindingOptions = value; + } + } + } + object elementAttr; + [Parameter] + object ElementAttr { + get => isInitialized ? DevExpress.Ui.DxSchedulerInterop.GetElementAttr(dxTarget).Result : elementAttr; + set { + if (isInitialized) { + DevExpress.Ui.DxSchedulerInterop.SetElementAttr(dxTarget, value); + } else { + this.elementAttr = value; + } + } + } + object height; + [Parameter] + object Height { + get => isInitialized ? DevExpress.Ui.DxSchedulerInterop.GetHeight(dxTarget).Result : height; + set { + if (isInitialized) { + DevExpress.Ui.DxSchedulerInterop.SetHeight(dxTarget, value); + } else { + this.height = value; + } + } + } + bool? rtlEnabled; + [Parameter] + bool? RtlEnabled { + get => isInitialized ? (bool?)DevExpress.Ui.DxSchedulerInterop.GetRtlEnabled(dxTarget).Result : rtlEnabled; + set { + if (isInitialized) { + DevExpress.Ui.DxSchedulerInterop.SetRtlEnabled(dxTarget, value); + } else { + this.rtlEnabled = value; + } + } + } + object width; + [Parameter] + object Width { + get => isInitialized ? DevExpress.Ui.DxSchedulerInterop.GetWidth(dxTarget).Result : width; + set { + if (isInitialized) { + DevExpress.Ui.DxSchedulerInterop.SetWidth(dxTarget, value); + } else { + this.width = value; + } + } + } bool? onAppointmentAddedEnabled; [Parameter] bool? OnAppointmentAddedEnabled { @@ -665,6 +825,30 @@ return DevExpress.Ui.DxSchedulerInterop.Init(dxTarget, options); get => onCellContextMenuEnabled; set => this.onCellContextMenuEnabled = value; } + bool? onContentReadyEnabled; + [Parameter] + bool? OnContentReadyEnabled { + get => onContentReadyEnabled; + set => this.onContentReadyEnabled = value; + } + bool? onDisposingEnabled; + [Parameter] + bool? OnDisposingEnabled { + get => onDisposingEnabled; + set => this.onDisposingEnabled = value; + } + bool? onOptionChangedEnabled; + [Parameter] + bool? OnOptionChangedEnabled { + get => onOptionChangedEnabled; + set => this.onOptionChangedEnabled = value; + } + bool? onInitializedEnabled; + [Parameter] + bool? OnInitializedEnabled { + get => onInitializedEnabled; + set => this.onInitializedEnabled = value; + } protected override async Task OnInitAsync() { await base.OnInitAsync(); DevExpress.Ui.DxSchedulerInterop.AppointmentAdded += DxScheduler_AppointmentAdded; @@ -680,6 +864,10 @@ return DevExpress.Ui.DxSchedulerInterop.Init(dxTarget, options); DevExpress.Ui.DxSchedulerInterop.AppointmentUpdating += DxScheduler_AppointmentUpdating; DevExpress.Ui.DxSchedulerInterop.CellClick += DxScheduler_CellClick; DevExpress.Ui.DxSchedulerInterop.CellContextMenu += DxScheduler_CellContextMenu; + DevExpress.Ui.DxSchedulerInterop.ContentReady += DxScheduler_ContentReady; + DevExpress.Ui.DxSchedulerInterop.Disposing += DxScheduler_Disposing; + DevExpress.Ui.DxSchedulerInterop.OptionChanged += DxScheduler_OptionChanged; + DevExpress.Ui.DxSchedulerInterop.Initialized += DxScheduler_Initialized; } [Parameter] Action AppointmentAdded { get; set; } @@ -772,6 +960,34 @@ return DevExpress.Ui.DxSchedulerInterop.Init(dxTarget, options); CellContextMenu?.Invoke(); } } + [Parameter] + Action ContentReady { get; set; } + void DxScheduler_ContentReady(object sender, JQueryEventArgs e) { + if (e.Identifier == Id) { + ContentReady?.Invoke(); + } + } + [Parameter] + Action Disposing { get; set; } + void DxScheduler_Disposing(object sender, JQueryEventArgs e) { + if (e.Identifier == Id) { + Disposing?.Invoke(); + } + } + [Parameter] + Action OptionChanged { get; set; } + void DxScheduler_OptionChanged(object sender, JQueryEventArgs e) { + if (e.Identifier == Id) { + OptionChanged?.Invoke(); + } + } + [Parameter] + Action Initialized { get; set; } + void DxScheduler_Initialized(object sender, JQueryEventArgs e) { + if (e.Identifier == Id) { + Initialized?.Invoke(); + } + } public void AddAppointment(object appointment) { DevExpress.Ui.DxSchedulerInterop.AddAppointment(dxTarget, appointment); } @@ -822,5 +1038,9 @@ return DevExpress.Ui.DxSchedulerInterop.Init(dxTarget, options); DevExpress.Ui.DxSchedulerInterop.AppointmentUpdating -= DxScheduler_AppointmentUpdating; DevExpress.Ui.DxSchedulerInterop.CellClick -= DxScheduler_CellClick; DevExpress.Ui.DxSchedulerInterop.CellContextMenu -= DxScheduler_CellContextMenu; + DevExpress.Ui.DxSchedulerInterop.ContentReady -= DxScheduler_ContentReady; + DevExpress.Ui.DxSchedulerInterop.Disposing -= DxScheduler_Disposing; + DevExpress.Ui.DxSchedulerInterop.OptionChanged -= DxScheduler_OptionChanged; + DevExpress.Ui.DxSchedulerInterop.Initialized -= DxScheduler_Initialized; } } diff --git a/sources/BlazorDevExtreme/Components/DxScrollView.cshtml b/sources/BlazorDevExtreme/Components/DxScrollView.cshtml index 76cf2c0..deb6ac0 100644 --- a/sources/BlazorDevExtreme/Components/DxScrollView.cshtml +++ b/sources/BlazorDevExtreme/Components/DxScrollView.cshtml @@ -14,17 +14,34 @@ pullingDownText = pullingDownText, reachBottomText = reachBottomText, refreshingText = refreshingText, + bounceEnabled = bounceEnabled, + direction = direction, + disabled = disabled, + scrollByContent = scrollByContent, + scrollByThumb = scrollByThumb, + showScrollbar = showScrollbar, + useNative = useNative, + bindingOptions = bindingOptions, + elementAttr = elementAttr, + height = height, + rtlEnabled = rtlEnabled, + width = width, onPullDownEnabled = onPullDownEnabled, onReachBottomEnabled = onReachBottomEnabled, + onScrollEnabled = onScrollEnabled, + onUpdatedEnabled = onUpdatedEnabled, + onDisposingEnabled = onDisposingEnabled, + onOptionChangedEnabled = onOptionChangedEnabled, + onInitializedEnabled = onInitializedEnabled, }; } protected override Task Init(DevExpress.Ui.DxScrollViewOptions options) { -return DevExpress.Ui.DxScrollViewInterop.Init(dxTarget, options); + return DevExpress.Ui.DxScrollViewInterop.Init(dxTarget, options); } string pulledDownText; [Parameter] string PulledDownText { - get => isInitialized ? DevExpress.Ui.DxScrollViewInterop.GetPulledDownText(dxTarget).Result : pulledDownText; + get => isInitialized ? (string)DevExpress.Ui.DxScrollViewInterop.GetPulledDownText(dxTarget).Result : pulledDownText; set { if (isInitialized) { DevExpress.Ui.DxScrollViewInterop.SetPulledDownText(dxTarget, value); @@ -36,7 +53,7 @@ return DevExpress.Ui.DxScrollViewInterop.Init(dxTarget, options); string pullingDownText; [Parameter] string PullingDownText { - get => isInitialized ? DevExpress.Ui.DxScrollViewInterop.GetPullingDownText(dxTarget).Result : pullingDownText; + get => isInitialized ? (string)DevExpress.Ui.DxScrollViewInterop.GetPullingDownText(dxTarget).Result : pullingDownText; set { if (isInitialized) { DevExpress.Ui.DxScrollViewInterop.SetPullingDownText(dxTarget, value); @@ -48,7 +65,7 @@ return DevExpress.Ui.DxScrollViewInterop.Init(dxTarget, options); string reachBottomText; [Parameter] string ReachBottomText { - get => isInitialized ? DevExpress.Ui.DxScrollViewInterop.GetReachBottomText(dxTarget).Result : reachBottomText; + get => isInitialized ? (string)DevExpress.Ui.DxScrollViewInterop.GetReachBottomText(dxTarget).Result : reachBottomText; set { if (isInitialized) { DevExpress.Ui.DxScrollViewInterop.SetReachBottomText(dxTarget, value); @@ -60,7 +77,7 @@ return DevExpress.Ui.DxScrollViewInterop.Init(dxTarget, options); string refreshingText; [Parameter] string RefreshingText { - get => isInitialized ? DevExpress.Ui.DxScrollViewInterop.GetRefreshingText(dxTarget).Result : refreshingText; + get => isInitialized ? (string)DevExpress.Ui.DxScrollViewInterop.GetRefreshingText(dxTarget).Result : refreshingText; set { if (isInitialized) { DevExpress.Ui.DxScrollViewInterop.SetRefreshingText(dxTarget, value); @@ -69,6 +86,150 @@ return DevExpress.Ui.DxScrollViewInterop.Init(dxTarget, options); } } } + bool? bounceEnabled; + [Parameter] + bool? BounceEnabled { + get => isInitialized ? (bool?)DevExpress.Ui.DxScrollViewInterop.GetBounceEnabled(dxTarget).Result : bounceEnabled; + set { + if (isInitialized) { + DevExpress.Ui.DxScrollViewInterop.SetBounceEnabled(dxTarget, value); + } else { + this.bounceEnabled = value; + } + } + } + string direction; + [Parameter] + string Direction { + get => isInitialized ? (string)DevExpress.Ui.DxScrollViewInterop.GetDirection(dxTarget).Result : direction; + set { + if (isInitialized) { + DevExpress.Ui.DxScrollViewInterop.SetDirection(dxTarget, value); + } else { + this.direction = value; + } + } + } + bool? disabled; + [Parameter] + bool? Disabled { + get => isInitialized ? (bool?)DevExpress.Ui.DxScrollViewInterop.GetDisabled(dxTarget).Result : disabled; + set { + if (isInitialized) { + DevExpress.Ui.DxScrollViewInterop.SetDisabled(dxTarget, value); + } else { + this.disabled = value; + } + } + } + bool? scrollByContent; + [Parameter] + bool? ScrollByContent { + get => isInitialized ? (bool?)DevExpress.Ui.DxScrollViewInterop.GetScrollByContent(dxTarget).Result : scrollByContent; + set { + if (isInitialized) { + DevExpress.Ui.DxScrollViewInterop.SetScrollByContent(dxTarget, value); + } else { + this.scrollByContent = value; + } + } + } + bool? scrollByThumb; + [Parameter] + bool? ScrollByThumb { + get => isInitialized ? (bool?)DevExpress.Ui.DxScrollViewInterop.GetScrollByThumb(dxTarget).Result : scrollByThumb; + set { + if (isInitialized) { + DevExpress.Ui.DxScrollViewInterop.SetScrollByThumb(dxTarget, value); + } else { + this.scrollByThumb = value; + } + } + } + string showScrollbar; + [Parameter] + string ShowScrollbar { + get => isInitialized ? (string)DevExpress.Ui.DxScrollViewInterop.GetShowScrollbar(dxTarget).Result : showScrollbar; + set { + if (isInitialized) { + DevExpress.Ui.DxScrollViewInterop.SetShowScrollbar(dxTarget, value); + } else { + this.showScrollbar = value; + } + } + } + bool? useNative; + [Parameter] + bool? UseNative { + get => isInitialized ? (bool?)DevExpress.Ui.DxScrollViewInterop.GetUseNative(dxTarget).Result : useNative; + set { + if (isInitialized) { + DevExpress.Ui.DxScrollViewInterop.SetUseNative(dxTarget, value); + } else { + this.useNative = value; + } + } + } + object bindingOptions; + [Parameter] + object BindingOptions { + get => isInitialized ? DevExpress.Ui.DxScrollViewInterop.GetBindingOptions(dxTarget).Result : bindingOptions; + set { + if (isInitialized) { + DevExpress.Ui.DxScrollViewInterop.SetBindingOptions(dxTarget, value); + } else { + this.bindingOptions = value; + } + } + } + object elementAttr; + [Parameter] + object ElementAttr { + get => isInitialized ? DevExpress.Ui.DxScrollViewInterop.GetElementAttr(dxTarget).Result : elementAttr; + set { + if (isInitialized) { + DevExpress.Ui.DxScrollViewInterop.SetElementAttr(dxTarget, value); + } else { + this.elementAttr = value; + } + } + } + object height; + [Parameter] + object Height { + get => isInitialized ? DevExpress.Ui.DxScrollViewInterop.GetHeight(dxTarget).Result : height; + set { + if (isInitialized) { + DevExpress.Ui.DxScrollViewInterop.SetHeight(dxTarget, value); + } else { + this.height = value; + } + } + } + bool? rtlEnabled; + [Parameter] + bool? RtlEnabled { + get => isInitialized ? (bool?)DevExpress.Ui.DxScrollViewInterop.GetRtlEnabled(dxTarget).Result : rtlEnabled; + set { + if (isInitialized) { + DevExpress.Ui.DxScrollViewInterop.SetRtlEnabled(dxTarget, value); + } else { + this.rtlEnabled = value; + } + } + } + object width; + [Parameter] + object Width { + get => isInitialized ? DevExpress.Ui.DxScrollViewInterop.GetWidth(dxTarget).Result : width; + set { + if (isInitialized) { + DevExpress.Ui.DxScrollViewInterop.SetWidth(dxTarget, value); + } else { + this.width = value; + } + } + } bool? onPullDownEnabled; [Parameter] bool? OnPullDownEnabled { @@ -81,10 +242,45 @@ return DevExpress.Ui.DxScrollViewInterop.Init(dxTarget, options); get => onReachBottomEnabled; set => this.onReachBottomEnabled = value; } + bool? onScrollEnabled; + [Parameter] + bool? OnScrollEnabled { + get => onScrollEnabled; + set => this.onScrollEnabled = value; + } + bool? onUpdatedEnabled; + [Parameter] + bool? OnUpdatedEnabled { + get => onUpdatedEnabled; + set => this.onUpdatedEnabled = value; + } + bool? onDisposingEnabled; + [Parameter] + bool? OnDisposingEnabled { + get => onDisposingEnabled; + set => this.onDisposingEnabled = value; + } + bool? onOptionChangedEnabled; + [Parameter] + bool? OnOptionChangedEnabled { + get => onOptionChangedEnabled; + set => this.onOptionChangedEnabled = value; + } + bool? onInitializedEnabled; + [Parameter] + bool? OnInitializedEnabled { + get => onInitializedEnabled; + set => this.onInitializedEnabled = value; + } protected override async Task OnInitAsync() { await base.OnInitAsync(); DevExpress.Ui.DxScrollViewInterop.PullDown += DxScrollView_PullDown; DevExpress.Ui.DxScrollViewInterop.ReachBottom += DxScrollView_ReachBottom; + DevExpress.Ui.DxScrollViewInterop.Scroll += DxScrollView_Scroll; + DevExpress.Ui.DxScrollViewInterop.Updated += DxScrollView_Updated; + DevExpress.Ui.DxScrollViewInterop.Disposing += DxScrollView_Disposing; + DevExpress.Ui.DxScrollViewInterop.OptionChanged += DxScrollView_OptionChanged; + DevExpress.Ui.DxScrollViewInterop.Initialized += DxScrollView_Initialized; } [Parameter] Action PullDown { get; set; } @@ -100,6 +296,41 @@ return DevExpress.Ui.DxScrollViewInterop.Init(dxTarget, options); ReachBottom?.Invoke(); } } + [Parameter] + Action Scroll { get; set; } + void DxScrollView_Scroll(object sender, JQueryEventArgs e) { + if (e.Identifier == Id) { + Scroll?.Invoke(); + } + } + [Parameter] + Action Updated { get; set; } + void DxScrollView_Updated(object sender, JQueryEventArgs e) { + if (e.Identifier == Id) { + Updated?.Invoke(); + } + } + [Parameter] + Action Disposing { get; set; } + void DxScrollView_Disposing(object sender, JQueryEventArgs e) { + if (e.Identifier == Id) { + Disposing?.Invoke(); + } + } + [Parameter] + Action OptionChanged { get; set; } + void DxScrollView_OptionChanged(object sender, JQueryEventArgs e) { + if (e.Identifier == Id) { + OptionChanged?.Invoke(); + } + } + [Parameter] + Action Initialized { get; set; } + void DxScrollView_Initialized(object sender, JQueryEventArgs e) { + if (e.Identifier == Id) { + Initialized?.Invoke(); + } + } public void Refresh() { DevExpress.Ui.DxScrollViewInterop.Refresh(dxTarget); } @@ -109,5 +340,10 @@ return DevExpress.Ui.DxScrollViewInterop.Init(dxTarget, options); public void Dispose() { DevExpress.Ui.DxScrollViewInterop.PullDown -= DxScrollView_PullDown; DevExpress.Ui.DxScrollViewInterop.ReachBottom -= DxScrollView_ReachBottom; + DevExpress.Ui.DxScrollViewInterop.Scroll -= DxScrollView_Scroll; + DevExpress.Ui.DxScrollViewInterop.Updated -= DxScrollView_Updated; + DevExpress.Ui.DxScrollViewInterop.Disposing -= DxScrollView_Disposing; + DevExpress.Ui.DxScrollViewInterop.OptionChanged -= DxScrollView_OptionChanged; + DevExpress.Ui.DxScrollViewInterop.Initialized -= DxScrollView_Initialized; } } diff --git a/sources/BlazorDevExtreme/Components/DxScrollable.cshtml b/sources/BlazorDevExtreme/Components/DxScrollable.cshtml index bddd6cb..870006d 100644 --- a/sources/BlazorDevExtreme/Components/DxScrollable.cshtml +++ b/sources/BlazorDevExtreme/Components/DxScrollable.cshtml @@ -17,17 +17,25 @@ scrollByThumb = scrollByThumb, showScrollbar = showScrollbar, useNative = useNative, + bindingOptions = bindingOptions, + elementAttr = elementAttr, + height = height, + rtlEnabled = rtlEnabled, + width = width, onScrollEnabled = onScrollEnabled, onUpdatedEnabled = onUpdatedEnabled, + onDisposingEnabled = onDisposingEnabled, + onOptionChangedEnabled = onOptionChangedEnabled, + onInitializedEnabled = onInitializedEnabled, }; } protected override Task Init(DevExpress.Ui.DxScrollableOptions options) { -return DevExpress.Ui.DxScrollableInterop.Init(dxTarget, options); + return DevExpress.Ui.DxScrollableInterop.Init(dxTarget, options); } bool? bounceEnabled; [Parameter] bool? BounceEnabled { - get => isInitialized ? DevExpress.Ui.DxScrollableInterop.GetBounceEnabled(dxTarget).Result : bounceEnabled; + get => isInitialized ? (bool?)DevExpress.Ui.DxScrollableInterop.GetBounceEnabled(dxTarget).Result : bounceEnabled; set { if (isInitialized) { DevExpress.Ui.DxScrollableInterop.SetBounceEnabled(dxTarget, value); @@ -39,7 +47,7 @@ return DevExpress.Ui.DxScrollableInterop.Init(dxTarget, options); string direction; [Parameter] string Direction { - get => isInitialized ? DevExpress.Ui.DxScrollableInterop.GetDirection(dxTarget).Result : direction; + get => isInitialized ? (string)DevExpress.Ui.DxScrollableInterop.GetDirection(dxTarget).Result : direction; set { if (isInitialized) { DevExpress.Ui.DxScrollableInterop.SetDirection(dxTarget, value); @@ -51,7 +59,7 @@ return DevExpress.Ui.DxScrollableInterop.Init(dxTarget, options); bool? disabled; [Parameter] bool? Disabled { - get => isInitialized ? DevExpress.Ui.DxScrollableInterop.GetDisabled(dxTarget).Result : disabled; + get => isInitialized ? (bool?)DevExpress.Ui.DxScrollableInterop.GetDisabled(dxTarget).Result : disabled; set { if (isInitialized) { DevExpress.Ui.DxScrollableInterop.SetDisabled(dxTarget, value); @@ -63,7 +71,7 @@ return DevExpress.Ui.DxScrollableInterop.Init(dxTarget, options); bool? scrollByContent; [Parameter] bool? ScrollByContent { - get => isInitialized ? DevExpress.Ui.DxScrollableInterop.GetScrollByContent(dxTarget).Result : scrollByContent; + get => isInitialized ? (bool?)DevExpress.Ui.DxScrollableInterop.GetScrollByContent(dxTarget).Result : scrollByContent; set { if (isInitialized) { DevExpress.Ui.DxScrollableInterop.SetScrollByContent(dxTarget, value); @@ -75,7 +83,7 @@ return DevExpress.Ui.DxScrollableInterop.Init(dxTarget, options); bool? scrollByThumb; [Parameter] bool? ScrollByThumb { - get => isInitialized ? DevExpress.Ui.DxScrollableInterop.GetScrollByThumb(dxTarget).Result : scrollByThumb; + get => isInitialized ? (bool?)DevExpress.Ui.DxScrollableInterop.GetScrollByThumb(dxTarget).Result : scrollByThumb; set { if (isInitialized) { DevExpress.Ui.DxScrollableInterop.SetScrollByThumb(dxTarget, value); @@ -87,7 +95,7 @@ return DevExpress.Ui.DxScrollableInterop.Init(dxTarget, options); string showScrollbar; [Parameter] string ShowScrollbar { - get => isInitialized ? DevExpress.Ui.DxScrollableInterop.GetShowScrollbar(dxTarget).Result : showScrollbar; + get => isInitialized ? (string)DevExpress.Ui.DxScrollableInterop.GetShowScrollbar(dxTarget).Result : showScrollbar; set { if (isInitialized) { DevExpress.Ui.DxScrollableInterop.SetShowScrollbar(dxTarget, value); @@ -99,7 +107,7 @@ return DevExpress.Ui.DxScrollableInterop.Init(dxTarget, options); bool? useNative; [Parameter] bool? UseNative { - get => isInitialized ? DevExpress.Ui.DxScrollableInterop.GetUseNative(dxTarget).Result : useNative; + get => isInitialized ? (bool?)DevExpress.Ui.DxScrollableInterop.GetUseNative(dxTarget).Result : useNative; set { if (isInitialized) { DevExpress.Ui.DxScrollableInterop.SetUseNative(dxTarget, value); @@ -108,6 +116,66 @@ return DevExpress.Ui.DxScrollableInterop.Init(dxTarget, options); } } } + object bindingOptions; + [Parameter] + object BindingOptions { + get => isInitialized ? DevExpress.Ui.DxScrollableInterop.GetBindingOptions(dxTarget).Result : bindingOptions; + set { + if (isInitialized) { + DevExpress.Ui.DxScrollableInterop.SetBindingOptions(dxTarget, value); + } else { + this.bindingOptions = value; + } + } + } + object elementAttr; + [Parameter] + object ElementAttr { + get => isInitialized ? DevExpress.Ui.DxScrollableInterop.GetElementAttr(dxTarget).Result : elementAttr; + set { + if (isInitialized) { + DevExpress.Ui.DxScrollableInterop.SetElementAttr(dxTarget, value); + } else { + this.elementAttr = value; + } + } + } + object height; + [Parameter] + object Height { + get => isInitialized ? DevExpress.Ui.DxScrollableInterop.GetHeight(dxTarget).Result : height; + set { + if (isInitialized) { + DevExpress.Ui.DxScrollableInterop.SetHeight(dxTarget, value); + } else { + this.height = value; + } + } + } + bool? rtlEnabled; + [Parameter] + bool? RtlEnabled { + get => isInitialized ? (bool?)DevExpress.Ui.DxScrollableInterop.GetRtlEnabled(dxTarget).Result : rtlEnabled; + set { + if (isInitialized) { + DevExpress.Ui.DxScrollableInterop.SetRtlEnabled(dxTarget, value); + } else { + this.rtlEnabled = value; + } + } + } + object width; + [Parameter] + object Width { + get => isInitialized ? DevExpress.Ui.DxScrollableInterop.GetWidth(dxTarget).Result : width; + set { + if (isInitialized) { + DevExpress.Ui.DxScrollableInterop.SetWidth(dxTarget, value); + } else { + this.width = value; + } + } + } bool? onScrollEnabled; [Parameter] bool? OnScrollEnabled { @@ -120,10 +188,31 @@ return DevExpress.Ui.DxScrollableInterop.Init(dxTarget, options); get => onUpdatedEnabled; set => this.onUpdatedEnabled = value; } + bool? onDisposingEnabled; + [Parameter] + bool? OnDisposingEnabled { + get => onDisposingEnabled; + set => this.onDisposingEnabled = value; + } + bool? onOptionChangedEnabled; + [Parameter] + bool? OnOptionChangedEnabled { + get => onOptionChangedEnabled; + set => this.onOptionChangedEnabled = value; + } + bool? onInitializedEnabled; + [Parameter] + bool? OnInitializedEnabled { + get => onInitializedEnabled; + set => this.onInitializedEnabled = value; + } protected override async Task OnInitAsync() { await base.OnInitAsync(); DevExpress.Ui.DxScrollableInterop.Scroll += DxScrollable_Scroll; DevExpress.Ui.DxScrollableInterop.Updated += DxScrollable_Updated; + DevExpress.Ui.DxScrollableInterop.Disposing += DxScrollable_Disposing; + DevExpress.Ui.DxScrollableInterop.OptionChanged += DxScrollable_OptionChanged; + DevExpress.Ui.DxScrollableInterop.Initialized += DxScrollable_Initialized; } [Parameter] Action Scroll { get; set; } @@ -139,6 +228,27 @@ return DevExpress.Ui.DxScrollableInterop.Init(dxTarget, options); Updated?.Invoke(); } } + [Parameter] + Action Disposing { get; set; } + void DxScrollable_Disposing(object sender, JQueryEventArgs e) { + if (e.Identifier == Id) { + Disposing?.Invoke(); + } + } + [Parameter] + Action OptionChanged { get; set; } + void DxScrollable_OptionChanged(object sender, JQueryEventArgs e) { + if (e.Identifier == Id) { + OptionChanged?.Invoke(); + } + } + [Parameter] + Action Initialized { get; set; } + void DxScrollable_Initialized(object sender, JQueryEventArgs e) { + if (e.Identifier == Id) { + Initialized?.Invoke(); + } + } public float ClientHeight() { return DevExpress.Ui.DxScrollableInterop.ClientHeight(dxTarget).Result; } @@ -184,5 +294,8 @@ return DevExpress.Ui.DxScrollableInterop.Init(dxTarget, options); public void Dispose() { DevExpress.Ui.DxScrollableInterop.Scroll -= DxScrollable_Scroll; DevExpress.Ui.DxScrollableInterop.Updated -= DxScrollable_Updated; + DevExpress.Ui.DxScrollableInterop.Disposing -= DxScrollable_Disposing; + DevExpress.Ui.DxScrollableInterop.OptionChanged -= DxScrollable_OptionChanged; + DevExpress.Ui.DxScrollableInterop.Initialized -= DxScrollable_Initialized; } } diff --git a/sources/BlazorDevExtreme/Components/DxSelectBox.cshtml b/sources/BlazorDevExtreme/Components/DxSelectBox.cshtml index 51ea9e9..db91c52 100644 --- a/sources/BlazorDevExtreme/Components/DxSelectBox.cshtml +++ b/sources/BlazorDevExtreme/Components/DxSelectBox.cshtml @@ -15,16 +15,87 @@ placeholder = placeholder, showSelectionControls = showSelectionControls, valueChangeEvent = valueChangeEvent, + displayValue = displayValue, + grouped = grouped, + groupTemplate = groupTemplate, + minSearchLength = minSearchLength, + noDataText = noDataText, + searchEnabled = searchEnabled, + searchExpr = searchExpr, + searchMode = searchMode, + searchTimeout = searchTimeout, + selectedItem = selectedItem, + showDataBeforeSearch = showDataBeforeSearch, + value = value, + activeStateEnabled = activeStateEnabled, + applyValueMode = applyValueMode, + deferRendering = deferRendering, + dropDownButtonTemplate = dropDownButtonTemplate, + opened = isOpened, + maxLength = maxLength, + mode = mode, + focusStateEnabled = focusStateEnabled, + hoverStateEnabled = hoverStateEnabled, + inputAttr = inputAttr, + mask = mask, + maskChar = maskChar, + maskInvalidMessage = maskInvalidMessage, + maskRules = maskRules, + name = name, + showClearButton = showClearButton, + showMaskMode = showMaskMode, + spellcheck = spellcheck, + text = text, + useMaskedValue = useMaskedValue, + isValid = isValid, + readOnly = readOnly, + validationError = validationError, + validationMessageMode = validationMessageMode, + accessKey = accessKey, + disabled = disabled, + hint = hint, + tabIndex = tabIndex, + visible = visible, + bindingOptions = bindingOptions, + elementAttr = elementAttr, + height = height, + rtlEnabled = rtlEnabled, + width = width, + dataSource = dataSource, + displayExpr = displayExpr, + items = items, + itemTemplate = itemTemplate, + valueExpr = valueExpr, onCustomItemCreatingEnabled = onCustomItemCreatingEnabled, + onItemClickEnabled = onItemClickEnabled, + onSelectionChangedEnabled = onSelectionChangedEnabled, + onValueChangedEnabled = onValueChangedEnabled, + onClosedEnabled = onClosedEnabled, + onOpenedEnabled = onOpenedEnabled, + onChangeEnabled = onChangeEnabled, + onCopyEnabled = onCopyEnabled, + onCutEnabled = onCutEnabled, + onEnterKeyEnabled = onEnterKeyEnabled, + onFocusInEnabled = onFocusInEnabled, + onFocusOutEnabled = onFocusOutEnabled, + onInputEnabled = onInputEnabled, + onKeyDownEnabled = onKeyDownEnabled, + onKeyPressEnabled = onKeyPressEnabled, + onKeyUpEnabled = onKeyUpEnabled, + onPasteEnabled = onPasteEnabled, + onContentReadyEnabled = onContentReadyEnabled, + onDisposingEnabled = onDisposingEnabled, + onOptionChangedEnabled = onOptionChangedEnabled, + onInitializedEnabled = onInitializedEnabled, }; } protected override Task Init(DevExpress.Ui.DxSelectBoxOptions options) { -return DevExpress.Ui.DxSelectBoxInterop.Init(dxTarget, options); + return DevExpress.Ui.DxSelectBoxInterop.Init(dxTarget, options); } bool? acceptCustomValue; [Parameter] bool? AcceptCustomValue { - get => isInitialized ? DevExpress.Ui.DxSelectBoxInterop.GetAcceptCustomValue(dxTarget).Result : acceptCustomValue; + get => isInitialized ? (bool?)DevExpress.Ui.DxSelectBoxInterop.GetAcceptCustomValue(dxTarget).Result : acceptCustomValue; set { if (isInitialized) { DevExpress.Ui.DxSelectBoxInterop.SetAcceptCustomValue(dxTarget, value); @@ -48,7 +119,7 @@ return DevExpress.Ui.DxSelectBoxInterop.Init(dxTarget, options); string placeholder; [Parameter] string Placeholder { - get => isInitialized ? DevExpress.Ui.DxSelectBoxInterop.GetPlaceholder(dxTarget).Result : placeholder; + get => isInitialized ? (string)DevExpress.Ui.DxSelectBoxInterop.GetPlaceholder(dxTarget).Result : placeholder; set { if (isInitialized) { DevExpress.Ui.DxSelectBoxInterop.SetPlaceholder(dxTarget, value); @@ -60,7 +131,7 @@ return DevExpress.Ui.DxSelectBoxInterop.Init(dxTarget, options); bool? showSelectionControls; [Parameter] bool? ShowSelectionControls { - get => isInitialized ? DevExpress.Ui.DxSelectBoxInterop.GetShowSelectionControls(dxTarget).Result : showSelectionControls; + get => isInitialized ? (bool?)DevExpress.Ui.DxSelectBoxInterop.GetShowSelectionControls(dxTarget).Result : showSelectionControls; set { if (isInitialized) { DevExpress.Ui.DxSelectBoxInterop.SetShowSelectionControls(dxTarget, value); @@ -72,7 +143,7 @@ return DevExpress.Ui.DxSelectBoxInterop.Init(dxTarget, options); string valueChangeEvent; [Parameter] string ValueChangeEvent { - get => isInitialized ? DevExpress.Ui.DxSelectBoxInterop.GetValueChangeEvent(dxTarget).Result : valueChangeEvent; + get => isInitialized ? (string)DevExpress.Ui.DxSelectBoxInterop.GetValueChangeEvent(dxTarget).Result : valueChangeEvent; set { if (isInitialized) { DevExpress.Ui.DxSelectBoxInterop.SetValueChangeEvent(dxTarget, value); @@ -81,15 +152,767 @@ return DevExpress.Ui.DxSelectBoxInterop.Init(dxTarget, options); } } } + string displayValue; + [Parameter] + string DisplayValue { + get => isInitialized ? (string)DevExpress.Ui.DxSelectBoxInterop.GetDisplayValue(dxTarget).Result : displayValue; + set { + if (isInitialized) { + DevExpress.Ui.DxSelectBoxInterop.SetDisplayValue(dxTarget, value); + } else { + this.displayValue = value; + } + } + } + bool? grouped; + [Parameter] + bool? Grouped { + get => isInitialized ? (bool?)DevExpress.Ui.DxSelectBoxInterop.GetGrouped(dxTarget).Result : grouped; + set { + if (isInitialized) { + DevExpress.Ui.DxSelectBoxInterop.SetGrouped(dxTarget, value); + } else { + this.grouped = value; + } + } + } + object groupTemplate; + [Parameter] + object GroupTemplate { + get => isInitialized ? DevExpress.Ui.DxSelectBoxInterop.GetGroupTemplate(dxTarget).Result : groupTemplate; + set { + if (isInitialized) { + DevExpress.Ui.DxSelectBoxInterop.SetGroupTemplate(dxTarget, value); + } else { + this.groupTemplate = value; + } + } + } + float? minSearchLength; + [Parameter] + float? MinSearchLength { + get => isInitialized ? (float?)DevExpress.Ui.DxSelectBoxInterop.GetMinSearchLength(dxTarget).Result : minSearchLength; + set { + if (isInitialized) { + DevExpress.Ui.DxSelectBoxInterop.SetMinSearchLength(dxTarget, value); + } else { + this.minSearchLength = value; + } + } + } + string noDataText; + [Parameter] + string NoDataText { + get => isInitialized ? (string)DevExpress.Ui.DxSelectBoxInterop.GetNoDataText(dxTarget).Result : noDataText; + set { + if (isInitialized) { + DevExpress.Ui.DxSelectBoxInterop.SetNoDataText(dxTarget, value); + } else { + this.noDataText = value; + } + } + } + bool? searchEnabled; + [Parameter] + bool? SearchEnabled { + get => isInitialized ? (bool?)DevExpress.Ui.DxSelectBoxInterop.GetSearchEnabled(dxTarget).Result : searchEnabled; + set { + if (isInitialized) { + DevExpress.Ui.DxSelectBoxInterop.SetSearchEnabled(dxTarget, value); + } else { + this.searchEnabled = value; + } + } + } + object searchExpr; + [Parameter] + object SearchExpr { + get => isInitialized ? DevExpress.Ui.DxSelectBoxInterop.GetSearchExpr(dxTarget).Result : searchExpr; + set { + if (isInitialized) { + DevExpress.Ui.DxSelectBoxInterop.SetSearchExpr(dxTarget, value); + } else { + this.searchExpr = value; + } + } + } + string searchMode; + [Parameter] + string SearchMode { + get => isInitialized ? (string)DevExpress.Ui.DxSelectBoxInterop.GetSearchMode(dxTarget).Result : searchMode; + set { + if (isInitialized) { + DevExpress.Ui.DxSelectBoxInterop.SetSearchMode(dxTarget, value); + } else { + this.searchMode = value; + } + } + } + float? searchTimeout; + [Parameter] + float? SearchTimeout { + get => isInitialized ? (float?)DevExpress.Ui.DxSelectBoxInterop.GetSearchTimeout(dxTarget).Result : searchTimeout; + set { + if (isInitialized) { + DevExpress.Ui.DxSelectBoxInterop.SetSearchTimeout(dxTarget, value); + } else { + this.searchTimeout = value; + } + } + } + object selectedItem; + [Parameter] + object SelectedItem { + get => isInitialized ? DevExpress.Ui.DxSelectBoxInterop.GetSelectedItem(dxTarget).Result : selectedItem; + set { + if (isInitialized) { + DevExpress.Ui.DxSelectBoxInterop.SetSelectedItem(dxTarget, value); + } else { + this.selectedItem = value; + } + } + } + bool? showDataBeforeSearch; + [Parameter] + bool? ShowDataBeforeSearch { + get => isInitialized ? (bool?)DevExpress.Ui.DxSelectBoxInterop.GetShowDataBeforeSearch(dxTarget).Result : showDataBeforeSearch; + set { + if (isInitialized) { + DevExpress.Ui.DxSelectBoxInterop.SetShowDataBeforeSearch(dxTarget, value); + } else { + this.showDataBeforeSearch = value; + } + } + } + object value; + [Parameter] + object Value { + get => isInitialized ? DevExpress.Ui.DxSelectBoxInterop.GetValue(dxTarget).Result : value; + set { + if (isInitialized) { + DevExpress.Ui.DxSelectBoxInterop.SetValue(dxTarget, value); + } else { + this.value = value; + } + } + } + bool? activeStateEnabled; + [Parameter] + bool? ActiveStateEnabled { + get => isInitialized ? (bool?)DevExpress.Ui.DxSelectBoxInterop.GetActiveStateEnabled(dxTarget).Result : activeStateEnabled; + set { + if (isInitialized) { + DevExpress.Ui.DxSelectBoxInterop.SetActiveStateEnabled(dxTarget, value); + } else { + this.activeStateEnabled = value; + } + } + } + string applyValueMode; + [Parameter] + string ApplyValueMode { + get => isInitialized ? (string)DevExpress.Ui.DxSelectBoxInterop.GetApplyValueMode(dxTarget).Result : applyValueMode; + set { + if (isInitialized) { + DevExpress.Ui.DxSelectBoxInterop.SetApplyValueMode(dxTarget, value); + } else { + this.applyValueMode = value; + } + } + } + bool? deferRendering; + [Parameter] + bool? DeferRendering { + get => isInitialized ? (bool?)DevExpress.Ui.DxSelectBoxInterop.GetDeferRendering(dxTarget).Result : deferRendering; + set { + if (isInitialized) { + DevExpress.Ui.DxSelectBoxInterop.SetDeferRendering(dxTarget, value); + } else { + this.deferRendering = value; + } + } + } + object dropDownButtonTemplate; + [Parameter] + object DropDownButtonTemplate { + get => isInitialized ? DevExpress.Ui.DxSelectBoxInterop.GetDropDownButtonTemplate(dxTarget).Result : dropDownButtonTemplate; + set { + if (isInitialized) { + DevExpress.Ui.DxSelectBoxInterop.SetDropDownButtonTemplate(dxTarget, value); + } else { + this.dropDownButtonTemplate = value; + } + } + } + bool? isOpened; + [Parameter] + bool? IsOpened { + get => isInitialized ? (bool?)DevExpress.Ui.DxSelectBoxInterop.GetOpened(dxTarget).Result : isOpened; + set { + if (isInitialized) { + DevExpress.Ui.DxSelectBoxInterop.SetOpened(dxTarget, value); + } else { + this.isOpened = value; + } + } + } + object maxLength; + [Parameter] + object MaxLength { + get => isInitialized ? DevExpress.Ui.DxSelectBoxInterop.GetMaxLength(dxTarget).Result : maxLength; + set { + if (isInitialized) { + DevExpress.Ui.DxSelectBoxInterop.SetMaxLength(dxTarget, value); + } else { + this.maxLength = value; + } + } + } + string mode; + [Parameter] + string Mode { + get => isInitialized ? (string)DevExpress.Ui.DxSelectBoxInterop.GetMode(dxTarget).Result : mode; + set { + if (isInitialized) { + DevExpress.Ui.DxSelectBoxInterop.SetMode(dxTarget, value); + } else { + this.mode = value; + } + } + } + bool? focusStateEnabled; + [Parameter] + bool? FocusStateEnabled { + get => isInitialized ? (bool?)DevExpress.Ui.DxSelectBoxInterop.GetFocusStateEnabled(dxTarget).Result : focusStateEnabled; + set { + if (isInitialized) { + DevExpress.Ui.DxSelectBoxInterop.SetFocusStateEnabled(dxTarget, value); + } else { + this.focusStateEnabled = value; + } + } + } + bool? hoverStateEnabled; + [Parameter] + bool? HoverStateEnabled { + get => isInitialized ? (bool?)DevExpress.Ui.DxSelectBoxInterop.GetHoverStateEnabled(dxTarget).Result : hoverStateEnabled; + set { + if (isInitialized) { + DevExpress.Ui.DxSelectBoxInterop.SetHoverStateEnabled(dxTarget, value); + } else { + this.hoverStateEnabled = value; + } + } + } + object inputAttr; + [Parameter] + object InputAttr { + get => isInitialized ? DevExpress.Ui.DxSelectBoxInterop.GetInputAttr(dxTarget).Result : inputAttr; + set { + if (isInitialized) { + DevExpress.Ui.DxSelectBoxInterop.SetInputAttr(dxTarget, value); + } else { + this.inputAttr = value; + } + } + } + string mask; + [Parameter] + string Mask { + get => isInitialized ? (string)DevExpress.Ui.DxSelectBoxInterop.GetMask(dxTarget).Result : mask; + set { + if (isInitialized) { + DevExpress.Ui.DxSelectBoxInterop.SetMask(dxTarget, value); + } else { + this.mask = value; + } + } + } + string maskChar; + [Parameter] + string MaskChar { + get => isInitialized ? (string)DevExpress.Ui.DxSelectBoxInterop.GetMaskChar(dxTarget).Result : maskChar; + set { + if (isInitialized) { + DevExpress.Ui.DxSelectBoxInterop.SetMaskChar(dxTarget, value); + } else { + this.maskChar = value; + } + } + } + string maskInvalidMessage; + [Parameter] + string MaskInvalidMessage { + get => isInitialized ? (string)DevExpress.Ui.DxSelectBoxInterop.GetMaskInvalidMessage(dxTarget).Result : maskInvalidMessage; + set { + if (isInitialized) { + DevExpress.Ui.DxSelectBoxInterop.SetMaskInvalidMessage(dxTarget, value); + } else { + this.maskInvalidMessage = value; + } + } + } + object maskRules; + [Parameter] + object MaskRules { + get => isInitialized ? DevExpress.Ui.DxSelectBoxInterop.GetMaskRules(dxTarget).Result : maskRules; + set { + if (isInitialized) { + DevExpress.Ui.DxSelectBoxInterop.SetMaskRules(dxTarget, value); + } else { + this.maskRules = value; + } + } + } + string name; + [Parameter] + string Name { + get => isInitialized ? (string)DevExpress.Ui.DxSelectBoxInterop.GetName(dxTarget).Result : name; + set { + if (isInitialized) { + DevExpress.Ui.DxSelectBoxInterop.SetName(dxTarget, value); + } else { + this.name = value; + } + } + } + bool? showClearButton; + [Parameter] + bool? ShowClearButton { + get => isInitialized ? (bool?)DevExpress.Ui.DxSelectBoxInterop.GetShowClearButton(dxTarget).Result : showClearButton; + set { + if (isInitialized) { + DevExpress.Ui.DxSelectBoxInterop.SetShowClearButton(dxTarget, value); + } else { + this.showClearButton = value; + } + } + } + string showMaskMode; + [Parameter] + string ShowMaskMode { + get => isInitialized ? (string)DevExpress.Ui.DxSelectBoxInterop.GetShowMaskMode(dxTarget).Result : showMaskMode; + set { + if (isInitialized) { + DevExpress.Ui.DxSelectBoxInterop.SetShowMaskMode(dxTarget, value); + } else { + this.showMaskMode = value; + } + } + } + bool? spellcheck; + [Parameter] + bool? Spellcheck { + get => isInitialized ? (bool?)DevExpress.Ui.DxSelectBoxInterop.GetSpellcheck(dxTarget).Result : spellcheck; + set { + if (isInitialized) { + DevExpress.Ui.DxSelectBoxInterop.SetSpellcheck(dxTarget, value); + } else { + this.spellcheck = value; + } + } + } + string text; + [Parameter] + string Text { + get => isInitialized ? (string)DevExpress.Ui.DxSelectBoxInterop.GetText(dxTarget).Result : text; + set { + if (isInitialized) { + DevExpress.Ui.DxSelectBoxInterop.SetText(dxTarget, value); + } else { + this.text = value; + } + } + } + bool? useMaskedValue; + [Parameter] + bool? UseMaskedValue { + get => isInitialized ? (bool?)DevExpress.Ui.DxSelectBoxInterop.GetUseMaskedValue(dxTarget).Result : useMaskedValue; + set { + if (isInitialized) { + DevExpress.Ui.DxSelectBoxInterop.SetUseMaskedValue(dxTarget, value); + } else { + this.useMaskedValue = value; + } + } + } + bool? isValid; + [Parameter] + bool? IsValid { + get => isInitialized ? (bool?)DevExpress.Ui.DxSelectBoxInterop.GetIsValid(dxTarget).Result : isValid; + set { + if (isInitialized) { + DevExpress.Ui.DxSelectBoxInterop.SetIsValid(dxTarget, value); + } else { + this.isValid = value; + } + } + } + bool? readOnly; + [Parameter] + bool? ReadOnly { + get => isInitialized ? (bool?)DevExpress.Ui.DxSelectBoxInterop.GetReadOnly(dxTarget).Result : readOnly; + set { + if (isInitialized) { + DevExpress.Ui.DxSelectBoxInterop.SetReadOnly(dxTarget, value); + } else { + this.readOnly = value; + } + } + } + object validationError; + [Parameter] + object ValidationError { + get => isInitialized ? DevExpress.Ui.DxSelectBoxInterop.GetValidationError(dxTarget).Result : validationError; + set { + if (isInitialized) { + DevExpress.Ui.DxSelectBoxInterop.SetValidationError(dxTarget, value); + } else { + this.validationError = value; + } + } + } + string validationMessageMode; + [Parameter] + string ValidationMessageMode { + get => isInitialized ? (string)DevExpress.Ui.DxSelectBoxInterop.GetValidationMessageMode(dxTarget).Result : validationMessageMode; + set { + if (isInitialized) { + DevExpress.Ui.DxSelectBoxInterop.SetValidationMessageMode(dxTarget, value); + } else { + this.validationMessageMode = value; + } + } + } + string accessKey; + [Parameter] + string AccessKey { + get => isInitialized ? (string)DevExpress.Ui.DxSelectBoxInterop.GetAccessKey(dxTarget).Result : accessKey; + set { + if (isInitialized) { + DevExpress.Ui.DxSelectBoxInterop.SetAccessKey(dxTarget, value); + } else { + this.accessKey = value; + } + } + } + bool? disabled; + [Parameter] + bool? Disabled { + get => isInitialized ? (bool?)DevExpress.Ui.DxSelectBoxInterop.GetDisabled(dxTarget).Result : disabled; + set { + if (isInitialized) { + DevExpress.Ui.DxSelectBoxInterop.SetDisabled(dxTarget, value); + } else { + this.disabled = value; + } + } + } + string hint; + [Parameter] + string Hint { + get => isInitialized ? (string)DevExpress.Ui.DxSelectBoxInterop.GetHint(dxTarget).Result : hint; + set { + if (isInitialized) { + DevExpress.Ui.DxSelectBoxInterop.SetHint(dxTarget, value); + } else { + this.hint = value; + } + } + } + float? tabIndex; + [Parameter] + float? TabIndex { + get => isInitialized ? (float?)DevExpress.Ui.DxSelectBoxInterop.GetTabIndex(dxTarget).Result : tabIndex; + set { + if (isInitialized) { + DevExpress.Ui.DxSelectBoxInterop.SetTabIndex(dxTarget, value); + } else { + this.tabIndex = value; + } + } + } + bool? visible; + [Parameter] + bool? Visible { + get => isInitialized ? (bool?)DevExpress.Ui.DxSelectBoxInterop.GetVisible(dxTarget).Result : visible; + set { + if (isInitialized) { + DevExpress.Ui.DxSelectBoxInterop.SetVisible(dxTarget, value); + } else { + this.visible = value; + } + } + } + object bindingOptions; + [Parameter] + object BindingOptions { + get => isInitialized ? DevExpress.Ui.DxSelectBoxInterop.GetBindingOptions(dxTarget).Result : bindingOptions; + set { + if (isInitialized) { + DevExpress.Ui.DxSelectBoxInterop.SetBindingOptions(dxTarget, value); + } else { + this.bindingOptions = value; + } + } + } + object elementAttr; + [Parameter] + object ElementAttr { + get => isInitialized ? DevExpress.Ui.DxSelectBoxInterop.GetElementAttr(dxTarget).Result : elementAttr; + set { + if (isInitialized) { + DevExpress.Ui.DxSelectBoxInterop.SetElementAttr(dxTarget, value); + } else { + this.elementAttr = value; + } + } + } + object height; + [Parameter] + object Height { + get => isInitialized ? DevExpress.Ui.DxSelectBoxInterop.GetHeight(dxTarget).Result : height; + set { + if (isInitialized) { + DevExpress.Ui.DxSelectBoxInterop.SetHeight(dxTarget, value); + } else { + this.height = value; + } + } + } + bool? rtlEnabled; + [Parameter] + bool? RtlEnabled { + get => isInitialized ? (bool?)DevExpress.Ui.DxSelectBoxInterop.GetRtlEnabled(dxTarget).Result : rtlEnabled; + set { + if (isInitialized) { + DevExpress.Ui.DxSelectBoxInterop.SetRtlEnabled(dxTarget, value); + } else { + this.rtlEnabled = value; + } + } + } + object width; + [Parameter] + object Width { + get => isInitialized ? DevExpress.Ui.DxSelectBoxInterop.GetWidth(dxTarget).Result : width; + set { + if (isInitialized) { + DevExpress.Ui.DxSelectBoxInterop.SetWidth(dxTarget, value); + } else { + this.width = value; + } + } + } + object dataSource; + [Parameter] + object DataSource { + get => isInitialized ? DevExpress.Ui.DxSelectBoxInterop.GetDataSource(dxTarget).Result : dataSource; + set { + if (isInitialized) { + DevExpress.Ui.DxSelectBoxInterop.SetDataSource(dxTarget, value); + } else { + this.dataSource = value; + } + } + } + object displayExpr; + [Parameter] + object DisplayExpr { + get => isInitialized ? DevExpress.Ui.DxSelectBoxInterop.GetDisplayExpr(dxTarget).Result : displayExpr; + set { + if (isInitialized) { + DevExpress.Ui.DxSelectBoxInterop.SetDisplayExpr(dxTarget, value); + } else { + this.displayExpr = value; + } + } + } + object items; + [Parameter] + object Items { + get => isInitialized ? DevExpress.Ui.DxSelectBoxInterop.GetItems(dxTarget).Result : items; + set { + if (isInitialized) { + DevExpress.Ui.DxSelectBoxInterop.SetItems(dxTarget, value); + } else { + this.items = value; + } + } + } + object itemTemplate; + [Parameter] + object ItemTemplate { + get => isInitialized ? DevExpress.Ui.DxSelectBoxInterop.GetItemTemplate(dxTarget).Result : itemTemplate; + set { + if (isInitialized) { + DevExpress.Ui.DxSelectBoxInterop.SetItemTemplate(dxTarget, value); + } else { + this.itemTemplate = value; + } + } + } + object valueExpr; + [Parameter] + object ValueExpr { + get => isInitialized ? DevExpress.Ui.DxSelectBoxInterop.GetValueExpr(dxTarget).Result : valueExpr; + set { + if (isInitialized) { + DevExpress.Ui.DxSelectBoxInterop.SetValueExpr(dxTarget, value); + } else { + this.valueExpr = value; + } + } + } bool? onCustomItemCreatingEnabled; [Parameter] bool? OnCustomItemCreatingEnabled { get => onCustomItemCreatingEnabled; set => this.onCustomItemCreatingEnabled = value; } + bool? onItemClickEnabled; + [Parameter] + bool? OnItemClickEnabled { + get => onItemClickEnabled; + set => this.onItemClickEnabled = value; + } + bool? onSelectionChangedEnabled; + [Parameter] + bool? OnSelectionChangedEnabled { + get => onSelectionChangedEnabled; + set => this.onSelectionChangedEnabled = value; + } + bool? onValueChangedEnabled; + [Parameter] + bool? OnValueChangedEnabled { + get => onValueChangedEnabled; + set => this.onValueChangedEnabled = value; + } + bool? onClosedEnabled; + [Parameter] + bool? OnClosedEnabled { + get => onClosedEnabled; + set => this.onClosedEnabled = value; + } + bool? onOpenedEnabled; + [Parameter] + bool? OnOpenedEnabled { + get => onOpenedEnabled; + set => this.onOpenedEnabled = value; + } + bool? onChangeEnabled; + [Parameter] + bool? OnChangeEnabled { + get => onChangeEnabled; + set => this.onChangeEnabled = value; + } + bool? onCopyEnabled; + [Parameter] + bool? OnCopyEnabled { + get => onCopyEnabled; + set => this.onCopyEnabled = value; + } + bool? onCutEnabled; + [Parameter] + bool? OnCutEnabled { + get => onCutEnabled; + set => this.onCutEnabled = value; + } + bool? onEnterKeyEnabled; + [Parameter] + bool? OnEnterKeyEnabled { + get => onEnterKeyEnabled; + set => this.onEnterKeyEnabled = value; + } + bool? onFocusInEnabled; + [Parameter] + bool? OnFocusInEnabled { + get => onFocusInEnabled; + set => this.onFocusInEnabled = value; + } + bool? onFocusOutEnabled; + [Parameter] + bool? OnFocusOutEnabled { + get => onFocusOutEnabled; + set => this.onFocusOutEnabled = value; + } + bool? onInputEnabled; + [Parameter] + bool? OnInputEnabled { + get => onInputEnabled; + set => this.onInputEnabled = value; + } + bool? onKeyDownEnabled; + [Parameter] + bool? OnKeyDownEnabled { + get => onKeyDownEnabled; + set => this.onKeyDownEnabled = value; + } + bool? onKeyPressEnabled; + [Parameter] + bool? OnKeyPressEnabled { + get => onKeyPressEnabled; + set => this.onKeyPressEnabled = value; + } + bool? onKeyUpEnabled; + [Parameter] + bool? OnKeyUpEnabled { + get => onKeyUpEnabled; + set => this.onKeyUpEnabled = value; + } + bool? onPasteEnabled; + [Parameter] + bool? OnPasteEnabled { + get => onPasteEnabled; + set => this.onPasteEnabled = value; + } + bool? onContentReadyEnabled; + [Parameter] + bool? OnContentReadyEnabled { + get => onContentReadyEnabled; + set => this.onContentReadyEnabled = value; + } + bool? onDisposingEnabled; + [Parameter] + bool? OnDisposingEnabled { + get => onDisposingEnabled; + set => this.onDisposingEnabled = value; + } + bool? onOptionChangedEnabled; + [Parameter] + bool? OnOptionChangedEnabled { + get => onOptionChangedEnabled; + set => this.onOptionChangedEnabled = value; + } + bool? onInitializedEnabled; + [Parameter] + bool? OnInitializedEnabled { + get => onInitializedEnabled; + set => this.onInitializedEnabled = value; + } protected override async Task OnInitAsync() { await base.OnInitAsync(); DevExpress.Ui.DxSelectBoxInterop.CustomItemCreating += DxSelectBox_CustomItemCreating; + DevExpress.Ui.DxSelectBoxInterop.ItemClick += DxSelectBox_ItemClick; + DevExpress.Ui.DxSelectBoxInterop.SelectionChanged += DxSelectBox_SelectionChanged; + DevExpress.Ui.DxSelectBoxInterop.ValueChanged += DxSelectBox_ValueChanged; + DevExpress.Ui.DxSelectBoxInterop.Closed += DxSelectBox_Closed; + DevExpress.Ui.DxSelectBoxInterop.Opened += DxSelectBox_Opened; + DevExpress.Ui.DxSelectBoxInterop.Change += DxSelectBox_Change; + DevExpress.Ui.DxSelectBoxInterop.Copy += DxSelectBox_Copy; + DevExpress.Ui.DxSelectBoxInterop.Cut += DxSelectBox_Cut; + DevExpress.Ui.DxSelectBoxInterop.EnterKey += DxSelectBox_EnterKey; + DevExpress.Ui.DxSelectBoxInterop.FocusIn += DxSelectBox_FocusIn; + DevExpress.Ui.DxSelectBoxInterop.FocusOut += DxSelectBox_FocusOut; + DevExpress.Ui.DxSelectBoxInterop.Input += DxSelectBox_Input; + DevExpress.Ui.DxSelectBoxInterop.KeyDown += DxSelectBox_KeyDown; + DevExpress.Ui.DxSelectBoxInterop.KeyPress += DxSelectBox_KeyPress; + DevExpress.Ui.DxSelectBoxInterop.KeyUp += DxSelectBox_KeyUp; + DevExpress.Ui.DxSelectBoxInterop.Paste += DxSelectBox_Paste; + DevExpress.Ui.DxSelectBoxInterop.ContentReady += DxSelectBox_ContentReady; + DevExpress.Ui.DxSelectBoxInterop.Disposing += DxSelectBox_Disposing; + DevExpress.Ui.DxSelectBoxInterop.OptionChanged += DxSelectBox_OptionChanged; + DevExpress.Ui.DxSelectBoxInterop.Initialized += DxSelectBox_Initialized; } [Parameter] Action CustomItemCreating { get; set; } @@ -98,7 +921,167 @@ return DevExpress.Ui.DxSelectBoxInterop.Init(dxTarget, options); CustomItemCreating?.Invoke(); } } + [Parameter] + Action ItemClick { get; set; } + void DxSelectBox_ItemClick(object sender, JQueryEventArgs e) { + if (e.Identifier == Id) { + ItemClick?.Invoke(); + } + } + [Parameter] + Action SelectionChanged { get; set; } + void DxSelectBox_SelectionChanged(object sender, JQueryEventArgs e) { + if (e.Identifier == Id) { + SelectionChanged?.Invoke(); + } + } + [Parameter] + Action ValueChanged { get; set; } + void DxSelectBox_ValueChanged(object sender, JQueryEventArgs e) { + if (e.Identifier == Id) { + ValueChanged?.Invoke(); + } + } + [Parameter] + Action Closed { get; set; } + void DxSelectBox_Closed(object sender, JQueryEventArgs e) { + if (e.Identifier == Id) { + Closed?.Invoke(); + } + } + [Parameter] + Action Opened { get; set; } + void DxSelectBox_Opened(object sender, JQueryEventArgs e) { + if (e.Identifier == Id) { + Opened?.Invoke(); + } + } + [Parameter] + Action Change { get; set; } + void DxSelectBox_Change(object sender, JQueryEventArgs e) { + if (e.Identifier == Id) { + Change?.Invoke(); + } + } + [Parameter] + Action Copy { get; set; } + void DxSelectBox_Copy(object sender, JQueryEventArgs e) { + if (e.Identifier == Id) { + Copy?.Invoke(); + } + } + [Parameter] + Action Cut { get; set; } + void DxSelectBox_Cut(object sender, JQueryEventArgs e) { + if (e.Identifier == Id) { + Cut?.Invoke(); + } + } + [Parameter] + Action EnterKey { get; set; } + void DxSelectBox_EnterKey(object sender, JQueryEventArgs e) { + if (e.Identifier == Id) { + EnterKey?.Invoke(); + } + } + [Parameter] + Action FocusIn { get; set; } + void DxSelectBox_FocusIn(object sender, JQueryEventArgs e) { + if (e.Identifier == Id) { + FocusIn?.Invoke(); + } + } + [Parameter] + Action FocusOut { get; set; } + void DxSelectBox_FocusOut(object sender, JQueryEventArgs e) { + if (e.Identifier == Id) { + FocusOut?.Invoke(); + } + } + [Parameter] + Action Input { get; set; } + void DxSelectBox_Input(object sender, JQueryEventArgs e) { + if (e.Identifier == Id) { + Input?.Invoke(); + } + } + [Parameter] + Action KeyDown { get; set; } + void DxSelectBox_KeyDown(object sender, JQueryEventArgs e) { + if (e.Identifier == Id) { + KeyDown?.Invoke(); + } + } + [Parameter] + Action KeyPress { get; set; } + void DxSelectBox_KeyPress(object sender, JQueryEventArgs e) { + if (e.Identifier == Id) { + KeyPress?.Invoke(); + } + } + [Parameter] + Action KeyUp { get; set; } + void DxSelectBox_KeyUp(object sender, JQueryEventArgs e) { + if (e.Identifier == Id) { + KeyUp?.Invoke(); + } + } + [Parameter] + Action Paste { get; set; } + void DxSelectBox_Paste(object sender, JQueryEventArgs e) { + if (e.Identifier == Id) { + Paste?.Invoke(); + } + } + [Parameter] + Action ContentReady { get; set; } + void DxSelectBox_ContentReady(object sender, JQueryEventArgs e) { + if (e.Identifier == Id) { + ContentReady?.Invoke(); + } + } + [Parameter] + Action Disposing { get; set; } + void DxSelectBox_Disposing(object sender, JQueryEventArgs e) { + if (e.Identifier == Id) { + Disposing?.Invoke(); + } + } + [Parameter] + Action OptionChanged { get; set; } + void DxSelectBox_OptionChanged(object sender, JQueryEventArgs e) { + if (e.Identifier == Id) { + OptionChanged?.Invoke(); + } + } + [Parameter] + Action Initialized { get; set; } + void DxSelectBox_Initialized(object sender, JQueryEventArgs e) { + if (e.Identifier == Id) { + Initialized?.Invoke(); + } + } public void Dispose() { DevExpress.Ui.DxSelectBoxInterop.CustomItemCreating -= DxSelectBox_CustomItemCreating; + DevExpress.Ui.DxSelectBoxInterop.ItemClick -= DxSelectBox_ItemClick; + DevExpress.Ui.DxSelectBoxInterop.SelectionChanged -= DxSelectBox_SelectionChanged; + DevExpress.Ui.DxSelectBoxInterop.ValueChanged -= DxSelectBox_ValueChanged; + DevExpress.Ui.DxSelectBoxInterop.Closed -= DxSelectBox_Closed; + DevExpress.Ui.DxSelectBoxInterop.Opened -= DxSelectBox_Opened; + DevExpress.Ui.DxSelectBoxInterop.Change -= DxSelectBox_Change; + DevExpress.Ui.DxSelectBoxInterop.Copy -= DxSelectBox_Copy; + DevExpress.Ui.DxSelectBoxInterop.Cut -= DxSelectBox_Cut; + DevExpress.Ui.DxSelectBoxInterop.EnterKey -= DxSelectBox_EnterKey; + DevExpress.Ui.DxSelectBoxInterop.FocusIn -= DxSelectBox_FocusIn; + DevExpress.Ui.DxSelectBoxInterop.FocusOut -= DxSelectBox_FocusOut; + DevExpress.Ui.DxSelectBoxInterop.Input -= DxSelectBox_Input; + DevExpress.Ui.DxSelectBoxInterop.KeyDown -= DxSelectBox_KeyDown; + DevExpress.Ui.DxSelectBoxInterop.KeyPress -= DxSelectBox_KeyPress; + DevExpress.Ui.DxSelectBoxInterop.KeyUp -= DxSelectBox_KeyUp; + DevExpress.Ui.DxSelectBoxInterop.Paste -= DxSelectBox_Paste; + DevExpress.Ui.DxSelectBoxInterop.ContentReady -= DxSelectBox_ContentReady; + DevExpress.Ui.DxSelectBoxInterop.Disposing -= DxSelectBox_Disposing; + DevExpress.Ui.DxSelectBoxInterop.OptionChanged -= DxSelectBox_OptionChanged; + DevExpress.Ui.DxSelectBoxInterop.Initialized -= DxSelectBox_Initialized; } } diff --git a/sources/BlazorDevExtreme/Components/DxSlideOut.cshtml b/sources/BlazorDevExtreme/Components/DxSlideOut.cshtml index 12087d6..93b104a 100644 --- a/sources/BlazorDevExtreme/Components/DxSlideOut.cshtml +++ b/sources/BlazorDevExtreme/Components/DxSlideOut.cshtml @@ -19,17 +19,47 @@ menuVisible = menuVisible, selectedIndex = selectedIndex, swipeEnabled = swipeEnabled, + dataSource = dataSource, + itemHoldTimeout = itemHoldTimeout, + items = items, + itemTemplate = itemTemplate, + keyExpr = keyExpr, + noDataText = noDataText, + selectedItem = selectedItem, + selectedItemKeys = selectedItemKeys, + selectedItems = selectedItems, + accessKey = accessKey, + disabled = disabled, + focusStateEnabled = focusStateEnabled, + hint = hint, + hoverStateEnabled = hoverStateEnabled, + tabIndex = tabIndex, + visible = visible, + bindingOptions = bindingOptions, + elementAttr = elementAttr, + height = height, + rtlEnabled = rtlEnabled, + width = width, onMenuGroupRenderedEnabled = onMenuGroupRenderedEnabled, onMenuItemRenderedEnabled = onMenuItemRenderedEnabled, + onItemClickEnabled = onItemClickEnabled, + onItemContextMenuEnabled = onItemContextMenuEnabled, + onItemHoldEnabled = onItemHoldEnabled, + onItemRenderedEnabled = onItemRenderedEnabled, + onSelectionChangedEnabled = onSelectionChangedEnabled, + onContentReadyEnabled = onContentReadyEnabled, + onDisposingEnabled = onDisposingEnabled, + onOptionChangedEnabled = onOptionChangedEnabled, + onInitializedEnabled = onInitializedEnabled, }; } protected override Task Init(DevExpress.Ui.DxSlideOutOptions options) { -return DevExpress.Ui.DxSlideOutInterop.Init(dxTarget, options); + return DevExpress.Ui.DxSlideOutInterop.Init(dxTarget, options); } bool? activeStateEnabled; [Parameter] bool? ActiveStateEnabled { - get => isInitialized ? DevExpress.Ui.DxSlideOutInterop.GetActiveStateEnabled(dxTarget).Result : activeStateEnabled; + get => isInitialized ? (bool?)DevExpress.Ui.DxSlideOutInterop.GetActiveStateEnabled(dxTarget).Result : activeStateEnabled; set { if (isInitialized) { DevExpress.Ui.DxSlideOutInterop.SetActiveStateEnabled(dxTarget, value); @@ -53,7 +83,7 @@ return DevExpress.Ui.DxSlideOutInterop.Init(dxTarget, options); bool? menuGrouped; [Parameter] bool? MenuGrouped { - get => isInitialized ? DevExpress.Ui.DxSlideOutInterop.GetMenuGrouped(dxTarget).Result : menuGrouped; + get => isInitialized ? (bool?)DevExpress.Ui.DxSlideOutInterop.GetMenuGrouped(dxTarget).Result : menuGrouped; set { if (isInitialized) { DevExpress.Ui.DxSlideOutInterop.SetMenuGrouped(dxTarget, value); @@ -89,7 +119,7 @@ return DevExpress.Ui.DxSlideOutInterop.Init(dxTarget, options); string menuPosition; [Parameter] string MenuPosition { - get => isInitialized ? DevExpress.Ui.DxSlideOutInterop.GetMenuPosition(dxTarget).Result : menuPosition; + get => isInitialized ? (string)DevExpress.Ui.DxSlideOutInterop.GetMenuPosition(dxTarget).Result : menuPosition; set { if (isInitialized) { DevExpress.Ui.DxSlideOutInterop.SetMenuPosition(dxTarget, value); @@ -101,7 +131,7 @@ return DevExpress.Ui.DxSlideOutInterop.Init(dxTarget, options); bool? menuVisible; [Parameter] bool? MenuVisible { - get => isInitialized ? DevExpress.Ui.DxSlideOutInterop.GetMenuVisible(dxTarget).Result : menuVisible; + get => isInitialized ? (bool?)DevExpress.Ui.DxSlideOutInterop.GetMenuVisible(dxTarget).Result : menuVisible; set { if (isInitialized) { DevExpress.Ui.DxSlideOutInterop.SetMenuVisible(dxTarget, value); @@ -113,7 +143,7 @@ return DevExpress.Ui.DxSlideOutInterop.Init(dxTarget, options); float? selectedIndex; [Parameter] float? SelectedIndex { - get => isInitialized ? DevExpress.Ui.DxSlideOutInterop.GetSelectedIndex(dxTarget).Result : selectedIndex; + get => isInitialized ? (float?)DevExpress.Ui.DxSlideOutInterop.GetSelectedIndex(dxTarget).Result : selectedIndex; set { if (isInitialized) { DevExpress.Ui.DxSlideOutInterop.SetSelectedIndex(dxTarget, value); @@ -125,7 +155,7 @@ return DevExpress.Ui.DxSlideOutInterop.Init(dxTarget, options); bool? swipeEnabled; [Parameter] bool? SwipeEnabled { - get => isInitialized ? DevExpress.Ui.DxSlideOutInterop.GetSwipeEnabled(dxTarget).Result : swipeEnabled; + get => isInitialized ? (bool?)DevExpress.Ui.DxSlideOutInterop.GetSwipeEnabled(dxTarget).Result : swipeEnabled; set { if (isInitialized) { DevExpress.Ui.DxSlideOutInterop.SetSwipeEnabled(dxTarget, value); @@ -134,6 +164,258 @@ return DevExpress.Ui.DxSlideOutInterop.Init(dxTarget, options); } } } + object dataSource; + [Parameter] + object DataSource { + get => isInitialized ? DevExpress.Ui.DxSlideOutInterop.GetDataSource(dxTarget).Result : dataSource; + set { + if (isInitialized) { + DevExpress.Ui.DxSlideOutInterop.SetDataSource(dxTarget, value); + } else { + this.dataSource = value; + } + } + } + float? itemHoldTimeout; + [Parameter] + float? ItemHoldTimeout { + get => isInitialized ? (float?)DevExpress.Ui.DxSlideOutInterop.GetItemHoldTimeout(dxTarget).Result : itemHoldTimeout; + set { + if (isInitialized) { + DevExpress.Ui.DxSlideOutInterop.SetItemHoldTimeout(dxTarget, value); + } else { + this.itemHoldTimeout = value; + } + } + } + object items; + [Parameter] + object Items { + get => isInitialized ? DevExpress.Ui.DxSlideOutInterop.GetItems(dxTarget).Result : items; + set { + if (isInitialized) { + DevExpress.Ui.DxSlideOutInterop.SetItems(dxTarget, value); + } else { + this.items = value; + } + } + } + object itemTemplate; + [Parameter] + object ItemTemplate { + get => isInitialized ? DevExpress.Ui.DxSlideOutInterop.GetItemTemplate(dxTarget).Result : itemTemplate; + set { + if (isInitialized) { + DevExpress.Ui.DxSlideOutInterop.SetItemTemplate(dxTarget, value); + } else { + this.itemTemplate = value; + } + } + } + object keyExpr; + [Parameter] + object KeyExpr { + get => isInitialized ? DevExpress.Ui.DxSlideOutInterop.GetKeyExpr(dxTarget).Result : keyExpr; + set { + if (isInitialized) { + DevExpress.Ui.DxSlideOutInterop.SetKeyExpr(dxTarget, value); + } else { + this.keyExpr = value; + } + } + } + string noDataText; + [Parameter] + string NoDataText { + get => isInitialized ? (string)DevExpress.Ui.DxSlideOutInterop.GetNoDataText(dxTarget).Result : noDataText; + set { + if (isInitialized) { + DevExpress.Ui.DxSlideOutInterop.SetNoDataText(dxTarget, value); + } else { + this.noDataText = value; + } + } + } + object selectedItem; + [Parameter] + object SelectedItem { + get => isInitialized ? DevExpress.Ui.DxSlideOutInterop.GetSelectedItem(dxTarget).Result : selectedItem; + set { + if (isInitialized) { + DevExpress.Ui.DxSlideOutInterop.SetSelectedItem(dxTarget, value); + } else { + this.selectedItem = value; + } + } + } + object selectedItemKeys; + [Parameter] + object SelectedItemKeys { + get => isInitialized ? DevExpress.Ui.DxSlideOutInterop.GetSelectedItemKeys(dxTarget).Result : selectedItemKeys; + set { + if (isInitialized) { + DevExpress.Ui.DxSlideOutInterop.SetSelectedItemKeys(dxTarget, value); + } else { + this.selectedItemKeys = value; + } + } + } + object selectedItems; + [Parameter] + object SelectedItems { + get => isInitialized ? DevExpress.Ui.DxSlideOutInterop.GetSelectedItems(dxTarget).Result : selectedItems; + set { + if (isInitialized) { + DevExpress.Ui.DxSlideOutInterop.SetSelectedItems(dxTarget, value); + } else { + this.selectedItems = value; + } + } + } + string accessKey; + [Parameter] + string AccessKey { + get => isInitialized ? (string)DevExpress.Ui.DxSlideOutInterop.GetAccessKey(dxTarget).Result : accessKey; + set { + if (isInitialized) { + DevExpress.Ui.DxSlideOutInterop.SetAccessKey(dxTarget, value); + } else { + this.accessKey = value; + } + } + } + bool? disabled; + [Parameter] + bool? Disabled { + get => isInitialized ? (bool?)DevExpress.Ui.DxSlideOutInterop.GetDisabled(dxTarget).Result : disabled; + set { + if (isInitialized) { + DevExpress.Ui.DxSlideOutInterop.SetDisabled(dxTarget, value); + } else { + this.disabled = value; + } + } + } + bool? focusStateEnabled; + [Parameter] + bool? FocusStateEnabled { + get => isInitialized ? (bool?)DevExpress.Ui.DxSlideOutInterop.GetFocusStateEnabled(dxTarget).Result : focusStateEnabled; + set { + if (isInitialized) { + DevExpress.Ui.DxSlideOutInterop.SetFocusStateEnabled(dxTarget, value); + } else { + this.focusStateEnabled = value; + } + } + } + string hint; + [Parameter] + string Hint { + get => isInitialized ? (string)DevExpress.Ui.DxSlideOutInterop.GetHint(dxTarget).Result : hint; + set { + if (isInitialized) { + DevExpress.Ui.DxSlideOutInterop.SetHint(dxTarget, value); + } else { + this.hint = value; + } + } + } + bool? hoverStateEnabled; + [Parameter] + bool? HoverStateEnabled { + get => isInitialized ? (bool?)DevExpress.Ui.DxSlideOutInterop.GetHoverStateEnabled(dxTarget).Result : hoverStateEnabled; + set { + if (isInitialized) { + DevExpress.Ui.DxSlideOutInterop.SetHoverStateEnabled(dxTarget, value); + } else { + this.hoverStateEnabled = value; + } + } + } + float? tabIndex; + [Parameter] + float? TabIndex { + get => isInitialized ? (float?)DevExpress.Ui.DxSlideOutInterop.GetTabIndex(dxTarget).Result : tabIndex; + set { + if (isInitialized) { + DevExpress.Ui.DxSlideOutInterop.SetTabIndex(dxTarget, value); + } else { + this.tabIndex = value; + } + } + } + bool? visible; + [Parameter] + bool? Visible { + get => isInitialized ? (bool?)DevExpress.Ui.DxSlideOutInterop.GetVisible(dxTarget).Result : visible; + set { + if (isInitialized) { + DevExpress.Ui.DxSlideOutInterop.SetVisible(dxTarget, value); + } else { + this.visible = value; + } + } + } + object bindingOptions; + [Parameter] + object BindingOptions { + get => isInitialized ? DevExpress.Ui.DxSlideOutInterop.GetBindingOptions(dxTarget).Result : bindingOptions; + set { + if (isInitialized) { + DevExpress.Ui.DxSlideOutInterop.SetBindingOptions(dxTarget, value); + } else { + this.bindingOptions = value; + } + } + } + object elementAttr; + [Parameter] + object ElementAttr { + get => isInitialized ? DevExpress.Ui.DxSlideOutInterop.GetElementAttr(dxTarget).Result : elementAttr; + set { + if (isInitialized) { + DevExpress.Ui.DxSlideOutInterop.SetElementAttr(dxTarget, value); + } else { + this.elementAttr = value; + } + } + } + object height; + [Parameter] + object Height { + get => isInitialized ? DevExpress.Ui.DxSlideOutInterop.GetHeight(dxTarget).Result : height; + set { + if (isInitialized) { + DevExpress.Ui.DxSlideOutInterop.SetHeight(dxTarget, value); + } else { + this.height = value; + } + } + } + bool? rtlEnabled; + [Parameter] + bool? RtlEnabled { + get => isInitialized ? (bool?)DevExpress.Ui.DxSlideOutInterop.GetRtlEnabled(dxTarget).Result : rtlEnabled; + set { + if (isInitialized) { + DevExpress.Ui.DxSlideOutInterop.SetRtlEnabled(dxTarget, value); + } else { + this.rtlEnabled = value; + } + } + } + object width; + [Parameter] + object Width { + get => isInitialized ? DevExpress.Ui.DxSlideOutInterop.GetWidth(dxTarget).Result : width; + set { + if (isInitialized) { + DevExpress.Ui.DxSlideOutInterop.SetWidth(dxTarget, value); + } else { + this.width = value; + } + } + } bool? onMenuGroupRenderedEnabled; [Parameter] bool? OnMenuGroupRenderedEnabled { @@ -146,10 +428,73 @@ return DevExpress.Ui.DxSlideOutInterop.Init(dxTarget, options); get => onMenuItemRenderedEnabled; set => this.onMenuItemRenderedEnabled = value; } + bool? onItemClickEnabled; + [Parameter] + bool? OnItemClickEnabled { + get => onItemClickEnabled; + set => this.onItemClickEnabled = value; + } + bool? onItemContextMenuEnabled; + [Parameter] + bool? OnItemContextMenuEnabled { + get => onItemContextMenuEnabled; + set => this.onItemContextMenuEnabled = value; + } + bool? onItemHoldEnabled; + [Parameter] + bool? OnItemHoldEnabled { + get => onItemHoldEnabled; + set => this.onItemHoldEnabled = value; + } + bool? onItemRenderedEnabled; + [Parameter] + bool? OnItemRenderedEnabled { + get => onItemRenderedEnabled; + set => this.onItemRenderedEnabled = value; + } + bool? onSelectionChangedEnabled; + [Parameter] + bool? OnSelectionChangedEnabled { + get => onSelectionChangedEnabled; + set => this.onSelectionChangedEnabled = value; + } + bool? onContentReadyEnabled; + [Parameter] + bool? OnContentReadyEnabled { + get => onContentReadyEnabled; + set => this.onContentReadyEnabled = value; + } + bool? onDisposingEnabled; + [Parameter] + bool? OnDisposingEnabled { + get => onDisposingEnabled; + set => this.onDisposingEnabled = value; + } + bool? onOptionChangedEnabled; + [Parameter] + bool? OnOptionChangedEnabled { + get => onOptionChangedEnabled; + set => this.onOptionChangedEnabled = value; + } + bool? onInitializedEnabled; + [Parameter] + bool? OnInitializedEnabled { + get => onInitializedEnabled; + set => this.onInitializedEnabled = value; + } protected override async Task OnInitAsync() { await base.OnInitAsync(); DevExpress.Ui.DxSlideOutInterop.MenuGroupRendered += DxSlideOut_MenuGroupRendered; DevExpress.Ui.DxSlideOutInterop.MenuItemRendered += DxSlideOut_MenuItemRendered; + DevExpress.Ui.DxSlideOutInterop.ItemClick += DxSlideOut_ItemClick; + DevExpress.Ui.DxSlideOutInterop.ItemContextMenu += DxSlideOut_ItemContextMenu; + DevExpress.Ui.DxSlideOutInterop.ItemHold += DxSlideOut_ItemHold; + DevExpress.Ui.DxSlideOutInterop.ItemRendered += DxSlideOut_ItemRendered; + DevExpress.Ui.DxSlideOutInterop.SelectionChanged += DxSlideOut_SelectionChanged; + DevExpress.Ui.DxSlideOutInterop.ContentReady += DxSlideOut_ContentReady; + DevExpress.Ui.DxSlideOutInterop.Disposing += DxSlideOut_Disposing; + DevExpress.Ui.DxSlideOutInterop.OptionChanged += DxSlideOut_OptionChanged; + DevExpress.Ui.DxSlideOutInterop.Initialized += DxSlideOut_Initialized; } [Parameter] Action MenuGroupRendered { get; set; } @@ -165,6 +510,69 @@ return DevExpress.Ui.DxSlideOutInterop.Init(dxTarget, options); MenuItemRendered?.Invoke(); } } + [Parameter] + Action ItemClick { get; set; } + void DxSlideOut_ItemClick(object sender, JQueryEventArgs e) { + if (e.Identifier == Id) { + ItemClick?.Invoke(); + } + } + [Parameter] + Action ItemContextMenu { get; set; } + void DxSlideOut_ItemContextMenu(object sender, JQueryEventArgs e) { + if (e.Identifier == Id) { + ItemContextMenu?.Invoke(); + } + } + [Parameter] + Action ItemHold { get; set; } + void DxSlideOut_ItemHold(object sender, JQueryEventArgs e) { + if (e.Identifier == Id) { + ItemHold?.Invoke(); + } + } + [Parameter] + Action ItemRendered { get; set; } + void DxSlideOut_ItemRendered(object sender, JQueryEventArgs e) { + if (e.Identifier == Id) { + ItemRendered?.Invoke(); + } + } + [Parameter] + Action SelectionChanged { get; set; } + void DxSlideOut_SelectionChanged(object sender, JQueryEventArgs e) { + if (e.Identifier == Id) { + SelectionChanged?.Invoke(); + } + } + [Parameter] + Action ContentReady { get; set; } + void DxSlideOut_ContentReady(object sender, JQueryEventArgs e) { + if (e.Identifier == Id) { + ContentReady?.Invoke(); + } + } + [Parameter] + Action Disposing { get; set; } + void DxSlideOut_Disposing(object sender, JQueryEventArgs e) { + if (e.Identifier == Id) { + Disposing?.Invoke(); + } + } + [Parameter] + Action OptionChanged { get; set; } + void DxSlideOut_OptionChanged(object sender, JQueryEventArgs e) { + if (e.Identifier == Id) { + OptionChanged?.Invoke(); + } + } + [Parameter] + Action Initialized { get; set; } + void DxSlideOut_Initialized(object sender, JQueryEventArgs e) { + if (e.Identifier == Id) { + Initialized?.Invoke(); + } + } public object HideMenu() { return DevExpress.Ui.DxSlideOutInterop.HideMenu(dxTarget).Result; } @@ -177,5 +585,14 @@ return DevExpress.Ui.DxSlideOutInterop.Init(dxTarget, options); public void Dispose() { DevExpress.Ui.DxSlideOutInterop.MenuGroupRendered -= DxSlideOut_MenuGroupRendered; DevExpress.Ui.DxSlideOutInterop.MenuItemRendered -= DxSlideOut_MenuItemRendered; + DevExpress.Ui.DxSlideOutInterop.ItemClick -= DxSlideOut_ItemClick; + DevExpress.Ui.DxSlideOutInterop.ItemContextMenu -= DxSlideOut_ItemContextMenu; + DevExpress.Ui.DxSlideOutInterop.ItemHold -= DxSlideOut_ItemHold; + DevExpress.Ui.DxSlideOutInterop.ItemRendered -= DxSlideOut_ItemRendered; + DevExpress.Ui.DxSlideOutInterop.SelectionChanged -= DxSlideOut_SelectionChanged; + DevExpress.Ui.DxSlideOutInterop.ContentReady -= DxSlideOut_ContentReady; + DevExpress.Ui.DxSlideOutInterop.Disposing -= DxSlideOut_Disposing; + DevExpress.Ui.DxSlideOutInterop.OptionChanged -= DxSlideOut_OptionChanged; + DevExpress.Ui.DxSlideOutInterop.Initialized -= DxSlideOut_Initialized; } } diff --git a/sources/BlazorDevExtreme/Components/DxSlideOutView.cshtml b/sources/BlazorDevExtreme/Components/DxSlideOutView.cshtml index 36d1917..d6341db 100644 --- a/sources/BlazorDevExtreme/Components/DxSlideOutView.cshtml +++ b/sources/BlazorDevExtreme/Components/DxSlideOutView.cshtml @@ -15,10 +15,27 @@ menuTemplate = menuTemplate, menuVisible = menuVisible, swipeEnabled = swipeEnabled, + accessKey = accessKey, + activeStateEnabled = activeStateEnabled, + disabled = disabled, + focusStateEnabled = focusStateEnabled, + hint = hint, + hoverStateEnabled = hoverStateEnabled, + tabIndex = tabIndex, + visible = visible, + bindingOptions = bindingOptions, + elementAttr = elementAttr, + height = height, + rtlEnabled = rtlEnabled, + width = width, + onContentReadyEnabled = onContentReadyEnabled, + onDisposingEnabled = onDisposingEnabled, + onOptionChangedEnabled = onOptionChangedEnabled, + onInitializedEnabled = onInitializedEnabled, }; } protected override Task Init(DevExpress.Ui.DxSlideOutViewOptions options) { -return DevExpress.Ui.DxSlideOutViewInterop.Init(dxTarget, options); + return DevExpress.Ui.DxSlideOutViewInterop.Init(dxTarget, options); } object contentTemplate; [Parameter] @@ -35,7 +52,7 @@ return DevExpress.Ui.DxSlideOutViewInterop.Init(dxTarget, options); string menuPosition; [Parameter] string MenuPosition { - get => isInitialized ? DevExpress.Ui.DxSlideOutViewInterop.GetMenuPosition(dxTarget).Result : menuPosition; + get => isInitialized ? (string)DevExpress.Ui.DxSlideOutViewInterop.GetMenuPosition(dxTarget).Result : menuPosition; set { if (isInitialized) { DevExpress.Ui.DxSlideOutViewInterop.SetMenuPosition(dxTarget, value); @@ -59,7 +76,7 @@ return DevExpress.Ui.DxSlideOutViewInterop.Init(dxTarget, options); bool? menuVisible; [Parameter] bool? MenuVisible { - get => isInitialized ? DevExpress.Ui.DxSlideOutViewInterop.GetMenuVisible(dxTarget).Result : menuVisible; + get => isInitialized ? (bool?)DevExpress.Ui.DxSlideOutViewInterop.GetMenuVisible(dxTarget).Result : menuVisible; set { if (isInitialized) { DevExpress.Ui.DxSlideOutViewInterop.SetMenuVisible(dxTarget, value); @@ -71,7 +88,7 @@ return DevExpress.Ui.DxSlideOutViewInterop.Init(dxTarget, options); bool? swipeEnabled; [Parameter] bool? SwipeEnabled { - get => isInitialized ? DevExpress.Ui.DxSlideOutViewInterop.GetSwipeEnabled(dxTarget).Result : swipeEnabled; + get => isInitialized ? (bool?)DevExpress.Ui.DxSlideOutViewInterop.GetSwipeEnabled(dxTarget).Result : swipeEnabled; set { if (isInitialized) { DevExpress.Ui.DxSlideOutViewInterop.SetSwipeEnabled(dxTarget, value); @@ -80,8 +97,220 @@ return DevExpress.Ui.DxSlideOutViewInterop.Init(dxTarget, options); } } } + string accessKey; + [Parameter] + string AccessKey { + get => isInitialized ? (string)DevExpress.Ui.DxSlideOutViewInterop.GetAccessKey(dxTarget).Result : accessKey; + set { + if (isInitialized) { + DevExpress.Ui.DxSlideOutViewInterop.SetAccessKey(dxTarget, value); + } else { + this.accessKey = value; + } + } + } + bool? activeStateEnabled; + [Parameter] + bool? ActiveStateEnabled { + get => isInitialized ? (bool?)DevExpress.Ui.DxSlideOutViewInterop.GetActiveStateEnabled(dxTarget).Result : activeStateEnabled; + set { + if (isInitialized) { + DevExpress.Ui.DxSlideOutViewInterop.SetActiveStateEnabled(dxTarget, value); + } else { + this.activeStateEnabled = value; + } + } + } + bool? disabled; + [Parameter] + bool? Disabled { + get => isInitialized ? (bool?)DevExpress.Ui.DxSlideOutViewInterop.GetDisabled(dxTarget).Result : disabled; + set { + if (isInitialized) { + DevExpress.Ui.DxSlideOutViewInterop.SetDisabled(dxTarget, value); + } else { + this.disabled = value; + } + } + } + bool? focusStateEnabled; + [Parameter] + bool? FocusStateEnabled { + get => isInitialized ? (bool?)DevExpress.Ui.DxSlideOutViewInterop.GetFocusStateEnabled(dxTarget).Result : focusStateEnabled; + set { + if (isInitialized) { + DevExpress.Ui.DxSlideOutViewInterop.SetFocusStateEnabled(dxTarget, value); + } else { + this.focusStateEnabled = value; + } + } + } + string hint; + [Parameter] + string Hint { + get => isInitialized ? (string)DevExpress.Ui.DxSlideOutViewInterop.GetHint(dxTarget).Result : hint; + set { + if (isInitialized) { + DevExpress.Ui.DxSlideOutViewInterop.SetHint(dxTarget, value); + } else { + this.hint = value; + } + } + } + bool? hoverStateEnabled; + [Parameter] + bool? HoverStateEnabled { + get => isInitialized ? (bool?)DevExpress.Ui.DxSlideOutViewInterop.GetHoverStateEnabled(dxTarget).Result : hoverStateEnabled; + set { + if (isInitialized) { + DevExpress.Ui.DxSlideOutViewInterop.SetHoverStateEnabled(dxTarget, value); + } else { + this.hoverStateEnabled = value; + } + } + } + float? tabIndex; + [Parameter] + float? TabIndex { + get => isInitialized ? (float?)DevExpress.Ui.DxSlideOutViewInterop.GetTabIndex(dxTarget).Result : tabIndex; + set { + if (isInitialized) { + DevExpress.Ui.DxSlideOutViewInterop.SetTabIndex(dxTarget, value); + } else { + this.tabIndex = value; + } + } + } + bool? visible; + [Parameter] + bool? Visible { + get => isInitialized ? (bool?)DevExpress.Ui.DxSlideOutViewInterop.GetVisible(dxTarget).Result : visible; + set { + if (isInitialized) { + DevExpress.Ui.DxSlideOutViewInterop.SetVisible(dxTarget, value); + } else { + this.visible = value; + } + } + } + object bindingOptions; + [Parameter] + object BindingOptions { + get => isInitialized ? DevExpress.Ui.DxSlideOutViewInterop.GetBindingOptions(dxTarget).Result : bindingOptions; + set { + if (isInitialized) { + DevExpress.Ui.DxSlideOutViewInterop.SetBindingOptions(dxTarget, value); + } else { + this.bindingOptions = value; + } + } + } + object elementAttr; + [Parameter] + object ElementAttr { + get => isInitialized ? DevExpress.Ui.DxSlideOutViewInterop.GetElementAttr(dxTarget).Result : elementAttr; + set { + if (isInitialized) { + DevExpress.Ui.DxSlideOutViewInterop.SetElementAttr(dxTarget, value); + } else { + this.elementAttr = value; + } + } + } + object height; + [Parameter] + object Height { + get => isInitialized ? DevExpress.Ui.DxSlideOutViewInterop.GetHeight(dxTarget).Result : height; + set { + if (isInitialized) { + DevExpress.Ui.DxSlideOutViewInterop.SetHeight(dxTarget, value); + } else { + this.height = value; + } + } + } + bool? rtlEnabled; + [Parameter] + bool? RtlEnabled { + get => isInitialized ? (bool?)DevExpress.Ui.DxSlideOutViewInterop.GetRtlEnabled(dxTarget).Result : rtlEnabled; + set { + if (isInitialized) { + DevExpress.Ui.DxSlideOutViewInterop.SetRtlEnabled(dxTarget, value); + } else { + this.rtlEnabled = value; + } + } + } + object width; + [Parameter] + object Width { + get => isInitialized ? DevExpress.Ui.DxSlideOutViewInterop.GetWidth(dxTarget).Result : width; + set { + if (isInitialized) { + DevExpress.Ui.DxSlideOutViewInterop.SetWidth(dxTarget, value); + } else { + this.width = value; + } + } + } + bool? onContentReadyEnabled; + [Parameter] + bool? OnContentReadyEnabled { + get => onContentReadyEnabled; + set => this.onContentReadyEnabled = value; + } + bool? onDisposingEnabled; + [Parameter] + bool? OnDisposingEnabled { + get => onDisposingEnabled; + set => this.onDisposingEnabled = value; + } + bool? onOptionChangedEnabled; + [Parameter] + bool? OnOptionChangedEnabled { + get => onOptionChangedEnabled; + set => this.onOptionChangedEnabled = value; + } + bool? onInitializedEnabled; + [Parameter] + bool? OnInitializedEnabled { + get => onInitializedEnabled; + set => this.onInitializedEnabled = value; + } protected override async Task OnInitAsync() { await base.OnInitAsync(); + DevExpress.Ui.DxSlideOutViewInterop.ContentReady += DxSlideOutView_ContentReady; + DevExpress.Ui.DxSlideOutViewInterop.Disposing += DxSlideOutView_Disposing; + DevExpress.Ui.DxSlideOutViewInterop.OptionChanged += DxSlideOutView_OptionChanged; + DevExpress.Ui.DxSlideOutViewInterop.Initialized += DxSlideOutView_Initialized; + } + [Parameter] + Action ContentReady { get; set; } + void DxSlideOutView_ContentReady(object sender, JQueryEventArgs e) { + if (e.Identifier == Id) { + ContentReady?.Invoke(); + } + } + [Parameter] + Action Disposing { get; set; } + void DxSlideOutView_Disposing(object sender, JQueryEventArgs e) { + if (e.Identifier == Id) { + Disposing?.Invoke(); + } + } + [Parameter] + Action OptionChanged { get; set; } + void DxSlideOutView_OptionChanged(object sender, JQueryEventArgs e) { + if (e.Identifier == Id) { + OptionChanged?.Invoke(); + } + } + [Parameter] + Action Initialized { get; set; } + void DxSlideOutView_Initialized(object sender, JQueryEventArgs e) { + if (e.Identifier == Id) { + Initialized?.Invoke(); + } } public object Content() { return DevExpress.Ui.DxSlideOutViewInterop.Content(dxTarget).Result; @@ -99,5 +328,9 @@ return DevExpress.Ui.DxSlideOutViewInterop.Init(dxTarget, options); return DevExpress.Ui.DxSlideOutViewInterop.ToggleMenuVisibility(dxTarget).Result; } public void Dispose() { + DevExpress.Ui.DxSlideOutViewInterop.ContentReady -= DxSlideOutView_ContentReady; + DevExpress.Ui.DxSlideOutViewInterop.Disposing -= DxSlideOutView_Disposing; + DevExpress.Ui.DxSlideOutViewInterop.OptionChanged -= DxSlideOutView_OptionChanged; + DevExpress.Ui.DxSlideOutViewInterop.Initialized -= DxSlideOutView_Initialized; } } diff --git a/sources/BlazorDevExtreme/Components/DxSlider.cshtml b/sources/BlazorDevExtreme/Components/DxSlider.cshtml index b7f4cc1..1377042 100644 --- a/sources/BlazorDevExtreme/Components/DxSlider.cshtml +++ b/sources/BlazorDevExtreme/Components/DxSlider.cshtml @@ -11,15 +11,45 @@ protected override DevExpress.Ui.DxSliderOptions CreateOptions() { return new DevExpress.Ui.DxSliderOptions { value = value, + activeStateEnabled = activeStateEnabled, + focusStateEnabled = focusStateEnabled, + hoverStateEnabled = hoverStateEnabled, + keyStep = keyStep, + label = label, + name = name, + showRange = showRange, + step = step, + tooltip = tooltip, + max = max, + min = min, + isValid = isValid, + readOnly = readOnly, + validationError = validationError, + validationMessageMode = validationMessageMode, + accessKey = accessKey, + disabled = disabled, + hint = hint, + tabIndex = tabIndex, + visible = visible, + bindingOptions = bindingOptions, + elementAttr = elementAttr, + height = height, + rtlEnabled = rtlEnabled, + width = width, + onValueChangedEnabled = onValueChangedEnabled, + onContentReadyEnabled = onContentReadyEnabled, + onDisposingEnabled = onDisposingEnabled, + onOptionChangedEnabled = onOptionChangedEnabled, + onInitializedEnabled = onInitializedEnabled, }; } protected override Task Init(DevExpress.Ui.DxSliderOptions options) { -return DevExpress.Ui.DxSliderInterop.Init(dxTarget, options); + return DevExpress.Ui.DxSliderInterop.Init(dxTarget, options); } float? value; [Parameter] float? Value { - get => isInitialized ? DevExpress.Ui.DxSliderInterop.GetValue(dxTarget).Result : value; + get => isInitialized ? (float?)DevExpress.Ui.DxSliderInterop.GetValue(dxTarget).Result : value; set { if (isInitialized) { DevExpress.Ui.DxSliderInterop.SetValue(dxTarget, value); @@ -28,9 +58,384 @@ return DevExpress.Ui.DxSliderInterop.Init(dxTarget, options); } } } + bool? activeStateEnabled; + [Parameter] + bool? ActiveStateEnabled { + get => isInitialized ? (bool?)DevExpress.Ui.DxSliderInterop.GetActiveStateEnabled(dxTarget).Result : activeStateEnabled; + set { + if (isInitialized) { + DevExpress.Ui.DxSliderInterop.SetActiveStateEnabled(dxTarget, value); + } else { + this.activeStateEnabled = value; + } + } + } + bool? focusStateEnabled; + [Parameter] + bool? FocusStateEnabled { + get => isInitialized ? (bool?)DevExpress.Ui.DxSliderInterop.GetFocusStateEnabled(dxTarget).Result : focusStateEnabled; + set { + if (isInitialized) { + DevExpress.Ui.DxSliderInterop.SetFocusStateEnabled(dxTarget, value); + } else { + this.focusStateEnabled = value; + } + } + } + bool? hoverStateEnabled; + [Parameter] + bool? HoverStateEnabled { + get => isInitialized ? (bool?)DevExpress.Ui.DxSliderInterop.GetHoverStateEnabled(dxTarget).Result : hoverStateEnabled; + set { + if (isInitialized) { + DevExpress.Ui.DxSliderInterop.SetHoverStateEnabled(dxTarget, value); + } else { + this.hoverStateEnabled = value; + } + } + } + float? keyStep; + [Parameter] + float? KeyStep { + get => isInitialized ? (float?)DevExpress.Ui.DxSliderInterop.GetKeyStep(dxTarget).Result : keyStep; + set { + if (isInitialized) { + DevExpress.Ui.DxSliderInterop.SetKeyStep(dxTarget, value); + } else { + this.keyStep = value; + } + } + } + object label; + [Parameter] + object Label { + get => isInitialized ? DevExpress.Ui.DxSliderInterop.GetLabel(dxTarget).Result : label; + set { + if (isInitialized) { + DevExpress.Ui.DxSliderInterop.SetLabel(dxTarget, value); + } else { + this.label = value; + } + } + } + string name; + [Parameter] + string Name { + get => isInitialized ? (string)DevExpress.Ui.DxSliderInterop.GetName(dxTarget).Result : name; + set { + if (isInitialized) { + DevExpress.Ui.DxSliderInterop.SetName(dxTarget, value); + } else { + this.name = value; + } + } + } + bool? showRange; + [Parameter] + bool? ShowRange { + get => isInitialized ? (bool?)DevExpress.Ui.DxSliderInterop.GetShowRange(dxTarget).Result : showRange; + set { + if (isInitialized) { + DevExpress.Ui.DxSliderInterop.SetShowRange(dxTarget, value); + } else { + this.showRange = value; + } + } + } + float? step; + [Parameter] + float? Step { + get => isInitialized ? (float?)DevExpress.Ui.DxSliderInterop.GetStep(dxTarget).Result : step; + set { + if (isInitialized) { + DevExpress.Ui.DxSliderInterop.SetStep(dxTarget, value); + } else { + this.step = value; + } + } + } + object tooltip; + [Parameter] + object Tooltip { + get => isInitialized ? DevExpress.Ui.DxSliderInterop.GetTooltip(dxTarget).Result : tooltip; + set { + if (isInitialized) { + DevExpress.Ui.DxSliderInterop.SetTooltip(dxTarget, value); + } else { + this.tooltip = value; + } + } + } + float? max; + [Parameter] + float? Max { + get => isInitialized ? (float?)DevExpress.Ui.DxSliderInterop.GetMax(dxTarget).Result : max; + set { + if (isInitialized) { + DevExpress.Ui.DxSliderInterop.SetMax(dxTarget, value); + } else { + this.max = value; + } + } + } + float? min; + [Parameter] + float? Min { + get => isInitialized ? (float?)DevExpress.Ui.DxSliderInterop.GetMin(dxTarget).Result : min; + set { + if (isInitialized) { + DevExpress.Ui.DxSliderInterop.SetMin(dxTarget, value); + } else { + this.min = value; + } + } + } + bool? isValid; + [Parameter] + bool? IsValid { + get => isInitialized ? (bool?)DevExpress.Ui.DxSliderInterop.GetIsValid(dxTarget).Result : isValid; + set { + if (isInitialized) { + DevExpress.Ui.DxSliderInterop.SetIsValid(dxTarget, value); + } else { + this.isValid = value; + } + } + } + bool? readOnly; + [Parameter] + bool? ReadOnly { + get => isInitialized ? (bool?)DevExpress.Ui.DxSliderInterop.GetReadOnly(dxTarget).Result : readOnly; + set { + if (isInitialized) { + DevExpress.Ui.DxSliderInterop.SetReadOnly(dxTarget, value); + } else { + this.readOnly = value; + } + } + } + object validationError; + [Parameter] + object ValidationError { + get => isInitialized ? DevExpress.Ui.DxSliderInterop.GetValidationError(dxTarget).Result : validationError; + set { + if (isInitialized) { + DevExpress.Ui.DxSliderInterop.SetValidationError(dxTarget, value); + } else { + this.validationError = value; + } + } + } + string validationMessageMode; + [Parameter] + string ValidationMessageMode { + get => isInitialized ? (string)DevExpress.Ui.DxSliderInterop.GetValidationMessageMode(dxTarget).Result : validationMessageMode; + set { + if (isInitialized) { + DevExpress.Ui.DxSliderInterop.SetValidationMessageMode(dxTarget, value); + } else { + this.validationMessageMode = value; + } + } + } + string accessKey; + [Parameter] + string AccessKey { + get => isInitialized ? (string)DevExpress.Ui.DxSliderInterop.GetAccessKey(dxTarget).Result : accessKey; + set { + if (isInitialized) { + DevExpress.Ui.DxSliderInterop.SetAccessKey(dxTarget, value); + } else { + this.accessKey = value; + } + } + } + bool? disabled; + [Parameter] + bool? Disabled { + get => isInitialized ? (bool?)DevExpress.Ui.DxSliderInterop.GetDisabled(dxTarget).Result : disabled; + set { + if (isInitialized) { + DevExpress.Ui.DxSliderInterop.SetDisabled(dxTarget, value); + } else { + this.disabled = value; + } + } + } + string hint; + [Parameter] + string Hint { + get => isInitialized ? (string)DevExpress.Ui.DxSliderInterop.GetHint(dxTarget).Result : hint; + set { + if (isInitialized) { + DevExpress.Ui.DxSliderInterop.SetHint(dxTarget, value); + } else { + this.hint = value; + } + } + } + float? tabIndex; + [Parameter] + float? TabIndex { + get => isInitialized ? (float?)DevExpress.Ui.DxSliderInterop.GetTabIndex(dxTarget).Result : tabIndex; + set { + if (isInitialized) { + DevExpress.Ui.DxSliderInterop.SetTabIndex(dxTarget, value); + } else { + this.tabIndex = value; + } + } + } + bool? visible; + [Parameter] + bool? Visible { + get => isInitialized ? (bool?)DevExpress.Ui.DxSliderInterop.GetVisible(dxTarget).Result : visible; + set { + if (isInitialized) { + DevExpress.Ui.DxSliderInterop.SetVisible(dxTarget, value); + } else { + this.visible = value; + } + } + } + object bindingOptions; + [Parameter] + object BindingOptions { + get => isInitialized ? DevExpress.Ui.DxSliderInterop.GetBindingOptions(dxTarget).Result : bindingOptions; + set { + if (isInitialized) { + DevExpress.Ui.DxSliderInterop.SetBindingOptions(dxTarget, value); + } else { + this.bindingOptions = value; + } + } + } + object elementAttr; + [Parameter] + object ElementAttr { + get => isInitialized ? DevExpress.Ui.DxSliderInterop.GetElementAttr(dxTarget).Result : elementAttr; + set { + if (isInitialized) { + DevExpress.Ui.DxSliderInterop.SetElementAttr(dxTarget, value); + } else { + this.elementAttr = value; + } + } + } + object height; + [Parameter] + object Height { + get => isInitialized ? DevExpress.Ui.DxSliderInterop.GetHeight(dxTarget).Result : height; + set { + if (isInitialized) { + DevExpress.Ui.DxSliderInterop.SetHeight(dxTarget, value); + } else { + this.height = value; + } + } + } + bool? rtlEnabled; + [Parameter] + bool? RtlEnabled { + get => isInitialized ? (bool?)DevExpress.Ui.DxSliderInterop.GetRtlEnabled(dxTarget).Result : rtlEnabled; + set { + if (isInitialized) { + DevExpress.Ui.DxSliderInterop.SetRtlEnabled(dxTarget, value); + } else { + this.rtlEnabled = value; + } + } + } + object width; + [Parameter] + object Width { + get => isInitialized ? DevExpress.Ui.DxSliderInterop.GetWidth(dxTarget).Result : width; + set { + if (isInitialized) { + DevExpress.Ui.DxSliderInterop.SetWidth(dxTarget, value); + } else { + this.width = value; + } + } + } + bool? onValueChangedEnabled; + [Parameter] + bool? OnValueChangedEnabled { + get => onValueChangedEnabled; + set => this.onValueChangedEnabled = value; + } + bool? onContentReadyEnabled; + [Parameter] + bool? OnContentReadyEnabled { + get => onContentReadyEnabled; + set => this.onContentReadyEnabled = value; + } + bool? onDisposingEnabled; + [Parameter] + bool? OnDisposingEnabled { + get => onDisposingEnabled; + set => this.onDisposingEnabled = value; + } + bool? onOptionChangedEnabled; + [Parameter] + bool? OnOptionChangedEnabled { + get => onOptionChangedEnabled; + set => this.onOptionChangedEnabled = value; + } + bool? onInitializedEnabled; + [Parameter] + bool? OnInitializedEnabled { + get => onInitializedEnabled; + set => this.onInitializedEnabled = value; + } protected override async Task OnInitAsync() { await base.OnInitAsync(); + DevExpress.Ui.DxSliderInterop.ValueChanged += DxSlider_ValueChanged; + DevExpress.Ui.DxSliderInterop.ContentReady += DxSlider_ContentReady; + DevExpress.Ui.DxSliderInterop.Disposing += DxSlider_Disposing; + DevExpress.Ui.DxSliderInterop.OptionChanged += DxSlider_OptionChanged; + DevExpress.Ui.DxSliderInterop.Initialized += DxSlider_Initialized; + } + [Parameter] + Action ValueChanged { get; set; } + void DxSlider_ValueChanged(object sender, JQueryEventArgs e) { + if (e.Identifier == Id) { + ValueChanged?.Invoke(); + } + } + [Parameter] + Action ContentReady { get; set; } + void DxSlider_ContentReady(object sender, JQueryEventArgs e) { + if (e.Identifier == Id) { + ContentReady?.Invoke(); + } + } + [Parameter] + Action Disposing { get; set; } + void DxSlider_Disposing(object sender, JQueryEventArgs e) { + if (e.Identifier == Id) { + Disposing?.Invoke(); + } + } + [Parameter] + Action OptionChanged { get; set; } + void DxSlider_OptionChanged(object sender, JQueryEventArgs e) { + if (e.Identifier == Id) { + OptionChanged?.Invoke(); + } + } + [Parameter] + Action Initialized { get; set; } + void DxSlider_Initialized(object sender, JQueryEventArgs e) { + if (e.Identifier == Id) { + Initialized?.Invoke(); + } } public void Dispose() { + DevExpress.Ui.DxSliderInterop.ValueChanged -= DxSlider_ValueChanged; + DevExpress.Ui.DxSliderInterop.ContentReady -= DxSlider_ContentReady; + DevExpress.Ui.DxSliderInterop.Disposing -= DxSlider_Disposing; + DevExpress.Ui.DxSliderInterop.OptionChanged -= DxSlider_OptionChanged; + DevExpress.Ui.DxSliderInterop.Initialized -= DxSlider_Initialized; } } diff --git a/sources/BlazorDevExtreme/Components/DxSliderBase.cshtml b/sources/BlazorDevExtreme/Components/DxSliderBase.cshtml index 5e6bf97..b873229 100644 --- a/sources/BlazorDevExtreme/Components/DxSliderBase.cshtml +++ b/sources/BlazorDevExtreme/Components/DxSliderBase.cshtml @@ -19,15 +19,37 @@ showRange = showRange, step = step, tooltip = tooltip, + max = max, + min = min, + isValid = isValid, + readOnly = readOnly, + validationError = validationError, + validationMessageMode = validationMessageMode, + value = value, + accessKey = accessKey, + disabled = disabled, + hint = hint, + tabIndex = tabIndex, + visible = visible, + bindingOptions = bindingOptions, + elementAttr = elementAttr, + height = height, + rtlEnabled = rtlEnabled, + width = width, + onValueChangedEnabled = onValueChangedEnabled, + onContentReadyEnabled = onContentReadyEnabled, + onDisposingEnabled = onDisposingEnabled, + onOptionChangedEnabled = onOptionChangedEnabled, + onInitializedEnabled = onInitializedEnabled, }; } protected override Task Init(DevExpress.Ui.DxSliderBaseOptions options) { -return DevExpress.Ui.DxSliderBaseInterop.Init(dxTarget, options); + return DevExpress.Ui.DxSliderBaseInterop.Init(dxTarget, options); } bool? activeStateEnabled; [Parameter] bool? ActiveStateEnabled { - get => isInitialized ? DevExpress.Ui.DxSliderBaseInterop.GetActiveStateEnabled(dxTarget).Result : activeStateEnabled; + get => isInitialized ? (bool?)DevExpress.Ui.DxSliderBaseInterop.GetActiveStateEnabled(dxTarget).Result : activeStateEnabled; set { if (isInitialized) { DevExpress.Ui.DxSliderBaseInterop.SetActiveStateEnabled(dxTarget, value); @@ -39,7 +61,7 @@ return DevExpress.Ui.DxSliderBaseInterop.Init(dxTarget, options); bool? focusStateEnabled; [Parameter] bool? FocusStateEnabled { - get => isInitialized ? DevExpress.Ui.DxSliderBaseInterop.GetFocusStateEnabled(dxTarget).Result : focusStateEnabled; + get => isInitialized ? (bool?)DevExpress.Ui.DxSliderBaseInterop.GetFocusStateEnabled(dxTarget).Result : focusStateEnabled; set { if (isInitialized) { DevExpress.Ui.DxSliderBaseInterop.SetFocusStateEnabled(dxTarget, value); @@ -51,7 +73,7 @@ return DevExpress.Ui.DxSliderBaseInterop.Init(dxTarget, options); bool? hoverStateEnabled; [Parameter] bool? HoverStateEnabled { - get => isInitialized ? DevExpress.Ui.DxSliderBaseInterop.GetHoverStateEnabled(dxTarget).Result : hoverStateEnabled; + get => isInitialized ? (bool?)DevExpress.Ui.DxSliderBaseInterop.GetHoverStateEnabled(dxTarget).Result : hoverStateEnabled; set { if (isInitialized) { DevExpress.Ui.DxSliderBaseInterop.SetHoverStateEnabled(dxTarget, value); @@ -63,7 +85,7 @@ return DevExpress.Ui.DxSliderBaseInterop.Init(dxTarget, options); float? keyStep; [Parameter] float? KeyStep { - get => isInitialized ? DevExpress.Ui.DxSliderBaseInterop.GetKeyStep(dxTarget).Result : keyStep; + get => isInitialized ? (float?)DevExpress.Ui.DxSliderBaseInterop.GetKeyStep(dxTarget).Result : keyStep; set { if (isInitialized) { DevExpress.Ui.DxSliderBaseInterop.SetKeyStep(dxTarget, value); @@ -87,7 +109,7 @@ return DevExpress.Ui.DxSliderBaseInterop.Init(dxTarget, options); string name; [Parameter] string Name { - get => isInitialized ? DevExpress.Ui.DxSliderBaseInterop.GetName(dxTarget).Result : name; + get => isInitialized ? (string)DevExpress.Ui.DxSliderBaseInterop.GetName(dxTarget).Result : name; set { if (isInitialized) { DevExpress.Ui.DxSliderBaseInterop.SetName(dxTarget, value); @@ -99,7 +121,7 @@ return DevExpress.Ui.DxSliderBaseInterop.Init(dxTarget, options); bool? showRange; [Parameter] bool? ShowRange { - get => isInitialized ? DevExpress.Ui.DxSliderBaseInterop.GetShowRange(dxTarget).Result : showRange; + get => isInitialized ? (bool?)DevExpress.Ui.DxSliderBaseInterop.GetShowRange(dxTarget).Result : showRange; set { if (isInitialized) { DevExpress.Ui.DxSliderBaseInterop.SetShowRange(dxTarget, value); @@ -111,7 +133,7 @@ return DevExpress.Ui.DxSliderBaseInterop.Init(dxTarget, options); float? step; [Parameter] float? Step { - get => isInitialized ? DevExpress.Ui.DxSliderBaseInterop.GetStep(dxTarget).Result : step; + get => isInitialized ? (float?)DevExpress.Ui.DxSliderBaseInterop.GetStep(dxTarget).Result : step; set { if (isInitialized) { DevExpress.Ui.DxSliderBaseInterop.SetStep(dxTarget, value); @@ -132,9 +154,288 @@ return DevExpress.Ui.DxSliderBaseInterop.Init(dxTarget, options); } } } + float? max; + [Parameter] + float? Max { + get => isInitialized ? (float?)DevExpress.Ui.DxSliderBaseInterop.GetMax(dxTarget).Result : max; + set { + if (isInitialized) { + DevExpress.Ui.DxSliderBaseInterop.SetMax(dxTarget, value); + } else { + this.max = value; + } + } + } + float? min; + [Parameter] + float? Min { + get => isInitialized ? (float?)DevExpress.Ui.DxSliderBaseInterop.GetMin(dxTarget).Result : min; + set { + if (isInitialized) { + DevExpress.Ui.DxSliderBaseInterop.SetMin(dxTarget, value); + } else { + this.min = value; + } + } + } + bool? isValid; + [Parameter] + bool? IsValid { + get => isInitialized ? (bool?)DevExpress.Ui.DxSliderBaseInterop.GetIsValid(dxTarget).Result : isValid; + set { + if (isInitialized) { + DevExpress.Ui.DxSliderBaseInterop.SetIsValid(dxTarget, value); + } else { + this.isValid = value; + } + } + } + bool? readOnly; + [Parameter] + bool? ReadOnly { + get => isInitialized ? (bool?)DevExpress.Ui.DxSliderBaseInterop.GetReadOnly(dxTarget).Result : readOnly; + set { + if (isInitialized) { + DevExpress.Ui.DxSliderBaseInterop.SetReadOnly(dxTarget, value); + } else { + this.readOnly = value; + } + } + } + object validationError; + [Parameter] + object ValidationError { + get => isInitialized ? DevExpress.Ui.DxSliderBaseInterop.GetValidationError(dxTarget).Result : validationError; + set { + if (isInitialized) { + DevExpress.Ui.DxSliderBaseInterop.SetValidationError(dxTarget, value); + } else { + this.validationError = value; + } + } + } + string validationMessageMode; + [Parameter] + string ValidationMessageMode { + get => isInitialized ? (string)DevExpress.Ui.DxSliderBaseInterop.GetValidationMessageMode(dxTarget).Result : validationMessageMode; + set { + if (isInitialized) { + DevExpress.Ui.DxSliderBaseInterop.SetValidationMessageMode(dxTarget, value); + } else { + this.validationMessageMode = value; + } + } + } + object value; + [Parameter] + object Value { + get => isInitialized ? DevExpress.Ui.DxSliderBaseInterop.GetValue(dxTarget).Result : value; + set { + if (isInitialized) { + DevExpress.Ui.DxSliderBaseInterop.SetValue(dxTarget, value); + } else { + this.value = value; + } + } + } + string accessKey; + [Parameter] + string AccessKey { + get => isInitialized ? (string)DevExpress.Ui.DxSliderBaseInterop.GetAccessKey(dxTarget).Result : accessKey; + set { + if (isInitialized) { + DevExpress.Ui.DxSliderBaseInterop.SetAccessKey(dxTarget, value); + } else { + this.accessKey = value; + } + } + } + bool? disabled; + [Parameter] + bool? Disabled { + get => isInitialized ? (bool?)DevExpress.Ui.DxSliderBaseInterop.GetDisabled(dxTarget).Result : disabled; + set { + if (isInitialized) { + DevExpress.Ui.DxSliderBaseInterop.SetDisabled(dxTarget, value); + } else { + this.disabled = value; + } + } + } + string hint; + [Parameter] + string Hint { + get => isInitialized ? (string)DevExpress.Ui.DxSliderBaseInterop.GetHint(dxTarget).Result : hint; + set { + if (isInitialized) { + DevExpress.Ui.DxSliderBaseInterop.SetHint(dxTarget, value); + } else { + this.hint = value; + } + } + } + float? tabIndex; + [Parameter] + float? TabIndex { + get => isInitialized ? (float?)DevExpress.Ui.DxSliderBaseInterop.GetTabIndex(dxTarget).Result : tabIndex; + set { + if (isInitialized) { + DevExpress.Ui.DxSliderBaseInterop.SetTabIndex(dxTarget, value); + } else { + this.tabIndex = value; + } + } + } + bool? visible; + [Parameter] + bool? Visible { + get => isInitialized ? (bool?)DevExpress.Ui.DxSliderBaseInterop.GetVisible(dxTarget).Result : visible; + set { + if (isInitialized) { + DevExpress.Ui.DxSliderBaseInterop.SetVisible(dxTarget, value); + } else { + this.visible = value; + } + } + } + object bindingOptions; + [Parameter] + object BindingOptions { + get => isInitialized ? DevExpress.Ui.DxSliderBaseInterop.GetBindingOptions(dxTarget).Result : bindingOptions; + set { + if (isInitialized) { + DevExpress.Ui.DxSliderBaseInterop.SetBindingOptions(dxTarget, value); + } else { + this.bindingOptions = value; + } + } + } + object elementAttr; + [Parameter] + object ElementAttr { + get => isInitialized ? DevExpress.Ui.DxSliderBaseInterop.GetElementAttr(dxTarget).Result : elementAttr; + set { + if (isInitialized) { + DevExpress.Ui.DxSliderBaseInterop.SetElementAttr(dxTarget, value); + } else { + this.elementAttr = value; + } + } + } + object height; + [Parameter] + object Height { + get => isInitialized ? DevExpress.Ui.DxSliderBaseInterop.GetHeight(dxTarget).Result : height; + set { + if (isInitialized) { + DevExpress.Ui.DxSliderBaseInterop.SetHeight(dxTarget, value); + } else { + this.height = value; + } + } + } + bool? rtlEnabled; + [Parameter] + bool? RtlEnabled { + get => isInitialized ? (bool?)DevExpress.Ui.DxSliderBaseInterop.GetRtlEnabled(dxTarget).Result : rtlEnabled; + set { + if (isInitialized) { + DevExpress.Ui.DxSliderBaseInterop.SetRtlEnabled(dxTarget, value); + } else { + this.rtlEnabled = value; + } + } + } + object width; + [Parameter] + object Width { + get => isInitialized ? DevExpress.Ui.DxSliderBaseInterop.GetWidth(dxTarget).Result : width; + set { + if (isInitialized) { + DevExpress.Ui.DxSliderBaseInterop.SetWidth(dxTarget, value); + } else { + this.width = value; + } + } + } + bool? onValueChangedEnabled; + [Parameter] + bool? OnValueChangedEnabled { + get => onValueChangedEnabled; + set => this.onValueChangedEnabled = value; + } + bool? onContentReadyEnabled; + [Parameter] + bool? OnContentReadyEnabled { + get => onContentReadyEnabled; + set => this.onContentReadyEnabled = value; + } + bool? onDisposingEnabled; + [Parameter] + bool? OnDisposingEnabled { + get => onDisposingEnabled; + set => this.onDisposingEnabled = value; + } + bool? onOptionChangedEnabled; + [Parameter] + bool? OnOptionChangedEnabled { + get => onOptionChangedEnabled; + set => this.onOptionChangedEnabled = value; + } + bool? onInitializedEnabled; + [Parameter] + bool? OnInitializedEnabled { + get => onInitializedEnabled; + set => this.onInitializedEnabled = value; + } protected override async Task OnInitAsync() { await base.OnInitAsync(); + DevExpress.Ui.DxSliderBaseInterop.ValueChanged += DxSliderBase_ValueChanged; + DevExpress.Ui.DxSliderBaseInterop.ContentReady += DxSliderBase_ContentReady; + DevExpress.Ui.DxSliderBaseInterop.Disposing += DxSliderBase_Disposing; + DevExpress.Ui.DxSliderBaseInterop.OptionChanged += DxSliderBase_OptionChanged; + DevExpress.Ui.DxSliderBaseInterop.Initialized += DxSliderBase_Initialized; + } + [Parameter] + Action ValueChanged { get; set; } + void DxSliderBase_ValueChanged(object sender, JQueryEventArgs e) { + if (e.Identifier == Id) { + ValueChanged?.Invoke(); + } + } + [Parameter] + Action ContentReady { get; set; } + void DxSliderBase_ContentReady(object sender, JQueryEventArgs e) { + if (e.Identifier == Id) { + ContentReady?.Invoke(); + } + } + [Parameter] + Action Disposing { get; set; } + void DxSliderBase_Disposing(object sender, JQueryEventArgs e) { + if (e.Identifier == Id) { + Disposing?.Invoke(); + } + } + [Parameter] + Action OptionChanged { get; set; } + void DxSliderBase_OptionChanged(object sender, JQueryEventArgs e) { + if (e.Identifier == Id) { + OptionChanged?.Invoke(); + } + } + [Parameter] + Action Initialized { get; set; } + void DxSliderBase_Initialized(object sender, JQueryEventArgs e) { + if (e.Identifier == Id) { + Initialized?.Invoke(); + } } public void Dispose() { + DevExpress.Ui.DxSliderBaseInterop.ValueChanged -= DxSliderBase_ValueChanged; + DevExpress.Ui.DxSliderBaseInterop.ContentReady -= DxSliderBase_ContentReady; + DevExpress.Ui.DxSliderBaseInterop.Disposing -= DxSliderBase_Disposing; + DevExpress.Ui.DxSliderBaseInterop.OptionChanged -= DxSliderBase_OptionChanged; + DevExpress.Ui.DxSliderBaseInterop.Initialized -= DxSliderBase_Initialized; } } diff --git a/sources/BlazorDevExtreme/Components/DxSparkline.cshtml b/sources/BlazorDevExtreme/Components/DxSparkline.cshtml index 0843383..7fd25e4 100644 --- a/sources/BlazorDevExtreme/Components/DxSparkline.cshtml +++ b/sources/BlazorDevExtreme/Components/DxSparkline.cshtml @@ -32,15 +32,39 @@ valueField = valueField, winColor = winColor, winlossThreshold = winlossThreshold, + tooltip = tooltip, + export = export, + loadingIndicator = loadingIndicator, + margin = margin, + pathModified = pathModified, + redrawOnResize = redrawOnResize, + rtlEnabled = rtlEnabled, + size = size, + theme = theme, + title = title, + bindingOptions = bindingOptions, + elementAttr = elementAttr, + height = height, + width = width, + onTooltipHiddenEnabled = onTooltipHiddenEnabled, + onTooltipShownEnabled = onTooltipShownEnabled, + onDrawnEnabled = onDrawnEnabled, + onExportedEnabled = onExportedEnabled, + onExportingEnabled = onExportingEnabled, + onFileSavingEnabled = onFileSavingEnabled, + onIncidentOccurredEnabled = onIncidentOccurredEnabled, + onDisposingEnabled = onDisposingEnabled, + onOptionChangedEnabled = onOptionChangedEnabled, + onInitializedEnabled = onInitializedEnabled, }; } protected override Task Init(DevExpress.Viz.Sparklines.DxSparklineOptions options) { -return DevExpress.Viz.DxSparklineInterop.Init(dxTarget, options); + return DevExpress.Viz.DxSparklineInterop.Init(dxTarget, options); } string argumentField; [Parameter] string ArgumentField { - get => isInitialized ? DevExpress.Viz.DxSparklineInterop.GetArgumentField(dxTarget).Result : argumentField; + get => isInitialized ? (string)DevExpress.Viz.DxSparklineInterop.GetArgumentField(dxTarget).Result : argumentField; set { if (isInitialized) { DevExpress.Viz.DxSparklineInterop.SetArgumentField(dxTarget, value); @@ -52,7 +76,7 @@ return DevExpress.Viz.DxSparklineInterop.Init(dxTarget, options); string barNegativeColor; [Parameter] string BarNegativeColor { - get => isInitialized ? DevExpress.Viz.DxSparklineInterop.GetBarNegativeColor(dxTarget).Result : barNegativeColor; + get => isInitialized ? (string)DevExpress.Viz.DxSparklineInterop.GetBarNegativeColor(dxTarget).Result : barNegativeColor; set { if (isInitialized) { DevExpress.Viz.DxSparklineInterop.SetBarNegativeColor(dxTarget, value); @@ -64,7 +88,7 @@ return DevExpress.Viz.DxSparklineInterop.Init(dxTarget, options); string barPositiveColor; [Parameter] string BarPositiveColor { - get => isInitialized ? DevExpress.Viz.DxSparklineInterop.GetBarPositiveColor(dxTarget).Result : barPositiveColor; + get => isInitialized ? (string)DevExpress.Viz.DxSparklineInterop.GetBarPositiveColor(dxTarget).Result : barPositiveColor; set { if (isInitialized) { DevExpress.Viz.DxSparklineInterop.SetBarPositiveColor(dxTarget, value); @@ -88,7 +112,7 @@ return DevExpress.Viz.DxSparklineInterop.Init(dxTarget, options); string firstLastColor; [Parameter] string FirstLastColor { - get => isInitialized ? DevExpress.Viz.DxSparklineInterop.GetFirstLastColor(dxTarget).Result : firstLastColor; + get => isInitialized ? (string)DevExpress.Viz.DxSparklineInterop.GetFirstLastColor(dxTarget).Result : firstLastColor; set { if (isInitialized) { DevExpress.Viz.DxSparklineInterop.SetFirstLastColor(dxTarget, value); @@ -100,7 +124,7 @@ return DevExpress.Viz.DxSparklineInterop.Init(dxTarget, options); bool? ignoreEmptyPoints; [Parameter] bool? IgnoreEmptyPoints { - get => isInitialized ? DevExpress.Viz.DxSparklineInterop.GetIgnoreEmptyPoints(dxTarget).Result : ignoreEmptyPoints; + get => isInitialized ? (bool?)DevExpress.Viz.DxSparklineInterop.GetIgnoreEmptyPoints(dxTarget).Result : ignoreEmptyPoints; set { if (isInitialized) { DevExpress.Viz.DxSparklineInterop.SetIgnoreEmptyPoints(dxTarget, value); @@ -112,7 +136,7 @@ return DevExpress.Viz.DxSparklineInterop.Init(dxTarget, options); string lineColor; [Parameter] string LineColor { - get => isInitialized ? DevExpress.Viz.DxSparklineInterop.GetLineColor(dxTarget).Result : lineColor; + get => isInitialized ? (string)DevExpress.Viz.DxSparklineInterop.GetLineColor(dxTarget).Result : lineColor; set { if (isInitialized) { DevExpress.Viz.DxSparklineInterop.SetLineColor(dxTarget, value); @@ -124,7 +148,7 @@ return DevExpress.Viz.DxSparklineInterop.Init(dxTarget, options); float? lineWidth; [Parameter] float? LineWidth { - get => isInitialized ? DevExpress.Viz.DxSparklineInterop.GetLineWidth(dxTarget).Result : lineWidth; + get => isInitialized ? (float?)DevExpress.Viz.DxSparklineInterop.GetLineWidth(dxTarget).Result : lineWidth; set { if (isInitialized) { DevExpress.Viz.DxSparklineInterop.SetLineWidth(dxTarget, value); @@ -136,7 +160,7 @@ return DevExpress.Viz.DxSparklineInterop.Init(dxTarget, options); string lossColor; [Parameter] string LossColor { - get => isInitialized ? DevExpress.Viz.DxSparklineInterop.GetLossColor(dxTarget).Result : lossColor; + get => isInitialized ? (string)DevExpress.Viz.DxSparklineInterop.GetLossColor(dxTarget).Result : lossColor; set { if (isInitialized) { DevExpress.Viz.DxSparklineInterop.SetLossColor(dxTarget, value); @@ -148,7 +172,7 @@ return DevExpress.Viz.DxSparklineInterop.Init(dxTarget, options); string maxColor; [Parameter] string MaxColor { - get => isInitialized ? DevExpress.Viz.DxSparklineInterop.GetMaxColor(dxTarget).Result : maxColor; + get => isInitialized ? (string)DevExpress.Viz.DxSparklineInterop.GetMaxColor(dxTarget).Result : maxColor; set { if (isInitialized) { DevExpress.Viz.DxSparklineInterop.SetMaxColor(dxTarget, value); @@ -160,7 +184,7 @@ return DevExpress.Viz.DxSparklineInterop.Init(dxTarget, options); float? maxValue; [Parameter] float? MaxValue { - get => isInitialized ? DevExpress.Viz.DxSparklineInterop.GetMaxValue(dxTarget).Result : maxValue; + get => isInitialized ? (float?)DevExpress.Viz.DxSparklineInterop.GetMaxValue(dxTarget).Result : maxValue; set { if (isInitialized) { DevExpress.Viz.DxSparklineInterop.SetMaxValue(dxTarget, value); @@ -172,7 +196,7 @@ return DevExpress.Viz.DxSparklineInterop.Init(dxTarget, options); string minColor; [Parameter] string MinColor { - get => isInitialized ? DevExpress.Viz.DxSparklineInterop.GetMinColor(dxTarget).Result : minColor; + get => isInitialized ? (string)DevExpress.Viz.DxSparklineInterop.GetMinColor(dxTarget).Result : minColor; set { if (isInitialized) { DevExpress.Viz.DxSparklineInterop.SetMinColor(dxTarget, value); @@ -184,7 +208,7 @@ return DevExpress.Viz.DxSparklineInterop.Init(dxTarget, options); float? minValue; [Parameter] float? MinValue { - get => isInitialized ? DevExpress.Viz.DxSparklineInterop.GetMinValue(dxTarget).Result : minValue; + get => isInitialized ? (float?)DevExpress.Viz.DxSparklineInterop.GetMinValue(dxTarget).Result : minValue; set { if (isInitialized) { DevExpress.Viz.DxSparklineInterop.SetMinValue(dxTarget, value); @@ -196,7 +220,7 @@ return DevExpress.Viz.DxSparklineInterop.Init(dxTarget, options); string pointColor; [Parameter] string PointColor { - get => isInitialized ? DevExpress.Viz.DxSparklineInterop.GetPointColor(dxTarget).Result : pointColor; + get => isInitialized ? (string)DevExpress.Viz.DxSparklineInterop.GetPointColor(dxTarget).Result : pointColor; set { if (isInitialized) { DevExpress.Viz.DxSparklineInterop.SetPointColor(dxTarget, value); @@ -208,7 +232,7 @@ return DevExpress.Viz.DxSparklineInterop.Init(dxTarget, options); float? pointSize; [Parameter] float? PointSize { - get => isInitialized ? DevExpress.Viz.DxSparklineInterop.GetPointSize(dxTarget).Result : pointSize; + get => isInitialized ? (float?)DevExpress.Viz.DxSparklineInterop.GetPointSize(dxTarget).Result : pointSize; set { if (isInitialized) { DevExpress.Viz.DxSparklineInterop.SetPointSize(dxTarget, value); @@ -220,7 +244,7 @@ return DevExpress.Viz.DxSparklineInterop.Init(dxTarget, options); string pointSymbol; [Parameter] string PointSymbol { - get => isInitialized ? DevExpress.Viz.DxSparklineInterop.GetPointSymbol(dxTarget).Result : pointSymbol; + get => isInitialized ? (string)DevExpress.Viz.DxSparklineInterop.GetPointSymbol(dxTarget).Result : pointSymbol; set { if (isInitialized) { DevExpress.Viz.DxSparklineInterop.SetPointSymbol(dxTarget, value); @@ -232,7 +256,7 @@ return DevExpress.Viz.DxSparklineInterop.Init(dxTarget, options); bool? showFirstLast; [Parameter] bool? ShowFirstLast { - get => isInitialized ? DevExpress.Viz.DxSparklineInterop.GetShowFirstLast(dxTarget).Result : showFirstLast; + get => isInitialized ? (bool?)DevExpress.Viz.DxSparklineInterop.GetShowFirstLast(dxTarget).Result : showFirstLast; set { if (isInitialized) { DevExpress.Viz.DxSparklineInterop.SetShowFirstLast(dxTarget, value); @@ -244,7 +268,7 @@ return DevExpress.Viz.DxSparklineInterop.Init(dxTarget, options); bool? showMinMax; [Parameter] bool? ShowMinMax { - get => isInitialized ? DevExpress.Viz.DxSparklineInterop.GetShowMinMax(dxTarget).Result : showMinMax; + get => isInitialized ? (bool?)DevExpress.Viz.DxSparklineInterop.GetShowMinMax(dxTarget).Result : showMinMax; set { if (isInitialized) { DevExpress.Viz.DxSparklineInterop.SetShowMinMax(dxTarget, value); @@ -256,7 +280,7 @@ return DevExpress.Viz.DxSparklineInterop.Init(dxTarget, options); string type; [Parameter] string Type { - get => isInitialized ? DevExpress.Viz.DxSparklineInterop.GetType(dxTarget).Result : type; + get => isInitialized ? (string)DevExpress.Viz.DxSparklineInterop.GetType(dxTarget).Result : type; set { if (isInitialized) { DevExpress.Viz.DxSparklineInterop.SetType(dxTarget, value); @@ -268,7 +292,7 @@ return DevExpress.Viz.DxSparklineInterop.Init(dxTarget, options); string valueField; [Parameter] string ValueField { - get => isInitialized ? DevExpress.Viz.DxSparklineInterop.GetValueField(dxTarget).Result : valueField; + get => isInitialized ? (string)DevExpress.Viz.DxSparklineInterop.GetValueField(dxTarget).Result : valueField; set { if (isInitialized) { DevExpress.Viz.DxSparklineInterop.SetValueField(dxTarget, value); @@ -280,7 +304,7 @@ return DevExpress.Viz.DxSparklineInterop.Init(dxTarget, options); string winColor; [Parameter] string WinColor { - get => isInitialized ? DevExpress.Viz.DxSparklineInterop.GetWinColor(dxTarget).Result : winColor; + get => isInitialized ? (string)DevExpress.Viz.DxSparklineInterop.GetWinColor(dxTarget).Result : winColor; set { if (isInitialized) { DevExpress.Viz.DxSparklineInterop.SetWinColor(dxTarget, value); @@ -292,7 +316,7 @@ return DevExpress.Viz.DxSparklineInterop.Init(dxTarget, options); float? winlossThreshold; [Parameter] float? WinlossThreshold { - get => isInitialized ? DevExpress.Viz.DxSparklineInterop.GetWinlossThreshold(dxTarget).Result : winlossThreshold; + get => isInitialized ? (float?)DevExpress.Viz.DxSparklineInterop.GetWinlossThreshold(dxTarget).Result : winlossThreshold; set { if (isInitialized) { DevExpress.Viz.DxSparklineInterop.SetWinlossThreshold(dxTarget, value); @@ -301,12 +325,330 @@ return DevExpress.Viz.DxSparklineInterop.Init(dxTarget, options); } } } + object tooltip; + [Parameter] + object Tooltip { + get => isInitialized ? DevExpress.Viz.DxSparklineInterop.GetTooltip(dxTarget).Result : tooltip; + set { + if (isInitialized) { + DevExpress.Viz.DxSparklineInterop.SetTooltip(dxTarget, value); + } else { + this.tooltip = value; + } + } + } + object export; + [Parameter] + object Export { + get => isInitialized ? DevExpress.Viz.DxSparklineInterop.GetExport(dxTarget).Result : export; + set { + if (isInitialized) { + DevExpress.Viz.DxSparklineInterop.SetExport(dxTarget, value); + } else { + this.export = value; + } + } + } + object loadingIndicator; + [Parameter] + object LoadingIndicator { + get => isInitialized ? DevExpress.Viz.DxSparklineInterop.GetLoadingIndicator(dxTarget).Result : loadingIndicator; + set { + if (isInitialized) { + DevExpress.Viz.DxSparklineInterop.SetLoadingIndicator(dxTarget, value); + } else { + this.loadingIndicator = value; + } + } + } + object margin; + [Parameter] + object Margin { + get => isInitialized ? DevExpress.Viz.DxSparklineInterop.GetMargin(dxTarget).Result : margin; + set { + if (isInitialized) { + DevExpress.Viz.DxSparklineInterop.SetMargin(dxTarget, value); + } else { + this.margin = value; + } + } + } + bool? pathModified; + [Parameter] + bool? PathModified { + get => isInitialized ? (bool?)DevExpress.Viz.DxSparklineInterop.GetPathModified(dxTarget).Result : pathModified; + set { + if (isInitialized) { + DevExpress.Viz.DxSparklineInterop.SetPathModified(dxTarget, value); + } else { + this.pathModified = value; + } + } + } + bool? redrawOnResize; + [Parameter] + bool? RedrawOnResize { + get => isInitialized ? (bool?)DevExpress.Viz.DxSparklineInterop.GetRedrawOnResize(dxTarget).Result : redrawOnResize; + set { + if (isInitialized) { + DevExpress.Viz.DxSparklineInterop.SetRedrawOnResize(dxTarget, value); + } else { + this.redrawOnResize = value; + } + } + } + bool? rtlEnabled; + [Parameter] + bool? RtlEnabled { + get => isInitialized ? (bool?)DevExpress.Viz.DxSparklineInterop.GetRtlEnabled(dxTarget).Result : rtlEnabled; + set { + if (isInitialized) { + DevExpress.Viz.DxSparklineInterop.SetRtlEnabled(dxTarget, value); + } else { + this.rtlEnabled = value; + } + } + } + object size; + [Parameter] + object Size { + get => isInitialized ? DevExpress.Viz.DxSparklineInterop.GetSize(dxTarget).Result : size; + set { + if (isInitialized) { + DevExpress.Viz.DxSparklineInterop.SetSize(dxTarget, value); + } else { + this.size = value; + } + } + } + string theme; + [Parameter] + string Theme { + get => isInitialized ? (string)DevExpress.Viz.DxSparklineInterop.GetTheme(dxTarget).Result : theme; + set { + if (isInitialized) { + DevExpress.Viz.DxSparklineInterop.SetTheme(dxTarget, value); + } else { + this.theme = value; + } + } + } + object title; + [Parameter] + object Title { + get => isInitialized ? DevExpress.Viz.DxSparklineInterop.GetTitle(dxTarget).Result : title; + set { + if (isInitialized) { + DevExpress.Viz.DxSparklineInterop.SetTitle(dxTarget, value); + } else { + this.title = value; + } + } + } + object bindingOptions; + [Parameter] + object BindingOptions { + get => isInitialized ? DevExpress.Viz.DxSparklineInterop.GetBindingOptions(dxTarget).Result : bindingOptions; + set { + if (isInitialized) { + DevExpress.Viz.DxSparklineInterop.SetBindingOptions(dxTarget, value); + } else { + this.bindingOptions = value; + } + } + } + object elementAttr; + [Parameter] + object ElementAttr { + get => isInitialized ? DevExpress.Viz.DxSparklineInterop.GetElementAttr(dxTarget).Result : elementAttr; + set { + if (isInitialized) { + DevExpress.Viz.DxSparklineInterop.SetElementAttr(dxTarget, value); + } else { + this.elementAttr = value; + } + } + } + object height; + [Parameter] + object Height { + get => isInitialized ? DevExpress.Viz.DxSparklineInterop.GetHeight(dxTarget).Result : height; + set { + if (isInitialized) { + DevExpress.Viz.DxSparklineInterop.SetHeight(dxTarget, value); + } else { + this.height = value; + } + } + } + object width; + [Parameter] + object Width { + get => isInitialized ? DevExpress.Viz.DxSparklineInterop.GetWidth(dxTarget).Result : width; + set { + if (isInitialized) { + DevExpress.Viz.DxSparklineInterop.SetWidth(dxTarget, value); + } else { + this.width = value; + } + } + } + bool? onTooltipHiddenEnabled; + [Parameter] + bool? OnTooltipHiddenEnabled { + get => onTooltipHiddenEnabled; + set => this.onTooltipHiddenEnabled = value; + } + bool? onTooltipShownEnabled; + [Parameter] + bool? OnTooltipShownEnabled { + get => onTooltipShownEnabled; + set => this.onTooltipShownEnabled = value; + } + bool? onDrawnEnabled; + [Parameter] + bool? OnDrawnEnabled { + get => onDrawnEnabled; + set => this.onDrawnEnabled = value; + } + bool? onExportedEnabled; + [Parameter] + bool? OnExportedEnabled { + get => onExportedEnabled; + set => this.onExportedEnabled = value; + } + bool? onExportingEnabled; + [Parameter] + bool? OnExportingEnabled { + get => onExportingEnabled; + set => this.onExportingEnabled = value; + } + bool? onFileSavingEnabled; + [Parameter] + bool? OnFileSavingEnabled { + get => onFileSavingEnabled; + set => this.onFileSavingEnabled = value; + } + bool? onIncidentOccurredEnabled; + [Parameter] + bool? OnIncidentOccurredEnabled { + get => onIncidentOccurredEnabled; + set => this.onIncidentOccurredEnabled = value; + } + bool? onDisposingEnabled; + [Parameter] + bool? OnDisposingEnabled { + get => onDisposingEnabled; + set => this.onDisposingEnabled = value; + } + bool? onOptionChangedEnabled; + [Parameter] + bool? OnOptionChangedEnabled { + get => onOptionChangedEnabled; + set => this.onOptionChangedEnabled = value; + } + bool? onInitializedEnabled; + [Parameter] + bool? OnInitializedEnabled { + get => onInitializedEnabled; + set => this.onInitializedEnabled = value; + } protected override async Task OnInitAsync() { await base.OnInitAsync(); + DevExpress.Viz.DxSparklineInterop.TooltipHidden += DxSparkline_TooltipHidden; + DevExpress.Viz.DxSparklineInterop.TooltipShown += DxSparkline_TooltipShown; + DevExpress.Viz.DxSparklineInterop.Drawn += DxSparkline_Drawn; + DevExpress.Viz.DxSparklineInterop.Exported += DxSparkline_Exported; + DevExpress.Viz.DxSparklineInterop.Exporting += DxSparkline_Exporting; + DevExpress.Viz.DxSparklineInterop.FileSaving += DxSparkline_FileSaving; + DevExpress.Viz.DxSparklineInterop.IncidentOccurred += DxSparkline_IncidentOccurred; + DevExpress.Viz.DxSparklineInterop.Disposing += DxSparkline_Disposing; + DevExpress.Viz.DxSparklineInterop.OptionChanged += DxSparkline_OptionChanged; + DevExpress.Viz.DxSparklineInterop.Initialized += DxSparkline_Initialized; + } + [Parameter] + Action TooltipHidden { get; set; } + void DxSparkline_TooltipHidden(object sender, JQueryEventArgs e) { + if (e.Identifier == Id) { + TooltipHidden?.Invoke(); + } + } + [Parameter] + Action TooltipShown { get; set; } + void DxSparkline_TooltipShown(object sender, JQueryEventArgs e) { + if (e.Identifier == Id) { + TooltipShown?.Invoke(); + } + } + [Parameter] + Action Drawn { get; set; } + void DxSparkline_Drawn(object sender, JQueryEventArgs e) { + if (e.Identifier == Id) { + Drawn?.Invoke(); + } + } + [Parameter] + Action Exported { get; set; } + void DxSparkline_Exported(object sender, JQueryEventArgs e) { + if (e.Identifier == Id) { + Exported?.Invoke(); + } + } + [Parameter] + Action Exporting { get; set; } + void DxSparkline_Exporting(object sender, JQueryEventArgs e) { + if (e.Identifier == Id) { + Exporting?.Invoke(); + } + } + [Parameter] + Action FileSaving { get; set; } + void DxSparkline_FileSaving(object sender, JQueryEventArgs e) { + if (e.Identifier == Id) { + FileSaving?.Invoke(); + } + } + [Parameter] + Action IncidentOccurred { get; set; } + void DxSparkline_IncidentOccurred(object sender, JQueryEventArgs e) { + if (e.Identifier == Id) { + IncidentOccurred?.Invoke(); + } + } + [Parameter] + Action Disposing { get; set; } + void DxSparkline_Disposing(object sender, JQueryEventArgs e) { + if (e.Identifier == Id) { + Disposing?.Invoke(); + } + } + [Parameter] + Action OptionChanged { get; set; } + void DxSparkline_OptionChanged(object sender, JQueryEventArgs e) { + if (e.Identifier == Id) { + OptionChanged?.Invoke(); + } + } + [Parameter] + Action Initialized { get; set; } + void DxSparkline_Initialized(object sender, JQueryEventArgs e) { + if (e.Identifier == Id) { + Initialized?.Invoke(); + } } public object GetDataSourceEx() { return DevExpress.Viz.DxSparklineInterop.GetDataSourceEx(dxTarget).Result; } public void Dispose() { + DevExpress.Viz.DxSparklineInterop.TooltipHidden -= DxSparkline_TooltipHidden; + DevExpress.Viz.DxSparklineInterop.TooltipShown -= DxSparkline_TooltipShown; + DevExpress.Viz.DxSparklineInterop.Drawn -= DxSparkline_Drawn; + DevExpress.Viz.DxSparklineInterop.Exported -= DxSparkline_Exported; + DevExpress.Viz.DxSparklineInterop.Exporting -= DxSparkline_Exporting; + DevExpress.Viz.DxSparklineInterop.FileSaving -= DxSparkline_FileSaving; + DevExpress.Viz.DxSparklineInterop.IncidentOccurred -= DxSparkline_IncidentOccurred; + DevExpress.Viz.DxSparklineInterop.Disposing -= DxSparkline_Disposing; + DevExpress.Viz.DxSparklineInterop.OptionChanged -= DxSparkline_OptionChanged; + DevExpress.Viz.DxSparklineInterop.Initialized -= DxSparkline_Initialized; } } diff --git a/sources/BlazorDevExtreme/Components/DxSwitch.cshtml b/sources/BlazorDevExtreme/Components/DxSwitch.cshtml index 18092a6..95f27ac 100644 --- a/sources/BlazorDevExtreme/Components/DxSwitch.cshtml +++ b/sources/BlazorDevExtreme/Components/DxSwitch.cshtml @@ -17,15 +17,34 @@ offText = offText, onText = onText, value = value, + isValid = isValid, + readOnly = readOnly, + validationError = validationError, + validationMessageMode = validationMessageMode, + accessKey = accessKey, + disabled = disabled, + hint = hint, + tabIndex = tabIndex, + visible = visible, + bindingOptions = bindingOptions, + elementAttr = elementAttr, + height = height, + rtlEnabled = rtlEnabled, + width = width, + onValueChangedEnabled = onValueChangedEnabled, + onContentReadyEnabled = onContentReadyEnabled, + onDisposingEnabled = onDisposingEnabled, + onOptionChangedEnabled = onOptionChangedEnabled, + onInitializedEnabled = onInitializedEnabled, }; } protected override Task Init(DevExpress.Ui.DxSwitchOptions options) { -return DevExpress.Ui.DxSwitchInterop.Init(dxTarget, options); + return DevExpress.Ui.DxSwitchInterop.Init(dxTarget, options); } bool? activeStateEnabled; [Parameter] bool? ActiveStateEnabled { - get => isInitialized ? DevExpress.Ui.DxSwitchInterop.GetActiveStateEnabled(dxTarget).Result : activeStateEnabled; + get => isInitialized ? (bool?)DevExpress.Ui.DxSwitchInterop.GetActiveStateEnabled(dxTarget).Result : activeStateEnabled; set { if (isInitialized) { DevExpress.Ui.DxSwitchInterop.SetActiveStateEnabled(dxTarget, value); @@ -37,7 +56,7 @@ return DevExpress.Ui.DxSwitchInterop.Init(dxTarget, options); bool? focusStateEnabled; [Parameter] bool? FocusStateEnabled { - get => isInitialized ? DevExpress.Ui.DxSwitchInterop.GetFocusStateEnabled(dxTarget).Result : focusStateEnabled; + get => isInitialized ? (bool?)DevExpress.Ui.DxSwitchInterop.GetFocusStateEnabled(dxTarget).Result : focusStateEnabled; set { if (isInitialized) { DevExpress.Ui.DxSwitchInterop.SetFocusStateEnabled(dxTarget, value); @@ -49,7 +68,7 @@ return DevExpress.Ui.DxSwitchInterop.Init(dxTarget, options); bool? hoverStateEnabled; [Parameter] bool? HoverStateEnabled { - get => isInitialized ? DevExpress.Ui.DxSwitchInterop.GetHoverStateEnabled(dxTarget).Result : hoverStateEnabled; + get => isInitialized ? (bool?)DevExpress.Ui.DxSwitchInterop.GetHoverStateEnabled(dxTarget).Result : hoverStateEnabled; set { if (isInitialized) { DevExpress.Ui.DxSwitchInterop.SetHoverStateEnabled(dxTarget, value); @@ -61,7 +80,7 @@ return DevExpress.Ui.DxSwitchInterop.Init(dxTarget, options); string name; [Parameter] string Name { - get => isInitialized ? DevExpress.Ui.DxSwitchInterop.GetName(dxTarget).Result : name; + get => isInitialized ? (string)DevExpress.Ui.DxSwitchInterop.GetName(dxTarget).Result : name; set { if (isInitialized) { DevExpress.Ui.DxSwitchInterop.SetName(dxTarget, value); @@ -73,7 +92,7 @@ return DevExpress.Ui.DxSwitchInterop.Init(dxTarget, options); string offText; [Parameter] string OffText { - get => isInitialized ? DevExpress.Ui.DxSwitchInterop.GetOffText(dxTarget).Result : offText; + get => isInitialized ? (string)DevExpress.Ui.DxSwitchInterop.GetOffText(dxTarget).Result : offText; set { if (isInitialized) { DevExpress.Ui.DxSwitchInterop.SetOffText(dxTarget, value); @@ -85,7 +104,7 @@ return DevExpress.Ui.DxSwitchInterop.Init(dxTarget, options); string onText; [Parameter] string OnText { - get => isInitialized ? DevExpress.Ui.DxSwitchInterop.GetOnText(dxTarget).Result : onText; + get => isInitialized ? (string)DevExpress.Ui.DxSwitchInterop.GetOnText(dxTarget).Result : onText; set { if (isInitialized) { DevExpress.Ui.DxSwitchInterop.SetOnText(dxTarget, value); @@ -97,7 +116,7 @@ return DevExpress.Ui.DxSwitchInterop.Init(dxTarget, options); bool? value; [Parameter] bool? Value { - get => isInitialized ? DevExpress.Ui.DxSwitchInterop.GetValue(dxTarget).Result : value; + get => isInitialized ? (bool?)DevExpress.Ui.DxSwitchInterop.GetValue(dxTarget).Result : value; set { if (isInitialized) { DevExpress.Ui.DxSwitchInterop.SetValue(dxTarget, value); @@ -106,9 +125,252 @@ return DevExpress.Ui.DxSwitchInterop.Init(dxTarget, options); } } } + bool? isValid; + [Parameter] + bool? IsValid { + get => isInitialized ? (bool?)DevExpress.Ui.DxSwitchInterop.GetIsValid(dxTarget).Result : isValid; + set { + if (isInitialized) { + DevExpress.Ui.DxSwitchInterop.SetIsValid(dxTarget, value); + } else { + this.isValid = value; + } + } + } + bool? readOnly; + [Parameter] + bool? ReadOnly { + get => isInitialized ? (bool?)DevExpress.Ui.DxSwitchInterop.GetReadOnly(dxTarget).Result : readOnly; + set { + if (isInitialized) { + DevExpress.Ui.DxSwitchInterop.SetReadOnly(dxTarget, value); + } else { + this.readOnly = value; + } + } + } + object validationError; + [Parameter] + object ValidationError { + get => isInitialized ? DevExpress.Ui.DxSwitchInterop.GetValidationError(dxTarget).Result : validationError; + set { + if (isInitialized) { + DevExpress.Ui.DxSwitchInterop.SetValidationError(dxTarget, value); + } else { + this.validationError = value; + } + } + } + string validationMessageMode; + [Parameter] + string ValidationMessageMode { + get => isInitialized ? (string)DevExpress.Ui.DxSwitchInterop.GetValidationMessageMode(dxTarget).Result : validationMessageMode; + set { + if (isInitialized) { + DevExpress.Ui.DxSwitchInterop.SetValidationMessageMode(dxTarget, value); + } else { + this.validationMessageMode = value; + } + } + } + string accessKey; + [Parameter] + string AccessKey { + get => isInitialized ? (string)DevExpress.Ui.DxSwitchInterop.GetAccessKey(dxTarget).Result : accessKey; + set { + if (isInitialized) { + DevExpress.Ui.DxSwitchInterop.SetAccessKey(dxTarget, value); + } else { + this.accessKey = value; + } + } + } + bool? disabled; + [Parameter] + bool? Disabled { + get => isInitialized ? (bool?)DevExpress.Ui.DxSwitchInterop.GetDisabled(dxTarget).Result : disabled; + set { + if (isInitialized) { + DevExpress.Ui.DxSwitchInterop.SetDisabled(dxTarget, value); + } else { + this.disabled = value; + } + } + } + string hint; + [Parameter] + string Hint { + get => isInitialized ? (string)DevExpress.Ui.DxSwitchInterop.GetHint(dxTarget).Result : hint; + set { + if (isInitialized) { + DevExpress.Ui.DxSwitchInterop.SetHint(dxTarget, value); + } else { + this.hint = value; + } + } + } + float? tabIndex; + [Parameter] + float? TabIndex { + get => isInitialized ? (float?)DevExpress.Ui.DxSwitchInterop.GetTabIndex(dxTarget).Result : tabIndex; + set { + if (isInitialized) { + DevExpress.Ui.DxSwitchInterop.SetTabIndex(dxTarget, value); + } else { + this.tabIndex = value; + } + } + } + bool? visible; + [Parameter] + bool? Visible { + get => isInitialized ? (bool?)DevExpress.Ui.DxSwitchInterop.GetVisible(dxTarget).Result : visible; + set { + if (isInitialized) { + DevExpress.Ui.DxSwitchInterop.SetVisible(dxTarget, value); + } else { + this.visible = value; + } + } + } + object bindingOptions; + [Parameter] + object BindingOptions { + get => isInitialized ? DevExpress.Ui.DxSwitchInterop.GetBindingOptions(dxTarget).Result : bindingOptions; + set { + if (isInitialized) { + DevExpress.Ui.DxSwitchInterop.SetBindingOptions(dxTarget, value); + } else { + this.bindingOptions = value; + } + } + } + object elementAttr; + [Parameter] + object ElementAttr { + get => isInitialized ? DevExpress.Ui.DxSwitchInterop.GetElementAttr(dxTarget).Result : elementAttr; + set { + if (isInitialized) { + DevExpress.Ui.DxSwitchInterop.SetElementAttr(dxTarget, value); + } else { + this.elementAttr = value; + } + } + } + object height; + [Parameter] + object Height { + get => isInitialized ? DevExpress.Ui.DxSwitchInterop.GetHeight(dxTarget).Result : height; + set { + if (isInitialized) { + DevExpress.Ui.DxSwitchInterop.SetHeight(dxTarget, value); + } else { + this.height = value; + } + } + } + bool? rtlEnabled; + [Parameter] + bool? RtlEnabled { + get => isInitialized ? (bool?)DevExpress.Ui.DxSwitchInterop.GetRtlEnabled(dxTarget).Result : rtlEnabled; + set { + if (isInitialized) { + DevExpress.Ui.DxSwitchInterop.SetRtlEnabled(dxTarget, value); + } else { + this.rtlEnabled = value; + } + } + } + object width; + [Parameter] + object Width { + get => isInitialized ? DevExpress.Ui.DxSwitchInterop.GetWidth(dxTarget).Result : width; + set { + if (isInitialized) { + DevExpress.Ui.DxSwitchInterop.SetWidth(dxTarget, value); + } else { + this.width = value; + } + } + } + bool? onValueChangedEnabled; + [Parameter] + bool? OnValueChangedEnabled { + get => onValueChangedEnabled; + set => this.onValueChangedEnabled = value; + } + bool? onContentReadyEnabled; + [Parameter] + bool? OnContentReadyEnabled { + get => onContentReadyEnabled; + set => this.onContentReadyEnabled = value; + } + bool? onDisposingEnabled; + [Parameter] + bool? OnDisposingEnabled { + get => onDisposingEnabled; + set => this.onDisposingEnabled = value; + } + bool? onOptionChangedEnabled; + [Parameter] + bool? OnOptionChangedEnabled { + get => onOptionChangedEnabled; + set => this.onOptionChangedEnabled = value; + } + bool? onInitializedEnabled; + [Parameter] + bool? OnInitializedEnabled { + get => onInitializedEnabled; + set => this.onInitializedEnabled = value; + } protected override async Task OnInitAsync() { await base.OnInitAsync(); + DevExpress.Ui.DxSwitchInterop.ValueChanged += DxSwitch_ValueChanged; + DevExpress.Ui.DxSwitchInterop.ContentReady += DxSwitch_ContentReady; + DevExpress.Ui.DxSwitchInterop.Disposing += DxSwitch_Disposing; + DevExpress.Ui.DxSwitchInterop.OptionChanged += DxSwitch_OptionChanged; + DevExpress.Ui.DxSwitchInterop.Initialized += DxSwitch_Initialized; + } + [Parameter] + Action ValueChanged { get; set; } + void DxSwitch_ValueChanged(object sender, JQueryEventArgs e) { + if (e.Identifier == Id) { + ValueChanged?.Invoke(); + } + } + [Parameter] + Action ContentReady { get; set; } + void DxSwitch_ContentReady(object sender, JQueryEventArgs e) { + if (e.Identifier == Id) { + ContentReady?.Invoke(); + } + } + [Parameter] + Action Disposing { get; set; } + void DxSwitch_Disposing(object sender, JQueryEventArgs e) { + if (e.Identifier == Id) { + Disposing?.Invoke(); + } + } + [Parameter] + Action OptionChanged { get; set; } + void DxSwitch_OptionChanged(object sender, JQueryEventArgs e) { + if (e.Identifier == Id) { + OptionChanged?.Invoke(); + } + } + [Parameter] + Action Initialized { get; set; } + void DxSwitch_Initialized(object sender, JQueryEventArgs e) { + if (e.Identifier == Id) { + Initialized?.Invoke(); + } } public void Dispose() { + DevExpress.Ui.DxSwitchInterop.ValueChanged -= DxSwitch_ValueChanged; + DevExpress.Ui.DxSwitchInterop.ContentReady -= DxSwitch_ContentReady; + DevExpress.Ui.DxSwitchInterop.Disposing -= DxSwitch_Disposing; + DevExpress.Ui.DxSwitchInterop.OptionChanged -= DxSwitch_OptionChanged; + DevExpress.Ui.DxSwitchInterop.Initialized -= DxSwitch_Initialized; } } diff --git a/sources/BlazorDevExtreme/Components/DxTabPanel.cshtml b/sources/BlazorDevExtreme/Components/DxTabPanel.cshtml index e1f8a3a..faefb50 100644 --- a/sources/BlazorDevExtreme/Components/DxTabPanel.cshtml +++ b/sources/BlazorDevExtreme/Components/DxTabPanel.cshtml @@ -18,18 +18,50 @@ scrollingEnabled = scrollingEnabled, showNavButtons = showNavButtons, swipeEnabled = swipeEnabled, + deferRendering = deferRendering, + loop = loop, + selectedIndex = selectedIndex, + dataSource = dataSource, + itemHoldTimeout = itemHoldTimeout, + items = items, + itemTemplate = itemTemplate, + keyExpr = keyExpr, + noDataText = noDataText, + selectedItem = selectedItem, + selectedItemKeys = selectedItemKeys, + selectedItems = selectedItems, + accessKey = accessKey, + activeStateEnabled = activeStateEnabled, + disabled = disabled, + hint = hint, + tabIndex = tabIndex, + visible = visible, + bindingOptions = bindingOptions, + elementAttr = elementAttr, + height = height, + rtlEnabled = rtlEnabled, + width = width, onTitleClickEnabled = onTitleClickEnabled, onTitleHoldEnabled = onTitleHoldEnabled, onTitleRenderedEnabled = onTitleRenderedEnabled, + onItemClickEnabled = onItemClickEnabled, + onItemContextMenuEnabled = onItemContextMenuEnabled, + onItemHoldEnabled = onItemHoldEnabled, + onItemRenderedEnabled = onItemRenderedEnabled, + onSelectionChangedEnabled = onSelectionChangedEnabled, + onContentReadyEnabled = onContentReadyEnabled, + onDisposingEnabled = onDisposingEnabled, + onOptionChangedEnabled = onOptionChangedEnabled, + onInitializedEnabled = onInitializedEnabled, }; } protected override Task Init(DevExpress.Ui.DxTabPanelOptions options) { -return DevExpress.Ui.DxTabPanelInterop.Init(dxTarget, options); + return DevExpress.Ui.DxTabPanelInterop.Init(dxTarget, options); } bool? animationEnabled; [Parameter] bool? AnimationEnabled { - get => isInitialized ? DevExpress.Ui.DxTabPanelInterop.GetAnimationEnabled(dxTarget).Result : animationEnabled; + get => isInitialized ? (bool?)DevExpress.Ui.DxTabPanelInterop.GetAnimationEnabled(dxTarget).Result : animationEnabled; set { if (isInitialized) { DevExpress.Ui.DxTabPanelInterop.SetAnimationEnabled(dxTarget, value); @@ -41,7 +73,7 @@ return DevExpress.Ui.DxTabPanelInterop.Init(dxTarget, options); bool? focusStateEnabled; [Parameter] bool? FocusStateEnabled { - get => isInitialized ? DevExpress.Ui.DxTabPanelInterop.GetFocusStateEnabled(dxTarget).Result : focusStateEnabled; + get => isInitialized ? (bool?)DevExpress.Ui.DxTabPanelInterop.GetFocusStateEnabled(dxTarget).Result : focusStateEnabled; set { if (isInitialized) { DevExpress.Ui.DxTabPanelInterop.SetFocusStateEnabled(dxTarget, value); @@ -53,7 +85,7 @@ return DevExpress.Ui.DxTabPanelInterop.Init(dxTarget, options); bool? hoverStateEnabled; [Parameter] bool? HoverStateEnabled { - get => isInitialized ? DevExpress.Ui.DxTabPanelInterop.GetHoverStateEnabled(dxTarget).Result : hoverStateEnabled; + get => isInitialized ? (bool?)DevExpress.Ui.DxTabPanelInterop.GetHoverStateEnabled(dxTarget).Result : hoverStateEnabled; set { if (isInitialized) { DevExpress.Ui.DxTabPanelInterop.SetHoverStateEnabled(dxTarget, value); @@ -77,7 +109,7 @@ return DevExpress.Ui.DxTabPanelInterop.Init(dxTarget, options); bool? scrollByContent; [Parameter] bool? ScrollByContent { - get => isInitialized ? DevExpress.Ui.DxTabPanelInterop.GetScrollByContent(dxTarget).Result : scrollByContent; + get => isInitialized ? (bool?)DevExpress.Ui.DxTabPanelInterop.GetScrollByContent(dxTarget).Result : scrollByContent; set { if (isInitialized) { DevExpress.Ui.DxTabPanelInterop.SetScrollByContent(dxTarget, value); @@ -89,7 +121,7 @@ return DevExpress.Ui.DxTabPanelInterop.Init(dxTarget, options); bool? scrollingEnabled; [Parameter] bool? ScrollingEnabled { - get => isInitialized ? DevExpress.Ui.DxTabPanelInterop.GetScrollingEnabled(dxTarget).Result : scrollingEnabled; + get => isInitialized ? (bool?)DevExpress.Ui.DxTabPanelInterop.GetScrollingEnabled(dxTarget).Result : scrollingEnabled; set { if (isInitialized) { DevExpress.Ui.DxTabPanelInterop.SetScrollingEnabled(dxTarget, value); @@ -101,7 +133,7 @@ return DevExpress.Ui.DxTabPanelInterop.Init(dxTarget, options); bool? showNavButtons; [Parameter] bool? ShowNavButtons { - get => isInitialized ? DevExpress.Ui.DxTabPanelInterop.GetShowNavButtons(dxTarget).Result : showNavButtons; + get => isInitialized ? (bool?)DevExpress.Ui.DxTabPanelInterop.GetShowNavButtons(dxTarget).Result : showNavButtons; set { if (isInitialized) { DevExpress.Ui.DxTabPanelInterop.SetShowNavButtons(dxTarget, value); @@ -113,7 +145,7 @@ return DevExpress.Ui.DxTabPanelInterop.Init(dxTarget, options); bool? swipeEnabled; [Parameter] bool? SwipeEnabled { - get => isInitialized ? DevExpress.Ui.DxTabPanelInterop.GetSwipeEnabled(dxTarget).Result : swipeEnabled; + get => isInitialized ? (bool?)DevExpress.Ui.DxTabPanelInterop.GetSwipeEnabled(dxTarget).Result : swipeEnabled; set { if (isInitialized) { DevExpress.Ui.DxTabPanelInterop.SetSwipeEnabled(dxTarget, value); @@ -122,6 +154,282 @@ return DevExpress.Ui.DxTabPanelInterop.Init(dxTarget, options); } } } + bool? deferRendering; + [Parameter] + bool? DeferRendering { + get => isInitialized ? (bool?)DevExpress.Ui.DxTabPanelInterop.GetDeferRendering(dxTarget).Result : deferRendering; + set { + if (isInitialized) { + DevExpress.Ui.DxTabPanelInterop.SetDeferRendering(dxTarget, value); + } else { + this.deferRendering = value; + } + } + } + bool? loop; + [Parameter] + bool? Loop { + get => isInitialized ? (bool?)DevExpress.Ui.DxTabPanelInterop.GetLoop(dxTarget).Result : loop; + set { + if (isInitialized) { + DevExpress.Ui.DxTabPanelInterop.SetLoop(dxTarget, value); + } else { + this.loop = value; + } + } + } + float? selectedIndex; + [Parameter] + float? SelectedIndex { + get => isInitialized ? (float?)DevExpress.Ui.DxTabPanelInterop.GetSelectedIndex(dxTarget).Result : selectedIndex; + set { + if (isInitialized) { + DevExpress.Ui.DxTabPanelInterop.SetSelectedIndex(dxTarget, value); + } else { + this.selectedIndex = value; + } + } + } + object dataSource; + [Parameter] + object DataSource { + get => isInitialized ? DevExpress.Ui.DxTabPanelInterop.GetDataSource(dxTarget).Result : dataSource; + set { + if (isInitialized) { + DevExpress.Ui.DxTabPanelInterop.SetDataSource(dxTarget, value); + } else { + this.dataSource = value; + } + } + } + float? itemHoldTimeout; + [Parameter] + float? ItemHoldTimeout { + get => isInitialized ? (float?)DevExpress.Ui.DxTabPanelInterop.GetItemHoldTimeout(dxTarget).Result : itemHoldTimeout; + set { + if (isInitialized) { + DevExpress.Ui.DxTabPanelInterop.SetItemHoldTimeout(dxTarget, value); + } else { + this.itemHoldTimeout = value; + } + } + } + object items; + [Parameter] + object Items { + get => isInitialized ? DevExpress.Ui.DxTabPanelInterop.GetItems(dxTarget).Result : items; + set { + if (isInitialized) { + DevExpress.Ui.DxTabPanelInterop.SetItems(dxTarget, value); + } else { + this.items = value; + } + } + } + object itemTemplate; + [Parameter] + object ItemTemplate { + get => isInitialized ? DevExpress.Ui.DxTabPanelInterop.GetItemTemplate(dxTarget).Result : itemTemplate; + set { + if (isInitialized) { + DevExpress.Ui.DxTabPanelInterop.SetItemTemplate(dxTarget, value); + } else { + this.itemTemplate = value; + } + } + } + object keyExpr; + [Parameter] + object KeyExpr { + get => isInitialized ? DevExpress.Ui.DxTabPanelInterop.GetKeyExpr(dxTarget).Result : keyExpr; + set { + if (isInitialized) { + DevExpress.Ui.DxTabPanelInterop.SetKeyExpr(dxTarget, value); + } else { + this.keyExpr = value; + } + } + } + string noDataText; + [Parameter] + string NoDataText { + get => isInitialized ? (string)DevExpress.Ui.DxTabPanelInterop.GetNoDataText(dxTarget).Result : noDataText; + set { + if (isInitialized) { + DevExpress.Ui.DxTabPanelInterop.SetNoDataText(dxTarget, value); + } else { + this.noDataText = value; + } + } + } + object selectedItem; + [Parameter] + object SelectedItem { + get => isInitialized ? DevExpress.Ui.DxTabPanelInterop.GetSelectedItem(dxTarget).Result : selectedItem; + set { + if (isInitialized) { + DevExpress.Ui.DxTabPanelInterop.SetSelectedItem(dxTarget, value); + } else { + this.selectedItem = value; + } + } + } + object selectedItemKeys; + [Parameter] + object SelectedItemKeys { + get => isInitialized ? DevExpress.Ui.DxTabPanelInterop.GetSelectedItemKeys(dxTarget).Result : selectedItemKeys; + set { + if (isInitialized) { + DevExpress.Ui.DxTabPanelInterop.SetSelectedItemKeys(dxTarget, value); + } else { + this.selectedItemKeys = value; + } + } + } + object selectedItems; + [Parameter] + object SelectedItems { + get => isInitialized ? DevExpress.Ui.DxTabPanelInterop.GetSelectedItems(dxTarget).Result : selectedItems; + set { + if (isInitialized) { + DevExpress.Ui.DxTabPanelInterop.SetSelectedItems(dxTarget, value); + } else { + this.selectedItems = value; + } + } + } + string accessKey; + [Parameter] + string AccessKey { + get => isInitialized ? (string)DevExpress.Ui.DxTabPanelInterop.GetAccessKey(dxTarget).Result : accessKey; + set { + if (isInitialized) { + DevExpress.Ui.DxTabPanelInterop.SetAccessKey(dxTarget, value); + } else { + this.accessKey = value; + } + } + } + bool? activeStateEnabled; + [Parameter] + bool? ActiveStateEnabled { + get => isInitialized ? (bool?)DevExpress.Ui.DxTabPanelInterop.GetActiveStateEnabled(dxTarget).Result : activeStateEnabled; + set { + if (isInitialized) { + DevExpress.Ui.DxTabPanelInterop.SetActiveStateEnabled(dxTarget, value); + } else { + this.activeStateEnabled = value; + } + } + } + bool? disabled; + [Parameter] + bool? Disabled { + get => isInitialized ? (bool?)DevExpress.Ui.DxTabPanelInterop.GetDisabled(dxTarget).Result : disabled; + set { + if (isInitialized) { + DevExpress.Ui.DxTabPanelInterop.SetDisabled(dxTarget, value); + } else { + this.disabled = value; + } + } + } + string hint; + [Parameter] + string Hint { + get => isInitialized ? (string)DevExpress.Ui.DxTabPanelInterop.GetHint(dxTarget).Result : hint; + set { + if (isInitialized) { + DevExpress.Ui.DxTabPanelInterop.SetHint(dxTarget, value); + } else { + this.hint = value; + } + } + } + float? tabIndex; + [Parameter] + float? TabIndex { + get => isInitialized ? (float?)DevExpress.Ui.DxTabPanelInterop.GetTabIndex(dxTarget).Result : tabIndex; + set { + if (isInitialized) { + DevExpress.Ui.DxTabPanelInterop.SetTabIndex(dxTarget, value); + } else { + this.tabIndex = value; + } + } + } + bool? visible; + [Parameter] + bool? Visible { + get => isInitialized ? (bool?)DevExpress.Ui.DxTabPanelInterop.GetVisible(dxTarget).Result : visible; + set { + if (isInitialized) { + DevExpress.Ui.DxTabPanelInterop.SetVisible(dxTarget, value); + } else { + this.visible = value; + } + } + } + object bindingOptions; + [Parameter] + object BindingOptions { + get => isInitialized ? DevExpress.Ui.DxTabPanelInterop.GetBindingOptions(dxTarget).Result : bindingOptions; + set { + if (isInitialized) { + DevExpress.Ui.DxTabPanelInterop.SetBindingOptions(dxTarget, value); + } else { + this.bindingOptions = value; + } + } + } + object elementAttr; + [Parameter] + object ElementAttr { + get => isInitialized ? DevExpress.Ui.DxTabPanelInterop.GetElementAttr(dxTarget).Result : elementAttr; + set { + if (isInitialized) { + DevExpress.Ui.DxTabPanelInterop.SetElementAttr(dxTarget, value); + } else { + this.elementAttr = value; + } + } + } + object height; + [Parameter] + object Height { + get => isInitialized ? DevExpress.Ui.DxTabPanelInterop.GetHeight(dxTarget).Result : height; + set { + if (isInitialized) { + DevExpress.Ui.DxTabPanelInterop.SetHeight(dxTarget, value); + } else { + this.height = value; + } + } + } + bool? rtlEnabled; + [Parameter] + bool? RtlEnabled { + get => isInitialized ? (bool?)DevExpress.Ui.DxTabPanelInterop.GetRtlEnabled(dxTarget).Result : rtlEnabled; + set { + if (isInitialized) { + DevExpress.Ui.DxTabPanelInterop.SetRtlEnabled(dxTarget, value); + } else { + this.rtlEnabled = value; + } + } + } + object width; + [Parameter] + object Width { + get => isInitialized ? DevExpress.Ui.DxTabPanelInterop.GetWidth(dxTarget).Result : width; + set { + if (isInitialized) { + DevExpress.Ui.DxTabPanelInterop.SetWidth(dxTarget, value); + } else { + this.width = value; + } + } + } bool? onTitleClickEnabled; [Parameter] bool? OnTitleClickEnabled { @@ -140,11 +448,74 @@ return DevExpress.Ui.DxTabPanelInterop.Init(dxTarget, options); get => onTitleRenderedEnabled; set => this.onTitleRenderedEnabled = value; } + bool? onItemClickEnabled; + [Parameter] + bool? OnItemClickEnabled { + get => onItemClickEnabled; + set => this.onItemClickEnabled = value; + } + bool? onItemContextMenuEnabled; + [Parameter] + bool? OnItemContextMenuEnabled { + get => onItemContextMenuEnabled; + set => this.onItemContextMenuEnabled = value; + } + bool? onItemHoldEnabled; + [Parameter] + bool? OnItemHoldEnabled { + get => onItemHoldEnabled; + set => this.onItemHoldEnabled = value; + } + bool? onItemRenderedEnabled; + [Parameter] + bool? OnItemRenderedEnabled { + get => onItemRenderedEnabled; + set => this.onItemRenderedEnabled = value; + } + bool? onSelectionChangedEnabled; + [Parameter] + bool? OnSelectionChangedEnabled { + get => onSelectionChangedEnabled; + set => this.onSelectionChangedEnabled = value; + } + bool? onContentReadyEnabled; + [Parameter] + bool? OnContentReadyEnabled { + get => onContentReadyEnabled; + set => this.onContentReadyEnabled = value; + } + bool? onDisposingEnabled; + [Parameter] + bool? OnDisposingEnabled { + get => onDisposingEnabled; + set => this.onDisposingEnabled = value; + } + bool? onOptionChangedEnabled; + [Parameter] + bool? OnOptionChangedEnabled { + get => onOptionChangedEnabled; + set => this.onOptionChangedEnabled = value; + } + bool? onInitializedEnabled; + [Parameter] + bool? OnInitializedEnabled { + get => onInitializedEnabled; + set => this.onInitializedEnabled = value; + } protected override async Task OnInitAsync() { await base.OnInitAsync(); DevExpress.Ui.DxTabPanelInterop.TitleClick += DxTabPanel_TitleClick; DevExpress.Ui.DxTabPanelInterop.TitleHold += DxTabPanel_TitleHold; DevExpress.Ui.DxTabPanelInterop.TitleRendered += DxTabPanel_TitleRendered; + DevExpress.Ui.DxTabPanelInterop.ItemClick += DxTabPanel_ItemClick; + DevExpress.Ui.DxTabPanelInterop.ItemContextMenu += DxTabPanel_ItemContextMenu; + DevExpress.Ui.DxTabPanelInterop.ItemHold += DxTabPanel_ItemHold; + DevExpress.Ui.DxTabPanelInterop.ItemRendered += DxTabPanel_ItemRendered; + DevExpress.Ui.DxTabPanelInterop.SelectionChanged += DxTabPanel_SelectionChanged; + DevExpress.Ui.DxTabPanelInterop.ContentReady += DxTabPanel_ContentReady; + DevExpress.Ui.DxTabPanelInterop.Disposing += DxTabPanel_Disposing; + DevExpress.Ui.DxTabPanelInterop.OptionChanged += DxTabPanel_OptionChanged; + DevExpress.Ui.DxTabPanelInterop.Initialized += DxTabPanel_Initialized; } [Parameter] Action TitleClick { get; set; } @@ -167,9 +538,81 @@ return DevExpress.Ui.DxTabPanelInterop.Init(dxTarget, options); TitleRendered?.Invoke(); } } + [Parameter] + Action ItemClick { get; set; } + void DxTabPanel_ItemClick(object sender, JQueryEventArgs e) { + if (e.Identifier == Id) { + ItemClick?.Invoke(); + } + } + [Parameter] + Action ItemContextMenu { get; set; } + void DxTabPanel_ItemContextMenu(object sender, JQueryEventArgs e) { + if (e.Identifier == Id) { + ItemContextMenu?.Invoke(); + } + } + [Parameter] + Action ItemHold { get; set; } + void DxTabPanel_ItemHold(object sender, JQueryEventArgs e) { + if (e.Identifier == Id) { + ItemHold?.Invoke(); + } + } + [Parameter] + Action ItemRendered { get; set; } + void DxTabPanel_ItemRendered(object sender, JQueryEventArgs e) { + if (e.Identifier == Id) { + ItemRendered?.Invoke(); + } + } + [Parameter] + Action SelectionChanged { get; set; } + void DxTabPanel_SelectionChanged(object sender, JQueryEventArgs e) { + if (e.Identifier == Id) { + SelectionChanged?.Invoke(); + } + } + [Parameter] + Action ContentReady { get; set; } + void DxTabPanel_ContentReady(object sender, JQueryEventArgs e) { + if (e.Identifier == Id) { + ContentReady?.Invoke(); + } + } + [Parameter] + Action Disposing { get; set; } + void DxTabPanel_Disposing(object sender, JQueryEventArgs e) { + if (e.Identifier == Id) { + Disposing?.Invoke(); + } + } + [Parameter] + Action OptionChanged { get; set; } + void DxTabPanel_OptionChanged(object sender, JQueryEventArgs e) { + if (e.Identifier == Id) { + OptionChanged?.Invoke(); + } + } + [Parameter] + Action Initialized { get; set; } + void DxTabPanel_Initialized(object sender, JQueryEventArgs e) { + if (e.Identifier == Id) { + Initialized?.Invoke(); + } + } public void Dispose() { DevExpress.Ui.DxTabPanelInterop.TitleClick -= DxTabPanel_TitleClick; DevExpress.Ui.DxTabPanelInterop.TitleHold -= DxTabPanel_TitleHold; DevExpress.Ui.DxTabPanelInterop.TitleRendered -= DxTabPanel_TitleRendered; + DevExpress.Ui.DxTabPanelInterop.ItemClick -= DxTabPanel_ItemClick; + DevExpress.Ui.DxTabPanelInterop.ItemContextMenu -= DxTabPanel_ItemContextMenu; + DevExpress.Ui.DxTabPanelInterop.ItemHold -= DxTabPanel_ItemHold; + DevExpress.Ui.DxTabPanelInterop.ItemRendered -= DxTabPanel_ItemRendered; + DevExpress.Ui.DxTabPanelInterop.SelectionChanged -= DxTabPanel_SelectionChanged; + DevExpress.Ui.DxTabPanelInterop.ContentReady -= DxTabPanel_ContentReady; + DevExpress.Ui.DxTabPanelInterop.Disposing -= DxTabPanel_Disposing; + DevExpress.Ui.DxTabPanelInterop.OptionChanged -= DxTabPanel_OptionChanged; + DevExpress.Ui.DxTabPanelInterop.Initialized -= DxTabPanel_Initialized; } } diff --git a/sources/BlazorDevExtreme/Components/DxTabs.cshtml b/sources/BlazorDevExtreme/Components/DxTabs.cshtml index 7676417..8947f6f 100644 --- a/sources/BlazorDevExtreme/Components/DxTabs.cshtml +++ b/sources/BlazorDevExtreme/Components/DxTabs.cshtml @@ -17,15 +17,44 @@ selectedItems = selectedItems, selectionMode = selectionMode, showNavButtons = showNavButtons, + dataSource = dataSource, + itemHoldTimeout = itemHoldTimeout, + items = items, + itemTemplate = itemTemplate, + keyExpr = keyExpr, + noDataText = noDataText, + selectedIndex = selectedIndex, + selectedItem = selectedItem, + selectedItemKeys = selectedItemKeys, + accessKey = accessKey, + activeStateEnabled = activeStateEnabled, + disabled = disabled, + hint = hint, + tabIndex = tabIndex, + visible = visible, + bindingOptions = bindingOptions, + elementAttr = elementAttr, + height = height, + rtlEnabled = rtlEnabled, + width = width, + onItemClickEnabled = onItemClickEnabled, + onItemContextMenuEnabled = onItemContextMenuEnabled, + onItemHoldEnabled = onItemHoldEnabled, + onItemRenderedEnabled = onItemRenderedEnabled, + onSelectionChangedEnabled = onSelectionChangedEnabled, + onContentReadyEnabled = onContentReadyEnabled, + onDisposingEnabled = onDisposingEnabled, + onOptionChangedEnabled = onOptionChangedEnabled, + onInitializedEnabled = onInitializedEnabled, }; } protected override Task Init(DevExpress.Ui.DxTabsOptions options) { -return DevExpress.Ui.DxTabsInterop.Init(dxTarget, options); + return DevExpress.Ui.DxTabsInterop.Init(dxTarget, options); } bool? focusStateEnabled; [Parameter] bool? FocusStateEnabled { - get => isInitialized ? DevExpress.Ui.DxTabsInterop.GetFocusStateEnabled(dxTarget).Result : focusStateEnabled; + get => isInitialized ? (bool?)DevExpress.Ui.DxTabsInterop.GetFocusStateEnabled(dxTarget).Result : focusStateEnabled; set { if (isInitialized) { DevExpress.Ui.DxTabsInterop.SetFocusStateEnabled(dxTarget, value); @@ -37,7 +66,7 @@ return DevExpress.Ui.DxTabsInterop.Init(dxTarget, options); bool? hoverStateEnabled; [Parameter] bool? HoverStateEnabled { - get => isInitialized ? DevExpress.Ui.DxTabsInterop.GetHoverStateEnabled(dxTarget).Result : hoverStateEnabled; + get => isInitialized ? (bool?)DevExpress.Ui.DxTabsInterop.GetHoverStateEnabled(dxTarget).Result : hoverStateEnabled; set { if (isInitialized) { DevExpress.Ui.DxTabsInterop.SetHoverStateEnabled(dxTarget, value); @@ -49,7 +78,7 @@ return DevExpress.Ui.DxTabsInterop.Init(dxTarget, options); bool? scrollByContent; [Parameter] bool? ScrollByContent { - get => isInitialized ? DevExpress.Ui.DxTabsInterop.GetScrollByContent(dxTarget).Result : scrollByContent; + get => isInitialized ? (bool?)DevExpress.Ui.DxTabsInterop.GetScrollByContent(dxTarget).Result : scrollByContent; set { if (isInitialized) { DevExpress.Ui.DxTabsInterop.SetScrollByContent(dxTarget, value); @@ -61,7 +90,7 @@ return DevExpress.Ui.DxTabsInterop.Init(dxTarget, options); bool? scrollingEnabled; [Parameter] bool? ScrollingEnabled { - get => isInitialized ? DevExpress.Ui.DxTabsInterop.GetScrollingEnabled(dxTarget).Result : scrollingEnabled; + get => isInitialized ? (bool?)DevExpress.Ui.DxTabsInterop.GetScrollingEnabled(dxTarget).Result : scrollingEnabled; set { if (isInitialized) { DevExpress.Ui.DxTabsInterop.SetScrollingEnabled(dxTarget, value); @@ -85,7 +114,7 @@ return DevExpress.Ui.DxTabsInterop.Init(dxTarget, options); string selectionMode; [Parameter] string SelectionMode { - get => isInitialized ? DevExpress.Ui.DxTabsInterop.GetSelectionMode(dxTarget).Result : selectionMode; + get => isInitialized ? (string)DevExpress.Ui.DxTabsInterop.GetSelectionMode(dxTarget).Result : selectionMode; set { if (isInitialized) { DevExpress.Ui.DxTabsInterop.SetSelectionMode(dxTarget, value); @@ -97,7 +126,7 @@ return DevExpress.Ui.DxTabsInterop.Init(dxTarget, options); bool? showNavButtons; [Parameter] bool? ShowNavButtons { - get => isInitialized ? DevExpress.Ui.DxTabsInterop.GetShowNavButtons(dxTarget).Result : showNavButtons; + get => isInitialized ? (bool?)DevExpress.Ui.DxTabsInterop.GetShowNavButtons(dxTarget).Result : showNavButtons; set { if (isInitialized) { DevExpress.Ui.DxTabsInterop.SetShowNavButtons(dxTarget, value); @@ -106,9 +135,384 @@ return DevExpress.Ui.DxTabsInterop.Init(dxTarget, options); } } } + object dataSource; + [Parameter] + object DataSource { + get => isInitialized ? DevExpress.Ui.DxTabsInterop.GetDataSource(dxTarget).Result : dataSource; + set { + if (isInitialized) { + DevExpress.Ui.DxTabsInterop.SetDataSource(dxTarget, value); + } else { + this.dataSource = value; + } + } + } + float? itemHoldTimeout; + [Parameter] + float? ItemHoldTimeout { + get => isInitialized ? (float?)DevExpress.Ui.DxTabsInterop.GetItemHoldTimeout(dxTarget).Result : itemHoldTimeout; + set { + if (isInitialized) { + DevExpress.Ui.DxTabsInterop.SetItemHoldTimeout(dxTarget, value); + } else { + this.itemHoldTimeout = value; + } + } + } + object items; + [Parameter] + object Items { + get => isInitialized ? DevExpress.Ui.DxTabsInterop.GetItems(dxTarget).Result : items; + set { + if (isInitialized) { + DevExpress.Ui.DxTabsInterop.SetItems(dxTarget, value); + } else { + this.items = value; + } + } + } + object itemTemplate; + [Parameter] + object ItemTemplate { + get => isInitialized ? DevExpress.Ui.DxTabsInterop.GetItemTemplate(dxTarget).Result : itemTemplate; + set { + if (isInitialized) { + DevExpress.Ui.DxTabsInterop.SetItemTemplate(dxTarget, value); + } else { + this.itemTemplate = value; + } + } + } + object keyExpr; + [Parameter] + object KeyExpr { + get => isInitialized ? DevExpress.Ui.DxTabsInterop.GetKeyExpr(dxTarget).Result : keyExpr; + set { + if (isInitialized) { + DevExpress.Ui.DxTabsInterop.SetKeyExpr(dxTarget, value); + } else { + this.keyExpr = value; + } + } + } + string noDataText; + [Parameter] + string NoDataText { + get => isInitialized ? (string)DevExpress.Ui.DxTabsInterop.GetNoDataText(dxTarget).Result : noDataText; + set { + if (isInitialized) { + DevExpress.Ui.DxTabsInterop.SetNoDataText(dxTarget, value); + } else { + this.noDataText = value; + } + } + } + float? selectedIndex; + [Parameter] + float? SelectedIndex { + get => isInitialized ? (float?)DevExpress.Ui.DxTabsInterop.GetSelectedIndex(dxTarget).Result : selectedIndex; + set { + if (isInitialized) { + DevExpress.Ui.DxTabsInterop.SetSelectedIndex(dxTarget, value); + } else { + this.selectedIndex = value; + } + } + } + object selectedItem; + [Parameter] + object SelectedItem { + get => isInitialized ? DevExpress.Ui.DxTabsInterop.GetSelectedItem(dxTarget).Result : selectedItem; + set { + if (isInitialized) { + DevExpress.Ui.DxTabsInterop.SetSelectedItem(dxTarget, value); + } else { + this.selectedItem = value; + } + } + } + object selectedItemKeys; + [Parameter] + object SelectedItemKeys { + get => isInitialized ? DevExpress.Ui.DxTabsInterop.GetSelectedItemKeys(dxTarget).Result : selectedItemKeys; + set { + if (isInitialized) { + DevExpress.Ui.DxTabsInterop.SetSelectedItemKeys(dxTarget, value); + } else { + this.selectedItemKeys = value; + } + } + } + string accessKey; + [Parameter] + string AccessKey { + get => isInitialized ? (string)DevExpress.Ui.DxTabsInterop.GetAccessKey(dxTarget).Result : accessKey; + set { + if (isInitialized) { + DevExpress.Ui.DxTabsInterop.SetAccessKey(dxTarget, value); + } else { + this.accessKey = value; + } + } + } + bool? activeStateEnabled; + [Parameter] + bool? ActiveStateEnabled { + get => isInitialized ? (bool?)DevExpress.Ui.DxTabsInterop.GetActiveStateEnabled(dxTarget).Result : activeStateEnabled; + set { + if (isInitialized) { + DevExpress.Ui.DxTabsInterop.SetActiveStateEnabled(dxTarget, value); + } else { + this.activeStateEnabled = value; + } + } + } + bool? disabled; + [Parameter] + bool? Disabled { + get => isInitialized ? (bool?)DevExpress.Ui.DxTabsInterop.GetDisabled(dxTarget).Result : disabled; + set { + if (isInitialized) { + DevExpress.Ui.DxTabsInterop.SetDisabled(dxTarget, value); + } else { + this.disabled = value; + } + } + } + string hint; + [Parameter] + string Hint { + get => isInitialized ? (string)DevExpress.Ui.DxTabsInterop.GetHint(dxTarget).Result : hint; + set { + if (isInitialized) { + DevExpress.Ui.DxTabsInterop.SetHint(dxTarget, value); + } else { + this.hint = value; + } + } + } + float? tabIndex; + [Parameter] + float? TabIndex { + get => isInitialized ? (float?)DevExpress.Ui.DxTabsInterop.GetTabIndex(dxTarget).Result : tabIndex; + set { + if (isInitialized) { + DevExpress.Ui.DxTabsInterop.SetTabIndex(dxTarget, value); + } else { + this.tabIndex = value; + } + } + } + bool? visible; + [Parameter] + bool? Visible { + get => isInitialized ? (bool?)DevExpress.Ui.DxTabsInterop.GetVisible(dxTarget).Result : visible; + set { + if (isInitialized) { + DevExpress.Ui.DxTabsInterop.SetVisible(dxTarget, value); + } else { + this.visible = value; + } + } + } + object bindingOptions; + [Parameter] + object BindingOptions { + get => isInitialized ? DevExpress.Ui.DxTabsInterop.GetBindingOptions(dxTarget).Result : bindingOptions; + set { + if (isInitialized) { + DevExpress.Ui.DxTabsInterop.SetBindingOptions(dxTarget, value); + } else { + this.bindingOptions = value; + } + } + } + object elementAttr; + [Parameter] + object ElementAttr { + get => isInitialized ? DevExpress.Ui.DxTabsInterop.GetElementAttr(dxTarget).Result : elementAttr; + set { + if (isInitialized) { + DevExpress.Ui.DxTabsInterop.SetElementAttr(dxTarget, value); + } else { + this.elementAttr = value; + } + } + } + object height; + [Parameter] + object Height { + get => isInitialized ? DevExpress.Ui.DxTabsInterop.GetHeight(dxTarget).Result : height; + set { + if (isInitialized) { + DevExpress.Ui.DxTabsInterop.SetHeight(dxTarget, value); + } else { + this.height = value; + } + } + } + bool? rtlEnabled; + [Parameter] + bool? RtlEnabled { + get => isInitialized ? (bool?)DevExpress.Ui.DxTabsInterop.GetRtlEnabled(dxTarget).Result : rtlEnabled; + set { + if (isInitialized) { + DevExpress.Ui.DxTabsInterop.SetRtlEnabled(dxTarget, value); + } else { + this.rtlEnabled = value; + } + } + } + object width; + [Parameter] + object Width { + get => isInitialized ? DevExpress.Ui.DxTabsInterop.GetWidth(dxTarget).Result : width; + set { + if (isInitialized) { + DevExpress.Ui.DxTabsInterop.SetWidth(dxTarget, value); + } else { + this.width = value; + } + } + } + bool? onItemClickEnabled; + [Parameter] + bool? OnItemClickEnabled { + get => onItemClickEnabled; + set => this.onItemClickEnabled = value; + } + bool? onItemContextMenuEnabled; + [Parameter] + bool? OnItemContextMenuEnabled { + get => onItemContextMenuEnabled; + set => this.onItemContextMenuEnabled = value; + } + bool? onItemHoldEnabled; + [Parameter] + bool? OnItemHoldEnabled { + get => onItemHoldEnabled; + set => this.onItemHoldEnabled = value; + } + bool? onItemRenderedEnabled; + [Parameter] + bool? OnItemRenderedEnabled { + get => onItemRenderedEnabled; + set => this.onItemRenderedEnabled = value; + } + bool? onSelectionChangedEnabled; + [Parameter] + bool? OnSelectionChangedEnabled { + get => onSelectionChangedEnabled; + set => this.onSelectionChangedEnabled = value; + } + bool? onContentReadyEnabled; + [Parameter] + bool? OnContentReadyEnabled { + get => onContentReadyEnabled; + set => this.onContentReadyEnabled = value; + } + bool? onDisposingEnabled; + [Parameter] + bool? OnDisposingEnabled { + get => onDisposingEnabled; + set => this.onDisposingEnabled = value; + } + bool? onOptionChangedEnabled; + [Parameter] + bool? OnOptionChangedEnabled { + get => onOptionChangedEnabled; + set => this.onOptionChangedEnabled = value; + } + bool? onInitializedEnabled; + [Parameter] + bool? OnInitializedEnabled { + get => onInitializedEnabled; + set => this.onInitializedEnabled = value; + } protected override async Task OnInitAsync() { await base.OnInitAsync(); + DevExpress.Ui.DxTabsInterop.ItemClick += DxTabs_ItemClick; + DevExpress.Ui.DxTabsInterop.ItemContextMenu += DxTabs_ItemContextMenu; + DevExpress.Ui.DxTabsInterop.ItemHold += DxTabs_ItemHold; + DevExpress.Ui.DxTabsInterop.ItemRendered += DxTabs_ItemRendered; + DevExpress.Ui.DxTabsInterop.SelectionChanged += DxTabs_SelectionChanged; + DevExpress.Ui.DxTabsInterop.ContentReady += DxTabs_ContentReady; + DevExpress.Ui.DxTabsInterop.Disposing += DxTabs_Disposing; + DevExpress.Ui.DxTabsInterop.OptionChanged += DxTabs_OptionChanged; + DevExpress.Ui.DxTabsInterop.Initialized += DxTabs_Initialized; + } + [Parameter] + Action ItemClick { get; set; } + void DxTabs_ItemClick(object sender, JQueryEventArgs e) { + if (e.Identifier == Id) { + ItemClick?.Invoke(); + } + } + [Parameter] + Action ItemContextMenu { get; set; } + void DxTabs_ItemContextMenu(object sender, JQueryEventArgs e) { + if (e.Identifier == Id) { + ItemContextMenu?.Invoke(); + } + } + [Parameter] + Action ItemHold { get; set; } + void DxTabs_ItemHold(object sender, JQueryEventArgs e) { + if (e.Identifier == Id) { + ItemHold?.Invoke(); + } + } + [Parameter] + Action ItemRendered { get; set; } + void DxTabs_ItemRendered(object sender, JQueryEventArgs e) { + if (e.Identifier == Id) { + ItemRendered?.Invoke(); + } + } + [Parameter] + Action SelectionChanged { get; set; } + void DxTabs_SelectionChanged(object sender, JQueryEventArgs e) { + if (e.Identifier == Id) { + SelectionChanged?.Invoke(); + } + } + [Parameter] + Action ContentReady { get; set; } + void DxTabs_ContentReady(object sender, JQueryEventArgs e) { + if (e.Identifier == Id) { + ContentReady?.Invoke(); + } + } + [Parameter] + Action Disposing { get; set; } + void DxTabs_Disposing(object sender, JQueryEventArgs e) { + if (e.Identifier == Id) { + Disposing?.Invoke(); + } + } + [Parameter] + Action OptionChanged { get; set; } + void DxTabs_OptionChanged(object sender, JQueryEventArgs e) { + if (e.Identifier == Id) { + OptionChanged?.Invoke(); + } + } + [Parameter] + Action Initialized { get; set; } + void DxTabs_Initialized(object sender, JQueryEventArgs e) { + if (e.Identifier == Id) { + Initialized?.Invoke(); + } } public void Dispose() { + DevExpress.Ui.DxTabsInterop.ItemClick -= DxTabs_ItemClick; + DevExpress.Ui.DxTabsInterop.ItemContextMenu -= DxTabs_ItemContextMenu; + DevExpress.Ui.DxTabsInterop.ItemHold -= DxTabs_ItemHold; + DevExpress.Ui.DxTabsInterop.ItemRendered -= DxTabs_ItemRendered; + DevExpress.Ui.DxTabsInterop.SelectionChanged -= DxTabs_SelectionChanged; + DevExpress.Ui.DxTabsInterop.ContentReady -= DxTabs_ContentReady; + DevExpress.Ui.DxTabsInterop.Disposing -= DxTabs_Disposing; + DevExpress.Ui.DxTabsInterop.OptionChanged -= DxTabs_OptionChanged; + DevExpress.Ui.DxTabsInterop.Initialized -= DxTabs_Initialized; } } diff --git a/sources/BlazorDevExtreme/Components/DxTagBox.cshtml b/sources/BlazorDevExtreme/Components/DxTagBox.cshtml index 604400e..3c02caa 100644 --- a/sources/BlazorDevExtreme/Components/DxTagBox.cshtml +++ b/sources/BlazorDevExtreme/Components/DxTagBox.cshtml @@ -19,18 +19,92 @@ showMultiTagOnly = showMultiTagOnly, tagTemplate = tagTemplate, value = value, + acceptCustomValue = acceptCustomValue, + fieldTemplate = fieldTemplate, + placeholder = placeholder, + showSelectionControls = showSelectionControls, + valueChangeEvent = valueChangeEvent, + displayValue = displayValue, + grouped = grouped, + groupTemplate = groupTemplate, + minSearchLength = minSearchLength, + noDataText = noDataText, + searchEnabled = searchEnabled, + searchExpr = searchExpr, + searchMode = searchMode, + searchTimeout = searchTimeout, + selectedItem = selectedItem, + showDataBeforeSearch = showDataBeforeSearch, + activeStateEnabled = activeStateEnabled, + deferRendering = deferRendering, + dropDownButtonTemplate = dropDownButtonTemplate, + opened = isOpened, + maxLength = maxLength, + mode = mode, + focusStateEnabled = focusStateEnabled, + hoverStateEnabled = hoverStateEnabled, + inputAttr = inputAttr, + mask = mask, + maskChar = maskChar, + maskInvalidMessage = maskInvalidMessage, + maskRules = maskRules, + name = name, + showClearButton = showClearButton, + showMaskMode = showMaskMode, + spellcheck = spellcheck, + text = text, + useMaskedValue = useMaskedValue, + isValid = isValid, + readOnly = readOnly, + validationError = validationError, + validationMessageMode = validationMessageMode, + accessKey = accessKey, + disabled = disabled, + hint = hint, + tabIndex = tabIndex, + visible = visible, + bindingOptions = bindingOptions, + elementAttr = elementAttr, + height = height, + rtlEnabled = rtlEnabled, + width = width, + dataSource = dataSource, + displayExpr = displayExpr, + items = items, + itemTemplate = itemTemplate, + valueExpr = valueExpr, onMultiTagPreparingEnabled = onMultiTagPreparingEnabled, onSelectAllValueChangedEnabled = onSelectAllValueChangedEnabled, onSelectionChangedEnabled = onSelectionChangedEnabled, + onCustomItemCreatingEnabled = onCustomItemCreatingEnabled, + onItemClickEnabled = onItemClickEnabled, + onValueChangedEnabled = onValueChangedEnabled, + onClosedEnabled = onClosedEnabled, + onOpenedEnabled = onOpenedEnabled, + onChangeEnabled = onChangeEnabled, + onCopyEnabled = onCopyEnabled, + onCutEnabled = onCutEnabled, + onEnterKeyEnabled = onEnterKeyEnabled, + onFocusInEnabled = onFocusInEnabled, + onFocusOutEnabled = onFocusOutEnabled, + onInputEnabled = onInputEnabled, + onKeyDownEnabled = onKeyDownEnabled, + onKeyPressEnabled = onKeyPressEnabled, + onKeyUpEnabled = onKeyUpEnabled, + onPasteEnabled = onPasteEnabled, + onContentReadyEnabled = onContentReadyEnabled, + onDisposingEnabled = onDisposingEnabled, + onOptionChangedEnabled = onOptionChangedEnabled, + onInitializedEnabled = onInitializedEnabled, }; } protected override Task Init(DevExpress.Ui.DxTagBoxOptions options) { -return DevExpress.Ui.DxTagBoxInterop.Init(dxTarget, options); + return DevExpress.Ui.DxTagBoxInterop.Init(dxTarget, options); } string applyValueMode; [Parameter] string ApplyValueMode { - get => isInitialized ? DevExpress.Ui.DxTagBoxInterop.GetApplyValueMode(dxTarget).Result : applyValueMode; + get => isInitialized ? (string)DevExpress.Ui.DxTagBoxInterop.GetApplyValueMode(dxTarget).Result : applyValueMode; set { if (isInitialized) { DevExpress.Ui.DxTagBoxInterop.SetApplyValueMode(dxTarget, value); @@ -42,7 +116,7 @@ return DevExpress.Ui.DxTagBoxInterop.Init(dxTarget, options); bool? hideSelectedItems; [Parameter] bool? HideSelectedItems { - get => isInitialized ? DevExpress.Ui.DxTagBoxInterop.GetHideSelectedItems(dxTarget).Result : hideSelectedItems; + get => isInitialized ? (bool?)DevExpress.Ui.DxTagBoxInterop.GetHideSelectedItems(dxTarget).Result : hideSelectedItems; set { if (isInitialized) { DevExpress.Ui.DxTagBoxInterop.SetHideSelectedItems(dxTarget, value); @@ -54,7 +128,7 @@ return DevExpress.Ui.DxTagBoxInterop.Init(dxTarget, options); float? maxDisplayedTags; [Parameter] float? MaxDisplayedTags { - get => isInitialized ? DevExpress.Ui.DxTagBoxInterop.GetMaxDisplayedTags(dxTarget).Result : maxDisplayedTags; + get => isInitialized ? (float?)DevExpress.Ui.DxTagBoxInterop.GetMaxDisplayedTags(dxTarget).Result : maxDisplayedTags; set { if (isInitialized) { DevExpress.Ui.DxTagBoxInterop.SetMaxDisplayedTags(dxTarget, value); @@ -66,7 +140,7 @@ return DevExpress.Ui.DxTagBoxInterop.Init(dxTarget, options); bool? multiline; [Parameter] bool? Multiline { - get => isInitialized ? DevExpress.Ui.DxTagBoxInterop.GetMultiline(dxTarget).Result : multiline; + get => isInitialized ? (bool?)DevExpress.Ui.DxTagBoxInterop.GetMultiline(dxTarget).Result : multiline; set { if (isInitialized) { DevExpress.Ui.DxTagBoxInterop.SetMultiline(dxTarget, value); @@ -78,7 +152,7 @@ return DevExpress.Ui.DxTagBoxInterop.Init(dxTarget, options); string selectAllMode; [Parameter] string SelectAllMode { - get => isInitialized ? DevExpress.Ui.DxTagBoxInterop.GetSelectAllMode(dxTarget).Result : selectAllMode; + get => isInitialized ? (string)DevExpress.Ui.DxTagBoxInterop.GetSelectAllMode(dxTarget).Result : selectAllMode; set { if (isInitialized) { DevExpress.Ui.DxTagBoxInterop.SetSelectAllMode(dxTarget, value); @@ -102,7 +176,7 @@ return DevExpress.Ui.DxTagBoxInterop.Init(dxTarget, options); bool? showMultiTagOnly; [Parameter] bool? ShowMultiTagOnly { - get => isInitialized ? DevExpress.Ui.DxTagBoxInterop.GetShowMultiTagOnly(dxTarget).Result : showMultiTagOnly; + get => isInitialized ? (bool?)DevExpress.Ui.DxTagBoxInterop.GetShowMultiTagOnly(dxTarget).Result : showMultiTagOnly; set { if (isInitialized) { DevExpress.Ui.DxTagBoxInterop.SetShowMultiTagOnly(dxTarget, value); @@ -135,6 +209,654 @@ return DevExpress.Ui.DxTagBoxInterop.Init(dxTarget, options); } } } + bool? acceptCustomValue; + [Parameter] + bool? AcceptCustomValue { + get => isInitialized ? (bool?)DevExpress.Ui.DxTagBoxInterop.GetAcceptCustomValue(dxTarget).Result : acceptCustomValue; + set { + if (isInitialized) { + DevExpress.Ui.DxTagBoxInterop.SetAcceptCustomValue(dxTarget, value); + } else { + this.acceptCustomValue = value; + } + } + } + object fieldTemplate; + [Parameter] + object FieldTemplate { + get => isInitialized ? DevExpress.Ui.DxTagBoxInterop.GetFieldTemplate(dxTarget).Result : fieldTemplate; + set { + if (isInitialized) { + DevExpress.Ui.DxTagBoxInterop.SetFieldTemplate(dxTarget, value); + } else { + this.fieldTemplate = value; + } + } + } + string placeholder; + [Parameter] + string Placeholder { + get => isInitialized ? (string)DevExpress.Ui.DxTagBoxInterop.GetPlaceholder(dxTarget).Result : placeholder; + set { + if (isInitialized) { + DevExpress.Ui.DxTagBoxInterop.SetPlaceholder(dxTarget, value); + } else { + this.placeholder = value; + } + } + } + bool? showSelectionControls; + [Parameter] + bool? ShowSelectionControls { + get => isInitialized ? (bool?)DevExpress.Ui.DxTagBoxInterop.GetShowSelectionControls(dxTarget).Result : showSelectionControls; + set { + if (isInitialized) { + DevExpress.Ui.DxTagBoxInterop.SetShowSelectionControls(dxTarget, value); + } else { + this.showSelectionControls = value; + } + } + } + string valueChangeEvent; + [Parameter] + string ValueChangeEvent { + get => isInitialized ? (string)DevExpress.Ui.DxTagBoxInterop.GetValueChangeEvent(dxTarget).Result : valueChangeEvent; + set { + if (isInitialized) { + DevExpress.Ui.DxTagBoxInterop.SetValueChangeEvent(dxTarget, value); + } else { + this.valueChangeEvent = value; + } + } + } + string displayValue; + [Parameter] + string DisplayValue { + get => isInitialized ? (string)DevExpress.Ui.DxTagBoxInterop.GetDisplayValue(dxTarget).Result : displayValue; + set { + if (isInitialized) { + DevExpress.Ui.DxTagBoxInterop.SetDisplayValue(dxTarget, value); + } else { + this.displayValue = value; + } + } + } + bool? grouped; + [Parameter] + bool? Grouped { + get => isInitialized ? (bool?)DevExpress.Ui.DxTagBoxInterop.GetGrouped(dxTarget).Result : grouped; + set { + if (isInitialized) { + DevExpress.Ui.DxTagBoxInterop.SetGrouped(dxTarget, value); + } else { + this.grouped = value; + } + } + } + object groupTemplate; + [Parameter] + object GroupTemplate { + get => isInitialized ? DevExpress.Ui.DxTagBoxInterop.GetGroupTemplate(dxTarget).Result : groupTemplate; + set { + if (isInitialized) { + DevExpress.Ui.DxTagBoxInterop.SetGroupTemplate(dxTarget, value); + } else { + this.groupTemplate = value; + } + } + } + float? minSearchLength; + [Parameter] + float? MinSearchLength { + get => isInitialized ? (float?)DevExpress.Ui.DxTagBoxInterop.GetMinSearchLength(dxTarget).Result : minSearchLength; + set { + if (isInitialized) { + DevExpress.Ui.DxTagBoxInterop.SetMinSearchLength(dxTarget, value); + } else { + this.minSearchLength = value; + } + } + } + string noDataText; + [Parameter] + string NoDataText { + get => isInitialized ? (string)DevExpress.Ui.DxTagBoxInterop.GetNoDataText(dxTarget).Result : noDataText; + set { + if (isInitialized) { + DevExpress.Ui.DxTagBoxInterop.SetNoDataText(dxTarget, value); + } else { + this.noDataText = value; + } + } + } + bool? searchEnabled; + [Parameter] + bool? SearchEnabled { + get => isInitialized ? (bool?)DevExpress.Ui.DxTagBoxInterop.GetSearchEnabled(dxTarget).Result : searchEnabled; + set { + if (isInitialized) { + DevExpress.Ui.DxTagBoxInterop.SetSearchEnabled(dxTarget, value); + } else { + this.searchEnabled = value; + } + } + } + object searchExpr; + [Parameter] + object SearchExpr { + get => isInitialized ? DevExpress.Ui.DxTagBoxInterop.GetSearchExpr(dxTarget).Result : searchExpr; + set { + if (isInitialized) { + DevExpress.Ui.DxTagBoxInterop.SetSearchExpr(dxTarget, value); + } else { + this.searchExpr = value; + } + } + } + string searchMode; + [Parameter] + string SearchMode { + get => isInitialized ? (string)DevExpress.Ui.DxTagBoxInterop.GetSearchMode(dxTarget).Result : searchMode; + set { + if (isInitialized) { + DevExpress.Ui.DxTagBoxInterop.SetSearchMode(dxTarget, value); + } else { + this.searchMode = value; + } + } + } + float? searchTimeout; + [Parameter] + float? SearchTimeout { + get => isInitialized ? (float?)DevExpress.Ui.DxTagBoxInterop.GetSearchTimeout(dxTarget).Result : searchTimeout; + set { + if (isInitialized) { + DevExpress.Ui.DxTagBoxInterop.SetSearchTimeout(dxTarget, value); + } else { + this.searchTimeout = value; + } + } + } + object selectedItem; + [Parameter] + object SelectedItem { + get => isInitialized ? DevExpress.Ui.DxTagBoxInterop.GetSelectedItem(dxTarget).Result : selectedItem; + set { + if (isInitialized) { + DevExpress.Ui.DxTagBoxInterop.SetSelectedItem(dxTarget, value); + } else { + this.selectedItem = value; + } + } + } + bool? showDataBeforeSearch; + [Parameter] + bool? ShowDataBeforeSearch { + get => isInitialized ? (bool?)DevExpress.Ui.DxTagBoxInterop.GetShowDataBeforeSearch(dxTarget).Result : showDataBeforeSearch; + set { + if (isInitialized) { + DevExpress.Ui.DxTagBoxInterop.SetShowDataBeforeSearch(dxTarget, value); + } else { + this.showDataBeforeSearch = value; + } + } + } + bool? activeStateEnabled; + [Parameter] + bool? ActiveStateEnabled { + get => isInitialized ? (bool?)DevExpress.Ui.DxTagBoxInterop.GetActiveStateEnabled(dxTarget).Result : activeStateEnabled; + set { + if (isInitialized) { + DevExpress.Ui.DxTagBoxInterop.SetActiveStateEnabled(dxTarget, value); + } else { + this.activeStateEnabled = value; + } + } + } + bool? deferRendering; + [Parameter] + bool? DeferRendering { + get => isInitialized ? (bool?)DevExpress.Ui.DxTagBoxInterop.GetDeferRendering(dxTarget).Result : deferRendering; + set { + if (isInitialized) { + DevExpress.Ui.DxTagBoxInterop.SetDeferRendering(dxTarget, value); + } else { + this.deferRendering = value; + } + } + } + object dropDownButtonTemplate; + [Parameter] + object DropDownButtonTemplate { + get => isInitialized ? DevExpress.Ui.DxTagBoxInterop.GetDropDownButtonTemplate(dxTarget).Result : dropDownButtonTemplate; + set { + if (isInitialized) { + DevExpress.Ui.DxTagBoxInterop.SetDropDownButtonTemplate(dxTarget, value); + } else { + this.dropDownButtonTemplate = value; + } + } + } + bool? isOpened; + [Parameter] + bool? IsOpened { + get => isInitialized ? (bool?)DevExpress.Ui.DxTagBoxInterop.GetOpened(dxTarget).Result : isOpened; + set { + if (isInitialized) { + DevExpress.Ui.DxTagBoxInterop.SetOpened(dxTarget, value); + } else { + this.isOpened = value; + } + } + } + object maxLength; + [Parameter] + object MaxLength { + get => isInitialized ? DevExpress.Ui.DxTagBoxInterop.GetMaxLength(dxTarget).Result : maxLength; + set { + if (isInitialized) { + DevExpress.Ui.DxTagBoxInterop.SetMaxLength(dxTarget, value); + } else { + this.maxLength = value; + } + } + } + string mode; + [Parameter] + string Mode { + get => isInitialized ? (string)DevExpress.Ui.DxTagBoxInterop.GetMode(dxTarget).Result : mode; + set { + if (isInitialized) { + DevExpress.Ui.DxTagBoxInterop.SetMode(dxTarget, value); + } else { + this.mode = value; + } + } + } + bool? focusStateEnabled; + [Parameter] + bool? FocusStateEnabled { + get => isInitialized ? (bool?)DevExpress.Ui.DxTagBoxInterop.GetFocusStateEnabled(dxTarget).Result : focusStateEnabled; + set { + if (isInitialized) { + DevExpress.Ui.DxTagBoxInterop.SetFocusStateEnabled(dxTarget, value); + } else { + this.focusStateEnabled = value; + } + } + } + bool? hoverStateEnabled; + [Parameter] + bool? HoverStateEnabled { + get => isInitialized ? (bool?)DevExpress.Ui.DxTagBoxInterop.GetHoverStateEnabled(dxTarget).Result : hoverStateEnabled; + set { + if (isInitialized) { + DevExpress.Ui.DxTagBoxInterop.SetHoverStateEnabled(dxTarget, value); + } else { + this.hoverStateEnabled = value; + } + } + } + object inputAttr; + [Parameter] + object InputAttr { + get => isInitialized ? DevExpress.Ui.DxTagBoxInterop.GetInputAttr(dxTarget).Result : inputAttr; + set { + if (isInitialized) { + DevExpress.Ui.DxTagBoxInterop.SetInputAttr(dxTarget, value); + } else { + this.inputAttr = value; + } + } + } + string mask; + [Parameter] + string Mask { + get => isInitialized ? (string)DevExpress.Ui.DxTagBoxInterop.GetMask(dxTarget).Result : mask; + set { + if (isInitialized) { + DevExpress.Ui.DxTagBoxInterop.SetMask(dxTarget, value); + } else { + this.mask = value; + } + } + } + string maskChar; + [Parameter] + string MaskChar { + get => isInitialized ? (string)DevExpress.Ui.DxTagBoxInterop.GetMaskChar(dxTarget).Result : maskChar; + set { + if (isInitialized) { + DevExpress.Ui.DxTagBoxInterop.SetMaskChar(dxTarget, value); + } else { + this.maskChar = value; + } + } + } + string maskInvalidMessage; + [Parameter] + string MaskInvalidMessage { + get => isInitialized ? (string)DevExpress.Ui.DxTagBoxInterop.GetMaskInvalidMessage(dxTarget).Result : maskInvalidMessage; + set { + if (isInitialized) { + DevExpress.Ui.DxTagBoxInterop.SetMaskInvalidMessage(dxTarget, value); + } else { + this.maskInvalidMessage = value; + } + } + } + object maskRules; + [Parameter] + object MaskRules { + get => isInitialized ? DevExpress.Ui.DxTagBoxInterop.GetMaskRules(dxTarget).Result : maskRules; + set { + if (isInitialized) { + DevExpress.Ui.DxTagBoxInterop.SetMaskRules(dxTarget, value); + } else { + this.maskRules = value; + } + } + } + string name; + [Parameter] + string Name { + get => isInitialized ? (string)DevExpress.Ui.DxTagBoxInterop.GetName(dxTarget).Result : name; + set { + if (isInitialized) { + DevExpress.Ui.DxTagBoxInterop.SetName(dxTarget, value); + } else { + this.name = value; + } + } + } + bool? showClearButton; + [Parameter] + bool? ShowClearButton { + get => isInitialized ? (bool?)DevExpress.Ui.DxTagBoxInterop.GetShowClearButton(dxTarget).Result : showClearButton; + set { + if (isInitialized) { + DevExpress.Ui.DxTagBoxInterop.SetShowClearButton(dxTarget, value); + } else { + this.showClearButton = value; + } + } + } + string showMaskMode; + [Parameter] + string ShowMaskMode { + get => isInitialized ? (string)DevExpress.Ui.DxTagBoxInterop.GetShowMaskMode(dxTarget).Result : showMaskMode; + set { + if (isInitialized) { + DevExpress.Ui.DxTagBoxInterop.SetShowMaskMode(dxTarget, value); + } else { + this.showMaskMode = value; + } + } + } + bool? spellcheck; + [Parameter] + bool? Spellcheck { + get => isInitialized ? (bool?)DevExpress.Ui.DxTagBoxInterop.GetSpellcheck(dxTarget).Result : spellcheck; + set { + if (isInitialized) { + DevExpress.Ui.DxTagBoxInterop.SetSpellcheck(dxTarget, value); + } else { + this.spellcheck = value; + } + } + } + string text; + [Parameter] + string Text { + get => isInitialized ? (string)DevExpress.Ui.DxTagBoxInterop.GetText(dxTarget).Result : text; + set { + if (isInitialized) { + DevExpress.Ui.DxTagBoxInterop.SetText(dxTarget, value); + } else { + this.text = value; + } + } + } + bool? useMaskedValue; + [Parameter] + bool? UseMaskedValue { + get => isInitialized ? (bool?)DevExpress.Ui.DxTagBoxInterop.GetUseMaskedValue(dxTarget).Result : useMaskedValue; + set { + if (isInitialized) { + DevExpress.Ui.DxTagBoxInterop.SetUseMaskedValue(dxTarget, value); + } else { + this.useMaskedValue = value; + } + } + } + bool? isValid; + [Parameter] + bool? IsValid { + get => isInitialized ? (bool?)DevExpress.Ui.DxTagBoxInterop.GetIsValid(dxTarget).Result : isValid; + set { + if (isInitialized) { + DevExpress.Ui.DxTagBoxInterop.SetIsValid(dxTarget, value); + } else { + this.isValid = value; + } + } + } + bool? readOnly; + [Parameter] + bool? ReadOnly { + get => isInitialized ? (bool?)DevExpress.Ui.DxTagBoxInterop.GetReadOnly(dxTarget).Result : readOnly; + set { + if (isInitialized) { + DevExpress.Ui.DxTagBoxInterop.SetReadOnly(dxTarget, value); + } else { + this.readOnly = value; + } + } + } + object validationError; + [Parameter] + object ValidationError { + get => isInitialized ? DevExpress.Ui.DxTagBoxInterop.GetValidationError(dxTarget).Result : validationError; + set { + if (isInitialized) { + DevExpress.Ui.DxTagBoxInterop.SetValidationError(dxTarget, value); + } else { + this.validationError = value; + } + } + } + string validationMessageMode; + [Parameter] + string ValidationMessageMode { + get => isInitialized ? (string)DevExpress.Ui.DxTagBoxInterop.GetValidationMessageMode(dxTarget).Result : validationMessageMode; + set { + if (isInitialized) { + DevExpress.Ui.DxTagBoxInterop.SetValidationMessageMode(dxTarget, value); + } else { + this.validationMessageMode = value; + } + } + } + string accessKey; + [Parameter] + string AccessKey { + get => isInitialized ? (string)DevExpress.Ui.DxTagBoxInterop.GetAccessKey(dxTarget).Result : accessKey; + set { + if (isInitialized) { + DevExpress.Ui.DxTagBoxInterop.SetAccessKey(dxTarget, value); + } else { + this.accessKey = value; + } + } + } + bool? disabled; + [Parameter] + bool? Disabled { + get => isInitialized ? (bool?)DevExpress.Ui.DxTagBoxInterop.GetDisabled(dxTarget).Result : disabled; + set { + if (isInitialized) { + DevExpress.Ui.DxTagBoxInterop.SetDisabled(dxTarget, value); + } else { + this.disabled = value; + } + } + } + string hint; + [Parameter] + string Hint { + get => isInitialized ? (string)DevExpress.Ui.DxTagBoxInterop.GetHint(dxTarget).Result : hint; + set { + if (isInitialized) { + DevExpress.Ui.DxTagBoxInterop.SetHint(dxTarget, value); + } else { + this.hint = value; + } + } + } + float? tabIndex; + [Parameter] + float? TabIndex { + get => isInitialized ? (float?)DevExpress.Ui.DxTagBoxInterop.GetTabIndex(dxTarget).Result : tabIndex; + set { + if (isInitialized) { + DevExpress.Ui.DxTagBoxInterop.SetTabIndex(dxTarget, value); + } else { + this.tabIndex = value; + } + } + } + bool? visible; + [Parameter] + bool? Visible { + get => isInitialized ? (bool?)DevExpress.Ui.DxTagBoxInterop.GetVisible(dxTarget).Result : visible; + set { + if (isInitialized) { + DevExpress.Ui.DxTagBoxInterop.SetVisible(dxTarget, value); + } else { + this.visible = value; + } + } + } + object bindingOptions; + [Parameter] + object BindingOptions { + get => isInitialized ? DevExpress.Ui.DxTagBoxInterop.GetBindingOptions(dxTarget).Result : bindingOptions; + set { + if (isInitialized) { + DevExpress.Ui.DxTagBoxInterop.SetBindingOptions(dxTarget, value); + } else { + this.bindingOptions = value; + } + } + } + object elementAttr; + [Parameter] + object ElementAttr { + get => isInitialized ? DevExpress.Ui.DxTagBoxInterop.GetElementAttr(dxTarget).Result : elementAttr; + set { + if (isInitialized) { + DevExpress.Ui.DxTagBoxInterop.SetElementAttr(dxTarget, value); + } else { + this.elementAttr = value; + } + } + } + object height; + [Parameter] + object Height { + get => isInitialized ? DevExpress.Ui.DxTagBoxInterop.GetHeight(dxTarget).Result : height; + set { + if (isInitialized) { + DevExpress.Ui.DxTagBoxInterop.SetHeight(dxTarget, value); + } else { + this.height = value; + } + } + } + bool? rtlEnabled; + [Parameter] + bool? RtlEnabled { + get => isInitialized ? (bool?)DevExpress.Ui.DxTagBoxInterop.GetRtlEnabled(dxTarget).Result : rtlEnabled; + set { + if (isInitialized) { + DevExpress.Ui.DxTagBoxInterop.SetRtlEnabled(dxTarget, value); + } else { + this.rtlEnabled = value; + } + } + } + object width; + [Parameter] + object Width { + get => isInitialized ? DevExpress.Ui.DxTagBoxInterop.GetWidth(dxTarget).Result : width; + set { + if (isInitialized) { + DevExpress.Ui.DxTagBoxInterop.SetWidth(dxTarget, value); + } else { + this.width = value; + } + } + } + object dataSource; + [Parameter] + object DataSource { + get => isInitialized ? DevExpress.Ui.DxTagBoxInterop.GetDataSource(dxTarget).Result : dataSource; + set { + if (isInitialized) { + DevExpress.Ui.DxTagBoxInterop.SetDataSource(dxTarget, value); + } else { + this.dataSource = value; + } + } + } + object displayExpr; + [Parameter] + object DisplayExpr { + get => isInitialized ? DevExpress.Ui.DxTagBoxInterop.GetDisplayExpr(dxTarget).Result : displayExpr; + set { + if (isInitialized) { + DevExpress.Ui.DxTagBoxInterop.SetDisplayExpr(dxTarget, value); + } else { + this.displayExpr = value; + } + } + } + object items; + [Parameter] + object Items { + get => isInitialized ? DevExpress.Ui.DxTagBoxInterop.GetItems(dxTarget).Result : items; + set { + if (isInitialized) { + DevExpress.Ui.DxTagBoxInterop.SetItems(dxTarget, value); + } else { + this.items = value; + } + } + } + object itemTemplate; + [Parameter] + object ItemTemplate { + get => isInitialized ? DevExpress.Ui.DxTagBoxInterop.GetItemTemplate(dxTarget).Result : itemTemplate; + set { + if (isInitialized) { + DevExpress.Ui.DxTagBoxInterop.SetItemTemplate(dxTarget, value); + } else { + this.itemTemplate = value; + } + } + } + object valueExpr; + [Parameter] + object ValueExpr { + get => isInitialized ? DevExpress.Ui.DxTagBoxInterop.GetValueExpr(dxTarget).Result : valueExpr; + set { + if (isInitialized) { + DevExpress.Ui.DxTagBoxInterop.SetValueExpr(dxTarget, value); + } else { + this.valueExpr = value; + } + } + } bool? onMultiTagPreparingEnabled; [Parameter] bool? OnMultiTagPreparingEnabled { @@ -153,11 +875,151 @@ return DevExpress.Ui.DxTagBoxInterop.Init(dxTarget, options); get => onSelectionChangedEnabled; set => this.onSelectionChangedEnabled = value; } + bool? onCustomItemCreatingEnabled; + [Parameter] + bool? OnCustomItemCreatingEnabled { + get => onCustomItemCreatingEnabled; + set => this.onCustomItemCreatingEnabled = value; + } + bool? onItemClickEnabled; + [Parameter] + bool? OnItemClickEnabled { + get => onItemClickEnabled; + set => this.onItemClickEnabled = value; + } + bool? onValueChangedEnabled; + [Parameter] + bool? OnValueChangedEnabled { + get => onValueChangedEnabled; + set => this.onValueChangedEnabled = value; + } + bool? onClosedEnabled; + [Parameter] + bool? OnClosedEnabled { + get => onClosedEnabled; + set => this.onClosedEnabled = value; + } + bool? onOpenedEnabled; + [Parameter] + bool? OnOpenedEnabled { + get => onOpenedEnabled; + set => this.onOpenedEnabled = value; + } + bool? onChangeEnabled; + [Parameter] + bool? OnChangeEnabled { + get => onChangeEnabled; + set => this.onChangeEnabled = value; + } + bool? onCopyEnabled; + [Parameter] + bool? OnCopyEnabled { + get => onCopyEnabled; + set => this.onCopyEnabled = value; + } + bool? onCutEnabled; + [Parameter] + bool? OnCutEnabled { + get => onCutEnabled; + set => this.onCutEnabled = value; + } + bool? onEnterKeyEnabled; + [Parameter] + bool? OnEnterKeyEnabled { + get => onEnterKeyEnabled; + set => this.onEnterKeyEnabled = value; + } + bool? onFocusInEnabled; + [Parameter] + bool? OnFocusInEnabled { + get => onFocusInEnabled; + set => this.onFocusInEnabled = value; + } + bool? onFocusOutEnabled; + [Parameter] + bool? OnFocusOutEnabled { + get => onFocusOutEnabled; + set => this.onFocusOutEnabled = value; + } + bool? onInputEnabled; + [Parameter] + bool? OnInputEnabled { + get => onInputEnabled; + set => this.onInputEnabled = value; + } + bool? onKeyDownEnabled; + [Parameter] + bool? OnKeyDownEnabled { + get => onKeyDownEnabled; + set => this.onKeyDownEnabled = value; + } + bool? onKeyPressEnabled; + [Parameter] + bool? OnKeyPressEnabled { + get => onKeyPressEnabled; + set => this.onKeyPressEnabled = value; + } + bool? onKeyUpEnabled; + [Parameter] + bool? OnKeyUpEnabled { + get => onKeyUpEnabled; + set => this.onKeyUpEnabled = value; + } + bool? onPasteEnabled; + [Parameter] + bool? OnPasteEnabled { + get => onPasteEnabled; + set => this.onPasteEnabled = value; + } + bool? onContentReadyEnabled; + [Parameter] + bool? OnContentReadyEnabled { + get => onContentReadyEnabled; + set => this.onContentReadyEnabled = value; + } + bool? onDisposingEnabled; + [Parameter] + bool? OnDisposingEnabled { + get => onDisposingEnabled; + set => this.onDisposingEnabled = value; + } + bool? onOptionChangedEnabled; + [Parameter] + bool? OnOptionChangedEnabled { + get => onOptionChangedEnabled; + set => this.onOptionChangedEnabled = value; + } + bool? onInitializedEnabled; + [Parameter] + bool? OnInitializedEnabled { + get => onInitializedEnabled; + set => this.onInitializedEnabled = value; + } protected override async Task OnInitAsync() { await base.OnInitAsync(); DevExpress.Ui.DxTagBoxInterop.MultiTagPreparing += DxTagBox_MultiTagPreparing; DevExpress.Ui.DxTagBoxInterop.SelectAllValueChanged += DxTagBox_SelectAllValueChanged; DevExpress.Ui.DxTagBoxInterop.SelectionChanged += DxTagBox_SelectionChanged; + DevExpress.Ui.DxTagBoxInterop.CustomItemCreating += DxTagBox_CustomItemCreating; + DevExpress.Ui.DxTagBoxInterop.ItemClick += DxTagBox_ItemClick; + DevExpress.Ui.DxTagBoxInterop.ValueChanged += DxTagBox_ValueChanged; + DevExpress.Ui.DxTagBoxInterop.Closed += DxTagBox_Closed; + DevExpress.Ui.DxTagBoxInterop.Opened += DxTagBox_Opened; + DevExpress.Ui.DxTagBoxInterop.Change += DxTagBox_Change; + DevExpress.Ui.DxTagBoxInterop.Copy += DxTagBox_Copy; + DevExpress.Ui.DxTagBoxInterop.Cut += DxTagBox_Cut; + DevExpress.Ui.DxTagBoxInterop.EnterKey += DxTagBox_EnterKey; + DevExpress.Ui.DxTagBoxInterop.FocusIn += DxTagBox_FocusIn; + DevExpress.Ui.DxTagBoxInterop.FocusOut += DxTagBox_FocusOut; + DevExpress.Ui.DxTagBoxInterop.Input += DxTagBox_Input; + DevExpress.Ui.DxTagBoxInterop.KeyDown += DxTagBox_KeyDown; + DevExpress.Ui.DxTagBoxInterop.KeyPress += DxTagBox_KeyPress; + DevExpress.Ui.DxTagBoxInterop.KeyUp += DxTagBox_KeyUp; + DevExpress.Ui.DxTagBoxInterop.Paste += DxTagBox_Paste; + DevExpress.Ui.DxTagBoxInterop.ContentReady += DxTagBox_ContentReady; + DevExpress.Ui.DxTagBoxInterop.Disposing += DxTagBox_Disposing; + DevExpress.Ui.DxTagBoxInterop.OptionChanged += DxTagBox_OptionChanged; + DevExpress.Ui.DxTagBoxInterop.Initialized += DxTagBox_Initialized; } [Parameter] Action MultiTagPreparing { get; set; } @@ -180,9 +1042,169 @@ return DevExpress.Ui.DxTagBoxInterop.Init(dxTarget, options); SelectionChanged?.Invoke(); } } + [Parameter] + Action CustomItemCreating { get; set; } + void DxTagBox_CustomItemCreating(object sender, JQueryEventArgs e) { + if (e.Identifier == Id) { + CustomItemCreating?.Invoke(); + } + } + [Parameter] + Action ItemClick { get; set; } + void DxTagBox_ItemClick(object sender, JQueryEventArgs e) { + if (e.Identifier == Id) { + ItemClick?.Invoke(); + } + } + [Parameter] + Action ValueChanged { get; set; } + void DxTagBox_ValueChanged(object sender, JQueryEventArgs e) { + if (e.Identifier == Id) { + ValueChanged?.Invoke(); + } + } + [Parameter] + Action Closed { get; set; } + void DxTagBox_Closed(object sender, JQueryEventArgs e) { + if (e.Identifier == Id) { + Closed?.Invoke(); + } + } + [Parameter] + Action Opened { get; set; } + void DxTagBox_Opened(object sender, JQueryEventArgs e) { + if (e.Identifier == Id) { + Opened?.Invoke(); + } + } + [Parameter] + Action Change { get; set; } + void DxTagBox_Change(object sender, JQueryEventArgs e) { + if (e.Identifier == Id) { + Change?.Invoke(); + } + } + [Parameter] + Action Copy { get; set; } + void DxTagBox_Copy(object sender, JQueryEventArgs e) { + if (e.Identifier == Id) { + Copy?.Invoke(); + } + } + [Parameter] + Action Cut { get; set; } + void DxTagBox_Cut(object sender, JQueryEventArgs e) { + if (e.Identifier == Id) { + Cut?.Invoke(); + } + } + [Parameter] + Action EnterKey { get; set; } + void DxTagBox_EnterKey(object sender, JQueryEventArgs e) { + if (e.Identifier == Id) { + EnterKey?.Invoke(); + } + } + [Parameter] + Action FocusIn { get; set; } + void DxTagBox_FocusIn(object sender, JQueryEventArgs e) { + if (e.Identifier == Id) { + FocusIn?.Invoke(); + } + } + [Parameter] + Action FocusOut { get; set; } + void DxTagBox_FocusOut(object sender, JQueryEventArgs e) { + if (e.Identifier == Id) { + FocusOut?.Invoke(); + } + } + [Parameter] + Action Input { get; set; } + void DxTagBox_Input(object sender, JQueryEventArgs e) { + if (e.Identifier == Id) { + Input?.Invoke(); + } + } + [Parameter] + Action KeyDown { get; set; } + void DxTagBox_KeyDown(object sender, JQueryEventArgs e) { + if (e.Identifier == Id) { + KeyDown?.Invoke(); + } + } + [Parameter] + Action KeyPress { get; set; } + void DxTagBox_KeyPress(object sender, JQueryEventArgs e) { + if (e.Identifier == Id) { + KeyPress?.Invoke(); + } + } + [Parameter] + Action KeyUp { get; set; } + void DxTagBox_KeyUp(object sender, JQueryEventArgs e) { + if (e.Identifier == Id) { + KeyUp?.Invoke(); + } + } + [Parameter] + Action Paste { get; set; } + void DxTagBox_Paste(object sender, JQueryEventArgs e) { + if (e.Identifier == Id) { + Paste?.Invoke(); + } + } + [Parameter] + Action ContentReady { get; set; } + void DxTagBox_ContentReady(object sender, JQueryEventArgs e) { + if (e.Identifier == Id) { + ContentReady?.Invoke(); + } + } + [Parameter] + Action Disposing { get; set; } + void DxTagBox_Disposing(object sender, JQueryEventArgs e) { + if (e.Identifier == Id) { + Disposing?.Invoke(); + } + } + [Parameter] + Action OptionChanged { get; set; } + void DxTagBox_OptionChanged(object sender, JQueryEventArgs e) { + if (e.Identifier == Id) { + OptionChanged?.Invoke(); + } + } + [Parameter] + Action Initialized { get; set; } + void DxTagBox_Initialized(object sender, JQueryEventArgs e) { + if (e.Identifier == Id) { + Initialized?.Invoke(); + } + } public void Dispose() { DevExpress.Ui.DxTagBoxInterop.MultiTagPreparing -= DxTagBox_MultiTagPreparing; DevExpress.Ui.DxTagBoxInterop.SelectAllValueChanged -= DxTagBox_SelectAllValueChanged; DevExpress.Ui.DxTagBoxInterop.SelectionChanged -= DxTagBox_SelectionChanged; + DevExpress.Ui.DxTagBoxInterop.CustomItemCreating -= DxTagBox_CustomItemCreating; + DevExpress.Ui.DxTagBoxInterop.ItemClick -= DxTagBox_ItemClick; + DevExpress.Ui.DxTagBoxInterop.ValueChanged -= DxTagBox_ValueChanged; + DevExpress.Ui.DxTagBoxInterop.Closed -= DxTagBox_Closed; + DevExpress.Ui.DxTagBoxInterop.Opened -= DxTagBox_Opened; + DevExpress.Ui.DxTagBoxInterop.Change -= DxTagBox_Change; + DevExpress.Ui.DxTagBoxInterop.Copy -= DxTagBox_Copy; + DevExpress.Ui.DxTagBoxInterop.Cut -= DxTagBox_Cut; + DevExpress.Ui.DxTagBoxInterop.EnterKey -= DxTagBox_EnterKey; + DevExpress.Ui.DxTagBoxInterop.FocusIn -= DxTagBox_FocusIn; + DevExpress.Ui.DxTagBoxInterop.FocusOut -= DxTagBox_FocusOut; + DevExpress.Ui.DxTagBoxInterop.Input -= DxTagBox_Input; + DevExpress.Ui.DxTagBoxInterop.KeyDown -= DxTagBox_KeyDown; + DevExpress.Ui.DxTagBoxInterop.KeyPress -= DxTagBox_KeyPress; + DevExpress.Ui.DxTagBoxInterop.KeyUp -= DxTagBox_KeyUp; + DevExpress.Ui.DxTagBoxInterop.Paste -= DxTagBox_Paste; + DevExpress.Ui.DxTagBoxInterop.ContentReady -= DxTagBox_ContentReady; + DevExpress.Ui.DxTagBoxInterop.Disposing -= DxTagBox_Disposing; + DevExpress.Ui.DxTagBoxInterop.OptionChanged -= DxTagBox_OptionChanged; + DevExpress.Ui.DxTagBoxInterop.Initialized -= DxTagBox_Initialized; } } diff --git a/sources/BlazorDevExtreme/Components/DxTextArea.cshtml b/sources/BlazorDevExtreme/Components/DxTextArea.cshtml index eabc924..1b434a8 100644 --- a/sources/BlazorDevExtreme/Components/DxTextArea.cshtml +++ b/sources/BlazorDevExtreme/Components/DxTextArea.cshtml @@ -14,15 +14,63 @@ maxHeight = maxHeight, minHeight = minHeight, spellcheck = spellcheck, + maxLength = maxLength, + mode = mode, + value = value, + focusStateEnabled = focusStateEnabled, + hoverStateEnabled = hoverStateEnabled, + inputAttr = inputAttr, + mask = mask, + maskChar = maskChar, + maskInvalidMessage = maskInvalidMessage, + maskRules = maskRules, + name = name, + placeholder = placeholder, + showClearButton = showClearButton, + showMaskMode = showMaskMode, + text = text, + useMaskedValue = useMaskedValue, + valueChangeEvent = valueChangeEvent, + isValid = isValid, + readOnly = readOnly, + validationError = validationError, + validationMessageMode = validationMessageMode, + accessKey = accessKey, + activeStateEnabled = activeStateEnabled, + disabled = disabled, + hint = hint, + tabIndex = tabIndex, + visible = visible, + bindingOptions = bindingOptions, + elementAttr = elementAttr, + height = height, + rtlEnabled = rtlEnabled, + width = width, + onChangeEnabled = onChangeEnabled, + onCopyEnabled = onCopyEnabled, + onCutEnabled = onCutEnabled, + onEnterKeyEnabled = onEnterKeyEnabled, + onFocusInEnabled = onFocusInEnabled, + onFocusOutEnabled = onFocusOutEnabled, + onInputEnabled = onInputEnabled, + onKeyDownEnabled = onKeyDownEnabled, + onKeyPressEnabled = onKeyPressEnabled, + onKeyUpEnabled = onKeyUpEnabled, + onPasteEnabled = onPasteEnabled, + onValueChangedEnabled = onValueChangedEnabled, + onContentReadyEnabled = onContentReadyEnabled, + onDisposingEnabled = onDisposingEnabled, + onOptionChangedEnabled = onOptionChangedEnabled, + onInitializedEnabled = onInitializedEnabled, }; } protected override Task Init(DevExpress.Ui.DxTextAreaOptions options) { -return DevExpress.Ui.DxTextAreaInterop.Init(dxTarget, options); + return DevExpress.Ui.DxTextAreaInterop.Init(dxTarget, options); } bool? autoResizeEnabled; [Parameter] bool? AutoResizeEnabled { - get => isInitialized ? DevExpress.Ui.DxTextAreaInterop.GetAutoResizeEnabled(dxTarget).Result : autoResizeEnabled; + get => isInitialized ? (bool?)DevExpress.Ui.DxTextAreaInterop.GetAutoResizeEnabled(dxTarget).Result : autoResizeEnabled; set { if (isInitialized) { DevExpress.Ui.DxTextAreaInterop.SetAutoResizeEnabled(dxTarget, value); @@ -58,7 +106,7 @@ return DevExpress.Ui.DxTextAreaInterop.Init(dxTarget, options); bool? spellcheck; [Parameter] bool? Spellcheck { - get => isInitialized ? DevExpress.Ui.DxTextAreaInterop.GetSpellcheck(dxTarget).Result : spellcheck; + get => isInitialized ? (bool?)DevExpress.Ui.DxTextAreaInterop.GetSpellcheck(dxTarget).Result : spellcheck; set { if (isInitialized) { DevExpress.Ui.DxTextAreaInterop.SetSpellcheck(dxTarget, value); @@ -67,9 +115,633 @@ return DevExpress.Ui.DxTextAreaInterop.Init(dxTarget, options); } } } + object maxLength; + [Parameter] + object MaxLength { + get => isInitialized ? DevExpress.Ui.DxTextAreaInterop.GetMaxLength(dxTarget).Result : maxLength; + set { + if (isInitialized) { + DevExpress.Ui.DxTextAreaInterop.SetMaxLength(dxTarget, value); + } else { + this.maxLength = value; + } + } + } + string mode; + [Parameter] + string Mode { + get => isInitialized ? (string)DevExpress.Ui.DxTextAreaInterop.GetMode(dxTarget).Result : mode; + set { + if (isInitialized) { + DevExpress.Ui.DxTextAreaInterop.SetMode(dxTarget, value); + } else { + this.mode = value; + } + } + } + string value; + [Parameter] + string Value { + get => isInitialized ? (string)DevExpress.Ui.DxTextAreaInterop.GetValue(dxTarget).Result : value; + set { + if (isInitialized) { + DevExpress.Ui.DxTextAreaInterop.SetValue(dxTarget, value); + } else { + this.value = value; + } + } + } + bool? focusStateEnabled; + [Parameter] + bool? FocusStateEnabled { + get => isInitialized ? (bool?)DevExpress.Ui.DxTextAreaInterop.GetFocusStateEnabled(dxTarget).Result : focusStateEnabled; + set { + if (isInitialized) { + DevExpress.Ui.DxTextAreaInterop.SetFocusStateEnabled(dxTarget, value); + } else { + this.focusStateEnabled = value; + } + } + } + bool? hoverStateEnabled; + [Parameter] + bool? HoverStateEnabled { + get => isInitialized ? (bool?)DevExpress.Ui.DxTextAreaInterop.GetHoverStateEnabled(dxTarget).Result : hoverStateEnabled; + set { + if (isInitialized) { + DevExpress.Ui.DxTextAreaInterop.SetHoverStateEnabled(dxTarget, value); + } else { + this.hoverStateEnabled = value; + } + } + } + object inputAttr; + [Parameter] + object InputAttr { + get => isInitialized ? DevExpress.Ui.DxTextAreaInterop.GetInputAttr(dxTarget).Result : inputAttr; + set { + if (isInitialized) { + DevExpress.Ui.DxTextAreaInterop.SetInputAttr(dxTarget, value); + } else { + this.inputAttr = value; + } + } + } + string mask; + [Parameter] + string Mask { + get => isInitialized ? (string)DevExpress.Ui.DxTextAreaInterop.GetMask(dxTarget).Result : mask; + set { + if (isInitialized) { + DevExpress.Ui.DxTextAreaInterop.SetMask(dxTarget, value); + } else { + this.mask = value; + } + } + } + string maskChar; + [Parameter] + string MaskChar { + get => isInitialized ? (string)DevExpress.Ui.DxTextAreaInterop.GetMaskChar(dxTarget).Result : maskChar; + set { + if (isInitialized) { + DevExpress.Ui.DxTextAreaInterop.SetMaskChar(dxTarget, value); + } else { + this.maskChar = value; + } + } + } + string maskInvalidMessage; + [Parameter] + string MaskInvalidMessage { + get => isInitialized ? (string)DevExpress.Ui.DxTextAreaInterop.GetMaskInvalidMessage(dxTarget).Result : maskInvalidMessage; + set { + if (isInitialized) { + DevExpress.Ui.DxTextAreaInterop.SetMaskInvalidMessage(dxTarget, value); + } else { + this.maskInvalidMessage = value; + } + } + } + object maskRules; + [Parameter] + object MaskRules { + get => isInitialized ? DevExpress.Ui.DxTextAreaInterop.GetMaskRules(dxTarget).Result : maskRules; + set { + if (isInitialized) { + DevExpress.Ui.DxTextAreaInterop.SetMaskRules(dxTarget, value); + } else { + this.maskRules = value; + } + } + } + string name; + [Parameter] + string Name { + get => isInitialized ? (string)DevExpress.Ui.DxTextAreaInterop.GetName(dxTarget).Result : name; + set { + if (isInitialized) { + DevExpress.Ui.DxTextAreaInterop.SetName(dxTarget, value); + } else { + this.name = value; + } + } + } + string placeholder; + [Parameter] + string Placeholder { + get => isInitialized ? (string)DevExpress.Ui.DxTextAreaInterop.GetPlaceholder(dxTarget).Result : placeholder; + set { + if (isInitialized) { + DevExpress.Ui.DxTextAreaInterop.SetPlaceholder(dxTarget, value); + } else { + this.placeholder = value; + } + } + } + bool? showClearButton; + [Parameter] + bool? ShowClearButton { + get => isInitialized ? (bool?)DevExpress.Ui.DxTextAreaInterop.GetShowClearButton(dxTarget).Result : showClearButton; + set { + if (isInitialized) { + DevExpress.Ui.DxTextAreaInterop.SetShowClearButton(dxTarget, value); + } else { + this.showClearButton = value; + } + } + } + string showMaskMode; + [Parameter] + string ShowMaskMode { + get => isInitialized ? (string)DevExpress.Ui.DxTextAreaInterop.GetShowMaskMode(dxTarget).Result : showMaskMode; + set { + if (isInitialized) { + DevExpress.Ui.DxTextAreaInterop.SetShowMaskMode(dxTarget, value); + } else { + this.showMaskMode = value; + } + } + } + string text; + [Parameter] + string Text { + get => isInitialized ? (string)DevExpress.Ui.DxTextAreaInterop.GetText(dxTarget).Result : text; + set { + if (isInitialized) { + DevExpress.Ui.DxTextAreaInterop.SetText(dxTarget, value); + } else { + this.text = value; + } + } + } + bool? useMaskedValue; + [Parameter] + bool? UseMaskedValue { + get => isInitialized ? (bool?)DevExpress.Ui.DxTextAreaInterop.GetUseMaskedValue(dxTarget).Result : useMaskedValue; + set { + if (isInitialized) { + DevExpress.Ui.DxTextAreaInterop.SetUseMaskedValue(dxTarget, value); + } else { + this.useMaskedValue = value; + } + } + } + string valueChangeEvent; + [Parameter] + string ValueChangeEvent { + get => isInitialized ? (string)DevExpress.Ui.DxTextAreaInterop.GetValueChangeEvent(dxTarget).Result : valueChangeEvent; + set { + if (isInitialized) { + DevExpress.Ui.DxTextAreaInterop.SetValueChangeEvent(dxTarget, value); + } else { + this.valueChangeEvent = value; + } + } + } + bool? isValid; + [Parameter] + bool? IsValid { + get => isInitialized ? (bool?)DevExpress.Ui.DxTextAreaInterop.GetIsValid(dxTarget).Result : isValid; + set { + if (isInitialized) { + DevExpress.Ui.DxTextAreaInterop.SetIsValid(dxTarget, value); + } else { + this.isValid = value; + } + } + } + bool? readOnly; + [Parameter] + bool? ReadOnly { + get => isInitialized ? (bool?)DevExpress.Ui.DxTextAreaInterop.GetReadOnly(dxTarget).Result : readOnly; + set { + if (isInitialized) { + DevExpress.Ui.DxTextAreaInterop.SetReadOnly(dxTarget, value); + } else { + this.readOnly = value; + } + } + } + object validationError; + [Parameter] + object ValidationError { + get => isInitialized ? DevExpress.Ui.DxTextAreaInterop.GetValidationError(dxTarget).Result : validationError; + set { + if (isInitialized) { + DevExpress.Ui.DxTextAreaInterop.SetValidationError(dxTarget, value); + } else { + this.validationError = value; + } + } + } + string validationMessageMode; + [Parameter] + string ValidationMessageMode { + get => isInitialized ? (string)DevExpress.Ui.DxTextAreaInterop.GetValidationMessageMode(dxTarget).Result : validationMessageMode; + set { + if (isInitialized) { + DevExpress.Ui.DxTextAreaInterop.SetValidationMessageMode(dxTarget, value); + } else { + this.validationMessageMode = value; + } + } + } + string accessKey; + [Parameter] + string AccessKey { + get => isInitialized ? (string)DevExpress.Ui.DxTextAreaInterop.GetAccessKey(dxTarget).Result : accessKey; + set { + if (isInitialized) { + DevExpress.Ui.DxTextAreaInterop.SetAccessKey(dxTarget, value); + } else { + this.accessKey = value; + } + } + } + bool? activeStateEnabled; + [Parameter] + bool? ActiveStateEnabled { + get => isInitialized ? (bool?)DevExpress.Ui.DxTextAreaInterop.GetActiveStateEnabled(dxTarget).Result : activeStateEnabled; + set { + if (isInitialized) { + DevExpress.Ui.DxTextAreaInterop.SetActiveStateEnabled(dxTarget, value); + } else { + this.activeStateEnabled = value; + } + } + } + bool? disabled; + [Parameter] + bool? Disabled { + get => isInitialized ? (bool?)DevExpress.Ui.DxTextAreaInterop.GetDisabled(dxTarget).Result : disabled; + set { + if (isInitialized) { + DevExpress.Ui.DxTextAreaInterop.SetDisabled(dxTarget, value); + } else { + this.disabled = value; + } + } + } + string hint; + [Parameter] + string Hint { + get => isInitialized ? (string)DevExpress.Ui.DxTextAreaInterop.GetHint(dxTarget).Result : hint; + set { + if (isInitialized) { + DevExpress.Ui.DxTextAreaInterop.SetHint(dxTarget, value); + } else { + this.hint = value; + } + } + } + float? tabIndex; + [Parameter] + float? TabIndex { + get => isInitialized ? (float?)DevExpress.Ui.DxTextAreaInterop.GetTabIndex(dxTarget).Result : tabIndex; + set { + if (isInitialized) { + DevExpress.Ui.DxTextAreaInterop.SetTabIndex(dxTarget, value); + } else { + this.tabIndex = value; + } + } + } + bool? visible; + [Parameter] + bool? Visible { + get => isInitialized ? (bool?)DevExpress.Ui.DxTextAreaInterop.GetVisible(dxTarget).Result : visible; + set { + if (isInitialized) { + DevExpress.Ui.DxTextAreaInterop.SetVisible(dxTarget, value); + } else { + this.visible = value; + } + } + } + object bindingOptions; + [Parameter] + object BindingOptions { + get => isInitialized ? DevExpress.Ui.DxTextAreaInterop.GetBindingOptions(dxTarget).Result : bindingOptions; + set { + if (isInitialized) { + DevExpress.Ui.DxTextAreaInterop.SetBindingOptions(dxTarget, value); + } else { + this.bindingOptions = value; + } + } + } + object elementAttr; + [Parameter] + object ElementAttr { + get => isInitialized ? DevExpress.Ui.DxTextAreaInterop.GetElementAttr(dxTarget).Result : elementAttr; + set { + if (isInitialized) { + DevExpress.Ui.DxTextAreaInterop.SetElementAttr(dxTarget, value); + } else { + this.elementAttr = value; + } + } + } + object height; + [Parameter] + object Height { + get => isInitialized ? DevExpress.Ui.DxTextAreaInterop.GetHeight(dxTarget).Result : height; + set { + if (isInitialized) { + DevExpress.Ui.DxTextAreaInterop.SetHeight(dxTarget, value); + } else { + this.height = value; + } + } + } + bool? rtlEnabled; + [Parameter] + bool? RtlEnabled { + get => isInitialized ? (bool?)DevExpress.Ui.DxTextAreaInterop.GetRtlEnabled(dxTarget).Result : rtlEnabled; + set { + if (isInitialized) { + DevExpress.Ui.DxTextAreaInterop.SetRtlEnabled(dxTarget, value); + } else { + this.rtlEnabled = value; + } + } + } + object width; + [Parameter] + object Width { + get => isInitialized ? DevExpress.Ui.DxTextAreaInterop.GetWidth(dxTarget).Result : width; + set { + if (isInitialized) { + DevExpress.Ui.DxTextAreaInterop.SetWidth(dxTarget, value); + } else { + this.width = value; + } + } + } + bool? onChangeEnabled; + [Parameter] + bool? OnChangeEnabled { + get => onChangeEnabled; + set => this.onChangeEnabled = value; + } + bool? onCopyEnabled; + [Parameter] + bool? OnCopyEnabled { + get => onCopyEnabled; + set => this.onCopyEnabled = value; + } + bool? onCutEnabled; + [Parameter] + bool? OnCutEnabled { + get => onCutEnabled; + set => this.onCutEnabled = value; + } + bool? onEnterKeyEnabled; + [Parameter] + bool? OnEnterKeyEnabled { + get => onEnterKeyEnabled; + set => this.onEnterKeyEnabled = value; + } + bool? onFocusInEnabled; + [Parameter] + bool? OnFocusInEnabled { + get => onFocusInEnabled; + set => this.onFocusInEnabled = value; + } + bool? onFocusOutEnabled; + [Parameter] + bool? OnFocusOutEnabled { + get => onFocusOutEnabled; + set => this.onFocusOutEnabled = value; + } + bool? onInputEnabled; + [Parameter] + bool? OnInputEnabled { + get => onInputEnabled; + set => this.onInputEnabled = value; + } + bool? onKeyDownEnabled; + [Parameter] + bool? OnKeyDownEnabled { + get => onKeyDownEnabled; + set => this.onKeyDownEnabled = value; + } + bool? onKeyPressEnabled; + [Parameter] + bool? OnKeyPressEnabled { + get => onKeyPressEnabled; + set => this.onKeyPressEnabled = value; + } + bool? onKeyUpEnabled; + [Parameter] + bool? OnKeyUpEnabled { + get => onKeyUpEnabled; + set => this.onKeyUpEnabled = value; + } + bool? onPasteEnabled; + [Parameter] + bool? OnPasteEnabled { + get => onPasteEnabled; + set => this.onPasteEnabled = value; + } + bool? onValueChangedEnabled; + [Parameter] + bool? OnValueChangedEnabled { + get => onValueChangedEnabled; + set => this.onValueChangedEnabled = value; + } + bool? onContentReadyEnabled; + [Parameter] + bool? OnContentReadyEnabled { + get => onContentReadyEnabled; + set => this.onContentReadyEnabled = value; + } + bool? onDisposingEnabled; + [Parameter] + bool? OnDisposingEnabled { + get => onDisposingEnabled; + set => this.onDisposingEnabled = value; + } + bool? onOptionChangedEnabled; + [Parameter] + bool? OnOptionChangedEnabled { + get => onOptionChangedEnabled; + set => this.onOptionChangedEnabled = value; + } + bool? onInitializedEnabled; + [Parameter] + bool? OnInitializedEnabled { + get => onInitializedEnabled; + set => this.onInitializedEnabled = value; + } protected override async Task OnInitAsync() { await base.OnInitAsync(); + DevExpress.Ui.DxTextAreaInterop.Change += DxTextArea_Change; + DevExpress.Ui.DxTextAreaInterop.Copy += DxTextArea_Copy; + DevExpress.Ui.DxTextAreaInterop.Cut += DxTextArea_Cut; + DevExpress.Ui.DxTextAreaInterop.EnterKey += DxTextArea_EnterKey; + DevExpress.Ui.DxTextAreaInterop.FocusIn += DxTextArea_FocusIn; + DevExpress.Ui.DxTextAreaInterop.FocusOut += DxTextArea_FocusOut; + DevExpress.Ui.DxTextAreaInterop.Input += DxTextArea_Input; + DevExpress.Ui.DxTextAreaInterop.KeyDown += DxTextArea_KeyDown; + DevExpress.Ui.DxTextAreaInterop.KeyPress += DxTextArea_KeyPress; + DevExpress.Ui.DxTextAreaInterop.KeyUp += DxTextArea_KeyUp; + DevExpress.Ui.DxTextAreaInterop.Paste += DxTextArea_Paste; + DevExpress.Ui.DxTextAreaInterop.ValueChanged += DxTextArea_ValueChanged; + DevExpress.Ui.DxTextAreaInterop.ContentReady += DxTextArea_ContentReady; + DevExpress.Ui.DxTextAreaInterop.Disposing += DxTextArea_Disposing; + DevExpress.Ui.DxTextAreaInterop.OptionChanged += DxTextArea_OptionChanged; + DevExpress.Ui.DxTextAreaInterop.Initialized += DxTextArea_Initialized; + } + [Parameter] + Action Change { get; set; } + void DxTextArea_Change(object sender, JQueryEventArgs e) { + if (e.Identifier == Id) { + Change?.Invoke(); + } + } + [Parameter] + Action Copy { get; set; } + void DxTextArea_Copy(object sender, JQueryEventArgs e) { + if (e.Identifier == Id) { + Copy?.Invoke(); + } + } + [Parameter] + Action Cut { get; set; } + void DxTextArea_Cut(object sender, JQueryEventArgs e) { + if (e.Identifier == Id) { + Cut?.Invoke(); + } + } + [Parameter] + Action EnterKey { get; set; } + void DxTextArea_EnterKey(object sender, JQueryEventArgs e) { + if (e.Identifier == Id) { + EnterKey?.Invoke(); + } + } + [Parameter] + Action FocusIn { get; set; } + void DxTextArea_FocusIn(object sender, JQueryEventArgs e) { + if (e.Identifier == Id) { + FocusIn?.Invoke(); + } + } + [Parameter] + Action FocusOut { get; set; } + void DxTextArea_FocusOut(object sender, JQueryEventArgs e) { + if (e.Identifier == Id) { + FocusOut?.Invoke(); + } + } + [Parameter] + Action Input { get; set; } + void DxTextArea_Input(object sender, JQueryEventArgs e) { + if (e.Identifier == Id) { + Input?.Invoke(); + } + } + [Parameter] + Action KeyDown { get; set; } + void DxTextArea_KeyDown(object sender, JQueryEventArgs e) { + if (e.Identifier == Id) { + KeyDown?.Invoke(); + } + } + [Parameter] + Action KeyPress { get; set; } + void DxTextArea_KeyPress(object sender, JQueryEventArgs e) { + if (e.Identifier == Id) { + KeyPress?.Invoke(); + } + } + [Parameter] + Action KeyUp { get; set; } + void DxTextArea_KeyUp(object sender, JQueryEventArgs e) { + if (e.Identifier == Id) { + KeyUp?.Invoke(); + } + } + [Parameter] + Action Paste { get; set; } + void DxTextArea_Paste(object sender, JQueryEventArgs e) { + if (e.Identifier == Id) { + Paste?.Invoke(); + } + } + [Parameter] + Action ValueChanged { get; set; } + void DxTextArea_ValueChanged(object sender, JQueryEventArgs e) { + if (e.Identifier == Id) { + ValueChanged?.Invoke(); + } + } + [Parameter] + Action ContentReady { get; set; } + void DxTextArea_ContentReady(object sender, JQueryEventArgs e) { + if (e.Identifier == Id) { + ContentReady?.Invoke(); + } + } + [Parameter] + Action Disposing { get; set; } + void DxTextArea_Disposing(object sender, JQueryEventArgs e) { + if (e.Identifier == Id) { + Disposing?.Invoke(); + } + } + [Parameter] + Action OptionChanged { get; set; } + void DxTextArea_OptionChanged(object sender, JQueryEventArgs e) { + if (e.Identifier == Id) { + OptionChanged?.Invoke(); + } + } + [Parameter] + Action Initialized { get; set; } + void DxTextArea_Initialized(object sender, JQueryEventArgs e) { + if (e.Identifier == Id) { + Initialized?.Invoke(); + } } public void Dispose() { + DevExpress.Ui.DxTextAreaInterop.Change -= DxTextArea_Change; + DevExpress.Ui.DxTextAreaInterop.Copy -= DxTextArea_Copy; + DevExpress.Ui.DxTextAreaInterop.Cut -= DxTextArea_Cut; + DevExpress.Ui.DxTextAreaInterop.EnterKey -= DxTextArea_EnterKey; + DevExpress.Ui.DxTextAreaInterop.FocusIn -= DxTextArea_FocusIn; + DevExpress.Ui.DxTextAreaInterop.FocusOut -= DxTextArea_FocusOut; + DevExpress.Ui.DxTextAreaInterop.Input -= DxTextArea_Input; + DevExpress.Ui.DxTextAreaInterop.KeyDown -= DxTextArea_KeyDown; + DevExpress.Ui.DxTextAreaInterop.KeyPress -= DxTextArea_KeyPress; + DevExpress.Ui.DxTextAreaInterop.KeyUp -= DxTextArea_KeyUp; + DevExpress.Ui.DxTextAreaInterop.Paste -= DxTextArea_Paste; + DevExpress.Ui.DxTextAreaInterop.ValueChanged -= DxTextArea_ValueChanged; + DevExpress.Ui.DxTextAreaInterop.ContentReady -= DxTextArea_ContentReady; + DevExpress.Ui.DxTextAreaInterop.Disposing -= DxTextArea_Disposing; + DevExpress.Ui.DxTextAreaInterop.OptionChanged -= DxTextArea_OptionChanged; + DevExpress.Ui.DxTextAreaInterop.Initialized -= DxTextArea_Initialized; } } diff --git a/sources/BlazorDevExtreme/Components/DxTextBox.cshtml b/sources/BlazorDevExtreme/Components/DxTextBox.cshtml index cd10541..27ce819 100644 --- a/sources/BlazorDevExtreme/Components/DxTextBox.cshtml +++ b/sources/BlazorDevExtreme/Components/DxTextBox.cshtml @@ -13,10 +13,56 @@ maxLength = maxLength, mode = mode, value = value, + focusStateEnabled = focusStateEnabled, + hoverStateEnabled = hoverStateEnabled, + inputAttr = inputAttr, + mask = mask, + maskChar = maskChar, + maskInvalidMessage = maskInvalidMessage, + maskRules = maskRules, + name = name, + placeholder = placeholder, + showClearButton = showClearButton, + showMaskMode = showMaskMode, + spellcheck = spellcheck, + text = text, + useMaskedValue = useMaskedValue, + valueChangeEvent = valueChangeEvent, + isValid = isValid, + readOnly = readOnly, + validationError = validationError, + validationMessageMode = validationMessageMode, + accessKey = accessKey, + activeStateEnabled = activeStateEnabled, + disabled = disabled, + hint = hint, + tabIndex = tabIndex, + visible = visible, + bindingOptions = bindingOptions, + elementAttr = elementAttr, + height = height, + rtlEnabled = rtlEnabled, + width = width, + onChangeEnabled = onChangeEnabled, + onCopyEnabled = onCopyEnabled, + onCutEnabled = onCutEnabled, + onEnterKeyEnabled = onEnterKeyEnabled, + onFocusInEnabled = onFocusInEnabled, + onFocusOutEnabled = onFocusOutEnabled, + onInputEnabled = onInputEnabled, + onKeyDownEnabled = onKeyDownEnabled, + onKeyPressEnabled = onKeyPressEnabled, + onKeyUpEnabled = onKeyUpEnabled, + onPasteEnabled = onPasteEnabled, + onValueChangedEnabled = onValueChangedEnabled, + onContentReadyEnabled = onContentReadyEnabled, + onDisposingEnabled = onDisposingEnabled, + onOptionChangedEnabled = onOptionChangedEnabled, + onInitializedEnabled = onInitializedEnabled, }; } protected override Task Init(DevExpress.Ui.DxTextBoxOptions options) { -return DevExpress.Ui.DxTextBoxInterop.Init(dxTarget, options); + return DevExpress.Ui.DxTextBoxInterop.Init(dxTarget, options); } object maxLength; [Parameter] @@ -33,7 +79,7 @@ return DevExpress.Ui.DxTextBoxInterop.Init(dxTarget, options); string mode; [Parameter] string Mode { - get => isInitialized ? DevExpress.Ui.DxTextBoxInterop.GetMode(dxTarget).Result : mode; + get => isInitialized ? (string)DevExpress.Ui.DxTextBoxInterop.GetMode(dxTarget).Result : mode; set { if (isInitialized) { DevExpress.Ui.DxTextBoxInterop.SetMode(dxTarget, value); @@ -45,7 +91,7 @@ return DevExpress.Ui.DxTextBoxInterop.Init(dxTarget, options); string value; [Parameter] string Value { - get => isInitialized ? DevExpress.Ui.DxTextBoxInterop.GetValue(dxTarget).Result : value; + get => isInitialized ? (string)DevExpress.Ui.DxTextBoxInterop.GetValue(dxTarget).Result : value; set { if (isInitialized) { DevExpress.Ui.DxTextBoxInterop.SetValue(dxTarget, value); @@ -54,9 +100,609 @@ return DevExpress.Ui.DxTextBoxInterop.Init(dxTarget, options); } } } + bool? focusStateEnabled; + [Parameter] + bool? FocusStateEnabled { + get => isInitialized ? (bool?)DevExpress.Ui.DxTextBoxInterop.GetFocusStateEnabled(dxTarget).Result : focusStateEnabled; + set { + if (isInitialized) { + DevExpress.Ui.DxTextBoxInterop.SetFocusStateEnabled(dxTarget, value); + } else { + this.focusStateEnabled = value; + } + } + } + bool? hoverStateEnabled; + [Parameter] + bool? HoverStateEnabled { + get => isInitialized ? (bool?)DevExpress.Ui.DxTextBoxInterop.GetHoverStateEnabled(dxTarget).Result : hoverStateEnabled; + set { + if (isInitialized) { + DevExpress.Ui.DxTextBoxInterop.SetHoverStateEnabled(dxTarget, value); + } else { + this.hoverStateEnabled = value; + } + } + } + object inputAttr; + [Parameter] + object InputAttr { + get => isInitialized ? DevExpress.Ui.DxTextBoxInterop.GetInputAttr(dxTarget).Result : inputAttr; + set { + if (isInitialized) { + DevExpress.Ui.DxTextBoxInterop.SetInputAttr(dxTarget, value); + } else { + this.inputAttr = value; + } + } + } + string mask; + [Parameter] + string Mask { + get => isInitialized ? (string)DevExpress.Ui.DxTextBoxInterop.GetMask(dxTarget).Result : mask; + set { + if (isInitialized) { + DevExpress.Ui.DxTextBoxInterop.SetMask(dxTarget, value); + } else { + this.mask = value; + } + } + } + string maskChar; + [Parameter] + string MaskChar { + get => isInitialized ? (string)DevExpress.Ui.DxTextBoxInterop.GetMaskChar(dxTarget).Result : maskChar; + set { + if (isInitialized) { + DevExpress.Ui.DxTextBoxInterop.SetMaskChar(dxTarget, value); + } else { + this.maskChar = value; + } + } + } + string maskInvalidMessage; + [Parameter] + string MaskInvalidMessage { + get => isInitialized ? (string)DevExpress.Ui.DxTextBoxInterop.GetMaskInvalidMessage(dxTarget).Result : maskInvalidMessage; + set { + if (isInitialized) { + DevExpress.Ui.DxTextBoxInterop.SetMaskInvalidMessage(dxTarget, value); + } else { + this.maskInvalidMessage = value; + } + } + } + object maskRules; + [Parameter] + object MaskRules { + get => isInitialized ? DevExpress.Ui.DxTextBoxInterop.GetMaskRules(dxTarget).Result : maskRules; + set { + if (isInitialized) { + DevExpress.Ui.DxTextBoxInterop.SetMaskRules(dxTarget, value); + } else { + this.maskRules = value; + } + } + } + string name; + [Parameter] + string Name { + get => isInitialized ? (string)DevExpress.Ui.DxTextBoxInterop.GetName(dxTarget).Result : name; + set { + if (isInitialized) { + DevExpress.Ui.DxTextBoxInterop.SetName(dxTarget, value); + } else { + this.name = value; + } + } + } + string placeholder; + [Parameter] + string Placeholder { + get => isInitialized ? (string)DevExpress.Ui.DxTextBoxInterop.GetPlaceholder(dxTarget).Result : placeholder; + set { + if (isInitialized) { + DevExpress.Ui.DxTextBoxInterop.SetPlaceholder(dxTarget, value); + } else { + this.placeholder = value; + } + } + } + bool? showClearButton; + [Parameter] + bool? ShowClearButton { + get => isInitialized ? (bool?)DevExpress.Ui.DxTextBoxInterop.GetShowClearButton(dxTarget).Result : showClearButton; + set { + if (isInitialized) { + DevExpress.Ui.DxTextBoxInterop.SetShowClearButton(dxTarget, value); + } else { + this.showClearButton = value; + } + } + } + string showMaskMode; + [Parameter] + string ShowMaskMode { + get => isInitialized ? (string)DevExpress.Ui.DxTextBoxInterop.GetShowMaskMode(dxTarget).Result : showMaskMode; + set { + if (isInitialized) { + DevExpress.Ui.DxTextBoxInterop.SetShowMaskMode(dxTarget, value); + } else { + this.showMaskMode = value; + } + } + } + bool? spellcheck; + [Parameter] + bool? Spellcheck { + get => isInitialized ? (bool?)DevExpress.Ui.DxTextBoxInterop.GetSpellcheck(dxTarget).Result : spellcheck; + set { + if (isInitialized) { + DevExpress.Ui.DxTextBoxInterop.SetSpellcheck(dxTarget, value); + } else { + this.spellcheck = value; + } + } + } + string text; + [Parameter] + string Text { + get => isInitialized ? (string)DevExpress.Ui.DxTextBoxInterop.GetText(dxTarget).Result : text; + set { + if (isInitialized) { + DevExpress.Ui.DxTextBoxInterop.SetText(dxTarget, value); + } else { + this.text = value; + } + } + } + bool? useMaskedValue; + [Parameter] + bool? UseMaskedValue { + get => isInitialized ? (bool?)DevExpress.Ui.DxTextBoxInterop.GetUseMaskedValue(dxTarget).Result : useMaskedValue; + set { + if (isInitialized) { + DevExpress.Ui.DxTextBoxInterop.SetUseMaskedValue(dxTarget, value); + } else { + this.useMaskedValue = value; + } + } + } + string valueChangeEvent; + [Parameter] + string ValueChangeEvent { + get => isInitialized ? (string)DevExpress.Ui.DxTextBoxInterop.GetValueChangeEvent(dxTarget).Result : valueChangeEvent; + set { + if (isInitialized) { + DevExpress.Ui.DxTextBoxInterop.SetValueChangeEvent(dxTarget, value); + } else { + this.valueChangeEvent = value; + } + } + } + bool? isValid; + [Parameter] + bool? IsValid { + get => isInitialized ? (bool?)DevExpress.Ui.DxTextBoxInterop.GetIsValid(dxTarget).Result : isValid; + set { + if (isInitialized) { + DevExpress.Ui.DxTextBoxInterop.SetIsValid(dxTarget, value); + } else { + this.isValid = value; + } + } + } + bool? readOnly; + [Parameter] + bool? ReadOnly { + get => isInitialized ? (bool?)DevExpress.Ui.DxTextBoxInterop.GetReadOnly(dxTarget).Result : readOnly; + set { + if (isInitialized) { + DevExpress.Ui.DxTextBoxInterop.SetReadOnly(dxTarget, value); + } else { + this.readOnly = value; + } + } + } + object validationError; + [Parameter] + object ValidationError { + get => isInitialized ? DevExpress.Ui.DxTextBoxInterop.GetValidationError(dxTarget).Result : validationError; + set { + if (isInitialized) { + DevExpress.Ui.DxTextBoxInterop.SetValidationError(dxTarget, value); + } else { + this.validationError = value; + } + } + } + string validationMessageMode; + [Parameter] + string ValidationMessageMode { + get => isInitialized ? (string)DevExpress.Ui.DxTextBoxInterop.GetValidationMessageMode(dxTarget).Result : validationMessageMode; + set { + if (isInitialized) { + DevExpress.Ui.DxTextBoxInterop.SetValidationMessageMode(dxTarget, value); + } else { + this.validationMessageMode = value; + } + } + } + string accessKey; + [Parameter] + string AccessKey { + get => isInitialized ? (string)DevExpress.Ui.DxTextBoxInterop.GetAccessKey(dxTarget).Result : accessKey; + set { + if (isInitialized) { + DevExpress.Ui.DxTextBoxInterop.SetAccessKey(dxTarget, value); + } else { + this.accessKey = value; + } + } + } + bool? activeStateEnabled; + [Parameter] + bool? ActiveStateEnabled { + get => isInitialized ? (bool?)DevExpress.Ui.DxTextBoxInterop.GetActiveStateEnabled(dxTarget).Result : activeStateEnabled; + set { + if (isInitialized) { + DevExpress.Ui.DxTextBoxInterop.SetActiveStateEnabled(dxTarget, value); + } else { + this.activeStateEnabled = value; + } + } + } + bool? disabled; + [Parameter] + bool? Disabled { + get => isInitialized ? (bool?)DevExpress.Ui.DxTextBoxInterop.GetDisabled(dxTarget).Result : disabled; + set { + if (isInitialized) { + DevExpress.Ui.DxTextBoxInterop.SetDisabled(dxTarget, value); + } else { + this.disabled = value; + } + } + } + string hint; + [Parameter] + string Hint { + get => isInitialized ? (string)DevExpress.Ui.DxTextBoxInterop.GetHint(dxTarget).Result : hint; + set { + if (isInitialized) { + DevExpress.Ui.DxTextBoxInterop.SetHint(dxTarget, value); + } else { + this.hint = value; + } + } + } + float? tabIndex; + [Parameter] + float? TabIndex { + get => isInitialized ? (float?)DevExpress.Ui.DxTextBoxInterop.GetTabIndex(dxTarget).Result : tabIndex; + set { + if (isInitialized) { + DevExpress.Ui.DxTextBoxInterop.SetTabIndex(dxTarget, value); + } else { + this.tabIndex = value; + } + } + } + bool? visible; + [Parameter] + bool? Visible { + get => isInitialized ? (bool?)DevExpress.Ui.DxTextBoxInterop.GetVisible(dxTarget).Result : visible; + set { + if (isInitialized) { + DevExpress.Ui.DxTextBoxInterop.SetVisible(dxTarget, value); + } else { + this.visible = value; + } + } + } + object bindingOptions; + [Parameter] + object BindingOptions { + get => isInitialized ? DevExpress.Ui.DxTextBoxInterop.GetBindingOptions(dxTarget).Result : bindingOptions; + set { + if (isInitialized) { + DevExpress.Ui.DxTextBoxInterop.SetBindingOptions(dxTarget, value); + } else { + this.bindingOptions = value; + } + } + } + object elementAttr; + [Parameter] + object ElementAttr { + get => isInitialized ? DevExpress.Ui.DxTextBoxInterop.GetElementAttr(dxTarget).Result : elementAttr; + set { + if (isInitialized) { + DevExpress.Ui.DxTextBoxInterop.SetElementAttr(dxTarget, value); + } else { + this.elementAttr = value; + } + } + } + object height; + [Parameter] + object Height { + get => isInitialized ? DevExpress.Ui.DxTextBoxInterop.GetHeight(dxTarget).Result : height; + set { + if (isInitialized) { + DevExpress.Ui.DxTextBoxInterop.SetHeight(dxTarget, value); + } else { + this.height = value; + } + } + } + bool? rtlEnabled; + [Parameter] + bool? RtlEnabled { + get => isInitialized ? (bool?)DevExpress.Ui.DxTextBoxInterop.GetRtlEnabled(dxTarget).Result : rtlEnabled; + set { + if (isInitialized) { + DevExpress.Ui.DxTextBoxInterop.SetRtlEnabled(dxTarget, value); + } else { + this.rtlEnabled = value; + } + } + } + object width; + [Parameter] + object Width { + get => isInitialized ? DevExpress.Ui.DxTextBoxInterop.GetWidth(dxTarget).Result : width; + set { + if (isInitialized) { + DevExpress.Ui.DxTextBoxInterop.SetWidth(dxTarget, value); + } else { + this.width = value; + } + } + } + bool? onChangeEnabled; + [Parameter] + bool? OnChangeEnabled { + get => onChangeEnabled; + set => this.onChangeEnabled = value; + } + bool? onCopyEnabled; + [Parameter] + bool? OnCopyEnabled { + get => onCopyEnabled; + set => this.onCopyEnabled = value; + } + bool? onCutEnabled; + [Parameter] + bool? OnCutEnabled { + get => onCutEnabled; + set => this.onCutEnabled = value; + } + bool? onEnterKeyEnabled; + [Parameter] + bool? OnEnterKeyEnabled { + get => onEnterKeyEnabled; + set => this.onEnterKeyEnabled = value; + } + bool? onFocusInEnabled; + [Parameter] + bool? OnFocusInEnabled { + get => onFocusInEnabled; + set => this.onFocusInEnabled = value; + } + bool? onFocusOutEnabled; + [Parameter] + bool? OnFocusOutEnabled { + get => onFocusOutEnabled; + set => this.onFocusOutEnabled = value; + } + bool? onInputEnabled; + [Parameter] + bool? OnInputEnabled { + get => onInputEnabled; + set => this.onInputEnabled = value; + } + bool? onKeyDownEnabled; + [Parameter] + bool? OnKeyDownEnabled { + get => onKeyDownEnabled; + set => this.onKeyDownEnabled = value; + } + bool? onKeyPressEnabled; + [Parameter] + bool? OnKeyPressEnabled { + get => onKeyPressEnabled; + set => this.onKeyPressEnabled = value; + } + bool? onKeyUpEnabled; + [Parameter] + bool? OnKeyUpEnabled { + get => onKeyUpEnabled; + set => this.onKeyUpEnabled = value; + } + bool? onPasteEnabled; + [Parameter] + bool? OnPasteEnabled { + get => onPasteEnabled; + set => this.onPasteEnabled = value; + } + bool? onValueChangedEnabled; + [Parameter] + bool? OnValueChangedEnabled { + get => onValueChangedEnabled; + set => this.onValueChangedEnabled = value; + } + bool? onContentReadyEnabled; + [Parameter] + bool? OnContentReadyEnabled { + get => onContentReadyEnabled; + set => this.onContentReadyEnabled = value; + } + bool? onDisposingEnabled; + [Parameter] + bool? OnDisposingEnabled { + get => onDisposingEnabled; + set => this.onDisposingEnabled = value; + } + bool? onOptionChangedEnabled; + [Parameter] + bool? OnOptionChangedEnabled { + get => onOptionChangedEnabled; + set => this.onOptionChangedEnabled = value; + } + bool? onInitializedEnabled; + [Parameter] + bool? OnInitializedEnabled { + get => onInitializedEnabled; + set => this.onInitializedEnabled = value; + } protected override async Task OnInitAsync() { await base.OnInitAsync(); + DevExpress.Ui.DxTextBoxInterop.Change += DxTextBox_Change; + DevExpress.Ui.DxTextBoxInterop.Copy += DxTextBox_Copy; + DevExpress.Ui.DxTextBoxInterop.Cut += DxTextBox_Cut; + DevExpress.Ui.DxTextBoxInterop.EnterKey += DxTextBox_EnterKey; + DevExpress.Ui.DxTextBoxInterop.FocusIn += DxTextBox_FocusIn; + DevExpress.Ui.DxTextBoxInterop.FocusOut += DxTextBox_FocusOut; + DevExpress.Ui.DxTextBoxInterop.Input += DxTextBox_Input; + DevExpress.Ui.DxTextBoxInterop.KeyDown += DxTextBox_KeyDown; + DevExpress.Ui.DxTextBoxInterop.KeyPress += DxTextBox_KeyPress; + DevExpress.Ui.DxTextBoxInterop.KeyUp += DxTextBox_KeyUp; + DevExpress.Ui.DxTextBoxInterop.Paste += DxTextBox_Paste; + DevExpress.Ui.DxTextBoxInterop.ValueChanged += DxTextBox_ValueChanged; + DevExpress.Ui.DxTextBoxInterop.ContentReady += DxTextBox_ContentReady; + DevExpress.Ui.DxTextBoxInterop.Disposing += DxTextBox_Disposing; + DevExpress.Ui.DxTextBoxInterop.OptionChanged += DxTextBox_OptionChanged; + DevExpress.Ui.DxTextBoxInterop.Initialized += DxTextBox_Initialized; + } + [Parameter] + Action Change { get; set; } + void DxTextBox_Change(object sender, JQueryEventArgs e) { + if (e.Identifier == Id) { + Change?.Invoke(); + } + } + [Parameter] + Action Copy { get; set; } + void DxTextBox_Copy(object sender, JQueryEventArgs e) { + if (e.Identifier == Id) { + Copy?.Invoke(); + } + } + [Parameter] + Action Cut { get; set; } + void DxTextBox_Cut(object sender, JQueryEventArgs e) { + if (e.Identifier == Id) { + Cut?.Invoke(); + } + } + [Parameter] + Action EnterKey { get; set; } + void DxTextBox_EnterKey(object sender, JQueryEventArgs e) { + if (e.Identifier == Id) { + EnterKey?.Invoke(); + } + } + [Parameter] + Action FocusIn { get; set; } + void DxTextBox_FocusIn(object sender, JQueryEventArgs e) { + if (e.Identifier == Id) { + FocusIn?.Invoke(); + } + } + [Parameter] + Action FocusOut { get; set; } + void DxTextBox_FocusOut(object sender, JQueryEventArgs e) { + if (e.Identifier == Id) { + FocusOut?.Invoke(); + } + } + [Parameter] + Action Input { get; set; } + void DxTextBox_Input(object sender, JQueryEventArgs e) { + if (e.Identifier == Id) { + Input?.Invoke(); + } + } + [Parameter] + Action KeyDown { get; set; } + void DxTextBox_KeyDown(object sender, JQueryEventArgs e) { + if (e.Identifier == Id) { + KeyDown?.Invoke(); + } + } + [Parameter] + Action KeyPress { get; set; } + void DxTextBox_KeyPress(object sender, JQueryEventArgs e) { + if (e.Identifier == Id) { + KeyPress?.Invoke(); + } + } + [Parameter] + Action KeyUp { get; set; } + void DxTextBox_KeyUp(object sender, JQueryEventArgs e) { + if (e.Identifier == Id) { + KeyUp?.Invoke(); + } + } + [Parameter] + Action Paste { get; set; } + void DxTextBox_Paste(object sender, JQueryEventArgs e) { + if (e.Identifier == Id) { + Paste?.Invoke(); + } + } + [Parameter] + Action ValueChanged { get; set; } + void DxTextBox_ValueChanged(object sender, JQueryEventArgs e) { + if (e.Identifier == Id) { + ValueChanged?.Invoke(); + } + } + [Parameter] + Action ContentReady { get; set; } + void DxTextBox_ContentReady(object sender, JQueryEventArgs e) { + if (e.Identifier == Id) { + ContentReady?.Invoke(); + } + } + [Parameter] + Action Disposing { get; set; } + void DxTextBox_Disposing(object sender, JQueryEventArgs e) { + if (e.Identifier == Id) { + Disposing?.Invoke(); + } + } + [Parameter] + Action OptionChanged { get; set; } + void DxTextBox_OptionChanged(object sender, JQueryEventArgs e) { + if (e.Identifier == Id) { + OptionChanged?.Invoke(); + } + } + [Parameter] + Action Initialized { get; set; } + void DxTextBox_Initialized(object sender, JQueryEventArgs e) { + if (e.Identifier == Id) { + Initialized?.Invoke(); + } } public void Dispose() { + DevExpress.Ui.DxTextBoxInterop.Change -= DxTextBox_Change; + DevExpress.Ui.DxTextBoxInterop.Copy -= DxTextBox_Copy; + DevExpress.Ui.DxTextBoxInterop.Cut -= DxTextBox_Cut; + DevExpress.Ui.DxTextBoxInterop.EnterKey -= DxTextBox_EnterKey; + DevExpress.Ui.DxTextBoxInterop.FocusIn -= DxTextBox_FocusIn; + DevExpress.Ui.DxTextBoxInterop.FocusOut -= DxTextBox_FocusOut; + DevExpress.Ui.DxTextBoxInterop.Input -= DxTextBox_Input; + DevExpress.Ui.DxTextBoxInterop.KeyDown -= DxTextBox_KeyDown; + DevExpress.Ui.DxTextBoxInterop.KeyPress -= DxTextBox_KeyPress; + DevExpress.Ui.DxTextBoxInterop.KeyUp -= DxTextBox_KeyUp; + DevExpress.Ui.DxTextBoxInterop.Paste -= DxTextBox_Paste; + DevExpress.Ui.DxTextBoxInterop.ValueChanged -= DxTextBox_ValueChanged; + DevExpress.Ui.DxTextBoxInterop.ContentReady -= DxTextBox_ContentReady; + DevExpress.Ui.DxTextBoxInterop.Disposing -= DxTextBox_Disposing; + DevExpress.Ui.DxTextBoxInterop.OptionChanged -= DxTextBox_OptionChanged; + DevExpress.Ui.DxTextBoxInterop.Initialized -= DxTextBox_Initialized; } } diff --git a/sources/BlazorDevExtreme/Components/DxTextEditor.cshtml b/sources/BlazorDevExtreme/Components/DxTextEditor.cshtml index d4ccdf6..82a2bae 100644 --- a/sources/BlazorDevExtreme/Components/DxTextEditor.cshtml +++ b/sources/BlazorDevExtreme/Components/DxTextEditor.cshtml @@ -26,6 +26,21 @@ useMaskedValue = useMaskedValue, value = value, valueChangeEvent = valueChangeEvent, + isValid = isValid, + readOnly = readOnly, + validationError = validationError, + validationMessageMode = validationMessageMode, + accessKey = accessKey, + activeStateEnabled = activeStateEnabled, + disabled = disabled, + hint = hint, + tabIndex = tabIndex, + visible = visible, + bindingOptions = bindingOptions, + elementAttr = elementAttr, + height = height, + rtlEnabled = rtlEnabled, + width = width, onChangeEnabled = onChangeEnabled, onCopyEnabled = onCopyEnabled, onCutEnabled = onCutEnabled, @@ -37,15 +52,20 @@ onKeyPressEnabled = onKeyPressEnabled, onKeyUpEnabled = onKeyUpEnabled, onPasteEnabled = onPasteEnabled, + onValueChangedEnabled = onValueChangedEnabled, + onContentReadyEnabled = onContentReadyEnabled, + onDisposingEnabled = onDisposingEnabled, + onOptionChangedEnabled = onOptionChangedEnabled, + onInitializedEnabled = onInitializedEnabled, }; } protected override Task Init(DevExpress.Ui.DxTextEditorOptions options) { -return DevExpress.Ui.DxTextEditorInterop.Init(dxTarget, options); + return DevExpress.Ui.DxTextEditorInterop.Init(dxTarget, options); } bool? focusStateEnabled; [Parameter] bool? FocusStateEnabled { - get => isInitialized ? DevExpress.Ui.DxTextEditorInterop.GetFocusStateEnabled(dxTarget).Result : focusStateEnabled; + get => isInitialized ? (bool?)DevExpress.Ui.DxTextEditorInterop.GetFocusStateEnabled(dxTarget).Result : focusStateEnabled; set { if (isInitialized) { DevExpress.Ui.DxTextEditorInterop.SetFocusStateEnabled(dxTarget, value); @@ -57,7 +77,7 @@ return DevExpress.Ui.DxTextEditorInterop.Init(dxTarget, options); bool? hoverStateEnabled; [Parameter] bool? HoverStateEnabled { - get => isInitialized ? DevExpress.Ui.DxTextEditorInterop.GetHoverStateEnabled(dxTarget).Result : hoverStateEnabled; + get => isInitialized ? (bool?)DevExpress.Ui.DxTextEditorInterop.GetHoverStateEnabled(dxTarget).Result : hoverStateEnabled; set { if (isInitialized) { DevExpress.Ui.DxTextEditorInterop.SetHoverStateEnabled(dxTarget, value); @@ -81,7 +101,7 @@ return DevExpress.Ui.DxTextEditorInterop.Init(dxTarget, options); string mask; [Parameter] string Mask { - get => isInitialized ? DevExpress.Ui.DxTextEditorInterop.GetMask(dxTarget).Result : mask; + get => isInitialized ? (string)DevExpress.Ui.DxTextEditorInterop.GetMask(dxTarget).Result : mask; set { if (isInitialized) { DevExpress.Ui.DxTextEditorInterop.SetMask(dxTarget, value); @@ -93,7 +113,7 @@ return DevExpress.Ui.DxTextEditorInterop.Init(dxTarget, options); string maskChar; [Parameter] string MaskChar { - get => isInitialized ? DevExpress.Ui.DxTextEditorInterop.GetMaskChar(dxTarget).Result : maskChar; + get => isInitialized ? (string)DevExpress.Ui.DxTextEditorInterop.GetMaskChar(dxTarget).Result : maskChar; set { if (isInitialized) { DevExpress.Ui.DxTextEditorInterop.SetMaskChar(dxTarget, value); @@ -105,7 +125,7 @@ return DevExpress.Ui.DxTextEditorInterop.Init(dxTarget, options); string maskInvalidMessage; [Parameter] string MaskInvalidMessage { - get => isInitialized ? DevExpress.Ui.DxTextEditorInterop.GetMaskInvalidMessage(dxTarget).Result : maskInvalidMessage; + get => isInitialized ? (string)DevExpress.Ui.DxTextEditorInterop.GetMaskInvalidMessage(dxTarget).Result : maskInvalidMessage; set { if (isInitialized) { DevExpress.Ui.DxTextEditorInterop.SetMaskInvalidMessage(dxTarget, value); @@ -129,7 +149,7 @@ return DevExpress.Ui.DxTextEditorInterop.Init(dxTarget, options); string name; [Parameter] string Name { - get => isInitialized ? DevExpress.Ui.DxTextEditorInterop.GetName(dxTarget).Result : name; + get => isInitialized ? (string)DevExpress.Ui.DxTextEditorInterop.GetName(dxTarget).Result : name; set { if (isInitialized) { DevExpress.Ui.DxTextEditorInterop.SetName(dxTarget, value); @@ -141,7 +161,7 @@ return DevExpress.Ui.DxTextEditorInterop.Init(dxTarget, options); string placeholder; [Parameter] string Placeholder { - get => isInitialized ? DevExpress.Ui.DxTextEditorInterop.GetPlaceholder(dxTarget).Result : placeholder; + get => isInitialized ? (string)DevExpress.Ui.DxTextEditorInterop.GetPlaceholder(dxTarget).Result : placeholder; set { if (isInitialized) { DevExpress.Ui.DxTextEditorInterop.SetPlaceholder(dxTarget, value); @@ -153,7 +173,7 @@ return DevExpress.Ui.DxTextEditorInterop.Init(dxTarget, options); bool? showClearButton; [Parameter] bool? ShowClearButton { - get => isInitialized ? DevExpress.Ui.DxTextEditorInterop.GetShowClearButton(dxTarget).Result : showClearButton; + get => isInitialized ? (bool?)DevExpress.Ui.DxTextEditorInterop.GetShowClearButton(dxTarget).Result : showClearButton; set { if (isInitialized) { DevExpress.Ui.DxTextEditorInterop.SetShowClearButton(dxTarget, value); @@ -165,7 +185,7 @@ return DevExpress.Ui.DxTextEditorInterop.Init(dxTarget, options); string showMaskMode; [Parameter] string ShowMaskMode { - get => isInitialized ? DevExpress.Ui.DxTextEditorInterop.GetShowMaskMode(dxTarget).Result : showMaskMode; + get => isInitialized ? (string)DevExpress.Ui.DxTextEditorInterop.GetShowMaskMode(dxTarget).Result : showMaskMode; set { if (isInitialized) { DevExpress.Ui.DxTextEditorInterop.SetShowMaskMode(dxTarget, value); @@ -177,7 +197,7 @@ return DevExpress.Ui.DxTextEditorInterop.Init(dxTarget, options); bool? spellcheck; [Parameter] bool? Spellcheck { - get => isInitialized ? DevExpress.Ui.DxTextEditorInterop.GetSpellcheck(dxTarget).Result : spellcheck; + get => isInitialized ? (bool?)DevExpress.Ui.DxTextEditorInterop.GetSpellcheck(dxTarget).Result : spellcheck; set { if (isInitialized) { DevExpress.Ui.DxTextEditorInterop.SetSpellcheck(dxTarget, value); @@ -189,7 +209,7 @@ return DevExpress.Ui.DxTextEditorInterop.Init(dxTarget, options); string text; [Parameter] string Text { - get => isInitialized ? DevExpress.Ui.DxTextEditorInterop.GetText(dxTarget).Result : text; + get => isInitialized ? (string)DevExpress.Ui.DxTextEditorInterop.GetText(dxTarget).Result : text; set { if (isInitialized) { DevExpress.Ui.DxTextEditorInterop.SetText(dxTarget, value); @@ -201,7 +221,7 @@ return DevExpress.Ui.DxTextEditorInterop.Init(dxTarget, options); bool? useMaskedValue; [Parameter] bool? UseMaskedValue { - get => isInitialized ? DevExpress.Ui.DxTextEditorInterop.GetUseMaskedValue(dxTarget).Result : useMaskedValue; + get => isInitialized ? (bool?)DevExpress.Ui.DxTextEditorInterop.GetUseMaskedValue(dxTarget).Result : useMaskedValue; set { if (isInitialized) { DevExpress.Ui.DxTextEditorInterop.SetUseMaskedValue(dxTarget, value); @@ -225,7 +245,7 @@ return DevExpress.Ui.DxTextEditorInterop.Init(dxTarget, options); string valueChangeEvent; [Parameter] string ValueChangeEvent { - get => isInitialized ? DevExpress.Ui.DxTextEditorInterop.GetValueChangeEvent(dxTarget).Result : valueChangeEvent; + get => isInitialized ? (string)DevExpress.Ui.DxTextEditorInterop.GetValueChangeEvent(dxTarget).Result : valueChangeEvent; set { if (isInitialized) { DevExpress.Ui.DxTextEditorInterop.SetValueChangeEvent(dxTarget, value); @@ -234,6 +254,186 @@ return DevExpress.Ui.DxTextEditorInterop.Init(dxTarget, options); } } } + bool? isValid; + [Parameter] + bool? IsValid { + get => isInitialized ? (bool?)DevExpress.Ui.DxTextEditorInterop.GetIsValid(dxTarget).Result : isValid; + set { + if (isInitialized) { + DevExpress.Ui.DxTextEditorInterop.SetIsValid(dxTarget, value); + } else { + this.isValid = value; + } + } + } + bool? readOnly; + [Parameter] + bool? ReadOnly { + get => isInitialized ? (bool?)DevExpress.Ui.DxTextEditorInterop.GetReadOnly(dxTarget).Result : readOnly; + set { + if (isInitialized) { + DevExpress.Ui.DxTextEditorInterop.SetReadOnly(dxTarget, value); + } else { + this.readOnly = value; + } + } + } + object validationError; + [Parameter] + object ValidationError { + get => isInitialized ? DevExpress.Ui.DxTextEditorInterop.GetValidationError(dxTarget).Result : validationError; + set { + if (isInitialized) { + DevExpress.Ui.DxTextEditorInterop.SetValidationError(dxTarget, value); + } else { + this.validationError = value; + } + } + } + string validationMessageMode; + [Parameter] + string ValidationMessageMode { + get => isInitialized ? (string)DevExpress.Ui.DxTextEditorInterop.GetValidationMessageMode(dxTarget).Result : validationMessageMode; + set { + if (isInitialized) { + DevExpress.Ui.DxTextEditorInterop.SetValidationMessageMode(dxTarget, value); + } else { + this.validationMessageMode = value; + } + } + } + string accessKey; + [Parameter] + string AccessKey { + get => isInitialized ? (string)DevExpress.Ui.DxTextEditorInterop.GetAccessKey(dxTarget).Result : accessKey; + set { + if (isInitialized) { + DevExpress.Ui.DxTextEditorInterop.SetAccessKey(dxTarget, value); + } else { + this.accessKey = value; + } + } + } + bool? activeStateEnabled; + [Parameter] + bool? ActiveStateEnabled { + get => isInitialized ? (bool?)DevExpress.Ui.DxTextEditorInterop.GetActiveStateEnabled(dxTarget).Result : activeStateEnabled; + set { + if (isInitialized) { + DevExpress.Ui.DxTextEditorInterop.SetActiveStateEnabled(dxTarget, value); + } else { + this.activeStateEnabled = value; + } + } + } + bool? disabled; + [Parameter] + bool? Disabled { + get => isInitialized ? (bool?)DevExpress.Ui.DxTextEditorInterop.GetDisabled(dxTarget).Result : disabled; + set { + if (isInitialized) { + DevExpress.Ui.DxTextEditorInterop.SetDisabled(dxTarget, value); + } else { + this.disabled = value; + } + } + } + string hint; + [Parameter] + string Hint { + get => isInitialized ? (string)DevExpress.Ui.DxTextEditorInterop.GetHint(dxTarget).Result : hint; + set { + if (isInitialized) { + DevExpress.Ui.DxTextEditorInterop.SetHint(dxTarget, value); + } else { + this.hint = value; + } + } + } + float? tabIndex; + [Parameter] + float? TabIndex { + get => isInitialized ? (float?)DevExpress.Ui.DxTextEditorInterop.GetTabIndex(dxTarget).Result : tabIndex; + set { + if (isInitialized) { + DevExpress.Ui.DxTextEditorInterop.SetTabIndex(dxTarget, value); + } else { + this.tabIndex = value; + } + } + } + bool? visible; + [Parameter] + bool? Visible { + get => isInitialized ? (bool?)DevExpress.Ui.DxTextEditorInterop.GetVisible(dxTarget).Result : visible; + set { + if (isInitialized) { + DevExpress.Ui.DxTextEditorInterop.SetVisible(dxTarget, value); + } else { + this.visible = value; + } + } + } + object bindingOptions; + [Parameter] + object BindingOptions { + get => isInitialized ? DevExpress.Ui.DxTextEditorInterop.GetBindingOptions(dxTarget).Result : bindingOptions; + set { + if (isInitialized) { + DevExpress.Ui.DxTextEditorInterop.SetBindingOptions(dxTarget, value); + } else { + this.bindingOptions = value; + } + } + } + object elementAttr; + [Parameter] + object ElementAttr { + get => isInitialized ? DevExpress.Ui.DxTextEditorInterop.GetElementAttr(dxTarget).Result : elementAttr; + set { + if (isInitialized) { + DevExpress.Ui.DxTextEditorInterop.SetElementAttr(dxTarget, value); + } else { + this.elementAttr = value; + } + } + } + object height; + [Parameter] + object Height { + get => isInitialized ? DevExpress.Ui.DxTextEditorInterop.GetHeight(dxTarget).Result : height; + set { + if (isInitialized) { + DevExpress.Ui.DxTextEditorInterop.SetHeight(dxTarget, value); + } else { + this.height = value; + } + } + } + bool? rtlEnabled; + [Parameter] + bool? RtlEnabled { + get => isInitialized ? (bool?)DevExpress.Ui.DxTextEditorInterop.GetRtlEnabled(dxTarget).Result : rtlEnabled; + set { + if (isInitialized) { + DevExpress.Ui.DxTextEditorInterop.SetRtlEnabled(dxTarget, value); + } else { + this.rtlEnabled = value; + } + } + } + object width; + [Parameter] + object Width { + get => isInitialized ? DevExpress.Ui.DxTextEditorInterop.GetWidth(dxTarget).Result : width; + set { + if (isInitialized) { + DevExpress.Ui.DxTextEditorInterop.SetWidth(dxTarget, value); + } else { + this.width = value; + } + } + } bool? onChangeEnabled; [Parameter] bool? OnChangeEnabled { @@ -300,6 +500,36 @@ return DevExpress.Ui.DxTextEditorInterop.Init(dxTarget, options); get => onPasteEnabled; set => this.onPasteEnabled = value; } + bool? onValueChangedEnabled; + [Parameter] + bool? OnValueChangedEnabled { + get => onValueChangedEnabled; + set => this.onValueChangedEnabled = value; + } + bool? onContentReadyEnabled; + [Parameter] + bool? OnContentReadyEnabled { + get => onContentReadyEnabled; + set => this.onContentReadyEnabled = value; + } + bool? onDisposingEnabled; + [Parameter] + bool? OnDisposingEnabled { + get => onDisposingEnabled; + set => this.onDisposingEnabled = value; + } + bool? onOptionChangedEnabled; + [Parameter] + bool? OnOptionChangedEnabled { + get => onOptionChangedEnabled; + set => this.onOptionChangedEnabled = value; + } + bool? onInitializedEnabled; + [Parameter] + bool? OnInitializedEnabled { + get => onInitializedEnabled; + set => this.onInitializedEnabled = value; + } protected override async Task OnInitAsync() { await base.OnInitAsync(); DevExpress.Ui.DxTextEditorInterop.Change += DxTextEditor_Change; @@ -313,6 +543,11 @@ return DevExpress.Ui.DxTextEditorInterop.Init(dxTarget, options); DevExpress.Ui.DxTextEditorInterop.KeyPress += DxTextEditor_KeyPress; DevExpress.Ui.DxTextEditorInterop.KeyUp += DxTextEditor_KeyUp; DevExpress.Ui.DxTextEditorInterop.Paste += DxTextEditor_Paste; + DevExpress.Ui.DxTextEditorInterop.ValueChanged += DxTextEditor_ValueChanged; + DevExpress.Ui.DxTextEditorInterop.ContentReady += DxTextEditor_ContentReady; + DevExpress.Ui.DxTextEditorInterop.Disposing += DxTextEditor_Disposing; + DevExpress.Ui.DxTextEditorInterop.OptionChanged += DxTextEditor_OptionChanged; + DevExpress.Ui.DxTextEditorInterop.Initialized += DxTextEditor_Initialized; } [Parameter] Action Change { get; set; } @@ -391,6 +626,41 @@ return DevExpress.Ui.DxTextEditorInterop.Init(dxTarget, options); Paste?.Invoke(); } } + [Parameter] + Action ValueChanged { get; set; } + void DxTextEditor_ValueChanged(object sender, JQueryEventArgs e) { + if (e.Identifier == Id) { + ValueChanged?.Invoke(); + } + } + [Parameter] + Action ContentReady { get; set; } + void DxTextEditor_ContentReady(object sender, JQueryEventArgs e) { + if (e.Identifier == Id) { + ContentReady?.Invoke(); + } + } + [Parameter] + Action Disposing { get; set; } + void DxTextEditor_Disposing(object sender, JQueryEventArgs e) { + if (e.Identifier == Id) { + Disposing?.Invoke(); + } + } + [Parameter] + Action OptionChanged { get; set; } + void DxTextEditor_OptionChanged(object sender, JQueryEventArgs e) { + if (e.Identifier == Id) { + OptionChanged?.Invoke(); + } + } + [Parameter] + Action Initialized { get; set; } + void DxTextEditor_Initialized(object sender, JQueryEventArgs e) { + if (e.Identifier == Id) { + Initialized?.Invoke(); + } + } public void Blur() { DevExpress.Ui.DxTextEditorInterop.Blur(dxTarget); } @@ -409,5 +679,10 @@ return DevExpress.Ui.DxTextEditorInterop.Init(dxTarget, options); DevExpress.Ui.DxTextEditorInterop.KeyPress -= DxTextEditor_KeyPress; DevExpress.Ui.DxTextEditorInterop.KeyUp -= DxTextEditor_KeyUp; DevExpress.Ui.DxTextEditorInterop.Paste -= DxTextEditor_Paste; + DevExpress.Ui.DxTextEditorInterop.ValueChanged -= DxTextEditor_ValueChanged; + DevExpress.Ui.DxTextEditorInterop.ContentReady -= DxTextEditor_ContentReady; + DevExpress.Ui.DxTextEditorInterop.Disposing -= DxTextEditor_Disposing; + DevExpress.Ui.DxTextEditorInterop.OptionChanged -= DxTextEditor_OptionChanged; + DevExpress.Ui.DxTextEditorInterop.Initialized -= DxTextEditor_Initialized; } } diff --git a/sources/BlazorDevExtreme/Components/DxTileView.cshtml b/sources/BlazorDevExtreme/Components/DxTileView.cshtml index 186677a..0c1765c 100644 --- a/sources/BlazorDevExtreme/Components/DxTileView.cshtml +++ b/sources/BlazorDevExtreme/Components/DxTileView.cshtml @@ -19,15 +19,43 @@ hoverStateEnabled = hoverStateEnabled, itemMargin = itemMargin, showScrollbar = showScrollbar, + dataSource = dataSource, + itemHoldTimeout = itemHoldTimeout, + items = items, + itemTemplate = itemTemplate, + keyExpr = keyExpr, + noDataText = noDataText, + selectedIndex = selectedIndex, + selectedItem = selectedItem, + selectedItemKeys = selectedItemKeys, + selectedItems = selectedItems, + accessKey = accessKey, + disabled = disabled, + hint = hint, + tabIndex = tabIndex, + visible = visible, + bindingOptions = bindingOptions, + elementAttr = elementAttr, + rtlEnabled = rtlEnabled, + width = width, + onItemClickEnabled = onItemClickEnabled, + onItemContextMenuEnabled = onItemContextMenuEnabled, + onItemHoldEnabled = onItemHoldEnabled, + onItemRenderedEnabled = onItemRenderedEnabled, + onSelectionChangedEnabled = onSelectionChangedEnabled, + onContentReadyEnabled = onContentReadyEnabled, + onDisposingEnabled = onDisposingEnabled, + onOptionChangedEnabled = onOptionChangedEnabled, + onInitializedEnabled = onInitializedEnabled, }; } protected override Task Init(DevExpress.Ui.DxTileViewOptions options) { -return DevExpress.Ui.DxTileViewInterop.Init(dxTarget, options); + return DevExpress.Ui.DxTileViewInterop.Init(dxTarget, options); } bool? activeStateEnabled; [Parameter] bool? ActiveStateEnabled { - get => isInitialized ? DevExpress.Ui.DxTileViewInterop.GetActiveStateEnabled(dxTarget).Result : activeStateEnabled; + get => isInitialized ? (bool?)DevExpress.Ui.DxTileViewInterop.GetActiveStateEnabled(dxTarget).Result : activeStateEnabled; set { if (isInitialized) { DevExpress.Ui.DxTileViewInterop.SetActiveStateEnabled(dxTarget, value); @@ -39,7 +67,7 @@ return DevExpress.Ui.DxTileViewInterop.Init(dxTarget, options); float? baseItemHeight; [Parameter] float? BaseItemHeight { - get => isInitialized ? DevExpress.Ui.DxTileViewInterop.GetBaseItemHeight(dxTarget).Result : baseItemHeight; + get => isInitialized ? (float?)DevExpress.Ui.DxTileViewInterop.GetBaseItemHeight(dxTarget).Result : baseItemHeight; set { if (isInitialized) { DevExpress.Ui.DxTileViewInterop.SetBaseItemHeight(dxTarget, value); @@ -51,7 +79,7 @@ return DevExpress.Ui.DxTileViewInterop.Init(dxTarget, options); float? baseItemWidth; [Parameter] float? BaseItemWidth { - get => isInitialized ? DevExpress.Ui.DxTileViewInterop.GetBaseItemWidth(dxTarget).Result : baseItemWidth; + get => isInitialized ? (float?)DevExpress.Ui.DxTileViewInterop.GetBaseItemWidth(dxTarget).Result : baseItemWidth; set { if (isInitialized) { DevExpress.Ui.DxTileViewInterop.SetBaseItemWidth(dxTarget, value); @@ -63,7 +91,7 @@ return DevExpress.Ui.DxTileViewInterop.Init(dxTarget, options); string direction; [Parameter] string Direction { - get => isInitialized ? DevExpress.Ui.DxTileViewInterop.GetDirection(dxTarget).Result : direction; + get => isInitialized ? (string)DevExpress.Ui.DxTileViewInterop.GetDirection(dxTarget).Result : direction; set { if (isInitialized) { DevExpress.Ui.DxTileViewInterop.SetDirection(dxTarget, value); @@ -75,7 +103,7 @@ return DevExpress.Ui.DxTileViewInterop.Init(dxTarget, options); bool? focusStateEnabled; [Parameter] bool? FocusStateEnabled { - get => isInitialized ? DevExpress.Ui.DxTileViewInterop.GetFocusStateEnabled(dxTarget).Result : focusStateEnabled; + get => isInitialized ? (bool?)DevExpress.Ui.DxTileViewInterop.GetFocusStateEnabled(dxTarget).Result : focusStateEnabled; set { if (isInitialized) { DevExpress.Ui.DxTileViewInterop.SetFocusStateEnabled(dxTarget, value); @@ -99,7 +127,7 @@ return DevExpress.Ui.DxTileViewInterop.Init(dxTarget, options); bool? hoverStateEnabled; [Parameter] bool? HoverStateEnabled { - get => isInitialized ? DevExpress.Ui.DxTileViewInterop.GetHoverStateEnabled(dxTarget).Result : hoverStateEnabled; + get => isInitialized ? (bool?)DevExpress.Ui.DxTileViewInterop.GetHoverStateEnabled(dxTarget).Result : hoverStateEnabled; set { if (isInitialized) { DevExpress.Ui.DxTileViewInterop.SetHoverStateEnabled(dxTarget, value); @@ -111,7 +139,7 @@ return DevExpress.Ui.DxTileViewInterop.Init(dxTarget, options); float? itemMargin; [Parameter] float? ItemMargin { - get => isInitialized ? DevExpress.Ui.DxTileViewInterop.GetItemMargin(dxTarget).Result : itemMargin; + get => isInitialized ? (float?)DevExpress.Ui.DxTileViewInterop.GetItemMargin(dxTarget).Result : itemMargin; set { if (isInitialized) { DevExpress.Ui.DxTileViewInterop.SetItemMargin(dxTarget, value); @@ -123,7 +151,7 @@ return DevExpress.Ui.DxTileViewInterop.Init(dxTarget, options); bool? showScrollbar; [Parameter] bool? ShowScrollbar { - get => isInitialized ? DevExpress.Ui.DxTileViewInterop.GetShowScrollbar(dxTarget).Result : showScrollbar; + get => isInitialized ? (bool?)DevExpress.Ui.DxTileViewInterop.GetShowScrollbar(dxTarget).Result : showScrollbar; set { if (isInitialized) { DevExpress.Ui.DxTileViewInterop.SetShowScrollbar(dxTarget, value); @@ -132,12 +160,375 @@ return DevExpress.Ui.DxTileViewInterop.Init(dxTarget, options); } } } + object dataSource; + [Parameter] + object DataSource { + get => isInitialized ? DevExpress.Ui.DxTileViewInterop.GetDataSource(dxTarget).Result : dataSource; + set { + if (isInitialized) { + DevExpress.Ui.DxTileViewInterop.SetDataSource(dxTarget, value); + } else { + this.dataSource = value; + } + } + } + float? itemHoldTimeout; + [Parameter] + float? ItemHoldTimeout { + get => isInitialized ? (float?)DevExpress.Ui.DxTileViewInterop.GetItemHoldTimeout(dxTarget).Result : itemHoldTimeout; + set { + if (isInitialized) { + DevExpress.Ui.DxTileViewInterop.SetItemHoldTimeout(dxTarget, value); + } else { + this.itemHoldTimeout = value; + } + } + } + object items; + [Parameter] + object Items { + get => isInitialized ? DevExpress.Ui.DxTileViewInterop.GetItems(dxTarget).Result : items; + set { + if (isInitialized) { + DevExpress.Ui.DxTileViewInterop.SetItems(dxTarget, value); + } else { + this.items = value; + } + } + } + object itemTemplate; + [Parameter] + object ItemTemplate { + get => isInitialized ? DevExpress.Ui.DxTileViewInterop.GetItemTemplate(dxTarget).Result : itemTemplate; + set { + if (isInitialized) { + DevExpress.Ui.DxTileViewInterop.SetItemTemplate(dxTarget, value); + } else { + this.itemTemplate = value; + } + } + } + object keyExpr; + [Parameter] + object KeyExpr { + get => isInitialized ? DevExpress.Ui.DxTileViewInterop.GetKeyExpr(dxTarget).Result : keyExpr; + set { + if (isInitialized) { + DevExpress.Ui.DxTileViewInterop.SetKeyExpr(dxTarget, value); + } else { + this.keyExpr = value; + } + } + } + string noDataText; + [Parameter] + string NoDataText { + get => isInitialized ? (string)DevExpress.Ui.DxTileViewInterop.GetNoDataText(dxTarget).Result : noDataText; + set { + if (isInitialized) { + DevExpress.Ui.DxTileViewInterop.SetNoDataText(dxTarget, value); + } else { + this.noDataText = value; + } + } + } + float? selectedIndex; + [Parameter] + float? SelectedIndex { + get => isInitialized ? (float?)DevExpress.Ui.DxTileViewInterop.GetSelectedIndex(dxTarget).Result : selectedIndex; + set { + if (isInitialized) { + DevExpress.Ui.DxTileViewInterop.SetSelectedIndex(dxTarget, value); + } else { + this.selectedIndex = value; + } + } + } + object selectedItem; + [Parameter] + object SelectedItem { + get => isInitialized ? DevExpress.Ui.DxTileViewInterop.GetSelectedItem(dxTarget).Result : selectedItem; + set { + if (isInitialized) { + DevExpress.Ui.DxTileViewInterop.SetSelectedItem(dxTarget, value); + } else { + this.selectedItem = value; + } + } + } + object selectedItemKeys; + [Parameter] + object SelectedItemKeys { + get => isInitialized ? DevExpress.Ui.DxTileViewInterop.GetSelectedItemKeys(dxTarget).Result : selectedItemKeys; + set { + if (isInitialized) { + DevExpress.Ui.DxTileViewInterop.SetSelectedItemKeys(dxTarget, value); + } else { + this.selectedItemKeys = value; + } + } + } + object selectedItems; + [Parameter] + object SelectedItems { + get => isInitialized ? DevExpress.Ui.DxTileViewInterop.GetSelectedItems(dxTarget).Result : selectedItems; + set { + if (isInitialized) { + DevExpress.Ui.DxTileViewInterop.SetSelectedItems(dxTarget, value); + } else { + this.selectedItems = value; + } + } + } + string accessKey; + [Parameter] + string AccessKey { + get => isInitialized ? (string)DevExpress.Ui.DxTileViewInterop.GetAccessKey(dxTarget).Result : accessKey; + set { + if (isInitialized) { + DevExpress.Ui.DxTileViewInterop.SetAccessKey(dxTarget, value); + } else { + this.accessKey = value; + } + } + } + bool? disabled; + [Parameter] + bool? Disabled { + get => isInitialized ? (bool?)DevExpress.Ui.DxTileViewInterop.GetDisabled(dxTarget).Result : disabled; + set { + if (isInitialized) { + DevExpress.Ui.DxTileViewInterop.SetDisabled(dxTarget, value); + } else { + this.disabled = value; + } + } + } + string hint; + [Parameter] + string Hint { + get => isInitialized ? (string)DevExpress.Ui.DxTileViewInterop.GetHint(dxTarget).Result : hint; + set { + if (isInitialized) { + DevExpress.Ui.DxTileViewInterop.SetHint(dxTarget, value); + } else { + this.hint = value; + } + } + } + float? tabIndex; + [Parameter] + float? TabIndex { + get => isInitialized ? (float?)DevExpress.Ui.DxTileViewInterop.GetTabIndex(dxTarget).Result : tabIndex; + set { + if (isInitialized) { + DevExpress.Ui.DxTileViewInterop.SetTabIndex(dxTarget, value); + } else { + this.tabIndex = value; + } + } + } + bool? visible; + [Parameter] + bool? Visible { + get => isInitialized ? (bool?)DevExpress.Ui.DxTileViewInterop.GetVisible(dxTarget).Result : visible; + set { + if (isInitialized) { + DevExpress.Ui.DxTileViewInterop.SetVisible(dxTarget, value); + } else { + this.visible = value; + } + } + } + object bindingOptions; + [Parameter] + object BindingOptions { + get => isInitialized ? DevExpress.Ui.DxTileViewInterop.GetBindingOptions(dxTarget).Result : bindingOptions; + set { + if (isInitialized) { + DevExpress.Ui.DxTileViewInterop.SetBindingOptions(dxTarget, value); + } else { + this.bindingOptions = value; + } + } + } + object elementAttr; + [Parameter] + object ElementAttr { + get => isInitialized ? DevExpress.Ui.DxTileViewInterop.GetElementAttr(dxTarget).Result : elementAttr; + set { + if (isInitialized) { + DevExpress.Ui.DxTileViewInterop.SetElementAttr(dxTarget, value); + } else { + this.elementAttr = value; + } + } + } + bool? rtlEnabled; + [Parameter] + bool? RtlEnabled { + get => isInitialized ? (bool?)DevExpress.Ui.DxTileViewInterop.GetRtlEnabled(dxTarget).Result : rtlEnabled; + set { + if (isInitialized) { + DevExpress.Ui.DxTileViewInterop.SetRtlEnabled(dxTarget, value); + } else { + this.rtlEnabled = value; + } + } + } + object width; + [Parameter] + object Width { + get => isInitialized ? DevExpress.Ui.DxTileViewInterop.GetWidth(dxTarget).Result : width; + set { + if (isInitialized) { + DevExpress.Ui.DxTileViewInterop.SetWidth(dxTarget, value); + } else { + this.width = value; + } + } + } + bool? onItemClickEnabled; + [Parameter] + bool? OnItemClickEnabled { + get => onItemClickEnabled; + set => this.onItemClickEnabled = value; + } + bool? onItemContextMenuEnabled; + [Parameter] + bool? OnItemContextMenuEnabled { + get => onItemContextMenuEnabled; + set => this.onItemContextMenuEnabled = value; + } + bool? onItemHoldEnabled; + [Parameter] + bool? OnItemHoldEnabled { + get => onItemHoldEnabled; + set => this.onItemHoldEnabled = value; + } + bool? onItemRenderedEnabled; + [Parameter] + bool? OnItemRenderedEnabled { + get => onItemRenderedEnabled; + set => this.onItemRenderedEnabled = value; + } + bool? onSelectionChangedEnabled; + [Parameter] + bool? OnSelectionChangedEnabled { + get => onSelectionChangedEnabled; + set => this.onSelectionChangedEnabled = value; + } + bool? onContentReadyEnabled; + [Parameter] + bool? OnContentReadyEnabled { + get => onContentReadyEnabled; + set => this.onContentReadyEnabled = value; + } + bool? onDisposingEnabled; + [Parameter] + bool? OnDisposingEnabled { + get => onDisposingEnabled; + set => this.onDisposingEnabled = value; + } + bool? onOptionChangedEnabled; + [Parameter] + bool? OnOptionChangedEnabled { + get => onOptionChangedEnabled; + set => this.onOptionChangedEnabled = value; + } + bool? onInitializedEnabled; + [Parameter] + bool? OnInitializedEnabled { + get => onInitializedEnabled; + set => this.onInitializedEnabled = value; + } protected override async Task OnInitAsync() { await base.OnInitAsync(); + DevExpress.Ui.DxTileViewInterop.ItemClick += DxTileView_ItemClick; + DevExpress.Ui.DxTileViewInterop.ItemContextMenu += DxTileView_ItemContextMenu; + DevExpress.Ui.DxTileViewInterop.ItemHold += DxTileView_ItemHold; + DevExpress.Ui.DxTileViewInterop.ItemRendered += DxTileView_ItemRendered; + DevExpress.Ui.DxTileViewInterop.SelectionChanged += DxTileView_SelectionChanged; + DevExpress.Ui.DxTileViewInterop.ContentReady += DxTileView_ContentReady; + DevExpress.Ui.DxTileViewInterop.Disposing += DxTileView_Disposing; + DevExpress.Ui.DxTileViewInterop.OptionChanged += DxTileView_OptionChanged; + DevExpress.Ui.DxTileViewInterop.Initialized += DxTileView_Initialized; + } + [Parameter] + Action ItemClick { get; set; } + void DxTileView_ItemClick(object sender, JQueryEventArgs e) { + if (e.Identifier == Id) { + ItemClick?.Invoke(); + } + } + [Parameter] + Action ItemContextMenu { get; set; } + void DxTileView_ItemContextMenu(object sender, JQueryEventArgs e) { + if (e.Identifier == Id) { + ItemContextMenu?.Invoke(); + } + } + [Parameter] + Action ItemHold { get; set; } + void DxTileView_ItemHold(object sender, JQueryEventArgs e) { + if (e.Identifier == Id) { + ItemHold?.Invoke(); + } + } + [Parameter] + Action ItemRendered { get; set; } + void DxTileView_ItemRendered(object sender, JQueryEventArgs e) { + if (e.Identifier == Id) { + ItemRendered?.Invoke(); + } + } + [Parameter] + Action SelectionChanged { get; set; } + void DxTileView_SelectionChanged(object sender, JQueryEventArgs e) { + if (e.Identifier == Id) { + SelectionChanged?.Invoke(); + } + } + [Parameter] + Action ContentReady { get; set; } + void DxTileView_ContentReady(object sender, JQueryEventArgs e) { + if (e.Identifier == Id) { + ContentReady?.Invoke(); + } + } + [Parameter] + Action Disposing { get; set; } + void DxTileView_Disposing(object sender, JQueryEventArgs e) { + if (e.Identifier == Id) { + Disposing?.Invoke(); + } + } + [Parameter] + Action OptionChanged { get; set; } + void DxTileView_OptionChanged(object sender, JQueryEventArgs e) { + if (e.Identifier == Id) { + OptionChanged?.Invoke(); + } + } + [Parameter] + Action Initialized { get; set; } + void DxTileView_Initialized(object sender, JQueryEventArgs e) { + if (e.Identifier == Id) { + Initialized?.Invoke(); + } } public float ScrollPosition() { return DevExpress.Ui.DxTileViewInterop.ScrollPosition(dxTarget).Result; } public void Dispose() { + DevExpress.Ui.DxTileViewInterop.ItemClick -= DxTileView_ItemClick; + DevExpress.Ui.DxTileViewInterop.ItemContextMenu -= DxTileView_ItemContextMenu; + DevExpress.Ui.DxTileViewInterop.ItemHold -= DxTileView_ItemHold; + DevExpress.Ui.DxTileViewInterop.ItemRendered -= DxTileView_ItemRendered; + DevExpress.Ui.DxTileViewInterop.SelectionChanged -= DxTileView_SelectionChanged; + DevExpress.Ui.DxTileViewInterop.ContentReady -= DxTileView_ContentReady; + DevExpress.Ui.DxTileViewInterop.Disposing -= DxTileView_Disposing; + DevExpress.Ui.DxTileViewInterop.OptionChanged -= DxTileView_OptionChanged; + DevExpress.Ui.DxTileViewInterop.Initialized -= DxTileView_Initialized; } } diff --git a/sources/BlazorDevExtreme/Components/DxToast.cshtml b/sources/BlazorDevExtreme/Components/DxToast.cshtml index cf0172d..0db8767 100644 --- a/sources/BlazorDevExtreme/Components/DxToast.cshtml +++ b/sources/BlazorDevExtreme/Components/DxToast.cshtml @@ -24,10 +24,35 @@ shading = shading, type = type, width = width, + contentTemplate = contentTemplate, + deferRendering = deferRendering, + dragEnabled = dragEnabled, + maxHeight = maxHeight, + minHeight = minHeight, + shadingColor = shadingColor, + visible = visible, + accessKey = accessKey, + activeStateEnabled = activeStateEnabled, + disabled = disabled, + focusStateEnabled = focusStateEnabled, + hint = hint, + hoverStateEnabled = hoverStateEnabled, + tabIndex = tabIndex, + bindingOptions = bindingOptions, + elementAttr = elementAttr, + rtlEnabled = rtlEnabled, + onHiddenEnabled = onHiddenEnabled, + onHidingEnabled = onHidingEnabled, + onShowingEnabled = onShowingEnabled, + onShownEnabled = onShownEnabled, + onContentReadyEnabled = onContentReadyEnabled, + onDisposingEnabled = onDisposingEnabled, + onOptionChangedEnabled = onOptionChangedEnabled, + onInitializedEnabled = onInitializedEnabled, }; } protected override Task Init(DevExpress.Ui.DxToastOptions options) { -return DevExpress.Ui.DxToastInterop.Init(dxTarget, options); + return DevExpress.Ui.DxToastInterop.Init(dxTarget, options); } object animation; [Parameter] @@ -44,7 +69,7 @@ return DevExpress.Ui.DxToastInterop.Init(dxTarget, options); bool? closeOnBackButton; [Parameter] bool? CloseOnBackButton { - get => isInitialized ? DevExpress.Ui.DxToastInterop.GetCloseOnBackButton(dxTarget).Result : closeOnBackButton; + get => isInitialized ? (bool?)DevExpress.Ui.DxToastInterop.GetCloseOnBackButton(dxTarget).Result : closeOnBackButton; set { if (isInitialized) { DevExpress.Ui.DxToastInterop.SetCloseOnBackButton(dxTarget, value); @@ -56,7 +81,7 @@ return DevExpress.Ui.DxToastInterop.Init(dxTarget, options); bool? closeOnClick; [Parameter] bool? CloseOnClick { - get => isInitialized ? DevExpress.Ui.DxToastInterop.GetCloseOnClick(dxTarget).Result : closeOnClick; + get => isInitialized ? (bool?)DevExpress.Ui.DxToastInterop.GetCloseOnClick(dxTarget).Result : closeOnClick; set { if (isInitialized) { DevExpress.Ui.DxToastInterop.SetCloseOnClick(dxTarget, value); @@ -80,7 +105,7 @@ return DevExpress.Ui.DxToastInterop.Init(dxTarget, options); bool? closeOnSwipe; [Parameter] bool? CloseOnSwipe { - get => isInitialized ? DevExpress.Ui.DxToastInterop.GetCloseOnSwipe(dxTarget).Result : closeOnSwipe; + get => isInitialized ? (bool?)DevExpress.Ui.DxToastInterop.GetCloseOnSwipe(dxTarget).Result : closeOnSwipe; set { if (isInitialized) { DevExpress.Ui.DxToastInterop.SetCloseOnSwipe(dxTarget, value); @@ -92,7 +117,7 @@ return DevExpress.Ui.DxToastInterop.Init(dxTarget, options); float? displayTime; [Parameter] float? DisplayTime { - get => isInitialized ? DevExpress.Ui.DxToastInterop.GetDisplayTime(dxTarget).Result : displayTime; + get => isInitialized ? (float?)DevExpress.Ui.DxToastInterop.GetDisplayTime(dxTarget).Result : displayTime; set { if (isInitialized) { DevExpress.Ui.DxToastInterop.SetDisplayTime(dxTarget, value); @@ -128,7 +153,7 @@ return DevExpress.Ui.DxToastInterop.Init(dxTarget, options); string message; [Parameter] string Message { - get => isInitialized ? DevExpress.Ui.DxToastInterop.GetMessage(dxTarget).Result : message; + get => isInitialized ? (string)DevExpress.Ui.DxToastInterop.GetMessage(dxTarget).Result : message; set { if (isInitialized) { DevExpress.Ui.DxToastInterop.SetMessage(dxTarget, value); @@ -164,7 +189,7 @@ return DevExpress.Ui.DxToastInterop.Init(dxTarget, options); bool? shading; [Parameter] bool? Shading { - get => isInitialized ? DevExpress.Ui.DxToastInterop.GetShading(dxTarget).Result : shading; + get => isInitialized ? (bool?)DevExpress.Ui.DxToastInterop.GetShading(dxTarget).Result : shading; set { if (isInitialized) { DevExpress.Ui.DxToastInterop.SetShading(dxTarget, value); @@ -176,7 +201,7 @@ return DevExpress.Ui.DxToastInterop.Init(dxTarget, options); string type; [Parameter] string Type { - get => isInitialized ? DevExpress.Ui.DxToastInterop.GetType(dxTarget).Result : type; + get => isInitialized ? (string)DevExpress.Ui.DxToastInterop.GetType(dxTarget).Result : type; set { if (isInitialized) { DevExpress.Ui.DxToastInterop.SetType(dxTarget, value); @@ -197,9 +222,333 @@ return DevExpress.Ui.DxToastInterop.Init(dxTarget, options); } } } + object contentTemplate; + [Parameter] + object ContentTemplate { + get => isInitialized ? DevExpress.Ui.DxToastInterop.GetContentTemplate(dxTarget).Result : contentTemplate; + set { + if (isInitialized) { + DevExpress.Ui.DxToastInterop.SetContentTemplate(dxTarget, value); + } else { + this.contentTemplate = value; + } + } + } + bool? deferRendering; + [Parameter] + bool? DeferRendering { + get => isInitialized ? (bool?)DevExpress.Ui.DxToastInterop.GetDeferRendering(dxTarget).Result : deferRendering; + set { + if (isInitialized) { + DevExpress.Ui.DxToastInterop.SetDeferRendering(dxTarget, value); + } else { + this.deferRendering = value; + } + } + } + bool? dragEnabled; + [Parameter] + bool? DragEnabled { + get => isInitialized ? (bool?)DevExpress.Ui.DxToastInterop.GetDragEnabled(dxTarget).Result : dragEnabled; + set { + if (isInitialized) { + DevExpress.Ui.DxToastInterop.SetDragEnabled(dxTarget, value); + } else { + this.dragEnabled = value; + } + } + } + object maxHeight; + [Parameter] + object MaxHeight { + get => isInitialized ? DevExpress.Ui.DxToastInterop.GetMaxHeight(dxTarget).Result : maxHeight; + set { + if (isInitialized) { + DevExpress.Ui.DxToastInterop.SetMaxHeight(dxTarget, value); + } else { + this.maxHeight = value; + } + } + } + object minHeight; + [Parameter] + object MinHeight { + get => isInitialized ? DevExpress.Ui.DxToastInterop.GetMinHeight(dxTarget).Result : minHeight; + set { + if (isInitialized) { + DevExpress.Ui.DxToastInterop.SetMinHeight(dxTarget, value); + } else { + this.minHeight = value; + } + } + } + string shadingColor; + [Parameter] + string ShadingColor { + get => isInitialized ? (string)DevExpress.Ui.DxToastInterop.GetShadingColor(dxTarget).Result : shadingColor; + set { + if (isInitialized) { + DevExpress.Ui.DxToastInterop.SetShadingColor(dxTarget, value); + } else { + this.shadingColor = value; + } + } + } + bool? visible; + [Parameter] + bool? Visible { + get => isInitialized ? (bool?)DevExpress.Ui.DxToastInterop.GetVisible(dxTarget).Result : visible; + set { + if (isInitialized) { + DevExpress.Ui.DxToastInterop.SetVisible(dxTarget, value); + } else { + this.visible = value; + } + } + } + string accessKey; + [Parameter] + string AccessKey { + get => isInitialized ? (string)DevExpress.Ui.DxToastInterop.GetAccessKey(dxTarget).Result : accessKey; + set { + if (isInitialized) { + DevExpress.Ui.DxToastInterop.SetAccessKey(dxTarget, value); + } else { + this.accessKey = value; + } + } + } + bool? activeStateEnabled; + [Parameter] + bool? ActiveStateEnabled { + get => isInitialized ? (bool?)DevExpress.Ui.DxToastInterop.GetActiveStateEnabled(dxTarget).Result : activeStateEnabled; + set { + if (isInitialized) { + DevExpress.Ui.DxToastInterop.SetActiveStateEnabled(dxTarget, value); + } else { + this.activeStateEnabled = value; + } + } + } + bool? disabled; + [Parameter] + bool? Disabled { + get => isInitialized ? (bool?)DevExpress.Ui.DxToastInterop.GetDisabled(dxTarget).Result : disabled; + set { + if (isInitialized) { + DevExpress.Ui.DxToastInterop.SetDisabled(dxTarget, value); + } else { + this.disabled = value; + } + } + } + bool? focusStateEnabled; + [Parameter] + bool? FocusStateEnabled { + get => isInitialized ? (bool?)DevExpress.Ui.DxToastInterop.GetFocusStateEnabled(dxTarget).Result : focusStateEnabled; + set { + if (isInitialized) { + DevExpress.Ui.DxToastInterop.SetFocusStateEnabled(dxTarget, value); + } else { + this.focusStateEnabled = value; + } + } + } + string hint; + [Parameter] + string Hint { + get => isInitialized ? (string)DevExpress.Ui.DxToastInterop.GetHint(dxTarget).Result : hint; + set { + if (isInitialized) { + DevExpress.Ui.DxToastInterop.SetHint(dxTarget, value); + } else { + this.hint = value; + } + } + } + bool? hoverStateEnabled; + [Parameter] + bool? HoverStateEnabled { + get => isInitialized ? (bool?)DevExpress.Ui.DxToastInterop.GetHoverStateEnabled(dxTarget).Result : hoverStateEnabled; + set { + if (isInitialized) { + DevExpress.Ui.DxToastInterop.SetHoverStateEnabled(dxTarget, value); + } else { + this.hoverStateEnabled = value; + } + } + } + float? tabIndex; + [Parameter] + float? TabIndex { + get => isInitialized ? (float?)DevExpress.Ui.DxToastInterop.GetTabIndex(dxTarget).Result : tabIndex; + set { + if (isInitialized) { + DevExpress.Ui.DxToastInterop.SetTabIndex(dxTarget, value); + } else { + this.tabIndex = value; + } + } + } + object bindingOptions; + [Parameter] + object BindingOptions { + get => isInitialized ? DevExpress.Ui.DxToastInterop.GetBindingOptions(dxTarget).Result : bindingOptions; + set { + if (isInitialized) { + DevExpress.Ui.DxToastInterop.SetBindingOptions(dxTarget, value); + } else { + this.bindingOptions = value; + } + } + } + object elementAttr; + [Parameter] + object ElementAttr { + get => isInitialized ? DevExpress.Ui.DxToastInterop.GetElementAttr(dxTarget).Result : elementAttr; + set { + if (isInitialized) { + DevExpress.Ui.DxToastInterop.SetElementAttr(dxTarget, value); + } else { + this.elementAttr = value; + } + } + } + bool? rtlEnabled; + [Parameter] + bool? RtlEnabled { + get => isInitialized ? (bool?)DevExpress.Ui.DxToastInterop.GetRtlEnabled(dxTarget).Result : rtlEnabled; + set { + if (isInitialized) { + DevExpress.Ui.DxToastInterop.SetRtlEnabled(dxTarget, value); + } else { + this.rtlEnabled = value; + } + } + } + bool? onHiddenEnabled; + [Parameter] + bool? OnHiddenEnabled { + get => onHiddenEnabled; + set => this.onHiddenEnabled = value; + } + bool? onHidingEnabled; + [Parameter] + bool? OnHidingEnabled { + get => onHidingEnabled; + set => this.onHidingEnabled = value; + } + bool? onShowingEnabled; + [Parameter] + bool? OnShowingEnabled { + get => onShowingEnabled; + set => this.onShowingEnabled = value; + } + bool? onShownEnabled; + [Parameter] + bool? OnShownEnabled { + get => onShownEnabled; + set => this.onShownEnabled = value; + } + bool? onContentReadyEnabled; + [Parameter] + bool? OnContentReadyEnabled { + get => onContentReadyEnabled; + set => this.onContentReadyEnabled = value; + } + bool? onDisposingEnabled; + [Parameter] + bool? OnDisposingEnabled { + get => onDisposingEnabled; + set => this.onDisposingEnabled = value; + } + bool? onOptionChangedEnabled; + [Parameter] + bool? OnOptionChangedEnabled { + get => onOptionChangedEnabled; + set => this.onOptionChangedEnabled = value; + } + bool? onInitializedEnabled; + [Parameter] + bool? OnInitializedEnabled { + get => onInitializedEnabled; + set => this.onInitializedEnabled = value; + } protected override async Task OnInitAsync() { await base.OnInitAsync(); + DevExpress.Ui.DxToastInterop.Hidden += DxToast_Hidden; + DevExpress.Ui.DxToastInterop.Hiding += DxToast_Hiding; + DevExpress.Ui.DxToastInterop.Showing += DxToast_Showing; + DevExpress.Ui.DxToastInterop.Shown += DxToast_Shown; + DevExpress.Ui.DxToastInterop.ContentReady += DxToast_ContentReady; + DevExpress.Ui.DxToastInterop.Disposing += DxToast_Disposing; + DevExpress.Ui.DxToastInterop.OptionChanged += DxToast_OptionChanged; + DevExpress.Ui.DxToastInterop.Initialized += DxToast_Initialized; + } + [Parameter] + Action Hidden { get; set; } + void DxToast_Hidden(object sender, JQueryEventArgs e) { + if (e.Identifier == Id) { + Hidden?.Invoke(); + } + } + [Parameter] + Action Hiding { get; set; } + void DxToast_Hiding(object sender, JQueryEventArgs e) { + if (e.Identifier == Id) { + Hiding?.Invoke(); + } + } + [Parameter] + Action Showing { get; set; } + void DxToast_Showing(object sender, JQueryEventArgs e) { + if (e.Identifier == Id) { + Showing?.Invoke(); + } + } + [Parameter] + Action Shown { get; set; } + void DxToast_Shown(object sender, JQueryEventArgs e) { + if (e.Identifier == Id) { + Shown?.Invoke(); + } + } + [Parameter] + Action ContentReady { get; set; } + void DxToast_ContentReady(object sender, JQueryEventArgs e) { + if (e.Identifier == Id) { + ContentReady?.Invoke(); + } + } + [Parameter] + Action Disposing { get; set; } + void DxToast_Disposing(object sender, JQueryEventArgs e) { + if (e.Identifier == Id) { + Disposing?.Invoke(); + } + } + [Parameter] + Action OptionChanged { get; set; } + void DxToast_OptionChanged(object sender, JQueryEventArgs e) { + if (e.Identifier == Id) { + OptionChanged?.Invoke(); + } + } + [Parameter] + Action Initialized { get; set; } + void DxToast_Initialized(object sender, JQueryEventArgs e) { + if (e.Identifier == Id) { + Initialized?.Invoke(); + } } public void Dispose() { + DevExpress.Ui.DxToastInterop.Hidden -= DxToast_Hidden; + DevExpress.Ui.DxToastInterop.Hiding -= DxToast_Hiding; + DevExpress.Ui.DxToastInterop.Showing -= DxToast_Showing; + DevExpress.Ui.DxToastInterop.Shown -= DxToast_Shown; + DevExpress.Ui.DxToastInterop.ContentReady -= DxToast_ContentReady; + DevExpress.Ui.DxToastInterop.Disposing -= DxToast_Disposing; + DevExpress.Ui.DxToastInterop.OptionChanged -= DxToast_OptionChanged; + DevExpress.Ui.DxToastInterop.Initialized -= DxToast_Initialized; } } diff --git a/sources/BlazorDevExtreme/Components/DxToolbar.cshtml b/sources/BlazorDevExtreme/Components/DxToolbar.cshtml index c1df007..1433e0a 100644 --- a/sources/BlazorDevExtreme/Components/DxToolbar.cshtml +++ b/sources/BlazorDevExtreme/Components/DxToolbar.cshtml @@ -12,10 +12,42 @@ return new DevExpress.Ui.DxToolbarOptions { menuItemTemplate = menuItemTemplate, renderAs = renderAs, + dataSource = dataSource, + itemHoldTimeout = itemHoldTimeout, + items = items, + itemTemplate = itemTemplate, + keyExpr = keyExpr, + noDataText = noDataText, + selectedIndex = selectedIndex, + selectedItem = selectedItem, + selectedItemKeys = selectedItemKeys, + selectedItems = selectedItems, + accessKey = accessKey, + activeStateEnabled = activeStateEnabled, + disabled = disabled, + focusStateEnabled = focusStateEnabled, + hint = hint, + hoverStateEnabled = hoverStateEnabled, + tabIndex = tabIndex, + visible = visible, + bindingOptions = bindingOptions, + elementAttr = elementAttr, + height = height, + rtlEnabled = rtlEnabled, + width = width, + onItemClickEnabled = onItemClickEnabled, + onItemContextMenuEnabled = onItemContextMenuEnabled, + onItemHoldEnabled = onItemHoldEnabled, + onItemRenderedEnabled = onItemRenderedEnabled, + onSelectionChangedEnabled = onSelectionChangedEnabled, + onContentReadyEnabled = onContentReadyEnabled, + onDisposingEnabled = onDisposingEnabled, + onOptionChangedEnabled = onOptionChangedEnabled, + onInitializedEnabled = onInitializedEnabled, }; } protected override Task Init(DevExpress.Ui.DxToolbarOptions options) { -return DevExpress.Ui.DxToolbarInterop.Init(dxTarget, options); + return DevExpress.Ui.DxToolbarInterop.Init(dxTarget, options); } object menuItemTemplate; [Parameter] @@ -32,7 +64,7 @@ return DevExpress.Ui.DxToolbarInterop.Init(dxTarget, options); string renderAs; [Parameter] string RenderAs { - get => isInitialized ? DevExpress.Ui.DxToolbarInterop.GetRenderAs(dxTarget).Result : renderAs; + get => isInitialized ? (string)DevExpress.Ui.DxToolbarInterop.GetRenderAs(dxTarget).Result : renderAs; set { if (isInitialized) { DevExpress.Ui.DxToolbarInterop.SetRenderAs(dxTarget, value); @@ -41,9 +73,420 @@ return DevExpress.Ui.DxToolbarInterop.Init(dxTarget, options); } } } + object dataSource; + [Parameter] + object DataSource { + get => isInitialized ? DevExpress.Ui.DxToolbarInterop.GetDataSource(dxTarget).Result : dataSource; + set { + if (isInitialized) { + DevExpress.Ui.DxToolbarInterop.SetDataSource(dxTarget, value); + } else { + this.dataSource = value; + } + } + } + float? itemHoldTimeout; + [Parameter] + float? ItemHoldTimeout { + get => isInitialized ? (float?)DevExpress.Ui.DxToolbarInterop.GetItemHoldTimeout(dxTarget).Result : itemHoldTimeout; + set { + if (isInitialized) { + DevExpress.Ui.DxToolbarInterop.SetItemHoldTimeout(dxTarget, value); + } else { + this.itemHoldTimeout = value; + } + } + } + object items; + [Parameter] + object Items { + get => isInitialized ? DevExpress.Ui.DxToolbarInterop.GetItems(dxTarget).Result : items; + set { + if (isInitialized) { + DevExpress.Ui.DxToolbarInterop.SetItems(dxTarget, value); + } else { + this.items = value; + } + } + } + object itemTemplate; + [Parameter] + object ItemTemplate { + get => isInitialized ? DevExpress.Ui.DxToolbarInterop.GetItemTemplate(dxTarget).Result : itemTemplate; + set { + if (isInitialized) { + DevExpress.Ui.DxToolbarInterop.SetItemTemplate(dxTarget, value); + } else { + this.itemTemplate = value; + } + } + } + object keyExpr; + [Parameter] + object KeyExpr { + get => isInitialized ? DevExpress.Ui.DxToolbarInterop.GetKeyExpr(dxTarget).Result : keyExpr; + set { + if (isInitialized) { + DevExpress.Ui.DxToolbarInterop.SetKeyExpr(dxTarget, value); + } else { + this.keyExpr = value; + } + } + } + string noDataText; + [Parameter] + string NoDataText { + get => isInitialized ? (string)DevExpress.Ui.DxToolbarInterop.GetNoDataText(dxTarget).Result : noDataText; + set { + if (isInitialized) { + DevExpress.Ui.DxToolbarInterop.SetNoDataText(dxTarget, value); + } else { + this.noDataText = value; + } + } + } + float? selectedIndex; + [Parameter] + float? SelectedIndex { + get => isInitialized ? (float?)DevExpress.Ui.DxToolbarInterop.GetSelectedIndex(dxTarget).Result : selectedIndex; + set { + if (isInitialized) { + DevExpress.Ui.DxToolbarInterop.SetSelectedIndex(dxTarget, value); + } else { + this.selectedIndex = value; + } + } + } + object selectedItem; + [Parameter] + object SelectedItem { + get => isInitialized ? DevExpress.Ui.DxToolbarInterop.GetSelectedItem(dxTarget).Result : selectedItem; + set { + if (isInitialized) { + DevExpress.Ui.DxToolbarInterop.SetSelectedItem(dxTarget, value); + } else { + this.selectedItem = value; + } + } + } + object selectedItemKeys; + [Parameter] + object SelectedItemKeys { + get => isInitialized ? DevExpress.Ui.DxToolbarInterop.GetSelectedItemKeys(dxTarget).Result : selectedItemKeys; + set { + if (isInitialized) { + DevExpress.Ui.DxToolbarInterop.SetSelectedItemKeys(dxTarget, value); + } else { + this.selectedItemKeys = value; + } + } + } + object selectedItems; + [Parameter] + object SelectedItems { + get => isInitialized ? DevExpress.Ui.DxToolbarInterop.GetSelectedItems(dxTarget).Result : selectedItems; + set { + if (isInitialized) { + DevExpress.Ui.DxToolbarInterop.SetSelectedItems(dxTarget, value); + } else { + this.selectedItems = value; + } + } + } + string accessKey; + [Parameter] + string AccessKey { + get => isInitialized ? (string)DevExpress.Ui.DxToolbarInterop.GetAccessKey(dxTarget).Result : accessKey; + set { + if (isInitialized) { + DevExpress.Ui.DxToolbarInterop.SetAccessKey(dxTarget, value); + } else { + this.accessKey = value; + } + } + } + bool? activeStateEnabled; + [Parameter] + bool? ActiveStateEnabled { + get => isInitialized ? (bool?)DevExpress.Ui.DxToolbarInterop.GetActiveStateEnabled(dxTarget).Result : activeStateEnabled; + set { + if (isInitialized) { + DevExpress.Ui.DxToolbarInterop.SetActiveStateEnabled(dxTarget, value); + } else { + this.activeStateEnabled = value; + } + } + } + bool? disabled; + [Parameter] + bool? Disabled { + get => isInitialized ? (bool?)DevExpress.Ui.DxToolbarInterop.GetDisabled(dxTarget).Result : disabled; + set { + if (isInitialized) { + DevExpress.Ui.DxToolbarInterop.SetDisabled(dxTarget, value); + } else { + this.disabled = value; + } + } + } + bool? focusStateEnabled; + [Parameter] + bool? FocusStateEnabled { + get => isInitialized ? (bool?)DevExpress.Ui.DxToolbarInterop.GetFocusStateEnabled(dxTarget).Result : focusStateEnabled; + set { + if (isInitialized) { + DevExpress.Ui.DxToolbarInterop.SetFocusStateEnabled(dxTarget, value); + } else { + this.focusStateEnabled = value; + } + } + } + string hint; + [Parameter] + string Hint { + get => isInitialized ? (string)DevExpress.Ui.DxToolbarInterop.GetHint(dxTarget).Result : hint; + set { + if (isInitialized) { + DevExpress.Ui.DxToolbarInterop.SetHint(dxTarget, value); + } else { + this.hint = value; + } + } + } + bool? hoverStateEnabled; + [Parameter] + bool? HoverStateEnabled { + get => isInitialized ? (bool?)DevExpress.Ui.DxToolbarInterop.GetHoverStateEnabled(dxTarget).Result : hoverStateEnabled; + set { + if (isInitialized) { + DevExpress.Ui.DxToolbarInterop.SetHoverStateEnabled(dxTarget, value); + } else { + this.hoverStateEnabled = value; + } + } + } + float? tabIndex; + [Parameter] + float? TabIndex { + get => isInitialized ? (float?)DevExpress.Ui.DxToolbarInterop.GetTabIndex(dxTarget).Result : tabIndex; + set { + if (isInitialized) { + DevExpress.Ui.DxToolbarInterop.SetTabIndex(dxTarget, value); + } else { + this.tabIndex = value; + } + } + } + bool? visible; + [Parameter] + bool? Visible { + get => isInitialized ? (bool?)DevExpress.Ui.DxToolbarInterop.GetVisible(dxTarget).Result : visible; + set { + if (isInitialized) { + DevExpress.Ui.DxToolbarInterop.SetVisible(dxTarget, value); + } else { + this.visible = value; + } + } + } + object bindingOptions; + [Parameter] + object BindingOptions { + get => isInitialized ? DevExpress.Ui.DxToolbarInterop.GetBindingOptions(dxTarget).Result : bindingOptions; + set { + if (isInitialized) { + DevExpress.Ui.DxToolbarInterop.SetBindingOptions(dxTarget, value); + } else { + this.bindingOptions = value; + } + } + } + object elementAttr; + [Parameter] + object ElementAttr { + get => isInitialized ? DevExpress.Ui.DxToolbarInterop.GetElementAttr(dxTarget).Result : elementAttr; + set { + if (isInitialized) { + DevExpress.Ui.DxToolbarInterop.SetElementAttr(dxTarget, value); + } else { + this.elementAttr = value; + } + } + } + object height; + [Parameter] + object Height { + get => isInitialized ? DevExpress.Ui.DxToolbarInterop.GetHeight(dxTarget).Result : height; + set { + if (isInitialized) { + DevExpress.Ui.DxToolbarInterop.SetHeight(dxTarget, value); + } else { + this.height = value; + } + } + } + bool? rtlEnabled; + [Parameter] + bool? RtlEnabled { + get => isInitialized ? (bool?)DevExpress.Ui.DxToolbarInterop.GetRtlEnabled(dxTarget).Result : rtlEnabled; + set { + if (isInitialized) { + DevExpress.Ui.DxToolbarInterop.SetRtlEnabled(dxTarget, value); + } else { + this.rtlEnabled = value; + } + } + } + object width; + [Parameter] + object Width { + get => isInitialized ? DevExpress.Ui.DxToolbarInterop.GetWidth(dxTarget).Result : width; + set { + if (isInitialized) { + DevExpress.Ui.DxToolbarInterop.SetWidth(dxTarget, value); + } else { + this.width = value; + } + } + } + bool? onItemClickEnabled; + [Parameter] + bool? OnItemClickEnabled { + get => onItemClickEnabled; + set => this.onItemClickEnabled = value; + } + bool? onItemContextMenuEnabled; + [Parameter] + bool? OnItemContextMenuEnabled { + get => onItemContextMenuEnabled; + set => this.onItemContextMenuEnabled = value; + } + bool? onItemHoldEnabled; + [Parameter] + bool? OnItemHoldEnabled { + get => onItemHoldEnabled; + set => this.onItemHoldEnabled = value; + } + bool? onItemRenderedEnabled; + [Parameter] + bool? OnItemRenderedEnabled { + get => onItemRenderedEnabled; + set => this.onItemRenderedEnabled = value; + } + bool? onSelectionChangedEnabled; + [Parameter] + bool? OnSelectionChangedEnabled { + get => onSelectionChangedEnabled; + set => this.onSelectionChangedEnabled = value; + } + bool? onContentReadyEnabled; + [Parameter] + bool? OnContentReadyEnabled { + get => onContentReadyEnabled; + set => this.onContentReadyEnabled = value; + } + bool? onDisposingEnabled; + [Parameter] + bool? OnDisposingEnabled { + get => onDisposingEnabled; + set => this.onDisposingEnabled = value; + } + bool? onOptionChangedEnabled; + [Parameter] + bool? OnOptionChangedEnabled { + get => onOptionChangedEnabled; + set => this.onOptionChangedEnabled = value; + } + bool? onInitializedEnabled; + [Parameter] + bool? OnInitializedEnabled { + get => onInitializedEnabled; + set => this.onInitializedEnabled = value; + } protected override async Task OnInitAsync() { await base.OnInitAsync(); + DevExpress.Ui.DxToolbarInterop.ItemClick += DxToolbar_ItemClick; + DevExpress.Ui.DxToolbarInterop.ItemContextMenu += DxToolbar_ItemContextMenu; + DevExpress.Ui.DxToolbarInterop.ItemHold += DxToolbar_ItemHold; + DevExpress.Ui.DxToolbarInterop.ItemRendered += DxToolbar_ItemRendered; + DevExpress.Ui.DxToolbarInterop.SelectionChanged += DxToolbar_SelectionChanged; + DevExpress.Ui.DxToolbarInterop.ContentReady += DxToolbar_ContentReady; + DevExpress.Ui.DxToolbarInterop.Disposing += DxToolbar_Disposing; + DevExpress.Ui.DxToolbarInterop.OptionChanged += DxToolbar_OptionChanged; + DevExpress.Ui.DxToolbarInterop.Initialized += DxToolbar_Initialized; + } + [Parameter] + Action ItemClick { get; set; } + void DxToolbar_ItemClick(object sender, JQueryEventArgs e) { + if (e.Identifier == Id) { + ItemClick?.Invoke(); + } + } + [Parameter] + Action ItemContextMenu { get; set; } + void DxToolbar_ItemContextMenu(object sender, JQueryEventArgs e) { + if (e.Identifier == Id) { + ItemContextMenu?.Invoke(); + } + } + [Parameter] + Action ItemHold { get; set; } + void DxToolbar_ItemHold(object sender, JQueryEventArgs e) { + if (e.Identifier == Id) { + ItemHold?.Invoke(); + } + } + [Parameter] + Action ItemRendered { get; set; } + void DxToolbar_ItemRendered(object sender, JQueryEventArgs e) { + if (e.Identifier == Id) { + ItemRendered?.Invoke(); + } + } + [Parameter] + Action SelectionChanged { get; set; } + void DxToolbar_SelectionChanged(object sender, JQueryEventArgs e) { + if (e.Identifier == Id) { + SelectionChanged?.Invoke(); + } + } + [Parameter] + Action ContentReady { get; set; } + void DxToolbar_ContentReady(object sender, JQueryEventArgs e) { + if (e.Identifier == Id) { + ContentReady?.Invoke(); + } + } + [Parameter] + Action Disposing { get; set; } + void DxToolbar_Disposing(object sender, JQueryEventArgs e) { + if (e.Identifier == Id) { + Disposing?.Invoke(); + } + } + [Parameter] + Action OptionChanged { get; set; } + void DxToolbar_OptionChanged(object sender, JQueryEventArgs e) { + if (e.Identifier == Id) { + OptionChanged?.Invoke(); + } + } + [Parameter] + Action Initialized { get; set; } + void DxToolbar_Initialized(object sender, JQueryEventArgs e) { + if (e.Identifier == Id) { + Initialized?.Invoke(); + } } public void Dispose() { + DevExpress.Ui.DxToolbarInterop.ItemClick -= DxToolbar_ItemClick; + DevExpress.Ui.DxToolbarInterop.ItemContextMenu -= DxToolbar_ItemContextMenu; + DevExpress.Ui.DxToolbarInterop.ItemHold -= DxToolbar_ItemHold; + DevExpress.Ui.DxToolbarInterop.ItemRendered -= DxToolbar_ItemRendered; + DevExpress.Ui.DxToolbarInterop.SelectionChanged -= DxToolbar_SelectionChanged; + DevExpress.Ui.DxToolbarInterop.ContentReady -= DxToolbar_ContentReady; + DevExpress.Ui.DxToolbarInterop.Disposing -= DxToolbar_Disposing; + DevExpress.Ui.DxToolbarInterop.OptionChanged -= DxToolbar_OptionChanged; + DevExpress.Ui.DxToolbarInterop.Initialized -= DxToolbar_Initialized; } } diff --git a/sources/BlazorDevExtreme/Components/DxTooltip.cshtml b/sources/BlazorDevExtreme/Components/DxTooltip.cshtml index 63582df..7ac93c5 100644 --- a/sources/BlazorDevExtreme/Components/DxTooltip.cshtml +++ b/sources/BlazorDevExtreme/Components/DxTooltip.cshtml @@ -10,14 +10,687 @@ public DxTooltip() : base("DxTooltip") { } protected override DevExpress.Ui.DxTooltipOptions CreateOptions() { return new DevExpress.Ui.DxTooltipOptions { + animation = animation, + closeOnOutsideClick = closeOnOutsideClick, + height = height, + hideEvent = hideEvent, + position = position, + shading = shading, + showEvent = showEvent, + showTitle = showTitle, + target = target, + width = width, + container = container, + dragEnabled = dragEnabled, + focusStateEnabled = focusStateEnabled, + fullScreen = fullScreen, + resizeEnabled = resizeEnabled, + showCloseButton = showCloseButton, + title = title, + titleTemplate = titleTemplate, + toolbarItems = toolbarItems, + closeOnBackButton = closeOnBackButton, + contentTemplate = contentTemplate, + deferRendering = deferRendering, + maxHeight = maxHeight, + maxWidth = maxWidth, + minHeight = minHeight, + minWidth = minWidth, + shadingColor = shadingColor, + visible = visible, + accessKey = accessKey, + activeStateEnabled = activeStateEnabled, + disabled = disabled, + hint = hint, + hoverStateEnabled = hoverStateEnabled, + tabIndex = tabIndex, + bindingOptions = bindingOptions, + elementAttr = elementAttr, + rtlEnabled = rtlEnabled, + onResizeEnabled = onResizeEnabled, + onResizeEndEnabled = onResizeEndEnabled, + onResizeStartEnabled = onResizeStartEnabled, + onTitleRenderedEnabled = onTitleRenderedEnabled, + onHiddenEnabled = onHiddenEnabled, + onHidingEnabled = onHidingEnabled, + onShowingEnabled = onShowingEnabled, + onShownEnabled = onShownEnabled, + onContentReadyEnabled = onContentReadyEnabled, + onDisposingEnabled = onDisposingEnabled, + onOptionChangedEnabled = onOptionChangedEnabled, + onInitializedEnabled = onInitializedEnabled, }; } protected override Task Init(DevExpress.Ui.DxTooltipOptions options) { -return DevExpress.Ui.DxTooltipInterop.Init(dxTarget, options); + return DevExpress.Ui.DxTooltipInterop.Init(dxTarget, options); + } + object animation; + [Parameter] + object Animation { + get => isInitialized ? DevExpress.Ui.DxTooltipInterop.GetAnimation(dxTarget).Result : animation; + set { + if (isInitialized) { + DevExpress.Ui.DxTooltipInterop.SetAnimation(dxTarget, value); + } else { + this.animation = value; + } + } + } + object closeOnOutsideClick; + [Parameter] + object CloseOnOutsideClick { + get => isInitialized ? DevExpress.Ui.DxTooltipInterop.GetCloseOnOutsideClick(dxTarget).Result : closeOnOutsideClick; + set { + if (isInitialized) { + DevExpress.Ui.DxTooltipInterop.SetCloseOnOutsideClick(dxTarget, value); + } else { + this.closeOnOutsideClick = value; + } + } + } + object height; + [Parameter] + object Height { + get => isInitialized ? DevExpress.Ui.DxTooltipInterop.GetHeight(dxTarget).Result : height; + set { + if (isInitialized) { + DevExpress.Ui.DxTooltipInterop.SetHeight(dxTarget, value); + } else { + this.height = value; + } + } + } + object hideEvent; + [Parameter] + object HideEvent { + get => isInitialized ? DevExpress.Ui.DxTooltipInterop.GetHideEvent(dxTarget).Result : hideEvent; + set { + if (isInitialized) { + DevExpress.Ui.DxTooltipInterop.SetHideEvent(dxTarget, value); + } else { + this.hideEvent = value; + } + } + } + object position; + [Parameter] + object Position { + get => isInitialized ? DevExpress.Ui.DxTooltipInterop.GetPosition(dxTarget).Result : position; + set { + if (isInitialized) { + DevExpress.Ui.DxTooltipInterop.SetPosition(dxTarget, value); + } else { + this.position = value; + } + } + } + bool? shading; + [Parameter] + bool? Shading { + get => isInitialized ? (bool?)DevExpress.Ui.DxTooltipInterop.GetShading(dxTarget).Result : shading; + set { + if (isInitialized) { + DevExpress.Ui.DxTooltipInterop.SetShading(dxTarget, value); + } else { + this.shading = value; + } + } + } + object showEvent; + [Parameter] + object ShowEvent { + get => isInitialized ? DevExpress.Ui.DxTooltipInterop.GetShowEvent(dxTarget).Result : showEvent; + set { + if (isInitialized) { + DevExpress.Ui.DxTooltipInterop.SetShowEvent(dxTarget, value); + } else { + this.showEvent = value; + } + } + } + bool? showTitle; + [Parameter] + bool? ShowTitle { + get => isInitialized ? (bool?)DevExpress.Ui.DxTooltipInterop.GetShowTitle(dxTarget).Result : showTitle; + set { + if (isInitialized) { + DevExpress.Ui.DxTooltipInterop.SetShowTitle(dxTarget, value); + } else { + this.showTitle = value; + } + } + } + object target; + [Parameter] + object Target { + get => isInitialized ? DevExpress.Ui.DxTooltipInterop.GetTarget(dxTarget).Result : target; + set { + if (isInitialized) { + DevExpress.Ui.DxTooltipInterop.SetTarget(dxTarget, value); + } else { + this.target = value; + } + } + } + object width; + [Parameter] + object Width { + get => isInitialized ? DevExpress.Ui.DxTooltipInterop.GetWidth(dxTarget).Result : width; + set { + if (isInitialized) { + DevExpress.Ui.DxTooltipInterop.SetWidth(dxTarget, value); + } else { + this.width = value; + } + } + } + object container; + [Parameter] + object Container { + get => isInitialized ? DevExpress.Ui.DxTooltipInterop.GetContainer(dxTarget).Result : container; + set { + if (isInitialized) { + DevExpress.Ui.DxTooltipInterop.SetContainer(dxTarget, value); + } else { + this.container = value; + } + } + } + bool? dragEnabled; + [Parameter] + bool? DragEnabled { + get => isInitialized ? (bool?)DevExpress.Ui.DxTooltipInterop.GetDragEnabled(dxTarget).Result : dragEnabled; + set { + if (isInitialized) { + DevExpress.Ui.DxTooltipInterop.SetDragEnabled(dxTarget, value); + } else { + this.dragEnabled = value; + } + } + } + bool? focusStateEnabled; + [Parameter] + bool? FocusStateEnabled { + get => isInitialized ? (bool?)DevExpress.Ui.DxTooltipInterop.GetFocusStateEnabled(dxTarget).Result : focusStateEnabled; + set { + if (isInitialized) { + DevExpress.Ui.DxTooltipInterop.SetFocusStateEnabled(dxTarget, value); + } else { + this.focusStateEnabled = value; + } + } + } + bool? fullScreen; + [Parameter] + bool? FullScreen { + get => isInitialized ? (bool?)DevExpress.Ui.DxTooltipInterop.GetFullScreen(dxTarget).Result : fullScreen; + set { + if (isInitialized) { + DevExpress.Ui.DxTooltipInterop.SetFullScreen(dxTarget, value); + } else { + this.fullScreen = value; + } + } + } + bool? resizeEnabled; + [Parameter] + bool? ResizeEnabled { + get => isInitialized ? (bool?)DevExpress.Ui.DxTooltipInterop.GetResizeEnabled(dxTarget).Result : resizeEnabled; + set { + if (isInitialized) { + DevExpress.Ui.DxTooltipInterop.SetResizeEnabled(dxTarget, value); + } else { + this.resizeEnabled = value; + } + } + } + bool? showCloseButton; + [Parameter] + bool? ShowCloseButton { + get => isInitialized ? (bool?)DevExpress.Ui.DxTooltipInterop.GetShowCloseButton(dxTarget).Result : showCloseButton; + set { + if (isInitialized) { + DevExpress.Ui.DxTooltipInterop.SetShowCloseButton(dxTarget, value); + } else { + this.showCloseButton = value; + } + } + } + string title; + [Parameter] + string Title { + get => isInitialized ? (string)DevExpress.Ui.DxTooltipInterop.GetTitle(dxTarget).Result : title; + set { + if (isInitialized) { + DevExpress.Ui.DxTooltipInterop.SetTitle(dxTarget, value); + } else { + this.title = value; + } + } + } + object titleTemplate; + [Parameter] + object TitleTemplate { + get => isInitialized ? DevExpress.Ui.DxTooltipInterop.GetTitleTemplate(dxTarget).Result : titleTemplate; + set { + if (isInitialized) { + DevExpress.Ui.DxTooltipInterop.SetTitleTemplate(dxTarget, value); + } else { + this.titleTemplate = value; + } + } + } + object toolbarItems; + [Parameter] + object ToolbarItems { + get => isInitialized ? DevExpress.Ui.DxTooltipInterop.GetToolbarItems(dxTarget).Result : toolbarItems; + set { + if (isInitialized) { + DevExpress.Ui.DxTooltipInterop.SetToolbarItems(dxTarget, value); + } else { + this.toolbarItems = value; + } + } + } + bool? closeOnBackButton; + [Parameter] + bool? CloseOnBackButton { + get => isInitialized ? (bool?)DevExpress.Ui.DxTooltipInterop.GetCloseOnBackButton(dxTarget).Result : closeOnBackButton; + set { + if (isInitialized) { + DevExpress.Ui.DxTooltipInterop.SetCloseOnBackButton(dxTarget, value); + } else { + this.closeOnBackButton = value; + } + } + } + object contentTemplate; + [Parameter] + object ContentTemplate { + get => isInitialized ? DevExpress.Ui.DxTooltipInterop.GetContentTemplate(dxTarget).Result : contentTemplate; + set { + if (isInitialized) { + DevExpress.Ui.DxTooltipInterop.SetContentTemplate(dxTarget, value); + } else { + this.contentTemplate = value; + } + } + } + bool? deferRendering; + [Parameter] + bool? DeferRendering { + get => isInitialized ? (bool?)DevExpress.Ui.DxTooltipInterop.GetDeferRendering(dxTarget).Result : deferRendering; + set { + if (isInitialized) { + DevExpress.Ui.DxTooltipInterop.SetDeferRendering(dxTarget, value); + } else { + this.deferRendering = value; + } + } + } + object maxHeight; + [Parameter] + object MaxHeight { + get => isInitialized ? DevExpress.Ui.DxTooltipInterop.GetMaxHeight(dxTarget).Result : maxHeight; + set { + if (isInitialized) { + DevExpress.Ui.DxTooltipInterop.SetMaxHeight(dxTarget, value); + } else { + this.maxHeight = value; + } + } + } + object maxWidth; + [Parameter] + object MaxWidth { + get => isInitialized ? DevExpress.Ui.DxTooltipInterop.GetMaxWidth(dxTarget).Result : maxWidth; + set { + if (isInitialized) { + DevExpress.Ui.DxTooltipInterop.SetMaxWidth(dxTarget, value); + } else { + this.maxWidth = value; + } + } + } + object minHeight; + [Parameter] + object MinHeight { + get => isInitialized ? DevExpress.Ui.DxTooltipInterop.GetMinHeight(dxTarget).Result : minHeight; + set { + if (isInitialized) { + DevExpress.Ui.DxTooltipInterop.SetMinHeight(dxTarget, value); + } else { + this.minHeight = value; + } + } + } + object minWidth; + [Parameter] + object MinWidth { + get => isInitialized ? DevExpress.Ui.DxTooltipInterop.GetMinWidth(dxTarget).Result : minWidth; + set { + if (isInitialized) { + DevExpress.Ui.DxTooltipInterop.SetMinWidth(dxTarget, value); + } else { + this.minWidth = value; + } + } + } + string shadingColor; + [Parameter] + string ShadingColor { + get => isInitialized ? (string)DevExpress.Ui.DxTooltipInterop.GetShadingColor(dxTarget).Result : shadingColor; + set { + if (isInitialized) { + DevExpress.Ui.DxTooltipInterop.SetShadingColor(dxTarget, value); + } else { + this.shadingColor = value; + } + } + } + bool? visible; + [Parameter] + bool? Visible { + get => isInitialized ? (bool?)DevExpress.Ui.DxTooltipInterop.GetVisible(dxTarget).Result : visible; + set { + if (isInitialized) { + DevExpress.Ui.DxTooltipInterop.SetVisible(dxTarget, value); + } else { + this.visible = value; + } + } + } + string accessKey; + [Parameter] + string AccessKey { + get => isInitialized ? (string)DevExpress.Ui.DxTooltipInterop.GetAccessKey(dxTarget).Result : accessKey; + set { + if (isInitialized) { + DevExpress.Ui.DxTooltipInterop.SetAccessKey(dxTarget, value); + } else { + this.accessKey = value; + } + } + } + bool? activeStateEnabled; + [Parameter] + bool? ActiveStateEnabled { + get => isInitialized ? (bool?)DevExpress.Ui.DxTooltipInterop.GetActiveStateEnabled(dxTarget).Result : activeStateEnabled; + set { + if (isInitialized) { + DevExpress.Ui.DxTooltipInterop.SetActiveStateEnabled(dxTarget, value); + } else { + this.activeStateEnabled = value; + } + } + } + bool? disabled; + [Parameter] + bool? Disabled { + get => isInitialized ? (bool?)DevExpress.Ui.DxTooltipInterop.GetDisabled(dxTarget).Result : disabled; + set { + if (isInitialized) { + DevExpress.Ui.DxTooltipInterop.SetDisabled(dxTarget, value); + } else { + this.disabled = value; + } + } + } + string hint; + [Parameter] + string Hint { + get => isInitialized ? (string)DevExpress.Ui.DxTooltipInterop.GetHint(dxTarget).Result : hint; + set { + if (isInitialized) { + DevExpress.Ui.DxTooltipInterop.SetHint(dxTarget, value); + } else { + this.hint = value; + } + } + } + bool? hoverStateEnabled; + [Parameter] + bool? HoverStateEnabled { + get => isInitialized ? (bool?)DevExpress.Ui.DxTooltipInterop.GetHoverStateEnabled(dxTarget).Result : hoverStateEnabled; + set { + if (isInitialized) { + DevExpress.Ui.DxTooltipInterop.SetHoverStateEnabled(dxTarget, value); + } else { + this.hoverStateEnabled = value; + } + } + } + float? tabIndex; + [Parameter] + float? TabIndex { + get => isInitialized ? (float?)DevExpress.Ui.DxTooltipInterop.GetTabIndex(dxTarget).Result : tabIndex; + set { + if (isInitialized) { + DevExpress.Ui.DxTooltipInterop.SetTabIndex(dxTarget, value); + } else { + this.tabIndex = value; + } + } + } + object bindingOptions; + [Parameter] + object BindingOptions { + get => isInitialized ? DevExpress.Ui.DxTooltipInterop.GetBindingOptions(dxTarget).Result : bindingOptions; + set { + if (isInitialized) { + DevExpress.Ui.DxTooltipInterop.SetBindingOptions(dxTarget, value); + } else { + this.bindingOptions = value; + } + } + } + object elementAttr; + [Parameter] + object ElementAttr { + get => isInitialized ? DevExpress.Ui.DxTooltipInterop.GetElementAttr(dxTarget).Result : elementAttr; + set { + if (isInitialized) { + DevExpress.Ui.DxTooltipInterop.SetElementAttr(dxTarget, value); + } else { + this.elementAttr = value; + } + } + } + bool? rtlEnabled; + [Parameter] + bool? RtlEnabled { + get => isInitialized ? (bool?)DevExpress.Ui.DxTooltipInterop.GetRtlEnabled(dxTarget).Result : rtlEnabled; + set { + if (isInitialized) { + DevExpress.Ui.DxTooltipInterop.SetRtlEnabled(dxTarget, value); + } else { + this.rtlEnabled = value; + } + } + } + bool? onResizeEnabled; + [Parameter] + bool? OnResizeEnabled { + get => onResizeEnabled; + set => this.onResizeEnabled = value; + } + bool? onResizeEndEnabled; + [Parameter] + bool? OnResizeEndEnabled { + get => onResizeEndEnabled; + set => this.onResizeEndEnabled = value; + } + bool? onResizeStartEnabled; + [Parameter] + bool? OnResizeStartEnabled { + get => onResizeStartEnabled; + set => this.onResizeStartEnabled = value; + } + bool? onTitleRenderedEnabled; + [Parameter] + bool? OnTitleRenderedEnabled { + get => onTitleRenderedEnabled; + set => this.onTitleRenderedEnabled = value; + } + bool? onHiddenEnabled; + [Parameter] + bool? OnHiddenEnabled { + get => onHiddenEnabled; + set => this.onHiddenEnabled = value; + } + bool? onHidingEnabled; + [Parameter] + bool? OnHidingEnabled { + get => onHidingEnabled; + set => this.onHidingEnabled = value; + } + bool? onShowingEnabled; + [Parameter] + bool? OnShowingEnabled { + get => onShowingEnabled; + set => this.onShowingEnabled = value; + } + bool? onShownEnabled; + [Parameter] + bool? OnShownEnabled { + get => onShownEnabled; + set => this.onShownEnabled = value; + } + bool? onContentReadyEnabled; + [Parameter] + bool? OnContentReadyEnabled { + get => onContentReadyEnabled; + set => this.onContentReadyEnabled = value; + } + bool? onDisposingEnabled; + [Parameter] + bool? OnDisposingEnabled { + get => onDisposingEnabled; + set => this.onDisposingEnabled = value; + } + bool? onOptionChangedEnabled; + [Parameter] + bool? OnOptionChangedEnabled { + get => onOptionChangedEnabled; + set => this.onOptionChangedEnabled = value; + } + bool? onInitializedEnabled; + [Parameter] + bool? OnInitializedEnabled { + get => onInitializedEnabled; + set => this.onInitializedEnabled = value; } protected override async Task OnInitAsync() { await base.OnInitAsync(); + DevExpress.Ui.DxTooltipInterop.Resize += DxTooltip_Resize; + DevExpress.Ui.DxTooltipInterop.ResizeEnd += DxTooltip_ResizeEnd; + DevExpress.Ui.DxTooltipInterop.ResizeStart += DxTooltip_ResizeStart; + DevExpress.Ui.DxTooltipInterop.TitleRendered += DxTooltip_TitleRendered; + DevExpress.Ui.DxTooltipInterop.Hidden += DxTooltip_Hidden; + DevExpress.Ui.DxTooltipInterop.Hiding += DxTooltip_Hiding; + DevExpress.Ui.DxTooltipInterop.Showing += DxTooltip_Showing; + DevExpress.Ui.DxTooltipInterop.Shown += DxTooltip_Shown; + DevExpress.Ui.DxTooltipInterop.ContentReady += DxTooltip_ContentReady; + DevExpress.Ui.DxTooltipInterop.Disposing += DxTooltip_Disposing; + DevExpress.Ui.DxTooltipInterop.OptionChanged += DxTooltip_OptionChanged; + DevExpress.Ui.DxTooltipInterop.Initialized += DxTooltip_Initialized; + } + [Parameter] + Action Resize { get; set; } + void DxTooltip_Resize(object sender, JQueryEventArgs e) { + if (e.Identifier == Id) { + Resize?.Invoke(); + } + } + [Parameter] + Action ResizeEnd { get; set; } + void DxTooltip_ResizeEnd(object sender, JQueryEventArgs e) { + if (e.Identifier == Id) { + ResizeEnd?.Invoke(); + } + } + [Parameter] + Action ResizeStart { get; set; } + void DxTooltip_ResizeStart(object sender, JQueryEventArgs e) { + if (e.Identifier == Id) { + ResizeStart?.Invoke(); + } + } + [Parameter] + Action TitleRendered { get; set; } + void DxTooltip_TitleRendered(object sender, JQueryEventArgs e) { + if (e.Identifier == Id) { + TitleRendered?.Invoke(); + } + } + [Parameter] + Action Hidden { get; set; } + void DxTooltip_Hidden(object sender, JQueryEventArgs e) { + if (e.Identifier == Id) { + Hidden?.Invoke(); + } + } + [Parameter] + Action Hiding { get; set; } + void DxTooltip_Hiding(object sender, JQueryEventArgs e) { + if (e.Identifier == Id) { + Hiding?.Invoke(); + } + } + [Parameter] + Action Showing { get; set; } + void DxTooltip_Showing(object sender, JQueryEventArgs e) { + if (e.Identifier == Id) { + Showing?.Invoke(); + } + } + [Parameter] + Action Shown { get; set; } + void DxTooltip_Shown(object sender, JQueryEventArgs e) { + if (e.Identifier == Id) { + Shown?.Invoke(); + } + } + [Parameter] + Action ContentReady { get; set; } + void DxTooltip_ContentReady(object sender, JQueryEventArgs e) { + if (e.Identifier == Id) { + ContentReady?.Invoke(); + } + } + [Parameter] + Action Disposing { get; set; } + void DxTooltip_Disposing(object sender, JQueryEventArgs e) { + if (e.Identifier == Id) { + Disposing?.Invoke(); + } + } + [Parameter] + Action OptionChanged { get; set; } + void DxTooltip_OptionChanged(object sender, JQueryEventArgs e) { + if (e.Identifier == Id) { + OptionChanged?.Invoke(); + } + } + [Parameter] + Action Initialized { get; set; } + void DxTooltip_Initialized(object sender, JQueryEventArgs e) { + if (e.Identifier == Id) { + Initialized?.Invoke(); + } } public void Dispose() { + DevExpress.Ui.DxTooltipInterop.Resize -= DxTooltip_Resize; + DevExpress.Ui.DxTooltipInterop.ResizeEnd -= DxTooltip_ResizeEnd; + DevExpress.Ui.DxTooltipInterop.ResizeStart -= DxTooltip_ResizeStart; + DevExpress.Ui.DxTooltipInterop.TitleRendered -= DxTooltip_TitleRendered; + DevExpress.Ui.DxTooltipInterop.Hidden -= DxTooltip_Hidden; + DevExpress.Ui.DxTooltipInterop.Hiding -= DxTooltip_Hiding; + DevExpress.Ui.DxTooltipInterop.Showing -= DxTooltip_Showing; + DevExpress.Ui.DxTooltipInterop.Shown -= DxTooltip_Shown; + DevExpress.Ui.DxTooltipInterop.ContentReady -= DxTooltip_ContentReady; + DevExpress.Ui.DxTooltipInterop.Disposing -= DxTooltip_Disposing; + DevExpress.Ui.DxTooltipInterop.OptionChanged -= DxTooltip_OptionChanged; + DevExpress.Ui.DxTooltipInterop.Initialized -= DxTooltip_Initialized; } } diff --git a/sources/BlazorDevExtreme/Components/DxTrackBar.cshtml b/sources/BlazorDevExtreme/Components/DxTrackBar.cshtml index 115e593..7571f99 100644 --- a/sources/BlazorDevExtreme/Components/DxTrackBar.cshtml +++ b/sources/BlazorDevExtreme/Components/DxTrackBar.cshtml @@ -12,15 +12,38 @@ return new DevExpress.Ui.DxTrackBarOptions { max = max, min = min, + isValid = isValid, + readOnly = readOnly, + validationError = validationError, + validationMessageMode = validationMessageMode, + value = value, + accessKey = accessKey, + activeStateEnabled = activeStateEnabled, + disabled = disabled, + focusStateEnabled = focusStateEnabled, + hint = hint, + hoverStateEnabled = hoverStateEnabled, + tabIndex = tabIndex, + visible = visible, + bindingOptions = bindingOptions, + elementAttr = elementAttr, + height = height, + rtlEnabled = rtlEnabled, + width = width, + onValueChangedEnabled = onValueChangedEnabled, + onContentReadyEnabled = onContentReadyEnabled, + onDisposingEnabled = onDisposingEnabled, + onOptionChangedEnabled = onOptionChangedEnabled, + onInitializedEnabled = onInitializedEnabled, }; } protected override Task Init(DevExpress.Ui.DxTrackBarOptions options) { -return DevExpress.Ui.DxTrackBarInterop.Init(dxTarget, options); + return DevExpress.Ui.DxTrackBarInterop.Init(dxTarget, options); } float? max; [Parameter] float? Max { - get => isInitialized ? DevExpress.Ui.DxTrackBarInterop.GetMax(dxTarget).Result : max; + get => isInitialized ? (float?)DevExpress.Ui.DxTrackBarInterop.GetMax(dxTarget).Result : max; set { if (isInitialized) { DevExpress.Ui.DxTrackBarInterop.SetMax(dxTarget, value); @@ -32,7 +55,7 @@ return DevExpress.Ui.DxTrackBarInterop.Init(dxTarget, options); float? min; [Parameter] float? Min { - get => isInitialized ? DevExpress.Ui.DxTrackBarInterop.GetMin(dxTarget).Result : min; + get => isInitialized ? (float?)DevExpress.Ui.DxTrackBarInterop.GetMin(dxTarget).Result : min; set { if (isInitialized) { DevExpress.Ui.DxTrackBarInterop.SetMin(dxTarget, value); @@ -41,9 +64,300 @@ return DevExpress.Ui.DxTrackBarInterop.Init(dxTarget, options); } } } + bool? isValid; + [Parameter] + bool? IsValid { + get => isInitialized ? (bool?)DevExpress.Ui.DxTrackBarInterop.GetIsValid(dxTarget).Result : isValid; + set { + if (isInitialized) { + DevExpress.Ui.DxTrackBarInterop.SetIsValid(dxTarget, value); + } else { + this.isValid = value; + } + } + } + bool? readOnly; + [Parameter] + bool? ReadOnly { + get => isInitialized ? (bool?)DevExpress.Ui.DxTrackBarInterop.GetReadOnly(dxTarget).Result : readOnly; + set { + if (isInitialized) { + DevExpress.Ui.DxTrackBarInterop.SetReadOnly(dxTarget, value); + } else { + this.readOnly = value; + } + } + } + object validationError; + [Parameter] + object ValidationError { + get => isInitialized ? DevExpress.Ui.DxTrackBarInterop.GetValidationError(dxTarget).Result : validationError; + set { + if (isInitialized) { + DevExpress.Ui.DxTrackBarInterop.SetValidationError(dxTarget, value); + } else { + this.validationError = value; + } + } + } + string validationMessageMode; + [Parameter] + string ValidationMessageMode { + get => isInitialized ? (string)DevExpress.Ui.DxTrackBarInterop.GetValidationMessageMode(dxTarget).Result : validationMessageMode; + set { + if (isInitialized) { + DevExpress.Ui.DxTrackBarInterop.SetValidationMessageMode(dxTarget, value); + } else { + this.validationMessageMode = value; + } + } + } + object value; + [Parameter] + object Value { + get => isInitialized ? DevExpress.Ui.DxTrackBarInterop.GetValue(dxTarget).Result : value; + set { + if (isInitialized) { + DevExpress.Ui.DxTrackBarInterop.SetValue(dxTarget, value); + } else { + this.value = value; + } + } + } + string accessKey; + [Parameter] + string AccessKey { + get => isInitialized ? (string)DevExpress.Ui.DxTrackBarInterop.GetAccessKey(dxTarget).Result : accessKey; + set { + if (isInitialized) { + DevExpress.Ui.DxTrackBarInterop.SetAccessKey(dxTarget, value); + } else { + this.accessKey = value; + } + } + } + bool? activeStateEnabled; + [Parameter] + bool? ActiveStateEnabled { + get => isInitialized ? (bool?)DevExpress.Ui.DxTrackBarInterop.GetActiveStateEnabled(dxTarget).Result : activeStateEnabled; + set { + if (isInitialized) { + DevExpress.Ui.DxTrackBarInterop.SetActiveStateEnabled(dxTarget, value); + } else { + this.activeStateEnabled = value; + } + } + } + bool? disabled; + [Parameter] + bool? Disabled { + get => isInitialized ? (bool?)DevExpress.Ui.DxTrackBarInterop.GetDisabled(dxTarget).Result : disabled; + set { + if (isInitialized) { + DevExpress.Ui.DxTrackBarInterop.SetDisabled(dxTarget, value); + } else { + this.disabled = value; + } + } + } + bool? focusStateEnabled; + [Parameter] + bool? FocusStateEnabled { + get => isInitialized ? (bool?)DevExpress.Ui.DxTrackBarInterop.GetFocusStateEnabled(dxTarget).Result : focusStateEnabled; + set { + if (isInitialized) { + DevExpress.Ui.DxTrackBarInterop.SetFocusStateEnabled(dxTarget, value); + } else { + this.focusStateEnabled = value; + } + } + } + string hint; + [Parameter] + string Hint { + get => isInitialized ? (string)DevExpress.Ui.DxTrackBarInterop.GetHint(dxTarget).Result : hint; + set { + if (isInitialized) { + DevExpress.Ui.DxTrackBarInterop.SetHint(dxTarget, value); + } else { + this.hint = value; + } + } + } + bool? hoverStateEnabled; + [Parameter] + bool? HoverStateEnabled { + get => isInitialized ? (bool?)DevExpress.Ui.DxTrackBarInterop.GetHoverStateEnabled(dxTarget).Result : hoverStateEnabled; + set { + if (isInitialized) { + DevExpress.Ui.DxTrackBarInterop.SetHoverStateEnabled(dxTarget, value); + } else { + this.hoverStateEnabled = value; + } + } + } + float? tabIndex; + [Parameter] + float? TabIndex { + get => isInitialized ? (float?)DevExpress.Ui.DxTrackBarInterop.GetTabIndex(dxTarget).Result : tabIndex; + set { + if (isInitialized) { + DevExpress.Ui.DxTrackBarInterop.SetTabIndex(dxTarget, value); + } else { + this.tabIndex = value; + } + } + } + bool? visible; + [Parameter] + bool? Visible { + get => isInitialized ? (bool?)DevExpress.Ui.DxTrackBarInterop.GetVisible(dxTarget).Result : visible; + set { + if (isInitialized) { + DevExpress.Ui.DxTrackBarInterop.SetVisible(dxTarget, value); + } else { + this.visible = value; + } + } + } + object bindingOptions; + [Parameter] + object BindingOptions { + get => isInitialized ? DevExpress.Ui.DxTrackBarInterop.GetBindingOptions(dxTarget).Result : bindingOptions; + set { + if (isInitialized) { + DevExpress.Ui.DxTrackBarInterop.SetBindingOptions(dxTarget, value); + } else { + this.bindingOptions = value; + } + } + } + object elementAttr; + [Parameter] + object ElementAttr { + get => isInitialized ? DevExpress.Ui.DxTrackBarInterop.GetElementAttr(dxTarget).Result : elementAttr; + set { + if (isInitialized) { + DevExpress.Ui.DxTrackBarInterop.SetElementAttr(dxTarget, value); + } else { + this.elementAttr = value; + } + } + } + object height; + [Parameter] + object Height { + get => isInitialized ? DevExpress.Ui.DxTrackBarInterop.GetHeight(dxTarget).Result : height; + set { + if (isInitialized) { + DevExpress.Ui.DxTrackBarInterop.SetHeight(dxTarget, value); + } else { + this.height = value; + } + } + } + bool? rtlEnabled; + [Parameter] + bool? RtlEnabled { + get => isInitialized ? (bool?)DevExpress.Ui.DxTrackBarInterop.GetRtlEnabled(dxTarget).Result : rtlEnabled; + set { + if (isInitialized) { + DevExpress.Ui.DxTrackBarInterop.SetRtlEnabled(dxTarget, value); + } else { + this.rtlEnabled = value; + } + } + } + object width; + [Parameter] + object Width { + get => isInitialized ? DevExpress.Ui.DxTrackBarInterop.GetWidth(dxTarget).Result : width; + set { + if (isInitialized) { + DevExpress.Ui.DxTrackBarInterop.SetWidth(dxTarget, value); + } else { + this.width = value; + } + } + } + bool? onValueChangedEnabled; + [Parameter] + bool? OnValueChangedEnabled { + get => onValueChangedEnabled; + set => this.onValueChangedEnabled = value; + } + bool? onContentReadyEnabled; + [Parameter] + bool? OnContentReadyEnabled { + get => onContentReadyEnabled; + set => this.onContentReadyEnabled = value; + } + bool? onDisposingEnabled; + [Parameter] + bool? OnDisposingEnabled { + get => onDisposingEnabled; + set => this.onDisposingEnabled = value; + } + bool? onOptionChangedEnabled; + [Parameter] + bool? OnOptionChangedEnabled { + get => onOptionChangedEnabled; + set => this.onOptionChangedEnabled = value; + } + bool? onInitializedEnabled; + [Parameter] + bool? OnInitializedEnabled { + get => onInitializedEnabled; + set => this.onInitializedEnabled = value; + } protected override async Task OnInitAsync() { await base.OnInitAsync(); + DevExpress.Ui.DxTrackBarInterop.ValueChanged += DxTrackBar_ValueChanged; + DevExpress.Ui.DxTrackBarInterop.ContentReady += DxTrackBar_ContentReady; + DevExpress.Ui.DxTrackBarInterop.Disposing += DxTrackBar_Disposing; + DevExpress.Ui.DxTrackBarInterop.OptionChanged += DxTrackBar_OptionChanged; + DevExpress.Ui.DxTrackBarInterop.Initialized += DxTrackBar_Initialized; + } + [Parameter] + Action ValueChanged { get; set; } + void DxTrackBar_ValueChanged(object sender, JQueryEventArgs e) { + if (e.Identifier == Id) { + ValueChanged?.Invoke(); + } + } + [Parameter] + Action ContentReady { get; set; } + void DxTrackBar_ContentReady(object sender, JQueryEventArgs e) { + if (e.Identifier == Id) { + ContentReady?.Invoke(); + } + } + [Parameter] + Action Disposing { get; set; } + void DxTrackBar_Disposing(object sender, JQueryEventArgs e) { + if (e.Identifier == Id) { + Disposing?.Invoke(); + } + } + [Parameter] + Action OptionChanged { get; set; } + void DxTrackBar_OptionChanged(object sender, JQueryEventArgs e) { + if (e.Identifier == Id) { + OptionChanged?.Invoke(); + } + } + [Parameter] + Action Initialized { get; set; } + void DxTrackBar_Initialized(object sender, JQueryEventArgs e) { + if (e.Identifier == Id) { + Initialized?.Invoke(); + } } public void Dispose() { + DevExpress.Ui.DxTrackBarInterop.ValueChanged -= DxTrackBar_ValueChanged; + DevExpress.Ui.DxTrackBarInterop.ContentReady -= DxTrackBar_ContentReady; + DevExpress.Ui.DxTrackBarInterop.Disposing -= DxTrackBar_Disposing; + DevExpress.Ui.DxTrackBarInterop.OptionChanged -= DxTrackBar_OptionChanged; + DevExpress.Ui.DxTrackBarInterop.Initialized -= DxTrackBar_Initialized; } } diff --git a/sources/BlazorDevExtreme/Components/DxTreeList.cshtml b/sources/BlazorDevExtreme/Components/DxTreeList.cshtml index cc87d57..ea57548 100644 --- a/sources/BlazorDevExtreme/Components/DxTreeList.cshtml +++ b/sources/BlazorDevExtreme/Components/DxTreeList.cshtml @@ -26,6 +26,54 @@ rootValue = rootValue, scrolling = scrolling, selection = selection, + allowColumnReordering = allowColumnReordering, + allowColumnResizing = allowColumnResizing, + cacheEnabled = cacheEnabled, + cellHintEnabled = cellHintEnabled, + columnAutoWidth = columnAutoWidth, + columnChooser = columnChooser, + columnFixing = columnFixing, + columnHidingEnabled = columnHidingEnabled, + columnMinWidth = columnMinWidth, + columnResizingMode = columnResizingMode, + columnWidth = columnWidth, + dataSource = dataSource, + dateSerializationFormat = dateSerializationFormat, + errorRowEnabled = errorRowEnabled, + filterBuilder = filterBuilder, + filterBuilderPopup = filterBuilderPopup, + filterPanel = filterPanel, + filterRow = filterRow, + filterSyncEnabled = filterSyncEnabled, + filterValue = filterValue, + headerFilter = headerFilter, + loadPanel = loadPanel, + noDataText = noDataText, + pager = pager, + rowAlternationEnabled = rowAlternationEnabled, + searchPanel = searchPanel, + selectedRowKeys = selectedRowKeys, + showBorders = showBorders, + showColumnHeaders = showColumnHeaders, + showColumnLines = showColumnLines, + showRowLines = showRowLines, + sorting = sorting, + stateStoring = stateStoring, + twoWayBindingEnabled = twoWayBindingEnabled, + wordWrapEnabled = wordWrapEnabled, + accessKey = accessKey, + activeStateEnabled = activeStateEnabled, + disabled = disabled, + focusStateEnabled = focusStateEnabled, + hint = hint, + hoverStateEnabled = hoverStateEnabled, + tabIndex = tabIndex, + visible = visible, + bindingOptions = bindingOptions, + elementAttr = elementAttr, + height = height, + rtlEnabled = rtlEnabled, + width = width, onCellClickEnabled = onCellClickEnabled, onCellHoverChangedEnabled = onCellHoverChangedEnabled, onCellPreparedEnabled = onCellPreparedEnabled, @@ -36,15 +84,36 @@ onNodesInitializedEnabled = onNodesInitializedEnabled, onRowClickEnabled = onRowClickEnabled, onRowPreparedEnabled = onRowPreparedEnabled, + onAdaptiveDetailRowPreparingEnabled = onAdaptiveDetailRowPreparingEnabled, + onDataErrorOccurredEnabled = onDataErrorOccurredEnabled, + onInitNewRowEnabled = onInitNewRowEnabled, + onKeyDownEnabled = onKeyDownEnabled, + onRowCollapsedEnabled = onRowCollapsedEnabled, + onRowCollapsingEnabled = onRowCollapsingEnabled, + onRowExpandedEnabled = onRowExpandedEnabled, + onRowExpandingEnabled = onRowExpandingEnabled, + onRowInsertedEnabled = onRowInsertedEnabled, + onRowInsertingEnabled = onRowInsertingEnabled, + onRowRemovedEnabled = onRowRemovedEnabled, + onRowRemovingEnabled = onRowRemovingEnabled, + onRowUpdatedEnabled = onRowUpdatedEnabled, + onRowUpdatingEnabled = onRowUpdatingEnabled, + onRowValidatingEnabled = onRowValidatingEnabled, + onSelectionChangedEnabled = onSelectionChangedEnabled, + onToolbarPreparingEnabled = onToolbarPreparingEnabled, + onContentReadyEnabled = onContentReadyEnabled, + onDisposingEnabled = onDisposingEnabled, + onOptionChangedEnabled = onOptionChangedEnabled, + onInitializedEnabled = onInitializedEnabled, }; } protected override Task Init(DevExpress.Ui.DxTreeListOptions options) { -return DevExpress.Ui.DxTreeListInterop.Init(dxTarget, options); + return DevExpress.Ui.DxTreeListInterop.Init(dxTarget, options); } bool? autoExpandAll; [Parameter] bool? AutoExpandAll { - get => isInitialized ? DevExpress.Ui.DxTreeListInterop.GetAutoExpandAll(dxTarget).Result : autoExpandAll; + get => isInitialized ? (bool?)DevExpress.Ui.DxTreeListInterop.GetAutoExpandAll(dxTarget).Result : autoExpandAll; set { if (isInitialized) { DevExpress.Ui.DxTreeListInterop.SetAutoExpandAll(dxTarget, value); @@ -80,7 +149,7 @@ return DevExpress.Ui.DxTreeListInterop.Init(dxTarget, options); string dataStructure; [Parameter] string DataStructure { - get => isInitialized ? DevExpress.Ui.DxTreeListInterop.GetDataStructure(dxTarget).Result : dataStructure; + get => isInitialized ? (string)DevExpress.Ui.DxTreeListInterop.GetDataStructure(dxTarget).Result : dataStructure; set { if (isInitialized) { DevExpress.Ui.DxTreeListInterop.SetDataStructure(dxTarget, value); @@ -116,7 +185,7 @@ return DevExpress.Ui.DxTreeListInterop.Init(dxTarget, options); bool? expandNodesOnFiltering; [Parameter] bool? ExpandNodesOnFiltering { - get => isInitialized ? DevExpress.Ui.DxTreeListInterop.GetExpandNodesOnFiltering(dxTarget).Result : expandNodesOnFiltering; + get => isInitialized ? (bool?)DevExpress.Ui.DxTreeListInterop.GetExpandNodesOnFiltering(dxTarget).Result : expandNodesOnFiltering; set { if (isInitialized) { DevExpress.Ui.DxTreeListInterop.SetExpandNodesOnFiltering(dxTarget, value); @@ -233,6 +302,582 @@ return DevExpress.Ui.DxTreeListInterop.Init(dxTarget, options); } } } + bool? allowColumnReordering; + [Parameter] + bool? AllowColumnReordering { + get => isInitialized ? (bool?)DevExpress.Ui.DxTreeListInterop.GetAllowColumnReordering(dxTarget).Result : allowColumnReordering; + set { + if (isInitialized) { + DevExpress.Ui.DxTreeListInterop.SetAllowColumnReordering(dxTarget, value); + } else { + this.allowColumnReordering = value; + } + } + } + bool? allowColumnResizing; + [Parameter] + bool? AllowColumnResizing { + get => isInitialized ? (bool?)DevExpress.Ui.DxTreeListInterop.GetAllowColumnResizing(dxTarget).Result : allowColumnResizing; + set { + if (isInitialized) { + DevExpress.Ui.DxTreeListInterop.SetAllowColumnResizing(dxTarget, value); + } else { + this.allowColumnResizing = value; + } + } + } + bool? cacheEnabled; + [Parameter] + bool? CacheEnabled { + get => isInitialized ? (bool?)DevExpress.Ui.DxTreeListInterop.GetCacheEnabled(dxTarget).Result : cacheEnabled; + set { + if (isInitialized) { + DevExpress.Ui.DxTreeListInterop.SetCacheEnabled(dxTarget, value); + } else { + this.cacheEnabled = value; + } + } + } + bool? cellHintEnabled; + [Parameter] + bool? CellHintEnabled { + get => isInitialized ? (bool?)DevExpress.Ui.DxTreeListInterop.GetCellHintEnabled(dxTarget).Result : cellHintEnabled; + set { + if (isInitialized) { + DevExpress.Ui.DxTreeListInterop.SetCellHintEnabled(dxTarget, value); + } else { + this.cellHintEnabled = value; + } + } + } + bool? columnAutoWidth; + [Parameter] + bool? ColumnAutoWidth { + get => isInitialized ? (bool?)DevExpress.Ui.DxTreeListInterop.GetColumnAutoWidth(dxTarget).Result : columnAutoWidth; + set { + if (isInitialized) { + DevExpress.Ui.DxTreeListInterop.SetColumnAutoWidth(dxTarget, value); + } else { + this.columnAutoWidth = value; + } + } + } + object columnChooser; + [Parameter] + object ColumnChooser { + get => isInitialized ? DevExpress.Ui.DxTreeListInterop.GetColumnChooser(dxTarget).Result : columnChooser; + set { + if (isInitialized) { + DevExpress.Ui.DxTreeListInterop.SetColumnChooser(dxTarget, value); + } else { + this.columnChooser = value; + } + } + } + object columnFixing; + [Parameter] + object ColumnFixing { + get => isInitialized ? DevExpress.Ui.DxTreeListInterop.GetColumnFixing(dxTarget).Result : columnFixing; + set { + if (isInitialized) { + DevExpress.Ui.DxTreeListInterop.SetColumnFixing(dxTarget, value); + } else { + this.columnFixing = value; + } + } + } + bool? columnHidingEnabled; + [Parameter] + bool? ColumnHidingEnabled { + get => isInitialized ? (bool?)DevExpress.Ui.DxTreeListInterop.GetColumnHidingEnabled(dxTarget).Result : columnHidingEnabled; + set { + if (isInitialized) { + DevExpress.Ui.DxTreeListInterop.SetColumnHidingEnabled(dxTarget, value); + } else { + this.columnHidingEnabled = value; + } + } + } + float? columnMinWidth; + [Parameter] + float? ColumnMinWidth { + get => isInitialized ? (float?)DevExpress.Ui.DxTreeListInterop.GetColumnMinWidth(dxTarget).Result : columnMinWidth; + set { + if (isInitialized) { + DevExpress.Ui.DxTreeListInterop.SetColumnMinWidth(dxTarget, value); + } else { + this.columnMinWidth = value; + } + } + } + string columnResizingMode; + [Parameter] + string ColumnResizingMode { + get => isInitialized ? (string)DevExpress.Ui.DxTreeListInterop.GetColumnResizingMode(dxTarget).Result : columnResizingMode; + set { + if (isInitialized) { + DevExpress.Ui.DxTreeListInterop.SetColumnResizingMode(dxTarget, value); + } else { + this.columnResizingMode = value; + } + } + } + float? columnWidth; + [Parameter] + float? ColumnWidth { + get => isInitialized ? (float?)DevExpress.Ui.DxTreeListInterop.GetColumnWidth(dxTarget).Result : columnWidth; + set { + if (isInitialized) { + DevExpress.Ui.DxTreeListInterop.SetColumnWidth(dxTarget, value); + } else { + this.columnWidth = value; + } + } + } + object dataSource; + [Parameter] + object DataSource { + get => isInitialized ? DevExpress.Ui.DxTreeListInterop.GetDataSource(dxTarget).Result : dataSource; + set { + if (isInitialized) { + DevExpress.Ui.DxTreeListInterop.SetDataSource(dxTarget, value); + } else { + this.dataSource = value; + } + } + } + string dateSerializationFormat; + [Parameter] + string DateSerializationFormat { + get => isInitialized ? (string)DevExpress.Ui.DxTreeListInterop.GetDateSerializationFormat(dxTarget).Result : dateSerializationFormat; + set { + if (isInitialized) { + DevExpress.Ui.DxTreeListInterop.SetDateSerializationFormat(dxTarget, value); + } else { + this.dateSerializationFormat = value; + } + } + } + bool? errorRowEnabled; + [Parameter] + bool? ErrorRowEnabled { + get => isInitialized ? (bool?)DevExpress.Ui.DxTreeListInterop.GetErrorRowEnabled(dxTarget).Result : errorRowEnabled; + set { + if (isInitialized) { + DevExpress.Ui.DxTreeListInterop.SetErrorRowEnabled(dxTarget, value); + } else { + this.errorRowEnabled = value; + } + } + } + object filterBuilder; + [Parameter] + object FilterBuilder { + get => isInitialized ? DevExpress.Ui.DxTreeListInterop.GetFilterBuilder(dxTarget).Result : filterBuilder; + set { + if (isInitialized) { + DevExpress.Ui.DxTreeListInterop.SetFilterBuilder(dxTarget, value); + } else { + this.filterBuilder = value; + } + } + } + object filterBuilderPopup; + [Parameter] + object FilterBuilderPopup { + get => isInitialized ? DevExpress.Ui.DxTreeListInterop.GetFilterBuilderPopup(dxTarget).Result : filterBuilderPopup; + set { + if (isInitialized) { + DevExpress.Ui.DxTreeListInterop.SetFilterBuilderPopup(dxTarget, value); + } else { + this.filterBuilderPopup = value; + } + } + } + object filterPanel; + [Parameter] + object FilterPanel { + get => isInitialized ? DevExpress.Ui.DxTreeListInterop.GetFilterPanel(dxTarget).Result : filterPanel; + set { + if (isInitialized) { + DevExpress.Ui.DxTreeListInterop.SetFilterPanel(dxTarget, value); + } else { + this.filterPanel = value; + } + } + } + object filterRow; + [Parameter] + object FilterRow { + get => isInitialized ? DevExpress.Ui.DxTreeListInterop.GetFilterRow(dxTarget).Result : filterRow; + set { + if (isInitialized) { + DevExpress.Ui.DxTreeListInterop.SetFilterRow(dxTarget, value); + } else { + this.filterRow = value; + } + } + } + object filterSyncEnabled; + [Parameter] + object FilterSyncEnabled { + get => isInitialized ? DevExpress.Ui.DxTreeListInterop.GetFilterSyncEnabled(dxTarget).Result : filterSyncEnabled; + set { + if (isInitialized) { + DevExpress.Ui.DxTreeListInterop.SetFilterSyncEnabled(dxTarget, value); + } else { + this.filterSyncEnabled = value; + } + } + } + object filterValue; + [Parameter] + object FilterValue { + get => isInitialized ? DevExpress.Ui.DxTreeListInterop.GetFilterValue(dxTarget).Result : filterValue; + set { + if (isInitialized) { + DevExpress.Ui.DxTreeListInterop.SetFilterValue(dxTarget, value); + } else { + this.filterValue = value; + } + } + } + object headerFilter; + [Parameter] + object HeaderFilter { + get => isInitialized ? DevExpress.Ui.DxTreeListInterop.GetHeaderFilter(dxTarget).Result : headerFilter; + set { + if (isInitialized) { + DevExpress.Ui.DxTreeListInterop.SetHeaderFilter(dxTarget, value); + } else { + this.headerFilter = value; + } + } + } + object loadPanel; + [Parameter] + object LoadPanel { + get => isInitialized ? DevExpress.Ui.DxTreeListInterop.GetLoadPanel(dxTarget).Result : loadPanel; + set { + if (isInitialized) { + DevExpress.Ui.DxTreeListInterop.SetLoadPanel(dxTarget, value); + } else { + this.loadPanel = value; + } + } + } + string noDataText; + [Parameter] + string NoDataText { + get => isInitialized ? (string)DevExpress.Ui.DxTreeListInterop.GetNoDataText(dxTarget).Result : noDataText; + set { + if (isInitialized) { + DevExpress.Ui.DxTreeListInterop.SetNoDataText(dxTarget, value); + } else { + this.noDataText = value; + } + } + } + object pager; + [Parameter] + object Pager { + get => isInitialized ? DevExpress.Ui.DxTreeListInterop.GetPager(dxTarget).Result : pager; + set { + if (isInitialized) { + DevExpress.Ui.DxTreeListInterop.SetPager(dxTarget, value); + } else { + this.pager = value; + } + } + } + bool? rowAlternationEnabled; + [Parameter] + bool? RowAlternationEnabled { + get => isInitialized ? (bool?)DevExpress.Ui.DxTreeListInterop.GetRowAlternationEnabled(dxTarget).Result : rowAlternationEnabled; + set { + if (isInitialized) { + DevExpress.Ui.DxTreeListInterop.SetRowAlternationEnabled(dxTarget, value); + } else { + this.rowAlternationEnabled = value; + } + } + } + object searchPanel; + [Parameter] + object SearchPanel { + get => isInitialized ? DevExpress.Ui.DxTreeListInterop.GetSearchPanel(dxTarget).Result : searchPanel; + set { + if (isInitialized) { + DevExpress.Ui.DxTreeListInterop.SetSearchPanel(dxTarget, value); + } else { + this.searchPanel = value; + } + } + } + object selectedRowKeys; + [Parameter] + object SelectedRowKeys { + get => isInitialized ? DevExpress.Ui.DxTreeListInterop.GetSelectedRowKeys(dxTarget).Result : selectedRowKeys; + set { + if (isInitialized) { + DevExpress.Ui.DxTreeListInterop.SetSelectedRowKeys(dxTarget, value); + } else { + this.selectedRowKeys = value; + } + } + } + bool? showBorders; + [Parameter] + bool? ShowBorders { + get => isInitialized ? (bool?)DevExpress.Ui.DxTreeListInterop.GetShowBorders(dxTarget).Result : showBorders; + set { + if (isInitialized) { + DevExpress.Ui.DxTreeListInterop.SetShowBorders(dxTarget, value); + } else { + this.showBorders = value; + } + } + } + bool? showColumnHeaders; + [Parameter] + bool? ShowColumnHeaders { + get => isInitialized ? (bool?)DevExpress.Ui.DxTreeListInterop.GetShowColumnHeaders(dxTarget).Result : showColumnHeaders; + set { + if (isInitialized) { + DevExpress.Ui.DxTreeListInterop.SetShowColumnHeaders(dxTarget, value); + } else { + this.showColumnHeaders = value; + } + } + } + bool? showColumnLines; + [Parameter] + bool? ShowColumnLines { + get => isInitialized ? (bool?)DevExpress.Ui.DxTreeListInterop.GetShowColumnLines(dxTarget).Result : showColumnLines; + set { + if (isInitialized) { + DevExpress.Ui.DxTreeListInterop.SetShowColumnLines(dxTarget, value); + } else { + this.showColumnLines = value; + } + } + } + bool? showRowLines; + [Parameter] + bool? ShowRowLines { + get => isInitialized ? (bool?)DevExpress.Ui.DxTreeListInterop.GetShowRowLines(dxTarget).Result : showRowLines; + set { + if (isInitialized) { + DevExpress.Ui.DxTreeListInterop.SetShowRowLines(dxTarget, value); + } else { + this.showRowLines = value; + } + } + } + object sorting; + [Parameter] + object Sorting { + get => isInitialized ? DevExpress.Ui.DxTreeListInterop.GetSorting(dxTarget).Result : sorting; + set { + if (isInitialized) { + DevExpress.Ui.DxTreeListInterop.SetSorting(dxTarget, value); + } else { + this.sorting = value; + } + } + } + object stateStoring; + [Parameter] + object StateStoring { + get => isInitialized ? DevExpress.Ui.DxTreeListInterop.GetStateStoring(dxTarget).Result : stateStoring; + set { + if (isInitialized) { + DevExpress.Ui.DxTreeListInterop.SetStateStoring(dxTarget, value); + } else { + this.stateStoring = value; + } + } + } + bool? twoWayBindingEnabled; + [Parameter] + bool? TwoWayBindingEnabled { + get => isInitialized ? (bool?)DevExpress.Ui.DxTreeListInterop.GetTwoWayBindingEnabled(dxTarget).Result : twoWayBindingEnabled; + set { + if (isInitialized) { + DevExpress.Ui.DxTreeListInterop.SetTwoWayBindingEnabled(dxTarget, value); + } else { + this.twoWayBindingEnabled = value; + } + } + } + bool? wordWrapEnabled; + [Parameter] + bool? WordWrapEnabled { + get => isInitialized ? (bool?)DevExpress.Ui.DxTreeListInterop.GetWordWrapEnabled(dxTarget).Result : wordWrapEnabled; + set { + if (isInitialized) { + DevExpress.Ui.DxTreeListInterop.SetWordWrapEnabled(dxTarget, value); + } else { + this.wordWrapEnabled = value; + } + } + } + string accessKey; + [Parameter] + string AccessKey { + get => isInitialized ? (string)DevExpress.Ui.DxTreeListInterop.GetAccessKey(dxTarget).Result : accessKey; + set { + if (isInitialized) { + DevExpress.Ui.DxTreeListInterop.SetAccessKey(dxTarget, value); + } else { + this.accessKey = value; + } + } + } + bool? activeStateEnabled; + [Parameter] + bool? ActiveStateEnabled { + get => isInitialized ? (bool?)DevExpress.Ui.DxTreeListInterop.GetActiveStateEnabled(dxTarget).Result : activeStateEnabled; + set { + if (isInitialized) { + DevExpress.Ui.DxTreeListInterop.SetActiveStateEnabled(dxTarget, value); + } else { + this.activeStateEnabled = value; + } + } + } + bool? disabled; + [Parameter] + bool? Disabled { + get => isInitialized ? (bool?)DevExpress.Ui.DxTreeListInterop.GetDisabled(dxTarget).Result : disabled; + set { + if (isInitialized) { + DevExpress.Ui.DxTreeListInterop.SetDisabled(dxTarget, value); + } else { + this.disabled = value; + } + } + } + bool? focusStateEnabled; + [Parameter] + bool? FocusStateEnabled { + get => isInitialized ? (bool?)DevExpress.Ui.DxTreeListInterop.GetFocusStateEnabled(dxTarget).Result : focusStateEnabled; + set { + if (isInitialized) { + DevExpress.Ui.DxTreeListInterop.SetFocusStateEnabled(dxTarget, value); + } else { + this.focusStateEnabled = value; + } + } + } + string hint; + [Parameter] + string Hint { + get => isInitialized ? (string)DevExpress.Ui.DxTreeListInterop.GetHint(dxTarget).Result : hint; + set { + if (isInitialized) { + DevExpress.Ui.DxTreeListInterop.SetHint(dxTarget, value); + } else { + this.hint = value; + } + } + } + bool? hoverStateEnabled; + [Parameter] + bool? HoverStateEnabled { + get => isInitialized ? (bool?)DevExpress.Ui.DxTreeListInterop.GetHoverStateEnabled(dxTarget).Result : hoverStateEnabled; + set { + if (isInitialized) { + DevExpress.Ui.DxTreeListInterop.SetHoverStateEnabled(dxTarget, value); + } else { + this.hoverStateEnabled = value; + } + } + } + float? tabIndex; + [Parameter] + float? TabIndex { + get => isInitialized ? (float?)DevExpress.Ui.DxTreeListInterop.GetTabIndex(dxTarget).Result : tabIndex; + set { + if (isInitialized) { + DevExpress.Ui.DxTreeListInterop.SetTabIndex(dxTarget, value); + } else { + this.tabIndex = value; + } + } + } + bool? visible; + [Parameter] + bool? Visible { + get => isInitialized ? (bool?)DevExpress.Ui.DxTreeListInterop.GetVisible(dxTarget).Result : visible; + set { + if (isInitialized) { + DevExpress.Ui.DxTreeListInterop.SetVisible(dxTarget, value); + } else { + this.visible = value; + } + } + } + object bindingOptions; + [Parameter] + object BindingOptions { + get => isInitialized ? DevExpress.Ui.DxTreeListInterop.GetBindingOptions(dxTarget).Result : bindingOptions; + set { + if (isInitialized) { + DevExpress.Ui.DxTreeListInterop.SetBindingOptions(dxTarget, value); + } else { + this.bindingOptions = value; + } + } + } + object elementAttr; + [Parameter] + object ElementAttr { + get => isInitialized ? DevExpress.Ui.DxTreeListInterop.GetElementAttr(dxTarget).Result : elementAttr; + set { + if (isInitialized) { + DevExpress.Ui.DxTreeListInterop.SetElementAttr(dxTarget, value); + } else { + this.elementAttr = value; + } + } + } + object height; + [Parameter] + object Height { + get => isInitialized ? DevExpress.Ui.DxTreeListInterop.GetHeight(dxTarget).Result : height; + set { + if (isInitialized) { + DevExpress.Ui.DxTreeListInterop.SetHeight(dxTarget, value); + } else { + this.height = value; + } + } + } + bool? rtlEnabled; + [Parameter] + bool? RtlEnabled { + get => isInitialized ? (bool?)DevExpress.Ui.DxTreeListInterop.GetRtlEnabled(dxTarget).Result : rtlEnabled; + set { + if (isInitialized) { + DevExpress.Ui.DxTreeListInterop.SetRtlEnabled(dxTarget, value); + } else { + this.rtlEnabled = value; + } + } + } + object width; + [Parameter] + object Width { + get => isInitialized ? DevExpress.Ui.DxTreeListInterop.GetWidth(dxTarget).Result : width; + set { + if (isInitialized) { + DevExpress.Ui.DxTreeListInterop.SetWidth(dxTarget, value); + } else { + this.width = value; + } + } + } bool? onCellClickEnabled; [Parameter] bool? OnCellClickEnabled { @@ -293,6 +938,132 @@ return DevExpress.Ui.DxTreeListInterop.Init(dxTarget, options); get => onRowPreparedEnabled; set => this.onRowPreparedEnabled = value; } + bool? onAdaptiveDetailRowPreparingEnabled; + [Parameter] + bool? OnAdaptiveDetailRowPreparingEnabled { + get => onAdaptiveDetailRowPreparingEnabled; + set => this.onAdaptiveDetailRowPreparingEnabled = value; + } + bool? onDataErrorOccurredEnabled; + [Parameter] + bool? OnDataErrorOccurredEnabled { + get => onDataErrorOccurredEnabled; + set => this.onDataErrorOccurredEnabled = value; + } + bool? onInitNewRowEnabled; + [Parameter] + bool? OnInitNewRowEnabled { + get => onInitNewRowEnabled; + set => this.onInitNewRowEnabled = value; + } + bool? onKeyDownEnabled; + [Parameter] + bool? OnKeyDownEnabled { + get => onKeyDownEnabled; + set => this.onKeyDownEnabled = value; + } + bool? onRowCollapsedEnabled; + [Parameter] + bool? OnRowCollapsedEnabled { + get => onRowCollapsedEnabled; + set => this.onRowCollapsedEnabled = value; + } + bool? onRowCollapsingEnabled; + [Parameter] + bool? OnRowCollapsingEnabled { + get => onRowCollapsingEnabled; + set => this.onRowCollapsingEnabled = value; + } + bool? onRowExpandedEnabled; + [Parameter] + bool? OnRowExpandedEnabled { + get => onRowExpandedEnabled; + set => this.onRowExpandedEnabled = value; + } + bool? onRowExpandingEnabled; + [Parameter] + bool? OnRowExpandingEnabled { + get => onRowExpandingEnabled; + set => this.onRowExpandingEnabled = value; + } + bool? onRowInsertedEnabled; + [Parameter] + bool? OnRowInsertedEnabled { + get => onRowInsertedEnabled; + set => this.onRowInsertedEnabled = value; + } + bool? onRowInsertingEnabled; + [Parameter] + bool? OnRowInsertingEnabled { + get => onRowInsertingEnabled; + set => this.onRowInsertingEnabled = value; + } + bool? onRowRemovedEnabled; + [Parameter] + bool? OnRowRemovedEnabled { + get => onRowRemovedEnabled; + set => this.onRowRemovedEnabled = value; + } + bool? onRowRemovingEnabled; + [Parameter] + bool? OnRowRemovingEnabled { + get => onRowRemovingEnabled; + set => this.onRowRemovingEnabled = value; + } + bool? onRowUpdatedEnabled; + [Parameter] + bool? OnRowUpdatedEnabled { + get => onRowUpdatedEnabled; + set => this.onRowUpdatedEnabled = value; + } + bool? onRowUpdatingEnabled; + [Parameter] + bool? OnRowUpdatingEnabled { + get => onRowUpdatingEnabled; + set => this.onRowUpdatingEnabled = value; + } + bool? onRowValidatingEnabled; + [Parameter] + bool? OnRowValidatingEnabled { + get => onRowValidatingEnabled; + set => this.onRowValidatingEnabled = value; + } + bool? onSelectionChangedEnabled; + [Parameter] + bool? OnSelectionChangedEnabled { + get => onSelectionChangedEnabled; + set => this.onSelectionChangedEnabled = value; + } + bool? onToolbarPreparingEnabled; + [Parameter] + bool? OnToolbarPreparingEnabled { + get => onToolbarPreparingEnabled; + set => this.onToolbarPreparingEnabled = value; + } + bool? onContentReadyEnabled; + [Parameter] + bool? OnContentReadyEnabled { + get => onContentReadyEnabled; + set => this.onContentReadyEnabled = value; + } + bool? onDisposingEnabled; + [Parameter] + bool? OnDisposingEnabled { + get => onDisposingEnabled; + set => this.onDisposingEnabled = value; + } + bool? onOptionChangedEnabled; + [Parameter] + bool? OnOptionChangedEnabled { + get => onOptionChangedEnabled; + set => this.onOptionChangedEnabled = value; + } + bool? onInitializedEnabled; + [Parameter] + bool? OnInitializedEnabled { + get => onInitializedEnabled; + set => this.onInitializedEnabled = value; + } protected override async Task OnInitAsync() { await base.OnInitAsync(); DevExpress.Ui.DxTreeListInterop.CellClick += DxTreeList_CellClick; @@ -305,6 +1076,27 @@ return DevExpress.Ui.DxTreeListInterop.Init(dxTarget, options); DevExpress.Ui.DxTreeListInterop.NodesInitialized += DxTreeList_NodesInitialized; DevExpress.Ui.DxTreeListInterop.RowClick += DxTreeList_RowClick; DevExpress.Ui.DxTreeListInterop.RowPrepared += DxTreeList_RowPrepared; + DevExpress.Ui.DxTreeListInterop.AdaptiveDetailRowPreparing += DxTreeList_AdaptiveDetailRowPreparing; + DevExpress.Ui.DxTreeListInterop.DataErrorOccurred += DxTreeList_DataErrorOccurred; + DevExpress.Ui.DxTreeListInterop.InitNewRow += DxTreeList_InitNewRow; + DevExpress.Ui.DxTreeListInterop.KeyDown += DxTreeList_KeyDown; + DevExpress.Ui.DxTreeListInterop.RowCollapsed += DxTreeList_RowCollapsed; + DevExpress.Ui.DxTreeListInterop.RowCollapsing += DxTreeList_RowCollapsing; + DevExpress.Ui.DxTreeListInterop.RowExpanded += DxTreeList_RowExpanded; + DevExpress.Ui.DxTreeListInterop.RowExpanding += DxTreeList_RowExpanding; + DevExpress.Ui.DxTreeListInterop.RowInserted += DxTreeList_RowInserted; + DevExpress.Ui.DxTreeListInterop.RowInserting += DxTreeList_RowInserting; + DevExpress.Ui.DxTreeListInterop.RowRemoved += DxTreeList_RowRemoved; + DevExpress.Ui.DxTreeListInterop.RowRemoving += DxTreeList_RowRemoving; + DevExpress.Ui.DxTreeListInterop.RowUpdated += DxTreeList_RowUpdated; + DevExpress.Ui.DxTreeListInterop.RowUpdating += DxTreeList_RowUpdating; + DevExpress.Ui.DxTreeListInterop.RowValidating += DxTreeList_RowValidating; + DevExpress.Ui.DxTreeListInterop.SelectionChanged += DxTreeList_SelectionChanged; + DevExpress.Ui.DxTreeListInterop.ToolbarPreparing += DxTreeList_ToolbarPreparing; + DevExpress.Ui.DxTreeListInterop.ContentReady += DxTreeList_ContentReady; + DevExpress.Ui.DxTreeListInterop.Disposing += DxTreeList_Disposing; + DevExpress.Ui.DxTreeListInterop.OptionChanged += DxTreeList_OptionChanged; + DevExpress.Ui.DxTreeListInterop.Initialized += DxTreeList_Initialized; } [Parameter] Action CellClick { get; set; } @@ -376,6 +1168,153 @@ return DevExpress.Ui.DxTreeListInterop.Init(dxTarget, options); RowPrepared?.Invoke(); } } + [Parameter] + Action AdaptiveDetailRowPreparing { get; set; } + void DxTreeList_AdaptiveDetailRowPreparing(object sender, JQueryEventArgs e) { + if (e.Identifier == Id) { + AdaptiveDetailRowPreparing?.Invoke(); + } + } + [Parameter] + Action DataErrorOccurred { get; set; } + void DxTreeList_DataErrorOccurred(object sender, JQueryEventArgs e) { + if (e.Identifier == Id) { + DataErrorOccurred?.Invoke(); + } + } + [Parameter] + Action InitNewRow { get; set; } + void DxTreeList_InitNewRow(object sender, JQueryEventArgs e) { + if (e.Identifier == Id) { + InitNewRow?.Invoke(); + } + } + [Parameter] + Action KeyDown { get; set; } + void DxTreeList_KeyDown(object sender, JQueryEventArgs e) { + if (e.Identifier == Id) { + KeyDown?.Invoke(); + } + } + [Parameter] + Action RowCollapsed { get; set; } + void DxTreeList_RowCollapsed(object sender, JQueryEventArgs e) { + if (e.Identifier == Id) { + RowCollapsed?.Invoke(); + } + } + [Parameter] + Action RowCollapsing { get; set; } + void DxTreeList_RowCollapsing(object sender, JQueryEventArgs e) { + if (e.Identifier == Id) { + RowCollapsing?.Invoke(); + } + } + [Parameter] + Action RowExpanded { get; set; } + void DxTreeList_RowExpanded(object sender, JQueryEventArgs e) { + if (e.Identifier == Id) { + RowExpanded?.Invoke(); + } + } + [Parameter] + Action RowExpanding { get; set; } + void DxTreeList_RowExpanding(object sender, JQueryEventArgs e) { + if (e.Identifier == Id) { + RowExpanding?.Invoke(); + } + } + [Parameter] + Action RowInserted { get; set; } + void DxTreeList_RowInserted(object sender, JQueryEventArgs e) { + if (e.Identifier == Id) { + RowInserted?.Invoke(); + } + } + [Parameter] + Action RowInserting { get; set; } + void DxTreeList_RowInserting(object sender, JQueryEventArgs e) { + if (e.Identifier == Id) { + RowInserting?.Invoke(); + } + } + [Parameter] + Action RowRemoved { get; set; } + void DxTreeList_RowRemoved(object sender, JQueryEventArgs e) { + if (e.Identifier == Id) { + RowRemoved?.Invoke(); + } + } + [Parameter] + Action RowRemoving { get; set; } + void DxTreeList_RowRemoving(object sender, JQueryEventArgs e) { + if (e.Identifier == Id) { + RowRemoving?.Invoke(); + } + } + [Parameter] + Action RowUpdated { get; set; } + void DxTreeList_RowUpdated(object sender, JQueryEventArgs e) { + if (e.Identifier == Id) { + RowUpdated?.Invoke(); + } + } + [Parameter] + Action RowUpdating { get; set; } + void DxTreeList_RowUpdating(object sender, JQueryEventArgs e) { + if (e.Identifier == Id) { + RowUpdating?.Invoke(); + } + } + [Parameter] + Action RowValidating { get; set; } + void DxTreeList_RowValidating(object sender, JQueryEventArgs e) { + if (e.Identifier == Id) { + RowValidating?.Invoke(); + } + } + [Parameter] + Action SelectionChanged { get; set; } + void DxTreeList_SelectionChanged(object sender, JQueryEventArgs e) { + if (e.Identifier == Id) { + SelectionChanged?.Invoke(); + } + } + [Parameter] + Action ToolbarPreparing { get; set; } + void DxTreeList_ToolbarPreparing(object sender, JQueryEventArgs e) { + if (e.Identifier == Id) { + ToolbarPreparing?.Invoke(); + } + } + [Parameter] + Action ContentReady { get; set; } + void DxTreeList_ContentReady(object sender, JQueryEventArgs e) { + if (e.Identifier == Id) { + ContentReady?.Invoke(); + } + } + [Parameter] + Action Disposing { get; set; } + void DxTreeList_Disposing(object sender, JQueryEventArgs e) { + if (e.Identifier == Id) { + Disposing?.Invoke(); + } + } + [Parameter] + Action OptionChanged { get; set; } + void DxTreeList_OptionChanged(object sender, JQueryEventArgs e) { + if (e.Identifier == Id) { + OptionChanged?.Invoke(); + } + } + [Parameter] + Action Initialized { get; set; } + void DxTreeList_Initialized(object sender, JQueryEventArgs e) { + if (e.Identifier == Id) { + Initialized?.Invoke(); + } + } public void AddColumn(object columnOptions) { DevExpress.Ui.DxTreeListInterop.AddColumn(dxTarget, columnOptions); } @@ -447,5 +1386,26 @@ return DevExpress.Ui.DxTreeListInterop.Init(dxTarget, options); DevExpress.Ui.DxTreeListInterop.NodesInitialized -= DxTreeList_NodesInitialized; DevExpress.Ui.DxTreeListInterop.RowClick -= DxTreeList_RowClick; DevExpress.Ui.DxTreeListInterop.RowPrepared -= DxTreeList_RowPrepared; + DevExpress.Ui.DxTreeListInterop.AdaptiveDetailRowPreparing -= DxTreeList_AdaptiveDetailRowPreparing; + DevExpress.Ui.DxTreeListInterop.DataErrorOccurred -= DxTreeList_DataErrorOccurred; + DevExpress.Ui.DxTreeListInterop.InitNewRow -= DxTreeList_InitNewRow; + DevExpress.Ui.DxTreeListInterop.KeyDown -= DxTreeList_KeyDown; + DevExpress.Ui.DxTreeListInterop.RowCollapsed -= DxTreeList_RowCollapsed; + DevExpress.Ui.DxTreeListInterop.RowCollapsing -= DxTreeList_RowCollapsing; + DevExpress.Ui.DxTreeListInterop.RowExpanded -= DxTreeList_RowExpanded; + DevExpress.Ui.DxTreeListInterop.RowExpanding -= DxTreeList_RowExpanding; + DevExpress.Ui.DxTreeListInterop.RowInserted -= DxTreeList_RowInserted; + DevExpress.Ui.DxTreeListInterop.RowInserting -= DxTreeList_RowInserting; + DevExpress.Ui.DxTreeListInterop.RowRemoved -= DxTreeList_RowRemoved; + DevExpress.Ui.DxTreeListInterop.RowRemoving -= DxTreeList_RowRemoving; + DevExpress.Ui.DxTreeListInterop.RowUpdated -= DxTreeList_RowUpdated; + DevExpress.Ui.DxTreeListInterop.RowUpdating -= DxTreeList_RowUpdating; + DevExpress.Ui.DxTreeListInterop.RowValidating -= DxTreeList_RowValidating; + DevExpress.Ui.DxTreeListInterop.SelectionChanged -= DxTreeList_SelectionChanged; + DevExpress.Ui.DxTreeListInterop.ToolbarPreparing -= DxTreeList_ToolbarPreparing; + DevExpress.Ui.DxTreeListInterop.ContentReady -= DxTreeList_ContentReady; + DevExpress.Ui.DxTreeListInterop.Disposing -= DxTreeList_Disposing; + DevExpress.Ui.DxTreeListInterop.OptionChanged -= DxTreeList_OptionChanged; + DevExpress.Ui.DxTreeListInterop.Initialized -= DxTreeList_Initialized; } } diff --git a/sources/BlazorDevExtreme/Components/DxTreeMap.cshtml b/sources/BlazorDevExtreme/Components/DxTreeMap.cshtml index 6267eab..394e455 100644 --- a/sources/BlazorDevExtreme/Components/DxTreeMap.cshtml +++ b/sources/BlazorDevExtreme/Components/DxTreeMap.cshtml @@ -28,21 +28,42 @@ tile = tile, tooltip = tooltip, valueField = valueField, + export = export, + loadingIndicator = loadingIndicator, + margin = margin, + pathModified = pathModified, + redrawOnResize = redrawOnResize, + rtlEnabled = rtlEnabled, + size = size, + theme = theme, + title = title, + bindingOptions = bindingOptions, + elementAttr = elementAttr, + height = height, + width = width, onClickEnabled = onClickEnabled, onDrillEnabled = onDrillEnabled, onHoverChangedEnabled = onHoverChangedEnabled, onNodesInitializedEnabled = onNodesInitializedEnabled, onNodesRenderingEnabled = onNodesRenderingEnabled, onSelectionChangedEnabled = onSelectionChangedEnabled, + onDrawnEnabled = onDrawnEnabled, + onExportedEnabled = onExportedEnabled, + onExportingEnabled = onExportingEnabled, + onFileSavingEnabled = onFileSavingEnabled, + onIncidentOccurredEnabled = onIncidentOccurredEnabled, + onDisposingEnabled = onDisposingEnabled, + onOptionChangedEnabled = onOptionChangedEnabled, + onInitializedEnabled = onInitializedEnabled, }; } protected override Task Init(DevExpress.Viz.TreeMap.DxTreeMapOptions options) { -return DevExpress.Viz.DxTreeMapInterop.Init(dxTarget, options); + return DevExpress.Viz.DxTreeMapInterop.Init(dxTarget, options); } string childrenField; [Parameter] string ChildrenField { - get => isInitialized ? DevExpress.Viz.DxTreeMapInterop.GetChildrenField(dxTarget).Result : childrenField; + get => isInitialized ? (string)DevExpress.Viz.DxTreeMapInterop.GetChildrenField(dxTarget).Result : childrenField; set { if (isInitialized) { DevExpress.Viz.DxTreeMapInterop.SetChildrenField(dxTarget, value); @@ -54,7 +75,7 @@ return DevExpress.Viz.DxTreeMapInterop.Init(dxTarget, options); string colorField; [Parameter] string ColorField { - get => isInitialized ? DevExpress.Viz.DxTreeMapInterop.GetColorField(dxTarget).Result : colorField; + get => isInitialized ? (string)DevExpress.Viz.DxTreeMapInterop.GetColorField(dxTarget).Result : colorField; set { if (isInitialized) { DevExpress.Viz.DxTreeMapInterop.SetColorField(dxTarget, value); @@ -102,7 +123,7 @@ return DevExpress.Viz.DxTreeMapInterop.Init(dxTarget, options); bool? hoverEnabled; [Parameter] bool? HoverEnabled { - get => isInitialized ? DevExpress.Viz.DxTreeMapInterop.GetHoverEnabled(dxTarget).Result : hoverEnabled; + get => isInitialized ? (bool?)DevExpress.Viz.DxTreeMapInterop.GetHoverEnabled(dxTarget).Result : hoverEnabled; set { if (isInitialized) { DevExpress.Viz.DxTreeMapInterop.SetHoverEnabled(dxTarget, value); @@ -114,7 +135,7 @@ return DevExpress.Viz.DxTreeMapInterop.Init(dxTarget, options); string idField; [Parameter] string IdField { - get => isInitialized ? DevExpress.Viz.DxTreeMapInterop.GetIdField(dxTarget).Result : idField; + get => isInitialized ? (string)DevExpress.Viz.DxTreeMapInterop.GetIdField(dxTarget).Result : idField; set { if (isInitialized) { DevExpress.Viz.DxTreeMapInterop.SetIdField(dxTarget, value); @@ -126,7 +147,7 @@ return DevExpress.Viz.DxTreeMapInterop.Init(dxTarget, options); bool? interactWithGroup; [Parameter] bool? InteractWithGroup { - get => isInitialized ? DevExpress.Viz.DxTreeMapInterop.GetInteractWithGroup(dxTarget).Result : interactWithGroup; + get => isInitialized ? (bool?)DevExpress.Viz.DxTreeMapInterop.GetInteractWithGroup(dxTarget).Result : interactWithGroup; set { if (isInitialized) { DevExpress.Viz.DxTreeMapInterop.SetInteractWithGroup(dxTarget, value); @@ -138,7 +159,7 @@ return DevExpress.Viz.DxTreeMapInterop.Init(dxTarget, options); string labelField; [Parameter] string LabelField { - get => isInitialized ? DevExpress.Viz.DxTreeMapInterop.GetLabelField(dxTarget).Result : labelField; + get => isInitialized ? (string)DevExpress.Viz.DxTreeMapInterop.GetLabelField(dxTarget).Result : labelField; set { if (isInitialized) { DevExpress.Viz.DxTreeMapInterop.SetLabelField(dxTarget, value); @@ -162,7 +183,7 @@ return DevExpress.Viz.DxTreeMapInterop.Init(dxTarget, options); string layoutDirection; [Parameter] string LayoutDirection { - get => isInitialized ? DevExpress.Viz.DxTreeMapInterop.GetLayoutDirection(dxTarget).Result : layoutDirection; + get => isInitialized ? (string)DevExpress.Viz.DxTreeMapInterop.GetLayoutDirection(dxTarget).Result : layoutDirection; set { if (isInitialized) { DevExpress.Viz.DxTreeMapInterop.SetLayoutDirection(dxTarget, value); @@ -174,7 +195,7 @@ return DevExpress.Viz.DxTreeMapInterop.Init(dxTarget, options); float? maxDepth; [Parameter] float? MaxDepth { - get => isInitialized ? DevExpress.Viz.DxTreeMapInterop.GetMaxDepth(dxTarget).Result : maxDepth; + get => isInitialized ? (float?)DevExpress.Viz.DxTreeMapInterop.GetMaxDepth(dxTarget).Result : maxDepth; set { if (isInitialized) { DevExpress.Viz.DxTreeMapInterop.SetMaxDepth(dxTarget, value); @@ -186,7 +207,7 @@ return DevExpress.Viz.DxTreeMapInterop.Init(dxTarget, options); string parentField; [Parameter] string ParentField { - get => isInitialized ? DevExpress.Viz.DxTreeMapInterop.GetParentField(dxTarget).Result : parentField; + get => isInitialized ? (string)DevExpress.Viz.DxTreeMapInterop.GetParentField(dxTarget).Result : parentField; set { if (isInitialized) { DevExpress.Viz.DxTreeMapInterop.SetParentField(dxTarget, value); @@ -198,7 +219,7 @@ return DevExpress.Viz.DxTreeMapInterop.Init(dxTarget, options); string resolveLabelOverflow; [Parameter] string ResolveLabelOverflow { - get => isInitialized ? DevExpress.Viz.DxTreeMapInterop.GetResolveLabelOverflow(dxTarget).Result : resolveLabelOverflow; + get => isInitialized ? (string)DevExpress.Viz.DxTreeMapInterop.GetResolveLabelOverflow(dxTarget).Result : resolveLabelOverflow; set { if (isInitialized) { DevExpress.Viz.DxTreeMapInterop.SetResolveLabelOverflow(dxTarget, value); @@ -210,7 +231,7 @@ return DevExpress.Viz.DxTreeMapInterop.Init(dxTarget, options); string selectionMode; [Parameter] string SelectionMode { - get => isInitialized ? DevExpress.Viz.DxTreeMapInterop.GetSelectionMode(dxTarget).Result : selectionMode; + get => isInitialized ? (string)DevExpress.Viz.DxTreeMapInterop.GetSelectionMode(dxTarget).Result : selectionMode; set { if (isInitialized) { DevExpress.Viz.DxTreeMapInterop.SetSelectionMode(dxTarget, value); @@ -246,7 +267,7 @@ return DevExpress.Viz.DxTreeMapInterop.Init(dxTarget, options); string valueField; [Parameter] string ValueField { - get => isInitialized ? DevExpress.Viz.DxTreeMapInterop.GetValueField(dxTarget).Result : valueField; + get => isInitialized ? (string)DevExpress.Viz.DxTreeMapInterop.GetValueField(dxTarget).Result : valueField; set { if (isInitialized) { DevExpress.Viz.DxTreeMapInterop.SetValueField(dxTarget, value); @@ -255,6 +276,162 @@ return DevExpress.Viz.DxTreeMapInterop.Init(dxTarget, options); } } } + object export; + [Parameter] + object Export { + get => isInitialized ? DevExpress.Viz.DxTreeMapInterop.GetExport(dxTarget).Result : export; + set { + if (isInitialized) { + DevExpress.Viz.DxTreeMapInterop.SetExport(dxTarget, value); + } else { + this.export = value; + } + } + } + object loadingIndicator; + [Parameter] + object LoadingIndicator { + get => isInitialized ? DevExpress.Viz.DxTreeMapInterop.GetLoadingIndicator(dxTarget).Result : loadingIndicator; + set { + if (isInitialized) { + DevExpress.Viz.DxTreeMapInterop.SetLoadingIndicator(dxTarget, value); + } else { + this.loadingIndicator = value; + } + } + } + object margin; + [Parameter] + object Margin { + get => isInitialized ? DevExpress.Viz.DxTreeMapInterop.GetMargin(dxTarget).Result : margin; + set { + if (isInitialized) { + DevExpress.Viz.DxTreeMapInterop.SetMargin(dxTarget, value); + } else { + this.margin = value; + } + } + } + bool? pathModified; + [Parameter] + bool? PathModified { + get => isInitialized ? (bool?)DevExpress.Viz.DxTreeMapInterop.GetPathModified(dxTarget).Result : pathModified; + set { + if (isInitialized) { + DevExpress.Viz.DxTreeMapInterop.SetPathModified(dxTarget, value); + } else { + this.pathModified = value; + } + } + } + bool? redrawOnResize; + [Parameter] + bool? RedrawOnResize { + get => isInitialized ? (bool?)DevExpress.Viz.DxTreeMapInterop.GetRedrawOnResize(dxTarget).Result : redrawOnResize; + set { + if (isInitialized) { + DevExpress.Viz.DxTreeMapInterop.SetRedrawOnResize(dxTarget, value); + } else { + this.redrawOnResize = value; + } + } + } + bool? rtlEnabled; + [Parameter] + bool? RtlEnabled { + get => isInitialized ? (bool?)DevExpress.Viz.DxTreeMapInterop.GetRtlEnabled(dxTarget).Result : rtlEnabled; + set { + if (isInitialized) { + DevExpress.Viz.DxTreeMapInterop.SetRtlEnabled(dxTarget, value); + } else { + this.rtlEnabled = value; + } + } + } + object size; + [Parameter] + object Size { + get => isInitialized ? DevExpress.Viz.DxTreeMapInterop.GetSize(dxTarget).Result : size; + set { + if (isInitialized) { + DevExpress.Viz.DxTreeMapInterop.SetSize(dxTarget, value); + } else { + this.size = value; + } + } + } + string theme; + [Parameter] + string Theme { + get => isInitialized ? (string)DevExpress.Viz.DxTreeMapInterop.GetTheme(dxTarget).Result : theme; + set { + if (isInitialized) { + DevExpress.Viz.DxTreeMapInterop.SetTheme(dxTarget, value); + } else { + this.theme = value; + } + } + } + object title; + [Parameter] + object Title { + get => isInitialized ? DevExpress.Viz.DxTreeMapInterop.GetTitle(dxTarget).Result : title; + set { + if (isInitialized) { + DevExpress.Viz.DxTreeMapInterop.SetTitle(dxTarget, value); + } else { + this.title = value; + } + } + } + object bindingOptions; + [Parameter] + object BindingOptions { + get => isInitialized ? DevExpress.Viz.DxTreeMapInterop.GetBindingOptions(dxTarget).Result : bindingOptions; + set { + if (isInitialized) { + DevExpress.Viz.DxTreeMapInterop.SetBindingOptions(dxTarget, value); + } else { + this.bindingOptions = value; + } + } + } + object elementAttr; + [Parameter] + object ElementAttr { + get => isInitialized ? DevExpress.Viz.DxTreeMapInterop.GetElementAttr(dxTarget).Result : elementAttr; + set { + if (isInitialized) { + DevExpress.Viz.DxTreeMapInterop.SetElementAttr(dxTarget, value); + } else { + this.elementAttr = value; + } + } + } + object height; + [Parameter] + object Height { + get => isInitialized ? DevExpress.Viz.DxTreeMapInterop.GetHeight(dxTarget).Result : height; + set { + if (isInitialized) { + DevExpress.Viz.DxTreeMapInterop.SetHeight(dxTarget, value); + } else { + this.height = value; + } + } + } + object width; + [Parameter] + object Width { + get => isInitialized ? DevExpress.Viz.DxTreeMapInterop.GetWidth(dxTarget).Result : width; + set { + if (isInitialized) { + DevExpress.Viz.DxTreeMapInterop.SetWidth(dxTarget, value); + } else { + this.width = value; + } + } + } bool? onClickEnabled; [Parameter] bool? OnClickEnabled { @@ -291,6 +468,54 @@ return DevExpress.Viz.DxTreeMapInterop.Init(dxTarget, options); get => onSelectionChangedEnabled; set => this.onSelectionChangedEnabled = value; } + bool? onDrawnEnabled; + [Parameter] + bool? OnDrawnEnabled { + get => onDrawnEnabled; + set => this.onDrawnEnabled = value; + } + bool? onExportedEnabled; + [Parameter] + bool? OnExportedEnabled { + get => onExportedEnabled; + set => this.onExportedEnabled = value; + } + bool? onExportingEnabled; + [Parameter] + bool? OnExportingEnabled { + get => onExportingEnabled; + set => this.onExportingEnabled = value; + } + bool? onFileSavingEnabled; + [Parameter] + bool? OnFileSavingEnabled { + get => onFileSavingEnabled; + set => this.onFileSavingEnabled = value; + } + bool? onIncidentOccurredEnabled; + [Parameter] + bool? OnIncidentOccurredEnabled { + get => onIncidentOccurredEnabled; + set => this.onIncidentOccurredEnabled = value; + } + bool? onDisposingEnabled; + [Parameter] + bool? OnDisposingEnabled { + get => onDisposingEnabled; + set => this.onDisposingEnabled = value; + } + bool? onOptionChangedEnabled; + [Parameter] + bool? OnOptionChangedEnabled { + get => onOptionChangedEnabled; + set => this.onOptionChangedEnabled = value; + } + bool? onInitializedEnabled; + [Parameter] + bool? OnInitializedEnabled { + get => onInitializedEnabled; + set => this.onInitializedEnabled = value; + } protected override async Task OnInitAsync() { await base.OnInitAsync(); DevExpress.Viz.DxTreeMapInterop.Click += DxTreeMap_Click; @@ -299,6 +524,14 @@ return DevExpress.Viz.DxTreeMapInterop.Init(dxTarget, options); DevExpress.Viz.DxTreeMapInterop.NodesInitialized += DxTreeMap_NodesInitialized; DevExpress.Viz.DxTreeMapInterop.NodesRendering += DxTreeMap_NodesRendering; DevExpress.Viz.DxTreeMapInterop.SelectionChanged += DxTreeMap_SelectionChanged; + DevExpress.Viz.DxTreeMapInterop.Drawn += DxTreeMap_Drawn; + DevExpress.Viz.DxTreeMapInterop.Exported += DxTreeMap_Exported; + DevExpress.Viz.DxTreeMapInterop.Exporting += DxTreeMap_Exporting; + DevExpress.Viz.DxTreeMapInterop.FileSaving += DxTreeMap_FileSaving; + DevExpress.Viz.DxTreeMapInterop.IncidentOccurred += DxTreeMap_IncidentOccurred; + DevExpress.Viz.DxTreeMapInterop.Disposing += DxTreeMap_Disposing; + DevExpress.Viz.DxTreeMapInterop.OptionChanged += DxTreeMap_OptionChanged; + DevExpress.Viz.DxTreeMapInterop.Initialized += DxTreeMap_Initialized; } [Parameter] Action Click { get; set; } @@ -342,6 +575,62 @@ return DevExpress.Viz.DxTreeMapInterop.Init(dxTarget, options); SelectionChanged?.Invoke(); } } + [Parameter] + Action Drawn { get; set; } + void DxTreeMap_Drawn(object sender, JQueryEventArgs e) { + if (e.Identifier == Id) { + Drawn?.Invoke(); + } + } + [Parameter] + Action Exported { get; set; } + void DxTreeMap_Exported(object sender, JQueryEventArgs e) { + if (e.Identifier == Id) { + Exported?.Invoke(); + } + } + [Parameter] + Action Exporting { get; set; } + void DxTreeMap_Exporting(object sender, JQueryEventArgs e) { + if (e.Identifier == Id) { + Exporting?.Invoke(); + } + } + [Parameter] + Action FileSaving { get; set; } + void DxTreeMap_FileSaving(object sender, JQueryEventArgs e) { + if (e.Identifier == Id) { + FileSaving?.Invoke(); + } + } + [Parameter] + Action IncidentOccurred { get; set; } + void DxTreeMap_IncidentOccurred(object sender, JQueryEventArgs e) { + if (e.Identifier == Id) { + IncidentOccurred?.Invoke(); + } + } + [Parameter] + Action Disposing { get; set; } + void DxTreeMap_Disposing(object sender, JQueryEventArgs e) { + if (e.Identifier == Id) { + Disposing?.Invoke(); + } + } + [Parameter] + Action OptionChanged { get; set; } + void DxTreeMap_OptionChanged(object sender, JQueryEventArgs e) { + if (e.Identifier == Id) { + OptionChanged?.Invoke(); + } + } + [Parameter] + Action Initialized { get; set; } + void DxTreeMap_Initialized(object sender, JQueryEventArgs e) { + if (e.Identifier == Id) { + Initialized?.Invoke(); + } + } public void ClearSelection() { DevExpress.Viz.DxTreeMapInterop.ClearSelection(dxTarget); } @@ -370,5 +659,13 @@ return DevExpress.Viz.DxTreeMapInterop.Init(dxTarget, options); DevExpress.Viz.DxTreeMapInterop.NodesInitialized -= DxTreeMap_NodesInitialized; DevExpress.Viz.DxTreeMapInterop.NodesRendering -= DxTreeMap_NodesRendering; DevExpress.Viz.DxTreeMapInterop.SelectionChanged -= DxTreeMap_SelectionChanged; + DevExpress.Viz.DxTreeMapInterop.Drawn -= DxTreeMap_Drawn; + DevExpress.Viz.DxTreeMapInterop.Exported -= DxTreeMap_Exported; + DevExpress.Viz.DxTreeMapInterop.Exporting -= DxTreeMap_Exporting; + DevExpress.Viz.DxTreeMapInterop.FileSaving -= DxTreeMap_FileSaving; + DevExpress.Viz.DxTreeMapInterop.IncidentOccurred -= DxTreeMap_IncidentOccurred; + DevExpress.Viz.DxTreeMapInterop.Disposing -= DxTreeMap_Disposing; + DevExpress.Viz.DxTreeMapInterop.OptionChanged -= DxTreeMap_OptionChanged; + DevExpress.Viz.DxTreeMapInterop.Initialized -= DxTreeMap_Initialized; } } diff --git a/sources/BlazorDevExtreme/Components/DxTreeView.cshtml b/sources/BlazorDevExtreme/Components/DxTreeView.cshtml index 2e18506..e3ad340 100644 --- a/sources/BlazorDevExtreme/Components/DxTreeView.cshtml +++ b/sources/BlazorDevExtreme/Components/DxTreeView.cshtml @@ -27,6 +27,38 @@ selectNodesRecursive = selectNodesRecursive, showCheckBoxesMode = showCheckBoxesMode, virtualModeEnabled = virtualModeEnabled, + disabledExpr = disabledExpr, + displayExpr = displayExpr, + focusStateEnabled = focusStateEnabled, + hoverStateEnabled = hoverStateEnabled, + itemsExpr = itemsExpr, + keyExpr = keyExpr, + selectedExpr = selectedExpr, + dataSource = dataSource, + itemHoldTimeout = itemHoldTimeout, + itemTemplate = itemTemplate, + noDataText = noDataText, + selectedIndex = selectedIndex, + selectedItem = selectedItem, + selectedItemKeys = selectedItemKeys, + selectedItems = selectedItems, + accessKey = accessKey, + activeStateEnabled = activeStateEnabled, + disabled = disabled, + hint = hint, + tabIndex = tabIndex, + visible = visible, + bindingOptions = bindingOptions, + elementAttr = elementAttr, + height = height, + rtlEnabled = rtlEnabled, + width = width, + searchEditorOptions = searchEditorOptions, + searchEnabled = searchEnabled, + searchExpr = searchExpr, + searchMode = searchMode, + searchTimeout = searchTimeout, + searchValue = searchValue, onItemClickEnabled = onItemClickEnabled, onItemCollapsedEnabled = onItemCollapsedEnabled, onItemContextMenuEnabled = onItemContextMenuEnabled, @@ -35,15 +67,19 @@ onItemRenderedEnabled = onItemRenderedEnabled, onItemSelectionChangedEnabled = onItemSelectionChangedEnabled, onSelectionChangedEnabled = onSelectionChangedEnabled, + onContentReadyEnabled = onContentReadyEnabled, + onDisposingEnabled = onDisposingEnabled, + onOptionChangedEnabled = onOptionChangedEnabled, + onInitializedEnabled = onInitializedEnabled, }; } protected override Task Init(DevExpress.Ui.DxTreeViewOptions options) { -return DevExpress.Ui.DxTreeViewInterop.Init(dxTarget, options); + return DevExpress.Ui.DxTreeViewInterop.Init(dxTarget, options); } bool? animationEnabled; [Parameter] bool? AnimationEnabled { - get => isInitialized ? DevExpress.Ui.DxTreeViewInterop.GetAnimationEnabled(dxTarget).Result : animationEnabled; + get => isInitialized ? (bool?)DevExpress.Ui.DxTreeViewInterop.GetAnimationEnabled(dxTarget).Result : animationEnabled; set { if (isInitialized) { DevExpress.Ui.DxTreeViewInterop.SetAnimationEnabled(dxTarget, value); @@ -67,7 +103,7 @@ return DevExpress.Ui.DxTreeViewInterop.Init(dxTarget, options); string dataStructure; [Parameter] string DataStructure { - get => isInitialized ? DevExpress.Ui.DxTreeViewInterop.GetDataStructure(dxTarget).Result : dataStructure; + get => isInitialized ? (string)DevExpress.Ui.DxTreeViewInterop.GetDataStructure(dxTarget).Result : dataStructure; set { if (isInitialized) { DevExpress.Ui.DxTreeViewInterop.SetDataStructure(dxTarget, value); @@ -79,7 +115,7 @@ return DevExpress.Ui.DxTreeViewInterop.Init(dxTarget, options); bool? expandAllEnabled; [Parameter] bool? ExpandAllEnabled { - get => isInitialized ? DevExpress.Ui.DxTreeViewInterop.GetExpandAllEnabled(dxTarget).Result : expandAllEnabled; + get => isInitialized ? (bool?)DevExpress.Ui.DxTreeViewInterop.GetExpandAllEnabled(dxTarget).Result : expandAllEnabled; set { if (isInitialized) { DevExpress.Ui.DxTreeViewInterop.SetExpandAllEnabled(dxTarget, value); @@ -103,7 +139,7 @@ return DevExpress.Ui.DxTreeViewInterop.Init(dxTarget, options); bool? expandNodesRecursive; [Parameter] bool? ExpandNodesRecursive { - get => isInitialized ? DevExpress.Ui.DxTreeViewInterop.GetExpandNodesRecursive(dxTarget).Result : expandNodesRecursive; + get => isInitialized ? (bool?)DevExpress.Ui.DxTreeViewInterop.GetExpandNodesRecursive(dxTarget).Result : expandNodesRecursive; set { if (isInitialized) { DevExpress.Ui.DxTreeViewInterop.SetExpandNodesRecursive(dxTarget, value); @@ -163,7 +199,7 @@ return DevExpress.Ui.DxTreeViewInterop.Init(dxTarget, options); string scrollDirection; [Parameter] string ScrollDirection { - get => isInitialized ? DevExpress.Ui.DxTreeViewInterop.GetScrollDirection(dxTarget).Result : scrollDirection; + get => isInitialized ? (string)DevExpress.Ui.DxTreeViewInterop.GetScrollDirection(dxTarget).Result : scrollDirection; set { if (isInitialized) { DevExpress.Ui.DxTreeViewInterop.SetScrollDirection(dxTarget, value); @@ -175,7 +211,7 @@ return DevExpress.Ui.DxTreeViewInterop.Init(dxTarget, options); string selectAllText; [Parameter] string SelectAllText { - get => isInitialized ? DevExpress.Ui.DxTreeViewInterop.GetSelectAllText(dxTarget).Result : selectAllText; + get => isInitialized ? (string)DevExpress.Ui.DxTreeViewInterop.GetSelectAllText(dxTarget).Result : selectAllText; set { if (isInitialized) { DevExpress.Ui.DxTreeViewInterop.SetSelectAllText(dxTarget, value); @@ -187,7 +223,7 @@ return DevExpress.Ui.DxTreeViewInterop.Init(dxTarget, options); bool? selectByClick; [Parameter] bool? SelectByClick { - get => isInitialized ? DevExpress.Ui.DxTreeViewInterop.GetSelectByClick(dxTarget).Result : selectByClick; + get => isInitialized ? (bool?)DevExpress.Ui.DxTreeViewInterop.GetSelectByClick(dxTarget).Result : selectByClick; set { if (isInitialized) { DevExpress.Ui.DxTreeViewInterop.SetSelectByClick(dxTarget, value); @@ -199,7 +235,7 @@ return DevExpress.Ui.DxTreeViewInterop.Init(dxTarget, options); string selectionMode; [Parameter] string SelectionMode { - get => isInitialized ? DevExpress.Ui.DxTreeViewInterop.GetSelectionMode(dxTarget).Result : selectionMode; + get => isInitialized ? (string)DevExpress.Ui.DxTreeViewInterop.GetSelectionMode(dxTarget).Result : selectionMode; set { if (isInitialized) { DevExpress.Ui.DxTreeViewInterop.SetSelectionMode(dxTarget, value); @@ -211,7 +247,7 @@ return DevExpress.Ui.DxTreeViewInterop.Init(dxTarget, options); bool? selectNodesRecursive; [Parameter] bool? SelectNodesRecursive { - get => isInitialized ? DevExpress.Ui.DxTreeViewInterop.GetSelectNodesRecursive(dxTarget).Result : selectNodesRecursive; + get => isInitialized ? (bool?)DevExpress.Ui.DxTreeViewInterop.GetSelectNodesRecursive(dxTarget).Result : selectNodesRecursive; set { if (isInitialized) { DevExpress.Ui.DxTreeViewInterop.SetSelectNodesRecursive(dxTarget, value); @@ -223,7 +259,7 @@ return DevExpress.Ui.DxTreeViewInterop.Init(dxTarget, options); string showCheckBoxesMode; [Parameter] string ShowCheckBoxesMode { - get => isInitialized ? DevExpress.Ui.DxTreeViewInterop.GetShowCheckBoxesMode(dxTarget).Result : showCheckBoxesMode; + get => isInitialized ? (string)DevExpress.Ui.DxTreeViewInterop.GetShowCheckBoxesMode(dxTarget).Result : showCheckBoxesMode; set { if (isInitialized) { DevExpress.Ui.DxTreeViewInterop.SetShowCheckBoxesMode(dxTarget, value); @@ -235,7 +271,7 @@ return DevExpress.Ui.DxTreeViewInterop.Init(dxTarget, options); bool? virtualModeEnabled; [Parameter] bool? VirtualModeEnabled { - get => isInitialized ? DevExpress.Ui.DxTreeViewInterop.GetVirtualModeEnabled(dxTarget).Result : virtualModeEnabled; + get => isInitialized ? (bool?)DevExpress.Ui.DxTreeViewInterop.GetVirtualModeEnabled(dxTarget).Result : virtualModeEnabled; set { if (isInitialized) { DevExpress.Ui.DxTreeViewInterop.SetVirtualModeEnabled(dxTarget, value); @@ -244,6 +280,390 @@ return DevExpress.Ui.DxTreeViewInterop.Init(dxTarget, options); } } } + object disabledExpr; + [Parameter] + object DisabledExpr { + get => isInitialized ? DevExpress.Ui.DxTreeViewInterop.GetDisabledExpr(dxTarget).Result : disabledExpr; + set { + if (isInitialized) { + DevExpress.Ui.DxTreeViewInterop.SetDisabledExpr(dxTarget, value); + } else { + this.disabledExpr = value; + } + } + } + object displayExpr; + [Parameter] + object DisplayExpr { + get => isInitialized ? DevExpress.Ui.DxTreeViewInterop.GetDisplayExpr(dxTarget).Result : displayExpr; + set { + if (isInitialized) { + DevExpress.Ui.DxTreeViewInterop.SetDisplayExpr(dxTarget, value); + } else { + this.displayExpr = value; + } + } + } + bool? focusStateEnabled; + [Parameter] + bool? FocusStateEnabled { + get => isInitialized ? (bool?)DevExpress.Ui.DxTreeViewInterop.GetFocusStateEnabled(dxTarget).Result : focusStateEnabled; + set { + if (isInitialized) { + DevExpress.Ui.DxTreeViewInterop.SetFocusStateEnabled(dxTarget, value); + } else { + this.focusStateEnabled = value; + } + } + } + bool? hoverStateEnabled; + [Parameter] + bool? HoverStateEnabled { + get => isInitialized ? (bool?)DevExpress.Ui.DxTreeViewInterop.GetHoverStateEnabled(dxTarget).Result : hoverStateEnabled; + set { + if (isInitialized) { + DevExpress.Ui.DxTreeViewInterop.SetHoverStateEnabled(dxTarget, value); + } else { + this.hoverStateEnabled = value; + } + } + } + object itemsExpr; + [Parameter] + object ItemsExpr { + get => isInitialized ? DevExpress.Ui.DxTreeViewInterop.GetItemsExpr(dxTarget).Result : itemsExpr; + set { + if (isInitialized) { + DevExpress.Ui.DxTreeViewInterop.SetItemsExpr(dxTarget, value); + } else { + this.itemsExpr = value; + } + } + } + object keyExpr; + [Parameter] + object KeyExpr { + get => isInitialized ? DevExpress.Ui.DxTreeViewInterop.GetKeyExpr(dxTarget).Result : keyExpr; + set { + if (isInitialized) { + DevExpress.Ui.DxTreeViewInterop.SetKeyExpr(dxTarget, value); + } else { + this.keyExpr = value; + } + } + } + object selectedExpr; + [Parameter] + object SelectedExpr { + get => isInitialized ? DevExpress.Ui.DxTreeViewInterop.GetSelectedExpr(dxTarget).Result : selectedExpr; + set { + if (isInitialized) { + DevExpress.Ui.DxTreeViewInterop.SetSelectedExpr(dxTarget, value); + } else { + this.selectedExpr = value; + } + } + } + object dataSource; + [Parameter] + object DataSource { + get => isInitialized ? DevExpress.Ui.DxTreeViewInterop.GetDataSource(dxTarget).Result : dataSource; + set { + if (isInitialized) { + DevExpress.Ui.DxTreeViewInterop.SetDataSource(dxTarget, value); + } else { + this.dataSource = value; + } + } + } + float? itemHoldTimeout; + [Parameter] + float? ItemHoldTimeout { + get => isInitialized ? (float?)DevExpress.Ui.DxTreeViewInterop.GetItemHoldTimeout(dxTarget).Result : itemHoldTimeout; + set { + if (isInitialized) { + DevExpress.Ui.DxTreeViewInterop.SetItemHoldTimeout(dxTarget, value); + } else { + this.itemHoldTimeout = value; + } + } + } + object itemTemplate; + [Parameter] + object ItemTemplate { + get => isInitialized ? DevExpress.Ui.DxTreeViewInterop.GetItemTemplate(dxTarget).Result : itemTemplate; + set { + if (isInitialized) { + DevExpress.Ui.DxTreeViewInterop.SetItemTemplate(dxTarget, value); + } else { + this.itemTemplate = value; + } + } + } + string noDataText; + [Parameter] + string NoDataText { + get => isInitialized ? (string)DevExpress.Ui.DxTreeViewInterop.GetNoDataText(dxTarget).Result : noDataText; + set { + if (isInitialized) { + DevExpress.Ui.DxTreeViewInterop.SetNoDataText(dxTarget, value); + } else { + this.noDataText = value; + } + } + } + float? selectedIndex; + [Parameter] + float? SelectedIndex { + get => isInitialized ? (float?)DevExpress.Ui.DxTreeViewInterop.GetSelectedIndex(dxTarget).Result : selectedIndex; + set { + if (isInitialized) { + DevExpress.Ui.DxTreeViewInterop.SetSelectedIndex(dxTarget, value); + } else { + this.selectedIndex = value; + } + } + } + object selectedItem; + [Parameter] + object SelectedItem { + get => isInitialized ? DevExpress.Ui.DxTreeViewInterop.GetSelectedItem(dxTarget).Result : selectedItem; + set { + if (isInitialized) { + DevExpress.Ui.DxTreeViewInterop.SetSelectedItem(dxTarget, value); + } else { + this.selectedItem = value; + } + } + } + object selectedItemKeys; + [Parameter] + object SelectedItemKeys { + get => isInitialized ? DevExpress.Ui.DxTreeViewInterop.GetSelectedItemKeys(dxTarget).Result : selectedItemKeys; + set { + if (isInitialized) { + DevExpress.Ui.DxTreeViewInterop.SetSelectedItemKeys(dxTarget, value); + } else { + this.selectedItemKeys = value; + } + } + } + object selectedItems; + [Parameter] + object SelectedItems { + get => isInitialized ? DevExpress.Ui.DxTreeViewInterop.GetSelectedItems(dxTarget).Result : selectedItems; + set { + if (isInitialized) { + DevExpress.Ui.DxTreeViewInterop.SetSelectedItems(dxTarget, value); + } else { + this.selectedItems = value; + } + } + } + string accessKey; + [Parameter] + string AccessKey { + get => isInitialized ? (string)DevExpress.Ui.DxTreeViewInterop.GetAccessKey(dxTarget).Result : accessKey; + set { + if (isInitialized) { + DevExpress.Ui.DxTreeViewInterop.SetAccessKey(dxTarget, value); + } else { + this.accessKey = value; + } + } + } + bool? activeStateEnabled; + [Parameter] + bool? ActiveStateEnabled { + get => isInitialized ? (bool?)DevExpress.Ui.DxTreeViewInterop.GetActiveStateEnabled(dxTarget).Result : activeStateEnabled; + set { + if (isInitialized) { + DevExpress.Ui.DxTreeViewInterop.SetActiveStateEnabled(dxTarget, value); + } else { + this.activeStateEnabled = value; + } + } + } + bool? disabled; + [Parameter] + bool? Disabled { + get => isInitialized ? (bool?)DevExpress.Ui.DxTreeViewInterop.GetDisabled(dxTarget).Result : disabled; + set { + if (isInitialized) { + DevExpress.Ui.DxTreeViewInterop.SetDisabled(dxTarget, value); + } else { + this.disabled = value; + } + } + } + string hint; + [Parameter] + string Hint { + get => isInitialized ? (string)DevExpress.Ui.DxTreeViewInterop.GetHint(dxTarget).Result : hint; + set { + if (isInitialized) { + DevExpress.Ui.DxTreeViewInterop.SetHint(dxTarget, value); + } else { + this.hint = value; + } + } + } + float? tabIndex; + [Parameter] + float? TabIndex { + get => isInitialized ? (float?)DevExpress.Ui.DxTreeViewInterop.GetTabIndex(dxTarget).Result : tabIndex; + set { + if (isInitialized) { + DevExpress.Ui.DxTreeViewInterop.SetTabIndex(dxTarget, value); + } else { + this.tabIndex = value; + } + } + } + bool? visible; + [Parameter] + bool? Visible { + get => isInitialized ? (bool?)DevExpress.Ui.DxTreeViewInterop.GetVisible(dxTarget).Result : visible; + set { + if (isInitialized) { + DevExpress.Ui.DxTreeViewInterop.SetVisible(dxTarget, value); + } else { + this.visible = value; + } + } + } + object bindingOptions; + [Parameter] + object BindingOptions { + get => isInitialized ? DevExpress.Ui.DxTreeViewInterop.GetBindingOptions(dxTarget).Result : bindingOptions; + set { + if (isInitialized) { + DevExpress.Ui.DxTreeViewInterop.SetBindingOptions(dxTarget, value); + } else { + this.bindingOptions = value; + } + } + } + object elementAttr; + [Parameter] + object ElementAttr { + get => isInitialized ? DevExpress.Ui.DxTreeViewInterop.GetElementAttr(dxTarget).Result : elementAttr; + set { + if (isInitialized) { + DevExpress.Ui.DxTreeViewInterop.SetElementAttr(dxTarget, value); + } else { + this.elementAttr = value; + } + } + } + object height; + [Parameter] + object Height { + get => isInitialized ? DevExpress.Ui.DxTreeViewInterop.GetHeight(dxTarget).Result : height; + set { + if (isInitialized) { + DevExpress.Ui.DxTreeViewInterop.SetHeight(dxTarget, value); + } else { + this.height = value; + } + } + } + bool? rtlEnabled; + [Parameter] + bool? RtlEnabled { + get => isInitialized ? (bool?)DevExpress.Ui.DxTreeViewInterop.GetRtlEnabled(dxTarget).Result : rtlEnabled; + set { + if (isInitialized) { + DevExpress.Ui.DxTreeViewInterop.SetRtlEnabled(dxTarget, value); + } else { + this.rtlEnabled = value; + } + } + } + object width; + [Parameter] + object Width { + get => isInitialized ? DevExpress.Ui.DxTreeViewInterop.GetWidth(dxTarget).Result : width; + set { + if (isInitialized) { + DevExpress.Ui.DxTreeViewInterop.SetWidth(dxTarget, value); + } else { + this.width = value; + } + } + } + object searchEditorOptions; + [Parameter] + object SearchEditorOptions { + get => isInitialized ? DevExpress.Ui.DxTreeViewInterop.GetSearchEditorOptions(dxTarget).Result : searchEditorOptions; + set { + if (isInitialized) { + DevExpress.Ui.DxTreeViewInterop.SetSearchEditorOptions(dxTarget, value); + } else { + this.searchEditorOptions = value; + } + } + } + bool? searchEnabled; + [Parameter] + bool? SearchEnabled { + get => isInitialized ? (bool?)DevExpress.Ui.DxTreeViewInterop.GetSearchEnabled(dxTarget).Result : searchEnabled; + set { + if (isInitialized) { + DevExpress.Ui.DxTreeViewInterop.SetSearchEnabled(dxTarget, value); + } else { + this.searchEnabled = value; + } + } + } + object searchExpr; + [Parameter] + object SearchExpr { + get => isInitialized ? DevExpress.Ui.DxTreeViewInterop.GetSearchExpr(dxTarget).Result : searchExpr; + set { + if (isInitialized) { + DevExpress.Ui.DxTreeViewInterop.SetSearchExpr(dxTarget, value); + } else { + this.searchExpr = value; + } + } + } + string searchMode; + [Parameter] + string SearchMode { + get => isInitialized ? (string)DevExpress.Ui.DxTreeViewInterop.GetSearchMode(dxTarget).Result : searchMode; + set { + if (isInitialized) { + DevExpress.Ui.DxTreeViewInterop.SetSearchMode(dxTarget, value); + } else { + this.searchMode = value; + } + } + } + float? searchTimeout; + [Parameter] + float? SearchTimeout { + get => isInitialized ? (float?)DevExpress.Ui.DxTreeViewInterop.GetSearchTimeout(dxTarget).Result : searchTimeout; + set { + if (isInitialized) { + DevExpress.Ui.DxTreeViewInterop.SetSearchTimeout(dxTarget, value); + } else { + this.searchTimeout = value; + } + } + } + string searchValue; + [Parameter] + string SearchValue { + get => isInitialized ? (string)DevExpress.Ui.DxTreeViewInterop.GetSearchValue(dxTarget).Result : searchValue; + set { + if (isInitialized) { + DevExpress.Ui.DxTreeViewInterop.SetSearchValue(dxTarget, value); + } else { + this.searchValue = value; + } + } + } bool? onItemClickEnabled; [Parameter] bool? OnItemClickEnabled { @@ -292,6 +712,30 @@ return DevExpress.Ui.DxTreeViewInterop.Init(dxTarget, options); get => onSelectionChangedEnabled; set => this.onSelectionChangedEnabled = value; } + bool? onContentReadyEnabled; + [Parameter] + bool? OnContentReadyEnabled { + get => onContentReadyEnabled; + set => this.onContentReadyEnabled = value; + } + bool? onDisposingEnabled; + [Parameter] + bool? OnDisposingEnabled { + get => onDisposingEnabled; + set => this.onDisposingEnabled = value; + } + bool? onOptionChangedEnabled; + [Parameter] + bool? OnOptionChangedEnabled { + get => onOptionChangedEnabled; + set => this.onOptionChangedEnabled = value; + } + bool? onInitializedEnabled; + [Parameter] + bool? OnInitializedEnabled { + get => onInitializedEnabled; + set => this.onInitializedEnabled = value; + } protected override async Task OnInitAsync() { await base.OnInitAsync(); DevExpress.Ui.DxTreeViewInterop.ItemClick += DxTreeView_ItemClick; @@ -302,6 +746,10 @@ return DevExpress.Ui.DxTreeViewInterop.Init(dxTarget, options); DevExpress.Ui.DxTreeViewInterop.ItemRendered += DxTreeView_ItemRendered; DevExpress.Ui.DxTreeViewInterop.ItemSelectionChanged += DxTreeView_ItemSelectionChanged; DevExpress.Ui.DxTreeViewInterop.SelectionChanged += DxTreeView_SelectionChanged; + DevExpress.Ui.DxTreeViewInterop.ContentReady += DxTreeView_ContentReady; + DevExpress.Ui.DxTreeViewInterop.Disposing += DxTreeView_Disposing; + DevExpress.Ui.DxTreeViewInterop.OptionChanged += DxTreeView_OptionChanged; + DevExpress.Ui.DxTreeViewInterop.Initialized += DxTreeView_Initialized; } [Parameter] Action ItemClick { get; set; } @@ -359,6 +807,34 @@ return DevExpress.Ui.DxTreeViewInterop.Init(dxTarget, options); SelectionChanged?.Invoke(); } } + [Parameter] + Action ContentReady { get; set; } + void DxTreeView_ContentReady(object sender, JQueryEventArgs e) { + if (e.Identifier == Id) { + ContentReady?.Invoke(); + } + } + [Parameter] + Action Disposing { get; set; } + void DxTreeView_Disposing(object sender, JQueryEventArgs e) { + if (e.Identifier == Id) { + Disposing?.Invoke(); + } + } + [Parameter] + Action OptionChanged { get; set; } + void DxTreeView_OptionChanged(object sender, JQueryEventArgs e) { + if (e.Identifier == Id) { + OptionChanged?.Invoke(); + } + } + [Parameter] + Action Initialized { get; set; } + void DxTreeView_Initialized(object sender, JQueryEventArgs e) { + if (e.Identifier == Id) { + Initialized?.Invoke(); + } + } public void CollapseItem(object itemData) { DevExpress.Ui.DxTreeViewInterop.CollapseItem(dxTarget, itemData); } @@ -392,5 +868,9 @@ return DevExpress.Ui.DxTreeViewInterop.Init(dxTarget, options); DevExpress.Ui.DxTreeViewInterop.ItemRendered -= DxTreeView_ItemRendered; DevExpress.Ui.DxTreeViewInterop.ItemSelectionChanged -= DxTreeView_ItemSelectionChanged; DevExpress.Ui.DxTreeViewInterop.SelectionChanged -= DxTreeView_SelectionChanged; + DevExpress.Ui.DxTreeViewInterop.ContentReady -= DxTreeView_ContentReady; + DevExpress.Ui.DxTreeViewInterop.Disposing -= DxTreeView_Disposing; + DevExpress.Ui.DxTreeViewInterop.OptionChanged -= DxTreeView_OptionChanged; + DevExpress.Ui.DxTreeViewInterop.Initialized -= DxTreeView_Initialized; } } diff --git a/sources/BlazorDevExtreme/Components/DxValidationGroup.cshtml b/sources/BlazorDevExtreme/Components/DxValidationGroup.cshtml index ae0a864..25d03aa 100644 --- a/sources/BlazorDevExtreme/Components/DxValidationGroup.cshtml +++ b/sources/BlazorDevExtreme/Components/DxValidationGroup.cshtml @@ -10,13 +10,123 @@ public DxValidationGroup() : base("DxValidationGroup") { } protected override DevExpress.Ui.DxValidationGroupOptions CreateOptions() { return new DevExpress.Ui.DxValidationGroupOptions { + bindingOptions = bindingOptions, + elementAttr = elementAttr, + height = height, + rtlEnabled = rtlEnabled, + width = width, + onDisposingEnabled = onDisposingEnabled, + onOptionChangedEnabled = onOptionChangedEnabled, + onInitializedEnabled = onInitializedEnabled, }; } protected override Task Init(DevExpress.Ui.DxValidationGroupOptions options) { -return DevExpress.Ui.DxValidationGroupInterop.Init(dxTarget, options); + return DevExpress.Ui.DxValidationGroupInterop.Init(dxTarget, options); + } + object bindingOptions; + [Parameter] + object BindingOptions { + get => isInitialized ? DevExpress.Ui.DxValidationGroupInterop.GetBindingOptions(dxTarget).Result : bindingOptions; + set { + if (isInitialized) { + DevExpress.Ui.DxValidationGroupInterop.SetBindingOptions(dxTarget, value); + } else { + this.bindingOptions = value; + } + } + } + object elementAttr; + [Parameter] + object ElementAttr { + get => isInitialized ? DevExpress.Ui.DxValidationGroupInterop.GetElementAttr(dxTarget).Result : elementAttr; + set { + if (isInitialized) { + DevExpress.Ui.DxValidationGroupInterop.SetElementAttr(dxTarget, value); + } else { + this.elementAttr = value; + } + } + } + object height; + [Parameter] + object Height { + get => isInitialized ? DevExpress.Ui.DxValidationGroupInterop.GetHeight(dxTarget).Result : height; + set { + if (isInitialized) { + DevExpress.Ui.DxValidationGroupInterop.SetHeight(dxTarget, value); + } else { + this.height = value; + } + } + } + bool? rtlEnabled; + [Parameter] + bool? RtlEnabled { + get => isInitialized ? (bool?)DevExpress.Ui.DxValidationGroupInterop.GetRtlEnabled(dxTarget).Result : rtlEnabled; + set { + if (isInitialized) { + DevExpress.Ui.DxValidationGroupInterop.SetRtlEnabled(dxTarget, value); + } else { + this.rtlEnabled = value; + } + } + } + object width; + [Parameter] + object Width { + get => isInitialized ? DevExpress.Ui.DxValidationGroupInterop.GetWidth(dxTarget).Result : width; + set { + if (isInitialized) { + DevExpress.Ui.DxValidationGroupInterop.SetWidth(dxTarget, value); + } else { + this.width = value; + } + } + } + bool? onDisposingEnabled; + [Parameter] + bool? OnDisposingEnabled { + get => onDisposingEnabled; + set => this.onDisposingEnabled = value; + } + bool? onOptionChangedEnabled; + [Parameter] + bool? OnOptionChangedEnabled { + get => onOptionChangedEnabled; + set => this.onOptionChangedEnabled = value; + } + bool? onInitializedEnabled; + [Parameter] + bool? OnInitializedEnabled { + get => onInitializedEnabled; + set => this.onInitializedEnabled = value; } protected override async Task OnInitAsync() { await base.OnInitAsync(); + DevExpress.Ui.DxValidationGroupInterop.Disposing += DxValidationGroup_Disposing; + DevExpress.Ui.DxValidationGroupInterop.OptionChanged += DxValidationGroup_OptionChanged; + DevExpress.Ui.DxValidationGroupInterop.Initialized += DxValidationGroup_Initialized; + } + [Parameter] + Action Disposing { get; set; } + void DxValidationGroup_Disposing(object sender, JQueryEventArgs e) { + if (e.Identifier == Id) { + Disposing?.Invoke(); + } + } + [Parameter] + Action OptionChanged { get; set; } + void DxValidationGroup_OptionChanged(object sender, JQueryEventArgs e) { + if (e.Identifier == Id) { + OptionChanged?.Invoke(); + } + } + [Parameter] + Action Initialized { get; set; } + void DxValidationGroup_Initialized(object sender, JQueryEventArgs e) { + if (e.Identifier == Id) { + Initialized?.Invoke(); + } } public void Reset() { DevExpress.Ui.DxValidationGroupInterop.Reset(dxTarget); @@ -25,5 +135,8 @@ return DevExpress.Ui.DxValidationGroupInterop.Init(dxTarget, options); return DevExpress.Ui.DxValidationGroupInterop.Validate(dxTarget).Result; } public void Dispose() { + DevExpress.Ui.DxValidationGroupInterop.Disposing -= DxValidationGroup_Disposing; + DevExpress.Ui.DxValidationGroupInterop.OptionChanged -= DxValidationGroup_OptionChanged; + DevExpress.Ui.DxValidationGroupInterop.Initialized -= DxValidationGroup_Initialized; } } diff --git a/sources/BlazorDevExtreme/Components/DxValidationSummary.cshtml b/sources/BlazorDevExtreme/Components/DxValidationSummary.cshtml index baa4454..5505670 100644 --- a/sources/BlazorDevExtreme/Components/DxValidationSummary.cshtml +++ b/sources/BlazorDevExtreme/Components/DxValidationSummary.cshtml @@ -11,15 +11,47 @@ protected override DevExpress.Ui.DxValidationSummaryOptions CreateOptions() { return new DevExpress.Ui.DxValidationSummaryOptions { validationGroup = validationGroup, + dataSource = dataSource, + itemHoldTimeout = itemHoldTimeout, + items = items, + itemTemplate = itemTemplate, + keyExpr = keyExpr, + noDataText = noDataText, + selectedIndex = selectedIndex, + selectedItem = selectedItem, + selectedItemKeys = selectedItemKeys, + selectedItems = selectedItems, + accessKey = accessKey, + activeStateEnabled = activeStateEnabled, + disabled = disabled, + focusStateEnabled = focusStateEnabled, + hint = hint, + hoverStateEnabled = hoverStateEnabled, + tabIndex = tabIndex, + visible = visible, + bindingOptions = bindingOptions, + elementAttr = elementAttr, + height = height, + rtlEnabled = rtlEnabled, + width = width, + onItemClickEnabled = onItemClickEnabled, + onItemContextMenuEnabled = onItemContextMenuEnabled, + onItemHoldEnabled = onItemHoldEnabled, + onItemRenderedEnabled = onItemRenderedEnabled, + onSelectionChangedEnabled = onSelectionChangedEnabled, + onContentReadyEnabled = onContentReadyEnabled, + onDisposingEnabled = onDisposingEnabled, + onOptionChangedEnabled = onOptionChangedEnabled, + onInitializedEnabled = onInitializedEnabled, }; } protected override Task Init(DevExpress.Ui.DxValidationSummaryOptions options) { -return DevExpress.Ui.DxValidationSummaryInterop.Init(dxTarget, options); + return DevExpress.Ui.DxValidationSummaryInterop.Init(dxTarget, options); } string validationGroup; [Parameter] string ValidationGroup { - get => isInitialized ? DevExpress.Ui.DxValidationSummaryInterop.GetValidationGroup(dxTarget).Result : validationGroup; + get => isInitialized ? (string)DevExpress.Ui.DxValidationSummaryInterop.GetValidationGroup(dxTarget).Result : validationGroup; set { if (isInitialized) { DevExpress.Ui.DxValidationSummaryInterop.SetValidationGroup(dxTarget, value); @@ -28,9 +60,420 @@ return DevExpress.Ui.DxValidationSummaryInterop.Init(dxTarget, options); } } } + object dataSource; + [Parameter] + object DataSource { + get => isInitialized ? DevExpress.Ui.DxValidationSummaryInterop.GetDataSource(dxTarget).Result : dataSource; + set { + if (isInitialized) { + DevExpress.Ui.DxValidationSummaryInterop.SetDataSource(dxTarget, value); + } else { + this.dataSource = value; + } + } + } + float? itemHoldTimeout; + [Parameter] + float? ItemHoldTimeout { + get => isInitialized ? (float?)DevExpress.Ui.DxValidationSummaryInterop.GetItemHoldTimeout(dxTarget).Result : itemHoldTimeout; + set { + if (isInitialized) { + DevExpress.Ui.DxValidationSummaryInterop.SetItemHoldTimeout(dxTarget, value); + } else { + this.itemHoldTimeout = value; + } + } + } + object items; + [Parameter] + object Items { + get => isInitialized ? DevExpress.Ui.DxValidationSummaryInterop.GetItems(dxTarget).Result : items; + set { + if (isInitialized) { + DevExpress.Ui.DxValidationSummaryInterop.SetItems(dxTarget, value); + } else { + this.items = value; + } + } + } + object itemTemplate; + [Parameter] + object ItemTemplate { + get => isInitialized ? DevExpress.Ui.DxValidationSummaryInterop.GetItemTemplate(dxTarget).Result : itemTemplate; + set { + if (isInitialized) { + DevExpress.Ui.DxValidationSummaryInterop.SetItemTemplate(dxTarget, value); + } else { + this.itemTemplate = value; + } + } + } + object keyExpr; + [Parameter] + object KeyExpr { + get => isInitialized ? DevExpress.Ui.DxValidationSummaryInterop.GetKeyExpr(dxTarget).Result : keyExpr; + set { + if (isInitialized) { + DevExpress.Ui.DxValidationSummaryInterop.SetKeyExpr(dxTarget, value); + } else { + this.keyExpr = value; + } + } + } + string noDataText; + [Parameter] + string NoDataText { + get => isInitialized ? (string)DevExpress.Ui.DxValidationSummaryInterop.GetNoDataText(dxTarget).Result : noDataText; + set { + if (isInitialized) { + DevExpress.Ui.DxValidationSummaryInterop.SetNoDataText(dxTarget, value); + } else { + this.noDataText = value; + } + } + } + float? selectedIndex; + [Parameter] + float? SelectedIndex { + get => isInitialized ? (float?)DevExpress.Ui.DxValidationSummaryInterop.GetSelectedIndex(dxTarget).Result : selectedIndex; + set { + if (isInitialized) { + DevExpress.Ui.DxValidationSummaryInterop.SetSelectedIndex(dxTarget, value); + } else { + this.selectedIndex = value; + } + } + } + object selectedItem; + [Parameter] + object SelectedItem { + get => isInitialized ? DevExpress.Ui.DxValidationSummaryInterop.GetSelectedItem(dxTarget).Result : selectedItem; + set { + if (isInitialized) { + DevExpress.Ui.DxValidationSummaryInterop.SetSelectedItem(dxTarget, value); + } else { + this.selectedItem = value; + } + } + } + object selectedItemKeys; + [Parameter] + object SelectedItemKeys { + get => isInitialized ? DevExpress.Ui.DxValidationSummaryInterop.GetSelectedItemKeys(dxTarget).Result : selectedItemKeys; + set { + if (isInitialized) { + DevExpress.Ui.DxValidationSummaryInterop.SetSelectedItemKeys(dxTarget, value); + } else { + this.selectedItemKeys = value; + } + } + } + object selectedItems; + [Parameter] + object SelectedItems { + get => isInitialized ? DevExpress.Ui.DxValidationSummaryInterop.GetSelectedItems(dxTarget).Result : selectedItems; + set { + if (isInitialized) { + DevExpress.Ui.DxValidationSummaryInterop.SetSelectedItems(dxTarget, value); + } else { + this.selectedItems = value; + } + } + } + string accessKey; + [Parameter] + string AccessKey { + get => isInitialized ? (string)DevExpress.Ui.DxValidationSummaryInterop.GetAccessKey(dxTarget).Result : accessKey; + set { + if (isInitialized) { + DevExpress.Ui.DxValidationSummaryInterop.SetAccessKey(dxTarget, value); + } else { + this.accessKey = value; + } + } + } + bool? activeStateEnabled; + [Parameter] + bool? ActiveStateEnabled { + get => isInitialized ? (bool?)DevExpress.Ui.DxValidationSummaryInterop.GetActiveStateEnabled(dxTarget).Result : activeStateEnabled; + set { + if (isInitialized) { + DevExpress.Ui.DxValidationSummaryInterop.SetActiveStateEnabled(dxTarget, value); + } else { + this.activeStateEnabled = value; + } + } + } + bool? disabled; + [Parameter] + bool? Disabled { + get => isInitialized ? (bool?)DevExpress.Ui.DxValidationSummaryInterop.GetDisabled(dxTarget).Result : disabled; + set { + if (isInitialized) { + DevExpress.Ui.DxValidationSummaryInterop.SetDisabled(dxTarget, value); + } else { + this.disabled = value; + } + } + } + bool? focusStateEnabled; + [Parameter] + bool? FocusStateEnabled { + get => isInitialized ? (bool?)DevExpress.Ui.DxValidationSummaryInterop.GetFocusStateEnabled(dxTarget).Result : focusStateEnabled; + set { + if (isInitialized) { + DevExpress.Ui.DxValidationSummaryInterop.SetFocusStateEnabled(dxTarget, value); + } else { + this.focusStateEnabled = value; + } + } + } + string hint; + [Parameter] + string Hint { + get => isInitialized ? (string)DevExpress.Ui.DxValidationSummaryInterop.GetHint(dxTarget).Result : hint; + set { + if (isInitialized) { + DevExpress.Ui.DxValidationSummaryInterop.SetHint(dxTarget, value); + } else { + this.hint = value; + } + } + } + bool? hoverStateEnabled; + [Parameter] + bool? HoverStateEnabled { + get => isInitialized ? (bool?)DevExpress.Ui.DxValidationSummaryInterop.GetHoverStateEnabled(dxTarget).Result : hoverStateEnabled; + set { + if (isInitialized) { + DevExpress.Ui.DxValidationSummaryInterop.SetHoverStateEnabled(dxTarget, value); + } else { + this.hoverStateEnabled = value; + } + } + } + float? tabIndex; + [Parameter] + float? TabIndex { + get => isInitialized ? (float?)DevExpress.Ui.DxValidationSummaryInterop.GetTabIndex(dxTarget).Result : tabIndex; + set { + if (isInitialized) { + DevExpress.Ui.DxValidationSummaryInterop.SetTabIndex(dxTarget, value); + } else { + this.tabIndex = value; + } + } + } + bool? visible; + [Parameter] + bool? Visible { + get => isInitialized ? (bool?)DevExpress.Ui.DxValidationSummaryInterop.GetVisible(dxTarget).Result : visible; + set { + if (isInitialized) { + DevExpress.Ui.DxValidationSummaryInterop.SetVisible(dxTarget, value); + } else { + this.visible = value; + } + } + } + object bindingOptions; + [Parameter] + object BindingOptions { + get => isInitialized ? DevExpress.Ui.DxValidationSummaryInterop.GetBindingOptions(dxTarget).Result : bindingOptions; + set { + if (isInitialized) { + DevExpress.Ui.DxValidationSummaryInterop.SetBindingOptions(dxTarget, value); + } else { + this.bindingOptions = value; + } + } + } + object elementAttr; + [Parameter] + object ElementAttr { + get => isInitialized ? DevExpress.Ui.DxValidationSummaryInterop.GetElementAttr(dxTarget).Result : elementAttr; + set { + if (isInitialized) { + DevExpress.Ui.DxValidationSummaryInterop.SetElementAttr(dxTarget, value); + } else { + this.elementAttr = value; + } + } + } + object height; + [Parameter] + object Height { + get => isInitialized ? DevExpress.Ui.DxValidationSummaryInterop.GetHeight(dxTarget).Result : height; + set { + if (isInitialized) { + DevExpress.Ui.DxValidationSummaryInterop.SetHeight(dxTarget, value); + } else { + this.height = value; + } + } + } + bool? rtlEnabled; + [Parameter] + bool? RtlEnabled { + get => isInitialized ? (bool?)DevExpress.Ui.DxValidationSummaryInterop.GetRtlEnabled(dxTarget).Result : rtlEnabled; + set { + if (isInitialized) { + DevExpress.Ui.DxValidationSummaryInterop.SetRtlEnabled(dxTarget, value); + } else { + this.rtlEnabled = value; + } + } + } + object width; + [Parameter] + object Width { + get => isInitialized ? DevExpress.Ui.DxValidationSummaryInterop.GetWidth(dxTarget).Result : width; + set { + if (isInitialized) { + DevExpress.Ui.DxValidationSummaryInterop.SetWidth(dxTarget, value); + } else { + this.width = value; + } + } + } + bool? onItemClickEnabled; + [Parameter] + bool? OnItemClickEnabled { + get => onItemClickEnabled; + set => this.onItemClickEnabled = value; + } + bool? onItemContextMenuEnabled; + [Parameter] + bool? OnItemContextMenuEnabled { + get => onItemContextMenuEnabled; + set => this.onItemContextMenuEnabled = value; + } + bool? onItemHoldEnabled; + [Parameter] + bool? OnItemHoldEnabled { + get => onItemHoldEnabled; + set => this.onItemHoldEnabled = value; + } + bool? onItemRenderedEnabled; + [Parameter] + bool? OnItemRenderedEnabled { + get => onItemRenderedEnabled; + set => this.onItemRenderedEnabled = value; + } + bool? onSelectionChangedEnabled; + [Parameter] + bool? OnSelectionChangedEnabled { + get => onSelectionChangedEnabled; + set => this.onSelectionChangedEnabled = value; + } + bool? onContentReadyEnabled; + [Parameter] + bool? OnContentReadyEnabled { + get => onContentReadyEnabled; + set => this.onContentReadyEnabled = value; + } + bool? onDisposingEnabled; + [Parameter] + bool? OnDisposingEnabled { + get => onDisposingEnabled; + set => this.onDisposingEnabled = value; + } + bool? onOptionChangedEnabled; + [Parameter] + bool? OnOptionChangedEnabled { + get => onOptionChangedEnabled; + set => this.onOptionChangedEnabled = value; + } + bool? onInitializedEnabled; + [Parameter] + bool? OnInitializedEnabled { + get => onInitializedEnabled; + set => this.onInitializedEnabled = value; + } protected override async Task OnInitAsync() { await base.OnInitAsync(); + DevExpress.Ui.DxValidationSummaryInterop.ItemClick += DxValidationSummary_ItemClick; + DevExpress.Ui.DxValidationSummaryInterop.ItemContextMenu += DxValidationSummary_ItemContextMenu; + DevExpress.Ui.DxValidationSummaryInterop.ItemHold += DxValidationSummary_ItemHold; + DevExpress.Ui.DxValidationSummaryInterop.ItemRendered += DxValidationSummary_ItemRendered; + DevExpress.Ui.DxValidationSummaryInterop.SelectionChanged += DxValidationSummary_SelectionChanged; + DevExpress.Ui.DxValidationSummaryInterop.ContentReady += DxValidationSummary_ContentReady; + DevExpress.Ui.DxValidationSummaryInterop.Disposing += DxValidationSummary_Disposing; + DevExpress.Ui.DxValidationSummaryInterop.OptionChanged += DxValidationSummary_OptionChanged; + DevExpress.Ui.DxValidationSummaryInterop.Initialized += DxValidationSummary_Initialized; + } + [Parameter] + Action ItemClick { get; set; } + void DxValidationSummary_ItemClick(object sender, JQueryEventArgs e) { + if (e.Identifier == Id) { + ItemClick?.Invoke(); + } + } + [Parameter] + Action ItemContextMenu { get; set; } + void DxValidationSummary_ItemContextMenu(object sender, JQueryEventArgs e) { + if (e.Identifier == Id) { + ItemContextMenu?.Invoke(); + } + } + [Parameter] + Action ItemHold { get; set; } + void DxValidationSummary_ItemHold(object sender, JQueryEventArgs e) { + if (e.Identifier == Id) { + ItemHold?.Invoke(); + } + } + [Parameter] + Action ItemRendered { get; set; } + void DxValidationSummary_ItemRendered(object sender, JQueryEventArgs e) { + if (e.Identifier == Id) { + ItemRendered?.Invoke(); + } + } + [Parameter] + Action SelectionChanged { get; set; } + void DxValidationSummary_SelectionChanged(object sender, JQueryEventArgs e) { + if (e.Identifier == Id) { + SelectionChanged?.Invoke(); + } + } + [Parameter] + Action ContentReady { get; set; } + void DxValidationSummary_ContentReady(object sender, JQueryEventArgs e) { + if (e.Identifier == Id) { + ContentReady?.Invoke(); + } + } + [Parameter] + Action Disposing { get; set; } + void DxValidationSummary_Disposing(object sender, JQueryEventArgs e) { + if (e.Identifier == Id) { + Disposing?.Invoke(); + } + } + [Parameter] + Action OptionChanged { get; set; } + void DxValidationSummary_OptionChanged(object sender, JQueryEventArgs e) { + if (e.Identifier == Id) { + OptionChanged?.Invoke(); + } + } + [Parameter] + Action Initialized { get; set; } + void DxValidationSummary_Initialized(object sender, JQueryEventArgs e) { + if (e.Identifier == Id) { + Initialized?.Invoke(); + } } public void Dispose() { + DevExpress.Ui.DxValidationSummaryInterop.ItemClick -= DxValidationSummary_ItemClick; + DevExpress.Ui.DxValidationSummaryInterop.ItemContextMenu -= DxValidationSummary_ItemContextMenu; + DevExpress.Ui.DxValidationSummaryInterop.ItemHold -= DxValidationSummary_ItemHold; + DevExpress.Ui.DxValidationSummaryInterop.ItemRendered -= DxValidationSummary_ItemRendered; + DevExpress.Ui.DxValidationSummaryInterop.SelectionChanged -= DxValidationSummary_SelectionChanged; + DevExpress.Ui.DxValidationSummaryInterop.ContentReady -= DxValidationSummary_ContentReady; + DevExpress.Ui.DxValidationSummaryInterop.Disposing -= DxValidationSummary_Disposing; + DevExpress.Ui.DxValidationSummaryInterop.OptionChanged -= DxValidationSummary_OptionChanged; + DevExpress.Ui.DxValidationSummaryInterop.Initialized -= DxValidationSummary_Initialized; } } diff --git a/sources/BlazorDevExtreme/Components/DxValidator.cshtml b/sources/BlazorDevExtreme/Components/DxValidator.cshtml index a9035b7..4b11a4c 100644 --- a/sources/BlazorDevExtreme/Components/DxValidator.cshtml +++ b/sources/BlazorDevExtreme/Components/DxValidator.cshtml @@ -14,11 +14,19 @@ name = name, validationGroup = validationGroup, validationRules = validationRules, + bindingOptions = bindingOptions, + elementAttr = elementAttr, + height = height, + rtlEnabled = rtlEnabled, + width = width, onValidatedEnabled = onValidatedEnabled, + onDisposingEnabled = onDisposingEnabled, + onOptionChangedEnabled = onOptionChangedEnabled, + onInitializedEnabled = onInitializedEnabled, }; } protected override Task Init(DevExpress.Ui.DxValidatorOptions options) { -return DevExpress.Ui.DxValidatorInterop.Init(dxTarget, options); + return DevExpress.Ui.DxValidatorInterop.Init(dxTarget, options); } object adapter; [Parameter] @@ -35,7 +43,7 @@ return DevExpress.Ui.DxValidatorInterop.Init(dxTarget, options); string name; [Parameter] string Name { - get => isInitialized ? DevExpress.Ui.DxValidatorInterop.GetName(dxTarget).Result : name; + get => isInitialized ? (string)DevExpress.Ui.DxValidatorInterop.GetName(dxTarget).Result : name; set { if (isInitialized) { DevExpress.Ui.DxValidatorInterop.SetName(dxTarget, value); @@ -47,7 +55,7 @@ return DevExpress.Ui.DxValidatorInterop.Init(dxTarget, options); string validationGroup; [Parameter] string ValidationGroup { - get => isInitialized ? DevExpress.Ui.DxValidatorInterop.GetValidationGroup(dxTarget).Result : validationGroup; + get => isInitialized ? (string)DevExpress.Ui.DxValidatorInterop.GetValidationGroup(dxTarget).Result : validationGroup; set { if (isInitialized) { DevExpress.Ui.DxValidatorInterop.SetValidationGroup(dxTarget, value); @@ -68,15 +76,96 @@ return DevExpress.Ui.DxValidatorInterop.Init(dxTarget, options); } } } + object bindingOptions; + [Parameter] + object BindingOptions { + get => isInitialized ? DevExpress.Ui.DxValidatorInterop.GetBindingOptions(dxTarget).Result : bindingOptions; + set { + if (isInitialized) { + DevExpress.Ui.DxValidatorInterop.SetBindingOptions(dxTarget, value); + } else { + this.bindingOptions = value; + } + } + } + object elementAttr; + [Parameter] + object ElementAttr { + get => isInitialized ? DevExpress.Ui.DxValidatorInterop.GetElementAttr(dxTarget).Result : elementAttr; + set { + if (isInitialized) { + DevExpress.Ui.DxValidatorInterop.SetElementAttr(dxTarget, value); + } else { + this.elementAttr = value; + } + } + } + object height; + [Parameter] + object Height { + get => isInitialized ? DevExpress.Ui.DxValidatorInterop.GetHeight(dxTarget).Result : height; + set { + if (isInitialized) { + DevExpress.Ui.DxValidatorInterop.SetHeight(dxTarget, value); + } else { + this.height = value; + } + } + } + bool? rtlEnabled; + [Parameter] + bool? RtlEnabled { + get => isInitialized ? (bool?)DevExpress.Ui.DxValidatorInterop.GetRtlEnabled(dxTarget).Result : rtlEnabled; + set { + if (isInitialized) { + DevExpress.Ui.DxValidatorInterop.SetRtlEnabled(dxTarget, value); + } else { + this.rtlEnabled = value; + } + } + } + object width; + [Parameter] + object Width { + get => isInitialized ? DevExpress.Ui.DxValidatorInterop.GetWidth(dxTarget).Result : width; + set { + if (isInitialized) { + DevExpress.Ui.DxValidatorInterop.SetWidth(dxTarget, value); + } else { + this.width = value; + } + } + } bool? onValidatedEnabled; [Parameter] bool? OnValidatedEnabled { get => onValidatedEnabled; set => this.onValidatedEnabled = value; } + bool? onDisposingEnabled; + [Parameter] + bool? OnDisposingEnabled { + get => onDisposingEnabled; + set => this.onDisposingEnabled = value; + } + bool? onOptionChangedEnabled; + [Parameter] + bool? OnOptionChangedEnabled { + get => onOptionChangedEnabled; + set => this.onOptionChangedEnabled = value; + } + bool? onInitializedEnabled; + [Parameter] + bool? OnInitializedEnabled { + get => onInitializedEnabled; + set => this.onInitializedEnabled = value; + } protected override async Task OnInitAsync() { await base.OnInitAsync(); DevExpress.Ui.DxValidatorInterop.Validated += DxValidator_Validated; + DevExpress.Ui.DxValidatorInterop.Disposing += DxValidator_Disposing; + DevExpress.Ui.DxValidatorInterop.OptionChanged += DxValidator_OptionChanged; + DevExpress.Ui.DxValidatorInterop.Initialized += DxValidator_Initialized; } [Parameter] Action Validated { get; set; } @@ -85,6 +174,27 @@ return DevExpress.Ui.DxValidatorInterop.Init(dxTarget, options); Validated?.Invoke(); } } + [Parameter] + Action Disposing { get; set; } + void DxValidator_Disposing(object sender, JQueryEventArgs e) { + if (e.Identifier == Id) { + Disposing?.Invoke(); + } + } + [Parameter] + Action OptionChanged { get; set; } + void DxValidator_OptionChanged(object sender, JQueryEventArgs e) { + if (e.Identifier == Id) { + OptionChanged?.Invoke(); + } + } + [Parameter] + Action Initialized { get; set; } + void DxValidator_Initialized(object sender, JQueryEventArgs e) { + if (e.Identifier == Id) { + Initialized?.Invoke(); + } + } public void Focus() { DevExpress.Ui.DxValidatorInterop.Focus(dxTarget); } @@ -96,5 +206,8 @@ return DevExpress.Ui.DxValidatorInterop.Init(dxTarget, options); } public void Dispose() { DevExpress.Ui.DxValidatorInterop.Validated -= DxValidator_Validated; + DevExpress.Ui.DxValidatorInterop.Disposing -= DxValidator_Disposing; + DevExpress.Ui.DxValidatorInterop.OptionChanged -= DxValidator_OptionChanged; + DevExpress.Ui.DxValidatorInterop.Initialized -= DxValidator_Initialized; } } diff --git a/sources/BlazorDevExtreme/Components/DxVectorMap.cshtml b/sources/BlazorDevExtreme/Components/DxVectorMap.cshtml index 81f3d26..bbb335d 100644 --- a/sources/BlazorDevExtreme/Components/DxVectorMap.cshtml +++ b/sources/BlazorDevExtreme/Components/DxVectorMap.cshtml @@ -28,6 +28,19 @@ wheelEnabled = wheelEnabled, zoomFactor = zoomFactor, zoomingEnabled = zoomingEnabled, + export = export, + loadingIndicator = loadingIndicator, + margin = margin, + pathModified = pathModified, + redrawOnResize = redrawOnResize, + rtlEnabled = rtlEnabled, + size = size, + theme = theme, + title = title, + bindingOptions = bindingOptions, + elementAttr = elementAttr, + height = height, + width = width, onAreaClickEnabled = onAreaClickEnabled, onAreaSelectionChangedEnabled = onAreaSelectionChangedEnabled, onCenterChangedEnabled = onCenterChangedEnabled, @@ -38,10 +51,18 @@ onTooltipHiddenEnabled = onTooltipHiddenEnabled, onTooltipShownEnabled = onTooltipShownEnabled, onZoomFactorChangedEnabled = onZoomFactorChangedEnabled, + onDrawnEnabled = onDrawnEnabled, + onExportedEnabled = onExportedEnabled, + onExportingEnabled = onExportingEnabled, + onFileSavingEnabled = onFileSavingEnabled, + onIncidentOccurredEnabled = onIncidentOccurredEnabled, + onDisposingEnabled = onDisposingEnabled, + onOptionChangedEnabled = onOptionChangedEnabled, + onInitializedEnabled = onInitializedEnabled, }; } protected override Task Init(DevExpress.Viz.Map.DxVectorMapOptions options) { -return DevExpress.Viz.DxVectorMapInterop.Init(dxTarget, options); + return DevExpress.Viz.DxVectorMapInterop.Init(dxTarget, options); } object areaSettings; [Parameter] @@ -166,7 +187,7 @@ return DevExpress.Viz.DxVectorMapInterop.Init(dxTarget, options); float? maxZoomFactor; [Parameter] float? MaxZoomFactor { - get => isInitialized ? DevExpress.Viz.DxVectorMapInterop.GetMaxZoomFactor(dxTarget).Result : maxZoomFactor; + get => isInitialized ? (float?)DevExpress.Viz.DxVectorMapInterop.GetMaxZoomFactor(dxTarget).Result : maxZoomFactor; set { if (isInitialized) { DevExpress.Viz.DxVectorMapInterop.SetMaxZoomFactor(dxTarget, value); @@ -178,7 +199,7 @@ return DevExpress.Viz.DxVectorMapInterop.Init(dxTarget, options); bool? panningEnabled; [Parameter] bool? PanningEnabled { - get => isInitialized ? DevExpress.Viz.DxVectorMapInterop.GetPanningEnabled(dxTarget).Result : panningEnabled; + get => isInitialized ? (bool?)DevExpress.Viz.DxVectorMapInterop.GetPanningEnabled(dxTarget).Result : panningEnabled; set { if (isInitialized) { DevExpress.Viz.DxVectorMapInterop.SetPanningEnabled(dxTarget, value); @@ -214,7 +235,7 @@ return DevExpress.Viz.DxVectorMapInterop.Init(dxTarget, options); bool? touchEnabled; [Parameter] bool? TouchEnabled { - get => isInitialized ? DevExpress.Viz.DxVectorMapInterop.GetTouchEnabled(dxTarget).Result : touchEnabled; + get => isInitialized ? (bool?)DevExpress.Viz.DxVectorMapInterop.GetTouchEnabled(dxTarget).Result : touchEnabled; set { if (isInitialized) { DevExpress.Viz.DxVectorMapInterop.SetTouchEnabled(dxTarget, value); @@ -226,7 +247,7 @@ return DevExpress.Viz.DxVectorMapInterop.Init(dxTarget, options); bool? wheelEnabled; [Parameter] bool? WheelEnabled { - get => isInitialized ? DevExpress.Viz.DxVectorMapInterop.GetWheelEnabled(dxTarget).Result : wheelEnabled; + get => isInitialized ? (bool?)DevExpress.Viz.DxVectorMapInterop.GetWheelEnabled(dxTarget).Result : wheelEnabled; set { if (isInitialized) { DevExpress.Viz.DxVectorMapInterop.SetWheelEnabled(dxTarget, value); @@ -238,7 +259,7 @@ return DevExpress.Viz.DxVectorMapInterop.Init(dxTarget, options); float? zoomFactor; [Parameter] float? ZoomFactor { - get => isInitialized ? DevExpress.Viz.DxVectorMapInterop.GetZoomFactor(dxTarget).Result : zoomFactor; + get => isInitialized ? (float?)DevExpress.Viz.DxVectorMapInterop.GetZoomFactor(dxTarget).Result : zoomFactor; set { if (isInitialized) { DevExpress.Viz.DxVectorMapInterop.SetZoomFactor(dxTarget, value); @@ -250,7 +271,7 @@ return DevExpress.Viz.DxVectorMapInterop.Init(dxTarget, options); bool? zoomingEnabled; [Parameter] bool? ZoomingEnabled { - get => isInitialized ? DevExpress.Viz.DxVectorMapInterop.GetZoomingEnabled(dxTarget).Result : zoomingEnabled; + get => isInitialized ? (bool?)DevExpress.Viz.DxVectorMapInterop.GetZoomingEnabled(dxTarget).Result : zoomingEnabled; set { if (isInitialized) { DevExpress.Viz.DxVectorMapInterop.SetZoomingEnabled(dxTarget, value); @@ -259,6 +280,162 @@ return DevExpress.Viz.DxVectorMapInterop.Init(dxTarget, options); } } } + object export; + [Parameter] + object Export { + get => isInitialized ? DevExpress.Viz.DxVectorMapInterop.GetExport(dxTarget).Result : export; + set { + if (isInitialized) { + DevExpress.Viz.DxVectorMapInterop.SetExport(dxTarget, value); + } else { + this.export = value; + } + } + } + object loadingIndicator; + [Parameter] + object LoadingIndicator { + get => isInitialized ? DevExpress.Viz.DxVectorMapInterop.GetLoadingIndicator(dxTarget).Result : loadingIndicator; + set { + if (isInitialized) { + DevExpress.Viz.DxVectorMapInterop.SetLoadingIndicator(dxTarget, value); + } else { + this.loadingIndicator = value; + } + } + } + object margin; + [Parameter] + object Margin { + get => isInitialized ? DevExpress.Viz.DxVectorMapInterop.GetMargin(dxTarget).Result : margin; + set { + if (isInitialized) { + DevExpress.Viz.DxVectorMapInterop.SetMargin(dxTarget, value); + } else { + this.margin = value; + } + } + } + bool? pathModified; + [Parameter] + bool? PathModified { + get => isInitialized ? (bool?)DevExpress.Viz.DxVectorMapInterop.GetPathModified(dxTarget).Result : pathModified; + set { + if (isInitialized) { + DevExpress.Viz.DxVectorMapInterop.SetPathModified(dxTarget, value); + } else { + this.pathModified = value; + } + } + } + bool? redrawOnResize; + [Parameter] + bool? RedrawOnResize { + get => isInitialized ? (bool?)DevExpress.Viz.DxVectorMapInterop.GetRedrawOnResize(dxTarget).Result : redrawOnResize; + set { + if (isInitialized) { + DevExpress.Viz.DxVectorMapInterop.SetRedrawOnResize(dxTarget, value); + } else { + this.redrawOnResize = value; + } + } + } + bool? rtlEnabled; + [Parameter] + bool? RtlEnabled { + get => isInitialized ? (bool?)DevExpress.Viz.DxVectorMapInterop.GetRtlEnabled(dxTarget).Result : rtlEnabled; + set { + if (isInitialized) { + DevExpress.Viz.DxVectorMapInterop.SetRtlEnabled(dxTarget, value); + } else { + this.rtlEnabled = value; + } + } + } + object size; + [Parameter] + object Size { + get => isInitialized ? DevExpress.Viz.DxVectorMapInterop.GetSize(dxTarget).Result : size; + set { + if (isInitialized) { + DevExpress.Viz.DxVectorMapInterop.SetSize(dxTarget, value); + } else { + this.size = value; + } + } + } + string theme; + [Parameter] + string Theme { + get => isInitialized ? (string)DevExpress.Viz.DxVectorMapInterop.GetTheme(dxTarget).Result : theme; + set { + if (isInitialized) { + DevExpress.Viz.DxVectorMapInterop.SetTheme(dxTarget, value); + } else { + this.theme = value; + } + } + } + object title; + [Parameter] + object Title { + get => isInitialized ? DevExpress.Viz.DxVectorMapInterop.GetTitle(dxTarget).Result : title; + set { + if (isInitialized) { + DevExpress.Viz.DxVectorMapInterop.SetTitle(dxTarget, value); + } else { + this.title = value; + } + } + } + object bindingOptions; + [Parameter] + object BindingOptions { + get => isInitialized ? DevExpress.Viz.DxVectorMapInterop.GetBindingOptions(dxTarget).Result : bindingOptions; + set { + if (isInitialized) { + DevExpress.Viz.DxVectorMapInterop.SetBindingOptions(dxTarget, value); + } else { + this.bindingOptions = value; + } + } + } + object elementAttr; + [Parameter] + object ElementAttr { + get => isInitialized ? DevExpress.Viz.DxVectorMapInterop.GetElementAttr(dxTarget).Result : elementAttr; + set { + if (isInitialized) { + DevExpress.Viz.DxVectorMapInterop.SetElementAttr(dxTarget, value); + } else { + this.elementAttr = value; + } + } + } + object height; + [Parameter] + object Height { + get => isInitialized ? DevExpress.Viz.DxVectorMapInterop.GetHeight(dxTarget).Result : height; + set { + if (isInitialized) { + DevExpress.Viz.DxVectorMapInterop.SetHeight(dxTarget, value); + } else { + this.height = value; + } + } + } + object width; + [Parameter] + object Width { + get => isInitialized ? DevExpress.Viz.DxVectorMapInterop.GetWidth(dxTarget).Result : width; + set { + if (isInitialized) { + DevExpress.Viz.DxVectorMapInterop.SetWidth(dxTarget, value); + } else { + this.width = value; + } + } + } bool? onAreaClickEnabled; [Parameter] bool? OnAreaClickEnabled { @@ -319,6 +496,54 @@ return DevExpress.Viz.DxVectorMapInterop.Init(dxTarget, options); get => onZoomFactorChangedEnabled; set => this.onZoomFactorChangedEnabled = value; } + bool? onDrawnEnabled; + [Parameter] + bool? OnDrawnEnabled { + get => onDrawnEnabled; + set => this.onDrawnEnabled = value; + } + bool? onExportedEnabled; + [Parameter] + bool? OnExportedEnabled { + get => onExportedEnabled; + set => this.onExportedEnabled = value; + } + bool? onExportingEnabled; + [Parameter] + bool? OnExportingEnabled { + get => onExportingEnabled; + set => this.onExportingEnabled = value; + } + bool? onFileSavingEnabled; + [Parameter] + bool? OnFileSavingEnabled { + get => onFileSavingEnabled; + set => this.onFileSavingEnabled = value; + } + bool? onIncidentOccurredEnabled; + [Parameter] + bool? OnIncidentOccurredEnabled { + get => onIncidentOccurredEnabled; + set => this.onIncidentOccurredEnabled = value; + } + bool? onDisposingEnabled; + [Parameter] + bool? OnDisposingEnabled { + get => onDisposingEnabled; + set => this.onDisposingEnabled = value; + } + bool? onOptionChangedEnabled; + [Parameter] + bool? OnOptionChangedEnabled { + get => onOptionChangedEnabled; + set => this.onOptionChangedEnabled = value; + } + bool? onInitializedEnabled; + [Parameter] + bool? OnInitializedEnabled { + get => onInitializedEnabled; + set => this.onInitializedEnabled = value; + } protected override async Task OnInitAsync() { await base.OnInitAsync(); DevExpress.Viz.DxVectorMapInterop.AreaClick += DxVectorMap_AreaClick; @@ -331,6 +556,14 @@ return DevExpress.Viz.DxVectorMapInterop.Init(dxTarget, options); DevExpress.Viz.DxVectorMapInterop.TooltipHidden += DxVectorMap_TooltipHidden; DevExpress.Viz.DxVectorMapInterop.TooltipShown += DxVectorMap_TooltipShown; DevExpress.Viz.DxVectorMapInterop.ZoomFactorChanged += DxVectorMap_ZoomFactorChanged; + DevExpress.Viz.DxVectorMapInterop.Drawn += DxVectorMap_Drawn; + DevExpress.Viz.DxVectorMapInterop.Exported += DxVectorMap_Exported; + DevExpress.Viz.DxVectorMapInterop.Exporting += DxVectorMap_Exporting; + DevExpress.Viz.DxVectorMapInterop.FileSaving += DxVectorMap_FileSaving; + DevExpress.Viz.DxVectorMapInterop.IncidentOccurred += DxVectorMap_IncidentOccurred; + DevExpress.Viz.DxVectorMapInterop.Disposing += DxVectorMap_Disposing; + DevExpress.Viz.DxVectorMapInterop.OptionChanged += DxVectorMap_OptionChanged; + DevExpress.Viz.DxVectorMapInterop.Initialized += DxVectorMap_Initialized; } [Parameter] Action AreaClick { get; set; } @@ -402,6 +635,62 @@ return DevExpress.Viz.DxVectorMapInterop.Init(dxTarget, options); ZoomFactorChanged?.Invoke(); } } + [Parameter] + Action Drawn { get; set; } + void DxVectorMap_Drawn(object sender, JQueryEventArgs e) { + if (e.Identifier == Id) { + Drawn?.Invoke(); + } + } + [Parameter] + Action Exported { get; set; } + void DxVectorMap_Exported(object sender, JQueryEventArgs e) { + if (e.Identifier == Id) { + Exported?.Invoke(); + } + } + [Parameter] + Action Exporting { get; set; } + void DxVectorMap_Exporting(object sender, JQueryEventArgs e) { + if (e.Identifier == Id) { + Exporting?.Invoke(); + } + } + [Parameter] + Action FileSaving { get; set; } + void DxVectorMap_FileSaving(object sender, JQueryEventArgs e) { + if (e.Identifier == Id) { + FileSaving?.Invoke(); + } + } + [Parameter] + Action IncidentOccurred { get; set; } + void DxVectorMap_IncidentOccurred(object sender, JQueryEventArgs e) { + if (e.Identifier == Id) { + IncidentOccurred?.Invoke(); + } + } + [Parameter] + Action Disposing { get; set; } + void DxVectorMap_Disposing(object sender, JQueryEventArgs e) { + if (e.Identifier == Id) { + Disposing?.Invoke(); + } + } + [Parameter] + Action OptionChanged { get; set; } + void DxVectorMap_OptionChanged(object sender, JQueryEventArgs e) { + if (e.Identifier == Id) { + OptionChanged?.Invoke(); + } + } + [Parameter] + Action Initialized { get; set; } + void DxVectorMap_Initialized(object sender, JQueryEventArgs e) { + if (e.Identifier == Id) { + Initialized?.Invoke(); + } + } public object CenterEx() { return DevExpress.Viz.DxVectorMapInterop.CenterEx(dxTarget).Result; } @@ -458,5 +747,13 @@ return DevExpress.Viz.DxVectorMapInterop.Init(dxTarget, options); DevExpress.Viz.DxVectorMapInterop.TooltipHidden -= DxVectorMap_TooltipHidden; DevExpress.Viz.DxVectorMapInterop.TooltipShown -= DxVectorMap_TooltipShown; DevExpress.Viz.DxVectorMapInterop.ZoomFactorChanged -= DxVectorMap_ZoomFactorChanged; + DevExpress.Viz.DxVectorMapInterop.Drawn -= DxVectorMap_Drawn; + DevExpress.Viz.DxVectorMapInterop.Exported -= DxVectorMap_Exported; + DevExpress.Viz.DxVectorMapInterop.Exporting -= DxVectorMap_Exporting; + DevExpress.Viz.DxVectorMapInterop.FileSaving -= DxVectorMap_FileSaving; + DevExpress.Viz.DxVectorMapInterop.IncidentOccurred -= DxVectorMap_IncidentOccurred; + DevExpress.Viz.DxVectorMapInterop.Disposing -= DxVectorMap_Disposing; + DevExpress.Viz.DxVectorMapInterop.OptionChanged -= DxVectorMap_OptionChanged; + DevExpress.Viz.DxVectorMapInterop.Initialized -= DxVectorMap_Initialized; } } diff --git a/sources/BlazorDevExtreme/Components/Editor.cshtml b/sources/BlazorDevExtreme/Components/Editor.cshtml index 504d29b..69906dd 100644 --- a/sources/BlazorDevExtreme/Components/Editor.cshtml +++ b/sources/BlazorDevExtreme/Components/Editor.cshtml @@ -15,16 +15,33 @@ validationError = validationError, validationMessageMode = validationMessageMode, value = value, + accessKey = accessKey, + activeStateEnabled = activeStateEnabled, + disabled = disabled, + focusStateEnabled = focusStateEnabled, + hint = hint, + hoverStateEnabled = hoverStateEnabled, + tabIndex = tabIndex, + visible = visible, + bindingOptions = bindingOptions, + elementAttr = elementAttr, + height = height, + rtlEnabled = rtlEnabled, + width = width, onValueChangedEnabled = onValueChangedEnabled, + onContentReadyEnabled = onContentReadyEnabled, + onDisposingEnabled = onDisposingEnabled, + onOptionChangedEnabled = onOptionChangedEnabled, + onInitializedEnabled = onInitializedEnabled, }; } protected override Task Init(DevExpress.Ui.EditorOptions options) { -return DevExpress.Ui.EditorInterop.Init(dxTarget, options); + return DevExpress.Ui.EditorInterop.Init(dxTarget, options); } bool? isValid; [Parameter] bool? IsValid { - get => isInitialized ? DevExpress.Ui.EditorInterop.GetIsValid(dxTarget).Result : isValid; + get => isInitialized ? (bool?)DevExpress.Ui.EditorInterop.GetIsValid(dxTarget).Result : isValid; set { if (isInitialized) { DevExpress.Ui.EditorInterop.SetIsValid(dxTarget, value); @@ -36,7 +53,7 @@ return DevExpress.Ui.EditorInterop.Init(dxTarget, options); bool? readOnly; [Parameter] bool? ReadOnly { - get => isInitialized ? DevExpress.Ui.EditorInterop.GetReadOnly(dxTarget).Result : readOnly; + get => isInitialized ? (bool?)DevExpress.Ui.EditorInterop.GetReadOnly(dxTarget).Result : readOnly; set { if (isInitialized) { DevExpress.Ui.EditorInterop.SetReadOnly(dxTarget, value); @@ -60,7 +77,7 @@ return DevExpress.Ui.EditorInterop.Init(dxTarget, options); string validationMessageMode; [Parameter] string ValidationMessageMode { - get => isInitialized ? DevExpress.Ui.EditorInterop.GetValidationMessageMode(dxTarget).Result : validationMessageMode; + get => isInitialized ? (string)DevExpress.Ui.EditorInterop.GetValidationMessageMode(dxTarget).Result : validationMessageMode; set { if (isInitialized) { DevExpress.Ui.EditorInterop.SetValidationMessageMode(dxTarget, value); @@ -81,15 +98,199 @@ return DevExpress.Ui.EditorInterop.Init(dxTarget, options); } } } + string accessKey; + [Parameter] + string AccessKey { + get => isInitialized ? (string)DevExpress.Ui.EditorInterop.GetAccessKey(dxTarget).Result : accessKey; + set { + if (isInitialized) { + DevExpress.Ui.EditorInterop.SetAccessKey(dxTarget, value); + } else { + this.accessKey = value; + } + } + } + bool? activeStateEnabled; + [Parameter] + bool? ActiveStateEnabled { + get => isInitialized ? (bool?)DevExpress.Ui.EditorInterop.GetActiveStateEnabled(dxTarget).Result : activeStateEnabled; + set { + if (isInitialized) { + DevExpress.Ui.EditorInterop.SetActiveStateEnabled(dxTarget, value); + } else { + this.activeStateEnabled = value; + } + } + } + bool? disabled; + [Parameter] + bool? Disabled { + get => isInitialized ? (bool?)DevExpress.Ui.EditorInterop.GetDisabled(dxTarget).Result : disabled; + set { + if (isInitialized) { + DevExpress.Ui.EditorInterop.SetDisabled(dxTarget, value); + } else { + this.disabled = value; + } + } + } + bool? focusStateEnabled; + [Parameter] + bool? FocusStateEnabled { + get => isInitialized ? (bool?)DevExpress.Ui.EditorInterop.GetFocusStateEnabled(dxTarget).Result : focusStateEnabled; + set { + if (isInitialized) { + DevExpress.Ui.EditorInterop.SetFocusStateEnabled(dxTarget, value); + } else { + this.focusStateEnabled = value; + } + } + } + string hint; + [Parameter] + string Hint { + get => isInitialized ? (string)DevExpress.Ui.EditorInterop.GetHint(dxTarget).Result : hint; + set { + if (isInitialized) { + DevExpress.Ui.EditorInterop.SetHint(dxTarget, value); + } else { + this.hint = value; + } + } + } + bool? hoverStateEnabled; + [Parameter] + bool? HoverStateEnabled { + get => isInitialized ? (bool?)DevExpress.Ui.EditorInterop.GetHoverStateEnabled(dxTarget).Result : hoverStateEnabled; + set { + if (isInitialized) { + DevExpress.Ui.EditorInterop.SetHoverStateEnabled(dxTarget, value); + } else { + this.hoverStateEnabled = value; + } + } + } + float? tabIndex; + [Parameter] + float? TabIndex { + get => isInitialized ? (float?)DevExpress.Ui.EditorInterop.GetTabIndex(dxTarget).Result : tabIndex; + set { + if (isInitialized) { + DevExpress.Ui.EditorInterop.SetTabIndex(dxTarget, value); + } else { + this.tabIndex = value; + } + } + } + bool? visible; + [Parameter] + bool? Visible { + get => isInitialized ? (bool?)DevExpress.Ui.EditorInterop.GetVisible(dxTarget).Result : visible; + set { + if (isInitialized) { + DevExpress.Ui.EditorInterop.SetVisible(dxTarget, value); + } else { + this.visible = value; + } + } + } + object bindingOptions; + [Parameter] + object BindingOptions { + get => isInitialized ? DevExpress.Ui.EditorInterop.GetBindingOptions(dxTarget).Result : bindingOptions; + set { + if (isInitialized) { + DevExpress.Ui.EditorInterop.SetBindingOptions(dxTarget, value); + } else { + this.bindingOptions = value; + } + } + } + object elementAttr; + [Parameter] + object ElementAttr { + get => isInitialized ? DevExpress.Ui.EditorInterop.GetElementAttr(dxTarget).Result : elementAttr; + set { + if (isInitialized) { + DevExpress.Ui.EditorInterop.SetElementAttr(dxTarget, value); + } else { + this.elementAttr = value; + } + } + } + object height; + [Parameter] + object Height { + get => isInitialized ? DevExpress.Ui.EditorInterop.GetHeight(dxTarget).Result : height; + set { + if (isInitialized) { + DevExpress.Ui.EditorInterop.SetHeight(dxTarget, value); + } else { + this.height = value; + } + } + } + bool? rtlEnabled; + [Parameter] + bool? RtlEnabled { + get => isInitialized ? (bool?)DevExpress.Ui.EditorInterop.GetRtlEnabled(dxTarget).Result : rtlEnabled; + set { + if (isInitialized) { + DevExpress.Ui.EditorInterop.SetRtlEnabled(dxTarget, value); + } else { + this.rtlEnabled = value; + } + } + } + object width; + [Parameter] + object Width { + get => isInitialized ? DevExpress.Ui.EditorInterop.GetWidth(dxTarget).Result : width; + set { + if (isInitialized) { + DevExpress.Ui.EditorInterop.SetWidth(dxTarget, value); + } else { + this.width = value; + } + } + } bool? onValueChangedEnabled; [Parameter] bool? OnValueChangedEnabled { get => onValueChangedEnabled; set => this.onValueChangedEnabled = value; } + bool? onContentReadyEnabled; + [Parameter] + bool? OnContentReadyEnabled { + get => onContentReadyEnabled; + set => this.onContentReadyEnabled = value; + } + bool? onDisposingEnabled; + [Parameter] + bool? OnDisposingEnabled { + get => onDisposingEnabled; + set => this.onDisposingEnabled = value; + } + bool? onOptionChangedEnabled; + [Parameter] + bool? OnOptionChangedEnabled { + get => onOptionChangedEnabled; + set => this.onOptionChangedEnabled = value; + } + bool? onInitializedEnabled; + [Parameter] + bool? OnInitializedEnabled { + get => onInitializedEnabled; + set => this.onInitializedEnabled = value; + } protected override async Task OnInitAsync() { await base.OnInitAsync(); DevExpress.Ui.EditorInterop.ValueChanged += Editor_ValueChanged; + DevExpress.Ui.EditorInterop.ContentReady += Editor_ContentReady; + DevExpress.Ui.EditorInterop.Disposing += Editor_Disposing; + DevExpress.Ui.EditorInterop.OptionChanged += Editor_OptionChanged; + DevExpress.Ui.EditorInterop.Initialized += Editor_Initialized; } [Parameter] Action ValueChanged { get; set; } @@ -98,10 +299,42 @@ return DevExpress.Ui.EditorInterop.Init(dxTarget, options); ValueChanged?.Invoke(); } } + [Parameter] + Action ContentReady { get; set; } + void Editor_ContentReady(object sender, JQueryEventArgs e) { + if (e.Identifier == Id) { + ContentReady?.Invoke(); + } + } + [Parameter] + Action Disposing { get; set; } + void Editor_Disposing(object sender, JQueryEventArgs e) { + if (e.Identifier == Id) { + Disposing?.Invoke(); + } + } + [Parameter] + Action OptionChanged { get; set; } + void Editor_OptionChanged(object sender, JQueryEventArgs e) { + if (e.Identifier == Id) { + OptionChanged?.Invoke(); + } + } + [Parameter] + Action Initialized { get; set; } + void Editor_Initialized(object sender, JQueryEventArgs e) { + if (e.Identifier == Id) { + Initialized?.Invoke(); + } + } public void Reset() { DevExpress.Ui.EditorInterop.Reset(dxTarget); } public void Dispose() { DevExpress.Ui.EditorInterop.ValueChanged -= Editor_ValueChanged; + DevExpress.Ui.EditorInterop.ContentReady -= Editor_ContentReady; + DevExpress.Ui.EditorInterop.Disposing -= Editor_Disposing; + DevExpress.Ui.EditorInterop.OptionChanged -= Editor_OptionChanged; + DevExpress.Ui.EditorInterop.Initialized -= Editor_Initialized; } } diff --git a/sources/BlazorDevExtreme/Components/GridBase.cshtml b/sources/BlazorDevExtreme/Components/GridBase.cshtml index 501b48c..79c7144 100644 --- a/sources/BlazorDevExtreme/Components/GridBase.cshtml +++ b/sources/BlazorDevExtreme/Components/GridBase.cshtml @@ -50,6 +50,19 @@ stateStoring = stateStoring, twoWayBindingEnabled = twoWayBindingEnabled, wordWrapEnabled = wordWrapEnabled, + accessKey = accessKey, + activeStateEnabled = activeStateEnabled, + disabled = disabled, + focusStateEnabled = focusStateEnabled, + hint = hint, + hoverStateEnabled = hoverStateEnabled, + tabIndex = tabIndex, + visible = visible, + bindingOptions = bindingOptions, + elementAttr = elementAttr, + height = height, + rtlEnabled = rtlEnabled, + width = width, onAdaptiveDetailRowPreparingEnabled = onAdaptiveDetailRowPreparingEnabled, onDataErrorOccurredEnabled = onDataErrorOccurredEnabled, onInitNewRowEnabled = onInitNewRowEnabled, @@ -67,15 +80,19 @@ onRowValidatingEnabled = onRowValidatingEnabled, onSelectionChangedEnabled = onSelectionChangedEnabled, onToolbarPreparingEnabled = onToolbarPreparingEnabled, + onContentReadyEnabled = onContentReadyEnabled, + onDisposingEnabled = onDisposingEnabled, + onOptionChangedEnabled = onOptionChangedEnabled, + onInitializedEnabled = onInitializedEnabled, }; } protected override Task Init(DevExpress.Ui.GridBaseOptions options) { -return DevExpress.Ui.GridBaseInterop.Init(dxTarget, options); + return DevExpress.Ui.GridBaseInterop.Init(dxTarget, options); } bool? allowColumnReordering; [Parameter] bool? AllowColumnReordering { - get => isInitialized ? DevExpress.Ui.GridBaseInterop.GetAllowColumnReordering(dxTarget).Result : allowColumnReordering; + get => isInitialized ? (bool?)DevExpress.Ui.GridBaseInterop.GetAllowColumnReordering(dxTarget).Result : allowColumnReordering; set { if (isInitialized) { DevExpress.Ui.GridBaseInterop.SetAllowColumnReordering(dxTarget, value); @@ -87,7 +104,7 @@ return DevExpress.Ui.GridBaseInterop.Init(dxTarget, options); bool? allowColumnResizing; [Parameter] bool? AllowColumnResizing { - get => isInitialized ? DevExpress.Ui.GridBaseInterop.GetAllowColumnResizing(dxTarget).Result : allowColumnResizing; + get => isInitialized ? (bool?)DevExpress.Ui.GridBaseInterop.GetAllowColumnResizing(dxTarget).Result : allowColumnResizing; set { if (isInitialized) { DevExpress.Ui.GridBaseInterop.SetAllowColumnResizing(dxTarget, value); @@ -99,7 +116,7 @@ return DevExpress.Ui.GridBaseInterop.Init(dxTarget, options); bool? cacheEnabled; [Parameter] bool? CacheEnabled { - get => isInitialized ? DevExpress.Ui.GridBaseInterop.GetCacheEnabled(dxTarget).Result : cacheEnabled; + get => isInitialized ? (bool?)DevExpress.Ui.GridBaseInterop.GetCacheEnabled(dxTarget).Result : cacheEnabled; set { if (isInitialized) { DevExpress.Ui.GridBaseInterop.SetCacheEnabled(dxTarget, value); @@ -111,7 +128,7 @@ return DevExpress.Ui.GridBaseInterop.Init(dxTarget, options); bool? cellHintEnabled; [Parameter] bool? CellHintEnabled { - get => isInitialized ? DevExpress.Ui.GridBaseInterop.GetCellHintEnabled(dxTarget).Result : cellHintEnabled; + get => isInitialized ? (bool?)DevExpress.Ui.GridBaseInterop.GetCellHintEnabled(dxTarget).Result : cellHintEnabled; set { if (isInitialized) { DevExpress.Ui.GridBaseInterop.SetCellHintEnabled(dxTarget, value); @@ -123,7 +140,7 @@ return DevExpress.Ui.GridBaseInterop.Init(dxTarget, options); bool? columnAutoWidth; [Parameter] bool? ColumnAutoWidth { - get => isInitialized ? DevExpress.Ui.GridBaseInterop.GetColumnAutoWidth(dxTarget).Result : columnAutoWidth; + get => isInitialized ? (bool?)DevExpress.Ui.GridBaseInterop.GetColumnAutoWidth(dxTarget).Result : columnAutoWidth; set { if (isInitialized) { DevExpress.Ui.GridBaseInterop.SetColumnAutoWidth(dxTarget, value); @@ -159,7 +176,7 @@ return DevExpress.Ui.GridBaseInterop.Init(dxTarget, options); bool? columnHidingEnabled; [Parameter] bool? ColumnHidingEnabled { - get => isInitialized ? DevExpress.Ui.GridBaseInterop.GetColumnHidingEnabled(dxTarget).Result : columnHidingEnabled; + get => isInitialized ? (bool?)DevExpress.Ui.GridBaseInterop.GetColumnHidingEnabled(dxTarget).Result : columnHidingEnabled; set { if (isInitialized) { DevExpress.Ui.GridBaseInterop.SetColumnHidingEnabled(dxTarget, value); @@ -171,7 +188,7 @@ return DevExpress.Ui.GridBaseInterop.Init(dxTarget, options); float? columnMinWidth; [Parameter] float? ColumnMinWidth { - get => isInitialized ? DevExpress.Ui.GridBaseInterop.GetColumnMinWidth(dxTarget).Result : columnMinWidth; + get => isInitialized ? (float?)DevExpress.Ui.GridBaseInterop.GetColumnMinWidth(dxTarget).Result : columnMinWidth; set { if (isInitialized) { DevExpress.Ui.GridBaseInterop.SetColumnMinWidth(dxTarget, value); @@ -183,7 +200,7 @@ return DevExpress.Ui.GridBaseInterop.Init(dxTarget, options); string columnResizingMode; [Parameter] string ColumnResizingMode { - get => isInitialized ? DevExpress.Ui.GridBaseInterop.GetColumnResizingMode(dxTarget).Result : columnResizingMode; + get => isInitialized ? (string)DevExpress.Ui.GridBaseInterop.GetColumnResizingMode(dxTarget).Result : columnResizingMode; set { if (isInitialized) { DevExpress.Ui.GridBaseInterop.SetColumnResizingMode(dxTarget, value); @@ -207,7 +224,7 @@ return DevExpress.Ui.GridBaseInterop.Init(dxTarget, options); float? columnWidth; [Parameter] float? ColumnWidth { - get => isInitialized ? DevExpress.Ui.GridBaseInterop.GetColumnWidth(dxTarget).Result : columnWidth; + get => isInitialized ? (float?)DevExpress.Ui.GridBaseInterop.GetColumnWidth(dxTarget).Result : columnWidth; set { if (isInitialized) { DevExpress.Ui.GridBaseInterop.SetColumnWidth(dxTarget, value); @@ -231,7 +248,7 @@ return DevExpress.Ui.GridBaseInterop.Init(dxTarget, options); string dateSerializationFormat; [Parameter] string DateSerializationFormat { - get => isInitialized ? DevExpress.Ui.GridBaseInterop.GetDateSerializationFormat(dxTarget).Result : dateSerializationFormat; + get => isInitialized ? (string)DevExpress.Ui.GridBaseInterop.GetDateSerializationFormat(dxTarget).Result : dateSerializationFormat; set { if (isInitialized) { DevExpress.Ui.GridBaseInterop.SetDateSerializationFormat(dxTarget, value); @@ -255,7 +272,7 @@ return DevExpress.Ui.GridBaseInterop.Init(dxTarget, options); bool? errorRowEnabled; [Parameter] bool? ErrorRowEnabled { - get => isInitialized ? DevExpress.Ui.GridBaseInterop.GetErrorRowEnabled(dxTarget).Result : errorRowEnabled; + get => isInitialized ? (bool?)DevExpress.Ui.GridBaseInterop.GetErrorRowEnabled(dxTarget).Result : errorRowEnabled; set { if (isInitialized) { DevExpress.Ui.GridBaseInterop.SetErrorRowEnabled(dxTarget, value); @@ -363,7 +380,7 @@ return DevExpress.Ui.GridBaseInterop.Init(dxTarget, options); string noDataText; [Parameter] string NoDataText { - get => isInitialized ? DevExpress.Ui.GridBaseInterop.GetNoDataText(dxTarget).Result : noDataText; + get => isInitialized ? (string)DevExpress.Ui.GridBaseInterop.GetNoDataText(dxTarget).Result : noDataText; set { if (isInitialized) { DevExpress.Ui.GridBaseInterop.SetNoDataText(dxTarget, value); @@ -399,7 +416,7 @@ return DevExpress.Ui.GridBaseInterop.Init(dxTarget, options); bool? rowAlternationEnabled; [Parameter] bool? RowAlternationEnabled { - get => isInitialized ? DevExpress.Ui.GridBaseInterop.GetRowAlternationEnabled(dxTarget).Result : rowAlternationEnabled; + get => isInitialized ? (bool?)DevExpress.Ui.GridBaseInterop.GetRowAlternationEnabled(dxTarget).Result : rowAlternationEnabled; set { if (isInitialized) { DevExpress.Ui.GridBaseInterop.SetRowAlternationEnabled(dxTarget, value); @@ -459,7 +476,7 @@ return DevExpress.Ui.GridBaseInterop.Init(dxTarget, options); bool? showBorders; [Parameter] bool? ShowBorders { - get => isInitialized ? DevExpress.Ui.GridBaseInterop.GetShowBorders(dxTarget).Result : showBorders; + get => isInitialized ? (bool?)DevExpress.Ui.GridBaseInterop.GetShowBorders(dxTarget).Result : showBorders; set { if (isInitialized) { DevExpress.Ui.GridBaseInterop.SetShowBorders(dxTarget, value); @@ -471,7 +488,7 @@ return DevExpress.Ui.GridBaseInterop.Init(dxTarget, options); bool? showColumnHeaders; [Parameter] bool? ShowColumnHeaders { - get => isInitialized ? DevExpress.Ui.GridBaseInterop.GetShowColumnHeaders(dxTarget).Result : showColumnHeaders; + get => isInitialized ? (bool?)DevExpress.Ui.GridBaseInterop.GetShowColumnHeaders(dxTarget).Result : showColumnHeaders; set { if (isInitialized) { DevExpress.Ui.GridBaseInterop.SetShowColumnHeaders(dxTarget, value); @@ -483,7 +500,7 @@ return DevExpress.Ui.GridBaseInterop.Init(dxTarget, options); bool? showColumnLines; [Parameter] bool? ShowColumnLines { - get => isInitialized ? DevExpress.Ui.GridBaseInterop.GetShowColumnLines(dxTarget).Result : showColumnLines; + get => isInitialized ? (bool?)DevExpress.Ui.GridBaseInterop.GetShowColumnLines(dxTarget).Result : showColumnLines; set { if (isInitialized) { DevExpress.Ui.GridBaseInterop.SetShowColumnLines(dxTarget, value); @@ -495,7 +512,7 @@ return DevExpress.Ui.GridBaseInterop.Init(dxTarget, options); bool? showRowLines; [Parameter] bool? ShowRowLines { - get => isInitialized ? DevExpress.Ui.GridBaseInterop.GetShowRowLines(dxTarget).Result : showRowLines; + get => isInitialized ? (bool?)DevExpress.Ui.GridBaseInterop.GetShowRowLines(dxTarget).Result : showRowLines; set { if (isInitialized) { DevExpress.Ui.GridBaseInterop.SetShowRowLines(dxTarget, value); @@ -531,7 +548,7 @@ return DevExpress.Ui.GridBaseInterop.Init(dxTarget, options); bool? twoWayBindingEnabled; [Parameter] bool? TwoWayBindingEnabled { - get => isInitialized ? DevExpress.Ui.GridBaseInterop.GetTwoWayBindingEnabled(dxTarget).Result : twoWayBindingEnabled; + get => isInitialized ? (bool?)DevExpress.Ui.GridBaseInterop.GetTwoWayBindingEnabled(dxTarget).Result : twoWayBindingEnabled; set { if (isInitialized) { DevExpress.Ui.GridBaseInterop.SetTwoWayBindingEnabled(dxTarget, value); @@ -543,7 +560,7 @@ return DevExpress.Ui.GridBaseInterop.Init(dxTarget, options); bool? wordWrapEnabled; [Parameter] bool? WordWrapEnabled { - get => isInitialized ? DevExpress.Ui.GridBaseInterop.GetWordWrapEnabled(dxTarget).Result : wordWrapEnabled; + get => isInitialized ? (bool?)DevExpress.Ui.GridBaseInterop.GetWordWrapEnabled(dxTarget).Result : wordWrapEnabled; set { if (isInitialized) { DevExpress.Ui.GridBaseInterop.SetWordWrapEnabled(dxTarget, value); @@ -552,6 +569,162 @@ return DevExpress.Ui.GridBaseInterop.Init(dxTarget, options); } } } + string accessKey; + [Parameter] + string AccessKey { + get => isInitialized ? (string)DevExpress.Ui.GridBaseInterop.GetAccessKey(dxTarget).Result : accessKey; + set { + if (isInitialized) { + DevExpress.Ui.GridBaseInterop.SetAccessKey(dxTarget, value); + } else { + this.accessKey = value; + } + } + } + bool? activeStateEnabled; + [Parameter] + bool? ActiveStateEnabled { + get => isInitialized ? (bool?)DevExpress.Ui.GridBaseInterop.GetActiveStateEnabled(dxTarget).Result : activeStateEnabled; + set { + if (isInitialized) { + DevExpress.Ui.GridBaseInterop.SetActiveStateEnabled(dxTarget, value); + } else { + this.activeStateEnabled = value; + } + } + } + bool? disabled; + [Parameter] + bool? Disabled { + get => isInitialized ? (bool?)DevExpress.Ui.GridBaseInterop.GetDisabled(dxTarget).Result : disabled; + set { + if (isInitialized) { + DevExpress.Ui.GridBaseInterop.SetDisabled(dxTarget, value); + } else { + this.disabled = value; + } + } + } + bool? focusStateEnabled; + [Parameter] + bool? FocusStateEnabled { + get => isInitialized ? (bool?)DevExpress.Ui.GridBaseInterop.GetFocusStateEnabled(dxTarget).Result : focusStateEnabled; + set { + if (isInitialized) { + DevExpress.Ui.GridBaseInterop.SetFocusStateEnabled(dxTarget, value); + } else { + this.focusStateEnabled = value; + } + } + } + string hint; + [Parameter] + string Hint { + get => isInitialized ? (string)DevExpress.Ui.GridBaseInterop.GetHint(dxTarget).Result : hint; + set { + if (isInitialized) { + DevExpress.Ui.GridBaseInterop.SetHint(dxTarget, value); + } else { + this.hint = value; + } + } + } + bool? hoverStateEnabled; + [Parameter] + bool? HoverStateEnabled { + get => isInitialized ? (bool?)DevExpress.Ui.GridBaseInterop.GetHoverStateEnabled(dxTarget).Result : hoverStateEnabled; + set { + if (isInitialized) { + DevExpress.Ui.GridBaseInterop.SetHoverStateEnabled(dxTarget, value); + } else { + this.hoverStateEnabled = value; + } + } + } + float? tabIndex; + [Parameter] + float? TabIndex { + get => isInitialized ? (float?)DevExpress.Ui.GridBaseInterop.GetTabIndex(dxTarget).Result : tabIndex; + set { + if (isInitialized) { + DevExpress.Ui.GridBaseInterop.SetTabIndex(dxTarget, value); + } else { + this.tabIndex = value; + } + } + } + bool? visible; + [Parameter] + bool? Visible { + get => isInitialized ? (bool?)DevExpress.Ui.GridBaseInterop.GetVisible(dxTarget).Result : visible; + set { + if (isInitialized) { + DevExpress.Ui.GridBaseInterop.SetVisible(dxTarget, value); + } else { + this.visible = value; + } + } + } + object bindingOptions; + [Parameter] + object BindingOptions { + get => isInitialized ? DevExpress.Ui.GridBaseInterop.GetBindingOptions(dxTarget).Result : bindingOptions; + set { + if (isInitialized) { + DevExpress.Ui.GridBaseInterop.SetBindingOptions(dxTarget, value); + } else { + this.bindingOptions = value; + } + } + } + object elementAttr; + [Parameter] + object ElementAttr { + get => isInitialized ? DevExpress.Ui.GridBaseInterop.GetElementAttr(dxTarget).Result : elementAttr; + set { + if (isInitialized) { + DevExpress.Ui.GridBaseInterop.SetElementAttr(dxTarget, value); + } else { + this.elementAttr = value; + } + } + } + object height; + [Parameter] + object Height { + get => isInitialized ? DevExpress.Ui.GridBaseInterop.GetHeight(dxTarget).Result : height; + set { + if (isInitialized) { + DevExpress.Ui.GridBaseInterop.SetHeight(dxTarget, value); + } else { + this.height = value; + } + } + } + bool? rtlEnabled; + [Parameter] + bool? RtlEnabled { + get => isInitialized ? (bool?)DevExpress.Ui.GridBaseInterop.GetRtlEnabled(dxTarget).Result : rtlEnabled; + set { + if (isInitialized) { + DevExpress.Ui.GridBaseInterop.SetRtlEnabled(dxTarget, value); + } else { + this.rtlEnabled = value; + } + } + } + object width; + [Parameter] + object Width { + get => isInitialized ? DevExpress.Ui.GridBaseInterop.GetWidth(dxTarget).Result : width; + set { + if (isInitialized) { + DevExpress.Ui.GridBaseInterop.SetWidth(dxTarget, value); + } else { + this.width = value; + } + } + } bool? onAdaptiveDetailRowPreparingEnabled; [Parameter] bool? OnAdaptiveDetailRowPreparingEnabled { @@ -654,6 +827,30 @@ return DevExpress.Ui.GridBaseInterop.Init(dxTarget, options); get => onToolbarPreparingEnabled; set => this.onToolbarPreparingEnabled = value; } + bool? onContentReadyEnabled; + [Parameter] + bool? OnContentReadyEnabled { + get => onContentReadyEnabled; + set => this.onContentReadyEnabled = value; + } + bool? onDisposingEnabled; + [Parameter] + bool? OnDisposingEnabled { + get => onDisposingEnabled; + set => this.onDisposingEnabled = value; + } + bool? onOptionChangedEnabled; + [Parameter] + bool? OnOptionChangedEnabled { + get => onOptionChangedEnabled; + set => this.onOptionChangedEnabled = value; + } + bool? onInitializedEnabled; + [Parameter] + bool? OnInitializedEnabled { + get => onInitializedEnabled; + set => this.onInitializedEnabled = value; + } protected override async Task OnInitAsync() { await base.OnInitAsync(); DevExpress.Ui.GridBaseInterop.AdaptiveDetailRowPreparing += GridBase_AdaptiveDetailRowPreparing; @@ -673,6 +870,10 @@ return DevExpress.Ui.GridBaseInterop.Init(dxTarget, options); DevExpress.Ui.GridBaseInterop.RowValidating += GridBase_RowValidating; DevExpress.Ui.GridBaseInterop.SelectionChanged += GridBase_SelectionChanged; DevExpress.Ui.GridBaseInterop.ToolbarPreparing += GridBase_ToolbarPreparing; + DevExpress.Ui.GridBaseInterop.ContentReady += GridBase_ContentReady; + DevExpress.Ui.GridBaseInterop.Disposing += GridBase_Disposing; + DevExpress.Ui.GridBaseInterop.OptionChanged += GridBase_OptionChanged; + DevExpress.Ui.GridBaseInterop.Initialized += GridBase_Initialized; } [Parameter] Action AdaptiveDetailRowPreparing { get; set; } @@ -793,6 +994,34 @@ return DevExpress.Ui.GridBaseInterop.Init(dxTarget, options); ToolbarPreparing?.Invoke(); } } + [Parameter] + Action ContentReady { get; set; } + void GridBase_ContentReady(object sender, JQueryEventArgs e) { + if (e.Identifier == Id) { + ContentReady?.Invoke(); + } + } + [Parameter] + Action Disposing { get; set; } + void GridBase_Disposing(object sender, JQueryEventArgs e) { + if (e.Identifier == Id) { + Disposing?.Invoke(); + } + } + [Parameter] + Action OptionChanged { get; set; } + void GridBase_OptionChanged(object sender, JQueryEventArgs e) { + if (e.Identifier == Id) { + OptionChanged?.Invoke(); + } + } + [Parameter] + Action Initialized { get; set; } + void GridBase_Initialized(object sender, JQueryEventArgs e) { + if (e.Identifier == Id) { + Initialized?.Invoke(); + } + } public void BeginCustomLoading(string messageText) { DevExpress.Ui.GridBaseInterop.BeginCustomLoading(dxTarget, messageText); } @@ -997,5 +1226,9 @@ return DevExpress.Ui.GridBaseInterop.Init(dxTarget, options); DevExpress.Ui.GridBaseInterop.RowValidating -= GridBase_RowValidating; DevExpress.Ui.GridBaseInterop.SelectionChanged -= GridBase_SelectionChanged; DevExpress.Ui.GridBaseInterop.ToolbarPreparing -= GridBase_ToolbarPreparing; + DevExpress.Ui.GridBaseInterop.ContentReady -= GridBase_ContentReady; + DevExpress.Ui.GridBaseInterop.Disposing -= GridBase_Disposing; + DevExpress.Ui.GridBaseInterop.OptionChanged -= GridBase_OptionChanged; + DevExpress.Ui.GridBaseInterop.Initialized -= GridBase_Initialized; } } diff --git a/sources/BlazorDevExtreme/Components/HierarchicalCollectionWidget.cshtml b/sources/BlazorDevExtreme/Components/HierarchicalCollectionWidget.cshtml index 1513b73..7bf8181 100644 --- a/sources/BlazorDevExtreme/Components/HierarchicalCollectionWidget.cshtml +++ b/sources/BlazorDevExtreme/Components/HierarchicalCollectionWidget.cshtml @@ -17,10 +17,39 @@ itemsExpr = itemsExpr, keyExpr = keyExpr, selectedExpr = selectedExpr, + dataSource = dataSource, + itemHoldTimeout = itemHoldTimeout, + items = items, + itemTemplate = itemTemplate, + noDataText = noDataText, + selectedIndex = selectedIndex, + selectedItem = selectedItem, + selectedItemKeys = selectedItemKeys, + selectedItems = selectedItems, + accessKey = accessKey, + activeStateEnabled = activeStateEnabled, + disabled = disabled, + hint = hint, + tabIndex = tabIndex, + visible = visible, + bindingOptions = bindingOptions, + elementAttr = elementAttr, + height = height, + rtlEnabled = rtlEnabled, + width = width, + onItemClickEnabled = onItemClickEnabled, + onItemContextMenuEnabled = onItemContextMenuEnabled, + onItemHoldEnabled = onItemHoldEnabled, + onItemRenderedEnabled = onItemRenderedEnabled, + onSelectionChangedEnabled = onSelectionChangedEnabled, + onContentReadyEnabled = onContentReadyEnabled, + onDisposingEnabled = onDisposingEnabled, + onOptionChangedEnabled = onOptionChangedEnabled, + onInitializedEnabled = onInitializedEnabled, }; } protected override Task Init(DevExpress.Ui.HierarchicalCollectionWidgetOptions options) { -return DevExpress.Ui.HierarchicalCollectionWidgetInterop.Init(dxTarget, options); + return DevExpress.Ui.HierarchicalCollectionWidgetInterop.Init(dxTarget, options); } object disabledExpr; [Parameter] @@ -49,7 +78,7 @@ return DevExpress.Ui.HierarchicalCollectionWidgetInterop.Init(dxTarget, option bool? focusStateEnabled; [Parameter] bool? FocusStateEnabled { - get => isInitialized ? DevExpress.Ui.HierarchicalCollectionWidgetInterop.GetFocusStateEnabled(dxTarget).Result : focusStateEnabled; + get => isInitialized ? (bool?)DevExpress.Ui.HierarchicalCollectionWidgetInterop.GetFocusStateEnabled(dxTarget).Result : focusStateEnabled; set { if (isInitialized) { DevExpress.Ui.HierarchicalCollectionWidgetInterop.SetFocusStateEnabled(dxTarget, value); @@ -61,7 +90,7 @@ return DevExpress.Ui.HierarchicalCollectionWidgetInterop.Init(dxTarget, option bool? hoverStateEnabled; [Parameter] bool? HoverStateEnabled { - get => isInitialized ? DevExpress.Ui.HierarchicalCollectionWidgetInterop.GetHoverStateEnabled(dxTarget).Result : hoverStateEnabled; + get => isInitialized ? (bool?)DevExpress.Ui.HierarchicalCollectionWidgetInterop.GetHoverStateEnabled(dxTarget).Result : hoverStateEnabled; set { if (isInitialized) { DevExpress.Ui.HierarchicalCollectionWidgetInterop.SetHoverStateEnabled(dxTarget, value); @@ -106,9 +135,384 @@ return DevExpress.Ui.HierarchicalCollectionWidgetInterop.Init(dxTarget, option } } } + object dataSource; + [Parameter] + object DataSource { + get => isInitialized ? DevExpress.Ui.HierarchicalCollectionWidgetInterop.GetDataSource(dxTarget).Result : dataSource; + set { + if (isInitialized) { + DevExpress.Ui.HierarchicalCollectionWidgetInterop.SetDataSource(dxTarget, value); + } else { + this.dataSource = value; + } + } + } + float? itemHoldTimeout; + [Parameter] + float? ItemHoldTimeout { + get => isInitialized ? (float?)DevExpress.Ui.HierarchicalCollectionWidgetInterop.GetItemHoldTimeout(dxTarget).Result : itemHoldTimeout; + set { + if (isInitialized) { + DevExpress.Ui.HierarchicalCollectionWidgetInterop.SetItemHoldTimeout(dxTarget, value); + } else { + this.itemHoldTimeout = value; + } + } + } + object items; + [Parameter] + object Items { + get => isInitialized ? DevExpress.Ui.HierarchicalCollectionWidgetInterop.GetItems(dxTarget).Result : items; + set { + if (isInitialized) { + DevExpress.Ui.HierarchicalCollectionWidgetInterop.SetItems(dxTarget, value); + } else { + this.items = value; + } + } + } + object itemTemplate; + [Parameter] + object ItemTemplate { + get => isInitialized ? DevExpress.Ui.HierarchicalCollectionWidgetInterop.GetItemTemplate(dxTarget).Result : itemTemplate; + set { + if (isInitialized) { + DevExpress.Ui.HierarchicalCollectionWidgetInterop.SetItemTemplate(dxTarget, value); + } else { + this.itemTemplate = value; + } + } + } + string noDataText; + [Parameter] + string NoDataText { + get => isInitialized ? (string)DevExpress.Ui.HierarchicalCollectionWidgetInterop.GetNoDataText(dxTarget).Result : noDataText; + set { + if (isInitialized) { + DevExpress.Ui.HierarchicalCollectionWidgetInterop.SetNoDataText(dxTarget, value); + } else { + this.noDataText = value; + } + } + } + float? selectedIndex; + [Parameter] + float? SelectedIndex { + get => isInitialized ? (float?)DevExpress.Ui.HierarchicalCollectionWidgetInterop.GetSelectedIndex(dxTarget).Result : selectedIndex; + set { + if (isInitialized) { + DevExpress.Ui.HierarchicalCollectionWidgetInterop.SetSelectedIndex(dxTarget, value); + } else { + this.selectedIndex = value; + } + } + } + object selectedItem; + [Parameter] + object SelectedItem { + get => isInitialized ? DevExpress.Ui.HierarchicalCollectionWidgetInterop.GetSelectedItem(dxTarget).Result : selectedItem; + set { + if (isInitialized) { + DevExpress.Ui.HierarchicalCollectionWidgetInterop.SetSelectedItem(dxTarget, value); + } else { + this.selectedItem = value; + } + } + } + object selectedItemKeys; + [Parameter] + object SelectedItemKeys { + get => isInitialized ? DevExpress.Ui.HierarchicalCollectionWidgetInterop.GetSelectedItemKeys(dxTarget).Result : selectedItemKeys; + set { + if (isInitialized) { + DevExpress.Ui.HierarchicalCollectionWidgetInterop.SetSelectedItemKeys(dxTarget, value); + } else { + this.selectedItemKeys = value; + } + } + } + object selectedItems; + [Parameter] + object SelectedItems { + get => isInitialized ? DevExpress.Ui.HierarchicalCollectionWidgetInterop.GetSelectedItems(dxTarget).Result : selectedItems; + set { + if (isInitialized) { + DevExpress.Ui.HierarchicalCollectionWidgetInterop.SetSelectedItems(dxTarget, value); + } else { + this.selectedItems = value; + } + } + } + string accessKey; + [Parameter] + string AccessKey { + get => isInitialized ? (string)DevExpress.Ui.HierarchicalCollectionWidgetInterop.GetAccessKey(dxTarget).Result : accessKey; + set { + if (isInitialized) { + DevExpress.Ui.HierarchicalCollectionWidgetInterop.SetAccessKey(dxTarget, value); + } else { + this.accessKey = value; + } + } + } + bool? activeStateEnabled; + [Parameter] + bool? ActiveStateEnabled { + get => isInitialized ? (bool?)DevExpress.Ui.HierarchicalCollectionWidgetInterop.GetActiveStateEnabled(dxTarget).Result : activeStateEnabled; + set { + if (isInitialized) { + DevExpress.Ui.HierarchicalCollectionWidgetInterop.SetActiveStateEnabled(dxTarget, value); + } else { + this.activeStateEnabled = value; + } + } + } + bool? disabled; + [Parameter] + bool? Disabled { + get => isInitialized ? (bool?)DevExpress.Ui.HierarchicalCollectionWidgetInterop.GetDisabled(dxTarget).Result : disabled; + set { + if (isInitialized) { + DevExpress.Ui.HierarchicalCollectionWidgetInterop.SetDisabled(dxTarget, value); + } else { + this.disabled = value; + } + } + } + string hint; + [Parameter] + string Hint { + get => isInitialized ? (string)DevExpress.Ui.HierarchicalCollectionWidgetInterop.GetHint(dxTarget).Result : hint; + set { + if (isInitialized) { + DevExpress.Ui.HierarchicalCollectionWidgetInterop.SetHint(dxTarget, value); + } else { + this.hint = value; + } + } + } + float? tabIndex; + [Parameter] + float? TabIndex { + get => isInitialized ? (float?)DevExpress.Ui.HierarchicalCollectionWidgetInterop.GetTabIndex(dxTarget).Result : tabIndex; + set { + if (isInitialized) { + DevExpress.Ui.HierarchicalCollectionWidgetInterop.SetTabIndex(dxTarget, value); + } else { + this.tabIndex = value; + } + } + } + bool? visible; + [Parameter] + bool? Visible { + get => isInitialized ? (bool?)DevExpress.Ui.HierarchicalCollectionWidgetInterop.GetVisible(dxTarget).Result : visible; + set { + if (isInitialized) { + DevExpress.Ui.HierarchicalCollectionWidgetInterop.SetVisible(dxTarget, value); + } else { + this.visible = value; + } + } + } + object bindingOptions; + [Parameter] + object BindingOptions { + get => isInitialized ? DevExpress.Ui.HierarchicalCollectionWidgetInterop.GetBindingOptions(dxTarget).Result : bindingOptions; + set { + if (isInitialized) { + DevExpress.Ui.HierarchicalCollectionWidgetInterop.SetBindingOptions(dxTarget, value); + } else { + this.bindingOptions = value; + } + } + } + object elementAttr; + [Parameter] + object ElementAttr { + get => isInitialized ? DevExpress.Ui.HierarchicalCollectionWidgetInterop.GetElementAttr(dxTarget).Result : elementAttr; + set { + if (isInitialized) { + DevExpress.Ui.HierarchicalCollectionWidgetInterop.SetElementAttr(dxTarget, value); + } else { + this.elementAttr = value; + } + } + } + object height; + [Parameter] + object Height { + get => isInitialized ? DevExpress.Ui.HierarchicalCollectionWidgetInterop.GetHeight(dxTarget).Result : height; + set { + if (isInitialized) { + DevExpress.Ui.HierarchicalCollectionWidgetInterop.SetHeight(dxTarget, value); + } else { + this.height = value; + } + } + } + bool? rtlEnabled; + [Parameter] + bool? RtlEnabled { + get => isInitialized ? (bool?)DevExpress.Ui.HierarchicalCollectionWidgetInterop.GetRtlEnabled(dxTarget).Result : rtlEnabled; + set { + if (isInitialized) { + DevExpress.Ui.HierarchicalCollectionWidgetInterop.SetRtlEnabled(dxTarget, value); + } else { + this.rtlEnabled = value; + } + } + } + object width; + [Parameter] + object Width { + get => isInitialized ? DevExpress.Ui.HierarchicalCollectionWidgetInterop.GetWidth(dxTarget).Result : width; + set { + if (isInitialized) { + DevExpress.Ui.HierarchicalCollectionWidgetInterop.SetWidth(dxTarget, value); + } else { + this.width = value; + } + } + } + bool? onItemClickEnabled; + [Parameter] + bool? OnItemClickEnabled { + get => onItemClickEnabled; + set => this.onItemClickEnabled = value; + } + bool? onItemContextMenuEnabled; + [Parameter] + bool? OnItemContextMenuEnabled { + get => onItemContextMenuEnabled; + set => this.onItemContextMenuEnabled = value; + } + bool? onItemHoldEnabled; + [Parameter] + bool? OnItemHoldEnabled { + get => onItemHoldEnabled; + set => this.onItemHoldEnabled = value; + } + bool? onItemRenderedEnabled; + [Parameter] + bool? OnItemRenderedEnabled { + get => onItemRenderedEnabled; + set => this.onItemRenderedEnabled = value; + } + bool? onSelectionChangedEnabled; + [Parameter] + bool? OnSelectionChangedEnabled { + get => onSelectionChangedEnabled; + set => this.onSelectionChangedEnabled = value; + } + bool? onContentReadyEnabled; + [Parameter] + bool? OnContentReadyEnabled { + get => onContentReadyEnabled; + set => this.onContentReadyEnabled = value; + } + bool? onDisposingEnabled; + [Parameter] + bool? OnDisposingEnabled { + get => onDisposingEnabled; + set => this.onDisposingEnabled = value; + } + bool? onOptionChangedEnabled; + [Parameter] + bool? OnOptionChangedEnabled { + get => onOptionChangedEnabled; + set => this.onOptionChangedEnabled = value; + } + bool? onInitializedEnabled; + [Parameter] + bool? OnInitializedEnabled { + get => onInitializedEnabled; + set => this.onInitializedEnabled = value; + } protected override async Task OnInitAsync() { await base.OnInitAsync(); + DevExpress.Ui.HierarchicalCollectionWidgetInterop.ItemClick += HierarchicalCollectionWidget_ItemClick; + DevExpress.Ui.HierarchicalCollectionWidgetInterop.ItemContextMenu += HierarchicalCollectionWidget_ItemContextMenu; + DevExpress.Ui.HierarchicalCollectionWidgetInterop.ItemHold += HierarchicalCollectionWidget_ItemHold; + DevExpress.Ui.HierarchicalCollectionWidgetInterop.ItemRendered += HierarchicalCollectionWidget_ItemRendered; + DevExpress.Ui.HierarchicalCollectionWidgetInterop.SelectionChanged += HierarchicalCollectionWidget_SelectionChanged; + DevExpress.Ui.HierarchicalCollectionWidgetInterop.ContentReady += HierarchicalCollectionWidget_ContentReady; + DevExpress.Ui.HierarchicalCollectionWidgetInterop.Disposing += HierarchicalCollectionWidget_Disposing; + DevExpress.Ui.HierarchicalCollectionWidgetInterop.OptionChanged += HierarchicalCollectionWidget_OptionChanged; + DevExpress.Ui.HierarchicalCollectionWidgetInterop.Initialized += HierarchicalCollectionWidget_Initialized; + } + [Parameter] + Action ItemClick { get; set; } + void HierarchicalCollectionWidget_ItemClick(object sender, JQueryEventArgs e) { + if (e.Identifier == Id) { + ItemClick?.Invoke(); + } + } + [Parameter] + Action ItemContextMenu { get; set; } + void HierarchicalCollectionWidget_ItemContextMenu(object sender, JQueryEventArgs e) { + if (e.Identifier == Id) { + ItemContextMenu?.Invoke(); + } + } + [Parameter] + Action ItemHold { get; set; } + void HierarchicalCollectionWidget_ItemHold(object sender, JQueryEventArgs e) { + if (e.Identifier == Id) { + ItemHold?.Invoke(); + } + } + [Parameter] + Action ItemRendered { get; set; } + void HierarchicalCollectionWidget_ItemRendered(object sender, JQueryEventArgs e) { + if (e.Identifier == Id) { + ItemRendered?.Invoke(); + } + } + [Parameter] + Action SelectionChanged { get; set; } + void HierarchicalCollectionWidget_SelectionChanged(object sender, JQueryEventArgs e) { + if (e.Identifier == Id) { + SelectionChanged?.Invoke(); + } + } + [Parameter] + Action ContentReady { get; set; } + void HierarchicalCollectionWidget_ContentReady(object sender, JQueryEventArgs e) { + if (e.Identifier == Id) { + ContentReady?.Invoke(); + } + } + [Parameter] + Action Disposing { get; set; } + void HierarchicalCollectionWidget_Disposing(object sender, JQueryEventArgs e) { + if (e.Identifier == Id) { + Disposing?.Invoke(); + } + } + [Parameter] + Action OptionChanged { get; set; } + void HierarchicalCollectionWidget_OptionChanged(object sender, JQueryEventArgs e) { + if (e.Identifier == Id) { + OptionChanged?.Invoke(); + } + } + [Parameter] + Action Initialized { get; set; } + void HierarchicalCollectionWidget_Initialized(object sender, JQueryEventArgs e) { + if (e.Identifier == Id) { + Initialized?.Invoke(); + } } public void Dispose() { + DevExpress.Ui.HierarchicalCollectionWidgetInterop.ItemClick -= HierarchicalCollectionWidget_ItemClick; + DevExpress.Ui.HierarchicalCollectionWidgetInterop.ItemContextMenu -= HierarchicalCollectionWidget_ItemContextMenu; + DevExpress.Ui.HierarchicalCollectionWidgetInterop.ItemHold -= HierarchicalCollectionWidget_ItemHold; + DevExpress.Ui.HierarchicalCollectionWidgetInterop.ItemRendered -= HierarchicalCollectionWidget_ItemRendered; + DevExpress.Ui.HierarchicalCollectionWidgetInterop.SelectionChanged -= HierarchicalCollectionWidget_SelectionChanged; + DevExpress.Ui.HierarchicalCollectionWidgetInterop.ContentReady -= HierarchicalCollectionWidget_ContentReady; + DevExpress.Ui.HierarchicalCollectionWidgetInterop.Disposing -= HierarchicalCollectionWidget_Disposing; + DevExpress.Ui.HierarchicalCollectionWidgetInterop.OptionChanged -= HierarchicalCollectionWidget_OptionChanged; + DevExpress.Ui.HierarchicalCollectionWidgetInterop.Initialized -= HierarchicalCollectionWidget_Initialized; } } diff --git a/sources/BlazorDevExtreme/Components/Widget.cshtml b/sources/BlazorDevExtreme/Components/Widget.cshtml index cecae5d..38053ff 100644 --- a/sources/BlazorDevExtreme/Components/Widget.cshtml +++ b/sources/BlazorDevExtreme/Components/Widget.cshtml @@ -18,16 +18,24 @@ hoverStateEnabled = hoverStateEnabled, tabIndex = tabIndex, visible = visible, + bindingOptions = bindingOptions, + elementAttr = elementAttr, + height = height, + rtlEnabled = rtlEnabled, + width = width, onContentReadyEnabled = onContentReadyEnabled, + onDisposingEnabled = onDisposingEnabled, + onOptionChangedEnabled = onOptionChangedEnabled, + onInitializedEnabled = onInitializedEnabled, }; } protected override Task Init(DevExpress.Ui.WidgetOptions options) { -return DevExpress.Ui.WidgetInterop.Init(dxTarget, options); + return DevExpress.Ui.WidgetInterop.Init(dxTarget, options); } string accessKey; [Parameter] string AccessKey { - get => isInitialized ? DevExpress.Ui.WidgetInterop.GetAccessKey(dxTarget).Result : accessKey; + get => isInitialized ? (string)DevExpress.Ui.WidgetInterop.GetAccessKey(dxTarget).Result : accessKey; set { if (isInitialized) { DevExpress.Ui.WidgetInterop.SetAccessKey(dxTarget, value); @@ -39,7 +47,7 @@ return DevExpress.Ui.WidgetInterop.Init(dxTarget, options); bool? activeStateEnabled; [Parameter] bool? ActiveStateEnabled { - get => isInitialized ? DevExpress.Ui.WidgetInterop.GetActiveStateEnabled(dxTarget).Result : activeStateEnabled; + get => isInitialized ? (bool?)DevExpress.Ui.WidgetInterop.GetActiveStateEnabled(dxTarget).Result : activeStateEnabled; set { if (isInitialized) { DevExpress.Ui.WidgetInterop.SetActiveStateEnabled(dxTarget, value); @@ -51,7 +59,7 @@ return DevExpress.Ui.WidgetInterop.Init(dxTarget, options); bool? disabled; [Parameter] bool? Disabled { - get => isInitialized ? DevExpress.Ui.WidgetInterop.GetDisabled(dxTarget).Result : disabled; + get => isInitialized ? (bool?)DevExpress.Ui.WidgetInterop.GetDisabled(dxTarget).Result : disabled; set { if (isInitialized) { DevExpress.Ui.WidgetInterop.SetDisabled(dxTarget, value); @@ -63,7 +71,7 @@ return DevExpress.Ui.WidgetInterop.Init(dxTarget, options); bool? focusStateEnabled; [Parameter] bool? FocusStateEnabled { - get => isInitialized ? DevExpress.Ui.WidgetInterop.GetFocusStateEnabled(dxTarget).Result : focusStateEnabled; + get => isInitialized ? (bool?)DevExpress.Ui.WidgetInterop.GetFocusStateEnabled(dxTarget).Result : focusStateEnabled; set { if (isInitialized) { DevExpress.Ui.WidgetInterop.SetFocusStateEnabled(dxTarget, value); @@ -75,7 +83,7 @@ return DevExpress.Ui.WidgetInterop.Init(dxTarget, options); string hint; [Parameter] string Hint { - get => isInitialized ? DevExpress.Ui.WidgetInterop.GetHint(dxTarget).Result : hint; + get => isInitialized ? (string)DevExpress.Ui.WidgetInterop.GetHint(dxTarget).Result : hint; set { if (isInitialized) { DevExpress.Ui.WidgetInterop.SetHint(dxTarget, value); @@ -87,7 +95,7 @@ return DevExpress.Ui.WidgetInterop.Init(dxTarget, options); bool? hoverStateEnabled; [Parameter] bool? HoverStateEnabled { - get => isInitialized ? DevExpress.Ui.WidgetInterop.GetHoverStateEnabled(dxTarget).Result : hoverStateEnabled; + get => isInitialized ? (bool?)DevExpress.Ui.WidgetInterop.GetHoverStateEnabled(dxTarget).Result : hoverStateEnabled; set { if (isInitialized) { DevExpress.Ui.WidgetInterop.SetHoverStateEnabled(dxTarget, value); @@ -99,7 +107,7 @@ return DevExpress.Ui.WidgetInterop.Init(dxTarget, options); float? tabIndex; [Parameter] float? TabIndex { - get => isInitialized ? DevExpress.Ui.WidgetInterop.GetTabIndex(dxTarget).Result : tabIndex; + get => isInitialized ? (float?)DevExpress.Ui.WidgetInterop.GetTabIndex(dxTarget).Result : tabIndex; set { if (isInitialized) { DevExpress.Ui.WidgetInterop.SetTabIndex(dxTarget, value); @@ -111,7 +119,7 @@ return DevExpress.Ui.WidgetInterop.Init(dxTarget, options); bool? visible; [Parameter] bool? Visible { - get => isInitialized ? DevExpress.Ui.WidgetInterop.GetVisible(dxTarget).Result : visible; + get => isInitialized ? (bool?)DevExpress.Ui.WidgetInterop.GetVisible(dxTarget).Result : visible; set { if (isInitialized) { DevExpress.Ui.WidgetInterop.SetVisible(dxTarget, value); @@ -120,15 +128,96 @@ return DevExpress.Ui.WidgetInterop.Init(dxTarget, options); } } } + object bindingOptions; + [Parameter] + object BindingOptions { + get => isInitialized ? DevExpress.Ui.WidgetInterop.GetBindingOptions(dxTarget).Result : bindingOptions; + set { + if (isInitialized) { + DevExpress.Ui.WidgetInterop.SetBindingOptions(dxTarget, value); + } else { + this.bindingOptions = value; + } + } + } + object elementAttr; + [Parameter] + object ElementAttr { + get => isInitialized ? DevExpress.Ui.WidgetInterop.GetElementAttr(dxTarget).Result : elementAttr; + set { + if (isInitialized) { + DevExpress.Ui.WidgetInterop.SetElementAttr(dxTarget, value); + } else { + this.elementAttr = value; + } + } + } + object height; + [Parameter] + object Height { + get => isInitialized ? DevExpress.Ui.WidgetInterop.GetHeight(dxTarget).Result : height; + set { + if (isInitialized) { + DevExpress.Ui.WidgetInterop.SetHeight(dxTarget, value); + } else { + this.height = value; + } + } + } + bool? rtlEnabled; + [Parameter] + bool? RtlEnabled { + get => isInitialized ? (bool?)DevExpress.Ui.WidgetInterop.GetRtlEnabled(dxTarget).Result : rtlEnabled; + set { + if (isInitialized) { + DevExpress.Ui.WidgetInterop.SetRtlEnabled(dxTarget, value); + } else { + this.rtlEnabled = value; + } + } + } + object width; + [Parameter] + object Width { + get => isInitialized ? DevExpress.Ui.WidgetInterop.GetWidth(dxTarget).Result : width; + set { + if (isInitialized) { + DevExpress.Ui.WidgetInterop.SetWidth(dxTarget, value); + } else { + this.width = value; + } + } + } bool? onContentReadyEnabled; [Parameter] bool? OnContentReadyEnabled { get => onContentReadyEnabled; set => this.onContentReadyEnabled = value; } + bool? onDisposingEnabled; + [Parameter] + bool? OnDisposingEnabled { + get => onDisposingEnabled; + set => this.onDisposingEnabled = value; + } + bool? onOptionChangedEnabled; + [Parameter] + bool? OnOptionChangedEnabled { + get => onOptionChangedEnabled; + set => this.onOptionChangedEnabled = value; + } + bool? onInitializedEnabled; + [Parameter] + bool? OnInitializedEnabled { + get => onInitializedEnabled; + set => this.onInitializedEnabled = value; + } protected override async Task OnInitAsync() { await base.OnInitAsync(); DevExpress.Ui.WidgetInterop.ContentReady += Widget_ContentReady; + DevExpress.Ui.WidgetInterop.Disposing += Widget_Disposing; + DevExpress.Ui.WidgetInterop.OptionChanged += Widget_OptionChanged; + DevExpress.Ui.WidgetInterop.Initialized += Widget_Initialized; } [Parameter] Action ContentReady { get; set; } @@ -137,6 +226,27 @@ return DevExpress.Ui.WidgetInterop.Init(dxTarget, options); ContentReady?.Invoke(); } } + [Parameter] + Action Disposing { get; set; } + void Widget_Disposing(object sender, JQueryEventArgs e) { + if (e.Identifier == Id) { + Disposing?.Invoke(); + } + } + [Parameter] + Action OptionChanged { get; set; } + void Widget_OptionChanged(object sender, JQueryEventArgs e) { + if (e.Identifier == Id) { + OptionChanged?.Invoke(); + } + } + [Parameter] + Action Initialized { get; set; } + void Widget_Initialized(object sender, JQueryEventArgs e) { + if (e.Identifier == Id) { + Initialized?.Invoke(); + } + } public void Focus() { DevExpress.Ui.WidgetInterop.Focus(dxTarget); } @@ -148,5 +258,8 @@ return DevExpress.Ui.WidgetInterop.Init(dxTarget, options); } public void Dispose() { DevExpress.Ui.WidgetInterop.ContentReady -= Widget_ContentReady; + DevExpress.Ui.WidgetInterop.Disposing -= Widget_Disposing; + DevExpress.Ui.WidgetInterop.OptionChanged -= Widget_OptionChanged; + DevExpress.Ui.WidgetInterop.Initialized -= Widget_Initialized; } } diff --git a/sources/BlazorDevExtreme/Controls.cs b/sources/BlazorDevExtreme/Controls.cs index a694313..f4e826f 100644 --- a/sources/BlazorDevExtreme/Controls.cs +++ b/sources/BlazorDevExtreme/Controls.cs @@ -216,23 +216,11 @@ public static Task Real(ElementRef dxTarget) } public class DOMComponentInterop: ComponentInterop { - public static event EventHandler Disposing; - public static event EventHandler OptionChanged; public static Task Init(ElementRef dxTarget, DevExpress.DOMComponentOptions options) { string json = SimpleJson.SimpleJson.SerializeObject(options); return JSRuntime.Current.InvokeAsync("BlazorDevExtreme_DOMComponent_Init", dxTarget, json); } - [JSInvokable("DevExpress.DOMComponentInterop.OnDisposing")] - public static void OnDisposing(string identifier) - { - Disposing?.Invoke(null, new JQueryEventArgs(identifier)); - } - [JSInvokable("DevExpress.DOMComponentInterop.OnOptionChanged")] - public static void OnOptionChanged(string identifier) - { - OptionChanged?.Invoke(null, new JQueryEventArgs(identifier)); - } public static Task GetBindingOptions(ElementRef dxTarget) { return JSRuntime.Current.InvokeAsync("BlazorDevExtreme_DOMComponent_GetOption", dxTarget, "bindingOptions"); @@ -1171,17 +1159,11 @@ public static Task ObjectLink(ElementRef dxTarget, string entityAlias, o } public class ODataStoreInterop: StoreInterop { - public static event EventHandler Loading; public static Task Init(ElementRef dxTarget, DevExpress.Data.ODataStoreOptions options) { string json = SimpleJson.SimpleJson.SerializeObject(options); return JSRuntime.Current.InvokeAsync("BlazorDevExtreme_ODataStore_Init", dxTarget, json); } - [JSInvokable("DevExpress.Data.ODataStoreInterop.OnLoading")] - public static void OnLoading(string identifier) - { - Loading?.Invoke(null, new JQueryEventArgs(identifier)); - } public static Task GetBeforeSend(ElementRef dxTarget) { return JSRuntime.Current.InvokeAsync("BlazorDevExtreme_ODataStore_GetOption", dxTarget, "beforeSend"); @@ -2114,38 +2096,6 @@ public static Task SetDeferRendering(ElementRef dxTarget, bool? value) { return JSRuntime.Current.InvokeAsync("BlazorDevExtreme_DxAccordion_SetOption", dxTarget, "deferRendering", value); } - public static new Task GetFocusStateEnabled(ElementRef dxTarget) - { - return JSRuntime.Current.InvokeAsync("BlazorDevExtreme_DxAccordion_GetOption", dxTarget, "focusStateEnabled"); - } - public static new Task SetFocusStateEnabled(ElementRef dxTarget, bool? value) - { - return JSRuntime.Current.InvokeAsync("BlazorDevExtreme_DxAccordion_SetOption", dxTarget, "focusStateEnabled", value); - } - public static new Task GetHeight(ElementRef dxTarget) - { - return JSRuntime.Current.InvokeAsync("BlazorDevExtreme_DxAccordion_GetOption", dxTarget, "height"); - } - public static new Task SetHeight(ElementRef dxTarget, object value) - { - return JSRuntime.Current.InvokeAsync("BlazorDevExtreme_DxAccordion_SetOption", dxTarget, "height", value); - } - public static new Task GetHoverStateEnabled(ElementRef dxTarget) - { - return JSRuntime.Current.InvokeAsync("BlazorDevExtreme_DxAccordion_GetOption", dxTarget, "hoverStateEnabled"); - } - public static new Task SetHoverStateEnabled(ElementRef dxTarget, bool? value) - { - return JSRuntime.Current.InvokeAsync("BlazorDevExtreme_DxAccordion_SetOption", dxTarget, "hoverStateEnabled", value); - } - public static new Task GetItemTemplate(ElementRef dxTarget) - { - return JSRuntime.Current.InvokeAsync("BlazorDevExtreme_DxAccordion_GetOption", dxTarget, "itemTemplate"); - } - public static new Task SetItemTemplate(ElementRef dxTarget, object value) - { - return JSRuntime.Current.InvokeAsync("BlazorDevExtreme_DxAccordion_SetOption", dxTarget, "itemTemplate", value); - } public static Task GetItemTitleTemplate(ElementRef dxTarget) { return JSRuntime.Current.InvokeAsync("BlazorDevExtreme_DxAccordion_GetOption", dxTarget, "itemTitleTemplate"); @@ -2162,14 +2112,6 @@ public static Task SetMultiple(ElementRef dxTarget, bool? value) { return JSRuntime.Current.InvokeAsync("BlazorDevExtreme_DxAccordion_SetOption", dxTarget, "multiple", value); } - public static new Task GetSelectedIndex(ElementRef dxTarget) - { - return JSRuntime.Current.InvokeAsync("BlazorDevExtreme_DxAccordion_GetOption", dxTarget, "selectedIndex"); - } - public static new Task SetSelectedIndex(ElementRef dxTarget, float? value) - { - return JSRuntime.Current.InvokeAsync("BlazorDevExtreme_DxAccordion_SetOption", dxTarget, "selectedIndex", value); - } public static Task CollapseItem(ElementRef dxTarget, float index) { return JSRuntime.Current.InvokeAsync("BlazorDevExtreme_DxAccordion_collapseItem_0", dxTarget, index); @@ -2244,14 +2186,6 @@ public static Task SetUsePopover(ElementRef dxTarget, bool? value) { return JSRuntime.Current.InvokeAsync("BlazorDevExtreme_DxActionSheet_SetOption", dxTarget, "usePopover", value); } - public static new Task GetVisible(ElementRef dxTarget) - { - return JSRuntime.Current.InvokeAsync("BlazorDevExtreme_DxActionSheet_GetOption", dxTarget, "visible"); - } - public static new Task SetVisible(ElementRef dxTarget, bool? value) - { - return JSRuntime.Current.InvokeAsync("BlazorDevExtreme_DxActionSheet_SetOption", dxTarget, "visible", value); - } public static Task Hide(ElementRef dxTarget) { return JSRuntime.Current.InvokeAsync("BlazorDevExtreme_DxActionSheet_hide_0", dxTarget); @@ -2280,22 +2214,6 @@ public static Task SetMaxItemCount(ElementRef dxTarget, float? value) { return JSRuntime.Current.InvokeAsync("BlazorDevExtreme_DxAutocomplete_SetOption", dxTarget, "maxItemCount", value); } - public static new Task GetMinSearchLength(ElementRef dxTarget) - { - return JSRuntime.Current.InvokeAsync("BlazorDevExtreme_DxAutocomplete_GetOption", dxTarget, "minSearchLength"); - } - public static new Task SetMinSearchLength(ElementRef dxTarget, float? value) - { - return JSRuntime.Current.InvokeAsync("BlazorDevExtreme_DxAutocomplete_SetOption", dxTarget, "minSearchLength", value); - } - public static new Task GetValue(ElementRef dxTarget) - { - return JSRuntime.Current.InvokeAsync("BlazorDevExtreme_DxAutocomplete_GetOption", dxTarget, "value"); - } - public static new Task SetValue(ElementRef dxTarget, string value) - { - return JSRuntime.Current.InvokeAsync("BlazorDevExtreme_DxAutocomplete_SetOption", dxTarget, "value", value); - } } public class DxBoxInterop: CollectionWidgetInterop { @@ -2337,40 +2255,11 @@ public static Task Init(ElementRef dxTarget, DevExpress.Ui.DxButtonOptions optio string json = SimpleJson.SimpleJson.SerializeObject(options); return JSRuntime.Current.InvokeAsync("BlazorDevExtreme_DxButton_Init", dxTarget, json); } - //public static void InitSync(ElementRef dxTarget, DevExpress.Ui.DxButtonOptions options) - //{ - // string json = SimpleJson.SimpleJson.SerializeObject(options); - // ((IJSInProcessRuntime)JSRuntime.Current).Invoke("BlazorDevExtreme_DxButton_InitSync", dxTarget, json); - //} - [JSInvokable("DevExpress.Ui.DxButtonInterop.OnClick")] + [JSInvokable("DevExpress.Ui.DxButtonInterop.OnClick")] public static void OnClick(string identifier) { Click?.Invoke(null, new JQueryEventArgs(identifier)); } - public static new Task GetActiveStateEnabled(ElementRef dxTarget) - { - return JSRuntime.Current.InvokeAsync("BlazorDevExtreme_DxButton_GetOption", dxTarget, "activeStateEnabled"); - } - public static new Task SetActiveStateEnabled(ElementRef dxTarget, bool? value) - { - return JSRuntime.Current.InvokeAsync("BlazorDevExtreme_DxButton_SetOption", dxTarget, "activeStateEnabled", value); - } - public static new Task GetFocusStateEnabled(ElementRef dxTarget) - { - return JSRuntime.Current.InvokeAsync("BlazorDevExtreme_DxButton_GetOption", dxTarget, "focusStateEnabled"); - } - public static new Task SetFocusStateEnabled(ElementRef dxTarget, bool? value) - { - return JSRuntime.Current.InvokeAsync("BlazorDevExtreme_DxButton_SetOption", dxTarget, "focusStateEnabled", value); - } - public static new Task GetHoverStateEnabled(ElementRef dxTarget) - { - return JSRuntime.Current.InvokeAsync("BlazorDevExtreme_DxButton_GetOption", dxTarget, "hoverStateEnabled"); - } - public static new Task SetHoverStateEnabled(ElementRef dxTarget, bool? value) - { - return JSRuntime.Current.InvokeAsync("BlazorDevExtreme_DxButton_SetOption", dxTarget, "hoverStateEnabled", value); - } public static Task GetIcon(ElementRef dxTarget) { return JSRuntime.Current.InvokeAsync("BlazorDevExtreme_DxButton_GetOption", dxTarget, "icon"); @@ -2427,14 +2316,6 @@ public static Task Init(ElementRef dxTarget, DevExpress.Ui.DxCalendarOptions opt string json = SimpleJson.SimpleJson.SerializeObject(options); return JSRuntime.Current.InvokeAsync("BlazorDevExtreme_DxCalendar_Init", dxTarget, json); } - public static new Task GetActiveStateEnabled(ElementRef dxTarget) - { - return JSRuntime.Current.InvokeAsync("BlazorDevExtreme_DxCalendar_GetOption", dxTarget, "activeStateEnabled"); - } - public static new Task SetActiveStateEnabled(ElementRef dxTarget, bool? value) - { - return JSRuntime.Current.InvokeAsync("BlazorDevExtreme_DxCalendar_SetOption", dxTarget, "activeStateEnabled", value); - } public static Task GetCellTemplate(ElementRef dxTarget) { return JSRuntime.Current.InvokeAsync("BlazorDevExtreme_DxCalendar_GetOption", dxTarget, "cellTemplate"); @@ -2467,22 +2348,6 @@ public static Task SetFirstDayOfWeek(ElementRef dxTarget, object value) { return JSRuntime.Current.InvokeAsync("BlazorDevExtreme_DxCalendar_SetOption", dxTarget, "firstDayOfWeek", value); } - public static new Task GetFocusStateEnabled(ElementRef dxTarget) - { - return JSRuntime.Current.InvokeAsync("BlazorDevExtreme_DxCalendar_GetOption", dxTarget, "focusStateEnabled"); - } - public static new Task SetFocusStateEnabled(ElementRef dxTarget, bool? value) - { - return JSRuntime.Current.InvokeAsync("BlazorDevExtreme_DxCalendar_SetOption", dxTarget, "focusStateEnabled", value); - } - public static new Task GetHoverStateEnabled(ElementRef dxTarget) - { - return JSRuntime.Current.InvokeAsync("BlazorDevExtreme_DxCalendar_GetOption", dxTarget, "hoverStateEnabled"); - } - public static new Task SetHoverStateEnabled(ElementRef dxTarget, bool? value) - { - return JSRuntime.Current.InvokeAsync("BlazorDevExtreme_DxCalendar_SetOption", dxTarget, "hoverStateEnabled", value); - } public static Task GetMax(ElementRef dxTarget) { return JSRuntime.Current.InvokeAsync("BlazorDevExtreme_DxCalendar_GetOption", dxTarget, "max"); @@ -2531,14 +2396,6 @@ public static Task SetShowTodayButton(ElementRef dxTarget, bool? value) { return JSRuntime.Current.InvokeAsync("BlazorDevExtreme_DxCalendar_SetOption", dxTarget, "showTodayButton", value); } - public static new Task GetValue(ElementRef dxTarget) - { - return JSRuntime.Current.InvokeAsync("BlazorDevExtreme_DxCalendar_GetOption", dxTarget, "value"); - } - public static new Task SetValue(ElementRef dxTarget, object value) - { - return JSRuntime.Current.InvokeAsync("BlazorDevExtreme_DxCalendar_SetOption", dxTarget, "value", value); - } public static Task GetZoomLevel(ElementRef dxTarget) { return JSRuntime.Current.InvokeAsync("BlazorDevExtreme_DxCalendar_GetOption", dxTarget, "zoomLevel"); @@ -2555,30 +2412,6 @@ public static Task Init(ElementRef dxTarget, DevExpress.Ui.DxCheckBoxOptions opt string json = SimpleJson.SimpleJson.SerializeObject(options); return JSRuntime.Current.InvokeAsync("BlazorDevExtreme_DxCheckBox_Init", dxTarget, json); } - public static new Task GetActiveStateEnabled(ElementRef dxTarget) - { - return JSRuntime.Current.InvokeAsync("BlazorDevExtreme_DxCheckBox_GetOption", dxTarget, "activeStateEnabled"); - } - public static new Task SetActiveStateEnabled(ElementRef dxTarget, bool? value) - { - return JSRuntime.Current.InvokeAsync("BlazorDevExtreme_DxCheckBox_SetOption", dxTarget, "activeStateEnabled", value); - } - public static new Task GetFocusStateEnabled(ElementRef dxTarget) - { - return JSRuntime.Current.InvokeAsync("BlazorDevExtreme_DxCheckBox_GetOption", dxTarget, "focusStateEnabled"); - } - public static new Task SetFocusStateEnabled(ElementRef dxTarget, bool? value) - { - return JSRuntime.Current.InvokeAsync("BlazorDevExtreme_DxCheckBox_SetOption", dxTarget, "focusStateEnabled", value); - } - public static new Task GetHoverStateEnabled(ElementRef dxTarget) - { - return JSRuntime.Current.InvokeAsync("BlazorDevExtreme_DxCheckBox_GetOption", dxTarget, "hoverStateEnabled"); - } - public static new Task SetHoverStateEnabled(ElementRef dxTarget, bool? value) - { - return JSRuntime.Current.InvokeAsync("BlazorDevExtreme_DxCheckBox_SetOption", dxTarget, "hoverStateEnabled", value); - } public static Task GetName(ElementRef dxTarget) { return JSRuntime.Current.InvokeAsync("BlazorDevExtreme_DxCheckBox_GetOption", dxTarget, "name"); @@ -2595,14 +2428,6 @@ public static Task SetText(ElementRef dxTarget, string value) { return JSRuntime.Current.InvokeAsync("BlazorDevExtreme_DxCheckBox_SetOption", dxTarget, "text", value); } - public static new Task GetValue(ElementRef dxTarget) - { - return JSRuntime.Current.InvokeAsync("BlazorDevExtreme_DxCheckBox_GetOption", dxTarget, "value"); - } - public static new Task SetValue(ElementRef dxTarget, bool? value) - { - return JSRuntime.Current.InvokeAsync("BlazorDevExtreme_DxCheckBox_SetOption", dxTarget, "value", value); - } } public class DxColorBoxInterop: DxDropDownEditorInterop { @@ -2619,14 +2444,6 @@ public static Task SetApplyButtonText(ElementRef dxTarget, string value) { return JSRuntime.Current.InvokeAsync("BlazorDevExtreme_DxColorBox_SetOption", dxTarget, "applyButtonText", value); } - public static new Task GetApplyValueMode(ElementRef dxTarget) - { - return JSRuntime.Current.InvokeAsync("BlazorDevExtreme_DxColorBox_GetOption", dxTarget, "applyValueMode"); - } - public static new Task SetApplyValueMode(ElementRef dxTarget, string value) - { - return JSRuntime.Current.InvokeAsync("BlazorDevExtreme_DxColorBox_SetOption", dxTarget, "applyValueMode", value); - } public static Task GetCancelButtonText(ElementRef dxTarget) { return JSRuntime.Current.InvokeAsync("BlazorDevExtreme_DxColorBox_GetOption", dxTarget, "cancelButtonText"); @@ -2659,14 +2476,6 @@ public static Task SetKeyStep(ElementRef dxTarget, float? value) { return JSRuntime.Current.InvokeAsync("BlazorDevExtreme_DxColorBox_SetOption", dxTarget, "keyStep", value); } - public static new Task GetValue(ElementRef dxTarget) - { - return JSRuntime.Current.InvokeAsync("BlazorDevExtreme_DxColorBox_GetOption", dxTarget, "value"); - } - public static new Task SetValue(ElementRef dxTarget, string value) - { - return JSRuntime.Current.InvokeAsync("BlazorDevExtreme_DxColorBox_SetOption", dxTarget, "value", value); - } } public class DxContextMenuInterop: DxMenuBaseInterop { @@ -2713,14 +2522,6 @@ public static Task SetCloseOnOutsideClick(ElementRef dxTarget, object value) { return JSRuntime.Current.InvokeAsync("BlazorDevExtreme_DxContextMenu_SetOption", dxTarget, "closeOnOutsideClick", value); } - public static new Task GetItems(ElementRef dxTarget) - { - return JSRuntime.Current.InvokeAsync("BlazorDevExtreme_DxContextMenu_GetOption", dxTarget, "items"); - } - public static new Task SetItems(ElementRef dxTarget, object value) - { - return JSRuntime.Current.InvokeAsync("BlazorDevExtreme_DxContextMenu_SetOption", dxTarget, "items", value); - } public static Task GetPosition(ElementRef dxTarget) { return JSRuntime.Current.InvokeAsync("BlazorDevExtreme_DxContextMenu_GetOption", dxTarget, "position"); @@ -2753,14 +2554,6 @@ public static Task SetTarget(ElementRef dxTarget, object value) { return JSRuntime.Current.InvokeAsync("BlazorDevExtreme_DxContextMenu_SetOption", dxTarget, "target", value); } - public static new Task GetVisible(ElementRef dxTarget) - { - return JSRuntime.Current.InvokeAsync("BlazorDevExtreme_DxContextMenu_GetOption", dxTarget, "visible"); - } - public static new Task SetVisible(ElementRef dxTarget, bool? value) - { - return JSRuntime.Current.InvokeAsync("BlazorDevExtreme_DxContextMenu_SetOption", dxTarget, "visible", value); - } public static Task Hide(ElementRef dxTarget) { return JSRuntime.Current.InvokeAsync("BlazorDevExtreme_DxContextMenu_hide_0", dxTarget); @@ -3531,14 +3324,6 @@ public static void OnRowPrepared(string identifier) { RowPrepared?.Invoke(null, new JQueryEventArgs(identifier)); } - public static new Task GetColumns(ElementRef dxTarget) - { - return JSRuntime.Current.InvokeAsync("BlazorDevExtreme_DxDataGrid_GetOption", dxTarget, "columns"); - } - public static new Task SetColumns(ElementRef dxTarget, object value) - { - return JSRuntime.Current.InvokeAsync("BlazorDevExtreme_DxDataGrid_SetOption", dxTarget, "columns", value); - } public static Task GetCustomizeColumns(ElementRef dxTarget) { return JSRuntime.Current.InvokeAsync("BlazorDevExtreme_DxDataGrid_GetOption", dxTarget, "customizeColumns"); @@ -3555,14 +3340,6 @@ public static Task SetCustomizeExportData(ElementRef dxTarget, object value) { return JSRuntime.Current.InvokeAsync("BlazorDevExtreme_DxDataGrid_SetOption", dxTarget, "customizeExportData", value); } - public static new Task GetEditing(ElementRef dxTarget) - { - return JSRuntime.Current.InvokeAsync("BlazorDevExtreme_DxDataGrid_GetOption", dxTarget, "editing"); - } - public static new Task SetEditing(ElementRef dxTarget, object value) - { - return JSRuntime.Current.InvokeAsync("BlazorDevExtreme_DxDataGrid_SetOption", dxTarget, "editing", value); - } public static Task GetExport(ElementRef dxTarget) { return JSRuntime.Current.InvokeAsync("BlazorDevExtreme_DxDataGrid_GetOption", dxTarget, "export"); @@ -3619,22 +3396,6 @@ public static Task SetRowTemplate(ElementRef dxTarget, object value) { return JSRuntime.Current.InvokeAsync("BlazorDevExtreme_DxDataGrid_SetOption", dxTarget, "rowTemplate", value); } - public static new Task GetScrolling(ElementRef dxTarget) - { - return JSRuntime.Current.InvokeAsync("BlazorDevExtreme_DxDataGrid_GetOption", dxTarget, "scrolling"); - } - public static new Task SetScrolling(ElementRef dxTarget, object value) - { - return JSRuntime.Current.InvokeAsync("BlazorDevExtreme_DxDataGrid_SetOption", dxTarget, "scrolling", value); - } - public static new Task GetSelection(ElementRef dxTarget) - { - return JSRuntime.Current.InvokeAsync("BlazorDevExtreme_DxDataGrid_GetOption", dxTarget, "selection"); - } - public static new Task SetSelection(ElementRef dxTarget, object value) - { - return JSRuntime.Current.InvokeAsync("BlazorDevExtreme_DxDataGrid_SetOption", dxTarget, "selection", value); - } public static Task GetSelectionFilter(ElementRef dxTarget) { return JSRuntime.Current.InvokeAsync("BlazorDevExtreme_DxDataGrid_GetOption", dxTarget, "selectionFilter"); @@ -3863,14 +3624,6 @@ public static Task SetPickerType(ElementRef dxTarget, string value) { return JSRuntime.Current.InvokeAsync("BlazorDevExtreme_DxDateBox_SetOption", dxTarget, "pickerType", value); } - public static new Task GetPlaceholder(ElementRef dxTarget) - { - return JSRuntime.Current.InvokeAsync("BlazorDevExtreme_DxDateBox_GetOption", dxTarget, "placeholder"); - } - public static new Task SetPlaceholder(ElementRef dxTarget, string value) - { - return JSRuntime.Current.InvokeAsync("BlazorDevExtreme_DxDateBox_SetOption", dxTarget, "placeholder", value); - } public static Task GetShowAnalogClock(ElementRef dxTarget) { return JSRuntime.Current.InvokeAsync("BlazorDevExtreme_DxDateBox_GetOption", dxTarget, "showAnalogClock"); @@ -3887,14 +3640,6 @@ public static Task SetType(ElementRef dxTarget, string value) { return JSRuntime.Current.InvokeAsync("BlazorDevExtreme_DxDateBox_SetOption", dxTarget, "type", value); } - public static new Task GetValue(ElementRef dxTarget) - { - return JSRuntime.Current.InvokeAsync("BlazorDevExtreme_DxDateBox_GetOption", dxTarget, "value"); - } - public static new Task SetValue(ElementRef dxTarget, object value) - { - return JSRuntime.Current.InvokeAsync("BlazorDevExtreme_DxDateBox_SetOption", dxTarget, "value", value); - } public static Task Close(ElementRef dxTarget) { return JSRuntime.Current.InvokeAsync("BlazorDevExtreme_DxDateBox_close_0", dxTarget); @@ -3963,14 +3708,6 @@ public static Task Init(ElementRef dxTarget, DevExpress.Ui.DxDropDownBoxOptions string json = SimpleJson.SimpleJson.SerializeObject(options); return JSRuntime.Current.InvokeAsync("BlazorDevExtreme_DxDropDownBox_Init", dxTarget, json); } - public static new Task GetAcceptCustomValue(ElementRef dxTarget) - { - return JSRuntime.Current.InvokeAsync("BlazorDevExtreme_DxDropDownBox_GetOption", dxTarget, "acceptCustomValue"); - } - public static new Task SetAcceptCustomValue(ElementRef dxTarget, bool? value) - { - return JSRuntime.Current.InvokeAsync("BlazorDevExtreme_DxDropDownBox_SetOption", dxTarget, "acceptCustomValue", value); - } public static Task GetContentTemplate(ElementRef dxTarget) { return JSRuntime.Current.InvokeAsync("BlazorDevExtreme_DxDropDownBox_GetOption", dxTarget, "contentTemplate"); @@ -3995,13 +3732,45 @@ public static Task SetFieldTemplate(ElementRef dxTarget, object value) { return JSRuntime.Current.InvokeAsync("BlazorDevExtreme_DxDropDownBox_SetOption", dxTarget, "fieldTemplate", value); } - public static new Task GetValueChangeEvent(ElementRef dxTarget) + public static Task GetDataSource(ElementRef dxTarget) + { + return JSRuntime.Current.InvokeAsync("BlazorDevExtreme_DxDropDownBox_GetOption", dxTarget, "dataSource"); + } + public static Task SetDataSource(ElementRef dxTarget, object value) + { + return JSRuntime.Current.InvokeAsync("BlazorDevExtreme_DxDropDownBox_SetOption", dxTarget, "dataSource", value); + } + public static Task GetDisplayExpr(ElementRef dxTarget) + { + return JSRuntime.Current.InvokeAsync("BlazorDevExtreme_DxDropDownBox_GetOption", dxTarget, "displayExpr"); + } + public static Task SetDisplayExpr(ElementRef dxTarget, object value) + { + return JSRuntime.Current.InvokeAsync("BlazorDevExtreme_DxDropDownBox_SetOption", dxTarget, "displayExpr", value); + } + public static Task GetItems(ElementRef dxTarget) + { + return JSRuntime.Current.InvokeAsync("BlazorDevExtreme_DxDropDownBox_GetOption", dxTarget, "items"); + } + public static Task SetItems(ElementRef dxTarget, object value) + { + return JSRuntime.Current.InvokeAsync("BlazorDevExtreme_DxDropDownBox_SetOption", dxTarget, "items", value); + } + public static Task GetItemTemplate(ElementRef dxTarget) + { + return JSRuntime.Current.InvokeAsync("BlazorDevExtreme_DxDropDownBox_GetOption", dxTarget, "itemTemplate"); + } + public static Task SetItemTemplate(ElementRef dxTarget, object value) + { + return JSRuntime.Current.InvokeAsync("BlazorDevExtreme_DxDropDownBox_SetOption", dxTarget, "itemTemplate", value); + } + public static Task GetValueExpr(ElementRef dxTarget) { - return JSRuntime.Current.InvokeAsync("BlazorDevExtreme_DxDropDownBox_GetOption", dxTarget, "valueChangeEvent"); + return JSRuntime.Current.InvokeAsync("BlazorDevExtreme_DxDropDownBox_GetOption", dxTarget, "valueExpr"); } - public static new Task SetValueChangeEvent(ElementRef dxTarget, string value) + public static Task SetValueExpr(ElementRef dxTarget, object value) { - return JSRuntime.Current.InvokeAsync("BlazorDevExtreme_DxDropDownBox_SetOption", dxTarget, "valueChangeEvent", value); + return JSRuntime.Current.InvokeAsync("BlazorDevExtreme_DxDropDownBox_SetOption", dxTarget, "valueExpr", value); } public static Task GetDataSourceEx(ElementRef dxTarget) { @@ -4027,14 +3796,6 @@ public static void OnItemClick(string identifier) { ItemClick?.Invoke(null, new JQueryEventArgs(identifier)); } - public static new Task GetActiveStateEnabled(ElementRef dxTarget) - { - return JSRuntime.Current.InvokeAsync("BlazorDevExtreme_DxDropDownMenu_GetOption", dxTarget, "activeStateEnabled"); - } - public static new Task SetActiveStateEnabled(ElementRef dxTarget, bool? value) - { - return JSRuntime.Current.InvokeAsync("BlazorDevExtreme_DxDropDownMenu_SetOption", dxTarget, "activeStateEnabled", value); - } public static Task GetButtonIcon(ElementRef dxTarget) { return JSRuntime.Current.InvokeAsync("BlazorDevExtreme_DxDropDownMenu_GetOption", dxTarget, "buttonIcon"); @@ -4059,14 +3820,6 @@ public static Task SetDataSource(ElementRef dxTarget, object value) { return JSRuntime.Current.InvokeAsync("BlazorDevExtreme_DxDropDownMenu_SetOption", dxTarget, "dataSource", value); } - public static new Task GetHoverStateEnabled(ElementRef dxTarget) - { - return JSRuntime.Current.InvokeAsync("BlazorDevExtreme_DxDropDownMenu_GetOption", dxTarget, "hoverStateEnabled"); - } - public static new Task SetHoverStateEnabled(ElementRef dxTarget, bool? value) - { - return JSRuntime.Current.InvokeAsync("BlazorDevExtreme_DxDropDownMenu_SetOption", dxTarget, "hoverStateEnabled", value); - } public static Task GetItems(ElementRef dxTarget) { return JSRuntime.Current.InvokeAsync("BlazorDevExtreme_DxDropDownMenu_GetOption", dxTarget, "items"); @@ -4131,7 +3884,6 @@ public class DxFileUploaderInterop: EditorInterop public static event EventHandler Uploaded; public static event EventHandler UploadError; public static event EventHandler UploadStarted; - public static event EventHandler ValueChanged; public static Task Init(ElementRef dxTarget, DevExpress.Ui.DxFileUploaderOptions options) { string json = SimpleJson.SimpleJson.SerializeObject(options); @@ -4162,11 +3914,6 @@ public static void OnUploadStarted(string identifier) { UploadStarted?.Invoke(null, new JQueryEventArgs(identifier)); } - [JSInvokable("DevExpress.Ui.DxFileUploaderInterop.OnValueChanged")] - public static void OnValueChanged(string identifier) - { - ValueChanged?.Invoke(null, new JQueryEventArgs(identifier)); - } public static Task GetAccept(ElementRef dxTarget) { return JSRuntime.Current.InvokeAsync("BlazorDevExtreme_DxFileUploader_GetOption", dxTarget, "accept"); @@ -4183,14 +3930,6 @@ public static Task SetAllowCanceling(ElementRef dxTarget, bool? value) { return JSRuntime.Current.InvokeAsync("BlazorDevExtreme_DxFileUploader_SetOption", dxTarget, "allowCanceling", value); } - public static new Task GetFocusStateEnabled(ElementRef dxTarget) - { - return JSRuntime.Current.InvokeAsync("BlazorDevExtreme_DxFileUploader_GetOption", dxTarget, "focusStateEnabled"); - } - public static new Task SetFocusStateEnabled(ElementRef dxTarget, bool? value) - { - return JSRuntime.Current.InvokeAsync("BlazorDevExtreme_DxFileUploader_SetOption", dxTarget, "focusStateEnabled", value); - } public static Task GetLabelText(ElementRef dxTarget) { return JSRuntime.Current.InvokeAsync("BlazorDevExtreme_DxFileUploader_GetOption", dxTarget, "labelText"); @@ -4303,14 +4042,6 @@ public static Task SetUploadUrl(ElementRef dxTarget, string value) { return JSRuntime.Current.InvokeAsync("BlazorDevExtreme_DxFileUploader_SetOption", dxTarget, "uploadUrl", value); } - public static new Task GetValue(ElementRef dxTarget) - { - return JSRuntime.Current.InvokeAsync("BlazorDevExtreme_DxFileUploader_GetOption", dxTarget, "value"); - } - public static new Task SetValue(ElementRef dxTarget, object value) - { - return JSRuntime.Current.InvokeAsync("BlazorDevExtreme_DxFileUploader_SetOption", dxTarget, "value", value); - } } public class DxFilterBuilderInterop: WidgetInterop { @@ -4629,14 +4360,6 @@ public static Task SetAnimationEnabled(ElementRef dxTarget, bool? value) { return JSRuntime.Current.InvokeAsync("BlazorDevExtreme_DxGallery_SetOption", dxTarget, "animationEnabled", value); } - public static new Task GetFocusStateEnabled(ElementRef dxTarget) - { - return JSRuntime.Current.InvokeAsync("BlazorDevExtreme_DxGallery_GetOption", dxTarget, "focusStateEnabled"); - } - public static new Task SetFocusStateEnabled(ElementRef dxTarget, bool? value) - { - return JSRuntime.Current.InvokeAsync("BlazorDevExtreme_DxGallery_SetOption", dxTarget, "focusStateEnabled", value); - } public static Task GetIndicatorEnabled(ElementRef dxTarget) { return JSRuntime.Current.InvokeAsync("BlazorDevExtreme_DxGallery_GetOption", dxTarget, "indicatorEnabled"); @@ -4661,14 +4384,6 @@ public static Task SetLoop(ElementRef dxTarget, bool? value) { return JSRuntime.Current.InvokeAsync("BlazorDevExtreme_DxGallery_SetOption", dxTarget, "loop", value); } - public static new Task GetSelectedIndex(ElementRef dxTarget) - { - return JSRuntime.Current.InvokeAsync("BlazorDevExtreme_DxGallery_GetOption", dxTarget, "selectedIndex"); - } - public static new Task SetSelectedIndex(ElementRef dxTarget, float? value) - { - return JSRuntime.Current.InvokeAsync("BlazorDevExtreme_DxGallery_SetOption", dxTarget, "selectedIndex", value); - } public static Task GetShowIndicator(ElementRef dxTarget) { return JSRuntime.Current.InvokeAsync("BlazorDevExtreme_DxGallery_GetOption", dxTarget, "showIndicator"); @@ -4733,11 +4448,8 @@ public static Task PrevItem(ElementRef dxTarget, bool animation) public class DxListInterop: CollectionWidgetInterop { public static event EventHandler GroupRendered; - public static event EventHandler ItemClick; - public static event EventHandler ItemContextMenu; public static event EventHandler ItemDeleted; public static event EventHandler ItemDeleting; - public static event EventHandler ItemHold; public static event EventHandler ItemReordered; public static event EventHandler ItemSwipe; public static event EventHandler PageLoading; @@ -4754,16 +4466,6 @@ public static void OnGroupRendered(string identifier) { GroupRendered?.Invoke(null, new JQueryEventArgs(identifier)); } - [JSInvokable("DevExpress.Ui.DxListInterop.OnItemClick")] - public static void OnItemClick(string identifier) - { - ItemClick?.Invoke(null, new JQueryEventArgs(identifier)); - } - [JSInvokable("DevExpress.Ui.DxListInterop.OnItemContextMenu")] - public static void OnItemContextMenu(string identifier) - { - ItemContextMenu?.Invoke(null, new JQueryEventArgs(identifier)); - } [JSInvokable("DevExpress.Ui.DxListInterop.OnItemDeleted")] public static void OnItemDeleted(string identifier) { @@ -4774,11 +4476,6 @@ public static void OnItemDeleting(string identifier) { ItemDeleting?.Invoke(null, new JQueryEventArgs(identifier)); } - [JSInvokable("DevExpress.Ui.DxListInterop.OnItemHold")] - public static void OnItemHold(string identifier) - { - ItemHold?.Invoke(null, new JQueryEventArgs(identifier)); - } [JSInvokable("DevExpress.Ui.DxListInterop.OnItemReordered")] public static void OnItemReordered(string identifier) { @@ -4809,14 +4506,6 @@ public static void OnSelectAllValueChanged(string identifier) { SelectAllValueChanged?.Invoke(null, new JQueryEventArgs(identifier)); } - public static new Task GetActiveStateEnabled(ElementRef dxTarget) - { - return JSRuntime.Current.InvokeAsync("BlazorDevExtreme_DxList_GetOption", dxTarget, "activeStateEnabled"); - } - public static new Task SetActiveStateEnabled(ElementRef dxTarget, bool? value) - { - return JSRuntime.Current.InvokeAsync("BlazorDevExtreme_DxList_SetOption", dxTarget, "activeStateEnabled", value); - } public static Task GetAllowItemDeleting(ElementRef dxTarget) { return JSRuntime.Current.InvokeAsync("BlazorDevExtreme_DxList_GetOption", dxTarget, "allowItemDeleting"); @@ -4849,14 +4538,6 @@ public static Task SetCollapsibleGroups(ElementRef dxTarget, bool? value) { return JSRuntime.Current.InvokeAsync("BlazorDevExtreme_DxList_SetOption", dxTarget, "collapsibleGroups", value); } - public static new Task GetFocusStateEnabled(ElementRef dxTarget) - { - return JSRuntime.Current.InvokeAsync("BlazorDevExtreme_DxList_GetOption", dxTarget, "focusStateEnabled"); - } - public static new Task SetFocusStateEnabled(ElementRef dxTarget, bool? value) - { - return JSRuntime.Current.InvokeAsync("BlazorDevExtreme_DxList_SetOption", dxTarget, "focusStateEnabled", value); - } public static Task GetGrouped(ElementRef dxTarget) { return JSRuntime.Current.InvokeAsync("BlazorDevExtreme_DxList_GetOption", dxTarget, "grouped"); @@ -4873,14 +4554,6 @@ public static Task SetGroupTemplate(ElementRef dxTarget, object value) { return JSRuntime.Current.InvokeAsync("BlazorDevExtreme_DxList_SetOption", dxTarget, "groupTemplate", value); } - public static new Task GetHoverStateEnabled(ElementRef dxTarget) - { - return JSRuntime.Current.InvokeAsync("BlazorDevExtreme_DxList_GetOption", dxTarget, "hoverStateEnabled"); - } - public static new Task SetHoverStateEnabled(ElementRef dxTarget, bool? value) - { - return JSRuntime.Current.InvokeAsync("BlazorDevExtreme_DxList_SetOption", dxTarget, "hoverStateEnabled", value); - } public static Task GetIndicateLoading(ElementRef dxTarget) { return JSRuntime.Current.InvokeAsync("BlazorDevExtreme_DxList_GetOption", dxTarget, "indicateLoading"); @@ -5033,6 +4706,54 @@ public static Task SetUseNativeScrolling(ElementRef dxTarget, bool? value) { return JSRuntime.Current.InvokeAsync("BlazorDevExtreme_DxList_SetOption", dxTarget, "useNativeScrolling", value); } + public static Task GetSearchEditorOptions(ElementRef dxTarget) + { + return JSRuntime.Current.InvokeAsync("BlazorDevExtreme_DxList_GetOption", dxTarget, "searchEditorOptions"); + } + public static Task SetSearchEditorOptions(ElementRef dxTarget, object value) + { + return JSRuntime.Current.InvokeAsync("BlazorDevExtreme_DxList_SetOption", dxTarget, "searchEditorOptions", value); + } + public static Task GetSearchEnabled(ElementRef dxTarget) + { + return JSRuntime.Current.InvokeAsync("BlazorDevExtreme_DxList_GetOption", dxTarget, "searchEnabled"); + } + public static Task SetSearchEnabled(ElementRef dxTarget, bool? value) + { + return JSRuntime.Current.InvokeAsync("BlazorDevExtreme_DxList_SetOption", dxTarget, "searchEnabled", value); + } + public static Task GetSearchExpr(ElementRef dxTarget) + { + return JSRuntime.Current.InvokeAsync("BlazorDevExtreme_DxList_GetOption", dxTarget, "searchExpr"); + } + public static Task SetSearchExpr(ElementRef dxTarget, object value) + { + return JSRuntime.Current.InvokeAsync("BlazorDevExtreme_DxList_SetOption", dxTarget, "searchExpr", value); + } + public static Task GetSearchMode(ElementRef dxTarget) + { + return JSRuntime.Current.InvokeAsync("BlazorDevExtreme_DxList_GetOption", dxTarget, "searchMode"); + } + public static Task SetSearchMode(ElementRef dxTarget, string value) + { + return JSRuntime.Current.InvokeAsync("BlazorDevExtreme_DxList_SetOption", dxTarget, "searchMode", value); + } + public static Task GetSearchTimeout(ElementRef dxTarget) + { + return JSRuntime.Current.InvokeAsync("BlazorDevExtreme_DxList_GetOption", dxTarget, "searchTimeout"); + } + public static Task SetSearchTimeout(ElementRef dxTarget, float? value) + { + return JSRuntime.Current.InvokeAsync("BlazorDevExtreme_DxList_SetOption", dxTarget, "searchTimeout", value); + } + public static Task GetSearchValue(ElementRef dxTarget) + { + return JSRuntime.Current.InvokeAsync("BlazorDevExtreme_DxList_GetOption", dxTarget, "searchValue"); + } + public static Task SetSearchValue(ElementRef dxTarget, string value) + { + return JSRuntime.Current.InvokeAsync("BlazorDevExtreme_DxList_SetOption", dxTarget, "searchValue", value); + } public static Task ClientHeight(ElementRef dxTarget) { return JSRuntime.Current.InvokeAsync("BlazorDevExtreme_DxList_clientHeight_0", dxTarget); @@ -5125,38 +4846,14 @@ public static Task Init(ElementRef dxTarget, DevExpress.Ui.DxLoadPanelOptions op string json = SimpleJson.SimpleJson.SerializeObject(options); return JSRuntime.Current.InvokeAsync("BlazorDevExtreme_DxLoadPanel_Init", dxTarget, json); } - public static new Task GetAnimation(ElementRef dxTarget) + public static Task GetDelay(ElementRef dxTarget) { - return JSRuntime.Current.InvokeAsync("BlazorDevExtreme_DxLoadPanel_GetOption", dxTarget, "animation"); + return JSRuntime.Current.InvokeAsync("BlazorDevExtreme_DxLoadPanel_GetOption", dxTarget, "delay"); } - public static new Task SetAnimation(ElementRef dxTarget, object value) - { - return JSRuntime.Current.InvokeAsync("BlazorDevExtreme_DxLoadPanel_SetOption", dxTarget, "animation", value); - } - public static Task GetDelay(ElementRef dxTarget) - { - return JSRuntime.Current.InvokeAsync("BlazorDevExtreme_DxLoadPanel_GetOption", dxTarget, "delay"); - } - public static Task SetDelay(ElementRef dxTarget, float? value) + public static Task SetDelay(ElementRef dxTarget, float? value) { return JSRuntime.Current.InvokeAsync("BlazorDevExtreme_DxLoadPanel_SetOption", dxTarget, "delay", value); } - public static new Task GetFocusStateEnabled(ElementRef dxTarget) - { - return JSRuntime.Current.InvokeAsync("BlazorDevExtreme_DxLoadPanel_GetOption", dxTarget, "focusStateEnabled"); - } - public static new Task SetFocusStateEnabled(ElementRef dxTarget, bool? value) - { - return JSRuntime.Current.InvokeAsync("BlazorDevExtreme_DxLoadPanel_SetOption", dxTarget, "focusStateEnabled", value); - } - public static new Task GetHeight(ElementRef dxTarget) - { - return JSRuntime.Current.InvokeAsync("BlazorDevExtreme_DxLoadPanel_GetOption", dxTarget, "height"); - } - public static new Task SetHeight(ElementRef dxTarget, float? value) - { - return JSRuntime.Current.InvokeAsync("BlazorDevExtreme_DxLoadPanel_SetOption", dxTarget, "height", value); - } public static Task GetIndicatorSrc(ElementRef dxTarget) { return JSRuntime.Current.InvokeAsync("BlazorDevExtreme_DxLoadPanel_GetOption", dxTarget, "indicatorSrc"); @@ -5173,22 +4870,6 @@ public static Task SetMessage(ElementRef dxTarget, string value) { return JSRuntime.Current.InvokeAsync("BlazorDevExtreme_DxLoadPanel_SetOption", dxTarget, "message", value); } - public static new Task GetPosition(ElementRef dxTarget) - { - return JSRuntime.Current.InvokeAsync("BlazorDevExtreme_DxLoadPanel_GetOption", dxTarget, "position"); - } - public static new Task SetPosition(ElementRef dxTarget, object value) - { - return JSRuntime.Current.InvokeAsync("BlazorDevExtreme_DxLoadPanel_SetOption", dxTarget, "position", value); - } - public static new Task GetShadingColor(ElementRef dxTarget) - { - return JSRuntime.Current.InvokeAsync("BlazorDevExtreme_DxLoadPanel_GetOption", dxTarget, "shadingColor"); - } - public static new Task SetShadingColor(ElementRef dxTarget, string value) - { - return JSRuntime.Current.InvokeAsync("BlazorDevExtreme_DxLoadPanel_SetOption", dxTarget, "shadingColor", value); - } public static Task GetShowIndicator(ElementRef dxTarget) { return JSRuntime.Current.InvokeAsync("BlazorDevExtreme_DxLoadPanel_GetOption", dxTarget, "showIndicator"); @@ -5205,14 +4886,6 @@ public static Task SetShowPane(ElementRef dxTarget, bool? value) { return JSRuntime.Current.InvokeAsync("BlazorDevExtreme_DxLoadPanel_SetOption", dxTarget, "showPane", value); } - public static new Task GetWidth(ElementRef dxTarget) - { - return JSRuntime.Current.InvokeAsync("BlazorDevExtreme_DxLoadPanel_GetOption", dxTarget, "width"); - } - public static new Task SetWidth(ElementRef dxTarget, float? value) - { - return JSRuntime.Current.InvokeAsync("BlazorDevExtreme_DxLoadPanel_SetOption", dxTarget, "width", value); - } } public class DxLookupInterop: DxDropDownListInterop { @@ -5220,7 +4893,6 @@ public class DxLookupInterop: DxDropDownListInterop public static event EventHandler PullRefresh; public static event EventHandler Scroll; public static event EventHandler TitleRendered; - public static event EventHandler ValueChanged; public static Task Init(ElementRef dxTarget, DevExpress.Ui.DxLookupOptions options) { string json = SimpleJson.SimpleJson.SerializeObject(options); @@ -5246,11 +4918,6 @@ public static void OnTitleRendered(string identifier) { TitleRendered?.Invoke(null, new JQueryEventArgs(identifier)); } - [JSInvokable("DevExpress.Ui.DxLookupInterop.OnValueChanged")] - public static void OnValueChanged(string identifier) - { - ValueChanged?.Invoke(null, new JQueryEventArgs(identifier)); - } public static Task GetAnimation(ElementRef dxTarget) { return JSRuntime.Current.InvokeAsync("BlazorDevExtreme_DxLookup_GetOption", dxTarget, "animation"); @@ -5267,14 +4934,6 @@ public static Task SetApplyButtonText(ElementRef dxTarget, string value) { return JSRuntime.Current.InvokeAsync("BlazorDevExtreme_DxLookup_SetOption", dxTarget, "applyButtonText", value); } - public static new Task GetApplyValueMode(ElementRef dxTarget) - { - return JSRuntime.Current.InvokeAsync("BlazorDevExtreme_DxLookup_GetOption", dxTarget, "applyValueMode"); - } - public static new Task SetApplyValueMode(ElementRef dxTarget, string value) - { - return JSRuntime.Current.InvokeAsync("BlazorDevExtreme_DxLookup_SetOption", dxTarget, "applyValueMode", value); - } public static Task GetCancelButtonText(ElementRef dxTarget) { return JSRuntime.Current.InvokeAsync("BlazorDevExtreme_DxLookup_GetOption", dxTarget, "cancelButtonText"); @@ -5315,14 +4974,6 @@ public static Task SetFieldTemplate(ElementRef dxTarget, object value) { return JSRuntime.Current.InvokeAsync("BlazorDevExtreme_DxLookup_SetOption", dxTarget, "fieldTemplate", value); } - public static new Task GetFocusStateEnabled(ElementRef dxTarget) - { - return JSRuntime.Current.InvokeAsync("BlazorDevExtreme_DxLookup_GetOption", dxTarget, "focusStateEnabled"); - } - public static new Task SetFocusStateEnabled(ElementRef dxTarget, bool? value) - { - return JSRuntime.Current.InvokeAsync("BlazorDevExtreme_DxLookup_SetOption", dxTarget, "focusStateEnabled", value); - } public static Task GetFullScreen(ElementRef dxTarget) { return JSRuntime.Current.InvokeAsync("BlazorDevExtreme_DxLookup_GetOption", dxTarget, "fullScreen"); @@ -5331,22 +4982,6 @@ public static Task SetFullScreen(ElementRef dxTarget, bool? value) { return JSRuntime.Current.InvokeAsync("BlazorDevExtreme_DxLookup_SetOption", dxTarget, "fullScreen", value); } - public static new Task GetGrouped(ElementRef dxTarget) - { - return JSRuntime.Current.InvokeAsync("BlazorDevExtreme_DxLookup_GetOption", dxTarget, "grouped"); - } - public static new Task SetGrouped(ElementRef dxTarget, bool? value) - { - return JSRuntime.Current.InvokeAsync("BlazorDevExtreme_DxLookup_SetOption", dxTarget, "grouped", value); - } - public static new Task GetGroupTemplate(ElementRef dxTarget) - { - return JSRuntime.Current.InvokeAsync("BlazorDevExtreme_DxLookup_GetOption", dxTarget, "groupTemplate"); - } - public static new Task SetGroupTemplate(ElementRef dxTarget, object value) - { - return JSRuntime.Current.InvokeAsync("BlazorDevExtreme_DxLookup_SetOption", dxTarget, "groupTemplate", value); - } public static Task GetNextButtonText(ElementRef dxTarget) { return JSRuntime.Current.InvokeAsync("BlazorDevExtreme_DxLookup_GetOption", dxTarget, "nextButtonText"); @@ -5371,14 +5006,6 @@ public static Task SetPageLoadMode(ElementRef dxTarget, string value) { return JSRuntime.Current.InvokeAsync("BlazorDevExtreme_DxLookup_SetOption", dxTarget, "pageLoadMode", value); } - public static new Task GetPlaceholder(ElementRef dxTarget) - { - return JSRuntime.Current.InvokeAsync("BlazorDevExtreme_DxLookup_GetOption", dxTarget, "placeholder"); - } - public static new Task SetPlaceholder(ElementRef dxTarget, string value) - { - return JSRuntime.Current.InvokeAsync("BlazorDevExtreme_DxLookup_SetOption", dxTarget, "placeholder", value); - } public static Task GetPopupHeight(ElementRef dxTarget) { return JSRuntime.Current.InvokeAsync("BlazorDevExtreme_DxLookup_GetOption", dxTarget, "popupHeight"); @@ -5435,14 +5062,6 @@ public static Task SetRefreshingText(ElementRef dxTarget, string value) { return JSRuntime.Current.InvokeAsync("BlazorDevExtreme_DxLookup_SetOption", dxTarget, "refreshingText", value); } - public static new Task GetSearchEnabled(ElementRef dxTarget) - { - return JSRuntime.Current.InvokeAsync("BlazorDevExtreme_DxLookup_GetOption", dxTarget, "searchEnabled"); - } - public static new Task SetSearchEnabled(ElementRef dxTarget, bool? value) - { - return JSRuntime.Current.InvokeAsync("BlazorDevExtreme_DxLookup_SetOption", dxTarget, "searchEnabled", value); - } public static Task GetSearchPlaceholder(ElementRef dxTarget) { return JSRuntime.Current.InvokeAsync("BlazorDevExtreme_DxLookup_GetOption", dxTarget, "searchPlaceholder"); @@ -5467,14 +5086,6 @@ public static Task SetShowCancelButton(ElementRef dxTarget, bool? value) { return JSRuntime.Current.InvokeAsync("BlazorDevExtreme_DxLookup_SetOption", dxTarget, "showCancelButton", value); } - public static new Task GetShowClearButton(ElementRef dxTarget) - { - return JSRuntime.Current.InvokeAsync("BlazorDevExtreme_DxLookup_GetOption", dxTarget, "showClearButton"); - } - public static new Task SetShowClearButton(ElementRef dxTarget, bool? value) - { - return JSRuntime.Current.InvokeAsync("BlazorDevExtreme_DxLookup_SetOption", dxTarget, "showClearButton", value); - } public static Task GetShowPopupTitle(ElementRef dxTarget) { return JSRuntime.Current.InvokeAsync("BlazorDevExtreme_DxLookup_GetOption", dxTarget, "showPopupTitle"); @@ -5583,22 +5194,6 @@ public static Task SetControls(ElementRef dxTarget, bool? value) { return JSRuntime.Current.InvokeAsync("BlazorDevExtreme_DxMap_SetOption", dxTarget, "controls", value); } - public static new Task GetFocusStateEnabled(ElementRef dxTarget) - { - return JSRuntime.Current.InvokeAsync("BlazorDevExtreme_DxMap_GetOption", dxTarget, "focusStateEnabled"); - } - public static new Task SetFocusStateEnabled(ElementRef dxTarget, bool? value) - { - return JSRuntime.Current.InvokeAsync("BlazorDevExtreme_DxMap_SetOption", dxTarget, "focusStateEnabled", value); - } - public static new Task GetHeight(ElementRef dxTarget) - { - return JSRuntime.Current.InvokeAsync("BlazorDevExtreme_DxMap_GetOption", dxTarget, "height"); - } - public static new Task SetHeight(ElementRef dxTarget, object value) - { - return JSRuntime.Current.InvokeAsync("BlazorDevExtreme_DxMap_SetOption", dxTarget, "height", value); - } public static Task GetKey(ElementRef dxTarget) { return JSRuntime.Current.InvokeAsync("BlazorDevExtreme_DxMap_GetOption", dxTarget, "key"); @@ -5647,14 +5242,6 @@ public static Task SetType(ElementRef dxTarget, string value) { return JSRuntime.Current.InvokeAsync("BlazorDevExtreme_DxMap_SetOption", dxTarget, "type", value); } - public static new Task GetWidth(ElementRef dxTarget) - { - return JSRuntime.Current.InvokeAsync("BlazorDevExtreme_DxMap_GetOption", dxTarget, "width"); - } - public static new Task SetWidth(ElementRef dxTarget, object value) - { - return JSRuntime.Current.InvokeAsync("BlazorDevExtreme_DxMap_SetOption", dxTarget, "width", value); - } public static Task GetZoom(ElementRef dxTarget) { return JSRuntime.Current.InvokeAsync("BlazorDevExtreme_DxMap_GetOption", dxTarget, "zoom"); @@ -5727,14 +5314,6 @@ public static Task SetHideSubmenuOnMouseLeave(ElementRef dxTarget, bool? value) { return JSRuntime.Current.InvokeAsync("BlazorDevExtreme_DxMenu_SetOption", dxTarget, "hideSubmenuOnMouseLeave", value); } - public static new Task GetItems(ElementRef dxTarget) - { - return JSRuntime.Current.InvokeAsync("BlazorDevExtreme_DxMenu_GetOption", dxTarget, "items"); - } - public static new Task SetItems(ElementRef dxTarget, object value) - { - return JSRuntime.Current.InvokeAsync("BlazorDevExtreme_DxMenu_SetOption", dxTarget, "items", value); - } public static Task GetOrientation(ElementRef dxTarget) { return JSRuntime.Current.InvokeAsync("BlazorDevExtreme_DxMenu_GetOption", dxTarget, "orientation"); @@ -5783,14 +5362,6 @@ public static Task SetDeferRendering(ElementRef dxTarget, bool? value) { return JSRuntime.Current.InvokeAsync("BlazorDevExtreme_DxMultiView_SetOption", dxTarget, "deferRendering", value); } - public static new Task GetFocusStateEnabled(ElementRef dxTarget) - { - return JSRuntime.Current.InvokeAsync("BlazorDevExtreme_DxMultiView_GetOption", dxTarget, "focusStateEnabled"); - } - public static new Task SetFocusStateEnabled(ElementRef dxTarget, bool? value) - { - return JSRuntime.Current.InvokeAsync("BlazorDevExtreme_DxMultiView_SetOption", dxTarget, "focusStateEnabled", value); - } public static Task GetLoop(ElementRef dxTarget) { return JSRuntime.Current.InvokeAsync("BlazorDevExtreme_DxMultiView_GetOption", dxTarget, "loop"); @@ -5799,14 +5370,6 @@ public static Task SetLoop(ElementRef dxTarget, bool? value) { return JSRuntime.Current.InvokeAsync("BlazorDevExtreme_DxMultiView_SetOption", dxTarget, "loop", value); } - public static new Task GetSelectedIndex(ElementRef dxTarget) - { - return JSRuntime.Current.InvokeAsync("BlazorDevExtreme_DxMultiView_GetOption", dxTarget, "selectedIndex"); - } - public static new Task SetSelectedIndex(ElementRef dxTarget, float? value) - { - return JSRuntime.Current.InvokeAsync("BlazorDevExtreme_DxMultiView_SetOption", dxTarget, "selectedIndex", value); - } public static Task GetSwipeEnabled(ElementRef dxTarget) { return JSRuntime.Current.InvokeAsync("BlazorDevExtreme_DxMultiView_GetOption", dxTarget, "swipeEnabled"); @@ -5823,14 +5386,6 @@ public static Task Init(ElementRef dxTarget, DevExpress.Ui.DxNavBarOptions optio string json = SimpleJson.SimpleJson.SerializeObject(options); return JSRuntime.Current.InvokeAsync("BlazorDevExtreme_DxNavBar_Init", dxTarget, json); } - public static new Task GetScrollByContent(ElementRef dxTarget) - { - return JSRuntime.Current.InvokeAsync("BlazorDevExtreme_DxNavBar_GetOption", dxTarget, "scrollByContent"); - } - public static new Task SetScrollByContent(ElementRef dxTarget, bool? value) - { - return JSRuntime.Current.InvokeAsync("BlazorDevExtreme_DxNavBar_SetOption", dxTarget, "scrollByContent", value); - } } public class DxNumberBoxInterop: DxTextEditorInterop { @@ -5903,14 +5458,6 @@ public static Task SetUseLargeSpinButtons(ElementRef dxTarget, bool? value) { return JSRuntime.Current.InvokeAsync("BlazorDevExtreme_DxNumberBox_SetOption", dxTarget, "useLargeSpinButtons", value); } - public static new Task GetValue(ElementRef dxTarget) - { - return JSRuntime.Current.InvokeAsync("BlazorDevExtreme_DxNumberBox_GetOption", dxTarget, "value"); - } - public static new Task SetValue(ElementRef dxTarget, float? value) - { - return JSRuntime.Current.InvokeAsync("BlazorDevExtreme_DxNumberBox_SetOption", dxTarget, "value", value); - } } public class DxOverlayInterop: WidgetInterop { @@ -5991,14 +5538,6 @@ public static Task SetDragEnabled(ElementRef dxTarget, bool? value) { return JSRuntime.Current.InvokeAsync("BlazorDevExtreme_DxOverlay_SetOption", dxTarget, "dragEnabled", value); } - public static new Task GetHeight(ElementRef dxTarget) - { - return JSRuntime.Current.InvokeAsync("BlazorDevExtreme_DxOverlay_GetOption", dxTarget, "height"); - } - public static new Task SetHeight(ElementRef dxTarget, object value) - { - return JSRuntime.Current.InvokeAsync("BlazorDevExtreme_DxOverlay_SetOption", dxTarget, "height", value); - } public static Task GetMaxHeight(ElementRef dxTarget) { return JSRuntime.Current.InvokeAsync("BlazorDevExtreme_DxOverlay_GetOption", dxTarget, "maxHeight"); @@ -6055,22 +5594,6 @@ public static Task SetShadingColor(ElementRef dxTarget, string value) { return JSRuntime.Current.InvokeAsync("BlazorDevExtreme_DxOverlay_SetOption", dxTarget, "shadingColor", value); } - public static new Task GetVisible(ElementRef dxTarget) - { - return JSRuntime.Current.InvokeAsync("BlazorDevExtreme_DxOverlay_GetOption", dxTarget, "visible"); - } - public static new Task SetVisible(ElementRef dxTarget, bool? value) - { - return JSRuntime.Current.InvokeAsync("BlazorDevExtreme_DxOverlay_SetOption", dxTarget, "visible", value); - } - public static new Task GetWidth(ElementRef dxTarget) - { - return JSRuntime.Current.InvokeAsync("BlazorDevExtreme_DxOverlay_GetOption", dxTarget, "width"); - } - public static new Task SetWidth(ElementRef dxTarget, object value) - { - return JSRuntime.Current.InvokeAsync("BlazorDevExtreme_DxOverlay_SetOption", dxTarget, "width", value); - } public static Task Content(ElementRef dxTarget) { return JSRuntime.Current.InvokeAsync("BlazorDevExtreme_DxOverlay_content_0", dxTarget); @@ -6107,22 +5630,6 @@ public static Task SetBackgroundImage(ElementRef dxTarget, object value) { return JSRuntime.Current.InvokeAsync("BlazorDevExtreme_DxPanorama_SetOption", dxTarget, "backgroundImage", value); } - public static new Task GetFocusStateEnabled(ElementRef dxTarget) - { - return JSRuntime.Current.InvokeAsync("BlazorDevExtreme_DxPanorama_GetOption", dxTarget, "focusStateEnabled"); - } - public static new Task SetFocusStateEnabled(ElementRef dxTarget, bool? value) - { - return JSRuntime.Current.InvokeAsync("BlazorDevExtreme_DxPanorama_SetOption", dxTarget, "focusStateEnabled", value); - } - public static new Task GetSelectedIndex(ElementRef dxTarget) - { - return JSRuntime.Current.InvokeAsync("BlazorDevExtreme_DxPanorama_GetOption", dxTarget, "selectedIndex"); - } - public static new Task SetSelectedIndex(ElementRef dxTarget, float? value) - { - return JSRuntime.Current.InvokeAsync("BlazorDevExtreme_DxPanorama_SetOption", dxTarget, "selectedIndex", value); - } public static Task GetTitle(ElementRef dxTarget) { return JSRuntime.Current.InvokeAsync("BlazorDevExtreme_DxPanorama_GetOption", dxTarget, "title"); @@ -6155,14 +5662,6 @@ public static Task SetItemTitleTemplate(ElementRef dxTarget, object value) { return JSRuntime.Current.InvokeAsync("BlazorDevExtreme_DxPivot_SetOption", dxTarget, "itemTitleTemplate", value); } - public static new Task GetSelectedIndex(ElementRef dxTarget) - { - return JSRuntime.Current.InvokeAsync("BlazorDevExtreme_DxPivot_GetOption", dxTarget, "selectedIndex"); - } - public static new Task SetSelectedIndex(ElementRef dxTarget, float? value) - { - return JSRuntime.Current.InvokeAsync("BlazorDevExtreme_DxPivot_SetOption", dxTarget, "selectedIndex", value); - } public static Task GetSwipeEnabled(ElementRef dxTarget) { return JSRuntime.Current.InvokeAsync("BlazorDevExtreme_DxPivot_GetOption", dxTarget, "swipeEnabled"); @@ -6465,14 +5964,6 @@ public static Task SetHeaderFilter(ElementRef dxTarget, object value) { return JSRuntime.Current.InvokeAsync("BlazorDevExtreme_DxPivotGridFieldChooser_SetOption", dxTarget, "headerFilter", value); } - public static new Task GetHeight(ElementRef dxTarget) - { - return JSRuntime.Current.InvokeAsync("BlazorDevExtreme_DxPivotGridFieldChooser_GetOption", dxTarget, "height"); - } - public static new Task SetHeight(ElementRef dxTarget, object value) - { - return JSRuntime.Current.InvokeAsync("BlazorDevExtreme_DxPivotGridFieldChooser_SetOption", dxTarget, "height", value); - } public static Task GetLayout(ElementRef dxTarget) { return JSRuntime.Current.InvokeAsync("BlazorDevExtreme_DxPivotGridFieldChooser_GetOption", dxTarget, "layout"); @@ -6521,30 +6012,6 @@ public static Task Init(ElementRef dxTarget, DevExpress.Ui.DxPopoverOptions opti string json = SimpleJson.SimpleJson.SerializeObject(options); return JSRuntime.Current.InvokeAsync("BlazorDevExtreme_DxPopover_Init", dxTarget, json); } - public static new Task GetAnimation(ElementRef dxTarget) - { - return JSRuntime.Current.InvokeAsync("BlazorDevExtreme_DxPopover_GetOption", dxTarget, "animation"); - } - public static new Task SetAnimation(ElementRef dxTarget, object value) - { - return JSRuntime.Current.InvokeAsync("BlazorDevExtreme_DxPopover_SetOption", dxTarget, "animation", value); - } - public static new Task GetCloseOnOutsideClick(ElementRef dxTarget) - { - return JSRuntime.Current.InvokeAsync("BlazorDevExtreme_DxPopover_GetOption", dxTarget, "closeOnOutsideClick"); - } - public static new Task SetCloseOnOutsideClick(ElementRef dxTarget, object value) - { - return JSRuntime.Current.InvokeAsync("BlazorDevExtreme_DxPopover_SetOption", dxTarget, "closeOnOutsideClick", value); - } - public static new Task GetHeight(ElementRef dxTarget) - { - return JSRuntime.Current.InvokeAsync("BlazorDevExtreme_DxPopover_GetOption", dxTarget, "height"); - } - public static new Task SetHeight(ElementRef dxTarget, object value) - { - return JSRuntime.Current.InvokeAsync("BlazorDevExtreme_DxPopover_SetOption", dxTarget, "height", value); - } public static Task GetHideEvent(ElementRef dxTarget) { return JSRuntime.Current.InvokeAsync("BlazorDevExtreme_DxPopover_GetOption", dxTarget, "hideEvent"); @@ -6553,22 +6020,6 @@ public static Task SetHideEvent(ElementRef dxTarget, object value) { return JSRuntime.Current.InvokeAsync("BlazorDevExtreme_DxPopover_SetOption", dxTarget, "hideEvent", value); } - public static new Task GetPosition(ElementRef dxTarget) - { - return JSRuntime.Current.InvokeAsync("BlazorDevExtreme_DxPopover_GetOption", dxTarget, "position"); - } - public static new Task SetPosition(ElementRef dxTarget, object value) - { - return JSRuntime.Current.InvokeAsync("BlazorDevExtreme_DxPopover_SetOption", dxTarget, "position", value); - } - public static new Task GetShading(ElementRef dxTarget) - { - return JSRuntime.Current.InvokeAsync("BlazorDevExtreme_DxPopover_GetOption", dxTarget, "shading"); - } - public static new Task SetShading(ElementRef dxTarget, bool? value) - { - return JSRuntime.Current.InvokeAsync("BlazorDevExtreme_DxPopover_SetOption", dxTarget, "shading", value); - } public static Task GetShowEvent(ElementRef dxTarget) { return JSRuntime.Current.InvokeAsync("BlazorDevExtreme_DxPopover_GetOption", dxTarget, "showEvent"); @@ -6577,14 +6028,6 @@ public static Task SetShowEvent(ElementRef dxTarget, object value) { return JSRuntime.Current.InvokeAsync("BlazorDevExtreme_DxPopover_SetOption", dxTarget, "showEvent", value); } - public static new Task GetShowTitle(ElementRef dxTarget) - { - return JSRuntime.Current.InvokeAsync("BlazorDevExtreme_DxPopover_GetOption", dxTarget, "showTitle"); - } - public static new Task SetShowTitle(ElementRef dxTarget, bool? value) - { - return JSRuntime.Current.InvokeAsync("BlazorDevExtreme_DxPopover_SetOption", dxTarget, "showTitle", value); - } public static Task GetTarget(ElementRef dxTarget) { return JSRuntime.Current.InvokeAsync("BlazorDevExtreme_DxPopover_GetOption", dxTarget, "target"); @@ -6593,14 +6036,6 @@ public static Task SetTarget(ElementRef dxTarget, object value) { return JSRuntime.Current.InvokeAsync("BlazorDevExtreme_DxPopover_SetOption", dxTarget, "target", value); } - public static new Task GetWidth(ElementRef dxTarget) - { - return JSRuntime.Current.InvokeAsync("BlazorDevExtreme_DxPopover_GetOption", dxTarget, "width"); - } - public static new Task SetWidth(ElementRef dxTarget, object value) - { - return JSRuntime.Current.InvokeAsync("BlazorDevExtreme_DxPopover_SetOption", dxTarget, "width", value); - } public static Task Show(ElementRef dxTarget) { return JSRuntime.Current.InvokeAsync("BlazorDevExtreme_DxPopover_show_0", dxTarget); @@ -6641,14 +6076,6 @@ public static void OnTitleRendered(string identifier) { TitleRendered?.Invoke(null, new JQueryEventArgs(identifier)); } - public static new Task GetAnimation(ElementRef dxTarget) - { - return JSRuntime.Current.InvokeAsync("BlazorDevExtreme_DxPopup_GetOption", dxTarget, "animation"); - } - public static new Task SetAnimation(ElementRef dxTarget, object value) - { - return JSRuntime.Current.InvokeAsync("BlazorDevExtreme_DxPopup_SetOption", dxTarget, "animation", value); - } public static Task GetContainer(ElementRef dxTarget) { return JSRuntime.Current.InvokeAsync("BlazorDevExtreme_DxPopup_GetOption", dxTarget, "container"); @@ -6657,22 +6084,6 @@ public static Task SetContainer(ElementRef dxTarget, object value) { return JSRuntime.Current.InvokeAsync("BlazorDevExtreme_DxPopup_SetOption", dxTarget, "container", value); } - public static new Task GetDragEnabled(ElementRef dxTarget) - { - return JSRuntime.Current.InvokeAsync("BlazorDevExtreme_DxPopup_GetOption", dxTarget, "dragEnabled"); - } - public static new Task SetDragEnabled(ElementRef dxTarget, bool? value) - { - return JSRuntime.Current.InvokeAsync("BlazorDevExtreme_DxPopup_SetOption", dxTarget, "dragEnabled", value); - } - public static new Task GetFocusStateEnabled(ElementRef dxTarget) - { - return JSRuntime.Current.InvokeAsync("BlazorDevExtreme_DxPopup_GetOption", dxTarget, "focusStateEnabled"); - } - public static new Task SetFocusStateEnabled(ElementRef dxTarget, bool? value) - { - return JSRuntime.Current.InvokeAsync("BlazorDevExtreme_DxPopup_SetOption", dxTarget, "focusStateEnabled", value); - } public static Task GetFullScreen(ElementRef dxTarget) { return JSRuntime.Current.InvokeAsync("BlazorDevExtreme_DxPopup_GetOption", dxTarget, "fullScreen"); @@ -6681,22 +6092,6 @@ public static Task SetFullScreen(ElementRef dxTarget, bool? value) { return JSRuntime.Current.InvokeAsync("BlazorDevExtreme_DxPopup_SetOption", dxTarget, "fullScreen", value); } - public static new Task GetHeight(ElementRef dxTarget) - { - return JSRuntime.Current.InvokeAsync("BlazorDevExtreme_DxPopup_GetOption", dxTarget, "height"); - } - public static new Task SetHeight(ElementRef dxTarget, object value) - { - return JSRuntime.Current.InvokeAsync("BlazorDevExtreme_DxPopup_SetOption", dxTarget, "height", value); - } - public static new Task GetPosition(ElementRef dxTarget) - { - return JSRuntime.Current.InvokeAsync("BlazorDevExtreme_DxPopup_GetOption", dxTarget, "position"); - } - public static new Task SetPosition(ElementRef dxTarget, object value) - { - return JSRuntime.Current.InvokeAsync("BlazorDevExtreme_DxPopup_SetOption", dxTarget, "position", value); - } public static Task GetResizeEnabled(ElementRef dxTarget) { return JSRuntime.Current.InvokeAsync("BlazorDevExtreme_DxPopup_GetOption", dxTarget, "resizeEnabled"); @@ -6745,14 +6140,6 @@ public static Task SetToolbarItems(ElementRef dxTarget, object value) { return JSRuntime.Current.InvokeAsync("BlazorDevExtreme_DxPopup_SetOption", dxTarget, "toolbarItems", value); } - public static new Task GetWidth(ElementRef dxTarget) - { - return JSRuntime.Current.InvokeAsync("BlazorDevExtreme_DxPopup_GetOption", dxTarget, "width"); - } - public static new Task SetWidth(ElementRef dxTarget, object value) - { - return JSRuntime.Current.InvokeAsync("BlazorDevExtreme_DxPopup_SetOption", dxTarget, "width", value); - } } public class DxProgressBarInterop: DxTrackBarInterop { @@ -6783,14 +6170,6 @@ public static Task SetStatusFormat(ElementRef dxTarget, object value) { return JSRuntime.Current.InvokeAsync("BlazorDevExtreme_DxProgressBar_SetOption", dxTarget, "statusFormat", value); } - public static new Task GetValue(ElementRef dxTarget) - { - return JSRuntime.Current.InvokeAsync("BlazorDevExtreme_DxProgressBar_GetOption", dxTarget, "value"); - } - public static new Task SetValue(ElementRef dxTarget, float? value) - { - return JSRuntime.Current.InvokeAsync("BlazorDevExtreme_DxProgressBar_SetOption", dxTarget, "value", value); - } } public class DxRadioGroupInterop: EditorInterop { @@ -6799,53 +6178,61 @@ public static Task Init(ElementRef dxTarget, DevExpress.Ui.DxRadioGroupOptions o string json = SimpleJson.SimpleJson.SerializeObject(options); return JSRuntime.Current.InvokeAsync("BlazorDevExtreme_DxRadioGroup_Init", dxTarget, json); } - public static new Task GetActiveStateEnabled(ElementRef dxTarget) + public static Task GetLayout(ElementRef dxTarget) { - return JSRuntime.Current.InvokeAsync("BlazorDevExtreme_DxRadioGroup_GetOption", dxTarget, "activeStateEnabled"); + return JSRuntime.Current.InvokeAsync("BlazorDevExtreme_DxRadioGroup_GetOption", dxTarget, "layout"); } - public static new Task SetActiveStateEnabled(ElementRef dxTarget, bool? value) + public static Task SetLayout(ElementRef dxTarget, string value) { - return JSRuntime.Current.InvokeAsync("BlazorDevExtreme_DxRadioGroup_SetOption", dxTarget, "activeStateEnabled", value); + return JSRuntime.Current.InvokeAsync("BlazorDevExtreme_DxRadioGroup_SetOption", dxTarget, "layout", value); } - public static new Task GetFocusStateEnabled(ElementRef dxTarget) + public static Task GetName(ElementRef dxTarget) { - return JSRuntime.Current.InvokeAsync("BlazorDevExtreme_DxRadioGroup_GetOption", dxTarget, "focusStateEnabled"); + return JSRuntime.Current.InvokeAsync("BlazorDevExtreme_DxRadioGroup_GetOption", dxTarget, "name"); } - public static new Task SetFocusStateEnabled(ElementRef dxTarget, bool? value) + public static Task SetName(ElementRef dxTarget, string value) { - return JSRuntime.Current.InvokeAsync("BlazorDevExtreme_DxRadioGroup_SetOption", dxTarget, "focusStateEnabled", value); + return JSRuntime.Current.InvokeAsync("BlazorDevExtreme_DxRadioGroup_SetOption", dxTarget, "name", value); } - public static new Task GetHoverStateEnabled(ElementRef dxTarget) + public static Task GetDataSource(ElementRef dxTarget) { - return JSRuntime.Current.InvokeAsync("BlazorDevExtreme_DxRadioGroup_GetOption", dxTarget, "hoverStateEnabled"); + return JSRuntime.Current.InvokeAsync("BlazorDevExtreme_DxRadioGroup_GetOption", dxTarget, "dataSource"); } - public static new Task SetHoverStateEnabled(ElementRef dxTarget, bool? value) + public static Task SetDataSource(ElementRef dxTarget, object value) { - return JSRuntime.Current.InvokeAsync("BlazorDevExtreme_DxRadioGroup_SetOption", dxTarget, "hoverStateEnabled", value); + return JSRuntime.Current.InvokeAsync("BlazorDevExtreme_DxRadioGroup_SetOption", dxTarget, "dataSource", value); } - public static Task GetLayout(ElementRef dxTarget) + public static Task GetDisplayExpr(ElementRef dxTarget) { - return JSRuntime.Current.InvokeAsync("BlazorDevExtreme_DxRadioGroup_GetOption", dxTarget, "layout"); + return JSRuntime.Current.InvokeAsync("BlazorDevExtreme_DxRadioGroup_GetOption", dxTarget, "displayExpr"); } - public static Task SetLayout(ElementRef dxTarget, string value) + public static Task SetDisplayExpr(ElementRef dxTarget, object value) { - return JSRuntime.Current.InvokeAsync("BlazorDevExtreme_DxRadioGroup_SetOption", dxTarget, "layout", value); + return JSRuntime.Current.InvokeAsync("BlazorDevExtreme_DxRadioGroup_SetOption", dxTarget, "displayExpr", value); } - public static Task GetName(ElementRef dxTarget) + public static Task GetItems(ElementRef dxTarget) { - return JSRuntime.Current.InvokeAsync("BlazorDevExtreme_DxRadioGroup_GetOption", dxTarget, "name"); + return JSRuntime.Current.InvokeAsync("BlazorDevExtreme_DxRadioGroup_GetOption", dxTarget, "items"); } - public static Task SetName(ElementRef dxTarget, string value) + public static Task SetItems(ElementRef dxTarget, object value) { - return JSRuntime.Current.InvokeAsync("BlazorDevExtreme_DxRadioGroup_SetOption", dxTarget, "name", value); + return JSRuntime.Current.InvokeAsync("BlazorDevExtreme_DxRadioGroup_SetOption", dxTarget, "items", value); + } + public static Task GetItemTemplate(ElementRef dxTarget) + { + return JSRuntime.Current.InvokeAsync("BlazorDevExtreme_DxRadioGroup_GetOption", dxTarget, "itemTemplate"); + } + public static Task SetItemTemplate(ElementRef dxTarget, object value) + { + return JSRuntime.Current.InvokeAsync("BlazorDevExtreme_DxRadioGroup_SetOption", dxTarget, "itemTemplate", value); } - public static new Task GetValue(ElementRef dxTarget) + public static Task GetValueExpr(ElementRef dxTarget) { - return JSRuntime.Current.InvokeAsync("BlazorDevExtreme_DxRadioGroup_GetOption", dxTarget, "value"); + return JSRuntime.Current.InvokeAsync("BlazorDevExtreme_DxRadioGroup_GetOption", dxTarget, "valueExpr"); } - public static new Task SetValue(ElementRef dxTarget, object value) + public static Task SetValueExpr(ElementRef dxTarget, object value) { - return JSRuntime.Current.InvokeAsync("BlazorDevExtreme_DxRadioGroup_SetOption", dxTarget, "value", value); + return JSRuntime.Current.InvokeAsync("BlazorDevExtreme_DxRadioGroup_SetOption", dxTarget, "valueExpr", value); } public static Task GetDataSourceEx(ElementRef dxTarget) { @@ -6854,17 +6241,11 @@ public static Task GetDataSourceEx(ElementRef dxTarget) } public class DxRangeSliderInterop: DxSliderBaseInterop { - public static event EventHandler ValueChanged; public static Task Init(ElementRef dxTarget, DevExpress.Ui.DxRangeSliderOptions options) { string json = SimpleJson.SimpleJson.SerializeObject(options); return JSRuntime.Current.InvokeAsync("BlazorDevExtreme_DxRangeSlider_Init", dxTarget, json); } - [JSInvokable("DevExpress.Ui.DxRangeSliderInterop.OnValueChanged")] - public static void OnValueChanged(string identifier) - { - ValueChanged?.Invoke(null, new JQueryEventArgs(identifier)); - } public static Task GetEnd(ElementRef dxTarget) { return JSRuntime.Current.InvokeAsync("BlazorDevExtreme_DxRangeSlider_GetOption", dxTarget, "end"); @@ -6897,14 +6278,6 @@ public static Task SetStartName(ElementRef dxTarget, string value) { return JSRuntime.Current.InvokeAsync("BlazorDevExtreme_DxRangeSlider_SetOption", dxTarget, "startName", value); } - public static new Task GetValue(ElementRef dxTarget) - { - return JSRuntime.Current.InvokeAsync("BlazorDevExtreme_DxRangeSlider_GetOption", dxTarget, "value"); - } - public static new Task SetValue(ElementRef dxTarget, object value) - { - return JSRuntime.Current.InvokeAsync("BlazorDevExtreme_DxRangeSlider_SetOption", dxTarget, "value", value); - } public static Task Reset(ElementRef dxTarget) { return JSRuntime.Current.InvokeAsync("BlazorDevExtreme_DxRangeSlider_reset_0", dxTarget); @@ -6943,14 +6316,6 @@ public static Task SetHandles(ElementRef dxTarget, string value) { return JSRuntime.Current.InvokeAsync("BlazorDevExtreme_DxResizable_SetOption", dxTarget, "handles", value); } - public static new Task GetHeight(ElementRef dxTarget) - { - return JSRuntime.Current.InvokeAsync("BlazorDevExtreme_DxResizable_GetOption", dxTarget, "height"); - } - public static new Task SetHeight(ElementRef dxTarget, object value) - { - return JSRuntime.Current.InvokeAsync("BlazorDevExtreme_DxResizable_SetOption", dxTarget, "height", value); - } public static Task GetMaxHeight(ElementRef dxTarget) { return JSRuntime.Current.InvokeAsync("BlazorDevExtreme_DxResizable_GetOption", dxTarget, "maxHeight"); @@ -6983,14 +6348,6 @@ public static Task SetMinWidth(ElementRef dxTarget, float? value) { return JSRuntime.Current.InvokeAsync("BlazorDevExtreme_DxResizable_SetOption", dxTarget, "minWidth", value); } - public static new Task GetWidth(ElementRef dxTarget) - { - return JSRuntime.Current.InvokeAsync("BlazorDevExtreme_DxResizable_GetOption", dxTarget, "width"); - } - public static new Task SetWidth(ElementRef dxTarget, object value) - { - return JSRuntime.Current.InvokeAsync("BlazorDevExtreme_DxResizable_SetOption", dxTarget, "width", value); - } } public class DxResponsiveBoxInterop: CollectionWidgetInterop { @@ -7007,14 +6364,6 @@ public static Task SetCols(ElementRef dxTarget, object value) { return JSRuntime.Current.InvokeAsync("BlazorDevExtreme_DxResponsiveBox_SetOption", dxTarget, "cols", value); } - public static new Task GetHeight(ElementRef dxTarget) - { - return JSRuntime.Current.InvokeAsync("BlazorDevExtreme_DxResponsiveBox_GetOption", dxTarget, "height"); - } - public static new Task SetHeight(ElementRef dxTarget, object value) - { - return JSRuntime.Current.InvokeAsync("BlazorDevExtreme_DxResponsiveBox_SetOption", dxTarget, "height", value); - } public static Task GetRows(ElementRef dxTarget) { return JSRuntime.Current.InvokeAsync("BlazorDevExtreme_DxResponsiveBox_GetOption", dxTarget, "rows"); @@ -7039,14 +6388,6 @@ public static Task SetSingleColumnScreen(ElementRef dxTarget, string value) { return JSRuntime.Current.InvokeAsync("BlazorDevExtreme_DxResponsiveBox_SetOption", dxTarget, "singleColumnScreen", value); } - public static new Task GetWidth(ElementRef dxTarget) - { - return JSRuntime.Current.InvokeAsync("BlazorDevExtreme_DxResponsiveBox_GetOption", dxTarget, "width"); - } - public static new Task SetWidth(ElementRef dxTarget, object value) - { - return JSRuntime.Current.InvokeAsync("BlazorDevExtreme_DxResponsiveBox_SetOption", dxTarget, "width", value); - } } public class DxSchedulerInterop: WidgetInterop { @@ -7277,14 +6618,6 @@ public static Task SetFirstDayOfWeek(ElementRef dxTarget, object value) { return JSRuntime.Current.InvokeAsync("BlazorDevExtreme_DxScheduler_SetOption", dxTarget, "firstDayOfWeek", value); } - public static new Task GetFocusStateEnabled(ElementRef dxTarget) - { - return JSRuntime.Current.InvokeAsync("BlazorDevExtreme_DxScheduler_GetOption", dxTarget, "focusStateEnabled"); - } - public static new Task SetFocusStateEnabled(ElementRef dxTarget, bool? value) - { - return JSRuntime.Current.InvokeAsync("BlazorDevExtreme_DxScheduler_SetOption", dxTarget, "focusStateEnabled", value); - } public static Task GetGroups(ElementRef dxTarget) { return JSRuntime.Current.InvokeAsync("BlazorDevExtreme_DxScheduler_GetOption", dxTarget, "groups"); @@ -7599,14 +6932,6 @@ public static void OnCustomItemCreating(string identifier) { CustomItemCreating?.Invoke(null, new JQueryEventArgs(identifier)); } - public static new Task GetAcceptCustomValue(ElementRef dxTarget) - { - return JSRuntime.Current.InvokeAsync("BlazorDevExtreme_DxSelectBox_GetOption", dxTarget, "acceptCustomValue"); - } - public static new Task SetAcceptCustomValue(ElementRef dxTarget, bool? value) - { - return JSRuntime.Current.InvokeAsync("BlazorDevExtreme_DxSelectBox_SetOption", dxTarget, "acceptCustomValue", value); - } public static Task GetFieldTemplate(ElementRef dxTarget) { return JSRuntime.Current.InvokeAsync("BlazorDevExtreme_DxSelectBox_GetOption", dxTarget, "fieldTemplate"); @@ -7615,14 +6940,6 @@ public static Task SetFieldTemplate(ElementRef dxTarget, object value) { return JSRuntime.Current.InvokeAsync("BlazorDevExtreme_DxSelectBox_SetOption", dxTarget, "fieldTemplate", value); } - public static new Task GetPlaceholder(ElementRef dxTarget) - { - return JSRuntime.Current.InvokeAsync("BlazorDevExtreme_DxSelectBox_GetOption", dxTarget, "placeholder"); - } - public static new Task SetPlaceholder(ElementRef dxTarget, string value) - { - return JSRuntime.Current.InvokeAsync("BlazorDevExtreme_DxSelectBox_SetOption", dxTarget, "placeholder", value); - } public static Task GetShowSelectionControls(ElementRef dxTarget) { return JSRuntime.Current.InvokeAsync("BlazorDevExtreme_DxSelectBox_GetOption", dxTarget, "showSelectionControls"); @@ -7631,14 +6948,6 @@ public static Task SetShowSelectionControls(ElementRef dxTarget, bool? value) { return JSRuntime.Current.InvokeAsync("BlazorDevExtreme_DxSelectBox_SetOption", dxTarget, "showSelectionControls", value); } - public static new Task GetValueChangeEvent(ElementRef dxTarget) - { - return JSRuntime.Current.InvokeAsync("BlazorDevExtreme_DxSelectBox_GetOption", dxTarget, "valueChangeEvent"); - } - public static new Task SetValueChangeEvent(ElementRef dxTarget, string value) - { - return JSRuntime.Current.InvokeAsync("BlazorDevExtreme_DxSelectBox_SetOption", dxTarget, "valueChangeEvent", value); - } } public class DxSliderInterop: DxSliderBaseInterop { @@ -7647,14 +6956,6 @@ public static Task Init(ElementRef dxTarget, DevExpress.Ui.DxSliderOptions optio string json = SimpleJson.SimpleJson.SerializeObject(options); return JSRuntime.Current.InvokeAsync("BlazorDevExtreme_DxSlider_Init", dxTarget, json); } - public static new Task GetValue(ElementRef dxTarget) - { - return JSRuntime.Current.InvokeAsync("BlazorDevExtreme_DxSlider_GetOption", dxTarget, "value"); - } - public static new Task SetValue(ElementRef dxTarget, float? value) - { - return JSRuntime.Current.InvokeAsync("BlazorDevExtreme_DxSlider_SetOption", dxTarget, "value", value); - } } public class DxSlideOutInterop: CollectionWidgetInterop { @@ -7675,14 +6976,6 @@ public static void OnMenuItemRendered(string identifier) { MenuItemRendered?.Invoke(null, new JQueryEventArgs(identifier)); } - public static new Task GetActiveStateEnabled(ElementRef dxTarget) - { - return JSRuntime.Current.InvokeAsync("BlazorDevExtreme_DxSlideOut_GetOption", dxTarget, "activeStateEnabled"); - } - public static new Task SetActiveStateEnabled(ElementRef dxTarget, bool? value) - { - return JSRuntime.Current.InvokeAsync("BlazorDevExtreme_DxSlideOut_SetOption", dxTarget, "activeStateEnabled", value); - } public static Task GetContentTemplate(ElementRef dxTarget) { return JSRuntime.Current.InvokeAsync("BlazorDevExtreme_DxSlideOut_GetOption", dxTarget, "contentTemplate"); @@ -7731,14 +7024,6 @@ public static Task SetMenuVisible(ElementRef dxTarget, bool? value) { return JSRuntime.Current.InvokeAsync("BlazorDevExtreme_DxSlideOut_SetOption", dxTarget, "menuVisible", value); } - public static new Task GetSelectedIndex(ElementRef dxTarget) - { - return JSRuntime.Current.InvokeAsync("BlazorDevExtreme_DxSlideOut_GetOption", dxTarget, "selectedIndex"); - } - public static new Task SetSelectedIndex(ElementRef dxTarget, float? value) - { - return JSRuntime.Current.InvokeAsync("BlazorDevExtreme_DxSlideOut_SetOption", dxTarget, "selectedIndex", value); - } public static Task GetSwipeEnabled(ElementRef dxTarget) { return JSRuntime.Current.InvokeAsync("BlazorDevExtreme_DxSlideOut_GetOption", dxTarget, "swipeEnabled"); @@ -7835,30 +7120,6 @@ public static Task Init(ElementRef dxTarget, DevExpress.Ui.DxSwitchOptions optio string json = SimpleJson.SimpleJson.SerializeObject(options); return JSRuntime.Current.InvokeAsync("BlazorDevExtreme_DxSwitch_Init", dxTarget, json); } - public static new Task GetActiveStateEnabled(ElementRef dxTarget) - { - return JSRuntime.Current.InvokeAsync("BlazorDevExtreme_DxSwitch_GetOption", dxTarget, "activeStateEnabled"); - } - public static new Task SetActiveStateEnabled(ElementRef dxTarget, bool? value) - { - return JSRuntime.Current.InvokeAsync("BlazorDevExtreme_DxSwitch_SetOption", dxTarget, "activeStateEnabled", value); - } - public static new Task GetFocusStateEnabled(ElementRef dxTarget) - { - return JSRuntime.Current.InvokeAsync("BlazorDevExtreme_DxSwitch_GetOption", dxTarget, "focusStateEnabled"); - } - public static new Task SetFocusStateEnabled(ElementRef dxTarget, bool? value) - { - return JSRuntime.Current.InvokeAsync("BlazorDevExtreme_DxSwitch_SetOption", dxTarget, "focusStateEnabled", value); - } - public static new Task GetHoverStateEnabled(ElementRef dxTarget) - { - return JSRuntime.Current.InvokeAsync("BlazorDevExtreme_DxSwitch_GetOption", dxTarget, "hoverStateEnabled"); - } - public static new Task SetHoverStateEnabled(ElementRef dxTarget, bool? value) - { - return JSRuntime.Current.InvokeAsync("BlazorDevExtreme_DxSwitch_SetOption", dxTarget, "hoverStateEnabled", value); - } public static Task GetName(ElementRef dxTarget) { return JSRuntime.Current.InvokeAsync("BlazorDevExtreme_DxSwitch_GetOption", dxTarget, "name"); @@ -7883,14 +7144,6 @@ public static Task SetOnText(ElementRef dxTarget, string value) { return JSRuntime.Current.InvokeAsync("BlazorDevExtreme_DxSwitch_SetOption", dxTarget, "onText", value); } - public static new Task GetValue(ElementRef dxTarget) - { - return JSRuntime.Current.InvokeAsync("BlazorDevExtreme_DxSwitch_GetOption", dxTarget, "value"); - } - public static new Task SetValue(ElementRef dxTarget, bool? value) - { - return JSRuntime.Current.InvokeAsync("BlazorDevExtreme_DxSwitch_SetOption", dxTarget, "value", value); - } } public class DxTabsInterop: CollectionWidgetInterop { @@ -7899,22 +7152,6 @@ public static Task Init(ElementRef dxTarget, DevExpress.Ui.DxTabsOptions options string json = SimpleJson.SimpleJson.SerializeObject(options); return JSRuntime.Current.InvokeAsync("BlazorDevExtreme_DxTabs_Init", dxTarget, json); } - public static new Task GetFocusStateEnabled(ElementRef dxTarget) - { - return JSRuntime.Current.InvokeAsync("BlazorDevExtreme_DxTabs_GetOption", dxTarget, "focusStateEnabled"); - } - public static new Task SetFocusStateEnabled(ElementRef dxTarget, bool? value) - { - return JSRuntime.Current.InvokeAsync("BlazorDevExtreme_DxTabs_SetOption", dxTarget, "focusStateEnabled", value); - } - public static new Task GetHoverStateEnabled(ElementRef dxTarget) - { - return JSRuntime.Current.InvokeAsync("BlazorDevExtreme_DxTabs_GetOption", dxTarget, "hoverStateEnabled"); - } - public static new Task SetHoverStateEnabled(ElementRef dxTarget, bool? value) - { - return JSRuntime.Current.InvokeAsync("BlazorDevExtreme_DxTabs_SetOption", dxTarget, "hoverStateEnabled", value); - } public static Task GetScrollByContent(ElementRef dxTarget) { return JSRuntime.Current.InvokeAsync("BlazorDevExtreme_DxTabs_GetOption", dxTarget, "scrollByContent"); @@ -7931,14 +7168,6 @@ public static Task SetScrollingEnabled(ElementRef dxTarget, bool? value) { return JSRuntime.Current.InvokeAsync("BlazorDevExtreme_DxTabs_SetOption", dxTarget, "scrollingEnabled", value); } - public static new Task GetSelectedItems(ElementRef dxTarget) - { - return JSRuntime.Current.InvokeAsync("BlazorDevExtreme_DxTabs_GetOption", dxTarget, "selectedItems"); - } - public static new Task SetSelectedItems(ElementRef dxTarget, object value) - { - return JSRuntime.Current.InvokeAsync("BlazorDevExtreme_DxTabs_SetOption", dxTarget, "selectedItems", value); - } public static Task GetSelectionMode(ElementRef dxTarget) { return JSRuntime.Current.InvokeAsync("BlazorDevExtreme_DxTabs_GetOption", dxTarget, "selectionMode"); @@ -7981,30 +7210,6 @@ public static void OnTitleRendered(string identifier) { TitleRendered?.Invoke(null, new JQueryEventArgs(identifier)); } - public static new Task GetAnimationEnabled(ElementRef dxTarget) - { - return JSRuntime.Current.InvokeAsync("BlazorDevExtreme_DxTabPanel_GetOption", dxTarget, "animationEnabled"); - } - public static new Task SetAnimationEnabled(ElementRef dxTarget, bool? value) - { - return JSRuntime.Current.InvokeAsync("BlazorDevExtreme_DxTabPanel_SetOption", dxTarget, "animationEnabled", value); - } - public static new Task GetFocusStateEnabled(ElementRef dxTarget) - { - return JSRuntime.Current.InvokeAsync("BlazorDevExtreme_DxTabPanel_GetOption", dxTarget, "focusStateEnabled"); - } - public static new Task SetFocusStateEnabled(ElementRef dxTarget, bool? value) - { - return JSRuntime.Current.InvokeAsync("BlazorDevExtreme_DxTabPanel_SetOption", dxTarget, "focusStateEnabled", value); - } - public static new Task GetHoverStateEnabled(ElementRef dxTarget) - { - return JSRuntime.Current.InvokeAsync("BlazorDevExtreme_DxTabPanel_GetOption", dxTarget, "hoverStateEnabled"); - } - public static new Task SetHoverStateEnabled(ElementRef dxTarget, bool? value) - { - return JSRuntime.Current.InvokeAsync("BlazorDevExtreme_DxTabPanel_SetOption", dxTarget, "hoverStateEnabled", value); - } public static Task GetItemTitleTemplate(ElementRef dxTarget) { return JSRuntime.Current.InvokeAsync("BlazorDevExtreme_DxTabPanel_GetOption", dxTarget, "itemTitleTemplate"); @@ -8037,20 +7242,11 @@ public static Task SetShowNavButtons(ElementRef dxTarget, bool? value) { return JSRuntime.Current.InvokeAsync("BlazorDevExtreme_DxTabPanel_SetOption", dxTarget, "showNavButtons", value); } - public static new Task GetSwipeEnabled(ElementRef dxTarget) - { - return JSRuntime.Current.InvokeAsync("BlazorDevExtreme_DxTabPanel_GetOption", dxTarget, "swipeEnabled"); - } - public static new Task SetSwipeEnabled(ElementRef dxTarget, bool? value) - { - return JSRuntime.Current.InvokeAsync("BlazorDevExtreme_DxTabPanel_SetOption", dxTarget, "swipeEnabled", value); - } } public class DxTagBoxInterop: DxSelectBoxInterop { public static event EventHandler MultiTagPreparing; public static event EventHandler SelectAllValueChanged; - public static event EventHandler SelectionChanged; public static Task Init(ElementRef dxTarget, DevExpress.Ui.DxTagBoxOptions options) { string json = SimpleJson.SimpleJson.SerializeObject(options); @@ -8066,19 +7262,6 @@ public static void OnSelectAllValueChanged(string identifier) { SelectAllValueChanged?.Invoke(null, new JQueryEventArgs(identifier)); } - [JSInvokable("DevExpress.Ui.DxTagBoxInterop.OnSelectionChanged")] - public static void OnSelectionChanged(string identifier) - { - SelectionChanged?.Invoke(null, new JQueryEventArgs(identifier)); - } - public static new Task GetApplyValueMode(ElementRef dxTarget) - { - return JSRuntime.Current.InvokeAsync("BlazorDevExtreme_DxTagBox_GetOption", dxTarget, "applyValueMode"); - } - public static new Task SetApplyValueMode(ElementRef dxTarget, string value) - { - return JSRuntime.Current.InvokeAsync("BlazorDevExtreme_DxTagBox_SetOption", dxTarget, "applyValueMode", value); - } public static Task GetHideSelectedItems(ElementRef dxTarget) { return JSRuntime.Current.InvokeAsync("BlazorDevExtreme_DxTagBox_GetOption", dxTarget, "hideSelectedItems"); @@ -8135,14 +7318,6 @@ public static Task SetTagTemplate(ElementRef dxTarget, object value) { return JSRuntime.Current.InvokeAsync("BlazorDevExtreme_DxTagBox_SetOption", dxTarget, "tagTemplate", value); } - public static new Task GetValue(ElementRef dxTarget) - { - return JSRuntime.Current.InvokeAsync("BlazorDevExtreme_DxTagBox_GetOption", dxTarget, "value"); - } - public static new Task SetValue(ElementRef dxTarget, object value) - { - return JSRuntime.Current.InvokeAsync("BlazorDevExtreme_DxTagBox_SetOption", dxTarget, "value", value); - } } public class DxTextAreaInterop: DxTextBoxInterop { @@ -8175,14 +7350,6 @@ public static Task SetMinHeight(ElementRef dxTarget, object value) { return JSRuntime.Current.InvokeAsync("BlazorDevExtreme_DxTextArea_SetOption", dxTarget, "minHeight", value); } - public static new Task GetSpellcheck(ElementRef dxTarget) - { - return JSRuntime.Current.InvokeAsync("BlazorDevExtreme_DxTextArea_GetOption", dxTarget, "spellcheck"); - } - public static new Task SetSpellcheck(ElementRef dxTarget, bool? value) - { - return JSRuntime.Current.InvokeAsync("BlazorDevExtreme_DxTextArea_SetOption", dxTarget, "spellcheck", value); - } } public class DxTextBoxInterop: DxTextEditorInterop { @@ -8207,14 +7374,6 @@ public static Task SetMode(ElementRef dxTarget, string value) { return JSRuntime.Current.InvokeAsync("BlazorDevExtreme_DxTextBox_SetOption", dxTarget, "mode", value); } - public static new Task GetValue(ElementRef dxTarget) - { - return JSRuntime.Current.InvokeAsync("BlazorDevExtreme_DxTextBox_GetOption", dxTarget, "value"); - } - public static new Task SetValue(ElementRef dxTarget, string value) - { - return JSRuntime.Current.InvokeAsync("BlazorDevExtreme_DxTextBox_SetOption", dxTarget, "value", value); - } } public class DxTileViewInterop: CollectionWidgetInterop { @@ -8223,14 +7382,6 @@ public static Task Init(ElementRef dxTarget, DevExpress.Ui.DxTileViewOptions opt string json = SimpleJson.SimpleJson.SerializeObject(options); return JSRuntime.Current.InvokeAsync("BlazorDevExtreme_DxTileView_Init", dxTarget, json); } - public static new Task GetActiveStateEnabled(ElementRef dxTarget) - { - return JSRuntime.Current.InvokeAsync("BlazorDevExtreme_DxTileView_GetOption", dxTarget, "activeStateEnabled"); - } - public static new Task SetActiveStateEnabled(ElementRef dxTarget, bool? value) - { - return JSRuntime.Current.InvokeAsync("BlazorDevExtreme_DxTileView_SetOption", dxTarget, "activeStateEnabled", value); - } public static Task GetBaseItemHeight(ElementRef dxTarget) { return JSRuntime.Current.InvokeAsync("BlazorDevExtreme_DxTileView_GetOption", dxTarget, "baseItemHeight"); @@ -8255,30 +7406,6 @@ public static Task SetDirection(ElementRef dxTarget, string value) { return JSRuntime.Current.InvokeAsync("BlazorDevExtreme_DxTileView_SetOption", dxTarget, "direction", value); } - public static new Task GetFocusStateEnabled(ElementRef dxTarget) - { - return JSRuntime.Current.InvokeAsync("BlazorDevExtreme_DxTileView_GetOption", dxTarget, "focusStateEnabled"); - } - public static new Task SetFocusStateEnabled(ElementRef dxTarget, bool? value) - { - return JSRuntime.Current.InvokeAsync("BlazorDevExtreme_DxTileView_SetOption", dxTarget, "focusStateEnabled", value); - } - public static new Task GetHeight(ElementRef dxTarget) - { - return JSRuntime.Current.InvokeAsync("BlazorDevExtreme_DxTileView_GetOption", dxTarget, "height"); - } - public static new Task SetHeight(ElementRef dxTarget, object value) - { - return JSRuntime.Current.InvokeAsync("BlazorDevExtreme_DxTileView_SetOption", dxTarget, "height", value); - } - public static new Task GetHoverStateEnabled(ElementRef dxTarget) - { - return JSRuntime.Current.InvokeAsync("BlazorDevExtreme_DxTileView_GetOption", dxTarget, "hoverStateEnabled"); - } - public static new Task SetHoverStateEnabled(ElementRef dxTarget, bool? value) - { - return JSRuntime.Current.InvokeAsync("BlazorDevExtreme_DxTileView_SetOption", dxTarget, "hoverStateEnabled", value); - } public static Task GetItemMargin(ElementRef dxTarget) { return JSRuntime.Current.InvokeAsync("BlazorDevExtreme_DxTileView_GetOption", dxTarget, "itemMargin"); @@ -8307,22 +7434,6 @@ public static Task Init(ElementRef dxTarget, DevExpress.Ui.DxToastOptions option string json = SimpleJson.SimpleJson.SerializeObject(options); return JSRuntime.Current.InvokeAsync("BlazorDevExtreme_DxToast_Init", dxTarget, json); } - public static new Task GetAnimation(ElementRef dxTarget) - { - return JSRuntime.Current.InvokeAsync("BlazorDevExtreme_DxToast_GetOption", dxTarget, "animation"); - } - public static new Task SetAnimation(ElementRef dxTarget, object value) - { - return JSRuntime.Current.InvokeAsync("BlazorDevExtreme_DxToast_SetOption", dxTarget, "animation", value); - } - public static new Task GetCloseOnBackButton(ElementRef dxTarget) - { - return JSRuntime.Current.InvokeAsync("BlazorDevExtreme_DxToast_GetOption", dxTarget, "closeOnBackButton"); - } - public static new Task SetCloseOnBackButton(ElementRef dxTarget, bool? value) - { - return JSRuntime.Current.InvokeAsync("BlazorDevExtreme_DxToast_SetOption", dxTarget, "closeOnBackButton", value); - } public static Task GetCloseOnClick(ElementRef dxTarget) { return JSRuntime.Current.InvokeAsync("BlazorDevExtreme_DxToast_GetOption", dxTarget, "closeOnClick"); @@ -8331,14 +7442,6 @@ public static Task SetCloseOnClick(ElementRef dxTarget, bool? value) { return JSRuntime.Current.InvokeAsync("BlazorDevExtreme_DxToast_SetOption", dxTarget, "closeOnClick", value); } - public static new Task GetCloseOnOutsideClick(ElementRef dxTarget) - { - return JSRuntime.Current.InvokeAsync("BlazorDevExtreme_DxToast_GetOption", dxTarget, "closeOnOutsideClick"); - } - public static new Task SetCloseOnOutsideClick(ElementRef dxTarget, object value) - { - return JSRuntime.Current.InvokeAsync("BlazorDevExtreme_DxToast_SetOption", dxTarget, "closeOnOutsideClick", value); - } public static Task GetCloseOnSwipe(ElementRef dxTarget) { return JSRuntime.Current.InvokeAsync("BlazorDevExtreme_DxToast_GetOption", dxTarget, "closeOnSwipe"); @@ -8355,22 +7458,6 @@ public static Task SetDisplayTime(ElementRef dxTarget, float? value) { return JSRuntime.Current.InvokeAsync("BlazorDevExtreme_DxToast_SetOption", dxTarget, "displayTime", value); } - public static new Task GetHeight(ElementRef dxTarget) - { - return JSRuntime.Current.InvokeAsync("BlazorDevExtreme_DxToast_GetOption", dxTarget, "height"); - } - public static new Task SetHeight(ElementRef dxTarget, object value) - { - return JSRuntime.Current.InvokeAsync("BlazorDevExtreme_DxToast_SetOption", dxTarget, "height", value); - } - public static new Task GetMaxWidth(ElementRef dxTarget) - { - return JSRuntime.Current.InvokeAsync("BlazorDevExtreme_DxToast_GetOption", dxTarget, "maxWidth"); - } - public static new Task SetMaxWidth(ElementRef dxTarget, object value) - { - return JSRuntime.Current.InvokeAsync("BlazorDevExtreme_DxToast_SetOption", dxTarget, "maxWidth", value); - } public static Task GetMessage(ElementRef dxTarget) { return JSRuntime.Current.InvokeAsync("BlazorDevExtreme_DxToast_GetOption", dxTarget, "message"); @@ -8379,30 +7466,6 @@ public static Task SetMessage(ElementRef dxTarget, string value) { return JSRuntime.Current.InvokeAsync("BlazorDevExtreme_DxToast_SetOption", dxTarget, "message", value); } - public static new Task GetMinWidth(ElementRef dxTarget) - { - return JSRuntime.Current.InvokeAsync("BlazorDevExtreme_DxToast_GetOption", dxTarget, "minWidth"); - } - public static new Task SetMinWidth(ElementRef dxTarget, object value) - { - return JSRuntime.Current.InvokeAsync("BlazorDevExtreme_DxToast_SetOption", dxTarget, "minWidth", value); - } - public static new Task GetPosition(ElementRef dxTarget) - { - return JSRuntime.Current.InvokeAsync("BlazorDevExtreme_DxToast_GetOption", dxTarget, "position"); - } - public static new Task SetPosition(ElementRef dxTarget, object value) - { - return JSRuntime.Current.InvokeAsync("BlazorDevExtreme_DxToast_SetOption", dxTarget, "position", value); - } - public static new Task GetShading(ElementRef dxTarget) - { - return JSRuntime.Current.InvokeAsync("BlazorDevExtreme_DxToast_GetOption", dxTarget, "shading"); - } - public static new Task SetShading(ElementRef dxTarget, bool? value) - { - return JSRuntime.Current.InvokeAsync("BlazorDevExtreme_DxToast_SetOption", dxTarget, "shading", value); - } public static Task GetType(ElementRef dxTarget) { return JSRuntime.Current.InvokeAsync("BlazorDevExtreme_DxToast_GetOption", dxTarget, "type"); @@ -8411,14 +7474,6 @@ public static Task SetType(ElementRef dxTarget, string value) { return JSRuntime.Current.InvokeAsync("BlazorDevExtreme_DxToast_SetOption", dxTarget, "type", value); } - public static new Task GetWidth(ElementRef dxTarget) - { - return JSRuntime.Current.InvokeAsync("BlazorDevExtreme_DxToast_GetOption", dxTarget, "width"); - } - public static new Task SetWidth(ElementRef dxTarget, object value) - { - return JSRuntime.Current.InvokeAsync("BlazorDevExtreme_DxToast_SetOption", dxTarget, "width", value); - } } public class DxToolbarInterop: CollectionWidgetInterop { @@ -8551,14 +7606,6 @@ public static Task SetAutoExpandAll(ElementRef dxTarget, bool? value) { return JSRuntime.Current.InvokeAsync("BlazorDevExtreme_DxTreeList_SetOption", dxTarget, "autoExpandAll", value); } - public static new Task GetColumns(ElementRef dxTarget) - { - return JSRuntime.Current.InvokeAsync("BlazorDevExtreme_DxTreeList_GetOption", dxTarget, "columns"); - } - public static new Task SetColumns(ElementRef dxTarget, object value) - { - return JSRuntime.Current.InvokeAsync("BlazorDevExtreme_DxTreeList_SetOption", dxTarget, "columns", value); - } public static Task GetCustomizeColumns(ElementRef dxTarget) { return JSRuntime.Current.InvokeAsync("BlazorDevExtreme_DxTreeList_GetOption", dxTarget, "customizeColumns"); @@ -8575,14 +7622,6 @@ public static Task SetDataStructure(ElementRef dxTarget, string value) { return JSRuntime.Current.InvokeAsync("BlazorDevExtreme_DxTreeList_SetOption", dxTarget, "dataStructure", value); } - public static new Task GetEditing(ElementRef dxTarget) - { - return JSRuntime.Current.InvokeAsync("BlazorDevExtreme_DxTreeList_GetOption", dxTarget, "editing"); - } - public static new Task SetEditing(ElementRef dxTarget, object value) - { - return JSRuntime.Current.InvokeAsync("BlazorDevExtreme_DxTreeList_SetOption", dxTarget, "editing", value); - } public static Task GetExpandedRowKeys(ElementRef dxTarget) { return JSRuntime.Current.InvokeAsync("BlazorDevExtreme_DxTreeList_GetOption", dxTarget, "expandedRowKeys"); @@ -8623,14 +7662,6 @@ public static Task SetKeyExpr(ElementRef dxTarget, object value) { return JSRuntime.Current.InvokeAsync("BlazorDevExtreme_DxTreeList_SetOption", dxTarget, "keyExpr", value); } - public static new Task GetPaging(ElementRef dxTarget) - { - return JSRuntime.Current.InvokeAsync("BlazorDevExtreme_DxTreeList_GetOption", dxTarget, "paging"); - } - public static new Task SetPaging(ElementRef dxTarget, object value) - { - return JSRuntime.Current.InvokeAsync("BlazorDevExtreme_DxTreeList_SetOption", dxTarget, "paging", value); - } public static Task GetParentIdExpr(ElementRef dxTarget) { return JSRuntime.Current.InvokeAsync("BlazorDevExtreme_DxTreeList_GetOption", dxTarget, "parentIdExpr"); @@ -8655,22 +7686,6 @@ public static Task SetRootValue(ElementRef dxTarget, object value) { return JSRuntime.Current.InvokeAsync("BlazorDevExtreme_DxTreeList_SetOption", dxTarget, "rootValue", value); } - public static new Task GetScrolling(ElementRef dxTarget) - { - return JSRuntime.Current.InvokeAsync("BlazorDevExtreme_DxTreeList_GetOption", dxTarget, "scrolling"); - } - public static new Task SetScrolling(ElementRef dxTarget, object value) - { - return JSRuntime.Current.InvokeAsync("BlazorDevExtreme_DxTreeList_SetOption", dxTarget, "scrolling", value); - } - public static new Task GetSelection(ElementRef dxTarget) - { - return JSRuntime.Current.InvokeAsync("BlazorDevExtreme_DxTreeList_GetOption", dxTarget, "selection"); - } - public static new Task SetSelection(ElementRef dxTarget, object value) - { - return JSRuntime.Current.InvokeAsync("BlazorDevExtreme_DxTreeList_SetOption", dxTarget, "selection", value); - } public static Task AddColumn(ElementRef dxTarget, object columnOptions) { return JSRuntime.Current.InvokeAsync("BlazorDevExtreme_DxTreeList_addColumn_0", dxTarget, columnOptions); @@ -8754,59 +7769,29 @@ public static Task LoadDescendants(ElementRef dxTarget, object keys, boo } public class DxTreeViewInterop: HierarchicalCollectionWidgetInterop { - public static event EventHandler ItemClick; public static event EventHandler ItemCollapsed; - public static event EventHandler ItemContextMenu; public static event EventHandler ItemExpanded; - public static event EventHandler ItemHold; - public static event EventHandler ItemRendered; public static event EventHandler ItemSelectionChanged; - public static event EventHandler SelectionChanged; public static Task Init(ElementRef dxTarget, DevExpress.Ui.DxTreeViewOptions options) { string json = SimpleJson.SimpleJson.SerializeObject(options); return JSRuntime.Current.InvokeAsync("BlazorDevExtreme_DxTreeView_Init", dxTarget, json); } - [JSInvokable("DevExpress.Ui.DxTreeViewInterop.OnItemClick")] - public static void OnItemClick(string identifier) - { - ItemClick?.Invoke(null, new JQueryEventArgs(identifier)); - } [JSInvokable("DevExpress.Ui.DxTreeViewInterop.OnItemCollapsed")] public static void OnItemCollapsed(string identifier) { ItemCollapsed?.Invoke(null, new JQueryEventArgs(identifier)); } - [JSInvokable("DevExpress.Ui.DxTreeViewInterop.OnItemContextMenu")] - public static void OnItemContextMenu(string identifier) - { - ItemContextMenu?.Invoke(null, new JQueryEventArgs(identifier)); - } [JSInvokable("DevExpress.Ui.DxTreeViewInterop.OnItemExpanded")] public static void OnItemExpanded(string identifier) { ItemExpanded?.Invoke(null, new JQueryEventArgs(identifier)); } - [JSInvokable("DevExpress.Ui.DxTreeViewInterop.OnItemHold")] - public static void OnItemHold(string identifier) - { - ItemHold?.Invoke(null, new JQueryEventArgs(identifier)); - } - [JSInvokable("DevExpress.Ui.DxTreeViewInterop.OnItemRendered")] - public static void OnItemRendered(string identifier) - { - ItemRendered?.Invoke(null, new JQueryEventArgs(identifier)); - } [JSInvokable("DevExpress.Ui.DxTreeViewInterop.OnItemSelectionChanged")] public static void OnItemSelectionChanged(string identifier) { ItemSelectionChanged?.Invoke(null, new JQueryEventArgs(identifier)); } - [JSInvokable("DevExpress.Ui.DxTreeViewInterop.OnSelectionChanged")] - public static void OnSelectionChanged(string identifier) - { - SelectionChanged?.Invoke(null, new JQueryEventArgs(identifier)); - } public static Task GetAnimationEnabled(ElementRef dxTarget) { return JSRuntime.Current.InvokeAsync("BlazorDevExtreme_DxTreeView_GetOption", dxTarget, "animationEnabled"); @@ -8863,14 +7848,6 @@ public static Task SetHasItemsExpr(ElementRef dxTarget, object value) { return JSRuntime.Current.InvokeAsync("BlazorDevExtreme_DxTreeView_SetOption", dxTarget, "hasItemsExpr", value); } - public static new Task GetItems(ElementRef dxTarget) - { - return JSRuntime.Current.InvokeAsync("BlazorDevExtreme_DxTreeView_GetOption", dxTarget, "items"); - } - public static new Task SetItems(ElementRef dxTarget, object value) - { - return JSRuntime.Current.InvokeAsync("BlazorDevExtreme_DxTreeView_SetOption", dxTarget, "items", value); - } public static Task GetParentIdExpr(ElementRef dxTarget) { return JSRuntime.Current.InvokeAsync("BlazorDevExtreme_DxTreeView_GetOption", dxTarget, "parentIdExpr"); @@ -8943,6 +7920,54 @@ public static Task SetVirtualModeEnabled(ElementRef dxTarget, bool? value) { return JSRuntime.Current.InvokeAsync("BlazorDevExtreme_DxTreeView_SetOption", dxTarget, "virtualModeEnabled", value); } + public static Task GetSearchEditorOptions(ElementRef dxTarget) + { + return JSRuntime.Current.InvokeAsync("BlazorDevExtreme_DxTreeView_GetOption", dxTarget, "searchEditorOptions"); + } + public static Task SetSearchEditorOptions(ElementRef dxTarget, object value) + { + return JSRuntime.Current.InvokeAsync("BlazorDevExtreme_DxTreeView_SetOption", dxTarget, "searchEditorOptions", value); + } + public static Task GetSearchEnabled(ElementRef dxTarget) + { + return JSRuntime.Current.InvokeAsync("BlazorDevExtreme_DxTreeView_GetOption", dxTarget, "searchEnabled"); + } + public static Task SetSearchEnabled(ElementRef dxTarget, bool? value) + { + return JSRuntime.Current.InvokeAsync("BlazorDevExtreme_DxTreeView_SetOption", dxTarget, "searchEnabled", value); + } + public static Task GetSearchExpr(ElementRef dxTarget) + { + return JSRuntime.Current.InvokeAsync("BlazorDevExtreme_DxTreeView_GetOption", dxTarget, "searchExpr"); + } + public static Task SetSearchExpr(ElementRef dxTarget, object value) + { + return JSRuntime.Current.InvokeAsync("BlazorDevExtreme_DxTreeView_SetOption", dxTarget, "searchExpr", value); + } + public static Task GetSearchMode(ElementRef dxTarget) + { + return JSRuntime.Current.InvokeAsync("BlazorDevExtreme_DxTreeView_GetOption", dxTarget, "searchMode"); + } + public static Task SetSearchMode(ElementRef dxTarget, string value) + { + return JSRuntime.Current.InvokeAsync("BlazorDevExtreme_DxTreeView_SetOption", dxTarget, "searchMode", value); + } + public static Task GetSearchTimeout(ElementRef dxTarget) + { + return JSRuntime.Current.InvokeAsync("BlazorDevExtreme_DxTreeView_GetOption", dxTarget, "searchTimeout"); + } + public static Task SetSearchTimeout(ElementRef dxTarget, float? value) + { + return JSRuntime.Current.InvokeAsync("BlazorDevExtreme_DxTreeView_SetOption", dxTarget, "searchTimeout", value); + } + public static Task GetSearchValue(ElementRef dxTarget) + { + return JSRuntime.Current.InvokeAsync("BlazorDevExtreme_DxTreeView_GetOption", dxTarget, "searchValue"); + } + public static Task SetSearchValue(ElementRef dxTarget, string value) + { + return JSRuntime.Current.InvokeAsync("BlazorDevExtreme_DxTreeView_SetOption", dxTarget, "searchValue", value); + } public static Task CollapseItem(ElementRef dxTarget, object itemData) { return JSRuntime.Current.InvokeAsync("BlazorDevExtreme_DxTreeView_collapseItem_0", dxTarget, itemData); @@ -9195,14 +8220,6 @@ public static Task Init(ElementRef dxTarget, DevExpress.Ui.DxMenuBaseOptions opt string json = SimpleJson.SimpleJson.SerializeObject(options); return JSRuntime.Current.InvokeAsync("BlazorDevExtreme_DxMenuBase_Init", dxTarget, json); } - public static new Task GetActiveStateEnabled(ElementRef dxTarget) - { - return JSRuntime.Current.InvokeAsync("BlazorDevExtreme_DxMenuBase_GetOption", dxTarget, "activeStateEnabled"); - } - public static new Task SetActiveStateEnabled(ElementRef dxTarget, bool? value) - { - return JSRuntime.Current.InvokeAsync("BlazorDevExtreme_DxMenuBase_SetOption", dxTarget, "activeStateEnabled", value); - } public static Task GetAnimation(ElementRef dxTarget) { return JSRuntime.Current.InvokeAsync("BlazorDevExtreme_DxMenuBase_GetOption", dxTarget, "animation"); @@ -9219,14 +8236,6 @@ public static Task SetCssClass(ElementRef dxTarget, string value) { return JSRuntime.Current.InvokeAsync("BlazorDevExtreme_DxMenuBase_SetOption", dxTarget, "cssClass", value); } - public static new Task GetItems(ElementRef dxTarget) - { - return JSRuntime.Current.InvokeAsync("BlazorDevExtreme_DxMenuBase_GetOption", dxTarget, "items"); - } - public static new Task SetItems(ElementRef dxTarget, object value) - { - return JSRuntime.Current.InvokeAsync("BlazorDevExtreme_DxMenuBase_SetOption", dxTarget, "items", value); - } public static Task GetSelectByClick(ElementRef dxTarget) { return JSRuntime.Current.InvokeAsync("BlazorDevExtreme_DxMenuBase_GetOption", dxTarget, "selectByClick"); @@ -9287,14 +8296,6 @@ public static Task SetAcceptCustomValue(ElementRef dxTarget, bool? value) { return JSRuntime.Current.InvokeAsync("BlazorDevExtreme_DxDropDownEditor_SetOption", dxTarget, "acceptCustomValue", value); } - public static new Task GetActiveStateEnabled(ElementRef dxTarget) - { - return JSRuntime.Current.InvokeAsync("BlazorDevExtreme_DxDropDownEditor_GetOption", dxTarget, "activeStateEnabled"); - } - public static new Task SetActiveStateEnabled(ElementRef dxTarget, bool? value) - { - return JSRuntime.Current.InvokeAsync("BlazorDevExtreme_DxDropDownEditor_SetOption", dxTarget, "activeStateEnabled", value); - } public static Task GetApplyValueMode(ElementRef dxTarget) { return JSRuntime.Current.InvokeAsync("BlazorDevExtreme_DxDropDownEditor_GetOption", dxTarget, "applyValueMode"); @@ -9327,14 +8328,6 @@ public static Task SetOpened(ElementRef dxTarget, bool? value) { return JSRuntime.Current.InvokeAsync("BlazorDevExtreme_DxDropDownEditor_SetOption", dxTarget, "opened", value); } - public static new Task GetValue(ElementRef dxTarget) - { - return JSRuntime.Current.InvokeAsync("BlazorDevExtreme_DxDropDownEditor_GetOption", dxTarget, "value"); - } - public static new Task SetValue(ElementRef dxTarget, object value) - { - return JSRuntime.Current.InvokeAsync("BlazorDevExtreme_DxDropDownEditor_SetOption", dxTarget, "value", value); - } public static Task Close(ElementRef dxTarget) { return JSRuntime.Current.InvokeAsync("BlazorDevExtreme_DxDropDownEditor_close_0", dxTarget); @@ -9360,7 +8353,6 @@ public class DxDropDownListInterop: DxDropDownEditorInterop { public static event EventHandler ItemClick; public static event EventHandler SelectionChanged; - public static event EventHandler ValueChanged; public static Task Init(ElementRef dxTarget, DevExpress.Ui.DxDropDownListOptions options) { string json = SimpleJson.SimpleJson.SerializeObject(options); @@ -9376,11 +8368,6 @@ public static void OnSelectionChanged(string identifier) { SelectionChanged?.Invoke(null, new JQueryEventArgs(identifier)); } - [JSInvokable("DevExpress.Ui.DxDropDownListInterop.OnValueChanged")] - public static void OnValueChanged(string identifier) - { - ValueChanged?.Invoke(null, new JQueryEventArgs(identifier)); - } public static Task GetDisplayValue(ElementRef dxTarget) { return JSRuntime.Current.InvokeAsync("BlazorDevExtreme_DxDropDownList_GetOption", dxTarget, "displayValue"); @@ -9469,21 +8456,45 @@ public static Task SetShowDataBeforeSearch(ElementRef dxTarget, bool? value) { return JSRuntime.Current.InvokeAsync("BlazorDevExtreme_DxDropDownList_SetOption", dxTarget, "showDataBeforeSearch", value); } - public static new Task GetValue(ElementRef dxTarget) + public static Task GetDataSource(ElementRef dxTarget) + { + return JSRuntime.Current.InvokeAsync("BlazorDevExtreme_DxDropDownList_GetOption", dxTarget, "dataSource"); + } + public static Task SetDataSource(ElementRef dxTarget, object value) + { + return JSRuntime.Current.InvokeAsync("BlazorDevExtreme_DxDropDownList_SetOption", dxTarget, "dataSource", value); + } + public static Task GetDisplayExpr(ElementRef dxTarget) + { + return JSRuntime.Current.InvokeAsync("BlazorDevExtreme_DxDropDownList_GetOption", dxTarget, "displayExpr"); + } + public static Task SetDisplayExpr(ElementRef dxTarget, object value) + { + return JSRuntime.Current.InvokeAsync("BlazorDevExtreme_DxDropDownList_SetOption", dxTarget, "displayExpr", value); + } + public static Task GetItems(ElementRef dxTarget) + { + return JSRuntime.Current.InvokeAsync("BlazorDevExtreme_DxDropDownList_GetOption", dxTarget, "items"); + } + public static Task SetItems(ElementRef dxTarget, object value) + { + return JSRuntime.Current.InvokeAsync("BlazorDevExtreme_DxDropDownList_SetOption", dxTarget, "items", value); + } + public static Task GetItemTemplate(ElementRef dxTarget) { - return JSRuntime.Current.InvokeAsync("BlazorDevExtreme_DxDropDownList_GetOption", dxTarget, "value"); + return JSRuntime.Current.InvokeAsync("BlazorDevExtreme_DxDropDownList_GetOption", dxTarget, "itemTemplate"); } - public static new Task SetValue(ElementRef dxTarget, object value) + public static Task SetItemTemplate(ElementRef dxTarget, object value) { - return JSRuntime.Current.InvokeAsync("BlazorDevExtreme_DxDropDownList_SetOption", dxTarget, "value", value); + return JSRuntime.Current.InvokeAsync("BlazorDevExtreme_DxDropDownList_SetOption", dxTarget, "itemTemplate", value); } - public static new Task GetValueChangeEvent(ElementRef dxTarget) + public static Task GetValueExpr(ElementRef dxTarget) { - return JSRuntime.Current.InvokeAsync("BlazorDevExtreme_DxDropDownList_GetOption", dxTarget, "valueChangeEvent"); + return JSRuntime.Current.InvokeAsync("BlazorDevExtreme_DxDropDownList_GetOption", dxTarget, "valueExpr"); } - public static new Task SetValueChangeEvent(ElementRef dxTarget, string value) + public static Task SetValueExpr(ElementRef dxTarget, object value) { - return JSRuntime.Current.InvokeAsync("BlazorDevExtreme_DxDropDownList_SetOption", dxTarget, "valueChangeEvent", value); + return JSRuntime.Current.InvokeAsync("BlazorDevExtreme_DxDropDownList_SetOption", dxTarget, "valueExpr", value); } public static Task GetDataSourceEx(ElementRef dxTarget) { @@ -9631,22 +8642,6 @@ public static Task SetDisplayExpr(ElementRef dxTarget, object value) { return JSRuntime.Current.InvokeAsync("BlazorDevExtreme_HierarchicalCollectionWidget_SetOption", dxTarget, "displayExpr", value); } - public static new Task GetFocusStateEnabled(ElementRef dxTarget) - { - return JSRuntime.Current.InvokeAsync("BlazorDevExtreme_HierarchicalCollectionWidget_GetOption", dxTarget, "focusStateEnabled"); - } - public static new Task SetFocusStateEnabled(ElementRef dxTarget, bool? value) - { - return JSRuntime.Current.InvokeAsync("BlazorDevExtreme_HierarchicalCollectionWidget_SetOption", dxTarget, "focusStateEnabled", value); - } - public static new Task GetHoverStateEnabled(ElementRef dxTarget) - { - return JSRuntime.Current.InvokeAsync("BlazorDevExtreme_HierarchicalCollectionWidget_GetOption", dxTarget, "hoverStateEnabled"); - } - public static new Task SetHoverStateEnabled(ElementRef dxTarget, bool? value) - { - return JSRuntime.Current.InvokeAsync("BlazorDevExtreme_HierarchicalCollectionWidget_SetOption", dxTarget, "hoverStateEnabled", value); - } public static Task GetItemsExpr(ElementRef dxTarget) { return JSRuntime.Current.InvokeAsync("BlazorDevExtreme_HierarchicalCollectionWidget_GetOption", dxTarget, "itemsExpr"); @@ -9655,14 +8650,6 @@ public static Task SetItemsExpr(ElementRef dxTarget, object value) { return JSRuntime.Current.InvokeAsync("BlazorDevExtreme_HierarchicalCollectionWidget_SetOption", dxTarget, "itemsExpr", value); } - public static new Task GetKeyExpr(ElementRef dxTarget) - { - return JSRuntime.Current.InvokeAsync("BlazorDevExtreme_HierarchicalCollectionWidget_GetOption", dxTarget, "keyExpr"); - } - public static new Task SetKeyExpr(ElementRef dxTarget, object value) - { - return JSRuntime.Current.InvokeAsync("BlazorDevExtreme_HierarchicalCollectionWidget_SetOption", dxTarget, "keyExpr", value); - } public static Task GetSelectedExpr(ElementRef dxTarget) { return JSRuntime.Current.InvokeAsync("BlazorDevExtreme_HierarchicalCollectionWidget_GetOption", dxTarget, "selectedExpr"); @@ -9874,30 +8861,6 @@ public static Task Init(ElementRef dxTarget, DevExpress.Ui.DxSliderBaseOptions o string json = SimpleJson.SimpleJson.SerializeObject(options); return JSRuntime.Current.InvokeAsync("BlazorDevExtreme_DxSliderBase_Init", dxTarget, json); } - public static new Task GetActiveStateEnabled(ElementRef dxTarget) - { - return JSRuntime.Current.InvokeAsync("BlazorDevExtreme_DxSliderBase_GetOption", dxTarget, "activeStateEnabled"); - } - public static new Task SetActiveStateEnabled(ElementRef dxTarget, bool? value) - { - return JSRuntime.Current.InvokeAsync("BlazorDevExtreme_DxSliderBase_SetOption", dxTarget, "activeStateEnabled", value); - } - public static new Task GetFocusStateEnabled(ElementRef dxTarget) - { - return JSRuntime.Current.InvokeAsync("BlazorDevExtreme_DxSliderBase_GetOption", dxTarget, "focusStateEnabled"); - } - public static new Task SetFocusStateEnabled(ElementRef dxTarget, bool? value) - { - return JSRuntime.Current.InvokeAsync("BlazorDevExtreme_DxSliderBase_SetOption", dxTarget, "focusStateEnabled", value); - } - public static new Task GetHoverStateEnabled(ElementRef dxTarget) - { - return JSRuntime.Current.InvokeAsync("BlazorDevExtreme_DxSliderBase_GetOption", dxTarget, "hoverStateEnabled"); - } - public static new Task SetHoverStateEnabled(ElementRef dxTarget, bool? value) - { - return JSRuntime.Current.InvokeAsync("BlazorDevExtreme_DxSliderBase_SetOption", dxTarget, "hoverStateEnabled", value); - } public static Task GetKeyStep(ElementRef dxTarget) { return JSRuntime.Current.InvokeAsync("BlazorDevExtreme_DxSliderBase_GetOption", dxTarget, "keyStep"); @@ -10020,22 +8983,6 @@ public static void OnPaste(string identifier) { Paste?.Invoke(null, new JQueryEventArgs(identifier)); } - public static new Task GetFocusStateEnabled(ElementRef dxTarget) - { - return JSRuntime.Current.InvokeAsync("BlazorDevExtreme_DxTextEditor_GetOption", dxTarget, "focusStateEnabled"); - } - public static new Task SetFocusStateEnabled(ElementRef dxTarget, bool? value) - { - return JSRuntime.Current.InvokeAsync("BlazorDevExtreme_DxTextEditor_SetOption", dxTarget, "focusStateEnabled", value); - } - public static new Task GetHoverStateEnabled(ElementRef dxTarget) - { - return JSRuntime.Current.InvokeAsync("BlazorDevExtreme_DxTextEditor_GetOption", dxTarget, "hoverStateEnabled"); - } - public static new Task SetHoverStateEnabled(ElementRef dxTarget, bool? value) - { - return JSRuntime.Current.InvokeAsync("BlazorDevExtreme_DxTextEditor_SetOption", dxTarget, "hoverStateEnabled", value); - } public static Task GetInputAttr(ElementRef dxTarget) { return JSRuntime.Current.InvokeAsync("BlazorDevExtreme_DxTextEditor_GetOption", dxTarget, "inputAttr"); @@ -10132,14 +9079,6 @@ public static Task SetUseMaskedValue(ElementRef dxTarget, bool? value) { return JSRuntime.Current.InvokeAsync("BlazorDevExtreme_DxTextEditor_SetOption", dxTarget, "useMaskedValue", value); } - public static new Task GetValue(ElementRef dxTarget) - { - return JSRuntime.Current.InvokeAsync("BlazorDevExtreme_DxTextEditor_GetOption", dxTarget, "value"); - } - public static new Task SetValue(ElementRef dxTarget, object value) - { - return JSRuntime.Current.InvokeAsync("BlazorDevExtreme_DxTextEditor_SetOption", dxTarget, "value", value); - } public static Task GetValueChangeEvent(ElementRef dxTarget) { return JSRuntime.Current.InvokeAsync("BlazorDevExtreme_DxTextEditor_GetOption", dxTarget, "valueChangeEvent"); @@ -10429,14 +9368,6 @@ public static Task SetRedrawOnResize(ElementRef dxTarget, bool? value) { return JSRuntime.Current.InvokeAsync("BlazorDevExtreme_BaseWidget_SetOption", dxTarget, "redrawOnResize", value); } - public static new Task GetRtlEnabled(ElementRef dxTarget) - { - return JSRuntime.Current.InvokeAsync("BlazorDevExtreme_BaseWidget_GetOption", dxTarget, "rtlEnabled"); - } - public static new Task SetRtlEnabled(ElementRef dxTarget, bool? value) - { - return JSRuntime.Current.InvokeAsync("BlazorDevExtreme_BaseWidget_SetOption", dxTarget, "rtlEnabled", value); - } public static Task GetSize(ElementRef dxTarget) { return JSRuntime.Current.InvokeAsync("BlazorDevExtreme_BaseWidget_GetOption", dxTarget, "size"); @@ -10651,14 +9582,6 @@ public static Task SetEqualBarWidth(ElementRef dxTarget, bool? value) { return JSRuntime.Current.InvokeAsync("BlazorDevExtreme_DxChart_SetOption", dxTarget, "equalBarWidth", value); } - public static new Task GetLegend(ElementRef dxTarget) - { - return JSRuntime.Current.InvokeAsync("BlazorDevExtreme_DxChart_GetOption", dxTarget, "legend"); - } - public static new Task SetLegend(ElementRef dxTarget, object value) - { - return JSRuntime.Current.InvokeAsync("BlazorDevExtreme_DxChart_SetOption", dxTarget, "legend", value); - } public static Task GetMaxBubbleSize(ElementRef dxTarget) { return JSRuntime.Current.InvokeAsync("BlazorDevExtreme_DxChart_GetOption", dxTarget, "maxBubbleSize"); @@ -10723,14 +9646,6 @@ public static Task SetScrollingMode(ElementRef dxTarget, string value) { return JSRuntime.Current.InvokeAsync("BlazorDevExtreme_DxChart_SetOption", dxTarget, "scrollingMode", value); } - public static new Task GetSeries(ElementRef dxTarget) - { - return JSRuntime.Current.InvokeAsync("BlazorDevExtreme_DxChart_GetOption", dxTarget, "series"); - } - public static new Task SetSeries(ElementRef dxTarget, object value) - { - return JSRuntime.Current.InvokeAsync("BlazorDevExtreme_DxChart_SetOption", dxTarget, "series", value); - } public static Task GetSeriesSelectionMode(ElementRef dxTarget) { return JSRuntime.Current.InvokeAsync("BlazorDevExtreme_DxChart_GetOption", dxTarget, "seriesSelectionMode"); @@ -10755,14 +9670,6 @@ public static Task SetSynchronizeMultiAxes(ElementRef dxTarget, bool? value) { return JSRuntime.Current.InvokeAsync("BlazorDevExtreme_DxChart_SetOption", dxTarget, "synchronizeMultiAxes", value); } - public static new Task GetTooltip(ElementRef dxTarget) - { - return JSRuntime.Current.InvokeAsync("BlazorDevExtreme_DxChart_GetOption", dxTarget, "tooltip"); - } - public static new Task SetTooltip(ElementRef dxTarget, object value) - { - return JSRuntime.Current.InvokeAsync("BlazorDevExtreme_DxChart_SetOption", dxTarget, "tooltip", value); - } public static Task GetUseAggregation(ElementRef dxTarget) { return JSRuntime.Current.InvokeAsync("BlazorDevExtreme_DxChart_GetOption", dxTarget, "useAggregation"); @@ -10805,14 +9712,6 @@ public static void OnLegendClick(string identifier) { LegendClick?.Invoke(null, new JQueryEventArgs(identifier)); } - public static new Task GetAdaptiveLayout(ElementRef dxTarget) - { - return JSRuntime.Current.InvokeAsync("BlazorDevExtreme_DxPieChart_GetOption", dxTarget, "adaptiveLayout"); - } - public static new Task SetAdaptiveLayout(ElementRef dxTarget, object value) - { - return JSRuntime.Current.InvokeAsync("BlazorDevExtreme_DxPieChart_SetOption", dxTarget, "adaptiveLayout", value); - } public static Task GetCommonSeriesSettings(ElementRef dxTarget) { return JSRuntime.Current.InvokeAsync("BlazorDevExtreme_DxPieChart_GetOption", dxTarget, "commonSeriesSettings"); @@ -10837,14 +9736,6 @@ public static Task SetInnerRadius(ElementRef dxTarget, float? value) { return JSRuntime.Current.InvokeAsync("BlazorDevExtreme_DxPieChart_SetOption", dxTarget, "innerRadius", value); } - public static new Task GetLegend(ElementRef dxTarget) - { - return JSRuntime.Current.InvokeAsync("BlazorDevExtreme_DxPieChart_GetOption", dxTarget, "legend"); - } - public static new Task SetLegend(ElementRef dxTarget, object value) - { - return JSRuntime.Current.InvokeAsync("BlazorDevExtreme_DxPieChart_SetOption", dxTarget, "legend", value); - } public static Task GetMinDiameter(ElementRef dxTarget) { return JSRuntime.Current.InvokeAsync("BlazorDevExtreme_DxPieChart_GetOption", dxTarget, "minDiameter"); @@ -10853,14 +9744,6 @@ public static Task SetMinDiameter(ElementRef dxTarget, float? value) { return JSRuntime.Current.InvokeAsync("BlazorDevExtreme_DxPieChart_SetOption", dxTarget, "minDiameter", value); } - public static new Task GetPalette(ElementRef dxTarget) - { - return JSRuntime.Current.InvokeAsync("BlazorDevExtreme_DxPieChart_GetOption", dxTarget, "palette"); - } - public static new Task SetPalette(ElementRef dxTarget, object value) - { - return JSRuntime.Current.InvokeAsync("BlazorDevExtreme_DxPieChart_SetOption", dxTarget, "palette", value); - } public static Task GetResolveLabelOverlapping(ElementRef dxTarget) { return JSRuntime.Current.InvokeAsync("BlazorDevExtreme_DxPieChart_GetOption", dxTarget, "resolveLabelOverlapping"); @@ -10877,14 +9760,6 @@ public static Task SetSegmentsDirection(ElementRef dxTarget, string value) { return JSRuntime.Current.InvokeAsync("BlazorDevExtreme_DxPieChart_SetOption", dxTarget, "segmentsDirection", value); } - public static new Task GetSeries(ElementRef dxTarget) - { - return JSRuntime.Current.InvokeAsync("BlazorDevExtreme_DxPieChart_GetOption", dxTarget, "series"); - } - public static new Task SetSeries(ElementRef dxTarget, object value) - { - return JSRuntime.Current.InvokeAsync("BlazorDevExtreme_DxPieChart_SetOption", dxTarget, "series", value); - } public static Task GetSeriesTemplate(ElementRef dxTarget) { return JSRuntime.Current.InvokeAsync("BlazorDevExtreme_DxPieChart_GetOption", dxTarget, "seriesTemplate"); @@ -10967,14 +9842,6 @@ public static void OnSeriesSelectionChanged(string identifier) { SeriesSelectionChanged?.Invoke(null, new JQueryEventArgs(identifier)); } - public static new Task GetAdaptiveLayout(ElementRef dxTarget) - { - return JSRuntime.Current.InvokeAsync("BlazorDevExtreme_DxPolarChart_GetOption", dxTarget, "adaptiveLayout"); - } - public static new Task SetAdaptiveLayout(ElementRef dxTarget, object value) - { - return JSRuntime.Current.InvokeAsync("BlazorDevExtreme_DxPolarChart_SetOption", dxTarget, "adaptiveLayout", value); - } public static Task GetArgumentAxis(ElementRef dxTarget) { return JSRuntime.Current.InvokeAsync("BlazorDevExtreme_DxPolarChart_GetOption", dxTarget, "argumentAxis"); @@ -11047,14 +9914,6 @@ public static Task SetEqualBarWidth(ElementRef dxTarget, bool? value) { return JSRuntime.Current.InvokeAsync("BlazorDevExtreme_DxPolarChart_SetOption", dxTarget, "equalBarWidth", value); } - public static new Task GetLegend(ElementRef dxTarget) - { - return JSRuntime.Current.InvokeAsync("BlazorDevExtreme_DxPolarChart_GetOption", dxTarget, "legend"); - } - public static new Task SetLegend(ElementRef dxTarget, object value) - { - return JSRuntime.Current.InvokeAsync("BlazorDevExtreme_DxPolarChart_SetOption", dxTarget, "legend", value); - } public static Task GetNegativesAsZeroes(ElementRef dxTarget) { return JSRuntime.Current.InvokeAsync("BlazorDevExtreme_DxPolarChart_GetOption", dxTarget, "negativesAsZeroes"); @@ -11071,14 +9930,6 @@ public static Task SetResolveLabelOverlapping(ElementRef dxTarget, string value) { return JSRuntime.Current.InvokeAsync("BlazorDevExtreme_DxPolarChart_SetOption", dxTarget, "resolveLabelOverlapping", value); } - public static new Task GetSeries(ElementRef dxTarget) - { - return JSRuntime.Current.InvokeAsync("BlazorDevExtreme_DxPolarChart_GetOption", dxTarget, "series"); - } - public static new Task SetSeries(ElementRef dxTarget, object value) - { - return JSRuntime.Current.InvokeAsync("BlazorDevExtreme_DxPolarChart_SetOption", dxTarget, "series", value); - } public static Task GetSeriesSelectionMode(ElementRef dxTarget) { return JSRuntime.Current.InvokeAsync("BlazorDevExtreme_DxPolarChart_GetOption", dxTarget, "seriesSelectionMode"); @@ -11095,14 +9946,6 @@ public static Task SetSeriesTemplate(ElementRef dxTarget, object value) { return JSRuntime.Current.InvokeAsync("BlazorDevExtreme_DxPolarChart_SetOption", dxTarget, "seriesTemplate", value); } - public static new Task GetTooltip(ElementRef dxTarget) - { - return JSRuntime.Current.InvokeAsync("BlazorDevExtreme_DxPolarChart_GetOption", dxTarget, "tooltip"); - } - public static new Task SetTooltip(ElementRef dxTarget, object value) - { - return JSRuntime.Current.InvokeAsync("BlazorDevExtreme_DxPolarChart_SetOption", dxTarget, "tooltip", value); - } public static Task GetUseSpiderWeb(ElementRef dxTarget) { return JSRuntime.Current.InvokeAsync("BlazorDevExtreme_DxPolarChart_GetOption", dxTarget, "useSpiderWeb"); @@ -11243,14 +10086,6 @@ public static Task SetSeries(ElementRef dxTarget, object value) { return JSRuntime.Current.InvokeAsync("BlazorDevExtreme_BaseChart_SetOption", dxTarget, "series", value); } - public static new Task GetTooltip(ElementRef dxTarget) - { - return JSRuntime.Current.InvokeAsync("BlazorDevExtreme_BaseChart_GetOption", dxTarget, "tooltip"); - } - public static new Task SetTooltip(ElementRef dxTarget, object value) - { - return JSRuntime.Current.InvokeAsync("BlazorDevExtreme_BaseChart_SetOption", dxTarget, "tooltip", value); - } public static Task ClearSelection(ElementRef dxTarget) { return JSRuntime.Current.InvokeAsync("BlazorDevExtreme_BaseChart_clearSelection_0", dxTarget); @@ -11507,14 +10342,6 @@ public static Task SetSortData(ElementRef dxTarget, bool? value) { return JSRuntime.Current.InvokeAsync("BlazorDevExtreme_DxFunnel_SetOption", dxTarget, "sortData", value); } - public static new Task GetTooltip(ElementRef dxTarget) - { - return JSRuntime.Current.InvokeAsync("BlazorDevExtreme_DxFunnel_GetOption", dxTarget, "tooltip"); - } - public static new Task SetTooltip(ElementRef dxTarget, object value) - { - return JSRuntime.Current.InvokeAsync("BlazorDevExtreme_DxFunnel_SetOption", dxTarget, "tooltip", value); - } public static Task GetValueField(ElementRef dxTarget) { return JSRuntime.Current.InvokeAsync("BlazorDevExtreme_DxFunnel_GetOption", dxTarget, "valueField"); @@ -11607,22 +10434,6 @@ public static Task SetSubvalues(ElementRef dxTarget, object value) { return JSRuntime.Current.InvokeAsync("BlazorDevExtreme_BaseGauge_SetOption", dxTarget, "subvalues", value); } - public static new Task GetTitle(ElementRef dxTarget) - { - return JSRuntime.Current.InvokeAsync("BlazorDevExtreme_BaseGauge_GetOption", dxTarget, "title"); - } - public static new Task SetTitle(ElementRef dxTarget, object value) - { - return JSRuntime.Current.InvokeAsync("BlazorDevExtreme_BaseGauge_SetOption", dxTarget, "title", value); - } - public static new Task GetTooltip(ElementRef dxTarget) - { - return JSRuntime.Current.InvokeAsync("BlazorDevExtreme_BaseGauge_GetOption", dxTarget, "tooltip"); - } - public static new Task SetTooltip(ElementRef dxTarget, object value) - { - return JSRuntime.Current.InvokeAsync("BlazorDevExtreme_BaseGauge_SetOption", dxTarget, "tooltip", value); - } public static Task GetValue(ElementRef dxTarget) { return JSRuntime.Current.InvokeAsync("BlazorDevExtreme_BaseGauge_GetOption", dxTarget, "value"); @@ -11663,22 +10474,6 @@ public static Task SetGeometry(ElementRef dxTarget, object value) { return JSRuntime.Current.InvokeAsync("BlazorDevExtreme_DxCircularGauge_SetOption", dxTarget, "geometry", value); } - public static new Task GetRangeContainer(ElementRef dxTarget) - { - return JSRuntime.Current.InvokeAsync("BlazorDevExtreme_DxCircularGauge_GetOption", dxTarget, "rangeContainer"); - } - public static new Task SetRangeContainer(ElementRef dxTarget, object value) - { - return JSRuntime.Current.InvokeAsync("BlazorDevExtreme_DxCircularGauge_SetOption", dxTarget, "rangeContainer", value); - } - public static new Task GetScale(ElementRef dxTarget) - { - return JSRuntime.Current.InvokeAsync("BlazorDevExtreme_DxCircularGauge_GetOption", dxTarget, "scale"); - } - public static new Task SetScale(ElementRef dxTarget, object value) - { - return JSRuntime.Current.InvokeAsync("BlazorDevExtreme_DxCircularGauge_SetOption", dxTarget, "scale", value); - } public static Task GetSubvalueIndicator(ElementRef dxTarget) { return JSRuntime.Current.InvokeAsync("BlazorDevExtreme_DxCircularGauge_GetOption", dxTarget, "subvalueIndicator"); @@ -11711,22 +10506,6 @@ public static Task SetGeometry(ElementRef dxTarget, object value) { return JSRuntime.Current.InvokeAsync("BlazorDevExtreme_DxLinearGauge_SetOption", dxTarget, "geometry", value); } - public static new Task GetRangeContainer(ElementRef dxTarget) - { - return JSRuntime.Current.InvokeAsync("BlazorDevExtreme_DxLinearGauge_GetOption", dxTarget, "rangeContainer"); - } - public static new Task SetRangeContainer(ElementRef dxTarget, object value) - { - return JSRuntime.Current.InvokeAsync("BlazorDevExtreme_DxLinearGauge_SetOption", dxTarget, "rangeContainer", value); - } - public static new Task GetScale(ElementRef dxTarget) - { - return JSRuntime.Current.InvokeAsync("BlazorDevExtreme_DxLinearGauge_GetOption", dxTarget, "scale"); - } - public static new Task SetScale(ElementRef dxTarget, object value) - { - return JSRuntime.Current.InvokeAsync("BlazorDevExtreme_DxLinearGauge_SetOption", dxTarget, "scale", value); - } public static Task GetSubvalueIndicator(ElementRef dxTarget) { return JSRuntime.Current.InvokeAsync("BlazorDevExtreme_DxLinearGauge_GetOption", dxTarget, "subvalueIndicator"); @@ -11859,22 +10638,6 @@ public static Task SetSubtitle(ElementRef dxTarget, object value) { return JSRuntime.Current.InvokeAsync("BlazorDevExtreme_DxBarGauge_SetOption", dxTarget, "subtitle", value); } - public static new Task GetTitle(ElementRef dxTarget) - { - return JSRuntime.Current.InvokeAsync("BlazorDevExtreme_DxBarGauge_GetOption", dxTarget, "title"); - } - public static new Task SetTitle(ElementRef dxTarget, object value) - { - return JSRuntime.Current.InvokeAsync("BlazorDevExtreme_DxBarGauge_SetOption", dxTarget, "title", value); - } - public static new Task GetTooltip(ElementRef dxTarget) - { - return JSRuntime.Current.InvokeAsync("BlazorDevExtreme_DxBarGauge_GetOption", dxTarget, "tooltip"); - } - public static new Task SetTooltip(ElementRef dxTarget, object value) - { - return JSRuntime.Current.InvokeAsync("BlazorDevExtreme_DxBarGauge_SetOption", dxTarget, "tooltip", value); - } public static Task GetValues(ElementRef dxTarget) { return JSRuntime.Current.InvokeAsync("BlazorDevExtreme_DxBarGauge_GetOption", dxTarget, "values"); @@ -12432,14 +11195,6 @@ public static void OnTooltipShown(string identifier) { TooltipShown?.Invoke(null, new JQueryEventArgs(identifier)); } - public static new Task GetTooltip(ElementRef dxTarget) - { - return JSRuntime.Current.InvokeAsync("BlazorDevExtreme_BaseSparkline_GetOption", dxTarget, "tooltip"); - } - public static new Task SetTooltip(ElementRef dxTarget, object value) - { - return JSRuntime.Current.InvokeAsync("BlazorDevExtreme_BaseSparkline_SetOption", dxTarget, "tooltip", value); - } } public class DxSparklineInterop: BaseSparklineInterop { @@ -12880,14 +11635,6 @@ public static Task SetTile(ElementRef dxTarget, object value) { return JSRuntime.Current.InvokeAsync("BlazorDevExtreme_DxTreeMap_SetOption", dxTarget, "tile", value); } - public static new Task GetTooltip(ElementRef dxTarget) - { - return JSRuntime.Current.InvokeAsync("BlazorDevExtreme_DxTreeMap_GetOption", dxTarget, "tooltip"); - } - public static new Task SetTooltip(ElementRef dxTarget, object value) - { - return JSRuntime.Current.InvokeAsync("BlazorDevExtreme_DxTreeMap_SetOption", dxTarget, "tooltip", value); - } public static Task GetValueField(ElementRef dxTarget) { return JSRuntime.Current.InvokeAsync("BlazorDevExtreme_DxTreeMap_GetOption", dxTarget, "valueField"); @@ -13096,14 +11843,6 @@ public static Task SetProjection(ElementRef dxTarget, object value) { return JSRuntime.Current.InvokeAsync("BlazorDevExtreme_DxVectorMap_SetOption", dxTarget, "projection", value); } - public static new Task GetTooltip(ElementRef dxTarget) - { - return JSRuntime.Current.InvokeAsync("BlazorDevExtreme_DxVectorMap_GetOption", dxTarget, "tooltip"); - } - public static new Task SetTooltip(ElementRef dxTarget, object value) - { - return JSRuntime.Current.InvokeAsync("BlazorDevExtreme_DxVectorMap_SetOption", dxTarget, "tooltip", value); - } public static Task GetTouchEnabled(ElementRef dxTarget) { return JSRuntime.Current.InvokeAsync("BlazorDevExtreme_DxVectorMap_GetOption", dxTarget, "touchEnabled");