@elliemae/pui-app-sdk 2.12.3 → 2.13.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/dist/cjs/analytics/appdynamics.js +36 -0
- package/dist/cjs/analytics/index.js +15 -13
- package/dist/cjs/analytics/page-view-event.js +16 -19
- package/dist/cjs/analytics/user-session-event.js +13 -14
- package/dist/cjs/analytics/user-wait-event.js +4 -4
- package/dist/cjs/analytics/{ba-event-parameters.js → web-analytics.js} +2 -2
- package/dist/cjs/api/auth/index.js +13 -20
- package/dist/cjs/api/helpers.js +4 -16
- package/dist/cjs/api/users/index.js +4 -5
- package/dist/cjs/communication/http-client/index.js +16 -21
- package/dist/cjs/communication/http-client/retry-axios.js +0 -2
- package/dist/cjs/communication/http-client/tests/index.test-disable.js +5 -6
- package/dist/cjs/data/auth/actions.js +22 -28
- package/dist/cjs/data/breakpoint/index.js +1 -3
- package/dist/cjs/data/live-message/index.js +8 -11
- package/dist/cjs/data/reducers.js +1 -2
- package/dist/cjs/data/store.js +4 -8
- package/dist/cjs/data/wait-message/actions.js +6 -9
- package/dist/cjs/data/wait-message/reducer.js +13 -17
- package/dist/cjs/index.js +21 -15
- package/dist/cjs/route/index.js +23 -12
- package/dist/cjs/route/{usePageView.js → page-view.js} +12 -22
- package/dist/cjs/route/private-route/index.js +9 -10
- package/dist/cjs/sideeffect/auth/index.js +6 -10
- package/dist/cjs/utils/app-config/config.js +3 -14
- package/dist/cjs/utils/app-config/index.js +11 -15
- package/dist/cjs/utils/app-host-integration/react.js +7 -10
- package/dist/cjs/utils/auth/index.js +40 -44
- package/dist/cjs/utils/font-size.js +1 -1
- package/dist/cjs/utils/helpers.js +0 -6
- package/dist/cjs/utils/log-records.js +7 -7
- package/dist/cjs/utils/micro-frontend/guest.js +31 -8
- package/dist/cjs/utils/micro-frontend/host.js +14 -7
- package/dist/cjs/utils/micro-frontend/index.js +2 -4
- package/dist/cjs/utils/redact-pii.js +39 -0
- package/dist/cjs/utils/service-worker.js +2 -5
- package/dist/cjs/utils/session.js +2 -8
- package/dist/cjs/utils/storybook/theme.js +9 -12
- package/dist/cjs/utils/testing/index.js +9 -18
- package/dist/cjs/utils/testing/render-with-redux.js +11 -14
- package/dist/cjs/utils/testing/render-with-router-redux.js +17 -20
- package/dist/cjs/utils/testing/render-with-router.js +13 -16
- package/dist/cjs/utils/testing/render-with-state-addons.js +7 -16
- package/dist/cjs/utils/url.js +0 -8
- package/dist/cjs/utils/web-storage.js +1 -7
- package/dist/cjs/utils/window.js +0 -2
- package/dist/cjs/view/app-root/hosted-app.js +5 -8
- package/dist/cjs/view/app-root/index.js +20 -23
- package/dist/cjs/view/app-root/stand-alone-app.js +5 -8
- package/dist/cjs/view/app-root/style.js +5 -12
- package/dist/cjs/view/error-toast/index.stories.js +22 -31
- package/dist/cjs/view/fetch-host-app-data/store.js +1 -5
- package/dist/cjs/view/fields/check-box/index.js +20 -32
- package/dist/cjs/view/fields/check-box/index.stories.js +20 -24
- package/dist/cjs/view/fields/check-box/set-value.stories.js +17 -21
- package/dist/cjs/view/fields/combo-box/index.js +22 -28
- package/dist/cjs/view/fields/connect-form.js +3 -4
- package/dist/cjs/view/fields/date-input/index.js +15 -21
- package/dist/cjs/view/fields/date-picker/index.js +15 -21
- package/dist/cjs/view/fields/form-item-layout/index.js +16 -20
- package/dist/cjs/view/fields/input-mask/index.js +16 -28
- package/dist/cjs/view/fields/large-text-box/index.js +15 -21
- package/dist/cjs/view/fields/radio/index.js +20 -26
- package/dist/cjs/view/fields/radio/index.stories.js +17 -21
- package/dist/cjs/view/fields/radio/set-value.stories.js +15 -19
- package/dist/cjs/view/fields/radio-group/index.js +16 -22
- package/dist/cjs/view/fields/radio-group/index.stories.js +37 -44
- package/dist/cjs/view/fields/text-box/index.js +15 -21
- package/dist/cjs/view/fields/watch-value.js +4 -5
- package/dist/cjs/view/form/index.js +9 -10
- package/dist/cjs/view/form/index.stories.js +3 -6
- package/dist/cjs/view/form/submit-button/index.js +2 -3
- package/dist/cjs/view/form/usecases.stories.js +3 -6
- package/dist/cjs/view/guest-unload-handlers/index.js +1 -2
- package/dist/cjs/view/header/center-region/index.js +8 -20
- package/dist/cjs/view/header/index.js +8 -11
- package/dist/cjs/view/host-binding-events/index.js +2 -2
- package/dist/cjs/view/live-message/index.stories.js +0 -6
- package/dist/cjs/view/loadable/index.js +1 -2
- package/dist/cjs/view/login/index.js +5 -6
- package/dist/cjs/view/media-breakpoint/index.js +1 -1
- package/dist/cjs/view/message-to-host-app/index.js +1 -2
- package/dist/cjs/view/micro-app/app-factory/index.js +30 -48
- package/dist/cjs/view/micro-app/index.js +1 -1
- package/dist/cjs/view/micro-app/resources/manifest.js +27 -39
- package/dist/cjs/view/micro-app/resources/script.js +22 -35
- package/dist/cjs/view/micro-app/resources/style.js +20 -33
- package/dist/cjs/view/micro-app/use-app-will-render.js +12 -12
- package/dist/cjs/view/micro-app/utils.js +0 -6
- package/dist/cjs/view/micro-iframe-app/app.js +6 -9
- package/dist/cjs/view/micro-iframe-app/iframe/index.js +8 -9
- package/dist/cjs/view/micro-iframe-app/index.js +4 -7
- package/dist/cjs/view/micro-iframe-app/use-frame-loaded.js +5 -12
- package/dist/cjs/view/modals/error/index.js +6 -13
- package/dist/cjs/view/modals/navigation-prompt/index.js +4 -11
- package/dist/cjs/view/modals/session-expiry/customHooks.js +3 -5
- package/dist/cjs/view/modals/session-expiry/index.js +6 -13
- package/dist/cjs/view/modals/wait-message/html-wait-message.js +3 -4
- package/dist/cjs/view/modals/wait-message/index.js +8 -9
- package/dist/cjs/view/modals/wait-message/index.stories.js +4 -5
- package/dist/cjs/view/render-with-delay/index.js +3 -6
- package/dist/cjs/view/render-with-host-data/index.js +0 -2
- package/dist/cjs/view/session-timeout/index.js +0 -2
- package/dist/cjs/view/useMediaBreakpoints/index.js +0 -12
- package/dist/es/analytics/appdynamics.js +18 -0
- package/dist/es/analytics/index.js +14 -13
- package/dist/es/analytics/page-view-event.js +16 -19
- package/dist/es/analytics/user-session-event.js +12 -13
- package/dist/es/analytics/user-wait-event.js +4 -4
- package/dist/es/analytics/{ba-event-parameters.js → web-analytics.js} +2 -2
- package/dist/es/api/auth/index.js +13 -18
- package/dist/es/api/helpers.js +4 -14
- package/dist/es/api/users/index.js +4 -5
- package/dist/es/communication/http-client/index.js +16 -20
- package/dist/es/communication/http-client/retry-axios.js +0 -2
- package/dist/es/communication/http-client/tests/index.test-disable.js +5 -6
- package/dist/es/data/auth/actions.js +22 -28
- package/dist/es/data/breakpoint/index.js +1 -3
- package/dist/es/data/live-message/index.js +8 -11
- package/dist/es/data/reducers.js +1 -2
- package/dist/es/data/store.js +4 -8
- package/dist/es/data/wait-message/actions.js +6 -9
- package/dist/es/data/wait-message/reducer.js +12 -16
- package/dist/es/index.js +4 -1
- package/dist/es/route/index.js +23 -13
- package/dist/es/route/page-view.js +15 -0
- package/dist/es/route/private-route/index.js +9 -10
- package/dist/es/sideeffect/auth/index.js +6 -10
- package/dist/es/utils/app-config/config.js +3 -14
- package/dist/es/utils/app-config/index.js +11 -15
- package/dist/es/utils/app-host-integration/react.js +7 -10
- package/dist/es/utils/auth/index.js +39 -41
- package/dist/es/utils/font-size.js +1 -1
- package/dist/es/utils/helpers.js +0 -3
- package/dist/es/utils/log-records.js +7 -7
- package/dist/es/utils/micro-frontend/guest.js +29 -6
- package/dist/es/utils/micro-frontend/host.js +13 -7
- package/dist/es/utils/micro-frontend/index.js +2 -3
- package/dist/es/utils/redact-pii.js +31 -0
- package/dist/es/utils/service-worker.js +2 -4
- package/dist/es/utils/session.js +2 -8
- package/dist/es/utils/storybook/theme.js +9 -12
- package/dist/es/utils/testing/index.js +9 -12
- package/dist/es/utils/testing/render-with-redux.js +11 -14
- package/dist/es/utils/testing/render-with-router-redux.js +17 -20
- package/dist/es/utils/testing/render-with-router.js +13 -16
- package/dist/es/utils/testing/render-with-state-addons.js +7 -12
- package/dist/es/utils/url.js +0 -4
- package/dist/es/utils/web-storage.js +1 -4
- package/dist/es/utils/window.js +0 -1
- package/dist/es/view/app-root/hosted-app.js +5 -8
- package/dist/es/view/app-root/index.js +20 -23
- package/dist/es/view/app-root/stand-alone-app.js +5 -8
- package/dist/es/view/app-root/style.js +5 -10
- package/dist/es/view/error-toast/index.stories.js +22 -30
- package/dist/es/view/fetch-host-app-data/store.js +1 -5
- package/dist/es/view/fields/check-box/index.js +20 -26
- package/dist/es/view/fields/check-box/index.stories.js +20 -24
- package/dist/es/view/fields/check-box/set-value.stories.js +17 -21
- package/dist/es/view/fields/combo-box/index.js +22 -28
- package/dist/es/view/fields/connect-form.js +3 -4
- package/dist/es/view/fields/date-input/index.js +15 -21
- package/dist/es/view/fields/date-picker/index.js +15 -21
- package/dist/es/view/fields/form-item-layout/index.js +16 -20
- package/dist/es/view/fields/input-mask/index.js +16 -22
- package/dist/es/view/fields/large-text-box/index.js +15 -21
- package/dist/es/view/fields/radio/index.js +20 -26
- package/dist/es/view/fields/radio/index.stories.js +17 -21
- package/dist/es/view/fields/radio/set-value.stories.js +15 -19
- package/dist/es/view/fields/radio-group/index.js +16 -22
- package/dist/es/view/fields/radio-group/index.stories.js +37 -44
- package/dist/es/view/fields/text-box/index.js +15 -21
- package/dist/es/view/fields/watch-value.js +4 -5
- package/dist/es/view/form/index.js +9 -10
- package/dist/es/view/form/index.stories.js +3 -6
- package/dist/es/view/form/submit-button/index.js +2 -3
- package/dist/es/view/form/usecases.stories.js +3 -6
- package/dist/es/view/guest-unload-handlers/index.js +1 -2
- package/dist/es/view/header/center-region/index.js +8 -17
- package/dist/es/view/header/index.js +8 -11
- package/dist/es/view/host-binding-events/index.js +2 -2
- package/dist/es/view/live-message/index.stories.js +0 -1
- package/dist/es/view/loadable/index.js +1 -2
- package/dist/es/view/login/index.js +5 -6
- package/dist/es/view/media-breakpoint/index.js +1 -1
- package/dist/es/view/message-to-host-app/index.js +1 -2
- package/dist/es/view/micro-app/app-factory/index.js +30 -42
- package/dist/es/view/micro-app/index.js +1 -1
- package/dist/es/view/micro-app/resources/manifest.js +26 -31
- package/dist/es/view/micro-app/resources/script.js +21 -31
- package/dist/es/view/micro-app/resources/style.js +20 -30
- package/dist/es/view/micro-app/use-app-will-render.js +12 -12
- package/dist/es/view/micro-app/utils.js +0 -3
- package/dist/es/view/micro-iframe-app/app.js +6 -8
- package/dist/es/view/micro-iframe-app/iframe/index.js +8 -9
- package/dist/es/view/micro-iframe-app/index.js +4 -6
- package/dist/es/view/micro-iframe-app/use-frame-loaded.js +5 -9
- package/dist/es/view/modals/error/index.js +6 -8
- package/dist/es/view/modals/navigation-prompt/index.js +4 -5
- package/dist/es/view/modals/session-expiry/customHooks.js +3 -4
- package/dist/es/view/modals/session-expiry/index.js +6 -8
- package/dist/es/view/modals/wait-message/html-wait-message.js +3 -4
- package/dist/es/view/modals/wait-message/index.js +8 -9
- package/dist/es/view/modals/wait-message/index.stories.js +4 -5
- package/dist/es/view/render-with-delay/index.js +3 -5
- package/dist/es/view/render-with-host-data/index.js +0 -1
- package/dist/es/view/session-timeout/index.js +0 -1
- package/dist/es/view/useMediaBreakpoints/index.js +0 -6
- package/dist/types/analytics/appdynamics.d.ts +9 -0
- package/dist/types/analytics/index.d.ts +2 -2
- package/dist/types/analytics/web-analytics.d.ts +8 -0
- package/dist/types/index.d.ts +3 -1
- package/dist/types/route/page-view.d.ts +1 -0
- package/dist/types/utils/micro-frontend/guest.d.ts +1 -0
- package/dist/types/utils/micro-frontend/host.d.ts +1 -1
- package/dist/types/utils/redact-pii.d.ts +1 -0
- package/dist/types/view/visually-hidden/index.d.ts +1 -1
- package/package.json +7 -3
- package/dist/es/route/usePageView.js +0 -18
- package/dist/public/app.config.json +0 -129
- package/dist/public/assets/index.ad459dcebaa616bff55e77d860405729.svg +0 -1
- package/dist/public/assets/index.dae17c8817fd9c5ab29e7c3a8925a1f4.svg +0 -1
- package/dist/public/assets/logo.0cbd33c5006f8ea6d106f8ab13f6e6dc.svg +0 -1
- package/dist/public/iframe.b3911eaf1a99a53ef7b10a1e1f0bdfc4.html +0 -8
- package/dist/public/index.html +0 -5
- package/dist/public/js/emuiAppSdk.e28a62497e211b4c6132.js +0 -3
- package/dist/public/js/emuiAppSdk.e28a62497e211b4c6132.js.LICENSE.txt +0 -95
- package/dist/public/js/emuiAppSdk.e28a62497e211b4c6132.js.gz +0 -0
- package/dist/public/js/emuiAppSdk.e28a62497e211b4c6132.js.map +0 -1
- package/dist/types/analytics/ba-event-parameters.d.ts +0 -8
- package/dist/types/route/usePageView.d.ts +0 -1
|
@@ -2,30 +2,24 @@ import _jsx2 from "@babel/runtime/helpers/jsx";
|
|
|
2
2
|
import DSRadio from '@elliemae/ds-basic/form/Radio';
|
|
3
3
|
import { Controller } from 'react-hook-form';
|
|
4
4
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
5
|
-
export const Radio =
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
onChange,
|
|
19
|
-
value,
|
|
20
|
-
...restProps
|
|
21
|
-
}
|
|
22
|
-
} = _ref2;
|
|
23
|
-
return /*#__PURE__*/_jsx(DSRadio, { ...rest,
|
|
24
|
-
...restProps,
|
|
25
|
-
checked: value,
|
|
26
|
-
defaultChecked: defaultChecked,
|
|
27
|
-
onChange: e => onChange(((e || {}).target || {}).checked)
|
|
28
|
-
});
|
|
5
|
+
export const Radio = ({
|
|
6
|
+
name,
|
|
7
|
+
defaultChecked = false,
|
|
8
|
+
rules = {},
|
|
9
|
+
...rest
|
|
10
|
+
}) => /*#__PURE__*/_jsx2(Controller, {
|
|
11
|
+
name: name,
|
|
12
|
+
rules: rules,
|
|
13
|
+
render: ({
|
|
14
|
+
field: {
|
|
15
|
+
onChange,
|
|
16
|
+
value,
|
|
17
|
+
...restProps
|
|
29
18
|
}
|
|
30
|
-
})
|
|
31
|
-
|
|
19
|
+
}) => /*#__PURE__*/_jsx(DSRadio, { ...rest,
|
|
20
|
+
...restProps,
|
|
21
|
+
checked: value,
|
|
22
|
+
defaultChecked: defaultChecked,
|
|
23
|
+
onChange: e => onChange(((e || {}).target || {}).checked)
|
|
24
|
+
})
|
|
25
|
+
});
|
|
@@ -6,28 +6,24 @@ import { ConnectForm } from "../connect-form.js";
|
|
|
6
6
|
import { WatchValue } from "../watch-value.js";
|
|
7
7
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
8
8
|
|
|
9
|
-
const Template =
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
} = _ref2;
|
|
20
|
-
const hasError = !!get(errors, name);
|
|
21
|
-
return /*#__PURE__*/_jsx(Radio, {
|
|
22
|
-
name: name,
|
|
23
|
-
...rest,
|
|
24
|
-
hasError: hasError
|
|
25
|
-
});
|
|
26
|
-
}), /*#__PURE__*/_jsx(WatchValue, {
|
|
9
|
+
const Template = ({
|
|
10
|
+
name,
|
|
11
|
+
...rest
|
|
12
|
+
}) => /*#__PURE__*/_jsx2(Form, {}, void 0, /*#__PURE__*/_jsx2(ConnectForm, {}, void 0, ({
|
|
13
|
+
formState: {
|
|
14
|
+
errors
|
|
15
|
+
}
|
|
16
|
+
}) => {
|
|
17
|
+
const hasError = !!get(errors, name);
|
|
18
|
+
return /*#__PURE__*/_jsx(Radio, {
|
|
27
19
|
name: name,
|
|
28
|
-
...rest
|
|
29
|
-
|
|
30
|
-
};
|
|
20
|
+
...rest,
|
|
21
|
+
hasError: hasError
|
|
22
|
+
});
|
|
23
|
+
}), /*#__PURE__*/_jsx(WatchValue, {
|
|
24
|
+
name: name,
|
|
25
|
+
...rest
|
|
26
|
+
}));
|
|
31
27
|
|
|
32
28
|
export default {
|
|
33
29
|
title: 'Components/Form/Controls/Radio',
|
|
@@ -26,25 +26,21 @@ const ToggleValue = () => {
|
|
|
26
26
|
});
|
|
27
27
|
};
|
|
28
28
|
|
|
29
|
-
const Template =
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
hasError: hasError
|
|
45
|
-
});
|
|
46
|
-
}), _ToggleValue || (_ToggleValue = /*#__PURE__*/_jsx(ToggleValue, {})));
|
|
47
|
-
};
|
|
29
|
+
const Template = ({
|
|
30
|
+
name,
|
|
31
|
+
...rest
|
|
32
|
+
}) => /*#__PURE__*/_jsx(Form, {}, void 0, /*#__PURE__*/_jsx(ConnectForm, {}, void 0, ({
|
|
33
|
+
formState: {
|
|
34
|
+
errors
|
|
35
|
+
}
|
|
36
|
+
}) => {
|
|
37
|
+
const hasError = !!get(errors, name);
|
|
38
|
+
return /*#__PURE__*/_jsx2(Radio, {
|
|
39
|
+
name: name,
|
|
40
|
+
...rest,
|
|
41
|
+
hasError: hasError
|
|
42
|
+
});
|
|
43
|
+
}), _ToggleValue || (_ToggleValue = /*#__PURE__*/_jsx(ToggleValue, {})));
|
|
48
44
|
|
|
49
45
|
export default {
|
|
50
46
|
title: 'Components/Form/Controls/Radio'
|
|
@@ -2,26 +2,20 @@ import _jsx2 from "@babel/runtime/helpers/jsx";
|
|
|
2
2
|
import DSRadioGroup from '@elliemae/ds-basic/form/RadioGroup';
|
|
3
3
|
import { Controller } from 'react-hook-form';
|
|
4
4
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
5
|
-
export const RadioGroup =
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
field: {
|
|
17
|
-
value,
|
|
18
|
-
...restProps
|
|
19
|
-
}
|
|
20
|
-
} = _ref2;
|
|
21
|
-
return /*#__PURE__*/_jsx(DSRadioGroup, { ...rest,
|
|
22
|
-
...restProps,
|
|
23
|
-
activeValue: value
|
|
24
|
-
});
|
|
5
|
+
export const RadioGroup = ({
|
|
6
|
+
name,
|
|
7
|
+
rules = {},
|
|
8
|
+
...rest
|
|
9
|
+
}) => /*#__PURE__*/_jsx2(Controller, {
|
|
10
|
+
name: name,
|
|
11
|
+
rules: rules,
|
|
12
|
+
render: ({
|
|
13
|
+
field: {
|
|
14
|
+
value,
|
|
15
|
+
...restProps
|
|
25
16
|
}
|
|
26
|
-
})
|
|
27
|
-
|
|
17
|
+
}) => /*#__PURE__*/_jsx(DSRadioGroup, { ...rest,
|
|
18
|
+
...restProps,
|
|
19
|
+
activeValue: value
|
|
20
|
+
})
|
|
21
|
+
});
|
|
@@ -12,53 +12,46 @@ import { jsxs as _jsxs } from "react/jsx-runtime";
|
|
|
12
12
|
import { jsx as _jsx2 } from "react/jsx-runtime";
|
|
13
13
|
const radioName = 'gender';
|
|
14
14
|
|
|
15
|
-
const Gender =
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
15
|
+
const Gender = ({
|
|
16
|
+
feedbackMessage,
|
|
17
|
+
...rest
|
|
18
|
+
}) => /*#__PURE__*/_jsxs(RadioGroup, {
|
|
19
|
+
name: radioName,
|
|
20
|
+
labelProps: {
|
|
21
|
+
labelText: 'Gender',
|
|
22
|
+
required: true,
|
|
23
|
+
feedbackMessage
|
|
24
|
+
},
|
|
25
|
+
orientation: "horizontal",
|
|
26
|
+
...rest,
|
|
27
|
+
children: [_DSRadio || (_DSRadio = /*#__PURE__*/_jsx(DSRadio, {
|
|
21
28
|
name: radioName,
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
feedbackMessage
|
|
26
|
-
},
|
|
27
|
-
orientation: "horizontal",
|
|
28
|
-
...rest,
|
|
29
|
-
children: [_DSRadio || (_DSRadio = /*#__PURE__*/_jsx(DSRadio, {
|
|
30
|
-
name: radioName,
|
|
31
|
-
value: "male",
|
|
32
|
-
labelText: "Male"
|
|
33
|
-
})), _DSRadio2 || (_DSRadio2 = /*#__PURE__*/_jsx(DSRadio, {
|
|
34
|
-
name: radioName,
|
|
35
|
-
value: "female",
|
|
36
|
-
labelText: "Female"
|
|
37
|
-
}))]
|
|
38
|
-
});
|
|
39
|
-
};
|
|
40
|
-
|
|
41
|
-
const Template = _ref2 => {
|
|
42
|
-
let {
|
|
43
|
-
props
|
|
44
|
-
} = _ref2;
|
|
45
|
-
return /*#__PURE__*/_jsx(Form, {}, void 0, /*#__PURE__*/_jsx(ConnectForm, {}, void 0, _ref3 => {
|
|
46
|
-
let {
|
|
47
|
-
formState: {
|
|
48
|
-
errors
|
|
49
|
-
}
|
|
50
|
-
} = _ref3;
|
|
51
|
-
const errField = get(errors, radioName);
|
|
52
|
-
const feedbackMessage = errField === null || errField === void 0 ? void 0 : errField.message;
|
|
53
|
-
return /*#__PURE__*/_jsx2(Gender, {
|
|
54
|
-
feedbackMessage: feedbackMessage,
|
|
55
|
-
...props
|
|
56
|
-
});
|
|
57
|
-
}), /*#__PURE__*/_jsx2(WatchValue, {
|
|
29
|
+
value: "male",
|
|
30
|
+
labelText: "Male"
|
|
31
|
+
})), _DSRadio2 || (_DSRadio2 = /*#__PURE__*/_jsx(DSRadio, {
|
|
58
32
|
name: radioName,
|
|
33
|
+
value: "female",
|
|
34
|
+
labelText: "Female"
|
|
35
|
+
}))]
|
|
36
|
+
});
|
|
37
|
+
|
|
38
|
+
const Template = ({
|
|
39
|
+
props
|
|
40
|
+
}) => /*#__PURE__*/_jsx(Form, {}, void 0, /*#__PURE__*/_jsx(ConnectForm, {}, void 0, ({
|
|
41
|
+
formState: {
|
|
42
|
+
errors
|
|
43
|
+
}
|
|
44
|
+
}) => {
|
|
45
|
+
const errField = get(errors, radioName);
|
|
46
|
+
const feedbackMessage = errField === null || errField === void 0 ? void 0 : errField.message;
|
|
47
|
+
return /*#__PURE__*/_jsx2(Gender, {
|
|
48
|
+
feedbackMessage: feedbackMessage,
|
|
59
49
|
...props
|
|
60
|
-
})
|
|
61
|
-
}
|
|
50
|
+
});
|
|
51
|
+
}), /*#__PURE__*/_jsx2(WatchValue, {
|
|
52
|
+
name: radioName,
|
|
53
|
+
...props
|
|
54
|
+
}));
|
|
62
55
|
|
|
63
56
|
export default {
|
|
64
57
|
title: 'Components/Form/Controls/RadioGroup',
|
|
@@ -2,24 +2,18 @@ import _jsx2 from "@babel/runtime/helpers/jsx";
|
|
|
2
2
|
import DSTextBox from '@elliemae/ds-basic/form/TextBox';
|
|
3
3
|
import { Controller } from 'react-hook-form';
|
|
4
4
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
5
|
-
export const TextBox =
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
return /*#__PURE__*/_jsx(DSTextBox, { ...rest,
|
|
21
|
-
...field
|
|
22
|
-
});
|
|
23
|
-
}
|
|
24
|
-
});
|
|
25
|
-
};
|
|
5
|
+
export const TextBox = ({
|
|
6
|
+
name,
|
|
7
|
+
defaultValue = '',
|
|
8
|
+
rules = {},
|
|
9
|
+
...rest
|
|
10
|
+
}) => /*#__PURE__*/_jsx2(Controller, {
|
|
11
|
+
name: name,
|
|
12
|
+
defaultValue: defaultValue,
|
|
13
|
+
rules: rules,
|
|
14
|
+
render: ({
|
|
15
|
+
field
|
|
16
|
+
}) => /*#__PURE__*/_jsx(DSTextBox, { ...rest,
|
|
17
|
+
...field
|
|
18
|
+
})
|
|
19
|
+
});
|
|
@@ -5,11 +5,10 @@ import _styled from "styled-components";
|
|
|
5
5
|
var _h;
|
|
6
6
|
|
|
7
7
|
import { useFormContext } from 'react-hook-form';
|
|
8
|
-
export const WatchValue =
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
} = _ref;
|
|
8
|
+
export const WatchValue = ({
|
|
9
|
+
name,
|
|
10
|
+
labelText
|
|
11
|
+
}) => {
|
|
13
12
|
const {
|
|
14
13
|
watch
|
|
15
14
|
} = useFormContext();
|
|
@@ -2,16 +2,15 @@ import _styled from "styled-components";
|
|
|
2
2
|
import { useForm, FormProvider } from 'react-hook-form'; // eslint-disable-next-line @typescript-eslint/ban-types
|
|
3
3
|
|
|
4
4
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
5
|
-
export const Form =
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
} = _ref;
|
|
5
|
+
export const Form = ({
|
|
6
|
+
/* eslint-disable indent */
|
|
7
|
+
classname,
|
|
8
|
+
reactHookFormProps = {
|
|
9
|
+
mode: 'onBlur'
|
|
10
|
+
},
|
|
11
|
+
children,
|
|
12
|
+
onSubmit
|
|
13
|
+
}) => {
|
|
15
14
|
const methods = useForm(reactHookFormProps);
|
|
16
15
|
const formProps = {};
|
|
17
16
|
if (onSubmit) formProps.onSubmit = methods.handleSubmit(onSubmit);
|
|
@@ -23,12 +23,9 @@ export default {
|
|
|
23
23
|
};
|
|
24
24
|
const StyledButton = /*#__PURE__*/styled(FormSubmitButton).withConfig({
|
|
25
25
|
componentId: "sc-1mzmcta-0"
|
|
26
|
-
})(["margin-top:", ";"],
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
} = _ref;
|
|
30
|
-
return theme.space.xs;
|
|
31
|
-
});
|
|
26
|
+
})(["margin-top:", ";"], ({
|
|
27
|
+
theme
|
|
28
|
+
}) => theme.space.xs);
|
|
32
29
|
|
|
33
30
|
const WatchDashBoard = () => {
|
|
34
31
|
const {
|
|
@@ -1,9 +1,8 @@
|
|
|
1
1
|
import { useFormContext } from 'react-hook-form';
|
|
2
2
|
import DSButton from '@elliemae/ds-basic/Button';
|
|
3
3
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
4
|
-
export const FormSubmitButton =
|
|
5
|
-
|
|
6
|
-
} = _ref;
|
|
4
|
+
export const FormSubmitButton = ({ ...rest
|
|
5
|
+
}) => {
|
|
7
6
|
const {
|
|
8
7
|
formState,
|
|
9
8
|
formProps: {
|
|
@@ -21,12 +21,9 @@ export default {
|
|
|
21
21
|
};
|
|
22
22
|
const StyledButton = /*#__PURE__*/styled(FormSubmitButton).withConfig({
|
|
23
23
|
componentId: "sc-1wwguuk-0"
|
|
24
|
-
})(["margin-top:", ";"],
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
} = _ref;
|
|
28
|
-
return theme.space.xs;
|
|
29
|
-
});
|
|
24
|
+
})(["margin-top:", ";"], ({
|
|
25
|
+
theme
|
|
26
|
+
}) => theme.space.xs);
|
|
30
27
|
|
|
31
28
|
const Template = args => /*#__PURE__*/_jsxs(Form, { ...args,
|
|
32
29
|
children: [_FirstName || (_FirstName = /*#__PURE__*/_jsx(FirstName, {})), _DOB || (_DOB = /*#__PURE__*/_jsx(DOB, {})), _State || (_State = /*#__PURE__*/_jsx(State, {})), _MaritalStatus || (_MaritalStatus = /*#__PURE__*/_jsx(MaritalStatus, {})), /*#__PURE__*/_jsx2(StyledButton, { ...btnProps
|
|
@@ -6,8 +6,7 @@ export const onGuestUnloadStart = () => new Promise(resolve => {
|
|
|
6
6
|
}
|
|
7
7
|
});
|
|
8
8
|
});
|
|
9
|
-
export const notifyGuestUnloadComplete =
|
|
10
|
-
let unloadType = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : 'close_loan';
|
|
9
|
+
export const notifyGuestUnloadComplete = (guestAppConfirmation, guestAppId, unloadType = 'close_loan') => {
|
|
11
10
|
sendMessageToHost({
|
|
12
11
|
guestAppId,
|
|
13
12
|
message: {
|
|
@@ -1,7 +1,4 @@
|
|
|
1
1
|
import _jsx from "@babel/runtime/helpers/jsx";
|
|
2
|
-
import "core-js/modules/es.string.replace.js";
|
|
3
|
-
import "core-js/modules/esnext.async-iterator.map.js";
|
|
4
|
-
import "core-js/modules/esnext.iterator.map.js";
|
|
5
2
|
import { NavLink } from 'react-router-dom';
|
|
6
3
|
import styled from 'styled-components';
|
|
7
4
|
const NavList = /*#__PURE__*/styled.ul.withConfig({
|
|
@@ -17,17 +14,11 @@ const StyledNavLink = /*#__PURE__*/styled(NavLink).attrs({
|
|
|
17
14
|
componentId: "sc-ztmnvf-2"
|
|
18
15
|
})(["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);
|
|
19
16
|
const publicPath = (process.env.ASSET_PATH || '/').replace(/\/?$/, '');
|
|
20
|
-
export const CenterRegion =
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
} = _ref2;
|
|
29
|
-
return /*#__PURE__*/_jsx(NavListItem, {}, path, /*#__PURE__*/_jsx(StyledNavLink, {
|
|
30
|
-
to: "".concat(publicPath).concat(path.replace(/^\/?/, '/'))
|
|
31
|
-
}, void 0, name));
|
|
32
|
-
}));
|
|
33
|
-
};
|
|
17
|
+
export const CenterRegion = ({
|
|
18
|
+
links = []
|
|
19
|
+
}) => /*#__PURE__*/_jsx(NavList, {}, void 0, links.map(({
|
|
20
|
+
name = '',
|
|
21
|
+
path = ''
|
|
22
|
+
}) => /*#__PURE__*/_jsx(NavListItem, {}, path, /*#__PURE__*/_jsx(StyledNavLink, {
|
|
23
|
+
to: `${publicPath}${path.replace(/^\/?/, '/')}`
|
|
24
|
+
}, void 0, name))));
|
|
@@ -10,14 +10,11 @@ import { NavRegion } from "./nav-region/index.js";
|
|
|
10
10
|
const HeaderContainer = /*#__PURE__*/styled.header.withConfig({
|
|
11
11
|
componentId: "sc-cvwjlr-0"
|
|
12
12
|
})(["display:flex;height:56px;background-color:#2080cd;padding:0px ", " 0px ", ";"], props => props.theme.space.xs, props => props.theme.space.xxs);
|
|
13
|
-
export const Header =
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
links: links
|
|
22
|
-
}), _NavRegion || (_NavRegion = /*#__PURE__*/_jsx(NavRegion, {}))) : null;
|
|
23
|
-
};
|
|
13
|
+
export const Header = ({
|
|
14
|
+
links = [],
|
|
15
|
+
show = false
|
|
16
|
+
}) => isStandAloneGuest() || isHost() || show ? /*#__PURE__*/_jsx(HeaderContainer, {
|
|
17
|
+
role: "banner"
|
|
18
|
+
}, void 0, _LogoRegion || (_LogoRegion = /*#__PURE__*/_jsx(LogoRegion, {})), /*#__PURE__*/_jsx(CenterRegion, {
|
|
19
|
+
links: links
|
|
20
|
+
}), _NavRegion || (_NavRegion = /*#__PURE__*/_jsx(NavRegion, {}))) : null;
|
|
@@ -2,13 +2,13 @@ export const bindEvent = (element, eventName, eventHandler) => {
|
|
|
2
2
|
if (element.addEventListener) {
|
|
3
3
|
element.addEventListener(eventName, eventHandler, false);
|
|
4
4
|
} else if (element.attachEvent) {
|
|
5
|
-
element.attachEvent(
|
|
5
|
+
element.attachEvent(`on${eventName}`, eventHandler);
|
|
6
6
|
}
|
|
7
7
|
};
|
|
8
8
|
export const removeEvent = (element, eventName, eventHandler) => {
|
|
9
9
|
if (element.removeEventListener) {
|
|
10
10
|
element.removeEventListener(eventName, eventHandler);
|
|
11
11
|
} else if (element.detachEvent) {
|
|
12
|
-
element.detachEvent(
|
|
12
|
+
element.detachEvent(`on${eventName}`, eventHandler);
|
|
13
13
|
}
|
|
14
14
|
};
|
|
@@ -2,7 +2,6 @@ import _jsx from "@babel/runtime/helpers/jsx";
|
|
|
2
2
|
|
|
3
3
|
var _LiveMessage, _LiveMessageStory;
|
|
4
4
|
|
|
5
|
-
import "core-js/modules/web.dom-collections.iterator.js";
|
|
6
5
|
import React, { useState, useEffect } from 'react';
|
|
7
6
|
import { LiveAnnouncer } from 'react-aria-live';
|
|
8
7
|
import { useAppDispatch } from "../../data/react-redux.js";
|
|
@@ -6,8 +6,7 @@ import { lazy, Suspense } from 'react';
|
|
|
6
6
|
import { WaitMessageLauncher } from "../modals/wait-message/wait-message-launcher.js"; // eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
7
7
|
|
|
8
8
|
import { jsx as _jsx2 } from "react/jsx-runtime";
|
|
9
|
-
export const loadable =
|
|
10
|
-
let fallback = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : _WaitMessageLauncher || (_WaitMessageLauncher = /*#__PURE__*/_jsx(WaitMessageLauncher, {}));
|
|
9
|
+
export const loadable = (importFunc, fallback = _WaitMessageLauncher || (_WaitMessageLauncher = /*#__PURE__*/_jsx(WaitMessageLauncher, {}))) => {
|
|
11
10
|
const LazyComponent = /*#__PURE__*/lazy(importFunc); // eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
12
11
|
|
|
13
12
|
return props => /*#__PURE__*/_jsx(Suspense, {
|
|
@@ -4,12 +4,11 @@ import { login } from "../../utils/auth/index.js";
|
|
|
4
4
|
import { LOGIN_SUCCESS } from "../../data/auth/actions.js";
|
|
5
5
|
import { Fragment as _Fragment } from "react/jsx-runtime";
|
|
6
6
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
7
|
-
export const Login =
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
} = _ref;
|
|
7
|
+
export const Login = ({
|
|
8
|
+
clientId,
|
|
9
|
+
scope,
|
|
10
|
+
responseType
|
|
11
|
+
}) => {
|
|
13
12
|
const dispatch = useAppDispatch();
|
|
14
13
|
useEffect(() => {
|
|
15
14
|
login({
|
|
@@ -9,7 +9,7 @@ import { Fragment as _Fragment } from "react/jsx-runtime";
|
|
|
9
9
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
10
10
|
export const MediaBreakpoint = () => {
|
|
11
11
|
const theme = useContext(ThemeContext);
|
|
12
|
-
const currentBreakpoint = useMediaBreakpoints([
|
|
12
|
+
const currentBreakpoint = useMediaBreakpoints([`(max-width: ${theme.breakpoints.small})`, `(max-width: ${theme.breakpoints.medium})`, `(max-width: ${theme.breakpoints.large})`], ['small', 'medium', 'large'], 'large');
|
|
13
13
|
const dispatch = useAppDispatch();
|
|
14
14
|
useEffect(() => {
|
|
15
15
|
dispatch({
|
|
@@ -9,7 +9,6 @@ export const getHostAppData = (action, resolve) => event => {
|
|
|
9
9
|
|
|
10
10
|
resolve();
|
|
11
11
|
};
|
|
12
|
-
export const sendMessageToHost =
|
|
13
|
-
let hostedAppUrl = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : document.referrer;
|
|
12
|
+
export const sendMessageToHost = (message, hostedAppUrl = document.referrer) => {
|
|
14
13
|
window.parent.postMessage(message, hostedAppUrl);
|
|
15
14
|
};
|