@elliemae/pui-app-sdk 2.8.3 → 2.11.0
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/cjs/analytics/base-data.js +22 -0
- package/dist/cjs/analytics/index.js +37 -0
- package/dist/cjs/analytics/user-session.js +31 -17
- package/dist/cjs/analytics/user-wait.js +13 -5
- package/dist/cjs/api/auth/index.js +16 -13
- package/dist/cjs/api/helpers.js +17 -3
- package/dist/cjs/api/users/index.js +4 -3
- package/dist/cjs/communication/http-client/index.js +21 -16
- package/dist/cjs/communication/http-client/response-interceptor.js +2 -3
- package/dist/cjs/communication/http-client/tests/index.test-disable.js +6 -5
- package/dist/cjs/data/auth/actions.js +28 -22
- package/dist/cjs/data/breakpoint/index.js +3 -1
- package/dist/cjs/data/live-message/index.js +11 -8
- package/dist/cjs/data/reducers.js +2 -1
- package/dist/cjs/data/store.js +8 -4
- package/dist/cjs/data/wait-message/actions.js +9 -6
- package/dist/cjs/data/wait-message/reducer.js +17 -13
- package/dist/cjs/index.js +18 -1
- package/dist/cjs/route/index.js +9 -6
- package/dist/cjs/route/private-route/index.js +10 -9
- package/dist/cjs/sideeffect/auth/index.js +10 -6
- package/dist/cjs/utils/app-config/config.js +21 -4
- package/dist/cjs/utils/app-config/index.js +17 -13
- package/dist/cjs/utils/app-host-integration/react.js +10 -7
- package/dist/cjs/utils/auth/index.js +34 -33
- package/dist/cjs/utils/micro-frontend/guest.js +10 -7
- package/dist/cjs/utils/micro-frontend/host.js +12 -1
- package/dist/cjs/utils/micro-frontend/index.js +2 -4
- package/dist/cjs/utils/service-worker.js +2 -1
- package/dist/cjs/utils/session.js +13 -5
- package/dist/cjs/utils/storybook/theme.js +12 -9
- package/dist/cjs/utils/testing/index.js +18 -9
- package/dist/cjs/utils/testing/render-with-redux.js +14 -11
- package/dist/cjs/utils/testing/render-with-router-redux.js +20 -17
- package/dist/cjs/utils/testing/render-with-router.js +16 -13
- package/dist/cjs/utils/testing/render-with-state-addons.js +14 -7
- package/dist/cjs/utils/web-storage.js +6 -0
- package/dist/cjs/view/app-root/hosted-app.js +8 -5
- package/dist/cjs/view/app-root/index.js +23 -20
- package/dist/cjs/view/app-root/stand-alone-app.js +8 -5
- package/dist/cjs/view/app-root/style.js +6 -3
- package/dist/cjs/view/error-toast/index.stories.js +29 -22
- package/dist/cjs/view/fetch-host-app-data/index.js +2 -2
- package/dist/cjs/view/fetch-host-app-data/store.js +8 -2
- package/dist/cjs/view/fields/check-box/index.js +28 -20
- package/dist/cjs/view/fields/check-box/index.stories.js +24 -20
- package/dist/cjs/view/fields/check-box/set-value.stories.js +21 -17
- package/dist/cjs/view/fields/combo-box/index.js +28 -22
- package/dist/cjs/view/fields/connect-form.js +4 -3
- package/dist/cjs/view/fields/date-input/index.js +21 -15
- package/dist/cjs/view/fields/date-input/index.stories.js +1 -1
- package/dist/cjs/view/fields/date-picker/index.js +21 -15
- package/dist/cjs/view/fields/date-picker/index.stories.js +1 -1
- package/dist/cjs/view/fields/form-item-layout/index.js +20 -16
- package/dist/cjs/view/fields/input-mask/index.js +24 -16
- package/dist/cjs/view/fields/large-text-box/index.js +21 -15
- package/dist/cjs/view/fields/radio/index.js +26 -20
- package/dist/cjs/view/fields/radio/index.stories.js +21 -17
- package/dist/cjs/view/fields/radio/set-value.stories.js +19 -15
- package/dist/cjs/view/fields/radio-group/index.js +22 -16
- package/dist/cjs/view/fields/radio-group/index.stories.js +44 -37
- package/dist/cjs/view/fields/text-box/index.js +21 -15
- package/dist/cjs/view/fields/watch-value.js +5 -4
- package/dist/cjs/view/form/index.js +10 -9
- package/dist/cjs/view/form/index.stories.js +6 -3
- package/dist/cjs/view/form/submit-button/index.js +3 -2
- package/dist/cjs/view/form/usecases.stories.js +6 -3
- package/dist/cjs/view/guest-unload-handlers/index.js +2 -1
- package/dist/cjs/view/header/center-region/index.js +18 -8
- package/dist/cjs/view/header/index.js +11 -8
- package/dist/cjs/view/live-message/index.stories.js +2 -0
- package/dist/cjs/view/loadable/index.js +2 -1
- package/dist/cjs/view/login/index.js +6 -5
- package/dist/cjs/view/message-to-host-app/index.js +2 -1
- package/dist/cjs/view/micro-app/app-factory/index.js +39 -23
- package/dist/cjs/view/micro-app/resources/manifest.js +29 -16
- package/dist/cjs/view/micro-app/resources/script.js +29 -22
- package/dist/cjs/view/micro-app/resources/style.js +27 -20
- package/dist/cjs/view/micro-app/use-app-will-render.js +13 -10
- package/dist/cjs/view/micro-app/utils.js +6 -0
- package/dist/cjs/view/micro-iframe-app/app.js +7 -6
- package/dist/cjs/view/micro-iframe-app/iframe/index.js +8 -7
- package/dist/cjs/view/micro-iframe-app/index.js +5 -4
- package/dist/cjs/view/micro-iframe-app/use-frame-loaded.js +5 -4
- package/dist/cjs/view/modals/error/index.js +9 -6
- package/dist/cjs/view/modals/navigation-prompt/index.js +7 -4
- package/dist/cjs/view/modals/session-expiry/customHooks.js +7 -3
- package/dist/cjs/view/modals/session-expiry/index.js +8 -5
- package/dist/cjs/view/modals/wait-message/html-wait-message.js +4 -3
- package/dist/cjs/view/modals/wait-message/index.js +9 -8
- package/dist/cjs/view/modals/wait-message/index.stories.js +5 -4
- package/dist/cjs/view/render-with-delay/index.js +4 -3
- package/dist/cjs/view/useMediaBreakpoints/index.js +10 -0
- package/dist/es/analytics/base-data.js +10 -0
- package/dist/es/analytics/index.js +28 -0
- package/dist/es/analytics/user-session.js +30 -17
- package/dist/es/analytics/user-wait.js +12 -5
- package/dist/es/api/auth/index.js +16 -13
- package/dist/es/api/helpers.js +13 -3
- package/dist/es/api/users/index.js +4 -3
- package/dist/es/communication/http-client/index.js +20 -16
- package/dist/es/communication/http-client/response-interceptor.js +2 -3
- package/dist/es/communication/http-client/tests/index.test-disable.js +6 -5
- package/dist/es/data/auth/actions.js +28 -22
- package/dist/es/data/breakpoint/index.js +3 -1
- package/dist/es/data/live-message/index.js +11 -8
- package/dist/es/data/reducers.js +2 -1
- package/dist/es/data/store.js +8 -4
- package/dist/es/data/wait-message/actions.js +9 -6
- package/dist/es/data/wait-message/reducer.js +16 -12
- package/dist/es/index.js +3 -1
- package/dist/es/route/index.js +7 -6
- package/dist/es/route/private-route/index.js +10 -9
- package/dist/es/sideeffect/auth/index.js +10 -6
- package/dist/es/utils/app-config/config.js +18 -4
- package/dist/es/utils/app-config/index.js +17 -13
- package/dist/es/utils/app-host-integration/react.js +10 -7
- package/dist/es/utils/auth/index.js +34 -33
- package/dist/es/utils/micro-frontend/guest.js +9 -6
- package/dist/es/utils/micro-frontend/host.js +11 -1
- package/dist/es/utils/micro-frontend/index.js +2 -2
- package/dist/es/utils/service-worker.js +2 -1
- package/dist/es/utils/session.js +14 -5
- package/dist/es/utils/storybook/theme.js +12 -9
- package/dist/es/utils/testing/index.js +12 -9
- package/dist/es/utils/testing/render-with-redux.js +14 -11
- package/dist/es/utils/testing/render-with-router-redux.js +20 -17
- package/dist/es/utils/testing/render-with-router.js +16 -13
- package/dist/es/utils/testing/render-with-state-addons.js +11 -7
- package/dist/es/utils/web-storage.js +3 -0
- package/dist/es/view/app-root/hosted-app.js +8 -5
- package/dist/es/view/app-root/index.js +23 -20
- package/dist/es/view/app-root/stand-alone-app.js +8 -5
- package/dist/es/view/app-root/style.js +6 -3
- package/dist/es/view/error-toast/index.stories.js +29 -22
- package/dist/es/view/fetch-host-app-data/index.js +2 -2
- package/dist/es/view/fetch-host-app-data/store.js +6 -2
- package/dist/es/view/fields/check-box/index.js +26 -20
- package/dist/es/view/fields/check-box/index.stories.js +24 -20
- package/dist/es/view/fields/check-box/set-value.stories.js +21 -17
- package/dist/es/view/fields/combo-box/index.js +28 -22
- package/dist/es/view/fields/connect-form.js +4 -3
- package/dist/es/view/fields/date-input/index.js +21 -15
- package/dist/es/view/fields/date-input/index.stories.js +1 -1
- package/dist/es/view/fields/date-picker/index.js +21 -15
- package/dist/es/view/fields/date-picker/index.stories.js +1 -1
- package/dist/es/view/fields/form-item-layout/index.js +20 -16
- package/dist/es/view/fields/input-mask/index.js +22 -16
- package/dist/es/view/fields/large-text-box/index.js +21 -15
- package/dist/es/view/fields/radio/index.js +26 -20
- package/dist/es/view/fields/radio/index.stories.js +21 -17
- package/dist/es/view/fields/radio/set-value.stories.js +19 -15
- package/dist/es/view/fields/radio-group/index.js +22 -16
- package/dist/es/view/fields/radio-group/index.stories.js +44 -37
- package/dist/es/view/fields/text-box/index.js +21 -15
- package/dist/es/view/fields/watch-value.js +5 -4
- package/dist/es/view/form/index.js +10 -9
- package/dist/es/view/form/index.stories.js +6 -3
- package/dist/es/view/form/submit-button/index.js +3 -2
- package/dist/es/view/form/usecases.stories.js +6 -3
- package/dist/es/view/guest-unload-handlers/index.js +2 -1
- package/dist/es/view/header/center-region/index.js +16 -8
- package/dist/es/view/header/index.js +11 -8
- package/dist/es/view/loadable/index.js +2 -1
- package/dist/es/view/login/index.js +6 -5
- package/dist/es/view/message-to-host-app/index.js +2 -1
- package/dist/es/view/micro-app/app-factory/index.js +33 -23
- package/dist/es/view/micro-app/resources/manifest.js +25 -15
- package/dist/es/view/micro-app/resources/script.js +28 -21
- package/dist/es/view/micro-app/resources/style.js +27 -20
- package/dist/es/view/micro-app/use-app-will-render.js +12 -9
- package/dist/es/view/micro-app/utils.js +3 -0
- package/dist/es/view/micro-iframe-app/app.js +7 -6
- package/dist/es/view/micro-iframe-app/iframe/index.js +8 -7
- package/dist/es/view/micro-iframe-app/index.js +5 -4
- package/dist/es/view/micro-iframe-app/use-frame-loaded.js +5 -4
- package/dist/es/view/modals/error/index.js +7 -6
- package/dist/es/view/modals/navigation-prompt/index.js +5 -4
- package/dist/es/view/modals/session-expiry/customHooks.js +2 -1
- package/dist/es/view/modals/session-expiry/index.js +6 -5
- package/dist/es/view/modals/wait-message/html-wait-message.js +4 -3
- package/dist/es/view/modals/wait-message/index.js +9 -8
- package/dist/es/view/modals/wait-message/index.stories.js +5 -4
- package/dist/es/view/render-with-delay/index.js +4 -3
- package/dist/es/view/useMediaBreakpoints/index.js +5 -0
- package/dist/public/assets/index.ad459dcebaa616bff55e77d860405729.svg +1 -0
- package/dist/public/assets/index.dae17c8817fd9c5ab29e7c3a8925a1f4.svg +1 -0
- package/dist/public/assets/logo.0cbd33c5006f8ea6d106f8ab13f6e6dc.svg +1 -0
- package/dist/public/index.html +1 -1
- package/dist/public/js/emuiAppSdk.bdec42736fbd0fbcbe9a.js +3 -0
- package/dist/public/js/{emuiAppSdk.555dc403d2552c23928a.js.LICENSE.txt → emuiAppSdk.bdec42736fbd0fbcbe9a.js.LICENSE.txt} +0 -9
- package/dist/public/js/emuiAppSdk.bdec42736fbd0fbcbe9a.js.gz +0 -0
- package/dist/public/js/emuiAppSdk.bdec42736fbd0fbcbe9a.js.map +1 -0
- package/dist/types/analytics/base-data.d.ts +8 -0
- package/dist/types/analytics/index.d.ts +5 -0
- package/dist/types/analytics/user-session.d.ts +1 -4
- package/dist/types/communication/http-client/index.d.ts +2 -2
- package/dist/types/communication/http-client/request-interceptor.d.ts +1 -1
- package/dist/types/communication/http-client/response-interceptor.d.ts +1 -1
- package/dist/types/communication/http-client/retry-axios.d.ts +5 -2
- package/dist/types/index.d.ts +2 -1
- package/dist/types/utils/micro-frontend/host.d.ts +3 -2
- package/dist/types/utils/window.d.ts +3 -3
- package/dist/types/view/fields/date-input/index.d.ts +1 -2
- package/dist/types/view/fields/date-picker/index.d.ts +1 -2
- package/dist/types/view/visually-hidden/index.d.ts +1 -1
- package/package.json +17 -17
- package/dist/cjs/analytics/utils.js +0 -13
- package/dist/cjs/data/tests/store.test.js +0 -32
- package/dist/es/analytics/utils.js +0 -4
- package/dist/es/data/tests/store.test.js +0 -32
- package/dist/public/assets/index.0944904d91ed62aebf865bc6461471aa.svg +0 -4
- package/dist/public/assets/index.4c19242eb7de64399b205c842bf3185c.svg +0 -5
- package/dist/public/assets/logo.6799a57c45dd9c96b44e2bac6c4ee12c.svg +0 -2
- package/dist/public/js/emuiAppSdk.555dc403d2552c23928a.js +0 -3
- package/dist/public/js/emuiAppSdk.555dc403d2552c23928a.js.gz +0 -0
- package/dist/public/js/emuiAppSdk.555dc403d2552c23928a.js.map +0 -1
- package/dist/types/analytics/utils.d.ts +0 -4
|
@@ -2,6 +2,8 @@
|
|
|
2
2
|
|
|
3
3
|
require("core-js/modules/esnext.weak-map.delete-all.js");
|
|
4
4
|
|
|
5
|
+
require("core-js/modules/esnext.weak-map.emplace.js");
|
|
6
|
+
|
|
5
7
|
require("core-js/modules/web.dom-collections.iterator.js");
|
|
6
8
|
|
|
7
9
|
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
|
@@ -35,21 +37,27 @@ function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "functio
|
|
|
35
37
|
|
|
36
38
|
function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
|
|
37
39
|
|
|
38
|
-
const InputMask =
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
}
|
|
40
|
+
const InputMask = _ref => {
|
|
41
|
+
let {
|
|
42
|
+
name,
|
|
43
|
+
defaultValue = '',
|
|
44
|
+
rules = {},
|
|
45
|
+
mask,
|
|
46
|
+
...rest
|
|
47
|
+
} = _ref;
|
|
48
|
+
return /*#__PURE__*/(0, _jsx3.default)(_reactHookForm.Controller, {
|
|
49
|
+
name: name,
|
|
50
|
+
rules: rules,
|
|
51
|
+
defaultValue: defaultValue,
|
|
52
|
+
render: _ref2 => {
|
|
53
|
+
let {
|
|
54
|
+
field
|
|
55
|
+
} = _ref2;
|
|
56
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsx)(_InputMask.default, { ...rest,
|
|
57
|
+
...field
|
|
58
|
+
});
|
|
59
|
+
}
|
|
60
|
+
});
|
|
61
|
+
};
|
|
54
62
|
|
|
55
63
|
exports.InputMask = InputMask;
|
|
@@ -15,20 +15,26 @@ var _reactHookForm = require("react-hook-form");
|
|
|
15
15
|
|
|
16
16
|
var _jsxRuntime = require("react/jsx-runtime");
|
|
17
17
|
|
|
18
|
-
const LargeTextBox =
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
}
|
|
18
|
+
const LargeTextBox = _ref => {
|
|
19
|
+
let {
|
|
20
|
+
name,
|
|
21
|
+
defaultValue = '',
|
|
22
|
+
rules = {},
|
|
23
|
+
...rest
|
|
24
|
+
} = _ref;
|
|
25
|
+
return /*#__PURE__*/(0, _jsx3.default)(_reactHookForm.Controller, {
|
|
26
|
+
name: name,
|
|
27
|
+
rules: rules,
|
|
28
|
+
defaultValue: defaultValue,
|
|
29
|
+
render: _ref2 => {
|
|
30
|
+
let {
|
|
31
|
+
field
|
|
32
|
+
} = _ref2;
|
|
33
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsx)(_LargeInputText.default, { ...rest,
|
|
34
|
+
...field
|
|
35
|
+
});
|
|
36
|
+
}
|
|
37
|
+
});
|
|
38
|
+
};
|
|
33
39
|
|
|
34
40
|
exports.LargeTextBox = LargeTextBox;
|
|
@@ -15,26 +15,32 @@ var _reactHookForm = require("react-hook-form");
|
|
|
15
15
|
|
|
16
16
|
var _jsxRuntime = require("react/jsx-runtime");
|
|
17
17
|
|
|
18
|
-
const Radio =
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
18
|
+
const Radio = _ref => {
|
|
19
|
+
let {
|
|
20
|
+
name,
|
|
21
|
+
defaultChecked = false,
|
|
22
|
+
rules = {},
|
|
23
|
+
...rest
|
|
24
|
+
} = _ref;
|
|
25
|
+
return /*#__PURE__*/(0, _jsx3.default)(_reactHookForm.Controller, {
|
|
26
|
+
name: name,
|
|
27
|
+
rules: rules,
|
|
28
|
+
render: _ref2 => {
|
|
29
|
+
let {
|
|
30
|
+
field: {
|
|
31
|
+
onChange,
|
|
32
|
+
value,
|
|
33
|
+
...restProps
|
|
34
|
+
}
|
|
35
|
+
} = _ref2;
|
|
36
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsx)(_Radio.default, { ...rest,
|
|
37
|
+
...restProps,
|
|
38
|
+
checked: value,
|
|
39
|
+
defaultChecked: defaultChecked,
|
|
40
|
+
onChange: e => onChange(((e || {}).target || {}).checked)
|
|
41
|
+
});
|
|
31
42
|
}
|
|
32
|
-
})
|
|
33
|
-
|
|
34
|
-
checked: value,
|
|
35
|
-
defaultChecked: defaultChecked,
|
|
36
|
-
onChange: e => onChange(((e || {}).target || {}).checked)
|
|
37
|
-
})
|
|
38
|
-
});
|
|
43
|
+
});
|
|
44
|
+
};
|
|
39
45
|
|
|
40
46
|
exports.Radio = Radio;
|
|
@@ -21,24 +21,28 @@ var _watchValue = require("../watch-value.js");
|
|
|
21
21
|
|
|
22
22
|
var _jsxRuntime = require("react/jsx-runtime");
|
|
23
23
|
|
|
24
|
-
const Template =
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
24
|
+
const Template = _ref => {
|
|
25
|
+
let {
|
|
26
|
+
name,
|
|
27
|
+
...rest
|
|
28
|
+
} = _ref;
|
|
29
|
+
return /*#__PURE__*/(0, _jsx3.default)(_index.Form, {}, void 0, /*#__PURE__*/(0, _jsx3.default)(_connectForm.ConnectForm, {}, void 0, _ref2 => {
|
|
30
|
+
let {
|
|
31
|
+
formState: {
|
|
32
|
+
errors
|
|
33
|
+
}
|
|
34
|
+
} = _ref2;
|
|
35
|
+
const hasError = !!(0, _reactHookForm.get)(errors, name);
|
|
36
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsx)(_index2.Radio, {
|
|
37
|
+
name: name,
|
|
38
|
+
...rest,
|
|
39
|
+
hasError: hasError
|
|
40
|
+
});
|
|
41
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_watchValue.WatchValue, {
|
|
34
42
|
name: name,
|
|
35
|
-
...rest
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_watchValue.WatchValue, {
|
|
39
|
-
name: name,
|
|
40
|
-
...rest
|
|
41
|
-
}));
|
|
43
|
+
...rest
|
|
44
|
+
}));
|
|
45
|
+
};
|
|
42
46
|
|
|
43
47
|
var _default = {
|
|
44
48
|
title: 'Components/Form/Controls/Radio',
|
|
@@ -42,21 +42,25 @@ const ToggleValue = () => {
|
|
|
42
42
|
});
|
|
43
43
|
};
|
|
44
44
|
|
|
45
|
-
const Template =
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
45
|
+
const Template = _ref => {
|
|
46
|
+
let {
|
|
47
|
+
name,
|
|
48
|
+
...rest
|
|
49
|
+
} = _ref;
|
|
50
|
+
return /*#__PURE__*/(0, _jsx3.default)(_index.Form, {}, void 0, /*#__PURE__*/(0, _jsx3.default)(_connectForm.ConnectForm, {}, void 0, _ref2 => {
|
|
51
|
+
let {
|
|
52
|
+
formState: {
|
|
53
|
+
errors
|
|
54
|
+
}
|
|
55
|
+
} = _ref2;
|
|
56
|
+
const hasError = !!(0, _reactHookForm.get)(errors, name);
|
|
57
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsx)(_index2.Radio, {
|
|
58
|
+
name: name,
|
|
59
|
+
...rest,
|
|
60
|
+
hasError: hasError
|
|
61
|
+
});
|
|
62
|
+
}), _ToggleValue || (_ToggleValue = /*#__PURE__*/(0, _jsx3.default)(ToggleValue, {})));
|
|
63
|
+
};
|
|
60
64
|
|
|
61
65
|
var _default = {
|
|
62
66
|
title: 'Components/Form/Controls/Radio'
|
|
@@ -15,22 +15,28 @@ var _reactHookForm = require("react-hook-form");
|
|
|
15
15
|
|
|
16
16
|
var _jsxRuntime = require("react/jsx-runtime");
|
|
17
17
|
|
|
18
|
-
const RadioGroup =
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
18
|
+
const RadioGroup = _ref => {
|
|
19
|
+
let {
|
|
20
|
+
name,
|
|
21
|
+
rules = {},
|
|
22
|
+
...rest
|
|
23
|
+
} = _ref;
|
|
24
|
+
return /*#__PURE__*/(0, _jsx3.default)(_reactHookForm.Controller, {
|
|
25
|
+
name: name,
|
|
26
|
+
rules: rules,
|
|
27
|
+
render: _ref2 => {
|
|
28
|
+
let {
|
|
29
|
+
field: {
|
|
30
|
+
value,
|
|
31
|
+
...restProps
|
|
32
|
+
}
|
|
33
|
+
} = _ref2;
|
|
34
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsx)(_RadioGroup.default, { ...rest,
|
|
35
|
+
...restProps,
|
|
36
|
+
activeValue: value
|
|
37
|
+
});
|
|
29
38
|
}
|
|
30
|
-
})
|
|
31
|
-
|
|
32
|
-
activeValue: value
|
|
33
|
-
})
|
|
34
|
-
});
|
|
39
|
+
});
|
|
40
|
+
};
|
|
35
41
|
|
|
36
42
|
exports.RadioGroup = RadioGroup;
|
|
@@ -27,46 +27,53 @@ var _DSRadio, _DSRadio2;
|
|
|
27
27
|
|
|
28
28
|
const radioName = 'gender';
|
|
29
29
|
|
|
30
|
-
const Gender =
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
labelText: 'Gender',
|
|
37
|
-
required: true,
|
|
38
|
-
feedbackMessage
|
|
39
|
-
},
|
|
40
|
-
orientation: "horizontal",
|
|
41
|
-
...rest,
|
|
42
|
-
children: [_DSRadio || (_DSRadio = /*#__PURE__*/(0, _jsx3.default)(_Radio.default, {
|
|
30
|
+
const Gender = _ref => {
|
|
31
|
+
let {
|
|
32
|
+
feedbackMessage,
|
|
33
|
+
...rest
|
|
34
|
+
} = _ref;
|
|
35
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsxs)(_index.RadioGroup, {
|
|
43
36
|
name: radioName,
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
37
|
+
labelProps: {
|
|
38
|
+
labelText: 'Gender',
|
|
39
|
+
required: true,
|
|
40
|
+
feedbackMessage
|
|
41
|
+
},
|
|
42
|
+
orientation: "horizontal",
|
|
43
|
+
...rest,
|
|
44
|
+
children: [_DSRadio || (_DSRadio = /*#__PURE__*/(0, _jsx3.default)(_Radio.default, {
|
|
45
|
+
name: radioName,
|
|
46
|
+
value: "male",
|
|
47
|
+
labelText: "Male"
|
|
48
|
+
})), _DSRadio2 || (_DSRadio2 = /*#__PURE__*/(0, _jsx3.default)(_Radio.default, {
|
|
49
|
+
name: radioName,
|
|
50
|
+
value: "female",
|
|
51
|
+
labelText: "Female"
|
|
52
|
+
}))]
|
|
53
|
+
});
|
|
54
|
+
};
|
|
52
55
|
|
|
53
|
-
const Template =
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
56
|
+
const Template = _ref2 => {
|
|
57
|
+
let {
|
|
58
|
+
props
|
|
59
|
+
} = _ref2;
|
|
60
|
+
return /*#__PURE__*/(0, _jsx3.default)(_index2.Form, {}, void 0, /*#__PURE__*/(0, _jsx3.default)(_connectForm.ConnectForm, {}, void 0, _ref3 => {
|
|
61
|
+
let {
|
|
62
|
+
formState: {
|
|
63
|
+
errors
|
|
64
|
+
}
|
|
65
|
+
} = _ref3;
|
|
66
|
+
const errField = (0, _reactHookForm.get)(errors, radioName);
|
|
67
|
+
const feedbackMessage = errField === null || errField === void 0 ? void 0 : errField.message;
|
|
68
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsx)(Gender, {
|
|
69
|
+
feedbackMessage: feedbackMessage,
|
|
70
|
+
...props
|
|
71
|
+
});
|
|
72
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_watchValue.WatchValue, {
|
|
73
|
+
name: radioName,
|
|
64
74
|
...props
|
|
65
|
-
});
|
|
66
|
-
}
|
|
67
|
-
name: radioName,
|
|
68
|
-
...props
|
|
69
|
-
}));
|
|
75
|
+
}));
|
|
76
|
+
};
|
|
70
77
|
|
|
71
78
|
var _default = {
|
|
72
79
|
title: 'Components/Form/Controls/RadioGroup',
|
|
@@ -15,20 +15,26 @@ var _reactHookForm = require("react-hook-form");
|
|
|
15
15
|
|
|
16
16
|
var _jsxRuntime = require("react/jsx-runtime");
|
|
17
17
|
|
|
18
|
-
const TextBox =
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
}
|
|
18
|
+
const TextBox = _ref => {
|
|
19
|
+
let {
|
|
20
|
+
name,
|
|
21
|
+
defaultValue = '',
|
|
22
|
+
rules = {},
|
|
23
|
+
...rest
|
|
24
|
+
} = _ref;
|
|
25
|
+
return /*#__PURE__*/(0, _jsx3.default)(_reactHookForm.Controller, {
|
|
26
|
+
name: name,
|
|
27
|
+
defaultValue: defaultValue,
|
|
28
|
+
rules: rules,
|
|
29
|
+
render: _ref2 => {
|
|
30
|
+
let {
|
|
31
|
+
field
|
|
32
|
+
} = _ref2;
|
|
33
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsx)(_TextBox.default, { ...rest,
|
|
34
|
+
...field
|
|
35
|
+
});
|
|
36
|
+
}
|
|
37
|
+
});
|
|
38
|
+
};
|
|
33
39
|
|
|
34
40
|
exports.TextBox = TextBox;
|
|
@@ -15,10 +15,11 @@ var _reactHookForm = require("react-hook-form");
|
|
|
15
15
|
|
|
16
16
|
var _h;
|
|
17
17
|
|
|
18
|
-
const WatchValue =
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
18
|
+
const WatchValue = _ref => {
|
|
19
|
+
let {
|
|
20
|
+
name,
|
|
21
|
+
labelText
|
|
22
|
+
} = _ref;
|
|
22
23
|
const {
|
|
23
24
|
watch
|
|
24
25
|
} = (0, _reactHookForm.useFormContext)();
|
|
@@ -13,15 +13,16 @@ var _reactHookForm = require("react-hook-form");
|
|
|
13
13
|
|
|
14
14
|
var _jsxRuntime = require("react/jsx-runtime");
|
|
15
15
|
|
|
16
|
-
const Form =
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
16
|
+
const Form = _ref => {
|
|
17
|
+
let {
|
|
18
|
+
/* eslint-disable indent */
|
|
19
|
+
classname,
|
|
20
|
+
reactHookFormProps = {
|
|
21
|
+
mode: 'onBlur'
|
|
22
|
+
},
|
|
23
|
+
children,
|
|
24
|
+
onSubmit
|
|
25
|
+
} = _ref;
|
|
25
26
|
const methods = (0, _reactHookForm.useForm)(reactHookFormProps);
|
|
26
27
|
const formProps = {};
|
|
27
28
|
if (onSubmit) formProps.onSubmit = methods.handleSubmit(onSubmit);
|
|
@@ -37,9 +37,12 @@ var _default = {
|
|
|
37
37
|
exports.default = _default;
|
|
38
38
|
const StyledButton = /*#__PURE__*/(0, _styledComponents.default)(_index.FormSubmitButton).withConfig({
|
|
39
39
|
componentId: "sc-1mzmcta-0"
|
|
40
|
-
})(["margin-top:", ";"],
|
|
41
|
-
|
|
42
|
-
|
|
40
|
+
})(["margin-top:", ";"], _ref => {
|
|
41
|
+
let {
|
|
42
|
+
theme
|
|
43
|
+
} = _ref;
|
|
44
|
+
return theme.space.xs;
|
|
45
|
+
});
|
|
43
46
|
|
|
44
47
|
const WatchDashBoard = () => {
|
|
45
48
|
const {
|
|
@@ -13,8 +13,9 @@ var _Button = _interopRequireDefault(require("@elliemae/ds-basic/Button"));
|
|
|
13
13
|
|
|
14
14
|
var _jsxRuntime = require("react/jsx-runtime");
|
|
15
15
|
|
|
16
|
-
const FormSubmitButton =
|
|
17
|
-
|
|
16
|
+
const FormSubmitButton = _ref => {
|
|
17
|
+
let { ...rest
|
|
18
|
+
} = _ref;
|
|
18
19
|
const {
|
|
19
20
|
formState,
|
|
20
21
|
formProps: {
|
|
@@ -35,9 +35,12 @@ var _default = {
|
|
|
35
35
|
exports.default = _default;
|
|
36
36
|
const StyledButton = /*#__PURE__*/(0, _styledComponents.default)(_index.FormSubmitButton).withConfig({
|
|
37
37
|
componentId: "sc-1wwguuk-0"
|
|
38
|
-
})(["margin-top:", ";"],
|
|
39
|
-
|
|
40
|
-
|
|
38
|
+
})(["margin-top:", ";"], _ref => {
|
|
39
|
+
let {
|
|
40
|
+
theme
|
|
41
|
+
} = _ref;
|
|
42
|
+
return theme.space.xs;
|
|
43
|
+
});
|
|
41
44
|
|
|
42
45
|
const Template = args => /*#__PURE__*/(0, _jsxRuntime.jsxs)(_index2.Form, { ...args,
|
|
43
46
|
children: [_FirstName || (_FirstName = /*#__PURE__*/(0, _jsx3.default)(_personalInfoSection.FirstName, {})), _DOB || (_DOB = /*#__PURE__*/(0, _jsx3.default)(_personalInfoSection.DOB, {})), _State || (_State = /*#__PURE__*/(0, _jsx3.default)(_personalInfoSection.State, {})), _MaritalStatus || (_MaritalStatus = /*#__PURE__*/(0, _jsx3.default)(_personalInfoSection.MaritalStatus, {})), /*#__PURE__*/(0, _jsxRuntime.jsx)(StyledButton, { ...btnProps
|
|
@@ -17,7 +17,8 @@ const onGuestUnloadStart = () => new Promise(resolve => {
|
|
|
17
17
|
|
|
18
18
|
exports.onGuestUnloadStart = onGuestUnloadStart;
|
|
19
19
|
|
|
20
|
-
const notifyGuestUnloadComplete = (guestAppConfirmation, guestAppId
|
|
20
|
+
const notifyGuestUnloadComplete = function (guestAppConfirmation, guestAppId) {
|
|
21
|
+
let unloadType = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : 'close_loan';
|
|
21
22
|
(0, _index.sendMessageToHost)({
|
|
22
23
|
guestAppId,
|
|
23
24
|
message: {
|
|
@@ -11,6 +11,10 @@ var _jsx2 = _interopRequireDefault(require("@babel/runtime/helpers/jsx"));
|
|
|
11
11
|
|
|
12
12
|
require("core-js/modules/es.string.replace.js");
|
|
13
13
|
|
|
14
|
+
require("core-js/modules/esnext.async-iterator.map.js");
|
|
15
|
+
|
|
16
|
+
require("core-js/modules/esnext.iterator.map.js");
|
|
17
|
+
|
|
14
18
|
var _reactRouterDom = require("react-router-dom");
|
|
15
19
|
|
|
16
20
|
var _styledComponents = _interopRequireDefault(require("styled-components"));
|
|
@@ -31,13 +35,19 @@ const StyledNavLink = /*#__PURE__*/(0, _styledComponents.default)(_reactRouterDo
|
|
|
31
35
|
})(["display:flex;align-items:center;color:", ";text-decoration:none;text-transform:uppercase;height:100%;padding:0 ", " 0 ", ";&.", "{background-color:#48acff;}"], props => props.theme.colors.neutral['000'], props => props.theme.space.xs, props => props.theme.space.xs, activeClassName);
|
|
32
36
|
const publicPath = (process.env.ASSET_PATH || '/').replace(/\/?$/, '');
|
|
33
37
|
|
|
34
|
-
const CenterRegion =
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
38
|
+
const CenterRegion = _ref => {
|
|
39
|
+
let {
|
|
40
|
+
links = []
|
|
41
|
+
} = _ref;
|
|
42
|
+
return /*#__PURE__*/(0, _jsx2.default)(NavList, {}, void 0, links.map(_ref2 => {
|
|
43
|
+
let {
|
|
44
|
+
name = '',
|
|
45
|
+
path = ''
|
|
46
|
+
} = _ref2;
|
|
47
|
+
return /*#__PURE__*/(0, _jsx2.default)(NavListItem, {}, path, /*#__PURE__*/(0, _jsx2.default)(StyledNavLink, {
|
|
48
|
+
to: "".concat(publicPath).concat(path.replace(/^\/?/, '/'))
|
|
49
|
+
}, void 0, name));
|
|
50
|
+
}));
|
|
51
|
+
};
|
|
42
52
|
|
|
43
53
|
exports.CenterRegion = CenterRegion;
|
|
@@ -25,13 +25,16 @@ const HeaderContainer = /*#__PURE__*/_styledComponents.default.header.withConfig
|
|
|
25
25
|
componentId: "sc-cvwjlr-0"
|
|
26
26
|
})(["display:flex;height:56px;background-color:#2080cd;padding:0px ", " 0px ", ";"], props => props.theme.space.xs, props => props.theme.space.xxs);
|
|
27
27
|
|
|
28
|
-
const Header =
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
}
|
|
28
|
+
const Header = _ref => {
|
|
29
|
+
let {
|
|
30
|
+
links = [],
|
|
31
|
+
show = false
|
|
32
|
+
} = _ref;
|
|
33
|
+
return (0, _index.isStandAloneGuest)() || (0, _index.isHost)() || show ? /*#__PURE__*/(0, _jsx2.default)(HeaderContainer, {
|
|
34
|
+
role: "banner"
|
|
35
|
+
}, void 0, _LogoRegion || (_LogoRegion = /*#__PURE__*/(0, _jsx2.default)(_index2.LogoRegion, {})), /*#__PURE__*/(0, _jsx2.default)(_index3.CenterRegion, {
|
|
36
|
+
links: links
|
|
37
|
+
}), _NavRegion || (_NavRegion = /*#__PURE__*/(0, _jsx2.default)(_index4.NavRegion, {}))) : null;
|
|
38
|
+
};
|
|
36
39
|
|
|
37
40
|
exports.Header = Header;
|
|
@@ -18,7 +18,8 @@ var _jsxRuntime = require("react/jsx-runtime");
|
|
|
18
18
|
var _WaitMessageLauncher;
|
|
19
19
|
|
|
20
20
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
21
|
-
const loadable = (importFunc
|
|
21
|
+
const loadable = function (importFunc) {
|
|
22
|
+
let fallback = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : _WaitMessageLauncher || (_WaitMessageLauncher = /*#__PURE__*/(0, _jsx3.default)(_waitMessageLauncher.WaitMessageLauncher, {}));
|
|
22
23
|
const LazyComponent = /*#__PURE__*/(0, _react.lazy)(importFunc); // eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
23
24
|
|
|
24
25
|
return props => /*#__PURE__*/(0, _jsx3.default)(_react.Suspense, {
|
|
@@ -15,11 +15,12 @@ var _actions = require("../../data/auth/actions.js");
|
|
|
15
15
|
|
|
16
16
|
var _jsxRuntime = require("react/jsx-runtime");
|
|
17
17
|
|
|
18
|
-
const Login =
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
18
|
+
const Login = _ref => {
|
|
19
|
+
let {
|
|
20
|
+
clientId,
|
|
21
|
+
scope,
|
|
22
|
+
responseType
|
|
23
|
+
} = _ref;
|
|
23
24
|
const dispatch = (0, _reactRedux.useAppDispatch)();
|
|
24
25
|
(0, _react.useEffect)(() => {
|
|
25
26
|
(0, _index.login)({
|
|
@@ -20,7 +20,8 @@ const getHostAppData = (action, resolve) => event => {
|
|
|
20
20
|
|
|
21
21
|
exports.getHostAppData = getHostAppData;
|
|
22
22
|
|
|
23
|
-
const sendMessageToHost = (message
|
|
23
|
+
const sendMessageToHost = function (message) {
|
|
24
|
+
let hostedAppUrl = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : document.referrer;
|
|
24
25
|
window.parent.postMessage(message, hostedAppUrl);
|
|
25
26
|
};
|
|
26
27
|
|