react-crud-mobile 1.0.619 → 1.0.621

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.
@@ -113,10 +113,20 @@ function UIChildren(props) {
113
113
  var getStyle = function getStyle(part) {
114
114
  var key = reactCrudUtils.Utils.nvl(part, 'root');
115
115
  var def = styles[key];
116
+ var css = {};
116
117
  if (!reactCrudUtils.Utils.isEmpty(props.style)) {
117
- console.log(props.style);
118
+ var _props$style;
119
+ if ((_props$style = props.style) != null && _props$style.push) {
120
+ reactCrudUtils.Utils.each(props.style, function (s) {
121
+ if (s) {
122
+ css = _extends({}, css, s);
123
+ }
124
+ });
125
+ } else {
126
+ css = _extends({}, props.style);
127
+ }
118
128
  }
119
- return _extends({}, def, scope.getStyle(part));
129
+ return _extends({}, def, css, scope.getStyle(part));
120
130
  };
121
131
  return /*#__PURE__*/jsxRuntime.jsx(jsxRuntime.Fragment, {
122
132
  children: /*#__PURE__*/jsxRuntime.jsx(reactNative.View, {
@@ -673,14 +683,21 @@ function UIListRow(props) {
673
683
  list: stylesList
674
684
  }) == null ? void 0 : _repeat$list[original.type];
675
685
  var name = "" + scope.key('row', index, '');
676
- var row = reactCrudUtils.ScopeUtils.create(_extends({}, original, {
677
- parent: scope,
678
- name: name,
679
- crud: scope.crud,
680
- index: index,
681
- type: 'row',
682
- data: item
683
- }));
686
+ var _useState = React.useState(reactCrudUtils.ScopeUtils.create(_extends({}, original, {
687
+ parent: scope,
688
+ name: name,
689
+ crud: scope.crud,
690
+ index: index,
691
+ type: 'row',
692
+ data: item
693
+ }))),
694
+ row = _useState[0];
695
+ var _useState2 = React.useState(0),
696
+ updateIndex = _useState2[0],
697
+ setUpdateIndex = _useState2[1];
698
+ row.update = function () {
699
+ setUpdateIndex(++updateIndex);
700
+ };
684
701
  var getRowStyle = function getRowStyle() {
685
702
  var css = row.getStyle('row', _extends({}, styles.row));
686
703
  if (cols > 0) {