@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
@@ -5,20 +5,17 @@ Object.defineProperty(exports, "__esModule", {
5
5
  });
6
6
  exports.filterHandlers = exports.data = exports.activeFilters = void 0;
7
7
  var _jest = require("../../../../test/jest");
8
- var _refdata$find, _refdata$find$values, _refdata$find$values$;
9
- const activeFilters = {
10
- 'customProperties': ["customProperties.AuthorIdentification.value==".concat(_jest.refdata === null || _jest.refdata === void 0 ? void 0 : (_refdata$find = _jest.refdata.find(rdc => rdc.desc === 'AuthIdent')) === null || _refdata$find === void 0 ? void 0 : (_refdata$find$values = _refdata$find.values) === null || _refdata$find$values === void 0 ? void 0 : (_refdata$find$values$ = _refdata$find$values.find(rdv => rdv.value === 'email_domain')) === null || _refdata$find$values$ === void 0 ? void 0 : _refdata$find$values$.id)]
8
+ const activeFilters = exports.activeFilters = {
9
+ 'customProperties': [`customProperties.AuthorIdentification.value==${_jest.refdata?.find(rdc => rdc.desc === 'AuthIdent')?.values?.find(rdv => rdv.value === 'email_domain')?.id}`]
11
10
  };
12
- exports.activeFilters = activeFilters;
13
- const filterHandlers = {
11
+ const filterHandlers = exports.filterHandlers = {
14
12
  'state': () => ({}),
15
13
  'checkbox': () => ({}),
16
14
  'clear': () => ({}),
17
15
  'clearGroup': () => ({}),
18
16
  'reset': () => ({})
19
17
  };
20
- exports.filterHandlers = filterHandlers;
21
- const data = {
18
+ const data = exports.data = {
22
19
  customProperties: _jest.customProperties,
23
20
  editingFilters: true,
24
21
  filters: [{
@@ -39,5 +36,4 @@ const data = {
39
36
  'openEditModal': () => ({})
40
37
  },
41
38
  'onSubmit': () => ({})
42
- };
43
- exports.data = data;
39
+ };
@@ -6,8 +6,8 @@ Object.defineProperty(exports, "__esModule", {
6
6
  exports.default = void 0;
7
7
  var CUSTPROP_TYPES = _interopRequireWildcard(require("../../constants/customProperties"));
8
8
  var _hooks = require("../../hooks");
9
- function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function (nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
10
- function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
9
+ function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function (e) { return e ? t : r; })(e); }
10
+ function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != typeof e && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && Object.prototype.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
11
11
  const {
12
12
  REFDATA_CLASS_NAME: REFDATA,
13
13
  MULTI_REFDATA_CLASS_NAME: MULTIREFDATA,
@@ -133,5 +133,4 @@ const useOperators = function () {
133
133
  }
134
134
  return operators;
135
135
  };
136
- var _default = useOperators;
137
- exports.default = _default;
136
+ var _default = exports.default = useOperators;
@@ -13,14 +13,13 @@ const useParseActiveFilterStrings = function (filterStrings, passedIntlKey, pass
13
13
  const filters = filterStrings.map(filter => {
14
14
  let customProperty;
15
15
  const rules = filter.split('||').map(ruleString => {
16
- var _operators$find;
17
16
  // ruleString is constructed in this.handleSubmit passed to CustomPropertyFiltersForm
18
17
  // and has shape "customProperties.foo.value!=42"
19
18
  // OR customProperties.foo.value.id==1234, so make sure to disregard the .id
20
19
  const [customPropertyPath, rule] = ruleString.split('.value');
21
20
  const idSafeRule = rule.replace('.id', '');
22
21
  customProperty = customPropertyPath.replace('customProperties.', '');
23
- const operator = (_operators$find = operators.find(o => idSafeRule.startsWith(o))) !== null && _operators$find !== void 0 ? _operators$find : '';
22
+ const operator = operators.find(o => idSafeRule.startsWith(o)) ?? '';
24
23
  const value = idSafeRule.substring(operator.length);
25
24
  numberOfFilters += 1;
26
25
  return {
@@ -38,5 +37,4 @@ const useParseActiveFilterStrings = function (filterStrings, passedIntlKey, pass
38
37
  numberOfFilters
39
38
  };
40
39
  };
41
- var _default = useParseActiveFilterStrings;
42
- exports.default = _default;
40
+ var _default = exports.default = useParseActiveFilterStrings;
@@ -7,8 +7,8 @@ exports.default = void 0;
7
7
  var _components = require("@folio/stripes/components");
8
8
  var CUSTPROP_TYPES = _interopRequireWildcard(require("../../constants/customProperties"));
9
9
  var _validators = require("../../validators");
10
- 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); }
11
- 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; }
10
+ 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); }
11
+ 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; }
12
12
  const {
13
13
  REFDATA_CLASS_NAME: REFDATA,
14
14
  MULTI_REFDATA_CLASS_NAME: MULTIREFDATA,
@@ -58,5 +58,4 @@ const useValueProps = function (custPropDefinition, intlKey, intlNS) {
58
58
  }
59
59
  return props;
60
60
  };
61
- var _default = useValueProps;
62
- exports.default = _default;
61
+ var _default = exports.default = useValueProps;
@@ -26,7 +26,7 @@ const CustomPropertiesView = _ref => {
26
26
  intlKey: passedIntlKey,
27
27
  intlNS: passedIntlNS,
28
28
  labelOverrides
29
- }, "customPropertiesView-".concat(ctx)));
29
+ }, `customPropertiesView-${ctx}`));
30
30
  };
31
31
  CustomPropertiesView.propTypes = {
32
32
  contexts: _propTypes.default.arrayOf(_propTypes.default.string),
@@ -38,5 +38,4 @@ CustomPropertiesView.propTypes = {
38
38
  labelOverrides: _propTypes.default.object,
39
39
  nameOverride: _propTypes.default.string
40
40
  };
41
- var _default = CustomPropertiesView;
42
- exports.default = _default;
41
+ var _default = exports.default = CustomPropertiesView;
@@ -11,7 +11,6 @@ var _CustomPropertyCard = _interopRequireDefault(require("./CustomPropertyCard")
11
11
  var _jsxRuntime = require("react/jsx-runtime");
12
12
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
13
13
  const CustomPropertiesViewCtx = _ref => {
14
- var _custprops$filter$len, _custprops$filter;
15
14
  let {
16
15
  ctx,
17
16
  customProperties = [],
@@ -36,7 +35,7 @@ const CustomPropertiesViewCtx = _ref => {
36
35
  // Chain formatKintMessages together using provided fallbackMessage to
37
36
  // allow for "If override or translation exists, use it, else use default"
38
37
  return kintIntl.formatKintMessage({
39
- id: "customProperties.ctx.".concat(ctx),
38
+ id: `customProperties.ctx.${ctx}`,
40
39
  overrideValue: labelOverrides[ctx],
41
40
  fallbackMessage: kintIntl.formatKintMessage({
42
41
  id: 'customProperties.defaultTitle',
@@ -81,25 +80,21 @@ const CustomPropertiesViewCtx = _ref => {
81
80
  closedByDefault: true,
82
81
  displayWhenClosed: /*#__PURE__*/(0, _jsxRuntime.jsx)(_components.Spinner, {}),
83
82
  displayWhenOpen: /*#__PURE__*/(0, _jsxRuntime.jsx)(_components.Spinner, {}),
84
- id: "".concat(id, "-accordion-").concat(ctx),
83
+ id: `${id}-accordion-${ctx}`,
85
84
  label: getAccordionLabel(),
86
85
  children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_components.Spinner, {})
87
86
  });
88
87
  }
89
- const countSetProperties = primary => {
90
- var _Object$entries$filte, _Object$entries, _Object$entries$filte2;
91
- return (_Object$entries$filte = (_Object$entries = Object.entries(customProperties)) === null || _Object$entries === void 0 ? void 0 : (_Object$entries$filte2 = _Object$entries.filter(_ref2 => {
92
- var _cp$, _cp$$type, _cp$2, _cp$2$type, _cp$3, _cp$3$type;
93
- let [_key, cp] = _ref2;
94
- return (((_cp$ = cp[0]) === null || _cp$ === void 0 ? void 0 : (_cp$$type = _cp$.type) === null || _cp$$type === void 0 ? void 0 : _cp$$type.ctx) === ctx || ctx === 'isNull' && !((_cp$2 = cp[0]) !== null && _cp$2 !== void 0 && (_cp$2$type = _cp$2.type) !== null && _cp$2$type !== void 0 && _cp$2$type.ctx)) &&
95
- // Either the ctx string matches, or isNull matches blank
96
- ((_cp$3 = cp[0]) === null || _cp$3 === void 0 ? void 0 : (_cp$3$type = _cp$3.type) === null || _cp$3$type === void 0 ? void 0 : _cp$3$type.primary) === primary // Only count non-primary set custprops
97
- ;
98
- })) === null || _Object$entries$filte2 === void 0 ? void 0 : _Object$entries$filte2.length) !== null && _Object$entries$filte !== void 0 ? _Object$entries$filte : 0;
99
- };
88
+ const countSetProperties = primary => Object.entries(customProperties)?.filter(_ref2 => {
89
+ let [_key, cp] = _ref2;
90
+ return (cp[0]?.type?.ctx === ctx || ctx === 'isNull' && !cp[0]?.type?.ctx) &&
91
+ // Either the ctx string matches, or isNull matches blank
92
+ cp[0]?.type?.primary === primary // Only count non-primary set custprops
93
+ ;
94
+ })?.length ?? 0;
100
95
 
101
96
  // We need to display any set properties, along with any non-set primary properties
102
- const primaryCount = (_custprops$filter$len = custprops === null || custprops === void 0 ? void 0 : (_custprops$filter = custprops.filter(cp => cp.primary === true)) === null || _custprops$filter === void 0 ? void 0 : _custprops$filter.length) !== null && _custprops$filter$len !== void 0 ? _custprops$filter$len : 0;
97
+ const primaryCount = custprops?.filter(cp => cp.primary === true)?.length ?? 0;
103
98
  const optionalCount = countSetProperties(false);
104
99
  const setPrimaryCount = countSetProperties(true);
105
100
  return primaryCount + optionalCount > 0 && /*#__PURE__*/(0, _jsxRuntime.jsx)(_components.Accordion, {
@@ -110,18 +105,15 @@ const CustomPropertiesViewCtx = _ref => {
110
105
  displayWhenOpen: /*#__PURE__*/(0, _jsxRuntime.jsx)(_components.Badge, {
111
106
  children: setPrimaryCount + optionalCount
112
107
  }),
113
- id: "".concat(id, "-accordion-").concat(ctx),
108
+ id: `${id}-accordion-${ctx}`,
114
109
  label: getAccordionLabel(),
115
- children: custprops.map((cp, index) => {
116
- var _customProperties$cp$;
117
- return /*#__PURE__*/(0, _jsxRuntime.jsx)(_CustomPropertyCard.default, {
118
- ctx: ctx,
119
- customProperty: customProperties === null || customProperties === void 0 ? void 0 : (_customProperties$cp$ = customProperties[cp.name]) === null || _customProperties$cp$ === void 0 ? void 0 : _customProperties$cp$[0],
120
- customPropertyDefinition: cp,
121
- index: index,
122
- labelOverrides: labelOverrides
123
- }, "custom-property-card-".concat(ctx, "[").concat(index, "]"));
124
- })
110
+ children: custprops.map((cp, index) => /*#__PURE__*/(0, _jsxRuntime.jsx)(_CustomPropertyCard.default, {
111
+ ctx: ctx,
112
+ customProperty: customProperties?.[cp.name]?.[0],
113
+ customPropertyDefinition: cp,
114
+ index: index,
115
+ labelOverrides: labelOverrides
116
+ }, `custom-property-card-${ctx}[${index}]`))
125
117
  });
126
118
  };
127
119
  CustomPropertiesViewCtx.propTypes = {
@@ -133,5 +125,4 @@ CustomPropertiesViewCtx.propTypes = {
133
125
  intlNS: _propTypes.default.string,
134
126
  labelOverrides: _propTypes.default.object
135
127
  };
136
- var _default = CustomPropertiesViewCtx;
137
- exports.default = _default;
128
+ var _default = exports.default = CustomPropertiesViewCtx;
@@ -10,8 +10,8 @@ var _components = require("@folio/stripes/components");
10
10
  var CUSTPROP_TYPES = _interopRequireWildcard(require("../../constants/customProperties"));
11
11
  var _hooks = require("../../hooks");
12
12
  var _jsxRuntime = require("react/jsx-runtime");
13
- function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function (nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
14
- function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
13
+ 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); }
14
+ function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != typeof e && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && Object.prototype.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
15
15
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
16
16
  const CustomPropertyCard = _ref => {
17
17
  let {
@@ -30,9 +30,8 @@ const CustomPropertyCard = _ref => {
30
30
  if (!toDisplay) {
31
31
  return null;
32
32
  }
33
- const internalFalse = (customProperty === null || customProperty === void 0 ? void 0 : customProperty.internal) === false || (customProperty === null || customProperty === void 0 ? void 0 : customProperty.internal) === undefined && customPropertyDefinition.defaultInternal === false;
33
+ const internalFalse = customProperty?.internal === false || customProperty?.internal === undefined && customPropertyDefinition.defaultInternal === false;
34
34
  const renderValue = () => {
35
- var _customProperty$value, _customProperty$value2, _customProperty$value3, _customProperty$value4;
36
35
  if (!customProperty) {
37
36
  return kintIntl.formatKintMessage({
38
37
  id: 'notSet',
@@ -42,14 +41,11 @@ const CustomPropertyCard = _ref => {
42
41
  switch (customPropertyDefinition.type) {
43
42
  case CUSTPROP_TYPES.MULTI_REFDATA_CLASS_NAME:
44
43
  return /*#__PURE__*/(0, _jsxRuntime.jsx)(_components.List, {
45
- items: (_customProperty$value = customProperty.value) === null || _customProperty$value === void 0 ? void 0 : _customProperty$value.map(item => {
46
- var _item$label;
47
- return (_item$label = item === null || item === void 0 ? void 0 : item.label) !== null && _item$label !== void 0 ? _item$label : item === null || item === void 0 ? void 0 : item.value;
48
- }),
44
+ items: customProperty.value?.map(item => item?.label ?? item?.value),
49
45
  listStyle: "bullets"
50
46
  });
51
47
  case CUSTPROP_TYPES.REFDATA_CLASS_NAME:
52
- return (_customProperty$value2 = (_customProperty$value3 = customProperty.value) === null || _customProperty$value3 === void 0 ? void 0 : _customProperty$value3.label) !== null && _customProperty$value2 !== void 0 ? _customProperty$value2 : (_customProperty$value4 = customProperty.value) === null || _customProperty$value4 === void 0 ? void 0 : _customProperty$value4.value;
48
+ return customProperty.value?.label ?? customProperty.value?.value;
53
49
  case CUSTPROP_TYPES.DECIMAL_CLASS_NAME:
54
50
  case CUSTPROP_TYPES.INTEGER_CLASS_NAME:
55
51
  return /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactIntl.FormattedNumber, {
@@ -77,7 +73,7 @@ const CustomPropertyCard = _ref => {
77
73
  content: customPropertyDefinition.description
78
74
  }) : null]
79
75
  }),
80
- id: "customproperty-card-".concat(index),
76
+ id: `customproperty-card-${index}`,
81
77
  children: [/*#__PURE__*/(0, _jsxRuntime.jsxs)(_components.Row, {
82
78
  children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_components.Col, {
83
79
  xs: 6,
@@ -88,7 +84,7 @@ const CustomPropertyCard = _ref => {
88
84
  }),
89
85
  children: renderValue()
90
86
  })
91
- }), customProperty !== null && customProperty !== void 0 && customProperty.note ? /*#__PURE__*/(0, _jsxRuntime.jsx)(_components.Col, {
87
+ }), customProperty?.note ? /*#__PURE__*/(0, _jsxRuntime.jsx)(_components.Col, {
92
88
  xs: 6,
93
89
  children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_components.KeyValue, {
94
90
  label: kintIntl.formatKintMessage({
@@ -123,7 +119,7 @@ const CustomPropertyCard = _ref => {
123
119
  id: 'customProperties.publicNote',
124
120
  overrideValue: labelOverrides.publicNote
125
121
  }),
126
- children: customProperty !== null && customProperty !== void 0 && customProperty.publicNote ? /*#__PURE__*/(0, _jsxRuntime.jsx)("span", {
122
+ children: customProperty?.publicNote ? /*#__PURE__*/(0, _jsxRuntime.jsx)("span", {
127
123
  style: {
128
124
  whiteSpace: 'pre-wrap'
129
125
  },
@@ -132,7 +128,7 @@ const CustomPropertyCard = _ref => {
132
128
  })
133
129
  })]
134
130
  })]
135
- }, "customPropertyCard-".concat(ctx, "[").concat(index, "]"));
131
+ }, `customPropertyCard-${ctx}[${index}]`);
136
132
  };
137
133
  CustomPropertyCard.propTypes = {
138
134
  ctx: _propTypes.default.string,
@@ -143,5 +139,4 @@ CustomPropertyCard.propTypes = {
143
139
  intlNS: _propTypes.default.string,
144
140
  labelOverrides: _propTypes.default.object
145
141
  };
146
- var _default = CustomPropertyCard;
147
- exports.default = _default;
142
+ var _default = exports.default = CustomPropertyCard;
@@ -4,9 +4,8 @@ Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
6
  exports.labelOverrides = exports.data = exports.customProperties = exports.contexts = void 0;
7
- const contexts = ['isNull', 'OpenAccess'];
8
- exports.contexts = contexts;
9
- const customProperties = {
7
+ const contexts = exports.contexts = ['isNull', 'OpenAccess'];
8
+ const customProperties = exports.customProperties = {
10
9
  'AuthorIdentification': [{
11
10
  'id': 2,
12
11
  'publicNote': 'public note',
@@ -65,15 +64,13 @@ const customProperties = {
65
64
  }
66
65
  }]
67
66
  };
68
- exports.customProperties = customProperties;
69
- const labelOverrides = {
67
+ const labelOverrides = exports.labelOverrides = {
70
68
  'defaultTitle': 'ƒ defaultTitle() {}',
71
69
  'noContext': '<Memo />',
72
70
  'OpenAccess': '<Memo />',
73
71
  'retiredName': 'ƒ retiredName() {}'
74
72
  };
75
- exports.labelOverrides = labelOverrides;
76
- const data = {
73
+ const data = exports.data = {
77
74
  'ctx': 'isNull',
78
75
  'customProperties': {
79
76
  'AuthorIdentification': [{
@@ -140,5 +137,4 @@ const data = {
140
137
  'OpenAccess': '<Memo />',
141
138
  'retiredName': 'ƒ retiredName() {}'
142
139
  }
143
- };
144
- exports.data = data;
140
+ };
@@ -29,7 +29,7 @@ const CycleButton = _ref => {
29
29
  if (onClick) {
30
30
  onClick(e);
31
31
  }
32
- setIndex(index !== (buttons === null || buttons === void 0 ? void 0 : buttons.length) - 1 ? index + 1 : 0);
32
+ setIndex(index !== buttons?.length - 1 ? index + 1 : 0);
33
33
  }
34
34
  });
35
35
  };
@@ -41,5 +41,4 @@ CycleButton.propTypes = {
41
41
  })),
42
42
  startIndex: _propTypes.default.number
43
43
  };
44
- var _default = CycleButton;
45
- exports.default = _default;
44
+ var _default = exports.default = CycleButton;
@@ -14,8 +14,8 @@ var _validators = require("../validators");
14
14
  var _utils = require("../utils");
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 propTypes = {
20
20
  afterQueryCalls: _propTypes.default.object,
21
21
  catchQueryCalls: _propTypes.default.object,
@@ -31,7 +31,6 @@ const propTypes = {
31
31
  refdataEndpoint: _propTypes.default.string
32
32
  };
33
33
  const EditableRefdataCategoryList = _ref => {
34
- var _deleteModal$refdata2;
35
34
  let {
36
35
  afterQueryCalls,
37
36
  catchQueryCalls,
@@ -77,8 +76,7 @@ const EditableRefdataCategoryList = _ref => {
77
76
  const sortByDesc = (a, b) => a.desc.localeCompare(b.desc);
78
77
  (0, _react.useEffect)(() => {
79
78
  if (!isRefdataLoading) {
80
- var _refdata$sort;
81
- setContentData((_refdata$sort = refdata === null || refdata === void 0 ? void 0 : refdata.sort(sortByDesc)) !== null && _refdata$sort !== void 0 ? _refdata$sort : []);
79
+ setContentData(refdata?.sort(sortByDesc) ?? []);
82
80
  }
83
81
  }, [isRefdataLoading, refdata]);
84
82
 
@@ -89,12 +87,12 @@ const EditableRefdataCategoryList = _ref => {
89
87
  } = (0, _hooks.useMutateRefdataCategory)({
90
88
  afterQueryCalls: {
91
89
  delete: json => {
92
- if (afterQueryCalls !== null && afterQueryCalls !== void 0 && afterQueryCalls.delete) {
90
+ if (afterQueryCalls?.delete) {
93
91
  afterQueryCalls.delete(json);
94
92
  }
95
93
  },
96
94
  post: json => {
97
- if (afterQueryCalls !== null && afterQueryCalls !== void 0 && afterQueryCalls.post) {
95
+ if (afterQueryCalls?.post) {
98
96
  afterQueryCalls.post(json);
99
97
  }
100
98
  }
@@ -103,15 +101,14 @@ const EditableRefdataCategoryList = _ref => {
103
101
  // Default delete behaviour is to fire a callout, either with kint-components default message
104
102
  // or one provided in labelOverrides, which is passed the error message and refdata in question
105
103
  delete: async err => {
106
- var _deleteModal$refdata;
107
104
  const errorResp = await (0, _utils.parseErrorResponse)(err.response);
108
105
  callout.sendCallout({
109
106
  message: kintIntl.formatKintMessage({
110
107
  id: 'refdataCategory.deleteRefdataCategory.errorMessage',
111
- overrideValue: labelOverrides === null || labelOverrides === void 0 ? void 0 : labelOverrides.deleteError
108
+ overrideValue: labelOverrides?.deleteError
112
109
  }, {
113
- label: deleteModal === null || deleteModal === void 0 ? void 0 : (_deleteModal$refdata = deleteModal.refdata) === null || _deleteModal$refdata === void 0 ? void 0 : _deleteModal$refdata.label,
114
- error: errorResp === null || errorResp === void 0 ? void 0 : errorResp.message
110
+ label: deleteModal?.refdata?.label,
111
+ error: errorResp?.message
115
112
  }),
116
113
  type: 'error'
117
114
  });
@@ -120,7 +117,7 @@ const EditableRefdataCategoryList = _ref => {
120
117
  },
121
118
 
122
119
  endpoint: refdataEndpoint,
123
- id: refdata === null || refdata === void 0 ? void 0 : refdata.id,
120
+ id: refdata?.id,
124
121
  queryParams: {
125
122
  delete: {
126
123
  enabled: !!refdata
@@ -136,14 +133,13 @@ const EditableRefdataCategoryList = _ref => {
136
133
 
137
134
  // This is the function which will take a row in the table and assign the relevant actions to it
138
135
  const actionAssigner = rowData => {
139
- var _rowData$values;
140
136
  const actionArray = [];
141
- if (!(rowData !== null && rowData !== void 0 && (_rowData$values = rowData.values) !== null && _rowData$values !== void 0 && _rowData$values.length) && deleteCondition) {
137
+ if (!rowData?.values?.length && deleteCondition) {
142
138
  actionArray.push({
143
139
  name: 'delete',
144
140
  label: kintIntl.formatKintMessage({
145
141
  id: 'delete',
146
- overrideValue: labelOverrides === null || labelOverrides === void 0 ? void 0 : labelOverrides.delete
142
+ overrideValue: labelOverrides?.delete
147
143
  }),
148
144
  icon: 'trash',
149
145
  callback: data => setDeleteModal({
@@ -152,9 +148,9 @@ const EditableRefdataCategoryList = _ref => {
152
148
  }),
153
149
  ariaLabel: data => kintIntl.formatKintMessage({
154
150
  id: 'refdataCategory.deleteAriaLabel',
155
- overrideValue: labelOverrides === null || labelOverrides === void 0 ? void 0 : labelOverrides.deleteAriaLabel
151
+ overrideValue: labelOverrides?.deleteAriaLabel
156
152
  }, {
157
- label: data === null || data === void 0 ? void 0 : data.label
153
+ label: data?.label
158
154
  })
159
155
  });
160
156
  }
@@ -166,11 +162,11 @@ const EditableRefdataCategoryList = _ref => {
166
162
  columnMapping: {
167
163
  desc: kintIntl.formatKintMessage({
168
164
  id: 'refdataCategory.refdataCategory',
169
- overrideValue: labelOverrides === null || labelOverrides === void 0 ? void 0 : labelOverrides.refdataCategory
165
+ overrideValue: labelOverrides?.refdataCategory
170
166
  }),
171
167
  values: kintIntl.formatKintMessage({
172
168
  id: 'refdataCategory.noOfValues',
173
- overrideValue: labelOverrides === null || labelOverrides === void 0 ? void 0 : labelOverrides.noOfValues
169
+ overrideValue: labelOverrides?.noOfValues
174
170
  })
175
171
  },
176
172
  contentData: contentData,
@@ -179,16 +175,10 @@ const EditableRefdataCategoryList = _ref => {
179
175
  },
180
176
  createCallback: !createCondition ? null : data => createRefdataCategory(data),
181
177
  formatter: {
182
- values: rowData => {
183
- var _rowData$values2;
184
- return rowData === null || rowData === void 0 ? void 0 : (_rowData$values2 = rowData.values) === null || _rowData$values2 === void 0 ? void 0 : _rowData$values2.length;
185
- }
178
+ values: rowData => rowData?.values?.length
186
179
  }
187
180
  /* Hide actions column when no permissions, or no deletable refdata categories */,
188
- hideActionsColumn: !createCondition && !deleteCondition || !(contentData !== null && contentData !== void 0 && contentData.find(cd => {
189
- var _cd$values;
190
- return (cd === null || cd === void 0 ? void 0 : (_cd$values = cd.values) === null || _cd$values === void 0 ? void 0 : _cd$values.length) === 0;
191
- })),
181
+ hideActionsColumn: !createCondition && !deleteCondition || !contentData?.find(cd => cd?.values?.length === 0),
192
182
  label: label,
193
183
  validateFields: {
194
184
  desc: () => _validators.required
@@ -197,34 +187,32 @@ const EditableRefdataCategoryList = _ref => {
197
187
  }), /*#__PURE__*/(0, _jsxRuntime.jsx)(_components.ConfirmationModal, {
198
188
  confirmLabel: kintIntl.formatKintMessage({
199
189
  id: 'delete',
200
- overrideValue: labelOverrides === null || labelOverrides === void 0 ? void 0 : labelOverrides.delete
190
+ overrideValue: labelOverrides?.delete
201
191
  }),
202
192
  heading: kintIntl.formatKintMessage({
203
193
  id: 'refdataCategory.deleteRefdataCategory',
204
- overrideValue: labelOverrides === null || labelOverrides === void 0 ? void 0 : labelOverrides.deleteRefdataCategory
194
+ overrideValue: labelOverrides?.deleteRefdataCategory
205
195
  }),
206
196
  message: kintIntl.formatKintMessage({
207
197
  id: 'refdataCategory.deleteRefdataCategory.confirmMessage',
208
- overrideValue: labelOverrides === null || labelOverrides === void 0 ? void 0 : labelOverrides.deleteRefdataCategoryMessage
198
+ overrideValue: labelOverrides?.deleteRefdataCategoryMessage
209
199
  }, {
210
- name: deleteModal === null || deleteModal === void 0 ? void 0 : (_deleteModal$refdata2 = deleteModal.refdata) === null || _deleteModal$refdata2 === void 0 ? void 0 : _deleteModal$refdata2.desc
200
+ name: deleteModal?.refdata?.desc
211
201
  }),
212
202
  onCancel: () => setDeleteModal({
213
203
  visible: false,
214
204
  refdata: null
215
205
  }),
216
206
  onConfirm: () => {
217
- var _deleteModal$refdata3;
218
- deleteRefdataCategory(deleteModal === null || deleteModal === void 0 ? void 0 : (_deleteModal$refdata3 = deleteModal.refdata) === null || _deleteModal$refdata3 === void 0 ? void 0 : _deleteModal$refdata3.id);
207
+ deleteRefdataCategory(deleteModal?.refdata?.id);
219
208
  setDeleteModal({
220
209
  visible: false,
221
210
  refdata: null
222
211
  });
223
212
  },
224
- open: deleteModal === null || deleteModal === void 0 ? void 0 : deleteModal.visible
213
+ open: deleteModal?.visible
225
214
  })]
226
215
  });
227
216
  };
228
217
  EditableRefdataCategoryList.propTypes = propTypes;
229
- var _default = EditableRefdataCategoryList;
230
- exports.default = _default;
218
+ var _default = exports.default = EditableRefdataCategoryList;