react-crud-mobile 1.0.71 → 1.0.72

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