@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
package/CHANGELOG.md CHANGED
@@ -1,3 +1,10 @@
1
+ ## 5.1.3 2023-10-18
2
+ * ERM-3055 For custom properties with a pick list, "Not set" should always appear first in the list
3
+
4
+ ## 5.1.2 2023-10-06
5
+ * CustomPropertyEdit
6
+ * Added sorting by label to refdata type custom property options
7
+
1
8
  ## 5.1.1 2023-10-03
2
9
  * comparators - added !~ (Does not contain) comparator to constants array
3
10
 
package/es/index.js CHANGED
@@ -384,6 +384,6 @@ var _FormattedKintMessage = _interopRequireDefault(require("./lib/FormattedKintM
384
384
  var _ResponsiveButtonGroup = _interopRequireDefault(require("./lib/ResponsiveButtonGroup"));
385
385
  var _SettingsFormContainer = _interopRequireDefault(require("./lib/SettingsFormContainer"));
386
386
  var _ComboButton = _interopRequireDefault(require("./lib/ComboButton"));
387
- 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); }
388
- 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; }
387
+ 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); }
388
+ 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; }
389
389
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
@@ -12,8 +12,8 @@ var _finalFormArrays = _interopRequireDefault(require("final-form-arrays"));
12
12
  var _ActionListFieldArray = _interopRequireDefault(require("./ActionListFieldArray"));
13
13
  var _jsxRuntime = require("react/jsx-runtime");
14
14
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
15
- 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); }
16
- 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; }
15
+ 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); }
16
+ 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; }
17
17
  const propTypes = {
18
18
  actionAssigner: _propTypes.default.func,
19
19
  columnMapping: _propTypes.default.object,
@@ -14,8 +14,8 @@ var _hooks = require("../hooks");
14
14
  var _ActionListFieldArray = _interopRequireDefault(require("../../../styles/ActionListFieldArray.css"));
15
15
  var _jsxRuntime = require("react/jsx-runtime");
16
16
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
17
- 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); }
18
- 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; }
17
+ 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); }
18
+ 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; }
19
19
  const EDITING_ACTIONS_WIDTH = 25;
20
20
  const NON_EDITING_ACTIONS_WIDTH = 20;
21
21
  const TOTAL_WIDTH = 100;
@@ -43,7 +43,6 @@ const propTypes = {
43
43
 
44
44
  // This needs to be outside of the main component for forwardRef to work properly it seems.
45
45
  const ActionTrigger = /*#__PURE__*/(0, _react.forwardRef)((_ref, ref) => {
46
- var _action$label;
47
46
  let {
48
47
  action,
49
48
  ...actionTriggerProps
@@ -59,7 +58,7 @@ const ActionTrigger = /*#__PURE__*/(0, _react.forwardRef)((_ref, ref) => {
59
58
  ref: ref,
60
59
  marginBottom0: true,
61
60
  ...actionTriggerProps,
62
- children: (_action$label = action.label) !== null && _action$label !== void 0 ? _action$label : action.name
61
+ children: action.label ?? action.name
63
62
  });
64
63
  });
65
64
  ActionTrigger.propTypes = {
@@ -117,7 +116,6 @@ const ActionListFieldArray = /*#__PURE__*/(0, _react.forwardRef)((_ref2, ref) =>
117
116
  }
118
117
  };
119
118
  const handleSave = index => {
120
- var _actionAssigner;
121
119
  const {
122
120
  actionListActions: _a,
123
121
  fieldName: _fn,
@@ -126,7 +124,7 @@ const ActionListFieldArray = /*#__PURE__*/(0, _react.forwardRef)((_ref2, ref) =>
126
124
  } = fields.value[index];
127
125
 
128
126
  // Find "edit" entry in actionAssigner
129
- const editCallback = (_actionAssigner = actionAssigner(rowData)) === null || _actionAssigner === void 0 || (_actionAssigner = _actionAssigner.find(act => act.name === 'edit')) === null || _actionAssigner === void 0 ? void 0 : _actionAssigner.callback;
127
+ const editCallback = actionAssigner(rowData)?.find(act => act.name === 'edit')?.callback;
130
128
  if (editCallback) {
131
129
  editCallback(rowData);
132
130
  }
@@ -158,14 +156,14 @@ const ActionListFieldArray = /*#__PURE__*/(0, _react.forwardRef)((_ref2, ref) =>
158
156
  const widthsObject = {};
159
157
  visibleFields.forEach(f => {
160
158
  if (f !== 'actionListActions') {
161
- widthsObject[f] = "".concat(staticWidth, "%");
159
+ widthsObject[f] = `${staticWidth}%`;
162
160
  }
163
161
  });
164
- widthsObject.actionListActions = editing ? "".concat(EDITING_ACTIONS_WIDTH, "%") : "".concat(NON_EDITING_ACTIONS_WIDTH, "%");
162
+ widthsObject.actionListActions = editing ? `${EDITING_ACTIONS_WIDTH}%` : `${NON_EDITING_ACTIONS_WIDTH}%`;
165
163
  return widthsObject;
166
164
  };
167
165
  const renderActionButtons = data => {
168
- const fieldName = "contentData[".concat(data.rowIndex, "]");
166
+ const fieldName = `contentData[${data.rowIndex}]`;
169
167
  const {
170
168
  actionListActions: actions,
171
169
  ...rest
@@ -173,7 +171,7 @@ const ActionListFieldArray = /*#__PURE__*/(0, _react.forwardRef)((_ref2, ref) =>
173
171
  if (data.id === editing || !data.id && editing === 'NEW_ROW') {
174
172
  // Render the save/cancel buttons
175
173
  return /*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
176
- id: "action-button-parent-".concat(data.rowIndex + 1),
174
+ id: `action-button-parent-${data.rowIndex + 1}`,
177
175
  children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_components.Button, {
178
176
  buttonStyle: "primary",
179
177
  disabled: hasValidationErrors || submitting || pristine,
@@ -193,9 +191,9 @@ const ActionListFieldArray = /*#__PURE__*/(0, _react.forwardRef)((_ref2, ref) =>
193
191
  type: "submit",
194
192
  children: kintIntl.formatKintMessage({
195
193
  id: 'save',
196
- overrideValue: labelOverrides === null || labelOverrides === void 0 ? void 0 : labelOverrides.save
194
+ overrideValue: labelOverrides?.save
197
195
  })
198
- }, "save[".concat(data.rowIndex, "]")), /*#__PURE__*/(0, _jsxRuntime.jsx)(_components.Button, {
196
+ }, `save[${data.rowIndex}]`), /*#__PURE__*/(0, _jsxRuntime.jsx)(_components.Button, {
199
197
  "data-type-button": "cancel",
200
198
  marginBottom0: true,
201
199
  onClick: () => {
@@ -209,14 +207,14 @@ const ActionListFieldArray = /*#__PURE__*/(0, _react.forwardRef)((_ref2, ref) =>
209
207
  },
210
208
  children: kintIntl.formatKintMessage({
211
209
  id: 'cancel',
212
- overrideValue: labelOverrides === null || labelOverrides === void 0 ? void 0 : labelOverrides.cancel
210
+ overrideValue: labelOverrides?.cancel
213
211
  })
214
- }, "cancel[".concat(data.rowIndex, "]"))]
212
+ }, `cancel[${data.rowIndex}]`)]
215
213
  });
216
214
  }
217
215
  return /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
218
- id: "action-button-parent-".concat(data.rowIndex + 1),
219
- children: actions === null || actions === void 0 ? void 0 : actions.map(action => {
216
+ id: `action-button-parent-${data.rowIndex + 1}`,
217
+ children: actions?.map(action => {
220
218
  let actionFunction;
221
219
  if (action.callback) {
222
220
  actionFunction = () => action.callback(rest);
@@ -226,25 +224,25 @@ const ActionListFieldArray = /*#__PURE__*/(0, _react.forwardRef)((_ref2, ref) =>
226
224
  if (action.name === 'edit') {
227
225
  actionFunction = () => toggleEditing(data.id);
228
226
  }
229
- let ariaLabel = "action-".concat(action.name, "[").concat(data.rowIndex, "]");
230
- if (action !== null && action !== void 0 && action.ariaLabel) {
227
+ let ariaLabel = `action-${action.name}[${data.rowIndex}]`;
228
+ if (action?.ariaLabel) {
231
229
  if (typeof action.ariaLabel === 'function') {
232
230
  ariaLabel = action.ariaLabel(data);
233
231
  } else if (typeof action.ariaLabel === 'string') {
234
232
  ariaLabel = action.ariaLabel;
235
233
  } else {
236
- throw new Error("Provided ariaLabel for action \"".concat(action.name, "\" must be a function or a string."));
234
+ throw new Error(`Provided ariaLabel for action "${action.name}" must be a function or a string.`);
237
235
  }
238
236
  }
239
237
  let tooltip;
240
238
  let tooltipSub;
241
- if (action !== null && action !== void 0 && action.tooltip) {
239
+ if (action?.tooltip) {
242
240
  if (typeof action.tooltip === 'function') {
243
241
  tooltip = action.tooltip(data);
244
242
  } else {
245
243
  tooltip = action.tooltip;
246
244
  }
247
- if (action !== null && action !== void 0 && action.tooltipSub) {
245
+ if (action?.tooltipSub) {
248
246
  if (typeof action.tooltipSub === 'function') {
249
247
  tooltipSub = action.tooltipSub(data);
250
248
  } else {
@@ -256,7 +254,7 @@ const ActionListFieldArray = /*#__PURE__*/(0, _react.forwardRef)((_ref2, ref) =>
256
254
  // If a tooltip is declared, render that around the actionButton
257
255
  if (tooltip) {
258
256
  return /*#__PURE__*/(0, _jsxRuntime.jsx)(_components.Tooltip, {
259
- id: "action-".concat(action.name, "[").concat(data.rowIndex, "]-tooltip"),
257
+ id: `action-${action.name}[${data.rowIndex}]-tooltip`,
260
258
  sub: tooltipSub,
261
259
  text: tooltip,
262
260
  children: _ref3 => {
@@ -278,7 +276,7 @@ const ActionListFieldArray = /*#__PURE__*/(0, _react.forwardRef)((_ref2, ref) =>
278
276
  return null;
279
277
  },
280
278
  to: action.to
281
- }, "action-".concat(action.name, "[").concat(data.rowIndex, "]"));
279
+ }, `action-${action.name}[${data.rowIndex}]`);
282
280
  }
283
281
  });
284
282
  }
@@ -296,7 +294,7 @@ const ActionListFieldArray = /*#__PURE__*/(0, _react.forwardRef)((_ref2, ref) =>
296
294
  return null;
297
295
  },
298
296
  to: action.to
299
- }, "action-".concat(action.name, "[").concat(data.rowIndex, "]"));
297
+ }, `action-${action.name}[${data.rowIndex}]`);
300
298
  })
301
299
  });
302
300
  };
@@ -328,17 +326,16 @@ const ActionListFieldArray = /*#__PURE__*/(0, _react.forwardRef)((_ref2, ref) =>
328
326
  const editingRow = cd.id === editing || !cd.id;
329
327
 
330
328
  // Default to the passed formatter values
331
- let returnValue = formatter !== null && formatter !== void 0 && formatter[key] ? formatter[key](cd) : cd[key];
329
+ let returnValue = formatter?.[key] ? formatter[key](cd) : cd[key];
332
330
 
333
331
  // If editing, replace values with fields
334
332
  if (editingRow) {
335
- var _editableFields$key, _creatableFields$key;
336
333
  /*
337
334
  Check if the property is a visible field.
338
335
  If it is not then we don't allow editing in this component.
339
336
  */
340
- const editFunction = (_editableFields$key = editableFields[key]) !== null && _editableFields$key !== void 0 ? _editableFields$key : () => true;
341
- const createFunction = (_creatableFields$key = creatableFields[key]) !== null && _creatableFields$key !== void 0 ? _creatableFields$key : () => true;
337
+ const editFunction = editableFields[key] ?? (() => true);
338
+ const createFunction = creatableFields[key] ?? (() => true);
342
339
  /*
343
340
  Next check if this is a new row, if so we should run the createableField function with the data.
344
341
  If it is not a new row, then we run the editableField function with the data,
@@ -349,19 +346,19 @@ const ActionListFieldArray = /*#__PURE__*/(0, _react.forwardRef)((_ref2, ref) =>
349
346
  if (!cd.id && createFunction(cd) || !!cd.id && editFunction(cd)) {
350
347
  const passedObject = {
351
348
  allValues: values,
352
- index: cd === null || cd === void 0 ? void 0 : cd.fieldIndex,
349
+ index: cd?.fieldIndex,
353
350
  key,
354
- name: "".concat(cd.fieldName, ".").concat(key),
351
+ name: `${cd.fieldName}.${key}`,
355
352
  rowFieldName: cd.fieldName
356
353
  };
357
- const validateFunction = validateFields !== null && validateFields !== void 0 && validateFields[key] ? validateFields === null || validateFields === void 0 ? void 0 : validateFields[key](passedObject) : null;
354
+ const validateFunction = validateFields?.[key] ? validateFields?.[key](passedObject) : null;
358
355
  returnValue = fieldComponents[key] ? fieldComponents[key](passedObject) : /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactFinalForm.Field, {
359
356
  ariaLabel: key // TODO at the moment the only way to override this is passing in an entire fieldComponent.
360
357
  ,
361
358
  autoFocus: autoFocus,
362
359
  component: _components.TextField,
363
360
  marginBottom0: true,
364
- name: "".concat(cd.fieldName, ".").concat(key),
361
+ name: `${cd.fieldName}.${key}`,
365
362
  parse: v => v,
366
363
  validate: validateFunction
367
364
  });
@@ -386,7 +383,7 @@ const ActionListFieldArray = /*#__PURE__*/(0, _react.forwardRef)((_ref2, ref) =>
386
383
  onClick: handleClickCreate,
387
384
  children: kintIntl.formatKintMessage({
388
385
  id: 'new',
389
- overrideValue: labelOverrides === null || labelOverrides === void 0 ? void 0 : labelOverrides.new
386
+ overrideValue: labelOverrides?.new
390
387
  })
391
388
  })]
392
389
  }), /*#__PURE__*/(0, _jsxRuntime.jsx)(_components.MultiColumnList, {
@@ -394,7 +391,7 @@ const ActionListFieldArray = /*#__PURE__*/(0, _react.forwardRef)((_ref2, ref) =>
394
391
  ...columnMapping,
395
392
  actionListActions: kintIntl.formatKintMessage({
396
393
  id: 'actions',
397
- overrideValue: labelOverrides === null || labelOverrides === void 0 ? void 0 : labelOverrides.actions
394
+ overrideValue: labelOverrides?.actions
398
395
  })
399
396
  },
400
397
  columnWidths: getColumnWidths(),
@@ -34,7 +34,7 @@ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { de
34
34
  const onToggle = (0, _react.useCallback)(() => setOpen(!open), [open, setOpen]);
35
35
 
36
36
  // FIXME a lot of this is shared with ResponsiveButtonGroup
37
- const styledDropdownButtons = (0, _react.useMemo)(() => dropdownButtons === null || dropdownButtons === void 0 ? void 0 : dropdownButtons.map(button => {
37
+ const styledDropdownButtons = (0, _react.useMemo)(() => dropdownButtons?.map(button => {
38
38
  return /*#__PURE__*/(0, _react.cloneElement)(button, {
39
39
  buttonStyle: 'dropdownItem'
40
40
  });
@@ -45,7 +45,6 @@ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { de
45
45
  children: [...styledDropdownButtons]
46
46
  }), [styledDropdownButtons]);
47
47
  const renderTrigger = (0, _react.useCallback)(_ref2 => {
48
- var _buttonProps$buttonSt;
49
48
  let {
50
49
  onToggle: toggleFunc,
51
50
  triggerRef,
@@ -58,11 +57,11 @@ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { de
58
57
  ref: triggerRef,
59
58
  "aria-label": "menu",
60
59
  buttonClass: (0, _classnames.default)(_ResponsiveButtonGroup.default.width100, _ResponsiveButtonGroup.default.dropdownButtonClass, {
61
- ["".concat(_ResponsiveButtonGroup.default.marginBottom)]: !marginBottom0
60
+ [`${_ResponsiveButtonGroup.default.marginBottom}`]: !marginBottom0
62
61
  }, {
63
- ["".concat(_ResponsiveButtonGroup.default.marginBottom0)]: marginBottom0
62
+ [`${_ResponsiveButtonGroup.default.marginBottom0}`]: marginBottom0
64
63
  }),
65
- buttonStyle: (_buttonProps$buttonSt = buttonProps === null || buttonProps === void 0 ? void 0 : buttonProps.buttonStyle) !== null && _buttonProps$buttonSt !== void 0 ? _buttonProps$buttonSt : 'default',
64
+ buttonStyle: buttonProps?.buttonStyle ?? 'default',
66
65
  onClick: toggleFunc,
67
66
  onKeyDown: keyHandler,
68
67
  type: "button",
@@ -74,7 +73,7 @@ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { de
74
73
  iconPosition: "end"
75
74
  })
76
75
  });
77
- }, [buttonProps === null || buttonProps === void 0 ? void 0 : buttonProps.buttonStyle, triggerProps, marginBottom0]);
76
+ }, [buttonProps?.buttonStyle, triggerProps, marginBottom0]);
78
77
  let comboTrigger;
79
78
  if (dropdownButtons.length > 0) {
80
79
  comboTrigger = /*#__PURE__*/(0, _jsxRuntime.jsx)(_components.Dropdown, {
@@ -133,7 +133,7 @@ const CustomPropertiesLookup = _ref => {
133
133
  contentData: custprops,
134
134
  formatter: {
135
135
  primary: data => {
136
- if (data !== null && data !== void 0 && data.primary) {
136
+ if (data?.primary) {
137
137
  return kintIntl.formatKintMessage({
138
138
  id: 'yes',
139
139
  overrideValue: labelOverrides.yes
@@ -146,13 +146,10 @@ const CustomPropertiesLookup = _ref => {
146
146
  }
147
147
  },
148
148
  type: data => kintIntl.formatKintMessage({
149
- id: "customProperties.type.".concat(data === null || data === void 0 ? void 0 : data.type),
150
- overrideValue: labelOverrides === null || labelOverrides === void 0 ? void 0 : labelOverrides[data === null || data === void 0 ? void 0 : data.type]
149
+ id: `customProperties.type.${data?.type}`,
150
+ overrideValue: labelOverrides?.[data?.type]
151
151
  }),
152
- category: data => {
153
- var _data$category;
154
- return data === null || data === void 0 || (_data$category = data.category) === null || _data$category === void 0 ? void 0 : _data$category.desc;
155
- }
152
+ category: data => data?.category?.desc
156
153
  },
157
154
  onRowClick: onSelectCustomProperty,
158
155
  visibleColumns: ['label', 'primary', 'ctx', 'weight', 'type', 'category'],
@@ -24,7 +24,6 @@ const VIEWING = 'view';
24
24
 
25
25
  // A default option for setting up panes manually
26
26
  const CustomPropertiesSettings = _ref => {
27
- var _customProperty$label, _customProperty$label2, _customProperty$categ, _customProperty$label3, _customProperty$label4;
28
27
  let {
29
28
  afterQueryCalls,
30
29
  catchQueryCalls,
@@ -69,7 +68,7 @@ const CustomPropertiesSettings = _ref => {
69
68
  // empty string is all custoprop contexts
70
69
  label: kintIntl.formatKintMessage({
71
70
  id: 'customProperties.config.all',
72
- overrideValue: labelOverrides === null || labelOverrides === void 0 ? void 0 : labelOverrides.all
71
+ overrideValue: labelOverrides?.all
73
72
  })
74
73
  }];
75
74
  }
@@ -83,7 +82,7 @@ const CustomPropertiesSettings = _ref => {
83
82
  setMode(VIEWING);
84
83
  queryClient.invalidateQueries(['stripes-kint-components', 'useCustomProperties', 'custprops']);
85
84
  setCustomProperty(res);
86
- if (afterQueryCalls !== null && afterQueryCalls !== void 0 && afterQueryCalls.put) {
85
+ if (afterQueryCalls?.put) {
87
86
  afterQueryCalls.put(res);
88
87
  }
89
88
  },
@@ -91,7 +90,7 @@ const CustomPropertiesSettings = _ref => {
91
90
  setMode(VIEWING);
92
91
  queryClient.invalidateQueries(['stripes-kint-components', 'useCustomProperties', 'custprops']);
93
92
  setCustomProperty(res);
94
- if (afterQueryCalls !== null && afterQueryCalls !== void 0 && afterQueryCalls.post) {
93
+ if (afterQueryCalls?.post) {
95
94
  afterQueryCalls.post(res);
96
95
  }
97
96
  },
@@ -99,7 +98,7 @@ const CustomPropertiesSettings = _ref => {
99
98
  setMode(VIEWING);
100
99
  queryClient.invalidateQueries(['stripes-kint-components', 'useCustomProperties', 'custprops']);
101
100
  setCustomProperty();
102
- if (afterQueryCalls !== null && afterQueryCalls !== void 0 && afterQueryCalls.delete) {
101
+ if (afterQueryCalls?.delete) {
103
102
  afterQueryCalls.delete(res);
104
103
  }
105
104
  }
@@ -112,10 +111,10 @@ const CustomPropertiesSettings = _ref => {
112
111
  callout.sendCallout({
113
112
  message: kintIntl.formatKintMessage({
114
113
  id: 'customProperties.config.delete.errorMessage',
115
- overrideValue: labelOverrides === null || labelOverrides === void 0 ? void 0 : labelOverrides.deleteError
114
+ overrideValue: labelOverrides?.deleteError
116
115
  }, {
117
- error: errorResp === null || errorResp === void 0 ? void 0 : errorResp.message,
118
- label: customProperty === null || customProperty === void 0 ? void 0 : customProperty.label
116
+ error: errorResp?.message,
117
+ label: customProperty?.label
119
118
  }),
120
119
  type: 'error'
121
120
  });
@@ -124,22 +123,20 @@ const CustomPropertiesSettings = _ref => {
124
123
  },
125
124
 
126
125
  endpoint: customPropertiesEndpoint,
127
- id: customProperty === null || customProperty === void 0 ? void 0 : customProperty.id
126
+ id: customProperty?.id
128
127
  });
129
128
  const handeContextSubmit = submitData => {
130
- var _submitData$ctx$0$val, _submitData$ctx;
131
129
  return {
132
130
  ...submitData,
133
- ctx: (_submitData$ctx$0$val = submitData === null || submitData === void 0 || (_submitData$ctx = submitData.ctx) === null || _submitData$ctx === void 0 || (_submitData$ctx = _submitData$ctx[0]) === null || _submitData$ctx === void 0 ? void 0 : _submitData$ctx.value) !== null && _submitData$ctx$0$val !== void 0 ? _submitData$ctx$0$val : ''
131
+ ctx: submitData?.ctx?.[0]?.value ?? ''
134
132
  };
135
133
  };
136
134
 
137
135
  // When POSTing a custom property, the backend expects a shorthand "Integer" or "LocalDate"
138
136
  // When PUTing a custom property, the backend needs the full class name
139
137
  const handleType = submitData => {
140
- var _typeRegex$exec;
141
138
  const typeRegex = /(com\.k_int\.web\.toolkit\.custprops\.types\.CustomProperty)(.*)/g;
142
- const typeMatch = (_typeRegex$exec = typeRegex.exec(submitData === null || submitData === void 0 ? void 0 : submitData.type)) !== null && _typeRegex$exec !== void 0 ? _typeRegex$exec : [];
139
+ const typeMatch = typeRegex.exec(submitData?.type) ?? [];
143
140
  return {
144
141
  ...submitData,
145
142
  type: typeMatch[2]
@@ -156,7 +153,7 @@ const CustomPropertiesSettings = _ref => {
156
153
  ,
157
154
  children: kintIntl.formatKintMessage({
158
155
  id: 'new',
159
- overrideValue: labelOverrides === null || labelOverrides === void 0 ? void 0 : labelOverrides.new
156
+ overrideValue: labelOverrides?.new
160
157
  })
161
158
  }),
162
159
  paneTitle: kintIntl.formatKintMessage({
@@ -186,10 +183,10 @@ const CustomPropertiesSettings = _ref => {
186
183
  icon: "edit",
187
184
  children: kintIntl.formatKintMessage({
188
185
  id: 'edit',
189
- overrideValue: labelOverrides === null || labelOverrides === void 0 ? void 0 : labelOverrides.edit
186
+ overrideValue: labelOverrides?.edit
190
187
  })
191
188
  })
192
- }, "".concat(customProperty.name, "-action-edit")));
189
+ }, `${customProperty.name}-action-edit`));
193
190
  }
194
191
  if (deleteCondition) {
195
192
  actionsArray.push( /*#__PURE__*/(0, _jsxRuntime.jsx)(_components.Button, {
@@ -203,12 +200,12 @@ const CustomPropertiesSettings = _ref => {
203
200
  icon: "trash",
204
201
  children: kintIntl.formatKintMessage({
205
202
  id: 'delete',
206
- overrideValue: labelOverrides === null || labelOverrides === void 0 ? void 0 : labelOverrides.delete
203
+ overrideValue: labelOverrides?.delete
207
204
  })
208
205
  })
209
- }, "".concat(customProperty.name, "-action-delete")));
206
+ }, `${customProperty.name}-action-delete`));
210
207
  }
211
- return actionsArray !== null && actionsArray !== void 0 && actionsArray.length ? actionsArray : null;
208
+ return actionsArray?.length ? actionsArray : null;
212
209
  },
213
210
  defaultWidth: "fill",
214
211
  dismissible: true,
@@ -216,10 +213,10 @@ const CustomPropertiesSettings = _ref => {
216
213
  onClose: () => setCustomProperty(),
217
214
  paneTitle: kintIntl.formatKintMessage({
218
215
  id: 'customProperties.config.viewPaneTitle',
219
- overrideValue: labelOverrides === null || labelOverrides === void 0 ? void 0 : labelOverrides.viewPaneTitle,
220
- fallbackMessage: (_customProperty$label = customProperty === null || customProperty === void 0 ? void 0 : customProperty.label) !== null && _customProperty$label !== void 0 ? _customProperty$label : customProperty === null || customProperty === void 0 ? void 0 : customProperty.name
216
+ overrideValue: labelOverrides?.viewPaneTitle,
217
+ fallbackMessage: customProperty?.label ?? customProperty?.name
221
218
  }, {
222
- name: (_customProperty$label2 = customProperty === null || customProperty === void 0 ? void 0 : customProperty.label) !== null && _customProperty$label2 !== void 0 ? _customProperty$label2 : customProperty === null || customProperty === void 0 ? void 0 : customProperty.name
219
+ name: customProperty?.label ?? customProperty?.name
223
220
  }),
224
221
  children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_CustomPropertyView.default, {
225
222
  customProperty: customProperty,
@@ -236,22 +233,22 @@ const CustomPropertiesSettings = _ref => {
236
233
  defaultInternal: true
237
234
  } : {
238
235
  ...customProperty,
239
- ctx: customProperty !== null && customProperty !== void 0 && customProperty.ctx ? [{
236
+ ctx: customProperty?.ctx ? [{
240
237
  value: customProperty.ctx,
241
238
  label: customProperty.ctx
242
239
  }] : null,
243
- category: customProperty !== null && customProperty !== void 0 && customProperty.category ? customProperty === null || customProperty === void 0 || (_customProperty$categ = customProperty.category) === null || _customProperty$categ === void 0 ? void 0 : _customProperty$categ.id : null
240
+ category: customProperty?.category ? customProperty?.category?.id : null
244
241
  },
245
242
  modalProps: {
246
243
  dismissible: true,
247
244
  label: mode === CREATING ? kintIntl.formatKintMessage({
248
245
  id: 'customProperties.config.newModal',
249
- overrideValue: labelOverrides === null || labelOverrides === void 0 ? void 0 : labelOverrides.newModalTitle
246
+ overrideValue: labelOverrides?.newModalTitle
250
247
  }) : kintIntl.formatKintMessage({
251
248
  id: 'customProperties.config.editModal',
252
- overrideValue: labelOverrides === null || labelOverrides === void 0 ? void 0 : labelOverrides.editModalTitle
249
+ overrideValue: labelOverrides?.editModalTitle
253
250
  }, {
254
- name: (_customProperty$label3 = customProperty === null || customProperty === void 0 ? void 0 : customProperty.label) !== null && _customProperty$label3 !== void 0 ? _customProperty$label3 : customProperty === null || customProperty === void 0 ? void 0 : customProperty.name
251
+ name: customProperty?.label ?? customProperty?.name
255
252
  }),
256
253
  onClose: () => setMode(VIEWING),
257
254
  open: mode === CREATING || mode === EDITING
@@ -272,22 +269,22 @@ const CustomPropertiesSettings = _ref => {
272
269
  buttonStyle: "danger",
273
270
  confirmLabel: kintIntl.formatKintMessage({
274
271
  id: 'delete',
275
- overrideValue: labelOverrides === null || labelOverrides === void 0 ? void 0 : labelOverrides.delete
272
+ overrideValue: labelOverrides?.delete
276
273
  }),
277
274
  heading: kintIntl.formatKintMessage({
278
275
  id: 'customProperties.config.delete.confirmHeading',
279
- overrideValue: labelOverrides === null || labelOverrides === void 0 ? void 0 : labelOverrides.confirmHeading
276
+ overrideValue: labelOverrides?.confirmHeading
280
277
  }),
281
278
  id: "delete-custprop-confirmation",
282
279
  message: kintIntl.formatKintMessage({
283
280
  id: 'customProperties.config.delete.confirmMessage',
284
- overrideValue: labelOverrides === null || labelOverrides === void 0 ? void 0 : labelOverrides.confirmMessage
281
+ overrideValue: labelOverrides?.confirmMessage
285
282
  }, {
286
- name: (_customProperty$label4 = customProperty === null || customProperty === void 0 ? void 0 : customProperty.label) !== null && _customProperty$label4 !== void 0 ? _customProperty$label4 : customProperty === null || customProperty === void 0 ? void 0 : customProperty.name
283
+ name: customProperty?.label ?? customProperty?.name
287
284
  }),
288
285
  onCancel: () => setDeleteModal(false),
289
286
  onConfirm: () => {
290
- deleteCustProp(customProperty === null || customProperty === void 0 ? void 0 : customProperty.id);
287
+ deleteCustProp(customProperty?.id);
291
288
  setCustomProperty();
292
289
  setDeleteModal(false);
293
290
  },