@k-int/stripes-kint-components 4.7.2 → 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 (293) hide show
  1. package/CHANGELOG.md +7 -0
  2. package/es/index.js +2 -2
  3. package/es/lib/ActionList/ActionList.js +3 -4
  4. package/es/lib/ActionList/ActionListFieldArray.js +32 -36
  5. package/es/lib/ComboButton/ComboButton.js +6 -8
  6. package/es/lib/CustomProperties/Config/CustomPropertiesLookup.js +5 -9
  7. package/es/lib/CustomProperties/Config/CustomPropertiesSettings.js +30 -34
  8. package/es/lib/CustomProperties/Config/CustomPropertyForm.js +59 -60
  9. package/es/lib/CustomProperties/Config/CustomPropertyForm.test.js +2 -2
  10. package/es/lib/CustomProperties/Config/CustomPropertyView.js +33 -35
  11. package/es/lib/CustomProperties/Config/CustomPropertyView.test.js +1 -1
  12. package/es/lib/CustomProperties/Edit/CustomPropertiesEdit.js +2 -3
  13. package/es/lib/CustomProperties/Edit/CustomPropertiesEditCtx.js +4 -5
  14. package/es/lib/CustomProperties/Edit/CustomPropertiesListField.js +6 -12
  15. package/es/lib/CustomProperties/Edit/CustomPropertyField.js +21 -29
  16. package/es/lib/CustomProperties/Edit/CustomPropertyField.test.js +5 -5
  17. package/es/lib/CustomProperties/Edit/CustomPropertyFormCard.js +3 -4
  18. package/es/lib/CustomProperties/Edit/CustomPropertyFormCard.test.js +3 -3
  19. package/es/lib/CustomProperties/Edit/testResources.js +14 -17
  20. package/es/lib/CustomProperties/Filter/CustomPropertiesFilter.js +7 -13
  21. package/es/lib/CustomProperties/Filter/CustomPropertiesFilterField.js +21 -30
  22. package/es/lib/CustomProperties/Filter/CustomPropertiesFilterField.test.js +1 -1
  23. package/es/lib/CustomProperties/Filter/CustomPropertiesFilterFieldArray.js +7 -8
  24. package/es/lib/CustomProperties/Filter/CustomPropertiesFilterForm.js +1 -2
  25. package/es/lib/CustomProperties/Filter/CustomPropertiesRule.js +9 -10
  26. package/es/lib/CustomProperties/Filter/testResources.js +5 -9
  27. package/es/lib/CustomProperties/Filter/useOperators.js +3 -4
  28. package/es/lib/CustomProperties/Filter/useParseActiveFilterStrings.js +2 -4
  29. package/es/lib/CustomProperties/Filter/useValueProps.js +3 -4
  30. package/es/lib/CustomProperties/View/CustomPropertiesView.js +2 -3
  31. package/es/lib/CustomProperties/View/CustomPropertiesViewCtx.js +19 -28
  32. package/es/lib/CustomProperties/View/CustomPropertyCard.js +10 -15
  33. package/es/lib/CustomProperties/View/testResources.js +5 -9
  34. package/es/lib/CycleButton/CycleButton.js +2 -3
  35. package/es/lib/EditableRefdataCategoryList/EditableRefdataCategoryList.js +24 -36
  36. package/es/lib/EditableRefdataList/EditableRefdataList.js +29 -37
  37. package/es/lib/EditableSettingsList/EditableSettingsList.js +1 -2
  38. package/es/lib/EditableSettingsList/EditableSettingsListFieldArray.js +2 -3
  39. package/es/lib/EditableSettingsList/SettingField/EditSettingValue.js +6 -7
  40. package/es/lib/EditableSettingsList/SettingField/RenderSettingValue.js +11 -14
  41. package/es/lib/EditableSettingsList/SettingField/SettingField.js +7 -8
  42. package/es/lib/FormModal/FormModal.js +1 -2
  43. package/es/lib/FormattedKintMessage/FormattedKintMessage.js +5 -9
  44. package/es/lib/IconSelect/IconSelect.js +8 -13
  45. package/es/lib/NoResultsMessage/NoResultsMessage.js +5 -6
  46. package/es/lib/QueryTypedown/QueryTypedown.js +3 -4
  47. package/es/lib/RefdataButtons/RefdataButtons.js +4 -5
  48. package/es/lib/ResponsiveButtonGroup/ResponsiveButtonGroup.js +22 -30
  49. package/es/lib/ResponsiveButtonGroup/useResponsiveButtonGroupSizing.js +6 -8
  50. package/es/lib/RichSelect/RichSelect.js +15 -21
  51. package/es/lib/RichSelect/useSelectedOption.js +2 -4
  52. package/es/lib/SASQLookupComponent/SASQLookupComponent.js +15 -19
  53. package/es/lib/SASQLookupComponent/TableBody/TableBody.js +5 -8
  54. package/es/lib/SASQRoute/SASQRoute.js +3 -4
  55. package/es/lib/SASQViewComponent/SASQViewComponent.js +6 -11
  56. package/es/lib/SearchField/SearchField.js +1 -2
  57. package/es/lib/SettingPage/SettingPage.js +3 -4
  58. package/es/lib/SettingPage/SettingPagePane.js +3 -4
  59. package/es/lib/SettingsFormContainer/SettingsFormContainer.js +3 -4
  60. package/es/lib/Typedown/Typedown.js +22 -30
  61. package/es/lib/constants/customProperties.js +11 -22
  62. package/es/lib/constants/endpoints.js +1 -2
  63. package/es/lib/constants/eventCodes.js +3 -6
  64. package/es/lib/contexts/SettingsContext.js +1 -2
  65. package/es/lib/hooks/typedownHooks/useTypedown.js +3 -4
  66. package/es/lib/hooks/typedownHooks/useTypedownData.js +1 -2
  67. package/es/lib/hooks/typedownHooks/useTypedownToggle.js +3 -4
  68. package/es/lib/hooks/useActiveElement.js +2 -3
  69. package/es/lib/hooks/useCustomProperties.js +3 -4
  70. package/es/lib/hooks/useHelperApp.js +9 -10
  71. package/es/lib/hooks/useIntlKey.js +1 -2
  72. package/es/lib/hooks/useIntlKeyStore.js +5 -9
  73. package/es/lib/hooks/useInvalidateRefdata.js +1 -2
  74. package/es/lib/hooks/useKintIntl.js +6 -13
  75. package/es/lib/hooks/useKiwtFieldArray.js +1 -2
  76. package/es/lib/hooks/useKiwtSASQuery.js +4 -5
  77. package/es/lib/hooks/useLocalStorageState.js +3 -4
  78. package/es/lib/hooks/useModConfigEntries.js +3 -4
  79. package/es/lib/hooks/useMutateCustomProperties.js +9 -10
  80. package/es/lib/hooks/useMutateModConfigEntry.js +3 -4
  81. package/es/lib/hooks/useMutateRefdataCategory.js +5 -6
  82. package/es/lib/hooks/useMutateRefdataValue.js +7 -8
  83. package/es/lib/hooks/useQIndex.js +8 -9
  84. package/es/lib/hooks/useRefdata.js +4 -5
  85. package/es/lib/hooks/useSASQQueryMeta.js +1 -2
  86. package/es/lib/hooks/useTemplates.js +5 -6
  87. package/es/lib/settingsHooks/useAppSettings.js +8 -13
  88. package/es/lib/settingsHooks/useSettingSection.js +3 -4
  89. package/es/lib/settingsHooks/useSettings.js +4 -5
  90. package/es/lib/utils/buildUrl.js +1 -1
  91. package/es/lib/utils/generateKiwtQuery.js +1 -2
  92. package/es/lib/utils/generateKiwtQueryParams.js +28 -38
  93. package/es/lib/utils/groupCustomPropertiesByCtx.js +3 -5
  94. package/es/lib/utils/matchString.js +2 -3
  95. package/es/lib/utils/modConfigEntriesQueryKey.js +1 -2
  96. package/es/lib/utils/parseErrorResponse.js +3 -5
  97. package/es/lib/utils/parseKiwtQueryGroups.js +5 -7
  98. package/es/lib/utils/parseModConfigEntry.js +1 -2
  99. package/es/lib/utils/refdataOptions.js +2 -3
  100. package/es/lib/utils/refdataQueryKey.js +1 -2
  101. package/es/lib/utils/selectorSafe.js +4 -6
  102. package/es/lib/utils/sortByLabel.js +3 -5
  103. package/es/lib/utils/toCamelCase.js +1 -2
  104. package/es/lib/utils/typedownQueryKey.js +1 -2
  105. package/es/lib/validators/validators.js +3 -3
  106. package/package.json +12 -2
  107. package/es/artifacts/coverage-jest/lcov-report/block-navigation.js +0 -69
  108. package/es/artifacts/coverage-jest/lcov-report/prettify.js +0 -814
  109. package/es/artifacts/coverage-jest/lcov-report/sorter.js +0 -181
  110. package/junit.xml +0 -293
  111. package/src/artifacts/coverage-jest/lcov-report/ActionList/ActionList.js.html +0 -373
  112. package/src/artifacts/coverage-jest/lcov-report/ActionList/ActionListFieldArray.js.html +0 -1465
  113. package/src/artifacts/coverage-jest/lcov-report/ActionList/index.html +0 -146
  114. package/src/artifacts/coverage-jest/lcov-report/ActionList/index.js.html +0 -88
  115. package/src/artifacts/coverage-jest/lcov-report/CustomProperties/Config/CustomPropertiesLookup.js.html +0 -667
  116. package/src/artifacts/coverage-jest/lcov-report/CustomProperties/Config/CustomPropertiesSettings.js.html +0 -1240
  117. package/src/artifacts/coverage-jest/lcov-report/CustomProperties/Config/CustomPropertyForm.js.html +0 -1474
  118. package/src/artifacts/coverage-jest/lcov-report/CustomProperties/Config/CustomPropertyView.js.html +0 -733
  119. package/src/artifacts/coverage-jest/lcov-report/CustomProperties/Config/index.html +0 -176
  120. package/src/artifacts/coverage-jest/lcov-report/CustomProperties/Config/index.js.html +0 -97
  121. package/src/artifacts/coverage-jest/lcov-report/CustomProperties/Config/testResources.js.html +0 -793
  122. package/src/artifacts/coverage-jest/lcov-report/CustomProperties/Edit/CustomPropertiesEdit.js.html +0 -208
  123. package/src/artifacts/coverage-jest/lcov-report/CustomProperties/Edit/CustomPropertiesEditCtx.js.html +0 -352
  124. package/src/artifacts/coverage-jest/lcov-report/CustomProperties/Edit/CustomPropertiesListField.js.html +0 -826
  125. package/src/artifacts/coverage-jest/lcov-report/CustomProperties/Edit/CustomPropertyField.js.html +0 -1297
  126. package/src/artifacts/coverage-jest/lcov-report/CustomProperties/Edit/CustomPropertyFormCard.js.html +0 -454
  127. package/src/artifacts/coverage-jest/lcov-report/CustomProperties/Edit/index.html +0 -206
  128. package/src/artifacts/coverage-jest/lcov-report/CustomProperties/Edit/index.js.html +0 -100
  129. package/src/artifacts/coverage-jest/lcov-report/CustomProperties/Edit/testResources.js.html +0 -271
  130. package/src/artifacts/coverage-jest/lcov-report/CustomProperties/Filter/CustomPropertiesFilter.js.html +0 -499
  131. package/src/artifacts/coverage-jest/lcov-report/CustomProperties/Filter/CustomPropertiesFilterField.js.html +0 -568
  132. package/src/artifacts/coverage-jest/lcov-report/CustomProperties/Filter/CustomPropertiesFilterFieldArray.js.html +0 -415
  133. package/src/artifacts/coverage-jest/lcov-report/CustomProperties/Filter/CustomPropertiesFilterForm.js.html +0 -340
  134. package/src/artifacts/coverage-jest/lcov-report/CustomProperties/Filter/CustomPropertiesRule.js.html +0 -502
  135. package/src/artifacts/coverage-jest/lcov-report/CustomProperties/Filter/index.html +0 -251
  136. package/src/artifacts/coverage-jest/lcov-report/CustomProperties/Filter/index.js.html +0 -103
  137. package/src/artifacts/coverage-jest/lcov-report/CustomProperties/Filter/testResources.js.html +0 -223
  138. package/src/artifacts/coverage-jest/lcov-report/CustomProperties/Filter/useOperators.js.html +0 -271
  139. package/src/artifacts/coverage-jest/lcov-report/CustomProperties/Filter/useParseActiveFilterStrings.js.html +0 -199
  140. package/src/artifacts/coverage-jest/lcov-report/CustomProperties/Filter/useValueProps.js.html +0 -253
  141. package/src/artifacts/coverage-jest/lcov-report/CustomProperties/View/CustomPropertiesView.js.html +0 -211
  142. package/src/artifacts/coverage-jest/lcov-report/CustomProperties/View/CustomPropertiesViewCtx.js.html +0 -445
  143. package/src/artifacts/coverage-jest/lcov-report/CustomProperties/View/CustomPropertyCard.js.html +0 -619
  144. package/src/artifacts/coverage-jest/lcov-report/CustomProperties/View/index.html +0 -176
  145. package/src/artifacts/coverage-jest/lcov-report/CustomProperties/View/index.js.html +0 -94
  146. package/src/artifacts/coverage-jest/lcov-report/CustomProperties/View/testResources.js.html +0 -571
  147. package/src/artifacts/coverage-jest/lcov-report/CustomProperties/index.html +0 -116
  148. package/src/artifacts/coverage-jest/lcov-report/CustomProperties/index.js.html +0 -175
  149. package/src/artifacts/coverage-jest/lcov-report/CycleButton/CycleButton.js.html +0 -217
  150. package/src/artifacts/coverage-jest/lcov-report/CycleButton/index.html +0 -131
  151. package/src/artifacts/coverage-jest/lcov-report/CycleButton/index.js.html +0 -88
  152. package/src/artifacts/coverage-jest/lcov-report/EditableRefdataCategoryList/EditableRefdataCategoryList.js.html +0 -751
  153. package/src/artifacts/coverage-jest/lcov-report/EditableRefdataCategoryList/index.html +0 -131
  154. package/src/artifacts/coverage-jest/lcov-report/EditableRefdataCategoryList/index.js.html +0 -88
  155. package/src/artifacts/coverage-jest/lcov-report/EditableRefdataList/EditableRefdataList.js.html +0 -853
  156. package/src/artifacts/coverage-jest/lcov-report/EditableRefdataList/index.html +0 -131
  157. package/src/artifacts/coverage-jest/lcov-report/EditableRefdataList/index.js.html +0 -88
  158. package/src/artifacts/coverage-jest/lcov-report/EditableSettingsList/EditableSettingsList.js.html +0 -280
  159. package/src/artifacts/coverage-jest/lcov-report/EditableSettingsList/EditableSettingsListFieldArray.js.html +0 -259
  160. package/src/artifacts/coverage-jest/lcov-report/EditableSettingsList/SettingField/EditSettingValue.js.html +0 -412
  161. package/src/artifacts/coverage-jest/lcov-report/EditableSettingsList/SettingField/RenderSettingValue.js.html +0 -313
  162. package/src/artifacts/coverage-jest/lcov-report/EditableSettingsList/SettingField/SettingField.js.html +0 -574
  163. package/src/artifacts/coverage-jest/lcov-report/EditableSettingsList/SettingField/index.html +0 -161
  164. package/src/artifacts/coverage-jest/lcov-report/EditableSettingsList/SettingField/index.js.html +0 -94
  165. package/src/artifacts/coverage-jest/lcov-report/EditableSettingsList/index.html +0 -146
  166. package/src/artifacts/coverage-jest/lcov-report/EditableSettingsList/index.js.html +0 -94
  167. package/src/artifacts/coverage-jest/lcov-report/FormModal/FormModal.js.html +0 -379
  168. package/src/artifacts/coverage-jest/lcov-report/FormModal/index.html +0 -131
  169. package/src/artifacts/coverage-jest/lcov-report/FormModal/index.js.html +0 -88
  170. package/src/artifacts/coverage-jest/lcov-report/FormattedKintMessage/FormattedKintMessage.js.html +0 -247
  171. package/src/artifacts/coverage-jest/lcov-report/FormattedKintMessage/index.html +0 -131
  172. package/src/artifacts/coverage-jest/lcov-report/FormattedKintMessage/index.js.html +0 -88
  173. package/src/artifacts/coverage-jest/lcov-report/IconSelect/IconSelect.js.html +0 -508
  174. package/src/artifacts/coverage-jest/lcov-report/IconSelect/index.html +0 -131
  175. package/src/artifacts/coverage-jest/lcov-report/IconSelect/index.js.html +0 -88
  176. package/src/artifacts/coverage-jest/lcov-report/NoResultsMessage/NoResultsMessage.js.html +0 -361
  177. package/src/artifacts/coverage-jest/lcov-report/NoResultsMessage/index.html +0 -131
  178. package/src/artifacts/coverage-jest/lcov-report/NoResultsMessage/index.js.html +0 -88
  179. package/src/artifacts/coverage-jest/lcov-report/QueryTypedown/QueryTypedown.js.html +0 -205
  180. package/src/artifacts/coverage-jest/lcov-report/QueryTypedown/index.html +0 -131
  181. package/src/artifacts/coverage-jest/lcov-report/QueryTypedown/index.js.html +0 -88
  182. package/src/artifacts/coverage-jest/lcov-report/RefdataButtons/RefdataButtons.js.html +0 -370
  183. package/src/artifacts/coverage-jest/lcov-report/RefdataButtons/index.html +0 -131
  184. package/src/artifacts/coverage-jest/lcov-report/RefdataButtons/index.js.html +0 -88
  185. package/src/artifacts/coverage-jest/lcov-report/ResponsiveButtonGroup/ResponsiveButtonGroup.js.html +0 -580
  186. package/src/artifacts/coverage-jest/lcov-report/ResponsiveButtonGroup/index.html +0 -146
  187. package/src/artifacts/coverage-jest/lcov-report/ResponsiveButtonGroup/index.js.html +0 -88
  188. package/src/artifacts/coverage-jest/lcov-report/ResponsiveButtonGroup/useResponsiveButtonGroupSizing.js.html +0 -301
  189. package/src/artifacts/coverage-jest/lcov-report/RichSelect/RichSelect.js.html +0 -718
  190. package/src/artifacts/coverage-jest/lcov-report/RichSelect/index.html +0 -146
  191. package/src/artifacts/coverage-jest/lcov-report/RichSelect/index.js.html +0 -91
  192. package/src/artifacts/coverage-jest/lcov-report/RichSelect/useSelectedOption.js.html +0 -127
  193. package/src/artifacts/coverage-jest/lcov-report/SASQLookupComponent/SASQLookupComponent.js.html +0 -1069
  194. package/src/artifacts/coverage-jest/lcov-report/SASQLookupComponent/TableBody/TableBody.js.html +0 -400
  195. package/src/artifacts/coverage-jest/lcov-report/SASQLookupComponent/TableBody/index.html +0 -131
  196. package/src/artifacts/coverage-jest/lcov-report/SASQLookupComponent/TableBody/index.js.html +0 -88
  197. package/src/artifacts/coverage-jest/lcov-report/SASQLookupComponent/index.html +0 -131
  198. package/src/artifacts/coverage-jest/lcov-report/SASQLookupComponent/index.js.html +0 -91
  199. package/src/artifacts/coverage-jest/lcov-report/SASQRoute/SASQRoute.js.html +0 -346
  200. package/src/artifacts/coverage-jest/lcov-report/SASQRoute/index.html +0 -131
  201. package/src/artifacts/coverage-jest/lcov-report/SASQRoute/index.js.html +0 -88
  202. package/src/artifacts/coverage-jest/lcov-report/SASQViewComponent/SASQViewComponent.js.html +0 -307
  203. package/src/artifacts/coverage-jest/lcov-report/SASQViewComponent/index.html +0 -131
  204. package/src/artifacts/coverage-jest/lcov-report/SASQViewComponent/index.js.html +0 -88
  205. package/src/artifacts/coverage-jest/lcov-report/SearchField/SearchField.js.html +0 -214
  206. package/src/artifacts/coverage-jest/lcov-report/SearchField/index.html +0 -131
  207. package/src/artifacts/coverage-jest/lcov-report/SearchField/index.js.html +0 -88
  208. package/src/artifacts/coverage-jest/lcov-report/SettingPage/SettingPage.js.html +0 -220
  209. package/src/artifacts/coverage-jest/lcov-report/SettingPage/SettingPagePane.js.html +0 -208
  210. package/src/artifacts/coverage-jest/lcov-report/SettingPage/index.html +0 -146
  211. package/src/artifacts/coverage-jest/lcov-report/SettingPage/index.js.html +0 -91
  212. package/src/artifacts/coverage-jest/lcov-report/SettingsFormContainer/SettingsFormContainer.js.html +0 -337
  213. package/src/artifacts/coverage-jest/lcov-report/SettingsFormContainer/index.html +0 -131
  214. package/src/artifacts/coverage-jest/lcov-report/SettingsFormContainer/index.js.html +0 -88
  215. package/src/artifacts/coverage-jest/lcov-report/Typedown/Typedown.js.html +0 -913
  216. package/src/artifacts/coverage-jest/lcov-report/Typedown/index.html +0 -131
  217. package/src/artifacts/coverage-jest/lcov-report/Typedown/index.js.html +0 -88
  218. package/src/artifacts/coverage-jest/lcov-report/base.css +0 -224
  219. package/src/artifacts/coverage-jest/lcov-report/block-navigation.js +0 -87
  220. package/src/artifacts/coverage-jest/lcov-report/constants/customProperties.js.html +0 -121
  221. package/src/artifacts/coverage-jest/lcov-report/constants/endpoints.js.html +0 -91
  222. package/src/artifacts/coverage-jest/lcov-report/constants/eventCodes.js.html +0 -94
  223. package/src/artifacts/coverage-jest/lcov-report/constants/index.html +0 -146
  224. package/src/artifacts/coverage-jest/lcov-report/contexts/SettingsContext.js.html +0 -97
  225. package/src/artifacts/coverage-jest/lcov-report/contexts/index.html +0 -131
  226. package/src/artifacts/coverage-jest/lcov-report/contexts/index.js.html +0 -91
  227. package/src/artifacts/coverage-jest/lcov-report/favicon.png +0 -0
  228. package/src/artifacts/coverage-jest/lcov-report/hooks/index.html +0 -401
  229. package/src/artifacts/coverage-jest/lcov-report/hooks/index.js.html +0 -142
  230. package/src/artifacts/coverage-jest/lcov-report/hooks/settingsHooks/index.html +0 -161
  231. package/src/artifacts/coverage-jest/lcov-report/hooks/settingsHooks/index.js.html +0 -94
  232. package/src/artifacts/coverage-jest/lcov-report/hooks/settingsHooks/useAppSettings.js.html +0 -292
  233. package/src/artifacts/coverage-jest/lcov-report/hooks/settingsHooks/useSettingSection.js.html +0 -214
  234. package/src/artifacts/coverage-jest/lcov-report/hooks/settingsHooks/useSettings.js.html +0 -463
  235. package/src/artifacts/coverage-jest/lcov-report/hooks/typedownHooks/index.html +0 -161
  236. package/src/artifacts/coverage-jest/lcov-report/hooks/typedownHooks/index.js.html +0 -94
  237. package/src/artifacts/coverage-jest/lcov-report/hooks/typedownHooks/useTypedown.js.html +0 -520
  238. package/src/artifacts/coverage-jest/lcov-report/hooks/typedownHooks/useTypedownData.js.html +0 -181
  239. package/src/artifacts/coverage-jest/lcov-report/hooks/typedownHooks/useTypedownToggle.js.html +0 -163
  240. package/src/artifacts/coverage-jest/lcov-report/hooks/useActiveElement.js.html +0 -157
  241. package/src/artifacts/coverage-jest/lcov-report/hooks/useAvailableCustomProperties.js.html +0 -205
  242. package/src/artifacts/coverage-jest/lcov-report/hooks/useCustomProperties.js.html +0 -325
  243. package/src/artifacts/coverage-jest/lcov-report/hooks/useHelperApp.js.html +0 -295
  244. package/src/artifacts/coverage-jest/lcov-report/hooks/useIntlKey.js.html +0 -151
  245. package/src/artifacts/coverage-jest/lcov-report/hooks/useIntlKeyStore.js.html +0 -199
  246. package/src/artifacts/coverage-jest/lcov-report/hooks/useInvalidateRefdata.js.html +0 -118
  247. package/src/artifacts/coverage-jest/lcov-report/hooks/useKintIntl.js.html +0 -238
  248. package/src/artifacts/coverage-jest/lcov-report/hooks/useKiwtFieldArray.js.html +0 -274
  249. package/src/artifacts/coverage-jest/lcov-report/hooks/useKiwtSASQuery.js.html +0 -196
  250. package/src/artifacts/coverage-jest/lcov-report/hooks/useLocalStorageState.js.html +0 -136
  251. package/src/artifacts/coverage-jest/lcov-report/hooks/useModConfigEntries.js.html +0 -226
  252. package/src/artifacts/coverage-jest/lcov-report/hooks/useMutateCustomProperties.js.html +0 -283
  253. package/src/artifacts/coverage-jest/lcov-report/hooks/useMutateModConfigEntry.js.html +0 -238
  254. package/src/artifacts/coverage-jest/lcov-report/hooks/useMutateRefdataCategory.js.html +0 -274
  255. package/src/artifacts/coverage-jest/lcov-report/hooks/useMutateRefdataValue.js.html +0 -322
  256. package/src/artifacts/coverage-jest/lcov-report/hooks/useQIndex.js.html +0 -208
  257. package/src/artifacts/coverage-jest/lcov-report/hooks/useRefdata.js.html +0 -265
  258. package/src/artifacts/coverage-jest/lcov-report/hooks/useSASQQueryMeta.js.html +0 -187
  259. package/src/artifacts/coverage-jest/lcov-report/hooks/useTemplates.js.html +0 -166
  260. package/src/artifacts/coverage-jest/lcov-report/index.html +0 -611
  261. package/src/artifacts/coverage-jest/lcov-report/prettify.css +0 -1
  262. package/src/artifacts/coverage-jest/lcov-report/prettify.js +0 -2
  263. package/src/artifacts/coverage-jest/lcov-report/settingsHooks/index.html +0 -161
  264. package/src/artifacts/coverage-jest/lcov-report/settingsHooks/index.js.html +0 -94
  265. package/src/artifacts/coverage-jest/lcov-report/settingsHooks/useAppSettings.js.html +0 -292
  266. package/src/artifacts/coverage-jest/lcov-report/settingsHooks/useSettingSection.js.html +0 -211
  267. package/src/artifacts/coverage-jest/lcov-report/settingsHooks/useSettings.js.html +0 -466
  268. package/src/artifacts/coverage-jest/lcov-report/sort-arrow-sprite.png +0 -0
  269. package/src/artifacts/coverage-jest/lcov-report/sorter.js +0 -196
  270. package/src/artifacts/coverage-jest/lcov-report/utils/buildUrl.js.html +0 -193
  271. package/src/artifacts/coverage-jest/lcov-report/utils/generateKiwtQuery.js.html +0 -109
  272. package/src/artifacts/coverage-jest/lcov-report/utils/generateKiwtQueryParams.js.html +0 -631
  273. package/src/artifacts/coverage-jest/lcov-report/utils/groupCustomPropertiesByCtx.js.html +0 -124
  274. package/src/artifacts/coverage-jest/lcov-report/utils/highlightString.js.html +0 -211
  275. package/src/artifacts/coverage-jest/lcov-report/utils/index.html +0 -356
  276. package/src/artifacts/coverage-jest/lcov-report/utils/index.js.html +0 -169
  277. package/src/artifacts/coverage-jest/lcov-report/utils/matchString.js.html +0 -127
  278. package/src/artifacts/coverage-jest/lcov-report/utils/modConfigEntriesQueryKey.js.html +0 -142
  279. package/src/artifacts/coverage-jest/lcov-report/utils/parseErrorResponse.js.html +0 -142
  280. package/src/artifacts/coverage-jest/lcov-report/utils/parseKiwtQueryGroups.js.html +0 -361
  281. package/src/artifacts/coverage-jest/lcov-report/utils/parseModConfigEntry.js.html +0 -130
  282. package/src/artifacts/coverage-jest/lcov-report/utils/refdataOptions.js.html +0 -109
  283. package/src/artifacts/coverage-jest/lcov-report/utils/refdataQueryKey.js.html +0 -112
  284. package/src/artifacts/coverage-jest/lcov-report/utils/renderHelpText.js.html +0 -166
  285. package/src/artifacts/coverage-jest/lcov-report/utils/selectorSafe.js.html +0 -145
  286. package/src/artifacts/coverage-jest/lcov-report/utils/sortByLabel.js.html +0 -130
  287. package/src/artifacts/coverage-jest/lcov-report/utils/toCamelCase.js.html +0 -127
  288. package/src/artifacts/coverage-jest/lcov-report/utils/typedownQueryKey.js.html +0 -112
  289. package/src/artifacts/coverage-jest/lcov-report/utils/validators.js.html +0 -370
  290. package/src/artifacts/coverage-jest/lcov-report/validators/index.html +0 -131
  291. package/src/artifacts/coverage-jest/lcov-report/validators/index.js.html +0 -88
  292. package/src/artifacts/coverage-jest/lcov-report/validators/validators.js.html +0 -370
  293. package/src/artifacts/coverage-jest/lcov.info +0 -5223
@@ -21,12 +21,12 @@ const useMutateModConfigEntry = _ref => {
21
21
  configName,
22
22
  moduleName
23
23
  });
24
- const putQueryObject = (0, _reactQuery.useMutation)([...baseNamespace, 'putConfigEntry', id], async data => ky.put("".concat(_endpoints.MOD_SETTINGS_ENDPOINT, "/").concat(id), {
24
+ const putQueryObject = (0, _reactQuery.useMutation)([...baseNamespace, 'putConfigEntry', id], async data => ky.put(`${_endpoints.MOD_SETTINGS_ENDPOINT}/${id}`, {
25
25
  json: data
26
26
  }).json().then(() => {
27
27
  queryClient.invalidateQueries(baseNamespace);
28
28
  }));
29
- const postQueryObject = (0, _reactQuery.useMutation)([...baseNamespace, 'postConfigEntry'], async data => ky.post("".concat(_endpoints.MOD_SETTINGS_ENDPOINT), {
29
+ const postQueryObject = (0, _reactQuery.useMutation)([...baseNamespace, 'postConfigEntry'], async data => ky.post(`${_endpoints.MOD_SETTINGS_ENDPOINT}`, {
30
30
  json: data
31
31
  }).json().then(() => {
32
32
  queryClient.invalidateQueries(baseNamespace);
@@ -36,5 +36,4 @@ const useMutateModConfigEntry = _ref => {
36
36
  }
37
37
  return postQueryObject;
38
38
  };
39
- var _default = useMutateModConfigEntry;
40
- exports.default = _default;
39
+ var _default = exports.default = useMutateModConfigEntry;
@@ -22,24 +22,23 @@ const useMutateRefdataCategory = _ref => {
22
22
  const returnObj = {};
23
23
  const ky = (0, _core.useOkapiKy)();
24
24
  const invalidateRefdata = (0, _useInvalidateRefdata.default)();
25
- const deleteQueryObject = (0, _reactQuery.useMutation)(['stripes-kint-components', 'useMutateRefdataCategory', 'delete'], async id => ky.delete("".concat(endpoint, "/").concat(id)).json().then(afterQueryCalls === null || afterQueryCalls === void 0 ? void 0 : afterQueryCalls.delete).then(() => invalidateRefdata()).catch(catchQueryCalls === null || catchQueryCalls === void 0 ? void 0 : catchQueryCalls.delete), queryParams === null || queryParams === void 0 ? void 0 : queryParams.delete);
25
+ const deleteQueryObject = (0, _reactQuery.useMutation)(['stripes-kint-components', 'useMutateRefdataCategory', 'delete'], async id => ky.delete(`${endpoint}/${id}`).json().then(afterQueryCalls?.delete).then(() => invalidateRefdata()).catch(catchQueryCalls?.delete), queryParams?.delete);
26
26
  const postQueryObject = (0, _reactQuery.useMutation)(['stripes-kint-components', 'useMutateRefdataCategory', 'post'], async payload => ky.post(endpoint, {
27
27
  json: {
28
28
  ...payload,
29
29
  values: []
30
30
  }
31
- }).json().then(afterQueryCalls === null || afterQueryCalls === void 0 ? void 0 : afterQueryCalls.post).then(() => invalidateRefdata()).catch(catchQueryCalls === null || catchQueryCalls === void 0 ? void 0 : catchQueryCalls.post), queryParams === null || queryParams === void 0 ? void 0 : queryParams.post);
32
- if (returnQueryObject !== null && returnQueryObject !== void 0 && returnQueryObject.delete) {
31
+ }).json().then(afterQueryCalls?.post).then(() => invalidateRefdata()).catch(catchQueryCalls?.post), queryParams?.post);
32
+ if (returnQueryObject?.delete) {
33
33
  returnObj.delete = deleteQueryObject;
34
34
  } else {
35
35
  returnObj.delete = deleteQueryObject.mutateAsync;
36
36
  }
37
- if (returnQueryObject !== null && returnQueryObject !== void 0 && returnQueryObject.post) {
37
+ if (returnQueryObject?.post) {
38
38
  returnObj.post = postQueryObject;
39
39
  } else {
40
40
  returnObj.post = postQueryObject.mutateAsync;
41
41
  }
42
42
  return returnObj;
43
43
  };
44
- var _default = useMutateRefdataCategory;
45
- exports.default = _default;
44
+ var _default = exports.default = useMutateRefdataCategory;
@@ -23,7 +23,7 @@ const useMutateRefdataValue = _ref => {
23
23
  const returnObj = {};
24
24
  const ky = (0, _core.useOkapiKy)();
25
25
  const invalidateRefdata = (0, _useInvalidateRefdata.default)();
26
- const deleteQueryObject = (0, _reactQuery.useMutation)(['stripes-kint-components', 'useMutateRefdataValue', 'delete', id], async data => ky.put("".concat(endpoint, "/").concat(id), {
26
+ const deleteQueryObject = (0, _reactQuery.useMutation)(['stripes-kint-components', 'useMutateRefdataValue', 'delete', id], async data => ky.put(`${endpoint}/${id}`, {
27
27
  json: {
28
28
  id,
29
29
  values: [{
@@ -31,24 +31,23 @@ const useMutateRefdataValue = _ref => {
31
31
  _delete: true
32
32
  }]
33
33
  }
34
- }).json().then(afterQueryCalls === null || afterQueryCalls === void 0 ? void 0 : afterQueryCalls.delete).then(() => invalidateRefdata()).catch(catchQueryCalls === null || catchQueryCalls === void 0 ? void 0 : catchQueryCalls.delete), queryParams === null || queryParams === void 0 ? void 0 : queryParams.delete);
35
- const putQueryObject = (0, _reactQuery.useMutation)(['stripes-kint-components', 'editableRefdataList', 'editValue', id], async data => ky.put("".concat(endpoint, "/").concat(id), {
34
+ }).json().then(afterQueryCalls?.delete).then(() => invalidateRefdata()).catch(catchQueryCalls?.delete), queryParams?.delete);
35
+ const putQueryObject = (0, _reactQuery.useMutation)(['stripes-kint-components', 'editableRefdataList', 'editValue', id], async data => ky.put(`${endpoint}/${id}`, {
36
36
  json: {
37
37
  id,
38
38
  values: [data]
39
39
  }
40
- }).json().then(afterQueryCalls === null || afterQueryCalls === void 0 ? void 0 : afterQueryCalls.put).then(() => invalidateRefdata()).catch(catchQueryCalls === null || catchQueryCalls === void 0 ? void 0 : catchQueryCalls.put), queryParams === null || queryParams === void 0 ? void 0 : queryParams.put);
41
- if (returnQueryObject !== null && returnQueryObject !== void 0 && returnQueryObject.delete) {
40
+ }).json().then(afterQueryCalls?.put).then(() => invalidateRefdata()).catch(catchQueryCalls?.put), queryParams?.put);
41
+ if (returnQueryObject?.delete) {
42
42
  returnObj.delete = deleteQueryObject;
43
43
  } else {
44
44
  returnObj.delete = deleteQueryObject.mutateAsync;
45
45
  }
46
- if (returnQueryObject !== null && returnQueryObject !== void 0 && returnQueryObject.put) {
46
+ if (returnQueryObject?.put) {
47
47
  returnObj.put = putQueryObject;
48
48
  } else {
49
49
  returnObj.put = putQueryObject.mutateAsync;
50
50
  }
51
51
  return returnObj;
52
52
  };
53
- var _default = useMutateRefdataValue;
54
- exports.default = _default;
53
+ var _default = exports.default = useMutateRefdataValue;
@@ -8,32 +8,31 @@ var _react = _interopRequireWildcard(require("react"));
8
8
  var _reactRouterDom = require("react-router-dom");
9
9
  var _queryString = _interopRequireDefault(require("query-string"));
10
10
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
11
- 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); }
12
- 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; }
11
+ 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); }
12
+ 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; }
13
13
  const useQIndex = () => {
14
14
  const history = (0, _reactRouterDom.useHistory)();
15
15
  const location = (0, _reactRouterDom.useLocation)();
16
16
  const query = _queryString.default.parse(location.search);
17
- const [currentQindex, setCurrentQindex] = (0, _react.useState)(query === null || query === void 0 ? void 0 : query.qindex);
17
+ const [currentQindex, setCurrentQindex] = (0, _react.useState)(query?.qindex);
18
18
  const handleQindexChange = newQindex => {
19
19
  setCurrentQindex(newQindex);
20
- if (newQindex !== (query === null || query === void 0 ? void 0 : query.qindex)) {
20
+ if (newQindex !== query?.qindex) {
21
21
  const newQuery = {
22
22
  ...query,
23
23
  qindex: newQindex
24
24
  };
25
25
  history.push({
26
26
  pathname: location.pathname,
27
- search: "?".concat(_queryString.default.stringify(newQuery))
27
+ search: `?${_queryString.default.stringify(newQuery)}`
28
28
  });
29
29
  }
30
30
  };
31
31
  (0, _react.useEffect)(() => {
32
- if (currentQindex !== (query === null || query === void 0 ? void 0 : query.qindex)) {
33
- setCurrentQindex(query === null || query === void 0 ? void 0 : query.qindex);
32
+ if (currentQindex !== query?.qindex) {
33
+ setCurrentQindex(query?.qindex);
34
34
  }
35
35
  }, [currentQindex, history, location, query]);
36
36
  return [currentQindex, handleQindexChange];
37
37
  };
38
- var _default = useQIndex;
39
- exports.default = _default;
38
+ var _default = exports.default = useQIndex;
@@ -28,13 +28,13 @@ const useRefdata = _ref => {
28
28
 
29
29
  if (Array.isArray(desc)) {
30
30
  // If we have an array, append a desc filter for each desc given
31
- nsValues.filters = desc.map(d => "DescKey.".concat(d)).join(',');
31
+ nsValues.filters = desc.map(d => `DescKey.${d}`).join(',');
32
32
  } else if (desc) {
33
33
  // If we just have a string, append a single desc filter
34
- nsValues.filters = "DescKey.".concat(desc);
34
+ nsValues.filters = `DescKey.${desc}`;
35
35
  }
36
36
  const query = (0, _utils.generateKiwtQuery)(options, nsValues);
37
- const path = "".concat(endpoint).concat(query);
37
+ const path = `${endpoint}${query}`;
38
38
  const queryObject = (0, _reactQuery.useQuery)((0, _utils.refdataQueryKey)(desc), () => ky(path).json(), queryParams);
39
39
  if (returnQueryObject) {
40
40
  return queryObject || {};
@@ -50,5 +50,4 @@ useRefdata.propTypes = {
50
50
  queryParams: _propTypes.default.object,
51
51
  returnQueryObject: _propTypes.default.bool
52
52
  };
53
- var _default = useRefdata;
54
- exports.default = _default;
53
+ var _default = exports.default = useRefdata;
@@ -30,5 +30,4 @@ const useSASQQueryMeta = id => {
30
30
  }
31
31
  };
32
32
  };
33
- var _default = useSASQQueryMeta;
34
- exports.default = _default;
33
+ var _default = exports.default = useSASQQueryMeta;
@@ -18,17 +18,16 @@ const useTemplates = _ref => {
18
18
  const ky = (0, _core.useOkapiKy)();
19
19
  const extraPathItems = [];
20
20
  if (context) {
21
- extraPathItems.push("filters=context=".concat(context));
21
+ extraPathItems.push(`filters=context=${context}`);
22
22
  }
23
23
  if (sort) {
24
- extraPathItems.push("sort=".concat(sort));
24
+ extraPathItems.push(`sort=${sort}`);
25
25
  }
26
26
  extraPathItems.push('max=500');
27
- const path = "".concat(endpoint, "?").concat(extraPathItems.join('&'));
27
+ const path = `${endpoint}?${extraPathItems.join('&')}`;
28
28
  const {
29
29
  data: templates
30
- } = (0, _reactQuery.useQuery)(['stripes-kint-components', 'useTemplates', 'templates', context !== null && context !== void 0 ? context : ''], () => ky(path).json(), queryParams);
30
+ } = (0, _reactQuery.useQuery)(['stripes-kint-components', 'useTemplates', 'templates', context ?? ''], () => ky(path).json(), queryParams);
31
31
  return templates || [];
32
32
  };
33
- var _default = useTemplates;
34
- exports.default = _default;
33
+ var _default = exports.default = useTemplates;
@@ -8,7 +8,6 @@ var _reactQuery = require("react-query");
8
8
  var _core = require("@folio/stripes/core");
9
9
  var _utils = require("../utils");
10
10
  const useAppSettings = _ref => {
11
- var _ref2, _ref3, _queryObject$data2;
12
11
  let {
13
12
  endpoint,
14
13
  keyName,
@@ -24,33 +23,29 @@ const useAppSettings = _ref => {
24
23
  };
25
24
  const namespaceArray = [endpoint];
26
25
  if (sectionName) {
27
- var _defaultQueryParamObj;
28
- defaultQueryParamObject.filters = [...((_defaultQueryParamObj = defaultQueryParamObject.filters) !== null && _defaultQueryParamObj !== void 0 ? _defaultQueryParamObj : []), {
26
+ defaultQueryParamObject.filters = [...(defaultQueryParamObject.filters ?? []), {
29
27
  path: 'section',
30
28
  value: sectionName
31
29
  }];
32
30
  namespaceArray.push(sectionName);
33
31
  }
34
32
  if (keyName) {
35
- var _defaultQueryParamObj2;
36
- defaultQueryParamObject.filters = [...((_defaultQueryParamObj2 = defaultQueryParamObject.filters) !== null && _defaultQueryParamObj2 !== void 0 ? _defaultQueryParamObj2 : []), {
33
+ defaultQueryParamObject.filters = [...(defaultQueryParamObject.filters ?? []), {
37
34
  path: 'key',
38
35
  value: keyName
39
36
  }];
40
37
  defaultQueryParamObject.perPage = 1;
41
38
  namespaceArray.push(keyName);
42
39
  }
43
- const queryParamArray = (0, _utils.generateKiwtQueryParams)(options !== null && options !== void 0 ? options : defaultQueryParamObject, {});
40
+ const queryParamArray = (0, _utils.generateKiwtQueryParams)(options ?? defaultQueryParamObject, {});
44
41
  namespaceArray.push(queryParamArray);
45
- const queryObject = (0, _reactQuery.useQuery)(namespaceArray, () => ky("".concat(endpoint, "?").concat(queryParamArray === null || queryParamArray === void 0 ? void 0 : queryParamArray.join('&'))).json(), queryParams);
42
+ const queryObject = (0, _reactQuery.useQuery)(namespaceArray, () => ky(`${endpoint}?${queryParamArray?.join('&')}`).json(), queryParams);
46
43
  if (returnQueryObject) {
47
44
  return queryObject;
48
45
  }
49
- if ((_ref2 = queryParams !== null && queryParams !== void 0 ? queryParams : defaultQueryParamObject) !== null && _ref2 !== void 0 && _ref2.perPage && ((_ref3 = queryParams !== null && queryParams !== void 0 ? queryParams : defaultQueryParamObject) === null || _ref3 === void 0 ? void 0 : _ref3.perPage) === 1) {
50
- var _queryObject$data$, _queryObject$data;
51
- return (_queryObject$data$ = queryObject === null || queryObject === void 0 ? void 0 : (_queryObject$data = queryObject.data) === null || _queryObject$data === void 0 ? void 0 : _queryObject$data[0]) !== null && _queryObject$data$ !== void 0 ? _queryObject$data$ : {};
46
+ if ((queryParams ?? defaultQueryParamObject)?.perPage && (queryParams ?? defaultQueryParamObject)?.perPage === 1) {
47
+ return queryObject?.data?.[0] ?? {};
52
48
  }
53
- return (_queryObject$data2 = queryObject === null || queryObject === void 0 ? void 0 : queryObject.data) !== null && _queryObject$data2 !== void 0 ? _queryObject$data2 : [];
49
+ return queryObject?.data ?? [];
54
50
  };
55
- var _default = useAppSettings;
56
- exports.default = _default;
51
+ var _default = exports.default = useAppSettings;
@@ -26,10 +26,10 @@ const useSettingSection = _ref => {
26
26
  }, {});
27
27
  const {
28
28
  data: settings = []
29
- } = (0, _reactQuery.useQuery)(['stripes-kint-components', 'useSetting', 'appSettings', queryParams, sectionName], () => ky("".concat(settingEndpoint, "?").concat(queryParams === null || queryParams === void 0 ? void 0 : queryParams.join('&'))).json());
29
+ } = (0, _reactQuery.useQuery)(['stripes-kint-components', 'useSetting', 'appSettings', queryParams, sectionName], () => ky(`${settingEndpoint}?${queryParams?.join('&')}`).json());
30
30
  const {
31
31
  mutateAsync: putSetting
32
- } = (0, _reactQuery.useMutation)(['stripes-kint-components', 'useSetting', 'putSetting', sectionName], data => ky.put("".concat(settingEndpoint).concat(data.id ? '/' + data.id : ''), {
32
+ } = (0, _reactQuery.useMutation)(['stripes-kint-components', 'useSetting', 'putSetting', sectionName], data => ky.put(`${settingEndpoint}${data.id ? '/' + data.id : ''}`, {
33
33
  json: data
34
34
  }));
35
35
  return {
@@ -37,5 +37,4 @@ const useSettingSection = _ref => {
37
37
  settings
38
38
  };
39
39
  };
40
- var _default = useSettingSection;
41
- exports.default = _default;
40
+ var _default = exports.default = useSettingSection;
@@ -30,7 +30,7 @@ const useSettings = _ref => {
30
30
  const ky = (0, _core.useOkapiKy)();
31
31
  const kintIntl = (0, _hooks.useKintIntl)(passedIntlKey, passedIntlNS);
32
32
  const queryParams = (0, _utils.generateKiwtQueryParams)({
33
- filters: dynamicPageExclusions === null || dynamicPageExclusions === void 0 ? void 0 : dynamicPageExclusions.map(dpe => ({
33
+ filters: dynamicPageExclusions?.map(dpe => ({
34
34
  path: 'section',
35
35
  comparator: '!=',
36
36
  value: dpe
@@ -41,13 +41,13 @@ const useSettings = _ref => {
41
41
  const {
42
42
  data: appSettings = [],
43
43
  isLoading
44
- } = (0, _reactQuery.useQuery)(['stripes-kint-components', 'useSettings', 'appSettings', settingEndpoint, queryParams], () => ky("".concat(settingEndpoint, "?").concat(queryParams === null || queryParams === void 0 ? void 0 : queryParams.join('&'))).json());
44
+ } = (0, _reactQuery.useQuery)(['stripes-kint-components', 'useSettings', 'appSettings', settingEndpoint, queryParams], () => ky(`${settingEndpoint}?${queryParams?.join('&')}`).json());
45
45
  const sections = [...new Set(appSettings.map(s => s.section))];
46
46
  const dynamic = sections.map(section => {
47
47
  return {
48
48
  route: section,
49
49
  label: kintIntl.formatKintMessage({
50
- id: "settings.settingsSection.".concat((0, _utils.toCamelCase)(section)),
50
+ id: `settings.settingsSection.${(0, _utils.toCamelCase)(section)}`,
51
51
  fallbackMessage: section
52
52
  }),
53
53
  component: props => /*#__PURE__*/(0, _jsxRuntime.jsx)(_SettingPage.SettingPagePane, {
@@ -108,5 +108,4 @@ const useSettings = _ref => {
108
108
  SettingsContextProvider
109
109
  };
110
110
  };
111
- var _default = useSettings;
112
- exports.default = _default;
111
+ var _default = exports.default = useSettings;
@@ -27,7 +27,7 @@ function buildUrl(location, values, basePath) {
27
27
  const params = removeEmpty(Object.assign(locationQuery, values));
28
28
  (0, _unset2.default)(params, '_path');
29
29
  if (!(0, _isEmpty2.default)(params)) {
30
- url += "?".concat(_queryString.default.stringify(params));
30
+ url += `?${_queryString.default.stringify(params)}`;
31
31
  }
32
32
  return url;
33
33
  }
@@ -11,5 +11,4 @@ const generateKiwtQuery = function (options, nsValues) {
11
11
  const paramsArray = (0, _generateKiwtQueryParams.default)(options, nsValues, encode);
12
12
  return paramsArray.length ? '?' + paramsArray.join('&') : '';
13
13
  };
14
- var _default = generateKiwtQuery;
15
- exports.default = _default;
14
+ var _default = exports.default = generateKiwtQuery;
@@ -14,40 +14,36 @@ const conditionalEncodeURIComponent = function (str) {
14
14
  const buildFilterOptionBlock = function (opf) {
15
15
  let isNested = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : false;
16
16
  let encode = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : true;
17
- if (opf !== null && opf !== void 0 && opf.groupValues) {
17
+ if (opf?.groupValues) {
18
18
  const groupValues = opf.groupValues;
19
19
 
20
20
  // Small utility function to add negation and brackets to the options block where necessary
21
- const negationAndNesting = str => "".concat(groupValues !== null && groupValues !== void 0 && groupValues.NOT ? '!' : '').concat(isNested || groupValues !== null && groupValues !== void 0 && groupValues.NOT ? '(' : '').concat(str).concat(isNested || groupValues !== null && groupValues !== void 0 && groupValues.NOT ? ')' : '');
21
+ const negationAndNesting = str => `${groupValues?.NOT ? '!' : ''}${isNested || groupValues?.NOT ? '(' : ''}${str}${isNested || groupValues?.NOT ? ')' : ''}`;
22
22
 
23
23
  // First check whether groupValues is ANDed or ORed together
24
- if (groupValues !== null && groupValues !== void 0 && groupValues.AND && Array.isArray(groupValues.AND) || groupValues !== null && groupValues !== void 0 && groupValues.OR && Array.isArray(groupValues.OR)) {
25
- var _groupValues$OR, _groupValues$OR$map;
24
+ if (groupValues?.AND && Array.isArray(groupValues.AND) || groupValues?.OR && Array.isArray(groupValues.OR)) {
26
25
  // AND takes precedence
27
26
  if (groupValues.AND) {
28
- var _groupValues$AND, _groupValues$AND$map;
29
- return negationAndNesting(groupValues === null || groupValues === void 0 ? void 0 : (_groupValues$AND = groupValues.AND) === null || _groupValues$AND === void 0 ? void 0 : (_groupValues$AND$map = _groupValues$AND.map(gvo => buildFilterOptionBlock(gvo, true, encode))) === null || _groupValues$AND$map === void 0 ? void 0 : _groupValues$AND$map.join('&&'));
27
+ return negationAndNesting(groupValues?.AND?.map(gvo => buildFilterOptionBlock(gvo, true, encode))?.join('&&'));
30
28
  }
31
- return negationAndNesting(groupValues === null || groupValues === void 0 ? void 0 : (_groupValues$OR = groupValues.OR) === null || _groupValues$OR === void 0 ? void 0 : (_groupValues$OR$map = _groupValues$OR.map(gvo => buildFilterOptionBlock(gvo, true, encode))) === null || _groupValues$OR$map === void 0 ? void 0 : _groupValues$OR$map.join('||'));
29
+ return negationAndNesting(groupValues?.OR?.map(gvo => buildFilterOptionBlock(gvo, true, encode))?.join('||'));
32
30
  }
33
31
  // If neither valid OR nor AND exist, ignore the block
34
- } else if (opf !== null && opf !== void 0 && opf.values) {
32
+ } else if (opf?.values) {
35
33
  // Build the values filter block
36
34
  const innerFilters = [];
37
35
  opf.values.forEach(opfv => {
38
36
  if (opf.path) {
39
- var _opf$comparator;
40
- innerFilters.push("".concat(opf.path).concat((_opf$comparator = opf.comparator) !== null && _opf$comparator !== void 0 ? _opf$comparator : '==').concat(opfv));
37
+ innerFilters.push(`${opf.path}${opf.comparator ?? '=='}${opfv}`);
41
38
  } else {
42
39
  innerFilters.push(opfv);
43
40
  }
44
41
  });
45
42
  return conditionalEncodeURIComponent(innerFilters.join('||'), encode);
46
- } else if (opf !== null && opf !== void 0 && opf.value) {
43
+ } else if (opf?.value) {
47
44
  // If no value OR values, then ignore
48
45
  if (opf.path) {
49
- var _opf$comparator2;
50
- const filterString = "".concat(opf.path).concat((_opf$comparator2 = opf.comparator) !== null && _opf$comparator2 !== void 0 ? _opf$comparator2 : '==').concat(opf.value);
46
+ const filterString = `${opf.path}${opf.comparator ?? '=='}${opf.value}`;
51
47
  return conditionalEncodeURIComponent(filterString, encode);
52
48
  }
53
49
  return conditionalEncodeURIComponent(opf.value, encode);
@@ -105,9 +101,8 @@ const generateKiwtQueryParams = function (options, nsValues) {
105
101
  } = options;
106
102
  const paramsArray = [];
107
103
  if (query) {
108
- var _split;
109
- paramsArray.push(...((_split = (qindex || searchKey).split(',')) === null || _split === void 0 ? void 0 : _split.map(m => "match=".concat(conditionalEncodeURIComponent(m, encode)))));
110
- paramsArray.push("term=".concat(conditionalEncodeURIComponent(query, encode)));
104
+ paramsArray.push(...(qindex || searchKey).split(',')?.map(m => `match=${conditionalEncodeURIComponent(m, encode)}`));
105
+ paramsArray.push(`term=${conditionalEncodeURIComponent(query, encode)}`);
111
106
  }
112
107
 
113
108
  // Actually build the optionsFilters block (Moved logic to its own function to allow recursion)
@@ -115,15 +110,14 @@ const generateKiwtQueryParams = function (options, nsValues) {
115
110
  optionsFilters.forEach(opf => {
116
111
  const optionsBlock = buildFilterOptionBlock(opf, false, encode);
117
112
  if (optionsBlock) {
118
- paramsArray.push("filters=".concat(optionsBlock));
113
+ paramsArray.push(`filters=${optionsBlock}`);
119
114
  }
120
115
  });
121
116
  }
122
117
  if (filters) {
123
118
  const filterMap = {};
124
119
  filters.split(',').forEach(filter => {
125
- var _filter$trim;
126
- const [filterName, ...filterRest] = (_filter$trim = filter.trim()) === null || _filter$trim === void 0 ? void 0 : _filter$trim.split('.');
120
+ const [filterName, ...filterRest] = filter.trim()?.split('.');
127
121
  const filterValue = filterRest.join('.');
128
122
  if (filterMap[filterName] === undefined) filterMap[filterName] = [];
129
123
  filterMap[filterName].push(filterValue);
@@ -137,51 +131,47 @@ const generateKiwtQueryParams = function (options, nsValues) {
137
131
  if (filterConfigEntry) {
138
132
  // We have a direct mapping instruction, use it
139
133
  const filterString = filterValues.map(v => {
140
- var _filterConfigEntry$va, _filterConfigEntry$va2;
141
- const fceValue = filterConfigEntry === null || filterConfigEntry === void 0 ? void 0 : (_filterConfigEntry$va = filterConfigEntry.values) === null || _filterConfigEntry$va === void 0 ? void 0 : (_filterConfigEntry$va2 = _filterConfigEntry$va.find(fce => fce.name === v)) === null || _filterConfigEntry$va2 === void 0 ? void 0 : _filterConfigEntry$va2.value;
142
- return "".concat(filterName, "==").concat(fceValue !== null && fceValue !== void 0 ? fceValue : v);
134
+ const fceValue = filterConfigEntry?.values?.find(fce => fce.name === v)?.value;
135
+ return `${filterName}==${fceValue ?? v}`;
143
136
  }).join('||');
144
- paramsArray.push("filters=".concat(conditionalEncodeURIComponent(filterString, encode)));
137
+ paramsArray.push(`filters=${conditionalEncodeURIComponent(filterString, encode)}`);
145
138
  } else if (!filterKey) {
146
139
  // These filters have no key mapping so we just pass the values to the backend as-is.
147
- paramsArray.push(...(filterValues === null || filterValues === void 0 ? void 0 : filterValues.map(f => "filters=".concat(conditionalEncodeURIComponent(f, encode)))));
140
+ paramsArray.push(...filterValues?.map(f => `filters=${conditionalEncodeURIComponent(f, encode)}`));
148
141
  } else {
149
- const filterString = filterValues.map(v => "".concat(filterKey, "==").concat(v)).join('||');
150
- paramsArray.push("filters=".concat(conditionalEncodeURIComponent(filterString, encode)));
142
+ const filterString = filterValues.map(v => `${filterKey}==${v}`).join('||');
143
+ paramsArray.push(`filters=${conditionalEncodeURIComponent(filterString, encode)}`);
151
144
  }
152
145
  });
153
146
  }
154
147
  if (optionsSort && optionsSort.length > 0) {
155
148
  optionsSort.forEach(os => {
156
149
  if (os.value) {
157
- paramsArray.push("sort=".concat(conditionalEncodeURIComponent(os.value, encode)));
150
+ paramsArray.push(`sort=${conditionalEncodeURIComponent(os.value, encode)}`);
158
151
  } else if (os.path) {
159
- var _os$direction;
160
152
  // If no path then ignore
161
- const sortString = "".concat(os.path, ";").concat((_os$direction = os.direction) !== null && _os$direction !== void 0 ? _os$direction : 'asc');
162
- paramsArray.push("sort=".concat(conditionalEncodeURIComponent(sortString, encode)));
153
+ const sortString = `${os.path};${os.direction ?? 'asc'}`;
154
+ paramsArray.push(`sort=${conditionalEncodeURIComponent(sortString, encode)}`);
163
155
  }
164
156
  });
165
157
  }
166
158
  if (sort) {
167
- var _sort$trim;
168
- paramsArray.push(...((_sort$trim = sort.trim()) === null || _sort$trim === void 0 ? void 0 : _sort$trim.split(',').map(sortKey => {
159
+ paramsArray.push(...sort.trim()?.split(',').map(sortKey => {
169
160
  const descending = sortKey.startsWith('-');
170
161
  let term = sortKey.replace('-', '');
171
162
  if (term in sortKeys) {
172
163
  term = term.replace(term, sortKeys[term]);
173
164
  }
174
- const sortString = "".concat(term, ";").concat(descending ? 'desc' : 'asc');
175
- return "sort=".concat(conditionalEncodeURIComponent(sortString, encode));
176
- })));
165
+ const sortString = `${term};${descending ? 'desc' : 'asc'}`;
166
+ return `sort=${conditionalEncodeURIComponent(sortString, encode)}`;
167
+ }));
177
168
  }
178
169
  if (stats) {
179
170
  paramsArray.push('stats=true');
180
171
  }
181
172
  for (const [key, value] of Object.entries(rest)) {
182
- paramsArray.push("".concat(key, "=").concat(conditionalEncodeURIComponent(value, encode)));
173
+ paramsArray.push(`${key}=${conditionalEncodeURIComponent(value, encode)}`);
183
174
  }
184
175
  return paramsArray;
185
176
  };
186
- var _default = generateKiwtQueryParams;
187
- exports.default = _default;
177
+ var _default = exports.default = generateKiwtQueryParams;
@@ -7,14 +7,12 @@ exports.default = void 0;
7
7
  const groupCustomPropertiesByCtx = function () {
8
8
  let customProperties = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : [];
9
9
  return customProperties.reduce((acc, curr) => {
10
- var _curr$ctx, _acc$ctx;
11
- const ctx = (_curr$ctx = curr.ctx) !== null && _curr$ctx !== void 0 ? _curr$ctx : 'isNull';
10
+ const ctx = curr.ctx ?? 'isNull';
12
11
  const returnObj = {
13
12
  ...acc
14
13
  };
15
- returnObj[ctx] = [...((_acc$ctx = acc === null || acc === void 0 ? void 0 : acc[ctx]) !== null && _acc$ctx !== void 0 ? _acc$ctx : []), curr];
14
+ returnObj[ctx] = [...(acc?.[ctx] ?? []), curr];
16
15
  return returnObj;
17
16
  }, {});
18
17
  };
19
- var _default = groupCustomPropertiesByCtx;
20
- exports.default = _default;
18
+ var _default = exports.default = groupCustomPropertiesByCtx;
@@ -8,7 +8,7 @@ var _escapeRegExp = _interopRequireDefault(require("lodash/escapeRegExp"));
8
8
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
9
9
  const matchString = function (match, str) {
10
10
  let ignoreNull = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : true;
11
- const regex = new RegExp("".concat(match.split(/(\s+)/).filter(h => h.trim()).map(hl => '(' + (0, _escapeRegExp.default)(hl) + ')').join('|')), 'gi');
11
+ const regex = new RegExp(`${match.split(/(\s+)/).filter(h => h.trim()).map(hl => '(' + (0, _escapeRegExp.default)(hl) + ')').join('|')}`, 'gi');
12
12
  if (ignoreNull && !match) {
13
13
  const nullRegex = /a^/gi; // Should match nothing
14
14
 
@@ -16,5 +16,4 @@ const matchString = function (match, str) {
16
16
  }
17
17
  return [str.split(regex), regex];
18
18
  };
19
- var _default = matchString;
20
- exports.default = _default;
19
+ var _default = exports.default = matchString;
@@ -20,5 +20,4 @@ const modConfigEntriesQueryKey = function () {
20
20
  }
21
21
  return namespace;
22
22
  };
23
- var _default = modConfigEntriesQueryKey;
24
- exports.default = _default;
23
+ var _default = exports.default = modConfigEntriesQueryKey;
@@ -5,10 +5,9 @@ Object.defineProperty(exports, "__esModule", {
5
5
  });
6
6
  exports.default = void 0;
7
7
  const parseErrorResponse = async responseObj => {
8
- var _ref, _ref$find;
9
8
  let errorResp;
10
- const code = responseObj === null || responseObj === void 0 ? void 0 : responseObj.status;
11
- const contentType = (_ref = [...(responseObj === null || responseObj === void 0 ? void 0 : responseObj.headers)]) === null || _ref === void 0 ? void 0 : (_ref$find = _ref.find(header => header[0] === 'content-type')) === null || _ref$find === void 0 ? void 0 : _ref$find[1];
9
+ const code = responseObj?.status;
10
+ const contentType = [...responseObj?.headers]?.find(header => header[0] === 'content-type')?.[1];
12
11
  if (contentType.includes('json')) {
13
12
  errorResp = await responseObj.json();
14
13
  } else {
@@ -26,5 +25,4 @@ const parseErrorResponse = async responseObj => {
26
25
  }
27
26
  return errorResp;
28
27
  };
29
- var _default = parseErrorResponse;
30
- exports.default = _default;
28
+ var _default = exports.default = parseErrorResponse;
@@ -44,8 +44,7 @@ const parseKiwtQueryGroups = query => {
44
44
  let nestLevel = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 0;
45
45
  const group = [];
46
46
  // Iterate over each element in the array, recursively calling this when hitting parens
47
- parseArray === null || parseArray === void 0 ? void 0 : parseArray.every((element, index) => {
48
- var _skipCount;
47
+ parseArray?.every((element, index) => {
49
48
  if (skipCount[nestLevel] > 0) {
50
49
  skipCount[nestLevel] -= 1;
51
50
  return true; // Equivalent to BREAK -- move onto next element
@@ -57,14 +56,14 @@ const parseKiwtQueryGroups = query => {
57
56
  }
58
57
 
59
58
  // At the levels below all of the following will need
60
- skipCount = (_skipCount = skipCount) === null || _skipCount === void 0 ? void 0 : _skipCount.map((n, i) => {
59
+ skipCount = skipCount?.map((n, i) => {
61
60
  if (i < nestLevel) {
62
61
  return n + 1;
63
62
  }
64
63
  return n;
65
64
  });
66
65
  if (element !== '(' && element !== ')') {
67
- group === null || group === void 0 ? void 0 : group.push(element);
66
+ group?.push(element);
68
67
  } else if (element === ')') {
69
68
  // Remove the corresponding skipCount level because we're going down a nesting level
70
69
  skipCount.pop();
@@ -74,7 +73,7 @@ const parseKiwtQueryGroups = query => {
74
73
  // Add next index to skipcount for the nesting
75
74
  skipCount.push(0);
76
75
  unclosedParens += 1;
77
- group.push(groupParser(parseArray.slice(index + 1, parseArray === null || parseArray === void 0 ? void 0 : parseArray.length), nestLevel + 1));
76
+ group.push(groupParser(parseArray.slice(index + 1, parseArray?.length), nestLevel + 1));
78
77
  }
79
78
 
80
79
  // If all is well, continue on parsing
@@ -90,5 +89,4 @@ const parseKiwtQueryGroups = query => {
90
89
  }
91
90
  return outputGroups;
92
91
  };
93
- var _default = parseKiwtQueryGroups;
94
- exports.default = _default;
92
+ var _default = exports.default = parseKiwtQueryGroups;
@@ -17,5 +17,4 @@ const parseModConfigEntry = setting => {
17
17
 
18
18
  return parsedSettings;
19
19
  };
20
- var _default = parseModConfigEntry;
21
- exports.default = _default;
20
+ var _default = exports.default = parseModConfigEntry;
@@ -4,7 +4,7 @@ Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
6
  exports.default = void 0;
7
- var _default = {
7
+ var _default = exports.default = {
8
8
  filterKeys: {
9
9
  DescKey: 'desc'
10
10
  },
@@ -13,5 +13,4 @@ var _default = {
13
13
  }],
14
14
  stats: false,
15
15
  max: 100
16
- };
17
- exports.default = _default;
16
+ };
@@ -11,5 +11,4 @@ const refdataQueryKey = desc => {
11
11
  }
12
12
  return keyArray;
13
13
  };
14
- var _default = refdataQueryKey;
15
- exports.default = _default;
14
+ var _default = exports.default = refdataQueryKey;