react-crud-mobile 1.0.670 → 1.0.671
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 +26 -0
- 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 +27 -1
- package/dist/react-crud-mobile.esm.js.map +1 -1
- package/package.json +73 -73
- package/src/elements/UI.tsx +67 -67
- package/src/elements/UIChildren.tsx +139 -139
- package/src/elements/UIComplete.tsx +14 -14
- package/src/elements/UIElement.tsx +625 -588
- package/src/elements/UITag.tsx +13 -13
- package/src/elements/charts/ElChart.tsx +10 -10
- package/src/elements/core/UIButton.tsx +85 -85
- package/src/elements/core/UIIcon.tsx +8 -8
- package/src/elements/core/UIInclude.tsx +40 -40
- package/src/elements/core/UIInput.tsx +69 -69
- package/src/elements/core/UIList.tsx +133 -133
- package/src/elements/core/UIListRow.tsx +117 -117
- package/src/elements/core/UIModal.tsx +181 -181
- package/src/elements/core/UIQuantity.tsx +97 -97
- package/src/elements/core/UISelect.tsx +135 -135
- package/src/elements/core/UIToggle.tsx +102 -102
- package/src/elements/core/UIView.tsx +55 -55
- package/src/elements/index.ts +1 -1
- package/src/elements/tabs/ElTabs.tsx +178 -178
- package/src/index.ts +1 -1
|
@@ -1328,6 +1328,32 @@ function UIElement(props) {
|
|
|
1328
1328
|
scope.updateElement = function () {
|
|
1329
1329
|
setIndex(++index);
|
|
1330
1330
|
};
|
|
1331
|
+
scope.prompt = function (args) {
|
|
1332
|
+
var event = args.event;
|
|
1333
|
+
if (event) {
|
|
1334
|
+
var message = 'Você tem certeza que deseja continuar?';
|
|
1335
|
+
var title = 'Atenção';
|
|
1336
|
+
var prompt = event.prompt;
|
|
1337
|
+
if (typeof prompt === 'string') {
|
|
1338
|
+
message = prompt;
|
|
1339
|
+
}
|
|
1340
|
+
if (typeof prompt === 'object') {
|
|
1341
|
+
message = reactCrudUtils.Utils.nvl(prompt.message, message);
|
|
1342
|
+
title = reactCrudUtils.Utils.nvl(prompt.title, title);
|
|
1343
|
+
}
|
|
1344
|
+
reactNative.Alert.alert(title, message, [{
|
|
1345
|
+
text: 'Cancelar',
|
|
1346
|
+
style: 'cancel'
|
|
1347
|
+
}, {
|
|
1348
|
+
text: 'Confirmar',
|
|
1349
|
+
onPress: function onPress() {
|
|
1350
|
+
return scope.execute(args);
|
|
1351
|
+
}
|
|
1352
|
+
}], {
|
|
1353
|
+
cancelable: false
|
|
1354
|
+
});
|
|
1355
|
+
}
|
|
1356
|
+
};
|
|
1331
1357
|
var Custom = function Custom() {
|
|
1332
1358
|
var c = original.custom;
|
|
1333
1359
|
if (c) {
|