@arquimedes.co/eureka-forms 3.0.28-test → 3.0.30-test
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/App/AppHooks.js +17 -3
- package/dist/Icons/Entities/WorkIcon.d.ts +3 -0
- package/dist/Icons/Entities/WorkIcon.js +7 -0
- package/dist/Shared/InputIcon/InputIcon.js +3 -0
- package/dist/constants/ErkIconTypes.d.ts +2 -1
- package/dist/constants/ErkIconTypes.js +1 -0
- package/dist/main.js +7 -5
- package/package.json +1 -1
package/dist/App/AppHooks.js
CHANGED
|
@@ -115,12 +115,26 @@ export const useSetupApp = (isEmbedded, props) => {
|
|
|
115
115
|
useEffect(() => {
|
|
116
116
|
void loadData();
|
|
117
117
|
// eslint-disable-next-line no-console
|
|
118
|
-
console.log('Changed!');
|
|
118
|
+
console.log('Form props Changed!');
|
|
119
119
|
return () => {
|
|
120
120
|
dispatch({ type: 'CLEAR' });
|
|
121
121
|
};
|
|
122
122
|
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
123
|
-
}, [
|
|
123
|
+
}, [
|
|
124
|
+
dispatch,
|
|
125
|
+
preview,
|
|
126
|
+
internal,
|
|
127
|
+
postview,
|
|
128
|
+
partial,
|
|
129
|
+
editable,
|
|
130
|
+
handleConfirmed,
|
|
131
|
+
customSteps,
|
|
132
|
+
valuesData,
|
|
133
|
+
apiKey,
|
|
134
|
+
formData,
|
|
135
|
+
classifiers,
|
|
136
|
+
idCurrentAgent,
|
|
137
|
+
]);
|
|
124
138
|
const reload = useCallback(() => {
|
|
125
139
|
if (!form)
|
|
126
140
|
return;
|
|
@@ -137,7 +151,7 @@ export const useSetupApp = (isEmbedded, props) => {
|
|
|
137
151
|
return {
|
|
138
152
|
form,
|
|
139
153
|
organization,
|
|
140
|
-
branding: organization?.customBrandings ?
|
|
154
|
+
branding: organization?.customBrandings ? form?.branding ?? organization.branding : organization?.branding,
|
|
141
155
|
reload,
|
|
142
156
|
};
|
|
143
157
|
};
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
+
import { useIconProps } from '../@ErkIcon';
|
|
3
|
+
function WorkIcon(props) {
|
|
4
|
+
const iconProps = useIconProps(props);
|
|
5
|
+
return (_jsx("svg", { ...iconProps, viewBox: "0 0 24 24", xmlns: "http://www.w3.org/2000/svg", children: _jsx("path", { d: "M20 6h-4V4c0-1.11-.89-2-2-2h-4c-1.11 0-2 .89-2 2v2H4c-1.11 0-1.99.89-1.99 2L2 19c0 1.11.89 2 2 2h16c1.11 0 2-.89 2-2V8c0-1.11-.89-2-2-2m-6 0h-4V4h4z" }) }));
|
|
6
|
+
}
|
|
7
|
+
export default WorkIcon;
|
|
@@ -10,6 +10,7 @@ import CheckListIcon from '../../Icons/Entities/CheckListIcon';
|
|
|
10
10
|
import GenericEntityIcon from '../../Icons/Entities/GenericEntityIcon';
|
|
11
11
|
import HandShakeIcon from '../../Icons/Entities/HandshakeIcon';
|
|
12
12
|
import SupplierIcon from '../../Icons/Entities/SupplierIcon';
|
|
13
|
+
import WorkIcon from '../../Icons/Entities/WorkIcon';
|
|
13
14
|
import LocationIcon from '../../Icons/LocationIcon';
|
|
14
15
|
import PersonIcon from '../../Icons/PersonIcon';
|
|
15
16
|
function InputIcon({ icon, ...others }) {
|
|
@@ -34,6 +35,8 @@ function InputIcon({ icon, ...others }) {
|
|
|
34
35
|
return _jsx(SupplierIcon, { size: 24, ...others });
|
|
35
36
|
case ErkIconTypes.CALENDAR:
|
|
36
37
|
return _jsx(CalendarIcon, { size: 23, ...others });
|
|
38
|
+
case ErkIconTypes.WORK:
|
|
39
|
+
return _jsx(WorkIcon, { size: 23, ...others });
|
|
37
40
|
case ErkIconTypes.LOCATION:
|
|
38
41
|
return _jsx(LocationIcon, { size: 23, ...others });
|
|
39
42
|
case ErkIconTypes.GENERIC:
|
package/dist/main.js
CHANGED
|
@@ -16,8 +16,10 @@ if (values) {
|
|
|
16
16
|
console.error('Invalid data-values JSON', error);
|
|
17
17
|
}
|
|
18
18
|
}
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
19
|
+
const idOrganization = urlParams.get('idOrganization') ?? undefined;
|
|
20
|
+
const scrollToTop = () => {
|
|
21
|
+
location.href = '#';
|
|
22
|
+
location.href = '#eureka-root';
|
|
23
|
+
location.href = '#';
|
|
24
|
+
};
|
|
25
|
+
ReactDOM.createRoot(document.getElementById('eureka-root')).render(_jsx("div", { className: styles.eurekaForm, children: _jsx(App, { isWidget: false, idOrganization: idOrganization, apiKey: window.location.pathname.replace('/', ''), valuesData: dataValues, scrollToTop: scrollToTop }) }));
|
package/package.json
CHANGED