react-crud-mobile 1.0.69 → 1.0.71

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