powr-sdk-web 4.1.10 → 4.1.12
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/forms/index.js +11 -1
- package/dist/tasks/index.js +7 -3
- package/package.json +1 -1
- package/dist/scheduledTasks/PowrScheduledTasks.js +0 -951
- package/dist/scheduledTasks/admin.js +0 -934
- package/dist/scheduledTasks/index.js +0 -934
- package/dist/tools/tools.css +0 -680
package/dist/forms/index.js
CHANGED
|
@@ -202,6 +202,16 @@ var PowrForm = function PowrForm(_ref) {
|
|
|
202
202
|
}), {
|
|
203
203
|
className: inputClass
|
|
204
204
|
})));
|
|
205
|
+
case "textarea":
|
|
206
|
+
return /*#__PURE__*/_react["default"].createElement(InputField, {
|
|
207
|
+
key: field.name,
|
|
208
|
+
label: field.label,
|
|
209
|
+
required: field.required
|
|
210
|
+
}, /*#__PURE__*/_react["default"].createElement("textarea", _extends({}, register(field.name, {
|
|
211
|
+
required: field.required
|
|
212
|
+
}), {
|
|
213
|
+
className: inputClass
|
|
214
|
+
})));
|
|
205
215
|
case "radio":
|
|
206
216
|
return /*#__PURE__*/_react["default"].createElement(RadioGroup, {
|
|
207
217
|
key: field.name,
|
|
@@ -329,7 +339,7 @@ var PowrForm = function PowrForm(_ref) {
|
|
|
329
339
|
}, "No form fields found or invalid form structure"), /*#__PURE__*/_react["default"].createElement("button", {
|
|
330
340
|
type: "submit",
|
|
331
341
|
className: "w-full ".concat(buttonColor, " text-white py-3 px-4 rounded-md transition-colors")
|
|
332
|
-
}, "Submit
|
|
342
|
+
}, "Submit"))));
|
|
333
343
|
};
|
|
334
344
|
|
|
335
345
|
// Input field wrapper component
|
package/dist/tasks/index.js
CHANGED
|
@@ -945,7 +945,7 @@ var PowrBaseTasks = function PowrBaseTasks(_ref) {
|
|
|
945
945
|
fontSize: '0.8rem',
|
|
946
946
|
color: '#6b7280'
|
|
947
947
|
}
|
|
948
|
-
}, formatDate(execution.executedAt))),
|
|
948
|
+
}, formatDate(execution.executedAt))), /*#__PURE__*/_react["default"].createElement("div", {
|
|
949
949
|
style: {
|
|
950
950
|
fontSize: '0.8rem',
|
|
951
951
|
color: '#6b7280'
|
|
@@ -954,11 +954,15 @@ var PowrBaseTasks = function PowrBaseTasks(_ref) {
|
|
|
954
954
|
style: {
|
|
955
955
|
marginBottom: '4px'
|
|
956
956
|
}
|
|
957
|
-
}, /*#__PURE__*/_react["default"].createElement("strong", null, "Status:"), " ", execution.
|
|
957
|
+
}, /*#__PURE__*/_react["default"].createElement("strong", null, "Status:"), " ", execution.success ? '✅ Success' : '❌ Failed'), execution.results && execution.results.stepsExecuted && /*#__PURE__*/_react["default"].createElement("div", {
|
|
958
958
|
style: {
|
|
959
959
|
marginBottom: '4px'
|
|
960
960
|
}
|
|
961
|
-
}, /*#__PURE__*/_react["default"].createElement("strong", null, "Steps Executed:"), " ", execution.results.stepsExecuted), execution.
|
|
961
|
+
}, /*#__PURE__*/_react["default"].createElement("strong", null, "Steps Executed:"), " ", execution.results.stepsExecuted), execution.actionsExecuted !== undefined && /*#__PURE__*/_react["default"].createElement("div", {
|
|
962
|
+
style: {
|
|
963
|
+
marginBottom: '4px'
|
|
964
|
+
}
|
|
965
|
+
}, /*#__PURE__*/_react["default"].createElement("strong", null, "Actions:"), " ", execution.actionsSuccessful, "/", execution.actionsExecuted, " successful"), execution.results && execution.results.workflowName && /*#__PURE__*/_react["default"].createElement("div", {
|
|
962
966
|
style: {
|
|
963
967
|
marginBottom: '4px'
|
|
964
968
|
}
|