@k-int/stripes-kint-components 2.8.1 → 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.
Files changed (328) hide show
  1. package/CHANGELOG.md +16 -1
  2. package/es/index.js +54 -12
  3. package/es/lib/ActionList/ActionList.js +11 -5
  4. package/es/lib/ActionList/ActionListFieldArray.js +147 -77
  5. package/es/lib/CustomProperties/Config/CustomPropertiesLookup.js +43 -31
  6. package/es/lib/CustomProperties/Config/CustomPropertiesLookup.test.js +17 -14
  7. package/es/lib/CustomProperties/Config/CustomPropertiesSettings.js +67 -47
  8. package/es/lib/CustomProperties/Config/CustomPropertiesSettings.test.js +17 -24
  9. package/es/lib/CustomProperties/Config/CustomPropertyForm.js +91 -70
  10. package/es/lib/CustomProperties/Config/CustomPropertyForm.test.js +53 -36
  11. package/es/lib/CustomProperties/Config/CustomPropertyView.js +50 -31
  12. package/es/lib/CustomProperties/Config/CustomPropertyView.test.js +13 -14
  13. package/es/lib/CustomProperties/Edit/CustomPropertiesEdit.js +6 -0
  14. package/es/lib/CustomProperties/Edit/CustomPropertiesEdit.test.js +8 -12
  15. package/es/lib/CustomProperties/Edit/CustomPropertiesEditCtx.js +22 -24
  16. package/es/lib/CustomProperties/Edit/CustomPropertiesEditCtx.test.js +9 -12
  17. package/es/lib/CustomProperties/Edit/CustomPropertiesListField.js +62 -13
  18. package/es/lib/CustomProperties/Edit/CustomPropertiesListField.test.js +12 -13
  19. package/es/lib/CustomProperties/Edit/CustomPropertyField.js +91 -44
  20. package/es/lib/CustomProperties/Edit/CustomPropertyField.test.js +80 -73
  21. package/es/lib/CustomProperties/Edit/CustomPropertyFormCard.js +31 -32
  22. package/es/lib/CustomProperties/Edit/CustomPropertyFormCard.test.js +26 -24
  23. package/es/lib/CustomProperties/Edit/testResources.js +73 -908
  24. package/es/lib/CustomProperties/Filter/CustomPropertiesFilter.js +21 -29
  25. package/es/lib/CustomProperties/Filter/CustomPropertiesFilter.test.js +12 -10
  26. package/es/lib/CustomProperties/Filter/CustomPropertiesFilterField.js +38 -39
  27. package/es/lib/CustomProperties/Filter/CustomPropertiesFilterField.test.js +28 -13
  28. package/es/lib/CustomProperties/Filter/CustomPropertiesFilterFieldArray.js +29 -44
  29. package/es/lib/CustomProperties/Filter/CustomPropertiesFilterFieldArray.test.js +6 -6
  30. package/es/lib/CustomProperties/Filter/CustomPropertiesFilterForm.js +16 -10
  31. package/es/lib/CustomProperties/Filter/CustomPropertiesFilterForm.test.js +12 -12
  32. package/es/lib/CustomProperties/Filter/CustomPropertiesRule.js +20 -11
  33. package/es/lib/CustomProperties/Filter/CustomPropertiesRule.test.js +4 -3
  34. package/es/lib/CustomProperties/Filter/testResources.js +37 -233
  35. package/es/lib/CustomProperties/Filter/useOperators.js +69 -27
  36. package/es/lib/CustomProperties/Filter/useParseActiveFilterStrings.js +3 -2
  37. package/es/lib/CustomProperties/Filter/useValueProps.js +7 -2
  38. package/es/lib/CustomProperties/View/CustomPropertiesView.js +6 -0
  39. package/es/lib/CustomProperties/View/CustomPropertiesView.test.js +4 -3
  40. package/es/lib/CustomProperties/View/CustomPropertiesViewCtx.js +13 -19
  41. package/es/lib/CustomProperties/View/CustomPropertiesViewCtx.test.js +4 -10
  42. package/es/lib/CustomProperties/View/CustomPropertyCard.js +34 -51
  43. package/es/lib/EditableRefdataCategoryList/EditableRefdataCategoryList.js +38 -28
  44. package/es/lib/EditableRefdataList/EditableRefdataList.js +44 -32
  45. package/es/lib/EditableSettingsList/EditableSettingsList.js +11 -1
  46. package/es/lib/EditableSettingsList/EditableSettingsListFieldArray.js +10 -0
  47. package/es/lib/EditableSettingsList/SettingField/EditSettingValue.js +19 -11
  48. package/es/lib/EditableSettingsList/SettingField/EditSettingValue.test.js +9 -8
  49. package/es/lib/EditableSettingsList/SettingField/RenderSettingValue.js +21 -9
  50. package/es/lib/EditableSettingsList/SettingField/RenderSettingValue.test.js +1 -0
  51. package/es/lib/EditableSettingsList/SettingField/SettingField.js +83 -16
  52. package/es/lib/EditableSettingsList/SettingField/SettingField.test.js +138 -65
  53. package/es/lib/FormModal/FormModal.js +14 -9
  54. package/es/lib/FormattedKintMessage/FormattedKintMessage.js +91 -0
  55. package/es/lib/FormattedKintMessage/index.js +15 -0
  56. package/es/lib/IconSelect/IconSelect.js +18 -12
  57. package/es/lib/NoResultsMessage/NoResultsMessage.js +13 -2
  58. package/es/lib/RichSelect/RichSelect.js +13 -34
  59. package/es/lib/SASQLookupComponent/SASQLookupComponent.js +16 -5
  60. package/es/lib/SASQLookupComponent/TableBody/TableBody.js +11 -1
  61. package/es/lib/SettingPage/SettingPage.js +12 -13
  62. package/es/lib/SettingPage/SettingPagePane.js +12 -20
  63. package/es/lib/hooks/__mocks__/index.js +46 -0
  64. package/es/lib/hooks/index.js +24 -8
  65. package/es/lib/hooks/settingsHooks/useSettings.js +22 -17
  66. package/es/lib/hooks/useIntlKey.js +34 -0
  67. package/es/lib/hooks/useIntlKeyStore.js +84 -0
  68. package/es/lib/hooks/useKintIntl.js +93 -0
  69. package/es/lib/utils/index.js +48 -4
  70. package/es/lib/utils/parseErrorResponse.js +91 -0
  71. package/es/lib/utils/validators.js +76 -59
  72. package/jest.config.js +4 -1
  73. package/junit.xml +157 -656
  74. package/package.json +54 -33
  75. package/src/artifacts/coverage-jest/lcov-report/ActionList/ActionList.js.html +56 -8
  76. package/src/artifacts/coverage-jest/lcov-report/ActionList/ActionListFieldArray.js.html +394 -64
  77. package/src/artifacts/coverage-jest/lcov-report/ActionList/index.html +10 -10
  78. package/src/artifacts/coverage-jest/lcov-report/ActionList/index.js.html +1 -1
  79. package/src/artifacts/coverage-jest/lcov-report/CustomProperties/Config/CustomPropertiesLookup.js.html +187 -52
  80. package/src/artifacts/coverage-jest/lcov-report/CustomProperties/Config/CustomPropertiesSettings.js.html +372 -87
  81. package/src/artifacts/coverage-jest/lcov-report/CustomProperties/Config/CustomPropertyForm.js.html +293 -74
  82. package/src/artifacts/coverage-jest/lcov-report/CustomProperties/Config/CustomPropertyView.js.html +126 -54
  83. package/src/artifacts/coverage-jest/lcov-report/CustomProperties/Config/index.html +45 -60
  84. package/src/artifacts/coverage-jest/lcov-report/CustomProperties/Config/index.js.html +1 -1
  85. package/src/artifacts/coverage-jest/lcov-report/CustomProperties/Edit/CustomPropertiesEdit.js.html +23 -5
  86. package/src/artifacts/coverage-jest/lcov-report/CustomProperties/Edit/CustomPropertiesEditCtx.js.html +59 -47
  87. package/src/artifacts/coverage-jest/lcov-report/CustomProperties/Edit/CustomPropertiesListField.js.html +259 -97
  88. package/src/artifacts/coverage-jest/lcov-report/CustomProperties/Edit/CustomPropertyField.js.html +399 -105
  89. package/src/artifacts/coverage-jest/lcov-report/CustomProperties/Edit/CustomPropertyFormCard.js.html +41 -68
  90. package/src/artifacts/coverage-jest/lcov-report/CustomProperties/Edit/index.html +57 -57
  91. package/src/artifacts/coverage-jest/lcov-report/CustomProperties/Edit/index.js.html +1 -1
  92. package/src/artifacts/coverage-jest/lcov-report/CustomProperties/Edit/testResources.js.html +67 -688
  93. package/src/artifacts/coverage-jest/lcov-report/CustomProperties/Filter/CustomPropertiesFilter.js.html +92 -53
  94. package/src/artifacts/coverage-jest/lcov-report/CustomProperties/Filter/CustomPropertiesFilterField.js.html +103 -64
  95. package/src/artifacts/coverage-jest/lcov-report/CustomProperties/Filter/CustomPropertiesFilterFieldArray.js.html +54 -63
  96. package/src/artifacts/coverage-jest/lcov-report/CustomProperties/Filter/CustomPropertiesFilterForm.js.html +49 -16
  97. package/src/artifacts/coverage-jest/lcov-report/CustomProperties/Filter/CustomPropertiesRule.js.html +69 -18
  98. package/src/artifacts/coverage-jest/lcov-report/CustomProperties/Filter/index.html +89 -89
  99. package/src/artifacts/coverage-jest/lcov-report/CustomProperties/Filter/index.js.html +1 -1
  100. package/src/artifacts/coverage-jest/lcov-report/CustomProperties/Filter/testResources.js.html +33 -786
  101. package/src/artifacts/coverage-jest/lcov-report/CustomProperties/Filter/useOperators.js.html +46 -46
  102. package/src/artifacts/coverage-jest/lcov-report/CustomProperties/Filter/useParseActiveFilterStrings.js.html +45 -36
  103. package/src/artifacts/coverage-jest/lcov-report/CustomProperties/Filter/useValueProps.js.html +43 -28
  104. package/src/artifacts/coverage-jest/lcov-report/CustomProperties/View/CustomPropertiesView.js.html +20 -2
  105. package/src/artifacts/coverage-jest/lcov-report/CustomProperties/View/CustomPropertiesViewCtx.js.html +50 -41
  106. package/src/artifacts/coverage-jest/lcov-report/CustomProperties/View/CustomPropertyCard.js.html +54 -75
  107. package/src/artifacts/coverage-jest/lcov-report/CustomProperties/View/index.html +24 -24
  108. package/src/artifacts/coverage-jest/lcov-report/CustomProperties/View/index.js.html +1 -1
  109. package/src/artifacts/coverage-jest/lcov-report/CustomProperties/View/testResources.js.html +1 -1
  110. package/src/artifacts/coverage-jest/lcov-report/CustomProperties/index.html +1 -1
  111. package/src/artifacts/coverage-jest/lcov-report/CustomProperties/index.js.html +1 -1
  112. package/src/artifacts/coverage-jest/lcov-report/{hooks/useAvailableCustomProperties.js.html → CycleButton/CycleButton.js.html} +62 -50
  113. package/src/artifacts/coverage-jest/lcov-report/CycleButton/index.html +131 -0
  114. package/src/artifacts/coverage-jest/lcov-report/CycleButton/index.js.html +88 -0
  115. package/src/artifacts/coverage-jest/lcov-report/EditableRefdataCategoryList/EditableRefdataCategoryList.js.html +664 -0
  116. package/src/artifacts/coverage-jest/lcov-report/EditableRefdataCategoryList/index.html +131 -0
  117. package/src/artifacts/coverage-jest/lcov-report/EditableRefdataCategoryList/index.js.html +88 -0
  118. package/src/artifacts/coverage-jest/lcov-report/EditableRefdataList/EditableRefdataList.js.html +264 -39
  119. package/src/artifacts/coverage-jest/lcov-report/EditableRefdataList/index.html +9 -9
  120. package/src/artifacts/coverage-jest/lcov-report/EditableRefdataList/index.js.html +1 -1
  121. package/src/artifacts/coverage-jest/lcov-report/EditableSettingsList/EditableSettingsList.js.html +41 -14
  122. package/src/artifacts/coverage-jest/lcov-report/EditableSettingsList/EditableSettingsListFieldArray.js.html +45 -6
  123. package/src/artifacts/coverage-jest/lcov-report/EditableSettingsList/SettingField/EditSettingValue.js.html +47 -11
  124. package/src/artifacts/coverage-jest/lcov-report/EditableSettingsList/SettingField/RenderSettingValue.js.html +65 -14
  125. package/src/artifacts/coverage-jest/lcov-report/EditableSettingsList/SettingField/SettingField.js.html +154 -31
  126. package/src/artifacts/coverage-jest/lcov-report/EditableSettingsList/SettingField/index.html +26 -26
  127. package/src/artifacts/coverage-jest/lcov-report/EditableSettingsList/SettingField/index.js.html +1 -1
  128. package/src/artifacts/coverage-jest/lcov-report/EditableSettingsList/index.html +18 -18
  129. package/src/artifacts/coverage-jest/lcov-report/EditableSettingsList/index.js.html +1 -1
  130. package/src/artifacts/coverage-jest/lcov-report/FormModal/FormModal.js.html +35 -17
  131. package/src/artifacts/coverage-jest/lcov-report/FormModal/index.html +15 -15
  132. package/src/artifacts/coverage-jest/lcov-report/FormModal/index.js.html +1 -1
  133. package/src/artifacts/coverage-jest/lcov-report/FormattedKintMessage/FormattedKintMessage.js.html +247 -0
  134. package/src/artifacts/coverage-jest/lcov-report/FormattedKintMessage/index.html +131 -0
  135. package/src/artifacts/coverage-jest/lcov-report/FormattedKintMessage/index.js.html +88 -0
  136. package/src/artifacts/coverage-jest/lcov-report/{CustomProperties/Config/CustomPropertiesView.js.html → IconSelect/IconSelect.js.html} +158 -257
  137. package/src/artifacts/coverage-jest/lcov-report/IconSelect/index.html +131 -0
  138. package/src/artifacts/coverage-jest/lcov-report/IconSelect/index.js.html +88 -0
  139. package/src/artifacts/coverage-jest/lcov-report/NoResultsMessage/NoResultsMessage.js.html +48 -6
  140. package/src/artifacts/coverage-jest/lcov-report/NoResultsMessage/index.html +7 -7
  141. package/src/artifacts/coverage-jest/lcov-report/NoResultsMessage/index.js.html +1 -1
  142. package/src/artifacts/coverage-jest/lcov-report/QueryTypedown/QueryTypedown.js.html +1 -1
  143. package/src/artifacts/coverage-jest/lcov-report/QueryTypedown/index.html +1 -1
  144. package/src/artifacts/coverage-jest/lcov-report/QueryTypedown/index.js.html +1 -1
  145. package/src/artifacts/coverage-jest/lcov-report/RefdataButtons/RefdataButtons.js.html +3 -3
  146. package/src/artifacts/coverage-jest/lcov-report/RefdataButtons/index.html +1 -1
  147. package/src/artifacts/coverage-jest/lcov-report/RefdataButtons/index.js.html +1 -1
  148. package/src/artifacts/coverage-jest/lcov-report/{CustomProperties/Config/testResources.js.html → RichSelect/RichSelect.js.html} +256 -334
  149. package/src/artifacts/coverage-jest/lcov-report/RichSelect/index.html +146 -0
  150. package/src/artifacts/coverage-jest/lcov-report/RichSelect/index.js.html +91 -0
  151. package/src/artifacts/coverage-jest/lcov-report/RichSelect/useSelectedOption.js.html +127 -0
  152. package/src/artifacts/coverage-jest/lcov-report/SASQLookupComponent/SASQLookupComponent.js.html +52 -7
  153. package/src/artifacts/coverage-jest/lcov-report/SASQLookupComponent/TableBody/TableBody.js.html +31 -4
  154. package/src/artifacts/coverage-jest/lcov-report/SASQLookupComponent/TableBody/index.html +3 -3
  155. package/src/artifacts/coverage-jest/lcov-report/SASQLookupComponent/TableBody/index.js.html +1 -1
  156. package/src/artifacts/coverage-jest/lcov-report/SASQLookupComponent/index.html +7 -7
  157. package/src/artifacts/coverage-jest/lcov-report/SASQLookupComponent/index.js.html +1 -1
  158. package/src/artifacts/coverage-jest/lcov-report/SASQRoute/SASQRoute.js.html +1 -1
  159. package/src/artifacts/coverage-jest/lcov-report/SASQRoute/index.html +1 -1
  160. package/src/artifacts/coverage-jest/lcov-report/SASQRoute/index.js.html +1 -1
  161. package/src/artifacts/coverage-jest/lcov-report/SASQViewComponent/SASQViewComponent.js.html +1 -1
  162. package/src/artifacts/coverage-jest/lcov-report/SASQViewComponent/index.html +1 -1
  163. package/src/artifacts/coverage-jest/lcov-report/SASQViewComponent/index.js.html +1 -1
  164. package/src/artifacts/coverage-jest/lcov-report/SearchField/SearchField.js.html +1 -1
  165. package/src/artifacts/coverage-jest/lcov-report/SearchField/index.html +1 -1
  166. package/src/artifacts/coverage-jest/lcov-report/SearchField/index.js.html +1 -1
  167. package/src/artifacts/coverage-jest/lcov-report/SettingPage/SettingPage.js.html +24 -27
  168. package/src/artifacts/coverage-jest/lcov-report/SettingPage/SettingPagePane.js.html +47 -17
  169. package/src/artifacts/coverage-jest/lcov-report/SettingPage/index.html +22 -22
  170. package/src/artifacts/coverage-jest/lcov-report/SettingPage/index.js.html +1 -1
  171. package/src/artifacts/coverage-jest/lcov-report/Typedown/Typedown.js.html +1 -1
  172. package/src/artifacts/coverage-jest/lcov-report/Typedown/index.html +1 -1
  173. package/src/artifacts/coverage-jest/lcov-report/Typedown/index.js.html +1 -1
  174. package/src/artifacts/coverage-jest/lcov-report/constants/customProperties.js.html +1 -1
  175. package/src/artifacts/coverage-jest/lcov-report/constants/eventCodes.js.html +1 -1
  176. package/src/artifacts/coverage-jest/lcov-report/constants/index.html +1 -1
  177. package/src/artifacts/coverage-jest/lcov-report/contexts/SettingsContext.js.html +2 -2
  178. package/src/artifacts/coverage-jest/lcov-report/contexts/index.html +1 -1
  179. package/src/artifacts/coverage-jest/lcov-report/contexts/index.js.html +1 -1
  180. package/src/artifacts/coverage-jest/lcov-report/favicon.png +0 -0
  181. package/src/artifacts/coverage-jest/lcov-report/hooks/index.html +142 -97
  182. package/src/artifacts/coverage-jest/lcov-report/hooks/index.js.html +13 -4
  183. package/src/artifacts/coverage-jest/lcov-report/hooks/settingsHooks/index.html +35 -20
  184. package/src/artifacts/coverage-jest/lcov-report/hooks/settingsHooks/index.js.html +5 -2
  185. package/src/artifacts/coverage-jest/lcov-report/hooks/settingsHooks/useAppSettings.js.html +7 -7
  186. package/src/artifacts/coverage-jest/lcov-report/hooks/settingsHooks/useSettingSection.js.html +7 -7
  187. package/src/artifacts/coverage-jest/lcov-report/hooks/settingsHooks/useSettings.js.html +61 -22
  188. package/src/artifacts/coverage-jest/lcov-report/hooks/typedownHooks/index.html +1 -1
  189. package/src/artifacts/coverage-jest/lcov-report/hooks/typedownHooks/index.js.html +1 -1
  190. package/src/artifacts/coverage-jest/lcov-report/hooks/typedownHooks/useTypedown.js.html +1 -1
  191. package/src/artifacts/coverage-jest/lcov-report/hooks/typedownHooks/useTypedownData.js.html +1 -1
  192. package/src/artifacts/coverage-jest/lcov-report/hooks/typedownHooks/useTypedownToggle.js.html +1 -1
  193. package/src/artifacts/coverage-jest/lcov-report/hooks/useActiveElement.js.html +7 -7
  194. package/src/artifacts/coverage-jest/lcov-report/hooks/useCustomProperties.js.html +19 -22
  195. package/src/artifacts/coverage-jest/lcov-report/hooks/useHelperApp.js.html +7 -7
  196. package/src/artifacts/coverage-jest/lcov-report/hooks/useIntlKey.js.html +151 -0
  197. package/src/artifacts/coverage-jest/lcov-report/{utils/renderHelpText.js.html → hooks/useIntlKeyStore.js.html} +71 -38
  198. package/src/artifacts/coverage-jest/lcov-report/hooks/useInvalidateRefdata.js.html +7 -7
  199. package/src/artifacts/coverage-jest/lcov-report/hooks/useKintIntl.js.html +238 -0
  200. package/src/artifacts/coverage-jest/lcov-report/hooks/useKiwtFieldArray.js.html +7 -7
  201. package/src/artifacts/coverage-jest/lcov-report/hooks/useKiwtSASQuery.js.html +9 -9
  202. package/src/artifacts/coverage-jest/lcov-report/hooks/useLocalStorageState.js.html +7 -7
  203. package/src/artifacts/coverage-jest/lcov-report/hooks/useMutateCustomProperties.js.html +23 -11
  204. package/src/artifacts/coverage-jest/lcov-report/hooks/useMutateRefdataCategory.js.html +274 -0
  205. package/src/artifacts/coverage-jest/lcov-report/hooks/useMutateRefdataValue.js.html +19 -10
  206. package/src/artifacts/coverage-jest/lcov-report/hooks/useQIndex.js.html +7 -7
  207. package/src/artifacts/coverage-jest/lcov-report/hooks/useRefdata.js.html +9 -9
  208. package/src/artifacts/coverage-jest/lcov-report/hooks/useTemplates.js.html +7 -7
  209. package/src/artifacts/coverage-jest/lcov-report/index.html +205 -130
  210. package/src/artifacts/coverage-jest/lcov-report/sort-arrow-sprite.png +0 -0
  211. package/src/artifacts/coverage-jest/lcov-report/utils/buildUrl.js.html +1 -1
  212. package/src/artifacts/coverage-jest/lcov-report/utils/generateKiwtQuery.js.html +2 -2
  213. package/src/artifacts/coverage-jest/lcov-report/utils/generateKiwtQueryParams.js.html +2 -2
  214. package/src/artifacts/coverage-jest/lcov-report/utils/groupCustomPropertiesByCtx.js.html +7 -7
  215. package/src/artifacts/coverage-jest/lcov-report/utils/highlightString.js.html +3 -3
  216. package/src/artifacts/coverage-jest/lcov-report/utils/index.html +34 -34
  217. package/src/artifacts/coverage-jest/lcov-report/utils/index.js.html +42 -3
  218. package/src/artifacts/coverage-jest/lcov-report/utils/matchString.js.html +2 -2
  219. package/src/artifacts/coverage-jest/lcov-report/utils/parseErrorResponse.js.html +139 -0
  220. package/src/artifacts/coverage-jest/lcov-report/utils/refdataOptions.js.html +5 -2
  221. package/src/artifacts/coverage-jest/lcov-report/utils/refdataQueryKey.js.html +2 -2
  222. package/src/artifacts/coverage-jest/lcov-report/utils/selectorSafe.js.html +2 -2
  223. package/src/artifacts/coverage-jest/lcov-report/utils/sortByLabel.js.html +2 -2
  224. package/src/artifacts/coverage-jest/lcov-report/utils/toCamelCase.js.html +2 -2
  225. package/src/artifacts/coverage-jest/lcov-report/utils/typedownQueryKey.js.html +2 -2
  226. package/src/artifacts/coverage-jest/lcov-report/utils/validators.js.html +128 -80
  227. package/src/artifacts/coverage-jest/lcov.info +2603 -2086
  228. package/src/index.js +12 -4
  229. package/src/lib/ActionList/ActionList.js +9 -3
  230. package/src/lib/ActionList/ActionListFieldArray.js +115 -37
  231. package/src/lib/ActionList/README.md +2 -1
  232. package/src/lib/CustomProperties/Config/CustomPropertiesLookup.js +60 -16
  233. package/src/lib/CustomProperties/Config/CustomPropertiesLookup.test.js +14 -4
  234. package/src/lib/CustomProperties/Config/CustomPropertiesSettings.js +109 -34
  235. package/src/lib/CustomProperties/Config/CustomPropertiesSettings.test.js +16 -9
  236. package/src/lib/CustomProperties/Config/CustomPropertyForm.js +131 -58
  237. package/src/lib/CustomProperties/Config/CustomPropertyForm.test.js +52 -33
  238. package/src/lib/CustomProperties/Config/CustomPropertyView.js +71 -47
  239. package/src/lib/CustomProperties/Config/CustomPropertyView.test.js +8 -6
  240. package/src/lib/CustomProperties/Config/README.md +33 -28
  241. package/src/lib/CustomProperties/Edit/CustomPropertiesEdit.js +6 -0
  242. package/src/lib/CustomProperties/Edit/CustomPropertiesEdit.test.js +7 -3
  243. package/src/lib/CustomProperties/Edit/CustomPropertiesEditCtx.js +23 -19
  244. package/src/lib/CustomProperties/Edit/CustomPropertiesEditCtx.test.js +5 -3
  245. package/src/lib/CustomProperties/Edit/CustomPropertiesListField.js +65 -11
  246. package/src/lib/CustomProperties/Edit/CustomPropertiesListField.test.js +10 -8
  247. package/src/lib/CustomProperties/Edit/CustomPropertyField.js +115 -21
  248. package/src/lib/CustomProperties/Edit/CustomPropertyField.test.js +59 -60
  249. package/src/lib/CustomProperties/Edit/CustomPropertyFormCard.js +24 -33
  250. package/src/lib/CustomProperties/Edit/CustomPropertyFormCard.test.js +20 -27
  251. package/src/lib/CustomProperties/Edit/testResources.js +46 -1047
  252. package/src/lib/CustomProperties/Filter/CustomPropertiesFilter.js +22 -22
  253. package/src/lib/CustomProperties/Filter/CustomPropertiesFilter.test.js +12 -8
  254. package/src/lib/CustomProperties/Filter/CustomPropertiesFilterField.js +44 -31
  255. package/src/lib/CustomProperties/Filter/CustomPropertiesFilterField.test.js +26 -13
  256. package/src/lib/CustomProperties/Filter/CustomPropertiesFilterFieldArray.js +33 -36
  257. package/src/lib/CustomProperties/Filter/CustomPropertiesFilterFieldArray.test.js +3 -3
  258. package/src/lib/CustomProperties/Filter/CustomPropertiesFilterForm.js +19 -8
  259. package/src/lib/CustomProperties/Filter/CustomPropertiesFilterForm.test.js +9 -12
  260. package/src/lib/CustomProperties/Filter/CustomPropertiesRule.js +22 -5
  261. package/src/lib/CustomProperties/Filter/CustomPropertiesRule.test.js +3 -1
  262. package/src/lib/CustomProperties/Filter/testResources.js +14 -265
  263. package/src/lib/CustomProperties/Filter/useOperators.js +20 -20
  264. package/src/lib/CustomProperties/Filter/useParseActiveFilterStrings.js +2 -2
  265. package/src/lib/CustomProperties/Filter/useValueProps.js +8 -3
  266. package/src/lib/CustomProperties/View/CustomPropertiesView.js +6 -0
  267. package/src/lib/CustomProperties/View/CustomPropertiesView.test.js +2 -1
  268. package/src/lib/CustomProperties/View/CustomPropertiesViewCtx.js +15 -13
  269. package/src/lib/CustomProperties/View/CustomPropertiesViewCtx.test.js +2 -5
  270. package/src/lib/CustomProperties/View/CustomPropertyCard.js +36 -43
  271. package/src/lib/EditableRefdataCategoryList/EditableRefdataCategoryList.js +47 -28
  272. package/src/lib/EditableRefdataList/EditableRefdataList.js +58 -33
  273. package/src/lib/EditableSettingsList/EditableSettingsList.js +10 -1
  274. package/src/lib/EditableSettingsList/EditableSettingsListFieldArray.js +14 -1
  275. package/src/lib/EditableSettingsList/SettingField/EditSettingValue.js +17 -5
  276. package/src/lib/EditableSettingsList/SettingField/EditSettingValue.test.js +9 -8
  277. package/src/lib/EditableSettingsList/SettingField/RenderSettingValue.js +24 -7
  278. package/src/lib/EditableSettingsList/SettingField/RenderSettingValue.test.js +1 -0
  279. package/src/lib/EditableSettingsList/SettingField/SettingField.js +57 -16
  280. package/src/lib/EditableSettingsList/SettingField/SettingField.test.js +14 -19
  281. package/src/lib/FormModal/FormModal.js +15 -9
  282. package/src/lib/FormattedKintMessage/FormattedKintMessage.js +54 -0
  283. package/src/lib/FormattedKintMessage/index.js +1 -0
  284. package/src/lib/IconSelect/IconSelect.js +17 -8
  285. package/src/lib/NoResultsMessage/NoResultsMessage.js +15 -1
  286. package/src/lib/RichSelect/RichSelect.js +16 -36
  287. package/src/lib/SASQLookupComponent/SASQLookupComponent.js +17 -2
  288. package/src/lib/SASQLookupComponent/TableBody/TableBody.js +10 -1
  289. package/src/lib/SettingPage/SettingPage.js +12 -13
  290. package/src/lib/SettingPage/SettingPagePane.js +16 -6
  291. package/src/lib/hooks/__mocks__/index.js +17 -0
  292. package/src/lib/hooks/index.js +3 -1
  293. package/src/lib/hooks/settingsHooks/useSettings.js +25 -12
  294. package/src/lib/hooks/useIntlKey.js +22 -0
  295. package/src/lib/hooks/useIntlKeyStore.js +38 -0
  296. package/src/lib/hooks/useKintIntl.js +51 -0
  297. package/src/lib/utils/index.js +14 -1
  298. package/src/lib/utils/parseErrorResponse.js +18 -0
  299. package/src/lib/utils/validators.js +57 -41
  300. package/styles/RichSelect.css +7 -4
  301. package/test/helpers/test-implementor-translations.json +80 -0
  302. package/test/helpers/translationsProperties.js +6 -1
  303. package/test/jest/customProperties.js +166 -0
  304. package/test/jest/helpers/KintHarness.js +1 -1
  305. package/test/jest/helpers/renderWithKintHarness.js +2 -1
  306. package/test/jest/index.js +8 -0
  307. package/test/jest/refdata.js +471 -0
  308. package/test/jest/resolver.js +29 -0
  309. package/translations/stripes-kint-components/ar.json +1 -122
  310. package/translations/stripes-kint-components/cs_CZ.json +1 -122
  311. package/translations/stripes-kint-components/de.json +1 -122
  312. package/translations/stripes-kint-components/en.json +1 -148
  313. package/translations/stripes-kint-components/es.json +1 -122
  314. package/translations/stripes-kint-components/hi_IN.json +1 -122
  315. package/translations/stripes-kint-components/hu.json +1 -122
  316. package/translations/stripes-kint-components/it_IT.json +1 -122
  317. package/translations/stripes-kint-components/ja.json +1 -122
  318. package/translations/stripes-kint-components/ko.json +1 -122
  319. package/translations/stripes-kint-components/pt_PT.json +1 -122
  320. package/translations/stripes-kint-components/ru.json +1 -122
  321. package/translations/stripes-kint-components/sv.json +1 -122
  322. package/translations/stripes-kint-components/zh_CN.json +1 -122
  323. package/es/lib/CustomProperties/Config/testResources.js +0 -198
  324. package/es/lib/hooks/useAvailableCustomProperties.js +0 -73
  325. package/es/lib/utils/renderHelpText.js +0 -80
  326. package/src/lib/CustomProperties/Config/testResources.js +0 -236
  327. package/src/lib/hooks/useAvailableCustomProperties.js +0 -40
  328. package/src/lib/utils/renderHelpText.js +0 -27
@@ -1,1063 +1,62 @@
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
- };
1
+ import { customProperties, refdata } from '../../../../test/jest';
29
2
 
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
- };
3
+ const agreementStatusRefdata = refdata?.find(rdc => rdc.desc === 'SubscriptionAgreement.AgreementStatus');
4
+ const licenseAmendmentStatusRefdata = refdata?.find(rdc => rdc.desc === 'LicenseAmendmentStatus.Status');
225
5
 
226
6
  const value = {
227
- 'AuthorIdentification': [{
228
- 'value': 'orcid',
229
- 'note': 'internal note',
230
- 'publicNote': 'public note',
231
- 'internal': 'false'
7
+ AuthorIdentification: [{
8
+ id: 2,
9
+ internal: true,
10
+ publicNote: 'this is a public note',
11
+ note: 'this is an internal note',
12
+ value: agreementStatusRefdata?.values?.find(rdv => rdv.value === 'active'),
13
+ type: customProperties?.find(cp => cp.name === 'AuthorIdentification')
232
14
  }],
233
- 'Eligible authors': [{
234
- 'value': 'test',
235
- 'note': 'internal note'
15
+ Test: [{
16
+ id: 4,
17
+ internal: true,
18
+ value: agreementStatusRefdata?.values?.find(rdv => rdv.value === 'active'),
19
+ type: customProperties?.find(cp => cp.name === 'Test')
236
20
  }],
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:…}'
21
+ decimal: [{
22
+ id: 8,
23
+ publicNote: 'decimal',
24
+ note: 'decimal',
25
+ internal: true,
26
+ value: 1,
27
+ type: customProperties?.find(cp => cp.name === 'decimal')
28
+ }],
29
+ integer: [{
30
+ id: 6,
31
+ publicNote: 'Integer',
32
+ note: 'Integer',
33
+ internal: true,
34
+ value: 1,
35
+ type: customProperties?.find(cp => cp.name === 'integer')
251
36
  }],
252
- 'Eligible authors': [{
253
- '_delete': true
37
+ text: [{
38
+ id: 7,
39
+ publicNote: 'text',
40
+ note: 'text',
41
+ internal: true,
42
+ value: 'text',
43
+ type: customProperties?.find(cp => cp.name === 'text')
254
44
  }],
255
- 'Test': [{
256
- '_delete': true
45
+ Refdata: [{
46
+ id: 5,
47
+ publicNote: 'refdata',
48
+ note: 'refdata',
49
+ internal: true,
50
+ value: licenseAmendmentStatusRefdata?.values?.find(rdv => rdv.value === 'current'),
51
+ type: customProperties?.find(cp => cp.name === 'Refdata')
257
52
  }]
258
53
  };
259
54
 
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
55
  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
- }
56
+ customProperties: value
886
57
  };
887
58
 
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
59
  export {
1049
- custPropEdit,
1050
- custPropEditCtx,
1051
- availableCustomProperties,
1052
- customProperties,
1053
- customProperty,
1054
- labelOverrides,
1055
60
  value,
1056
- cardFormValue,
1057
- data,
1058
- initialValues,
1059
- dateData,
1060
- integerData,
1061
- decimalData,
1062
- multiSelectData,
61
+ initialValues
1063
62
  };