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

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 (313) hide show
  1. package/CHANGELOG.md +3 -0
  2. package/es/artifacts/coverage-jest/lcov-report/block-navigation.js +6 -19
  3. package/es/artifacts/coverage-jest/lcov-report/prettify.js +2 -182
  4. package/es/artifacts/coverage-jest/lcov-report/sorter.js +64 -94
  5. package/es/index.js +0 -27
  6. package/es/lib/ActionList/ActionList.js +18 -38
  7. package/es/lib/ActionList/ActionListFieldArray.js +57 -112
  8. package/es/lib/ActionList/index.js +0 -2
  9. package/es/lib/CustomProperties/Config/CustomPropertiesLookup.js +32 -63
  10. package/es/lib/CustomProperties/Config/CustomPropertiesLookup.test.js +2 -13
  11. package/es/lib/CustomProperties/Config/CustomPropertiesSettings.js +89 -138
  12. package/es/lib/CustomProperties/Config/CustomPropertiesSettings.test.js +3 -22
  13. package/es/lib/CustomProperties/Config/CustomPropertyForm.js +14 -50
  14. package/es/lib/CustomProperties/Config/CustomPropertyForm.test.js +17 -34
  15. package/es/lib/CustomProperties/Config/CustomPropertyView.js +3 -12
  16. package/es/lib/CustomProperties/Config/CustomPropertyView.test.js +1 -26
  17. package/es/lib/CustomProperties/Config/index.js +0 -5
  18. package/es/lib/CustomProperties/Edit/CustomPropertiesEdit.js +6 -12
  19. package/es/lib/CustomProperties/Edit/CustomPropertiesEdit.test.js +1 -13
  20. package/es/lib/CustomProperties/Edit/CustomPropertiesEditCtx.js +24 -39
  21. package/es/lib/CustomProperties/Edit/CustomPropertiesEditCtx.test.js +1 -13
  22. package/es/lib/CustomProperties/Edit/CustomPropertiesListField.js +25 -69
  23. package/es/lib/CustomProperties/Edit/CustomPropertiesListField.test.js +3 -23
  24. package/es/lib/CustomProperties/Edit/CustomPropertyField.js +26 -77
  25. package/es/lib/CustomProperties/Edit/CustomPropertyField.test.js +6 -33
  26. package/es/lib/CustomProperties/Edit/CustomPropertyFormCard.js +19 -33
  27. package/es/lib/CustomProperties/Edit/CustomPropertyFormCard.test.js +3 -14
  28. package/es/lib/CustomProperties/Edit/index.js +0 -6
  29. package/es/lib/CustomProperties/Filter/CustomPropertiesFilter.js +33 -70
  30. package/es/lib/CustomProperties/Filter/CustomPropertiesFilter.test.js +2 -18
  31. package/es/lib/CustomProperties/Filter/CustomPropertiesFilterField.js +14 -44
  32. package/es/lib/CustomProperties/Filter/CustomPropertiesFilterField.test.js +1 -10
  33. package/es/lib/CustomProperties/Filter/CustomPropertiesFilterFieldArray.js +4 -23
  34. package/es/lib/CustomProperties/Filter/CustomPropertiesFilterFieldArray.test.js +2 -19
  35. package/es/lib/CustomProperties/Filter/CustomPropertiesFilterForm.js +8 -22
  36. package/es/lib/CustomProperties/Filter/CustomPropertiesFilterForm.test.js +2 -20
  37. package/es/lib/CustomProperties/Filter/CustomPropertiesRule.js +9 -27
  38. package/es/lib/CustomProperties/Filter/CustomPropertiesRule.test.js +1 -32
  39. package/es/lib/CustomProperties/Filter/index.js +0 -7
  40. package/es/lib/CustomProperties/Filter/useOperators.js +5 -21
  41. package/es/lib/CustomProperties/Filter/useParseActiveFilterStrings.js +3 -15
  42. package/es/lib/CustomProperties/Filter/useValueProps.js +5 -20
  43. package/es/lib/CustomProperties/View/CustomPropertiesView.js +6 -12
  44. package/es/lib/CustomProperties/View/CustomPropertiesView.test.js +1 -10
  45. package/es/lib/CustomProperties/View/CustomPropertiesViewCtx.js +43 -65
  46. package/es/lib/CustomProperties/View/CustomPropertiesViewCtx.test.js +1 -13
  47. package/es/lib/CustomProperties/View/CustomPropertyCard.js +10 -38
  48. package/es/lib/CustomProperties/View/index.js +0 -4
  49. package/es/lib/CustomProperties/index.js +0 -4
  50. package/es/lib/CycleButton/CycleButton.js +8 -33
  51. package/es/lib/CycleButton/index.js +0 -2
  52. package/es/lib/EditableRefdataCategoryList/EditableRefdataCategoryList.js +85 -131
  53. package/es/lib/EditableRefdataCategoryList/index.js +0 -2
  54. package/es/lib/EditableRefdataList/EditableRefdataList.js +90 -139
  55. package/es/lib/EditableRefdataList/index.js +0 -2
  56. package/es/lib/EditableSettingsList/EditableSettingsList.js +3 -13
  57. package/es/lib/EditableSettingsList/EditableSettingsListFieldArray.js +2 -15
  58. package/es/lib/EditableSettingsList/EditableSettingsListFieldArray.test.js +4 -19
  59. package/es/lib/EditableSettingsList/SettingField/EditSettingValue.js +3 -25
  60. package/es/lib/EditableSettingsList/SettingField/EditSettingValue.test.js +19 -26
  61. package/es/lib/EditableSettingsList/SettingField/RenderSettingValue.js +2 -20
  62. package/es/lib/EditableSettingsList/SettingField/RenderSettingValue.test.js +14 -35
  63. package/es/lib/EditableSettingsList/SettingField/SettingField.js +15 -51
  64. package/es/lib/EditableSettingsList/SettingField/SettingField.test.js +6 -31
  65. package/es/lib/EditableSettingsList/SettingField/index.js +0 -4
  66. package/es/lib/EditableSettingsList/index.js +0 -4
  67. package/es/lib/FormModal/FormModal.js +14 -34
  68. package/es/lib/FormModal/index.js +0 -2
  69. package/es/lib/IconSelect/IconSelect.js +29 -67
  70. package/es/lib/IconSelect/index.js +0 -2
  71. package/es/lib/NoResultsMessage/NoResultsMessage.js +13 -22
  72. package/es/lib/NoResultsMessage/index.js +0 -2
  73. package/es/lib/QueryTypedown/QueryTypedown.js +9 -36
  74. package/es/lib/QueryTypedown/index.js +0 -2
  75. package/es/lib/RefdataButtons/RefdataButtons.js +5 -24
  76. package/es/lib/RefdataButtons/index.js +0 -2
  77. package/es/lib/RichSelect/RichSelect.js +39 -67
  78. package/es/lib/RichSelect/index.js +0 -3
  79. package/es/lib/RichSelect/useSelectedOption.js +3 -14
  80. package/es/lib/SASQLookupComponent/SASQLookupComponent.js +36 -80
  81. package/es/lib/SASQLookupComponent/TableBody/TableBody.js +16 -29
  82. package/es/lib/SASQLookupComponent/TableBody/index.js +0 -2
  83. package/es/lib/SASQLookupComponent/index.js +0 -3
  84. package/es/lib/SASQRoute/SASQRoute.js +6 -23
  85. package/es/lib/SASQRoute/index.js +0 -2
  86. package/es/lib/SASQViewComponent/SASQViewComponent.js +17 -36
  87. package/es/lib/SASQViewComponent/index.js +0 -2
  88. package/es/lib/SearchField/SearchField.js +1 -17
  89. package/es/lib/SearchField/index.js +0 -2
  90. package/es/lib/SettingPage/SettingPage.js +6 -21
  91. package/es/lib/SettingPage/SettingPagePane.js +2 -17
  92. package/es/lib/SettingPage/index.js +0 -3
  93. package/es/lib/Typedown/Typedown.js +51 -82
  94. package/es/lib/Typedown/index.js +0 -2
  95. package/es/lib/contexts/SettingsContext.js +0 -2
  96. package/es/lib/contexts/index.js +0 -2
  97. package/es/lib/hooks/index.js +0 -16
  98. package/es/lib/hooks/settingsHooks/index.js +0 -4
  99. package/es/lib/hooks/settingsHooks/useAppSettings.js +6 -27
  100. package/es/lib/hooks/settingsHooks/useSettingSection.js +10 -20
  101. package/es/lib/hooks/settingsHooks/useSettings.js +10 -43
  102. package/es/lib/hooks/typedownHooks/index.js +0 -4
  103. package/es/lib/hooks/typedownHooks/useTypedown.js +17 -37
  104. package/es/lib/hooks/typedownHooks/useTypedownData.js +12 -26
  105. package/es/lib/hooks/typedownHooks/useTypedownToggle.js +5 -19
  106. package/es/lib/hooks/useActiveElement.js +3 -15
  107. package/es/lib/hooks/useAvailableCustomProperties.js +3 -22
  108. package/es/lib/hooks/useCustomProperties.js +11 -25
  109. package/es/lib/hooks/useHelperApp.js +7 -30
  110. package/es/lib/hooks/useInvalidateRefdata.js +0 -4
  111. package/es/lib/hooks/useKiwtFieldArray.js +5 -29
  112. package/es/lib/hooks/useKiwtSASQuery.js +12 -37
  113. package/es/lib/hooks/useLocalStorageState.js +5 -21
  114. package/es/lib/hooks/useMutateCustomProperties.js +11 -28
  115. package/es/lib/hooks/useMutateRefdataCategory.js +9 -29
  116. package/es/lib/hooks/useMutateRefdataValue.js +10 -27
  117. package/es/lib/hooks/useQIndex.js +3 -27
  118. package/es/lib/hooks/useRefdata.js +7 -16
  119. package/es/lib/hooks/useTemplates.js +6 -17
  120. package/es/lib/utils/buildUrl.js +1 -10
  121. package/es/lib/utils/generateKiwtQuery.js +0 -4
  122. package/es/lib/utils/generateKiwtQueryParams.js +24 -62
  123. package/es/lib/utils/groupCustomPropertiesByCtx.js +0 -14
  124. package/es/lib/utils/highlightString.js +6 -23
  125. package/es/lib/utils/index.js +0 -15
  126. package/es/lib/utils/matchString.js +0 -6
  127. package/es/lib/utils/parseErrorResponse.js +2 -24
  128. package/es/lib/utils/refdataQueryKey.js +0 -4
  129. package/es/lib/utils/renderHelpText.js +0 -7
  130. package/es/lib/utils/selectorSafe.js +0 -2
  131. package/es/lib/utils/sortByLabel.js +0 -6
  132. package/es/lib/utils/toCamelCase.js +6 -5
  133. package/es/lib/utils/typedownQueryKey.js +0 -4
  134. package/es/lib/utils/validators.js +4 -35
  135. package/junit.xml +151 -151
  136. package/package.json +1 -1
  137. package/src/artifacts/coverage-jest/lcov-report/ActionList/ActionList.js.html +5 -23
  138. package/src/artifacts/coverage-jest/lcov-report/ActionList/ActionListFieldArray.js.html +48 -282
  139. package/src/artifacts/coverage-jest/lcov-report/ActionList/index.html +9 -9
  140. package/src/artifacts/coverage-jest/lcov-report/ActionList/index.js.html +1 -1
  141. package/src/artifacts/coverage-jest/lcov-report/CustomProperties/Config/CustomPropertiesLookup.js.html +39 -171
  142. package/src/artifacts/coverage-jest/lcov-report/CustomProperties/Config/CustomPropertiesSettings.js.html +53 -272
  143. package/src/artifacts/coverage-jest/lcov-report/CustomProperties/Config/CustomPropertyForm.js.html +74 -293
  144. package/src/artifacts/coverage-jest/lcov-report/CustomProperties/Config/CustomPropertyView.js.html +54 -126
  145. package/src/artifacts/coverage-jest/lcov-report/CustomProperties/Config/index.html +56 -41
  146. package/src/artifacts/coverage-jest/lcov-report/CustomProperties/Config/index.js.html +1 -1
  147. package/src/artifacts/coverage-jest/lcov-report/CustomProperties/Config/testResources.js.html +793 -0
  148. package/src/artifacts/coverage-jest/lcov-report/CustomProperties/Edit/CustomPropertiesEdit.js.html +5 -23
  149. package/src/artifacts/coverage-jest/lcov-report/CustomProperties/Edit/CustomPropertiesEditCtx.js.html +42 -54
  150. package/src/artifacts/coverage-jest/lcov-report/CustomProperties/Edit/CustomPropertiesListField.js.html +54 -216
  151. package/src/artifacts/coverage-jest/lcov-report/CustomProperties/Edit/CustomPropertyField.js.html +37 -319
  152. package/src/artifacts/coverage-jest/lcov-report/CustomProperties/Edit/CustomPropertyFormCard.js.html +68 -41
  153. package/src/artifacts/coverage-jest/lcov-report/CustomProperties/Edit/index.html +53 -53
  154. package/src/artifacts/coverage-jest/lcov-report/CustomProperties/Edit/index.js.html +1 -1
  155. package/src/artifacts/coverage-jest/lcov-report/CustomProperties/Edit/testResources.js.html +3077 -74
  156. package/src/artifacts/coverage-jest/lcov-report/CustomProperties/Filter/CustomPropertiesFilter.js.html +45 -45
  157. package/src/artifacts/coverage-jest/lcov-report/CustomProperties/Filter/CustomPropertiesFilterField.js.html +64 -103
  158. package/src/artifacts/coverage-jest/lcov-report/CustomProperties/Filter/CustomPropertiesFilterFieldArray.js.html +63 -54
  159. package/src/artifacts/coverage-jest/lcov-report/CustomProperties/Filter/CustomPropertiesFilterForm.js.html +16 -49
  160. package/src/artifacts/coverage-jest/lcov-report/CustomProperties/Filter/CustomPropertiesRule.js.html +18 -69
  161. package/src/artifacts/coverage-jest/lcov-report/CustomProperties/Filter/index.html +81 -81
  162. package/src/artifacts/coverage-jest/lcov-report/CustomProperties/Filter/index.js.html +1 -1
  163. package/src/artifacts/coverage-jest/lcov-report/CustomProperties/Filter/testResources.js.html +786 -33
  164. package/src/artifacts/coverage-jest/lcov-report/CustomProperties/Filter/useOperators.js.html +45 -45
  165. package/src/artifacts/coverage-jest/lcov-report/CustomProperties/Filter/useParseActiveFilterStrings.js.html +6 -6
  166. package/src/artifacts/coverage-jest/lcov-report/CustomProperties/Filter/useValueProps.js.html +28 -43
  167. package/src/artifacts/coverage-jest/lcov-report/CustomProperties/View/CustomPropertiesView.js.html +2 -20
  168. package/src/artifacts/coverage-jest/lcov-report/CustomProperties/View/CustomPropertiesViewCtx.js.html +39 -45
  169. package/src/artifacts/coverage-jest/lcov-report/CustomProperties/View/CustomPropertyCard.js.html +74 -53
  170. package/src/artifacts/coverage-jest/lcov-report/CustomProperties/View/index.html +24 -24
  171. package/src/artifacts/coverage-jest/lcov-report/CustomProperties/View/index.js.html +1 -1
  172. package/src/artifacts/coverage-jest/lcov-report/CustomProperties/View/testResources.js.html +1 -1
  173. package/src/artifacts/coverage-jest/lcov-report/CustomProperties/index.html +1 -1
  174. package/src/artifacts/coverage-jest/lcov-report/CustomProperties/index.js.html +1 -1
  175. package/src/artifacts/coverage-jest/lcov-report/CycleButton/CycleButton.js.html +1 -1
  176. package/src/artifacts/coverage-jest/lcov-report/CycleButton/index.html +1 -1
  177. package/src/artifacts/coverage-jest/lcov-report/CycleButton/index.js.html +1 -1
  178. package/src/artifacts/coverage-jest/lcov-report/EditableRefdataCategoryList/EditableRefdataCategoryList.js.html +32 -86
  179. package/src/artifacts/coverage-jest/lcov-report/EditableRefdataCategoryList/index.html +3 -3
  180. package/src/artifacts/coverage-jest/lcov-report/EditableRefdataCategoryList/index.js.html +1 -1
  181. package/src/artifacts/coverage-jest/lcov-report/EditableRefdataList/EditableRefdataList.js.html +37 -109
  182. package/src/artifacts/coverage-jest/lcov-report/EditableRefdataList/index.html +3 -3
  183. package/src/artifacts/coverage-jest/lcov-report/EditableRefdataList/index.js.html +1 -1
  184. package/src/artifacts/coverage-jest/lcov-report/EditableSettingsList/EditableSettingsList.js.html +14 -41
  185. package/src/artifacts/coverage-jest/lcov-report/EditableSettingsList/EditableSettingsListFieldArray.js.html +6 -45
  186. package/src/artifacts/coverage-jest/lcov-report/EditableSettingsList/SettingField/EditSettingValue.js.html +11 -47
  187. package/src/artifacts/coverage-jest/lcov-report/EditableSettingsList/SettingField/RenderSettingValue.js.html +14 -65
  188. package/src/artifacts/coverage-jest/lcov-report/EditableSettingsList/SettingField/SettingField.js.html +31 -154
  189. package/src/artifacts/coverage-jest/lcov-report/EditableSettingsList/SettingField/index.html +26 -26
  190. package/src/artifacts/coverage-jest/lcov-report/EditableSettingsList/SettingField/index.js.html +1 -1
  191. package/src/artifacts/coverage-jest/lcov-report/EditableSettingsList/index.html +18 -18
  192. package/src/artifacts/coverage-jest/lcov-report/EditableSettingsList/index.js.html +1 -1
  193. package/src/artifacts/coverage-jest/lcov-report/FormModal/FormModal.js.html +17 -35
  194. package/src/artifacts/coverage-jest/lcov-report/FormModal/index.html +15 -15
  195. package/src/artifacts/coverage-jest/lcov-report/FormModal/index.js.html +1 -1
  196. package/src/artifacts/coverage-jest/lcov-report/FormattedKintMessage/FormattedKintMessage.js.html +3 -3
  197. package/src/artifacts/coverage-jest/lcov-report/FormattedKintMessage/index.html +1 -1
  198. package/src/artifacts/coverage-jest/lcov-report/FormattedKintMessage/index.js.html +1 -1
  199. package/src/artifacts/coverage-jest/lcov-report/IconSelect/IconSelect.js.html +14 -41
  200. package/src/artifacts/coverage-jest/lcov-report/IconSelect/index.html +7 -7
  201. package/src/artifacts/coverage-jest/lcov-report/IconSelect/index.js.html +1 -1
  202. package/src/artifacts/coverage-jest/lcov-report/NoResultsMessage/NoResultsMessage.js.html +6 -48
  203. package/src/artifacts/coverage-jest/lcov-report/NoResultsMessage/index.html +7 -7
  204. package/src/artifacts/coverage-jest/lcov-report/NoResultsMessage/index.js.html +1 -1
  205. package/src/artifacts/coverage-jest/lcov-report/QueryTypedown/QueryTypedown.js.html +1 -1
  206. package/src/artifacts/coverage-jest/lcov-report/QueryTypedown/index.html +1 -1
  207. package/src/artifacts/coverage-jest/lcov-report/QueryTypedown/index.js.html +1 -1
  208. package/src/artifacts/coverage-jest/lcov-report/RefdataButtons/RefdataButtons.js.html +3 -3
  209. package/src/artifacts/coverage-jest/lcov-report/RefdataButtons/index.html +1 -1
  210. package/src/artifacts/coverage-jest/lcov-report/RefdataButtons/index.js.html +1 -1
  211. package/src/artifacts/coverage-jest/lcov-report/ResponsiveButtonGroup/ResponsiveButtonGroup.js.html +535 -0
  212. package/src/artifacts/coverage-jest/lcov-report/ResponsiveButtonGroup/index.html +146 -0
  213. package/src/artifacts/coverage-jest/lcov-report/ResponsiveButtonGroup/index.js.html +88 -0
  214. package/src/artifacts/coverage-jest/lcov-report/ResponsiveButtonGroup/useResponsiveButtonGroupSizing.js.html +253 -0
  215. package/src/artifacts/coverage-jest/lcov-report/RichSelect/RichSelect.js.html +82 -22
  216. package/src/artifacts/coverage-jest/lcov-report/RichSelect/index.html +3 -3
  217. package/src/artifacts/coverage-jest/lcov-report/RichSelect/index.js.html +1 -1
  218. package/src/artifacts/coverage-jest/lcov-report/RichSelect/useSelectedOption.js.html +1 -1
  219. package/src/artifacts/coverage-jest/lcov-report/SASQLookupComponent/SASQLookupComponent.js.html +7 -52
  220. package/src/artifacts/coverage-jest/lcov-report/SASQLookupComponent/TableBody/TableBody.js.html +4 -31
  221. package/src/artifacts/coverage-jest/lcov-report/SASQLookupComponent/TableBody/index.html +3 -3
  222. package/src/artifacts/coverage-jest/lcov-report/SASQLookupComponent/TableBody/index.js.html +1 -1
  223. package/src/artifacts/coverage-jest/lcov-report/SASQLookupComponent/index.html +7 -7
  224. package/src/artifacts/coverage-jest/lcov-report/SASQLookupComponent/index.js.html +1 -1
  225. package/src/artifacts/coverage-jest/lcov-report/SASQRoute/SASQRoute.js.html +1 -1
  226. package/src/artifacts/coverage-jest/lcov-report/SASQRoute/index.html +1 -1
  227. package/src/artifacts/coverage-jest/lcov-report/SASQRoute/index.js.html +1 -1
  228. package/src/artifacts/coverage-jest/lcov-report/SASQViewComponent/SASQViewComponent.js.html +1 -1
  229. package/src/artifacts/coverage-jest/lcov-report/SASQViewComponent/index.html +1 -1
  230. package/src/artifacts/coverage-jest/lcov-report/SASQViewComponent/index.js.html +1 -1
  231. package/src/artifacts/coverage-jest/lcov-report/SearchField/SearchField.js.html +1 -1
  232. package/src/artifacts/coverage-jest/lcov-report/SearchField/index.html +1 -1
  233. package/src/artifacts/coverage-jest/lcov-report/SearchField/index.js.html +1 -1
  234. package/src/artifacts/coverage-jest/lcov-report/SettingPage/SettingPage.js.html +27 -24
  235. package/src/artifacts/coverage-jest/lcov-report/SettingPage/SettingPagePane.js.html +17 -47
  236. package/src/artifacts/coverage-jest/lcov-report/SettingPage/index.html +22 -22
  237. package/src/artifacts/coverage-jest/lcov-report/SettingPage/index.js.html +1 -1
  238. package/src/artifacts/coverage-jest/lcov-report/Typedown/Typedown.js.html +1 -1
  239. package/src/artifacts/coverage-jest/lcov-report/Typedown/index.html +1 -1
  240. package/src/artifacts/coverage-jest/lcov-report/Typedown/index.js.html +1 -1
  241. package/src/artifacts/coverage-jest/lcov-report/constants/customProperties.js.html +1 -1
  242. package/src/artifacts/coverage-jest/lcov-report/constants/eventCodes.js.html +1 -1
  243. package/src/artifacts/coverage-jest/lcov-report/constants/index.html +1 -1
  244. package/src/artifacts/coverage-jest/lcov-report/contexts/SettingsContext.js.html +1 -1
  245. package/src/artifacts/coverage-jest/lcov-report/contexts/index.html +1 -1
  246. package/src/artifacts/coverage-jest/lcov-report/contexts/index.js.html +1 -1
  247. package/src/artifacts/coverage-jest/lcov-report/hooks/index.html +106 -136
  248. package/src/artifacts/coverage-jest/lcov-report/hooks/index.js.html +3 -9
  249. package/src/artifacts/coverage-jest/lcov-report/hooks/settingsHooks/index.html +25 -25
  250. package/src/artifacts/coverage-jest/lcov-report/hooks/settingsHooks/index.js.html +1 -1
  251. package/src/artifacts/coverage-jest/lcov-report/hooks/settingsHooks/useAppSettings.js.html +7 -7
  252. package/src/artifacts/coverage-jest/lcov-report/hooks/settingsHooks/useSettingSection.js.html +7 -7
  253. package/src/artifacts/coverage-jest/lcov-report/hooks/settingsHooks/useSettings.js.html +22 -61
  254. package/src/artifacts/coverage-jest/lcov-report/hooks/typedownHooks/index.html +1 -1
  255. package/src/artifacts/coverage-jest/lcov-report/hooks/typedownHooks/index.js.html +1 -1
  256. package/src/artifacts/coverage-jest/lcov-report/hooks/typedownHooks/useTypedown.js.html +1 -1
  257. package/src/artifacts/coverage-jest/lcov-report/hooks/typedownHooks/useTypedownData.js.html +1 -1
  258. package/src/artifacts/coverage-jest/lcov-report/hooks/typedownHooks/useTypedownToggle.js.html +1 -1
  259. package/src/artifacts/coverage-jest/lcov-report/hooks/useActiveElement.js.html +7 -7
  260. package/src/artifacts/coverage-jest/lcov-report/hooks/useAvailableCustomProperties.js.html +205 -0
  261. package/src/artifacts/coverage-jest/lcov-report/hooks/useCustomProperties.js.html +37 -37
  262. package/src/artifacts/coverage-jest/lcov-report/hooks/useHelperApp.js.html +7 -7
  263. package/src/artifacts/coverage-jest/lcov-report/hooks/useIntlKey.js.html +1 -1
  264. package/src/artifacts/coverage-jest/lcov-report/hooks/useIntlKeyStore.js.html +3 -3
  265. package/src/artifacts/coverage-jest/lcov-report/hooks/useInvalidateRefdata.js.html +7 -7
  266. package/src/artifacts/coverage-jest/lcov-report/hooks/useKintIntl.js.html +1 -1
  267. package/src/artifacts/coverage-jest/lcov-report/hooks/useKiwtFieldArray.js.html +7 -7
  268. package/src/artifacts/coverage-jest/lcov-report/hooks/useKiwtSASQuery.js.html +9 -9
  269. package/src/artifacts/coverage-jest/lcov-report/hooks/useLocalStorageState.js.html +7 -7
  270. package/src/artifacts/coverage-jest/lcov-report/hooks/useMutateCustomProperties.js.html +7 -7
  271. package/src/artifacts/coverage-jest/lcov-report/hooks/useMutateRefdataCategory.js.html +7 -7
  272. package/src/artifacts/coverage-jest/lcov-report/hooks/useMutateRefdataValue.js.html +7 -7
  273. package/src/artifacts/coverage-jest/lcov-report/hooks/useQIndex.js.html +7 -7
  274. package/src/artifacts/coverage-jest/lcov-report/hooks/useRefdata.js.html +9 -9
  275. package/src/artifacts/coverage-jest/lcov-report/hooks/useSASQQueryMeta.js.html +187 -0
  276. package/src/artifacts/coverage-jest/lcov-report/hooks/useTemplates.js.html +7 -7
  277. package/src/artifacts/coverage-jest/lcov-report/index.html +129 -144
  278. package/src/artifacts/coverage-jest/lcov-report/utils/buildUrl.js.html +1 -1
  279. package/src/artifacts/coverage-jest/lcov-report/utils/generateKiwtQuery.js.html +16 -16
  280. package/src/artifacts/coverage-jest/lcov-report/utils/generateKiwtQueryParams.js.html +66 -66
  281. package/src/artifacts/coverage-jest/lcov-report/utils/groupCustomPropertiesByCtx.js.html +7 -7
  282. package/src/artifacts/coverage-jest/lcov-report/utils/highlightString.js.html +3 -3
  283. package/src/artifacts/coverage-jest/lcov-report/utils/index.html +55 -40
  284. package/src/artifacts/coverage-jest/lcov-report/utils/index.js.html +3 -33
  285. package/src/artifacts/coverage-jest/lcov-report/utils/matchString.js.html +2 -2
  286. package/src/artifacts/coverage-jest/lcov-report/utils/parseErrorResponse.js.html +3 -3
  287. package/src/artifacts/coverage-jest/lcov-report/utils/refdataOptions.js.html +1 -1
  288. package/src/artifacts/coverage-jest/lcov-report/utils/refdataQueryKey.js.html +2 -2
  289. package/src/artifacts/coverage-jest/lcov-report/utils/renderHelpText.js.html +166 -0
  290. package/src/artifacts/coverage-jest/lcov-report/utils/selectorSafe.js.html +2 -2
  291. package/src/artifacts/coverage-jest/lcov-report/utils/sortByLabel.js.html +2 -2
  292. package/src/artifacts/coverage-jest/lcov-report/utils/toCamelCase.js.html +2 -2
  293. package/src/artifacts/coverage-jest/lcov-report/utils/typedownQueryKey.js.html +2 -2
  294. package/src/artifacts/coverage-jest/lcov-report/utils/validators.js.html +80 -128
  295. package/src/artifacts/coverage-jest/lcov.info +2284 -2232
  296. package/src/lib/CustomProperties/Edit/CustomPropertiesListField.js +0 -1
  297. package/src/lib/utils/parseErrorResponse.js +1 -1
  298. package/translate.sh +4 -0
  299. package/translations/stripes-kint-components/ar.json +12 -12
  300. package/translations/stripes-kint-components/cs_CZ.json +4 -4
  301. package/translations/stripes-kint-components/en_GB.json +1 -0
  302. package/translations/stripes-kint-components/en_SE.json +1 -0
  303. package/translations/stripes-kint-components/es_419.json +122 -0
  304. package/translations/stripes-kint-components/es_ES.json +122 -0
  305. package/translations/stripes-kint-components/fr.json +105 -1
  306. package/translations/stripes-kint-components/fr_FR.json +105 -0
  307. package/translations/stripes-kint-components/hu.json +12 -12
  308. package/translations/stripes-kint-components/it_IT.json +6 -6
  309. package/translations/stripes-kint-components/pt_PT.json +6 -6
  310. package/translations/stripes-kint-components/ru.json +1 -1
  311. package/translations/stripes-kint-components/sv.json +7 -7
  312. package/translations/stripes-kint-components/zh_TW.json +122 -0
  313. package/yarn-error.log +147 -0
@@ -30,9 +30,9 @@
30
30
 
31
31
 
32
32
  <div class='fl pad1y space-right2'>
33
- <span class="strong">88.88% </span>
33
+ <span class="strong">87.5% </span>
34
34
  <span class="quiet">Branches</span>
35
- <span class='fraction'>8/9</span>
35
+ <span class='fraction'>7/8</span>
36
36
  </div>
37
37
 
38
38
 
@@ -160,19 +160,7 @@
160
160
  <a name='L95'></a><a href='#L95'>95</a>
161
161
  <a name='L96'></a><a href='#L96'>96</a>
162
162
  <a name='L97'></a><a href='#L97'>97</a>
163
- <a name='L98'></a><a href='#L98'>98</a>
164
- <a name='L99'></a><a href='#L99'>99</a>
165
- <a name='L100'></a><a href='#L100'>100</a>
166
- <a name='L101'></a><a href='#L101'>101</a>
167
- <a name='L102'></a><a href='#L102'>102</a>
168
- <a name='L103'></a><a href='#L103'>103</a>
169
- <a name='L104'></a><a href='#L104'>104</a>
170
- <a name='L105'></a><a href='#L105'>105</a>
171
- <a name='L106'></a><a href='#L106'>106</a>
172
- <a name='L107'></a><a href='#L107'>107</a>
173
- <a name='L108'></a><a href='#L108'>108</a>
174
- <a name='L109'></a><a href='#L109'>109</a>
175
- <a name='L110'></a><a href='#L110'>110</a></td><td class="line-coverage quiet"><span class="cline-any cline-neutral">&nbsp;</span>
163
+ <a name='L98'></a><a href='#L98'>98</a></td><td class="line-coverage quiet"><span class="cline-any cline-neutral">&nbsp;</span>
176
164
  <span class="cline-any cline-neutral">&nbsp;</span>
177
165
  <span class="cline-any cline-neutral">&nbsp;</span>
178
166
  <span class="cline-any cline-neutral">&nbsp;</span>
@@ -183,24 +171,16 @@
183
171
  <span class="cline-any cline-neutral">&nbsp;</span>
184
172
  <span class="cline-any cline-neutral">&nbsp;</span>
185
173
  <span class="cline-any cline-neutral">&nbsp;</span>
186
- <span class="cline-any cline-yes">1x</span>
187
- <span class="cline-any cline-neutral">&nbsp;</span>
188
- <span class="cline-any cline-neutral">&nbsp;</span>
189
- <span class="cline-any cline-neutral">&nbsp;</span>
174
+ <span class="cline-any cline-yes">5x</span>
190
175
  <span class="cline-any cline-neutral">&nbsp;</span>
191
176
  <span class="cline-any cline-neutral">&nbsp;</span>
192
177
  <span class="cline-any cline-neutral">&nbsp;</span>
193
178
  <span class="cline-any cline-neutral">&nbsp;</span>
194
179
  <span class="cline-any cline-neutral">&nbsp;</span>
195
180
  <span class="cline-any cline-yes">16x</span>
196
- <span class="cline-any cline-neutral">&nbsp;</span>
197
181
  <span class="cline-any cline-yes">16x</span>
198
- <span class="cline-any cline-neutral">&nbsp;</span>
199
182
  <span class="cline-any cline-yes">16x</span>
200
183
  <span class="cline-any cline-neutral">&nbsp;</span>
201
- <span class="cline-any cline-neutral">&nbsp;</span>
202
- <span class="cline-any cline-neutral">&nbsp;</span>
203
- <span class="cline-any cline-neutral">&nbsp;</span>
204
184
  <span class="cline-any cline-yes">16x</span>
205
185
  <span class="cline-any cline-neutral">&nbsp;</span>
206
186
  <span class="cline-any cline-neutral">&nbsp;</span>
@@ -262,11 +242,7 @@
262
242
  <span class="cline-any cline-neutral">&nbsp;</span>
263
243
  <span class="cline-any cline-neutral">&nbsp;</span>
264
244
  <span class="cline-any cline-neutral">&nbsp;</span>
265
- <span class="cline-any cline-yes">1x</span>
266
- <span class="cline-any cline-neutral">&nbsp;</span>
267
- <span class="cline-any cline-neutral">&nbsp;</span>
268
- <span class="cline-any cline-neutral">&nbsp;</span>
269
- <span class="cline-any cline-neutral">&nbsp;</span>
245
+ <span class="cline-any cline-yes">5x</span>
270
246
  <span class="cline-any cline-neutral">&nbsp;</span>
271
247
  <span class="cline-any cline-neutral">&nbsp;</span>
272
248
  <span class="cline-any cline-neutral">&nbsp;</span>
@@ -283,6 +259,7 @@
283
259
  <span class="cline-any cline-neutral">&nbsp;</span>
284
260
  <span class="cline-any cline-neutral">&nbsp;</span></td><td class="text"><pre class="prettyprint lang-js">import React from 'react';
285
261
  import PropTypes from 'prop-types';
262
+ import { useIntl } from 'react-intl';
286
263
  &nbsp;
287
264
  import { Field } from 'react-final-form';
288
265
  import {
@@ -290,25 +267,16 @@ import {
290
267
  TextField,
291
268
  } from '@folio/stripes/components';
292
269
  import RefdataButtons from '../../RefdataButtons';
293
- import { useKintIntl } from '../../hooks';
294
270
  &nbsp;
295
271
  const EditSettingValue = (props) =&gt; {
296
272
  const {
297
- currentSetting: setting,
298
273
  input,
299
- intlKey: passedIntlKey,
300
- intlNS: passedIntlNS,
301
- labelOverrides = {},
274
+ currentSetting: setting,
302
275
  refdata,
303
276
  templates
304
277
  } = props;
305
- &nbsp;
306
- const kintIntl = useKintIntl(passedIntlKey, passedIntlNS);
307
- &nbsp;
308
- const fieldLabel = kintIntl.formatKintMessage({
309
- id: 'settings.valueFor',
310
- overrideValue: labelOverrides?.valueFor
311
- }, { name: setting.key });
278
+ const intl = useIntl();
279
+ const fieldLabel = intl.formatMessage({ id: 'stripes-kint-components.settings.valueFor', values: { name: setting.key } });
312
280
  &nbsp;
313
281
  switch (setting.settingType) {
314
282
  case 'Refdata':
@@ -373,15 +341,11 @@ const EditSettingValue = (props) =&gt; {
373
341
  &nbsp;
374
342
  EditSettingValue.propTypes = {
375
343
  currentSetting: PropTypes.shape({
376
- settingType: PropTypes.string,
377
- key: PropTypes.string,
344
+ settingType: PropTypes.string
378
345
  }),
379
346
  input: PropTypes.shape({
380
347
  name: PropTypes.string
381
348
  }),
382
- intlKey: PropTypes.string,
383
- intlNS: PropTypes.string,
384
- labelOverrides: PropTypes.object,
385
349
  refdata: PropTypes.arrayOf(PropTypes.object),
386
350
  templates: PropTypes.arrayOf(PropTypes.shape({
387
351
  name: PropTypes.string,
@@ -397,7 +361,7 @@ export default EditSettingValue;
397
361
  <div class='footer quiet pad2 space-top1 center small'>
398
362
  Code coverage generated by
399
363
  <a href="https://istanbul.js.org/" target="_blank" rel="noopener noreferrer">istanbul</a>
400
- at 2022-09-16T13:23:25.290Z
364
+ at 2022-11-22T09:57:19.883Z
401
365
  </div>
402
366
  <script src="../../prettify.js"></script>
403
367
  <script>
@@ -25,14 +25,14 @@
25
25
  <div class='fl pad1y space-right2'>
26
26
  <span class="strong">100% </span>
27
27
  <span class="quiet">Statements</span>
28
- <span class='fraction'>29/29</span>
28
+ <span class='fraction'>28/28</span>
29
29
  </div>
30
30
 
31
31
 
32
32
  <div class='fl pad1y space-right2'>
33
- <span class="strong">95.65% </span>
33
+ <span class="strong">95.45% </span>
34
34
  <span class="quiet">Branches</span>
35
- <span class='fraction'>22/23</span>
35
+ <span class='fraction'>21/22</span>
36
36
  </div>
37
37
 
38
38
 
@@ -46,7 +46,7 @@
46
46
  <div class='fl pad1y space-right2'>
47
47
  <span class="strong">100% </span>
48
48
  <span class="quiet">Lines</span>
49
- <span class='fraction'>27/27</span>
49
+ <span class='fraction'>26/26</span>
50
50
  </div>
51
51
 
52
52
 
@@ -122,31 +122,10 @@
122
122
  <a name='L57'></a><a href='#L57'>57</a>
123
123
  <a name='L58'></a><a href='#L58'>58</a>
124
124
  <a name='L59'></a><a href='#L59'>59</a>
125
- <a name='L60'></a><a href='#L60'>60</a>
126
- <a name='L61'></a><a href='#L61'>61</a>
127
- <a name='L62'></a><a href='#L62'>62</a>
128
- <a name='L63'></a><a href='#L63'>63</a>
129
- <a name='L64'></a><a href='#L64'>64</a>
130
- <a name='L65'></a><a href='#L65'>65</a>
131
- <a name='L66'></a><a href='#L66'>66</a>
132
- <a name='L67'></a><a href='#L67'>67</a>
133
- <a name='L68'></a><a href='#L68'>68</a>
134
- <a name='L69'></a><a href='#L69'>69</a>
135
- <a name='L70'></a><a href='#L70'>70</a>
136
- <a name='L71'></a><a href='#L71'>71</a>
137
- <a name='L72'></a><a href='#L72'>72</a>
138
- <a name='L73'></a><a href='#L73'>73</a>
139
- <a name='L74'></a><a href='#L74'>74</a>
140
- <a name='L75'></a><a href='#L75'>75</a>
141
- <a name='L76'></a><a href='#L76'>76</a>
142
- <a name='L77'></a><a href='#L77'>77</a></td><td class="line-coverage quiet"><span class="cline-any cline-neutral">&nbsp;</span>
143
- <span class="cline-any cline-neutral">&nbsp;</span>
144
- <span class="cline-any cline-neutral">&nbsp;</span>
145
- <span class="cline-any cline-neutral">&nbsp;</span>
146
- <span class="cline-any cline-yes">1x</span>
147
- <span class="cline-any cline-neutral">&nbsp;</span>
125
+ <a name='L60'></a><a href='#L60'>60</a></td><td class="line-coverage quiet"><span class="cline-any cline-neutral">&nbsp;</span>
148
126
  <span class="cline-any cline-neutral">&nbsp;</span>
149
127
  <span class="cline-any cline-neutral">&nbsp;</span>
128
+ <span class="cline-any cline-yes">5x</span>
150
129
  <span class="cline-any cline-neutral">&nbsp;</span>
151
130
  <span class="cline-any cline-neutral">&nbsp;</span>
152
131
  <span class="cline-any cline-neutral">&nbsp;</span>
@@ -156,10 +135,6 @@
156
135
  <span class="cline-any cline-yes">12x</span>
157
136
  <span class="cline-any cline-neutral">&nbsp;</span>
158
137
  <span class="cline-any cline-yes">12x</span>
159
- <span class="cline-any cline-neutral">&nbsp;</span>
160
- <span class="cline-any cline-neutral">&nbsp;</span>
161
- <span class="cline-any cline-neutral">&nbsp;</span>
162
- <span class="cline-any cline-neutral">&nbsp;</span>
163
138
  <span class="cline-any cline-yes">12x</span>
164
139
  <span class="cline-any cline-yes">12x</span>
165
140
  <span class="cline-any cline-neutral">&nbsp;</span>
@@ -205,38 +180,21 @@
205
180
  <span class="cline-any cline-neutral">&nbsp;</span>
206
181
  <span class="cline-any cline-neutral">&nbsp;</span>
207
182
  <span class="cline-any cline-neutral">&nbsp;</span>
208
- <span class="cline-any cline-yes">1x</span>
209
- <span class="cline-any cline-neutral">&nbsp;</span>
210
- <span class="cline-any cline-neutral">&nbsp;</span>
211
- <span class="cline-any cline-neutral">&nbsp;</span>
212
- <span class="cline-any cline-neutral">&nbsp;</span>
213
- <span class="cline-any cline-neutral">&nbsp;</span>
214
- <span class="cline-any cline-neutral">&nbsp;</span>
215
- <span class="cline-any cline-neutral">&nbsp;</span>
216
183
  <span class="cline-any cline-neutral">&nbsp;</span>
217
- <span class="cline-any cline-neutral">&nbsp;</span>
218
- <span class="cline-any cline-neutral">&nbsp;</span></td><td class="text"><pre class="prettyprint lang-js">import PropTypes from 'prop-types';
219
- &nbsp;
220
- import { useKintIntl } from '../../hooks';
184
+ <span class="cline-any cline-neutral">&nbsp;</span></td><td class="text"><pre class="prettyprint lang-js">import React from 'react';
185
+ import { FormattedMessage, useIntl } from 'react-intl';
221
186
  &nbsp;
222
187
  const RenderSettingValue = (props) =&gt; {
223
188
  const {
224
189
  currentSetting: setting,
225
- intlKey: passedIntlKey,
226
- intlNS: passedIntlNS,
227
- labelOverrides = {},
228
- refdata, // TODO ... can we get away without passing these in now, using useRefdata?
229
- templates // TODO ... can we get away without passing these in now, using useTemplates?
190
+ refdata,
191
+ templates
230
192
  } = props;
231
193
  &nbsp;
232
- const kintIntl = useKintIntl(passedIntlKey, passedIntlNS);
233
- &nbsp;
234
- const NoCurrentValue = kintIntl.formatKintMessage({
235
- id: 'settings.noCurrentValue',
236
- overrideValue: labelOverrides?.noCurrentValue
237
- });
194
+ const intl = useIntl();
238
195
  &nbsp;
239
- const defaultText = `[${kintIntl.formatKintMessage({ id: 'settings.default', overrideValue: labelOverrides?.default })}]`;
196
+ const NoCurrentValue = &lt;FormattedMessage id="stripes-kint-components.settings.noCurrentValue" /&gt;;
197
+ const defaultText = `[${intl.formatMessage({ id: 'stripes-kint-components.settings.default' })}]`;
240
198
  switch (setting.settingType) {
241
199
  case 'Refdata': {
242
200
  if (setting.value) {
@@ -281,15 +239,6 @@ const RenderSettingValue = (props) =&gt; {
281
239
  }
282
240
  };
283
241
  &nbsp;
284
- RenderSettingValue.propTypes = {
285
- currentSetting: PropTypes.object,
286
- intlKey: PropTypes.string,
287
- intlNS: PropTypes.string,
288
- labelOverrides: PropTypes.object,
289
- refdata: PropTypes.arrayOf(PropTypes.object),
290
- templates: PropTypes.arrayOf(PropTypes.object),
291
- };
292
- &nbsp;
293
242
  export default RenderSettingValue;
294
243
  &nbsp;</pre></td></tr></table></pre>
295
244
 
@@ -298,7 +247,7 @@ export default RenderSettingValue;
298
247
  <div class='footer quiet pad2 space-top1 center small'>
299
248
  Code coverage generated by
300
249
  <a href="https://istanbul.js.org/" target="_blank" rel="noopener noreferrer">istanbul</a>
301
- at 2022-09-16T13:23:25.290Z
250
+ at 2022-11-22T09:57:19.883Z
302
251
  </div>
303
252
  <script src="../../prettify.js"></script>
304
253
  <script>
@@ -23,30 +23,30 @@
23
23
  <div class='clearfix'>
24
24
 
25
25
  <div class='fl pad1y space-right2'>
26
- <span class="strong">67.64% </span>
26
+ <span class="strong">100% </span>
27
27
  <span class="quiet">Statements</span>
28
- <span class='fraction'>23/34</span>
28
+ <span class='fraction'>22/22</span>
29
29
  </div>
30
30
 
31
31
 
32
32
  <div class='fl pad1y space-right2'>
33
- <span class="strong">61.11% </span>
33
+ <span class="strong">70.58% </span>
34
34
  <span class="quiet">Branches</span>
35
- <span class='fraction'>11/18</span>
35
+ <span class='fraction'>12/17</span>
36
36
  </div>
37
37
 
38
38
 
39
39
  <div class='fl pad1y space-right2'>
40
- <span class="strong">31.25% </span>
40
+ <span class="strong">100% </span>
41
41
  <span class="quiet">Functions</span>
42
- <span class='fraction'>5/16</span>
42
+ <span class='fraction'>5/5</span>
43
43
  </div>
44
44
 
45
45
 
46
46
  <div class='fl pad1y space-right2'>
47
- <span class="strong">67.64% </span>
47
+ <span class="strong">100% </span>
48
48
  <span class="quiet">Lines</span>
49
- <span class='fraction'>23/34</span>
49
+ <span class='fraction'>22/22</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 high'></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>
@@ -180,48 +180,7 @@
180
180
  <a name='L115'></a><a href='#L115'>115</a>
181
181
  <a name='L116'></a><a href='#L116'>116</a>
182
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>
193
- <a name='L128'></a><a href='#L128'>128</a>
194
- <a name='L129'></a><a href='#L129'>129</a>
195
- <a name='L130'></a><a href='#L130'>130</a>
196
- <a name='L131'></a><a href='#L131'>131</a>
197
- <a name='L132'></a><a href='#L132'>132</a>
198
- <a name='L133'></a><a href='#L133'>133</a>
199
- <a name='L134'></a><a href='#L134'>134</a>
200
- <a name='L135'></a><a href='#L135'>135</a>
201
- <a name='L136'></a><a href='#L136'>136</a>
202
- <a name='L137'></a><a href='#L137'>137</a>
203
- <a name='L138'></a><a href='#L138'>138</a>
204
- <a name='L139'></a><a href='#L139'>139</a>
205
- <a name='L140'></a><a href='#L140'>140</a>
206
- <a name='L141'></a><a href='#L141'>141</a>
207
- <a name='L142'></a><a href='#L142'>142</a>
208
- <a name='L143'></a><a href='#L143'>143</a>
209
- <a name='L144'></a><a href='#L144'>144</a>
210
- <a name='L145'></a><a href='#L145'>145</a>
211
- <a name='L146'></a><a href='#L146'>146</a>
212
- <a name='L147'></a><a href='#L147'>147</a>
213
- <a name='L148'></a><a href='#L148'>148</a>
214
- <a name='L149'></a><a href='#L149'>149</a>
215
- <a name='L150'></a><a href='#L150'>150</a>
216
- <a name='L151'></a><a href='#L151'>151</a>
217
- <a name='L152'></a><a href='#L152'>152</a>
218
- <a name='L153'></a><a href='#L153'>153</a>
219
- <a name='L154'></a><a href='#L154'>154</a>
220
- <a name='L155'></a><a href='#L155'>155</a>
221
- <a name='L156'></a><a href='#L156'>156</a>
222
- <a name='L157'></a><a href='#L157'>157</a>
223
- <a name='L158'></a><a href='#L158'>158</a>
224
- <a name='L159'></a><a href='#L159'>159</a></td><td class="line-coverage quiet"><span class="cline-any cline-neutral">&nbsp;</span>
183
+ <a name='L118'></a><a href='#L118'>118</a></td><td class="line-coverage quiet"><span class="cline-any cline-neutral">&nbsp;</span>
225
184
  <span class="cline-any cline-neutral">&nbsp;</span>
226
185
  <span class="cline-any cline-neutral">&nbsp;</span>
227
186
  <span class="cline-any cline-neutral">&nbsp;</span>
@@ -237,11 +196,7 @@
237
196
  <span class="cline-any cline-neutral">&nbsp;</span>
238
197
  <span class="cline-any cline-neutral">&nbsp;</span>
239
198
  <span class="cline-any cline-neutral">&nbsp;</span>
240
- <span class="cline-any cline-neutral">&nbsp;</span>
241
- <span class="cline-any cline-yes">1x</span>
242
- <span class="cline-any cline-neutral">&nbsp;</span>
243
- <span class="cline-any cline-neutral">&nbsp;</span>
244
- <span class="cline-any cline-neutral">&nbsp;</span>
199
+ <span class="cline-any cline-yes">5x</span>
245
200
  <span class="cline-any cline-neutral">&nbsp;</span>
246
201
  <span class="cline-any cline-neutral">&nbsp;</span>
247
202
  <span class="cline-any cline-neutral">&nbsp;</span>
@@ -274,40 +229,12 @@
274
229
  <span class="cline-any cline-neutral">&nbsp;</span>
275
230
  <span class="cline-any cline-neutral">&nbsp;</span>
276
231
  <span class="cline-any cline-yes">5x</span>
277
- <span class="cline-any cline-no">&nbsp;</span>
278
- <span class="cline-any cline-neutral">&nbsp;</span>
279
- <span class="cline-any cline-neutral">&nbsp;</span>
280
- <span class="cline-any cline-neutral">&nbsp;</span>
281
- <span class="cline-any cline-neutral">&nbsp;</span>
282
- <span class="cline-any cline-neutral">&nbsp;</span>
283
- <span class="cline-any cline-no">&nbsp;</span>
284
- <span class="cline-any cline-no">&nbsp;</span>
285
- <span class="cline-any cline-no">&nbsp;</span>
286
- <span class="cline-any cline-no">&nbsp;</span>
287
- <span class="cline-any cline-no">&nbsp;</span>
288
- <span class="cline-any cline-no">&nbsp;</span>
289
- <span class="cline-any cline-no">&nbsp;</span>
290
- <span class="cline-any cline-no">&nbsp;</span>
291
- <span class="cline-any cline-no">&nbsp;</span>
292
- <span class="cline-any cline-no">&nbsp;</span>
293
- <span class="cline-any cline-neutral">&nbsp;</span>
294
- <span class="cline-any cline-neutral">&nbsp;</span>
295
- <span class="cline-any cline-neutral">&nbsp;</span>
296
- <span class="cline-any cline-neutral">&nbsp;</span>
297
- <span class="cline-any cline-neutral">&nbsp;</span>
298
- <span class="cline-any cline-neutral">&nbsp;</span>
299
- <span class="cline-any cline-yes">5x</span>
300
232
  <span class="cline-any cline-yes">5x</span>
301
233
  <span class="cline-any cline-neutral">&nbsp;</span>
302
234
  <span class="cline-any cline-neutral">&nbsp;</span>
303
- <span class="cline-any cline-neutral">&nbsp;</span>
304
- <span class="cline-any cline-neutral">&nbsp;</span>
305
- <span class="cline-any cline-neutral">&nbsp;</span>
306
- <span class="cline-any cline-neutral">&nbsp;</span>
307
235
  <span class="cline-any cline-yes">5x</span>
308
236
  <span class="cline-any cline-neutral">&nbsp;</span>
309
237
  <span class="cline-any cline-neutral">&nbsp;</span>
310
- <span class="cline-any cline-neutral">&nbsp;</span>
311
238
  <span class="cline-any cline-yes">2x</span>
312
239
  <span class="cline-any cline-yes">2x</span>
313
240
  <span class="cline-any cline-neutral">&nbsp;</span>
@@ -335,11 +262,6 @@
335
262
  <span class="cline-any cline-yes">5x</span>
336
263
  <span class="cline-any cline-neutral">&nbsp;</span>
337
264
  <span class="cline-any cline-neutral">&nbsp;</span>
338
- <span class="cline-any cline-neutral">&nbsp;</span>
339
- <span class="cline-any cline-neutral">&nbsp;</span>
340
- <span class="cline-any cline-neutral">&nbsp;</span>
341
- <span class="cline-any cline-neutral">&nbsp;</span>
342
- <span class="cline-any cline-neutral">&nbsp;</span>
343
265
  <span class="cline-any cline-yes">5x</span>
344
266
  <span class="cline-any cline-neutral">&nbsp;</span>
345
267
  <span class="cline-any cline-neutral">&nbsp;</span>
@@ -348,7 +270,6 @@
348
270
  <span class="cline-any cline-neutral">&nbsp;</span>
349
271
  <span class="cline-any cline-neutral">&nbsp;</span>
350
272
  <span class="cline-any cline-neutral">&nbsp;</span>
351
- <span class="cline-any cline-neutral">&nbsp;</span>
352
273
  <span class="cline-any cline-yes">5x</span>
353
274
  <span class="cline-any cline-neutral">&nbsp;</span>
354
275
  <span class="cline-any cline-neutral">&nbsp;</span>
@@ -365,10 +286,7 @@
365
286
  <span class="cline-any cline-neutral">&nbsp;</span>
366
287
  <span class="cline-any cline-neutral">&nbsp;</span>
367
288
  <span class="cline-any cline-neutral">&nbsp;</span>
368
- <span class="cline-any cline-neutral">&nbsp;</span>
369
- <span class="cline-any cline-neutral">&nbsp;</span>
370
- <span class="cline-any cline-neutral">&nbsp;</span>
371
- <span class="cline-any cline-yes">1x</span>
289
+ <span class="cline-any cline-yes">5x</span>
372
290
  <span class="cline-any cline-neutral">&nbsp;</span>
373
291
  <span class="cline-any cline-neutral">&nbsp;</span>
374
292
  <span class="cline-any cline-neutral">&nbsp;</span>
@@ -381,7 +299,7 @@
381
299
  <span class="cline-any cline-neutral">&nbsp;</span>
382
300
  <span class="cline-any cline-neutral">&nbsp;</span></td><td class="text"><pre class="prettyprint lang-js">import React, { useContext, useState } from 'react';
383
301
  import PropTypes from 'prop-types';
384
- &nbsp;
302
+ import { FormattedMessage, useIntl } from 'react-intl';
385
303
  import {
386
304
  Button,
387
305
  Card,
@@ -391,16 +309,12 @@ import {
391
309
  import EditSettingValue from './EditSettingValue';
392
310
  import RenderSettingValue from './RenderSettingValue';
393
311
  import { SettingsContext } from '../../contexts';
394
- import { useKintIntl, useRefdata, useTemplates } from '../../hooks';
395
- import { toCamelCase } from '../../utils';
312
+ import { useRefdata, useTemplates } from '../../hooks';
313
+ import { renderHelpText, toCamelCase } from '../../utils';
396
314
  &nbsp;
397
- import renderHelpTextCSS from '../../../../styles/renderHelpText.css';
398
315
  &nbsp;
399
316
  const SettingField = (settingFieldProps) =&gt; {
400
317
  const {
401
- intlKey: passedIntlKey,
402
- intlNS: passedIntlNS,
403
- labelOverrides = {},
404
318
  onSave,
405
319
  settingData: {
406
320
  currentSetting
@@ -408,13 +322,13 @@ const SettingField = (settingFieldProps) =&gt; {
408
322
  } = settingFieldProps;
409
323
  &nbsp;
410
324
  const [editing, setEditing] = useState(false);
411
- const kintIntl = useKintIntl(passedIntlKey, passedIntlNS);
412
- const { refdataEndpoint, templateEndpoint } = useContext(SettingsContext);
325
+ const intl = useIntl();
326
+ const { intlKey, refdataEndpoint, templateEndpoint } = useContext(SettingsContext);
413
327
  &nbsp;
414
328
  const {
415
329
  0: {
416
- values: refdata = <span class="branch-0 cbranch-no" title="branch not covered" >[]</span>
417
- } = <span class="branch-0 cbranch-no" title="branch not covered" >{}</span>
330
+ values: refdata = []
331
+ } = {}
418
332
  } = useRefdata({
419
333
  endpoint: refdataEndpoint,
420
334
  desc: currentSetting.vocab,
@@ -430,41 +344,13 @@ const SettingField = (settingFieldProps) =&gt; {
430
344
  enabled: !!currentSetting?.vocab &amp;&amp; <span class="branch-1 cbranch-no" title="branch not covered" >currentSetting.settingType === 'Template'</span>
431
345
  }
432
346
  });
433
- &nbsp;
434
- const renderHelpText = <span class="fstat-no" title="function not covered" >(h</span>elpTextId) =&gt; {
435
- <span class="cstat-no" title="statement not covered" > return (</span>
436
- &lt;div className={renderHelpTextCSS.help}&gt;
437
- {
438
- kintIntl.formatKintMessage({
439
- id: helpTextId
440
- }, {
441
- b: <span class="fstat-no" title="function not covered" >(c</span>hunks) =&gt; <span class="cstat-no" title="statement not covered" >&lt;b&gt;{chunks}&lt;/b&gt;,</span>
442
- i: <span class="fstat-no" title="function not covered" >(c</span>hunks) =&gt; <span class="cstat-no" title="statement not covered" >&lt;i&gt;{chunks}&lt;/i&gt;,</span>
443
- em: <span class="fstat-no" title="function not covered" >(c</span>hunks) =&gt; <span class="cstat-no" title="statement not covered" >&lt;em&gt;{chunks}&lt;/em&gt;,</span>
444
- strong: <span class="fstat-no" title="function not covered" >(c</span>hunks) =&gt; <span class="cstat-no" title="statement not covered" >&lt;strong&gt;{chunks}&lt;/strong&gt;,</span>
445
- span: <span class="fstat-no" title="function not covered" >(c</span>hunks) =&gt; <span class="cstat-no" title="statement not covered" >&lt;span&gt;{chunks}&lt;/span&gt;,</span>
446
- div: <span class="fstat-no" title="function not covered" >(c</span>hunks) =&gt; <span class="cstat-no" title="statement not covered" >&lt;div&gt;{chunks}&lt;/div&gt;,</span>
447
- p: <span class="fstat-no" title="function not covered" >(c</span>hunks) =&gt; <span class="cstat-no" title="statement not covered" >&lt;p&gt;{chunks}&lt;/p&gt;,</span>
448
- ul: <span class="fstat-no" title="function not covered" >(c</span>hunks) =&gt; <span class="cstat-no" title="statement not covered" >&lt;ul&gt;{chunks}&lt;/ul&gt;,</span>
449
- ol: <span class="fstat-no" title="function not covered" >(c</span>hunks) =&gt; <span class="cstat-no" title="statement not covered" >&lt;ol&gt;{chunks}&lt;/ol&gt;,</span>
450
- li: <span class="fstat-no" title="function not covered" >(c</span>hunks) =&gt; <span class="cstat-no" title="statement not covered" >&lt;li&gt;{chunks}&lt;/li&gt;,</span>
451
- })
452
- }
453
- &lt;/div&gt;
454
- );
455
- };
456
347
  &nbsp;
457
348
  const renderEditButton = () =&gt; {
458
349
  const EditText = editing ?
459
- kintIntl.formatKintMessage({
460
- id: 'save'
461
- }) :
462
- kintIntl.formatKintMessage({
463
- id: 'edit'
464
- });
350
+ &lt;FormattedMessage id="stripes-kint-components.settings.finishEditing" /&gt; :
351
+ &lt;FormattedMessage id="stripes-kint-components.settings.edit" /&gt;;
465
352
  return (
466
353
  &lt;Button
467
- marginBottom0
468
354
  onClick={(e) =&gt; {
469
355
  e.preventDefault();
470
356
  return (
@@ -486,25 +372,19 @@ const SettingField = (settingFieldProps) =&gt; {
486
372
  RenderFunction = EditSettingValue;
487
373
  }
488
374
  &nbsp;
489
- const id = `settings.${toCamelCase(currentSetting.section)}.${toCamelCase(currentSetting.key)}.help`;
375
+ const id = `${intlKey}.settings.${toCamelCase(currentSetting.section)}.${toCamelCase(currentSetting.key)}.help`;
490
376
  &nbsp;
491
377
  &nbsp;
492
378
  const renderHeaderStart = () =&gt; {
493
379
  const settingName = Object.keys(currentSetting).length &gt; 0 ?
494
- kintIntl.formatKintMessage({
495
- id: `settings.${toCamelCase(currentSetting.section)}.${toCamelCase(currentSetting.key)}`
496
- }) :
497
- <span class="branch-1 cbranch-no" title="branch not covered" > kintIntl.formatKintMessage({</span>
498
- id: 'loading'
499
- });
500
- &nbsp;
501
- return (
502
- &lt;&gt;
503
- {
504
- kintIntl.messageExists(id) &amp;&amp; <span class="branch-1 cbranch-no" title="branch not covered" >&lt;InfoPopover content={renderHelpText(id)} /&gt;}</span>
505
- {settingName}
506
- &lt;/&gt;
507
- );
380
+ &lt;FormattedMessage id={`${intlKey}.settings.${toCamelCase(currentSetting.section)}.${toCamelCase(currentSetting.key)}`} /&gt; :
381
+ <span class="branch-1 cbranch-no" title="branch not covered" > &lt;FormattedMessage id="stripes-kint-components.settings.settingLoading" /&gt;;</span>
382
+ return (
383
+ &lt;&gt;
384
+ {intl.messages[id] &amp;&amp; <span class="branch-1 cbranch-no" title="branch not covered" >&lt;InfoPopover content={renderHelpText(id)} /&gt;}</span>
385
+ {settingName}
386
+ &lt;/&gt;
387
+ );
508
388
  };
509
389
  &nbsp;
510
390
  return (
@@ -515,9 +395,6 @@ const SettingField = (settingFieldProps) =&gt; {
515
395
  &gt;
516
396
  &lt;RenderFunction
517
397
  currentSetting={currentSetting}
518
- intlKey={passedIntlKey}
519
- intlNS={passedIntlNS}
520
- labelOverrides={labelOverrides}
521
398
  refdata={refdata}
522
399
  templates={templates}
523
400
  {...settingFieldProps}
@@ -544,7 +421,7 @@ export default SettingField;
544
421
  <div class='footer quiet pad2 space-top1 center small'>
545
422
  Code coverage generated by
546
423
  <a href="https://istanbul.js.org/" target="_blank" rel="noopener noreferrer">istanbul</a>
547
- at 2022-09-16T13:23:25.290Z
424
+ at 2022-11-22T09:57:19.883Z
548
425
  </div>
549
426
  <script src="../../prettify.js"></script>
550
427
  <script>