@k-int/stripes-kint-components 4.7.1 → 4.7.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (294) hide show
  1. package/CHANGELOG.md +8 -1
  2. package/README.md +1 -1
  3. package/es/index.js +2 -2
  4. package/es/lib/ActionList/ActionList.js +3 -4
  5. package/es/lib/ActionList/ActionListFieldArray.js +32 -36
  6. package/es/lib/ComboButton/ComboButton.js +6 -8
  7. package/es/lib/CustomProperties/Config/CustomPropertiesLookup.js +5 -9
  8. package/es/lib/CustomProperties/Config/CustomPropertiesSettings.js +30 -34
  9. package/es/lib/CustomProperties/Config/CustomPropertyForm.js +59 -60
  10. package/es/lib/CustomProperties/Config/CustomPropertyForm.test.js +2 -2
  11. package/es/lib/CustomProperties/Config/CustomPropertyView.js +33 -35
  12. package/es/lib/CustomProperties/Config/CustomPropertyView.test.js +1 -1
  13. package/es/lib/CustomProperties/Edit/CustomPropertiesEdit.js +2 -3
  14. package/es/lib/CustomProperties/Edit/CustomPropertiesEditCtx.js +4 -5
  15. package/es/lib/CustomProperties/Edit/CustomPropertiesListField.js +6 -12
  16. package/es/lib/CustomProperties/Edit/CustomPropertyField.js +21 -29
  17. package/es/lib/CustomProperties/Edit/CustomPropertyField.test.js +5 -5
  18. package/es/lib/CustomProperties/Edit/CustomPropertyFormCard.js +3 -4
  19. package/es/lib/CustomProperties/Edit/CustomPropertyFormCard.test.js +3 -3
  20. package/es/lib/CustomProperties/Edit/testResources.js +14 -17
  21. package/es/lib/CustomProperties/Filter/CustomPropertiesFilter.js +7 -13
  22. package/es/lib/CustomProperties/Filter/CustomPropertiesFilterField.js +21 -30
  23. package/es/lib/CustomProperties/Filter/CustomPropertiesFilterField.test.js +1 -1
  24. package/es/lib/CustomProperties/Filter/CustomPropertiesFilterFieldArray.js +7 -8
  25. package/es/lib/CustomProperties/Filter/CustomPropertiesFilterForm.js +1 -2
  26. package/es/lib/CustomProperties/Filter/CustomPropertiesRule.js +9 -10
  27. package/es/lib/CustomProperties/Filter/testResources.js +5 -9
  28. package/es/lib/CustomProperties/Filter/useOperators.js +3 -4
  29. package/es/lib/CustomProperties/Filter/useParseActiveFilterStrings.js +2 -4
  30. package/es/lib/CustomProperties/Filter/useValueProps.js +3 -4
  31. package/es/lib/CustomProperties/View/CustomPropertiesView.js +2 -3
  32. package/es/lib/CustomProperties/View/CustomPropertiesViewCtx.js +19 -28
  33. package/es/lib/CustomProperties/View/CustomPropertyCard.js +10 -15
  34. package/es/lib/CustomProperties/View/testResources.js +5 -9
  35. package/es/lib/CycleButton/CycleButton.js +2 -3
  36. package/es/lib/EditableRefdataCategoryList/EditableRefdataCategoryList.js +24 -36
  37. package/es/lib/EditableRefdataList/EditableRefdataList.js +29 -37
  38. package/es/lib/EditableSettingsList/EditableSettingsList.js +1 -2
  39. package/es/lib/EditableSettingsList/EditableSettingsListFieldArray.js +2 -3
  40. package/es/lib/EditableSettingsList/SettingField/EditSettingValue.js +6 -7
  41. package/es/lib/EditableSettingsList/SettingField/RenderSettingValue.js +11 -14
  42. package/es/lib/EditableSettingsList/SettingField/SettingField.js +7 -8
  43. package/es/lib/FormModal/FormModal.js +1 -2
  44. package/es/lib/FormattedKintMessage/FormattedKintMessage.js +5 -9
  45. package/es/lib/IconSelect/IconSelect.js +8 -13
  46. package/es/lib/NoResultsMessage/NoResultsMessage.js +5 -6
  47. package/es/lib/QueryTypedown/QueryTypedown.js +3 -4
  48. package/es/lib/RefdataButtons/RefdataButtons.js +4 -5
  49. package/es/lib/ResponsiveButtonGroup/ResponsiveButtonGroup.js +22 -30
  50. package/es/lib/ResponsiveButtonGroup/useResponsiveButtonGroupSizing.js +6 -8
  51. package/es/lib/RichSelect/RichSelect.js +15 -21
  52. package/es/lib/RichSelect/useSelectedOption.js +2 -4
  53. package/es/lib/SASQLookupComponent/SASQLookupComponent.js +15 -19
  54. package/es/lib/SASQLookupComponent/TableBody/TableBody.js +5 -8
  55. package/es/lib/SASQRoute/SASQRoute.js +3 -4
  56. package/es/lib/SASQViewComponent/SASQViewComponent.js +6 -11
  57. package/es/lib/SearchField/SearchField.js +1 -2
  58. package/es/lib/SettingPage/SettingPage.js +3 -4
  59. package/es/lib/SettingPage/SettingPagePane.js +3 -4
  60. package/es/lib/SettingsFormContainer/SettingsFormContainer.js +3 -4
  61. package/es/lib/Typedown/Typedown.js +22 -30
  62. package/es/lib/constants/customProperties.js +11 -22
  63. package/es/lib/constants/endpoints.js +1 -2
  64. package/es/lib/constants/eventCodes.js +3 -6
  65. package/es/lib/contexts/SettingsContext.js +1 -2
  66. package/es/lib/hooks/typedownHooks/useTypedown.js +3 -4
  67. package/es/lib/hooks/typedownHooks/useTypedownData.js +1 -2
  68. package/es/lib/hooks/typedownHooks/useTypedownToggle.js +3 -4
  69. package/es/lib/hooks/useActiveElement.js +2 -3
  70. package/es/lib/hooks/useCustomProperties.js +3 -4
  71. package/es/lib/hooks/useHelperApp.js +9 -10
  72. package/es/lib/hooks/useIntlKey.js +1 -2
  73. package/es/lib/hooks/useIntlKeyStore.js +5 -9
  74. package/es/lib/hooks/useInvalidateRefdata.js +1 -2
  75. package/es/lib/hooks/useKintIntl.js +6 -13
  76. package/es/lib/hooks/useKiwtFieldArray.js +1 -2
  77. package/es/lib/hooks/useKiwtSASQuery.js +4 -5
  78. package/es/lib/hooks/useLocalStorageState.js +3 -4
  79. package/es/lib/hooks/useModConfigEntries.js +3 -4
  80. package/es/lib/hooks/useMutateCustomProperties.js +9 -10
  81. package/es/lib/hooks/useMutateModConfigEntry.js +3 -4
  82. package/es/lib/hooks/useMutateRefdataCategory.js +5 -6
  83. package/es/lib/hooks/useMutateRefdataValue.js +7 -8
  84. package/es/lib/hooks/useQIndex.js +8 -9
  85. package/es/lib/hooks/useRefdata.js +4 -5
  86. package/es/lib/hooks/useSASQQueryMeta.js +1 -2
  87. package/es/lib/hooks/useTemplates.js +5 -6
  88. package/es/lib/settingsHooks/useAppSettings.js +8 -13
  89. package/es/lib/settingsHooks/useSettingSection.js +3 -4
  90. package/es/lib/settingsHooks/useSettings.js +4 -5
  91. package/es/lib/utils/buildUrl.js +1 -1
  92. package/es/lib/utils/generateKiwtQuery.js +1 -2
  93. package/es/lib/utils/generateKiwtQueryParams.js +28 -38
  94. package/es/lib/utils/groupCustomPropertiesByCtx.js +3 -5
  95. package/es/lib/utils/matchString.js +2 -3
  96. package/es/lib/utils/modConfigEntriesQueryKey.js +1 -2
  97. package/es/lib/utils/parseErrorResponse.js +3 -5
  98. package/es/lib/utils/parseKiwtQueryGroups.js +5 -7
  99. package/es/lib/utils/parseModConfigEntry.js +1 -2
  100. package/es/lib/utils/refdataOptions.js +2 -3
  101. package/es/lib/utils/refdataQueryKey.js +1 -2
  102. package/es/lib/utils/selectorSafe.js +4 -6
  103. package/es/lib/utils/sortByLabel.js +3 -5
  104. package/es/lib/utils/toCamelCase.js +1 -2
  105. package/es/lib/utils/typedownQueryKey.js +1 -2
  106. package/es/lib/validators/validators.js +3 -3
  107. package/package.json +12 -2
  108. package/es/artifacts/coverage-jest/lcov-report/block-navigation.js +0 -69
  109. package/es/artifacts/coverage-jest/lcov-report/prettify.js +0 -814
  110. package/es/artifacts/coverage-jest/lcov-report/sorter.js +0 -181
  111. package/junit.xml +0 -293
  112. package/src/artifacts/coverage-jest/lcov-report/ActionList/ActionList.js.html +0 -373
  113. package/src/artifacts/coverage-jest/lcov-report/ActionList/ActionListFieldArray.js.html +0 -1465
  114. package/src/artifacts/coverage-jest/lcov-report/ActionList/index.html +0 -146
  115. package/src/artifacts/coverage-jest/lcov-report/ActionList/index.js.html +0 -88
  116. package/src/artifacts/coverage-jest/lcov-report/CustomProperties/Config/CustomPropertiesLookup.js.html +0 -667
  117. package/src/artifacts/coverage-jest/lcov-report/CustomProperties/Config/CustomPropertiesSettings.js.html +0 -1240
  118. package/src/artifacts/coverage-jest/lcov-report/CustomProperties/Config/CustomPropertyForm.js.html +0 -1474
  119. package/src/artifacts/coverage-jest/lcov-report/CustomProperties/Config/CustomPropertyView.js.html +0 -733
  120. package/src/artifacts/coverage-jest/lcov-report/CustomProperties/Config/index.html +0 -176
  121. package/src/artifacts/coverage-jest/lcov-report/CustomProperties/Config/index.js.html +0 -97
  122. package/src/artifacts/coverage-jest/lcov-report/CustomProperties/Config/testResources.js.html +0 -793
  123. package/src/artifacts/coverage-jest/lcov-report/CustomProperties/Edit/CustomPropertiesEdit.js.html +0 -208
  124. package/src/artifacts/coverage-jest/lcov-report/CustomProperties/Edit/CustomPropertiesEditCtx.js.html +0 -352
  125. package/src/artifacts/coverage-jest/lcov-report/CustomProperties/Edit/CustomPropertiesListField.js.html +0 -826
  126. package/src/artifacts/coverage-jest/lcov-report/CustomProperties/Edit/CustomPropertyField.js.html +0 -1297
  127. package/src/artifacts/coverage-jest/lcov-report/CustomProperties/Edit/CustomPropertyFormCard.js.html +0 -454
  128. package/src/artifacts/coverage-jest/lcov-report/CustomProperties/Edit/index.html +0 -206
  129. package/src/artifacts/coverage-jest/lcov-report/CustomProperties/Edit/index.js.html +0 -100
  130. package/src/artifacts/coverage-jest/lcov-report/CustomProperties/Edit/testResources.js.html +0 -271
  131. package/src/artifacts/coverage-jest/lcov-report/CustomProperties/Filter/CustomPropertiesFilter.js.html +0 -499
  132. package/src/artifacts/coverage-jest/lcov-report/CustomProperties/Filter/CustomPropertiesFilterField.js.html +0 -568
  133. package/src/artifacts/coverage-jest/lcov-report/CustomProperties/Filter/CustomPropertiesFilterFieldArray.js.html +0 -415
  134. package/src/artifacts/coverage-jest/lcov-report/CustomProperties/Filter/CustomPropertiesFilterForm.js.html +0 -340
  135. package/src/artifacts/coverage-jest/lcov-report/CustomProperties/Filter/CustomPropertiesRule.js.html +0 -502
  136. package/src/artifacts/coverage-jest/lcov-report/CustomProperties/Filter/index.html +0 -251
  137. package/src/artifacts/coverage-jest/lcov-report/CustomProperties/Filter/index.js.html +0 -103
  138. package/src/artifacts/coverage-jest/lcov-report/CustomProperties/Filter/testResources.js.html +0 -223
  139. package/src/artifacts/coverage-jest/lcov-report/CustomProperties/Filter/useOperators.js.html +0 -271
  140. package/src/artifacts/coverage-jest/lcov-report/CustomProperties/Filter/useParseActiveFilterStrings.js.html +0 -199
  141. package/src/artifacts/coverage-jest/lcov-report/CustomProperties/Filter/useValueProps.js.html +0 -253
  142. package/src/artifacts/coverage-jest/lcov-report/CustomProperties/View/CustomPropertiesView.js.html +0 -211
  143. package/src/artifacts/coverage-jest/lcov-report/CustomProperties/View/CustomPropertiesViewCtx.js.html +0 -445
  144. package/src/artifacts/coverage-jest/lcov-report/CustomProperties/View/CustomPropertyCard.js.html +0 -619
  145. package/src/artifacts/coverage-jest/lcov-report/CustomProperties/View/index.html +0 -176
  146. package/src/artifacts/coverage-jest/lcov-report/CustomProperties/View/index.js.html +0 -94
  147. package/src/artifacts/coverage-jest/lcov-report/CustomProperties/View/testResources.js.html +0 -571
  148. package/src/artifacts/coverage-jest/lcov-report/CustomProperties/index.html +0 -116
  149. package/src/artifacts/coverage-jest/lcov-report/CustomProperties/index.js.html +0 -175
  150. package/src/artifacts/coverage-jest/lcov-report/CycleButton/CycleButton.js.html +0 -217
  151. package/src/artifacts/coverage-jest/lcov-report/CycleButton/index.html +0 -131
  152. package/src/artifacts/coverage-jest/lcov-report/CycleButton/index.js.html +0 -88
  153. package/src/artifacts/coverage-jest/lcov-report/EditableRefdataCategoryList/EditableRefdataCategoryList.js.html +0 -751
  154. package/src/artifacts/coverage-jest/lcov-report/EditableRefdataCategoryList/index.html +0 -131
  155. package/src/artifacts/coverage-jest/lcov-report/EditableRefdataCategoryList/index.js.html +0 -88
  156. package/src/artifacts/coverage-jest/lcov-report/EditableRefdataList/EditableRefdataList.js.html +0 -853
  157. package/src/artifacts/coverage-jest/lcov-report/EditableRefdataList/index.html +0 -131
  158. package/src/artifacts/coverage-jest/lcov-report/EditableRefdataList/index.js.html +0 -88
  159. package/src/artifacts/coverage-jest/lcov-report/EditableSettingsList/EditableSettingsList.js.html +0 -280
  160. package/src/artifacts/coverage-jest/lcov-report/EditableSettingsList/EditableSettingsListFieldArray.js.html +0 -259
  161. package/src/artifacts/coverage-jest/lcov-report/EditableSettingsList/SettingField/EditSettingValue.js.html +0 -412
  162. package/src/artifacts/coverage-jest/lcov-report/EditableSettingsList/SettingField/RenderSettingValue.js.html +0 -313
  163. package/src/artifacts/coverage-jest/lcov-report/EditableSettingsList/SettingField/SettingField.js.html +0 -574
  164. package/src/artifacts/coverage-jest/lcov-report/EditableSettingsList/SettingField/index.html +0 -161
  165. package/src/artifacts/coverage-jest/lcov-report/EditableSettingsList/SettingField/index.js.html +0 -94
  166. package/src/artifacts/coverage-jest/lcov-report/EditableSettingsList/index.html +0 -146
  167. package/src/artifacts/coverage-jest/lcov-report/EditableSettingsList/index.js.html +0 -94
  168. package/src/artifacts/coverage-jest/lcov-report/FormModal/FormModal.js.html +0 -379
  169. package/src/artifacts/coverage-jest/lcov-report/FormModal/index.html +0 -131
  170. package/src/artifacts/coverage-jest/lcov-report/FormModal/index.js.html +0 -88
  171. package/src/artifacts/coverage-jest/lcov-report/FormattedKintMessage/FormattedKintMessage.js.html +0 -247
  172. package/src/artifacts/coverage-jest/lcov-report/FormattedKintMessage/index.html +0 -131
  173. package/src/artifacts/coverage-jest/lcov-report/FormattedKintMessage/index.js.html +0 -88
  174. package/src/artifacts/coverage-jest/lcov-report/IconSelect/IconSelect.js.html +0 -508
  175. package/src/artifacts/coverage-jest/lcov-report/IconSelect/index.html +0 -131
  176. package/src/artifacts/coverage-jest/lcov-report/IconSelect/index.js.html +0 -88
  177. package/src/artifacts/coverage-jest/lcov-report/NoResultsMessage/NoResultsMessage.js.html +0 -361
  178. package/src/artifacts/coverage-jest/lcov-report/NoResultsMessage/index.html +0 -131
  179. package/src/artifacts/coverage-jest/lcov-report/NoResultsMessage/index.js.html +0 -88
  180. package/src/artifacts/coverage-jest/lcov-report/QueryTypedown/QueryTypedown.js.html +0 -205
  181. package/src/artifacts/coverage-jest/lcov-report/QueryTypedown/index.html +0 -131
  182. package/src/artifacts/coverage-jest/lcov-report/QueryTypedown/index.js.html +0 -88
  183. package/src/artifacts/coverage-jest/lcov-report/RefdataButtons/RefdataButtons.js.html +0 -370
  184. package/src/artifacts/coverage-jest/lcov-report/RefdataButtons/index.html +0 -131
  185. package/src/artifacts/coverage-jest/lcov-report/RefdataButtons/index.js.html +0 -88
  186. package/src/artifacts/coverage-jest/lcov-report/ResponsiveButtonGroup/ResponsiveButtonGroup.js.html +0 -580
  187. package/src/artifacts/coverage-jest/lcov-report/ResponsiveButtonGroup/index.html +0 -146
  188. package/src/artifacts/coverage-jest/lcov-report/ResponsiveButtonGroup/index.js.html +0 -88
  189. package/src/artifacts/coverage-jest/lcov-report/ResponsiveButtonGroup/useResponsiveButtonGroupSizing.js.html +0 -301
  190. package/src/artifacts/coverage-jest/lcov-report/RichSelect/RichSelect.js.html +0 -718
  191. package/src/artifacts/coverage-jest/lcov-report/RichSelect/index.html +0 -146
  192. package/src/artifacts/coverage-jest/lcov-report/RichSelect/index.js.html +0 -91
  193. package/src/artifacts/coverage-jest/lcov-report/RichSelect/useSelectedOption.js.html +0 -127
  194. package/src/artifacts/coverage-jest/lcov-report/SASQLookupComponent/SASQLookupComponent.js.html +0 -1069
  195. package/src/artifacts/coverage-jest/lcov-report/SASQLookupComponent/TableBody/TableBody.js.html +0 -400
  196. package/src/artifacts/coverage-jest/lcov-report/SASQLookupComponent/TableBody/index.html +0 -131
  197. package/src/artifacts/coverage-jest/lcov-report/SASQLookupComponent/TableBody/index.js.html +0 -88
  198. package/src/artifacts/coverage-jest/lcov-report/SASQLookupComponent/index.html +0 -131
  199. package/src/artifacts/coverage-jest/lcov-report/SASQLookupComponent/index.js.html +0 -91
  200. package/src/artifacts/coverage-jest/lcov-report/SASQRoute/SASQRoute.js.html +0 -346
  201. package/src/artifacts/coverage-jest/lcov-report/SASQRoute/index.html +0 -131
  202. package/src/artifacts/coverage-jest/lcov-report/SASQRoute/index.js.html +0 -88
  203. package/src/artifacts/coverage-jest/lcov-report/SASQViewComponent/SASQViewComponent.js.html +0 -307
  204. package/src/artifacts/coverage-jest/lcov-report/SASQViewComponent/index.html +0 -131
  205. package/src/artifacts/coverage-jest/lcov-report/SASQViewComponent/index.js.html +0 -88
  206. package/src/artifacts/coverage-jest/lcov-report/SearchField/SearchField.js.html +0 -214
  207. package/src/artifacts/coverage-jest/lcov-report/SearchField/index.html +0 -131
  208. package/src/artifacts/coverage-jest/lcov-report/SearchField/index.js.html +0 -88
  209. package/src/artifacts/coverage-jest/lcov-report/SettingPage/SettingPage.js.html +0 -220
  210. package/src/artifacts/coverage-jest/lcov-report/SettingPage/SettingPagePane.js.html +0 -208
  211. package/src/artifacts/coverage-jest/lcov-report/SettingPage/index.html +0 -146
  212. package/src/artifacts/coverage-jest/lcov-report/SettingPage/index.js.html +0 -91
  213. package/src/artifacts/coverage-jest/lcov-report/SettingsFormContainer/SettingsFormContainer.js.html +0 -337
  214. package/src/artifacts/coverage-jest/lcov-report/SettingsFormContainer/index.html +0 -131
  215. package/src/artifacts/coverage-jest/lcov-report/SettingsFormContainer/index.js.html +0 -88
  216. package/src/artifacts/coverage-jest/lcov-report/Typedown/Typedown.js.html +0 -913
  217. package/src/artifacts/coverage-jest/lcov-report/Typedown/index.html +0 -131
  218. package/src/artifacts/coverage-jest/lcov-report/Typedown/index.js.html +0 -88
  219. package/src/artifacts/coverage-jest/lcov-report/base.css +0 -224
  220. package/src/artifacts/coverage-jest/lcov-report/block-navigation.js +0 -87
  221. package/src/artifacts/coverage-jest/lcov-report/constants/customProperties.js.html +0 -121
  222. package/src/artifacts/coverage-jest/lcov-report/constants/endpoints.js.html +0 -91
  223. package/src/artifacts/coverage-jest/lcov-report/constants/eventCodes.js.html +0 -94
  224. package/src/artifacts/coverage-jest/lcov-report/constants/index.html +0 -146
  225. package/src/artifacts/coverage-jest/lcov-report/contexts/SettingsContext.js.html +0 -97
  226. package/src/artifacts/coverage-jest/lcov-report/contexts/index.html +0 -131
  227. package/src/artifacts/coverage-jest/lcov-report/contexts/index.js.html +0 -91
  228. package/src/artifacts/coverage-jest/lcov-report/favicon.png +0 -0
  229. package/src/artifacts/coverage-jest/lcov-report/hooks/index.html +0 -401
  230. package/src/artifacts/coverage-jest/lcov-report/hooks/index.js.html +0 -142
  231. package/src/artifacts/coverage-jest/lcov-report/hooks/settingsHooks/index.html +0 -161
  232. package/src/artifacts/coverage-jest/lcov-report/hooks/settingsHooks/index.js.html +0 -94
  233. package/src/artifacts/coverage-jest/lcov-report/hooks/settingsHooks/useAppSettings.js.html +0 -292
  234. package/src/artifacts/coverage-jest/lcov-report/hooks/settingsHooks/useSettingSection.js.html +0 -214
  235. package/src/artifacts/coverage-jest/lcov-report/hooks/settingsHooks/useSettings.js.html +0 -463
  236. package/src/artifacts/coverage-jest/lcov-report/hooks/typedownHooks/index.html +0 -161
  237. package/src/artifacts/coverage-jest/lcov-report/hooks/typedownHooks/index.js.html +0 -94
  238. package/src/artifacts/coverage-jest/lcov-report/hooks/typedownHooks/useTypedown.js.html +0 -520
  239. package/src/artifacts/coverage-jest/lcov-report/hooks/typedownHooks/useTypedownData.js.html +0 -181
  240. package/src/artifacts/coverage-jest/lcov-report/hooks/typedownHooks/useTypedownToggle.js.html +0 -163
  241. package/src/artifacts/coverage-jest/lcov-report/hooks/useActiveElement.js.html +0 -157
  242. package/src/artifacts/coverage-jest/lcov-report/hooks/useAvailableCustomProperties.js.html +0 -205
  243. package/src/artifacts/coverage-jest/lcov-report/hooks/useCustomProperties.js.html +0 -325
  244. package/src/artifacts/coverage-jest/lcov-report/hooks/useHelperApp.js.html +0 -295
  245. package/src/artifacts/coverage-jest/lcov-report/hooks/useIntlKey.js.html +0 -151
  246. package/src/artifacts/coverage-jest/lcov-report/hooks/useIntlKeyStore.js.html +0 -199
  247. package/src/artifacts/coverage-jest/lcov-report/hooks/useInvalidateRefdata.js.html +0 -118
  248. package/src/artifacts/coverage-jest/lcov-report/hooks/useKintIntl.js.html +0 -238
  249. package/src/artifacts/coverage-jest/lcov-report/hooks/useKiwtFieldArray.js.html +0 -274
  250. package/src/artifacts/coverage-jest/lcov-report/hooks/useKiwtSASQuery.js.html +0 -196
  251. package/src/artifacts/coverage-jest/lcov-report/hooks/useLocalStorageState.js.html +0 -136
  252. package/src/artifacts/coverage-jest/lcov-report/hooks/useModConfigEntries.js.html +0 -226
  253. package/src/artifacts/coverage-jest/lcov-report/hooks/useMutateCustomProperties.js.html +0 -283
  254. package/src/artifacts/coverage-jest/lcov-report/hooks/useMutateModConfigEntry.js.html +0 -238
  255. package/src/artifacts/coverage-jest/lcov-report/hooks/useMutateRefdataCategory.js.html +0 -274
  256. package/src/artifacts/coverage-jest/lcov-report/hooks/useMutateRefdataValue.js.html +0 -322
  257. package/src/artifacts/coverage-jest/lcov-report/hooks/useQIndex.js.html +0 -208
  258. package/src/artifacts/coverage-jest/lcov-report/hooks/useRefdata.js.html +0 -265
  259. package/src/artifacts/coverage-jest/lcov-report/hooks/useSASQQueryMeta.js.html +0 -187
  260. package/src/artifacts/coverage-jest/lcov-report/hooks/useTemplates.js.html +0 -166
  261. package/src/artifacts/coverage-jest/lcov-report/index.html +0 -611
  262. package/src/artifacts/coverage-jest/lcov-report/prettify.css +0 -1
  263. package/src/artifacts/coverage-jest/lcov-report/prettify.js +0 -2
  264. package/src/artifacts/coverage-jest/lcov-report/settingsHooks/index.html +0 -161
  265. package/src/artifacts/coverage-jest/lcov-report/settingsHooks/index.js.html +0 -94
  266. package/src/artifacts/coverage-jest/lcov-report/settingsHooks/useAppSettings.js.html +0 -292
  267. package/src/artifacts/coverage-jest/lcov-report/settingsHooks/useSettingSection.js.html +0 -211
  268. package/src/artifacts/coverage-jest/lcov-report/settingsHooks/useSettings.js.html +0 -466
  269. package/src/artifacts/coverage-jest/lcov-report/sort-arrow-sprite.png +0 -0
  270. package/src/artifacts/coverage-jest/lcov-report/sorter.js +0 -196
  271. package/src/artifacts/coverage-jest/lcov-report/utils/buildUrl.js.html +0 -193
  272. package/src/artifacts/coverage-jest/lcov-report/utils/generateKiwtQuery.js.html +0 -109
  273. package/src/artifacts/coverage-jest/lcov-report/utils/generateKiwtQueryParams.js.html +0 -631
  274. package/src/artifacts/coverage-jest/lcov-report/utils/groupCustomPropertiesByCtx.js.html +0 -124
  275. package/src/artifacts/coverage-jest/lcov-report/utils/highlightString.js.html +0 -211
  276. package/src/artifacts/coverage-jest/lcov-report/utils/index.html +0 -356
  277. package/src/artifacts/coverage-jest/lcov-report/utils/index.js.html +0 -169
  278. package/src/artifacts/coverage-jest/lcov-report/utils/matchString.js.html +0 -127
  279. package/src/artifacts/coverage-jest/lcov-report/utils/modConfigEntriesQueryKey.js.html +0 -142
  280. package/src/artifacts/coverage-jest/lcov-report/utils/parseErrorResponse.js.html +0 -142
  281. package/src/artifacts/coverage-jest/lcov-report/utils/parseKiwtQueryGroups.js.html +0 -361
  282. package/src/artifacts/coverage-jest/lcov-report/utils/parseModConfigEntry.js.html +0 -130
  283. package/src/artifacts/coverage-jest/lcov-report/utils/refdataOptions.js.html +0 -109
  284. package/src/artifacts/coverage-jest/lcov-report/utils/refdataQueryKey.js.html +0 -112
  285. package/src/artifacts/coverage-jest/lcov-report/utils/renderHelpText.js.html +0 -166
  286. package/src/artifacts/coverage-jest/lcov-report/utils/selectorSafe.js.html +0 -145
  287. package/src/artifacts/coverage-jest/lcov-report/utils/sortByLabel.js.html +0 -130
  288. package/src/artifacts/coverage-jest/lcov-report/utils/toCamelCase.js.html +0 -127
  289. package/src/artifacts/coverage-jest/lcov-report/utils/typedownQueryKey.js.html +0 -112
  290. package/src/artifacts/coverage-jest/lcov-report/utils/validators.js.html +0 -370
  291. package/src/artifacts/coverage-jest/lcov-report/validators/index.html +0 -131
  292. package/src/artifacts/coverage-jest/lcov-report/validators/index.js.html +0 -88
  293. package/src/artifacts/coverage-jest/lcov-report/validators/validators.js.html +0 -370
  294. package/src/artifacts/coverage-jest/lcov.info +0 -5223
@@ -28,12 +28,12 @@ const calculateCumulativeThreshold = function (arrayOfNumbers, maximum) {
28
28
  let value = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : 0;
29
29
  // If all the numbers fit, return the last index
30
30
  if (arrayOfNumbers.reduce((partialSum, a) => partialSum + a, 0) <= maximum) {
31
- return (arrayOfNumbers === null || arrayOfNumbers === void 0 ? void 0 : arrayOfNumbers.length) - 1;
31
+ return arrayOfNumbers?.length - 1;
32
32
  }
33
33
 
34
34
  // Else we'll need a down arrow button, so include that in calculations
35
35
  const nextValue = value + arrayOfNumbers[index];
36
- if (nextValue + SIZE_OF_DOWN_ARROW_BUTTON <= maximum && index + 1 < (arrayOfNumbers === null || arrayOfNumbers === void 0 ? void 0 : arrayOfNumbers.length)) {
36
+ if (nextValue + SIZE_OF_DOWN_ARROW_BUTTON <= maximum && index + 1 < arrayOfNumbers?.length) {
37
37
  return calculateCumulativeThreshold(arrayOfNumbers, maximum, index + 1, nextValue);
38
38
  }
39
39
  return index - 1;
@@ -65,7 +65,6 @@ const ResponsiveButtonGroup = props => {
65
65
  });
66
66
  const buttonThreshold = calculateCumulativeThreshold(cachedSizeArray, containerWidth);
67
67
  const renderActionMenuToggle = (0, _react.useCallback)(_ref => {
68
- var _displayButtons$lengt;
69
68
  let {
70
69
  displayButtons,
71
70
  onToggle,
@@ -79,11 +78,11 @@ const ResponsiveButtonGroup = props => {
79
78
  ref: triggerRef,
80
79
  "aria-label": "menu",
81
80
  buttonClass: (0, _classnames.default)(_ResponsiveButtonGroup.default.width100, {
82
- ["".concat(_ResponsiveButtonGroup.default.dropdownButtonClass)]: ((_displayButtons$lengt = displayButtons === null || displayButtons === void 0 ? void 0 : displayButtons.length) !== null && _displayButtons$lengt !== void 0 ? _displayButtons$lengt : 0) > 0
81
+ [`${_ResponsiveButtonGroup.default.dropdownButtonClass}`]: (displayButtons?.length ?? 0) > 0
83
82
  }, {
84
- ["".concat(_ResponsiveButtonGroup.default.marginBottom)]: !marginBottom0
83
+ [`${_ResponsiveButtonGroup.default.marginBottom}`]: !marginBottom0
85
84
  }, {
86
- ["".concat(_ResponsiveButtonGroup.default.marginBottom0)]: marginBottom0
85
+ [`${_ResponsiveButtonGroup.default.marginBottom0}`]: marginBottom0
87
86
  }),
88
87
  buttonStyle: selectedIndex > buttonThreshold ? 'primary' : 'default',
89
88
  onClick: onToggle,
@@ -98,25 +97,19 @@ const ResponsiveButtonGroup = props => {
98
97
  })
99
98
  });
100
99
  }, [buttonThreshold, dropdownTriggerProps, marginBottom0, selectedIndex]);
101
- const displayButtons = (0, _react.useMemo)(() => {
102
- var _buttons$slice;
103
- return buttons === null || buttons === void 0 ? void 0 : (_buttons$slice = buttons.slice(0, buttonThreshold + 1)) === null || _buttons$slice === void 0 ? void 0 : _buttons$slice.map((button, index) => {
104
- if (index === selectedIndex && !(button !== null && button !== void 0 && button.buttonStyle)) {
105
- return /*#__PURE__*/(0, _react.cloneElement)(button, {
106
- buttonStyle: 'primary'
107
- });
108
- }
109
- return button;
110
- });
111
- }, [buttonThreshold, buttons, selectedIndex]);
112
- const dropdownButtons = (0, _react.useMemo)(() => {
113
- var _buttons$slice2;
114
- return [...((_buttons$slice2 = buttons.slice(buttonThreshold + 1, buttons === null || buttons === void 0 ? void 0 : buttons.length)) === null || _buttons$slice2 === void 0 ? void 0 : _buttons$slice2.map(button => {
100
+ const displayButtons = (0, _react.useMemo)(() => buttons?.slice(0, buttonThreshold + 1)?.map((button, index) => {
101
+ if (index === selectedIndex && !button?.buttonStyle) {
115
102
  return /*#__PURE__*/(0, _react.cloneElement)(button, {
116
- buttonStyle: 'dropdownItem'
103
+ buttonStyle: 'primary'
117
104
  });
118
- }))];
119
- }, [buttonThreshold, buttons]);
105
+ }
106
+ return button;
107
+ }), [buttonThreshold, buttons, selectedIndex]);
108
+ const dropdownButtons = (0, _react.useMemo)(() => [...buttons.slice(buttonThreshold + 1, buttons?.length)?.map(button => {
109
+ return /*#__PURE__*/(0, _react.cloneElement)(button, {
110
+ buttonStyle: 'dropdownItem'
111
+ });
112
+ })], [buttonThreshold, buttons]);
120
113
 
121
114
  // eslint-disable-next-line react/prop-types
122
115
  const renderActionMenuContent = (0, _react.useCallback)(() => /*#__PURE__*/(0, _jsxRuntime.jsx)(_components.DropdownMenu, {
@@ -136,16 +129,16 @@ const ResponsiveButtonGroup = props => {
136
129
  className: "width: 100%;"
137
130
  }), /*#__PURE__*/(0, _jsxRuntime.jsx)(Tag, {
138
131
  className: (0, _classnames.default)({
139
- ["".concat(_ResponsiveButtonGroup.default.hidden)]: !ready
132
+ [`${_ResponsiveButtonGroup.default.hidden}`]: !ready
140
133
  }, _ResponsiveButtonGroup.default.buttonGroup, {
141
- ["".concat(_ResponsiveButtonGroup.default.fullWidth)]: ready && fullWidth
134
+ [`${_ResponsiveButtonGroup.default.fullWidth}`]: ready && fullWidth
142
135
  }, className),
143
136
  style: fullWidth ? {
144
- width: "".concat(containerWidth, "px")
137
+ width: `${containerWidth}px`
145
138
  } : {},
146
139
  ...rest,
147
- children: !ready || buttonThreshold === (cachedSizeArray === null || cachedSizeArray === void 0 ? void 0 : cachedSizeArray.length) - 1 ? buttons === null || buttons === void 0 ? void 0 : buttons.map((button, index) => {
148
- if (index === selectedIndex && !(button !== null && button !== void 0 && button.buttonStyle)) {
140
+ children: !ready || buttonThreshold === cachedSizeArray?.length - 1 ? buttons?.map((button, index) => {
141
+ if (index === selectedIndex && !button?.buttonStyle) {
149
142
  return /*#__PURE__*/(0, _react.cloneElement)(button, {
150
143
  buttonStyle: 'primary'
151
144
  });
@@ -156,5 +149,4 @@ const ResponsiveButtonGroup = props => {
156
149
  });
157
150
  };
158
151
  ResponsiveButtonGroup.propTypes = propTypes;
159
- var _default = ResponsiveButtonGroup;
160
- exports.default = _default;
152
+ var _default = exports.default = ResponsiveButtonGroup;
@@ -14,7 +14,7 @@ const useResponsiveButtonGroupSizing = _ref => {
14
14
  id,
15
15
  buttons = []
16
16
  } = _ref;
17
- const eventString = 'responsive-button-group-loaded' + (id ? "-".concat(id) : '');
17
+ const eventString = 'responsive-button-group-loaded' + (id ? `-${id}` : '');
18
18
  const loadedEvent = new Event(eventString);
19
19
  const isMounted = (0, _react.useRef)(false);
20
20
  (0, _react.useEffect)(() => {
@@ -37,8 +37,7 @@ const useResponsiveButtonGroupSizing = _ref => {
37
37
  const refArray = buttons.map((_button, index) => {
38
38
  return node => {
39
39
  if (node !== null) {
40
- var _node$clientWidth;
41
- const newSizeArray = sizeArray.slice(0, index).concat([(_node$clientWidth = node === null || node === void 0 ? void 0 : node.clientWidth) !== null && _node$clientWidth !== void 0 ? _node$clientWidth : 0]).concat(sizeArray.slice(index + 1));
40
+ const newSizeArray = sizeArray.slice(0, index).concat([node?.clientWidth ?? 0]).concat(sizeArray.slice(index + 1));
42
41
  if (!(0, _isEqual.default)(sizeArray, newSizeArray)) {
43
42
  setSizeArray(newSizeArray);
44
43
  }
@@ -50,16 +49,16 @@ const useResponsiveButtonGroupSizing = _ref => {
50
49
  // eslint-disable-next-line react-hooks/exhaustive-deps
51
50
  (0, _react.useEffect)((0, _debounce2.default)(() => {
52
51
  if (isMounted.current) {
53
- if (!(cachedSizeArray !== null && cachedSizeArray !== void 0 && cachedSizeArray.length) && sizeArray !== null && sizeArray !== void 0 && sizeArray.length) {
52
+ if (!cachedSizeArray?.length && sizeArray?.length) {
54
53
  setCachedSizeArray(sizeArray);
55
54
  setReady(true);
56
55
  document.dispatchEvent(loadedEvent);
57
56
  }
58
57
  }
59
58
  }, 150), [cachedSizeArray, sizeArray]);
60
- const returnButtons = buttons === null || buttons === void 0 ? void 0 : buttons.map((button, index) => {
59
+ const returnButtons = buttons?.map((button, index) => {
61
60
  return /*#__PURE__*/(0, _react.cloneElement)(button, {
62
- ref: refArray === null || refArray === void 0 ? void 0 : refArray[index]
61
+ ref: refArray?.[index]
63
62
  });
64
63
  });
65
64
  return {
@@ -71,5 +70,4 @@ const useResponsiveButtonGroupSizing = _ref => {
71
70
  sizeArray
72
71
  };
73
72
  };
74
- var _default = useResponsiveButtonGroupSizing;
75
- exports.default = _default;
73
+ var _default = exports.default = useResponsiveButtonGroupSizing;
@@ -12,7 +12,6 @@ var _FormattedKintMessage = _interopRequireDefault(require("../FormattedKintMess
12
12
  var _jsxRuntime = require("react/jsx-runtime");
13
13
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
14
14
  const RichSelect = /*#__PURE__*/(0, _react.forwardRef)((_ref, ref) => {
15
- var _ref2, _meta$initial, _findSelectedOptionBy, _meta$initial2;
16
15
  let {
17
16
  ariaLabel,
18
17
  disabled = false,
@@ -33,17 +32,17 @@ const RichSelect = /*#__PURE__*/(0, _react.forwardRef)((_ref, ref) => {
33
32
  value
34
33
  } = _ref;
35
34
  const hiddenInput = (0, _react.useRef)(null);
36
- const [internalValue, setInternalValue] = (0, _react.useState)((_ref2 = (_meta$initial = meta === null || meta === void 0 ? void 0 : meta.initial) !== null && _meta$initial !== void 0 ? _meta$initial : value) !== null && _ref2 !== void 0 ? _ref2 : '');
35
+ const [internalValue, setInternalValue] = (0, _react.useState)(meta?.initial ?? value ?? '');
37
36
  const findSelectedOptionByValue = (0, _react.useCallback)(val => {
38
37
  return userOptions.find(opt => opt.value === val);
39
38
  }, [userOptions]);
40
- const [selectedOption, setSelectedOption] = (0, _react.useState)((_findSelectedOptionBy = findSelectedOptionByValue((_meta$initial2 = meta === null || meta === void 0 ? void 0 : meta.initial) !== null && _meta$initial2 !== void 0 ? _meta$initial2 : '')) !== null && _findSelectedOptionBy !== void 0 ? _findSelectedOptionBy : {});
39
+ const [selectedOption, setSelectedOption] = (0, _react.useState)(findSelectedOptionByValue(meta?.initial ?? '') ?? {});
41
40
  (0, _react.useEffect)(() => {
42
41
  // We treat non-undefined value/formInput values as valid values, whereas undefined is only relevant when prop has not been provided
43
- if (value !== undefined && !(value === (selectedOption === null || selectedOption === void 0 ? void 0 : selectedOption.value) && value === internalValue)) {
42
+ if (value !== undefined && !(value === selectedOption?.value && value === internalValue)) {
44
43
  setSelectedOption(findSelectedOptionByValue(value));
45
44
  setInternalValue(value);
46
- } else if ((formInput === null || formInput === void 0 ? void 0 : formInput.value) !== undefined && !(value === (selectedOption === null || selectedOption === void 0 ? void 0 : selectedOption.value) && value === internalValue)) {
45
+ } else if (formInput?.value !== undefined && !(value === selectedOption?.value && value === internalValue)) {
47
46
  setSelectedOption(findSelectedOptionByValue(formInput.value));
48
47
  setInternalValue(formInput.value);
49
48
  }
@@ -53,15 +52,14 @@ const RichSelect = /*#__PURE__*/(0, _react.forwardRef)((_ref, ref) => {
53
52
  (0, _react.useImperativeHandle)(ref, () => ({
54
53
  selectedOption
55
54
  }));
56
- const defaultRenderTrigger = _ref3 => {
57
- var _ref4, _ref5, _ref6, _selectedOption$label;
55
+ const defaultRenderTrigger = _ref2 => {
58
56
  let {
59
57
  onToggle,
60
58
  triggerRef,
61
59
  keyHandler,
62
60
  ariaProps,
63
61
  getTriggerProps
64
- } = _ref3;
62
+ } = _ref2;
65
63
  return /*#__PURE__*/(0, _jsxRuntime.jsx)(_components.DropdownButton, {
66
64
  ref: triggerRef,
67
65
  buttonClass: _RichSelect.default.triggerButton,
@@ -74,7 +72,7 @@ const RichSelect = /*#__PURE__*/(0, _react.forwardRef)((_ref, ref) => {
74
72
  type: "button",
75
73
  ...getTriggerProps(),
76
74
  ...ariaProps,
77
- children: (_ref4 = (_ref5 = (_ref6 = (_selectedOption$label = selectedOption === null || selectedOption === void 0 ? void 0 : selectedOption.label) !== null && _selectedOption$label !== void 0 ? _selectedOption$label : selectedOption === null || selectedOption === void 0 ? void 0 : selectedOption.value) !== null && _ref6 !== void 0 ? _ref6 : internalValue || null) !== null && _ref5 !== void 0 ? _ref5 : placeholder) !== null && _ref4 !== void 0 ? _ref4 : /*#__PURE__*/(0, _jsxRuntime.jsx)(_FormattedKintMessage.default, {
75
+ children: selectedOption?.label ?? selectedOption?.value ?? (internalValue || null) ?? placeholder ?? /*#__PURE__*/(0, _jsxRuntime.jsx)(_FormattedKintMessage.default, {
78
76
  id: "pleaseSelectOption",
79
77
  intlKey: passedIntlKey,
80
78
  intlNS: passedIntlNS
@@ -83,7 +81,7 @@ const RichSelect = /*#__PURE__*/(0, _react.forwardRef)((_ref, ref) => {
83
81
  };
84
82
  const handleChange = e => {
85
83
  // Actually set the value in the form (If formInput exists)
86
- if (formInput !== null && formInput !== void 0 && formInput.onChange) {
84
+ if (formInput?.onChange) {
87
85
  formInput.onChange(e);
88
86
  }
89
87
 
@@ -95,20 +93,17 @@ const RichSelect = /*#__PURE__*/(0, _react.forwardRef)((_ref, ref) => {
95
93
  const changeField = val => {
96
94
  (0, _components.nativeChangeFieldValue)(hiddenInput, false, val);
97
95
  };
98
- const defaultRenderOption = opt => {
99
- var _opt$label;
100
- return (_opt$label = opt.label) !== null && _opt$label !== void 0 ? _opt$label : opt.value;
101
- };
102
- const defaultRenderMenu = _ref7 => {
96
+ const defaultRenderOption = opt => opt.label ?? opt.value;
97
+ const defaultRenderMenu = _ref3 => {
103
98
  let {
104
99
  onToggle
105
- } = _ref7;
100
+ } = _ref3;
106
101
  return /*#__PURE__*/(0, _jsxRuntime.jsx)(_components.DropdownMenu, {
107
102
  children: userOptions.map(opt => {
108
103
  return /*#__PURE__*/(0, _jsxRuntime.jsx)(_components.Button, {
109
- autoFocus: (selectedOption === null || selectedOption === void 0 ? void 0 : selectedOption.value) === opt.value,
104
+ autoFocus: selectedOption?.value === opt.value,
110
105
  buttonStyle: "dropdownItem",
111
- id: "".concat(id, "-").concat(formInput.name, "-option-").concat(opt.value),
106
+ id: `${id}-${formInput.name}-option-${opt.value}`,
112
107
  marginBottom0: true,
113
108
  onClick: () => {
114
109
  // Trigger change event
@@ -126,7 +121,7 @@ const RichSelect = /*#__PURE__*/(0, _react.forwardRef)((_ref, ref) => {
126
121
  children: [label || ariaLabel ? /*#__PURE__*/(0, _jsxRuntime.jsx)(_components.Label, {
127
122
  className: ariaLabel && 'sr-only',
128
123
  htmlFor: id,
129
- id: "".concat(id, "-label"),
124
+ id: `${id}-label`,
130
125
  required: required,
131
126
  children: ariaLabel || label
132
127
  }) : '', /*#__PURE__*/(0, _jsxRuntime.jsx)(_components.Dropdown, {
@@ -187,5 +182,4 @@ RichSelect.propTypes = {
187
182
  required: _propTypes.default.bool,
188
183
  value: _propTypes.default.string
189
184
  };
190
- var _default = RichSelect;
191
- exports.default = _default;
185
+ var _default = exports.default = RichSelect;
@@ -8,12 +8,10 @@ var _react = require("react");
8
8
  const useSelectedOption = () => {
9
9
  const [selectedOption, setSelectedOption] = (0, _react.useState)();
10
10
  const ref = (0, _react.useCallback)(node => {
11
- var _node$selectedOption;
12
- if (node !== null && (selectedOption === null || selectedOption === void 0 ? void 0 : selectedOption.value) !== ((_node$selectedOption = node.selectedOption) === null || _node$selectedOption === void 0 ? void 0 : _node$selectedOption.value)) {
11
+ if (node !== null && selectedOption?.value !== node.selectedOption?.value) {
13
12
  setSelectedOption(node.selectedOption);
14
13
  }
15
14
  }, [selectedOption]);
16
15
  return [ref, selectedOption];
17
16
  };
18
- var _default = useSelectedOption;
19
- exports.default = _default;
17
+ var _default = exports.default = useSelectedOption;
@@ -17,7 +17,6 @@ var _TableBody = _interopRequireDefault(require("./TableBody"));
17
17
  var _jsxRuntime = require("react/jsx-runtime");
18
18
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
19
19
  const SASQLookupComponent = /*#__PURE__*/(0, _react.forwardRef)((props, ref) => {
20
- var _totalData$pages$redu, _totalData$pages;
21
20
  const {
22
21
  children,
23
22
  fetchParameters = {},
@@ -46,14 +45,14 @@ const SASQLookupComponent = /*#__PURE__*/(0, _react.forwardRef)((props, ref) =>
46
45
  0: namespace
47
46
  } = (0, _core.useNamespace)();
48
47
  const ky = (0, _core.useOkapiKy)();
49
- const filterPaneVisibileKey = "".concat(namespace, "-").concat(id, "-filterPaneVisibility");
48
+ const filterPaneVisibileKey = `${namespace}-${id}-filterPaneVisibility`;
50
49
  const fetchPageData = _ref => {
51
50
  let {
52
51
  pageParam = 0
53
52
  } = _ref;
54
53
  const queryMap = fetchParameters.SASQ_MAP;
55
54
  queryMap.offset = pageParam;
56
- return ky("".concat(fetchParameters.endpoint).concat((0, _utils.generateKiwtQuery)(queryMap, query))).json();
55
+ return ky(`${fetchParameters.endpoint}${(0, _utils.generateKiwtQuery)(queryMap, query)}`).json();
57
56
  };
58
57
  const [filterPaneVisible, setFilterPaneVisible] = (0, _hooks.useLocalStorageState)(filterPaneVisibileKey, true);
59
58
  const toggleFilterPane = () => setFilterPaneVisible(!filterPaneVisible);
@@ -73,8 +72,7 @@ const SASQLookupComponent = /*#__PURE__*/(0, _react.forwardRef)((props, ref) =>
73
72
  ...restOfInfiniteQueryProps
74
73
  }
75
74
  }));
76
- const data = (_totalData$pages$redu = (_totalData$pages = totalData.pages) === null || _totalData$pages === void 0 ? void 0 : _totalData$pages.reduce((acc, curr) => {
77
- var _acc$results, _curr$results;
75
+ const data = totalData.pages?.reduce((acc, curr) => {
78
76
  const newAcc = {
79
77
  ...acc
80
78
  };
@@ -83,11 +81,11 @@ const SASQLookupComponent = /*#__PURE__*/(0, _react.forwardRef)((props, ref) =>
83
81
  newAcc[key] = value;
84
82
  }
85
83
  }
86
- const newResults = [...((_acc$results = acc.results) !== null && _acc$results !== void 0 ? _acc$results : [])];
87
- newResults.push(...((_curr$results = curr.results) !== null && _curr$results !== void 0 ? _curr$results : []));
84
+ const newResults = [...(acc.results ?? [])];
85
+ newResults.push(...(curr.results ?? []));
88
86
  newAcc.results = newResults;
89
87
  return newAcc;
90
- }, {})) !== null && _totalData$pages$redu !== void 0 ? _totalData$pages$redu : {};
88
+ }, {}) ?? {};
91
89
  return /*#__PURE__*/(0, _jsxRuntime.jsx)(_smartComponents.SearchAndSortQuery, {
92
90
  initialSearchState: {
93
91
  query: ''
@@ -109,7 +107,7 @@ const SASQLookupComponent = /*#__PURE__*/(0, _react.forwardRef)((props, ref) =>
109
107
  const searchHandlers = getSearchHandlers();
110
108
  const disableReset = !filterChanged && !searchChanged;
111
109
  const filterCount = activeFilters.string ? activeFilters.string.split(',').length : 0;
112
- const Body = RenderBody !== null && RenderBody !== void 0 ? RenderBody : _TableBody.default;
110
+ const Body = RenderBody ?? _TableBody.default;
113
111
  const {
114
112
  filterPaneFirstMenu,
115
113
  filterPaneLastMenu,
@@ -131,12 +129,12 @@ const SASQLookupComponent = /*#__PURE__*/(0, _react.forwardRef)((props, ref) =>
131
129
  };
132
130
  return /*#__PURE__*/(0, _jsxRuntime.jsxs)(_smartComponents.PersistedPaneset, {
133
131
  appId: namespace,
134
- id: "".concat(id, "-paneset"),
132
+ id: `${id}-paneset`,
135
133
  ...persistedPanesetProps,
136
134
  children: [filterPaneVisible && /*#__PURE__*/(0, _jsxRuntime.jsx)(_components.Pane, {
137
135
  defaultWidth: "20%",
138
136
  firstMenu: filterPaneFirstMenu ? filterPaneFirstMenu(internalStateProps) : null,
139
- id: "".concat(id, "-filter-pane"),
137
+ id: `${id}-filter-pane`,
140
138
  lastMenu: filterPaneLastMenu ? filterPaneLastMenu(internalStateProps) : /*#__PURE__*/(0, _jsxRuntime.jsx)(_components.PaneMenu, {
141
139
  children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_smartComponents.CollapseFilterPaneButton, {
142
140
  onClick: toggleFilterPane
@@ -152,11 +150,10 @@ const SASQLookupComponent = /*#__PURE__*/(0, _react.forwardRef)((props, ref) =>
152
150
  children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_components.SearchField, {
153
151
  ariaLabel: searchFieldAriaLabel,
154
152
  autoFocus: true,
155
- id: "sasq-search-field-".concat(id),
153
+ id: `sasq-search-field-${id}`,
156
154
  name: "query",
157
155
  onChange: e => {
158
- var _e$target;
159
- if ((_e$target = e.target) !== null && _e$target !== void 0 && _e$target.value) {
156
+ if (e.target?.value) {
160
157
  searchHandlers.query(e); // SASQ needs the whole event here
161
158
  } else {
162
159
  searchHandlers.reset();
@@ -203,15 +200,15 @@ const SASQLookupComponent = /*#__PURE__*/(0, _react.forwardRef)((props, ref) =>
203
200
  onClick: toggleFilterPane
204
201
  })
205
202
  }) : null,
206
- id: "".concat(id, "-main-pane"),
203
+ id: `${id}-main-pane`,
207
204
  lastMenu: mainPaneLastMenu ? mainPaneLastMenu(internalStateProps) : null,
208
205
  noOverflow: true,
209
206
  padContent: false,
210
207
  paneSub: kintIntl.formatKintMessage({
211
208
  id: 'found#Values',
212
- overrideValue: labelOverrides === null || labelOverrides === void 0 ? void 0 : labelOverrides.foundValues
209
+ overrideValue: labelOverrides?.foundValues
213
210
  }, {
214
- total: data === null || data === void 0 ? void 0 : data.total
211
+ total: data?.total
215
212
  }),
216
213
  ...restOfMainPaneProps,
217
214
  children: /*#__PURE__*/(0, _jsxRuntime.jsx)(Body, {
@@ -257,5 +254,4 @@ SASQLookupComponent.propTypes = {
257
254
  searchFieldAriaLabel: _propTypes.default.string,
258
255
  searchFieldProps: _propTypes.default.object
259
256
  };
260
- var _default = SASQLookupComponent;
261
- exports.default = _default;
257
+ var _default = exports.default = SASQLookupComponent;
@@ -11,7 +11,6 @@ var _NoResultsMessage = _interopRequireDefault(require("../../NoResultsMessage")
11
11
  var _jsxRuntime = require("react/jsx-runtime");
12
12
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
13
13
  const TableBody = _ref => {
14
- var _query$sort;
15
14
  let {
16
15
  data,
17
16
  error,
@@ -30,7 +29,7 @@ const TableBody = _ref => {
30
29
  toggleFilterPane,
31
30
  query
32
31
  } = _ref;
33
- const sortOrder = (_query$sort = query.sort) !== null && _query$sort !== void 0 ? _query$sort : '';
32
+ const sortOrder = query.sort ?? '';
34
33
  const history = (0, _reactRouterDom.useHistory)();
35
34
  const location = (0, _reactRouterDom.useLocation)();
36
35
  const onNeedMoreData = (_askAmount, index) => {
@@ -47,7 +46,7 @@ const TableBody = _ref => {
47
46
  return /*#__PURE__*/(0, _jsxRuntime.jsx)(_components.MultiColumnList, {
48
47
  autosize: true,
49
48
  columnMapping: columnMapping,
50
- contentData: data === null || data === void 0 ? void 0 : data.results,
49
+ contentData: data?.results,
51
50
  hasMargin: true,
52
51
  isEmptyMessage: /*#__PURE__*/(0, _jsxRuntime.jsx)(_NoResultsMessage.default, {
53
52
  error,
@@ -61,16 +60,15 @@ const TableBody = _ref => {
61
60
  toggleFilterPane
62
61
  }),
63
62
  isSelected: _ref2 => {
64
- var _match$params;
65
63
  let {
66
64
  item
67
65
  } = _ref2;
68
- return item.id === (match === null || match === void 0 ? void 0 : (_match$params = match.params) === null || _match$params === void 0 ? void 0 : _match$params.id);
66
+ return item.id === match?.params?.id;
69
67
  },
70
68
  onHeaderClick: onSort,
71
69
  onNeedMoreData: onNeedMoreData,
72
70
  onRowClick: (_e, rowData) => {
73
- history.push("".concat(path, "/").concat(rowData === null || rowData === void 0 ? void 0 : rowData.id).concat(location === null || location === void 0 ? void 0 : location.search));
71
+ history.push(`${path}/${rowData?.id}${location?.search}`);
74
72
  },
75
73
  pagingType: "click",
76
74
  sortDirection: sortOrder.startsWith('-') ? 'descending' : 'ascending',
@@ -103,5 +101,4 @@ TableBody.propTypes = {
103
101
  resultColumns: _propTypes.default.arrayOf(_propTypes.default.object),
104
102
  toggleFilterPane: _propTypes.default.func
105
103
  };
106
- var _default = TableBody;
107
- exports.default = _default;
104
+ var _default = exports.default = TableBody;
@@ -36,7 +36,7 @@ const SASQRoute = /*#__PURE__*/(0, _react.forwardRef)((_ref, ref) => {
36
36
  // Reinsert the SASQ_MAP
37
37
  fetchParameters.SASQ_MAP = SASQ_MAP;
38
38
  return /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactRouterDom.Route, {
39
- path: "".concat(path, "/:id?"),
39
+ path: `${path}/:id?`,
40
40
  render: routeProps => {
41
41
  return /*#__PURE__*/(0, _jsxRuntime.jsx)(_SASQLookupComponent.SASQLookupComponent, {
42
42
  ref: lookupRef,
@@ -46,7 +46,7 @@ const SASQRoute = /*#__PURE__*/(0, _react.forwardRef)((_ref, ref) => {
46
46
  ...props,
47
47
  children: /*#__PURE__*/(0, _jsxRuntime.jsxs)(_reactRouterDom.Switch, {
48
48
  children: [children, /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactRouterDom.Route, {
49
- path: "".concat(path, "/:id"),
49
+ path: `${path}/:id`,
50
50
  render: innerProps => /*#__PURE__*/(0, _jsxRuntime.jsx)(_SASQViewComponent.default, {
51
51
  ref: viewRef,
52
52
  ...innerProps,
@@ -67,5 +67,4 @@ SASQRoute.propTypes = {
67
67
  path: _propTypes.default.string,
68
68
  ViewComponent: _propTypes.default.oneOfType([_propTypes.default.func, _propTypes.default.node])
69
69
  };
70
- var _default = SASQRoute;
71
- exports.default = _default;
70
+ var _default = exports.default = SASQRoute;
@@ -11,7 +11,6 @@ var _core = require("@folio/stripes/core");
11
11
  var _jsxRuntime = require("react/jsx-runtime");
12
12
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
13
13
  const SASQViewComponent = /*#__PURE__*/(0, _react.forwardRef)((_ref, ref) => {
14
- var _fetchParameters$item, _match$params, _match$params3;
15
14
  let {
16
15
  fetchParameters,
17
16
  history,
@@ -27,22 +26,19 @@ const SASQViewComponent = /*#__PURE__*/(0, _react.forwardRef)((_ref, ref) => {
27
26
  } = (0, _core.useNamespace)();
28
27
 
29
28
  // If itemEndpoint is available, use that, otherwise use standard endpoint
30
- const endpoint = (_fetchParameters$item = fetchParameters === null || fetchParameters === void 0 ? void 0 : fetchParameters.itemEndpoint) !== null && _fetchParameters$item !== void 0 ? _fetchParameters$item : fetchParameters === null || fetchParameters === void 0 ? void 0 : fetchParameters.endpoint;
29
+ const endpoint = fetchParameters?.itemEndpoint ?? fetchParameters?.endpoint;
31
30
  const queryNamespace = [namespace, 'SASQ'];
32
31
  if (id) {
33
32
  queryNamespace.push(id);
34
33
  }
35
34
  queryNamespace.push('view');
36
- queryNamespace.push(match === null || match === void 0 ? void 0 : (_match$params = match.params) === null || _match$params === void 0 ? void 0 : _match$params.id);
35
+ queryNamespace.push(match?.params?.id);
37
36
  const ky = (0, _core.useOkapiKy)();
38
37
  const {
39
38
  data = {},
40
39
  ...rest
41
- } = (0, _reactQuery.useQuery)(queryNamespace, () => {
42
- var _match$params2;
43
- return ky("".concat(endpoint, "/").concat(match === null || match === void 0 ? void 0 : (_match$params2 = match.params) === null || _match$params2 === void 0 ? void 0 : _match$params2.id)).json();
44
- }, {
45
- enabled: !!(match !== null && match !== void 0 && (_match$params3 = match.params) !== null && _match$params3 !== void 0 && _match$params3.id)
40
+ } = (0, _reactQuery.useQuery)(queryNamespace, () => ky(`${endpoint}/${match?.params?.id}`).json(), {
41
+ enabled: !!match?.params?.id
46
42
  });
47
43
  (0, _react.useImperativeHandle)(ref, () => ({
48
44
  queryProps: {
@@ -51,7 +47,7 @@ const SASQViewComponent = /*#__PURE__*/(0, _react.forwardRef)((_ref, ref) => {
51
47
  }
52
48
  }));
53
49
  return /*#__PURE__*/(0, _jsxRuntime.jsx)(ViewComponent, {
54
- onClose: () => history.push("".concat(path).concat(location.search)),
50
+ onClose: () => history.push(`${path}${location.search}`),
55
51
  queryProps: {
56
52
  ...rest
57
53
  },
@@ -68,5 +64,4 @@ SASQViewComponent.propTypes = {
68
64
  path: _propTypes.default.string.isRequired,
69
65
  ViewComponent: _propTypes.default.oneOfType([_propTypes.default.func, _propTypes.default.node])
70
66
  };
71
- var _default = SASQViewComponent;
72
- exports.default = _default;
67
+ var _default = exports.default = SASQViewComponent;
@@ -37,5 +37,4 @@ const SearchField = props => {
37
37
  });
38
38
  };
39
39
  SearchField.propTypes = propTypes;
40
- var _default = SearchField;
41
- exports.default = _default;
40
+ var _default = exports.default = SearchField;
@@ -11,8 +11,8 @@ var _contexts = require("../contexts");
11
11
  var _useSettingSection = _interopRequireDefault(require("../settingsHooks/useSettingSection"));
12
12
  var _jsxRuntime = require("react/jsx-runtime");
13
13
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
14
- function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function (nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
15
- function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
14
+ function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function (e) { return e ? t : r; })(e); }
15
+ function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != typeof e && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && Object.prototype.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
16
16
  // Importing directly here to avoid cyclic dependency
17
17
 
18
18
  const SettingPage = _ref => {
@@ -53,5 +53,4 @@ SettingPage.propTypes = {
53
53
  labelOverrides: _propTypes.default.object,
54
54
  sectionName: _propTypes.default.string
55
55
  };
56
- var _default = SettingPage;
57
- exports.default = _default;
56
+ var _default = exports.default = SettingPage;
@@ -20,9 +20,9 @@ const SettingPagePane = _ref => {
20
20
  const kintIntl = (0, _hooks.useKintIntl)(passedIntlKey, passedIntlNS);
21
21
  return /*#__PURE__*/(0, _jsxRuntime.jsx)(_components.Pane, {
22
22
  defaultWidth: "fill",
23
- id: "settings-".concat(sectionName),
23
+ id: `settings-${sectionName}`,
24
24
  paneTitle: kintIntl.formatKintMessage({
25
- id: "settings.settingsSection.".concat((0, _utils.toCamelCase)(sectionName)),
25
+ id: `settings.settingsSection.${(0, _utils.toCamelCase)(sectionName)}`,
26
26
  fallbackMessage: sectionName
27
27
  }),
28
28
  children: children
@@ -34,5 +34,4 @@ SettingPagePane.propTypes = {
34
34
  intlNS: _propTypes.default.string,
35
35
  children: _propTypes.default.oneOfType([_propTypes.default.func, _propTypes.default.node])
36
36
  };
37
- var _default = SettingPagePane;
38
- exports.default = _default;
37
+ var _default = exports.default = SettingPagePane;
@@ -49,7 +49,7 @@ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { de
49
49
  } = (0, _hooks.useMutateModConfigEntry)({
50
50
  configName,
51
51
  moduleName,
52
- id: settings === null || settings === void 0 ? void 0 : settings.id
52
+ id: settings?.id
53
53
  });
54
54
  const onSubmit = values => {
55
55
  const setting = {
@@ -70,7 +70,7 @@ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { de
70
70
  id: 'settingSaveSuccess',
71
71
  intlKey: passedIntlKey,
72
72
  intlNS: passedIntlNS,
73
- overrideValue: labelOverrides === null || labelOverrides === void 0 ? void 0 : labelOverrides.settingSaveSuccess
73
+ overrideValue: labelOverrides?.settingSaveSuccess
74
74
  }),
75
75
  type: 'success'
76
76
  });
@@ -108,5 +108,4 @@ SettingsFormContainer.propTypes = {
108
108
  moduleName: _propTypes.default.string.isRequired,
109
109
  scope: _propTypes.default.string
110
110
  };
111
- var _default = SettingsFormContainer;
112
- exports.default = _default;
111
+ var _default = exports.default = SettingsFormContainer;