@k-int/stripes-kint-components 2.5.1 → 2.6.2
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 +19 -1
- package/es/artifacts/coverage-jest/lcov-report/block-navigation.js +1 -28
- package/es/artifacts/coverage-jest/lcov-report/prettify.js +0 -4
- package/es/artifacts/coverage-jest/lcov-report/sorter.js +1 -28
- package/es/index.js +7 -5
- package/es/lib/ActionList/ActionList.js +1 -31
- package/es/lib/ActionList/ActionListFieldArray.js +6 -40
- package/es/lib/ActionList/index.js +1 -5
- package/es/lib/CustomProperties/Config/CustomPropertiesLookup.js +55 -46
- package/es/lib/CustomProperties/Config/CustomPropertiesLookup.test.js +53 -0
- package/es/lib/CustomProperties/Config/CustomPropertiesSettings.js +102 -62
- package/es/lib/CustomProperties/Config/CustomPropertiesSettings.test.js +125 -0
- package/es/lib/CustomProperties/Config/CustomPropertyForm.js +131 -138
- package/es/lib/CustomProperties/Config/CustomPropertyForm.test.js +200 -0
- package/es/lib/CustomProperties/Config/CustomPropertyView.js +22 -37
- package/es/lib/CustomProperties/Config/CustomPropertyView.test.js +194 -0
- package/es/lib/CustomProperties/Config/index.js +1 -5
- package/es/lib/CustomProperties/Config/testResources.js +198 -0
- package/es/lib/CustomProperties/Edit/CustomPropertiesEdit.js +1 -30
- package/es/lib/CustomProperties/Edit/CustomPropertiesEdit.test.js +48 -0
- package/es/lib/CustomProperties/Edit/CustomPropertiesEditCtx.js +1 -34
- package/es/lib/CustomProperties/Edit/CustomPropertiesEditCtx.test.js +48 -0
- package/es/lib/CustomProperties/Edit/CustomPropertiesListField.js +1 -37
- package/es/lib/CustomProperties/Edit/CustomPropertiesListField.test.js +113 -0
- package/es/lib/CustomProperties/Edit/CustomPropertyField.js +63 -64
- package/es/lib/CustomProperties/Edit/CustomPropertyField.test.js +283 -0
- package/es/lib/CustomProperties/Edit/CustomPropertyFormCard.js +2 -30
- package/es/lib/CustomProperties/Edit/CustomPropertyFormCard.test.js +65 -0
- package/es/lib/CustomProperties/Edit/index.js +1 -5
- package/es/lib/CustomProperties/Edit/testResources.js +923 -0
- package/es/lib/CustomProperties/Filter/CustomPropertiesFilter.js +10 -35
- package/es/lib/CustomProperties/Filter/CustomPropertiesFilter.test.js +102 -0
- package/es/lib/CustomProperties/Filter/CustomPropertiesFilterField.js +1 -34
- package/es/lib/CustomProperties/Filter/CustomPropertiesFilterField.test.js +41 -0
- package/es/lib/CustomProperties/Filter/CustomPropertiesFilterFieldArray.js +1 -34
- package/es/lib/CustomProperties/Filter/CustomPropertiesFilterFieldArray.test.js +91 -0
- package/es/lib/CustomProperties/Filter/CustomPropertiesFilterForm.js +1 -30
- package/es/lib/CustomProperties/Filter/CustomPropertiesFilterForm.test.js +86 -0
- package/es/lib/CustomProperties/Filter/CustomPropertiesRule.js +1 -35
- package/es/lib/CustomProperties/Filter/CustomPropertiesRule.test.js +321 -0
- package/es/lib/CustomProperties/Filter/index.js +1 -5
- package/es/lib/CustomProperties/Filter/testResources.js +262 -0
- package/es/lib/CustomProperties/Filter/useOperators.js +9 -39
- package/es/lib/CustomProperties/Filter/useParseActiveFilterStrings.js +5 -36
- package/es/lib/CustomProperties/Filter/useValueProps.js +13 -35
- package/es/lib/CustomProperties/View/CustomPropertiesView.js +1 -30
- package/es/lib/CustomProperties/View/CustomPropertiesView.test.js +48 -0
- package/es/lib/CustomProperties/View/CustomPropertiesViewCtx.js +1 -34
- package/es/lib/CustomProperties/View/CustomPropertiesViewCtx.test.js +55 -0
- package/es/lib/CustomProperties/View/CustomPropertyCard.js +13 -32
- package/es/lib/CustomProperties/View/index.js +1 -5
- package/es/lib/CustomProperties/View/testResources.js +144 -0
- package/es/lib/CustomProperties/index.js +1 -5
- package/es/lib/EditableRefdataList/EditableRefdataList.js +165 -66
- package/es/lib/EditableRefdataList/index.js +1 -5
- package/es/lib/EditableSettingsList/EditableSettingsList.js +1 -30
- package/es/lib/EditableSettingsList/EditableSettingsListFieldArray.js +1 -30
- package/es/lib/EditableSettingsList/EditableSettingsListFieldArray.test.js +10 -35
- package/es/lib/EditableSettingsList/SettingField/EditSettingValue.js +1 -34
- package/es/lib/EditableSettingsList/SettingField/EditSettingValue.test.js +1 -34
- package/es/lib/EditableSettingsList/SettingField/RenderSettingValue.js +1 -34
- package/es/lib/EditableSettingsList/SettingField/RenderSettingValue.test.js +28 -64
- package/es/lib/EditableSettingsList/SettingField/SettingField.js +1 -34
- package/es/lib/EditableSettingsList/SettingField/SettingField.test.js +8 -33
- package/es/lib/EditableSettingsList/SettingField/index.js +1 -5
- package/es/lib/EditableSettingsList/index.js +1 -5
- package/es/lib/FormModal/FormModal.js +2 -31
- package/es/lib/FormModal/index.js +1 -5
- package/es/lib/NoResultsMessage/NoResultsMessage.js +1 -30
- package/es/lib/NoResultsMessage/index.js +1 -5
- package/es/lib/QueryTypedown/QueryTypedown.js +1 -34
- package/es/lib/QueryTypedown/index.js +1 -5
- package/es/lib/RefdataButtons/RefdataButtons.js +1 -34
- package/es/lib/RefdataButtons/index.js +1 -5
- package/es/lib/SASQLookupComponent/SASQLookupComponent.js +2 -34
- package/es/lib/SASQLookupComponent/TableBody/TableBody.js +1 -34
- package/es/lib/SASQLookupComponent/TableBody/index.js +1 -5
- package/es/lib/SASQLookupComponent/index.js +1 -5
- package/es/lib/SASQRoute/SASQRoute.js +1 -30
- package/es/lib/SASQRoute/index.js +1 -5
- package/es/lib/SASQViewComponent/SASQViewComponent.js +1 -34
- package/es/lib/SASQViewComponent/index.js +1 -5
- package/es/lib/SearchField/SearchField.js +1 -31
- package/es/lib/SearchField/index.js +1 -5
- package/es/lib/SettingPage/SettingPage.js +1 -34
- package/es/lib/SettingPage/SettingPagePane.js +1 -32
- package/es/lib/SettingPage/index.js +1 -5
- package/es/lib/Typedown/Typedown.js +1 -34
- package/es/lib/Typedown/index.js +1 -5
- package/es/lib/constants/customProperties.js +4 -39
- package/es/lib/constants/eventCodes.js +1 -31
- package/es/lib/contexts/SettingsContext.js +1 -30
- package/es/lib/contexts/index.js +1 -5
- package/es/lib/hooks/index.js +7 -5
- package/es/lib/hooks/settingsHooks/index.js +8 -4
- package/es/lib/hooks/settingsHooks/useAppSettings.js +84 -0
- package/es/lib/hooks/settingsHooks/useSettingSection.js +1 -34
- package/es/lib/hooks/settingsHooks/useSettings.js +1 -36
- package/es/lib/hooks/typedownHooks/index.js +1 -5
- package/es/lib/hooks/typedownHooks/useTypedown.js +1 -34
- package/es/lib/hooks/typedownHooks/useTypedownData.js +1 -34
- package/es/lib/hooks/typedownHooks/useTypedownToggle.js +1 -34
- package/es/lib/hooks/useActiveElement.js +1 -32
- package/es/lib/hooks/useAvailableCustomProperties.js +1 -34
- package/es/lib/hooks/useCustomProperties.js +4 -34
- package/es/lib/hooks/useHelperApp.js +1 -34
- package/es/lib/hooks/useInvalidateRefdata.js +1 -34
- package/es/lib/hooks/useKiwtFieldArray.js +1 -34
- package/es/lib/hooks/useKiwtSASQuery.js +1 -35
- package/es/lib/hooks/useLocalStorageState.js +1 -34
- package/es/lib/hooks/useMutateCustomProperties.js +14 -42
- package/es/lib/hooks/useMutateRefdataValue.js +11 -39
- package/es/lib/hooks/useQIndex.js +1 -34
- package/es/lib/hooks/useRefdata.js +1 -34
- package/es/lib/hooks/useTemplates.js +1 -34
- package/es/lib/utils/buildUrl.js +2 -31
- package/es/lib/utils/generateKiwtQuery.js +1 -30
- package/es/lib/utils/generateKiwtQueryParams.js +1 -30
- package/es/lib/utils/groupCustomPropertiesByCtx.js +1 -30
- package/es/lib/utils/highlightString.js +1 -29
- package/es/lib/utils/index.js +1 -5
- package/es/lib/utils/matchString.js +1 -30
- package/es/lib/utils/refdataOptions.js +1 -30
- package/es/lib/utils/refdataQueryKey.js +1 -30
- package/es/lib/utils/renderHelpText.js +1 -30
- package/es/lib/utils/selectorSafe.js +1 -30
- package/es/lib/utils/sortByLabel.js +1 -30
- package/es/lib/utils/toCamelCase.js +1 -30
- package/es/lib/utils/typedownQueryKey.js +1 -30
- package/es/lib/utils/validators.js +1 -32
- package/junit.xml +731 -38
- package/package.json +4 -4
- package/src/artifacts/coverage-jest/lcov-report/ActionList/ActionList.js.html +1 -1
- package/src/artifacts/coverage-jest/lcov-report/ActionList/ActionListFieldArray.js.html +1 -1
- package/src/artifacts/coverage-jest/lcov-report/ActionList/index.html +1 -1
- 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 +142 -28
- package/src/artifacts/coverage-jest/lcov-report/CustomProperties/Config/CustomPropertiesSettings.js.html +93 -27
- package/src/artifacts/coverage-jest/lcov-report/CustomProperties/Config/CustomPropertyForm.js.html +308 -188
- package/src/artifacts/coverage-jest/lcov-report/CustomProperties/Config/CustomPropertyView.js.html +92 -32
- package/src/artifacts/coverage-jest/lcov-report/CustomProperties/Config/index.html +65 -50
- package/src/artifacts/coverage-jest/lcov-report/CustomProperties/Config/index.js.html +1 -1
- package/src/artifacts/coverage-jest/lcov-report/CustomProperties/Config/testResources.js.html +793 -0
- package/src/artifacts/coverage-jest/lcov-report/CustomProperties/Edit/CustomPropertiesEdit.js.html +17 -17
- package/src/artifacts/coverage-jest/lcov-report/CustomProperties/Edit/CustomPropertiesEditCtx.js.html +15 -15
- package/src/artifacts/coverage-jest/lcov-report/CustomProperties/Edit/CustomPropertiesListField.js.html +1 -1
- package/src/artifacts/coverage-jest/lcov-report/CustomProperties/Edit/CustomPropertyField.js.html +161 -77
- package/src/artifacts/coverage-jest/lcov-report/CustomProperties/Edit/CustomPropertyFormCard.js.html +29 -26
- package/src/artifacts/coverage-jest/lcov-report/CustomProperties/Edit/index.html +61 -46
- 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 +892 -0
- package/src/artifacts/coverage-jest/lcov-report/CustomProperties/Filter/CustomPropertiesFilter.js.html +19 -19
- package/src/artifacts/coverage-jest/lcov-report/CustomProperties/Filter/CustomPropertiesFilterField.js.html +42 -42
- package/src/artifacts/coverage-jest/lcov-report/CustomProperties/Filter/CustomPropertiesFilterFieldArray.js.html +23 -23
- package/src/artifacts/coverage-jest/lcov-report/CustomProperties/Filter/CustomPropertiesFilterForm.js.html +19 -19
- package/src/artifacts/coverage-jest/lcov-report/CustomProperties/Filter/CustomPropertiesRule.js.html +41 -41
- package/src/artifacts/coverage-jest/lcov-report/CustomProperties/Filter/index.html +102 -87
- 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 +976 -0
- package/src/artifacts/coverage-jest/lcov-report/CustomProperties/Filter/useOperators.js.html +58 -37
- package/src/artifacts/coverage-jest/lcov-report/CustomProperties/Filter/useParseActiveFilterStrings.js.html +7 -7
- package/src/artifacts/coverage-jest/lcov-report/CustomProperties/Filter/useValueProps.js.html +47 -29
- package/src/artifacts/coverage-jest/lcov-report/CustomProperties/View/CustomPropertiesView.js.html +17 -17
- package/src/artifacts/coverage-jest/lcov-report/CustomProperties/View/CustomPropertiesViewCtx.js.html +38 -38
- package/src/artifacts/coverage-jest/lcov-report/CustomProperties/View/CustomPropertyCard.js.html +30 -6
- package/src/artifacts/coverage-jest/lcov-report/CustomProperties/View/index.html +48 -33
- 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 +571 -0
- 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/EditableRefdataList/EditableRefdataList.js.html +134 -17
- package/src/artifacts/coverage-jest/lcov-report/EditableRefdataList/index.html +7 -7
- package/src/artifacts/coverage-jest/lcov-report/EditableRefdataList/index.js.html +1 -1
- package/src/artifacts/coverage-jest/lcov-report/EditableSettingsList/EditableSettingsList.js.html +27 -12
- package/src/artifacts/coverage-jest/lcov-report/EditableSettingsList/EditableSettingsListFieldArray.js.html +3 -3
- package/src/artifacts/coverage-jest/lcov-report/EditableSettingsList/SettingField/EditSettingValue.js.html +3 -3
- package/src/artifacts/coverage-jest/lcov-report/EditableSettingsList/SettingField/RenderSettingValue.js.html +2 -2
- package/src/artifacts/coverage-jest/lcov-report/EditableSettingsList/SettingField/SettingField.js.html +3 -3
- package/src/artifacts/coverage-jest/lcov-report/EditableSettingsList/SettingField/index.html +1 -1
- package/src/artifacts/coverage-jest/lcov-report/EditableSettingsList/SettingField/index.js.html +1 -1
- package/src/artifacts/coverage-jest/lcov-report/EditableSettingsList/index.html +13 -13
- package/src/artifacts/coverage-jest/lcov-report/EditableSettingsList/index.js.html +1 -1
- package/src/artifacts/coverage-jest/lcov-report/FormModal/FormModal.js.html +32 -32
- package/src/artifacts/coverage-jest/lcov-report/FormModal/index.html +21 -21
- package/src/artifacts/coverage-jest/lcov-report/FormModal/index.js.html +1 -1
- package/src/artifacts/coverage-jest/lcov-report/NoResultsMessage/NoResultsMessage.js.html +1 -1
- package/src/artifacts/coverage-jest/lcov-report/NoResultsMessage/index.html +1 -1
- 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/SASQLookupComponent/SASQLookupComponent.js.html +6 -3
- package/src/artifacts/coverage-jest/lcov-report/SASQLookupComponent/TableBody/TableBody.js.html +1 -1
- package/src/artifacts/coverage-jest/lcov-report/SASQLookupComponent/TableBody/index.html +1 -1
- package/src/artifacts/coverage-jest/lcov-report/SASQLookupComponent/TableBody/index.js.html +1 -1
- package/src/artifacts/coverage-jest/lcov-report/SASQLookupComponent/index.html +1 -1
- 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 +9 -9
- package/src/artifacts/coverage-jest/lcov-report/SettingPage/SettingPagePane.js.html +10 -10
- package/src/artifacts/coverage-jest/lcov-report/SettingPage/index.html +18 -18
- package/src/artifacts/coverage-jest/lcov-report/SettingPage/index.js.html +1 -1
- package/src/artifacts/coverage-jest/lcov-report/Typedown/Typedown.js.html +3 -3
- 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 +32 -26
- package/src/artifacts/coverage-jest/lcov-report/constants/eventCodes.js.html +1 -1
- package/src/artifacts/coverage-jest/lcov-report/constants/index.html +13 -13
- 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/hooks/index.html +92 -92
- package/src/artifacts/coverage-jest/lcov-report/hooks/index.js.html +1 -1
- package/src/artifacts/coverage-jest/lcov-report/hooks/settingsHooks/index.html +17 -17
- package/src/artifacts/coverage-jest/lcov-report/hooks/settingsHooks/index.js.html +1 -1
- package/src/artifacts/coverage-jest/lcov-report/hooks/settingsHooks/useAppSettings.js.html +292 -0
- 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 +8 -8
- 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/useAvailableCustomProperties.js.html +7 -7
- package/src/artifacts/coverage-jest/lcov-report/hooks/useCustomProperties.js.html +32 -17
- package/src/artifacts/coverage-jest/lcov-report/hooks/useHelperApp.js.html +7 -7
- package/src/artifacts/coverage-jest/lcov-report/hooks/useInvalidateRefdata.js.html +7 -7
- package/src/artifacts/coverage-jest/lcov-report/hooks/useKiwtFieldArray.js.html +7 -7
- package/src/artifacts/coverage-jest/lcov-report/hooks/useKiwtSASQuery.js.html +29 -11
- package/src/artifacts/coverage-jest/lcov-report/hooks/useLocalStorageState.js.html +7 -7
- package/src/artifacts/coverage-jest/lcov-report/hooks/useMutateCustomProperties.js.html +7 -7
- package/src/artifacts/coverage-jest/lcov-report/hooks/useMutateRefdataValue.js.html +7 -7
- 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 +109 -109
- 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 +22 -22
- package/src/artifacts/coverage-jest/lcov-report/utils/highlightString.js.html +3 -3
- package/src/artifacts/coverage-jest/lcov-report/utils/index.html +31 -31
- package/src/artifacts/coverage-jest/lcov-report/utils/index.js.html +1 -1
- package/src/artifacts/coverage-jest/lcov-report/utils/matchString.js.html +3 -3
- package/src/artifacts/coverage-jest/lcov-report/utils/refdataOptions.js.html +1 -1
- package/src/artifacts/coverage-jest/lcov-report/utils/refdataQueryKey.js.html +2 -2
- package/src/artifacts/coverage-jest/lcov-report/utils/renderHelpText.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 +46 -46
- package/src/artifacts/coverage-jest/lcov.info +1124 -916
- package/src/index.js +2 -1
- package/src/lib/ActionList/ActionListFieldArray.js +3 -2
- package/src/lib/ActionList/README.md +12 -1
- package/src/lib/CustomProperties/Config/CustomPropertiesLookup.js +46 -8
- package/src/lib/CustomProperties/Config/CustomPropertiesLookup.test.js +35 -0
- package/src/lib/CustomProperties/Config/CustomPropertiesSettings.js +63 -20
- package/src/lib/CustomProperties/Config/CustomPropertiesSettings.test.js +51 -0
- package/src/lib/CustomProperties/Config/CustomPropertyForm.js +172 -132
- package/src/lib/CustomProperties/Config/CustomPropertyForm.test.js +126 -0
- package/src/lib/CustomProperties/Config/CustomPropertyView.js +29 -9
- package/src/lib/CustomProperties/Config/CustomPropertyView.test.js +55 -0
- package/src/lib/CustomProperties/Config/testResources.js +236 -0
- package/src/lib/CustomProperties/Edit/CustomPropertiesEdit.test.js +29 -0
- package/src/lib/CustomProperties/Edit/CustomPropertiesEditCtx.test.js +29 -0
- package/src/lib/CustomProperties/Edit/CustomPropertiesListField.test.js +51 -0
- package/src/lib/CustomProperties/Edit/CustomPropertyField.js +56 -24
- package/src/lib/CustomProperties/Edit/CustomPropertyField.test.js +185 -0
- package/src/lib/CustomProperties/Edit/CustomPropertyFormCard.js +1 -0
- package/src/lib/CustomProperties/Edit/CustomPropertyFormCard.test.js +57 -0
- package/src/lib/CustomProperties/Edit/testResources.js +1063 -0
- package/src/lib/CustomProperties/Filter/CustomPropertiesFilter.js +15 -3
- package/src/lib/CustomProperties/Filter/CustomPropertiesFilter.test.js +43 -0
- package/src/lib/CustomProperties/Filter/CustomPropertiesFilterField.test.js +32 -0
- package/src/lib/CustomProperties/Filter/CustomPropertiesFilterFieldArray.test.js +44 -0
- package/src/lib/CustomProperties/Filter/CustomPropertiesFilterForm.test.js +40 -0
- package/src/lib/CustomProperties/Filter/CustomPropertiesRule.test.js +111 -0
- package/src/lib/CustomProperties/Filter/testResources.js +297 -0
- package/src/lib/CustomProperties/Filter/useOperators.js +7 -0
- package/src/lib/CustomProperties/Filter/useParseActiveFilterStrings.js +5 -2
- package/src/lib/CustomProperties/Filter/useValueProps.js +6 -0
- package/src/lib/CustomProperties/View/CustomPropertiesView.test.js +32 -0
- package/src/lib/CustomProperties/View/CustomPropertiesViewCtx.test.js +32 -0
- package/src/lib/CustomProperties/View/CustomPropertyCard.js +8 -0
- package/src/lib/CustomProperties/View/testResources.js +162 -0
- package/src/lib/EditableRefdataList/EditableRefdataList.js +108 -26
- package/src/lib/EditableRefdataList/README.md +3 -0
- package/src/lib/FormModal/FormModal.js +1 -1
- package/src/lib/SASQLookupComponent/SASQLookupComponent.js +1 -0
- package/src/lib/constants/customProperties.js +2 -0
- package/src/lib/hooks/README.md +28 -3
- package/src/lib/hooks/index.js +1 -1
- package/src/lib/hooks/settingsHooks/index.js +1 -0
- package/src/lib/hooks/settingsHooks/useAppSettings.js +69 -0
- package/src/lib/hooks/useCustomProperties.js +5 -0
- package/src/lib/hooks/useMutateCustomProperties.js +7 -3
- package/src/lib/hooks/useMutateRefdataValue.js +5 -2
- package/styles/ActionListFieldArray.css +2 -1
- package/styles/CustomProperties.css +17 -0
- package/translations/stripes-kint-components/ar.json +11 -2
- package/translations/stripes-kint-components/cs_CZ.json +10 -1
- package/translations/stripes-kint-components/de.json +11 -2
- package/translations/stripes-kint-components/en.json +14 -5
- package/translations/stripes-kint-components/es.json +11 -2
- package/translations/stripes-kint-components/fr.json +1 -105
- package/translations/stripes-kint-components/hi_IN.json +1 -105
- package/translations/stripes-kint-components/hu.json +11 -2
- package/translations/stripes-kint-components/it_IT.json +11 -2
- package/translations/stripes-kint-components/ja.json +10 -1
- package/translations/stripes-kint-components/ko.json +11 -2
- package/translations/stripes-kint-components/pl.json +11 -2
- package/translations/stripes-kint-components/pt_PT.json +11 -2
- package/translations/stripes-kint-components/ru.json +11 -2
- package/translations/stripes-kint-components/sv.json +11 -2
- package/translations/stripes-kint-components/zh_CN.json +10 -1
|
@@ -0,0 +1,1063 @@
|
|
|
1
|
+
const custPropEdit = {
|
|
2
|
+
'contexts': [
|
|
3
|
+
'isNull',
|
|
4
|
+
'OpenAccess'
|
|
5
|
+
],
|
|
6
|
+
'customPropertiesEndpoint': 'erm/custprops',
|
|
7
|
+
'id': 'supplementaryProperties',
|
|
8
|
+
'labelOverrides': {
|
|
9
|
+
'defaultTitle': 'ƒ defaultTitle() {}',
|
|
10
|
+
'noContext': '<Memo />',
|
|
11
|
+
'OpenAccess': '<Memo />',
|
|
12
|
+
'primaryProperties': '<ForwardRef />',
|
|
13
|
+
'optionalProperties': '<ForwardRef />'
|
|
14
|
+
}
|
|
15
|
+
};
|
|
16
|
+
|
|
17
|
+
const custPropEditCtx = {
|
|
18
|
+
'ctx': 'OpenAccess',
|
|
19
|
+
'customPropertiesEndpoint': 'erm/custprops',
|
|
20
|
+
'id': 'supplementaryProperties',
|
|
21
|
+
'labelOverrides': {
|
|
22
|
+
'defaultTitle': 'ƒ defaultTitle() {}',
|
|
23
|
+
'noContext': '<Memo />',
|
|
24
|
+
'OpenAccess': '<Memo />',
|
|
25
|
+
'primaryProperties': '<ForwardRef />',
|
|
26
|
+
'optionalProperties': '<ForwardRef />'
|
|
27
|
+
}
|
|
28
|
+
};
|
|
29
|
+
|
|
30
|
+
const availableCustomProperties = [{
|
|
31
|
+
'description': 'Author Identification',
|
|
32
|
+
'label': 'Author Identification',
|
|
33
|
+
'primary': true,
|
|
34
|
+
'type': 'com.k_int.web.toolkit.custprops.types.CustomPropertyRefdata',
|
|
35
|
+
'options': [{
|
|
36
|
+
'label': 'Not set',
|
|
37
|
+
'value': ''
|
|
38
|
+
},
|
|
39
|
+
{
|
|
40
|
+
'id': '2c91809c81393e6b018139454dec0061',
|
|
41
|
+
'value': 'orcid',
|
|
42
|
+
'label': 'ORCID'
|
|
43
|
+
},
|
|
44
|
+
{
|
|
45
|
+
'id': '2c91809c81393e6b018139454df50064',
|
|
46
|
+
'value': 'ringgold_id',
|
|
47
|
+
'label': 'Ringgold ID'
|
|
48
|
+
},
|
|
49
|
+
{
|
|
50
|
+
'id': '2c91809c81393e6b018139454de90060',
|
|
51
|
+
'value': 'email_domain',
|
|
52
|
+
'label': 'Email Domain'
|
|
53
|
+
},
|
|
54
|
+
{
|
|
55
|
+
'id': '2c91809c81393e6b018139454df20063',
|
|
56
|
+
'value': 'over_ip_range',
|
|
57
|
+
'label': 'Over IP Range'
|
|
58
|
+
},
|
|
59
|
+
{
|
|
60
|
+
'id': '2c91809c81393e6b018139454df90065',
|
|
61
|
+
'value': 'ror_id',
|
|
62
|
+
'label': 'ROR ID'
|
|
63
|
+
},
|
|
64
|
+
{
|
|
65
|
+
'id': '2c91809c81393e6b018139454de5005f',
|
|
66
|
+
'value': 'other',
|
|
67
|
+
'label': 'Other'
|
|
68
|
+
},
|
|
69
|
+
{
|
|
70
|
+
'id': '2c91809c81393e6b018139454def0062',
|
|
71
|
+
'value': 'over_institute',
|
|
72
|
+
'label': 'Over Institute'
|
|
73
|
+
}
|
|
74
|
+
],
|
|
75
|
+
'value': 'AuthorIdentification',
|
|
76
|
+
'defaultInternal': true
|
|
77
|
+
},
|
|
78
|
+
{
|
|
79
|
+
'description': 'Does this agreement support publishing',
|
|
80
|
+
'label': 'Does this agreement support publishing',
|
|
81
|
+
'primary': true,
|
|
82
|
+
'type': 'com.k_int.web.toolkit.custprops.types.CustomPropertyText',
|
|
83
|
+
'value': 'Eligible authors',
|
|
84
|
+
'defaultInternal': true
|
|
85
|
+
},
|
|
86
|
+
{
|
|
87
|
+
'description': 'Description test',
|
|
88
|
+
'label': 'Test',
|
|
89
|
+
'primary': true,
|
|
90
|
+
'type': 'com.k_int.web.toolkit.custprops.types.CustomPropertyRefdata',
|
|
91
|
+
'options': [{
|
|
92
|
+
'label': 'Not set',
|
|
93
|
+
'value': ''
|
|
94
|
+
},
|
|
95
|
+
{
|
|
96
|
+
'id': '2c91809c81393e6b018139454bd30015',
|
|
97
|
+
'value': 'urlproxier',
|
|
98
|
+
'label': 'urlProxier'
|
|
99
|
+
},
|
|
100
|
+
{
|
|
101
|
+
'id': '2c91809c81393e6b018139454bda0016',
|
|
102
|
+
'value': 'urlcustomiser',
|
|
103
|
+
'label': 'urlCustomiser'
|
|
104
|
+
}
|
|
105
|
+
],
|
|
106
|
+
'value': 'Test',
|
|
107
|
+
'defaultInternal': true
|
|
108
|
+
}
|
|
109
|
+
];
|
|
110
|
+
|
|
111
|
+
const customProperty = {
|
|
112
|
+
'description': 'Author Identification',
|
|
113
|
+
'label': 'Author Identification',
|
|
114
|
+
'primary': true,
|
|
115
|
+
'type': 'com.k_int.web.toolkit.custprops.types.CustomPropertyRefdata',
|
|
116
|
+
'options': [{
|
|
117
|
+
'label': 'Not set',
|
|
118
|
+
'value': ''
|
|
119
|
+
},
|
|
120
|
+
{
|
|
121
|
+
'id': '2c91809c81393e6b018139454dec0061',
|
|
122
|
+
'value': 'orcid',
|
|
123
|
+
'label': 'ORCID'
|
|
124
|
+
},
|
|
125
|
+
{
|
|
126
|
+
'id': '2c91809c81393e6b018139454df50064',
|
|
127
|
+
'value': 'ringgold_id',
|
|
128
|
+
'label': 'Ringgold ID'
|
|
129
|
+
},
|
|
130
|
+
{
|
|
131
|
+
'id': '2c91809c81393e6b018139454de90060',
|
|
132
|
+
'value': 'email_domain',
|
|
133
|
+
'label': 'Email Domain'
|
|
134
|
+
},
|
|
135
|
+
{
|
|
136
|
+
'id': '2c91809c81393e6b018139454df20063',
|
|
137
|
+
'value': 'over_ip_range',
|
|
138
|
+
'label': 'Over IP Range'
|
|
139
|
+
},
|
|
140
|
+
{
|
|
141
|
+
'id': '2c91809c81393e6b018139454df90065',
|
|
142
|
+
'value': 'ror_id',
|
|
143
|
+
'label': 'ROR ID'
|
|
144
|
+
},
|
|
145
|
+
{
|
|
146
|
+
'id': '2c91809c81393e6b018139454de5005f',
|
|
147
|
+
'value': 'other',
|
|
148
|
+
'label': 'Other'
|
|
149
|
+
},
|
|
150
|
+
{
|
|
151
|
+
'id': '2c91809c81393e6b018139454def0062',
|
|
152
|
+
'value': 'over_institute',
|
|
153
|
+
'label': 'Over Institute'
|
|
154
|
+
}
|
|
155
|
+
],
|
|
156
|
+
'value': 'AuthorIdentification',
|
|
157
|
+
'defaultInternal': true
|
|
158
|
+
};
|
|
159
|
+
|
|
160
|
+
const customProperties = [{
|
|
161
|
+
'description': 'Author Identification',
|
|
162
|
+
'label': 'Author Identification',
|
|
163
|
+
'primary': true,
|
|
164
|
+
'type': 'com.k_int.web.toolkit.custprops.types.CustomPropertyRefdata',
|
|
165
|
+
'options': [{
|
|
166
|
+
'label': 'Not set',
|
|
167
|
+
'value': ''
|
|
168
|
+
},
|
|
169
|
+
{
|
|
170
|
+
'id': '2c91809c81393e6b018139454dec0061',
|
|
171
|
+
'value': 'orcid',
|
|
172
|
+
'label': 'ORCID'
|
|
173
|
+
},
|
|
174
|
+
{
|
|
175
|
+
'id': '2c91809c81393e6b018139454df50064',
|
|
176
|
+
'value': 'ringgold_id',
|
|
177
|
+
'label': 'Ringgold ID'
|
|
178
|
+
},
|
|
179
|
+
{
|
|
180
|
+
'id': '2c91809c81393e6b018139454de90060',
|
|
181
|
+
'value': 'email_domain',
|
|
182
|
+
'label': 'Email Domain'
|
|
183
|
+
},
|
|
184
|
+
{
|
|
185
|
+
'id': '2c91809c81393e6b018139454df20063',
|
|
186
|
+
'value': 'over_ip_range',
|
|
187
|
+
'label': 'Over IP Range'
|
|
188
|
+
},
|
|
189
|
+
{
|
|
190
|
+
'id': '2c91809c81393e6b018139454df90065',
|
|
191
|
+
'value': 'ror_id',
|
|
192
|
+
'label': 'ROR ID'
|
|
193
|
+
},
|
|
194
|
+
{
|
|
195
|
+
'id': '2c91809c81393e6b018139454de5005f',
|
|
196
|
+
'value': 'other',
|
|
197
|
+
'label': 'Other'
|
|
198
|
+
},
|
|
199
|
+
{
|
|
200
|
+
'id': '2c91809c81393e6b018139454def0062',
|
|
201
|
+
'value': 'over_institute',
|
|
202
|
+
'label': 'Over Institute'
|
|
203
|
+
}
|
|
204
|
+
],
|
|
205
|
+
'value': 'AuthorIdentification',
|
|
206
|
+
'defaultInternal': true
|
|
207
|
+
},
|
|
208
|
+
{
|
|
209
|
+
'description': 'Does this agreement support publishing',
|
|
210
|
+
'label': 'Does this agreement support publishing',
|
|
211
|
+
'primary': true,
|
|
212
|
+
'type': 'com.k_int.web.toolkit.custprops.types.CustomPropertyText',
|
|
213
|
+
'value': 'Eligible authors',
|
|
214
|
+
'defaultInternal': true
|
|
215
|
+
}
|
|
216
|
+
];
|
|
217
|
+
|
|
218
|
+
const labelOverrides = {
|
|
219
|
+
'defaultTitle': 'ƒ defaultTitle() {}',
|
|
220
|
+
'noContext': '<Memo />',
|
|
221
|
+
'OpenAccess': '<Memo />',
|
|
222
|
+
'primaryProperties': '<ForwardRef />',
|
|
223
|
+
'optionalProperties': '<ForwardRef />'
|
|
224
|
+
};
|
|
225
|
+
|
|
226
|
+
const value = {
|
|
227
|
+
'AuthorIdentification': [{
|
|
228
|
+
'value': 'orcid',
|
|
229
|
+
'note': 'internal note',
|
|
230
|
+
'publicNote': 'public note',
|
|
231
|
+
'internal': 'false'
|
|
232
|
+
}],
|
|
233
|
+
'Eligible authors': [{
|
|
234
|
+
'value': 'test',
|
|
235
|
+
'note': 'internal note'
|
|
236
|
+
}],
|
|
237
|
+
'Test': [{
|
|
238
|
+
'value': 'urlcustomiser',
|
|
239
|
+
'internal': 'false'
|
|
240
|
+
}]
|
|
241
|
+
};
|
|
242
|
+
|
|
243
|
+
const cardFormValue = {
|
|
244
|
+
'AuthorIdentification': [{
|
|
245
|
+
'id': 2,
|
|
246
|
+
'publicNote': 'public note',
|
|
247
|
+
'note': 'internal note',
|
|
248
|
+
'internal': true,
|
|
249
|
+
'value': '{id: \'2c91809c813e654501813e6c3bc50061\', label: \'OR…}',
|
|
250
|
+
'type': '{category: {…}, ctx: \'OpenAccess\', defaultInternal:…}'
|
|
251
|
+
}],
|
|
252
|
+
'Eligible authors': [{
|
|
253
|
+
'_delete': true
|
|
254
|
+
}],
|
|
255
|
+
'Test': [{
|
|
256
|
+
'_delete': true
|
|
257
|
+
}]
|
|
258
|
+
};
|
|
259
|
+
|
|
260
|
+
|
|
261
|
+
const data = {
|
|
262
|
+
'ctx': 'isNull',
|
|
263
|
+
'customProperties': [{
|
|
264
|
+
'id': '2c91809d81560ccf01815613920f0028',
|
|
265
|
+
'name': 'authorisedUsers',
|
|
266
|
+
'primary': true,
|
|
267
|
+
'defaultInternal': true,
|
|
268
|
+
'label': 'Definition of authorised user',
|
|
269
|
+
'description': 'The definition of an authorised user for a resource',
|
|
270
|
+
'weight': -1,
|
|
271
|
+
'type': 'com.k_int.web.toolkit.custprops.types.CustomPropertyText'
|
|
272
|
+
},
|
|
273
|
+
{
|
|
274
|
+
'id': '2c91809d81560ccf0181561392030027',
|
|
275
|
+
'name': 'concurrentAccess',
|
|
276
|
+
'primary': true,
|
|
277
|
+
'defaultInternal': true,
|
|
278
|
+
'label': 'Number of concurrent users allowed',
|
|
279
|
+
'description': 'The number of concurrent users allowed by the resource',
|
|
280
|
+
'weight': 0,
|
|
281
|
+
'type': 'com.k_int.web.toolkit.custprops.types.CustomPropertyInteger'
|
|
282
|
+
},
|
|
283
|
+
{
|
|
284
|
+
'id': '2c91809d81560ccf0181561393af0029',
|
|
285
|
+
'name': 'walkInAccess',
|
|
286
|
+
'primary': true,
|
|
287
|
+
'category': {
|
|
288
|
+
'id': '2c91809d81560ccf0181561390c4001b',
|
|
289
|
+
'desc': 'Yes/No/Other',
|
|
290
|
+
'internal': false,
|
|
291
|
+
'values': '[{…}, {…}, {…}]'
|
|
292
|
+
},
|
|
293
|
+
'defaultInternal': false,
|
|
294
|
+
'label': 'Walk-in access permitted?',
|
|
295
|
+
'description': 'Can non-members of the library/instittuion use the resource when in the library',
|
|
296
|
+
'weight': 0,
|
|
297
|
+
'type': 'com.k_int.web.toolkit.custprops.types.CustomPropertyRefdata'
|
|
298
|
+
},
|
|
299
|
+
{
|
|
300
|
+
'id': '2c91809d81560ccf0181561393be002a',
|
|
301
|
+
'name': 'remoteAccess',
|
|
302
|
+
'primary': true,
|
|
303
|
+
'category': {
|
|
304
|
+
'id': '2c91809d81560ccf0181561390c4001b',
|
|
305
|
+
'desc': 'Yes/No/Other',
|
|
306
|
+
'internal': false,
|
|
307
|
+
'values': '[{…}, {…}, {…}]'
|
|
308
|
+
},
|
|
309
|
+
'defaultInternal': true,
|
|
310
|
+
'label': 'Access restricted to on-campus/campus network?',
|
|
311
|
+
'description': 'Can access to the resource be provided from outside the library or institutional location / network',
|
|
312
|
+
'weight': 0,
|
|
313
|
+
'type': 'com.k_int.web.toolkit.custprops.types.CustomPropertyRefdata'
|
|
314
|
+
},
|
|
315
|
+
{
|
|
316
|
+
'id': '2c91809d81560ccf0181561393c4002b',
|
|
317
|
+
'name': 'illElectronic',
|
|
318
|
+
'primary': true,
|
|
319
|
+
'category': {
|
|
320
|
+
'id': '2c91809d81560ccf0181561390dd001f',
|
|
321
|
+
'desc': 'Permitted/Prohibited',
|
|
322
|
+
'internal': false,
|
|
323
|
+
'values': '[{…}, {…}, {…}, {…}, {…}, {…}, {…}]'
|
|
324
|
+
},
|
|
325
|
+
'defaultInternal': true,
|
|
326
|
+
'label': 'Electronic ILL',
|
|
327
|
+
'description': 'The right to provide the licensed materials via interlibrary loan by way of electronic copies',
|
|
328
|
+
'weight': 0,
|
|
329
|
+
'type': 'com.k_int.web.toolkit.custprops.types.CustomPropertyRefdata'
|
|
330
|
+
},
|
|
331
|
+
{
|
|
332
|
+
'id': '2c91809d81560ccf0181561393ca002c',
|
|
333
|
+
'name': 'illSecureElectronic',
|
|
334
|
+
'primary': true,
|
|
335
|
+
'category': {
|
|
336
|
+
'id': '2c91809d81560ccf0181561390dd001f',
|
|
337
|
+
'desc': 'Permitted/Prohibited',
|
|
338
|
+
'internal': false,
|
|
339
|
+
'values': '[{…}, {…}, {…}, {…}, {…}, {…}, {…}]'
|
|
340
|
+
},
|
|
341
|
+
'defaultInternal': true,
|
|
342
|
+
'label': 'Secure Electronic ILL',
|
|
343
|
+
'description': 'The right to provide the licensed materials via interlibrary loan by way of secure electronic transmission',
|
|
344
|
+
'weight': 0,
|
|
345
|
+
'type': 'com.k_int.web.toolkit.custprops.types.CustomPropertyRefdata'
|
|
346
|
+
},
|
|
347
|
+
{
|
|
348
|
+
'id': '2c91809d81560ccf0181561393d2002d',
|
|
349
|
+
'name': 'illPrint',
|
|
350
|
+
'primary': true,
|
|
351
|
+
'category': {
|
|
352
|
+
'id': '2c91809d81560ccf0181561390dd001f',
|
|
353
|
+
'desc': 'Permitted/Prohibited',
|
|
354
|
+
'internal': false,
|
|
355
|
+
'values': '[{…}, {…}, {…}, {…}, {…}, {…}, {…}]'
|
|
356
|
+
},
|
|
357
|
+
'defaultInternal': true,
|
|
358
|
+
'label': 'Print ILL',
|
|
359
|
+
'description': 'The right to provide the licensed materials via interlibrary loan by way of print copies or facsimile transmission',
|
|
360
|
+
'weight': 0,
|
|
361
|
+
'type': 'com.k_int.web.toolkit.custprops.types.CustomPropertyRefdata'
|
|
362
|
+
},
|
|
363
|
+
{
|
|
364
|
+
'id': '2c91809d81560ccf0181561393d7002e',
|
|
365
|
+
'name': 'reservesElectronic',
|
|
366
|
+
'primary': true,
|
|
367
|
+
'category': {
|
|
368
|
+
'id': '2c91809d81560ccf0181561390dd001f',
|
|
369
|
+
'desc': 'Permitted/Prohibited',
|
|
370
|
+
'internal': false,
|
|
371
|
+
'values': '[{…}, {…}, {…}, {…}, {…}, {…}, {…}]'
|
|
372
|
+
},
|
|
373
|
+
'defaultInternal': true,
|
|
374
|
+
'label': 'Storage of electronic copies on secure network',
|
|
375
|
+
'description': 'The right to make electronic copies of the licensed materials and store them on a secure network',
|
|
376
|
+
'weight': 0,
|
|
377
|
+
'type': 'com.k_int.web.toolkit.custprops.types.CustomPropertyRefdata'
|
|
378
|
+
},
|
|
379
|
+
{
|
|
380
|
+
'id': '2c91809d81560ccf0181561393e0002f',
|
|
381
|
+
'name': 'coursePackElectronic',
|
|
382
|
+
'primary': true,
|
|
383
|
+
'category': {
|
|
384
|
+
'id': '2c91809d81560ccf0181561390dd001f',
|
|
385
|
+
'desc': 'Permitted/Prohibited',
|
|
386
|
+
'internal': false,
|
|
387
|
+
'values': '[{…}, {…}, {…}, {…}, {…}, {…}, {…}]'
|
|
388
|
+
},
|
|
389
|
+
'defaultInternal': false,
|
|
390
|
+
'label': 'Use in electronic coursepacks',
|
|
391
|
+
'description': 'The right to use licensed materials in collections or compilations of materials assembled in an electronic format by faculty members for use by students in a class for purposes of instruction',
|
|
392
|
+
'weight': 0,
|
|
393
|
+
'type': 'com.k_int.web.toolkit.custprops.types.CustomPropertyRefdata'
|
|
394
|
+
},
|
|
395
|
+
{
|
|
396
|
+
'id': '2c91809d81560ccf0181561393ee0030',
|
|
397
|
+
'name': 'coursePackPrint',
|
|
398
|
+
'primary': true,
|
|
399
|
+
'category': {
|
|
400
|
+
'id': '2c91809d81560ccf0181561390dd001f',
|
|
401
|
+
'desc': 'Permitted/Prohibited',
|
|
402
|
+
'internal': false,
|
|
403
|
+
'values': '[{…}, {…}, {…}, {…}, {…}, {…}, {…}]'
|
|
404
|
+
},
|
|
405
|
+
'defaultInternal': false,
|
|
406
|
+
'label': 'Use in print course packs',
|
|
407
|
+
'description': 'The right to use licensed materials in collections or compilations of materials assembled in a print format by faculty members for use by students in a class for purposes of instruction',
|
|
408
|
+
'weight': 0,
|
|
409
|
+
'type': 'com.k_int.web.toolkit.custprops.types.CustomPropertyRefdata'
|
|
410
|
+
},
|
|
411
|
+
{
|
|
412
|
+
'id': '2c91809d81560ccf0181561393f70031',
|
|
413
|
+
'name': 'copyDigital',
|
|
414
|
+
'primary': true,
|
|
415
|
+
'category': {
|
|
416
|
+
'id': '2c91809d81560ccf0181561390dd001f',
|
|
417
|
+
'desc': 'Permitted/Prohibited',
|
|
418
|
+
'internal': false,
|
|
419
|
+
'values': '[{…}, {…}, {…}, {…}, {…}, {…}, {…}]'
|
|
420
|
+
},
|
|
421
|
+
'defaultInternal': true,
|
|
422
|
+
'label': 'Making digital copies',
|
|
423
|
+
'description': 'The right of the licensee and authorized users to download and digitally copy a reasonable portion of the licensed materials',
|
|
424
|
+
'weight': 0,
|
|
425
|
+
'type': 'com.k_int.web.toolkit.custprops.types.CustomPropertyRefdata'
|
|
426
|
+
},
|
|
427
|
+
{
|
|
428
|
+
'id': '2c91809d81560ccf0181561393fc0032',
|
|
429
|
+
'name': 'copyPrint',
|
|
430
|
+
'primary': true,
|
|
431
|
+
'category': {
|
|
432
|
+
'id': '2c91809d81560ccf0181561390dd001f',
|
|
433
|
+
'desc': 'Permitted/Prohibited',
|
|
434
|
+
'internal': false,
|
|
435
|
+
'values': '[{…}, {…}, {…}, {…}, {…}, {…}, {…}]'
|
|
436
|
+
},
|
|
437
|
+
'defaultInternal': true,
|
|
438
|
+
'label': 'Making print copies',
|
|
439
|
+
'description': 'The right of the licensee and authorized users to print a reasonable portion of the licensed materials',
|
|
440
|
+
'weight': 0,
|
|
441
|
+
'type': 'com.k_int.web.toolkit.custprops.types.CustomPropertyRefdata'
|
|
442
|
+
},
|
|
443
|
+
{
|
|
444
|
+
'id': '2c91809d81560ccf0181561394010033',
|
|
445
|
+
'name': 'scholarlySharing',
|
|
446
|
+
'primary': false,
|
|
447
|
+
'category': {
|
|
448
|
+
'id': '2c91809d81560ccf0181561390dd001f',
|
|
449
|
+
'desc': 'Permitted/Prohibited',
|
|
450
|
+
'internal': false,
|
|
451
|
+
'values': '[{…}, {…}, {…}, {…}, {…}, {…}, {…}]'
|
|
452
|
+
},
|
|
453
|
+
'defaultInternal': true,
|
|
454
|
+
'label': 'Sharing for scholarly use',
|
|
455
|
+
'description': 'The right of authorized users and/or licensee to transmit hard copy or electronic copy of reasonable amounts of licensed materials to a third party for personal, scholarly, educational, scientific or professional use',
|
|
456
|
+
'weight': 0,
|
|
457
|
+
'type': 'com.k_int.web.toolkit.custprops.types.CustomPropertyRefdata'
|
|
458
|
+
},
|
|
459
|
+
{
|
|
460
|
+
'id': '2c91809d81560ccf0181561394050034',
|
|
461
|
+
'name': 'otherRestrictions',
|
|
462
|
+
'primary': false,
|
|
463
|
+
'defaultInternal': true,
|
|
464
|
+
'label': 'Other restrictions',
|
|
465
|
+
'description': 'Other restrictions expressed in the license',
|
|
466
|
+
'weight': 0,
|
|
467
|
+
'type': 'com.k_int.web.toolkit.custprops.types.CustomPropertyText'
|
|
468
|
+
},
|
|
469
|
+
{
|
|
470
|
+
'id': '2c91809d81560ccf0181561394090035',
|
|
471
|
+
'name': 'textAndDataMining',
|
|
472
|
+
'primary': false,
|
|
473
|
+
'category': {
|
|
474
|
+
'id': '2c91809d81560ccf0181561390dd001f',
|
|
475
|
+
'desc': 'Permitted/Prohibited',
|
|
476
|
+
'internal': false,
|
|
477
|
+
'values': '[{…}, {…}, {…}, {…}, {…}, {…}, {…}]'
|
|
478
|
+
},
|
|
479
|
+
'defaultInternal': false,
|
|
480
|
+
'label': 'Text and Data mining',
|
|
481
|
+
'description': 'Whether it is permitted to use text and data mining processes on the content of the resource',
|
|
482
|
+
'weight': 0,
|
|
483
|
+
'type': 'com.k_int.web.toolkit.custprops.types.CustomPropertyRefdata'
|
|
484
|
+
},
|
|
485
|
+
{
|
|
486
|
+
'id': '2c91809d81560ccf0181561394130037',
|
|
487
|
+
'name': 'authIP',
|
|
488
|
+
'primary': false,
|
|
489
|
+
'category': {
|
|
490
|
+
'id': '2c91809d81560ccf0181561390c4001b',
|
|
491
|
+
'desc': 'Yes/No/Other',
|
|
492
|
+
'internal': false,
|
|
493
|
+
'values': '[{…}, {…}, {…}]'
|
|
494
|
+
},
|
|
495
|
+
'defaultInternal': true,
|
|
496
|
+
'label': 'IP authentication supported?',
|
|
497
|
+
'description': 'Whether authentication via IP range is supported',
|
|
498
|
+
'weight': 0,
|
|
499
|
+
'type': 'com.k_int.web.toolkit.custprops.types.CustomPropertyRefdata'
|
|
500
|
+
},
|
|
501
|
+
{
|
|
502
|
+
'id': '2c91809d81560ccf0181561394190038',
|
|
503
|
+
'name': 'authProxy',
|
|
504
|
+
'primary': false,
|
|
505
|
+
'category': {
|
|
506
|
+
'id': '2c91809d81560ccf0181561390c4001b',
|
|
507
|
+
'desc': 'Yes/No/Other',
|
|
508
|
+
'internal': false,
|
|
509
|
+
'values': '[{…}, {…}, {…}]'
|
|
510
|
+
},
|
|
511
|
+
'defaultInternal': true,
|
|
512
|
+
'label': 'Access via a proxy supported?',
|
|
513
|
+
'description': 'Whether authentication via a reverse proxy is supported',
|
|
514
|
+
'weight': 0,
|
|
515
|
+
'type': 'com.k_int.web.toolkit.custprops.types.CustomPropertyRefdata'
|
|
516
|
+
},
|
|
517
|
+
{
|
|
518
|
+
'id': '2c91809d81560ccf018156139423003a',
|
|
519
|
+
'name': 'authSAML',
|
|
520
|
+
'primary': false,
|
|
521
|
+
'category': {
|
|
522
|
+
'id': '2c91809d81560ccf0181561390c4001b',
|
|
523
|
+
'desc': 'Yes/No/Other',
|
|
524
|
+
'internal': false,
|
|
525
|
+
'values': '[{…}, {…}, {…}]'
|
|
526
|
+
},
|
|
527
|
+
'defaultInternal': true,
|
|
528
|
+
'label': 'SAML compliant authentication supported?',
|
|
529
|
+
'description': 'Whether authentication via SAML compliant method is supported',
|
|
530
|
+
'weight': 0,
|
|
531
|
+
'type': 'com.k_int.web.toolkit.custprops.types.CustomPropertyRefdata'
|
|
532
|
+
},
|
|
533
|
+
{
|
|
534
|
+
'id': '2c91809d81560ccf018156139428003b',
|
|
535
|
+
'name': 'annualOptOut',
|
|
536
|
+
'primary': false,
|
|
537
|
+
'category': {
|
|
538
|
+
'id': '2c91809d81560ccf0181561390c4001b',
|
|
539
|
+
'desc': 'Yes/No/Other',
|
|
540
|
+
'internal': false,
|
|
541
|
+
'values': '[{…}, {…}, {…}]'
|
|
542
|
+
},
|
|
543
|
+
'defaultInternal': true,
|
|
544
|
+
'label': 'Annual opt-out clause included?',
|
|
545
|
+
'description': 'Whether the license includes an "annual opt-out" clause within a multi-year agreement',
|
|
546
|
+
'weight': 0,
|
|
547
|
+
'type': 'com.k_int.web.toolkit.custprops.types.CustomPropertyRefdata'
|
|
548
|
+
},
|
|
549
|
+
{
|
|
550
|
+
'id': '2c91809d81560ccf01815613942a003c',
|
|
551
|
+
'name': 'APCAndOffsetting',
|
|
552
|
+
'primary': false,
|
|
553
|
+
'defaultInternal': true,
|
|
554
|
+
'label': 'Whether the resource is subject to an APC discount or subscription cost offsetting agreement',
|
|
555
|
+
'description': 'Whether the resource is subject to an APC discount or subscription cost offsetting agreement',
|
|
556
|
+
'weight': 0,
|
|
557
|
+
'type': 'com.k_int.web.toolkit.custprops.types.CustomPropertyText'
|
|
558
|
+
},
|
|
559
|
+
{
|
|
560
|
+
'id': '2c91809d81560ccf01816bd1f7b0003d',
|
|
561
|
+
'name': 'TestToast',
|
|
562
|
+
'primary': true,
|
|
563
|
+
'category': {
|
|
564
|
+
'id': '2c91809d81560ccf018156138f8c0010',
|
|
565
|
+
'desc': 'License.Type',
|
|
566
|
+
'internal': false,
|
|
567
|
+
'values': '[{…}, {…}, {…}, {…}]'
|
|
568
|
+
},
|
|
569
|
+
'defaultInternal': true,
|
|
570
|
+
'label': 'test',
|
|
571
|
+
'description': 'description',
|
|
572
|
+
'weight': 0,
|
|
573
|
+
'type': 'com.k_int.web.toolkit.custprops.types.CustomPropertyRefdata'
|
|
574
|
+
},
|
|
575
|
+
{
|
|
576
|
+
'id': '2c91809d81560ccf01815613941e0039',
|
|
577
|
+
'name': 'postCancellationAccess',
|
|
578
|
+
'primary': false,
|
|
579
|
+
'category': {
|
|
580
|
+
'id': '2c91809d81560ccf0181561390c4001b',
|
|
581
|
+
'desc': 'Yes/No/Other',
|
|
582
|
+
'internal': false,
|
|
583
|
+
'values': '[{…}, {…}, {…}]'
|
|
584
|
+
},
|
|
585
|
+
'defaultInternal': true,
|
|
586
|
+
'label': 'Post-cancellation terms included?',
|
|
587
|
+
'description': 'Does the license include post-cancellation terms?',
|
|
588
|
+
'weight': 1,
|
|
589
|
+
'type': 'com.k_int.web.toolkit.custprops.types.CustomPropertyRefdata'
|
|
590
|
+
}
|
|
591
|
+
],
|
|
592
|
+
'labelOverrides': {
|
|
593
|
+
'defaultTitle': 'ƒ defaultTitle() {}',
|
|
594
|
+
'noContext': '<Memo />',
|
|
595
|
+
'primaryProperties': 'Primary terms',
|
|
596
|
+
'optionalProperties': 'Optional terms'
|
|
597
|
+
},
|
|
598
|
+
'name': 'customProperties'
|
|
599
|
+
};
|
|
600
|
+
|
|
601
|
+
const initialValues = {
|
|
602
|
+
'id': '7a4a999a-cbcf-4ddd-ac53-0c83b7c38d29',
|
|
603
|
+
'dateCreated': '2022-06-16T09:43:07Z',
|
|
604
|
+
'items': '[]',
|
|
605
|
+
'name': 'Mr agreements',
|
|
606
|
+
'orgs': '[]',
|
|
607
|
+
'externalLicenseDocs': '[]',
|
|
608
|
+
'outwardRelationships': '[]',
|
|
609
|
+
'customProperties': {
|
|
610
|
+
'test': [{
|
|
611
|
+
'id': 4,
|
|
612
|
+
'internal': true,
|
|
613
|
+
'value': {
|
|
614
|
+
'id': '2c91809c81560c700181561371d8003f',
|
|
615
|
+
'value': 'active',
|
|
616
|
+
'label': 'Active'
|
|
617
|
+
},
|
|
618
|
+
'type': {
|
|
619
|
+
'id': '2c91809c81560c7001816be1662d004a',
|
|
620
|
+
'name': 'test',
|
|
621
|
+
'primary': true,
|
|
622
|
+
'category': {
|
|
623
|
+
'id': 'ecd497ee8ec8c7149ae889d1c7803262',
|
|
624
|
+
'desc': 'SubscriptionAgreement.AgreementStatus',
|
|
625
|
+
'internal': true,
|
|
626
|
+
'values': [{
|
|
627
|
+
'id': '50c018ef8f7599db092e27a5178f6493',
|
|
628
|
+
'value': 'closed',
|
|
629
|
+
'label': 'Closed'
|
|
630
|
+
},
|
|
631
|
+
{
|
|
632
|
+
'id': '2c91809c81560c700181561371d1003e',
|
|
633
|
+
'value': 'in_negotiation',
|
|
634
|
+
'label': 'In negotiation'
|
|
635
|
+
},
|
|
636
|
+
{
|
|
637
|
+
'id': '2c91809c81560c700181561371cc003d',
|
|
638
|
+
'value': 'requested',
|
|
639
|
+
'label': 'Requested'
|
|
640
|
+
},
|
|
641
|
+
{
|
|
642
|
+
'id': '2c91809c81560c700181561371c6003c',
|
|
643
|
+
'value': 'draft',
|
|
644
|
+
'label': 'Draft'
|
|
645
|
+
},
|
|
646
|
+
{
|
|
647
|
+
'id': '2c91809c81560c700181561371d8003f',
|
|
648
|
+
'value': 'active',
|
|
649
|
+
'label': 'Active'
|
|
650
|
+
}
|
|
651
|
+
]
|
|
652
|
+
},
|
|
653
|
+
'defaultInternal': true,
|
|
654
|
+
'label': 'agreement test',
|
|
655
|
+
'description': 'description',
|
|
656
|
+
'weight': 0,
|
|
657
|
+
'type': 'com.k_int.web.toolkit.custprops.types.CustomPropertyRefdata'
|
|
658
|
+
}
|
|
659
|
+
}],
|
|
660
|
+
'decimal': [{
|
|
661
|
+
'id': 8,
|
|
662
|
+
'publicNote': 'decimal',
|
|
663
|
+
'note': 'decimal',
|
|
664
|
+
'internal': true,
|
|
665
|
+
'value': 1,
|
|
666
|
+
'type': {
|
|
667
|
+
'id': '2c91809c81560c7001817150dbd8004b',
|
|
668
|
+
'name': 'decimal',
|
|
669
|
+
'primary': true,
|
|
670
|
+
'defaultInternal': true,
|
|
671
|
+
'label': 'decimal',
|
|
672
|
+
'description': 'decimal',
|
|
673
|
+
'weight': 1,
|
|
674
|
+
'type': 'com.k_int.web.toolkit.custprops.types.CustomPropertyDecimal'
|
|
675
|
+
}
|
|
676
|
+
}],
|
|
677
|
+
'integer': [{
|
|
678
|
+
'id': 6,
|
|
679
|
+
'publicNote': 'Integer',
|
|
680
|
+
'note': 'Integer',
|
|
681
|
+
'internal': true,
|
|
682
|
+
'value': 1,
|
|
683
|
+
'type': {
|
|
684
|
+
'id': '2c91809c81560c700181715123ce004c',
|
|
685
|
+
'name': 'integer',
|
|
686
|
+
'primary': true,
|
|
687
|
+
'defaultInternal': true,
|
|
688
|
+
'label': 'integer',
|
|
689
|
+
'description': 'integer',
|
|
690
|
+
'weight': 0,
|
|
691
|
+
'type': 'com.k_int.web.toolkit.custprops.types.CustomPropertyInteger'
|
|
692
|
+
}
|
|
693
|
+
}],
|
|
694
|
+
'text': [{
|
|
695
|
+
'id': 7,
|
|
696
|
+
'publicNote': 'text',
|
|
697
|
+
'note': 'text',
|
|
698
|
+
'internal': true,
|
|
699
|
+
'value': 'text',
|
|
700
|
+
'type': {
|
|
701
|
+
'id': '2c91809c81560c7001817151762a004d',
|
|
702
|
+
'name': 'text',
|
|
703
|
+
'primary': true,
|
|
704
|
+
'defaultInternal': true,
|
|
705
|
+
'label': 'text',
|
|
706
|
+
'description': 'text',
|
|
707
|
+
'weight': 0,
|
|
708
|
+
'type': 'com.k_int.web.toolkit.custprops.types.CustomPropertyText'
|
|
709
|
+
}
|
|
710
|
+
}],
|
|
711
|
+
'Refdata': [{
|
|
712
|
+
'id': 5,
|
|
713
|
+
'publicNote': 'refdata',
|
|
714
|
+
'note': 'refdata',
|
|
715
|
+
'internal': true,
|
|
716
|
+
'value': {
|
|
717
|
+
'id': '2c91809c81560c700181561370a80005',
|
|
718
|
+
'value': 'current',
|
|
719
|
+
'label': 'Current'
|
|
720
|
+
},
|
|
721
|
+
'type': {
|
|
722
|
+
'id': '2c91809c81560c70018171521866004e',
|
|
723
|
+
'name': 'Refdata',
|
|
724
|
+
'primary': true,
|
|
725
|
+
'category': {
|
|
726
|
+
'id': '2c91809c81560c700181561370a50004',
|
|
727
|
+
'desc': 'LicenseAmendmentStatus.Status',
|
|
728
|
+
'internal': true,
|
|
729
|
+
'values': [{
|
|
730
|
+
'id': '2c91809c81560c700181561370b40007',
|
|
731
|
+
'value': 'historical',
|
|
732
|
+
'label': 'Historical'
|
|
733
|
+
},
|
|
734
|
+
{
|
|
735
|
+
'id': '2c91809c81560c700181561370ad0006',
|
|
736
|
+
'value': 'future',
|
|
737
|
+
'label': 'Future'
|
|
738
|
+
},
|
|
739
|
+
{
|
|
740
|
+
'id': '2c91809c81560c700181561370a80005',
|
|
741
|
+
'value': 'current',
|
|
742
|
+
'label': 'Current'
|
|
743
|
+
},
|
|
744
|
+
{
|
|
745
|
+
'id': '2c91809c81560c700181561370b90008',
|
|
746
|
+
'value': 'does_not_apply',
|
|
747
|
+
'label': 'Does not apply'
|
|
748
|
+
}
|
|
749
|
+
]
|
|
750
|
+
},
|
|
751
|
+
'defaultInternal': true,
|
|
752
|
+
'label': 'Refdata',
|
|
753
|
+
'description': 'refdata',
|
|
754
|
+
'weight': 0,
|
|
755
|
+
'type': 'com.k_int.web.toolkit.custprops.types.CustomPropertyRefdata'
|
|
756
|
+
}
|
|
757
|
+
}]
|
|
758
|
+
},
|
|
759
|
+
'contacts': '[]',
|
|
760
|
+
'tags': '[]',
|
|
761
|
+
'lastUpdated': '2022-06-17T11:44:59Z',
|
|
762
|
+
'inwardRelationships': '[]',
|
|
763
|
+
'startDate': '2022-06-16',
|
|
764
|
+
'linkedLicenses': '[]',
|
|
765
|
+
'docs': '[]',
|
|
766
|
+
'periods': '[{…}]',
|
|
767
|
+
'usageDataProviders': '[]',
|
|
768
|
+
'agreementStatus': 'active',
|
|
769
|
+
'supplementaryDocs': '[]',
|
|
770
|
+
'endDate': null,
|
|
771
|
+
'cancellationDeadline': null,
|
|
772
|
+
'alternateNames': '[]',
|
|
773
|
+
'relatedAgreements': '[]'
|
|
774
|
+
};
|
|
775
|
+
|
|
776
|
+
const integerData = {
|
|
777
|
+
'availableCustomProperties': [
|
|
778
|
+
'{defaultInternal: true, description: \'Author Identi…}',
|
|
779
|
+
'{defaultInternal: true, description: \'Does this agr…}',
|
|
780
|
+
'{defaultInternal: true, description: \'decimal\', lab…}',
|
|
781
|
+
'{defaultInternal: true, description: \'integer\', lab…}',
|
|
782
|
+
'{defaultInternal: true, description: \'multi-select\'…}',
|
|
783
|
+
'{defaultInternal: true, description: \'date\', label:…}'
|
|
784
|
+
],
|
|
785
|
+
'customProperty': {
|
|
786
|
+
'description': 'integer',
|
|
787
|
+
'label': 'Integer',
|
|
788
|
+
'primary': true,
|
|
789
|
+
'type': 'com.k_int.web.toolkit.custprops.types.CustomPropertyInteger',
|
|
790
|
+
'value': 'integer',
|
|
791
|
+
'defaultInternal': true
|
|
792
|
+
},
|
|
793
|
+
'customPropertyType': 'primary',
|
|
794
|
+
'customProperties': [
|
|
795
|
+
'{defaultInternal: true, description: \'Author Identi…}',
|
|
796
|
+
'{defaultInternal: true, description: \'Does this agr…}',
|
|
797
|
+
'{defaultInternal: true, description: \'decimal\', lab…}',
|
|
798
|
+
'{defaultInternal: true, description: \'integer\', lab…}',
|
|
799
|
+
'{defaultInternal: true, description: \'multi-select\'…}',
|
|
800
|
+
'{defaultInternal: true, description: \'date\', label:…}'
|
|
801
|
+
],
|
|
802
|
+
'index': 3,
|
|
803
|
+
'internalPropertyCounter': 4,
|
|
804
|
+
'labelOverrides': {
|
|
805
|
+
'defaultTitle': 'ƒ defaultTitle() {}',
|
|
806
|
+
'noContext': '<Memo />',
|
|
807
|
+
'OpenAccess': '<Memo />',
|
|
808
|
+
'primaryProperties': '<ForwardRef />',
|
|
809
|
+
'optionalProperties': '<ForwardRef />'
|
|
810
|
+
},
|
|
811
|
+
'name': 'customProperties',
|
|
812
|
+
'onChange': 'ƒ () {}',
|
|
813
|
+
'setCustomProperties': 'ƒ bound dispatchAction() {}',
|
|
814
|
+
'value': {
|
|
815
|
+
'AuthorIdentification': '[{…}]',
|
|
816
|
+
'Eligible authors': '[{…}]',
|
|
817
|
+
'Decimal': '[{…}]',
|
|
818
|
+
'integer': '[{…}]',
|
|
819
|
+
'refdataMultiSelect': '[{…}]',
|
|
820
|
+
'date': '[{…}]'
|
|
821
|
+
}
|
|
822
|
+
};
|
|
823
|
+
|
|
824
|
+
const decimalData = {
|
|
825
|
+
'availableCustomProperties': [
|
|
826
|
+
'{defaultInternal: true, description: \'Author Identi…}',
|
|
827
|
+
'{defaultInternal: true, description: \'Does this agr…}',
|
|
828
|
+
'{defaultInternal: true, description: \'decimal\', lab…}',
|
|
829
|
+
'{defaultInternal: true, description: \'integer\', lab…}',
|
|
830
|
+
'{defaultInternal: true, description: \'multi-select\'…}',
|
|
831
|
+
'{defaultInternal: true, description: \'date\', label:…}'
|
|
832
|
+
],
|
|
833
|
+
'customProperty': {
|
|
834
|
+
'description': 'decimal',
|
|
835
|
+
'label': 'decimal',
|
|
836
|
+
'primary': true,
|
|
837
|
+
'type': 'com.k_int.web.toolkit.custprops.types.CustomPropertyDecimal',
|
|
838
|
+
'value': 'Decimal',
|
|
839
|
+
'defaultInternal': true
|
|
840
|
+
},
|
|
841
|
+
'customPropertyType': 'primary',
|
|
842
|
+
'customProperties': [
|
|
843
|
+
'{defaultInternal: true, description: \'Author Identi…}',
|
|
844
|
+
'{defaultInternal: true, description: \'Does this agr…}',
|
|
845
|
+
'{defaultInternal: true, description: \'decimal\', lab…}',
|
|
846
|
+
'{defaultInternal: true, description: \'integer\', lab…}',
|
|
847
|
+
'{defaultInternal: true, description: \'multi-select\'…}',
|
|
848
|
+
'{defaultInternal: true, description: \'date\', label:…}'
|
|
849
|
+
],
|
|
850
|
+
'index': 2,
|
|
851
|
+
'internalPropertyCounter': 3,
|
|
852
|
+
'labelOverrides': {
|
|
853
|
+
'defaultTitle': 'ƒ defaultTitle() {}',
|
|
854
|
+
'noContext': '<Memo />',
|
|
855
|
+
'OpenAccess': '<Memo />',
|
|
856
|
+
'primaryProperties': '<ForwardRef />',
|
|
857
|
+
'optionalProperties': '<ForwardRef />'
|
|
858
|
+
},
|
|
859
|
+
'name': 'customProperties',
|
|
860
|
+
'onChange': 'ƒ () {}',
|
|
861
|
+
'setCustomProperties': 'ƒ bound dispatchAction() {}',
|
|
862
|
+
'value': {
|
|
863
|
+
'AuthorIdentification': '[{…}]',
|
|
864
|
+
'Eligible authors': '[{…}]',
|
|
865
|
+
'Decimal': [{
|
|
866
|
+
'id': 5,
|
|
867
|
+
'internal': true,
|
|
868
|
+
'value': 20,
|
|
869
|
+
'type': {
|
|
870
|
+
'id': '2c91809c817c329101817e1e6efb0117',
|
|
871
|
+
'retired': false,
|
|
872
|
+
'ctx': 'OpenAccess',
|
|
873
|
+
'name': 'Decimal',
|
|
874
|
+
'primary': true,
|
|
875
|
+
'defaultInternal': true,
|
|
876
|
+
'label': 'decimal',
|
|
877
|
+
'description': 'decimal',
|
|
878
|
+
'weight': 0,
|
|
879
|
+
'type': 'com.k_int.web.toolkit.custprops.types.CustomPropertyDecimal'
|
|
880
|
+
}
|
|
881
|
+
}],
|
|
882
|
+
'integer': '[{…}]',
|
|
883
|
+
'refdataMultiSelect': '[{…}]',
|
|
884
|
+
'date': '[{…}]'
|
|
885
|
+
}
|
|
886
|
+
};
|
|
887
|
+
|
|
888
|
+
const multiSelectData = {
|
|
889
|
+
'availableCustomProperties': [
|
|
890
|
+
'{defaultInternal: true, description: \'Author Identi…}',
|
|
891
|
+
'{defaultInternal: true, description: \'Does this agr…}',
|
|
892
|
+
'{defaultInternal: true, description: \'decimal\', lab…}',
|
|
893
|
+
'{defaultInternal: true, description: \'integer\', lab…}',
|
|
894
|
+
'{defaultInternal: true, description: \'multi-select\'…}',
|
|
895
|
+
'{defaultInternal: true, description: \'date\', label:…}'
|
|
896
|
+
],
|
|
897
|
+
'customProperty': {
|
|
898
|
+
'description': 'multi-select',
|
|
899
|
+
'label': 'multi-select Refdata',
|
|
900
|
+
'primary': true,
|
|
901
|
+
'type': 'com.k_int.web.toolkit.custprops.types.CustomPropertyMultiRefdata',
|
|
902
|
+
'options': [{
|
|
903
|
+
'label': 'Not set',
|
|
904
|
+
'value': ''
|
|
905
|
+
},
|
|
906
|
+
{
|
|
907
|
+
'id': '2c91809c817c329101817c395515004a',
|
|
908
|
+
'value': 'ceased',
|
|
909
|
+
'label': 'Ceased'
|
|
910
|
+
},
|
|
911
|
+
{
|
|
912
|
+
'id': '2c91809c817c329101817c39551a004b',
|
|
913
|
+
'value': 'superseded',
|
|
914
|
+
'label': 'Superseded'
|
|
915
|
+
},
|
|
916
|
+
{
|
|
917
|
+
'id': '3cea0f61a2e56b782fb733dc840e4c26',
|
|
918
|
+
'value': 'rejected',
|
|
919
|
+
'label': 'Rejected'
|
|
920
|
+
},
|
|
921
|
+
{
|
|
922
|
+
'id': '2c91809c817c329101817c39550e0049',
|
|
923
|
+
'value': 'cancelled',
|
|
924
|
+
'label': 'Cancelled'
|
|
925
|
+
}
|
|
926
|
+
],
|
|
927
|
+
'value': 'refdataMultiSelect',
|
|
928
|
+
'defaultInternal': true
|
|
929
|
+
},
|
|
930
|
+
'customPropertyType': 'primary',
|
|
931
|
+
'customProperties': [
|
|
932
|
+
'{defaultInternal: true, description: \'Author Identi…}',
|
|
933
|
+
'{defaultInternal: true, description: \'Does this agr…}',
|
|
934
|
+
'{defaultInternal: true, description: \'decimal\', lab…}',
|
|
935
|
+
'{defaultInternal: true, description: \'integer\', lab…}',
|
|
936
|
+
'{defaultInternal: true, description: \'multi-select\'…}',
|
|
937
|
+
'{defaultInternal: true, description: \'date\', label:…}'
|
|
938
|
+
],
|
|
939
|
+
'index': 4,
|
|
940
|
+
'internalPropertyCounter': 5,
|
|
941
|
+
'labelOverrides': {
|
|
942
|
+
'defaultTitle': 'ƒ defaultTitle() {}',
|
|
943
|
+
'noContext': '<Memo />',
|
|
944
|
+
'OpenAccess': '<Memo />',
|
|
945
|
+
'primaryProperties': '<ForwardRef />',
|
|
946
|
+
'optionalProperties': '<ForwardRef />'
|
|
947
|
+
},
|
|
948
|
+
'name': 'customProperties',
|
|
949
|
+
'onChange': 'ƒ () {}',
|
|
950
|
+
'setCustomProperties': 'ƒ bound dispatchAction() {}',
|
|
951
|
+
'value': {
|
|
952
|
+
'AuthorIdentification': '[{…}]',
|
|
953
|
+
'Eligible authors': '[{…}]',
|
|
954
|
+
'Decimal': '[{…}]',
|
|
955
|
+
'integer': '[{…}]',
|
|
956
|
+
'refdataMultiSelect': [{
|
|
957
|
+
'id': 4,
|
|
958
|
+
'internal': true,
|
|
959
|
+
'value': '[{…}, {…}]',
|
|
960
|
+
'type': '{category: {…}, ctx: \'OpenAccess\', defaultInternal:…}'
|
|
961
|
+
}],
|
|
962
|
+
'date': [{
|
|
963
|
+
'id': 6,
|
|
964
|
+
'internal': true,
|
|
965
|
+
'value': '2022-06-14',
|
|
966
|
+
'type': {
|
|
967
|
+
'id': '2c91809c817c329101817e1fc1f0011a',
|
|
968
|
+
'retired': false,
|
|
969
|
+
'ctx': 'OpenAccess',
|
|
970
|
+
'name': 'date',
|
|
971
|
+
'primary': true,
|
|
972
|
+
'defaultInternal': true,
|
|
973
|
+
'label': 'date',
|
|
974
|
+
'description': 'date',
|
|
975
|
+
'weight': 0,
|
|
976
|
+
'type': 'com.k_int.web.toolkit.custprops.types.CustomPropertyLocalDate'
|
|
977
|
+
}
|
|
978
|
+
}]
|
|
979
|
+
}
|
|
980
|
+
};
|
|
981
|
+
|
|
982
|
+
const dateData = {
|
|
983
|
+
'availableCustomProperties': [
|
|
984
|
+
'{defaultInternal: true, description: \'Author Identi…}',
|
|
985
|
+
'{defaultInternal: true, description: \'Does this agr…}',
|
|
986
|
+
'{defaultInternal: true, description: \'decimal\', lab…}',
|
|
987
|
+
'{defaultInternal: true, description: \'integer\', lab…}',
|
|
988
|
+
'{defaultInternal: true, description: \'multi-select\'…}',
|
|
989
|
+
'{defaultInternal: true, description: \'date\', label:…}'
|
|
990
|
+
],
|
|
991
|
+
'customProperty': {
|
|
992
|
+
'description': 'date',
|
|
993
|
+
'label': 'date',
|
|
994
|
+
'primary': true,
|
|
995
|
+
'type': 'com.k_int.web.toolkit.custprops.types.CustomPropertyLocalDate',
|
|
996
|
+
'value': 'date',
|
|
997
|
+
'defaultInternal': true
|
|
998
|
+
},
|
|
999
|
+
'customPropertyType': 'primary',
|
|
1000
|
+
'customProperties': [
|
|
1001
|
+
'{defaultInternal: true, description: \'Author Identi…}',
|
|
1002
|
+
'{defaultInternal: true, description: \'Does this agr…}',
|
|
1003
|
+
'{defaultInternal: true, description: \'decimal\', lab…}',
|
|
1004
|
+
'{defaultInternal: true, description: \'integer\', lab…}',
|
|
1005
|
+
'{defaultInternal: true, description: \'multi-select\'…}',
|
|
1006
|
+
'{defaultInternal: true, description: \'date\', label:…}'
|
|
1007
|
+
],
|
|
1008
|
+
'index': 5,
|
|
1009
|
+
'internalPropertyCounter': 6,
|
|
1010
|
+
'labelOverrides': {
|
|
1011
|
+
'defaultTitle': 'ƒ defaultTitle() {}',
|
|
1012
|
+
'noContext': '<Memo />',
|
|
1013
|
+
'OpenAccess': '<Memo />',
|
|
1014
|
+
'primaryProperties': '<ForwardRef />',
|
|
1015
|
+
'optionalProperties': '<ForwardRef />'
|
|
1016
|
+
},
|
|
1017
|
+
'name': 'customProperties',
|
|
1018
|
+
'onChange': 'ƒ () {}',
|
|
1019
|
+
'setCustomProperties': 'ƒ bound dispatchAction() {}',
|
|
1020
|
+
'value': {
|
|
1021
|
+
'AuthorIdentification': '[{…}]',
|
|
1022
|
+
'Eligible authors': '[{…}]',
|
|
1023
|
+
'Decimal': '[{…}]',
|
|
1024
|
+
'integer': '[{…}]',
|
|
1025
|
+
'refdataMultiSelect': '[{…}]',
|
|
1026
|
+
'date': [{
|
|
1027
|
+
'id': 6,
|
|
1028
|
+
'internal': true,
|
|
1029
|
+
'value': '2022-06-14',
|
|
1030
|
+
'type': {
|
|
1031
|
+
'id': '2c91809c817c329101817e1fc1f0011a',
|
|
1032
|
+
'retired': false,
|
|
1033
|
+
'ctx': 'OpenAccess',
|
|
1034
|
+
'name': 'date',
|
|
1035
|
+
'primary': true,
|
|
1036
|
+
'defaultInternal': true,
|
|
1037
|
+
'label': 'date',
|
|
1038
|
+
'description': 'date',
|
|
1039
|
+
'weight': 0,
|
|
1040
|
+
'type': 'com.k_int.web.toolkit.custprops.types.CustomPropertyLocalDate'
|
|
1041
|
+
}
|
|
1042
|
+
}]
|
|
1043
|
+
}
|
|
1044
|
+
};
|
|
1045
|
+
|
|
1046
|
+
|
|
1047
|
+
|
|
1048
|
+
export {
|
|
1049
|
+
custPropEdit,
|
|
1050
|
+
custPropEditCtx,
|
|
1051
|
+
availableCustomProperties,
|
|
1052
|
+
customProperties,
|
|
1053
|
+
customProperty,
|
|
1054
|
+
labelOverrides,
|
|
1055
|
+
value,
|
|
1056
|
+
cardFormValue,
|
|
1057
|
+
data,
|
|
1058
|
+
initialValues,
|
|
1059
|
+
dateData,
|
|
1060
|
+
integerData,
|
|
1061
|
+
decimalData,
|
|
1062
|
+
multiSelectData,
|
|
1063
|
+
};
|