@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
|
@@ -7,8 +7,6 @@ exports.default = void 0;
|
|
|
7
7
|
|
|
8
8
|
var _propTypes = _interopRequireDefault(require("prop-types"));
|
|
9
9
|
|
|
10
|
-
var _reactIntl = require("react-intl");
|
|
11
|
-
|
|
12
10
|
var _finalFormArrays = _interopRequireDefault(require("final-form-arrays"));
|
|
13
11
|
|
|
14
12
|
var _components = require("@folio/stripes/components");
|
|
@@ -17,6 +15,8 @@ var _FormModal = _interopRequireDefault(require("../../FormModal"));
|
|
|
17
15
|
|
|
18
16
|
var _CustomPropertiesFilterFieldArray = _interopRequireDefault(require("./CustomPropertiesFilterFieldArray"));
|
|
19
17
|
|
|
18
|
+
var _hooks = require("../../hooks");
|
|
19
|
+
|
|
20
20
|
var _jsxRuntime = require("react/jsx-runtime");
|
|
21
21
|
|
|
22
22
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
@@ -28,22 +28,24 @@ function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { va
|
|
|
28
28
|
function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
29
29
|
|
|
30
30
|
var CustomPropertyFiltersForm = function CustomPropertyFiltersForm(_ref) {
|
|
31
|
-
var _labelOverrides$editC, _labelOverrides$filte;
|
|
32
|
-
|
|
33
31
|
var customProperties = _ref.customProperties,
|
|
34
32
|
editingFilters = _ref.editingFilters,
|
|
35
33
|
filters = _ref.filters,
|
|
36
34
|
_ref$handlers = _ref.handlers,
|
|
37
35
|
closeEditModal = _ref$handlers.closeEditModal,
|
|
38
36
|
openEditModal = _ref$handlers.openEditModal,
|
|
37
|
+
passedIntlKey = _ref.intlKey,
|
|
38
|
+
passedIntlNS = _ref.intlNS,
|
|
39
39
|
_ref$labelOverrides = _ref.labelOverrides,
|
|
40
40
|
labelOverrides = _ref$labelOverrides === void 0 ? {} : _ref$labelOverrides,
|
|
41
41
|
onSubmit = _ref.onSubmit;
|
|
42
|
+
var kintIntl = (0, _hooks.useKintIntl)(passedIntlKey, passedIntlNS);
|
|
42
43
|
return /*#__PURE__*/(0, _jsxRuntime.jsxs)(_jsxRuntime.Fragment, {
|
|
43
44
|
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_components.Button, {
|
|
44
45
|
onClick: openEditModal,
|
|
45
|
-
children:
|
|
46
|
-
id:
|
|
46
|
+
children: kintIntl.formatKintMessage({
|
|
47
|
+
id: 'customProperty.editCustomPropertyFilters',
|
|
48
|
+
overrideValue: labelOverrides.editCustomPropertyFilters
|
|
47
49
|
})
|
|
48
50
|
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_FormModal.default, {
|
|
49
51
|
initialValues: {
|
|
@@ -52,15 +54,17 @@ var CustomPropertyFiltersForm = function CustomPropertyFiltersForm(_ref) {
|
|
|
52
54
|
}]
|
|
53
55
|
},
|
|
54
56
|
labelOverrides: {
|
|
55
|
-
|
|
56
|
-
id:
|
|
57
|
+
saveAndClose: kintIntl.formatKintMessage({
|
|
58
|
+
id: 'apply',
|
|
59
|
+
overrideValue: labelOverrides.apply
|
|
57
60
|
})
|
|
58
61
|
},
|
|
59
62
|
modalProps: {
|
|
60
63
|
dismissible: true,
|
|
61
64
|
enforceFocus: false,
|
|
62
|
-
label:
|
|
63
|
-
id:
|
|
65
|
+
label: kintIntl.formatKintMessage({
|
|
66
|
+
id: 'customProperty.filterBuilder',
|
|
67
|
+
overrideValue: labelOverrides.filterBuilder
|
|
64
68
|
}),
|
|
65
69
|
onClose: closeEditModal,
|
|
66
70
|
open: editingFilters,
|
|
@@ -84,6 +88,8 @@ CustomPropertyFiltersForm.propTypes = {
|
|
|
84
88
|
closeEditModal: _propTypes.default.func.isRequired,
|
|
85
89
|
openEditModal: _propTypes.default.func.isRequired
|
|
86
90
|
}),
|
|
91
|
+
intlKey: _propTypes.default.string,
|
|
92
|
+
intlNS: _propTypes.default.string,
|
|
87
93
|
labelOverrides: _propTypes.default.object,
|
|
88
94
|
onSubmit: _propTypes.default.func.isRequired
|
|
89
95
|
};
|
|
@@ -8,14 +8,12 @@ require("@folio/stripes-erm-components/test/jest/__mock__");
|
|
|
8
8
|
|
|
9
9
|
var _stripesTesting = require("@folio/stripes-testing");
|
|
10
10
|
|
|
11
|
-
var _helpers = require("@folio/stripes-erm-components/test/jest/helpers");
|
|
12
|
-
|
|
13
11
|
var _CustomPropertiesFilterForm = _interopRequireDefault(require("./CustomPropertiesFilterForm"));
|
|
14
12
|
|
|
15
|
-
var _helpers2 = require("../../../../test/jest/helpers");
|
|
16
|
-
|
|
17
13
|
var _testResources = require("./testResources");
|
|
18
14
|
|
|
15
|
+
var _jest = require("../../../../test/jest");
|
|
16
|
+
|
|
19
17
|
var _jsxRuntime = require("react/jsx-runtime");
|
|
20
18
|
|
|
21
19
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
@@ -32,6 +30,7 @@ function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { va
|
|
|
32
30
|
|
|
33
31
|
function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
34
32
|
|
|
33
|
+
jest.mock('../../hooks');
|
|
35
34
|
jest.mock('./CustomPropertiesFilterFieldArray', function () {
|
|
36
35
|
return function () {
|
|
37
36
|
return /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
@@ -43,23 +42,24 @@ var onSubmit = jest.fn();
|
|
|
43
42
|
describe('CustomPropertyFiltersForm', function () {
|
|
44
43
|
var renderComponent;
|
|
45
44
|
beforeEach(function () {
|
|
46
|
-
renderComponent = (0,
|
|
47
|
-
onSubmit: onSubmit
|
|
48
|
-
|
|
49
|
-
}));
|
|
45
|
+
renderComponent = (0, _jest.renderWithKintHarness)( /*#__PURE__*/(0, _jsxRuntime.jsx)(_CustomPropertiesFilterForm.default, _objectSpread({
|
|
46
|
+
onSubmit: onSubmit
|
|
47
|
+
}, _testResources.data)));
|
|
50
48
|
});
|
|
51
49
|
it('renders CustomPropertiesFilterFieldArray component ', function () {
|
|
52
50
|
var _renderComponent = renderComponent,
|
|
53
51
|
getByText = _renderComponent.getByText;
|
|
54
52
|
expect(getByText('CustomPropertiesFilterFieldArray')).toBeInTheDocument();
|
|
55
53
|
});
|
|
56
|
-
test('renders the
|
|
54
|
+
test('renders the apply button (disabled)', /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
|
|
57
55
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
58
56
|
while (1) {
|
|
59
57
|
switch (_context.prev = _context.next) {
|
|
60
58
|
case 0:
|
|
61
59
|
_context.next = 2;
|
|
62
|
-
return (0, _stripesTesting.Button)('
|
|
60
|
+
return (0, _stripesTesting.Button)('Apply').has({
|
|
61
|
+
disabled: true
|
|
62
|
+
});
|
|
63
63
|
|
|
64
64
|
case 2:
|
|
65
65
|
case "end":
|
|
@@ -68,13 +68,13 @@ describe('CustomPropertyFiltersForm', function () {
|
|
|
68
68
|
}
|
|
69
69
|
}, _callee);
|
|
70
70
|
})));
|
|
71
|
-
test('renders the Edit
|
|
71
|
+
test('renders the Edit custom property filters button', /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee2() {
|
|
72
72
|
return _regeneratorRuntime().wrap(function _callee2$(_context2) {
|
|
73
73
|
while (1) {
|
|
74
74
|
switch (_context2.prev = _context2.next) {
|
|
75
75
|
case 0:
|
|
76
76
|
_context2.next = 2;
|
|
77
|
-
return (0, _stripesTesting.Button)('Edit
|
|
77
|
+
return (0, _stripesTesting.Button)('Edit custom property filters').exists();
|
|
78
78
|
|
|
79
79
|
case 2:
|
|
80
80
|
case "end":
|
|
@@ -11,8 +11,6 @@ var _react = _interopRequireDefault(require("react"));
|
|
|
11
11
|
|
|
12
12
|
var _propTypes = _interopRequireDefault(require("prop-types"));
|
|
13
13
|
|
|
14
|
-
var _reactIntl = require("react-intl");
|
|
15
|
-
|
|
16
14
|
var _reactFinalForm = require("react-final-form");
|
|
17
15
|
|
|
18
16
|
var _components = require("@folio/stripes/components");
|
|
@@ -23,6 +21,8 @@ var _useValueProps = _interopRequireDefault(require("./useValueProps"));
|
|
|
23
21
|
|
|
24
22
|
var _useOperators = _interopRequireDefault(require("./useOperators"));
|
|
25
23
|
|
|
24
|
+
var _hooks = require("../../hooks");
|
|
25
|
+
|
|
26
26
|
var _jsxRuntime = require("react/jsx-runtime");
|
|
27
27
|
|
|
28
28
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
@@ -37,6 +37,9 @@ var propTypes = {
|
|
|
37
37
|
ariaLabelledby: _propTypes.default.string.isRequired,
|
|
38
38
|
clearRuleValue: _propTypes.default.func.isRequired,
|
|
39
39
|
index: _propTypes.default.number.isRequired,
|
|
40
|
+
intlKey: _propTypes.default.string,
|
|
41
|
+
intlNS: _propTypes.default.string,
|
|
42
|
+
labelOverrides: _propTypes.default.object,
|
|
40
43
|
name: _propTypes.default.string.isRequired,
|
|
41
44
|
onDelete: _propTypes.default.func.isRequired,
|
|
42
45
|
custPropDefinition: _propTypes.default.shape({
|
|
@@ -55,13 +58,18 @@ var CustomPropertiesRule = function CustomPropertiesRule(_ref) {
|
|
|
55
58
|
var ariaLabelledby = _ref.ariaLabelledby,
|
|
56
59
|
clearRuleValue = _ref.clearRuleValue,
|
|
57
60
|
index = _ref.index,
|
|
61
|
+
passedIntlKey = _ref.intlKey,
|
|
62
|
+
passedIntlNS = _ref.intlNS,
|
|
63
|
+
_ref$labelOverrides = _ref.labelOverrides,
|
|
64
|
+
labelOverrides = _ref$labelOverrides === void 0 ? {} : _ref$labelOverrides,
|
|
58
65
|
name = _ref.name,
|
|
59
66
|
onDelete = _ref.onDelete,
|
|
60
67
|
_ref$custPropDefiniti = _ref.custPropDefinition,
|
|
61
68
|
custPropDefinition = _ref$custPropDefiniti === void 0 ? {} : _ref$custPropDefiniti,
|
|
62
69
|
value = _ref.value;
|
|
63
|
-
var operators = (0, _useOperators.default)(custPropDefinition.type);
|
|
64
|
-
var valueProps = (0, _useValueProps.default)(custPropDefinition);
|
|
70
|
+
var operators = (0, _useOperators.default)(custPropDefinition.type, passedIntlKey, passedIntlNS, labelOverrides);
|
|
71
|
+
var valueProps = (0, _useValueProps.default)(custPropDefinition, passedIntlKey, passedIntlNS, labelOverrides);
|
|
72
|
+
var kintIntl = (0, _hooks.useKintIntl)(passedIntlKey, passedIntlNS);
|
|
65
73
|
var selectedOperator = operators.find(function (o) {
|
|
66
74
|
return o.value === (value === null || value === void 0 ? void 0 : value.operator);
|
|
67
75
|
});
|
|
@@ -70,8 +78,9 @@ var CustomPropertiesRule = function CustomPropertiesRule(_ref) {
|
|
|
70
78
|
xs: 2,
|
|
71
79
|
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_components.Layout, {
|
|
72
80
|
className: "textCentered",
|
|
73
|
-
children: index === 0 ? null :
|
|
74
|
-
id:
|
|
81
|
+
children: index === 0 ? null : kintIntl.formatKintMessage({
|
|
82
|
+
id: 'OR',
|
|
83
|
+
overrideValue: labelOverrides.OR
|
|
75
84
|
})
|
|
76
85
|
})
|
|
77
86
|
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_components.Col, {
|
|
@@ -113,11 +122,11 @@ var CustomPropertiesRule = function CustomPropertiesRule(_ref) {
|
|
|
113
122
|
xs: 2,
|
|
114
123
|
children: index ? /*#__PURE__*/(0, _jsxRuntime.jsx)(_components.Tooltip, {
|
|
115
124
|
id: (0, _uniqueId2.default)('delete-rule-btn'),
|
|
116
|
-
text:
|
|
117
|
-
id:
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
125
|
+
text: kintIntl.formatKintMessage({
|
|
126
|
+
id: 'customProperty.removeRule',
|
|
127
|
+
overrideValue: labelOverrides.removeRule
|
|
128
|
+
}, {
|
|
129
|
+
number: index + 1
|
|
121
130
|
}),
|
|
122
131
|
children: function children(_ref3) {
|
|
123
132
|
var ref = _ref3.ref,
|
|
@@ -12,10 +12,10 @@ var _stripesTesting = require("@folio/stripes-testing");
|
|
|
12
12
|
|
|
13
13
|
var _helpers = require("@folio/stripes-erm-components/test/jest/helpers");
|
|
14
14
|
|
|
15
|
-
var _helpers2 = require("../../../../test/jest/helpers");
|
|
16
|
-
|
|
17
15
|
var _CustomPropertiesRule = _interopRequireDefault(require("./CustomPropertiesRule"));
|
|
18
16
|
|
|
17
|
+
var _jest = require("../../../../test/jest");
|
|
18
|
+
|
|
19
19
|
var _jsxRuntime = require("react/jsx-runtime");
|
|
20
20
|
|
|
21
21
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
@@ -28,12 +28,13 @@ function _asyncToGenerator(fn) { return function () { var self = this, args = ar
|
|
|
28
28
|
|
|
29
29
|
var onSubmit = jest.fn();
|
|
30
30
|
var onDelete = jest.fn();
|
|
31
|
+
jest.mock('../../hooks');
|
|
31
32
|
|
|
32
33
|
var clearRuleValue = function clearRuleValue() {};
|
|
33
34
|
|
|
34
35
|
describe('CustomPropertiesRule', function () {
|
|
35
36
|
beforeEach(function () {
|
|
36
|
-
(0,
|
|
37
|
+
(0, _jest.renderWithKintHarness)( /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactRouterDom.MemoryRouter, {
|
|
37
38
|
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_helpers.TestForm, {
|
|
38
39
|
onSubmit: onSubmit,
|
|
39
40
|
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_CustomPropertiesRule.default, {
|
|
@@ -3,234 +3,42 @@
|
|
|
3
3
|
Object.defineProperty(exports, "__esModule", {
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
|
-
exports.
|
|
6
|
+
exports.filterHandlers = exports.data = exports.activeFilters = void 0;
|
|
7
|
+
|
|
8
|
+
var _jest = require("../../../../test/jest");
|
|
9
|
+
|
|
10
|
+
var _refdata$find, _refdata$find$values, _refdata$find$values$;
|
|
11
|
+
|
|
7
12
|
var activeFilters = {
|
|
8
|
-
'
|
|
9
|
-
|
|
13
|
+
'customProperties': ["customProperties.AuthorIdentification.value==".concat(_jest.refdata === null || _jest.refdata === void 0 ? void 0 : (_refdata$find = _jest.refdata.find(function (rdc) {
|
|
14
|
+
return rdc.desc === 'AuthIdent';
|
|
15
|
+
})) === null || _refdata$find === void 0 ? void 0 : (_refdata$find$values = _refdata$find.values) === null || _refdata$find$values === void 0 ? void 0 : (_refdata$find$values$ = _refdata$find$values.find(function (rdv) {
|
|
16
|
+
return rdv.value === 'email_domain';
|
|
17
|
+
})) === null || _refdata$find$values$ === void 0 ? void 0 : _refdata$find$values$.id)]
|
|
10
18
|
};
|
|
11
19
|
exports.activeFilters = activeFilters;
|
|
12
20
|
var filterHandlers = {
|
|
13
|
-
'state': function state() {
|
|
14
|
-
|
|
15
|
-
'clear': function clear() {},
|
|
16
|
-
'clearGroup': function clearGroup() {},
|
|
17
|
-
'reset': function reset() {}
|
|
18
|
-
};
|
|
19
|
-
exports.filterHandlers = filterHandlers;
|
|
20
|
-
var labelOverrides = {
|
|
21
|
-
'customProperty': 'Supplementary property',
|
|
22
|
-
'customProperties': 'Supplementrary properties',
|
|
23
|
-
'filtersApplied': function filtersApplied() {},
|
|
24
|
-
'editCustomPropertyFilters': '<Memo />',
|
|
25
|
-
'filterBuilder': '<Memo />',
|
|
26
|
-
'customPropertyFilter': function customPropertyFilter() {},
|
|
27
|
-
'removeFilter': function removeFilter() {},
|
|
28
|
-
'retiredName': function retiredName() {}
|
|
29
|
-
};
|
|
30
|
-
exports.labelOverrides = labelOverrides;
|
|
31
|
-
var customProperties = [{
|
|
32
|
-
'id': '2c91809c813e654501813e6c3c6a0066',
|
|
33
|
-
'retired': false,
|
|
34
|
-
'ctx': 'OpenAccess',
|
|
35
|
-
'name': 'AuthorIdentification',
|
|
36
|
-
'primary': true,
|
|
37
|
-
'category': {
|
|
38
|
-
'id': '2c91809c813e654501813e6c3bbb005e',
|
|
39
|
-
'desc': 'AuthIdent',
|
|
40
|
-
'internal': false,
|
|
41
|
-
'values': [{
|
|
42
|
-
'id': '2c91809c813e654501813e6c3bcf0064',
|
|
43
|
-
'value': 'ringgold_id',
|
|
44
|
-
'label': 'Ringgold ID'
|
|
45
|
-
}, {
|
|
46
|
-
'id': '2c91809c813e654501813e6c3bbd005f',
|
|
47
|
-
'value': 'other',
|
|
48
|
-
'label': 'Other'
|
|
49
|
-
}, {
|
|
50
|
-
'id': '2c91809c813e654501813e6c3bcc0063',
|
|
51
|
-
'value': 'over_ip_range',
|
|
52
|
-
'label': 'Over IP Range'
|
|
53
|
-
}, {
|
|
54
|
-
'id': '2c91809c813e654501813e6c3bc20060',
|
|
55
|
-
'value': 'email_domain',
|
|
56
|
-
'label': 'Email Domain'
|
|
57
|
-
}, {
|
|
58
|
-
'id': '2c91809c813e654501813e6c3bc50061',
|
|
59
|
-
'value': 'orcid',
|
|
60
|
-
'label': 'ORCID'
|
|
61
|
-
}, {
|
|
62
|
-
'id': '2c91809c813e654501813e6c3bc90062',
|
|
63
|
-
'value': 'over_institute',
|
|
64
|
-
'label': 'Over Institute'
|
|
65
|
-
}, {
|
|
66
|
-
'id': '2c91809c813e654501813e6c3bd20065',
|
|
67
|
-
'value': 'ror_id',
|
|
68
|
-
'label': 'ROR ID'
|
|
69
|
-
}]
|
|
21
|
+
'state': function state() {
|
|
22
|
+
return {};
|
|
70
23
|
},
|
|
71
|
-
'
|
|
72
|
-
|
|
73
|
-
'description': 'Author Identification',
|
|
74
|
-
'weight': 0,
|
|
75
|
-
'type': 'com.k_int.web.toolkit.custprops.types.CustomPropertyRefdata'
|
|
76
|
-
}, {
|
|
77
|
-
'id': '2c91809c813e654501813e6c3c7d0067',
|
|
78
|
-
'retired': false,
|
|
79
|
-
'ctx': 'OpenAccess',
|
|
80
|
-
'name': 'Eligible authors',
|
|
81
|
-
'primary': true,
|
|
82
|
-
'defaultInternal': true,
|
|
83
|
-
'label': 'Does this agreement support publishing',
|
|
84
|
-
'description': 'Does this agreement support publishing',
|
|
85
|
-
'weight': 0,
|
|
86
|
-
'type': 'com.k_int.web.toolkit.custprops.types.CustomPropertyText'
|
|
87
|
-
}, {
|
|
88
|
-
'id': '2c91809c813e654501814287324e0070',
|
|
89
|
-
'retired': false,
|
|
90
|
-
'ctx': 'OpenAccess',
|
|
91
|
-
'name': 'Test',
|
|
92
|
-
'primary': true,
|
|
93
|
-
'category': {
|
|
94
|
-
'id': '2096ecb6794fae7aa29074cf31970b17',
|
|
95
|
-
'desc': 'SubscriptionAgreement.AgreementStatus',
|
|
96
|
-
'internal': true,
|
|
97
|
-
'values': '[{…}, {…}, {…}, {…}, {…}]'
|
|
24
|
+
'checkbox': function checkbox() {
|
|
25
|
+
return {};
|
|
98
26
|
},
|
|
99
|
-
'
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
'
|
|
103
|
-
|
|
104
|
-
},
|
|
105
|
-
'
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
'primary': true,
|
|
109
|
-
'defaultInternal': false,
|
|
110
|
-
'label': 'TestTextSuppProp',
|
|
111
|
-
'description': 'TestTextSuppProp',
|
|
112
|
-
'weight': 0,
|
|
113
|
-
'type': 'com.k_int.web.toolkit.custprops.types.CustomPropertyText'
|
|
114
|
-
}];
|
|
115
|
-
exports.customProperties = customProperties;
|
|
116
|
-
var fields = {
|
|
117
|
-
'name': 'filters',
|
|
118
|
-
'forEach': function forEach() {},
|
|
119
|
-
'length': 2,
|
|
120
|
-
'map': function map() {},
|
|
121
|
-
'insert': function insert() {},
|
|
122
|
-
'concat': function concat() {},
|
|
123
|
-
'move': function move() {},
|
|
124
|
-
'pop': function pop() {},
|
|
125
|
-
'push': function push() {},
|
|
126
|
-
'remove': function remove() {},
|
|
127
|
-
'removeBatch': function removeBatch() {},
|
|
128
|
-
'shift': function shift() {},
|
|
129
|
-
'swap': function swap() {},
|
|
130
|
-
'unshift': function unshift() {},
|
|
131
|
-
'update': function update() {},
|
|
132
|
-
'value': [{
|
|
133
|
-
'customProperty': 'AuthorIdentification',
|
|
134
|
-
'rules': [{
|
|
135
|
-
'operator': '==',
|
|
136
|
-
'value': '2c91809c813e654501813e6c3bc50061'
|
|
137
|
-
}]
|
|
138
|
-
}, {
|
|
139
|
-
'customProperty': 'AuthorIdentification',
|
|
140
|
-
'rules': [{
|
|
141
|
-
'operator': '==',
|
|
142
|
-
'value': '2c91809c813e654501813e6c3bd20065'
|
|
143
|
-
}]
|
|
144
|
-
}]
|
|
27
|
+
'clear': function clear() {
|
|
28
|
+
return {};
|
|
29
|
+
},
|
|
30
|
+
'clearGroup': function clearGroup() {
|
|
31
|
+
return {};
|
|
32
|
+
},
|
|
33
|
+
'reset': function reset() {
|
|
34
|
+
return {};
|
|
35
|
+
}
|
|
145
36
|
};
|
|
146
|
-
exports.
|
|
37
|
+
exports.filterHandlers = filterHandlers;
|
|
147
38
|
var data = {
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
'ctx': 'OpenAccess',
|
|
152
|
-
'name': 'AuthorIdentification',
|
|
153
|
-
'primary': true,
|
|
154
|
-
'category': {
|
|
155
|
-
'id': '2c91809c813e654501813e6c3bbb005e',
|
|
156
|
-
'desc': 'AuthIdent',
|
|
157
|
-
'internal': false,
|
|
158
|
-
'values': [{
|
|
159
|
-
'id': '2c91809c813e654501813e6c3bd20065',
|
|
160
|
-
'value': 'ror_id',
|
|
161
|
-
'label': 'ROR ID'
|
|
162
|
-
}, {
|
|
163
|
-
'id': '2c91809c813e654501813e6c3bc20060',
|
|
164
|
-
'value': 'email_domain',
|
|
165
|
-
'label': 'Email Domain'
|
|
166
|
-
}, {
|
|
167
|
-
'id': '2c91809c813e654501813e6c3bc50061',
|
|
168
|
-
'value': 'orcid',
|
|
169
|
-
'label': 'ORCID'
|
|
170
|
-
}, {
|
|
171
|
-
'id': '2c91809c813e654501813e6c3bcf0064',
|
|
172
|
-
'value': 'ringgold_id',
|
|
173
|
-
'label': 'Ringgold ID'
|
|
174
|
-
}, {
|
|
175
|
-
'id': '2c91809c813e654501813e6c3bbd005f',
|
|
176
|
-
'value': 'other',
|
|
177
|
-
'label': 'Other'
|
|
178
|
-
}, {
|
|
179
|
-
'id': '2c91809c813e654501813e6c3bc90062',
|
|
180
|
-
'value': 'over_institute',
|
|
181
|
-
'label': 'Over Institute'
|
|
182
|
-
}, {
|
|
183
|
-
'id': '2c91809c813e654501813e6c3bcc0063',
|
|
184
|
-
'value': 'over_ip_range',
|
|
185
|
-
'label': 'Over IP Range'
|
|
186
|
-
}]
|
|
187
|
-
},
|
|
188
|
-
'defaultInternal': true,
|
|
189
|
-
'label': 'Author Identification',
|
|
190
|
-
'description': 'Author Identification',
|
|
191
|
-
'weight': 0,
|
|
192
|
-
'type': 'com.k_int.web.toolkit.custprops.types.CustomPropertyRefdata'
|
|
193
|
-
}, {
|
|
194
|
-
'id': '2c91809c813e654501813e6c3c7d0067',
|
|
195
|
-
'retired': false,
|
|
196
|
-
'ctx': 'OpenAccess',
|
|
197
|
-
'name': 'Eligible authors',
|
|
198
|
-
'primary': true,
|
|
199
|
-
'defaultInternal': true,
|
|
200
|
-
'label': 'Does this agreement support publishing',
|
|
201
|
-
'description': 'Does this agreement support publishing',
|
|
202
|
-
'weight': 0,
|
|
203
|
-
'type': 'com.k_int.web.toolkit.custprops.types.CustomPropertyText'
|
|
204
|
-
}, {
|
|
205
|
-
'id': '2c91809c813e654501814287324e0070',
|
|
206
|
-
'retired': false,
|
|
207
|
-
'ctx': 'OpenAccess',
|
|
208
|
-
'name': 'Test',
|
|
209
|
-
'primary': true,
|
|
210
|
-
'category': {
|
|
211
|
-
'id': '2096ecb6794fae7aa29074cf31970b17',
|
|
212
|
-
'desc': 'SubscriptionAgreement.AgreementStatus',
|
|
213
|
-
'internal': true,
|
|
214
|
-
'values': '[{…}, {…}, {…}, {…}, {…}]'
|
|
215
|
-
},
|
|
216
|
-
'defaultInternal': true,
|
|
217
|
-
'label': 'test',
|
|
218
|
-
'description': 'test description',
|
|
219
|
-
'weight': 1,
|
|
220
|
-
'type': 'com.k_int.web.toolkit.custprops.types.CustomPropertyRefdata'
|
|
221
|
-
}, {
|
|
222
|
-
'id': '2c91809c813e6545018143f201040073',
|
|
223
|
-
'retired': false,
|
|
224
|
-
'name': 'TestTextSuppProp',
|
|
225
|
-
'primary': true,
|
|
226
|
-
'defaultInternal': false,
|
|
227
|
-
'label': 'TestTextSuppProp',
|
|
228
|
-
'description': 'TestTextSuppProp',
|
|
229
|
-
'weight': 0,
|
|
230
|
-
'type': 'com.k_int.web.toolkit.custprops.types.CustomPropertyText'
|
|
231
|
-
}],
|
|
232
|
-
'editingFilters': true,
|
|
233
|
-
'filters': [{
|
|
39
|
+
customProperties: _jest.customProperties,
|
|
40
|
+
editingFilters: true,
|
|
41
|
+
filters: [{
|
|
234
42
|
'customProperty': 'AuthorIdentification',
|
|
235
43
|
'rules': [{
|
|
236
44
|
'operator': '==',
|
|
@@ -244,19 +52,15 @@ var data = {
|
|
|
244
52
|
}]
|
|
245
53
|
}],
|
|
246
54
|
'handlers': {
|
|
247
|
-
'closeEditModal': function closeEditModal() {
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
'filtersApplied': function filtersApplied() {},
|
|
254
|
-
'editCustomPropertyFilters': 'Edit supplementary property filters',
|
|
255
|
-
'filterBuilder': '<Memo />',
|
|
256
|
-
'customPropertyFilter': function customPropertyFilter() {},
|
|
257
|
-
'removeFilter': function removeFilter() {},
|
|
258
|
-
'retiredName': function retiredName() {}
|
|
55
|
+
'closeEditModal': function closeEditModal() {
|
|
56
|
+
return {};
|
|
57
|
+
},
|
|
58
|
+
'openEditModal': function openEditModal() {
|
|
59
|
+
return {};
|
|
60
|
+
}
|
|
259
61
|
},
|
|
260
|
-
'onSubmit': function onSubmit() {
|
|
62
|
+
'onSubmit': function onSubmit() {
|
|
63
|
+
return {};
|
|
64
|
+
}
|
|
261
65
|
};
|
|
262
66
|
exports.data = data;
|