@mrfylke/contact-form 0.1.4 → 0.1.7
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 +17 -0
- package/lib/ContactFormRoot.d.ts.map +1 -1
- package/lib/ContactFormRoot.js +3 -1
- package/lib/commoneEvents.d.ts.map +1 -1
- package/lib/components/button/button.d.ts.map +1 -1
- package/lib/components/button/button.module.css +151 -139
- package/lib/components/button/index.d.ts.map +1 -1
- package/lib/components/button/link.d.ts.map +1 -1
- package/lib/components/button/utils.d.ts.map +1 -1
- package/lib/components/checkbox/checkbox.d.ts.map +1 -1
- package/lib/components/checkbox/checkbox.module.css +40 -37
- package/lib/components/checkbox/index.d.ts.map +1 -1
- package/lib/components/error-message/error-message.d.ts.map +1 -1
- package/lib/components/error-message/error-message.module.css +2 -2
- package/lib/components/error-message/index.d.ts.map +1 -1
- package/lib/components/external-link-page.d.ts +1 -1
- package/lib/components/external-link-page.d.ts.map +1 -1
- package/lib/components/external-link-page.js +7 -6
- package/lib/components/external-link-page.module.css +15 -15
- package/lib/components/form/date-selector.d.ts +1 -1
- package/lib/components/form/date-selector.d.ts.map +1 -1
- package/lib/components/form/description-modal.d.ts.map +1 -1
- package/lib/components/form/field-wrapper-with-error/index.d.ts +1 -1
- package/lib/components/form/field-wrapper-with-error/index.d.ts.map +1 -1
- package/lib/components/form/fieldset/fieldset.module.css +15 -15
- package/lib/components/form/fieldset/index.d.ts.map +1 -1
- package/lib/components/form/file-input.d.ts.map +1 -1
- package/lib/components/form/file-input.js +1 -1
- package/lib/components/form/form-component-label/form-component-label.module.css +4 -4
- package/lib/components/form/form-component-label/index.d.ts.map +1 -1
- package/lib/components/form/form.module.css +324 -308
- package/lib/components/form/index.d.ts.map +1 -1
- package/lib/components/form/input.d.ts +1 -1
- package/lib/components/form/input.d.ts.map +1 -1
- package/lib/components/form/input.js +1 -1
- package/lib/components/form/radio.d.ts.map +1 -1
- package/lib/components/form/searchable-select/index.d.ts.map +1 -1
- package/lib/components/form/searchable-select/searchable-select.d.ts.map +1 -1
- package/lib/components/form/searchable-select/searchable-select.js +1 -1
- package/lib/components/form/searchable-select/utils.d.ts +1 -1
- package/lib/components/form/searchable-select/utils.d.ts.map +1 -1
- package/lib/components/form/select.d.ts.map +1 -1
- package/lib/components/form/textarea.d.ts.map +1 -1
- package/lib/components/form/time-selector.d.ts +1 -1
- package/lib/components/form/time-selector.d.ts.map +1 -1
- package/lib/components/icon/checkbox-icon.d.ts +1 -1
- package/lib/components/icon/checkbox-icon.d.ts.map +1 -1
- package/lib/components/icon/checkbox-icon.js +1 -1
- package/lib/components/icon/color-icon.d.ts.map +1 -1
- package/lib/components/icon/color-icon.js +0 -2
- package/lib/components/icon/generated-icons.d.ts +233 -233
- package/lib/components/icon/generated-icons.d.ts.map +1 -1
- package/lib/components/icon/generated-icons.js +1771 -1771
- package/lib/components/icon/icon-wrapper.d.ts +1 -1
- package/lib/components/icon/icon-wrapper.d.ts.map +1 -1
- package/lib/components/icon/illustration.d.ts.map +1 -1
- package/lib/components/icon/illustration.js +0 -2
- package/lib/components/icon/image.d.ts.map +1 -1
- package/lib/components/icon/image.js +0 -2
- package/lib/components/icon/mono-icon-new.d.ts +2 -2
- package/lib/components/icon/mono-icon-new.d.ts.map +1 -1
- package/lib/components/icon/mono-icon.d.ts +1 -1
- package/lib/components/icon/mono-icon.d.ts.map +1 -1
- package/lib/components/icon/mono-icon.js +1 -3
- package/lib/components/index.d.ts.map +1 -1
- package/lib/components/loading/index.d.ts +1 -1
- package/lib/components/loading/index.d.ts.map +1 -1
- package/lib/components/loading/loading.module.css +9 -9
- package/lib/components/section-card/index.d.ts.map +1 -1
- package/lib/components/section-card/section-card.d.ts.map +1 -1
- package/lib/components/section-card/section-card.module.css +10 -10
- package/lib/components/typography/index.d.ts +6 -5
- package/lib/components/typography/index.d.ts.map +1 -1
- package/lib/components/typography/index.js +0 -1
- package/lib/contact.module.css +37 -36
- package/lib/error-content/error-content.module.css +7 -7
- package/lib/index.d.ts +2 -2
- package/lib/index.d.ts.map +1 -1
- package/lib/journey-info/events.d.ts +6 -6
- package/lib/journey-info/events.d.ts.map +1 -1
- package/lib/journey-info/events.js +0 -1
- package/lib/journey-info/index.d.ts.map +1 -1
- package/lib/journey-info/index.js +4 -2
- package/lib/journey-info/journeyInfoStateMachine.d.ts.map +1 -1
- package/lib/layouts/contact-form-container.d.ts.map +1 -1
- package/lib/layouts/contact-page-layout.d.ts +2 -2
- package/lib/layouts/contact-page-layout.d.ts.map +1 -1
- package/lib/layouts/contact-page-layout.js +1 -5
- package/lib/layouts/container.module.css +10 -10
- package/lib/layouts/index.d.ts.map +1 -1
- package/lib/layouts/layout.module.css +46 -45
- package/lib/lines/use-lines.d.ts.map +1 -1
- package/lib/means-of-transport/events.d.ts +7 -7
- package/lib/means-of-transport/events.d.ts.map +1 -1
- package/lib/means-of-transport/events.js +0 -1
- package/lib/means-of-transport/forms/delayForm.d.ts.map +1 -1
- package/lib/means-of-transport/forms/driverForm.d.ts.map +1 -1
- package/lib/means-of-transport/forms/index.d.ts.map +1 -1
- package/lib/means-of-transport/forms/injuryForm.d.ts.map +1 -1
- package/lib/means-of-transport/forms/serviceOfferingForm.d.ts.map +1 -1
- package/lib/means-of-transport/forms/stopForm.d.ts.map +1 -1
- package/lib/means-of-transport/forms/transportationForm.d.ts.map +1 -1
- package/lib/means-of-transport/index.d.ts.map +1 -1
- package/lib/means-of-transport/index.js +4 -2
- package/lib/means-of-transport/means-of-transport-form-machine.d.ts.map +1 -1
- package/lib/means-of-transport/means-of-transport-form-machine.js +5 -1
- package/lib/modules/api-browser/index.d.ts.map +1 -1
- package/lib/modules/config/context.d.ts.map +1 -1
- package/lib/modules/config/theme-adapter.d.ts.map +1 -1
- package/lib/modules/config/types.d.ts +4 -34
- package/lib/modules/config/types.d.ts.map +1 -1
- package/lib/modules/graphql-types/index.d.ts.map +1 -1
- package/lib/modules/graphql-types/journeyplanner-types_v3.generated.d.ts.map +1 -1
- package/lib/modules/theme/index.d.ts.map +1 -1
- package/lib/modules/theme/theme-context.d.ts +1 -1
- package/lib/modules/theme/theme-context.d.ts.map +1 -1
- package/lib/modules/theme/theme-context.js +9 -6
- package/lib/modules/transport-mode/filter/filter.d.ts.map +1 -1
- package/lib/modules/transport-mode/filter/filter.module.css +51 -49
- package/lib/modules/transport-mode/filter/index.d.ts.map +1 -1
- package/lib/modules/transport-mode/filter/types.d.ts.map +1 -1
- package/lib/modules/transport-mode/filter/utils.d.ts.map +1 -1
- package/lib/modules/transport-mode/icon/icon.module.css +14 -14
- package/lib/modules/transport-mode/icon/index.d.ts.map +1 -1
- package/lib/modules/transport-mode/icon/index.js +1 -1
- package/lib/modules/transport-mode/index.d.ts.map +1 -1
- package/lib/modules/transport-mode/types.d.ts.map +1 -1
- package/lib/modules/transport-mode/utils.d.ts.map +1 -1
- package/lib/refund/events.d.ts +12 -12
- package/lib/refund/events.d.ts.map +1 -1
- package/lib/refund/events.js +0 -1
- package/lib/refund/forms/refund-and-travel-guarantee/index.d.ts.map +1 -1
- package/lib/refund/forms/refund-and-travel-guarantee/refundCarForm.d.ts.map +1 -1
- package/lib/refund/forms/refund-and-travel-guarantee/refundTaxiForm.d.ts.map +1 -1
- package/lib/refund/forms/refund-ticket/appTicketRefund.d.ts.map +1 -1
- package/lib/refund/forms/refund-ticket/index.d.ts.map +1 -1
- package/lib/refund/forms/refund-ticket/otherTicketRefund.d.ts.map +1 -1
- package/lib/refund/index.d.ts.map +1 -1
- package/lib/refund/index.js +4 -2
- package/lib/refund/refundFormMachine.d.ts.map +1 -1
- package/lib/refund/refundFormMachine.js +9 -3
- package/lib/server/index.d.ts +1 -1
- package/lib/server/index.d.ts.map +1 -1
- package/lib/server/journey-planner/authority.d.ts.map +1 -1
- package/lib/server/journey-planner/entur-client.d.ts.map +1 -1
- package/lib/server/journey-planner/index.d.ts.map +1 -1
- package/lib/server/journey-planner/journey-gql/lines.generated.d.ts +1 -1
- package/lib/server/journey-planner/journey-gql/lines.generated.d.ts.map +1 -1
- package/lib/server/journey-planner/journey-gql/lines.generated.js +11 -11
- package/lib/server/journey-planner/validators.d.ts.map +1 -1
- package/lib/server/types.d.ts.map +1 -1
- package/lib/success-content/success-content.module.css +7 -7
- package/lib/ticket-control/events.d.ts +6 -6
- package/lib/ticket-control/events.d.ts.map +1 -1
- package/lib/ticket-control/events.js +0 -1
- package/lib/ticket-control/forms/feeComplaintForm.d.ts.map +1 -1
- package/lib/ticket-control/forms/feedbackForm.d.ts.map +1 -1
- package/lib/ticket-control/forms/postponePayment.d.ts.map +1 -1
- package/lib/ticket-control/index.d.ts.map +1 -1
- package/lib/ticket-control/index.js +4 -2
- package/lib/ticket-control/ticket-control-form-machine.d.ts.map +1 -1
- package/lib/ticket-control/ticket-control-form-machine.js +7 -2
- package/lib/ticketing/events.d.ts +10 -10
- package/lib/ticketing/events.d.ts.map +1 -1
- package/lib/ticketing/events.js +0 -1
- package/lib/ticketing/forms/app/appAccountForm.d.ts.map +1 -1
- package/lib/ticketing/forms/app/appTicketingForm.d.ts.map +1 -1
- package/lib/ticketing/forms/app/appTravelSuggestionForm.d.ts.map +1 -1
- package/lib/ticketing/forms/app/index.d.ts.map +1 -1
- package/lib/ticketing/forms/app/index.js +1 -1
- package/lib/ticketing/forms/priceAndTicketTypesForm.d.ts.map +1 -1
- package/lib/ticketing/forms/travel-card/index.d.ts.map +1 -1
- package/lib/ticketing/forms/travel-card/index.js +1 -1
- package/lib/ticketing/forms/travel-card/orderTravelCard.d.ts.map +1 -1
- package/lib/ticketing/forms/travel-card/travelCardQuestionForm.d.ts.map +1 -1
- package/lib/ticketing/forms/webshop/index.d.ts.map +1 -1
- package/lib/ticketing/forms/webshop/index.js +1 -1
- package/lib/ticketing/forms/webshop/webshopAccountForm.d.ts.map +1 -1
- package/lib/ticketing/forms/webshop/webshopTicketingForm.d.ts.map +1 -1
- package/lib/ticketing/index.d.ts.map +1 -1
- package/lib/ticketing/index.js +4 -2
- package/lib/ticketing/ticketingStateMachine.d.ts.map +1 -1
- package/lib/ticketing/ticketingStateMachine.js +2 -1
- package/lib/translations/common/index.d.ts.map +1 -1
- package/lib/translations/common/layout.d.ts.map +1 -1
- package/lib/translations/commons.d.ts.map +1 -1
- package/lib/translations/components/index.d.ts.map +1 -1
- package/lib/translations/components/map.d.ts.map +1 -1
- package/lib/translations/components/search.d.ts.map +1 -1
- package/lib/translations/components/transport-mode.d.ts.map +1 -1
- package/lib/translations/dictionary.d.ts.map +1 -1
- package/lib/translations/index.d.ts +2 -2
- package/lib/translations/index.d.ts.map +1 -1
- package/lib/translations/json-to-override.d.ts.map +1 -1
- package/lib/translations/json-to-override.js +15 -5
- package/lib/translations/language-context.d.ts.map +1 -1
- package/lib/translations/language-context.js +5 -9
- package/lib/translations/load-org-translations.d.ts.map +1 -1
- package/lib/translations/merge-overrides.d.ts.map +1 -1
- package/lib/translations/merge-overrides.js +3 -1
- package/lib/translations/modules/index.d.ts +0 -1
- package/lib/translations/modules/index.d.ts.map +1 -1
- package/lib/translations/modules/index.js +1 -3
- package/lib/translations/modules/situation.d.ts.map +1 -1
- package/lib/translations/pages/contact.d.ts +1 -1
- package/lib/translations/pages/contact.d.ts.map +1 -1
- package/lib/translations/pages/departures.d.ts.map +1 -1
- package/lib/translations/pages/index.d.ts.map +1 -1
- package/lib/translations/server/endpoints.d.ts.map +1 -1
- package/lib/translations/server/index.d.ts.map +1 -1
- package/lib/translations/translations-context.d.ts.map +1 -1
- package/lib/translations/types.d.ts.map +1 -1
- package/lib/translations/utils.d.ts.map +1 -1
- package/lib/translations/utils.js +3 -1
- package/lib/types/submit-payloads.d.ts.map +1 -1
- package/lib/types.d.ts +1 -1
- package/lib/types.d.ts.map +1 -1
- package/lib/utils/color.js +1 -1
- package/lib/utils/date.d.ts.map +1 -1
- package/lib/utils/date.js +1 -1
- package/lib/utils/env.d.ts.map +1 -1
- package/lib/utils/presence.d.ts.map +1 -1
- package/lib/utils.d.ts +1 -1
- package/lib/utils.d.ts.map +1 -1
- package/lib/validation/commonInputValidator.d.ts.map +1 -1
- package/lib/validation/index.d.ts.map +1 -1
- package/lib/validation/validationRules.d.ts.map +1 -1
- package/package.json +2 -3
- package/lib/layouts/contact-form-footer.d.ts +0 -5
- package/lib/layouts/contact-form-footer.d.ts.map +0 -1
- package/lib/layouts/contact-form-footer.js +0 -59
- package/lib/layouts/contact-form-header.d.ts +0 -9
- package/lib/layouts/contact-form-header.d.ts.map +0 -1
- package/lib/layouts/contact-form-header.js +0 -45
- package/lib/layouts/footer.module.css +0 -109
- package/lib/layouts/header.module.css +0 -39
- package/lib/modules/api-server/external-client.d.ts +0 -22
- package/lib/modules/api-server/external-client.d.ts.map +0 -1
- package/lib/modules/api-server/external-client.js +0 -86
- package/lib/modules/api-server/index.d.ts +0 -9
- package/lib/modules/api-server/index.d.ts.map +0 -1
- package/lib/modules/api-server/index.js +0 -24
- package/lib/modules/api-server/requesters/graphql-requester.d.ts +0 -6
- package/lib/modules/api-server/requesters/graphql-requester.d.ts.map +0 -1
- package/lib/modules/api-server/requesters/graphql-requester.js +0 -63
- package/lib/modules/api-server/requesters/http-requester.d.ts +0 -3
- package/lib/modules/api-server/requesters/http-requester.d.ts.map +0 -1
- package/lib/modules/api-server/requesters/http-requester.js +0 -110
- package/lib/modules/api-server/requesters/types.d.ts +0 -37
- package/lib/modules/api-server/requesters/types.d.ts.map +0 -1
- package/lib/modules/api-server/requesters/types.js +0 -34
- package/lib/modules/api-server/requesters/utils.d.ts +0 -17
- package/lib/modules/api-server/requesters/utils.d.ts.map +0 -1
- package/lib/modules/api-server/requesters/utils.js +0 -75
- package/lib/modules/cookies/constants.d.ts +0 -4
- package/lib/modules/cookies/constants.d.ts.map +0 -1
- package/lib/modules/cookies/constants.js +0 -6
- package/lib/modules/cookies/cookies-context.d.ts +0 -17
- package/lib/modules/cookies/cookies-context.d.ts.map +0 -1
- package/lib/modules/cookies/cookies-context.js +0 -61
- package/lib/modules/cookies/index.d.ts +0 -15
- package/lib/modules/cookies/index.d.ts.map +0 -1
- package/lib/modules/cookies/index.js +0 -22
- package/lib/modules/firebase/analytics.d.ts +0 -3
- package/lib/modules/firebase/analytics.d.ts.map +0 -1
- package/lib/modules/firebase/analytics.js +0 -40
- package/lib/modules/firebase/firebase.d.ts +0 -4
- package/lib/modules/firebase/firebase.d.ts.map +0 -1
- package/lib/modules/firebase/firebase.js +0 -19
- package/lib/modules/firebase/index.d.ts +0 -5
- package/lib/modules/firebase/index.d.ts.map +0 -1
- package/lib/modules/firebase/index.js +0 -25
- package/lib/modules/firebase/preassigned-fare-products.d.ts +0 -8
- package/lib/modules/firebase/preassigned-fare-products.d.ts.map +0 -1
- package/lib/modules/firebase/preassigned-fare-products.js +0 -35
- package/lib/modules/firebase/tariff-zones.d.ts +0 -17
- package/lib/modules/firebase/tariff-zones.d.ts.map +0 -1
- package/lib/modules/firebase/tariff-zones.js +0 -32
- package/lib/modules/firebase/transport-mode-filter.d.ts +0 -27
- package/lib/modules/firebase/transport-mode-filter.d.ts.map +0 -1
- package/lib/modules/firebase/transport-mode-filter.js +0 -27
- package/lib/modules/firebase/types.d.ts +0 -19
- package/lib/modules/firebase/types.d.ts.map +0 -1
- package/lib/modules/firebase/types.js +0 -15
- package/lib/modules/logging/index.d.ts +0 -6
- package/lib/modules/logging/index.d.ts.map +0 -1
- package/lib/modules/logging/index.js +0 -13
- package/lib/modules/logging/log-api-response.d.ts +0 -15
- package/lib/modules/logging/log-api-response.d.ts.map +0 -1
- package/lib/modules/logging/log-api-response.js +0 -52
- package/lib/modules/logging/log-page-access.d.ts +0 -20
- package/lib/modules/logging/log-page-access.d.ts.map +0 -1
- package/lib/modules/logging/log-page-access.js +0 -60
- package/lib/modules/logging/logger.d.ts +0 -3
- package/lib/modules/logging/logger.d.ts.map +0 -1
- package/lib/modules/logging/logger.js +0 -32
- package/lib/modules/logging/timer.d.ts +0 -6
- package/lib/modules/logging/timer.d.ts.map +0 -1
- package/lib/modules/logging/timer.js +0 -13
- package/lib/modules/logging/with-access-logging.d.ts +0 -5
- package/lib/modules/logging/with-access-logging.d.ts.map +0 -1
- package/lib/modules/logging/with-access-logging.js +0 -20
- package/lib/modules/transport-mode/icon/transport-icon-new.d.ts +0 -28
- package/lib/modules/transport-mode/icon/transport-icon-new.d.ts.map +0 -1
- package/lib/modules/transport-mode/icon/transport-icon-new.js +0 -114
- package/lib/server/contact/index.d.ts +0 -11
- package/lib/server/contact/index.d.ts.map +0 -1
- package/lib/server/contact/index.js +0 -47
- package/lib/translations/__tests__/utils.test.d.ts +0 -2
- package/lib/translations/__tests__/utils.test.d.ts.map +0 -1
- package/lib/translations/__tests__/utils.test.js +0 -35
- package/lib/translations/modules/layout.d.ts +0 -73
- package/lib/translations/modules/layout.d.ts.map +0 -1
- package/lib/translations/modules/layout.js +0 -106
- package/lib/translations/pages/assistant.d.ts +0 -2
- package/lib/translations/pages/assistant.d.ts.map +0 -1
- package/lib/translations/pages/assistant.js +0 -303
- package/lib/utils/enum-from-string.d.ts +0 -4
- package/lib/utils/enum-from-string.d.ts.map +0 -1
- package/lib/utils/enum-from-string.js +0 -9
- package/lib/utils/only-uniques.d.ts +0 -3
- package/lib/utils/only-uniques.d.ts.map +0 -1
- package/lib/utils/only-uniques.js +0 -7
- package/lib/utils/org-theme-definitions.d.ts +0 -5
- package/lib/utils/org-theme-definitions.d.ts.map +0 -1
- package/lib/utils/org-theme-definitions.js +0 -13
- package/lib/utils/reference-data.d.ts +0 -15
- package/lib/utils/reference-data.d.ts.map +0 -1
- package/lib/utils/reference-data.js +0 -15
- package/lib/utils/use-client-width.d.ts +0 -2
- package/lib/utils/use-client-width.d.ts.map +0 -1
- package/lib/utils/use-client-width.js +0 -18
- package/lib/utils/use-interval.d.ts +0 -2
- package/lib/utils/use-interval.d.ts.map +0 -1
- package/lib/utils/use-interval.js +0 -22
- package/lib/utils/use-localstorage.d.ts +0 -2
- package/lib/utils/use-localstorage.d.ts.map +0 -1
- package/lib/utils/use-localstorage.js +0 -40
- package/lib/utils/use-now.d.ts +0 -2
- package/lib/utils/use-now.d.ts.map +0 -1
- package/lib/utils/use-now.js +0 -13
- package/lib/utils/user-media-query.d.ts +0 -2
- package/lib/utils/user-media-query.d.ts.map +0 -1
- package/lib/utils/user-media-query.js +0 -36
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/modules/transport-mode/icon/index.tsx"],"names":[],"mappings":"AAAA,OAAO,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/modules/transport-mode/icon/index.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,kBAAkB,EAAE,MAAM,UAAU,CAAC;AAC9C,OAAiB,EAAE,aAAa,EAAE,MAAM,oCAAoC,CAAC;AAC7E,OAAO,EACL,aAAa,EACb,eAAe,EAEhB,MAAM,wBAAwB,CAAC;AAUhC,MAAM,MAAM,mBAAmB,GAAG;IAChC,KAAK,EAAE,kBAAkB,EAAE,CAAC;CAC7B,CAAC;AAEF,wBAAgB,cAAc,CAAC,EAAE,KAAK,EAAE,EAAE,mBAAmB,2CAW5D;AAED,MAAM,MAAM,kBAAkB,GAAG;IAC/B,IAAI,EAAE,kBAAkB,CAAC;IACzB,IAAI,CAAC,EAAE,aAAa,CAAC,MAAM,CAAC,CAAC;IAC7B,UAAU,CAAC,EAAE,OAAO,CAAC;CACtB,CAAC;AAEF,wBAAgB,aAAa,CAAC,EAC5B,IAAI,EACJ,IAAe,EACf,UAAU,GACX,EAAE,kBAAkB,2CAiBpB;AAED,wBAAgB,iBAAiB,CAAC,EAAE,IAAI,EAAE,EAAE,kBAAkB,2CAS7D;AAED,MAAM,MAAM,8BAA8B,GAAG;IAC3C,IAAI,EAAE,kBAAkB,CAAC;IACzB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,UAAU,CAAC,EAAE,OAAO,CAAC;CACtB,CAAC;AAEF,wBAAgB,yBAAyB,CAAC,EACxC,IAAI,EACJ,KAAK,EACL,QAAQ,EACR,UAAU,GACX,EAAE,8BAA8B,2CA+ChC;AAED,wBAAgB,2BAA2B,CACzC,IAAI,EAAE,kBAAkB,EACxB,UAAU,CAAC,EAAE,OAAO;;;;EAUrB;AAED,wBAAgB,oBAAoB,CAClC,IAAI,EAAE,kBAAkB,EACxB,SAAS,EAAE,eAAe,EAC1B,UAAU,CAAC,EAAE,OAAO,GACnB,aAAa,CAqCf;AAED,wBAAgB,oBAAoB,CAClC,IAAI,EAAE,kBAAkB,GACvB,aAAa,CAAC,MAAM,CAAC,CAwBvB"}
|
|
@@ -50,7 +50,7 @@ function TransportIconWithDuration({ mode, label, duration, isFlexible, }) {
|
|
|
50
50
|
function useTransportationThemeColor(mode, isFlexible) {
|
|
51
51
|
const { theme } = (0, theme_1.useTheme)();
|
|
52
52
|
const { transport } = theme.color;
|
|
53
|
-
|
|
53
|
+
const color = transportModeToColor(mode, transport, isFlexible);
|
|
54
54
|
return {
|
|
55
55
|
backgroundColor: color.background,
|
|
56
56
|
textColor: color.foreground.primary,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/modules/transport-mode/index.ts"],"names":[],"mappings":"AAAA,OAAO,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/modules/transport-mode/index.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,KAAK,iBAAiB,EACtB,KAAK,oBAAoB,EACzB,KAAK,kBAAkB,EACvB,mBAAmB,EACnB,sBAAsB,GACvB,MAAM,SAAS,CAAC;AAEjB,OAAO,EACL,+BAA+B,EAC/B,wCAAwC,EACxC,mBAAmB,EACnB,sBAAsB,EACtB,2BAA2B,EAC3B,aAAa,GACd,MAAM,SAAS,CAAC;AAEjB,cAAc,QAAQ,CAAC;AACvB,cAAc,UAAU,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/modules/transport-mode/types.ts"],"names":[],"mappings":"AAAA,OAAO,
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/modules/transport-mode/types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,eAAO,MAAM,mBAAmB,ofAqB9B,CAAC;AACH,MAAM,MAAM,iBAAiB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,mBAAmB,CAAC,CAAC;AAEpE,eAAO,MAAM,sBAAsB,wjHAkHjC,CAAC;AAEH,MAAM,MAAM,oBAAoB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,sBAAsB,CAAC,CAAC;AAE1E,MAAM,MAAM,kBAAkB,GAAG;IAC/B,aAAa,EAAE,iBAAiB,CAAC;IACjC,iBAAiB,CAAC,EAAE,oBAAoB,EAAE,CAAC;CAC5C,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../../src/modules/transport-mode/utils.ts"],"names":[],"mappings":"AACA,OAAO,
|
|
1
|
+
{"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../../src/modules/transport-mode/utils.ts"],"names":[],"mappings":"AACA,OAAO,EACL,kBAAkB,EAElB,iBAAiB,EAEjB,oBAAoB,EACrB,MAAM,SAAS,CAAC;AACjB,OAAO,EAAE,aAAa,IAAI,oBAAoB,EAAE,MAAM,6BAA6B,CAAC;AAEpF,wBAAgB,+BAA+B,CAAC,IAAI,EAAE,kBAAkB,iDAMvE;AAED,wBAAgB,wCAAwC,CACtD,KAAK,EAAE,kBAAkB,EAAE,mDAK5B;AAED,wBAAgB,mBAAmB,CAAC,CAAC,EAAE,GAAG,GAAG,CAAC,IAAI,iBAAiB,CAElE;AAED,wBAAgB,sBAAsB,CAAC,CAAC,EAAE,GAAG,GAAG,CAAC,IAAI,oBAAoB,CAExE;AAED,wBAAgB,2BAA2B,CACzC,KAAK,EAAE,oBAAoB,EAAE,GAAG,SAAS,GACxC,iBAAiB,EAAE,GAAG,SAAS,CAQjC;AAUD,wBAAgB,aAAa,CAAC,QAAQ,CAAC,EAAE,oBAAoB,EAAE,WAG9D"}
|
package/lib/refund/events.d.ts
CHANGED
|
@@ -1,32 +1,32 @@
|
|
|
1
1
|
import { FormCategory, RefundAndTravelGuarantee, RefundTicketForm } from './refundFormMachine';
|
|
2
2
|
import { PurchasePlatformType, ReasonForTransportFailure, TicketType, TransportModeType } from '../types';
|
|
3
3
|
import { Line } from '..';
|
|
4
|
-
|
|
5
|
-
type:
|
|
6
|
-
inputName:
|
|
7
|
-
value: string | boolean | ReasonForTransportFailure | TicketType | Line[
|
|
4
|
+
type RefundSpecificFormEvents = {
|
|
5
|
+
type: 'ON_INPUT_CHANGE';
|
|
6
|
+
inputName: 'formType' | 'kilometersDriven' | 'fromAddress' | 'toAddress' | 'amount' | 'reasonForTransportFailure' | 'orderId' | 'customerNumber' | 'ticketType' | 'travelCardNumber' | 'refundReason' | 'firstName' | 'lastName' | 'address' | 'postalCode' | 'city' | 'email' | 'phoneNumber' | 'bankAccountNumber' | 'IBAN' | 'SWIFT' | 'fromStop' | 'toStop' | 'date' | 'plannedDepartureTime' | 'feedback' | 'attachments' | 'isInitialAgreementChecked' | 'hasInternationalBankAccount' | 'showInputTravelCardNumber';
|
|
7
|
+
value: string | boolean | ReasonForTransportFailure | TicketType | Line['quays'][0] | File[] | undefined;
|
|
8
8
|
} | {
|
|
9
|
-
type:
|
|
9
|
+
type: 'SELECT_FORM_CATEGORY';
|
|
10
10
|
formCategory: FormCategory;
|
|
11
11
|
} | {
|
|
12
|
-
type:
|
|
12
|
+
type: 'SELECT_REFUND_TICKET_FORM';
|
|
13
13
|
refundTicketForm: RefundTicketForm;
|
|
14
14
|
} | {
|
|
15
|
-
type:
|
|
15
|
+
type: 'SELECT_REFUND_AND_TRAVEL_GUARANTEE_FORM';
|
|
16
16
|
refundAndTravelGuarantee: RefundAndTravelGuarantee;
|
|
17
17
|
} | {
|
|
18
|
-
type:
|
|
18
|
+
type: 'ON_TRANSPORTMODE_CHANGE';
|
|
19
19
|
value: TransportModeType;
|
|
20
20
|
} | {
|
|
21
|
-
type:
|
|
21
|
+
type: 'ON_LINE_CHANGE';
|
|
22
22
|
value: Line | undefined;
|
|
23
23
|
} | {
|
|
24
|
-
type:
|
|
24
|
+
type: 'ON_PURCHASE_PLATFORM_CHANGE';
|
|
25
25
|
value: PurchasePlatformType | undefined;
|
|
26
26
|
} | {
|
|
27
|
-
type:
|
|
27
|
+
type: 'SUBMIT';
|
|
28
28
|
orderedFormFieldNames: string[];
|
|
29
29
|
};
|
|
30
|
-
export declare const RefundFormEvents:
|
|
30
|
+
export declare const RefundFormEvents: RefundSpecificFormEvents;
|
|
31
31
|
export {};
|
|
32
32
|
//# sourceMappingURL=events.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"events.d.ts","sourceRoot":"","sources":["../../src/refund/events.ts"],"names":[],"mappings":"AAAA,OAAO,
|
|
1
|
+
{"version":3,"file":"events.d.ts","sourceRoot":"","sources":["../../src/refund/events.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,YAAY,EACZ,wBAAwB,EACxB,gBAAgB,EACjB,MAAM,qBAAqB,CAAC;AAC7B,OAAO,EACL,oBAAoB,EACpB,yBAAyB,EACzB,UAAU,EACV,iBAAiB,EAClB,MAAM,UAAU,CAAC;AAClB,OAAO,EAAE,IAAI,EAAE,MAAM,IAAI,CAAC;AAE1B,KAAK,wBAAwB,GACzB;IACE,IAAI,EAAE,iBAAiB,CAAC;IACxB,SAAS,EACL,UAAU,GACV,kBAAkB,GAClB,aAAa,GACb,WAAW,GACX,QAAQ,GACR,2BAA2B,GAC3B,SAAS,GACT,gBAAgB,GAChB,YAAY,GACZ,kBAAkB,GAClB,cAAc,GACd,WAAW,GACX,UAAU,GACV,SAAS,GACT,YAAY,GACZ,MAAM,GACN,OAAO,GACP,aAAa,GACb,mBAAmB,GACnB,MAAM,GACN,OAAO,GACP,UAAU,GACV,QAAQ,GACR,MAAM,GACN,sBAAsB,GACtB,UAAU,GACV,aAAa,GACb,2BAA2B,GAC3B,6BAA6B,GAC7B,2BAA2B,CAAC;IAChC,KAAK,EACD,MAAM,GACN,OAAO,GACP,yBAAyB,GACzB,UAAU,GACV,IAAI,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC,GAChB,IAAI,EAAE,GACN,SAAS,CAAC;CACf,GACD;IACE,IAAI,EAAE,sBAAsB,CAAC;IAC7B,YAAY,EAAE,YAAY,CAAC;CAC5B,GACD;IACE,IAAI,EAAE,2BAA2B,CAAC;IAClC,gBAAgB,EAAE,gBAAgB,CAAC;CACpC,GACD;IACE,IAAI,EAAE,yCAAyC,CAAC;IAChD,wBAAwB,EAAE,wBAAwB,CAAC;CACpD,GACD;IACE,IAAI,EAAE,yBAAyB,CAAC;IAChC,KAAK,EAAE,iBAAiB,CAAC;CAC1B,GACD;IACE,IAAI,EAAE,gBAAgB,CAAC;IACvB,KAAK,EAAE,IAAI,GAAG,SAAS,CAAC;CACzB,GACD;IACE,IAAI,EAAE,6BAA6B,CAAC;IACpC,KAAK,EAAE,oBAAoB,GAAG,SAAS,CAAC;CACzC,GACD;IACE,IAAI,EAAE,QAAQ,CAAC;IACf,qBAAqB,EAAE,MAAM,EAAE,CAAC;CACjC,CAAC;AAEN,eAAO,MAAM,gBAAgB,EAAS,wBAAwB,CAAC"}
|
package/lib/refund/events.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/refund/forms/refund-and-travel-guarantee/index.tsx"],"names":[],"mappings":"AACA,OAAO,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/refund/forms/refund-and-travel-guarantee/index.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,SAAS,EAAE,MAAM,QAAQ,CAAC;AACnC,OAAO,EAEL,kBAAkB,EACnB,MAAM,yBAAyB,CAAC;AACjC,OAAO,EAAE,gBAAgB,EAAE,MAAM,cAAc,CAAC;AAahD,KAAK,kCAAkC,GAAG;IACxC,KAAK,EAAE,SAAS,CAAC,OAAO,kBAAkB,CAAC,CAAC;IAC5C,IAAI,EAAE,CAAC,KAAK,EAAE,OAAO,gBAAgB,KAAK,IAAI,CAAC;CAChD,CAAC;AAEF,eAAO,MAAM,6BAA6B,GAAI,kBAG3C,kCAAkC,4CA8GpC,CAAC;AAEF,eAAe,6BAA6B,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"refundCarForm.d.ts","sourceRoot":"","sources":["../../../../src/refund/forms/refund-and-travel-guarantee/refundCarForm.tsx"],"names":[],"mappings":"AAGA,OAAO,
|
|
1
|
+
{"version":3,"file":"refundCarForm.d.ts","sourceRoot":"","sources":["../../../../src/refund/forms/refund-and-travel-guarantee/refundCarForm.tsx"],"names":[],"mappings":"AAGA,OAAO,EAAE,gBAAgB,EAAE,MAAM,cAAc,CAAC;AAChD,OAAO,EAAE,kBAAkB,EAAE,MAAM,yBAAyB,CAAC;AAe7D,KAAK,kBAAkB,GAAG;IACxB,KAAK,EAAE;QAAE,OAAO,EAAE,kBAAkB,CAAA;KAAE,CAAC;IACvC,IAAI,EAAE,CAAC,KAAK,EAAE,OAAO,gBAAgB,KAAK,IAAI,CAAC;CAChD,CAAC;AAEF,eAAO,MAAM,aAAa,GAAI,iBAAiB,kBAAkB,4CA6bhE,CAAC;AAEF,eAAe,aAAa,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"refundTaxiForm.d.ts","sourceRoot":"","sources":["../../../../src/refund/forms/refund-and-travel-guarantee/refundTaxiForm.tsx"],"names":[],"mappings":"AAGA,OAAO,
|
|
1
|
+
{"version":3,"file":"refundTaxiForm.d.ts","sourceRoot":"","sources":["../../../../src/refund/forms/refund-and-travel-guarantee/refundTaxiForm.tsx"],"names":[],"mappings":"AAGA,OAAO,EAAE,gBAAgB,EAAE,MAAM,cAAc,CAAC;AAChD,OAAO,EAAE,kBAAkB,EAAE,MAAM,yBAAyB,CAAC;AAgB7D,KAAK,mBAAmB,GAAG;IACzB,KAAK,EAAE;QAAE,OAAO,EAAE,kBAAkB,CAAA;KAAE,CAAC;IACvC,IAAI,EAAE,CAAC,KAAK,EAAE,OAAO,gBAAgB,KAAK,IAAI,CAAC;CAChD,CAAC;AAEF,eAAO,MAAM,cAAc,GAAI,iBAAiB,mBAAmB,4CA0alE,CAAC;AAEF,eAAe,cAAc,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"appTicketRefund.d.ts","sourceRoot":"","sources":["../../../../src/refund/forms/refund-ticket/appTicketRefund.tsx"],"names":[],"mappings":"AAAA,OAAO,
|
|
1
|
+
{"version":3,"file":"appTicketRefund.d.ts","sourceRoot":"","sources":["../../../../src/refund/forms/refund-ticket/appTicketRefund.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,kBAAkB,EAAE,MAAM,yBAAyB,CAAC;AAC7D,OAAO,EAAE,gBAAgB,EAAE,MAAM,cAAc,CAAC;AAKhD,KAAK,oBAAoB,GAAG;IAC1B,KAAK,EAAE;QAAE,OAAO,EAAE,kBAAkB,CAAA;KAAE,CAAC;IACvC,IAAI,EAAE,CAAC,KAAK,EAAE,OAAO,gBAAgB,KAAK,IAAI,CAAC;CAChD,CAAC;AAEF,eAAO,MAAM,eAAe,GAAI,iBAAiB,oBAAoB,4CA+GpE,CAAC;AAkIF,MAAM,CAAC,OAAO,UAAU,sBAAsB,CAAC,EAC7C,KAAK,EACL,IAAI,GACL,EAAE,oBAAoB,2CAOtB"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/refund/forms/refund-ticket/index.tsx"],"names":[],"mappings":"AACA,OAAO,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/refund/forms/refund-ticket/index.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,SAAS,EAAE,MAAM,QAAQ,CAAC;AAUnC,OAAO,EAAE,kBAAkB,EAAoB,MAAM,yBAAyB,CAAC;AAC/E,OAAO,EAAE,gBAAgB,EAAE,MAAM,cAAc,CAAC;AAIhD,KAAK,sBAAsB,GAAG;IAC5B,KAAK,EAAE,SAAS,CAAC,OAAO,kBAAkB,CAAC,CAAC;IAC5C,IAAI,EAAE,CAAC,KAAK,EAAE,OAAO,gBAAgB,KAAK,IAAI,CAAC;CAChD,CAAC;AAEF,eAAO,MAAM,iBAAiB,GAAI,iBAAiB,sBAAsB,4CAsGxE,CAAC;AAEF,eAAe,iBAAiB,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"otherTicketRefund.d.ts","sourceRoot":"","sources":["../../../../src/refund/forms/refund-ticket/otherTicketRefund.tsx"],"names":[],"mappings":"AACA,OAAO,
|
|
1
|
+
{"version":3,"file":"otherTicketRefund.d.ts","sourceRoot":"","sources":["../../../../src/refund/forms/refund-ticket/otherTicketRefund.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,gBAAgB,EAAE,MAAM,cAAc,CAAC;AAQhD,OAAO,EAAE,kBAAkB,EAAE,MAAM,yBAAyB,CAAC;AAI7D,KAAK,sBAAsB,GAAG;IAC5B,KAAK,EAAE;QAAE,OAAO,EAAE,kBAAkB,CAAA;KAAE,CAAC;IACvC,IAAI,EAAE,CAAC,KAAK,EAAE,OAAO,gBAAgB,KAAK,IAAI,CAAC;CAChD,CAAC;AA0VF,eAAO,MAAM,iBAAiB,GAAI,iBAAiB,sBAAsB,4CAOxE,CAAC;AAEF,eAAe,iBAAiB,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/refund/index.tsx"],"names":[],"mappings":"AAeA,QAAA,MAAM,aAAa,+
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/refund/index.tsx"],"names":[],"mappings":"AAeA,QAAA,MAAM,aAAa,+CAuFlB,CAAC;AAEF,eAAe,aAAa,CAAC"}
|
package/lib/refund/index.js
CHANGED
|
@@ -21,8 +21,10 @@ const RefundContent = () => {
|
|
|
21
21
|
const { t } = (0, translations_1.useTranslation)();
|
|
22
22
|
const apiConfig = (0, config_1.useApiConfig)();
|
|
23
23
|
const { formSchemaOverrides, layout } = (0, config_1.useContactFormConfig)();
|
|
24
|
-
const successPath = layout?.successPath ??
|
|
25
|
-
|
|
24
|
+
const successPath = layout?.successPath ??
|
|
25
|
+
(layout?.basePath ? `${layout.basePath}/success` : '/contact/success');
|
|
26
|
+
const errorPath = layout?.errorPath ??
|
|
27
|
+
(layout?.basePath ? `${layout.basePath}/error` : '/contact/error');
|
|
26
28
|
const machine = (0, react_2.useMemo)(() => (0, refundFormMachine_1.createRefundStateMachine)(apiConfig.onSubmit, {
|
|
27
29
|
successPath,
|
|
28
30
|
errorPath,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"refundFormMachine.d.ts","sourceRoot":"","sources":["../../src/refund/refundFormMachine.ts"],"names":[],"mappings":"AAAA,OAAO,
|
|
1
|
+
{"version":3,"file":"refundFormMachine.d.ts","sourceRoot":"","sources":["../../src/refund/refundFormMachine.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,oBAAoB,EACpB,iBAAiB,EACjB,yBAAyB,EACzB,UAAU,EAEX,MAAM,UAAU,CAAC;AAElB,OAAO,EAAE,IAAI,EAAE,MAAM,sCAAsC,CAAC;AAC5D,OAAO,EAAwB,kBAAkB,EAAE,MAAM,eAAe,CAAC;AAWzE,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,yBAAyB,CAAC;AAE9D,oBAAY,YAAY;IACtB,cAAc,mBAAmB;IACjC,wBAAwB,6BAA6B;IACrD,yBAAyB,8BAA8B;CACxD;AAED,oBAAY,gBAAgB;IAC1B,e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U,CAAC,EAAE,UAAU,CAAC;IACxB,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,gBAAgB,CAAC,EAAE,oBAAoB,GAAG,SAAS,CAAC;IAEpD,yBAAyB,EAAE,OAAO,CAAC;IACnC,2BAA2B,EAAE,OAAO,CAAC;IACrC,aAAa,EAAE,kBAAkB,CAAC;IAClC,0BAA0B,CAAC,EAAE,MAAM,CAAC;IACpC,kBAAkB,CAAC,EAAE,OAAO,CAAC;CAC9B,CAAC;AAwHF,MAAM,MAAM,YAAY,GAAG;IAAE,WAAW,EAAE,MAAM,CAAC;IAAC,SAAS,EAAE,MAAM,CAAA;CAAE,CAAC;AAEtE,wBAAgB,wBAAwB,CACtC,QAAQ,EAAE,CACR,UAAU,EAAE,cAAc,EAC1B,KAAK,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,KAC3B,OAAO,CAAC,QAAQ,CAAC,EACtB,KAAK,CAAC,EAAE,YAAY;;;uEAxMZ,aAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAuiBvB;AAED,eAAO,MAAM,kBAAkB;;;uEAziBrB,aAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAgjBvB,CAAC"}
|
|
@@ -166,7 +166,7 @@ function createRefundStateMachine(onSubmit, paths) {
|
|
|
166
166
|
}),
|
|
167
167
|
onInputChange: (0, xstate_1.assign)(({ context, event }) => {
|
|
168
168
|
if (event.type === 'ON_INPUT_CHANGE') {
|
|
169
|
-
|
|
169
|
+
const { inputName, value } = event;
|
|
170
170
|
if (inputName === 'formType') {
|
|
171
171
|
const updatedContext = setFormTypeAndInitialContext(context, value);
|
|
172
172
|
return {
|
|
@@ -189,7 +189,11 @@ function createRefundStateMachine(onSubmit, paths) {
|
|
|
189
189
|
};
|
|
190
190
|
}
|
|
191
191
|
context.errorMessages[inputName] = [];
|
|
192
|
-
return {
|
|
192
|
+
return {
|
|
193
|
+
...context,
|
|
194
|
+
[inputName]: value,
|
|
195
|
+
hasSubmissionError: undefined,
|
|
196
|
+
};
|
|
193
197
|
}
|
|
194
198
|
return context;
|
|
195
199
|
}),
|
|
@@ -335,7 +339,9 @@ function createRefundStateMachine(onSubmit, paths) {
|
|
|
335
339
|
},
|
|
336
340
|
residualValueOnTravelCard: {
|
|
337
341
|
id: 'residualValueOnTravelCard',
|
|
338
|
-
entry: (0, xstate_1.assign)({
|
|
342
|
+
entry: (0, xstate_1.assign)({
|
|
343
|
+
formType: () => FormType.ResidualValueOnTravelCard,
|
|
344
|
+
}),
|
|
339
345
|
},
|
|
340
346
|
history: { type: 'history', history: 'deep' },
|
|
341
347
|
},
|
package/lib/server/index.d.ts
CHANGED
|
@@ -5,5 +5,5 @@
|
|
|
5
5
|
* API route handlers or server components.
|
|
6
6
|
*/
|
|
7
7
|
export { getLines } from './journey-planner';
|
|
8
|
-
export { getEnturAuthorityId, EnturAuthority } from './journey-planner/authority';
|
|
8
|
+
export { getEnturAuthorityId, EnturAuthority, } from './journey-planner/authority';
|
|
9
9
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/server/index.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,OAAO,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/server/index.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,OAAO,EAAE,QAAQ,EAAE,MAAM,mBAAmB,CAAC;AAC7C,OAAO,EACL,mBAAmB,EACnB,cAAc,GACf,MAAM,6BAA6B,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"authority.d.ts","sourceRoot":"","sources":["../../../src/server/journey-planner/authority.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAEH,oBAAY,cAAc;
|
|
1
|
+
{"version":3,"file":"authority.d.ts","sourceRoot":"","sources":["../../../src/server/journey-planner/authority.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAEH,oBAAY,cAAc;IACxB,GAAG,oBAAoB;IACvB,GAAG,qBAAqB;IACxB,IAAI,sBAAsB;IAC1B,GAAG,yBAAyB;IAC5B,KAAK,oBAAoB;IACzB,KAAK,yBAAyB;CAC/B;AAID;;;;;;GAMG;AACH,wBAAgB,mBAAmB,CAAC,mBAAmB,CAAC,EAAE,MAAM,GAAG,MAAM,CAwBxE"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"entur-client.d.ts","sourceRoot":"","sources":["../../../src/server/journey-planner/entur-client.ts"],"names":[],"mappings":"AACA,OAAO,
|
|
1
|
+
{"version":3,"file":"entur-client.d.ts","sourceRoot":"","sources":["../../../src/server/journey-planner/entur-client.ts"],"names":[],"mappings":"AACA,OAAO,EACL,YAAY,EAIb,MAAM,qBAAqB,CAAC;AAmB7B;;;GAGG;AACH,wBAAgB,cAAc,IAAI,YAAY,CAAC,GAAG,CAAC,CA2BlD"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/server/journey-planner/index.ts"],"names":[],"mappings":"AAKA,OAAO,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/server/journey-planner/index.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,IAAI,EAAe,MAAM,cAAc,CAAC;AAgBjD;;;;;;;GAOG;AACH,wBAAsB,QAAQ,CAAC,mBAAmB,CAAC,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,EAAE,CAAC,CAmD5E"}
|
|
@@ -17,7 +17,7 @@ export type LinesQuery = {
|
|
|
17
17
|
}>;
|
|
18
18
|
};
|
|
19
19
|
export declare const LinesDocument: DocumentNode;
|
|
20
|
-
export type Requester<C =
|
|
20
|
+
export type Requester<C = Record<string, unknown>> = <R, V>(doc: DocumentNode, vars?: V, options?: C) => Promise<R> | AsyncIterable<R>;
|
|
21
21
|
export declare function getSdk<C>(requester: Requester<C>): {
|
|
22
22
|
lines(variables: LinesQueryVariables, options?: C): Promise<LinesQuery>;
|
|
23
23
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"lines.generated.d.ts","sourceRoot":"","sources":["../../../../src/server/journey-planner/journey-gql/lines.generated.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,kEAAkE,CAAC;AAE1F,OAAO,
|
|
1
|
+
{"version":3,"file":"lines.generated.d.ts","sourceRoot":"","sources":["../../../../src/server/journey-planner/journey-gql/lines.generated.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,kEAAkE,CAAC;AAE1F,OAAO,EAAE,YAAY,EAAE,MAAM,SAAS,CAAC;AAGvC,MAAM,MAAM,mBAAmB,GAAG,KAAK,CAAC,KAAK,CAAC;IAC5C,SAAS,EAAE,KAAK,CAAC,OAAO,CAAC,QAAQ,CAAC,CAAC,OAAO,CAAC,CAAC;CAC7C,CAAC,CAAC;AAEH,MAAM,MAAM,UAAU,GAAG;IACvB,KAAK,EAAE,KAAK,CAAC;QACX,EAAE,EAAE,MAAM,CAAC;QACX,IAAI,CAAC,EAAE,MAAM,CAAC;QACd,UAAU,CAAC,EAAE,MAAM,CAAC;QACpB,aAAa,CAAC,EAAE,KAAK,CAAC,aAAa,CAAC;QACpC,gBAAgB,CAAC,EAAE,KAAK,CAAC,gBAAgB,CAAC;QAC1C,KAAK,EAAE,KAAK,CAAC;YAAE,EAAE,EAAE,MAAM,CAAC;YAAC,IAAI,EAAE,MAAM,CAAA;SAAE,CAAC,CAAC;KAC5C,CAAC,CAAC;CACJ,CAAC;AAEF,eAAO,MAAM,aAAa,cAczB,CAAC;AACF,MAAM,MAAM,SAAS,CAAC,CAAC,GAAG,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,IAAI,CAAC,CAAC,EAAE,CAAC,EACxD,GAAG,EAAE,YAAY,EACjB,IAAI,CAAC,EAAE,CAAC,EACR,OAAO,CAAC,EAAE,CAAC,KACR,OAAO,CAAC,CAAC,CAAC,GAAG,aAAa,CAAC,CAAC,CAAC,CAAC;AAEnC,wBAAgB,MAAM,CAAC,CAAC,EAAE,SAAS,EAAE,SAAS,CAAC,CAAC,CAAC;qBAE5B,mBAAmB,YAAY,CAAC,GAAG,OAAO,CAAC,UAAU,CAAC;EAQ1E;AAED,MAAM,MAAM,GAAG,GAAG,UAAU,CAAC,OAAO,MAAM,CAAC,CAAC"}
|
|
@@ -7,24 +7,24 @@ exports.LinesDocument = void 0;
|
|
|
7
7
|
exports.getSdk = getSdk;
|
|
8
8
|
const graphql_tag_1 = __importDefault(require("graphql-tag"));
|
|
9
9
|
exports.LinesDocument = (0, graphql_tag_1.default) `
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
id
|
|
13
|
-
name
|
|
14
|
-
publicCode
|
|
15
|
-
transportMode
|
|
16
|
-
transportSubmode
|
|
17
|
-
quays {
|
|
10
|
+
query lines($authority: String!) {
|
|
11
|
+
lines(authorities: [$authority]) {
|
|
18
12
|
id
|
|
19
13
|
name
|
|
14
|
+
publicCode
|
|
15
|
+
transportMode
|
|
16
|
+
transportSubmode
|
|
17
|
+
quays {
|
|
18
|
+
id
|
|
19
|
+
name
|
|
20
|
+
}
|
|
20
21
|
}
|
|
21
22
|
}
|
|
22
|
-
|
|
23
|
-
`;
|
|
23
|
+
`;
|
|
24
24
|
function getSdk(requester) {
|
|
25
25
|
return {
|
|
26
26
|
lines(variables, options) {
|
|
27
27
|
return requester(exports.LinesDocument, variables, options);
|
|
28
|
-
}
|
|
28
|
+
},
|
|
29
29
|
};
|
|
30
30
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"validators.d.ts","sourceRoot":"","sources":["../../../src/server/journey-planner/validators.ts"],"names":[],"mappings":"AAIA,OAAO,
|
|
1
|
+
{"version":3,"file":"validators.d.ts","sourceRoot":"","sources":["../../../src/server/journey-planner/validators.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,eAAO,MAAM,UAAU;;;;;;;;;;iBAYrB,CAAC;AAEH,eAAO,MAAM,WAAW;;;;;;;;;;kBAAsB,CAAC;AAE/C,MAAM,MAAM,IAAI,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,UAAU,CAAC,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../src/server/types.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,oBAAoB,GAAG;
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../src/server/types.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,oBAAoB,GAAG;IACjC,OAAO,EAAE,OAAO,CAAC;IACjB,OAAO,EAAE,MAAM,CAAC;CACjB,CAAC"}
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
.container {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
2
|
+
display: flex;
|
|
3
|
+
flex-direction: column;
|
|
4
|
+
gap: token('spacing.large');
|
|
5
5
|
|
|
6
|
-
|
|
7
|
-
|
|
6
|
+
height: 100%;
|
|
7
|
+
max-width: var(--maxPageWidth);
|
|
8
8
|
|
|
9
|
-
|
|
10
|
-
|
|
9
|
+
margin: 0 auto;
|
|
10
|
+
padding: token('spacing.xLarge');
|
|
11
11
|
}
|
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
import { commonEvents } from '../commoneEvents';
|
|
2
2
|
import { FormType } from './ticket-control-form-machine';
|
|
3
|
-
|
|
4
|
-
type:
|
|
5
|
-
inputName:
|
|
3
|
+
type TicketControlSpecificFormEvents = {
|
|
4
|
+
type: 'ON_INPUT_CHANGE';
|
|
5
|
+
inputName: 'formType' | 'feeNumber' | 'invoiceNumber' | 'appPhoneNumber' | 'customerNumber' | 'travelCardNumber' | 'isAppTicketStorageMode' | 'agreesFirstAgreement' | 'agreesSecondAgreement' | 'hasInternationalBankAccount' | 'dateOfTicketControl' | 'timeOfTicketControl';
|
|
6
6
|
value: string | boolean;
|
|
7
7
|
} | {
|
|
8
|
-
type:
|
|
8
|
+
type: 'SELECT_FORM_TYPE';
|
|
9
9
|
formType: FormType;
|
|
10
10
|
} | {
|
|
11
|
-
type:
|
|
11
|
+
type: 'SUBMIT';
|
|
12
12
|
orderedFormFieldNames: string[];
|
|
13
13
|
};
|
|
14
|
-
export declare const ticketControlFormEvents:
|
|
14
|
+
export declare const ticketControlFormEvents: TicketControlSpecificFormEvents | typeof commonEvents;
|
|
15
15
|
export {};
|
|
16
16
|
//# sourceMappingURL=events.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"events.d.ts","sourceRoot":"","sources":["../../src/ticket-control/events.ts"],"names":[],"mappings":"AAAA,OAAO,
|
|
1
|
+
{"version":3,"file":"events.d.ts","sourceRoot":"","sources":["../../src/ticket-control/events.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,kBAAkB,CAAC;AAChD,OAAO,EAAE,QAAQ,EAAE,MAAM,+BAA+B,CAAC;AAEzD,KAAK,+BAA+B,GAChC;IACE,IAAI,EAAE,iBAAiB,CAAC;IACxB,SAAS,EACL,UAAU,GACV,WAAW,GACX,eAAe,GACf,gBAAgB,GAChB,gBAAgB,GAChB,kBAAkB,GAClB,wBAAwB,GACxB,sBAAsB,GACtB,uBAAuB,GACvB,6BAA6B,GAC7B,qBAAqB,GACrB,qBAAqB,CAAC;IAC1B,KAAK,EAAE,MAAM,GAAG,OAAO,CAAC;CACzB,GACD;IACE,IAAI,EAAE,kBAAkB,CAAC;IACzB,QAAQ,EAAE,QAAQ,CAAC;CACpB,GACD;IACE,IAAI,EAAE,QAAQ,CAAC;IACf,qBAAqB,EAAE,MAAM,EAAE,CAAC;CACjC,CAAC;AACN,eAAO,MAAM,uBAAuB,EAChC,+BAA+B,GAC/B,OAAO,YAAY,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"feeComplaintForm.d.ts","sourceRoot":"","sources":["../../../src/ticket-control/forms/feeComplaintForm.tsx"],"names":[],"mappings":"AACA,OAAO,
|
|
1
|
+
{"version":3,"file":"feeComplaintForm.d.ts","sourceRoot":"","sources":["../../../src/ticket-control/forms/feeComplaintForm.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,yBAAyB,EAAE,MAAM,gCAAgC,CAAC;AAC3E,OAAO,EAAE,uBAAuB,EAAE,MAAM,WAAW,CAAC;AAMpD,KAAK,qBAAqB,GAAG;IAC3B,KAAK,EAAE;QAAE,OAAO,EAAE,yBAAyB,CAAA;KAAE,CAAC;IAC9C,IAAI,EAAE,CAAC,KAAK,EAAE,OAAO,uBAAuB,KAAK,IAAI,CAAC;CACvD,CAAC;AA6bF,eAAO,MAAM,gBAAgB,GAAI,iBAAiB,qBAAqB,4CAYtE,CAAC;AAEF,eAAe,gBAAgB,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"feedbackForm.d.ts","sourceRoot":"","sources":["../../../src/ticket-control/forms/feedbackForm.tsx"],"names":[],"mappings":"AAGA,OAAO,
|
|
1
|
+
{"version":3,"file":"feedbackForm.d.ts","sourceRoot":"","sources":["../../../src/ticket-control/forms/feedbackForm.tsx"],"names":[],"mappings":"AAGA,OAAO,EAAE,uBAAuB,EAAE,MAAM,WAAW,CAAC;AACpD,OAAO,EAAE,yBAAyB,EAAE,MAAM,gCAAgC,CAAC;AAe3E,KAAK,iBAAiB,GAAG;IACvB,KAAK,EAAE;QAAE,OAAO,EAAE,yBAAyB,CAAA;KAAE,CAAC;IAC9C,IAAI,EAAE,CAAC,KAAK,EAAE,OAAO,uBAAuB,KAAK,IAAI,CAAC;CACvD,CAAC;AAEF,eAAO,MAAM,YAAY,GAAI,iBAAiB,iBAAiB,4CAwN9D,CAAC;AAEF,eAAe,YAAY,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"postponePayment.d.ts","sourceRoot":"","sources":["../../../src/ticket-control/forms/postponePayment.tsx"],"names":[],"mappings":"AAEA,OAAO,
|
|
1
|
+
{"version":3,"file":"postponePayment.d.ts","sourceRoot":"","sources":["../../../src/ticket-control/forms/postponePayment.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,uBAAuB,EAAE,MAAM,WAAW,CAAC;AACpD,OAAO,EAAE,yBAAyB,EAAE,MAAM,gCAAgC,CAAC;AAG3E,KAAK,wBAAwB,GAAG;IAC9B,KAAK,EAAE;QAAE,OAAO,EAAE,yBAAyB,CAAA;KAAE,CAAC;IAC9C,IAAI,EAAE,CAAC,KAAK,EAAE,OAAO,uBAAuB,KAAK,IAAI,CAAC;CACvD,CAAC;AAEF,eAAO,MAAM,mBAAmB,GAAI,kBAGjC,wBAAwB,4CAwG1B,CAAC;AAEF,eAAe,mBAAmB,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/ticket-control/index.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/ticket-control/index.tsx"],"names":[],"mappings":"AAkBA,QAAA,MAAM,wBAAwB,+CAmF7B,CAAC;AAEF,eAAe,wBAAwB,CAAC"}
|
|
@@ -21,8 +21,10 @@ const TicketControlPageContent = () => {
|
|
|
21
21
|
const { t } = (0, translations_1.useTranslation)();
|
|
22
22
|
const apiConfig = (0, config_1.useApiConfig)();
|
|
23
23
|
const { formSchemaOverrides, layout } = (0, config_1.useContactFormConfig)();
|
|
24
|
-
const successPath = layout?.successPath ??
|
|
25
|
-
|
|
24
|
+
const successPath = layout?.successPath ??
|
|
25
|
+
(layout?.basePath ? `${layout.basePath}/success` : '/contact/success');
|
|
26
|
+
const errorPath = layout?.errorPath ??
|
|
27
|
+
(layout?.basePath ? `${layout.basePath}/error` : '/contact/error');
|
|
26
28
|
const machine = (0, react_2.useMemo)(() => (0, ticket_control_form_machine_1.createTicketControlFormMachine)(apiConfig.onSubmit, {
|
|
27
29
|
successPath,
|
|
28
30
|
errorPath,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ticket-control-form-machine.d.ts","sourceRoot":"","sources":["../../src/ticket-control/ticket-control-form-machine.ts"],"names":[],"mappings":"AAWA,OAAO,
|
|
1
|
+
{"version":3,"file":"ticket-control-form-machine.d.ts","sourceRoot":"","sources":["../../src/ticket-control/ticket-control-form-machine.ts"],"names":[],"mappings":"AAWA,OAAO,EAAE,IAAI,EAAE,MAAM,sCAAsC,CAAC;AAC5D,OAAO,EAAwB,kBAAkB,EAAE,MAAM,eAAe,CAAC;AACzE,OAAO,EAAE,iBAAiB,EAAE,MAAM,UAAU,CAAC;AAC7C,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,yBAAyB,CAAC;AAE9D,oBAAY,QAAQ;IAClB,YAAY,iBAAiB;IAC7B,QAAQ,aAAa;IACrB,eAAe,oBAAoB;CACpC;AAED,KAAK,WAAW,GAAG;IACjB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,UAAU,CAA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AC"}
|
|
@@ -72,7 +72,8 @@ function createTicketControlFormMachine(onSubmit, paths) {
|
|
|
72
72
|
},
|
|
73
73
|
isFeeComplaintForm: ({ event }) => event.type === 'SELECT_FORM_TYPE' &&
|
|
74
74
|
event.formType === FormType.FeeComplaint,
|
|
75
|
-
isFeedbackForm: ({ event }) => event.type === 'SELECT_FORM_TYPE' &&
|
|
75
|
+
isFeedbackForm: ({ event }) => event.type === 'SELECT_FORM_TYPE' &&
|
|
76
|
+
event.formType === FormType.Feedback,
|
|
76
77
|
isPostponePaymentForm: ({ event }) => event.type === 'SELECT_FORM_TYPE' &&
|
|
77
78
|
event.formType === FormType.PostponePayment,
|
|
78
79
|
},
|
|
@@ -122,7 +123,11 @@ function createTicketControlFormMachine(onSubmit, paths) {
|
|
|
122
123
|
hasSubmissionError: undefined,
|
|
123
124
|
};
|
|
124
125
|
}
|
|
125
|
-
return {
|
|
126
|
+
return {
|
|
127
|
+
...context,
|
|
128
|
+
[inputName]: value,
|
|
129
|
+
hasSubmissionError: undefined,
|
|
130
|
+
};
|
|
126
131
|
}
|
|
127
132
|
return context;
|
|
128
133
|
}),
|
|
@@ -1,28 +1,28 @@
|
|
|
1
1
|
import { commonEvents } from '../commoneEvents';
|
|
2
2
|
import { AppForm, FormCategory, WebshopForm, TravelCardForm } from './ticketingStateMachine';
|
|
3
|
-
|
|
4
|
-
type:
|
|
5
|
-
inputName:
|
|
3
|
+
type TicketingSpecificFormEvents = {
|
|
4
|
+
type: 'ON_INPUT_CHANGE';
|
|
5
|
+
inputName: 'question' | 'orderId' | 'customerNumber' | 'travelCardNumber' | 'refundReason' | 'amount' | 'isInitialAgreementChecked' | 'hasInternationalBankAccount' | 'showInputTravelCardNumber';
|
|
6
6
|
value: string | boolean;
|
|
7
7
|
} | {
|
|
8
|
-
type:
|
|
8
|
+
type: 'ON_SET_STATE';
|
|
9
9
|
target: FormCategory;
|
|
10
10
|
} | {
|
|
11
|
-
type:
|
|
11
|
+
type: 'SELECT_FORM_CATEGORY';
|
|
12
12
|
formCategory: FormCategory;
|
|
13
13
|
} | {
|
|
14
|
-
type:
|
|
14
|
+
type: 'SELECT_APP_FORM';
|
|
15
15
|
appForm: AppForm;
|
|
16
16
|
} | {
|
|
17
|
-
type:
|
|
17
|
+
type: 'SELECT_WEBSHOP_FORM';
|
|
18
18
|
webshopForm: WebshopForm;
|
|
19
19
|
} | {
|
|
20
|
-
type:
|
|
20
|
+
type: 'SELECT_TRAVELCARD_FORM';
|
|
21
21
|
travelCardForm: TravelCardForm;
|
|
22
22
|
} | {
|
|
23
|
-
type:
|
|
23
|
+
type: 'SUBMIT';
|
|
24
24
|
orderedFormFieldNames: string[];
|
|
25
25
|
};
|
|
26
|
-
export declare const ticketingFormEvents: typeof commonEvents |
|
|
26
|
+
export declare const ticketingFormEvents: typeof commonEvents | TicketingSpecificFormEvents;
|
|
27
27
|
export {};
|
|
28
28
|
//# sourceMappingURL=events.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"events.d.ts","sourceRoot":"","sources":["../../src/ticketing/events.ts"],"names":[],"mappings":"AAAA,OAAO,
|
|
1
|
+
{"version":3,"file":"events.d.ts","sourceRoot":"","sources":["../../src/ticketing/events.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,kBAAkB,CAAC;AAChD,OAAO,EACL,OAAO,EACP,YAAY,EACZ,WAAW,EACX,cAAc,EACf,MAAM,yBAAyB,CAAC;AAEjC,KAAK,2BAA2B,GAC5B;IACE,IAAI,EAAE,iBAAiB,CAAC;IACxB,SAAS,EACL,UAAU,GACV,SAAS,GACT,gBAAgB,GAChB,kBAAkB,GAClB,cAAc,GACd,QAAQ,GACR,2BAA2B,GAC3B,6BAA6B,GAC7B,2BAA2B,CAAC;IAChC,KAAK,EAAE,MAAM,GAAG,OAAO,CAAC;CACzB,GACD;IACE,IAAI,EAAE,cAAc,CAAC;IACrB,MAAM,EAAE,YAAY,CAAC;CACtB,GACD;IACE,IAAI,EAAE,sBAAsB,CAAC;IAC7B,YAAY,EAAE,YAAY,CAAC;CAC5B,GACD;IACE,IAAI,EAAE,iBAAiB,CAAC;IACxB,OAAO,EAAE,OAAO,CAAC;CAClB,GACD;IACE,IAAI,EAAE,qBAAqB,CAAC;IAC5B,WAAW,EAAE,WAAW,CAAC;CAC1B,GACD;IACE,IAAI,EAAE,wBAAwB,CAAC;IAC/B,cAAc,EAAE,cAAc,CAAC;CAChC,GACD;IACE,IAAI,EAAE,QAAQ,CAAC;IACf,qBAAqB,EAAE,MAAM,EAAE,CAAC;CACjC,CAAC;AAEN,eAAO,MAAM,mBAAmB,EAC5B,OAAO,YAAY,GACnB,2BAA2B,CAAC"}
|
package/lib/ticketing/events.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"appAccountForm.d.ts","sourceRoot":"","sources":["../../../../src/ticketing/forms/app/appAccountForm.tsx"],"names":[],"mappings":"AACA,OAAO,
|
|
1
|
+
{"version":3,"file":"appAccountForm.d.ts","sourceRoot":"","sources":["../../../../src/ticketing/forms/app/appAccountForm.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,mBAAmB,EAAE,MAAM,cAAc,CAAC;AACnD,OAAO,EAAE,oBAAoB,EAAE,MAAM,6BAA6B,CAAC;AAGnE,KAAK,mBAAmB,GAAG;IACzB,KAAK,EAAE;QAAE,OAAO,EAAE,oBAAoB,CAAA;KAAE,CAAC;IACzC,IAAI,EAAE,CAAC,KAAK,EAAE,OAAO,mBAAmB,KAAK,IAAI,CAAC;CACnD,CAAC;AAEF,eAAO,MAAM,cAAc,GAAI,iBAAiB,mBAAmB,4CA+HlE,CAAC;AAEF,eAAe,cAAc,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"appTicketingForm.d.ts","sourceRoot":"","sources":["../../../../src/ticketing/forms/app/appTicketingForm.tsx"],"names":[],"mappings":"AACA,OAAO,
|
|
1
|
+
{"version":3,"file":"appTicketingForm.d.ts","sourceRoot":"","sources":["../../../../src/ticketing/forms/app/appTicketingForm.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,mBAAmB,EAAE,MAAM,cAAc,CAAC;AACnD,OAAO,EAAE,oBAAoB,EAAE,MAAM,6BAA6B,CAAC;AAGnE,KAAK,qBAAqB,GAAG;IAC3B,KAAK,EAAE;QAAE,OAAO,EAAE,oBAAoB,CAAA;KAAE,CAAC;IACzC,IAAI,EAAE,CAAC,KAAK,EAAE,OAAO,mBAAmB,KAAK,IAAI,CAAC;CACnD,CAAC;AAEF,eAAO,MAAM,gBAAgB,GAAI,iBAAiB,qBAAqB,4CAwJtE,CAAC;AAEF,eAAe,gBAAgB,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"appTravelSuggestionForm.d.ts","sourceRoot":"","sources":["../../../../src/ticketing/forms/app/appTravelSuggestionForm.tsx"],"names":[],"mappings":"AACA,OAAO,
|
|
1
|
+
{"version":3,"file":"appTravelSuggestionForm.d.ts","sourceRoot":"","sources":["../../../../src/ticketing/forms/app/appTravelSuggestionForm.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,oBAAoB,EAAE,MAAM,6BAA6B,CAAC;AACnE,OAAO,EAAE,mBAAmB,EAAE,MAAM,cAAc,CAAC;AAGnD,KAAK,4BAA4B,GAAG;IAClC,KAAK,EAAE;QAAE,OAAO,EAAE,oBAAoB,CAAA;KAAE,CAAC;IACzC,IAAI,EAAE,CAAC,KAAK,EAAE,OAAO,mBAAmB,KAAK,IAAI,CAAC;CACnD,CAAC;AAEF,eAAO,MAAM,uBAAuB,GAAI,kBAGrC,4BAA4B,4CA4F9B,CAAC;AAEF,eAAe,uBAAuB,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/ticketing/forms/app/index.tsx"],"names":[],"mappings":"AACA,OAAO,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/ticketing/forms/app/index.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,SAAS,EAAE,MAAM,QAAQ,CAAC;AAEnC,OAAO,EAAW,qBAAqB,EAAE,MAAM,6BAA6B,CAAC;AAI7E,OAAO,EAAE,mBAAmB,EAAE,MAAM,cAAc,CAAC;AAGnD,KAAK,aAAa,GAAG;IACnB,KAAK,EAAE,SAAS,CAAC,OAAO,qBAAqB,CAAC,CAAC;IAC/C,IAAI,EAAE,CAAC,KAAK,EAAE,OAAO,mBAAmB,KAAK,IAAI,CAAC;CACnD,CAAC;AAEF,eAAO,MAAM,QAAQ,GAAI,iBAAiB,aAAa,4CAmCtD,CAAC;AAEF,eAAe,QAAQ,CAAC"}
|
|
@@ -14,7 +14,7 @@ const appTravelSuggestionForm_1 = __importDefault(require("./appTravelSuggestion
|
|
|
14
14
|
const components_1 = require("../../../components");
|
|
15
15
|
const AppForms = ({ state, send }) => {
|
|
16
16
|
const { t } = (0, translations_1.useTranslation)();
|
|
17
|
-
return ((0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [(0, jsx_runtime_1.jsx)(components_1.Fieldset, { title: t(translations_1.PageText.Contact.ticketing.app.description), children: (0, jsx_runtime_1.jsx)("ul", { className: contact_module_css_1.default.form_options__list, children: Object.values(ticketingStateMachine_1.AppForm).map((appForm) => ((0, jsx_runtime_1.jsx)("li", { children: (0, jsx_runtime_1.jsx)(components_1.Radio, { label: t(translations_1.PageText.Contact.ticketing.app[appForm].label), checked: state.matches({ editing: { app: appForm } }), onChange: (
|
|
17
|
+
return ((0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [(0, jsx_runtime_1.jsx)(components_1.Fieldset, { title: t(translations_1.PageText.Contact.ticketing.app.description), children: (0, jsx_runtime_1.jsx)("ul", { className: contact_module_css_1.default.form_options__list, children: Object.values(ticketingStateMachine_1.AppForm).map((appForm) => ((0, jsx_runtime_1.jsx)("li", { children: (0, jsx_runtime_1.jsx)(components_1.Radio, { label: t(translations_1.PageText.Contact.ticketing.app[appForm].label), checked: state.matches({ editing: { app: appForm } }), onChange: () => send({
|
|
18
18
|
type: 'SELECT_APP_FORM',
|
|
19
19
|
appForm: appForm,
|
|
20
20
|
}) }) }, appForm))) }) }), state.matches({ editing: { app: 'appTicketing' } }) && ((0, jsx_runtime_1.jsx)(appTicketingForm_1.default, { state: state, send: send })), state.matches({ editing: { app: 'appTravelSuggestion' } }) && ((0, jsx_runtime_1.jsx)(appTravelSuggestionForm_1.default, { state: state, send: send })), state.matches({ editing: { app: 'appAccount' } }) && ((0, jsx_runtime_1.jsx)(appAccountForm_1.default, { state: state, send: send }))] }));
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"priceAndTicketTypesForm.d.ts","sourceRoot":"","sources":["../../../src/ticketing/forms/priceAndTicketTypesForm.tsx"],"names":[],"mappings":"AACA,OAAO,
|
|
1
|
+
{"version":3,"file":"priceAndTicketTypesForm.d.ts","sourceRoot":"","sources":["../../../src/ticketing/forms/priceAndTicketTypesForm.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,oBAAoB,EAAE,MAAM,0BAA0B,CAAC;AAChE,OAAO,EAAE,mBAAmB,EAAE,MAAM,WAAW,CAAC;AAGhD,KAAK,4BAA4B,GAAG;IAClC,KAAK,EAAE;QAAE,OAAO,EAAE,oBAAoB,CAAA;KAAE,CAAC;IACzC,IAAI,EAAE,CAAC,KAAK,EAAE,OAAO,mBAAmB,KAAK,IAAI,CAAC;CACnD,CAAC;AAEF,eAAO,MAAM,uBAAuB,GAAI,kBAGrC,4BAA4B,4CA4F9B,CAAC;AAEF,eAAe,uBAAuB,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/ticketing/forms/travel-card/index.tsx"],"names":[],"mappings":"AACA,OAAO,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/ticketing/forms/travel-card/index.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,SAAS,EAAE,MAAM,QAAQ,CAAC;AAEnC,OAAO,EAEL,qBAAqB,EACtB,MAAM,6BAA6B,CAAC;AACrC,OAAO,EAAE,mBAAmB,EAAE,MAAM,cAAc,CAAC;AAKnD,KAAK,oBAAoB,GAAG;IAC1B,KAAK,EAAE,SAAS,CAAC,OAAO,qBAAqB,CAAC,CAAC;IAC/C,IAAI,EAAE,CAAC,KAAK,EAAE,OAAO,mBAAmB,KAAK,IAAI,CAAC;CACnD,CAAC;AAEF,eAAO,MAAM,eAAe,GAAI,iBAAiB,oBAAoB,4CAoCpE,CAAC;AAEF,eAAe,eAAe,CAAC"}
|