@gen3/frontend 0.12.32 → 0.12.33

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 (78) hide show
  1. package/dist/dts/components/Providers/Gen3Provider.d.ts +8 -8
  2. package/dist/dts/components/tailwindComponents.js +2 -2
  3. package/dist/dts/features/Analysis/AnalysisCardCompact.js +1 -1
  4. package/dist/dts/features/Analysis/AnalysisCardCompact.js.map +1 -1
  5. package/dist/dts/features/Analysis/AnalysisCardCompact.stories.d.ts +16 -16
  6. package/dist/dts/features/ClinicalDataAnalysis/CategoricalBinningModal.js +1 -1
  7. package/dist/dts/features/ClinicalDataAnalysis/CategoricalBinningModal.js.map +1 -1
  8. package/dist/dts/features/CohortBuilder/QueryExpression/QueryRepresentation.js +2 -2
  9. package/dist/dts/features/CohortBuilder/QueryExpression/QueryRepresentation.js.map +1 -1
  10. package/dist/dts/features/CohortDiscovery/CohortDiscovery.js +1 -1
  11. package/dist/dts/features/CohortDiscovery/CohortDiscovery.js.map +1 -1
  12. package/dist/dts/features/CohortSimilarity/cohortSimilarityApi.d.ts +8 -8
  13. package/dist/dts/features/Crosswalk/CrosswalkPanel.js +1 -1
  14. package/dist/dts/features/Crosswalk/CrosswalkPanel.js.map +1 -1
  15. package/dist/dts/features/Dictionary/PropertiesTable.js +1 -1
  16. package/dist/dts/features/Dictionary/PropertiesTable.js.map +1 -1
  17. package/dist/dts/features/Dictionary/metadata/MetadataPropertiesTable.js +1 -1
  18. package/dist/dts/features/Dictionary/metadata/MetadataPropertiesTable.js.map +1 -1
  19. package/dist/dts/features/Discovery/DiscoveryTable/DiscoveryTable.d.ts.map +1 -1
  20. package/dist/dts/features/Discovery/DiscoveryTable/DiscoveryTable.js +2 -2
  21. package/dist/dts/features/Discovery/DiscoveryTable/DiscoveryTable.js.map +1 -1
  22. package/dist/dts/features/Discovery/DiscoveryTable/TableRenderers/RowDetailPanelTags.js +1 -1
  23. package/dist/dts/features/Discovery/DiscoveryTable/TableRenderers/RowDetailPanelTags.js.map +1 -1
  24. package/dist/dts/features/Study/StudyDetails/RendererFactory.d.ts.map +1 -1
  25. package/dist/dts/features/Study/StudyDetails/RendererFactory.js +2 -1
  26. package/dist/dts/features/Study/StudyDetails/RendererFactory.js.map +1 -1
  27. package/dist/dts/features/Study/StudyDetails/StudyDetails.d.ts +1 -1
  28. package/dist/dts/features/Study/StudyDetails/StudyDetails.d.ts.map +1 -1
  29. package/dist/dts/features/Study/StudyDetails/StudyDetails.js +2 -5
  30. package/dist/dts/features/Study/StudyDetails/StudyDetails.js.map +1 -1
  31. package/dist/dts/features/Study/StudyDetails/StudyDetailsPanel.d.ts.map +1 -1
  32. package/dist/dts/features/Study/StudyDetails/StudyDetailsPanel.js +2 -1
  33. package/dist/dts/features/Study/StudyDetails/StudyDetailsPanel.js.map +1 -1
  34. package/dist/dts/features/Study/StudyDetails/StudyGroup.d.ts.map +1 -1
  35. package/dist/dts/features/Study/StudyDetails/StudyGroup.js +1 -1
  36. package/dist/dts/features/Study/StudyDetails/StudyGroup.js.map +1 -1
  37. package/dist/dts/features/Study/StudyDetails/StudyItems.d.ts +17 -0
  38. package/dist/dts/features/Study/StudyDetails/StudyItems.d.ts.map +1 -1
  39. package/dist/dts/features/Study/StudyDetails/StudyItems.js +32 -6
  40. package/dist/dts/features/Study/StudyDetails/StudyItems.js.map +1 -1
  41. package/dist/dts/features/Study/types.d.ts +3 -2
  42. package/dist/dts/features/Study/types.d.ts.map +1 -1
  43. package/dist/dts/features/Study/types.js.map +1 -1
  44. package/dist/dts/features/Theme/ColorTheme.js +47 -47
  45. package/dist/dts/features/Theme/ColorTheme.js.map +1 -1
  46. package/dist/dts/features/Workspace/StatusAndControls.js +2 -2
  47. package/dist/dts/features/Workspace/StatusAndControls.js.map +1 -1
  48. package/dist/dts/utils/labels.d.ts +1 -2
  49. package/dist/dts/utils/labels.d.ts.map +1 -1
  50. package/dist/dts/utils/labels.js +3 -4
  51. package/dist/dts/utils/labels.js.map +1 -1
  52. package/dist/dts/utils/tests/labels.test.d.ts +2 -0
  53. package/dist/dts/utils/tests/labels.test.d.ts.map +1 -0
  54. package/dist/dts/utils/tests/labels.test.js +29 -0
  55. package/dist/dts/utils/tests/labels.test.js.map +1 -0
  56. package/dist/index/cjs/QueryPanel-drXE9Jc1.js +24 -0
  57. package/dist/index/cjs/QueryPanel-drXE9Jc1.js.map +1 -0
  58. package/dist/index/cjs/index-BL3Vrwc2.js +36891 -0
  59. package/dist/index/cjs/index-BL3Vrwc2.js.map +1 -0
  60. package/dist/index/cjs/index.js +2 -2
  61. package/dist/index/esm/QueryPanel-DfTwy5_m.js +22 -0
  62. package/dist/index/esm/QueryPanel-DfTwy5_m.js.map +1 -0
  63. package/dist/index/esm/index-Di7EHbDk.js +36644 -0
  64. package/dist/index/esm/index-Di7EHbDk.js.map +1 -0
  65. package/dist/index/esm/index.js +2 -2
  66. package/dist/index.d.ts +9 -8
  67. package/dist/pages/cjs/CohortBuilder-DbvPeQJG.js +491 -0
  68. package/dist/pages/cjs/CohortBuilder-DbvPeQJG.js.map +1 -0
  69. package/dist/pages/cjs/index-CcjID1Qk.js +27945 -0
  70. package/dist/pages/cjs/index-CcjID1Qk.js.map +1 -0
  71. package/dist/pages/cjs/index.js +2 -2
  72. package/dist/pages/esm/CohortBuilder-sLIEgDf7.js +488 -0
  73. package/dist/pages/esm/CohortBuilder-sLIEgDf7.js.map +1 -0
  74. package/dist/pages/esm/index-BQ62DeS4.js +27862 -0
  75. package/dist/pages/esm/index-BQ62DeS4.js.map +1 -0
  76. package/dist/pages/esm/index.js +2 -2
  77. package/dist/pages.d.ts +1 -0
  78. package/package.json +4 -5
@@ -1,8 +1,7 @@
1
1
  /**
2
2
  * Convert label to pluralized (optional title case)
3
- * @param {label} string - a label to convert to title
4
- * @param {titleCase} boolean - Should the first letter be capitalized default false
5
3
  * @returns {string} Pluralized formatted word
4
+ * @param label {string} Word to pluralize
6
5
  */
7
6
  export declare const labelToPlural: (label: string) => string;
8
7
  //# sourceMappingURL=labels.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"labels.d.ts","sourceRoot":"","sources":["../../../src/utils/labels.ts"],"names":[],"mappings":"AAEA;;;;;GAKG;AACH,eAAO,MAAM,aAAa,GAAI,OAAO,MAAM,WAE1C,CAAC"}
1
+ {"version":3,"file":"labels.d.ts","sourceRoot":"","sources":["../../../src/utils/labels.ts"],"names":[],"mappings":"AAEA;;;;GAIG;AACH,eAAO,MAAM,aAAa,GAAI,OAAO,MAAM,WAE1C,CAAC"}
@@ -1,11 +1,10 @@
1
- import Pluralize from 'typescript-pluralize';
1
+ import pluralize from '@theothergothamdev/pluralize-ts';
2
2
  /**
3
3
  * Convert label to pluralized (optional title case)
4
- * @param {label} string - a label to convert to title
5
- * @param {titleCase} boolean - Should the first letter be capitalized default false
6
4
  * @returns {string} Pluralized formatted word
5
+ * @param label {string} Word to pluralize
7
6
  */
8
7
  export const labelToPlural = (label) => {
9
- return Pluralize.plural(label);
8
+ return pluralize(label);
10
9
  };
11
10
  //# sourceMappingURL=labels.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"labels.js","sourceRoot":"","sources":["../../../src/utils/labels.ts"],"names":[],"mappings":"AAAA,OAAO,SAAS,MAAM,sBAAsB,CAAC;AAE7C;;;;;GAKG;AACH,MAAM,CAAC,MAAM,aAAa,GAAG,CAAC,KAAa,EAAE,EAAE;IAC7C,OAAO,SAAS,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC;AACjC,CAAC,CAAC"}
1
+ {"version":3,"file":"labels.js","sourceRoot":"","sources":["../../../src/utils/labels.ts"],"names":[],"mappings":"AAAA,OAAO,SAAS,MAAM,iCAAiC,CAAC;AAExD;;;;GAIG;AACH,MAAM,CAAC,MAAM,aAAa,GAAG,CAAC,KAAa,EAAE,EAAE;IAC7C,OAAO,SAAS,CAAC,KAAK,CAAC,CAAC;AAC1B,CAAC,CAAC"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=labels.test.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"labels.test.d.ts","sourceRoot":"","sources":["../../../../src/utils/tests/labels.test.ts"],"names":[],"mappings":""}
@@ -0,0 +1,29 @@
1
+ // tests/labels.test.ts
2
+ import { labelToPlural } from '../labels';
3
+ describe('labelToPlural', () => {
4
+ it('should pluralize a singular noun', () => {
5
+ expect(labelToPlural('car')).toBe('cars');
6
+ });
7
+ it('should return the same word if it is already plural', () => {
8
+ expect(labelToPlural('cars')).toBe('cars');
9
+ });
10
+ it('should handle irregular plural forms', () => {
11
+ expect(labelToPlural('child')).toBe('children');
12
+ });
13
+ it('should handle uncountable nouns gracefully', () => {
14
+ expect(labelToPlural('rice')).toBe('rice');
15
+ });
16
+ it('should correctly handle empty strings', () => {
17
+ expect(labelToPlural('')).toBe('');
18
+ });
19
+ it('should pluralize nouns ending with "y" correctly', () => {
20
+ expect(labelToPlural('city')).toBe('cities');
21
+ });
22
+ it('should pluralize nouns ending with "s" correctly', () => {
23
+ expect(labelToPlural('bus')).toBe('buses');
24
+ });
25
+ it('should pluralize nouns ending with "s" correctly', () => {
26
+ expect(labelToPlural('Imaging Study')).toBe('Imaging Studies');
27
+ });
28
+ });
29
+ //# sourceMappingURL=labels.test.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"labels.test.js","sourceRoot":"","sources":["../../../../src/utils/tests/labels.test.ts"],"names":[],"mappings":"AAAA,uBAAuB;AAEvB,OAAO,EAAE,aAAa,EAAE,MAAM,WAAW,CAAC;AAE1C,QAAQ,CAAC,eAAe,EAAE,GAAG,EAAE;IAC7B,EAAE,CAAC,kCAAkC,EAAE,GAAG,EAAE;QAC1C,MAAM,CAAC,aAAa,CAAC,KAAK,CAAC,CAAC,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC;IAC5C,CAAC,CAAC,CAAC;IAEH,EAAE,CAAC,qDAAqD,EAAE,GAAG,EAAE;QAC7D,MAAM,CAAC,aAAa,CAAC,MAAM,CAAC,CAAC,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC;IAC7C,CAAC,CAAC,CAAC;IAEH,EAAE,CAAC,sCAAsC,EAAE,GAAG,EAAE;QAC9C,MAAM,CAAC,aAAa,CAAC,OAAO,CAAC,CAAC,CAAC,IAAI,CAAC,UAAU,CAAC,CAAC;IAClD,CAAC,CAAC,CAAC;IAEH,EAAE,CAAC,4CAA4C,EAAE,GAAG,EAAE;QACpD,MAAM,CAAC,aAAa,CAAC,MAAM,CAAC,CAAC,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC;IAC7C,CAAC,CAAC,CAAC;IAEH,EAAE,CAAC,uCAAuC,EAAE,GAAG,EAAE;QAC/C,MAAM,CAAC,aAAa,CAAC,EAAE,CAAC,CAAC,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC;IACrC,CAAC,CAAC,CAAC;IAEH,EAAE,CAAC,kDAAkD,EAAE,GAAG,EAAE;QAC1D,MAAM,CAAC,aAAa,CAAC,MAAM,CAAC,CAAC,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAC;IAC/C,CAAC,CAAC,CAAC;IAEH,EAAE,CAAC,kDAAkD,EAAE,GAAG,EAAE;QAC1D,MAAM,CAAC,aAAa,CAAC,KAAK,CAAC,CAAC,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;IAC7C,CAAC,CAAC,CAAC;IAEH,EAAE,CAAC,kDAAkD,EAAE,GAAG,EAAE;QAC1D,MAAM,CAAC,aAAa,CAAC,eAAe,CAAC,CAAC,CAAC,IAAI,CAAC,iBAAiB,CAAC,CAAC;IACjE,CAAC,CAAC,CAAC;AACL,CAAC,CAAC,CAAC"}
@@ -0,0 +1,24 @@
1
+ 'use strict';
2
+
3
+ var jsxRuntime = require('react/jsx-runtime');
4
+ var dynamic = require('next/dynamic');
5
+ require('react');
6
+ var core = require('@mantine/core');
7
+
8
+ // Wrapper function for displaying loading element before GqlQueryEditor renders
9
+ const GqlQueryEditor = dynamic(()=>Promise.resolve().then(function () { return require('./index-BL3Vrwc2.js'); }).then(function (n) { return n.GqlQueryEditor$1; }), {
10
+ loading: ()=>/*#__PURE__*/ jsxRuntime.jsx(core.LoadingOverlay, {
11
+ visible: true
12
+ }),
13
+ ssr: false
14
+ });
15
+ const QueryPanel = ({ graphQLEndpoint })=>{
16
+ // eslint-disable-next-line @typescript-eslint/ban-ts-comment
17
+ // @ts-ignore
18
+ return /*#__PURE__*/ jsxRuntime.jsx(GqlQueryEditor, {
19
+ graphQLEndpoint: graphQLEndpoint
20
+ });
21
+ };
22
+
23
+ exports.default = QueryPanel;
24
+ //# sourceMappingURL=QueryPanel-drXE9Jc1.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"QueryPanel-drXE9Jc1.js","sources":["../../../src/features/Query/QueryPanel.tsx"],"sourcesContent":["import dynamic from 'next/dynamic';\nimport React from 'react';\nimport { LoadingOverlay } from '@mantine/core';\n\n// Wrapper function for displaying loading element before GqlQueryEditor renders\nconst GqlQueryEditor = dynamic(() => import('./GqlQueryEditor'), {\n loading: () => <LoadingOverlay visible={true} />,\n ssr: false,\n});\n\ninterface QueryPanelProps {\n graphQLEndpoint?: string;\n title?: string;\n}\n\nconst QueryPanel = ({\n graphQLEndpoint,\n}: QueryPanelProps) => {\n // eslint-disable-next-line @typescript-eslint/ban-ts-comment\n // @ts-ignore\n return <GqlQueryEditor graphQLEndpoint={graphQLEndpoint} />;\n};\n\nexport default QueryPanel;\n"],"names":["GqlQueryEditor","dynamic","loading","_jsx","LoadingOverlay","visible","ssr","QueryPanel","graphQLEndpoint"],"mappings":";;;;;;;AAIA;AACA,MAAMA,cAAAA,GAAiBC,OAAAA,CAAQ,IAAM,oDAAO,qBAAA,uDAAA,EAAqB;AAC/DC,IAAAA,OAAAA,EAAS,kBAAMC,cAAA,CAACC,mBAAAA,EAAAA;YAAeC,OAAAA,EAAS;;IACxCC,GAAAA,EAAK;AACP,CAAA,CAAA;AAOA,MAAMC,UAAAA,GAAa,CAAC,EAClBC,eAAe,EACC,GAAA;;;AAGhB,IAAA,qBAAOL,cAAA,CAACH,cAAAA,EAAAA;QAAeQ,eAAAA,EAAiBA;;AAC1C;;;;"}