@k-int/stripes-kint-components 2.8.5 → 2.8.7

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 (312) hide show
  1. package/CHANGELOG.md +11 -0
  2. package/es/index.js +70 -71
  3. package/es/lib/ActionList/ActionList.js +37 -47
  4. package/es/lib/ActionList/ActionListFieldArray.js +124 -162
  5. package/es/lib/ActionList/index.js +1 -1
  6. package/es/lib/CustomProperties/Config/CustomPropertiesLookup.js +62 -86
  7. package/es/lib/CustomProperties/Config/CustomPropertiesLookup.test.js +17 -21
  8. package/es/lib/CustomProperties/Config/CustomPropertiesSettings.js +114 -165
  9. package/es/lib/CustomProperties/Config/CustomPropertiesSettings.test.js +37 -87
  10. package/es/lib/CustomProperties/Config/CustomPropertyForm.js +85 -102
  11. package/es/lib/CustomProperties/Config/CustomPropertyForm.test.js +90 -122
  12. package/es/lib/CustomProperties/Config/CustomPropertyView.js +36 -37
  13. package/es/lib/CustomProperties/Config/CustomPropertyView.test.js +50 -154
  14. package/es/lib/CustomProperties/Config/index.js +4 -4
  15. package/es/lib/CustomProperties/Config/testResources.js +13 -21
  16. package/es/lib/CustomProperties/Edit/CustomPropertiesEdit.js +16 -19
  17. package/es/lib/CustomProperties/Edit/CustomPropertiesEdit.test.js +14 -20
  18. package/es/lib/CustomProperties/Edit/CustomPropertiesEditCtx.js +30 -31
  19. package/es/lib/CustomProperties/Edit/CustomPropertiesEditCtx.test.js +14 -20
  20. package/es/lib/CustomProperties/Edit/CustomPropertiesListField.js +82 -101
  21. package/es/lib/CustomProperties/Edit/CustomPropertiesListField.test.js +29 -73
  22. package/es/lib/CustomProperties/Edit/CustomPropertyField.js +131 -129
  23. package/es/lib/CustomProperties/Edit/CustomPropertyField.test.js +90 -176
  24. package/es/lib/CustomProperties/Edit/CustomPropertyFormCard.js +40 -43
  25. package/es/lib/CustomProperties/Edit/CustomPropertyFormCard.test.js +20 -21
  26. package/es/lib/CustomProperties/Edit/index.js +5 -5
  27. package/es/lib/CustomProperties/Edit/testResources.js +15 -29
  28. package/es/lib/CustomProperties/Filter/CustomPropertiesFilter.js +66 -93
  29. package/es/lib/CustomProperties/Filter/CustomPropertiesFilter.test.js +23 -63
  30. package/es/lib/CustomProperties/Filter/CustomPropertiesFilterField.js +50 -72
  31. package/es/lib/CustomProperties/Filter/CustomPropertiesFilterField.test.js +7 -6
  32. package/es/lib/CustomProperties/Filter/CustomPropertiesFilterFieldArray.js +33 -33
  33. package/es/lib/CustomProperties/Filter/CustomPropertiesFilterFieldArray.test.js +18 -49
  34. package/es/lib/CustomProperties/Filter/CustomPropertiesFilterForm.js +18 -19
  35. package/es/lib/CustomProperties/Filter/CustomPropertiesFilterForm.test.js +20 -50
  36. package/es/lib/CustomProperties/Filter/CustomPropertiesRule.js +42 -43
  37. package/es/lib/CustomProperties/Filter/CustomPropertiesRule.test.js +77 -257
  38. package/es/lib/CustomProperties/Filter/index.js +6 -6
  39. package/es/lib/CustomProperties/Filter/testResources.js +36 -42
  40. package/es/lib/CustomProperties/Filter/useOperators.js +17 -19
  41. package/es/lib/CustomProperties/Filter/useParseActiveFilterStrings.js +17 -32
  42. package/es/lib/CustomProperties/Filter/useValueProps.js +21 -25
  43. package/es/lib/CustomProperties/View/CustomPropertiesView.js +16 -19
  44. package/es/lib/CustomProperties/View/CustomPropertiesView.test.js +11 -16
  45. package/es/lib/CustomProperties/View/CustomPropertiesViewCtx.js +60 -79
  46. package/es/lib/CustomProperties/View/CustomPropertiesViewCtx.test.js +17 -27
  47. package/es/lib/CustomProperties/View/CustomPropertyCard.js +30 -41
  48. package/es/lib/CustomProperties/View/index.js +3 -3
  49. package/es/lib/CustomProperties/View/testResources.js +5 -9
  50. package/es/lib/CustomProperties/index.js +18 -18
  51. package/es/lib/CycleButton/CycleButton.js +19 -32
  52. package/es/lib/CycleButton/index.js +1 -1
  53. package/es/lib/EditableRefdataCategoryList/EditableRefdataCategoryList.js +98 -155
  54. package/es/lib/EditableRefdataCategoryList/index.js +1 -1
  55. package/es/lib/EditableRefdataList/EditableRefdataList.js +110 -170
  56. package/es/lib/EditableRefdataList/index.js +1 -1
  57. package/es/lib/EditableSettingsList/EditableSettingsList.js +12 -9
  58. package/es/lib/EditableSettingsList/EditableSettingsListFieldArray.js +16 -19
  59. package/es/lib/EditableSettingsList/EditableSettingsListFieldArray.test.js +61 -96
  60. package/es/lib/EditableSettingsList/SettingField/EditSettingValue.js +23 -36
  61. package/es/lib/EditableSettingsList/SettingField/EditSettingValue.test.js +99 -83
  62. package/es/lib/EditableSettingsList/SettingField/RenderSettingValue.js +19 -24
  63. package/es/lib/EditableSettingsList/SettingField/RenderSettingValue.test.js +187 -299
  64. package/es/lib/EditableSettingsList/SettingField/SettingField.js +43 -55
  65. package/es/lib/EditableSettingsList/SettingField/SettingField.test.js +60 -106
  66. package/es/lib/EditableSettingsList/SettingField/index.js +3 -3
  67. package/es/lib/EditableSettingsList/index.js +3 -3
  68. package/es/lib/FormModal/FormModal.js +43 -45
  69. package/es/lib/FormModal/index.js +1 -1
  70. package/es/lib/IconSelect/IconSelect.js +50 -74
  71. package/es/lib/IconSelect/index.js +1 -1
  72. package/es/lib/NoResultsMessage/NoResultsMessage.js +18 -17
  73. package/es/lib/NoResultsMessage/index.js +1 -1
  74. package/es/lib/QueryTypedown/QueryTypedown.js +16 -33
  75. package/es/lib/QueryTypedown/index.js +1 -1
  76. package/es/lib/RefdataButtons/RefdataButtons.js +30 -31
  77. package/es/lib/RefdataButtons/index.js +1 -1
  78. package/es/lib/RichSelect/RichSelect.js +77 -96
  79. package/es/lib/RichSelect/index.js +2 -2
  80. package/es/lib/RichSelect/useSelectedOption.js +5 -16
  81. package/es/lib/SASQLookupComponent/SASQLookupComponent.js +84 -110
  82. package/es/lib/SASQLookupComponent/TableBody/TableBody.js +39 -44
  83. package/es/lib/SASQLookupComponent/TableBody/index.js +1 -1
  84. package/es/lib/SASQLookupComponent/index.js +2 -2
  85. package/es/lib/SASQRoute/SASQRoute.js +26 -29
  86. package/es/lib/SASQRoute/index.js +1 -1
  87. package/es/lib/SASQViewComponent/SASQViewComponent.js +29 -37
  88. package/es/lib/SASQViewComponent/index.js +1 -1
  89. package/es/lib/SearchField/SearchField.js +11 -15
  90. package/es/lib/SearchField/index.js +1 -1
  91. package/es/lib/SettingPage/SettingPage.js +17 -15
  92. package/es/lib/SettingPage/SettingPagePane.js +13 -12
  93. package/es/lib/SettingPage/index.js +2 -2
  94. package/es/lib/Typedown/Typedown.js +73 -98
  95. package/es/lib/Typedown/index.js +1 -1
  96. package/es/lib/constants/customProperties.js +11 -22
  97. package/es/lib/constants/eventCodes.js +3 -6
  98. package/es/lib/contexts/SettingsContext.js +2 -3
  99. package/es/lib/contexts/index.js +1 -1
  100. package/es/lib/hooks/index.js +17 -17
  101. package/es/lib/hooks/settingsHooks/index.js +3 -3
  102. package/es/lib/hooks/settingsHooks/useAppSettings.js +22 -34
  103. package/es/lib/hooks/settingsHooks/useSettingSection.js +17 -19
  104. package/es/lib/hooks/settingsHooks/useSettings.js +56 -67
  105. package/es/lib/hooks/typedownHooks/index.js +3 -3
  106. package/es/lib/hooks/typedownHooks/useTypedown.js +49 -50
  107. package/es/lib/hooks/typedownHooks/useTypedownData.js +12 -23
  108. package/es/lib/hooks/typedownHooks/useTypedownToggle.js +13 -22
  109. package/es/lib/hooks/useActiveElement.js +10 -20
  110. package/es/lib/hooks/useAvailableCustomProperties.js +10 -25
  111. package/es/lib/hooks/useCustomProperties.js +23 -29
  112. package/es/lib/hooks/useHelperApp.js +31 -49
  113. package/es/lib/hooks/useInvalidateRefdata.js +4 -7
  114. package/es/lib/hooks/useKiwtFieldArray.js +35 -44
  115. package/es/lib/hooks/useKiwtSASQuery.js +40 -49
  116. package/es/lib/hooks/useLocalStorageState.js +7 -20
  117. package/es/lib/hooks/useMutateCustomProperties.js +23 -73
  118. package/es/lib/hooks/useMutateRefdataCategory.js +22 -66
  119. package/es/lib/hooks/useMutateRefdataValue.js +31 -73
  120. package/es/lib/hooks/useQIndex.js +17 -30
  121. package/es/lib/hooks/useRefdata.js +19 -22
  122. package/es/lib/hooks/useTemplates.js +16 -16
  123. package/es/lib/utils/buildUrl.js +9 -11
  124. package/es/lib/utils/generateKiwtQuery.js +4 -7
  125. package/es/lib/utils/generateKiwtQueryParams.js +77 -96
  126. package/es/lib/utils/groupCustomPropertiesByCtx.js +9 -18
  127. package/es/lib/utils/highlightString.js +17 -37
  128. package/es/lib/utils/index.js +15 -15
  129. package/es/lib/utils/matchString.js +5 -10
  130. package/es/lib/utils/parseErrorResponse.js +22 -63
  131. package/es/lib/utils/refdataOptions.js +2 -3
  132. package/es/lib/utils/refdataQueryKey.js +3 -4
  133. package/es/lib/utils/renderHelpText.js +32 -53
  134. package/es/lib/utils/selectorSafe.js +2 -3
  135. package/es/lib/utils/sortByLabel.js +4 -6
  136. package/es/lib/utils/toCamelCase.js +8 -14
  137. package/es/lib/utils/typedownQueryKey.js +3 -4
  138. package/es/lib/utils/validators.js +28 -34
  139. package/package.json +24 -9
  140. package/src/lib/utils/parseErrorResponse.js +3 -2
  141. package/translations/stripes-kint-components/ja.json +3 -3
  142. package/es/artifacts/coverage-jest/lcov-report/block-navigation.js +0 -69
  143. package/es/artifacts/coverage-jest/lcov-report/prettify.js +0 -814
  144. package/es/artifacts/coverage-jest/lcov-report/sorter.js +0 -181
  145. package/junit.xml +0 -273
  146. package/src/artifacts/coverage-jest/lcov-report/ActionList/ActionList.js.html +0 -364
  147. package/src/artifacts/coverage-jest/lcov-report/ActionList/ActionListFieldArray.js.html +0 -1384
  148. package/src/artifacts/coverage-jest/lcov-report/ActionList/index.html +0 -146
  149. package/src/artifacts/coverage-jest/lcov-report/ActionList/index.js.html +0 -88
  150. package/src/artifacts/coverage-jest/lcov-report/CustomProperties/Config/CustomPropertiesLookup.js.html +0 -667
  151. package/src/artifacts/coverage-jest/lcov-report/CustomProperties/Config/CustomPropertiesSettings.js.html +0 -1162
  152. package/src/artifacts/coverage-jest/lcov-report/CustomProperties/Config/CustomPropertyForm.js.html +0 -1474
  153. package/src/artifacts/coverage-jest/lcov-report/CustomProperties/Config/CustomPropertyView.js.html +0 -733
  154. package/src/artifacts/coverage-jest/lcov-report/CustomProperties/Config/index.html +0 -176
  155. package/src/artifacts/coverage-jest/lcov-report/CustomProperties/Config/index.js.html +0 -97
  156. package/src/artifacts/coverage-jest/lcov-report/CustomProperties/Config/testResources.js.html +0 -793
  157. package/src/artifacts/coverage-jest/lcov-report/CustomProperties/Edit/CustomPropertiesEdit.js.html +0 -208
  158. package/src/artifacts/coverage-jest/lcov-report/CustomProperties/Edit/CustomPropertiesEditCtx.js.html +0 -352
  159. package/src/artifacts/coverage-jest/lcov-report/CustomProperties/Edit/CustomPropertiesListField.js.html +0 -826
  160. package/src/artifacts/coverage-jest/lcov-report/CustomProperties/Edit/CustomPropertyField.js.html +0 -1297
  161. package/src/artifacts/coverage-jest/lcov-report/CustomProperties/Edit/CustomPropertyFormCard.js.html +0 -454
  162. package/src/artifacts/coverage-jest/lcov-report/CustomProperties/Edit/index.html +0 -206
  163. package/src/artifacts/coverage-jest/lcov-report/CustomProperties/Edit/index.js.html +0 -100
  164. package/src/artifacts/coverage-jest/lcov-report/CustomProperties/Edit/testResources.js.html +0 -271
  165. package/src/artifacts/coverage-jest/lcov-report/CustomProperties/Filter/CustomPropertiesFilter.js.html +0 -499
  166. package/src/artifacts/coverage-jest/lcov-report/CustomProperties/Filter/CustomPropertiesFilterField.js.html +0 -568
  167. package/src/artifacts/coverage-jest/lcov-report/CustomProperties/Filter/CustomPropertiesFilterFieldArray.js.html +0 -415
  168. package/src/artifacts/coverage-jest/lcov-report/CustomProperties/Filter/CustomPropertiesFilterForm.js.html +0 -340
  169. package/src/artifacts/coverage-jest/lcov-report/CustomProperties/Filter/CustomPropertiesRule.js.html +0 -502
  170. package/src/artifacts/coverage-jest/lcov-report/CustomProperties/Filter/index.html +0 -251
  171. package/src/artifacts/coverage-jest/lcov-report/CustomProperties/Filter/index.js.html +0 -103
  172. package/src/artifacts/coverage-jest/lcov-report/CustomProperties/Filter/testResources.js.html +0 -223
  173. package/src/artifacts/coverage-jest/lcov-report/CustomProperties/Filter/useOperators.js.html +0 -271
  174. package/src/artifacts/coverage-jest/lcov-report/CustomProperties/Filter/useParseActiveFilterStrings.js.html +0 -199
  175. package/src/artifacts/coverage-jest/lcov-report/CustomProperties/Filter/useValueProps.js.html +0 -253
  176. package/src/artifacts/coverage-jest/lcov-report/CustomProperties/View/CustomPropertiesView.js.html +0 -211
  177. package/src/artifacts/coverage-jest/lcov-report/CustomProperties/View/CustomPropertiesViewCtx.js.html +0 -445
  178. package/src/artifacts/coverage-jest/lcov-report/CustomProperties/View/CustomPropertyCard.js.html +0 -619
  179. package/src/artifacts/coverage-jest/lcov-report/CustomProperties/View/index.html +0 -176
  180. package/src/artifacts/coverage-jest/lcov-report/CustomProperties/View/index.js.html +0 -94
  181. package/src/artifacts/coverage-jest/lcov-report/CustomProperties/View/testResources.js.html +0 -571
  182. package/src/artifacts/coverage-jest/lcov-report/CustomProperties/index.html +0 -116
  183. package/src/artifacts/coverage-jest/lcov-report/CustomProperties/index.js.html +0 -175
  184. package/src/artifacts/coverage-jest/lcov-report/CycleButton/CycleButton.js.html +0 -217
  185. package/src/artifacts/coverage-jest/lcov-report/CycleButton/index.html +0 -131
  186. package/src/artifacts/coverage-jest/lcov-report/CycleButton/index.js.html +0 -88
  187. package/src/artifacts/coverage-jest/lcov-report/EditableRefdataCategoryList/EditableRefdataCategoryList.js.html +0 -664
  188. package/src/artifacts/coverage-jest/lcov-report/EditableRefdataCategoryList/index.html +0 -131
  189. package/src/artifacts/coverage-jest/lcov-report/EditableRefdataCategoryList/index.js.html +0 -88
  190. package/src/artifacts/coverage-jest/lcov-report/EditableRefdataList/EditableRefdataList.js.html +0 -730
  191. package/src/artifacts/coverage-jest/lcov-report/EditableRefdataList/index.html +0 -131
  192. package/src/artifacts/coverage-jest/lcov-report/EditableRefdataList/index.js.html +0 -88
  193. package/src/artifacts/coverage-jest/lcov-report/EditableSettingsList/EditableSettingsList.js.html +0 -271
  194. package/src/artifacts/coverage-jest/lcov-report/EditableSettingsList/EditableSettingsListFieldArray.js.html +0 -250
  195. package/src/artifacts/coverage-jest/lcov-report/EditableSettingsList/SettingField/EditSettingValue.js.html +0 -412
  196. package/src/artifacts/coverage-jest/lcov-report/EditableSettingsList/SettingField/RenderSettingValue.js.html +0 -313
  197. package/src/artifacts/coverage-jest/lcov-report/EditableSettingsList/SettingField/SettingField.js.html +0 -559
  198. package/src/artifacts/coverage-jest/lcov-report/EditableSettingsList/SettingField/index.html +0 -161
  199. package/src/artifacts/coverage-jest/lcov-report/EditableSettingsList/SettingField/index.js.html +0 -94
  200. package/src/artifacts/coverage-jest/lcov-report/EditableSettingsList/index.html +0 -146
  201. package/src/artifacts/coverage-jest/lcov-report/EditableSettingsList/index.js.html +0 -94
  202. package/src/artifacts/coverage-jest/lcov-report/FormModal/FormModal.js.html +0 -379
  203. package/src/artifacts/coverage-jest/lcov-report/FormModal/index.html +0 -131
  204. package/src/artifacts/coverage-jest/lcov-report/FormModal/index.js.html +0 -88
  205. package/src/artifacts/coverage-jest/lcov-report/FormattedKintMessage/FormattedKintMessage.js.html +0 -247
  206. package/src/artifacts/coverage-jest/lcov-report/FormattedKintMessage/index.html +0 -131
  207. package/src/artifacts/coverage-jest/lcov-report/FormattedKintMessage/index.js.html +0 -88
  208. package/src/artifacts/coverage-jest/lcov-report/IconSelect/IconSelect.js.html +0 -508
  209. package/src/artifacts/coverage-jest/lcov-report/IconSelect/index.html +0 -131
  210. package/src/artifacts/coverage-jest/lcov-report/IconSelect/index.js.html +0 -88
  211. package/src/artifacts/coverage-jest/lcov-report/NoResultsMessage/NoResultsMessage.js.html +0 -361
  212. package/src/artifacts/coverage-jest/lcov-report/NoResultsMessage/index.html +0 -131
  213. package/src/artifacts/coverage-jest/lcov-report/NoResultsMessage/index.js.html +0 -88
  214. package/src/artifacts/coverage-jest/lcov-report/QueryTypedown/QueryTypedown.js.html +0 -190
  215. package/src/artifacts/coverage-jest/lcov-report/QueryTypedown/index.html +0 -131
  216. package/src/artifacts/coverage-jest/lcov-report/QueryTypedown/index.js.html +0 -88
  217. package/src/artifacts/coverage-jest/lcov-report/RefdataButtons/RefdataButtons.js.html +0 -370
  218. package/src/artifacts/coverage-jest/lcov-report/RefdataButtons/index.html +0 -131
  219. package/src/artifacts/coverage-jest/lcov-report/RefdataButtons/index.js.html +0 -88
  220. package/src/artifacts/coverage-jest/lcov-report/ResponsiveButtonGroup/ResponsiveButtonGroup.js.html +0 -535
  221. package/src/artifacts/coverage-jest/lcov-report/ResponsiveButtonGroup/index.html +0 -146
  222. package/src/artifacts/coverage-jest/lcov-report/ResponsiveButtonGroup/index.js.html +0 -88
  223. package/src/artifacts/coverage-jest/lcov-report/ResponsiveButtonGroup/useResponsiveButtonGroupSizing.js.html +0 -253
  224. package/src/artifacts/coverage-jest/lcov-report/RichSelect/RichSelect.js.html +0 -718
  225. package/src/artifacts/coverage-jest/lcov-report/RichSelect/index.html +0 -146
  226. package/src/artifacts/coverage-jest/lcov-report/RichSelect/index.js.html +0 -91
  227. package/src/artifacts/coverage-jest/lcov-report/RichSelect/useSelectedOption.js.html +0 -127
  228. package/src/artifacts/coverage-jest/lcov-report/SASQLookupComponent/SASQLookupComponent.js.html +0 -991
  229. package/src/artifacts/coverage-jest/lcov-report/SASQLookupComponent/TableBody/TableBody.js.html +0 -400
  230. package/src/artifacts/coverage-jest/lcov-report/SASQLookupComponent/TableBody/index.html +0 -131
  231. package/src/artifacts/coverage-jest/lcov-report/SASQLookupComponent/TableBody/index.js.html +0 -88
  232. package/src/artifacts/coverage-jest/lcov-report/SASQLookupComponent/index.html +0 -131
  233. package/src/artifacts/coverage-jest/lcov-report/SASQLookupComponent/index.js.html +0 -91
  234. package/src/artifacts/coverage-jest/lcov-report/SASQRoute/SASQRoute.js.html +0 -346
  235. package/src/artifacts/coverage-jest/lcov-report/SASQRoute/index.html +0 -131
  236. package/src/artifacts/coverage-jest/lcov-report/SASQRoute/index.js.html +0 -88
  237. package/src/artifacts/coverage-jest/lcov-report/SASQViewComponent/SASQViewComponent.js.html +0 -307
  238. package/src/artifacts/coverage-jest/lcov-report/SASQViewComponent/index.html +0 -131
  239. package/src/artifacts/coverage-jest/lcov-report/SASQViewComponent/index.js.html +0 -88
  240. package/src/artifacts/coverage-jest/lcov-report/SearchField/SearchField.js.html +0 -214
  241. package/src/artifacts/coverage-jest/lcov-report/SearchField/index.html +0 -131
  242. package/src/artifacts/coverage-jest/lcov-report/SearchField/index.js.html +0 -88
  243. package/src/artifacts/coverage-jest/lcov-report/SettingPage/SettingPage.js.html +0 -208
  244. package/src/artifacts/coverage-jest/lcov-report/SettingPage/SettingPagePane.js.html +0 -208
  245. package/src/artifacts/coverage-jest/lcov-report/SettingPage/index.html +0 -146
  246. package/src/artifacts/coverage-jest/lcov-report/SettingPage/index.js.html +0 -91
  247. package/src/artifacts/coverage-jest/lcov-report/Typedown/Typedown.js.html +0 -901
  248. package/src/artifacts/coverage-jest/lcov-report/Typedown/index.html +0 -131
  249. package/src/artifacts/coverage-jest/lcov-report/Typedown/index.js.html +0 -88
  250. package/src/artifacts/coverage-jest/lcov-report/base.css +0 -224
  251. package/src/artifacts/coverage-jest/lcov-report/block-navigation.js +0 -87
  252. package/src/artifacts/coverage-jest/lcov-report/constants/customProperties.js.html +0 -121
  253. package/src/artifacts/coverage-jest/lcov-report/constants/eventCodes.js.html +0 -94
  254. package/src/artifacts/coverage-jest/lcov-report/constants/index.html +0 -131
  255. package/src/artifacts/coverage-jest/lcov-report/contexts/SettingsContext.js.html +0 -97
  256. package/src/artifacts/coverage-jest/lcov-report/contexts/index.html +0 -131
  257. package/src/artifacts/coverage-jest/lcov-report/contexts/index.js.html +0 -91
  258. package/src/artifacts/coverage-jest/lcov-report/favicon.png +0 -0
  259. package/src/artifacts/coverage-jest/lcov-report/hooks/index.html +0 -371
  260. package/src/artifacts/coverage-jest/lcov-report/hooks/index.js.html +0 -139
  261. package/src/artifacts/coverage-jest/lcov-report/hooks/settingsHooks/index.html +0 -161
  262. package/src/artifacts/coverage-jest/lcov-report/hooks/settingsHooks/index.js.html +0 -94
  263. package/src/artifacts/coverage-jest/lcov-report/hooks/settingsHooks/useAppSettings.js.html +0 -292
  264. package/src/artifacts/coverage-jest/lcov-report/hooks/settingsHooks/useSettingSection.js.html +0 -214
  265. package/src/artifacts/coverage-jest/lcov-report/hooks/settingsHooks/useSettings.js.html +0 -463
  266. package/src/artifacts/coverage-jest/lcov-report/hooks/typedownHooks/index.html +0 -161
  267. package/src/artifacts/coverage-jest/lcov-report/hooks/typedownHooks/index.js.html +0 -94
  268. package/src/artifacts/coverage-jest/lcov-report/hooks/typedownHooks/useTypedown.js.html +0 -520
  269. package/src/artifacts/coverage-jest/lcov-report/hooks/typedownHooks/useTypedownData.js.html +0 -181
  270. package/src/artifacts/coverage-jest/lcov-report/hooks/typedownHooks/useTypedownToggle.js.html +0 -163
  271. package/src/artifacts/coverage-jest/lcov-report/hooks/useActiveElement.js.html +0 -157
  272. package/src/artifacts/coverage-jest/lcov-report/hooks/useAvailableCustomProperties.js.html +0 -205
  273. package/src/artifacts/coverage-jest/lcov-report/hooks/useCustomProperties.js.html +0 -325
  274. package/src/artifacts/coverage-jest/lcov-report/hooks/useHelperApp.js.html +0 -283
  275. package/src/artifacts/coverage-jest/lcov-report/hooks/useIntlKey.js.html +0 -151
  276. package/src/artifacts/coverage-jest/lcov-report/hooks/useIntlKeyStore.js.html +0 -199
  277. package/src/artifacts/coverage-jest/lcov-report/hooks/useInvalidateRefdata.js.html +0 -118
  278. package/src/artifacts/coverage-jest/lcov-report/hooks/useKintIntl.js.html +0 -238
  279. package/src/artifacts/coverage-jest/lcov-report/hooks/useKiwtFieldArray.js.html +0 -274
  280. package/src/artifacts/coverage-jest/lcov-report/hooks/useKiwtSASQuery.js.html +0 -196
  281. package/src/artifacts/coverage-jest/lcov-report/hooks/useLocalStorageState.js.html +0 -136
  282. package/src/artifacts/coverage-jest/lcov-report/hooks/useMutateCustomProperties.js.html +0 -283
  283. package/src/artifacts/coverage-jest/lcov-report/hooks/useMutateRefdataCategory.js.html +0 -274
  284. package/src/artifacts/coverage-jest/lcov-report/hooks/useMutateRefdataValue.js.html +0 -322
  285. package/src/artifacts/coverage-jest/lcov-report/hooks/useQIndex.js.html +0 -208
  286. package/src/artifacts/coverage-jest/lcov-report/hooks/useRefdata.js.html +0 -265
  287. package/src/artifacts/coverage-jest/lcov-report/hooks/useSASQQueryMeta.js.html +0 -187
  288. package/src/artifacts/coverage-jest/lcov-report/hooks/useTemplates.js.html +0 -166
  289. package/src/artifacts/coverage-jest/lcov-report/index.html +0 -581
  290. package/src/artifacts/coverage-jest/lcov-report/prettify.css +0 -1
  291. package/src/artifacts/coverage-jest/lcov-report/prettify.js +0 -2
  292. package/src/artifacts/coverage-jest/lcov-report/sort-arrow-sprite.png +0 -0
  293. package/src/artifacts/coverage-jest/lcov-report/sorter.js +0 -196
  294. package/src/artifacts/coverage-jest/lcov-report/utils/buildUrl.js.html +0 -193
  295. package/src/artifacts/coverage-jest/lcov-report/utils/generateKiwtQuery.js.html +0 -109
  296. package/src/artifacts/coverage-jest/lcov-report/utils/generateKiwtQueryParams.js.html +0 -523
  297. package/src/artifacts/coverage-jest/lcov-report/utils/groupCustomPropertiesByCtx.js.html +0 -124
  298. package/src/artifacts/coverage-jest/lcov-report/utils/highlightString.js.html +0 -211
  299. package/src/artifacts/coverage-jest/lcov-report/utils/index.html +0 -326
  300. package/src/artifacts/coverage-jest/lcov-report/utils/index.js.html +0 -187
  301. package/src/artifacts/coverage-jest/lcov-report/utils/matchString.js.html +0 -127
  302. package/src/artifacts/coverage-jest/lcov-report/utils/parseErrorResponse.js.html +0 -139
  303. package/src/artifacts/coverage-jest/lcov-report/utils/refdataOptions.js.html +0 -109
  304. package/src/artifacts/coverage-jest/lcov-report/utils/refdataQueryKey.js.html +0 -112
  305. package/src/artifacts/coverage-jest/lcov-report/utils/renderHelpText.js.html +0 -166
  306. package/src/artifacts/coverage-jest/lcov-report/utils/selectorSafe.js.html +0 -103
  307. package/src/artifacts/coverage-jest/lcov-report/utils/sortByLabel.js.html +0 -130
  308. package/src/artifacts/coverage-jest/lcov-report/utils/toCamelCase.js.html +0 -127
  309. package/src/artifacts/coverage-jest/lcov-report/utils/typedownQueryKey.js.html +0 -112
  310. package/src/artifacts/coverage-jest/lcov-report/utils/validators.js.html +0 -370
  311. package/src/artifacts/coverage-jest/lcov.info +0 -4830
  312. package/yarn-error.log +0 -147
@@ -1,118 +0,0 @@
1
-
2
- <!doctype html>
3
- <html lang="en">
4
-
5
- <head>
6
- <title>Code coverage report for hooks/useInvalidateRefdata.js</title>
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" />
11
- <meta name="viewport" content="width=device-width, initial-scale=1" />
12
- <style type='text/css'>
13
- .coverage-summary .sorter {
14
- background-image: url(../sort-arrow-sprite.png);
15
- }
16
- </style>
17
- </head>
18
-
19
- <body>
20
- <div class='wrapper'>
21
- <div class='pad1'>
22
- <h1><a href="../index.html">All files</a> / <a href="index.html">hooks</a> useInvalidateRefdata.js</h1>
23
- <div class='clearfix'>
24
-
25
- <div class='fl pad1y space-right2'>
26
- <span class="strong">0% </span>
27
- <span class="quiet">Statements</span>
28
- <span class='fraction'>0/4</span>
29
- </div>
30
-
31
-
32
- <div class='fl pad1y space-right2'>
33
- <span class="strong">100% </span>
34
- <span class="quiet">Branches</span>
35
- <span class='fraction'>0/0</span>
36
- </div>
37
-
38
-
39
- <div class='fl pad1y space-right2'>
40
- <span class="strong">0% </span>
41
- <span class="quiet">Functions</span>
42
- <span class='fraction'>0/2</span>
43
- </div>
44
-
45
-
46
- <div class='fl pad1y space-right2'>
47
- <span class="strong">0% </span>
48
- <span class="quiet">Lines</span>
49
- <span class='fraction'>0/3</span>
50
- </div>
51
-
52
-
53
- </div>
54
- <p class="quiet">
55
- Press <em>n</em> or <em>j</em> to go to the next uncovered block, <em>b</em>, <em>p</em> or <em>k</em> for the previous block.
56
- </p>
57
- <template id="filterTemplate">
58
- <div class="quiet">
59
- Filter:
60
- <input oninput="onInput()" type="search" id="fileSearch">
61
- </div>
62
- </template>
63
- </div>
64
- <div class='status-line low'></div>
65
- <pre><table class="coverage">
66
- <tr><td class="line-count quiet"><a name='L1'></a><a href='#L1'>1</a>
67
- <a name='L2'></a><a href='#L2'>2</a>
68
- <a name='L3'></a><a href='#L3'>3</a>
69
- <a name='L4'></a><a href='#L4'>4</a>
70
- <a name='L5'></a><a href='#L5'>5</a>
71
- <a name='L6'></a><a href='#L6'>6</a>
72
- <a name='L7'></a><a href='#L7'>7</a>
73
- <a name='L8'></a><a href='#L8'>8</a>
74
- <a name='L9'></a><a href='#L9'>9</a>
75
- <a name='L10'></a><a href='#L10'>10</a>
76
- <a name='L11'></a><a href='#L11'>11</a>
77
- <a name='L12'></a><a href='#L12'>12</a></td><td class="line-coverage quiet"><span class="cline-any cline-neutral">&nbsp;</span>
78
- <span class="cline-any cline-neutral">&nbsp;</span>
79
- <span class="cline-any cline-neutral">&nbsp;</span>
80
- <span class="cline-any cline-neutral">&nbsp;</span>
81
- <span class="cline-any cline-no">&nbsp;</span>
82
- <span class="cline-any cline-no">&nbsp;</span>
83
- <span class="cline-any cline-neutral">&nbsp;</span>
84
- <span class="cline-any cline-no">&nbsp;</span>
85
- <span class="cline-any cline-neutral">&nbsp;</span>
86
- <span class="cline-any cline-neutral">&nbsp;</span>
87
- <span class="cline-any cline-neutral">&nbsp;</span>
88
- <span class="cline-any cline-neutral">&nbsp;</span></td><td class="text"><pre class="prettyprint lang-js">import { useQueryClient } from 'react-query';
89
- &nbsp;
90
- import { refdataQueryKey } from '../utils';
91
- &nbsp;
92
- const useInvalidateRefdata = <span class="cstat-no" title="statement not covered" ><span class="fstat-no" title="function not covered" >(d</span>esc) =&gt; {</span>
93
- const queryClient = <span class="cstat-no" title="statement not covered" >useQueryClient();</span>
94
- &nbsp;
95
- <span class="cstat-no" title="statement not covered" > return <span class="fstat-no" title="function not covered" >()</span> =&gt; <span class="cstat-no" title="statement not covered" >queryClient.invalidateQueries(refdataQueryKey(desc));</span></span>
96
- };
97
- &nbsp;
98
- export default useInvalidateRefdata;
99
- &nbsp;</pre></td></tr></table></pre>
100
-
101
- <div class='push'></div><!-- for sticky footer -->
102
- </div><!-- /wrapper -->
103
- <div class='footer quiet pad2 space-top1 center small'>
104
- Code coverage generated by
105
- <a href="https://istanbul.js.org/" target="_blank" rel="noopener noreferrer">istanbul</a>
106
- at 2022-11-22T10:07:38.260Z
107
- </div>
108
- <script src="../prettify.js"></script>
109
- <script>
110
- window.onload = function () {
111
- prettyPrint();
112
- };
113
- </script>
114
- <script src="../sorter.js"></script>
115
- <script src="../block-navigation.js"></script>
116
- </body>
117
- </html>
118
-
@@ -1,238 +0,0 @@
1
-
2
- <!doctype html>
3
- <html lang="en">
4
-
5
- <head>
6
- <title>Code coverage report for hooks/useKintIntl.js</title>
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" />
11
- <meta name="viewport" content="width=device-width, initial-scale=1" />
12
- <style type='text/css'>
13
- .coverage-summary .sorter {
14
- background-image: url(../sort-arrow-sprite.png);
15
- }
16
- </style>
17
- </head>
18
-
19
- <body>
20
- <div class='wrapper'>
21
- <div class='pad1'>
22
- <h1><a href="../index.html">All files</a> / <a href="index.html">hooks</a> useKintIntl.js</h1>
23
- <div class='clearfix'>
24
-
25
- <div class='fl pad1y space-right2'>
26
- <span class="strong">83.33% </span>
27
- <span class="quiet">Statements</span>
28
- <span class='fraction'>15/18</span>
29
- </div>
30
-
31
-
32
- <div class='fl pad1y space-right2'>
33
- <span class="strong">75% </span>
34
- <span class="quiet">Branches</span>
35
- <span class='fraction'>9/12</span>
36
- </div>
37
-
38
-
39
- <div class='fl pad1y space-right2'>
40
- <span class="strong">100% </span>
41
- <span class="quiet">Functions</span>
42
- <span class='fraction'>3/3</span>
43
- </div>
44
-
45
-
46
- <div class='fl pad1y space-right2'>
47
- <span class="strong">82.35% </span>
48
- <span class="quiet">Lines</span>
49
- <span class='fraction'>14/17</span>
50
- </div>
51
-
52
-
53
- </div>
54
- <p class="quiet">
55
- Press <em>n</em> or <em>j</em> to go to the next uncovered block, <em>b</em>, <em>p</em> or <em>k</em> for the previous block.
56
- </p>
57
- <template id="filterTemplate">
58
- <div class="quiet">
59
- Filter:
60
- <input oninput="onInput()" type="search" id="fileSearch">
61
- </div>
62
- </template>
63
- </div>
64
- <div class='status-line high'></div>
65
- <pre><table class="coverage">
66
- <tr><td class="line-count quiet"><a name='L1'></a><a href='#L1'>1</a>
67
- <a name='L2'></a><a href='#L2'>2</a>
68
- <a name='L3'></a><a href='#L3'>3</a>
69
- <a name='L4'></a><a href='#L4'>4</a>
70
- <a name='L5'></a><a href='#L5'>5</a>
71
- <a name='L6'></a><a href='#L6'>6</a>
72
- <a name='L7'></a><a href='#L7'>7</a>
73
- <a name='L8'></a><a href='#L8'>8</a>
74
- <a name='L9'></a><a href='#L9'>9</a>
75
- <a name='L10'></a><a href='#L10'>10</a>
76
- <a name='L11'></a><a href='#L11'>11</a>
77
- <a name='L12'></a><a href='#L12'>12</a>
78
- <a name='L13'></a><a href='#L13'>13</a>
79
- <a name='L14'></a><a href='#L14'>14</a>
80
- <a name='L15'></a><a href='#L15'>15</a>
81
- <a name='L16'></a><a href='#L16'>16</a>
82
- <a name='L17'></a><a href='#L17'>17</a>
83
- <a name='L18'></a><a href='#L18'>18</a>
84
- <a name='L19'></a><a href='#L19'>19</a>
85
- <a name='L20'></a><a href='#L20'>20</a>
86
- <a name='L21'></a><a href='#L21'>21</a>
87
- <a name='L22'></a><a href='#L22'>22</a>
88
- <a name='L23'></a><a href='#L23'>23</a>
89
- <a name='L24'></a><a href='#L24'>24</a>
90
- <a name='L25'></a><a href='#L25'>25</a>
91
- <a name='L26'></a><a href='#L26'>26</a>
92
- <a name='L27'></a><a href='#L27'>27</a>
93
- <a name='L28'></a><a href='#L28'>28</a>
94
- <a name='L29'></a><a href='#L29'>29</a>
95
- <a name='L30'></a><a href='#L30'>30</a>
96
- <a name='L31'></a><a href='#L31'>31</a>
97
- <a name='L32'></a><a href='#L32'>32</a>
98
- <a name='L33'></a><a href='#L33'>33</a>
99
- <a name='L34'></a><a href='#L34'>34</a>
100
- <a name='L35'></a><a href='#L35'>35</a>
101
- <a name='L36'></a><a href='#L36'>36</a>
102
- <a name='L37'></a><a href='#L37'>37</a>
103
- <a name='L38'></a><a href='#L38'>38</a>
104
- <a name='L39'></a><a href='#L39'>39</a>
105
- <a name='L40'></a><a href='#L40'>40</a>
106
- <a name='L41'></a><a href='#L41'>41</a>
107
- <a name='L42'></a><a href='#L42'>42</a>
108
- <a name='L43'></a><a href='#L43'>43</a>
109
- <a name='L44'></a><a href='#L44'>44</a>
110
- <a name='L45'></a><a href='#L45'>45</a>
111
- <a name='L46'></a><a href='#L46'>46</a>
112
- <a name='L47'></a><a href='#L47'>47</a>
113
- <a name='L48'></a><a href='#L48'>48</a>
114
- <a name='L49'></a><a href='#L49'>49</a>
115
- <a name='L50'></a><a href='#L50'>50</a>
116
- <a name='L51'></a><a href='#L51'>51</a>
117
- <a name='L52'></a><a href='#L52'>52</a></td><td class="line-coverage quiet"><span class="cline-any cline-neutral">&nbsp;</span>
118
- <span class="cline-any cline-neutral">&nbsp;</span>
119
- <span class="cline-any cline-neutral">&nbsp;</span>
120
- <span class="cline-any cline-neutral">&nbsp;</span>
121
- <span class="cline-any cline-yes">17x</span>
122
- <span class="cline-any cline-yes">172x</span>
123
- <span class="cline-any cline-yes">172x</span>
124
- <span class="cline-any cline-neutral">&nbsp;</span>
125
- <span class="cline-any cline-neutral">&nbsp;</span>
126
- <span class="cline-any cline-neutral">&nbsp;</span>
127
- <span class="cline-any cline-yes">172x</span>
128
- <span class="cline-any cline-yes">1572x</span>
129
- <span class="cline-any cline-neutral">&nbsp;</span>
130
- <span class="cline-any cline-yes">4x</span>
131
- <span class="cline-any cline-no">&nbsp;</span>
132
- <span class="cline-any cline-neutral">&nbsp;</span>
133
- <span class="cline-any cline-neutral">&nbsp;</span>
134
- <span class="cline-any cline-yes">4x</span>
135
- <span class="cline-any cline-neutral">&nbsp;</span>
136
- <span class="cline-any cline-no">&nbsp;</span>
137
- <span class="cline-any cline-neutral">&nbsp;</span>
138
- <span class="cline-any cline-neutral">&nbsp;</span>
139
- <span class="cline-any cline-yes">4x</span>
140
- <span class="cline-any cline-neutral">&nbsp;</span>
141
- <span class="cline-any cline-neutral">&nbsp;</span>
142
- <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-yes">1568x</span>
146
- <span class="cline-any cline-neutral">&nbsp;</span>
147
- <span class="cline-any cline-yes">6x</span>
148
- <span class="cline-any cline-no">&nbsp;</span>
149
- <span class="cline-any cline-neutral">&nbsp;</span>
150
- <span class="cline-any cline-neutral">&nbsp;</span>
151
- <span class="cline-any cline-yes">6x</span>
152
- <span class="cline-any cline-neutral">&nbsp;</span>
153
- <span class="cline-any cline-neutral">&nbsp;</span>
154
- <span class="cline-any cline-neutral">&nbsp;</span>
155
- <span class="cline-any cline-yes">1562x</span>
156
- <span class="cline-any cline-neutral">&nbsp;</span>
157
- <span class="cline-any cline-neutral">&nbsp;</span>
158
- <span class="cline-any cline-yes">172x</span>
159
- <span class="cline-any cline-neutral">&nbsp;</span>
160
- <span class="cline-any cline-yes">172x</span>
161
- <span class="cline-any cline-neutral">&nbsp;</span>
162
- <span class="cline-any cline-neutral">&nbsp;</span>
163
- <span class="cline-any cline-neutral">&nbsp;</span>
164
- <span class="cline-any cline-neutral">&nbsp;</span>
165
- <span class="cline-any cline-neutral">&nbsp;</span>
166
- <span class="cline-any cline-neutral">&nbsp;</span>
167
- <span class="cline-any cline-neutral">&nbsp;</span>
168
- <span class="cline-any cline-neutral">&nbsp;</span></td><td class="text"><pre class="prettyprint lang-js">import { useIntl } from 'react-intl';
169
- import useIntlKey from './useIntlKey';
170
- &nbsp;
171
- /* A hook to enrich the intl object we get from useIntl */
172
- const useKintIntl = (passedIntlKey, passedIntlNS) =&gt; {
173
- const intlObj = useIntl();
174
- const intlKey = useIntlKey(passedIntlKey, passedIntlNS);
175
- &nbsp;
176
- // FormatKintMessage id misses out the top level key part of the path.
177
- // This works analogously to FormattedKintMessage component
178
- const formatKintMessage = ({ id, overrideValue, fallbackMessage, ...formatParams }, formatValues) =&gt; {
179
- if (overrideValue) {
180
- // Version 3 is a breaking change, where labelOverrides must be strings.
181
- <span class="missing-if-branch" title="if path not taken" >I</span>if (typeof overrideValue !== 'string') {
182
- <span class="cstat-no" title="statement not covered" > throw new Error('Override values must be strings as of stripes-kint-components ^3.0.0');</span>
183
- }
184
- &nbsp;
185
- <span class="missing-if-branch" title="if path not taken" >I</span>if (intlObj.messages?.[overrideValue]) {
186
- // We've been passed a key as an override, use it
187
- <span class="cstat-no" title="statement not covered" > return intlObj.formatMessage({ id: overrideValue, ...formatParams }, formatValues);</span>
188
- }
189
- // At this stage we have an overrideValue that's not a key, return it.
190
- return overrideValue;
191
- }
192
- &nbsp;
193
- // If key does not exist in intl, and we have a specified "fallbackMessage", use that
194
- &nbsp;
195
- // (FallbackMessage works like defaultMessage but with no warning)
196
- if (!intlObj.messages?.[`${intlKey}.${id}`] &amp;&amp; fallbackMessage) {
197
- // Allow fallback message to be an intl key
198
- <span class="missing-if-branch" title="if path not taken" >I</span>if (intlObj.messages?.[fallbackMessage]) {
199
- <span class="cstat-no" title="statement not covered" > return intlObj.formatMessage({ id: fallbackMessage, ...formatParams }, formatValues);</span>
200
- }
201
- &nbsp;
202
- return fallbackMessage;
203
- }
204
- &nbsp;
205
- // After all that, render the message from key
206
- return intlObj.formatMessage({ id: `${intlKey}.${id}`, ...formatParams }, formatValues);
207
- };
208
- &nbsp;
209
- const messageExists = (key) =&gt; !!intlObj.messages?.[`${intlKey}.${key}`];
210
- &nbsp;
211
- return {
212
- ...intlObj,
213
- formatKintMessage,
214
- messageExists
215
- };
216
- };
217
- &nbsp;
218
- export default useKintIntl;
219
- &nbsp;</pre></td></tr></table></pre>
220
-
221
- <div class='push'></div><!-- for sticky footer -->
222
- </div><!-- /wrapper -->
223
- <div class='footer quiet pad2 space-top1 center small'>
224
- Code coverage generated by
225
- <a href="https://istanbul.js.org/" target="_blank" rel="noopener noreferrer">istanbul</a>
226
- at 2022-11-22T10:07:38.260Z
227
- </div>
228
- <script src="../prettify.js"></script>
229
- <script>
230
- window.onload = function () {
231
- prettyPrint();
232
- };
233
- </script>
234
- <script src="../sorter.js"></script>
235
- <script src="../block-navigation.js"></script>
236
- </body>
237
- </html>
238
-
@@ -1,274 +0,0 @@
1
-
2
- <!doctype html>
3
- <html lang="en">
4
-
5
- <head>
6
- <title>Code coverage report for hooks/useKiwtFieldArray.js</title>
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" />
11
- <meta name="viewport" content="width=device-width, initial-scale=1" />
12
- <style type='text/css'>
13
- .coverage-summary .sorter {
14
- background-image: url(../sort-arrow-sprite.png);
15
- }
16
- </style>
17
- </head>
18
-
19
- <body>
20
- <div class='wrapper'>
21
- <div class='pad1'>
22
- <h1><a href="../index.html">All files</a> / <a href="index.html">hooks</a> useKiwtFieldArray.js</h1>
23
- <div class='clearfix'>
24
-
25
- <div class='fl pad1y space-right2'>
26
- <span class="strong">0% </span>
27
- <span class="quiet">Statements</span>
28
- <span class='fraction'>0/27</span>
29
- </div>
30
-
31
-
32
- <div class='fl pad1y space-right2'>
33
- <span class="strong">0% </span>
34
- <span class="quiet">Branches</span>
35
- <span class='fraction'>0/12</span>
36
- </div>
37
-
38
-
39
- <div class='fl pad1y space-right2'>
40
- <span class="strong">0% </span>
41
- <span class="quiet">Functions</span>
42
- <span class='fraction'>0/9</span>
43
- </div>
44
-
45
-
46
- <div class='fl pad1y space-right2'>
47
- <span class="strong">0% </span>
48
- <span class="quiet">Lines</span>
49
- <span class='fraction'>0/26</span>
50
- </div>
51
-
52
-
53
- </div>
54
- <p class="quiet">
55
- Press <em>n</em> or <em>j</em> to go to the next uncovered block, <em>b</em>, <em>p</em> or <em>k</em> for the previous block.
56
- </p>
57
- <template id="filterTemplate">
58
- <div class="quiet">
59
- Filter:
60
- <input oninput="onInput()" type="search" id="fileSearch">
61
- </div>
62
- </template>
63
- </div>
64
- <div class='status-line low'></div>
65
- <pre><table class="coverage">
66
- <tr><td class="line-count quiet"><a name='L1'></a><a href='#L1'>1</a>
67
- <a name='L2'></a><a href='#L2'>2</a>
68
- <a name='L3'></a><a href='#L3'>3</a>
69
- <a name='L4'></a><a href='#L4'>4</a>
70
- <a name='L5'></a><a href='#L5'>5</a>
71
- <a name='L6'></a><a href='#L6'>6</a>
72
- <a name='L7'></a><a href='#L7'>7</a>
73
- <a name='L8'></a><a href='#L8'>8</a>
74
- <a name='L9'></a><a href='#L9'>9</a>
75
- <a name='L10'></a><a href='#L10'>10</a>
76
- <a name='L11'></a><a href='#L11'>11</a>
77
- <a name='L12'></a><a href='#L12'>12</a>
78
- <a name='L13'></a><a href='#L13'>13</a>
79
- <a name='L14'></a><a href='#L14'>14</a>
80
- <a name='L15'></a><a href='#L15'>15</a>
81
- <a name='L16'></a><a href='#L16'>16</a>
82
- <a name='L17'></a><a href='#L17'>17</a>
83
- <a name='L18'></a><a href='#L18'>18</a>
84
- <a name='L19'></a><a href='#L19'>19</a>
85
- <a name='L20'></a><a href='#L20'>20</a>
86
- <a name='L21'></a><a href='#L21'>21</a>
87
- <a name='L22'></a><a href='#L22'>22</a>
88
- <a name='L23'></a><a href='#L23'>23</a>
89
- <a name='L24'></a><a href='#L24'>24</a>
90
- <a name='L25'></a><a href='#L25'>25</a>
91
- <a name='L26'></a><a href='#L26'>26</a>
92
- <a name='L27'></a><a href='#L27'>27</a>
93
- <a name='L28'></a><a href='#L28'>28</a>
94
- <a name='L29'></a><a href='#L29'>29</a>
95
- <a name='L30'></a><a href='#L30'>30</a>
96
- <a name='L31'></a><a href='#L31'>31</a>
97
- <a name='L32'></a><a href='#L32'>32</a>
98
- <a name='L33'></a><a href='#L33'>33</a>
99
- <a name='L34'></a><a href='#L34'>34</a>
100
- <a name='L35'></a><a href='#L35'>35</a>
101
- <a name='L36'></a><a href='#L36'>36</a>
102
- <a name='L37'></a><a href='#L37'>37</a>
103
- <a name='L38'></a><a href='#L38'>38</a>
104
- <a name='L39'></a><a href='#L39'>39</a>
105
- <a name='L40'></a><a href='#L40'>40</a>
106
- <a name='L41'></a><a href='#L41'>41</a>
107
- <a name='L42'></a><a href='#L42'>42</a>
108
- <a name='L43'></a><a href='#L43'>43</a>
109
- <a name='L44'></a><a href='#L44'>44</a>
110
- <a name='L45'></a><a href='#L45'>45</a>
111
- <a name='L46'></a><a href='#L46'>46</a>
112
- <a name='L47'></a><a href='#L47'>47</a>
113
- <a name='L48'></a><a href='#L48'>48</a>
114
- <a name='L49'></a><a href='#L49'>49</a>
115
- <a name='L50'></a><a href='#L50'>50</a>
116
- <a name='L51'></a><a href='#L51'>51</a>
117
- <a name='L52'></a><a href='#L52'>52</a>
118
- <a name='L53'></a><a href='#L53'>53</a>
119
- <a name='L54'></a><a href='#L54'>54</a>
120
- <a name='L55'></a><a href='#L55'>55</a>
121
- <a name='L56'></a><a href='#L56'>56</a>
122
- <a name='L57'></a><a href='#L57'>57</a>
123
- <a name='L58'></a><a href='#L58'>58</a>
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></td><td class="line-coverage quiet"><span class="cline-any cline-neutral">&nbsp;</span>
130
- <span class="cline-any cline-neutral">&nbsp;</span>
131
- <span class="cline-any cline-neutral">&nbsp;</span>
132
- <span class="cline-any cline-no">&nbsp;</span>
133
- <span class="cline-any cline-no">&nbsp;</span>
134
- <span class="cline-any cline-no">&nbsp;</span>
135
- <span class="cline-any cline-no">&nbsp;</span>
136
- <span class="cline-any cline-neutral">&nbsp;</span>
137
- <span class="cline-any cline-no">&nbsp;</span>
138
- <span class="cline-any cline-no">&nbsp;</span>
139
- <span class="cline-any cline-no">&nbsp;</span>
140
- <span class="cline-any cline-neutral">&nbsp;</span>
141
- <span class="cline-any cline-neutral">&nbsp;</span>
142
- <span class="cline-any cline-no">&nbsp;</span>
143
- <span class="cline-any cline-no">&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-no">&nbsp;</span>
147
- <span class="cline-any cline-no">&nbsp;</span>
148
- <span class="cline-any cline-no">&nbsp;</span>
149
- <span class="cline-any cline-no">&nbsp;</span>
150
- <span class="cline-any cline-neutral">&nbsp;</span>
151
- <span class="cline-any cline-no">&nbsp;</span>
152
- <span class="cline-any cline-neutral">&nbsp;</span>
153
- <span class="cline-any cline-neutral">&nbsp;</span>
154
- <span class="cline-any cline-neutral">&nbsp;</span>
155
- <span class="cline-any cline-neutral">&nbsp;</span>
156
- <span class="cline-any cline-no">&nbsp;</span>
157
- <span class="cline-any cline-no">&nbsp;</span>
158
- <span class="cline-any cline-no">&nbsp;</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-no">&nbsp;</span>
162
- <span class="cline-any cline-no">&nbsp;</span>
163
- <span class="cline-any cline-neutral">&nbsp;</span>
164
- <span class="cline-any cline-neutral">&nbsp;</span>
165
- <span class="cline-any cline-no">&nbsp;</span>
166
- <span class="cline-any cline-no">&nbsp;</span>
167
- <span class="cline-any cline-no">&nbsp;</span>
168
- <span class="cline-any cline-neutral">&nbsp;</span>
169
- <span class="cline-any cline-neutral">&nbsp;</span>
170
- <span class="cline-any cline-neutral">&nbsp;</span>
171
- <span class="cline-any cline-no">&nbsp;</span>
172
- <span class="cline-any cline-no">&nbsp;</span>
173
- <span class="cline-any cline-neutral">&nbsp;</span>
174
- <span class="cline-any cline-neutral">&nbsp;</span>
175
- <span class="cline-any cline-neutral">&nbsp;</span>
176
- <span class="cline-any cline-neutral">&nbsp;</span>
177
- <span class="cline-any cline-neutral">&nbsp;</span>
178
- <span class="cline-any cline-no">&nbsp;</span>
179
- <span class="cline-any cline-neutral">&nbsp;</span>
180
- <span class="cline-any cline-no">&nbsp;</span>
181
- <span class="cline-any cline-neutral">&nbsp;</span>
182
- <span class="cline-any cline-neutral">&nbsp;</span>
183
- <span class="cline-any cline-neutral">&nbsp;</span>
184
- <span class="cline-any cline-neutral">&nbsp;</span>
185
- <span class="cline-any cline-neutral">&nbsp;</span>
186
- <span class="cline-any cline-neutral">&nbsp;</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>
190
- <span class="cline-any cline-neutral">&nbsp;</span>
191
- <span class="cline-any cline-neutral">&nbsp;</span>
192
- <span class="cline-any cline-neutral">&nbsp;</span></td><td class="text"><pre class="prettyprint lang-js">import { useEffect, useState } from 'react';
193
- import { useFieldArray } from 'react-final-form-arrays';
194
- &nbsp;
195
- const useKiwtFieldArray = <span class="cstat-no" title="statement not covered" ><span class="fstat-no" title="function not covered" >(n</span>ame, submitWholeDeletedObject = <span class="branch-0 cbranch-no" title="branch not covered" >false)</span> =&gt; {</span>
196
- const { fields } = <span class="cstat-no" title="statement not covered" >useFieldArray(name);</span>
197
- const { value: values = <span class="branch-0 cbranch-no" title="branch not covered" >[] </span>} = <span class="cstat-no" title="statement not covered" >fields;</span>
198
- const [endOfList, setEndOfList] = <span class="cstat-no" title="statement not covered" >useState(0);</span>
199
- &nbsp;
200
- <span class="cstat-no" title="statement not covered" > useEffect(<span class="fstat-no" title="function not covered" >()</span> =&gt; {</span>
201
- const i = <span class="cstat-no" title="statement not covered" >values.filter(<span class="fstat-no" title="function not covered" >li</span>ne =&gt; <span class="cstat-no" title="statement not covered" >!line._delete)</span>;</span>
202
- <span class="cstat-no" title="statement not covered" > setEndOfList(i.length);</span>
203
- }, [values]);
204
- &nbsp;
205
- const onAddField = <span class="cstat-no" title="statement not covered" ><span class="fstat-no" title="function not covered" >(f</span>ield = <span class="branch-0 cbranch-no" title="branch not covered" >{ _delete: false })</span> =&gt; {</span>
206
- <span class="cstat-no" title="statement not covered" > fields.insert(endOfList, field);</span>
207
- };
208
- &nbsp;
209
- const onMarkForDeletion = <span class="cstat-no" title="statement not covered" ><span class="fstat-no" title="function not covered" >(f</span>ield) =&gt; {</span>
210
- <span class="cstat-no" title="statement not covered" > if (field &amp;&amp; field.id) {</span>
211
- <span class="cstat-no" title="statement not covered" > if (submitWholeDeletedObject) {</span>
212
- <span class="cstat-no" title="statement not covered" > fields.push({ ...field, _delete: true });</span>
213
- } else {
214
- <span class="cstat-no" title="statement not covered" > fields.push({ id: field.id, _delete: true });</span>
215
- }
216
- }
217
- };
218
- &nbsp;
219
- const onDeleteField = <span class="cstat-no" title="statement not covered" ><span class="fstat-no" title="function not covered" >(i</span>ndex, field) =&gt; {</span>
220
- <span class="cstat-no" title="statement not covered" > fields.remove(index);</span>
221
- <span class="cstat-no" title="statement not covered" > onMarkForDeletion(field);</span>
222
- };
223
- &nbsp;
224
- const onPrependField = <span class="cstat-no" title="statement not covered" ><span class="fstat-no" title="function not covered" >(f</span>ield = <span class="branch-0 cbranch-no" title="branch not covered" >{ _delete: false })</span> =&gt; {</span>
225
- <span class="cstat-no" title="statement not covered" > fields.unshift(field);</span>
226
- };
227
- &nbsp;
228
- const onReplaceField = <span class="cstat-no" title="statement not covered" ><span class="fstat-no" title="function not covered" >(i</span>ndex, field) =&gt; {</span>
229
- <span class="cstat-no" title="statement not covered" > if (fields.update) { // react-final-form-arrays</span>
230
- <span class="cstat-no" title="statement not covered" > fields.update(index, field);</span>
231
- }
232
- };
233
- &nbsp;
234
- const onUpdateField = <span class="cstat-no" title="statement not covered" ><span class="fstat-no" title="function not covered" >(i</span>ndex, field) =&gt; {</span>
235
- <span class="cstat-no" title="statement not covered" > fields.update(index, {</span>
236
- ...fields.value[index],
237
- ...field,
238
- });
239
- };
240
- &nbsp;
241
- const items = <span class="cstat-no" title="statement not covered" >values.slice(0, endOfList);</span>
242
- &nbsp;
243
- <span class="cstat-no" title="statement not covered" > return {</span>
244
- items,
245
- onAddField,
246
- onDeleteField,
247
- onMarkForDeletion,
248
- onPrependField,
249
- onReplaceField,
250
- onUpdateField,
251
- };
252
- };
253
- &nbsp;
254
- export default useKiwtFieldArray;
255
- &nbsp;</pre></td></tr></table></pre>
256
-
257
- <div class='push'></div><!-- for sticky footer -->
258
- </div><!-- /wrapper -->
259
- <div class='footer quiet pad2 space-top1 center small'>
260
- Code coverage generated by
261
- <a href="https://istanbul.js.org/" target="_blank" rel="noopener noreferrer">istanbul</a>
262
- at 2022-11-22T10:07:38.260Z
263
- </div>
264
- <script src="../prettify.js"></script>
265
- <script>
266
- window.onload = function () {
267
- prettyPrint();
268
- };
269
- </script>
270
- <script src="../sorter.js"></script>
271
- <script src="../block-navigation.js"></script>
272
- </body>
273
- </html>
274
-