@zydon/common-csr 2.0.7 → 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.
Files changed (31) hide show
  1. package/dist/chunk-6KMKD42J.mjs +3 -0
  2. package/dist/chunk-75QNIQAU.mjs +3 -0
  3. package/dist/components/EditorField/index.d.ts +1 -1
  4. package/dist/components/EditorField/index.mjs +1 -0
  5. package/dist/components/SQLEditor/index.mjs +1 -0
  6. package/dist/components/SQLEditorField/index.d.ts +1 -1
  7. package/dist/components/SQLEditorField/index.mjs +1 -0
  8. package/dist/components/editor/index.mjs +1 -0
  9. package/dist/components/filters/AdvancedRule/index.d.ts +23 -0
  10. package/dist/components/filters/AdvancedRule/index.mjs +1252 -0
  11. package/dist/components/filters/FilterRule/index.d.ts +18 -0
  12. package/dist/components/filters/FilterRule/index.mjs +24 -0
  13. package/dist/components/filters/ListingRules/index.d.ts +15 -0
  14. package/dist/components/filters/ListingRules/index.mjs +14 -0
  15. package/dist/components/filters/ManualRule/index.d.ts +18 -0
  16. package/dist/components/filters/ManualRule/index.mjs +13 -0
  17. package/dist/components/image/index.mjs +1 -0
  18. package/dist/components/nav-section/index.mjs +1 -0
  19. package/dist/hooks/useActiveLink.mjs +1 -0
  20. package/dist/index.mjs +2 -0
  21. package/dist/{baseField-97c8b770.d.ts → types/baseField.d.ts} +1 -1
  22. package/dist/types/baseField.mjs +1 -0
  23. package/dist/types/filter.d.ts +13 -0
  24. package/dist/types/filter.mjs +1 -0
  25. package/dist/types/simpleMode.d.ts +8 -0
  26. package/dist/types/simpleMode.mjs +1 -0
  27. package/dist/utils/changeCase.d.ts +5 -0
  28. package/dist/utils/changeCase.mjs +5 -0
  29. package/dist/utils/rules.d.ts +5 -0
  30. package/dist/utils/rules.mjs +2 -0
  31. package/package.json +9 -2
@@ -0,0 +1,3 @@
1
+ var g=Object.create;var f=Object.defineProperty;var h=Object.getOwnPropertyDescriptor;var i=Object.getOwnPropertyNames;var j=Object.getPrototypeOf,k=Object.prototype.hasOwnProperty;var m=(b,a)=>()=>(a||b((a={exports:{}}).exports,a),a.exports);var l=(b,a,c,e)=>{if(a&&typeof a=="object"||typeof a=="function")for(let d of i(a))!k.call(b,d)&&d!==c&&f(b,d,{get:()=>a[d],enumerable:!(e=h(a,d))||e.enumerable});return b};var n=(b,a,c)=>(c=b!=null?g(j(b)):{},l(a||!b||!b.__esModule?f(c,"default",{value:b,enumerable:!0}):c,b));
2
+
3
+ export { m as a, n as b };
@@ -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,4 +1,5 @@
1
1
  import { b } from '../../chunk-KHFLUPBJ.mjs';
2
+ import '../../chunk-6KMKD42J.mjs';
2
3
  import { useFormContext, Controller } from 'react-hook-form';
3
4
  import { jsx } from 'react/jsx-runtime';
4
5
 
@@ -1 +1,2 @@
1
1
  export { a as default } from '../../chunk-N4W37KLS.mjs';
2
+ import '../../chunk-6KMKD42J.mjs';
@@ -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>;
@@ -1,4 +1,5 @@
1
1
  import { a as a$1 } from '../../chunk-N4W37KLS.mjs';
2
+ import '../../chunk-6KMKD42J.mjs';
2
3
  import { useFormContext, Controller } from 'react-hook-form';
3
4
  import { jsx } from 'react/jsx-runtime';
4
5
 
@@ -1 +1,2 @@
1
1
  export { b as Editor, a as editorClasses } from '../../chunk-KHFLUPBJ.mjs';
2
+ import '../../chunk-6KMKD42J.mjs';
@@ -0,0 +1,23 @@
1
+ import * as react_jsx_runtime from 'react/jsx-runtime';
2
+
3
+ interface AdvancedRuleProps {
4
+ fieldsSelect: Field[];
5
+ argumentsValues: string[];
6
+ onChangeArguments: (argumentsValues: string[]) => void;
7
+ defaultFilter?: string;
8
+ onChangeRule: (value: string) => void;
9
+ onChangeSqlProcessed: (value: string) => void;
10
+ defaultMode?: string;
11
+ dataPreview?: object[];
12
+ loadingPreview?: boolean;
13
+ errorPreview?: boolean;
14
+ }
15
+ interface Field {
16
+ id: string;
17
+ name: string;
18
+ description: string;
19
+ }
20
+
21
+ declare const AdvancedRule: ({ argumentsValues, onChangeArguments, fieldsSelect, onChangeRule, onChangeSqlProcessed, defaultMode, defaultFilter, dataPreview, errorPreview, loadingPreview, }: AdvancedRuleProps) => react_jsx_runtime.JSX.Element;
22
+
23
+ export { AdvancedRule as default };