@k-int/stripes-kint-components 2.8.2 → 2.8.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 (316) hide show
  1. package/CHANGELOG.md +6 -0
  2. package/es/artifacts/coverage-jest/lcov-report/block-navigation.js +6 -19
  3. package/es/artifacts/coverage-jest/lcov-report/prettify.js +2 -182
  4. package/es/artifacts/coverage-jest/lcov-report/sorter.js +64 -94
  5. package/es/index.js +0 -27
  6. package/es/lib/ActionList/ActionList.js +18 -38
  7. package/es/lib/ActionList/ActionListFieldArray.js +57 -112
  8. package/es/lib/ActionList/index.js +0 -2
  9. package/es/lib/CustomProperties/Config/CustomPropertiesLookup.js +32 -63
  10. package/es/lib/CustomProperties/Config/CustomPropertiesLookup.test.js +2 -13
  11. package/es/lib/CustomProperties/Config/CustomPropertiesSettings.js +91 -140
  12. package/es/lib/CustomProperties/Config/CustomPropertiesSettings.test.js +3 -22
  13. package/es/lib/CustomProperties/Config/CustomPropertyForm.js +14 -50
  14. package/es/lib/CustomProperties/Config/CustomPropertyForm.test.js +17 -34
  15. package/es/lib/CustomProperties/Config/CustomPropertyView.js +3 -12
  16. package/es/lib/CustomProperties/Config/CustomPropertyView.test.js +1 -26
  17. package/es/lib/CustomProperties/Config/index.js +0 -5
  18. package/es/lib/CustomProperties/Edit/CustomPropertiesEdit.js +6 -12
  19. package/es/lib/CustomProperties/Edit/CustomPropertiesEdit.test.js +1 -13
  20. package/es/lib/CustomProperties/Edit/CustomPropertiesEditCtx.js +24 -39
  21. package/es/lib/CustomProperties/Edit/CustomPropertiesEditCtx.test.js +1 -13
  22. package/es/lib/CustomProperties/Edit/CustomPropertiesListField.js +25 -69
  23. package/es/lib/CustomProperties/Edit/CustomPropertiesListField.test.js +3 -23
  24. package/es/lib/CustomProperties/Edit/CustomPropertyField.js +26 -77
  25. package/es/lib/CustomProperties/Edit/CustomPropertyField.test.js +6 -33
  26. package/es/lib/CustomProperties/Edit/CustomPropertyFormCard.js +19 -33
  27. package/es/lib/CustomProperties/Edit/CustomPropertyFormCard.test.js +3 -14
  28. package/es/lib/CustomProperties/Edit/index.js +0 -6
  29. package/es/lib/CustomProperties/Filter/CustomPropertiesFilter.js +33 -70
  30. package/es/lib/CustomProperties/Filter/CustomPropertiesFilter.test.js +2 -18
  31. package/es/lib/CustomProperties/Filter/CustomPropertiesFilterField.js +14 -44
  32. package/es/lib/CustomProperties/Filter/CustomPropertiesFilterField.test.js +1 -10
  33. package/es/lib/CustomProperties/Filter/CustomPropertiesFilterFieldArray.js +4 -23
  34. package/es/lib/CustomProperties/Filter/CustomPropertiesFilterFieldArray.test.js +2 -19
  35. package/es/lib/CustomProperties/Filter/CustomPropertiesFilterForm.js +8 -22
  36. package/es/lib/CustomProperties/Filter/CustomPropertiesFilterForm.test.js +2 -20
  37. package/es/lib/CustomProperties/Filter/CustomPropertiesRule.js +9 -27
  38. package/es/lib/CustomProperties/Filter/CustomPropertiesRule.test.js +1 -32
  39. package/es/lib/CustomProperties/Filter/index.js +0 -7
  40. package/es/lib/CustomProperties/Filter/useOperators.js +5 -21
  41. package/es/lib/CustomProperties/Filter/useParseActiveFilterStrings.js +3 -15
  42. package/es/lib/CustomProperties/Filter/useValueProps.js +5 -20
  43. package/es/lib/CustomProperties/View/CustomPropertiesView.js +6 -12
  44. package/es/lib/CustomProperties/View/CustomPropertiesView.test.js +1 -10
  45. package/es/lib/CustomProperties/View/CustomPropertiesViewCtx.js +43 -65
  46. package/es/lib/CustomProperties/View/CustomPropertiesViewCtx.test.js +1 -13
  47. package/es/lib/CustomProperties/View/CustomPropertyCard.js +10 -38
  48. package/es/lib/CustomProperties/View/index.js +0 -4
  49. package/es/lib/CustomProperties/index.js +0 -4
  50. package/es/lib/CycleButton/CycleButton.js +8 -33
  51. package/es/lib/CycleButton/index.js +0 -2
  52. package/es/lib/EditableRefdataCategoryList/EditableRefdataCategoryList.js +85 -131
  53. package/es/lib/EditableRefdataCategoryList/index.js +0 -2
  54. package/es/lib/EditableRefdataList/EditableRefdataList.js +90 -139
  55. package/es/lib/EditableRefdataList/index.js +0 -2
  56. package/es/lib/EditableSettingsList/EditableSettingsList.js +3 -13
  57. package/es/lib/EditableSettingsList/EditableSettingsListFieldArray.js +2 -15
  58. package/es/lib/EditableSettingsList/EditableSettingsListFieldArray.test.js +4 -19
  59. package/es/lib/EditableSettingsList/SettingField/EditSettingValue.js +3 -25
  60. package/es/lib/EditableSettingsList/SettingField/EditSettingValue.test.js +19 -26
  61. package/es/lib/EditableSettingsList/SettingField/RenderSettingValue.js +2 -20
  62. package/es/lib/EditableSettingsList/SettingField/RenderSettingValue.test.js +14 -35
  63. package/es/lib/EditableSettingsList/SettingField/SettingField.js +15 -51
  64. package/es/lib/EditableSettingsList/SettingField/SettingField.test.js +6 -31
  65. package/es/lib/EditableSettingsList/SettingField/index.js +0 -4
  66. package/es/lib/EditableSettingsList/index.js +0 -4
  67. package/es/lib/FormModal/FormModal.js +14 -34
  68. package/es/lib/FormModal/index.js +0 -2
  69. package/es/lib/IconSelect/IconSelect.js +29 -67
  70. package/es/lib/IconSelect/index.js +0 -2
  71. package/es/lib/NoResultsMessage/NoResultsMessage.js +13 -22
  72. package/es/lib/NoResultsMessage/index.js +0 -2
  73. package/es/lib/QueryTypedown/QueryTypedown.js +9 -36
  74. package/es/lib/QueryTypedown/index.js +0 -2
  75. package/es/lib/RefdataButtons/RefdataButtons.js +5 -24
  76. package/es/lib/RefdataButtons/index.js +0 -2
  77. package/es/lib/RichSelect/RichSelect.js +39 -67
  78. package/es/lib/RichSelect/index.js +0 -3
  79. package/es/lib/RichSelect/useSelectedOption.js +3 -14
  80. package/es/lib/SASQLookupComponent/SASQLookupComponent.js +36 -80
  81. package/es/lib/SASQLookupComponent/TableBody/TableBody.js +16 -29
  82. package/es/lib/SASQLookupComponent/TableBody/index.js +0 -2
  83. package/es/lib/SASQLookupComponent/index.js +0 -3
  84. package/es/lib/SASQRoute/SASQRoute.js +6 -23
  85. package/es/lib/SASQRoute/index.js +0 -2
  86. package/es/lib/SASQViewComponent/SASQViewComponent.js +17 -36
  87. package/es/lib/SASQViewComponent/index.js +0 -2
  88. package/es/lib/SearchField/SearchField.js +1 -17
  89. package/es/lib/SearchField/index.js +0 -2
  90. package/es/lib/SettingPage/SettingPage.js +6 -21
  91. package/es/lib/SettingPage/SettingPagePane.js +2 -17
  92. package/es/lib/SettingPage/index.js +0 -3
  93. package/es/lib/Typedown/Typedown.js +51 -82
  94. package/es/lib/Typedown/index.js +0 -2
  95. package/es/lib/contexts/SettingsContext.js +0 -2
  96. package/es/lib/contexts/index.js +0 -2
  97. package/es/lib/hooks/index.js +0 -16
  98. package/es/lib/hooks/settingsHooks/index.js +0 -4
  99. package/es/lib/hooks/settingsHooks/useAppSettings.js +6 -27
  100. package/es/lib/hooks/settingsHooks/useSettingSection.js +10 -20
  101. package/es/lib/hooks/settingsHooks/useSettings.js +10 -43
  102. package/es/lib/hooks/typedownHooks/index.js +0 -4
  103. package/es/lib/hooks/typedownHooks/useTypedown.js +17 -37
  104. package/es/lib/hooks/typedownHooks/useTypedownData.js +12 -26
  105. package/es/lib/hooks/typedownHooks/useTypedownToggle.js +5 -19
  106. package/es/lib/hooks/useActiveElement.js +3 -15
  107. package/es/lib/hooks/useAvailableCustomProperties.js +3 -22
  108. package/es/lib/hooks/useCustomProperties.js +11 -25
  109. package/es/lib/hooks/useHelperApp.js +7 -30
  110. package/es/lib/hooks/useInvalidateRefdata.js +0 -4
  111. package/es/lib/hooks/useKiwtFieldArray.js +5 -29
  112. package/es/lib/hooks/useKiwtSASQuery.js +12 -37
  113. package/es/lib/hooks/useLocalStorageState.js +5 -21
  114. package/es/lib/hooks/useMutateCustomProperties.js +11 -28
  115. package/es/lib/hooks/useMutateRefdataCategory.js +9 -29
  116. package/es/lib/hooks/useMutateRefdataValue.js +10 -27
  117. package/es/lib/hooks/useQIndex.js +3 -27
  118. package/es/lib/hooks/useRefdata.js +7 -16
  119. package/es/lib/hooks/useTemplates.js +6 -17
  120. package/es/lib/utils/buildUrl.js +1 -10
  121. package/es/lib/utils/generateKiwtQuery.js +0 -4
  122. package/es/lib/utils/generateKiwtQueryParams.js +24 -62
  123. package/es/lib/utils/groupCustomPropertiesByCtx.js +0 -14
  124. package/es/lib/utils/highlightString.js +6 -23
  125. package/es/lib/utils/index.js +0 -15
  126. package/es/lib/utils/matchString.js +0 -6
  127. package/es/lib/utils/parseErrorResponse.js +2 -24
  128. package/es/lib/utils/refdataQueryKey.js +0 -4
  129. package/es/lib/utils/renderHelpText.js +0 -7
  130. package/es/lib/utils/selectorSafe.js +0 -2
  131. package/es/lib/utils/sortByLabel.js +0 -6
  132. package/es/lib/utils/toCamelCase.js +6 -5
  133. package/es/lib/utils/typedownQueryKey.js +0 -4
  134. package/es/lib/utils/validators.js +4 -35
  135. package/junit.xml +164 -663
  136. package/package.json +1 -1
  137. package/src/artifacts/coverage-jest/lcov-report/ActionList/ActionList.js.html +35 -5
  138. package/src/artifacts/coverage-jest/lcov-report/ActionList/ActionListFieldArray.js.html +120 -24
  139. package/src/artifacts/coverage-jest/lcov-report/ActionList/index.html +8 -8
  140. package/src/artifacts/coverage-jest/lcov-report/ActionList/index.js.html +1 -1
  141. package/src/artifacts/coverage-jest/lcov-report/CustomProperties/Config/CustomPropertiesLookup.js.html +29 -26
  142. package/src/artifacts/coverage-jest/lcov-report/CustomProperties/Config/CustomPropertiesSettings.js.html +136 -70
  143. package/src/artifacts/coverage-jest/lcov-report/CustomProperties/Config/CustomPropertyForm.js.html +10 -10
  144. package/src/artifacts/coverage-jest/lcov-report/CustomProperties/Config/CustomPropertyView.js.html +5 -5
  145. package/src/artifacts/coverage-jest/lcov-report/CustomProperties/Config/index.html +35 -35
  146. package/src/artifacts/coverage-jest/lcov-report/CustomProperties/Config/index.js.html +1 -1
  147. package/src/artifacts/coverage-jest/lcov-report/CustomProperties/Config/testResources.js.html +1 -1
  148. package/src/artifacts/coverage-jest/lcov-report/CustomProperties/Edit/CustomPropertiesEdit.js.html +1 -1
  149. package/src/artifacts/coverage-jest/lcov-report/CustomProperties/Edit/CustomPropertiesEditCtx.js.html +15 -15
  150. package/src/artifacts/coverage-jest/lcov-report/CustomProperties/Edit/CustomPropertiesListField.js.html +88 -88
  151. package/src/artifacts/coverage-jest/lcov-report/CustomProperties/Edit/CustomPropertyField.js.html +92 -80
  152. package/src/artifacts/coverage-jest/lcov-report/CustomProperties/Edit/CustomPropertyFormCard.js.html +4 -4
  153. package/src/artifacts/coverage-jest/lcov-report/CustomProperties/Edit/index.html +44 -44
  154. package/src/artifacts/coverage-jest/lcov-report/CustomProperties/Edit/index.js.html +1 -1
  155. package/src/artifacts/coverage-jest/lcov-report/CustomProperties/Edit/testResources.js.html +2394 -12
  156. package/src/artifacts/coverage-jest/lcov-report/CustomProperties/Filter/CustomPropertiesFilter.js.html +72 -33
  157. package/src/artifacts/coverage-jest/lcov-report/CustomProperties/Filter/CustomPropertiesFilterField.js.html +1 -1
  158. package/src/artifacts/coverage-jest/lcov-report/CustomProperties/Filter/CustomPropertiesFilterFieldArray.js.html +4 -4
  159. package/src/artifacts/coverage-jest/lcov-report/CustomProperties/Filter/CustomPropertiesFilterForm.js.html +4 -4
  160. package/src/artifacts/coverage-jest/lcov-report/CustomProperties/Filter/CustomPropertiesRule.js.html +1 -1
  161. package/src/artifacts/coverage-jest/lcov-report/CustomProperties/Filter/index.html +37 -37
  162. package/src/artifacts/coverage-jest/lcov-report/CustomProperties/Filter/index.js.html +1 -1
  163. package/src/artifacts/coverage-jest/lcov-report/CustomProperties/Filter/testResources.js.html +4 -4
  164. package/src/artifacts/coverage-jest/lcov-report/CustomProperties/Filter/useOperators.js.html +14 -14
  165. package/src/artifacts/coverage-jest/lcov-report/CustomProperties/Filter/useParseActiveFilterStrings.js.html +45 -36
  166. package/src/artifacts/coverage-jest/lcov-report/CustomProperties/Filter/useValueProps.js.html +1 -1
  167. package/src/artifacts/coverage-jest/lcov-report/CustomProperties/View/CustomPropertiesView.js.html +1 -1
  168. package/src/artifacts/coverage-jest/lcov-report/CustomProperties/View/CustomPropertiesViewCtx.js.html +9 -6
  169. package/src/artifacts/coverage-jest/lcov-report/CustomProperties/View/CustomPropertyCard.js.html +3 -3
  170. package/src/artifacts/coverage-jest/lcov-report/CustomProperties/View/index.html +6 -6
  171. package/src/artifacts/coverage-jest/lcov-report/CustomProperties/View/index.js.html +1 -1
  172. package/src/artifacts/coverage-jest/lcov-report/CustomProperties/View/testResources.js.html +1 -1
  173. package/src/artifacts/coverage-jest/lcov-report/CustomProperties/index.html +1 -1
  174. package/src/artifacts/coverage-jest/lcov-report/CustomProperties/index.js.html +1 -1
  175. package/src/artifacts/coverage-jest/lcov-report/CycleButton/CycleButton.js.html +217 -0
  176. package/src/artifacts/coverage-jest/lcov-report/CycleButton/index.html +131 -0
  177. package/src/artifacts/coverage-jest/lcov-report/CycleButton/index.js.html +88 -0
  178. package/src/artifacts/coverage-jest/lcov-report/EditableRefdataCategoryList/EditableRefdataCategoryList.js.html +610 -0
  179. package/src/artifacts/coverage-jest/lcov-report/EditableRefdataCategoryList/index.html +131 -0
  180. package/src/artifacts/coverage-jest/lcov-report/EditableRefdataCategoryList/index.js.html +88 -0
  181. package/src/artifacts/coverage-jest/lcov-report/EditableRefdataList/EditableRefdataList.js.html +192 -39
  182. package/src/artifacts/coverage-jest/lcov-report/EditableRefdataList/index.html +9 -9
  183. package/src/artifacts/coverage-jest/lcov-report/EditableRefdataList/index.js.html +1 -1
  184. package/src/artifacts/coverage-jest/lcov-report/EditableSettingsList/EditableSettingsList.js.html +3 -3
  185. package/src/artifacts/coverage-jest/lcov-report/EditableSettingsList/EditableSettingsListFieldArray.js.html +3 -3
  186. package/src/artifacts/coverage-jest/lcov-report/EditableSettingsList/SettingField/EditSettingValue.js.html +3 -3
  187. package/src/artifacts/coverage-jest/lcov-report/EditableSettingsList/SettingField/RenderSettingValue.js.html +2 -2
  188. package/src/artifacts/coverage-jest/lcov-report/EditableSettingsList/SettingField/SettingField.js.html +3 -3
  189. package/src/artifacts/coverage-jest/lcov-report/EditableSettingsList/SettingField/index.html +1 -1
  190. package/src/artifacts/coverage-jest/lcov-report/EditableSettingsList/SettingField/index.js.html +1 -1
  191. package/src/artifacts/coverage-jest/lcov-report/EditableSettingsList/index.html +1 -1
  192. package/src/artifacts/coverage-jest/lcov-report/EditableSettingsList/index.js.html +1 -1
  193. package/src/artifacts/coverage-jest/lcov-report/FormModal/FormModal.js.html +1 -1
  194. package/src/artifacts/coverage-jest/lcov-report/FormModal/index.html +1 -1
  195. package/src/artifacts/coverage-jest/lcov-report/FormModal/index.js.html +1 -1
  196. package/src/artifacts/coverage-jest/lcov-report/FormattedKintMessage/FormattedKintMessage.js.html +247 -0
  197. package/src/artifacts/coverage-jest/lcov-report/FormattedKintMessage/index.html +131 -0
  198. package/src/artifacts/coverage-jest/lcov-report/FormattedKintMessage/index.js.html +88 -0
  199. package/src/artifacts/coverage-jest/lcov-report/IconSelect/IconSelect.js.html +475 -0
  200. package/src/artifacts/coverage-jest/lcov-report/IconSelect/index.html +131 -0
  201. package/src/artifacts/coverage-jest/lcov-report/IconSelect/index.js.html +88 -0
  202. package/src/artifacts/coverage-jest/lcov-report/NoResultsMessage/NoResultsMessage.js.html +1 -1
  203. package/src/artifacts/coverage-jest/lcov-report/NoResultsMessage/index.html +1 -1
  204. package/src/artifacts/coverage-jest/lcov-report/NoResultsMessage/index.js.html +1 -1
  205. package/src/artifacts/coverage-jest/lcov-report/QueryTypedown/QueryTypedown.js.html +1 -1
  206. package/src/artifacts/coverage-jest/lcov-report/QueryTypedown/index.html +1 -1
  207. package/src/artifacts/coverage-jest/lcov-report/QueryTypedown/index.js.html +1 -1
  208. package/src/artifacts/coverage-jest/lcov-report/RefdataButtons/RefdataButtons.js.html +3 -3
  209. package/src/artifacts/coverage-jest/lcov-report/RefdataButtons/index.html +1 -1
  210. package/src/artifacts/coverage-jest/lcov-report/RefdataButtons/index.js.html +1 -1
  211. package/src/artifacts/coverage-jest/lcov-report/{CustomProperties/Config/CustomPropertiesView.js.html → ResponsiveButtonGroup/ResponsiveButtonGroup.js.html} +186 -252
  212. package/src/artifacts/coverage-jest/lcov-report/ResponsiveButtonGroup/index.html +146 -0
  213. package/src/artifacts/coverage-jest/lcov-report/ResponsiveButtonGroup/index.js.html +88 -0
  214. package/src/artifacts/coverage-jest/lcov-report/ResponsiveButtonGroup/useResponsiveButtonGroupSizing.js.html +253 -0
  215. package/src/artifacts/coverage-jest/lcov-report/RichSelect/RichSelect.js.html +775 -0
  216. package/src/artifacts/coverage-jest/lcov-report/RichSelect/index.html +146 -0
  217. package/src/artifacts/coverage-jest/lcov-report/RichSelect/index.js.html +91 -0
  218. package/src/artifacts/coverage-jest/lcov-report/RichSelect/useSelectedOption.js.html +127 -0
  219. package/src/artifacts/coverage-jest/lcov-report/SASQLookupComponent/SASQLookupComponent.js.html +1 -1
  220. package/src/artifacts/coverage-jest/lcov-report/SASQLookupComponent/TableBody/TableBody.js.html +1 -1
  221. package/src/artifacts/coverage-jest/lcov-report/SASQLookupComponent/TableBody/index.html +1 -1
  222. package/src/artifacts/coverage-jest/lcov-report/SASQLookupComponent/TableBody/index.js.html +1 -1
  223. package/src/artifacts/coverage-jest/lcov-report/SASQLookupComponent/index.html +1 -1
  224. package/src/artifacts/coverage-jest/lcov-report/SASQLookupComponent/index.js.html +1 -1
  225. package/src/artifacts/coverage-jest/lcov-report/SASQRoute/SASQRoute.js.html +1 -1
  226. package/src/artifacts/coverage-jest/lcov-report/SASQRoute/index.html +1 -1
  227. package/src/artifacts/coverage-jest/lcov-report/SASQRoute/index.js.html +1 -1
  228. package/src/artifacts/coverage-jest/lcov-report/SASQViewComponent/SASQViewComponent.js.html +1 -1
  229. package/src/artifacts/coverage-jest/lcov-report/SASQViewComponent/index.html +1 -1
  230. package/src/artifacts/coverage-jest/lcov-report/SASQViewComponent/index.js.html +1 -1
  231. package/src/artifacts/coverage-jest/lcov-report/SearchField/SearchField.js.html +1 -1
  232. package/src/artifacts/coverage-jest/lcov-report/SearchField/index.html +1 -1
  233. package/src/artifacts/coverage-jest/lcov-report/SearchField/index.js.html +1 -1
  234. package/src/artifacts/coverage-jest/lcov-report/SettingPage/SettingPage.js.html +3 -3
  235. package/src/artifacts/coverage-jest/lcov-report/SettingPage/SettingPagePane.js.html +3 -3
  236. package/src/artifacts/coverage-jest/lcov-report/SettingPage/index.html +1 -1
  237. package/src/artifacts/coverage-jest/lcov-report/SettingPage/index.js.html +1 -1
  238. package/src/artifacts/coverage-jest/lcov-report/Typedown/Typedown.js.html +1 -1
  239. package/src/artifacts/coverage-jest/lcov-report/Typedown/index.html +1 -1
  240. package/src/artifacts/coverage-jest/lcov-report/Typedown/index.js.html +1 -1
  241. package/src/artifacts/coverage-jest/lcov-report/constants/customProperties.js.html +1 -1
  242. package/src/artifacts/coverage-jest/lcov-report/constants/eventCodes.js.html +1 -1
  243. package/src/artifacts/coverage-jest/lcov-report/constants/index.html +1 -1
  244. package/src/artifacts/coverage-jest/lcov-report/contexts/SettingsContext.js.html +2 -2
  245. package/src/artifacts/coverage-jest/lcov-report/contexts/index.html +1 -1
  246. package/src/artifacts/coverage-jest/lcov-report/contexts/index.js.html +1 -1
  247. package/src/artifacts/coverage-jest/lcov-report/favicon.png +0 -0
  248. package/src/artifacts/coverage-jest/lcov-report/hooks/index.html +44 -29
  249. package/src/artifacts/coverage-jest/lcov-report/hooks/index.js.html +6 -3
  250. package/src/artifacts/coverage-jest/lcov-report/hooks/settingsHooks/index.html +22 -7
  251. package/src/artifacts/coverage-jest/lcov-report/hooks/settingsHooks/index.js.html +5 -2
  252. package/src/artifacts/coverage-jest/lcov-report/hooks/settingsHooks/useAppSettings.js.html +1 -1
  253. package/src/artifacts/coverage-jest/lcov-report/hooks/settingsHooks/useSettingSection.js.html +2 -2
  254. package/src/artifacts/coverage-jest/lcov-report/hooks/settingsHooks/useSettings.js.html +2 -2
  255. package/src/artifacts/coverage-jest/lcov-report/hooks/typedownHooks/index.html +1 -1
  256. package/src/artifacts/coverage-jest/lcov-report/hooks/typedownHooks/index.js.html +1 -1
  257. package/src/artifacts/coverage-jest/lcov-report/hooks/typedownHooks/useTypedown.js.html +1 -1
  258. package/src/artifacts/coverage-jest/lcov-report/hooks/typedownHooks/useTypedownData.js.html +1 -1
  259. package/src/artifacts/coverage-jest/lcov-report/hooks/typedownHooks/useTypedownToggle.js.html +1 -1
  260. package/src/artifacts/coverage-jest/lcov-report/hooks/useActiveElement.js.html +2 -2
  261. package/src/artifacts/coverage-jest/lcov-report/hooks/useAvailableCustomProperties.js.html +32 -32
  262. package/src/artifacts/coverage-jest/lcov-report/hooks/useCustomProperties.js.html +34 -37
  263. package/src/artifacts/coverage-jest/lcov-report/hooks/useHelperApp.js.html +2 -2
  264. package/src/artifacts/coverage-jest/lcov-report/hooks/useIntlKey.js.html +151 -0
  265. package/src/artifacts/coverage-jest/lcov-report/hooks/useIntlKeyStore.js.html +199 -0
  266. package/src/artifacts/coverage-jest/lcov-report/hooks/useInvalidateRefdata.js.html +2 -2
  267. package/src/artifacts/coverage-jest/lcov-report/hooks/useKintIntl.js.html +238 -0
  268. package/src/artifacts/coverage-jest/lcov-report/hooks/useKiwtFieldArray.js.html +2 -2
  269. package/src/artifacts/coverage-jest/lcov-report/hooks/useKiwtSASQuery.js.html +3 -3
  270. package/src/artifacts/coverage-jest/lcov-report/hooks/useLocalStorageState.js.html +2 -2
  271. package/src/artifacts/coverage-jest/lcov-report/hooks/useMutateCustomProperties.js.html +18 -6
  272. package/src/artifacts/coverage-jest/lcov-report/hooks/useMutateRefdataCategory.js.html +274 -0
  273. package/src/artifacts/coverage-jest/lcov-report/hooks/useMutateRefdataValue.js.html +14 -5
  274. package/src/artifacts/coverage-jest/lcov-report/hooks/useQIndex.js.html +2 -2
  275. package/src/artifacts/coverage-jest/lcov-report/hooks/useRefdata.js.html +3 -3
  276. package/src/artifacts/coverage-jest/lcov-report/hooks/useSASQQueryMeta.js.html +187 -0
  277. package/src/artifacts/coverage-jest/lcov-report/hooks/useTemplates.js.html +2 -2
  278. package/src/artifacts/coverage-jest/lcov-report/index.html +138 -78
  279. package/src/artifacts/coverage-jest/lcov-report/sort-arrow-sprite.png +0 -0
  280. package/src/artifacts/coverage-jest/lcov-report/utils/buildUrl.js.html +1 -1
  281. package/src/artifacts/coverage-jest/lcov-report/utils/generateKiwtQuery.js.html +16 -16
  282. package/src/artifacts/coverage-jest/lcov-report/utils/generateKiwtQueryParams.js.html +66 -66
  283. package/src/artifacts/coverage-jest/lcov-report/utils/groupCustomPropertiesByCtx.js.html +2 -2
  284. package/src/artifacts/coverage-jest/lcov-report/utils/highlightString.js.html +3 -3
  285. package/src/artifacts/coverage-jest/lcov-report/utils/index.html +53 -38
  286. package/src/artifacts/coverage-jest/lcov-report/utils/index.js.html +11 -2
  287. package/src/artifacts/coverage-jest/lcov-report/utils/matchString.js.html +2 -2
  288. package/src/artifacts/coverage-jest/lcov-report/utils/parseErrorResponse.js.html +139 -0
  289. package/src/artifacts/coverage-jest/lcov-report/utils/refdataOptions.js.html +5 -2
  290. package/src/artifacts/coverage-jest/lcov-report/utils/refdataQueryKey.js.html +2 -2
  291. package/src/artifacts/coverage-jest/lcov-report/utils/renderHelpText.js.html +2 -2
  292. package/src/artifacts/coverage-jest/lcov-report/utils/selectorSafe.js.html +2 -2
  293. package/src/artifacts/coverage-jest/lcov-report/utils/sortByLabel.js.html +2 -2
  294. package/src/artifacts/coverage-jest/lcov-report/utils/toCamelCase.js.html +2 -2
  295. package/src/artifacts/coverage-jest/lcov-report/utils/typedownQueryKey.js.html +2 -2
  296. package/src/artifacts/coverage-jest/lcov-report/utils/validators.js.html +28 -28
  297. package/src/artifacts/coverage-jest/lcov.info +1724 -1155
  298. package/src/lib/CustomProperties/Config/CustomPropertiesSettings.js +1 -1
  299. package/src/lib/CustomProperties/Edit/CustomPropertiesListField.js +0 -1
  300. package/src/lib/utils/parseErrorResponse.js +1 -1
  301. package/translate.sh +4 -0
  302. package/translations/stripes-kint-components/ar.json +12 -12
  303. package/translations/stripes-kint-components/cs_CZ.json +4 -4
  304. package/translations/stripes-kint-components/en_GB.json +1 -0
  305. package/translations/stripes-kint-components/en_SE.json +1 -0
  306. package/translations/stripes-kint-components/es_419.json +122 -0
  307. package/translations/stripes-kint-components/es_ES.json +122 -0
  308. package/translations/stripes-kint-components/fr.json +105 -1
  309. package/translations/stripes-kint-components/fr_FR.json +105 -0
  310. package/translations/stripes-kint-components/hu.json +12 -12
  311. package/translations/stripes-kint-components/it_IT.json +6 -6
  312. package/translations/stripes-kint-components/pt_PT.json +6 -6
  313. package/translations/stripes-kint-components/ru.json +1 -1
  314. package/translations/stripes-kint-components/sv.json +7 -7
  315. package/translations/stripes-kint-components/zh_TW.json +122 -0
  316. package/yarn-error.log +147 -0
@@ -1,62 +1,35 @@
1
1
  "use strict";
2
2
 
3
3
  function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); }
4
-
5
4
  Object.defineProperty(exports, "__esModule", {
6
5
  value: true
7
6
  });
8
7
  exports.default = void 0;
9
-
10
8
  var _react = _interopRequireWildcard(require("react"));
11
-
12
9
  var _propTypes = _interopRequireDefault(require("prop-types"));
13
-
14
10
  var _reactIntl = require("react-intl");
15
-
16
11
  var _components = require("@folio/stripes/components");
17
-
18
12
  var _core = require("@folio/stripes/core");
19
-
20
13
  var _hooks = require("../hooks");
21
-
22
14
  var _ActionList = _interopRequireDefault(require("../ActionList"));
23
-
24
15
  var _validators = require("../utils/validators");
25
-
26
16
  var _utils = require("../utils");
27
-
28
17
  var _jsxRuntime = require("react/jsx-runtime");
29
-
30
18
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
31
-
32
19
  function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
33
-
34
20
  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; }
35
-
36
- function _regeneratorRuntime() { "use strict"; /*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */ _regeneratorRuntime = function _regeneratorRuntime() { return exports; }; var exports = {}, Op = Object.prototype, hasOwn = Op.hasOwnProperty, $Symbol = "function" == typeof Symbol ? Symbol : {}, iteratorSymbol = $Symbol.iterator || "@@iterator", asyncIteratorSymbol = $Symbol.asyncIterator || "@@asyncIterator", toStringTagSymbol = $Symbol.toStringTag || "@@toStringTag"; function define(obj, key, value) { return Object.defineProperty(obj, key, { value: value, enumerable: !0, configurable: !0, writable: !0 }), obj[key]; } try { define({}, ""); } catch (err) { define = function define(obj, key, value) { return obj[key] = value; }; } function wrap(innerFn, outerFn, self, tryLocsList) { var protoGenerator = outerFn && outerFn.prototype instanceof Generator ? outerFn : Generator, generator = Object.create(protoGenerator.prototype), context = new Context(tryLocsList || []); return generator._invoke = function (innerFn, self, context) { var state = "suspendedStart"; return function (method, arg) { if ("executing" === state) throw new Error("Generator is already running"); if ("completed" === state) { if ("throw" === method) throw arg; return doneResult(); } for (context.method = method, context.arg = arg;;) { var delegate = context.delegate; if (delegate) { var delegateResult = maybeInvokeDelegate(delegate, context); if (delegateResult) { if (delegateResult === ContinueSentinel) continue; return delegateResult; } } if ("next" === context.method) context.sent = context._sent = context.arg;else if ("throw" === context.method) { if ("suspendedStart" === state) throw state = "completed", context.arg; context.dispatchException(context.arg); } else "return" === context.method && context.abrupt("return", context.arg); state = "executing"; var record = tryCatch(innerFn, self, context); if ("normal" === record.type) { if (state = context.done ? "completed" : "suspendedYield", record.arg === ContinueSentinel) continue; return { value: record.arg, done: context.done }; } "throw" === record.type && (state = "completed", context.method = "throw", context.arg = record.arg); } }; }(innerFn, self, context), generator; } function tryCatch(fn, obj, arg) { try { return { type: "normal", arg: fn.call(obj, arg) }; } catch (err) { return { type: "throw", arg: err }; } } exports.wrap = wrap; var ContinueSentinel = {}; function Generator() {} function GeneratorFunction() {} function GeneratorFunctionPrototype() {} var IteratorPrototype = {}; define(IteratorPrototype, iteratorSymbol, function () { return this; }); var getProto = Object.getPrototypeOf, NativeIteratorPrototype = getProto && getProto(getProto(values([]))); NativeIteratorPrototype && NativeIteratorPrototype !== Op && hasOwn.call(NativeIteratorPrototype, iteratorSymbol) && (IteratorPrototype = NativeIteratorPrototype); var Gp = GeneratorFunctionPrototype.prototype = Generator.prototype = Object.create(IteratorPrototype); function defineIteratorMethods(prototype) { ["next", "throw", "return"].forEach(function (method) { define(prototype, method, function (arg) { return this._invoke(method, arg); }); }); } function AsyncIterator(generator, PromiseImpl) { function invoke(method, arg, resolve, reject) { var record = tryCatch(generator[method], generator, arg); if ("throw" !== record.type) { var result = record.arg, value = result.value; return value && "object" == _typeof(value) && hasOwn.call(value, "__await") ? PromiseImpl.resolve(value.__await).then(function (value) { invoke("next", value, resolve, reject); }, function (err) { invoke("throw", err, resolve, reject); }) : PromiseImpl.resolve(value).then(function (unwrapped) { result.value = unwrapped, resolve(result); }, function (error) { return invoke("throw", error, resolve, reject); }); } reject(record.arg); } var previousPromise; this._invoke = function (method, arg) { function callInvokeWithMethodAndArg() { return new PromiseImpl(function (resolve, reject) { invoke(method, arg, resolve, reject); }); } return previousPromise = previousPromise ? previousPromise.then(callInvokeWithMethodAndArg, callInvokeWithMethodAndArg) : callInvokeWithMethodAndArg(); }; } function maybeInvokeDelegate(delegate, context) { var method = delegate.iterator[context.method]; if (undefined === method) { if (context.delegate = null, "throw" === context.method) { if (delegate.iterator.return && (context.method = "return", context.arg = undefined, maybeInvokeDelegate(delegate, context), "throw" === context.method)) return ContinueSentinel; context.method = "throw", context.arg = new TypeError("The iterator does not provide a 'throw' method"); } return ContinueSentinel; } var record = tryCatch(method, delegate.iterator, context.arg); if ("throw" === record.type) return context.method = "throw", context.arg = record.arg, context.delegate = null, ContinueSentinel; var info = record.arg; return info ? info.done ? (context[delegate.resultName] = info.value, context.next = delegate.nextLoc, "return" !== context.method && (context.method = "next", context.arg = undefined), context.delegate = null, ContinueSentinel) : info : (context.method = "throw", context.arg = new TypeError("iterator result is not an object"), context.delegate = null, ContinueSentinel); } function pushTryEntry(locs) { var entry = { tryLoc: locs[0] }; 1 in locs && (entry.catchLoc = locs[1]), 2 in locs && (entry.finallyLoc = locs[2], entry.afterLoc = locs[3]), this.tryEntries.push(entry); } function resetTryEntry(entry) { var record = entry.completion || {}; record.type = "normal", delete record.arg, entry.completion = record; } function Context(tryLocsList) { this.tryEntries = [{ tryLoc: "root" }], tryLocsList.forEach(pushTryEntry, this), this.reset(!0); } function values(iterable) { if (iterable) { var iteratorMethod = iterable[iteratorSymbol]; if (iteratorMethod) return iteratorMethod.call(iterable); if ("function" == typeof iterable.next) return iterable; if (!isNaN(iterable.length)) { var i = -1, next = function next() { for (; ++i < iterable.length;) { if (hasOwn.call(iterable, i)) return next.value = iterable[i], next.done = !1, next; } return next.value = undefined, next.done = !0, next; }; return next.next = next; } } return { next: doneResult }; } function doneResult() { return { value: undefined, done: !0 }; } return GeneratorFunction.prototype = GeneratorFunctionPrototype, define(Gp, "constructor", GeneratorFunctionPrototype), define(GeneratorFunctionPrototype, "constructor", GeneratorFunction), GeneratorFunction.displayName = define(GeneratorFunctionPrototype, toStringTagSymbol, "GeneratorFunction"), exports.isGeneratorFunction = function (genFun) { var ctor = "function" == typeof genFun && genFun.constructor; return !!ctor && (ctor === GeneratorFunction || "GeneratorFunction" === (ctor.displayName || ctor.name)); }, exports.mark = function (genFun) { return Object.setPrototypeOf ? Object.setPrototypeOf(genFun, GeneratorFunctionPrototype) : (genFun.__proto__ = GeneratorFunctionPrototype, define(genFun, toStringTagSymbol, "GeneratorFunction")), genFun.prototype = Object.create(Gp), genFun; }, exports.awrap = function (arg) { return { __await: arg }; }, defineIteratorMethods(AsyncIterator.prototype), define(AsyncIterator.prototype, asyncIteratorSymbol, function () { return this; }), exports.AsyncIterator = AsyncIterator, exports.async = function (innerFn, outerFn, self, tryLocsList, PromiseImpl) { void 0 === PromiseImpl && (PromiseImpl = Promise); var iter = new AsyncIterator(wrap(innerFn, outerFn, self, tryLocsList), PromiseImpl); return exports.isGeneratorFunction(outerFn) ? iter : iter.next().then(function (result) { return result.done ? result.value : iter.next(); }); }, defineIteratorMethods(Gp), define(Gp, toStringTagSymbol, "Generator"), define(Gp, iteratorSymbol, function () { return this; }), define(Gp, "toString", function () { return "[object Generator]"; }), exports.keys = function (object) { var keys = []; for (var key in object) { keys.push(key); } return keys.reverse(), function next() { for (; keys.length;) { var key = keys.pop(); if (key in object) return next.value = key, next.done = !1, next; } return next.done = !0, next; }; }, exports.values = values, Context.prototype = { constructor: Context, reset: function reset(skipTempReset) { if (this.prev = 0, this.next = 0, this.sent = this._sent = undefined, this.done = !1, this.delegate = null, this.method = "next", this.arg = undefined, this.tryEntries.forEach(resetTryEntry), !skipTempReset) for (var name in this) { "t" === name.charAt(0) && hasOwn.call(this, name) && !isNaN(+name.slice(1)) && (this[name] = undefined); } }, stop: function stop() { this.done = !0; var rootRecord = this.tryEntries[0].completion; if ("throw" === rootRecord.type) throw rootRecord.arg; return this.rval; }, dispatchException: function dispatchException(exception) { if (this.done) throw exception; var context = this; function handle(loc, caught) { return record.type = "throw", record.arg = exception, context.next = loc, caught && (context.method = "next", context.arg = undefined), !!caught; } for (var i = this.tryEntries.length - 1; i >= 0; --i) { var entry = this.tryEntries[i], record = entry.completion; if ("root" === entry.tryLoc) return handle("end"); if (entry.tryLoc <= this.prev) { var hasCatch = hasOwn.call(entry, "catchLoc"), hasFinally = hasOwn.call(entry, "finallyLoc"); if (hasCatch && hasFinally) { if (this.prev < entry.catchLoc) return handle(entry.catchLoc, !0); if (this.prev < entry.finallyLoc) return handle(entry.finallyLoc); } else if (hasCatch) { if (this.prev < entry.catchLoc) return handle(entry.catchLoc, !0); } else { if (!hasFinally) throw new Error("try statement without catch or finally"); if (this.prev < entry.finallyLoc) return handle(entry.finallyLoc); } } } }, abrupt: function abrupt(type, arg) { for (var i = this.tryEntries.length - 1; i >= 0; --i) { var entry = this.tryEntries[i]; if (entry.tryLoc <= this.prev && hasOwn.call(entry, "finallyLoc") && this.prev < entry.finallyLoc) { var finallyEntry = entry; break; } } finallyEntry && ("break" === type || "continue" === type) && finallyEntry.tryLoc <= arg && arg <= finallyEntry.finallyLoc && (finallyEntry = null); var record = finallyEntry ? finallyEntry.completion : {}; return record.type = type, record.arg = arg, finallyEntry ? (this.method = "next", this.next = finallyEntry.finallyLoc, ContinueSentinel) : this.complete(record); }, complete: function complete(record, afterLoc) { if ("throw" === record.type) throw record.arg; return "break" === record.type || "continue" === record.type ? this.next = record.arg : "return" === record.type ? (this.rval = this.arg = record.arg, this.method = "return", this.next = "end") : "normal" === record.type && afterLoc && (this.next = afterLoc), ContinueSentinel; }, finish: function finish(finallyLoc) { for (var i = this.tryEntries.length - 1; i >= 0; --i) { var entry = this.tryEntries[i]; if (entry.finallyLoc === finallyLoc) return this.complete(entry.completion, entry.afterLoc), resetTryEntry(entry), ContinueSentinel; } }, catch: function _catch(tryLoc) { for (var i = this.tryEntries.length - 1; i >= 0; --i) { var entry = this.tryEntries[i]; if (entry.tryLoc === tryLoc) { var record = entry.completion; if ("throw" === record.type) { var thrown = record.arg; resetTryEntry(entry); } return thrown; } } throw new Error("illegal catch attempt"); }, delegateYield: function delegateYield(iterable, resultName, nextLoc) { return this.delegate = { iterator: values(iterable), resultName: resultName, nextLoc: nextLoc }, "next" === this.method && (this.arg = undefined), ContinueSentinel; } }, exports; }
37
-
21
+ function _regeneratorRuntime() { "use strict"; /*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */ _regeneratorRuntime = function _regeneratorRuntime() { return exports; }; var exports = {}, Op = Object.prototype, hasOwn = Op.hasOwnProperty, defineProperty = Object.defineProperty || function (obj, key, desc) { obj[key] = desc.value; }, $Symbol = "function" == typeof Symbol ? Symbol : {}, iteratorSymbol = $Symbol.iterator || "@@iterator", asyncIteratorSymbol = $Symbol.asyncIterator || "@@asyncIterator", toStringTagSymbol = $Symbol.toStringTag || "@@toStringTag"; function define(obj, key, value) { return Object.defineProperty(obj, key, { value: value, enumerable: !0, configurable: !0, writable: !0 }), obj[key]; } try { define({}, ""); } catch (err) { define = function define(obj, key, value) { return obj[key] = value; }; } function wrap(innerFn, outerFn, self, tryLocsList) { var protoGenerator = outerFn && outerFn.prototype instanceof Generator ? outerFn : Generator, generator = Object.create(protoGenerator.prototype), context = new Context(tryLocsList || []); return defineProperty(generator, "_invoke", { value: makeInvokeMethod(innerFn, self, context) }), generator; } function tryCatch(fn, obj, arg) { try { return { type: "normal", arg: fn.call(obj, arg) }; } catch (err) { return { type: "throw", arg: err }; } } exports.wrap = wrap; var ContinueSentinel = {}; function Generator() {} function GeneratorFunction() {} function GeneratorFunctionPrototype() {} var IteratorPrototype = {}; define(IteratorPrototype, iteratorSymbol, function () { return this; }); var getProto = Object.getPrototypeOf, NativeIteratorPrototype = getProto && getProto(getProto(values([]))); NativeIteratorPrototype && NativeIteratorPrototype !== Op && hasOwn.call(NativeIteratorPrototype, iteratorSymbol) && (IteratorPrototype = NativeIteratorPrototype); var Gp = GeneratorFunctionPrototype.prototype = Generator.prototype = Object.create(IteratorPrototype); function defineIteratorMethods(prototype) { ["next", "throw", "return"].forEach(function (method) { define(prototype, method, function (arg) { return this._invoke(method, arg); }); }); } function AsyncIterator(generator, PromiseImpl) { function invoke(method, arg, resolve, reject) { var record = tryCatch(generator[method], generator, arg); if ("throw" !== record.type) { var result = record.arg, value = result.value; return value && "object" == _typeof(value) && hasOwn.call(value, "__await") ? PromiseImpl.resolve(value.__await).then(function (value) { invoke("next", value, resolve, reject); }, function (err) { invoke("throw", err, resolve, reject); }) : PromiseImpl.resolve(value).then(function (unwrapped) { result.value = unwrapped, resolve(result); }, function (error) { return invoke("throw", error, resolve, reject); }); } reject(record.arg); } var previousPromise; defineProperty(this, "_invoke", { value: function value(method, arg) { function callInvokeWithMethodAndArg() { return new PromiseImpl(function (resolve, reject) { invoke(method, arg, resolve, reject); }); } return previousPromise = previousPromise ? previousPromise.then(callInvokeWithMethodAndArg, callInvokeWithMethodAndArg) : callInvokeWithMethodAndArg(); } }); } function makeInvokeMethod(innerFn, self, context) { var state = "suspendedStart"; return function (method, arg) { if ("executing" === state) throw new Error("Generator is already running"); if ("completed" === state) { if ("throw" === method) throw arg; return doneResult(); } for (context.method = method, context.arg = arg;;) { var delegate = context.delegate; if (delegate) { var delegateResult = maybeInvokeDelegate(delegate, context); if (delegateResult) { if (delegateResult === ContinueSentinel) continue; return delegateResult; } } if ("next" === context.method) context.sent = context._sent = context.arg;else if ("throw" === context.method) { if ("suspendedStart" === state) throw state = "completed", context.arg; context.dispatchException(context.arg); } else "return" === context.method && context.abrupt("return", context.arg); state = "executing"; var record = tryCatch(innerFn, self, context); if ("normal" === record.type) { if (state = context.done ? "completed" : "suspendedYield", record.arg === ContinueSentinel) continue; return { value: record.arg, done: context.done }; } "throw" === record.type && (state = "completed", context.method = "throw", context.arg = record.arg); } }; } function maybeInvokeDelegate(delegate, context) { var method = delegate.iterator[context.method]; if (undefined === method) { if (context.delegate = null, "throw" === context.method) { if (delegate.iterator.return && (context.method = "return", context.arg = undefined, maybeInvokeDelegate(delegate, context), "throw" === context.method)) return ContinueSentinel; context.method = "throw", context.arg = new TypeError("The iterator does not provide a 'throw' method"); } return ContinueSentinel; } var record = tryCatch(method, delegate.iterator, context.arg); if ("throw" === record.type) return context.method = "throw", context.arg = record.arg, context.delegate = null, ContinueSentinel; var info = record.arg; return info ? info.done ? (context[delegate.resultName] = info.value, context.next = delegate.nextLoc, "return" !== context.method && (context.method = "next", context.arg = undefined), context.delegate = null, ContinueSentinel) : info : (context.method = "throw", context.arg = new TypeError("iterator result is not an object"), context.delegate = null, ContinueSentinel); } function pushTryEntry(locs) { var entry = { tryLoc: locs[0] }; 1 in locs && (entry.catchLoc = locs[1]), 2 in locs && (entry.finallyLoc = locs[2], entry.afterLoc = locs[3]), this.tryEntries.push(entry); } function resetTryEntry(entry) { var record = entry.completion || {}; record.type = "normal", delete record.arg, entry.completion = record; } function Context(tryLocsList) { this.tryEntries = [{ tryLoc: "root" }], tryLocsList.forEach(pushTryEntry, this), this.reset(!0); } function values(iterable) { if (iterable) { var iteratorMethod = iterable[iteratorSymbol]; if (iteratorMethod) return iteratorMethod.call(iterable); if ("function" == typeof iterable.next) return iterable; if (!isNaN(iterable.length)) { var i = -1, next = function next() { for (; ++i < iterable.length;) { if (hasOwn.call(iterable, i)) return next.value = iterable[i], next.done = !1, next; } return next.value = undefined, next.done = !0, next; }; return next.next = next; } } return { next: doneResult }; } function doneResult() { return { value: undefined, done: !0 }; } return GeneratorFunction.prototype = GeneratorFunctionPrototype, defineProperty(Gp, "constructor", { value: GeneratorFunctionPrototype, configurable: !0 }), defineProperty(GeneratorFunctionPrototype, "constructor", { value: GeneratorFunction, configurable: !0 }), GeneratorFunction.displayName = define(GeneratorFunctionPrototype, toStringTagSymbol, "GeneratorFunction"), exports.isGeneratorFunction = function (genFun) { var ctor = "function" == typeof genFun && genFun.constructor; return !!ctor && (ctor === GeneratorFunction || "GeneratorFunction" === (ctor.displayName || ctor.name)); }, exports.mark = function (genFun) { return Object.setPrototypeOf ? Object.setPrototypeOf(genFun, GeneratorFunctionPrototype) : (genFun.__proto__ = GeneratorFunctionPrototype, define(genFun, toStringTagSymbol, "GeneratorFunction")), genFun.prototype = Object.create(Gp), genFun; }, exports.awrap = function (arg) { return { __await: arg }; }, defineIteratorMethods(AsyncIterator.prototype), define(AsyncIterator.prototype, asyncIteratorSymbol, function () { return this; }), exports.AsyncIterator = AsyncIterator, exports.async = function (innerFn, outerFn, self, tryLocsList, PromiseImpl) { void 0 === PromiseImpl && (PromiseImpl = Promise); var iter = new AsyncIterator(wrap(innerFn, outerFn, self, tryLocsList), PromiseImpl); return exports.isGeneratorFunction(outerFn) ? iter : iter.next().then(function (result) { return result.done ? result.value : iter.next(); }); }, defineIteratorMethods(Gp), define(Gp, toStringTagSymbol, "Generator"), define(Gp, iteratorSymbol, function () { return this; }), define(Gp, "toString", function () { return "[object Generator]"; }), exports.keys = function (val) { var object = Object(val), keys = []; for (var key in object) { keys.push(key); } return keys.reverse(), function next() { for (; keys.length;) { var key = keys.pop(); if (key in object) return next.value = key, next.done = !1, next; } return next.done = !0, next; }; }, exports.values = values, Context.prototype = { constructor: Context, reset: function reset(skipTempReset) { if (this.prev = 0, this.next = 0, this.sent = this._sent = undefined, this.done = !1, this.delegate = null, this.method = "next", this.arg = undefined, this.tryEntries.forEach(resetTryEntry), !skipTempReset) for (var name in this) { "t" === name.charAt(0) && hasOwn.call(this, name) && !isNaN(+name.slice(1)) && (this[name] = undefined); } }, stop: function stop() { this.done = !0; var rootRecord = this.tryEntries[0].completion; if ("throw" === rootRecord.type) throw rootRecord.arg; return this.rval; }, dispatchException: function dispatchException(exception) { if (this.done) throw exception; var context = this; function handle(loc, caught) { return record.type = "throw", record.arg = exception, context.next = loc, caught && (context.method = "next", context.arg = undefined), !!caught; } for (var i = this.tryEntries.length - 1; i >= 0; --i) { var entry = this.tryEntries[i], record = entry.completion; if ("root" === entry.tryLoc) return handle("end"); if (entry.tryLoc <= this.prev) { var hasCatch = hasOwn.call(entry, "catchLoc"), hasFinally = hasOwn.call(entry, "finallyLoc"); if (hasCatch && hasFinally) { if (this.prev < entry.catchLoc) return handle(entry.catchLoc, !0); if (this.prev < entry.finallyLoc) return handle(entry.finallyLoc); } else if (hasCatch) { if (this.prev < entry.catchLoc) return handle(entry.catchLoc, !0); } else { if (!hasFinally) throw new Error("try statement without catch or finally"); if (this.prev < entry.finallyLoc) return handle(entry.finallyLoc); } } } }, abrupt: function abrupt(type, arg) { for (var i = this.tryEntries.length - 1; i >= 0; --i) { var entry = this.tryEntries[i]; if (entry.tryLoc <= this.prev && hasOwn.call(entry, "finallyLoc") && this.prev < entry.finallyLoc) { var finallyEntry = entry; break; } } finallyEntry && ("break" === type || "continue" === type) && finallyEntry.tryLoc <= arg && arg <= finallyEntry.finallyLoc && (finallyEntry = null); var record = finallyEntry ? finallyEntry.completion : {}; return record.type = type, record.arg = arg, finallyEntry ? (this.method = "next", this.next = finallyEntry.finallyLoc, ContinueSentinel) : this.complete(record); }, complete: function complete(record, afterLoc) { if ("throw" === record.type) throw record.arg; return "break" === record.type || "continue" === record.type ? this.next = record.arg : "return" === record.type ? (this.rval = this.arg = record.arg, this.method = "return", this.next = "end") : "normal" === record.type && afterLoc && (this.next = afterLoc), ContinueSentinel; }, finish: function finish(finallyLoc) { for (var i = this.tryEntries.length - 1; i >= 0; --i) { var entry = this.tryEntries[i]; if (entry.finallyLoc === finallyLoc) return this.complete(entry.completion, entry.afterLoc), resetTryEntry(entry), ContinueSentinel; } }, catch: function _catch(tryLoc) { for (var i = this.tryEntries.length - 1; i >= 0; --i) { var entry = this.tryEntries[i]; if (entry.tryLoc === tryLoc) { var record = entry.completion; if ("throw" === record.type) { var thrown = record.arg; resetTryEntry(entry); } return thrown; } } throw new Error("illegal catch attempt"); }, delegateYield: function delegateYield(iterable, resultName, nextLoc) { return this.delegate = { iterator: values(iterable), resultName: resultName, nextLoc: nextLoc }, "next" === this.method && (this.arg = undefined), ContinueSentinel; } }, exports; }
38
22
  function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) { try { var info = gen[key](arg); var value = info.value; } catch (error) { reject(error); return; } if (info.done) { resolve(value); } else { Promise.resolve(value).then(_next, _throw); } }
39
-
40
23
  function _asyncToGenerator(fn) { return function () { var self = this, args = arguments; return new Promise(function (resolve, reject) { var gen = fn.apply(self, args); function _next(value) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, "next", value); } function _throw(err) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, "throw", err); } _next(undefined); }); }; }
41
-
42
24
  function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
43
-
44
25
  function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
45
-
46
26
  function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
47
-
48
27
  function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
49
-
50
28
  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."); }
51
-
52
29
  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); }
53
-
54
30
  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; }
55
-
56
31
  function _iterableToArrayLimit(arr, i) { var _i = arr == null ? null : typeof Symbol !== "undefined" && arr[Symbol.iterator] || arr["@@iterator"]; if (_i == null) return; var _arr = []; var _n = true; var _d = false; var _s, _e; try { for (_i = _i.call(arr); !(_n = (_s = _i.next()).done); _n = true) { _arr.push(_s.value); if (i && _arr.length === i) break; } } catch (err) { _d = true; _e = err; } finally { try { if (!_n && _i["return"] != null) _i["return"](); } finally { if (_d) throw _e; } } return _arr; }
57
-
58
32
  function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
59
-
60
33
  var propTypes = {
61
34
  afterQueryCalls: _propTypes.default.object,
62
35
  catchQueryCalls: _propTypes.default.object,
@@ -65,141 +38,124 @@ var propTypes = {
65
38
  labelOverrides: _propTypes.default.object,
66
39
  refdataEndpoint: _propTypes.default.string
67
40
  };
68
-
69
41
  var EditableRefdataList = function EditableRefdataList(_ref) {
70
42
  var _labelOverrides$delet, _deleteModal$refdata2;
71
-
72
43
  var afterQueryCalls = _ref.afterQueryCalls,
73
- catchQueryCalls = _ref.catchQueryCalls,
74
- desc = _ref.desc,
75
- label = _ref.label,
76
- _ref$labelOverrides = _ref.labelOverrides,
77
- labelOverrides = _ref$labelOverrides === void 0 ? {} : _ref$labelOverrides,
78
- refdataEndpoint = _ref.refdataEndpoint;
79
-
44
+ catchQueryCalls = _ref.catchQueryCalls,
45
+ desc = _ref.desc,
46
+ label = _ref.label,
47
+ _ref$labelOverrides = _ref.labelOverrides,
48
+ labelOverrides = _ref$labelOverrides === void 0 ? {} : _ref$labelOverrides,
49
+ refdataEndpoint = _ref.refdataEndpoint;
80
50
  /* A component that allows for editing of refdata values */
81
51
  var callout = (0, _react.useContext)(_core.CalloutContext);
82
- var intl = (0, _reactIntl.useIntl)(); // fetch refdata values
52
+ var intl = (0, _reactIntl.useIntl)();
83
53
 
54
+ // fetch refdata values
84
55
  var _useRefdata = (0, _hooks.useRefdata)({
85
- desc: desc,
86
- endpoint: refdataEndpoint,
87
- returnQueryObject: true
88
- }),
89
- _useRefdata$data = _useRefdata.data;
90
-
56
+ desc: desc,
57
+ endpoint: refdataEndpoint,
58
+ returnQueryObject: true
59
+ }),
60
+ _useRefdata$data = _useRefdata.data;
91
61
  _useRefdata$data = _useRefdata$data === void 0 ? {} : _useRefdata$data;
92
62
  var refdata = _useRefdata$data[0],
93
- isRefdataLoading = _useRefdata.isLoading;
94
-
63
+ isRefdataLoading = _useRefdata.isLoading;
95
64
  var _useState = (0, _react.useState)([]),
96
- _useState2 = _slicedToArray(_useState, 2),
97
- contentData = _useState2[0],
98
- setContentData = _useState2[1];
99
-
65
+ _useState2 = _slicedToArray(_useState, 2),
66
+ contentData = _useState2[0],
67
+ setContentData = _useState2[1];
100
68
  var _useState3 = (0, _react.useState)({
101
- visible: false,
102
- refdata: null
103
- }),
104
- _useState4 = _slicedToArray(_useState3, 2),
105
- deleteModal = _useState4[0],
106
- setDeleteModal = _useState4[1];
107
-
69
+ visible: false,
70
+ refdata: null
71
+ }),
72
+ _useState4 = _slicedToArray(_useState3, 2),
73
+ deleteModal = _useState4[0],
74
+ setDeleteModal = _useState4[1];
108
75
  var sortByLabel = function sortByLabel(a, b) {
109
76
  return a.label.localeCompare(b.label);
110
77
  };
111
-
112
78
  (0, _react.useEffect)(function () {
113
79
  if (!isRefdataLoading) {
114
80
  var _refdata$values$sort, _refdata$values;
115
-
116
81
  setContentData((_refdata$values$sort = refdata === null || refdata === void 0 ? void 0 : (_refdata$values = refdata.values) === null || _refdata$values === void 0 ? void 0 : _refdata$values.sort(sortByLabel)) !== null && _refdata$values$sort !== void 0 ? _refdata$values$sort : []);
117
82
  }
118
- }, [isRefdataLoading, refdata]); // Edit and Create will use the same PUT mutation
83
+ }, [isRefdataLoading, refdata]);
119
84
 
85
+ // Edit and Create will use the same PUT mutation
120
86
  var _useMutateRefdataValu = (0, _hooks.useMutateRefdataValue)({
121
- afterQueryCalls: {
122
- delete: function _delete(json) {
123
- var _json$values$sort, _json$values;
124
-
125
- setContentData((_json$values$sort = json === null || json === void 0 ? void 0 : (_json$values = json.values) === null || _json$values === void 0 ? void 0 : _json$values.sort(sortByLabel)) !== null && _json$values$sort !== void 0 ? _json$values$sort : []);
126
-
127
- if (afterQueryCalls !== null && afterQueryCalls !== void 0 && afterQueryCalls.delete) {
128
- afterQueryCalls.delete(json);
87
+ afterQueryCalls: {
88
+ delete: function _delete(json) {
89
+ var _json$values$sort, _json$values;
90
+ setContentData((_json$values$sort = json === null || json === void 0 ? void 0 : (_json$values = json.values) === null || _json$values === void 0 ? void 0 : _json$values.sort(sortByLabel)) !== null && _json$values$sort !== void 0 ? _json$values$sort : []);
91
+ if (afterQueryCalls !== null && afterQueryCalls !== void 0 && afterQueryCalls.delete) {
92
+ afterQueryCalls.delete(json);
93
+ }
94
+ },
95
+ put: function put(json) {
96
+ var _json$values$sort2, _json$values2;
97
+ setContentData((_json$values$sort2 = json === null || json === void 0 ? void 0 : (_json$values2 = json.values) === null || _json$values2 === void 0 ? void 0 : _json$values2.sort(sortByLabel)) !== null && _json$values$sort2 !== void 0 ? _json$values$sort2 : []);
98
+ if (afterQueryCalls !== null && afterQueryCalls !== void 0 && afterQueryCalls.put) {
99
+ afterQueryCalls.put(json);
100
+ }
129
101
  }
130
102
  },
131
- put: function put(json) {
132
- var _json$values$sort2, _json$values2;
133
-
134
- setContentData((_json$values$sort2 = json === null || json === void 0 ? void 0 : (_json$values2 = json.values) === null || _json$values2 === void 0 ? void 0 : _json$values2.sort(sortByLabel)) !== null && _json$values$sort2 !== void 0 ? _json$values$sort2 : []);
135
-
136
- if (afterQueryCalls !== null && afterQueryCalls !== void 0 && afterQueryCalls.put) {
137
- afterQueryCalls.put(json);
138
- }
139
- }
140
- },
141
- catchQueryCalls: _objectSpread({
142
- // Default delete behaviour is to fire a callout, either with kint-components default message
143
- // or one provided in labelOverrides, which is passed the error message and refdata in question
144
- delete: function () {
145
- var _delete2 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(err) {
146
- var _deleteModal$refdata;
147
-
148
- var errorResp;
149
- return _regeneratorRuntime().wrap(function _callee$(_context) {
150
- while (1) {
151
- switch (_context.prev = _context.next) {
152
- case 0:
153
- _context.next = 2;
154
- return (0, _utils.parseErrorResponse)(err.response);
155
-
156
- case 2:
157
- errorResp = _context.sent;
158
- callout.sendCallout({
159
- message: labelOverrides !== null && labelOverrides !== void 0 && labelOverrides.deleteError ? labelOverrides.deleteError(errorResp === null || errorResp === void 0 ? void 0 : errorResp.message, deleteModal === null || deleteModal === void 0 ? void 0 : deleteModal.refdata) : /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactIntl.FormattedMessage, {
160
- id: "stripes-kint-components.editableRefdataList.deleteRefdataValue.errorMessage",
161
- values: {
162
- label: deleteModal === null || deleteModal === void 0 ? void 0 : (_deleteModal$refdata = deleteModal.refdata) === null || _deleteModal$refdata === void 0 ? void 0 : _deleteModal$refdata.label,
163
- error: errorResp === null || errorResp === void 0 ? void 0 : errorResp.message
164
- }
165
- }),
166
- type: 'error'
167
- });
168
-
169
- case 4:
170
- case "end":
171
- return _context.stop();
103
+ catchQueryCalls: _objectSpread({
104
+ // Default delete behaviour is to fire a callout, either with kint-components default message
105
+ // or one provided in labelOverrides, which is passed the error message and refdata in question
106
+ delete: function () {
107
+ var _delete2 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(err) {
108
+ var _deleteModal$refdata;
109
+ var errorResp;
110
+ return _regeneratorRuntime().wrap(function _callee$(_context) {
111
+ while (1) {
112
+ switch (_context.prev = _context.next) {
113
+ case 0:
114
+ _context.next = 2;
115
+ return (0, _utils.parseErrorResponse)(err.response);
116
+ case 2:
117
+ errorResp = _context.sent;
118
+ callout.sendCallout({
119
+ message: labelOverrides !== null && labelOverrides !== void 0 && labelOverrides.deleteError ? labelOverrides.deleteError(errorResp === null || errorResp === void 0 ? void 0 : errorResp.message, deleteModal === null || deleteModal === void 0 ? void 0 : deleteModal.refdata) : /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactIntl.FormattedMessage, {
120
+ id: "stripes-kint-components.editableRefdataList.deleteRefdataValue.errorMessage",
121
+ values: {
122
+ label: deleteModal === null || deleteModal === void 0 ? void 0 : (_deleteModal$refdata = deleteModal.refdata) === null || _deleteModal$refdata === void 0 ? void 0 : _deleteModal$refdata.label,
123
+ error: errorResp === null || errorResp === void 0 ? void 0 : errorResp.message
124
+ }
125
+ }),
126
+ type: 'error'
127
+ });
128
+ case 4:
129
+ case "end":
130
+ return _context.stop();
131
+ }
172
132
  }
173
- }
174
- }, _callee);
175
- }));
176
-
177
- function _delete(_x) {
178
- return _delete2.apply(this, arguments);
133
+ }, _callee);
134
+ }));
135
+ function _delete(_x) {
136
+ return _delete2.apply(this, arguments);
137
+ }
138
+ return _delete;
139
+ }()
140
+ }, catchQueryCalls),
141
+ endpoint: refdataEndpoint,
142
+ id: refdata === null || refdata === void 0 ? void 0 : refdata.id,
143
+ queryParams: {
144
+ delete: {
145
+ enabled: !!refdata
146
+ },
147
+ put: {
148
+ enabled: !!refdata
179
149
  }
180
-
181
- return _delete;
182
- }()
183
- }, catchQueryCalls),
184
- endpoint: refdataEndpoint,
185
- id: refdata === null || refdata === void 0 ? void 0 : refdata.id,
186
- queryParams: {
187
- delete: {
188
- enabled: !!refdata
189
- },
190
- put: {
191
- enabled: !!refdata
192
150
  }
193
- }
194
- }),
195
- deleteRefdataValue = _useMutateRefdataValu.delete,
196
- editRefdataValue = _useMutateRefdataValu.put;
197
-
151
+ }),
152
+ deleteRefdataValue = _useMutateRefdataValu.delete,
153
+ editRefdataValue = _useMutateRefdataValu.put;
198
154
  if (isRefdataLoading) {
199
155
  return 'loading';
200
- } // This is the function which will take a row in the table and assign the relevant actions to it
201
-
156
+ }
202
157
 
158
+ // This is the function which will take a row in the table and assign the relevant actions to it
203
159
  var actionAssigner = function actionAssigner() {
204
160
  var actionArray = [{
205
161
  name: 'edit',
@@ -218,7 +174,6 @@ var EditableRefdataList = function EditableRefdataList(_ref) {
218
174
  });
219
175
  }
220
176
  }];
221
-
222
177
  if (!(refdata !== null && refdata !== void 0 && refdata.internal)) {
223
178
  actionArray.push({
224
179
  name: 'delete',
@@ -241,10 +196,8 @@ var EditableRefdataList = function EditableRefdataList(_ref) {
241
196
  }
242
197
  });
243
198
  }
244
-
245
199
  return actionArray;
246
200
  };
247
-
248
201
  return /*#__PURE__*/(0, _jsxRuntime.jsxs)(_jsxRuntime.Fragment, {
249
202
  children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_ActionList.default, {
250
203
  actionAssigner: actionAssigner,
@@ -298,7 +251,6 @@ var EditableRefdataList = function EditableRefdataList(_ref) {
298
251
  },
299
252
  onConfirm: function onConfirm() {
300
253
  var _deleteModal$refdata3;
301
-
302
254
  deleteRefdataValue(deleteModal === null || deleteModal === void 0 ? void 0 : (_deleteModal$refdata3 = deleteModal.refdata) === null || _deleteModal$refdata3 === void 0 ? void 0 : _deleteModal$refdata3.id);
303
255
  setDeleteModal({
304
256
  visible: false,
@@ -309,7 +261,6 @@ var EditableRefdataList = function EditableRefdataList(_ref) {
309
261
  })]
310
262
  });
311
263
  };
312
-
313
264
  EditableRefdataList.propTypes = propTypes;
314
265
  var _default = EditableRefdataList;
315
266
  exports.default = _default;
@@ -9,7 +9,5 @@ Object.defineProperty(exports, "default", {
9
9
  return _EditableRefdataList.default;
10
10
  }
11
11
  });
12
-
13
12
  var _EditableRefdataList = _interopRequireDefault(require("./EditableRefdataList"));
14
-
15
13
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
@@ -4,28 +4,19 @@ Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
6
  exports.default = void 0;
7
-
8
7
  var _react = _interopRequireDefault(require("react"));
9
-
10
8
  var _propTypes = _interopRequireDefault(require("prop-types"));
11
-
12
9
  var _reactFinalFormArrays = require("react-final-form-arrays");
13
-
14
10
  var _reactFinalForm = require("react-final-form");
15
-
16
11
  var _finalFormArrays = _interopRequireDefault(require("final-form-arrays"));
17
-
18
12
  var _EditableSettingsListFieldArray = _interopRequireDefault(require("./EditableSettingsListFieldArray"));
19
-
20
13
  var _jsxRuntime = require("react/jsx-runtime");
21
-
22
14
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
23
-
24
15
  var EditableSettingsList = function EditableSettingsList(_ref) {
25
16
  var data = _ref.data,
26
- initialValues = _ref.initialValues,
27
- label = _ref.label,
28
- onSave = _ref.onSave;
17
+ initialValues = _ref.initialValues,
18
+ label = _ref.label,
19
+ onSave = _ref.onSave;
29
20
  return /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactFinalForm.Form, {
30
21
  enableReinitialize: true,
31
22
  initialValues: initialValues,
@@ -51,7 +42,6 @@ var EditableSettingsList = function EditableSettingsList(_ref) {
51
42
  }
52
43
  });
53
44
  };
54
-
55
45
  EditableSettingsList.propTypes = {
56
46
  onSave: _propTypes.default.func,
57
47
  data: _propTypes.default.shape({
@@ -4,35 +4,23 @@ Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
6
  exports.default = void 0;
7
-
8
7
  var _react = _interopRequireDefault(require("react"));
9
-
10
8
  var _propTypes = _interopRequireDefault(require("prop-types"));
11
-
12
9
  var _reactFinalForm = require("react-final-form");
13
-
14
10
  var _SettingField = require("./SettingField");
15
-
16
11
  var _jsxRuntime = require("react/jsx-runtime");
17
-
18
12
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
19
-
20
13
  function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
21
-
22
14
  function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
23
-
24
15
  function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
25
-
26
16
  var EditableSettingsListFieldArray = function EditableSettingsListFieldArray(_ref) {
27
17
  var data = _ref.data,
28
- fields = _ref.fields,
29
- onSave = _ref.onSave;
30
-
18
+ fields = _ref.fields,
19
+ onSave = _ref.onSave;
31
20
  var handleSave = function handleSave(index) {
32
21
  var setting = fields.value[index];
33
22
  return onSave(setting);
34
23
  };
35
-
36
24
  return fields.map(function (setting, i) {
37
25
  return /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactFinalForm.Field, {
38
26
  component: _SettingField.SettingField,
@@ -47,7 +35,6 @@ var EditableSettingsListFieldArray = function EditableSettingsListFieldArray(_re
47
35
  }, setting);
48
36
  });
49
37
  };
50
-
51
38
  EditableSettingsListFieldArray.propTypes = {
52
39
  fields: _propTypes.default.object,
53
40
  onSave: _propTypes.default.func,
@@ -1,29 +1,17 @@
1
1
  "use strict";
2
2
 
3
3
  function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); }
4
-
5
4
  var _react = _interopRequireDefault(require("react"));
6
-
7
5
  require("@folio/stripes-erm-components/test/jest/__mock__");
8
-
9
6
  var _helpers = require("@folio/stripes-erm-components/test/jest/helpers");
10
-
11
7
  var _reactFinalFormArrays = require("react-final-form-arrays");
12
-
13
8
  var _EditableSettingsListFieldArray = _interopRequireDefault(require("./EditableSettingsListFieldArray"));
14
-
15
9
  var _helpers2 = require("../../../test/jest/helpers");
16
-
17
10
  var _jsxRuntime = require("react/jsx-runtime");
18
-
19
11
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
20
-
21
- function _regeneratorRuntime() { "use strict"; /*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */ _regeneratorRuntime = function _regeneratorRuntime() { return exports; }; var exports = {}, Op = Object.prototype, hasOwn = Op.hasOwnProperty, $Symbol = "function" == typeof Symbol ? Symbol : {}, iteratorSymbol = $Symbol.iterator || "@@iterator", asyncIteratorSymbol = $Symbol.asyncIterator || "@@asyncIterator", toStringTagSymbol = $Symbol.toStringTag || "@@toStringTag"; function define(obj, key, value) { return Object.defineProperty(obj, key, { value: value, enumerable: !0, configurable: !0, writable: !0 }), obj[key]; } try { define({}, ""); } catch (err) { define = function define(obj, key, value) { return obj[key] = value; }; } function wrap(innerFn, outerFn, self, tryLocsList) { var protoGenerator = outerFn && outerFn.prototype instanceof Generator ? outerFn : Generator, generator = Object.create(protoGenerator.prototype), context = new Context(tryLocsList || []); return generator._invoke = function (innerFn, self, context) { var state = "suspendedStart"; return function (method, arg) { if ("executing" === state) throw new Error("Generator is already running"); if ("completed" === state) { if ("throw" === method) throw arg; return doneResult(); } for (context.method = method, context.arg = arg;;) { var delegate = context.delegate; if (delegate) { var delegateResult = maybeInvokeDelegate(delegate, context); if (delegateResult) { if (delegateResult === ContinueSentinel) continue; return delegateResult; } } if ("next" === context.method) context.sent = context._sent = context.arg;else if ("throw" === context.method) { if ("suspendedStart" === state) throw state = "completed", context.arg; context.dispatchException(context.arg); } else "return" === context.method && context.abrupt("return", context.arg); state = "executing"; var record = tryCatch(innerFn, self, context); if ("normal" === record.type) { if (state = context.done ? "completed" : "suspendedYield", record.arg === ContinueSentinel) continue; return { value: record.arg, done: context.done }; } "throw" === record.type && (state = "completed", context.method = "throw", context.arg = record.arg); } }; }(innerFn, self, context), generator; } function tryCatch(fn, obj, arg) { try { return { type: "normal", arg: fn.call(obj, arg) }; } catch (err) { return { type: "throw", arg: err }; } } exports.wrap = wrap; var ContinueSentinel = {}; function Generator() {} function GeneratorFunction() {} function GeneratorFunctionPrototype() {} var IteratorPrototype = {}; define(IteratorPrototype, iteratorSymbol, function () { return this; }); var getProto = Object.getPrototypeOf, NativeIteratorPrototype = getProto && getProto(getProto(values([]))); NativeIteratorPrototype && NativeIteratorPrototype !== Op && hasOwn.call(NativeIteratorPrototype, iteratorSymbol) && (IteratorPrototype = NativeIteratorPrototype); var Gp = GeneratorFunctionPrototype.prototype = Generator.prototype = Object.create(IteratorPrototype); function defineIteratorMethods(prototype) { ["next", "throw", "return"].forEach(function (method) { define(prototype, method, function (arg) { return this._invoke(method, arg); }); }); } function AsyncIterator(generator, PromiseImpl) { function invoke(method, arg, resolve, reject) { var record = tryCatch(generator[method], generator, arg); if ("throw" !== record.type) { var result = record.arg, value = result.value; return value && "object" == _typeof(value) && hasOwn.call(value, "__await") ? PromiseImpl.resolve(value.__await).then(function (value) { invoke("next", value, resolve, reject); }, function (err) { invoke("throw", err, resolve, reject); }) : PromiseImpl.resolve(value).then(function (unwrapped) { result.value = unwrapped, resolve(result); }, function (error) { return invoke("throw", error, resolve, reject); }); } reject(record.arg); } var previousPromise; this._invoke = function (method, arg) { function callInvokeWithMethodAndArg() { return new PromiseImpl(function (resolve, reject) { invoke(method, arg, resolve, reject); }); } return previousPromise = previousPromise ? previousPromise.then(callInvokeWithMethodAndArg, callInvokeWithMethodAndArg) : callInvokeWithMethodAndArg(); }; } function maybeInvokeDelegate(delegate, context) { var method = delegate.iterator[context.method]; if (undefined === method) { if (context.delegate = null, "throw" === context.method) { if (delegate.iterator.return && (context.method = "return", context.arg = undefined, maybeInvokeDelegate(delegate, context), "throw" === context.method)) return ContinueSentinel; context.method = "throw", context.arg = new TypeError("The iterator does not provide a 'throw' method"); } return ContinueSentinel; } var record = tryCatch(method, delegate.iterator, context.arg); if ("throw" === record.type) return context.method = "throw", context.arg = record.arg, context.delegate = null, ContinueSentinel; var info = record.arg; return info ? info.done ? (context[delegate.resultName] = info.value, context.next = delegate.nextLoc, "return" !== context.method && (context.method = "next", context.arg = undefined), context.delegate = null, ContinueSentinel) : info : (context.method = "throw", context.arg = new TypeError("iterator result is not an object"), context.delegate = null, ContinueSentinel); } function pushTryEntry(locs) { var entry = { tryLoc: locs[0] }; 1 in locs && (entry.catchLoc = locs[1]), 2 in locs && (entry.finallyLoc = locs[2], entry.afterLoc = locs[3]), this.tryEntries.push(entry); } function resetTryEntry(entry) { var record = entry.completion || {}; record.type = "normal", delete record.arg, entry.completion = record; } function Context(tryLocsList) { this.tryEntries = [{ tryLoc: "root" }], tryLocsList.forEach(pushTryEntry, this), this.reset(!0); } function values(iterable) { if (iterable) { var iteratorMethod = iterable[iteratorSymbol]; if (iteratorMethod) return iteratorMethod.call(iterable); if ("function" == typeof iterable.next) return iterable; if (!isNaN(iterable.length)) { var i = -1, next = function next() { for (; ++i < iterable.length;) { if (hasOwn.call(iterable, i)) return next.value = iterable[i], next.done = !1, next; } return next.value = undefined, next.done = !0, next; }; return next.next = next; } } return { next: doneResult }; } function doneResult() { return { value: undefined, done: !0 }; } return GeneratorFunction.prototype = GeneratorFunctionPrototype, define(Gp, "constructor", GeneratorFunctionPrototype), define(GeneratorFunctionPrototype, "constructor", GeneratorFunction), GeneratorFunction.displayName = define(GeneratorFunctionPrototype, toStringTagSymbol, "GeneratorFunction"), exports.isGeneratorFunction = function (genFun) { var ctor = "function" == typeof genFun && genFun.constructor; return !!ctor && (ctor === GeneratorFunction || "GeneratorFunction" === (ctor.displayName || ctor.name)); }, exports.mark = function (genFun) { return Object.setPrototypeOf ? Object.setPrototypeOf(genFun, GeneratorFunctionPrototype) : (genFun.__proto__ = GeneratorFunctionPrototype, define(genFun, toStringTagSymbol, "GeneratorFunction")), genFun.prototype = Object.create(Gp), genFun; }, exports.awrap = function (arg) { return { __await: arg }; }, defineIteratorMethods(AsyncIterator.prototype), define(AsyncIterator.prototype, asyncIteratorSymbol, function () { return this; }), exports.AsyncIterator = AsyncIterator, exports.async = function (innerFn, outerFn, self, tryLocsList, PromiseImpl) { void 0 === PromiseImpl && (PromiseImpl = Promise); var iter = new AsyncIterator(wrap(innerFn, outerFn, self, tryLocsList), PromiseImpl); return exports.isGeneratorFunction(outerFn) ? iter : iter.next().then(function (result) { return result.done ? result.value : iter.next(); }); }, defineIteratorMethods(Gp), define(Gp, toStringTagSymbol, "Generator"), define(Gp, iteratorSymbol, function () { return this; }), define(Gp, "toString", function () { return "[object Generator]"; }), exports.keys = function (object) { var keys = []; for (var key in object) { keys.push(key); } return keys.reverse(), function next() { for (; keys.length;) { var key = keys.pop(); if (key in object) return next.value = key, next.done = !1, next; } return next.done = !0, next; }; }, exports.values = values, Context.prototype = { constructor: Context, reset: function reset(skipTempReset) { if (this.prev = 0, this.next = 0, this.sent = this._sent = undefined, this.done = !1, this.delegate = null, this.method = "next", this.arg = undefined, this.tryEntries.forEach(resetTryEntry), !skipTempReset) for (var name in this) { "t" === name.charAt(0) && hasOwn.call(this, name) && !isNaN(+name.slice(1)) && (this[name] = undefined); } }, stop: function stop() { this.done = !0; var rootRecord = this.tryEntries[0].completion; if ("throw" === rootRecord.type) throw rootRecord.arg; return this.rval; }, dispatchException: function dispatchException(exception) { if (this.done) throw exception; var context = this; function handle(loc, caught) { return record.type = "throw", record.arg = exception, context.next = loc, caught && (context.method = "next", context.arg = undefined), !!caught; } for (var i = this.tryEntries.length - 1; i >= 0; --i) { var entry = this.tryEntries[i], record = entry.completion; if ("root" === entry.tryLoc) return handle("end"); if (entry.tryLoc <= this.prev) { var hasCatch = hasOwn.call(entry, "catchLoc"), hasFinally = hasOwn.call(entry, "finallyLoc"); if (hasCatch && hasFinally) { if (this.prev < entry.catchLoc) return handle(entry.catchLoc, !0); if (this.prev < entry.finallyLoc) return handle(entry.finallyLoc); } else if (hasCatch) { if (this.prev < entry.catchLoc) return handle(entry.catchLoc, !0); } else { if (!hasFinally) throw new Error("try statement without catch or finally"); if (this.prev < entry.finallyLoc) return handle(entry.finallyLoc); } } } }, abrupt: function abrupt(type, arg) { for (var i = this.tryEntries.length - 1; i >= 0; --i) { var entry = this.tryEntries[i]; if (entry.tryLoc <= this.prev && hasOwn.call(entry, "finallyLoc") && this.prev < entry.finallyLoc) { var finallyEntry = entry; break; } } finallyEntry && ("break" === type || "continue" === type) && finallyEntry.tryLoc <= arg && arg <= finallyEntry.finallyLoc && (finallyEntry = null); var record = finallyEntry ? finallyEntry.completion : {}; return record.type = type, record.arg = arg, finallyEntry ? (this.method = "next", this.next = finallyEntry.finallyLoc, ContinueSentinel) : this.complete(record); }, complete: function complete(record, afterLoc) { if ("throw" === record.type) throw record.arg; return "break" === record.type || "continue" === record.type ? this.next = record.arg : "return" === record.type ? (this.rval = this.arg = record.arg, this.method = "return", this.next = "end") : "normal" === record.type && afterLoc && (this.next = afterLoc), ContinueSentinel; }, finish: function finish(finallyLoc) { for (var i = this.tryEntries.length - 1; i >= 0; --i) { var entry = this.tryEntries[i]; if (entry.finallyLoc === finallyLoc) return this.complete(entry.completion, entry.afterLoc), resetTryEntry(entry), ContinueSentinel; } }, catch: function _catch(tryLoc) { for (var i = this.tryEntries.length - 1; i >= 0; --i) { var entry = this.tryEntries[i]; if (entry.tryLoc === tryLoc) { var record = entry.completion; if ("throw" === record.type) { var thrown = record.arg; resetTryEntry(entry); } return thrown; } } throw new Error("illegal catch attempt"); }, delegateYield: function delegateYield(iterable, resultName, nextLoc) { return this.delegate = { iterator: values(iterable), resultName: resultName, nextLoc: nextLoc }, "next" === this.method && (this.arg = undefined), ContinueSentinel; } }, exports; }
22
-
12
+ function _regeneratorRuntime() { "use strict"; /*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */ _regeneratorRuntime = function _regeneratorRuntime() { return exports; }; var exports = {}, Op = Object.prototype, hasOwn = Op.hasOwnProperty, defineProperty = Object.defineProperty || function (obj, key, desc) { obj[key] = desc.value; }, $Symbol = "function" == typeof Symbol ? Symbol : {}, iteratorSymbol = $Symbol.iterator || "@@iterator", asyncIteratorSymbol = $Symbol.asyncIterator || "@@asyncIterator", toStringTagSymbol = $Symbol.toStringTag || "@@toStringTag"; function define(obj, key, value) { return Object.defineProperty(obj, key, { value: value, enumerable: !0, configurable: !0, writable: !0 }), obj[key]; } try { define({}, ""); } catch (err) { define = function define(obj, key, value) { return obj[key] = value; }; } function wrap(innerFn, outerFn, self, tryLocsList) { var protoGenerator = outerFn && outerFn.prototype instanceof Generator ? outerFn : Generator, generator = Object.create(protoGenerator.prototype), context = new Context(tryLocsList || []); return defineProperty(generator, "_invoke", { value: makeInvokeMethod(innerFn, self, context) }), generator; } function tryCatch(fn, obj, arg) { try { return { type: "normal", arg: fn.call(obj, arg) }; } catch (err) { return { type: "throw", arg: err }; } } exports.wrap = wrap; var ContinueSentinel = {}; function Generator() {} function GeneratorFunction() {} function GeneratorFunctionPrototype() {} var IteratorPrototype = {}; define(IteratorPrototype, iteratorSymbol, function () { return this; }); var getProto = Object.getPrototypeOf, NativeIteratorPrototype = getProto && getProto(getProto(values([]))); NativeIteratorPrototype && NativeIteratorPrototype !== Op && hasOwn.call(NativeIteratorPrototype, iteratorSymbol) && (IteratorPrototype = NativeIteratorPrototype); var Gp = GeneratorFunctionPrototype.prototype = Generator.prototype = Object.create(IteratorPrototype); function defineIteratorMethods(prototype) { ["next", "throw", "return"].forEach(function (method) { define(prototype, method, function (arg) { return this._invoke(method, arg); }); }); } function AsyncIterator(generator, PromiseImpl) { function invoke(method, arg, resolve, reject) { var record = tryCatch(generator[method], generator, arg); if ("throw" !== record.type) { var result = record.arg, value = result.value; return value && "object" == _typeof(value) && hasOwn.call(value, "__await") ? PromiseImpl.resolve(value.__await).then(function (value) { invoke("next", value, resolve, reject); }, function (err) { invoke("throw", err, resolve, reject); }) : PromiseImpl.resolve(value).then(function (unwrapped) { result.value = unwrapped, resolve(result); }, function (error) { return invoke("throw", error, resolve, reject); }); } reject(record.arg); } var previousPromise; defineProperty(this, "_invoke", { value: function value(method, arg) { function callInvokeWithMethodAndArg() { return new PromiseImpl(function (resolve, reject) { invoke(method, arg, resolve, reject); }); } return previousPromise = previousPromise ? previousPromise.then(callInvokeWithMethodAndArg, callInvokeWithMethodAndArg) : callInvokeWithMethodAndArg(); } }); } function makeInvokeMethod(innerFn, self, context) { var state = "suspendedStart"; return function (method, arg) { if ("executing" === state) throw new Error("Generator is already running"); if ("completed" === state) { if ("throw" === method) throw arg; return doneResult(); } for (context.method = method, context.arg = arg;;) { var delegate = context.delegate; if (delegate) { var delegateResult = maybeInvokeDelegate(delegate, context); if (delegateResult) { if (delegateResult === ContinueSentinel) continue; return delegateResult; } } if ("next" === context.method) context.sent = context._sent = context.arg;else if ("throw" === context.method) { if ("suspendedStart" === state) throw state = "completed", context.arg; context.dispatchException(context.arg); } else "return" === context.method && context.abrupt("return", context.arg); state = "executing"; var record = tryCatch(innerFn, self, context); if ("normal" === record.type) { if (state = context.done ? "completed" : "suspendedYield", record.arg === ContinueSentinel) continue; return { value: record.arg, done: context.done }; } "throw" === record.type && (state = "completed", context.method = "throw", context.arg = record.arg); } }; } function maybeInvokeDelegate(delegate, context) { var method = delegate.iterator[context.method]; if (undefined === method) { if (context.delegate = null, "throw" === context.method) { if (delegate.iterator.return && (context.method = "return", context.arg = undefined, maybeInvokeDelegate(delegate, context), "throw" === context.method)) return ContinueSentinel; context.method = "throw", context.arg = new TypeError("The iterator does not provide a 'throw' method"); } return ContinueSentinel; } var record = tryCatch(method, delegate.iterator, context.arg); if ("throw" === record.type) return context.method = "throw", context.arg = record.arg, context.delegate = null, ContinueSentinel; var info = record.arg; return info ? info.done ? (context[delegate.resultName] = info.value, context.next = delegate.nextLoc, "return" !== context.method && (context.method = "next", context.arg = undefined), context.delegate = null, ContinueSentinel) : info : (context.method = "throw", context.arg = new TypeError("iterator result is not an object"), context.delegate = null, ContinueSentinel); } function pushTryEntry(locs) { var entry = { tryLoc: locs[0] }; 1 in locs && (entry.catchLoc = locs[1]), 2 in locs && (entry.finallyLoc = locs[2], entry.afterLoc = locs[3]), this.tryEntries.push(entry); } function resetTryEntry(entry) { var record = entry.completion || {}; record.type = "normal", delete record.arg, entry.completion = record; } function Context(tryLocsList) { this.tryEntries = [{ tryLoc: "root" }], tryLocsList.forEach(pushTryEntry, this), this.reset(!0); } function values(iterable) { if (iterable) { var iteratorMethod = iterable[iteratorSymbol]; if (iteratorMethod) return iteratorMethod.call(iterable); if ("function" == typeof iterable.next) return iterable; if (!isNaN(iterable.length)) { var i = -1, next = function next() { for (; ++i < iterable.length;) { if (hasOwn.call(iterable, i)) return next.value = iterable[i], next.done = !1, next; } return next.value = undefined, next.done = !0, next; }; return next.next = next; } } return { next: doneResult }; } function doneResult() { return { value: undefined, done: !0 }; } return GeneratorFunction.prototype = GeneratorFunctionPrototype, defineProperty(Gp, "constructor", { value: GeneratorFunctionPrototype, configurable: !0 }), defineProperty(GeneratorFunctionPrototype, "constructor", { value: GeneratorFunction, configurable: !0 }), GeneratorFunction.displayName = define(GeneratorFunctionPrototype, toStringTagSymbol, "GeneratorFunction"), exports.isGeneratorFunction = function (genFun) { var ctor = "function" == typeof genFun && genFun.constructor; return !!ctor && (ctor === GeneratorFunction || "GeneratorFunction" === (ctor.displayName || ctor.name)); }, exports.mark = function (genFun) { return Object.setPrototypeOf ? Object.setPrototypeOf(genFun, GeneratorFunctionPrototype) : (genFun.__proto__ = GeneratorFunctionPrototype, define(genFun, toStringTagSymbol, "GeneratorFunction")), genFun.prototype = Object.create(Gp), genFun; }, exports.awrap = function (arg) { return { __await: arg }; }, defineIteratorMethods(AsyncIterator.prototype), define(AsyncIterator.prototype, asyncIteratorSymbol, function () { return this; }), exports.AsyncIterator = AsyncIterator, exports.async = function (innerFn, outerFn, self, tryLocsList, PromiseImpl) { void 0 === PromiseImpl && (PromiseImpl = Promise); var iter = new AsyncIterator(wrap(innerFn, outerFn, self, tryLocsList), PromiseImpl); return exports.isGeneratorFunction(outerFn) ? iter : iter.next().then(function (result) { return result.done ? result.value : iter.next(); }); }, defineIteratorMethods(Gp), define(Gp, toStringTagSymbol, "Generator"), define(Gp, iteratorSymbol, function () { return this; }), define(Gp, "toString", function () { return "[object Generator]"; }), exports.keys = function (val) { var object = Object(val), keys = []; for (var key in object) { keys.push(key); } return keys.reverse(), function next() { for (; keys.length;) { var key = keys.pop(); if (key in object) return next.value = key, next.done = !1, next; } return next.done = !0, next; }; }, exports.values = values, Context.prototype = { constructor: Context, reset: function reset(skipTempReset) { if (this.prev = 0, this.next = 0, this.sent = this._sent = undefined, this.done = !1, this.delegate = null, this.method = "next", this.arg = undefined, this.tryEntries.forEach(resetTryEntry), !skipTempReset) for (var name in this) { "t" === name.charAt(0) && hasOwn.call(this, name) && !isNaN(+name.slice(1)) && (this[name] = undefined); } }, stop: function stop() { this.done = !0; var rootRecord = this.tryEntries[0].completion; if ("throw" === rootRecord.type) throw rootRecord.arg; return this.rval; }, dispatchException: function dispatchException(exception) { if (this.done) throw exception; var context = this; function handle(loc, caught) { return record.type = "throw", record.arg = exception, context.next = loc, caught && (context.method = "next", context.arg = undefined), !!caught; } for (var i = this.tryEntries.length - 1; i >= 0; --i) { var entry = this.tryEntries[i], record = entry.completion; if ("root" === entry.tryLoc) return handle("end"); if (entry.tryLoc <= this.prev) { var hasCatch = hasOwn.call(entry, "catchLoc"), hasFinally = hasOwn.call(entry, "finallyLoc"); if (hasCatch && hasFinally) { if (this.prev < entry.catchLoc) return handle(entry.catchLoc, !0); if (this.prev < entry.finallyLoc) return handle(entry.finallyLoc); } else if (hasCatch) { if (this.prev < entry.catchLoc) return handle(entry.catchLoc, !0); } else { if (!hasFinally) throw new Error("try statement without catch or finally"); if (this.prev < entry.finallyLoc) return handle(entry.finallyLoc); } } } }, abrupt: function abrupt(type, arg) { for (var i = this.tryEntries.length - 1; i >= 0; --i) { var entry = this.tryEntries[i]; if (entry.tryLoc <= this.prev && hasOwn.call(entry, "finallyLoc") && this.prev < entry.finallyLoc) { var finallyEntry = entry; break; } } finallyEntry && ("break" === type || "continue" === type) && finallyEntry.tryLoc <= arg && arg <= finallyEntry.finallyLoc && (finallyEntry = null); var record = finallyEntry ? finallyEntry.completion : {}; return record.type = type, record.arg = arg, finallyEntry ? (this.method = "next", this.next = finallyEntry.finallyLoc, ContinueSentinel) : this.complete(record); }, complete: function complete(record, afterLoc) { if ("throw" === record.type) throw record.arg; return "break" === record.type || "continue" === record.type ? this.next = record.arg : "return" === record.type ? (this.rval = this.arg = record.arg, this.method = "return", this.next = "end") : "normal" === record.type && afterLoc && (this.next = afterLoc), ContinueSentinel; }, finish: function finish(finallyLoc) { for (var i = this.tryEntries.length - 1; i >= 0; --i) { var entry = this.tryEntries[i]; if (entry.finallyLoc === finallyLoc) return this.complete(entry.completion, entry.afterLoc), resetTryEntry(entry), ContinueSentinel; } }, catch: function _catch(tryLoc) { for (var i = this.tryEntries.length - 1; i >= 0; --i) { var entry = this.tryEntries[i]; if (entry.tryLoc === tryLoc) { var record = entry.completion; if ("throw" === record.type) { var thrown = record.arg; resetTryEntry(entry); } return thrown; } } throw new Error("illegal catch attempt"); }, delegateYield: function delegateYield(iterable, resultName, nextLoc) { return this.delegate = { iterator: values(iterable), resultName: resultName, nextLoc: nextLoc }, "next" === this.method && (this.arg = undefined), ContinueSentinel; } }, exports; }
23
13
  function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) { try { var info = gen[key](arg); var value = info.value; } catch (error) { reject(error); return; } if (info.done) { resolve(value); } else { Promise.resolve(value).then(_next, _throw); } }
24
-
25
14
  function _asyncToGenerator(fn) { return function () { var self = this, args = arguments; return new Promise(function (resolve, reject) { var gen = fn.apply(self, args); function _next(value) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, "next", value); } function _throw(err) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, "throw", err); } _next(undefined); }); }; }
26
-
27
15
  var onSubmit = jest.fn();
28
16
  jest.mock('./SettingField', function () {
29
17
  return {
@@ -77,7 +65,6 @@ describe('EditableSettingsListFieldArray', function () {
77
65
  name: "settings"
78
66
  })
79
67
  }));
80
-
81
68
  case 1:
82
69
  case "end":
83
70
  return _context.stop();
@@ -87,7 +74,7 @@ describe('EditableSettingsListFieldArray', function () {
87
74
  })));
88
75
  it('renders empty field', function () {
89
76
  var _renderComponent = renderComponent,
90
- queryAllByTestId = _renderComponent.queryAllByTestId;
77
+ queryAllByTestId = _renderComponent.queryAllByTestId;
91
78
  expect(queryAllByTestId(/editableSettingsListFieldArray\[.*\]/).length).toEqual(0);
92
79
  });
93
80
  });
@@ -108,7 +95,6 @@ describe('EditableSettingsListFieldArray', function () {
108
95
  name: "settings"
109
96
  })
110
97
  }));
111
-
112
98
  case 1:
113
99
  case "end":
114
100
  return _context2.stop();
@@ -118,7 +104,7 @@ describe('EditableSettingsListFieldArray', function () {
118
104
  })));
119
105
  it('renders the SettingField component', function () {
120
106
  var _renderComponent2 = renderComponent,
121
- getByText = _renderComponent2.getByText;
107
+ getByText = _renderComponent2.getByText;
122
108
  expect(getByText('SettingField')).toBeInTheDocument();
123
109
  });
124
110
  });
@@ -139,7 +125,6 @@ describe('EditableSettingsListFieldArray', function () {
139
125
  name: "settings"
140
126
  })
141
127
  }));
142
-
143
128
  case 1:
144
129
  case "end":
145
130
  return _context3.stop();
@@ -149,7 +134,7 @@ describe('EditableSettingsListFieldArray', function () {
149
134
  })));
150
135
  it('renders the correct number of SettingField components', function () {
151
136
  var _renderComponent3 = renderComponent,
152
- getAllByText = _renderComponent3.getAllByText;
137
+ getAllByText = _renderComponent3.getAllByText;
153
138
  expect(getAllByText('SettingField').length).toEqual(multipleSettings.length);
154
139
  });
155
140
  });