@evoke-platform/ui-components 1.0.0-dev.149-test-1056 → 1.0.0-dev.150

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 (37) hide show
  1. package/dist/published/components/core/Autocomplete/Autocomplete.js +12 -4
  2. package/dist/published/components/core/Select/Select.js +7 -3
  3. package/dist/published/components/core/TextField/TextField.js +2 -1
  4. package/dist/published/components/custom/BuilderGrid/BuilderGrid.d.ts +15 -0
  5. package/dist/published/components/custom/BuilderGrid/BuilderGrid.js +88 -0
  6. package/dist/published/components/custom/BuilderGrid/BuilderGridToolbar.d.ts +8 -0
  7. package/dist/published/components/custom/BuilderGrid/BuilderGridToolbar.js +53 -0
  8. package/dist/published/components/custom/BuilderGrid/EmptyContent.d.ts +16 -0
  9. package/dist/published/components/custom/BuilderGrid/EmptyContent.js +50 -0
  10. package/dist/published/components/custom/BuilderGrid/EmptyContentIllustration.d.ts +3 -0
  11. package/dist/published/components/custom/BuilderGrid/EmptyContentIllustration.js +43 -0
  12. package/dist/published/components/custom/BuilderGrid/index.d.ts +3 -0
  13. package/dist/published/components/custom/BuilderGrid/index.js +3 -0
  14. package/dist/published/components/custom/CriteriaBuilder/CriteriaBuilder.d.ts +1 -0
  15. package/dist/published/components/custom/CriteriaBuilder/CriteriaBuilder.js +4 -4
  16. package/dist/published/components/custom/FormField/AddressFieldComponent/addressFieldComponent.js +4 -5
  17. package/dist/published/components/custom/FormField/FormField.d.ts +0 -1
  18. package/dist/published/components/custom/FormField/FormField.js +3 -3
  19. package/dist/published/components/custom/FormField/InputFieldComponent/InputFieldComponent.js +2 -4
  20. package/dist/published/components/custom/index.d.ts +1 -0
  21. package/dist/published/components/custom/index.js +1 -0
  22. package/dist/published/icons/custom/Inherited.d.ts +3 -0
  23. package/dist/published/icons/custom/Inherited.js +8 -0
  24. package/dist/published/icons/custom/Overrides.d.ts +3 -0
  25. package/dist/published/icons/custom/Overrides.js +9 -0
  26. package/dist/published/icons/custom/index.d.ts +2 -0
  27. package/dist/published/icons/custom/index.js +2 -0
  28. package/dist/published/index.d.ts +1 -1
  29. package/dist/published/index.js +1 -1
  30. package/dist/published/stories/CriteriaBuilder.stories.d.ts +3 -0
  31. package/package.json +4 -3
  32. package/dist/published/components/Test/Test.d.ts +0 -3
  33. package/dist/published/components/Test/Test.js +0 -8
  34. package/dist/published/components/Test/Test.test.d.ts +0 -1
  35. package/dist/published/components/Test/Test.test.js +0 -11
  36. package/dist/published/components/Test/index.d.ts +0 -3
  37. package/dist/published/components/Test/index.js +0 -3
@@ -1,9 +1,9 @@
1
+ import { ExpandMore } from '@mui/icons-material';
2
+ import { InputLabel, Autocomplete as MUIAutocomplete } from '@mui/material';
1
3
  import * as React from 'react';
2
- import { Autocomplete as MUIAutocomplete, InputLabel } from '@mui/material';
3
4
  import UIThemeProvider from '../../../theme';
4
5
  import FieldError from '../FieldError';
5
6
  import Typography from '../Typography';
6
- import { ExpandMore } from '@mui/icons-material';
7
7
  const Autocomplete = (props) => {
8
8
  var _a, _b, _c, _d, _e;
9
9
  const sortedOptions = props.sortBy !== 'NONE'
@@ -32,12 +32,20 @@ const Autocomplete = (props) => {
32
32
  ' ',
33
33
  props.required ? (React.createElement(Typography, { sx: { color: 'red', fontSize: '14px' }, component: 'span' }, "*")) : null),
34
34
  props.instructionText && (React.createElement(Typography, { fontSize: '10px', lineHeight: '14px' }, props.instructionText)),
35
- React.createElement(MUIAutocomplete, Object.assign({}, props, { sx: Object.assign({ '& fieldset': { borderRadius: '8px', borderColor: props.error ? 'red' : undefined } }, props.sx), options: sortedOptions, popupIcon: (_d = props.popupIcon) !== null && _d !== void 0 ? _d : React.createElement(ExpandMore, null) })),
35
+ React.createElement(MUIAutocomplete, Object.assign({}, props, { sx: Object.assign({ '& fieldset': { borderRadius: '8px', borderColor: props.error ? 'red' : undefined }, '& .MuiOutlinedInput-notchedOutline': {
36
+ border: props.readOnly ? 'none' : 'auto',
37
+ }, '& .MuiInputBase-input.Mui-disabled': {
38
+ WebkitTextFillColor: props.readOnly ? 'black' : 'auto',
39
+ }, backgroundColor: props.readOnly ? '#f4f6f8' : 'auto', marginTop: '3px', borderRadius: '8px' }, props.sx), options: sortedOptions, popupIcon: (_d = props.popupIcon) !== null && _d !== void 0 ? _d : React.createElement(ExpandMore, null) })),
36
40
  props.error && React.createElement(FieldError, { required: props.required, label: props.errorMessage })));
37
41
  }
38
42
  else {
39
43
  return (React.createElement(UIThemeProvider, null,
40
- React.createElement(MUIAutocomplete, Object.assign({}, props, { sx: Object.assign({ '& fieldset': { borderRadius: '8px', borderColor: props.error ? 'red' : undefined } }, props.sx), options: sortedOptions, popupIcon: (_e = props.popupIcon) !== null && _e !== void 0 ? _e : React.createElement(ExpandMore, null) })),
44
+ React.createElement(MUIAutocomplete, Object.assign({}, props, { sx: Object.assign({ '& fieldset': { borderRadius: '8px', borderColor: props.error ? 'red' : undefined }, '& .MuiOutlinedInput-notchedOutline': {
45
+ border: props.readOnly ? 'none' : 'auto',
46
+ }, '& .MuiInputBase-input.Mui-disabled': {
47
+ WebkitTextFillColor: props.readOnly ? 'black' : 'auto',
48
+ }, backgroundColor: props.readOnly ? '#f4f6f8' : 'auto', borderRadius: '8px' }, props.sx), options: sortedOptions, popupIcon: (_e = props.popupIcon) !== null && _e !== void 0 ? _e : React.createElement(ExpandMore, null) })),
41
49
  props.error && React.createElement(FieldError, { required: props.required, label: props.errorMessage })));
42
50
  }
43
51
  };
@@ -1,10 +1,14 @@
1
- import * as React from 'react';
1
+ import { ExpandMore } from '@mui/icons-material';
2
2
  import { Select as MUISelect } from '@mui/material';
3
+ import * as React from 'react';
3
4
  import UIThemeProvider from '../../../theme';
4
- import { ExpandMore } from '@mui/icons-material';
5
5
  const Select = (props) => {
6
6
  var _a;
7
7
  return (React.createElement(UIThemeProvider, null,
8
- React.createElement(MUISelect, Object.assign({}, props, { IconComponent: (_a = props.IconComponent) !== null && _a !== void 0 ? _a : ((iconProps) => (React.createElement(ExpandMore, Object.assign({}, iconProps)))) }))));
8
+ React.createElement(MUISelect, Object.assign({}, props, { sx: Object.assign({ '& .MuiOutlinedInput-notchedOutline': {
9
+ border: props.readOnly ? 'none' : 'auto',
10
+ }, '& .MuiInputBase-input.Mui-disabled': {
11
+ WebkitTextFillColor: props.readOnly ? 'black' : 'auto',
12
+ }, backgroundColor: props.readOnly ? '#f4f6f8' : 'auto', height: props.readOnly ? '40px' : 'auto', margin: props.readOnly ? '0px 5px' : 'auto', borderRadius: '8px' }, props.sx), IconComponent: (_a = props.IconComponent) !== null && _a !== void 0 ? _a : ((iconProps) => React.createElement(ExpandMore, Object.assign({}, iconProps))) }))));
9
13
  };
10
14
  export default Select;
@@ -1,5 +1,5 @@
1
+ import { InputLabel, TextField as MUITextField } from '@mui/material';
1
2
  import * as React from 'react';
2
- import { TextField as MUITextField, InputLabel } from '@mui/material';
3
3
  import UIThemeProvider from '../../../theme';
4
4
  import FieldError from '../FieldError';
5
5
  import Typography from '../Typography';
@@ -12,6 +12,7 @@ const TextField = (props) => {
12
12
  background: '#F4F6F8',
13
13
  border: 'none',
14
14
  borderColor: 'transparent',
15
+ borderRadius: '8px',
15
16
  },
16
17
  '&:hover .MuiOutlinedInput-notchedOutline': {
17
18
  border: 'none',
@@ -0,0 +1,15 @@
1
+ /// <reference types="react" />
2
+ import { GridValidRowModel, DataGridProps as MuiDataGridProps } from '@mui/x-data-grid';
3
+ import { EmptyContentSelectOptions } from './EmptyContent';
4
+ export declare type GridAction = {
5
+ label: string;
6
+ onClick: () => void;
7
+ };
8
+ export declare type BuilderGridProps<T extends GridValidRowModel> = MuiDataGridProps<T> & {
9
+ action?: GridAction;
10
+ item?: string;
11
+ initialSort?: string;
12
+ emptyContentSelectOptions?: EmptyContentSelectOptions;
13
+ };
14
+ declare const BuilderGrid: <T extends GridValidRowModel>(props: BuilderGridProps<T>) => JSX.Element;
15
+ export default BuilderGrid;
@@ -0,0 +1,88 @@
1
+ var __rest = (this && this.__rest) || function (s, e) {
2
+ var t = {};
3
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
4
+ t[p] = s[p];
5
+ if (s != null && typeof Object.getOwnPropertySymbols === "function")
6
+ for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
7
+ if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
8
+ t[p[i]] = s[p[i]];
9
+ }
10
+ return t;
11
+ };
12
+ import { Box } from '@mui/material';
13
+ import { DataGrid as MuiDataGrid } from '@mui/x-data-grid';
14
+ import React, { useMemo, useState } from 'react';
15
+ import UIThemeProvider from '../../../theme';
16
+ import BuilderGridToolbar from './BuilderGridToolbar';
17
+ import { EmptyContent } from './EmptyContent';
18
+ const BuilderGrid = (props) => {
19
+ var _a, _b;
20
+ const { loading, action, item, rows, initialSort, emptyContentSelectOptions } = props, rest = __rest(props, ["loading", "action", "item", "rows", "initialSort", "emptyContentSelectOptions"]);
21
+ const [anchorEl, setAnchorEl] = useState();
22
+ const toolbar = useMemo(() => () => React.createElement(BuilderGridToolbar, { loading: loading, action: action }), [loading]);
23
+ return (React.createElement(UIThemeProvider, null, loading || rows.length ? (React.createElement(Box, { sx: {
24
+ backgroundColor: '#fff',
25
+ borderRadius: '6px',
26
+ flexGrow: 1,
27
+ overflow: 'auto',
28
+ borderBottom: 'none',
29
+ boxShadow: 'rgba(145, 158, 171, 0.2) 0px 8px 16px',
30
+ } },
31
+ React.createElement(MuiDataGrid, Object.assign({ autoPageSize: true, onMenuOpen: (env) => setAnchorEl(env.target), loading: loading, rows: rows }, rest, { sx: Object.assign({ border: 'none', '& .MuiDataGrid-toolbarContainer': {
32
+ padding: '0',
33
+ fontColor: '#212B36',
34
+ margin: '16px 16px 0 16px',
35
+ }, '& .MuiDataGrid-row': {
36
+ borderBottom: '1px solid #eee',
37
+ }, '& .MuiDataGrid-cell': {
38
+ border: 'none',
39
+ padding: '0 24px',
40
+ }, '& .MuiDataGrid-footerContainer': {
41
+ borderRadius: '0 0 6px 6px',
42
+ height: '60px',
43
+ borderTop: 'none',
44
+ }, '& .MuiTablePagination-displayedRows': {
45
+ marginBottom: 0,
46
+ }, '& .MuiDataGrid-columnHeader:focus-within, & .MuiDataGrid-columnHeader:focus': {
47
+ outline: 'none',
48
+ }, '& .MuiDataGrid-iconSeparator': { visibility: 'hidden' }, '& .MuiDataGrid-cell:focus-within, & .MuiDataGrid-cell:focus': {
49
+ outline: 'none',
50
+ }, '& .MuiDataGrid-columnHeader': {
51
+ backgroundColor: '#F4F6F8',
52
+ padding: '0 24px',
53
+ }, '& .MuiDataGrid-columnHeaders': {
54
+ borderTop: '1px solid #e2e2e3',
55
+ borderRadius: 0,
56
+ }, '& .MuiDataGrid-columnHeaderTitle': {
57
+ color: '#637381',
58
+ fontWeight: 700,
59
+ }, '& .MuiDataGrid-iconButtonContainer': {
60
+ marginLeft: '4px',
61
+ }, height: 'calc(100vh - 240px)' }, rest.sx), getRowId: (row) => row.id, disableColumnMenu: true, initialState: {
62
+ sorting: { sortModel: initialSort ? [{ field: initialSort, sort: 'asc' }] : [] },
63
+ }, componentsProps: {
64
+ panel: {
65
+ anchorEl: anchorEl,
66
+ placement: 'bottom-end',
67
+ sx: {
68
+ '& .MuiPaper-root': {
69
+ borderRadius: '6px',
70
+ boxShadow: '0px 24px 48px rgba(145, 158, 171, 0.4)',
71
+ padding: '8px',
72
+ stop: -120,
73
+ },
74
+ },
75
+ },
76
+ }, components: {
77
+ Toolbar: toolbar,
78
+ }, rowHeight: 60, columnHeaderHeight: 62 })))) : (React.createElement(React.Fragment, null, rows && !rows.length && (React.createElement(Box, { sx: {
79
+ backgroundColor: '#fff',
80
+ borderRadius: '6px',
81
+ display: 'flex',
82
+ alignItems: 'center',
83
+ justifyContent: 'center',
84
+ height: (_b = (_a = rest.sx) === null || _a === void 0 ? void 0 : _a.height) !== null && _b !== void 0 ? _b : 'calc(100vh - 240px)',
85
+ } },
86
+ React.createElement(EmptyContent, { item: item, onClick: action === null || action === void 0 ? void 0 : action.onClick, selectOptions: emptyContentSelectOptions })))))));
87
+ };
88
+ export default BuilderGrid;
@@ -0,0 +1,8 @@
1
+ /// <reference types="react" />
2
+ import { GridToolbarProps as MuiGridToolbarProps } from '@mui/x-data-grid';
3
+ import { GridAction } from './BuilderGrid';
4
+ export declare type BuilderGridToolbar = MuiGridToolbarProps & {
5
+ action?: GridAction;
6
+ };
7
+ declare function BuilderGridToolbar(props: BuilderGridToolbar): JSX.Element;
8
+ export default BuilderGridToolbar;
@@ -0,0 +1,53 @@
1
+ import { GridToolbarContainer, GridToolbarQuickFilter, } from '@mui/x-data-grid';
2
+ import React from 'react';
3
+ import UIThemeProvider from '../../../theme';
4
+ import { Button } from '../../core';
5
+ import { Grid } from '../../layout';
6
+ function BuilderGridToolbar(props) {
7
+ var _a, _b, _c;
8
+ const { theme, action } = props;
9
+ const styles = {
10
+ container: { display: 'flex', justifyContent: 'space-between', margin: '0 0 15px 0' },
11
+ iconButton: {
12
+ minWidth: '36px',
13
+ height: '36px',
14
+ backgroundColor: 'rgba(145, 158, 171, 0.12)',
15
+ color: 'primary',
16
+ '&:hover': {
17
+ backgroundColor: '#99C8DC',
18
+ },
19
+ marginLeft: '3px',
20
+ marginRight: '3px',
21
+ },
22
+ icon: {
23
+ marginLeft: '8px',
24
+ },
25
+ quickFilter: {
26
+ '& .MuiOutlinedInput-root': {
27
+ '&.Mui-focused fieldset': {
28
+ borderColor: (_c = (_b = (_a = theme === null || theme === void 0 ? void 0 : theme.palette) === null || _a === void 0 ? void 0 : _a.primary) === null || _b === void 0 ? void 0 : _b.main) !== null && _c !== void 0 ? _c : 'primary',
29
+ },
30
+ },
31
+ '& fieldset': {
32
+ borderRadius: '8px',
33
+ color: '#919EAB',
34
+ borderColor: 'rgba(145, 158, 171, 0.32)',
35
+ },
36
+ },
37
+ };
38
+ return (React.createElement(UIThemeProvider, { args: { theme: theme } },
39
+ React.createElement(GridToolbarContainer, { sx: { padding: '0' } },
40
+ React.createElement(Grid, { container: true, sx: styles.container },
41
+ React.createElement(Grid, { item: true, xs: 6 },
42
+ React.createElement(GridToolbarQuickFilter, { variant: "outlined", size: "small", sx: styles.quickFilter })),
43
+ React.createElement(Grid, { item: true, xs: 6, display: 'flex', alignItems: 'center', justifyContent: 'flex-end' },
44
+ React.createElement(Button, { sx: {
45
+ fontWeight: 700,
46
+ height: '40px',
47
+ padding: '0px 14px',
48
+ '&:hover': {
49
+ boxShadow: 'none'
50
+ }
51
+ }, onClick: action === null || action === void 0 ? void 0 : action.onClick, variant: 'contained' }, action === null || action === void 0 ? void 0 : action.label))))));
52
+ }
53
+ export default BuilderGridToolbar;
@@ -0,0 +1,16 @@
1
+ /// <reference types="react" />
2
+ import { AutocompleteOption } from '../../core';
3
+ export declare type EmptyContentSelectOptions = {
4
+ instructionText: string;
5
+ options: AutocompleteOption[];
6
+ placeholder: string;
7
+ onChange: (value?: string) => void;
8
+ selectedOption?: string;
9
+ };
10
+ declare type EmptyStateComponentProps = {
11
+ item?: string;
12
+ onClick?: () => void;
13
+ selectOptions?: EmptyContentSelectOptions;
14
+ };
15
+ export declare const EmptyContent: (props: EmptyStateComponentProps) => JSX.Element;
16
+ export {};
@@ -0,0 +1,50 @@
1
+ import { startCase } from 'lodash';
2
+ import React from 'react';
3
+ import { Autocomplete, Button, TextField, Typography } from '../../core';
4
+ import { Box } from '../../layout';
5
+ import { EmptyContentIllustration } from './EmptyContentIllustration';
6
+ const plural = require('pluralize');
7
+ const styles = {
8
+ heading: {
9
+ fontSize: '24px',
10
+ fontWeight: 700,
11
+ marginTop: '15px',
12
+ },
13
+ message: {
14
+ fontSize: '14px',
15
+ marginTop: '15px',
16
+ },
17
+ button: {
18
+ marginTop: '15px',
19
+ backgroundColor: '#DFE3E8',
20
+ color: '#212B36',
21
+ fontWeight: 700,
22
+ '&:hover': {
23
+ backgroundColor: '#BCC0C5',
24
+ boxShadow: 'none',
25
+ },
26
+ textTransform: 'none',
27
+ fontSize: 14,
28
+ lineHeight: '24px',
29
+ },
30
+ };
31
+ export const EmptyContent = (props) => {
32
+ const { onClick, item, selectOptions } = props;
33
+ return (React.createElement(Box, null,
34
+ React.createElement(Box, { display: "flex", justifyContent: "center", paddingTop: "20px" },
35
+ React.createElement(EmptyContentIllustration, null)),
36
+ React.createElement(Box, { display: "flex", justifyContent: "center" },
37
+ React.createElement(Typography, { sx: styles.heading }, `No ${plural(startCase(item))}`)),
38
+ React.createElement(Box, { display: "flex", justifyContent: "center" },
39
+ React.createElement(Typography, { sx: styles.message }, !selectOptions ? `Get started by adding a new ${item}` : selectOptions.instructionText)),
40
+ selectOptions && (React.createElement(Box, { display: "flex", justifyContent: "center" },
41
+ React.createElement(Autocomplete, { id: 'option', options: selectOptions.options, sx: { width: '200px', marginTop: '15px' }, value: selectOptions.selectedOption || null, renderInput: (params) => (React.createElement(TextField, Object.assign({}, params, { placeholder: selectOptions.placeholder, size: "small" }))), isOptionEqualToValue: (option, value) => option.value === value, getOptionLabel: (option) => {
42
+ var _a, _b, _c, _d;
43
+ if (typeof option === 'string') {
44
+ return ((_b = (_a = selectOptions.options) === null || _a === void 0 ? void 0 : _a.find((o) => o.value === option)) === null || _b === void 0 ? void 0 : _b.label) || '';
45
+ }
46
+ return ((_d = (_c = selectOptions.options) === null || _c === void 0 ? void 0 : _c.find((o) => o.value === (option === null || option === void 0 ? void 0 : option.value))) === null || _d === void 0 ? void 0 : _d.label) || '';
47
+ }, sortBy: 'ASC', onChange: (e, val) => selectOptions.onChange(val === null || val === void 0 ? void 0 : val.value) }))),
48
+ React.createElement(Box, { display: "flex", justifyContent: "center" },
49
+ React.createElement(Button, { sx: styles.button, variant: "contained", size: "medium", color: "inherit", onClick: onClick }, `Create ${startCase(item)}`))));
50
+ };
@@ -0,0 +1,3 @@
1
+ /// <reference types="react" />
2
+ import { SvgIconProps } from '@mui/material';
3
+ export declare const EmptyContentIllustration: (props: SvgIconProps) => JSX.Element;
@@ -0,0 +1,43 @@
1
+ import { SvgIcon } from '@mui/material';
2
+ import React from 'react';
3
+ export const EmptyContentIllustration = (props) => (React.createElement(SvgIcon, Object.assign({}, props, { viewBox: '0 0 150 113', sx: Object.assign({ verticalAlign: 'top', height: 'auto', width: 'auto' }, props.sx) }),
4
+ React.createElement("svg", { fill: "none", xmlns: "http://www.w3.org/2000/svg", fontSize: "18rem" },
5
+ React.createElement("g", { opacity: "0.2" },
6
+ React.createElement("path", { "fill-rule": "evenodd", "clip-rule": "evenodd", d: "M0 62.119C0 75.0743 4.67043 86.8799 12.356 95.802C21.173 106.041 33.9585 112.478 48.2102 112.5C54.4388 112.509 60.3944 111.285 65.8649 109.051C68.6934 107.895 71.8593 108.028 74.5988 109.397C77.8123 111.001 81.4107 111.901 85.2104 111.901C86.78 111.901 88.3171 111.746 89.804 111.453C94.0481 110.618 97.9102 108.643 101.082 105.846C103.075 104.088 105.628 103.204 108.237 103.207H108.282C116.903 103.207 124.912 100.478 131.561 95.802C137.505 91.6269 142.359 85.8969 145.593 79.1692C148.413 73.3066 150 66.6837 150 59.6743C150 35.6335 131.321 16.1417 108.282 16.1417C105.933 16.1417 103.632 16.3487 101.387 16.7349C95.443 6.69377 84.7985 0 72.6558 0C67.5291 0 62.6688 1.19303 58.3183 3.33163C54.1809 5.35885 50.5024 8.23946 47.4932 11.75C37.2754 11.92 27.8275 15.4031 20.0947 21.2161C7.92233 30.361 0 45.2757 0 62.119Z", fill: "url(#paint0_linear_25056_169704)" })),
7
+ React.createElement("g", { "clip-path": "url(#clip0_25056_169704)" },
8
+ React.createElement("g", { opacity: "0.24" },
9
+ React.createElement("g", { opacity: "0.24" },
10
+ React.createElement("g", { opacity: "0.24" },
11
+ React.createElement("path", { opacity: "0.24", "fill-rule": "evenodd", "clip-rule": "evenodd", d: "M0 62.119C0 75.0743 4.67043 86.8799 12.356 95.802C21.173 106.041 33.9585 112.478 48.2102 112.5C54.4388 112.509 60.3944 111.285 65.8649 109.051C68.6934 107.895 71.8593 108.028 74.5988 109.397C77.8123 111.001 81.4107 111.901 85.2104 111.901C86.78 111.901 88.3171 111.746 89.804 111.453C94.0481 110.618 97.9102 108.643 101.082 105.846C103.075 104.088 105.628 103.204 108.237 103.207H108.282C116.903 103.207 124.912 100.478 131.561 95.802C137.505 91.6269 142.359 85.8969 145.593 79.1692C148.413 73.3066 150 66.6837 150 59.6743C150 35.6335 131.321 16.1417 108.282 16.1417C105.933 16.1417 103.632 16.3487 101.387 16.7349C95.443 6.69377 84.7985 0 72.6558 0C67.5291 0 62.6688 1.19303 58.3183 3.33163C54.1809 5.35885 50.5024 8.23946 47.4932 11.75C37.2754 11.92 27.8275 15.4031 20.0947 21.2161C7.92233 30.361 0 45.2757 0 62.119Z", fill: "url(#paint1_linear_25056_169704)" })))),
12
+ React.createElement("path", { opacity: "0.545118", d: "M84.9779 23.6368C84.1903 23.6368 83.4029 23.3376 82.8036 22.7391C81.6045 21.5421 81.6045 19.5945 82.8036 18.3976C84.0019 17.201 85.9532 17.2006 87.152 18.3976C88.351 19.5947 88.351 21.5423 87.152 22.7391C86.5527 23.3376 85.7653 23.6368 84.9779 23.6368ZM84.9779 19.6161C84.7336 19.6161 84.4891 19.7088 84.3029 19.8947C83.9309 20.266 83.9309 20.8705 84.3029 21.2421C84.6753 21.6134 85.2801 21.6136 85.6525 21.2421C86.0244 20.8707 86.0244 20.2662 85.6525 19.8947C85.4665 19.709 85.222 19.6161 84.9779 19.6161Z", fill: "#C4CDD5" }),
13
+ React.createElement("path", { opacity: "0.545118", d: "M60.804 95.3126C60.0166 95.3126 59.229 95.0132 58.6297 94.4149C57.4307 93.2178 57.4307 91.2703 58.6297 90.0734C59.8283 88.8766 61.7798 88.8766 62.9784 90.0734C64.1774 91.2705 64.1774 93.2181 62.9784 94.4149C62.3791 95.0134 61.5914 95.3126 60.804 95.3126ZM60.804 91.2918C60.5597 91.2918 60.3152 91.3846 60.129 91.5705C59.7571 91.9418 59.7571 92.5463 60.129 92.9178C60.5014 93.2894 61.1065 93.2894 61.4788 92.9178C61.8508 92.5465 61.8508 91.942 61.4788 91.5705C61.2929 91.3848 61.0483 91.2918 60.804 91.2918Z", fill: "#C4CDD5" }),
14
+ React.createElement("path", { d: "M114.564 80.8539C114.293 80.8539 114.021 80.7505 113.814 80.5439L112.55 79.2812L111.285 80.5439C110.871 80.9572 110.199 80.9572 109.785 80.5439C109.371 80.1304 109.371 79.4601 109.785 79.0469L111.8 77.0355C112.214 76.6223 112.885 76.6223 113.299 77.0355L115.314 79.0469C115.728 79.4603 115.728 80.1306 115.314 80.5439C115.107 80.7503 114.835 80.8539 114.564 80.8539Z", fill: "#DFE3E8" }),
15
+ React.createElement("path", { d: "M39.777 76.8207C39.5058 76.8207 39.2341 76.7173 39.0274 76.5107L37.7624 75.248L36.4974 76.5107C36.0837 76.924 35.4119 76.924 34.9981 76.5107C34.584 76.0972 34.584 75.4269 34.9981 75.0137L37.0128 73.0023C37.4265 72.5891 38.0983 72.5891 38.5121 73.0023L40.5267 75.0137C40.9409 75.4271 40.9409 76.0974 40.5267 76.5107C40.3197 76.7171 40.0483 76.8207 39.777 76.8207Z", fill: "#C4CDD5" }),
16
+ React.createElement("g", { filter: "url(#filter0_d_25056_169704)" },
17
+ React.createElement("mask", { id: "mask0_25056_169704", maskUnits: "userSpaceOnUse", x: "44", y: "31", width: "63", height: "51" },
18
+ React.createElement("path", { d: "M102.071 31.1768H48.7031C46.3171 31.1768 44.3828 33.111 44.3828 35.497V77.2453C44.3828 79.6313 46.3171 81.5655 48.7031 81.5655H102.071C104.457 81.5655 106.391 79.6313 106.391 77.2453V35.497C106.391 33.111 104.457 31.1768 102.071 31.1768Z", fill: "white" })),
19
+ React.createElement("g", { mask: "url(#mask0_25056_169704)" },
20
+ React.createElement("path", { d: "M102.071 31.1768H48.7031C46.3171 31.1768 44.3828 33.111 44.3828 35.497V77.2453C44.3828 79.6313 46.3171 81.5655 48.7031 81.5655H102.071C104.457 81.5655 106.391 79.6313 106.391 77.2453V35.497C106.391 33.111 104.457 31.1768 102.071 31.1768Z", fill: "#DFE3E8", stroke: "#919EAB", "stroke-opacity": "0.48", "stroke-width": "1.72811" }),
21
+ React.createElement("path", { opacity: "0.32", d: "M104.574 31.1768C105.592 31.1768 106.391 31.8101 106.391 32.6164V45.5736H44.3828V32.6164C44.3828 31.8101 45.182 31.1768 46.1995 31.1768H104.574ZM53.7561 36.5756C52.7466 36.5756 51.9536 37.3673 51.9536 38.3752C51.9536 39.3828 52.7466 40.1748 53.7561 40.1748C54.7657 40.1748 55.5587 39.3828 55.5587 38.3752C55.5587 37.3673 54.7657 36.5756 53.7561 36.5756ZM60.9664 36.5756C59.9568 36.5756 59.1638 37.3673 59.1638 38.3752C59.1638 39.3828 59.9568 40.1748 60.9664 40.1748C61.9759 40.1748 62.769 39.3828 62.769 38.3752C62.769 37.3673 61.9759 36.5756 60.9664 36.5756ZM68.1766 36.5756C67.1671 36.5756 66.3741 37.3673 66.3741 38.3752C66.3741 39.3828 67.1671 40.1748 68.1766 40.1748C69.1862 40.1748 69.9792 39.3828 69.9792 38.3752C69.9792 37.3673 69.1862 36.5756 68.1766 36.5756Z", fill: "#919EAB" }),
22
+ React.createElement("path", { d: "M97.0176 50.6123H78.992C77.9957 50.6123 77.1895 51.4172 77.1895 52.4119V74.0071C77.1895 75.0018 77.9957 75.8067 78.992 75.8067H97.0176C98.014 75.8067 98.8202 75.0018 98.8202 74.0071V52.4119C98.8202 51.4172 98.014 50.6123 97.0176 50.6123Z", fill: "#919EAB", "fill-opacity": "0.48", stroke: "#919EAB", "stroke-width": "1.38249", "stroke-dasharray": "2.3 2.3" }),
23
+ React.createElement("path", { opacity: "0.72", d: "M53.7557 54.2115H60.9659C61.9623 54.2115 62.7685 53.4066 62.7685 52.4119C62.7685 51.4172 61.9623 50.6123 60.9659 50.6123H53.7557C52.7594 50.6123 51.9531 51.4172 51.9531 52.4119C51.9531 53.4066 52.7594 54.2115 53.7557 54.2115Z", stroke: "#919EAB", "stroke-width": "1.38249", "stroke-dasharray": "2.3 2.3" }),
24
+ React.createElement("path", { opacity: "0.72", d: "M71.7813 57.811H53.7557C52.7594 57.811 51.9531 58.6159 51.9531 59.6106C51.9531 60.6053 52.7594 61.4102 53.7557 61.4102H71.7813C72.7777 61.4102 73.5839 60.6053 73.5839 59.6106C73.5839 58.6159 72.7777 57.811 71.7813 57.811Z", stroke: "#919EAB", "stroke-width": "1.38249", "stroke-dasharray": "2.3 2.3" }),
25
+ React.createElement("path", { opacity: "0.72", d: "M71.7813 65.0093H53.7557C52.7594 65.0093 51.9531 65.8142 51.9531 66.8089C51.9531 67.8036 52.7594 68.6085 53.7557 68.6085H71.7813C72.7777 68.6085 73.5839 67.8036 73.5839 66.8089C73.5839 65.8142 72.7777 65.0093 71.7813 65.0093Z", stroke: "#919EAB", "stroke-width": "1.38249", "stroke-dasharray": "2.3 2.3" }),
26
+ React.createElement("path", { opacity: "0.72", d: "M71.7813 72.2075H53.7557C52.7594 72.2075 51.9531 73.0124 51.9531 74.0071C51.9531 75.0018 52.7594 75.8067 53.7557 75.8067H71.7813C72.7777 75.8067 73.5839 75.0018 73.5839 74.0071C73.5839 73.0124 72.7777 72.2075 71.7813 72.2075Z", stroke: "#919EAB", "stroke-width": "1.38249", "stroke-dasharray": "2.3 2.3" })))),
27
+ React.createElement("defs", null,
28
+ React.createElement("filter", { id: "filter0_d_25056_169704", x: "30.3828", y: "17.1768", width: "118.008", height: "106.389", filterUnits: "userSpaceOnUse", "color-interpolation-filters": "sRGB" },
29
+ React.createElement("feFlood", { "flood-opacity": "0", result: "BackgroundImageFix" }),
30
+ React.createElement("feColorMatrix", { in: "SourceAlpha", type: "matrix", values: "0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0", result: "hardAlpha" }),
31
+ React.createElement("feOffset", { dx: "14", dy: "14" }),
32
+ React.createElement("feGaussianBlur", { stdDeviation: "14" }),
33
+ React.createElement("feColorMatrix", { type: "matrix", values: "0 0 0 0 0.270588 0 0 0 0 0.309804 0 0 0 0 0.356863 0 0 0 0.24 0" }),
34
+ React.createElement("feBlend", { mode: "normal", in2: "BackgroundImageFix", result: "effect1_dropShadow_25056_169704" }),
35
+ React.createElement("feBlend", { mode: "normal", in: "SourceGraphic", in2: "effect1_dropShadow_25056_169704", result: "shape" })),
36
+ React.createElement("linearGradient", { id: "paint0_linear_25056_169704", x1: "102.753", y1: "132.51", x2: "157.935", y2: "8.13997", gradientUnits: "userSpaceOnUse" },
37
+ React.createElement("stop", { "stop-color": "#919EAB" }),
38
+ React.createElement("stop", { offset: "1", "stop-color": "#919EAB", "stop-opacity": "0.01" })),
39
+ React.createElement("linearGradient", { id: "paint1_linear_25056_169704", x1: "29.2439", y1: "80.8001", x2: "92.7617", y2: "0.274128", gradientUnits: "userSpaceOnUse" },
40
+ React.createElement("stop", { "stop-color": "#00AB55" }),
41
+ React.createElement("stop", { offset: "1", "stop-color": "#00AB55", "stop-opacity": "0" })),
42
+ React.createElement("clipPath", { id: "clip0_25056_169704" },
43
+ React.createElement("rect", { width: "150", height: "112.5", fill: "white" }))))));
@@ -0,0 +1,3 @@
1
+ import BuilderGrid from './BuilderGrid';
2
+ export { BuilderGrid };
3
+ export default BuilderGrid;
@@ -0,0 +1,3 @@
1
+ import BuilderGrid from './BuilderGrid';
2
+ export { BuilderGrid };
3
+ export default BuilderGrid;
@@ -27,6 +27,7 @@ declare type CriteriaInputProps = {
27
27
  trigger?: Record<string, unknown>;
28
28
  };
29
29
  operators?: Operator[];
30
+ disabled?: boolean;
30
31
  };
31
32
  export declare const customValueEditorWithPresets: (props: CustomValueEditorProps) => JSX.Element;
32
33
  export declare const customValueEditor: (props: CustomValueEditorProps) => JSX.Element;
@@ -1,8 +1,8 @@
1
+ import { RemoveCircleOutline } from '@mui/icons-material';
1
2
  import { QueryBuilderMaterial } from '@react-querybuilder/material';
2
3
  import React, { useEffect, useMemo, useState } from 'react';
3
- import { formatQuery, parseMongoDB, QueryBuilder, } from 'react-querybuilder';
4
+ import { QueryBuilder, formatQuery, parseMongoDB, } from 'react-querybuilder';
4
5
  import 'react-querybuilder/dist/query-builder.css';
5
- import { RemoveCircleOutline } from '@mui/icons-material';
6
6
  import { Autocomplete, Button, DatePicker, IconButton, LocalizationProvider, MenuItem, TextField, Typography, } from '../../core';
7
7
  import { Box } from '../../layout';
8
8
  import { NumericFormat } from '../FormField/InputFieldComponent';
@@ -249,7 +249,7 @@ const determineValueEditor = (baseValueEditor, props) => {
249
249
  return valueEditor;
250
250
  };
251
251
  const CriteriaBuilder = (props) => {
252
- const { properties, criteria, setCriteria, enablePresetValues, operators, dynamicContentInput } = props;
252
+ const { properties, criteria, setCriteria, enablePresetValues, operators, dynamicContentInput, disabled } = props;
253
253
  const [query, setQuery] = useState(undefined);
254
254
  useEffect(() => {
255
255
  if (criteria) {
@@ -312,7 +312,7 @@ const CriteriaBuilder = (props) => {
312
312
  React.createElement(QueryBuilderMaterial, null,
313
313
  React.createElement(QueryBuilder, { query: !criteria ? { combinator: 'and', rules: [] } : query, fields: fields, onQueryChange: (q) => {
314
314
  handleQueryChange(q);
315
- }, showCombinatorsBetweenRules: true, listsAsArrays: true, addRuleToNewGroups: true, controlElements: {
315
+ }, showCombinatorsBetweenRules: true, listsAsArrays: true, disabled: disabled, addRuleToNewGroups: true, controlElements: {
316
316
  combinatorSelector: customCombinator,
317
317
  fieldSelector: customSelector,
318
318
  operatorSelector: customSelector,
@@ -1,16 +1,15 @@
1
+ import { Popover } from '@mui/material';
1
2
  import React, { useEffect, useState } from 'react';
2
- import { Button, List, ListItem, TextField, Typography } from '../../../core';
3
- import { Box } from '../../../layout';
4
3
  import InputMask from 'react-input-mask';
5
4
  import { CancelOutlined } from '../../../../icons';
6
- import { Popover } from '@mui/material';
5
+ import { Button, List, ListItem, TextField, Typography } from '../../../core';
6
+ import { Box } from '../../../layout';
7
7
  const AddressFieldComponent = (props) => {
8
8
  const { property, defaultValue, error, errorMessage, onBlur, readOnly, required, size, placeholder, mask, isMultiLineText, rows, inputMaskPlaceholderChar, queryAddresses, } = props;
9
9
  const [value, setValue] = useState(defaultValue !== null && defaultValue !== void 0 ? defaultValue : '');
10
- // const [inputValue, setInputValue] = useState<string>('');
11
10
  const [selectOptions, setSelectOptions] = useState([]);
12
- const id = property.id;
13
11
  const [anchorEl, setAnchorEl] = React.useState(null);
12
+ const id = property.id;
14
13
  const open = Boolean(anchorEl);
15
14
  const popoverId = open ? `${id}-popover` : undefined;
16
15
  useEffect(() => {
@@ -18,7 +18,6 @@ export declare type FormFieldProps = {
18
18
  rows?: number;
19
19
  inputMaskPlaceholderChar?: string;
20
20
  queryAddresses?: Function;
21
- instance?: any;
22
21
  };
23
22
  export declare type ObjectProperty = {
24
23
  id: string;
@@ -1,13 +1,13 @@
1
1
  import React from 'react';
2
+ import AddressFieldComponent from './AddressFieldComponent/addressFieldComponent';
2
3
  import BooleanSelect from './BooleanSelect/BooleanSelect';
3
4
  import DatePickerSelect from './DatePickerSelect/DatePickerSelect';
4
5
  import FileUploadControl from './FileUpload/FileUpload';
5
6
  import InputFieldComponent from './InputFieldComponent/InputFieldComponent';
6
7
  import Select from './Select/Select';
7
- import AddressFieldComponent from './AddressFieldComponent/addressFieldComponent';
8
8
  import TimePickerSelect from './TimePickerSelect/TimePickerSelect';
9
9
  const FormField = (props) => {
10
- const { defaultValue, error, onChange, property, readOnly, selectOptions, required, size, placeholder, errorMessage, onBlur, mask, max, min, isMultiLineText, rows, inputMaskPlaceholderChar, queryAddresses } = props;
10
+ const { defaultValue, error, onChange, property, readOnly, selectOptions, required, size, placeholder, errorMessage, onBlur, mask, max, min, isMultiLineText, rows, inputMaskPlaceholderChar, queryAddresses, } = props;
11
11
  const id = property.id;
12
12
  let control;
13
13
  const commonProps = {
@@ -50,7 +50,7 @@ const FormField = (props) => {
50
50
  control = React.createElement(Select, Object.assign({}, commonProps));
51
51
  break;
52
52
  default:
53
- control = (React.createElement(InputFieldComponent, Object.assign({}, commonProps, { instance: props.instance, mask: mask, inputMaskPlaceholderChar: inputMaskPlaceholderChar, isMultiLineText: isMultiLineText, rows: rows })));
53
+ control = (React.createElement(InputFieldComponent, Object.assign({}, commonProps, { mask: mask, inputMaskPlaceholderChar: inputMaskPlaceholderChar, isMultiLineText: isMultiLineText, rows: rows })));
54
54
  break;
55
55
  }
56
56
  return control;
@@ -27,15 +27,13 @@ export const NumericFormat = (props) => {
27
27
  };
28
28
  const InputFieldComponent = (props) => {
29
29
  var _a;
30
- const { property, defaultValue, error, errorMessage, onBlur, readOnly, required, size, placeholder, mask, min, max, isMultiLineText, rows, inputMaskPlaceholderChar, instance } = props;
30
+ const { property, defaultValue, error, errorMessage, onBlur, readOnly, required, size, placeholder, mask, min, max, isMultiLineText, rows, inputMaskPlaceholderChar, } = props;
31
31
  const [value, setValue] = useState(defaultValue !== null && defaultValue !== void 0 ? defaultValue : '');
32
32
  const [inputValue, setInputValue] = useState('');
33
33
  const id = property.id;
34
34
  useEffect(() => {
35
- console.log("DefaultValue (ui-lib)", defaultValue);
36
- console.log("instance (ui-lib)", instance);
37
35
  setValue(defaultValue !== null && defaultValue !== void 0 ? defaultValue : '');
38
- }, [defaultValue, instance]);
36
+ }, [defaultValue]);
39
37
  const handleChange = (e) => {
40
38
  const inputValue = property.type === 'integer' && /^-?\d+$/.test(e.target.value)
41
39
  ? parseInt(e.target.value, 10)
@@ -1,3 +1,4 @@
1
+ export { BuilderGrid } from './BuilderGrid';
1
2
  export { CriteriaBuilder } from './CriteriaBuilder';
2
3
  export { DataGrid } from './DataGrid';
3
4
  export { FormField } from './FormField';
@@ -1,3 +1,4 @@
1
+ export { BuilderGrid } from './BuilderGrid';
1
2
  export { CriteriaBuilder } from './CriteriaBuilder';
2
3
  export { DataGrid } from './DataGrid';
3
4
  export { FormField } from './FormField';
@@ -0,0 +1,3 @@
1
+ /// <reference types="react" />
2
+ import { SvgIconProps } from '@mui/material';
3
+ export declare const Inherited: (props: SvgIconProps) => JSX.Element;
@@ -0,0 +1,8 @@
1
+ import { SvgIcon } from '@mui/material';
2
+ import React from 'react';
3
+ export const Inherited = (props) => {
4
+ var _a, _b, _c, _d;
5
+ return (React.createElement(SvgIcon, Object.assign({}, props, { viewBox: '0 0 16 16', sx: Object.assign({ verticalAlign: 'top', maxWidth: (_b = (_a = props.sx) === null || _a === void 0 ? void 0 : _a['width']) !== null && _b !== void 0 ? _b : '16', maxHeight: (_d = (_c = props.sx) === null || _c === void 0 ? void 0 : _c['height']) !== null && _d !== void 0 ? _d : '16' }, props.sx) }),
6
+ React.createElement("g", { id: "icon/ic_inherited" },
7
+ React.createElement("path", { id: "Union", "fill-rule": "evenodd", "clip-rule": "evenodd", d: "M8.4854 7.89997C9.89477 7.6684 10.97 6.44461 10.97 4.9697C10.97 3.32958 9.64041 2 8.0003 2C6.36018 2 5.0306 3.32958 5.0306 4.9697C5.0306 6.4448 6.10609 7.6687 7.51571 7.90005V9.24446L5.38405 10.5562C5.02475 10.2117 4.5371 10 4 10C2.89543 10 2 10.8954 2 12C2 13.1046 2.89543 14 4 14C5.10457 14 6 13.1046 6 12C6 11.7824 5.96524 11.5729 5.90098 11.3767L8.00056 10.0847L10.0992 11.3762C10.0348 11.5725 10 11.7822 10 12C10 13.1046 10.8954 14 12 14C13.1046 14 14 13.1046 14 12C14 10.8954 13.1046 10 12 10C11.4631 10 10.9756 10.2115 10.6164 10.5558L8.4854 9.24446V7.89997ZM6.21848 4.9697C6.21848 5.95377 7.01622 6.75152 8.0003 6.75152C8.98437 6.75152 9.78211 5.95377 9.78211 4.9697C9.78211 3.98563 8.98437 3.18788 8.0003 3.18788C7.01622 3.18788 6.21848 3.98563 6.21848 4.9697ZM3 12C3 12.5523 3.44772 13 4 13C4.55228 13 5 12.5523 5 12C5 11.4477 4.55228 11 4 11C3.44772 11 3 11.4477 3 12ZM12 13C11.4477 13 11 12.5523 11 12C11 11.4477 11.4477 11 12 11C12.5523 11 13 11.4477 13 12C13 12.5523 12.5523 13 12 13Z", fill: "#637381" }))));
8
+ };
@@ -0,0 +1,3 @@
1
+ /// <reference types="react" />
2
+ import { SvgIconProps } from '@mui/material';
3
+ export declare const Overrides: (props: SvgIconProps) => JSX.Element;
@@ -0,0 +1,9 @@
1
+ import { SvgIcon } from '@mui/material';
2
+ import React from 'react';
3
+ export const Overrides = (props) => {
4
+ var _a, _b, _c, _d;
5
+ return (React.createElement(SvgIcon, Object.assign({}, props, { viewBox: '0 0 16 16', sx: Object.assign({ verticalAlign: 'top', maxWidth: (_b = (_a = props.sx) === null || _a === void 0 ? void 0 : _a['width']) !== null && _b !== void 0 ? _b : '16', maxHeight: (_d = (_c = props.sx) === null || _c === void 0 ? void 0 : _c['height']) !== null && _d !== void 0 ? _d : '16' }, props.sx) }),
6
+ React.createElement("g", { id: "icon/ic_overrides" },
7
+ React.createElement("rect", { width: "16", height: "16", rx: "2", fill: "#0075A7" }),
8
+ React.createElement("path", { id: "Union", "fill-rule": "evenodd", "clip-rule": "evenodd", d: "M8.4854 7.89997C9.89477 7.6684 10.97 6.44461 10.97 4.9697C10.97 3.32958 9.64041 2 8.0003 2C6.36018 2 5.0306 3.32958 5.0306 4.9697C5.0306 6.4448 6.10609 7.6687 7.51571 7.90005V9.24446L5.38405 10.5562C5.02475 10.2117 4.5371 10 4 10C2.89543 10 2 10.8954 2 12C2 13.1046 2.89543 14 4 14C5.10457 14 6 13.1046 6 12C6 11.7824 5.96524 11.5729 5.90098 11.3767L8.00056 10.0847L10.0992 11.3762C10.0348 11.5725 10 11.7822 10 12C10 13.1046 10.8954 14 12 14C13.1046 14 14 13.1046 14 12C14 10.8954 13.1046 10 12 10C11.4631 10 10.9756 10.2115 10.6164 10.5558L8.4854 9.24446V7.89997ZM6.21848 4.9697C6.21848 5.95377 7.01622 6.75152 8.0003 6.75152C8.98437 6.75152 9.78211 5.95377 9.78211 4.9697C9.78211 3.98563 8.98437 3.18788 8.0003 3.18788C7.01622 3.18788 6.21848 3.98563 6.21848 4.9697ZM3 12C3 12.5523 3.44772 13 4 13C4.55228 13 5 12.5523 5 12C5 11.4477 4.55228 11 4 11C3.44772 11 3 11.4477 3 12ZM12 13C11.4477 13 11 12.5523 11 12C11 11.4477 11.4477 11 12 11C12.5523 11 13 11.4477 13 12C13 12.5523 12.5523 13 12 13Z", fill: "white" }))));
9
+ };
@@ -1 +1,3 @@
1
+ export * from './Inherited';
2
+ export * from './Overrides';
1
3
  export * from './TrashCan';
@@ -1 +1,3 @@
1
+ export * from './Inherited';
2
+ export * from './Overrides';
1
3
  export * from './TrashCan';
@@ -1,6 +1,6 @@
1
1
  export { ClickAwayListener, FormControlProps, FormHelperTextProps, GridSize, Toolbar, createTheme, styled, } from '@mui/material';
2
2
  export { CalendarPicker, DateTimePicker, MonthPicker, PickersDay, StaticDateTimePicker, StaticTimePicker, TimePicker, YearPicker, } from '@mui/x-date-pickers';
3
3
  export * from './components/core';
4
- export { CriteriaBuilder, DataGrid, FormField, MenuBar, MultiSelect, RepeatableField, UserAvatar, } from './components/custom';
4
+ export { BuilderGrid, CriteriaBuilder, DataGrid, FormField, MenuBar, MultiSelect, RepeatableField, UserAvatar, } from './components/custom';
5
5
  export { Box, Container, Grid, Stack } from './components/layout';
6
6
  export * from './util';
@@ -1,6 +1,6 @@
1
1
  export { ClickAwayListener, Toolbar, createTheme, styled, } from '@mui/material';
2
2
  export { CalendarPicker, DateTimePicker, MonthPicker, PickersDay, StaticDateTimePicker, StaticTimePicker, TimePicker, YearPicker, } from '@mui/x-date-pickers';
3
3
  export * from './components/core';
4
- export { CriteriaBuilder, DataGrid, FormField, MenuBar, MultiSelect, RepeatableField, UserAvatar, } from './components/custom';
4
+ export { BuilderGrid, CriteriaBuilder, DataGrid, FormField, MenuBar, MultiSelect, RepeatableField, UserAvatar, } from './components/custom';
5
5
  export { Box, Container, Grid, Stack } from './components/layout';
6
6
  export * from './util';
@@ -11,6 +11,7 @@ declare const _default: ComponentMeta<(props: {
11
11
  trigger?: Record<string, unknown> | undefined;
12
12
  } | undefined;
13
13
  operators?: ("endsWith" | "in" | "=" | "!=" | "<" | ">" | "<=" | ">=" | "contains" | "beginsWith" | "doesNotContain" | "doesNotBeginWith" | "doesNotEndWith" | "null" | "notNull" | "notIn" | "between" | "notBetween")[] | undefined;
14
+ disabled?: boolean | undefined;
14
15
  }) => JSX.Element>;
15
16
  export default _default;
16
17
  export declare const CriteriaBuilder: ComponentStory<(props: {
@@ -24,6 +25,7 @@ export declare const CriteriaBuilder: ComponentStory<(props: {
24
25
  trigger?: Record<string, unknown> | undefined;
25
26
  } | undefined;
26
27
  operators?: ("endsWith" | "in" | "=" | "!=" | "<" | ">" | "<=" | ">=" | "contains" | "beginsWith" | "doesNotContain" | "doesNotBeginWith" | "doesNotEndWith" | "null" | "notNull" | "notIn" | "between" | "notBetween")[] | undefined;
28
+ disabled?: boolean | undefined;
27
29
  }) => JSX.Element>;
28
30
  export declare const CriteriaBuilderPresetValues: ComponentStory<(props: {
29
31
  properties: import("../components/custom/CriteriaBuilder/CriteriaBuilder").ObjectProperty[];
@@ -36,4 +38,5 @@ export declare const CriteriaBuilderPresetValues: ComponentStory<(props: {
36
38
  trigger?: Record<string, unknown> | undefined;
37
39
  } | undefined;
38
40
  operators?: ("endsWith" | "in" | "=" | "!=" | "<" | ">" | "<=" | ">=" | "contains" | "beginsWith" | "doesNotContain" | "doesNotBeginWith" | "doesNotEndWith" | "null" | "notNull" | "notIn" | "between" | "notBetween")[] | undefined;
41
+ disabled?: boolean | undefined;
39
42
  }) => JSX.Element>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@evoke-platform/ui-components",
3
- "version": "1.0.0-dev.149-test-1056",
3
+ "version": "1.0.0-dev.150",
4
4
  "description": "",
5
5
  "main": "dist/published/index.js",
6
6
  "module": "dist/published/index.js",
@@ -69,7 +69,6 @@
69
69
  "@dnd-kit/sortable": "^7.0.1",
70
70
  "@emotion/react": "^11.9.0",
71
71
  "@emotion/styled": "^11.8.1",
72
- "eslint-plugin-no-inline-styles": "^1.0.5",
73
72
  "@formio/react": "^5.2.4-rc.1",
74
73
  "@js-joda/core": "^3.2.0",
75
74
  "@js-joda/locale_en-us": "^3.2.2",
@@ -80,11 +79,13 @@
80
79
  "@mui/x-date-pickers": "^5.0.13",
81
80
  "@react-querybuilder/dnd": "^5.4.1",
82
81
  "@react-querybuilder/material": "^5.4.1",
82
+ "@types/react-input-mask": "^3.0.2",
83
83
  "@typescript-eslint/parser": "^5.35.1",
84
84
  "@typescript-eslint/typescript-estree": "^5.35.1",
85
- "@types/react-input-mask": "^3.0.2",
85
+ "eslint-plugin-no-inline-styles": "^1.0.5",
86
86
  "formiojs": "^4.15.0-rc.23",
87
87
  "lodash-es": "^4.17.21",
88
+ "pluralize": "^8.0.0",
88
89
  "react-dropzone": "^14.2.2",
89
90
  "react-input-mask": "^2.0.4",
90
91
  "react-number-format": "^4.9.3",
@@ -1,3 +0,0 @@
1
- /// <reference types="react" />
2
- declare const Test: (props: any) => JSX.Element;
3
- export default Test;
@@ -1,8 +0,0 @@
1
- import * as React from 'react';
2
- import { Typography } from '@mui/material';
3
- import UIThemeProvider from '../../theme';
4
- const Test = (props) => {
5
- return (React.createElement(UIThemeProvider, null,
6
- React.createElement(Typography, { variant: props.variant || 'body1' }, props.children)));
7
- };
8
- export default Test;
@@ -1 +0,0 @@
1
- export {};
@@ -1,11 +0,0 @@
1
- import React from 'react';
2
- import { render, screen } from '@testing-library/react';
3
- import Test from './index';
4
- test('render Test component without crashing', () => {
5
- render(React.createElement(Test, { variant: "h1" }, "Title"));
6
- screen.getByText('Title');
7
- });
8
- test('render Test component & get element by role', () => {
9
- render(React.createElement(Test, { variant: "h1" }));
10
- screen.getByRole('heading');
11
- });
@@ -1,3 +0,0 @@
1
- import Test from './Test';
2
- export default Test;
3
- export { Test };
@@ -1,3 +0,0 @@
1
- import Test from './Test';
2
- export default Test;
3
- export { Test };