@gen3/frontend 0.12.63 → 0.12.64

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.
Files changed (96) hide show
  1. package/dist/dts/components/Content/Form.d.ts +5 -5
  2. package/dist/dts/components/Content/Form.d.ts.map +1 -1
  3. package/dist/dts/components/Content/Form.js +9 -1
  4. package/dist/dts/components/Content/Form.js.map +1 -1
  5. package/dist/dts/components/Content/FormContent.d.ts +16 -5
  6. package/dist/dts/components/Content/FormContent.d.ts.map +1 -1
  7. package/dist/dts/components/Content/FormContent.js +26 -4
  8. package/dist/dts/components/Content/FormContent.js.map +1 -1
  9. package/dist/dts/components/Content/formValidators.d.ts +7 -0
  10. package/dist/dts/components/Content/formValidators.d.ts.map +1 -0
  11. package/dist/dts/components/Content/formValidators.js +52 -0
  12. package/dist/dts/components/Content/formValidators.js.map +1 -0
  13. package/dist/dts/components/Providers/Gen3Provider.d.ts +7 -7
  14. package/dist/dts/features/Analysis/AnalysisCardCompact.stories.d.ts +22 -22
  15. package/dist/dts/features/CohortBuilder/ExplorerTable/ArrayCellRenderer.d.ts +1 -1
  16. package/dist/dts/features/CohortSimilarity/cohortSimilarityApi.d.ts +4 -4
  17. package/dist/dts/features/DiscoveryForms/StudyRegistration/FormContentViews.d.ts +16 -0
  18. package/dist/dts/features/DiscoveryForms/StudyRegistration/FormContentViews.d.ts.map +1 -0
  19. package/dist/dts/features/DiscoveryForms/StudyRegistration/FormContentViews.js +18 -0
  20. package/dist/dts/features/DiscoveryForms/StudyRegistration/FormContentViews.js.map +1 -0
  21. package/dist/dts/features/DiscoveryForms/StudyRegistration/FormContentViews.stories.d.ts +30 -0
  22. package/dist/dts/features/DiscoveryForms/StudyRegistration/FormContentViews.stories.d.ts.map +1 -0
  23. package/dist/dts/features/DiscoveryForms/StudyRegistration/FormContentViews.stories.js +367 -0
  24. package/dist/dts/features/DiscoveryForms/StudyRegistration/FormContentViews.stories.js.map +1 -0
  25. package/dist/dts/features/DiscoveryForms/StudyRegistration/StudyRegistrationAccessRequestOutcome.d.ts +7 -0
  26. package/dist/dts/features/DiscoveryForms/StudyRegistration/StudyRegistrationAccessRequestOutcome.d.ts.map +1 -0
  27. package/dist/dts/features/DiscoveryForms/StudyRegistration/StudyRegistrationAccessRequestOutcome.js +14 -0
  28. package/dist/dts/features/DiscoveryForms/StudyRegistration/StudyRegistrationAccessRequestOutcome.js.map +1 -0
  29. package/dist/dts/features/DiscoveryForms/StudyRegistration/index.d.ts +8 -0
  30. package/dist/dts/features/DiscoveryForms/StudyRegistration/index.d.ts.map +1 -0
  31. package/dist/dts/features/DiscoveryForms/StudyRegistration/index.js +11 -0
  32. package/dist/dts/features/DiscoveryForms/StudyRegistration/index.js.map +1 -0
  33. package/dist/dts/features/DiscoveryForms/StudyRegistration/types.d.ts +55 -0
  34. package/dist/dts/features/DiscoveryForms/StudyRegistration/types.d.ts.map +1 -0
  35. package/dist/dts/features/DiscoveryForms/StudyRegistration/types.js +8 -0
  36. package/dist/dts/features/DiscoveryForms/StudyRegistration/types.js.map +1 -0
  37. package/dist/dts/features/DiscoveryForms/StudyRegistration/useStudyRegistration/getClinicalTrialMetadata.d.ts +2 -0
  38. package/dist/dts/features/DiscoveryForms/StudyRegistration/useStudyRegistration/getClinicalTrialMetadata.d.ts.map +1 -0
  39. package/dist/dts/features/DiscoveryForms/StudyRegistration/useStudyRegistration/getClinicalTrialMetadata.js +17 -0
  40. package/dist/dts/features/DiscoveryForms/StudyRegistration/useStudyRegistration/getClinicalTrialMetadata.js.map +1 -0
  41. package/dist/dts/features/DiscoveryForms/StudyRegistration/useStudyRegistration/preprocessStudyRegistrationMetadata.d.ts +10 -0
  42. package/dist/dts/features/DiscoveryForms/StudyRegistration/useStudyRegistration/preprocessStudyRegistrationMetadata.d.ts.map +1 -0
  43. package/dist/dts/features/DiscoveryForms/StudyRegistration/useStudyRegistration/preprocessStudyRegistrationMetadata.js +77 -0
  44. package/dist/dts/features/DiscoveryForms/StudyRegistration/useStudyRegistration/preprocessStudyRegistrationMetadata.js.map +1 -0
  45. package/dist/dts/features/DiscoveryForms/StudyRegistration/useStudyRegistration/useStudyRegistration.d.ts +12 -0
  46. package/dist/dts/features/DiscoveryForms/StudyRegistration/useStudyRegistration/useStudyRegistration.d.ts.map +1 -0
  47. package/dist/dts/features/DiscoveryForms/StudyRegistration/useStudyRegistration/useStudyRegistration.js +160 -0
  48. package/dist/dts/features/DiscoveryForms/StudyRegistration/useStudyRegistration/useStudyRegistration.js.map +1 -0
  49. package/dist/dts/features/DiscoveryForms/StudyRegistration/userCanRegisterStudy.d.ts +6 -0
  50. package/dist/dts/features/DiscoveryForms/StudyRegistration/userCanRegisterStudy.d.ts.map +1 -0
  51. package/dist/dts/features/DiscoveryForms/StudyRegistration/userCanRegisterStudy.js +10 -0
  52. package/dist/dts/features/DiscoveryForms/StudyRegistration/userCanRegisterStudy.js.map +1 -0
  53. package/dist/dts/features/Navigation/FixedNavPageLayout.js +1 -1
  54. package/dist/dts/features/Navigation/FixedNavPageLayout.js.map +1 -1
  55. package/dist/dts/features/Study/StudyDetails/StudyDetailsHeaderButtons.d.ts.map +1 -1
  56. package/dist/dts/features/Study/StudyDetails/StudyDetailsHeaderButtons.js +26 -8
  57. package/dist/dts/features/Study/StudyDetails/StudyDetailsHeaderButtons.js.map +1 -1
  58. package/dist/dts/pages/StudyForms/StudyRegistration/data.d.ts +4 -0
  59. package/dist/dts/pages/StudyForms/StudyRegistration/data.d.ts.map +1 -0
  60. package/dist/dts/pages/StudyForms/StudyRegistration/data.js +32 -0
  61. package/dist/dts/pages/StudyForms/StudyRegistration/data.js.map +1 -0
  62. package/dist/dts/pages/StudyForms/StudyRegistration/index.d.ts +10 -0
  63. package/dist/dts/pages/StudyForms/StudyRegistration/index.d.ts.map +1 -0
  64. package/dist/dts/pages/StudyForms/StudyRegistration/index.js +12 -0
  65. package/dist/dts/pages/StudyForms/StudyRegistration/index.js.map +1 -0
  66. package/dist/dts/pages/StudyForms/StudyRegistration/types.d.ts +28 -0
  67. package/dist/dts/pages/StudyForms/StudyRegistration/types.d.ts.map +1 -0
  68. package/dist/dts/pages/StudyForms/StudyRegistration/types.js +2 -0
  69. package/dist/dts/pages/StudyForms/StudyRegistration/types.js.map +1 -0
  70. package/dist/index/cjs/QueryPanel-DNGXxrpC.js +43 -0
  71. package/dist/index/cjs/QueryPanel-DNGXxrpC.js.map +1 -0
  72. package/dist/index/cjs/index-7sUtTikC.js +42117 -0
  73. package/dist/index/cjs/index-7sUtTikC.js.map +1 -0
  74. package/dist/index/cjs/index.js +1 -1
  75. package/dist/index/esm/QueryPanel-C3JVntIb.js +37 -0
  76. package/dist/index/esm/QueryPanel-C3JVntIb.js.map +1 -0
  77. package/dist/index/esm/index-B_0ks9Pi.js +41830 -0
  78. package/dist/index/esm/index-B_0ks9Pi.js.map +1 -0
  79. package/dist/index/esm/index.js +1 -1
  80. package/dist/index.d.ts +22 -12
  81. package/dist/pages/cjs/CohortBuilder-DircXqXL.js +576 -0
  82. package/dist/pages/cjs/CohortBuilder-DircXqXL.js.map +1 -0
  83. package/dist/pages/cjs/QueryPanel-qYWbo2Cb.js +43 -0
  84. package/dist/pages/cjs/QueryPanel-qYWbo2Cb.js.map +1 -0
  85. package/dist/pages/cjs/index-BQzYPjdE.js +32499 -0
  86. package/dist/pages/cjs/index-BQzYPjdE.js.map +1 -0
  87. package/dist/pages/cjs/index.js +1 -1
  88. package/dist/pages/esm/CohortBuilder-CI9PAFLd.js +573 -0
  89. package/dist/pages/esm/CohortBuilder-CI9PAFLd.js.map +1 -0
  90. package/dist/pages/esm/QueryPanel-BEqldpr5.js +37 -0
  91. package/dist/pages/esm/QueryPanel-BEqldpr5.js.map +1 -0
  92. package/dist/pages/esm/index-BoZwM5wd.js +32389 -0
  93. package/dist/pages/esm/index-BoZwM5wd.js.map +1 -0
  94. package/dist/pages/esm/index.js +1 -1
  95. package/dist/pages.d.ts +15 -5
  96. package/package.json +2 -2
@@ -1,4 +1,4 @@
1
- export { A as AISearchPage, s as AISearchPageGetServerSideProps, v as AnalysisPage, w as AnalysisPageGetServerSideProps, x as ClinicalDataAnalysisPage, y as ClinicalDataAnalysisServerSideProps, z as ColorThemePage, B as ColorThemePageGetServerSideProps, F as CrosswalkPage, G as CrosswalkPageGetServerSideProps, H as Custom403Page, I as Custom403PageGetServerSideProps, J as Custom404Page, K as Custom404PageGetServerSideProps, L as DataDictionaryPage, M as DataLibraryPage, N as DataLibraryPageGetServerSideProps, O as DictionaryPageGetServerSideProps, P as DiscoveryPageGetServerSideProps, R as DiscpveryPage, S as ExplorerPage, T as ExplorerPageGetServerSideProps, U as ExplorerPageGetServerSidePropsForConfigId, V as LandingPage, W as LandingPageGetServerSideProps, X as LoginPage, Y as LoginPageGetServerSideProps, Z as NotebookLitePage, _ as NotebookLitePageGetStaticProps, $ as ProfilePage, a0 as ProfilePageGetServerSideProps, a1 as QueryPage, a2 as QueryPageGetServerSideProps, a3 as RepositoryPage, a4 as RepositoryPageGetServerSideProps, a5 as SubmissionPageGetServerSideProps, a6 as SumbissionPage, a7 as TabbedCohortBuilderPage, a8 as TabbedCohortBuilderPageGetServerSideProps, a9 as WorkspaceNoAccessPage, aa as WorkspaceNoAccessPageServerSideProps, ab as WorkspacePage, ac as WorkspacePageGetServerSideProps } from './index-CcQqYrhI.js';
1
+ export { A as AISearchPage, s as AISearchPageGetServerSideProps, v as AnalysisPage, w as AnalysisPageGetServerSideProps, x as ClinicalDataAnalysisPage, y as ClinicalDataAnalysisServerSideProps, z as ColorThemePage, B as ColorThemePageGetServerSideProps, F as CrosswalkPage, G as CrosswalkPageGetServerSideProps, H as Custom403Page, I as Custom403PageGetServerSideProps, J as Custom404Page, K as Custom404PageGetServerSideProps, L as DataDictionaryPage, M as DataLibraryPage, N as DataLibraryPageGetServerSideProps, O as DictionaryPageGetServerSideProps, P as DiscoveryPageGetServerSideProps, R as DiscpveryPage, S as ExplorerPage, T as ExplorerPageGetServerSideProps, U as ExplorerPageGetServerSidePropsForConfigId, V as LandingPage, W as LandingPageGetServerSideProps, X as LoginPage, Y as LoginPageGetServerSideProps, Z as NotebookLitePage, _ as NotebookLitePageGetStaticProps, $ as ProfilePage, a0 as ProfilePageGetServerSideProps, a1 as QueryPage, a2 as QueryPageGetServerSideProps, a3 as RepositoryPage, a4 as RepositoryPageGetServerSideProps, a5 as SubmissionPageGetServerSideProps, a6 as SumbissionPage, a7 as TabbedCohortBuilderPage, a8 as TabbedCohortBuilderPageGetServerSideProps, a9 as WorkspaceNoAccessPage, aa as WorkspaceNoAccessPageServerSideProps, ab as WorkspacePage, ac as WorkspacePageGetServerSideProps } from './index-BoZwM5wd.js';
2
2
  import 'react/jsx-runtime';
3
3
  import 'react';
4
4
  import 'next/navigation';
package/dist/pages.d.ts CHANGED
@@ -231,7 +231,15 @@ declare enum FormContentType {
231
231
  Email = "Email",// mantine TextInput set to validate email
232
232
  Checkbox = "Checkbox",// mantine Checkbox
233
233
  Textarea = "Textarea",// mantine Textarea
234
- RadioGroup = "RadioGroup"
234
+ RadioGroup = "RadioGroup",// mantine Radio.Group
235
+ Select = "Select",// mantine Select
236
+ Tags = "Tags",// mantine Tags
237
+ CedarUserUUID = "CedarUserUUID",// Cedar User ID text input
238
+ ClinicalTrialID = "ClinicalTrialID"
239
+ }
240
+ interface SelectOptionItem {
241
+ label: string;
242
+ value: string;
235
243
  }
236
244
  /**
237
245
  * Interface representing the properties for rendering form content.
@@ -240,19 +248,21 @@ interface FormContentProps extends Omit<TextContentProps, 'type' | 'text'> {
240
248
  readonly text?: TextContentProps['text'];
241
249
  readonly type?: FormContentType | ContentType;
242
250
  readonly label?: string;
251
+ readonly initialValue?: string;
252
+ readonly dropdownData?: SelectOptionItem[];
243
253
  readonly description?: string;
244
254
  readonly placeholder?: string;
245
255
  readonly disabled?: boolean;
246
256
  readonly required?: boolean;
247
257
  readonly tooltip?: string;
248
258
  readonly keyString: string;
249
- readonly form: UseFormReturnType<any, (values: any) => any>;
259
+ readonly form: UseFormReturnType<Record<string, unknown>, (values: Record<string, unknown>) => Record<string, unknown>>;
250
260
  }
251
261
 
252
262
  interface FormPropsBody extends Omit<FormContentProps, 'keyString' | 'form'> {
253
- readonly errorText: string;
263
+ readonly errorText?: string;
254
264
  readonly variable?: string;
255
- readonly initialValue?: string | boolean;
265
+ readonly required?: boolean;
256
266
  }
257
267
  interface FormOnSubmitReturnProps {
258
268
  [key: string]: string;
@@ -265,7 +275,7 @@ interface FormProps {
265
275
  readonly submitButtonText?: string;
266
276
  readonly showResetButton?: boolean;
267
277
  readonly body: FormPropsBody[];
268
- readonly onSubmit: (values: FormOnSubmitReturnProps) => void | Promise<any>;
278
+ readonly onSubmit: (values: FormOnSubmitReturnProps) => void | Promise<unknown>;
269
279
  readonly errorMessage?: string;
270
280
  }
271
281
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gen3/frontend",
3
- "version": "0.12.63",
3
+ "version": "0.12.64",
4
4
  "description": "Gen3 frontend components, content management, and pages",
5
5
  "keywords": [],
6
6
  "author": "Center for Translational Data Science",
@@ -63,7 +63,7 @@
63
63
  "@dnd-kit/core": "^6.3.1",
64
64
  "@dnd-kit/modifiers": "^9.0.0",
65
65
  "@dnd-kit/sortable": "^10.0.0",
66
- "@gen3/core": "^0.12.63",
66
+ "@gen3/core": "^0.12.64",
67
67
  "@graphiql/react": "^0.37.7",
68
68
  "@hello-pangea/dnd": "^18.0.0",
69
69
  "@iconify-icon/react": "^3.0.3",