@k-int/stripes-kint-components 2.8.2 → 3.0.0
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/CHANGELOG.md +15 -3
- package/es/index.js +48 -12
- package/es/lib/ActionList/ActionList.js +11 -5
- package/es/lib/ActionList/ActionListFieldArray.js +147 -77
- package/es/lib/CustomProperties/Config/CustomPropertiesLookup.js +43 -31
- package/es/lib/CustomProperties/Config/CustomPropertiesLookup.test.js +17 -14
- package/es/lib/CustomProperties/Config/CustomPropertiesSettings.js +64 -46
- package/es/lib/CustomProperties/Config/CustomPropertiesSettings.test.js +17 -24
- package/es/lib/CustomProperties/Config/CustomPropertyForm.js +91 -70
- package/es/lib/CustomProperties/Config/CustomPropertyForm.test.js +53 -36
- package/es/lib/CustomProperties/Config/CustomPropertyView.js +50 -31
- package/es/lib/CustomProperties/Config/CustomPropertyView.test.js +13 -14
- package/es/lib/CustomProperties/Edit/CustomPropertiesEdit.js +6 -0
- package/es/lib/CustomProperties/Edit/CustomPropertiesEdit.test.js +8 -12
- package/es/lib/CustomProperties/Edit/CustomPropertiesEditCtx.js +22 -24
- package/es/lib/CustomProperties/Edit/CustomPropertiesEditCtx.test.js +9 -12
- package/es/lib/CustomProperties/Edit/CustomPropertiesListField.js +62 -13
- package/es/lib/CustomProperties/Edit/CustomPropertiesListField.test.js +12 -13
- package/es/lib/CustomProperties/Edit/CustomPropertyField.js +91 -44
- package/es/lib/CustomProperties/Edit/CustomPropertyField.test.js +80 -73
- package/es/lib/CustomProperties/Edit/CustomPropertyFormCard.js +31 -32
- package/es/lib/CustomProperties/Edit/CustomPropertyFormCard.test.js +26 -24
- package/es/lib/CustomProperties/Edit/testResources.js +73 -908
- package/es/lib/CustomProperties/Filter/CustomPropertiesFilter.js +21 -29
- package/es/lib/CustomProperties/Filter/CustomPropertiesFilter.test.js +12 -10
- package/es/lib/CustomProperties/Filter/CustomPropertiesFilterField.js +38 -39
- package/es/lib/CustomProperties/Filter/CustomPropertiesFilterField.test.js +28 -13
- package/es/lib/CustomProperties/Filter/CustomPropertiesFilterFieldArray.js +29 -44
- package/es/lib/CustomProperties/Filter/CustomPropertiesFilterFieldArray.test.js +6 -6
- package/es/lib/CustomProperties/Filter/CustomPropertiesFilterForm.js +16 -10
- package/es/lib/CustomProperties/Filter/CustomPropertiesFilterForm.test.js +12 -12
- package/es/lib/CustomProperties/Filter/CustomPropertiesRule.js +20 -11
- package/es/lib/CustomProperties/Filter/CustomPropertiesRule.test.js +4 -3
- package/es/lib/CustomProperties/Filter/testResources.js +37 -233
- package/es/lib/CustomProperties/Filter/useOperators.js +69 -27
- package/es/lib/CustomProperties/Filter/useParseActiveFilterStrings.js +3 -2
- package/es/lib/CustomProperties/Filter/useValueProps.js +7 -2
- package/es/lib/CustomProperties/View/CustomPropertiesView.js +6 -0
- package/es/lib/CustomProperties/View/CustomPropertiesView.test.js +4 -3
- package/es/lib/CustomProperties/View/CustomPropertiesViewCtx.js +13 -19
- package/es/lib/CustomProperties/View/CustomPropertiesViewCtx.test.js +4 -10
- package/es/lib/CustomProperties/View/CustomPropertyCard.js +34 -51
- package/es/lib/EditableRefdataCategoryList/EditableRefdataCategoryList.js +35 -27
- package/es/lib/EditableRefdataList/EditableRefdataList.js +41 -31
- package/es/lib/EditableSettingsList/EditableSettingsList.js +11 -1
- package/es/lib/EditableSettingsList/EditableSettingsListFieldArray.js +10 -0
- package/es/lib/EditableSettingsList/SettingField/EditSettingValue.js +19 -11
- package/es/lib/EditableSettingsList/SettingField/EditSettingValue.test.js +9 -8
- package/es/lib/EditableSettingsList/SettingField/RenderSettingValue.js +21 -9
- package/es/lib/EditableSettingsList/SettingField/RenderSettingValue.test.js +1 -0
- package/es/lib/EditableSettingsList/SettingField/SettingField.js +83 -16
- package/es/lib/EditableSettingsList/SettingField/SettingField.test.js +138 -65
- package/es/lib/FormModal/FormModal.js +14 -9
- package/es/lib/FormattedKintMessage/FormattedKintMessage.js +91 -0
- package/es/lib/FormattedKintMessage/index.js +15 -0
- package/es/lib/IconSelect/IconSelect.js +18 -12
- package/es/lib/NoResultsMessage/NoResultsMessage.js +13 -2
- package/es/lib/RichSelect/RichSelect.js +13 -34
- package/es/lib/SASQLookupComponent/SASQLookupComponent.js +16 -5
- package/es/lib/SASQLookupComponent/TableBody/TableBody.js +11 -1
- package/es/lib/SettingPage/SettingPage.js +12 -13
- package/es/lib/SettingPage/SettingPagePane.js +12 -20
- package/es/lib/hooks/__mocks__/index.js +46 -0
- package/es/lib/hooks/index.js +24 -8
- package/es/lib/hooks/settingsHooks/useSettings.js +22 -17
- package/es/lib/hooks/useIntlKey.js +34 -0
- package/es/lib/hooks/useIntlKeyStore.js +84 -0
- package/es/lib/hooks/useKintIntl.js +93 -0
- package/es/lib/utils/index.js +40 -4
- package/es/lib/utils/parseErrorResponse.js +1 -1
- package/es/lib/utils/validators.js +76 -59
- package/jest.config.js +4 -1
- package/junit.xml +157 -656
- package/package.json +54 -33
- package/src/artifacts/coverage-jest/lcov-report/ActionList/ActionList.js.html +56 -8
- package/src/artifacts/coverage-jest/lcov-report/ActionList/ActionListFieldArray.js.html +394 -64
- package/src/artifacts/coverage-jest/lcov-report/ActionList/index.html +10 -10
- package/src/artifacts/coverage-jest/lcov-report/ActionList/index.js.html +1 -1
- package/src/artifacts/coverage-jest/lcov-report/CustomProperties/Config/CustomPropertiesLookup.js.html +187 -52
- package/src/artifacts/coverage-jest/lcov-report/CustomProperties/Config/CustomPropertiesSettings.js.html +372 -87
- package/src/artifacts/coverage-jest/lcov-report/CustomProperties/Config/CustomPropertyForm.js.html +293 -74
- package/src/artifacts/coverage-jest/lcov-report/CustomProperties/Config/CustomPropertyView.js.html +126 -54
- package/src/artifacts/coverage-jest/lcov-report/CustomProperties/Config/index.html +45 -60
- package/src/artifacts/coverage-jest/lcov-report/CustomProperties/Config/index.js.html +1 -1
- package/src/artifacts/coverage-jest/lcov-report/CustomProperties/Edit/CustomPropertiesEdit.js.html +23 -5
- package/src/artifacts/coverage-jest/lcov-report/CustomProperties/Edit/CustomPropertiesEditCtx.js.html +59 -47
- package/src/artifacts/coverage-jest/lcov-report/CustomProperties/Edit/CustomPropertiesListField.js.html +259 -97
- package/src/artifacts/coverage-jest/lcov-report/CustomProperties/Edit/CustomPropertyField.js.html +399 -105
- package/src/artifacts/coverage-jest/lcov-report/CustomProperties/Edit/CustomPropertyFormCard.js.html +41 -68
- package/src/artifacts/coverage-jest/lcov-report/CustomProperties/Edit/index.html +57 -57
- package/src/artifacts/coverage-jest/lcov-report/CustomProperties/Edit/index.js.html +1 -1
- package/src/artifacts/coverage-jest/lcov-report/CustomProperties/Edit/testResources.js.html +67 -688
- package/src/artifacts/coverage-jest/lcov-report/CustomProperties/Filter/CustomPropertiesFilter.js.html +92 -53
- package/src/artifacts/coverage-jest/lcov-report/CustomProperties/Filter/CustomPropertiesFilterField.js.html +103 -64
- package/src/artifacts/coverage-jest/lcov-report/CustomProperties/Filter/CustomPropertiesFilterFieldArray.js.html +54 -63
- package/src/artifacts/coverage-jest/lcov-report/CustomProperties/Filter/CustomPropertiesFilterForm.js.html +49 -16
- package/src/artifacts/coverage-jest/lcov-report/CustomProperties/Filter/CustomPropertiesRule.js.html +69 -18
- package/src/artifacts/coverage-jest/lcov-report/CustomProperties/Filter/index.html +89 -89
- package/src/artifacts/coverage-jest/lcov-report/CustomProperties/Filter/index.js.html +1 -1
- package/src/artifacts/coverage-jest/lcov-report/CustomProperties/Filter/testResources.js.html +33 -786
- package/src/artifacts/coverage-jest/lcov-report/CustomProperties/Filter/useOperators.js.html +46 -46
- package/src/artifacts/coverage-jest/lcov-report/CustomProperties/Filter/useParseActiveFilterStrings.js.html +45 -36
- package/src/artifacts/coverage-jest/lcov-report/CustomProperties/Filter/useValueProps.js.html +43 -28
- package/src/artifacts/coverage-jest/lcov-report/CustomProperties/View/CustomPropertiesView.js.html +20 -2
- package/src/artifacts/coverage-jest/lcov-report/CustomProperties/View/CustomPropertiesViewCtx.js.html +50 -41
- package/src/artifacts/coverage-jest/lcov-report/CustomProperties/View/CustomPropertyCard.js.html +54 -75
- package/src/artifacts/coverage-jest/lcov-report/CustomProperties/View/index.html +24 -24
- package/src/artifacts/coverage-jest/lcov-report/CustomProperties/View/index.js.html +1 -1
- package/src/artifacts/coverage-jest/lcov-report/CustomProperties/View/testResources.js.html +1 -1
- package/src/artifacts/coverage-jest/lcov-report/CustomProperties/index.html +1 -1
- package/src/artifacts/coverage-jest/lcov-report/CustomProperties/index.js.html +1 -1
- package/src/artifacts/coverage-jest/lcov-report/{hooks/useAvailableCustomProperties.js.html → CycleButton/CycleButton.js.html} +62 -50
- package/src/artifacts/coverage-jest/lcov-report/CycleButton/index.html +131 -0
- package/src/artifacts/coverage-jest/lcov-report/CycleButton/index.js.html +88 -0
- package/src/artifacts/coverage-jest/lcov-report/EditableRefdataCategoryList/EditableRefdataCategoryList.js.html +664 -0
- package/src/artifacts/coverage-jest/lcov-report/EditableRefdataCategoryList/index.html +131 -0
- package/src/artifacts/coverage-jest/lcov-report/EditableRefdataCategoryList/index.js.html +88 -0
- package/src/artifacts/coverage-jest/lcov-report/EditableRefdataList/EditableRefdataList.js.html +264 -39
- package/src/artifacts/coverage-jest/lcov-report/EditableRefdataList/index.html +9 -9
- package/src/artifacts/coverage-jest/lcov-report/EditableRefdataList/index.js.html +1 -1
- package/src/artifacts/coverage-jest/lcov-report/EditableSettingsList/EditableSettingsList.js.html +41 -14
- package/src/artifacts/coverage-jest/lcov-report/EditableSettingsList/EditableSettingsListFieldArray.js.html +45 -6
- package/src/artifacts/coverage-jest/lcov-report/EditableSettingsList/SettingField/EditSettingValue.js.html +47 -11
- package/src/artifacts/coverage-jest/lcov-report/EditableSettingsList/SettingField/RenderSettingValue.js.html +65 -14
- package/src/artifacts/coverage-jest/lcov-report/EditableSettingsList/SettingField/SettingField.js.html +154 -31
- package/src/artifacts/coverage-jest/lcov-report/EditableSettingsList/SettingField/index.html +26 -26
- package/src/artifacts/coverage-jest/lcov-report/EditableSettingsList/SettingField/index.js.html +1 -1
- package/src/artifacts/coverage-jest/lcov-report/EditableSettingsList/index.html +18 -18
- package/src/artifacts/coverage-jest/lcov-report/EditableSettingsList/index.js.html +1 -1
- package/src/artifacts/coverage-jest/lcov-report/FormModal/FormModal.js.html +35 -17
- package/src/artifacts/coverage-jest/lcov-report/FormModal/index.html +15 -15
- package/src/artifacts/coverage-jest/lcov-report/FormModal/index.js.html +1 -1
- package/src/artifacts/coverage-jest/lcov-report/FormattedKintMessage/FormattedKintMessage.js.html +247 -0
- package/src/artifacts/coverage-jest/lcov-report/FormattedKintMessage/index.html +131 -0
- package/src/artifacts/coverage-jest/lcov-report/FormattedKintMessage/index.js.html +88 -0
- package/src/artifacts/coverage-jest/lcov-report/{CustomProperties/Config/CustomPropertiesView.js.html → IconSelect/IconSelect.js.html} +158 -257
- package/src/artifacts/coverage-jest/lcov-report/IconSelect/index.html +131 -0
- package/src/artifacts/coverage-jest/lcov-report/IconSelect/index.js.html +88 -0
- package/src/artifacts/coverage-jest/lcov-report/NoResultsMessage/NoResultsMessage.js.html +48 -6
- package/src/artifacts/coverage-jest/lcov-report/NoResultsMessage/index.html +7 -7
- package/src/artifacts/coverage-jest/lcov-report/NoResultsMessage/index.js.html +1 -1
- package/src/artifacts/coverage-jest/lcov-report/QueryTypedown/QueryTypedown.js.html +1 -1
- package/src/artifacts/coverage-jest/lcov-report/QueryTypedown/index.html +1 -1
- package/src/artifacts/coverage-jest/lcov-report/QueryTypedown/index.js.html +1 -1
- package/src/artifacts/coverage-jest/lcov-report/RefdataButtons/RefdataButtons.js.html +3 -3
- package/src/artifacts/coverage-jest/lcov-report/RefdataButtons/index.html +1 -1
- package/src/artifacts/coverage-jest/lcov-report/RefdataButtons/index.js.html +1 -1
- package/src/artifacts/coverage-jest/lcov-report/{CustomProperties/Config/testResources.js.html → RichSelect/RichSelect.js.html} +256 -334
- package/src/artifacts/coverage-jest/lcov-report/RichSelect/index.html +146 -0
- package/src/artifacts/coverage-jest/lcov-report/RichSelect/index.js.html +91 -0
- package/src/artifacts/coverage-jest/lcov-report/RichSelect/useSelectedOption.js.html +127 -0
- package/src/artifacts/coverage-jest/lcov-report/SASQLookupComponent/SASQLookupComponent.js.html +52 -7
- package/src/artifacts/coverage-jest/lcov-report/SASQLookupComponent/TableBody/TableBody.js.html +31 -4
- package/src/artifacts/coverage-jest/lcov-report/SASQLookupComponent/TableBody/index.html +3 -3
- package/src/artifacts/coverage-jest/lcov-report/SASQLookupComponent/TableBody/index.js.html +1 -1
- package/src/artifacts/coverage-jest/lcov-report/SASQLookupComponent/index.html +7 -7
- package/src/artifacts/coverage-jest/lcov-report/SASQLookupComponent/index.js.html +1 -1
- package/src/artifacts/coverage-jest/lcov-report/SASQRoute/SASQRoute.js.html +1 -1
- package/src/artifacts/coverage-jest/lcov-report/SASQRoute/index.html +1 -1
- package/src/artifacts/coverage-jest/lcov-report/SASQRoute/index.js.html +1 -1
- package/src/artifacts/coverage-jest/lcov-report/SASQViewComponent/SASQViewComponent.js.html +1 -1
- package/src/artifacts/coverage-jest/lcov-report/SASQViewComponent/index.html +1 -1
- package/src/artifacts/coverage-jest/lcov-report/SASQViewComponent/index.js.html +1 -1
- package/src/artifacts/coverage-jest/lcov-report/SearchField/SearchField.js.html +1 -1
- package/src/artifacts/coverage-jest/lcov-report/SearchField/index.html +1 -1
- package/src/artifacts/coverage-jest/lcov-report/SearchField/index.js.html +1 -1
- package/src/artifacts/coverage-jest/lcov-report/SettingPage/SettingPage.js.html +24 -27
- package/src/artifacts/coverage-jest/lcov-report/SettingPage/SettingPagePane.js.html +47 -17
- package/src/artifacts/coverage-jest/lcov-report/SettingPage/index.html +22 -22
- package/src/artifacts/coverage-jest/lcov-report/SettingPage/index.js.html +1 -1
- package/src/artifacts/coverage-jest/lcov-report/Typedown/Typedown.js.html +1 -1
- package/src/artifacts/coverage-jest/lcov-report/Typedown/index.html +1 -1
- package/src/artifacts/coverage-jest/lcov-report/Typedown/index.js.html +1 -1
- package/src/artifacts/coverage-jest/lcov-report/constants/customProperties.js.html +1 -1
- package/src/artifacts/coverage-jest/lcov-report/constants/eventCodes.js.html +1 -1
- package/src/artifacts/coverage-jest/lcov-report/constants/index.html +1 -1
- package/src/artifacts/coverage-jest/lcov-report/contexts/SettingsContext.js.html +2 -2
- package/src/artifacts/coverage-jest/lcov-report/contexts/index.html +1 -1
- package/src/artifacts/coverage-jest/lcov-report/contexts/index.js.html +1 -1
- package/src/artifacts/coverage-jest/lcov-report/favicon.png +0 -0
- package/src/artifacts/coverage-jest/lcov-report/hooks/index.html +142 -97
- package/src/artifacts/coverage-jest/lcov-report/hooks/index.js.html +13 -4
- package/src/artifacts/coverage-jest/lcov-report/hooks/settingsHooks/index.html +35 -20
- package/src/artifacts/coverage-jest/lcov-report/hooks/settingsHooks/index.js.html +5 -2
- package/src/artifacts/coverage-jest/lcov-report/hooks/settingsHooks/useAppSettings.js.html +7 -7
- package/src/artifacts/coverage-jest/lcov-report/hooks/settingsHooks/useSettingSection.js.html +7 -7
- package/src/artifacts/coverage-jest/lcov-report/hooks/settingsHooks/useSettings.js.html +61 -22
- package/src/artifacts/coverage-jest/lcov-report/hooks/typedownHooks/index.html +1 -1
- package/src/artifacts/coverage-jest/lcov-report/hooks/typedownHooks/index.js.html +1 -1
- package/src/artifacts/coverage-jest/lcov-report/hooks/typedownHooks/useTypedown.js.html +1 -1
- package/src/artifacts/coverage-jest/lcov-report/hooks/typedownHooks/useTypedownData.js.html +1 -1
- package/src/artifacts/coverage-jest/lcov-report/hooks/typedownHooks/useTypedownToggle.js.html +1 -1
- package/src/artifacts/coverage-jest/lcov-report/hooks/useActiveElement.js.html +7 -7
- package/src/artifacts/coverage-jest/lcov-report/hooks/useCustomProperties.js.html +19 -22
- package/src/artifacts/coverage-jest/lcov-report/hooks/useHelperApp.js.html +7 -7
- package/src/artifacts/coverage-jest/lcov-report/hooks/useIntlKey.js.html +151 -0
- package/src/artifacts/coverage-jest/lcov-report/{utils/renderHelpText.js.html → hooks/useIntlKeyStore.js.html} +71 -38
- package/src/artifacts/coverage-jest/lcov-report/hooks/useInvalidateRefdata.js.html +7 -7
- package/src/artifacts/coverage-jest/lcov-report/hooks/useKintIntl.js.html +238 -0
- package/src/artifacts/coverage-jest/lcov-report/hooks/useKiwtFieldArray.js.html +7 -7
- package/src/artifacts/coverage-jest/lcov-report/hooks/useKiwtSASQuery.js.html +9 -9
- package/src/artifacts/coverage-jest/lcov-report/hooks/useLocalStorageState.js.html +7 -7
- package/src/artifacts/coverage-jest/lcov-report/hooks/useMutateCustomProperties.js.html +23 -11
- package/src/artifacts/coverage-jest/lcov-report/hooks/useMutateRefdataCategory.js.html +274 -0
- package/src/artifacts/coverage-jest/lcov-report/hooks/useMutateRefdataValue.js.html +19 -10
- package/src/artifacts/coverage-jest/lcov-report/hooks/useQIndex.js.html +7 -7
- package/src/artifacts/coverage-jest/lcov-report/hooks/useRefdata.js.html +9 -9
- package/src/artifacts/coverage-jest/lcov-report/hooks/useTemplates.js.html +7 -7
- package/src/artifacts/coverage-jest/lcov-report/index.html +205 -130
- package/src/artifacts/coverage-jest/lcov-report/sort-arrow-sprite.png +0 -0
- package/src/artifacts/coverage-jest/lcov-report/utils/buildUrl.js.html +1 -1
- package/src/artifacts/coverage-jest/lcov-report/utils/generateKiwtQuery.js.html +2 -2
- package/src/artifacts/coverage-jest/lcov-report/utils/generateKiwtQueryParams.js.html +2 -2
- package/src/artifacts/coverage-jest/lcov-report/utils/groupCustomPropertiesByCtx.js.html +7 -7
- package/src/artifacts/coverage-jest/lcov-report/utils/highlightString.js.html +3 -3
- package/src/artifacts/coverage-jest/lcov-report/utils/index.html +34 -34
- package/src/artifacts/coverage-jest/lcov-report/utils/index.js.html +42 -3
- package/src/artifacts/coverage-jest/lcov-report/utils/matchString.js.html +2 -2
- package/src/artifacts/coverage-jest/lcov-report/utils/parseErrorResponse.js.html +139 -0
- package/src/artifacts/coverage-jest/lcov-report/utils/refdataOptions.js.html +5 -2
- package/src/artifacts/coverage-jest/lcov-report/utils/refdataQueryKey.js.html +2 -2
- package/src/artifacts/coverage-jest/lcov-report/utils/selectorSafe.js.html +2 -2
- package/src/artifacts/coverage-jest/lcov-report/utils/sortByLabel.js.html +2 -2
- package/src/artifacts/coverage-jest/lcov-report/utils/toCamelCase.js.html +2 -2
- package/src/artifacts/coverage-jest/lcov-report/utils/typedownQueryKey.js.html +2 -2
- package/src/artifacts/coverage-jest/lcov-report/utils/validators.js.html +128 -80
- package/src/artifacts/coverage-jest/lcov.info +2603 -2086
- package/src/index.js +11 -4
- package/src/lib/ActionList/ActionList.js +9 -3
- package/src/lib/ActionList/ActionListFieldArray.js +115 -37
- package/src/lib/ActionList/README.md +2 -1
- package/src/lib/CustomProperties/Config/CustomPropertiesLookup.js +60 -16
- package/src/lib/CustomProperties/Config/CustomPropertiesLookup.test.js +14 -4
- package/src/lib/CustomProperties/Config/CustomPropertiesSettings.js +106 -33
- package/src/lib/CustomProperties/Config/CustomPropertiesSettings.test.js +16 -9
- package/src/lib/CustomProperties/Config/CustomPropertyForm.js +131 -58
- package/src/lib/CustomProperties/Config/CustomPropertyForm.test.js +52 -33
- package/src/lib/CustomProperties/Config/CustomPropertyView.js +71 -47
- package/src/lib/CustomProperties/Config/CustomPropertyView.test.js +8 -6
- package/src/lib/CustomProperties/Config/README.md +33 -28
- package/src/lib/CustomProperties/Edit/CustomPropertiesEdit.js +6 -0
- package/src/lib/CustomProperties/Edit/CustomPropertiesEdit.test.js +7 -3
- package/src/lib/CustomProperties/Edit/CustomPropertiesEditCtx.js +23 -19
- package/src/lib/CustomProperties/Edit/CustomPropertiesEditCtx.test.js +5 -3
- package/src/lib/CustomProperties/Edit/CustomPropertiesListField.js +65 -11
- package/src/lib/CustomProperties/Edit/CustomPropertiesListField.test.js +10 -8
- package/src/lib/CustomProperties/Edit/CustomPropertyField.js +115 -21
- package/src/lib/CustomProperties/Edit/CustomPropertyField.test.js +59 -60
- package/src/lib/CustomProperties/Edit/CustomPropertyFormCard.js +24 -33
- package/src/lib/CustomProperties/Edit/CustomPropertyFormCard.test.js +20 -27
- package/src/lib/CustomProperties/Edit/testResources.js +46 -1047
- package/src/lib/CustomProperties/Filter/CustomPropertiesFilter.js +22 -22
- package/src/lib/CustomProperties/Filter/CustomPropertiesFilter.test.js +12 -8
- package/src/lib/CustomProperties/Filter/CustomPropertiesFilterField.js +44 -31
- package/src/lib/CustomProperties/Filter/CustomPropertiesFilterField.test.js +26 -13
- package/src/lib/CustomProperties/Filter/CustomPropertiesFilterFieldArray.js +33 -36
- package/src/lib/CustomProperties/Filter/CustomPropertiesFilterFieldArray.test.js +3 -3
- package/src/lib/CustomProperties/Filter/CustomPropertiesFilterForm.js +19 -8
- package/src/lib/CustomProperties/Filter/CustomPropertiesFilterForm.test.js +9 -12
- package/src/lib/CustomProperties/Filter/CustomPropertiesRule.js +22 -5
- package/src/lib/CustomProperties/Filter/CustomPropertiesRule.test.js +3 -1
- package/src/lib/CustomProperties/Filter/testResources.js +14 -265
- package/src/lib/CustomProperties/Filter/useOperators.js +20 -20
- package/src/lib/CustomProperties/Filter/useParseActiveFilterStrings.js +2 -2
- package/src/lib/CustomProperties/Filter/useValueProps.js +8 -3
- package/src/lib/CustomProperties/View/CustomPropertiesView.js +6 -0
- package/src/lib/CustomProperties/View/CustomPropertiesView.test.js +2 -1
- package/src/lib/CustomProperties/View/CustomPropertiesViewCtx.js +15 -13
- package/src/lib/CustomProperties/View/CustomPropertiesViewCtx.test.js +2 -5
- package/src/lib/CustomProperties/View/CustomPropertyCard.js +36 -43
- package/src/lib/EditableRefdataCategoryList/EditableRefdataCategoryList.js +45 -27
- package/src/lib/EditableRefdataList/EditableRefdataList.js +56 -32
- package/src/lib/EditableSettingsList/EditableSettingsList.js +10 -1
- package/src/lib/EditableSettingsList/EditableSettingsListFieldArray.js +14 -1
- package/src/lib/EditableSettingsList/SettingField/EditSettingValue.js +17 -5
- package/src/lib/EditableSettingsList/SettingField/EditSettingValue.test.js +9 -8
- package/src/lib/EditableSettingsList/SettingField/RenderSettingValue.js +24 -7
- package/src/lib/EditableSettingsList/SettingField/RenderSettingValue.test.js +1 -0
- package/src/lib/EditableSettingsList/SettingField/SettingField.js +57 -16
- package/src/lib/EditableSettingsList/SettingField/SettingField.test.js +14 -19
- package/src/lib/FormModal/FormModal.js +15 -9
- package/src/lib/FormattedKintMessage/FormattedKintMessage.js +54 -0
- package/src/lib/FormattedKintMessage/index.js +1 -0
- package/src/lib/IconSelect/IconSelect.js +17 -8
- package/src/lib/NoResultsMessage/NoResultsMessage.js +15 -1
- package/src/lib/RichSelect/RichSelect.js +16 -36
- package/src/lib/SASQLookupComponent/SASQLookupComponent.js +17 -2
- package/src/lib/SASQLookupComponent/TableBody/TableBody.js +10 -1
- package/src/lib/SettingPage/SettingPage.js +12 -13
- package/src/lib/SettingPage/SettingPagePane.js +16 -6
- package/src/lib/hooks/__mocks__/index.js +17 -0
- package/src/lib/hooks/index.js +3 -1
- package/src/lib/hooks/settingsHooks/useSettings.js +25 -12
- package/src/lib/hooks/useIntlKey.js +22 -0
- package/src/lib/hooks/useIntlKeyStore.js +38 -0
- package/src/lib/hooks/useKintIntl.js +51 -0
- package/src/lib/utils/index.js +11 -1
- package/src/lib/utils/parseErrorResponse.js +1 -1
- package/src/lib/utils/validators.js +57 -41
- package/styles/RichSelect.css +7 -4
- package/test/helpers/test-implementor-translations.json +80 -0
- package/test/helpers/translationsProperties.js +6 -1
- package/test/jest/customProperties.js +166 -0
- package/test/jest/helpers/KintHarness.js +1 -1
- package/test/jest/helpers/renderWithKintHarness.js +2 -1
- package/test/jest/index.js +8 -0
- package/test/jest/refdata.js +471 -0
- package/test/jest/resolver.js +29 -0
- package/translations/stripes-kint-components/ar.json +1 -122
- package/translations/stripes-kint-components/cs_CZ.json +1 -122
- package/translations/stripes-kint-components/de.json +1 -122
- package/translations/stripes-kint-components/en.json +1 -148
- package/translations/stripes-kint-components/es.json +1 -122
- package/translations/stripes-kint-components/hi_IN.json +1 -122
- package/translations/stripes-kint-components/hu.json +1 -122
- package/translations/stripes-kint-components/it_IT.json +1 -122
- package/translations/stripes-kint-components/ja.json +1 -122
- package/translations/stripes-kint-components/ko.json +1 -122
- package/translations/stripes-kint-components/pt_PT.json +1 -122
- package/translations/stripes-kint-components/ru.json +1 -122
- package/translations/stripes-kint-components/sv.json +1 -122
- package/translations/stripes-kint-components/zh_CN.json +1 -122
- package/es/lib/CustomProperties/Config/testResources.js +0 -198
- package/es/lib/hooks/useAvailableCustomProperties.js +0 -73
- package/es/lib/utils/renderHelpText.js +0 -80
- package/src/lib/CustomProperties/Config/testResources.js +0 -236
- package/src/lib/hooks/useAvailableCustomProperties.js +0 -40
- package/src/lib/utils/renderHelpText.js +0 -27
|
@@ -0,0 +1,166 @@
|
|
|
1
|
+
import refdata from './refdata';
|
|
2
|
+
|
|
3
|
+
const customProperties = [
|
|
4
|
+
{
|
|
5
|
+
id: '2c91809c813e654501813e6c3c6a0063',
|
|
6
|
+
weight: 0,
|
|
7
|
+
primary: true,
|
|
8
|
+
retired: false,
|
|
9
|
+
defaultInternal: true,
|
|
10
|
+
type: 'com.k_int.web.toolkit.custprops.types.CustomPropertyDecimal',
|
|
11
|
+
label: 'Test',
|
|
12
|
+
name: 'test',
|
|
13
|
+
description: 'Test description',
|
|
14
|
+
ctx: 'OpenAccess',
|
|
15
|
+
},
|
|
16
|
+
{
|
|
17
|
+
id: '2c91809c813e654501813e6c3c6a0066',
|
|
18
|
+
retired: false,
|
|
19
|
+
ctx: 'OpenAccess',
|
|
20
|
+
name: 'AuthorIdentification',
|
|
21
|
+
primary: true,
|
|
22
|
+
category: refdata?.find(rdc => rdc.desc === 'AuthIdent'),
|
|
23
|
+
defaultInternal: true,
|
|
24
|
+
label: 'Author Identification',
|
|
25
|
+
description: 'Author Identification',
|
|
26
|
+
weight: 0,
|
|
27
|
+
type: 'com.k_int.web.toolkit.custprops.types.CustomPropertyRefdata'
|
|
28
|
+
},
|
|
29
|
+
{
|
|
30
|
+
id: '2c91809c813e654501813e6c3c7d0067',
|
|
31
|
+
retired: false,
|
|
32
|
+
ctx: 'OpenAccess',
|
|
33
|
+
name: 'Eligible authors',
|
|
34
|
+
primary: true,
|
|
35
|
+
defaultInternal: true,
|
|
36
|
+
label: 'Does this agreement support publishing',
|
|
37
|
+
description: 'Does this agreement support publishing',
|
|
38
|
+
weight: 0,
|
|
39
|
+
type: 'com.k_int.web.toolkit.custprops.types.CustomPropertyText'
|
|
40
|
+
},
|
|
41
|
+
{
|
|
42
|
+
id: '2c91809c813e654501814287324e0070',
|
|
43
|
+
retired: false,
|
|
44
|
+
ctx: 'OpenAccess',
|
|
45
|
+
name: 'Test',
|
|
46
|
+
primary: true,
|
|
47
|
+
category: refdata?.find(rdc => rdc.desc === 'SubscriptionAgreement.AgreementStatus'),
|
|
48
|
+
defaultInternal: true,
|
|
49
|
+
label: 'test',
|
|
50
|
+
description: 'test description',
|
|
51
|
+
weight: 1,
|
|
52
|
+
type: 'com.k_int.web.toolkit.custprops.types.CustomPropertyRefdata'
|
|
53
|
+
},
|
|
54
|
+
{
|
|
55
|
+
id: '2c91809c813e6545018143f201040073',
|
|
56
|
+
retired: false,
|
|
57
|
+
name: 'TestTextSuppProp',
|
|
58
|
+
primary: true,
|
|
59
|
+
defaultInternal: false,
|
|
60
|
+
label: 'TestTextSuppProp',
|
|
61
|
+
description: 'TestTextSuppProp',
|
|
62
|
+
weight: 0,
|
|
63
|
+
type: 'com.k_int.web.toolkit.custprops.types.CustomPropertyText'
|
|
64
|
+
},
|
|
65
|
+
{
|
|
66
|
+
id: '2c91809c81560c7001817150dbd8004b',
|
|
67
|
+
name: 'decimal',
|
|
68
|
+
primary: true,
|
|
69
|
+
defaultInternal: true,
|
|
70
|
+
label: 'decimal',
|
|
71
|
+
description: 'decimal',
|
|
72
|
+
weight: 1,
|
|
73
|
+
type: 'com.k_int.web.toolkit.custprops.types.CustomPropertyDecimal'
|
|
74
|
+
},
|
|
75
|
+
{
|
|
76
|
+
id: '2c91809c81560c700181715123ce004c',
|
|
77
|
+
name: 'integer',
|
|
78
|
+
primary: true,
|
|
79
|
+
defaultInternal: true,
|
|
80
|
+
label: 'integer',
|
|
81
|
+
description: 'integer',
|
|
82
|
+
weight: 0,
|
|
83
|
+
type: 'com.k_int.web.toolkit.custprops.types.CustomPropertyInteger'
|
|
84
|
+
},
|
|
85
|
+
{
|
|
86
|
+
id: '2c91809c81560c7001817151762a004d',
|
|
87
|
+
name: 'text',
|
|
88
|
+
primary: true,
|
|
89
|
+
defaultInternal: true,
|
|
90
|
+
label: 'text',
|
|
91
|
+
description: 'text',
|
|
92
|
+
weight: 0,
|
|
93
|
+
type: 'com.k_int.web.toolkit.custprops.types.CustomPropertyText'
|
|
94
|
+
},
|
|
95
|
+
{
|
|
96
|
+
id: '2c91809c81560c7001817151762a004e',
|
|
97
|
+
name: 'date',
|
|
98
|
+
primary: true,
|
|
99
|
+
defaultInternal: true,
|
|
100
|
+
label: 'date',
|
|
101
|
+
description: 'date',
|
|
102
|
+
weight: 0,
|
|
103
|
+
type: 'com.k_int.web.toolkit.custprops.types.CustomPropertyLocalDate'
|
|
104
|
+
},
|
|
105
|
+
{
|
|
106
|
+
id: '2c91809c81560c70018171521866004e',
|
|
107
|
+
name: 'Refdata',
|
|
108
|
+
primary: true,
|
|
109
|
+
category: refdata?.find(rdc => rdc.desc === 'LicenseAmendmentStatus.Status'),
|
|
110
|
+
defaultInternal: true,
|
|
111
|
+
label: 'Refdata',
|
|
112
|
+
description: 'refdata',
|
|
113
|
+
weight: 0,
|
|
114
|
+
type: 'com.k_int.web.toolkit.custprops.types.CustomPropertyRefdata'
|
|
115
|
+
},
|
|
116
|
+
{
|
|
117
|
+
id: '2c91809c81560c70018171521866004f',
|
|
118
|
+
name: 'MultiRefdata',
|
|
119
|
+
primary: true,
|
|
120
|
+
category: refdata?.find(rdc => rdc.desc === 'LicenseAmendmentStatus.Status'),
|
|
121
|
+
defaultInternal: true,
|
|
122
|
+
label: 'MultiRefdata',
|
|
123
|
+
description: 'MultiRefdata',
|
|
124
|
+
weight: 0,
|
|
125
|
+
type: 'com.k_int.web.toolkit.custprops.types.CustomPropertyMultiRefdata'
|
|
126
|
+
},
|
|
127
|
+
{
|
|
128
|
+
id: '2c91809c81560c70018171521866004g',
|
|
129
|
+
name: 'NonPprimary',
|
|
130
|
+
primary: false,
|
|
131
|
+
defaultInternal: true,
|
|
132
|
+
label: 'Non primary',
|
|
133
|
+
description: 'A non-primary custom property',
|
|
134
|
+
weight: 0,
|
|
135
|
+
type: 'com.k_int.web.toolkit.custprops.types.CustomPropertyText'
|
|
136
|
+
}
|
|
137
|
+
];
|
|
138
|
+
|
|
139
|
+
const availableCustomProperties = customProperties?.map(cp => {
|
|
140
|
+
let options = cp?.category?.values;
|
|
141
|
+
if (options) {
|
|
142
|
+
options = [
|
|
143
|
+
{
|
|
144
|
+
label: 'Not set',
|
|
145
|
+
value: '',
|
|
146
|
+
},
|
|
147
|
+
...options,
|
|
148
|
+
];
|
|
149
|
+
}
|
|
150
|
+
|
|
151
|
+
return {
|
|
152
|
+
description: cp.description,
|
|
153
|
+
label: cp.label,
|
|
154
|
+
primary: cp.primary,
|
|
155
|
+
type: cp.type,
|
|
156
|
+
options,
|
|
157
|
+
value: cp.name,
|
|
158
|
+
defaultInternal: cp.defaultInternal,
|
|
159
|
+
};
|
|
160
|
+
});
|
|
161
|
+
|
|
162
|
+
export default customProperties;
|
|
163
|
+
|
|
164
|
+
export {
|
|
165
|
+
availableCustomProperties
|
|
166
|
+
};
|
|
@@ -2,8 +2,9 @@ import React from 'react';
|
|
|
2
2
|
import { render } from '@testing-library/react';
|
|
3
3
|
|
|
4
4
|
import KintHarness from './KintHarness';
|
|
5
|
+
import translationsProperties from '../../helpers/translationsProperties';
|
|
5
6
|
|
|
6
|
-
const renderWithKintHarness = (children, context, translations, renderer = render) => renderer(
|
|
7
|
+
const renderWithKintHarness = (children, context, translations = translationsProperties, renderer = render) => renderer(
|
|
7
8
|
<KintHarness
|
|
8
9
|
settingsValues={context}
|
|
9
10
|
translations={translations}
|
|
@@ -0,0 +1,471 @@
|
|
|
1
|
+
// Example refdata from Agreements
|
|
2
|
+
|
|
3
|
+
const refdata = [
|
|
4
|
+
{
|
|
5
|
+
id: '8a817870818666b10181866d496b000f',
|
|
6
|
+
desc: 'AgreementRelationship.Type',
|
|
7
|
+
internal: true,
|
|
8
|
+
values: [
|
|
9
|
+
{
|
|
10
|
+
id: '8a817870818666b10181866d49da0013',
|
|
11
|
+
value: 'related_to',
|
|
12
|
+
label: 'Related to'
|
|
13
|
+
},
|
|
14
|
+
{
|
|
15
|
+
id: '8a817870818666b10181866d49bb0012',
|
|
16
|
+
value: 'tracks_demand-driven_acquisitions_for',
|
|
17
|
+
label: 'Tracks demand-driven acquisitions for'
|
|
18
|
+
},
|
|
19
|
+
{
|
|
20
|
+
id: '8a817870818666b10181866d49740010',
|
|
21
|
+
value: 'supersedes',
|
|
22
|
+
label: 'Supersedes'
|
|
23
|
+
},
|
|
24
|
+
{
|
|
25
|
+
id: '8a817870818666b10181866d49960011',
|
|
26
|
+
value: 'provides_post-cancellation_access_for',
|
|
27
|
+
label: 'Provides post-cancellation access for'
|
|
28
|
+
},
|
|
29
|
+
{
|
|
30
|
+
id: '8a817870818666b10181866d4a000014',
|
|
31
|
+
value: 'has_backfile_in',
|
|
32
|
+
label: 'Has backfile in'
|
|
33
|
+
}
|
|
34
|
+
]
|
|
35
|
+
},
|
|
36
|
+
{
|
|
37
|
+
id: '8a817870818666b10181866d51b90050',
|
|
38
|
+
desc: 'AuthIdent',
|
|
39
|
+
internal: false,
|
|
40
|
+
values: [
|
|
41
|
+
{
|
|
42
|
+
id: '8a817870818666b10181866d51bd0051',
|
|
43
|
+
value: 'other',
|
|
44
|
+
label: 'Other'
|
|
45
|
+
},
|
|
46
|
+
{
|
|
47
|
+
id: '8a817870818666b10181866d51c50053',
|
|
48
|
+
value: 'orcid',
|
|
49
|
+
label: 'ORCID'
|
|
50
|
+
},
|
|
51
|
+
{
|
|
52
|
+
id: '8a817870818666b10181866d51cd0055',
|
|
53
|
+
value: 'over_ip_range',
|
|
54
|
+
label: 'Over IP Range'
|
|
55
|
+
},
|
|
56
|
+
{
|
|
57
|
+
id: '8a817870818666b10181866d51c90054',
|
|
58
|
+
value: 'over_institute',
|
|
59
|
+
label: 'Over Institute'
|
|
60
|
+
},
|
|
61
|
+
{
|
|
62
|
+
id: '8a817870818666b10181866d51d20056',
|
|
63
|
+
value: 'ringgold_id',
|
|
64
|
+
label: 'Ringgold ID'
|
|
65
|
+
},
|
|
66
|
+
{
|
|
67
|
+
id: '8a817870818666b10181866d51c10052',
|
|
68
|
+
value: 'email_domain',
|
|
69
|
+
label: 'Email Domain'
|
|
70
|
+
},
|
|
71
|
+
{
|
|
72
|
+
id: '8a817870818666b10181866d51d60057',
|
|
73
|
+
value: 'ror_id',
|
|
74
|
+
label: 'ROR ID'
|
|
75
|
+
}
|
|
76
|
+
]
|
|
77
|
+
},
|
|
78
|
+
{
|
|
79
|
+
id: '8a817870818666b10181866d4900000b',
|
|
80
|
+
desc: 'DocumentAttachment.AtType',
|
|
81
|
+
internal: false,
|
|
82
|
+
values: [
|
|
83
|
+
{
|
|
84
|
+
id: '8a817870818666b10181866d4945000e',
|
|
85
|
+
value: 'consortium_negotiation_document',
|
|
86
|
+
label: 'Consortium negotiation document'
|
|
87
|
+
},
|
|
88
|
+
{
|
|
89
|
+
id: '8a817870818666b10181866d4923000d',
|
|
90
|
+
value: 'misc',
|
|
91
|
+
label: 'Misc'
|
|
92
|
+
},
|
|
93
|
+
{
|
|
94
|
+
id: '8a817870818666b10181866d4908000c',
|
|
95
|
+
value: 'license',
|
|
96
|
+
label: 'License'
|
|
97
|
+
}
|
|
98
|
+
]
|
|
99
|
+
},
|
|
100
|
+
{
|
|
101
|
+
id: '8a817870818666b10181866d51080042',
|
|
102
|
+
desc: 'FileStorageEngines',
|
|
103
|
+
internal: false,
|
|
104
|
+
values: [
|
|
105
|
+
{
|
|
106
|
+
id: '8a817870818666b10181866d51120044',
|
|
107
|
+
value: 's3',
|
|
108
|
+
label: 'S3'
|
|
109
|
+
},
|
|
110
|
+
{
|
|
111
|
+
id: '8a817870818666b10181866d510d0043',
|
|
112
|
+
value: 'lob',
|
|
113
|
+
label: 'LOB'
|
|
114
|
+
}
|
|
115
|
+
]
|
|
116
|
+
},
|
|
117
|
+
{
|
|
118
|
+
id: '8a817870818666b10181866d4a9f001a',
|
|
119
|
+
desc: 'Global.Yes_No',
|
|
120
|
+
internal: true,
|
|
121
|
+
values: [
|
|
122
|
+
{
|
|
123
|
+
id: '8a817870818666b10181866d4aa8001b',
|
|
124
|
+
value: 'yes',
|
|
125
|
+
label: 'Yes'
|
|
126
|
+
},
|
|
127
|
+
{
|
|
128
|
+
id: '8a817870818666b10181866d4ac3001c',
|
|
129
|
+
value: 'no',
|
|
130
|
+
label: 'No'
|
|
131
|
+
}
|
|
132
|
+
]
|
|
133
|
+
},
|
|
134
|
+
{
|
|
135
|
+
id: '8a817870818666b10181866d48690006',
|
|
136
|
+
desc: 'InternalContact.Role',
|
|
137
|
+
internal: false,
|
|
138
|
+
values: [
|
|
139
|
+
{
|
|
140
|
+
id: '8a817870818666b10181866d48c70009',
|
|
141
|
+
value: 'erm_librarian',
|
|
142
|
+
label: 'ERM librarian'
|
|
143
|
+
},
|
|
144
|
+
{
|
|
145
|
+
id: '8a817870818666b10181866d48720007',
|
|
146
|
+
value: 'agreement_owner',
|
|
147
|
+
label: 'Agreement owner'
|
|
148
|
+
},
|
|
149
|
+
{
|
|
150
|
+
id: '8a817870818666b10181866d489e0008',
|
|
151
|
+
value: 'authorized_signatory',
|
|
152
|
+
label: 'Authorized signatory'
|
|
153
|
+
},
|
|
154
|
+
{
|
|
155
|
+
id: '8a817870818666b10181866d48e1000a',
|
|
156
|
+
value: 'subject_specialist',
|
|
157
|
+
label: 'Subject specialist'
|
|
158
|
+
}
|
|
159
|
+
]
|
|
160
|
+
},
|
|
161
|
+
{
|
|
162
|
+
id: '8a817870818666b10181866d4e010030',
|
|
163
|
+
desc: 'LicenseAmendmentStatus.Status',
|
|
164
|
+
internal: true,
|
|
165
|
+
values: [
|
|
166
|
+
{
|
|
167
|
+
id: '8a817870818666b10181866d4e4c0032',
|
|
168
|
+
value: 'future',
|
|
169
|
+
label: 'Future'
|
|
170
|
+
},
|
|
171
|
+
{
|
|
172
|
+
id: '8a817870818666b10181866d4e070031',
|
|
173
|
+
value: 'current',
|
|
174
|
+
label: 'Current'
|
|
175
|
+
},
|
|
176
|
+
{
|
|
177
|
+
id: '8a817870818666b10181866d4e920033',
|
|
178
|
+
value: 'historical',
|
|
179
|
+
label: 'Historical'
|
|
180
|
+
},
|
|
181
|
+
{
|
|
182
|
+
id: '8a817870818666b10181866d4ec50034',
|
|
183
|
+
value: 'does_not_apply',
|
|
184
|
+
label: 'Does not apply'
|
|
185
|
+
}
|
|
186
|
+
]
|
|
187
|
+
},
|
|
188
|
+
{
|
|
189
|
+
id: '8a817870818666b10181866d4ee70035',
|
|
190
|
+
desc: 'PersistentJob.Result',
|
|
191
|
+
internal: true,
|
|
192
|
+
values: [
|
|
193
|
+
{
|
|
194
|
+
id: '8a817870818666b10181866d4f650039',
|
|
195
|
+
value: 'interrupted',
|
|
196
|
+
label: 'Interrupted'
|
|
197
|
+
},
|
|
198
|
+
{
|
|
199
|
+
id: '8a817870818666b10181866d4eed0036',
|
|
200
|
+
value: 'success',
|
|
201
|
+
label: 'Success'
|
|
202
|
+
},
|
|
203
|
+
{
|
|
204
|
+
id: '8a817870818666b10181866d4f0d0037',
|
|
205
|
+
value: 'partial_success',
|
|
206
|
+
label: 'Partial success'
|
|
207
|
+
},
|
|
208
|
+
{
|
|
209
|
+
id: '8a817870818666b10181866d4f370038',
|
|
210
|
+
value: 'failure',
|
|
211
|
+
label: 'Failure'
|
|
212
|
+
}
|
|
213
|
+
]
|
|
214
|
+
},
|
|
215
|
+
{
|
|
216
|
+
id: '8a817870818666b10181866d4f8e003a',
|
|
217
|
+
desc: 'PersistentJob.Status',
|
|
218
|
+
internal: true,
|
|
219
|
+
values: [
|
|
220
|
+
{
|
|
221
|
+
id: '8a817870818666b10181866d4fdd003d',
|
|
222
|
+
value: 'ended',
|
|
223
|
+
label: 'Ended'
|
|
224
|
+
},
|
|
225
|
+
{
|
|
226
|
+
id: '8a817870818666b10181866d4f96003b',
|
|
227
|
+
value: 'queued',
|
|
228
|
+
label: 'Queued'
|
|
229
|
+
},
|
|
230
|
+
{
|
|
231
|
+
id: '8a817870818666b10181866d4fbe003c',
|
|
232
|
+
value: 'in_progress',
|
|
233
|
+
label: 'In progress'
|
|
234
|
+
}
|
|
235
|
+
]
|
|
236
|
+
},
|
|
237
|
+
{
|
|
238
|
+
id: '8a817870818666b10181866d4d78002c',
|
|
239
|
+
desc: 'Pkg.Type',
|
|
240
|
+
internal: false,
|
|
241
|
+
values: [
|
|
242
|
+
{
|
|
243
|
+
id: '8a817870818666b10181866d4da7002e',
|
|
244
|
+
value: 'abstracts_and_index',
|
|
245
|
+
label: 'Abstracts and Index'
|
|
246
|
+
},
|
|
247
|
+
{
|
|
248
|
+
id: '8a817870818666b10181866d4dd8002f',
|
|
249
|
+
value: 'package',
|
|
250
|
+
label: 'Package'
|
|
251
|
+
},
|
|
252
|
+
{
|
|
253
|
+
id: '8a817870818666b10181866d4d7f002d',
|
|
254
|
+
value: 'aggregated_full_text',
|
|
255
|
+
label: 'Aggregated Full Text'
|
|
256
|
+
}
|
|
257
|
+
]
|
|
258
|
+
},
|
|
259
|
+
{
|
|
260
|
+
id: '8a817870818666b10181866d500b003e',
|
|
261
|
+
desc: 'RemoteLicenseLink.Status',
|
|
262
|
+
internal: true,
|
|
263
|
+
values: [
|
|
264
|
+
{
|
|
265
|
+
id: '8a817870818666b10181866d50860041',
|
|
266
|
+
value: 'historical',
|
|
267
|
+
label: 'Historical'
|
|
268
|
+
},
|
|
269
|
+
{
|
|
270
|
+
id: '8a817870818666b10181866d50430040',
|
|
271
|
+
value: 'future',
|
|
272
|
+
label: 'Future'
|
|
273
|
+
},
|
|
274
|
+
{
|
|
275
|
+
id: '8a817870818666b10181866d5011003f',
|
|
276
|
+
value: 'controlling',
|
|
277
|
+
label: 'Controlling'
|
|
278
|
+
}
|
|
279
|
+
]
|
|
280
|
+
},
|
|
281
|
+
{
|
|
282
|
+
id: '8a817870818666b10181866d4a250015',
|
|
283
|
+
desc: 'StringTemplate.Context',
|
|
284
|
+
internal: false,
|
|
285
|
+
values: [
|
|
286
|
+
{
|
|
287
|
+
id: '8a817870818666b10181866d4a2c0016',
|
|
288
|
+
value: 'urlproxier',
|
|
289
|
+
label: 'urlProxier'
|
|
290
|
+
},
|
|
291
|
+
{
|
|
292
|
+
id: '8a817870818666b10181866d4a4d0017',
|
|
293
|
+
value: 'urlcustomiser',
|
|
294
|
+
label: 'urlCustomiser'
|
|
295
|
+
}
|
|
296
|
+
]
|
|
297
|
+
},
|
|
298
|
+
{
|
|
299
|
+
id: '95172c43c2bf1b51d46f5870eec64fe0',
|
|
300
|
+
desc: 'SubscriptionAgreement.AgreementStatus',
|
|
301
|
+
internal: true,
|
|
302
|
+
values: [
|
|
303
|
+
{
|
|
304
|
+
id: '8a817870818666b10181866d4cc00028',
|
|
305
|
+
value: 'draft',
|
|
306
|
+
label: 'Draft'
|
|
307
|
+
},
|
|
308
|
+
{
|
|
309
|
+
id: '8a817870818666b10181866d4cf9002a',
|
|
310
|
+
value: 'in_negotiation',
|
|
311
|
+
label: 'In negotiation'
|
|
312
|
+
},
|
|
313
|
+
{
|
|
314
|
+
id: '8a817870818666b10181866d4d2b002b',
|
|
315
|
+
value: 'active',
|
|
316
|
+
label: 'Active'
|
|
317
|
+
},
|
|
318
|
+
{
|
|
319
|
+
id: '8a817870818666b10181866d4cd70029',
|
|
320
|
+
value: 'requested',
|
|
321
|
+
label: 'Requested'
|
|
322
|
+
},
|
|
323
|
+
{
|
|
324
|
+
id: 'e8166482e01afc585b4534f298fdb9af',
|
|
325
|
+
value: 'closed',
|
|
326
|
+
label: 'Closed'
|
|
327
|
+
}
|
|
328
|
+
]
|
|
329
|
+
},
|
|
330
|
+
{
|
|
331
|
+
id: '8a817870818666b10181866d4af4001d',
|
|
332
|
+
desc: 'SubscriptionAgreement.AgreementType',
|
|
333
|
+
internal: false,
|
|
334
|
+
values: [
|
|
335
|
+
{
|
|
336
|
+
id: '8a817870818666b10181866d4afb001e',
|
|
337
|
+
value: 'draft',
|
|
338
|
+
label: 'Draft'
|
|
339
|
+
},
|
|
340
|
+
{
|
|
341
|
+
id: '8a817870818666b10181866d4b18001f',
|
|
342
|
+
value: 'trial',
|
|
343
|
+
label: 'Trial'
|
|
344
|
+
},
|
|
345
|
+
{
|
|
346
|
+
id: '8a817870818666b10181866d4b3a0020',
|
|
347
|
+
value: 'current',
|
|
348
|
+
label: 'Current'
|
|
349
|
+
}
|
|
350
|
+
]
|
|
351
|
+
},
|
|
352
|
+
{
|
|
353
|
+
id: '8a817870818666b10181866d4a7a0018',
|
|
354
|
+
desc: 'SubscriptionAgreementOrg.Role',
|
|
355
|
+
internal: false,
|
|
356
|
+
values: [
|
|
357
|
+
{
|
|
358
|
+
id: '8a817870818666b10181866d4a810019',
|
|
359
|
+
value: 'content_provider',
|
|
360
|
+
label: 'Content provider'
|
|
361
|
+
}
|
|
362
|
+
]
|
|
363
|
+
},
|
|
364
|
+
{
|
|
365
|
+
id: '534fb09948fb4ab6d7966f28d0479dd2',
|
|
366
|
+
desc: 'SubscriptionAgreement.ReasonForClosure',
|
|
367
|
+
internal: false,
|
|
368
|
+
values: [
|
|
369
|
+
{
|
|
370
|
+
id: '8a817870818666b10181866d4c270025',
|
|
371
|
+
value: 'cancelled',
|
|
372
|
+
label: 'Cancelled'
|
|
373
|
+
},
|
|
374
|
+
{
|
|
375
|
+
id: '8a817870818666b10181866d4c850027',
|
|
376
|
+
value: 'superseded',
|
|
377
|
+
label: 'Superseded'
|
|
378
|
+
},
|
|
379
|
+
{
|
|
380
|
+
id: '8a817870818666b10181866d4c5c0026',
|
|
381
|
+
value: 'ceased',
|
|
382
|
+
label: 'Ceased'
|
|
383
|
+
},
|
|
384
|
+
{
|
|
385
|
+
id: 'e258a41d2a9e81bc703b0e0ac40277e9',
|
|
386
|
+
value: 'rejected',
|
|
387
|
+
label: 'Rejected'
|
|
388
|
+
}
|
|
389
|
+
]
|
|
390
|
+
},
|
|
391
|
+
{
|
|
392
|
+
id: '8a817870818666b10181866d4b6f0021',
|
|
393
|
+
desc: 'SubscriptionAgreement.RenewalPriority',
|
|
394
|
+
internal: false,
|
|
395
|
+
values: [
|
|
396
|
+
{
|
|
397
|
+
id: '8a817870818666b10181866d4b950023',
|
|
398
|
+
value: 'for_review',
|
|
399
|
+
label: 'For review'
|
|
400
|
+
},
|
|
401
|
+
{
|
|
402
|
+
id: '8a817870818666b10181866d4b770022',
|
|
403
|
+
value: 'definitely_renew',
|
|
404
|
+
label: 'Definitely renew'
|
|
405
|
+
},
|
|
406
|
+
{
|
|
407
|
+
id: '8a817870818666b10181866d4bc60024',
|
|
408
|
+
value: 'definitely_cancel',
|
|
409
|
+
label: 'Definitely cancel'
|
|
410
|
+
}
|
|
411
|
+
]
|
|
412
|
+
},
|
|
413
|
+
{
|
|
414
|
+
id: '8a817870818666b10181866d47230000',
|
|
415
|
+
desc: 'TitleInstance.SubType',
|
|
416
|
+
internal: true,
|
|
417
|
+
values: [
|
|
418
|
+
{
|
|
419
|
+
id: '8a817870818666b10181866d47850001',
|
|
420
|
+
value: 'print',
|
|
421
|
+
label: 'Print'
|
|
422
|
+
},
|
|
423
|
+
{
|
|
424
|
+
id: '8a817870818666b10181866d47e20002',
|
|
425
|
+
value: 'electronic',
|
|
426
|
+
label: 'Electronic'
|
|
427
|
+
}
|
|
428
|
+
]
|
|
429
|
+
},
|
|
430
|
+
{
|
|
431
|
+
id: '8a817870818666b10181866d48070003',
|
|
432
|
+
desc: 'TitleInstance.Type',
|
|
433
|
+
internal: true,
|
|
434
|
+
values: [
|
|
435
|
+
{
|
|
436
|
+
id: '8a817870818666b10181866d48430005',
|
|
437
|
+
value: 'serial',
|
|
438
|
+
label: 'Serial'
|
|
439
|
+
},
|
|
440
|
+
{
|
|
441
|
+
id: '8a817870818666b10181866d48110004',
|
|
442
|
+
value: 'monograph',
|
|
443
|
+
label: 'Monograph'
|
|
444
|
+
}
|
|
445
|
+
]
|
|
446
|
+
},
|
|
447
|
+
{
|
|
448
|
+
id: '8a817870818666b10181866d51a8004c',
|
|
449
|
+
desc: 'Yes/No/Other',
|
|
450
|
+
internal: false,
|
|
451
|
+
values: [
|
|
452
|
+
{
|
|
453
|
+
id: '8a817870818666b10181866d51ab004d',
|
|
454
|
+
value: 'yes',
|
|
455
|
+
label: 'Yes'
|
|
456
|
+
},
|
|
457
|
+
{
|
|
458
|
+
id: '8a817870818666b10181866d51b5004f',
|
|
459
|
+
value: 'other_(see_notes)',
|
|
460
|
+
label: 'Other (see notes)'
|
|
461
|
+
},
|
|
462
|
+
{
|
|
463
|
+
id: '8a817870818666b10181866d51b0004e',
|
|
464
|
+
value: 'no',
|
|
465
|
+
label: 'No'
|
|
466
|
+
}
|
|
467
|
+
]
|
|
468
|
+
}
|
|
469
|
+
];
|
|
470
|
+
|
|
471
|
+
export default refdata;
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
// Workaround borrowed from https://github.com/microsoft/accessibility-insights-web/pull/5421#issuecomment-1109168149
|
|
2
|
+
|
|
3
|
+
module.exports = (path, options) => {
|
|
4
|
+
// Call the defaultResolver, so we leverage its cache, error handling, etc.
|
|
5
|
+
return options.defaultResolver(path, {
|
|
6
|
+
...options,
|
|
7
|
+
// Use packageFilter to process parsed `package.json` before the resolution (see https://www.npmjs.com/package/resolve#resolveid-opts-cb)
|
|
8
|
+
packageFilter: pkg => {
|
|
9
|
+
// This is a workaround for https://github.com/uuidjs/uuid/pull/616
|
|
10
|
+
//
|
|
11
|
+
// jest-environment-jsdom 28+ tries to use browser exports instead of default exports,
|
|
12
|
+
// but uuid only offers an ESM browser export and not a CommonJS one. Jest does not yet
|
|
13
|
+
// support ESM modules natively, so this causes a Jest error related to trying to parse
|
|
14
|
+
// "export" syntax.
|
|
15
|
+
//
|
|
16
|
+
// This workaround prevents Jest from considering uuid's module-based exports at all;
|
|
17
|
+
// it falls back to uuid's CommonJS+node "main" property.
|
|
18
|
+
//
|
|
19
|
+
// Once we're able to migrate our Jest config to ESM and a browser crypto
|
|
20
|
+
// implementation is available for the browser+ESM version of uuid to use (eg, via
|
|
21
|
+
// https://github.com/jsdom/jsdom/pull/3352 or a similar polyfill), this can go away.
|
|
22
|
+
if (pkg.name === 'uuid') {
|
|
23
|
+
delete pkg.exports;
|
|
24
|
+
delete pkg.module;
|
|
25
|
+
}
|
|
26
|
+
return pkg;
|
|
27
|
+
},
|
|
28
|
+
});
|
|
29
|
+
};
|