@evoke-platform/ui-components 1.13.0-dev.5 → 1.13.0
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.
- package/dist/published/components/custom/CriteriaBuilder/CriteriaBuilder.d.ts +4 -4
- package/dist/published/components/custom/CriteriaBuilder/CriteriaBuilder.js +72 -145
- package/dist/published/components/custom/CriteriaBuilder/CriteriaBuilder.test.js +67 -189
- package/dist/published/components/custom/CriteriaBuilder/PropertyTree.d.ts +6 -6
- package/dist/published/components/custom/CriteriaBuilder/PropertyTree.js +25 -12
- package/dist/published/components/custom/CriteriaBuilder/PropertyTreeItem.d.ts +5 -4
- package/dist/published/components/custom/CriteriaBuilder/PropertyTreeItem.js +22 -34
- package/dist/published/components/custom/CriteriaBuilder/types.d.ts +11 -2
- package/dist/published/components/custom/CriteriaBuilder/utils.d.ts +34 -6
- package/dist/published/components/custom/CriteriaBuilder/utils.js +89 -18
- package/dist/published/components/custom/Form/FormComponents/RepeatableFieldComponent/RepeatableField.js +1 -1
- package/dist/published/components/custom/Form/utils.d.ts +0 -1
- package/dist/published/components/custom/FormField/DateTimePickerSelect/DateTimePickerSelect.js +1 -2
- package/dist/published/components/custom/FormV2/FormRenderer.d.ts +1 -1
- package/dist/published/components/custom/FormV2/FormRenderer.js +2 -1
- package/dist/published/components/custom/FormV2/FormRendererContainer.d.ts +3 -1
- package/dist/published/components/custom/FormV2/FormRendererContainer.js +5 -5
- package/dist/published/components/custom/FormV2/components/Body.js +1 -1
- package/dist/published/components/custom/FormV2/components/Footer.js +1 -1
- package/dist/published/components/custom/FormV2/components/FormContext.d.ts +0 -1
- package/dist/published/components/custom/FormV2/components/FormFieldTypes/CollectionFiles/ActionDialog.d.ts +0 -1
- package/dist/published/components/custom/FormV2/components/FormFieldTypes/CollectionFiles/RepeatableField.js +3 -3
- package/dist/published/components/custom/FormV2/components/FormFieldTypes/relatedObjectFiles/InstanceLookup.js +1 -1
- package/dist/published/components/custom/FormV2/components/FormSections.js +0 -1
- package/dist/published/components/custom/FormV2/components/Header.d.ts +1 -0
- package/dist/published/components/custom/FormV2/components/Header.js +19 -8
- package/dist/published/components/custom/FormV2/components/HtmlView.d.ts +9 -0
- package/dist/published/components/custom/FormV2/components/HtmlView.js +42 -0
- package/dist/published/components/custom/FormV2/components/RecursiveEntryRenderer.js +3 -7
- package/dist/published/components/custom/FormV2/components/utils.d.ts +0 -1
- package/dist/published/components/custom/FormV2/components/utils.js +15 -16
- package/dist/published/components/custom/FormV2/tests/FormRenderer.test.js +2 -2
- package/dist/published/components/custom/FormV2/tests/FormRendererContainer.test.js +84 -0
- package/dist/published/components/custom/HistoryLog/HistoryData.js +1 -2
- package/dist/published/components/custom/HistoryLog/index.js +1 -2
- package/dist/published/components/custom/ViewDetailsV2/InstanceEntryRenderer.js +9 -23
- package/dist/published/components/custom/ViewDetailsV2/ViewDetailsV2Container.d.ts +3 -0
- package/dist/published/components/custom/ViewDetailsV2/ViewDetailsV2Container.js +3 -1
- package/dist/published/stories/Backdrop.stories.d.ts +2 -2
- package/dist/published/stories/CriteriaBuilder.stories.js +22 -70
- package/dist/published/stories/FormLabel.stories.d.ts +2 -2
- package/dist/published/stories/FormRenderer.stories.d.ts +3 -3
- package/dist/published/stories/FormRendererContainer.stories.d.ts +15 -5
- package/dist/published/stories/ViewDetailsV2Container.stories.d.ts +9 -0
- package/dist/published/theme/hooks.d.ts +1 -2
- package/package.json +10 -15
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
import Quill from 'quill';
|
|
2
|
+
import React, { useEffect, useRef } from 'react';
|
|
3
|
+
import 'quill/dist/quill.snow.css';
|
|
4
|
+
import TableUp from 'quill-table-up';
|
|
5
|
+
import 'quill-table-up/index.css';
|
|
6
|
+
import { Box } from '@mui/material';
|
|
7
|
+
import DOMPurify from 'dompurify';
|
|
8
|
+
Quill.register({ [`modules/${TableUp.moduleName}`]: TableUp }, true);
|
|
9
|
+
const HtmlView = ({ value }) => {
|
|
10
|
+
const containerRef = useRef(null);
|
|
11
|
+
const quillRef = useRef(null);
|
|
12
|
+
// Initialize ONCE
|
|
13
|
+
useEffect(() => {
|
|
14
|
+
if (!containerRef.current || quillRef.current)
|
|
15
|
+
return;
|
|
16
|
+
const quill = new Quill(containerRef.current, {
|
|
17
|
+
theme: 'snow',
|
|
18
|
+
readOnly: true,
|
|
19
|
+
modules: {
|
|
20
|
+
toolbar: false,
|
|
21
|
+
},
|
|
22
|
+
});
|
|
23
|
+
quillRef.current = quill;
|
|
24
|
+
}, []);
|
|
25
|
+
// Update content only
|
|
26
|
+
useEffect(() => {
|
|
27
|
+
if (!quillRef.current)
|
|
28
|
+
return;
|
|
29
|
+
quillRef.current.setContents([]);
|
|
30
|
+
quillRef.current.clipboard.dangerouslyPasteHTML(DOMPurify.sanitize(value));
|
|
31
|
+
}, [value]);
|
|
32
|
+
return (React.createElement(Box, { sx: {
|
|
33
|
+
width: '100%',
|
|
34
|
+
height: '100%',
|
|
35
|
+
'.ql-container': {
|
|
36
|
+
border: 'none',
|
|
37
|
+
minHeight: 20,
|
|
38
|
+
},
|
|
39
|
+
} },
|
|
40
|
+
React.createElement("div", { ref: containerRef })));
|
|
41
|
+
};
|
|
42
|
+
export default HtmlView;
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { useApiServices, useAuthenticationContext, } from '@evoke-platform/context';
|
|
2
2
|
import { WarningRounded } from '@mui/icons-material';
|
|
3
|
-
import DOMPurify from 'dompurify';
|
|
4
3
|
import { isEmpty } from 'lodash';
|
|
5
4
|
import React, { useEffect, useMemo } from 'react';
|
|
6
5
|
import useWidgetSize, { useFormContext } from '../../../../theme/hooks';
|
|
@@ -19,6 +18,7 @@ import ObjectPropertyInput from './FormFieldTypes/relatedObjectFiles/ObjectPrope
|
|
|
19
18
|
import UserProperty from './FormFieldTypes/UserProperty';
|
|
20
19
|
import FormSections from './FormSections';
|
|
21
20
|
import { entryIsVisible, fetchCollectionData, filterEmptySections, getEntryId, getFieldDefinition, isAddressProperty, isOptionEqualToValue, updateCriteriaInputs, } from './utils';
|
|
21
|
+
import HtmlView from './HtmlView';
|
|
22
22
|
function getFieldWrapperProps(fieldDefinition, entry, entryId, fieldValue, display, errors, validation) {
|
|
23
23
|
return {
|
|
24
24
|
inputId: entryId,
|
|
@@ -70,9 +70,7 @@ export function RecursiveEntryRenderer(props) {
|
|
|
70
70
|
return null;
|
|
71
71
|
}
|
|
72
72
|
if (entry.type === 'content') {
|
|
73
|
-
return
|
|
74
|
-
fontFamily: 'Roboto, Helvetica, Arial, sans-serif',
|
|
75
|
-
} }));
|
|
73
|
+
return React.createElement(HtmlView, { value: entry.html });
|
|
76
74
|
}
|
|
77
75
|
else if ((entry.type === 'input' || entry.type === 'readonlyField' || entry.type === 'inputField') &&
|
|
78
76
|
fieldDefinition) {
|
|
@@ -87,9 +85,7 @@ export function RecursiveEntryRenderer(props) {
|
|
|
87
85
|
return (React.createElement(FieldWrapper, { ...getFieldWrapperProps(fieldDefinition, entry, entryId, fieldValue, display, errors) },
|
|
88
86
|
React.createElement(ObjectPropertyInput, { relatedObjectId: !fieldDefinition.objectId ? display?.relatedObjectId : fieldDefinition.objectId, fieldDefinition: fieldDefinition, id: entryId, mode: display?.mode || 'default', error: !!errors?.[entryId], displayOption: display?.relatedObjectDisplay || 'dialogBox', initialValue: fieldValue, readOnly: entry.type === 'readonlyField', filter: 'criteria' in validation && validation.criteria
|
|
89
87
|
? updateCriteriaInputs(validation.criteria, getValues(), userAccount, instance)
|
|
90
|
-
:
|
|
91
|
-
? updateCriteriaInputs(entry.display?.criteria, getValues(), userAccount, instance)
|
|
92
|
-
: undefined, sortBy: typeof display?.defaultValue === 'object' && 'sortBy' in display.defaultValue
|
|
88
|
+
: undefined, sortBy: typeof display?.defaultValue === 'object' && 'sortBy' in display.defaultValue
|
|
93
89
|
? display?.defaultValue.sortBy
|
|
94
90
|
: undefined, orderBy: typeof display?.defaultValue === 'object' && 'orderBy' in display.defaultValue
|
|
95
91
|
? display?.defaultValue.orderBy
|
|
@@ -84,7 +84,6 @@ export declare function formatSubmission(submission: FieldValues, apiServices?:
|
|
|
84
84
|
}>>, associatedObject?: {
|
|
85
85
|
instanceId: string;
|
|
86
86
|
propertyId: string;
|
|
87
|
-
objectId?: string;
|
|
88
87
|
}, parameters?: InputParameter[]): Promise<FieldValues>;
|
|
89
88
|
export declare function filterEmptySections(entry: Sections | Columns, instance?: FieldValues, formData?: FieldValues): Sections | Columns | null;
|
|
90
89
|
export declare function assignIdsToSectionsAndRichText(entries: FormEntry[], object: Obj, parameters?: InputParameter[]): FormEntry[];
|
|
@@ -115,16 +115,6 @@ export const getEntryId = (entry) => {
|
|
|
115
115
|
? entry.input.id
|
|
116
116
|
: undefined;
|
|
117
117
|
};
|
|
118
|
-
const getEntryType = (entry, parameters) => {
|
|
119
|
-
if (entry?.type === 'inputField') {
|
|
120
|
-
return entry?.input?.type;
|
|
121
|
-
}
|
|
122
|
-
else if (entry?.type === 'input') {
|
|
123
|
-
// For 'input' type entries, look up the parameter by parameterId
|
|
124
|
-
const parameter = parameters?.find((param) => param.id === entry.parameterId);
|
|
125
|
-
return parameter?.type;
|
|
126
|
-
}
|
|
127
|
-
};
|
|
128
118
|
export function getPrefixedUrl(url) {
|
|
129
119
|
const wcsMatchers = ['/apps', '/pages', '/widgets'];
|
|
130
120
|
const dataMatchers = ['/objects', '/correspondenceTemplates', '/documents', '/payments', '/forms', '/locations'];
|
|
@@ -581,6 +571,16 @@ export const deleteDocuments = async (submittedFields, requestSuccess, apiServic
|
|
|
581
571
|
}
|
|
582
572
|
}
|
|
583
573
|
};
|
|
574
|
+
const getEntryType = (entry, parameters) => {
|
|
575
|
+
if (entry?.type === 'inputField') {
|
|
576
|
+
return entry.input.type;
|
|
577
|
+
}
|
|
578
|
+
else if (entry?.type === 'input') {
|
|
579
|
+
// For 'input' type entries, look up the parameter by parameterId
|
|
580
|
+
const parameter = parameters?.find((param) => param.id === entry.parameterId);
|
|
581
|
+
return parameter?.type;
|
|
582
|
+
}
|
|
583
|
+
};
|
|
584
584
|
/**
|
|
585
585
|
* Transforms a form submission into a format safe for API submission.
|
|
586
586
|
*
|
|
@@ -606,17 +606,17 @@ export async function formatSubmission(submission, apiServices, objectId, instan
|
|
|
606
606
|
const fileInArray = value.some((item) => item instanceof File);
|
|
607
607
|
if (fileInArray && apiServices && objectId) {
|
|
608
608
|
// Determine property type from the entry
|
|
609
|
-
const
|
|
609
|
+
const parameterType = getEntryType(entry, parameters);
|
|
610
610
|
try {
|
|
611
611
|
let uploadedDocuments = [];
|
|
612
|
-
if (
|
|
612
|
+
if (parameterType === 'file') {
|
|
613
613
|
uploadedDocuments = await uploadFiles(value, apiServices, '_create', {
|
|
614
614
|
...entry?.documentMetadata,
|
|
615
615
|
},
|
|
616
616
|
// Only pass linkTo if instanceId exists (update action)
|
|
617
617
|
instanceId ? { id: instanceId, objectId } : undefined);
|
|
618
618
|
}
|
|
619
|
-
else if (
|
|
619
|
+
else if (parameterType === 'document' && instanceId) {
|
|
620
620
|
uploadedDocuments = await uploadDocuments(value, {
|
|
621
621
|
type: '',
|
|
622
622
|
view_permission: '',
|
|
@@ -630,7 +630,7 @@ export async function formatSubmission(submission, apiServices, objectId, instan
|
|
|
630
630
|
setSnackbarError &&
|
|
631
631
|
setSnackbarError({
|
|
632
632
|
showAlert: true,
|
|
633
|
-
message: `An error occurred while uploading associated ${
|
|
633
|
+
message: `An error occurred while uploading associated ${parameterType === 'file' ? 'files' : 'documents'}`,
|
|
634
634
|
isError: true,
|
|
635
635
|
});
|
|
636
636
|
}
|
|
@@ -649,8 +649,7 @@ export async function formatSubmission(submission, apiServices, objectId, instan
|
|
|
649
649
|
submission[key] =
|
|
650
650
|
entry &&
|
|
651
651
|
['input', 'inputField'].includes(entry.type) &&
|
|
652
|
-
|
|
653
|
-
associatedObject?.objectId)
|
|
652
|
+
entry.display?.relatedObjectId
|
|
654
653
|
? pick(value, 'id', 'name', 'objectId')
|
|
655
654
|
: pick(value, 'id', 'name');
|
|
656
655
|
}
|
|
@@ -1483,7 +1483,7 @@ describe('FormRenderer', () => {
|
|
|
1483
1483
|
await user.click(addButton);
|
|
1484
1484
|
await screen.findByRole('dialog');
|
|
1485
1485
|
// Make sure other form entry is present
|
|
1486
|
-
await screen.findByRole('textbox', { name:
|
|
1486
|
+
await screen.findByRole('textbox', { name: /Name */i });
|
|
1487
1487
|
const relatedObjectField = screen.queryByRole('textbox', { name: 'Related Object' });
|
|
1488
1488
|
expect(relatedObjectField).not.toBeInTheDocument();
|
|
1489
1489
|
});
|
|
@@ -1502,7 +1502,7 @@ describe('FormRenderer', () => {
|
|
|
1502
1502
|
const addButton = await screen.findByRole('button', { name: /add/i });
|
|
1503
1503
|
await user.click(addButton);
|
|
1504
1504
|
await screen.findByRole('dialog');
|
|
1505
|
-
const nameField = await screen.findByRole('textbox', { name:
|
|
1505
|
+
const nameField = await screen.findByRole('textbox', { name: /Name */ });
|
|
1506
1506
|
await user.type(nameField, 'New Collection Item');
|
|
1507
1507
|
const submitButton = screen.getByRole('button', { name: 'Create Collection Item' });
|
|
1508
1508
|
await user.click(submitButton);
|
|
@@ -997,6 +997,90 @@ describe('FormRendererContainer', () => {
|
|
|
997
997
|
});
|
|
998
998
|
});
|
|
999
999
|
});
|
|
1000
|
+
it('should display title by default', async () => {
|
|
1001
|
+
const form = {
|
|
1002
|
+
id: 'simpleForm',
|
|
1003
|
+
name: 'Simple Form',
|
|
1004
|
+
entries: [],
|
|
1005
|
+
actionId: '_create',
|
|
1006
|
+
objectId: 'simpleObject',
|
|
1007
|
+
};
|
|
1008
|
+
const simpleObject = {
|
|
1009
|
+
id: 'simpleObject',
|
|
1010
|
+
name: 'Simple Object',
|
|
1011
|
+
actions: [
|
|
1012
|
+
{
|
|
1013
|
+
id: '_create',
|
|
1014
|
+
name: 'Create',
|
|
1015
|
+
type: 'create',
|
|
1016
|
+
parameters: [],
|
|
1017
|
+
outputEvent: 'created',
|
|
1018
|
+
},
|
|
1019
|
+
],
|
|
1020
|
+
properties: [],
|
|
1021
|
+
};
|
|
1022
|
+
server.use(http.get(`/api/data/objects/${simpleObject.id}/effective`, () => HttpResponse.json(simpleObject)), http.get(`/api/data/forms/${form.id}`, () => HttpResponse.json(form)));
|
|
1023
|
+
render(React.createElement(FormRendererContainer, { objectId: simpleObject.id, formId: form.id, dataType: "objectInstances" }));
|
|
1024
|
+
await screen.findByText('Simple Form');
|
|
1025
|
+
});
|
|
1026
|
+
it('should display title', async () => {
|
|
1027
|
+
const form = {
|
|
1028
|
+
id: 'simpleForm',
|
|
1029
|
+
name: 'Simple Form',
|
|
1030
|
+
entries: [],
|
|
1031
|
+
actionId: '_create',
|
|
1032
|
+
objectId: 'simpleObject',
|
|
1033
|
+
};
|
|
1034
|
+
const simpleObject = {
|
|
1035
|
+
id: 'simpleObject',
|
|
1036
|
+
name: 'Simple Object',
|
|
1037
|
+
actions: [
|
|
1038
|
+
{
|
|
1039
|
+
id: '_create',
|
|
1040
|
+
name: 'Create',
|
|
1041
|
+
type: 'create',
|
|
1042
|
+
parameters: [],
|
|
1043
|
+
outputEvent: 'created',
|
|
1044
|
+
},
|
|
1045
|
+
],
|
|
1046
|
+
properties: [],
|
|
1047
|
+
};
|
|
1048
|
+
server.use(http.get(`/api/data/objects/${simpleObject.id}/effective`, () => HttpResponse.json(simpleObject)), http.get(`/api/data/forms/${form.id}`, () => HttpResponse.json(form)));
|
|
1049
|
+
render(React.createElement(FormRendererContainer, { objectId: simpleObject.id, formId: form.id, title: {
|
|
1050
|
+
hidden: false,
|
|
1051
|
+
}, dataType: "objectInstances" }));
|
|
1052
|
+
await screen.findByText('Simple Form');
|
|
1053
|
+
});
|
|
1054
|
+
it('should not display title', async () => {
|
|
1055
|
+
const form = {
|
|
1056
|
+
id: 'simpleForm',
|
|
1057
|
+
name: 'Simple Form',
|
|
1058
|
+
entries: [],
|
|
1059
|
+
actionId: '_create',
|
|
1060
|
+
objectId: 'simpleObject',
|
|
1061
|
+
};
|
|
1062
|
+
const simpleObject = {
|
|
1063
|
+
id: 'simpleObject',
|
|
1064
|
+
name: 'Simple Object',
|
|
1065
|
+
actions: [
|
|
1066
|
+
{
|
|
1067
|
+
id: '_create',
|
|
1068
|
+
name: 'Create',
|
|
1069
|
+
type: 'create',
|
|
1070
|
+
parameters: [],
|
|
1071
|
+
outputEvent: 'created',
|
|
1072
|
+
},
|
|
1073
|
+
],
|
|
1074
|
+
properties: [],
|
|
1075
|
+
};
|
|
1076
|
+
server.use(http.get(`/api/data/objects/${simpleObject.id}/effective`, () => HttpResponse.json(simpleObject)), http.get(`/api/data/forms/${form.id}`, () => HttpResponse.json(form)));
|
|
1077
|
+
render(React.createElement(FormRendererContainer, { objectId: simpleObject.id, formId: form.id, title: {
|
|
1078
|
+
hidden: true,
|
|
1079
|
+
}, dataType: "objectInstances" }));
|
|
1080
|
+
await waitFor(() => {
|
|
1081
|
+
expect(screen.queryByText('Simple Form')).not.toBeInTheDocument();
|
|
1082
|
+
});
|
|
1083
|
+
});
|
|
1000
1084
|
it('should display a submit button', async () => {
|
|
1001
1085
|
const form = {
|
|
1002
1086
|
id: 'simpleForm',
|
|
@@ -6,8 +6,7 @@ import React from 'react';
|
|
|
6
6
|
import { Typography } from '../../core';
|
|
7
7
|
import { Box, Grid } from '../../layout';
|
|
8
8
|
import DisplayedProperty from './DisplayedProperty';
|
|
9
|
-
|
|
10
|
-
const { format } = require('small-date');
|
|
9
|
+
import { format } from 'small-date';
|
|
11
10
|
export const nanoid = customAlphabet(uppercase + lowercase);
|
|
12
11
|
const styles = {
|
|
13
12
|
timelineHeader: {
|
|
@@ -9,8 +9,7 @@ import Box from '../../layout/Box';
|
|
|
9
9
|
import HistoryFilter from './Filter';
|
|
10
10
|
import HistoricalData from './HistoryData';
|
|
11
11
|
import HistoryLoading from './HistoryLoading';
|
|
12
|
-
|
|
13
|
-
const { format } = require('small-date');
|
|
12
|
+
import { format } from 'small-date';
|
|
14
13
|
/**
|
|
15
14
|
* Renders a timeline of the instance's history log.
|
|
16
15
|
* Users can filter the history by type and sort by date.
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { useApiServices, useApp, } from '@evoke-platform/context';
|
|
2
2
|
import { CancelRounded, CheckCircleRounded } from '@mui/icons-material';
|
|
3
|
-
import DOMPurify from 'dompurify';
|
|
4
3
|
import { isEmpty, isNil } from 'lodash';
|
|
5
4
|
import { DateTime } from 'luxon';
|
|
6
5
|
import React, { useEffect, useMemo, useState } from 'react';
|
|
@@ -17,6 +16,7 @@ import { Document } from '../FormV2/components/FormFieldTypes/DocumentFiles/Docu
|
|
|
17
16
|
import { Image } from '../FormV2/components/FormFieldTypes/Image';
|
|
18
17
|
import PropertyProtection from '../FormV2/components/PropertyProtection';
|
|
19
18
|
import { entryIsVisible, fetchCollectionData, filterEmptySections, getDefaultPages, isAddressProperty, } from '../FormV2/components/utils';
|
|
19
|
+
import HtmlView from '../FormV2/components/HtmlView';
|
|
20
20
|
function ViewOnlyEntryRenderer(props) {
|
|
21
21
|
const { entry } = props;
|
|
22
22
|
const { fetchedOptions, setFetchedOptions, object, instance, richTextEditor: RichTextEditor } = useFormContext();
|
|
@@ -53,36 +53,22 @@ function ViewOnlyEntryRenderer(props) {
|
|
|
53
53
|
useEffect(() => {
|
|
54
54
|
(async () => {
|
|
55
55
|
if (object?.properties && !fetchedOptions[`${entryId}NavigationSlug`]) {
|
|
56
|
-
const
|
|
57
|
-
if (
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
}
|
|
63
|
-
try {
|
|
64
|
-
const pages = await getDefaultPages([property], defaultPages, findDefaultPageSlugFor);
|
|
65
|
-
if (property?.objectId && pages[property.objectId]) {
|
|
66
|
-
setNavigationSlug(pages[property.objectId]);
|
|
67
|
-
setFetchedOptions({
|
|
68
|
-
[`${entryId}NavigationSlug`]: pages[property.objectId],
|
|
69
|
-
});
|
|
70
|
-
}
|
|
71
|
-
}
|
|
72
|
-
catch (error) {
|
|
73
|
-
console.error('Error fetching default pages:', error);
|
|
56
|
+
const pages = await getDefaultPages(object.properties, defaultPages, findDefaultPageSlugFor);
|
|
57
|
+
if (fieldDefinition?.objectId && pages[fieldDefinition.objectId]) {
|
|
58
|
+
setNavigationSlug(pages[fieldDefinition.objectId]);
|
|
59
|
+
setFetchedOptions({
|
|
60
|
+
[`${entryId}NavigationSlug`]: pages[fieldDefinition.objectId],
|
|
61
|
+
});
|
|
74
62
|
}
|
|
75
63
|
}
|
|
76
64
|
})();
|
|
77
|
-
}, [object, defaultPages, findDefaultPageSlugFor,
|
|
65
|
+
}, [object, defaultPages, findDefaultPageSlugFor, fieldDefinition]);
|
|
78
66
|
// If the entry is hidden, clear its value and any nested values, and skip rendering
|
|
79
67
|
if (!entryIsVisible(entry, instance)) {
|
|
80
68
|
return null;
|
|
81
69
|
}
|
|
82
70
|
if (entry.type === 'content') {
|
|
83
|
-
return
|
|
84
|
-
fontFamily: 'Roboto, Helvetica, Arial, sans-serif',
|
|
85
|
-
} }));
|
|
71
|
+
return React.createElement(HtmlView, { value: entry.html });
|
|
86
72
|
}
|
|
87
73
|
else if (entry.type === 'readonlyField') {
|
|
88
74
|
if (isAddressProperty(entryId)) {
|
|
@@ -2,6 +2,9 @@ import React, { ComponentType } from 'react';
|
|
|
2
2
|
import { BaseProps, SimpleEditorProps } from '../FormV2/components/types';
|
|
3
3
|
import { FormRendererProps } from '../FormV2/FormRenderer';
|
|
4
4
|
export type ViewDetailsV2ContainerProps = BaseProps & {
|
|
5
|
+
title?: {
|
|
6
|
+
hidden?: boolean;
|
|
7
|
+
};
|
|
5
8
|
panelLayoutId?: string;
|
|
6
9
|
instanceId?: string;
|
|
7
10
|
objectId: string;
|
|
@@ -10,7 +10,7 @@ import Header from '../FormV2/components/Header';
|
|
|
10
10
|
import { assignIdsToSectionsAndRichText, getPrefixedUrl } from '../FormV2/components/utils';
|
|
11
11
|
import ViewOnlyEntryRenderer from './InstanceEntryRenderer';
|
|
12
12
|
function ViewDetailsV2Container(props) {
|
|
13
|
-
const { instanceId, panelLayoutId, objectId, richTextEditor, renderHeader, renderBody } = props;
|
|
13
|
+
const { instanceId, panelLayoutId, objectId, title, richTextEditor, renderHeader, renderBody } = props;
|
|
14
14
|
const apiServices = useApiServices();
|
|
15
15
|
const [sanitizedObject, setSanitizedObject] = useState();
|
|
16
16
|
const [instance, setInstance] = useState();
|
|
@@ -85,6 +85,7 @@ function ViewDetailsV2Container(props) {
|
|
|
85
85
|
const isLoading = (instanceId && !instance) || !panelLayout || !sanitizedObject;
|
|
86
86
|
const hasSections = updatedEntries.some((entry) => entry.type === 'sections');
|
|
87
87
|
const headerProps = {
|
|
88
|
+
hideTitle: title?.hidden === true,
|
|
88
89
|
title: panelLayout?.name,
|
|
89
90
|
onExpandAll: handleExpandAll,
|
|
90
91
|
onCollapseAll: handleCollapseAll,
|
|
@@ -103,6 +104,7 @@ function ViewDetailsV2Container(props) {
|
|
|
103
104
|
(renderHeader ? renderHeader({ ...headerProps }) : React.createElement(Header, { ...headerProps })),
|
|
104
105
|
React.createElement(Box, { sx: {
|
|
105
106
|
paddingX: isSm || isXs ? 2 : 3,
|
|
107
|
+
paddingY: isSm || isXs ? '6px' : '14px',
|
|
106
108
|
borderTop: '1px solid #e9ecef',
|
|
107
109
|
} },
|
|
108
110
|
React.createElement(FormContext.Provider, { value: {
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
declare const _default: import("@storybook/types").ComponentAnnotations<import("@storybook/react/dist/types-0fc72a6d").R, import("@mui/material").BackdropOwnProps & import("@mui/material/OverridableComponent").CommonProps & Omit<Omit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
|
|
3
3
|
ref?: ((instance: HTMLDivElement | null) => void) | React.RefObject<HTMLDivElement> | null | undefined;
|
|
4
|
-
}, "components" | "color" | "className" | "style" | "classes" | "children" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "autoCapitalize" | "autoFocus" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "enterKeyHint" | "hidden" | "id" | "lang" | "nonce" | "slot" | "spellCheck" | "tabIndex" | "title" | "translate" | "radioGroup" | "role" | "about" | "content" | "datatype" | "inlist" | "prefix" | "property" | "rel" | "resource" | "rev" | "typeof" | "vocab" | "autoCorrect" | "autoSave" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "inputMode" | "is" | "exportparts" | "part" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-braillelabel" | "aria-brailleroledescription" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colindextext" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-description" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-hidden" | "aria-invalid" | "aria-keyshortcuts" | "aria-label" | "aria-labelledby" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowindextext" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "dangerouslySetInnerHTML" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPaste" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocus" | "onFocusCapture" | "onBlur" | "onBlurCapture" | "onChange" | "onChangeCapture" | "onBeforeInput" | "onBeforeInputCapture" | "onInput" | "onInputCapture" | "onReset" | "onResetCapture" | "onSubmit" | "onSubmitCapture" | "onInvalid" | "onInvalidCapture" | "onLoad" | "onLoadCapture" | "onError" | "onErrorCapture" | "onKeyDown" | "onKeyDownCapture" | "onKeyPress" | "onKeyPressCapture" | "onKeyUp" | "onKeyUpCapture" | "onAbort" | "onAbortCapture" | "onCanPlay" | "onCanPlayCapture" | "onCanPlayThrough" | "onCanPlayThroughCapture" | "onDurationChange" | "onDurationChangeCapture" | "onEmptied" | "onEmptiedCapture" | "onEncrypted" | "onEncryptedCapture" | "onEnded" | "onEndedCapture" | "onLoadedData" | "onLoadedDataCapture" | "onLoadedMetadata" | "onLoadedMetadataCapture" | "onLoadStart" | "onLoadStartCapture" | "onPause" | "onPauseCapture" | "onPlay" | "onPlayCapture" | "onPlaying" | "onPlayingCapture" | "onProgress" | "onProgressCapture" | "onRateChange" | "onRateChangeCapture" | "
|
|
4
|
+
}, "components" | "color" | "className" | "style" | "classes" | "children" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "autoCapitalize" | "autoFocus" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "enterKeyHint" | "hidden" | "id" | "lang" | "nonce" | "slot" | "spellCheck" | "tabIndex" | "title" | "translate" | "radioGroup" | "role" | "about" | "content" | "datatype" | "inlist" | "prefix" | "property" | "rel" | "resource" | "rev" | "typeof" | "vocab" | "autoCorrect" | "autoSave" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "inputMode" | "is" | "exportparts" | "part" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-braillelabel" | "aria-brailleroledescription" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colindextext" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-description" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-hidden" | "aria-invalid" | "aria-keyshortcuts" | "aria-label" | "aria-labelledby" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowindextext" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "dangerouslySetInnerHTML" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPaste" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocus" | "onFocusCapture" | "onBlur" | "onBlurCapture" | "onChange" | "onChangeCapture" | "onBeforeInput" | "onBeforeInputCapture" | "onInput" | "onInputCapture" | "onReset" | "onResetCapture" | "onSubmit" | "onSubmitCapture" | "onInvalid" | "onInvalidCapture" | "onLoad" | "onLoadCapture" | "onError" | "onErrorCapture" | "onKeyDown" | "onKeyDownCapture" | "onKeyPress" | "onKeyPressCapture" | "onKeyUp" | "onKeyUpCapture" | "onAbort" | "onAbortCapture" | "onCanPlay" | "onCanPlayCapture" | "onCanPlayThrough" | "onCanPlayThroughCapture" | "onDurationChange" | "onDurationChangeCapture" | "onEmptied" | "onEmptiedCapture" | "onEncrypted" | "onEncryptedCapture" | "onEnded" | "onEndedCapture" | "onLoadedData" | "onLoadedDataCapture" | "onLoadedMetadata" | "onLoadedMetadataCapture" | "onLoadStart" | "onLoadStartCapture" | "onPause" | "onPauseCapture" | "onPlay" | "onPlayCapture" | "onPlaying" | "onPlayingCapture" | "onProgress" | "onProgressCapture" | "onRateChange" | "onRateChangeCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onStalled" | "onStalledCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onAuxClick" | "onAuxClickCapture" | "onClick" | "onClickCapture" | "onContextMenu" | "onContextMenuCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDrag" | "onDragCapture" | "onDragEnd" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStart" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "onMouseDown" | "onMouseDownCapture" | "onMouseEnter" | "onMouseLeave" | "onMouseMove" | "onMouseMoveCapture" | "onMouseOut" | "onMouseOutCapture" | "onMouseOver" | "onMouseOverCapture" | "onMouseUp" | "onMouseUpCapture" | "onSelect" | "onSelectCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerUp" | "onPointerUpCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerEnter" | "onPointerLeave" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScroll" | "onScrollCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onTransitionEnd" | "onTransitionEndCapture" | "sx" | "ref" | "transitionDuration" | "componentsProps" | "slotProps" | "slots" | "in" | "mountOnEnter" | "unmountOnExit" | "timeout" | "easing" | "addEndListener" | "onEnter" | "onEntering" | "onEntered" | "onExit" | "onExiting" | "onExited" | "appear" | "enter" | "exit" | "invisible" | "open" | "TransitionComponent"> & {
|
|
5
5
|
component?: React.ElementType<any, keyof React.JSX.IntrinsicElements> | undefined;
|
|
6
6
|
}>;
|
|
7
7
|
export default _default;
|
|
8
8
|
export declare const Backdrop: import("@storybook/types").AnnotatedStoryFn<import("@storybook/react/dist/types-0fc72a6d").R, import("@mui/material").BackdropOwnProps & import("@mui/material/OverridableComponent").CommonProps & Omit<Omit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
|
|
9
9
|
ref?: ((instance: HTMLDivElement | null) => void) | React.RefObject<HTMLDivElement> | null | undefined;
|
|
10
|
-
}, "components" | "color" | "className" | "style" | "classes" | "children" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "autoCapitalize" | "autoFocus" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "enterKeyHint" | "hidden" | "id" | "lang" | "nonce" | "slot" | "spellCheck" | "tabIndex" | "title" | "translate" | "radioGroup" | "role" | "about" | "content" | "datatype" | "inlist" | "prefix" | "property" | "rel" | "resource" | "rev" | "typeof" | "vocab" | "autoCorrect" | "autoSave" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "inputMode" | "is" | "exportparts" | "part" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-braillelabel" | "aria-brailleroledescription" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colindextext" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-description" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-hidden" | "aria-invalid" | "aria-keyshortcuts" | "aria-label" | "aria-labelledby" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowindextext" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "dangerouslySetInnerHTML" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPaste" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocus" | "onFocusCapture" | "onBlur" | "onBlurCapture" | "onChange" | "onChangeCapture" | "onBeforeInput" | "onBeforeInputCapture" | "onInput" | "onInputCapture" | "onReset" | "onResetCapture" | "onSubmit" | "onSubmitCapture" | "onInvalid" | "onInvalidCapture" | "onLoad" | "onLoadCapture" | "onError" | "onErrorCapture" | "onKeyDown" | "onKeyDownCapture" | "onKeyPress" | "onKeyPressCapture" | "onKeyUp" | "onKeyUpCapture" | "onAbort" | "onAbortCapture" | "onCanPlay" | "onCanPlayCapture" | "onCanPlayThrough" | "onCanPlayThroughCapture" | "onDurationChange" | "onDurationChangeCapture" | "onEmptied" | "onEmptiedCapture" | "onEncrypted" | "onEncryptedCapture" | "onEnded" | "onEndedCapture" | "onLoadedData" | "onLoadedDataCapture" | "onLoadedMetadata" | "onLoadedMetadataCapture" | "onLoadStart" | "onLoadStartCapture" | "onPause" | "onPauseCapture" | "onPlay" | "onPlayCapture" | "onPlaying" | "onPlayingCapture" | "onProgress" | "onProgressCapture" | "onRateChange" | "onRateChangeCapture" | "
|
|
10
|
+
}, "components" | "color" | "className" | "style" | "classes" | "children" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "autoCapitalize" | "autoFocus" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "enterKeyHint" | "hidden" | "id" | "lang" | "nonce" | "slot" | "spellCheck" | "tabIndex" | "title" | "translate" | "radioGroup" | "role" | "about" | "content" | "datatype" | "inlist" | "prefix" | "property" | "rel" | "resource" | "rev" | "typeof" | "vocab" | "autoCorrect" | "autoSave" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "inputMode" | "is" | "exportparts" | "part" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-braillelabel" | "aria-brailleroledescription" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colindextext" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-description" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-hidden" | "aria-invalid" | "aria-keyshortcuts" | "aria-label" | "aria-labelledby" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowindextext" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "dangerouslySetInnerHTML" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPaste" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocus" | "onFocusCapture" | "onBlur" | "onBlurCapture" | "onChange" | "onChangeCapture" | "onBeforeInput" | "onBeforeInputCapture" | "onInput" | "onInputCapture" | "onReset" | "onResetCapture" | "onSubmit" | "onSubmitCapture" | "onInvalid" | "onInvalidCapture" | "onLoad" | "onLoadCapture" | "onError" | "onErrorCapture" | "onKeyDown" | "onKeyDownCapture" | "onKeyPress" | "onKeyPressCapture" | "onKeyUp" | "onKeyUpCapture" | "onAbort" | "onAbortCapture" | "onCanPlay" | "onCanPlayCapture" | "onCanPlayThrough" | "onCanPlayThroughCapture" | "onDurationChange" | "onDurationChangeCapture" | "onEmptied" | "onEmptiedCapture" | "onEncrypted" | "onEncryptedCapture" | "onEnded" | "onEndedCapture" | "onLoadedData" | "onLoadedDataCapture" | "onLoadedMetadata" | "onLoadedMetadataCapture" | "onLoadStart" | "onLoadStartCapture" | "onPause" | "onPauseCapture" | "onPlay" | "onPlayCapture" | "onPlaying" | "onPlayingCapture" | "onProgress" | "onProgressCapture" | "onRateChange" | "onRateChangeCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onStalled" | "onStalledCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onAuxClick" | "onAuxClickCapture" | "onClick" | "onClickCapture" | "onContextMenu" | "onContextMenuCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDrag" | "onDragCapture" | "onDragEnd" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStart" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "onMouseDown" | "onMouseDownCapture" | "onMouseEnter" | "onMouseLeave" | "onMouseMove" | "onMouseMoveCapture" | "onMouseOut" | "onMouseOutCapture" | "onMouseOver" | "onMouseOverCapture" | "onMouseUp" | "onMouseUpCapture" | "onSelect" | "onSelectCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerUp" | "onPointerUpCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerEnter" | "onPointerLeave" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScroll" | "onScrollCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onTransitionEnd" | "onTransitionEndCapture" | "sx" | "ref" | "transitionDuration" | "componentsProps" | "slotProps" | "slots" | "in" | "mountOnEnter" | "unmountOnExit" | "timeout" | "easing" | "addEndListener" | "onEnter" | "onEntering" | "onEntered" | "onExit" | "onExiting" | "onExited" | "appear" | "enter" | "exit" | "invisible" | "open" | "TransitionComponent"> & {
|
|
11
11
|
component?: React.ElementType<any, keyof React.JSX.IntrinsicElements> | undefined;
|
|
12
12
|
}>;
|
|
@@ -256,26 +256,19 @@ CriteriaBuilderRelatedObject.args = {
|
|
|
256
256
|
],
|
|
257
257
|
},
|
|
258
258
|
{
|
|
259
|
-
id: 'dynamic',
|
|
260
|
-
name: 'Dynamic',
|
|
261
|
-
type: '
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
},
|
|
273
|
-
{
|
|
274
|
-
id: 'objectId',
|
|
275
|
-
name: 'Object Id',
|
|
276
|
-
type: 'string',
|
|
277
|
-
},
|
|
278
|
-
],
|
|
259
|
+
id: 'dynamic.id',
|
|
260
|
+
name: 'Dynamic ID',
|
|
261
|
+
type: 'string',
|
|
262
|
+
},
|
|
263
|
+
{
|
|
264
|
+
id: 'dynamic.name',
|
|
265
|
+
name: 'Dynamic Name',
|
|
266
|
+
type: 'string',
|
|
267
|
+
},
|
|
268
|
+
{
|
|
269
|
+
id: 'dynamic.objectId',
|
|
270
|
+
name: 'Dynamic Object ID',
|
|
271
|
+
type: 'string',
|
|
279
272
|
},
|
|
280
273
|
{
|
|
281
274
|
id: 'name',
|
|
@@ -559,48 +552,19 @@ CriteriaBuilderRelatedObject.args = {
|
|
|
559
552
|
required: false,
|
|
560
553
|
},
|
|
561
554
|
{
|
|
562
|
-
id: 'dynamic',
|
|
563
|
-
name: 'Dynamic',
|
|
564
|
-
type: '
|
|
565
|
-
children: [
|
|
566
|
-
{
|
|
567
|
-
id: 'id',
|
|
568
|
-
name: 'ID',
|
|
569
|
-
type: 'string',
|
|
570
|
-
},
|
|
571
|
-
{
|
|
572
|
-
id: 'name',
|
|
573
|
-
name: 'Name',
|
|
574
|
-
type: 'string',
|
|
575
|
-
},
|
|
576
|
-
{
|
|
577
|
-
id: 'objectId',
|
|
578
|
-
name: 'Object Id',
|
|
579
|
-
type: 'string',
|
|
580
|
-
},
|
|
581
|
-
],
|
|
555
|
+
id: 'dynamic.id',
|
|
556
|
+
name: 'Dynamic ID',
|
|
557
|
+
type: 'string',
|
|
582
558
|
},
|
|
583
559
|
{
|
|
584
|
-
id: '
|
|
585
|
-
name: '
|
|
586
|
-
type: '
|
|
560
|
+
id: 'dynamic.name',
|
|
561
|
+
name: 'Dynamic Name',
|
|
562
|
+
type: 'string',
|
|
587
563
|
},
|
|
588
564
|
{
|
|
589
|
-
id: '
|
|
590
|
-
name: '
|
|
591
|
-
type: '
|
|
592
|
-
children: [
|
|
593
|
-
{
|
|
594
|
-
id: 'line1',
|
|
595
|
-
name: 'Line 1',
|
|
596
|
-
type: 'string',
|
|
597
|
-
},
|
|
598
|
-
{
|
|
599
|
-
id: 'line2',
|
|
600
|
-
name: 'Line 2',
|
|
601
|
-
type: 'string',
|
|
602
|
-
},
|
|
603
|
-
],
|
|
565
|
+
id: 'dynamic.objectId',
|
|
566
|
+
name: 'Dynamic Object Id',
|
|
567
|
+
type: 'string',
|
|
604
568
|
},
|
|
605
569
|
],
|
|
606
570
|
},
|
|
@@ -752,18 +716,6 @@ CriteriaBuilderRelatedObject.args = {
|
|
|
752
716
|
{
|
|
753
717
|
'applicationType.status': 'DNP',
|
|
754
718
|
},
|
|
755
|
-
{
|
|
756
|
-
'applicant.deleted': '1',
|
|
757
|
-
},
|
|
758
|
-
{
|
|
759
|
-
deleted: '1',
|
|
760
|
-
},
|
|
761
|
-
{
|
|
762
|
-
'applicant.license.expirationDate': '2025-01-16',
|
|
763
|
-
},
|
|
764
|
-
{
|
|
765
|
-
dynamic2: '1',
|
|
766
|
-
},
|
|
767
719
|
],
|
|
768
720
|
},
|
|
769
721
|
enablePresetValues: false,
|