@k-int/stripes-kint-components 5.32.0 → 5.33.1

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 (420) hide show
  1. package/CHANGELOG.md +14 -0
  2. package/LICENSE +1 -1
  3. package/es/__mocks__/@folio/stripes/components.js +3 -7
  4. package/es/__mocks__/@folio/stripes/core.js +4 -6
  5. package/es/__mocks__/@folio/stripes/smart-components.js +4 -6
  6. package/es/__mocks__/react-query.js +4 -6
  7. package/es/__mocks__/react-router-dom.js +6 -6
  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 +25 -33
  11. package/es/lib/ComboButton/ComboButton.js +42 -47
  12. package/es/lib/CustomProperties/Config/CustomPropertiesLookup.js +11 -17
  13. package/es/lib/CustomProperties/Config/CustomPropertiesSettings.js +42 -46
  14. package/es/lib/CustomProperties/Config/CustomPropertyForm.js +58 -58
  15. package/es/lib/CustomProperties/Config/CustomPropertyForm.test.js +4 -8
  16. package/es/lib/CustomProperties/Config/CustomPropertyView.js +32 -33
  17. package/es/lib/CustomProperties/Config/CustomPropertyView.test.js +1 -1
  18. package/es/lib/CustomProperties/Edit/CustomPropertiesEdit.js +1 -1
  19. package/es/lib/CustomProperties/Edit/CustomPropertiesEditCtx.js +3 -3
  20. package/es/lib/CustomProperties/Edit/CustomPropertiesListField.js +29 -35
  21. package/es/lib/CustomProperties/Edit/CustomPropertyField.js +61 -59
  22. package/es/lib/CustomProperties/Edit/CustomPropertyField.test.js +20 -20
  23. package/es/lib/CustomProperties/Edit/CustomPropertyFormCard.js +2 -2
  24. package/es/lib/CustomProperties/Edit/CustomPropertyFormCard.test.js +1 -1
  25. package/es/lib/CustomProperties/Edit/testResources.js +11 -12
  26. package/es/lib/CustomProperties/Filter/CustomPropertiesFilter.js +22 -33
  27. package/es/lib/CustomProperties/Filter/CustomPropertiesFilterField.js +24 -37
  28. package/es/lib/CustomProperties/Filter/CustomPropertiesFilterField.test.js +1 -1
  29. package/es/lib/CustomProperties/Filter/CustomPropertiesFilterFieldArray.js +6 -6
  30. package/es/lib/CustomProperties/Filter/CustomPropertiesFilterForm.js +3 -6
  31. package/es/lib/CustomProperties/Filter/CustomPropertiesFilterForm.test.js +4 -8
  32. package/es/lib/CustomProperties/Filter/CustomPropertiesRule.js +15 -19
  33. package/es/lib/CustomProperties/Filter/testResources.js +1 -2
  34. package/es/lib/CustomProperties/Filter/useParseActiveFilterStrings.js +1 -2
  35. package/es/lib/CustomProperties/View/CustomPropertiesView.js +1 -1
  36. package/es/lib/CustomProperties/View/CustomPropertiesViewCtx.js +17 -25
  37. package/es/lib/CustomProperties/View/CustomPropertiesViewCtx.test.js +3 -6
  38. package/es/lib/CustomProperties/View/CustomPropertyCard.js +7 -11
  39. package/es/lib/CycleButton/CycleButton.js +9 -17
  40. package/es/lib/FormModal/FormModal.js +24 -32
  41. package/es/lib/FormattedKintMessage/FormattedKintMessage.js +23 -30
  42. package/es/lib/IconSelect/IconSelect.js +22 -32
  43. package/es/lib/NoResultsMessage/NoResultsMessage.js +4 -5
  44. package/es/lib/NumberField/NumberField.js +17 -25
  45. package/es/lib/NumberField/NumberField.test.js +6 -7
  46. package/es/lib/QueryTypedown/QueryTypedown.js +8 -15
  47. package/es/lib/RefdataButtons/RefdataButtons.js +6 -9
  48. package/es/lib/ResponsiveButtonGroup/ResponsiveButtonGroup.js +48 -60
  49. package/es/lib/ResponsiveButtonGroup/useResponsiveButtonGroupSizing.js +5 -6
  50. package/es/lib/RichSelect/RichSelect.js +31 -36
  51. package/es/lib/RichSelect/useSelectedOption.js +1 -2
  52. package/es/lib/SASQLookupComponent/SASQLookupComponent.js +91 -94
  53. package/es/lib/SASQLookupComponent/SASQLookupComponent.test.js +44 -36
  54. package/es/lib/SASQLookupComponent/TableBody/TableBody.js +42 -53
  55. package/es/lib/SASQLookupComponent/TableBody/TableBody.test.js +19 -23
  56. package/es/lib/SASQRoute/SASQRoute.js +25 -29
  57. package/es/lib/SASQRoute/SASQRoute.test.js +11 -13
  58. package/es/lib/SASQViewComponent/SASQViewComponent.js +68 -76
  59. package/es/lib/SASQViewComponent/SASQViewComponent.test.js +4 -8
  60. package/es/lib/SearchField/SearchField.js +7 -13
  61. package/es/lib/SearchKeyControl/SearchKeyControl.js +8 -13
  62. package/es/lib/SearchKeyControl/SearchKeyControl.test.js +2 -6
  63. package/es/lib/Settings/EditableRefdataCategoryList/EditableRefdataCategoryList.js +30 -46
  64. package/es/lib/Settings/EditableRefdataList/EditableRefdataList.js +33 -43
  65. package/es/lib/Settings/EditableSettingsList/EditableSettingsListFieldArray/EditableSettingsListFieldArray.js +7 -11
  66. package/es/lib/Settings/EditableSettingsList/SettingField/EditSettingValue/EditSettingValue.js +13 -20
  67. package/es/lib/Settings/EditableSettingsList/SettingField/RenderSettingValue/RenderSettingValue.js +10 -12
  68. package/es/lib/Settings/EditableSettingsList/SettingField/SettingField.js +10 -15
  69. package/es/lib/Settings/EditableSettingsList/SettingField/SettingField.test.js +3 -3
  70. package/es/lib/Settings/RefdataCategoriesSettings/RefdataCategoriesSettings.js +19 -26
  71. package/es/lib/Settings/SettingPage/SettingPagePane/SettingPagePane.js +2 -2
  72. package/es/lib/Settings/Settings/Settings.js +31 -13
  73. package/es/lib/Settings/SettingsFormContainer/SettingsFormContainer.js +30 -35
  74. package/es/lib/Settings/StaticSettingsField/StaticSettingsField.js +5 -8
  75. package/es/lib/Settings/StaticSettingsField/StaticSettingsFieldComponent/StaticSettingsFieldComponent.js +18 -22
  76. package/es/lib/Settings/hooks/staticSettingsPages/useSettingCallout/useSettingCallout.js +2 -2
  77. package/es/lib/Settings/hooks/staticSettingsPages/useSettingsSectionInitalValues/useSettingsSectionInitalValues.js +1 -1
  78. package/es/lib/Settings/hooks/staticSettingsPages/useStaticSettingsSection.js +3 -7
  79. package/es/lib/Settings/hooks/useAppSettings/useAppSettings.js +7 -11
  80. package/es/lib/Settings/hooks/useSettingSection/useSettingSection.js +16 -22
  81. package/es/lib/Settings/hooks/useSettings/useSettings.js +104 -88
  82. package/es/lib/Settings/index.js +8 -0
  83. package/es/lib/Tags/Tags.js +5 -8
  84. package/es/lib/Tags/hooks/useTags.js +1 -1
  85. package/es/lib/Tags/hooks/useTagsEnabled.js +2 -3
  86. package/es/lib/Tags/tagsConfig.js +1 -1
  87. package/es/lib/Typedown/Typedown.js +21 -28
  88. package/es/lib/hooks/__mocks__/index.js +3 -7
  89. package/es/lib/hooks/intlHooks/useIntlKeyStore/useIntlKeyStore.js +20 -26
  90. package/es/lib/hooks/intlHooks/useKintIntl/useKintIntl.js +24 -34
  91. package/es/lib/hooks/typedownHooks/useTypedown.js +11 -12
  92. package/es/lib/hooks/typedownHooks/useTypedownToggle.js +2 -2
  93. package/es/lib/hooks/useActionListRef.js +1 -1
  94. package/es/lib/hooks/useActiveElement.js +1 -1
  95. package/es/lib/hooks/useCustomProperties.js +6 -10
  96. package/es/lib/hooks/useHelperApp.js +13 -16
  97. package/es/lib/hooks/useKiwtFieldArray.js +7 -8
  98. package/es/lib/hooks/useKiwtSASQuery.js +15 -19
  99. package/es/lib/hooks/useLocalPageStore.js +7 -10
  100. package/es/lib/hooks/useModConfigEntries.js +2 -2
  101. package/es/lib/hooks/useMutateCustomProperties/useMutateCustomProperties.js +10 -17
  102. package/es/lib/hooks/useMutateGeneric/useMutateGeneric.js +2 -2
  103. package/es/lib/hooks/useMutateModConfigEntry.js +2 -2
  104. package/es/lib/hooks/useMutateRefdataCategory/useMutateRefdataCategory.js +15 -21
  105. package/es/lib/hooks/useMutateRefdataValue/useMutateRefdataValue.js +16 -23
  106. package/es/lib/hooks/usePrevNextPagination.js +17 -19
  107. package/es/lib/hooks/useQIndex.js +11 -14
  108. package/es/lib/hooks/useRefdata.js +3 -3
  109. package/es/lib/hooks/useStandaloneSASQQueryParameter/useStandaloneSASQQueryParameter.js +9 -13
  110. package/es/lib/hooks/useTemplates.js +4 -4
  111. package/es/lib/utils/buildUrl.js +2 -3
  112. package/es/lib/utils/filterParsers/deparseKiwtQueryFilters.js +5 -5
  113. package/es/lib/utils/filterParsers/parseKiwtQueryFilters.js +2 -2
  114. package/es/lib/utils/filterParsers/parseKiwtQueryGroups.js +4 -5
  115. package/es/lib/utils/filterParsers/parseKiwtQueryString.js +1 -1
  116. package/es/lib/utils/generateKiwtQueryParams/generateKiwtQueryParams.js +94 -107
  117. package/es/lib/utils/groupCustomPropertiesByCtx.js +5 -9
  118. package/es/lib/utils/index.js +34 -13
  119. package/es/lib/utils/matchString/index.js +13 -0
  120. package/es/lib/utils/{matchString.js → matchString/matchString.js} +8 -9
  121. package/es/lib/utils/matchString/matchString.test.js +40 -0
  122. package/es/lib/utils/parseErrorResponse.js +3 -7
  123. package/es/lib/utils/selectorSafe.js +2 -3
  124. package/es/lib/utils/sortByLabel.js +2 -3
  125. package/es/lib/utils/stringStyling/boldString.js +30 -0
  126. package/es/lib/utils/stringStyling/boldString.test.js +47 -0
  127. package/es/lib/utils/stringStyling/highlightString.js +30 -0
  128. package/es/lib/utils/stringStyling/highlightString.test.js +51 -0
  129. package/es/lib/utils/stringStyling/index.js +20 -0
  130. package/es/lib/validators/validators.js +6 -9
  131. package/package.json +1 -1
  132. package/src/artifacts/coverage-jest/ActionList/ActionList.js.html +1 -1
  133. package/src/artifacts/coverage-jest/ActionList/ActionListFieldArray.js.html +1 -1
  134. package/src/artifacts/coverage-jest/ActionList/index.html +1 -1
  135. package/src/artifacts/coverage-jest/ActionList/index.js.html +1 -1
  136. package/src/artifacts/coverage-jest/ButtonTypedown/ButtonTypedown.js.html +1 -1
  137. package/src/artifacts/coverage-jest/ButtonTypedown/index.html +1 -1
  138. package/src/artifacts/coverage-jest/ButtonTypedown/index.js.html +1 -1
  139. package/src/artifacts/coverage-jest/ComboButton/ComboButton.js.html +1 -1
  140. package/src/artifacts/coverage-jest/ComboButton/index.html +1 -1
  141. package/src/artifacts/coverage-jest/ComboButton/index.js.html +1 -1
  142. package/src/artifacts/coverage-jest/CustomProperties/Config/CustomPropertiesLookup.js.html +1 -1
  143. package/src/artifacts/coverage-jest/CustomProperties/Config/CustomPropertiesSettings.js.html +1 -1
  144. package/src/artifacts/coverage-jest/CustomProperties/Config/CustomPropertyForm.js.html +1 -1
  145. package/src/artifacts/coverage-jest/CustomProperties/Config/CustomPropertyView.js.html +1 -1
  146. package/src/artifacts/coverage-jest/CustomProperties/Config/index.html +1 -1
  147. package/src/artifacts/coverage-jest/CustomProperties/Config/index.js.html +1 -1
  148. package/src/artifacts/coverage-jest/CustomProperties/Edit/CustomPropertiesEdit.js.html +1 -1
  149. package/src/artifacts/coverage-jest/CustomProperties/Edit/CustomPropertiesEditCtx.js.html +1 -1
  150. package/src/artifacts/coverage-jest/CustomProperties/Edit/CustomPropertiesListField.js.html +1 -1
  151. package/src/artifacts/coverage-jest/CustomProperties/Edit/CustomPropertyField.js.html +1 -1
  152. package/src/artifacts/coverage-jest/CustomProperties/Edit/CustomPropertyFormCard.js.html +1 -1
  153. package/src/artifacts/coverage-jest/CustomProperties/Edit/index.html +1 -1
  154. package/src/artifacts/coverage-jest/CustomProperties/Edit/index.js.html +1 -1
  155. package/src/artifacts/coverage-jest/CustomProperties/Edit/testResources.js.html +1 -1
  156. package/src/artifacts/coverage-jest/CustomProperties/Filter/CustomPropertiesFilter.js.html +1 -1
  157. package/src/artifacts/coverage-jest/CustomProperties/Filter/CustomPropertiesFilterField.js.html +1 -1
  158. package/src/artifacts/coverage-jest/CustomProperties/Filter/CustomPropertiesFilterFieldArray.js.html +1 -1
  159. package/src/artifacts/coverage-jest/CustomProperties/Filter/CustomPropertiesFilterForm.js.html +1 -1
  160. package/src/artifacts/coverage-jest/CustomProperties/Filter/CustomPropertiesRule.js.html +1 -1
  161. package/src/artifacts/coverage-jest/CustomProperties/Filter/index.html +1 -1
  162. package/src/artifacts/coverage-jest/CustomProperties/Filter/index.js.html +1 -1
  163. package/src/artifacts/coverage-jest/CustomProperties/Filter/testResources.js.html +1 -1
  164. package/src/artifacts/coverage-jest/CustomProperties/Filter/useOperators.js.html +1 -1
  165. package/src/artifacts/coverage-jest/CustomProperties/Filter/useParseActiveFilterStrings.js.html +1 -1
  166. package/src/artifacts/coverage-jest/CustomProperties/Filter/useValueProps.js.html +1 -1
  167. package/src/artifacts/coverage-jest/CustomProperties/View/CustomPropertiesView.js.html +1 -1
  168. package/src/artifacts/coverage-jest/CustomProperties/View/CustomPropertiesViewCtx.js.html +1 -1
  169. package/src/artifacts/coverage-jest/CustomProperties/View/CustomPropertyCard.js.html +1 -1
  170. package/src/artifacts/coverage-jest/CustomProperties/View/index.html +1 -1
  171. package/src/artifacts/coverage-jest/CustomProperties/View/index.js.html +1 -1
  172. package/src/artifacts/coverage-jest/CustomProperties/View/testResources.js.html +1 -1
  173. package/src/artifacts/coverage-jest/CustomProperties/index.html +1 -1
  174. package/src/artifacts/coverage-jest/CustomProperties/index.js.html +1 -1
  175. package/src/artifacts/coverage-jest/CycleButton/CycleButton.js.html +1 -1
  176. package/src/artifacts/coverage-jest/CycleButton/index.html +1 -1
  177. package/src/artifacts/coverage-jest/CycleButton/index.js.html +1 -1
  178. package/src/artifacts/coverage-jest/FieldLabel/FieldLabel.js.html +1 -1
  179. package/src/artifacts/coverage-jest/FieldLabel/index.html +1 -1
  180. package/src/artifacts/coverage-jest/FieldLabel/index.js.html +1 -1
  181. package/src/artifacts/coverage-jest/FormModal/FormModal.js.html +1 -1
  182. package/src/artifacts/coverage-jest/FormModal/index.html +1 -1
  183. package/src/artifacts/coverage-jest/FormModal/index.js.html +1 -1
  184. package/src/artifacts/coverage-jest/FormattedKintMessage/FormattedKintMessage.js.html +1 -1
  185. package/src/artifacts/coverage-jest/FormattedKintMessage/index.html +1 -1
  186. package/src/artifacts/coverage-jest/FormattedKintMessage/index.js.html +1 -1
  187. package/src/artifacts/coverage-jest/IconSelect/IconSelect.js.html +1 -1
  188. package/src/artifacts/coverage-jest/IconSelect/index.html +1 -1
  189. package/src/artifacts/coverage-jest/IconSelect/index.js.html +1 -1
  190. package/src/artifacts/coverage-jest/NoResultsMessage/NoResultsMessage.js.html +1 -1
  191. package/src/artifacts/coverage-jest/NoResultsMessage/index.html +1 -1
  192. package/src/artifacts/coverage-jest/NoResultsMessage/index.js.html +1 -1
  193. package/src/artifacts/coverage-jest/NumberField/NumberField.js.html +15 -15
  194. package/src/artifacts/coverage-jest/NumberField/index.html +1 -1
  195. package/src/artifacts/coverage-jest/NumberField/index.js.html +1 -1
  196. package/src/artifacts/coverage-jest/QueryTypedown/QueryTypedown.js.html +1 -1
  197. package/src/artifacts/coverage-jest/QueryTypedown/index.html +1 -1
  198. package/src/artifacts/coverage-jest/QueryTypedown/index.js.html +1 -1
  199. package/src/artifacts/coverage-jest/RefdataButtons/RefdataButtons.js.html +1 -1
  200. package/src/artifacts/coverage-jest/RefdataButtons/index.html +1 -1
  201. package/src/artifacts/coverage-jest/RefdataButtons/index.js.html +1 -1
  202. package/src/artifacts/coverage-jest/ResponsiveButtonGroup/ResponsiveButtonGroup.js.html +1 -1
  203. package/src/artifacts/coverage-jest/ResponsiveButtonGroup/index.html +1 -1
  204. package/src/artifacts/coverage-jest/ResponsiveButtonGroup/index.js.html +1 -1
  205. package/src/artifacts/coverage-jest/ResponsiveButtonGroup/useResponsiveButtonGroupSizing.js.html +1 -1
  206. package/src/artifacts/coverage-jest/RichSelect/RichSelect.js.html +1 -1
  207. package/src/artifacts/coverage-jest/RichSelect/index.html +1 -1
  208. package/src/artifacts/coverage-jest/RichSelect/index.js.html +1 -1
  209. package/src/artifacts/coverage-jest/RichSelect/useSelectedOption.js.html +1 -1
  210. package/src/artifacts/coverage-jest/SASQLookupComponent/SASQLookupComponent.js.html +31 -31
  211. package/src/artifacts/coverage-jest/SASQLookupComponent/TableBody/TableBody.js.html +1 -1
  212. package/src/artifacts/coverage-jest/SASQLookupComponent/TableBody/index.html +1 -1
  213. package/src/artifacts/coverage-jest/SASQLookupComponent/TableBody/index.js.html +1 -1
  214. package/src/artifacts/coverage-jest/SASQLookupComponent/index.html +1 -1
  215. package/src/artifacts/coverage-jest/SASQLookupComponent/index.js.html +1 -1
  216. package/src/artifacts/coverage-jest/SASQRoute/SASQRoute.js.html +1 -1
  217. package/src/artifacts/coverage-jest/SASQRoute/index.html +1 -1
  218. package/src/artifacts/coverage-jest/SASQRoute/index.js.html +1 -1
  219. package/src/artifacts/coverage-jest/SASQViewComponent/SASQViewComponent.js.html +1 -1
  220. package/src/artifacts/coverage-jest/SASQViewComponent/index.html +1 -1
  221. package/src/artifacts/coverage-jest/SASQViewComponent/index.js.html +1 -1
  222. package/src/artifacts/coverage-jest/SearchField/SearchField.js.html +1 -1
  223. package/src/artifacts/coverage-jest/SearchField/index.html +1 -1
  224. package/src/artifacts/coverage-jest/SearchField/index.js.html +1 -1
  225. package/src/artifacts/coverage-jest/SearchKeyControl/SearchKeyControl.js.html +1 -1
  226. package/src/artifacts/coverage-jest/SearchKeyControl/index.html +1 -1
  227. package/src/artifacts/coverage-jest/SearchKeyControl/index.js.html +1 -1
  228. package/src/artifacts/coverage-jest/Settings/EditableRefdataCategoryList/EditableRefdataCategoryList.js.html +1 -1
  229. package/src/artifacts/coverage-jest/Settings/EditableRefdataCategoryList/index.html +1 -1
  230. package/src/artifacts/coverage-jest/Settings/EditableRefdataCategoryList/index.js.html +1 -1
  231. package/src/artifacts/coverage-jest/Settings/EditableRefdataList/EditableRefdataList.js.html +1 -1
  232. package/src/artifacts/coverage-jest/Settings/EditableRefdataList/index.html +1 -1
  233. package/src/artifacts/coverage-jest/Settings/EditableRefdataList/index.js.html +1 -1
  234. package/src/artifacts/coverage-jest/Settings/EditableSettingsList/EditableSettingsList.js.html +1 -1
  235. package/src/artifacts/coverage-jest/Settings/EditableSettingsList/EditableSettingsListFieldArray/EditableSettingsListFieldArray.js.html +1 -1
  236. package/src/artifacts/coverage-jest/Settings/EditableSettingsList/EditableSettingsListFieldArray/index.html +1 -1
  237. package/src/artifacts/coverage-jest/Settings/EditableSettingsList/EditableSettingsListFieldArray/index.js.html +1 -1
  238. package/src/artifacts/coverage-jest/Settings/EditableSettingsList/SettingField/EditSettingValue/EditSettingValue.js.html +1 -1
  239. package/src/artifacts/coverage-jest/Settings/EditableSettingsList/SettingField/EditSettingValue/index.html +1 -1
  240. package/src/artifacts/coverage-jest/Settings/EditableSettingsList/SettingField/EditSettingValue/index.js.html +1 -1
  241. package/src/artifacts/coverage-jest/Settings/EditableSettingsList/SettingField/RenderSettingValue/RenderSettingValue.js.html +1 -1
  242. package/src/artifacts/coverage-jest/Settings/EditableSettingsList/SettingField/RenderSettingValue/index.html +1 -1
  243. package/src/artifacts/coverage-jest/Settings/EditableSettingsList/SettingField/RenderSettingValue/index.js.html +1 -1
  244. package/src/artifacts/coverage-jest/Settings/EditableSettingsList/SettingField/SettingField.js.html +1 -1
  245. package/src/artifacts/coverage-jest/Settings/EditableSettingsList/SettingField/index.html +1 -1
  246. package/src/artifacts/coverage-jest/Settings/EditableSettingsList/SettingField/index.js.html +1 -1
  247. package/src/artifacts/coverage-jest/Settings/EditableSettingsList/index.html +1 -1
  248. package/src/artifacts/coverage-jest/Settings/EditableSettingsList/index.js.html +1 -1
  249. package/src/artifacts/coverage-jest/Settings/RefdataCategoriesSettings/RefdataCategoriesSettings.js.html +1 -1
  250. package/src/artifacts/coverage-jest/Settings/RefdataCategoriesSettings/index.html +1 -1
  251. package/src/artifacts/coverage-jest/Settings/RefdataCategoriesSettings/index.js.html +1 -1
  252. package/src/artifacts/coverage-jest/Settings/SettingPage/SettingPage.js.html +1 -1
  253. package/src/artifacts/coverage-jest/Settings/SettingPage/SettingPagePane/SettingPagePane.js.html +1 -1
  254. package/src/artifacts/coverage-jest/Settings/SettingPage/SettingPagePane/index.html +1 -1
  255. package/src/artifacts/coverage-jest/Settings/SettingPage/SettingPagePane/index.js.html +1 -1
  256. package/src/artifacts/coverage-jest/Settings/SettingPage/index.html +1 -1
  257. package/src/artifacts/coverage-jest/Settings/SettingPage/index.js.html +1 -1
  258. package/src/artifacts/coverage-jest/Settings/Settings/Settings.js.html +96 -9
  259. package/src/artifacts/coverage-jest/Settings/Settings/index.html +14 -14
  260. package/src/artifacts/coverage-jest/Settings/Settings/index.js.html +1 -1
  261. package/src/artifacts/coverage-jest/Settings/SettingsFormContainer/SettingsFormContainer.js.html +1 -1
  262. package/src/artifacts/coverage-jest/Settings/SettingsFormContainer/index.html +1 -1
  263. package/src/artifacts/coverage-jest/Settings/SettingsFormContainer/index.js.html +1 -1
  264. package/src/artifacts/coverage-jest/Settings/StaticSettingsField/StaticSettingsField.js.html +1 -1
  265. package/src/artifacts/coverage-jest/Settings/StaticSettingsField/StaticSettingsFieldComponent/StaticSettingsFieldComponent.js.html +1 -1
  266. package/src/artifacts/coverage-jest/Settings/StaticSettingsField/StaticSettingsFieldComponent/index.html +1 -1
  267. package/src/artifacts/coverage-jest/Settings/StaticSettingsField/StaticSettingsFieldComponent/index.js.html +1 -1
  268. package/src/artifacts/coverage-jest/Settings/StaticSettingsField/index.html +1 -1
  269. package/src/artifacts/coverage-jest/Settings/StaticSettingsField/index.js.html +1 -1
  270. package/src/artifacts/coverage-jest/Settings/constants/index.html +1 -1
  271. package/src/artifacts/coverage-jest/Settings/constants/index.js.html +1 -1
  272. package/src/artifacts/coverage-jest/Settings/constants/queryKeys.js.html +1 -1
  273. package/src/artifacts/coverage-jest/Settings/contexts/SettingsContext.js.html +1 -1
  274. package/src/artifacts/coverage-jest/Settings/contexts/index.html +1 -1
  275. package/src/artifacts/coverage-jest/Settings/contexts/index.js.html +1 -1
  276. package/src/artifacts/coverage-jest/Settings/hooks/index.html +1 -1
  277. package/src/artifacts/coverage-jest/Settings/hooks/index.js.html +1 -1
  278. package/src/artifacts/coverage-jest/Settings/hooks/staticSettingsPages/index.html +1 -1
  279. package/src/artifacts/coverage-jest/Settings/hooks/staticSettingsPages/index.js.html +1 -1
  280. package/src/artifacts/coverage-jest/Settings/hooks/staticSettingsPages/useSettingCallout/index.html +1 -1
  281. package/src/artifacts/coverage-jest/Settings/hooks/staticSettingsPages/useSettingCallout/index.js.html +1 -1
  282. package/src/artifacts/coverage-jest/Settings/hooks/staticSettingsPages/useSettingCallout/useSettingCallout.js.html +1 -1
  283. package/src/artifacts/coverage-jest/Settings/hooks/staticSettingsPages/useSettingsSectionInitalValues/index.html +1 -1
  284. package/src/artifacts/coverage-jest/Settings/hooks/staticSettingsPages/useSettingsSectionInitalValues/index.js.html +1 -1
  285. package/src/artifacts/coverage-jest/Settings/hooks/staticSettingsPages/useSettingsSectionInitalValues/useSettingsSectionInitalValues.js.html +1 -1
  286. package/src/artifacts/coverage-jest/Settings/hooks/staticSettingsPages/useStaticSettingsSection.js.html +1 -1
  287. package/src/artifacts/coverage-jest/Settings/hooks/useAppSettings/index.html +1 -1
  288. package/src/artifacts/coverage-jest/Settings/hooks/useAppSettings/index.js.html +1 -1
  289. package/src/artifacts/coverage-jest/Settings/hooks/useAppSettings/useAppSettings.js.html +1 -1
  290. package/src/artifacts/coverage-jest/Settings/hooks/useSettingSection/index.html +1 -1
  291. package/src/artifacts/coverage-jest/Settings/hooks/useSettingSection/index.js.html +1 -1
  292. package/src/artifacts/coverage-jest/Settings/hooks/useSettingSection/useSettingSection.js.html +1 -1
  293. package/src/artifacts/coverage-jest/Settings/hooks/useSettings/index.html +13 -13
  294. package/src/artifacts/coverage-jest/Settings/hooks/useSettings/index.js.html +1 -1
  295. package/src/artifacts/coverage-jest/Settings/hooks/useSettings/useSettings.js.html +105 -69
  296. package/src/artifacts/coverage-jest/Settings/index.html +1 -1
  297. package/src/artifacts/coverage-jest/Settings/index.js.html +11 -2
  298. package/src/artifacts/coverage-jest/Tags/Tags.js.html +1 -1
  299. package/src/artifacts/coverage-jest/Tags/hooks/index.html +1 -1
  300. package/src/artifacts/coverage-jest/Tags/hooks/index.js.html +1 -1
  301. package/src/artifacts/coverage-jest/Tags/hooks/useTags.js.html +1 -1
  302. package/src/artifacts/coverage-jest/Tags/hooks/useTagsEnabled.js.html +1 -1
  303. package/src/artifacts/coverage-jest/Tags/index.html +1 -1
  304. package/src/artifacts/coverage-jest/Tags/index.js.html +1 -1
  305. package/src/artifacts/coverage-jest/Tags/tagsConfig.js.html +1 -1
  306. package/src/artifacts/coverage-jest/Typedown/Typedown.js.html +1 -1
  307. package/src/artifacts/coverage-jest/Typedown/index.html +1 -1
  308. package/src/artifacts/coverage-jest/Typedown/index.js.html +1 -1
  309. package/src/artifacts/coverage-jest/cobertura-coverage.xml +371 -334
  310. package/src/artifacts/coverage-jest/constants/comparators.js.html +1 -1
  311. package/src/artifacts/coverage-jest/constants/customProperties.js.html +1 -1
  312. package/src/artifacts/coverage-jest/constants/endpoints.js.html +1 -1
  313. package/src/artifacts/coverage-jest/constants/eventCodes.js.html +1 -1
  314. package/src/artifacts/coverage-jest/constants/index.html +1 -1
  315. package/src/artifacts/coverage-jest/constants/pagination.js.html +1 -1
  316. package/src/artifacts/coverage-jest/hooks/index.html +1 -1
  317. package/src/artifacts/coverage-jest/hooks/index.js.html +1 -1
  318. package/src/artifacts/coverage-jest/hooks/intlHooks/index.html +1 -1
  319. package/src/artifacts/coverage-jest/hooks/intlHooks/index.js.html +1 -1
  320. package/src/artifacts/coverage-jest/hooks/intlHooks/useIntlKey/index.html +1 -1
  321. package/src/artifacts/coverage-jest/hooks/intlHooks/useIntlKey/index.js.html +1 -1
  322. package/src/artifacts/coverage-jest/hooks/intlHooks/useIntlKey/useIntlKey.js.html +7 -7
  323. package/src/artifacts/coverage-jest/hooks/intlHooks/useIntlKeyStore/index.html +1 -1
  324. package/src/artifacts/coverage-jest/hooks/intlHooks/useIntlKeyStore/index.js.html +1 -1
  325. package/src/artifacts/coverage-jest/hooks/intlHooks/useIntlKeyStore/useIntlKeyStore.js.html +6 -6
  326. package/src/artifacts/coverage-jest/hooks/intlHooks/useKintIntl/index.html +1 -1
  327. package/src/artifacts/coverage-jest/hooks/intlHooks/useKintIntl/index.js.html +1 -1
  328. package/src/artifacts/coverage-jest/hooks/intlHooks/useKintIntl/useKintIntl.js.html +6 -6
  329. package/src/artifacts/coverage-jest/hooks/typedownHooks/index.html +1 -1
  330. package/src/artifacts/coverage-jest/hooks/typedownHooks/index.js.html +1 -1
  331. package/src/artifacts/coverage-jest/hooks/typedownHooks/useTypedown.js.html +1 -1
  332. package/src/artifacts/coverage-jest/hooks/typedownHooks/useTypedownData.js.html +1 -1
  333. package/src/artifacts/coverage-jest/hooks/typedownHooks/useTypedownToggle.js.html +1 -1
  334. package/src/artifacts/coverage-jest/hooks/useActionListRef.js.html +1 -1
  335. package/src/artifacts/coverage-jest/hooks/useActiveElement.js.html +1 -1
  336. package/src/artifacts/coverage-jest/hooks/useCustomProperties.js.html +1 -1
  337. package/src/artifacts/coverage-jest/hooks/useHelperApp.js.html +1 -1
  338. package/src/artifacts/coverage-jest/hooks/useInvalidateRefdata/index.html +1 -1
  339. package/src/artifacts/coverage-jest/hooks/useInvalidateRefdata/index.js.html +1 -1
  340. package/src/artifacts/coverage-jest/hooks/useInvalidateRefdata/useInvalidateRefdata.js.html +1 -1
  341. package/src/artifacts/coverage-jest/hooks/useKiwtFieldArray.js.html +1 -1
  342. package/src/artifacts/coverage-jest/hooks/useKiwtSASQuery.js.html +9 -9
  343. package/src/artifacts/coverage-jest/hooks/useLocalPageStore.js.html +1 -1
  344. package/src/artifacts/coverage-jest/hooks/useLocalStorageState.js.html +5 -5
  345. package/src/artifacts/coverage-jest/hooks/useModConfigEntries.js.html +1 -1
  346. package/src/artifacts/coverage-jest/hooks/useMutateCustomProperties/index.html +1 -1
  347. package/src/artifacts/coverage-jest/hooks/useMutateCustomProperties/index.js.html +1 -1
  348. package/src/artifacts/coverage-jest/hooks/useMutateCustomProperties/useMutateCustomProperties.js.html +1 -1
  349. package/src/artifacts/coverage-jest/hooks/useMutateGeneric/index.html +1 -1
  350. package/src/artifacts/coverage-jest/hooks/useMutateGeneric/index.js.html +1 -1
  351. package/src/artifacts/coverage-jest/hooks/useMutateGeneric/useMutateGeneric.js.html +1 -1
  352. package/src/artifacts/coverage-jest/hooks/useMutateModConfigEntry.js.html +1 -1
  353. package/src/artifacts/coverage-jest/hooks/useMutateRefdataCategory/index.html +1 -1
  354. package/src/artifacts/coverage-jest/hooks/useMutateRefdataCategory/index.js.html +1 -1
  355. package/src/artifacts/coverage-jest/hooks/useMutateRefdataCategory/useMutateRefdataCategory.js.html +1 -1
  356. package/src/artifacts/coverage-jest/hooks/useMutateRefdataValue/index.html +1 -1
  357. package/src/artifacts/coverage-jest/hooks/useMutateRefdataValue/index.js.html +1 -1
  358. package/src/artifacts/coverage-jest/hooks/useMutateRefdataValue/useMutateRefdataValue.js.html +1 -1
  359. package/src/artifacts/coverage-jest/hooks/usePrevNextPagination.js.html +20 -20
  360. package/src/artifacts/coverage-jest/hooks/useQIndex.js.html +8 -8
  361. package/src/artifacts/coverage-jest/hooks/useRefdata.js.html +1 -1
  362. package/src/artifacts/coverage-jest/hooks/useSASQQueryMeta.js.html +1 -1
  363. package/src/artifacts/coverage-jest/hooks/useStandaloneSASQQueryParameter/index.html +1 -1
  364. package/src/artifacts/coverage-jest/hooks/useStandaloneSASQQueryParameter/index.js.html +1 -1
  365. package/src/artifacts/coverage-jest/hooks/useStandaloneSASQQueryParameter/useStandaloneSASQQueryParameter.js.html +1 -1
  366. package/src/artifacts/coverage-jest/hooks/useTemplates.js.html +1 -1
  367. package/src/artifacts/coverage-jest/index.html +63 -33
  368. package/src/artifacts/coverage-jest/utils/buildUrl.js.html +1 -1
  369. package/src/artifacts/coverage-jest/utils/filterParsers/deparseKiwtQueryFilters.js.html +1 -1
  370. package/src/artifacts/coverage-jest/utils/filterParsers/index.html +1 -1
  371. package/src/artifacts/coverage-jest/utils/filterParsers/index.js.html +1 -1
  372. package/src/artifacts/coverage-jest/utils/filterParsers/parseKiwtQueryFilters.js.html +1 -1
  373. package/src/artifacts/coverage-jest/utils/filterParsers/parseKiwtQueryGroups.js.html +1 -1
  374. package/src/artifacts/coverage-jest/utils/filterParsers/parseKiwtQueryString.js.html +1 -1
  375. package/src/artifacts/coverage-jest/utils/generateKiwtQuery.js.html +1 -1
  376. package/src/artifacts/coverage-jest/utils/generateKiwtQueryParams/generateKiwtQueryParams.js.html +1 -1
  377. package/src/artifacts/coverage-jest/utils/generateKiwtQueryParams/index.html +1 -1
  378. package/src/artifacts/coverage-jest/utils/generateKiwtQueryParams/index.js.html +1 -1
  379. package/src/artifacts/coverage-jest/utils/groupCustomPropertiesByCtx.js.html +1 -1
  380. package/src/artifacts/coverage-jest/utils/index.html +9 -39
  381. package/src/artifacts/coverage-jest/utils/index.js.html +2 -2
  382. package/src/artifacts/coverage-jest/utils/matchString/index.html +131 -0
  383. package/src/artifacts/coverage-jest/utils/matchString/index.js.html +88 -0
  384. package/src/artifacts/coverage-jest/utils/{matchString.js.html → matchString/matchString.js.html} +82 -55
  385. package/src/artifacts/coverage-jest/utils/modConfigEntriesQueryKey.js.html +1 -1
  386. package/src/artifacts/coverage-jest/utils/parseErrorResponse.js.html +1 -1
  387. package/src/artifacts/coverage-jest/utils/parseModConfigEntry.js.html +1 -1
  388. package/src/artifacts/coverage-jest/utils/refdataOptions.js.html +1 -1
  389. package/src/artifacts/coverage-jest/utils/refdataQueryKey/index.html +1 -1
  390. package/src/artifacts/coverage-jest/utils/refdataQueryKey/index.js.html +1 -1
  391. package/src/artifacts/coverage-jest/utils/refdataQueryKey/refdataQueryKey.js.html +1 -1
  392. package/src/artifacts/coverage-jest/utils/selectorSafe.js.html +1 -1
  393. package/src/artifacts/coverage-jest/utils/sortByLabel.js.html +1 -1
  394. package/src/artifacts/coverage-jest/utils/stringStyling/boldString.js.html +190 -0
  395. package/src/artifacts/coverage-jest/utils/stringStyling/highlightString.js.html +190 -0
  396. package/src/artifacts/coverage-jest/utils/stringStyling/index.html +146 -0
  397. package/src/artifacts/coverage-jest/utils/stringStyling/index.js.html +91 -0
  398. package/src/artifacts/coverage-jest/utils/toCamelCase.js.html +1 -1
  399. package/src/artifacts/coverage-jest/utils/typedownQueryKey.js.html +1 -1
  400. package/src/artifacts/coverage-jest/validators/index.html +1 -1
  401. package/src/artifacts/coverage-jest/validators/index.js.html +1 -1
  402. package/src/artifacts/coverage-jest/validators/validators.js.html +1 -1
  403. package/src/lib/Settings/Settings/Settings.js +30 -1
  404. package/src/lib/Settings/hooks/useSettings/README.md +49 -19
  405. package/src/lib/Settings/hooks/useSettings/useSettings.js +60 -48
  406. package/src/lib/Settings/index.js +3 -0
  407. package/src/lib/utils/index.js +1 -1
  408. package/src/lib/utils/matchString/index.js +1 -0
  409. package/src/lib/utils/matchString/matchString.js +44 -0
  410. package/src/lib/utils/matchString/matchString.test.js +68 -0
  411. package/src/lib/utils/stringStyling/boldString.js +35 -0
  412. package/src/lib/utils/stringStyling/boldString.test.js +59 -0
  413. package/src/lib/utils/stringStyling/highlightString.js +35 -0
  414. package/src/lib/utils/stringStyling/highlightString.test.js +67 -0
  415. package/src/lib/utils/stringStyling/index.js +2 -0
  416. package/styles/stringMatchStyles.css +3 -0
  417. package/es/lib/utils/highlightString.js +0 -45
  418. package/src/artifacts/coverage-jest/utils/highlightString.js.html +0 -259
  419. package/src/lib/utils/highlightString.js +0 -58
  420. package/src/lib/utils/matchString.js +0 -35
@@ -0,0 +1,47 @@
1
+ "use strict";
2
+
3
+ var _react = require("@folio/jest-config-stripes/testing-library/react");
4
+ var _boldString = _interopRequireDefault(require("./boldString"));
5
+ var _stringMatchStyles = _interopRequireDefault(require("../../../../styles/stringMatchStyles.css"));
6
+ var _jsxRuntime = require("react/jsx-runtime");
7
+ function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
8
+ const renderBolded = (match, str, ignoreNull, simpleSplit) => {
9
+ const result = (0, _boldString.default)(match, str, ignoreNull, simpleSplit);
10
+ const {
11
+ container
12
+ } = (0, _react.render)(/*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
13
+ children: result
14
+ }));
15
+ return container;
16
+ };
17
+ describe('boldString', () => {
18
+ describe('logic and structure', () => {
19
+ test.each([['hello', 'say hello world', 1, 'wraps matched text in <strong>'], ['HELLO', 'say hello world', 1, 'match is case insensitive'], ['o', 'foo boo', 4, 'highlights multiple occurrences (o in foo boo)'], ['oo', 'foo boo', 2, 'highlights multiple occurrences (oo in foo boo)']])('%s: %s', (match, str, expectedBolds) => {
20
+ const container = renderBolded(match, str);
21
+ expect(container.querySelectorAll('strong')).toHaveLength(expectedBolds);
22
+ expect(container.textContent).toBe(str);
23
+ });
24
+ test('returns full string without strong tags when no match', () => {
25
+ const container = renderBolded('xyz', 'hello world');
26
+ expect(container.querySelectorAll('strong')).toHaveLength(0);
27
+ expect(container.textContent).toBe('hello world');
28
+ });
29
+ });
30
+ describe('space preservation (all modes)', () => {
31
+ test.each([['A', 'AN 2025', true, false], ['AN ', 'AN 2025', true, false], ['AN 2025', 'AN 2025', true, true], ['world', 'hello world', true, true]])('searching "%s" in "%s" (simpleSplit: %s) preserves spaces', (match, str, ignore, simple) => {
32
+ const container = renderBolded(match, str, ignore, simple);
33
+ expect(container.textContent).toBe(str);
34
+ });
35
+ });
36
+ describe('whitespace styling', () => {
37
+ test.each([['strong', 'AN', 'AN 2025'], ['span', 'AN', 'AN 2025']])('%s elements should have whiteSpace: pre', (selector, match, str) => {
38
+ const container = renderBolded(match, str, true, false);
39
+ const elements = container.querySelectorAll(selector);
40
+ expect(elements.length).toBeGreaterThan(0);
41
+ elements.forEach(el => {
42
+ // Compare classname to "whitespacePre" from css
43
+ expect(el.classList.contains(_stringMatchStyles.default.whitespacePre)).toBe(true);
44
+ });
45
+ });
46
+ });
47
+ });
@@ -0,0 +1,30 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.default = void 0;
7
+ var _matchString = _interopRequireDefault(require("../matchString"));
8
+ var _stringMatchStyles = _interopRequireDefault(require("../../../../styles/stringMatchStyles.css"));
9
+ var _jsxRuntime = require("react/jsx-runtime");
10
+ function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
11
+ const highlightString = function (match, str) {
12
+ let ignoreNull = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : true;
13
+ let simpleSplit = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : true;
14
+ const [parts, regex] = (0, _matchString.default)(match, str, ignoreNull, simpleSplit);
15
+ return parts.map((part, i) => {
16
+ // RegExp is stateful, set up a new one to work with
17
+ const immutableRegex = new RegExp(regex);
18
+ if (immutableRegex.exec(part) !== null) {
19
+ return /*#__PURE__*/(0, _jsxRuntime.jsx)("mark", {
20
+ className: _stringMatchStyles.default.whitespacePre,
21
+ children: part
22
+ }, `highlight-mark-${part}-${i}`);
23
+ }
24
+ return /*#__PURE__*/(0, _jsxRuntime.jsx)("span", {
25
+ className: _stringMatchStyles.default.whitespacePre,
26
+ children: part
27
+ }, `highlight-span-${part}-${i}`);
28
+ });
29
+ };
30
+ var _default = exports.default = highlightString;
@@ -0,0 +1,51 @@
1
+ "use strict";
2
+
3
+ var _react = require("@folio/jest-config-stripes/testing-library/react");
4
+ var _highlightString = _interopRequireDefault(require("./highlightString"));
5
+ var _stringMatchStyles = _interopRequireDefault(require("../../../../styles/stringMatchStyles.css"));
6
+ var _jsxRuntime = require("react/jsx-runtime");
7
+ function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
8
+ // We're using the base render as we don't need any kint harness stuff, and it causes jest artifacts
9
+
10
+ const renderHighlighted = (match, str, ignoreNull, simpleSplit) => {
11
+ const result = (0, _highlightString.default)(match, str, ignoreNull, simpleSplit);
12
+ const {
13
+ container
14
+ } = (0, _react.render)(/*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
15
+ children: result
16
+ }));
17
+ return container;
18
+ };
19
+ describe('highlightString', () => {
20
+ describe('logic and structure', () => {
21
+ test.each([['hello', 'say hello world', 1, 'wraps matched text in <mark>'], ['HELLO', 'say hello world', 1, 'match is case insensitive'], ['o', 'foo boo', 4, 'highlights multiple occurrences (o in foo boo)'], ['oo', 'foo boo', 2, 'highlights multiple occurrences (oo in foo boo)']])('%s: %s', (match, str, expectedMarks) => {
22
+ const container = renderHighlighted(match, str);
23
+ expect(container.querySelectorAll('mark')).toHaveLength(expectedMarks);
24
+ expect(container.textContent).toBe(str);
25
+ });
26
+ test('returns full string without marks when no match', () => {
27
+ const container = renderHighlighted('xyz', 'hello world');
28
+ expect(container.querySelectorAll('mark')).toHaveLength(0);
29
+ expect(container.textContent).toBe('hello world');
30
+ });
31
+ });
32
+ describe('space preservation (all modes)', () => {
33
+ test.each([
34
+ // match, str, ignoreNull, simpleSplit
35
+ ['A', 'AN 2025', true, false], ['AN', 'AN 2025', true, false], ['AN ', 'AN 2025', true, false], ['AN 2025', 'AN 2025', true, false], ['hello', 'hello world', true, false], ['AB', 'AB CD EF', true, false], ['world', 'hello world', true, false], ['a', 'a b a', true, false], ['AN', 'AN 2025', true, true], ['AN 2025', 'AN 2025', true, true], ['world', 'hello world', true, true]])('searching "%s" in "%s" (simpleSplit: %s) preserves spaces', (match, str, ignore, simple) => {
36
+ const container = renderHighlighted(match, str, ignore, simple);
37
+ expect(container.textContent).toBe(str);
38
+ });
39
+ });
40
+ describe('whitespace styling', () => {
41
+ test.each([['mark', 'AN', 'AN 2025'], ['span', 'AN', 'AN 2025']])('%s elements should have whiteSpace: pre', (selector, match, str) => {
42
+ const container = renderHighlighted(match, str, true, false);
43
+ const elements = container.querySelectorAll(selector);
44
+ expect(elements.length).toBeGreaterThan(0);
45
+ elements.forEach(el => {
46
+ // Compare classname to "whitespacePre" from css
47
+ expect(el.classList.contains(_stringMatchStyles.default.whitespacePre)).toBe(true);
48
+ });
49
+ });
50
+ });
51
+ });
@@ -0,0 +1,20 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ Object.defineProperty(exports, "boldString", {
7
+ enumerable: true,
8
+ get: function () {
9
+ return _boldString.default;
10
+ }
11
+ });
12
+ Object.defineProperty(exports, "highlightString", {
13
+ enumerable: true,
14
+ get: function () {
15
+ return _highlightString.default;
16
+ }
17
+ });
18
+ var _highlightString = _interopRequireDefault(require("./highlightString"));
19
+ var _boldString = _interopRequireDefault(require("./boldString"));
20
+ function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
@@ -7,10 +7,7 @@ exports.requiredObject = exports.required = exports.rangeUnderflow = exports.ran
7
7
  var _reactIntl = require("react-intl");
8
8
  var _FormattedKintMessage = _interopRequireDefault(require("../FormattedKintMessage"));
9
9
  var _jsxRuntime = require("react/jsx-runtime");
10
- const _excluded = ["_delete"];
11
10
  function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
12
- 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; }
13
- 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; }
14
11
  const required = value => {
15
12
  const blankString = /^\s+$/;
16
13
  if (value && !blankString.test(value) || value === false || value === 0) {
@@ -26,9 +23,9 @@ const requiredObject = function () {
26
23
  // withKiwtFieldArray sets the _delete property on new objects by default
27
24
  // eslint-disable-next-line no-unused-vars
28
25
  const {
29
- _delete
30
- } = formValue,
31
- value = _objectWithoutProperties(formValue, _excluded);
26
+ _delete,
27
+ ...value
28
+ } = formValue;
32
29
  if (Object.keys(value).length === 0) {
33
30
  return /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactIntl.FormattedMessage, {
34
31
  id: "stripes-core.label.missingRequiredField"
@@ -67,7 +64,7 @@ const invalidNumber = function (value, _min, _max, intlKey, intlNS) {
67
64
  id: "errors.invalidNumber",
68
65
  intlKey: intlKey,
69
66
  intlNS: intlNS,
70
- overrideValue: labelOverrides === null || labelOverrides === void 0 ? void 0 : labelOverrides.invalidNumberError
67
+ overrideValue: labelOverrides?.invalidNumberError
71
68
  });
72
69
  }
73
70
  return undefined;
@@ -80,7 +77,7 @@ const rangeOverflow = function (value, min, max, intlKey, intlNS) {
80
77
  id: "errors.decimalValueNotInRange",
81
78
  intlKey: intlKey,
82
79
  intlNS: intlNS,
83
- overrideValue: labelOverrides === null || labelOverrides === void 0 ? void 0 : labelOverrides.decimalValueNotInRangeError,
80
+ overrideValue: labelOverrides?.decimalValueNotInRangeError,
84
81
  values: {
85
82
  min,
86
83
  max
@@ -97,7 +94,7 @@ const rangeUnderflow = function (value, min, max, intlKey, intlNS) {
97
94
  id: "errors.decimalValueNotInRange",
98
95
  intlKey: intlKey,
99
96
  intlNS: intlNS,
100
- overrideValue: labelOverrides === null || labelOverrides === void 0 ? void 0 : labelOverrides.decimalValueNotInRangeError,
97
+ overrideValue: labelOverrides?.decimalValueNotInRangeError,
101
98
  values: {
102
99
  min,
103
100
  max
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@k-int/stripes-kint-components",
3
- "version": "5.32.0",
3
+ "version": "5.33.1",
4
4
  "description": "Stripes Component library for K-Int specific applications",
5
5
  "sideEffects": [
6
6
  "*.css"
@@ -358,7 +358,7 @@ export default ActionList;
358
358
  <div class='footer quiet pad2 space-top1 center small'>
359
359
  Code coverage generated by
360
360
  <a href="https://istanbul.js.org/" target="_blank" rel="noopener noreferrer">istanbul</a>
361
- at 2026-02-17T13:52:17.739Z
361
+ at 2026-03-09T14:50:53.363Z
362
362
  </div>
363
363
  <script src="../prettify.js"></script>
364
364
  <script>
@@ -1495,7 +1495,7 @@ export default ActionListFieldArray;
1495
1495
  <div class='footer quiet pad2 space-top1 center small'>
1496
1496
  Code coverage generated by
1497
1497
  <a href="https://istanbul.js.org/" target="_blank" rel="noopener noreferrer">istanbul</a>
1498
- at 2026-02-17T13:52:17.739Z
1498
+ at 2026-03-09T14:50:53.363Z
1499
1499
  </div>
1500
1500
  <script src="../prettify.js"></script>
1501
1501
  <script>
@@ -131,7 +131,7 @@
131
131
  <div class='footer quiet pad2 space-top1 center small'>
132
132
  Code coverage generated by
133
133
  <a href="https://istanbul.js.org/" target="_blank" rel="noopener noreferrer">istanbul</a>
134
- at 2026-02-17T13:52:17.739Z
134
+ at 2026-03-09T14:50:53.363Z
135
135
  </div>
136
136
  <script src="../prettify.js"></script>
137
137
  <script>
@@ -73,7 +73,7 @@
73
73
  <div class='footer quiet pad2 space-top1 center small'>
74
74
  Code coverage generated by
75
75
  <a href="https://istanbul.js.org/" target="_blank" rel="noopener noreferrer">istanbul</a>
76
- at 2026-02-17T13:52:17.739Z
76
+ at 2026-03-09T14:50:53.363Z
77
77
  </div>
78
78
  <script src="../prettify.js"></script>
79
79
  <script>
@@ -421,7 +421,7 @@ ButtonTypedown.propTypes = {
421
421
  <div class='footer quiet pad2 space-top1 center small'>
422
422
  Code coverage generated by
423
423
  <a href="https://istanbul.js.org/" target="_blank" rel="noopener noreferrer">istanbul</a>
424
- at 2026-02-17T13:52:17.739Z
424
+ at 2026-03-09T14:50:53.363Z
425
425
  </div>
426
426
  <script src="../prettify.js"></script>
427
427
  <script>
@@ -116,7 +116,7 @@
116
116
  <div class='footer quiet pad2 space-top1 center small'>
117
117
  Code coverage generated by
118
118
  <a href="https://istanbul.js.org/" target="_blank" rel="noopener noreferrer">istanbul</a>
119
- at 2026-02-17T13:52:17.739Z
119
+ at 2026-03-09T14:50:53.363Z
120
120
  </div>
121
121
  <script src="../prettify.js"></script>
122
122
  <script>
@@ -73,7 +73,7 @@
73
73
  <div class='footer quiet pad2 space-top1 center small'>
74
74
  Code coverage generated by
75
75
  <a href="https://istanbul.js.org/" target="_blank" rel="noopener noreferrer">istanbul</a>
76
- at 2026-02-17T13:52:17.739Z
76
+ at 2026-03-09T14:50:53.363Z
77
77
  </div>
78
78
  <script src="../prettify.js"></script>
79
79
  <script>
@@ -553,7 +553,7 @@ export default ComboButton;
553
553
  <div class='footer quiet pad2 space-top1 center small'>
554
554
  Code coverage generated by
555
555
  <a href="https://istanbul.js.org/" target="_blank" rel="noopener noreferrer">istanbul</a>
556
- at 2026-02-17T13:52:17.739Z
556
+ at 2026-03-09T14:50:53.363Z
557
557
  </div>
558
558
  <script src="../prettify.js"></script>
559
559
  <script>
@@ -116,7 +116,7 @@
116
116
  <div class='footer quiet pad2 space-top1 center small'>
117
117
  Code coverage generated by
118
118
  <a href="https://istanbul.js.org/" target="_blank" rel="noopener noreferrer">istanbul</a>
119
- at 2026-02-17T13:52:17.739Z
119
+ at 2026-03-09T14:50:53.363Z
120
120
  </div>
121
121
  <script src="../prettify.js"></script>
122
122
  <script>
@@ -73,7 +73,7 @@
73
73
  <div class='footer quiet pad2 space-top1 center small'>
74
74
  Code coverage generated by
75
75
  <a href="https://istanbul.js.org/" target="_blank" rel="noopener noreferrer">istanbul</a>
76
- at 2026-02-17T13:52:17.739Z
76
+ at 2026-03-09T14:50:53.363Z
77
77
  </div>
78
78
  <script src="../prettify.js"></script>
79
79
  <script>
@@ -652,7 +652,7 @@ export default CustomPropertiesLookup;
652
652
  <div class='footer quiet pad2 space-top1 center small'>
653
653
  Code coverage generated by
654
654
  <a href="https://istanbul.js.org/" target="_blank" rel="noopener noreferrer">istanbul</a>
655
- at 2026-02-17T13:52:17.739Z
655
+ at 2026-03-09T14:50:53.363Z
656
656
  </div>
657
657
  <script src="../../prettify.js"></script>
658
658
  <script>
@@ -1231,7 +1231,7 @@ export default CustomPropertiesSettings;
1231
1231
  <div class='footer quiet pad2 space-top1 center small'>
1232
1232
  Code coverage generated by
1233
1233
  <a href="https://istanbul.js.org/" target="_blank" rel="noopener noreferrer">istanbul</a>
1234
- at 2026-02-17T13:52:17.739Z
1234
+ at 2026-03-09T14:50:53.363Z
1235
1235
  </div>
1236
1236
  <script src="../../prettify.js"></script>
1237
1237
  <script>
@@ -1459,7 +1459,7 @@ export default CustomPropertyForm;
1459
1459
  <div class='footer quiet pad2 space-top1 center small'>
1460
1460
  Code coverage generated by
1461
1461
  <a href="https://istanbul.js.org/" target="_blank" rel="noopener noreferrer">istanbul</a>
1462
- at 2026-02-17T13:52:17.739Z
1462
+ at 2026-03-09T14:50:53.363Z
1463
1463
  </div>
1464
1464
  <script src="../../prettify.js"></script>
1465
1465
  <script>
@@ -718,7 +718,7 @@ export default CustomPropertyView;
718
718
  <div class='footer quiet pad2 space-top1 center small'>
719
719
  Code coverage generated by
720
720
  <a href="https://istanbul.js.org/" target="_blank" rel="noopener noreferrer">istanbul</a>
721
- at 2026-02-17T13:52:17.739Z
721
+ at 2026-03-09T14:50:53.363Z
722
722
  </div>
723
723
  <script src="../../prettify.js"></script>
724
724
  <script>
@@ -161,7 +161,7 @@
161
161
  <div class='footer quiet pad2 space-top1 center small'>
162
162
  Code coverage generated by
163
163
  <a href="https://istanbul.js.org/" target="_blank" rel="noopener noreferrer">istanbul</a>
164
- at 2026-02-17T13:52:17.739Z
164
+ at 2026-03-09T14:50:53.363Z
165
165
  </div>
166
166
  <script src="../../prettify.js"></script>
167
167
  <script>
@@ -82,7 +82,7 @@ export { default as CustomPropertyForm } from './CustomPropertyForm';
82
82
  <div class='footer quiet pad2 space-top1 center small'>
83
83
  Code coverage generated by
84
84
  <a href="https://istanbul.js.org/" target="_blank" rel="noopener noreferrer">istanbul</a>
85
- at 2026-02-17T13:52:17.739Z
85
+ at 2026-03-09T14:50:53.363Z
86
86
  </div>
87
87
  <script src="../../prettify.js"></script>
88
88
  <script>
@@ -193,7 +193,7 @@ export default CustomPropertiesEdit;
193
193
  <div class='footer quiet pad2 space-top1 center small'>
194
194
  Code coverage generated by
195
195
  <a href="https://istanbul.js.org/" target="_blank" rel="noopener noreferrer">istanbul</a>
196
- at 2026-02-17T13:52:17.739Z
196
+ at 2026-03-09T14:50:53.363Z
197
197
  </div>
198
198
  <script src="../../prettify.js"></script>
199
199
  <script>
@@ -337,7 +337,7 @@ export default CustomPropertiesEditCtx;
337
337
  <div class='footer quiet pad2 space-top1 center small'>
338
338
  Code coverage generated by
339
339
  <a href="https://istanbul.js.org/" target="_blank" rel="noopener noreferrer">istanbul</a>
340
- at 2026-02-17T13:52:17.739Z
340
+ at 2026-03-09T14:50:53.363Z
341
341
  </div>
342
342
  <script src="../../prettify.js"></script>
343
343
  <script>
@@ -820,7 +820,7 @@ export default CustomPropertiesListField;
820
820
  <div class='footer quiet pad2 space-top1 center small'>
821
821
  Code coverage generated by
822
822
  <a href="https://istanbul.js.org/" target="_blank" rel="noopener noreferrer">istanbul</a>
823
- at 2026-02-17T13:52:17.739Z
823
+ at 2026-03-09T14:50:53.363Z
824
824
  </div>
825
825
  <script src="../../prettify.js"></script>
826
826
  <script>
@@ -1285,7 +1285,7 @@ export default CustomPropertyField;
1285
1285
  <div class='footer quiet pad2 space-top1 center small'>
1286
1286
  Code coverage generated by
1287
1287
  <a href="https://istanbul.js.org/" target="_blank" rel="noopener noreferrer">istanbul</a>
1288
- at 2026-02-17T13:52:17.739Z
1288
+ at 2026-03-09T14:50:53.363Z
1289
1289
  </div>
1290
1290
  <script src="../../prettify.js"></script>
1291
1291
  <script>
@@ -439,7 +439,7 @@ export default CustomPropertyFormCard;
439
439
  <div class='footer quiet pad2 space-top1 center small'>
440
440
  Code coverage generated by
441
441
  <a href="https://istanbul.js.org/" target="_blank" rel="noopener noreferrer">istanbul</a>
442
- at 2026-02-17T13:52:17.739Z
442
+ at 2026-03-09T14:50:53.363Z
443
443
  </div>
444
444
  <script src="../../prettify.js"></script>
445
445
  <script>
@@ -191,7 +191,7 @@
191
191
  <div class='footer quiet pad2 space-top1 center small'>
192
192
  Code coverage generated by
193
193
  <a href="https://istanbul.js.org/" target="_blank" rel="noopener noreferrer">istanbul</a>
194
- at 2026-02-17T13:52:17.739Z
194
+ at 2026-03-09T14:50:53.363Z
195
195
  </div>
196
196
  <script src="../../prettify.js"></script>
197
197
  <script>
@@ -85,7 +85,7 @@ export { default as CustomPropertyField } from './CustomPropertyField';
85
85
  <div class='footer quiet pad2 space-top1 center small'>
86
86
  Code coverage generated by
87
87
  <a href="https://istanbul.js.org/" target="_blank" rel="noopener noreferrer">istanbul</a>
88
- at 2026-02-17T13:52:17.739Z
88
+ at 2026-03-09T14:50:53.363Z
89
89
  </div>
90
90
  <script src="../../prettify.js"></script>
91
91
  <script>
@@ -256,7 +256,7 @@ export {
256
256
  <div class='footer quiet pad2 space-top1 center small'>
257
257
  Code coverage generated by
258
258
  <a href="https://istanbul.js.org/" target="_blank" rel="noopener noreferrer">istanbul</a>
259
- at 2026-02-17T13:52:17.739Z
259
+ at 2026-03-09T14:50:53.363Z
260
260
  </div>
261
261
  <script src="../../prettify.js"></script>
262
262
  <script>
@@ -484,7 +484,7 @@ export default CustomPropertiesFilter;
484
484
  <div class='footer quiet pad2 space-top1 center small'>
485
485
  Code coverage generated by
486
486
  <a href="https://istanbul.js.org/" target="_blank" rel="noopener noreferrer">istanbul</a>
487
- at 2026-02-17T13:52:17.739Z
487
+ at 2026-03-09T14:50:53.363Z
488
488
  </div>
489
489
  <script src="../../prettify.js"></script>
490
490
  <script>
@@ -556,7 +556,7 @@ export default CustomPropertiesFilterField;
556
556
  <div class='footer quiet pad2 space-top1 center small'>
557
557
  Code coverage generated by
558
558
  <a href="https://istanbul.js.org/" target="_blank" rel="noopener noreferrer">istanbul</a>
559
- at 2026-02-17T13:52:17.739Z
559
+ at 2026-03-09T14:50:53.363Z
560
560
  </div>
561
561
  <script src="../../prettify.js"></script>
562
562
  <script>
@@ -400,7 +400,7 @@ export default CustomPropertiesFilterFieldArray;
400
400
  <div class='footer quiet pad2 space-top1 center small'>
401
401
  Code coverage generated by
402
402
  <a href="https://istanbul.js.org/" target="_blank" rel="noopener noreferrer">istanbul</a>
403
- at 2026-02-17T13:52:17.739Z
403
+ at 2026-03-09T14:50:53.363Z
404
404
  </div>
405
405
  <script src="../../prettify.js"></script>
406
406
  <script>
@@ -325,7 +325,7 @@ export default CustomPropertyFiltersForm;
325
325
  <div class='footer quiet pad2 space-top1 center small'>
326
326
  Code coverage generated by
327
327
  <a href="https://istanbul.js.org/" target="_blank" rel="noopener noreferrer">istanbul</a>
328
- at 2026-02-17T13:52:17.739Z
328
+ at 2026-03-09T14:50:53.363Z
329
329
  </div>
330
330
  <script src="../../prettify.js"></script>
331
331
  <script>
@@ -493,7 +493,7 @@ export default CustomPropertiesRule;
493
493
  <div class='footer quiet pad2 space-top1 center small'>
494
494
  Code coverage generated by
495
495
  <a href="https://istanbul.js.org/" target="_blank" rel="noopener noreferrer">istanbul</a>
496
- at 2026-02-17T13:52:17.739Z
496
+ at 2026-03-09T14:50:53.363Z
497
497
  </div>
498
498
  <script src="../../prettify.js"></script>
499
499
  <script>
@@ -236,7 +236,7 @@
236
236
  <div class='footer quiet pad2 space-top1 center small'>
237
237
  Code coverage generated by
238
238
  <a href="https://istanbul.js.org/" target="_blank" rel="noopener noreferrer">istanbul</a>
239
- at 2026-02-17T13:52:17.739Z
239
+ at 2026-03-09T14:50:53.363Z
240
240
  </div>
241
241
  <script src="../../prettify.js"></script>
242
242
  <script>
@@ -88,7 +88,7 @@ export { default as CustomPropertiesFilterFieldArray } from './CustomPropertiesF
88
88
  <div class='footer quiet pad2 space-top1 center small'>
89
89
  Code coverage generated by
90
90
  <a href="https://istanbul.js.org/" target="_blank" rel="noopener noreferrer">istanbul</a>
91
- at 2026-02-17T13:52:17.739Z
91
+ at 2026-03-09T14:50:53.363Z
92
92
  </div>
93
93
  <script src="../../prettify.js"></script>
94
94
  <script>
@@ -208,7 +208,7 @@ export {
208
208
  <div class='footer quiet pad2 space-top1 center small'>
209
209
  Code coverage generated by
210
210
  <a href="https://istanbul.js.org/" target="_blank" rel="noopener noreferrer">istanbul</a>
211
- at 2026-02-17T13:52:17.739Z
211
+ at 2026-03-09T14:50:53.363Z
212
212
  </div>
213
213
  <script src="../../prettify.js"></script>
214
214
  <script>
@@ -256,7 +256,7 @@ export default useOperators;
256
256
  <div class='footer quiet pad2 space-top1 center small'>
257
257
  Code coverage generated by
258
258
  <a href="https://istanbul.js.org/" target="_blank" rel="noopener noreferrer">istanbul</a>
259
- at 2026-02-17T13:52:17.739Z
259
+ at 2026-03-09T14:50:53.363Z
260
260
  </div>
261
261
  <script src="../../prettify.js"></script>
262
262
  <script>
@@ -184,7 +184,7 @@ export default useParseActiveFilterStrings;
184
184
  <div class='footer quiet pad2 space-top1 center small'>
185
185
  Code coverage generated by
186
186
  <a href="https://istanbul.js.org/" target="_blank" rel="noopener noreferrer">istanbul</a>
187
- at 2026-02-17T13:52:17.739Z
187
+ at 2026-03-09T14:50:53.363Z
188
188
  </div>
189
189
  <script src="../../prettify.js"></script>
190
190
  <script>
@@ -238,7 +238,7 @@ export default useValueProps;
238
238
  <div class='footer quiet pad2 space-top1 center small'>
239
239
  Code coverage generated by
240
240
  <a href="https://istanbul.js.org/" target="_blank" rel="noopener noreferrer">istanbul</a>
241
- at 2026-02-17T13:52:17.739Z
241
+ at 2026-03-09T14:50:53.363Z
242
242
  </div>
243
243
  <script src="../../prettify.js"></script>
244
244
  <script>
@@ -196,7 +196,7 @@ export default CustomPropertiesView;
196
196
  <div class='footer quiet pad2 space-top1 center small'>
197
197
  Code coverage generated by
198
198
  <a href="https://istanbul.js.org/" target="_blank" rel="noopener noreferrer">istanbul</a>
199
- at 2026-02-17T13:52:17.739Z
199
+ at 2026-03-09T14:50:53.363Z
200
200
  </div>
201
201
  <script src="../../prettify.js"></script>
202
202
  <script>
@@ -430,7 +430,7 @@ export default CustomPropertiesViewCtx;
430
430
  <div class='footer quiet pad2 space-top1 center small'>
431
431
  Code coverage generated by
432
432
  <a href="https://istanbul.js.org/" target="_blank" rel="noopener noreferrer">istanbul</a>
433
- at 2026-02-17T13:52:17.739Z
433
+ at 2026-03-09T14:50:53.363Z
434
434
  </div>
435
435
  <script src="../../prettify.js"></script>
436
436
  <script>
@@ -604,7 +604,7 @@ export default CustomPropertyCard;
604
604
  <div class='footer quiet pad2 space-top1 center small'>
605
605
  Code coverage generated by
606
606
  <a href="https://istanbul.js.org/" target="_blank" rel="noopener noreferrer">istanbul</a>
607
- at 2026-02-17T13:52:17.739Z
607
+ at 2026-03-09T14:50:53.363Z
608
608
  </div>
609
609
  <script src="../../prettify.js"></script>
610
610
  <script>