@k-int/stripes-kint-components 3.2.3 → 3.2.4

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 (325) hide show
  1. package/CHANGELOG.md +7 -0
  2. package/es/index.js +78 -79
  3. package/es/lib/ActionList/ActionList.js +38 -51
  4. package/es/lib/ActionList/ActionListFieldArray.js +159 -194
  5. package/es/lib/ActionList/index.js +1 -1
  6. package/es/lib/CustomProperties/Config/CustomPropertiesLookup.js +59 -83
  7. package/es/lib/CustomProperties/Config/CustomPropertiesLookup.test.js +15 -19
  8. package/es/lib/CustomProperties/Config/CustomPropertiesSettings.js +124 -175
  9. package/es/lib/CustomProperties/Config/CustomPropertiesSettings.test.js +30 -67
  10. package/es/lib/CustomProperties/Config/CustomPropertyForm.js +93 -106
  11. package/es/lib/CustomProperties/Config/CustomPropertyForm.test.js +83 -121
  12. package/es/lib/CustomProperties/Config/CustomPropertyView.js +42 -43
  13. package/es/lib/CustomProperties/Config/CustomPropertyView.test.js +48 -135
  14. package/es/lib/CustomProperties/Config/index.js +4 -4
  15. package/es/lib/CustomProperties/Edit/CustomPropertiesEdit.js +20 -23
  16. package/es/lib/CustomProperties/Edit/CustomPropertiesEdit.test.js +11 -16
  17. package/es/lib/CustomProperties/Edit/CustomPropertiesEditCtx.js +33 -32
  18. package/es/lib/CustomProperties/Edit/CustomPropertiesEditCtx.test.js +11 -16
  19. package/es/lib/CustomProperties/Edit/CustomPropertiesListField.js +88 -111
  20. package/es/lib/CustomProperties/Edit/CustomPropertiesListField.test.js +26 -63
  21. package/es/lib/CustomProperties/Edit/CustomPropertyField.js +134 -134
  22. package/es/lib/CustomProperties/Edit/CustomPropertyField.test.js +95 -176
  23. package/es/lib/CustomProperties/Edit/CustomPropertyFormCard.js +46 -48
  24. package/es/lib/CustomProperties/Edit/CustomPropertyFormCard.test.js +23 -27
  25. package/es/lib/CustomProperties/Edit/index.js +5 -5
  26. package/es/lib/CustomProperties/Edit/testResources.js +14 -39
  27. package/es/lib/CustomProperties/Filter/CustomPropertiesFilter.js +64 -91
  28. package/es/lib/CustomProperties/Filter/CustomPropertiesFilter.test.js +23 -57
  29. package/es/lib/CustomProperties/Filter/CustomPropertiesFilterField.js +53 -77
  30. package/es/lib/CustomProperties/Filter/CustomPropertiesFilterField.test.js +17 -16
  31. package/es/lib/CustomProperties/Filter/CustomPropertiesFilterFieldArray.js +34 -31
  32. package/es/lib/CustomProperties/Filter/CustomPropertiesFilterFieldArray.test.js +18 -45
  33. package/es/lib/CustomProperties/Filter/CustomPropertiesFilterForm.js +19 -22
  34. package/es/lib/CustomProperties/Filter/CustomPropertiesFilterForm.test.js +23 -52
  35. package/es/lib/CustomProperties/Filter/CustomPropertiesRule.js +44 -49
  36. package/es/lib/CustomProperties/Filter/CustomPropertiesRule.test.js +77 -225
  37. package/es/lib/CustomProperties/Filter/index.js +6 -6
  38. package/es/lib/CustomProperties/Filter/testResources.js +13 -37
  39. package/es/lib/CustomProperties/Filter/useOperators.js +18 -18
  40. package/es/lib/CustomProperties/Filter/useParseActiveFilterStrings.js +18 -33
  41. package/es/lib/CustomProperties/Filter/useValueProps.js +23 -29
  42. package/es/lib/CustomProperties/View/CustomPropertiesView.js +20 -23
  43. package/es/lib/CustomProperties/View/CustomPropertiesView.test.js +11 -16
  44. package/es/lib/CustomProperties/View/CustomPropertiesViewCtx.js +63 -80
  45. package/es/lib/CustomProperties/View/CustomPropertiesViewCtx.test.js +14 -23
  46. package/es/lib/CustomProperties/View/CustomPropertyCard.js +23 -29
  47. package/es/lib/CustomProperties/View/index.js +3 -3
  48. package/es/lib/CustomProperties/View/testResources.js +5 -9
  49. package/es/lib/CustomProperties/index.js +18 -18
  50. package/es/lib/CycleButton/CycleButton.js +19 -35
  51. package/es/lib/CycleButton/index.js +1 -1
  52. package/es/lib/EditableRefdataCategoryList/EditableRefdataCategoryList.js +105 -162
  53. package/es/lib/EditableRefdataCategoryList/index.js +1 -1
  54. package/es/lib/EditableRefdataList/EditableRefdataList.js +119 -179
  55. package/es/lib/EditableRefdataList/index.js +1 -1
  56. package/es/lib/EditableSettingsList/EditableSettingsList.js +15 -13
  57. package/es/lib/EditableSettingsList/EditableSettingsListFieldArray.js +19 -26
  58. package/es/lib/EditableSettingsList/EditableSettingsListFieldArray.test.js +61 -90
  59. package/es/lib/EditableSettingsList/SettingField/EditSettingValue.js +27 -41
  60. package/es/lib/EditableSettingsList/SettingField/EditSettingValue.test.js +99 -83
  61. package/es/lib/EditableSettingsList/SettingField/RenderSettingValue.js +25 -30
  62. package/es/lib/EditableSettingsList/SettingField/RenderSettingValue.test.js +187 -275
  63. package/es/lib/EditableSettingsList/SettingField/SettingField.js +76 -111
  64. package/es/lib/EditableSettingsList/SettingField/SettingField.test.js +52 -157
  65. package/es/lib/EditableSettingsList/SettingField/index.js +3 -3
  66. package/es/lib/EditableSettingsList/index.js +3 -3
  67. package/es/lib/FormModal/FormModal.js +44 -48
  68. package/es/lib/FormModal/index.js +1 -1
  69. package/es/lib/FormattedKintMessage/FormattedKintMessage.js +27 -35
  70. package/es/lib/FormattedKintMessage/index.js +1 -1
  71. package/es/lib/IconSelect/IconSelect.js +52 -77
  72. package/es/lib/IconSelect/index.js +1 -1
  73. package/es/lib/NoResultsMessage/NoResultsMessage.js +23 -23
  74. package/es/lib/NoResultsMessage/index.js +1 -1
  75. package/es/lib/QueryTypedown/QueryTypedown.js +16 -35
  76. package/es/lib/QueryTypedown/index.js +1 -1
  77. package/es/lib/RefdataButtons/RefdataButtons.js +30 -34
  78. package/es/lib/RefdataButtons/index.js +1 -1
  79. package/es/lib/ResponsiveButtonGroup/ResponsiveButtonGroup.js +77 -95
  80. package/es/lib/ResponsiveButtonGroup/index.js +1 -1
  81. package/es/lib/ResponsiveButtonGroup/useResponsiveButtonGroupSizing.js +24 -39
  82. package/es/lib/RichSelect/RichSelect.js +78 -100
  83. package/es/lib/RichSelect/index.js +2 -2
  84. package/es/lib/RichSelect/useSelectedOption.js +5 -16
  85. package/es/lib/SASQLookupComponent/SASQLookupComponent.js +107 -139
  86. package/es/lib/SASQLookupComponent/TableBody/TableBody.js +43 -52
  87. package/es/lib/SASQLookupComponent/TableBody/index.js +1 -1
  88. package/es/lib/SASQLookupComponent/index.js +2 -2
  89. package/es/lib/SASQRoute/SASQRoute.js +34 -41
  90. package/es/lib/SASQRoute/index.js +1 -1
  91. package/es/lib/SASQViewComponent/SASQViewComponent.js +37 -49
  92. package/es/lib/SASQViewComponent/index.js +1 -1
  93. package/es/lib/SearchField/SearchField.js +11 -18
  94. package/es/lib/SearchField/index.js +1 -1
  95. package/es/lib/SettingPage/SettingPage.js +20 -19
  96. package/es/lib/SettingPage/SettingPagePane.js +11 -10
  97. package/es/lib/SettingPage/index.js +2 -2
  98. package/es/lib/Typedown/Typedown.js +73 -98
  99. package/es/lib/Typedown/index.js +1 -1
  100. package/es/lib/constants/customProperties.js +11 -22
  101. package/es/lib/constants/eventCodes.js +3 -6
  102. package/es/lib/contexts/SettingsContext.js +2 -3
  103. package/es/lib/contexts/index.js +1 -1
  104. package/es/lib/hooks/__mocks__/index.js +9 -29
  105. package/es/lib/hooks/index.js +20 -20
  106. package/es/lib/hooks/settingsHooks/index.js +3 -3
  107. package/es/lib/hooks/settingsHooks/useAppSettings.js +22 -34
  108. package/es/lib/hooks/settingsHooks/useSettingSection.js +17 -19
  109. package/es/lib/hooks/settingsHooks/useSettings.js +58 -72
  110. package/es/lib/hooks/typedownHooks/index.js +3 -3
  111. package/es/lib/hooks/typedownHooks/useTypedown.js +49 -50
  112. package/es/lib/hooks/typedownHooks/useTypedownData.js +12 -23
  113. package/es/lib/hooks/typedownHooks/useTypedownToggle.js +13 -22
  114. package/es/lib/hooks/useActiveElement.js +10 -20
  115. package/es/lib/hooks/useCustomProperties.js +23 -32
  116. package/es/lib/hooks/useHelperApp.js +31 -51
  117. package/es/lib/hooks/useIntlKey.js +4 -7
  118. package/es/lib/hooks/useIntlKeyStore.js +42 -51
  119. package/es/lib/hooks/useInvalidateRefdata.js +4 -7
  120. package/es/lib/hooks/useKintIntl.js +31 -41
  121. package/es/lib/hooks/useKiwtFieldArray.js +35 -47
  122. package/es/lib/hooks/useKiwtSASQuery.js +40 -51
  123. package/es/lib/hooks/useLocalStorageState.js +7 -20
  124. package/es/lib/hooks/useMutateCustomProperties.js +23 -67
  125. package/es/lib/hooks/useMutateRefdataCategory.js +22 -64
  126. package/es/lib/hooks/useMutateRefdataValue.js +31 -69
  127. package/es/lib/hooks/useQIndex.js +17 -32
  128. package/es/lib/hooks/useRefdata.js +19 -22
  129. package/es/lib/hooks/useSASQQueryMeta.js +14 -22
  130. package/es/lib/hooks/useTemplates.js +16 -16
  131. package/es/lib/utils/buildUrl.js +6 -6
  132. package/es/lib/utils/generateKiwtQuery.js +4 -7
  133. package/es/lib/utils/generateKiwtQueryParams.js +77 -96
  134. package/es/lib/utils/groupCustomPropertiesByCtx.js +9 -21
  135. package/es/lib/utils/highlightString.js +17 -37
  136. package/es/lib/utils/index.js +21 -21
  137. package/es/lib/utils/matchString.js +5 -10
  138. package/es/lib/utils/parseErrorResponse.js +22 -65
  139. package/es/lib/utils/refdataOptions.js +2 -3
  140. package/es/lib/utils/refdataQueryKey.js +3 -4
  141. package/es/lib/utils/selectorSafe.js +2 -3
  142. package/es/lib/utils/sortByLabel.js +4 -6
  143. package/es/lib/utils/toCamelCase.js +8 -14
  144. package/es/lib/utils/typedownQueryKey.js +3 -4
  145. package/es/lib/utils/validators.js +25 -32
  146. package/package.json +12 -2
  147. package/es/artifacts/coverage-jest/lcov-report/block-navigation.js +0 -69
  148. package/es/artifacts/coverage-jest/lcov-report/prettify.js +0 -814
  149. package/es/artifacts/coverage-jest/lcov-report/sorter.js +0 -181
  150. package/junit.xml +0 -1543
  151. package/src/artifacts/coverage-jest/lcov-report/ActionList/ActionList.js.html +0 -373
  152. package/src/artifacts/coverage-jest/lcov-report/ActionList/ActionListFieldArray.js.html +0 -1465
  153. package/src/artifacts/coverage-jest/lcov-report/ActionList/index.html +0 -146
  154. package/src/artifacts/coverage-jest/lcov-report/ActionList/index.js.html +0 -88
  155. package/src/artifacts/coverage-jest/lcov-report/CustomProperties/Config/CustomPropertiesLookup.js.html +0 -667
  156. package/src/artifacts/coverage-jest/lcov-report/CustomProperties/Config/CustomPropertiesSettings.js.html +0 -1240
  157. package/src/artifacts/coverage-jest/lcov-report/CustomProperties/Config/CustomPropertyForm.js.html +0 -1474
  158. package/src/artifacts/coverage-jest/lcov-report/CustomProperties/Config/CustomPropertyView.js.html +0 -733
  159. package/src/artifacts/coverage-jest/lcov-report/CustomProperties/Config/index.html +0 -176
  160. package/src/artifacts/coverage-jest/lcov-report/CustomProperties/Config/index.js.html +0 -97
  161. package/src/artifacts/coverage-jest/lcov-report/CustomProperties/Config/testResources.js.html +0 -793
  162. package/src/artifacts/coverage-jest/lcov-report/CustomProperties/Edit/CustomPropertiesEdit.js.html +0 -208
  163. package/src/artifacts/coverage-jest/lcov-report/CustomProperties/Edit/CustomPropertiesEditCtx.js.html +0 -352
  164. package/src/artifacts/coverage-jest/lcov-report/CustomProperties/Edit/CustomPropertiesListField.js.html +0 -826
  165. package/src/artifacts/coverage-jest/lcov-report/CustomProperties/Edit/CustomPropertyField.js.html +0 -1297
  166. package/src/artifacts/coverage-jest/lcov-report/CustomProperties/Edit/CustomPropertyFormCard.js.html +0 -454
  167. package/src/artifacts/coverage-jest/lcov-report/CustomProperties/Edit/index.html +0 -206
  168. package/src/artifacts/coverage-jest/lcov-report/CustomProperties/Edit/index.js.html +0 -100
  169. package/src/artifacts/coverage-jest/lcov-report/CustomProperties/Edit/testResources.js.html +0 -271
  170. package/src/artifacts/coverage-jest/lcov-report/CustomProperties/Filter/CustomPropertiesFilter.js.html +0 -499
  171. package/src/artifacts/coverage-jest/lcov-report/CustomProperties/Filter/CustomPropertiesFilterField.js.html +0 -568
  172. package/src/artifacts/coverage-jest/lcov-report/CustomProperties/Filter/CustomPropertiesFilterFieldArray.js.html +0 -415
  173. package/src/artifacts/coverage-jest/lcov-report/CustomProperties/Filter/CustomPropertiesFilterForm.js.html +0 -340
  174. package/src/artifacts/coverage-jest/lcov-report/CustomProperties/Filter/CustomPropertiesRule.js.html +0 -502
  175. package/src/artifacts/coverage-jest/lcov-report/CustomProperties/Filter/index.html +0 -251
  176. package/src/artifacts/coverage-jest/lcov-report/CustomProperties/Filter/index.js.html +0 -103
  177. package/src/artifacts/coverage-jest/lcov-report/CustomProperties/Filter/testResources.js.html +0 -223
  178. package/src/artifacts/coverage-jest/lcov-report/CustomProperties/Filter/useOperators.js.html +0 -271
  179. package/src/artifacts/coverage-jest/lcov-report/CustomProperties/Filter/useParseActiveFilterStrings.js.html +0 -199
  180. package/src/artifacts/coverage-jest/lcov-report/CustomProperties/Filter/useValueProps.js.html +0 -253
  181. package/src/artifacts/coverage-jest/lcov-report/CustomProperties/View/CustomPropertiesView.js.html +0 -211
  182. package/src/artifacts/coverage-jest/lcov-report/CustomProperties/View/CustomPropertiesViewCtx.js.html +0 -445
  183. package/src/artifacts/coverage-jest/lcov-report/CustomProperties/View/CustomPropertyCard.js.html +0 -619
  184. package/src/artifacts/coverage-jest/lcov-report/CustomProperties/View/index.html +0 -176
  185. package/src/artifacts/coverage-jest/lcov-report/CustomProperties/View/index.js.html +0 -94
  186. package/src/artifacts/coverage-jest/lcov-report/CustomProperties/View/testResources.js.html +0 -571
  187. package/src/artifacts/coverage-jest/lcov-report/CustomProperties/index.html +0 -116
  188. package/src/artifacts/coverage-jest/lcov-report/CustomProperties/index.js.html +0 -175
  189. package/src/artifacts/coverage-jest/lcov-report/CycleButton/CycleButton.js.html +0 -217
  190. package/src/artifacts/coverage-jest/lcov-report/CycleButton/index.html +0 -131
  191. package/src/artifacts/coverage-jest/lcov-report/CycleButton/index.js.html +0 -88
  192. package/src/artifacts/coverage-jest/lcov-report/EditableRefdataCategoryList/EditableRefdataCategoryList.js.html +0 -751
  193. package/src/artifacts/coverage-jest/lcov-report/EditableRefdataCategoryList/index.html +0 -131
  194. package/src/artifacts/coverage-jest/lcov-report/EditableRefdataCategoryList/index.js.html +0 -88
  195. package/src/artifacts/coverage-jest/lcov-report/EditableRefdataList/EditableRefdataList.js.html +0 -853
  196. package/src/artifacts/coverage-jest/lcov-report/EditableRefdataList/index.html +0 -131
  197. package/src/artifacts/coverage-jest/lcov-report/EditableRefdataList/index.js.html +0 -88
  198. package/src/artifacts/coverage-jest/lcov-report/EditableSettingsList/EditableSettingsList.js.html +0 -280
  199. package/src/artifacts/coverage-jest/lcov-report/EditableSettingsList/EditableSettingsListFieldArray.js.html +0 -259
  200. package/src/artifacts/coverage-jest/lcov-report/EditableSettingsList/SettingField/EditSettingValue.js.html +0 -412
  201. package/src/artifacts/coverage-jest/lcov-report/EditableSettingsList/SettingField/RenderSettingValue.js.html +0 -313
  202. package/src/artifacts/coverage-jest/lcov-report/EditableSettingsList/SettingField/SettingField.js.html +0 -574
  203. package/src/artifacts/coverage-jest/lcov-report/EditableSettingsList/SettingField/index.html +0 -161
  204. package/src/artifacts/coverage-jest/lcov-report/EditableSettingsList/SettingField/index.js.html +0 -94
  205. package/src/artifacts/coverage-jest/lcov-report/EditableSettingsList/index.html +0 -146
  206. package/src/artifacts/coverage-jest/lcov-report/EditableSettingsList/index.js.html +0 -94
  207. package/src/artifacts/coverage-jest/lcov-report/FormModal/FormModal.js.html +0 -379
  208. package/src/artifacts/coverage-jest/lcov-report/FormModal/index.html +0 -131
  209. package/src/artifacts/coverage-jest/lcov-report/FormModal/index.js.html +0 -88
  210. package/src/artifacts/coverage-jest/lcov-report/FormattedKintMessage/FormattedKintMessage.js.html +0 -247
  211. package/src/artifacts/coverage-jest/lcov-report/FormattedKintMessage/index.html +0 -131
  212. package/src/artifacts/coverage-jest/lcov-report/FormattedKintMessage/index.js.html +0 -88
  213. package/src/artifacts/coverage-jest/lcov-report/IconSelect/IconSelect.js.html +0 -508
  214. package/src/artifacts/coverage-jest/lcov-report/IconSelect/index.html +0 -131
  215. package/src/artifacts/coverage-jest/lcov-report/IconSelect/index.js.html +0 -88
  216. package/src/artifacts/coverage-jest/lcov-report/NoResultsMessage/NoResultsMessage.js.html +0 -361
  217. package/src/artifacts/coverage-jest/lcov-report/NoResultsMessage/index.html +0 -131
  218. package/src/artifacts/coverage-jest/lcov-report/NoResultsMessage/index.js.html +0 -88
  219. package/src/artifacts/coverage-jest/lcov-report/QueryTypedown/QueryTypedown.js.html +0 -205
  220. package/src/artifacts/coverage-jest/lcov-report/QueryTypedown/index.html +0 -131
  221. package/src/artifacts/coverage-jest/lcov-report/QueryTypedown/index.js.html +0 -88
  222. package/src/artifacts/coverage-jest/lcov-report/RefdataButtons/RefdataButtons.js.html +0 -370
  223. package/src/artifacts/coverage-jest/lcov-report/RefdataButtons/index.html +0 -131
  224. package/src/artifacts/coverage-jest/lcov-report/RefdataButtons/index.js.html +0 -88
  225. package/src/artifacts/coverage-jest/lcov-report/ResponsiveButtonGroup/ResponsiveButtonGroup.js.html +0 -580
  226. package/src/artifacts/coverage-jest/lcov-report/ResponsiveButtonGroup/index.html +0 -146
  227. package/src/artifacts/coverage-jest/lcov-report/ResponsiveButtonGroup/index.js.html +0 -88
  228. package/src/artifacts/coverage-jest/lcov-report/ResponsiveButtonGroup/useResponsiveButtonGroupSizing.js.html +0 -301
  229. package/src/artifacts/coverage-jest/lcov-report/RichSelect/RichSelect.js.html +0 -718
  230. package/src/artifacts/coverage-jest/lcov-report/RichSelect/index.html +0 -146
  231. package/src/artifacts/coverage-jest/lcov-report/RichSelect/index.js.html +0 -91
  232. package/src/artifacts/coverage-jest/lcov-report/RichSelect/useSelectedOption.js.html +0 -127
  233. package/src/artifacts/coverage-jest/lcov-report/SASQLookupComponent/SASQLookupComponent.js.html +0 -1069
  234. package/src/artifacts/coverage-jest/lcov-report/SASQLookupComponent/TableBody/TableBody.js.html +0 -400
  235. package/src/artifacts/coverage-jest/lcov-report/SASQLookupComponent/TableBody/index.html +0 -131
  236. package/src/artifacts/coverage-jest/lcov-report/SASQLookupComponent/TableBody/index.js.html +0 -88
  237. package/src/artifacts/coverage-jest/lcov-report/SASQLookupComponent/index.html +0 -131
  238. package/src/artifacts/coverage-jest/lcov-report/SASQLookupComponent/index.js.html +0 -91
  239. package/src/artifacts/coverage-jest/lcov-report/SASQRoute/SASQRoute.js.html +0 -346
  240. package/src/artifacts/coverage-jest/lcov-report/SASQRoute/index.html +0 -131
  241. package/src/artifacts/coverage-jest/lcov-report/SASQRoute/index.js.html +0 -88
  242. package/src/artifacts/coverage-jest/lcov-report/SASQViewComponent/SASQViewComponent.js.html +0 -307
  243. package/src/artifacts/coverage-jest/lcov-report/SASQViewComponent/index.html +0 -131
  244. package/src/artifacts/coverage-jest/lcov-report/SASQViewComponent/index.js.html +0 -88
  245. package/src/artifacts/coverage-jest/lcov-report/SearchField/SearchField.js.html +0 -214
  246. package/src/artifacts/coverage-jest/lcov-report/SearchField/index.html +0 -131
  247. package/src/artifacts/coverage-jest/lcov-report/SearchField/index.js.html +0 -88
  248. package/src/artifacts/coverage-jest/lcov-report/SettingPage/SettingPage.js.html +0 -220
  249. package/src/artifacts/coverage-jest/lcov-report/SettingPage/SettingPagePane.js.html +0 -208
  250. package/src/artifacts/coverage-jest/lcov-report/SettingPage/index.html +0 -146
  251. package/src/artifacts/coverage-jest/lcov-report/SettingPage/index.js.html +0 -91
  252. package/src/artifacts/coverage-jest/lcov-report/Typedown/Typedown.js.html +0 -913
  253. package/src/artifacts/coverage-jest/lcov-report/Typedown/index.html +0 -131
  254. package/src/artifacts/coverage-jest/lcov-report/Typedown/index.js.html +0 -88
  255. package/src/artifacts/coverage-jest/lcov-report/base.css +0 -224
  256. package/src/artifacts/coverage-jest/lcov-report/block-navigation.js +0 -87
  257. package/src/artifacts/coverage-jest/lcov-report/constants/customProperties.js.html +0 -121
  258. package/src/artifacts/coverage-jest/lcov-report/constants/eventCodes.js.html +0 -94
  259. package/src/artifacts/coverage-jest/lcov-report/constants/index.html +0 -131
  260. package/src/artifacts/coverage-jest/lcov-report/contexts/SettingsContext.js.html +0 -97
  261. package/src/artifacts/coverage-jest/lcov-report/contexts/index.html +0 -131
  262. package/src/artifacts/coverage-jest/lcov-report/contexts/index.js.html +0 -91
  263. package/src/artifacts/coverage-jest/lcov-report/favicon.png +0 -0
  264. package/src/artifacts/coverage-jest/lcov-report/hooks/index.html +0 -371
  265. package/src/artifacts/coverage-jest/lcov-report/hooks/index.js.html +0 -136
  266. package/src/artifacts/coverage-jest/lcov-report/hooks/settingsHooks/index.html +0 -161
  267. package/src/artifacts/coverage-jest/lcov-report/hooks/settingsHooks/index.js.html +0 -94
  268. package/src/artifacts/coverage-jest/lcov-report/hooks/settingsHooks/useAppSettings.js.html +0 -292
  269. package/src/artifacts/coverage-jest/lcov-report/hooks/settingsHooks/useSettingSection.js.html +0 -214
  270. package/src/artifacts/coverage-jest/lcov-report/hooks/settingsHooks/useSettings.js.html +0 -463
  271. package/src/artifacts/coverage-jest/lcov-report/hooks/typedownHooks/index.html +0 -161
  272. package/src/artifacts/coverage-jest/lcov-report/hooks/typedownHooks/index.js.html +0 -94
  273. package/src/artifacts/coverage-jest/lcov-report/hooks/typedownHooks/useTypedown.js.html +0 -520
  274. package/src/artifacts/coverage-jest/lcov-report/hooks/typedownHooks/useTypedownData.js.html +0 -181
  275. package/src/artifacts/coverage-jest/lcov-report/hooks/typedownHooks/useTypedownToggle.js.html +0 -163
  276. package/src/artifacts/coverage-jest/lcov-report/hooks/useActiveElement.js.html +0 -157
  277. package/src/artifacts/coverage-jest/lcov-report/hooks/useAvailableCustomProperties.js.html +0 -205
  278. package/src/artifacts/coverage-jest/lcov-report/hooks/useCustomProperties.js.html +0 -325
  279. package/src/artifacts/coverage-jest/lcov-report/hooks/useHelperApp.js.html +0 -295
  280. package/src/artifacts/coverage-jest/lcov-report/hooks/useIntlKey.js.html +0 -151
  281. package/src/artifacts/coverage-jest/lcov-report/hooks/useIntlKeyStore.js.html +0 -199
  282. package/src/artifacts/coverage-jest/lcov-report/hooks/useInvalidateRefdata.js.html +0 -118
  283. package/src/artifacts/coverage-jest/lcov-report/hooks/useKintIntl.js.html +0 -238
  284. package/src/artifacts/coverage-jest/lcov-report/hooks/useKiwtFieldArray.js.html +0 -274
  285. package/src/artifacts/coverage-jest/lcov-report/hooks/useKiwtSASQuery.js.html +0 -196
  286. package/src/artifacts/coverage-jest/lcov-report/hooks/useLocalStorageState.js.html +0 -136
  287. package/src/artifacts/coverage-jest/lcov-report/hooks/useMutateCustomProperties.js.html +0 -283
  288. package/src/artifacts/coverage-jest/lcov-report/hooks/useMutateRefdataCategory.js.html +0 -274
  289. package/src/artifacts/coverage-jest/lcov-report/hooks/useMutateRefdataValue.js.html +0 -322
  290. package/src/artifacts/coverage-jest/lcov-report/hooks/useQIndex.js.html +0 -208
  291. package/src/artifacts/coverage-jest/lcov-report/hooks/useRefdata.js.html +0 -265
  292. package/src/artifacts/coverage-jest/lcov-report/hooks/useSASQQueryMeta.js.html +0 -187
  293. package/src/artifacts/coverage-jest/lcov-report/hooks/useTemplates.js.html +0 -166
  294. package/src/artifacts/coverage-jest/lcov-report/index.html +0 -596
  295. package/src/artifacts/coverage-jest/lcov-report/prettify.css +0 -1
  296. package/src/artifacts/coverage-jest/lcov-report/prettify.js +0 -2
  297. package/src/artifacts/coverage-jest/lcov-report/settingsHooks/index.html +0 -161
  298. package/src/artifacts/coverage-jest/lcov-report/settingsHooks/index.js.html +0 -94
  299. package/src/artifacts/coverage-jest/lcov-report/settingsHooks/useAppSettings.js.html +0 -292
  300. package/src/artifacts/coverage-jest/lcov-report/settingsHooks/useSettingSection.js.html +0 -211
  301. package/src/artifacts/coverage-jest/lcov-report/settingsHooks/useSettings.js.html +0 -466
  302. package/src/artifacts/coverage-jest/lcov-report/sort-arrow-sprite.png +0 -0
  303. package/src/artifacts/coverage-jest/lcov-report/sorter.js +0 -196
  304. package/src/artifacts/coverage-jest/lcov-report/utils/buildUrl.js.html +0 -193
  305. package/src/artifacts/coverage-jest/lcov-report/utils/generateKiwtQuery.js.html +0 -109
  306. package/src/artifacts/coverage-jest/lcov-report/utils/generateKiwtQueryParams.js.html +0 -631
  307. package/src/artifacts/coverage-jest/lcov-report/utils/groupCustomPropertiesByCtx.js.html +0 -124
  308. package/src/artifacts/coverage-jest/lcov-report/utils/highlightString.js.html +0 -211
  309. package/src/artifacts/coverage-jest/lcov-report/utils/index.html +0 -326
  310. package/src/artifacts/coverage-jest/lcov-report/utils/index.js.html +0 -160
  311. package/src/artifacts/coverage-jest/lcov-report/utils/matchString.js.html +0 -127
  312. package/src/artifacts/coverage-jest/lcov-report/utils/parseErrorResponse.js.html +0 -142
  313. package/src/artifacts/coverage-jest/lcov-report/utils/parseKiwtQueryGroups.js.html +0 -361
  314. package/src/artifacts/coverage-jest/lcov-report/utils/refdataOptions.js.html +0 -109
  315. package/src/artifacts/coverage-jest/lcov-report/utils/refdataQueryKey.js.html +0 -112
  316. package/src/artifacts/coverage-jest/lcov-report/utils/renderHelpText.js.html +0 -166
  317. package/src/artifacts/coverage-jest/lcov-report/utils/selectorSafe.js.html +0 -145
  318. package/src/artifacts/coverage-jest/lcov-report/utils/sortByLabel.js.html +0 -130
  319. package/src/artifacts/coverage-jest/lcov-report/utils/toCamelCase.js.html +0 -127
  320. package/src/artifacts/coverage-jest/lcov-report/utils/typedownQueryKey.js.html +0 -112
  321. package/src/artifacts/coverage-jest/lcov-report/utils/validators.js.html +0 -370
  322. package/src/artifacts/coverage-jest/lcov-report/validators/index.html +0 -131
  323. package/src/artifacts/coverage-jest/lcov-report/validators/index.js.html +0 -88
  324. package/src/artifacts/coverage-jest/lcov-report/validators/validators.js.html +0 -370
  325. package/src/artifacts/coverage-jest/lcov.info +0 -5065
@@ -13,71 +13,59 @@ var _customProperties = require("../../constants/customProperties");
13
13
  var _hooks = require("../../hooks");
14
14
  var _jsxRuntime = require("react/jsx-runtime");
15
15
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
16
- function _toConsumableArray(arr) { return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableSpread(); }
17
- function _nonIterableSpread() { throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
18
- function _iterableToArray(iter) { if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter); }
19
- function _arrayWithoutHoles(arr) { if (Array.isArray(arr)) return _arrayLikeToArray(arr); }
20
- function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
21
- function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
22
- function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
23
- function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; }
24
- function _iterableToArrayLimit(arr, i) { var _i = null == arr ? null : "undefined" != typeof Symbol && arr[Symbol.iterator] || arr["@@iterator"]; if (null != _i) { var _s, _e, _x, _r, _arr = [], _n = !0, _d = !1; try { if (_x = (_i = _i.call(arr)).next, 0 === i) { if (Object(_i) !== _i) return; _n = !1; } else for (; !(_n = (_s = _x.call(_i)).done) && (_arr.push(_s.value), _arr.length !== i); _n = !0); } catch (err) { _d = !0, _e = err; } finally { try { if (!_n && null != _i.return && (_r = _i.return(), Object(_r) !== _r)) return; } finally { if (_d) throw _e; } } return _arr; } }
25
- function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
26
- var CustomPropertyForm = function CustomPropertyForm(_ref) {
27
- var contextFilterOptions = _ref.contextFilterOptions,
28
- helpPopovers = _ref.helpPopovers,
29
- passedIntlKey = _ref.intlKey,
30
- passedIntlNS = _ref.intlNS,
31
- _ref$labelOverrides = _ref.labelOverrides,
32
- labelOverrides = _ref$labelOverrides === void 0 ? {} : _ref$labelOverrides,
33
- refdata = _ref.refdata;
34
- var _useFormState = (0, _reactFinalForm.useFormState)(),
35
- values = _useFormState.values;
36
- var _useForm = (0, _reactFinalForm.useForm)(),
37
- change = _useForm.change;
38
- var kintIntl = (0, _hooks.useKintIntl)(passedIntlKey, passedIntlNS);
39
- var booleanToString = function booleanToString(booleanValue) {
40
- return booleanValue === null || booleanValue === void 0 ? void 0 : booleanValue.toString();
41
- };
42
- var stringToBoolean = function stringToBoolean(stringValue) {
43
- return stringValue === 'true';
44
- };
45
- var _useState = (0, _react.useState)(contextFilterOptions === null || contextFilterOptions === void 0 ? void 0 : contextFilterOptions.filter(function (ctx) {
46
- return ctx.value !== '' && (ctx === null || ctx === void 0 ? void 0 : ctx.value) !== 'isNull';
47
- })),
48
- _useState2 = _slicedToArray(_useState, 2),
49
- contextOptions = _useState2[0],
50
- setContextOptions = _useState2[1];
51
- var addCtx = function addCtx(_ref2) {
52
- var _r = _ref2._r,
53
- _e = _ref2._e,
54
- filterText = _ref2.filterText;
55
- var newOption = {
16
+ const CustomPropertyForm = _ref => {
17
+ let {
18
+ contextFilterOptions,
19
+ helpPopovers,
20
+ intlKey: passedIntlKey,
21
+ intlNS: passedIntlNS,
22
+ labelOverrides = {},
23
+ refdata
24
+ } = _ref;
25
+ const {
26
+ values
27
+ } = (0, _reactFinalForm.useFormState)();
28
+ const {
29
+ change
30
+ } = (0, _reactFinalForm.useForm)();
31
+ const kintIntl = (0, _hooks.useKintIntl)(passedIntlKey, passedIntlNS);
32
+ const booleanToString = booleanValue => booleanValue?.toString();
33
+ const stringToBoolean = stringValue => stringValue === 'true';
34
+ const [contextOptions, setContextOptions] = (0, _react.useState)(contextFilterOptions?.filter(ctx => ctx.value !== '' && ctx?.value !== 'isNull'));
35
+ const addCtx = _ref2 => {
36
+ let {
37
+ _r,
38
+ _e,
39
+ filterText
40
+ } = _ref2;
41
+ const newOption = {
56
42
  value: filterText,
57
43
  label: filterText
58
44
  };
59
- setContextOptions([newOption].concat(_toConsumableArray(contextOptions)));
45
+ setContextOptions([newOption, ...contextOptions]);
60
46
  change('ctx', [newOption]);
61
47
  };
62
- var renderAddCtx = function renderAddCtx(_ref3) {
63
- var filterValue = _ref3.filterValue,
64
- exactMatch = _ref3.exactMatch;
48
+ const renderAddCtx = _ref3 => {
49
+ let {
50
+ filterValue,
51
+ exactMatch
52
+ } = _ref3;
65
53
  if (!filterValue || exactMatch) {
66
54
  return null;
67
55
  } else {
68
56
  return kintIntl.formatKintMessage({
69
57
  id: 'customProperties.ctx.addContext',
70
- overrideValue: labelOverrides === null || labelOverrides === void 0 ? void 0 : labelOverrides.addCtx
58
+ overrideValue: labelOverrides?.addCtx
71
59
  }, {
72
60
  value: filterValue
73
61
  });
74
62
  }
75
63
  };
76
- var primaryRetiredValidator = function primaryRetiredValidator(_v, allValues) {
64
+ const primaryRetiredValidator = (_v, allValues) => {
77
65
  if (allValues.primary && allValues.retired) {
78
66
  return kintIntl.formatKintMessage({
79
67
  id: 'customProperties.errors.primaryRetired',
80
- overrideValue: labelOverrides === null || labelOverrides === void 0 ? void 0 : labelOverrides.primaryRetired
68
+ overrideValue: labelOverrides?.primaryRetired
81
69
  });
82
70
  }
83
71
  return null;
@@ -93,48 +81,48 @@ var CustomPropertyForm = function CustomPropertyForm(_ref) {
93
81
  value: ''
94
82
  }, {
95
83
  label: kintIntl.formatKintMessage({
96
- id: "customProperties.type.".concat(_customProperties.DECIMAL_CLASS_NAME),
97
- overrideValue: labelOverrides === null || labelOverrides === void 0 ? void 0 : labelOverrides[_customProperties.DECIMAL_CLASS_NAME]
84
+ id: `customProperties.type.${_customProperties.DECIMAL_CLASS_NAME}`,
85
+ overrideValue: labelOverrides?.[_customProperties.DECIMAL_CLASS_NAME]
98
86
  }),
99
87
  value: _customProperties.DECIMAL_CLASS_NAME
100
88
  }, {
101
89
  label: kintIntl.formatKintMessage({
102
- id: "customProperties.type.".concat(_customProperties.INTEGER_CLASS_NAME),
103
- overrideValue: labelOverrides === null || labelOverrides === void 0 ? void 0 : labelOverrides[_customProperties.INTEGER_CLASS_NAME]
90
+ id: `customProperties.type.${_customProperties.INTEGER_CLASS_NAME}`,
91
+ overrideValue: labelOverrides?.[_customProperties.INTEGER_CLASS_NAME]
104
92
  }),
105
93
  value: _customProperties.INTEGER_CLASS_NAME
106
94
  }, {
107
95
  label: kintIntl.formatKintMessage({
108
- id: "customProperties.type.".concat(_customProperties.TEXT_CLASS_NAME),
109
- overrideValue: labelOverrides === null || labelOverrides === void 0 ? void 0 : labelOverrides[_customProperties.TEXT_CLASS_NAME]
96
+ id: `customProperties.type.${_customProperties.TEXT_CLASS_NAME}`,
97
+ overrideValue: labelOverrides?.[_customProperties.TEXT_CLASS_NAME]
110
98
  }),
111
99
  value: _customProperties.TEXT_CLASS_NAME
112
100
  }, {
113
101
  label: kintIntl.formatKintMessage({
114
- id: "customProperties.type.".concat(_customProperties.REFDATA_CLASS_NAME),
115
- overrideValue: labelOverrides === null || labelOverrides === void 0 ? void 0 : labelOverrides[_customProperties.REFDATA_CLASS_NAME]
102
+ id: `customProperties.type.${_customProperties.REFDATA_CLASS_NAME}`,
103
+ overrideValue: labelOverrides?.[_customProperties.REFDATA_CLASS_NAME]
116
104
  }),
117
105
  value: _customProperties.REFDATA_CLASS_NAME
118
106
  }, {
119
107
  label: kintIntl.formatKintMessage({
120
- id: "customProperties.type.".concat(_customProperties.MULTI_REFDATA_CLASS_NAME),
121
- overrideValue: labelOverrides === null || labelOverrides === void 0 ? void 0 : labelOverrides[_customProperties.MULTI_REFDATA_CLASS_NAME]
108
+ id: `customProperties.type.${_customProperties.MULTI_REFDATA_CLASS_NAME}`,
109
+ overrideValue: labelOverrides?.[_customProperties.MULTI_REFDATA_CLASS_NAME]
122
110
  }),
123
111
  value: _customProperties.MULTI_REFDATA_CLASS_NAME
124
112
  }, {
125
113
  label: kintIntl.formatKintMessage({
126
- id: "customProperties.type.".concat(_customProperties.DATE_CLASS_NAME),
127
- overrideValue: labelOverrides === null || labelOverrides === void 0 ? void 0 : labelOverrides[_customProperties.DATE_CLASS_NAME]
114
+ id: `customProperties.type.${_customProperties.DATE_CLASS_NAME}`,
115
+ overrideValue: labelOverrides?.[_customProperties.DATE_CLASS_NAME]
128
116
  }),
129
117
  value: _customProperties.DATE_CLASS_NAME
130
118
  }],
131
- disabled: !!(values !== null && values !== void 0 && values.id),
119
+ disabled: !!values?.id,
132
120
  label: /*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
133
121
  children: [kintIntl.formatKintMessage({
134
122
  id: 'customProperties.type',
135
- overrideValue: labelOverrides === null || labelOverrides === void 0 ? void 0 : labelOverrides.type
136
- }), helpPopovers !== null && helpPopovers !== void 0 && helpPopovers.type ? /*#__PURE__*/(0, _jsxRuntime.jsx)(_components.InfoPopover, {
137
- content: helpPopovers === null || helpPopovers === void 0 ? void 0 : helpPopovers.type
123
+ overrideValue: labelOverrides?.type
124
+ }), helpPopovers?.type ? /*#__PURE__*/(0, _jsxRuntime.jsx)(_components.InfoPopover, {
125
+ content: helpPopovers?.type
138
126
  }) : null]
139
127
  }),
140
128
  name: "type",
@@ -143,19 +131,19 @@ var CustomPropertyForm = function CustomPropertyForm(_ref) {
143
131
  })
144
132
  }), /*#__PURE__*/(0, _jsxRuntime.jsx)(_components.Col, {
145
133
  xs: 6,
146
- children: ((values === null || values === void 0 ? void 0 : values.type) === _customProperties.REFDATA_CLASS_NAME || (values === null || values === void 0 ? void 0 : values.type) === _customProperties.MULTI_REFDATA_CLASS_NAME) && /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactFinalForm.Field, {
134
+ children: (values?.type === _customProperties.REFDATA_CLASS_NAME || values?.type === _customProperties.MULTI_REFDATA_CLASS_NAME) && /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactFinalForm.Field, {
147
135
  component: _components.Select,
148
136
  dataOptions: [{
149
137
  label: '',
150
138
  value: ''
151
- }].concat(_toConsumableArray(refdata)),
152
- disabled: !!(values !== null && values !== void 0 && values.id),
139
+ }, ...refdata],
140
+ disabled: !!values?.id,
153
141
  label: /*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
154
142
  children: [kintIntl.formatKintMessage({
155
143
  id: 'customProperties.category',
156
- overrideValue: labelOverrides === null || labelOverrides === void 0 ? void 0 : labelOverrides.category
157
- }), helpPopovers !== null && helpPopovers !== void 0 && helpPopovers.category ? /*#__PURE__*/(0, _jsxRuntime.jsx)(_components.InfoPopover, {
158
- content: helpPopovers === null || helpPopovers === void 0 ? void 0 : helpPopovers.category
144
+ overrideValue: labelOverrides?.category
145
+ }), helpPopovers?.category ? /*#__PURE__*/(0, _jsxRuntime.jsx)(_components.InfoPopover, {
146
+ content: helpPopovers?.category
159
147
  }) : null]
160
148
  }),
161
149
  name: "category",
@@ -172,9 +160,9 @@ var CustomPropertyForm = function CustomPropertyForm(_ref) {
172
160
  label: /*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
173
161
  children: [kintIntl.formatKintMessage({
174
162
  id: 'customProperties.label',
175
- overrideValue: labelOverrides === null || labelOverrides === void 0 ? void 0 : labelOverrides.label
176
- }), helpPopovers !== null && helpPopovers !== void 0 && helpPopovers.label ? /*#__PURE__*/(0, _jsxRuntime.jsx)(_components.InfoPopover, {
177
- content: helpPopovers === null || helpPopovers === void 0 ? void 0 : helpPopovers.label
163
+ overrideValue: labelOverrides?.label
164
+ }), helpPopovers?.label ? /*#__PURE__*/(0, _jsxRuntime.jsx)(_components.InfoPopover, {
165
+ content: helpPopovers?.label
178
166
  }) : null]
179
167
  }),
180
168
  name: "label",
@@ -189,18 +177,18 @@ var CustomPropertyForm = function CustomPropertyForm(_ref) {
189
177
  label: /*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
190
178
  children: [kintIntl.formatKintMessage({
191
179
  id: 'customProperties.name',
192
- overrideValue: labelOverrides === null || labelOverrides === void 0 ? void 0 : labelOverrides.name
193
- }), helpPopovers !== null && helpPopovers !== void 0 && helpPopovers.name ? /*#__PURE__*/(0, _jsxRuntime.jsx)(_components.InfoPopover, {
194
- content: helpPopovers === null || helpPopovers === void 0 ? void 0 : helpPopovers.name
180
+ overrideValue: labelOverrides?.name
181
+ }), helpPopovers?.name ? /*#__PURE__*/(0, _jsxRuntime.jsx)(_components.InfoPopover, {
182
+ content: helpPopovers?.name
195
183
  }) : null]
196
184
  }),
197
185
  name: "name",
198
186
  required: true,
199
- validate: function validate(v) {
187
+ validate: v => {
200
188
  if (v && v.length) {
201
189
  return /^[a-z][a-z0-9]*$/i.test(v) ? undefined : kintIntl.formatKintMessage({
202
190
  id: 'errors.hasNonAlphaName',
203
- overrideValue: labelOverrides === null || labelOverrides === void 0 ? void 0 : labelOverrides.hasNonAlphaName
191
+ overrideValue: labelOverrides?.hasNonAlphaName
204
192
  });
205
193
  }
206
194
  return (0, _validators.required)(v);
@@ -216,9 +204,9 @@ var CustomPropertyForm = function CustomPropertyForm(_ref) {
216
204
  label: /*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
217
205
  children: [kintIntl.formatKintMessage({
218
206
  id: 'customProperties.description',
219
- overrideValue: labelOverrides === null || labelOverrides === void 0 ? void 0 : labelOverrides.description
220
- }), helpPopovers !== null && helpPopovers !== void 0 && helpPopovers.description ? /*#__PURE__*/(0, _jsxRuntime.jsx)(_components.InfoPopover, {
221
- content: helpPopovers === null || helpPopovers === void 0 ? void 0 : helpPopovers.description
207
+ overrideValue: labelOverrides?.description
208
+ }), helpPopovers?.description ? /*#__PURE__*/(0, _jsxRuntime.jsx)(_components.InfoPopover, {
209
+ content: helpPopovers?.description
222
210
  }) : null]
223
211
  }),
224
212
  name: "description",
@@ -238,20 +226,20 @@ var CustomPropertyForm = function CustomPropertyForm(_ref) {
238
226
  dataOptions: contextOptions,
239
227
  emptyMessage: kintIntl.formatKintMessage({
240
228
  id: 'customProperties.noCtxFound',
241
- overrideValue: labelOverrides === null || labelOverrides === void 0 ? void 0 : labelOverrides.noCtxFound
229
+ overrideValue: labelOverrides?.noCtxFound
242
230
  }),
243
231
  label: /*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
244
232
  children: [kintIntl.formatKintMessage({
245
233
  id: 'customProperties.ctx',
246
- overrideValue: labelOverrides === null || labelOverrides === void 0 ? void 0 : labelOverrides.ctx
247
- }), helpPopovers !== null && helpPopovers !== void 0 && helpPopovers.ctx ? /*#__PURE__*/(0, _jsxRuntime.jsx)(_components.InfoPopover, {
248
- content: helpPopovers === null || helpPopovers === void 0 ? void 0 : helpPopovers.ctx
234
+ overrideValue: labelOverrides?.ctx
235
+ }), helpPopovers?.ctx ? /*#__PURE__*/(0, _jsxRuntime.jsx)(_components.InfoPopover, {
236
+ content: helpPopovers?.ctx
249
237
  }) : null]
250
238
  }),
251
239
  name: "ctx",
252
- onChange: function onChange(selectedItems) {
240
+ onChange: selectedItems => {
253
241
  if (selectedItems.length) {
254
- change('ctx', [selectedItems === null || selectedItems === void 0 ? void 0 : selectedItems[(selectedItems === null || selectedItems === void 0 ? void 0 : selectedItems.length) - 1]]);
242
+ change('ctx', [selectedItems?.[selectedItems?.length - 1]]);
255
243
  } else {
256
244
  change('ctx', undefined);
257
245
  }
@@ -267,9 +255,9 @@ var CustomPropertyForm = function CustomPropertyForm(_ref) {
267
255
  label: /*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
268
256
  children: [kintIntl.formatKintMessage({
269
257
  id: 'customProperties.weight',
270
- overrideValue: labelOverrides === null || labelOverrides === void 0 ? void 0 : labelOverrides.weight
271
- }), helpPopovers !== null && helpPopovers !== void 0 && helpPopovers.weight ? /*#__PURE__*/(0, _jsxRuntime.jsx)(_components.InfoPopover, {
272
- content: helpPopovers === null || helpPopovers === void 0 ? void 0 : helpPopovers.weight
258
+ overrideValue: labelOverrides?.weight
259
+ }), helpPopovers?.weight ? /*#__PURE__*/(0, _jsxRuntime.jsx)(_components.InfoPopover, {
260
+ content: helpPopovers?.weight
273
261
  }) : null]
274
262
  }),
275
263
  name: "weight",
@@ -284,13 +272,13 @@ var CustomPropertyForm = function CustomPropertyForm(_ref) {
284
272
  dataOptions: [{
285
273
  label: kintIntl.formatKintMessage({
286
274
  id: 'yes',
287
- overrideValue: labelOverrides === null || labelOverrides === void 0 ? void 0 : labelOverrides.yes
275
+ overrideValue: labelOverrides?.yes
288
276
  }),
289
277
  value: 'true'
290
278
  }, {
291
279
  label: kintIntl.formatKintMessage({
292
280
  id: 'no',
293
- overrideValue: labelOverrides === null || labelOverrides === void 0 ? void 0 : labelOverrides.no
281
+ overrideValue: labelOverrides?.no
294
282
  }),
295
283
  value: 'false'
296
284
  }],
@@ -298,9 +286,9 @@ var CustomPropertyForm = function CustomPropertyForm(_ref) {
298
286
  label: /*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
299
287
  children: [kintIntl.formatKintMessage({
300
288
  id: 'customProperties.primary',
301
- overrideValue: labelOverrides === null || labelOverrides === void 0 ? void 0 : labelOverrides.primary
302
- }), helpPopovers !== null && helpPopovers !== void 0 && helpPopovers.primary ? /*#__PURE__*/(0, _jsxRuntime.jsx)(_components.InfoPopover, {
303
- content: helpPopovers === null || helpPopovers === void 0 ? void 0 : helpPopovers.primary
289
+ overrideValue: labelOverrides?.primary
290
+ }), helpPopovers?.primary ? /*#__PURE__*/(0, _jsxRuntime.jsx)(_components.InfoPopover, {
291
+ content: helpPopovers?.primary
304
292
  }) : null]
305
293
  }),
306
294
  name: "primary",
@@ -315,13 +303,13 @@ var CustomPropertyForm = function CustomPropertyForm(_ref) {
315
303
  dataOptions: [{
316
304
  label: kintIntl.formatKintMessage({
317
305
  id: 'yes',
318
- overrideValue: labelOverrides === null || labelOverrides === void 0 ? void 0 : labelOverrides.yes
306
+ overrideValue: labelOverrides?.yes
319
307
  }),
320
308
  value: 'true'
321
309
  }, {
322
310
  label: kintIntl.formatKintMessage({
323
311
  id: 'no',
324
- overrideValue: labelOverrides === null || labelOverrides === void 0 ? void 0 : labelOverrides.no
312
+ overrideValue: labelOverrides?.no
325
313
  }),
326
314
  value: 'false'
327
315
  }],
@@ -329,9 +317,9 @@ var CustomPropertyForm = function CustomPropertyForm(_ref) {
329
317
  label: /*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
330
318
  children: [kintIntl.formatKintMessage({
331
319
  id: 'customProperties.retired',
332
- overrideValue: labelOverrides === null || labelOverrides === void 0 ? void 0 : labelOverrides.retired
333
- }), helpPopovers !== null && helpPopovers !== void 0 && helpPopovers.retired ? /*#__PURE__*/(0, _jsxRuntime.jsx)(_components.InfoPopover, {
334
- content: helpPopovers === null || helpPopovers === void 0 ? void 0 : helpPopovers.retired
320
+ overrideValue: labelOverrides?.retired
321
+ }), helpPopovers?.retired ? /*#__PURE__*/(0, _jsxRuntime.jsx)(_components.InfoPopover, {
322
+ content: helpPopovers?.retired
335
323
  }) : null]
336
324
  }),
337
325
  name: "retired",
@@ -346,13 +334,13 @@ var CustomPropertyForm = function CustomPropertyForm(_ref) {
346
334
  dataOptions: [{
347
335
  label: kintIntl.formatKintMessage({
348
336
  id: 'customProperties.internalTrue',
349
- overrideValue: labelOverrides === null || labelOverrides === void 0 ? void 0 : labelOverrides.internalTrue
337
+ overrideValue: labelOverrides?.internalTrue
350
338
  }),
351
339
  value: 'true'
352
340
  }, {
353
341
  label: kintIntl.formatKintMessage({
354
342
  id: 'customProperties.internalFalse',
355
- overrideValue: labelOverrides === null || labelOverrides === void 0 ? void 0 : labelOverrides.internalFalse
343
+ overrideValue: labelOverrides?.internalFalse
356
344
  }),
357
345
  value: 'false'
358
346
  }],
@@ -360,9 +348,9 @@ var CustomPropertyForm = function CustomPropertyForm(_ref) {
360
348
  label: /*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
361
349
  children: [kintIntl.formatKintMessage({
362
350
  id: 'customProperties.defaultVisibility',
363
- overrideValue: labelOverrides === null || labelOverrides === void 0 ? void 0 : labelOverrides.defaultVisibility
364
- }), helpPopovers !== null && helpPopovers !== void 0 && helpPopovers.defaultVisibility ? /*#__PURE__*/(0, _jsxRuntime.jsx)(_components.InfoPopover, {
365
- content: helpPopovers === null || helpPopovers === void 0 ? void 0 : helpPopovers.defaultVisibility
351
+ overrideValue: labelOverrides?.defaultVisibility
352
+ }), helpPopovers?.defaultVisibility ? /*#__PURE__*/(0, _jsxRuntime.jsx)(_components.InfoPopover, {
353
+ content: helpPopovers?.defaultVisibility
366
354
  }) : null]
367
355
  }),
368
356
  name: "defaultInternal",
@@ -382,5 +370,4 @@ CustomPropertyForm.propTypes = {
382
370
  labelOverrides: _propTypes.default.object,
383
371
  refdata: _propTypes.default.arrayOf(_propTypes.default.object)
384
372
  };
385
- var _default = CustomPropertyForm;
386
- exports.default = _default;
373
+ var _default = exports.default = CustomPropertyForm;