From 9289bc8776221e7480af53fbe787c78ac12e20db Mon Sep 17 00:00:00 2001 From: Denis Roussel Date: Wed, 13 Nov 2024 10:32:27 +0100 Subject: [PATCH 1/3] [16.0][ADD] web_widget_progressbar_color --- .../odoo/addons/web_widget_progressbar_color | 1 + setup/web_widget_progressbar_color/setup.py | 6 + web_widget_progressbar_color/README.rst | 102 ++++ web_widget_progressbar_color/__init__.py | 0 web_widget_progressbar_color/__manifest__.py | 20 + .../readme/CONTRIBUTORS.md | 1 + .../readme/DESCRIPTION.md | 5 + .../readme/ROADMAP.md | 1 + web_widget_progressbar_color/readme/USAGE.md | 1 + .../static/description/icon.png | Bin 0 -> 9455 bytes .../static/description/index.html | 444 ++++++++++++++++++ .../static/description/progressbar_color.png | Bin 0 -> 4874 bytes .../static/src/js/progressbar.esm.js | 11 + .../static/src/scss/progressbar.scss | 12 + .../static/src/xml/progressbar.xml | 20 + 15 files changed, 624 insertions(+) create mode 120000 setup/web_widget_progressbar_color/odoo/addons/web_widget_progressbar_color create mode 100644 setup/web_widget_progressbar_color/setup.py create mode 100644 web_widget_progressbar_color/README.rst create mode 100644 web_widget_progressbar_color/__init__.py create mode 100644 web_widget_progressbar_color/__manifest__.py create mode 100644 web_widget_progressbar_color/readme/CONTRIBUTORS.md create mode 100644 web_widget_progressbar_color/readme/DESCRIPTION.md create mode 100644 web_widget_progressbar_color/readme/ROADMAP.md create mode 100644 web_widget_progressbar_color/readme/USAGE.md create mode 100644 web_widget_progressbar_color/static/description/icon.png create mode 100644 web_widget_progressbar_color/static/description/index.html create mode 100644 web_widget_progressbar_color/static/description/progressbar_color.png create mode 100644 web_widget_progressbar_color/static/src/js/progressbar.esm.js create mode 100644 web_widget_progressbar_color/static/src/scss/progressbar.scss create mode 100644 web_widget_progressbar_color/static/src/xml/progressbar.xml diff --git a/setup/web_widget_progressbar_color/odoo/addons/web_widget_progressbar_color b/setup/web_widget_progressbar_color/odoo/addons/web_widget_progressbar_color new file mode 120000 index 000000000000..b9ab7eee6a30 --- /dev/null +++ b/setup/web_widget_progressbar_color/odoo/addons/web_widget_progressbar_color @@ -0,0 +1 @@ +../../../../web_widget_progressbar_color \ No newline at end of file diff --git a/setup/web_widget_progressbar_color/setup.py b/setup/web_widget_progressbar_color/setup.py new file mode 100644 index 000000000000..28c57bb64031 --- /dev/null +++ b/setup/web_widget_progressbar_color/setup.py @@ -0,0 +1,6 @@ +import setuptools + +setuptools.setup( + setup_requires=['setuptools-odoo'], + odoo_addon=True, +) diff --git a/web_widget_progressbar_color/README.rst b/web_widget_progressbar_color/README.rst new file mode 100644 index 000000000000..f6fbbda46119 --- /dev/null +++ b/web_widget_progressbar_color/README.rst @@ -0,0 +1,102 @@ +============================ +Web Widget Progressbar Color +============================ + +.. + !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! + !! This file is generated by oca-gen-addon-readme !! + !! changes will be overwritten. !! + !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! + !! source digest: sha256:52cefe47def0fe37ee1abf6e7e2e7a7d91a660212b9e1729421d1bd15449af98 + !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! + +.. |badge1| image:: https://img.shields.io/badge/maturity-Beta-yellow.png + :target: https://odoo-community.org/page/development-status + :alt: Beta +.. |badge2| image:: https://img.shields.io/badge/licence-AGPL--3-blue.png + :target: http://www.gnu.org/licenses/agpl-3.0-standalone.html + :alt: License: AGPL-3 +.. |badge3| image:: https://img.shields.io/badge/github-OCA%2Fweb-lightgray.png?logo=github + :target: https://github.com/OCA/web/tree/16.0/web_widget_progressbar_color + :alt: OCA/web +.. |badge4| image:: https://img.shields.io/badge/weblate-Translate%20me-F47D42.png + :target: https://translation.odoo-community.org/projects/web-16-0/web-16-0-web_widget_progressbar_color + :alt: Translate me on Weblate +.. |badge5| image:: https://img.shields.io/badge/runboat-Try%20me-875A7B.png + :target: https://runboat.odoo-community.org/builds?repo=OCA/web&target_branch=16.0 + :alt: Try me on Runboat + +|badge1| |badge2| |badge3| |badge4| |badge5| + +This module allows to display progress bars with colorized bar. The +color will be green for values between 0% and 40%, yellow for values +between 40% and 70% and red between 70% and 100%. + +|Progressbar Color| + +.. |Progressbar Color| image:: https://raw.githubusercontent.com/OCA/web/16.0/web_widget_progressbar_color/static/description/progressbar_color.png + +**Table of contents** + +.. contents:: + :local: + +Usage +===== + +- When declaring a progressbar field, use the 'progressbar_color' + widget. + +Known issues / Roadmap +====================== + +- Be able to configure steps values for the three colors and also in + inversed mode. + +Bug Tracker +=========== + +Bugs are tracked on `GitHub Issues `_. +In case of trouble, please check there if your issue has already been reported. +If you spotted it first, help us to smash it by providing a detailed and welcomed +`feedback `_. + +Do not contact contributors directly about support or help with technical issues. + +Credits +======= + +Authors +------- + +* ACSONE SA/NV + +Contributors +------------ + +- Denis Roussel denis.roussel@acsone.eu + +Maintainers +----------- + +This module is maintained by the OCA. + +.. image:: https://odoo-community.org/logo.png + :alt: Odoo Community Association + :target: https://odoo-community.org + +OCA, or the Odoo Community Association, is a nonprofit organization whose +mission is to support the collaborative development of Odoo features and +promote its widespread use. + +.. |maintainer-rousseldenis| image:: https://github.com/rousseldenis.png?size=40px + :target: https://github.com/rousseldenis + :alt: rousseldenis + +Current `maintainer `__: + +|maintainer-rousseldenis| + +This module is part of the `OCA/web `_ project on GitHub. + +You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute. diff --git a/web_widget_progressbar_color/__init__.py b/web_widget_progressbar_color/__init__.py new file mode 100644 index 000000000000..e69de29bb2d1 diff --git a/web_widget_progressbar_color/__manifest__.py b/web_widget_progressbar_color/__manifest__.py new file mode 100644 index 000000000000..37ca3e687fd5 --- /dev/null +++ b/web_widget_progressbar_color/__manifest__.py @@ -0,0 +1,20 @@ +# Copyright 2024 ACSONE SA/NV +# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl). + +{ + "name": "Web Widget Progressbar Color", + "summary": """This module allows to customize progressbar color""", + "version": "16.0.1.0.0", + "license": "AGPL-3", + "author": "ACSONE SA/NV,Odoo Community Association (OCA)", + "website": "https://github.com/OCA/web", + "maintainers": ["rousseldenis"], + "depends": ["web"], + "assets": { + "web.assets_backend": [ + "web_widget_progressbar_color/static/src/scss/progressbar.scss", + "web_widget_progressbar_color/static/src/xml/progressbar.xml", + "web_widget_progressbar_color/static/src/js/progressbar.esm.js", + ], + }, +} diff --git a/web_widget_progressbar_color/readme/CONTRIBUTORS.md b/web_widget_progressbar_color/readme/CONTRIBUTORS.md new file mode 100644 index 000000000000..4e7e6847269e --- /dev/null +++ b/web_widget_progressbar_color/readme/CONTRIBUTORS.md @@ -0,0 +1 @@ +- Denis Roussel diff --git a/web_widget_progressbar_color/readme/DESCRIPTION.md b/web_widget_progressbar_color/readme/DESCRIPTION.md new file mode 100644 index 000000000000..de323aa4b648 --- /dev/null +++ b/web_widget_progressbar_color/readme/DESCRIPTION.md @@ -0,0 +1,5 @@ +This module allows to display progress bars with colorized bar. +The color will be green for values between 0% and 40%, yellow for values +between 40% and 70% and red between 70% and 100%. + +![Progressbar Color](../static/description/progressbar_color.png) diff --git a/web_widget_progressbar_color/readme/ROADMAP.md b/web_widget_progressbar_color/readme/ROADMAP.md new file mode 100644 index 000000000000..a0fecb913b13 --- /dev/null +++ b/web_widget_progressbar_color/readme/ROADMAP.md @@ -0,0 +1 @@ +- Be able to configure steps values for the three colors and also in inversed mode. diff --git a/web_widget_progressbar_color/readme/USAGE.md b/web_widget_progressbar_color/readme/USAGE.md new file mode 100644 index 000000000000..e81aa072c86d --- /dev/null +++ b/web_widget_progressbar_color/readme/USAGE.md @@ -0,0 +1 @@ +- When declaring a progressbar field, use the 'progressbar_color' widget. diff --git a/web_widget_progressbar_color/static/description/icon.png b/web_widget_progressbar_color/static/description/icon.png new file mode 100644 index 0000000000000000000000000000000000000000..3a0328b516c4980e8e44cdb63fd945757ddd132d GIT binary patch literal 9455 zcmW++2RxMjAAjx~&dlBk9S+%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eV( z@H_=R8V39rt5J5YB2Ky?4eJJ#b`_iBe2ot~6%7mLt5t8Vwi^Jy7|jWXqa3amOIoRb zOr}WVFP--DsS`1WpN%~)t3R!arKF^Q$e12KEqU36AWwnCBICpH4XCsfnyrHr>$I$4 z!DpKX$OKLWarN7nv@!uIA+~RNO)l$$w}p(;b>mx8pwYvu;dD_unryX_NhT8*Tj>BTrTTL&!?O+%Rv;b?B??gSzdp?6Uug9{ zd@V08Z$BdI?fpoCS$)t4mg4rT8Q_I}h`0d-vYZ^|dOB*Q^S|xqTV*vIg?@fVFSmMpaw0qtTRbx} z({Pg?#{2`sc9)M5N$*N|4;^t$+QP?#mov zGVC@I*lBVrOU-%2y!7%)fAKjpEFsgQc4{amtiHb95KQEwvf<(3T<9-Zm$xIew#P22 zc2Ix|App^>v6(3L_MCU0d3W##AB0M~3D00EWoKZqsJYT(#@w$Y_H7G22M~ApVFTRHMI_3be)Lkn#0F*V8Pq zc}`Cjy$bE;FJ6H7p=0y#R>`}-m4(0F>%@P|?7fx{=R^uFdISRnZ2W_xQhD{YuR3t< z{6yxu=4~JkeA;|(J6_nv#>Nvs&FuLA&PW^he@t(UwFFE8)|a!R{`E`K`i^ZnyE4$k z;(749Ix|oi$c3QbEJ3b~D_kQsPz~fIUKym($a_7dJ?o+40*OLl^{=&oq$<#Q(yyrp z{J-FAniyAw9tPbe&IhQ|a`DqFTVQGQ&Gq3!C2==4x{6EJwiPZ8zub-iXoUtkJiG{} zPaR&}_fn8_z~(=;5lD-aPWD3z8PZS@AaUiomF!G8I}Mf>e~0g#BelA-5#`cj;O5>N Xviia!U7SGha1wx#SCgwmn*{w2TRX*I literal 0 HcmV?d00001 diff --git a/web_widget_progressbar_color/static/description/index.html b/web_widget_progressbar_color/static/description/index.html new file mode 100644 index 000000000000..ecda1afdfd10 --- /dev/null +++ b/web_widget_progressbar_color/static/description/index.html @@ -0,0 +1,444 @@ + + + + + +Web Widget Progressbar Color + + + +
+

Web Widget Progressbar Color

+ + +

Beta License: AGPL-3 OCA/web Translate me on Weblate Try me on Runboat

+

This module allows to display progress bars with colorized bar. The +color will be green for values between 0% and 40%, yellow for values +between 40% and 70% and red between 70% and 100%.

+

Progressbar Color

+

Table of contents

+ +
+

Usage

+
    +
  • When declaring a progressbar field, use the ‘progressbar_color’ +widget.
  • +
+
+
+

Known issues / Roadmap

+
    +
  • Be able to configure steps values for the three colors and also in +inversed mode.
  • +
+
+
+

Bug Tracker

+

Bugs are tracked on GitHub Issues. +In case of trouble, please check there if your issue has already been reported. +If you spotted it first, help us to smash it by providing a detailed and welcomed +feedback.

+

Do not contact contributors directly about support or help with technical issues.

+
+
+

Credits

+
+

Authors

+
    +
  • ACSONE SA/NV
  • +
+
+
+

Contributors

+ +
+
+

Maintainers

+

This module is maintained by the OCA.

+ +Odoo Community Association + +

OCA, or the Odoo Community Association, is a nonprofit organization whose +mission is to support the collaborative development of Odoo features and +promote its widespread use.

+

Current maintainer:

+

rousseldenis

+

This module is part of the OCA/web project on GitHub.

+

You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute.

+
+
+
+ + diff --git a/web_widget_progressbar_color/static/description/progressbar_color.png b/web_widget_progressbar_color/static/description/progressbar_color.png new file mode 100644 index 0000000000000000000000000000000000000000..6a0318263bdc5251d6c35b42d21790ac89a464ca GIT binary patch literal 4874 zcmai&cQjmE-^b4|LWmMATGSv3qC^{QNR*Heq7#gk(IZht^qL3>7gt1^kcnV0B6=By zkOa|$$Jx zT(zNzS*o)d3~Kxpp)8(&)vs3)GI?Oii!7CffjK6DjZzjY$@~@3gu9k#R%eyIDQ<8)nH6S6y_tF}Qq?keLgd8Us z84n&G2(vTGtMR_)L6I$rSJ<6ezPnZx0Oc@ub)KVqa<6qxEI0igk&eS`<2|`E z~YPd zkyhLCr#lbewqneG@lK|vW#ll3zn%V|6lBE2HaX9w;2ECP)o=C?#J7aq!^SVBCF)99lE>yEE!v9$Kb zN8osmNBTe8UnQD_RA{))FEmny4UMCZ&)qG4$3`(?!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&ua7_*>4YxJS(70Ia|C+?*gK9{@~BO7r8M$paF*#r_b4%V>a1wW-gn)|&w2GM`pYFM%^$@;Tf*o$nre3tQVg+)JS>Hi)FBriyGPXfX(ofwl*AQ zS2*3pb{!?RePOS~ENImCM()=K=>^AlhO;q{ee2$fmOQnxcIBn4S){JG>_$8JNh)w# zfYaxA%c(lk`{P{m#yf#tsNZ~fMYvL7jnowhm=s4Xk1We$#UYM*TivQY)RG|E;+7r< zyp#TyOV3b1+JJE`Z)}IO)url9gMX-*Va%xk7Oha?9f~*|Grap#Eb?>29CyhE`42XKL%z z`k`Dzd-^QoDJiSO0Wc;Gruun(g2Gh%OTTaL9^qMT4$7Js4^C5d&E=snrQHDx|4H*J zm<#Nz3fHFy2=y}&{a?)e9{`TF9W-{27^mF6hkH61jXO{Fm-t8WXWLZ*;z$#+W&TU9 zP5Brta{CecVN%K14(>ObsJ_cKudv6@F(K+oBvNJ5|-6u02|AT|Jhxyu&khtWWt@_ip zO>L8)I7C~+Rf!J01NTV+XM>TI0_HN&oJaxoH=H^Y>R5jVIX zE$YWTHrrDn&@+sU2z>1F^v$h0*z=^#Z3A7{krAob(obkLY)TsLU*OtUw~0M^FL&Sr z?Qg5NZv9f%sjYRas6Vz&z_j@wI?snjD+)BoCtgLkcxkg(+E|zl~0mj*O z>GX94001k`bn|-J$;lo>BMPuF?@OT^P|(B5K3^nvAgp=Sq(#nbJzK^c#(XY~_v*A~ zHRqrys|j9fnuN4f@(K3{-23h6UQ5J9}WOS*$HaN6E3 z%qU+9V;9igMEyGl;ZvCZR}QLoQ&)#-QjA!!ONn|L;ab-ITIW+rq}~w!8$K@*H~@gQ LhMqd+7A*W<-tZ)K literal 0 HcmV?d00001 diff --git a/web_widget_progressbar_color/static/src/js/progressbar.esm.js b/web_widget_progressbar_color/static/src/js/progressbar.esm.js new file mode 100644 index 000000000000..9a7fbdb28faa --- /dev/null +++ b/web_widget_progressbar_color/static/src/js/progressbar.esm.js @@ -0,0 +1,11 @@ +/** @odoo-module **/ +import {ProgressBarField} from "@web/views/fields/progress_bar/progress_bar_field"; +import {registry} from "@web/core/registry"; + +export class ProgressBarFieldColor extends ProgressBarField { + setup() { + super.setup(); + } +} +ProgressBarFieldColor.template = "web_widget_progressbar_color.ProgressBarFieldColor"; +registry.category("fields").add("progressbar_color", ProgressBarFieldColor); diff --git a/web_widget_progressbar_color/static/src/scss/progressbar.scss b/web_widget_progressbar_color/static/src/scss/progressbar.scss new file mode 100644 index 000000000000..12f6a6657adb --- /dev/null +++ b/web_widget_progressbar_color/static/src/scss/progressbar.scss @@ -0,0 +1,12 @@ +.o_progressbar .o_progress .o_progress_danger { + background-color: #dc3545; + height: 100%; +} +.o_progressbar .o_progress .o_progress_warning { + background-color: #ffc107; + height: 100%; +} +.o_progressbar .o_progress .o_progress_success { + background-color: #198754; + height: 100%; +} diff --git a/web_widget_progressbar_color/static/src/xml/progressbar.xml b/web_widget_progressbar_color/static/src/xml/progressbar.xml new file mode 100644 index 000000000000..2a823276ae7f --- /dev/null +++ b/web_widget_progressbar_color/static/src/xml/progressbar.xml @@ -0,0 +1,20 @@ + + + + + + + + + + From d09b4aabb85ca285fd48b024b634c2fbdabeb0ce Mon Sep 17 00:00:00 2001 From: Denis Roussel Date: Thu, 14 Nov 2024 13:33:49 +0100 Subject: [PATCH 2/3] [IMP] web_widget_progressbar_color: Rename to web_widget_progressbar_gradient --- .../odoo/addons/web_widget_progressbar_color | 1 - .../addons/web_widget_progressbar_gradient | 1 + .../setup.py | 0 .../readme/DESCRIPTION.md | 5 ---- .../static/description/progressbar_color.png | Bin 4874 -> 0 bytes .../static/src/js/progressbar.esm.js | 11 -------- .../static/src/scss/progressbar.scss | 12 --------- .../README.rst | 25 +++++++++--------- .../__init__.py | 0 .../__manifest__.py | 10 +++---- .../readme/CONTRIBUTORS.md | 1 + .../readme/DESCRIPTION.md | 5 ++++ .../readme/ROADMAP.md | 0 .../readme/USAGE.md | 0 .../static/description/icon.png | Bin .../static/description/index.html | 21 ++++++++------- .../description/progressbar_gradient.png | Bin 0 -> 9152 bytes .../static/src/js/progressbar.esm.js | 15 +++++++++++ .../static/src/scss/progressbar.scss | 19 +++++++++++++ .../static/src/xml/progressbar.xml | 4 +-- 20 files changed, 72 insertions(+), 58 deletions(-) delete mode 120000 setup/web_widget_progressbar_color/odoo/addons/web_widget_progressbar_color create mode 120000 setup/web_widget_progressbar_gradient/odoo/addons/web_widget_progressbar_gradient rename setup/{web_widget_progressbar_color => web_widget_progressbar_gradient}/setup.py (100%) delete mode 100644 web_widget_progressbar_color/readme/DESCRIPTION.md delete mode 100644 web_widget_progressbar_color/static/description/progressbar_color.png delete mode 100644 web_widget_progressbar_color/static/src/js/progressbar.esm.js delete mode 100644 web_widget_progressbar_color/static/src/scss/progressbar.scss rename {web_widget_progressbar_color => web_widget_progressbar_gradient}/README.rst (79%) rename {web_widget_progressbar_color => web_widget_progressbar_gradient}/__init__.py (100%) rename {web_widget_progressbar_color => web_widget_progressbar_gradient}/__manifest__.py (51%) rename {web_widget_progressbar_color => web_widget_progressbar_gradient}/readme/CONTRIBUTORS.md (51%) create mode 100644 web_widget_progressbar_gradient/readme/DESCRIPTION.md rename {web_widget_progressbar_color => web_widget_progressbar_gradient}/readme/ROADMAP.md (100%) rename {web_widget_progressbar_color => web_widget_progressbar_gradient}/readme/USAGE.md (100%) rename {web_widget_progressbar_color => web_widget_progressbar_gradient}/static/description/icon.png (100%) rename {web_widget_progressbar_color => web_widget_progressbar_gradient}/static/description/index.html (88%) create mode 100644 web_widget_progressbar_gradient/static/description/progressbar_gradient.png create mode 100644 web_widget_progressbar_gradient/static/src/js/progressbar.esm.js create mode 100644 web_widget_progressbar_gradient/static/src/scss/progressbar.scss rename {web_widget_progressbar_color => web_widget_progressbar_gradient}/static/src/xml/progressbar.xml (68%) diff --git a/setup/web_widget_progressbar_color/odoo/addons/web_widget_progressbar_color b/setup/web_widget_progressbar_color/odoo/addons/web_widget_progressbar_color deleted file mode 120000 index b9ab7eee6a30..000000000000 --- a/setup/web_widget_progressbar_color/odoo/addons/web_widget_progressbar_color +++ /dev/null @@ -1 +0,0 @@ -../../../../web_widget_progressbar_color \ No newline at end of file diff --git a/setup/web_widget_progressbar_gradient/odoo/addons/web_widget_progressbar_gradient b/setup/web_widget_progressbar_gradient/odoo/addons/web_widget_progressbar_gradient new file mode 120000 index 000000000000..6aa212cb614d --- /dev/null +++ b/setup/web_widget_progressbar_gradient/odoo/addons/web_widget_progressbar_gradient @@ -0,0 +1 @@ +../../../../web_widget_progressbar_gradient \ No newline at end of file diff --git a/setup/web_widget_progressbar_color/setup.py b/setup/web_widget_progressbar_gradient/setup.py similarity index 100% rename from setup/web_widget_progressbar_color/setup.py rename to setup/web_widget_progressbar_gradient/setup.py diff --git a/web_widget_progressbar_color/readme/DESCRIPTION.md b/web_widget_progressbar_color/readme/DESCRIPTION.md deleted file mode 100644 index de323aa4b648..000000000000 --- a/web_widget_progressbar_color/readme/DESCRIPTION.md +++ /dev/null @@ -1,5 +0,0 @@ -This module allows to display progress bars with colorized bar. -The color will be green for values between 0% and 40%, yellow for values -between 40% and 70% and red between 70% and 100%. - -![Progressbar Color](../static/description/progressbar_color.png) diff --git a/web_widget_progressbar_color/static/description/progressbar_color.png b/web_widget_progressbar_color/static/description/progressbar_color.png deleted file mode 100644 index 6a0318263bdc5251d6c35b42d21790ac89a464ca..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 4874 zcmai&cQjmE-^b4|LWmMATGSv3qC^{QNR*Heq7#gk(IZht^qL3>7gt1^kcnV0B6=By zkOa|$$Jx zT(zNzS*o)d3~Kxpp)8(&)vs3)GI?Oii!7CffjK6DjZzjY$@~@3gu9k#R%eyIDQ<8)nH6S6y_tF}Qq?keLgd8Us z84n&G2(vTGtMR_)L6I$rSJ<6ezPnZx0Oc@ub)KVqa<6qxEI0igk&eS`<2|`E z~YPd zkyhLCr#lbewqneG@lK|vW#ll3zn%V|6lBE2HaX9w;2ECP)o=C?#J7aq!^SV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( z7+%L))O*Lli^mPnz44zwi$m?>{N&?MJ;_cwivOR30>XLTswhdt)sL8WZhO zT&ua7_*>4YxJS(70Ia|C+?*gK9{@~BO7r8M$paF*#r_b4%V>a1wW-gn)|&w2GM`pYFM%^$@;Tf*o$nre3tQVg+)JS>Hi)FBriyGPXfX(ofwl*AQ zS2*3pb{!?RePOS~ENImCM()=K=>^AlhO;q{ee2$fmOQnxcIBn4S){JG>_$8JNh)w# zfYaxA%c(lk`{P{m#yf#tsNZ~fMYvL7jnowhm=s4Xk1We$#UYM*TivQY)RG|E;+7r< zyp#TyOV3b1+JJE`Z)}IO)url9gMX-*Va%xk7Oha?9f~*|Grap#Eb?>29CyhE`42XKL%z z`k`Dzd-^QoDJiSO0Wc;Gruun(g2Gh%OTTaL9^qMT4$7Js4^C5d&E=snrQHDx|4H*J zm<#Nz3fHFy2=y}&{a?)e9{`TF9W-{27^mF6hkH61jXO{Fm-t8WXWLZ*;z$#+W&TU9 zP5Brta{CecVN%K14(>ObsJ_cKudv6@F(K+oBvNJ5|-6u02|AT|Jhxyu&khtWWt@_ip zO>L8)I7C~+Rf!J01NTV+XM>TI0_HN&oJaxoH=H^Y>R5jVIX zE$YWTHrrDn&@+sU2z>1F^v$h0*z=^#Z3A7{krAob(obkLY)TsLU*OtUw~0M^FL&Sr z?Qg5NZv9f%sjYRas6Vz&z_j@wI?snjD+)BoCtgLkcxkg(+E|zl~0mj*O z>GX94001k`bn|-J$;lo>BMPuF?@OT^P|(B5K3^nvAgp=Sq(#nbJzK^c#(XY~_v*A~ zHRqrys|j9fnuN4f@(K3{-23h6UQ5J9}WOS*$HaN6E3 z%qU+9V;9igMEyGl;ZvCZR}QLoQ&)#-QjA!!ONn|L;ab-ITIW+rq}~w!8$K@*H~@gQ LhMqd+7A*W<-tZ)K diff --git a/web_widget_progressbar_color/static/src/js/progressbar.esm.js b/web_widget_progressbar_color/static/src/js/progressbar.esm.js deleted file mode 100644 index 9a7fbdb28faa..000000000000 --- a/web_widget_progressbar_color/static/src/js/progressbar.esm.js +++ /dev/null @@ -1,11 +0,0 @@ -/** @odoo-module **/ -import {ProgressBarField} from "@web/views/fields/progress_bar/progress_bar_field"; -import {registry} from "@web/core/registry"; - -export class ProgressBarFieldColor extends ProgressBarField { - setup() { - super.setup(); - } -} -ProgressBarFieldColor.template = "web_widget_progressbar_color.ProgressBarFieldColor"; -registry.category("fields").add("progressbar_color", ProgressBarFieldColor); diff --git a/web_widget_progressbar_color/static/src/scss/progressbar.scss b/web_widget_progressbar_color/static/src/scss/progressbar.scss deleted file mode 100644 index 12f6a6657adb..000000000000 --- a/web_widget_progressbar_color/static/src/scss/progressbar.scss +++ /dev/null @@ -1,12 +0,0 @@ -.o_progressbar .o_progress .o_progress_danger { - background-color: #dc3545; - height: 100%; -} -.o_progressbar .o_progress .o_progress_warning { - background-color: #ffc107; - height: 100%; -} -.o_progressbar .o_progress .o_progress_success { - background-color: #198754; - height: 100%; -} diff --git a/web_widget_progressbar_color/README.rst b/web_widget_progressbar_gradient/README.rst similarity index 79% rename from web_widget_progressbar_color/README.rst rename to web_widget_progressbar_gradient/README.rst index f6fbbda46119..a16c1ed17b11 100644 --- a/web_widget_progressbar_color/README.rst +++ b/web_widget_progressbar_gradient/README.rst @@ -1,6 +1,6 @@ -============================ -Web Widget Progressbar Color -============================ +=============================== +Web Widget Progressbar Gradient +=============================== .. !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! @@ -17,10 +17,10 @@ Web Widget Progressbar Color :target: http://www.gnu.org/licenses/agpl-3.0-standalone.html :alt: License: AGPL-3 .. |badge3| image:: https://img.shields.io/badge/github-OCA%2Fweb-lightgray.png?logo=github - :target: https://github.com/OCA/web/tree/16.0/web_widget_progressbar_color + :target: https://github.com/OCA/web/tree/16.0/web_widget_progressbar_gradient :alt: OCA/web .. |badge4| image:: https://img.shields.io/badge/weblate-Translate%20me-F47D42.png - :target: https://translation.odoo-community.org/projects/web-16-0/web-16-0-web_widget_progressbar_color + :target: https://translation.odoo-community.org/projects/web-16-0/web-16-0-web_widget_progressbar_gradient :alt: Translate me on Weblate .. |badge5| image:: https://img.shields.io/badge/runboat-Try%20me-875A7B.png :target: https://runboat.odoo-community.org/builds?repo=OCA/web&target_branch=16.0 @@ -28,13 +28,13 @@ Web Widget Progressbar Color |badge1| |badge2| |badge3| |badge4| |badge5| -This module allows to display progress bars with colorized bar. The -color will be green for values between 0% and 40%, yellow for values -between 40% and 70% and red between 70% and 100%. +This module allows to display progress bars with colorized gradient bar. +The color will increase following value from green passing per yellow +and finishing to red. -|Progressbar Color| +|Progressbar Gradient| -.. |Progressbar Color| image:: https://raw.githubusercontent.com/OCA/web/16.0/web_widget_progressbar_color/static/description/progressbar_color.png +.. |Progressbar Gradient| image:: https://raw.githubusercontent.com/OCA/web/16.0/web_widget_progressbar_gradient/static/description/progressbar_gradient.png **Table of contents** @@ -59,7 +59,7 @@ Bug Tracker Bugs are tracked on `GitHub Issues `_. In case of trouble, please check there if your issue has already been reported. If you spotted it first, help us to smash it by providing a detailed and welcomed -`feedback `_. +`feedback `_. Do not contact contributors directly about support or help with technical issues. @@ -75,6 +75,7 @@ Contributors ------------ - Denis Roussel denis.roussel@acsone.eu +- Jacques-Etienne Baudoux je@bcim.be Maintainers ----------- @@ -97,6 +98,6 @@ Current `maintainer `__: |maintainer-rousseldenis| -This module is part of the `OCA/web `_ project on GitHub. +This module is part of the `OCA/web `_ project on GitHub. You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute. diff --git a/web_widget_progressbar_color/__init__.py b/web_widget_progressbar_gradient/__init__.py similarity index 100% rename from web_widget_progressbar_color/__init__.py rename to web_widget_progressbar_gradient/__init__.py diff --git a/web_widget_progressbar_color/__manifest__.py b/web_widget_progressbar_gradient/__manifest__.py similarity index 51% rename from web_widget_progressbar_color/__manifest__.py rename to web_widget_progressbar_gradient/__manifest__.py index 37ca3e687fd5..03c8780377f1 100644 --- a/web_widget_progressbar_color/__manifest__.py +++ b/web_widget_progressbar_gradient/__manifest__.py @@ -2,8 +2,8 @@ # License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl). { - "name": "Web Widget Progressbar Color", - "summary": """This module allows to customize progressbar color""", + "name": "Web Widget Progressbar Gradient", + "summary": """This module allows to display progressbar with gradient""", "version": "16.0.1.0.0", "license": "AGPL-3", "author": "ACSONE SA/NV,Odoo Community Association (OCA)", @@ -12,9 +12,9 @@ "depends": ["web"], "assets": { "web.assets_backend": [ - "web_widget_progressbar_color/static/src/scss/progressbar.scss", - "web_widget_progressbar_color/static/src/xml/progressbar.xml", - "web_widget_progressbar_color/static/src/js/progressbar.esm.js", + "web_widget_progressbar_gradient/static/src/scss/progressbar.scss", + "web_widget_progressbar_gradient/static/src/xml/progressbar.xml", + "web_widget_progressbar_gradient/static/src/js/progressbar.esm.js", ], }, } diff --git a/web_widget_progressbar_color/readme/CONTRIBUTORS.md b/web_widget_progressbar_gradient/readme/CONTRIBUTORS.md similarity index 51% rename from web_widget_progressbar_color/readme/CONTRIBUTORS.md rename to web_widget_progressbar_gradient/readme/CONTRIBUTORS.md index 4e7e6847269e..48218ea22679 100644 --- a/web_widget_progressbar_color/readme/CONTRIBUTORS.md +++ b/web_widget_progressbar_gradient/readme/CONTRIBUTORS.md @@ -1 +1,2 @@ - Denis Roussel +- Jacques-Etienne Baudoux diff --git a/web_widget_progressbar_gradient/readme/DESCRIPTION.md b/web_widget_progressbar_gradient/readme/DESCRIPTION.md new file mode 100644 index 000000000000..874a82bf24bc --- /dev/null +++ b/web_widget_progressbar_gradient/readme/DESCRIPTION.md @@ -0,0 +1,5 @@ +This module allows to display progress bars with colorized gradient bar. +The color will increase following value from green passing per yellow +and finishing to red. + +![Progressbar Gradient](../static/description/progressbar_gradient.png) diff --git a/web_widget_progressbar_color/readme/ROADMAP.md b/web_widget_progressbar_gradient/readme/ROADMAP.md similarity index 100% rename from web_widget_progressbar_color/readme/ROADMAP.md rename to web_widget_progressbar_gradient/readme/ROADMAP.md diff --git a/web_widget_progressbar_color/readme/USAGE.md b/web_widget_progressbar_gradient/readme/USAGE.md similarity index 100% rename from web_widget_progressbar_color/readme/USAGE.md rename to web_widget_progressbar_gradient/readme/USAGE.md diff --git a/web_widget_progressbar_color/static/description/icon.png b/web_widget_progressbar_gradient/static/description/icon.png similarity index 100% rename from web_widget_progressbar_color/static/description/icon.png rename to web_widget_progressbar_gradient/static/description/icon.png diff --git a/web_widget_progressbar_color/static/description/index.html b/web_widget_progressbar_gradient/static/description/index.html similarity index 88% rename from web_widget_progressbar_color/static/description/index.html rename to web_widget_progressbar_gradient/static/description/index.html index ecda1afdfd10..0291c107651b 100644 --- a/web_widget_progressbar_color/static/description/index.html +++ b/web_widget_progressbar_gradient/static/description/index.html @@ -3,7 +3,7 @@ -Web Widget Progressbar Color +Web Widget Progressbar Gradient -
-

Web Widget Progressbar Color

+
+

Web Widget Progressbar Gradient

-

Beta License: AGPL-3 OCA/web Translate me on Weblate Try me on Runboat

-

This module allows to display progress bars with colorized bar. The -color will be green for values between 0% and 40%, yellow for values -between 40% and 70% and red between 70% and 100%.

-

Progressbar Color

+

Beta License: AGPL-3 OCA/web Translate me on Weblate Try me on Runboat

+

This module allows to display progress bars with colorized gradient bar. +The color will increase following value from green passing per yellow +and finishing to red.

+

Progressbar Gradient

Table of contents

    @@ -407,7 +407,7 @@

    Bug Tracker

    Bugs are tracked on GitHub Issues. In case of trouble, please check there if your issue has already been reported. If you spotted it first, help us to smash it by providing a detailed and welcomed -feedback.

    +feedback.

    Do not contact contributors directly about support or help with technical issues.

@@ -422,6 +422,7 @@

Authors

Contributors

@@ -435,7 +436,7 @@

Maintainers

promote its widespread use.

Current maintainer:

rousseldenis

-

This module is part of the OCA/web project on GitHub.

+

This module is part of the OCA/web project on GitHub.

You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute.

diff --git a/web_widget_progressbar_gradient/static/description/progressbar_gradient.png b/web_widget_progressbar_gradient/static/description/progressbar_gradient.png new file mode 100644 index 0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ZiOcJj-)&=OzN4k3cg`qvjSu zP2AkE#~g$8(su~|P+^2mOWaY{6yf*(@d@h8@ua!|-ezoNKt);IsCA?DS0XjLjitDk7giLw)9*|an}H|$q9TXA)-vDWJKJ&VC&@FE9I1axuw z9j}?HA|R@sZ*0QNr#iU~d$ik~zjOWEqqgy1{Wyr$9e!BX zbb-gF$@RTubrTJe6Q|x8L&ozljyOX26CF7UhO+6eYN}1Hl_|%jayZpo{mMg8f~P|Q z;y}&2-}Sd&cF%|zyy8j(oz zrr)@Doh&9O3!^S{Az#XDR@j`;H65iwoHKvC2#M;lQf5;F;$CYQm(cU+ghXwj67S+# z6L;5(5{YDk?%+WI-4)dQ)V?4cO(Z-NkL7%Sk@%q F{{W9GSPTFF literal 0 HcmV?d00001 diff --git a/web_widget_progressbar_gradient/static/src/js/progressbar.esm.js b/web_widget_progressbar_gradient/static/src/js/progressbar.esm.js new file mode 100644 index 000000000000..19eedd0852ff --- /dev/null +++ b/web_widget_progressbar_gradient/static/src/js/progressbar.esm.js @@ -0,0 +1,15 @@ +/** @odoo-module + * Copyright 2024 ACSONE SA/NV + * License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl). + * **/ +import {ProgressBarField} from "@web/views/fields/progress_bar/progress_bar_field"; +import {registry} from "@web/core/registry"; + +export class ProgressBarFieldGradient extends ProgressBarField { + setup() { + super.setup(); + } +} +ProgressBarFieldGradient.template = + "web_widget_progressbar_color.ProgressBarFieldGradient"; +registry.category("fields").add("progressbar_gradient", ProgressBarFieldGradient); diff --git a/web_widget_progressbar_gradient/static/src/scss/progressbar.scss b/web_widget_progressbar_gradient/static/src/scss/progressbar.scss new file mode 100644 index 000000000000..fc865523a29a --- /dev/null +++ b/web_widget_progressbar_gradient/static/src/scss/progressbar.scss @@ -0,0 +1,19 @@ +div:has(div.o_progressbar_gradient) .o_progressbar .o_progress { + position: relative; +} + +.o_progressbar .o_progress .o_progressbar_gradient { + height: 100%; + /* this will do the magic for masking the gradient */ + -webkit-mask: linear-gradient(#fff 0 0); + mask: linear-gradient(#fff 0 0); +} +.o_progressbar .o_progress .o_progressbar_gradient::before { + content: ""; + position: absolute; + top: 0; + left: 0; + right: 0; + bottom: 0; + background-image: linear-gradient(to right, #198754, #ffc107, #dc3545); +} diff --git a/web_widget_progressbar_color/static/src/xml/progressbar.xml b/web_widget_progressbar_gradient/static/src/xml/progressbar.xml similarity index 68% rename from web_widget_progressbar_color/static/src/xml/progressbar.xml rename to web_widget_progressbar_gradient/static/src/xml/progressbar.xml index 2a823276ae7f..d762571cc4e2 100644 --- a/web_widget_progressbar_color/static/src/xml/progressbar.xml +++ b/web_widget_progressbar_gradient/static/src/xml/progressbar.xml @@ -4,7 +4,7 @@ From 966916a408514bef719558200991978976fd344c Mon Sep 17 00:00:00 2001 From: Denis Roussel Date: Thu, 14 Nov 2024 17:49:12 +0100 Subject: [PATCH 3/3] [IMP] web_widget_progressbar_gradient: Add inverse option Allows to reverse the gradient rendering --- web_widget_progressbar_gradient/README.rst | 10 ++++++++ .../readme/CONTRIBUTORS.md | 1 + .../readme/DESCRIPTION.md | 6 +++++ .../readme/USAGE.md | 2 ++ .../static/description/index.html | 10 ++++++++ .../description/progressbar_gradient.png | Bin 9152 -> 9061 bytes .../progressbar_gradient_inverse.png | Bin 0 -> 9152 bytes .../static/src/js/progressbar.esm.js | 24 ++++++++++++++++++ .../static/src/scss/progressbar.scss | 13 +++++++++- .../static/src/xml/progressbar.xml | 7 ----- 10 files changed, 65 insertions(+), 8 deletions(-) create mode 100644 web_widget_progressbar_gradient/static/description/progressbar_gradient_inverse.png diff --git a/web_widget_progressbar_gradient/README.rst b/web_widget_progressbar_gradient/README.rst index a16c1ed17b11..fd73c1051dc8 100644 --- a/web_widget_progressbar_gradient/README.rst +++ b/web_widget_progressbar_gradient/README.rst @@ -32,9 +32,16 @@ This module allows to display progress bars with colorized gradient bar. The color will increase following value from green passing per yellow and finishing to red. +- Normal rendering: + |Progressbar Gradient| +- Reverse rendering: + +|Progressbar Inverse Gradient| + .. |Progressbar Gradient| image:: https://raw.githubusercontent.com/OCA/web/16.0/web_widget_progressbar_gradient/static/description/progressbar_gradient.png +.. |Progressbar Inverse Gradient| image:: https://raw.githubusercontent.com/OCA/web/16.0/web_widget_progressbar_gradient/static/description/progressbar_gradient_inverse.png **Table of contents** @@ -46,6 +53,8 @@ Usage - When declaring a progressbar field, use the 'progressbar_color' widget. +- Add the inverse option to reverse the colors on the progress bar + field: ``options="{'inverse': true}"`` Known issues / Roadmap ====================== @@ -76,6 +85,7 @@ Contributors - Denis Roussel denis.roussel@acsone.eu - Jacques-Etienne Baudoux je@bcim.be +- Souheil Bejaoui souheil.bejaoui@acsone.eu Maintainers ----------- diff --git a/web_widget_progressbar_gradient/readme/CONTRIBUTORS.md b/web_widget_progressbar_gradient/readme/CONTRIBUTORS.md index 48218ea22679..2c5aaa0206f7 100644 --- a/web_widget_progressbar_gradient/readme/CONTRIBUTORS.md +++ b/web_widget_progressbar_gradient/readme/CONTRIBUTORS.md @@ -1,2 +1,3 @@ - Denis Roussel - Jacques-Etienne Baudoux +- Souheil Bejaoui diff --git a/web_widget_progressbar_gradient/readme/DESCRIPTION.md b/web_widget_progressbar_gradient/readme/DESCRIPTION.md index 874a82bf24bc..02a379a11ed2 100644 --- a/web_widget_progressbar_gradient/readme/DESCRIPTION.md +++ b/web_widget_progressbar_gradient/readme/DESCRIPTION.md @@ -2,4 +2,10 @@ This module allows to display progress bars with colorized gradient bar. The color will increase following value from green passing per yellow and finishing to red. +- Normal rendering: + ![Progressbar Gradient](../static/description/progressbar_gradient.png) + +- Reverse rendering: + +![Progressbar Inverse Gradient](../static/description/progressbar_gradient_inverse.png) diff --git a/web_widget_progressbar_gradient/readme/USAGE.md b/web_widget_progressbar_gradient/readme/USAGE.md index e81aa072c86d..a3cd945eea10 100644 --- a/web_widget_progressbar_gradient/readme/USAGE.md +++ b/web_widget_progressbar_gradient/readme/USAGE.md @@ -1 +1,3 @@ - When declaring a progressbar field, use the 'progressbar_color' widget. +- Add the inverse option to reverse the colors on the progress bar field: + ``options="{'inverse': true}"`` diff --git a/web_widget_progressbar_gradient/static/description/index.html b/web_widget_progressbar_gradient/static/description/index.html index 0291c107651b..a855bd23c460 100644 --- a/web_widget_progressbar_gradient/static/description/index.html +++ b/web_widget_progressbar_gradient/static/description/index.html @@ -373,7 +373,14 @@

Web Widget Progressbar Gradient

This module allows to display progress bars with colorized gradient bar. The color will increase following value from green passing per yellow and finishing to red.

+
    +
  • Normal rendering:
  • +

Progressbar Gradient

+
    +
  • Reverse rendering:
  • +
+

Progressbar Inverse Gradient

Table of contents

    @@ -393,6 +400,8 @@

    Usage

    • When declaring a progressbar field, use the ‘progressbar_color’ widget.
    • +
    • Add the inverse option to reverse the colors on the progress bar +field: options="{'inverse': true}"
@@ -423,6 +432,7 @@

Contributors

diff --git a/web_widget_progressbar_gradient/static/description/progressbar_gradient.png b/web_widget_progressbar_gradient/static/description/progressbar_gradient.png index 8df8e74d6aaff32702d8599d84b53835c05fc26f..3ef7bbbb584a7195a5deb32c87a67ede6bab5481 100644 GIT binary patch literal 9061 zcmbVyXIN9+wl0c*O7DUQ(n7BRq$2_X5_<1dL+_nX1OX8N>7AhT4u)Pung~gd-jSBj zTR^0rxbNNP-hG~Lf9Ib2W2}{D{g`WJ&N;?-%Zky`P$s@le;)@2hgelbQ3rd6;^5p8 zx{HtfWfSQB9ecayu43$kgG18$CvK(kkUYe}d5oi~D6i+Avzr^_t+(EBDwi!N!4PG0 zn}Yi^d_J6l_a6V#^h2tn+1?lK*3C7Iw;f3cs7m!-;ML#tBv&jaCm+Gbd;P4QEqLka z5}<;fC%x%TR#>Fgv%5KLPgyvUU%|;xSGK=~cQS|9gei~KjxL%-_O5o&nH)Xo``5cy z!`Jb?7r$Jj!t=vO$~hj_TPi}rh5srf@yE{A$}WquqDSt$XQVC*ydTHHd3ekF2H9uN z?0dH*g2qO9+v;>0&|6m}(In;XA~h#9FTcG}uuv-pS&uCKojb=ippmC76ZxF7{x{CZ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b-gF$@RTubrTJe6Q|x8L&ozljyOX26CF7UhO+6eYN}1Hl_|%jayZpo{mMg8f~P|Q z;y}&2-}Sd&cF%|zyy8j(oz zrr)@Doh&9O3!^S{Az#XDR@j`;H65iwoHKvC2#M;lQf5;F;$CYQm(cU+ghXwj67S+# z6L;5(5{YDk?%+WI-4)dQ)V?4cO(Z-NkL7%Sk@%q F{{W9GSPTFF diff --git a/web_widget_progressbar_gradient/static/description/progressbar_gradient_inverse.png b/web_widget_progressbar_gradient/static/description/progressbar_gradient_inverse.png new file mode 100644 index 0000000000000000000000000000000000000000..8df8e74d6aaff32702d8599d84b53835c05fc26f GIT binary patch literal 9152 zcmb_?XIN9)x-J%qARtnuN)eQ%bV5KDRgr3;_aaCOB|zvPAVoR?QWA;?NEay~ROvnR z9tb^j2)%RTI(wb#-h171o_n72BboEh7@0F;yx&{C5vHN`jFgz37!MDRROz|=E8G>1 zhj&eohyZt2Wg+ti?sCiVxh@zFkF4d_=UM^}83P{PeLN+3nK$mxO_-PanWhnsti^l;=xCgly`!7K7{IP&``iLc-cTQy7H)iAE8zFZz-Hex&{H0luy7b zjxWn|?dr>9TpJu119?-%a3%h9RD9xsTXuS6Ck=XRZ7oLsg- zHN;(cdw;+iA=nP65^8YTYuv~3u`PO{HCB&&*5o*vWxmvp;kjM^lk6HH-7_T-ezDsx z`esXkp4T01rp#t6X}Y(znMxn&42*f!89HiW$Nh+6H z$_plK&_Cm`bm_xX9331zU$SU8p>UPz%QLlc69p$*cbMJ{)ghR++|V?`w!rqSOF!>YMT2p7z78qnCx)HtDWvISn&1RLj^P;ei1N}VZ*+B&2!1nUg8UXU2 zydLEZ491Gx{LmUz1sVIv-R*0=rs|=x z0!mUO@b$XZj-HbgQlE2YW%wqPA}MbPI+boo2?aB#@d6;_JC1A8T0853a!E&a+<_aX zTa<-<_T+)f^*sS0R@m+n%Gp3|UB8~8`FF+YVr62NMuYj4WfcMmpFj7oBg}vdBzjRb zZ+N*td}aVRCjb(ZhpI~%B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?xiViKR7Lpj#oGv!*lne#Ra6#7xYDlYSfA_D9)=yR}d@J|6Vk~T{zH& zhj+vB*I9u7|Cl29aJ%q{SN^%o2iXs)6-BuG6Wsbp#t=u+n}$v=s^krFJ3A+PiUXY2 zB>U}m3?&7v?!u4rUyM-MS@n9I#CzT!6^Ow~`-JW@qc)Of@_SqNnFJ z3;(@4PWo-v#(9fK%Y&MqLR;iEtnEjS$T?`UBxyh@eQf3^+okwM?S&gfbGkuSO@nS{ zK4J{K(~I64oApeL#JAY~@u}YAS^-UD7QYvHJHz`uuZiOcJj-)&=OzN4k3cg`qvjSu zP2AkE#~g$8(su~|P+^2mOWaY{6yf*(@d@h8@ua!|-ezoNKt);IsCA?DS0XjLjitDk7giLw)9*|an}H|$q9TXA)-vDWJKJ&VC&@FE9I1axuw z9j}?HA|R@sZ*0QNr#iU~d$ik~zjOWEqqgy1{Wyr$9e!BX zbb-gF$@RTubrTJe6Q|x8L&ozljyOX26CF7UhO+6eYN}1Hl_|%jayZpo{mMg8f~P|Q z;y}&2-}Sd&cF%|zyy8j(oz zrr)@Doh&9O3!^S{Az#XDR@j`;H65iwoHKvC2#M;lQf5;F;$CYQm(cU+ghXwj67S+# z6L;5(5{YDk?%+WI-4)dQ)V?4cO(Z-NkL7%Sk@%q F{{W9GSPTFF literal 0 HcmV?d00001 diff --git a/web_widget_progressbar_gradient/static/src/js/progressbar.esm.js b/web_widget_progressbar_gradient/static/src/js/progressbar.esm.js index 19eedd0852ff..f75a80794efd 100644 --- a/web_widget_progressbar_gradient/static/src/js/progressbar.esm.js +++ b/web_widget_progressbar_gradient/static/src/js/progressbar.esm.js @@ -5,11 +5,35 @@ import {ProgressBarField} from "@web/views/fields/progress_bar/progress_bar_field"; import {registry} from "@web/core/registry"; +const {onMounted} = owl; export class ProgressBarFieldGradient extends ProgressBarField { setup() { super.setup(); + onMounted(() => this._mounted()); + } + + _mounted() { + // Set the gradient css and inverse if set + for (const child of this.__owl__.bdom.el.children) { + if (child.classList.contains("o_progress")) { + child.children[0].classList.add("o_progressbar_gradient"); + if (this.props.inverse) { + child.children[0].classList.add("o_inverse"); + } + } + } } } +ProgressBarFieldGradient.extractProps = ({attrs}) => { + return { + inverse: attrs.options.inverse, + }; +}; ProgressBarFieldGradient.template = "web_widget_progressbar_color.ProgressBarFieldGradient"; +ProgressBarFieldGradient.props = { + ...ProgressBarField.props, + inverse: {type: Boolean, optional: true}, +}; + registry.category("fields").add("progressbar_gradient", ProgressBarFieldGradient); diff --git a/web_widget_progressbar_gradient/static/src/scss/progressbar.scss b/web_widget_progressbar_gradient/static/src/scss/progressbar.scss index fc865523a29a..b3795b14e5ce 100644 --- a/web_widget_progressbar_gradient/static/src/scss/progressbar.scss +++ b/web_widget_progressbar_gradient/static/src/scss/progressbar.scss @@ -8,7 +8,8 @@ div:has(div.o_progressbar_gradient) .o_progressbar .o_progress { -webkit-mask: linear-gradient(#fff 0 0); mask: linear-gradient(#fff 0 0); } -.o_progressbar .o_progress .o_progressbar_gradient::before { + +.o_progressbar .o_progress .o_progressbar_gradient.o_inverse::before { content: ""; position: absolute; top: 0; @@ -17,3 +18,13 @@ div:has(div.o_progressbar_gradient) .o_progressbar .o_progress { bottom: 0; background-image: linear-gradient(to right, #198754, #ffc107, #dc3545); } + +.o_progressbar .o_progress .o_progressbar_gradient::before { + content: ""; + position: absolute; + top: 0; + left: 0; + right: 0; + bottom: 0; + background-image: linear-gradient(to right, #dc3545, #ffc107, #198754); +} diff --git a/web_widget_progressbar_gradient/static/src/xml/progressbar.xml b/web_widget_progressbar_gradient/static/src/xml/progressbar.xml index d762571cc4e2..eed36cc6fdbe 100644 --- a/web_widget_progressbar_gradient/static/src/xml/progressbar.xml +++ b/web_widget_progressbar_gradient/static/src/xml/progressbar.xml @@ -9,12 +9,5 @@ t-inherit-mode="primary" owl="1" > - - -