@zydon/common-csr 2.0.8 → 2.0.9

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.
@@ -0,0 +1,3 @@
1
+ function i(s,r){if(!r||!s)return "";let t=s.map(a=>{if(!a.operator||!a.conditionals)return "";let u=a.conditionals.map(e=>{if(!e.field||!e.conditional)return "";let l="";if(e.type==="value")if(e.conditional==="IS NOT NULL"||e.conditional==="IS NULL")l=`this.${e.field} ${e.conditional}`;else if(e.conditional==="LIKE"||e.conditional==="NOT LIKE")l=`this.${e.field} ${e.conditional} '%${e.value}%'`;else if(e.conditional==="IN"||e.conditional==="NOT IN"){let f=e.value.split(",").map($=>`'${$.trim()}'`).join(", ");l=`this.${e.field} ${e.conditional} (${f})`;}else l=`this.${e.field} ${e.conditional} '${e.value}'`;else e.type==="field"&&(l=`this.${e.field} ${e.conditional} this.${e.value}`);return l}).join(` ${a.operator.toUpperCase()} `);return s.length>1?`(${u})`:u}).join(` ${r.toUpperCase()} `);return t||""}
2
+
3
+ export { i as a };
@@ -1,6 +1,6 @@
1
1
  import * as react_jsx_runtime from 'react/jsx-runtime';
2
2
  import { E as EditorProps } from '../../types-59de9124.js';
3
- import { B as BaseField } from '../../baseField-97c8b770.js';
3
+ import { BaseField } from '../../types/baseField.js';
4
4
  import '@mui/material/styles';
5
5
  import '@tiptap/react';
6
6
  import 'react-hook-form';
@@ -1,6 +1,6 @@
1
1
  import * as react_jsx_runtime from 'react/jsx-runtime';
2
2
  import { ReactCodeMirrorProps } from '@uiw/react-codemirror';
3
- import { B as BaseField } from '../../baseField-97c8b770.js';
3
+ import { BaseField } from '../../types/baseField.js';
4
4
  import 'react-hook-form';
5
5
 
6
6
  type SQLEditorFieldProps = BaseField<ReactCodeMirrorProps>;