@gen-epix/ui-client-casedb 4.0.0 → 4.0.1
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/@types/mui.d.ts +1 -1
- package/dist/@types/{ui-casedb.d.ts → ui-client-casedb.d.ts} +1 -1
- package/dist/_chunks/AddCasesToEventDialog.js +74 -74
- package/dist/_chunks/AddCasesToEventDialog.js.map +1 -1
- package/dist/_chunks/CaseContentForm.js +2 -2
- package/dist/_chunks/CaseContentForm.js.map +1 -1
- package/dist/_chunks/CaseDbDownloadUtil.js +40 -35
- package/dist/_chunks/CaseDbDownloadUtil.js.map +1 -1
- package/dist/_chunks/CaseInfoDialog.js +195 -195
- package/dist/_chunks/CaseInfoDialog.js.map +1 -1
- package/dist/_chunks/CaseSetInfoDialog.js +131 -131
- package/dist/_chunks/CaseSetInfoDialog.js.map +1 -1
- package/dist/_chunks/CaseTypeInfoDialog.js +63 -61
- package/dist/_chunks/CaseTypeInfoDialog.js.map +1 -1
- package/dist/_chunks/CasesAlreadyInCaseSetWarning.js +6 -6
- package/dist/_chunks/CasesAlreadyInCaseSetWarning.js.map +1 -1
- package/dist/_chunks/CompletCaseTypeLoader.js +3 -3
- package/dist/_chunks/CompletCaseTypeLoader.js.map +1 -1
- package/dist/_chunks/CreateEventDialogSuccessNotificationMessage.js +1 -1
- package/dist/_chunks/CreateEventDialogSuccessNotificationMessage.js.map +1 -1
- package/dist/_chunks/CustomTabPanel.js.map +1 -1
- package/dist/_chunks/Dashboard.js +399 -386
- package/dist/_chunks/Dashboard.js.map +1 -1
- package/dist/_chunks/DashboardStoreLoader.js +5 -5
- package/dist/_chunks/DashboardStoreLoader.js.map +1 -1
- package/dist/_chunks/DataCollectionAccessInfo.js +21 -21
- package/dist/_chunks/DataCollectionAccessInfo.js.map +1 -1
- package/dist/_chunks/EpiCurveUtil.js +4 -4
- package/dist/_chunks/EpiCurveUtil.js.map +1 -1
- package/dist/_chunks/EpiCurveWidget.js +189 -183
- package/dist/_chunks/EpiCurveWidget.js.map +1 -1
- package/dist/_chunks/FilterUtil.js +103 -101
- package/dist/_chunks/FilterUtil.js.map +1 -1
- package/dist/_chunks/FindSimilarCasesDialog.js +16 -16
- package/dist/_chunks/FindSimilarCasesDialog.js.map +1 -1
- package/dist/_chunks/FindSimilarCasesUtil.js +9 -9
- package/dist/_chunks/FindSimilarCasesUtil.js.map +1 -1
- package/dist/_chunks/HomePageTrends.js +8 -8
- package/dist/_chunks/HomePageTrends.js.map +1 -1
- package/dist/_chunks/LegendaItem.js +3 -3
- package/dist/_chunks/LegendaItem.js.map +1 -1
- package/dist/_chunks/LineListWidget.js +23 -21
- package/dist/_chunks/LineListWidget.js.map +1 -1
- package/dist/_chunks/PanelSeparator.js +374 -384
- package/dist/_chunks/PanelSeparator.js.map +1 -1
- package/dist/_chunks/Upload.js +222 -207
- package/dist/_chunks/Upload.js.map +1 -1
- package/dist/_chunks/UploadUtil.js +1970 -841
- package/dist/_chunks/UploadUtil.js.map +1 -1
- package/dist/_chunks/UserRightsDialog.js +12 -12
- package/dist/_chunks/UserRightsDialog.js.map +1 -1
- package/dist/_chunks/_MapCache.js +2 -2
- package/dist/_chunks/_baseGet.js +1 -1
- package/dist/_chunks/_baseGet.js.map +1 -1
- package/dist/_chunks/_baseIteratee.js +1 -1
- package/dist/_chunks/_baseIteratee.js.map +1 -1
- package/dist/_chunks/_setToString.js.map +1 -1
- package/dist/_chunks/{chunk-KS7C4IRE.js → chunk-BV7QT456.js} +330 -495
- package/dist/_chunks/chunk-BV7QT456.js.map +1 -0
- package/dist/_chunks/cloneDeep.js +11 -9
- package/dist/_chunks/cloneDeep.js.map +1 -1
- package/dist/_chunks/dashboardStore.js +259 -261
- package/dist/_chunks/dashboardStore.js.map +1 -1
- package/dist/_chunks/esm.js +2900 -2868
- package/dist/_chunks/esm.js.map +1 -1
- package/dist/_chunks/format.js +8 -8
- package/dist/_chunks/format.js.map +1 -1
- package/dist/_chunks/index.esm.js +919 -796
- package/dist/_chunks/index.esm.js.map +1 -1
- package/dist/_chunks/index.module.js +1 -1
- package/dist/_chunks/index.module.js.map +1 -1
- package/dist/_chunks/protectedTokens.js +79 -81
- package/dist/_chunks/protectedTokens.js.map +1 -1
- package/dist/_chunks/react.js +1 -1
- package/dist/_chunks/react.js.map +1 -1
- package/dist/_chunks/round.js +1 -1
- package/dist/_chunks/round.js.map +1 -1
- package/dist/_chunks/shallow.js +2 -2
- package/dist/_chunks/shallow.js.map +1 -1
- package/dist/_chunks/sync.js +198 -161
- package/dist/_chunks/sync.js.map +1 -1
- package/dist/_chunks/toDate.js +1 -1
- package/dist/_chunks/toDate.js.map +1 -1
- package/dist/_chunks/toString.js +1 -1
- package/dist/_chunks/toString.js.map +1 -1
- package/dist/_chunks/useUnit.js.map +1 -1
- package/dist/_chunks/vanilla.js +1 -1
- package/dist/_chunks/vanilla.js.map +1 -1
- package/dist/_chunks/yup.js +5 -5
- package/dist/_chunks/yup.js.map +1 -1
- package/dist/classes/filters/SelectionFilter.d.ts +2 -2
- package/dist/classes/filters/TreeFilter.d.ts +2 -2
- package/dist/classes/services/DataService/index.js +3 -3
- package/dist/classes/services/DataService/index.js.map +1 -1
- package/dist/classes/services/EventBusService/EventBusService.d.ts +1 -1
- package/dist/classes/services/EventBusService/index.js.map +1 -1
- package/dist/classes/services/LineListService/LineListServiceAbstract/index.js +1 -1
- package/dist/classes/services/LineListService/LineListServiceAbstract/index.js.map +1 -1
- package/dist/components/app/CaseDbApp/index.js +8 -5
- package/dist/components/app/CaseDbApp/index.js.map +1 -1
- package/dist/components/form/fields/ArrangementEditor/index.js +83 -83
- package/dist/components/form/fields/ArrangementEditor/index.js.map +1 -1
- package/dist/components/ui/AddCasesToEventDialog/AddCasesToEventDialog.d.ts +2 -2
- package/dist/components/ui/CaseContentFormDialog/CaseContentFormDialog.d.ts +2 -2
- package/dist/components/ui/CaseContentFormDialog/index.js +1 -1
- package/dist/components/ui/CaseContentFormDialog/index.js.map +1 -1
- package/dist/components/ui/CaseInfoDialog/CaseInfoDialog.d.ts +2 -2
- package/dist/components/ui/CaseSetInfoDialog/CaseSetInfoDialog.d.ts +2 -2
- package/dist/components/ui/CaseSummary/index.js +1 -1
- package/dist/components/ui/CaseSummary/index.js.map +1 -1
- package/dist/components/ui/CaseTypeInfoDialog/CaseTypeInfoDialog.d.ts +2 -2
- package/dist/components/ui/CaseTypeInfoDialog/CaseTypeInfoDialogContent.d.ts +1 -1
- package/dist/components/ui/CaseTypeInfoDialog/CaseTypeInfoDialogWithLoader.d.ts +2 -2
- package/dist/components/ui/ContextMenu/index.js.map +1 -1
- package/dist/components/ui/CreateEventDialog/CreateEventDialog.d.ts +2 -2
- package/dist/components/ui/CreateEventDialog/index.js +9 -9
- package/dist/components/ui/CreateEventDialog/index.js.map +1 -1
- package/dist/components/ui/Dashboard/DashboardDownloadSidebarItem.d.ts +1 -1
- package/dist/components/ui/Dashboard/DashboardSettingsSidebarItem.d.ts +1 -1
- package/dist/components/ui/Dashboard/DashboardWidget.d.ts +1 -1
- package/dist/components/ui/DashboardEditCases/index.js +1 -1
- package/dist/components/ui/DashboardEditCases/index.js.map +1 -1
- package/dist/components/ui/FileSelector/index.js +46 -46
- package/dist/components/ui/FileSelector/index.js.map +1 -1
- package/dist/components/ui/FindSimilarCasesDialog/FindSimilarCasesDialog.d.ts +2 -2
- package/dist/components/ui/Grouping/index.js +50 -50
- package/dist/components/ui/Grouping/index.js.map +1 -1
- package/dist/components/ui/HistogramWidget/index.js +1 -1
- package/dist/components/ui/HistogramWidget/index.js.map +1 -1
- package/dist/components/ui/MapWidget/index.js +7 -3
- package/dist/components/ui/MapWidget/index.js.map +1 -1
- package/dist/components/ui/RemoveCasesFromEventDialog/RemoveCasesFromEventDialog.d.ts +2 -2
- package/dist/components/ui/RemoveCasesFromEventDialog/index.js +6 -6
- package/dist/components/ui/RemoveCasesFromEventDialog/index.js.map +1 -1
- package/dist/components/ui/RemoveFindSimilarCasesResultDialog/RemoveFindSimilarCasesResultDialog.d.ts +2 -2
- package/dist/components/ui/SequenceDownloadDialog/SequenceDownloadDialog.d.ts +2 -2
- package/dist/components/ui/SequenceDownloadDialog/index.js +22 -22
- package/dist/components/ui/SequenceDownloadDialog/index.js.map +1 -1
- package/dist/components/ui/TreeDescription/index.js.map +1 -1
- package/dist/components/ui/TreeWidget/index.js +11 -11
- package/dist/components/ui/TreeWidget/index.js.map +1 -1
- package/dist/components/ui/Upload/UploadCaseResultTable.d.ts +2 -2
- package/dist/components/ui/Upload/UploadEditColumnValuesDialog.d.ts +2 -2
- package/dist/components/ui/UserRightsDialog/UserRightsDialog.d.ts +2 -2
- package/dist/components/ui/UsersEffectiveRightsDetailsDialog/UsersEffectiveRightsDetailsDialog.d.ts +2 -2
- package/dist/components/ui/UsersEffectiveRightsDetailsDialog/index.js +25 -11
- package/dist/components/ui/UsersEffectiveRightsDetailsDialog/index.js.map +1 -1
- package/dist/components/ui/Warning/index.js.map +1 -1
- package/dist/components/ui/WidgetHeaderIconButton/index.js.map +1 -1
- package/dist/components/ui/WidgetMenu/WidgetMenu.d.ts +1 -1
- package/dist/components/ui/WidgetMenu/index.js +2 -2
- package/dist/components/ui/WidgetMenu/index.js.map +1 -1
- package/dist/components/ui/WidgetUnavailable/index.js.map +1 -1
- package/dist/constants/query.d.ts +1 -1
- package/dist/constants/query.js +1 -1
- package/dist/constants/query.js.map +1 -1
- package/dist/context/caseAbac/CaseAbacContext.d.ts +1 -1
- package/dist/dataHooks/useAssemblyProtocolsQuery/index.js +3 -3
- package/dist/dataHooks/useAssemblyProtocolsQuery/index.js.map +1 -1
- package/dist/dataHooks/useAssemblyProtocolsQuery/useAssemblyProtocolsQuery.d.ts +1 -1
- package/dist/dataHooks/useCaseRightsQuery/index.js +2 -2
- package/dist/dataHooks/useCaseRightsQuery/index.js.map +1 -1
- package/dist/dataHooks/useCaseSetCategoriesQuery/index.js +3 -3
- package/dist/dataHooks/useCaseSetCategoriesQuery/index.js.map +1 -1
- package/dist/dataHooks/useCaseSetCategoriesQuery/useCaseSetCategoriesQuery.d.ts +1 -1
- package/dist/dataHooks/useCaseSetRightsQuery/index.js +2 -2
- package/dist/dataHooks/useCaseSetRightsQuery/index.js.map +1 -1
- package/dist/dataHooks/useCaseSetStatsQuery/index.js +3 -3
- package/dist/dataHooks/useCaseSetStatsQuery/index.js.map +1 -1
- package/dist/dataHooks/useCaseSetStatsQuery/useCaseSetStatsQuery.d.ts +1 -1
- package/dist/dataHooks/useCaseSetStatusesQuery/index.js +3 -3
- package/dist/dataHooks/useCaseSetStatusesQuery/index.js.map +1 -1
- package/dist/dataHooks/useCaseSetStatusesQuery/useCaseSetStatusesQuery.d.ts +1 -1
- package/dist/dataHooks/useCaseSetsQuery/index.js +3 -3
- package/dist/dataHooks/useCaseSetsQuery/index.js.map +1 -1
- package/dist/dataHooks/useCaseSetsQuery/useCaseSetsQuery.d.ts +1 -1
- package/dist/dataHooks/useCaseTypeSetCategoriesQuery/index.js +3 -3
- package/dist/dataHooks/useCaseTypeSetCategoriesQuery/index.js.map +1 -1
- package/dist/dataHooks/useCaseTypeSetCategoriesQuery/useCaseTypeSetCategoriesQuery.d.ts +1 -1
- package/dist/dataHooks/useCaseTypeSetCategoryPurposeQuery/index.js.map +1 -1
- package/dist/dataHooks/useCaseTypeSetCategoryPurposeQuery/useCaseTypeSetCategoryPurposeQuery.d.ts +1 -1
- package/dist/dataHooks/useCaseTypeSetMembersQuery/index.js +2 -2
- package/dist/dataHooks/useCaseTypeSetMembersQuery/index.js.map +1 -1
- package/dist/dataHooks/useCaseTypeSetsQuery/index.js +3 -3
- package/dist/dataHooks/useCaseTypeSetsQuery/index.js.map +1 -1
- package/dist/dataHooks/useCaseTypeSetsQuery/useCaseTypeSetsQuery.d.ts +1 -1
- package/dist/dataHooks/useCaseTypeStatsQuery/index.js +2 -2
- package/dist/dataHooks/useCaseTypeStatsQuery/index.js.map +1 -1
- package/dist/dataHooks/useCaseTypesQuery/index.js +3 -3
- package/dist/dataHooks/useCaseTypesQuery/index.js.map +1 -1
- package/dist/dataHooks/useCaseTypesQuery/useCaseTypesQuery.d.ts +1 -1
- package/dist/dataHooks/useColSetMembersQuery/index.js +2 -2
- package/dist/dataHooks/useColSetMembersQuery/index.js.map +1 -1
- package/dist/dataHooks/useColSetsQuery/index.js +3 -3
- package/dist/dataHooks/useColSetsQuery/index.js.map +1 -1
- package/dist/dataHooks/useColSetsQuery/useColSetsQuery.d.ts +1 -1
- package/dist/dataHooks/useColTypesQuery/index.js.map +1 -1
- package/dist/dataHooks/useColTypesQuery/useColTypesQuery.d.ts +1 -1
- package/dist/dataHooks/useColsQuery/index.js +3 -3
- package/dist/dataHooks/useColsQuery/index.js.map +1 -1
- package/dist/dataHooks/useColsQuery/useColsQuery.d.ts +1 -1
- package/dist/dataHooks/useConceptQuery/index.js +3 -3
- package/dist/dataHooks/useConceptQuery/index.js.map +1 -1
- package/dist/dataHooks/useConceptQuery/useConceptQuery.d.ts +1 -1
- package/dist/dataHooks/useConceptRelationTypeQuery/index.js.map +1 -1
- package/dist/dataHooks/useConceptRelationTypeQuery/useConceptRelationTypeQuery.d.ts +1 -1
- package/dist/dataHooks/useConceptSetTypeQuery/index.js.map +1 -1
- package/dist/dataHooks/useConceptSetTypeQuery/useConceptSetTypeQuery.d.ts +1 -1
- package/dist/dataHooks/useConceptSetsQuery/index.js +3 -3
- package/dist/dataHooks/useConceptSetsQuery/index.js.map +1 -1
- package/dist/dataHooks/useConceptSetsQuery/useConceptSetsQuery.d.ts +1 -1
- package/dist/dataHooks/useDataCollectionSetMembersQuery/index.js +2 -2
- package/dist/dataHooks/useDataCollectionSetMembersQuery/index.js.map +1 -1
- package/dist/dataHooks/useDataCollectionsQuery/index.js +3 -3
- package/dist/dataHooks/useDataCollectionsQuery/index.js.map +1 -1
- package/dist/dataHooks/useDataCollectionsQuery/useDataCollectionsQuery.d.ts +1 -1
- package/dist/dataHooks/useDimTypesQuery/index.js.map +1 -1
- package/dist/dataHooks/useDimTypesQuery/useDimTypesQuery.d.ts +1 -1
- package/dist/dataHooks/useDimsQuery/index.js +3 -3
- package/dist/dataHooks/useDimsQuery/index.js.map +1 -1
- package/dist/dataHooks/useDimsQuery/useDimsQuery.d.ts +1 -1
- package/dist/dataHooks/useDiseasesQuery/index.js +3 -3
- package/dist/dataHooks/useDiseasesQuery/index.js.map +1 -1
- package/dist/dataHooks/useDiseasesQuery/useDiseasesQuery.d.ts +1 -1
- package/dist/dataHooks/useEtiologicalAgentsQuery/index.js +3 -3
- package/dist/dataHooks/useEtiologicalAgentsQuery/index.js.map +1 -1
- package/dist/dataHooks/useEtiologicalAgentsQuery/useEtiologicalAgentsQuery.d.ts +1 -1
- package/dist/dataHooks/useGeneticDistanceProtocolsQuery/index.js +3 -3
- package/dist/dataHooks/useGeneticDistanceProtocolsQuery/index.js.map +1 -1
- package/dist/dataHooks/useGeneticDistanceProtocolsQuery/useGeneticDistanceProtocolsQuery.d.ts +1 -1
- package/dist/dataHooks/useOrganizationAccessCasePoliciesQuery/index.js +2 -2
- package/dist/dataHooks/useOrganizationAccessCasePoliciesQuery/index.js.map +1 -1
- package/dist/dataHooks/useOrganizationShareCasePoliciesQuery/index.js +2 -2
- package/dist/dataHooks/useOrganizationShareCasePoliciesQuery/index.js.map +1 -1
- package/dist/dataHooks/useRefColsQuery/index.js +3 -3
- package/dist/dataHooks/useRefColsQuery/index.js.map +1 -1
- package/dist/dataHooks/useRefColsQuery/useRefColsQuery.d.ts +1 -1
- package/dist/dataHooks/useRefColsValidationRulesQuery/index.js +2 -2
- package/dist/dataHooks/useRefColsValidationRulesQuery/index.js.map +1 -1
- package/dist/dataHooks/useRefDimsQuery/index.js +3 -3
- package/dist/dataHooks/useRefDimsQuery/index.js.map +1 -1
- package/dist/dataHooks/useRefDimsQuery/useRefDimsQuery.d.ts +1 -1
- package/dist/dataHooks/useRegionQuery/index.js +3 -3
- package/dist/dataHooks/useRegionQuery/index.js.map +1 -1
- package/dist/dataHooks/useRegionQuery/useRegionQuery.d.ts +1 -1
- package/dist/dataHooks/useRegionRelationTypeQuery/index.js.map +1 -1
- package/dist/dataHooks/useRegionRelationTypeQuery/useRegionRelationTypeQuery.d.ts +1 -1
- package/dist/dataHooks/useRegionSetsQuery/index.js +3 -3
- package/dist/dataHooks/useRegionSetsQuery/index.js.map +1 -1
- package/dist/dataHooks/useRegionSetsQuery/useRegionSetsQuery.d.ts +1 -1
- package/dist/dataHooks/useSequencingProtocolsQuery/index.js +3 -3
- package/dist/dataHooks/useSequencingProtocolsQuery/index.js.map +1 -1
- package/dist/dataHooks/useSequencingProtocolsQuery/useSequencingProtocolsQuery.d.ts +1 -1
- package/dist/dataHooks/useTreeAlgorithmCodesQuery/index.js.map +1 -1
- package/dist/dataHooks/useTreeAlgorithmCodesQuery/useTreeAlgorithmCodesQuery.d.ts +1 -1
- package/dist/dataHooks/useUnitQuery/useUnit.d.ts +1 -1
- package/dist/dataHooks/useUserAccessCasePoliciesQuery/index.js +2 -2
- package/dist/dataHooks/useUserAccessCasePoliciesQuery/index.js.map +1 -1
- package/dist/dataHooks/useUserEffectiveRightsQuery/index.js +3 -3
- package/dist/dataHooks/useUserEffectiveRightsQuery/index.js.map +1 -1
- package/dist/dataHooks/useUserEffectiveRightsQuery/useUserEffectiveRightsQuery.d.ts +1 -1
- package/dist/dataHooks/useUserShareCasePoliciesQuery/index.js +2 -2
- package/dist/dataHooks/useUserShareCasePoliciesQuery/index.js.map +1 -1
- package/dist/hooks/useOrganizationCasePolicyNameFactory/index.js +2 -2
- package/dist/hooks/useOrganizationCasePolicyNameFactory/index.js.map +1 -1
- package/dist/hooks/useOrganizationCasePolicyNameFactory/useOrganizationCasePolicyNameFactory.d.ts +1 -1
- package/dist/hooks/useUserCasePolicyNameFactory/index.js +3 -3
- package/dist/hooks/useUserCasePolicyNameFactory/index.js.map +1 -1
- package/dist/hooks/useUserCasePolicyNameFactory/useUserCasePolicyNameFactory.d.ts +1 -1
- package/dist/locale/nl.json +1 -1
- package/dist/models/config.d.ts +1 -1
- package/dist/models/dashboard.d.ts +1 -1
- package/dist/models/dashboard.js.map +1 -1
- package/dist/models/theme.d.ts +2 -2
- package/dist/pages/CaseDbUsersAdminPage/index.js +5 -5
- package/dist/pages/CaseDbUsersAdminPage/index.js.map +1 -1
- package/dist/pages/CaseSetCategoryAdminPage/index.js +4 -4
- package/dist/pages/CaseSetCategoryAdminPage/index.js.map +1 -1
- package/dist/pages/CaseSetStatusAdminPage/index.js +4 -4
- package/dist/pages/CaseSetStatusAdminPage/index.js.map +1 -1
- package/dist/pages/CaseTypeSetCategoriesAdminPage/index.js +4 -4
- package/dist/pages/CaseTypeSetCategoriesAdminPage/index.js.map +1 -1
- package/dist/pages/CaseTypeSetsAdminPage/index.js +6 -6
- package/dist/pages/CaseTypeSetsAdminPage/index.js.map +1 -1
- package/dist/pages/CaseTypesAdminPage/index.js +5 -5
- package/dist/pages/CaseTypesAdminPage/index.js.map +1 -1
- package/dist/pages/CasesDetailPage/index.js +5 -5
- package/dist/pages/CasesDetailPage/index.js.map +1 -1
- package/dist/pages/CasesPage/index.js +10 -10
- package/dist/pages/CasesPage/index.js.map +1 -1
- package/dist/pages/ColSetsAdminPage/index.js +6 -6
- package/dist/pages/ColSetsAdminPage/index.js.map +1 -1
- package/dist/pages/ColsAdminPage/index.js +5 -5
- package/dist/pages/ColsAdminPage/index.js.map +1 -1
- package/dist/pages/ConceptRelationsAdminPage/index.js +19 -19
- package/dist/pages/ConceptRelationsAdminPage/index.js.map +1 -1
- package/dist/pages/ConceptSetsAdminPage/index.js +5 -5
- package/dist/pages/ConceptSetsAdminPage/index.js.map +1 -1
- package/dist/pages/ConceptsAdminPage/index.js +5 -5
- package/dist/pages/ConceptsAdminPage/index.js.map +1 -1
- package/dist/pages/DataCollectionSetsAdminPage/index.js +12 -12
- package/dist/pages/DataCollectionSetsAdminPage/index.js.map +1 -1
- package/dist/pages/DataCollectionVisualizationPage/index.js +4 -4
- package/dist/pages/DataCollectionVisualizationPage/index.js.map +1 -1
- package/dist/pages/DataCollectionsAdminPage/index.js +4 -4
- package/dist/pages/DataCollectionsAdminPage/index.js.map +1 -1
- package/dist/pages/DimsAdminPage/index.js +6 -6
- package/dist/pages/DimsAdminPage/index.js.map +1 -1
- package/dist/pages/DiseasesAdminPage/index.js +4 -4
- package/dist/pages/DiseasesAdminPage/index.js.map +1 -1
- package/dist/pages/EtiologicalAgentsAdminPage/index.js +4 -4
- package/dist/pages/EtiologicalAgentsAdminPage/index.js.map +1 -1
- package/dist/pages/EtiologiesAdminPage/index.js +3 -3
- package/dist/pages/EtiologiesAdminPage/index.js.map +1 -1
- package/dist/pages/EventsDetailPage/index.js +5 -5
- package/dist/pages/EventsDetailPage/index.js.map +1 -1
- package/dist/pages/EventsPage/index.js +11 -11
- package/dist/pages/EventsPage/index.js.map +1 -1
- package/dist/pages/HomePage/index.js +2 -2
- package/dist/pages/HomePage/index.js.map +1 -1
- package/dist/pages/OrganizationAccessCasePoliciesAdminPage/index.js +4 -4
- package/dist/pages/OrganizationAccessCasePoliciesAdminPage/index.js.map +1 -1
- package/dist/pages/OrganizationShareCasePoliciesAdminPage/index.js +4 -4
- package/dist/pages/OrganizationShareCasePoliciesAdminPage/index.js.map +1 -1
- package/dist/pages/RefColsAdminPage/index.js +7 -7
- package/dist/pages/RefColsAdminPage/index.js.map +1 -1
- package/dist/pages/RefDimsAdminPage/index.js +5 -5
- package/dist/pages/RefDimsAdminPage/index.js.map +1 -1
- package/dist/pages/RegionRelationsAdminPage/index.js +3 -3
- package/dist/pages/RegionRelationsAdminPage/index.js.map +1 -1
- package/dist/pages/RegionSetShapesAdminPage/index.js +4 -4
- package/dist/pages/RegionSetShapesAdminPage/index.js.map +1 -1
- package/dist/pages/RegionSetsAdminPage/index.js +5 -5
- package/dist/pages/RegionSetsAdminPage/index.js.map +1 -1
- package/dist/pages/RegionsAdminPage/index.js +5 -5
- package/dist/pages/RegionsAdminPage/index.js.map +1 -1
- package/dist/pages/TrendsPage/index.js +1 -1
- package/dist/pages/TrendsPage/index.js.map +1 -1
- package/dist/pages/UploadPage/index.js +1 -1
- package/dist/pages/UploadPage/index.js.map +1 -1
- package/dist/pages/UserAccessCasePoliciesAdminPage/index.js +4 -4
- package/dist/pages/UserAccessCasePoliciesAdminPage/index.js.map +1 -1
- package/dist/pages/UserEffectiveRightsAdminPage/index.js +12 -12
- package/dist/pages/UserEffectiveRightsAdminPage/index.js.map +1 -1
- package/dist/pages/UserEffectiveRightsTesterAdminPage/index.js +8 -8
- package/dist/pages/UserEffectiveRightsTesterAdminPage/index.js.map +1 -1
- package/dist/pages/UserShareCasePoliciesAdminPage/index.js +4 -4
- package/dist/pages/UserShareCasePoliciesAdminPage/index.js.map +1 -1
- package/dist/routes/adminRoutes.d.ts +1 -1
- package/dist/routes/index.js +11 -8
- package/dist/routes/index.js.map +1 -1
- package/dist/routes/routes.d.ts +1 -1
- package/dist/setup/setup.js +5 -5
- package/dist/setup/setup.js.map +1 -1
- package/dist/stores/dashboardStore/dashboardStore.d.ts +1 -1
- package/dist/stores/uploadStore/index.js +2 -2
- package/dist/stores/uploadStore/index.js.map +1 -1
- package/dist/stores/uploadStore/uploadStore.d.ts +1 -1
- package/dist/stores/userProfileStore/index.js +2 -2
- package/dist/stores/userProfileStore/index.js.map +1 -1
- package/dist/theme/demoTheme/index.js +2 -2
- package/dist/theme/demoTheme/index.js.map +1 -1
- package/dist/utils/CaseDbDataUtil/CaseDbDataUtil.d.ts +1 -1
- package/dist/utils/CaseDbDataUtil/index.js +1 -1
- package/dist/utils/CaseDbDataUtil/index.js.map +1 -1
- package/dist/utils/CaseDbStandardConfigUtil/index.js +2488 -1408
- package/dist/utils/CaseDbStandardConfigUtil/index.js.map +1 -1
- package/dist/utils/CaseDbTableUtil/CaseDbTableUtil.d.ts +1 -1
- package/dist/utils/CaseDbTableUtil/index.js +1 -1
- package/dist/utils/CaseDbTableUtil/index.js.map +1 -1
- package/dist/utils/CaseSelectionUtil/index.js.map +1 -1
- package/dist/utils/CaseTypeFormUtil/CaseTypeFormUtil.d.ts +1 -1
- package/dist/utils/CaseTypeFormUtil/index.js +7 -10
- package/dist/utils/CaseTypeFormUtil/index.js.map +1 -1
- package/dist/utils/CaseTypeUtil/index.js +1 -1
- package/dist/utils/CaseTypeUtil/index.js.map +1 -1
- package/dist/utils/CaseUtil/index.js +3 -3
- package/dist/utils/CaseUtil/index.js.map +1 -1
- package/dist/utils/DashboardUtil/index.js +1 -1
- package/dist/utils/DashboardUtil/index.js.map +1 -1
- package/dist/utils/DataSetUtil/index.js.map +1 -1
- package/dist/utils/FileUtil/index.js +1 -1
- package/dist/utils/FileUtil/index.js.map +1 -1
- package/dist/utils/FilterUtil/FilterUtil.d.ts +2 -2
- package/dist/utils/HistogramUtil/index.js +1 -1
- package/dist/utils/HistogramUtil/index.js.map +1 -1
- package/dist/utils/MapUtil/index.js +1 -1
- package/dist/utils/MapUtil/index.js.map +1 -1
- package/dist/utils/StratificationUtil/index.js +3 -2
- package/dist/utils/StratificationUtil/index.js.map +1 -1
- package/dist/utils/UploadUtil/UploadUtil.d.ts +1 -1
- package/package.json +11 -11
- package/dist/_chunks/chunk-KS7C4IRE.js.map +0 -1
|
@@ -25,34 +25,34 @@ import { Grouping as T } from "../components/ui/Grouping/index.js";
|
|
|
25
25
|
import { t as te } from "./FindSimilarCasesDialog.js";
|
|
26
26
|
import { t as E } from "./userProfileStoreContext.js";
|
|
27
27
|
import { ArrangementEditor as D } from "../components/form/fields/ArrangementEditor/index.js";
|
|
28
|
-
import { a as
|
|
29
|
-
import { WidgetHeaderIconButton as
|
|
30
|
-
import { WidgetMenu as
|
|
31
|
-
import { Warning as
|
|
32
|
-
import { StringUtil as
|
|
33
|
-
import { ConfigService as
|
|
34
|
-
import { Alert as
|
|
28
|
+
import { a as ne, i as O, n as re, o as k, r as A, t as ie } from "./PanelSeparator.js";
|
|
29
|
+
import { WidgetHeaderIconButton as j } from "../components/ui/WidgetHeaderIconButton/index.js";
|
|
30
|
+
import { WidgetMenu as M } from "../components/ui/WidgetMenu/index.js";
|
|
31
|
+
import { Warning as ae } from "../components/ui/Warning/index.js";
|
|
32
|
+
import { StringUtil as oe } from "@gen-epix/ui-core/utils/StringUtil";
|
|
33
|
+
import { ConfigService as N } from "@gen-epix/ui-client-common/classes/services/ConfigService";
|
|
34
|
+
import { Alert as se, AlertTitle as ce, Box as P, Button as F, ClickAwayListener as le, Divider as I, FormGroup as ue, IconButton as L, InputAdornment as de, Link as fe, ListItemIcon as pe, ListItemText as me, Menu as he, MenuItem as ge, MenuList as _e, OutlinedInput as ve, Paper as ye, Popper as be, Tooltip as xe, Typography as R, styled as Se, useTheme as Ce } from "@mui/material";
|
|
35
35
|
import { Component as we, Fragment as Te, createContext as Ee, createElement as De, isValidElement as Oe, use as z, useCallback as B, useEffect as V, useId as ke, useImperativeHandle as Ae, useMemo as H, useRef as U, useState as W } from "react";
|
|
36
36
|
import { useTranslation as G } from "react-i18next";
|
|
37
37
|
import { Fragment as je, jsx as K, jsxs as q } from "react/jsx-runtime";
|
|
38
|
-
import { ResponseHandler as Me } from "@gen-epix/ui/components/ui/ResponseHandler";
|
|
38
|
+
import { ResponseHandler as Me } from "@gen-epix/ui-client-common/components/ui/ResponseHandler";
|
|
39
39
|
import { Box as Ne } from "@mui/system";
|
|
40
|
-
import { STEPPER_DIRECTION as Pe, Stepper as Fe } from "@gen-epix/ui/components/
|
|
41
|
-
import { GenericForm as Ie } from "@gen-epix/ui-form/components/helpers/GenericForm";
|
|
42
|
-
import { TableFiltersSidebarItem as Le, TableFiltersSidebarItemIcon as Re } from "@gen-epix/ui/components/ui/Table";
|
|
43
|
-
import { withDialog as ze } from "@gen-epix/ui/hoc/withDialog";
|
|
40
|
+
import { STEPPER_DIRECTION as Pe, Stepper as Fe } from "@gen-epix/ui-core-components/components/Stepper";
|
|
41
|
+
import { GenericForm as Ie } from "@gen-epix/ui-core-form/components/helpers/GenericForm";
|
|
42
|
+
import { TableFiltersSidebarItem as Le, TableFiltersSidebarItemIcon as Re } from "@gen-epix/ui-client-common/components/ui/Table";
|
|
43
|
+
import { withDialog as ze } from "@gen-epix/ui-core-components/hoc/withDialog";
|
|
44
44
|
import { TestIdUtil as J } from "@gen-epix/ui-core/utils/TestIdUtil";
|
|
45
|
-
import { FormUtil as Be } from "@gen-epix/ui-form/utils/FormUtil";
|
|
45
|
+
import { FormUtil as Be } from "@gen-epix/ui-core-form/utils/FormUtil";
|
|
46
46
|
import Ve from "@mui/icons-material/Info";
|
|
47
|
-
import { EpiContactDetailsDialog as He } from "@gen-epix/ui/components/epi/EpiContactDetailsDialog";
|
|
48
|
-
import { SidebarItem as Ue, SidebarMenu as We, SidebarMenuItem as Ge } from "@gen-epix/ui/components/ui/Sidebar";
|
|
47
|
+
import { EpiContactDetailsDialog as He } from "@gen-epix/ui-client-common/components/epi/EpiContactDetailsDialog";
|
|
48
|
+
import { SidebarItem as Ue, SidebarMenu as We, SidebarMenuItem as Ge } from "@gen-epix/ui-client-common/components/ui/Sidebar";
|
|
49
49
|
import { KeyboardShortcutService as Ke } from "@gen-epix/ui-core/classes/services/KeyboardShortcutService";
|
|
50
|
-
import { Spinner as qe } from "@gen-epix/ui/components/
|
|
50
|
+
import { Spinner as qe } from "@gen-epix/ui-core-components/components/Spinner";
|
|
51
51
|
import Je from "@mui/icons-material/Download";
|
|
52
|
-
import { NestedDropdown as Ye } from "@gen-epix/ui/components/
|
|
52
|
+
import { NestedDropdown as Ye } from "@gen-epix/ui-core-components/components/NestedMenu";
|
|
53
53
|
import Xe from "@mui/icons-material/Settings";
|
|
54
54
|
import Ze from "@mui/icons-material/RestartAlt";
|
|
55
|
-
import { Switch as Qe } from "@gen-epix/ui-form/components/fields/Switch";
|
|
55
|
+
import { Switch as Qe } from "@gen-epix/ui-core-form/components/fields/Switch";
|
|
56
56
|
import $e from "@mui/icons-material/Widgets";
|
|
57
57
|
import et from "@mui/icons-material/Search";
|
|
58
58
|
import tt from "@mui/icons-material/KeyboardArrowUp";
|
|
@@ -63,7 +63,7 @@ import at from "@mui/icons-material/Check";
|
|
|
63
63
|
import { Subject as ot } from "@gen-epix/ui-core/classes/Subject";
|
|
64
64
|
import st from "@mui/icons-material/ZoomInMap";
|
|
65
65
|
import ct from "@mui/icons-material/ZoomOutMap";
|
|
66
|
-
import { MenuDataUtil as lt } from "@gen-epix/ui/utils/MenuDataUtil";
|
|
66
|
+
import { MenuDataUtil as lt } from "@gen-epix/ui-client-common/utils/MenuDataUtil";
|
|
67
67
|
//#region src/components/ui/RemoveFindSimilarCasesResultDialog/RemoveFindSimilarCasesResultDialog.tsx
|
|
68
68
|
var ut = ze(({ onActionsChange: e, onClose: t, onTitleChange: n, openProps: i }) => {
|
|
69
69
|
let { t: a } = G(), l = ke(), u = z(c), d = o(u, (e) => e.setFindSimilarCasesResults), f = H(() => r.getTreeConfigurations(i.completeCaseType), [i.completeCaseType]), p = o(u, (e) => e.findSimilarCasesResults), [m, h] = W(p);
|
|
@@ -115,12 +115,12 @@ var ut = ze(({ onActionsChange: e, onClose: t, onTitleChange: n, openProps: i })
|
|
|
115
115
|
let y = B((e) => {
|
|
116
116
|
h(s(m, (t) => (t.splice(e, 1), t)));
|
|
117
117
|
}, [m]), b = H(() => [{
|
|
118
|
-
content: /* @__PURE__ */ K(
|
|
118
|
+
content: /* @__PURE__ */ K(P, {
|
|
119
119
|
sx: {
|
|
120
120
|
marginBottom: 2,
|
|
121
121
|
marginTop: 1
|
|
122
122
|
},
|
|
123
|
-
children: /* @__PURE__ */ K(
|
|
123
|
+
children: /* @__PURE__ */ K(F, {
|
|
124
124
|
color: "primary",
|
|
125
125
|
onClick: v,
|
|
126
126
|
variant: "outlined",
|
|
@@ -131,32 +131,32 @@ var ut = ze(({ onActionsChange: e, onClose: t, onTitleChange: n, openProps: i })
|
|
|
131
131
|
key: "start",
|
|
132
132
|
label: a("Result without similar cases ({{numberOfCases}} cases)", { numberOfCases: p?.[0]?.originalCaseIds.length || 0 })
|
|
133
133
|
}, ...m.map((e, t) => ({
|
|
134
|
-
content: /* @__PURE__ */ q(
|
|
134
|
+
content: /* @__PURE__ */ q(P, { children: [/* @__PURE__ */ q(P, {
|
|
135
135
|
component: "ul",
|
|
136
136
|
children: [
|
|
137
|
-
/* @__PURE__ */ K(
|
|
137
|
+
/* @__PURE__ */ K(P, {
|
|
138
138
|
component: "li",
|
|
139
139
|
children: a("Tree: {{treeLabel}}", { treeLabel: f.find((t) => t.col.id === e.colId)?.col?.label || e.colId })
|
|
140
140
|
}),
|
|
141
|
-
/* @__PURE__ */ K(
|
|
141
|
+
/* @__PURE__ */ K(P, {
|
|
142
142
|
component: "li",
|
|
143
143
|
children: a("Distance: {{distance}}", { distance: e.distance })
|
|
144
144
|
}),
|
|
145
|
-
/* @__PURE__ */ K(
|
|
145
|
+
/* @__PURE__ */ K(P, {
|
|
146
146
|
component: "li",
|
|
147
147
|
children: a("Found similar cases: {{foundCases}}", { foundCases: e.similarCaseIds.length })
|
|
148
148
|
}),
|
|
149
|
-
/* @__PURE__ */ K(
|
|
149
|
+
/* @__PURE__ */ K(P, {
|
|
150
150
|
component: "li",
|
|
151
151
|
children: a("New number of cases: {{numberOfCases}}", { numberOfCases: e.similarCaseIds.length + e.originalCaseIds.length })
|
|
152
152
|
})
|
|
153
153
|
]
|
|
154
|
-
}), /* @__PURE__ */ K(
|
|
154
|
+
}), /* @__PURE__ */ K(P, {
|
|
155
155
|
sx: {
|
|
156
156
|
marginBottom: 2,
|
|
157
157
|
marginTop: 1
|
|
158
158
|
},
|
|
159
|
-
children: /* @__PURE__ */ K(
|
|
159
|
+
children: /* @__PURE__ */ K(F, {
|
|
160
160
|
color: "primary",
|
|
161
161
|
disabled: t !== m.length - 1,
|
|
162
162
|
onClick: () => y(t),
|
|
@@ -175,7 +175,7 @@ var ut = ze(({ onActionsChange: e, onClose: t, onTitleChange: n, openProps: i })
|
|
|
175
175
|
a,
|
|
176
176
|
f
|
|
177
177
|
]);
|
|
178
|
-
return /* @__PURE__ */ q(
|
|
178
|
+
return /* @__PURE__ */ q(P, {
|
|
179
179
|
sx: { position: "relative" },
|
|
180
180
|
children: [b.length === 0 && /* @__PURE__ */ K(R, { children: a("No similar cases results to remove.") }), b.length > 0 && /* @__PURE__ */ K(Fe, {
|
|
181
181
|
activeStep: b[b.length - 1].key,
|
|
@@ -205,21 +205,21 @@ var ut = ze(({ onActionsChange: e, onClose: t, onTitleChange: n, openProps: i })
|
|
|
205
205
|
children: [/* @__PURE__ */ K("form", {
|
|
206
206
|
autoComplete: "off",
|
|
207
207
|
onSubmit: u,
|
|
208
|
-
children: /* @__PURE__ */ K(
|
|
208
|
+
children: /* @__PURE__ */ K(P, {
|
|
209
209
|
sx: { marginY: 1 },
|
|
210
210
|
children: /* @__PURE__ */ K(ue, { children: /* @__PURE__ */ K(Qe, {
|
|
211
211
|
label: e`Enable highlighting across widgets`,
|
|
212
212
|
name: "isHighlightingEnabled"
|
|
213
213
|
}) })
|
|
214
214
|
})
|
|
215
|
-
}), /* @__PURE__ */ K(
|
|
215
|
+
}), /* @__PURE__ */ K(P, {
|
|
216
216
|
sx: {
|
|
217
217
|
display: "flex",
|
|
218
218
|
justifyContent: "flex-end"
|
|
219
219
|
},
|
|
220
|
-
children: /* @__PURE__ */ K(
|
|
220
|
+
children: /* @__PURE__ */ K(P, {
|
|
221
221
|
sx: { marginX: 1 },
|
|
222
|
-
children: /* @__PURE__ */ K(
|
|
222
|
+
children: /* @__PURE__ */ K(F, {
|
|
223
223
|
color: "primary",
|
|
224
224
|
onClick: l,
|
|
225
225
|
startIcon: /* @__PURE__ */ K(Ze, {}),
|
|
@@ -236,10 +236,10 @@ var ut = ze(({ onActionsChange: e, onClose: t, onTitleChange: n, openProps: i })
|
|
|
236
236
|
V(() => {
|
|
237
237
|
let { arrangementKey: e } = u;
|
|
238
238
|
if (!e) return;
|
|
239
|
-
let t =
|
|
239
|
+
let t = N.getInstance().config.dashboard.ARRANGEMENT_OPTIONS[e];
|
|
240
240
|
t && s({
|
|
241
241
|
arrangementKey: e,
|
|
242
|
-
arrangementWidgetAssignments: i.getArrangementWidgetAssignments(t,
|
|
242
|
+
arrangementWidgetAssignments: i.getArrangementWidgetAssignments(t, N.getInstance().config.dashboard.DEFAULT_WIDGET_ASSIGNMENTS[e])
|
|
243
243
|
});
|
|
244
244
|
}, [u, s]);
|
|
245
245
|
let g = ft.default;
|
|
@@ -248,22 +248,22 @@ var ut = ze(({ onActionsChange: e, onClose: t, onTitleChange: n, openProps: i })
|
|
|
248
248
|
children: [/* @__PURE__ */ K("form", {
|
|
249
249
|
autoComplete: "off",
|
|
250
250
|
onSubmit: g,
|
|
251
|
-
children: /* @__PURE__ */ K(
|
|
251
|
+
children: /* @__PURE__ */ K(P, {
|
|
252
252
|
sx: { marginY: 1 },
|
|
253
253
|
children: /* @__PURE__ */ K(ue, { children: /* @__PURE__ */ K(D, {
|
|
254
254
|
label: t`Arrangement`,
|
|
255
255
|
name: "arrangementKey",
|
|
256
|
-
options:
|
|
256
|
+
options: N.getInstance().config.dashboard.ARRANGEMENT_OPTIONS
|
|
257
257
|
}) })
|
|
258
258
|
})
|
|
259
|
-
}), /* @__PURE__ */ K(
|
|
259
|
+
}), /* @__PURE__ */ K(P, {
|
|
260
260
|
sx: {
|
|
261
261
|
display: "flex",
|
|
262
262
|
justifyContent: "flex-end"
|
|
263
263
|
},
|
|
264
|
-
children: /* @__PURE__ */ K(
|
|
264
|
+
children: /* @__PURE__ */ K(P, {
|
|
265
265
|
sx: { marginX: 1 },
|
|
266
|
-
children: /* @__PURE__ */ K(
|
|
266
|
+
children: /* @__PURE__ */ K(F, {
|
|
267
267
|
color: "primary",
|
|
268
268
|
onClick: f,
|
|
269
269
|
startIcon: /* @__PURE__ */ K(Ze, {}),
|
|
@@ -274,7 +274,7 @@ var ut = ze(({ onActionsChange: e, onClose: t, onTitleChange: n, openProps: i })
|
|
|
274
274
|
})]
|
|
275
275
|
});
|
|
276
276
|
}, mt = ({ widgetName: e }) => {
|
|
277
|
-
let { t } = G(), n = z(E), r = ke(), i = o(n, d((e) => e.resetWidgetSettings)), a = o(n, d((e) => e.setWidgetSettings)), s =
|
|
277
|
+
let { t } = G(), n = z(E), r = ke(), i = o(n, d((e) => e.resetWidgetSettings)), a = o(n, d((e) => e.setWidgetSettings)), s = N.getInstance().config.dashboard.WIDGETS[e].configFormFieldsDefinitions, c = N.getInstance().config.dashboard.WIDGETS[e].configDefaultValues, l = H(() => {
|
|
278
278
|
if (s) return Be.createYupSchemaFromFormFieldDefinitions(s);
|
|
279
279
|
}, [s]), u = h({
|
|
280
280
|
defaultValues: c,
|
|
@@ -282,29 +282,31 @@ var ut = ze(({ onActionsChange: e, onClose: t, onTitleChange: n, openProps: i })
|
|
|
282
282
|
}), { control: f } = u, m = p({ control: f }), g = B(() => {
|
|
283
283
|
i(e);
|
|
284
284
|
}, [i, e]);
|
|
285
|
-
|
|
285
|
+
V(() => {
|
|
286
286
|
a(e, m);
|
|
287
287
|
}, [
|
|
288
288
|
m,
|
|
289
289
|
a,
|
|
290
290
|
e
|
|
291
|
-
])
|
|
291
|
+
]);
|
|
292
|
+
let _ = B(() => {}, []);
|
|
293
|
+
return /* @__PURE__ */ q(P, { children: [/* @__PURE__ */ K(P, {
|
|
292
294
|
sx: { marginY: 1 },
|
|
293
295
|
children: /* @__PURE__ */ K(Ie, {
|
|
294
296
|
formFieldDefinitions: s,
|
|
295
297
|
formId: r,
|
|
296
298
|
formMethods: u,
|
|
297
|
-
onSubmit:
|
|
299
|
+
onSubmit: _,
|
|
298
300
|
schema: l
|
|
299
301
|
})
|
|
300
|
-
}), /* @__PURE__ */ K(
|
|
302
|
+
}), /* @__PURE__ */ K(P, {
|
|
301
303
|
sx: {
|
|
302
304
|
display: "flex",
|
|
303
305
|
justifyContent: "flex-end"
|
|
304
306
|
},
|
|
305
|
-
children: /* @__PURE__ */ K(
|
|
307
|
+
children: /* @__PURE__ */ K(P, {
|
|
306
308
|
sx: { marginX: 1 },
|
|
307
|
-
children: /* @__PURE__ */ K(
|
|
309
|
+
children: /* @__PURE__ */ K(F, {
|
|
308
310
|
color: "primary",
|
|
309
311
|
onClick: g,
|
|
310
312
|
startIcon: /* @__PURE__ */ K(Ze, {}),
|
|
@@ -322,36 +324,36 @@ var ut = ze(({ onActionsChange: e, onClose: t, onTitleChange: n, openProps: i })
|
|
|
322
324
|
component: /* @__PURE__ */ K(dt, {}),
|
|
323
325
|
label: n`General`
|
|
324
326
|
}];
|
|
325
|
-
return Object.entries(
|
|
327
|
+
return Object.entries(N.getInstance().config.dashboard.WIDGETS).forEach(([e, n]) => {
|
|
326
328
|
n.configFormFieldsDefinitions && t.push({
|
|
327
329
|
component: /* @__PURE__ */ K(mt, { widgetName: e }),
|
|
328
330
|
label: n.widgetLabel
|
|
329
331
|
});
|
|
330
332
|
}), t;
|
|
331
333
|
}, [e, n]);
|
|
332
|
-
return /* @__PURE__ */ K(
|
|
334
|
+
return /* @__PURE__ */ K(P, {
|
|
333
335
|
sx: { width: t.spacing(59) },
|
|
334
|
-
children: r.map(({ component: e, label: t }, n) => /* @__PURE__ */ q(
|
|
336
|
+
children: r.map(({ component: e, label: t }, n) => /* @__PURE__ */ q(P, {
|
|
335
337
|
sx: {
|
|
336
338
|
marginTop: n === 0 ? 0 : 2,
|
|
337
339
|
paddingTop: n === r.length - 1 ? 0 : 1
|
|
338
340
|
},
|
|
339
341
|
children: [
|
|
340
|
-
/* @__PURE__ */ K(
|
|
342
|
+
/* @__PURE__ */ K(P, {
|
|
341
343
|
sx: { marginBottom: 2 },
|
|
342
344
|
children: /* @__PURE__ */ K(R, {
|
|
343
345
|
variant: "h5",
|
|
344
346
|
children: t
|
|
345
347
|
})
|
|
346
348
|
}),
|
|
347
|
-
/* @__PURE__ */ K(
|
|
349
|
+
/* @__PURE__ */ K(P, {
|
|
348
350
|
sx: {
|
|
349
351
|
marginBottom: 2,
|
|
350
352
|
marginRight: 1
|
|
351
353
|
},
|
|
352
354
|
children: e
|
|
353
355
|
}),
|
|
354
|
-
/* @__PURE__ */ K(
|
|
356
|
+
/* @__PURE__ */ K(I, {
|
|
355
357
|
flexItem: !0,
|
|
356
358
|
orientation: "horizontal",
|
|
357
359
|
sx: {
|
|
@@ -389,8 +391,8 @@ var ut = ze(({ onActionsChange: e, onClose: t, onTitleChange: n, openProps: i })
|
|
|
389
391
|
};
|
|
390
392
|
}
|
|
391
393
|
resetErrorBoundary(...e) {
|
|
392
|
-
let {
|
|
393
|
-
t
|
|
394
|
+
let { didCatch: t } = this.state;
|
|
395
|
+
t && (this.props.onReset?.({
|
|
394
396
|
args: e,
|
|
395
397
|
reason: "imperative-api"
|
|
396
398
|
}), this.setState(yt));
|
|
@@ -400,7 +402,7 @@ var ut = ze(({ onActionsChange: e, onClose: t, onTitleChange: n, openProps: i })
|
|
|
400
402
|
}
|
|
401
403
|
componentDidUpdate(e, t) {
|
|
402
404
|
let { didCatch: n } = this.state, { resetKeys: r } = this.props;
|
|
403
|
-
n && t.
|
|
405
|
+
n && t.didCatch && xt(e.resetKeys, r) && (this.props.onReset?.({
|
|
404
406
|
next: r,
|
|
405
407
|
prev: e.resetKeys,
|
|
406
408
|
reason: "keys"
|
|
@@ -431,7 +433,7 @@ function xt(e = [], t = []) {
|
|
|
431
433
|
//#endregion
|
|
432
434
|
//#region src/components/ui/Dashboard/DashboardZoneContext.ts
|
|
433
435
|
var St = Ee(null), Ct = () => {
|
|
434
|
-
let { t: e } = G(), [t, n] = W(null), r = z(E), a = z(St), s = o(r, (e) => e.dashboardArrangementConfig), c = o(r, (e) => e.setDashboardArrangementConfig), l =
|
|
436
|
+
let { t: e } = G(), [t, n] = W(null), r = z(E), a = z(St), s = o(r, (e) => e.dashboardArrangementConfig), c = o(r, (e) => e.setDashboardArrangementConfig), l = N.getInstance().config.dashboard.WIDGETS, u = a ? i.getAvailableWidgets(s, a, l) : [], d = B((e) => {
|
|
435
437
|
n(e.currentTarget);
|
|
436
438
|
}, []), f = B(() => {
|
|
437
439
|
n(null);
|
|
@@ -453,7 +455,7 @@ var St = Ee(null), Ct = () => {
|
|
|
453
455
|
let t = e.currentTarget.dataset.widgetName;
|
|
454
456
|
t && p(t);
|
|
455
457
|
}, [p]);
|
|
456
|
-
return /* @__PURE__ */ q(
|
|
458
|
+
return /* @__PURE__ */ q(P, {
|
|
457
459
|
sx: {
|
|
458
460
|
alignItems: "center",
|
|
459
461
|
display: "flex",
|
|
@@ -461,7 +463,7 @@ var St = Ee(null), Ct = () => {
|
|
|
461
463
|
justifyContent: "center",
|
|
462
464
|
width: "100%"
|
|
463
465
|
},
|
|
464
|
-
children: [/* @__PURE__ */ K(
|
|
466
|
+
children: [/* @__PURE__ */ K(F, {
|
|
465
467
|
onClick: d,
|
|
466
468
|
startIcon: /* @__PURE__ */ K($e, {}),
|
|
467
469
|
variant: "outlined",
|
|
@@ -486,7 +488,7 @@ var St = Ee(null), Ct = () => {
|
|
|
486
488
|
e.getState().setDashboardPanelConfiguration(`${t}-${n}`, r);
|
|
487
489
|
}
|
|
488
490
|
}), Tt = ({ disabled: e, ref: t }) => {
|
|
489
|
-
let n = z(E), r = z(c), a = o(n, (e) => e.dashboardArrangementConfig), s = o(r, (e) => e.expandedZone), { MIN_PANEL_HEIGHT: u, MIN_PANEL_WIDTH: d } =
|
|
491
|
+
let n = z(E), r = z(c), a = o(n, (e) => e.dashboardArrangementConfig), s = o(r, (e) => e.expandedZone), { MIN_PANEL_HEIGHT: u, MIN_PANEL_WIDTH: d } = N.getInstance().config.dashboard, { arrangementKey: f, arrangementWidgetAssignments: p } = a, m = N.getInstance().config.dashboard.ARRANGEMENT_OPTIONS[f], h = f, g = H(() => m?.cells ? i.getArrangementGroupInfos(m, h) : [], [m, h]), _ = H(() => wt(n, "epi-dashboard"), [n]), v = O({
|
|
490
492
|
groupId: g[0]?.groupId ?? `${h}-ph-0`,
|
|
491
493
|
storage: _
|
|
492
494
|
}), y = O({
|
|
@@ -519,22 +521,22 @@ var St = Ee(null), Ct = () => {
|
|
|
519
521
|
}), D = O({
|
|
520
522
|
groupId: g[10]?.groupId ?? `${h}-ph-10`,
|
|
521
523
|
storage: _
|
|
522
|
-
}),
|
|
524
|
+
}), j = O({
|
|
523
525
|
groupId: g[11]?.groupId ?? `${h}-ph-11`,
|
|
524
526
|
storage: _
|
|
525
|
-
}),
|
|
527
|
+
}), M = O({
|
|
526
528
|
groupId: g[12]?.groupId ?? `${h}-ph-12`,
|
|
527
529
|
storage: _
|
|
528
|
-
}),
|
|
530
|
+
}), ae = O({
|
|
529
531
|
groupId: g[13]?.groupId ?? `${h}-ph-13`,
|
|
530
532
|
storage: _
|
|
531
|
-
}),
|
|
533
|
+
}), se = O({
|
|
532
534
|
groupId: g[14]?.groupId ?? `${h}-ph-14`,
|
|
533
535
|
storage: _
|
|
534
|
-
}),
|
|
536
|
+
}), ce = O({
|
|
535
537
|
groupId: g[15]?.groupId ?? `${h}-ph-15`,
|
|
536
538
|
storage: _
|
|
537
|
-
}),
|
|
539
|
+
}), P = k(), F = k(), le = k(), I = k(), ue = k(), L = k(), de = k(), fe = k(), pe = k(), me = k(), he = k(), ge = k(), _e = k(), ve = k(), ye = k(), be = k(), xe = [
|
|
538
540
|
v,
|
|
539
541
|
y,
|
|
540
542
|
b,
|
|
@@ -546,16 +548,16 @@ var St = Ee(null), Ct = () => {
|
|
|
546
548
|
T,
|
|
547
549
|
te,
|
|
548
550
|
D,
|
|
551
|
+
j,
|
|
549
552
|
M,
|
|
550
|
-
|
|
551
|
-
|
|
552
|
-
|
|
553
|
-
se
|
|
553
|
+
ae,
|
|
554
|
+
se,
|
|
555
|
+
ce
|
|
554
556
|
], R = H(() => [
|
|
557
|
+
P,
|
|
555
558
|
F,
|
|
556
|
-
I,
|
|
557
|
-
ce,
|
|
558
559
|
le,
|
|
560
|
+
I,
|
|
559
561
|
ue,
|
|
560
562
|
L,
|
|
561
563
|
de,
|
|
@@ -569,10 +571,10 @@ var St = Ee(null), Ct = () => {
|
|
|
569
571
|
ye,
|
|
570
572
|
be
|
|
571
573
|
], [
|
|
574
|
+
P,
|
|
572
575
|
F,
|
|
573
|
-
I,
|
|
574
|
-
ce,
|
|
575
576
|
le,
|
|
577
|
+
I,
|
|
576
578
|
ue,
|
|
577
579
|
L,
|
|
578
580
|
de,
|
|
@@ -600,7 +602,7 @@ var St = Ee(null), Ct = () => {
|
|
|
600
602
|
} catch {}
|
|
601
603
|
} }), [R]);
|
|
602
604
|
let Se = H(() => {
|
|
603
|
-
let e =
|
|
605
|
+
let e = N.getInstance().config.dashboard.WIDGETS;
|
|
604
606
|
return Object.fromEntries(Object.entries(e).map(([e, { component: t, widgetLabel: n }]) => [e, /* @__PURE__ */ K(bt, {
|
|
605
607
|
fallback: /* @__PURE__ */ K(l, { widgetLabel: n }),
|
|
606
608
|
children: De(t)
|
|
@@ -616,7 +618,7 @@ var St = Ee(null), Ct = () => {
|
|
|
616
618
|
if (!m?.cells) return null;
|
|
617
619
|
let Ce = { value: 0 }, we = (t) => {
|
|
618
620
|
let n = Ce.value++, r = g[n]?.groupId ?? `${h}-group-${n}`, i = t.orientation, { defaultLayout: a, onLayoutChanged: o } = xe[n] ?? {}, s = R[n];
|
|
619
|
-
return /* @__PURE__ */ K(
|
|
621
|
+
return /* @__PURE__ */ K(ne, {
|
|
620
622
|
defaultLayout: a,
|
|
621
623
|
groupRef: s,
|
|
622
624
|
id: r,
|
|
@@ -629,7 +631,7 @@ var St = Ee(null), Ct = () => {
|
|
|
629
631
|
children: t.cells.map((n, a) => {
|
|
630
632
|
let o = a === t.cells.length - 1, s = `${r}-panel-${a}`;
|
|
631
633
|
return /* @__PURE__ */ q(Te, { children: [
|
|
632
|
-
/* @__PURE__ */ K(
|
|
634
|
+
/* @__PURE__ */ K(A, {
|
|
633
635
|
defaultSize: n.size,
|
|
634
636
|
id: s,
|
|
635
637
|
minSize: i === "vertical" ? u : d,
|
|
@@ -639,9 +641,9 @@ var St = Ee(null), Ct = () => {
|
|
|
639
641
|
children: Se[p[n.name]] ?? /* @__PURE__ */ K(Ct, {})
|
|
640
642
|
}) : we(n)
|
|
641
643
|
}),
|
|
642
|
-
!o && i === "horizontal" && /* @__PURE__ */ K(
|
|
643
|
-
!o && i === "vertical" && /* @__PURE__ */ K(
|
|
644
|
-
] }, "name" in n ? n.name :
|
|
644
|
+
!o && i === "horizontal" && /* @__PURE__ */ K(ie, { disabled: e }),
|
|
645
|
+
!o && i === "vertical" && /* @__PURE__ */ K(re, { disabled: e })
|
|
646
|
+
] }, "name" in n ? n.name : oe.createHash(JSON.stringify(n)));
|
|
645
647
|
})
|
|
646
648
|
});
|
|
647
649
|
};
|
|
@@ -650,13 +652,13 @@ var St = Ee(null), Ct = () => {
|
|
|
650
652
|
let e = Ce(), { t } = G(), [n, r] = W([]);
|
|
651
653
|
V(() => {
|
|
652
654
|
let e = (e) => {
|
|
653
|
-
e?.zone && r((t) => e.items === null ? t.filter((t) => t.zone !== e.zone) : [...t.filter((t) => t.zone !== e.zone), e].sort((e, t) =>
|
|
655
|
+
e?.zone && r((t) => e.items === null ? t.filter((t) => t.zone !== e.zone) : [...t.filter((t) => t.zone !== e.zone), e].sort((e, t) => N.getInstance().config.dashboard.DOWNLOAD_SECTION_ORDER.indexOf(e.zone) - N.getInstance().config.dashboard.DOWNLOAD_SECTION_ORDER.indexOf(t.zone)));
|
|
654
656
|
}, t = u.getInstance();
|
|
655
657
|
return t.addEventListener("onDownloadOptionsChanged", e), t.emit("onDownloadOptionsRequested"), () => {
|
|
656
658
|
t.removeEventListener("onDownloadOptionsChanged", e);
|
|
657
659
|
};
|
|
658
660
|
}, []);
|
|
659
|
-
let i = B((e, t) => /* @__PURE__ */ K(
|
|
661
|
+
let i = B((e, t) => /* @__PURE__ */ K(P, {
|
|
660
662
|
sx: { marginLeft: 1 },
|
|
661
663
|
children: t || e.disabled || !e.callback ? /* @__PURE__ */ K(R, { children: e.label }) : /* @__PURE__ */ K(fe, {
|
|
662
664
|
component: "button",
|
|
@@ -664,24 +666,24 @@ var St = Ee(null), Ct = () => {
|
|
|
664
666
|
tabIndex: 0,
|
|
665
667
|
children: e.label
|
|
666
668
|
})
|
|
667
|
-
}, e.label), []), a = B((e) => /* @__PURE__ */ q(
|
|
669
|
+
}, e.label), []), a = B((e) => /* @__PURE__ */ q(P, { children: [/* @__PURE__ */ K(R, {
|
|
668
670
|
variant: "h6",
|
|
669
671
|
children: e.label
|
|
670
672
|
}), e.items.map((t) => i(t, e.disabled))] }, e.label), [i]);
|
|
671
|
-
return /* @__PURE__ */ K(
|
|
673
|
+
return /* @__PURE__ */ K(P, {
|
|
672
674
|
sx: { width: e.spacing(59) },
|
|
673
|
-
children: n.map((n) => /* @__PURE__ */ q(
|
|
675
|
+
children: n.map((n) => /* @__PURE__ */ q(P, {
|
|
674
676
|
sx: {
|
|
675
677
|
borderBottom: `1px solid ${e.palette.divider}`,
|
|
676
678
|
padding: e.spacing(1)
|
|
677
679
|
},
|
|
678
680
|
children: [
|
|
679
|
-
/* @__PURE__ */ K(
|
|
681
|
+
/* @__PURE__ */ K(P, { children: /* @__PURE__ */ K(R, {
|
|
680
682
|
color: n.disabled ? e.palette.text.disabled : void 0,
|
|
681
683
|
variant: "h5",
|
|
682
684
|
children: n.zoneLabel
|
|
683
685
|
}) }),
|
|
684
|
-
n.disabled && /* @__PURE__ */ K(
|
|
686
|
+
n.disabled && /* @__PURE__ */ K(P, {
|
|
685
687
|
sx: { padding: e.spacing(1) },
|
|
686
688
|
children: /* @__PURE__ */ K(R, { children: t`No data available for download.` })
|
|
687
689
|
}),
|
|
@@ -703,7 +705,7 @@ var St = Ee(null), Ct = () => {
|
|
|
703
705
|
});
|
|
704
706
|
};
|
|
705
707
|
//#endregion
|
|
706
|
-
//#region ../../node_modules/.pnpm/fuse.js@7.
|
|
708
|
+
//#region ../../node_modules/.pnpm/fuse.js@7.5.0/node_modules/fuse.js/dist/fuse.mjs
|
|
707
709
|
function Y(e) {
|
|
708
710
|
return Array.isArray ? Array.isArray(e) : It(e) === "[object Array]";
|
|
709
711
|
}
|
|
@@ -786,21 +788,23 @@ function Jt(e) {
|
|
|
786
788
|
}
|
|
787
789
|
function Yt(e, t) {
|
|
788
790
|
let n = [], r = !1, i = (e, t, a, o) => {
|
|
789
|
-
if (Z(e))
|
|
790
|
-
|
|
791
|
-
|
|
792
|
-
});
|
|
793
|
-
else {
|
|
794
|
-
let s = e[t[a]];
|
|
795
|
-
if (!Z(s)) return;
|
|
796
|
-
if (a === t.length - 1 && (X(s) || jt(s) || Mt(s) || typeof s == "bigint")) n.push(o === void 0 ? At(s) : {
|
|
797
|
-
v: At(s),
|
|
791
|
+
if (Z(e)) {
|
|
792
|
+
if (!t[a]) n.push(o === void 0 ? e : {
|
|
793
|
+
v: e,
|
|
798
794
|
i: o
|
|
799
795
|
});
|
|
800
|
-
else
|
|
801
|
-
|
|
802
|
-
|
|
803
|
-
|
|
796
|
+
else {
|
|
797
|
+
let s = e[t[a]];
|
|
798
|
+
if (!Z(s)) return;
|
|
799
|
+
if (a === t.length - 1 && (X(s) || jt(s) || Mt(s) || typeof s == "bigint")) n.push(o === void 0 ? At(s) : {
|
|
800
|
+
v: At(s),
|
|
801
|
+
i: o
|
|
802
|
+
});
|
|
803
|
+
else if (Y(s)) {
|
|
804
|
+
r = !0;
|
|
805
|
+
for (let e = 0, n = s.length; e < n; e += 1) i(s[e], t, a + 1, e);
|
|
806
|
+
} else t.length && i(s, t, a + 1, o);
|
|
807
|
+
}
|
|
804
808
|
}
|
|
805
809
|
};
|
|
806
810
|
return i(e, X(t) ? t.split(".") : t, 0), r ? n : n[0];
|
|
@@ -835,13 +839,16 @@ var Xt = {
|
|
|
835
839
|
...Qt,
|
|
836
840
|
...$t
|
|
837
841
|
});
|
|
838
|
-
function en(e
|
|
842
|
+
function en(e) {
|
|
843
|
+
return e >= 9 && e <= 13 || e === 32 || e === 160;
|
|
844
|
+
}
|
|
845
|
+
function tn(e = 1, t = 3) {
|
|
839
846
|
let n = /* @__PURE__ */ new Map(), r = 10 ** t;
|
|
840
847
|
return {
|
|
841
848
|
get(t) {
|
|
842
|
-
let i =
|
|
843
|
-
for (let e = 0; e < t.length; e++) t.charCodeAt(e)
|
|
844
|
-
if (n.has(i)) return n.get(i);
|
|
849
|
+
let i = 0, a = !1;
|
|
850
|
+
for (let e = 0; e < t.length; e++) en(t.charCodeAt(e)) ? a = !1 : a ||= (i++, !0);
|
|
851
|
+
if (i === 0 && (i = 1), n.has(i)) return n.get(i);
|
|
845
852
|
let o = Math.round(r / i ** (.5 * e)) / r;
|
|
846
853
|
return n.set(i, o), o;
|
|
847
854
|
},
|
|
@@ -850,9 +857,9 @@ function en(e = 1, t = 3) {
|
|
|
850
857
|
}
|
|
851
858
|
};
|
|
852
859
|
}
|
|
853
|
-
var
|
|
860
|
+
var nn = class {
|
|
854
861
|
constructor({ getFn: e = Q.getFn, fieldNormWeight: t = Q.fieldNormWeight } = {}) {
|
|
855
|
-
this.norm =
|
|
862
|
+
this.norm = tn(t, 3), this.getFn = e, this.isCreated = !1, this.docs = [], this.keys = [], this._keysMap = {}, this.setIndexRecords();
|
|
856
863
|
}
|
|
857
864
|
setSources(e = []) {
|
|
858
865
|
this.docs = e;
|
|
@@ -977,21 +984,21 @@ var tn = class {
|
|
|
977
984
|
};
|
|
978
985
|
}
|
|
979
986
|
};
|
|
980
|
-
function
|
|
981
|
-
let i = new
|
|
987
|
+
function rn(e, t, { getFn: n = Q.getFn, fieldNormWeight: r = Q.fieldNormWeight } = {}) {
|
|
988
|
+
let i = new nn({
|
|
982
989
|
getFn: n,
|
|
983
990
|
fieldNormWeight: r
|
|
984
991
|
});
|
|
985
992
|
return i.setKeys(e.map(Kt)), i.setSources(t), i.create(), i;
|
|
986
993
|
}
|
|
987
|
-
function
|
|
988
|
-
let { keys: r, records: i } = e, a = new
|
|
994
|
+
function an(e, { getFn: t = Q.getFn, fieldNormWeight: n = Q.fieldNormWeight } = {}) {
|
|
995
|
+
let { keys: r, records: i } = e, a = new nn({
|
|
989
996
|
getFn: t,
|
|
990
997
|
fieldNormWeight: n
|
|
991
998
|
});
|
|
992
999
|
return a.setKeys(r), a.setIndexRecords(i), a;
|
|
993
1000
|
}
|
|
994
|
-
function
|
|
1001
|
+
function on(e = [], t = Q.minMatchCharLength) {
|
|
995
1002
|
let n = [], r = -1, i = -1, a = 0;
|
|
996
1003
|
for (let o = e.length; a < o; a += 1) {
|
|
997
1004
|
let o = e[a];
|
|
@@ -999,7 +1006,7 @@ function an(e = [], t = Q.minMatchCharLength) {
|
|
|
999
1006
|
}
|
|
1000
1007
|
return e[a - 1] && a - r >= t && n.push([r, a - 1]), n;
|
|
1001
1008
|
}
|
|
1002
|
-
function
|
|
1009
|
+
function sn(e, t, n, { location: r = Q.location, distance: i = Q.distance, threshold: a = Q.threshold, findAllMatches: o = Q.findAllMatches, minMatchCharLength: s = Q.minMatchCharLength, includeMatches: c = Q.includeMatches, ignoreLocation: l = Q.ignoreLocation } = {}) {
|
|
1003
1010
|
if (t.length > 32) throw Error(Bt(32));
|
|
1004
1011
|
let u = t.length, d = e.length, f = Math.max(0, Math.min(r, d)), p = a, m = f, h = (e, t) => {
|
|
1005
1012
|
let n = e / u;
|
|
@@ -1041,12 +1048,12 @@ function on(e, t, n, { location: r = Q.location, distance: i = Q.distance, thres
|
|
|
1041
1048
|
score: Math.max(.001, b)
|
|
1042
1049
|
};
|
|
1043
1050
|
if (g) {
|
|
1044
|
-
let e =
|
|
1051
|
+
let e = on(_, s);
|
|
1045
1052
|
e.length ? c && (w.indices = e) : w.isMatch = !1;
|
|
1046
1053
|
}
|
|
1047
1054
|
return w;
|
|
1048
1055
|
}
|
|
1049
|
-
function
|
|
1056
|
+
function cn(e) {
|
|
1050
1057
|
let t = {};
|
|
1051
1058
|
for (let n = 0, r = e.length; n < r; n += 1) {
|
|
1052
1059
|
let i = e.charAt(n);
|
|
@@ -1054,7 +1061,7 @@ function sn(e) {
|
|
|
1054
1061
|
}
|
|
1055
1062
|
return t;
|
|
1056
1063
|
}
|
|
1057
|
-
function
|
|
1064
|
+
function ln(e) {
|
|
1058
1065
|
if (e.length <= 1) return e;
|
|
1059
1066
|
e.sort((e, t) => e[0] - t[0] || e[1] - t[1]);
|
|
1060
1067
|
let t = [e[0]];
|
|
@@ -1064,7 +1071,7 @@ function cn(e) {
|
|
|
1064
1071
|
}
|
|
1065
1072
|
return t;
|
|
1066
1073
|
}
|
|
1067
|
-
var
|
|
1074
|
+
var un = {
|
|
1068
1075
|
ł: "l",
|
|
1069
1076
|
Ł: "L",
|
|
1070
1077
|
đ: "d",
|
|
@@ -1077,7 +1084,7 @@ var ln = {
|
|
|
1077
1084
|
Ŧ: "T",
|
|
1078
1085
|
ı: "i",
|
|
1079
1086
|
ß: "ss"
|
|
1080
|
-
},
|
|
1087
|
+
}, dn = RegExp("[" + Object.keys(un).join("") + "]", "g"), fn = typeof String.prototype.normalize == "function" ? (e) => e.normalize("NFD").replace(/[\u0300-\u036F\u0483-\u0489\u0591-\u05BD\u05BF\u05C1\u05C2\u05C4\u05C5\u05C7\u0610-\u061A\u064B-\u065F\u0670\u06D6-\u06DC\u06DF-\u06E4\u06E7\u06E8\u06EA-\u06ED\u0711\u0730-\u074A\u07A6-\u07B0\u07EB-\u07F3\u07FD\u0816-\u0819\u081B-\u0823\u0825-\u0827\u0829-\u082D\u0859-\u085B\u08D3-\u08E1\u08E3-\u0903\u093A-\u093C\u093E-\u094F\u0951-\u0957\u0962\u0963\u0981-\u0983\u09BC\u09BE-\u09C4\u09C7\u09C8\u09CB-\u09CD\u09D7\u09E2\u09E3\u09FE\u0A01-\u0A03\u0A3C\u0A3E-\u0A42\u0A47\u0A48\u0A4B-\u0A4D\u0A51\u0A70\u0A71\u0A75\u0A81-\u0A83\u0ABC\u0ABE-\u0AC5\u0AC7-\u0AC9\u0ACB-\u0ACD\u0AE2\u0AE3\u0AFA-\u0AFF\u0B01-\u0B03\u0B3C\u0B3E-\u0B44\u0B47\u0B48\u0B4B-\u0B4D\u0B56\u0B57\u0B62\u0B63\u0B82\u0BBE-\u0BC2\u0BC6-\u0BC8\u0BCA-\u0BCD\u0BD7\u0C00-\u0C04\u0C3E-\u0C44\u0C46-\u0C48\u0C4A-\u0C4D\u0C55\u0C56\u0C62\u0C63\u0C81-\u0C83\u0CBC\u0CBE-\u0CC4\u0CC6-\u0CC8\u0CCA-\u0CCD\u0CD5\u0CD6\u0CE2\u0CE3\u0D00-\u0D03\u0D3B\u0D3C\u0D3E-\u0D44\u0D46-\u0D48\u0D4A-\u0D4D\u0D57\u0D62\u0D63\u0D82\u0D83\u0DCA\u0DCF-\u0DD4\u0DD6\u0DD8-\u0DDF\u0DF2\u0DF3\u0E31\u0E34-\u0E3A\u0E47-\u0E4E\u0EB1\u0EB4-\u0EB9\u0EBB\u0EBC\u0EC8-\u0ECD\u0F18\u0F19\u0F35\u0F37\u0F39\u0F3E\u0F3F\u0F71-\u0F84\u0F86\u0F87\u0F8D-\u0F97\u0F99-\u0FBC\u0FC6\u102B-\u103E\u1056-\u1059\u105E-\u1060\u1062-\u1064\u1067-\u106D\u1071-\u1074\u1082-\u108D\u108F\u109A-\u109D\u135D-\u135F\u1712-\u1714\u1732-\u1734\u1752\u1753\u1772\u1773\u17B4-\u17D3\u17DD\u180B-\u180D\u1885\u1886\u18A9\u1920-\u192B\u1930-\u193B\u1A17-\u1A1B\u1A55-\u1A5E\u1A60-\u1A7C\u1A7F\u1AB0-\u1ABE\u1B00-\u1B04\u1B34-\u1B44\u1B6B-\u1B73\u1B80-\u1B82\u1BA1-\u1BAD\u1BE6-\u1BF3\u1C24-\u1C37\u1CD0-\u1CD2\u1CD4-\u1CE8\u1CED\u1CF2-\u1CF4\u1CF7-\u1CF9\u1DC0-\u1DF9\u1DFB-\u1DFF\u20D0-\u20F0\u2CEF-\u2CF1\u2D7F\u2DE0-\u2DFF\u302A-\u302F\u3099\u309A\uA66F-\uA672\uA674-\uA67D\uA69E\uA69F\uA6F0\uA6F1\uA802\uA806\uA80B\uA823-\uA827\uA880\uA881\uA8B4-\uA8C5\uA8E0-\uA8F1\uA8FF\uA926-\uA92D\uA947-\uA953\uA980-\uA983\uA9B3-\uA9C0\uA9E5\uAA29-\uAA36\uAA43\uAA4C\uAA4D\uAA7B-\uAA7D\uAAB0\uAAB2-\uAAB4\uAAB7\uAAB8\uAABE\uAABF\uAAC1\uAAEB-\uAAEF\uAAF5\uAAF6\uABE3-\uABEA\uABEC\uABED\uFB1E\uFE00-\uFE0F\uFE20-\uFE2F]/g, "").replace(dn, (e) => un[e]) : (e) => e, pn = class {
|
|
1081
1088
|
constructor(e, { location: t = Q.location, threshold: n = Q.threshold, distance: r = Q.distance, includeMatches: i = Q.includeMatches, findAllMatches: a = Q.findAllMatches, minMatchCharLength: o = Q.minMatchCharLength, isCaseSensitive: s = Q.isCaseSensitive, ignoreDiacritics: c = Q.ignoreDiacritics, ignoreLocation: l = Q.ignoreLocation } = {}) {
|
|
1082
1089
|
if (this.options = {
|
|
1083
1090
|
location: t,
|
|
@@ -1089,11 +1096,11 @@ var ln = {
|
|
|
1089
1096
|
isCaseSensitive: s,
|
|
1090
1097
|
ignoreDiacritics: c,
|
|
1091
1098
|
ignoreLocation: l
|
|
1092
|
-
}, e = s ? e : e.toLowerCase(), e = c ?
|
|
1099
|
+
}, e = s ? e : e.toLowerCase(), e = c ? fn(e) : e, this.pattern = e, this.chunks = [], !this.pattern.length) return;
|
|
1093
1100
|
let u = (e, t) => {
|
|
1094
1101
|
this.chunks.push({
|
|
1095
1102
|
pattern: e,
|
|
1096
|
-
alphabet:
|
|
1103
|
+
alphabet: cn(e),
|
|
1097
1104
|
startIndex: t
|
|
1098
1105
|
});
|
|
1099
1106
|
}, d = this.pattern.length;
|
|
@@ -1108,7 +1115,11 @@ var ln = {
|
|
|
1108
1115
|
}
|
|
1109
1116
|
searchIn(e) {
|
|
1110
1117
|
let { isCaseSensitive: t, ignoreDiacritics: n, includeMatches: r } = this.options;
|
|
1111
|
-
if (e = t ? e : e.toLowerCase(), e = n ?
|
|
1118
|
+
if (e = t ? e : e.toLowerCase(), e = n ? fn(e) : e, this.pattern === e) {
|
|
1119
|
+
if (e.length < this.options.minMatchCharLength) return {
|
|
1120
|
+
isMatch: !1,
|
|
1121
|
+
score: 1
|
|
1122
|
+
};
|
|
1112
1123
|
let t = {
|
|
1113
1124
|
isMatch: !0,
|
|
1114
1125
|
score: 0
|
|
@@ -1117,7 +1128,7 @@ var ln = {
|
|
|
1117
1128
|
}
|
|
1118
1129
|
let { location: i, distance: a, threshold: o, findAllMatches: s, minMatchCharLength: c, ignoreLocation: l } = this.options, u = [], d = 0, f = !1;
|
|
1119
1130
|
this.chunks.forEach(({ pattern: t, alphabet: n, startIndex: p }) => {
|
|
1120
|
-
let { isMatch: m, score: h, indices: g } =
|
|
1131
|
+
let { isMatch: m, score: h, indices: g } = sn(e, t, n, {
|
|
1121
1132
|
location: i + p,
|
|
1122
1133
|
distance: a,
|
|
1123
1134
|
threshold: o,
|
|
@@ -1132,13 +1143,13 @@ var ln = {
|
|
|
1132
1143
|
isMatch: f,
|
|
1133
1144
|
score: f ? d / this.chunks.length : 1
|
|
1134
1145
|
};
|
|
1135
|
-
return f && r && (p.indices =
|
|
1146
|
+
return f && r && (p.indices = ln(u)), p;
|
|
1136
1147
|
}
|
|
1137
|
-
},
|
|
1138
|
-
function
|
|
1148
|
+
}, mn = /* @__PURE__ */ new Set(["fuzzy", "include"]);
|
|
1149
|
+
function hn(e) {
|
|
1139
1150
|
return e.startsWith("inverse");
|
|
1140
1151
|
}
|
|
1141
|
-
var
|
|
1152
|
+
var gn = [
|
|
1142
1153
|
{
|
|
1143
1154
|
type: "exact",
|
|
1144
1155
|
multiRegex: /^="(.*)"$/,
|
|
@@ -1258,7 +1269,7 @@ var hn = [
|
|
|
1258
1269
|
multiRegex: /^"(.*)"$/,
|
|
1259
1270
|
singleRegex: /^(.*)$/,
|
|
1260
1271
|
create: (e, t = {}) => {
|
|
1261
|
-
let n = new
|
|
1272
|
+
let n = new pn(e, {
|
|
1262
1273
|
location: t.location ?? Q.location,
|
|
1263
1274
|
threshold: t.threshold ?? Q.threshold,
|
|
1264
1275
|
distance: t.distance ?? Q.distance,
|
|
@@ -1277,8 +1288,8 @@ var hn = [
|
|
|
1277
1288
|
};
|
|
1278
1289
|
}
|
|
1279
1290
|
}
|
|
1280
|
-
],
|
|
1281
|
-
function
|
|
1291
|
+
], _n = gn.length, vn = "\0", yn = "|";
|
|
1292
|
+
function bn(e) {
|
|
1282
1293
|
let t = [], n = e.length, r = 0;
|
|
1283
1294
|
for (; r < n;) {
|
|
1284
1295
|
for (; r < n && e[r] === " ";) r++;
|
|
@@ -1308,21 +1319,21 @@ function yn(e) {
|
|
|
1308
1319
|
}
|
|
1309
1320
|
return t;
|
|
1310
1321
|
}
|
|
1311
|
-
function
|
|
1322
|
+
function xn(e, t) {
|
|
1312
1323
|
let n = e.match(t);
|
|
1313
1324
|
return n ? n[1] : null;
|
|
1314
1325
|
}
|
|
1315
|
-
function
|
|
1316
|
-
return e.replace(/\\\|/g,
|
|
1317
|
-
let n =
|
|
1326
|
+
function Sn(e, t = {}) {
|
|
1327
|
+
return e.replace(/\\\|/g, vn).split(yn).map((e) => {
|
|
1328
|
+
let n = bn(e.replace(/\u0000/g, "|").trim()).filter((e) => e && !!e.trim()), r = [];
|
|
1318
1329
|
for (let e = 0, i = n.length; e < i; e += 1) {
|
|
1319
1330
|
let i = n[e], a = !1, o = -1;
|
|
1320
|
-
for (; !a && ++o <
|
|
1321
|
-
let e =
|
|
1331
|
+
for (; !a && ++o < _n;) {
|
|
1332
|
+
let e = gn[o], n = xn(i, e.multiRegex);
|
|
1322
1333
|
n && (r.push(e.create(n, t)), a = !0);
|
|
1323
1334
|
}
|
|
1324
|
-
if (!a) for (o = -1; ++o <
|
|
1325
|
-
let e =
|
|
1335
|
+
if (!a) for (o = -1; ++o < _n;) {
|
|
1336
|
+
let e = gn[o], n = xn(i, e.singleRegex);
|
|
1326
1337
|
if (n) {
|
|
1327
1338
|
r.push(e.create(n, t));
|
|
1328
1339
|
break;
|
|
@@ -1332,7 +1343,7 @@ function xn(e, t = {}) {
|
|
|
1332
1343
|
return r;
|
|
1333
1344
|
});
|
|
1334
1345
|
}
|
|
1335
|
-
var
|
|
1346
|
+
var Cn = class {
|
|
1336
1347
|
constructor(e, { isCaseSensitive: t = Q.isCaseSensitive, ignoreDiacritics: n = Q.ignoreDiacritics, includeMatches: r = Q.includeMatches, minMatchCharLength: i = Q.minMatchCharLength, ignoreLocation: a = Q.ignoreLocation, findAllMatches: o = Q.findAllMatches, location: s = Q.location, threshold: c = Q.threshold, distance: l = Q.distance } = {}) {
|
|
1337
1348
|
this.query = null, this.options = {
|
|
1338
1349
|
isCaseSensitive: t,
|
|
@@ -1344,7 +1355,7 @@ var Sn = class {
|
|
|
1344
1355
|
location: s,
|
|
1345
1356
|
threshold: c,
|
|
1346
1357
|
distance: l
|
|
1347
|
-
}, e = t ? e : e.toLowerCase(), e = n ?
|
|
1358
|
+
}, e = t ? e : e.toLowerCase(), e = n ? fn(e) : e, this.pattern = e, this.query = Sn(this.pattern, this.options);
|
|
1348
1359
|
}
|
|
1349
1360
|
static condition(e, t) {
|
|
1350
1361
|
return t.useExtendedSearch;
|
|
@@ -1356,14 +1367,14 @@ var Sn = class {
|
|
|
1356
1367
|
score: 1
|
|
1357
1368
|
};
|
|
1358
1369
|
let { includeMatches: n, isCaseSensitive: r, ignoreDiacritics: i } = this.options;
|
|
1359
|
-
e = r ? e : e.toLowerCase(), e = i ?
|
|
1370
|
+
e = r ? e : e.toLowerCase(), e = i ? fn(e) : e;
|
|
1360
1371
|
let a = 0, o = [], s = 0, c = !1;
|
|
1361
1372
|
for (let r = 0, i = t.length; r < i; r += 1) {
|
|
1362
1373
|
let i = t[r];
|
|
1363
1374
|
o.length = 0, a = 0, c = !1;
|
|
1364
1375
|
for (let t = 0, r = i.length; t < r; t += 1) {
|
|
1365
1376
|
let r = i[t], { isMatch: l, indices: u, score: d } = r.search(e);
|
|
1366
|
-
if (l) a += 1, s += d,
|
|
1377
|
+
if (l) a += 1, s += d, hn(r.type) && (c = !0), n && (mn.has(r.type) ? o.push(...u) : o.push(u));
|
|
1367
1378
|
else {
|
|
1368
1379
|
s = 0, a = 0, o.length = 0, c = !1;
|
|
1369
1380
|
break;
|
|
@@ -1374,7 +1385,7 @@ var Sn = class {
|
|
|
1374
1385
|
isMatch: !0,
|
|
1375
1386
|
score: s / a
|
|
1376
1387
|
};
|
|
1377
|
-
return c && (e.hasInverse = !0), n && (e.indices =
|
|
1388
|
+
return c && (e.hasInverse = !0), n && (e.indices = ln(o)), e;
|
|
1378
1389
|
}
|
|
1379
1390
|
}
|
|
1380
1391
|
return {
|
|
@@ -1382,43 +1393,43 @@ var Sn = class {
|
|
|
1382
1393
|
score: 1
|
|
1383
1394
|
};
|
|
1384
1395
|
}
|
|
1385
|
-
},
|
|
1386
|
-
function
|
|
1387
|
-
|
|
1396
|
+
}, wn = [];
|
|
1397
|
+
function Tn(...e) {
|
|
1398
|
+
wn.push(...e);
|
|
1388
1399
|
}
|
|
1389
|
-
function
|
|
1390
|
-
for (let n = 0, r =
|
|
1391
|
-
let r =
|
|
1400
|
+
function En(e, t) {
|
|
1401
|
+
for (let n = 0, r = wn.length; n < r; n += 1) {
|
|
1402
|
+
let r = wn[n];
|
|
1392
1403
|
if (r.condition(e, t)) return new r(e, t);
|
|
1393
1404
|
}
|
|
1394
|
-
return new
|
|
1405
|
+
return new pn(e, t);
|
|
1395
1406
|
}
|
|
1396
|
-
var
|
|
1407
|
+
var Dn = {
|
|
1397
1408
|
AND: "$and",
|
|
1398
1409
|
OR: "$or"
|
|
1399
|
-
},
|
|
1410
|
+
}, On = {
|
|
1400
1411
|
PATH: "$path",
|
|
1401
1412
|
PATTERN: "$val"
|
|
1402
|
-
},
|
|
1403
|
-
function
|
|
1413
|
+
}, kn = (e) => !!(e[Dn.AND] || e[Dn.OR]), An = (e) => !!e[On.PATH], jn = (e) => !Y(e) && Nt(e) && !kn(e), Mn = (e) => ({ [Dn.AND]: Object.keys(e).map((t) => ({ [t]: e[t] })) });
|
|
1414
|
+
function Nn(e, t, { auto: n = !0 } = {}) {
|
|
1404
1415
|
let r = (e) => {
|
|
1405
1416
|
if (X(e)) {
|
|
1406
1417
|
let r = {
|
|
1407
1418
|
keyId: null,
|
|
1408
1419
|
pattern: e
|
|
1409
1420
|
};
|
|
1410
|
-
return n && (r.searcher =
|
|
1421
|
+
return n && (r.searcher = En(e, t)), r;
|
|
1411
1422
|
}
|
|
1412
|
-
let i = Object.keys(e), a =
|
|
1413
|
-
if (!a && i.length > 1 && !
|
|
1414
|
-
if (
|
|
1415
|
-
let r = a ? e[
|
|
1423
|
+
let i = Object.keys(e), a = An(e);
|
|
1424
|
+
if (!a && i.length > 1 && !kn(e)) return r(Mn(e));
|
|
1425
|
+
if (jn(e)) {
|
|
1426
|
+
let r = a ? e[On.PATH] : i[0], o = a ? e[On.PATTERN] : e[r];
|
|
1416
1427
|
if (!X(o)) throw Error(zt(r));
|
|
1417
1428
|
let s = {
|
|
1418
1429
|
keyId: Jt(r),
|
|
1419
1430
|
pattern: o
|
|
1420
1431
|
};
|
|
1421
|
-
return n && (s.searcher =
|
|
1432
|
+
return n && (s.searcher = En(o, t)), s;
|
|
1422
1433
|
}
|
|
1423
1434
|
let o = {
|
|
1424
1435
|
children: [],
|
|
@@ -1431,41 +1442,38 @@ function Mn(e, t, { auto: n = !0 } = {}) {
|
|
|
1431
1442
|
});
|
|
1432
1443
|
}), o;
|
|
1433
1444
|
};
|
|
1434
|
-
return
|
|
1445
|
+
return kn(e) || (e = Mn(e)), r(e);
|
|
1435
1446
|
}
|
|
1436
|
-
function
|
|
1447
|
+
function Pn(e, { ignoreFieldNorm: t = Q.ignoreFieldNorm }) {
|
|
1437
1448
|
let n = 1;
|
|
1438
1449
|
return e.forEach(({ key: e, norm: r, score: i }) => {
|
|
1439
1450
|
let a = e ? e.weight : null;
|
|
1440
1451
|
n *= (i === 0 && a ? 2 ** -52 : i) ** +((a || 1) * (t ? 1 : r));
|
|
1441
1452
|
}), n;
|
|
1442
1453
|
}
|
|
1443
|
-
function
|
|
1454
|
+
function Fn(e, { ignoreFieldNorm: t = Q.ignoreFieldNorm }) {
|
|
1444
1455
|
e.forEach((e) => {
|
|
1445
|
-
e.score =
|
|
1456
|
+
e.score = Pn(e.matches, { ignoreFieldNorm: t });
|
|
1446
1457
|
});
|
|
1447
1458
|
}
|
|
1448
|
-
var
|
|
1449
|
-
constructor(e) {
|
|
1450
|
-
this.limit = e, this.heap = [];
|
|
1459
|
+
var In = class {
|
|
1460
|
+
constructor(e, t) {
|
|
1461
|
+
this.limit = e, this.heap = [], this.comparator = t;
|
|
1451
1462
|
}
|
|
1452
1463
|
get size() {
|
|
1453
1464
|
return this.heap.length;
|
|
1454
1465
|
}
|
|
1455
|
-
shouldInsert(e) {
|
|
1456
|
-
return this.size < this.limit || e < this.heap[0].score;
|
|
1457
|
-
}
|
|
1458
1466
|
insert(e) {
|
|
1459
|
-
this.size < this.limit ? (this.heap.push(e), this._bubbleUp(this.size - 1)) : e
|
|
1467
|
+
this.size < this.limit ? (this.heap.push(e), this._bubbleUp(this.size - 1)) : this.comparator(e, this.heap[0]) < 0 && (this.heap[0] = e, this._sinkDown(0));
|
|
1460
1468
|
}
|
|
1461
|
-
extractSorted(
|
|
1462
|
-
return this.heap.sort(
|
|
1469
|
+
extractSorted() {
|
|
1470
|
+
return this.heap.sort(this.comparator);
|
|
1463
1471
|
}
|
|
1464
1472
|
_bubbleUp(e) {
|
|
1465
1473
|
let t = this.heap;
|
|
1466
1474
|
for (; e > 0;) {
|
|
1467
1475
|
let n = e - 1 >> 1;
|
|
1468
|
-
if (t[e]
|
|
1476
|
+
if (this.comparator(t[e], t[n]) <= 0) break;
|
|
1469
1477
|
let r = t[e];
|
|
1470
1478
|
t[e] = t[n], t[n] = r, e = n;
|
|
1471
1479
|
}
|
|
@@ -1475,14 +1483,14 @@ var Fn = class {
|
|
|
1475
1483
|
do {
|
|
1476
1484
|
e = r;
|
|
1477
1485
|
let i = 2 * e + 1, a = 2 * e + 2;
|
|
1478
|
-
if (i < n && t[i]
|
|
1486
|
+
if (i < n && this.comparator(t[i], t[r]) > 0 && (r = i), a < n && this.comparator(t[a], t[r]) > 0 && (r = a), r !== e) {
|
|
1479
1487
|
let n = t[e];
|
|
1480
1488
|
t[e] = t[r], t[r] = n;
|
|
1481
1489
|
}
|
|
1482
1490
|
} while (r !== e);
|
|
1483
1491
|
}
|
|
1484
1492
|
};
|
|
1485
|
-
function
|
|
1493
|
+
function Ln(e) {
|
|
1486
1494
|
let t = [];
|
|
1487
1495
|
return e.matches.forEach((e) => {
|
|
1488
1496
|
if (!Z(e.indices) || !e.indices.length) return;
|
|
@@ -1493,20 +1501,20 @@ function In(e) {
|
|
|
1493
1501
|
e.key && (n.key = e.key.id), e.idx > -1 && (n.refIndex = e.idx), t.push(n);
|
|
1494
1502
|
}), t;
|
|
1495
1503
|
}
|
|
1496
|
-
function
|
|
1504
|
+
function Rn(e, t, { includeMatches: n = Q.includeMatches, includeScore: r = Q.includeScore } = {}) {
|
|
1497
1505
|
return e.map((e) => {
|
|
1498
1506
|
let { idx: i } = e, a = {
|
|
1499
1507
|
item: t[i],
|
|
1500
1508
|
refIndex: i
|
|
1501
1509
|
};
|
|
1502
|
-
return n && (a.matches =
|
|
1510
|
+
return n && (a.matches = Ln(e)), r && (a.score = e.score), a;
|
|
1503
1511
|
});
|
|
1504
1512
|
}
|
|
1505
|
-
var
|
|
1506
|
-
function Bn(e) {
|
|
1507
|
-
zn.has(e) || (zn.add(e), console.warn(`[Fuse] tokenize regex ${e} lacks the global flag; only the first match per text will be returned. Add the 'g' flag.`));
|
|
1508
|
-
}
|
|
1513
|
+
var zn = /[\p{L}\p{M}\p{N}_]+/gu, Bn = /* @__PURE__ */ new WeakSet();
|
|
1509
1514
|
function Vn(e) {
|
|
1515
|
+
Bn.has(e) || (Bn.add(e), console.warn(`[Fuse] tokenize regex ${e} lacks the global flag; only the first match per text will be returned. Add the 'g' flag.`));
|
|
1516
|
+
}
|
|
1517
|
+
function Hn(e) {
|
|
1510
1518
|
if (typeof e == "function") {
|
|
1511
1519
|
let t = !1;
|
|
1512
1520
|
return (n) => {
|
|
@@ -1515,20 +1523,20 @@ function Vn(e) {
|
|
|
1515
1523
|
return r;
|
|
1516
1524
|
};
|
|
1517
1525
|
}
|
|
1518
|
-
return e instanceof RegExp ? (e.global ||
|
|
1526
|
+
return e instanceof RegExp ? (e.global || Vn(e), (t) => t.match(e) || []) : (e) => e.match(zn) || [];
|
|
1519
1527
|
}
|
|
1520
|
-
function
|
|
1521
|
-
let r =
|
|
1528
|
+
function Un({ isCaseSensitive: e = !1, ignoreDiacritics: t = !1, tokenize: n } = {}) {
|
|
1529
|
+
let r = Hn(n);
|
|
1522
1530
|
return { tokenize(n) {
|
|
1523
|
-
return e || (n = n.toLowerCase()), t && (n =
|
|
1531
|
+
return e || (n = n.toLowerCase()), t && (n = fn(n)), r(n);
|
|
1524
1532
|
} };
|
|
1525
1533
|
}
|
|
1526
|
-
var
|
|
1534
|
+
var Wn = class {
|
|
1527
1535
|
static condition(e, t) {
|
|
1528
1536
|
return t.useTokenSearch;
|
|
1529
1537
|
}
|
|
1530
1538
|
constructor(e, t) {
|
|
1531
|
-
this.options = t, this.analyzer =
|
|
1539
|
+
this.options = t, this.analyzer = Un({
|
|
1532
1540
|
isCaseSensitive: t.isCaseSensitive,
|
|
1533
1541
|
ignoreDiacritics: t.ignoreDiacritics,
|
|
1534
1542
|
tokenize: t.tokenize
|
|
@@ -1536,7 +1544,7 @@ var Un = class {
|
|
|
1536
1544
|
let n = this.analyzer.tokenize(e), { df: r, fieldCount: i } = t._invertedIndex;
|
|
1537
1545
|
this.termSearchers = [], this.idfWeights = [];
|
|
1538
1546
|
for (let e of n) {
|
|
1539
|
-
this.termSearchers.push(new
|
|
1547
|
+
this.termSearchers.push(new pn(e, {
|
|
1540
1548
|
location: t.location,
|
|
1541
1549
|
threshold: t.threshold,
|
|
1542
1550
|
distance: t.distance,
|
|
@@ -1570,10 +1578,10 @@ var Un = class {
|
|
|
1570
1578
|
isMatch: !0,
|
|
1571
1579
|
score: Math.max(.001, s)
|
|
1572
1580
|
};
|
|
1573
|
-
return this.options.includeMatches && t.length && (c.indices =
|
|
1581
|
+
return this.options.includeMatches && t.length && (c.indices = ln(t)), this.combineAll && (this.useMask ? c.matchedMask = a : c.matchedTerms = o, c.termCount = this.numTerms), c;
|
|
1574
1582
|
}
|
|
1575
1583
|
};
|
|
1576
|
-
function
|
|
1584
|
+
function Gn(e, t, n, r) {
|
|
1577
1585
|
let i = r.tokenize(t);
|
|
1578
1586
|
if (!i.length) return;
|
|
1579
1587
|
e.fieldCount++, e.docFieldCount.set(n, (e.docFieldCount.get(n) || 0) + 1);
|
|
@@ -1581,32 +1589,34 @@ function Wn(e, t, n, r) {
|
|
|
1581
1589
|
o || (o = /* @__PURE__ */ new Map(), e.docTermFieldHits.set(n, o));
|
|
1582
1590
|
for (let t of a) o.set(t, (o.get(t) || 0) + 1), e.df.set(t, (e.df.get(t) || 0) + 1);
|
|
1583
1591
|
}
|
|
1584
|
-
function
|
|
1592
|
+
function Kn(e, t, n, r) {
|
|
1585
1593
|
let { i, v: a, $: o } = t;
|
|
1586
1594
|
if (a !== void 0) {
|
|
1587
|
-
|
|
1595
|
+
Gn(e, a, i, r);
|
|
1588
1596
|
return;
|
|
1589
1597
|
}
|
|
1590
1598
|
if (o) for (let t = 0; t < n; t++) {
|
|
1591
1599
|
let n = o[t];
|
|
1592
|
-
if (n)
|
|
1593
|
-
|
|
1600
|
+
if (n) {
|
|
1601
|
+
if (Array.isArray(n)) for (let t of n) Gn(e, t.v, i, r);
|
|
1602
|
+
else Gn(e, n.v, i, r);
|
|
1603
|
+
}
|
|
1594
1604
|
}
|
|
1595
1605
|
}
|
|
1596
|
-
function
|
|
1606
|
+
function qn(e, t, n) {
|
|
1597
1607
|
let r = {
|
|
1598
1608
|
fieldCount: 0,
|
|
1599
1609
|
df: /* @__PURE__ */ new Map(),
|
|
1600
1610
|
docFieldCount: /* @__PURE__ */ new Map(),
|
|
1601
1611
|
docTermFieldHits: /* @__PURE__ */ new Map()
|
|
1602
1612
|
};
|
|
1603
|
-
for (let i of e)
|
|
1613
|
+
for (let i of e) Kn(r, i, t, n);
|
|
1604
1614
|
return r;
|
|
1605
1615
|
}
|
|
1606
|
-
function
|
|
1607
|
-
|
|
1616
|
+
function Jn(e, t, n, r) {
|
|
1617
|
+
Kn(e, t, n, r);
|
|
1608
1618
|
}
|
|
1609
|
-
function
|
|
1619
|
+
function Yn(e, t) {
|
|
1610
1620
|
let n = e.docFieldCount.get(t);
|
|
1611
1621
|
if (n === void 0) return;
|
|
1612
1622
|
e.fieldCount -= n, e.docFieldCount.delete(t);
|
|
@@ -1619,10 +1629,10 @@ function Jn(e, t) {
|
|
|
1619
1629
|
e.docTermFieldHits.delete(t);
|
|
1620
1630
|
}
|
|
1621
1631
|
}
|
|
1622
|
-
function
|
|
1632
|
+
function Xn(e, t) {
|
|
1623
1633
|
if (t.length === 0) return;
|
|
1624
1634
|
let n = Array.from(new Set(t)).sort((e, t) => e - t);
|
|
1625
|
-
for (let t of n)
|
|
1635
|
+
for (let t of n) Yn(e, t);
|
|
1626
1636
|
let r = (e) => {
|
|
1627
1637
|
let t = 0, r = n.length;
|
|
1628
1638
|
for (; t < r;) {
|
|
@@ -1646,24 +1656,24 @@ var $ = class {
|
|
|
1646
1656
|
}
|
|
1647
1657
|
_getSearcher(e) {
|
|
1648
1658
|
if (this._lastQuery === e) return this._lastSearcher;
|
|
1649
|
-
let t =
|
|
1659
|
+
let t = En(e, this._invertedIndex ? {
|
|
1650
1660
|
...this.options,
|
|
1651
1661
|
_invertedIndex: this._invertedIndex
|
|
1652
1662
|
} : this.options);
|
|
1653
1663
|
return this._lastQuery = e, this._lastSearcher = t, t;
|
|
1654
1664
|
}
|
|
1655
1665
|
setCollection(e, t) {
|
|
1656
|
-
if (this._docs = e, t && !(t instanceof
|
|
1657
|
-
if (this._myIndex = t ||
|
|
1666
|
+
if (this._docs = e, t && !(t instanceof nn)) throw Error(Lt);
|
|
1667
|
+
if (this._myIndex = t || rn(this.options.keys, this._docs, {
|
|
1658
1668
|
getFn: this.options.getFn,
|
|
1659
1669
|
fieldNormWeight: this.options.fieldNormWeight
|
|
1660
1670
|
}), this.options.useTokenSearch) {
|
|
1661
|
-
let e =
|
|
1671
|
+
let e = Un({
|
|
1662
1672
|
isCaseSensitive: this.options.isCaseSensitive,
|
|
1663
1673
|
ignoreDiacritics: this.options.ignoreDiacritics,
|
|
1664
1674
|
tokenize: this.options.tokenize
|
|
1665
1675
|
});
|
|
1666
|
-
this._invertedIndex =
|
|
1676
|
+
this._invertedIndex = qn(this._myIndex.records, this._myIndex.keys.length, e);
|
|
1667
1677
|
}
|
|
1668
1678
|
this._invalidateSearcherCache();
|
|
1669
1679
|
}
|
|
@@ -1672,12 +1682,12 @@ var $ = class {
|
|
|
1672
1682
|
this._docs.push(e);
|
|
1673
1683
|
let t = this._myIndex.add(e, this._docs.length - 1);
|
|
1674
1684
|
if (this._invertedIndex && t) {
|
|
1675
|
-
let e =
|
|
1685
|
+
let e = Un({
|
|
1676
1686
|
isCaseSensitive: this.options.isCaseSensitive,
|
|
1677
1687
|
ignoreDiacritics: this.options.ignoreDiacritics,
|
|
1678
1688
|
tokenize: this.options.tokenize
|
|
1679
1689
|
});
|
|
1680
|
-
|
|
1690
|
+
Jn(this._invertedIndex, t, this._myIndex.keys.length, e);
|
|
1681
1691
|
}
|
|
1682
1692
|
this._invalidateSearcherCache();
|
|
1683
1693
|
}
|
|
@@ -1685,7 +1695,7 @@ var $ = class {
|
|
|
1685
1695
|
let t = [], n = [];
|
|
1686
1696
|
for (let r = 0, i = this._docs.length; r < i; r += 1) e(this._docs[r], r) && (t.push(this._docs[r]), n.push(r));
|
|
1687
1697
|
if (n.length) {
|
|
1688
|
-
this._invertedIndex &&
|
|
1698
|
+
this._invertedIndex && Xn(this._invertedIndex, n);
|
|
1689
1699
|
let e = new Set(n);
|
|
1690
1700
|
this._docs = this._docs.filter((t, n) => !e.has(n)), this._myIndex.removeAll(n), this._invalidateSearcherCache();
|
|
1691
1701
|
}
|
|
@@ -1693,7 +1703,7 @@ var $ = class {
|
|
|
1693
1703
|
}
|
|
1694
1704
|
removeAt(e) {
|
|
1695
1705
|
if (!Number.isInteger(e) || e < 0 || e >= this._docs.length) throw Error(Rt);
|
|
1696
|
-
this._invertedIndex &&
|
|
1706
|
+
this._invertedIndex && Xn(this._invertedIndex, [e]);
|
|
1697
1707
|
let t = this._docs.splice(e, 1)[0];
|
|
1698
1708
|
return this._myIndex.removeAt(e), this._invalidateSearcherCache(), t;
|
|
1699
1709
|
}
|
|
@@ -1703,6 +1713,9 @@ var $ = class {
|
|
|
1703
1713
|
getIndex() {
|
|
1704
1714
|
return this._myIndex;
|
|
1705
1715
|
}
|
|
1716
|
+
_normalizedKeys() {
|
|
1717
|
+
return this._myIndex.keys.map((e) => this._keyStore.get(e.id) || e);
|
|
1718
|
+
}
|
|
1706
1719
|
search(e, t) {
|
|
1707
1720
|
let { limit: n = -1 } = t || {}, { includeMatches: r, includeScore: i, shouldSort: a, sortFn: o, ignoreFieldNorm: s } = this.options;
|
|
1708
1721
|
if (X(e) && !e.trim()) {
|
|
@@ -1712,18 +1725,18 @@ var $ = class {
|
|
|
1712
1725
|
}));
|
|
1713
1726
|
return jt(n) && n > -1 && (e = e.slice(0, n)), e;
|
|
1714
1727
|
}
|
|
1715
|
-
let c = jt(n) && n > 0 && X(e), l;
|
|
1728
|
+
let c = a && jt(n) && n > 0 && X(e), l = o, u = (e, t) => l(e, t) || e.idx - t.idx, d;
|
|
1716
1729
|
if (c) {
|
|
1717
|
-
let t = new
|
|
1730
|
+
let t = new In(n, u);
|
|
1718
1731
|
X(this._docs[0]) ? this._searchStringList(e, {
|
|
1719
1732
|
heap: t,
|
|
1720
1733
|
ignoreFieldNorm: s
|
|
1721
1734
|
}) : this._searchObjectList(e, {
|
|
1722
1735
|
heap: t,
|
|
1723
1736
|
ignoreFieldNorm: s
|
|
1724
|
-
}),
|
|
1725
|
-
} else
|
|
1726
|
-
return
|
|
1737
|
+
}), d = t.extractSorted();
|
|
1738
|
+
} else d = X(e) ? X(this._docs[0]) ? this._searchStringList(e) : this._searchObjectList(e) : this._searchLogical(e), Fn(d, { ignoreFieldNorm: s }), a && d.sort(X(e) ? u : l), jt(n) && n > -1 && (d = d.slice(0, n));
|
|
1739
|
+
return Rn(d, this._docs, {
|
|
1727
1740
|
includeMatches: r,
|
|
1728
1741
|
includeScore: i
|
|
1729
1742
|
});
|
|
@@ -1748,58 +1761,58 @@ var $ = class {
|
|
|
1748
1761
|
idx: a,
|
|
1749
1762
|
matches: l
|
|
1750
1763
|
};
|
|
1751
|
-
t ? (r.score =
|
|
1764
|
+
t ? (r.score = Pn(r.matches, { ignoreFieldNorm: n }), t.insert(r)) : o.push(r);
|
|
1752
1765
|
}
|
|
1753
1766
|
}
|
|
1754
1767
|
}), o;
|
|
1755
1768
|
}
|
|
1756
1769
|
_searchLogical(e) {
|
|
1757
|
-
let t =
|
|
1770
|
+
let t = Nn(e, this.options), n = this._normalizedKeys(), r = (e, t, i) => {
|
|
1758
1771
|
if (!("children" in e)) {
|
|
1759
|
-
let { keyId:
|
|
1760
|
-
return
|
|
1761
|
-
|
|
1772
|
+
let { keyId: r, searcher: a } = e, o;
|
|
1773
|
+
return r === null ? (o = [], n.forEach((e, n) => {
|
|
1774
|
+
o.push(...this._findMatches({
|
|
1762
1775
|
key: e,
|
|
1763
1776
|
value: t[n],
|
|
1764
|
-
searcher:
|
|
1777
|
+
searcher: a
|
|
1765
1778
|
}));
|
|
1766
|
-
})) :
|
|
1767
|
-
key: this._keyStore.get(
|
|
1768
|
-
value: this._myIndex.getValueForItemAtKeyId(t,
|
|
1769
|
-
searcher:
|
|
1770
|
-
}),
|
|
1771
|
-
idx:
|
|
1779
|
+
})) : o = this._findMatches({
|
|
1780
|
+
key: this._keyStore.get(r),
|
|
1781
|
+
value: this._myIndex.getValueForItemAtKeyId(t, r),
|
|
1782
|
+
searcher: a
|
|
1783
|
+
}), o && o.length ? [{
|
|
1784
|
+
idx: i,
|
|
1772
1785
|
item: t,
|
|
1773
|
-
matches:
|
|
1786
|
+
matches: o
|
|
1774
1787
|
}] : [];
|
|
1775
1788
|
}
|
|
1776
|
-
let { children:
|
|
1777
|
-
for (let e = 0,
|
|
1778
|
-
let
|
|
1779
|
-
if (c.length)
|
|
1780
|
-
else if (
|
|
1789
|
+
let { children: a, operator: o } = e, s = [];
|
|
1790
|
+
for (let e = 0, n = a.length; e < n; e += 1) {
|
|
1791
|
+
let n = a[e], c = r(n, t, i);
|
|
1792
|
+
if (c.length) s.push(...c);
|
|
1793
|
+
else if (o === Dn.AND) return [];
|
|
1781
1794
|
}
|
|
1782
|
-
return
|
|
1783
|
-
},
|
|
1784
|
-
return
|
|
1795
|
+
return s;
|
|
1796
|
+
}, i = this._myIndex.records, a = /* @__PURE__ */ new Map(), o = [];
|
|
1797
|
+
return i.forEach(({ $: e, i: n }) => {
|
|
1785
1798
|
if (Z(e)) {
|
|
1786
|
-
let
|
|
1787
|
-
|
|
1788
|
-
idx:
|
|
1799
|
+
let i = r(t, e, n);
|
|
1800
|
+
i.length && (a.has(n) || (a.set(n, {
|
|
1801
|
+
idx: n,
|
|
1789
1802
|
item: e,
|
|
1790
1803
|
matches: []
|
|
1791
|
-
}),
|
|
1792
|
-
|
|
1804
|
+
}), o.push(a.get(n))), i.forEach(({ matches: e }) => {
|
|
1805
|
+
a.get(n).matches.push(...e);
|
|
1793
1806
|
}));
|
|
1794
1807
|
}
|
|
1795
|
-
}),
|
|
1808
|
+
}), o;
|
|
1796
1809
|
}
|
|
1797
1810
|
_searchObjectList(e, { heap: t, ignoreFieldNorm: n } = {}) {
|
|
1798
|
-
let r = this._getSearcher(e), i = this.options.useTokenSearch && this.options.tokenMatch === "all", {
|
|
1799
|
-
return
|
|
1811
|
+
let r = this._getSearcher(e), i = this.options.useTokenSearch && this.options.tokenMatch === "all", { records: a } = this._myIndex, o = this._normalizedKeys(), s = t ? null : [];
|
|
1812
|
+
return a.forEach(({ $: e, i: a }) => {
|
|
1800
1813
|
if (!Z(e)) return;
|
|
1801
1814
|
let c = [], l = !1, u = !1;
|
|
1802
|
-
if (
|
|
1815
|
+
if (o.forEach((t, n) => {
|
|
1803
1816
|
let i = this._findMatches({
|
|
1804
1817
|
key: t,
|
|
1805
1818
|
value: e[n],
|
|
@@ -1808,11 +1821,11 @@ var $ = class {
|
|
|
1808
1821
|
i.length ? (c.push(...i), i[0].hasInverse && (u = !0)) : l = !0;
|
|
1809
1822
|
}), !(u && l) && c.length && (!i || this._coversAllTokens(c))) {
|
|
1810
1823
|
let r = {
|
|
1811
|
-
idx:
|
|
1824
|
+
idx: a,
|
|
1812
1825
|
item: e,
|
|
1813
1826
|
matches: c
|
|
1814
1827
|
};
|
|
1815
|
-
t ? (r.score =
|
|
1828
|
+
t ? (r.score = Pn(r.matches, { ignoreFieldNorm: n }), t.insert(r)) : s.push(r);
|
|
1816
1829
|
}
|
|
1817
1830
|
}), s;
|
|
1818
1831
|
}
|
|
@@ -1867,16 +1880,16 @@ var $ = class {
|
|
|
1867
1880
|
return n.size === t;
|
|
1868
1881
|
}
|
|
1869
1882
|
};
|
|
1870
|
-
$.version = "7.
|
|
1883
|
+
$.version = "7.5.0", $.createIndex = rn, $.parseIndex = an, $.config = Q, $.match = function(e, t, n) {
|
|
1871
1884
|
if (n && n.useTokenSearch) throw Error(Ut);
|
|
1872
|
-
return
|
|
1885
|
+
return En(e, {
|
|
1873
1886
|
...Q,
|
|
1874
1887
|
...n
|
|
1875
1888
|
}).searchIn(t);
|
|
1876
|
-
}, $.parseQuery =
|
|
1877
|
-
e.forEach((e) =>
|
|
1889
|
+
}, $.parseQuery = Nn, Tn(Cn), Tn(Wn), $.use = function(...e) {
|
|
1890
|
+
e.forEach((e) => Tn(e));
|
|
1878
1891
|
};
|
|
1879
|
-
var
|
|
1892
|
+
var Zn = $, Qn = ({ anchorEl: e, onChange: t, onClose: n, onEscapeKeyDown: r, open: i, searchMode: a }) => {
|
|
1880
1893
|
let { t: o } = G(), s = [
|
|
1881
1894
|
{
|
|
1882
1895
|
label: o`Include match`,
|
|
@@ -1909,7 +1922,7 @@ var Xn = $, Zn = ({ anchorEl: e, onChange: t, onClose: n, onEscapeKeyDown: r, op
|
|
|
1909
1922
|
open: i,
|
|
1910
1923
|
placement: "bottom-end",
|
|
1911
1924
|
sx: { zIndex: (e) => e.zIndex.modal + 1 },
|
|
1912
|
-
children: /* @__PURE__ */ K(
|
|
1925
|
+
children: /* @__PURE__ */ K(le, {
|
|
1913
1926
|
onClickAway: n,
|
|
1914
1927
|
children: /* @__PURE__ */ q(ye, {
|
|
1915
1928
|
elevation: 8,
|
|
@@ -1926,8 +1939,8 @@ var Xn = $, Zn = ({ anchorEl: e, onChange: t, onClose: n, onEscapeKeyDown: r, op
|
|
|
1926
1939
|
children: [/* @__PURE__ */ K(pe, { children: e.searchMode === a && /* @__PURE__ */ K(at, { fontSize: "small" }) }), /* @__PURE__ */ K(me, { children: e.label })]
|
|
1927
1940
|
}, e.searchMode))
|
|
1928
1941
|
}),
|
|
1929
|
-
/* @__PURE__ */ K(
|
|
1930
|
-
/* @__PURE__ */ q(
|
|
1942
|
+
/* @__PURE__ */ K(I, {}),
|
|
1943
|
+
/* @__PURE__ */ q(P, {
|
|
1931
1944
|
sx: { p: 1.5 },
|
|
1932
1945
|
children: [
|
|
1933
1946
|
/* @__PURE__ */ K(R, {
|
|
@@ -1952,7 +1965,7 @@ var Xn = $, Zn = ({ anchorEl: e, onChange: t, onClose: n, onEscapeKeyDown: r, op
|
|
|
1952
1965
|
})
|
|
1953
1966
|
})
|
|
1954
1967
|
});
|
|
1955
|
-
},
|
|
1968
|
+
}, $n = (e, t) => {
|
|
1956
1969
|
switch (t) {
|
|
1957
1970
|
case "exact-match": return `=${e}`;
|
|
1958
1971
|
case "fuzzy-match": return e;
|
|
@@ -1961,13 +1974,13 @@ var Xn = $, Zn = ({ anchorEl: e, onChange: t, onClose: n, onEscapeKeyDown: r, op
|
|
|
1961
1974
|
case "suffix-exact-match": return `${e}$`;
|
|
1962
1975
|
default: return `'${e}`;
|
|
1963
1976
|
}
|
|
1964
|
-
},
|
|
1965
|
-
let e = U(null), t = U(null), r = U(null), i = U(!1), s = U(null), l = U(null), u = U(null), d = z(c), f = o(d, (e) => e.sortedData), p = o(d, (e) => e.completeCaseType), m = Ce(), { t: h } = G(), [g, _] = W(""), [v, y] = W(null), [b, x] = W([]), [S, C] = W(!1), [w, T] = W(-1), [te, E] = W("include-match"), [D,
|
|
1966
|
-
g && (
|
|
1977
|
+
}, er = () => {
|
|
1978
|
+
let e = U(null), t = U(null), r = U(null), i = U(!1), s = U(null), l = U(null), u = U(null), d = z(c), f = o(d, (e) => e.sortedData), p = o(d, (e) => e.completeCaseType), m = Ce(), { t: h } = G(), [g, _] = W(""), [v, y] = W(null), [b, x] = W([]), [S, C] = W(!1), [w, T] = W(-1), [te, E] = W("include-match"), [D, ne] = W(null), O = z(ee), re = null;
|
|
1979
|
+
g && (re = b.length ? w < 0 ? h("{{numResults}} results", { numResults: b.length }) : h("{{current}}/{{numResults}} results", {
|
|
1967
1980
|
current: w + 1,
|
|
1968
1981
|
numResults: b.length
|
|
1969
1982
|
}) : h`No results`);
|
|
1970
|
-
let
|
|
1983
|
+
let k = B(() => {
|
|
1971
1984
|
let e = [];
|
|
1972
1985
|
return f.forEach((t) => {
|
|
1973
1986
|
let r = { id: t.id };
|
|
@@ -1979,7 +1992,7 @@ var Xn = $, Zn = ({ anchorEl: e, onChange: t, onClose: n, onEscapeKeyDown: r, op
|
|
|
1979
1992
|
let o = n.getRowValue({ [e]: t }, i, p);
|
|
1980
1993
|
o.isMissing || (a.concept_set_id || (r[`${e}-raw`] = o.raw), o.full !== o.raw && (r[`${e}-full`] = o.full), o.long !== o.raw && o.long !== o.full && (r[`${e}-long`] = o.long), o.short !== o.raw && o.short !== o.full && o.short !== o.long && (r[`${e}-short`] = o.short));
|
|
1981
1994
|
}), e.push(r);
|
|
1982
|
-
}), new
|
|
1995
|
+
}), new Zn(e, {
|
|
1983
1996
|
ignoreDiacritics: !0,
|
|
1984
1997
|
ignoreLocation: !1,
|
|
1985
1998
|
includeMatches: !0,
|
|
@@ -1994,77 +2007,77 @@ var Xn = $, Zn = ({ anchorEl: e, onChange: t, onClose: n, onEscapeKeyDown: r, op
|
|
|
1994
2007
|
threshold: .3,
|
|
1995
2008
|
useExtendedSearch: !0
|
|
1996
2009
|
});
|
|
1997
|
-
}, [p, f]),
|
|
2010
|
+
}, [p, f]), A = B(() => {
|
|
1998
2011
|
if (v) return v;
|
|
1999
|
-
let e =
|
|
2012
|
+
let e = k();
|
|
2000
2013
|
return y(e), e;
|
|
2001
|
-
}, [
|
|
2014
|
+
}, [k, v]), ie = B((e) => {
|
|
2002
2015
|
let t = e.target.value;
|
|
2003
|
-
_(t), t &&
|
|
2004
|
-
}, [
|
|
2016
|
+
_(t), t && A();
|
|
2017
|
+
}, [A]);
|
|
2005
2018
|
V(() => {
|
|
2006
2019
|
_(""), C(!1), y(null), x([]), T(-1);
|
|
2007
2020
|
}, [p, f]), V(() => {
|
|
2008
2021
|
if (!g) {
|
|
2009
|
-
x([]), T(-1),
|
|
2022
|
+
x([]), T(-1), O.highlight({
|
|
2010
2023
|
caseIds: [],
|
|
2011
2024
|
origin: a.SEARCH_BOX
|
|
2012
2025
|
});
|
|
2013
2026
|
return;
|
|
2014
2027
|
}
|
|
2015
2028
|
if (!v) return;
|
|
2016
|
-
let e =
|
|
2017
|
-
x(
|
|
2029
|
+
let e = $n(g, te), t = v.search(e).sort((e, t) => e.refIndex - t.refIndex);
|
|
2030
|
+
x(t), T(-1);
|
|
2018
2031
|
}, [
|
|
2019
|
-
|
|
2032
|
+
O,
|
|
2020
2033
|
v,
|
|
2021
2034
|
te,
|
|
2022
2035
|
g
|
|
2023
2036
|
]);
|
|
2024
|
-
let
|
|
2037
|
+
let j = B(() => {
|
|
2025
2038
|
C(!0);
|
|
2026
2039
|
}, []);
|
|
2027
2040
|
V(() => {
|
|
2028
2041
|
S ? e.current?.focus() : i.current && (i.current = !1, t.current?.focus());
|
|
2029
2042
|
}, [S]);
|
|
2030
|
-
let
|
|
2031
|
-
i.current = !0, C(!1), _(""), x([]), T(-1),
|
|
2043
|
+
let M = B(() => {
|
|
2044
|
+
i.current = !0, C(!1), _(""), x([]), T(-1), O.highlight({
|
|
2032
2045
|
caseIds: [],
|
|
2033
2046
|
origin: a.SEARCH_BOX
|
|
2034
2047
|
});
|
|
2035
|
-
}, [
|
|
2036
|
-
|
|
2037
|
-
}, [
|
|
2038
|
-
e.key === "Escape" && (e.preventDefault(),
|
|
2039
|
-
}, [
|
|
2048
|
+
}, [O]), ae = B(() => {
|
|
2049
|
+
M();
|
|
2050
|
+
}, [M]), oe = B((e) => {
|
|
2051
|
+
e.key === "Escape" && (e.preventDefault(), M());
|
|
2052
|
+
}, [M]), N = B((e) => {
|
|
2040
2053
|
if (e.key === "Enter") {
|
|
2041
2054
|
if (!b?.length) return;
|
|
2042
2055
|
e.preventDefault(), T(0), l.current?.focus();
|
|
2043
2056
|
}
|
|
2044
|
-
}, [b]), oe = B(() => {
|
|
2045
|
-
b?.length && T((e) => e <= 0 ? b.length - 1 : e - 1);
|
|
2046
2057
|
}, [b]), se = B(() => {
|
|
2058
|
+
b?.length && T((e) => e <= 0 ? b.length - 1 : e - 1);
|
|
2059
|
+
}, [b]), ce = B(() => {
|
|
2047
2060
|
b?.length && T((e) => e >= b.length - 1 ? 0 : e + 1);
|
|
2048
2061
|
}, [b]);
|
|
2049
2062
|
V(() => {
|
|
2050
2063
|
if (!b?.length || w < 0 || w >= b.length) {
|
|
2051
|
-
|
|
2064
|
+
O.highlight({
|
|
2052
2065
|
caseIds: [],
|
|
2053
2066
|
origin: a.SEARCH_BOX
|
|
2054
2067
|
});
|
|
2055
2068
|
return;
|
|
2056
2069
|
}
|
|
2057
|
-
|
|
2070
|
+
O.highlight({
|
|
2058
2071
|
caseIds: [b[w].item.id],
|
|
2059
2072
|
origin: a.SEARCH_BOX,
|
|
2060
2073
|
scrollIntoView: !0
|
|
2061
2074
|
});
|
|
2062
2075
|
}, [
|
|
2063
|
-
|
|
2076
|
+
O,
|
|
2064
2077
|
b,
|
|
2065
2078
|
w
|
|
2066
2079
|
]);
|
|
2067
|
-
let
|
|
2080
|
+
let F = B((t) => {
|
|
2068
2081
|
if (t.key === "ArrowRight") {
|
|
2069
2082
|
t.preventDefault();
|
|
2070
2083
|
let e = t.currentTarget.nextElementSibling;
|
|
@@ -2078,16 +2091,16 @@ var Xn = $, Zn = ({ anchorEl: e, onChange: t, onClose: n, onEscapeKeyDown: r, op
|
|
|
2078
2091
|
let n = t.currentTarget.previousElementSibling;
|
|
2079
2092
|
n && n.focus();
|
|
2080
2093
|
}
|
|
2081
|
-
}, []), ce = B(() => {
|
|
2082
|
-
O(r.current);
|
|
2083
2094
|
}, []), le = B(() => {
|
|
2084
|
-
|
|
2095
|
+
ne(r.current);
|
|
2096
|
+
}, []), I = B(() => {
|
|
2097
|
+
ne(null);
|
|
2085
2098
|
}, []), ue = B(() => {
|
|
2086
|
-
|
|
2099
|
+
ne(null), r.current?.focus();
|
|
2087
2100
|
}, []), fe = B((t) => {
|
|
2088
2101
|
E(t), e.current?.focus();
|
|
2089
2102
|
}, []);
|
|
2090
|
-
return /* @__PURE__ */ K(
|
|
2103
|
+
return /* @__PURE__ */ K(P, {
|
|
2091
2104
|
sx: {
|
|
2092
2105
|
height: m.spacing(4),
|
|
2093
2106
|
maxWidth: m.spacing(60),
|
|
@@ -2095,25 +2108,25 @@ var Xn = $, Zn = ({ anchorEl: e, onChange: t, onClose: n, onEscapeKeyDown: r, op
|
|
|
2095
2108
|
width: "calc(100% / 2)"
|
|
2096
2109
|
},
|
|
2097
2110
|
...J.createAttributes("DashboardSearch"),
|
|
2098
|
-
children: S ? /* @__PURE__ */ K(
|
|
2099
|
-
onKeyDown:
|
|
2111
|
+
children: S ? /* @__PURE__ */ K(P, {
|
|
2112
|
+
onKeyDown: oe,
|
|
2100
2113
|
children: /* @__PURE__ */ K(ve, {
|
|
2101
2114
|
endAdornment: /* @__PURE__ */ q(de, {
|
|
2102
2115
|
position: "end",
|
|
2103
2116
|
children: [
|
|
2104
|
-
|
|
2117
|
+
re && /* @__PURE__ */ K(P, {
|
|
2105
2118
|
"aria-atomic": "true",
|
|
2106
2119
|
"aria-live": "polite",
|
|
2107
2120
|
role: "status",
|
|
2108
|
-
children:
|
|
2121
|
+
children: re
|
|
2109
2122
|
}),
|
|
2110
2123
|
/* @__PURE__ */ K(L, {
|
|
2111
2124
|
...J.createAttributes("DashboardSearch-PreviousButton"),
|
|
2112
2125
|
"aria-label": h`Goto previous search result`,
|
|
2113
2126
|
disabled: !b?.length,
|
|
2114
2127
|
edge: "end",
|
|
2115
|
-
onClick:
|
|
2116
|
-
onKeyDown:
|
|
2128
|
+
onClick: se,
|
|
2129
|
+
onKeyDown: F,
|
|
2117
2130
|
ref: s,
|
|
2118
2131
|
sx: { color: m.palette.primary.main },
|
|
2119
2132
|
children: /* @__PURE__ */ K(tt, {})
|
|
@@ -2123,8 +2136,8 @@ var Xn = $, Zn = ({ anchorEl: e, onChange: t, onClose: n, onEscapeKeyDown: r, op
|
|
|
2123
2136
|
"aria-label": h`Goto next search result`,
|
|
2124
2137
|
disabled: !b?.length,
|
|
2125
2138
|
edge: "end",
|
|
2126
|
-
onClick:
|
|
2127
|
-
onKeyDown:
|
|
2139
|
+
onClick: ce,
|
|
2140
|
+
onKeyDown: F,
|
|
2128
2141
|
ref: l,
|
|
2129
2142
|
sx: { color: m.palette.primary.main },
|
|
2130
2143
|
children: /* @__PURE__ */ K(nt, {})
|
|
@@ -2133,15 +2146,15 @@ var Xn = $, Zn = ({ anchorEl: e, onChange: t, onClose: n, onEscapeKeyDown: r, op
|
|
|
2133
2146
|
...J.createAttributes("DashboardSearch-SettingsButton"),
|
|
2134
2147
|
"aria-label": h`Open settings`,
|
|
2135
2148
|
edge: "end",
|
|
2136
|
-
onClick:
|
|
2137
|
-
onKeyDown:
|
|
2149
|
+
onClick: le,
|
|
2150
|
+
onKeyDown: F,
|
|
2138
2151
|
ref: r,
|
|
2139
2152
|
children: /* @__PURE__ */ K(rt, {})
|
|
2140
2153
|
}),
|
|
2141
|
-
/* @__PURE__ */ K(
|
|
2154
|
+
/* @__PURE__ */ K(Qn, {
|
|
2142
2155
|
anchorEl: D,
|
|
2143
2156
|
onChange: fe,
|
|
2144
|
-
onClose:
|
|
2157
|
+
onClose: I,
|
|
2145
2158
|
onEscapeKeyDown: ue,
|
|
2146
2159
|
open: !!D,
|
|
2147
2160
|
searchMode: te
|
|
@@ -2150,8 +2163,8 @@ var Xn = $, Zn = ({ anchorEl: e, onChange: t, onClose: n, onEscapeKeyDown: r, op
|
|
|
2150
2163
|
...J.createAttributes("DashboardSearch-CloseButton"),
|
|
2151
2164
|
"aria-label": h`Close search`,
|
|
2152
2165
|
edge: "end",
|
|
2153
|
-
onClick:
|
|
2154
|
-
onKeyDown:
|
|
2166
|
+
onClick: ae,
|
|
2167
|
+
onKeyDown: F,
|
|
2155
2168
|
ref: u,
|
|
2156
2169
|
children: /* @__PURE__ */ K(it, {})
|
|
2157
2170
|
})
|
|
@@ -2160,8 +2173,8 @@ var Xn = $, Zn = ({ anchorEl: e, onChange: t, onClose: n, onEscapeKeyDown: r, op
|
|
|
2160
2173
|
fullWidth: !0,
|
|
2161
2174
|
inputRef: e,
|
|
2162
2175
|
name: h`Search listed cases`,
|
|
2163
|
-
onChange:
|
|
2164
|
-
onKeyDown:
|
|
2176
|
+
onChange: ie,
|
|
2177
|
+
onKeyDown: N,
|
|
2165
2178
|
placeholder: h`Search listed cases`,
|
|
2166
2179
|
size: "small",
|
|
2167
2180
|
slotProps: { input: {
|
|
@@ -2181,7 +2194,7 @@ var Xn = $, Zn = ({ anchorEl: e, onChange: t, onClose: n, onEscapeKeyDown: r, op
|
|
|
2181
2194
|
type: "search",
|
|
2182
2195
|
value: g
|
|
2183
2196
|
})
|
|
2184
|
-
}) : /* @__PURE__ */ K(
|
|
2197
|
+
}) : /* @__PURE__ */ K(P, {
|
|
2185
2198
|
sx: {
|
|
2186
2199
|
justifySelf: "flex-end",
|
|
2187
2200
|
marginRight: m.spacing(.6),
|
|
@@ -2190,7 +2203,7 @@ var Xn = $, Zn = ({ anchorEl: e, onChange: t, onClose: n, onEscapeKeyDown: r, op
|
|
|
2190
2203
|
children: /* @__PURE__ */ K(L, {
|
|
2191
2204
|
"aria-label": h`Search`,
|
|
2192
2205
|
edge: "end",
|
|
2193
|
-
onClick:
|
|
2206
|
+
onClick: j,
|
|
2194
2207
|
ref: t,
|
|
2195
2208
|
sx: {
|
|
2196
2209
|
color: m.palette.primary.main,
|
|
@@ -2201,14 +2214,14 @@ var Xn = $, Zn = ({ anchorEl: e, onChange: t, onClose: n, onEscapeKeyDown: r, op
|
|
|
2201
2214
|
})
|
|
2202
2215
|
})
|
|
2203
2216
|
});
|
|
2204
|
-
},
|
|
2205
|
-
let { t } = G(), n = Ce(), r = U(null), i = U(null), a = U(null), s = U(null), l = U(null), f = U(null), p = U(null), m = U(null), h = U(null), g = U(null), ee = U(null), [E, D] = W(!1), [
|
|
2206
|
-
|
|
2207
|
-
}, [
|
|
2217
|
+
}, tr = ({ caseSet: e }) => {
|
|
2218
|
+
let { t } = G(), n = Ce(), r = U(null), i = U(null), a = U(null), s = U(null), l = U(null), f = U(null), p = U(null), m = U(null), h = U(null), g = U(null), ee = U(null), [E, D] = W(!1), [ne, O] = W(!1), [re, k] = W(!1), A = z(c), ie = o(A, d((e) => e.fetchData)), j = o(A, (e) => e.completeCaseType), M = o(A, (e) => e.filters.filter((e) => !e.isInitialFilterValue()).length), ae = o(A, (e) => e.isMaxResultsExceeded), oe = o(A, (e) => e.isMaxResultsExceededDismissed), F = B(() => {
|
|
2219
|
+
A.setState({ isMaxResultsExceededDismissed: !0 });
|
|
2220
|
+
}, [A]);
|
|
2208
2221
|
V(() => {
|
|
2209
2222
|
let e = u.getInstance(), t = [
|
|
2210
2223
|
e.addEventListener("onEventCreated", () => {
|
|
2211
|
-
|
|
2224
|
+
ie();
|
|
2212
2225
|
}),
|
|
2213
2226
|
e.addEventListener("openAddCasesToEventDialog", (...e) => g.current?.open(...e)),
|
|
2214
2227
|
e.addEventListener("openCaseInfoDialog", (...e) => f.current?.open(...e)),
|
|
@@ -2223,7 +2236,7 @@ var Xn = $, Zn = ({ anchorEl: e, onChange: t, onClose: n, onEscapeKeyDown: r, op
|
|
|
2223
2236
|
return () => {
|
|
2224
2237
|
t.forEach((e) => e());
|
|
2225
2238
|
};
|
|
2226
|
-
}, [
|
|
2239
|
+
}, [ie]), V(() => {
|
|
2227
2240
|
let e = [
|
|
2228
2241
|
Ke.getInstance().registerShortcut({
|
|
2229
2242
|
callback: () => {
|
|
@@ -2234,7 +2247,7 @@ var Xn = $, Zn = ({ anchorEl: e, onChange: t, onClose: n, onEscapeKeyDown: r, op
|
|
|
2234
2247
|
}),
|
|
2235
2248
|
Ke.getInstance().registerShortcut({
|
|
2236
2249
|
callback: () => {
|
|
2237
|
-
|
|
2250
|
+
O((e) => !e);
|
|
2238
2251
|
},
|
|
2239
2252
|
key: "s",
|
|
2240
2253
|
modifier: null
|
|
@@ -2251,36 +2264,36 @@ var Xn = $, Zn = ({ anchorEl: e, onChange: t, onClose: n, onEscapeKeyDown: r, op
|
|
|
2251
2264
|
e.forEach((e) => e());
|
|
2252
2265
|
};
|
|
2253
2266
|
}, []);
|
|
2254
|
-
let
|
|
2267
|
+
let le = B(() => {
|
|
2255
2268
|
D(!1);
|
|
2256
|
-
}, []),
|
|
2269
|
+
}, []), I = B(() => {
|
|
2257
2270
|
D(!0);
|
|
2258
2271
|
}, []), ue = B(() => {
|
|
2259
|
-
|
|
2272
|
+
O(!1);
|
|
2260
2273
|
}, []), L = B(() => {
|
|
2261
|
-
|
|
2274
|
+
k(!1);
|
|
2262
2275
|
}, []), de = B(() => {
|
|
2263
|
-
|
|
2276
|
+
O(!0);
|
|
2264
2277
|
}, []), fe = B(() => {
|
|
2265
|
-
|
|
2278
|
+
k(!0);
|
|
2266
2279
|
}, []), pe = B(() => {
|
|
2267
2280
|
a.current.open();
|
|
2268
2281
|
}, []), me = B(() => {
|
|
2269
2282
|
i.current.open({
|
|
2270
2283
|
caseSetId: e?.id,
|
|
2271
|
-
caseTypeId:
|
|
2284
|
+
caseTypeId: j?.id
|
|
2272
2285
|
});
|
|
2273
|
-
}, [e?.id,
|
|
2286
|
+
}, [e?.id, j?.id]), he = B(() => {
|
|
2274
2287
|
r.current?.reset();
|
|
2275
|
-
}, []), ge = H(() => !!
|
|
2288
|
+
}, []), ge = H(() => !!ae && !oe, [oe, ae]);
|
|
2276
2289
|
return /* @__PURE__ */ q(je, { children: [
|
|
2277
2290
|
/* @__PURE__ */ q(We, { children: [
|
|
2278
2291
|
/* @__PURE__ */ K(Ge, {
|
|
2279
2292
|
badgeColor: "secondary",
|
|
2280
|
-
badgeContent:
|
|
2293
|
+
badgeContent: M,
|
|
2281
2294
|
first: !0,
|
|
2282
2295
|
icon: /* @__PURE__ */ K(Re, {}),
|
|
2283
|
-
onClick:
|
|
2296
|
+
onClick: I,
|
|
2284
2297
|
testIdAttributes: { name: "filters" },
|
|
2285
2298
|
title: t`Open filters`
|
|
2286
2299
|
}),
|
|
@@ -2310,51 +2323,51 @@ var Xn = $, Zn = ({ anchorEl: e, onChange: t, onClose: n, onEscapeKeyDown: r, op
|
|
|
2310
2323
|
title: t`Download`
|
|
2311
2324
|
}),
|
|
2312
2325
|
/* @__PURE__ */ K(Le, {
|
|
2313
|
-
onClose:
|
|
2326
|
+
onClose: le,
|
|
2314
2327
|
open: E
|
|
2315
2328
|
}),
|
|
2316
2329
|
/* @__PURE__ */ K(_t, {
|
|
2317
2330
|
onClose: ue,
|
|
2318
2331
|
onReset: he,
|
|
2319
|
-
open:
|
|
2332
|
+
open: ne
|
|
2320
2333
|
}),
|
|
2321
2334
|
/* @__PURE__ */ K(y, { ref: a }),
|
|
2322
2335
|
e && /* @__PURE__ */ K(v, { ref: i }),
|
|
2323
2336
|
/* @__PURE__ */ K(Ot, {
|
|
2324
2337
|
onClose: L,
|
|
2325
|
-
open:
|
|
2338
|
+
open: re
|
|
2326
2339
|
})
|
|
2327
2340
|
] }),
|
|
2328
|
-
/* @__PURE__ */ q(
|
|
2341
|
+
/* @__PURE__ */ q(P, {
|
|
2329
2342
|
sx: {
|
|
2330
2343
|
display: "grid",
|
|
2331
2344
|
gridTemplateRows: `${ge ? "max-content " : ""}max-content auto`,
|
|
2332
2345
|
height: "100%",
|
|
2333
|
-
paddingLeft: n.spacing(
|
|
2346
|
+
paddingLeft: n.spacing(N.getInstance().config.layout.SIDEBAR_MENU_WIDTH + 1),
|
|
2334
2347
|
width: "100%"
|
|
2335
2348
|
},
|
|
2336
2349
|
children: [
|
|
2337
|
-
ge && /* @__PURE__ */ K(
|
|
2350
|
+
ge && /* @__PURE__ */ K(P, {
|
|
2338
2351
|
sx: { marginY: n.spacing(1) },
|
|
2339
|
-
children: /* @__PURE__ */ q(
|
|
2340
|
-
onClose:
|
|
2352
|
+
children: /* @__PURE__ */ q(se, {
|
|
2353
|
+
onClose: F,
|
|
2341
2354
|
severity: "warning",
|
|
2342
2355
|
sx: { width: "100%" },
|
|
2343
|
-
children: [/* @__PURE__ */ K(
|
|
2344
|
-
caseTypeName:
|
|
2345
|
-
maxResultsForCaseType:
|
|
2356
|
+
children: [/* @__PURE__ */ K(ce, { children: t`Maximum number of results exceeded` }), t("The maximum number of results for {{caseTypeName}} ({{maxResultsForCaseType}}) has been exceeded. Refine your filters to reduce the number of results.", {
|
|
2357
|
+
caseTypeName: j.name,
|
|
2358
|
+
maxResultsForCaseType: j.props.read_max_n_cases
|
|
2346
2359
|
})]
|
|
2347
2360
|
})
|
|
2348
2361
|
}),
|
|
2349
|
-
/* @__PURE__ */ q(
|
|
2362
|
+
/* @__PURE__ */ q(P, {
|
|
2350
2363
|
sx: {
|
|
2351
2364
|
display: "flex",
|
|
2352
2365
|
justifyContent: "space-between"
|
|
2353
2366
|
},
|
|
2354
|
-
children: [/* @__PURE__ */ K(T, {}), /* @__PURE__ */ K(
|
|
2367
|
+
children: [/* @__PURE__ */ K(T, {}), /* @__PURE__ */ K(er, {})]
|
|
2355
2368
|
}),
|
|
2356
|
-
/* @__PURE__ */ K(
|
|
2357
|
-
disabled: E ||
|
|
2369
|
+
/* @__PURE__ */ K(P, { children: /* @__PURE__ */ K(Tt, {
|
|
2370
|
+
disabled: E || ne,
|
|
2358
2371
|
ref: r
|
|
2359
2372
|
}) })
|
|
2360
2373
|
]
|
|
@@ -2368,7 +2381,7 @@ var Xn = $, Zn = ({ anchorEl: e, onChange: t, onClose: n, onEscapeKeyDown: r, op
|
|
|
2368
2381
|
/* @__PURE__ */ K(C, { ref: h }),
|
|
2369
2382
|
/* @__PURE__ */ K(b, { ref: g })
|
|
2370
2383
|
] });
|
|
2371
|
-
},
|
|
2384
|
+
}, nr = ({ caseSet: e, children: t }) => {
|
|
2372
2385
|
let n = z(E), r = H(() => new ot({
|
|
2373
2386
|
caseIds: [],
|
|
2374
2387
|
origin: null
|
|
@@ -2383,37 +2396,37 @@ var Xn = $, Zn = ({ anchorEl: e, onChange: t, onClose: n, onEscapeKeyDown: r, op
|
|
|
2383
2396
|
a
|
|
2384
2397
|
]), s = B((e) => {
|
|
2385
2398
|
n.getState().dashboardGeneralSettings.isHighlightingEnabled && r.next(e);
|
|
2386
|
-
}, [r, n])
|
|
2399
|
+
}, [r, n]), c = H(() => ({
|
|
2400
|
+
caseSet: e,
|
|
2401
|
+
highlight: s,
|
|
2402
|
+
highlightSubject: r,
|
|
2403
|
+
lineListRangeSubject: i,
|
|
2404
|
+
linkedScrollSubject: a,
|
|
2405
|
+
reset: o
|
|
2406
|
+
}), [
|
|
2407
|
+
e,
|
|
2408
|
+
s,
|
|
2409
|
+
r,
|
|
2410
|
+
i,
|
|
2411
|
+
a,
|
|
2412
|
+
o
|
|
2413
|
+
]);
|
|
2387
2414
|
return /* @__PURE__ */ K(ee, {
|
|
2388
|
-
value:
|
|
2389
|
-
caseSet: e,
|
|
2390
|
-
highlight: s,
|
|
2391
|
-
highlightSubject: r,
|
|
2392
|
-
lineListRangeSubject: i,
|
|
2393
|
-
linkedScrollSubject: a,
|
|
2394
|
-
reset: o
|
|
2395
|
-
}), [
|
|
2396
|
-
e,
|
|
2397
|
-
s,
|
|
2398
|
-
r,
|
|
2399
|
-
i,
|
|
2400
|
-
a,
|
|
2401
|
-
o
|
|
2402
|
-
]),
|
|
2415
|
+
value: c,
|
|
2403
2416
|
children: t
|
|
2404
2417
|
});
|
|
2405
|
-
},
|
|
2406
|
-
let t =
|
|
2407
|
-
|
|
2418
|
+
}, rr = f(({ caseSet: e }) => {
|
|
2419
|
+
let t = z(c), n = o(t, (e) => e.dataError), [r, i] = W(null), a = B(() => {
|
|
2420
|
+
i(null);
|
|
2408
2421
|
}, []);
|
|
2409
2422
|
return V(() => {
|
|
2410
2423
|
let e = [u.getInstance().addEventListener("openEditCases", (e) => {
|
|
2411
|
-
|
|
2424
|
+
i(e);
|
|
2412
2425
|
})];
|
|
2413
2426
|
return () => {
|
|
2414
2427
|
e.forEach((e) => e());
|
|
2415
2428
|
};
|
|
2416
|
-
}, []), /* @__PURE__ */ K(
|
|
2429
|
+
}, []), /* @__PURE__ */ K(nr, {
|
|
2417
2430
|
caseSet: e,
|
|
2418
2431
|
children: /* @__PURE__ */ K(Ne, {
|
|
2419
2432
|
sx: {
|
|
@@ -2422,19 +2435,19 @@ var Xn = $, Zn = ({ anchorEl: e, onChange: t, onClose: n, onEscapeKeyDown: r, op
|
|
|
2422
2435
|
width: "100%"
|
|
2423
2436
|
},
|
|
2424
2437
|
children: /* @__PURE__ */ K(Me, {
|
|
2425
|
-
error:
|
|
2438
|
+
error: n,
|
|
2426
2439
|
isLoading: !1,
|
|
2427
|
-
children:
|
|
2428
|
-
cases:
|
|
2429
|
-
onClose:
|
|
2430
|
-
}) : /* @__PURE__ */ K(
|
|
2440
|
+
children: r ? /* @__PURE__ */ K(g, {
|
|
2441
|
+
cases: r,
|
|
2442
|
+
onClose: a
|
|
2443
|
+
}) : /* @__PURE__ */ K(tr, { caseSet: e })
|
|
2431
2444
|
})
|
|
2432
2445
|
})
|
|
2433
2446
|
});
|
|
2434
|
-
}),
|
|
2447
|
+
}), ir = Se(I)(({ theme: e }) => ({
|
|
2435
2448
|
marginBottom: e.spacing(.5),
|
|
2436
2449
|
marginTop: e.spacing(.5)
|
|
2437
|
-
})),
|
|
2450
|
+
})), ar = ({ children: e, expandDisabled: t, isLoading: n, primaryMenu: r, secondaryMenu: a, title: s, warningMessage: l, widgetName: u }) => {
|
|
2438
2451
|
let d = Ce(), { t: f } = G(), p = z(E), m = z(c), h = z(St), g = o(m, (e) => e.expandZone), _ = o(m, (e) => e.expandedZone), v = o(p, (e) => i.getEnabledWidgets(e.dashboardArrangementConfig).length), y = o(p, (e) => e.setDashboardArrangementConfig), b = _ === h, x = B(() => {
|
|
2439
2452
|
g(_ === h ? null : h);
|
|
2440
2453
|
}, [
|
|
@@ -2491,13 +2504,13 @@ var Xn = $, Zn = ({ anchorEl: e, onChange: t, onClose: n, onEscapeKeyDown: r, op
|
|
|
2491
2504
|
menuItemsData: s,
|
|
2492
2505
|
showTopLevelTooltip: !0
|
|
2493
2506
|
});
|
|
2494
|
-
}, [d, s]), w = H(() => /* @__PURE__ */ K(
|
|
2507
|
+
}, [d, s]), w = H(() => /* @__PURE__ */ K(P, {
|
|
2495
2508
|
sx: {
|
|
2496
2509
|
height: d.spacing(3),
|
|
2497
2510
|
position: "relative",
|
|
2498
2511
|
width: "100%"
|
|
2499
2512
|
},
|
|
2500
|
-
children: /* @__PURE__ */ K(
|
|
2513
|
+
children: /* @__PURE__ */ K(P, {
|
|
2501
2514
|
sx: {
|
|
2502
2515
|
height: d.spacing(3),
|
|
2503
2516
|
left: 0,
|
|
@@ -2507,31 +2520,31 @@ var Xn = $, Zn = ({ anchorEl: e, onChange: t, onClose: n, onEscapeKeyDown: r, op
|
|
|
2507
2520
|
children: C
|
|
2508
2521
|
})
|
|
2509
2522
|
}), [d, C]);
|
|
2510
|
-
return /* @__PURE__ */ q(
|
|
2523
|
+
return /* @__PURE__ */ q(P, {
|
|
2511
2524
|
...J.createAttributes("DashboardWidget", { "widget-name": u }),
|
|
2512
2525
|
sx: { height: "100%" },
|
|
2513
|
-
children: [/* @__PURE__ */ q(
|
|
2526
|
+
children: [/* @__PURE__ */ q(P, {
|
|
2514
2527
|
sx: {
|
|
2515
2528
|
display: "flex",
|
|
2516
2529
|
height: d.spacing(3),
|
|
2517
2530
|
justifyContent: "space-between"
|
|
2518
2531
|
},
|
|
2519
|
-
children: [w, /* @__PURE__ */ q(
|
|
2532
|
+
children: [w, /* @__PURE__ */ q(P, {
|
|
2520
2533
|
sx: { display: "flex" },
|
|
2521
|
-
children: [/* @__PURE__ */ q(
|
|
2534
|
+
children: [/* @__PURE__ */ q(P, {
|
|
2522
2535
|
sx: {
|
|
2523
2536
|
display: "flex",
|
|
2524
2537
|
height: `calc(${d.spacing(3)} - 1px)`,
|
|
2525
2538
|
justifySelf: "right",
|
|
2526
2539
|
marginTop: "1px"
|
|
2527
2540
|
},
|
|
2528
|
-
children: [r && /* @__PURE__ */ K(
|
|
2541
|
+
children: [r && /* @__PURE__ */ K(M, { menu: r }), r && /* @__PURE__ */ K(ir, {
|
|
2529
2542
|
"aria-hidden": "true",
|
|
2530
2543
|
flexItem: !0,
|
|
2531
2544
|
orientation: "vertical",
|
|
2532
2545
|
variant: "middle"
|
|
2533
2546
|
})]
|
|
2534
|
-
}), /* @__PURE__ */ q(
|
|
2547
|
+
}), /* @__PURE__ */ q(P, {
|
|
2535
2548
|
sx: {
|
|
2536
2549
|
display: "flex",
|
|
2537
2550
|
height: `calc(${d.spacing(3)} - 1px)`,
|
|
@@ -2539,20 +2552,20 @@ var Xn = $, Zn = ({ anchorEl: e, onChange: t, onClose: n, onEscapeKeyDown: r, op
|
|
|
2539
2552
|
marginTop: "1px"
|
|
2540
2553
|
},
|
|
2541
2554
|
children: [
|
|
2542
|
-
a && /* @__PURE__ */ K(
|
|
2543
|
-
a && /* @__PURE__ */ K(
|
|
2555
|
+
a && /* @__PURE__ */ K(M, { menu: a }),
|
|
2556
|
+
a && /* @__PURE__ */ K(ir, {
|
|
2544
2557
|
"aria-hidden": "true",
|
|
2545
2558
|
flexItem: !0,
|
|
2546
2559
|
orientation: "vertical",
|
|
2547
2560
|
variant: "middle"
|
|
2548
2561
|
}),
|
|
2549
|
-
v > 1 && /* @__PURE__ */ q(
|
|
2562
|
+
v > 1 && /* @__PURE__ */ q(j, {
|
|
2550
2563
|
disabled: t,
|
|
2551
2564
|
label: b ? f`Collapse` : f`Expand`,
|
|
2552
2565
|
onClick: x,
|
|
2553
2566
|
children: [b && /* @__PURE__ */ K(st, {}), !b && /* @__PURE__ */ K(ct, {})]
|
|
2554
2567
|
}),
|
|
2555
|
-
!b && /* @__PURE__ */ K(
|
|
2568
|
+
!b && /* @__PURE__ */ K(j, {
|
|
2556
2569
|
label: f`Remove widget`,
|
|
2557
2570
|
onClick: S,
|
|
2558
2571
|
sx: { marginRight: d.spacing(-1) },
|
|
@@ -2561,15 +2574,15 @@ var Xn = $, Zn = ({ anchorEl: e, onChange: t, onClose: n, onEscapeKeyDown: r, op
|
|
|
2561
2574
|
]
|
|
2562
2575
|
})]
|
|
2563
2576
|
})]
|
|
2564
|
-
}), /* @__PURE__ */ q(
|
|
2577
|
+
}), /* @__PURE__ */ q(P, {
|
|
2565
2578
|
sx: {
|
|
2566
2579
|
height: `calc(100% - ${d.spacing(3)})`,
|
|
2567
2580
|
position: "relative"
|
|
2568
2581
|
},
|
|
2569
|
-
children: [l && /* @__PURE__ */ K(
|
|
2582
|
+
children: [l && /* @__PURE__ */ K(P, {
|
|
2570
2583
|
sx: { height: d.spacing(3) },
|
|
2571
|
-
children: /* @__PURE__ */ K(
|
|
2572
|
-
}), /* @__PURE__ */ q(
|
|
2584
|
+
children: /* @__PURE__ */ K(ae, { warningMessage: l })
|
|
2585
|
+
}), /* @__PURE__ */ q(P, {
|
|
2573
2586
|
sx: { height: l ? `calc(100% - ${d.spacing(3)})` : "100%" },
|
|
2574
2587
|
children: [n && /* @__PURE__ */ K(qe, { label: f`Loading` }), !n && e]
|
|
2575
2588
|
})]
|
|
@@ -2577,6 +2590,6 @@ var Xn = $, Zn = ({ anchorEl: e, onChange: t, onClose: n, onEscapeKeyDown: r, op
|
|
|
2577
2590
|
});
|
|
2578
2591
|
};
|
|
2579
2592
|
//#endregion
|
|
2580
|
-
export {
|
|
2593
|
+
export { rr as n, ar as t };
|
|
2581
2594
|
|
|
2582
2595
|
//# sourceMappingURL=Dashboard.js.map
|