@k-int/stripes-kint-components 3.2.1 → 3.2.3

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 (243) hide show
  1. package/CHANGELOG.md +6 -0
  2. package/es/lib/ActionList/ActionList.js +3 -1
  3. package/es/lib/ActionList/ActionListFieldArray.js +5 -3
  4. package/es/lib/CustomProperties/Config/CustomPropertiesLookup.js +6 -3
  5. package/es/lib/CustomProperties/Config/CustomPropertiesSettings.js +26 -26
  6. package/es/lib/CustomProperties/Config/CustomPropertiesSettings.test.js +26 -32
  7. package/es/lib/CustomProperties/Config/CustomPropertyForm.js +2 -2
  8. package/es/lib/CustomProperties/Config/CustomPropertyForm.test.js +43 -49
  9. package/es/lib/CustomProperties/Config/CustomPropertyView.test.js +82 -100
  10. package/es/lib/CustomProperties/Edit/CustomPropertiesListField.js +6 -3
  11. package/es/lib/CustomProperties/Edit/CustomPropertiesListField.test.js +22 -28
  12. package/es/lib/CustomProperties/Edit/CustomPropertyField.js +4 -2
  13. package/es/lib/CustomProperties/Edit/CustomPropertyField.test.js +73 -87
  14. package/es/lib/CustomProperties/Filter/CustomPropertiesFilter.js +6 -3
  15. package/es/lib/CustomProperties/Filter/CustomPropertiesFilter.test.js +26 -32
  16. package/es/lib/CustomProperties/Filter/CustomPropertiesFilterField.js +6 -3
  17. package/es/lib/CustomProperties/Filter/CustomPropertiesFilterFieldArray.test.js +15 -19
  18. package/es/lib/CustomProperties/Filter/CustomPropertiesFilterForm.js +4 -1
  19. package/es/lib/CustomProperties/Filter/CustomPropertiesFilterForm.test.js +21 -23
  20. package/es/lib/CustomProperties/Filter/CustomPropertiesRule.js +4 -1
  21. package/es/lib/CustomProperties/Filter/CustomPropertiesRule.test.js +129 -161
  22. package/es/lib/CustomProperties/Filter/useParseActiveFilterStrings.js +2 -2
  23. package/es/lib/CustomProperties/View/CustomPropertiesViewCtx.js +2 -2
  24. package/es/lib/CustomProperties/View/CustomPropertiesViewCtx.test.js +4 -1
  25. package/es/lib/CustomProperties/View/CustomPropertyCard.js +2 -2
  26. package/es/lib/CycleButton/CycleButton.js +6 -3
  27. package/es/lib/EditableRefdataCategoryList/EditableRefdataCategoryList.js +26 -26
  28. package/es/lib/EditableRefdataList/EditableRefdataList.js +29 -29
  29. package/es/lib/EditableSettingsList/EditableSettingsListFieldArray.js +4 -1
  30. package/es/lib/EditableSettingsList/EditableSettingsListFieldArray.test.js +44 -50
  31. package/es/lib/EditableSettingsList/SettingField/EditSettingValue.js +1 -1
  32. package/es/lib/EditableSettingsList/SettingField/RenderSettingValue.test.js +139 -163
  33. package/es/lib/EditableSettingsList/SettingField/SettingField.js +12 -10
  34. package/es/lib/EditableSettingsList/SettingField/SettingField.test.js +117 -133
  35. package/es/lib/FormModal/FormModal.js +4 -1
  36. package/es/lib/FormattedKintMessage/FormattedKintMessage.js +4 -1
  37. package/es/lib/IconSelect/IconSelect.js +5 -3
  38. package/es/lib/QueryTypedown/QueryTypedown.js +5 -3
  39. package/es/lib/RefdataButtons/RefdataButtons.js +4 -1
  40. package/es/lib/ResponsiveButtonGroup/ResponsiveButtonGroup.js +5 -2
  41. package/es/lib/ResponsiveButtonGroup/useResponsiveButtonGroupSizing.js +2 -2
  42. package/es/lib/RichSelect/RichSelect.js +6 -3
  43. package/es/lib/RichSelect/useSelectedOption.js +2 -2
  44. package/es/lib/SASQLookupComponent/SASQLookupComponent.js +6 -3
  45. package/es/lib/SASQLookupComponent/TableBody/TableBody.js +4 -1
  46. package/es/lib/SASQRoute/SASQRoute.js +4 -1
  47. package/es/lib/SASQViewComponent/SASQViewComponent.js +4 -1
  48. package/es/lib/SearchField/SearchField.js +4 -1
  49. package/es/lib/Typedown/Typedown.js +2 -2
  50. package/es/lib/hooks/settingsHooks/useAppSettings.js +1 -1
  51. package/es/lib/hooks/settingsHooks/useSettings.js +5 -2
  52. package/es/lib/hooks/typedownHooks/useTypedownData.js +2 -2
  53. package/es/lib/hooks/typedownHooks/useTypedownToggle.js +2 -2
  54. package/es/lib/hooks/useActiveElement.js +2 -2
  55. package/es/lib/hooks/useCustomProperties.js +4 -1
  56. package/es/lib/hooks/useHelperApp.js +5 -3
  57. package/es/lib/hooks/useIntlKeyStore.js +4 -4
  58. package/es/lib/hooks/useKintIntl.js +4 -1
  59. package/es/lib/hooks/useKiwtFieldArray.js +6 -3
  60. package/es/lib/hooks/useKiwtSASQuery.js +5 -3
  61. package/es/lib/hooks/useLocalStorageState.js +2 -2
  62. package/es/lib/hooks/useMutateCustomProperties.js +23 -29
  63. package/es/lib/hooks/useMutateRefdataCategory.js +24 -26
  64. package/es/lib/hooks/useMutateRefdataValue.js +30 -34
  65. package/es/lib/hooks/useQIndex.js +5 -3
  66. package/es/lib/hooks/useSASQQueryMeta.js +1 -1
  67. package/es/lib/utils/generateKiwtQueryParams.js +2 -2
  68. package/es/lib/utils/groupCustomPropertiesByCtx.js +5 -2
  69. package/es/lib/utils/highlightString.js +2 -2
  70. package/es/lib/utils/parseErrorResponse.js +44 -42
  71. package/junit.xml +1490 -220
  72. package/package.json +1 -1
  73. package/src/artifacts/coverage-jest/lcov-report/ActionList/ActionList.js.html +12 -3
  74. package/src/artifacts/coverage-jest/lcov-report/ActionList/ActionListFieldArray.js.html +98 -17
  75. package/src/artifacts/coverage-jest/lcov-report/ActionList/index.html +10 -10
  76. package/src/artifacts/coverage-jest/lcov-report/ActionList/index.js.html +1 -1
  77. package/src/artifacts/coverage-jest/lcov-report/CustomProperties/Config/CustomPropertiesLookup.js.html +42 -42
  78. package/src/artifacts/coverage-jest/lcov-report/CustomProperties/Config/CustomPropertiesSettings.js.html +166 -88
  79. package/src/artifacts/coverage-jest/lcov-report/CustomProperties/Config/CustomPropertyForm.js.html +58 -58
  80. package/src/artifacts/coverage-jest/lcov-report/CustomProperties/Config/CustomPropertyView.js.html +27 -27
  81. package/src/artifacts/coverage-jest/lcov-report/CustomProperties/Config/index.html +53 -53
  82. package/src/artifacts/coverage-jest/lcov-report/CustomProperties/Config/index.js.html +1 -1
  83. package/src/artifacts/coverage-jest/lcov-report/CustomProperties/Config/testResources.js.html +793 -0
  84. package/src/artifacts/coverage-jest/lcov-report/CustomProperties/Edit/CustomPropertiesEdit.js.html +17 -17
  85. package/src/artifacts/coverage-jest/lcov-report/CustomProperties/Edit/CustomPropertiesEditCtx.js.html +26 -26
  86. package/src/artifacts/coverage-jest/lcov-report/CustomProperties/Edit/CustomPropertiesListField.js.html +91 -94
  87. package/src/artifacts/coverage-jest/lcov-report/CustomProperties/Edit/CustomPropertyField.js.html +116 -116
  88. package/src/artifacts/coverage-jest/lcov-report/CustomProperties/Edit/CustomPropertyFormCard.js.html +26 -26
  89. package/src/artifacts/coverage-jest/lcov-report/CustomProperties/Edit/index.html +64 -64
  90. package/src/artifacts/coverage-jest/lcov-report/CustomProperties/Edit/index.js.html +1 -1
  91. package/src/artifacts/coverage-jest/lcov-report/CustomProperties/Edit/testResources.js.html +1 -1
  92. package/src/artifacts/coverage-jest/lcov-report/CustomProperties/Filter/CustomPropertiesFilter.js.html +31 -31
  93. package/src/artifacts/coverage-jest/lcov-report/CustomProperties/Filter/CustomPropertiesFilterField.js.html +48 -48
  94. package/src/artifacts/coverage-jest/lcov-report/CustomProperties/Filter/CustomPropertiesFilterFieldArray.js.html +20 -20
  95. package/src/artifacts/coverage-jest/lcov-report/CustomProperties/Filter/CustomPropertiesFilterForm.js.html +17 -17
  96. package/src/artifacts/coverage-jest/lcov-report/CustomProperties/Filter/CustomPropertiesRule.js.html +43 -43
  97. package/src/artifacts/coverage-jest/lcov-report/CustomProperties/Filter/index.html +96 -96
  98. package/src/artifacts/coverage-jest/lcov-report/CustomProperties/Filter/index.js.html +1 -1
  99. package/src/artifacts/coverage-jest/lcov-report/CustomProperties/Filter/testResources.js.html +5 -5
  100. package/src/artifacts/coverage-jest/lcov-report/CustomProperties/Filter/useOperators.js.html +35 -35
  101. package/src/artifacts/coverage-jest/lcov-report/CustomProperties/Filter/useParseActiveFilterStrings.js.html +37 -37
  102. package/src/artifacts/coverage-jest/lcov-report/CustomProperties/Filter/useValueProps.js.html +35 -35
  103. package/src/artifacts/coverage-jest/lcov-report/CustomProperties/View/CustomPropertiesView.js.html +14 -14
  104. package/src/artifacts/coverage-jest/lcov-report/CustomProperties/View/CustomPropertiesViewCtx.js.html +43 -43
  105. package/src/artifacts/coverage-jest/lcov-report/CustomProperties/View/CustomPropertyCard.js.html +5 -5
  106. package/src/artifacts/coverage-jest/lcov-report/CustomProperties/View/index.html +31 -31
  107. package/src/artifacts/coverage-jest/lcov-report/CustomProperties/View/index.js.html +1 -1
  108. package/src/artifacts/coverage-jest/lcov-report/CustomProperties/View/testResources.js.html +1 -1
  109. package/src/artifacts/coverage-jest/lcov-report/CustomProperties/index.html +1 -1
  110. package/src/artifacts/coverage-jest/lcov-report/CustomProperties/index.js.html +1 -1
  111. package/src/artifacts/coverage-jest/lcov-report/CycleButton/CycleButton.js.html +1 -1
  112. package/src/artifacts/coverage-jest/lcov-report/CycleButton/index.html +1 -1
  113. package/src/artifacts/coverage-jest/lcov-report/CycleButton/index.js.html +1 -1
  114. package/src/artifacts/coverage-jest/lcov-report/EditableRefdataCategoryList/EditableRefdataCategoryList.js.html +96 -9
  115. package/src/artifacts/coverage-jest/lcov-report/EditableRefdataCategoryList/index.html +9 -9
  116. package/src/artifacts/coverage-jest/lcov-report/EditableRefdataCategoryList/index.js.html +1 -1
  117. package/src/artifacts/coverage-jest/lcov-report/EditableRefdataList/EditableRefdataList.js.html +152 -29
  118. package/src/artifacts/coverage-jest/lcov-report/EditableRefdataList/index.html +9 -9
  119. package/src/artifacts/coverage-jest/lcov-report/EditableRefdataList/index.js.html +1 -1
  120. package/src/artifacts/coverage-jest/lcov-report/EditableSettingsList/EditableSettingsList.js.html +13 -4
  121. package/src/artifacts/coverage-jest/lcov-report/EditableSettingsList/EditableSettingsListFieldArray.js.html +29 -20
  122. package/src/artifacts/coverage-jest/lcov-report/EditableSettingsList/SettingField/EditSettingValue.js.html +37 -37
  123. package/src/artifacts/coverage-jest/lcov-report/EditableSettingsList/SettingField/RenderSettingValue.js.html +62 -62
  124. package/src/artifacts/coverage-jest/lcov-report/EditableSettingsList/SettingField/SettingField.js.html +85 -70
  125. package/src/artifacts/coverage-jest/lcov-report/EditableSettingsList/SettingField/index.html +43 -43
  126. package/src/artifacts/coverage-jest/lcov-report/EditableSettingsList/SettingField/index.js.html +1 -1
  127. package/src/artifacts/coverage-jest/lcov-report/EditableSettingsList/index.html +21 -21
  128. package/src/artifacts/coverage-jest/lcov-report/EditableSettingsList/index.js.html +1 -1
  129. package/src/artifacts/coverage-jest/lcov-report/FormModal/FormModal.js.html +30 -30
  130. package/src/artifacts/coverage-jest/lcov-report/FormModal/index.html +21 -21
  131. package/src/artifacts/coverage-jest/lcov-report/FormModal/index.js.html +1 -1
  132. package/src/artifacts/coverage-jest/lcov-report/FormattedKintMessage/FormattedKintMessage.js.html +3 -3
  133. package/src/artifacts/coverage-jest/lcov-report/FormattedKintMessage/index.html +1 -1
  134. package/src/artifacts/coverage-jest/lcov-report/FormattedKintMessage/index.js.html +1 -1
  135. package/src/artifacts/coverage-jest/lcov-report/IconSelect/IconSelect.js.html +28 -22
  136. package/src/artifacts/coverage-jest/lcov-report/IconSelect/index.html +1 -1
  137. package/src/artifacts/coverage-jest/lcov-report/IconSelect/index.js.html +1 -1
  138. package/src/artifacts/coverage-jest/lcov-report/NoResultsMessage/NoResultsMessage.js.html +1 -1
  139. package/src/artifacts/coverage-jest/lcov-report/NoResultsMessage/index.html +1 -1
  140. package/src/artifacts/coverage-jest/lcov-report/NoResultsMessage/index.js.html +1 -1
  141. package/src/artifacts/coverage-jest/lcov-report/QueryTypedown/QueryTypedown.js.html +23 -8
  142. package/src/artifacts/coverage-jest/lcov-report/QueryTypedown/index.html +7 -7
  143. package/src/artifacts/coverage-jest/lcov-report/QueryTypedown/index.js.html +1 -1
  144. package/src/artifacts/coverage-jest/lcov-report/RefdataButtons/RefdataButtons.js.html +52 -52
  145. package/src/artifacts/coverage-jest/lcov-report/RefdataButtons/index.html +21 -21
  146. package/src/artifacts/coverage-jest/lcov-report/RefdataButtons/index.js.html +1 -1
  147. package/src/artifacts/coverage-jest/lcov-report/ResponsiveButtonGroup/ResponsiveButtonGroup.js.html +57 -12
  148. package/src/artifacts/coverage-jest/lcov-report/ResponsiveButtonGroup/index.html +13 -13
  149. package/src/artifacts/coverage-jest/lcov-report/ResponsiveButtonGroup/index.js.html +1 -1
  150. package/src/artifacts/coverage-jest/lcov-report/ResponsiveButtonGroup/useResponsiveButtonGroupSizing.js.html +58 -10
  151. package/src/artifacts/coverage-jest/lcov-report/RichSelect/RichSelect.js.html +5 -2
  152. package/src/artifacts/coverage-jest/lcov-report/RichSelect/index.html +1 -1
  153. package/src/artifacts/coverage-jest/lcov-report/RichSelect/index.js.html +1 -1
  154. package/src/artifacts/coverage-jest/lcov-report/RichSelect/useSelectedOption.js.html +1 -1
  155. package/src/artifacts/coverage-jest/lcov-report/SASQLookupComponent/SASQLookupComponent.js.html +103 -25
  156. package/src/artifacts/coverage-jest/lcov-report/SASQLookupComponent/TableBody/TableBody.js.html +1 -1
  157. package/src/artifacts/coverage-jest/lcov-report/SASQLookupComponent/TableBody/index.html +1 -1
  158. package/src/artifacts/coverage-jest/lcov-report/SASQLookupComponent/TableBody/index.js.html +1 -1
  159. package/src/artifacts/coverage-jest/lcov-report/SASQLookupComponent/index.html +9 -9
  160. package/src/artifacts/coverage-jest/lcov-report/SASQLookupComponent/index.js.html +1 -1
  161. package/src/artifacts/coverage-jest/lcov-report/SASQRoute/SASQRoute.js.html +1 -1
  162. package/src/artifacts/coverage-jest/lcov-report/SASQRoute/index.html +1 -1
  163. package/src/artifacts/coverage-jest/lcov-report/SASQRoute/index.js.html +1 -1
  164. package/src/artifacts/coverage-jest/lcov-report/SASQViewComponent/SASQViewComponent.js.html +1 -1
  165. package/src/artifacts/coverage-jest/lcov-report/SASQViewComponent/index.html +1 -1
  166. package/src/artifacts/coverage-jest/lcov-report/SASQViewComponent/index.js.html +1 -1
  167. package/src/artifacts/coverage-jest/lcov-report/SearchField/SearchField.js.html +1 -1
  168. package/src/artifacts/coverage-jest/lcov-report/SearchField/index.html +1 -1
  169. package/src/artifacts/coverage-jest/lcov-report/SearchField/index.js.html +1 -1
  170. package/src/artifacts/coverage-jest/lcov-report/SettingPage/SettingPage.js.html +16 -4
  171. package/src/artifacts/coverage-jest/lcov-report/SettingPage/SettingPagePane.js.html +1 -1
  172. package/src/artifacts/coverage-jest/lcov-report/SettingPage/index.html +3 -3
  173. package/src/artifacts/coverage-jest/lcov-report/SettingPage/index.js.html +1 -1
  174. package/src/artifacts/coverage-jest/lcov-report/Typedown/Typedown.js.html +20 -8
  175. package/src/artifacts/coverage-jest/lcov-report/Typedown/index.html +3 -3
  176. package/src/artifacts/coverage-jest/lcov-report/Typedown/index.js.html +1 -1
  177. package/src/artifacts/coverage-jest/lcov-report/constants/customProperties.js.html +12 -12
  178. package/src/artifacts/coverage-jest/lcov-report/constants/eventCodes.js.html +1 -1
  179. package/src/artifacts/coverage-jest/lcov-report/constants/index.html +1 -1
  180. package/src/artifacts/coverage-jest/lcov-report/contexts/SettingsContext.js.html +2 -2
  181. package/src/artifacts/coverage-jest/lcov-report/contexts/index.html +1 -1
  182. package/src/artifacts/coverage-jest/lcov-report/contexts/index.js.html +1 -1
  183. package/src/artifacts/coverage-jest/lcov-report/hooks/index.html +34 -34
  184. package/src/artifacts/coverage-jest/lcov-report/hooks/index.js.html +2 -5
  185. package/src/artifacts/coverage-jest/lcov-report/hooks/settingsHooks/index.html +1 -1
  186. package/src/artifacts/coverage-jest/lcov-report/hooks/settingsHooks/index.js.html +1 -1
  187. package/src/artifacts/coverage-jest/lcov-report/hooks/settingsHooks/useAppSettings.js.html +1 -1
  188. package/src/artifacts/coverage-jest/lcov-report/hooks/settingsHooks/useSettingSection.js.html +1 -1
  189. package/src/artifacts/coverage-jest/lcov-report/hooks/settingsHooks/useSettings.js.html +1 -1
  190. package/src/artifacts/coverage-jest/lcov-report/hooks/typedownHooks/index.html +1 -1
  191. package/src/artifacts/coverage-jest/lcov-report/hooks/typedownHooks/index.js.html +1 -1
  192. package/src/artifacts/coverage-jest/lcov-report/hooks/typedownHooks/useTypedown.js.html +1 -1
  193. package/src/artifacts/coverage-jest/lcov-report/hooks/typedownHooks/useTypedownData.js.html +1 -1
  194. package/src/artifacts/coverage-jest/lcov-report/hooks/typedownHooks/useTypedownToggle.js.html +1 -1
  195. package/src/artifacts/coverage-jest/lcov-report/hooks/useActiveElement.js.html +1 -1
  196. package/src/artifacts/coverage-jest/lcov-report/hooks/useAvailableCustomProperties.js.html +205 -0
  197. package/src/artifacts/coverage-jest/lcov-report/hooks/useCustomProperties.js.html +1 -1
  198. package/src/artifacts/coverage-jest/lcov-report/hooks/useHelperApp.js.html +30 -18
  199. package/src/artifacts/coverage-jest/lcov-report/hooks/useIntlKey.js.html +24 -24
  200. package/src/artifacts/coverage-jest/lcov-report/hooks/useIntlKeyStore.js.html +2 -2
  201. package/src/artifacts/coverage-jest/lcov-report/hooks/useInvalidateRefdata.js.html +1 -1
  202. package/src/artifacts/coverage-jest/lcov-report/hooks/useKintIntl.js.html +38 -38
  203. package/src/artifacts/coverage-jest/lcov-report/hooks/useKiwtFieldArray.js.html +1 -1
  204. package/src/artifacts/coverage-jest/lcov-report/hooks/useKiwtSASQuery.js.html +1 -1
  205. package/src/artifacts/coverage-jest/lcov-report/hooks/useLocalStorageState.js.html +1 -1
  206. package/src/artifacts/coverage-jest/lcov-report/hooks/useMutateCustomProperties.js.html +1 -1
  207. package/src/artifacts/coverage-jest/lcov-report/hooks/useMutateRefdataCategory.js.html +1 -1
  208. package/src/artifacts/coverage-jest/lcov-report/hooks/useMutateRefdataValue.js.html +1 -1
  209. package/src/artifacts/coverage-jest/lcov-report/hooks/useQIndex.js.html +1 -1
  210. package/src/artifacts/coverage-jest/lcov-report/hooks/useRefdata.js.html +1 -1
  211. package/src/artifacts/coverage-jest/lcov-report/hooks/useSASQQueryMeta.js.html +1 -1
  212. package/src/artifacts/coverage-jest/lcov-report/hooks/useTemplates.js.html +1 -1
  213. package/src/artifacts/coverage-jest/lcov-report/index.html +166 -151
  214. package/src/artifacts/coverage-jest/lcov-report/settingsHooks/index.html +161 -0
  215. package/src/artifacts/coverage-jest/lcov-report/settingsHooks/index.js.html +94 -0
  216. package/src/artifacts/coverage-jest/lcov-report/settingsHooks/useAppSettings.js.html +292 -0
  217. package/src/artifacts/coverage-jest/lcov-report/settingsHooks/useSettingSection.js.html +211 -0
  218. package/src/artifacts/coverage-jest/lcov-report/settingsHooks/useSettings.js.html +466 -0
  219. package/src/artifacts/coverage-jest/lcov-report/utils/buildUrl.js.html +1 -1
  220. package/src/artifacts/coverage-jest/lcov-report/utils/generateKiwtQuery.js.html +9 -9
  221. package/src/artifacts/coverage-jest/lcov-report/utils/generateKiwtQueryParams.js.html +196 -46
  222. package/src/artifacts/coverage-jest/lcov-report/utils/groupCustomPropertiesByCtx.js.html +22 -22
  223. package/src/artifacts/coverage-jest/lcov-report/utils/highlightString.js.html +3 -3
  224. package/src/artifacts/coverage-jest/lcov-report/utils/index.html +66 -66
  225. package/src/artifacts/coverage-jest/lcov-report/utils/index.js.html +4 -31
  226. package/src/artifacts/coverage-jest/lcov-report/utils/matchString.js.html +2 -2
  227. package/src/artifacts/coverage-jest/lcov-report/utils/parseErrorResponse.js.html +11 -8
  228. package/src/artifacts/coverage-jest/lcov-report/utils/parseKiwtQueryGroups.js.html +361 -0
  229. package/src/artifacts/coverage-jest/lcov-report/utils/refdataOptions.js.html +1 -1
  230. package/src/artifacts/coverage-jest/lcov-report/utils/refdataQueryKey.js.html +2 -2
  231. package/src/artifacts/coverage-jest/lcov-report/utils/renderHelpText.js.html +166 -0
  232. package/src/artifacts/coverage-jest/lcov-report/utils/selectorSafe.js.html +45 -3
  233. package/src/artifacts/coverage-jest/lcov-report/utils/sortByLabel.js.html +2 -2
  234. package/src/artifacts/coverage-jest/lcov-report/utils/toCamelCase.js.html +16 -16
  235. package/src/artifacts/coverage-jest/lcov-report/utils/typedownQueryKey.js.html +2 -2
  236. package/src/artifacts/coverage-jest/lcov-report/utils/validators.js.html +1 -1
  237. package/src/artifacts/coverage-jest/lcov-report/validators/index.html +131 -0
  238. package/src/artifacts/coverage-jest/lcov-report/validators/index.js.html +88 -0
  239. package/src/artifacts/coverage-jest/lcov-report/validators/validators.js.html +370 -0
  240. package/src/artifacts/coverage-jest/lcov.info +2164 -1919
  241. package/src/lib/CustomProperties/View/CustomPropertyCard.js +3 -3
  242. package/src/lib/utils/parseErrorResponse.js +3 -2
  243. package/yarn-error.log +0 -147
@@ -23,30 +23,30 @@
23
23
  <div class='clearfix'>
24
24
 
25
25
  <div class='fl pad1y space-right2'>
26
- <span class="strong">83.33% </span>
26
+ <span class="strong">7.54% </span>
27
27
  <span class="quiet">Statements</span>
28
- <span class='fraction'>45/54</span>
28
+ <span class='fraction'>4/53</span>
29
29
  </div>
30
30
 
31
31
 
32
32
  <div class='fl pad1y space-right2'>
33
- <span class="strong">68.75% </span>
33
+ <span class="strong">0% </span>
34
34
  <span class="quiet">Branches</span>
35
- <span class='fraction'>22/32</span>
35
+ <span class='fraction'>0/32</span>
36
36
  </div>
37
37
 
38
38
 
39
39
  <div class='fl pad1y space-right2'>
40
- <span class="strong">88.88% </span>
40
+ <span class="strong">0% </span>
41
41
  <span class="quiet">Functions</span>
42
- <span class='fraction'>16/18</span>
42
+ <span class='fraction'>0/18</span>
43
43
  </div>
44
44
 
45
45
 
46
46
  <div class='fl pad1y space-right2'>
47
- <span class="strong">84.31% </span>
47
+ <span class="strong">8% </span>
48
48
  <span class="quiet">Lines</span>
49
- <span class='fraction'>43/51</span>
49
+ <span class='fraction'>4/50</span>
50
50
  </div>
51
51
 
52
52
 
@@ -61,7 +61,7 @@
61
61
  </div>
62
62
  </template>
63
63
  </div>
64
- <div class='status-line high'></div>
64
+ <div class='status-line low'></div>
65
65
  <pre><table class="coverage">
66
66
  <tr><td class="line-count quiet"><a name='L1'></a><a href='#L1'>1</a>
67
67
  <a name='L2'></a><a href='#L2'>2</a>
@@ -310,8 +310,7 @@
310
310
  <a name='L245'></a><a href='#L245'>245</a>
311
311
  <a name='L246'></a><a href='#L246'>246</a>
312
312
  <a name='L247'></a><a href='#L247'>247</a>
313
- <a name='L248'></a><a href='#L248'>248</a>
314
- <a name='L249'></a><a href='#L249'>249</a></td><td class="line-coverage quiet"><span class="cline-any cline-neutral">&nbsp;</span>
313
+ <a name='L248'></a><a href='#L248'>248</a></td><td class="line-coverage quiet"><span class="cline-any cline-neutral">&nbsp;</span>
315
314
  <span class="cline-any cline-neutral">&nbsp;</span>
316
315
  <span class="cline-any cline-neutral">&nbsp;</span>
317
316
  <span class="cline-any cline-neutral">&nbsp;</span>
@@ -333,12 +332,12 @@
333
332
  <span class="cline-any cline-neutral">&nbsp;</span>
334
333
  <span class="cline-any cline-neutral">&nbsp;</span>
335
334
  <span class="cline-any cline-neutral">&nbsp;</span>
336
- <span class="cline-any cline-yes">11x</span>
335
+ <span class="cline-any cline-no">&nbsp;</span>
337
336
  <span class="cline-any cline-neutral">&nbsp;</span>
338
- <span class="cline-any cline-yes">11x</span>
339
- <span class="cline-any cline-yes">11x</span>
337
+ <span class="cline-any cline-no">&nbsp;</span>
338
+ <span class="cline-any cline-no">&nbsp;</span>
340
339
  <span class="cline-any cline-neutral">&nbsp;</span>
341
- <span class="cline-any cline-yes">11x</span>
340
+ <span class="cline-any cline-no">&nbsp;</span>
342
341
  <span class="cline-any cline-neutral">&nbsp;</span>
343
342
  <span class="cline-any cline-neutral">&nbsp;</span>
344
343
  <span class="cline-any cline-neutral">&nbsp;</span>
@@ -349,15 +348,14 @@
349
348
  <span class="cline-any cline-neutral">&nbsp;</span>
350
349
  <span class="cline-any cline-neutral">&nbsp;</span>
351
350
  <span class="cline-any cline-neutral">&nbsp;</span>
352
- <span class="cline-any cline-yes">8x</span>
353
- <span class="cline-any cline-yes">8x</span>
354
- <span class="cline-any cline-yes">96x</span>
351
+ <span class="cline-any cline-no">&nbsp;</span>
352
+ <span class="cline-any cline-no">&nbsp;</span>
353
+ <span class="cline-any cline-no">&nbsp;</span>
355
354
  <span class="cline-any cline-neutral">&nbsp;</span>
356
355
  <span class="cline-any cline-neutral">&nbsp;</span>
357
- <span class="cline-any cline-yes">8x</span>
358
356
  <span class="cline-any cline-neutral">&nbsp;</span>
359
357
  <span class="cline-any cline-neutral">&nbsp;</span>
360
- <span class="cline-any cline-yes">11x</span>
358
+ <span class="cline-any cline-no">&nbsp;</span>
361
359
  <span class="cline-any cline-no">&nbsp;</span>
362
360
  <span class="cline-any cline-neutral">&nbsp;</span>
363
361
  <span class="cline-any cline-no">&nbsp;</span>
@@ -374,16 +372,16 @@
374
372
  <span class="cline-any cline-neutral">&nbsp;</span>
375
373
  <span class="cline-any cline-neutral">&nbsp;</span>
376
374
  <span class="cline-any cline-neutral">&nbsp;</span>
377
- <span class="cline-any cline-yes">11x</span>
375
+ <span class="cline-any cline-no">&nbsp;</span>
378
376
  <span class="cline-any cline-neutral">&nbsp;</span>
379
- <span class="cline-any cline-yes">22x</span>
380
- <span class="cline-any cline-yes">22x</span>
381
- <span class="cline-any cline-yes">132x</span>
382
- <span class="cline-any cline-yes">132x</span>
377
+ <span class="cline-any cline-no">&nbsp;</span>
378
+ <span class="cline-any cline-no">&nbsp;</span>
379
+ <span class="cline-any cline-no">&nbsp;</span>
380
+ <span class="cline-any cline-no">&nbsp;</span>
383
381
  <span class="cline-any cline-neutral">&nbsp;</span>
384
- <span class="cline-any cline-yes">66x</span>
382
+ <span class="cline-any cline-no">&nbsp;</span>
385
383
  <span class="cline-any cline-neutral">&nbsp;</span>
386
- <span class="cline-any cline-yes">66x</span>
384
+ <span class="cline-any cline-no">&nbsp;</span>
387
385
  <span class="cline-any cline-neutral">&nbsp;</span>
388
386
  <span class="cline-any cline-neutral">&nbsp;</span>
389
387
  <span class="cline-any cline-neutral">&nbsp;</span>
@@ -404,13 +402,13 @@
404
402
  <span class="cline-any cline-neutral">&nbsp;</span>
405
403
  <span class="cline-any cline-neutral">&nbsp;</span>
406
404
  <span class="cline-any cline-neutral">&nbsp;</span>
407
- <span class="cline-any cline-yes">132x</span>
405
+ <span class="cline-any cline-no">&nbsp;</span>
408
406
  <span class="cline-any cline-neutral">&nbsp;</span>
409
407
  <span class="cline-any cline-neutral">&nbsp;</span>
410
- <span class="cline-any cline-yes">11x</span>
408
+ <span class="cline-any cline-no">&nbsp;</span>
411
409
  <span class="cline-any cline-neutral">&nbsp;</span>
412
410
  <span class="cline-any cline-neutral">&nbsp;</span>
413
- <span class="cline-any cline-yes">11x</span>
411
+ <span class="cline-any cline-no">&nbsp;</span>
414
412
  <span class="cline-any cline-neutral">&nbsp;</span>
415
413
  <span class="cline-any cline-neutral">&nbsp;</span>
416
414
  <span class="cline-any cline-neutral">&nbsp;</span>
@@ -424,7 +422,7 @@
424
422
  <span class="cline-any cline-neutral">&nbsp;</span>
425
423
  <span class="cline-any cline-neutral">&nbsp;</span>
426
424
  <span class="cline-any cline-neutral">&nbsp;</span>
427
- <span class="cline-any cline-yes">132x</span>
425
+ <span class="cline-any cline-no">&nbsp;</span>
428
426
  <span class="cline-any cline-neutral">&nbsp;</span>
429
427
  <span class="cline-any cline-neutral">&nbsp;</span>
430
428
  <span class="cline-any cline-neutral">&nbsp;</span>
@@ -438,7 +436,7 @@
438
436
  <span class="cline-any cline-neutral">&nbsp;</span>
439
437
  <span class="cline-any cline-neutral">&nbsp;</span>
440
438
  <span class="cline-any cline-neutral">&nbsp;</span>
441
- <span class="cline-any cline-yes">132x</span>
439
+ <span class="cline-any cline-no">&nbsp;</span>
442
440
  <span class="cline-any cline-neutral">&nbsp;</span>
443
441
  <span class="cline-any cline-neutral">&nbsp;</span>
444
442
  <span class="cline-any cline-neutral">&nbsp;</span>
@@ -464,14 +462,14 @@
464
462
  <span class="cline-any cline-neutral">&nbsp;</span>
465
463
  <span class="cline-any cline-neutral">&nbsp;</span>
466
464
  <span class="cline-any cline-neutral">&nbsp;</span>
467
- <span class="cline-any cline-yes">8x</span>
468
- <span class="cline-any cline-yes">8x</span>
465
+ <span class="cline-any cline-no">&nbsp;</span>
466
+ <span class="cline-any cline-no">&nbsp;</span>
469
467
  <span class="cline-any cline-neutral">&nbsp;</span>
470
468
  <span class="cline-any cline-neutral">&nbsp;</span>
471
- <span class="cline-any cline-yes">8x</span>
472
- <span class="cline-any cline-yes">96x</span>
473
- <span class="cline-any cline-yes">96x</span>
474
- <span class="cline-any cline-yes">32x</span>
469
+ <span class="cline-any cline-no">&nbsp;</span>
470
+ <span class="cline-any cline-no">&nbsp;</span>
471
+ <span class="cline-any cline-no">&nbsp;</span>
472
+ <span class="cline-any cline-no">&nbsp;</span>
475
473
  <span class="cline-any cline-neutral">&nbsp;</span>
476
474
  <span class="cline-any cline-neutral">&nbsp;</span>
477
475
  <span class="cline-any cline-neutral">&nbsp;</span>
@@ -483,7 +481,7 @@
483
481
  <span class="cline-any cline-neutral">&nbsp;</span>
484
482
  <span class="cline-any cline-neutral">&nbsp;</span>
485
483
  <span class="cline-any cline-neutral">&nbsp;</span>
486
- <span class="cline-any cline-yes">96x</span>
484
+ <span class="cline-any cline-no">&nbsp;</span>
487
485
  <span class="cline-any cline-neutral">&nbsp;</span>
488
486
  <span class="cline-any cline-neutral">&nbsp;</span>
489
487
  <span class="cline-any cline-neutral">&nbsp;</span>
@@ -494,32 +492,32 @@
494
492
  <span class="cline-any cline-neutral">&nbsp;</span>
495
493
  <span class="cline-any cline-neutral">&nbsp;</span>
496
494
  <span class="cline-any cline-neutral">&nbsp;</span>
497
- <span class="cline-any cline-yes">8x</span>
498
- <span class="cline-any cline-yes">8x</span>
499
- <span class="cline-any cline-yes">8x</span>
500
- <span class="cline-any cline-yes">8x</span>
501
- <span class="cline-any cline-yes">96x</span>
495
+ <span class="cline-any cline-no">&nbsp;</span>
496
+ <span class="cline-any cline-no">&nbsp;</span>
497
+ <span class="cline-any cline-no">&nbsp;</span>
498
+ <span class="cline-any cline-no">&nbsp;</span>
499
+ <span class="cline-any cline-no">&nbsp;</span>
502
500
  <span class="cline-any cline-neutral">&nbsp;</span>
503
501
  <span class="cline-any cline-neutral">&nbsp;</span>
504
- <span class="cline-any cline-yes">88x</span>
502
+ <span class="cline-any cline-no">&nbsp;</span>
505
503
  <span class="cline-any cline-neutral">&nbsp;</span>
506
504
  <span class="cline-any cline-neutral">&nbsp;</span>
507
505
  <span class="cline-any cline-neutral">&nbsp;</span>
508
506
  <span class="cline-any cline-neutral">&nbsp;</span>
509
- <span class="cline-any cline-yes">38x</span>
510
- <span class="cline-any cline-yes">3x</span>
507
+ <span class="cline-any cline-no">&nbsp;</span>
508
+ <span class="cline-any cline-no">&nbsp;</span>
511
509
  <span class="cline-any cline-neutral">&nbsp;</span>
512
510
  <span class="cline-any cline-neutral">&nbsp;</span>
513
511
  <span class="cline-any cline-neutral">&nbsp;</span>
514
- <span class="cline-any cline-yes">5x</span>
512
+ <span class="cline-any cline-no">&nbsp;</span>
515
513
  <span class="cline-any cline-neutral">&nbsp;</span>
516
514
  <span class="cline-any cline-neutral">&nbsp;</span>
517
- <span class="cline-any cline-yes">8x</span>
515
+ <span class="cline-any cline-no">&nbsp;</span>
518
516
  <span class="cline-any cline-neutral">&nbsp;</span>
519
517
  <span class="cline-any cline-neutral">&nbsp;</span>
520
518
  <span class="cline-any cline-neutral">&nbsp;</span>
521
519
  <span class="cline-any cline-neutral">&nbsp;</span>
522
- <span class="cline-any cline-yes">8x</span>
520
+ <span class="cline-any cline-no">&nbsp;</span>
523
521
  <span class="cline-any cline-neutral">&nbsp;</span>
524
522
  <span class="cline-any cline-neutral">&nbsp;</span>
525
523
  <span class="cline-any cline-neutral">&nbsp;</span>
@@ -567,7 +565,7 @@ import { Button, Headline, KeyValue } from '@folio/stripes/components';
567
565
  import { useKintIntl } from '../../hooks';
568
566
  import CustomPropertyFormCard from './CustomPropertyFormCard';
569
567
  &nbsp;
570
- const CustomPropertiesList = ({
568
+ const CustomPropertiesList = <span class="fstat-no" title="function not covered" >({</span>
571
569
  availableCustomProperties = <span class="branch-0 cbranch-no" title="branch not covered" >[],</span>
572
570
  input: {
573
571
  name,
@@ -581,12 +579,12 @@ const CustomPropertiesList = ({
581
579
  pristine
582
580
  },
583
581
  }) =&gt; {
584
- const kintIntl = useKintIntl(passedIntlKey, passedIntlNS);
582
+ const kintIntl = <span class="cstat-no" title="statement not covered" >useKintIntl(passedIntlKey, passedIntlNS);</span>
585
583
  &nbsp;
586
- const [customProperties, setCustomProperties] = useState([]); // This is the list of customProperties we're currently displaying for edit.
587
- const [dirtying, setDirtying] = useState(false);
584
+ const [customProperties, setCustomProperties] = <span class="cstat-no" title="statement not covered" >useState([]);</span> // This is the list of customProperties we're currently displaying for edit.
585
+ const [dirtying, setDirtying] = <span class="cstat-no" title="statement not covered" >useState(false);</span>
588
586
  &nbsp;
589
- useEffect(() =&gt; {
587
+ <span class="cstat-no" title="statement not covered" > useEffect(<span class="fstat-no" title="function not covered" >()</span> =&gt; {</span>
590
588
  // When the user loads this form, we want to init the list of customProperties
591
589
  // we're displaying (state.customProperties) with the list of customProperties that have been set
592
590
  // either via defaults or previously-saved data. Since that data may come in
@@ -597,15 +595,14 @@ const CustomPropertiesList = ({
597
595
  // the component when we add/remove rows. That happens _before_ `onChange` is called,
598
596
  // so internally we use `state.dirtying` to show that we just initiated an action
599
597
  // that will result in a dirty component.
600
- <span class="missing-if-branch" title="else path not taken" >E</span>if (pristine &amp;&amp; !dirtying) {
601
- setCustomProperties(availableCustomProperties.filter(
602
- customProperty =&gt; value[customProperty.value] !== undefined
598
+ <span class="cstat-no" title="statement not covered" > if (pristine &amp;&amp; !dirtying) {</span>
599
+ <span class="cstat-no" title="statement not covered" > setCustomProperties(availableCustomProperties.filter(</span>
600
+ <span class="fstat-no" title="function not covered" > cu</span>stomProperty =&gt; <span class="cstat-no" title="statement not covered" >value[customProperty.value] !== undefined</span>
603
601
  ));
604
602
  }
605
- return null;
606
603
  }, [availableCustomProperties, dirtying, pristine, value]);
607
604
  &nbsp;
608
- const handleDeleteCustomProperty = <span class="fstat-no" title="function not covered" >(c</span>ustomProperty, i) =&gt; {
605
+ const handleDeleteCustomProperty = <span class="cstat-no" title="statement not covered" ><span class="fstat-no" title="function not covered" >(c</span>ustomProperty, i) =&gt; {</span>
609
606
  const currentValue = <span class="cstat-no" title="statement not covered" >value[customProperty.value]?.[0] ?? {};</span>
610
607
  &nbsp;
611
608
  const newCustomProperties = <span class="cstat-no" title="statement not covered" >[...customProperties];</span>
@@ -622,16 +619,16 @@ const CustomPropertiesList = ({
622
619
  });
623
620
  };
624
621
  &nbsp;
625
- const renderCustomProperties = (customPropertyType) =&gt; {
622
+ const renderCustomProperties = <span class="cstat-no" title="statement not covered" ><span class="fstat-no" title="function not covered" >(c</span>ustomPropertyType) =&gt; {</span>
626
623
  // This is necessary to track individually since "index" will span primary/optional for a given set
627
- let internalPropertyCounter = 0;
628
- return customProperties.map((customProperty, index) =&gt; {
629
- <span class="missing-if-branch" title="if path not taken" >I</span>if (customPropertyType === 'primary' &amp;&amp; !customProperty.primary) <span class="cstat-no" title="statement not covered" >return undefined;</span>
630
- if (customPropertyType === 'optional' &amp;&amp; customProperty.primary) return undefined;
624
+ let internalPropertyCounter = <span class="cstat-no" title="statement not covered" >0;</span>
625
+ <span class="cstat-no" title="statement not covered" > return customProperties.map(<span class="fstat-no" title="function not covered" >(c</span>ustomProperty, index) =&gt; {</span>
626
+ <span class="cstat-no" title="statement not covered" > if (customPropertyType === 'primary' &amp;&amp; !customProperty.primary) <span class="cstat-no" title="statement not covered" >return undefined;</span></span>
627
+ <span class="cstat-no" title="statement not covered" > if (customPropertyType === 'optional' &amp;&amp; customProperty.primary) <span class="cstat-no" title="statement not covered" >return undefined;</span></span>
631
628
  &nbsp;
632
- internalPropertyCounter += 1;
629
+ <span class="cstat-no" title="statement not covered" > internalPropertyCounter += 1;</span>
633
630
  &nbsp;
634
- return (
631
+ <span class="cstat-no" title="statement not covered" > return (</span>
635
632
  &lt;CustomPropertyFormCard
636
633
  key={`customPropertyField-${customProperty.value}-${index}`}
637
634
  {...{
@@ -652,13 +649,13 @@ const CustomPropertiesList = ({
652
649
  }}
653
650
  /&gt;
654
651
  );
655
- }).filter(cp =&gt; cp !== undefined);
652
+ }).filter(<span class="fstat-no" title="function not covered" >cp</span> =&gt; <span class="cstat-no" title="statement not covered" >cp !== undefined)</span>;
656
653
  };
657
654
  &nbsp;
658
- return (
655
+ <span class="cstat-no" title="statement not covered" > return (</span>
659
656
  &lt;&gt;
660
657
  {
661
- availableCustomProperties.some((customProperty = <span class="branch-0 cbranch-no" title="branch not covered" >{})</span> =&gt; customProperty.primary) &amp;&amp;
658
+ availableCustomProperties.some(<span class="fstat-no" title="function not covered" >(c</span>ustomProperty = <span class="branch-0 cbranch-no" title="branch not covered" >{})</span> =&gt; <span class="cstat-no" title="statement not covered" >customProperty.primary)</span> &amp;&amp;
662
659
  &lt;KeyValue
663
660
  label={
664
661
  &lt;Headline margin="x-small" size="large" tag="h4"&gt;
@@ -672,7 +669,7 @@ const CustomPropertiesList = ({
672
669
  /&gt;
673
670
  }
674
671
  {
675
- availableCustomProperties.some((customProperty = <span class="branch-0 cbranch-no" title="branch not covered" >{})</span> =&gt; !customProperty.primary) &amp;&amp;
672
+ availableCustomProperties.some(<span class="fstat-no" title="function not covered" >(c</span>ustomProperty = <span class="branch-0 cbranch-no" title="branch not covered" >{})</span> =&gt; <span class="cstat-no" title="statement not covered" >!customProperty.primary)</span> &amp;&amp;
676
673
  &lt;KeyValue
677
674
  label={
678
675
  &lt;Headline margin="x-small" size="large" tag="h4"&gt;
@@ -686,7 +683,7 @@ const CustomPropertiesList = ({
686
683
  /&gt;
687
684
  }
688
685
  {
689
- availableCustomProperties.some((customProperty = <span class="branch-0 cbranch-no" title="branch not covered" >{})</span> =&gt; !customProperty.primary) &amp;&amp;
686
+ availableCustomProperties.some(<span class="fstat-no" title="function not covered" >(c</span>ustomProperty = <span class="branch-0 cbranch-no" title="branch not covered" >{})</span> =&gt; <span class="cstat-no" title="statement not covered" >!customProperty.primary)</span> &amp;&amp;
690
687
  &lt;Button
691
688
  id="add-customproperty-btn"
692
689
  onClick={<span class="fstat-no" title="function not covered" >()</span> =&gt; {
@@ -704,22 +701,22 @@ const CustomPropertiesList = ({
704
701
  );
705
702
  };
706
703
  &nbsp;
707
- const CustomPropertiesListField = ({
704
+ const CustomPropertiesListField = <span class="fstat-no" title="function not covered" >({</span>
708
705
  ctx,
709
706
  customProperties,
710
707
  intlKey: passedIntlKey,
711
708
  intlNS: passedIntlNS,
712
- labelOverrides = {},
709
+ labelOverrides = <span class="branch-0 cbranch-no" title="branch not covered" >{},</span>
713
710
  ...fieldProps
714
711
  }) =&gt; {
715
- const fieldRef = useRef();
716
- const kintIntl = useKintIntl(passedIntlKey, passedIntlNS);
712
+ const fieldRef = <span class="cstat-no" title="statement not covered" >useRef();</span>
713
+ const kintIntl = <span class="cstat-no" title="statement not covered" >useKintIntl(passedIntlKey, passedIntlNS);</span>
717
714
  &nbsp;
718
715
  // Map customProperties to bring together the options and the definition values
719
- const availableCustomProperties = customProperties?.map(customProperty =&gt; {
720
- let options = customProperty?.category?.values;
721
- if (options) {
722
- options = [
716
+ const availableCustomProperties = <span class="cstat-no" title="statement not covered" >customProperties?.map(<span class="fstat-no" title="function not covered" >cu</span>stomProperty =&gt; {</span>
717
+ let options = <span class="cstat-no" title="statement not covered" >customProperty?.category?.values;</span>
718
+ <span class="cstat-no" title="statement not covered" > if (options) {</span>
719
+ <span class="cstat-no" title="statement not covered" > options = [</span>
723
720
  {
724
721
  label: kintIntl.formatKintMessage({
725
722
  id: 'notSet',
@@ -731,7 +728,7 @@ const CustomPropertiesListField = ({
731
728
  ];
732
729
  }
733
730
  &nbsp;
734
- return {
731
+ <span class="cstat-no" title="statement not covered" > return {</span>
735
732
  description: customProperty.description,
736
733
  label: customProperty.label,
737
734
  primary: customProperty.primary,
@@ -742,32 +739,32 @@ const CustomPropertiesListField = ({
742
739
  };
743
740
  });
744
741
  &nbsp;
745
- const { initialValues } = useFormState();
746
- const getInitialValue = () =&gt; {
747
- const cps = {};
748
- (customProperties || <span class="branch-1 cbranch-no" title="branch not covered" >[])</span>
749
- .filter(cp =&gt; cp.primary)
742
+ const { initialValues } = <span class="cstat-no" title="statement not covered" >useFormState();</span>
743
+ const getInitialValue = <span class="cstat-no" title="statement not covered" ><span class="fstat-no" title="function not covered" >()</span> =&gt; {</span>
744
+ const cps = <span class="cstat-no" title="statement not covered" >{};</span>
745
+ <span class="cstat-no" title="statement not covered" > (customProperties || [])</span>
746
+ .filter(<span class="fstat-no" title="function not covered" >cp</span> =&gt; <span class="cstat-no" title="statement not covered" >cp.primary)</span>
750
747
  // Change default to be an ignored customProperty.
751
748
  // This means any changes without setting the value will be ignored
752
- .forEach(cp =&gt; { cps[cp.name] = [{ _delete: true }]; });
749
+ .forEach(<span class="fstat-no" title="function not covered" >cp</span> =&gt; { <span class="cstat-no" title="statement not covered" >cps[cp.name] = [{ _delete: true }]; </span>});
753
750
  &nbsp;
754
751
  // IMPORTANT -- All customproperty ctx sections are adding to the same "initialValue" field
755
752
  // Ensure that we don't already have initialValues for this particular set before setting them,
756
753
  // to ensure no looping behaviour
757
- if (Object.keys(cps).every(key =&gt; initialValues.customProperties?.[key] !== undefined)) {
758
- return initialValues.customProperties;
754
+ <span class="cstat-no" title="statement not covered" > if (Object.keys(cps).every(<span class="fstat-no" title="function not covered" >ke</span>y =&gt; <span class="cstat-no" title="statement not covered" >initialValues.customProperties?.[key] !== undefined)</span>) {</span>
755
+ <span class="cstat-no" title="statement not covered" > return initialValues.customProperties;</span>
759
756
  }
760
757
  &nbsp;
761
758
  // Ensure that if we already had these values in initialvalues they're not overwritten
762
- return ({ ...cps, ...initialValues.customProperties });
759
+ <span class="cstat-no" title="statement not covered" > return ({ ...cps, ...initialValues.customProperties });</span>
763
760
  };
764
761
  &nbsp;
765
- return (
762
+ <span class="cstat-no" title="statement not covered" > return (</span>
766
763
  &lt;Field
767
764
  {...fieldProps}
768
765
  initialValue={getInitialValue()}
769
- render={p =&gt; {
770
- return (
766
+ render={<span class="fstat-no" title="function not covered" >p </span>=&gt; {
767
+ <span class="cstat-no" title="statement not covered" > return (</span>
771
768
  &lt;CustomPropertiesList
772
769
  ref={fieldRef}
773
770
  availableCustomProperties={availableCustomProperties}
@@ -814,7 +811,7 @@ export default CustomPropertiesListField;
814
811
  <div class='footer quiet pad2 space-top1 center small'>
815
812
  Code coverage generated by
816
813
  <a href="https://istanbul.js.org/" target="_blank" rel="noopener noreferrer">istanbul</a>
817
- at 2022-11-03T13:44:33.087Z
814
+ at 2023-03-21T17:34:57.995Z
818
815
  </div>
819
816
  <script src="../../prettify.js"></script>
820
817
  <script>