@gen3/frontend 0.10.74 → 0.10.75
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/cjs/index.js +36 -17
- package/dist/cjs/index.js.map +1 -1
- package/dist/dts/components/Buttons/DownloadButtons/JSONObjectDownloadButton.d.ts +1 -0
- package/dist/dts/components/Buttons/DownloadButtons/JSONObjectDownloadButton.d.ts.map +1 -1
- package/dist/dts/components/Buttons/DownloadButtons/JSONObjectDownloadButton.js +3 -3
- package/dist/dts/components/Buttons/DownloadButtons/JSONObjectDownloadButton.js.map +1 -1
- package/dist/dts/components/Buttons/UploadJSONButton.d.ts.map +1 -1
- package/dist/dts/components/Buttons/UploadJSONButton.js +1 -12
- package/dist/dts/components/Buttons/UploadJSONButton.js.map +1 -1
- package/dist/dts/components/Content/TextContent.d.ts +1 -2
- package/dist/dts/components/Content/TextContent.d.ts.map +1 -1
- package/dist/dts/components/Content/TextContent.js +5 -8
- package/dist/dts/components/Content/TextContent.js.map +1 -1
- package/dist/dts/components/CountButton/CountButton.d.ts +19 -0
- package/dist/dts/components/CountButton/CountButton.d.ts.map +1 -0
- package/dist/dts/components/CountButton/CountButton.js +18 -0
- package/dist/dts/components/CountButton/CountButton.js.map +1 -0
- package/dist/dts/components/DropdownWithIcon/DropdownWithIcon.d.ts +8 -12
- package/dist/dts/components/DropdownWithIcon/DropdownWithIcon.d.ts.map +1 -1
- package/dist/dts/components/DropdownWithIcon/DropdownWithIcon.js +17 -11
- package/dist/dts/components/DropdownWithIcon/DropdownWithIcon.js.map +1 -1
- package/dist/dts/components/DropdownWithIcon/DropdownWithIcon.unit.test.js +18 -4
- package/dist/dts/components/DropdownWithIcon/DropdownWithIcon.unit.test.js.map +1 -1
- package/dist/dts/components/ErrorMessage.d.ts +6 -0
- package/dist/dts/components/ErrorMessage.d.ts.map +1 -0
- package/dist/dts/components/ErrorMessage.js +8 -0
- package/dist/dts/components/ErrorMessage.js.map +1 -0
- package/dist/dts/components/Login/LoginProvidersPanel.d.ts.map +1 -1
- package/dist/dts/components/Login/LoginProvidersPanel.js +5 -8
- package/dist/dts/components/Login/LoginProvidersPanel.js.map +1 -1
- package/dist/dts/components/MessageCards/ErrorCard.js +1 -1
- package/dist/dts/components/MessageCards/ErrorCard.js.map +1 -1
- package/dist/dts/components/MessageCards/WarningCard.js +1 -1
- package/dist/dts/components/MessageCards/WarningCard.js.map +1 -1
- package/dist/dts/components/MessagePanel.d.ts.map +1 -1
- package/dist/dts/components/MessagePanel.js +1 -1
- package/dist/dts/components/MessagePanel.js.map +1 -1
- package/dist/dts/components/Providers/Gen3Provider.d.ts +3 -2
- package/dist/dts/components/Providers/Gen3Provider.d.ts.map +1 -1
- package/dist/dts/components/Providers/Gen3Provider.js +8 -4
- package/dist/dts/components/Providers/Gen3Provider.js.map +1 -1
- package/dist/dts/components/Providers/ResourceMonitor.d.ts +1 -1
- package/dist/dts/components/Providers/ResourceMonitor.d.ts.map +1 -1
- package/dist/dts/components/Providers/ResourceMonitor.js +48 -131
- package/dist/dts/components/Providers/ResourceMonitor.js.map +1 -1
- package/dist/dts/components/charts/echarts/BarChart.d.ts.map +1 -1
- package/dist/dts/components/charts/echarts/BarChart.js +28 -4
- package/dist/dts/components/charts/echarts/BarChart.js.map +1 -1
- package/dist/dts/components/facets/FacetControlsHeader.d.ts.map +1 -1
- package/dist/dts/components/facets/FacetControlsHeader.js +0 -1
- package/dist/dts/components/facets/FacetControlsHeader.js.map +1 -1
- package/dist/dts/features/CohortBuilder/CohortBuilder.d.ts +1 -0
- package/dist/dts/features/CohortBuilder/CohortBuilder.d.ts.map +1 -1
- package/dist/dts/features/CohortBuilder/CohortBuilder.js +13 -1
- package/dist/dts/features/CohortBuilder/CohortBuilder.js.map +1 -1
- package/dist/dts/features/CohortBuilder/CohortManager/CohortActions.d.ts +10 -0
- package/dist/dts/features/CohortBuilder/CohortManager/CohortActions.d.ts.map +1 -0
- package/dist/dts/features/CohortBuilder/CohortManager/CohortActions.js +53 -0
- package/dist/dts/features/CohortBuilder/CohortManager/CohortActions.js.map +1 -0
- package/dist/dts/features/CohortBuilder/CohortManager/CohortManager.d.ts +7 -0
- package/dist/dts/features/CohortBuilder/CohortManager/CohortManager.d.ts.map +1 -0
- package/dist/dts/features/CohortBuilder/CohortManager/CohortManager.js +38 -0
- package/dist/dts/features/CohortBuilder/CohortManager/CohortManager.js.map +1 -0
- package/dist/dts/features/CohortBuilder/CohortManager/CohortSelector.d.ts +13 -0
- package/dist/dts/features/CohortBuilder/CohortManager/CohortSelector.d.ts.map +1 -0
- package/dist/dts/features/CohortBuilder/CohortManager/CohortSelector.js +56 -0
- package/dist/dts/features/CohortBuilder/CohortManager/CohortSelector.js.map +1 -0
- package/dist/dts/features/CohortBuilder/CohortManager/cohortUtils.d.ts +4 -0
- package/dist/dts/features/CohortBuilder/CohortManager/cohortUtils.d.ts.map +1 -0
- package/dist/dts/features/CohortBuilder/CohortManager/cohortUtils.js +22 -0
- package/dist/dts/features/CohortBuilder/CohortManager/cohortUtils.js.map +1 -0
- package/dist/dts/features/CohortBuilder/CohortManager/modals/SaveCohortModal.d.ts +1 -0
- package/dist/dts/features/CohortBuilder/CohortManager/modals/SaveCohortModal.d.ts.map +1 -0
- package/dist/dts/features/CohortBuilder/CohortManager/modals/SaveCohortModal.js +320 -0
- package/dist/dts/features/CohortBuilder/CohortManager/modals/SaveCohortModal.js.map +1 -0
- package/dist/dts/features/CohortBuilder/CohortManager/modals/SaveModal.d.ts +1 -0
- package/dist/dts/features/CohortBuilder/CohortManager/modals/SaveModal.d.ts.map +1 -0
- package/dist/dts/features/CohortBuilder/CohortManager/modals/SaveModal.js +2 -0
- package/dist/dts/features/CohortBuilder/CohortManager/modals/SaveModal.js.map +1 -0
- package/dist/dts/features/CohortBuilder/CohortManager/modals/SaveOrCreateEntityModal.d.ts +29 -0
- package/dist/dts/features/CohortBuilder/CohortManager/modals/SaveOrCreateEntityModal.d.ts.map +1 -0
- package/dist/dts/features/CohortBuilder/CohortManager/modals/SaveOrCreateEntityModal.js +85 -0
- package/dist/dts/features/CohortBuilder/CohortManager/modals/SaveOrCreateEntityModal.js.map +1 -0
- package/dist/dts/features/CohortBuilder/CohortPanel.d.ts.map +1 -1
- package/dist/dts/features/CohortBuilder/CohortPanel.js +3 -2
- package/dist/dts/features/CohortBuilder/CohortPanel.js.map +1 -1
- package/dist/dts/features/CohortBuilder/QueryExpression/QueryExpression.d.ts +6 -0
- package/dist/dts/features/CohortBuilder/QueryExpression/QueryExpression.d.ts.map +1 -0
- package/dist/dts/features/CohortBuilder/QueryExpression/QueryExpression.js +55 -0
- package/dist/dts/features/CohortBuilder/QueryExpression/QueryExpression.js.map +1 -0
- package/dist/dts/features/CohortBuilder/QueryExpression/QueryExpressionContext.d.ts +13 -0
- package/dist/dts/features/CohortBuilder/QueryExpression/QueryExpressionContext.d.ts.map +1 -0
- package/dist/dts/features/CohortBuilder/QueryExpression/QueryExpressionContext.js +41 -0
- package/dist/dts/features/CohortBuilder/QueryExpression/QueryExpressionContext.js.map +1 -0
- package/dist/dts/features/CohortBuilder/{QueryExpressionSection.d.ts → QueryExpression/QueryExpressionSection.d.ts} +1 -4
- package/dist/dts/features/CohortBuilder/QueryExpression/QueryExpressionSection.d.ts.map +1 -0
- package/dist/dts/features/CohortBuilder/{QueryExpressionSection.js → QueryExpression/QueryExpressionSection.js} +36 -28
- package/dist/dts/features/CohortBuilder/QueryExpression/QueryExpressionSection.js.map +1 -0
- package/dist/dts/features/CohortBuilder/QueryExpression/QueryExpressionsExpandedContext.d.ts.map +1 -0
- package/dist/dts/features/CohortBuilder/QueryExpression/QueryExpressionsExpandedContext.js.map +1 -0
- package/dist/dts/features/CohortBuilder/{QueryRepresentation.d.ts → QueryExpression/QueryRepresentation.d.ts} +1 -1
- package/dist/dts/features/CohortBuilder/QueryExpression/QueryRepresentation.d.ts.map +1 -0
- package/dist/dts/features/CohortBuilder/{QueryRepresentation.js → QueryExpression/QueryRepresentation.js} +23 -30
- package/dist/dts/features/CohortBuilder/QueryExpression/QueryRepresentation.js.map +1 -0
- package/dist/dts/features/CohortBuilder/QueryExpression/QueryRepresentationLabel.d.ts.map +1 -0
- package/dist/dts/features/CohortBuilder/QueryExpression/QueryRepresentationLabel.js.map +1 -0
- package/dist/dts/features/CohortBuilder/cohortUtils.d.ts +4 -0
- package/dist/dts/features/CohortBuilder/cohortUtils.d.ts.map +1 -0
- package/dist/dts/features/CohortBuilder/cohortUtils.js +23 -0
- package/dist/dts/features/CohortBuilder/cohortUtils.js.map +1 -0
- package/dist/dts/features/CohortBuilder/hooks.d.ts +1 -0
- package/dist/dts/features/CohortBuilder/hooks.d.ts.map +1 -1
- package/dist/dts/features/CohortBuilder/hooks.js +52 -1
- package/dist/dts/features/CohortBuilder/hooks.js.map +1 -1
- package/dist/dts/features/CohortBuilder/style.d.ts +6 -0
- package/dist/dts/features/CohortBuilder/style.d.ts.map +1 -1
- package/dist/dts/features/CohortBuilder/style.js +11 -0
- package/dist/dts/features/CohortBuilder/style.js.map +1 -1
- package/dist/dts/features/CohortDiscovery/ChartsAndFacetsPanel.d.ts.map +1 -1
- package/dist/dts/features/CohortDiscovery/ChartsAndFacetsPanel.js +6 -4
- package/dist/dts/features/CohortDiscovery/ChartsAndFacetsPanel.js.map +1 -1
- package/dist/dts/features/CohortDiscovery/CohortManager.d.ts.map +1 -0
- package/dist/dts/features/CohortDiscovery/CohortManager.js +57 -0
- package/dist/dts/features/CohortDiscovery/CohortManager.js.map +1 -0
- package/dist/dts/features/CohortDiscovery/CohortSelectors.d.ts +23 -0
- package/dist/dts/features/CohortDiscovery/CohortSelectors.d.ts.map +1 -0
- package/dist/dts/features/CohortDiscovery/CohortSelectors.js +35 -0
- package/dist/dts/features/CohortDiscovery/CohortSelectors.js.map +1 -0
- package/dist/dts/features/CohortDiscovery/CohortSlice.d.ts +91 -0
- package/dist/dts/features/CohortDiscovery/CohortSlice.d.ts.map +1 -0
- package/dist/dts/features/CohortDiscovery/CohortSlice.js +93 -0
- package/dist/dts/features/CohortDiscovery/CohortSlice.js.map +1 -0
- package/dist/dts/features/CohortDiscovery/FilterPanels/createFacetPanel.d.ts.map +1 -1
- package/dist/dts/features/CohortDiscovery/IndexPanel.d.ts.map +1 -1
- package/dist/dts/features/CohortDiscovery/IndexPanel.js +5 -3
- package/dist/dts/features/CohortDiscovery/IndexPanel.js.map +1 -1
- package/dist/dts/features/CohortDiscovery/appApi.d.ts +2 -0
- package/dist/dts/features/CohortDiscovery/appApi.d.ts.map +1 -1
- package/dist/dts/features/CohortDiscovery/appApi.js +2 -0
- package/dist/dts/features/CohortDiscovery/appApi.js.map +1 -1
- package/dist/dts/features/CohortDiscovery/hooks.d.ts +10 -0
- package/dist/dts/features/CohortDiscovery/hooks.d.ts.map +1 -1
- package/dist/dts/features/CohortDiscovery/hooks.js +38 -1
- package/dist/dts/features/CohortDiscovery/hooks.js.map +1 -1
- package/dist/dts/features/CohortDiversity/diversityApi.d.ts +12 -12
- package/dist/dts/features/Crosswalk/CrosswalkPanel.d.ts +1 -1
- package/dist/dts/features/Crosswalk/CrosswalkPanel.d.ts.map +1 -1
- package/dist/dts/features/Crosswalk/CrosswalkPanel.js +11 -11
- package/dist/dts/features/Crosswalk/CrosswalkPanel.js.map +1 -1
- package/dist/dts/features/Crosswalk/types.d.ts +0 -1
- package/dist/dts/features/Crosswalk/types.d.ts.map +1 -1
- package/dist/dts/features/DataLibrary/QueryDetails.d.ts.map +1 -1
- package/dist/dts/features/DataLibrary/QueryDetails.js +2 -2
- package/dist/dts/features/DataLibrary/QueryDetails.js.map +1 -1
- package/dist/dts/features/Dictionary/Dictionary.d.ts.map +1 -1
- package/dist/dts/features/Dictionary/Dictionary.js +0 -1
- package/dist/dts/features/Dictionary/Dictionary.js.map +1 -1
- package/dist/dts/features/Dictionary/index.d.ts +1 -3
- package/dist/dts/features/Dictionary/index.d.ts.map +1 -1
- package/dist/dts/features/Dictionary/index.js +1 -3
- package/dist/dts/features/Dictionary/index.js.map +1 -1
- package/dist/dts/features/Navigation/TopBar.d.ts.map +1 -1
- package/dist/dts/features/Navigation/TopBar.js +3 -4
- package/dist/dts/features/Navigation/TopBar.js.map +1 -1
- package/dist/dts/features/Workspace/ExternalLogins/ExternalLoginsStatus.d.ts.map +1 -1
- package/dist/dts/features/Workspace/ExternalLogins/ExternalLoginsStatus.js +1 -1
- package/dist/dts/features/Workspace/ExternalLogins/ExternalLoginsStatus.js.map +1 -1
- package/dist/dts/features/Workspace/NotebookCard.d.ts.map +1 -1
- package/dist/dts/features/Workspace/NotebookCard.js +8 -30
- package/dist/dts/features/Workspace/NotebookCard.js.map +1 -1
- package/dist/dts/features/Workspace/PaymentPanel/PaymentPanel.d.ts.map +1 -1
- package/dist/dts/features/Workspace/PaymentPanel/PaymentPanel.js +4 -3
- package/dist/dts/features/Workspace/PaymentPanel/PaymentPanel.js.map +1 -1
- package/dist/dts/features/Workspace/StatusAndControls.d.ts.map +1 -1
- package/dist/dts/features/Workspace/StatusAndControls.js +4 -3
- package/dist/dts/features/Workspace/StatusAndControls.js.map +1 -1
- package/dist/dts/features/Workspace/Workspace.d.ts.map +1 -1
- package/dist/dts/features/Workspace/Workspace.js +1 -0
- package/dist/dts/features/Workspace/Workspace.js.map +1 -1
- package/dist/dts/features/Workspace/WorkspaceNotebookPanelWithControls.d.ts.map +1 -1
- package/dist/dts/features/Workspace/WorkspaceNotebookPanelWithControls.js +1 -4
- package/dist/dts/features/Workspace/WorkspaceNotebookPanelWithControls.js.map +1 -1
- package/dist/dts/features/Workspace/WorkspacePanel.d.ts.map +1 -1
- package/dist/dts/features/Workspace/WorkspacePanel.js +9 -10
- package/dist/dts/features/Workspace/WorkspacePanel.js.map +1 -1
- package/dist/dts/features/Workspace/WorkspaceProvider.d.ts.map +1 -1
- package/dist/dts/features/Workspace/WorkspaceProvider.js +0 -1
- package/dist/dts/features/Workspace/WorkspaceProvider.js.map +1 -1
- package/dist/dts/features/Workspace/WorkspaceStatusProvider.d.ts +1 -2
- package/dist/dts/features/Workspace/WorkspaceStatusProvider.d.ts.map +1 -1
- package/dist/dts/features/Workspace/WorkspaceStatusProvider.js +27 -56
- package/dist/dts/features/Workspace/WorkspaceStatusProvider.js.map +1 -1
- package/dist/dts/features/Workspace/types.d.ts +0 -10
- package/dist/dts/features/Workspace/types.d.ts.map +1 -1
- package/dist/dts/features/Workspace/types.js +1 -10
- package/dist/dts/features/Workspace/types.js.map +1 -1
- package/dist/dts/index.d.ts +2 -3
- package/dist/dts/index.d.ts.map +1 -1
- package/dist/dts/index.js +2 -3
- package/dist/dts/index.js.map +1 -1
- package/dist/dts/lib/session/session.d.ts.map +1 -1
- package/dist/dts/lib/session/session.js +7 -7
- package/dist/dts/lib/session/session.js.map +1 -1
- package/dist/dts/pages/Crosswalk/data.d.ts.map +1 -1
- package/dist/dts/pages/Crosswalk/data.js +11 -27
- package/dist/dts/pages/Crosswalk/data.js.map +1 -1
- package/dist/dts/pages/Theme/index.d.ts.map +1 -1
- package/dist/dts/utils/date.d.ts +6 -0
- package/dist/dts/utils/date.d.ts.map +1 -1
- package/dist/dts/utils/date.js +12 -0
- package/dist/dts/utils/date.js.map +1 -1
- package/dist/dts/utils/icons.d.ts +18 -0
- package/dist/dts/utils/icons.d.ts.map +1 -0
- package/dist/dts/utils/icons.js +18 -0
- package/dist/dts/utils/icons.js.map +1 -0
- package/dist/dts/utils/index.d.ts +0 -1
- package/dist/dts/utils/index.d.ts.map +1 -1
- package/dist/dts/utils/index.js +0 -1
- package/dist/dts/utils/index.js.map +1 -1
- package/dist/dts/utils/time.d.ts +0 -15
- package/dist/dts/utils/time.d.ts.map +1 -1
- package/dist/dts/utils/time.js +0 -105
- package/dist/dts/utils/time.js.map +1 -1
- package/dist/esm/index.js +36 -17
- package/dist/esm/index.js.map +1 -1
- package/dist/index.d.ts +15 -46
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +3 -3
- package/dist/dts/features/CohortBuilder/CohortManager.d.ts.map +0 -1
- package/dist/dts/features/CohortBuilder/CohortManager.js +0 -17
- package/dist/dts/features/CohortBuilder/CohortManager.js.map +0 -1
- package/dist/dts/features/CohortBuilder/CohortSelector.d.ts +0 -3
- package/dist/dts/features/CohortBuilder/CohortSelector.d.ts.map +0 -1
- package/dist/dts/features/CohortBuilder/CohortSelector.js +0 -18
- package/dist/dts/features/CohortBuilder/CohortSelector.js.map +0 -1
- package/dist/dts/features/CohortBuilder/QueryExpressionSection.d.ts.map +0 -1
- package/dist/dts/features/CohortBuilder/QueryExpressionSection.js.map +0 -1
- package/dist/dts/features/CohortBuilder/QueryExpressionsExpandedContext.d.ts.map +0 -1
- package/dist/dts/features/CohortBuilder/QueryExpressionsExpandedContext.js.map +0 -1
- package/dist/dts/features/CohortBuilder/QueryRepresentation.d.ts.map +0 -1
- package/dist/dts/features/CohortBuilder/QueryRepresentation.js.map +0 -1
- package/dist/dts/features/CohortBuilder/QueryRepresentationLabel.d.ts.map +0 -1
- package/dist/dts/features/CohortBuilder/QueryRepresentationLabel.js.map +0 -1
- package/dist/dts/features/Dictionary/metadata/MetadataDictionary.d.ts +0 -7
- package/dist/dts/features/Dictionary/metadata/MetadataDictionary.d.ts.map +0 -1
- package/dist/dts/features/Dictionary/metadata/MetadataDictionary.js +0 -39
- package/dist/dts/features/Dictionary/metadata/MetadataDictionary.js.map +0 -1
- package/dist/dts/features/Dictionary/metadata/MetadataPropertiesTable.d.ts +0 -9
- package/dist/dts/features/Dictionary/metadata/MetadataPropertiesTable.d.ts.map +0 -1
- package/dist/dts/features/Dictionary/metadata/MetadataPropertiesTable.js +0 -113
- package/dist/dts/features/Dictionary/metadata/MetadataPropertiesTable.js.map +0 -1
- package/dist/dts/features/Dictionary/metadata/registerApp.d.ts +0 -3
- package/dist/dts/features/Dictionary/metadata/registerApp.d.ts.map +0 -1
- package/dist/dts/features/Dictionary/metadata/registerApp.js +0 -13
- package/dist/dts/features/Dictionary/metadata/registerApp.js.map +0 -1
- package/dist/dts/features/Dictionary/metadata/types.d.ts +0 -17
- package/dist/dts/features/Dictionary/metadata/types.d.ts.map +0 -1
- package/dist/dts/features/Dictionary/metadata/types.js +0 -2
- package/dist/dts/features/Dictionary/metadata/types.js.map +0 -1
- /package/dist/dts/features/CohortBuilder/{QueryExpressionsExpandedContext.d.ts → QueryExpression/QueryExpressionsExpandedContext.d.ts} +0 -0
- /package/dist/dts/features/CohortBuilder/{QueryExpressionsExpandedContext.js → QueryExpression/QueryExpressionsExpandedContext.js} +0 -0
- /package/dist/dts/features/CohortBuilder/{QueryRepresentationLabel.d.ts → QueryExpression/QueryRepresentationLabel.d.ts} +0 -0
- /package/dist/dts/features/CohortBuilder/{QueryRepresentationLabel.js → QueryExpression/QueryRepresentationLabel.js} +0 -0
- /package/dist/dts/features/{CohortBuilder → CohortDiscovery}/CohortManager.d.ts +0 -0
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"JSONObjectDownloadButton.d.ts","sourceRoot":"","sources":["../../../../../src/components/Buttons/DownloadButtons/JSONObjectDownloadButton.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAmB,MAAM,OAAO,CAAC;AAIxC,UAAU,kBAAkB;IAC1B,OAAO,EAAE,MAAM,MAAM,CAAC;IACtB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,IAAI,CAAC,EAAE,MAAM,CAAC;
|
|
1
|
+
{"version":3,"file":"JSONObjectDownloadButton.d.ts","sourceRoot":"","sources":["../../../../../src/components/Buttons/DownloadButtons/JSONObjectDownloadButton.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAmB,MAAM,OAAO,CAAC;AAIxC,UAAU,kBAAkB;IAC1B,OAAO,EAAE,MAAM,MAAM,CAAC;IACtB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,QAAQ,CAAC,EAAE,OAAO,CAAC;CACpB;AAED,QAAA,MAAM,wBAAwB,EAAE,KAAK,CAAC,EAAE,CAAC,kBAAkB,CAoD1D,CAAC;AAEF,eAAe,wBAAwB,CAAC"}
|
|
@@ -39,8 +39,8 @@ import { useState } from 'react';
|
|
|
39
39
|
import { Button, Tooltip } from '@mantine/core';
|
|
40
40
|
import { Icon } from '@iconify/react';
|
|
41
41
|
var JSONObjectDownloadButton = function (_a) {
|
|
42
|
-
var getData = _a.getData, _b = _a.filename, filename = _b === void 0 ? 'data.json' : _b, _c = _a.icon, icon = _c === void 0 ? 'gen3:download' : _c, tooltip = _a.tooltip;
|
|
43
|
-
var
|
|
42
|
+
var getData = _a.getData, _b = _a.filename, filename = _b === void 0 ? 'data.json' : _b, _c = _a.icon, icon = _c === void 0 ? 'gen3:download' : _c, _d = _a.disabled, disabled = _d === void 0 ? false : _d, tooltip = _a.tooltip;
|
|
43
|
+
var _e = useState(false), isDownloading = _e[0], setIsDownloading = _e[1];
|
|
44
44
|
var saveToJSONFile = function () { return __awaiter(void 0, void 0, void 0, function () {
|
|
45
45
|
var data, blob, url, link;
|
|
46
46
|
return __generator(this, function (_a) {
|
|
@@ -69,7 +69,7 @@ var JSONObjectDownloadButton = function (_a) {
|
|
|
69
69
|
return [2 /*return*/];
|
|
70
70
|
});
|
|
71
71
|
}); };
|
|
72
|
-
return (_jsx(Tooltip, { label: tooltip, disabled: !tooltip, children: _jsx(Button, { variant: "
|
|
72
|
+
return (_jsx(Tooltip, { label: tooltip, disabled: !tooltip, children: _jsx(Button, { variant: "subtle", onClick: saveToJSONFile, disabled: isDownloading || disabled, loading: isDownloading, classNames: { root: 'bg-base-max w-[48px] h-[48px] p-0' }, children: _jsx(Icon, { icon: icon, width: "2rem", height: "2rem" }) }) }));
|
|
73
73
|
};
|
|
74
74
|
export default JSONObjectDownloadButton;
|
|
75
75
|
//# sourceMappingURL=JSONObjectDownloadButton.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"JSONObjectDownloadButton.js","sourceRoot":"","sources":["../../../../../src/components/Buttons/DownloadButtons/JSONObjectDownloadButton.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,OAAc,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AACxC,OAAO,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,eAAe,CAAC;AAChD,OAAO,EAAE,IAAI,EAAE,MAAM,gBAAgB,CAAC;
|
|
1
|
+
{"version":3,"file":"JSONObjectDownloadButton.js","sourceRoot":"","sources":["../../../../../src/components/Buttons/DownloadButtons/JSONObjectDownloadButton.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,OAAc,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AACxC,OAAO,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,eAAe,CAAC;AAChD,OAAO,EAAE,IAAI,EAAE,MAAM,gBAAgB,CAAC;AAWtC,IAAM,wBAAwB,GAAiC,UAAC,EAM/D;QALC,OAAO,aAAA,EACP,gBAAsB,EAAtB,QAAQ,mBAAG,WAAW,KAAA,EACtB,YAAsB,EAAtB,IAAI,mBAAG,eAAe,KAAA,EACtB,gBAAgB,EAAhB,QAAQ,mBAAG,KAAK,KAAA,EAChB,OAAO,aAAA;IAED,IAAA,KAAoC,QAAQ,CAAC,KAAK,CAAC,EAAlD,aAAa,QAAA,EAAE,gBAAgB,QAAmB,CAAC;IAE1D,IAAM,cAAc,GAAG;;;YACrB,gBAAgB,CAAC,IAAI,CAAC,CAAC;YAEvB,IAAI,CAAC;gBACG,IAAI,GAAG,OAAO,EAAE,CAAC;gBAEjB,IAAI,GAAG,IAAI,IAAI,CAAC,CAAC,IAAI,CAAC,SAAS,CAAC,IAAI,EAAE,IAAI,EAAE,CAAC,CAAC,CAAC,EAAE;oBACrD,IAAI,EAA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AAO,KAAmB,MAAM,OAAO,CAAC;AAIxC,UAAU,qBAAqB;IAC7B,gBAAgB,EAAE,CAAC,IAAI,EAAE,MAAM,KAAK,IAAI,CAAC;IACzC,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,OAAO,CAAC,EAAE,MAAM,CAAC;CAClB;AAED,QAAA,MAAM,gBAAgB,EAAE,KAAK,CAAC,EAAE,CAAC,qBAAqB,
|
|
1
|
+
{"version":3,"file":"UploadJSONButton.d.ts","sourceRoot":"","sources":["../../../../src/components/Buttons/UploadJSONButton.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAmB,MAAM,OAAO,CAAC;AAIxC,UAAU,qBAAqB;IAC7B,gBAAgB,EAAE,CAAC,IAAI,EAAE,MAAM,KAAK,IAAI,CAAC;IACzC,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,OAAO,CAAC,EAAE,MAAM,CAAC;CAClB;AAED,QAAA,MAAM,gBAAgB,EAAE,KAAK,CAAC,EAAE,CAAC,qBAAqB,CAkCrD,CAAC;AAEF,eAAe,gBAAgB,CAAC"}
|
|
@@ -1,14 +1,3 @@
|
|
|
1
|
-
var __assign = (this && this.__assign) || function () {
|
|
2
|
-
__assign = Object.assign || function(t) {
|
|
3
|
-
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
4
|
-
s = arguments[i];
|
|
5
|
-
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
6
|
-
t[p] = s[p];
|
|
7
|
-
}
|
|
8
|
-
return t;
|
|
9
|
-
};
|
|
10
|
-
return __assign.apply(this, arguments);
|
|
11
|
-
};
|
|
12
1
|
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
13
2
|
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
14
3
|
return new (P || (P = Promise))(function (resolve, reject) {
|
|
@@ -70,7 +59,7 @@ var UploadJSONButton = function (_a) {
|
|
|
70
59
|
case 2: return [2 /*return*/];
|
|
71
60
|
}
|
|
72
61
|
});
|
|
73
|
-
}); }, accept: "application/json", children: function (
|
|
62
|
+
}); }, accept: "application/json", children: function () { return (_jsx(Tooltip, { label: tooltip, disabled: !tooltip, children: _jsx(Button, { loading: processingFile, variant: "subtle", classNames: { root: 'bg-base-max w-[48px] h-[48px] p-0' }, children: _jsx(Icon, { icon: icon, width: "2rem", height: "2rem" }) }) })); } }));
|
|
74
63
|
};
|
|
75
64
|
export default UploadJSONButton;
|
|
76
65
|
//# sourceMappingURL=UploadJSONButton.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"UploadJSONButton.js","sourceRoot":"","sources":["../../../../src/components/Buttons/UploadJSONButton.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"UploadJSONButton.js","sourceRoot":"","sources":["../../../../src/components/Buttons/UploadJSONButton.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,OAAc,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AACxC,OAAO,EAAE,MAAM,EAAE,UAAU,EAAU,OAAO,EAAE,MAAM,eAAe,CAAC;AACpE,OAAO,EAAE,IAAI,EAAE,MAAM,gBAAgB,CAAC;AAQtC,IAAM,gBAAgB,GAAoC,UAAC,EAI1D;QAHC,gBAAgB,sBAAA,EAChB,OAAO,aAAA,EACP,YAAoB,EAApB,IAAI,mBAAG,aAAa,KAAA;IAEd,IAAA,KAAkB,QAAQ,CAAc,IAAI,CAAC,EAA5C,IAAI,QAAA,EAAE,OAAO,QAA+B,CAAC;IAC9C,IAAA,KAAsC,QAAQ,CAAC,KAAK,CAAC,EAApD,cAAc,QAAA,EAAE,iBAAiB,QAAmB,CAAC;IAE5D,OAAO,CACL,KAAC,UAAU,IACT,QAAQ,EAAE,UAAO,IAAI;;;;;6BACf,CAAA,IAAI,KAAK,IAAI,CAAA,EAAb,wBAAa;wBACf,iBAAiB,CAAC,IAAI,CAAC,CAAC;wBACxB,OAAO,CAAC,IAAI,CAAC,CAAC;wBACG,qBAAM,IAAI,CAAC,IAAI,EAAE,EAAA;;wBAA5B,QAAQ,GAAG,SAAiB;wBAClC,gBAAgB,CAAC,QAAQ,CAAC,CAAC;wBAC3B,iBAAiB,CAAC,KAAK,CAAC,CAAC;;;;;aAE5B,EACD,MAAM,EAAC,kBAAkB,YAExB,cAAM,OAAA,CACL,KAAC,OAAO,IAAC,KAAK,EAAE,OAAO,EAAE,QAAQ,EAAE,CAAC,OAAO,YACzC,KAAC,MAAM,IACL,OAAO,EAAE,cAAc,EACvB,OAAO,EAAC,QAAQ,EAChB,UAAU,EAAE,EAAE,IAAI,EAAE,mCAAmC,EAAE,YAEzD,KAAC,IAAI,IAAC,IAAI,EAAE,IAAI,EAAE,KAAK,EAAC,MAAM,EAAC,MAAM,EAAC,MAAM,GAAQ,GAC7C,GACD,CACX,EAVM,CAUN,GACU,CACd,CAAC;AACJ,CAAC,CAAC;AAEF,eAAe,gBAAgB,CAAC"}
|
|
@@ -13,8 +13,7 @@ export interface TextContentProps {
|
|
|
13
13
|
readonly type?: ContentType;
|
|
14
14
|
readonly email?: string;
|
|
15
15
|
readonly link?: string;
|
|
16
|
-
readonly linkText?: string;
|
|
17
16
|
}
|
|
18
|
-
declare const TextContent: ({ text, className, type, email, link,
|
|
17
|
+
declare const TextContent: ({ text, className, type, email, link, }: TextContentProps) => import("react/jsx-runtime").JSX.Element;
|
|
19
18
|
export default TextContent;
|
|
20
19
|
//# sourceMappingURL=TextContent.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TextContent.d.ts","sourceRoot":"","sources":["../../../../src/components/Content/TextContent.tsx"],"names":[],"mappings":"AAQA,oBAAY,WAAW;IACrB,IAAI,SAAS;IACb,SAAS,cAAc;IACvB,IAAI,SAAS;IACb,QAAQ,aAAa;IACrB,aAAa,kBAAkB;IAC/B,YAAY,iBAAiB;IAC7B,IAAI,SAAS;CACd;AAED,MAAM,WAAW,gBAAgB;IAC/B,QAAQ,CAAC,IAAI,EAAE,MAAM,GAAG,MAAM,EAAE,CAAC;IACjC,QAAQ,CAAC,SAAS,CAAC,EAAE,MAAM,CAAC;IAC5B,QAAQ,CAAC,IAAI,CAAC,EAAE,WAAW,CAAC;IAC5B,QAAQ,CAAC,KAAK,CAAC,EAAE,MAAM,CAAC;IACxB,QAAQ,CAAC,IAAI,CAAC,EAAE,MAAM,CAAC;
|
|
1
|
+
{"version":3,"file":"TextContent.d.ts","sourceRoot":"","sources":["../../../../src/components/Content/TextContent.tsx"],"names":[],"mappings":"AAQA,oBAAY,WAAW;IACrB,IAAI,SAAS;IACb,SAAS,cAAc;IACvB,IAAI,SAAS;IACb,QAAQ,aAAa;IACrB,aAAa,kBAAkB;IAC/B,YAAY,iBAAiB;IAC7B,IAAI,SAAS;CACd;AAED,MAAM,WAAW,gBAAgB;IAC/B,QAAQ,CAAC,IAAI,EAAE,MAAM,GAAG,MAAM,EAAE,CAAC;IACjC,QAAQ,CAAC,SAAS,CAAC,EAAE,MAAM,CAAC;IAC5B,QAAQ,CAAC,IAAI,CAAC,EAAE,WAAW,CAAC;IAC5B,QAAQ,CAAC,KAAK,CAAC,EAAE,MAAM,CAAC;IACxB,QAAQ,CAAC,IAAI,CAAC,EAAE,MAAM,CAAC;CACxB;AACD,QAAA,MAAM,WAAW,4CAMd,gBAAgB,4CA0GlB,CAAC;AAEF,eAAe,WAAW,CAAC"}
|
|
@@ -37,7 +37,7 @@ export var ContentType;
|
|
|
37
37
|
ContentType["Link"] = "link";
|
|
38
38
|
})(ContentType || (ContentType = {}));
|
|
39
39
|
var TextContent = function (_a) {
|
|
40
|
-
var text = _a.text, _b = _a.className, className = _b === void 0 ? 'inline text-base-contrast-
|
|
40
|
+
var text = _a.text, _b = _a.className, className = _b === void 0 ? 'inline text-base-contrast color-red-500 font-medium margin-block-start-1 margin-block-end-1' : _b, _c = _a.type, type = _c === void 0 ? ContentType.Text : _c, _d = _a.email, email = _d === void 0 ? undefined : _d, _e = _a.link, link = _e === void 0 ? undefined : _e;
|
|
41
41
|
switch (type) {
|
|
42
42
|
case ContentType.Html: {
|
|
43
43
|
var textString = Array.isArray(text) ? text.join('') : text;
|
|
@@ -70,7 +70,7 @@ var TextContent = function (_a) {
|
|
|
70
70
|
}, children: textString }) }));
|
|
71
71
|
}
|
|
72
72
|
case ContentType.TextWithEmail: {
|
|
73
|
-
var DEFAULT_STYLE = 'inline
|
|
73
|
+
var DEFAULT_STYLE = 'inline color-ink font-medium margin-block-start-1 margin-block-end-1';
|
|
74
74
|
var mergedClassname = className
|
|
75
75
|
? twMerge(DEFAULT_STYLE, className)
|
|
76
76
|
: DEFAULT_STYLE;
|
|
@@ -78,19 +78,16 @@ var TextContent = function (_a) {
|
|
|
78
78
|
return (_jsx("div", { className: mergedClassname, children: _jsxs("span", { children: [textString, email && (_jsx(Anchor, { classNames: { root: mergedClassname }, href: "mailto:".concat(email), children: " ".concat(email, ".") }))] }) }));
|
|
79
79
|
}
|
|
80
80
|
case ContentType.TextWithLink: {
|
|
81
|
-
var DEFAULT_STYLE = 'inline
|
|
81
|
+
var DEFAULT_STYLE = 'inline color-ink font-medium margin-block-start-1 margin-block-end-1';
|
|
82
82
|
var mergedClassname = className
|
|
83
83
|
? twMerge(DEFAULT_STYLE, className)
|
|
84
84
|
: DEFAULT_STYLE;
|
|
85
85
|
var textString = Array.isArray(text) ? text.join('') : text;
|
|
86
|
-
|
|
87
|
-
return _jsx("div", { className: mergedClassname, children: " Link is not defined." });
|
|
88
|
-
}
|
|
89
|
-
return (_jsx("div", { className: mergedClassname, children: _jsxs("span", { children: [textString, link && (_jsx(Anchor, { classNames: { root: mergedClassname }, href: link, children: " ".concat(linkText !== null && linkText !== void 0 ? linkText : link, ".") }))] }) }));
|
|
86
|
+
return (_jsx("div", { className: mergedClassname, children: _jsxs("span", { children: [textString, link && (_jsx(Anchor, { classNames: { root: mergedClassname }, href: link, children: " ".concat(email, ".") }))] }) }));
|
|
90
87
|
}
|
|
91
88
|
case ContentType.Text:
|
|
92
89
|
default:
|
|
93
|
-
return (_jsx("div", { className: className, children: _jsx("p", { children: text
|
|
90
|
+
return (_jsx("div", { className: className, children: _jsx("p", { children: text }) }));
|
|
94
91
|
}
|
|
95
92
|
};
|
|
96
93
|
export default TextContent;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TextContent.js","sourceRoot":"","sources":["../../../../src/components/Content/TextContent.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;AACA,OAAO,QAAQ,MAAM,gBAAgB,CAAC;AACtC,OAAO,SAAS,MAAM,YAAY,CAAC;AAEnC,OAAO,EAAE,QAAQ,EAAE,MAAM,kBAAkB,CAAC;AAC5C,OAAO,EAAE,OAAO,EAAE,MAAM,gBAAgB,CAAC;AACzC,OAAO,EAAE,MAAM,EAAE,MAAM,eAAe,CAAC;AAEvC,MAAM,CAAN,IAAY,WAQX;AARD,WAAY,WAAW;IACrB,4BAAa,CAAA;IACb,sCAAuB,CAAA;IACvB,4BAAa,CAAA;IACb,oCAAqB,CAAA;IACrB,8CAA+B,CAAA;IAC/B,4CAA6B,CAAA;IAC7B,4BAAa,CAAA;AACf,CAAC,EARW,WAAW,KAAX,WAAW,QAQtB;
|
|
1
|
+
{"version":3,"file":"TextContent.js","sourceRoot":"","sources":["../../../../src/components/Content/TextContent.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;AACA,OAAO,QAAQ,MAAM,gBAAgB,CAAC;AACtC,OAAO,SAAS,MAAM,YAAY,CAAC;AAEnC,OAAO,EAAE,QAAQ,EAAE,MAAM,kBAAkB,CAAC;AAC5C,OAAO,EAAE,OAAO,EAAE,MAAM,gBAAgB,CAAC;AACzC,OAAO,EAAE,MAAM,EAAE,MAAM,eAAe,CAAC;AAEvC,MAAM,CAAN,IAAY,WAQX;AARD,WAAY,WAAW;IACrB,4BAAa,CAAA;IACb,sCAAuB,CAAA;IACvB,4BAAa,CAAA;IACb,oCA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be disabled.
|
|
4
|
+
* If loading is true, the badge will be replaced with a loader.
|
|
5
|
+
* @param tooltipLabel - The label for the tooltip.
|
|
6
|
+
* @param disabled - Whether the button is disabled.
|
|
7
|
+
* @param handleOnClick - The function to call when the button is clicked.
|
|
8
|
+
* @param count - The count to display in the badge.
|
|
9
|
+
* @param loading - Whether to show the loading icon.
|
|
10
|
+
* @category Buttons
|
|
11
|
+
*/
|
|
12
|
+
export declare const CountButton: ({ tooltipLabel, disabled, handleOnClick, count, loading, }: {
|
|
13
|
+
tooltipLabel: string;
|
|
14
|
+
disabled: boolean;
|
|
15
|
+
handleOnClick: () => void;
|
|
16
|
+
count: number;
|
|
17
|
+
loading?: boolean;
|
|
18
|
+
}) => JSX.Element;
|
|
19
|
+
//# sourceMappingURL=CountButton.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"CountButton.d.ts","sourceRoot":"","sources":["../../../../src/components/CountButton/CountButton.tsx"],"names":[],"mappings":"AAGA;;;;;;;;;;GAUG;AACH,eAAO,MAAM,WAAW,+DAMrB;IACD,YAAY,EAAE,MAAM,CAAC;IACrB,QAAQ,EAAE,OAAO,CAAC;IAClB,aAAa,EAAE,MAAM,IAAI,CAAC;IAC1B,KAAK,EAAE,MAAM,CAAC;IACd,OAAO,CAAC,EAAE,OAAO,CAAC;CACnB,KAAG,GAAG,CAAC,OA0BP,CAAC"}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
+
import { Badge, Loader, Tooltip } from '@mantine/core';
|
|
3
|
+
/**
|
|
4
|
+
* A Button component that displays a count in a badge,
|
|
5
|
+
* has a tooltip, and can be disabled.
|
|
6
|
+
* If loading is true, the badge will be replaced with a loader.
|
|
7
|
+
* @param tooltipLabel - The label for the tooltip.
|
|
8
|
+
* @param disabled - Whether the button is disabled.
|
|
9
|
+
* @param handleOnClick - The function to call when the button is clicked.
|
|
10
|
+
* @param count - The count to display in the badge.
|
|
11
|
+
* @param loading - Whether to show the loading icon.
|
|
12
|
+
* @category Buttons
|
|
13
|
+
*/
|
|
14
|
+
export var CountButton = function (_a) {
|
|
15
|
+
var tooltipLabel = _a.tooltipLabel, disabled = _a.disabled, handleOnClick = _a.handleOnClick, count = _a.count, _b = _a.loading, loading = _b === void 0 ? false : _b;
|
|
16
|
+
return (_jsx(Tooltip, { label: tooltipLabel, withArrow: true, children: _jsx("span", { children: _jsx("button", { className: "w-fit", disabled: disabled, onClick: handleOnClick, "aria-label": tooltipLabel, children: _jsx(Badge, { variant: "outline", radius: "xs", className: "".concat(disabled ? 'bg-base-lighter' : 'bg-base-max', " w-20"), color: disabled ? 'base' : 'primary', children: loading ? (_jsx(Loader, { size: "xs" })) : count !== undefined ? (count.toLocaleString()) : undefined }) }) }) }));
|
|
17
|
+
};
|
|
18
|
+
//# sourceMappingURL=CountButton.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"CountButton.js","sourceRoot":"","sources":["../../../../src/components/CountButton/CountButton.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,KAAK,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,eAAe,CAAC;AAGvD;;;;;;;;;;GAUG;AACH,MAAM,CAAC,IAAM,WAAW,GAAG,UAAC,EAY3B;QAXC,YAAY,kBAAA,EACZ,QAAQ,cAAA,EACR,aAAa,mBAAA,EACb,KAAK,WAAA,EACL,eAAe,EAAf,OAAO,mBAAG,KAAK,KAAA;IAQf,OAAO,CACL,KAAC,OAAO,IAAC,KAAK,EAAE,YAAY,EAAE,SAAS,kBACrC,yBACE,iBACE,SAAS,EAAC,OAAO,EACjB,QAAQ,EAAE,QAAQ,EAClB,OAAO,EAAE,aAAa,gBACV,YAAY,YAExB,KAAC,KAAK,IACJ,OAAO,EAAC,SAAS,EACjB,MAAM,EAAC,IAAI,EACX,SAAS,EAAE,UAAG,QAAQ,CAAC,CAAC,CAAC,iBAAiB,CAAC,CAAC,CAAC,aAAa,UAAO,EACjE,KAAK,EAAE,QAAQ,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,SAAS,YAEnC,OAAO,CAAC,CAAC,CAAC,CACT,KAAC,MAAM,IAAC,IAAI,EAAC,IAAI,GAAG,CACrB,CAAC,CAAC,CAAC,KAAK,KAAK,SAAS,CAAC,CAAC,CAAC,CACxB,KAAK,CAAC,cAAc,EAAE,CACvB,CAAC,CAAC,CAAC,SAAS,GACP,GACD,GACJ,GACC,CACX,CAAC;AACJ,CAAC,CAAC"}
|
|
@@ -1,18 +1,18 @@
|
|
|
1
|
-
import { FloatingPosition } from '@mantine/core';
|
|
2
1
|
import { ReactNode } from 'react';
|
|
2
|
+
import { FloatingPosition } from '@mantine/core';
|
|
3
3
|
interface DropdownWithIconProps {
|
|
4
4
|
/**
|
|
5
5
|
* if true, doesn't set width to be "target"
|
|
6
6
|
*/
|
|
7
|
-
disableTargetWidth?:
|
|
7
|
+
disableTargetWidth?: boolean;
|
|
8
8
|
/**
|
|
9
|
-
* Left
|
|
9
|
+
* Left Section for the target button, can be undefined too
|
|
10
10
|
*/
|
|
11
|
-
|
|
11
|
+
LeftSection?: JSX.Element;
|
|
12
12
|
/**
|
|
13
|
-
* Right
|
|
13
|
+
* Right Section for the target button, can be undefined too (default to dropdown icon)
|
|
14
14
|
*/
|
|
15
|
-
|
|
15
|
+
RightSection?: JSX.Element;
|
|
16
16
|
/**
|
|
17
17
|
* Content for target button
|
|
18
18
|
*/
|
|
@@ -46,16 +46,12 @@ interface DropdownWithIconProps {
|
|
|
46
46
|
* whether the dropdown should fill the height of its parent
|
|
47
47
|
*/
|
|
48
48
|
fullHeight?: boolean;
|
|
49
|
-
/**
|
|
50
|
-
* custom z-index for Menu, defaults to undefined
|
|
51
|
-
*/
|
|
52
|
-
zIndex?: number;
|
|
53
49
|
/**
|
|
54
50
|
* custom test id
|
|
55
51
|
*/
|
|
56
52
|
customDataTestId?: string;
|
|
57
53
|
/**
|
|
58
|
-
|
|
54
|
+
tooltip
|
|
59
55
|
*/
|
|
60
56
|
tooltip?: string;
|
|
61
57
|
/**
|
|
@@ -63,6 +59,6 @@ interface DropdownWithIconProps {
|
|
|
63
59
|
*/
|
|
64
60
|
buttonAriaLabel?: string;
|
|
65
61
|
}
|
|
66
|
-
export declare const DropdownWithIcon: ({ disableTargetWidth,
|
|
62
|
+
export declare const DropdownWithIcon: ({ disableTargetWidth, LeftSection, RightSection, TargetButtonChildren, targetButtonDisabled, dropdownElements, menuLabelText, menuLabelCustomClass, customPosition, fullHeight, customDataTestId, tooltip, buttonAriaLabel, }: DropdownWithIconProps) => JSX.Element;
|
|
67
63
|
export {};
|
|
68
64
|
//# sourceMappingURL=DropdownWithIcon.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DropdownWithIcon.d.ts","sourceRoot":"","sources":["../../../../src/components/DropdownWithIcon/DropdownWithIcon.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"DropdownWithIcon.d.ts","sourceRoot":"","sources":["../../../../src/components/DropdownWithIcon/DropdownWithIcon.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAU,MAAM,OAAO,CAAC;AAC1C,OAAO,EAAyB,gBAAgB,EAAE,MAAM,eAAe,CAAC;AAIxE,UAAU,qBAAqB;IAC7B;;OAEG;IACH,kBAAkB,CAAC,EAAE,OAAO,CAAC;IAC7B;;OAEG;IACH,WAAW,CAAC,EAAE,GAAG,CAAC,OAAO,CAAC;IAC1B;;OAEG;IACH,YAAY,CAAC,EAAE,GAAG,CAAC,OAAO,CAAC;IAC3B;;OAEG;IACH,oBAAoB,EAAE,SAAS,CAAC;IAChC;;OAEG;IACH,oBAAoB,CAAC,EAAE,OAAO,CAAC;IAC/B;;OAEG;IACH,gBAAgB,EAAE,KAAK,CAAC;QACtB,KAAK,EAAE,MAAM,CAAC;QACd,OAAO,CAAC,EAAE,MAAM,IAAI,CAAC;QACrB,IAAI,CAAC,EAAE,GAAG,CAAC,OAAO,CAAC;QACnB,QAAQ,CAAC,EAAE,OAAO,CAAC;KACpB,CAAC,CAAC;IACH;;OAEG;IACH,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB;;OAEG;IACH,oBAAoB,CAAC,EAAE,MAAM,CAAC;IAC9B;;OAEG;IACH,cAAc,CAAC,EAAE,gBAAgB,CAAC;IAClC;;OAEG;IACH,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB;;OAEG;IACH,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAE1B;;OAEG;IACH,OAAO,CAAC,EAAE,MAAM,CAAC;IAEjB;;OAEG;IACH,eAAe,CAAC,EAAE,MAAM,CAAC;CAC1B;AAED,eAAO,MAAM,gBAAgB,kOAsB1B,qBAAqB,KAAG,GAAG,CAAC,OAyE9B,CAAC"}
|
|
@@ -9,22 +9,28 @@ var __assign = (this && this.__assign) || function () {
|
|
|
9
9
|
};
|
|
10
10
|
return __assign.apply(this, arguments);
|
|
11
11
|
};
|
|
12
|
-
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
13
|
-
import
|
|
14
|
-
import { Button, Menu } from '@mantine/core';
|
|
15
|
-
import { Tooltip } from '@mantine/core';
|
|
16
|
-
import { IoMdArrowDropdown as Dropdown } from 'react-icons/io';
|
|
12
|
+
import { jsx as _jsx, Fragment as _Fragment, jsxs as _jsxs } from "react/jsx-runtime";
|
|
13
|
+
import { useRef } from 'react';
|
|
14
|
+
import { Button, Menu, Tooltip } from '@mantine/core';
|
|
17
15
|
import { focusStyles } from '../../utils';
|
|
16
|
+
import { DropdownIcon } from '../../utils/icons';
|
|
18
17
|
export var DropdownWithIcon = function (_a) {
|
|
19
|
-
var disableTargetWidth = _a.disableTargetWidth,
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
root: fullHeight ? 'h-full' : undefined,
|
|
23
|
-
}, "aria-label": buttonAriaLabel, children: _jsx("div", { children: (tooltip === null || tooltip === void 0 ? void 0 : tooltip.length) && !targetButtonDisabled ? (_jsx("div", { children: _jsx(Tooltip, { label: tooltip, children: _jsx("div", { children: TargetButtonChildren }) }) })) : (_jsx("div", { children: TargetButtonChildren })) }) })) }), _jsxs(Menu.Dropdown, { "data-testid": "dropdown-menu-options", className: "border-1 border-secondary", children: [menuLabelText && (_jsxs(
|
|
18
|
+
var disableTargetWidth = _a.disableTargetWidth, LeftSection = _a.LeftSection, _b = _a.RightSection, RightSection = _b === void 0 ? (_jsx("div", { className: "border-l pl-1 -mr-2", children: _jsx(DropdownIcon, { size: "1.25em", "aria-hidden": "true", "data-testid": "dropdown-icon" }) })) : _b, TargetButtonChildren = _a.TargetButtonChildren, targetButtonDisabled = _a.targetButtonDisabled, dropdownElements = _a.dropdownElements, menuLabelText = _a.menuLabelText, menuLabelCustomClass = _a.menuLabelCustomClass, customPosition = _a.customPosition, fullHeight = _a.fullHeight, _c = _a.customDataTestId, customDataTestId = _c === void 0 ? undefined : _c, _d = _a.tooltip, tooltip = _d === void 0 ? undefined : _d, _e = _a.buttonAriaLabel, buttonAriaLabel = _e === void 0 ? undefined : _e;
|
|
19
|
+
var targetRef = useRef(null);
|
|
20
|
+
return (_jsxs(Menu, __assign({ width: !disableTargetWidth ? 'target' : null }, (customPosition && { position: customPosition }), { "data-testid": customDataTestId !== null && customDataTestId !== void 0 ? customDataTestId : 'menu-elem', children: [_jsx(Menu.Target, { children: _jsx(Button, __assign({ variant: "subtle", color: "primary", className: "bg-base-max border-primary border-0 data-disabled:opacity-50 data-disabled:bg-base-max data-disabled:text-primary ".concat(focusStyles) }, (LeftSection && { leftSection: LeftSection }), { rightSection: RightSection, disabled: targetButtonDisabled, classNames: {
|
|
21
|
+
root: "".concat(fullHeight ? 'h-full' : undefined),
|
|
22
|
+
}, ref: targetRef, "aria-label": buttonAriaLabel, children: _jsx("div", { children: (tooltip === null || tooltip === void 0 ? void 0 : tooltip.length) && !targetButtonDisabled ? (_jsx("div", { children: _jsx(Tooltip, { label: tooltip, children: _jsx("div", { children: TargetButtonChildren }) }) })) : (_jsx("div", { children: TargetButtonChildren })) }) })) }), _jsxs(Menu.Dropdown, { "data-testid": "dropdown-menu-options", className: "border-1 border-secondary", children: [menuLabelText && (_jsxs(_Fragment, { children: [_jsx(Menu.Label, { className: menuLabelCustomClass !== null && menuLabelCustomClass !== void 0 ? menuLabelCustomClass : 'font-bold', "data-testid": "menu-label", children: menuLabelText }), _jsx(Menu.Divider, {})] })), dropdownElements.map(function (_a, idx) {
|
|
24
23
|
var title = _a.title, onClick = _a.onClick, icon = _a.icon, disabled = _a.disabled;
|
|
25
24
|
return (_jsx(Menu.Item, { onClick: function () {
|
|
26
|
-
|
|
25
|
+
var _a;
|
|
26
|
+
if (onClick) {
|
|
27
27
|
onClick();
|
|
28
|
+
}
|
|
29
|
+
// This is done inorder to set the last focused element as the menu target element
|
|
30
|
+
// This is done to return focus to the target element if the modal is closed with ESC
|
|
31
|
+
if (targetRef === null || targetRef === void 0 ? void 0 : targetRef.current) {
|
|
32
|
+
(_a = targetRef === null || targetRef === void 0 ? void 0 : targetRef.current) === null || _a === void 0 ? void 0 : _a.focus();
|
|
33
|
+
}
|
|
28
34
|
}, "data-testid": "".concat(title, "-").concat(idx), leftSection: icon && icon, disabled: disabled, children: title }, "".concat(title, "-").concat(idx)));
|
|
29
35
|
})] })] })));
|
|
30
36
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DropdownWithIcon.js","sourceRoot":"","sources":["../../../../src/components/DropdownWithIcon/DropdownWithIcon.tsx"],"names":[],"mappings":";;;;;;;;;;;;AAAA,OAAO,
|
|
1
|
+
{"version":3,"file":"DropdownWithIcon.js","sourceRoot":"","sources":["../../../../src/components/DropdownWithIcon/DropdownWithIcon.tsx"],"names":[],"mappings":";;;;;;;;;;;;AAAA,OAAO,EAAa,MAAM,EAAE,MAAM,OAAO,CAAC;AAC1C,OAAO,EAAE,MAAM,EAAE,IAAI,EAAE,OAAO,EAAoB,MAAM,eAAe,CA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,CACb;oBAnBkE,CAmBlE,CAAC,IACY,KACX,CACR,CAAC;AACJ,CAAC,CAAC"}
|
|
@@ -36,6 +36,7 @@ var __generator = (this && this.__generator) || function (thisArg, body) {
|
|
|
36
36
|
};
|
|
37
37
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
38
38
|
import { render } from '@testing-library/react';
|
|
39
|
+
import { waitFor } from '@testing-library/react';
|
|
39
40
|
import { DropdownWithIcon } from './DropdownWithIcon';
|
|
40
41
|
import userEvent from '@testing-library/user-event';
|
|
41
42
|
describe('<DropdownWithIcon />', function () {
|
|
@@ -44,7 +45,7 @@ describe('<DropdownWithIcon />', function () {
|
|
|
44
45
|
expect(getByTestId('dropdown-icon')).toBeDefined();
|
|
45
46
|
});
|
|
46
47
|
it('if right icon is provided, provided icon should render', function () {
|
|
47
|
-
var getByLabelText = render(_jsx(DropdownWithIcon, { TargetButtonChildren: "test", dropdownElements: [{ title: 'test' }, { title: 'test2' }],
|
|
48
|
+
var getByLabelText = render(_jsx(DropdownWithIcon, { TargetButtonChildren: "test", dropdownElements: [{ title: 'test' }, { title: 'test2' }], RightSection: _jsx("div", { "aria-label": "test-icon", className: "border-l pl-1 -mr-2" }) })).getByLabelText;
|
|
48
49
|
expect(getByLabelText('test-icon')).toBeDefined();
|
|
49
50
|
});
|
|
50
51
|
it('target button should be disabled if targetButtonDisabled props is true', function () {
|
|
@@ -64,7 +65,11 @@ describe('<DropdownWithIcon />', function () {
|
|
|
64
65
|
return [4 /*yield*/, userEvent.click(getByTestId('menu-elem'))];
|
|
65
66
|
case 1:
|
|
66
67
|
_b.sent();
|
|
67
|
-
expect(getByTestId('menu-label')).toBeDefined();
|
|
68
|
+
return [4 /*yield*/, waitFor(function () { return expect(getByTestId('menu-label')).toBeDefined(); }, {
|
|
69
|
+
timeout: 2000,
|
|
70
|
+
})];
|
|
71
|
+
case 2:
|
|
72
|
+
_b.sent();
|
|
68
73
|
expect(getByText('test menu label text')).toBeInTheDocument();
|
|
69
74
|
return [2 /*return*/];
|
|
70
75
|
}
|
|
@@ -96,10 +101,15 @@ describe('<DropdownWithIcon />', function () {
|
|
|
96
101
|
] })).getByTestId;
|
|
97
102
|
return [4 /*yield*/, userEvent.click(getByTestId('menu-elem'))];
|
|
98
103
|
case 1:
|
|
104
|
+
_a.sent();
|
|
105
|
+
return [4 /*yield*/, waitFor(function () { return expect(getByTestId('test-0')).toBeInTheDocument(); }, {
|
|
106
|
+
timeout: 2000,
|
|
107
|
+
})];
|
|
108
|
+
case 2:
|
|
99
109
|
_a.sent();
|
|
100
110
|
firstMenuItem = getByTestId('test-0');
|
|
101
111
|
return [4 /*yield*/, userEvent.click(firstMenuItem)];
|
|
102
|
-
case
|
|
112
|
+
case 3:
|
|
103
113
|
_a.sent();
|
|
104
114
|
expect(mockOnClickCallBack1).toBeCalled();
|
|
105
115
|
return [2 /*return*/];
|
|
@@ -118,7 +128,11 @@ describe('<DropdownWithIcon />', function () {
|
|
|
118
128
|
return [4 /*yield*/, userEvent.click(getByTestId('menu-elem'))];
|
|
119
129
|
case 1:
|
|
120
130
|
_a.sent();
|
|
121
|
-
expect(getByTestId('itemD-0')).toBeDisabled();
|
|
131
|
+
return [4 /*yield*/, waitFor(function () { return expect(getByTestId('itemD-0')).toBeDisabled(); }, {
|
|
132
|
+
timeout: 2000,
|
|
133
|
+
})];
|
|
134
|
+
case 2:
|
|
135
|
+
_a.sent();
|
|
122
136
|
expect(getByTestId('itemE-1')).not.toBeDisabled();
|
|
123
137
|
return [2 /*return*/];
|
|
124
138
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DropdownWithIcon.unit.test.js","sourceRoot":"","sources":["../../../../src/components/DropdownWithIcon/DropdownWithIcon.unit.test.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,wBAAwB,CAAC;AAChD,OAAO,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAC;AACtD,OAAO,SAAS,MAAM,6BAA6B,CAAC;AAEpD,QAAQ,CAAC,sBAAsB,EAAE;IAC/B,EAAE,CAAC,kEAAkE,EAAE;QAC7D,IAAA,WAAW,GAAK,MAAM,CAC5B,KAAC,gBAAgB,IACf,oBAAoB,EAAC,MAAM,EAC3B,gBAAgB,EAAE,CAAC,EAAE,KAAK,EAAE,MAAM,EAAE,EAAE,EAAE,KAAK,EAAE,OAAO,EAAE,CAAC,GACzD,CACH,YALkB,CAKjB;QAEF,MAAM,CAAC,WAAW,CAAC,eAAe,CAAC,CAAC,CAAC,WAAW,EAAE,CAAC;IACrD,CAAC,CAAC,CAAC;IAEH,EAAE,CAAC,wDAAwD,EAAE;QACnD,IAAA,cAAc,GAAK,MAAM,CAC/B,KAAC,gBAAgB,IACf,oBAAoB,EAAC,MAAM,EAC3B,gBAAgB,EAAE,CAAC,EAAE,KAAK,EAAE,MAAM,EAAE,EAAE,EAAE,KAAK,EAAE,OAAO,EAAE,CAAC,EACzD,
|
|
1
|
+
{"version":3,"file":"DropdownWithIcon.unit.test.js","sourceRoot":"","sources":["../../../../src/components/DropdownWithIcon/DropdownWithIcon.unit.test.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,wBAAwB,CAAC;AAChD,OAAO,EAAE,OAAO,EAAE,MAAM,wBAAwB,CAAC;AACjD,OAAO,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAC;AACtD,OAAO,SAAS,MAAM,6BAA6B,CAAC;AAEpD,QAAQ,CAAC,sBAAsB,EAAE;IAC/B,EAAE,CAAC,kEAAkE,EAAE;QAC7D,IAAA,WAAW,GAAK,MAAM,CAC5B,KAAC,gBAAgB,IACf,oBAAoB,EAAC,MAAM,EAC3B,gBAAgB,EAAE,CAAC,EAAE,KAAK,EAAE,MAAM,EAAE,EAAE,EAAE,KAAK,EAAE,OAAO,EAAE,CAAC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,SAAS,CAAC,CAAC,CAAC,GAAG,CAAC,YAAY,EAAE,CAAC;;;;SACnD,CAAC,CAAC;AACL,CAAC,CAAC,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ErrorMessage.d.ts","sourceRoot":"","sources":["../../../src/components/ErrorMessage.tsx"],"names":[],"mappings":"AAEA,UAAU,iBAAiB;IACzB,QAAQ,CAAC,OAAO,EAAE,MAAM,CAAC;CAC1B;AAED,QAAA,MAAM,YAAY,EAAE,KAAK,CAAC,EAAE,CAAC,iBAAiB,CAO7C,CAAC;AAEF,eAAe,YAAY,CAAC"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
+
import { WarningIconMessage } from '../utils/icons';
|
|
3
|
+
var ErrorMessage = function (_a) {
|
|
4
|
+
var message = _a.message;
|
|
5
|
+
return (_jsxs("span", { className: "flex items-center mt-2 text-utility-error", children: [_jsx(WarningIconMessage, { className: "mr-1", size: "1rem" }), message] }));
|
|
6
|
+
};
|
|
7
|
+
export default ErrorMessage;
|
|
8
|
+
//# sourceMappingURL=ErrorMessage.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ErrorMessage.js","sourceRoot":"","sources":["../../../src/components/ErrorMessage.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,kBAAkB,EAAE,MAAM,gBAAgB,CAAC;AAMpD,IAAM,YAAY,GAAgC,UAAC,EAE/B;QADlB,OAAO,aAAA;IACgB,OAAA,CACvB,gBAAM,SAAS,EAAC,2CAA2C,aACzD,KAAC,kBAAkB,IAAC,SAAS,EAAC,MAAM,EAAC,IAAI,EAAC,MAAM,GAAG,EAClD,OAAO,IACH,CACR;AALwB,CAKxB,CAAC;AAEF,eAAe,YAAY,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"LoginProvidersPanel.d.ts","sourceRoot":"","sources":["../../../../src/components/Login/LoginProvidersPanel.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"LoginProvidersPanel.d.ts","sourceRoot":"","sources":["../../../../src/components/Login/LoginProvidersPanel.tsx"],"names":[],"mappings":"AAOA,OAAO,EAAE,kBAAkB,EAAE,MAAM,SAAS,CAAC;AAyD7C,QAAA,MAAM,mBAAmB,4BAA6B,kBAAkB,4CA4CvE,CAAC;AAEF,eAAe,mBAAmB,CAAC"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
2
|
import { useState } from 'react';
|
|
3
|
-
import { Box, Button,
|
|
3
|
+
import { Box, Button, LoadingOverlay, Select, Stack } from '@mantine/core';
|
|
4
4
|
import { useGetLoginProvidersQuery, } from '@gen3/core';
|
|
5
5
|
import { ErrorCard } from '../MessageCards';
|
|
6
6
|
var LoginProviderMultipleItems = function (_a) {
|
|
@@ -20,17 +20,14 @@ var LoginProviderSingleItem = function (_a) {
|
|
|
20
20
|
};
|
|
21
21
|
var LoginProvidersPanel = function (_a) {
|
|
22
22
|
var handleLoginSelected = _a.handleLoginSelected;
|
|
23
|
-
var _b = useGetLoginProvidersQuery(), data = _b.data, isSuccess = _b.isSuccess, isError = _b.isError
|
|
23
|
+
var _b = useGetLoginProvidersQuery(), data = _b.data, isSuccess = _b.isSuccess, isError = _b.isError;
|
|
24
24
|
if (isError) {
|
|
25
|
-
return
|
|
25
|
+
return _jsx(ErrorCard, { message: 'request to authentication service failed' });
|
|
26
26
|
}
|
|
27
|
-
if (
|
|
27
|
+
if (!isSuccess) {
|
|
28
28
|
return _jsx(LoadingOverlay, { visible: !isSuccess });
|
|
29
29
|
}
|
|
30
|
-
|
|
31
|
-
return (_jsx(Center, { children: _jsx(ErrorCard, { message: 'no logins defined' }) }));
|
|
32
|
-
}
|
|
33
|
-
return (_jsx(Box, { className: "flex flex-col items-center justify-center", children: _jsxs(Stack, { align: "center", className: "w-1/3", children: [data && data.default_provider.urls.length > 1 ? (_jsx(LoginProviderMultipleItems, { provider: data.default_provider, handleLoginSelected: handleLoginSelected })) : (data && (_jsx(LoginProviderSingleItem, { provider: data.default_provider, handleLoginSelected: handleLoginSelected }))), data === null || data === void 0 ? void 0 : data.providers.filter(function (x) { return x.name !== data.default_provider.name; }).map(function (x) {
|
|
30
|
+
return (_jsx(Box, { className: "flex flex-col items-center justify-center", children: _jsxs(Stack, { align: "center", className: "w-1/3", children: [data.default_provider.urls.length > 1 ? (_jsx(LoginProviderMultipleItems, { provider: data.default_provider, handleLoginSelected: handleLoginSelected })) : (_jsx(LoginProviderSingleItem, { provider: data.default_provider, handleLoginSelected: handleLoginSelected })), data === null || data === void 0 ? void 0 : data.providers.filter(function (x) { return x.name !== data.default_provider.name; }).map(function (x) {
|
|
34
31
|
return x.urls.length > 1 ? (_jsx(LoginProviderMultipleItems, { provider: x, handleLoginSelected: handleLoginSelected }, x.name)) : (_jsx(LoginProviderSingleItem, { provider: x, handleLoginSelected: handleLoginSelected }, x.name));
|
|
35
32
|
})] }) }));
|
|
36
33
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"LoginProvidersPanel.js","sourceRoot":"","sources":["../../../../src/components/Login/LoginProvidersPanel.tsx"],"names":[],"mappings":";AAAA,OAAc,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AACxC,OAAO,
|
|
1
|
+
{"version":3,"file":"LoginProvidersPanel.js","sourceRoot":"","sources":["../../../../src/components/Login/LoginProvidersPanel.tsx"],"names":[],"mappings":";AAAA,OAAc,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AACxC,OAAO,EAAE,GAAG,EAAE,MAAM,EAAE,cAAc,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,eAAe,CAAC;AAC3E,OAAO,EAGL,yBAAyB,GAC1B,MAAM,YAAY,CAAC;AAEpB,OAAO,EAAE,SAAS,EAAE,MAAM,iBAAiB,CAAC;AAM5C,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mB,EAAE,mBAAmB,IAFnC,CAAC,CAAC,IAAI,CAGX,CACH;gBAZD,CAYC,CACF,IACG,GACJ,CACP,CAAC;AACJ,CAAC,CAAC;AAEF,eAAe,mBAAmB,CAAC"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
-
import {
|
|
2
|
+
import { IconAlertTriangle } from '@tabler/icons-react';
|
|
3
3
|
import MessageCard from './MessageCard';
|
|
4
4
|
var ErrorCard = function (_a) {
|
|
5
5
|
var message = _a.message;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ErrorCard.js","sourceRoot":"","sources":["../../../../src/components/MessageCards/ErrorCard.tsx"],"names":[],"mappings":";AACA,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"ErrorCard.js","sourceRoot":"","sources":["../../../../src/components/MessageCards/ErrorCard.tsx"],"names":[],"mappings":";AACA,OAAO,EAAE,iBAAiB,EAAE,MAAM,qBAAqB,CAAC;AACxD,OAAO,WAAsC,MAAM,eAAe,CAAC;AAEnE,IAAM,SAAS,GAA8C,UAAC,EAE3C;QADjB,OAAO,aAAA;IAC6B,OAAA,CACpC,KAAC,WAAW,IACV,OAAO,EAAE,OAAO,EAChB,IAAI,EAAE,KAAC,iBAAiB,IAAC,IAAI,EAAE,EAAE,GAAI,EACrC,KAAK,EAAC,WAAW,GACjB,CACH;AANqC,CAMrC,CAAC;AAEF,eAAe,SAAS,CAAC"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
-
import {
|
|
2
|
+
import { IconAlertTriangle } from '@tabler/icons-react';
|
|
3
3
|
import MessageCard from './MessageCard';
|
|
4
4
|
var WarningCard = function (_a) {
|
|
5
5
|
var message = _a.message;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"WarningCard.js","sourceRoot":"","sources":["../../../../src/components/MessageCards/WarningCard.tsx"],"names":[],"mappings":";AACA,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"WarningCard.js","sourceRoot":"","sources":["../../../../src/components/MessageCards/WarningCard.tsx"],"names":[],"mappings":";AACA,OAAO,EAAE,iBAAiB,EAAE,MAAM,qBAAqB,CAAC;AACxD,OAAO,WAAsC,MAAM,eAAe,CAAC;AAEnE,IAAM,WAAW,GAA8C,UAAC,EAE7C;QADjB,OAAO,aAAA;IAC6B,OAAA,CACpC,KAAC,WAAW,IACV,OAAO,EAAE,OAAO,EAChB,IAAI,EAAE,KAAC,iBAAiB,IAAC,IAAI,EAAE,EAAE,GAAI,EACrC,KAAK,EAAC,WAAW,GACjB,CACH;AANqC,CAMrC,CAAC;AAEF,eAAe,WAAW,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"MessagePanel.d.ts","sourceRoot":"","sources":["../../../src/components/MessagePanel.tsx"],"names":[],"mappings":"AAGA,UAAU,OAAO;IACf,OAAO,EAAE,MAAM,CAAC;IAChB,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,OAAO,CAAC,EAAE,OAAO,CAAC;CACnB;AAED,QAAA,MAAM,YAAY,yBAAkC,OAAO,4CAgB1D,CAAC;
|
|
1
|
+
{"version":3,"file":"MessagePanel.d.ts","sourceRoot":"","sources":["../../../src/components/MessagePanel.tsx"],"names":[],"mappings":"AAGA,UAAU,OAAO;IACf,OAAO,EAAE,MAAM,CAAC;IAChB,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,OAAO,CAAC,EAAE,OAAO,CAAC;CACnB;AAED,QAAA,MAAM,YAAY,yBAAkC,OAAO,4CAgB1D,CAAC;AAEF,eAAe,YAAY,CAAC"}
|
|
@@ -2,7 +2,7 @@ import { jsx as _jsx } from "react/jsx-runtime";
|
|
|
2
2
|
import { Paper, Text } from '@mantine/core';
|
|
3
3
|
var MessagePanel = function (_a) {
|
|
4
4
|
var message = _a.message, _b = _a.isError, isError = _b === void 0 ? false : _b;
|
|
5
|
-
return (_jsx("div", { className: "relative w-full flex flex-col", children: _jsx(Paper, { shadow: "md", radius: "lg", p: "md", children: _jsx("div", { className: "w-1/2 mx-auto text-center mt-4 bg-base-lightest hover:bg-base-lighter p-4 border-bg-base-light border-r-8", children: _jsx(Text, { size: "lg", fw: "bold", color: isError ? '
|
|
5
|
+
return (_jsx("div", { className: "relative w-full flex flex-col", children: _jsx(Paper, { shadow: "md", radius: "lg", p: "md", children: _jsx("div", { className: "w-1/2 mx-auto text-center mt-4 bg-base-lightest hover:bg-base-lighter p-4 border-bg-base-light border-r-8", children: _jsx(Text, { size: "lg", fw: "bold", color: isError ? 'utility.3' : 'primary-contrast', children: message }) }) }) }));
|
|
6
6
|
};
|
|
7
7
|
export default MessagePanel;
|
|
8
8
|
//# sourceMappingURL=MessagePanel.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"MessagePanel.js","sourceRoot":"","sources":["../../../src/components/MessagePanel.tsx"],"names":[],"mappings":";AACA,OAAO,EAAE,KAAK,EAAE,IAAI,EAAE,MAAM,eAAe,CAAC;AAQ5C,IAAM,YAAY,GAAG,UAAC,EAAqC;QAAnC,OAAO,aAAA,EAAE,eAAe,EAAf,OAAO,mBAAG,KAAK,KAAA;IAC9C,OAAO,CACL,cAAK,SAAS,EAAC,+BAA+B,YAC5C,KAAC,KAAK,IAAC,MAAM,EAAC,IAAI,EAAC,MAAM,EAAC,IAAI,EAAC,CAAC,EAAC,IAAI,YACnC,cAAK,SAAS,EAAC,2GAA2G,YACxH,KAAC,IAAI,IACH,IAAI,EAAC,IAAI,EACT,EAAE,EAAC,MAAM,EACT,KAAK,EAAE,OAAO,CAAC,CAAC,CAAC,
|
|
1
|
+
{"version":3,"file":"MessagePanel.js","sourceRoot":"","sources":["../../../src/components/MessagePanel.tsx"],"names":[],"mappings":";AACA,OAAO,EAAE,KAAK,EAAE,IAAI,EAAE,MAAM,eAAe,CAAC;AAQ5C,IAAM,YAAY,GAAG,UAAC,EAAqC;QAAnC,OAAO,aAAA,EAAE,eAAe,EAAf,OAAO,mBAAG,KAAK,KAAA;IAC9C,OAAO,CACL,cAAK,SAAS,EAAC,+BAA+B,YAC5C,KAAC,KAAK,IAAC,MAAM,EAAC,IAAI,EAAC,MAAM,EAAC,IAAI,EAAC,CAAC,EAAC,IAAI,YACnC,cAAK,SAAS,EAAC,2GAA2G,YACxH,KAAC,IAAI,IACH,IAAI,EAAC,IAAI,EACT,EAAE,EAAC,MAAM,EACT,KAAK,EAAE,OAAO,CAAC,CAAC,CAAC,WAAW,CAAC,CAAC,CAAC,kBAAkB,YAEhD,OAAO,GACH,GACH,GACA,GACJ,CACP,CAAC;AACJ,CAAC,CAAC;AAEF,eAAe,YAAY,CAAC"}
|
|
@@ -4,17 +4,18 @@ import { type RegisteredIcons, type Fonts } from '../../lib/content/types';
|
|
|
4
4
|
import { SessionConfiguration } from '../../lib/session/types';
|
|
5
5
|
import { type ModalsConfig } from '../Modals';
|
|
6
6
|
interface Gen3ProviderProps {
|
|
7
|
+
colors: Record<string, TenStringArray>;
|
|
7
8
|
icons: Array<RegisteredIcons>;
|
|
9
|
+
fonts: Fonts;
|
|
8
10
|
sessionConfig: SessionConfiguration;
|
|
9
11
|
modalsConfig: ModalsConfig;
|
|
10
12
|
children?: ReactNode | undefined;
|
|
11
13
|
}
|
|
12
|
-
export declare const createMantineTheme: (fonts: Fonts, colors: Record<string, TenStringArray>) => import("type-fest/source/partial-deep").PartialObjectDeep<import("@mantine/core").MantineTheme, {}>;
|
|
13
14
|
/**
|
|
14
15
|
* Gen3Provider wraps around the entire app and provides general configurations
|
|
15
16
|
* for the whole website like color scheme, icons, fonts, and sessionConfigs like
|
|
16
17
|
* inactivity limits for session timeouts.
|
|
17
18
|
*/
|
|
18
|
-
declare const Gen3Provider: ({ icons, sessionConfig, modalsConfig, children, }: Gen3ProviderProps) => import("react/jsx-runtime").JSX.Element;
|
|
19
|
+
declare const Gen3Provider: ({ colors, icons, fonts, sessionConfig, modalsConfig, children, }: Gen3ProviderProps) => import("react/jsx-runtime").JSX.Element;
|
|
19
20
|
export default Gen3Provider;
|
|
20
21
|
//# sourceMappingURL=Gen3Provider.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Gen3Provider.d.ts","sourceRoot":"","sources":["../../../../src/components/Providers/Gen3Provider.tsx"],"names":[],"mappings":"AAAA,OAAc,EAAa,SAAS,EAAE,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"Gen3Provider.d.ts","sourceRoot":"","sources":["../../../../src/components/Providers/Gen3Provider.tsx"],"names":[],"mappings":"AAAA,OAAc,EAAa,SAAS,EAAE,MAAM,OAAO,CAAC;AAQpD,OAAO,EAAE,cAAc,EAAE,MAAM,aAAa,CAAC;AAE7C,OAAO,EAAE,KAAK,eAAe,EAAE,KAAK,KAAK,EAAE,MAAM,yBAAyB,CAAC;AAI3E,OAAO,EAAE,oBAAoB,EAAE,MAAM,yBAAyB,CAAC;AAC/D,OAAO,EAAsB,KAAK,YAAY,EAAE,MAAM,WAAW,CAAC;AAElE,UAAU,iBAAiB;IACzB,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE,cAAc,CAAC,CAAC;IACvC,KAAK,EAAE,KAAK,CAAC,eAAe,CAAC,CAAC;IAC9B,KAAK,EAAE,KAAK,CAAC;IACb,aAAa,EAAE,oBAAoB,CAAC;IACpC,YAAY,EAAE,YAAY,CAAC;IAC3B,QAAQ,CAAC,EAAE,SAAS,GAAG,SAAS,CAAC;CAClC;AA2DD;;;;GAIG;AACH,QAAA,MAAM,YAAY,qEAOf,iBAAiB,4CAqBnB,CAAC;AAEF,eAAe,YAAY,CAAC"}
|