@k-int/stripes-kint-components 4.7.1 → 4.7.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (294) hide show
  1. package/CHANGELOG.md +8 -1
  2. package/README.md +1 -1
  3. package/es/index.js +2 -2
  4. package/es/lib/ActionList/ActionList.js +3 -4
  5. package/es/lib/ActionList/ActionListFieldArray.js +32 -36
  6. package/es/lib/ComboButton/ComboButton.js +6 -8
  7. package/es/lib/CustomProperties/Config/CustomPropertiesLookup.js +5 -9
  8. package/es/lib/CustomProperties/Config/CustomPropertiesSettings.js +30 -34
  9. package/es/lib/CustomProperties/Config/CustomPropertyForm.js +59 -60
  10. package/es/lib/CustomProperties/Config/CustomPropertyForm.test.js +2 -2
  11. package/es/lib/CustomProperties/Config/CustomPropertyView.js +33 -35
  12. package/es/lib/CustomProperties/Config/CustomPropertyView.test.js +1 -1
  13. package/es/lib/CustomProperties/Edit/CustomPropertiesEdit.js +2 -3
  14. package/es/lib/CustomProperties/Edit/CustomPropertiesEditCtx.js +4 -5
  15. package/es/lib/CustomProperties/Edit/CustomPropertiesListField.js +6 -12
  16. package/es/lib/CustomProperties/Edit/CustomPropertyField.js +21 -29
  17. package/es/lib/CustomProperties/Edit/CustomPropertyField.test.js +5 -5
  18. package/es/lib/CustomProperties/Edit/CustomPropertyFormCard.js +3 -4
  19. package/es/lib/CustomProperties/Edit/CustomPropertyFormCard.test.js +3 -3
  20. package/es/lib/CustomProperties/Edit/testResources.js +14 -17
  21. package/es/lib/CustomProperties/Filter/CustomPropertiesFilter.js +7 -13
  22. package/es/lib/CustomProperties/Filter/CustomPropertiesFilterField.js +21 -30
  23. package/es/lib/CustomProperties/Filter/CustomPropertiesFilterField.test.js +1 -1
  24. package/es/lib/CustomProperties/Filter/CustomPropertiesFilterFieldArray.js +7 -8
  25. package/es/lib/CustomProperties/Filter/CustomPropertiesFilterForm.js +1 -2
  26. package/es/lib/CustomProperties/Filter/CustomPropertiesRule.js +9 -10
  27. package/es/lib/CustomProperties/Filter/testResources.js +5 -9
  28. package/es/lib/CustomProperties/Filter/useOperators.js +3 -4
  29. package/es/lib/CustomProperties/Filter/useParseActiveFilterStrings.js +2 -4
  30. package/es/lib/CustomProperties/Filter/useValueProps.js +3 -4
  31. package/es/lib/CustomProperties/View/CustomPropertiesView.js +2 -3
  32. package/es/lib/CustomProperties/View/CustomPropertiesViewCtx.js +19 -28
  33. package/es/lib/CustomProperties/View/CustomPropertyCard.js +10 -15
  34. package/es/lib/CustomProperties/View/testResources.js +5 -9
  35. package/es/lib/CycleButton/CycleButton.js +2 -3
  36. package/es/lib/EditableRefdataCategoryList/EditableRefdataCategoryList.js +24 -36
  37. package/es/lib/EditableRefdataList/EditableRefdataList.js +29 -37
  38. package/es/lib/EditableSettingsList/EditableSettingsList.js +1 -2
  39. package/es/lib/EditableSettingsList/EditableSettingsListFieldArray.js +2 -3
  40. package/es/lib/EditableSettingsList/SettingField/EditSettingValue.js +6 -7
  41. package/es/lib/EditableSettingsList/SettingField/RenderSettingValue.js +11 -14
  42. package/es/lib/EditableSettingsList/SettingField/SettingField.js +7 -8
  43. package/es/lib/FormModal/FormModal.js +1 -2
  44. package/es/lib/FormattedKintMessage/FormattedKintMessage.js +5 -9
  45. package/es/lib/IconSelect/IconSelect.js +8 -13
  46. package/es/lib/NoResultsMessage/NoResultsMessage.js +5 -6
  47. package/es/lib/QueryTypedown/QueryTypedown.js +3 -4
  48. package/es/lib/RefdataButtons/RefdataButtons.js +4 -5
  49. package/es/lib/ResponsiveButtonGroup/ResponsiveButtonGroup.js +22 -30
  50. package/es/lib/ResponsiveButtonGroup/useResponsiveButtonGroupSizing.js +6 -8
  51. package/es/lib/RichSelect/RichSelect.js +15 -21
  52. package/es/lib/RichSelect/useSelectedOption.js +2 -4
  53. package/es/lib/SASQLookupComponent/SASQLookupComponent.js +15 -19
  54. package/es/lib/SASQLookupComponent/TableBody/TableBody.js +5 -8
  55. package/es/lib/SASQRoute/SASQRoute.js +3 -4
  56. package/es/lib/SASQViewComponent/SASQViewComponent.js +6 -11
  57. package/es/lib/SearchField/SearchField.js +1 -2
  58. package/es/lib/SettingPage/SettingPage.js +3 -4
  59. package/es/lib/SettingPage/SettingPagePane.js +3 -4
  60. package/es/lib/SettingsFormContainer/SettingsFormContainer.js +3 -4
  61. package/es/lib/Typedown/Typedown.js +22 -30
  62. package/es/lib/constants/customProperties.js +11 -22
  63. package/es/lib/constants/endpoints.js +1 -2
  64. package/es/lib/constants/eventCodes.js +3 -6
  65. package/es/lib/contexts/SettingsContext.js +1 -2
  66. package/es/lib/hooks/typedownHooks/useTypedown.js +3 -4
  67. package/es/lib/hooks/typedownHooks/useTypedownData.js +1 -2
  68. package/es/lib/hooks/typedownHooks/useTypedownToggle.js +3 -4
  69. package/es/lib/hooks/useActiveElement.js +2 -3
  70. package/es/lib/hooks/useCustomProperties.js +3 -4
  71. package/es/lib/hooks/useHelperApp.js +9 -10
  72. package/es/lib/hooks/useIntlKey.js +1 -2
  73. package/es/lib/hooks/useIntlKeyStore.js +5 -9
  74. package/es/lib/hooks/useInvalidateRefdata.js +1 -2
  75. package/es/lib/hooks/useKintIntl.js +6 -13
  76. package/es/lib/hooks/useKiwtFieldArray.js +1 -2
  77. package/es/lib/hooks/useKiwtSASQuery.js +4 -5
  78. package/es/lib/hooks/useLocalStorageState.js +3 -4
  79. package/es/lib/hooks/useModConfigEntries.js +3 -4
  80. package/es/lib/hooks/useMutateCustomProperties.js +9 -10
  81. package/es/lib/hooks/useMutateModConfigEntry.js +3 -4
  82. package/es/lib/hooks/useMutateRefdataCategory.js +5 -6
  83. package/es/lib/hooks/useMutateRefdataValue.js +7 -8
  84. package/es/lib/hooks/useQIndex.js +8 -9
  85. package/es/lib/hooks/useRefdata.js +4 -5
  86. package/es/lib/hooks/useSASQQueryMeta.js +1 -2
  87. package/es/lib/hooks/useTemplates.js +5 -6
  88. package/es/lib/settingsHooks/useAppSettings.js +8 -13
  89. package/es/lib/settingsHooks/useSettingSection.js +3 -4
  90. package/es/lib/settingsHooks/useSettings.js +4 -5
  91. package/es/lib/utils/buildUrl.js +1 -1
  92. package/es/lib/utils/generateKiwtQuery.js +1 -2
  93. package/es/lib/utils/generateKiwtQueryParams.js +28 -38
  94. package/es/lib/utils/groupCustomPropertiesByCtx.js +3 -5
  95. package/es/lib/utils/matchString.js +2 -3
  96. package/es/lib/utils/modConfigEntriesQueryKey.js +1 -2
  97. package/es/lib/utils/parseErrorResponse.js +3 -5
  98. package/es/lib/utils/parseKiwtQueryGroups.js +5 -7
  99. package/es/lib/utils/parseModConfigEntry.js +1 -2
  100. package/es/lib/utils/refdataOptions.js +2 -3
  101. package/es/lib/utils/refdataQueryKey.js +1 -2
  102. package/es/lib/utils/selectorSafe.js +4 -6
  103. package/es/lib/utils/sortByLabel.js +3 -5
  104. package/es/lib/utils/toCamelCase.js +1 -2
  105. package/es/lib/utils/typedownQueryKey.js +1 -2
  106. package/es/lib/validators/validators.js +3 -3
  107. package/package.json +12 -2
  108. package/es/artifacts/coverage-jest/lcov-report/block-navigation.js +0 -69
  109. package/es/artifacts/coverage-jest/lcov-report/prettify.js +0 -814
  110. package/es/artifacts/coverage-jest/lcov-report/sorter.js +0 -181
  111. package/junit.xml +0 -293
  112. package/src/artifacts/coverage-jest/lcov-report/ActionList/ActionList.js.html +0 -373
  113. package/src/artifacts/coverage-jest/lcov-report/ActionList/ActionListFieldArray.js.html +0 -1465
  114. package/src/artifacts/coverage-jest/lcov-report/ActionList/index.html +0 -146
  115. package/src/artifacts/coverage-jest/lcov-report/ActionList/index.js.html +0 -88
  116. package/src/artifacts/coverage-jest/lcov-report/CustomProperties/Config/CustomPropertiesLookup.js.html +0 -667
  117. package/src/artifacts/coverage-jest/lcov-report/CustomProperties/Config/CustomPropertiesSettings.js.html +0 -1240
  118. package/src/artifacts/coverage-jest/lcov-report/CustomProperties/Config/CustomPropertyForm.js.html +0 -1474
  119. package/src/artifacts/coverage-jest/lcov-report/CustomProperties/Config/CustomPropertyView.js.html +0 -733
  120. package/src/artifacts/coverage-jest/lcov-report/CustomProperties/Config/index.html +0 -176
  121. package/src/artifacts/coverage-jest/lcov-report/CustomProperties/Config/index.js.html +0 -97
  122. package/src/artifacts/coverage-jest/lcov-report/CustomProperties/Config/testResources.js.html +0 -793
  123. package/src/artifacts/coverage-jest/lcov-report/CustomProperties/Edit/CustomPropertiesEdit.js.html +0 -208
  124. package/src/artifacts/coverage-jest/lcov-report/CustomProperties/Edit/CustomPropertiesEditCtx.js.html +0 -352
  125. package/src/artifacts/coverage-jest/lcov-report/CustomProperties/Edit/CustomPropertiesListField.js.html +0 -826
  126. package/src/artifacts/coverage-jest/lcov-report/CustomProperties/Edit/CustomPropertyField.js.html +0 -1297
  127. package/src/artifacts/coverage-jest/lcov-report/CustomProperties/Edit/CustomPropertyFormCard.js.html +0 -454
  128. package/src/artifacts/coverage-jest/lcov-report/CustomProperties/Edit/index.html +0 -206
  129. package/src/artifacts/coverage-jest/lcov-report/CustomProperties/Edit/index.js.html +0 -100
  130. package/src/artifacts/coverage-jest/lcov-report/CustomProperties/Edit/testResources.js.html +0 -271
  131. package/src/artifacts/coverage-jest/lcov-report/CustomProperties/Filter/CustomPropertiesFilter.js.html +0 -499
  132. package/src/artifacts/coverage-jest/lcov-report/CustomProperties/Filter/CustomPropertiesFilterField.js.html +0 -568
  133. package/src/artifacts/coverage-jest/lcov-report/CustomProperties/Filter/CustomPropertiesFilterFieldArray.js.html +0 -415
  134. package/src/artifacts/coverage-jest/lcov-report/CustomProperties/Filter/CustomPropertiesFilterForm.js.html +0 -340
  135. package/src/artifacts/coverage-jest/lcov-report/CustomProperties/Filter/CustomPropertiesRule.js.html +0 -502
  136. package/src/artifacts/coverage-jest/lcov-report/CustomProperties/Filter/index.html +0 -251
  137. package/src/artifacts/coverage-jest/lcov-report/CustomProperties/Filter/index.js.html +0 -103
  138. package/src/artifacts/coverage-jest/lcov-report/CustomProperties/Filter/testResources.js.html +0 -223
  139. package/src/artifacts/coverage-jest/lcov-report/CustomProperties/Filter/useOperators.js.html +0 -271
  140. package/src/artifacts/coverage-jest/lcov-report/CustomProperties/Filter/useParseActiveFilterStrings.js.html +0 -199
  141. package/src/artifacts/coverage-jest/lcov-report/CustomProperties/Filter/useValueProps.js.html +0 -253
  142. package/src/artifacts/coverage-jest/lcov-report/CustomProperties/View/CustomPropertiesView.js.html +0 -211
  143. package/src/artifacts/coverage-jest/lcov-report/CustomProperties/View/CustomPropertiesViewCtx.js.html +0 -445
  144. package/src/artifacts/coverage-jest/lcov-report/CustomProperties/View/CustomPropertyCard.js.html +0 -619
  145. package/src/artifacts/coverage-jest/lcov-report/CustomProperties/View/index.html +0 -176
  146. package/src/artifacts/coverage-jest/lcov-report/CustomProperties/View/index.js.html +0 -94
  147. package/src/artifacts/coverage-jest/lcov-report/CustomProperties/View/testResources.js.html +0 -571
  148. package/src/artifacts/coverage-jest/lcov-report/CustomProperties/index.html +0 -116
  149. package/src/artifacts/coverage-jest/lcov-report/CustomProperties/index.js.html +0 -175
  150. package/src/artifacts/coverage-jest/lcov-report/CycleButton/CycleButton.js.html +0 -217
  151. package/src/artifacts/coverage-jest/lcov-report/CycleButton/index.html +0 -131
  152. package/src/artifacts/coverage-jest/lcov-report/CycleButton/index.js.html +0 -88
  153. package/src/artifacts/coverage-jest/lcov-report/EditableRefdataCategoryList/EditableRefdataCategoryList.js.html +0 -751
  154. package/src/artifacts/coverage-jest/lcov-report/EditableRefdataCategoryList/index.html +0 -131
  155. package/src/artifacts/coverage-jest/lcov-report/EditableRefdataCategoryList/index.js.html +0 -88
  156. package/src/artifacts/coverage-jest/lcov-report/EditableRefdataList/EditableRefdataList.js.html +0 -853
  157. package/src/artifacts/coverage-jest/lcov-report/EditableRefdataList/index.html +0 -131
  158. package/src/artifacts/coverage-jest/lcov-report/EditableRefdataList/index.js.html +0 -88
  159. package/src/artifacts/coverage-jest/lcov-report/EditableSettingsList/EditableSettingsList.js.html +0 -280
  160. package/src/artifacts/coverage-jest/lcov-report/EditableSettingsList/EditableSettingsListFieldArray.js.html +0 -259
  161. package/src/artifacts/coverage-jest/lcov-report/EditableSettingsList/SettingField/EditSettingValue.js.html +0 -412
  162. package/src/artifacts/coverage-jest/lcov-report/EditableSettingsList/SettingField/RenderSettingValue.js.html +0 -313
  163. package/src/artifacts/coverage-jest/lcov-report/EditableSettingsList/SettingField/SettingField.js.html +0 -574
  164. package/src/artifacts/coverage-jest/lcov-report/EditableSettingsList/SettingField/index.html +0 -161
  165. package/src/artifacts/coverage-jest/lcov-report/EditableSettingsList/SettingField/index.js.html +0 -94
  166. package/src/artifacts/coverage-jest/lcov-report/EditableSettingsList/index.html +0 -146
  167. package/src/artifacts/coverage-jest/lcov-report/EditableSettingsList/index.js.html +0 -94
  168. package/src/artifacts/coverage-jest/lcov-report/FormModal/FormModal.js.html +0 -379
  169. package/src/artifacts/coverage-jest/lcov-report/FormModal/index.html +0 -131
  170. package/src/artifacts/coverage-jest/lcov-report/FormModal/index.js.html +0 -88
  171. package/src/artifacts/coverage-jest/lcov-report/FormattedKintMessage/FormattedKintMessage.js.html +0 -247
  172. package/src/artifacts/coverage-jest/lcov-report/FormattedKintMessage/index.html +0 -131
  173. package/src/artifacts/coverage-jest/lcov-report/FormattedKintMessage/index.js.html +0 -88
  174. package/src/artifacts/coverage-jest/lcov-report/IconSelect/IconSelect.js.html +0 -508
  175. package/src/artifacts/coverage-jest/lcov-report/IconSelect/index.html +0 -131
  176. package/src/artifacts/coverage-jest/lcov-report/IconSelect/index.js.html +0 -88
  177. package/src/artifacts/coverage-jest/lcov-report/NoResultsMessage/NoResultsMessage.js.html +0 -361
  178. package/src/artifacts/coverage-jest/lcov-report/NoResultsMessage/index.html +0 -131
  179. package/src/artifacts/coverage-jest/lcov-report/NoResultsMessage/index.js.html +0 -88
  180. package/src/artifacts/coverage-jest/lcov-report/QueryTypedown/QueryTypedown.js.html +0 -205
  181. package/src/artifacts/coverage-jest/lcov-report/QueryTypedown/index.html +0 -131
  182. package/src/artifacts/coverage-jest/lcov-report/QueryTypedown/index.js.html +0 -88
  183. package/src/artifacts/coverage-jest/lcov-report/RefdataButtons/RefdataButtons.js.html +0 -370
  184. package/src/artifacts/coverage-jest/lcov-report/RefdataButtons/index.html +0 -131
  185. package/src/artifacts/coverage-jest/lcov-report/RefdataButtons/index.js.html +0 -88
  186. package/src/artifacts/coverage-jest/lcov-report/ResponsiveButtonGroup/ResponsiveButtonGroup.js.html +0 -580
  187. package/src/artifacts/coverage-jest/lcov-report/ResponsiveButtonGroup/index.html +0 -146
  188. package/src/artifacts/coverage-jest/lcov-report/ResponsiveButtonGroup/index.js.html +0 -88
  189. package/src/artifacts/coverage-jest/lcov-report/ResponsiveButtonGroup/useResponsiveButtonGroupSizing.js.html +0 -301
  190. package/src/artifacts/coverage-jest/lcov-report/RichSelect/RichSelect.js.html +0 -718
  191. package/src/artifacts/coverage-jest/lcov-report/RichSelect/index.html +0 -146
  192. package/src/artifacts/coverage-jest/lcov-report/RichSelect/index.js.html +0 -91
  193. package/src/artifacts/coverage-jest/lcov-report/RichSelect/useSelectedOption.js.html +0 -127
  194. package/src/artifacts/coverage-jest/lcov-report/SASQLookupComponent/SASQLookupComponent.js.html +0 -1069
  195. package/src/artifacts/coverage-jest/lcov-report/SASQLookupComponent/TableBody/TableBody.js.html +0 -400
  196. package/src/artifacts/coverage-jest/lcov-report/SASQLookupComponent/TableBody/index.html +0 -131
  197. package/src/artifacts/coverage-jest/lcov-report/SASQLookupComponent/TableBody/index.js.html +0 -88
  198. package/src/artifacts/coverage-jest/lcov-report/SASQLookupComponent/index.html +0 -131
  199. package/src/artifacts/coverage-jest/lcov-report/SASQLookupComponent/index.js.html +0 -91
  200. package/src/artifacts/coverage-jest/lcov-report/SASQRoute/SASQRoute.js.html +0 -346
  201. package/src/artifacts/coverage-jest/lcov-report/SASQRoute/index.html +0 -131
  202. package/src/artifacts/coverage-jest/lcov-report/SASQRoute/index.js.html +0 -88
  203. package/src/artifacts/coverage-jest/lcov-report/SASQViewComponent/SASQViewComponent.js.html +0 -307
  204. package/src/artifacts/coverage-jest/lcov-report/SASQViewComponent/index.html +0 -131
  205. package/src/artifacts/coverage-jest/lcov-report/SASQViewComponent/index.js.html +0 -88
  206. package/src/artifacts/coverage-jest/lcov-report/SearchField/SearchField.js.html +0 -214
  207. package/src/artifacts/coverage-jest/lcov-report/SearchField/index.html +0 -131
  208. package/src/artifacts/coverage-jest/lcov-report/SearchField/index.js.html +0 -88
  209. package/src/artifacts/coverage-jest/lcov-report/SettingPage/SettingPage.js.html +0 -220
  210. package/src/artifacts/coverage-jest/lcov-report/SettingPage/SettingPagePane.js.html +0 -208
  211. package/src/artifacts/coverage-jest/lcov-report/SettingPage/index.html +0 -146
  212. package/src/artifacts/coverage-jest/lcov-report/SettingPage/index.js.html +0 -91
  213. package/src/artifacts/coverage-jest/lcov-report/SettingsFormContainer/SettingsFormContainer.js.html +0 -337
  214. package/src/artifacts/coverage-jest/lcov-report/SettingsFormContainer/index.html +0 -131
  215. package/src/artifacts/coverage-jest/lcov-report/SettingsFormContainer/index.js.html +0 -88
  216. package/src/artifacts/coverage-jest/lcov-report/Typedown/Typedown.js.html +0 -913
  217. package/src/artifacts/coverage-jest/lcov-report/Typedown/index.html +0 -131
  218. package/src/artifacts/coverage-jest/lcov-report/Typedown/index.js.html +0 -88
  219. package/src/artifacts/coverage-jest/lcov-report/base.css +0 -224
  220. package/src/artifacts/coverage-jest/lcov-report/block-navigation.js +0 -87
  221. package/src/artifacts/coverage-jest/lcov-report/constants/customProperties.js.html +0 -121
  222. package/src/artifacts/coverage-jest/lcov-report/constants/endpoints.js.html +0 -91
  223. package/src/artifacts/coverage-jest/lcov-report/constants/eventCodes.js.html +0 -94
  224. package/src/artifacts/coverage-jest/lcov-report/constants/index.html +0 -146
  225. package/src/artifacts/coverage-jest/lcov-report/contexts/SettingsContext.js.html +0 -97
  226. package/src/artifacts/coverage-jest/lcov-report/contexts/index.html +0 -131
  227. package/src/artifacts/coverage-jest/lcov-report/contexts/index.js.html +0 -91
  228. package/src/artifacts/coverage-jest/lcov-report/favicon.png +0 -0
  229. package/src/artifacts/coverage-jest/lcov-report/hooks/index.html +0 -401
  230. package/src/artifacts/coverage-jest/lcov-report/hooks/index.js.html +0 -142
  231. package/src/artifacts/coverage-jest/lcov-report/hooks/settingsHooks/index.html +0 -161
  232. package/src/artifacts/coverage-jest/lcov-report/hooks/settingsHooks/index.js.html +0 -94
  233. package/src/artifacts/coverage-jest/lcov-report/hooks/settingsHooks/useAppSettings.js.html +0 -292
  234. package/src/artifacts/coverage-jest/lcov-report/hooks/settingsHooks/useSettingSection.js.html +0 -214
  235. package/src/artifacts/coverage-jest/lcov-report/hooks/settingsHooks/useSettings.js.html +0 -463
  236. package/src/artifacts/coverage-jest/lcov-report/hooks/typedownHooks/index.html +0 -161
  237. package/src/artifacts/coverage-jest/lcov-report/hooks/typedownHooks/index.js.html +0 -94
  238. package/src/artifacts/coverage-jest/lcov-report/hooks/typedownHooks/useTypedown.js.html +0 -520
  239. package/src/artifacts/coverage-jest/lcov-report/hooks/typedownHooks/useTypedownData.js.html +0 -181
  240. package/src/artifacts/coverage-jest/lcov-report/hooks/typedownHooks/useTypedownToggle.js.html +0 -163
  241. package/src/artifacts/coverage-jest/lcov-report/hooks/useActiveElement.js.html +0 -157
  242. package/src/artifacts/coverage-jest/lcov-report/hooks/useAvailableCustomProperties.js.html +0 -205
  243. package/src/artifacts/coverage-jest/lcov-report/hooks/useCustomProperties.js.html +0 -325
  244. package/src/artifacts/coverage-jest/lcov-report/hooks/useHelperApp.js.html +0 -295
  245. package/src/artifacts/coverage-jest/lcov-report/hooks/useIntlKey.js.html +0 -151
  246. package/src/artifacts/coverage-jest/lcov-report/hooks/useIntlKeyStore.js.html +0 -199
  247. package/src/artifacts/coverage-jest/lcov-report/hooks/useInvalidateRefdata.js.html +0 -118
  248. package/src/artifacts/coverage-jest/lcov-report/hooks/useKintIntl.js.html +0 -238
  249. package/src/artifacts/coverage-jest/lcov-report/hooks/useKiwtFieldArray.js.html +0 -274
  250. package/src/artifacts/coverage-jest/lcov-report/hooks/useKiwtSASQuery.js.html +0 -196
  251. package/src/artifacts/coverage-jest/lcov-report/hooks/useLocalStorageState.js.html +0 -136
  252. package/src/artifacts/coverage-jest/lcov-report/hooks/useModConfigEntries.js.html +0 -226
  253. package/src/artifacts/coverage-jest/lcov-report/hooks/useMutateCustomProperties.js.html +0 -283
  254. package/src/artifacts/coverage-jest/lcov-report/hooks/useMutateModConfigEntry.js.html +0 -238
  255. package/src/artifacts/coverage-jest/lcov-report/hooks/useMutateRefdataCategory.js.html +0 -274
  256. package/src/artifacts/coverage-jest/lcov-report/hooks/useMutateRefdataValue.js.html +0 -322
  257. package/src/artifacts/coverage-jest/lcov-report/hooks/useQIndex.js.html +0 -208
  258. package/src/artifacts/coverage-jest/lcov-report/hooks/useRefdata.js.html +0 -265
  259. package/src/artifacts/coverage-jest/lcov-report/hooks/useSASQQueryMeta.js.html +0 -187
  260. package/src/artifacts/coverage-jest/lcov-report/hooks/useTemplates.js.html +0 -166
  261. package/src/artifacts/coverage-jest/lcov-report/index.html +0 -611
  262. package/src/artifacts/coverage-jest/lcov-report/prettify.css +0 -1
  263. package/src/artifacts/coverage-jest/lcov-report/prettify.js +0 -2
  264. package/src/artifacts/coverage-jest/lcov-report/settingsHooks/index.html +0 -161
  265. package/src/artifacts/coverage-jest/lcov-report/settingsHooks/index.js.html +0 -94
  266. package/src/artifacts/coverage-jest/lcov-report/settingsHooks/useAppSettings.js.html +0 -292
  267. package/src/artifacts/coverage-jest/lcov-report/settingsHooks/useSettingSection.js.html +0 -211
  268. package/src/artifacts/coverage-jest/lcov-report/settingsHooks/useSettings.js.html +0 -466
  269. package/src/artifacts/coverage-jest/lcov-report/sort-arrow-sprite.png +0 -0
  270. package/src/artifacts/coverage-jest/lcov-report/sorter.js +0 -196
  271. package/src/artifacts/coverage-jest/lcov-report/utils/buildUrl.js.html +0 -193
  272. package/src/artifacts/coverage-jest/lcov-report/utils/generateKiwtQuery.js.html +0 -109
  273. package/src/artifacts/coverage-jest/lcov-report/utils/generateKiwtQueryParams.js.html +0 -631
  274. package/src/artifacts/coverage-jest/lcov-report/utils/groupCustomPropertiesByCtx.js.html +0 -124
  275. package/src/artifacts/coverage-jest/lcov-report/utils/highlightString.js.html +0 -211
  276. package/src/artifacts/coverage-jest/lcov-report/utils/index.html +0 -356
  277. package/src/artifacts/coverage-jest/lcov-report/utils/index.js.html +0 -169
  278. package/src/artifacts/coverage-jest/lcov-report/utils/matchString.js.html +0 -127
  279. package/src/artifacts/coverage-jest/lcov-report/utils/modConfigEntriesQueryKey.js.html +0 -142
  280. package/src/artifacts/coverage-jest/lcov-report/utils/parseErrorResponse.js.html +0 -142
  281. package/src/artifacts/coverage-jest/lcov-report/utils/parseKiwtQueryGroups.js.html +0 -361
  282. package/src/artifacts/coverage-jest/lcov-report/utils/parseModConfigEntry.js.html +0 -130
  283. package/src/artifacts/coverage-jest/lcov-report/utils/refdataOptions.js.html +0 -109
  284. package/src/artifacts/coverage-jest/lcov-report/utils/refdataQueryKey.js.html +0 -112
  285. package/src/artifacts/coverage-jest/lcov-report/utils/renderHelpText.js.html +0 -166
  286. package/src/artifacts/coverage-jest/lcov-report/utils/selectorSafe.js.html +0 -145
  287. package/src/artifacts/coverage-jest/lcov-report/utils/sortByLabel.js.html +0 -130
  288. package/src/artifacts/coverage-jest/lcov-report/utils/toCamelCase.js.html +0 -127
  289. package/src/artifacts/coverage-jest/lcov-report/utils/typedownQueryKey.js.html +0 -112
  290. package/src/artifacts/coverage-jest/lcov-report/utils/validators.js.html +0 -370
  291. package/src/artifacts/coverage-jest/lcov-report/validators/index.html +0 -131
  292. package/src/artifacts/coverage-jest/lcov-report/validators/index.js.html +0 -88
  293. package/src/artifacts/coverage-jest/lcov-report/validators/validators.js.html +0 -370
  294. package/src/artifacts/coverage-jest/lcov.info +0 -5223
@@ -29,9 +29,9 @@ const CustomPropertyForm = _ref => {
29
29
  change
30
30
  } = (0, _reactFinalForm.useForm)();
31
31
  const kintIntl = (0, _hooks.useKintIntl)(passedIntlKey, passedIntlNS);
32
- const booleanToString = booleanValue => booleanValue === null || booleanValue === void 0 ? void 0 : booleanValue.toString();
32
+ const booleanToString = booleanValue => booleanValue?.toString();
33
33
  const stringToBoolean = stringValue => stringValue === 'true';
34
- const [contextOptions, setContextOptions] = (0, _react.useState)(contextFilterOptions === null || contextFilterOptions === void 0 ? void 0 : contextFilterOptions.filter(ctx => ctx.value !== '' && (ctx === null || ctx === void 0 ? void 0 : ctx.value) !== 'isNull'));
34
+ const [contextOptions, setContextOptions] = (0, _react.useState)(contextFilterOptions?.filter(ctx => ctx.value !== '' && ctx?.value !== 'isNull'));
35
35
  const addCtx = _ref2 => {
36
36
  let {
37
37
  _r,
@@ -55,7 +55,7 @@ const CustomPropertyForm = _ref => {
55
55
  } else {
56
56
  return kintIntl.formatKintMessage({
57
57
  id: 'customProperties.ctx.addContext',
58
- overrideValue: labelOverrides === null || labelOverrides === void 0 ? void 0 : labelOverrides.addCtx
58
+ overrideValue: labelOverrides?.addCtx
59
59
  }, {
60
60
  value: filterValue
61
61
  });
@@ -65,7 +65,7 @@ const CustomPropertyForm = _ref => {
65
65
  if (allValues.primary && allValues.retired) {
66
66
  return kintIntl.formatKintMessage({
67
67
  id: 'customProperties.errors.primaryRetired',
68
- overrideValue: labelOverrides === null || labelOverrides === void 0 ? void 0 : labelOverrides.primaryRetired
68
+ overrideValue: labelOverrides?.primaryRetired
69
69
  });
70
70
  }
71
71
  return null;
@@ -81,48 +81,48 @@ const CustomPropertyForm = _ref => {
81
81
  value: ''
82
82
  }, {
83
83
  label: kintIntl.formatKintMessage({
84
- id: "customProperties.type.".concat(_customProperties.DECIMAL_CLASS_NAME),
85
- overrideValue: labelOverrides === null || labelOverrides === void 0 ? void 0 : labelOverrides[_customProperties.DECIMAL_CLASS_NAME]
84
+ id: `customProperties.type.${_customProperties.DECIMAL_CLASS_NAME}`,
85
+ overrideValue: labelOverrides?.[_customProperties.DECIMAL_CLASS_NAME]
86
86
  }),
87
87
  value: _customProperties.DECIMAL_CLASS_NAME
88
88
  }, {
89
89
  label: kintIntl.formatKintMessage({
90
- id: "customProperties.type.".concat(_customProperties.INTEGER_CLASS_NAME),
91
- overrideValue: labelOverrides === null || labelOverrides === void 0 ? void 0 : labelOverrides[_customProperties.INTEGER_CLASS_NAME]
90
+ id: `customProperties.type.${_customProperties.INTEGER_CLASS_NAME}`,
91
+ overrideValue: labelOverrides?.[_customProperties.INTEGER_CLASS_NAME]
92
92
  }),
93
93
  value: _customProperties.INTEGER_CLASS_NAME
94
94
  }, {
95
95
  label: kintIntl.formatKintMessage({
96
- id: "customProperties.type.".concat(_customProperties.TEXT_CLASS_NAME),
97
- overrideValue: labelOverrides === null || labelOverrides === void 0 ? void 0 : labelOverrides[_customProperties.TEXT_CLASS_NAME]
96
+ id: `customProperties.type.${_customProperties.TEXT_CLASS_NAME}`,
97
+ overrideValue: labelOverrides?.[_customProperties.TEXT_CLASS_NAME]
98
98
  }),
99
99
  value: _customProperties.TEXT_CLASS_NAME
100
100
  }, {
101
101
  label: kintIntl.formatKintMessage({
102
- id: "customProperties.type.".concat(_customProperties.REFDATA_CLASS_NAME),
103
- overrideValue: labelOverrides === null || labelOverrides === void 0 ? void 0 : labelOverrides[_customProperties.REFDATA_CLASS_NAME]
102
+ id: `customProperties.type.${_customProperties.REFDATA_CLASS_NAME}`,
103
+ overrideValue: labelOverrides?.[_customProperties.REFDATA_CLASS_NAME]
104
104
  }),
105
105
  value: _customProperties.REFDATA_CLASS_NAME
106
106
  }, {
107
107
  label: kintIntl.formatKintMessage({
108
- id: "customProperties.type.".concat(_customProperties.MULTI_REFDATA_CLASS_NAME),
109
- overrideValue: labelOverrides === null || labelOverrides === void 0 ? void 0 : labelOverrides[_customProperties.MULTI_REFDATA_CLASS_NAME]
108
+ id: `customProperties.type.${_customProperties.MULTI_REFDATA_CLASS_NAME}`,
109
+ overrideValue: labelOverrides?.[_customProperties.MULTI_REFDATA_CLASS_NAME]
110
110
  }),
111
111
  value: _customProperties.MULTI_REFDATA_CLASS_NAME
112
112
  }, {
113
113
  label: kintIntl.formatKintMessage({
114
- id: "customProperties.type.".concat(_customProperties.DATE_CLASS_NAME),
115
- overrideValue: labelOverrides === null || labelOverrides === void 0 ? void 0 : labelOverrides[_customProperties.DATE_CLASS_NAME]
114
+ id: `customProperties.type.${_customProperties.DATE_CLASS_NAME}`,
115
+ overrideValue: labelOverrides?.[_customProperties.DATE_CLASS_NAME]
116
116
  }),
117
117
  value: _customProperties.DATE_CLASS_NAME
118
118
  }],
119
- disabled: !!(values !== null && values !== void 0 && values.id),
119
+ disabled: !!values?.id,
120
120
  label: /*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
121
121
  children: [kintIntl.formatKintMessage({
122
122
  id: 'customProperties.type',
123
- overrideValue: labelOverrides === null || labelOverrides === void 0 ? void 0 : labelOverrides.type
124
- }), helpPopovers !== null && helpPopovers !== void 0 && helpPopovers.type ? /*#__PURE__*/(0, _jsxRuntime.jsx)(_components.InfoPopover, {
125
- content: helpPopovers === null || helpPopovers === void 0 ? void 0 : helpPopovers.type
123
+ overrideValue: labelOverrides?.type
124
+ }), helpPopovers?.type ? /*#__PURE__*/(0, _jsxRuntime.jsx)(_components.InfoPopover, {
125
+ content: helpPopovers?.type
126
126
  }) : null]
127
127
  }),
128
128
  name: "type",
@@ -131,19 +131,19 @@ const CustomPropertyForm = _ref => {
131
131
  })
132
132
  }), /*#__PURE__*/(0, _jsxRuntime.jsx)(_components.Col, {
133
133
  xs: 6,
134
- children: ((values === null || values === void 0 ? void 0 : values.type) === _customProperties.REFDATA_CLASS_NAME || (values === null || values === void 0 ? void 0 : values.type) === _customProperties.MULTI_REFDATA_CLASS_NAME) && /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactFinalForm.Field, {
134
+ children: (values?.type === _customProperties.REFDATA_CLASS_NAME || values?.type === _customProperties.MULTI_REFDATA_CLASS_NAME) && /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactFinalForm.Field, {
135
135
  component: _components.Select,
136
136
  dataOptions: [{
137
137
  label: '',
138
138
  value: ''
139
139
  }, ...refdata],
140
- disabled: !!(values !== null && values !== void 0 && values.id),
140
+ disabled: !!values?.id,
141
141
  label: /*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
142
142
  children: [kintIntl.formatKintMessage({
143
143
  id: 'customProperties.category',
144
- overrideValue: labelOverrides === null || labelOverrides === void 0 ? void 0 : labelOverrides.category
145
- }), helpPopovers !== null && helpPopovers !== void 0 && helpPopovers.category ? /*#__PURE__*/(0, _jsxRuntime.jsx)(_components.InfoPopover, {
146
- content: helpPopovers === null || helpPopovers === void 0 ? void 0 : helpPopovers.category
144
+ overrideValue: labelOverrides?.category
145
+ }), helpPopovers?.category ? /*#__PURE__*/(0, _jsxRuntime.jsx)(_components.InfoPopover, {
146
+ content: helpPopovers?.category
147
147
  }) : null]
148
148
  }),
149
149
  name: "category",
@@ -160,9 +160,9 @@ const CustomPropertyForm = _ref => {
160
160
  label: /*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
161
161
  children: [kintIntl.formatKintMessage({
162
162
  id: 'customProperties.label',
163
- overrideValue: labelOverrides === null || labelOverrides === void 0 ? void 0 : labelOverrides.label
164
- }), helpPopovers !== null && helpPopovers !== void 0 && helpPopovers.label ? /*#__PURE__*/(0, _jsxRuntime.jsx)(_components.InfoPopover, {
165
- content: helpPopovers === null || helpPopovers === void 0 ? void 0 : helpPopovers.label
163
+ overrideValue: labelOverrides?.label
164
+ }), helpPopovers?.label ? /*#__PURE__*/(0, _jsxRuntime.jsx)(_components.InfoPopover, {
165
+ content: helpPopovers?.label
166
166
  }) : null]
167
167
  }),
168
168
  name: "label",
@@ -177,9 +177,9 @@ const CustomPropertyForm = _ref => {
177
177
  label: /*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
178
178
  children: [kintIntl.formatKintMessage({
179
179
  id: 'customProperties.name',
180
- overrideValue: labelOverrides === null || labelOverrides === void 0 ? void 0 : labelOverrides.name
181
- }), helpPopovers !== null && helpPopovers !== void 0 && helpPopovers.name ? /*#__PURE__*/(0, _jsxRuntime.jsx)(_components.InfoPopover, {
182
- content: helpPopovers === null || helpPopovers === void 0 ? void 0 : helpPopovers.name
180
+ overrideValue: labelOverrides?.name
181
+ }), helpPopovers?.name ? /*#__PURE__*/(0, _jsxRuntime.jsx)(_components.InfoPopover, {
182
+ content: helpPopovers?.name
183
183
  }) : null]
184
184
  }),
185
185
  name: "name",
@@ -188,7 +188,7 @@ const CustomPropertyForm = _ref => {
188
188
  if (v && v.length) {
189
189
  return /^[a-z][a-z0-9]*$/i.test(v) ? undefined : kintIntl.formatKintMessage({
190
190
  id: 'errors.hasNonAlphaName',
191
- overrideValue: labelOverrides === null || labelOverrides === void 0 ? void 0 : labelOverrides.hasNonAlphaName
191
+ overrideValue: labelOverrides?.hasNonAlphaName
192
192
  });
193
193
  }
194
194
  return (0, _validators.required)(v);
@@ -204,9 +204,9 @@ const CustomPropertyForm = _ref => {
204
204
  label: /*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
205
205
  children: [kintIntl.formatKintMessage({
206
206
  id: 'customProperties.description',
207
- overrideValue: labelOverrides === null || labelOverrides === void 0 ? void 0 : labelOverrides.description
208
- }), helpPopovers !== null && helpPopovers !== void 0 && helpPopovers.description ? /*#__PURE__*/(0, _jsxRuntime.jsx)(_components.InfoPopover, {
209
- content: helpPopovers === null || helpPopovers === void 0 ? void 0 : helpPopovers.description
207
+ overrideValue: labelOverrides?.description
208
+ }), helpPopovers?.description ? /*#__PURE__*/(0, _jsxRuntime.jsx)(_components.InfoPopover, {
209
+ content: helpPopovers?.description
210
210
  }) : null]
211
211
  }),
212
212
  name: "description",
@@ -226,20 +226,20 @@ const CustomPropertyForm = _ref => {
226
226
  dataOptions: contextOptions,
227
227
  emptyMessage: kintIntl.formatKintMessage({
228
228
  id: 'customProperties.noCtxFound',
229
- overrideValue: labelOverrides === null || labelOverrides === void 0 ? void 0 : labelOverrides.noCtxFound
229
+ overrideValue: labelOverrides?.noCtxFound
230
230
  }),
231
231
  label: /*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
232
232
  children: [kintIntl.formatKintMessage({
233
233
  id: 'customProperties.ctx',
234
- overrideValue: labelOverrides === null || labelOverrides === void 0 ? void 0 : labelOverrides.ctx
235
- }), helpPopovers !== null && helpPopovers !== void 0 && helpPopovers.ctx ? /*#__PURE__*/(0, _jsxRuntime.jsx)(_components.InfoPopover, {
236
- content: helpPopovers === null || helpPopovers === void 0 ? void 0 : helpPopovers.ctx
234
+ overrideValue: labelOverrides?.ctx
235
+ }), helpPopovers?.ctx ? /*#__PURE__*/(0, _jsxRuntime.jsx)(_components.InfoPopover, {
236
+ content: helpPopovers?.ctx
237
237
  }) : null]
238
238
  }),
239
239
  name: "ctx",
240
240
  onChange: selectedItems => {
241
241
  if (selectedItems.length) {
242
- change('ctx', [selectedItems === null || selectedItems === void 0 ? void 0 : selectedItems[(selectedItems === null || selectedItems === void 0 ? void 0 : selectedItems.length) - 1]]);
242
+ change('ctx', [selectedItems?.[selectedItems?.length - 1]]);
243
243
  } else {
244
244
  change('ctx', undefined);
245
245
  }
@@ -255,9 +255,9 @@ const CustomPropertyForm = _ref => {
255
255
  label: /*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
256
256
  children: [kintIntl.formatKintMessage({
257
257
  id: 'customProperties.weight',
258
- overrideValue: labelOverrides === null || labelOverrides === void 0 ? void 0 : labelOverrides.weight
259
- }), helpPopovers !== null && helpPopovers !== void 0 && helpPopovers.weight ? /*#__PURE__*/(0, _jsxRuntime.jsx)(_components.InfoPopover, {
260
- content: helpPopovers === null || helpPopovers === void 0 ? void 0 : helpPopovers.weight
258
+ overrideValue: labelOverrides?.weight
259
+ }), helpPopovers?.weight ? /*#__PURE__*/(0, _jsxRuntime.jsx)(_components.InfoPopover, {
260
+ content: helpPopovers?.weight
261
261
  }) : null]
262
262
  }),
263
263
  name: "weight",
@@ -272,13 +272,13 @@ const CustomPropertyForm = _ref => {
272
272
  dataOptions: [{
273
273
  label: kintIntl.formatKintMessage({
274
274
  id: 'yes',
275
- overrideValue: labelOverrides === null || labelOverrides === void 0 ? void 0 : labelOverrides.yes
275
+ overrideValue: labelOverrides?.yes
276
276
  }),
277
277
  value: 'true'
278
278
  }, {
279
279
  label: kintIntl.formatKintMessage({
280
280
  id: 'no',
281
- overrideValue: labelOverrides === null || labelOverrides === void 0 ? void 0 : labelOverrides.no
281
+ overrideValue: labelOverrides?.no
282
282
  }),
283
283
  value: 'false'
284
284
  }],
@@ -286,9 +286,9 @@ const CustomPropertyForm = _ref => {
286
286
  label: /*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
287
287
  children: [kintIntl.formatKintMessage({
288
288
  id: 'customProperties.primary',
289
- overrideValue: labelOverrides === null || labelOverrides === void 0 ? void 0 : labelOverrides.primary
290
- }), helpPopovers !== null && helpPopovers !== void 0 && helpPopovers.primary ? /*#__PURE__*/(0, _jsxRuntime.jsx)(_components.InfoPopover, {
291
- content: helpPopovers === null || helpPopovers === void 0 ? void 0 : helpPopovers.primary
289
+ overrideValue: labelOverrides?.primary
290
+ }), helpPopovers?.primary ? /*#__PURE__*/(0, _jsxRuntime.jsx)(_components.InfoPopover, {
291
+ content: helpPopovers?.primary
292
292
  }) : null]
293
293
  }),
294
294
  name: "primary",
@@ -303,13 +303,13 @@ const CustomPropertyForm = _ref => {
303
303
  dataOptions: [{
304
304
  label: kintIntl.formatKintMessage({
305
305
  id: 'yes',
306
- overrideValue: labelOverrides === null || labelOverrides === void 0 ? void 0 : labelOverrides.yes
306
+ overrideValue: labelOverrides?.yes
307
307
  }),
308
308
  value: 'true'
309
309
  }, {
310
310
  label: kintIntl.formatKintMessage({
311
311
  id: 'no',
312
- overrideValue: labelOverrides === null || labelOverrides === void 0 ? void 0 : labelOverrides.no
312
+ overrideValue: labelOverrides?.no
313
313
  }),
314
314
  value: 'false'
315
315
  }],
@@ -317,9 +317,9 @@ const CustomPropertyForm = _ref => {
317
317
  label: /*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
318
318
  children: [kintIntl.formatKintMessage({
319
319
  id: 'customProperties.retired',
320
- overrideValue: labelOverrides === null || labelOverrides === void 0 ? void 0 : labelOverrides.retired
321
- }), helpPopovers !== null && helpPopovers !== void 0 && helpPopovers.retired ? /*#__PURE__*/(0, _jsxRuntime.jsx)(_components.InfoPopover, {
322
- content: helpPopovers === null || helpPopovers === void 0 ? void 0 : helpPopovers.retired
320
+ overrideValue: labelOverrides?.retired
321
+ }), helpPopovers?.retired ? /*#__PURE__*/(0, _jsxRuntime.jsx)(_components.InfoPopover, {
322
+ content: helpPopovers?.retired
323
323
  }) : null]
324
324
  }),
325
325
  name: "retired",
@@ -334,13 +334,13 @@ const CustomPropertyForm = _ref => {
334
334
  dataOptions: [{
335
335
  label: kintIntl.formatKintMessage({
336
336
  id: 'customProperties.internalTrue',
337
- overrideValue: labelOverrides === null || labelOverrides === void 0 ? void 0 : labelOverrides.internalTrue
337
+ overrideValue: labelOverrides?.internalTrue
338
338
  }),
339
339
  value: 'true'
340
340
  }, {
341
341
  label: kintIntl.formatKintMessage({
342
342
  id: 'customProperties.internalFalse',
343
- overrideValue: labelOverrides === null || labelOverrides === void 0 ? void 0 : labelOverrides.internalFalse
343
+ overrideValue: labelOverrides?.internalFalse
344
344
  }),
345
345
  value: 'false'
346
346
  }],
@@ -348,9 +348,9 @@ const CustomPropertyForm = _ref => {
348
348
  label: /*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
349
349
  children: [kintIntl.formatKintMessage({
350
350
  id: 'customProperties.defaultVisibility',
351
- overrideValue: labelOverrides === null || labelOverrides === void 0 ? void 0 : labelOverrides.defaultVisibility
352
- }), helpPopovers !== null && helpPopovers !== void 0 && helpPopovers.defaultVisibility ? /*#__PURE__*/(0, _jsxRuntime.jsx)(_components.InfoPopover, {
353
- content: helpPopovers === null || helpPopovers === void 0 ? void 0 : helpPopovers.defaultVisibility
351
+ overrideValue: labelOverrides?.defaultVisibility
352
+ }), helpPopovers?.defaultVisibility ? /*#__PURE__*/(0, _jsxRuntime.jsx)(_components.InfoPopover, {
353
+ content: helpPopovers?.defaultVisibility
354
354
  }) : null]
355
355
  }),
356
356
  name: "defaultInternal",
@@ -370,5 +370,4 @@ CustomPropertyForm.propTypes = {
370
370
  labelOverrides: _propTypes.default.object,
371
371
  refdata: _propTypes.default.arrayOf(_propTypes.default.object)
372
372
  };
373
- var _default = CustomPropertyForm;
374
- exports.default = _default;
373
+ var _default = exports.default = CustomPropertyForm;
@@ -10,7 +10,7 @@ var _jest = require("../../../../test/jest");
10
10
  var _jsxRuntime = require("react/jsx-runtime");
11
11
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
12
12
  const initialValues = {
13
- ...(_customProperties.default === null || _customProperties.default === void 0 ? void 0 : _customProperties.default.find(cp => cp.name === 'test')),
13
+ ..._customProperties.default?.find(cp => cp.name === 'test'),
14
14
  // Just massage the type/ctx value to be of the shape the form expects
15
15
  type: 'Decimal',
16
16
  ctx: [{
@@ -141,7 +141,7 @@ describe('CustomPropertyForm', () => {
141
141
  name: 'Primary'
142
142
  })).toHaveDisplayValue('Yes');
143
143
  });
144
- ['Decimal', 'Refdata (multi-select)', 'Refdata', 'Text', 'Integer'].forEach(type => it("Displays expected ".concat(type, " option"), () => {
144
+ ['Decimal', 'Refdata (multi-select)', 'Refdata', 'Text', 'Integer'].forEach(type => it(`Displays expected ${type} option`, () => {
145
145
  const {
146
146
  getByText
147
147
  } = renderComponent;
@@ -12,7 +12,6 @@ var _jsxRuntime = require("react/jsx-runtime");
12
12
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
13
13
  // A default option for CustProp view pane, with the ability to override labels for fields
14
14
  const CustomPropertyView = _ref => {
15
- var _customProperty$ctx, _customProperty$categ, _customProperty$categ2;
16
15
  let {
17
16
  customProperty,
18
17
  helpPopovers,
@@ -29,12 +28,12 @@ const CustomPropertyView = _ref => {
29
28
  label: /*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
30
29
  children: [kintIntl.formatKintMessage({
31
30
  id: 'customProperties.label',
32
- overrideValue: labelOverrides === null || labelOverrides === void 0 ? void 0 : labelOverrides.label
33
- }), helpPopovers !== null && helpPopovers !== void 0 && helpPopovers.label ? /*#__PURE__*/(0, _jsxRuntime.jsx)(_components.InfoPopover, {
34
- content: helpPopovers === null || helpPopovers === void 0 ? void 0 : helpPopovers.label
31
+ overrideValue: labelOverrides?.label
32
+ }), helpPopovers?.label ? /*#__PURE__*/(0, _jsxRuntime.jsx)(_components.InfoPopover, {
33
+ content: helpPopovers?.label
35
34
  }) : null]
36
35
  }),
37
- value: customProperty === null || customProperty === void 0 ? void 0 : customProperty.label
36
+ value: customProperty?.label
38
37
  })
39
38
  }), /*#__PURE__*/(0, _jsxRuntime.jsx)(_components.Col, {
40
39
  xs: 6,
@@ -42,12 +41,12 @@ const CustomPropertyView = _ref => {
42
41
  label: /*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
43
42
  children: [kintIntl.formatKintMessage({
44
43
  id: 'customProperties.name',
45
- overrideValue: labelOverrides === null || labelOverrides === void 0 ? void 0 : labelOverrides.name
46
- }), helpPopovers !== null && helpPopovers !== void 0 && helpPopovers.name ? /*#__PURE__*/(0, _jsxRuntime.jsx)(_components.InfoPopover, {
47
- content: helpPopovers === null || helpPopovers === void 0 ? void 0 : helpPopovers.name
44
+ overrideValue: labelOverrides?.name
45
+ }), helpPopovers?.name ? /*#__PURE__*/(0, _jsxRuntime.jsx)(_components.InfoPopover, {
46
+ content: helpPopovers?.name
48
47
  }) : null]
49
48
  }),
50
- value: customProperty === null || customProperty === void 0 ? void 0 : customProperty.name
49
+ value: customProperty?.name
51
50
  })
52
51
  })]
53
52
  }), /*#__PURE__*/(0, _jsxRuntime.jsx)(_components.Row, {
@@ -56,9 +55,9 @@ const CustomPropertyView = _ref => {
56
55
  children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_components.KeyValue, {
57
56
  label: kintIntl.formatKintMessage({
58
57
  id: 'customProperties.description',
59
- overrideValue: labelOverrides === null || labelOverrides === void 0 ? void 0 : labelOverrides.description
58
+ overrideValue: labelOverrides?.description
60
59
  }),
61
- value: customProperty === null || customProperty === void 0 ? void 0 : customProperty.description
60
+ value: customProperty?.description
62
61
  })
63
62
  })
64
63
  }), /*#__PURE__*/(0, _jsxRuntime.jsxs)(_components.Row, {
@@ -67,11 +66,11 @@ const CustomPropertyView = _ref => {
67
66
  children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_components.KeyValue, {
68
67
  label: kintIntl.formatKintMessage({
69
68
  id: 'customProperties.primary',
70
- overrideValue: labelOverrides === null || labelOverrides === void 0 ? void 0 : labelOverrides.primary
69
+ overrideValue: labelOverrides?.primary
71
70
  }),
72
71
  value: kintIntl.formatKintMessage({
73
- id: customProperty !== null && customProperty !== void 0 && customProperty.primary ? 'yes' : 'no',
74
- overrideValue: customProperty !== null && customProperty !== void 0 && customProperty.primary ? labelOverrides.yes : labelOverrides.no
72
+ id: customProperty?.primary ? 'yes' : 'no',
73
+ overrideValue: customProperty?.primary ? labelOverrides.yes : labelOverrides.no
75
74
  })
76
75
  })
77
76
  }), /*#__PURE__*/(0, _jsxRuntime.jsx)(_components.Col, {
@@ -79,11 +78,11 @@ const CustomPropertyView = _ref => {
79
78
  children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_components.KeyValue, {
80
79
  label: kintIntl.formatKintMessage({
81
80
  id: 'customProperties.retired',
82
- overrideValue: labelOverrides === null || labelOverrides === void 0 ? void 0 : labelOverrides.retired
81
+ overrideValue: labelOverrides?.retired
83
82
  }),
84
83
  value: kintIntl.formatKintMessage({
85
- id: customProperty !== null && customProperty !== void 0 && customProperty.retired ? 'yes' : 'no',
86
- overrideValue: customProperty !== null && customProperty !== void 0 && customProperty.retired ? labelOverrides.yes : labelOverrides.no
84
+ id: customProperty?.retired ? 'yes' : 'no',
85
+ overrideValue: customProperty?.retired ? labelOverrides.yes : labelOverrides.no
87
86
  })
88
87
  })
89
88
  })]
@@ -93,20 +92,20 @@ const CustomPropertyView = _ref => {
93
92
  children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_components.KeyValue, {
94
93
  label: kintIntl.formatKintMessage({
95
94
  id: 'customProperties.weight',
96
- overrideValue: labelOverrides === null || labelOverrides === void 0 ? void 0 : labelOverrides.weight
95
+ overrideValue: labelOverrides?.weight
97
96
  }),
98
- value: customProperty === null || customProperty === void 0 ? void 0 : customProperty.weight
97
+ value: customProperty?.weight
99
98
  })
100
99
  }), /*#__PURE__*/(0, _jsxRuntime.jsx)(_components.Col, {
101
100
  xs: 6,
102
101
  children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_components.KeyValue, {
103
102
  label: kintIntl.formatKintMessage({
104
103
  id: 'customProperties.defaultVisibility',
105
- overrideValue: labelOverrides === null || labelOverrides === void 0 ? void 0 : labelOverrides.defaultVisibility
104
+ overrideValue: labelOverrides?.defaultVisibility
106
105
  }),
107
106
  value: kintIntl.formatKintMessage({
108
- id: customProperty !== null && customProperty !== void 0 && customProperty.defaultInternal ? 'customProperties.internalTrue' : 'customProperties.internalFalse',
109
- overrideValue: customProperty !== null && customProperty !== void 0 && customProperty.defaultInternal ? labelOverrides.internalTrue : labelOverrides.internalFalse
107
+ id: customProperty?.defaultInternal ? 'customProperties.internalTrue' : 'customProperties.internalFalse',
108
+ overrideValue: customProperty?.defaultInternal ? labelOverrides.internalTrue : labelOverrides.internalFalse
110
109
  })
111
110
  })
112
111
  })]
@@ -117,35 +116,35 @@ const CustomPropertyView = _ref => {
117
116
  label: /*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
118
117
  children: [kintIntl.formatKintMessage({
119
118
  id: 'customProperties.ctx',
120
- overrideValue: labelOverrides === null || labelOverrides === void 0 ? void 0 : labelOverrides.ctx
121
- }), helpPopovers !== null && helpPopovers !== void 0 && helpPopovers.ctx ? /*#__PURE__*/(0, _jsxRuntime.jsx)(_components.InfoPopover, {
122
- content: helpPopovers === null || helpPopovers === void 0 ? void 0 : helpPopovers.ctx
119
+ overrideValue: labelOverrides?.ctx
120
+ }), helpPopovers?.ctx ? /*#__PURE__*/(0, _jsxRuntime.jsx)(_components.InfoPopover, {
121
+ content: helpPopovers?.ctx
123
122
  }) : null]
124
123
  }),
125
- value: (_customProperty$ctx = customProperty === null || customProperty === void 0 ? void 0 : customProperty.ctx) !== null && _customProperty$ctx !== void 0 ? _customProperty$ctx : /*#__PURE__*/(0, _jsxRuntime.jsx)(_components.NoValue, {})
124
+ value: customProperty?.ctx ?? /*#__PURE__*/(0, _jsxRuntime.jsx)(_components.NoValue, {})
126
125
  })
127
126
  })
128
127
  }), /*#__PURE__*/(0, _jsxRuntime.jsxs)(_components.Row, {
129
128
  children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_components.Col, {
130
129
  xs: 6,
131
- children: (customProperty === null || customProperty === void 0 ? void 0 : customProperty.type) && /*#__PURE__*/(0, _jsxRuntime.jsx)(_components.KeyValue, {
130
+ children: customProperty?.type && /*#__PURE__*/(0, _jsxRuntime.jsx)(_components.KeyValue, {
132
131
  label: kintIntl.formatKintMessage({
133
132
  id: 'customProperties.type',
134
- overrideValue: labelOverrides === null || labelOverrides === void 0 ? void 0 : labelOverrides.type
133
+ overrideValue: labelOverrides?.type
135
134
  }),
136
135
  value: kintIntl.formatKintMessage({
137
- id: "customProperties.type.".concat(customProperty === null || customProperty === void 0 ? void 0 : customProperty.type),
138
- overrideValue: labelOverrides === null || labelOverrides === void 0 ? void 0 : labelOverrides[customProperty === null || customProperty === void 0 ? void 0 : customProperty.type]
136
+ id: `customProperties.type.${customProperty?.type}`,
137
+ overrideValue: labelOverrides?.[customProperty?.type]
139
138
  })
140
139
  })
141
140
  }), /*#__PURE__*/(0, _jsxRuntime.jsx)(_components.Col, {
142
141
  xs: 6,
143
- children: ((customProperty === null || customProperty === void 0 ? void 0 : customProperty.type) === _customProperties.REFDATA_CLASS_NAME || (customProperty === null || customProperty === void 0 ? void 0 : customProperty.type) === _customProperties.MULTI_REFDATA_CLASS_NAME) && /*#__PURE__*/(0, _jsxRuntime.jsx)(_components.KeyValue, {
142
+ children: (customProperty?.type === _customProperties.REFDATA_CLASS_NAME || customProperty?.type === _customProperties.MULTI_REFDATA_CLASS_NAME) && /*#__PURE__*/(0, _jsxRuntime.jsx)(_components.KeyValue, {
144
143
  label: kintIntl.formatKintMessage({
145
144
  id: 'customProperties.category',
146
- overrideValue: labelOverrides === null || labelOverrides === void 0 ? void 0 : labelOverrides.category
145
+ overrideValue: labelOverrides?.category
147
146
  }),
148
- value: (_customProperty$categ = customProperty === null || customProperty === void 0 ? void 0 : (_customProperty$categ2 = customProperty.category) === null || _customProperty$categ2 === void 0 ? void 0 : _customProperty$categ2.desc) !== null && _customProperty$categ !== void 0 ? _customProperty$categ : /*#__PURE__*/(0, _jsxRuntime.jsx)(_components.NoValue, {})
147
+ value: customProperty?.category?.desc ?? /*#__PURE__*/(0, _jsxRuntime.jsx)(_components.NoValue, {})
149
148
  })
150
149
  })]
151
150
  })]
@@ -172,5 +171,4 @@ CustomPropertyView.propTypes = {
172
171
  intlNS: _propTypes.default.string,
173
172
  labelOverrides: _propTypes.default.object
174
173
  };
175
- var _default = CustomPropertyView;
176
- exports.default = _default;
174
+ var _default = exports.default = CustomPropertyView;
@@ -13,7 +13,7 @@ describe('CustomPropertyView', () => {
13
13
  beforeEach(() => {
14
14
  (0, _jest.renderWithKintHarness)( /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactRouterDom.MemoryRouter, {
15
15
  children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_CustomPropertyView.default, {
16
- customProperty: _customProperties.default === null || _customProperties.default === void 0 ? void 0 : _customProperties.default.find(cp => cp.name === 'Eligible authors')
16
+ customProperty: _customProperties.default?.find(cp => cp.name === 'Eligible authors')
17
17
  })
18
18
  }));
19
19
  });
@@ -26,7 +26,7 @@ const CustomPropertiesEdit = _ref => {
26
26
  intlNS: passedIntlNS,
27
27
  labelOverrides,
28
28
  nameOverride
29
- }, "customPropertiesEdit-".concat(ctx)));
29
+ }, `customPropertiesEdit-${ctx}`));
30
30
  };
31
31
  CustomPropertiesEdit.propTypes = {
32
32
  contexts: _propTypes.default.arrayOf(_propTypes.default.string),
@@ -37,5 +37,4 @@ CustomPropertiesEdit.propTypes = {
37
37
  labelOverrides: _propTypes.default.object,
38
38
  nameOverride: _propTypes.default.string
39
39
  };
40
- var _default = CustomPropertiesEdit;
41
- exports.default = _default;
40
+ var _default = exports.default = CustomPropertiesEdit;
@@ -35,7 +35,7 @@ const CustomPropertiesEditCtx = _ref => {
35
35
  // Chain formatKintMessages together using provided fallbackMessage to
36
36
  // allow for "If override or translation exists, use it, else use default"
37
37
  return kintIntl.formatKintMessage({
38
- id: "customProperties.ctx.".concat(ctx),
38
+ id: `customProperties.ctx.${ctx}`,
39
39
  overrideValue: labelOverrides[ctx],
40
40
  fallbackMessage: kintIntl.formatKintMessage({
41
41
  id: 'customProperties.defaultTitle',
@@ -66,7 +66,7 @@ const CustomPropertiesEditCtx = _ref => {
66
66
  return null;
67
67
  }
68
68
  return custprops.length > 0 && /*#__PURE__*/(0, _jsxRuntime.jsx)(_components.Accordion, {
69
- id: "".concat(id, "-accordion-").concat(ctx),
69
+ id: `${id}-accordion-${ctx}`,
70
70
  label: getAccordionLabel(),
71
71
  children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_CustomPropertiesListField.default, {
72
72
  ctx: ctx,
@@ -74,7 +74,7 @@ const CustomPropertiesEditCtx = _ref => {
74
74
  intlKey: passedIntlKey,
75
75
  intlNS: passedIntlNS,
76
76
  labelOverrides: labelOverrides,
77
- name: nameOverride !== null && nameOverride !== void 0 ? nameOverride : 'customProperties'
77
+ name: nameOverride ?? 'customProperties'
78
78
  })
79
79
  });
80
80
  };
@@ -87,5 +87,4 @@ CustomPropertiesEditCtx.propTypes = {
87
87
  labelOverrides: _propTypes.default.object,
88
88
  nameOverride: _propTypes.default.string
89
89
  };
90
- var _default = CustomPropertiesEditCtx;
91
- exports.default = _default;
90
+ var _default = exports.default = CustomPropertiesEditCtx;
@@ -46,8 +46,7 @@ const CustomPropertiesList = _ref => {
46
46
  }
47
47
  }, [availableCustomProperties, dirtying, pristine, value]);
48
48
  const handleDeleteCustomProperty = (customProperty, i) => {
49
- var _value$customProperty, _value$customProperty2;
50
- const currentValue = (_value$customProperty = (_value$customProperty2 = value[customProperty.value]) === null || _value$customProperty2 === void 0 ? void 0 : _value$customProperty2[0]) !== null && _value$customProperty !== void 0 ? _value$customProperty : {};
49
+ const currentValue = value[customProperty.value]?.[0] ?? {};
51
50
  const newCustomProperties = [...customProperties];
52
51
  newCustomProperties.splice(i, 1);
53
52
  setCustomProperties(newCustomProperties);
@@ -82,7 +81,7 @@ const CustomPropertiesList = _ref => {
82
81
  onChange,
83
82
  setCustomProperties,
84
83
  value
85
- }, "customPropertyField-".concat(customProperty.value, "-").concat(index));
84
+ }, `customPropertyField-${customProperty.value}-${index}`);
86
85
  }).filter(cp => cp !== undefined);
87
86
  };
88
87
  return /*#__PURE__*/(0, _jsxRuntime.jsxs)(_jsxRuntime.Fragment, {
@@ -143,9 +142,8 @@ const CustomPropertiesListField = _ref2 => {
143
142
  const kintIntl = (0, _hooks.useKintIntl)(passedIntlKey, passedIntlNS);
144
143
 
145
144
  // Map customProperties to bring together the options and the definition values
146
- const availableCustomProperties = customProperties === null || customProperties === void 0 ? void 0 : customProperties.map(customProperty => {
147
- var _customProperty$categ;
148
- let options = customProperty === null || customProperty === void 0 ? void 0 : (_customProperty$categ = customProperty.category) === null || _customProperty$categ === void 0 ? void 0 : _customProperty$categ.values;
145
+ const availableCustomProperties = customProperties?.map(customProperty => {
146
+ let options = customProperty?.category?.values;
149
147
  if (options) {
150
148
  options = [{
151
149
  label: kintIntl.formatKintMessage({
@@ -182,10 +180,7 @@ const CustomPropertiesListField = _ref2 => {
182
180
  // IMPORTANT -- All customproperty ctx sections are adding to the same "initialValue" field
183
181
  // Ensure that we don't already have initialValues for this particular set before setting them,
184
182
  // to ensure no looping behaviour
185
- if (Object.keys(cps).every(key => {
186
- var _initialValues$custom;
187
- return ((_initialValues$custom = initialValues.customProperties) === null || _initialValues$custom === void 0 ? void 0 : _initialValues$custom[key]) !== undefined;
188
- })) {
183
+ if (Object.keys(cps).every(key => initialValues.customProperties?.[key] !== undefined)) {
189
184
  return initialValues.customProperties;
190
185
  }
191
186
 
@@ -231,5 +226,4 @@ CustomPropertiesList.propTypes = {
231
226
  labelOverrides: _propTypes.default.object,
232
227
  meta: _propTypes.default.object
233
228
  };
234
- var _default = CustomPropertiesListField;
235
- exports.default = _default;
229
+ var _default = exports.default = CustomPropertiesListField;