@k-int/stripes-kint-components 4.5.1 → 4.6.1

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 (342) hide show
  1. package/CHANGELOG.md +11 -1
  2. package/README.md +14 -0
  3. package/es/__mocks__/@folio/stripes/components.js +10 -21
  4. package/es/__mocks__/@folio/stripes/core.js +4 -7
  5. package/es/__mocks__/@folio/stripes/smart-components.js +4 -7
  6. package/es/__mocks__/react-query.js +4 -7
  7. package/es/__mocks__/react-router-dom.js +6 -7
  8. package/es/artifacts/coverage-jest/lcov-report/prettify.js +2 -2
  9. package/es/artifacts/coverage-jest/lcov-report/sorter.js +6 -6
  10. package/es/index.js +62 -49
  11. package/es/lib/ActionList/ActionList.js +38 -51
  12. package/es/lib/ActionList/ActionListFieldArray.js +143 -167
  13. package/es/lib/ActionList/index.js +1 -1
  14. package/es/lib/CustomProperties/Config/CustomPropertiesLookup.js +57 -77
  15. package/es/lib/CustomProperties/Config/CustomPropertiesLookup.test.js +15 -19
  16. package/es/lib/CustomProperties/Config/CustomPropertiesSettings.js +111 -160
  17. package/es/lib/CustomProperties/Config/CustomPropertiesSettings.test.js +30 -67
  18. package/es/lib/CustomProperties/Config/CustomPropertyForm.js +36 -48
  19. package/es/lib/CustomProperties/Config/CustomPropertyForm.test.js +83 -121
  20. package/es/lib/CustomProperties/Config/CustomPropertyView.js +9 -8
  21. package/es/lib/CustomProperties/Config/CustomPropertyView.test.js +48 -135
  22. package/es/lib/CustomProperties/Config/index.js +4 -4
  23. package/es/lib/CustomProperties/Edit/CustomPropertiesEdit.js +19 -21
  24. package/es/lib/CustomProperties/Edit/CustomPropertiesEdit.test.js +11 -16
  25. package/es/lib/CustomProperties/Edit/CustomPropertiesEditCtx.js +29 -27
  26. package/es/lib/CustomProperties/Edit/CustomPropertiesEditCtx.test.js +11 -16
  27. package/es/lib/CustomProperties/Edit/CustomPropertiesListField.js +86 -103
  28. package/es/lib/CustomProperties/Edit/CustomPropertiesListField.test.js +26 -63
  29. package/es/lib/CustomProperties/Edit/CustomPropertyField.js +123 -115
  30. package/es/lib/CustomProperties/Edit/CustomPropertyField.test.js +95 -176
  31. package/es/lib/CustomProperties/Edit/CustomPropertyFormCard.js +43 -44
  32. package/es/lib/CustomProperties/Edit/CustomPropertyFormCard.test.js +23 -27
  33. package/es/lib/CustomProperties/Edit/index.js +5 -5
  34. package/es/lib/CustomProperties/Edit/testResources.js +13 -35
  35. package/es/lib/CustomProperties/Filter/CustomPropertiesFilter.js +60 -81
  36. package/es/lib/CustomProperties/Filter/CustomPropertiesFilter.test.js +23 -57
  37. package/es/lib/CustomProperties/Filter/CustomPropertiesFilterField.js +39 -54
  38. package/es/lib/CustomProperties/Filter/CustomPropertiesFilterField.test.js +17 -16
  39. package/es/lib/CustomProperties/Filter/CustomPropertiesFilterFieldArray.js +27 -23
  40. package/es/lib/CustomProperties/Filter/CustomPropertiesFilterFieldArray.test.js +18 -45
  41. package/es/lib/CustomProperties/Filter/CustomPropertiesFilterForm.js +18 -20
  42. package/es/lib/CustomProperties/Filter/CustomPropertiesFilterForm.test.js +23 -52
  43. package/es/lib/CustomProperties/Filter/CustomPropertiesRule.js +37 -41
  44. package/es/lib/CustomProperties/Filter/CustomPropertiesRule.test.js +77 -225
  45. package/es/lib/CustomProperties/Filter/index.js +6 -6
  46. package/es/lib/CustomProperties/Filter/testResources.js +12 -32
  47. package/es/lib/CustomProperties/Filter/useOperators.js +17 -16
  48. package/es/lib/CustomProperties/Filter/useParseActiveFilterStrings.js +17 -30
  49. package/es/lib/CustomProperties/Filter/useValueProps.js +22 -27
  50. package/es/lib/CustomProperties/View/CustomPropertiesView.js +19 -21
  51. package/es/lib/CustomProperties/View/CustomPropertiesView.test.js +11 -16
  52. package/es/lib/CustomProperties/View/CustomPropertiesViewCtx.js +49 -57
  53. package/es/lib/CustomProperties/View/CustomPropertiesViewCtx.test.js +14 -23
  54. package/es/lib/CustomProperties/View/CustomPropertyCard.js +17 -18
  55. package/es/lib/CustomProperties/View/index.js +3 -3
  56. package/es/lib/CustomProperties/View/testResources.js +4 -4
  57. package/es/lib/CustomProperties/index.js +18 -18
  58. package/es/lib/CycleButton/CycleButton.js +17 -32
  59. package/es/lib/CycleButton/index.js +1 -1
  60. package/es/lib/EditableRefdataCategoryList/EditableRefdataCategoryList.js +108 -150
  61. package/es/lib/EditableRefdataCategoryList/index.js +1 -1
  62. package/es/lib/EditableRefdataList/EditableRefdataList.js +127 -170
  63. package/es/lib/EditableRefdataList/index.js +1 -1
  64. package/es/lib/EditableSettingsList/EditableSettingsList.js +16 -13
  65. package/es/lib/EditableSettingsList/EditableSettingsListFieldArray.js +18 -25
  66. package/es/lib/EditableSettingsList/EditableSettingsListFieldArray.test.js +61 -90
  67. package/es/lib/EditableSettingsList/SettingField/EditSettingValue.js +21 -34
  68. package/es/lib/EditableSettingsList/SettingField/EditSettingValue.test.js +99 -83
  69. package/es/lib/EditableSettingsList/SettingField/RenderSettingValue.js +17 -19
  70. package/es/lib/EditableSettingsList/SettingField/RenderSettingValue.test.js +187 -275
  71. package/es/lib/EditableSettingsList/SettingField/SettingField.js +74 -109
  72. package/es/lib/EditableSettingsList/SettingField/SettingField.test.js +52 -157
  73. package/es/lib/EditableSettingsList/SettingField/index.js +3 -3
  74. package/es/lib/EditableSettingsList/index.js +3 -3
  75. package/es/lib/FormModal/FormModal.js +43 -46
  76. package/es/lib/FormModal/index.js +1 -1
  77. package/es/lib/FormattedKintMessage/FormattedKintMessage.js +23 -27
  78. package/es/lib/FormattedKintMessage/index.js +1 -1
  79. package/es/lib/IconSelect/IconSelect.js +48 -68
  80. package/es/lib/IconSelect/index.js +1 -1
  81. package/es/lib/NoResultsMessage/NoResultsMessage.js +18 -17
  82. package/es/lib/NoResultsMessage/index.js +1 -1
  83. package/es/lib/QueryTypedown/QueryTypedown.js +17 -38
  84. package/es/lib/QueryTypedown/index.js +1 -1
  85. package/es/lib/RefdataButtons/RefdataButtons.js +26 -29
  86. package/es/lib/RefdataButtons/index.js +1 -1
  87. package/es/lib/ResponsiveButtonGroup/ResponsiveButtonGroup.js +83 -88
  88. package/es/lib/ResponsiveButtonGroup/index.js +1 -1
  89. package/es/lib/ResponsiveButtonGroup/useResponsiveButtonGroupSizing.js +27 -40
  90. package/es/lib/RichSelect/RichSelect.js +70 -86
  91. package/es/lib/RichSelect/index.js +2 -2
  92. package/es/lib/RichSelect/useSelectedOption.js +3 -12
  93. package/es/lib/SASQLookupComponent/SASQLookupComponent.js +115 -137
  94. package/es/lib/SASQLookupComponent/TableBody/TableBody.js +39 -45
  95. package/es/lib/SASQLookupComponent/TableBody/index.js +1 -1
  96. package/es/lib/SASQLookupComponent/index.js +2 -2
  97. package/es/lib/SASQRoute/SASQRoute.js +31 -37
  98. package/es/lib/SASQRoute/index.js +1 -1
  99. package/es/lib/SASQViewComponent/SASQViewComponent.js +38 -45
  100. package/es/lib/SASQViewComponent/index.js +1 -1
  101. package/es/lib/SearchField/SearchField.js +10 -16
  102. package/es/lib/SearchField/index.js +1 -1
  103. package/es/lib/SettingPage/SettingPage.js +21 -20
  104. package/es/lib/SettingPage/SettingPagePane.js +8 -6
  105. package/es/lib/SettingPage/index.js +2 -2
  106. package/es/lib/SettingsFormContainer/SettingsFormContainer.js +112 -0
  107. package/es/lib/SettingsFormContainer/index.js +13 -0
  108. package/es/lib/Typedown/Typedown.js +61 -79
  109. package/es/lib/Typedown/index.js +1 -1
  110. package/es/lib/constants/customProperties.js +11 -11
  111. package/es/lib/constants/endpoints.js +9 -0
  112. package/es/lib/constants/eventCodes.js +3 -3
  113. package/es/lib/contexts/SettingsContext.js +1 -1
  114. package/es/lib/contexts/index.js +1 -1
  115. package/es/lib/hooks/__mocks__/index.js +9 -29
  116. package/es/lib/hooks/index.js +31 -17
  117. package/es/lib/hooks/typedownHooks/index.js +3 -3
  118. package/es/lib/hooks/typedownHooks/useTypedown.js +48 -48
  119. package/es/lib/hooks/typedownHooks/useTypedownData.js +11 -21
  120. package/es/lib/hooks/typedownHooks/useTypedownToggle.js +12 -20
  121. package/es/lib/hooks/useActiveElement.js +8 -17
  122. package/es/lib/hooks/useCustomProperties.js +22 -30
  123. package/es/lib/hooks/useHelperApp.js +30 -49
  124. package/es/lib/hooks/useIntlKey.js +3 -5
  125. package/es/lib/hooks/useIntlKeyStore.js +44 -49
  126. package/es/lib/hooks/useInvalidateRefdata.js +3 -5
  127. package/es/lib/hooks/useKintIntl.js +28 -31
  128. package/es/lib/hooks/useKiwtFieldArray.js +34 -45
  129. package/es/lib/hooks/useKiwtSASQuery.js +38 -48
  130. package/es/lib/hooks/useLocalStorageState.js +6 -18
  131. package/es/lib/hooks/useModConfigEntries.js +49 -0
  132. package/es/lib/hooks/useMutateCustomProperties.js +19 -62
  133. package/es/lib/hooks/useMutateModConfigEntry.js +40 -0
  134. package/es/lib/hooks/useMutateRefdataCategory.js +19 -60
  135. package/es/lib/hooks/useMutateRefdataValue.js +28 -65
  136. package/es/lib/hooks/useQIndex.js +12 -26
  137. package/es/lib/hooks/useRefdata.js +17 -19
  138. package/es/lib/hooks/useSASQQueryMeta.js +13 -20
  139. package/es/lib/hooks/useTemplates.js +13 -12
  140. package/es/lib/settingsHooks/index.js +3 -3
  141. package/es/lib/settingsHooks/useAppSettings.js +18 -25
  142. package/es/lib/settingsHooks/useSettingSection.js +16 -17
  143. package/es/lib/settingsHooks/useSettings.js +58 -72
  144. package/es/lib/utils/buildUrl.js +5 -5
  145. package/es/lib/utils/generateKiwtQuery.js +3 -3
  146. package/es/lib/utils/generateKiwtQueryParams.js +85 -93
  147. package/es/lib/utils/groupCustomPropertiesByCtx.js +8 -18
  148. package/es/lib/utils/highlightString.js +17 -37
  149. package/es/lib/utils/index.js +29 -15
  150. package/es/lib/utils/matchString.js +4 -8
  151. package/es/lib/utils/modConfigEntriesQueryKey.js +24 -0
  152. package/es/lib/utils/parseErrorResponse.js +22 -63
  153. package/es/lib/utils/parseKiwtQueryGroups.js +10 -10
  154. package/es/lib/utils/parseKiwtQueryGroups.test.js +15 -15
  155. package/es/lib/utils/parseModConfigEntry.js +21 -0
  156. package/es/lib/utils/refdataQueryKey.js +2 -2
  157. package/es/lib/utils/selectorSafe.js +3 -3
  158. package/es/lib/utils/sortByLabel.js +3 -3
  159. package/es/lib/utils/toCamelCase.js +7 -12
  160. package/es/lib/utils/typedownQueryKey.js +2 -2
  161. package/es/lib/validators/index.js +1 -1
  162. package/es/lib/validators/validators.js +22 -29
  163. package/junit.xml +239 -1489
  164. package/package.json +1 -1
  165. package/src/artifacts/coverage-jest/lcov-report/ActionList/ActionList.js.html +11 -11
  166. package/src/artifacts/coverage-jest/lcov-report/ActionList/ActionListFieldArray.js.html +21 -21
  167. package/src/artifacts/coverage-jest/lcov-report/ActionList/index.html +17 -17
  168. package/src/artifacts/coverage-jest/lcov-report/ActionList/index.js.html +1 -1
  169. package/src/artifacts/coverage-jest/lcov-report/CustomProperties/Config/CustomPropertiesLookup.js.html +44 -44
  170. package/src/artifacts/coverage-jest/lcov-report/CustomProperties/Config/CustomPropertiesSettings.js.html +53 -53
  171. package/src/artifacts/coverage-jest/lcov-report/CustomProperties/Config/CustomPropertyForm.js.html +59 -59
  172. package/src/artifacts/coverage-jest/lcov-report/CustomProperties/Config/CustomPropertyView.js.html +29 -29
  173. package/src/artifacts/coverage-jest/lcov-report/CustomProperties/Config/index.html +53 -53
  174. package/src/artifacts/coverage-jest/lcov-report/CustomProperties/Config/index.js.html +1 -1
  175. package/src/artifacts/coverage-jest/lcov-report/CustomProperties/Edit/CustomPropertiesEdit.js.html +19 -19
  176. package/src/artifacts/coverage-jest/lcov-report/CustomProperties/Edit/CustomPropertiesEditCtx.js.html +28 -28
  177. package/src/artifacts/coverage-jest/lcov-report/CustomProperties/Edit/CustomPropertiesListField.js.html +94 -94
  178. package/src/artifacts/coverage-jest/lcov-report/CustomProperties/Edit/CustomPropertyField.js.html +118 -118
  179. package/src/artifacts/coverage-jest/lcov-report/CustomProperties/Edit/CustomPropertyFormCard.js.html +28 -28
  180. package/src/artifacts/coverage-jest/lcov-report/CustomProperties/Edit/index.html +64 -64
  181. package/src/artifacts/coverage-jest/lcov-report/CustomProperties/Edit/index.js.html +1 -1
  182. package/src/artifacts/coverage-jest/lcov-report/CustomProperties/Edit/testResources.js.html +1 -1
  183. package/src/artifacts/coverage-jest/lcov-report/CustomProperties/Filter/CustomPropertiesFilter.js.html +33 -33
  184. package/src/artifacts/coverage-jest/lcov-report/CustomProperties/Filter/CustomPropertiesFilterField.js.html +47 -47
  185. package/src/artifacts/coverage-jest/lcov-report/CustomProperties/Filter/CustomPropertiesFilterFieldArray.js.html +22 -22
  186. package/src/artifacts/coverage-jest/lcov-report/CustomProperties/Filter/CustomPropertiesFilterForm.js.html +19 -19
  187. package/src/artifacts/coverage-jest/lcov-report/CustomProperties/Filter/CustomPropertiesRule.js.html +42 -42
  188. package/src/artifacts/coverage-jest/lcov-report/CustomProperties/Filter/index.html +96 -96
  189. package/src/artifacts/coverage-jest/lcov-report/CustomProperties/Filter/index.js.html +1 -1
  190. package/src/artifacts/coverage-jest/lcov-report/CustomProperties/Filter/testResources.js.html +5 -5
  191. package/src/artifacts/coverage-jest/lcov-report/CustomProperties/Filter/useOperators.js.html +35 -35
  192. package/src/artifacts/coverage-jest/lcov-report/CustomProperties/Filter/useParseActiveFilterStrings.js.html +38 -38
  193. package/src/artifacts/coverage-jest/lcov-report/CustomProperties/Filter/useValueProps.js.html +34 -34
  194. package/src/artifacts/coverage-jest/lcov-report/CustomProperties/View/CustomPropertiesView.js.html +16 -16
  195. package/src/artifacts/coverage-jest/lcov-report/CustomProperties/View/CustomPropertiesViewCtx.js.html +45 -45
  196. package/src/artifacts/coverage-jest/lcov-report/CustomProperties/View/CustomPropertyCard.js.html +9 -9
  197. package/src/artifacts/coverage-jest/lcov-report/CustomProperties/View/index.html +36 -36
  198. package/src/artifacts/coverage-jest/lcov-report/CustomProperties/View/index.js.html +1 -1
  199. package/src/artifacts/coverage-jest/lcov-report/CustomProperties/View/testResources.js.html +1 -1
  200. package/src/artifacts/coverage-jest/lcov-report/CustomProperties/index.html +1 -1
  201. package/src/artifacts/coverage-jest/lcov-report/CustomProperties/index.js.html +1 -1
  202. package/src/artifacts/coverage-jest/lcov-report/CycleButton/CycleButton.js.html +9 -9
  203. package/src/artifacts/coverage-jest/lcov-report/CycleButton/index.html +11 -11
  204. package/src/artifacts/coverage-jest/lcov-report/CycleButton/index.js.html +1 -1
  205. package/src/artifacts/coverage-jest/lcov-report/EditableRefdataCategoryList/EditableRefdataCategoryList.js.html +11 -11
  206. package/src/artifacts/coverage-jest/lcov-report/EditableRefdataCategoryList/index.html +11 -11
  207. package/src/artifacts/coverage-jest/lcov-report/EditableRefdataCategoryList/index.js.html +1 -1
  208. package/src/artifacts/coverage-jest/lcov-report/EditableRefdataList/EditableRefdataList.js.html +11 -11
  209. package/src/artifacts/coverage-jest/lcov-report/EditableRefdataList/index.html +11 -11
  210. package/src/artifacts/coverage-jest/lcov-report/EditableRefdataList/index.js.html +1 -1
  211. package/src/artifacts/coverage-jest/lcov-report/EditableSettingsList/EditableSettingsList.js.html +10 -10
  212. package/src/artifacts/coverage-jest/lcov-report/EditableSettingsList/EditableSettingsListFieldArray.js.html +22 -22
  213. package/src/artifacts/coverage-jest/lcov-report/EditableSettingsList/SettingField/EditSettingValue.js.html +39 -39
  214. package/src/artifacts/coverage-jest/lcov-report/EditableSettingsList/SettingField/RenderSettingValue.js.html +64 -64
  215. package/src/artifacts/coverage-jest/lcov-report/EditableSettingsList/SettingField/SettingField.js.html +64 -64
  216. package/src/artifacts/coverage-jest/lcov-report/EditableSettingsList/SettingField/index.html +43 -43
  217. package/src/artifacts/coverage-jest/lcov-report/EditableSettingsList/SettingField/index.js.html +1 -1
  218. package/src/artifacts/coverage-jest/lcov-report/EditableSettingsList/index.html +28 -28
  219. package/src/artifacts/coverage-jest/lcov-report/EditableSettingsList/index.js.html +1 -1
  220. package/src/artifacts/coverage-jest/lcov-report/FormModal/FormModal.js.html +32 -32
  221. package/src/artifacts/coverage-jest/lcov-report/FormModal/index.html +21 -21
  222. package/src/artifacts/coverage-jest/lcov-report/FormModal/index.js.html +1 -1
  223. package/src/artifacts/coverage-jest/lcov-report/FormattedKintMessage/FormattedKintMessage.js.html +3 -3
  224. package/src/artifacts/coverage-jest/lcov-report/FormattedKintMessage/index.html +1 -1
  225. package/src/artifacts/coverage-jest/lcov-report/FormattedKintMessage/index.js.html +1 -1
  226. package/src/artifacts/coverage-jest/lcov-report/IconSelect/IconSelect.js.html +9 -9
  227. package/src/artifacts/coverage-jest/lcov-report/IconSelect/index.html +11 -11
  228. package/src/artifacts/coverage-jest/lcov-report/IconSelect/index.js.html +1 -1
  229. package/src/artifacts/coverage-jest/lcov-report/NoResultsMessage/NoResultsMessage.js.html +9 -9
  230. package/src/artifacts/coverage-jest/lcov-report/NoResultsMessage/index.html +11 -11
  231. package/src/artifacts/coverage-jest/lcov-report/NoResultsMessage/index.js.html +1 -1
  232. package/src/artifacts/coverage-jest/lcov-report/QueryTypedown/QueryTypedown.js.html +9 -9
  233. package/src/artifacts/coverage-jest/lcov-report/QueryTypedown/index.html +11 -11
  234. package/src/artifacts/coverage-jest/lcov-report/QueryTypedown/index.js.html +1 -1
  235. package/src/artifacts/coverage-jest/lcov-report/RefdataButtons/RefdataButtons.js.html +54 -54
  236. package/src/artifacts/coverage-jest/lcov-report/RefdataButtons/index.html +21 -21
  237. package/src/artifacts/coverage-jest/lcov-report/RefdataButtons/index.js.html +1 -1
  238. package/src/artifacts/coverage-jest/lcov-report/ResponsiveButtonGroup/ResponsiveButtonGroup.js.html +15 -15
  239. package/src/artifacts/coverage-jest/lcov-report/ResponsiveButtonGroup/index.html +17 -17
  240. package/src/artifacts/coverage-jest/lcov-report/ResponsiveButtonGroup/index.js.html +1 -1
  241. package/src/artifacts/coverage-jest/lcov-report/ResponsiveButtonGroup/useResponsiveButtonGroupSizing.js.html +7 -7
  242. package/src/artifacts/coverage-jest/lcov-report/RichSelect/RichSelect.js.html +9 -9
  243. package/src/artifacts/coverage-jest/lcov-report/RichSelect/index.html +17 -17
  244. package/src/artifacts/coverage-jest/lcov-report/RichSelect/index.js.html +1 -1
  245. package/src/artifacts/coverage-jest/lcov-report/RichSelect/useSelectedOption.js.html +7 -7
  246. package/src/artifacts/coverage-jest/lcov-report/SASQLookupComponent/SASQLookupComponent.js.html +9 -9
  247. package/src/artifacts/coverage-jest/lcov-report/SASQLookupComponent/TableBody/TableBody.js.html +9 -9
  248. package/src/artifacts/coverage-jest/lcov-report/SASQLookupComponent/TableBody/index.html +11 -11
  249. package/src/artifacts/coverage-jest/lcov-report/SASQLookupComponent/TableBody/index.js.html +1 -1
  250. package/src/artifacts/coverage-jest/lcov-report/SASQLookupComponent/index.html +11 -11
  251. package/src/artifacts/coverage-jest/lcov-report/SASQLookupComponent/index.js.html +1 -1
  252. package/src/artifacts/coverage-jest/lcov-report/SASQRoute/SASQRoute.js.html +9 -9
  253. package/src/artifacts/coverage-jest/lcov-report/SASQRoute/index.html +11 -11
  254. package/src/artifacts/coverage-jest/lcov-report/SASQRoute/index.js.html +1 -1
  255. package/src/artifacts/coverage-jest/lcov-report/SASQViewComponent/SASQViewComponent.js.html +9 -9
  256. package/src/artifacts/coverage-jest/lcov-report/SASQViewComponent/index.html +11 -11
  257. package/src/artifacts/coverage-jest/lcov-report/SASQViewComponent/index.js.html +1 -1
  258. package/src/artifacts/coverage-jest/lcov-report/SearchField/SearchField.js.html +12 -12
  259. package/src/artifacts/coverage-jest/lcov-report/SearchField/index.html +13 -13
  260. package/src/artifacts/coverage-jest/lcov-report/SearchField/index.js.html +1 -1
  261. package/src/artifacts/coverage-jest/lcov-report/SettingPage/SettingPage.js.html +9 -9
  262. package/src/artifacts/coverage-jest/lcov-report/SettingPage/SettingPagePane.js.html +10 -10
  263. package/src/artifacts/coverage-jest/lcov-report/SettingPage/index.html +18 -18
  264. package/src/artifacts/coverage-jest/lcov-report/SettingPage/index.js.html +1 -1
  265. package/src/artifacts/coverage-jest/lcov-report/SettingsFormContainer/SettingsFormContainer.js.html +337 -0
  266. package/src/artifacts/coverage-jest/lcov-report/SettingsFormContainer/index.html +131 -0
  267. package/src/artifacts/coverage-jest/lcov-report/SettingsFormContainer/index.js.html +88 -0
  268. package/src/artifacts/coverage-jest/lcov-report/Typedown/Typedown.js.html +9 -9
  269. package/src/artifacts/coverage-jest/lcov-report/Typedown/index.html +11 -11
  270. package/src/artifacts/coverage-jest/lcov-report/Typedown/index.js.html +1 -1
  271. package/src/artifacts/coverage-jest/lcov-report/constants/customProperties.js.html +12 -12
  272. package/src/artifacts/coverage-jest/lcov-report/constants/endpoints.js.html +91 -0
  273. package/src/artifacts/coverage-jest/lcov-report/constants/eventCodes.js.html +12 -12
  274. package/src/artifacts/coverage-jest/lcov-report/constants/index.html +28 -13
  275. package/src/artifacts/coverage-jest/lcov-report/contexts/SettingsContext.js.html +2 -2
  276. package/src/artifacts/coverage-jest/lcov-report/contexts/index.html +1 -1
  277. package/src/artifacts/coverage-jest/lcov-report/contexts/index.js.html +1 -1
  278. package/src/artifacts/coverage-jest/lcov-report/hooks/index.html +153 -123
  279. package/src/artifacts/coverage-jest/lcov-report/hooks/index.js.html +8 -2
  280. package/src/artifacts/coverage-jest/lcov-report/hooks/typedownHooks/index.html +23 -23
  281. package/src/artifacts/coverage-jest/lcov-report/hooks/typedownHooks/index.js.html +1 -1
  282. package/src/artifacts/coverage-jest/lcov-report/hooks/typedownHooks/useTypedown.js.html +7 -7
  283. package/src/artifacts/coverage-jest/lcov-report/hooks/typedownHooks/useTypedownData.js.html +7 -7
  284. package/src/artifacts/coverage-jest/lcov-report/hooks/typedownHooks/useTypedownToggle.js.html +7 -7
  285. package/src/artifacts/coverage-jest/lcov-report/hooks/useActiveElement.js.html +7 -7
  286. package/src/artifacts/coverage-jest/lcov-report/hooks/useCustomProperties.js.html +9 -9
  287. package/src/artifacts/coverage-jest/lcov-report/hooks/useHelperApp.js.html +9 -9
  288. package/src/artifacts/coverage-jest/lcov-report/hooks/useIntlKey.js.html +24 -24
  289. package/src/artifacts/coverage-jest/lcov-report/hooks/useIntlKeyStore.js.html +21 -21
  290. package/src/artifacts/coverage-jest/lcov-report/hooks/useInvalidateRefdata.js.html +7 -7
  291. package/src/artifacts/coverage-jest/lcov-report/hooks/useKintIntl.js.html +38 -38
  292. package/src/artifacts/coverage-jest/lcov-report/hooks/useKiwtFieldArray.js.html +7 -7
  293. package/src/artifacts/coverage-jest/lcov-report/hooks/useKiwtSASQuery.js.html +9 -9
  294. package/src/artifacts/coverage-jest/lcov-report/hooks/useLocalStorageState.js.html +7 -7
  295. package/src/artifacts/coverage-jest/lcov-report/hooks/useModConfigEntries.js.html +226 -0
  296. package/src/artifacts/coverage-jest/lcov-report/hooks/useMutateCustomProperties.js.html +7 -7
  297. package/src/artifacts/coverage-jest/lcov-report/hooks/useMutateModConfigEntry.js.html +238 -0
  298. package/src/artifacts/coverage-jest/lcov-report/hooks/useMutateRefdataCategory.js.html +7 -7
  299. package/src/artifacts/coverage-jest/lcov-report/hooks/useMutateRefdataValue.js.html +7 -7
  300. package/src/artifacts/coverage-jest/lcov-report/hooks/useQIndex.js.html +7 -7
  301. package/src/artifacts/coverage-jest/lcov-report/hooks/useRefdata.js.html +9 -9
  302. package/src/artifacts/coverage-jest/lcov-report/hooks/useSASQQueryMeta.js.html +7 -7
  303. package/src/artifacts/coverage-jest/lcov-report/hooks/useTemplates.js.html +7 -7
  304. package/src/artifacts/coverage-jest/lcov-report/index.html +257 -242
  305. package/src/artifacts/coverage-jest/lcov-report/settingsHooks/index.html +23 -23
  306. package/src/artifacts/coverage-jest/lcov-report/settingsHooks/index.js.html +1 -1
  307. package/src/artifacts/coverage-jest/lcov-report/settingsHooks/useAppSettings.js.html +7 -7
  308. package/src/artifacts/coverage-jest/lcov-report/settingsHooks/useSettingSection.js.html +7 -7
  309. package/src/artifacts/coverage-jest/lcov-report/settingsHooks/useSettings.js.html +7 -7
  310. package/src/artifacts/coverage-jest/lcov-report/utils/buildUrl.js.html +1 -1
  311. package/src/artifacts/coverage-jest/lcov-report/utils/generateKiwtQuery.js.html +2 -2
  312. package/src/artifacts/coverage-jest/lcov-report/utils/generateKiwtQueryParams.js.html +4 -4
  313. package/src/artifacts/coverage-jest/lcov-report/utils/groupCustomPropertiesByCtx.js.html +22 -22
  314. package/src/artifacts/coverage-jest/lcov-report/utils/highlightString.js.html +3 -3
  315. package/src/artifacts/coverage-jest/lcov-report/utils/index.html +61 -31
  316. package/src/artifacts/coverage-jest/lcov-report/utils/index.js.html +11 -2
  317. package/src/artifacts/coverage-jest/lcov-report/utils/matchString.js.html +2 -2
  318. package/src/artifacts/coverage-jest/lcov-report/utils/modConfigEntriesQueryKey.js.html +142 -0
  319. package/src/artifacts/coverage-jest/lcov-report/utils/parseErrorResponse.js.html +2 -2
  320. package/src/artifacts/coverage-jest/lcov-report/utils/parseKiwtQueryGroups.js.html +2 -2
  321. package/src/artifacts/coverage-jest/lcov-report/utils/parseModConfigEntry.js.html +130 -0
  322. package/src/artifacts/coverage-jest/lcov-report/utils/refdataOptions.js.html +1 -1
  323. package/src/artifacts/coverage-jest/lcov-report/utils/refdataQueryKey.js.html +2 -2
  324. package/src/artifacts/coverage-jest/lcov-report/utils/selectorSafe.js.html +2 -2
  325. package/src/artifacts/coverage-jest/lcov-report/utils/sortByLabel.js.html +2 -2
  326. package/src/artifacts/coverage-jest/lcov-report/utils/toCamelCase.js.html +16 -16
  327. package/src/artifacts/coverage-jest/lcov-report/utils/typedownQueryKey.js.html +2 -2
  328. package/src/artifacts/coverage-jest/lcov-report/validators/index.html +19 -19
  329. package/src/artifacts/coverage-jest/lcov-report/validators/index.js.html +1 -1
  330. package/src/artifacts/coverage-jest/lcov-report/validators/validators.js.html +32 -32
  331. package/src/artifacts/coverage-jest/lcov.info +1225 -1067
  332. package/src/index.js +6 -0
  333. package/src/lib/SettingsFormContainer/SettingsFormContainer.js +108 -0
  334. package/src/lib/SettingsFormContainer/index.js +1 -0
  335. package/src/lib/constants/endpoints.js +2 -0
  336. package/src/lib/hooks/index.js +2 -0
  337. package/src/lib/hooks/useModConfigEntries.js +47 -0
  338. package/src/lib/hooks/useMutateModConfigEntry.js +51 -0
  339. package/src/lib/utils/index.js +3 -0
  340. package/src/lib/utils/modConfigEntriesQueryKey.js +19 -0
  341. package/src/lib/utils/parseModConfigEntry.js +15 -0
  342. package/test/jest/helpers/KintHarness.js +21 -4
package/CHANGELOG.md CHANGED
@@ -1,5 +1,15 @@
1
- ## 4.5.1 2023-03-21
1
+ ## 4.6.1 2023-04-14
2
+ * Added success callout to SettingsFormContainer
3
+
4
+ ## 4.6.0 2023-04-14
2
5
  * ERM-2884 Regex with lookbehind causes render failure in Safari
6
+ * Deprecated customPropertyContants typo. For now accessible both at customPropertyContants and customPropertyConstants, will be removed in future version.
7
+ * endpoints -- new constants available from kint-components
8
+ * useModConfigEntries -- new hook to link up to mod-config
9
+ * useMutateModConfigEntries -- hook to mutate same resources as above
10
+ * modConfigEntriesueryKey -- utility function to get a hold of the query key used internally
11
+ * Test tweaks so they should run externally from workspace (After release of @folio/stripes-erm-testing 1.2.0)
12
+
3
13
 
4
14
  ## 4.5.0 2023-03-16
5
15
  * ERM-2879 FOLIO > Agreement App > Supplementary properties is showing the value of 'Visibility' as 'Public' regardless of selection
package/README.md CHANGED
@@ -30,3 +30,17 @@ The gitlab repository for this project can be found [here](https://gitlab.com/kn
30
30
  - [Components](https://gitlab.com/knowledge-integration/folio/stripes-kint-components/-/tree/main/src/lib)
31
31
  - [Hooks](https://gitlab.com/knowledge-integration/folio/stripes-kint-components/-/tree/main/src/lib/hooks)
32
32
  - [Utility functions](https://gitlab.com/knowledge-integration/folio/stripes-kint-components/-/tree/main/src/lib/utils)
33
+
34
+ ## Release Matrix
35
+ Please note, the "Flower releases" does not indicate final compatibility. In theory, as a built 3rd party artifact, v1 of kint-components should still actually work with an otherwise Orchid (say) frontend.
36
+
37
+ However as a developer using kint-components locally, the compatibility will differ.
38
+
39
+ If the compatibility chart below states compatible with a certain flower release and that is not found, check copies of `@folio/stripes`, `@folio/stripes-core` in the workspace with `yarn why`. It is possible that kint-components 2.8.6, say, is compatible with ^6.0.0 of stripes-erm-components (6.0.0 -> Kiwi), which pulls in 6.2.2 on build (6.2.2 -> Morning Glory) and that that difference causes an issue on build locally which would not be present in any production system, and can be worked around by locking the troublesome dependency to the correct one for the release at hand locally.
40
+
41
+ Release major | Latest release | Flower releases present in (ERM) | Flower compatibility
42
+ --- | --- | --- | --- |
43
+ v1 | 1.7.0 | Lotus | Kiwi - Morning Glory |
44
+ v2 | 2.8.6 | Morning Glory | Kiwi - Morning Glory |
45
+ v3 | 3.2.3 | Nolana | Morning Glory - Nolana |
46
+ v4 | 4.5.1 | Orchid | Morning Glory - Orchid+ |
@@ -2,25 +2,14 @@
2
2
 
3
3
  var _mocks = require("@folio/stripes-erm-testing/jest/mocks");
4
4
  var _jsxRuntime = require("react/jsx-runtime");
5
- 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); }
6
- 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; }
7
- 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; }
8
- function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
9
- function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return _typeof(key) === "symbol" ? key : String(key); }
10
- function _toPrimitive(input, hint) { if (_typeof(input) !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (_typeof(res) !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); }
11
- jest.mock('@folio/stripes-components/lib/Icon', function () {
12
- return _mocks.mockStripesIcon;
13
- });
14
- module.exports = _objectSpread(_objectSpread({}, jest.requireActual('@folio/stripes/components')), {}, {
5
+ jest.mock('@folio/stripes-components/lib/Icon', () => _mocks.mockStripesIcon);
6
+ module.exports = {
7
+ ...jest.requireActual('@folio/stripes/components'),
15
8
  Icon: _mocks.mockStripesIcon,
16
- LoadingView: function LoadingView() {
17
- return /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
18
- children: "LoadingView"
19
- });
20
- },
21
- LoadingPane: function LoadingPane() {
22
- return /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
23
- children: "LoadingPane"
24
- });
25
- }
26
- });
9
+ LoadingView: () => /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
10
+ children: "LoadingView"
11
+ }),
12
+ LoadingPane: () => /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
13
+ children: "LoadingPane"
14
+ })
15
+ };
@@ -1,10 +1,7 @@
1
1
  "use strict";
2
2
 
3
3
  var _mocks = require("@folio/stripes-erm-testing/jest/mocks");
4
- 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); }
5
- 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; }
6
- 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; }
7
- function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
8
- function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return _typeof(key) === "symbol" ? key : String(key); }
9
- function _toPrimitive(input, hint) { if (_typeof(input) !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (_typeof(res) !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); }
10
- module.exports = _objectSpread(_objectSpread({}, jest.requireActual('@folio/stripes-core')), _mocks.mockStripesCore);
4
+ module.exports = {
5
+ ...jest.requireActual('@folio/stripes-core'),
6
+ ..._mocks.mockStripesCore
7
+ };
@@ -1,10 +1,7 @@
1
1
  "use strict";
2
2
 
3
3
  var _mocks = require("@folio/stripes-erm-testing/jest/mocks");
4
- 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); }
5
- 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; }
6
- 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; }
7
- function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
8
- function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return _typeof(key) === "symbol" ? key : String(key); }
9
- function _toPrimitive(input, hint) { if (_typeof(input) !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (_typeof(res) !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); }
10
- module.exports = _objectSpread(_objectSpread({}, jest.requireActual('@folio/stripes/smart-components')), _mocks.mockStripesSmartComponents);
4
+ module.exports = {
5
+ ...jest.requireActual('@folio/stripes/smart-components'),
6
+ ..._mocks.mockStripesSmartComponents
7
+ };
@@ -1,10 +1,7 @@
1
1
  "use strict";
2
2
 
3
3
  var _mocks = require("@folio/stripes-erm-testing/jest/mocks");
4
- 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); }
5
- 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; }
6
- 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; }
7
- function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
8
- function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return _typeof(key) === "symbol" ? key : String(key); }
9
- function _toPrimitive(input, hint) { if (_typeof(input) !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (_typeof(res) !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); }
10
- module.exports = _objectSpread(_objectSpread({}, jest.requireActual('react-query')), _mocks.mockReactQuery);
4
+ module.exports = {
5
+ ...jest.requireActual('react-query'),
6
+ ..._mocks.mockReactQuery
7
+ };
@@ -1,10 +1,9 @@
1
1
  "use strict";
2
2
 
3
3
  var _mocks = require("@folio/stripes-erm-testing/jest/mocks");
4
- 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); }
5
- 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; }
6
- 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; }
7
- function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
8
- function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return _typeof(key) === "symbol" ? key : String(key); }
9
- function _toPrimitive(input, hint) { if (_typeof(input) !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (_typeof(res) !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); }
10
- module.exports = _objectSpread(_objectSpread({}, jest.requireActual('react-router-dom')), _mocks.mockReactRouterDom);
4
+ // FIXME currently since erm-testing exports TestForm using stripes-components, we have an issue
5
+
6
+ module.exports = {
7
+ ...jest.requireActual('react-router-dom'),
8
+ ..._mocks.mockReactRouterDom
9
+ };
@@ -317,7 +317,7 @@ window.PR_SHOULD_USE_CONTINUATION = true;
317
317
  V = k(ah);
318
318
  })();
319
319
  var X = T.length;
320
- var W = function W(ah) {
320
+ var W = function (ah) {
321
321
  var Z = ah.sourceCode,
322
322
  Y = ah.basePos;
323
323
  var ad = [Y, F];
@@ -732,7 +732,7 @@ window.PR_SHOULD_USE_CONTINUATION = true;
732
732
  var W = Date;
733
733
  if (!W.now) {
734
734
  W = {
735
- now: function now() {
735
+ now: function () {
736
736
  return +new Date();
737
737
  }
738
738
  };
@@ -27,10 +27,10 @@ var addSorting = function () {
27
27
  return getTableHeader().querySelectorAll('th')[n];
28
28
  }
29
29
  function onFilterInput() {
30
- var searchValue = document.getElementById('fileSearch').value;
31
- var rows = document.getElementsByTagName('tbody')[0].children;
32
- for (var i = 0; i < rows.length; i++) {
33
- var row = rows[i];
30
+ const searchValue = document.getElementById('fileSearch').value;
31
+ const rows = document.getElementsByTagName('tbody')[0].children;
32
+ for (let i = 0; i < rows.length; i++) {
33
+ const row = rows[i];
34
34
  if (row.textContent.toLowerCase().includes(searchValue.toLowerCase())) {
35
35
  row.style.display = '';
36
36
  } else {
@@ -100,7 +100,7 @@ var addSorting = function () {
100
100
  // sorts the table using the data for the ith column
101
101
  function sortByIndex(index, desc) {
102
102
  var key = cols[index].key,
103
- sorter = function sorter(a, b) {
103
+ sorter = function (a, b) {
104
104
  a = a.data[key];
105
105
  b = b.data[key];
106
106
  return a < b ? -1 : a > b ? 1 : 0;
@@ -111,7 +111,7 @@ var addSorting = function () {
111
111
  rows = [],
112
112
  i;
113
113
  if (desc) {
114
- finalSorter = function finalSorter(a, b) {
114
+ finalSorter = function (a, b) {
115
115
  return -1 * sorter(a, b);
116
116
  };
117
117
  }
package/es/index.js CHANGED
@@ -1,6 +1,5 @@
1
1
  "use strict";
2
2
 
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
3
  Object.defineProperty(exports, "__esModule", {
5
4
  value: true
6
5
  });
@@ -40,251 +39,260 @@ var _exportNames = {
40
39
  useOperators: true,
41
40
  useParseActiveFilterStrings: true,
42
41
  customPropertyContants: true,
42
+ customPropertyConstants: true,
43
+ endpoints: true,
43
44
  CycleButton: true,
44
45
  IconSelect: true,
45
46
  RichSelect: true,
46
47
  useSelectedOption: true,
47
48
  FormattedKintMessage: true,
48
- ResponsiveButtonGroup: true
49
+ ResponsiveButtonGroup: true,
50
+ SettingsFormContainer: true
49
51
  };
50
52
  Object.defineProperty(exports, "ActionList", {
51
53
  enumerable: true,
52
- get: function get() {
54
+ get: function () {
53
55
  return _ActionList.default;
54
56
  }
55
57
  });
56
58
  Object.defineProperty(exports, "CustomPropertiesEdit", {
57
59
  enumerable: true,
58
- get: function get() {
60
+ get: function () {
59
61
  return _CustomProperties.CustomPropertiesEdit;
60
62
  }
61
63
  });
62
64
  Object.defineProperty(exports, "CustomPropertiesEditCtx", {
63
65
  enumerable: true,
64
- get: function get() {
66
+ get: function () {
65
67
  return _CustomProperties.CustomPropertiesEditCtx;
66
68
  }
67
69
  });
68
70
  Object.defineProperty(exports, "CustomPropertiesFilter", {
69
71
  enumerable: true,
70
- get: function get() {
72
+ get: function () {
71
73
  return _CustomProperties.CustomPropertiesFilter;
72
74
  }
73
75
  });
74
76
  Object.defineProperty(exports, "CustomPropertiesFilterField", {
75
77
  enumerable: true,
76
- get: function get() {
78
+ get: function () {
77
79
  return _CustomProperties.CustomPropertiesFilterField;
78
80
  }
79
81
  });
80
82
  Object.defineProperty(exports, "CustomPropertiesFilterFieldArray", {
81
83
  enumerable: true,
82
- get: function get() {
84
+ get: function () {
83
85
  return _CustomProperties.CustomPropertiesFilterFieldArray;
84
86
  }
85
87
  });
86
88
  Object.defineProperty(exports, "CustomPropertiesFilterForm", {
87
89
  enumerable: true,
88
- get: function get() {
90
+ get: function () {
89
91
  return _CustomProperties.CustomPropertiesFilterForm;
90
92
  }
91
93
  });
92
94
  Object.defineProperty(exports, "CustomPropertiesListField", {
93
95
  enumerable: true,
94
- get: function get() {
96
+ get: function () {
95
97
  return _CustomProperties.CustomPropertiesListField;
96
98
  }
97
99
  });
98
100
  Object.defineProperty(exports, "CustomPropertiesLookup", {
99
101
  enumerable: true,
100
- get: function get() {
102
+ get: function () {
101
103
  return _CustomProperties.CustomPropertiesLookup;
102
104
  }
103
105
  });
104
106
  Object.defineProperty(exports, "CustomPropertiesSettings", {
105
107
  enumerable: true,
106
- get: function get() {
108
+ get: function () {
107
109
  return _CustomProperties.CustomPropertiesSettings;
108
110
  }
109
111
  });
110
112
  Object.defineProperty(exports, "CustomPropertiesView", {
111
113
  enumerable: true,
112
- get: function get() {
114
+ get: function () {
113
115
  return _CustomProperties.CustomPropertiesView;
114
116
  }
115
117
  });
116
118
  Object.defineProperty(exports, "CustomPropertiesViewCtx", {
117
119
  enumerable: true,
118
- get: function get() {
120
+ get: function () {
119
121
  return _CustomProperties.CustomPropertiesViewCtx;
120
122
  }
121
123
  });
122
124
  Object.defineProperty(exports, "CustomPropertyCard", {
123
125
  enumerable: true,
124
- get: function get() {
126
+ get: function () {
125
127
  return _CustomProperties.CustomPropertyCard;
126
128
  }
127
129
  });
128
130
  Object.defineProperty(exports, "CustomPropertyField", {
129
131
  enumerable: true,
130
- get: function get() {
132
+ get: function () {
131
133
  return _CustomProperties.CustomPropertyField;
132
134
  }
133
135
  });
134
136
  Object.defineProperty(exports, "CustomPropertyForm", {
135
137
  enumerable: true,
136
- get: function get() {
138
+ get: function () {
137
139
  return _CustomProperties.CustomPropertyForm;
138
140
  }
139
141
  });
140
142
  Object.defineProperty(exports, "CustomPropertyFormCard", {
141
143
  enumerable: true,
142
- get: function get() {
144
+ get: function () {
143
145
  return _CustomProperties.CustomPropertyFormCard;
144
146
  }
145
147
  });
146
148
  Object.defineProperty(exports, "CustomPropertyView", {
147
149
  enumerable: true,
148
- get: function get() {
150
+ get: function () {
149
151
  return _CustomProperties.CustomPropertyView;
150
152
  }
151
153
  });
152
154
  Object.defineProperty(exports, "CycleButton", {
153
155
  enumerable: true,
154
- get: function get() {
156
+ get: function () {
155
157
  return _CycleButton.default;
156
158
  }
157
159
  });
158
160
  Object.defineProperty(exports, "EditableRefdataCategoryList", {
159
161
  enumerable: true,
160
- get: function get() {
162
+ get: function () {
161
163
  return _EditableRefdataCategoryList.default;
162
164
  }
163
165
  });
164
166
  Object.defineProperty(exports, "EditableRefdataList", {
165
167
  enumerable: true,
166
- get: function get() {
168
+ get: function () {
167
169
  return _EditableRefdataList.default;
168
170
  }
169
171
  });
170
172
  Object.defineProperty(exports, "FormModal", {
171
173
  enumerable: true,
172
- get: function get() {
174
+ get: function () {
173
175
  return _FormModal.default;
174
176
  }
175
177
  });
176
178
  Object.defineProperty(exports, "FormattedKintMessage", {
177
179
  enumerable: true,
178
- get: function get() {
180
+ get: function () {
179
181
  return _FormattedKintMessage.default;
180
182
  }
181
183
  });
182
184
  Object.defineProperty(exports, "IconSelect", {
183
185
  enumerable: true,
184
- get: function get() {
186
+ get: function () {
185
187
  return _IconSelect.default;
186
188
  }
187
189
  });
188
190
  Object.defineProperty(exports, "NoResultsMessage", {
189
191
  enumerable: true,
190
- get: function get() {
192
+ get: function () {
191
193
  return _NoResultsMessage.default;
192
194
  }
193
195
  });
194
196
  Object.defineProperty(exports, "QueryTypedown", {
195
197
  enumerable: true,
196
- get: function get() {
198
+ get: function () {
197
199
  return _QueryTypedown.default;
198
200
  }
199
201
  });
200
202
  Object.defineProperty(exports, "RefdataButtons", {
201
203
  enumerable: true,
202
- get: function get() {
204
+ get: function () {
203
205
  return _RefdataButtons.default;
204
206
  }
205
207
  });
206
208
  Object.defineProperty(exports, "ResponsiveButtonGroup", {
207
209
  enumerable: true,
208
- get: function get() {
210
+ get: function () {
209
211
  return _ResponsiveButtonGroup.default;
210
212
  }
211
213
  });
212
214
  Object.defineProperty(exports, "RichSelect", {
213
215
  enumerable: true,
214
- get: function get() {
216
+ get: function () {
215
217
  return _RichSelect.default;
216
218
  }
217
219
  });
218
220
  Object.defineProperty(exports, "SASQLookupComponent", {
219
221
  enumerable: true,
220
- get: function get() {
222
+ get: function () {
221
223
  return _SASQLookupComponent.SASQLookupComponent;
222
224
  }
223
225
  });
224
226
  Object.defineProperty(exports, "SASQRoute", {
225
227
  enumerable: true,
226
- get: function get() {
228
+ get: function () {
227
229
  return _SASQRoute.default;
228
230
  }
229
231
  });
230
232
  Object.defineProperty(exports, "SASQTableBody", {
231
233
  enumerable: true,
232
- get: function get() {
234
+ get: function () {
233
235
  return _SASQLookupComponent.TableBody;
234
236
  }
235
237
  });
236
238
  Object.defineProperty(exports, "SASQViewComponent", {
237
239
  enumerable: true,
238
- get: function get() {
240
+ get: function () {
239
241
  return _SASQViewComponent.default;
240
242
  }
241
243
  });
242
244
  Object.defineProperty(exports, "SearchField", {
243
245
  enumerable: true,
244
- get: function get() {
246
+ get: function () {
245
247
  return _SearchField.default;
246
248
  }
247
249
  });
248
250
  Object.defineProperty(exports, "SettingPage", {
249
251
  enumerable: true,
250
- get: function get() {
252
+ get: function () {
251
253
  return _SettingPage.SettingPage;
252
254
  }
253
255
  });
254
256
  Object.defineProperty(exports, "SettingPagePane", {
255
257
  enumerable: true,
256
- get: function get() {
258
+ get: function () {
257
259
  return _SettingPage.SettingPagePane;
258
260
  }
259
261
  });
260
262
  Object.defineProperty(exports, "SettingsContext", {
261
263
  enumerable: true,
262
- get: function get() {
264
+ get: function () {
263
265
  return _contexts.SettingsContext;
264
266
  }
265
267
  });
268
+ Object.defineProperty(exports, "SettingsFormContainer", {
269
+ enumerable: true,
270
+ get: function () {
271
+ return _SettingsFormContainer.default;
272
+ }
273
+ });
266
274
  Object.defineProperty(exports, "Typedown", {
267
275
  enumerable: true,
268
- get: function get() {
276
+ get: function () {
269
277
  return _Typedown.default;
270
278
  }
271
279
  });
272
- exports.customPropertyContants = void 0;
280
+ exports.endpoints = exports.customPropertyContants = exports.customPropertyConstants = void 0;
273
281
  Object.defineProperty(exports, "useOperators", {
274
282
  enumerable: true,
275
- get: function get() {
283
+ get: function () {
276
284
  return _CustomProperties.useOperators;
277
285
  }
278
286
  });
279
287
  Object.defineProperty(exports, "useParseActiveFilterStrings", {
280
288
  enumerable: true,
281
- get: function get() {
289
+ get: function () {
282
290
  return _CustomProperties.useParseActiveFilterStrings;
283
291
  }
284
292
  });
285
293
  Object.defineProperty(exports, "useSelectedOption", {
286
294
  enumerable: true,
287
- get: function get() {
295
+ get: function () {
288
296
  return _RichSelect.useSelectedOption;
289
297
  }
290
298
  });
@@ -295,7 +303,7 @@ Object.keys(_hooks).forEach(function (key) {
295
303
  if (key in exports && exports[key] === _hooks[key]) return;
296
304
  Object.defineProperty(exports, key, {
297
305
  enumerable: true,
298
- get: function get() {
306
+ get: function () {
299
307
  return _hooks[key];
300
308
  }
301
309
  });
@@ -307,7 +315,7 @@ Object.keys(_settingsHooks).forEach(function (key) {
307
315
  if (key in exports && exports[key] === _settingsHooks[key]) return;
308
316
  Object.defineProperty(exports, key, {
309
317
  enumerable: true,
310
- get: function get() {
318
+ get: function () {
311
319
  return _settingsHooks[key];
312
320
  }
313
321
  });
@@ -319,7 +327,7 @@ Object.keys(_utils).forEach(function (key) {
319
327
  if (key in exports && exports[key] === _utils[key]) return;
320
328
  Object.defineProperty(exports, key, {
321
329
  enumerable: true,
322
- get: function get() {
330
+ get: function () {
323
331
  return _utils[key];
324
332
  }
325
333
  });
@@ -331,7 +339,7 @@ Object.keys(_validators).forEach(function (key) {
331
339
  if (key in exports && exports[key] === _validators[key]) return;
332
340
  Object.defineProperty(exports, key, {
333
341
  enumerable: true,
334
- get: function get() {
342
+ get: function () {
335
343
  return _validators[key];
336
344
  }
337
345
  });
@@ -352,12 +360,17 @@ var _RefdataButtons = _interopRequireDefault(require("./lib/RefdataButtons"));
352
360
  var _FormModal = _interopRequireDefault(require("./lib/FormModal"));
353
361
  var _CustomProperties = require("./lib/CustomProperties");
354
362
  var _customPropertyContants = _interopRequireWildcard(require("./lib/constants/customProperties"));
363
+ var _customPropertyConstants = _customPropertyContants;
355
364
  exports.customPropertyContants = _customPropertyContants;
365
+ exports.customPropertyConstants = _customPropertyContants;
366
+ var _endpoints = _interopRequireWildcard(require("./lib/constants/endpoints"));
367
+ exports.endpoints = _endpoints;
356
368
  var _CycleButton = _interopRequireDefault(require("./lib/CycleButton"));
357
369
  var _IconSelect = _interopRequireDefault(require("./lib/IconSelect"));
358
370
  var _RichSelect = _interopRequireWildcard(require("./lib/RichSelect"));
359
371
  var _FormattedKintMessage = _interopRequireDefault(require("./lib/FormattedKintMessage"));
360
372
  var _ResponsiveButtonGroup = _interopRequireDefault(require("./lib/ResponsiveButtonGroup"));
361
- 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); }
362
- 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; }
373
+ var _SettingsFormContainer = _interopRequireDefault(require("./lib/SettingsFormContainer"));
374
+ function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function (nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
375
+ 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; }
363
376
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }