After checking that we don't have any possible vulnerability using jquery-ui-dist (ie 1.12.1) vs jquery-ui (1.13.0) based on* and checking in code I decided to use jquery-ui-dist from npm. I just had to modify OfbizUtil.js to get back to element.form() (for 1.12.1) vs element._form() for 1.13.0 I hope the npm jquery-ui-dist package will be updated soon. The release of 1.13.0 is quite fresh (<1 month). We also need a mechanism to check the update or our npm packages. As Aditya explained: <<Minor updates can be handled implicitly by node when specified with tilde range or caret range for version. For major updates, we just have to change the version and use npm install.>> So for now it will be manual. Later something like** could be used (I wonder about https://snyk.io/, but that needs Infra agreement) * https://blog.jqueryui.com/2021/10/jquery-ui-1-13-0-released/ ** https://dev.to/dennismphil/automate-your-node-dependency-updates-4aga
76 lines
3.7 KiB
XML
76 lines
3.7 KiB
XML
<?xml version="1.0" encoding="UTF-8"?>
|
|
<!--
|
|
Licensed to the Apache Software Foundation (ASF) under one
|
|
or more contributor license agreements. See the NOTICE file
|
|
distributed with this work for additional information
|
|
regarding copyright ownership. The ASF licenses this file
|
|
to you under the Apache License, Version 2.0 (the
|
|
"License"); you may not use this file except in compliance
|
|
with the License. You may obtain a copy of the License at
|
|
|
|
http://www.apache.org/licenses/LICENSE-2.0
|
|
|
|
Unless required by applicable law or agreed to in writing,
|
|
software distributed under the License is distributed on an
|
|
"AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
|
KIND, either express or implied. See the License for the
|
|
specific language governing permissions and limitations
|
|
under the License.
|
|
-->
|
|
|
|
<screens xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
|
xmlns="http://ofbiz.apache.org/Widget-Screen" xsi:schemaLocation="http://ofbiz.apache.org/Widget-Screen http://ofbiz.apache.org/dtds/widget-screen.xsd">
|
|
|
|
<screen name="LookupDecorator"><!--This screen is deprecated use LookupHelpDecorator instead-->
|
|
<section>
|
|
<widgets><include-screen name="LookupHelpDecorator"/></widgets>
|
|
</section>
|
|
</screen>
|
|
<screen name="LookupHelpDecorator">
|
|
<section>
|
|
<widgets>
|
|
<include-screen name="MinimalActions" location="component://common/widget/CommonScreens.xml"/>
|
|
<include-screen name="LookupHelpDecorator" location="${groovy:commonScreenLocations.LookupHelpDecorator?commonScreenLocations.LookupHelpDecorator:commonDecoratorLocation}"/>
|
|
</widgets>
|
|
</section>
|
|
</screen>
|
|
|
|
<screen name="ShowHelp">
|
|
<section>
|
|
<actions>
|
|
<set field="layoutSettings.javaScripts[]" value="/common/js/node_modules/jquery/dist/jquery.min.js" global="true"/>
|
|
<set field="layoutSettings.javaScripts[]" value="/common/js/node_modules/jquery-migrate/dist/jquery-migrate.min.js" global="true"/>
|
|
<set field="layoutSettings.javaScripts[]" value="/common/js/node_modules/jquery.browser/dist/jquery.browser.min.js" global="true"/>
|
|
<set field="layoutSettings.javaScripts[]" value="/common/js/node_modules/jquery-ui-dist/jquery-ui.min.js" global="true"/>
|
|
</actions>
|
|
<widgets>
|
|
<include-screen name="MinimalActions" location="component://common/widget/CommonScreens.xml"/>
|
|
<include-screen name="ShowHelp" location="${groovy:commonScreenLocations.ShowHelp?commonScreenLocations.ShowHelp:commonDecoratorLocation}"/>
|
|
</widgets>
|
|
</section>
|
|
</screen>
|
|
|
|
<screen name="showDocument"><!--This screen is deprecated use showDocumentHelp instead-->
|
|
<section>
|
|
<widgets><include-screen name="showDocumentHelp"/></widgets>
|
|
</section>
|
|
</screen>
|
|
<screen name="showDocumentHelp">
|
|
<section>
|
|
<widgets>
|
|
<include-screen name="MinimalActions" location="component://common/widget/CommonScreens.xml"/>
|
|
<include-screen name="showDocumentHelp" location="${groovy:commonScreenLocations.showDocumentHelp?commonScreenLocations.showDocumentHelp:'test'}"/>
|
|
</widgets>
|
|
</section>
|
|
</screen>
|
|
|
|
<screen name="navigateHelp">
|
|
<section>
|
|
<widgets>
|
|
<include-screen name="MinimalActions" location="component://common/widget/CommonScreens.xml"/>
|
|
<include-screen name="navigateHelp" location="${groovy:commonScreenLocations.navigateHelp?commonScreenLocations.navigateHelp:commonDecoratorLocation}"/>
|
|
</widgets>
|
|
</section>
|
|
</screen>
|
|
</screens>
|