@k-int/stripes-kint-components 5.1.1 → 5.1.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (284) hide show
  1. package/CHANGELOG.md +7 -0
  2. package/es/index.js +2 -2
  3. package/es/lib/ActionList/ActionList.js +2 -2
  4. package/es/lib/ActionList/ActionListFieldArray.js +31 -34
  5. package/es/lib/ComboButton/ComboButton.js +5 -6
  6. package/es/lib/CustomProperties/Config/CustomPropertiesLookup.js +4 -7
  7. package/es/lib/CustomProperties/Config/CustomPropertiesSettings.js +29 -32
  8. package/es/lib/CustomProperties/Config/CustomPropertyForm.js +58 -58
  9. package/es/lib/CustomProperties/Config/CustomPropertyForm.test.js +2 -2
  10. package/es/lib/CustomProperties/Config/CustomPropertyView.js +32 -33
  11. package/es/lib/CustomProperties/Config/CustomPropertyView.test.js +1 -1
  12. package/es/lib/CustomProperties/Edit/CustomPropertiesEdit.js +1 -1
  13. package/es/lib/CustomProperties/Edit/CustomPropertiesEditCtx.js +3 -3
  14. package/es/lib/CustomProperties/Edit/CustomPropertiesListField.js +8 -10
  15. package/es/lib/CustomProperties/Edit/CustomPropertyField.js +22 -28
  16. package/es/lib/CustomProperties/Edit/CustomPropertyField.test.js +5 -5
  17. package/es/lib/CustomProperties/Edit/CustomPropertyFormCard.js +2 -2
  18. package/es/lib/CustomProperties/Edit/CustomPropertyFormCard.test.js +3 -3
  19. package/es/lib/CustomProperties/Edit/testResources.js +11 -12
  20. package/es/lib/CustomProperties/Filter/CustomPropertiesFilter.js +6 -11
  21. package/es/lib/CustomProperties/Filter/CustomPropertiesFilterField.js +20 -28
  22. package/es/lib/CustomProperties/Filter/CustomPropertiesFilterField.test.js +1 -1
  23. package/es/lib/CustomProperties/Filter/CustomPropertiesFilterFieldArray.js +6 -6
  24. package/es/lib/CustomProperties/Filter/CustomPropertiesRule.js +8 -8
  25. package/es/lib/CustomProperties/Filter/testResources.js +1 -2
  26. package/es/lib/CustomProperties/Filter/useOperators.js +2 -2
  27. package/es/lib/CustomProperties/Filter/useParseActiveFilterStrings.js +1 -2
  28. package/es/lib/CustomProperties/Filter/useValueProps.js +2 -2
  29. package/es/lib/CustomProperties/View/CustomPropertiesView.js +1 -1
  30. package/es/lib/CustomProperties/View/CustomPropertiesViewCtx.js +18 -26
  31. package/es/lib/CustomProperties/View/CustomPropertyCard.js +9 -13
  32. package/es/lib/CycleButton/CycleButton.js +1 -1
  33. package/es/lib/EditableRefdataCategoryList/EditableRefdataCategoryList.js +23 -34
  34. package/es/lib/EditableRefdataList/EditableRefdataList.js +28 -35
  35. package/es/lib/EditableSettingsList/EditableSettingsListFieldArray.js +1 -1
  36. package/es/lib/EditableSettingsList/SettingField/EditSettingValue.js +5 -5
  37. package/es/lib/EditableSettingsList/SettingField/RenderSettingValue.js +10 -12
  38. package/es/lib/EditableSettingsList/SettingField/SettingField.js +6 -6
  39. package/es/lib/FormattedKintMessage/FormattedKintMessage.js +4 -7
  40. package/es/lib/IconSelect/IconSelect.js +7 -11
  41. package/es/lib/NoResultsMessage/NoResultsMessage.js +4 -4
  42. package/es/lib/QueryTypedown/QueryTypedown.js +2 -2
  43. package/es/lib/RefdataButtons/RefdataButtons.js +3 -3
  44. package/es/lib/ResponsiveButtonGroup/ResponsiveButtonGroup.js +21 -28
  45. package/es/lib/ResponsiveButtonGroup/useResponsiveButtonGroupSizing.js +5 -6
  46. package/es/lib/RichSelect/RichSelect.js +14 -19
  47. package/es/lib/RichSelect/useSelectedOption.js +1 -2
  48. package/es/lib/SASQLookupComponent/SASQLookupComponent.js +14 -17
  49. package/es/lib/SASQLookupComponent/TableBody/TableBody.js +4 -6
  50. package/es/lib/SASQRoute/SASQRoute.js +2 -2
  51. package/es/lib/SASQViewComponent/SASQViewComponent.js +5 -9
  52. package/es/lib/SettingPage/SettingPage.js +2 -2
  53. package/es/lib/SettingPage/SettingPagePane.js +2 -2
  54. package/es/lib/SettingsFormContainer/SettingsFormContainer.js +2 -2
  55. package/es/lib/Typedown/Typedown.js +21 -28
  56. package/es/lib/hooks/typedownHooks/useTypedown.js +2 -2
  57. package/es/lib/hooks/typedownHooks/useTypedownToggle.js +2 -2
  58. package/es/lib/hooks/useActiveElement.js +1 -1
  59. package/es/lib/hooks/useCustomProperties.js +2 -2
  60. package/es/lib/hooks/useHelperApp.js +8 -8
  61. package/es/lib/hooks/useIntlKeyStore.js +4 -7
  62. package/es/lib/hooks/useKintIntl.js +5 -11
  63. package/es/lib/hooks/useKiwtSASQuery.js +1 -1
  64. package/es/lib/hooks/useLocalStorageState.js +2 -2
  65. package/es/lib/hooks/useModConfigEntries.js +2 -2
  66. package/es/lib/hooks/useMutateCustomProperties.js +8 -8
  67. package/es/lib/hooks/useMutateModConfigEntry.js +2 -2
  68. package/es/lib/hooks/useMutateRefdataCategory.js +4 -4
  69. package/es/lib/hooks/useMutateRefdataValue.js +6 -6
  70. package/es/lib/hooks/useQIndex.js +7 -7
  71. package/es/lib/hooks/useRefdata.js +3 -3
  72. package/es/lib/hooks/useTemplates.js +4 -4
  73. package/es/lib/settingsHooks/useAppSettings.js +7 -11
  74. package/es/lib/settingsHooks/useSettingSection.js +2 -2
  75. package/es/lib/settingsHooks/useSettings.js +3 -3
  76. package/es/lib/utils/buildUrl.js +2 -3
  77. package/es/lib/utils/filterParsers/deparseKiwtQueryFilters.js +6 -6
  78. package/es/lib/utils/filterParsers/index.js +2 -2
  79. package/es/lib/utils/filterParsers/parseKiwtQueryFilters.js +2 -2
  80. package/es/lib/utils/filterParsers/parseKiwtQueryGroups.js +4 -5
  81. package/es/lib/utils/filterParsers/parseKiwtQueryString.js +1 -1
  82. package/es/lib/utils/generateKiwtQueryParams.js +28 -37
  83. package/es/lib/utils/groupCustomPropertiesByCtx.js +2 -3
  84. package/es/lib/utils/matchString.js +1 -1
  85. package/es/lib/utils/parseErrorResponse.js +2 -3
  86. package/es/lib/utils/selectorSafe.js +2 -3
  87. package/es/lib/utils/sortByLabel.js +2 -3
  88. package/es/lib/validators/validators.js +3 -3
  89. package/junit.xml +162 -162
  90. package/package.json +2 -1
  91. package/src/artifacts/coverage-jest/lcov-report/ActionList/ActionList.js.html +1 -1
  92. package/src/artifacts/coverage-jest/lcov-report/ActionList/ActionListFieldArray.js.html +1 -1
  93. package/src/artifacts/coverage-jest/lcov-report/ActionList/index.html +1 -1
  94. package/src/artifacts/coverage-jest/lcov-report/ActionList/index.js.html +1 -1
  95. package/src/artifacts/coverage-jest/lcov-report/ComboButton/ComboButton.js.html +1 -1
  96. package/src/artifacts/coverage-jest/lcov-report/ComboButton/index.html +1 -1
  97. package/src/artifacts/coverage-jest/lcov-report/ComboButton/index.js.html +1 -1
  98. package/src/artifacts/coverage-jest/lcov-report/CustomProperties/Config/CustomPropertiesLookup.js.html +1 -1
  99. package/src/artifacts/coverage-jest/lcov-report/CustomProperties/Config/CustomPropertiesSettings.js.html +1 -1
  100. package/src/artifacts/coverage-jest/lcov-report/CustomProperties/Config/CustomPropertyForm.js.html +1 -1
  101. package/src/artifacts/coverage-jest/lcov-report/CustomProperties/Config/CustomPropertyView.js.html +1 -1
  102. package/src/artifacts/coverage-jest/lcov-report/CustomProperties/Config/index.html +1 -1
  103. package/src/artifacts/coverage-jest/lcov-report/CustomProperties/Config/index.js.html +1 -1
  104. package/src/artifacts/coverage-jest/lcov-report/{SettingsActionList/SettingsActionList.js.html → CustomProperties/Config/testResources.js.html} +313 -256
  105. package/src/artifacts/coverage-jest/lcov-report/CustomProperties/Edit/CustomPropertiesEdit.js.html +1 -1
  106. package/src/artifacts/coverage-jest/lcov-report/CustomProperties/Edit/CustomPropertiesEditCtx.js.html +1 -1
  107. package/src/artifacts/coverage-jest/lcov-report/CustomProperties/Edit/CustomPropertiesListField.js.html +15 -6
  108. package/src/artifacts/coverage-jest/lcov-report/CustomProperties/Edit/CustomPropertyField.js.html +10 -7
  109. package/src/artifacts/coverage-jest/lcov-report/CustomProperties/Edit/CustomPropertyFormCard.js.html +1 -1
  110. package/src/artifacts/coverage-jest/lcov-report/CustomProperties/Edit/index.html +10 -10
  111. package/src/artifacts/coverage-jest/lcov-report/CustomProperties/Edit/index.js.html +1 -1
  112. package/src/artifacts/coverage-jest/lcov-report/CustomProperties/Edit/testResources.js.html +1 -1
  113. package/src/artifacts/coverage-jest/lcov-report/CustomProperties/Filter/CustomPropertiesFilter.js.html +1 -1
  114. package/src/artifacts/coverage-jest/lcov-report/CustomProperties/Filter/CustomPropertiesFilterField.js.html +1 -1
  115. package/src/artifacts/coverage-jest/lcov-report/CustomProperties/Filter/CustomPropertiesFilterFieldArray.js.html +1 -1
  116. package/src/artifacts/coverage-jest/lcov-report/CustomProperties/Filter/CustomPropertiesFilterForm.js.html +1 -1
  117. package/src/artifacts/coverage-jest/lcov-report/CustomProperties/Filter/CustomPropertiesRule.js.html +1 -1
  118. package/src/artifacts/coverage-jest/lcov-report/CustomProperties/Filter/index.html +1 -1
  119. package/src/artifacts/coverage-jest/lcov-report/CustomProperties/Filter/index.js.html +1 -1
  120. package/src/artifacts/coverage-jest/lcov-report/CustomProperties/Filter/testResources.js.html +1 -1
  121. package/src/artifacts/coverage-jest/lcov-report/CustomProperties/Filter/useOperators.js.html +1 -1
  122. package/src/artifacts/coverage-jest/lcov-report/CustomProperties/Filter/useParseActiveFilterStrings.js.html +1 -1
  123. package/src/artifacts/coverage-jest/lcov-report/CustomProperties/Filter/useValueProps.js.html +1 -1
  124. package/src/artifacts/coverage-jest/lcov-report/CustomProperties/View/CustomPropertiesView.js.html +1 -1
  125. package/src/artifacts/coverage-jest/lcov-report/CustomProperties/View/CustomPropertiesViewCtx.js.html +1 -1
  126. package/src/artifacts/coverage-jest/lcov-report/CustomProperties/View/CustomPropertyCard.js.html +1 -1
  127. package/src/artifacts/coverage-jest/lcov-report/CustomProperties/View/index.html +1 -1
  128. package/src/artifacts/coverage-jest/lcov-report/CustomProperties/View/index.js.html +1 -1
  129. package/src/artifacts/coverage-jest/lcov-report/CustomProperties/View/testResources.js.html +1 -1
  130. package/src/artifacts/coverage-jest/lcov-report/CustomProperties/index.html +1 -1
  131. package/src/artifacts/coverage-jest/lcov-report/CustomProperties/index.js.html +1 -1
  132. package/src/artifacts/coverage-jest/lcov-report/CycleButton/CycleButton.js.html +1 -1
  133. package/src/artifacts/coverage-jest/lcov-report/CycleButton/index.html +1 -1
  134. package/src/artifacts/coverage-jest/lcov-report/CycleButton/index.js.html +1 -1
  135. package/src/artifacts/coverage-jest/lcov-report/EditableRefdataCategoryList/EditableRefdataCategoryList.js.html +1 -1
  136. package/src/artifacts/coverage-jest/lcov-report/EditableRefdataCategoryList/index.html +1 -1
  137. package/src/artifacts/coverage-jest/lcov-report/EditableRefdataCategoryList/index.js.html +1 -1
  138. package/src/artifacts/coverage-jest/lcov-report/EditableRefdataList/EditableRefdataList.js.html +1 -1
  139. package/src/artifacts/coverage-jest/lcov-report/EditableRefdataList/index.html +1 -1
  140. package/src/artifacts/coverage-jest/lcov-report/EditableRefdataList/index.js.html +1 -1
  141. package/src/artifacts/coverage-jest/lcov-report/EditableSettingsList/EditableSettingsList.js.html +1 -1
  142. package/src/artifacts/coverage-jest/lcov-report/EditableSettingsList/EditableSettingsListFieldArray.js.html +1 -1
  143. package/src/artifacts/coverage-jest/lcov-report/EditableSettingsList/SettingField/EditSettingValue.js.html +1 -1
  144. package/src/artifacts/coverage-jest/lcov-report/EditableSettingsList/SettingField/RenderSettingValue.js.html +1 -1
  145. package/src/artifacts/coverage-jest/lcov-report/EditableSettingsList/SettingField/SettingField.js.html +1 -1
  146. package/src/artifacts/coverage-jest/lcov-report/EditableSettingsList/SettingField/index.html +1 -1
  147. package/src/artifacts/coverage-jest/lcov-report/EditableSettingsList/SettingField/index.js.html +1 -1
  148. package/src/artifacts/coverage-jest/lcov-report/EditableSettingsList/index.html +1 -1
  149. package/src/artifacts/coverage-jest/lcov-report/EditableSettingsList/index.js.html +1 -1
  150. package/src/artifacts/coverage-jest/lcov-report/FormModal/FormModal.js.html +1 -1
  151. package/src/artifacts/coverage-jest/lcov-report/FormModal/index.html +1 -1
  152. package/src/artifacts/coverage-jest/lcov-report/FormModal/index.js.html +1 -1
  153. package/src/artifacts/coverage-jest/lcov-report/FormattedKintMessage/FormattedKintMessage.js.html +1 -1
  154. package/src/artifacts/coverage-jest/lcov-report/FormattedKintMessage/index.html +1 -1
  155. package/src/artifacts/coverage-jest/lcov-report/FormattedKintMessage/index.js.html +1 -1
  156. package/src/artifacts/coverage-jest/lcov-report/IconSelect/IconSelect.js.html +1 -1
  157. package/src/artifacts/coverage-jest/lcov-report/IconSelect/index.html +1 -1
  158. package/src/artifacts/coverage-jest/lcov-report/IconSelect/index.js.html +1 -1
  159. package/src/artifacts/coverage-jest/lcov-report/NoResultsMessage/NoResultsMessage.js.html +1 -1
  160. package/src/artifacts/coverage-jest/lcov-report/NoResultsMessage/index.html +1 -1
  161. package/src/artifacts/coverage-jest/lcov-report/NoResultsMessage/index.js.html +1 -1
  162. package/src/artifacts/coverage-jest/lcov-report/QueryTypedown/QueryTypedown.js.html +1 -1
  163. package/src/artifacts/coverage-jest/lcov-report/QueryTypedown/index.html +1 -1
  164. package/src/artifacts/coverage-jest/lcov-report/QueryTypedown/index.js.html +1 -1
  165. package/src/artifacts/coverage-jest/lcov-report/RefdataButtons/RefdataButtons.js.html +1 -1
  166. package/src/artifacts/coverage-jest/lcov-report/RefdataButtons/index.html +1 -1
  167. package/src/artifacts/coverage-jest/lcov-report/RefdataButtons/index.js.html +1 -1
  168. package/src/artifacts/coverage-jest/lcov-report/ResponsiveButtonGroup/ResponsiveButtonGroup.js.html +1 -1
  169. package/src/artifacts/coverage-jest/lcov-report/ResponsiveButtonGroup/index.html +1 -1
  170. package/src/artifacts/coverage-jest/lcov-report/ResponsiveButtonGroup/index.js.html +1 -1
  171. package/src/artifacts/coverage-jest/lcov-report/ResponsiveButtonGroup/useResponsiveButtonGroupSizing.js.html +1 -1
  172. package/src/artifacts/coverage-jest/lcov-report/RichSelect/RichSelect.js.html +1 -1
  173. package/src/artifacts/coverage-jest/lcov-report/RichSelect/index.html +1 -1
  174. package/src/artifacts/coverage-jest/lcov-report/RichSelect/index.js.html +1 -1
  175. package/src/artifacts/coverage-jest/lcov-report/RichSelect/useSelectedOption.js.html +1 -1
  176. package/src/artifacts/coverage-jest/lcov-report/SASQLookupComponent/SASQLookupComponent.js.html +1 -1
  177. package/src/artifacts/coverage-jest/lcov-report/SASQLookupComponent/TableBody/TableBody.js.html +1 -1
  178. package/src/artifacts/coverage-jest/lcov-report/SASQLookupComponent/TableBody/index.html +1 -1
  179. package/src/artifacts/coverage-jest/lcov-report/SASQLookupComponent/TableBody/index.js.html +1 -1
  180. package/src/artifacts/coverage-jest/lcov-report/SASQLookupComponent/index.html +1 -1
  181. package/src/artifacts/coverage-jest/lcov-report/SASQLookupComponent/index.js.html +1 -1
  182. package/src/artifacts/coverage-jest/lcov-report/SASQRoute/SASQRoute.js.html +1 -1
  183. package/src/artifacts/coverage-jest/lcov-report/SASQRoute/index.html +1 -1
  184. package/src/artifacts/coverage-jest/lcov-report/SASQRoute/index.js.html +1 -1
  185. package/src/artifacts/coverage-jest/lcov-report/SASQViewComponent/SASQViewComponent.js.html +1 -1
  186. package/src/artifacts/coverage-jest/lcov-report/SASQViewComponent/index.html +1 -1
  187. package/src/artifacts/coverage-jest/lcov-report/SASQViewComponent/index.js.html +1 -1
  188. package/src/artifacts/coverage-jest/lcov-report/SearchField/SearchField.js.html +1 -1
  189. package/src/artifacts/coverage-jest/lcov-report/SearchField/index.html +1 -1
  190. package/src/artifacts/coverage-jest/lcov-report/SearchField/index.js.html +1 -1
  191. package/src/artifacts/coverage-jest/lcov-report/SettingPage/SettingPage.js.html +1 -1
  192. package/src/artifacts/coverage-jest/lcov-report/SettingPage/SettingPagePane.js.html +1 -1
  193. package/src/artifacts/coverage-jest/lcov-report/SettingPage/index.html +1 -1
  194. package/src/artifacts/coverage-jest/lcov-report/SettingPage/index.js.html +1 -1
  195. package/src/artifacts/coverage-jest/lcov-report/SettingsFormContainer/SettingsFormContainer.js.html +1 -1
  196. package/src/artifacts/coverage-jest/lcov-report/SettingsFormContainer/index.html +1 -1
  197. package/src/artifacts/coverage-jest/lcov-report/SettingsFormContainer/index.js.html +1 -1
  198. package/src/artifacts/coverage-jest/lcov-report/Typedown/Typedown.js.html +1 -1
  199. package/src/artifacts/coverage-jest/lcov-report/Typedown/index.html +1 -1
  200. package/src/artifacts/coverage-jest/lcov-report/Typedown/index.js.html +1 -1
  201. package/src/artifacts/coverage-jest/lcov-report/constants/comparators.js.html +5 -2
  202. package/src/artifacts/coverage-jest/lcov-report/constants/customProperties.js.html +1 -1
  203. package/src/artifacts/coverage-jest/lcov-report/constants/endpoints.js.html +1 -1
  204. package/src/artifacts/coverage-jest/lcov-report/constants/eventCodes.js.html +1 -1
  205. package/src/artifacts/coverage-jest/lcov-report/constants/index.html +1 -1
  206. package/src/artifacts/coverage-jest/lcov-report/contexts/SettingsContext.js.html +1 -1
  207. package/src/artifacts/coverage-jest/lcov-report/contexts/index.html +1 -1
  208. package/src/artifacts/coverage-jest/lcov-report/contexts/index.js.html +1 -1
  209. package/src/artifacts/coverage-jest/lcov-report/hooks/index.html +1 -1
  210. package/src/artifacts/coverage-jest/lcov-report/hooks/index.js.html +1 -1
  211. package/src/artifacts/coverage-jest/lcov-report/hooks/settingsHooks/index.html +1 -1
  212. package/src/artifacts/coverage-jest/lcov-report/hooks/settingsHooks/index.js.html +1 -1
  213. package/src/artifacts/coverage-jest/lcov-report/hooks/settingsHooks/useAppSettings.js.html +1 -1
  214. package/src/artifacts/coverage-jest/lcov-report/hooks/settingsHooks/useSettingSection.js.html +1 -1
  215. package/src/artifacts/coverage-jest/lcov-report/hooks/settingsHooks/useSettings.js.html +1 -1
  216. package/src/artifacts/coverage-jest/lcov-report/hooks/typedownHooks/index.html +1 -1
  217. package/src/artifacts/coverage-jest/lcov-report/hooks/typedownHooks/index.js.html +1 -1
  218. package/src/artifacts/coverage-jest/lcov-report/hooks/typedownHooks/useTypedown.js.html +1 -1
  219. package/src/artifacts/coverage-jest/lcov-report/hooks/typedownHooks/useTypedownData.js.html +1 -1
  220. package/src/artifacts/coverage-jest/lcov-report/hooks/typedownHooks/useTypedownToggle.js.html +1 -1
  221. package/src/artifacts/coverage-jest/lcov-report/hooks/useActiveElement.js.html +1 -1
  222. package/src/artifacts/coverage-jest/lcov-report/hooks/useAvailableCustomProperties.js.html +205 -0
  223. package/src/artifacts/coverage-jest/lcov-report/hooks/useCustomProperties.js.html +1 -1
  224. package/src/artifacts/coverage-jest/lcov-report/hooks/useHelperApp.js.html +1 -1
  225. package/src/artifacts/coverage-jest/lcov-report/hooks/useIntlKey.js.html +1 -1
  226. package/src/artifacts/coverage-jest/lcov-report/hooks/useIntlKeyStore.js.html +1 -1
  227. package/src/artifacts/coverage-jest/lcov-report/hooks/useInvalidateRefdata.js.html +1 -1
  228. package/src/artifacts/coverage-jest/lcov-report/hooks/useKintIntl.js.html +1 -1
  229. package/src/artifacts/coverage-jest/lcov-report/hooks/useKiwtFieldArray.js.html +1 -1
  230. package/src/artifacts/coverage-jest/lcov-report/hooks/useKiwtSASQuery.js.html +1 -1
  231. package/src/artifacts/coverage-jest/lcov-report/hooks/useLocalStorageState.js.html +1 -1
  232. package/src/artifacts/coverage-jest/lcov-report/hooks/useModConfigEntries.js.html +1 -1
  233. package/src/artifacts/coverage-jest/lcov-report/hooks/useMutateCustomProperties.js.html +1 -1
  234. package/src/artifacts/coverage-jest/lcov-report/hooks/useMutateModConfigEntry.js.html +1 -1
  235. package/src/artifacts/coverage-jest/lcov-report/hooks/useMutateRefdataCategory.js.html +1 -1
  236. package/src/artifacts/coverage-jest/lcov-report/hooks/useMutateRefdataValue.js.html +1 -1
  237. package/src/artifacts/coverage-jest/lcov-report/hooks/useQIndex.js.html +1 -1
  238. package/src/artifacts/coverage-jest/lcov-report/hooks/useRefdata.js.html +1 -1
  239. package/src/artifacts/coverage-jest/lcov-report/hooks/useSASQQueryMeta.js.html +1 -1
  240. package/src/artifacts/coverage-jest/lcov-report/hooks/useTemplates.js.html +1 -1
  241. package/src/artifacts/coverage-jest/lcov-report/index.html +10 -10
  242. package/src/artifacts/coverage-jest/lcov-report/settingsHooks/index.html +1 -1
  243. package/src/artifacts/coverage-jest/lcov-report/settingsHooks/index.js.html +1 -1
  244. package/src/artifacts/coverage-jest/lcov-report/settingsHooks/useAppSettings.js.html +1 -1
  245. package/src/artifacts/coverage-jest/lcov-report/settingsHooks/useSettingSection.js.html +1 -1
  246. package/src/artifacts/coverage-jest/lcov-report/settingsHooks/useSettings.js.html +1 -1
  247. package/src/artifacts/coverage-jest/lcov-report/utils/buildUrl.js.html +1 -1
  248. package/src/artifacts/coverage-jest/lcov-report/utils/filterParsers/deparseKiwtQueryFilters.js.html +1 -1
  249. package/src/artifacts/coverage-jest/lcov-report/utils/filterParsers/index.html +1 -1
  250. package/src/artifacts/coverage-jest/lcov-report/utils/filterParsers/index.js.html +1 -1
  251. package/src/artifacts/coverage-jest/lcov-report/utils/filterParsers/parseKiwtQueryFilters.js.html +1 -1
  252. package/src/artifacts/coverage-jest/lcov-report/utils/filterParsers/parseKiwtQueryGroups.js.html +1 -1
  253. package/src/artifacts/coverage-jest/lcov-report/utils/filterParsers/parseKiwtQueryString.js.html +1 -1
  254. package/src/artifacts/coverage-jest/lcov-report/utils/generateKiwtQuery.js.html +1 -1
  255. package/src/artifacts/coverage-jest/lcov-report/utils/generateKiwtQueryParams.js.html +1 -1
  256. package/src/artifacts/coverage-jest/lcov-report/utils/groupCustomPropertiesByCtx.js.html +1 -1
  257. package/src/artifacts/coverage-jest/lcov-report/utils/highlightString.js.html +1 -1
  258. package/src/artifacts/coverage-jest/lcov-report/utils/index.html +1 -1
  259. package/src/artifacts/coverage-jest/lcov-report/utils/index.js.html +1 -1
  260. package/src/artifacts/coverage-jest/lcov-report/utils/matchString.js.html +1 -1
  261. package/src/artifacts/coverage-jest/lcov-report/utils/modConfigEntriesQueryKey.js.html +1 -1
  262. package/src/artifacts/coverage-jest/lcov-report/utils/parseErrorResponse.js.html +1 -1
  263. package/src/artifacts/coverage-jest/lcov-report/utils/parseKiwtQueryGroups.js.html +2 -2
  264. package/src/artifacts/coverage-jest/lcov-report/utils/parseModConfigEntry.js.html +1 -1
  265. package/src/artifacts/coverage-jest/lcov-report/utils/refdataOptions.js.html +1 -1
  266. package/src/artifacts/coverage-jest/lcov-report/utils/refdataQueryKey.js.html +1 -1
  267. package/src/artifacts/coverage-jest/lcov-report/utils/renderHelpText.js.html +166 -0
  268. package/src/artifacts/coverage-jest/lcov-report/utils/selectorSafe.js.html +1 -1
  269. package/src/artifacts/coverage-jest/lcov-report/utils/sortByLabel.js.html +1 -1
  270. package/src/artifacts/coverage-jest/lcov-report/utils/toCamelCase.js.html +1 -1
  271. package/src/artifacts/coverage-jest/lcov-report/utils/typedownQueryKey.js.html +1 -1
  272. package/src/artifacts/coverage-jest/lcov-report/utils/validators.js.html +1 -1
  273. package/src/artifacts/coverage-jest/lcov-report/validators/index.html +1 -1
  274. package/src/artifacts/coverage-jest/lcov-report/validators/index.js.html +1 -1
  275. package/src/artifacts/coverage-jest/lcov-report/validators/validators.js.html +1 -1
  276. package/src/artifacts/coverage-jest/lcov.info +231 -230
  277. package/src/lib/CustomProperties/Edit/CustomPropertiesListField.js +3 -0
  278. package/src/lib/CustomProperties/Edit/CustomPropertyField.js +4 -3
  279. package/yarn-error.log +129 -0
  280. package/src/artifacts/coverage-jest/lcov-report/ActionList/ActionTrigger.js.html +0 -418
  281. package/src/artifacts/coverage-jest/lcov-report/SettingsActionList/EditSettingValue.js.html +0 -514
  282. package/src/artifacts/coverage-jest/lcov-report/SettingsActionList/RenderSettingValue.js.html +0 -358
  283. package/src/artifacts/coverage-jest/lcov-report/SettingsActionList/index.html +0 -161
  284. package/src/artifacts/coverage-jest/lcov-report/SettingsActionList/index.js.html +0 -88
@@ -6,12 +6,13 @@ Object.defineProperty(exports, "__esModule", {
6
6
  exports.default = void 0;
7
7
  var _propTypes = _interopRequireDefault(require("prop-types"));
8
8
  var _reactFinalForm = require("react-final-form");
9
+ var _orderBy = _interopRequireDefault(require("lodash/orderBy"));
9
10
  var _components = require("@folio/stripes/components");
10
11
  var CUSTOM_PROPERTY_TYPES = _interopRequireWildcard(require("../../constants/customProperties"));
11
12
  var _hooks = require("../../hooks");
12
13
  var _jsxRuntime = require("react/jsx-runtime");
13
- function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function (nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
14
- function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
14
+ function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function (e) { return e ? t : r; })(e); }
15
+ function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != typeof e && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && Object.prototype.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
15
16
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
16
17
  const CustomPropertyField = _ref => {
17
18
  let {
@@ -29,15 +30,13 @@ const CustomPropertyField = _ref => {
29
30
  setCustomProperties
30
31
  } = _ref;
31
32
  const kintIntl = (0, _hooks.useKintIntl)(passedIntlKey, passedIntlNS);
32
-
33
33
  // Set up the validator for the customProperty
34
34
  const customPropertyValidator = (fieldValue, allValues) => {
35
- var _allValues$customProp, _allValues$customProp2;
36
35
  const {
37
36
  note,
38
37
  publicNote,
39
38
  value: currentValue
40
- } = (_allValues$customProp = allValues === null || allValues === void 0 || (_allValues$customProp2 = allValues.customProperties) === null || _allValues$customProp2 === void 0 || (_allValues$customProp2 = _allValues$customProp2[customProperty === null || customProperty === void 0 ? void 0 : customProperty.value]) === null || _allValues$customProp2 === void 0 ? void 0 : _allValues$customProp2[0]) !== null && _allValues$customProp !== void 0 ? _allValues$customProp : {};
39
+ } = allValues?.customProperties?.[customProperty?.value]?.[0] ?? {};
41
40
  if (note && !currentValue || publicNote && !currentValue) {
42
41
  if (customProperty.type === CUSTOM_PROPERTY_TYPES.DECIMAL_CLASS_NAME || customProperty.type === CUSTOM_PROPERTY_TYPES.INTEGER_CLASS_NAME) {
43
42
  return kintIntl.formatKintMessage({
@@ -80,9 +79,7 @@ const CustomPropertyField = _ref => {
80
79
  return availableCustomProperties.find(cp => cp.value === customPropertyValue);
81
80
  };
82
81
  const renderCustomPropertyName = () => {
83
- var _customPropertyValue$;
84
82
  const unsetCustomProperties = availableCustomProperties.filter(t => {
85
- var _custPropValue$;
86
83
  // Only optional properties can be set
87
84
  if (t.primary) return false;
88
85
  const custPropValue = value[t.value];
@@ -91,16 +88,16 @@ const CustomPropertyField = _ref => {
91
88
  if (custPropValue === undefined) return true;
92
89
 
93
90
  // The customProperty is set but is marked for deletion. Allow reuse.
94
- if ((_custPropValue$ = custPropValue[0]) !== null && _custPropValue$ !== void 0 && _custPropValue$._delete) return true;
91
+ if (custPropValue[0]?._delete) return true;
95
92
  return false;
96
93
  });
97
94
  const customPropertyValue = value[customProperty.value];
98
- const id = customPropertyValue === null || customPropertyValue === void 0 || (_customPropertyValue$ = customPropertyValue[0]) === null || _customPropertyValue$ === void 0 ? void 0 : _customPropertyValue$.id;
95
+ const id = customPropertyValue?.[0]?.id;
99
96
  return /*#__PURE__*/(0, _jsxRuntime.jsx)(_components.Select, {
100
97
  autoFocus: !id,
101
98
  dataOptions: [customProperty, ...unsetCustomProperties] // The selected customProperty, and the available unset customProperties
102
99
  ,
103
- id: "edit-customproperty-".concat(index, "-name"),
100
+ id: `edit-customproperty-${index}-name`,
104
101
  label: kintIntl.formatKintMessage({
105
102
  id: 'customProperties.name',
106
103
  overrideValue: labelOverrides.name
@@ -132,7 +129,6 @@ const CustomPropertyField = _ref => {
132
129
  });
133
130
  };
134
131
  const renderCustomPropertyValue = () => {
135
- var _customProperty$optio;
136
132
  const currentValue = value[customProperty.value] ? value[customProperty.value][0] : {};
137
133
  const min = Number.MIN_SAFE_INTEGER;
138
134
  const max = Number.MAX_SAFE_INTEGER;
@@ -155,15 +151,16 @@ const CustomPropertyField = _ref => {
155
151
  case CUSTOM_PROPERTY_TYPES.REFDATA_CLASS_NAME:
156
152
  fieldProps = {
157
153
  component: _components.Select,
154
+ // don't order dataOptions here, notSet should always be first in list
158
155
  dataOptions: customProperty.options,
159
- format: v => v === null || v === void 0 ? void 0 : v.value
156
+ format: v => v?.value
160
157
  };
161
158
  break;
162
159
  case CUSTOM_PROPERTY_TYPES.MULTI_REFDATA_CLASS_NAME:
163
160
  fieldProps = {
164
161
  component: _components.MultiSelection,
165
162
  // The "not set" value is not relevant for a multi select
166
- dataOptions: (_customProperty$optio = customProperty.options) === null || _customProperty$optio === void 0 ? void 0 : _customProperty$optio.filter(opt => !!(opt !== null && opt !== void 0 && opt.value)),
163
+ dataOptions: (0, _orderBy.default)(customProperty.options?.filter(opt => !!opt?.value), 'label'),
167
164
  renderToOverlay: true
168
165
  };
169
166
  // MultiSelection passes the changed array as a value not an event
@@ -172,7 +169,7 @@ const CustomPropertyField = _ref => {
172
169
  ...value,
173
170
  [customProperty.value]: [{
174
171
  ...currentValue,
175
- _delete: (refdataArray === null || refdataArray === void 0 ? void 0 : refdataArray.length) === 0 ? true : undefined,
172
+ _delete: refdataArray?.length === 0 ? true : undefined,
176
173
  // Delete customProperty if removing all values.
177
174
  value: refdataArray
178
175
  }]
@@ -223,12 +220,12 @@ const CustomPropertyField = _ref => {
223
220
  }
224
221
  return /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactFinalForm.Field, {
225
222
  "data-test-customproperty-value": true,
226
- id: "edit-customproperty-".concat(index, "-value"),
223
+ id: `edit-customproperty-${index}-value`,
227
224
  label: kintIntl.formatKintMessage({
228
225
  id: 'customProperties.value',
229
226
  overrideValue: labelOverrides.value
230
227
  }),
231
- name: "".concat(name, ".").concat(customProperty.value, "[0].value"),
228
+ name: `${name}.${customProperty.value}[0].value`,
232
229
  onChange: handleChange,
233
230
  required: !customProperty.primary,
234
231
  validate: (fieldValue, allValues) => customPropertyValidator(fieldValue, allValues),
@@ -236,8 +233,7 @@ const CustomPropertyField = _ref => {
236
233
  });
237
234
  };
238
235
  const renderCustomPropertyVisibility = () => {
239
- var _value$customProperty, _value$customProperty2, _customPropertyObject;
240
- const customPropertyObject = (_value$customProperty = (_value$customProperty2 = value[customProperty.value]) === null || _value$customProperty2 === void 0 ? void 0 : _value$customProperty2[0]) !== null && _value$customProperty !== void 0 ? _value$customProperty : {};
236
+ const customPropertyObject = value[customProperty.value]?.[0] ?? {};
241
237
  const handleChange = e => {
242
238
  onChange({
243
239
  ...value,
@@ -262,18 +258,17 @@ const CustomPropertyField = _ref => {
262
258
  overrideValue: labelOverrides.internalFalse
263
259
  })
264
260
  }],
265
- id: "edit-customproperty-".concat(index, "-visibility"),
261
+ id: `edit-customproperty-${index}-visibility`,
266
262
  label: kintIntl.formatKintMessage({
267
263
  id: 'customProperties.visibility',
268
264
  overrideValue: labelOverrides.visibility
269
265
  }),
270
266
  onChange: handleChange,
271
- value: (_customPropertyObject = customPropertyObject === null || customPropertyObject === void 0 ? void 0 : customPropertyObject.internal) !== null && _customPropertyObject !== void 0 ? _customPropertyObject : customProperty.defaultInternal
267
+ value: customPropertyObject?.internal ?? customProperty.defaultInternal
272
268
  });
273
269
  };
274
270
  const renderCustomPropertyNoteInternal = () => {
275
- var _value$customProperty3, _value$customProperty4;
276
- const customPropertyObject = (_value$customProperty3 = (_value$customProperty4 = value[customProperty.value]) === null || _value$customProperty4 === void 0 ? void 0 : _value$customProperty4[0]) !== null && _value$customProperty3 !== void 0 ? _value$customProperty3 : {};
271
+ const customPropertyObject = value[customProperty.value]?.[0] ?? {};
277
272
  const handleChange = e => {
278
273
  onChange({
279
274
  ...value,
@@ -285,18 +280,17 @@ const CustomPropertyField = _ref => {
285
280
  };
286
281
  return /*#__PURE__*/(0, _jsxRuntime.jsx)(_components.TextArea, {
287
282
  "data-test-customproperty-note": true,
288
- id: "edit-customproperty-".concat(index, "-internal-note"),
283
+ id: `edit-customproperty-${index}-internal-note`,
289
284
  label: kintIntl.formatKintMessage({
290
285
  id: 'customProperties.internalNote',
291
286
  overrideValue: labelOverrides.internalNote
292
287
  }),
293
288
  onChange: handleChange,
294
- value: customPropertyObject === null || customPropertyObject === void 0 ? void 0 : customPropertyObject.note
289
+ value: customPropertyObject?.note
295
290
  });
296
291
  };
297
292
  const renderCustomPropertyNotePublic = () => {
298
- var _value$customProperty5, _value$customProperty6;
299
- const customPropertyObject = (_value$customProperty5 = (_value$customProperty6 = value[customProperty.value]) === null || _value$customProperty6 === void 0 ? void 0 : _value$customProperty6[0]) !== null && _value$customProperty5 !== void 0 ? _value$customProperty5 : {};
293
+ const customPropertyObject = value[customProperty.value]?.[0] ?? {};
300
294
  const handleChange = e => {
301
295
  onChange({
302
296
  ...value,
@@ -308,13 +302,13 @@ const CustomPropertyField = _ref => {
308
302
  };
309
303
  return /*#__PURE__*/(0, _jsxRuntime.jsx)(_components.TextArea, {
310
304
  "data-test-customproperty-public-note": true,
311
- id: "edit-customproperty-".concat(index, "-public-note"),
305
+ id: `edit-customproperty-${index}-public-note`,
312
306
  label: kintIntl.formatKintMessage({
313
307
  id: 'customProperties.publicNote',
314
308
  overrideValue: labelOverrides.publicNote
315
309
  }),
316
310
  onChange: handleChange,
317
- value: customPropertyObject === null || customPropertyObject === void 0 ? void 0 : customPropertyObject.publicNote
311
+ value: customPropertyObject?.publicNote
318
312
  });
319
313
  };
320
314
  return /*#__PURE__*/(0, _jsxRuntime.jsx)(_jsxRuntime.Fragment, {
@@ -11,11 +11,11 @@ const onSubmit = jest.fn();
11
11
  jest.mock('../../hooks');
12
12
  const onChange = () => {};
13
13
  const setCustomProperties = () => {};
14
- const authIdentCustom = _jest.availableCustomProperties === null || _jest.availableCustomProperties === void 0 ? void 0 : _jest.availableCustomProperties.find(cp => cp.value === 'AuthorIdentification');
15
- const decimalCustProp = _jest.availableCustomProperties === null || _jest.availableCustomProperties === void 0 ? void 0 : _jest.availableCustomProperties.find(cp => cp.value === 'decimal');
16
- const integerCustProp = _jest.availableCustomProperties === null || _jest.availableCustomProperties === void 0 ? void 0 : _jest.availableCustomProperties.find(cp => cp.value === 'integer');
17
- const dateCustProp = _jest.availableCustomProperties === null || _jest.availableCustomProperties === void 0 ? void 0 : _jest.availableCustomProperties.find(cp => cp.value === 'date');
18
- const multiRefdataCustProp = _jest.availableCustomProperties === null || _jest.availableCustomProperties === void 0 ? void 0 : _jest.availableCustomProperties.find(cp => cp.value === 'MultiRefdata');
14
+ const authIdentCustom = _jest.availableCustomProperties?.find(cp => cp.value === 'AuthorIdentification');
15
+ const decimalCustProp = _jest.availableCustomProperties?.find(cp => cp.value === 'decimal');
16
+ const integerCustProp = _jest.availableCustomProperties?.find(cp => cp.value === 'integer');
17
+ const dateCustProp = _jest.availableCustomProperties?.find(cp => cp.value === 'date');
18
+ const multiRefdataCustProp = _jest.availableCustomProperties?.find(cp => cp.value === 'MultiRefdata');
19
19
  const defaultProps = {
20
20
  availableCustomProperties: _jest.availableCustomProperties,
21
21
  customProperties: _jest.customProperties,
@@ -57,7 +57,7 @@ const CustomPropertyFormCard = _ref => {
57
57
  return /*#__PURE__*/(0, _jsxRuntime.jsx)(_components.Card, {
58
58
  "data-testid": "custom-property-form-card",
59
59
  headerEnd: customPropertyType === 'optional' ? /*#__PURE__*/(0, _jsxRuntime.jsx)(_components.Tooltip, {
60
- id: "customProperty-".concat(customProperty.value, "-").concat(index),
60
+ id: `customProperty-${customProperty.value}-${index}`,
61
61
  text: getTooltipText(),
62
62
  children: _ref2 => {
63
63
  let {
@@ -68,7 +68,7 @@ const CustomPropertyFormCard = _ref => {
68
68
  ref: ref,
69
69
  "aria-labelledby": ariaIds.text,
70
70
  icon: "trash",
71
- id: "edit-customproperty-".concat(index, "-delete"),
71
+ id: `edit-customproperty-${index}-delete`,
72
72
  onClick: () => handleDeleteCustomProperty(customProperty, index)
73
73
  });
74
74
  }
@@ -5,14 +5,14 @@ var _CustomPropertyFormCard = _interopRequireDefault(require("./CustomPropertyFo
5
5
  var _customProperties = _interopRequireWildcard(require("../../../../test/jest/customProperties"));
6
6
  var _jest = require("../../../../test/jest");
7
7
  var _jsxRuntime = require("react/jsx-runtime");
8
- function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function (nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
9
- function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
8
+ function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function (e) { return e ? t : r; })(e); }
9
+ function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != typeof e && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && Object.prototype.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
10
10
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
11
11
  jest.mock('../../hooks');
12
12
  jest.mock('./CustomPropertyField', () => () => /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
13
13
  children: "CustomPropertyField"
14
14
  }));
15
- const customProperty = _customProperties.availableCustomProperties === null || _customProperties.availableCustomProperties === void 0 ? void 0 : _customProperties.availableCustomProperties.find(cp => cp.value === 'AuthorIdentification');
15
+ const customProperty = _customProperties.availableCustomProperties?.find(cp => cp.value === 'AuthorIdentification');
16
16
  const onChange = jest.fn();
17
17
  const setCustomProperties = jest.fn();
18
18
  describe('CustomPropertyFormCard', () => {
@@ -5,23 +5,22 @@ Object.defineProperty(exports, "__esModule", {
5
5
  });
6
6
  exports.value = exports.initialValues = void 0;
7
7
  var _jest = require("../../../../test/jest");
8
- var _agreementStatusRefda, _agreementStatusRefda2, _licenseAmendmentStat;
9
- const agreementStatusRefdata = _jest.refdata === null || _jest.refdata === void 0 ? void 0 : _jest.refdata.find(rdc => rdc.desc === 'SubscriptionAgreement.AgreementStatus');
10
- const licenseAmendmentStatusRefdata = _jest.refdata === null || _jest.refdata === void 0 ? void 0 : _jest.refdata.find(rdc => rdc.desc === 'LicenseAmendmentStatus.Status');
8
+ const agreementStatusRefdata = _jest.refdata?.find(rdc => rdc.desc === 'SubscriptionAgreement.AgreementStatus');
9
+ const licenseAmendmentStatusRefdata = _jest.refdata?.find(rdc => rdc.desc === 'LicenseAmendmentStatus.Status');
11
10
  const value = exports.value = {
12
11
  AuthorIdentification: [{
13
12
  id: 2,
14
13
  internal: true,
15
14
  publicNote: 'this is a public note',
16
15
  note: 'this is an internal note',
17
- value: agreementStatusRefdata === null || agreementStatusRefdata === void 0 || (_agreementStatusRefda = agreementStatusRefdata.values) === null || _agreementStatusRefda === void 0 ? void 0 : _agreementStatusRefda.find(rdv => rdv.value === 'active'),
18
- type: _jest.customProperties === null || _jest.customProperties === void 0 ? void 0 : _jest.customProperties.find(cp => cp.name === 'AuthorIdentification')
16
+ value: agreementStatusRefdata?.values?.find(rdv => rdv.value === 'active'),
17
+ type: _jest.customProperties?.find(cp => cp.name === 'AuthorIdentification')
19
18
  }],
20
19
  Test: [{
21
20
  id: 4,
22
21
  internal: true,
23
- value: agreementStatusRefdata === null || agreementStatusRefdata === void 0 || (_agreementStatusRefda2 = agreementStatusRefdata.values) === null || _agreementStatusRefda2 === void 0 ? void 0 : _agreementStatusRefda2.find(rdv => rdv.value === 'active'),
24
- type: _jest.customProperties === null || _jest.customProperties === void 0 ? void 0 : _jest.customProperties.find(cp => cp.name === 'Test')
22
+ value: agreementStatusRefdata?.values?.find(rdv => rdv.value === 'active'),
23
+ type: _jest.customProperties?.find(cp => cp.name === 'Test')
25
24
  }],
26
25
  decimal: [{
27
26
  id: 8,
@@ -29,7 +28,7 @@ const value = exports.value = {
29
28
  note: 'decimal',
30
29
  internal: true,
31
30
  value: 1,
32
- type: _jest.customProperties === null || _jest.customProperties === void 0 ? void 0 : _jest.customProperties.find(cp => cp.name === 'decimal')
31
+ type: _jest.customProperties?.find(cp => cp.name === 'decimal')
33
32
  }],
34
33
  integer: [{
35
34
  id: 6,
@@ -37,7 +36,7 @@ const value = exports.value = {
37
36
  note: 'Integer',
38
37
  internal: true,
39
38
  value: 1,
40
- type: _jest.customProperties === null || _jest.customProperties === void 0 ? void 0 : _jest.customProperties.find(cp => cp.name === 'integer')
39
+ type: _jest.customProperties?.find(cp => cp.name === 'integer')
41
40
  }],
42
41
  text: [{
43
42
  id: 7,
@@ -45,15 +44,15 @@ const value = exports.value = {
45
44
  note: 'text',
46
45
  internal: true,
47
46
  value: 'text',
48
- type: _jest.customProperties === null || _jest.customProperties === void 0 ? void 0 : _jest.customProperties.find(cp => cp.name === 'text')
47
+ type: _jest.customProperties?.find(cp => cp.name === 'text')
49
48
  }],
50
49
  Refdata: [{
51
50
  id: 5,
52
51
  publicNote: 'refdata',
53
52
  note: 'refdata',
54
53
  internal: true,
55
- value: licenseAmendmentStatusRefdata === null || licenseAmendmentStatusRefdata === void 0 || (_licenseAmendmentStat = licenseAmendmentStatusRefdata.values) === null || _licenseAmendmentStat === void 0 ? void 0 : _licenseAmendmentStat.find(rdv => rdv.value === 'current'),
56
- type: _jest.customProperties === null || _jest.customProperties === void 0 ? void 0 : _jest.customProperties.find(cp => cp.name === 'Refdata')
54
+ value: licenseAmendmentStatusRefdata?.values?.find(rdv => rdv.value === 'current'),
55
+ type: _jest.customProperties?.find(cp => cp.name === 'Refdata')
57
56
  }]
58
57
  };
59
58
  const initialValues = exports.initialValues = {
@@ -14,7 +14,6 @@ var _customProperties = require("../../constants/customProperties");
14
14
  var _jsxRuntime = require("react/jsx-runtime");
15
15
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
16
16
  const CustomPropertiesFilter = _ref => {
17
- var _parsedFilterData$num, _parsedFilterData$num2;
18
17
  let {
19
18
  activeFilters: {
20
19
  customProperties: custPropFilters,
@@ -75,13 +74,9 @@ const CustomPropertiesFilter = _ref => {
75
74
  filters = []
76
75
  } = values;
77
76
  const filterStrings = filters.filter(filter => filter.rules).map(filter => {
78
- var _custprops$filter$, _custprops$filter;
79
- const relevantCustomProperty = (_custprops$filter$ = custprops === null || custprops === void 0 || (_custprops$filter = custprops.filter(cp => cp.name === filter.customProperty)) === null || _custprops$filter === void 0 ? void 0 : _custprops$filter[0]) !== null && _custprops$filter$ !== void 0 ? _custprops$filter$ : {};
80
- const filterByValueId = (relevantCustomProperty === null || relevantCustomProperty === void 0 ? void 0 : relevantCustomProperty.type) === _customProperties.MULTI_REFDATA_CLASS_NAME || (relevantCustomProperty === null || relevantCustomProperty === void 0 ? void 0 : relevantCustomProperty.type) === _customProperties.REFDATA_CLASS_NAME;
81
- return filter.rules.map(rule => {
82
- var _rule$value;
83
- return "customProperties.".concat(filter.customProperty, ".value").concat(filterByValueId ? '.id' : '').concat(rule.operator).concat((_rule$value = rule.value) !== null && _rule$value !== void 0 ? _rule$value : '');
84
- }).join('||');
77
+ const relevantCustomProperty = custprops?.filter(cp => cp.name === filter.customProperty)?.[0] ?? {};
78
+ const filterByValueId = relevantCustomProperty?.type === _customProperties.MULTI_REFDATA_CLASS_NAME || relevantCustomProperty?.type === _customProperties.REFDATA_CLASS_NAME;
79
+ return filter.rules.map(rule => `customProperties.${filter.customProperty}.value${filterByValueId ? '.id' : ''}${rule.operator}${rule.value ?? ''}`).join('||');
85
80
  });
86
81
  filterHandlers.state({
87
82
  ...restOfFilters,
@@ -92,7 +87,7 @@ const CustomPropertiesFilter = _ref => {
92
87
  };
93
88
  return /*#__PURE__*/(0, _jsxRuntime.jsxs)(_components.Accordion, {
94
89
  closedByDefault: true,
95
- displayClearButton: ((_parsedFilterData$num = parsedFilterData === null || parsedFilterData === void 0 ? void 0 : parsedFilterData.numberOfFilters) !== null && _parsedFilterData$num !== void 0 ? _parsedFilterData$num : 0) > 0,
90
+ displayClearButton: (parsedFilterData?.numberOfFilters ?? 0) > 0,
96
91
  header: _components.FilterAccordionHeader,
97
92
  id: "clickable-custprop-filter",
98
93
  label: kintIntl.formatKintMessage({
@@ -110,12 +105,12 @@ const CustomPropertiesFilter = _ref => {
110
105
  id: 'customProperty.filtersApplied',
111
106
  overrideValue: labelOverrides.filtersApplied
112
107
  }, {
113
- count: (_parsedFilterData$num2 = parsedFilterData === null || parsedFilterData === void 0 ? void 0 : parsedFilterData.numberOfFilters) !== null && _parsedFilterData$num2 !== void 0 ? _parsedFilterData$num2 : 0
108
+ count: parsedFilterData?.numberOfFilters ?? 0
114
109
  })
115
110
  }), /*#__PURE__*/(0, _jsxRuntime.jsx)(_CustomPropertiesFilterForm.default, {
116
111
  customProperties: custprops,
117
112
  editingFilters: editingFilters,
118
- filters: parsedFilterData === null || parsedFilterData === void 0 ? void 0 : parsedFilterData.filters,
113
+ filters: parsedFilterData?.filters,
119
114
  handlers: {
120
115
  closeEditModal,
121
116
  openEditModal
@@ -15,7 +15,6 @@ var _hooks = require("../../hooks");
15
15
  var _jsxRuntime = require("react/jsx-runtime");
16
16
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
17
17
  const CustomPropertiesFilterField = _ref => {
18
- var _customProperties$fin, _customProperties$fin2, _fields$value$index2;
19
18
  let {
20
19
  customProperties = [],
21
20
  fields,
@@ -38,16 +37,15 @@ const CustomPropertiesFilterField = _ref => {
38
37
  const kintIntl = (0, _hooks.useKintIntl)(passedIntlKey, passedIntlNS);
39
38
  return /*#__PURE__*/(0, _jsxRuntime.jsxs)(_jsxRuntime.Fragment, {
40
39
  children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_reactFinalForm.Field, {
41
- id: "input-custprop-".concat(index),
40
+ id: `input-custprop-${index}`,
42
41
  label: kintIntl.formatKintMessage({
43
42
  id: 'customProperty',
44
43
  overrideValue: labelOverrides.customProperty
45
44
  }),
46
- name: "".concat(name, ".customProperty"),
45
+ name: `${name}.customProperty`,
47
46
  placeholder: " ",
48
47
  render: fieldProps => {
49
- var _Object$entries;
50
- const sortedGroupedCustProps = (_Object$entries = Object.entries(groupedCustomProperties)) === null || _Object$entries === void 0 ? void 0 : _Object$entries.sort((a, b) => {
48
+ const sortedGroupedCustProps = Object.entries(groupedCustomProperties)?.sort((a, b) => {
51
49
  if (a[0] === 'isNull') return -1; // Make sure noContext is at top
52
50
 
53
51
  if (a[0].toLowerCase() < b[0].toLowerCase()) return -1;
@@ -76,22 +74,19 @@ const CustomPropertiesFilterField = _ref => {
76
74
  }) : v.label
77
75
  }, v.id);
78
76
  })
79
- }, "custom-property-optgroup-".concat(key));
77
+ }, `custom-property-optgroup-${key}`);
80
78
  })]
81
79
  });
82
80
  },
83
81
  required: true,
84
82
  validate: _validators.required
85
83
  }), /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
86
- "data-testid": "selected-custprop-name-".concat(index),
87
- id: "selected-custprop-name-".concat(index),
84
+ "data-testid": `selected-custprop-name-${index}`,
85
+ id: `selected-custprop-name-${index}`,
88
86
  style: {
89
87
  display: 'none'
90
88
  },
91
- children: (_customProperties$fin = (_customProperties$fin2 = customProperties.find(t => {
92
- var _fields$value$index;
93
- return t.name === ((_fields$value$index = fields.value[index]) === null || _fields$value$index === void 0 ? void 0 : _fields$value$index.customProperty);
94
- })) === null || _customProperties$fin2 === void 0 ? void 0 : _customProperties$fin2.label) !== null && _customProperties$fin !== void 0 ? _customProperties$fin : ''
89
+ children: customProperties.find(t => t.name === fields.value[index]?.customProperty)?.label ?? ''
95
90
  }), /*#__PURE__*/(0, _jsxRuntime.jsxs)(_components.Row, {
96
91
  children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_components.Col, {
97
92
  xs: 2
@@ -119,29 +114,26 @@ const CustomPropertiesFilterField = _ref => {
119
114
  xs: 2
120
115
  })]
121
116
  }), /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactFinalFormArrays.FieldArray, {
122
- name: "".concat(name, ".rules"),
117
+ name: `${name}.rules`,
123
118
  children: _ref3 => {
124
119
  let {
125
120
  fields: ruleFields
126
121
  } = _ref3;
127
- return ruleFields.map((ruleFieldName, ruleFieldIndex) => {
128
- var _values$filters$index;
129
- return /*#__PURE__*/(0, _jsxRuntime.jsx)(_CustomPropertiesRule.default, {
130
- ariaLabelledby: "selected-custprop-name-".concat(index),
131
- clearRuleValue: () => change("filters[".concat(index, "].rules[").concat(ruleFieldIndex, "].value"), ''),
132
- custPropDefinition: customProperties.find(t => t.name === fields.value[index].customProperty),
133
- index: ruleFieldIndex,
134
- labelOverrides: labelOverrides,
135
- name: ruleFieldName,
136
- onDelete: () => ruleFields.remove(ruleFieldIndex),
137
- value: (_values$filters$index = values.filters[index]) === null || _values$filters$index === void 0 ? void 0 : _values$filters$index.rules[ruleFieldIndex]
138
- }, ruleFieldName);
139
- });
122
+ return ruleFields.map((ruleFieldName, ruleFieldIndex) => /*#__PURE__*/(0, _jsxRuntime.jsx)(_CustomPropertiesRule.default, {
123
+ ariaLabelledby: `selected-custprop-name-${index}`,
124
+ clearRuleValue: () => change(`filters[${index}].rules[${ruleFieldIndex}].value`, ''),
125
+ custPropDefinition: customProperties.find(t => t.name === fields.value[index].customProperty),
126
+ index: ruleFieldIndex,
127
+ labelOverrides: labelOverrides,
128
+ name: ruleFieldName,
129
+ onDelete: () => ruleFields.remove(ruleFieldIndex),
130
+ value: values.filters[index]?.rules[ruleFieldIndex]
131
+ }, ruleFieldName));
140
132
  }
141
133
  }), /*#__PURE__*/(0, _jsxRuntime.jsx)(_components.Button, {
142
134
  "data-test-add-rule-btn": true,
143
- disabled: !((_fields$value$index2 = fields.value[index]) !== null && _fields$value$index2 !== void 0 && _fields$value$index2.customProperty),
144
- onClick: () => push("".concat(name, ".rules")),
135
+ disabled: !fields.value[index]?.customProperty,
136
+ onClick: () => push(`${name}.rules`),
145
137
  children: kintIntl.formatKintMessage({
146
138
  id: 'addRule',
147
139
  overrideValue: labelOverrides.addRule
@@ -31,7 +31,7 @@ describe('CustomPropertiesFilterField', () => {
31
31
  fields: fields,
32
32
  index: index,
33
33
  name: name
34
- }, "custom-property-filter-field-".concat(name, "[").concat(index, "]")));
34
+ }, `custom-property-filter-field-${name}[${index}]`));
35
35
  }
36
36
  })
37
37
  })
@@ -36,7 +36,7 @@ const CustomPropertiesFilterFieldArray = _ref => {
36
36
  return /*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
37
37
  children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_components.Card, {
38
38
  headerEnd: /*#__PURE__*/(0, _jsxRuntime.jsx)(_components.Tooltip, {
39
- id: "custom-property-filter-card-delete-[".concat(index, "]-tooltip"),
39
+ id: `custom-property-filter-card-delete-[${index}]-tooltip`,
40
40
  text: kintIntl.formatKintMessage({
41
41
  id: 'customProperty.removeFilter',
42
42
  overrideValue: labelOverrides.removeFilter
@@ -52,7 +52,7 @@ const CustomPropertiesFilterFieldArray = _ref => {
52
52
  ref: ref,
53
53
  "aria-labelledby": ariaIds.text,
54
54
  icon: "trash",
55
- id: "custom-property-filter-card-delete-[".concat(index, "]"),
55
+ id: `custom-property-filter-card-delete-[${index}]`,
56
56
  onClick: () => fields.remove(index)
57
57
  });
58
58
  }
@@ -72,15 +72,15 @@ const CustomPropertiesFilterFieldArray = _ref => {
72
72
  index: index,
73
73
  labelOverrides: labelOverrides,
74
74
  name: name
75
- }, "custom-property-filter-field-".concat(name, "[").concat(index, "]"))
76
- }, "custom-property-filter-card[".concat(index, "]")), index < fields.value.length - 1 && /*#__PURE__*/(0, _jsxRuntime.jsx)(_components.Layout, {
75
+ }, `custom-property-filter-field-${name}[${index}]`)
76
+ }, `custom-property-filter-card[${index}]`), index < fields.value.length - 1 && /*#__PURE__*/(0, _jsxRuntime.jsx)(_components.Layout, {
77
77
  className: "textCentered",
78
78
  children: kintIntl.formatKintMessage({
79
79
  id: 'AND',
80
80
  overrideValue: labelOverrides.AND
81
81
  })
82
- }, "custom-property-filter[".concat(index, "]-AND"))]
83
- }, "custom-property-filter-card[".concat(index, "]-container"));
82
+ }, `custom-property-filter[${index}]-AND`)]
83
+ }, `custom-property-filter-card[${index}]-container`);
84
84
  });
85
85
  }
86
86
  }), /*#__PURE__*/(0, _jsxRuntime.jsx)(_components.Button, {
@@ -51,7 +51,7 @@ const CustomPropertiesRule = _ref => {
51
51
  const operators = (0, _useOperators.default)(custPropDefinition.type, passedIntlKey, passedIntlNS, labelOverrides);
52
52
  const valueProps = (0, _useValueProps.default)(custPropDefinition, passedIntlKey, passedIntlNS, labelOverrides);
53
53
  const kintIntl = (0, _hooks.useKintIntl)(passedIntlKey, passedIntlNS);
54
- const selectedOperator = operators.find(o => o.value === (value === null || value === void 0 ? void 0 : value.operator));
54
+ const selectedOperator = operators.find(o => o.value === value?.operator);
55
55
  return /*#__PURE__*/(0, _jsxRuntime.jsxs)(_components.Row, {
56
56
  children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_components.Col, {
57
57
  xs: 2,
@@ -65,7 +65,7 @@ const CustomPropertiesRule = _ref => {
65
65
  }), /*#__PURE__*/(0, _jsxRuntime.jsx)(_components.Col, {
66
66
  xs: 4,
67
67
  children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactFinalForm.Field, {
68
- name: "".concat(name, ".operator"),
68
+ name: `${name}.operator`,
69
69
  validate: _validators.required,
70
70
  children: _ref2 => {
71
71
  let {
@@ -74,13 +74,13 @@ const CustomPropertiesRule = _ref => {
74
74
  } = _ref2;
75
75
  return /*#__PURE__*/(0, _jsxRuntime.jsx)(_components.Select, {
76
76
  ...input,
77
- "aria-labelledby": "".concat(ariaLabelledby, "-rule-column-header-comparator"),
77
+ "aria-labelledby": `${ariaLabelledby}-rule-column-header-comparator`,
78
78
  dataOptions: operators,
79
- error: (meta === null || meta === void 0 ? void 0 : meta.touched) && (meta === null || meta === void 0 ? void 0 : meta.error),
79
+ error: meta?.touched && meta?.error,
80
80
  onChange: e => {
81
81
  input.onChange(e);
82
82
  const newlySelectedOperator = operators.find(o => o.value === e.target.value);
83
- if (newlySelectedOperator !== null && newlySelectedOperator !== void 0 && newlySelectedOperator.noValueAllowed) {
83
+ if (newlySelectedOperator?.noValueAllowed) {
84
84
  clearRuleValue();
85
85
  }
86
86
  },
@@ -91,9 +91,9 @@ const CustomPropertiesRule = _ref => {
91
91
  })
92
92
  }), /*#__PURE__*/(0, _jsxRuntime.jsx)(_components.Col, {
93
93
  xs: 4,
94
- children: selectedOperator !== null && selectedOperator !== void 0 && selectedOperator.noValueAllowed ? null : /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactFinalForm.Field, {
95
- "aria-labelledby": "".concat(ariaLabelledby, "-rule-column-header-value"),
96
- name: "".concat(name, ".value"),
94
+ children: selectedOperator?.noValueAllowed ? null : /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactFinalForm.Field, {
95
+ "aria-labelledby": `${ariaLabelledby}-rule-column-header-value`,
96
+ name: `${name}.value`,
97
97
  required: true,
98
98
  validate: _validators.required,
99
99
  ...valueProps
@@ -5,9 +5,8 @@ Object.defineProperty(exports, "__esModule", {
5
5
  });
6
6
  exports.filterHandlers = exports.data = exports.activeFilters = void 0;
7
7
  var _jest = require("../../../../test/jest");
8
- var _refdata$find;
9
8
  const activeFilters = exports.activeFilters = {
10
- 'customProperties': ["customProperties.AuthorIdentification.value==".concat(_jest.refdata === null || _jest.refdata === void 0 || (_refdata$find = _jest.refdata.find(rdc => rdc.desc === 'AuthIdent')) === null || _refdata$find === void 0 || (_refdata$find = _refdata$find.values) === null || _refdata$find === void 0 || (_refdata$find = _refdata$find.find(rdv => rdv.value === 'email_domain')) === null || _refdata$find === void 0 ? void 0 : _refdata$find.id)]
9
+ 'customProperties': [`customProperties.AuthorIdentification.value==${_jest.refdata?.find(rdc => rdc.desc === 'AuthIdent')?.values?.find(rdv => rdv.value === 'email_domain')?.id}`]
11
10
  };
12
11
  const filterHandlers = exports.filterHandlers = {
13
12
  'state': () => ({}),
@@ -6,8 +6,8 @@ Object.defineProperty(exports, "__esModule", {
6
6
  exports.default = void 0;
7
7
  var CUSTPROP_TYPES = _interopRequireWildcard(require("../../constants/customProperties"));
8
8
  var _hooks = require("../../hooks");
9
- function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function (nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
10
- function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
9
+ function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function (e) { return e ? t : r; })(e); }
10
+ function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != typeof e && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && Object.prototype.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
11
11
  const {
12
12
  REFDATA_CLASS_NAME: REFDATA,
13
13
  MULTI_REFDATA_CLASS_NAME: MULTIREFDATA,
@@ -13,14 +13,13 @@ const useParseActiveFilterStrings = function (filterStrings, passedIntlKey, pass
13
13
  const filters = filterStrings.map(filter => {
14
14
  let customProperty;
15
15
  const rules = filter.split('||').map(ruleString => {
16
- var _operators$find;
17
16
  // ruleString is constructed in this.handleSubmit passed to CustomPropertyFiltersForm
18
17
  // and has shape "customProperties.foo.value!=42"
19
18
  // OR customProperties.foo.value.id==1234, so make sure to disregard the .id
20
19
  const [customPropertyPath, rule] = ruleString.split('.value');
21
20
  const idSafeRule = rule.replace('.id', '');
22
21
  customProperty = customPropertyPath.replace('customProperties.', '');
23
- const operator = (_operators$find = operators.find(o => idSafeRule.startsWith(o))) !== null && _operators$find !== void 0 ? _operators$find : '';
22
+ const operator = operators.find(o => idSafeRule.startsWith(o)) ?? '';
24
23
  const value = idSafeRule.substring(operator.length);
25
24
  numberOfFilters += 1;
26
25
  return {