@bsol-oss/react-datatable5 13.0.1-beta.35 → 13.0.1-beta.36
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/index.js +4 -4
- package/dist/index.mjs +4 -4
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -4191,8 +4191,8 @@ const SchemaFormContext = React.createContext({
|
|
|
4191
4191
|
onSubmit: async () => { },
|
|
4192
4192
|
timezone: 'Asia/Hong_Kong',
|
|
4193
4193
|
displayConfig: {
|
|
4194
|
-
showSubmitButton:
|
|
4195
|
-
showResetButton:
|
|
4194
|
+
showSubmitButton: false,
|
|
4195
|
+
showResetButton: false,
|
|
4196
4196
|
showTitle: true,
|
|
4197
4197
|
},
|
|
4198
4198
|
});
|
|
@@ -7905,9 +7905,9 @@ const FormBody = () => {
|
|
|
7905
7905
|
return null;
|
|
7906
7906
|
}
|
|
7907
7907
|
return (jsxRuntime.jsx(ColumnRenderer, { properties: properties, prefix: ``, parentRequired: schema.required, column }, `form-input-${column}`));
|
|
7908
|
-
}) }), jsxRuntime.jsxs(react.Flex, { justifyContent: 'end', gap: "2", children: [showResetButton && (jsxRuntime.jsx(react.Button, { onClick: () => {
|
|
7908
|
+
}) }), (showResetButton || showSubmitButton) && (jsxRuntime.jsxs(react.Flex, { justifyContent: 'end', gap: "2", children: [showResetButton && (jsxRuntime.jsx(react.Button, { onClick: () => {
|
|
7909
7909
|
methods.reset();
|
|
7910
|
-
}, variant: 'subtle', children: formButtonLabels?.reset ?? 'Reset' })), showSubmitButton && jsxRuntime.jsx(SubmitButton, {})] })] }));
|
|
7910
|
+
}, variant: 'subtle', children: formButtonLabels?.reset ?? 'Reset' })), showSubmitButton && jsxRuntime.jsx(SubmitButton, {})] }))] }));
|
|
7911
7911
|
};
|
|
7912
7912
|
|
|
7913
7913
|
const FormTitle = () => {
|
package/dist/index.mjs
CHANGED
|
@@ -4171,8 +4171,8 @@ const SchemaFormContext = createContext({
|
|
|
4171
4171
|
onSubmit: async () => { },
|
|
4172
4172
|
timezone: 'Asia/Hong_Kong',
|
|
4173
4173
|
displayConfig: {
|
|
4174
|
-
showSubmitButton:
|
|
4175
|
-
showResetButton:
|
|
4174
|
+
showSubmitButton: false,
|
|
4175
|
+
showResetButton: false,
|
|
4176
4176
|
showTitle: true,
|
|
4177
4177
|
},
|
|
4178
4178
|
});
|
|
@@ -7885,9 +7885,9 @@ const FormBody = () => {
|
|
|
7885
7885
|
return null;
|
|
7886
7886
|
}
|
|
7887
7887
|
return (jsx(ColumnRenderer, { properties: properties, prefix: ``, parentRequired: schema.required, column }, `form-input-${column}`));
|
|
7888
|
-
}) }), jsxs(Flex, { justifyContent: 'end', gap: "2", children: [showResetButton && (jsx(Button$1, { onClick: () => {
|
|
7888
|
+
}) }), (showResetButton || showSubmitButton) && (jsxs(Flex, { justifyContent: 'end', gap: "2", children: [showResetButton && (jsx(Button$1, { onClick: () => {
|
|
7889
7889
|
methods.reset();
|
|
7890
|
-
}, variant: 'subtle', children: formButtonLabels?.reset ?? 'Reset' })), showSubmitButton && jsx(SubmitButton, {})] })] }));
|
|
7890
|
+
}, variant: 'subtle', children: formButtonLabels?.reset ?? 'Reset' })), showSubmitButton && jsx(SubmitButton, {})] }))] }));
|
|
7891
7891
|
};
|
|
7892
7892
|
|
|
7893
7893
|
const FormTitle = () => {
|