react-crud-mobile 1.0.8 → 1.1.2
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/package.json +23 -34
- package/dist/elements/UI.d.ts +0 -48
- package/dist/elements/UI.d.ts.map +0 -1
- package/dist/elements/UIChildren.d.ts +0 -15
- package/dist/elements/UIChildren.d.ts.map +0 -1
- package/dist/elements/UIComplete.d.ts +0 -4
- package/dist/elements/UIComplete.d.ts.map +0 -1
- package/dist/elements/UIElement.d.ts +0 -4
- package/dist/elements/UIElement.d.ts.map +0 -1
- package/dist/elements/UITag.d.ts +0 -8
- package/dist/elements/UITag.d.ts.map +0 -1
- package/dist/elements/card/ElCard.d.ts +0 -4
- package/dist/elements/card/ElCard.d.ts.map +0 -1
- package/dist/elements/charts/ElChart.d.ts +0 -4
- package/dist/elements/charts/ElChart.d.ts.map +0 -1
- package/dist/elements/core/AutoComplete.d.ts +0 -3
- package/dist/elements/core/AutoComplete.d.ts.map +0 -1
- package/dist/elements/core/Button.d.ts +0 -3
- package/dist/elements/core/Button.d.ts.map +0 -1
- package/dist/elements/core/Icon.d.ts +0 -3
- package/dist/elements/core/Icon.d.ts.map +0 -1
- package/dist/elements/core/Input.d.ts +0 -3
- package/dist/elements/core/Input.d.ts.map +0 -1
- package/dist/elements/core/Link.d.ts +0 -3
- package/dist/elements/core/Link.d.ts.map +0 -1
- package/dist/elements/core/Option.d.ts +0 -3
- package/dist/elements/core/Option.d.ts.map +0 -1
- package/dist/elements/core/Radio.d.ts +0 -3
- package/dist/elements/core/Radio.d.ts.map +0 -1
- package/dist/elements/core/Select.d.ts +0 -3
- package/dist/elements/core/Select.d.ts.map +0 -1
- package/dist/elements/core/Switch.d.ts +0 -3
- package/dist/elements/core/Switch.d.ts.map +0 -1
- package/dist/elements/grid/ElGrid.d.ts +0 -4
- package/dist/elements/grid/ElGrid.d.ts.map +0 -1
- package/dist/elements/grid/ElGridBotom.d.ts +0 -4
- package/dist/elements/grid/ElGridBotom.d.ts.map +0 -1
- package/dist/elements/grid/ElGridCheck.d.ts +0 -4
- package/dist/elements/grid/ElGridCheck.d.ts.map +0 -1
- package/dist/elements/grid/ElGridColumn.d.ts +0 -12
- package/dist/elements/grid/ElGridColumn.d.ts.map +0 -1
- package/dist/elements/grid/ElGridFilter.d.ts +0 -4
- package/dist/elements/grid/ElGridFilter.d.ts.map +0 -1
- package/dist/elements/grid/ElGridPaginator.d.ts +0 -13
- package/dist/elements/grid/ElGridPaginator.d.ts.map +0 -1
- package/dist/elements/grid/ElGridRow.d.ts +0 -4
- package/dist/elements/grid/ElGridRow.d.ts.map +0 -1
- package/dist/elements/grid/ElGridTop.d.ts +0 -4
- package/dist/elements/grid/ElGridTop.d.ts.map +0 -1
- package/dist/elements/grid/ElInclude.d.ts +0 -4
- package/dist/elements/grid/ElInclude.d.ts.map +0 -1
- package/dist/elements/grid/ElLabel.d.ts +0 -8
- package/dist/elements/grid/ElLabel.d.ts.map +0 -1
- package/dist/elements/grid/ElRepeat.d.ts +0 -4
- package/dist/elements/grid/ElRepeat.d.ts.map +0 -1
- package/dist/elements/grid/ElRepeatRow.d.ts +0 -4
- package/dist/elements/grid/ElRepeatRow.d.ts.map +0 -1
- package/dist/elements/index.d.ts +0 -2
- package/dist/elements/index.d.ts.map +0 -1
- package/dist/elements/tabs/ElTabs.d.ts +0 -4
- package/dist/elements/tabs/ElTabs.d.ts.map +0 -1
- package/dist/index.d.ts.map +0 -1
- package/dist/react-crud-mobile.cjs.development.js +0 -1260
- package/dist/react-crud-mobile.cjs.development.js.map +0 -1
- package/dist/react-crud-mobile.cjs.production.min.js +0 -2
- package/dist/react-crud-mobile.cjs.production.min.js.map +0 -1
- package/dist/react-crud-mobile.esm.js +0 -1253
- package/dist/react-crud-mobile.esm.js.map +0 -1
|
@@ -1,1253 +0,0 @@
|
|
|
1
|
-
import React$1, { useState, useRef, useEffect, useLayoutEffect } from 'react';
|
|
2
|
-
import { Utils, ScopeUtils, Scope, CrudUtils, ComponentUtils, HtmlUtils } from 'react-crud-utils';
|
|
3
|
-
import Ionicons from '@expo/vector-icons/Ionicons';
|
|
4
|
-
import { TouchableOpacity, Text, Linking } from 'react-native';
|
|
5
|
-
|
|
6
|
-
function _extends() {
|
|
7
|
-
return _extends = Object.assign ? Object.assign.bind() : function (n) {
|
|
8
|
-
for (var e = 1; e < arguments.length; e++) {
|
|
9
|
-
var t = arguments[e];
|
|
10
|
-
for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]);
|
|
11
|
-
}
|
|
12
|
-
return n;
|
|
13
|
-
}, _extends.apply(null, arguments);
|
|
14
|
-
}
|
|
15
|
-
function _objectWithoutPropertiesLoose(r, e) {
|
|
16
|
-
if (null == r) return {};
|
|
17
|
-
var t = {};
|
|
18
|
-
for (var n in r) if ({}.hasOwnProperty.call(r, n)) {
|
|
19
|
-
if (-1 !== e.indexOf(n)) continue;
|
|
20
|
-
t[n] = r[n];
|
|
21
|
-
}
|
|
22
|
-
return t;
|
|
23
|
-
}
|
|
24
|
-
|
|
25
|
-
function UIChildren(props) {
|
|
26
|
-
var _useState = useState(Utils.nvl(props.scope, ScopeUtils.create(props))),
|
|
27
|
-
scope = _useState[0];
|
|
28
|
-
var crud = Utils.nvl(props.crud, scope.crud);
|
|
29
|
-
var validateScope = Utils.nvl(props.validateScope, "global");
|
|
30
|
-
var name = Utils.nvl(props.part, "child");
|
|
31
|
-
if (scope.isInput()) {
|
|
32
|
-
return /*#__PURE__*/React$1.createElement(React$1.Fragment, null);
|
|
33
|
-
}
|
|
34
|
-
var Paint = function Paint(_ref) {
|
|
35
|
-
var child = _ref.child;
|
|
36
|
-
if (!child) {
|
|
37
|
-
return /*#__PURE__*/React$1.createElement(React$1.Fragment, null);
|
|
38
|
-
}
|
|
39
|
-
if (typeof child === "string") {
|
|
40
|
-
return /*#__PURE__*/React$1.createElement(React$1.Fragment, null, child);
|
|
41
|
-
}
|
|
42
|
-
var Custom = child.type;
|
|
43
|
-
var pps = _extends({}, child.props);
|
|
44
|
-
delete pps.children;
|
|
45
|
-
if (typeof Custom === "string") {
|
|
46
|
-
if (Utils.isEmpty(child.props.children)) {
|
|
47
|
-
return /*#__PURE__*/React$1.createElement(Custom, pps);
|
|
48
|
-
}
|
|
49
|
-
return /*#__PURE__*/React$1.createElement(Custom, pps, /*#__PURE__*/React$1.createElement(UIChildren, _extends({
|
|
50
|
-
"transient": true,
|
|
51
|
-
validateScope: validateScope
|
|
52
|
-
}, child.props, {
|
|
53
|
-
scope: scope,
|
|
54
|
-
crud: crud
|
|
55
|
-
})));
|
|
56
|
-
} else if (typeof Custom === "function") {
|
|
57
|
-
return /*#__PURE__*/React$1.createElement(Custom, _extends({
|
|
58
|
-
validateScope: validateScope
|
|
59
|
-
}, child.props, {
|
|
60
|
-
parent: scope,
|
|
61
|
-
crud: crud
|
|
62
|
-
}));
|
|
63
|
-
}
|
|
64
|
-
if (!Utils.isEmpty(child.props.children)) {
|
|
65
|
-
return /*#__PURE__*/React$1.createElement(UIChildren, _extends({
|
|
66
|
-
validateScope: validateScope
|
|
67
|
-
}, child.props, {
|
|
68
|
-
scope: scope,
|
|
69
|
-
crud: crud,
|
|
70
|
-
"transient": true
|
|
71
|
-
}));
|
|
72
|
-
}
|
|
73
|
-
return /*#__PURE__*/React$1.createElement(React$1.Fragment, null);
|
|
74
|
-
};
|
|
75
|
-
var Draw = function Draw() {
|
|
76
|
-
if (props.elements) {
|
|
77
|
-
return /*#__PURE__*/React$1.createElement(React$1.Fragment, null, Object.entries(props.elements).map(function (t, k) {
|
|
78
|
-
return /*#__PURE__*/React$1.createElement(UIElement, _extends({
|
|
79
|
-
crud: crud
|
|
80
|
-
}, t[1]));
|
|
81
|
-
}));
|
|
82
|
-
}
|
|
83
|
-
return /*#__PURE__*/React$1.createElement(React$1.Fragment, null, React$1.Children.map(props.children, function (child) {
|
|
84
|
-
return /*#__PURE__*/React$1.createElement(Paint, {
|
|
85
|
-
child: child
|
|
86
|
-
});
|
|
87
|
-
}));
|
|
88
|
-
};
|
|
89
|
-
if (props["transient"]) {
|
|
90
|
-
return /*#__PURE__*/React$1.createElement(Draw, null);
|
|
91
|
-
}
|
|
92
|
-
if (Utils.isEmpty(props.children) && Utils.isEmpty(props.elements)) {
|
|
93
|
-
return /*#__PURE__*/React$1.createElement(React$1.Fragment, null);
|
|
94
|
-
}
|
|
95
|
-
return /*#__PURE__*/React$1.createElement(React$1.Fragment, null, /*#__PURE__*/React$1.createElement("div", _extends({
|
|
96
|
-
className: scope.getStyleClass(name),
|
|
97
|
-
style: scope.getStyle(name)
|
|
98
|
-
}, props.childProps), /*#__PURE__*/React$1.createElement(Draw, null)));
|
|
99
|
-
}
|
|
100
|
-
|
|
101
|
-
function ElGridColumn(props) {
|
|
102
|
-
var _props$column;
|
|
103
|
-
var scope = props.scope;
|
|
104
|
-
var col = Utils.nvl((_props$column = props.column) == null ? void 0 : _props$column.props, {});
|
|
105
|
-
var _useState = useState(new Scope(col, scope, scope.crud)),
|
|
106
|
-
colScope = _useState[0];
|
|
107
|
-
var getStyleClass = function getStyleClass() {
|
|
108
|
-
var def = Utils.nvl(props.styleClass, "");
|
|
109
|
-
return "ui-grid-col " + def + " " + colScope.getStyleClass("column");
|
|
110
|
-
};
|
|
111
|
-
return /*#__PURE__*/React$1.createElement("td", {
|
|
112
|
-
className: getStyleClass(),
|
|
113
|
-
style: colScope.getStyle("column"),
|
|
114
|
-
colSpan: props.colspan
|
|
115
|
-
}, /*#__PURE__*/React$1.createElement(UIChildren, {
|
|
116
|
-
scope: scope
|
|
117
|
-
}, props.children));
|
|
118
|
-
}
|
|
119
|
-
|
|
120
|
-
function ElGridCheck(_ref) {
|
|
121
|
-
var scope = _ref.scope,
|
|
122
|
-
value = _ref.value,
|
|
123
|
-
rowIndex = _ref.rowIndex;
|
|
124
|
-
var original = scope.original;
|
|
125
|
-
var _useState = useState(0),
|
|
126
|
-
index = _useState[0],
|
|
127
|
-
setIndex = _useState[1];
|
|
128
|
-
var key = scope.key('check', rowIndex, 's', index);
|
|
129
|
-
var check = function check() {
|
|
130
|
-
var cs = scope.crudSearch;
|
|
131
|
-
if (cs) {
|
|
132
|
-
if (!cs.selecteds) {
|
|
133
|
-
cs.selecteds = {};
|
|
134
|
-
}
|
|
135
|
-
var itemValue = Utils.nvl(original.itemValue, 'id');
|
|
136
|
-
var _key = value[itemValue];
|
|
137
|
-
if (typeof _key !== 'undefined') {
|
|
138
|
-
if (typeof cs.selecteds[_key] === 'undefined') {
|
|
139
|
-
cs.selecteds[_key] = value;
|
|
140
|
-
} else {
|
|
141
|
-
delete cs.selecteds[_key];
|
|
142
|
-
}
|
|
143
|
-
}
|
|
144
|
-
}
|
|
145
|
-
setIndex(++index);
|
|
146
|
-
};
|
|
147
|
-
var getCheckIcon = function getCheckIcon() {
|
|
148
|
-
if (isChecked()) {
|
|
149
|
-
return /*#__PURE__*/React.createElement(Ionicons, null);
|
|
150
|
-
}
|
|
151
|
-
return /*#__PURE__*/React.createElement(Ionicons, null);
|
|
152
|
-
};
|
|
153
|
-
var isChecked = function isChecked() {
|
|
154
|
-
var cs = scope.crudSearch;
|
|
155
|
-
if (cs) {
|
|
156
|
-
if (!cs.selecteds) {
|
|
157
|
-
cs.selecteds = {};
|
|
158
|
-
}
|
|
159
|
-
var itemValue = Utils.nvl(original.itemValue, 'id');
|
|
160
|
-
var _key2 = value[itemValue];
|
|
161
|
-
if (typeof _key2 !== 'undefined') {
|
|
162
|
-
if (typeof cs.selecteds[_key2] !== 'undefined') {
|
|
163
|
-
return true;
|
|
164
|
-
}
|
|
165
|
-
}
|
|
166
|
-
}
|
|
167
|
-
return false;
|
|
168
|
-
};
|
|
169
|
-
return /*#__PURE__*/React.createElement(UI.Button, {
|
|
170
|
-
key: key,
|
|
171
|
-
icon: getCheckIcon(),
|
|
172
|
-
click: {
|
|
173
|
-
action: check
|
|
174
|
-
}
|
|
175
|
-
});
|
|
176
|
-
}
|
|
177
|
-
|
|
178
|
-
function ElGridRow(props) {
|
|
179
|
-
var expansion = props.expansion;
|
|
180
|
-
var value = props.value;
|
|
181
|
-
var scope = props.scope;
|
|
182
|
-
var index = props.index;
|
|
183
|
-
var original = scope.original;
|
|
184
|
-
var row = CrudUtils.create('row', {
|
|
185
|
-
index: index,
|
|
186
|
-
row: true,
|
|
187
|
-
itemVar: scope.original.itemVar,
|
|
188
|
-
parent: scope.crudSearch,
|
|
189
|
-
data: value
|
|
190
|
-
});
|
|
191
|
-
var _useState = useState(false),
|
|
192
|
-
expanded = _useState[0],
|
|
193
|
-
setExpanded = _useState[1];
|
|
194
|
-
var _useState2 = useState(new Scope(scope.original, scope, row)),
|
|
195
|
-
rowScope = _useState2[0];
|
|
196
|
-
var getRowStyleClass = function getRowStyleClass() {
|
|
197
|
-
var s = 'ui-grid-row';
|
|
198
|
-
s = s + ' ui-grid-row-';
|
|
199
|
-
if (index % 2 == 0) {
|
|
200
|
-
s = s + 'even';
|
|
201
|
-
} else {
|
|
202
|
-
s = s + 'odd';
|
|
203
|
-
}
|
|
204
|
-
return s;
|
|
205
|
-
};
|
|
206
|
-
var cols = ComponentUtils.getChild(props, 'Column');
|
|
207
|
-
var colspan = cols.length;
|
|
208
|
-
var ExpansionStatus = function ExpansionStatus() {
|
|
209
|
-
return /*#__PURE__*/React$1.createElement(React$1.Fragment, null, !expanded && /*#__PURE__*/React$1.createElement(Ionicons, null), expanded && /*#__PURE__*/React$1.createElement(Ionicons, null));
|
|
210
|
-
};
|
|
211
|
-
var onExpansion = function onExpansion() {
|
|
212
|
-
setExpanded(!expanded);
|
|
213
|
-
};
|
|
214
|
-
var hasExpansion = !Utils.isEmpty(expansion);
|
|
215
|
-
var multiple = original.multiple;
|
|
216
|
-
if (hasExpansion) colspan++;
|
|
217
|
-
if (multiple) colspan++;
|
|
218
|
-
return /*#__PURE__*/React$1.createElement(React$1.Fragment, null, /*#__PURE__*/React$1.createElement("tr", {
|
|
219
|
-
className: getRowStyleClass(),
|
|
220
|
-
style: rowScope.getStyle('row')
|
|
221
|
-
}, hasExpansion && /*#__PURE__*/React$1.createElement(ElGridColumn, {
|
|
222
|
-
key: 'r' + index + 'e',
|
|
223
|
-
scope: rowScope,
|
|
224
|
-
styleClass: "ui-click ui-icon-only ui-expansion"
|
|
225
|
-
}, /*#__PURE__*/React$1.createElement(UI.Button, {
|
|
226
|
-
icon: /*#__PURE__*/React$1.createElement(ExpansionStatus, null),
|
|
227
|
-
click: onExpansion
|
|
228
|
-
})), multiple && /*#__PURE__*/React$1.createElement(ElGridColumn, {
|
|
229
|
-
key: 'r' + index + 'c',
|
|
230
|
-
scope: rowScope,
|
|
231
|
-
styleClass: "ui-click ui-icon-only ui-multiple"
|
|
232
|
-
}, /*#__PURE__*/React$1.createElement(ElGridCheck, {
|
|
233
|
-
key: 'check-' + index,
|
|
234
|
-
scope: scope,
|
|
235
|
-
value: value,
|
|
236
|
-
rowIndex: index
|
|
237
|
-
})), cols.map(function (col, i) {
|
|
238
|
-
return /*#__PURE__*/React$1.createElement(ElGridColumn, {
|
|
239
|
-
column: col,
|
|
240
|
-
key: 'r' + index + 'c' + i,
|
|
241
|
-
scope: rowScope
|
|
242
|
-
}, col);
|
|
243
|
-
})), expanded && /*#__PURE__*/React$1.createElement("tr", {
|
|
244
|
-
className: getRowStyleClass(),
|
|
245
|
-
style: rowScope.getStyle('row')
|
|
246
|
-
}, /*#__PURE__*/React$1.createElement(ElGridColumn, {
|
|
247
|
-
key: 'r' + index + '-expanded',
|
|
248
|
-
scope: rowScope,
|
|
249
|
-
colspan: colspan
|
|
250
|
-
}, /*#__PURE__*/React$1.createElement(UIChildren, _extends({}, props, {
|
|
251
|
-
crud: row
|
|
252
|
-
}), expansion))));
|
|
253
|
-
}
|
|
254
|
-
|
|
255
|
-
function ElGridPaginator(_ref) {
|
|
256
|
-
var scope = _ref.scope,
|
|
257
|
-
next = _ref.next,
|
|
258
|
-
previous = _ref.previous,
|
|
259
|
-
first = _ref.first,
|
|
260
|
-
size = _ref.size,
|
|
261
|
-
last = _ref.last,
|
|
262
|
-
position = _ref.position;
|
|
263
|
-
var _useState = useState([10, 20, 30, 50, 100, 200, 500]),
|
|
264
|
-
sizes = _useState[0];
|
|
265
|
-
var defaults = {
|
|
266
|
-
crud: scope.crudSearch,
|
|
267
|
-
owner: scope,
|
|
268
|
-
variant: scope.attr('variant', 'text')
|
|
269
|
-
};
|
|
270
|
-
var paginatorPosition = Utils.nvl(scope.original.paginatorPosition, 'bottom');
|
|
271
|
-
if (paginatorPosition !== position) {
|
|
272
|
-
return /*#__PURE__*/React$1.createElement(React$1.Fragment, null);
|
|
273
|
-
}
|
|
274
|
-
return /*#__PURE__*/React$1.createElement(React$1.Fragment, null, /*#__PURE__*/React$1.createElement(UI.Button, _extends({
|
|
275
|
-
field: "first",
|
|
276
|
-
space: 0,
|
|
277
|
-
rendered: first !== false
|
|
278
|
-
}, defaults, {
|
|
279
|
-
click: "first",
|
|
280
|
-
icon: /*#__PURE__*/React$1.createElement(Ionicons, null)
|
|
281
|
-
})), /*#__PURE__*/React$1.createElement(UI.Button, _extends({
|
|
282
|
-
field: "previous",
|
|
283
|
-
space: 0,
|
|
284
|
-
rendered: previous !== false,
|
|
285
|
-
click: "previous"
|
|
286
|
-
}, defaults, {
|
|
287
|
-
icon: /*#__PURE__*/React$1.createElement(Ionicons, null)
|
|
288
|
-
})), /*#__PURE__*/React$1.createElement(UI.Select, _extends({
|
|
289
|
-
field: "size",
|
|
290
|
-
space: 0,
|
|
291
|
-
rendered: size !== false,
|
|
292
|
-
"default": 10
|
|
293
|
-
}, defaults, {
|
|
294
|
-
data: sizes,
|
|
295
|
-
change: "search"
|
|
296
|
-
})), /*#__PURE__*/React$1.createElement(UI.Button, _extends({
|
|
297
|
-
field: "next",
|
|
298
|
-
space: 0,
|
|
299
|
-
rendered: next !== false
|
|
300
|
-
}, defaults, {
|
|
301
|
-
click: "next",
|
|
302
|
-
icon: /*#__PURE__*/React$1.createElement(Ionicons, null)
|
|
303
|
-
})), /*#__PURE__*/React$1.createElement(UI.Button, _extends({
|
|
304
|
-
field: "last",
|
|
305
|
-
space: 0,
|
|
306
|
-
rendered: last !== false
|
|
307
|
-
}, defaults, {
|
|
308
|
-
click: "last",
|
|
309
|
-
icon: /*#__PURE__*/React$1.createElement(Ionicons, null)
|
|
310
|
-
})));
|
|
311
|
-
}
|
|
312
|
-
|
|
313
|
-
function ElGridTop(props) {
|
|
314
|
-
var scope = props.scope;
|
|
315
|
-
return /*#__PURE__*/React$1.createElement(React$1.Fragment, null, /*#__PURE__*/React$1.createElement(UI.Output, {
|
|
316
|
-
styleClass: "ui-grid-top"
|
|
317
|
-
}, /*#__PURE__*/React$1.createElement(UI.Output, {
|
|
318
|
-
field: "search",
|
|
319
|
-
position: "left",
|
|
320
|
-
space: 4
|
|
321
|
-
}, /*#__PURE__*/React$1.createElement(UI.Include, _extends({}, props, {
|
|
322
|
-
"transient": true,
|
|
323
|
-
name: "top",
|
|
324
|
-
position: "left"
|
|
325
|
-
})), /*#__PURE__*/React$1.createElement(UI.Text, {
|
|
326
|
-
field: "query",
|
|
327
|
-
space: 0,
|
|
328
|
-
label: "Pesquisar",
|
|
329
|
-
placeholder: scope.attr('placeholder', 'Pesquisar')
|
|
330
|
-
}, /*#__PURE__*/React$1.createElement(UI.Define, {
|
|
331
|
-
name: "right"
|
|
332
|
-
}, /*#__PURE__*/React$1.createElement(UI.Button, {
|
|
333
|
-
field: "search",
|
|
334
|
-
icon: /*#__PURE__*/React$1.createElement(Ionicons, null),
|
|
335
|
-
space: 0,
|
|
336
|
-
variant: "text",
|
|
337
|
-
owner: scope,
|
|
338
|
-
click: 'search'
|
|
339
|
-
})))), /*#__PURE__*/React$1.createElement(UI.Output, {
|
|
340
|
-
position: "right",
|
|
341
|
-
space: 8
|
|
342
|
-
}, /*#__PURE__*/React$1.createElement(UI.Include, _extends({}, props, {
|
|
343
|
-
"transient": true,
|
|
344
|
-
name: "top",
|
|
345
|
-
position: "right"
|
|
346
|
-
})), /*#__PURE__*/React$1.createElement(ElGridPaginator, {
|
|
347
|
-
scope: scope,
|
|
348
|
-
last: false,
|
|
349
|
-
first: false,
|
|
350
|
-
position: "top"
|
|
351
|
-
}))));
|
|
352
|
-
}
|
|
353
|
-
|
|
354
|
-
function ElGridFilter(props) {
|
|
355
|
-
return /*#__PURE__*/React.createElement(React.Fragment, null);
|
|
356
|
-
}
|
|
357
|
-
|
|
358
|
-
function ElGridBotom(props) {
|
|
359
|
-
var scope = props.scope;
|
|
360
|
-
var children = props.children;
|
|
361
|
-
return /*#__PURE__*/React$1.createElement("div", {
|
|
362
|
-
className: "ui-grid-bottom"
|
|
363
|
-
}, /*#__PURE__*/React$1.createElement("div", {
|
|
364
|
-
className: "ui-grid-bottom-inner"
|
|
365
|
-
}, /*#__PURE__*/React$1.createElement(UI.Include, _extends({}, props, {
|
|
366
|
-
"transient": true,
|
|
367
|
-
name: "bottomLeft"
|
|
368
|
-
})), /*#__PURE__*/React$1.createElement(ElGridPaginator, {
|
|
369
|
-
scope: scope,
|
|
370
|
-
position: "bottom"
|
|
371
|
-
}, children), /*#__PURE__*/React$1.createElement(UI.Include, _extends({}, props, {
|
|
372
|
-
"transient": true,
|
|
373
|
-
name: "bottomRight"
|
|
374
|
-
}))));
|
|
375
|
-
}
|
|
376
|
-
|
|
377
|
-
function Icon(props) {
|
|
378
|
-
var handlePress = function handlePress() {
|
|
379
|
-
Linking.openURL('https://reactnative.dev/');
|
|
380
|
-
};
|
|
381
|
-
return /*#__PURE__*/React$1.createElement(TouchableOpacity, {
|
|
382
|
-
onPress: handlePress
|
|
383
|
-
}, /*#__PURE__*/React$1.createElement(Text, {
|
|
384
|
-
style: styles.link
|
|
385
|
-
}, "Clique aqui para acessar o React Native"));
|
|
386
|
-
}
|
|
387
|
-
var styles = {
|
|
388
|
-
link: {}
|
|
389
|
-
};
|
|
390
|
-
|
|
391
|
-
function ElLabel(props) {
|
|
392
|
-
var scope = props.scope;
|
|
393
|
-
var original = scope.original;
|
|
394
|
-
var defaultPos = 'outside';
|
|
395
|
-
var elPos = Utils.nvl(original.labelPos, defaultPos);
|
|
396
|
-
var lbPos = Utils.nvl(props.position, defaultPos);
|
|
397
|
-
if (elPos != lbPos) {
|
|
398
|
-
return /*#__PURE__*/React$1.createElement(React$1.Fragment, null);
|
|
399
|
-
}
|
|
400
|
-
var CustomIcon = function CustomIcon() {
|
|
401
|
-
if (!scope.is('type', 'list', 'grid')) {
|
|
402
|
-
return /*#__PURE__*/React$1.createElement(React$1.Fragment, null);
|
|
403
|
-
}
|
|
404
|
-
if (typeof original.icon === 'string') {
|
|
405
|
-
return /*#__PURE__*/React$1.createElement("div", {
|
|
406
|
-
className: "ui-label-icon"
|
|
407
|
-
}, /*#__PURE__*/React$1.createElement(Icon, {
|
|
408
|
-
className: scope.getIcon()
|
|
409
|
-
}));
|
|
410
|
-
}
|
|
411
|
-
return /*#__PURE__*/React$1.createElement("div", {
|
|
412
|
-
className: "ui-label-icon"
|
|
413
|
-
}, original.icon);
|
|
414
|
-
};
|
|
415
|
-
var label = scope.getLabel();
|
|
416
|
-
return /*#__PURE__*/React$1.createElement("div", {
|
|
417
|
-
className: 'ui-label ui-label-' + lbPos
|
|
418
|
-
}, /*#__PURE__*/React$1.createElement("div", {
|
|
419
|
-
className: "ui-label-left"
|
|
420
|
-
}, /*#__PURE__*/React$1.createElement(UI.Include, _extends({}, props, {
|
|
421
|
-
"transient": true,
|
|
422
|
-
name: "label",
|
|
423
|
-
position: "left"
|
|
424
|
-
})), /*#__PURE__*/React$1.createElement(CustomIcon, null), label && /*#__PURE__*/React$1.createElement("div", {
|
|
425
|
-
className: "ui-label-value"
|
|
426
|
-
}, label)), /*#__PURE__*/React$1.createElement("div", {
|
|
427
|
-
className: "ui-label-right"
|
|
428
|
-
}, /*#__PURE__*/React$1.createElement(UI.Include, _extends({}, props, {
|
|
429
|
-
"transient": true,
|
|
430
|
-
name: "label",
|
|
431
|
-
position: "right"
|
|
432
|
-
}))));
|
|
433
|
-
}
|
|
434
|
-
|
|
435
|
-
function ElGrid(props) {
|
|
436
|
-
var scope = props.scope;
|
|
437
|
-
var items = scope.getItems();
|
|
438
|
-
var expansion = ComponentUtils.getDefine(props, 'expansion');
|
|
439
|
-
return /*#__PURE__*/React$1.createElement("div", {
|
|
440
|
-
className: scope.getStyleClass('inner'),
|
|
441
|
-
style: scope.getStyle('inner')
|
|
442
|
-
}, /*#__PURE__*/React$1.createElement(ElLabel, _extends({}, props, {
|
|
443
|
-
scope: scope,
|
|
444
|
-
position: "outside"
|
|
445
|
-
})), /*#__PURE__*/React$1.createElement("div", {
|
|
446
|
-
className: scope.getStyleClass('child'),
|
|
447
|
-
style: scope.getStyle('child')
|
|
448
|
-
}, /*#__PURE__*/React$1.createElement(ElLabel, _extends({}, props, {
|
|
449
|
-
scope: scope,
|
|
450
|
-
position: "inside"
|
|
451
|
-
})), /*#__PURE__*/React$1.createElement("div", {
|
|
452
|
-
className: "ui-data"
|
|
453
|
-
}, /*#__PURE__*/React$1.createElement(ElGridTop, _extends({}, props, {
|
|
454
|
-
scope: scope
|
|
455
|
-
})), /*#__PURE__*/React$1.createElement(ElGridFilter, {
|
|
456
|
-
scope: scope
|
|
457
|
-
}), /*#__PURE__*/React$1.createElement("div", {
|
|
458
|
-
className: "ui-grid-data"
|
|
459
|
-
}, /*#__PURE__*/React$1.createElement("table", {
|
|
460
|
-
className: "ui-grid ui-table"
|
|
461
|
-
}, /*#__PURE__*/React$1.createElement("tbody", null, items.map(function (row, i) {
|
|
462
|
-
return /*#__PURE__*/React$1.createElement(ElGridRow, _extends({}, props, {
|
|
463
|
-
expansion: expansion,
|
|
464
|
-
key: 'r' + i,
|
|
465
|
-
scope: scope,
|
|
466
|
-
value: row,
|
|
467
|
-
index: i
|
|
468
|
-
}));
|
|
469
|
-
}))))), /*#__PURE__*/React$1.createElement(ElGridBotom, _extends({}, props, {
|
|
470
|
-
scope: scope
|
|
471
|
-
}))));
|
|
472
|
-
}
|
|
473
|
-
|
|
474
|
-
function ElInclude(props) {
|
|
475
|
-
if (props.rendered === false) {
|
|
476
|
-
return /*#__PURE__*/React.createElement(React.Fragment, null);
|
|
477
|
-
}
|
|
478
|
-
var includes = ComponentUtils.getDefine(props, props.name, props.position);
|
|
479
|
-
if (Utils.isEmpty(includes)) {
|
|
480
|
-
includes = props["default"];
|
|
481
|
-
}
|
|
482
|
-
if (!Utils.isEmpty(includes)) {
|
|
483
|
-
var Aux = function Aux(tagProp) {
|
|
484
|
-
var Tag = props.tag;
|
|
485
|
-
if (!Utils.isEmpty(Tag)) {
|
|
486
|
-
return /*#__PURE__*/React.createElement(Tag, tagProp, tagProp.children);
|
|
487
|
-
}
|
|
488
|
-
return /*#__PURE__*/React.createElement(React.Fragment, null, tagProp.children);
|
|
489
|
-
};
|
|
490
|
-
return /*#__PURE__*/React.createElement(Aux, props.tagProps, /*#__PURE__*/React.createElement(UIChildren, _extends({
|
|
491
|
-
"transient": true
|
|
492
|
-
}, props, {
|
|
493
|
-
scope: props.scope,
|
|
494
|
-
crud: props.crud,
|
|
495
|
-
part: props.name
|
|
496
|
-
}), includes));
|
|
497
|
-
}
|
|
498
|
-
return /*#__PURE__*/React.createElement(React.Fragment, null, includes);
|
|
499
|
-
}
|
|
500
|
-
|
|
501
|
-
function ElCard(props) {
|
|
502
|
-
var scope = props.scope;
|
|
503
|
-
return /*#__PURE__*/React$1.createElement("div", {
|
|
504
|
-
className: scope.getStyleClass('inner'),
|
|
505
|
-
style: scope.getStyle('inner')
|
|
506
|
-
}, /*#__PURE__*/React$1.createElement(ElLabel, _extends({}, props, {
|
|
507
|
-
scope: scope
|
|
508
|
-
})), /*#__PURE__*/React$1.createElement(UIChildren, _extends({}, props, {
|
|
509
|
-
scope: scope
|
|
510
|
-
})), /*#__PURE__*/React$1.createElement("div", {
|
|
511
|
-
className: scope.getStyleClass('bottom'),
|
|
512
|
-
style: scope.getStyle('bottom')
|
|
513
|
-
}, /*#__PURE__*/React$1.createElement(ElInclude, _extends({}, props, {
|
|
514
|
-
scope: scope,
|
|
515
|
-
name: "bottom"
|
|
516
|
-
}))));
|
|
517
|
-
}
|
|
518
|
-
|
|
519
|
-
function ElTabs(props) {
|
|
520
|
-
var scope = props.scope;
|
|
521
|
-
var _useState = useState(0),
|
|
522
|
-
selectedIndex = _useState[0],
|
|
523
|
-
setSelectedIndex = _useState[1];
|
|
524
|
-
var element = scope.original;
|
|
525
|
-
var items = scope.getItems();
|
|
526
|
-
var counter = 0;
|
|
527
|
-
var tabs = [];
|
|
528
|
-
var _useState2 = useState(null),
|
|
529
|
-
selected = _useState2[0],
|
|
530
|
-
setSelected = _useState2[1];
|
|
531
|
-
var onChangeTab = function onChangeTab(tab, validate) {
|
|
532
|
-
if (validate === void 0) {
|
|
533
|
-
validate = true;
|
|
534
|
-
}
|
|
535
|
-
if (tab) {
|
|
536
|
-
scope.execute({
|
|
537
|
-
event: {
|
|
538
|
-
validate: validate,
|
|
539
|
-
validateScope: element.validateScope,
|
|
540
|
-
action: function action() {
|
|
541
|
-
scope.changeValue(tab.data);
|
|
542
|
-
selected = tab;
|
|
543
|
-
selectedIndex = tab.index;
|
|
544
|
-
setSelectedIndex(selectedIndex);
|
|
545
|
-
setSelected(tab);
|
|
546
|
-
}
|
|
547
|
-
}
|
|
548
|
-
});
|
|
549
|
-
}
|
|
550
|
-
};
|
|
551
|
-
var getStyleClass = function getStyleClass(t) {
|
|
552
|
-
var _selected;
|
|
553
|
-
var s = 'ui-tabs-item ui-click';
|
|
554
|
-
if (((_selected = selected) == null ? void 0 : _selected.index) === t.index) {
|
|
555
|
-
s = s + ' ui-tab-selected';
|
|
556
|
-
}
|
|
557
|
-
return s;
|
|
558
|
-
};
|
|
559
|
-
var addTab = function addTab(child, item) {
|
|
560
|
-
var original = _extends({}, child.props);
|
|
561
|
-
if (!item) {
|
|
562
|
-
item = scope.crud.data;
|
|
563
|
-
}
|
|
564
|
-
var crudTab = CrudUtils.create('tabs', {
|
|
565
|
-
data: item,
|
|
566
|
-
changed: item,
|
|
567
|
-
parent: scope.crud
|
|
568
|
-
});
|
|
569
|
-
var element = Utils.resolve(original, crudTab);
|
|
570
|
-
if (element.rendered === false) {
|
|
571
|
-
return;
|
|
572
|
-
}
|
|
573
|
-
tabs.push(_extends({}, element, {
|
|
574
|
-
child: child,
|
|
575
|
-
element: element,
|
|
576
|
-
original: original,
|
|
577
|
-
index: counter++,
|
|
578
|
-
data: item
|
|
579
|
-
}));
|
|
580
|
-
};
|
|
581
|
-
React$1.Children.map(props.children, function (child, index) {
|
|
582
|
-
if (Utils.isEmpty(items)) {
|
|
583
|
-
addTab(child, {});
|
|
584
|
-
} else {
|
|
585
|
-
for (var i in items) {
|
|
586
|
-
var o = items[i];
|
|
587
|
-
addTab(child, o);
|
|
588
|
-
}
|
|
589
|
-
}
|
|
590
|
-
});
|
|
591
|
-
if (!selected) {
|
|
592
|
-
onChangeTab(tabs[selectedIndex], false);
|
|
593
|
-
}
|
|
594
|
-
var nav = function nav(i) {
|
|
595
|
-
var t = tabs[selectedIndex + i];
|
|
596
|
-
onChangeTab(t);
|
|
597
|
-
};
|
|
598
|
-
var previous = function previous() {
|
|
599
|
-
nav(-1);
|
|
600
|
-
};
|
|
601
|
-
var next = function next() {
|
|
602
|
-
nav(1);
|
|
603
|
-
};
|
|
604
|
-
var isStepper = element.layout === 'stepper';
|
|
605
|
-
return /*#__PURE__*/React$1.createElement("div", {
|
|
606
|
-
className: scope.getStyleClass('inner'),
|
|
607
|
-
style: scope.getStyle('inner')
|
|
608
|
-
}, /*#__PURE__*/React$1.createElement("div", {
|
|
609
|
-
className: "ui-tabs-content"
|
|
610
|
-
}, /*#__PURE__*/React$1.createElement("div", {
|
|
611
|
-
className: "ui-tabs-items"
|
|
612
|
-
}, tabs.map(function (t, i) {
|
|
613
|
-
return /*#__PURE__*/React$1.createElement("div", {
|
|
614
|
-
key: Utils.key(element.id, 'tab', i),
|
|
615
|
-
className: getStyleClass(t),
|
|
616
|
-
onClick: function onClick() {
|
|
617
|
-
onChangeTab(t);
|
|
618
|
-
}
|
|
619
|
-
}, isStepper && /*#__PURE__*/React$1.createElement("div", {
|
|
620
|
-
className: "ui-tab-item-divisor"
|
|
621
|
-
}), /*#__PURE__*/React$1.createElement("div", {
|
|
622
|
-
className: "ui-tab-item-inner"
|
|
623
|
-
}, isStepper && /*#__PURE__*/React$1.createElement("div", {
|
|
624
|
-
className: "ui-step-line"
|
|
625
|
-
}), /*#__PURE__*/React$1.createElement("div", {
|
|
626
|
-
className: "ui-tab-item-label"
|
|
627
|
-
}, isStepper ? t.index + 1 : t.label)));
|
|
628
|
-
})), selected && /*#__PURE__*/React$1.createElement(React$1.Fragment, null, isStepper && /*#__PURE__*/React$1.createElement("div", {
|
|
629
|
-
className: "ui-tabs-label"
|
|
630
|
-
}, selected.label), /*#__PURE__*/React$1.createElement("div", {
|
|
631
|
-
className: "ui-tabs-area"
|
|
632
|
-
}, /*#__PURE__*/React$1.createElement(UIChildren, _extends({}, props, {
|
|
633
|
-
scope: scope
|
|
634
|
-
}), selected.child)), element.layout === 'stepper' && /*#__PURE__*/React$1.createElement("div", {
|
|
635
|
-
className: "ui-tabs-actions"
|
|
636
|
-
}, /*#__PURE__*/React$1.createElement(UI.Output, {
|
|
637
|
-
space: 6,
|
|
638
|
-
layout: "left"
|
|
639
|
-
}, /*#__PURE__*/React$1.createElement(UI.Include, _extends({}, props, {
|
|
640
|
-
"transient": true,
|
|
641
|
-
name: "left",
|
|
642
|
-
"default": /*#__PURE__*/React$1.createElement(UI.Button, {
|
|
643
|
-
rendered: selectedIndex > 0,
|
|
644
|
-
icon: /*#__PURE__*/React$1.createElement(Ionicons, null),
|
|
645
|
-
click: previous
|
|
646
|
-
})
|
|
647
|
-
}))), /*#__PURE__*/React$1.createElement(UI.Output, {
|
|
648
|
-
space: 6,
|
|
649
|
-
layout: "right"
|
|
650
|
-
}, /*#__PURE__*/React$1.createElement(UI.Include, _extends({}, props, {
|
|
651
|
-
"transient": true,
|
|
652
|
-
name: "right",
|
|
653
|
-
"default": /*#__PURE__*/React$1.createElement(UI.Button, {
|
|
654
|
-
rendered: selectedIndex < tabs.length - 1,
|
|
655
|
-
icon: /*#__PURE__*/React$1.createElement(Ionicons, null),
|
|
656
|
-
click: next
|
|
657
|
-
})
|
|
658
|
-
})))))));
|
|
659
|
-
}
|
|
660
|
-
|
|
661
|
-
function ElChart(props) {
|
|
662
|
-
var scope = props.scope;
|
|
663
|
-
var items = scope.getItems();
|
|
664
|
-
var columns = Utils.asList(scope.original.columns);
|
|
665
|
-
return /*#__PURE__*/React$1.createElement("div", {
|
|
666
|
-
className: "ui-chart-data"
|
|
667
|
-
});
|
|
668
|
-
}
|
|
669
|
-
|
|
670
|
-
function AutoComplete(props) {
|
|
671
|
-
var handlePress = function handlePress() {
|
|
672
|
-
Linking.openURL('https://reactnative.dev/');
|
|
673
|
-
};
|
|
674
|
-
return /*#__PURE__*/React$1.createElement(TouchableOpacity, {
|
|
675
|
-
onPress: handlePress
|
|
676
|
-
}, /*#__PURE__*/React$1.createElement(Text, {
|
|
677
|
-
style: styles$1.link
|
|
678
|
-
}, "Clique aqui para acessar o React Native"));
|
|
679
|
-
}
|
|
680
|
-
var styles$1 = {
|
|
681
|
-
link: {}
|
|
682
|
-
};
|
|
683
|
-
|
|
684
|
-
function UIComplete(_ref) {
|
|
685
|
-
var defaultsInput = _ref.defaultsInput,
|
|
686
|
-
defaultsUI = _ref.defaultsUI;
|
|
687
|
-
return /*#__PURE__*/React$1.createElement(React$1.Fragment, null, /*#__PURE__*/React$1.createElement(AutoComplete, _extends({}, defaultsInput, defaultsUI)));
|
|
688
|
-
}
|
|
689
|
-
|
|
690
|
-
function ElRepeatRow(props) {
|
|
691
|
-
var value = props.value;
|
|
692
|
-
var scope = props.scope;
|
|
693
|
-
var index = props.index;
|
|
694
|
-
var row = CrudUtils.create("row", {
|
|
695
|
-
index: index,
|
|
696
|
-
row: true,
|
|
697
|
-
itemVar: scope.original.itemVar,
|
|
698
|
-
parent: scope.crudSearch,
|
|
699
|
-
data: value
|
|
700
|
-
});
|
|
701
|
-
var _useState = useState(new Scope(scope.original, scope, row)),
|
|
702
|
-
rowScope = _useState[0];
|
|
703
|
-
var getRowStyleClass = function getRowStyleClass() {
|
|
704
|
-
var s = rowScope.getStyleClass("row");
|
|
705
|
-
s = s + " ui-repeat-row-";
|
|
706
|
-
if (index % 2 == 0) {
|
|
707
|
-
s = s + "even";
|
|
708
|
-
} else {
|
|
709
|
-
s = s + "odd";
|
|
710
|
-
}
|
|
711
|
-
return s;
|
|
712
|
-
};
|
|
713
|
-
return /*#__PURE__*/React$1.createElement("div", {
|
|
714
|
-
className: getRowStyleClass(),
|
|
715
|
-
style: rowScope.getStyle("row")
|
|
716
|
-
}, /*#__PURE__*/React$1.createElement(UIChildren, _extends({
|
|
717
|
-
"transient": true
|
|
718
|
-
}, props, {
|
|
719
|
-
crud: row
|
|
720
|
-
}), props.children));
|
|
721
|
-
}
|
|
722
|
-
|
|
723
|
-
function ElRepeat(props) {
|
|
724
|
-
var scope = props.scope;
|
|
725
|
-
var items = scope.getItems();
|
|
726
|
-
return /*#__PURE__*/React.createElement("div", {
|
|
727
|
-
className: scope.getStyleClass('inner'),
|
|
728
|
-
style: scope.getStyle('inner')
|
|
729
|
-
}, items.map(function (row, i) {
|
|
730
|
-
return /*#__PURE__*/React.createElement(ElRepeatRow, _extends({}, props, {
|
|
731
|
-
key: 'r' + i,
|
|
732
|
-
scope: scope,
|
|
733
|
-
value: row,
|
|
734
|
-
index: i
|
|
735
|
-
}));
|
|
736
|
-
}));
|
|
737
|
-
}
|
|
738
|
-
|
|
739
|
-
function Link(props) {
|
|
740
|
-
var handlePress = function handlePress() {
|
|
741
|
-
Linking.openURL('https://reactnative.dev/');
|
|
742
|
-
};
|
|
743
|
-
return /*#__PURE__*/React$1.createElement(TouchableOpacity, {
|
|
744
|
-
onPress: handlePress
|
|
745
|
-
}, /*#__PURE__*/React$1.createElement(Text, {
|
|
746
|
-
style: styles$2.link
|
|
747
|
-
}, "Clique aqui para acessar o React Native"));
|
|
748
|
-
}
|
|
749
|
-
var styles$2 = {
|
|
750
|
-
link: {}
|
|
751
|
-
};
|
|
752
|
-
|
|
753
|
-
function Button(props) {
|
|
754
|
-
var handlePress = function handlePress() {
|
|
755
|
-
Linking.openURL('https://reactnative.dev/');
|
|
756
|
-
};
|
|
757
|
-
return /*#__PURE__*/React$1.createElement(TouchableOpacity, {
|
|
758
|
-
onPress: handlePress
|
|
759
|
-
}, /*#__PURE__*/React$1.createElement(Text, {
|
|
760
|
-
style: styles$3.link
|
|
761
|
-
}, "Clique aqui para acessar o React Native"));
|
|
762
|
-
}
|
|
763
|
-
var styles$3 = {
|
|
764
|
-
link: {}
|
|
765
|
-
};
|
|
766
|
-
|
|
767
|
-
function Select(props) {
|
|
768
|
-
var handlePress = function handlePress() {
|
|
769
|
-
Linking.openURL('https://reactnative.dev/');
|
|
770
|
-
};
|
|
771
|
-
return /*#__PURE__*/React$1.createElement(TouchableOpacity, {
|
|
772
|
-
onPress: handlePress
|
|
773
|
-
}, /*#__PURE__*/React$1.createElement(Text, {
|
|
774
|
-
style: styles$4.link
|
|
775
|
-
}, "Clique aqui para acessar o React Native"));
|
|
776
|
-
}
|
|
777
|
-
var styles$4 = {
|
|
778
|
-
link: {}
|
|
779
|
-
};
|
|
780
|
-
|
|
781
|
-
function Switch(props) {
|
|
782
|
-
var handlePress = function handlePress() {
|
|
783
|
-
Linking.openURL('https://reactnative.dev/');
|
|
784
|
-
};
|
|
785
|
-
return /*#__PURE__*/React$1.createElement(TouchableOpacity, {
|
|
786
|
-
onPress: handlePress
|
|
787
|
-
}, /*#__PURE__*/React$1.createElement(Text, {
|
|
788
|
-
style: styles$5.link
|
|
789
|
-
}, "Clique aqui para acessar o React Native"));
|
|
790
|
-
}
|
|
791
|
-
var styles$5 = {
|
|
792
|
-
link: {}
|
|
793
|
-
};
|
|
794
|
-
|
|
795
|
-
function Option(props) {
|
|
796
|
-
var handlePress = function handlePress() {
|
|
797
|
-
Linking.openURL('https://reactnative.dev/');
|
|
798
|
-
};
|
|
799
|
-
return /*#__PURE__*/React$1.createElement(TouchableOpacity, {
|
|
800
|
-
onPress: handlePress
|
|
801
|
-
}, /*#__PURE__*/React$1.createElement(Text, {
|
|
802
|
-
style: styles$6.link
|
|
803
|
-
}, "Clique aqui para acessar o React Native"));
|
|
804
|
-
}
|
|
805
|
-
var styles$6 = {
|
|
806
|
-
link: {}
|
|
807
|
-
};
|
|
808
|
-
|
|
809
|
-
function Radio(props) {
|
|
810
|
-
var handlePress = function handlePress() {
|
|
811
|
-
Linking.openURL('https://reactnative.dev/');
|
|
812
|
-
};
|
|
813
|
-
return /*#__PURE__*/React$1.createElement(TouchableOpacity, {
|
|
814
|
-
onPress: handlePress
|
|
815
|
-
}, /*#__PURE__*/React$1.createElement(Text, {
|
|
816
|
-
style: styles$7.link
|
|
817
|
-
}, "Clique aqui para acessar o React Native"));
|
|
818
|
-
}
|
|
819
|
-
var styles$7 = {
|
|
820
|
-
link: {}
|
|
821
|
-
};
|
|
822
|
-
|
|
823
|
-
function Input(props) {
|
|
824
|
-
var handlePress = function handlePress() {
|
|
825
|
-
Linking.openURL('https://reactnative.dev/');
|
|
826
|
-
};
|
|
827
|
-
return /*#__PURE__*/React$1.createElement(TouchableOpacity, {
|
|
828
|
-
onPress: handlePress
|
|
829
|
-
}, /*#__PURE__*/React$1.createElement(Text, {
|
|
830
|
-
style: styles$8.link
|
|
831
|
-
}, "Clique aqui para acessar o React Native"));
|
|
832
|
-
}
|
|
833
|
-
var styles$8 = {
|
|
834
|
-
link: {}
|
|
835
|
-
};
|
|
836
|
-
|
|
837
|
-
function UIElement(props) {
|
|
838
|
-
var _useState = useState(ScopeUtils.create(props)),
|
|
839
|
-
scope = _useState[0];
|
|
840
|
-
var _useState2 = useState(0),
|
|
841
|
-
index = _useState2[0],
|
|
842
|
-
setIndex = _useState2[1];
|
|
843
|
-
var _useState3 = useState(null),
|
|
844
|
-
error = _useState3[0],
|
|
845
|
-
setError = _useState3[1];
|
|
846
|
-
var options = scope.getOptions();
|
|
847
|
-
var crud = Utils.nvl(props.crud, scope.crud);
|
|
848
|
-
var original = scope.original;
|
|
849
|
-
var type = original.type;
|
|
850
|
-
var ref = useRef(null);
|
|
851
|
-
scope.update = function () {
|
|
852
|
-
setIndex(++index);
|
|
853
|
-
};
|
|
854
|
-
var router = {
|
|
855
|
-
list: ElGrid,
|
|
856
|
-
grid: ElGrid,
|
|
857
|
-
label: ElLabel,
|
|
858
|
-
card: ElCard,
|
|
859
|
-
repeat: ElRepeat,
|
|
860
|
-
tabs: ElTabs,
|
|
861
|
-
chart: ElChart
|
|
862
|
-
};
|
|
863
|
-
var CurrentRouter = function CurrentRouter() {
|
|
864
|
-
if (router[type]) {
|
|
865
|
-
var Aux = router[type];
|
|
866
|
-
return /*#__PURE__*/React$1.createElement(Aux, _extends({
|
|
867
|
-
crud: crud
|
|
868
|
-
}, props, {
|
|
869
|
-
scope: scope
|
|
870
|
-
}));
|
|
871
|
-
}
|
|
872
|
-
return /*#__PURE__*/React$1.createElement(React$1.Fragment, null);
|
|
873
|
-
};
|
|
874
|
-
var Custom = function Custom() {
|
|
875
|
-
var c = original.custom;
|
|
876
|
-
if (c) {
|
|
877
|
-
if (typeof c === 'string') {
|
|
878
|
-
return /*#__PURE__*/React$1.createElement(UIElement, {
|
|
879
|
-
element: {
|
|
880
|
-
value: c,
|
|
881
|
-
type: 'dummy'
|
|
882
|
-
},
|
|
883
|
-
crud: crud
|
|
884
|
-
});
|
|
885
|
-
}
|
|
886
|
-
return /*#__PURE__*/React$1.createElement(UIElement, _extends({
|
|
887
|
-
type: c.type,
|
|
888
|
-
tag: c.type
|
|
889
|
-
}, c.props, {
|
|
890
|
-
crud: crud
|
|
891
|
-
}));
|
|
892
|
-
}
|
|
893
|
-
return /*#__PURE__*/React$1.createElement(React$1.Fragment, null);
|
|
894
|
-
};
|
|
895
|
-
if (scope.is('type', 'dummy')) {
|
|
896
|
-
return /*#__PURE__*/React$1.createElement(React$1.Fragment, null, scope.getDisplayValue());
|
|
897
|
-
}
|
|
898
|
-
var onCheck = function onCheck() {
|
|
899
|
-
var v = scope.getValue();
|
|
900
|
-
var check = !(v === true);
|
|
901
|
-
onChange({
|
|
902
|
-
target: {
|
|
903
|
-
value: check
|
|
904
|
-
}
|
|
905
|
-
});
|
|
906
|
-
};
|
|
907
|
-
var onChange = function onChange(e) {
|
|
908
|
-
var val = e.target.value;
|
|
909
|
-
if (scope.isType('integer', 'int', 'number')) {
|
|
910
|
-
val = parseInt(val);
|
|
911
|
-
} else if (scope.isType('decimal')) {
|
|
912
|
-
val = parseFloat(val);
|
|
913
|
-
}
|
|
914
|
-
if (scope.isType('select', 'complete')) {
|
|
915
|
-
val = scope.getSelectedItem(val);
|
|
916
|
-
}
|
|
917
|
-
scope.changeValue(val);
|
|
918
|
-
scope.update();
|
|
919
|
-
};
|
|
920
|
-
var onClick = function onClick(e) {
|
|
921
|
-
scope.call('click');
|
|
922
|
-
};
|
|
923
|
-
var defaultsInput = {
|
|
924
|
-
label: scope.getLabel(),
|
|
925
|
-
value: scope.getValue(),
|
|
926
|
-
onChange: onChange
|
|
927
|
-
};
|
|
928
|
-
if (scope.isType('password')) {
|
|
929
|
-
defaultsInput.type = 'password';
|
|
930
|
-
}
|
|
931
|
-
var elStyle = scope.getStyle('element');
|
|
932
|
-
var defaultsUI = {
|
|
933
|
-
required: scope.isRequired(),
|
|
934
|
-
size: 'small',
|
|
935
|
-
style: elStyle,
|
|
936
|
-
placeholder: scope.attr('placeholder', 'Digite aqui')
|
|
937
|
-
};
|
|
938
|
-
var isChecked = function isChecked() {
|
|
939
|
-
var v = scope.getValue();
|
|
940
|
-
return v === true;
|
|
941
|
-
};
|
|
942
|
-
var hasChildren = function hasChildren() {
|
|
943
|
-
if (scope.isInput()) {
|
|
944
|
-
return false;
|
|
945
|
-
}
|
|
946
|
-
return !Utils.isEmpty(props.children) || !Utils.isEmpty(props.elements);
|
|
947
|
-
};
|
|
948
|
-
if (!scope.isRendered() || scope.is('type', 'define')) {
|
|
949
|
-
return /*#__PURE__*/React$1.createElement(React$1.Fragment, null);
|
|
950
|
-
}
|
|
951
|
-
scope.error = function (msg) {
|
|
952
|
-
error = msg;
|
|
953
|
-
setError(msg);
|
|
954
|
-
};
|
|
955
|
-
useEffect(function () {
|
|
956
|
-
if (!scope.ready) {
|
|
957
|
-
scope.ready = true;
|
|
958
|
-
scope.call('load');
|
|
959
|
-
if (scope.isType('list', 'repeat')) {
|
|
960
|
-
scope.search();
|
|
961
|
-
} else if (original.list) {
|
|
962
|
-
scope.call('list');
|
|
963
|
-
}
|
|
964
|
-
scope.start();
|
|
965
|
-
}
|
|
966
|
-
});
|
|
967
|
-
var CustomIcon = function CustomIcon() {
|
|
968
|
-
if (typeof original.icon === 'string') {
|
|
969
|
-
return /*#__PURE__*/React$1.createElement(Icon, null, scope.getIcon());
|
|
970
|
-
}
|
|
971
|
-
return /*#__PURE__*/React$1.createElement(React$1.Fragment, null, original.icon);
|
|
972
|
-
};
|
|
973
|
-
var getLabelClass = function getLabelClass(type) {
|
|
974
|
-
var clss = "ui-text ui-" + type + "-text";
|
|
975
|
-
var icon = scope.getIcon();
|
|
976
|
-
if (icon) {
|
|
977
|
-
clss = clss + (" ui-icon ui-" + type + "-icon");
|
|
978
|
-
}
|
|
979
|
-
return clss;
|
|
980
|
-
};
|
|
981
|
-
var hasCustomRoute = function hasCustomRoute() {
|
|
982
|
-
if (router[type]) return true;
|
|
983
|
-
return false;
|
|
984
|
-
};
|
|
985
|
-
scope.open = function (args) {
|
|
986
|
-
Linking.openURL(args.url);
|
|
987
|
-
};
|
|
988
|
-
if (scope.isType('dialog')) {
|
|
989
|
-
var name = original.name;
|
|
990
|
-
if (!crud.dialogs[name]) {
|
|
991
|
-
var dlg = {
|
|
992
|
-
config: _extends({}, original)
|
|
993
|
-
};
|
|
994
|
-
dlg.component = function (args) {
|
|
995
|
-
return /*#__PURE__*/React$1.createElement(UIChildren, _extends({}, props, {
|
|
996
|
-
scope: scope,
|
|
997
|
-
crud: crud
|
|
998
|
-
}));
|
|
999
|
-
};
|
|
1000
|
-
crud.dialogs[name] = dlg;
|
|
1001
|
-
}
|
|
1002
|
-
return /*#__PURE__*/React$1.createElement(React$1.Fragment, null);
|
|
1003
|
-
}
|
|
1004
|
-
useLayoutEffect(function () {
|
|
1005
|
-
if (ref != null && ref.current && scope.is('type', 'card', 'list', 'tabs', 'stepper')) {
|
|
1006
|
-
var el = ref == null ? void 0 : ref.current;
|
|
1007
|
-
if (el) {
|
|
1008
|
-
var bg = HtmlUtils.getBGColor(el);
|
|
1009
|
-
if (bg === 'rgb(255, 255, 255)') {
|
|
1010
|
-
el.classList.add('ui-dark');
|
|
1011
|
-
} else {
|
|
1012
|
-
el.classList.add('ui-light');
|
|
1013
|
-
}
|
|
1014
|
-
}
|
|
1015
|
-
}
|
|
1016
|
-
});
|
|
1017
|
-
var isShowInner = function isShowInner() {
|
|
1018
|
-
if (hasChildren() || hasCustomRoute()) {
|
|
1019
|
-
return false;
|
|
1020
|
-
}
|
|
1021
|
-
return true;
|
|
1022
|
-
};
|
|
1023
|
-
return /*#__PURE__*/React$1.createElement(React$1.Fragment, null, /*#__PURE__*/React$1.createElement("div", {
|
|
1024
|
-
className: 'ui-el ' + scope.getStyleClass(),
|
|
1025
|
-
ref: ref,
|
|
1026
|
-
style: scope.getStyle()
|
|
1027
|
-
}, isShowInner() && /*#__PURE__*/React$1.createElement(React$1.Fragment, null, /*#__PURE__*/React$1.createElement("div", {
|
|
1028
|
-
className: scope.getStyleClass('inner'),
|
|
1029
|
-
style: scope.getStyle('inner')
|
|
1030
|
-
}, scope.is('type', 'button') && /*#__PURE__*/React$1.createElement(Button, _extends({}, defaultsUI, {
|
|
1031
|
-
onClick: onClick,
|
|
1032
|
-
variant: scope.attr('variant', 'outlined')
|
|
1033
|
-
}), original.icon && /*#__PURE__*/React$1.createElement(CustomIcon, null), original.label && /*#__PURE__*/React$1.createElement("span", {
|
|
1034
|
-
className: getLabelClass('button')
|
|
1035
|
-
}, scope.getLabel())), scope.is('type', 'icon') && /*#__PURE__*/React$1.createElement(Icon, _extends({}, defaultsUI, {
|
|
1036
|
-
onClick: onClick,
|
|
1037
|
-
variant: scope.attr('variant', 'outlined')
|
|
1038
|
-
}), scope.getDisplayValue()), scope.is('type', 'link') && /*#__PURE__*/React$1.createElement(Link, _extends({}, defaultsUI, {
|
|
1039
|
-
onClick: onClick,
|
|
1040
|
-
variant: scope.attr('variant', 'outlined')
|
|
1041
|
-
}), original.icon && /*#__PURE__*/React$1.createElement(CustomIcon, null), original.label && /*#__PURE__*/React$1.createElement("span", {
|
|
1042
|
-
className: getLabelClass('link')
|
|
1043
|
-
}, scope.getLabel())), scope.is('type', 'text', 'number', 'phone', 'postalCode', 'money', 'password', 'email') && /*#__PURE__*/React$1.createElement(Input, _extends({}, defaultsInput, defaultsUI, {
|
|
1044
|
-
InputProps: _extends({}, original.inputProps)
|
|
1045
|
-
})), scope.is('type', 'complete', 'autocomplete') && /*#__PURE__*/React$1.createElement(UIComplete, {
|
|
1046
|
-
scope: scope,
|
|
1047
|
-
defaultsInput: defaultsInput,
|
|
1048
|
-
defaultsUI: defaultsUI
|
|
1049
|
-
}), scope.is('type', 'checkbox', 'boolean', 'switch') && /*#__PURE__*/React$1.createElement(Switch, _extends({
|
|
1050
|
-
checked: isChecked()
|
|
1051
|
-
}, defaultsInput, {
|
|
1052
|
-
onChange: onCheck
|
|
1053
|
-
})), scope.is('type', 'select') && /*#__PURE__*/React$1.createElement(Select, _extends({}, defaultsInput, defaultsUI, {
|
|
1054
|
-
value: scope.getSelectedValue()
|
|
1055
|
-
}), /*#__PURE__*/React$1.createElement(Option, {
|
|
1056
|
-
value: ''
|
|
1057
|
-
}, "Selecione"), options.map(function (row, i) {
|
|
1058
|
-
return /*#__PURE__*/React$1.createElement(Option, {
|
|
1059
|
-
key: 'i' + i,
|
|
1060
|
-
value: row.value
|
|
1061
|
-
}, row.label);
|
|
1062
|
-
})), scope.is('type', 'radio') && /*#__PURE__*/React$1.createElement(Radio, _extends({}, defaultsInput, defaultsUI, {
|
|
1063
|
-
row: true
|
|
1064
|
-
}), options.map(function (row, i) {
|
|
1065
|
-
return /*#__PURE__*/React$1.createElement(Option, {
|
|
1066
|
-
key: 'i' + i,
|
|
1067
|
-
control: /*#__PURE__*/React$1.createElement(Radio, defaultsUI),
|
|
1068
|
-
label: row.label,
|
|
1069
|
-
value: row.value
|
|
1070
|
-
});
|
|
1071
|
-
})), scope.is('type', 'custom') && /*#__PURE__*/React$1.createElement(Custom, null), scope.is('type', 'column') && /*#__PURE__*/React$1.createElement(React$1.Fragment, null, scope.is('format', 'img') && /*#__PURE__*/React$1.createElement("img", {
|
|
1072
|
-
src: scope.getDisplayValue()
|
|
1073
|
-
}), scope.is('format', 'icon') && /*#__PURE__*/React$1.createElement("i", {
|
|
1074
|
-
className: scope.getDisplayValue()
|
|
1075
|
-
}), !scope.is('format', 'icon', 'img') && /*#__PURE__*/React$1.createElement("span", null, scope.getDisplayValue())), scope.is('type', 'output') && /*#__PURE__*/React$1.createElement("span", null, scope.getDisplayValue())), error && /*#__PURE__*/React$1.createElement("div", {
|
|
1076
|
-
className: "ui-error"
|
|
1077
|
-
}, error)), /*#__PURE__*/React$1.createElement(CurrentRouter, null), !scope.is('type', 'card', 'tabs', 'grid', 'list', 'define', 'repeat') && /*#__PURE__*/React$1.createElement(UIChildren, _extends({}, props, {
|
|
1078
|
-
scope: scope,
|
|
1079
|
-
crud: crud
|
|
1080
|
-
}))));
|
|
1081
|
-
}
|
|
1082
|
-
|
|
1083
|
-
var _excluded = ["type"];
|
|
1084
|
-
var UI = {
|
|
1085
|
-
Grid: function Grid(props) {
|
|
1086
|
-
return /*#__PURE__*/React.createElement(UIElement, _extends({}, props, {
|
|
1087
|
-
type: "list"
|
|
1088
|
-
}));
|
|
1089
|
-
},
|
|
1090
|
-
Repeat: function Repeat(props) {
|
|
1091
|
-
return /*#__PURE__*/React.createElement(UIElement, _extends({}, props, {
|
|
1092
|
-
type: "repeat"
|
|
1093
|
-
}));
|
|
1094
|
-
},
|
|
1095
|
-
Define: function Define(props) {
|
|
1096
|
-
return /*#__PURE__*/React.createElement(UIElement, _extends({}, props, {
|
|
1097
|
-
type: "define"
|
|
1098
|
-
}));
|
|
1099
|
-
},
|
|
1100
|
-
Include: function Include(props) {
|
|
1101
|
-
return /*#__PURE__*/React.createElement(ElInclude, props);
|
|
1102
|
-
},
|
|
1103
|
-
Column: function Column(_ref) {
|
|
1104
|
-
var props = _objectWithoutPropertiesLoose(_ref, _excluded);
|
|
1105
|
-
return /*#__PURE__*/React.createElement(UIElement, _extends({}, props, {
|
|
1106
|
-
type: "column"
|
|
1107
|
-
}));
|
|
1108
|
-
},
|
|
1109
|
-
Input: function Input(props) {
|
|
1110
|
-
return /*#__PURE__*/React.createElement(UIElement, props);
|
|
1111
|
-
},
|
|
1112
|
-
Text: function Text(props) {
|
|
1113
|
-
return /*#__PURE__*/React.createElement(UIElement, _extends({}, props, {
|
|
1114
|
-
type: "text"
|
|
1115
|
-
}));
|
|
1116
|
-
},
|
|
1117
|
-
Email: function Email(props) {
|
|
1118
|
-
return /*#__PURE__*/React.createElement(UIElement, _extends({}, props, {
|
|
1119
|
-
type: "email"
|
|
1120
|
-
}));
|
|
1121
|
-
},
|
|
1122
|
-
Button: function Button(props) {
|
|
1123
|
-
return /*#__PURE__*/React.createElement(UIElement, _extends({}, props, {
|
|
1124
|
-
type: "button"
|
|
1125
|
-
}));
|
|
1126
|
-
},
|
|
1127
|
-
Link: function Link(props) {
|
|
1128
|
-
return /*#__PURE__*/React.createElement(UIElement, _extends({}, props, {
|
|
1129
|
-
type: "link"
|
|
1130
|
-
}));
|
|
1131
|
-
},
|
|
1132
|
-
Icon: function Icon(props) {
|
|
1133
|
-
return /*#__PURE__*/React.createElement(UIElement, _extends({}, props, {
|
|
1134
|
-
type: "icon"
|
|
1135
|
-
}));
|
|
1136
|
-
},
|
|
1137
|
-
Output: function Output(props) {
|
|
1138
|
-
return /*#__PURE__*/React.createElement(UIElement, _extends({}, props, {
|
|
1139
|
-
type: "output"
|
|
1140
|
-
}));
|
|
1141
|
-
},
|
|
1142
|
-
Form: function Form(props) {
|
|
1143
|
-
return /*#__PURE__*/React.createElement(UIElement, _extends({}, props, {
|
|
1144
|
-
type: "form"
|
|
1145
|
-
}));
|
|
1146
|
-
},
|
|
1147
|
-
Crud: function Crud(props) {
|
|
1148
|
-
return /*#__PURE__*/React.createElement(UIElement, _extends({}, props, {
|
|
1149
|
-
type: "crud"
|
|
1150
|
-
}));
|
|
1151
|
-
},
|
|
1152
|
-
View: function View(props) {
|
|
1153
|
-
return /*#__PURE__*/React.createElement(UIElement, _extends({}, props, {
|
|
1154
|
-
type: "view",
|
|
1155
|
-
"transient": true
|
|
1156
|
-
}));
|
|
1157
|
-
},
|
|
1158
|
-
Bottom: function Bottom(props) {
|
|
1159
|
-
return /*#__PURE__*/React.createElement(UIElement, _extends({}, props, {
|
|
1160
|
-
type: "bottom"
|
|
1161
|
-
}));
|
|
1162
|
-
},
|
|
1163
|
-
Dialog: function Dialog(props) {
|
|
1164
|
-
return /*#__PURE__*/React.createElement(UIElement, _extends({}, props, {
|
|
1165
|
-
type: "dialog"
|
|
1166
|
-
}));
|
|
1167
|
-
},
|
|
1168
|
-
Content: function Content(props) {
|
|
1169
|
-
return /*#__PURE__*/React.createElement(UIElement, _extends({}, props, {
|
|
1170
|
-
type: "content"
|
|
1171
|
-
}));
|
|
1172
|
-
},
|
|
1173
|
-
Top: function Top(props) {
|
|
1174
|
-
return /*#__PURE__*/React.createElement(UIElement, _extends({}, props, {
|
|
1175
|
-
type: "top"
|
|
1176
|
-
}));
|
|
1177
|
-
},
|
|
1178
|
-
Card: function Card(props) {
|
|
1179
|
-
return /*#__PURE__*/React.createElement(UIElement, _extends({}, props, {
|
|
1180
|
-
type: "card"
|
|
1181
|
-
}));
|
|
1182
|
-
},
|
|
1183
|
-
Tab: function Tab(props) {
|
|
1184
|
-
return /*#__PURE__*/React.createElement(UIElement, _extends({}, props, {
|
|
1185
|
-
type: "tab"
|
|
1186
|
-
}));
|
|
1187
|
-
},
|
|
1188
|
-
Tabs: function Tabs(props) {
|
|
1189
|
-
return /*#__PURE__*/React.createElement(UIElement, _extends({}, props, {
|
|
1190
|
-
type: "tabs"
|
|
1191
|
-
}));
|
|
1192
|
-
},
|
|
1193
|
-
Step: function Step(props) {
|
|
1194
|
-
return /*#__PURE__*/React.createElement(UIElement, _extends({}, props, {
|
|
1195
|
-
type: "tab",
|
|
1196
|
-
layout: "step"
|
|
1197
|
-
}));
|
|
1198
|
-
},
|
|
1199
|
-
Stepper: function Stepper(props) {
|
|
1200
|
-
return /*#__PURE__*/React.createElement(UIElement, _extends({}, props, {
|
|
1201
|
-
type: "tabs",
|
|
1202
|
-
layout: "stepper"
|
|
1203
|
-
}));
|
|
1204
|
-
},
|
|
1205
|
-
Money: function Money(props) {
|
|
1206
|
-
return /*#__PURE__*/React.createElement(UIElement, _extends({}, props, {
|
|
1207
|
-
type: "money"
|
|
1208
|
-
}));
|
|
1209
|
-
},
|
|
1210
|
-
Chart: function Chart(props) {
|
|
1211
|
-
return /*#__PURE__*/React.createElement(UIElement, _extends({}, props, {
|
|
1212
|
-
type: "chart"
|
|
1213
|
-
}));
|
|
1214
|
-
},
|
|
1215
|
-
Password: function Password(props) {
|
|
1216
|
-
return /*#__PURE__*/React.createElement(UIElement, _extends({}, props, {
|
|
1217
|
-
type: "password"
|
|
1218
|
-
}));
|
|
1219
|
-
},
|
|
1220
|
-
Complete: function Complete(props) {
|
|
1221
|
-
return /*#__PURE__*/React.createElement(UIElement, _extends({}, props, {
|
|
1222
|
-
type: "complete"
|
|
1223
|
-
}));
|
|
1224
|
-
},
|
|
1225
|
-
Checkbox: function Checkbox(props) {
|
|
1226
|
-
return /*#__PURE__*/React.createElement(UIElement, _extends({}, props, {
|
|
1227
|
-
type: "checkbox"
|
|
1228
|
-
}));
|
|
1229
|
-
},
|
|
1230
|
-
Radio: function Radio(props) {
|
|
1231
|
-
return /*#__PURE__*/React.createElement(UIElement, _extends({}, props, {
|
|
1232
|
-
type: "radio"
|
|
1233
|
-
}));
|
|
1234
|
-
},
|
|
1235
|
-
Select: function Select(props) {
|
|
1236
|
-
return /*#__PURE__*/React.createElement(UIElement, _extends({}, props, {
|
|
1237
|
-
type: "select"
|
|
1238
|
-
}));
|
|
1239
|
-
},
|
|
1240
|
-
Entity: function Entity(props) {
|
|
1241
|
-
return /*#__PURE__*/React.createElement(UIElement, _extends({}, props, {
|
|
1242
|
-
type: "entity"
|
|
1243
|
-
}));
|
|
1244
|
-
},
|
|
1245
|
-
Element: function Element(props) {
|
|
1246
|
-
return /*#__PURE__*/React.createElement(UIElement, _extends({}, props, {
|
|
1247
|
-
type: "element"
|
|
1248
|
-
}));
|
|
1249
|
-
}
|
|
1250
|
-
};
|
|
1251
|
-
|
|
1252
|
-
export { UI };
|
|
1253
|
-
//# sourceMappingURL=react-crud-mobile.esm.js.map
|