[ https://issues.apache.org/jira/browse/OFBIZ-13209?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17928145#comment-17928145 ]
Florian Motteau edited comment on OFBIZ-13209 at 2/18/25 4:38 PM: ------------------------------------------------------------------ [~jleroux]I fixed SonarQube errors, and switched to NPM to include daterangepicker, and moment + moment-with-locales (https://www.npmjs.com/package/moment-with-locales-es6, https://www.npmjs.com/package/moment-timezone). I also removed /themes/common-theme/webapp/common-theme/js/plugins/moment-timezone, and modified /themes/common-theme/webapp/common-theme/js/util/setUserTimeZone.js accordingly (no more dynamic import before calling moment.ts.guess). SonarQube is clean, Hooray. We had 3 CSS errors in daterangepicker.css, but since it is a NPM dependency now, no more errors. I will add a demo in the example plugin ASAP. was (Author: JIRAUSER289190): [~jleroux]I fixed SonarQube errors, and switched to NPM to include daterangepicker, and moment + moment-with-locales (https://www.npmjs.com/package/moment-with-locales-es6, https://www.npmjs.com/package/moment-timezone). I also removed /themes/common-theme/webapp/common-theme/js/plugins/moment-timezone, and modified /themes/common-theme/webapp/common-theme/js/util/setUserTimeZone.js, accordingly (no more dynamic import before calling moment.ts.guess). SonarQube is clean, Hooray. I will add a demo in the example plugin ASAP. > Add a date range picker field type > ---------------------------------- > > Key: OFBIZ-13209 > URL: https://issues.apache.org/jira/browse/OFBIZ-13209 > Project: OFBiz > Issue Type: Sub-task > Components: ALL COMPONENTS, theme/common-theme > Affects Versions: Upcoming Branch > Reporter: Florian Motteau > Assignee: Jacques Le Roux > Priority: Minor > Attachments: screenshot-1.png > > > Implement a new field type, based on https://www.daterangepicker.com/. > More details about the intention and the choices that have been made > [here|https://lists.apache.org/thread/bymllxn7ysdz3ooksfgwmwffdv1hyoxq] > In a nutshell : build a new form field that would be a wrapper around > [DRP|https://www.daterangepicker.com/.] functionalities. -- This message was sent by Atlassian Jira (v8.20.10#820010)