@k-int/stripes-kint-components 2.8.4 → 2.8.6

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 (229) hide show
  1. package/CHANGELOG.md +7 -0
  2. package/es/lib/ActionList/ActionList.js +3 -1
  3. package/es/lib/ActionList/ActionListFieldArray.js +4 -2
  4. package/es/lib/CustomProperties/Config/CustomPropertiesLookup.js +5 -2
  5. package/es/lib/CustomProperties/Config/CustomPropertiesLookup.test.js +4 -1
  6. package/es/lib/CustomProperties/Config/CustomPropertiesSettings.js +6 -4
  7. package/es/lib/CustomProperties/Config/CustomPropertiesSettings.test.js +5 -3
  8. package/es/lib/CustomProperties/Config/CustomPropertyForm.js +1 -1
  9. package/es/lib/CustomProperties/Config/CustomPropertyForm.test.js +1 -1
  10. package/es/lib/CustomProperties/Config/CustomPropertyView.test.js +5 -3
  11. package/es/lib/CustomProperties/Edit/CustomPropertiesEdit.test.js +4 -1
  12. package/es/lib/CustomProperties/Edit/CustomPropertiesEditCtx.test.js +4 -1
  13. package/es/lib/CustomProperties/Edit/CustomPropertiesListField.js +5 -2
  14. package/es/lib/CustomProperties/Edit/CustomPropertiesListField.test.js +5 -3
  15. package/es/lib/CustomProperties/Edit/CustomPropertyField.js +3 -1
  16. package/es/lib/CustomProperties/Edit/CustomPropertyField.test.js +4 -2
  17. package/es/lib/CustomProperties/Filter/CustomPropertiesFilter.js +5 -2
  18. package/es/lib/CustomProperties/Filter/CustomPropertiesFilter.test.js +1 -1
  19. package/es/lib/CustomProperties/Filter/CustomPropertiesFilterField.js +5 -2
  20. package/es/lib/CustomProperties/Filter/CustomPropertiesFilterFieldArray.test.js +1 -1
  21. package/es/lib/CustomProperties/Filter/CustomPropertiesFilterForm.js +4 -1
  22. package/es/lib/CustomProperties/Filter/CustomPropertiesFilterForm.test.js +5 -3
  23. package/es/lib/CustomProperties/Filter/CustomPropertiesRule.js +4 -1
  24. package/es/lib/CustomProperties/Filter/CustomPropertiesRule.test.js +1 -1
  25. package/es/lib/CustomProperties/Filter/useParseActiveFilterStrings.js +1 -1
  26. package/es/lib/CustomProperties/View/CustomPropertiesViewCtx.js +1 -1
  27. package/es/lib/CustomProperties/View/CustomPropertiesViewCtx.test.js +4 -1
  28. package/es/lib/CycleButton/CycleButton.js +5 -2
  29. package/es/lib/EditableRefdataCategoryList/EditableRefdataCategoryList.js +6 -4
  30. package/es/lib/EditableRefdataList/EditableRefdataList.js +6 -4
  31. package/es/lib/EditableSettingsList/EditableSettingsListFieldArray.js +4 -1
  32. package/es/lib/EditableSettingsList/EditableSettingsListFieldArray.test.js +1 -1
  33. package/es/lib/EditableSettingsList/SettingField/RenderSettingValue.test.js +1 -1
  34. package/es/lib/EditableSettingsList/SettingField/SettingField.js +4 -2
  35. package/es/lib/EditableSettingsList/SettingField/SettingField.test.js +1 -1
  36. package/es/lib/FormModal/FormModal.js +4 -1
  37. package/es/lib/IconSelect/IconSelect.js +4 -2
  38. package/es/lib/QueryTypedown/QueryTypedown.js +4 -2
  39. package/es/lib/RefdataButtons/RefdataButtons.js +4 -1
  40. package/es/lib/RichSelect/RichSelect.js +5 -2
  41. package/es/lib/RichSelect/useSelectedOption.js +1 -1
  42. package/es/lib/SASQLookupComponent/SASQLookupComponent.js +5 -2
  43. package/es/lib/SASQLookupComponent/TableBody/TableBody.js +4 -1
  44. package/es/lib/SASQRoute/SASQRoute.js +4 -1
  45. package/es/lib/SASQViewComponent/SASQViewComponent.js +4 -1
  46. package/es/lib/SearchField/SearchField.js +4 -1
  47. package/es/lib/Typedown/Typedown.js +1 -1
  48. package/es/lib/hooks/settingsHooks/useSettings.js +3 -1
  49. package/es/lib/hooks/typedownHooks/useTypedownData.js +1 -1
  50. package/es/lib/hooks/typedownHooks/useTypedownToggle.js +1 -1
  51. package/es/lib/hooks/useActiveElement.js +1 -1
  52. package/es/lib/hooks/useAvailableCustomProperties.js +1 -1
  53. package/es/lib/hooks/useCustomProperties.js +4 -1
  54. package/es/lib/hooks/useHelperApp.js +4 -2
  55. package/es/lib/hooks/useKiwtFieldArray.js +5 -2
  56. package/es/lib/hooks/useKiwtSASQuery.js +4 -2
  57. package/es/lib/hooks/useLocalStorageState.js +1 -1
  58. package/es/lib/hooks/useMutateCustomProperties.js +1 -1
  59. package/es/lib/hooks/useMutateRefdataCategory.js +4 -2
  60. package/es/lib/hooks/useMutateRefdataValue.js +1 -1
  61. package/es/lib/hooks/useQIndex.js +4 -2
  62. package/es/lib/utils/generateKiwtQueryParams.js +1 -1
  63. package/es/lib/utils/groupCustomPropertiesByCtx.js +4 -1
  64. package/es/lib/utils/highlightString.js +1 -1
  65. package/es/lib/utils/parseErrorResponse.js +23 -19
  66. package/junit.xml +150 -150
  67. package/package.json +1 -1
  68. package/src/artifacts/coverage-jest/lcov-report/ActionList/ActionList.js.html +23 -5
  69. package/src/artifacts/coverage-jest/lcov-report/ActionList/ActionListFieldArray.js.html +324 -48
  70. package/src/artifacts/coverage-jest/lcov-report/ActionList/index.html +7 -7
  71. package/src/artifacts/coverage-jest/lcov-report/ActionList/index.js.html +1 -1
  72. package/src/artifacts/coverage-jest/lcov-report/CustomProperties/Config/CustomPropertiesLookup.js.html +171 -39
  73. package/src/artifacts/coverage-jest/lcov-report/CustomProperties/Config/CustomPropertiesSettings.js.html +271 -52
  74. package/src/artifacts/coverage-jest/lcov-report/CustomProperties/Config/CustomPropertyForm.js.html +293 -74
  75. package/src/artifacts/coverage-jest/lcov-report/CustomProperties/Config/CustomPropertyView.js.html +126 -54
  76. package/src/artifacts/coverage-jest/lcov-report/CustomProperties/Config/index.html +41 -56
  77. package/src/artifacts/coverage-jest/lcov-report/CustomProperties/Config/index.js.html +1 -1
  78. package/src/artifacts/coverage-jest/lcov-report/CustomProperties/Edit/CustomPropertiesEdit.js.html +23 -5
  79. package/src/artifacts/coverage-jest/lcov-report/CustomProperties/Edit/CustomPropertiesEditCtx.js.html +54 -42
  80. package/src/artifacts/coverage-jest/lcov-report/CustomProperties/Edit/CustomPropertiesListField.js.html +213 -54
  81. package/src/artifacts/coverage-jest/lcov-report/CustomProperties/Edit/CustomPropertyField.js.html +260 -41
  82. package/src/artifacts/coverage-jest/lcov-report/CustomProperties/Edit/CustomPropertyFormCard.js.html +41 -68
  83. package/src/artifacts/coverage-jest/lcov-report/CustomProperties/Edit/index.html +53 -53
  84. package/src/artifacts/coverage-jest/lcov-report/CustomProperties/Edit/index.js.html +1 -1
  85. package/src/artifacts/coverage-jest/lcov-report/CustomProperties/Edit/testResources.js.html +62 -3065
  86. package/src/artifacts/coverage-jest/lcov-report/CustomProperties/Filter/CustomPropertiesFilter.js.html +45 -45
  87. package/src/artifacts/coverage-jest/lcov-report/CustomProperties/Filter/CustomPropertiesFilterField.js.html +103 -64
  88. package/src/artifacts/coverage-jest/lcov-report/CustomProperties/Filter/CustomPropertiesFilterFieldArray.js.html +54 -63
  89. package/src/artifacts/coverage-jest/lcov-report/CustomProperties/Filter/CustomPropertiesFilterForm.js.html +49 -16
  90. package/src/artifacts/coverage-jest/lcov-report/CustomProperties/Filter/CustomPropertiesRule.js.html +69 -18
  91. package/src/artifacts/coverage-jest/lcov-report/CustomProperties/Filter/index.html +81 -81
  92. package/src/artifacts/coverage-jest/lcov-report/CustomProperties/Filter/index.js.html +1 -1
  93. package/src/artifacts/coverage-jest/lcov-report/CustomProperties/Filter/testResources.js.html +33 -786
  94. package/src/artifacts/coverage-jest/lcov-report/CustomProperties/Filter/useOperators.js.html +45 -45
  95. package/src/artifacts/coverage-jest/lcov-report/CustomProperties/Filter/useParseActiveFilterStrings.js.html +6 -6
  96. package/src/artifacts/coverage-jest/lcov-report/CustomProperties/Filter/useValueProps.js.html +43 -28
  97. package/src/artifacts/coverage-jest/lcov-report/CustomProperties/View/CustomPropertiesView.js.html +20 -2
  98. package/src/artifacts/coverage-jest/lcov-report/CustomProperties/View/CustomPropertiesViewCtx.js.html +52 -46
  99. package/src/artifacts/coverage-jest/lcov-report/CustomProperties/View/CustomPropertyCard.js.html +53 -74
  100. package/src/artifacts/coverage-jest/lcov-report/CustomProperties/View/index.html +25 -25
  101. package/src/artifacts/coverage-jest/lcov-report/CustomProperties/View/index.js.html +1 -1
  102. package/src/artifacts/coverage-jest/lcov-report/CustomProperties/View/testResources.js.html +1 -1
  103. package/src/artifacts/coverage-jest/lcov-report/CustomProperties/index.html +1 -1
  104. package/src/artifacts/coverage-jest/lcov-report/CustomProperties/index.js.html +1 -1
  105. package/src/artifacts/coverage-jest/lcov-report/CycleButton/CycleButton.js.html +1 -1
  106. package/src/artifacts/coverage-jest/lcov-report/CycleButton/index.html +1 -1
  107. package/src/artifacts/coverage-jest/lcov-report/CycleButton/index.js.html +1 -1
  108. package/src/artifacts/coverage-jest/lcov-report/EditableRefdataCategoryList/EditableRefdataCategoryList.js.html +86 -32
  109. package/src/artifacts/coverage-jest/lcov-report/EditableRefdataCategoryList/index.html +3 -3
  110. package/src/artifacts/coverage-jest/lcov-report/EditableRefdataCategoryList/index.js.html +1 -1
  111. package/src/artifacts/coverage-jest/lcov-report/EditableRefdataList/EditableRefdataList.js.html +109 -37
  112. package/src/artifacts/coverage-jest/lcov-report/EditableRefdataList/index.html +3 -3
  113. package/src/artifacts/coverage-jest/lcov-report/EditableRefdataList/index.js.html +1 -1
  114. package/src/artifacts/coverage-jest/lcov-report/EditableSettingsList/EditableSettingsList.js.html +41 -14
  115. package/src/artifacts/coverage-jest/lcov-report/EditableSettingsList/EditableSettingsListFieldArray.js.html +45 -6
  116. package/src/artifacts/coverage-jest/lcov-report/EditableSettingsList/SettingField/EditSettingValue.js.html +47 -11
  117. package/src/artifacts/coverage-jest/lcov-report/EditableSettingsList/SettingField/RenderSettingValue.js.html +65 -14
  118. package/src/artifacts/coverage-jest/lcov-report/EditableSettingsList/SettingField/SettingField.js.html +154 -31
  119. package/src/artifacts/coverage-jest/lcov-report/EditableSettingsList/SettingField/index.html +26 -26
  120. package/src/artifacts/coverage-jest/lcov-report/EditableSettingsList/SettingField/index.js.html +1 -1
  121. package/src/artifacts/coverage-jest/lcov-report/EditableSettingsList/index.html +18 -18
  122. package/src/artifacts/coverage-jest/lcov-report/EditableSettingsList/index.js.html +1 -1
  123. package/src/artifacts/coverage-jest/lcov-report/FormModal/FormModal.js.html +35 -17
  124. package/src/artifacts/coverage-jest/lcov-report/FormModal/index.html +15 -15
  125. package/src/artifacts/coverage-jest/lcov-report/FormModal/index.js.html +1 -1
  126. package/src/artifacts/coverage-jest/lcov-report/FormattedKintMessage/FormattedKintMessage.js.html +1 -1
  127. package/src/artifacts/coverage-jest/lcov-report/FormattedKintMessage/index.html +1 -1
  128. package/src/artifacts/coverage-jest/lcov-report/FormattedKintMessage/index.js.html +1 -1
  129. package/src/artifacts/coverage-jest/lcov-report/IconSelect/IconSelect.js.html +67 -34
  130. package/src/artifacts/coverage-jest/lcov-report/IconSelect/index.html +7 -7
  131. package/src/artifacts/coverage-jest/lcov-report/IconSelect/index.js.html +1 -1
  132. package/src/artifacts/coverage-jest/lcov-report/NoResultsMessage/NoResultsMessage.js.html +49 -7
  133. package/src/artifacts/coverage-jest/lcov-report/NoResultsMessage/index.html +7 -7
  134. package/src/artifacts/coverage-jest/lcov-report/NoResultsMessage/index.js.html +1 -1
  135. package/src/artifacts/coverage-jest/lcov-report/QueryTypedown/QueryTypedown.js.html +1 -1
  136. package/src/artifacts/coverage-jest/lcov-report/QueryTypedown/index.html +1 -1
  137. package/src/artifacts/coverage-jest/lcov-report/QueryTypedown/index.js.html +1 -1
  138. package/src/artifacts/coverage-jest/lcov-report/RefdataButtons/RefdataButtons.js.html +3 -3
  139. package/src/artifacts/coverage-jest/lcov-report/RefdataButtons/index.html +1 -1
  140. package/src/artifacts/coverage-jest/lcov-report/RefdataButtons/index.js.html +1 -1
  141. package/src/artifacts/coverage-jest/lcov-report/ResponsiveButtonGroup/ResponsiveButtonGroup.js.html +36 -12
  142. package/src/artifacts/coverage-jest/lcov-report/ResponsiveButtonGroup/index.html +9 -9
  143. package/src/artifacts/coverage-jest/lcov-report/ResponsiveButtonGroup/index.js.html +1 -1
  144. package/src/artifacts/coverage-jest/lcov-report/ResponsiveButtonGroup/useResponsiveButtonGroupSizing.js.html +1 -1
  145. package/src/artifacts/coverage-jest/lcov-report/RichSelect/RichSelect.js.html +24 -81
  146. package/src/artifacts/coverage-jest/lcov-report/RichSelect/index.html +3 -3
  147. package/src/artifacts/coverage-jest/lcov-report/RichSelect/index.js.html +1 -1
  148. package/src/artifacts/coverage-jest/lcov-report/RichSelect/useSelectedOption.js.html +1 -1
  149. package/src/artifacts/coverage-jest/lcov-report/SASQLookupComponent/SASQLookupComponent.js.html +146 -14
  150. package/src/artifacts/coverage-jest/lcov-report/SASQLookupComponent/TableBody/TableBody.js.html +31 -4
  151. package/src/artifacts/coverage-jest/lcov-report/SASQLookupComponent/TableBody/index.html +3 -3
  152. package/src/artifacts/coverage-jest/lcov-report/SASQLookupComponent/TableBody/index.js.html +1 -1
  153. package/src/artifacts/coverage-jest/lcov-report/SASQLookupComponent/index.html +9 -9
  154. package/src/artifacts/coverage-jest/lcov-report/SASQLookupComponent/index.js.html +1 -1
  155. package/src/artifacts/coverage-jest/lcov-report/SASQRoute/SASQRoute.js.html +53 -8
  156. package/src/artifacts/coverage-jest/lcov-report/SASQRoute/index.html +7 -7
  157. package/src/artifacts/coverage-jest/lcov-report/SASQRoute/index.js.html +1 -1
  158. package/src/artifacts/coverage-jest/lcov-report/SASQViewComponent/SASQViewComponent.js.html +65 -11
  159. package/src/artifacts/coverage-jest/lcov-report/SASQViewComponent/index.html +9 -9
  160. package/src/artifacts/coverage-jest/lcov-report/SASQViewComponent/index.js.html +1 -1
  161. package/src/artifacts/coverage-jest/lcov-report/SearchField/SearchField.js.html +1 -1
  162. package/src/artifacts/coverage-jest/lcov-report/SearchField/index.html +1 -1
  163. package/src/artifacts/coverage-jest/lcov-report/SearchField/index.js.html +1 -1
  164. package/src/artifacts/coverage-jest/lcov-report/SettingPage/SettingPage.js.html +24 -27
  165. package/src/artifacts/coverage-jest/lcov-report/SettingPage/SettingPagePane.js.html +47 -17
  166. package/src/artifacts/coverage-jest/lcov-report/SettingPage/index.html +22 -22
  167. package/src/artifacts/coverage-jest/lcov-report/SettingPage/index.js.html +1 -1
  168. package/src/artifacts/coverage-jest/lcov-report/Typedown/Typedown.js.html +1 -1
  169. package/src/artifacts/coverage-jest/lcov-report/Typedown/index.html +1 -1
  170. package/src/artifacts/coverage-jest/lcov-report/Typedown/index.js.html +1 -1
  171. package/src/artifacts/coverage-jest/lcov-report/constants/customProperties.js.html +1 -1
  172. package/src/artifacts/coverage-jest/lcov-report/constants/eventCodes.js.html +1 -1
  173. package/src/artifacts/coverage-jest/lcov-report/constants/index.html +1 -1
  174. package/src/artifacts/coverage-jest/lcov-report/contexts/SettingsContext.js.html +1 -1
  175. package/src/artifacts/coverage-jest/lcov-report/contexts/index.html +1 -1
  176. package/src/artifacts/coverage-jest/lcov-report/contexts/index.js.html +1 -1
  177. package/src/artifacts/coverage-jest/lcov-report/hooks/index.html +151 -106
  178. package/src/artifacts/coverage-jest/lcov-report/hooks/index.js.html +12 -3
  179. package/src/artifacts/coverage-jest/lcov-report/hooks/settingsHooks/index.html +25 -25
  180. package/src/artifacts/coverage-jest/lcov-report/hooks/settingsHooks/index.js.html +1 -1
  181. package/src/artifacts/coverage-jest/lcov-report/hooks/settingsHooks/useAppSettings.js.html +7 -7
  182. package/src/artifacts/coverage-jest/lcov-report/hooks/settingsHooks/useSettingSection.js.html +7 -7
  183. package/src/artifacts/coverage-jest/lcov-report/hooks/settingsHooks/useSettings.js.html +61 -22
  184. package/src/artifacts/coverage-jest/lcov-report/hooks/typedownHooks/index.html +1 -1
  185. package/src/artifacts/coverage-jest/lcov-report/hooks/typedownHooks/index.js.html +1 -1
  186. package/src/artifacts/coverage-jest/lcov-report/hooks/typedownHooks/useTypedown.js.html +1 -1
  187. package/src/artifacts/coverage-jest/lcov-report/hooks/typedownHooks/useTypedownData.js.html +1 -1
  188. package/src/artifacts/coverage-jest/lcov-report/hooks/typedownHooks/useTypedownToggle.js.html +1 -1
  189. package/src/artifacts/coverage-jest/lcov-report/hooks/useActiveElement.js.html +7 -7
  190. package/src/artifacts/coverage-jest/lcov-report/hooks/useCustomProperties.js.html +37 -37
  191. package/src/artifacts/coverage-jest/lcov-report/hooks/useHelperApp.js.html +7 -7
  192. package/src/artifacts/coverage-jest/lcov-report/hooks/useIntlKey.js.html +1 -1
  193. package/src/artifacts/coverage-jest/lcov-report/hooks/useIntlKeyStore.js.html +1 -1
  194. package/src/artifacts/coverage-jest/lcov-report/hooks/useInvalidateRefdata.js.html +7 -7
  195. package/src/artifacts/coverage-jest/lcov-report/hooks/useKintIntl.js.html +1 -1
  196. package/src/artifacts/coverage-jest/lcov-report/hooks/useKiwtFieldArray.js.html +7 -7
  197. package/src/artifacts/coverage-jest/lcov-report/hooks/useKiwtSASQuery.js.html +9 -9
  198. package/src/artifacts/coverage-jest/lcov-report/hooks/useLocalStorageState.js.html +7 -7
  199. package/src/artifacts/coverage-jest/lcov-report/hooks/useMutateCustomProperties.js.html +7 -7
  200. package/src/artifacts/coverage-jest/lcov-report/hooks/useMutateRefdataCategory.js.html +7 -7
  201. package/src/artifacts/coverage-jest/lcov-report/hooks/useMutateRefdataValue.js.html +7 -7
  202. package/src/artifacts/coverage-jest/lcov-report/hooks/useQIndex.js.html +7 -7
  203. package/src/artifacts/coverage-jest/lcov-report/hooks/useRefdata.js.html +9 -9
  204. package/src/artifacts/coverage-jest/lcov-report/hooks/useSASQQueryMeta.js.html +1 -1
  205. package/src/artifacts/coverage-jest/lcov-report/hooks/useTemplates.js.html +7 -7
  206. package/src/artifacts/coverage-jest/lcov-report/index.html +166 -136
  207. package/src/artifacts/coverage-jest/lcov-report/utils/buildUrl.js.html +1 -1
  208. package/src/artifacts/coverage-jest/lcov-report/utils/generateKiwtQuery.js.html +16 -16
  209. package/src/artifacts/coverage-jest/lcov-report/utils/generateKiwtQueryParams.js.html +240 -90
  210. package/src/artifacts/coverage-jest/lcov-report/utils/groupCustomPropertiesByCtx.js.html +7 -7
  211. package/src/artifacts/coverage-jest/lcov-report/utils/highlightString.js.html +3 -3
  212. package/src/artifacts/coverage-jest/lcov-report/utils/index.html +62 -62
  213. package/src/artifacts/coverage-jest/lcov-report/utils/index.js.html +39 -3
  214. package/src/artifacts/coverage-jest/lcov-report/utils/matchString.js.html +2 -2
  215. package/src/artifacts/coverage-jest/lcov-report/utils/parseErrorResponse.js.html +11 -8
  216. package/src/artifacts/coverage-jest/lcov-report/utils/parseKiwtQueryGroups.js.html +280 -0
  217. package/src/artifacts/coverage-jest/lcov-report/utils/refdataOptions.js.html +1 -1
  218. package/src/artifacts/coverage-jest/lcov-report/utils/refdataQueryKey.js.html +2 -2
  219. package/src/artifacts/coverage-jest/lcov-report/utils/selectorSafe.js.html +2 -2
  220. package/src/artifacts/coverage-jest/lcov-report/utils/sortByLabel.js.html +2 -2
  221. package/src/artifacts/coverage-jest/lcov-report/utils/toCamelCase.js.html +2 -2
  222. package/src/artifacts/coverage-jest/lcov-report/utils/typedownQueryKey.js.html +2 -2
  223. package/src/artifacts/coverage-jest/lcov-report/utils/validators.js.html +124 -76
  224. package/src/artifacts/coverage-jest/lcov.info +2706 -2419
  225. package/src/lib/utils/parseErrorResponse.js +3 -2
  226. package/translations/stripes-kint-components/de.json +41 -41
  227. package/translations/stripes-kint-components/ja.json +45 -45
  228. package/translations/stripes-kint-components/ko.json +49 -49
  229. package/yarn-error.log +0 -147
@@ -23,9 +23,9 @@
23
23
  <div class='clearfix'>
24
24
 
25
25
  <div class='fl pad1y space-right2'>
26
- <span class="strong">5% </span>
26
+ <span class="strong">0% </span>
27
27
  <span class="quiet">Statements</span>
28
- <span class='fraction'>1/20</span>
28
+ <span class='fraction'>0/20</span>
29
29
  </div>
30
30
 
31
31
 
@@ -44,9 +44,9 @@
44
44
 
45
45
 
46
46
  <div class='fl pad1y space-right2'>
47
- <span class="strong">5% </span>
47
+ <span class="strong">0% </span>
48
48
  <span class="quiet">Lines</span>
49
- <span class='fraction'>1/20</span>
49
+ <span class='fraction'>0/20</span>
50
50
  </div>
51
51
 
52
52
 
@@ -136,7 +136,7 @@
136
136
  <span class="cline-any cline-neutral">&nbsp;</span>
137
137
  <span class="cline-any cline-neutral">&nbsp;</span>
138
138
  <span class="cline-any cline-neutral">&nbsp;</span>
139
- <span class="cline-any cline-yes">4x</span>
139
+ <span class="cline-any cline-no">&nbsp;</span>
140
140
  <span class="cline-any cline-neutral">&nbsp;</span>
141
141
  <span class="cline-any cline-neutral">&nbsp;</span>
142
142
  <span class="cline-any cline-neutral">&nbsp;</span>
@@ -205,7 +205,7 @@
205
205
  import { useOkapiKy } from '@folio/stripes/core';
206
206
  import { generateKiwtQueryParams } from '../../utils';
207
207
  &nbsp;
208
- const useAppSettings = <span class="fstat-no" title="function not covered" >({</span>
208
+ const useAppSettings = <span class="cstat-no" title="statement not covered" ><span class="fstat-no" title="function not covered" >({</span></span>
209
209
  endpoint,
210
210
  keyName,
211
211
  options,
@@ -277,7 +277,7 @@ export default useAppSettings;
277
277
  <div class='footer quiet pad2 space-top1 center small'>
278
278
  Code coverage generated by
279
279
  <a href="https://istanbul.js.org/" target="_blank" rel="noopener noreferrer">istanbul</a>
280
- at 2022-11-22T09:57:19.883Z
280
+ at 2022-12-09T15:17:50.295Z
281
281
  </div>
282
282
  <script src="../../prettify.js"></script>
283
283
  <script>
@@ -23,9 +23,9 @@
23
23
  <div class='clearfix'>
24
24
 
25
25
  <div class='fl pad1y space-right2'>
26
- <span class="strong">12.5% </span>
26
+ <span class="strong">0% </span>
27
27
  <span class="quiet">Statements</span>
28
- <span class='fraction'>1/8</span>
28
+ <span class='fraction'>0/8</span>
29
29
  </div>
30
30
 
31
31
 
@@ -44,9 +44,9 @@
44
44
 
45
45
 
46
46
  <div class='fl pad1y space-right2'>
47
- <span class="strong">12.5% </span>
47
+ <span class="strong">0% </span>
48
48
  <span class="quiet">Lines</span>
49
- <span class='fraction'>1/8</span>
49
+ <span class='fraction'>0/8</span>
50
50
  </div>
51
51
 
52
52
 
@@ -111,7 +111,7 @@
111
111
  <span class="cline-any cline-neutral">&nbsp;</span>
112
112
  <span class="cline-any cline-neutral">&nbsp;</span>
113
113
  <span class="cline-any cline-neutral">&nbsp;</span>
114
- <span class="cline-any cline-yes">4x</span>
114
+ <span class="cline-any cline-no">&nbsp;</span>
115
115
  <span class="cline-any cline-neutral">&nbsp;</span>
116
116
  <span class="cline-any cline-neutral">&nbsp;</span>
117
117
  <span class="cline-any cline-neutral">&nbsp;</span>
@@ -154,7 +154,7 @@ import { useMutation, useQuery } from 'react-query';
154
154
  import { useOkapiKy } from '@folio/stripes/core';
155
155
  import { generateKiwtQueryParams } from '../../utils';
156
156
  &nbsp;
157
- const useSettingSection = <span class="fstat-no" title="function not covered" >({</span>
157
+ const useSettingSection = <span class="cstat-no" title="statement not covered" ><span class="fstat-no" title="function not covered" >({</span></span>
158
158
  sectionName,
159
159
  settingEndpoint
160
160
  }) =&gt; {
@@ -199,7 +199,7 @@ export default useSettingSection;
199
199
  <div class='footer quiet pad2 space-top1 center small'>
200
200
  Code coverage generated by
201
201
  <a href="https://istanbul.js.org/" target="_blank" rel="noopener noreferrer">istanbul</a>
202
- at 2022-11-22T09:57:19.883Z
202
+ at 2022-12-09T15:17:50.295Z
203
203
  </div>
204
204
  <script src="../../prettify.js"></script>
205
205
  <script>
@@ -23,16 +23,16 @@
23
23
  <div class='clearfix'>
24
24
 
25
25
  <div class='fl pad1y space-right2'>
26
- <span class="strong">4.54% </span>
26
+ <span class="strong">0% </span>
27
27
  <span class="quiet">Statements</span>
28
- <span class='fraction'>1/22</span>
28
+ <span class='fraction'>0/22</span>
29
29
  </div>
30
30
 
31
31
 
32
32
  <div class='fl pad1y space-right2'>
33
33
  <span class="strong">0% </span>
34
34
  <span class="quiet">Branches</span>
35
- <span class='fraction'>0/1</span>
35
+ <span class='fraction'>0/2</span>
36
36
  </div>
37
37
 
38
38
 
@@ -44,9 +44,9 @@
44
44
 
45
45
 
46
46
  <div class='fl pad1y space-right2'>
47
- <span class="strong">4.76% </span>
47
+ <span class="strong">0% </span>
48
48
  <span class="quiet">Lines</span>
49
- <span class='fraction'>1/21</span>
49
+ <span class='fraction'>0/21</span>
50
50
  </div>
51
51
 
52
52
 
@@ -176,7 +176,23 @@
176
176
  <a name='L111'></a><a href='#L111'>111</a>
177
177
  <a name='L112'></a><a href='#L112'>112</a>
178
178
  <a name='L113'></a><a href='#L113'>113</a>
179
- <a name='L114'></a><a href='#L114'>114</a></td><td class="line-coverage quiet"><span class="cline-any cline-neutral">&nbsp;</span>
179
+ <a name='L114'></a><a href='#L114'>114</a>
180
+ <a name='L115'></a><a href='#L115'>115</a>
181
+ <a name='L116'></a><a href='#L116'>116</a>
182
+ <a name='L117'></a><a href='#L117'>117</a>
183
+ <a name='L118'></a><a href='#L118'>118</a>
184
+ <a name='L119'></a><a href='#L119'>119</a>
185
+ <a name='L120'></a><a href='#L120'>120</a>
186
+ <a name='L121'></a><a href='#L121'>121</a>
187
+ <a name='L122'></a><a href='#L122'>122</a>
188
+ <a name='L123'></a><a href='#L123'>123</a>
189
+ <a name='L124'></a><a href='#L124'>124</a>
190
+ <a name='L125'></a><a href='#L125'>125</a>
191
+ <a name='L126'></a><a href='#L126'>126</a>
192
+ <a name='L127'></a><a href='#L127'>127</a></td><td class="line-coverage quiet"><span class="cline-any cline-neutral">&nbsp;</span>
193
+ <span class="cline-any cline-neutral">&nbsp;</span>
194
+ <span class="cline-any cline-neutral">&nbsp;</span>
195
+ <span class="cline-any cline-neutral">&nbsp;</span>
180
196
  <span class="cline-any cline-neutral">&nbsp;</span>
181
197
  <span class="cline-any cline-neutral">&nbsp;</span>
182
198
  <span class="cline-any cline-neutral">&nbsp;</span>
@@ -188,9 +204,9 @@
188
204
  <span class="cline-any cline-neutral">&nbsp;</span>
189
205
  <span class="cline-any cline-neutral">&nbsp;</span>
190
206
  <span class="cline-any cline-neutral">&nbsp;</span>
207
+ <span class="cline-any cline-no">&nbsp;</span>
191
208
  <span class="cline-any cline-neutral">&nbsp;</span>
192
209
  <span class="cline-any cline-neutral">&nbsp;</span>
193
- <span class="cline-any cline-yes">4x</span>
194
210
  <span class="cline-any cline-neutral">&nbsp;</span>
195
211
  <span class="cline-any cline-neutral">&nbsp;</span>
196
212
  <span class="cline-any cline-neutral">&nbsp;</span>
@@ -200,6 +216,7 @@
200
216
  <span class="cline-any cline-neutral">&nbsp;</span>
201
217
  <span class="cline-any cline-no">&nbsp;</span>
202
218
  <span class="cline-any cline-no">&nbsp;</span>
219
+ <span class="cline-any cline-neutral">&nbsp;</span>
203
220
  <span class="cline-any cline-no">&nbsp;</span>
204
221
  <span class="cline-any cline-no">&nbsp;</span>
205
222
  <span class="cline-any cline-neutral">&nbsp;</span>
@@ -236,10 +253,18 @@
236
253
  <span class="cline-any cline-neutral">&nbsp;</span>
237
254
  <span class="cline-any cline-neutral">&nbsp;</span>
238
255
  <span class="cline-any cline-neutral">&nbsp;</span>
256
+ <span class="cline-any cline-neutral">&nbsp;</span>
257
+ <span class="cline-any cline-neutral">&nbsp;</span>
258
+ <span class="cline-any cline-neutral">&nbsp;</span>
259
+ <span class="cline-any cline-neutral">&nbsp;</span>
260
+ <span class="cline-any cline-neutral">&nbsp;</span>
261
+ <span class="cline-any cline-neutral">&nbsp;</span>
262
+ <span class="cline-any cline-neutral">&nbsp;</span>
239
263
  <span class="cline-any cline-no">&nbsp;</span>
240
264
  <span class="cline-any cline-neutral">&nbsp;</span>
241
265
  <span class="cline-any cline-no">&nbsp;</span>
242
266
  <span class="cline-any cline-no">&nbsp;</span>
267
+ <span class="cline-any cline-no">&nbsp;</span>
243
268
  <span class="cline-any cline-neutral">&nbsp;</span>
244
269
  <span class="cline-any cline-neutral">&nbsp;</span>
245
270
  <span class="cline-any cline-neutral">&nbsp;</span>
@@ -263,7 +288,8 @@
263
288
  <span class="cline-any cline-no">&nbsp;</span>
264
289
  <span class="cline-any cline-no">&nbsp;</span>
265
290
  <span class="cline-any cline-neutral">&nbsp;</span>
266
- <span class="cline-any cline-no">&nbsp;</span>
291
+ <span class="cline-any cline-neutral">&nbsp;</span>
292
+ <span class="cline-any cline-neutral">&nbsp;</span>
267
293
  <span class="cline-any cline-neutral">&nbsp;</span>
268
294
  <span class="cline-any cline-neutral">&nbsp;</span>
269
295
  <span class="cline-any cline-neutral">&nbsp;</span>
@@ -289,11 +315,10 @@
289
315
  <span class="cline-any cline-neutral">&nbsp;</span>
290
316
  <span class="cline-any cline-neutral">&nbsp;</span>
291
317
  <span class="cline-any cline-neutral">&nbsp;</span>
292
- <span class="cline-any cline-neutral">&nbsp;</span></td><td class="text"><pre class="prettyprint lang-js">import React, { useContext } from 'react';
318
+ <span class="cline-any cline-neutral">&nbsp;</span></td><td class="text"><pre class="prettyprint lang-js">import React from 'react';
293
319
  import PropTypes from 'prop-types';
294
320
  &nbsp;
295
321
  import { useQuery } from 'react-query';
296
- import { FormattedMessage, useIntl } from 'react-intl';
297
322
  import { useOkapiKy } from '@folio/stripes/core';
298
323
  &nbsp;
299
324
  import { Settings } from '@folio/stripes/smart-components';
@@ -302,17 +327,22 @@ import { SettingPage, SettingPagePane } from '../../SettingPage';
302
327
  import { SettingsContext } from '../../contexts';
303
328
  &nbsp;
304
329
  import { generateKiwtQueryParams, sortByLabel, toCamelCase } from '../../utils';
330
+ import useKintIntl from '../useKintIntl';
331
+ import useIntlKey from '../useIntlKey';
305
332
  &nbsp;
306
- const useSettings = <span class="fstat-no" title="function not covered" >({</span>
333
+ const useSettings = <span class="cstat-no" title="statement not covered" ><span class="fstat-no" title="function not covered" >({</span></span>
307
334
  dynamicPageExclusions,
308
- intlKey,
335
+ intlKey: passedIntlKey,
336
+ intlNS: passedIntlNS,
337
+ labelOverrides = <span class="branch-0 cbranch-no" title="branch not covered" >{},</span>
309
338
  persistentPages,
310
339
  refdataEndpoint,
311
340
  settingEndpoint,
312
341
  templateEndpoint
313
342
  }) =&gt; {
314
343
  const ky = <span class="cstat-no" title="statement not covered" >useOkapiKy();</span>
315
- const intl = <span class="cstat-no" title="statement not covered" >useIntl();</span>
344
+ const kintIntl = <span class="cstat-no" title="statement not covered" >useKintIntl(passedIntlKey, passedIntlNS);</span>
345
+ &nbsp;
316
346
  const queryParams = <span class="cstat-no" title="statement not covered" >generateKiwtQueryParams({</span>
317
347
  filters: dynamicPageExclusions?.map(<span class="fstat-no" title="function not covered" >dp</span>e =&gt; (<span class="cstat-no" title="statement not covered" >{</span>
318
348
  path: 'section',
@@ -333,13 +363,20 @@ const useSettings = <span class="fstat-no" title="function not covered" >({</spa
333
363
  <span class="cstat-no" title="statement not covered" > return (</span>
334
364
  {
335
365
  route: section,
336
- label: intl.formatMessage({
337
- defaultMessage: section,
338
- id: `${intlKey}.settings.settingsSection.${toCamelCase(section)}`
366
+ label: kintIntl.formatKintMessage({
367
+ id: `settings.settingsSection.${toCamelCase(section)}`,
368
+ fallbackMessage: section
339
369
  }),
340
370
  component: <span class="fstat-no" title="function not covered" >(p</span>rops) =&gt; (
341
- <span class="cstat-no" title="statement not covered" > &lt;SettingPagePane sectionName={section}&gt;</span>
371
+ <span class="cstat-no" title="statement not covered" > &lt;SettingPagePane</span>
372
+ intlKey={passedIntlKey}
373
+ intlNS={passedIntlNS}
374
+ sectionName={section}
375
+ &gt;
342
376
  &lt;SettingPage
377
+ intlKey={passedIntlKey}
378
+ intlNS={passedIntlNS}
379
+ labelOverrides={labelOverrides}
343
380
  sectionName={section}
344
381
  {...props}
345
382
  /&gt;
@@ -351,11 +388,12 @@ const useSettings = <span class="fstat-no" title="function not covered" >({</spa
351
388
  &nbsp;
352
389
  const pageList = <span class="cstat-no" title="statement not covered" >persistentPages.concat(dynamic).sort(sortByLabel);</span>
353
390
  &nbsp;
391
+ const intlKey = <span class="cstat-no" title="statement not covered" >useIntlKey(passedIntlKey, passedIntlNS);</span>
354
392
  const SettingsContextProvider = <span class="cstat-no" title="statement not covered" ><span class="fstat-no" title="function not covered" >({</span> children }) =&gt; {</span>
355
393
  <span class="cstat-no" title="statement not covered" > return (</span>
356
394
  &lt;SettingsContext.Provider
357
395
  value={{
358
- intlKey,
396
+ intlKey, // This is only here for backwards compatibility... is now grabbed from useIntlKey instead of what's passed in directly
359
397
  refdataEndpoint,
360
398
  settingEndpoint,
361
399
  templateEndpoint
@@ -374,12 +412,13 @@ const useSettings = <span class="fstat-no" title="function not covered" >({</spa
374
412
  };
375
413
  &nbsp;
376
414
  const SettingsComponent = <span class="cstat-no" title="statement not covered" ><span class="fstat-no" title="function not covered" >(p</span>rops) =&gt; {</span>
377
- const settingsData = <span class="cstat-no" title="statement not covered" >useContext(SettingsContext);</span>
378
- &nbsp;
379
415
  <span class="cstat-no" title="statement not covered" > return (</span>
380
416
  &lt;Settings
381
417
  pages={pageList}
382
- paneTitle={&lt;FormattedMessage id={`${settingsData.intlKey}.meta.title`} /&gt;}
418
+ paneTitle={
419
+ kintIntl.formatKintMessage({
420
+ id: 'meta.title'
421
+ })}
383
422
  {...props}
384
423
  /&gt;
385
424
  );
@@ -409,7 +448,7 @@ export default useSettings;
409
448
  <div class='footer quiet pad2 space-top1 center small'>
410
449
  Code coverage generated by
411
450
  <a href="https://istanbul.js.org/" target="_blank" rel="noopener noreferrer">istanbul</a>
412
- at 2022-11-22T09:57:19.883Z
451
+ at 2022-12-09T15:17:50.295Z
413
452
  </div>
414
453
  <script src="../../prettify.js"></script>
415
454
  <script>
@@ -146,7 +146,7 @@
146
146
  <div class='footer quiet pad2 space-top1 center small'>
147
147
  Code coverage generated by
148
148
  <a href="https://istanbul.js.org/" target="_blank" rel="noopener noreferrer">istanbul</a>
149
- at 2022-11-22T09:57:19.883Z
149
+ at 2022-12-09T15:17:50.295Z
150
150
  </div>
151
151
  <script src="../../prettify.js"></script>
152
152
  <script>
@@ -79,7 +79,7 @@ export { default as useTypedownData } from './useTypedownData';
79
79
  <div class='footer quiet pad2 space-top1 center small'>
80
80
  Code coverage generated by
81
81
  <a href="https://istanbul.js.org/" target="_blank" rel="noopener noreferrer">istanbul</a>
82
- at 2022-11-22T09:57:19.883Z
82
+ at 2022-12-09T15:17:50.295Z
83
83
  </div>
84
84
  <script src="../../prettify.js"></script>
85
85
  <script>
@@ -505,7 +505,7 @@ export default useTypedown;
505
505
  <div class='footer quiet pad2 space-top1 center small'>
506
506
  Code coverage generated by
507
507
  <a href="https://istanbul.js.org/" target="_blank" rel="noopener noreferrer">istanbul</a>
508
- at 2022-11-22T09:57:19.883Z
508
+ at 2022-12-09T15:17:50.295Z
509
509
  </div>
510
510
  <script src="../../prettify.js"></script>
511
511
  <script>
@@ -166,7 +166,7 @@ export default useTypedownData;
166
166
  <div class='footer quiet pad2 space-top1 center small'>
167
167
  Code coverage generated by
168
168
  <a href="https://istanbul.js.org/" target="_blank" rel="noopener noreferrer">istanbul</a>
169
- at 2022-11-22T09:57:19.883Z
169
+ at 2022-12-09T15:17:50.295Z
170
170
  </div>
171
171
  <script src="../../prettify.js"></script>
172
172
  <script>
@@ -148,7 +148,7 @@ export default useTypedownToggle;
148
148
  <div class='footer quiet pad2 space-top1 center small'>
149
149
  Code coverage generated by
150
150
  <a href="https://istanbul.js.org/" target="_blank" rel="noopener noreferrer">istanbul</a>
151
- at 2022-11-22T09:57:19.883Z
151
+ at 2022-12-09T15:17:50.295Z
152
152
  </div>
153
153
  <script src="../../prettify.js"></script>
154
154
  <script>
@@ -23,9 +23,9 @@
23
23
  <div class='clearfix'>
24
24
 
25
25
  <div class='fl pad1y space-right2'>
26
- <span class="strong">9.09% </span>
26
+ <span class="strong">0% </span>
27
27
  <span class="quiet">Statements</span>
28
- <span class='fraction'>1/11</span>
28
+ <span class='fraction'>0/11</span>
29
29
  </div>
30
30
 
31
31
 
@@ -44,9 +44,9 @@
44
44
 
45
45
 
46
46
  <div class='fl pad1y space-right2'>
47
- <span class="strong">9.09% </span>
47
+ <span class="strong">0% </span>
48
48
  <span class="quiet">Lines</span>
49
- <span class='fraction'>1/11</span>
49
+ <span class='fraction'>0/11</span>
50
50
  </div>
51
51
 
52
52
 
@@ -90,7 +90,7 @@
90
90
  <a name='L25'></a><a href='#L25'>25</a></td><td class="line-coverage quiet"><span class="cline-any cline-neutral">&nbsp;</span>
91
91
  <span class="cline-any cline-neutral">&nbsp;</span>
92
92
  <span class="cline-any cline-neutral">&nbsp;</span>
93
- <span class="cline-any cline-yes">4x</span>
93
+ <span class="cline-any cline-no">&nbsp;</span>
94
94
  <span class="cline-any cline-no">&nbsp;</span>
95
95
  <span class="cline-any cline-neutral">&nbsp;</span>
96
96
  <span class="cline-any cline-no">&nbsp;</span>
@@ -114,7 +114,7 @@
114
114
  <span class="cline-any cline-neutral">&nbsp;</span></td><td class="text"><pre class="prettyprint lang-js">import { useEffect, useState } from 'react';
115
115
  &nbsp;
116
116
  &nbsp;
117
- const useActiveElement = <span class="fstat-no" title="function not covered" >()</span> =&gt; {
117
+ const useActiveElement = <span class="cstat-no" title="statement not covered" ><span class="fstat-no" title="function not covered" >()</span> =&gt; {</span>
118
118
  const [active, setActive] = <span class="cstat-no" title="statement not covered" >useState(document.activeElement);</span>
119
119
  &nbsp;
120
120
  const handleFocusIn = <span class="cstat-no" title="statement not covered" ><span class="fstat-no" title="function not covered" >()</span> =&gt; {</span>
@@ -142,7 +142,7 @@ export default useActiveElement;
142
142
  <div class='footer quiet pad2 space-top1 center small'>
143
143
  Code coverage generated by
144
144
  <a href="https://istanbul.js.org/" target="_blank" rel="noopener noreferrer">istanbul</a>
145
- at 2022-11-22T09:57:19.883Z
145
+ at 2022-12-09T15:17:50.295Z
146
146
  </div>
147
147
  <script src="../prettify.js"></script>
148
148
  <script>
@@ -23,30 +23,30 @@
23
23
  <div class='clearfix'>
24
24
 
25
25
  <div class='fl pad1y space-right2'>
26
- <span class="strong">68.42% </span>
26
+ <span class="strong">0% </span>
27
27
  <span class="quiet">Statements</span>
28
- <span class='fraction'>13/19</span>
28
+ <span class='fraction'>0/19</span>
29
29
  </div>
30
30
 
31
31
 
32
32
  <div class='fl pad1y space-right2'>
33
- <span class="strong">41.17% </span>
33
+ <span class="strong">0% </span>
34
34
  <span class="quiet">Branches</span>
35
- <span class='fraction'>7/17</span>
35
+ <span class='fraction'>0/17</span>
36
36
  </div>
37
37
 
38
38
 
39
39
  <div class='fl pad1y space-right2'>
40
- <span class="strong">33.33% </span>
40
+ <span class="strong">0% </span>
41
41
  <span class="quiet">Functions</span>
42
- <span class='fraction'>1/3</span>
42
+ <span class='fraction'>0/3</span>
43
43
  </div>
44
44
 
45
45
 
46
46
  <div class='fl pad1y space-right2'>
47
- <span class="strong">68.42% </span>
47
+ <span class="strong">0% </span>
48
48
  <span class="quiet">Lines</span>
49
- <span class='fraction'>13/19</span>
49
+ <span class='fraction'>0/19</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 medium'></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>
@@ -150,7 +150,7 @@
150
150
  <span class="cline-any cline-neutral">&nbsp;</span>
151
151
  <span class="cline-any cline-neutral">&nbsp;</span>
152
152
  <span class="cline-any cline-neutral">&nbsp;</span>
153
- <span class="cline-any cline-yes">4x</span>
153
+ <span class="cline-any cline-no">&nbsp;</span>
154
154
  <span class="cline-any cline-neutral">&nbsp;</span>
155
155
  <span class="cline-any cline-neutral">&nbsp;</span>
156
156
  <span class="cline-any cline-neutral">&nbsp;</span>
@@ -160,9 +160,9 @@
160
160
  <span class="cline-any cline-neutral">&nbsp;</span>
161
161
  <span class="cline-any cline-neutral">&nbsp;</span>
162
162
  <span class="cline-any cline-neutral">&nbsp;</span>
163
- <span class="cline-any cline-yes">7x</span>
163
+ <span class="cline-any cline-no">&nbsp;</span>
164
164
  <span class="cline-any cline-neutral">&nbsp;</span>
165
- <span class="cline-any cline-yes">7x</span>
165
+ <span class="cline-any cline-no">&nbsp;</span>
166
166
  <span class="cline-any cline-neutral">&nbsp;</span>
167
167
  <span class="cline-any cline-neutral">&nbsp;</span>
168
168
  <span class="cline-any cline-neutral">&nbsp;</span>
@@ -177,42 +177,42 @@
177
177
  <span class="cline-any cline-neutral">&nbsp;</span>
178
178
  <span class="cline-any cline-neutral">&nbsp;</span>
179
179
  <span class="cline-any cline-neutral">&nbsp;</span>
180
- <span class="cline-any cline-yes">7x</span>
180
+ <span class="cline-any cline-no">&nbsp;</span>
181
181
  <span class="cline-any cline-neutral">&nbsp;</span>
182
182
  <span class="cline-any cline-neutral">&nbsp;</span>
183
183
  <span class="cline-any cline-neutral">&nbsp;</span>
184
184
  <span class="cline-any cline-no">&nbsp;</span>
185
185
  <span class="cline-any cline-no">&nbsp;</span>
186
186
  <span class="cline-any cline-neutral">&nbsp;</span>
187
- <span class="cline-any cline-yes">7x</span>
187
+ <span class="cline-any cline-no">&nbsp;</span>
188
188
  <span class="cline-any cline-no">&nbsp;</span>
189
189
  <span class="cline-any cline-neutral">&nbsp;</span>
190
190
  <span class="cline-any cline-neutral">&nbsp;</span>
191
- <span class="cline-any cline-yes">7x</span>
192
- <span class="cline-any cline-yes">1x</span>
191
+ <span class="cline-any cline-no">&nbsp;</span>
192
+ <span class="cline-any cline-no">&nbsp;</span>
193
193
  <span class="cline-any cline-neutral">&nbsp;</span>
194
194
  <span class="cline-any cline-neutral">&nbsp;</span>
195
195
  <span class="cline-any cline-neutral">&nbsp;</span>
196
196
  <span class="cline-any cline-neutral">&nbsp;</span>
197
197
  <span class="cline-any cline-neutral">&nbsp;</span>
198
- <span class="cline-any cline-yes">7x</span>
199
- <span class="cline-any cline-yes">7x</span>
198
+ <span class="cline-any cline-no">&nbsp;</span>
199
+ <span class="cline-any cline-no">&nbsp;</span>
200
200
  <span class="cline-any cline-neutral">&nbsp;</span>
201
- <span class="cline-any cline-yes">7x</span>
201
+ <span class="cline-any cline-no">&nbsp;</span>
202
202
  <span class="cline-any cline-neutral">&nbsp;</span>
203
203
  <span class="cline-any cline-no">&nbsp;</span>
204
204
  <span class="cline-any cline-neutral">&nbsp;</span>
205
205
  <span class="cline-any cline-neutral">&nbsp;</span>
206
206
  <span class="cline-any cline-neutral">&nbsp;</span>
207
- <span class="cline-any cline-yes">7x</span>
208
- <span class="cline-any cline-yes">7x</span>
207
+ <span class="cline-any cline-no">&nbsp;</span>
208
+ <span class="cline-any cline-no">&nbsp;</span>
209
209
  <span class="cline-any cline-neutral">&nbsp;</span>
210
210
  <span class="cline-any cline-neutral">&nbsp;</span>
211
211
  <span class="cline-any cline-no">&nbsp;</span>
212
212
  <span class="cline-any cline-no">&nbsp;</span>
213
213
  <span class="cline-any cline-neutral">&nbsp;</span>
214
214
  <span class="cline-any cline-neutral">&nbsp;</span>
215
- <span class="cline-any cline-yes">4x</span>
215
+ <span class="cline-any cline-no">&nbsp;</span>
216
216
  <span class="cline-any cline-neutral">&nbsp;</span>
217
217
  <span class="cline-any cline-neutral">&nbsp;</span>
218
218
  <span class="cline-any cline-neutral">&nbsp;</span>
@@ -230,19 +230,19 @@ import { useOkapiKy } from '@folio/stripes/core';
230
230
  &nbsp;
231
231
  import { generateKiwtQuery } from '../utils';
232
232
  &nbsp;
233
- const useCustomProperties = ({
233
+ const useCustomProperties = <span class="cstat-no" title="statement not covered" ><span class="fstat-no" title="function not covered" >({</span></span>
234
234
  endpoint,
235
235
  ctx,
236
- nsValues = {
236
+ nsValues = <span class="branch-0 cbranch-no" title="branch not covered" >{</span>
237
237
  sort: 'id'
238
238
  },
239
239
  options = <span class="branch-0 cbranch-no" title="branch not covered" >{},</span>
240
240
  queryParams,
241
241
  returnQueryObject = <span class="branch-0 cbranch-no" title="branch not covered" >false,</span>
242
242
  }) =&gt; {
243
- const ky = useOkapiKy();
243
+ const ky = <span class="cstat-no" title="statement not covered" >useOkapiKy();</span>
244
244
  &nbsp;
245
- const custPropOptions = {
245
+ const custPropOptions = <span class="cstat-no" title="statement not covered" >{</span>
246
246
  searchKey: 'label,name,description',
247
247
  filterKeys: {
248
248
  ContextKey: 'ctx'
@@ -257,42 +257,42 @@ const useCustomProperties = ({
257
257
  ...options
258
258
  };
259
259
  &nbsp;
260
- <span class="missing-if-branch" title="if path not taken" >I</span>if (Array.isArray(ctx)) {
260
+ <span class="cstat-no" title="statement not covered" > if (Array.isArray(ctx)) {</span>
261
261
  // If we have an array, append a context filter for each ctx given
262
262
  &nbsp;
263
263
  // Special case if one is isNull
264
264
  <span class="cstat-no" title="statement not covered" > custPropOptions.filters.push({</span>
265
265
  values: ctx.map(<span class="fstat-no" title="function not covered" >c </span>=&gt; (<span class="cstat-no" title="statement not covered" >c === 'isNull' ? 'ctx isNull' : `ctx==${c}`)</span>)
266
266
  });
267
- } else <span class="missing-if-branch" title="if path not taken" >I</span>if (ctx === 'isNull') { // isNull is a special case
267
+ } else <span class="cstat-no" title="statement not covered" >if (ctx === 'isNull') { // isNull is a special case</span>
268
268
  <span class="cstat-no" title="statement not covered" > custPropOptions.filters.push({</span>
269
269
  value: 'ctx isNull'
270
270
  });
271
- } else if (ctx) {
272
- custPropOptions.filters.push({
271
+ } else <span class="cstat-no" title="statement not covered" >if (ctx) {</span>
272
+ <span class="cstat-no" title="statement not covered" > custPropOptions.filters.push({</span>
273
273
  path: 'ctx',
274
274
  value: ctx
275
275
  });
276
276
  }
277
277
  &nbsp;
278
- const query = generateKiwtQuery(custPropOptions, nsValues);
279
- const path = `${endpoint}${query}`;
278
+ const query = <span class="cstat-no" title="statement not covered" >generateKiwtQuery(custPropOptions, nsValues);</span>
279
+ const path = <span class="cstat-no" title="statement not covered" >`${endpoint}${query}`;</span>
280
280
  &nbsp;
281
- const queryObject = useQuery(
281
+ const queryObject = <span class="cstat-no" title="statement not covered" >useQuery(</span>
282
282
  ['stripes-kint-components', 'useCustomProperties', 'custprops', ctx, path],
283
283
  <span class="fstat-no" title="function not covered" > ()</span> =&gt; <span class="cstat-no" title="statement not covered" >ky(path).json(),</span>
284
284
  queryParams
285
285
  );
286
286
  &nbsp;
287
- <span class="missing-if-branch" title="else path not taken" >E</span>if (returnQueryObject) {
288
- return queryObject || <span class="branch-1 cbranch-no" title="branch not covered" >{};</span>
287
+ <span class="cstat-no" title="statement not covered" > if (returnQueryObject) {</span>
288
+ <span class="cstat-no" title="statement not covered" > return queryObject || {};</span>
289
289
  }
290
290
  &nbsp;
291
291
  const { data: custprops } = <span class="cstat-no" title="statement not covered" >queryObject;</span>
292
292
  <span class="cstat-no" title="statement not covered" > return custprops || [];</span>
293
293
  };
294
294
  &nbsp;
295
- useCustomProperties.propTypes = {
295
+ <span class="cstat-no" title="statement not covered" >useCustomProperties.propTypes = {</span>
296
296
  endpoint: PropTypes.string,
297
297
  ctx: PropTypes.oneOfType([
298
298
  PropTypes.string,
@@ -310,7 +310,7 @@ export default useCustomProperties;
310
310
  <div class='footer quiet pad2 space-top1 center small'>
311
311
  Code coverage generated by
312
312
  <a href="https://istanbul.js.org/" target="_blank" rel="noopener noreferrer">istanbul</a>
313
- at 2022-11-22T09:57:19.883Z
313
+ at 2022-12-09T15:17:50.295Z
314
314
  </div>
315
315
  <script src="../prettify.js"></script>
316
316
  <script>