react-crud-mobile 1.0.69 → 1.0.70
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-crud-mobile.cjs.development.js +73 -71
- package/dist/react-crud-mobile.cjs.development.js.map +1 -1
- package/dist/react-crud-mobile.cjs.production.min.js +1 -1
- package/dist/react-crud-mobile.cjs.production.min.js.map +1 -1
- package/dist/react-crud-mobile.esm.js +73 -71
- package/dist/react-crud-mobile.esm.js.map +1 -1
- package/package.json +1 -1
- package/src/elements/UIElement.tsx +132 -130
|
@@ -1202,82 +1202,84 @@ function UIElement(props) {
|
|
|
1202
1202
|
children: /*#__PURE__*/jsxRuntime.jsx(reactNative.View, {
|
|
1203
1203
|
ref: ref,
|
|
1204
1204
|
style: getStyle(),
|
|
1205
|
-
children: /*#__PURE__*/jsxRuntime.
|
|
1205
|
+
children: /*#__PURE__*/jsxRuntime.jsx(reactNative.TouchableWithoutFeedback, {
|
|
1206
1206
|
onPress: reactNative.Keyboard.dismiss,
|
|
1207
1207
|
accessible: false,
|
|
1208
|
-
children:
|
|
1209
|
-
|
|
1210
|
-
|
|
1211
|
-
|
|
1212
|
-
|
|
1213
|
-
|
|
1214
|
-
|
|
1215
|
-
|
|
1216
|
-
|
|
1217
|
-
|
|
1218
|
-
|
|
1219
|
-
|
|
1220
|
-
|
|
1221
|
-
|
|
1222
|
-
|
|
1223
|
-
|
|
1224
|
-
|
|
1225
|
-
|
|
1226
|
-
|
|
1227
|
-
|
|
1228
|
-
|
|
1229
|
-
|
|
1230
|
-
|
|
1231
|
-
|
|
1232
|
-
|
|
1233
|
-
|
|
1234
|
-
|
|
1235
|
-
|
|
1236
|
-
|
|
1237
|
-
|
|
1238
|
-
|
|
1239
|
-
|
|
1240
|
-
|
|
1241
|
-
|
|
1242
|
-
|
|
1243
|
-
|
|
1244
|
-
|
|
1245
|
-
|
|
1246
|
-
|
|
1247
|
-
|
|
1248
|
-
|
|
1249
|
-
|
|
1250
|
-
|
|
1251
|
-
|
|
1252
|
-
|
|
1253
|
-
|
|
1254
|
-
|
|
1255
|
-
|
|
1256
|
-
|
|
1257
|
-
|
|
1258
|
-
|
|
1259
|
-
|
|
1260
|
-
|
|
1261
|
-
|
|
1262
|
-
|
|
1263
|
-
|
|
1264
|
-
|
|
1265
|
-
|
|
1266
|
-
|
|
1267
|
-
|
|
1208
|
+
children: /*#__PURE__*/jsxRuntime.jsxs(jsxRuntime.Fragment, {
|
|
1209
|
+
children: [isShowLabel() && /*#__PURE__*/jsxRuntime.jsx(reactNative.Text, {
|
|
1210
|
+
style: getStyle('label'),
|
|
1211
|
+
children: scope.getLabel()
|
|
1212
|
+
}), isShowInner() && /*#__PURE__*/jsxRuntime.jsxs(jsxRuntime.Fragment, {
|
|
1213
|
+
children: [/*#__PURE__*/jsxRuntime.jsxs(reactNative.View, {
|
|
1214
|
+
style: getStyle('inner'),
|
|
1215
|
+
children: [scope.is('type', 'button') && /*#__PURE__*/jsxRuntime.jsxs(Button, _extends({}, defaultsUI, {
|
|
1216
|
+
onClick: onClick,
|
|
1217
|
+
variant: scope.attr('variant', 'outlined'),
|
|
1218
|
+
children: [original.icon && /*#__PURE__*/jsxRuntime.jsx(CustomIcon, {}), original.label && /*#__PURE__*/jsxRuntime.jsx(reactNative.Text, {
|
|
1219
|
+
style: scope.getPart('label', 'button'),
|
|
1220
|
+
children: scope.getLabel()
|
|
1221
|
+
})]
|
|
1222
|
+
})), scope.is('type', 'icon') && /*#__PURE__*/jsxRuntime.jsx(Icon, _extends({}, defaultsUI, {
|
|
1223
|
+
onClick: onClick,
|
|
1224
|
+
variant: scope.attr('variant', 'outlined'),
|
|
1225
|
+
children: scope.getDisplayValue()
|
|
1226
|
+
})), scope.is('type', 'link') && /*#__PURE__*/jsxRuntime.jsxs(Link, _extends({}, defaultsUI, {
|
|
1227
|
+
onClick: onClick,
|
|
1228
|
+
variant: scope.attr('variant', 'outlined'),
|
|
1229
|
+
children: [original.icon && /*#__PURE__*/jsxRuntime.jsx(CustomIcon, {}), original.label && /*#__PURE__*/jsxRuntime.jsx(reactNative.Text, {
|
|
1230
|
+
style: scope.getPart('label', 'link'),
|
|
1231
|
+
children: scope.getLabel()
|
|
1232
|
+
})]
|
|
1233
|
+
})), scope.is('type', 'text', 'number', 'phone', 'postalCode', 'money', 'password', 'email') && /*#__PURE__*/jsxRuntime.jsx(Input, _extends({}, defaultsInput, defaultsUI, {
|
|
1234
|
+
InputProps: _extends({}, original.inputProps)
|
|
1235
|
+
})), scope.is('type', 'complete', 'autocomplete') && /*#__PURE__*/jsxRuntime.jsx(UIComplete, {
|
|
1236
|
+
scope: scope,
|
|
1237
|
+
defaultsInput: defaultsInput,
|
|
1238
|
+
defaultsUI: defaultsUI
|
|
1239
|
+
}), scope.is('type', 'checkbox', 'boolean', 'switch') && /*#__PURE__*/jsxRuntime.jsx(Switch, _extends({
|
|
1240
|
+
checked: isChecked()
|
|
1241
|
+
}, defaultsInput, {
|
|
1242
|
+
onChange: onCheck
|
|
1243
|
+
})), scope.is('type', 'select') && /*#__PURE__*/jsxRuntime.jsxs(Select, _extends({}, defaultsInput, defaultsUI, {
|
|
1244
|
+
value: scope.getSelectedValue(),
|
|
1245
|
+
children: [/*#__PURE__*/jsxRuntime.jsx(Option, {
|
|
1246
|
+
value: '',
|
|
1247
|
+
children: "Selecione"
|
|
1248
|
+
}), options.map(function (row, i) {
|
|
1249
|
+
return /*#__PURE__*/jsxRuntime.jsx(Option, {
|
|
1250
|
+
value: row.value,
|
|
1251
|
+
children: row.label
|
|
1252
|
+
}, 'i' + i);
|
|
1253
|
+
})]
|
|
1254
|
+
})), scope.is('type', 'radio') && /*#__PURE__*/jsxRuntime.jsx(Radio, _extends({}, defaultsInput, defaultsUI, {
|
|
1255
|
+
row: true,
|
|
1256
|
+
children: options.map(function (row, i) {
|
|
1257
|
+
return /*#__PURE__*/jsxRuntime.jsx(Option, {
|
|
1258
|
+
control: /*#__PURE__*/jsxRuntime.jsx(Radio, _extends({}, defaultsUI)),
|
|
1259
|
+
label: row.label,
|
|
1260
|
+
value: row.value
|
|
1261
|
+
}, 'i' + i);
|
|
1262
|
+
})
|
|
1263
|
+
})), scope.is('type', 'custom') && /*#__PURE__*/jsxRuntime.jsx(Custom, {}), scope.is('type', 'column') && /*#__PURE__*/jsxRuntime.jsxs(jsxRuntime.Fragment, {
|
|
1264
|
+
children: [scope.is('format', 'img') && /*#__PURE__*/jsxRuntime.jsx(reactNative.Image, {
|
|
1265
|
+
source: scope.getDisplayValue()
|
|
1266
|
+
}), scope.is('format', 'icon') && /*#__PURE__*/jsxRuntime.jsx(Icon, {
|
|
1267
|
+
className: scope.getDisplayValue()
|
|
1268
|
+
}), !scope.is('format', 'icon', 'img') && /*#__PURE__*/jsxRuntime.jsx(reactNative.Text, {
|
|
1269
|
+
children: scope.getDisplayValue()
|
|
1270
|
+
})]
|
|
1271
|
+
}), scope.is('type', 'output') && /*#__PURE__*/jsxRuntime.jsx(reactNative.Text, {
|
|
1268
1272
|
children: scope.getDisplayValue()
|
|
1269
1273
|
})]
|
|
1270
|
-
}),
|
|
1271
|
-
|
|
1274
|
+
}), error && /*#__PURE__*/jsxRuntime.jsx(reactNative.View, {
|
|
1275
|
+
style: getStyle('error'),
|
|
1276
|
+
children: error
|
|
1272
1277
|
})]
|
|
1273
|
-
}),
|
|
1274
|
-
|
|
1275
|
-
|
|
1276
|
-
})]
|
|
1277
|
-
})
|
|
1278
|
-
scope: scope,
|
|
1279
|
-
crud: crud
|
|
1280
|
-
}))]
|
|
1278
|
+
}), /*#__PURE__*/jsxRuntime.jsx(CurrentRouter, {}), !scope.is('type', 'card', 'tabs', 'grid', 'list', 'define', 'repeat') && /*#__PURE__*/jsxRuntime.jsx(UIChildren, _extends({}, props, {
|
|
1279
|
+
scope: scope,
|
|
1280
|
+
crud: crud
|
|
1281
|
+
}))]
|
|
1282
|
+
})
|
|
1281
1283
|
})
|
|
1282
1284
|
})
|
|
1283
1285
|
});
|