imio.smartweb.common 1.2.30__py3-none-any.whl → 1.2.32__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1 +1 @@
1
- form.tabbed-form-with-toggle fieldset legend.dropdown-toggle{cursor:pointer}form.tabbed-form-with-toggle fieldset:not(:first-child) legend.dropdown-toggle:after{display:inline-block;margin-left:7px;transform-origin:center center;transition:all .3s ease-in;vertical-align:middle}form.tabbed-form-with-toggle fieldset:not(:first-child) legend.dropdown-toggle.expanded:after{transform:rotate(180deg)}
1
+ form.tabbed-form-with-toggle fieldset legend.dropdown-toggle{cursor:pointer}form.tabbed-form-with-toggle fieldset:not(:first-child) legend.dropdown-toggle:after{display:inline-block;margin-left:7px;transform-origin:center center;transition:all .3s ease-in;vertical-align:middle}form.tabbed-form-with-toggle fieldset:not(:first-child) legend.dropdown-toggle.expanded:after{transform:rotate(180deg)}div.content-browser-wrapper button.upload{display:none}
@@ -16,3 +16,7 @@ form.tabbed-form-with-toggle fieldset:not(:nth-child(1)) legend.dropdown-toggle{
16
16
  }
17
17
  }
18
18
  }
19
+
20
+ div.content-browser-wrapper button.upload {
21
+ display: none;
22
+ }
@@ -27,4 +27,7 @@
27
27
 
28
28
  <includeOverrides file="caching_overrides.zcml" />
29
29
 
30
+ <!-- widgets -->
31
+ <include file="widgets.zcml" />
32
+
30
33
  </configure>
@@ -4,6 +4,7 @@ from collective.privacy.interfaces import ICollectivePrivacyLayer
4
4
  from collective.taxonomy.interfaces import IBrowserLayer
5
5
  from imio.smartweb.locales import SmartwebMessageFactory as _
6
6
  from plone import schema
7
+ from plone.app.z3cform.interfaces import IAjaxSelectWidget
7
8
  from plone.app.z3cform.interfaces import IPloneFormLayer
8
9
  from plone.supermodel import model
9
10
  from plone.theme.interfaces import IDefaultPloneLayer
@@ -41,3 +42,7 @@ class IAddress(model.Schema):
41
42
  source="imio.smartweb.vocabulary.Countries",
42
43
  required=False,
43
44
  )
45
+
46
+
47
+ class ITranslatedAjaxSelectWidget(IAjaxSelectWidget):
48
+ """Marker interface for the TranslatedAjaxSelectWidget."""
@@ -1,13 +1,16 @@
1
1
  # -*- coding: utf-8 -*-
2
2
 
3
+ from imio.smartweb.common.interfaces import ITranslatedAjaxSelectWidget
3
4
  from plone import api
4
- from plone.app.z3cform.widget import AjaxSelectWidget
5
+ from plone.app.z3cform.widgets.select import AjaxSelectWidget
5
6
  from z3c.form.interfaces import IFieldWidget
6
7
  from z3c.form.widget import FieldWidget
7
8
  from zope.interface import implementer
9
+ from zope.interface import implementer_only
8
10
  from zope.i18n import translate
9
11
 
10
12
 
13
+ @implementer_only(ITranslatedAjaxSelectWidget)
11
14
  class TranslatedAjaxSelectWidget(AjaxSelectWidget):
12
15
  """Translated Ajax select widget for z3c.form."""
13
16
 
@@ -0,0 +1,26 @@
1
+ <html xmlns="http://www.w3.org/1999/xhtml"
2
+ xmlns:tal="http://xml.zope.org/namespaces/tal"
3
+ tal:omit-tag="">
4
+ <span id="" class=""
5
+ tal:attributes="id view/id;
6
+ class view/klass;
7
+ style view/style;
8
+ title view/title;
9
+ lang view/lang;
10
+ onclick view/onclick;
11
+ ondblclick view/ondblclick;
12
+ onmousedown view/onmousedown;
13
+ onmouseup view/onmouseup;
14
+ onmouseover view/onmouseover;
15
+ onmousemove view/onmousemove;
16
+ onmouseout view/onmouseout;
17
+ onkeypress view/onkeypress;
18
+ onkeydown view/onkeydown;
19
+ onkeyup view/onkeyup"><tal:block
20
+ condition="view/value"
21
+ />
22
+ <tal:loop tal:repeat="item python:view.display_items()">
23
+ <span data-token="${python:item['token']}">${python:item['title']}</span><tal:if tal:condition="python: not repeat.item.end" tal:replace="python:view.separator" />
24
+ </tal:loop>
25
+ </span>
26
+ </html>
@@ -0,0 +1,15 @@
1
+ <configure
2
+ xmlns="http://namespaces.zope.org/zope"
3
+ xmlns:z3c="http://namespaces.zope.org/z3c"
4
+ >
5
+
6
+ <!-- ajaxselect -->
7
+ <z3c:widgetTemplate
8
+ field="*"
9
+ widget=".interfaces.ITranslatedAjaxSelectWidget"
10
+ template="widgets/templates/ajaxselect_display.pt"
11
+ layer=".interfaces.IImioSmartwebCommonLayer"
12
+ mode="display"
13
+ />
14
+
15
+ </configure>
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: imio.smartweb.common
3
- Version: 1.2.30
3
+ Version: 1.2.32
4
4
  Summary: Common utilities, vocabularies, taxonomies for imio.smartweb & co products
5
5
  Home-page: https://github.com/imio/imio.smartweb.common
6
6
  Author: iMio
@@ -178,6 +178,20 @@ Changelog
178
178
  =========
179
179
 
180
180
 
181
+ 1.2.32 (2025-05-19)
182
+ -------------------
183
+
184
+ - WEB-4250 : Quick fix : Since Plone 6.1, AjaxSelectWidget is displaying in edit mode even if mode is "display"
185
+ [boulch]
186
+
187
+
188
+ 1.2.31 (2025-05-15)
189
+ -------------------
190
+
191
+ - Dirty css fix to hide the "Upload" button in the new pat-contentbrowser
192
+ [remdub]
193
+
194
+
181
195
  1.2.30 (2025-05-14)
182
196
  -------------------
183
197
 
@@ -1,15 +1,15 @@
1
- imio.smartweb.common-1.2.30-py3.12-nspkg.pth,sha256=XZ3YhlzwpUCC8tXtelHRqxVxo3NWomIiMsUfUshrbeE,1011
1
+ imio.smartweb.common-1.2.32-py3.12-nspkg.pth,sha256=XZ3YhlzwpUCC8tXtelHRqxVxo3NWomIiMsUfUshrbeE,1011
2
2
  imio/smartweb/common/__init__.py,sha256=Na9XBfEQUMrm2c5jbqQgwWeg40ih0aXVG1vT8NeAjMQ,2709
3
3
  imio/smartweb/common/adapters.py,sha256=BjnzwhRhSYXziKUzmNTRBOXqDv4k8C8kfmwqZE7r1yU,1413
4
4
  imio/smartweb/common/adapters.zcml,sha256=VO3luZDtRL9FIIEghxPrqpx8paZF3m6MGEy-8kF1sOQ,437
5
5
  imio/smartweb/common/caching.py,sha256=aN7gX9rT63fnmUuZnx82Mbu3ghjJUeOiLvLEp9OiFm4,895
6
6
  imio/smartweb/common/caching_overrides.zcml,sha256=ysa5DgVGzO1Fp22d9Wg-vNyLlqfRR77WBV-7L6j0Hpo,526
7
7
  imio/smartweb/common/config.py,sha256=imgOo0_BBIbXGFNvBnhPReLOSY4JqIOH_QCAl0j0XGI,435
8
- imio/smartweb/common/configure.zcml,sha256=5TiJ-6jxqeuc8ab9TWDP7B37t6TWsxb8BMQLQKqIwO4,951
8
+ imio/smartweb/common/configure.zcml,sha256=h0D6fBNURlPdrpDNTW_o_crZMsuXm8sqoMSZMv3ZUhk,1005
9
9
  imio/smartweb/common/contact_utils.py,sha256=Pr-Nhz9MRnfirZ7RbmF5JZw9fX4gWa0dWkvJlQBiDKY,11341
10
10
  imio/smartweb/common/indexers.py,sha256=TvvKglWI0JM5_jwetlpvqcjwkid_2PhaCZGKZV4sD34,1148
11
11
  imio/smartweb/common/indexers.zcml,sha256=End1fDod99sr0xw8PaakgeTAZYq-HLOGw3MNA8K_CTs,324
12
- imio/smartweb/common/interfaces.py,sha256=mpPvvAUulZw32jdfdxXCqXhQfR8361-RM_RphNpr_fc,1489
12
+ imio/smartweb/common/interfaces.py,sha256=8Yv3B9q4oL_ql2Eh3_T5qvHjshaTE-h1TTXvZI4KdLY,1667
13
13
  imio/smartweb/common/permissions.zcml,sha256=9BGNZ62fAdn6nTJkITcmhwEJA48UT7q9vOLHZqiuRzQ,260
14
14
  imio/smartweb/common/privacy.py,sha256=ePuR-c-w7AmXSWA6czpfFK-wYNdoCm5yzEUKNSFKDW8,3476
15
15
  imio/smartweb/common/privacy.zcml,sha256=KHC4JJt-9MbPcHHukN7QLwpMFXj96gXb0-vzU2ZboGk,1772
@@ -22,6 +22,7 @@ imio/smartweb/common/testing.zcml,sha256=7N-ALtklyWeLSzZmlxN2Tp-aZe_3An--w_6BGl1
22
22
  imio/smartweb/common/utils.py,sha256=sSq72k41ELmlW5jc7JkRgKLXKQbbd68-87JtEDHmTCQ,7738
23
23
  imio/smartweb/common/vocabularies.py,sha256=QRIOWLOALzZDM92o1iUTWgDBBcrdd9BYz7miNjpYCDA,3835
24
24
  imio/smartweb/common/vocabularies.zcml,sha256=iFJer5q3wabBp_EZivPPVUqI1_9w5P_Ft1RGJB5Yqxs,940
25
+ imio/smartweb/common/widgets.zcml,sha256=GQ0aJblx44OJpj0HGXiyQJnFeSaJlOTMd1RAZn_1Qgk,375
25
26
  imio/smartweb/common/behaviors/__init__.py,sha256=iwhKnzeBJLKxpRVjvzwiRE63_zNpIBfaKLITauVph-0,24
26
27
  imio/smartweb/common/behaviors/configure.zcml,sha256=RfGH8DIybHpxxe2HUsjH2QKSiWYpV7lCZhGN6KLFwCw,531
27
28
  imio/smartweb/common/behaviors/iam.py,sha256=17ON7M6FHXOM_8NOHT_QnJJuAIs4diWCrguHP6Lh5oA,825
@@ -44,13 +45,13 @@ imio/smartweb/common/browser/privacy/utils.py,sha256=sjjKUWb09Wgi6XeMj5d9qC93iCT
44
45
  imio/smartweb/common/browser/privacy/views.py,sha256=RITfvlYcWG43Zssy46q3Izt-fDYKrUrnhD1A_-zBYqQ,1815
45
46
  imio/smartweb/common/browser/static/Makefile,sha256=LtPs80oJtQ7OWohNU9C60gRVBfN3p0N8ki158FKU7pg,351
46
47
  imio/smartweb/common/browser/static/package.json,sha256=lGQOfiOS0-p0SBh2rnNkZKiZToIKNGviruLr3sFUfV8,755
47
- imio/smartweb/common/browser/static/smartweb-common-edit-compiled.css,sha256=lIhk5Rmzye_1VvgHobUbI8M1Dx4KCsraBvseEg1eAKA,397
48
+ imio/smartweb/common/browser/static/smartweb-common-edit-compiled.css,sha256=4UcEN3qWH5OAfZB6MmAnLf28U1Da_APN2PBiV60-WZU,452
48
49
  imio/smartweb/common/browser/static/smartweb-common-edit-compiled.js,sha256=iHDTpF2oo2wJmkbP0mVRFxBZfpqPgVCp9POyBG5aOs0,804
49
50
  imio/smartweb/common/browser/static/smartweb-common-view-compiled.css,sha256=2ApU7ORyWPWUaylmnb-_JPVZyWNMGJsQFtaCcnuX-pY,1040
50
51
  imio/smartweb/common/browser/static/smartweb-common-view-compiled.js,sha256=7k8nElVDeNKuGC3G6wfN8KxMSlO-x1fEML7vs6l1LmA,1134
51
52
  imio/smartweb/common/browser/static/webpack.config.js,sha256=cb2bWO9Qd0IQX5kBsc8ynEbsDJCB5yPkagdAMEd6jvw,1045
52
53
  imio/smartweb/common/browser/static/src/edit.js,sha256=vmgtg9voaSw6nPcVNmkBqiuCnsrV-W352fSNZzxfDeU,1380
53
- imio/smartweb/common/browser/static/src/edit.less,sha256=S1LTB9C-v2X6e--GdyT6RCL05rtTN-viggfD0sjX9nE,402
54
+ imio/smartweb/common/browser/static/src/edit.less,sha256=1u66e_O063F048B4PEJWO3DCQs2wA0b6Ruf8rHCmcyc,466
54
55
  imio/smartweb/common/browser/static/src/view.js,sha256=CspnXPDZ8eo37Mse0Hk_NbVuXNRBrts3LOM4492z7-U,2045
55
56
  imio/smartweb/common/browser/static/src/view.less,sha256=6JV71CZtvZNaFhg6lIm2hwtfijxErsqb0ZyNPc3XIYs,1542
56
57
  imio/smartweb/common/faceted/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
@@ -139,11 +140,12 @@ imio/smartweb/common/viewlets/privacy.py,sha256=H752etTTIFCM0wTwjESQFl0PStJfCoSR
139
140
  imio/smartweb/common/viewlets/skip_to_content.pt,sha256=-tb3HkoGG8H_gBZL4eiJrPcWC6hxBEjb-KqP0co7zeY,386
140
141
  imio/smartweb/common/viewlets/skip_to_content.py,sha256=wm22NUf8Qh5uzz8p4vkLCdFNiDv9zUGAueRyXAIXQDo,496
141
142
  imio/smartweb/common/widgets/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
142
- imio/smartweb/common/widgets/select.py,sha256=vfVdbecH7qDfJvWV6TfkpqocD6AA5G4yIq7XqSOuVNw,1142
143
- imio_smartweb_common-1.2.30.dist-info/licenses/LICENSE.GPL,sha256=gXf5dRMhNSbfLPYYTY_5hsZ1r7UU1OaKQEAQUhuIBkM,18092
144
- imio_smartweb_common-1.2.30.dist-info/licenses/LICENSE.rst,sha256=5dd78Fdt0e-oM2ICBrMpjHnT8vEP-jhBDF7akXni6B4,655
145
- imio_smartweb_common-1.2.30.dist-info/METADATA,sha256=aeQDGpsPqkmkCvl9Ky7BHK-ljgHcCbgljpl0OHOJNkU,17518
146
- imio_smartweb_common-1.2.30.dist-info/WHEEL,sha256=DnLRTWE75wApRYVsjgc6wsVswC54sMSJhAEd4xhDpBk,91
147
- imio_smartweb_common-1.2.30.dist-info/namespace_packages.txt,sha256=Pg8AH8t9viMMW1hJbNZvTy_n2jXG2igIYUpon5RA4Js,19
148
- imio_smartweb_common-1.2.30.dist-info/top_level.txt,sha256=ZktC0EGzThvMTAin9_q_41rzvvfMT2FYbP8pbhSLMSA,5
149
- imio_smartweb_common-1.2.30.dist-info/RECORD,,
143
+ imio/smartweb/common/widgets/select.py,sha256=5sV0UIgwu4AvwpgVmJeSZwUWz7OPD9VxYMowfmjcfbA,1313
144
+ imio/smartweb/common/widgets/templates/ajaxselect_display.pt,sha256=v8TT2Xc19er6SUGWabgNfIdrayFYIjxyLK9H_XkIG3M,1209
145
+ imio_smartweb_common-1.2.32.dist-info/licenses/LICENSE.GPL,sha256=gXf5dRMhNSbfLPYYTY_5hsZ1r7UU1OaKQEAQUhuIBkM,18092
146
+ imio_smartweb_common-1.2.32.dist-info/licenses/LICENSE.rst,sha256=5dd78Fdt0e-oM2ICBrMpjHnT8vEP-jhBDF7akXni6B4,655
147
+ imio_smartweb_common-1.2.32.dist-info/METADATA,sha256=tBfxVibCNxxZfJR5roL6ZKoPDHTquJ9qmWkfg5CeoF8,17812
148
+ imio_smartweb_common-1.2.32.dist-info/WHEEL,sha256=Nw36Djuh_5VDukK0H78QzOX-_FQEo6V37m3nkm96gtU,91
149
+ imio_smartweb_common-1.2.32.dist-info/namespace_packages.txt,sha256=Pg8AH8t9viMMW1hJbNZvTy_n2jXG2igIYUpon5RA4Js,19
150
+ imio_smartweb_common-1.2.32.dist-info/top_level.txt,sha256=ZktC0EGzThvMTAin9_q_41rzvvfMT2FYbP8pbhSLMSA,5
151
+ imio_smartweb_common-1.2.32.dist-info/RECORD,,
@@ -1,5 +1,5 @@
1
1
  Wheel-Version: 1.0
2
- Generator: setuptools (80.4.0)
2
+ Generator: setuptools (80.7.1)
3
3
  Root-Is-Purelib: true
4
4
  Tag: py3-none-any
5
5