@k-int/stripes-kint-components 4.7.2 → 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 (293) hide show
  1. package/CHANGELOG.md +7 -0
  2. package/es/index.js +2 -2
  3. package/es/lib/ActionList/ActionList.js +3 -4
  4. package/es/lib/ActionList/ActionListFieldArray.js +32 -36
  5. package/es/lib/ComboButton/ComboButton.js +6 -8
  6. package/es/lib/CustomProperties/Config/CustomPropertiesLookup.js +5 -9
  7. package/es/lib/CustomProperties/Config/CustomPropertiesSettings.js +30 -34
  8. package/es/lib/CustomProperties/Config/CustomPropertyForm.js +59 -60
  9. package/es/lib/CustomProperties/Config/CustomPropertyForm.test.js +2 -2
  10. package/es/lib/CustomProperties/Config/CustomPropertyView.js +33 -35
  11. package/es/lib/CustomProperties/Config/CustomPropertyView.test.js +1 -1
  12. package/es/lib/CustomProperties/Edit/CustomPropertiesEdit.js +2 -3
  13. package/es/lib/CustomProperties/Edit/CustomPropertiesEditCtx.js +4 -5
  14. package/es/lib/CustomProperties/Edit/CustomPropertiesListField.js +6 -12
  15. package/es/lib/CustomProperties/Edit/CustomPropertyField.js +21 -29
  16. package/es/lib/CustomProperties/Edit/CustomPropertyField.test.js +5 -5
  17. package/es/lib/CustomProperties/Edit/CustomPropertyFormCard.js +3 -4
  18. package/es/lib/CustomProperties/Edit/CustomPropertyFormCard.test.js +3 -3
  19. package/es/lib/CustomProperties/Edit/testResources.js +14 -17
  20. package/es/lib/CustomProperties/Filter/CustomPropertiesFilter.js +7 -13
  21. package/es/lib/CustomProperties/Filter/CustomPropertiesFilterField.js +21 -30
  22. package/es/lib/CustomProperties/Filter/CustomPropertiesFilterField.test.js +1 -1
  23. package/es/lib/CustomProperties/Filter/CustomPropertiesFilterFieldArray.js +7 -8
  24. package/es/lib/CustomProperties/Filter/CustomPropertiesFilterForm.js +1 -2
  25. package/es/lib/CustomProperties/Filter/CustomPropertiesRule.js +9 -10
  26. package/es/lib/CustomProperties/Filter/testResources.js +5 -9
  27. package/es/lib/CustomProperties/Filter/useOperators.js +3 -4
  28. package/es/lib/CustomProperties/Filter/useParseActiveFilterStrings.js +2 -4
  29. package/es/lib/CustomProperties/Filter/useValueProps.js +3 -4
  30. package/es/lib/CustomProperties/View/CustomPropertiesView.js +2 -3
  31. package/es/lib/CustomProperties/View/CustomPropertiesViewCtx.js +19 -28
  32. package/es/lib/CustomProperties/View/CustomPropertyCard.js +10 -15
  33. package/es/lib/CustomProperties/View/testResources.js +5 -9
  34. package/es/lib/CycleButton/CycleButton.js +2 -3
  35. package/es/lib/EditableRefdataCategoryList/EditableRefdataCategoryList.js +24 -36
  36. package/es/lib/EditableRefdataList/EditableRefdataList.js +29 -37
  37. package/es/lib/EditableSettingsList/EditableSettingsList.js +1 -2
  38. package/es/lib/EditableSettingsList/EditableSettingsListFieldArray.js +2 -3
  39. package/es/lib/EditableSettingsList/SettingField/EditSettingValue.js +6 -7
  40. package/es/lib/EditableSettingsList/SettingField/RenderSettingValue.js +11 -14
  41. package/es/lib/EditableSettingsList/SettingField/SettingField.js +7 -8
  42. package/es/lib/FormModal/FormModal.js +1 -2
  43. package/es/lib/FormattedKintMessage/FormattedKintMessage.js +5 -9
  44. package/es/lib/IconSelect/IconSelect.js +8 -13
  45. package/es/lib/NoResultsMessage/NoResultsMessage.js +5 -6
  46. package/es/lib/QueryTypedown/QueryTypedown.js +3 -4
  47. package/es/lib/RefdataButtons/RefdataButtons.js +4 -5
  48. package/es/lib/ResponsiveButtonGroup/ResponsiveButtonGroup.js +22 -30
  49. package/es/lib/ResponsiveButtonGroup/useResponsiveButtonGroupSizing.js +6 -8
  50. package/es/lib/RichSelect/RichSelect.js +15 -21
  51. package/es/lib/RichSelect/useSelectedOption.js +2 -4
  52. package/es/lib/SASQLookupComponent/SASQLookupComponent.js +15 -19
  53. package/es/lib/SASQLookupComponent/TableBody/TableBody.js +5 -8
  54. package/es/lib/SASQRoute/SASQRoute.js +3 -4
  55. package/es/lib/SASQViewComponent/SASQViewComponent.js +6 -11
  56. package/es/lib/SearchField/SearchField.js +1 -2
  57. package/es/lib/SettingPage/SettingPage.js +3 -4
  58. package/es/lib/SettingPage/SettingPagePane.js +3 -4
  59. package/es/lib/SettingsFormContainer/SettingsFormContainer.js +3 -4
  60. package/es/lib/Typedown/Typedown.js +22 -30
  61. package/es/lib/constants/customProperties.js +11 -22
  62. package/es/lib/constants/endpoints.js +1 -2
  63. package/es/lib/constants/eventCodes.js +3 -6
  64. package/es/lib/contexts/SettingsContext.js +1 -2
  65. package/es/lib/hooks/typedownHooks/useTypedown.js +3 -4
  66. package/es/lib/hooks/typedownHooks/useTypedownData.js +1 -2
  67. package/es/lib/hooks/typedownHooks/useTypedownToggle.js +3 -4
  68. package/es/lib/hooks/useActiveElement.js +2 -3
  69. package/es/lib/hooks/useCustomProperties.js +3 -4
  70. package/es/lib/hooks/useHelperApp.js +9 -10
  71. package/es/lib/hooks/useIntlKey.js +1 -2
  72. package/es/lib/hooks/useIntlKeyStore.js +5 -9
  73. package/es/lib/hooks/useInvalidateRefdata.js +1 -2
  74. package/es/lib/hooks/useKintIntl.js +6 -13
  75. package/es/lib/hooks/useKiwtFieldArray.js +1 -2
  76. package/es/lib/hooks/useKiwtSASQuery.js +4 -5
  77. package/es/lib/hooks/useLocalStorageState.js +3 -4
  78. package/es/lib/hooks/useModConfigEntries.js +3 -4
  79. package/es/lib/hooks/useMutateCustomProperties.js +9 -10
  80. package/es/lib/hooks/useMutateModConfigEntry.js +3 -4
  81. package/es/lib/hooks/useMutateRefdataCategory.js +5 -6
  82. package/es/lib/hooks/useMutateRefdataValue.js +7 -8
  83. package/es/lib/hooks/useQIndex.js +8 -9
  84. package/es/lib/hooks/useRefdata.js +4 -5
  85. package/es/lib/hooks/useSASQQueryMeta.js +1 -2
  86. package/es/lib/hooks/useTemplates.js +5 -6
  87. package/es/lib/settingsHooks/useAppSettings.js +8 -13
  88. package/es/lib/settingsHooks/useSettingSection.js +3 -4
  89. package/es/lib/settingsHooks/useSettings.js +4 -5
  90. package/es/lib/utils/buildUrl.js +1 -1
  91. package/es/lib/utils/generateKiwtQuery.js +1 -2
  92. package/es/lib/utils/generateKiwtQueryParams.js +28 -38
  93. package/es/lib/utils/groupCustomPropertiesByCtx.js +3 -5
  94. package/es/lib/utils/matchString.js +2 -3
  95. package/es/lib/utils/modConfigEntriesQueryKey.js +1 -2
  96. package/es/lib/utils/parseErrorResponse.js +3 -5
  97. package/es/lib/utils/parseKiwtQueryGroups.js +5 -7
  98. package/es/lib/utils/parseModConfigEntry.js +1 -2
  99. package/es/lib/utils/refdataOptions.js +2 -3
  100. package/es/lib/utils/refdataQueryKey.js +1 -2
  101. package/es/lib/utils/selectorSafe.js +4 -6
  102. package/es/lib/utils/sortByLabel.js +3 -5
  103. package/es/lib/utils/toCamelCase.js +1 -2
  104. package/es/lib/utils/typedownQueryKey.js +1 -2
  105. package/es/lib/validators/validators.js +3 -3
  106. package/package.json +12 -2
  107. package/es/artifacts/coverage-jest/lcov-report/block-navigation.js +0 -69
  108. package/es/artifacts/coverage-jest/lcov-report/prettify.js +0 -814
  109. package/es/artifacts/coverage-jest/lcov-report/sorter.js +0 -181
  110. package/junit.xml +0 -293
  111. package/src/artifacts/coverage-jest/lcov-report/ActionList/ActionList.js.html +0 -373
  112. package/src/artifacts/coverage-jest/lcov-report/ActionList/ActionListFieldArray.js.html +0 -1465
  113. package/src/artifacts/coverage-jest/lcov-report/ActionList/index.html +0 -146
  114. package/src/artifacts/coverage-jest/lcov-report/ActionList/index.js.html +0 -88
  115. package/src/artifacts/coverage-jest/lcov-report/CustomProperties/Config/CustomPropertiesLookup.js.html +0 -667
  116. package/src/artifacts/coverage-jest/lcov-report/CustomProperties/Config/CustomPropertiesSettings.js.html +0 -1240
  117. package/src/artifacts/coverage-jest/lcov-report/CustomProperties/Config/CustomPropertyForm.js.html +0 -1474
  118. package/src/artifacts/coverage-jest/lcov-report/CustomProperties/Config/CustomPropertyView.js.html +0 -733
  119. package/src/artifacts/coverage-jest/lcov-report/CustomProperties/Config/index.html +0 -176
  120. package/src/artifacts/coverage-jest/lcov-report/CustomProperties/Config/index.js.html +0 -97
  121. package/src/artifacts/coverage-jest/lcov-report/CustomProperties/Config/testResources.js.html +0 -793
  122. package/src/artifacts/coverage-jest/lcov-report/CustomProperties/Edit/CustomPropertiesEdit.js.html +0 -208
  123. package/src/artifacts/coverage-jest/lcov-report/CustomProperties/Edit/CustomPropertiesEditCtx.js.html +0 -352
  124. package/src/artifacts/coverage-jest/lcov-report/CustomProperties/Edit/CustomPropertiesListField.js.html +0 -826
  125. package/src/artifacts/coverage-jest/lcov-report/CustomProperties/Edit/CustomPropertyField.js.html +0 -1297
  126. package/src/artifacts/coverage-jest/lcov-report/CustomProperties/Edit/CustomPropertyFormCard.js.html +0 -454
  127. package/src/artifacts/coverage-jest/lcov-report/CustomProperties/Edit/index.html +0 -206
  128. package/src/artifacts/coverage-jest/lcov-report/CustomProperties/Edit/index.js.html +0 -100
  129. package/src/artifacts/coverage-jest/lcov-report/CustomProperties/Edit/testResources.js.html +0 -271
  130. package/src/artifacts/coverage-jest/lcov-report/CustomProperties/Filter/CustomPropertiesFilter.js.html +0 -499
  131. package/src/artifacts/coverage-jest/lcov-report/CustomProperties/Filter/CustomPropertiesFilterField.js.html +0 -568
  132. package/src/artifacts/coverage-jest/lcov-report/CustomProperties/Filter/CustomPropertiesFilterFieldArray.js.html +0 -415
  133. package/src/artifacts/coverage-jest/lcov-report/CustomProperties/Filter/CustomPropertiesFilterForm.js.html +0 -340
  134. package/src/artifacts/coverage-jest/lcov-report/CustomProperties/Filter/CustomPropertiesRule.js.html +0 -502
  135. package/src/artifacts/coverage-jest/lcov-report/CustomProperties/Filter/index.html +0 -251
  136. package/src/artifacts/coverage-jest/lcov-report/CustomProperties/Filter/index.js.html +0 -103
  137. package/src/artifacts/coverage-jest/lcov-report/CustomProperties/Filter/testResources.js.html +0 -223
  138. package/src/artifacts/coverage-jest/lcov-report/CustomProperties/Filter/useOperators.js.html +0 -271
  139. package/src/artifacts/coverage-jest/lcov-report/CustomProperties/Filter/useParseActiveFilterStrings.js.html +0 -199
  140. package/src/artifacts/coverage-jest/lcov-report/CustomProperties/Filter/useValueProps.js.html +0 -253
  141. package/src/artifacts/coverage-jest/lcov-report/CustomProperties/View/CustomPropertiesView.js.html +0 -211
  142. package/src/artifacts/coverage-jest/lcov-report/CustomProperties/View/CustomPropertiesViewCtx.js.html +0 -445
  143. package/src/artifacts/coverage-jest/lcov-report/CustomProperties/View/CustomPropertyCard.js.html +0 -619
  144. package/src/artifacts/coverage-jest/lcov-report/CustomProperties/View/index.html +0 -176
  145. package/src/artifacts/coverage-jest/lcov-report/CustomProperties/View/index.js.html +0 -94
  146. package/src/artifacts/coverage-jest/lcov-report/CustomProperties/View/testResources.js.html +0 -571
  147. package/src/artifacts/coverage-jest/lcov-report/CustomProperties/index.html +0 -116
  148. package/src/artifacts/coverage-jest/lcov-report/CustomProperties/index.js.html +0 -175
  149. package/src/artifacts/coverage-jest/lcov-report/CycleButton/CycleButton.js.html +0 -217
  150. package/src/artifacts/coverage-jest/lcov-report/CycleButton/index.html +0 -131
  151. package/src/artifacts/coverage-jest/lcov-report/CycleButton/index.js.html +0 -88
  152. package/src/artifacts/coverage-jest/lcov-report/EditableRefdataCategoryList/EditableRefdataCategoryList.js.html +0 -751
  153. package/src/artifacts/coverage-jest/lcov-report/EditableRefdataCategoryList/index.html +0 -131
  154. package/src/artifacts/coverage-jest/lcov-report/EditableRefdataCategoryList/index.js.html +0 -88
  155. package/src/artifacts/coverage-jest/lcov-report/EditableRefdataList/EditableRefdataList.js.html +0 -853
  156. package/src/artifacts/coverage-jest/lcov-report/EditableRefdataList/index.html +0 -131
  157. package/src/artifacts/coverage-jest/lcov-report/EditableRefdataList/index.js.html +0 -88
  158. package/src/artifacts/coverage-jest/lcov-report/EditableSettingsList/EditableSettingsList.js.html +0 -280
  159. package/src/artifacts/coverage-jest/lcov-report/EditableSettingsList/EditableSettingsListFieldArray.js.html +0 -259
  160. package/src/artifacts/coverage-jest/lcov-report/EditableSettingsList/SettingField/EditSettingValue.js.html +0 -412
  161. package/src/artifacts/coverage-jest/lcov-report/EditableSettingsList/SettingField/RenderSettingValue.js.html +0 -313
  162. package/src/artifacts/coverage-jest/lcov-report/EditableSettingsList/SettingField/SettingField.js.html +0 -574
  163. package/src/artifacts/coverage-jest/lcov-report/EditableSettingsList/SettingField/index.html +0 -161
  164. package/src/artifacts/coverage-jest/lcov-report/EditableSettingsList/SettingField/index.js.html +0 -94
  165. package/src/artifacts/coverage-jest/lcov-report/EditableSettingsList/index.html +0 -146
  166. package/src/artifacts/coverage-jest/lcov-report/EditableSettingsList/index.js.html +0 -94
  167. package/src/artifacts/coverage-jest/lcov-report/FormModal/FormModal.js.html +0 -379
  168. package/src/artifacts/coverage-jest/lcov-report/FormModal/index.html +0 -131
  169. package/src/artifacts/coverage-jest/lcov-report/FormModal/index.js.html +0 -88
  170. package/src/artifacts/coverage-jest/lcov-report/FormattedKintMessage/FormattedKintMessage.js.html +0 -247
  171. package/src/artifacts/coverage-jest/lcov-report/FormattedKintMessage/index.html +0 -131
  172. package/src/artifacts/coverage-jest/lcov-report/FormattedKintMessage/index.js.html +0 -88
  173. package/src/artifacts/coverage-jest/lcov-report/IconSelect/IconSelect.js.html +0 -508
  174. package/src/artifacts/coverage-jest/lcov-report/IconSelect/index.html +0 -131
  175. package/src/artifacts/coverage-jest/lcov-report/IconSelect/index.js.html +0 -88
  176. package/src/artifacts/coverage-jest/lcov-report/NoResultsMessage/NoResultsMessage.js.html +0 -361
  177. package/src/artifacts/coverage-jest/lcov-report/NoResultsMessage/index.html +0 -131
  178. package/src/artifacts/coverage-jest/lcov-report/NoResultsMessage/index.js.html +0 -88
  179. package/src/artifacts/coverage-jest/lcov-report/QueryTypedown/QueryTypedown.js.html +0 -205
  180. package/src/artifacts/coverage-jest/lcov-report/QueryTypedown/index.html +0 -131
  181. package/src/artifacts/coverage-jest/lcov-report/QueryTypedown/index.js.html +0 -88
  182. package/src/artifacts/coverage-jest/lcov-report/RefdataButtons/RefdataButtons.js.html +0 -370
  183. package/src/artifacts/coverage-jest/lcov-report/RefdataButtons/index.html +0 -131
  184. package/src/artifacts/coverage-jest/lcov-report/RefdataButtons/index.js.html +0 -88
  185. package/src/artifacts/coverage-jest/lcov-report/ResponsiveButtonGroup/ResponsiveButtonGroup.js.html +0 -580
  186. package/src/artifacts/coverage-jest/lcov-report/ResponsiveButtonGroup/index.html +0 -146
  187. package/src/artifacts/coverage-jest/lcov-report/ResponsiveButtonGroup/index.js.html +0 -88
  188. package/src/artifacts/coverage-jest/lcov-report/ResponsiveButtonGroup/useResponsiveButtonGroupSizing.js.html +0 -301
  189. package/src/artifacts/coverage-jest/lcov-report/RichSelect/RichSelect.js.html +0 -718
  190. package/src/artifacts/coverage-jest/lcov-report/RichSelect/index.html +0 -146
  191. package/src/artifacts/coverage-jest/lcov-report/RichSelect/index.js.html +0 -91
  192. package/src/artifacts/coverage-jest/lcov-report/RichSelect/useSelectedOption.js.html +0 -127
  193. package/src/artifacts/coverage-jest/lcov-report/SASQLookupComponent/SASQLookupComponent.js.html +0 -1069
  194. package/src/artifacts/coverage-jest/lcov-report/SASQLookupComponent/TableBody/TableBody.js.html +0 -400
  195. package/src/artifacts/coverage-jest/lcov-report/SASQLookupComponent/TableBody/index.html +0 -131
  196. package/src/artifacts/coverage-jest/lcov-report/SASQLookupComponent/TableBody/index.js.html +0 -88
  197. package/src/artifacts/coverage-jest/lcov-report/SASQLookupComponent/index.html +0 -131
  198. package/src/artifacts/coverage-jest/lcov-report/SASQLookupComponent/index.js.html +0 -91
  199. package/src/artifacts/coverage-jest/lcov-report/SASQRoute/SASQRoute.js.html +0 -346
  200. package/src/artifacts/coverage-jest/lcov-report/SASQRoute/index.html +0 -131
  201. package/src/artifacts/coverage-jest/lcov-report/SASQRoute/index.js.html +0 -88
  202. package/src/artifacts/coverage-jest/lcov-report/SASQViewComponent/SASQViewComponent.js.html +0 -307
  203. package/src/artifacts/coverage-jest/lcov-report/SASQViewComponent/index.html +0 -131
  204. package/src/artifacts/coverage-jest/lcov-report/SASQViewComponent/index.js.html +0 -88
  205. package/src/artifacts/coverage-jest/lcov-report/SearchField/SearchField.js.html +0 -214
  206. package/src/artifacts/coverage-jest/lcov-report/SearchField/index.html +0 -131
  207. package/src/artifacts/coverage-jest/lcov-report/SearchField/index.js.html +0 -88
  208. package/src/artifacts/coverage-jest/lcov-report/SettingPage/SettingPage.js.html +0 -220
  209. package/src/artifacts/coverage-jest/lcov-report/SettingPage/SettingPagePane.js.html +0 -208
  210. package/src/artifacts/coverage-jest/lcov-report/SettingPage/index.html +0 -146
  211. package/src/artifacts/coverage-jest/lcov-report/SettingPage/index.js.html +0 -91
  212. package/src/artifacts/coverage-jest/lcov-report/SettingsFormContainer/SettingsFormContainer.js.html +0 -337
  213. package/src/artifacts/coverage-jest/lcov-report/SettingsFormContainer/index.html +0 -131
  214. package/src/artifacts/coverage-jest/lcov-report/SettingsFormContainer/index.js.html +0 -88
  215. package/src/artifacts/coverage-jest/lcov-report/Typedown/Typedown.js.html +0 -913
  216. package/src/artifacts/coverage-jest/lcov-report/Typedown/index.html +0 -131
  217. package/src/artifacts/coverage-jest/lcov-report/Typedown/index.js.html +0 -88
  218. package/src/artifacts/coverage-jest/lcov-report/base.css +0 -224
  219. package/src/artifacts/coverage-jest/lcov-report/block-navigation.js +0 -87
  220. package/src/artifacts/coverage-jest/lcov-report/constants/customProperties.js.html +0 -121
  221. package/src/artifacts/coverage-jest/lcov-report/constants/endpoints.js.html +0 -91
  222. package/src/artifacts/coverage-jest/lcov-report/constants/eventCodes.js.html +0 -94
  223. package/src/artifacts/coverage-jest/lcov-report/constants/index.html +0 -146
  224. package/src/artifacts/coverage-jest/lcov-report/contexts/SettingsContext.js.html +0 -97
  225. package/src/artifacts/coverage-jest/lcov-report/contexts/index.html +0 -131
  226. package/src/artifacts/coverage-jest/lcov-report/contexts/index.js.html +0 -91
  227. package/src/artifacts/coverage-jest/lcov-report/favicon.png +0 -0
  228. package/src/artifacts/coverage-jest/lcov-report/hooks/index.html +0 -401
  229. package/src/artifacts/coverage-jest/lcov-report/hooks/index.js.html +0 -142
  230. package/src/artifacts/coverage-jest/lcov-report/hooks/settingsHooks/index.html +0 -161
  231. package/src/artifacts/coverage-jest/lcov-report/hooks/settingsHooks/index.js.html +0 -94
  232. package/src/artifacts/coverage-jest/lcov-report/hooks/settingsHooks/useAppSettings.js.html +0 -292
  233. package/src/artifacts/coverage-jest/lcov-report/hooks/settingsHooks/useSettingSection.js.html +0 -214
  234. package/src/artifacts/coverage-jest/lcov-report/hooks/settingsHooks/useSettings.js.html +0 -463
  235. package/src/artifacts/coverage-jest/lcov-report/hooks/typedownHooks/index.html +0 -161
  236. package/src/artifacts/coverage-jest/lcov-report/hooks/typedownHooks/index.js.html +0 -94
  237. package/src/artifacts/coverage-jest/lcov-report/hooks/typedownHooks/useTypedown.js.html +0 -520
  238. package/src/artifacts/coverage-jest/lcov-report/hooks/typedownHooks/useTypedownData.js.html +0 -181
  239. package/src/artifacts/coverage-jest/lcov-report/hooks/typedownHooks/useTypedownToggle.js.html +0 -163
  240. package/src/artifacts/coverage-jest/lcov-report/hooks/useActiveElement.js.html +0 -157
  241. package/src/artifacts/coverage-jest/lcov-report/hooks/useAvailableCustomProperties.js.html +0 -205
  242. package/src/artifacts/coverage-jest/lcov-report/hooks/useCustomProperties.js.html +0 -325
  243. package/src/artifacts/coverage-jest/lcov-report/hooks/useHelperApp.js.html +0 -295
  244. package/src/artifacts/coverage-jest/lcov-report/hooks/useIntlKey.js.html +0 -151
  245. package/src/artifacts/coverage-jest/lcov-report/hooks/useIntlKeyStore.js.html +0 -199
  246. package/src/artifacts/coverage-jest/lcov-report/hooks/useInvalidateRefdata.js.html +0 -118
  247. package/src/artifacts/coverage-jest/lcov-report/hooks/useKintIntl.js.html +0 -238
  248. package/src/artifacts/coverage-jest/lcov-report/hooks/useKiwtFieldArray.js.html +0 -274
  249. package/src/artifacts/coverage-jest/lcov-report/hooks/useKiwtSASQuery.js.html +0 -196
  250. package/src/artifacts/coverage-jest/lcov-report/hooks/useLocalStorageState.js.html +0 -136
  251. package/src/artifacts/coverage-jest/lcov-report/hooks/useModConfigEntries.js.html +0 -226
  252. package/src/artifacts/coverage-jest/lcov-report/hooks/useMutateCustomProperties.js.html +0 -283
  253. package/src/artifacts/coverage-jest/lcov-report/hooks/useMutateModConfigEntry.js.html +0 -238
  254. package/src/artifacts/coverage-jest/lcov-report/hooks/useMutateRefdataCategory.js.html +0 -274
  255. package/src/artifacts/coverage-jest/lcov-report/hooks/useMutateRefdataValue.js.html +0 -322
  256. package/src/artifacts/coverage-jest/lcov-report/hooks/useQIndex.js.html +0 -208
  257. package/src/artifacts/coverage-jest/lcov-report/hooks/useRefdata.js.html +0 -265
  258. package/src/artifacts/coverage-jest/lcov-report/hooks/useSASQQueryMeta.js.html +0 -187
  259. package/src/artifacts/coverage-jest/lcov-report/hooks/useTemplates.js.html +0 -166
  260. package/src/artifacts/coverage-jest/lcov-report/index.html +0 -611
  261. package/src/artifacts/coverage-jest/lcov-report/prettify.css +0 -1
  262. package/src/artifacts/coverage-jest/lcov-report/prettify.js +0 -2
  263. package/src/artifacts/coverage-jest/lcov-report/settingsHooks/index.html +0 -161
  264. package/src/artifacts/coverage-jest/lcov-report/settingsHooks/index.js.html +0 -94
  265. package/src/artifacts/coverage-jest/lcov-report/settingsHooks/useAppSettings.js.html +0 -292
  266. package/src/artifacts/coverage-jest/lcov-report/settingsHooks/useSettingSection.js.html +0 -211
  267. package/src/artifacts/coverage-jest/lcov-report/settingsHooks/useSettings.js.html +0 -466
  268. package/src/artifacts/coverage-jest/lcov-report/sort-arrow-sprite.png +0 -0
  269. package/src/artifacts/coverage-jest/lcov-report/sorter.js +0 -196
  270. package/src/artifacts/coverage-jest/lcov-report/utils/buildUrl.js.html +0 -193
  271. package/src/artifacts/coverage-jest/lcov-report/utils/generateKiwtQuery.js.html +0 -109
  272. package/src/artifacts/coverage-jest/lcov-report/utils/generateKiwtQueryParams.js.html +0 -631
  273. package/src/artifacts/coverage-jest/lcov-report/utils/groupCustomPropertiesByCtx.js.html +0 -124
  274. package/src/artifacts/coverage-jest/lcov-report/utils/highlightString.js.html +0 -211
  275. package/src/artifacts/coverage-jest/lcov-report/utils/index.html +0 -356
  276. package/src/artifacts/coverage-jest/lcov-report/utils/index.js.html +0 -169
  277. package/src/artifacts/coverage-jest/lcov-report/utils/matchString.js.html +0 -127
  278. package/src/artifacts/coverage-jest/lcov-report/utils/modConfigEntriesQueryKey.js.html +0 -142
  279. package/src/artifacts/coverage-jest/lcov-report/utils/parseErrorResponse.js.html +0 -142
  280. package/src/artifacts/coverage-jest/lcov-report/utils/parseKiwtQueryGroups.js.html +0 -361
  281. package/src/artifacts/coverage-jest/lcov-report/utils/parseModConfigEntry.js.html +0 -130
  282. package/src/artifacts/coverage-jest/lcov-report/utils/refdataOptions.js.html +0 -109
  283. package/src/artifacts/coverage-jest/lcov-report/utils/refdataQueryKey.js.html +0 -112
  284. package/src/artifacts/coverage-jest/lcov-report/utils/renderHelpText.js.html +0 -166
  285. package/src/artifacts/coverage-jest/lcov-report/utils/selectorSafe.js.html +0 -145
  286. package/src/artifacts/coverage-jest/lcov-report/utils/sortByLabel.js.html +0 -130
  287. package/src/artifacts/coverage-jest/lcov-report/utils/toCamelCase.js.html +0 -127
  288. package/src/artifacts/coverage-jest/lcov-report/utils/typedownQueryKey.js.html +0 -112
  289. package/src/artifacts/coverage-jest/lcov-report/utils/validators.js.html +0 -370
  290. package/src/artifacts/coverage-jest/lcov-report/validators/index.html +0 -131
  291. package/src/artifacts/coverage-jest/lcov-report/validators/index.js.html +0 -88
  292. package/src/artifacts/coverage-jest/lcov-report/validators/validators.js.html +0 -370
  293. package/src/artifacts/coverage-jest/lcov.info +0 -5223
package/CHANGELOG.md CHANGED
@@ -1,3 +1,10 @@
1
+ ## [4.7.3](https://gitlab.com/knowledge-integration/folio/stripes-kint-components/compare/v4.7.2...v4.7.3) (2023-11-02)
2
+
3
+
4
+ ### Bug Fixes
5
+
6
+ * add semantic release script to package.json ([7700d89](https://gitlab.com/knowledge-integration/folio/stripes-kint-components/commit/7700d890ec889eb966c0daa05201279d566ee80f))
7
+
1
8
  ## 4.7.2 2023-06-09
2
9
  * Fixed rogue CSS from ComboButton
3
10
 
package/es/index.js CHANGED
@@ -379,6 +379,6 @@ var _FormattedKintMessage = _interopRequireDefault(require("./lib/FormattedKintM
379
379
  var _ResponsiveButtonGroup = _interopRequireDefault(require("./lib/ResponsiveButtonGroup"));
380
380
  var _SettingsFormContainer = _interopRequireDefault(require("./lib/SettingsFormContainer"));
381
381
  var _ComboButton = _interopRequireDefault(require("./lib/ComboButton"));
382
- 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); }
383
- 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; }
382
+ 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); }
383
+ 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; }
384
384
  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,
@@ -102,5 +102,4 @@ const ActionList = /*#__PURE__*/(0, _react.forwardRef)((_ref, ref) => {
102
102
  });
103
103
  });
104
104
  ActionList.propTypes = propTypes;
105
- var _default = ActionList;
106
- exports.default = _default;
105
+ var _default = exports.default = ActionList;
@@ -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, _actionAssigner$find;
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 ? void 0 : (_actionAssigner$find = _actionAssigner.find(act => act.name === 'edit')) === null || _actionAssigner$find === void 0 ? void 0 : _actionAssigner$find.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(),
@@ -421,5 +418,4 @@ const ActionListFieldArray = /*#__PURE__*/(0, _react.forwardRef)((_ref2, ref) =>
421
418
  });
422
419
  });
423
420
  ActionListFieldArray.propTypes = propTypes;
424
- var _default = ActionListFieldArray;
425
- exports.default = _default;
421
+ var _default = exports.default = ActionListFieldArray;
@@ -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, {
@@ -134,5 +133,4 @@ ComboButton.propTypes = {
134
133
  popoverProps: _propTypes.default.object,
135
134
  triggerProps: _propTypes.default.object
136
135
  };
137
- var _default = ComboButton;
138
- exports.default = _default;
136
+ var _default = exports.default = ComboButton;
@@ -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 ? 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'],
@@ -174,5 +171,4 @@ CustomPropertiesLookup.propTypes = {
174
171
  queryParams: _propTypes.default.object,
175
172
  refdataEndpoint: _propTypes.default.string
176
173
  };
177
- var _default = CustomPropertiesLookup;
178
- exports.default = _default;
174
+ var _default = exports.default = CustomPropertiesLookup;
@@ -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, _submitData$ctx$;
131
129
  return {
132
130
  ...submitData,
133
- ctx: (_submitData$ctx$0$val = submitData === null || submitData === void 0 ? void 0 : (_submitData$ctx = submitData.ctx) === null || _submitData$ctx === void 0 ? 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 ? 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
  },
@@ -314,5 +311,4 @@ CustomPropertiesSettings.propTypes = {
314
311
  labelOverrides: _propTypes.default.object,
315
312
  refdataEndpoint: _propTypes.default.string
316
313
  };
317
- var _default = CustomPropertiesSettings;
318
- exports.default = _default;
314
+ var _default = exports.default = CustomPropertiesSettings;