synapse-react-client 4.0.40 → 4.0.42
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/SWC.index.d.ts +1 -0
- package/dist/SWC.index.d.ts.map +1 -1
- package/dist/SWC.index.js +2 -1
- package/dist/SWC.index.js.map +1 -1
- package/dist/components/AccessRequirement/ImposeRestrictionDialog/ImposeRestrictionDialog.d.ts +1 -0
- package/dist/components/AccessRequirement/ImposeRestrictionDialog/ImposeRestrictionDialog.d.ts.map +1 -1
- package/dist/components/AccessRequirement/ImposeRestrictionDialog/ImposeRestrictionDialog.js +12 -12
- package/dist/components/AccessRequirement/ImposeRestrictionDialog/ImposeRestrictionDialog.js.map +1 -1
- package/dist/components/AccessRequirementList/ManagedACTAccessRequirementRequestFlow/AccessorRequirementHelpText.d.ts +7 -0
- package/dist/components/AccessRequirementList/ManagedACTAccessRequirementRequestFlow/AccessorRequirementHelpText.d.ts.map +1 -0
- package/dist/components/AccessRequirementList/ManagedACTAccessRequirementRequestFlow/AccessorRequirementHelpText.js +30 -0
- package/dist/components/AccessRequirementList/ManagedACTAccessRequirementRequestFlow/AccessorRequirementHelpText.js.map +1 -0
- package/dist/components/AccessRequirementList/ManagedACTAccessRequirementRequestFlow/DataAccessRequestAccessorsFilesForm/DataAccessRequestAccessorsFilesForm.d.ts.map +1 -1
- package/dist/components/AccessRequirementList/ManagedACTAccessRequirementRequestFlow/DataAccessRequestAccessorsFilesForm/DataAccessRequestAccessorsFilesForm.js +138 -244
- package/dist/components/AccessRequirementList/ManagedACTAccessRequirementRequestFlow/DataAccessRequestAccessorsFilesForm/DataAccessRequestAccessorsFilesForm.js.map +1 -1
- package/dist/components/AccessRequirementList/ManagedACTAccessRequirementRequestFlow/DucUploadSection.d.ts +13 -0
- package/dist/components/AccessRequirementList/ManagedACTAccessRequirementRequestFlow/DucUploadSection.d.ts.map +1 -0
- package/dist/components/AccessRequirementList/ManagedACTAccessRequirementRequestFlow/DucUploadSection.js +60 -0
- package/dist/components/AccessRequirementList/ManagedACTAccessRequirementRequestFlow/DucUploadSection.js.map +1 -0
- package/dist/components/AccessRequirementList/ManagedACTAccessRequirementRequestFlow/EDucPreviewStep/EDucPreviewStep.d.ts +8 -2
- package/dist/components/AccessRequirementList/ManagedACTAccessRequirementRequestFlow/EDucPreviewStep/EDucPreviewStep.d.ts.map +1 -1
- package/dist/components/AccessRequirementList/ManagedACTAccessRequirementRequestFlow/EDucPreviewStep/EDucPreviewStep.js +179 -63
- package/dist/components/AccessRequirementList/ManagedACTAccessRequirementRequestFlow/EDucPreviewStep/EDucPreviewStep.js.map +1 -1
- package/dist/components/AccessRequirementList/ManagedACTAccessRequirementRequestFlow/ManagedACTAccessRequirementFormWikiWrapper.d.ts +2 -0
- package/dist/components/AccessRequirementList/ManagedACTAccessRequirementRequestFlow/ManagedACTAccessRequirementFormWikiWrapper.d.ts.map +1 -1
- package/dist/components/AccessRequirementList/ManagedACTAccessRequirementRequestFlow/ManagedACTAccessRequirementFormWikiWrapper.js +13 -13
- package/dist/components/AccessRequirementList/ManagedACTAccessRequirementRequestFlow/ManagedACTAccessRequirementFormWikiWrapper.js.map +1 -1
- package/dist/components/AccessRequirementList/ManagedACTAccessRequirementRequestFlow/ManagedACTAccessRequirementItemView.d.ts +3 -2
- package/dist/components/AccessRequirementList/ManagedACTAccessRequirementRequestFlow/ManagedACTAccessRequirementItemView.d.ts.map +1 -1
- package/dist/components/AccessRequirementList/ManagedACTAccessRequirementRequestFlow/ManagedACTAccessRequirementItemView.js.map +1 -1
- package/dist/components/AccessRequirementList/ManagedACTAccessRequirementRequestFlow/ManualUploadDucStep/ManualUploadDucStep.d.ts +3 -2
- package/dist/components/AccessRequirementList/ManagedACTAccessRequirementRequestFlow/ManualUploadDucStep/ManualUploadDucStep.d.ts.map +1 -1
- package/dist/components/AccessRequirementList/ManagedACTAccessRequirementRequestFlow/ManualUploadDucStep/ManualUploadDucStep.js.map +1 -1
- package/dist/components/AccessRequirementList/ManagedACTAccessRequirementRequestFlow/PrincipalInvestigatorFields.d.ts +12 -0
- package/dist/components/AccessRequirementList/ManagedACTAccessRequirementRequestFlow/PrincipalInvestigatorFields.d.ts.map +1 -0
- package/dist/components/AccessRequirementList/ManagedACTAccessRequirementRequestFlow/PrincipalInvestigatorFields.js +50 -0
- package/dist/components/AccessRequirementList/ManagedACTAccessRequirementRequestFlow/PrincipalInvestigatorFields.js.map +1 -0
- package/dist/components/AccessRequirementList/ManagedACTAccessRequirementRequestFlow/ResearchProjectForm/ResearchProjectForm.d.ts.map +1 -1
- package/dist/components/AccessRequirementList/ManagedACTAccessRequirementRequestFlow/ResearchProjectForm/ResearchProjectForm.js +112 -143
- package/dist/components/AccessRequirementList/ManagedACTAccessRequirementRequestFlow/ResearchProjectForm/ResearchProjectForm.js.map +1 -1
- package/dist/components/AccessRequirementList/ManagedACTAccessRequirementRequestFlow/ReviewDucStep/ReviewDucStep.d.ts +4 -2
- package/dist/components/AccessRequirementList/ManagedACTAccessRequirementRequestFlow/ReviewDucStep/ReviewDucStep.d.ts.map +1 -1
- package/dist/components/AccessRequirementList/ManagedACTAccessRequirementRequestFlow/ReviewDucStep/ReviewDucStep.js +8 -7
- package/dist/components/AccessRequirementList/ManagedACTAccessRequirementRequestFlow/ReviewDucStep/ReviewDucStep.js.map +1 -1
- package/dist/components/AccessRequirementList/ManagedACTAccessRequirementRequestFlow/SignatureStatusStep/SignatureStatusStep.d.ts +3 -2
- package/dist/components/AccessRequirementList/ManagedACTAccessRequirementRequestFlow/SignatureStatusStep/SignatureStatusStep.d.ts.map +1 -1
- package/dist/components/AccessRequirementList/ManagedACTAccessRequirementRequestFlow/SignatureStatusStep/SignatureStatusStep.js +79 -47
- package/dist/components/AccessRequirementList/ManagedACTAccessRequirementRequestFlow/SignatureStatusStep/SignatureStatusStep.js.map +1 -1
- package/dist/components/AccessRequirementList/ManagedACTAccessRequirementRequestFlow/SigningOfficialFields.d.ts +12 -0
- package/dist/components/AccessRequirementList/ManagedACTAccessRequirementRequestFlow/SigningOfficialFields.d.ts.map +1 -0
- package/dist/components/AccessRequirementList/ManagedACTAccessRequirementRequestFlow/SigningOfficialFields.js +51 -0
- package/dist/components/AccessRequirementList/ManagedACTAccessRequirementRequestFlow/SigningOfficialFields.js.map +1 -0
- package/dist/components/AccessRequirementList/ManagedACTAccessRequirementRequestFlow/eDucSignatureUtils.d.ts +12 -0
- package/dist/components/AccessRequirementList/ManagedACTAccessRequirementRequestFlow/eDucSignatureUtils.d.ts.map +1 -0
- package/dist/components/AccessRequirementList/ManagedACTAccessRequirementRequestFlow/eDucSignatureUtils.js +24 -0
- package/dist/components/AccessRequirementList/ManagedACTAccessRequirementRequestFlow/eDucSignatureUtils.js.map +1 -0
- package/dist/components/AccessRequirementList/ManagedACTAccessRequirementRequestFlow/requestFlowTypes.d.ts +11 -0
- package/dist/components/AccessRequirementList/ManagedACTAccessRequirementRequestFlow/requestFlowTypes.d.ts.map +1 -0
- package/dist/components/AccessRequirementList/ManagedACTAccessRequirementRequestFlow/requestFlowTypes.js +0 -0
- package/dist/components/AccessRequirementList/ManagedACTAccessRequirementRequestFlow/useInitializeRequestAccessors.d.ts +22 -0
- package/dist/components/AccessRequirementList/ManagedACTAccessRequirementRequestFlow/useInitializeRequestAccessors.d.ts.map +1 -0
- package/dist/components/AccessRequirementList/ManagedACTAccessRequirementRequestFlow/useInitializeRequestAccessors.js +32 -0
- package/dist/components/AccessRequirementList/ManagedACTAccessRequirementRequestFlow/useInitializeRequestAccessors.js.map +1 -0
- package/dist/components/AclEditor/AclEditor.js +20 -20
- package/dist/components/Aridhia/AridhiaAccessStatus.d.ts.map +1 -1
- package/dist/components/Aridhia/AridhiaAccessStatus.js +51 -48
- package/dist/components/Aridhia/AridhiaAccessStatus.js.map +1 -1
- package/dist/components/Authentication/Constants.d.ts +4 -0
- package/dist/components/Authentication/Constants.d.ts.map +1 -1
- package/dist/components/Authentication/Constants.js +5 -2
- package/dist/components/Authentication/Constants.js.map +1 -1
- package/dist/components/Authentication/RecoveryCodeGrid.d.ts.map +1 -1
- package/dist/components/Authentication/RecoveryCodeGrid.js +8 -1
- package/dist/components/Authentication/RecoveryCodeGrid.js.map +1 -1
- package/dist/components/Authentication/RegenerateBackupCodesWarning.js +4 -1
- package/dist/components/Authentication/RegenerateBackupCodesWarning.js.map +1 -1
- package/dist/components/Authentication/TOTPForm.d.ts.map +1 -1
- package/dist/components/Authentication/TOTPForm.js +20 -18
- package/dist/components/Authentication/TOTPForm.js.map +1 -1
- package/dist/components/Authentication/TwoFactorBackupCodes.d.ts.map +1 -1
- package/dist/components/Authentication/TwoFactorBackupCodes.js +41 -12
- package/dist/components/Authentication/TwoFactorBackupCodes.js.map +1 -1
- package/dist/components/Authentication/TwoFactorEnrollmentForm.d.ts.map +1 -1
- package/dist/components/Authentication/TwoFactorEnrollmentForm.js +90 -77
- package/dist/components/Authentication/TwoFactorEnrollmentForm.js.map +1 -1
- package/dist/components/DataGrid/SynapseGrid.d.ts.map +1 -1
- package/dist/components/DataGrid/SynapseGrid.js +244 -246
- package/dist/components/DataGrid/SynapseGrid.js.map +1 -1
- package/dist/components/DataGrid/components/GridLoadingState.d.ts +23 -0
- package/dist/components/DataGrid/components/GridLoadingState.d.ts.map +1 -0
- package/dist/components/DataGrid/components/GridLoadingState.js +64 -0
- package/dist/components/DataGrid/components/GridLoadingState.js.map +1 -0
- package/dist/components/DataGrid/components/ReorderColumnsDialog.d.ts.map +1 -1
- package/dist/components/DataGrid/components/ReorderColumnsDialog.js +52 -54
- package/dist/components/DataGrid/components/ReorderColumnsDialog.js.map +1 -1
- package/dist/components/DataGrid/useDataGridWebsocket.d.ts +60 -6
- package/dist/components/DataGrid/useDataGridWebsocket.d.ts.map +1 -1
- package/dist/components/DataGrid/useDataGridWebsocket.js +71 -60
- package/dist/components/DataGrid/useDataGridWebsocket.js.map +1 -1
- package/dist/components/DataGrid/utils/getNamedColumnIndices.d.ts +11 -0
- package/dist/components/DataGrid/utils/getNamedColumnIndices.d.ts.map +1 -0
- package/dist/components/DataGrid/utils/getNamedColumnIndices.js +8 -0
- package/dist/components/DataGrid/utils/getNamedColumnIndices.js.map +1 -0
- package/dist/components/FilePreview/FileHandleContentRenderer.d.ts +6 -2
- package/dist/components/FilePreview/FileHandleContentRenderer.d.ts.map +1 -1
- package/dist/components/FilePreview/FileHandleContentRenderer.js +27 -14
- package/dist/components/FilePreview/FileHandleContentRenderer.js.map +1 -1
- package/dist/components/FilePreview/PdfPreview.d.ts +1 -1
- package/dist/components/FilePreview/PdfPreview.d.ts.map +1 -1
- package/dist/components/FilePreview/PdfPreview.js +15 -16
- package/dist/components/FilePreview/PdfPreview.js.map +1 -1
- package/dist/components/FormTemplateEditor/ChoiceOptionsEditor.d.ts +11 -0
- package/dist/components/FormTemplateEditor/ChoiceOptionsEditor.d.ts.map +1 -0
- package/dist/components/FormTemplateEditor/ChoiceOptionsEditor.js +61 -0
- package/dist/components/FormTemplateEditor/ChoiceOptionsEditor.js.map +1 -0
- package/dist/components/FormTemplateEditor/FieldDefinitionDrawer.d.ts +33 -0
- package/dist/components/FormTemplateEditor/FieldDefinitionDrawer.d.ts.map +1 -0
- package/dist/components/FormTemplateEditor/FieldDefinitionDrawer.js +190 -0
- package/dist/components/FormTemplateEditor/FieldDefinitionDrawer.js.map +1 -0
- package/dist/components/FormTemplateEditor/FieldLibrary.css +1 -0
- package/dist/components/FormTemplateEditor/FieldLibrary.d.ts +17 -0
- package/dist/components/FormTemplateEditor/FieldLibrary.d.ts.map +1 -0
- package/dist/components/FormTemplateEditor/FieldLibrary.js +88 -0
- package/dist/components/FormTemplateEditor/FieldLibrary.js.map +1 -0
- package/dist/components/FormTemplateEditor/FieldLibrary.module.js +5 -0
- package/dist/components/FormTemplateEditor/FieldLibrary.module.js.map +1 -0
- package/dist/components/FormTemplateEditor/FieldLibrary.module.scss +12 -0
- package/dist/components/FormTemplateEditor/FieldLibraryRow.d.ts +19 -0
- package/dist/components/FormTemplateEditor/FieldLibraryRow.d.ts.map +1 -0
- package/dist/components/FormTemplateEditor/FieldLibraryRow.js +115 -0
- package/dist/components/FormTemplateEditor/FieldLibraryRow.js.map +1 -0
- package/dist/components/FormTemplateEditor/FieldValidationErrorAlert.css +1 -0
- package/dist/components/FormTemplateEditor/FieldValidationErrorAlert.d.ts +9 -0
- package/dist/components/FormTemplateEditor/FieldValidationErrorAlert.d.ts.map +1 -0
- package/dist/components/FormTemplateEditor/FieldValidationErrorAlert.js +18 -0
- package/dist/components/FormTemplateEditor/FieldValidationErrorAlert.js.map +1 -0
- package/dist/components/FormTemplateEditor/FieldValidationErrorAlert.module.js +5 -0
- package/dist/components/FormTemplateEditor/FieldValidationErrorAlert.module.js.map +1 -0
- package/dist/components/FormTemplateEditor/FieldValidationErrorAlert.module.scss +4 -0
- package/dist/components/FormTemplateEditor/FormStructurePanel.d.ts +21 -0
- package/dist/components/FormTemplateEditor/FormStructurePanel.d.ts.map +1 -0
- package/dist/components/FormTemplateEditor/FormStructurePanel.js +108 -0
- package/dist/components/FormTemplateEditor/FormStructurePanel.js.map +1 -0
- package/dist/components/FormTemplateEditor/FormTemplateEditor.d.ts +10 -0
- package/dist/components/FormTemplateEditor/FormTemplateEditor.d.ts.map +1 -0
- package/dist/components/FormTemplateEditor/FormTemplateEditor.js +31 -0
- package/dist/components/FormTemplateEditor/FormTemplateEditor.js.map +1 -0
- package/dist/components/FormTemplateEditor/FormTemplateEditorForm.d.ts +15 -0
- package/dist/components/FormTemplateEditor/FormTemplateEditorForm.d.ts.map +1 -0
- package/dist/components/FormTemplateEditor/FormTemplateEditorForm.js +234 -0
- package/dist/components/FormTemplateEditor/FormTemplateEditorForm.js.map +1 -0
- package/dist/components/FormTemplateEditor/FormTemplatePreview.d.ts +14 -0
- package/dist/components/FormTemplateEditor/FormTemplatePreview.d.ts.map +1 -0
- package/dist/components/FormTemplateEditor/FormTemplatePreview.js +72 -0
- package/dist/components/FormTemplateEditor/FormTemplatePreview.js.map +1 -0
- package/dist/components/FormTemplateEditor/JsonSchemaBodyEditor.d.ts +13 -0
- package/dist/components/FormTemplateEditor/JsonSchemaBodyEditor.d.ts.map +1 -0
- package/dist/components/FormTemplateEditor/JsonSchemaBodyEditor.js +33 -0
- package/dist/components/FormTemplateEditor/JsonSchemaBodyEditor.js.map +1 -0
- package/dist/components/FormTemplateEditor/StepCard.d.ts +25 -0
- package/dist/components/FormTemplateEditor/StepCard.d.ts.map +1 -0
- package/dist/components/FormTemplateEditor/StepCard.js +203 -0
- package/dist/components/FormTemplateEditor/StepCard.js.map +1 -0
- package/dist/components/FormTemplateEditor/StepFieldRow.d.ts +34 -0
- package/dist/components/FormTemplateEditor/StepFieldRow.d.ts.map +1 -0
- package/dist/components/FormTemplateEditor/StepFieldRow.js +128 -0
- package/dist/components/FormTemplateEditor/StepFieldRow.js.map +1 -0
- package/dist/components/FormTemplateEditor/TemplateFileHandleField.d.ts +19 -0
- package/dist/components/FormTemplateEditor/TemplateFileHandleField.d.ts.map +1 -0
- package/dist/components/FormTemplateEditor/TemplateFileHandleField.js +78 -0
- package/dist/components/FormTemplateEditor/TemplateFileHandleField.js.map +1 -0
- package/dist/components/FormTemplateEditor/dragHandle.css +1 -0
- package/dist/components/FormTemplateEditor/dragHandle.module.js +8 -0
- package/dist/components/FormTemplateEditor/dragHandle.module.js.map +1 -0
- package/dist/components/FormTemplateEditor/dragHandle.module.scss +22 -0
- package/dist/components/FormTemplateEditor/dropTarget.css +1 -0
- package/dist/components/FormTemplateEditor/dropTarget.module.js +5 -0
- package/dist/components/FormTemplateEditor/dropTarget.module.js.map +1 -0
- package/dist/components/FormTemplateEditor/dropTarget.module.scss +14 -0
- package/dist/components/FormTemplateEditor/formTemplateDraftState.d.ts +48 -0
- package/dist/components/FormTemplateEditor/formTemplateDraftState.d.ts.map +1 -0
- package/dist/components/FormTemplateEditor/formTemplateDraftState.js +126 -0
- package/dist/components/FormTemplateEditor/formTemplateDraftState.js.map +1 -0
- package/dist/components/FormTemplateEditor/formTemplateSchema.d.ts +35 -0
- package/dist/components/FormTemplateEditor/formTemplateSchema.d.ts.map +1 -0
- package/dist/components/FormTemplateEditor/formTemplateSchema.js +35 -0
- package/dist/components/FormTemplateEditor/formTemplateSchema.js.map +1 -0
- package/dist/components/FormTemplateEditor/formTemplateValidation.d.ts +32 -0
- package/dist/components/FormTemplateEditor/formTemplateValidation.d.ts.map +1 -0
- package/dist/components/FormTemplateEditor/formTemplateValidation.js +75 -0
- package/dist/components/FormTemplateEditor/formTemplateValidation.js.map +1 -0
- package/dist/components/FormTemplateEditor/schemaFieldUtils.d.ts +27 -0
- package/dist/components/FormTemplateEditor/schemaFieldUtils.d.ts.map +1 -0
- package/dist/components/FormTemplateEditor/schemaFieldUtils.js +84 -0
- package/dist/components/FormTemplateEditor/schemaFieldUtils.js.map +1 -0
- package/dist/components/FormTemplateEditor/sortableIds.d.ts +23 -0
- package/dist/components/FormTemplateEditor/sortableIds.d.ts.map +1 -0
- package/dist/components/FormTemplateEditor/sortableIds.js +24 -0
- package/dist/components/FormTemplateEditor/sortableIds.js.map +1 -0
- package/dist/components/FormTemplateEditor/useFormTemplateDraft.d.ts +33 -0
- package/dist/components/FormTemplateEditor/useFormTemplateDraft.d.ts.map +1 -0
- package/dist/components/FormTemplateEditor/useFormTemplateDraft.js +59 -0
- package/dist/components/FormTemplateEditor/useFormTemplateDraft.js.map +1 -0
- package/dist/components/FormTemplateEditor/useFormTemplateDrag.d.ts +9 -0
- package/dist/components/FormTemplateEditor/useFormTemplateDrag.d.ts.map +1 -0
- package/dist/components/FormTemplateEditor/useFormTemplateDrag.js +66 -0
- package/dist/components/FormTemplateEditor/useFormTemplateDrag.js.map +1 -0
- package/dist/components/FormTemplateEditor/useSaveFormTemplate.d.ts +28 -0
- package/dist/components/FormTemplateEditor/useSaveFormTemplate.d.ts.map +1 -0
- package/dist/components/FormTemplateEditor/useSaveFormTemplate.js +54 -0
- package/dist/components/FormTemplateEditor/useSaveFormTemplate.js.map +1 -0
- package/dist/components/FormTemplateEditor/utils.d.ts +21 -0
- package/dist/components/FormTemplateEditor/utils.d.ts.map +1 -0
- package/dist/components/FormTemplateEditor/utils.js +24 -0
- package/dist/components/FormTemplateEditor/utils.js.map +1 -0
- package/dist/components/JsonSchemaForm/CustomFormContext.d.ts +1 -1
- package/dist/components/JsonSchemaForm/CustomFormContext.d.ts.map +1 -1
- package/dist/components/JsonSchemaForm/JsonSchemaForm.css +1 -1
- package/dist/components/JsonSchemaForm/JsonSchemaForm.module.js +1 -1
- package/dist/components/JsonSchemaForm/JsonSchemaForm.module.js.map +1 -1
- package/dist/components/JsonSchemaForm/JsonSchemaForm.module.scss +6 -1
- package/dist/components/JsonSchemaForm/templates/RJSFInputLabel.d.ts.map +1 -1
- package/dist/components/JsonSchemaForm/templates/RJSFInputLabel.js +4 -0
- package/dist/components/JsonSchemaForm/templates/RJSFInputLabel.js.map +1 -1
- package/dist/components/JsonSchemaForm/widgets/SelectWidget.d.ts +11 -0
- package/dist/components/JsonSchemaForm/widgets/SelectWidget.d.ts.map +1 -1
- package/dist/components/JsonSchemaForm/widgets/SelectWidget.js +28 -19
- package/dist/components/JsonSchemaForm/widgets/SelectWidget.js.map +1 -1
- package/dist/components/QueryBuilder/FilterConditionRow.css +1 -1
- package/dist/components/QueryBuilder/FilterConditionRow.d.ts +3 -0
- package/dist/components/QueryBuilder/FilterConditionRow.d.ts.map +1 -1
- package/dist/components/QueryBuilder/FilterConditionRow.js +123 -123
- package/dist/components/QueryBuilder/FilterConditionRow.js.map +1 -1
- package/dist/components/QueryBuilder/FilterConditionRow.module.js +10 -11
- package/dist/components/QueryBuilder/FilterConditionRow.module.js.map +1 -1
- package/dist/components/QueryBuilder/FilterConditionRow.module.scss +0 -5
- package/dist/components/QueryBuilder/FilterGroupNode.css +1 -1
- package/dist/components/QueryBuilder/FilterGroupNode.d.ts +4 -0
- package/dist/components/QueryBuilder/FilterGroupNode.d.ts.map +1 -1
- package/dist/components/QueryBuilder/FilterGroupNode.js +85 -51
- package/dist/components/QueryBuilder/FilterGroupNode.js.map +1 -1
- package/dist/components/QueryBuilder/FilterGroupNode.module.js +10 -9
- package/dist/components/QueryBuilder/FilterGroupNode.module.js.map +1 -1
- package/dist/components/QueryBuilder/FilterGroupNode.module.scss +9 -0
- package/dist/components/QueryBuilder/QBDragHandle.d.ts +10 -0
- package/dist/components/QueryBuilder/QBDragHandle.d.ts.map +1 -0
- package/dist/components/QueryBuilder/QBDragHandle.js +22 -0
- package/dist/components/QueryBuilder/QBDragHandle.js.map +1 -0
- package/dist/components/QueryBuilder/QueryBuilderControls.d.ts.map +1 -1
- package/dist/components/QueryBuilder/QueryBuilderControls.js +120 -108
- package/dist/components/QueryBuilder/QueryBuilderControls.js.map +1 -1
- package/dist/components/QueryBuilder/QueryBuilderInternalContext.d.ts +7 -0
- package/dist/components/QueryBuilder/QueryBuilderInternalContext.d.ts.map +1 -1
- package/dist/components/QueryBuilder/QueryBuilderInternalContext.js.map +1 -1
- package/dist/components/QueryBuilder/qbTreeToReadable.d.ts +2 -1
- package/dist/components/QueryBuilder/qbTreeToReadable.d.ts.map +1 -1
- package/dist/components/QueryBuilder/qbTreeToReadable.js +25 -21
- package/dist/components/QueryBuilder/qbTreeToReadable.js.map +1 -1
- package/dist/components/QueryBuilder/queryBuilderDnd.d.ts +27 -0
- package/dist/components/QueryBuilder/queryBuilderDnd.d.ts.map +1 -0
- package/dist/components/QueryBuilder/queryBuilderDnd.js +41 -0
- package/dist/components/QueryBuilder/queryBuilderDnd.js.map +1 -0
- package/dist/components/QueryBuilder/queryBuilderDrag.css +1 -0
- package/dist/components/QueryBuilder/queryBuilderDrag.module.js +8 -0
- package/dist/components/QueryBuilder/queryBuilderDrag.module.js.map +1 -0
- package/dist/components/QueryBuilder/queryBuilderDrag.module.scss +12 -0
- package/dist/components/QueryBuilder/queryBuilderMetadata.d.ts +16 -0
- package/dist/components/QueryBuilder/queryBuilderMetadata.d.ts.map +1 -1
- package/dist/components/QueryBuilder/queryBuilderMetadata.js +13 -5
- package/dist/components/QueryBuilder/queryBuilderMetadata.js.map +1 -1
- package/dist/components/QueryBuilder/queryBuilderOperations.d.ts +13 -0
- package/dist/components/QueryBuilder/queryBuilderOperations.d.ts.map +1 -1
- package/dist/components/QueryBuilder/queryBuilderOperations.js +39 -36
- package/dist/components/QueryBuilder/queryBuilderOperations.js.map +1 -1
- package/dist/components/QueryBuilder/useQBValueDisplayName.d.ts +18 -0
- package/dist/components/QueryBuilder/useQBValueDisplayName.d.ts.map +1 -0
- package/dist/components/QueryBuilder/useQBValueDisplayName.js +64 -0
- package/dist/components/QueryBuilder/useQBValueDisplayName.js.map +1 -0
- package/dist/components/QueryWrapperPlotNav/QueryWrapperPlotNav.d.ts.map +1 -1
- package/dist/components/QueryWrapperPlotNav/QueryWrapperPlotNav.js +46 -47
- package/dist/components/QueryWrapperPlotNav/QueryWrapperPlotNav.js.map +1 -1
- package/dist/components/SynapseTable/RowSelection/RowSelectionControls.js +6 -6
- package/dist/components/SynapseTable/RowSelection/RowSelectionUI.d.ts +1 -0
- package/dist/components/SynapseTable/RowSelection/RowSelectionUI.d.ts.map +1 -1
- package/dist/components/SynapseTable/RowSelection/RowSelectionUI.js +13 -11
- package/dist/components/SynapseTable/RowSelection/RowSelectionUI.js.map +1 -1
- package/dist/components/SynapseTable/SearchV2.js +4 -4
- package/dist/components/ToastMessage/ToastMessage.d.ts.map +1 -1
- package/dist/components/ToastMessage/ToastMessage.js +25 -22
- package/dist/components/ToastMessage/ToastMessage.js.map +1 -1
- package/dist/components/dataaccess/FormTemplateEditorRoute.d.ts +7 -0
- package/dist/components/dataaccess/FormTemplateEditorRoute.d.ts.map +1 -0
- package/dist/components/dataaccess/FormTemplateEditorRoute.js +26 -0
- package/dist/components/dataaccess/FormTemplateEditorRoute.js.map +1 -0
- package/dist/components/dataaccess/FormTemplateTable.d.ts +10 -0
- package/dist/components/dataaccess/FormTemplateTable.d.ts.map +1 -0
- package/dist/components/dataaccess/FormTemplateTable.js +124 -0
- package/dist/components/dataaccess/FormTemplateTable.js.map +1 -0
- package/dist/components/dataaccess/ReviewerDashboard.d.ts.map +1 -1
- package/dist/components/dataaccess/ReviewerDashboard.js +80 -50
- package/dist/components/dataaccess/ReviewerDashboard.js.map +1 -1
- package/dist/components/dataaccess/UserAccessRequestHistory/InFlightEDucSignaturesTable.d.ts.map +1 -1
- package/dist/components/dataaccess/UserAccessRequestHistory/InFlightEDucSignaturesTable.js +2 -0
- package/dist/components/dataaccess/UserAccessRequestHistory/InFlightEDucSignaturesTable.js.map +1 -1
- package/dist/components/entity/page/title_bar/EntityPageTitleBar.d.ts +0 -1
- package/dist/components/entity/page/title_bar/EntityPageTitleBar.d.ts.map +1 -1
- package/dist/components/entity/page/title_bar/EntityPageTitleBar.js +35 -36
- package/dist/components/entity/page/title_bar/EntityPageTitleBar.js.map +1 -1
- package/dist/components/styled/LeftRightPanel.d.ts.map +1 -1
- package/dist/components/styled/LeftRightPanel.js +19 -2
- package/dist/components/styled/LeftRightPanel.js.map +1 -1
- package/dist/components/widgets/FileHandleLink.d.ts +12 -2
- package/dist/components/widgets/FileHandleLink.d.ts.map +1 -1
- package/dist/components/widgets/FileHandleLink.js +25 -29
- package/dist/components/widgets/FileHandleLink.js.map +1 -1
- package/dist/mocks/accessRequirement/mockFormTemplates.d.ts +4 -2
- package/dist/mocks/accessRequirement/mockFormTemplates.d.ts.map +1 -1
- package/dist/mocks/accessRequirement/mockFormTemplates.js +13 -14
- package/dist/mocks/accessRequirement/mockFormTemplates.js.map +1 -1
- package/dist/mocks/accessRequirement/mockJsonSchemas.d.ts +4 -1
- package/dist/mocks/accessRequirement/mockJsonSchemas.d.ts.map +1 -1
- package/dist/mocks/accessRequirement/mockJsonSchemas.js +24 -17
- package/dist/mocks/accessRequirement/mockJsonSchemas.js.map +1 -1
- package/dist/mocks/msw/handlers/asyncJobHandlers.d.ts +41 -14
- package/dist/mocks/msw/handlers/asyncJobHandlers.d.ts.map +1 -1
- package/dist/mocks/msw/handlers/asyncJobHandlers.js +53 -44
- package/dist/mocks/msw/handlers/asyncJobHandlers.js.map +1 -1
- package/dist/mocks/msw/handlers/authHandlers.d.ts +1 -0
- package/dist/mocks/msw/handlers/authHandlers.d.ts.map +1 -1
- package/dist/mocks/msw/handlers/authHandlers.js +6 -2
- package/dist/mocks/msw/handlers/authHandlers.js.map +1 -1
- package/dist/mocks/msw/handlers/chatHandlers.d.ts.map +1 -1
- package/dist/mocks/msw/handlers/chatHandlers.js +19 -13
- package/dist/mocks/msw/handlers/chatHandlers.js.map +1 -1
- package/dist/mocks/msw/handlers/dataAccessRequestHandlers.d.ts +2 -0
- package/dist/mocks/msw/handlers/dataAccessRequestHandlers.d.ts.map +1 -1
- package/dist/mocks/msw/handlers/dataAccessRequestHandlers.js +52 -46
- package/dist/mocks/msw/handlers/dataAccessRequestHandlers.js.map +1 -1
- package/dist/mocks/msw/handlers/fileHandlers.d.ts.map +1 -1
- package/dist/mocks/msw/handlers/fileHandlers.js +25 -21
- package/dist/mocks/msw/handlers/fileHandlers.js.map +1 -1
- package/dist/mocks/msw/handlers/formTemplateHandlers.d.ts +2 -1
- package/dist/mocks/msw/handlers/formTemplateHandlers.d.ts.map +1 -1
- package/dist/mocks/msw/handlers/formTemplateHandlers.js +18 -18
- package/dist/mocks/msw/handlers/formTemplateHandlers.js.map +1 -1
- package/dist/mocks/msw/handlers/schemaHandlers.d.ts +10 -1
- package/dist/mocks/msw/handlers/schemaHandlers.d.ts.map +1 -1
- package/dist/mocks/msw/handlers/schemaHandlers.js +30 -7
- package/dist/mocks/msw/handlers/schemaHandlers.js.map +1 -1
- package/dist/mocks/msw/handlers/searchQueryHandlers.d.ts.map +1 -1
- package/dist/mocks/msw/handlers/searchQueryHandlers.js +24 -18
- package/dist/mocks/msw/handlers/searchQueryHandlers.js.map +1 -1
- package/dist/mocks/msw/handlers/tableQueryHandlers.d.ts.map +1 -1
- package/dist/mocks/msw/handlers/tableQueryHandlers.js +35 -16
- package/dist/mocks/msw/handlers/tableQueryHandlers.js.map +1 -1
- package/dist/mocks/msw/handlers/twoFactorEnrollmentHandlers.d.ts +8 -0
- package/dist/mocks/msw/handlers/twoFactorEnrollmentHandlers.d.ts.map +1 -0
- package/dist/mocks/msw/handlers/twoFactorEnrollmentHandlers.js +19 -0
- package/dist/mocks/msw/handlers/twoFactorEnrollmentHandlers.js.map +1 -0
- package/dist/style/abstracts/_cssVariables.scss +13 -0
- package/dist/style/components/_toasts.scss +10 -1
- package/dist/style/main.css +1 -1
- package/dist/synapse-queries/KeyFactory.d.ts +9 -3
- package/dist/synapse-queries/KeyFactory.d.ts.map +1 -1
- package/dist/synapse-queries/KeyFactory.js +17 -7
- package/dist/synapse-queries/KeyFactory.js.map +1 -1
- package/dist/synapse-queries/auth/index.d.ts +1 -0
- package/dist/synapse-queries/auth/index.d.ts.map +1 -1
- package/dist/synapse-queries/auth/index.js +2 -1
- package/dist/synapse-queries/auth/useUnbindOAuthProviderIdentity.d.ts +11 -0
- package/dist/synapse-queries/auth/useUnbindOAuthProviderIdentity.d.ts.map +1 -0
- package/dist/synapse-queries/auth/useUnbindOAuthProviderIdentity.js +19 -0
- package/dist/synapse-queries/auth/useUnbindOAuthProviderIdentity.js.map +1 -0
- package/dist/synapse-queries/dataaccess/index.d.ts +0 -1
- package/dist/synapse-queries/dataaccess/index.d.ts.map +1 -1
- package/dist/synapse-queries/dataaccess/index.js +3 -4
- package/dist/synapse-queries/dataaccess/useEDuc.d.ts +18 -0
- package/dist/synapse-queries/dataaccess/useEDuc.d.ts.map +1 -1
- package/dist/synapse-queries/dataaccess/useEDuc.js +33 -1
- package/dist/synapse-queries/dataaccess/useEDuc.js.map +1 -1
- package/dist/synapse-queries/file/useDirectUploadToS3.js +6 -6
- package/dist/synapse-queries/file/useFileHandle.d.ts +8 -0
- package/dist/synapse-queries/file/useFileHandle.d.ts.map +1 -1
- package/dist/synapse-queries/file/useFileHandle.js +15 -6
- package/dist/synapse-queries/file/useFileHandle.js.map +1 -1
- package/dist/synapse-queries/index.js +260 -257
- package/dist/synapse-queries/jsonschema/index.js +2 -2
- package/dist/synapse-queries/jsonschema/useCreateJsonSchema.d.ts +9 -0
- package/dist/synapse-queries/jsonschema/useCreateJsonSchema.d.ts.map +1 -0
- package/dist/synapse-queries/jsonschema/useCreateJsonSchema.js +22 -0
- package/dist/synapse-queries/jsonschema/useCreateJsonSchema.js.map +1 -0
- package/dist/synapse-queries/jsonschema/useSchema.d.ts +5 -0
- package/dist/synapse-queries/jsonschema/useSchema.d.ts.map +1 -1
- package/dist/synapse-queries/jsonschema/useSchema.js +9 -1
- package/dist/synapse-queries/jsonschema/useSchema.js.map +1 -1
- package/dist/testutils/vitest.setup.js +18 -9
- package/dist/testutils/vitest.setup.js.map +1 -1
- package/dist/tsconfig.build.tsbuildinfo +1 -1
- package/dist/utils/APIConstants.d.ts +2 -0
- package/dist/utils/APIConstants.d.ts.map +1 -1
- package/dist/utils/APIConstants.js +2 -2
- package/dist/utils/APIConstants.js.map +1 -1
- package/dist/utils/appendFinalQueryParamKey.d.ts.map +1 -1
- package/dist/utils/appendFinalQueryParamKey.js +4 -1
- package/dist/utils/appendFinalQueryParamKey.js.map +1 -1
- package/dist/utils/featureflag/FeatureFlags.d.ts +2 -0
- package/dist/utils/featureflag/FeatureFlags.d.ts.map +1 -1
- package/dist/utils/featureflag/FeatureFlags.js +1 -1
- package/dist/utils/featureflag/FeatureFlags.js.map +1 -1
- package/dist/utils/functions/ArrayUtils.d.ts +3 -0
- package/dist/utils/functions/ArrayUtils.d.ts.map +1 -1
- package/dist/utils/functions/ArrayUtils.js +7 -1
- package/dist/utils/functions/ArrayUtils.js.map +1 -1
- package/dist/utils/functions/toPascalCase.d.ts +6 -0
- package/dist/utils/functions/toPascalCase.d.ts.map +1 -0
- package/dist/utils/functions/toPascalCase.js +8 -0
- package/dist/utils/functions/toPascalCase.js.map +1 -0
- package/dist/utils/jsonschema/generateDataAccessSchema.d.ts +26 -0
- package/dist/utils/jsonschema/generateDataAccessSchema.d.ts.map +1 -0
- package/dist/utils/jsonschema/generateDataAccessSchema.js +28 -0
- package/dist/utils/jsonschema/generateDataAccessSchema.js.map +1 -0
- package/dist/utils/jsonschema/submissionContext.d.ts +91 -0
- package/dist/utils/jsonschema/submissionContext.d.ts.map +1 -0
- package/dist/utils/jsonschema/submissionContext.js +178 -0
- package/dist/utils/jsonschema/submissionContext.js.map +1 -0
- package/package.json +13 -10
- package/dist/components/AccessRequirement/AddConditionsForUseButton/AddConditionsForUseButton.d.ts +0 -6
- package/dist/components/AccessRequirement/AddConditionsForUseButton/AddConditionsForUseButton.d.ts.map +0 -1
- package/dist/components/AccessRequirement/AddConditionsForUseButton/AddConditionsForUseButton.js +0 -32
- package/dist/components/AccessRequirement/AddConditionsForUseButton/AddConditionsForUseButton.js.map +0 -1
- package/dist/components/entity/page/title_bar/TitleBarProperties.d.ts +0 -9
- package/dist/components/entity/page/title_bar/TitleBarProperties.d.ts.map +0 -1
- package/dist/components/entity/page/title_bar/TitleBarProperties.js +0 -24
- package/dist/components/entity/page/title_bar/TitleBarProperties.js.map +0 -1
- package/dist/synapse-queries/dataaccess/useGenerateDataAccessSchema.d.ts +0 -21
- package/dist/synapse-queries/dataaccess/useGenerateDataAccessSchema.d.ts.map +0 -1
- package/dist/synapse-queries/dataaccess/useGenerateDataAccessSchema.js +0 -34
- package/dist/synapse-queries/dataaccess/useGenerateDataAccessSchema.js.map +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"JsonSchemaForm.module.js","names":[],"sources":["../../../src/components/JsonSchemaForm/JsonSchemaForm.module.scss"],"sourcesContent":[".jsonSchemaForm {\n display: grid;\n // We can't rearrange the order of the HTML elements, so we use grid rows to reorder them.\n grid-template-rows: auto auto auto auto auto;\n margin-bottom: 15px;\n\n :global(.react-select-container) > :global(.form-control) {\n height: 53.33px;\n }\n\n :global(.form-group.rjsf-field-array) {\n margin-bottom: 0px;\n }\n\n :global(.form-control) {\n height: unset;\n }\n\n :global(.MuiTextField-root):not(:global(.datetime-picker)) {\n display: flex;\n }\n\n :global(.rjsf-array-item) :global(.LabelContainer) {\n display: none !important;\n }\n\n > :global(.form-group) {\n grid-row-start: 1;\n }\n\n > hr {\n grid-row-start: 4;\n width: 100%;\n }\n\n :global(.row) {\n padding: 0px 10px;\n }\n\n :global(.rjsf-field-array) > :global(.field-description) {\n margin-top: 0px;\n margin-bottom: 8px;\n }\n\n :global(.rjsf-array-item) {\n :global(.field-description) {\n display: none;\n }\n\n :global(.HelpButton) {\n display: none;\n }\n\n :global(.form-control),\n :global(.react-select-container) {\n grid-row-start: widget;\n }\n\n div {\n grid-row-start: errors;\n }\n }\n\n :global(.LabelContainer) {\n display: flex;\n label {\n flex-grow: 1;\n span:global(.required) {\n color: var(--synapse-red-required);\n margin-left: 2px;\n }\n }\n }\n\n select {\n background-color: var(--synapse-gray-light);\n }\n\n :global(.rjsf-field-array)\n > :global(.rjsf-array-item)\n > label:global(.form-label) {\n display: none;\n }\n\n :global(.HelpButton) {\n float: right;\n margin: 0 0 0.5rem;\n cursor: pointer;\n }\n\n table:global(.FieldDescriptionTable) {\n tr {\n th,\n td {\n padding: 3px 0px;\n vertical-align: middle;\n\n :global(.field-description) {\n margin-bottom: 0;\n }\n }\n th {\n padding-right: 25px;\n font-weight: 400;\n color: var(--synapse-text-color-disabled);\n }\n }\n }\n}\n"],"mappings":""}
|
|
1
|
+
{"version":3,"file":"JsonSchemaForm.module.js","names":[],"sources":["../../../src/components/JsonSchemaForm/JsonSchemaForm.module.scss"],"sourcesContent":[".jsonSchemaForm {\n display: grid;\n // We can't rearrange the order of the HTML elements, so we use grid rows to reorder them.\n grid-template-rows: auto auto auto auto auto;\n margin-bottom: 15px;\n\n :global(.react-select-container) > :global(.form-control) {\n height: 53.33px;\n }\n\n :global(.form-group.rjsf-field-array) {\n margin-bottom: 0px;\n }\n\n :global(.form-control) {\n height: unset;\n }\n\n :global(.MuiTextField-root):not(:global(.datetime-picker)) {\n display: flex;\n }\n\n :global(.rjsf-array-item) :global(.LabelContainer) {\n display: none !important;\n }\n\n > :global(.form-group) {\n grid-row-start: 1;\n }\n\n > hr {\n grid-row-start: 4;\n width: 100%;\n }\n\n :global(.row) {\n padding: 0px 10px;\n }\n\n :global(.field-description-inline) {\n margin-bottom: 8px;\n }\n\n :global(.rjsf-field-array) > :global(.field-description) {\n margin-top: 0px;\n margin-bottom: 8px;\n }\n\n :global(.rjsf-array-item) {\n :global(.field-description),\n :global(.field-description-inline) {\n display: none;\n }\n\n :global(.HelpButton) {\n display: none;\n }\n\n :global(.form-control),\n :global(.react-select-container) {\n grid-row-start: widget;\n }\n\n div {\n grid-row-start: errors;\n }\n }\n\n :global(.LabelContainer) {\n display: flex;\n label {\n flex-grow: 1;\n span:global(.required) {\n color: var(--synapse-red-required);\n margin-left: 2px;\n }\n }\n }\n\n select {\n background-color: var(--synapse-gray-light);\n }\n\n :global(.rjsf-field-array)\n > :global(.rjsf-array-item)\n > label:global(.form-label) {\n display: none;\n }\n\n :global(.HelpButton) {\n float: right;\n margin: 0 0 0.5rem;\n cursor: pointer;\n }\n\n table:global(.FieldDescriptionTable) {\n tr {\n th,\n td {\n padding: 3px 0px;\n vertical-align: middle;\n\n :global(.field-description) {\n margin-bottom: 0;\n }\n }\n th {\n padding-right: 25px;\n font-weight: 400;\n color: var(--synapse-text-color-disabled);\n }\n }\n }\n}\n"],"mappings":""}
|
|
@@ -37,13 +37,18 @@
|
|
|
37
37
|
padding: 0px 10px;
|
|
38
38
|
}
|
|
39
39
|
|
|
40
|
+
:global(.field-description-inline) {
|
|
41
|
+
margin-bottom: 8px;
|
|
42
|
+
}
|
|
43
|
+
|
|
40
44
|
:global(.rjsf-field-array) > :global(.field-description) {
|
|
41
45
|
margin-top: 0px;
|
|
42
46
|
margin-bottom: 8px;
|
|
43
47
|
}
|
|
44
48
|
|
|
45
49
|
:global(.rjsf-array-item) {
|
|
46
|
-
:global(.field-description)
|
|
50
|
+
:global(.field-description),
|
|
51
|
+
:global(.field-description-inline) {
|
|
47
52
|
display: none;
|
|
48
53
|
}
|
|
49
54
|
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"RJSFInputLabel.d.ts","sourceRoot":"","sources":["../../../../src/components/JsonSchemaForm/templates/RJSFInputLabel.tsx"],"names":[],"mappings":"AAGA,OAAO,EACL,eAAe,EACf,QAAQ,EACR,UAAU,EACV,gBAAgB,EACjB,MAAM,aAAa,CAAA;AACpB,OAAO,EAAE,iBAAiB,EAAY,MAAM,OAAO,CAAA;AAEnD,KAAK,mBAAmB,CACtB,CAAC,GAAG,GAAG,EACP,CAAC,SAAS,gBAAgB,GAAG,UAAU,EACvC,CAAC,SAAS,eAAe,GAAG,GAAG,IAC7B,iBAAiB,CAAC;IACpB;wBACoB;IACpB,SAAS,CAAC,EAAE,OAAO,CAAA;IACnB,sCAAsC;IACtC,UAAU,EAAE,KAAK,CAAC,SAAS,CAAA;IAC3B,4CAA4C;IAC5C,WAAW,EAAE,KAAK,CAAC,SAAS,CAAA;IAC5B,4BAA4B;IAC5B,QAAQ,EAAE,QAAQ,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,CAAC,CAAA;CAC5B,CAAC,CAAA;AAEF;;GAEG;AACH,wBAAgB,qBAAqB,CACnC,CAAC,GAAG,GAAG,EACP,CAAC,SAAS,gBAAgB,GAAG,UAAU,EACvC,CAAC,SAAS,eAAe,GAAG,GAAG,EAC/B,KAAK,EAAE,mBAAmB,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,CAAC,
|
|
1
|
+
{"version":3,"file":"RJSFInputLabel.d.ts","sourceRoot":"","sources":["../../../../src/components/JsonSchemaForm/templates/RJSFInputLabel.tsx"],"names":[],"mappings":"AAGA,OAAO,EACL,eAAe,EACf,QAAQ,EACR,UAAU,EACV,gBAAgB,EACjB,MAAM,aAAa,CAAA;AACpB,OAAO,EAAE,iBAAiB,EAAY,MAAM,OAAO,CAAA;AAEnD,KAAK,mBAAmB,CACtB,CAAC,GAAG,GAAG,EACP,CAAC,SAAS,gBAAgB,GAAG,UAAU,EACvC,CAAC,SAAS,eAAe,GAAG,GAAG,IAC7B,iBAAiB,CAAC;IACpB;wBACoB;IACpB,SAAS,CAAC,EAAE,OAAO,CAAA;IACnB,sCAAsC;IACtC,UAAU,EAAE,KAAK,CAAC,SAAS,CAAA;IAC3B,4CAA4C;IAC5C,WAAW,EAAE,KAAK,CAAC,SAAS,CAAA;IAC5B,4BAA4B;IAC5B,QAAQ,EAAE,QAAQ,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,CAAC,CAAA;CAC5B,CAAC,CAAA;AAEF;;GAEG;AACH,wBAAgB,qBAAqB,CACnC,CAAC,GAAG,GAAG,EACP,CAAC,SAAS,gBAAgB,GAAG,UAAU,EACvC,CAAC,SAAS,eAAe,GAAG,GAAG,EAC/B,KAAK,EAAE,mBAAmB,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,CAAC,2CAsDpC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"RJSFInputLabel.js","names":[],"sources":["../../../../src/components/JsonSchemaForm/templates/RJSFInputLabel.tsx"],"sourcesContent":["import { StyledPopover } from '@/components/styled/StyledPopover'\nimport { HelpOutline, HelpTwoTone } from '@mui/icons-material'\nimport { Collapse, IconButton, Tooltip } from '@mui/material'\nimport {\n FormContextType,\n Registry,\n RJSFSchema,\n StrictRJSFSchema,\n} from '@rjsf/utils'\nimport { PropsWithChildren, useState } from 'react'\n\ntype RJSFInputLabelProps<\n T = any,\n S extends StrictRJSFSchema = RJSFSchema,\n F extends FormContextType = any,\n> = PropsWithChildren<{\n /** If true, the label will not be shown\n * @default false */\n hideLabel?: boolean\n /** The rendered label of the field */\n fieldLabel: React.ReactNode\n /** The rendered description of the field */\n description: React.ReactNode\n /** The `registry` object */\n registry: Registry<T, S, F>\n}>\n\n/**\n * Component that handles rendering our custom input label and description fields for RJSF.\n */\nexport function RJSFInputLabelWrapper<\n T = any,\n S extends StrictRJSFSchema = RJSFSchema,\n F extends FormContextType = any,\n>(props: RJSFInputLabelProps<T, S, F>) {\n const {\n hideLabel = false,\n fieldLabel,\n description,\n registry,\n children,\n } = props\n const descriptionVariant =\n registry.formContext.descriptionVariant || 'popover'\n\n const [showDetails, setShowDetails] = useState(false)\n\n const expandButton = (\n <Tooltip title={'More Info'}>\n <IconButton\n onClick={e => {\n e.preventDefault()\n setShowDetails(!showDetails)\n }}\n aria-expanded={showDetails}\n size={'small'}\n >\n <HelpOutline color={'primary'} sx={{ width: '16px', height: '16px' }} />\n </IconButton>\n </Tooltip>\n )\n\n const popoverButton = (\n <StyledPopover popoverContent={description} maxWidth=\"350px\">\n <HelpTwoTone className={`HelpButton`} />\n </StyledPopover>\n )\n\n return (\n <>\n {!hideLabel && (\n <div className=\"LabelContainer\">\n {fieldLabel}\n {description && descriptionVariant === 'popover' && popoverButton}\n {description && descriptionVariant === 'expand' && expandButton}\n </div>\n )}\n {children}\n {!hideLabel && descriptionVariant === 'expand' && (\n <Collapse className=\"field-description\" in={showDetails}>\n {description}\n </Collapse>\n )}\n </>\n )\n}\n"],"mappings":";;;;;;AA8BA,SAAgB,EAId,GAAqC;CACrC,IAAM,EACJ,eAAY,IACZ,eACA,gBACA,aACA,gBACE,GACE,IACJ,EAAS,YAAY,sBAAsB,WAEvC,CAAC,GAAa,KAAkB,EAAS,EAAK;CAuBpD,OACE,kBAAA,GAAA,EAAA,UAAA;EACG,CAAC,KACA,kBAAC,OAAD;GAAK,WAAU;aAAf;IACG;IACA,KAAe,MAAuB,aAV7C,kBAAC,GAAD;KAAe,gBAAgB;KAAa,UAAS;eACnD,kBAAC,GAAD,EAAa,WAAW,aAAe,CAAA;IAC1B,CAQ2C;IACnD,KAAe,MAAuB,YA1B7C,kBAAC,GAAD;KAAS,OAAO;eACd,kBAAC,GAAD;MACE,UAAS,MAAK;OAEZ,AADA,EAAE,eAAe,GACjB,EAAe,CAAC,CAAW;MAC7B;MACA,iBAAe;MACf,MAAM;gBAEN,kBAAC,GAAD;OAAa,OAAO;OAAW,IAAI;QAAE,OAAO;QAAQ,QAAQ;OAAO;MAAI,CAAA;KAC7D,CAAA;IACL,CAegD;GAChD;;EAEN;EACA,CAAC,KAAa,MAAuB,YACpC,kBAAC,GAAD;GAAU,WAAU;GAAoB,IAAI;aACzC;EACO,CAAA;CAEZ,EAAA,CAAA;AAEN"}
|
|
1
|
+
{"version":3,"file":"RJSFInputLabel.js","names":[],"sources":["../../../../src/components/JsonSchemaForm/templates/RJSFInputLabel.tsx"],"sourcesContent":["import { StyledPopover } from '@/components/styled/StyledPopover'\nimport { HelpOutline, HelpTwoTone } from '@mui/icons-material'\nimport { Collapse, IconButton, Tooltip } from '@mui/material'\nimport {\n FormContextType,\n Registry,\n RJSFSchema,\n StrictRJSFSchema,\n} from '@rjsf/utils'\nimport { PropsWithChildren, useState } from 'react'\n\ntype RJSFInputLabelProps<\n T = any,\n S extends StrictRJSFSchema = RJSFSchema,\n F extends FormContextType = any,\n> = PropsWithChildren<{\n /** If true, the label will not be shown\n * @default false */\n hideLabel?: boolean\n /** The rendered label of the field */\n fieldLabel: React.ReactNode\n /** The rendered description of the field */\n description: React.ReactNode\n /** The `registry` object */\n registry: Registry<T, S, F>\n}>\n\n/**\n * Component that handles rendering our custom input label and description fields for RJSF.\n */\nexport function RJSFInputLabelWrapper<\n T = any,\n S extends StrictRJSFSchema = RJSFSchema,\n F extends FormContextType = any,\n>(props: RJSFInputLabelProps<T, S, F>) {\n const {\n hideLabel = false,\n fieldLabel,\n description,\n registry,\n children,\n } = props\n const descriptionVariant =\n registry.formContext.descriptionVariant || 'popover'\n\n const [showDetails, setShowDetails] = useState(false)\n\n const expandButton = (\n <Tooltip title={'More Info'}>\n <IconButton\n onClick={e => {\n e.preventDefault()\n setShowDetails(!showDetails)\n }}\n aria-expanded={showDetails}\n size={'small'}\n >\n <HelpOutline color={'primary'} sx={{ width: '16px', height: '16px' }} />\n </IconButton>\n </Tooltip>\n )\n\n const popoverButton = (\n <StyledPopover popoverContent={description} maxWidth=\"350px\">\n <HelpTwoTone className={`HelpButton`} />\n </StyledPopover>\n )\n\n return (\n <>\n {!hideLabel && (\n <div className=\"LabelContainer\">\n {fieldLabel}\n {description && descriptionVariant === 'popover' && popoverButton}\n {description && descriptionVariant === 'expand' && expandButton}\n </div>\n )}\n {!hideLabel && descriptionVariant === 'inline' && description && (\n <div className=\"field-description-inline\">{description}</div>\n )}\n {children}\n {!hideLabel && descriptionVariant === 'expand' && (\n <Collapse className=\"field-description\" in={showDetails}>\n {description}\n </Collapse>\n )}\n </>\n )\n}\n"],"mappings":";;;;;;AA8BA,SAAgB,EAId,GAAqC;CACrC,IAAM,EACJ,eAAY,IACZ,eACA,gBACA,aACA,gBACE,GACE,IACJ,EAAS,YAAY,sBAAsB,WAEvC,CAAC,GAAa,KAAkB,EAAS,EAAK;CAuBpD,OACE,kBAAA,GAAA,EAAA,UAAA;EACG,CAAC,KACA,kBAAC,OAAD;GAAK,WAAU;aAAf;IACG;IACA,KAAe,MAAuB,aAV7C,kBAAC,GAAD;KAAe,gBAAgB;KAAa,UAAS;eACnD,kBAAC,GAAD,EAAa,WAAW,aAAe,CAAA;IAC1B,CAQ2C;IACnD,KAAe,MAAuB,YA1B7C,kBAAC,GAAD;KAAS,OAAO;eACd,kBAAC,GAAD;MACE,UAAS,MAAK;OAEZ,AADA,EAAE,eAAe,GACjB,EAAe,CAAC,CAAW;MAC7B;MACA,iBAAe;MACf,MAAM;gBAEN,kBAAC,GAAD;OAAa,OAAO;OAAW,IAAI;QAAE,OAAO;QAAQ,QAAQ;OAAO;MAAI,CAAA;KAC7D,CAAA;IACL,CAegD;GAChD;;EAEN,CAAC,KAAa,MAAuB,YAAY,KAChD,kBAAC,OAAD;GAAK,WAAU;aAA4B;EAAiB,CAAA;EAE7D;EACA,CAAC,KAAa,MAAuB,YACpC,kBAAC,GAAD;GAAU,WAAU;GAAoB,IAAI;aACzC;EACO,CAAA;CAEZ,EAAA,CAAA;AAEN"}
|
|
@@ -6,6 +6,17 @@ import { Widget, EnumOptionsType } from '@rjsf/utils';
|
|
|
6
6
|
* where the label and value are set to the provided value.
|
|
7
7
|
*/
|
|
8
8
|
export declare function findValueOption(value: string | null | undefined, options: EnumOptionsType[]): EnumOptionsType | string | null;
|
|
9
|
+
/**
|
|
10
|
+
* Maps a multi-select form value (an array of enum values) to the Autocomplete option objects it
|
|
11
|
+
* selects. Values with no matching option (e.g. free-solo input) become `{ value, label: value }`.
|
|
12
|
+
* A non-array value selects nothing.
|
|
13
|
+
*/
|
|
14
|
+
export declare function toMultipleAutocompleteValue(value: unknown, options: EnumOptionsType[]): EnumOptionsType[];
|
|
15
|
+
/**
|
|
16
|
+
* Maps a multi-select Autocomplete selection (option objects and/or free-solo strings) back to the
|
|
17
|
+
* array of enum values stored in the form data.
|
|
18
|
+
*/
|
|
19
|
+
export declare function fromMultipleAutocompleteValue(newValue: unknown): unknown[];
|
|
9
20
|
/**
|
|
10
21
|
* Select widget compatible with react-jsonschema-form enumerations
|
|
11
22
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SelectWidget.d.ts","sourceRoot":"","sources":["../../../../src/components/JsonSchemaForm/widgets/SelectWidget.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,MAAM,EAAe,eAAe,EAAE,MAAM,aAAa,CAAA;AAOlE;;;;;GAKG;AACH,wBAAgB,eAAe,CAC7B,KAAK,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,EAChC,OAAO,EAAE,eAAe,EAAE,GACzB,eAAe,GAAG,MAAM,GAAG,IAAI,CAWjC;AAMD;;GAEG;AACH,eAAO,MAAM,YAAY,EAAE,
|
|
1
|
+
{"version":3,"file":"SelectWidget.d.ts","sourceRoot":"","sources":["../../../../src/components/JsonSchemaForm/widgets/SelectWidget.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,MAAM,EAAe,eAAe,EAAE,MAAM,aAAa,CAAA;AAOlE;;;;;GAKG;AACH,wBAAgB,eAAe,CAC7B,KAAK,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,EAChC,OAAO,EAAE,eAAe,EAAE,GACzB,eAAe,GAAG,MAAM,GAAG,IAAI,CAWjC;AAED;;;;GAIG;AACH,wBAAgB,2BAA2B,CACzC,KAAK,EAAE,OAAO,EACd,OAAO,EAAE,eAAe,EAAE,GACzB,eAAe,EAAE,CAWnB;AAED;;;GAGG;AACH,wBAAgB,6BAA6B,CAAC,QAAQ,EAAE,OAAO,GAAG,OAAO,EAAE,CAO1E;AAMD;;GAEG;AACH,eAAO,MAAM,YAAY,EAAE,MAgG1B,CAAA"}
|
|
@@ -12,36 +12,45 @@ function o(e, t) {
|
|
|
12
12
|
label: e
|
|
13
13
|
};
|
|
14
14
|
}
|
|
15
|
-
|
|
16
|
-
|
|
15
|
+
function s(e, t) {
|
|
16
|
+
return Array.isArray(e) ? e.map((e) => t.find((t) => t.value === e) ?? {
|
|
17
|
+
value: e,
|
|
18
|
+
label: String(e)
|
|
19
|
+
}) : [];
|
|
20
|
+
}
|
|
21
|
+
function c(t) {
|
|
22
|
+
return Array.isArray(t) ? t.map((t) => e(t) && "value" in t ? t.value : t) : [];
|
|
23
|
+
}
|
|
24
|
+
var l = (i) => {
|
|
25
|
+
let { id: l, options: u, value: d, required: f, disabled: p, readonly: m, multiple: h, autofocus: g, onChange: _, onBlur: v, onFocus: y, placeholder: b, isClearable: x = !0, rawErrors: S, registry: C } = i, { enumOptions: w } = u, T = ["__oneof_select", "__anyof_select"].some((e) => l.includes(e)), E = !T && !!C.formContext.allowFreeSoloEnum, D = x && !T;
|
|
17
26
|
return /* @__PURE__ */ r(t, {
|
|
18
|
-
id:
|
|
19
|
-
value: o(
|
|
20
|
-
freeSolo:
|
|
27
|
+
id: l,
|
|
28
|
+
value: h ? s(d, w) : o(d, w),
|
|
29
|
+
freeSolo: E,
|
|
21
30
|
forcePopupIcon: !0,
|
|
22
31
|
selectOnFocus: !0,
|
|
23
32
|
clearOnBlur: !0,
|
|
24
33
|
handleHomeEndKeys: !0,
|
|
25
|
-
options:
|
|
26
|
-
readOnly:
|
|
27
|
-
disabled:
|
|
28
|
-
multiple:
|
|
29
|
-
disableClearable: !
|
|
34
|
+
options: w,
|
|
35
|
+
readOnly: m,
|
|
36
|
+
disabled: p,
|
|
37
|
+
multiple: h,
|
|
38
|
+
disableClearable: !D,
|
|
30
39
|
onChange: (t, n) => {
|
|
31
|
-
e(n) && "inputValue" in n ?
|
|
40
|
+
h ? _(c(n)) : e(n) && "inputValue" in n ? _(n.inputValue) : e(n) && "value" in n ? _(n.value) : _(n);
|
|
32
41
|
},
|
|
33
42
|
renderInput: (e) => /* @__PURE__ */ r(n, {
|
|
34
43
|
...e,
|
|
35
|
-
required:
|
|
36
|
-
placeholder:
|
|
37
|
-
error:
|
|
38
|
-
autoFocus:
|
|
39
|
-
onFocus:
|
|
40
|
-
onBlur:
|
|
44
|
+
required: f,
|
|
45
|
+
placeholder: b,
|
|
46
|
+
error: S && S.length > 0,
|
|
47
|
+
autoFocus: g,
|
|
48
|
+
onFocus: y && (() => y(l, d?.value)),
|
|
49
|
+
onBlur: v && (() => v(l, d?.value))
|
|
41
50
|
}),
|
|
42
51
|
filterOptions: (e, t) => {
|
|
43
52
|
let n = a(e, t), { inputValue: r } = t, i = e.some((e) => r === e.label);
|
|
44
|
-
return
|
|
53
|
+
return E && r !== "" && !i && n.push({
|
|
45
54
|
value: r,
|
|
46
55
|
label: `Set to custom value "${r}"`
|
|
47
56
|
}), n;
|
|
@@ -49,6 +58,6 @@ var s = (i) => {
|
|
|
49
58
|
});
|
|
50
59
|
};
|
|
51
60
|
//#endregion
|
|
52
|
-
export {
|
|
61
|
+
export { l as SelectWidget, o as findValueOption, c as fromMultipleAutocompleteValue, s as toMultipleAutocompleteValue };
|
|
53
62
|
|
|
54
63
|
//# sourceMappingURL=SelectWidget.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SelectWidget.js","names":[],"sources":["../../../../src/components/JsonSchemaForm/widgets/SelectWidget.tsx"],"sourcesContent":["import { CustomFormContext } from '@/components/JsonSchemaForm/CustomFormContext'\nimport { Widget, WidgetProps, EnumOptionsType } from '@rjsf/utils'\nimport { Autocomplete, TextField } from '@mui/material'\nimport { createFilterOptions } from '@mui/material/Autocomplete'\nimport { isObject } from 'lodash-es'\n\nconst filter = createFilterOptions<EnumOptionsType>()\n\n/**\n * This function finds the enum option that has the corresponding value and returns it.\n *\n * If value is nullish, this fn returns null. If there is no corresponding option, then a new object is returned\n * where the label and value are set to the provided value.\n */\nexport function findValueOption(\n value: string | null | undefined,\n options: EnumOptionsType[],\n): EnumOptionsType | string | null {\n if (value == null) {\n return null\n }\n\n const correspondingOption = options.filter(option => option.value === value)\n if (correspondingOption.length > 0) {\n return correspondingOption[0]\n } else {\n return { value: value, label: value }\n }\n}\n\ntype SelectWidgetProps = WidgetProps & {\n isClearable?: boolean\n}\n\n/**\n * Select widget compatible with react-jsonschema-form enumerations\n */\nexport const SelectWidget: Widget = (props: SelectWidgetProps) => {\n const {\n id,\n options,\n value,\n required,\n disabled,\n readonly,\n multiple,\n autofocus,\n onChange,\n onBlur,\n onFocus,\n placeholder,\n isClearable: _isClearable = true,\n rawErrors,\n registry,\n } = props\n\n const { enumOptions } = options as {\n enumOptions: EnumOptionsType[]\n }\n\n // If the ID includes one of these, then this is a widget used to select a schema in `oneOf` or `anyOf`.\n // In these cases, we should not allow free solo input.\n const isAnyOrOneOfOption = ['__oneof_select', '__anyof_select'].some(\n multiSchemaTag => id.includes(multiSchemaTag),\n )\n\n const allowFreeSolo =\n !isAnyOrOneOfOption &&\n Boolean((registry.formContext as CustomFormContext).allowFreeSoloEnum)\n\n // any/oneOf options should not be clearable\n const isClearable = _isClearable && !isAnyOrOneOfOption\n\n return (\n <Autocomplete\n id={id}\n value={findValueOption(value, enumOptions)}\n freeSolo={allowFreeSolo}\n forcePopupIcon\n selectOnFocus\n clearOnBlur\n handleHomeEndKeys\n options={enumOptions}\n readOnly={readonly}\n disabled={disabled}\n multiple={multiple}\n disableClearable={!isClearable}\n onChange={(event, newValue) => {\n if (isObject(newValue) && 'inputValue' in newValue) {\n // Create a new value from the user input\n onChange(newValue.inputValue)\n } else if (isObject(newValue) && 'value' in newValue) {\n onChange(newValue.value)\n } else if (typeof newValue === 'string') {\n onChange(newValue)\n } else {\n onChange(newValue)\n }\n }}\n renderInput={params => (\n <TextField\n {...params}\n required={required}\n placeholder={placeholder}\n error={rawErrors && rawErrors.length > 0}\n autoFocus={autofocus}\n onFocus={onFocus && (() => onFocus(id, value?.value))}\n onBlur={onBlur && (() => onBlur(id, value?.value))}\n />\n )}\n filterOptions={(options, params) => {\n const filtered = filter(options, params)\n\n const { inputValue } = params\n // Suggest the creation of a new value\n const isExisting = options.some(option => inputValue === option.label)\n if (allowFreeSolo && inputValue !== '' && !isExisting) {\n filtered.push({\n value: inputValue,\n label: `Set to custom value \"${inputValue}\"`,\n })\n }\n\n return filtered\n }}\n />\n )\n}\n"],"mappings":";;;;;AAMA,IAAM,IAAS,EAAqC;AAQpD,SAAgB,EACd,GACA,GACiC;CACjC,IAAI,KAAS,MACX,OAAO;CAGT,IAAM,IAAsB,EAAQ,QAAO,MAAU,EAAO,UAAU,CAAK;CAIzE,OAHE,EAAoB,SAAS,IACxB,EAAoB,KAEpB;EAAS;EAAO,OAAO;CAAM;AAExC;AASA,IAAa,KAAwB,MAA6B;CAChE,IAAM,EACJ,OACA,YACA,UACA,aACA,aACA,aACA,aACA,cACA,aACA,WACA,YACA,gBACA,aAAa,IAAe,IAC5B,cACA,gBACE,GAEE,EAAE,mBAAgB,GAMlB,IAAqB,CAAC,kBAAkB,gBAAgB,EAAE,MAC9D,MAAkB,EAAG,SAAS,CAAc,CAC9C,GAEM,IACJ,CAAC,KACD,EAAS,EAAS,YAAkC,mBAGhD,IAAc,KAAgB,CAAC;CAErC,OACE,kBAAC,GAAD;EACM;EACJ,
|
|
1
|
+
{"version":3,"file":"SelectWidget.js","names":[],"sources":["../../../../src/components/JsonSchemaForm/widgets/SelectWidget.tsx"],"sourcesContent":["import { CustomFormContext } from '@/components/JsonSchemaForm/CustomFormContext'\nimport { Widget, WidgetProps, EnumOptionsType } from '@rjsf/utils'\nimport { Autocomplete, TextField } from '@mui/material'\nimport { createFilterOptions } from '@mui/material/Autocomplete'\nimport { isObject } from 'lodash-es'\n\nconst filter = createFilterOptions<EnumOptionsType>()\n\n/**\n * This function finds the enum option that has the corresponding value and returns it.\n *\n * If value is nullish, this fn returns null. If there is no corresponding option, then a new object is returned\n * where the label and value are set to the provided value.\n */\nexport function findValueOption(\n value: string | null | undefined,\n options: EnumOptionsType[],\n): EnumOptionsType | string | null {\n if (value == null) {\n return null\n }\n\n const correspondingOption = options.filter(option => option.value === value)\n if (correspondingOption.length > 0) {\n return correspondingOption[0]\n } else {\n return { value: value, label: value }\n }\n}\n\n/**\n * Maps a multi-select form value (an array of enum values) to the Autocomplete option objects it\n * selects. Values with no matching option (e.g. free-solo input) become `{ value, label: value }`.\n * A non-array value selects nothing.\n */\nexport function toMultipleAutocompleteValue(\n value: unknown,\n options: EnumOptionsType[],\n): EnumOptionsType[] {\n if (!Array.isArray(value)) {\n return []\n }\n return value.map(\n v =>\n options.find(option => option.value === v) ?? {\n value: v,\n label: String(v),\n },\n )\n}\n\n/**\n * Maps a multi-select Autocomplete selection (option objects and/or free-solo strings) back to the\n * array of enum values stored in the form data.\n */\nexport function fromMultipleAutocompleteValue(newValue: unknown): unknown[] {\n if (!Array.isArray(newValue)) {\n return []\n }\n return newValue.map((v: unknown) =>\n isObject(v) && 'value' in v ? v.value : v,\n )\n}\n\ntype SelectWidgetProps = WidgetProps & {\n isClearable?: boolean\n}\n\n/**\n * Select widget compatible with react-jsonschema-form enumerations\n */\nexport const SelectWidget: Widget = (props: SelectWidgetProps) => {\n const {\n id,\n options,\n value,\n required,\n disabled,\n readonly,\n multiple,\n autofocus,\n onChange,\n onBlur,\n onFocus,\n placeholder,\n isClearable: _isClearable = true,\n rawErrors,\n registry,\n } = props\n\n const { enumOptions } = options as {\n enumOptions: EnumOptionsType[]\n }\n\n // If the ID includes one of these, then this is a widget used to select a schema in `oneOf` or `anyOf`.\n // In these cases, we should not allow free solo input.\n const isAnyOrOneOfOption = ['__oneof_select', '__anyof_select'].some(\n multiSchemaTag => id.includes(multiSchemaTag),\n )\n\n const allowFreeSolo =\n !isAnyOrOneOfOption &&\n Boolean((registry.formContext as CustomFormContext).allowFreeSoloEnum)\n\n // any/oneOf options should not be clearable\n const isClearable = _isClearable && !isAnyOrOneOfOption\n\n return (\n <Autocomplete\n id={id}\n value={\n multiple\n ? toMultipleAutocompleteValue(value, enumOptions)\n : findValueOption(value, enumOptions)\n }\n freeSolo={allowFreeSolo}\n forcePopupIcon\n selectOnFocus\n clearOnBlur\n handleHomeEndKeys\n options={enumOptions}\n readOnly={readonly}\n disabled={disabled}\n multiple={multiple}\n disableClearable={!isClearable}\n onChange={(event, newValue) => {\n if (multiple) {\n onChange(fromMultipleAutocompleteValue(newValue))\n } else if (isObject(newValue) && 'inputValue' in newValue) {\n // Create a new value from the user input\n onChange(newValue.inputValue)\n } else if (isObject(newValue) && 'value' in newValue) {\n onChange(newValue.value)\n } else if (typeof newValue === 'string') {\n onChange(newValue)\n } else {\n onChange(newValue)\n }\n }}\n renderInput={params => (\n <TextField\n {...params}\n required={required}\n placeholder={placeholder}\n error={rawErrors && rawErrors.length > 0}\n autoFocus={autofocus}\n onFocus={onFocus && (() => onFocus(id, value?.value))}\n onBlur={onBlur && (() => onBlur(id, value?.value))}\n />\n )}\n filterOptions={(options, params) => {\n const filtered = filter(options, params)\n\n const { inputValue } = params\n // Suggest the creation of a new value\n const isExisting = options.some(option => inputValue === option.label)\n if (allowFreeSolo && inputValue !== '' && !isExisting) {\n filtered.push({\n value: inputValue,\n label: `Set to custom value \"${inputValue}\"`,\n })\n }\n\n return filtered\n }}\n />\n )\n}\n"],"mappings":";;;;;AAMA,IAAM,IAAS,EAAqC;AAQpD,SAAgB,EACd,GACA,GACiC;CACjC,IAAI,KAAS,MACX,OAAO;CAGT,IAAM,IAAsB,EAAQ,QAAO,MAAU,EAAO,UAAU,CAAK;CAIzE,OAHE,EAAoB,SAAS,IACxB,EAAoB,KAEpB;EAAS;EAAO,OAAO;CAAM;AAExC;AAOA,SAAgB,EACd,GACA,GACmB;CAInB,OAHK,MAAM,QAAQ,CAAK,IAGjB,EAAM,KACX,MACE,EAAQ,MAAK,MAAU,EAAO,UAAU,CAAC,KAAK;EAC5C,OAAO;EACP,OAAO,OAAO,CAAC;CACjB,CACJ,IARS,CAAC;AASZ;AAMA,SAAgB,EAA8B,GAA8B;CAI1E,OAHK,MAAM,QAAQ,CAAQ,IAGpB,EAAS,KAAK,MACnB,EAAS,CAAC,KAAK,WAAW,IAAI,EAAE,QAAQ,CAC1C,IAJS,CAAC;AAKZ;AASA,IAAa,KAAwB,MAA6B;CAChE,IAAM,EACJ,OACA,YACA,UACA,aACA,aACA,aACA,aACA,cACA,aACA,WACA,YACA,gBACA,aAAa,IAAe,IAC5B,cACA,gBACE,GAEE,EAAE,mBAAgB,GAMlB,IAAqB,CAAC,kBAAkB,gBAAgB,EAAE,MAC9D,MAAkB,EAAG,SAAS,CAAc,CAC9C,GAEM,IACJ,CAAC,KACD,EAAS,EAAS,YAAkC,mBAGhD,IAAc,KAAgB,CAAC;CAErC,OACE,kBAAC,GAAD;EACM;EACJ,OACE,IACI,EAA4B,GAAO,CAAW,IAC9C,EAAgB,GAAO,CAAW;EAExC,UAAU;EACV,gBAAA;EACA,eAAA;EACA,aAAA;EACA,mBAAA;EACA,SAAS;EACT,UAAU;EACA;EACA;EACV,kBAAkB,CAAC;EACnB,WAAW,GAAO,MAAa;GAC7B,AAAI,IACF,EAAS,EAA8B,CAAQ,CAAC,IACvC,EAAS,CAAQ,KAAK,gBAAgB,IAE/C,EAAS,EAAS,UAAU,IACnB,EAAS,CAAQ,KAAK,WAAW,IAC1C,EAAS,EAAS,KAAK,IAEvB,EAAS,CAEQ;EAErB;EACA,cAAa,MACX,kBAAC,GAAD;GACE,GAAI;GACM;GACG;GACb,OAAO,KAAa,EAAU,SAAS;GACvC,WAAW;GACX,SAAS,YAAkB,EAAQ,GAAI,GAAO,KAAK;GACnD,QAAQ,YAAiB,EAAO,GAAI,GAAO,KAAK;EACjD,CAAA;EAEH,gBAAgB,GAAS,MAAW;GAClC,IAAM,IAAW,EAAO,GAAS,CAAM,GAEjC,EAAE,kBAAe,GAEjB,IAAa,EAAQ,MAAK,MAAU,MAAe,EAAO,KAAK;GAQrE,OAPI,KAAiB,MAAe,MAAM,CAAC,KACzC,EAAS,KAAK;IACZ,OAAO;IACP,OAAO,wBAAwB,EAAW;GAC5C,CAAC,GAGI;EACT;CACD,CAAA;AAEL"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
.
|
|
1
|
+
._row_bmqgz_1{--qb-pill-color:var(--synapse-primary-action-color);align-items:center;gap:8px;min-height:30px;padding:4px 0;display:flex}._remove_bmqgz_10{border:1px solid var(--synapse-border-color-gray);color:var(--synapse-gray-600)!important;border-radius:4px!important;padding:4px!important}._remove_bmqgz_10:hover{color:var(--synapse-error);border-color:var(--synapse-error);background-color:#0000!important}._propertyPicker_bmqgz_22 .MuiOutlinedInput-root,._operatorPicker_bmqgz_23 .MuiOutlinedInput-root,._rangeInput_bmqgz_24 .MuiOutlinedInput-root,._textInput_bmqgz_25 .MuiOutlinedInput-root{height:36px;font-size:14px}._propertyPicker_bmqgz_22{min-width:200px}._operatorPicker_bmqgz_23{min-width:120px}._rangeInput_bmqgz_24{width:120px}._textInput_bmqgz_25{min-width:200px}._pillGroupContainer_bmqgz_46{flex-direction:column;flex:1;gap:6px;min-width:0;display:flex}._pillFilter_bmqgz_54{max-width:260px}._pillGroupScroll_bmqgz_58{max-height:120px;overflow-y:auto}._pillGroup_bmqgz_46{flex-wrap:wrap;gap:6px;display:flex}._pillGroup_bmqgz_46 .MuiToggleButton-root,._pillGroup_bmqgz_46 .MuiToggleButtonGroup-grouped{text-transform:none;padding:2px 12px;font-size:13px;line-height:1.4;border:1px solid var(--synapse-gray-dark)!important;border-radius:999px!important;margin:0!important}._pillGroup_bmqgz_46 .MuiToggleButton-root.Mui-selected{background-color:var(--qb-pill-color);color:#fff;border-color:var(--qb-pill-color)}._pillGroup_bmqgz_46 .MuiToggleButton-root.Mui-selected:hover{background-color:var(--qb-pill-color)}
|
|
@@ -1,6 +1,9 @@
|
|
|
1
1
|
import { QBCondition } from './QueryBuilderTypes';
|
|
2
2
|
export type FilterConditionRowProps = {
|
|
3
3
|
condition: QBCondition;
|
|
4
|
+
parentGroupId: string;
|
|
5
|
+
index: number;
|
|
4
6
|
};
|
|
5
7
|
export declare function FilterConditionRow(props: FilterConditionRowProps): import("react/jsx-runtime").JSX.Element;
|
|
8
|
+
export declare const PILL_FILTER_THRESHOLD = 40;
|
|
6
9
|
//# sourceMappingURL=FilterConditionRow.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"FilterConditionRow.d.ts","sourceRoot":"","sources":["../../../src/components/QueryBuilder/FilterConditionRow.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"FilterConditionRow.d.ts","sourceRoot":"","sources":["../../../src/components/QueryBuilder/FilterConditionRow.tsx"],"names":[],"mappings":"AA6BA,OAAO,EAAE,WAAW,EAAiB,MAAM,qBAAqB,CAAA;AAEhE,MAAM,MAAM,uBAAuB,GAAG;IACpC,SAAS,EAAE,WAAW,CAAA;IACtB,aAAa,EAAE,MAAM,CAAA;IACrB,KAAK,EAAE,MAAM,CAAA;CACd,CAAA;AAED,wBAAgB,kBAAkB,CAAC,KAAK,EAAE,uBAAuB,2CAmKhE;AAuJD,eAAO,MAAM,qBAAqB,KAAK,CAAA"}
|
|
@@ -1,58 +1,61 @@
|
|
|
1
1
|
import { splitAndTrim as e } from "../../utils/functions/StringUtils.js";
|
|
2
|
-
import {
|
|
3
|
-
import { availableOpsForKind as n, classifyColumn as r,
|
|
4
|
-
import
|
|
5
|
-
import
|
|
6
|
-
import
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
import S from "@mui/
|
|
10
|
-
import C from "
|
|
2
|
+
import { defaultOpForColumnType as t } from "./queryBuilderOperations.js";
|
|
3
|
+
import { availableOpsForKind as n, classifyColumn as r, facetValueMatchesFilter as i, isFacetColumnResultValues as a, labelForOp as o } from "./queryBuilderMetadata.js";
|
|
4
|
+
import { useQueryBuilderInternalContext as s } from "./QueryBuilderInternalContext.js";
|
|
5
|
+
import c from "./FilterConditionRow.module.js";
|
|
6
|
+
import l from "./queryBuilderDrag.module.js";
|
|
7
|
+
import { QBDragHandle as u } from "./QBDragHandle.js";
|
|
8
|
+
import { useCallback as d, useMemo as f, useState as p } from "react";
|
|
9
|
+
import { Autocomplete as m, IconButton as h, InputLabel as g, MenuItem as _, Select as v, TextField as y, ToggleButton as b, ToggleButtonGroup as x, Tooltip as S } from "@mui/material";
|
|
10
|
+
import { Fragment as C, jsx as w, jsxs as T } from "react/jsx-runtime";
|
|
11
|
+
import { useSortable as E } from "@dnd-kit/react/sortable";
|
|
12
|
+
import D from "@mui/icons-material/DeleteOutline";
|
|
11
13
|
//#region src/components/QueryBuilder/FilterConditionRow.tsx
|
|
12
|
-
function
|
|
13
|
-
let { condition: i } = e, { columnModels:
|
|
14
|
+
function O(e) {
|
|
15
|
+
let { condition: i, parentGroupId: d, index: p } = e, { columnModels: b, facetResults: x, onlyFacetedColumns: O, getColumnDisplayName: A, updateConditionAt: j, removeConditionAt: P } = s(), { ref: F, handleRef: I, isDragSource: L } = E({
|
|
16
|
+
id: i.id,
|
|
17
|
+
index: p,
|
|
18
|
+
group: d,
|
|
19
|
+
disabled: { droppable: !0 }
|
|
20
|
+
}), R = f(() => new Set(x.filter(a).map((e) => e.columnName)), [x]), z = f(() => (O ? b.filter((e) => R.has(e.name)) : b).map((e) => ({
|
|
14
21
|
name: e.name,
|
|
15
22
|
columnType: e.columnType,
|
|
16
|
-
label:
|
|
23
|
+
label: A(e.name)
|
|
17
24
|
})), [
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
]),
|
|
23
|
-
return /* @__PURE__ */
|
|
24
|
-
|
|
25
|
+
b,
|
|
26
|
+
R,
|
|
27
|
+
O,
|
|
28
|
+
A
|
|
29
|
+
]), B = z.find((e) => e.name === i.columnName) ?? null, V = i.columnName != null && R.has(i.columnName), H = r(i.columnType, V), U = n(H), W = `qb-op-label-${i.id}`;
|
|
30
|
+
return /* @__PURE__ */ T("div", {
|
|
31
|
+
ref: F,
|
|
32
|
+
className: `${c.row}${L ? ` ${l.dragSource}` : ""}`,
|
|
25
33
|
role: "group",
|
|
26
34
|
"aria-label": `Filter condition${i.columnName ? ` on ${i.columnName}` : ""}`,
|
|
27
35
|
"data-qb-node-id": i.id,
|
|
28
36
|
children: [
|
|
29
|
-
/* @__PURE__ */
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
size: "small",
|
|
33
|
-
className: o.dragHandle,
|
|
34
|
-
"aria-label": "Drag to reorder condition",
|
|
35
|
-
children: /* @__PURE__ */ b(C, { fontSize: "small" })
|
|
36
|
-
})
|
|
37
|
+
/* @__PURE__ */ w(u, {
|
|
38
|
+
handleRef: I,
|
|
39
|
+
label: "Drag condition into a condition group"
|
|
37
40
|
}),
|
|
38
|
-
/* @__PURE__ */
|
|
41
|
+
/* @__PURE__ */ w(S, {
|
|
39
42
|
title: "Remove condition",
|
|
40
|
-
children: /* @__PURE__ */
|
|
43
|
+
children: /* @__PURE__ */ w(h, {
|
|
41
44
|
size: "small",
|
|
42
|
-
className:
|
|
45
|
+
className: c.remove,
|
|
43
46
|
"aria-label": "Remove condition",
|
|
44
|
-
onClick: () =>
|
|
45
|
-
children: /* @__PURE__ */
|
|
47
|
+
onClick: () => P(i.id),
|
|
48
|
+
children: /* @__PURE__ */ w(D, { fontSize: "small" })
|
|
46
49
|
})
|
|
47
50
|
}),
|
|
48
|
-
/* @__PURE__ */
|
|
49
|
-
className:
|
|
51
|
+
/* @__PURE__ */ w(m, {
|
|
52
|
+
className: c.propertyPicker,
|
|
50
53
|
size: "small",
|
|
51
|
-
options:
|
|
54
|
+
options: z,
|
|
52
55
|
getOptionLabel: (e) => e.label,
|
|
53
56
|
isOptionEqualToValue: (e, t) => e.name === t.name,
|
|
54
|
-
value:
|
|
55
|
-
renderInput: (e) => /* @__PURE__ */
|
|
57
|
+
value: B,
|
|
58
|
+
renderInput: (e) => /* @__PURE__ */ w(y, {
|
|
56
59
|
...e,
|
|
57
60
|
variant: "outlined",
|
|
58
61
|
placeholder: "Select property…",
|
|
@@ -61,13 +64,13 @@ function w(e) {
|
|
|
61
64
|
"aria-label": "Property"
|
|
62
65
|
}
|
|
63
66
|
}),
|
|
64
|
-
onChange: (e,
|
|
65
|
-
if (
|
|
66
|
-
let
|
|
67
|
-
|
|
68
|
-
columnName:
|
|
69
|
-
columnType:
|
|
70
|
-
op:
|
|
67
|
+
onChange: (e, a) => {
|
|
68
|
+
if (a == null) return;
|
|
69
|
+
let o = n(r(a.columnType, N(x, a.name))), s = o.length > 0 ? o[0] : t(a.columnType);
|
|
70
|
+
j(i.id, {
|
|
71
|
+
columnName: a.name,
|
|
72
|
+
columnType: a.columnType,
|
|
73
|
+
op: s,
|
|
71
74
|
values: [],
|
|
72
75
|
rangeMin: null,
|
|
73
76
|
rangeMax: null,
|
|
@@ -75,183 +78,180 @@ function w(e) {
|
|
|
75
78
|
});
|
|
76
79
|
}
|
|
77
80
|
}),
|
|
78
|
-
|
|
79
|
-
id:
|
|
81
|
+
U.length > 0 && /* @__PURE__ */ T(C, { children: [/* @__PURE__ */ w(g, {
|
|
82
|
+
id: W,
|
|
80
83
|
sx: { display: "none" },
|
|
81
84
|
children: "Operator"
|
|
82
|
-
}), /* @__PURE__ */
|
|
83
|
-
className:
|
|
85
|
+
}), /* @__PURE__ */ w(v, {
|
|
86
|
+
className: c.operatorPicker,
|
|
84
87
|
size: "small",
|
|
85
|
-
labelId:
|
|
88
|
+
labelId: W,
|
|
86
89
|
variant: "outlined",
|
|
87
|
-
value:
|
|
90
|
+
value: U.includes(i.op) ? i.op : U[0],
|
|
88
91
|
onChange: (e) => {
|
|
89
92
|
let t = e.target.value;
|
|
90
|
-
|
|
93
|
+
j(i.id, { op: t });
|
|
91
94
|
},
|
|
92
95
|
"aria-label": "Operator",
|
|
93
|
-
children:
|
|
96
|
+
children: U.map((e) => /* @__PURE__ */ w(_, {
|
|
94
97
|
value: e,
|
|
95
|
-
children:
|
|
98
|
+
children: o(e)
|
|
96
99
|
}, e))
|
|
97
100
|
})] }),
|
|
98
|
-
/* @__PURE__ */
|
|
101
|
+
/* @__PURE__ */ w(k, {
|
|
99
102
|
condition: i,
|
|
100
|
-
columnKind:
|
|
101
|
-
hasFacet:
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
onChange: (e) => E(i.id, e)
|
|
103
|
+
columnKind: H,
|
|
104
|
+
hasFacet: V,
|
|
105
|
+
facetValues: V && i.columnName != null ? M(x, i.columnName) : [],
|
|
106
|
+
onChange: (e) => j(i.id, e)
|
|
105
107
|
})
|
|
106
108
|
]
|
|
107
109
|
});
|
|
108
110
|
}
|
|
109
|
-
function
|
|
110
|
-
let { condition: n, columnKind: r, hasFacet: i, facetValues: a, onChange:
|
|
111
|
-
if (
|
|
112
|
-
switch (
|
|
111
|
+
function k(t) {
|
|
112
|
+
let { condition: n, columnKind: r, hasFacet: i, facetValues: a, onChange: o } = t, { op: s } = n;
|
|
113
|
+
if (s === "has_value" || s === "no_value") return null;
|
|
114
|
+
switch (s) {
|
|
113
115
|
case "is_any_of":
|
|
114
|
-
case "is_all_of": return (r === "enum" || r === "list") && i ? /* @__PURE__ */
|
|
116
|
+
case "is_all_of": return (r === "enum" || r === "list") && i ? /* @__PURE__ */ w(j, {
|
|
117
|
+
columnName: n.columnName,
|
|
115
118
|
facetValues: a,
|
|
116
119
|
selectedValues: n.values,
|
|
117
|
-
onChange: (e) =>
|
|
118
|
-
}) : /* @__PURE__ */
|
|
119
|
-
className:
|
|
120
|
+
onChange: (e) => o({ values: e })
|
|
121
|
+
}) : /* @__PURE__ */ w(y, {
|
|
122
|
+
className: c.textInput,
|
|
120
123
|
size: "small",
|
|
121
124
|
variant: "outlined",
|
|
122
125
|
placeholder: "Comma-separated values",
|
|
123
126
|
value: n.values.join(", "),
|
|
124
127
|
slotProps: { htmlInput: { "aria-label": "Values" } },
|
|
125
|
-
onChange: (t) =>
|
|
128
|
+
onChange: (t) => o({ values: e(t.target.value) })
|
|
126
129
|
});
|
|
127
|
-
case "between": return /* @__PURE__ */
|
|
128
|
-
/* @__PURE__ */
|
|
129
|
-
className:
|
|
130
|
+
case "between": return /* @__PURE__ */ T(C, { children: [
|
|
131
|
+
/* @__PURE__ */ w(y, {
|
|
132
|
+
className: c.rangeInput,
|
|
130
133
|
size: "small",
|
|
131
134
|
variant: "outlined",
|
|
132
135
|
type: "text",
|
|
133
136
|
placeholder: "Min",
|
|
134
137
|
value: n.rangeMin ?? "",
|
|
135
138
|
slotProps: { htmlInput: { "aria-label": "Minimum" } },
|
|
136
|
-
onChange: (e) =>
|
|
139
|
+
onChange: (e) => o({ rangeMin: e.target.value })
|
|
137
140
|
}),
|
|
138
|
-
/* @__PURE__ */
|
|
141
|
+
/* @__PURE__ */ w("span", {
|
|
139
142
|
"aria-hidden": "true",
|
|
140
143
|
children: "to"
|
|
141
144
|
}),
|
|
142
|
-
/* @__PURE__ */
|
|
143
|
-
className:
|
|
145
|
+
/* @__PURE__ */ w(y, {
|
|
146
|
+
className: c.rangeInput,
|
|
144
147
|
size: "small",
|
|
145
148
|
variant: "outlined",
|
|
146
149
|
type: "text",
|
|
147
150
|
placeholder: "Max",
|
|
148
151
|
value: n.rangeMax ?? "",
|
|
149
152
|
slotProps: { htmlInput: { "aria-label": "Maximum" } },
|
|
150
|
-
onChange: (e) =>
|
|
153
|
+
onChange: (e) => o({ rangeMax: e.target.value })
|
|
151
154
|
})
|
|
152
155
|
] });
|
|
153
156
|
case "gt":
|
|
154
|
-
case "gte": return /* @__PURE__ */
|
|
155
|
-
className:
|
|
157
|
+
case "gte": return /* @__PURE__ */ w(y, {
|
|
158
|
+
className: c.rangeInput,
|
|
156
159
|
size: "small",
|
|
157
160
|
variant: "outlined",
|
|
158
161
|
type: "text",
|
|
159
162
|
value: n.rangeMin ?? "",
|
|
160
163
|
slotProps: { htmlInput: { "aria-label": "Value" } },
|
|
161
|
-
onChange: (e) =>
|
|
164
|
+
onChange: (e) => o({ rangeMin: e.target.value })
|
|
162
165
|
});
|
|
163
166
|
case "lt":
|
|
164
|
-
case "lte": return /* @__PURE__ */
|
|
165
|
-
className:
|
|
167
|
+
case "lte": return /* @__PURE__ */ w(y, {
|
|
168
|
+
className: c.rangeInput,
|
|
166
169
|
size: "small",
|
|
167
170
|
variant: "outlined",
|
|
168
171
|
type: "text",
|
|
169
172
|
value: n.rangeMax ?? "",
|
|
170
173
|
slotProps: { htmlInput: { "aria-label": "Value" } },
|
|
171
|
-
onChange: (e) =>
|
|
174
|
+
onChange: (e) => o({ rangeMax: e.target.value })
|
|
172
175
|
});
|
|
173
176
|
case "equal":
|
|
174
|
-
case "not_equal": return r === "boolean" ? /* @__PURE__ */ x
|
|
175
|
-
className:
|
|
177
|
+
case "not_equal": return r === "boolean" ? /* @__PURE__ */ T(x, {
|
|
178
|
+
className: c.pillGroup,
|
|
176
179
|
exclusive: !0,
|
|
177
180
|
value: n.values[0] ?? null,
|
|
178
181
|
onChange: (e, t) => {
|
|
179
|
-
|
|
182
|
+
o({ values: t == null ? [] : [t] });
|
|
180
183
|
},
|
|
181
184
|
"aria-label": "Boolean value",
|
|
182
|
-
children: [/* @__PURE__ */ b
|
|
185
|
+
children: [/* @__PURE__ */ w(b, {
|
|
183
186
|
value: "true",
|
|
184
187
|
children: "Yes"
|
|
185
|
-
}), /* @__PURE__ */ b
|
|
188
|
+
}), /* @__PURE__ */ w(b, {
|
|
186
189
|
value: "false",
|
|
187
190
|
children: "No"
|
|
188
191
|
})]
|
|
189
|
-
}) : /* @__PURE__ */
|
|
190
|
-
className:
|
|
192
|
+
}) : /* @__PURE__ */ w(y, {
|
|
193
|
+
className: c.textInput,
|
|
191
194
|
size: "small",
|
|
192
195
|
variant: "outlined",
|
|
193
196
|
value: n.values[0] ?? "",
|
|
194
197
|
slotProps: { htmlInput: { "aria-label": "Value" } },
|
|
195
|
-
onChange: (e) =>
|
|
198
|
+
onChange: (e) => o({ values: [e.target.value] })
|
|
196
199
|
});
|
|
197
200
|
case "contains":
|
|
198
201
|
case "starts_with":
|
|
199
202
|
case "ends_with":
|
|
200
|
-
case "is_exactly": return /* @__PURE__ */
|
|
201
|
-
className:
|
|
203
|
+
case "is_exactly": return /* @__PURE__ */ w(y, {
|
|
204
|
+
className: c.textInput,
|
|
202
205
|
size: "small",
|
|
203
206
|
variant: "outlined",
|
|
204
207
|
value: n.text ?? "",
|
|
205
208
|
slotProps: { htmlInput: { "aria-label": "Value" } },
|
|
206
|
-
onChange: (e) =>
|
|
209
|
+
onChange: (e) => o({ text: e.target.value })
|
|
207
210
|
});
|
|
208
211
|
default: return null;
|
|
209
212
|
}
|
|
210
213
|
}
|
|
211
|
-
var
|
|
212
|
-
function
|
|
213
|
-
let {
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
d,
|
|
219
|
-
a,
|
|
220
|
-
u
|
|
214
|
+
var A = 40;
|
|
215
|
+
function j(e) {
|
|
216
|
+
let { columnName: t, facetValues: n, selectedValues: r, onChange: a } = e, { getValueDisplayName: o } = s(), [l, u] = p(""), m = n.length > 40, h = d((e) => o(t, e), [o, t]), g = f(() => [...n].sort((e, t) => h(e).localeCompare(h(t), void 0, { sensitivity: "base" })), [n, h]), _ = f(() => m ? g.filter((e) => i(e, h(e), l)) : g, [
|
|
217
|
+
g,
|
|
218
|
+
l,
|
|
219
|
+
m,
|
|
220
|
+
h
|
|
221
221
|
]);
|
|
222
|
-
return /* @__PURE__ */
|
|
223
|
-
className:
|
|
224
|
-
children: [
|
|
225
|
-
className:
|
|
222
|
+
return /* @__PURE__ */ T("div", {
|
|
223
|
+
className: c.pillGroupContainer,
|
|
224
|
+
children: [m && /* @__PURE__ */ w(y, {
|
|
225
|
+
className: c.pillFilter,
|
|
226
226
|
size: "small",
|
|
227
227
|
variant: "outlined",
|
|
228
|
-
placeholder: `Filter ${
|
|
229
|
-
value:
|
|
230
|
-
onChange: (e) =>
|
|
228
|
+
placeholder: `Filter ${n.length} values…`,
|
|
229
|
+
value: l,
|
|
230
|
+
onChange: (e) => u(e.target.value),
|
|
231
231
|
slotProps: { htmlInput: { "aria-label": "Filter values" } }
|
|
232
|
-
}), /* @__PURE__ */
|
|
233
|
-
className:
|
|
234
|
-
children: /* @__PURE__ */
|
|
235
|
-
className:
|
|
236
|
-
value:
|
|
237
|
-
onChange: (e, t) =>
|
|
232
|
+
}), /* @__PURE__ */ w("div", {
|
|
233
|
+
className: c.pillGroupScroll,
|
|
234
|
+
children: /* @__PURE__ */ w(x, {
|
|
235
|
+
className: c.pillGroup,
|
|
236
|
+
value: r,
|
|
237
|
+
onChange: (e, t) => a(t),
|
|
238
238
|
"aria-label": "Selected values",
|
|
239
|
-
children:
|
|
239
|
+
children: _.map((e) => /* @__PURE__ */ w(b, {
|
|
240
240
|
value: e,
|
|
241
|
-
children:
|
|
241
|
+
children: h(e)
|
|
242
242
|
}, e))
|
|
243
243
|
})
|
|
244
244
|
})]
|
|
245
245
|
});
|
|
246
246
|
}
|
|
247
|
-
function
|
|
247
|
+
function M(e, t) {
|
|
248
248
|
let n = e.find((e) => e.columnName === t);
|
|
249
|
-
return n == null ? [] : n.
|
|
249
|
+
return n == null || !a(n) ? [] : n.facetValues.map((e) => e.value);
|
|
250
250
|
}
|
|
251
|
-
function
|
|
252
|
-
return e.some((e) => e.columnName === t && e
|
|
251
|
+
function N(e, t) {
|
|
252
|
+
return e.some((e) => e.columnName === t && a(e));
|
|
253
253
|
}
|
|
254
254
|
//#endregion
|
|
255
|
-
export {
|
|
255
|
+
export { O as FilterConditionRow, A as PILL_FILTER_THRESHOLD };
|
|
256
256
|
|
|
257
257
|
//# sourceMappingURL=FilterConditionRow.js.map
|