@k-int/stripes-kint-components 5.29.1 → 5.31.0

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 (392) hide show
  1. package/CHANGELOG.md +21 -0
  2. package/es/__mocks__/@folio/stripes/components.js +3 -7
  3. package/es/__mocks__/@folio/stripes/core.js +4 -6
  4. package/es/__mocks__/@folio/stripes/smart-components.js +4 -6
  5. package/es/__mocks__/react-query.js +4 -6
  6. package/es/__mocks__/react-router-dom.js +6 -6
  7. package/es/index.js +8 -0
  8. package/es/lib/ActionList/ActionList.js +26 -33
  9. package/es/lib/ActionList/ActionListFieldArray.js +103 -119
  10. package/es/lib/ButtonTypedown/ButtonTypedown.js +58 -0
  11. package/es/lib/ButtonTypedown/index.js +13 -0
  12. package/es/lib/ComboButton/ComboButton.js +42 -47
  13. package/es/lib/CustomProperties/Config/CustomPropertiesLookup.js +11 -17
  14. package/es/lib/CustomProperties/Config/CustomPropertiesSettings.js +42 -46
  15. package/es/lib/CustomProperties/Config/CustomPropertyForm.js +58 -58
  16. package/es/lib/CustomProperties/Config/CustomPropertyForm.test.js +4 -8
  17. package/es/lib/CustomProperties/Config/CustomPropertyView.js +32 -33
  18. package/es/lib/CustomProperties/Config/CustomPropertyView.test.js +1 -1
  19. package/es/lib/CustomProperties/Edit/CustomPropertiesEdit.js +1 -1
  20. package/es/lib/CustomProperties/Edit/CustomPropertiesEditCtx.js +3 -3
  21. package/es/lib/CustomProperties/Edit/CustomPropertiesListField.js +29 -35
  22. package/es/lib/CustomProperties/Edit/CustomPropertyField.js +61 -59
  23. package/es/lib/CustomProperties/Edit/CustomPropertyField.test.js +20 -20
  24. package/es/lib/CustomProperties/Edit/CustomPropertyFormCard.js +2 -2
  25. package/es/lib/CustomProperties/Edit/CustomPropertyFormCard.test.js +1 -1
  26. package/es/lib/CustomProperties/Edit/testResources.js +11 -12
  27. package/es/lib/CustomProperties/Filter/CustomPropertiesFilter.js +22 -33
  28. package/es/lib/CustomProperties/Filter/CustomPropertiesFilterField.js +23 -35
  29. package/es/lib/CustomProperties/Filter/CustomPropertiesFilterField.test.js +1 -1
  30. package/es/lib/CustomProperties/Filter/CustomPropertiesFilterFieldArray.js +6 -6
  31. package/es/lib/CustomProperties/Filter/CustomPropertiesFilterForm.js +3 -6
  32. package/es/lib/CustomProperties/Filter/CustomPropertiesFilterForm.test.js +4 -8
  33. package/es/lib/CustomProperties/Filter/CustomPropertiesRule.js +14 -17
  34. package/es/lib/CustomProperties/Filter/testResources.js +1 -2
  35. package/es/lib/CustomProperties/Filter/useParseActiveFilterStrings.js +1 -2
  36. package/es/lib/CustomProperties/View/CustomPropertiesView.js +1 -1
  37. package/es/lib/CustomProperties/View/CustomPropertiesViewCtx.js +18 -26
  38. package/es/lib/CustomProperties/View/CustomPropertiesViewCtx.test.js +3 -6
  39. package/es/lib/CustomProperties/View/CustomPropertyCard.js +7 -11
  40. package/es/lib/CycleButton/CycleButton.js +9 -17
  41. package/es/lib/FormModal/FormModal.js +24 -32
  42. package/es/lib/FormattedKintMessage/FormattedKintMessage.js +23 -30
  43. package/es/lib/IconSelect/IconSelect.js +22 -32
  44. package/es/lib/NoResultsMessage/NoResultsMessage.js +4 -5
  45. package/es/lib/NumberField/NumberField.js +17 -25
  46. package/es/lib/NumberField/NumberField.test.js +6 -7
  47. package/es/lib/QueryTypedown/QueryTypedown.js +8 -15
  48. package/es/lib/RefdataButtons/RefdataButtons.js +6 -9
  49. package/es/lib/ResponsiveButtonGroup/ResponsiveButtonGroup.js +48 -60
  50. package/es/lib/ResponsiveButtonGroup/useResponsiveButtonGroupSizing.js +5 -6
  51. package/es/lib/RichSelect/RichSelect.js +31 -36
  52. package/es/lib/RichSelect/useSelectedOption.js +1 -2
  53. package/es/lib/SASQLookupComponent/SASQLookupComponent.js +91 -94
  54. package/es/lib/SASQLookupComponent/TableBody/TableBody.js +42 -52
  55. package/es/lib/SASQRoute/SASQRoute.js +25 -29
  56. package/es/lib/SASQViewComponent/SASQViewComponent.js +68 -76
  57. package/es/lib/SearchField/SearchField.js +7 -13
  58. package/es/lib/SearchKeyControl/SearchKeyControl.js +8 -13
  59. package/es/lib/SearchKeyControl/SearchKeyControl.test.js +2 -6
  60. package/es/lib/Settings/EditableRefdataCategoryList/EditableRefdataCategoryList.js +30 -46
  61. package/es/lib/Settings/EditableRefdataList/EditableRefdataList.js +33 -43
  62. package/es/lib/Settings/EditableSettingsList/EditableSettingsListFieldArray/EditableSettingsListFieldArray.js +7 -11
  63. package/es/lib/Settings/EditableSettingsList/SettingField/EditSettingValue/EditSettingValue.js +13 -20
  64. package/es/lib/Settings/EditableSettingsList/SettingField/RenderSettingValue/RenderSettingValue.js +10 -12
  65. package/es/lib/Settings/EditableSettingsList/SettingField/SettingField.js +10 -15
  66. package/es/lib/Settings/EditableSettingsList/SettingField/SettingField.test.js +3 -3
  67. package/es/lib/Settings/RefdataCategoriesSettings/RefdataCategoriesSettings.js +19 -26
  68. package/es/lib/Settings/SettingPage/SettingPagePane/SettingPagePane.js +2 -2
  69. package/es/lib/Settings/SettingsFormContainer/SettingsFormContainer.js +30 -35
  70. package/es/lib/Settings/StaticSettingsField/StaticSettingsField.js +5 -8
  71. package/es/lib/Settings/StaticSettingsField/StaticSettingsFieldComponent/StaticSettingsFieldComponent.js +18 -22
  72. package/es/lib/Settings/hooks/staticSettingsPages/useSettingCallout/useSettingCallout.js +2 -2
  73. package/es/lib/Settings/hooks/staticSettingsPages/useSettingsSectionInitalValues/useSettingsSectionInitalValues.js +1 -1
  74. package/es/lib/Settings/hooks/staticSettingsPages/useStaticSettingsSection.js +3 -7
  75. package/es/lib/Settings/hooks/useAppSettings/useAppSettings.js +7 -11
  76. package/es/lib/Settings/hooks/useSettingSection/useSettingSection.js +16 -22
  77. package/es/lib/Settings/hooks/useSettings/useSettings.js +60 -60
  78. package/es/lib/Tags/Tags.js +5 -8
  79. package/es/lib/Tags/hooks/useTags.js +1 -1
  80. package/es/lib/Tags/hooks/useTagsEnabled.js +34 -4
  81. package/es/lib/Tags/tagsConfig.js +1 -1
  82. package/es/lib/Typedown/Typedown.js +103 -69
  83. package/es/lib/constants/endpoints.js +7 -2
  84. package/es/lib/hooks/__mocks__/index.js +3 -7
  85. package/es/lib/hooks/intlHooks/useIntlKeyStore/useIntlKeyStore.js +20 -26
  86. package/es/lib/hooks/intlHooks/useKintIntl/useKintIntl.js +24 -34
  87. package/es/lib/hooks/typedownHooks/useTypedown.js +104 -81
  88. package/es/lib/hooks/typedownHooks/useTypedownToggle.js +2 -2
  89. package/es/lib/hooks/useActionListRef.js +1 -1
  90. package/es/lib/hooks/useActiveElement.js +1 -1
  91. package/es/lib/hooks/useCustomProperties.js +6 -10
  92. package/es/lib/hooks/useHelperApp.js +13 -16
  93. package/es/lib/hooks/useKiwtFieldArray.js +7 -8
  94. package/es/lib/hooks/useKiwtSASQuery.js +15 -19
  95. package/es/lib/hooks/useLocalPageStore.js +7 -10
  96. package/es/lib/hooks/useModConfigEntries.js +2 -2
  97. package/es/lib/hooks/useMutateCustomProperties/useMutateCustomProperties.js +10 -17
  98. package/es/lib/hooks/useMutateGeneric/useMutateGeneric.js +2 -2
  99. package/es/lib/hooks/useMutateModConfigEntry.js +2 -2
  100. package/es/lib/hooks/useMutateRefdataCategory/useMutateRefdataCategory.js +15 -21
  101. package/es/lib/hooks/useMutateRefdataValue/useMutateRefdataValue.js +16 -23
  102. package/es/lib/hooks/usePrevNextPagination.js +17 -19
  103. package/es/lib/hooks/useQIndex.js +11 -14
  104. package/es/lib/hooks/useRefdata.js +3 -3
  105. package/es/lib/hooks/useStandaloneSASQQueryParameter/useStandaloneSASQQueryParameter.js +9 -13
  106. package/es/lib/hooks/useTemplates.js +4 -4
  107. package/es/lib/utils/buildUrl.js +2 -3
  108. package/es/lib/utils/filterParsers/deparseKiwtQueryFilters.js +5 -5
  109. package/es/lib/utils/filterParsers/parseKiwtQueryFilters.js +2 -2
  110. package/es/lib/utils/filterParsers/parseKiwtQueryGroups.js +4 -5
  111. package/es/lib/utils/filterParsers/parseKiwtQueryString.js +1 -1
  112. package/es/lib/utils/generateKiwtQueryParams/generateKiwtQueryParams.js +94 -107
  113. package/es/lib/utils/groupCustomPropertiesByCtx.js +5 -9
  114. package/es/lib/utils/matchString.js +5 -7
  115. package/es/lib/utils/parseErrorResponse.js +3 -7
  116. package/es/lib/utils/selectorSafe.js +2 -3
  117. package/es/lib/utils/sortByLabel.js +2 -3
  118. package/es/lib/validators/validators.js +6 -9
  119. package/package.json +1 -1
  120. package/src/artifacts/coverage-jest/ActionList/ActionList.js.html +1 -1
  121. package/src/artifacts/coverage-jest/ActionList/ActionListFieldArray.js.html +1 -1
  122. package/src/artifacts/coverage-jest/ActionList/index.html +1 -1
  123. package/src/artifacts/coverage-jest/ActionList/index.js.html +1 -1
  124. package/src/artifacts/coverage-jest/ButtonTypedown/ButtonTypedown.js.html +241 -0
  125. package/src/artifacts/coverage-jest/ButtonTypedown/index.html +131 -0
  126. package/src/artifacts/coverage-jest/ButtonTypedown/index.js.html +88 -0
  127. package/src/artifacts/coverage-jest/ComboButton/ComboButton.js.html +1 -1
  128. package/src/artifacts/coverage-jest/ComboButton/index.html +1 -1
  129. package/src/artifacts/coverage-jest/ComboButton/index.js.html +1 -1
  130. package/src/artifacts/coverage-jest/CustomProperties/Config/CustomPropertiesLookup.js.html +1 -1
  131. package/src/artifacts/coverage-jest/CustomProperties/Config/CustomPropertiesSettings.js.html +1 -1
  132. package/src/artifacts/coverage-jest/CustomProperties/Config/CustomPropertyForm.js.html +1 -1
  133. package/src/artifacts/coverage-jest/CustomProperties/Config/CustomPropertyView.js.html +1 -1
  134. package/src/artifacts/coverage-jest/CustomProperties/Config/index.html +1 -1
  135. package/src/artifacts/coverage-jest/CustomProperties/Config/index.js.html +1 -1
  136. package/src/artifacts/coverage-jest/CustomProperties/Edit/CustomPropertiesEdit.js.html +1 -1
  137. package/src/artifacts/coverage-jest/CustomProperties/Edit/CustomPropertiesEditCtx.js.html +1 -1
  138. package/src/artifacts/coverage-jest/CustomProperties/Edit/CustomPropertiesListField.js.html +1 -1
  139. package/src/artifacts/coverage-jest/CustomProperties/Edit/CustomPropertyField.js.html +1 -1
  140. package/src/artifacts/coverage-jest/CustomProperties/Edit/CustomPropertyFormCard.js.html +1 -1
  141. package/src/artifacts/coverage-jest/CustomProperties/Edit/index.html +1 -1
  142. package/src/artifacts/coverage-jest/CustomProperties/Edit/index.js.html +1 -1
  143. package/src/artifacts/coverage-jest/CustomProperties/Edit/testResources.js.html +1 -1
  144. package/src/artifacts/coverage-jest/CustomProperties/Filter/CustomPropertiesFilter.js.html +1 -1
  145. package/src/artifacts/coverage-jest/CustomProperties/Filter/CustomPropertiesFilterField.js.html +1 -1
  146. package/src/artifacts/coverage-jest/CustomProperties/Filter/CustomPropertiesFilterFieldArray.js.html +1 -1
  147. package/src/artifacts/coverage-jest/CustomProperties/Filter/CustomPropertiesFilterForm.js.html +1 -1
  148. package/src/artifacts/coverage-jest/CustomProperties/Filter/CustomPropertiesRule.js.html +1 -1
  149. package/src/artifacts/coverage-jest/CustomProperties/Filter/index.html +1 -1
  150. package/src/artifacts/coverage-jest/CustomProperties/Filter/index.js.html +1 -1
  151. package/src/artifacts/coverage-jest/CustomProperties/Filter/testResources.js.html +1 -1
  152. package/src/artifacts/coverage-jest/CustomProperties/Filter/useOperators.js.html +1 -1
  153. package/src/artifacts/coverage-jest/CustomProperties/Filter/useParseActiveFilterStrings.js.html +1 -1
  154. package/src/artifacts/coverage-jest/CustomProperties/Filter/useValueProps.js.html +1 -1
  155. package/src/artifacts/coverage-jest/CustomProperties/View/CustomPropertiesView.js.html +1 -1
  156. package/src/artifacts/coverage-jest/CustomProperties/View/CustomPropertiesViewCtx.js.html +1 -1
  157. package/src/artifacts/coverage-jest/CustomProperties/View/CustomPropertyCard.js.html +1 -1
  158. package/src/artifacts/coverage-jest/CustomProperties/View/index.html +1 -1
  159. package/src/artifacts/coverage-jest/CustomProperties/View/index.js.html +1 -1
  160. package/src/artifacts/coverage-jest/CustomProperties/View/testResources.js.html +1 -1
  161. package/src/artifacts/coverage-jest/CustomProperties/index.html +1 -1
  162. package/src/artifacts/coverage-jest/CustomProperties/index.js.html +1 -1
  163. package/src/artifacts/coverage-jest/CycleButton/CycleButton.js.html +1 -1
  164. package/src/artifacts/coverage-jest/CycleButton/index.html +1 -1
  165. package/src/artifacts/coverage-jest/CycleButton/index.js.html +1 -1
  166. package/src/artifacts/coverage-jest/FieldLabel/FieldLabel.js.html +1 -1
  167. package/src/artifacts/coverage-jest/FieldLabel/index.html +1 -1
  168. package/src/artifacts/coverage-jest/FieldLabel/index.js.html +1 -1
  169. package/src/artifacts/coverage-jest/FormModal/FormModal.js.html +1 -1
  170. package/src/artifacts/coverage-jest/FormModal/index.html +1 -1
  171. package/src/artifacts/coverage-jest/FormModal/index.js.html +1 -1
  172. package/src/artifacts/coverage-jest/FormattedKintMessage/FormattedKintMessage.js.html +1 -1
  173. package/src/artifacts/coverage-jest/FormattedKintMessage/index.html +1 -1
  174. package/src/artifacts/coverage-jest/FormattedKintMessage/index.js.html +1 -1
  175. package/src/artifacts/coverage-jest/IconSelect/IconSelect.js.html +1 -1
  176. package/src/artifacts/coverage-jest/IconSelect/index.html +1 -1
  177. package/src/artifacts/coverage-jest/IconSelect/index.js.html +1 -1
  178. package/src/artifacts/coverage-jest/NoResultsMessage/NoResultsMessage.js.html +1 -1
  179. package/src/artifacts/coverage-jest/NoResultsMessage/index.html +1 -1
  180. package/src/artifacts/coverage-jest/NoResultsMessage/index.js.html +1 -1
  181. package/src/artifacts/coverage-jest/NumberField/NumberField.js.html +1 -1
  182. package/src/artifacts/coverage-jest/NumberField/index.html +1 -1
  183. package/src/artifacts/coverage-jest/NumberField/index.js.html +1 -1
  184. package/src/artifacts/coverage-jest/QueryTypedown/QueryTypedown.js.html +1 -1
  185. package/src/artifacts/coverage-jest/QueryTypedown/index.html +1 -1
  186. package/src/artifacts/coverage-jest/QueryTypedown/index.js.html +1 -1
  187. package/src/artifacts/coverage-jest/RefdataButtons/RefdataButtons.js.html +1 -1
  188. package/src/artifacts/coverage-jest/RefdataButtons/index.html +1 -1
  189. package/src/artifacts/coverage-jest/RefdataButtons/index.js.html +1 -1
  190. package/src/artifacts/coverage-jest/ResponsiveButtonGroup/ResponsiveButtonGroup.js.html +1 -1
  191. package/src/artifacts/coverage-jest/ResponsiveButtonGroup/index.html +1 -1
  192. package/src/artifacts/coverage-jest/ResponsiveButtonGroup/index.js.html +1 -1
  193. package/src/artifacts/coverage-jest/ResponsiveButtonGroup/useResponsiveButtonGroupSizing.js.html +1 -1
  194. package/src/artifacts/coverage-jest/RichSelect/RichSelect.js.html +1 -1
  195. package/src/artifacts/coverage-jest/RichSelect/index.html +1 -1
  196. package/src/artifacts/coverage-jest/RichSelect/index.js.html +1 -1
  197. package/src/artifacts/coverage-jest/RichSelect/useSelectedOption.js.html +1 -1
  198. package/src/artifacts/coverage-jest/SASQLookupComponent/SASQLookupComponent.js.html +1 -1
  199. package/src/artifacts/coverage-jest/SASQLookupComponent/TableBody/TableBody.js.html +1 -1
  200. package/src/artifacts/coverage-jest/SASQLookupComponent/TableBody/index.html +1 -1
  201. package/src/artifacts/coverage-jest/SASQLookupComponent/TableBody/index.js.html +1 -1
  202. package/src/artifacts/coverage-jest/SASQLookupComponent/index.html +1 -1
  203. package/src/artifacts/coverage-jest/SASQLookupComponent/index.js.html +1 -1
  204. package/src/artifacts/coverage-jest/SASQRoute/SASQRoute.js.html +1 -1
  205. package/src/artifacts/coverage-jest/SASQRoute/index.html +1 -1
  206. package/src/artifacts/coverage-jest/SASQRoute/index.js.html +1 -1
  207. package/src/artifacts/coverage-jest/SASQViewComponent/SASQViewComponent.js.html +1 -1
  208. package/src/artifacts/coverage-jest/SASQViewComponent/index.html +1 -1
  209. package/src/artifacts/coverage-jest/SASQViewComponent/index.js.html +1 -1
  210. package/src/artifacts/coverage-jest/SearchField/SearchField.js.html +1 -1
  211. package/src/artifacts/coverage-jest/SearchField/index.html +1 -1
  212. package/src/artifacts/coverage-jest/SearchField/index.js.html +1 -1
  213. package/src/artifacts/coverage-jest/SearchKeyControl/SearchKeyControl.js.html +1 -1
  214. package/src/artifacts/coverage-jest/SearchKeyControl/index.html +1 -1
  215. package/src/artifacts/coverage-jest/SearchKeyControl/index.js.html +1 -1
  216. package/src/artifacts/coverage-jest/Settings/EditableRefdataCategoryList/EditableRefdataCategoryList.js.html +1 -1
  217. package/src/artifacts/coverage-jest/Settings/EditableRefdataCategoryList/index.html +1 -1
  218. package/src/artifacts/coverage-jest/Settings/EditableRefdataCategoryList/index.js.html +1 -1
  219. package/src/artifacts/coverage-jest/Settings/EditableRefdataList/EditableRefdataList.js.html +1 -1
  220. package/src/artifacts/coverage-jest/Settings/EditableRefdataList/index.html +1 -1
  221. package/src/artifacts/coverage-jest/Settings/EditableRefdataList/index.js.html +1 -1
  222. package/src/artifacts/coverage-jest/Settings/EditableSettingsList/EditableSettingsList.js.html +1 -1
  223. package/src/artifacts/coverage-jest/Settings/EditableSettingsList/EditableSettingsListFieldArray/EditableSettingsListFieldArray.js.html +1 -1
  224. package/src/artifacts/coverage-jest/Settings/EditableSettingsList/EditableSettingsListFieldArray/index.html +1 -1
  225. package/src/artifacts/coverage-jest/Settings/EditableSettingsList/EditableSettingsListFieldArray/index.js.html +1 -1
  226. package/src/artifacts/coverage-jest/Settings/EditableSettingsList/SettingField/EditSettingValue/EditSettingValue.js.html +1 -1
  227. package/src/artifacts/coverage-jest/Settings/EditableSettingsList/SettingField/EditSettingValue/index.html +1 -1
  228. package/src/artifacts/coverage-jest/Settings/EditableSettingsList/SettingField/EditSettingValue/index.js.html +1 -1
  229. package/src/artifacts/coverage-jest/Settings/EditableSettingsList/SettingField/RenderSettingValue/RenderSettingValue.js.html +1 -1
  230. package/src/artifacts/coverage-jest/Settings/EditableSettingsList/SettingField/RenderSettingValue/index.html +1 -1
  231. package/src/artifacts/coverage-jest/Settings/EditableSettingsList/SettingField/RenderSettingValue/index.js.html +1 -1
  232. package/src/artifacts/coverage-jest/Settings/EditableSettingsList/SettingField/SettingField.js.html +1 -1
  233. package/src/artifacts/coverage-jest/Settings/EditableSettingsList/SettingField/index.html +1 -1
  234. package/src/artifacts/coverage-jest/Settings/EditableSettingsList/SettingField/index.js.html +1 -1
  235. package/src/artifacts/coverage-jest/Settings/EditableSettingsList/index.html +1 -1
  236. package/src/artifacts/coverage-jest/Settings/EditableSettingsList/index.js.html +1 -1
  237. package/src/artifacts/coverage-jest/Settings/RefdataCategoriesSettings/RefdataCategoriesSettings.js.html +1 -1
  238. package/src/artifacts/coverage-jest/Settings/RefdataCategoriesSettings/index.html +1 -1
  239. package/src/artifacts/coverage-jest/Settings/RefdataCategoriesSettings/index.js.html +1 -1
  240. package/src/artifacts/coverage-jest/Settings/SettingPage/SettingPage.js.html +1 -1
  241. package/src/artifacts/coverage-jest/Settings/SettingPage/SettingPagePane/SettingPagePane.js.html +1 -1
  242. package/src/artifacts/coverage-jest/Settings/SettingPage/SettingPagePane/index.html +1 -1
  243. package/src/artifacts/coverage-jest/Settings/SettingPage/SettingPagePane/index.js.html +1 -1
  244. package/src/artifacts/coverage-jest/Settings/SettingPage/index.html +1 -1
  245. package/src/artifacts/coverage-jest/Settings/SettingPage/index.js.html +1 -1
  246. package/src/artifacts/coverage-jest/Settings/SettingsFormContainer/SettingsFormContainer.js.html +1 -1
  247. package/src/artifacts/coverage-jest/Settings/SettingsFormContainer/index.html +1 -1
  248. package/src/artifacts/coverage-jest/Settings/SettingsFormContainer/index.js.html +1 -1
  249. package/src/artifacts/coverage-jest/Settings/StaticSettingsField/StaticSettingsField.js.html +1 -1
  250. package/src/artifacts/coverage-jest/Settings/StaticSettingsField/StaticSettingsFieldComponent/StaticSettingsFieldComponent.js.html +1 -1
  251. package/src/artifacts/coverage-jest/Settings/StaticSettingsField/StaticSettingsFieldComponent/index.html +1 -1
  252. package/src/artifacts/coverage-jest/Settings/StaticSettingsField/StaticSettingsFieldComponent/index.js.html +1 -1
  253. package/src/artifacts/coverage-jest/Settings/StaticSettingsField/index.html +1 -1
  254. package/src/artifacts/coverage-jest/Settings/StaticSettingsField/index.js.html +1 -1
  255. package/src/artifacts/coverage-jest/Settings/constants/index.html +1 -1
  256. package/src/artifacts/coverage-jest/Settings/constants/index.js.html +1 -1
  257. package/src/artifacts/coverage-jest/Settings/constants/queryKeys.js.html +1 -1
  258. package/src/artifacts/coverage-jest/Settings/contexts/SettingsContext.js.html +1 -1
  259. package/src/artifacts/coverage-jest/Settings/contexts/index.html +1 -1
  260. package/src/artifacts/coverage-jest/Settings/contexts/index.js.html +1 -1
  261. package/src/artifacts/coverage-jest/Settings/hooks/index.html +1 -1
  262. package/src/artifacts/coverage-jest/Settings/hooks/index.js.html +1 -1
  263. package/src/artifacts/coverage-jest/Settings/hooks/staticSettingsPages/index.html +1 -1
  264. package/src/artifacts/coverage-jest/Settings/hooks/staticSettingsPages/index.js.html +1 -1
  265. package/src/artifacts/coverage-jest/Settings/hooks/staticSettingsPages/useSettingCallout/index.html +1 -1
  266. package/src/artifacts/coverage-jest/Settings/hooks/staticSettingsPages/useSettingCallout/index.js.html +1 -1
  267. package/src/artifacts/coverage-jest/Settings/hooks/staticSettingsPages/useSettingCallout/useSettingCallout.js.html +1 -1
  268. package/src/artifacts/coverage-jest/Settings/hooks/staticSettingsPages/useSettingsSectionInitalValues/index.html +1 -1
  269. package/src/artifacts/coverage-jest/Settings/hooks/staticSettingsPages/useSettingsSectionInitalValues/index.js.html +1 -1
  270. package/src/artifacts/coverage-jest/Settings/hooks/staticSettingsPages/useSettingsSectionInitalValues/useSettingsSectionInitalValues.js.html +1 -1
  271. package/src/artifacts/coverage-jest/Settings/hooks/staticSettingsPages/useStaticSettingsSection.js.html +1 -1
  272. package/src/artifacts/coverage-jest/Settings/hooks/useAppSettings/index.html +1 -1
  273. package/src/artifacts/coverage-jest/Settings/hooks/useAppSettings/index.js.html +1 -1
  274. package/src/artifacts/coverage-jest/Settings/hooks/useAppSettings/useAppSettings.js.html +1 -1
  275. package/src/artifacts/coverage-jest/Settings/hooks/useSettingSection/index.html +1 -1
  276. package/src/artifacts/coverage-jest/Settings/hooks/useSettingSection/index.js.html +1 -1
  277. package/src/artifacts/coverage-jest/Settings/hooks/useSettingSection/useSettingSection.js.html +1 -1
  278. package/src/artifacts/coverage-jest/Settings/hooks/useSettings/index.html +1 -1
  279. package/src/artifacts/coverage-jest/Settings/hooks/useSettings/index.js.html +1 -1
  280. package/src/artifacts/coverage-jest/Settings/hooks/useSettings/useSettings.js.html +1 -1
  281. package/src/artifacts/coverage-jest/Settings/index.html +1 -1
  282. package/src/artifacts/coverage-jest/Settings/index.js.html +1 -1
  283. package/src/artifacts/coverage-jest/Tags/Tags.js.html +1 -1
  284. package/src/artifacts/coverage-jest/Tags/hooks/index.html +15 -15
  285. package/src/artifacts/coverage-jest/Tags/hooks/index.js.html +1 -1
  286. package/src/artifacts/coverage-jest/Tags/hooks/useTags.js.html +1 -1
  287. package/src/artifacts/coverage-jest/Tags/hooks/useTagsEnabled.js.html +150 -12
  288. package/src/artifacts/coverage-jest/Tags/index.html +1 -1
  289. package/src/artifacts/coverage-jest/Tags/index.js.html +1 -1
  290. package/src/artifacts/coverage-jest/Tags/tagsConfig.js.html +1 -1
  291. package/src/artifacts/coverage-jest/Typedown/Typedown.js.html +219 -60
  292. package/src/artifacts/coverage-jest/Typedown/index.html +15 -15
  293. package/src/artifacts/coverage-jest/Typedown/index.js.html +1 -1
  294. package/src/artifacts/coverage-jest/cobertura-coverage.xml +220 -110
  295. package/src/artifacts/coverage-jest/constants/comparators.js.html +1 -1
  296. package/src/artifacts/coverage-jest/constants/customProperties.js.html +1 -1
  297. package/src/artifacts/coverage-jest/constants/endpoints.js.html +23 -5
  298. package/src/artifacts/coverage-jest/constants/eventCodes.js.html +1 -1
  299. package/src/artifacts/coverage-jest/constants/index.html +5 -5
  300. package/src/artifacts/coverage-jest/constants/pagination.js.html +1 -1
  301. package/src/artifacts/coverage-jest/hooks/index.html +1 -1
  302. package/src/artifacts/coverage-jest/hooks/index.js.html +1 -1
  303. package/src/artifacts/coverage-jest/hooks/intlHooks/index.html +1 -1
  304. package/src/artifacts/coverage-jest/hooks/intlHooks/index.js.html +1 -1
  305. package/src/artifacts/coverage-jest/hooks/intlHooks/useIntlKey/index.html +1 -1
  306. package/src/artifacts/coverage-jest/hooks/intlHooks/useIntlKey/index.js.html +1 -1
  307. package/src/artifacts/coverage-jest/hooks/intlHooks/useIntlKey/useIntlKey.js.html +1 -1
  308. package/src/artifacts/coverage-jest/hooks/intlHooks/useIntlKeyStore/index.html +1 -1
  309. package/src/artifacts/coverage-jest/hooks/intlHooks/useIntlKeyStore/index.js.html +1 -1
  310. package/src/artifacts/coverage-jest/hooks/intlHooks/useIntlKeyStore/useIntlKeyStore.js.html +1 -1
  311. package/src/artifacts/coverage-jest/hooks/intlHooks/useKintIntl/index.html +1 -1
  312. package/src/artifacts/coverage-jest/hooks/intlHooks/useKintIntl/index.js.html +1 -1
  313. package/src/artifacts/coverage-jest/hooks/intlHooks/useKintIntl/useKintIntl.js.html +1 -1
  314. package/src/artifacts/coverage-jest/hooks/typedownHooks/index.html +14 -14
  315. package/src/artifacts/coverage-jest/hooks/typedownHooks/index.js.html +1 -1
  316. package/src/artifacts/coverage-jest/hooks/typedownHooks/useTypedown.js.html +170 -116
  317. package/src/artifacts/coverage-jest/hooks/typedownHooks/useTypedownData.js.html +1 -1
  318. package/src/artifacts/coverage-jest/hooks/typedownHooks/useTypedownToggle.js.html +1 -1
  319. package/src/artifacts/coverage-jest/hooks/useActionListRef.js.html +1 -1
  320. package/src/artifacts/coverage-jest/hooks/useActiveElement.js.html +1 -1
  321. package/src/artifacts/coverage-jest/hooks/useCustomProperties.js.html +1 -1
  322. package/src/artifacts/coverage-jest/hooks/useHelperApp.js.html +1 -1
  323. package/src/artifacts/coverage-jest/hooks/useInvalidateRefdata/index.html +1 -1
  324. package/src/artifacts/coverage-jest/hooks/useInvalidateRefdata/index.js.html +1 -1
  325. package/src/artifacts/coverage-jest/hooks/useInvalidateRefdata/useInvalidateRefdata.js.html +1 -1
  326. package/src/artifacts/coverage-jest/hooks/useKiwtFieldArray.js.html +1 -1
  327. package/src/artifacts/coverage-jest/hooks/useKiwtSASQuery.js.html +1 -1
  328. package/src/artifacts/coverage-jest/hooks/useLocalPageStore.js.html +1 -1
  329. package/src/artifacts/coverage-jest/hooks/useLocalStorageState.js.html +1 -1
  330. package/src/artifacts/coverage-jest/hooks/useModConfigEntries.js.html +1 -1
  331. package/src/artifacts/coverage-jest/hooks/useMutateCustomProperties/index.html +1 -1
  332. package/src/artifacts/coverage-jest/hooks/useMutateCustomProperties/index.js.html +1 -1
  333. package/src/artifacts/coverage-jest/hooks/useMutateCustomProperties/useMutateCustomProperties.js.html +1 -1
  334. package/src/artifacts/coverage-jest/hooks/useMutateGeneric/index.html +1 -1
  335. package/src/artifacts/coverage-jest/hooks/useMutateGeneric/index.js.html +1 -1
  336. package/src/artifacts/coverage-jest/hooks/useMutateGeneric/useMutateGeneric.js.html +1 -1
  337. package/src/artifacts/coverage-jest/hooks/useMutateModConfigEntry.js.html +1 -1
  338. package/src/artifacts/coverage-jest/hooks/useMutateRefdataCategory/index.html +1 -1
  339. package/src/artifacts/coverage-jest/hooks/useMutateRefdataCategory/index.js.html +1 -1
  340. package/src/artifacts/coverage-jest/hooks/useMutateRefdataCategory/useMutateRefdataCategory.js.html +1 -1
  341. package/src/artifacts/coverage-jest/hooks/useMutateRefdataValue/index.html +1 -1
  342. package/src/artifacts/coverage-jest/hooks/useMutateRefdataValue/index.js.html +1 -1
  343. package/src/artifacts/coverage-jest/hooks/useMutateRefdataValue/useMutateRefdataValue.js.html +1 -1
  344. package/src/artifacts/coverage-jest/hooks/usePrevNextPagination.js.html +1 -1
  345. package/src/artifacts/coverage-jest/hooks/useQIndex.js.html +1 -1
  346. package/src/artifacts/coverage-jest/hooks/useRefdata.js.html +1 -1
  347. package/src/artifacts/coverage-jest/hooks/useSASQQueryMeta.js.html +1 -1
  348. package/src/artifacts/coverage-jest/hooks/useStandaloneSASQQueryParameter/index.html +1 -1
  349. package/src/artifacts/coverage-jest/hooks/useStandaloneSASQQueryParameter/index.js.html +1 -1
  350. package/src/artifacts/coverage-jest/hooks/useStandaloneSASQQueryParameter/useStandaloneSASQQueryParameter.js.html +1 -1
  351. package/src/artifacts/coverage-jest/hooks/useTemplates.js.html +1 -1
  352. package/src/artifacts/coverage-jest/index.html +50 -35
  353. package/src/artifacts/coverage-jest/utils/buildUrl.js.html +1 -1
  354. package/src/artifacts/coverage-jest/utils/filterParsers/deparseKiwtQueryFilters.js.html +1 -1
  355. package/src/artifacts/coverage-jest/utils/filterParsers/index.html +1 -1
  356. package/src/artifacts/coverage-jest/utils/filterParsers/index.js.html +1 -1
  357. package/src/artifacts/coverage-jest/utils/filterParsers/parseKiwtQueryFilters.js.html +1 -1
  358. package/src/artifacts/coverage-jest/utils/filterParsers/parseKiwtQueryGroups.js.html +1 -1
  359. package/src/artifacts/coverage-jest/utils/filterParsers/parseKiwtQueryString.js.html +1 -1
  360. package/src/artifacts/coverage-jest/utils/generateKiwtQuery.js.html +1 -1
  361. package/src/artifacts/coverage-jest/utils/generateKiwtQueryParams/generateKiwtQueryParams.js.html +1 -1
  362. package/src/artifacts/coverage-jest/utils/generateKiwtQueryParams/index.html +1 -1
  363. package/src/artifacts/coverage-jest/utils/generateKiwtQueryParams/index.js.html +1 -1
  364. package/src/artifacts/coverage-jest/utils/groupCustomPropertiesByCtx.js.html +1 -1
  365. package/src/artifacts/coverage-jest/utils/highlightString.js.html +1 -1
  366. package/src/artifacts/coverage-jest/utils/index.html +1 -1
  367. package/src/artifacts/coverage-jest/utils/index.js.html +1 -1
  368. package/src/artifacts/coverage-jest/utils/matchString.js.html +1 -1
  369. package/src/artifacts/coverage-jest/utils/modConfigEntriesQueryKey.js.html +1 -1
  370. package/src/artifacts/coverage-jest/utils/parseErrorResponse.js.html +1 -1
  371. package/src/artifacts/coverage-jest/utils/parseModConfigEntry.js.html +1 -1
  372. package/src/artifacts/coverage-jest/utils/refdataOptions.js.html +1 -1
  373. package/src/artifacts/coverage-jest/utils/refdataQueryKey/index.html +1 -1
  374. package/src/artifacts/coverage-jest/utils/refdataQueryKey/index.js.html +1 -1
  375. package/src/artifacts/coverage-jest/utils/refdataQueryKey/refdataQueryKey.js.html +1 -1
  376. package/src/artifacts/coverage-jest/utils/selectorSafe.js.html +1 -1
  377. package/src/artifacts/coverage-jest/utils/sortByLabel.js.html +1 -1
  378. package/src/artifacts/coverage-jest/utils/toCamelCase.js.html +1 -1
  379. package/src/artifacts/coverage-jest/utils/typedownQueryKey.js.html +1 -1
  380. package/src/artifacts/coverage-jest/validators/index.html +1 -1
  381. package/src/artifacts/coverage-jest/validators/index.js.html +1 -1
  382. package/src/artifacts/coverage-jest/validators/validators.js.html +1 -1
  383. package/src/index.js +4 -0
  384. package/src/lib/ButtonTypedown/ButtonTypedown.js +52 -0
  385. package/src/lib/ButtonTypedown/README.md +53 -0
  386. package/src/lib/ButtonTypedown/index.js +1 -0
  387. package/src/lib/Tags/hooks/useTagsEnabled.js +51 -5
  388. package/src/lib/Typedown/README.md +24 -21
  389. package/src/lib/Typedown/Typedown.js +101 -48
  390. package/src/lib/constants/endpoints.js +7 -1
  391. package/src/lib/hooks/typedownHooks/useTypedown.js +105 -87
  392. package/styles/TypeDown.css +4 -0
@@ -16,19 +16,8 @@ var _hooks = require("../hooks");
16
16
  var _TableBody = _interopRequireDefault(require("./TableBody"));
17
17
  var _SearchKeyControl = _interopRequireDefault(require("../SearchKeyControl"));
18
18
  var _jsxRuntime = require("react/jsx-runtime");
19
- const _excluded = ["data"],
20
- _excluded2 = ["filterPaneFirstMenu", "filterPaneLastMenu"],
21
- _excluded3 = ["mainPaneFirstMenu", "mainPaneLastMenu"];
22
19
  function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
23
- function _objectWithoutProperties(e, t) { if (null == e) return {}; var o, r, i = _objectWithoutPropertiesLoose(e, t); if (Object.getOwnPropertySymbols) { var n = Object.getOwnPropertySymbols(e); for (r = 0; r < n.length; r++) o = n[r], -1 === t.indexOf(o) && {}.propertyIsEnumerable.call(e, o) && (i[o] = e[o]); } return i; }
24
- function _objectWithoutPropertiesLoose(r, e) { if (null == r) return {}; var t = {}; for (var n in r) if ({}.hasOwnProperty.call(r, n)) { if (-1 !== e.indexOf(n)) continue; t[n] = r[n]; } return t; }
25
- function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
26
- function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
27
- function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }
28
- function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == typeof i ? i : i + ""; }
29
- function _toPrimitive(t, r) { if ("object" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != typeof i) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
30
20
  const SASQLookupComponent = /*#__PURE__*/(0, _react.forwardRef)((props, ref) => {
31
- var _fetchParameters$SASQ, _fetchParameters$quer;
32
21
  const {
33
22
  children,
34
23
  fetchParameters = {},
@@ -63,7 +52,7 @@ const SASQLookupComponent = /*#__PURE__*/(0, _react.forwardRef)((props, ref) =>
63
52
  ky,
64
53
  queryParams
65
54
  } = _ref2;
66
- return ky.get("".concat(endpoint).concat(queryParams)).json();
55
+ return ky.get(`${endpoint}${queryParams}`).json();
67
56
  },
68
57
  lookupResponseTransform = response => response,
69
58
  // Function to transform the response from the query
@@ -92,7 +81,7 @@ const SASQLookupComponent = /*#__PURE__*/(0, _react.forwardRef)((props, ref) =>
92
81
  queryGetter: sasqPropsQueryGetter,
93
82
  querySetter: sasqPropsQuerySetter,
94
83
  syncToLocation = true
95
- } = sasqProps !== null && sasqProps !== void 0 ? sasqProps : {};
84
+ } = sasqProps ?? {};
96
85
 
97
86
  // We manage our internal state of pagination (URL vs MCL page state) using usePrevNextPagination.
98
87
  // Below the queryParameterGenerator can then choose to use the outputs (namely totalRecords and page) as it sees fit.
@@ -103,7 +92,7 @@ const SASQLookupComponent = /*#__PURE__*/(0, _react.forwardRef)((props, ref) =>
103
92
  } = (0, _hooks.usePrevNextPagination)({
104
93
  count,
105
94
  // totalRecord
106
- pageSize: (_fetchParameters$SASQ = fetchParameters.SASQ_MAP) === null || _fetchParameters$SASQ === void 0 ? void 0 : _fetchParameters$SASQ.perPage,
95
+ pageSize: fetchParameters.SASQ_MAP?.perPage,
107
96
  syncToLocation
108
97
  });
109
98
  const {
@@ -111,70 +100,72 @@ const SASQLookupComponent = /*#__PURE__*/(0, _react.forwardRef)((props, ref) =>
111
100
  queryGetter: kintSASQQueryGetter,
112
101
  querySetter: kintSASQQuerySetter
113
102
  } = (0, _hooks.useKiwtSASQuery)();
114
- const query = (0, _react.useMemo)(() => sasqPropsQuery !== null && sasqPropsQuery !== void 0 ? sasqPropsQuery : kintSASQQuery, [sasqPropsQuery, kintSASQQuery]);
115
- const queryGetter = (0, _react.useMemo)(() => sasqPropsQueryGetter !== null && sasqPropsQueryGetter !== void 0 ? sasqPropsQueryGetter : kintSASQQueryGetter, [sasqPropsQueryGetter, kintSASQQueryGetter]);
116
- const querySetter = (0, _react.useMemo)(() => sasqPropsQuerySetter !== null && sasqPropsQuerySetter !== void 0 ? sasqPropsQuerySetter : kintSASQQuerySetter, [sasqPropsQuerySetter, kintSASQQuerySetter]);
103
+ const query = (0, _react.useMemo)(() => sasqPropsQuery ?? kintSASQQuery, [sasqPropsQuery, kintSASQQuery]);
104
+ const queryGetter = (0, _react.useMemo)(() => sasqPropsQueryGetter ?? kintSASQQueryGetter, [sasqPropsQueryGetter, kintSASQQueryGetter]);
105
+ const querySetter = (0, _react.useMemo)(() => sasqPropsQuerySetter ?? kintSASQQuerySetter, [sasqPropsQuerySetter, kintSASQQuerySetter]);
117
106
  const {
118
107
  0: namespace
119
108
  } = (0, _core.useNamespace)();
120
109
  const ky = (0, _core.useOkapiKy)();
121
- const filterPaneVisibileKey = "".concat(namespace, "-").concat(id, "-filterPaneVisibility");
122
- const queryParams = (0, _react.useMemo)(() => queryParameterGenerator(// With Typescript this would be a type of SASQ_MAP, and so totalRecords is a valid property in our new shape
110
+ const filterPaneVisibileKey = `${namespace}-${id}-filterPaneVisibility`;
111
+ const queryParams = (0, _react.useMemo)(() => queryParameterGenerator(
112
+ // With Typescript this would be a type of SASQ_MAP, and so totalRecords is a valid property in our new shape
123
113
  // In generateKiwtQueryParams we can choose to ignore totalRecords, which while being a valid property is not necessary for KIWT queries
124
- _objectSpread({
114
+ {
125
115
  page: currentPage,
126
- totalRecords: count
127
- }, fetchParameters.SASQ_MAP), query !== null && query !== void 0 ? query : {}), [count, currentPage, fetchParameters.SASQ_MAP, query, queryParameterGenerator]);
116
+ totalRecords: count,
117
+ ...fetchParameters.SASQ_MAP
118
+ }, query ?? {}), [count, currentPage, fetchParameters.SASQ_MAP, query, queryParameterGenerator]);
128
119
  const [filterPaneVisible, setFilterPaneVisible] = (0, _hooks.useLocalStorageState)(filterPaneVisibileKey, true);
129
120
  const toggleFilterPane = () => setFilterPaneVisible(!filterPaneVisible);
130
- const _useQuery = (0, _reactQuery.useQuery)(lookupQueryNamespaceGenerator({
131
- currentPage,
132
- endpoint: fetchParameters.endpoint,
133
- namespace,
134
- id,
135
- query,
136
- queryParams
137
- }), () => {
138
- return lookupQueryPromise({
139
- ky,
140
- queryParams,
141
- endpoint: fetchParameters.endpoint
142
- });
143
- }, _objectSpread(_objectSpread({
144
- enabled: (!!(query !== null && query !== void 0 && query.filters) || !!(query !== null && query !== void 0 && query.query)) && !!currentPage
145
- }, (_fetchParameters$quer = fetchParameters.queryOptions) !== null && _fetchParameters$quer !== void 0 ? _fetchParameters$quer : {}), {}, {
146
- // select is a parameter supported by useQuery to transform the response
147
- // Could be possible to instead pass this down along with the queryOptions
148
- // Additionally this is assuming the lookupResponseTransform is a func as opposed to an object
149
- select: selectData => {
150
- return lookupResponseTransform(selectData);
151
- }
152
- })),
153
- {
154
- data = {}
155
- } = _useQuery,
156
- restOfQueryProps = _objectWithoutProperties(_useQuery, _excluded);
121
+ const {
122
+ data = {},
123
+ ...restOfQueryProps
124
+ } = (0, _reactQuery.useQuery)(lookupQueryNamespaceGenerator({
125
+ currentPage,
126
+ endpoint: fetchParameters.endpoint,
127
+ namespace,
128
+ id,
129
+ query,
130
+ queryParams
131
+ }), () => {
132
+ return lookupQueryPromise({
133
+ ky,
134
+ queryParams,
135
+ endpoint: fetchParameters.endpoint
136
+ });
137
+ }, {
138
+ enabled: (!!query?.filters || !!query?.query) && !!currentPage,
139
+ ...(fetchParameters.queryOptions ?? {}),
140
+ // select is a parameter supported by useQuery to transform the response
141
+ // Could be possible to instead pass this down along with the queryOptions
142
+ // Additionally this is assuming the lookupResponseTransform is a func as opposed to an object
143
+ select: selectData => {
144
+ return lookupResponseTransform(selectData);
145
+ }
146
+ });
157
147
  (0, _react.useEffect)(() => {
158
- if (count !== (data === null || data === void 0 ? void 0 : data.totalRecords)) {
159
- setCount(data === null || data === void 0 ? void 0 : data.totalRecords);
148
+ if (count !== data?.totalRecords) {
149
+ setCount(data?.totalRecords);
160
150
  }
161
151
  }, [count, data.totalRecords]);
162
152
  (0, _react.useImperativeHandle)(ref, () => ({
163
- lookupQueryProps: _objectSpread({
164
- data
165
- }, restOfQueryProps),
153
+ lookupQueryProps: {
154
+ data,
155
+ ...restOfQueryProps
156
+ },
166
157
  queryParams
167
158
  }));
168
- return /*#__PURE__*/(0, _jsxRuntime.jsx)(_smartComponents.SearchAndSortQuery, _objectSpread(_objectSpread(_objectSpread({
159
+ return /*#__PURE__*/(0, _jsxRuntime.jsx)(_smartComponents.SearchAndSortQuery, {
169
160
  initialSearchState: {
170
161
  query: ''
171
162
  },
172
163
  queryGetter: queryGetter,
173
164
  querySetter: querySetter,
174
- syncToLocation: syncToLocation
175
- }, sasqProps), paginationSASQProps), {}, {
165
+ syncToLocation: syncToLocation,
166
+ ...sasqProps,
167
+ ...paginationSASQProps,
176
168
  children: sasqRenderProps => {
177
- var _ref3, _data$total;
178
169
  const {
179
170
  activeFilters,
180
171
  filterChanged,
@@ -188,17 +179,17 @@ const SASQLookupComponent = /*#__PURE__*/(0, _react.forwardRef)((props, ref) =>
188
179
  const searchHandlers = getSearchHandlers();
189
180
  const disableReset = !filterChanged && !searchChanged;
190
181
  const filterCount = activeFilters.string ? activeFilters.string.split(',').length : 0;
191
- const Body = RenderBody !== null && RenderBody !== void 0 ? RenderBody : _TableBody.default;
182
+ const Body = RenderBody ?? _TableBody.default;
192
183
  const {
193
- filterPaneFirstMenu,
194
- filterPaneLastMenu
195
- } = filterPaneProps,
196
- restOfFilterPaneProps = _objectWithoutProperties(filterPaneProps, _excluded2);
184
+ filterPaneFirstMenu,
185
+ filterPaneLastMenu,
186
+ ...restOfFilterPaneProps
187
+ } = filterPaneProps;
197
188
  const {
198
- mainPaneFirstMenu,
199
- mainPaneLastMenu
200
- } = mainPaneProps,
201
- restOfMainPaneProps = _objectWithoutProperties(mainPaneProps, _excluded3);
189
+ mainPaneFirstMenu,
190
+ mainPaneLastMenu,
191
+ ...restOfMainPaneProps
192
+ } = mainPaneProps;
202
193
  const internalStateProps = {
203
194
  activeFilters,
204
195
  filterCount,
@@ -222,14 +213,14 @@ const SASQLookupComponent = /*#__PURE__*/(0, _react.forwardRef)((props, ref) =>
222
213
  }
223
214
  return null;
224
215
  };
225
- return /*#__PURE__*/(0, _jsxRuntime.jsxs)(_smartComponents.PersistedPaneset, _objectSpread(_objectSpread({
216
+ return /*#__PURE__*/(0, _jsxRuntime.jsxs)(_smartComponents.PersistedPaneset, {
226
217
  appId: namespace,
227
- id: "".concat(id, "-paneset")
228
- }, persistedPanesetProps), {}, {
229
- children: [hasFilterPane && filterPaneVisible && /*#__PURE__*/(0, _jsxRuntime.jsx)(_components.Pane, _objectSpread(_objectSpread({
218
+ id: `${id}-paneset`,
219
+ ...persistedPanesetProps,
220
+ children: [hasFilterPane && filterPaneVisible && /*#__PURE__*/(0, _jsxRuntime.jsx)(_components.Pane, {
230
221
  defaultWidth: "20%",
231
222
  firstMenu: filterPaneFirstMenu ? filterPaneFirstMenu(internalStateProps) : null,
232
- id: "".concat(id, "-filter-pane"),
223
+ id: `${id}-filter-pane`,
233
224
  lastMenu: filterPaneLastMenu ? filterPaneLastMenu(internalStateProps) : /*#__PURE__*/(0, _jsxRuntime.jsx)(_components.PaneMenu, {
234
225
  children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_smartComponents.CollapseFilterPaneButton, {
235
226
  onClick: toggleFilterPane
@@ -237,27 +228,27 @@ const SASQLookupComponent = /*#__PURE__*/(0, _react.forwardRef)((props, ref) =>
237
228
  }),
238
229
  paneTitle: /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactIntl.FormattedMessage, {
239
230
  id: "stripes-smart-components.searchAndFilter"
240
- })
241
- }, restOfFilterPaneProps), {}, {
231
+ }),
232
+ ...restOfFilterPaneProps,
242
233
  children: /*#__PURE__*/(0, _jsxRuntime.jsxs)("form", {
243
234
  onSubmit: onSubmitSearch,
244
235
  children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(FilterPaneHeaderComponent, {}), !noSearchField && /*#__PURE__*/(0, _jsxRuntime.jsxs)(_jsxRuntime.Fragment, {
245
- children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_components.SearchField, _objectSpread({
236
+ children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_components.SearchField, {
246
237
  ariaLabel: searchFieldAriaLabel,
247
238
  autoFocus: true,
248
- id: "sasq-search-field-".concat(id),
239
+ id: `sasq-search-field-${id}`,
249
240
  name: "query",
250
241
  onChange: e => {
251
- var _e$target;
252
- if ((_e$target = e.target) !== null && _e$target !== void 0 && _e$target.value) {
242
+ if (e.target?.value) {
253
243
  searchHandlers.query(e); // SASQ needs the whole event here
254
244
  } else {
255
245
  searchHandlers.reset();
256
246
  }
257
247
  },
258
248
  onClear: searchHandlers.reset,
259
- value: searchValue.query
260
- }, searchFieldProps)), (searchableIndexes === null || searchableIndexes === void 0 ? void 0 : searchableIndexes.length) > 0 && /*#__PURE__*/(0, _jsxRuntime.jsx)(_SearchKeyControl.default, {
249
+ value: searchValue.query,
250
+ ...searchFieldProps
251
+ }), searchableIndexes?.length > 0 && /*#__PURE__*/(0, _jsxRuntime.jsx)(_SearchKeyControl.default, {
261
252
  options: searchableIndexes
262
253
  }), /*#__PURE__*/(0, _jsxRuntime.jsx)(_components.Button, {
263
254
  buttonStyle: "primary",
@@ -289,23 +280,23 @@ const SASQLookupComponent = /*#__PURE__*/(0, _react.forwardRef)((props, ref) =>
289
280
  searchValue: searchValue
290
281
  })]
291
282
  })
292
- })), /*#__PURE__*/(0, _jsxRuntime.jsx)(_components.Pane, _objectSpread(_objectSpread({
283
+ }), /*#__PURE__*/(0, _jsxRuntime.jsx)(_components.Pane, {
293
284
  defaultWidth: "fill",
294
285
  firstMenu: renderFirstMenu(),
295
- id: "".concat(id, "-main-pane"),
286
+ id: `${id}-main-pane`,
296
287
  lastMenu: mainPaneLastMenu ? mainPaneLastMenu(internalStateProps) : null,
297
288
  noOverflow: true,
298
289
  padContent: false,
299
290
  paneSub: kintIntl.formatKintMessage({
300
291
  id: 'found#Values',
301
- overrideValue: labelOverrides === null || labelOverrides === void 0 ? void 0 : labelOverrides.foundValues
292
+ overrideValue: labelOverrides?.foundValues
302
293
  },
303
294
  // DEPRECATED data.total should NOT be the first call here, but staying for backwards compatibility. Elsewhere we use data.totalRecords
304
295
  {
305
- total: (_ref3 = (_data$total = data === null || data === void 0 ? void 0 : data.total) !== null && _data$total !== void 0 ? _data$total : data === null || data === void 0 ? void 0 : data.totalRecords) !== null && _ref3 !== void 0 ? _ref3 : 0
306
- })
307
- }, restOfMainPaneProps), {}, {
308
- children: /*#__PURE__*/(0, _jsxRuntime.jsx)(Body, _objectSpread(_objectSpread(_objectSpread(_objectSpread({
296
+ total: data?.total ?? data?.totalRecords ?? 0
297
+ }),
298
+ ...restOfMainPaneProps,
299
+ children: /*#__PURE__*/(0, _jsxRuntime.jsx)(Body, {
309
300
  data: data,
310
301
  filterPaneVisible: filterPaneVisible,
311
302
  intlKey: passedIntlKey,
@@ -314,14 +305,20 @@ const SASQLookupComponent = /*#__PURE__*/(0, _react.forwardRef)((props, ref) =>
314
305
  noResultsProps: noResultsProps,
315
306
  query: query,
316
307
  rowNavigation: rowNavigation,
317
- toggleFilterPane: toggleFilterPane
318
- }, restOfQueryProps), sasqRenderProps), sasqProps), _objectSpread(_objectSpread({}, props), {}, {
319
- mclProps: _objectSpread(_objectSpread({}, paginationMCLProps), mclProps)
320
- })))
321
- })), children]
322
- }));
308
+ toggleFilterPane: toggleFilterPane,
309
+ ...restOfQueryProps,
310
+ ...sasqRenderProps,
311
+ ...sasqProps,
312
+ ...props,
313
+ mclProps: {
314
+ ...paginationMCLProps,
315
+ ...mclProps
316
+ }
317
+ })
318
+ }), children]
319
+ });
323
320
  }
324
- }));
321
+ });
325
322
  });
326
323
  SASQLookupComponent.propTypes = {
327
324
  children: _propTypes.default.oneOfType([_propTypes.default.func, _propTypes.default.node]),
@@ -10,43 +10,34 @@ var _reactRouterDom = require("react-router-dom");
10
10
  var _components = require("@folio/stripes/components");
11
11
  var _NoResultsMessage = _interopRequireDefault(require("../../NoResultsMessage"));
12
12
  var _jsxRuntime = require("react/jsx-runtime");
13
- const _excluded = ["formatter"];
14
13
  function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
15
- function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
16
- function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
17
- function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }
18
- function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == typeof i ? i : i + ""; }
19
- function _toPrimitive(t, r) { if ("object" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != typeof i) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
20
- function _objectWithoutProperties(e, t) { if (null == e) return {}; var o, r, i = _objectWithoutPropertiesLoose(e, t); if (Object.getOwnPropertySymbols) { var n = Object.getOwnPropertySymbols(e); for (r = 0; r < n.length; r++) o = n[r], -1 === t.indexOf(o) && {}.propertyIsEnumerable.call(e, o) && (i[o] = e[o]); } return i; }
21
- function _objectWithoutPropertiesLoose(r, e) { if (null == r) return {}; var t = {}; for (var n in r) if ({}.hasOwnProperty.call(r, n)) { if (-1 !== e.indexOf(n)) continue; t[n] = r[n]; } return t; }
22
14
  const TableBody = _ref => {
23
- var _query$sort, _match$params2;
24
15
  let {
25
- data,
26
- error,
27
- fetchNextPage,
28
- filterPaneVisible,
29
- intlKey: passedIntlKey,
30
- intlNS: passedIntlNS,
31
- isError,
32
- isLoading,
33
- labelOverrides = {},
34
- match,
35
- mclProps: {
36
- formatter = {}
37
- } = {},
38
- noResultsProps = {},
39
- onSort,
40
- path,
41
- resultColumns,
42
- rowNavigation = true,
43
- // Default navigation onRowClick
44
- getNavigationIdentifier = row => row === null || row === void 0 ? void 0 : row.id,
45
- toggleFilterPane,
46
- query
47
- } = _ref,
48
- mclProps = _objectWithoutProperties(_ref.mclProps, _excluded);
49
- const sortOrder = (_query$sort = query.sort) !== null && _query$sort !== void 0 ? _query$sort : '';
16
+ data,
17
+ error,
18
+ fetchNextPage,
19
+ filterPaneVisible,
20
+ intlKey: passedIntlKey,
21
+ intlNS: passedIntlNS,
22
+ isError,
23
+ isLoading,
24
+ labelOverrides = {},
25
+ match,
26
+ mclProps: {
27
+ formatter = {},
28
+ ...mclProps
29
+ } = {},
30
+ noResultsProps = {},
31
+ onSort,
32
+ path,
33
+ resultColumns,
34
+ rowNavigation = true,
35
+ // Default navigation onRowClick
36
+ getNavigationIdentifier = row => row?.id,
37
+ toggleFilterPane,
38
+ query
39
+ } = _ref;
40
+ const sortOrder = query.sort ?? '';
50
41
  const history = (0, _reactRouterDom.useHistory)();
51
42
  const location = (0, _reactRouterDom.useLocation)();
52
43
  const onNeedMoreData = (_askAmount, index) => {
@@ -61,9 +52,9 @@ const TableBody = _ref => {
61
52
  // Build the list of visible columns
62
53
  const visibleColumns = resultColumns.map(e => e.propertyPath);
63
54
  const getRowUrl = (0, _react.useCallback)(rowData => {
64
- const baseUrl = "".concat(path, "/").concat(getNavigationIdentifier(rowData));
55
+ const baseUrl = `${path}/${getNavigationIdentifier(rowData)}`;
65
56
  return {
66
- url: "".concat(baseUrl).concat(location === null || location === void 0 ? void 0 : location.search),
57
+ url: `${baseUrl}${location?.search}`,
67
58
  path,
68
59
  baseUrl,
69
60
  location
@@ -72,9 +63,10 @@ const TableBody = _ref => {
72
63
  const getEnhancedFormatter = (0, _react.useCallback)(() => {
73
64
  const enhancedFormatter = {};
74
65
  for (const [key, value] of Object.entries(formatter)) {
75
- enhancedFormatter[key] = item => value(_objectSpread(_objectSpread({}, item), {}, {
66
+ enhancedFormatter[key] = item => value({
67
+ ...item,
76
68
  defaultRowUrl: getRowUrl(item)
77
- }));
69
+ });
78
70
  }
79
71
  return enhancedFormatter;
80
72
  }, [formatter, getRowUrl]);
@@ -87,25 +79,21 @@ const TableBody = _ref => {
87
79
  return null;
88
80
  }, [getRowUrl, history, rowNavigation]);
89
81
  const isSelected = (0, _react.useCallback)(_ref2 => {
90
- var _match$params;
91
82
  let {
92
83
  item
93
84
  } = _ref2;
94
- return getNavigationIdentifier(item) === (match === null || match === void 0 || (_match$params = match.params) === null || _match$params === void 0 ? void 0 : _match$params.id);
95
- }, [getNavigationIdentifier, match === null || match === void 0 || (_match$params2 = match.params) === null || _match$params2 === void 0 ? void 0 : _match$params2.id]);
96
- const NoResultsComponent = (0, _react.useMemo)(() => {
97
- var _noResultsProps$compo;
98
- return (_noResultsProps$compo = noResultsProps === null || noResultsProps === void 0 ? void 0 : noResultsProps.component) !== null && _noResultsProps$compo !== void 0 ? _noResultsProps$compo : _NoResultsMessage.default;
99
- }, [noResultsProps === null || noResultsProps === void 0 ? void 0 : noResultsProps.component]);
100
- return /*#__PURE__*/(0, _jsxRuntime.jsx)(_components.MultiColumnList, _objectSpread({
85
+ return getNavigationIdentifier(item) === match?.params?.id;
86
+ }, [getNavigationIdentifier, match?.params?.id]);
87
+ const NoResultsComponent = (0, _react.useMemo)(() => noResultsProps?.component ?? _NoResultsMessage.default, [noResultsProps?.component]);
88
+ return /*#__PURE__*/(0, _jsxRuntime.jsx)(_components.MultiColumnList, {
101
89
  autosize: true,
102
90
  columnMapping: columnMapping,
103
- contentData: data === null || data === void 0 ? void 0 : data.results,
91
+ contentData: data?.results,
104
92
  formatter: getEnhancedFormatter() // Pass enhanced formatter
105
93
  ,
106
94
  hasMargin: true,
107
95
  interactive: rowNavigation,
108
- isEmptyMessage: /*#__PURE__*/(0, _jsxRuntime.jsx)(NoResultsComponent, _objectSpread({}, _objectSpread({
96
+ isEmptyMessage: /*#__PURE__*/(0, _jsxRuntime.jsx)(NoResultsComponent, {
109
97
  error,
110
98
  filterPaneIsVisible: filterPaneVisible,
111
99
  intlKey: passedIntlKey,
@@ -114,8 +102,9 @@ const TableBody = _ref => {
114
102
  isLoading,
115
103
  labelOverrides,
116
104
  searchTerm: query.query,
117
- toggleFilterPane
118
- }, noResultsProps))),
105
+ toggleFilterPane,
106
+ ...noResultsProps // Anything passed in directly takes precedence
107
+ }),
119
108
  isSelected: isSelected,
120
109
  onHeaderClick: onSort,
121
110
  onNeedMoreData: onNeedMoreData,
@@ -124,8 +113,9 @@ const TableBody = _ref => {
124
113
  sortDirection: sortOrder.startsWith('-') ? 'descending' : 'ascending',
125
114
  sortOrder: sortOrder.replace(/^-/, '').replace(/,.*/, ''),
126
115
  totalCount: data.totalRecords,
127
- visibleColumns: visibleColumns
128
- }, mclProps));
116
+ visibleColumns: visibleColumns,
117
+ ...mclProps
118
+ });
129
119
  };
130
120
  TableBody.propTypes = {
131
121
  data: _propTypes.default.shape({
@@ -10,33 +10,28 @@ var _reactRouterDom = require("react-router-dom");
10
10
  var _SASQLookupComponent = require("../SASQLookupComponent");
11
11
  var _SASQViewComponent = _interopRequireDefault(require("../SASQViewComponent"));
12
12
  var _jsxRuntime = require("react/jsx-runtime");
13
- const _excluded = ["children", "fetchParameters", "getPathLookup", "getPathView", "SASQLookupComponent", "path", "SASQViewComponent"];
14
13
  function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
15
- function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
16
- function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
17
- function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }
18
- function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == typeof i ? i : i + ""; }
19
- function _toPrimitive(t, r) { if ("object" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != typeof i) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
20
- function _objectWithoutProperties(e, t) { if (null == e) return {}; var o, r, i = _objectWithoutPropertiesLoose(e, t); if (Object.getOwnPropertySymbols) { var n = Object.getOwnPropertySymbols(e); for (r = 0; r < n.length; r++) o = n[r], -1 === t.indexOf(o) && {}.propertyIsEnumerable.call(e, o) && (i[o] = e[o]); } return i; }
21
- function _objectWithoutPropertiesLoose(r, e) { if (null == r) return {}; var t = {}; for (var n in r) if ({}.hasOwnProperty.call(r, n)) { if (-1 !== e.indexOf(n)) continue; t[n] = r[n]; } return t; }
22
14
  const SASQRoute = /*#__PURE__*/(0, _react.forwardRef)((_ref, ref) => {
23
15
  let {
24
- children,
25
- fetchParameters,
26
- getPathLookup = path => "".concat(path, "/:id?"),
27
- getPathView = path => "".concat(path, "/:id"),
28
- SASQLookupComponent: RouteLookupComponent = _SASQLookupComponent.SASQLookupComponent,
29
- path,
30
- SASQViewComponent: RouteViewComponent = _SASQViewComponent.default
31
- } = _ref,
32
- props = _objectWithoutProperties(_ref, _excluded);
16
+ children,
17
+ fetchParameters,
18
+ getPathLookup = path => `${path}/:id?`,
19
+ getPathView = path => `${path}/:id`,
20
+ SASQLookupComponent: RouteLookupComponent = _SASQLookupComponent.SASQLookupComponent,
21
+ path,
22
+ SASQViewComponent: RouteViewComponent = _SASQViewComponent.default,
23
+ ...props
24
+ } = _ref;
33
25
  // Grab the SASQ_MAP and tweak it
34
26
  const {
35
27
  SASQ_MAP = {}
36
28
  } = fetchParameters;
37
29
  const lookupRef = (0, _react.useRef)();
38
30
  const viewRef = (0, _react.useRef)();
39
- (0, _react.useImperativeHandle)(ref, () => _objectSpread(_objectSpread({}, lookupRef.current), viewRef.current));
31
+ (0, _react.useImperativeHandle)(ref, () => ({
32
+ ...lookupRef.current,
33
+ ...viewRef.current
34
+ }));
40
35
  if (!SASQ_MAP.perPage) {
41
36
  SASQ_MAP.perPage = 25;
42
37
  }
@@ -47,25 +42,26 @@ const SASQRoute = /*#__PURE__*/(0, _react.forwardRef)((_ref, ref) => {
47
42
  return /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactRouterDom.Route, {
48
43
  path: getPathLookup(path),
49
44
  render: routeProps => {
50
- return /*#__PURE__*/(0, _jsxRuntime.jsx)(RouteLookupComponent, _objectSpread(_objectSpread(_objectSpread({
51
- ref: lookupRef
52
- }, routeProps), {}, {
45
+ return /*#__PURE__*/(0, _jsxRuntime.jsx)(RouteLookupComponent, {
46
+ ref: lookupRef,
47
+ ...routeProps,
53
48
  fetchParameters: fetchParameters,
54
- path: path
55
- }, props), {}, {
49
+ path: path,
50
+ ...props,
56
51
  children: /*#__PURE__*/(0, _jsxRuntime.jsxs)(_reactRouterDom.Switch, {
57
52
  children: [children, /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactRouterDom.Route, {
58
53
  path: getPathView(path),
59
- render: innerProps => /*#__PURE__*/(0, _jsxRuntime.jsx)(RouteViewComponent, _objectSpread(_objectSpread({
60
- ref: viewRef
61
- }, innerProps), {}, {
54
+ render: innerProps => /*#__PURE__*/(0, _jsxRuntime.jsx)(RouteViewComponent, {
55
+ ref: viewRef,
56
+ ...innerProps,
62
57
  fetchParameters: fetchParameters,
63
58
  path: path,
64
- ViewComponent: props.ViewComponent
65
- }, props))
59
+ ViewComponent: props.ViewComponent,
60
+ ...props
61
+ })
66
62
  })]
67
63
  })
68
- }));
64
+ });
69
65
  }
70
66
  });
71
67
  });