jamespot-react-components 1.3.110 → 1.3.111

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.
@@ -110,6 +110,7 @@ Avoid returning a new reference inside your input selector, e.g.
110
110
  <param key="namespace" value="jamespot"></param>
111
111
  <param key="types" value="user"></param>
112
112
  <param key="views" value="user"></param>
113
+ <param key="operator" value="findInSet"></param>
113
114
  <param key="jcomplete-url" value="/?action=ajax&amp;group=autocomplete&amp;function=user"></param>
114
115
  </params>
115
116
  </widget>`;case X.CONTENTLINK:{const n=t?.find(A=>A.propertyType===Je.CONTENTTYPE);if(!n)return"";const r=n.value.type;return`<widget form="uri">
@@ -118,6 +119,7 @@ Avoid returning a new reference inside your input selector, e.g.
118
119
  <param key="namespace" value="jamespot"></param>
119
120
  <param key="types" value="${r}"></param>
120
121
  <param key="views" value="article"></param>
122
+ <param key="operator" value="findInSet"></param>
121
123
  <param key="jcomplete-url" value="/?action=ajax&amp;group=autocomplete&amp;function=article&amp;types=[]=${r}"></param>
122
124
  </params>
123
125
  </widget>`}default:return""}}function ly(e,t){const n=e?.find(r=>r.propertyType===t);if(n){const r=n.value.replaceAll('"',"&quot;");return`${t.toLowerCase()}="${r}"`}return""}function wP(e,t){switch(e){case X.DESCRIPTION:return"Description";case ye.USER:return"IdUser";default:return qv(t)}}function bP(e){switch(e){case X.DESCRIPTION:case X.TEXT:case X.TEXTAREA:case X.TEXTAREAHTML:case X.URL:case X.IFRAMEVIDEO:case X.EMAIL:case X.USERLINK:case X.CONTENTLINK:case X.NUMBER:case X.ADDFILEATTACHMENT:return"text";case X.DATE:case X.DATETIME:return"date";case ye.USER:return"integer";case X.SELECT:case X.RADIO:case X.TOGGLE:case X.CHECKBOX:case X.TAGS:return"string";default:return""}}function yP(e){switch(e){default:case X.DESCRIPTION:case X.TEXTAREAHTML:return"html";case X.TAGS:return"taxonomy";case X.TEXT:case X.RADIO:case X.URL:case X.EMAIL:case X.ADDFILEATTACHMENT:case ye.USER:case X.USERLINK:case X.CONTENTLINK:case X.IFRAMEVIDEO:return"text";case X.TEXTAREA:case X.CHECKBOX:case X.SELECT:return"longtext";case X.DATE:return"date";case X.DATETIME:return"date";case X.NUMBER:return"float"}}const qv=e=>{let t="";for(let n=0;n<e.length;n++){const r=e.charAt(n);r>="0"&&r<="9"?t+=CP(Number(r)):r>="a"&&r<="z"&&(t+=r)}return t},CP=e=>{let t="",n;for(;e>0;)n=(e-1)%26,t=String.fromCharCode(97+n)+t,e=(e-n)/26|0;return t},cy={create:"create",popup:"create-popup",edit:"edit",view:"display"};function BP(e){let t="";return Object.entries(e.views).forEach(([n,r])=>{if(Object.prototype.hasOwnProperty.call(cy,n)){const A=Object.entries(r).filter(i=>i[1].isUsed&&(n!=="view"||i[0]!=="title")).sort((i,o)=>i[1].pos-o[1].pos);t+=`<display view="${cy[n]}${n==="view"&&e.manifest.displayContentLegacyTable?"Disabled":""}" mode="${n==="view"?"view":"form"}">
@@ -3854,6 +3854,8 @@ function LP(e, t) {
3854
3854
  return '<widget form="iframeVideo"></widget>';
3855
3855
  case Se.USER:
3856
3856
  return '<widget form="idUser"></widget>';
3857
+ // Link fields have no `limit`, so they hold an unbounded comma-joined list of uris:
3858
+ // `operator=findInSet` tells the backend to match per element when filtering on them.
3857
3859
  case K.USERLINK:
3858
3860
  return `<widget form="uri">
3859
3861
  <params>
@@ -3862,6 +3864,7 @@ function LP(e, t) {
3862
3864
  <param key="namespace" value="jamespot"></param>
3863
3865
  <param key="types" value="user"></param>
3864
3866
  <param key="views" value="user"></param>
3867
+ <param key="operator" value="findInSet"></param>
3865
3868
  <param key="jcomplete-url" value="/?action=ajax&amp;group=autocomplete&amp;function=user"></param>
3866
3869
  </params>
3867
3870
  </widget>`;
@@ -3877,6 +3880,7 @@ function LP(e, t) {
3877
3880
  <param key="namespace" value="jamespot"></param>
3878
3881
  <param key="types" value="${r}"></param>
3879
3882
  <param key="views" value="article"></param>
3883
+ <param key="operator" value="findInSet"></param>
3880
3884
  <param key="jcomplete-url" value="/?action=ajax&amp;group=autocomplete&amp;function=article&amp;types=[]=${r}"></param>
3881
3885
  </params>
3882
3886
  </widget>`;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "jamespot-react-components",
3
- "version": "1.3.110",
3
+ "version": "1.3.111",
4
4
  "description": "",
5
5
  "main": "dist/jamespot-react-components.cjs",
6
6
  "module": "dist/jamespot-react-components.js",
@@ -59,8 +59,8 @@
59
59
  "eslint-plugin-storybook": "10.3.6",
60
60
  "globals": "^16.5.0",
61
61
  "html2canvas": "^1.4.1",
62
- "jamespot-front-business": "^1.3.109",
63
- "jamespot-user-api": "^1.3.110",
62
+ "jamespot-front-business": "^1.3.111",
63
+ "jamespot-user-api": "^1.3.111",
64
64
  "jsdom": "^26.1.0",
65
65
  "knip": "^5.88.1",
66
66
  "lint-staged": "^16.4.0",