@elliemae/pui-app-sdk 4.5.1 → 4.7.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/utils/storybook/cjs/vite.js +2 -1
- package/dist/cjs/utils/storybook/cjs/webpack.js +2 -1
- package/dist/cjs/utils/testing/index.js +1 -6
- package/dist/cjs/utils/testing/render-with-redux.js +1 -4
- package/dist/cjs/utils/testing/render-with-router-redux.js +1 -7
- package/dist/cjs/utils/testing/render-with-router.js +1 -4
- package/dist/cjs/utils/testing/render-with-state-addons.js +1 -6
- package/dist/cjs/view/app-root/hosted-app.js +6 -8
- package/dist/cjs/view/app-root/index.js +9 -25
- package/dist/cjs/view/app-root/stand-alone-app.js +8 -12
- package/dist/cjs/view/app-router.js +10 -7
- package/dist/cjs/view/error-boundary/default-error-template.js +4 -10
- package/dist/cjs/view/error-boundary/index.js +1 -4
- package/dist/cjs/view/error-toast/index.js +1 -3
- package/dist/cjs/view/fields/autocomplete/index.js +17 -11
- package/dist/cjs/view/fields/check-box/index.js +15 -9
- package/dist/cjs/view/fields/combo-box/index.js +19 -13
- package/dist/cjs/view/fields/combo-box-v3/index.js +17 -11
- package/dist/cjs/view/fields/date-input/index.js +9 -9
- package/dist/cjs/view/fields/date-picker/index.js +9 -9
- package/dist/cjs/view/fields/date-range-picker/index.js +20 -17
- package/dist/cjs/view/fields/date-time-picker/index.js +17 -11
- package/dist/cjs/view/fields/form-item-layout/index.js +12 -11
- package/dist/cjs/view/fields/form-layout-block-item/index.js +12 -11
- package/dist/cjs/view/fields/input-mask/index.js +25 -19
- package/dist/cjs/view/fields/input-text/index.js +9 -9
- package/dist/cjs/view/fields/large-text-box/index.js +9 -9
- package/dist/cjs/view/fields/radio/index.js +17 -11
- package/dist/cjs/view/fields/radio-group/index.js +8 -9
- package/dist/cjs/view/fields/text-box/index.js +9 -9
- package/dist/cjs/view/fields/toggle/index.js +18 -12
- package/dist/cjs/view/fields/watch-value.js +8 -20
- package/dist/cjs/view/form/index.js +1 -8
- package/dist/cjs/view/form/personal-info-section.js +20 -28
- package/dist/cjs/view/form/submit-button/index.js +8 -5
- package/dist/cjs/view/live-message/index.js +1 -5
- package/dist/cjs/view/loadable/index.js +1 -6
- package/dist/cjs/view/login/index.js +1 -3
- package/dist/cjs/view/micro-app/index.js +1 -3
- package/dist/cjs/view/micro-iframe-app/app.js +9 -6
- package/dist/cjs/view/micro-iframe-app/iframe/index.js +5 -4
- package/dist/cjs/view/micro-iframe-app/index.js +11 -8
- package/dist/cjs/view/modals/error/index.js +5 -22
- package/dist/cjs/view/modals/navigation-prompt/index.js +10 -38
- package/dist/cjs/view/modals/session-expiry/index.js +12 -37
- package/dist/cjs/view/modals/wait-message/index.js +11 -8
- package/dist/cjs/view/page.js +4 -10
- package/dist/cjs/view/render-with-delay/index.js +1 -3
- package/dist/cjs/view/require-auth.js +2 -11
- package/dist/cjs/view/session-timeout/index.js +1 -6
- package/dist/cjs/view/storybook/decorator.js +1 -6
- package/dist/cjs/view/visually-hidden/index.js +1 -4
- package/dist/esm/utils/testing/index.js +1 -6
- package/dist/esm/utils/testing/render-with-redux.js +1 -4
- package/dist/esm/utils/testing/render-with-router-redux.js +1 -7
- package/dist/esm/utils/testing/render-with-router.js +1 -4
- package/dist/esm/utils/testing/render-with-state-addons.js +1 -6
- package/dist/esm/view/app-root/hosted-app.js +6 -8
- package/dist/esm/view/app-root/index.js +9 -25
- package/dist/esm/view/app-root/stand-alone-app.js +8 -12
- package/dist/esm/view/app-router.js +10 -7
- package/dist/esm/view/error-boundary/default-error-template.js +4 -10
- package/dist/esm/view/error-boundary/index.js +1 -4
- package/dist/esm/view/error-toast/index.js +1 -3
- package/dist/esm/view/fields/autocomplete/index.js +17 -11
- package/dist/esm/view/fields/check-box/index.js +15 -9
- package/dist/esm/view/fields/combo-box/index.js +19 -13
- package/dist/esm/view/fields/combo-box-v3/index.js +17 -11
- package/dist/esm/view/fields/date-input/index.js +9 -9
- package/dist/esm/view/fields/date-picker/index.js +9 -9
- package/dist/esm/view/fields/date-range-picker/index.js +20 -17
- package/dist/esm/view/fields/date-time-picker/index.js +17 -11
- package/dist/esm/view/fields/form-item-layout/index.js +12 -11
- package/dist/esm/view/fields/form-layout-block-item/index.js +12 -11
- package/dist/esm/view/fields/input-mask/index.js +25 -19
- package/dist/esm/view/fields/input-text/index.js +9 -9
- package/dist/esm/view/fields/large-text-box/index.js +9 -9
- package/dist/esm/view/fields/radio/index.js +17 -11
- package/dist/esm/view/fields/radio-group/index.js +8 -9
- package/dist/esm/view/fields/text-box/index.js +9 -9
- package/dist/esm/view/fields/toggle/index.js +18 -12
- package/dist/esm/view/fields/watch-value.js +8 -20
- package/dist/esm/view/form/index.js +1 -8
- package/dist/esm/view/form/personal-info-section.js +20 -28
- package/dist/esm/view/form/submit-button/index.js +8 -5
- package/dist/esm/view/live-message/index.js +1 -5
- package/dist/esm/view/loadable/index.js +1 -6
- package/dist/esm/view/login/index.js +1 -3
- package/dist/esm/view/micro-app/index.js +1 -3
- package/dist/esm/view/micro-iframe-app/app.js +9 -6
- package/dist/esm/view/micro-iframe-app/iframe/index.js +5 -4
- package/dist/esm/view/micro-iframe-app/index.js +11 -8
- package/dist/esm/view/modals/error/index.js +5 -22
- package/dist/esm/view/modals/navigation-prompt/index.js +10 -38
- package/dist/esm/view/modals/session-expiry/index.js +12 -37
- package/dist/esm/view/modals/wait-message/index.js +11 -8
- package/dist/esm/view/page.js +4 -10
- package/dist/esm/view/render-with-delay/index.js +1 -3
- package/dist/esm/view/require-auth.js +2 -11
- package/dist/esm/view/session-timeout/index.js +1 -6
- package/dist/esm/view/storybook/decorator.js +1 -6
- package/dist/esm/view/visually-hidden/index.js +1 -4
- package/dist/types/lib/communication/http-client/index.d.ts +2 -2
- package/dist/types/lib/communication/http-client/response-interceptor.d.ts +1 -1
- package/dist/types/lib/communication/http-client/retry-axios.d.ts +2 -2
- package/dist/types/lib/data/error/index.d.ts +1 -1
- package/dist/types/lib/data/live-message/index.d.ts +1 -1
- package/dist/types/lib/data/react-redux.d.ts +1 -1
- package/dist/types/lib/data/reducers.d.ts +1 -1
- package/dist/types/lib/data/saga.d.ts +4 -4
- package/dist/types/lib/data/store.d.ts +4 -4
- package/dist/types/lib/data/wait-message/reducer.d.ts +1 -1
- package/dist/types/lib/utils/app-host-integration/react.d.ts +1 -1
- package/dist/types/lib/utils/await.d.ts +1 -1
- package/dist/types/lib/utils/micro-frontend/console-logger.d.ts +1 -1
- package/dist/types/lib/utils/micro-frontend/guest.d.ts +4 -4
- package/dist/types/lib/utils/micro-frontend/host.d.ts +3 -3
- package/dist/types/lib/utils/micro-frontend/types.d.ts +2 -2
- package/dist/types/lib/utils/session.d.ts +3 -3
- package/dist/types/lib/utils/storybook/cjs/main.d.ts +2 -0
- package/dist/types/lib/utils/storybook/cjs/vite.d.ts +1 -0
- package/dist/types/lib/utils/storybook/cjs/webpack.d.ts +1 -0
- package/dist/types/lib/utils/testing/render-with-redux.d.ts +1 -1
- package/dist/types/lib/utils/testing/render-with-router-redux.d.ts +1 -1
- package/dist/types/lib/utils/types.d.ts +1 -1
- package/dist/types/lib/utils/window.d.ts +1 -1
- package/dist/types/lib/view/app-root/hosted-app.d.ts +1 -1
- package/dist/types/lib/view/app-root/index.d.ts +1 -1
- package/dist/types/lib/view/app-root/stand-alone-app.d.ts +1 -1
- package/dist/types/lib/view/fields/autocomplete/index.d.ts +2 -2
- package/dist/types/lib/view/fields/check-box/index.d.ts +1 -1
- package/dist/types/lib/view/fields/combo-box/index.d.ts +1 -1
- package/dist/types/lib/view/fields/combo-box-v3/index.d.ts +1 -1
- package/dist/types/lib/view/fields/connect-form.d.ts +1 -1
- package/dist/types/lib/view/fields/date-input/index.d.ts +1 -1
- package/dist/types/lib/view/fields/date-picker/index.d.ts +1 -1
- package/dist/types/lib/view/fields/date-range-picker/index.d.ts +1 -1
- package/dist/types/lib/view/fields/date-time-picker/index.d.ts +1 -1
- package/dist/types/lib/view/fields/form-item-layout/index.d.ts +1 -1
- package/dist/types/lib/view/fields/form-layout-block-item/index.d.ts +1 -1
- package/dist/types/lib/view/fields/input-mask/index.d.ts +1 -1
- package/dist/types/lib/view/fields/input-text/index.d.ts +1 -1
- package/dist/types/lib/view/fields/large-text-box/index.d.ts +1 -1
- package/dist/types/lib/view/fields/radio/index.d.ts +1 -1
- package/dist/types/lib/view/fields/radio-group/index.d.ts +1 -1
- package/dist/types/lib/view/fields/text-box/index.d.ts +1 -1
- package/dist/types/lib/view/fields/toggle/index.d.ts +1 -1
- package/dist/types/lib/view/fields/watch-value.d.ts +1 -1
- package/dist/types/lib/view/form/index.d.ts +2 -2
- package/dist/types/lib/view/form/submit-button/index.d.ts +2 -2
- package/dist/types/lib/view/form/usecases.stories.d.ts +1 -1
- package/dist/types/lib/view/message-to-host-app/index.d.ts +1 -1
- package/dist/types/lib/view/micro-app/resources/manifest.d.ts +1 -1
- package/dist/types/lib/view/micro-app/types.d.ts +1 -1
- package/dist/types/lib/view/micro-app/use-app-will-render.d.ts +2 -2
- package/dist/types/lib/view/micro-app/utils.d.ts +1 -1
- package/dist/types/lib/view/micro-iframe-app/app.d.ts +1 -1
- package/dist/types/lib/view/micro-iframe-app/iframe/index.d.ts +1 -1
- package/dist/types/lib/view/micro-iframe-app/index.d.ts +1 -1
- package/dist/types/lib/view/micro-iframe-app/types.d.ts +1 -1
- package/dist/types/lib/view/storybook/decorator.d.ts +1 -1
- package/package.json +38 -38
|
@@ -14,25 +14,31 @@ const InputMask = ({
|
|
|
14
14
|
onChange: changeHandler,
|
|
15
15
|
onBlur: onBlurHandler,
|
|
16
16
|
...rest
|
|
17
|
-
}) => /* @__PURE__ */ jsx(
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
...props
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
17
|
+
}) => /* @__PURE__ */ jsx(
|
|
18
|
+
Controller,
|
|
19
|
+
{
|
|
20
|
+
name,
|
|
21
|
+
rules,
|
|
22
|
+
defaultValue,
|
|
23
|
+
render: ({ field: { onChange, onBlur, ...props } }) => /* @__PURE__ */ jsx(
|
|
24
|
+
DSInputMask,
|
|
25
|
+
{
|
|
26
|
+
...rest,
|
|
27
|
+
...props,
|
|
28
|
+
onChange: (e) => {
|
|
29
|
+
onChange(e);
|
|
30
|
+
if (changeHandler)
|
|
31
|
+
changeHandler(e);
|
|
32
|
+
},
|
|
33
|
+
onBlur: (e) => {
|
|
34
|
+
onBlur();
|
|
35
|
+
if (onBlurHandler)
|
|
36
|
+
onBlurHandler(e);
|
|
37
|
+
}
|
|
38
|
+
}
|
|
39
|
+
)
|
|
40
|
+
}
|
|
41
|
+
);
|
|
36
42
|
export {
|
|
37
43
|
InputMask,
|
|
38
44
|
MASK_PIPES,
|
|
@@ -8,15 +8,15 @@ const InputText = ({
|
|
|
8
8
|
defaultValue = "",
|
|
9
9
|
rules = {},
|
|
10
10
|
...rest
|
|
11
|
-
}) => /* @__PURE__ */ jsx(
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
...rest
|
|
18
|
-
}
|
|
19
|
-
|
|
11
|
+
}) => /* @__PURE__ */ jsx(
|
|
12
|
+
Controller,
|
|
13
|
+
{
|
|
14
|
+
name,
|
|
15
|
+
defaultValue,
|
|
16
|
+
rules,
|
|
17
|
+
render: ({ field }) => /* @__PURE__ */ jsx(DSInputText, { ...field, ...rest })
|
|
18
|
+
}
|
|
19
|
+
);
|
|
20
20
|
export {
|
|
21
21
|
InputText
|
|
22
22
|
};
|
|
@@ -8,15 +8,15 @@ const LargeTextBox = ({
|
|
|
8
8
|
defaultValue = "",
|
|
9
9
|
rules = {},
|
|
10
10
|
...rest
|
|
11
|
-
}) => /* @__PURE__ */ jsx(
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
...field
|
|
18
|
-
}
|
|
19
|
-
|
|
11
|
+
}) => /* @__PURE__ */ jsx(
|
|
12
|
+
Controller,
|
|
13
|
+
{
|
|
14
|
+
name,
|
|
15
|
+
rules,
|
|
16
|
+
defaultValue,
|
|
17
|
+
render: ({ field }) => /* @__PURE__ */ jsx(DSLargeInputText, { ...rest, ...field })
|
|
18
|
+
}
|
|
19
|
+
);
|
|
20
20
|
export {
|
|
21
21
|
LargeTextBox
|
|
22
22
|
};
|
|
@@ -8,17 +8,23 @@ const Radio = ({
|
|
|
8
8
|
defaultChecked = false,
|
|
9
9
|
rules = {},
|
|
10
10
|
...rest
|
|
11
|
-
}) => /* @__PURE__ */ jsx(
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
...restProps
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
11
|
+
}) => /* @__PURE__ */ jsx(
|
|
12
|
+
Controller,
|
|
13
|
+
{
|
|
14
|
+
name,
|
|
15
|
+
rules,
|
|
16
|
+
render: ({ field: { onChange, value, ...restProps } }) => /* @__PURE__ */ jsx(
|
|
17
|
+
DSRadio,
|
|
18
|
+
{
|
|
19
|
+
...rest,
|
|
20
|
+
...restProps,
|
|
21
|
+
checked: value,
|
|
22
|
+
defaultChecked,
|
|
23
|
+
onChange: (e) => onChange(((e || {}).target || {}).checked)
|
|
24
|
+
}
|
|
25
|
+
)
|
|
26
|
+
}
|
|
27
|
+
);
|
|
22
28
|
export {
|
|
23
29
|
Radio
|
|
24
30
|
};
|
|
@@ -3,15 +3,14 @@ import { DSRadioGroup } from "@elliemae/ds-form";
|
|
|
3
3
|
import {
|
|
4
4
|
Controller
|
|
5
5
|
} from "react-hook-form";
|
|
6
|
-
const RadioGroup = ({ name, rules = {}, ...rest }) => /* @__PURE__ */ jsx(
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
...restProps,
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
});
|
|
6
|
+
const RadioGroup = ({ name, rules = {}, ...rest }) => /* @__PURE__ */ jsx(
|
|
7
|
+
Controller,
|
|
8
|
+
{
|
|
9
|
+
name,
|
|
10
|
+
rules,
|
|
11
|
+
render: ({ field: { value, ...restProps } }) => /* @__PURE__ */ jsx(DSRadioGroup, { ...rest, ...restProps, activeValue: value })
|
|
12
|
+
}
|
|
13
|
+
);
|
|
15
14
|
export {
|
|
16
15
|
RadioGroup
|
|
17
16
|
};
|
|
@@ -8,15 +8,15 @@ const TextBox = ({
|
|
|
8
8
|
defaultValue = "",
|
|
9
9
|
rules = {},
|
|
10
10
|
...rest
|
|
11
|
-
}) => /* @__PURE__ */ jsx(
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
...field
|
|
18
|
-
}
|
|
19
|
-
|
|
11
|
+
}) => /* @__PURE__ */ jsx(
|
|
12
|
+
Controller,
|
|
13
|
+
{
|
|
14
|
+
name,
|
|
15
|
+
defaultValue,
|
|
16
|
+
rules,
|
|
17
|
+
render: ({ field }) => /* @__PURE__ */ jsx(DSTextBox, { ...rest, ...field })
|
|
18
|
+
}
|
|
19
|
+
);
|
|
20
20
|
export {
|
|
21
21
|
TextBox
|
|
22
22
|
};
|
|
@@ -8,18 +8,24 @@ const Toggle = ({
|
|
|
8
8
|
defaultValue = false,
|
|
9
9
|
rules = {},
|
|
10
10
|
...rest
|
|
11
|
-
}) => /* @__PURE__ */ jsx(
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
...restProps
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
11
|
+
}) => /* @__PURE__ */ jsx(
|
|
12
|
+
Controller,
|
|
13
|
+
{
|
|
14
|
+
name,
|
|
15
|
+
rules,
|
|
16
|
+
defaultValue,
|
|
17
|
+
render: ({ field: { value, onChange, ...restProps } }) => /* @__PURE__ */ jsx(
|
|
18
|
+
DSControlledToggle,
|
|
19
|
+
{
|
|
20
|
+
...rest,
|
|
21
|
+
...restProps,
|
|
22
|
+
checked: value,
|
|
23
|
+
value: value.toString(),
|
|
24
|
+
onChange: () => onChange(!value)
|
|
25
|
+
}
|
|
26
|
+
)
|
|
27
|
+
}
|
|
28
|
+
);
|
|
23
29
|
export {
|
|
24
30
|
Toggle
|
|
25
31
|
};
|
|
@@ -16,26 +16,14 @@ const Div = styled.div`
|
|
|
16
16
|
const WatchValue = ({ name, label }) => {
|
|
17
17
|
const { watch } = useFormContext();
|
|
18
18
|
const data = watch(name, false) || "";
|
|
19
|
-
return /* @__PURE__ */ jsx(Grid, {
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
children: [
|
|
28
|
-
label,
|
|
29
|
-
" : ",
|
|
30
|
-
/* @__PURE__ */ jsx("strong", {
|
|
31
|
-
children: JSON.stringify(data)
|
|
32
|
-
})
|
|
33
|
-
]
|
|
34
|
-
})
|
|
35
|
-
})
|
|
36
|
-
]
|
|
37
|
-
})
|
|
38
|
-
});
|
|
19
|
+
return /* @__PURE__ */ jsx(Grid, { children: /* @__PURE__ */ jsxs(Section, { children: [
|
|
20
|
+
/* @__PURE__ */ jsx("h4", { children: "Form Data:" }),
|
|
21
|
+
/* @__PURE__ */ jsx(Div, { children: /* @__PURE__ */ jsxs("div", { children: [
|
|
22
|
+
label,
|
|
23
|
+
" : ",
|
|
24
|
+
/* @__PURE__ */ jsx("strong", { children: JSON.stringify(data) })
|
|
25
|
+
] }) })
|
|
26
|
+
] }) });
|
|
39
27
|
};
|
|
40
28
|
export {
|
|
41
29
|
WatchValue
|
|
@@ -21,14 +21,7 @@ const Form = ({
|
|
|
21
21
|
const providerProps = Object.assign(methods, {
|
|
22
22
|
formProps: reactHookFormProps
|
|
23
23
|
});
|
|
24
|
-
return /* @__PURE__ */ jsx(FormProvider, {
|
|
25
|
-
...providerProps,
|
|
26
|
-
children: /* @__PURE__ */ jsx(StyledForm, {
|
|
27
|
-
className: classname,
|
|
28
|
-
...formProps,
|
|
29
|
-
children
|
|
30
|
-
})
|
|
31
|
-
});
|
|
24
|
+
return /* @__PURE__ */ jsx(FormProvider, { ...providerProps, children: /* @__PURE__ */ jsx(StyledForm, { className: classname, ...formProps, children }) });
|
|
32
25
|
};
|
|
33
26
|
export {
|
|
34
27
|
Form
|
|
@@ -4,11 +4,9 @@ import { TextBox } from "../fields/text-box/index.js";
|
|
|
4
4
|
import { ComboBox } from "../fields/combo-box/index.js";
|
|
5
5
|
import { DateInput } from "../fields/date-input/index.js";
|
|
6
6
|
import { FormLayoutBlockItem } from "../fields/form-layout-block-item/index.js";
|
|
7
|
-
const FirstName = () => /* @__PURE__ */ jsx(FormLayoutBlockItem, {
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
required: true,
|
|
11
|
-
children: /* @__PURE__ */ jsx(TextBox, {
|
|
7
|
+
const FirstName = () => /* @__PURE__ */ jsx(FormLayoutBlockItem, { label: "First Name", inputID: "firstname", required: true, children: /* @__PURE__ */ jsx(
|
|
8
|
+
TextBox,
|
|
9
|
+
{
|
|
12
10
|
id: "firstname",
|
|
13
11
|
name: "firstname",
|
|
14
12
|
rules: {
|
|
@@ -16,26 +14,22 @@ const FirstName = () => /* @__PURE__ */ jsx(FormLayoutBlockItem, {
|
|
|
16
14
|
minLength: { value: 2, message: "Minimum 2 characters" },
|
|
17
15
|
maxLength: { value: 50, message: "Maximum 50 characters" }
|
|
18
16
|
}
|
|
19
|
-
}
|
|
20
|
-
});
|
|
21
|
-
const DOB = () => /* @__PURE__ */ jsx(FormLayoutBlockItem, {
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
required: true,
|
|
25
|
-
children: /* @__PURE__ */ jsx(DateInput, {
|
|
17
|
+
}
|
|
18
|
+
) });
|
|
19
|
+
const DOB = () => /* @__PURE__ */ jsx(FormLayoutBlockItem, { label: "Date of Birth", inputID: "dob", required: true, children: /* @__PURE__ */ jsx(
|
|
20
|
+
DateInput,
|
|
21
|
+
{
|
|
26
22
|
id: "dob",
|
|
27
23
|
name: "dob",
|
|
28
24
|
rules: {
|
|
29
25
|
required: { value: true, message: "Date of Birth is required" },
|
|
30
26
|
validate: (value) => moment() > value || "Date of Birth can not be greater than current date"
|
|
31
27
|
}
|
|
32
|
-
}
|
|
33
|
-
});
|
|
34
|
-
const State = () => /* @__PURE__ */ jsx(FormLayoutBlockItem, {
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
required: true,
|
|
38
|
-
children: /* @__PURE__ */ jsx(ComboBox, {
|
|
28
|
+
}
|
|
29
|
+
) });
|
|
30
|
+
const State = () => /* @__PURE__ */ jsx(FormLayoutBlockItem, { label: "State", inputID: "state", required: true, children: /* @__PURE__ */ jsx(
|
|
31
|
+
ComboBox,
|
|
32
|
+
{
|
|
39
33
|
id: "state",
|
|
40
34
|
name: "state",
|
|
41
35
|
rules: { required: { value: true, message: "State is required" } },
|
|
@@ -43,13 +37,11 @@ const State = () => /* @__PURE__ */ jsx(FormLayoutBlockItem, {
|
|
|
43
37
|
{ value: "ca", label: "California" },
|
|
44
38
|
{ value: "nj", label: "New Jersey" }
|
|
45
39
|
]
|
|
46
|
-
}
|
|
47
|
-
});
|
|
48
|
-
const MaritalStatus = () => /* @__PURE__ */ jsx(FormLayoutBlockItem, {
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
required: true,
|
|
52
|
-
children: /* @__PURE__ */ jsx(ComboBox, {
|
|
40
|
+
}
|
|
41
|
+
) });
|
|
42
|
+
const MaritalStatus = () => /* @__PURE__ */ jsx(FormLayoutBlockItem, { label: "Marital Status", inputID: "marital_status", required: true, children: /* @__PURE__ */ jsx(
|
|
43
|
+
ComboBox,
|
|
44
|
+
{
|
|
53
45
|
id: "marital_status",
|
|
54
46
|
name: "marital_status",
|
|
55
47
|
rules: {
|
|
@@ -59,8 +51,8 @@ const MaritalStatus = () => /* @__PURE__ */ jsx(FormLayoutBlockItem, {
|
|
|
59
51
|
{ value: "married", label: "Married" },
|
|
60
52
|
{ value: "single", label: "Single" }
|
|
61
53
|
]
|
|
62
|
-
}
|
|
63
|
-
});
|
|
54
|
+
}
|
|
55
|
+
) });
|
|
64
56
|
export {
|
|
65
57
|
DOB,
|
|
66
58
|
FirstName,
|
|
@@ -6,11 +6,14 @@ const FormSubmitButton = ({ ...rest }) => {
|
|
|
6
6
|
formState,
|
|
7
7
|
formProps: { mode }
|
|
8
8
|
} = useFormContext();
|
|
9
|
-
return /* @__PURE__ */ jsx(
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
9
|
+
return /* @__PURE__ */ jsx(
|
|
10
|
+
DSButtonV2,
|
|
11
|
+
{
|
|
12
|
+
...rest,
|
|
13
|
+
type: "submit",
|
|
14
|
+
disabled: mode !== "onSubmit" && (!formState.isDirty || formState.isDirty && !formState.isValid)
|
|
15
|
+
}
|
|
16
|
+
);
|
|
14
17
|
};
|
|
15
18
|
export {
|
|
16
19
|
FormSubmitButton
|
|
@@ -5,11 +5,7 @@ const LiveMessage = () => {
|
|
|
5
5
|
const message = useAppSelector((state) => state.liveMessage?.message);
|
|
6
6
|
const id = useAppSelector((state) => state.liveMessage?.id);
|
|
7
7
|
const ariaLive = useAppSelector((state) => state.liveMessage?.ariaLive);
|
|
8
|
-
return /* @__PURE__ */ jsx(AriaLiveMessage, {
|
|
9
|
-
message,
|
|
10
|
-
"aria-live": ariaLive,
|
|
11
|
-
id
|
|
12
|
-
});
|
|
8
|
+
return /* @__PURE__ */ jsx(AriaLiveMessage, { message, "aria-live": ariaLive, id });
|
|
13
9
|
};
|
|
14
10
|
export {
|
|
15
11
|
LiveMessage
|
|
@@ -3,12 +3,7 @@ import { lazy, Suspense } from "react";
|
|
|
3
3
|
import { WaitMessageLauncher } from "../modals/wait-message/wait-message-launcher.js";
|
|
4
4
|
const loadable = (importFunc, fallback = /* @__PURE__ */ jsx(WaitMessageLauncher, {})) => {
|
|
5
5
|
const LazyComponent = lazy(importFunc);
|
|
6
|
-
return (props) => /* @__PURE__ */ jsx(Suspense, {
|
|
7
|
-
fallback,
|
|
8
|
-
children: /* @__PURE__ */ jsx(LazyComponent, {
|
|
9
|
-
...props
|
|
10
|
-
})
|
|
11
|
-
});
|
|
6
|
+
return (props) => /* @__PURE__ */ jsx(Suspense, { fallback, children: /* @__PURE__ */ jsx(LazyComponent, { ...props }) });
|
|
12
7
|
};
|
|
13
8
|
export {
|
|
14
9
|
loadable
|
|
@@ -19,9 +19,7 @@ const Login = ({
|
|
|
19
19
|
}).catch(() => {
|
|
20
20
|
});
|
|
21
21
|
}, [dispatch, clientId, scope, responseType]);
|
|
22
|
-
return userAuthorized ? /* @__PURE__ */ jsx(Fragment, {
|
|
23
|
-
children
|
|
24
|
-
}) : null;
|
|
22
|
+
return userAuthorized ? /* @__PURE__ */ jsx(Fragment, { children }) : null;
|
|
25
23
|
};
|
|
26
24
|
export {
|
|
27
25
|
Login
|
|
@@ -9,9 +9,7 @@ const Div = styled.div`
|
|
|
9
9
|
`;
|
|
10
10
|
const MicroApp = memo((props) => {
|
|
11
11
|
useAppWillRender(props);
|
|
12
|
-
return /* @__PURE__ */ jsx(Div, {
|
|
13
|
-
id: `${APP_CONTAINER_ID_PREFIX}${props.id}`
|
|
14
|
-
});
|
|
12
|
+
return /* @__PURE__ */ jsx(Div, { id: `${APP_CONTAINER_ID_PREFIX}${props.id}` });
|
|
15
13
|
});
|
|
16
14
|
export {
|
|
17
15
|
MicroApp
|
|
@@ -16,12 +16,15 @@ const App = memo(
|
|
|
16
16
|
onUnloadComplete,
|
|
17
17
|
...rest
|
|
18
18
|
});
|
|
19
|
-
return /* @__PURE__ */ jsx(
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
19
|
+
return /* @__PURE__ */ jsx(
|
|
20
|
+
IFrame,
|
|
21
|
+
{
|
|
22
|
+
id,
|
|
23
|
+
src: frameHtml,
|
|
24
|
+
...rest,
|
|
25
|
+
onFrameReady: setDocumentEle
|
|
26
|
+
}
|
|
27
|
+
);
|
|
25
28
|
}
|
|
26
29
|
);
|
|
27
30
|
export {
|
|
@@ -21,8 +21,9 @@ const IFrame = memo(
|
|
|
21
21
|
({ id, name: title, src, sandbox, onFrameReady }) => {
|
|
22
22
|
const frameRef = useRef(null);
|
|
23
23
|
const sandboxProps = sandbox ? { sandbox } : {};
|
|
24
|
-
return /* @__PURE__ */ jsx(Div, {
|
|
25
|
-
|
|
24
|
+
return /* @__PURE__ */ jsx(Div, { children: /* @__PURE__ */ jsx(
|
|
25
|
+
Iframe,
|
|
26
|
+
{
|
|
26
27
|
id: `${IFRAME_CONTAINER_ID_PREFIX}${id}`,
|
|
27
28
|
ref: frameRef,
|
|
28
29
|
title,
|
|
@@ -30,8 +31,8 @@ const IFrame = memo(
|
|
|
30
31
|
scrolling: "no",
|
|
31
32
|
...sandboxProps,
|
|
32
33
|
onLoad: () => frameRef?.current?.contentDocument && onFrameReady(frameRef.current.contentDocument)
|
|
33
|
-
}
|
|
34
|
-
});
|
|
34
|
+
}
|
|
35
|
+
) });
|
|
35
36
|
}
|
|
36
37
|
);
|
|
37
38
|
export {
|
|
@@ -11,15 +11,18 @@ const MicroIFrameApp = memo(({ entityId = null, ...rest }) => {
|
|
|
11
11
|
setDisposePrevApp(true);
|
|
12
12
|
}
|
|
13
13
|
}, [entityId]);
|
|
14
|
-
return /* @__PURE__ */ createElement(
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
14
|
+
return /* @__PURE__ */ createElement(
|
|
15
|
+
App,
|
|
16
|
+
{
|
|
17
|
+
...rest,
|
|
18
|
+
key: appKey,
|
|
19
|
+
dispose: disposePrevApp,
|
|
20
|
+
onUnloadComplete: () => {
|
|
21
|
+
setAppKey(Date.now());
|
|
22
|
+
setDisposePrevApp(false);
|
|
23
|
+
}
|
|
21
24
|
}
|
|
22
|
-
|
|
25
|
+
);
|
|
23
26
|
});
|
|
24
27
|
export {
|
|
25
28
|
MicroIFrameApp
|
|
@@ -17,28 +17,11 @@ const Error = ({
|
|
|
17
17
|
const handleClick = useCallback(() => {
|
|
18
18
|
setOpen((prev) => !prev);
|
|
19
19
|
}, []);
|
|
20
|
-
return /* @__PURE__ */ jsx(DSDialog, {
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
p: "s",
|
|
26
|
-
children: /* @__PURE__ */ jsxs(DSDialogDefaultLayout, {
|
|
27
|
-
children: [
|
|
28
|
-
/* @__PURE__ */ jsx(ErrorHexegon, {
|
|
29
|
-
size: "xxl",
|
|
30
|
-
color: ["danger", "900"]
|
|
31
|
-
}),
|
|
32
|
-
/* @__PURE__ */ jsx(DSDialogPrimaryMessage, {
|
|
33
|
-
children: primaryMessage
|
|
34
|
-
}),
|
|
35
|
-
secondaryMessage && /* @__PURE__ */ jsx(DSDialogSecondaryMessage, {
|
|
36
|
-
children: secondaryMessage
|
|
37
|
-
})
|
|
38
|
-
]
|
|
39
|
-
})
|
|
40
|
-
})
|
|
41
|
-
});
|
|
20
|
+
return /* @__PURE__ */ jsx(DSDialog, { isOpen, onClickOutside: handleClick, size: "small", children: /* @__PURE__ */ jsx(DSDialogBody, { p: "s", children: /* @__PURE__ */ jsxs(DSDialogDefaultLayout, { children: [
|
|
21
|
+
/* @__PURE__ */ jsx(ErrorHexegon, { size: "xxl", color: ["danger", "900"] }),
|
|
22
|
+
/* @__PURE__ */ jsx(DSDialogPrimaryMessage, { children: primaryMessage }),
|
|
23
|
+
secondaryMessage && /* @__PURE__ */ jsx(DSDialogSecondaryMessage, { children: secondaryMessage })
|
|
24
|
+
] }) }) });
|
|
42
25
|
};
|
|
43
26
|
export {
|
|
44
27
|
Error
|
|
@@ -17,44 +17,16 @@ const NavigationPrompt = memo(
|
|
|
17
17
|
const dispatch = useAppDispatch();
|
|
18
18
|
const cancelDialog = () => dispatch(navigationPrompt.cancel());
|
|
19
19
|
const confirmDialog = () => dispatch(navigationPrompt.confirm());
|
|
20
|
-
return /* @__PURE__ */ jsxs(DSDialog, {
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
children: /* @__PURE__ */ jsx(Close, {
|
|
31
|
-
color: ["neutral", "900"]
|
|
32
|
-
})
|
|
33
|
-
})
|
|
34
|
-
})
|
|
35
|
-
}),
|
|
36
|
-
/* @__PURE__ */ jsx(DSDialogSeparator, {}),
|
|
37
|
-
/* @__PURE__ */ jsx(DSDialogBody, {
|
|
38
|
-
px: 24,
|
|
39
|
-
mb: 16,
|
|
40
|
-
children: "You currently have unsaved changes. Are you sure you want to proceed without saving?"
|
|
41
|
-
}),
|
|
42
|
-
/* @__PURE__ */ jsx(DSDialogSeparator, {}),
|
|
43
|
-
/* @__PURE__ */ jsxs(DSDialogFooter, {
|
|
44
|
-
children: [
|
|
45
|
-
/* @__PURE__ */ jsx(DSButtonV2, {
|
|
46
|
-
buttonType: "outline",
|
|
47
|
-
onClick: cancelDialog,
|
|
48
|
-
children: "Continue without saving"
|
|
49
|
-
}),
|
|
50
|
-
/* @__PURE__ */ jsx(DSButtonV2, {
|
|
51
|
-
onClick: confirmDialog,
|
|
52
|
-
children: "Save & Continue"
|
|
53
|
-
})
|
|
54
|
-
]
|
|
55
|
-
})
|
|
56
|
-
]
|
|
57
|
-
});
|
|
20
|
+
return /* @__PURE__ */ jsxs(DSDialog, { isOpen: open, onClickOutside: cancelDialog, centered: true, children: [
|
|
21
|
+
/* @__PURE__ */ jsx(DSDialogHeader, { children: /* @__PURE__ */ jsx(DSDialogAddon, { children: /* @__PURE__ */ jsx(DSButtonV2, { buttonType: "icon", onClick: cancelDialog, children: /* @__PURE__ */ jsx(Close, { color: ["neutral", "900"] }) }) }) }),
|
|
22
|
+
/* @__PURE__ */ jsx(DSDialogSeparator, {}),
|
|
23
|
+
/* @__PURE__ */ jsx(DSDialogBody, { px: 24, mb: 16, children: "You currently have unsaved changes. Are you sure you want to proceed without saving?" }),
|
|
24
|
+
/* @__PURE__ */ jsx(DSDialogSeparator, {}),
|
|
25
|
+
/* @__PURE__ */ jsxs(DSDialogFooter, { children: [
|
|
26
|
+
/* @__PURE__ */ jsx(DSButtonV2, { buttonType: "outline", onClick: cancelDialog, children: "Continue without saving" }),
|
|
27
|
+
/* @__PURE__ */ jsx(DSButtonV2, { onClick: confirmDialog, children: "Save & Continue" })
|
|
28
|
+
] })
|
|
29
|
+
] });
|
|
58
30
|
}
|
|
59
31
|
);
|
|
60
32
|
export {
|
|
@@ -36,43 +36,18 @@ const SessionExpiry = memo(
|
|
|
36
36
|
setIsOpen(false);
|
|
37
37
|
dispatch(logout.confirm());
|
|
38
38
|
};
|
|
39
|
-
return timeLeft ? /* @__PURE__ */ jsxs(DSDialog, {
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
/* @__PURE__ */ jsx(
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
/* @__PURE__ */ jsx(DSDialogPrimaryMessage, {
|
|
52
|
-
children: `Your session will expire in ${timeLeft}`
|
|
53
|
-
}),
|
|
54
|
-
/* @__PURE__ */ jsx(DSDialogSecondaryMessage, {
|
|
55
|
-
children: "Please logout or reset your session"
|
|
56
|
-
})
|
|
57
|
-
]
|
|
58
|
-
})
|
|
59
|
-
}),
|
|
60
|
-
/* @__PURE__ */ jsx(DSDialogSeparator, {}),
|
|
61
|
-
/* @__PURE__ */ jsxs(DSDialogFooter, {
|
|
62
|
-
children: [
|
|
63
|
-
/* @__PURE__ */ jsx(DSButtonV2, {
|
|
64
|
-
buttonType: "outline",
|
|
65
|
-
onClick: logoutSession,
|
|
66
|
-
children: "Logout"
|
|
67
|
-
}),
|
|
68
|
-
/* @__PURE__ */ jsx(DSButtonV2, {
|
|
69
|
-
onClick: resetSession,
|
|
70
|
-
children: "Reset"
|
|
71
|
-
})
|
|
72
|
-
]
|
|
73
|
-
})
|
|
74
|
-
]
|
|
75
|
-
}) : null;
|
|
39
|
+
return timeLeft ? /* @__PURE__ */ jsxs(DSDialog, { isOpen, size: "small", children: [
|
|
40
|
+
/* @__PURE__ */ jsx(DSDialogBody, { p: "s", children: /* @__PURE__ */ jsxs(DSDialogDefaultLayout, { children: [
|
|
41
|
+
/* @__PURE__ */ jsx(WarningCircle, { size: "xl", color: ["warning", "900"] }),
|
|
42
|
+
/* @__PURE__ */ jsx(DSDialogPrimaryMessage, { children: `Your session will expire in ${timeLeft}` }),
|
|
43
|
+
/* @__PURE__ */ jsx(DSDialogSecondaryMessage, { children: "Please logout or reset your session" })
|
|
44
|
+
] }) }),
|
|
45
|
+
/* @__PURE__ */ jsx(DSDialogSeparator, {}),
|
|
46
|
+
/* @__PURE__ */ jsxs(DSDialogFooter, { children: [
|
|
47
|
+
/* @__PURE__ */ jsx(DSButtonV2, { buttonType: "outline", onClick: logoutSession, children: "Logout" }),
|
|
48
|
+
/* @__PURE__ */ jsx(DSButtonV2, { onClick: resetSession, children: "Reset" })
|
|
49
|
+
] })
|
|
50
|
+
] }) : null;
|
|
76
51
|
}
|
|
77
52
|
);
|
|
78
53
|
export {
|