@agilemotion/oui-react-js 1.8.28 → 1.8.30
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/ApplicationManager.js +13 -8
- package/dist/DateUtils.js +78 -0
- package/dist/DynamicJS.js +5 -0
- package/dist/RestService.js +2 -3
- package/dist/Utils.js +3 -3
- package/dist/components/DataGrid.js +5 -1
- package/dist/components/DataGridColumn.js +25 -4
- package/dist/components/HtmlPanel.js +4 -2
- package/dist/components/TabPanel.js +6 -0
- package/dist/components/TableCellContent.js +46 -1
- package/dist/components/facialRecognition/FaceRecognitionComponent.js +205 -0
- package/dist/components/facialRecognition/FacialRecognition.css +3 -0
- package/dist/components/facialRecognition/FacialRegistration.js +73 -0
- package/dist/components/facialRecognition/FacialVerification.js +84 -0
- package/dist/components/facialRecognition/Modal.js +33 -0
- package/dist/components/facialRecognition/service/faceApi.js +55 -0
- package/dist/components/form/BaseField.js +1 -4
- package/dist/components/form/FieldSet.js +4 -2
- package/dist/components/form/Form.js +1 -0
- package/dist/components/form/GridField.js +5 -5
- package/dist/components/form/ImageEditor.js +200 -84
- package/dist/components/form/RadioGroup.js +1 -1
- package/dist/components/layout/Layout.js +16 -0
- package/dist/components/signatures/ViewUtils.js +1 -1
- package/dist/event/ActionHandlers.js +8 -1
- package/package.json +13 -4
|
@@ -30,6 +30,8 @@ var _DocumentTemplateDesigner = _interopRequireDefault(require("../DocumentTempl
|
|
|
30
30
|
var _ChatRoomWrapper = _interopRequireDefault(require("../media/chat/ChatRoomWrapper"));
|
|
31
31
|
var _ProgressTracker = _interopRequireDefault(require("../ProgressTracker"));
|
|
32
32
|
var _Chart = _interopRequireDefault(require("../Chart"));
|
|
33
|
+
var _FacialRegistration = _interopRequireDefault(require("../facialRecognition/FacialRegistration"));
|
|
34
|
+
var _FacialVerification = _interopRequireDefault(require("../facialRecognition/FacialVerification"));
|
|
33
35
|
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
34
36
|
function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function (e) { return e ? t : r; })(e); }
|
|
35
37
|
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != typeof e && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
|
|
@@ -251,6 +253,20 @@ const Layout = props => {
|
|
|
251
253
|
key: index,
|
|
252
254
|
viewId: props.viewId
|
|
253
255
|
});
|
|
256
|
+
case 'facialRegistration':
|
|
257
|
+
return /*#__PURE__*/_react.default.createElement(_FacialRegistration.default, {
|
|
258
|
+
config: component,
|
|
259
|
+
handle: createComponentHandle(component),
|
|
260
|
+
key: index,
|
|
261
|
+
viewId: props.viewId
|
|
262
|
+
});
|
|
263
|
+
case 'facialVerification':
|
|
264
|
+
return /*#__PURE__*/_react.default.createElement(_FacialVerification.default, {
|
|
265
|
+
config: component,
|
|
266
|
+
handle: createComponentHandle(component),
|
|
267
|
+
key: index,
|
|
268
|
+
viewId: props.viewId
|
|
269
|
+
});
|
|
254
270
|
case 'chart':
|
|
255
271
|
return /*#__PURE__*/_react.default.createElement(_Chart.default, {
|
|
256
272
|
config: component,
|
|
@@ -7,7 +7,7 @@ exports.default = void 0;
|
|
|
7
7
|
var _reactPromiseTracker = require("react-promise-tracker");
|
|
8
8
|
class ViewUtils {
|
|
9
9
|
constructor() {}
|
|
10
|
-
SYSTEM_ERROR_MESSAGE = "A system error has
|
|
10
|
+
SYSTEM_ERROR_MESSAGE = "A system error has occurred. Please contact your system administrator";
|
|
11
11
|
isNull(value) {
|
|
12
12
|
return value === null || typeof value === 'undefined';
|
|
13
13
|
}
|
|
@@ -52,7 +52,14 @@ class ActionHandlers {
|
|
|
52
52
|
if (!actionHandler) {
|
|
53
53
|
throw new Error("No action handler found for [" + action.actionType + "]");
|
|
54
54
|
}
|
|
55
|
-
let message =
|
|
55
|
+
let message = null;
|
|
56
|
+
if (action.confirmationMessage) {
|
|
57
|
+
if (_ApplicationManager.default.isExpression(action.confirmationMessage)) {
|
|
58
|
+
message = action.confirmationMessage ? _DynamicJS.default.executeScript("__confirmation_messaage_" + viewId + "_" + component.id, action.confirmationMessage) : null;
|
|
59
|
+
} else {
|
|
60
|
+
message = action.confirmationMessage;
|
|
61
|
+
}
|
|
62
|
+
}
|
|
56
63
|
let condition = action.condition;
|
|
57
64
|
let shouldRun = true;
|
|
58
65
|
if (!_Utils.default.isNull(condition)) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@agilemotion/oui-react-js",
|
|
3
|
-
"version": "1.8.
|
|
3
|
+
"version": "1.8.30",
|
|
4
4
|
"files": [
|
|
5
5
|
"dist"
|
|
6
6
|
],
|
|
@@ -42,6 +42,7 @@
|
|
|
42
42
|
"dayjs": "^1.11.13",
|
|
43
43
|
"dotenv-webpack": "^8.1.0",
|
|
44
44
|
"emotion-theming": "^11.0.0",
|
|
45
|
+
"face-api.js": "^0.22.2",
|
|
45
46
|
"handlebars": "^4.7.7",
|
|
46
47
|
"html-to-image": "^1.6.2",
|
|
47
48
|
"install": "^0.13.0",
|
|
@@ -84,9 +85,13 @@
|
|
|
84
85
|
"redux": "^4.0.5",
|
|
85
86
|
"redux-thunk": "^2.3.0",
|
|
86
87
|
"rrule": "^2.8.1",
|
|
87
|
-
"save-dev": "^0.0.1-security",
|
|
88
88
|
"socket.io-client": "^4.7.5",
|
|
89
|
-
"styled-components": "^5.2.3"
|
|
89
|
+
"styled-components": "^5.2.3",
|
|
90
|
+
"@testing-library/dom": "^10.4.0",
|
|
91
|
+
"@testing-library/jest-dom": "^6.6.3",
|
|
92
|
+
"@testing-library/react": "^16.3.0",
|
|
93
|
+
"@testing-library/user-event": "^13.5.0",
|
|
94
|
+
"web-vitals": "^2.1.4"
|
|
90
95
|
},
|
|
91
96
|
"devDependencies": {
|
|
92
97
|
"@babel/cli": "^7.13.14",
|
|
@@ -113,7 +118,11 @@
|
|
|
113
118
|
"url-loader": "^4.1.1",
|
|
114
119
|
"webpack": "^5.98.0",
|
|
115
120
|
"webpack-cli": "^6.0.1",
|
|
116
|
-
"webpack-dev-server": "^5.2.0"
|
|
121
|
+
"webpack-dev-server": "^5.2.0",
|
|
122
|
+
"autoprefixer": "^10.4.21",
|
|
123
|
+
"postcss": "^8.5.3",
|
|
124
|
+
"react-app-rewired": "^2.2.1",
|
|
125
|
+
"tailwindcss": "^3.4.1"
|
|
117
126
|
},
|
|
118
127
|
"scripts": {
|
|
119
128
|
"publish:npm": "rm -rf dist && mkdir dist && babel src/lib -d dist --copy-files",
|