@genesislcap/foundation-forms 14.424.1 → 14.425.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/react.cjs +125 -29
- package/dist/react.mjs +125 -29
- package/package.json +15 -18
package/dist/react.cjs
CHANGED
|
@@ -5,7 +5,6 @@
|
|
|
5
5
|
|
|
6
6
|
'use strict';
|
|
7
7
|
|
|
8
|
-
const { provideReactWrapper } = require('@microsoft/fast-react-wrapper');
|
|
9
8
|
const React = require('react');
|
|
10
9
|
const { Filters: FiltersWC } = require('./esm/filters/filters.js');
|
|
11
10
|
const { Form: FormWC } = require('./esm/form.js');
|
|
@@ -18,46 +17,143 @@ const { StepperWrapper: StepperWrapperWC } = require('./esm/jsonforms/renderers/
|
|
|
18
17
|
const { VerticalCategorizationWrapper: VerticalCategorizationWrapperWC } = require('./esm/jsonforms/renderers/VerticalCategorizationWrapperRenderer.js');
|
|
19
18
|
const { DispatchRenderer: DispatchRendererWC } = require('./esm/jsonforms/renderers/dispatch-renderer.js');
|
|
20
19
|
|
|
21
|
-
|
|
20
|
+
function _mergeRefs(...refs) {
|
|
21
|
+
return (value) => {
|
|
22
|
+
for (const ref of refs) {
|
|
23
|
+
if (typeof ref === 'function') ref(value);
|
|
24
|
+
else if (ref != null) ref.current = value;
|
|
25
|
+
}
|
|
26
|
+
};
|
|
27
|
+
}
|
|
22
28
|
|
|
23
|
-
const Form =
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
29
|
+
const Form = React.forwardRef(function Form(props, ref) {
|
|
30
|
+
const { onSubmitFailure, onSubmitSuccess, onSubmitPartialSuccess, onRowStatusChanged, onBulkSubmitComplete, onRowSubmitFailure, onRowSubmitSuccess, onDataChange, onCsvParseError, onCsvImported, onCsvTemplateError, onCsvTemplateDownloaded, children, ...rest } = props;
|
|
31
|
+
const _innerRef = React.useRef(null);
|
|
32
|
+
const _onSubmitFailureRef = React.useRef(onSubmitFailure);
|
|
33
|
+
_onSubmitFailureRef.current = onSubmitFailure;
|
|
34
|
+
const _onSubmitSuccessRef = React.useRef(onSubmitSuccess);
|
|
35
|
+
_onSubmitSuccessRef.current = onSubmitSuccess;
|
|
36
|
+
const _onSubmitPartialSuccessRef = React.useRef(onSubmitPartialSuccess);
|
|
37
|
+
_onSubmitPartialSuccessRef.current = onSubmitPartialSuccess;
|
|
38
|
+
const _onRowStatusChangedRef = React.useRef(onRowStatusChanged);
|
|
39
|
+
_onRowStatusChangedRef.current = onRowStatusChanged;
|
|
40
|
+
const _onBulkSubmitCompleteRef = React.useRef(onBulkSubmitComplete);
|
|
41
|
+
_onBulkSubmitCompleteRef.current = onBulkSubmitComplete;
|
|
42
|
+
const _onRowSubmitFailureRef = React.useRef(onRowSubmitFailure);
|
|
43
|
+
_onRowSubmitFailureRef.current = onRowSubmitFailure;
|
|
44
|
+
const _onRowSubmitSuccessRef = React.useRef(onRowSubmitSuccess);
|
|
45
|
+
_onRowSubmitSuccessRef.current = onRowSubmitSuccess;
|
|
46
|
+
const _onDataChangeRef = React.useRef(onDataChange);
|
|
47
|
+
_onDataChangeRef.current = onDataChange;
|
|
48
|
+
const _onCsvParseErrorRef = React.useRef(onCsvParseError);
|
|
49
|
+
_onCsvParseErrorRef.current = onCsvParseError;
|
|
50
|
+
const _onCsvImportedRef = React.useRef(onCsvImported);
|
|
51
|
+
_onCsvImportedRef.current = onCsvImported;
|
|
52
|
+
const _onCsvTemplateErrorRef = React.useRef(onCsvTemplateError);
|
|
53
|
+
_onCsvTemplateErrorRef.current = onCsvTemplateError;
|
|
54
|
+
const _onCsvTemplateDownloadedRef = React.useRef(onCsvTemplateDownloaded);
|
|
55
|
+
_onCsvTemplateDownloadedRef.current = onCsvTemplateDownloaded;
|
|
56
|
+
React.useLayoutEffect(() => {
|
|
57
|
+
const el = _innerRef.current;
|
|
58
|
+
if (!el) return;
|
|
59
|
+
const _onSubmitFailureFn = (e) => _onSubmitFailureRef.current?.(e);
|
|
60
|
+
el.addEventListener('submit-failure', _onSubmitFailureFn);
|
|
61
|
+
const _onSubmitSuccessFn = (e) => _onSubmitSuccessRef.current?.(e);
|
|
62
|
+
el.addEventListener('submit-success', _onSubmitSuccessFn);
|
|
63
|
+
const _onSubmitPartialSuccessFn = (e) => _onSubmitPartialSuccessRef.current?.(e);
|
|
64
|
+
el.addEventListener('submit-partial-success', _onSubmitPartialSuccessFn);
|
|
65
|
+
const _onRowStatusChangedFn = (e) => _onRowStatusChangedRef.current?.(e);
|
|
66
|
+
el.addEventListener('row-status-changed', _onRowStatusChangedFn);
|
|
67
|
+
const _onBulkSubmitCompleteFn = (e) => _onBulkSubmitCompleteRef.current?.(e);
|
|
68
|
+
el.addEventListener('bulk-submit-complete', _onBulkSubmitCompleteFn);
|
|
69
|
+
const _onRowSubmitFailureFn = (e) => _onRowSubmitFailureRef.current?.(e);
|
|
70
|
+
el.addEventListener('row-submit-failure', _onRowSubmitFailureFn);
|
|
71
|
+
const _onRowSubmitSuccessFn = (e) => _onRowSubmitSuccessRef.current?.(e);
|
|
72
|
+
el.addEventListener('row-submit-success', _onRowSubmitSuccessFn);
|
|
73
|
+
const _onDataChangeFn = (e) => _onDataChangeRef.current?.(e);
|
|
74
|
+
el.addEventListener('data-change', _onDataChangeFn);
|
|
75
|
+
const _onCsvParseErrorFn = (e) => _onCsvParseErrorRef.current?.(e);
|
|
76
|
+
el.addEventListener('csv-parse-error', _onCsvParseErrorFn);
|
|
77
|
+
const _onCsvImportedFn = (e) => _onCsvImportedRef.current?.(e);
|
|
78
|
+
el.addEventListener('csv-imported', _onCsvImportedFn);
|
|
79
|
+
const _onCsvTemplateErrorFn = (e) => _onCsvTemplateErrorRef.current?.(e);
|
|
80
|
+
el.addEventListener('csv-template-error', _onCsvTemplateErrorFn);
|
|
81
|
+
const _onCsvTemplateDownloadedFn = (e) => _onCsvTemplateDownloadedRef.current?.(e);
|
|
82
|
+
el.addEventListener('csv-template-downloaded', _onCsvTemplateDownloadedFn);
|
|
83
|
+
return () => {
|
|
84
|
+
el.removeEventListener('submit-failure', _onSubmitFailureFn);
|
|
85
|
+
el.removeEventListener('submit-success', _onSubmitSuccessFn);
|
|
86
|
+
el.removeEventListener('submit-partial-success', _onSubmitPartialSuccessFn);
|
|
87
|
+
el.removeEventListener('row-status-changed', _onRowStatusChangedFn);
|
|
88
|
+
el.removeEventListener('bulk-submit-complete', _onBulkSubmitCompleteFn);
|
|
89
|
+
el.removeEventListener('row-submit-failure', _onRowSubmitFailureFn);
|
|
90
|
+
el.removeEventListener('row-submit-success', _onRowSubmitSuccessFn);
|
|
91
|
+
el.removeEventListener('data-change', _onDataChangeFn);
|
|
92
|
+
el.removeEventListener('csv-parse-error', _onCsvParseErrorFn);
|
|
93
|
+
el.removeEventListener('csv-imported', _onCsvImportedFn);
|
|
94
|
+
el.removeEventListener('csv-template-error', _onCsvTemplateErrorFn);
|
|
95
|
+
el.removeEventListener('csv-template-downloaded', _onCsvTemplateDownloadedFn);
|
|
96
|
+
};
|
|
97
|
+
}, []);
|
|
98
|
+
return React.createElement(customElements.getName(FormWC) ?? 'foundation-form', { ...rest, ref: _mergeRefs(_innerRef, ref) }, children);
|
|
38
99
|
});
|
|
39
100
|
|
|
40
|
-
const Filters =
|
|
101
|
+
const Filters = React.forwardRef(function Filters(props, ref) {
|
|
102
|
+
const { children, ...rest } = props;
|
|
103
|
+
return React.createElement(customElements.getName(FiltersWC) ?? 'foundation-filters', { ...rest, ref }, children);
|
|
104
|
+
});
|
|
41
105
|
|
|
42
|
-
const JSONForms =
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
106
|
+
const JSONForms = React.forwardRef(function JSONForms(props, ref) {
|
|
107
|
+
const { onDataChange, children, ...rest } = props;
|
|
108
|
+
const _innerRef = React.useRef(null);
|
|
109
|
+
const _onDataChangeRef = React.useRef(onDataChange);
|
|
110
|
+
_onDataChangeRef.current = onDataChange;
|
|
111
|
+
React.useLayoutEffect(() => {
|
|
112
|
+
const el = _innerRef.current;
|
|
113
|
+
if (!el) return;
|
|
114
|
+
const _onDataChangeFn = (e) => _onDataChangeRef.current?.(e);
|
|
115
|
+
el.addEventListener('data-change', _onDataChangeFn);
|
|
116
|
+
return () => {
|
|
117
|
+
el.removeEventListener('data-change', _onDataChangeFn);
|
|
118
|
+
};
|
|
119
|
+
}, []);
|
|
120
|
+
return React.createElement(customElements.getName(JSONFormsWC) ?? 'json-forms', { ...rest, ref: _mergeRefs(_innerRef, ref) }, children);
|
|
46
121
|
});
|
|
47
122
|
|
|
48
|
-
const ArrayListWrapper =
|
|
123
|
+
const ArrayListWrapper = React.forwardRef(function ArrayListWrapper(props, ref) {
|
|
124
|
+
const { children, ...rest } = props;
|
|
125
|
+
return React.createElement(customElements.getName(ArrayListWrapperWC) ?? 'array-list-wrapper', { ...rest, ref }, children);
|
|
126
|
+
});
|
|
49
127
|
|
|
50
|
-
const CategorizationWrapper =
|
|
128
|
+
const CategorizationWrapper = React.forwardRef(function CategorizationWrapper(props, ref) {
|
|
129
|
+
const { children, ...rest } = props;
|
|
130
|
+
return React.createElement(customElements.getName(CategorizationWrapperWC) ?? 'categorization-wrapper', { ...rest, ref }, children);
|
|
131
|
+
});
|
|
51
132
|
|
|
52
|
-
const ControlWrapper =
|
|
133
|
+
const ControlWrapper = React.forwardRef(function ControlWrapper(props, ref) {
|
|
134
|
+
const { children, ...rest } = props;
|
|
135
|
+
return React.createElement(customElements.getName(ControlWrapperWC) ?? 'control-wrapper', { ...rest, ref }, children);
|
|
136
|
+
});
|
|
53
137
|
|
|
54
|
-
const LayoutWrapper =
|
|
138
|
+
const LayoutWrapper = React.forwardRef(function LayoutWrapper(props, ref) {
|
|
139
|
+
const { children, ...rest } = props;
|
|
140
|
+
return React.createElement(customElements.getName(LayoutWrapperWC) ?? 'layout-wrapper', { ...rest, ref }, children);
|
|
141
|
+
});
|
|
55
142
|
|
|
56
|
-
const StepperWrapper =
|
|
143
|
+
const StepperWrapper = React.forwardRef(function StepperWrapper(props, ref) {
|
|
144
|
+
const { children, ...rest } = props;
|
|
145
|
+
return React.createElement(customElements.getName(StepperWrapperWC) ?? 'stepper-wrapper', { ...rest, ref }, children);
|
|
146
|
+
});
|
|
57
147
|
|
|
58
|
-
const VerticalCategorizationWrapper =
|
|
148
|
+
const VerticalCategorizationWrapper = React.forwardRef(function VerticalCategorizationWrapper(props, ref) {
|
|
149
|
+
const { children, ...rest } = props;
|
|
150
|
+
return React.createElement(customElements.getName(VerticalCategorizationWrapperWC) ?? 'vertical-categorization-wrapper', { ...rest, ref }, children);
|
|
151
|
+
});
|
|
59
152
|
|
|
60
|
-
const DispatchRenderer =
|
|
153
|
+
const DispatchRenderer = React.forwardRef(function DispatchRenderer(props, ref) {
|
|
154
|
+
const { children, ...rest } = props;
|
|
155
|
+
return React.createElement(customElements.getName(DispatchRendererWC) ?? 'dispatch-renderer', { ...rest, ref }, children);
|
|
156
|
+
});
|
|
61
157
|
|
|
62
158
|
module.exports = {
|
|
63
159
|
Form,
|
package/dist/react.mjs
CHANGED
|
@@ -3,7 +3,6 @@
|
|
|
3
3
|
* Generated from custom-elements manifest.
|
|
4
4
|
*/
|
|
5
5
|
|
|
6
|
-
import { provideReactWrapper } from '@microsoft/fast-react-wrapper';
|
|
7
6
|
import React from 'react';
|
|
8
7
|
import { Filters as FiltersWC } from './esm/filters/filters.js';
|
|
9
8
|
import { Form as FormWC } from './esm/form.js';
|
|
@@ -16,43 +15,140 @@ import { StepperWrapper as StepperWrapperWC } from './esm/jsonforms/renderers/St
|
|
|
16
15
|
import { VerticalCategorizationWrapper as VerticalCategorizationWrapperWC } from './esm/jsonforms/renderers/VerticalCategorizationWrapperRenderer.js';
|
|
17
16
|
import { DispatchRenderer as DispatchRendererWC } from './esm/jsonforms/renderers/dispatch-renderer.js';
|
|
18
17
|
|
|
19
|
-
|
|
18
|
+
function _mergeRefs(...refs) {
|
|
19
|
+
return (value) => {
|
|
20
|
+
for (const ref of refs) {
|
|
21
|
+
if (typeof ref === 'function') ref(value);
|
|
22
|
+
else if (ref != null) ref.current = value;
|
|
23
|
+
}
|
|
24
|
+
};
|
|
25
|
+
}
|
|
20
26
|
|
|
21
|
-
export const Form =
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
27
|
+
export const Form = React.forwardRef(function Form(props, ref) {
|
|
28
|
+
const { onSubmitFailure, onSubmitSuccess, onSubmitPartialSuccess, onRowStatusChanged, onBulkSubmitComplete, onRowSubmitFailure, onRowSubmitSuccess, onDataChange, onCsvParseError, onCsvImported, onCsvTemplateError, onCsvTemplateDownloaded, children, ...rest } = props;
|
|
29
|
+
const _innerRef = React.useRef(null);
|
|
30
|
+
const _onSubmitFailureRef = React.useRef(onSubmitFailure);
|
|
31
|
+
_onSubmitFailureRef.current = onSubmitFailure;
|
|
32
|
+
const _onSubmitSuccessRef = React.useRef(onSubmitSuccess);
|
|
33
|
+
_onSubmitSuccessRef.current = onSubmitSuccess;
|
|
34
|
+
const _onSubmitPartialSuccessRef = React.useRef(onSubmitPartialSuccess);
|
|
35
|
+
_onSubmitPartialSuccessRef.current = onSubmitPartialSuccess;
|
|
36
|
+
const _onRowStatusChangedRef = React.useRef(onRowStatusChanged);
|
|
37
|
+
_onRowStatusChangedRef.current = onRowStatusChanged;
|
|
38
|
+
const _onBulkSubmitCompleteRef = React.useRef(onBulkSubmitComplete);
|
|
39
|
+
_onBulkSubmitCompleteRef.current = onBulkSubmitComplete;
|
|
40
|
+
const _onRowSubmitFailureRef = React.useRef(onRowSubmitFailure);
|
|
41
|
+
_onRowSubmitFailureRef.current = onRowSubmitFailure;
|
|
42
|
+
const _onRowSubmitSuccessRef = React.useRef(onRowSubmitSuccess);
|
|
43
|
+
_onRowSubmitSuccessRef.current = onRowSubmitSuccess;
|
|
44
|
+
const _onDataChangeRef = React.useRef(onDataChange);
|
|
45
|
+
_onDataChangeRef.current = onDataChange;
|
|
46
|
+
const _onCsvParseErrorRef = React.useRef(onCsvParseError);
|
|
47
|
+
_onCsvParseErrorRef.current = onCsvParseError;
|
|
48
|
+
const _onCsvImportedRef = React.useRef(onCsvImported);
|
|
49
|
+
_onCsvImportedRef.current = onCsvImported;
|
|
50
|
+
const _onCsvTemplateErrorRef = React.useRef(onCsvTemplateError);
|
|
51
|
+
_onCsvTemplateErrorRef.current = onCsvTemplateError;
|
|
52
|
+
const _onCsvTemplateDownloadedRef = React.useRef(onCsvTemplateDownloaded);
|
|
53
|
+
_onCsvTemplateDownloadedRef.current = onCsvTemplateDownloaded;
|
|
54
|
+
React.useLayoutEffect(() => {
|
|
55
|
+
const el = _innerRef.current;
|
|
56
|
+
if (!el) return;
|
|
57
|
+
const _onSubmitFailureFn = (e) => _onSubmitFailureRef.current?.(e);
|
|
58
|
+
el.addEventListener('submit-failure', _onSubmitFailureFn);
|
|
59
|
+
const _onSubmitSuccessFn = (e) => _onSubmitSuccessRef.current?.(e);
|
|
60
|
+
el.addEventListener('submit-success', _onSubmitSuccessFn);
|
|
61
|
+
const _onSubmitPartialSuccessFn = (e) => _onSubmitPartialSuccessRef.current?.(e);
|
|
62
|
+
el.addEventListener('submit-partial-success', _onSubmitPartialSuccessFn);
|
|
63
|
+
const _onRowStatusChangedFn = (e) => _onRowStatusChangedRef.current?.(e);
|
|
64
|
+
el.addEventListener('row-status-changed', _onRowStatusChangedFn);
|
|
65
|
+
const _onBulkSubmitCompleteFn = (e) => _onBulkSubmitCompleteRef.current?.(e);
|
|
66
|
+
el.addEventListener('bulk-submit-complete', _onBulkSubmitCompleteFn);
|
|
67
|
+
const _onRowSubmitFailureFn = (e) => _onRowSubmitFailureRef.current?.(e);
|
|
68
|
+
el.addEventListener('row-submit-failure', _onRowSubmitFailureFn);
|
|
69
|
+
const _onRowSubmitSuccessFn = (e) => _onRowSubmitSuccessRef.current?.(e);
|
|
70
|
+
el.addEventListener('row-submit-success', _onRowSubmitSuccessFn);
|
|
71
|
+
const _onDataChangeFn = (e) => _onDataChangeRef.current?.(e);
|
|
72
|
+
el.addEventListener('data-change', _onDataChangeFn);
|
|
73
|
+
const _onCsvParseErrorFn = (e) => _onCsvParseErrorRef.current?.(e);
|
|
74
|
+
el.addEventListener('csv-parse-error', _onCsvParseErrorFn);
|
|
75
|
+
const _onCsvImportedFn = (e) => _onCsvImportedRef.current?.(e);
|
|
76
|
+
el.addEventListener('csv-imported', _onCsvImportedFn);
|
|
77
|
+
const _onCsvTemplateErrorFn = (e) => _onCsvTemplateErrorRef.current?.(e);
|
|
78
|
+
el.addEventListener('csv-template-error', _onCsvTemplateErrorFn);
|
|
79
|
+
const _onCsvTemplateDownloadedFn = (e) => _onCsvTemplateDownloadedRef.current?.(e);
|
|
80
|
+
el.addEventListener('csv-template-downloaded', _onCsvTemplateDownloadedFn);
|
|
81
|
+
return () => {
|
|
82
|
+
el.removeEventListener('submit-failure', _onSubmitFailureFn);
|
|
83
|
+
el.removeEventListener('submit-success', _onSubmitSuccessFn);
|
|
84
|
+
el.removeEventListener('submit-partial-success', _onSubmitPartialSuccessFn);
|
|
85
|
+
el.removeEventListener('row-status-changed', _onRowStatusChangedFn);
|
|
86
|
+
el.removeEventListener('bulk-submit-complete', _onBulkSubmitCompleteFn);
|
|
87
|
+
el.removeEventListener('row-submit-failure', _onRowSubmitFailureFn);
|
|
88
|
+
el.removeEventListener('row-submit-success', _onRowSubmitSuccessFn);
|
|
89
|
+
el.removeEventListener('data-change', _onDataChangeFn);
|
|
90
|
+
el.removeEventListener('csv-parse-error', _onCsvParseErrorFn);
|
|
91
|
+
el.removeEventListener('csv-imported', _onCsvImportedFn);
|
|
92
|
+
el.removeEventListener('csv-template-error', _onCsvTemplateErrorFn);
|
|
93
|
+
el.removeEventListener('csv-template-downloaded', _onCsvTemplateDownloadedFn);
|
|
94
|
+
};
|
|
95
|
+
}, []);
|
|
96
|
+
return React.createElement(customElements.getName(FormWC) ?? 'foundation-form', { ...rest, ref: _mergeRefs(_innerRef, ref) }, children);
|
|
36
97
|
});
|
|
37
98
|
|
|
38
|
-
export const Filters =
|
|
99
|
+
export const Filters = React.forwardRef(function Filters(props, ref) {
|
|
100
|
+
const { children, ...rest } = props;
|
|
101
|
+
return React.createElement(customElements.getName(FiltersWC) ?? 'foundation-filters', { ...rest, ref }, children);
|
|
102
|
+
});
|
|
39
103
|
|
|
40
|
-
export const JSONForms =
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
104
|
+
export const JSONForms = React.forwardRef(function JSONForms(props, ref) {
|
|
105
|
+
const { onDataChange, children, ...rest } = props;
|
|
106
|
+
const _innerRef = React.useRef(null);
|
|
107
|
+
const _onDataChangeRef = React.useRef(onDataChange);
|
|
108
|
+
_onDataChangeRef.current = onDataChange;
|
|
109
|
+
React.useLayoutEffect(() => {
|
|
110
|
+
const el = _innerRef.current;
|
|
111
|
+
if (!el) return;
|
|
112
|
+
const _onDataChangeFn = (e) => _onDataChangeRef.current?.(e);
|
|
113
|
+
el.addEventListener('data-change', _onDataChangeFn);
|
|
114
|
+
return () => {
|
|
115
|
+
el.removeEventListener('data-change', _onDataChangeFn);
|
|
116
|
+
};
|
|
117
|
+
}, []);
|
|
118
|
+
return React.createElement(customElements.getName(JSONFormsWC) ?? 'json-forms', { ...rest, ref: _mergeRefs(_innerRef, ref) }, children);
|
|
44
119
|
});
|
|
45
120
|
|
|
46
|
-
export const ArrayListWrapper =
|
|
121
|
+
export const ArrayListWrapper = React.forwardRef(function ArrayListWrapper(props, ref) {
|
|
122
|
+
const { children, ...rest } = props;
|
|
123
|
+
return React.createElement(customElements.getName(ArrayListWrapperWC) ?? 'array-list-wrapper', { ...rest, ref }, children);
|
|
124
|
+
});
|
|
47
125
|
|
|
48
|
-
export const CategorizationWrapper =
|
|
126
|
+
export const CategorizationWrapper = React.forwardRef(function CategorizationWrapper(props, ref) {
|
|
127
|
+
const { children, ...rest } = props;
|
|
128
|
+
return React.createElement(customElements.getName(CategorizationWrapperWC) ?? 'categorization-wrapper', { ...rest, ref }, children);
|
|
129
|
+
});
|
|
49
130
|
|
|
50
|
-
export const ControlWrapper =
|
|
131
|
+
export const ControlWrapper = React.forwardRef(function ControlWrapper(props, ref) {
|
|
132
|
+
const { children, ...rest } = props;
|
|
133
|
+
return React.createElement(customElements.getName(ControlWrapperWC) ?? 'control-wrapper', { ...rest, ref }, children);
|
|
134
|
+
});
|
|
51
135
|
|
|
52
|
-
export const LayoutWrapper =
|
|
136
|
+
export const LayoutWrapper = React.forwardRef(function LayoutWrapper(props, ref) {
|
|
137
|
+
const { children, ...rest } = props;
|
|
138
|
+
return React.createElement(customElements.getName(LayoutWrapperWC) ?? 'layout-wrapper', { ...rest, ref }, children);
|
|
139
|
+
});
|
|
53
140
|
|
|
54
|
-
export const StepperWrapper =
|
|
141
|
+
export const StepperWrapper = React.forwardRef(function StepperWrapper(props, ref) {
|
|
142
|
+
const { children, ...rest } = props;
|
|
143
|
+
return React.createElement(customElements.getName(StepperWrapperWC) ?? 'stepper-wrapper', { ...rest, ref }, children);
|
|
144
|
+
});
|
|
55
145
|
|
|
56
|
-
export const VerticalCategorizationWrapper =
|
|
146
|
+
export const VerticalCategorizationWrapper = React.forwardRef(function VerticalCategorizationWrapper(props, ref) {
|
|
147
|
+
const { children, ...rest } = props;
|
|
148
|
+
return React.createElement(customElements.getName(VerticalCategorizationWrapperWC) ?? 'vertical-categorization-wrapper', { ...rest, ref }, children);
|
|
149
|
+
});
|
|
57
150
|
|
|
58
|
-
export const DispatchRenderer =
|
|
151
|
+
export const DispatchRenderer = React.forwardRef(function DispatchRenderer(props, ref) {
|
|
152
|
+
const { children, ...rest } = props;
|
|
153
|
+
return React.createElement(customElements.getName(DispatchRendererWC) ?? 'dispatch-renderer', { ...rest, ref }, children);
|
|
154
|
+
});
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@genesislcap/foundation-forms",
|
|
3
3
|
"description": "Genesis Foundation Forms",
|
|
4
|
-
"version": "14.
|
|
4
|
+
"version": "14.425.0",
|
|
5
5
|
"sideEffects": false,
|
|
6
6
|
"license": "SEE LICENSE IN license.txt",
|
|
7
7
|
"main": "dist/esm/index.js",
|
|
@@ -55,23 +55,23 @@
|
|
|
55
55
|
}
|
|
56
56
|
},
|
|
57
57
|
"devDependencies": {
|
|
58
|
-
"@genesislcap/foundation-testing": "14.
|
|
59
|
-
"@genesislcap/genx": "14.
|
|
60
|
-
"@genesislcap/rollup-builder": "14.
|
|
61
|
-
"@genesislcap/ts-builder": "14.
|
|
62
|
-
"@genesislcap/uvu-playwright-builder": "14.
|
|
63
|
-
"@genesislcap/vite-builder": "14.
|
|
64
|
-
"@genesislcap/webpack-builder": "14.
|
|
58
|
+
"@genesislcap/foundation-testing": "14.425.0",
|
|
59
|
+
"@genesislcap/genx": "14.425.0",
|
|
60
|
+
"@genesislcap/rollup-builder": "14.425.0",
|
|
61
|
+
"@genesislcap/ts-builder": "14.425.0",
|
|
62
|
+
"@genesislcap/uvu-playwright-builder": "14.425.0",
|
|
63
|
+
"@genesislcap/vite-builder": "14.425.0",
|
|
64
|
+
"@genesislcap/webpack-builder": "14.425.0",
|
|
65
65
|
"@types/json-schema": "^7.0.11",
|
|
66
66
|
"@types/papaparse": "^5.3.14"
|
|
67
67
|
},
|
|
68
68
|
"dependencies": {
|
|
69
|
-
"@genesislcap/foundation-comms": "14.
|
|
70
|
-
"@genesislcap/foundation-criteria": "14.
|
|
71
|
-
"@genesislcap/foundation-logger": "14.
|
|
72
|
-
"@genesislcap/foundation-notifications": "14.
|
|
73
|
-
"@genesislcap/foundation-ui": "14.
|
|
74
|
-
"@genesislcap/foundation-utils": "14.
|
|
69
|
+
"@genesislcap/foundation-comms": "14.425.0",
|
|
70
|
+
"@genesislcap/foundation-criteria": "14.425.0",
|
|
71
|
+
"@genesislcap/foundation-logger": "14.425.0",
|
|
72
|
+
"@genesislcap/foundation-notifications": "14.425.0",
|
|
73
|
+
"@genesislcap/foundation-ui": "14.425.0",
|
|
74
|
+
"@genesislcap/foundation-utils": "14.425.0",
|
|
75
75
|
"@json-schema-tools/dereferencer": "^1.6.1",
|
|
76
76
|
"@jsonforms/core": "^3.2.1",
|
|
77
77
|
"@microsoft/fast-components": "2.30.6",
|
|
@@ -93,8 +93,5 @@
|
|
|
93
93
|
"access": "public"
|
|
94
94
|
},
|
|
95
95
|
"customElements": "dist/custom-elements.json",
|
|
96
|
-
"
|
|
97
|
-
"@microsoft/fast-react-wrapper": ">=0.3.0"
|
|
98
|
-
},
|
|
99
|
-
"gitHead": "04bb18a6f0b26506a9d87ab252ce9e2329219a5e"
|
|
96
|
+
"gitHead": "c49bb94fbc3a74e84f18c7445398af116e1a58bb"
|
|
100
97
|
}
|