@veridid/workflow-ui 0.0.0-stage → 0.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +202 -0
- package/README.md +202 -2
- package/build/module/WorkflowFontScaleContext.js +67 -0
- package/build/module/WorkflowFontScaleContext.js.map +1 -0
- package/build/module/adapter/WalletAdapter.js +152 -0
- package/build/module/adapter/WalletAdapter.js.map +1 -0
- package/build/module/components/FallbackVideoPlayer.js +8 -0
- package/build/module/components/FallbackVideoPlayer.js.map +1 -0
- package/build/module/components/FallbackVideoPlayer.native.js +10 -0
- package/build/module/components/FallbackVideoPlayer.native.js.map +1 -0
- package/build/module/components/FallbackVideoPlayer.web.js +35 -0
- package/build/module/components/FallbackVideoPlayer.web.js.map +1 -0
- package/build/module/components/WorkflowButtonLabel.js +32 -0
- package/build/module/components/WorkflowButtonLabel.js.map +1 -0
- package/build/module/components/WorkflowCalendarIcon.js +73 -0
- package/build/module/components/WorkflowCalendarIcon.js.map +1 -0
- package/build/module/components/WorkflowText.js +92 -0
- package/build/module/components/WorkflowText.js.map +1 -0
- package/build/module/content/BadgeContent.js +73 -0
- package/build/module/content/BadgeContent.js.map +1 -0
- package/build/module/content/BarChartContent.js +97 -0
- package/build/module/content/BarChartContent.js.map +1 -0
- package/build/module/content/BarcodeContent.js +78 -0
- package/build/module/content/BarcodeContent.js.map +1 -0
- package/build/module/content/BasicTableContent.js +145 -0
- package/build/module/content/BasicTableContent.js.map +1 -0
- package/build/module/content/ButtonContent.js +130 -0
- package/build/module/content/ButtonContent.js.map +1 -0
- package/build/module/content/CalendarContent.js +173 -0
- package/build/module/content/CalendarContent.js.map +1 -0
- package/build/module/content/CardContent.js +114 -0
- package/build/module/content/CardContent.js.map +1 -0
- package/build/module/content/CarouselContent.js +173 -0
- package/build/module/content/CarouselContent.js.map +1 -0
- package/build/module/content/ChipContent.js +214 -0
- package/build/module/content/ChipContent.js.map +1 -0
- package/build/module/content/ChipRowContent.js +127 -0
- package/build/module/content/ChipRowContent.js.map +1 -0
- package/build/module/content/CredentialOfferContent.js +312 -0
- package/build/module/content/CredentialOfferContent.js.map +1 -0
- package/build/module/content/DialContent.js +101 -0
- package/build/module/content/DialContent.js.map +1 -0
- package/build/module/content/DividerContent.js +26 -0
- package/build/module/content/DividerContent.js.map +1 -0
- package/build/module/content/DonutChartContent.js +118 -0
- package/build/module/content/DonutChartContent.js.map +1 -0
- package/build/module/content/FormContent.js +141 -0
- package/build/module/content/FormContent.js.map +1 -0
- package/build/module/content/FormFieldBridge.js +157 -0
- package/build/module/content/FormFieldBridge.js.map +1 -0
- package/build/module/content/GaugeContent.js +77 -0
- package/build/module/content/GaugeContent.js.map +1 -0
- package/build/module/content/GridLayoutContent.js +227 -0
- package/build/module/content/GridLayoutContent.js.map +1 -0
- package/build/module/content/ImageContent.js +190 -0
- package/build/module/content/ImageContent.js.map +1 -0
- package/build/module/content/ListContent.js +107 -0
- package/build/module/content/ListContent.js.map +1 -0
- package/build/module/content/LocationContent.js +148 -0
- package/build/module/content/LocationContent.js.map +1 -0
- package/build/module/content/MapContent.js +213 -0
- package/build/module/content/MapContent.js.map +1 -0
- package/build/module/content/MultipleChoiceContent.js +91 -0
- package/build/module/content/MultipleChoiceContent.js.map +1 -0
- package/build/module/content/OpenBadgePreviewContent.js +141 -0
- package/build/module/content/OpenBadgePreviewContent.js.map +1 -0
- package/build/module/content/PhotoContent.js +154 -0
- package/build/module/content/PhotoContent.js.map +1 -0
- package/build/module/content/PieChartContent.js +129 -0
- package/build/module/content/PieChartContent.js.map +1 -0
- package/build/module/content/ProofPresentationContent.js +154 -0
- package/build/module/content/ProofPresentationContent.js.map +1 -0
- package/build/module/content/RadioButtonContent.js +136 -0
- package/build/module/content/RadioButtonContent.js.map +1 -0
- package/build/module/content/RowContent.js +539 -0
- package/build/module/content/RowContent.js.map +1 -0
- package/build/module/content/SectionContent.js +123 -0
- package/build/module/content/SectionContent.js.map +1 -0
- package/build/module/content/ShareEntryContent.js +111 -0
- package/build/module/content/ShareEntryContent.js.map +1 -0
- package/build/module/content/SimulatedHint.js +33 -0
- package/build/module/content/SimulatedHint.js.map +1 -0
- package/build/module/content/SliderContent.js +46 -0
- package/build/module/content/SliderContent.js.map +1 -0
- package/build/module/content/SpacerContent.js +21 -0
- package/build/module/content/SpacerContent.js.map +1 -0
- package/build/module/content/SpinnerContent.js +33 -0
- package/build/module/content/SpinnerContent.js.map +1 -0
- package/build/module/content/SubmitButtonContent.js +281 -0
- package/build/module/content/SubmitButtonContent.js.map +1 -0
- package/build/module/content/TextContent.js +127 -0
- package/build/module/content/TextContent.js.map +1 -0
- package/build/module/content/TileContent.js +237 -0
- package/build/module/content/TileContent.js.map +1 -0
- package/build/module/content/TimelineContent.js +120 -0
- package/build/module/content/TimelineContent.js.map +1 -0
- package/build/module/content/TitleContent.js +55 -0
- package/build/module/content/TitleContent.js.map +1 -0
- package/build/module/content/VideoContent.js +142 -0
- package/build/module/content/VideoContent.js.map +1 -0
- package/build/module/content/WebLinkContent.js +95 -0
- package/build/module/content/WebLinkContent.js.map +1 -0
- package/build/module/content/index.js +48 -0
- package/build/module/content/index.js.map +1 -0
- package/build/module/form-fields/CheckboxField.js +47 -0
- package/build/module/form-fields/CheckboxField.js.map +1 -0
- package/build/module/form-fields/DateField.js +8 -0
- package/build/module/form-fields/DateField.js.map +1 -0
- package/build/module/form-fields/DateField.native.js +141 -0
- package/build/module/form-fields/DateField.native.js.map +1 -0
- package/build/module/form-fields/DateField.web.js +45 -0
- package/build/module/form-fields/DateField.web.js.map +1 -0
- package/build/module/form-fields/DropdownField.js +172 -0
- package/build/module/form-fields/DropdownField.js.map +1 -0
- package/build/module/form-fields/MCQField.js +100 -0
- package/build/module/form-fields/MCQField.js.map +1 -0
- package/build/module/form-fields/RadioField.js +56 -0
- package/build/module/form-fields/RadioField.js.map +1 -0
- package/build/module/form-fields/SliderField.js +8 -0
- package/build/module/form-fields/SliderField.js.map +1 -0
- package/build/module/form-fields/SliderField.native.js +77 -0
- package/build/module/form-fields/SliderField.native.js.map +1 -0
- package/build/module/form-fields/SliderField.web.js +82 -0
- package/build/module/form-fields/SliderField.web.js.map +1 -0
- package/build/module/form-fields/SubmitButtonField.js +42 -0
- package/build/module/form-fields/SubmitButtonField.js.map +1 -0
- package/build/module/form-fields/TextField.js +56 -0
- package/build/module/form-fields/TextField.js.map +1 -0
- package/build/module/form-fields/index.js +15 -0
- package/build/module/form-fields/index.js.map +1 -0
- package/build/module/i18n/WorkflowI18n.js +94 -0
- package/build/module/i18n/WorkflowI18n.js.map +1 -0
- package/build/module/icons/WorkflowIcon.js +50 -0
- package/build/module/icons/WorkflowIcon.js.map +1 -0
- package/build/module/imageUriCache.js +25 -0
- package/build/module/imageUriCache.js.map +1 -0
- package/build/module/index.js +49 -0
- package/build/module/index.js.map +1 -0
- package/build/module/modal/WorkflowModal.js +115 -0
- package/build/module/modal/WorkflowModal.js.map +1 -0
- package/build/module/package.json +1 -0
- package/build/module/platform/platformName.js +10 -0
- package/build/module/platform/platformName.js.map +1 -0
- package/build/module/platform/platformName.web.js +5 -0
- package/build/module/platform/platformName.web.js.map +1 -0
- package/build/module/protocol/controlSnapshotStore.js +19 -0
- package/build/module/protocol/controlSnapshotStore.js.map +1 -0
- package/build/module/protocol/useProtocolExchange.js +168 -0
- package/build/module/protocol/useProtocolExchange.js.map +1 -0
- package/build/module/registries/ContentRegistry.js +53 -0
- package/build/module/registries/ContentRegistry.js.map +1 -0
- package/build/module/registries/FormFieldRegistry.js +56 -0
- package/build/module/registries/FormFieldRegistry.js.map +1 -0
- package/build/module/render/NodeBoundary.js +73 -0
- package/build/module/render/NodeBoundary.js.map +1 -0
- package/build/module/render/RenderTree.js +52 -0
- package/build/module/render/RenderTree.js.map +1 -0
- package/build/module/render/WorkflowRenderContext.js +34 -0
- package/build/module/render/WorkflowRenderContext.js.map +1 -0
- package/build/module/render/nodes.js +103 -0
- package/build/module/render/nodes.js.map +1 -0
- package/build/module/responsive/ResponsiveProvider.js +63 -0
- package/build/module/responsive/ResponsiveProvider.js.map +1 -0
- package/build/module/responsive/index.js +4 -0
- package/build/module/responsive/index.js.map +1 -0
- package/build/module/responsive/responsive.js +56 -0
- package/build/module/responsive/responsive.js.map +1 -0
- package/build/module/style/resolveDisplayHintStyle.js +145 -0
- package/build/module/style/resolveDisplayHintStyle.js.map +1 -0
- package/build/module/theme/WorkflowTheme.js +200 -0
- package/build/module/theme/WorkflowTheme.js.map +1 -0
- package/build/module/utils/testable.js +12 -0
- package/build/module/utils/testable.js.map +1 -0
- package/build/typescript/WorkflowFontScaleContext.d.ts +7 -0
- package/build/typescript/WorkflowFontScaleContext.d.ts.map +1 -0
- package/build/typescript/adapter/WalletAdapter.d.ts +145 -0
- package/build/typescript/adapter/WalletAdapter.d.ts.map +1 -0
- package/build/typescript/components/FallbackVideoPlayer.d.ts +6 -0
- package/build/typescript/components/FallbackVideoPlayer.d.ts.map +1 -0
- package/build/typescript/components/FallbackVideoPlayer.native.d.ts +7 -0
- package/build/typescript/components/FallbackVideoPlayer.native.d.ts.map +1 -0
- package/build/typescript/components/FallbackVideoPlayer.web.d.ts +9 -0
- package/build/typescript/components/FallbackVideoPlayer.web.d.ts.map +1 -0
- package/build/typescript/components/WorkflowButtonLabel.d.ts +11 -0
- package/build/typescript/components/WorkflowButtonLabel.d.ts.map +1 -0
- package/build/typescript/components/WorkflowCalendarIcon.d.ts +11 -0
- package/build/typescript/components/WorkflowCalendarIcon.d.ts.map +1 -0
- package/build/typescript/components/WorkflowText.d.ts +13 -0
- package/build/typescript/components/WorkflowText.d.ts.map +1 -0
- package/build/typescript/content/BadgeContent.d.ts +5 -0
- package/build/typescript/content/BadgeContent.d.ts.map +1 -0
- package/build/typescript/content/BarChartContent.d.ts +5 -0
- package/build/typescript/content/BarChartContent.d.ts.map +1 -0
- package/build/typescript/content/BarcodeContent.d.ts +11 -0
- package/build/typescript/content/BarcodeContent.d.ts.map +1 -0
- package/build/typescript/content/BasicTableContent.d.ts +5 -0
- package/build/typescript/content/BasicTableContent.d.ts.map +1 -0
- package/build/typescript/content/ButtonContent.d.ts +5 -0
- package/build/typescript/content/ButtonContent.d.ts.map +1 -0
- package/build/typescript/content/CalendarContent.d.ts +19 -0
- package/build/typescript/content/CalendarContent.d.ts.map +1 -0
- package/build/typescript/content/CardContent.d.ts +5 -0
- package/build/typescript/content/CardContent.d.ts.map +1 -0
- package/build/typescript/content/CarouselContent.d.ts +5 -0
- package/build/typescript/content/CarouselContent.d.ts.map +1 -0
- package/build/typescript/content/ChipContent.d.ts +5 -0
- package/build/typescript/content/ChipContent.d.ts.map +1 -0
- package/build/typescript/content/ChipRowContent.d.ts +8 -0
- package/build/typescript/content/ChipRowContent.d.ts.map +1 -0
- package/build/typescript/content/CredentialOfferContent.d.ts +98 -0
- package/build/typescript/content/CredentialOfferContent.d.ts.map +1 -0
- package/build/typescript/content/DialContent.d.ts +5 -0
- package/build/typescript/content/DialContent.d.ts.map +1 -0
- package/build/typescript/content/DividerContent.d.ts +5 -0
- package/build/typescript/content/DividerContent.d.ts.map +1 -0
- package/build/typescript/content/DonutChartContent.d.ts +5 -0
- package/build/typescript/content/DonutChartContent.d.ts.map +1 -0
- package/build/typescript/content/FormContent.d.ts +19 -0
- package/build/typescript/content/FormContent.d.ts.map +1 -0
- package/build/typescript/content/FormFieldBridge.d.ts +2 -0
- package/build/typescript/content/FormFieldBridge.d.ts.map +1 -0
- package/build/typescript/content/GaugeContent.d.ts +5 -0
- package/build/typescript/content/GaugeContent.d.ts.map +1 -0
- package/build/typescript/content/GridLayoutContent.d.ts +5 -0
- package/build/typescript/content/GridLayoutContent.d.ts.map +1 -0
- package/build/typescript/content/ImageContent.d.ts +5 -0
- package/build/typescript/content/ImageContent.d.ts.map +1 -0
- package/build/typescript/content/ListContent.d.ts +5 -0
- package/build/typescript/content/ListContent.d.ts.map +1 -0
- package/build/typescript/content/LocationContent.d.ts +32 -0
- package/build/typescript/content/LocationContent.d.ts.map +1 -0
- package/build/typescript/content/MapContent.d.ts +11 -0
- package/build/typescript/content/MapContent.d.ts.map +1 -0
- package/build/typescript/content/MultipleChoiceContent.d.ts +5 -0
- package/build/typescript/content/MultipleChoiceContent.d.ts.map +1 -0
- package/build/typescript/content/OpenBadgePreviewContent.d.ts +14 -0
- package/build/typescript/content/OpenBadgePreviewContent.d.ts.map +1 -0
- package/build/typescript/content/PhotoContent.d.ts +57 -0
- package/build/typescript/content/PhotoContent.d.ts.map +1 -0
- package/build/typescript/content/PieChartContent.d.ts +5 -0
- package/build/typescript/content/PieChartContent.d.ts.map +1 -0
- package/build/typescript/content/ProofPresentationContent.d.ts +14 -0
- package/build/typescript/content/ProofPresentationContent.d.ts.map +1 -0
- package/build/typescript/content/RadioButtonContent.d.ts +5 -0
- package/build/typescript/content/RadioButtonContent.d.ts.map +1 -0
- package/build/typescript/content/RowContent.d.ts +5 -0
- package/build/typescript/content/RowContent.d.ts.map +1 -0
- package/build/typescript/content/SectionContent.d.ts +5 -0
- package/build/typescript/content/SectionContent.d.ts.map +1 -0
- package/build/typescript/content/ShareEntryContent.d.ts +15 -0
- package/build/typescript/content/ShareEntryContent.d.ts.map +1 -0
- package/build/typescript/content/SimulatedHint.d.ts +9 -0
- package/build/typescript/content/SimulatedHint.d.ts.map +1 -0
- package/build/typescript/content/SliderContent.d.ts +10 -0
- package/build/typescript/content/SliderContent.d.ts.map +1 -0
- package/build/typescript/content/SpacerContent.d.ts +5 -0
- package/build/typescript/content/SpacerContent.d.ts.map +1 -0
- package/build/typescript/content/SpinnerContent.d.ts +5 -0
- package/build/typescript/content/SpinnerContent.d.ts.map +1 -0
- package/build/typescript/content/SubmitButtonContent.d.ts +9 -0
- package/build/typescript/content/SubmitButtonContent.d.ts.map +1 -0
- package/build/typescript/content/TextContent.d.ts +5 -0
- package/build/typescript/content/TextContent.d.ts.map +1 -0
- package/build/typescript/content/TileContent.d.ts +5 -0
- package/build/typescript/content/TileContent.d.ts.map +1 -0
- package/build/typescript/content/TimelineContent.d.ts +5 -0
- package/build/typescript/content/TimelineContent.d.ts.map +1 -0
- package/build/typescript/content/TitleContent.d.ts +5 -0
- package/build/typescript/content/TitleContent.d.ts.map +1 -0
- package/build/typescript/content/VideoContent.d.ts +10 -0
- package/build/typescript/content/VideoContent.d.ts.map +1 -0
- package/build/typescript/content/WebLinkContent.d.ts +5 -0
- package/build/typescript/content/WebLinkContent.d.ts.map +1 -0
- package/build/typescript/content/index.d.ts +46 -0
- package/build/typescript/content/index.d.ts.map +1 -0
- package/build/typescript/form-fields/CheckboxField.d.ts +5 -0
- package/build/typescript/form-fields/CheckboxField.d.ts.map +1 -0
- package/build/typescript/form-fields/DateField.d.ts +6 -0
- package/build/typescript/form-fields/DateField.d.ts.map +1 -0
- package/build/typescript/form-fields/DateField.native.d.ts +5 -0
- package/build/typescript/form-fields/DateField.native.d.ts.map +1 -0
- package/build/typescript/form-fields/DateField.web.d.ts +9 -0
- package/build/typescript/form-fields/DateField.web.d.ts.map +1 -0
- package/build/typescript/form-fields/DropdownField.d.ts +5 -0
- package/build/typescript/form-fields/DropdownField.d.ts.map +1 -0
- package/build/typescript/form-fields/MCQField.d.ts +5 -0
- package/build/typescript/form-fields/MCQField.d.ts.map +1 -0
- package/build/typescript/form-fields/RadioField.d.ts +5 -0
- package/build/typescript/form-fields/RadioField.d.ts.map +1 -0
- package/build/typescript/form-fields/SliderField.d.ts +6 -0
- package/build/typescript/form-fields/SliderField.d.ts.map +1 -0
- package/build/typescript/form-fields/SliderField.native.d.ts +5 -0
- package/build/typescript/form-fields/SliderField.native.d.ts.map +1 -0
- package/build/typescript/form-fields/SliderField.web.d.ts +11 -0
- package/build/typescript/form-fields/SliderField.web.d.ts.map +1 -0
- package/build/typescript/form-fields/SubmitButtonField.d.ts +5 -0
- package/build/typescript/form-fields/SubmitButtonField.d.ts.map +1 -0
- package/build/typescript/form-fields/TextField.d.ts +5 -0
- package/build/typescript/form-fields/TextField.d.ts.map +1 -0
- package/build/typescript/form-fields/index.d.ts +13 -0
- package/build/typescript/form-fields/index.d.ts.map +1 -0
- package/build/typescript/i18n/WorkflowI18n.d.ts +75 -0
- package/build/typescript/i18n/WorkflowI18n.d.ts.map +1 -0
- package/build/typescript/icons/WorkflowIcon.d.ts +27 -0
- package/build/typescript/icons/WorkflowIcon.d.ts.map +1 -0
- package/build/typescript/imageUriCache.d.ts +7 -0
- package/build/typescript/imageUriCache.d.ts.map +1 -0
- package/build/typescript/index.d.ts +47 -0
- package/build/typescript/index.d.ts.map +1 -0
- package/build/typescript/modal/WorkflowModal.d.ts +33 -0
- package/build/typescript/modal/WorkflowModal.d.ts.map +1 -0
- package/build/typescript/package.json +1 -0
- package/build/typescript/platform/platformName.d.ts +8 -0
- package/build/typescript/platform/platformName.d.ts.map +1 -0
- package/build/typescript/platform/platformName.web.d.ts +3 -0
- package/build/typescript/platform/platformName.web.d.ts.map +1 -0
- package/build/typescript/protocol/controlSnapshotStore.d.ts +12 -0
- package/build/typescript/protocol/controlSnapshotStore.d.ts.map +1 -0
- package/build/typescript/protocol/useProtocolExchange.d.ts +40 -0
- package/build/typescript/protocol/useProtocolExchange.d.ts.map +1 -0
- package/build/typescript/registries/ContentRegistry.d.ts +57 -0
- package/build/typescript/registries/ContentRegistry.d.ts.map +1 -0
- package/build/typescript/registries/FormFieldRegistry.d.ts +37 -0
- package/build/typescript/registries/FormFieldRegistry.d.ts.map +1 -0
- package/build/typescript/render/NodeBoundary.d.ts +25 -0
- package/build/typescript/render/NodeBoundary.d.ts.map +1 -0
- package/build/typescript/render/RenderTree.d.ts +23 -0
- package/build/typescript/render/RenderTree.d.ts.map +1 -0
- package/build/typescript/render/WorkflowRenderContext.d.ts +57 -0
- package/build/typescript/render/WorkflowRenderContext.d.ts.map +1 -0
- package/build/typescript/render/nodes.d.ts +49 -0
- package/build/typescript/render/nodes.d.ts.map +1 -0
- package/build/typescript/responsive/ResponsiveProvider.d.ts +39 -0
- package/build/typescript/responsive/ResponsiveProvider.d.ts.map +1 -0
- package/build/typescript/responsive/index.d.ts +3 -0
- package/build/typescript/responsive/index.d.ts.map +1 -0
- package/build/typescript/responsive/responsive.d.ts +24 -0
- package/build/typescript/responsive/responsive.d.ts.map +1 -0
- package/build/typescript/style/resolveDisplayHintStyle.d.ts +23 -0
- package/build/typescript/style/resolveDisplayHintStyle.d.ts.map +1 -0
- package/build/typescript/theme/WorkflowTheme.d.ts +177 -0
- package/build/typescript/theme/WorkflowTheme.d.ts.map +1 -0
- package/build/typescript/utils/testable.d.ts +8 -0
- package/build/typescript/utils/testable.d.ts.map +1 -0
- package/package.json +101 -3
- package/src/WorkflowFontScaleContext.tsx +74 -0
- package/src/adapter/WalletAdapter.tsx +225 -0
- package/src/components/FallbackVideoPlayer.native.tsx +9 -0
- package/src/components/FallbackVideoPlayer.tsx +5 -0
- package/src/components/FallbackVideoPlayer.web.tsx +24 -0
- package/src/components/WorkflowButtonLabel.tsx +41 -0
- package/src/components/WorkflowCalendarIcon.tsx +52 -0
- package/src/components/WorkflowText.tsx +121 -0
- package/src/content/BadgeContent.tsx +57 -0
- package/src/content/BarChartContent.tsx +76 -0
- package/src/content/BarcodeContent.tsx +59 -0
- package/src/content/BasicTableContent.tsx +139 -0
- package/src/content/ButtonContent.tsx +124 -0
- package/src/content/CalendarContent.tsx +178 -0
- package/src/content/CardContent.tsx +137 -0
- package/src/content/CarouselContent.tsx +197 -0
- package/src/content/ChipContent.tsx +209 -0
- package/src/content/ChipRowContent.tsx +133 -0
- package/src/content/CredentialOfferContent.tsx +229 -0
- package/src/content/DialContent.tsx +96 -0
- package/src/content/DividerContent.tsx +33 -0
- package/src/content/DonutChartContent.tsx +110 -0
- package/src/content/FormContent.tsx +158 -0
- package/src/content/FormFieldBridge.tsx +144 -0
- package/src/content/GaugeContent.tsx +66 -0
- package/src/content/GridLayoutContent.tsx +285 -0
- package/src/content/ImageContent.tsx +222 -0
- package/src/content/ListContent.tsx +98 -0
- package/src/content/LocationContent.tsx +135 -0
- package/src/content/MapContent.tsx +232 -0
- package/src/content/MultipleChoiceContent.tsx +74 -0
- package/src/content/OpenBadgePreviewContent.tsx +93 -0
- package/src/content/PhotoContent.tsx +110 -0
- package/src/content/PieChartContent.tsx +121 -0
- package/src/content/ProofPresentationContent.tsx +127 -0
- package/src/content/RadioButtonContent.tsx +129 -0
- package/src/content/RowContent.tsx +627 -0
- package/src/content/SectionContent.tsx +133 -0
- package/src/content/ShareEntryContent.tsx +109 -0
- package/src/content/SimulatedHint.tsx +20 -0
- package/src/content/SliderContent.tsx +56 -0
- package/src/content/SpacerContent.tsx +15 -0
- package/src/content/SpinnerContent.tsx +24 -0
- package/src/content/SubmitButtonContent.tsx +256 -0
- package/src/content/TextContent.tsx +140 -0
- package/src/content/TileContent.tsx +216 -0
- package/src/content/TimelineContent.tsx +91 -0
- package/src/content/TitleContent.tsx +49 -0
- package/src/content/VideoContent.tsx +131 -0
- package/src/content/WebLinkContent.tsx +87 -0
- package/src/content/index.ts +45 -0
- package/src/form-fields/CheckboxField.tsx +29 -0
- package/src/form-fields/DateField.native.tsx +123 -0
- package/src/form-fields/DateField.tsx +5 -0
- package/src/form-fields/DateField.web.tsx +32 -0
- package/src/form-fields/DropdownField.tsx +137 -0
- package/src/form-fields/MCQField.tsx +68 -0
- package/src/form-fields/RadioField.tsx +53 -0
- package/src/form-fields/SliderField.native.tsx +53 -0
- package/src/form-fields/SliderField.tsx +5 -0
- package/src/form-fields/SliderField.web.tsx +58 -0
- package/src/form-fields/SubmitButtonField.tsx +33 -0
- package/src/form-fields/TextField.tsx +49 -0
- package/src/form-fields/index.ts +12 -0
- package/src/i18n/WorkflowI18n.tsx +100 -0
- package/src/icons/WorkflowIcon.tsx +43 -0
- package/src/imageUriCache.ts +27 -0
- package/src/index.ts +96 -0
- package/src/modal/WorkflowModal.tsx +119 -0
- package/src/platform/platformName.ts +7 -0
- package/src/platform/platformName.web.ts +2 -0
- package/src/protocol/controlSnapshotStore.ts +25 -0
- package/src/protocol/useProtocolExchange.ts +185 -0
- package/src/registries/ContentRegistry.tsx +130 -0
- package/src/registries/FormFieldRegistry.tsx +83 -0
- package/src/render/NodeBoundary.tsx +69 -0
- package/src/render/RenderTree.tsx +63 -0
- package/src/render/WorkflowRenderContext.tsx +71 -0
- package/src/render/nodes.ts +104 -0
- package/src/responsive/ResponsiveProvider.tsx +103 -0
- package/src/responsive/index.ts +7 -0
- package/src/responsive/responsive.ts +67 -0
- package/src/style/resolveDisplayHintStyle.ts +153 -0
- package/src/theme/WorkflowTheme.tsx +162 -0
- package/src/utils/testable.ts +10 -0
|
@@ -0,0 +1,141 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
import DateTimePicker from '@react-native-community/datetimepicker';
|
|
4
|
+
import React, { useState } from 'react';
|
|
5
|
+
import { Platform, Pressable, StyleSheet, Text, TouchableOpacity, View } from 'react-native';
|
|
6
|
+
import { useWorkflowT } from "../i18n/WorkflowI18n.js";
|
|
7
|
+
import { WorkflowModal } from "../modal/WorkflowModal.js";
|
|
8
|
+
import { FormFieldRegistry } from "../registries/FormFieldRegistry.js";
|
|
9
|
+
import { testIdWithKey } from "../utils/testable.js";
|
|
10
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
11
|
+
const DateField = ({
|
|
12
|
+
field,
|
|
13
|
+
value,
|
|
14
|
+
onChange,
|
|
15
|
+
styles,
|
|
16
|
+
colors
|
|
17
|
+
}) => {
|
|
18
|
+
const [showPicker, setShowPicker] = useState(false);
|
|
19
|
+
const parseLocalDate = val => {
|
|
20
|
+
const parts = val.split('-').map(Number);
|
|
21
|
+
if (parts.length === 3 && parts.every(Boolean)) {
|
|
22
|
+
return new Date(parts[0], parts[1] - 1, parts[2]);
|
|
23
|
+
}
|
|
24
|
+
return new Date(val);
|
|
25
|
+
};
|
|
26
|
+
const dateValue = value ? parseLocalDate(value) : new Date();
|
|
27
|
+
const t = useWorkflowT();
|
|
28
|
+
const formatDate = date => date.toLocaleDateString();
|
|
29
|
+
const handleChange = (event, date) => {
|
|
30
|
+
if (Platform.OS === 'android') {
|
|
31
|
+
setShowPicker(false);
|
|
32
|
+
}
|
|
33
|
+
if (date) {
|
|
34
|
+
const y = date.getFullYear();
|
|
35
|
+
const m = String(date.getMonth() + 1).padStart(2, '0');
|
|
36
|
+
const d = String(date.getDate()).padStart(2, '0');
|
|
37
|
+
onChange(`${y}-${m}-${d}`);
|
|
38
|
+
}
|
|
39
|
+
};
|
|
40
|
+
return /*#__PURE__*/_jsxs(View, {
|
|
41
|
+
style: styles.fieldContainer,
|
|
42
|
+
children: [/*#__PURE__*/_jsx(Text, {
|
|
43
|
+
style: [styles.label, {
|
|
44
|
+
color: colors.text
|
|
45
|
+
}],
|
|
46
|
+
children: field.label
|
|
47
|
+
}), /*#__PURE__*/_jsx(TouchableOpacity, {
|
|
48
|
+
testID: testIdWithKey('WorkflowDatePicker'),
|
|
49
|
+
accessibilityLabel: field.label || t('WorkflowUi.SelectDate'),
|
|
50
|
+
accessibilityRole: "button",
|
|
51
|
+
style: [styles.dateButton, {
|
|
52
|
+
borderColor: colors.border || colors.primary,
|
|
53
|
+
borderWidth: 1.5
|
|
54
|
+
}],
|
|
55
|
+
onPress: () => setShowPicker(true),
|
|
56
|
+
children: /*#__PURE__*/_jsx(Text, {
|
|
57
|
+
style: {
|
|
58
|
+
color: colors.text
|
|
59
|
+
},
|
|
60
|
+
children: value ? formatDate(dateValue) : t('WorkflowUi.SelectDate')
|
|
61
|
+
})
|
|
62
|
+
}), Platform.OS === 'ios' ? /*#__PURE__*/_jsx(WorkflowModal, {
|
|
63
|
+
visible: showPicker,
|
|
64
|
+
transparent: true,
|
|
65
|
+
animationType: "fade",
|
|
66
|
+
onRequestClose: () => setShowPicker(false),
|
|
67
|
+
children: /*#__PURE__*/_jsx(Pressable, {
|
|
68
|
+
style: s.backdrop,
|
|
69
|
+
onPress: () => setShowPicker(false),
|
|
70
|
+
children: /*#__PURE__*/_jsxs(Pressable, {
|
|
71
|
+
style: s.sheet,
|
|
72
|
+
children: [/*#__PURE__*/_jsx(View, {
|
|
73
|
+
style: s.handle
|
|
74
|
+
}), /*#__PURE__*/_jsx(DateTimePicker, {
|
|
75
|
+
value: dateValue,
|
|
76
|
+
mode: "date",
|
|
77
|
+
display: "inline",
|
|
78
|
+
onChange: handleChange,
|
|
79
|
+
style: s.picker,
|
|
80
|
+
themeVariant: "light"
|
|
81
|
+
}), /*#__PURE__*/_jsx(TouchableOpacity, {
|
|
82
|
+
style: [s.doneButton, {
|
|
83
|
+
backgroundColor: colors.primary
|
|
84
|
+
}],
|
|
85
|
+
onPress: () => setShowPicker(false),
|
|
86
|
+
children: /*#__PURE__*/_jsx(Text, {
|
|
87
|
+
style: [s.doneText, {
|
|
88
|
+
color: colors.buttonText || '#fff'
|
|
89
|
+
}],
|
|
90
|
+
children: "Done"
|
|
91
|
+
})
|
|
92
|
+
})]
|
|
93
|
+
})
|
|
94
|
+
})
|
|
95
|
+
}) : showPicker && /*#__PURE__*/_jsx(DateTimePicker, {
|
|
96
|
+
value: dateValue,
|
|
97
|
+
mode: "date",
|
|
98
|
+
display: "default",
|
|
99
|
+
onChange: handleChange
|
|
100
|
+
})]
|
|
101
|
+
});
|
|
102
|
+
};
|
|
103
|
+
const s = StyleSheet.create({
|
|
104
|
+
backdrop: {
|
|
105
|
+
flex: 1,
|
|
106
|
+
backgroundColor: 'rgba(0,0,0,0.4)',
|
|
107
|
+
justifyContent: 'center',
|
|
108
|
+
alignItems: 'center',
|
|
109
|
+
paddingHorizontal: 24
|
|
110
|
+
},
|
|
111
|
+
sheet: {
|
|
112
|
+
backgroundColor: '#fff',
|
|
113
|
+
borderRadius: 20,
|
|
114
|
+
paddingTop: 16,
|
|
115
|
+
paddingBottom: 20,
|
|
116
|
+
paddingHorizontal: 16,
|
|
117
|
+
alignItems: 'center',
|
|
118
|
+
width: '100%'
|
|
119
|
+
},
|
|
120
|
+
handle: {
|
|
121
|
+
width: 0,
|
|
122
|
+
height: 0
|
|
123
|
+
},
|
|
124
|
+
picker: {
|
|
125
|
+
width: '100%'
|
|
126
|
+
},
|
|
127
|
+
doneButton: {
|
|
128
|
+
marginTop: 12,
|
|
129
|
+
paddingVertical: 14,
|
|
130
|
+
borderRadius: 14,
|
|
131
|
+
width: '100%',
|
|
132
|
+
alignItems: 'center'
|
|
133
|
+
},
|
|
134
|
+
doneText: {
|
|
135
|
+
fontSize: 16,
|
|
136
|
+
fontWeight: '600'
|
|
137
|
+
}
|
|
138
|
+
});
|
|
139
|
+
FormFieldRegistry.register('date', DateField);
|
|
140
|
+
export default DateField;
|
|
141
|
+
//# sourceMappingURL=DateField.native.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["DateTimePicker","React","useState","Platform","Pressable","StyleSheet","Text","TouchableOpacity","View","useWorkflowT","WorkflowModal","FormFieldRegistry","testIdWithKey","jsx","_jsx","jsxs","_jsxs","DateField","field","value","onChange","styles","colors","showPicker","setShowPicker","parseLocalDate","val","parts","split","map","Number","length","every","Boolean","Date","dateValue","t","formatDate","date","toLocaleDateString","handleChange","event","OS","y","getFullYear","m","String","getMonth","padStart","d","getDate","style","fieldContainer","children","label","color","text","testID","accessibilityLabel","accessibilityRole","dateButton","borderColor","border","primary","borderWidth","onPress","visible","transparent","animationType","onRequestClose","s","backdrop","sheet","handle","mode","display","picker","themeVariant","doneButton","backgroundColor","doneText","buttonText","create","flex","justifyContent","alignItems","paddingHorizontal","borderRadius","paddingTop","paddingBottom","width","height","marginTop","paddingVertical","fontSize","fontWeight","register"],"sourceRoot":"../../../src","sources":["form-fields/DateField.native.tsx"],"mappings":";;AAAA,OAAOA,cAAc,MAAoC,wCAAwC;AACjG,OAAOC,KAAK,IAAIC,QAAQ,QAAQ,OAAO;AACvC,SAASC,QAAQ,EAAEC,SAAS,EAAEC,UAAU,EAAEC,IAAI,EAAEC,gBAAgB,EAAEC,IAAI,QAAQ,cAAc;AAC5F,SAASC,YAAY,QAAQ,yBAAsB;AACnD,SAASC,aAAa,QAAQ,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MAACuC,IAAI,EAAC,MAAM;MAACC,OAAO,EAAC,SAAS;MAACvD,QAAQ,EAAEoB;IAAa,CAAE,CACxG;EAAA,CACG,CAAC;AAEX,CAAC;AAED,MAAM8B,CAAC,GAAGjE,UAAU,CAAC6E,MAAM,CAAC;EAC1BX,QAAQ,EAAE;IACRY,IAAI,EAAE,CAAC;IACPJ,eAAe,EAAE,iBAAiB;IAClCK,cAAc,EAAE,QAAQ;IACxBC,UAAU,EAAE,QAAQ;IACpBC,iBAAiB,EAAE;EACrB,CAAC;EACDd,KAAK,EAAE;IACLO,eAAe,EAAE,MAAM;IACvBQ,YAAY,EAAE,EAAE;IAChBC,UAAU,EAAE,EAAE;IACdC,aAAa,EAAE,EAAE;IACjBH,iBAAiB,EAAE,EAAE;IACrBD,UAAU,EAAE,QAAQ;IACpBK,KAAK,EAAE;EACT,CAAC;EACDjB,MAAM,EAAE;IACNiB,KAAK,EAAE,CAAC;IACRC,MAAM,EAAE;EACV,CAAC;EACDf,MAAM,EAAE;IACNc,KAAK,EAAE;EACT,CAAC;EACDZ,UAAU,EAAE;IACVc,SAAS,EAAE,EAAE;IACbC,eAAe,EAAE,EAAE;IACnBN,YAAY,EAAE,EAAE;IAChBG,KAAK,EAAE,MAAM;IACbL,UAAU,EAAE;EACd,CAAC;EACDL,QAAQ,EAAE;IACRc,QAAQ,EAAE,EAAE;IACZC,UAAU,EAAE;EACd;AACF,CAAC,CAAC;AAEFpF,iBAAiB,CAACqF,QAAQ,CAAC,MAAM,EAAE/E,SAAS,CAAC;AAE7C,eAAeA,SAAS","ignoreList":[]}
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
import React from 'react';
|
|
4
|
+
import { Text, TextInput, View } from 'react-native';
|
|
5
|
+
import { useWorkflowT } from "../i18n/WorkflowI18n.js";
|
|
6
|
+
import { FormFieldRegistry } from "../registries/FormFieldRegistry.js";
|
|
7
|
+
import { testIdWithKey } from "../utils/testable.js";
|
|
8
|
+
|
|
9
|
+
/**
|
|
10
|
+
* Web version of the date field (the native picker has no web build).
|
|
11
|
+
* Accepts and emits `YYYY-MM-DD`, like the native field.
|
|
12
|
+
*/
|
|
13
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
14
|
+
const DateField = ({
|
|
15
|
+
field,
|
|
16
|
+
value,
|
|
17
|
+
onChange,
|
|
18
|
+
styles,
|
|
19
|
+
colors
|
|
20
|
+
}) => {
|
|
21
|
+
const t = useWorkflowT();
|
|
22
|
+
return /*#__PURE__*/_jsxs(View, {
|
|
23
|
+
style: styles.fieldContainer,
|
|
24
|
+
children: [/*#__PURE__*/_jsx(Text, {
|
|
25
|
+
style: [styles.label, {
|
|
26
|
+
color: colors.text
|
|
27
|
+
}],
|
|
28
|
+
children: field.label
|
|
29
|
+
}), /*#__PURE__*/_jsx(TextInput, {
|
|
30
|
+
testID: testIdWithKey('WorkflowDatePicker'),
|
|
31
|
+
accessibilityLabel: field.label || t('WorkflowUi.SelectDate'),
|
|
32
|
+
style: [styles.dateButton, {
|
|
33
|
+
borderColor: colors.border || colors.primary,
|
|
34
|
+
borderWidth: 1.5,
|
|
35
|
+
color: colors.text
|
|
36
|
+
}],
|
|
37
|
+
value: typeof value === 'string' ? value : '',
|
|
38
|
+
placeholder: "YYYY-MM-DD",
|
|
39
|
+
onChangeText: text => onChange(text)
|
|
40
|
+
})]
|
|
41
|
+
});
|
|
42
|
+
};
|
|
43
|
+
FormFieldRegistry.register('date', DateField);
|
|
44
|
+
export default DateField;
|
|
45
|
+
//# sourceMappingURL=DateField.web.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["React","Text","TextInput","View","useWorkflowT","FormFieldRegistry","testIdWithKey","jsx","_jsx","jsxs","_jsxs","DateField","field","value","onChange","styles","colors","t","style","fieldContainer","children","label","color","text","testID","accessibilityLabel","dateButton","borderColor","border","primary","borderWidth","placeholder","onChangeText","register"],"sourceRoot":"../../../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CAAC;EAAA,CACE,CAAC;AAEX,CAAC;AAEDlB,iBAAiB,CAAC4B,QAAQ,CAAC,MAAM,EAAEtB,SAAS,CAAC;AAC7C,eAAeA,SAAS","ignoreList":[]}
|
|
@@ -0,0 +1,172 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
import React, { useMemo, useRef, useState } from 'react';
|
|
4
|
+
import { FlatList, Pressable, StyleSheet, Text, TouchableOpacity, View } from 'react-native';
|
|
5
|
+
import { useWorkflowT } from "../i18n/WorkflowI18n.js";
|
|
6
|
+
import { useModalPosition, WorkflowModal } from "../modal/WorkflowModal.js";
|
|
7
|
+
import { FormFieldRegistry } from "../registries/FormFieldRegistry.js";
|
|
8
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
9
|
+
const DropdownField = ({
|
|
10
|
+
field,
|
|
11
|
+
value,
|
|
12
|
+
onChange,
|
|
13
|
+
styles,
|
|
14
|
+
colors
|
|
15
|
+
}) => {
|
|
16
|
+
const [isOpen, setIsOpen] = useState(false);
|
|
17
|
+
const [anchor, setAnchor] = useState(null);
|
|
18
|
+
const triggerRef = useRef(null);
|
|
19
|
+
const t = useWorkflowT();
|
|
20
|
+
const toModalPosition = useModalPosition();
|
|
21
|
+
const options = useMemo(() => field.options || [], [field.options]);
|
|
22
|
+
const open = () => {
|
|
23
|
+
// ref.measureInWindow works on native and react-native-web; findNodeHandle
|
|
24
|
+
// + UIManager.measureInWindow throws on web, so the list never opened there.
|
|
25
|
+
const node = triggerRef.current;
|
|
26
|
+
if (!node) {
|
|
27
|
+
setIsOpen(true);
|
|
28
|
+
return;
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
// Window coordinates, converted to the popup layer's (the designer's phone
|
|
32
|
+
// frame when a WorkflowModalHost is present).
|
|
33
|
+
node.measureInWindow((x, y, width, height) => {
|
|
34
|
+
toModalPosition({
|
|
35
|
+
x,
|
|
36
|
+
y
|
|
37
|
+
}, local => {
|
|
38
|
+
setAnchor({
|
|
39
|
+
x: local.x,
|
|
40
|
+
y: local.y,
|
|
41
|
+
width,
|
|
42
|
+
height
|
|
43
|
+
});
|
|
44
|
+
setIsOpen(true);
|
|
45
|
+
});
|
|
46
|
+
});
|
|
47
|
+
};
|
|
48
|
+
const close = () => setIsOpen(false);
|
|
49
|
+
return /*#__PURE__*/_jsxs(View, {
|
|
50
|
+
style: styles.fieldContainer,
|
|
51
|
+
children: [/*#__PURE__*/_jsx(Text, {
|
|
52
|
+
style: [styles.label, {
|
|
53
|
+
color: colors.text
|
|
54
|
+
}],
|
|
55
|
+
children: field.label
|
|
56
|
+
}), /*#__PURE__*/_jsx(View, {
|
|
57
|
+
ref: triggerRef,
|
|
58
|
+
collapsable: false,
|
|
59
|
+
children: /*#__PURE__*/_jsxs(TouchableOpacity, {
|
|
60
|
+
style: [styles.dropdown, {
|
|
61
|
+
borderColor: colors.border,
|
|
62
|
+
backgroundColor: colors.background
|
|
63
|
+
}],
|
|
64
|
+
onPress: open,
|
|
65
|
+
children: [/*#__PURE__*/_jsx(Text, {
|
|
66
|
+
style: {
|
|
67
|
+
color: value ? colors.text : colors.border,
|
|
68
|
+
flex: 1,
|
|
69
|
+
flexShrink: 1,
|
|
70
|
+
paddingRight: 24
|
|
71
|
+
},
|
|
72
|
+
numberOfLines: 2,
|
|
73
|
+
children: value || t('WorkflowUi.Select')
|
|
74
|
+
}), /*#__PURE__*/_jsx(Text, {
|
|
75
|
+
style: {
|
|
76
|
+
position: 'absolute',
|
|
77
|
+
right: 12,
|
|
78
|
+
color: colors.text
|
|
79
|
+
},
|
|
80
|
+
children: "\u25BC"
|
|
81
|
+
})]
|
|
82
|
+
})
|
|
83
|
+
}), /*#__PURE__*/_jsx(WorkflowModal, {
|
|
84
|
+
visible: isOpen,
|
|
85
|
+
transparent: true,
|
|
86
|
+
animationType: "fade",
|
|
87
|
+
onRequestClose: close,
|
|
88
|
+
children: /*#__PURE__*/_jsx(Pressable, {
|
|
89
|
+
style: modalStyles.backdrop,
|
|
90
|
+
onPress: close,
|
|
91
|
+
children: /*#__PURE__*/_jsx(Pressable
|
|
92
|
+
// prevent closing when tapping inside menu
|
|
93
|
+
, {
|
|
94
|
+
onPress: () => {},
|
|
95
|
+
style: [modalStyles.menu, {
|
|
96
|
+
backgroundColor: colors.background,
|
|
97
|
+
borderColor: colors.border,
|
|
98
|
+
left: anchor?.x ?? 16,
|
|
99
|
+
top: (anchor?.y ?? 0) + (anchor?.height ?? 0) + 8,
|
|
100
|
+
width: anchor?.width ?? undefined
|
|
101
|
+
}],
|
|
102
|
+
children: /*#__PURE__*/_jsx(FlatList, {
|
|
103
|
+
data: options,
|
|
104
|
+
keyExtractor: (item, idx) => `${item}-${idx}`,
|
|
105
|
+
renderItem: ({
|
|
106
|
+
item,
|
|
107
|
+
index
|
|
108
|
+
}) => /*#__PURE__*/_jsxs(TouchableOpacity, {
|
|
109
|
+
style: [modalStyles.item, {
|
|
110
|
+
borderBottomColor: colors.border
|
|
111
|
+
}, index === options.length - 1 && modalStyles.lastItem],
|
|
112
|
+
onPress: () => {
|
|
113
|
+
onChange(item);
|
|
114
|
+
close();
|
|
115
|
+
},
|
|
116
|
+
children: [/*#__PURE__*/_jsx(Text, {
|
|
117
|
+
style: {
|
|
118
|
+
color: colors.text,
|
|
119
|
+
fontSize: 16,
|
|
120
|
+
flex: 1,
|
|
121
|
+
flexShrink: 1,
|
|
122
|
+
paddingRight: 8
|
|
123
|
+
},
|
|
124
|
+
children: item
|
|
125
|
+
}), value === item && /*#__PURE__*/_jsx(Text, {
|
|
126
|
+
style: {
|
|
127
|
+
color: colors.primary
|
|
128
|
+
},
|
|
129
|
+
children: "\u2713"
|
|
130
|
+
})]
|
|
131
|
+
})
|
|
132
|
+
})
|
|
133
|
+
})
|
|
134
|
+
})
|
|
135
|
+
})]
|
|
136
|
+
});
|
|
137
|
+
};
|
|
138
|
+
const modalStyles = StyleSheet.create({
|
|
139
|
+
backdrop: {
|
|
140
|
+
flex: 1
|
|
141
|
+
},
|
|
142
|
+
menu: {
|
|
143
|
+
position: 'absolute',
|
|
144
|
+
borderWidth: 1,
|
|
145
|
+
borderRadius: 8,
|
|
146
|
+
maxHeight: 240,
|
|
147
|
+
// Android
|
|
148
|
+
elevation: 10,
|
|
149
|
+
// iOS
|
|
150
|
+
shadowColor: '#000',
|
|
151
|
+
shadowOffset: {
|
|
152
|
+
width: 0,
|
|
153
|
+
height: 6
|
|
154
|
+
},
|
|
155
|
+
shadowOpacity: 0.2,
|
|
156
|
+
shadowRadius: 12
|
|
157
|
+
},
|
|
158
|
+
item: {
|
|
159
|
+
padding: 16,
|
|
160
|
+
borderBottomWidth: 1,
|
|
161
|
+
flexDirection: 'row',
|
|
162
|
+
justifyContent: 'space-between',
|
|
163
|
+
alignItems: 'center'
|
|
164
|
+
},
|
|
165
|
+
lastItem: {
|
|
166
|
+
borderBottomWidth: 0
|
|
167
|
+
}
|
|
168
|
+
});
|
|
169
|
+
FormFieldRegistry.register('dropdown', DropdownField);
|
|
170
|
+
FormFieldRegistry.register('drop-down', DropdownField);
|
|
171
|
+
export default DropdownField;
|
|
172
|
+
//# sourceMappingURL=DropdownField.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["React","useMemo","useRef","useState","FlatList","Pressable","StyleSheet","Text","TouchableOpacity","View","useWorkflowT","useModalPosition","WorkflowModal","FormFieldRegistry","jsx","_jsx","jsxs","_jsxs","DropdownField","field","value","onChange","styles","colors","isOpen","setIsOpen","anchor","setAnchor","triggerRef","t","toModalPosition","options","open","node","current","measureInWindow","x","y","width","height","local","close","style","fieldContainer","children","label","color","text","ref","collapsable","dropdown","borderColor","border","backgroundColor","background","onPress","flex","flexShrink","paddingRight","numberOfLines","position","right","visible","transparent","animationType","onRequestClose","modalStyles","backdrop","menu","left","top","undefined","data","keyExtractor","item","idx","renderItem","index","borderBottomColor","length","lastItem","fontSize","primary","create","borderWidth","borderRadius","maxHeight","elevation","shadowColor","shadowOffset","shadowOpacity","shadowRadius","padding","borderBottomWidth","flexDirection","justifyContent","alignItems","register"],"sourceRoot":"../../../src","sources":["form-fields/DropdownField.tsx"],"mappings":";;AAAA,OAAOA,KAAK,IAAIC,OAAO,EAAEC,MAAM,EAAEC,QAAQ,QAAQ,OAAO;AACxD,SAASC,QAAQ,EAAEC,SAAS,EAAEC,UAAU,EAAEC,IAAI,EAAEC,gBAAgB,EAAEC,IAAI,QAAQ,cAAc;AAC5F,SAASC,YAAY,QAAQ,yBAAsB;AACnD,SAASC,gBAAgB,EAAEC,aAAa,QAAQ,2BAAwB;AACxE,SAA8BC,iBAAiB,QAAQ,oCAAiC;AAAA,SAAAC,GAAA,IAAAC,IAAA,EAAAC,IAAA,IAAAC,KAAA;AAIxF,MAAMC,aAAuC,GAAGA,CAAC;EAAEC,KAAK;EAAEC,KAAK;EAAEC,QAAQ;EAAEC,MAAM;EAAEC;AAAO,CAAC,KAAK;EAC9F,MAAM,CAACC,MAAM,EAAEC,SAAS,CAAC,GAAGtB,QAAQ,CAAC,KAAK,CAAC;EAC3C,MAAM,CAACuB,MAAM,EAAEC,SAAS,CAAC,GAAGxB,QAAQ,CAAS,IAAI,CAAC;EAClD,MAAMyB,UAAU,GAAG1B,MAAM,CAAO,IAAI,CAAC;EACrC,MAAM2B,CAAC,GAAGnB,YAAY,CAAC,CAAC;EACxB,MAAMoB,eAAe,GAAGnB,gBAAgB,CAAC,CAAC;EAE1C,MAAMoB,OAAO,GAAG9B,OAAO,CAAC,MAAMkB,KAAK,CAACY,OAAO,IAAI,EAAE,EAAE,CAACZ,KAAK,CAACY,OAAO,CAAC,CAAC;EAEnE,MAAMC,IAAI,GAAGA,CAAA,KAAM;IACjB;IACA;IACA,MAAMC,IAAI,GAAGL,UAAU,CAACM,OAAO;IAC/B,IAAI,CAACD,IAAI,EAAE;MACTR,SAAS,CAAC,IAAI,CAAC;MACf;IACF;;IAEA;IACA;IACAQ,IAAI,CAACE,eAAe,CAAC,CAACC,CAAC,EAAEC,CAA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E;IACXC,iBAAiB,EAAE,CAAC;IACpBC,aAAa,EAAE,KAAK;IACpBC,cAAc,EAAE,eAAe;IAC/BC,UAAU,EAAE;EACd,CAAC;EACDhB,QAAQ,EAAE;IACRa,iBAAiB,EAAE;EACrB;AACF,CAAC,CAAC;AAEFhF,iBAAiB,CAACoF,QAAQ,CAAC,UAAU,EAAE/E,aAAa,CAAC;AACrDL,iBAAiB,CAACoF,QAAQ,CAAC,WAAW,EAAE/E,aAAa,CAAC;AAEtD,eAAeA,aAAa","ignoreList":[]}
|
|
@@ -0,0 +1,100 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
import React from 'react';
|
|
4
|
+
import { StyleSheet, Text, TouchableOpacity, View } from 'react-native';
|
|
5
|
+
import { FormFieldRegistry } from "../registries/FormFieldRegistry.js";
|
|
6
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
7
|
+
const MCQField = ({
|
|
8
|
+
field,
|
|
9
|
+
value,
|
|
10
|
+
onChange,
|
|
11
|
+
colors
|
|
12
|
+
}) => {
|
|
13
|
+
const selected = Array.isArray(value) ? value : (value || '').split(',').filter(Boolean);
|
|
14
|
+
const toggleOption = option => {
|
|
15
|
+
const newSelected = selected.includes(option) ? selected.filter(o => o !== option) : [...selected, option];
|
|
16
|
+
onChange(newSelected);
|
|
17
|
+
};
|
|
18
|
+
const options = field.options || [];
|
|
19
|
+
return /*#__PURE__*/_jsxs(View, {
|
|
20
|
+
style: s.wrap,
|
|
21
|
+
children: [!!field.label && /*#__PURE__*/_jsx(Text, {
|
|
22
|
+
style: [s.label, {
|
|
23
|
+
color: colors.text
|
|
24
|
+
}],
|
|
25
|
+
children: field.label
|
|
26
|
+
}), options.map((option, index) => {
|
|
27
|
+
const isSelected = selected.includes(option);
|
|
28
|
+
return /*#__PURE__*/_jsxs(TouchableOpacity, {
|
|
29
|
+
style: [s.row, isSelected && {
|
|
30
|
+
borderColor: colors.primary
|
|
31
|
+
}],
|
|
32
|
+
onPress: () => toggleOption(option),
|
|
33
|
+
activeOpacity: 0.7,
|
|
34
|
+
children: [/*#__PURE__*/_jsx(View, {
|
|
35
|
+
style: [s.box, {
|
|
36
|
+
borderColor: colors.primary
|
|
37
|
+
}, isSelected && {
|
|
38
|
+
backgroundColor: colors.primary
|
|
39
|
+
}],
|
|
40
|
+
children: isSelected && /*#__PURE__*/_jsx(Text, {
|
|
41
|
+
style: [s.check, {
|
|
42
|
+
color: colors.buttonText || '#062826'
|
|
43
|
+
}],
|
|
44
|
+
children: "\u2713"
|
|
45
|
+
})
|
|
46
|
+
}), /*#__PURE__*/_jsx(Text, {
|
|
47
|
+
style: [s.optLabel, {
|
|
48
|
+
color: colors.text
|
|
49
|
+
}],
|
|
50
|
+
children: option
|
|
51
|
+
})]
|
|
52
|
+
}, index);
|
|
53
|
+
})]
|
|
54
|
+
});
|
|
55
|
+
};
|
|
56
|
+
const s = StyleSheet.create({
|
|
57
|
+
wrap: {
|
|
58
|
+
marginBottom: 8
|
|
59
|
+
},
|
|
60
|
+
label: {
|
|
61
|
+
fontSize: 14,
|
|
62
|
+
fontWeight: '600',
|
|
63
|
+
marginBottom: 8,
|
|
64
|
+
flexShrink: 1
|
|
65
|
+
},
|
|
66
|
+
row: {
|
|
67
|
+
flexDirection: 'row',
|
|
68
|
+
alignItems: 'flex-start',
|
|
69
|
+
paddingVertical: 10,
|
|
70
|
+
paddingHorizontal: 12,
|
|
71
|
+
borderRadius: 12,
|
|
72
|
+
borderWidth: 1,
|
|
73
|
+
borderColor: 'rgba(255,255,255,0.12)',
|
|
74
|
+
marginBottom: 8,
|
|
75
|
+
minWidth: 0
|
|
76
|
+
},
|
|
77
|
+
box: {
|
|
78
|
+
width: 22,
|
|
79
|
+
height: 22,
|
|
80
|
+
borderRadius: 6,
|
|
81
|
+
borderWidth: 2,
|
|
82
|
+
alignItems: 'center',
|
|
83
|
+
justifyContent: 'center',
|
|
84
|
+
marginRight: 12,
|
|
85
|
+
marginTop: 2
|
|
86
|
+
},
|
|
87
|
+
check: {
|
|
88
|
+
fontSize: 13,
|
|
89
|
+
fontWeight: '800'
|
|
90
|
+
},
|
|
91
|
+
optLabel: {
|
|
92
|
+
fontSize: 15,
|
|
93
|
+
flex: 1,
|
|
94
|
+
flexShrink: 1
|
|
95
|
+
}
|
|
96
|
+
});
|
|
97
|
+
FormFieldRegistry.register('mcq', MCQField);
|
|
98
|
+
FormFieldRegistry.register('multiple-choice', MCQField);
|
|
99
|
+
export default MCQField;
|
|
100
|
+
//# sourceMappingURL=MCQField.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["React","StyleSheet","Text","TouchableOpacity","View","FormFieldRegistry","jsx","_jsx","jsxs","_jsxs","MCQField","field","value","onChange","colors","selected","Array","isArray","split","filter","Boolean","toggleOption","option","newSelected","includes","o","options","style","s","wrap","children","label","color","text","map","index","isSelected","row","borderColor","primary","onPress","activeOpacity","box","backgroundColor","check","buttonText","optLabel","create","marginBottom","fontSize","fontWeight","flexShrink","flexDirection","alignItems","paddingVertical","paddingHorizontal","borderRadius","borderWidth","minWidth","width","height","justifyContent","marginRight","marginTop","flex","register"],"sourceRoot":"../../../src","sources":["form-fields/MCQField.tsx"],"mappings":";;AAAA,OAAOA,KAAK,MAAM,OAAO;AACzB,SAASC,UAAU,EAAEC,IAAI,EAAEC,gBAAgB,EAAEC,IAAI,QAAQ,cAAc;AACvE,SAA8BC,iBAAiB,QAAQ,oCAAiC;AAAA,SAAAC,GAAA,IAAAC,IAAA,EAAAC,IAAA,IAAAC,KAAA;AAExF,MAAMC,QAAkC,GAAGA,CAAC;EAAEC,KAAK;EAAEC,KAAK;EAAEC,QAAQ;EAAEC;AAAO,CAAC,KAAK;EACjF,MAAMC,QAAkB,GAAGC,KAAK,CAACC,OAAO,CAACL,KAAK,CAAC,GAAGA,KAAK,GAAG,CAACA,KAAK,IAAI,EAAE,EAAEM,KAAK,CAAC,GAAG,CAAC,CAACC,MAAM,CAACC,OAA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;EAAM,CAAC;EAC1CJ,QAAQ,EAAE;IAAEG,QAAQ,EAAE,EAAE;IAAEe,IAAI,EAAE,CAAC;IAAEb,UAAU,EAAE;EAAE;AACnD,CAAC,CAAC;AAEF9C,iBAAiB,CAAC4D,QAAQ,CAAC,KAAK,EAAEvD,QAAQ,CAAC;AAC3CL,iBAAiB,CAAC4D,QAAQ,CAAC,iBAAiB,EAAEvD,QAAQ,CAAC;AAEvD,eAAeA,QAAQ","ignoreList":[]}
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
import React from 'react';
|
|
4
|
+
import { TouchableOpacity, View } from 'react-native';
|
|
5
|
+
import WorkflowText from "../components/WorkflowText.js";
|
|
6
|
+
import { FormFieldRegistry } from "../registries/FormFieldRegistry.js";
|
|
7
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
8
|
+
const RadioField = ({
|
|
9
|
+
field,
|
|
10
|
+
value,
|
|
11
|
+
onChange,
|
|
12
|
+
styles,
|
|
13
|
+
colors
|
|
14
|
+
}) => {
|
|
15
|
+
const options = field.options || [];
|
|
16
|
+
const renderRadioOption = (option, index) => {
|
|
17
|
+
const isObjectOption = typeof option === 'object' && option !== null;
|
|
18
|
+
const optionLabel = isObjectOption ? option.label : option;
|
|
19
|
+
const optionValue = isObjectOption ? option.value : option;
|
|
20
|
+
const isSelected = value === optionValue;
|
|
21
|
+
return /*#__PURE__*/_jsxs(TouchableOpacity, {
|
|
22
|
+
style: styles.radioRow,
|
|
23
|
+
onPress: () => onChange(optionValue),
|
|
24
|
+
children: [/*#__PURE__*/_jsx(View, {
|
|
25
|
+
style: [styles.radioOuter, {
|
|
26
|
+
borderColor: colors.primary
|
|
27
|
+
}, isSelected && {
|
|
28
|
+
backgroundColor: colors.primary
|
|
29
|
+
}],
|
|
30
|
+
children: isSelected && /*#__PURE__*/_jsx(View, {
|
|
31
|
+
style: styles.radioInner
|
|
32
|
+
})
|
|
33
|
+
}), /*#__PURE__*/_jsx(WorkflowText, {
|
|
34
|
+
variant: "body",
|
|
35
|
+
style: [styles.radioLabel, {
|
|
36
|
+
color: colors.text,
|
|
37
|
+
flex: 1
|
|
38
|
+
}],
|
|
39
|
+
children: optionLabel
|
|
40
|
+
})]
|
|
41
|
+
}, index);
|
|
42
|
+
};
|
|
43
|
+
return /*#__PURE__*/_jsxs(View, {
|
|
44
|
+
style: styles.fieldContainer,
|
|
45
|
+
children: [field.label ? /*#__PURE__*/_jsx(WorkflowText, {
|
|
46
|
+
variant: "label",
|
|
47
|
+
style: [styles.label, {
|
|
48
|
+
color: colors.text
|
|
49
|
+
}],
|
|
50
|
+
children: field.label
|
|
51
|
+
}) : null, options.map(renderRadioOption)]
|
|
52
|
+
});
|
|
53
|
+
};
|
|
54
|
+
FormFieldRegistry.register('radio', RadioField);
|
|
55
|
+
export default RadioField;
|
|
56
|
+
//# sourceMappingURL=RadioField.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["React","TouchableOpacity","View","WorkflowText","FormFieldRegistry","jsx","_jsx","jsxs","_jsxs","RadioField","field","value","onChange","styles","colors","options","renderRadioOption","option","index","isObjectOption","optionLabel","label","optionValue","isSelected","style","radioRow","onPress","children","radioOuter","borderColor","primary","backgroundColor","radioInner","variant","radioLabel","color","text","flex","fieldContainer","map","register"],"sourceRoot":"../../../src","sources":["form-fields/RadioField.tsx"],"mappings":";;AAAA,OAAOA,KAAK,MAAM,OAAO;AACzB,SAASC,gBAAgB,EAAEC,IAAI,QAAQ,cAAc;AACrD,OAAOC,YAAY,MAAM,+BAA4B;AACrD,SAA8BC,iBAAiB,QAAQ,oCAAiC;AAAA,SAAAC,GAAA,IAAAC,IAAA,EAAAC,IAAA,IAAAC,KAAA;AAQxF,MAAMC,UAAoC,GAAGA,CAAC;EAAEC,KAAK;EAAEC,KAAK;EAAEC,QAAQ;EAAEC,MAAM;EAAEC;AAAO,CAAC,KAAK;EAC3F,MAAMC,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Y;MAAC8B,OAAO,EAAC,OAAO;MAACT,KAAK,EAAE,CAACX,MAAM,CAACQ,KAAK,EAAE;QAAEc,KAAK,EAAErB,MAAM,CAACsB;MAAK,CAAC,CAAE;MAAAT,QAAA,EACzEjB,KAAK,CAACW;IAAK,CACA,CAAC,GACb,IAAI,EACPN,OAAO,CAACwB,GAAG,CAACvB,iBAAiB,CAAC;EAAA,CAC3B,CAAC;AAEX,CAAC;AAEDZ,iBAAiB,CAACoC,QAAQ,CAAC,OAAO,EAAE/B,UAAU,CAAC;AAE/C,eAAeA,UAAU","ignoreList":[]}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* Fallback for bundlers without platform extensions (and for type checking).
|
|
5
|
+
* Metro picks SliderField.native.tsx; web bundlers pick SliderField.web.tsx.
|
|
6
|
+
*/
|
|
7
|
+
export { default } from "./SliderField.web.js";
|
|
8
|
+
//# sourceMappingURL=SliderField.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["default"],"sourceRoot":"../../../src","sources":["form-fields/SliderField.tsx"],"mappings":";;AAAA;AACA;AACA;AACA;AACA,SAASA,OAAO,QAAQ,sBAAmB","ignoreList":[]}
|
|
@@ -0,0 +1,77 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
import Slider from '@react-native-community/slider';
|
|
4
|
+
import React from 'react';
|
|
5
|
+
import { StyleSheet, Text, View } from 'react-native';
|
|
6
|
+
import { FormFieldRegistry } from "../registries/FormFieldRegistry.js";
|
|
7
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
8
|
+
const SliderField = ({
|
|
9
|
+
field,
|
|
10
|
+
value,
|
|
11
|
+
onChange,
|
|
12
|
+
colors
|
|
13
|
+
}) => {
|
|
14
|
+
const min = field.min ?? 0;
|
|
15
|
+
const max = field.max ?? 100;
|
|
16
|
+
const toNum = v => {
|
|
17
|
+
const n = typeof v === 'string' ? parseFloat(v) : v;
|
|
18
|
+
return Number.isFinite(n) ? n : min;
|
|
19
|
+
};
|
|
20
|
+
|
|
21
|
+
// Local state so the label updates live while dragging (onValueChange),
|
|
22
|
+
// while onSlidingComplete commits the final value to the form.
|
|
23
|
+
const [display, setDisplay] = React.useState(toNum(value));
|
|
24
|
+
|
|
25
|
+
// biome-ignore lint/correctness/useExhaustiveDependencies: sync the live label only when the committed value changes
|
|
26
|
+
React.useEffect(() => {
|
|
27
|
+
setDisplay(toNum(value));
|
|
28
|
+
}, [value]);
|
|
29
|
+
return /*#__PURE__*/_jsxs(View, {
|
|
30
|
+
style: s.wrap,
|
|
31
|
+
children: [!!field.label && /*#__PURE__*/_jsx(Text, {
|
|
32
|
+
style: [s.label, {
|
|
33
|
+
color: colors.text
|
|
34
|
+
}],
|
|
35
|
+
children: field.label
|
|
36
|
+
}), /*#__PURE__*/_jsx(Slider, {
|
|
37
|
+
style: s.slider,
|
|
38
|
+
value: display,
|
|
39
|
+
onValueChange: val => setDisplay(val),
|
|
40
|
+
onSlidingComplete: val => onChange(Math.round(val).toString()),
|
|
41
|
+
minimumValue: min,
|
|
42
|
+
maximumValue: max,
|
|
43
|
+
step: 1,
|
|
44
|
+
minimumTrackTintColor: colors.primary,
|
|
45
|
+
maximumTrackTintColor: colors.border,
|
|
46
|
+
thumbTintColor: colors.primary
|
|
47
|
+
}), /*#__PURE__*/_jsx(Text, {
|
|
48
|
+
style: [s.value, {
|
|
49
|
+
color: colors.primary
|
|
50
|
+
}],
|
|
51
|
+
children: Math.round(display)
|
|
52
|
+
})]
|
|
53
|
+
});
|
|
54
|
+
};
|
|
55
|
+
const s = StyleSheet.create({
|
|
56
|
+
wrap: {
|
|
57
|
+
marginBottom: 8
|
|
58
|
+
},
|
|
59
|
+
label: {
|
|
60
|
+
fontSize: 14,
|
|
61
|
+
fontWeight: '600',
|
|
62
|
+
marginBottom: 4
|
|
63
|
+
},
|
|
64
|
+
slider: {
|
|
65
|
+
width: '100%',
|
|
66
|
+
height: 40
|
|
67
|
+
},
|
|
68
|
+
value: {
|
|
69
|
+
fontSize: 16,
|
|
70
|
+
fontWeight: '700',
|
|
71
|
+
textAlign: 'center',
|
|
72
|
+
marginTop: 2
|
|
73
|
+
}
|
|
74
|
+
});
|
|
75
|
+
FormFieldRegistry.register('slider', SliderField);
|
|
76
|
+
export default SliderField;
|
|
77
|
+
//# sourceMappingURL=SliderField.native.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["Slider","React","StyleSheet","Text","View","FormFieldRegistry","jsx","_jsx","jsxs","_jsxs","SliderField","field","value","onChange","colors","min","max","toNum","v","n","parseFloat","Number","isFinite","display","setDisplay","useState","useEffect","style","s","wrap","children","label","color","text","slider","onValueChange","val","onSlidingComplete","Math","round","toString","minimumValue","maximumValue","step","minimumTrackTintColor","primary","maximumTrackTintColor","border","thumbTintColor","create","marginBottom","fontSize","fontWeight","width","height","textAlign","marginTop","register"],"sourceRoot":"../../../src","sources":["form-fields/SliderField.native.tsx"],"mappings":";;AAAA,OAAOA,MAAM,MAAM,gCAAgC;AACnD,OAAOC,KAAK,MAAM,OAAO;AACzB,SAASC,UAAU,EAAEC,IAAI,EAAEC,IAAI,QAAQ,cAAc;AACrD,SAA8BC,iBAAiB,QAAQ,oCAAiC;AAAA,SAAAC,GAAA,IAAAC,IAAA,EAAAC,IAAA,IAAAC,KAAA;AAExF,MAAMC,WAAqC,GAAGA,CAAC;EAAEC,KAAK;EAAEC,KAAK;EAAEC,QAAQ;EAAEC;AAAO,CAAC,KAAK;EACpF,MAAMC,GAAG,GAAGJ,KAAK,CAACI,GAAG,IAAI,CAAC;EAC1B,MAAMC,GAAG,GAAGL,KAAK,CAACK,GAAG,IAAI,GAAG;EAE5B,MAAMC,KAAK,GAAIC,CAAM,IAAa;IAChC,MAAMC,CAAC,GAAG,OAAOD,CAAC,KAAK,QAAQ,GAAGE,UAAU,CAACF,CAAC,CAAC,GAAGA,CA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