@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.
- package/dist/dts/components/Providers/Gen3Provider.d.ts +8 -8
- package/dist/dts/components/tailwindComponents.js +2 -2
- package/dist/dts/features/Analysis/AnalysisCardCompact.js +1 -1
- package/dist/dts/features/Analysis/AnalysisCardCompact.js.map +1 -1
- package/dist/dts/features/Analysis/AnalysisCardCompact.stories.d.ts +16 -16
- package/dist/dts/features/ClinicalDataAnalysis/CategoricalBinningModal.js +1 -1
- package/dist/dts/features/ClinicalDataAnalysis/CategoricalBinningModal.js.map +1 -1
- package/dist/dts/features/CohortBuilder/QueryExpression/QueryRepresentation.js +2 -2
- package/dist/dts/features/CohortBuilder/QueryExpression/QueryRepresentation.js.map +1 -1
- package/dist/dts/features/CohortDiscovery/CohortDiscovery.js +1 -1
- package/dist/dts/features/CohortDiscovery/CohortDiscovery.js.map +1 -1
- package/dist/dts/features/CohortSimilarity/cohortSimilarityApi.d.ts +8 -8
- package/dist/dts/features/Crosswalk/CrosswalkPanel.js +1 -1
- package/dist/dts/features/Crosswalk/CrosswalkPanel.js.map +1 -1
- package/dist/dts/features/Dictionary/PropertiesTable.js +1 -1
- package/dist/dts/features/Dictionary/PropertiesTable.js.map +1 -1
- package/dist/dts/features/Dictionary/metadata/MetadataPropertiesTable.js +1 -1
- package/dist/dts/features/Dictionary/metadata/MetadataPropertiesTable.js.map +1 -1
- package/dist/dts/features/Discovery/DiscoveryTable/DiscoveryTable.d.ts.map +1 -1
- package/dist/dts/features/Discovery/DiscoveryTable/DiscoveryTable.js +2 -2
- package/dist/dts/features/Discovery/DiscoveryTable/DiscoveryTable.js.map +1 -1
- package/dist/dts/features/Discovery/DiscoveryTable/TableRenderers/RowDetailPanelTags.js +1 -1
- package/dist/dts/features/Discovery/DiscoveryTable/TableRenderers/RowDetailPanelTags.js.map +1 -1
- package/dist/dts/features/Study/StudyDetails/RendererFactory.d.ts.map +1 -1
- package/dist/dts/features/Study/StudyDetails/RendererFactory.js +2 -1
- package/dist/dts/features/Study/StudyDetails/RendererFactory.js.map +1 -1
- package/dist/dts/features/Study/StudyDetails/StudyDetails.d.ts +1 -1
- package/dist/dts/features/Study/StudyDetails/StudyDetails.d.ts.map +1 -1
- package/dist/dts/features/Study/StudyDetails/StudyDetails.js +2 -5
- package/dist/dts/features/Study/StudyDetails/StudyDetails.js.map +1 -1
- package/dist/dts/features/Study/StudyDetails/StudyDetailsPanel.d.ts.map +1 -1
- package/dist/dts/features/Study/StudyDetails/StudyDetailsPanel.js +2 -1
- package/dist/dts/features/Study/StudyDetails/StudyDetailsPanel.js.map +1 -1
- package/dist/dts/features/Study/StudyDetails/StudyGroup.d.ts.map +1 -1
- package/dist/dts/features/Study/StudyDetails/StudyGroup.js +1 -1
- package/dist/dts/features/Study/StudyDetails/StudyGroup.js.map +1 -1
- package/dist/dts/features/Study/StudyDetails/StudyItems.d.ts +17 -0
- package/dist/dts/features/Study/StudyDetails/StudyItems.d.ts.map +1 -1
- package/dist/dts/features/Study/StudyDetails/StudyItems.js +32 -6
- package/dist/dts/features/Study/StudyDetails/StudyItems.js.map +1 -1
- package/dist/dts/features/Study/types.d.ts +3 -2
- package/dist/dts/features/Study/types.d.ts.map +1 -1
- package/dist/dts/features/Study/types.js.map +1 -1
- package/dist/dts/features/Theme/ColorTheme.js +47 -47
- package/dist/dts/features/Theme/ColorTheme.js.map +1 -1
- package/dist/dts/features/Workspace/StatusAndControls.js +2 -2
- package/dist/dts/features/Workspace/StatusAndControls.js.map +1 -1
- package/dist/dts/utils/labels.d.ts +1 -2
- package/dist/dts/utils/labels.d.ts.map +1 -1
- package/dist/dts/utils/labels.js +3 -4
- package/dist/dts/utils/labels.js.map +1 -1
- package/dist/dts/utils/tests/labels.test.d.ts +2 -0
- package/dist/dts/utils/tests/labels.test.d.ts.map +1 -0
- package/dist/dts/utils/tests/labels.test.js +29 -0
- package/dist/dts/utils/tests/labels.test.js.map +1 -0
- package/dist/index/cjs/QueryPanel-drXE9Jc1.js +24 -0
- package/dist/index/cjs/QueryPanel-drXE9Jc1.js.map +1 -0
- package/dist/index/cjs/index-BL3Vrwc2.js +36891 -0
- package/dist/index/cjs/index-BL3Vrwc2.js.map +1 -0
- package/dist/index/cjs/index.js +2 -2
- package/dist/index/esm/QueryPanel-DfTwy5_m.js +22 -0
- package/dist/index/esm/QueryPanel-DfTwy5_m.js.map +1 -0
- package/dist/index/esm/index-Di7EHbDk.js +36644 -0
- package/dist/index/esm/index-Di7EHbDk.js.map +1 -0
- package/dist/index/esm/index.js +2 -2
- package/dist/index.d.ts +9 -8
- package/dist/pages/cjs/CohortBuilder-DbvPeQJG.js +491 -0
- package/dist/pages/cjs/CohortBuilder-DbvPeQJG.js.map +1 -0
- package/dist/pages/cjs/index-CcjID1Qk.js +27945 -0
- package/dist/pages/cjs/index-CcjID1Qk.js.map +1 -0
- package/dist/pages/cjs/index.js +2 -2
- package/dist/pages/esm/CohortBuilder-sLIEgDf7.js +488 -0
- package/dist/pages/esm/CohortBuilder-sLIEgDf7.js.map +1 -0
- package/dist/pages/esm/index-BQ62DeS4.js +27862 -0
- package/dist/pages/esm/index-BQ62DeS4.js.map +1 -0
- package/dist/pages/esm/index.js +2 -2
- package/dist/pages.d.ts +1 -0
- 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
|
|
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"}
|
package/dist/dts/utils/labels.js
CHANGED
|
@@ -1,11 +1,10 @@
|
|
|
1
|
-
import
|
|
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
|
|
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,
|
|
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 @@
|
|
|
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;;;;"}
|