From 1ba0b0151d8cf3a1f64595911520ae874e6f90f1 Mon Sep 17 00:00:00 2001 From: Ivo Zhulev Date: Mon, 31 Aug 2020 12:12:58 +0300 Subject: [PATCH] Update Demos --- .../defaultfunctionality/App.razor | 297 ++++++++++++++++ dev-project/App.razor | 325 ++++++++++++++++-- library/jQWidgets.Blazor/wwwroot/jqxBlazor.js | 15 +- processors/site-demos.js | 6 +- .../blazor-dockinglayout-createcomponent.htm | 38 -- ...zor-dockinglayout-defaultfunctionality.htm | 10 +- release/blazor-dockinglayout/index.htm | 7 +- .../defaultfunctionality/blazor.boot.json | 32 ++ .../blazor.webassembly.js | 1 + .../defaultfunctionality/index.dll | Bin 0 -> 18944 bytes .../defaultfunctionality/index.js | 0 release/framework/jqxBlazor.js | 12 +- 12 files changed, 643 insertions(+), 100 deletions(-) create mode 100644 demos/dockinglayout/defaultfunctionality/App.razor delete mode 100644 release/blazor-dockinglayout/blazor-dockinglayout-createcomponent.htm create mode 100644 release/demos/dockinglayout/defaultfunctionality/blazor.boot.json create mode 100644 release/demos/dockinglayout/defaultfunctionality/blazor.webassembly.js create mode 100644 release/demos/dockinglayout/defaultfunctionality/index.dll create mode 100644 release/demos/dockinglayout/defaultfunctionality/index.js diff --git a/demos/dockinglayout/defaultfunctionality/App.razor b/demos/dockinglayout/defaultfunctionality/App.razor new file mode 100644 index 00000000..ce9f7508 --- /dev/null +++ b/demos/dockinglayout/defaultfunctionality/App.razor @@ -0,0 +1,297 @@ + + + +
+ List of tools +
+
+ Help topics +
+ +
+ Document 1 content +
+
+ Document 2 content +
+ +
+ List of errors +
+ +
+ +
+
+ List of properties +
+ +
+
+

+ Themes installation complete. +

+

+ List of installed stylesheet files. Include at least one stylesheet Theme file and + the images folder: +

+
    +
  • + styles/jqx.base.css: Stylesheet for the base Theme. The jqx.base.css file should + be always included in your project. +
  • +
  • styles/jqx.arctic.css: Stylesheet for the Arctic Theme
  • +
  • styles/jqx.web.css: Stylesheet for the Web Theme
  • +
  • styles/jqx.bootstrap.css: Stylesheet for the Bootstrap Theme
  • +
  • styles/jqx.classic.css: Stylesheet for the Classic Theme
  • +
  • styles/jqx.darkblue.css: Stylesheet for the DarkBlue Theme
  • +
  • styles/jqx.energyblue.css: Stylesheet for the EnergyBlue Theme
  • +
  • styles/jqx.shinyblack.css: Stylesheet for the ShinyBlack Theme
  • +
  • styles/jqx.office.css: Stylesheet for the Office Theme
  • +
  • styles/jqx.metro.css: Stylesheet for the Metro Theme
  • +
  • styles/jqx.metrodark.css: Stylesheet for the Metro Dark Theme
  • +
  • styles/jqx.orange.css: Stylesheet for the Orange Theme
  • +
  • styles/jqx.summer.css: Stylesheet for the Summer Theme
  • +
  • styles/jqx.black.css: Stylesheet for the Black Theme
  • +
  • styles/jqx.fresh.css: Stylesheet for the Fresh Theme
  • +
  • styles/jqx.highcontrast.css: Stylesheet for the HighContrast Theme
  • +
  • styles/jqx.blackberry.css: Stylesheet for the Blackberry Theme
  • +
  • styles/jqx.android.css: Stylesheet for the Android Theme
  • +
  • styles/jqx.mobile.css: Stylesheet for the Mobile Theme
  • +
  • styles/jqx.windowsphone.css: Stylesheet for the Windows Phone Theme
  • +
  • styles/jqx.ui-darkness.css: Stylesheet for the UI Darkness Theme
  • +
  • styles/jqx.ui-lightness.css: Stylesheet for the UI Lightness Theme
  • +
  • styles/jqx.ui-le-frog.css: Stylesheet for the UI Le Frog Theme
  • +
  • styles/jqx.ui-overcast.css: Stylesheet for the UI Overcast Theme
  • +
  • styles/jqx.ui-redmond.css: Stylesheet for the UI Redmond Theme
  • +
  • styles/jqx.ui-smoothness.css: Stylesheet for the UI Smoothness Theme
  • +
  • styles/jqx.ui-start.css: Stylesheet for the UI Start Theme
  • +
  • styles/jqx.ui-sunny.css: Stylesheet for the UI Sunny Theme
  • +
  • styles/images: contains images referenced in the stylesheet files
  • +
+
+
+
+ +@code { + string treeSize = "100%"; + + IDictionary[] treeSource = new Dictionary[] + { + new Dictionary + { + { "label", "Project" }, + { "expanded", true }, + { "icon", "../images/earth.png" }, + { + "items", + new Dictionary[] + { + new Dictionary + { + { "label", "css" }, + { "expanded", true }, + { "icon", "../images/folder.png" }, + { + "items", + new Dictionary[] + { + new Dictionary + { + { "label", "jqx.base.css" }, + { "icon", "../images/nav1.png" }, + }, + new Dictionary + { + { "label", "jqx.energyblue.css" }, + { "icon", "../images/nav1.png" }, + }, + new Dictionary + { + { "label", "jqx.orange.css" }, + { "icon", "../images/nav1.png" }, + } + } + } + }, + new Dictionary + { + { "label", "scripts" }, + { "icon", "../images/folder.png" }, + { + "items", + new Dictionary[] + { + new Dictionary + { + { "label", "jqxcore.js" }, + { "icon", "../images/nav1.png" }, + }, + new Dictionary + { + { "label", "jqxdata.js" }, + { "icon", "../images/nav1.png" }, + }, + new Dictionary + { + { "label", "jqxgrid.js" }, + { "icon", "../images/nav1.png" }, + } + } + } + }, + new Dictionary + { + { "label", "index.htm" }, + { "icon", "../images/folder.png" } + } + } + } + } + }; + + IDictionary[] layout = new Dictionary[] + { + new Dictionary + { + { "type", "layoutGroup" }, + { "orientation", "horizontal" }, + { + "items", + new Dictionary[] + { + new Dictionary + { + { "type", "autoHideGroup" }, + { "alignment", "left" }, + { "width", 80 }, + { "unpinnedWidth", 200 }, + { + "items", + new Dictionary[] + { + new Dictionary + { + { "type", "layoutPanel" }, + { "title", "Toolbox" }, + { "contentContainer", "ToolboxPanel" } + }, + new Dictionary + { + { "type", "layoutPanel" }, + { "title", "Help" }, + { "contentContainer", "HelpPanel" } + } + } + } + }, + new Dictionary + { + { "type", "layoutGroup" }, + { "orientation", "vertical" }, + { "width", 500 }, + { + "items", + new Dictionary[] + { + new Dictionary + { + { "type", "documentGroup" }, + { "height", 400 }, + { "minHeight", 200 }, + { + "items", + new Dictionary[] + { + new Dictionary + { + { "type", "documentPanel" }, + { "title", "Document 1" }, + { "contentContainer", "Document1Panel" } + }, + new Dictionary + { + { "type", "documentPanel" }, + { "title", "Document 2" }, + { "contentContainer", "Document2Panel" } + } + } + } + }, + new Dictionary + { + { "type", "tabbedGroup" }, + { "height", 200 }, + { "pinnedHeight", 30 }, + { + "items", + new Dictionary[] + { + new Dictionary + { + { "type", "layoutPanel" }, + { "title", "Error List" }, + { "contentContainer", "ErrorListPanel" } + } + } + } + } + } + } + }, + new Dictionary + { + { "type", "tabbedGroup" }, + { "width", 220 }, + { "minWidth", 200 }, + { + "items", + new Dictionary[] + { + new Dictionary + { + { "type", "layoutPanel" }, + { "title", "Solution Explorer" }, + { "contentContainer", "SolutionExplorerPanel" } + }, + new Dictionary + { + { "type", "layoutPanel" }, + { "title", "Properties" }, + { "contentContainer", "PropertiesPanel" } + } + } + } + } + } + } + }, + new Dictionary + { + { "type", "floatGroup" }, + { "width", 500 }, + { "height", 300 }, + { + "position", + new Dictionary + { + { "x", 350 }, + { "y", 250 } + } + }, + { + "items", + new Dictionary[] + { + new Dictionary + { + { "type", "layoutPanel" }, + { "title", "Output" }, + { "contentContainer", "OutputPanel" }, + { "selected", true } + } + } + } + } + }; +} diff --git a/dev-project/App.razor b/dev-project/App.razor index 6a153f4f..ce9f7508 100644 --- a/dev-project/App.razor +++ b/dev-project/App.razor @@ -1,40 +1,297 @@ -@* - Blazor has good tree shaking so when it builds for production - only includes the needed modules for the demo. As in the release the modules - are reused, we need this modules to be all the needed for all demos. - - If some demo when build misses a module, copy/paste this file - in App.razor, build the project and copy/paste the generated modules - in the release folder. - - BUILD: dotnet publish -c release - FROM: dev-project/bin/release/netstandard2.1/publish/blazor-web/dist/_framework/_bin/ - TO: release/common/_framework/_bin/ -*@ - -@inject HttpClient Http; - - - -
+ + + +
+ List of tools +
+
+ Help topics +
+ +
+ Document 1 content +
+
+ Document 2 content +
+ +
+ List of errors +
+ +
+ +
+
+ List of properties +
+ +
+
+

+ Themes installation complete. +

+

+ List of installed stylesheet files. Include at least one stylesheet Theme file and + the images folder: +

+
    +
  • + styles/jqx.base.css: Stylesheet for the base Theme. The jqx.base.css file should + be always included in your project. +
  • +
  • styles/jqx.arctic.css: Stylesheet for the Arctic Theme
  • +
  • styles/jqx.web.css: Stylesheet for the Web Theme
  • +
  • styles/jqx.bootstrap.css: Stylesheet for the Bootstrap Theme
  • +
  • styles/jqx.classic.css: Stylesheet for the Classic Theme
  • +
  • styles/jqx.darkblue.css: Stylesheet for the DarkBlue Theme
  • +
  • styles/jqx.energyblue.css: Stylesheet for the EnergyBlue Theme
  • +
  • styles/jqx.shinyblack.css: Stylesheet for the ShinyBlack Theme
  • +
  • styles/jqx.office.css: Stylesheet for the Office Theme
  • +
  • styles/jqx.metro.css: Stylesheet for the Metro Theme
  • +
  • styles/jqx.metrodark.css: Stylesheet for the Metro Dark Theme
  • +
  • styles/jqx.orange.css: Stylesheet for the Orange Theme
  • +
  • styles/jqx.summer.css: Stylesheet for the Summer Theme
  • +
  • styles/jqx.black.css: Stylesheet for the Black Theme
  • +
  • styles/jqx.fresh.css: Stylesheet for the Fresh Theme
  • +
  • styles/jqx.highcontrast.css: Stylesheet for the HighContrast Theme
  • +
  • styles/jqx.blackberry.css: Stylesheet for the Blackberry Theme
  • +
  • styles/jqx.android.css: Stylesheet for the Android Theme
  • +
  • styles/jqx.mobile.css: Stylesheet for the Mobile Theme
  • +
  • styles/jqx.windowsphone.css: Stylesheet for the Windows Phone Theme
  • +
  • styles/jqx.ui-darkness.css: Stylesheet for the UI Darkness Theme
  • +
  • styles/jqx.ui-lightness.css: Stylesheet for the UI Lightness Theme
  • +
  • styles/jqx.ui-le-frog.css: Stylesheet for the UI Le Frog Theme
  • +
  • styles/jqx.ui-overcast.css: Stylesheet for the UI Overcast Theme
  • +
  • styles/jqx.ui-redmond.css: Stylesheet for the UI Redmond Theme
  • +
  • styles/jqx.ui-smoothness.css: Stylesheet for the UI Smoothness Theme
  • +
  • styles/jqx.ui-start.css: Stylesheet for the UI Start Theme
  • +
  • styles/jqx.ui-sunny.css: Stylesheet for the UI Sunny Theme
  • +
  • styles/images: contains images referenced in the stylesheet files
  • +
+
+
+
@code { + string treeSize = "100%"; - private object[] source; - - protected override async Task OnInitializedAsync() + IDictionary[] treeSource = new Dictionary[] { - source = await Http.GetJsonAsync("../sampledata/customers.txt"); - - var intParse = int.Parse("22"); - var doubleParse = double.Parse("22"); - - var date = new DateTime(2222, 2, 2, 2, 2, 2).AddDays(22); - date.ToString("dd-MMMM-yyyy"); - var date2 = DateTime.Today; - - var task = Task.Run(() => { }); - task.Wait(TimeSpan.FromSeconds(2)); - } + new Dictionary + { + { "label", "Project" }, + { "expanded", true }, + { "icon", "../images/earth.png" }, + { + "items", + new Dictionary[] + { + new Dictionary + { + { "label", "css" }, + { "expanded", true }, + { "icon", "../images/folder.png" }, + { + "items", + new Dictionary[] + { + new Dictionary + { + { "label", "jqx.base.css" }, + { "icon", "../images/nav1.png" }, + }, + new Dictionary + { + { "label", "jqx.energyblue.css" }, + { "icon", "../images/nav1.png" }, + }, + new Dictionary + { + { "label", "jqx.orange.css" }, + { "icon", "../images/nav1.png" }, + } + } + } + }, + new Dictionary + { + { "label", "scripts" }, + { "icon", "../images/folder.png" }, + { + "items", + new Dictionary[] + { + new Dictionary + { + { "label", "jqxcore.js" }, + { "icon", "../images/nav1.png" }, + }, + new Dictionary + { + { "label", "jqxdata.js" }, + { "icon", "../images/nav1.png" }, + }, + new Dictionary + { + { "label", "jqxgrid.js" }, + { "icon", "../images/nav1.png" }, + } + } + } + }, + new Dictionary + { + { "label", "index.htm" }, + { "icon", "../images/folder.png" } + } + } + } + } + }; + IDictionary[] layout = new Dictionary[] + { + new Dictionary + { + { "type", "layoutGroup" }, + { "orientation", "horizontal" }, + { + "items", + new Dictionary[] + { + new Dictionary + { + { "type", "autoHideGroup" }, + { "alignment", "left" }, + { "width", 80 }, + { "unpinnedWidth", 200 }, + { + "items", + new Dictionary[] + { + new Dictionary + { + { "type", "layoutPanel" }, + { "title", "Toolbox" }, + { "contentContainer", "ToolboxPanel" } + }, + new Dictionary + { + { "type", "layoutPanel" }, + { "title", "Help" }, + { "contentContainer", "HelpPanel" } + } + } + } + }, + new Dictionary + { + { "type", "layoutGroup" }, + { "orientation", "vertical" }, + { "width", 500 }, + { + "items", + new Dictionary[] + { + new Dictionary + { + { "type", "documentGroup" }, + { "height", 400 }, + { "minHeight", 200 }, + { + "items", + new Dictionary[] + { + new Dictionary + { + { "type", "documentPanel" }, + { "title", "Document 1" }, + { "contentContainer", "Document1Panel" } + }, + new Dictionary + { + { "type", "documentPanel" }, + { "title", "Document 2" }, + { "contentContainer", "Document2Panel" } + } + } + } + }, + new Dictionary + { + { "type", "tabbedGroup" }, + { "height", 200 }, + { "pinnedHeight", 30 }, + { + "items", + new Dictionary[] + { + new Dictionary + { + { "type", "layoutPanel" }, + { "title", "Error List" }, + { "contentContainer", "ErrorListPanel" } + } + } + } + } + } + } + }, + new Dictionary + { + { "type", "tabbedGroup" }, + { "width", 220 }, + { "minWidth", 200 }, + { + "items", + new Dictionary[] + { + new Dictionary + { + { "type", "layoutPanel" }, + { "title", "Solution Explorer" }, + { "contentContainer", "SolutionExplorerPanel" } + }, + new Dictionary + { + { "type", "layoutPanel" }, + { "title", "Properties" }, + { "contentContainer", "PropertiesPanel" } + } + } + } + } + } + } + }, + new Dictionary + { + { "type", "floatGroup" }, + { "width", 500 }, + { "height", 300 }, + { + "position", + new Dictionary + { + { "x", 350 }, + { "y", 250 } + } + }, + { + "items", + new Dictionary[] + { + new Dictionary + { + { "type", "layoutPanel" }, + { "title", "Output" }, + { "contentContainer", "OutputPanel" }, + { "selected", true } + } + } + } + } + }; } diff --git a/library/jQWidgets.Blazor/wwwroot/jqxBlazor.js b/library/jQWidgets.Blazor/wwwroot/jqxBlazor.js index df8175be..bfbdf1cc 100644 --- a/library/jQWidgets.Blazor/wwwroot/jqxBlazor.js +++ b/library/jQWidgets.Blazor/wwwroot/jqxBlazor.js @@ -17,6 +17,9 @@ window.jqxBlazor = { options = checkForIsoStrings(options); options = checkForDataAdapterNeed(options); + console.log(options); + console.log(id); + console.log(name); instances[id] = new window[name]('#' + id, options); }, @@ -76,12 +79,10 @@ function checkForIsoStrings(options) { function checkForDataAdapterNeed(options) { if (options.source && options.source.dataFields) { options.source = new jqx.dataAdapter(options.source); + } - if (options.resources && options.resources.dataFields) { - options.resources = new jqx.dataAdapter(options.resources); - } - - return options; + if (options.resources && options.resources.dataFields) { + options.resources = new jqx.dataAdapter(options.resources); } if (options.source && options.source.dataSource) { @@ -89,7 +90,7 @@ function checkForDataAdapterNeed(options) { new jqx.dataAdapter(options.source.dataSource), options.source.options ); - - return options; } + + return options; } diff --git a/processors/site-demos.js b/processors/site-demos.js index 6d9039bd..f5f46e91 100644 --- a/processors/site-demos.js +++ b/processors/site-demos.js @@ -47,9 +47,9 @@ async function generateSiteDemos() { } // // uncomment to test a single demo - // if (!(widgetFolder === 'kanban' && demoFolder === 'defaultfunctionality')) { - // continue; - // } + if (!(widgetFolder === 'dockinglayout' && demoFolder === 'defaultfunctionality')) { + continue; + } // creates the demo folder in release/demos/[demo] await createFolder(widgetFolder, demoFolder); diff --git a/release/blazor-dockinglayout/blazor-dockinglayout-createcomponent.htm b/release/blazor-dockinglayout/blazor-dockinglayout-createcomponent.htm deleted file mode 100644 index 7875666b..00000000 --- a/release/blazor-dockinglayout/blazor-dockinglayout-createcomponent.htm +++ /dev/null @@ -1,38 +0,0 @@ - - - - - Blazor DockingLayout CreateComponent - - - - - - - - - - - - - - - - - - - - - - - - - -
- Blazor DockingLayout created through one single `settings` object. -
- - Loading... - - - diff --git a/release/blazor-dockinglayout/blazor-dockinglayout-defaultfunctionality.htm b/release/blazor-dockinglayout/blazor-dockinglayout-defaultfunctionality.htm index 5ee960d4..7ffc74ed 100644 --- a/release/blazor-dockinglayout/blazor-dockinglayout-defaultfunctionality.htm +++ b/release/blazor-dockinglayout/blazor-dockinglayout-defaultfunctionality.htm @@ -10,16 +10,14 @@ - - + - - + + + - - diff --git a/release/blazor-dockinglayout/index.htm b/release/blazor-dockinglayout/index.htm index f472e762..058e4dc4 100644 --- a/release/blazor-dockinglayout/index.htm +++ b/release/blazor-dockinglayout/index.htm @@ -102,7 +102,7 @@
  • Default Functionality
  • -
  • + diff --git a/release/demos/dockinglayout/defaultfunctionality/blazor.boot.json b/release/demos/dockinglayout/defaultfunctionality/blazor.boot.json new file mode 100644 index 00000000..ee9e6072 --- /dev/null +++ b/release/demos/dockinglayout/defaultfunctionality/blazor.boot.json @@ -0,0 +1,32 @@ +{ + "assemblies": + [ + "../framework/_framework/_bin/Microsoft.AspNetCore.Blazor.dll", + "../framework/_framework/_bin/Microsoft.AspNetCore.Blazor.HttpClient.dll", + "../framework/_framework/_bin/Microsoft.AspNetCore.Components.Web.dll", + "../framework/_framework/_bin/Microsoft.AspNetCore.Components.dll", + "../framework/_framework/_bin/Microsoft.Bcl.AsyncInterfaces.dll", + "../framework/_framework/_bin/Microsoft.Extensions.Configuration.Abstractions.dll", + "../framework/_framework/_bin/Microsoft.Extensions.Configuration.dll", + "../framework/_framework/_bin/Microsoft.Extensions.DependencyInjection.Abstractions.dll", + "../framework/_framework/_bin/Microsoft.Extensions.DependencyInjection.dll", + "../framework/_framework/_bin/Microsoft.Extensions.Logging.Abstractions.dll", + "../framework/_framework/_bin/Microsoft.Extensions.Primitives.dll", + "../framework/_framework/_bin/Microsoft.JSInterop.dll", + "../framework/_framework/_bin/Mono.WebAssembly.Interop.dll", + "../framework/_framework/_bin/System.Core.dll", + "../framework/_framework/_bin/System.Net.Http.dll", + "../framework/_framework/_bin/System.Runtime.CompilerServices.Unsafe.dll", + "../framework/_framework/_bin/System.Text.Encodings.Web.dll", + "../framework/_framework/_bin/System.Text.Json.dll", + "../framework/_framework/_bin/System.dll", + "../framework/_framework/_bin/WebAssembly.Bindings.dll", + "../framework/_framework/_bin/WebAssembly.Net.Http.dll", + "../framework/_framework/_bin/jQWidgets.Blazor.dll", + "../framework/_framework/_bin/mscorlib.dll", + "../demos/dockinglayout/defaultfunctionality/index.dll" + ], + "entryAssembly": "index", + "linkerEnabled": true +} + \ No newline at end of file diff --git a/release/demos/dockinglayout/defaultfunctionality/blazor.webassembly.js b/release/demos/dockinglayout/defaultfunctionality/blazor.webassembly.js new file mode 100644 index 00000000..a711400d --- /dev/null +++ b/release/demos/dockinglayout/defaultfunctionality/blazor.webassembly.js @@ -0,0 +1 @@ +!function(e){var t={};function n(r){if(t[r])return t[r].exports;var o=t[r]={i:r,l:!1,exports:{}};return e[r].call(o.exports,o,o.exports,n),o.l=!0,o.exports}n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)n.d(r,o,function(t){return e[t]}.bind(null,o));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=45)}([,,,,,function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),n(25),n(18);var r=n(26),o=n(13),a={},i=!1;function u(e,t,n){var o=a[e];o||(o=a[e]=new r.BrowserRenderer(e)),o.attachRootComponentToLogicalElement(n,t)}t.attachRootComponentToLogicalElement=u,t.attachRootComponentToElement=function(e,t,n){var r=document.querySelector(e);if(!r)throw new Error("Could not find any element matching selector '"+e+"'.");u(n||0,o.toLogicalElement(r,!0),t)},t.renderBatch=function(e,t){var n=a[e];if(!n)throw new Error("There is no browser renderer with ID "+e+".");for(var r=t.arrayRangeReader,o=t.updatedComponents(),u=r.values(o),l=r.count(o),s=t.referenceFrames(),c=r.values(s),d=t.diffReader,f=0;f0&&o[o.length-1])&&(6===a[0]||2===a[0])){i=0;continue}if(3===a[0]&&(!o||a[1]>o[0]&&a[1]0&&!t)throw new Error("New logical elements must start empty, or allowExistingContents must be true");return e[r]=[],e}function u(e,t,n){var a=e;if(e instanceof Comment&&(s(a)&&s(a).length>0))throw new Error("Not implemented: inserting non-empty logical container");if(l(a))throw new Error("Not implemented: moving existing logical children");var i=s(t);if(n0;)e(r,0);var a=r;a.parentNode.removeChild(a)},t.getLogicalParent=l,t.getLogicalSiblingEnd=function(e){return e[a]||null},t.getLogicalChild=function(e,t){return s(e)[t]},t.isSvgElement=function(e){return"http://www.w3.org/2000/svg"===c(e).namespaceURI},t.getLogicalChildrenArray=s,t.permuteLogicalChildren=function(e,t){var n=s(e);t.forEach(function(e){e.moveRangeStart=n[e.fromSiblingIndex],e.moveRangeEnd=function e(t){if(t instanceof Element)return t;var n=d(t);if(n)return n.previousSibling;var r=l(t);return r instanceof Element?r.lastChild:e(r)}(e.moveRangeStart)}),t.forEach(function(t){var r=t.moveToBeforeMarker=document.createComment("marker"),o=n[t.toSiblingIndex+1];o?o.parentNode.insertBefore(r,o):f(r,e)}),t.forEach(function(e){for(var t=e.moveToBeforeMarker,n=t.parentNode,r=e.moveRangeStart,o=e.moveRangeEnd,a=r;a;){var i=a.nextSibling;if(n.insertBefore(a,t),a===o)break;a=i}n.removeChild(t)}),t.forEach(function(e){n[e.toSiblingIndex]=e.moveRangeStart})},t.getClosestDomElement=c},,,,function(e,t,n){"use strict";var r;!function(e){window.DotNet=e;var t=[],n={},r={},o=1,a=null;function i(e){t.push(e)}function u(e,t,n,r){var o=s();if(o.invokeDotNetFromJS){var a=JSON.stringify(r,h),i=o.invokeDotNetFromJS(e,t,n,a);return i?d(i):null}throw new Error("The current dispatcher does not support synchronous calls from JS to .NET. Use invokeMethodAsync instead.")}function l(e,t,r,a){if(e&&r)throw new Error("For instance method calls, assemblyName should be null. Received '"+e+"'.");var i=o++,u=new Promise(function(e,t){n[i]={resolve:e,reject:t}});try{var l=JSON.stringify(a,h);s().beginInvokeDotNetFromJS(i,e,t,r,l)}catch(e){c(i,!1,e)}return u}function s(){if(null!==a)return a;throw new Error("No .NET call dispatcher has been set.")}function c(e,t,r){if(!n.hasOwnProperty(e))throw new Error("There is no pending async call with ID "+e+".");var o=n[e];delete n[e],t?o.resolve(r):o.reject(r)}function d(e){return e?JSON.parse(e,function(e,n){return t.reduce(function(t,n){return n(e,t)},n)}):null}function f(e){return e instanceof Error?e.message+" "+e.stack:e?e.toString():"null"}function p(e){if(r.hasOwnProperty(e))return r[e];var t,n=window,o="window";if(e.split(".").forEach(function(e){if(!(e in n))throw new Error("Could not find '"+e+"' in '"+o+"'.");t=n,n=n[e],o+="."+e}),n instanceof Function)return n=n.bind(t),r[e]=n,n;throw new Error("The value '"+o+"' is not a function.")}e.attachDispatcher=function(e){a=e},e.attachReviver=i,e.invokeMethod=function(e,t){for(var n=[],r=2;r0&&o[o.length-1])&&(6===a[0]||2===a[0])){i=0;continue}if(3===a[0]&&(!o||a[1]>o[0]&&a[1]0&&o[o.length-1])&&(6===a[0]||2===a[0])){i=0;continue}if(3===a[0]&&(!o||a[1]>o[0]&&a[1]>2,r=Module.HEAPU32[n+1];if(r>s)throw new Error("Cannot read uint64 with high order part "+r+", because the result would exceed Number.MAX_SAFE_INTEGER.");return r*l+Module.HEAPU32[n]},readFloatField:function(e,t){return Module.getValue(e+(t||0),"float")},readObjectField:function(e,t){return Module.getValue(e+(t||0),"i32")},readStringField:function(e,n){var r=Module.getValue(e+(n||0),"i32");return 0===r?null:t.monoPlatform.toJavaScriptString(r)},readStructField:function(e,t){return e+(t||0)}};var c=document.createElement("a");function d(e){return e+12}function f(e,t,n){var r="["+e+"] "+t+":"+n;return Module.mono_bind_static_method(r)}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(35),o=window.chrome&&navigator.userAgent.indexOf("Edge")<0,a=!1;function i(){return a&&o}t.hasDebuggingEnabled=i,t.attachDebuggerHotkey=function(e){a=e.some(function(e){return/.pdb$/.test(r.getFileNameFromUrl(e))});var t=navigator.platform.match(/^Mac/i)?"Cmd":"Alt";i()&&console.info("Debugging hotkey: Shift+"+t+"+D (when application has focus)"),document.addEventListener("keydown",function(e){var t;e.shiftKey&&(e.metaKey||e.altKey)&&"KeyD"===e.code&&(a?o?((t=document.createElement("a")).href="../../../framework/_framework/debug?url="+encodeURIComponent(location.href),t.target="_blank",t.rel="noopener noreferrer",t.click()):console.error("Currently, only Edge(Chromium) or Chrome is supported for debugging."):console.error("Cannot start debugging, because the application was not compiled with debugging enabled."))})}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(18),o=function(){function e(e){this.batchAddress=e,this.arrayRangeReader=a,this.arrayBuilderSegmentReader=i,this.diffReader=u,this.editReader=l,this.frameReader=s}return e.prototype.updatedComponents=function(){return r.platform.readStructField(this.batchAddress,0)},e.prototype.referenceFrames=function(){return r.platform.readStructField(this.batchAddress,a.structLength)},e.prototype.disposedComponentIds=function(){return r.platform.readStructField(this.batchAddress,2*a.structLength)},e.prototype.disposedEventHandlerIds=function(){return r.platform.readStructField(this.batchAddress,3*a.structLength)},e.prototype.updatedComponentsEntry=function(e,t){return c(e,t,u.structLength)},e.prototype.referenceFramesEntry=function(e,t){return c(e,t,s.structLength)},e.prototype.disposedComponentIdsEntry=function(e,t){var n=c(e,t,4);return r.platform.readInt32Field(n)},e.prototype.disposedEventHandlerIdsEntry=function(e,t){var n=c(e,t,8);return r.platform.readUint64Field(n)},e}();t.SharedMemoryRenderBatch=o;var a={structLength:8,values:function(e){return r.platform.readObjectField(e,0)},count:function(e){return r.platform.readInt32Field(e,4)}},i={structLength:12,values:function(e){var t=r.platform.readObjectField(e,0),n=r.platform.getObjectFieldsBaseAddress(t);return r.platform.readObjectField(n,0)},offset:function(e){return r.platform.readInt32Field(e,4)},count:function(e){return r.platform.readInt32Field(e,8)}},u={structLength:4+i.structLength,componentId:function(e){return r.platform.readInt32Field(e,0)},edits:function(e){return r.platform.readStructField(e,4)},editsEntry:function(e,t){return c(e,t,l.structLength)}},l={structLength:20,editType:function(e){return r.platform.readInt32Field(e,0)},siblingIndex:function(e){return r.platform.readInt32Field(e,4)},newTreeIndex:function(e){return r.platform.readInt32Field(e,8)},moveToSiblingIndex:function(e){return r.platform.readInt32Field(e,8)},removedAttributeName:function(e){return r.platform.readStringField(e,16)}},s={structLength:36,frameType:function(e){return r.platform.readInt16Field(e,4)},subtreeLength:function(e){return r.platform.readInt32Field(e,8)},elementReferenceCaptureId:function(e){return r.platform.readStringField(e,16)},componentId:function(e){return r.platform.readInt32Field(e,12)},elementName:function(e){return r.platform.readStringField(e,16)},textContent:function(e){return r.platform.readStringField(e,16)},markupContent:function(e){return r.platform.readStringField(e,16)},attributeName:function(e){return r.platform.readStringField(e,16)},attributeValue:function(e){return r.platform.readStringField(e,24)},attributeEventHandlerId:function(e){return r.platform.readUint64Field(e,8)}};function c(e,t,n){return r.platform.getArrayEntryPtr(e,t,n)}}]); \ No newline at end of file diff --git a/release/demos/dockinglayout/defaultfunctionality/index.dll b/release/demos/dockinglayout/defaultfunctionality/index.dll new file mode 100644 index 0000000000000000000000000000000000000000..e07dc1f730612210009a92eea23715fc9bc46305 GIT binary patch literal 18944 zcmeHP4RBmnbw2Oy>g{UvWADn6tXQ(1C(v@ znrmDCtd>4k`HfA_Xh*)WY4l9mHFJ(V=_IDjWFnij^X9l^I)$v6&YAg``i*Q&H`2_h_OYj4NhR22JUUYEGJmhp@0<494@SAh22 zOSD$}SG;>gNkX5yjp!ujPZOmoyh{IVj;I>tUz{S^?XUk;d6US4E-1q&ANKLY^Va!1 z%IkWOpiL;;!;O--OrVN8u9HMbU^|VBfxrFu^IiME9e1pZ4MN6BbNFLf{ti*xcLgWW ze_{N5F{w@!^vO=5TecHvD8nwex2wA9x^=n{9N>?}NWTaf!5DR*7`X^Y$k$&)A!uCS zQdLZojh!*NlPfwvAKAK5@4!?NL9$L#LYod&W4oEkX?nc4MjzSsOp&BQG-HPkKWK85#aRjMc7kN z7m#AQ&Zs(H8rCmxZMA+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ayout/defaultfunctionality/index.js b/release/demos/dockinglayout/defaultfunctionality/index.js new file mode 100644 index 00000000..e69de29b diff --git a/release/framework/jqxBlazor.js b/release/framework/jqxBlazor.js index df8175be..3ca411aa 100644 --- a/release/framework/jqxBlazor.js +++ b/release/framework/jqxBlazor.js @@ -76,12 +76,10 @@ function checkForIsoStrings(options) { function checkForDataAdapterNeed(options) { if (options.source && options.source.dataFields) { options.source = new jqx.dataAdapter(options.source); + } - if (options.resources && options.resources.dataFields) { - options.resources = new jqx.dataAdapter(options.resources); - } - - return options; + if (options.resources && options.resources.dataFields) { + options.resources = new jqx.dataAdapter(options.resources); } if (options.source && options.source.dataSource) { @@ -89,7 +87,7 @@ function checkForDataAdapterNeed(options) { new jqx.dataAdapter(options.source.dataSource), options.source.options ); - - return options; } + + return options; }