@elliemae/pui-app-sdk 5.7.1 → 6.0.0-next.10
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/README.md +8 -0
- package/dist/cjs/analytics/appdynamics.js +1 -1
- package/dist/cjs/analytics/page-view-event.js +1 -1
- package/dist/cjs/api/helpers.js +14 -4
- package/dist/cjs/api/users/index.endpoint.cjs +12 -0
- package/dist/cjs/app.config.json +2 -2
- package/dist/cjs/communication/http-client/index.js +2 -2
- package/dist/cjs/communication/http-client/response-interceptor.js +2 -2
- package/dist/cjs/communication/http-client/retry-axios.js +14 -14
- package/dist/cjs/communication/http-client/retry.js +1 -1
- package/dist/cjs/communication/http-client/tests/hello.endpoint.cjs +12 -0
- package/dist/cjs/communication/http-client/tests/private.endpoint.cjs +13 -0
- package/dist/cjs/data/appMiddleware.js +2 -3
- package/dist/cjs/{view/fields/large-text-box/index.js → data/auth-state.js} +24 -20
- package/dist/cjs/data/breakpoint-state.js +46 -0
- package/dist/cjs/data/{error/index.js → error-state.js} +3 -3
- package/dist/cjs/data/errorMiddleware.js +2 -2
- package/dist/cjs/data/listenerMiddleware.js +5 -3
- package/dist/cjs/data/{live-message/index.js → live-message-state.js} +3 -3
- package/dist/cjs/data/{logout/actions.js → logout-actions.js} +6 -16
- package/dist/cjs/data/{navigation-prompt/actions.js → navigation-prompt-actions.js} +6 -16
- package/dist/cjs/data/queryMiddleware.js +3 -1
- package/dist/cjs/data/reducers.js +8 -8
- package/dist/cjs/data/store.js +12 -8
- package/dist/cjs/data/wait-message-state.js +46 -0
- package/dist/cjs/index.js +13 -35
- package/dist/cjs/sideeffect/auth/index.js +4 -4
- package/dist/cjs/sideeffect/error-toast/index.js +3 -3
- package/dist/cjs/sideeffect/wait-message/index.js +3 -3
- package/dist/cjs/utils/app-config/config.js +2 -2
- package/dist/cjs/utils/app-config/index.js +1 -1
- package/dist/cjs/utils/auth/helper.js +2 -2
- package/dist/cjs/utils/auth/index.js +2 -2
- package/dist/cjs/utils/font-size.js +1 -1
- package/dist/cjs/utils/micro-frontend/guest.js +9 -8
- package/dist/cjs/utils/micro-frontend/host.js +10 -8
- package/dist/cjs/utils/micro-frontend/index.js +15 -5
- package/dist/cjs/utils/micro-frontend/ssfguest-adapter.js +1 -1
- package/dist/cjs/utils/session.js +26 -4
- package/dist/cjs/{data/breakpoint/index.js → utils/storybook/main.js} +31 -26
- package/dist/cjs/utils/storybook/manager.js +2 -2
- package/dist/cjs/{data/wait-message/actions.js → utils/storybook/middleware.js} +7 -18
- package/dist/cjs/utils/storybook/preview.js +10 -5
- package/dist/cjs/utils/storybook/theme.js +5 -8
- package/dist/cjs/utils/storybook/vite.js +33 -0
- package/dist/cjs/{view/fields/date-input/index.js → utils/storybook/webpack.js} +22 -20
- package/dist/cjs/utils/testing/index.js +1 -1
- package/dist/cjs/utils/testing/render-with-redux.js +1 -5
- package/dist/cjs/utils/testing/render-with-router-redux.js +1 -2
- package/dist/cjs/utils/url.js +2 -0
- package/dist/cjs/utils/web-storage.js +1 -1
- package/dist/cjs/utils/window.js +1 -1
- package/dist/cjs/view/app-root/hosted-app.js +3 -3
- package/dist/cjs/view/app-root/index.js +2 -0
- package/dist/cjs/view/app-root/stand-alone-app.js +3 -3
- package/dist/cjs/view/app-root/style.js +1 -1
- package/dist/cjs/{data/auth/actions.js → view/app-root/use-prefetch-resources.js} +15 -31
- package/dist/cjs/view/breakpoint/use-breakpoint.js +4 -4
- package/dist/cjs/view/error-boundary/index.js +2 -2
- package/dist/cjs/view/error-toast/index.js +4 -4
- package/dist/cjs/view/fetch-host-app-data/index.js +1 -1
- package/dist/cjs/view/fetch-host-app-data/store.js +12 -2
- package/dist/cjs/view/fields/autocomplete/index.js +4 -1
- package/dist/cjs/view/fields/combo-box-v3/index.js +1 -1
- package/dist/cjs/view/fields/masked-input-text/index.js +1 -1
- package/dist/cjs/view/fields/watch-value.js +1 -1
- package/dist/cjs/view/form/index.js +1 -1
- package/dist/cjs/view/form/personal-info-section.js +5 -7
- package/dist/cjs/view/login/index.js +2 -2
- package/dist/cjs/view/micro-app/app-factory/index.js +17 -7
- package/dist/cjs/view/micro-app/index.js +1 -1
- package/dist/cjs/view/micro-app/resources/script.js +16 -8
- package/dist/cjs/view/micro-app/resources/style.js +14 -1
- package/dist/cjs/view/micro-app/use-app-will-render.js +15 -5
- package/dist/cjs/view/micro-iframe-app/app.js +1 -1
- package/dist/cjs/view/micro-iframe-app/iframe/index.js +1 -2
- package/dist/cjs/view/modals/navigation-prompt/index.js +3 -3
- package/dist/cjs/view/modals/session-expiry/index.js +3 -3
- package/dist/cjs/view/page.js +1 -1
- package/dist/cjs/view/require-auth.js +3 -3
- package/dist/cjs/view/session-timeout/index.js +2 -2
- package/dist/cjs/view/storybook/decorator.js +1 -1
- package/dist/cjs/view/use-window-size-change.js +1 -1
- package/dist/cjs/view/visually-hidden/index.js +2 -1
- package/dist/cjs/view/wait-message/index.js +2 -2
- package/dist/cjs/view/wait-message/wait-message-launcher.js +3 -3
- package/dist/esm/analytics/page-view-event.js +1 -1
- package/dist/esm/api/users/index.endpoint.cjs +12 -0
- package/dist/esm/app.config.json +2 -2
- package/dist/esm/communication/http-client/response-interceptor.js +1 -1
- package/dist/esm/communication/http-client/retry-axios.js +13 -13
- package/dist/esm/communication/http-client/retry.js +1 -1
- package/dist/esm/communication/http-client/tests/hello.endpoint.cjs +12 -0
- package/dist/esm/communication/http-client/tests/private.endpoint.cjs +13 -0
- package/dist/esm/data/appMiddleware.js +2 -3
- package/dist/esm/data/auth-state.js +24 -0
- package/dist/esm/data/breakpoint-state.js +26 -0
- package/dist/esm/data/errorMiddleware.js +2 -2
- package/dist/esm/data/listenerMiddleware.js +5 -3
- package/dist/esm/data/logout-actions.js +8 -0
- package/dist/esm/data/navigation-prompt-actions.js +8 -0
- package/dist/esm/data/queryMiddleware.js +3 -1
- package/dist/esm/data/reducers.js +4 -4
- package/dist/esm/data/store.js +12 -8
- package/dist/esm/data/wait-message-state.js +26 -0
- package/dist/esm/index.js +11 -37
- package/dist/esm/sideeffect/auth/index.js +4 -8
- package/dist/esm/sideeffect/error-toast/index.js +2 -2
- package/dist/esm/sideeffect/wait-message/index.js +3 -3
- package/dist/esm/utils/auth/helper.js +1 -1
- package/dist/esm/utils/auth/index.js +2 -2
- package/dist/esm/utils/font-size.js +1 -1
- package/dist/esm/utils/micro-frontend/guest.js +8 -7
- package/dist/esm/utils/micro-frontend/host.js +6 -4
- package/dist/esm/utils/micro-frontend/index.js +14 -4
- package/dist/esm/utils/session.js +13 -1
- package/dist/esm/utils/storybook/main.js +33 -0
- package/dist/esm/utils/storybook/manager.js +2 -2
- package/dist/esm/utils/storybook/middleware.js +7 -0
- package/dist/esm/utils/storybook/preview.js +10 -5
- package/dist/esm/utils/storybook/theme.js +5 -8
- package/dist/esm/utils/storybook/vite.js +13 -0
- package/dist/esm/utils/storybook/webpack.js +22 -0
- package/dist/esm/utils/testing/index.js +1 -1
- package/dist/esm/utils/testing/render-with-redux.js +1 -5
- package/dist/esm/utils/testing/render-with-router-redux.js +1 -2
- package/dist/esm/utils/url.js +2 -0
- package/dist/esm/utils/window.js +1 -1
- package/dist/esm/view/app-root/hosted-app.js +1 -1
- package/dist/esm/view/app-root/index.js +2 -0
- package/dist/esm/view/app-root/stand-alone-app.js +1 -1
- package/dist/esm/view/app-root/style.js +1 -1
- package/dist/esm/view/app-root/use-prefetch-resources.js +15 -0
- package/dist/esm/view/breakpoint/use-breakpoint.js +7 -4
- package/dist/esm/view/error-boundary/index.js +1 -1
- package/dist/esm/view/error-toast/index.js +3 -3
- package/dist/esm/view/fields/autocomplete/index.js +4 -1
- package/dist/esm/view/fields/combo-box-v3/index.js +1 -1
- package/dist/esm/view/form/personal-info-section.js +5 -7
- package/dist/esm/view/login/index.js +2 -2
- package/dist/esm/view/micro-app/app-factory/index.js +21 -9
- package/dist/esm/view/micro-app/resources/script.js +17 -9
- package/dist/esm/view/micro-app/resources/style.js +15 -2
- package/dist/esm/view/micro-app/use-app-will-render.js +1 -1
- package/dist/esm/view/micro-iframe-app/iframe/index.js +0 -1
- package/dist/esm/view/modals/navigation-prompt/index.js +1 -1
- package/dist/esm/view/modals/session-expiry/index.js +1 -1
- package/dist/esm/view/require-auth.js +1 -1
- package/dist/esm/view/session-timeout/index.js +1 -1
- package/dist/esm/view/storybook/decorator.js +1 -1
- package/dist/esm/view/use-window-size-change.js +1 -1
- package/dist/esm/view/visually-hidden/index.js +1 -0
- package/dist/esm/view/wait-message/index.js +1 -1
- package/dist/esm/view/wait-message/wait-message-launcher.js +1 -1
- package/dist/types/docusaurus.config.d.ts +2 -0
- package/dist/types/lib/api/helpers.d.ts +1 -1
- package/dist/types/lib/communication/http-client/response-interceptor.d.ts +1 -3
- package/dist/types/lib/communication/http-client/retry-axios.d.ts +5 -5
- package/dist/types/lib/data/appMiddleware.d.ts +2 -2
- package/dist/types/lib/data/auth-state.d.ts +28 -0
- package/dist/types/lib/data/breakpoint-state.d.ts +15 -0
- package/dist/types/lib/data/{error/index.d.ts → error-state.d.ts} +5 -1
- package/dist/types/lib/data/listenerMiddleware.d.ts +38 -17
- package/dist/types/lib/data/{live-message/index.d.ts → live-message-state.d.ts} +5 -1
- package/dist/types/lib/data/logout-actions.d.ts +4 -0
- package/dist/types/lib/data/navigation-prompt-actions.d.ts +4 -0
- package/dist/types/lib/data/reducers.d.ts +12 -15
- package/dist/types/lib/data/saga.d.ts +3 -5
- package/dist/types/lib/data/store.d.ts +31 -38
- package/dist/types/lib/data/types.d.ts +6 -6
- package/dist/types/lib/data/wait-message-state.d.ts +17 -0
- package/dist/types/lib/index.d.ts +6 -16
- package/dist/types/lib/sideeffect/auth/index.d.ts +1 -1
- package/dist/types/lib/utils/app-config/config.d.ts +1 -3
- package/dist/types/lib/utils/app-host-integration/react.d.ts +2 -2
- package/dist/types/lib/utils/guest-with-service.d.ts +1 -3
- package/dist/types/lib/utils/micro-frontend/host.d.ts +4 -4
- package/dist/types/lib/utils/micro-frontend/index.d.ts +1 -0
- package/dist/types/lib/utils/micro-frontend/types.d.ts +5 -4
- package/dist/types/lib/utils/session.d.ts +3 -9
- package/dist/types/lib/utils/storybook/main.d.ts +2 -0
- package/dist/types/lib/utils/storybook/manager.d.ts +2 -1
- package/dist/types/lib/utils/storybook/middleware.d.ts +1 -0
- package/dist/types/lib/utils/storybook/preview.d.ts +5 -29
- package/dist/types/lib/utils/storybook/theme.d.ts +2 -5
- package/dist/types/lib/utils/storybook/vite.d.ts +10 -0
- package/dist/types/lib/utils/storybook/webpack.d.ts +17 -0
- package/dist/types/lib/utils/testing/render-with-redux.d.ts +15 -19
- package/dist/types/lib/utils/testing/render-with-router-redux.d.ts +14 -18
- package/dist/types/lib/utils/testing/render-with-router.d.ts +1 -1
- package/dist/types/lib/utils/testing/render-with-state-addons.d.ts +2 -2
- package/dist/types/lib/utils/url.d.ts +1 -0
- package/dist/types/lib/utils/window.d.ts +1 -3
- package/dist/types/lib/view/app-root/hosted-app.d.ts +2 -2
- package/dist/types/lib/view/app-root/index.d.ts +2 -2
- package/dist/types/lib/view/app-root/stand-alone-app.d.ts +2 -2
- package/dist/types/lib/view/app-root/use-prefetch-resources.d.ts +1 -0
- package/dist/types/lib/view/breakpoint/index.stories.d.ts +6 -3
- package/dist/types/lib/view/breakpoint/use-media-query-list.d.ts +1 -1
- package/dist/types/lib/view/error-toast/index.d.ts +1 -4
- package/dist/types/lib/view/error-toast/index.stories.d.ts +12 -5
- package/dist/types/lib/view/fields/autocomplete/advanced-autocomplete.stories.d.ts +6 -5
- package/dist/types/lib/view/fields/autocomplete/async-suggestions-autocomplete.stories.d.ts +6 -5
- package/dist/types/lib/view/fields/autocomplete/index.stories.d.ts +6 -5
- package/dist/types/lib/view/fields/check-box/index.stories.d.ts +8 -5
- package/dist/types/lib/view/fields/check-box/set-value.stories.d.ts +8 -5
- package/dist/types/lib/view/fields/combo-box-v3/index.stories.d.ts +8 -5
- package/dist/types/lib/view/fields/connect-form.d.ts +2 -2
- package/dist/types/lib/view/fields/date-range-picker/index.d.ts +2 -2
- package/dist/types/lib/view/fields/date-range-picker/index.stories.d.ts +8 -7
- package/dist/types/lib/view/fields/date-time-picker/index.stories.d.ts +19 -39
- package/dist/types/lib/view/fields/form-layout-block-item/index.stories.d.ts +8 -4
- package/dist/types/lib/view/fields/input-text/index.stories.d.ts +8 -10
- package/dist/types/lib/view/fields/masked-input-text/index.d.ts +2 -2
- package/dist/types/lib/view/fields/masked-input-text/index.stories.d.ts +10 -0
- package/dist/types/lib/view/fields/toggle/index.stories.d.ts +6 -10
- package/dist/types/lib/view/fields/watch-value.d.ts +2 -2
- package/dist/types/lib/view/form/index.d.ts +2 -2
- package/dist/types/lib/view/form/index.stories.d.ts +7 -3
- package/dist/types/lib/view/form/personal-info-section.d.ts +0 -1
- package/dist/types/lib/view/form/submit-button/index.d.ts +2 -2
- package/dist/types/lib/view/form/usecases.stories.d.ts +9 -12
- package/dist/types/lib/view/live-message/index.stories.d.ts +5 -3
- package/dist/types/lib/view/micro-app/app-factory/index.d.ts +1 -0
- package/dist/types/lib/view/micro-app/resources/manifest.d.ts +1 -1
- package/dist/types/lib/view/micro-app/resources/script.d.ts +4 -0
- package/dist/types/lib/view/micro-app/resources/style.d.ts +4 -0
- package/dist/types/lib/view/micro-app/types.d.ts +2 -2
- package/dist/types/lib/view/micro-app/utils.d.ts +2 -2
- package/dist/types/lib/view/micro-iframe-app/iframe/index.d.ts +2 -2
- package/dist/types/lib/view/modals/error/index.stories.d.ts +9 -6
- package/dist/types/lib/view/modals/navigation-prompt/index.stories.d.ts +9 -10
- package/dist/types/lib/view/modals/session-expiry/index.stories.d.ts +10 -6
- package/dist/types/lib/view/session-timeout/index.stories.d.ts +8 -4
- package/dist/types/lib/view/storybook/decorator.d.ts +1 -1
- package/dist/types/lib/view/visually-hidden/index.d.ts +1 -0
- package/dist/types/lib/view/wait-message/index.stories.d.ts +8 -8
- package/package.json +52 -50
- package/dist/cjs/data/auth/reducer.js +0 -49
- package/dist/cjs/data/wait-message/reducer.js +0 -51
- package/dist/cjs/utils/storybook/cjs/main.js +0 -58
- package/dist/cjs/utils/storybook/cjs/middleware.js +0 -6
- package/dist/cjs/utils/storybook/cjs/vite.js +0 -8
- package/dist/cjs/utils/storybook/cjs/webpack.js +0 -20
- package/dist/cjs/view/fields/combo-box/index.js +0 -50
- package/dist/cjs/view/fields/date-picker/index.js +0 -50
- package/dist/cjs/view/fields/form-item-layout/index.js +0 -43
- package/dist/cjs/view/fields/input-mask/index.js +0 -60
- package/dist/cjs/view/fields/radio/index.js +0 -48
- package/dist/cjs/view/fields/radio-group/index.js +0 -40
- package/dist/cjs/view/fields/text-box/index.js +0 -40
- package/dist/esm/data/auth/actions.js +0 -31
- package/dist/esm/data/auth/reducer.js +0 -19
- package/dist/esm/data/breakpoint/index.js +0 -28
- package/dist/esm/data/logout/actions.js +0 -18
- package/dist/esm/data/navigation-prompt/actions.js +0 -18
- package/dist/esm/data/wait-message/actions.js +0 -18
- package/dist/esm/data/wait-message/reducer.js +0 -21
- package/dist/esm/view/fields/combo-box/index.js +0 -32
- package/dist/esm/view/fields/date-input/index.js +0 -22
- package/dist/esm/view/fields/date-picker/index.js +0 -22
- package/dist/esm/view/fields/form-item-layout/index.js +0 -23
- package/dist/esm/view/fields/input-mask/index.js +0 -42
- package/dist/esm/view/fields/large-text-box/index.js +0 -22
- package/dist/esm/view/fields/radio/index.js +0 -30
- package/dist/esm/view/fields/radio-group/index.js +0 -22
- package/dist/esm/view/fields/text-box/index.js +0 -22
- package/dist/types/lib/data/auth/actions.d.ts +0 -22
- package/dist/types/lib/data/auth/reducer.d.ts +0 -6
- package/dist/types/lib/data/breakpoint/index.d.ts +0 -13
- package/dist/types/lib/data/logout/actions.d.ts +0 -9
- package/dist/types/lib/data/navigation-prompt/actions.d.ts +0 -9
- package/dist/types/lib/data/wait-message/actions.d.ts +0 -14
- package/dist/types/lib/data/wait-message/reducer.d.ts +0 -7
- package/dist/types/lib/utils/storybook/cjs/main.d.ts +0 -66
- package/dist/types/lib/utils/storybook/cjs/middleware.d.ts +0 -2
- package/dist/types/lib/utils/storybook/cjs/vite.d.ts +0 -5
- package/dist/types/lib/utils/storybook/cjs/webpack.d.ts +0 -17
- package/dist/types/lib/view/fields/combo-box/index.d.ts +0 -8
- package/dist/types/lib/view/fields/combo-box/index.stories.d.ts +0 -5
- package/dist/types/lib/view/fields/date-input/index.d.ts +0 -8
- package/dist/types/lib/view/fields/date-input/index.stories.d.ts +0 -7
- package/dist/types/lib/view/fields/date-picker/index.d.ts +0 -9
- package/dist/types/lib/view/fields/date-picker/index.stories.d.ts +0 -5
- package/dist/types/lib/view/fields/form-item-layout/index.d.ts +0 -9
- package/dist/types/lib/view/fields/form-item-layout/index.stories.d.ts +0 -5
- package/dist/types/lib/view/fields/input-mask/index.d.ts +0 -15
- package/dist/types/lib/view/fields/input-mask/index.stories.d.ts +0 -5
- package/dist/types/lib/view/fields/large-text-box/index.d.ts +0 -9
- package/dist/types/lib/view/fields/large-text-box/index.stories.d.ts +0 -5
- package/dist/types/lib/view/fields/masked-input-text/with-money-mask.stories.d.ts +0 -11
- package/dist/types/lib/view/fields/masked-input-text/with-percentage-mask.stories.d.ts +0 -11
- package/dist/types/lib/view/fields/radio/index.d.ts +0 -9
- package/dist/types/lib/view/fields/radio/index.stories.d.ts +0 -5
- package/dist/types/lib/view/fields/radio/set-value.stories.d.ts +0 -5
- package/dist/types/lib/view/fields/radio-group/index.d.ts +0 -8
- package/dist/types/lib/view/fields/radio-group/index.stories.d.ts +0 -5
- package/dist/types/lib/view/fields/text-box/index.d.ts +0 -8
- package/dist/types/lib/view/fields/text-box/index.stories.d.ts +0 -7
- /package/dist/esm/data/{error/index.js → error-state.js} +0 -0
- /package/dist/esm/data/{live-message/index.js → live-message-state.js} +0 -0
- /package/dist/types/lib/api/users/{index.endpoint.d.ts → index.endpoint.d.cts} +0 -0
- /package/dist/types/lib/communication/http-client/tests/{hello.endpoint.d.ts → hello.endpoint.d.cts} +0 -0
- /package/dist/types/lib/communication/http-client/tests/{private.endpoint.d.ts → private.endpoint.d.cts} +0 -0
|
@@ -1,4 +1,8 @@
|
|
|
1
|
-
import {
|
|
2
|
-
declare const
|
|
3
|
-
|
|
4
|
-
|
|
1
|
+
import { StoryObj } from '@storybook/react';
|
|
2
|
+
declare const meta: {
|
|
3
|
+
title: string;
|
|
4
|
+
component: () => import("react/jsx-runtime.js").JSX.Element;
|
|
5
|
+
};
|
|
6
|
+
export default meta;
|
|
7
|
+
type Story = StoryObj<typeof meta>;
|
|
8
|
+
export declare const Basic: Story;
|
|
@@ -2,5 +2,5 @@
|
|
|
2
2
|
import { Theme } from '@elliemae/pui-theme';
|
|
3
3
|
import { AppStore } from '../../data/store.js';
|
|
4
4
|
type StoreFn = () => React.ReactElement;
|
|
5
|
-
export declare const withAppDecorator: (theme: Theme, store: AppStore,
|
|
5
|
+
export declare const withAppDecorator: (theme: Theme, store: AppStore, Story: StoreFn) => import("react/jsx-runtime.js").JSX.Element;
|
|
6
6
|
export {};
|
|
@@ -1,2 +1,3 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
+
import '@emotion/core';
|
|
2
3
|
export declare const VisuallyHidden: import("react").ForwardRefExoticComponent<Omit<import("styled-components").StyledComponent<"span", import("styled-components").DefaultTheme, {}, never>, "ref"> & import("react").RefAttributes<HTMLSpanElement>>;
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { Meta, StoryObj } from '@storybook/react';
|
|
2
2
|
import { WaitMessageProps } from './index.js';
|
|
3
|
-
declare const
|
|
4
|
-
export default _default;
|
|
5
|
-
export declare const Basic: Story<WaitMessageProps & {
|
|
3
|
+
declare const WaitMessageComponent: ({ isOpen, }: WaitMessageProps & {
|
|
6
4
|
isOpen: boolean;
|
|
7
|
-
}
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
5
|
+
}) => import("react/jsx-runtime.js").JSX.Element;
|
|
6
|
+
declare const meta: Meta<typeof WaitMessageComponent>;
|
|
7
|
+
export default meta;
|
|
8
|
+
type Story = StoryObj<typeof meta>;
|
|
9
|
+
export declare const Basic: Story;
|
|
10
|
+
export declare const Close: Story;
|
package/package.json
CHANGED
|
@@ -1,11 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@elliemae/pui-app-sdk",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "6.0.0-next.10",
|
|
4
4
|
"description": "ICE MT UI Platform Application SDK ",
|
|
5
5
|
"sideEffects": [
|
|
6
6
|
"*.css",
|
|
7
7
|
"*.html"
|
|
8
8
|
],
|
|
9
|
+
"type": "module",
|
|
9
10
|
"main": "./dist/cjs/index.js",
|
|
10
11
|
"module": "./dist/esm/index.js",
|
|
11
12
|
"types": "./dist/types/lib/index.d.ts",
|
|
@@ -71,16 +72,16 @@
|
|
|
71
72
|
"scripts": {
|
|
72
73
|
"build": "pui-cli pack -p -t node",
|
|
73
74
|
"build:dev": "pui-cli pack -t node",
|
|
74
|
-
"docs:start": "
|
|
75
|
-
"docs:build": "
|
|
76
|
-
"docs:version": "
|
|
77
|
-
"docs:serve": "
|
|
78
|
-
"e2e:test:functional": "
|
|
79
|
-
"e2e:test:visual": "
|
|
75
|
+
"docs:start": "pui-doc-gen start",
|
|
76
|
+
"docs:build": "pui-doc-gen build",
|
|
77
|
+
"docs:version": "pui-doc-gen version",
|
|
78
|
+
"docs:serve": "pui-doc-gen serve",
|
|
79
|
+
"e2e:test:functional": "e2e-test-sdk run --targets desktop mobile --suite functional",
|
|
80
|
+
"e2e:test:visual": "e2e-test-sdk run --targets desktop mobile --suite visual",
|
|
80
81
|
"e2e:test": "e2e-test-sdk run --targets desktop mobile",
|
|
81
|
-
"e2e:test:dev": "
|
|
82
|
-
"e2e:test:dev:desktop": "e2e-test-sdk run --targets desktop",
|
|
83
|
-
"e2e:test:dev:mobile": "e2e-test-sdk run --targets mobile",
|
|
82
|
+
"e2e:test:dev": "e2e-test-sdk run --targets desktop mobile --spec ",
|
|
83
|
+
"e2e:test:dev:desktop": "e2e-test-sdk run --targets desktop --spec ",
|
|
84
|
+
"e2e:test:dev:mobile": "e2e-test-sdk run --targets mobile --spec ",
|
|
84
85
|
"e2e:test:reports": "e2e-test-sdk generate-report",
|
|
85
86
|
"gendoc": "pui-cli gendoc",
|
|
86
87
|
"lint": "pui-cli lint",
|
|
@@ -110,57 +111,58 @@
|
|
|
110
111
|
"reportFile": "tests.xml",
|
|
111
112
|
"indent": 4
|
|
112
113
|
},
|
|
114
|
+
"dependencies": {
|
|
115
|
+
"@elliemae/pui-app-bridge": "~2.5.3"
|
|
116
|
+
},
|
|
113
117
|
"peerDependencies": {
|
|
114
|
-
"@elliemae/app-react-dependencies": "^
|
|
115
|
-
"@elliemae/ds-backdrop": "^3.
|
|
116
|
-
"@elliemae/ds-basic": "^3.
|
|
117
|
-
"@elliemae/ds-button": "^3.
|
|
118
|
-
"@elliemae/ds-circular-progress-indicator": "^3.
|
|
119
|
-
"@elliemae/ds-controlled-form": "^3.
|
|
120
|
-
"@elliemae/ds-date-picker": "^3.
|
|
121
|
-
"@elliemae/ds-date-range-picker": "^3.
|
|
122
|
-
"@elliemae/ds-dialog": "^3.
|
|
123
|
-
"@elliemae/ds-form": "^3.
|
|
124
|
-
"@elliemae/ds-form-layout-blocks": "^3.
|
|
125
|
-
"@elliemae/ds-grid": "^3.
|
|
126
|
-
"@elliemae/ds-
|
|
127
|
-
"@elliemae/ds-
|
|
128
|
-
"@elliemae/ds-toast": "^3.24.4",
|
|
129
|
-
"@elliemae/ds-utilities": "^3.24.4",
|
|
118
|
+
"@elliemae/app-react-dependencies": "^5.0.0-next.12",
|
|
119
|
+
"@elliemae/ds-backdrop": "^3.29.1",
|
|
120
|
+
"@elliemae/ds-basic": "^3.29.1",
|
|
121
|
+
"@elliemae/ds-button": "^3.29.1",
|
|
122
|
+
"@elliemae/ds-circular-progress-indicator": "^3.29.1",
|
|
123
|
+
"@elliemae/ds-controlled-form": "^3.29.1",
|
|
124
|
+
"@elliemae/ds-date-picker": "^3.29.1",
|
|
125
|
+
"@elliemae/ds-date-range-picker": "^3.29.1",
|
|
126
|
+
"@elliemae/ds-dialog": "^3.29.1",
|
|
127
|
+
"@elliemae/ds-form-layout-autocomplete": "^3.29.1",
|
|
128
|
+
"@elliemae/ds-form-layout-blocks": "^3.29.1",
|
|
129
|
+
"@elliemae/ds-grid": "^3.29.1",
|
|
130
|
+
"@elliemae/ds-popperjs": "^3.29.1",
|
|
131
|
+
"@elliemae/ds-toast": "^3.29.1",
|
|
130
132
|
"@elliemae/em-ssf-guest": "^1.11.3",
|
|
133
|
+
"@elliemae/pui-app-bridge": "^2.5.3",
|
|
131
134
|
"@elliemae/pui-diagnostics": "^3.4.1",
|
|
132
135
|
"@elliemae/pui-micro-frontend-base": "^1.14.0",
|
|
133
|
-
"@elliemae/pui-scripting-object": "^1.
|
|
136
|
+
"@elliemae/pui-scripting-object": "^1.33.0",
|
|
134
137
|
"@elliemae/pui-theme": "^2.7.0",
|
|
135
|
-
"@elliemae/pui-user-monitoring": "^
|
|
138
|
+
"@elliemae/pui-user-monitoring": "^2.0.0"
|
|
136
139
|
},
|
|
137
140
|
"devDependencies": {
|
|
138
|
-
"@elliemae/app-react-dependencies": "~
|
|
141
|
+
"@elliemae/app-react-dependencies": "~5.0.0-next.12",
|
|
139
142
|
"@elliemae/browserslist-config-elliemae-latest-browsers": "~1.8.0",
|
|
140
|
-
"@elliemae/ds-backdrop": "~3.
|
|
141
|
-
"@elliemae/ds-basic": "~3.
|
|
142
|
-
"@elliemae/ds-button": "~3.
|
|
143
|
-
"@elliemae/ds-circular-progress-indicator": "~3.
|
|
144
|
-
"@elliemae/ds-controlled-form": "~3.
|
|
145
|
-
"@elliemae/ds-date-picker": "~3.
|
|
146
|
-
"@elliemae/ds-date-range-picker": "~3.
|
|
147
|
-
"@elliemae/ds-dialog": "~3.
|
|
148
|
-
"@elliemae/ds-form": "~3.
|
|
149
|
-
"@elliemae/ds-form-layout-blocks": "~3.
|
|
150
|
-
"@elliemae/ds-grid": "~3.
|
|
151
|
-
"@elliemae/ds-
|
|
152
|
-
"@elliemae/ds-
|
|
153
|
-
"@elliemae/ds-toast": "~3.24.4",
|
|
154
|
-
"@elliemae/ds-utilities": "~3.24.4",
|
|
143
|
+
"@elliemae/ds-backdrop": "~3.29.1",
|
|
144
|
+
"@elliemae/ds-basic": "~3.29.1",
|
|
145
|
+
"@elliemae/ds-button": "~3.29.1",
|
|
146
|
+
"@elliemae/ds-circular-progress-indicator": "~3.29.1",
|
|
147
|
+
"@elliemae/ds-controlled-form": "~3.29.1",
|
|
148
|
+
"@elliemae/ds-date-picker": "~3.29.1",
|
|
149
|
+
"@elliemae/ds-date-range-picker": "~3.29.1",
|
|
150
|
+
"@elliemae/ds-dialog": "~3.29.1",
|
|
151
|
+
"@elliemae/ds-form-layout-autocomplete": "~3.29.1",
|
|
152
|
+
"@elliemae/ds-form-layout-blocks": "~3.29.1",
|
|
153
|
+
"@elliemae/ds-grid": "~3.29.1",
|
|
154
|
+
"@elliemae/ds-popperjs": "~3.29.1",
|
|
155
|
+
"@elliemae/ds-toast": "~3.29.1",
|
|
155
156
|
"@elliemae/em-ssf-guest": "~1.11.3",
|
|
156
|
-
"@elliemae/pui-
|
|
157
|
+
"@elliemae/pui-app-bridge": "~2.5.3",
|
|
158
|
+
"@elliemae/pui-cli": "~9.0.0-next.40",
|
|
157
159
|
"@elliemae/pui-diagnostics": "~3.4.1",
|
|
158
|
-
"@elliemae/pui-doc-gen": "~
|
|
159
|
-
"@elliemae/pui-e2e-test-sdk": "~
|
|
160
|
+
"@elliemae/pui-doc-gen": "~2.0.1",
|
|
161
|
+
"@elliemae/pui-e2e-test-sdk": "~9.1.0",
|
|
160
162
|
"@elliemae/pui-micro-frontend-base": "~1.14.0",
|
|
161
|
-
"@elliemae/pui-scripting-object": "~1.
|
|
163
|
+
"@elliemae/pui-scripting-object": "~1.33.0",
|
|
162
164
|
"@elliemae/pui-theme": "~2.7.0",
|
|
163
|
-
"@elliemae/pui-user-monitoring": "~
|
|
164
|
-
"@types/react-aria-live": "~2.0.
|
|
165
|
+
"@elliemae/pui-user-monitoring": "~2.0.0",
|
|
166
|
+
"@types/react-aria-live": "~2.0.6"
|
|
165
167
|
}
|
|
166
168
|
}
|
|
@@ -1,49 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __create = Object.create;
|
|
3
|
-
var __defProp = Object.defineProperty;
|
|
4
|
-
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
5
|
-
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
6
|
-
var __getProtoOf = Object.getPrototypeOf;
|
|
7
|
-
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
8
|
-
var __export = (target, all) => {
|
|
9
|
-
for (var name in all)
|
|
10
|
-
__defProp(target, name, { get: all[name], enumerable: true });
|
|
11
|
-
};
|
|
12
|
-
var __copyProps = (to, from, except, desc) => {
|
|
13
|
-
if (from && typeof from === "object" || typeof from === "function") {
|
|
14
|
-
for (let key of __getOwnPropNames(from))
|
|
15
|
-
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
16
|
-
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
17
|
-
}
|
|
18
|
-
return to;
|
|
19
|
-
};
|
|
20
|
-
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
|
21
|
-
// If the importer is in node compatibility mode or this is not an ESM
|
|
22
|
-
// file that has been converted to a CommonJS file using a Babel-
|
|
23
|
-
// compatible transform (i.e. "__esModule" has not been set), then set
|
|
24
|
-
// "default" to the CommonJS "module.exports" for node compatibility.
|
|
25
|
-
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
|
|
26
|
-
mod
|
|
27
|
-
));
|
|
28
|
-
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
29
|
-
var reducer_exports = {};
|
|
30
|
-
__export(reducer_exports, {
|
|
31
|
-
authReducer: () => authReducer,
|
|
32
|
-
initialState: () => initialState
|
|
33
|
-
});
|
|
34
|
-
module.exports = __toCommonJS(reducer_exports);
|
|
35
|
-
var import_immer = __toESM(require("immer"));
|
|
36
|
-
var import_actions = require("./actions.js");
|
|
37
|
-
const initialState = {
|
|
38
|
-
authenticated: false
|
|
39
|
-
};
|
|
40
|
-
const authReducer = (0, import_immer.default)(
|
|
41
|
-
(draft, action) => {
|
|
42
|
-
switch (action.type) {
|
|
43
|
-
case import_actions.LOGIN_SUCCESS:
|
|
44
|
-
draft.authenticated = true;
|
|
45
|
-
break;
|
|
46
|
-
}
|
|
47
|
-
},
|
|
48
|
-
initialState
|
|
49
|
-
);
|
|
@@ -1,51 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __create = Object.create;
|
|
3
|
-
var __defProp = Object.defineProperty;
|
|
4
|
-
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
5
|
-
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
6
|
-
var __getProtoOf = Object.getPrototypeOf;
|
|
7
|
-
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
8
|
-
var __export = (target, all) => {
|
|
9
|
-
for (var name in all)
|
|
10
|
-
__defProp(target, name, { get: all[name], enumerable: true });
|
|
11
|
-
};
|
|
12
|
-
var __copyProps = (to, from, except, desc) => {
|
|
13
|
-
if (from && typeof from === "object" || typeof from === "function") {
|
|
14
|
-
for (let key of __getOwnPropNames(from))
|
|
15
|
-
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
16
|
-
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
17
|
-
}
|
|
18
|
-
return to;
|
|
19
|
-
};
|
|
20
|
-
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
|
21
|
-
// If the importer is in node compatibility mode or this is not an ESM
|
|
22
|
-
// file that has been converted to a CommonJS file using a Babel-
|
|
23
|
-
// compatible transform (i.e. "__esModule" has not been set), then set
|
|
24
|
-
// "default" to the CommonJS "module.exports" for node compatibility.
|
|
25
|
-
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
|
|
26
|
-
mod
|
|
27
|
-
));
|
|
28
|
-
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
29
|
-
var reducer_exports = {};
|
|
30
|
-
__export(reducer_exports, {
|
|
31
|
-
initialState: () => initialState,
|
|
32
|
-
waitMessageReducer: () => waitMessageReducer
|
|
33
|
-
});
|
|
34
|
-
module.exports = __toCommonJS(reducer_exports);
|
|
35
|
-
var import_immer = __toESM(require("immer"));
|
|
36
|
-
var import_actions = require("./actions.js");
|
|
37
|
-
const initialState = {
|
|
38
|
-
isOpen: null,
|
|
39
|
-
message: "loading..."
|
|
40
|
-
};
|
|
41
|
-
const waitMessageReducer = (state = initialState, action) => (0, import_immer.default)(state, (draft) => {
|
|
42
|
-
switch (action.type) {
|
|
43
|
-
case import_actions.ACTIONS.OPEN:
|
|
44
|
-
draft.isOpen = true;
|
|
45
|
-
draft.message = action.payload.message;
|
|
46
|
-
break;
|
|
47
|
-
case import_actions.ACTIONS.CLOSE:
|
|
48
|
-
draft.isOpen = false;
|
|
49
|
-
break;
|
|
50
|
-
}
|
|
51
|
-
});
|
|
@@ -1,58 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
const { mergeWith, isArray } = require("lodash");
|
|
3
|
-
const webpackConfig = require("./webpack.js");
|
|
4
|
-
const viteConfig = require("./vite.js");
|
|
5
|
-
const customizer = (objValue, srcValue) => {
|
|
6
|
-
if (isArray(objValue)) {
|
|
7
|
-
return objValue.concat(srcValue);
|
|
8
|
-
}
|
|
9
|
-
};
|
|
10
|
-
const baseConfig = {
|
|
11
|
-
addons: [
|
|
12
|
-
{
|
|
13
|
-
name: "@storybook/addon-docs",
|
|
14
|
-
options: {
|
|
15
|
-
sourceLoaderOptions: {
|
|
16
|
-
injectStoryParameters: false
|
|
17
|
-
}
|
|
18
|
-
}
|
|
19
|
-
},
|
|
20
|
-
{ name: "@storybook/addon-essentials", options: { docs: false } },
|
|
21
|
-
"@storybook/addon-storysource",
|
|
22
|
-
"@storybook/addon-links",
|
|
23
|
-
"@storybook/addon-events",
|
|
24
|
-
"@storybook/addon-interactions",
|
|
25
|
-
"@storybook/addon-a11y"
|
|
26
|
-
],
|
|
27
|
-
framework: "@storybook/react",
|
|
28
|
-
features: {
|
|
29
|
-
fastRefresh: true,
|
|
30
|
-
storyStoreV7: true
|
|
31
|
-
// babelModeV7: true,
|
|
32
|
-
},
|
|
33
|
-
reactOptions: {
|
|
34
|
-
fastRefresh: true,
|
|
35
|
-
strictMode: true,
|
|
36
|
-
// react v17. remove this after upgrading storybook to v7
|
|
37
|
-
legacyRootApi: true
|
|
38
|
-
},
|
|
39
|
-
typescript: {
|
|
40
|
-
check: false,
|
|
41
|
-
checkOptions: {},
|
|
42
|
-
// reactDocgen: 'react-docgen-typescript', // ToDo: remove this once this plugin supports TS v5
|
|
43
|
-
reactDocgen: false,
|
|
44
|
-
reactDocgenTypescriptOptions: {
|
|
45
|
-
shouldExtractLiteralValuesFromEnum: true,
|
|
46
|
-
propFilter: (prop) => prop.parent ? !/node_modules/.test(prop.parent.fileName) : true,
|
|
47
|
-
compilerOptions: {
|
|
48
|
-
allowSyntheticDefaultImports: false,
|
|
49
|
-
esModuleInterop: false
|
|
50
|
-
}
|
|
51
|
-
}
|
|
52
|
-
}
|
|
53
|
-
};
|
|
54
|
-
module.exports = (viteBuilder = false) => {
|
|
55
|
-
const config = viteBuilder ? viteConfig : webpackConfig;
|
|
56
|
-
console.log("using", viteBuilder ? "vite" : "webpack", "builder config");
|
|
57
|
-
return mergeWith(baseConfig, config, customizer);
|
|
58
|
-
};
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
const { webpackFinal, managerWebpack } = require("@elliemae/pui-cli/storybook");
|
|
3
|
-
module.exports = {
|
|
4
|
-
stories: [{ directory: "../lib" }],
|
|
5
|
-
addons: [
|
|
6
|
-
{
|
|
7
|
-
name: "storybook-addon-turbo-build",
|
|
8
|
-
options: {
|
|
9
|
-
optimizationLevel: 2,
|
|
10
|
-
esbuildMinifyOptions: { target: "es2022" }
|
|
11
|
-
}
|
|
12
|
-
}
|
|
13
|
-
],
|
|
14
|
-
managerWebpack,
|
|
15
|
-
webpackFinal,
|
|
16
|
-
core: {
|
|
17
|
-
builder: "webpack5",
|
|
18
|
-
disableTelemetry: true
|
|
19
|
-
}
|
|
20
|
-
};
|
|
@@ -1,50 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __defProp = Object.defineProperty;
|
|
3
|
-
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
-
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
-
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
|
-
var __export = (target, all) => {
|
|
7
|
-
for (var name in all)
|
|
8
|
-
__defProp(target, name, { get: all[name], enumerable: true });
|
|
9
|
-
};
|
|
10
|
-
var __copyProps = (to, from, except, desc) => {
|
|
11
|
-
if (from && typeof from === "object" || typeof from === "function") {
|
|
12
|
-
for (let key of __getOwnPropNames(from))
|
|
13
|
-
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
14
|
-
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
15
|
-
}
|
|
16
|
-
return to;
|
|
17
|
-
};
|
|
18
|
-
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
19
|
-
var combo_box_exports = {};
|
|
20
|
-
__export(combo_box_exports, {
|
|
21
|
-
ComboBox: () => ComboBox
|
|
22
|
-
});
|
|
23
|
-
module.exports = __toCommonJS(combo_box_exports);
|
|
24
|
-
var import_jsx_runtime = require("react/jsx-runtime");
|
|
25
|
-
var import_ds_form = require("@elliemae/ds-form");
|
|
26
|
-
var import_react_hook_form = require("react-hook-form");
|
|
27
|
-
const ComboBox = ({
|
|
28
|
-
name,
|
|
29
|
-
defaultValue = "",
|
|
30
|
-
rules = {},
|
|
31
|
-
...rest
|
|
32
|
-
}) => /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
33
|
-
import_react_hook_form.Controller,
|
|
34
|
-
{
|
|
35
|
-
name,
|
|
36
|
-
rules,
|
|
37
|
-
defaultValue,
|
|
38
|
-
render: ({ field: { onChange, ...props } }) => /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
39
|
-
import_ds_form.DSComboBox,
|
|
40
|
-
{
|
|
41
|
-
...rest,
|
|
42
|
-
...props,
|
|
43
|
-
onChange: (selected) => {
|
|
44
|
-
const { value = selected } = selected || {};
|
|
45
|
-
onChange(value);
|
|
46
|
-
}
|
|
47
|
-
}
|
|
48
|
-
)
|
|
49
|
-
}
|
|
50
|
-
);
|
|
@@ -1,50 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __create = Object.create;
|
|
3
|
-
var __defProp = Object.defineProperty;
|
|
4
|
-
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
5
|
-
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
6
|
-
var __getProtoOf = Object.getPrototypeOf;
|
|
7
|
-
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
8
|
-
var __export = (target, all) => {
|
|
9
|
-
for (var name in all)
|
|
10
|
-
__defProp(target, name, { get: all[name], enumerable: true });
|
|
11
|
-
};
|
|
12
|
-
var __copyProps = (to, from, except, desc) => {
|
|
13
|
-
if (from && typeof from === "object" || typeof from === "function") {
|
|
14
|
-
for (let key of __getOwnPropNames(from))
|
|
15
|
-
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
16
|
-
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
17
|
-
}
|
|
18
|
-
return to;
|
|
19
|
-
};
|
|
20
|
-
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
|
21
|
-
// If the importer is in node compatibility mode or this is not an ESM
|
|
22
|
-
// file that has been converted to a CommonJS file using a Babel-
|
|
23
|
-
// compatible transform (i.e. "__esModule" has not been set), then set
|
|
24
|
-
// "default" to the CommonJS "module.exports" for node compatibility.
|
|
25
|
-
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
|
|
26
|
-
mod
|
|
27
|
-
));
|
|
28
|
-
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
29
|
-
var date_picker_exports = {};
|
|
30
|
-
__export(date_picker_exports, {
|
|
31
|
-
DatePicker: () => DatePicker
|
|
32
|
-
});
|
|
33
|
-
module.exports = __toCommonJS(date_picker_exports);
|
|
34
|
-
var import_jsx_runtime = require("react/jsx-runtime");
|
|
35
|
-
var import_ds_date_picker = __toESM(require("@elliemae/ds-date-picker"));
|
|
36
|
-
var import_react_hook_form = require("react-hook-form");
|
|
37
|
-
const DatePicker = ({
|
|
38
|
-
name,
|
|
39
|
-
defaultValue = "",
|
|
40
|
-
rules = {},
|
|
41
|
-
...rest
|
|
42
|
-
}) => /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
43
|
-
import_react_hook_form.Controller,
|
|
44
|
-
{
|
|
45
|
-
name,
|
|
46
|
-
defaultValue,
|
|
47
|
-
rules,
|
|
48
|
-
render: ({ field }) => /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_ds_date_picker.default, { ...rest, ...field })
|
|
49
|
-
}
|
|
50
|
-
);
|
|
@@ -1,43 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __defProp = Object.defineProperty;
|
|
3
|
-
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
-
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
-
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
|
-
var __export = (target, all) => {
|
|
7
|
-
for (var name in all)
|
|
8
|
-
__defProp(target, name, { get: all[name], enumerable: true });
|
|
9
|
-
};
|
|
10
|
-
var __copyProps = (to, from, except, desc) => {
|
|
11
|
-
if (from && typeof from === "object" || typeof from === "function") {
|
|
12
|
-
for (let key of __getOwnPropNames(from))
|
|
13
|
-
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
14
|
-
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
15
|
-
}
|
|
16
|
-
return to;
|
|
17
|
-
};
|
|
18
|
-
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
19
|
-
var form_item_layout_exports = {};
|
|
20
|
-
__export(form_item_layout_exports, {
|
|
21
|
-
FormItemLayout: () => FormItemLayout
|
|
22
|
-
});
|
|
23
|
-
module.exports = __toCommonJS(form_item_layout_exports);
|
|
24
|
-
var import_jsx_runtime = require("react/jsx-runtime");
|
|
25
|
-
var import_ds_form = require("@elliemae/ds-form");
|
|
26
|
-
var import_react_hook_form = require("react-hook-form");
|
|
27
|
-
var import_connect_form = require("../connect-form.js");
|
|
28
|
-
const FormItemLayout = ({ name, ...rest }) => /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_connect_form.ConnectForm, { children: ({
|
|
29
|
-
formState: { errors }
|
|
30
|
-
}) => {
|
|
31
|
-
const errorField = (0, import_react_hook_form.get)(errors, name);
|
|
32
|
-
const hasError = !!errorField;
|
|
33
|
-
const validationMessage = errorField?.message;
|
|
34
|
-
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
35
|
-
import_ds_form.DSFormItemLayout,
|
|
36
|
-
{
|
|
37
|
-
name,
|
|
38
|
-
hasError,
|
|
39
|
-
validationMessage,
|
|
40
|
-
...rest
|
|
41
|
-
}
|
|
42
|
-
);
|
|
43
|
-
} });
|
|
@@ -1,60 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __defProp = Object.defineProperty;
|
|
3
|
-
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
-
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
-
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
|
-
var __export = (target, all) => {
|
|
7
|
-
for (var name in all)
|
|
8
|
-
__defProp(target, name, { get: all[name], enumerable: true });
|
|
9
|
-
};
|
|
10
|
-
var __copyProps = (to, from, except, desc) => {
|
|
11
|
-
if (from && typeof from === "object" || typeof from === "function") {
|
|
12
|
-
for (let key of __getOwnPropNames(from))
|
|
13
|
-
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
14
|
-
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
15
|
-
}
|
|
16
|
-
return to;
|
|
17
|
-
};
|
|
18
|
-
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
19
|
-
var input_mask_exports = {};
|
|
20
|
-
__export(input_mask_exports, {
|
|
21
|
-
InputMask: () => InputMask,
|
|
22
|
-
MASK_PIPES: () => import_ds_form.MASK_PIPES,
|
|
23
|
-
MASK_TYPES: () => import_ds_form.MASK_TYPES
|
|
24
|
-
});
|
|
25
|
-
module.exports = __toCommonJS(input_mask_exports);
|
|
26
|
-
var import_jsx_runtime = require("react/jsx-runtime");
|
|
27
|
-
var import_ds_form = require("@elliemae/ds-form");
|
|
28
|
-
var import_react_hook_form = require("react-hook-form");
|
|
29
|
-
const InputMask = ({
|
|
30
|
-
name,
|
|
31
|
-
defaultValue = "",
|
|
32
|
-
rules = {},
|
|
33
|
-
onChange: changeHandler,
|
|
34
|
-
onBlur: onBlurHandler,
|
|
35
|
-
...rest
|
|
36
|
-
}) => /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
37
|
-
import_react_hook_form.Controller,
|
|
38
|
-
{
|
|
39
|
-
name,
|
|
40
|
-
rules,
|
|
41
|
-
defaultValue,
|
|
42
|
-
render: ({ field: { onChange, onBlur, ...props } }) => /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
43
|
-
import_ds_form.DSInputMask,
|
|
44
|
-
{
|
|
45
|
-
...rest,
|
|
46
|
-
...props,
|
|
47
|
-
onChange: (e) => {
|
|
48
|
-
onChange(e);
|
|
49
|
-
if (changeHandler)
|
|
50
|
-
changeHandler(e);
|
|
51
|
-
},
|
|
52
|
-
onBlur: (e) => {
|
|
53
|
-
onBlur();
|
|
54
|
-
if (onBlurHandler)
|
|
55
|
-
onBlurHandler(e);
|
|
56
|
-
}
|
|
57
|
-
}
|
|
58
|
-
)
|
|
59
|
-
}
|
|
60
|
-
);
|
|
@@ -1,48 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __defProp = Object.defineProperty;
|
|
3
|
-
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
-
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
-
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
|
-
var __export = (target, all) => {
|
|
7
|
-
for (var name in all)
|
|
8
|
-
__defProp(target, name, { get: all[name], enumerable: true });
|
|
9
|
-
};
|
|
10
|
-
var __copyProps = (to, from, except, desc) => {
|
|
11
|
-
if (from && typeof from === "object" || typeof from === "function") {
|
|
12
|
-
for (let key of __getOwnPropNames(from))
|
|
13
|
-
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
14
|
-
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
15
|
-
}
|
|
16
|
-
return to;
|
|
17
|
-
};
|
|
18
|
-
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
19
|
-
var radio_exports = {};
|
|
20
|
-
__export(radio_exports, {
|
|
21
|
-
Radio: () => Radio
|
|
22
|
-
});
|
|
23
|
-
module.exports = __toCommonJS(radio_exports);
|
|
24
|
-
var import_jsx_runtime = require("react/jsx-runtime");
|
|
25
|
-
var import_ds_form = require("@elliemae/ds-form");
|
|
26
|
-
var import_react_hook_form = require("react-hook-form");
|
|
27
|
-
const Radio = ({
|
|
28
|
-
name,
|
|
29
|
-
defaultChecked = false,
|
|
30
|
-
rules = {},
|
|
31
|
-
...rest
|
|
32
|
-
}) => /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
33
|
-
import_react_hook_form.Controller,
|
|
34
|
-
{
|
|
35
|
-
name,
|
|
36
|
-
rules,
|
|
37
|
-
defaultValue: defaultChecked,
|
|
38
|
-
render: ({ field: { onChange, value, ...restProps } }) => /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
39
|
-
import_ds_form.DSRadio,
|
|
40
|
-
{
|
|
41
|
-
...rest,
|
|
42
|
-
...restProps,
|
|
43
|
-
checked: value,
|
|
44
|
-
onChange: (e) => onChange(((e || {}).target || {}).checked)
|
|
45
|
-
}
|
|
46
|
-
)
|
|
47
|
-
}
|
|
48
|
-
);
|