@adiba-banking-cloud/backoffice 0.0.65 → 0.0.67
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.
|
@@ -13246,10 +13246,9 @@ const Drawer = _ref => {
|
|
|
13246
13246
|
}, page))));
|
|
13247
13247
|
};
|
|
13248
13248
|
|
|
13249
|
-
const _excluded$1 = ["
|
|
13249
|
+
const _excluded$1 = ["fields", "isEditable", "layout"];
|
|
13250
13250
|
const SimpleForm = _ref => {
|
|
13251
13251
|
let {
|
|
13252
|
-
component = "",
|
|
13253
13252
|
fields,
|
|
13254
13253
|
isEditable = true,
|
|
13255
13254
|
layout = []
|
|
@@ -13285,11 +13284,17 @@ const SimpleForm = _ref => {
|
|
|
13285
13284
|
})));
|
|
13286
13285
|
}
|
|
13287
13286
|
if (typeof field === "function") {
|
|
13288
|
-
return
|
|
13287
|
+
return /*#__PURE__*/React.createElement(core.Grid.Col, {
|
|
13288
|
+
key: index,
|
|
13289
|
+
span: layout[index]
|
|
13290
|
+
}, field());
|
|
13289
13291
|
}
|
|
13290
|
-
if (["Textarea", "TextInput", "PasswordInput", "NumberInput"].includes(component)) {
|
|
13291
|
-
const Component = components[component];
|
|
13292
|
-
return /*#__PURE__*/React.createElement(
|
|
13292
|
+
if (["Textarea", "TextInput", "PasswordInput", "NumberInput"].includes(field.component)) {
|
|
13293
|
+
const Component = components[field.component];
|
|
13294
|
+
return /*#__PURE__*/React.createElement(core.Grid.Col, {
|
|
13295
|
+
key: index,
|
|
13296
|
+
span: layout[index]
|
|
13297
|
+
}, /*#__PURE__*/React.createElement(Component, _extends({}, field.field, inputProps)), ";");
|
|
13293
13298
|
}
|
|
13294
13299
|
return null;
|
|
13295
13300
|
}));
|
|
@@ -13225,10 +13225,9 @@ const Drawer = _ref => {
|
|
|
13225
13225
|
}, page))));
|
|
13226
13226
|
};
|
|
13227
13227
|
|
|
13228
|
-
const _excluded$1 = ["
|
|
13228
|
+
const _excluded$1 = ["fields", "isEditable", "layout"];
|
|
13229
13229
|
const SimpleForm = _ref => {
|
|
13230
13230
|
let {
|
|
13231
|
-
component = "",
|
|
13232
13231
|
fields,
|
|
13233
13232
|
isEditable = true,
|
|
13234
13233
|
layout = []
|
|
@@ -13264,11 +13263,17 @@ const SimpleForm = _ref => {
|
|
|
13264
13263
|
})));
|
|
13265
13264
|
}
|
|
13266
13265
|
if (typeof field === "function") {
|
|
13267
|
-
return
|
|
13266
|
+
return /*#__PURE__*/React.createElement(Grid.Col, {
|
|
13267
|
+
key: index,
|
|
13268
|
+
span: layout[index]
|
|
13269
|
+
}, field());
|
|
13268
13270
|
}
|
|
13269
|
-
if (["Textarea", "TextInput", "PasswordInput", "NumberInput"].includes(component)) {
|
|
13270
|
-
const Component = components[component];
|
|
13271
|
-
return /*#__PURE__*/React.createElement(
|
|
13271
|
+
if (["Textarea", "TextInput", "PasswordInput", "NumberInput"].includes(field.component)) {
|
|
13272
|
+
const Component = components[field.component];
|
|
13273
|
+
return /*#__PURE__*/React.createElement(Grid.Col, {
|
|
13274
|
+
key: index,
|
|
13275
|
+
span: layout[index]
|
|
13276
|
+
}, /*#__PURE__*/React.createElement(Component, _extends({}, field.field, inputProps)), ";");
|
|
13272
13277
|
}
|
|
13273
13278
|
return null;
|
|
13274
13279
|
}));
|
|
@@ -1,8 +1,10 @@
|
|
|
1
1
|
import { NumberInputProps, PasswordInputProps, TextareaProps, TextInputProps } from "@mantine/core";
|
|
2
2
|
type FormInput = string | FormInputObject | Function;
|
|
3
|
-
export
|
|
3
|
+
export interface FormInputObject {
|
|
4
|
+
component: "Textarea" | "TextInput" | "PasswordInput" | "NumberInput";
|
|
5
|
+
field: TextInputProps | TextareaProps | PasswordInputProps | NumberInputProps;
|
|
6
|
+
}
|
|
4
7
|
export interface SimpleFormProps {
|
|
5
|
-
component?: "Textarea" | "TextInput" | "PasswordInput" | "NumberInput";
|
|
6
8
|
fields: FormInput[];
|
|
7
9
|
layout?: number[];
|
|
8
10
|
onSubmit?: (values: any) => void;
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@adiba-banking-cloud/backoffice",
|
|
3
3
|
"author": "TUROG Technologies",
|
|
4
|
-
"version": "0.0.
|
|
4
|
+
"version": "0.0.67",
|
|
5
5
|
"description": "An ADIBA component library for backoffice and dashboard applications",
|
|
6
6
|
"license": "ISC",
|
|
7
7
|
"main": "build/index.cjs.js",
|