@k-int/stripes-kint-components 2.8.2 → 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 (316) hide show
  1. package/CHANGELOG.md +6 -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 +91 -140
  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 +164 -663
  136. package/package.json +1 -1
  137. package/src/artifacts/coverage-jest/lcov-report/ActionList/ActionList.js.html +35 -5
  138. package/src/artifacts/coverage-jest/lcov-report/ActionList/ActionListFieldArray.js.html +120 -24
  139. package/src/artifacts/coverage-jest/lcov-report/ActionList/index.html +8 -8
  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 +29 -26
  142. package/src/artifacts/coverage-jest/lcov-report/CustomProperties/Config/CustomPropertiesSettings.js.html +136 -70
  143. package/src/artifacts/coverage-jest/lcov-report/CustomProperties/Config/CustomPropertyForm.js.html +10 -10
  144. package/src/artifacts/coverage-jest/lcov-report/CustomProperties/Config/CustomPropertyView.js.html +5 -5
  145. package/src/artifacts/coverage-jest/lcov-report/CustomProperties/Config/index.html +35 -35
  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 +1 -1
  148. package/src/artifacts/coverage-jest/lcov-report/CustomProperties/Edit/CustomPropertiesEdit.js.html +1 -1
  149. package/src/artifacts/coverage-jest/lcov-report/CustomProperties/Edit/CustomPropertiesEditCtx.js.html +15 -15
  150. package/src/artifacts/coverage-jest/lcov-report/CustomProperties/Edit/CustomPropertiesListField.js.html +88 -88
  151. package/src/artifacts/coverage-jest/lcov-report/CustomProperties/Edit/CustomPropertyField.js.html +92 -80
  152. package/src/artifacts/coverage-jest/lcov-report/CustomProperties/Edit/CustomPropertyFormCard.js.html +4 -4
  153. package/src/artifacts/coverage-jest/lcov-report/CustomProperties/Edit/index.html +44 -44
  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 +2394 -12
  156. package/src/artifacts/coverage-jest/lcov-report/CustomProperties/Filter/CustomPropertiesFilter.js.html +72 -33
  157. package/src/artifacts/coverage-jest/lcov-report/CustomProperties/Filter/CustomPropertiesFilterField.js.html +1 -1
  158. package/src/artifacts/coverage-jest/lcov-report/CustomProperties/Filter/CustomPropertiesFilterFieldArray.js.html +4 -4
  159. package/src/artifacts/coverage-jest/lcov-report/CustomProperties/Filter/CustomPropertiesFilterForm.js.html +4 -4
  160. package/src/artifacts/coverage-jest/lcov-report/CustomProperties/Filter/CustomPropertiesRule.js.html +1 -1
  161. package/src/artifacts/coverage-jest/lcov-report/CustomProperties/Filter/index.html +37 -37
  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 +4 -4
  164. package/src/artifacts/coverage-jest/lcov-report/CustomProperties/Filter/useOperators.js.html +14 -14
  165. package/src/artifacts/coverage-jest/lcov-report/CustomProperties/Filter/useParseActiveFilterStrings.js.html +45 -36
  166. package/src/artifacts/coverage-jest/lcov-report/CustomProperties/Filter/useValueProps.js.html +1 -1
  167. package/src/artifacts/coverage-jest/lcov-report/CustomProperties/View/CustomPropertiesView.js.html +1 -1
  168. package/src/artifacts/coverage-jest/lcov-report/CustomProperties/View/CustomPropertiesViewCtx.js.html +9 -6
  169. package/src/artifacts/coverage-jest/lcov-report/CustomProperties/View/CustomPropertyCard.js.html +3 -3
  170. package/src/artifacts/coverage-jest/lcov-report/CustomProperties/View/index.html +6 -6
  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 +217 -0
  176. package/src/artifacts/coverage-jest/lcov-report/CycleButton/index.html +131 -0
  177. package/src/artifacts/coverage-jest/lcov-report/CycleButton/index.js.html +88 -0
  178. package/src/artifacts/coverage-jest/lcov-report/EditableRefdataCategoryList/EditableRefdataCategoryList.js.html +610 -0
  179. package/src/artifacts/coverage-jest/lcov-report/EditableRefdataCategoryList/index.html +131 -0
  180. package/src/artifacts/coverage-jest/lcov-report/EditableRefdataCategoryList/index.js.html +88 -0
  181. package/src/artifacts/coverage-jest/lcov-report/EditableRefdataList/EditableRefdataList.js.html +192 -39
  182. package/src/artifacts/coverage-jest/lcov-report/EditableRefdataList/index.html +9 -9
  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 +3 -3
  185. package/src/artifacts/coverage-jest/lcov-report/EditableSettingsList/EditableSettingsListFieldArray.js.html +3 -3
  186. package/src/artifacts/coverage-jest/lcov-report/EditableSettingsList/SettingField/EditSettingValue.js.html +3 -3
  187. package/src/artifacts/coverage-jest/lcov-report/EditableSettingsList/SettingField/RenderSettingValue.js.html +2 -2
  188. package/src/artifacts/coverage-jest/lcov-report/EditableSettingsList/SettingField/SettingField.js.html +3 -3
  189. package/src/artifacts/coverage-jest/lcov-report/EditableSettingsList/SettingField/index.html +1 -1
  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 +1 -1
  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 +1 -1
  194. package/src/artifacts/coverage-jest/lcov-report/FormModal/index.html +1 -1
  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 +247 -0
  197. package/src/artifacts/coverage-jest/lcov-report/FormattedKintMessage/index.html +131 -0
  198. package/src/artifacts/coverage-jest/lcov-report/FormattedKintMessage/index.js.html +88 -0
  199. package/src/artifacts/coverage-jest/lcov-report/IconSelect/IconSelect.js.html +475 -0
  200. package/src/artifacts/coverage-jest/lcov-report/IconSelect/index.html +131 -0
  201. package/src/artifacts/coverage-jest/lcov-report/IconSelect/index.js.html +88 -0
  202. package/src/artifacts/coverage-jest/lcov-report/NoResultsMessage/NoResultsMessage.js.html +1 -1
  203. package/src/artifacts/coverage-jest/lcov-report/NoResultsMessage/index.html +1 -1
  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/{CustomProperties/Config/CustomPropertiesView.js.html → ResponsiveButtonGroup/ResponsiveButtonGroup.js.html} +186 -252
  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 +775 -0
  216. package/src/artifacts/coverage-jest/lcov-report/RichSelect/index.html +146 -0
  217. package/src/artifacts/coverage-jest/lcov-report/RichSelect/index.js.html +91 -0
  218. package/src/artifacts/coverage-jest/lcov-report/RichSelect/useSelectedOption.js.html +127 -0
  219. package/src/artifacts/coverage-jest/lcov-report/SASQLookupComponent/SASQLookupComponent.js.html +1 -1
  220. package/src/artifacts/coverage-jest/lcov-report/SASQLookupComponent/TableBody/TableBody.js.html +1 -1
  221. package/src/artifacts/coverage-jest/lcov-report/SASQLookupComponent/TableBody/index.html +1 -1
  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 +1 -1
  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 +3 -3
  235. package/src/artifacts/coverage-jest/lcov-report/SettingPage/SettingPagePane.js.html +3 -3
  236. package/src/artifacts/coverage-jest/lcov-report/SettingPage/index.html +1 -1
  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 +2 -2
  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/favicon.png +0 -0
  248. package/src/artifacts/coverage-jest/lcov-report/hooks/index.html +44 -29
  249. package/src/artifacts/coverage-jest/lcov-report/hooks/index.js.html +6 -3
  250. package/src/artifacts/coverage-jest/lcov-report/hooks/settingsHooks/index.html +22 -7
  251. package/src/artifacts/coverage-jest/lcov-report/hooks/settingsHooks/index.js.html +5 -2
  252. package/src/artifacts/coverage-jest/lcov-report/hooks/settingsHooks/useAppSettings.js.html +1 -1
  253. package/src/artifacts/coverage-jest/lcov-report/hooks/settingsHooks/useSettingSection.js.html +2 -2
  254. package/src/artifacts/coverage-jest/lcov-report/hooks/settingsHooks/useSettings.js.html +2 -2
  255. package/src/artifacts/coverage-jest/lcov-report/hooks/typedownHooks/index.html +1 -1
  256. package/src/artifacts/coverage-jest/lcov-report/hooks/typedownHooks/index.js.html +1 -1
  257. package/src/artifacts/coverage-jest/lcov-report/hooks/typedownHooks/useTypedown.js.html +1 -1
  258. package/src/artifacts/coverage-jest/lcov-report/hooks/typedownHooks/useTypedownData.js.html +1 -1
  259. package/src/artifacts/coverage-jest/lcov-report/hooks/typedownHooks/useTypedownToggle.js.html +1 -1
  260. package/src/artifacts/coverage-jest/lcov-report/hooks/useActiveElement.js.html +2 -2
  261. package/src/artifacts/coverage-jest/lcov-report/hooks/useAvailableCustomProperties.js.html +32 -32
  262. package/src/artifacts/coverage-jest/lcov-report/hooks/useCustomProperties.js.html +34 -37
  263. package/src/artifacts/coverage-jest/lcov-report/hooks/useHelperApp.js.html +2 -2
  264. package/src/artifacts/coverage-jest/lcov-report/hooks/useIntlKey.js.html +151 -0
  265. package/src/artifacts/coverage-jest/lcov-report/hooks/useIntlKeyStore.js.html +199 -0
  266. package/src/artifacts/coverage-jest/lcov-report/hooks/useInvalidateRefdata.js.html +2 -2
  267. package/src/artifacts/coverage-jest/lcov-report/hooks/useKintIntl.js.html +238 -0
  268. package/src/artifacts/coverage-jest/lcov-report/hooks/useKiwtFieldArray.js.html +2 -2
  269. package/src/artifacts/coverage-jest/lcov-report/hooks/useKiwtSASQuery.js.html +3 -3
  270. package/src/artifacts/coverage-jest/lcov-report/hooks/useLocalStorageState.js.html +2 -2
  271. package/src/artifacts/coverage-jest/lcov-report/hooks/useMutateCustomProperties.js.html +18 -6
  272. package/src/artifacts/coverage-jest/lcov-report/hooks/useMutateRefdataCategory.js.html +274 -0
  273. package/src/artifacts/coverage-jest/lcov-report/hooks/useMutateRefdataValue.js.html +14 -5
  274. package/src/artifacts/coverage-jest/lcov-report/hooks/useQIndex.js.html +2 -2
  275. package/src/artifacts/coverage-jest/lcov-report/hooks/useRefdata.js.html +3 -3
  276. package/src/artifacts/coverage-jest/lcov-report/hooks/useSASQQueryMeta.js.html +187 -0
  277. package/src/artifacts/coverage-jest/lcov-report/hooks/useTemplates.js.html +2 -2
  278. package/src/artifacts/coverage-jest/lcov-report/index.html +138 -78
  279. package/src/artifacts/coverage-jest/lcov-report/sort-arrow-sprite.png +0 -0
  280. package/src/artifacts/coverage-jest/lcov-report/utils/buildUrl.js.html +1 -1
  281. package/src/artifacts/coverage-jest/lcov-report/utils/generateKiwtQuery.js.html +16 -16
  282. package/src/artifacts/coverage-jest/lcov-report/utils/generateKiwtQueryParams.js.html +66 -66
  283. package/src/artifacts/coverage-jest/lcov-report/utils/groupCustomPropertiesByCtx.js.html +2 -2
  284. package/src/artifacts/coverage-jest/lcov-report/utils/highlightString.js.html +3 -3
  285. package/src/artifacts/coverage-jest/lcov-report/utils/index.html +53 -38
  286. package/src/artifacts/coverage-jest/lcov-report/utils/index.js.html +11 -2
  287. package/src/artifacts/coverage-jest/lcov-report/utils/matchString.js.html +2 -2
  288. package/src/artifacts/coverage-jest/lcov-report/utils/parseErrorResponse.js.html +139 -0
  289. package/src/artifacts/coverage-jest/lcov-report/utils/refdataOptions.js.html +5 -2
  290. package/src/artifacts/coverage-jest/lcov-report/utils/refdataQueryKey.js.html +2 -2
  291. package/src/artifacts/coverage-jest/lcov-report/utils/renderHelpText.js.html +2 -2
  292. package/src/artifacts/coverage-jest/lcov-report/utils/selectorSafe.js.html +2 -2
  293. package/src/artifacts/coverage-jest/lcov-report/utils/sortByLabel.js.html +2 -2
  294. package/src/artifacts/coverage-jest/lcov-report/utils/toCamelCase.js.html +2 -2
  295. package/src/artifacts/coverage-jest/lcov-report/utils/typedownQueryKey.js.html +2 -2
  296. package/src/artifacts/coverage-jest/lcov-report/utils/validators.js.html +28 -28
  297. package/src/artifacts/coverage-jest/lcov.info +1724 -1155
  298. package/src/lib/CustomProperties/Config/CustomPropertiesSettings.js +1 -1
  299. package/src/lib/CustomProperties/Edit/CustomPropertiesListField.js +0 -1
  300. package/src/lib/utils/parseErrorResponse.js +1 -1
  301. package/translate.sh +4 -0
  302. package/translations/stripes-kint-components/ar.json +12 -12
  303. package/translations/stripes-kint-components/cs_CZ.json +4 -4
  304. package/translations/stripes-kint-components/en_GB.json +1 -0
  305. package/translations/stripes-kint-components/en_SE.json +1 -0
  306. package/translations/stripes-kint-components/es_419.json +122 -0
  307. package/translations/stripes-kint-components/es_ES.json +122 -0
  308. package/translations/stripes-kint-components/fr.json +105 -1
  309. package/translations/stripes-kint-components/fr_FR.json +105 -0
  310. package/translations/stripes-kint-components/hu.json +12 -12
  311. package/translations/stripes-kint-components/it_IT.json +6 -6
  312. package/translations/stripes-kint-components/pt_PT.json +6 -6
  313. package/translations/stripes-kint-components/ru.json +1 -1
  314. package/translations/stripes-kint-components/sv.json +7 -7
  315. package/translations/stripes-kint-components/zh_TW.json +122 -0
  316. package/yarn-error.log +147 -0
@@ -3,15 +3,15 @@
3
3
  <html lang="en">
4
4
 
5
5
  <head>
6
- <title>Code coverage report for CustomProperties/Config/CustomPropertiesView.js</title>
6
+ <title>Code coverage report for ResponsiveButtonGroup/ResponsiveButtonGroup.js</title>
7
7
  <meta charset="utf-8" />
8
- <link rel="stylesheet" href="../../prettify.css" />
9
- <link rel="stylesheet" href="../../base.css" />
10
- <link rel="shortcut icon" type="image/x-icon" href="../../favicon.png" />
8
+ <link rel="stylesheet" href="../prettify.css" />
9
+ <link rel="stylesheet" href="../base.css" />
10
+ <link rel="shortcut icon" type="image/x-icon" href="../favicon.png" />
11
11
  <meta name="viewport" content="width=device-width, initial-scale=1" />
12
12
  <style type='text/css'>
13
13
  .coverage-summary .sorter {
14
- background-image: url(../../sort-arrow-sprite.png);
14
+ background-image: url(../sort-arrow-sprite.png);
15
15
  }
16
16
  </style>
17
17
  </head>
@@ -19,34 +19,34 @@
19
19
  <body>
20
20
  <div class='wrapper'>
21
21
  <div class='pad1'>
22
- <h1><a href="../../index.html">All files</a> / <a href="index.html">CustomProperties/Config</a> CustomPropertiesView.js</h1>
22
+ <h1><a href="../index.html">All files</a> / <a href="index.html">ResponsiveButtonGroup</a> ResponsiveButtonGroup.js</h1>
23
23
  <div class='clearfix'>
24
24
 
25
25
  <div class='fl pad1y space-right2'>
26
26
  <span class="strong">0% </span>
27
27
  <span class="quiet">Statements</span>
28
- <span class='fraction'>0/3</span>
28
+ <span class='fraction'>0/33</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/34</span>
35
+ <span class='fraction'>0/30</span>
36
36
  </div>
37
37
 
38
38
 
39
39
  <div class='fl pad1y space-right2'>
40
40
  <span class="strong">0% </span>
41
41
  <span class="quiet">Functions</span>
42
- <span class='fraction'>0/1</span>
42
+ <span class='fraction'>0/11</span>
43
43
  </div>
44
44
 
45
45
 
46
46
  <div class='fl pad1y space-right2'>
47
47
  <span class="strong">0% </span>
48
48
  <span class="quiet">Lines</span>
49
- <span class='fraction'>0/3</span>
49
+ <span class='fraction'>0/32</span>
50
50
  </div>
51
51
 
52
52
 
@@ -213,74 +213,7 @@
213
213
  <a name='L148'></a><a href='#L148'>148</a>
214
214
  <a name='L149'></a><a href='#L149'>149</a>
215
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>
225
- <a name='L160'></a><a href='#L160'>160</a>
226
- <a name='L161'></a><a href='#L161'>161</a>
227
- <a name='L162'></a><a href='#L162'>162</a>
228
- <a name='L163'></a><a href='#L163'>163</a>
229
- <a name='L164'></a><a href='#L164'>164</a>
230
- <a name='L165'></a><a href='#L165'>165</a>
231
- <a name='L166'></a><a href='#L166'>166</a>
232
- <a name='L167'></a><a href='#L167'>167</a>
233
- <a name='L168'></a><a href='#L168'>168</a>
234
- <a name='L169'></a><a href='#L169'>169</a>
235
- <a name='L170'></a><a href='#L170'>170</a>
236
- <a name='L171'></a><a href='#L171'>171</a>
237
- <a name='L172'></a><a href='#L172'>172</a>
238
- <a name='L173'></a><a href='#L173'>173</a></td><td class="line-coverage quiet"><span class="cline-any cline-neutral">&nbsp;</span>
239
- <span class="cline-any cline-neutral">&nbsp;</span>
240
- <span class="cline-any cline-neutral">&nbsp;</span>
241
- <span class="cline-any cline-neutral">&nbsp;</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>
245
- <span class="cline-any cline-no">&nbsp;</span>
246
- <span class="cline-any cline-neutral">&nbsp;</span>
247
- <span class="cline-any cline-neutral">&nbsp;</span>
248
- <span class="cline-any cline-neutral">&nbsp;</span>
249
- <span class="cline-any cline-no">&nbsp;</span>
250
- <span class="cline-any cline-neutral">&nbsp;</span>
251
- <span class="cline-any cline-neutral">&nbsp;</span>
252
- <span class="cline-any cline-neutral">&nbsp;</span>
253
- <span class="cline-any cline-neutral">&nbsp;</span>
254
- <span class="cline-any cline-neutral">&nbsp;</span>
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>
263
- <span class="cline-any cline-neutral">&nbsp;</span>
264
- <span class="cline-any cline-neutral">&nbsp;</span>
265
- <span class="cline-any cline-neutral">&nbsp;</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>
270
- <span class="cline-any cline-neutral">&nbsp;</span>
271
- <span class="cline-any cline-neutral">&nbsp;</span>
272
- <span class="cline-any cline-neutral">&nbsp;</span>
273
- <span class="cline-any cline-neutral">&nbsp;</span>
274
- <span class="cline-any cline-neutral">&nbsp;</span>
275
- <span class="cline-any cline-neutral">&nbsp;</span>
276
- <span class="cline-any cline-neutral">&nbsp;</span>
277
- <span class="cline-any cline-neutral">&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-neutral">&nbsp;</span>
216
+ <a name='L151'></a><a href='#L151'>151</a></td><td class="line-coverage quiet"><span class="cline-any cline-neutral">&nbsp;</span>
284
217
  <span class="cline-any cline-neutral">&nbsp;</span>
285
218
  <span class="cline-any cline-neutral">&nbsp;</span>
286
219
  <span class="cline-any cline-neutral">&nbsp;</span>
@@ -296,6 +229,7 @@
296
229
  <span class="cline-any cline-neutral">&nbsp;</span>
297
230
  <span class="cline-any cline-neutral">&nbsp;</span>
298
231
  <span class="cline-any cline-neutral">&nbsp;</span>
232
+ <span class="cline-any cline-no">&nbsp;</span>
299
233
  <span class="cline-any cline-neutral">&nbsp;</span>
300
234
  <span class="cline-any cline-neutral">&nbsp;</span>
301
235
  <span class="cline-any cline-neutral">&nbsp;</span>
@@ -303,15 +237,24 @@
303
237
  <span class="cline-any cline-neutral">&nbsp;</span>
304
238
  <span class="cline-any cline-neutral">&nbsp;</span>
305
239
  <span class="cline-any cline-neutral">&nbsp;</span>
240
+ <span class="cline-any cline-no">&nbsp;</span>
241
+ <span class="cline-any cline-no">&nbsp;</span>
306
242
  <span class="cline-any cline-neutral">&nbsp;</span>
243
+ <span class="cline-any cline-no">&nbsp;</span>
244
+ <span class="cline-any cline-no">&nbsp;</span>
307
245
  <span class="cline-any cline-neutral">&nbsp;</span>
308
246
  <span class="cline-any cline-neutral">&nbsp;</span>
309
247
  <span class="cline-any cline-neutral">&nbsp;</span>
248
+ <span class="cline-any cline-no">&nbsp;</span>
249
+ <span class="cline-any cline-no">&nbsp;</span>
250
+ <span class="cline-any cline-no">&nbsp;</span>
310
251
  <span class="cline-any cline-neutral">&nbsp;</span>
311
252
  <span class="cline-any cline-neutral">&nbsp;</span>
253
+ <span class="cline-any cline-no">&nbsp;</span>
312
254
  <span class="cline-any cline-neutral">&nbsp;</span>
313
255
  <span class="cline-any cline-neutral">&nbsp;</span>
314
256
  <span class="cline-any cline-neutral">&nbsp;</span>
257
+ <span class="cline-any cline-no">&nbsp;</span>
315
258
  <span class="cline-any cline-neutral">&nbsp;</span>
316
259
  <span class="cline-any cline-neutral">&nbsp;</span>
317
260
  <span class="cline-any cline-neutral">&nbsp;</span>
@@ -319,6 +262,7 @@
319
262
  <span class="cline-any cline-neutral">&nbsp;</span>
320
263
  <span class="cline-any cline-neutral">&nbsp;</span>
321
264
  <span class="cline-any cline-neutral">&nbsp;</span>
265
+ <span class="cline-any cline-no">&nbsp;</span>
322
266
  <span class="cline-any cline-neutral">&nbsp;</span>
323
267
  <span class="cline-any cline-neutral">&nbsp;</span>
324
268
  <span class="cline-any cline-neutral">&nbsp;</span>
@@ -326,10 +270,14 @@
326
270
  <span class="cline-any cline-neutral">&nbsp;</span>
327
271
  <span class="cline-any cline-neutral">&nbsp;</span>
328
272
  <span class="cline-any cline-neutral">&nbsp;</span>
273
+ <span class="cline-any cline-no">&nbsp;</span>
329
274
  <span class="cline-any cline-neutral">&nbsp;</span>
330
275
  <span class="cline-any cline-neutral">&nbsp;</span>
331
276
  <span class="cline-any cline-neutral">&nbsp;</span>
277
+ <span class="cline-any cline-no">&nbsp;</span>
332
278
  <span class="cline-any cline-neutral">&nbsp;</span>
279
+ <span class="cline-any cline-no">&nbsp;</span>
280
+ <span class="cline-any cline-no">&nbsp;</span>
333
281
  <span class="cline-any cline-neutral">&nbsp;</span>
334
282
  <span class="cline-any cline-neutral">&nbsp;</span>
335
283
  <span class="cline-any cline-neutral">&nbsp;</span>
@@ -344,22 +292,34 @@
344
292
  <span class="cline-any cline-neutral">&nbsp;</span>
345
293
  <span class="cline-any cline-neutral">&nbsp;</span>
346
294
  <span class="cline-any cline-neutral">&nbsp;</span>
295
+ <span class="cline-any cline-no">&nbsp;</span>
296
+ <span class="cline-any cline-no">&nbsp;</span>
297
+ <span class="cline-any cline-no">&nbsp;</span>
298
+ <span class="cline-any cline-no">&nbsp;</span>
347
299
  <span class="cline-any cline-neutral">&nbsp;</span>
348
300
  <span class="cline-any cline-neutral">&nbsp;</span>
301
+ <span class="cline-any cline-no">&nbsp;</span>
349
302
  <span class="cline-any cline-neutral">&nbsp;</span>
350
303
  <span class="cline-any cline-neutral">&nbsp;</span>
351
304
  <span class="cline-any cline-neutral">&nbsp;</span>
305
+ <span class="cline-any cline-no">&nbsp;</span>
306
+ <span class="cline-any cline-no">&nbsp;</span>
352
307
  <span class="cline-any cline-neutral">&nbsp;</span>
353
308
  <span class="cline-any cline-neutral">&nbsp;</span>
309
+ <span class="cline-any cline-no">&nbsp;</span>
354
310
  <span class="cline-any cline-neutral">&nbsp;</span>
355
311
  <span class="cline-any cline-neutral">&nbsp;</span>
356
312
  <span class="cline-any cline-neutral">&nbsp;</span>
357
313
  <span class="cline-any cline-neutral">&nbsp;</span>
358
314
  <span class="cline-any cline-neutral">&nbsp;</span>
315
+ <span class="cline-any cline-no">&nbsp;</span>
316
+ <span class="cline-any cline-no">&nbsp;</span>
359
317
  <span class="cline-any cline-neutral">&nbsp;</span>
360
318
  <span class="cline-any cline-neutral">&nbsp;</span>
361
319
  <span class="cline-any cline-neutral">&nbsp;</span>
362
320
  <span class="cline-any cline-neutral">&nbsp;</span>
321
+ <span class="cline-any cline-no">&nbsp;</span>
322
+ <span class="cline-any cline-no">&nbsp;</span>
363
323
  <span class="cline-any cline-neutral">&nbsp;</span>
364
324
  <span class="cline-any cline-neutral">&nbsp;</span>
365
325
  <span class="cline-any cline-neutral">&nbsp;</span>
@@ -370,6 +330,7 @@
370
330
  <span class="cline-any cline-neutral">&nbsp;</span>
371
331
  <span class="cline-any cline-neutral">&nbsp;</span>
372
332
  <span class="cline-any cline-neutral">&nbsp;</span>
333
+ <span class="cline-any cline-no">&nbsp;</span>
373
334
  <span class="cline-any cline-neutral">&nbsp;</span>
374
335
  <span class="cline-any cline-neutral">&nbsp;</span>
375
336
  <span class="cline-any cline-neutral">&nbsp;</span>
@@ -387,8 +348,10 @@
387
348
  <span class="cline-any cline-neutral">&nbsp;</span>
388
349
  <span class="cline-any cline-neutral">&nbsp;</span>
389
350
  <span class="cline-any cline-no">&nbsp;</span>
351
+ <span class="cline-any cline-no">&nbsp;</span>
390
352
  <span class="cline-any cline-neutral">&nbsp;</span>
391
353
  <span class="cline-any cline-neutral">&nbsp;</span>
354
+ <span class="cline-any cline-no">&nbsp;</span>
392
355
  <span class="cline-any cline-neutral">&nbsp;</span>
393
356
  <span class="cline-any cline-neutral">&nbsp;</span>
394
357
  <span class="cline-any cline-neutral">&nbsp;</span>
@@ -397,188 +360,159 @@
397
360
  <span class="cline-any cline-neutral">&nbsp;</span>
398
361
  <span class="cline-any cline-neutral">&nbsp;</span>
399
362
  <span class="cline-any cline-neutral">&nbsp;</span>
363
+ <span class="cline-any cline-no">&nbsp;</span>
400
364
  <span class="cline-any cline-neutral">&nbsp;</span>
401
365
  <span class="cline-any cline-neutral">&nbsp;</span>
402
- <span class="cline-any cline-neutral">&nbsp;</span>
403
- <span class="cline-any cline-neutral">&nbsp;</span>
404
- <span class="cline-any cline-neutral">&nbsp;</span>
405
- <span class="cline-any cline-neutral">&nbsp;</span>
406
- <span class="cline-any cline-neutral">&nbsp;</span>
407
- <span class="cline-any cline-neutral">&nbsp;</span>
408
- <span class="cline-any cline-neutral">&nbsp;</span>
409
- <span class="cline-any cline-neutral">&nbsp;</span>
410
- <span class="cline-any cline-neutral">&nbsp;</span></td><td class="text"><pre class="prettyprint lang-js">import PropTypes from 'prop-types';
411
- import { FormattedMessage } from 'react-intl';
412
- import { Col, KeyValue, NoValue, Row } from '@folio/stripes/components';
366
+ <span class="cline-any cline-neutral">&nbsp;</span></td><td class="text"><pre class="prettyprint lang-js">import { cloneElement, useCallback, useMemo } from 'react';
367
+ &nbsp;
368
+ import PropTypes from 'prop-types';
369
+ import classnames from 'classnames';
370
+ &nbsp;
371
+ import {
372
+ Button,
373
+ Dropdown,
374
+ DropdownMenu,
375
+ Icon
376
+ } from '@folio/stripes/components';
377
+ &nbsp;
378
+ import css from '../../../styles/ResponsiveButtonGroup.css';
379
+ &nbsp;
380
+ import useResponsiveButtonGroupSizing from './useResponsiveButtonGroupSizing';
381
+ &nbsp;
382
+ const propTypes = <span class="cstat-no" title="statement not covered" >{</span>
383
+ children: PropTypes.node,
384
+ className: PropTypes.string,
385
+ fullWidth: PropTypes.bool,
386
+ selectedIndex: PropTypes.number,
387
+ tagName: PropTypes.string,
388
+ };
413
389
  &nbsp;
414
- import { REFDATA_CLASS_NAME } from '../../constants/customProperties';
390
+ const SIZE_OF_DOWN_ARROW_BUTTON = <span class="cstat-no" title="statement not covered" >46;</span>
391
+ const calculateCumulativeThreshold = <span class="cstat-no" title="statement not covered" ><span class="fstat-no" title="function not covered" >(a</span>rrayOfNumbers, maximum, index = <span class="branch-0 cbranch-no" title="branch not covered" >0,</span> value = <span class="branch-0 cbranch-no" title="branch not covered" >0)</span> =&gt; {</span>
392
+ // If all the numbers fit, return the last index
393
+ <span class="cstat-no" title="statement not covered" > if (arrayOfNumbers.reduce(<span class="fstat-no" title="function not covered" >(p</span>artialSum, a) =&gt; <span class="cstat-no" title="statement not covered" >partialSum + a,</span> 0) &lt;= maximum) {</span>
394
+ <span class="cstat-no" title="statement not covered" > return arrayOfNumbers?.length - 1;</span>
395
+ }
396
+ &nbsp;
397
+ // Else we'll need a down arrow button, so include that in calculations
398
+ const nextValue = <span class="cstat-no" title="statement not covered" >value + arrayOfNumbers[index];</span>
399
+ <span class="cstat-no" title="statement not covered" > if (nextValue + SIZE_OF_DOWN_ARROW_BUTTON &lt;= maximum &amp;&amp; (index + 1 &lt; arrayOfNumbers?.length)) {</span>
400
+ <span class="cstat-no" title="statement not covered" > return calculateCumulativeThreshold(arrayOfNumbers, maximum, index + 1, nextValue);</span>
401
+ }
402
+ &nbsp;
403
+ <span class="cstat-no" title="statement not covered" > return index - 1;</span>
404
+ };
405
+ &nbsp;
406
+ &nbsp;
407
+ const ResponsiveButtonGroup = <span class="cstat-no" title="statement not covered" ><span class="fstat-no" title="function not covered" >(p</span>rops) =&gt; {</span>
408
+ const {
409
+ children: childButtons, // These MUST consist only of Button components
410
+ className,
411
+ fullWidth = <span class="branch-0 cbranch-no" title="branch not covered" >false,</span> // Only bother with this when buttonGroupWidth &lt; ContainerWidth
412
+ selectedIndex,
413
+ tagName: Tag = <span class="branch-0 cbranch-no" title="branch not covered" >'div',</span>
414
+ ...rest
415
+ } = <span class="cstat-no" title="statement not covered" >props;</span>
416
+ &nbsp;
417
+ const {
418
+ buttons,
419
+ cachedSizeArray,
420
+ containerRef,
421
+ containerWidth,
422
+ ready,
423
+ } = <span class="cstat-no" title="statement not covered" >useResponsiveButtonGroupSizing({</span>
424
+ buttons: childButtons,
425
+ });
426
+ &nbsp;
427
+ const buttonThreshold = <span class="cstat-no" title="statement not covered" >calculateCumulativeThreshold(cachedSizeArray, containerWidth);</span>
428
+ &nbsp;
429
+ const renderActionMenuToggle = <span class="cstat-no" title="statement not covered" >useCallback(<span class="fstat-no" title="function not covered" >({</span> onToggle, triggerRef, keyHandler, open, ariaProps, getTriggerProps }) =&gt; (</span>
430
+ <span class="cstat-no" title="statement not covered" > &lt;Button</span>
431
+ ref={triggerRef}
432
+ buttonClass={css.dropdownButtonClass}
433
+ buttonStyle={selectedIndex &gt; buttonThreshold ? 'primary' : 'default'}
434
+ marginBottom0
435
+ onClick={onToggle}
436
+ onKeyDown={keyHandler}
437
+ type="button"
438
+ {...getTriggerProps()}
439
+ {...ariaProps}
440
+ &gt;
441
+ &lt;Icon icon={open ? 'triangle-up' : 'triangle-down'} iconPosition="end" /&gt;
442
+ &lt;/Button&gt;
443
+ ), [buttonThreshold, selectedIndex]);
444
+ &nbsp;
445
+ const displayButtons = <span class="cstat-no" title="statement not covered" >useMemo(<span class="fstat-no" title="function not covered" >()</span> =&gt; (</span>
446
+ <span class="cstat-no" title="statement not covered" > buttons?.slice(0, buttonThreshold + 1)?.map(<span class="fstat-no" title="function not covered" >(b</span>utton, index) =&gt; {</span>
447
+ <span class="cstat-no" title="statement not covered" > if (index === selectedIndex &amp;&amp; !button?.buttonStyle) {</span>
448
+ <span class="cstat-no" title="statement not covered" > return cloneElement(button, { buttonStyle: 'primary' });</span>
449
+ }
450
+ &nbsp;
451
+ <span class="cstat-no" title="statement not covered" > return button;</span>
452
+ })
453
+ ), [buttonThreshold, buttons, selectedIndex]);
454
+ &nbsp;
455
+ const dropdownButtons = <span class="cstat-no" title="statement not covered" >useMemo(<span class="fstat-no" title="function not covered" >()</span> =&gt; (</span>
456
+ <span class="cstat-no" title="statement not covered" > [...buttons</span>
457
+ .slice(buttonThreshold + 1, buttons?.length)
458
+ ?.map(<span class="fstat-no" title="function not covered" >bu</span>tton =&gt; {
459
+ <span class="cstat-no" title="statement not covered" > return cloneElement(button, { buttonStyle: 'dropdownItem' });</span>
460
+ })
461
+ ]
462
+ ), [buttonThreshold, buttons]);
463
+ &nbsp;
464
+ // eslint-disable-next-line react/prop-types
465
+ const renderActionMenuContent = <span class="cstat-no" title="statement not covered" >useCallback(<span class="fstat-no" title="function not covered" >()</span> =&gt; (</span>
466
+ <span class="cstat-no" title="statement not covered" > &lt;DropdownMenu&gt;</span>
467
+ {[...dropdownButtons]}
468
+ &lt;/DropdownMenu&gt;
469
+ ), [dropdownButtons]);
470
+ &nbsp;
471
+ const buttonsSlice = <span class="cstat-no" title="statement not covered" >useMemo(<span class="fstat-no" title="function not covered" >()</span> =&gt; (</span>
472
+ <span class="cstat-no" title="statement not covered" > [</span>
473
+ ...displayButtons,
474
+ &lt;Dropdown
475
+ key="responsiveButtonGroup-dropdown-toggle"
476
+ className={css.dropdownClass}
477
+ renderMenu={renderActionMenuContent}
478
+ renderTrigger={renderActionMenuToggle}
479
+ /&gt;
480
+ ]
481
+ ), [displayButtons, renderActionMenuContent, renderActionMenuToggle]);
415
482
  &nbsp;
416
- // A default option for CustProp view pane, with the ability to override labels for fields
417
- const CustomPropertiesView = <span class="cstat-no" title="statement not covered" ><span class="fstat-no" title="function not covered" >({</span></span>
418
- customProperty,
419
- labelOverrides
420
- }) =&gt; {
421
483
  <span class="cstat-no" title="statement not covered" > return (</span>
422
484
  &lt;&gt;
423
- &lt;Row&gt;
424
- &lt;Col xs={6}&gt;
425
- &lt;KeyValue
426
- label={
427
- labelOverrides?.label ??
428
- &lt;FormattedMessage id="stripes-kint-components.customProperties.label" /&gt;
429
- }
430
- value={customProperty?.label}
431
- /&gt;
432
- &lt;/Col&gt;
433
- &lt;Col xs={6}&gt;
434
- &lt;KeyValue
435
- label={
436
- labelOverrides?.name ??
437
- &lt;FormattedMessage id="stripes-kint-components.customProperties.name" /&gt;
438
- }
439
- value={customProperty?.name}
440
- /&gt;
441
- &lt;/Col&gt;
442
- &lt;/Row&gt;
443
- &lt;Row&gt;
444
- &lt;Col xs={12}&gt;
445
- &lt;KeyValue
446
- label={
447
- labelOverrides?.description ??
448
- &lt;FormattedMessage id="stripes-kint-components.customProperties.description" /&gt;
449
- }
450
- value={customProperty?.description}
451
- /&gt;
452
- &lt;/Col&gt;
453
- &lt;/Row&gt;
454
- &lt;Row&gt;
455
- &lt;Col xs={6}&gt;
456
- &lt;KeyValue
457
- label={
458
- labelOverrides?.primary ??
459
- &lt;FormattedMessage
460
- id="stripes-kint-components.customProperties.primary"
461
- /&gt;
462
- }
463
- value={
464
- &lt;FormattedMessage
465
- id={
466
- customProperty?.primary
467
- ? 'stripes-kint-components.yes'
468
- : 'stripes-kint-components.no'
469
- }
470
- /&gt;
471
- }
472
- /&gt;
473
- &lt;/Col&gt;
474
- &lt;Col xs={6}&gt;
475
- &lt;KeyValue
476
- label={
477
- labelOverrides?.retired ??
478
- &lt;FormattedMessage
479
- id="stripes-kint-components.customProperties.retired"
480
- /&gt;
481
- }
482
- value={
483
- &lt;FormattedMessage
484
- id={
485
- customProperty?.retired
486
- ? 'stripes-kint-components.yes'
487
- : 'stripes-kint-components.no'
488
- }
489
- /&gt;
490
- }
491
- /&gt;
492
- &lt;/Col&gt;
493
- &lt;/Row&gt;
494
- &lt;Row&gt;
495
- &lt;Col xs={6}&gt;
496
- &lt;KeyValue
497
- label={
498
- labelOverrides?.weight ??
499
- &lt;FormattedMessage id="stripes-kint-components.customProperties.weight" /&gt;
500
- }
501
- value={customProperty?.weight}
502
- /&gt;
503
- &lt;/Col&gt;
504
- &lt;Col xs={6}&gt;
505
- &lt;KeyValue
506
- label={
507
- labelOverrides?.defaultVisibility ??
508
- &lt;FormattedMessage id="stripes-kint-components.customProperties.defaultVisibility" /&gt;
509
- }
510
- value={
511
- &lt;FormattedMessage
512
- id={
513
- customProperty?.defaultInternal
514
- ? 'stripes-kint-components.customProperties.internalTrue'
515
- : 'stripes-kint-components.customProperties.internalFalse'
516
- }
517
- /&gt;
518
- }
519
- /&gt;
520
- &lt;/Col&gt;
521
- &lt;/Row&gt;
522
- &lt;Row&gt;
523
- &lt;Col xs={6}&gt;
524
- &lt;KeyValue
525
- label={
526
- labelOverrides?.ctx ??
527
- &lt;FormattedMessage id="stripes-kint-components.customProperties.ctx" /&gt;
485
+ &lt;div ref={containerRef} className="width: 100%;" /&gt;
486
+ &lt;Tag
487
+ className={
488
+ classnames(
489
+ { [`${css.hidden}`]: !ready },
490
+ css.buttonGroup,
491
+ { [`${css.fullWidth}`]: ready &amp;&amp; fullWidth },
492
+ className
493
+ )
494
+ }
495
+ style={fullWidth ? { width: `${containerWidth}px` } : {}}
496
+ {...rest}
497
+ &gt;
498
+ {!ready || buttonThreshold === cachedSizeArray?.length - 1 ?
499
+ buttons?.map(<span class="fstat-no" title="function not covered" >(b</span>utton, index) =&gt; {
500
+ <span class="cstat-no" title="statement not covered" > if (index === selectedIndex &amp;&amp; !button?.buttonStyle) {</span>
501
+ <span class="cstat-no" title="statement not covered" > return cloneElement(button, { buttonStyle: 'primary' });</span>
528
502
  }
529
- value={customProperty?.ctx ?? &lt;NoValue /&gt;}
530
- /&gt;
531
- &lt;/Col&gt;
532
- &lt;/Row&gt;
533
- &lt;Row&gt;
534
- &lt;Col xs={6}&gt;
535
- {customProperty?.type &amp;&amp; (
536
- &lt;KeyValue
537
- label={
538
- labelOverrides?.type ??
539
- &lt;FormattedMessage id="stripes-kint-components.customProperties.type" /&gt;
540
- }
541
- value={&lt;FormattedMessage id={`stripes-kint-components.customProperties.type.${customProperty?.type}`} /&gt;}
542
- /&gt;
543
- )}
544
- &lt;/Col&gt;
545
- &lt;Col xs={6}&gt;
546
- {customProperty?.type === REFDATA_CLASS_NAME &amp;&amp; (
547
- &lt;KeyValue
548
- label={
549
- labelOverrides?.category ??
550
- &lt;FormattedMessage id="stripes-kint-components.customProperties.category" /&gt;
551
- }
552
- value={customProperty?.category?.desc ?? &lt;NoValue /&gt;}
553
- /&gt;
554
- )}
555
- &lt;/Col&gt;
556
- &lt;/Row&gt;
503
+ &nbsp;
504
+ <span class="cstat-no" title="statement not covered" > return button;</span>
505
+ }) :
506
+ buttonsSlice
507
+ }
508
+ &lt;/Tag&gt;
557
509
  &lt;/&gt;
558
510
  );
559
511
  };
560
512
  &nbsp;
561
- <span class="cstat-no" title="statement not covered" >CustomPropertiesView.propTypes = {</span>
562
- customProperty: PropTypes.shape({
563
- id: PropTypes.string,
564
- label: PropTypes.string,
565
- name: PropTypes.string,
566
- description: PropTypes.string,
567
- weight: PropTypes.number,
568
- primary: PropTypes.bool,
569
- retired: PropTypes.bool,
570
- defaultInternal: PropTypes.bool,
571
- ctx: PropTypes.string,
572
- type: PropTypes.string,
573
- category: PropTypes.shape({
574
- desc: PropTypes.string
575
- })
576
- &nbsp;
577
- }),
578
- labelOverrides: PropTypes.object
579
- };
513
+ <span class="cstat-no" title="statement not covered" >ResponsiveButtonGroup.propTypes = propTypes;</span>
580
514
  &nbsp;
581
- export default CustomPropertiesView;
515
+ export default ResponsiveButtonGroup;
582
516
  &nbsp;</pre></td></tr></table></pre>
583
517
 
584
518
  <div class='push'></div><!-- for sticky footer -->
@@ -586,16 +520,16 @@ export default CustomPropertiesView;
586
520
  <div class='footer quiet pad2 space-top1 center small'>
587
521
  Code coverage generated by
588
522
  <a href="https://istanbul.js.org/" target="_blank" rel="noopener noreferrer">istanbul</a>
589
- at Fri Mar 11 2022 16:43:16 GMT+0000 (Greenwich Mean Time)
523
+ at 2022-11-11T16:38:35.931Z
590
524
  </div>
591
- <script src="../../prettify.js"></script>
525
+ <script src="../prettify.js"></script>
592
526
  <script>
593
527
  window.onload = function () {
594
528
  prettyPrint();
595
529
  };
596
530
  </script>
597
- <script src="../../sorter.js"></script>
598
- <script src="../../block-navigation.js"></script>
531
+ <script src="../sorter.js"></script>
532
+ <script src="../block-navigation.js"></script>
599
533
  </body>
600
534
  </html>
601
535