@k-int/stripes-kint-components 2.2.0 → 2.3.2

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 (274) hide show
  1. package/CHANGELOG.md +29 -0
  2. package/es/index.js +125 -9
  3. package/es/lib/ActionList/ActionList.js +8 -33
  4. package/es/lib/ActionList/ActionListFieldArray.js +50 -49
  5. package/es/lib/ActionList/index.js +1 -5
  6. package/es/lib/CustomProperties/Config/CustomPropertiesLookup.js +1 -35
  7. package/es/lib/CustomProperties/Config/CustomPropertiesSettings.js +3 -39
  8. package/es/lib/CustomProperties/Config/CustomPropertyForm.js +1 -34
  9. package/es/lib/CustomProperties/Config/{CustomPropertiesView.js → CustomPropertyView.js} +4 -33
  10. package/es/lib/CustomProperties/Config/index.js +7 -9
  11. package/es/lib/CustomProperties/Edit/CustomPropertiesEdit.js +43 -0
  12. package/es/lib/CustomProperties/Edit/CustomPropertiesEditCtx.js +100 -0
  13. package/es/lib/CustomProperties/Edit/CustomPropertiesListField.js +243 -0
  14. package/es/lib/CustomProperties/Edit/CustomPropertyField.js +337 -0
  15. package/es/lib/CustomProperties/Edit/CustomPropertyFormCard.js +127 -0
  16. package/es/lib/CustomProperties/Edit/index.js +47 -0
  17. package/es/lib/CustomProperties/Filter/CustomPropertiesFilter.js +183 -0
  18. package/es/lib/CustomProperties/Filter/CustomPropertiesFilterField.js +204 -0
  19. package/es/lib/CustomProperties/Filter/CustomPropertiesFilterFieldArray.js +126 -0
  20. package/es/lib/CustomProperties/Filter/CustomPropertiesFilterForm.js +90 -0
  21. package/es/lib/CustomProperties/Filter/CustomPropertiesRule.js +139 -0
  22. package/es/lib/CustomProperties/Filter/index.js +55 -0
  23. package/es/lib/CustomProperties/Filter/useOperators.js +100 -0
  24. package/es/lib/CustomProperties/Filter/useParseActiveFilterStrings.js +64 -0
  25. package/es/lib/CustomProperties/Filter/useValueProps.js +67 -0
  26. package/es/lib/CustomProperties/View/CustomPropertiesView.js +44 -0
  27. package/es/lib/CustomProperties/View/CustomPropertiesViewCtx.js +155 -0
  28. package/es/lib/CustomProperties/View/CustomPropertyCard.js +175 -0
  29. package/es/lib/CustomProperties/View/index.js +31 -0
  30. package/es/lib/CustomProperties/index.js +121 -0
  31. package/es/lib/EditableRefdataList/EditableRefdataList.js +13 -51
  32. package/es/lib/EditableRefdataList/index.js +1 -5
  33. package/es/lib/EditableSettingsList/EditableSettingsList.js +1 -30
  34. package/es/lib/EditableSettingsList/EditableSettingsListFieldArray.js +1 -30
  35. package/es/lib/EditableSettingsList/EditableSettingsListFieldArray.test.js +1 -30
  36. package/es/lib/EditableSettingsList/SettingField/EditSettingValue.js +1 -34
  37. package/es/lib/EditableSettingsList/SettingField/EditSettingValue.test.js +1 -34
  38. package/es/lib/EditableSettingsList/SettingField/RenderSettingValue.js +1 -34
  39. package/es/lib/EditableSettingsList/SettingField/RenderSettingValue.test.js +1 -41
  40. package/es/lib/EditableSettingsList/SettingField/SettingField.js +1 -34
  41. package/es/lib/EditableSettingsList/SettingField/SettingField.test.js +1 -30
  42. package/es/lib/EditableSettingsList/SettingField/index.js +1 -5
  43. package/es/lib/EditableSettingsList/index.js +1 -5
  44. package/es/lib/FormModal/FormModal.js +21 -34
  45. package/es/lib/FormModal/index.js +1 -5
  46. package/es/lib/NoResultsMessage/NoResultsMessage.js +1 -30
  47. package/es/lib/NoResultsMessage/index.js +1 -5
  48. package/es/lib/QueryTypedown/QueryTypedown.js +9 -37
  49. package/es/lib/QueryTypedown/index.js +1 -5
  50. package/es/lib/RefdataButtons/RefdataButtons.js +1 -34
  51. package/es/lib/RefdataButtons/index.js +1 -5
  52. package/es/lib/SASQLookupComponent/SASQLookupComponent.js +1 -34
  53. package/es/lib/SASQLookupComponent/index.js +1 -5
  54. package/es/lib/SASQRoute/SASQRoute.js +1 -30
  55. package/es/lib/SASQRoute/index.js +1 -5
  56. package/es/lib/SASQViewComponent/SASQViewComponent.js +1 -34
  57. package/es/lib/SASQViewComponent/index.js +1 -5
  58. package/es/lib/SearchField/SearchField.js +1 -31
  59. package/es/lib/SearchField/index.js +1 -5
  60. package/es/lib/SettingPage/SettingPage.js +1 -34
  61. package/es/lib/SettingPage/SettingPagePane.js +1 -32
  62. package/es/lib/SettingPage/index.js +1 -5
  63. package/es/lib/Typedown/Typedown.js +1 -34
  64. package/es/lib/Typedown/index.js +1 -5
  65. package/es/lib/constants/customProperties.js +3 -37
  66. package/es/lib/constants/eventCodes.js +1 -31
  67. package/es/lib/contexts/SettingsContext.js +1 -30
  68. package/es/lib/contexts/index.js +1 -5
  69. package/es/lib/hooks/index.js +16 -4
  70. package/es/lib/hooks/settingsHooks/index.js +1 -5
  71. package/es/lib/hooks/settingsHooks/useSettingSection.js +1 -34
  72. package/es/lib/hooks/settingsHooks/useSettings.js +1 -36
  73. package/es/lib/hooks/typedownHooks/index.js +1 -5
  74. package/es/lib/hooks/typedownHooks/useTypedown.js +1 -34
  75. package/es/lib/hooks/typedownHooks/useTypedownData.js +9 -35
  76. package/es/lib/hooks/typedownHooks/useTypedownToggle.js +1 -34
  77. package/es/lib/hooks/useActiveElement.js +1 -32
  78. package/es/lib/hooks/useAvailableCustomProperties.js +73 -0
  79. package/es/lib/hooks/useCustomProperties.js +1 -34
  80. package/es/lib/hooks/useHelperApp.js +1 -34
  81. package/es/lib/hooks/useInvalidateRefdata.js +20 -0
  82. package/es/lib/hooks/useKiwtFieldArray.js +1 -34
  83. package/es/lib/hooks/useKiwtSASQuery.js +1 -35
  84. package/es/lib/hooks/useLocalStorageState.js +1 -34
  85. package/es/lib/hooks/useMutateCustomProperties.js +1 -34
  86. package/es/lib/hooks/useMutateRefdataValue.js +10 -38
  87. package/es/lib/hooks/useQIndex.js +1 -34
  88. package/es/lib/hooks/useRefdata.js +2 -37
  89. package/es/lib/hooks/useTemplates.js +1 -34
  90. package/es/lib/utils/buildUrl.js +2 -31
  91. package/es/lib/utils/generateKiwtQuery.js +1 -30
  92. package/es/lib/utils/generateKiwtQueryParams.js +1 -30
  93. package/es/lib/utils/groupCustomPropertiesByCtx.js +41 -0
  94. package/es/lib/utils/index.js +25 -5
  95. package/es/lib/utils/refdataOptions.js +1 -30
  96. package/es/lib/utils/refdataQueryKey.js +19 -0
  97. package/es/lib/utils/renderHelpText.js +1 -30
  98. package/es/lib/utils/selectorSafe.js +1 -30
  99. package/es/lib/utils/sortByLabel.js +1 -30
  100. package/es/lib/utils/toCamelCase.js +1 -30
  101. package/es/lib/utils/typedownQueryKey.js +19 -0
  102. package/es/lib/utils/validators.js +59 -31
  103. package/git_translate.sh +8 -0
  104. package/package.json +1 -1
  105. package/src/index.js +27 -3
  106. package/src/lib/ActionList/ActionList.js +5 -2
  107. package/src/lib/ActionList/ActionListFieldArray.js +31 -9
  108. package/src/lib/ActionList/README.md +23 -20
  109. package/src/lib/CustomProperties/Config/CustomPropertiesSettings.js +2 -2
  110. package/src/lib/CustomProperties/Config/{CustomPropertiesView.js → CustomPropertyView.js} +3 -3
  111. package/src/lib/CustomProperties/Config/index.js +1 -1
  112. package/src/lib/CustomProperties/Edit/CustomPropertiesEdit.js +35 -0
  113. package/src/lib/CustomProperties/Edit/CustomPropertiesEditCtx.js +85 -0
  114. package/src/lib/CustomProperties/Edit/CustomPropertiesListField.js +194 -0
  115. package/src/lib/CustomProperties/Edit/CustomPropertyField.js +299 -0
  116. package/src/lib/CustomProperties/Edit/CustomPropertyFormCard.js +131 -0
  117. package/src/lib/CustomProperties/Edit/index.js +5 -0
  118. package/src/lib/CustomProperties/Filter/CustomPropertiesFilter.js +125 -0
  119. package/src/lib/CustomProperties/Filter/CustomPropertiesFilterField.js +148 -0
  120. package/src/lib/CustomProperties/Filter/CustomPropertiesFilterFieldArray.js +113 -0
  121. package/src/lib/CustomProperties/Filter/CustomPropertiesFilterForm.js +74 -0
  122. package/src/lib/CustomProperties/Filter/CustomPropertiesRule.js +122 -0
  123. package/src/lib/CustomProperties/Filter/index.js +6 -0
  124. package/src/lib/CustomProperties/Filter/useOperators.js +55 -0
  125. package/src/lib/CustomProperties/Filter/useParseActiveFilterStrings.js +35 -0
  126. package/src/lib/CustomProperties/Filter/useValueProps.js +45 -0
  127. package/src/lib/CustomProperties/View/CustomPropertiesView.js +36 -0
  128. package/src/lib/CustomProperties/View/CustomPropertiesViewCtx.js +112 -0
  129. package/src/lib/CustomProperties/View/CustomPropertyCard.js +177 -0
  130. package/src/lib/CustomProperties/View/index.js +3 -0
  131. package/src/lib/CustomProperties/index.js +30 -0
  132. package/src/lib/EditableRefdataList/EditableRefdataList.js +13 -10
  133. package/src/lib/FormModal/FormModal.js +39 -17
  134. package/src/lib/QueryTypedown/QueryTypedown.js +3 -1
  135. package/src/lib/constants/customProperties.js +1 -0
  136. package/src/lib/hooks/index.js +2 -0
  137. package/src/lib/hooks/typedownHooks/useTypedownData.js +9 -3
  138. package/src/lib/hooks/useAvailableCustomProperties.js +40 -0
  139. package/src/lib/hooks/useInvalidateRefdata.js +11 -0
  140. package/src/lib/hooks/useMutateRefdataValue.js +7 -3
  141. package/src/lib/hooks/useRefdata.js +2 -3
  142. package/src/lib/utils/groupCustomPropertiesByCtx.js +13 -0
  143. package/src/lib/utils/index.js +5 -0
  144. package/src/lib/utils/refdataQueryKey.js +9 -0
  145. package/src/lib/utils/typedownQueryKey.js +9 -0
  146. package/src/lib/utils/validators.js +40 -0
  147. package/translate.sh +63 -0
  148. package/translations/stripes-kint-components/ar.json +105 -0
  149. package/translations/stripes-kint-components/ca.json +1 -0
  150. package/translations/stripes-kint-components/cs_CZ.json +105 -0
  151. package/translations/stripes-kint-components/da.json +1 -0
  152. package/translations/stripes-kint-components/de.json +105 -0
  153. package/translations/stripes-kint-components/en.json +54 -2
  154. package/translations/stripes-kint-components/es.json +105 -0
  155. package/translations/stripes-kint-components/fr.json +105 -0
  156. package/translations/stripes-kint-components/he.json +1 -0
  157. package/translations/stripes-kint-components/hi_IN.json +105 -0
  158. package/translations/stripes-kint-components/hu.json +105 -0
  159. package/translations/stripes-kint-components/it_IT.json +105 -0
  160. package/translations/stripes-kint-components/ja.json +105 -0
  161. package/translations/stripes-kint-components/ko.json +105 -0
  162. package/translations/stripes-kint-components/nb.json +1 -0
  163. package/translations/stripes-kint-components/nn.json +1 -0
  164. package/translations/stripes-kint-components/pl.json +105 -0
  165. package/translations/stripes-kint-components/pt_PT.json +105 -0
  166. package/translations/stripes-kint-components/ru.json +105 -0
  167. package/translations/stripes-kint-components/sv.json +105 -0
  168. package/translations/stripes-kint-components/ur.json +1 -0
  169. package/translations/stripes-kint-components/zh_CN.json +105 -0
  170. package/es/artifacts/coverage-jest/lcov-report/block-navigation.js +0 -109
  171. package/es/artifacts/coverage-jest/lcov-report/prettify.js +0 -998
  172. package/es/artifacts/coverage-jest/lcov-report/sorter.js +0 -238
  173. package/junit.xml +0 -79
  174. package/src/artifacts/coverage-jest/lcov-report/ActionList/ActionList.js.html +0 -286
  175. package/src/artifacts/coverage-jest/lcov-report/ActionList/ActionListFieldArray.js.html +0 -925
  176. package/src/artifacts/coverage-jest/lcov-report/ActionList/index.html +0 -146
  177. package/src/artifacts/coverage-jest/lcov-report/ActionList/index.js.html +0 -88
  178. package/src/artifacts/coverage-jest/lcov-report/CustomProperties/Config/CustomPropertiesLookup.js.html +0 -418
  179. package/src/artifacts/coverage-jest/lcov-report/CustomProperties/Config/CustomPropertiesSettings.js.html +0 -808
  180. package/src/artifacts/coverage-jest/lcov-report/CustomProperties/Config/CustomPropertiesView.js.html +0 -601
  181. package/src/artifacts/coverage-jest/lcov-report/CustomProperties/Config/CustomPropertyForm.js.html +0 -1135
  182. package/src/artifacts/coverage-jest/lcov-report/CustomProperties/Config/index.html +0 -176
  183. package/src/artifacts/coverage-jest/lcov-report/CustomProperties/Config/index.js.html +0 -97
  184. package/src/artifacts/coverage-jest/lcov-report/EditableRefdataList/EditableRefdataList.js.html +0 -373
  185. package/src/artifacts/coverage-jest/lcov-report/EditableRefdataList/index.html +0 -131
  186. package/src/artifacts/coverage-jest/lcov-report/EditableRefdataList/index.js.html +0 -88
  187. package/src/artifacts/coverage-jest/lcov-report/EditableSettingsList/EditableSettingsList.js.html +0 -223
  188. package/src/artifacts/coverage-jest/lcov-report/EditableSettingsList/EditableSettingsListFieldArray.js.html +0 -211
  189. package/src/artifacts/coverage-jest/lcov-report/EditableSettingsList/SettingField/EditSettingValue.js.html +0 -376
  190. package/src/artifacts/coverage-jest/lcov-report/EditableSettingsList/SettingField/RenderSettingValue.js.html +0 -262
  191. package/src/artifacts/coverage-jest/lcov-report/EditableSettingsList/SettingField/SettingField.js.html +0 -436
  192. package/src/artifacts/coverage-jest/lcov-report/EditableSettingsList/SettingField/index.html +0 -161
  193. package/src/artifacts/coverage-jest/lcov-report/EditableSettingsList/SettingField/index.js.html +0 -94
  194. package/src/artifacts/coverage-jest/lcov-report/EditableSettingsList/index.html +0 -146
  195. package/src/artifacts/coverage-jest/lcov-report/EditableSettingsList/index.js.html +0 -94
  196. package/src/artifacts/coverage-jest/lcov-report/FormModal/FormModal.js.html +0 -283
  197. package/src/artifacts/coverage-jest/lcov-report/FormModal/index.html +0 -131
  198. package/src/artifacts/coverage-jest/lcov-report/FormModal/index.js.html +0 -88
  199. package/src/artifacts/coverage-jest/lcov-report/NoResultsMessage/NoResultsMessage.js.html +0 -319
  200. package/src/artifacts/coverage-jest/lcov-report/NoResultsMessage/index.html +0 -131
  201. package/src/artifacts/coverage-jest/lcov-report/NoResultsMessage/index.js.html +0 -88
  202. package/src/artifacts/coverage-jest/lcov-report/QueryTypedown/QueryTypedown.js.html +0 -184
  203. package/src/artifacts/coverage-jest/lcov-report/QueryTypedown/index.html +0 -131
  204. package/src/artifacts/coverage-jest/lcov-report/QueryTypedown/index.js.html +0 -88
  205. package/src/artifacts/coverage-jest/lcov-report/RefdataButtons/RefdataButtons.js.html +0 -370
  206. package/src/artifacts/coverage-jest/lcov-report/RefdataButtons/index.html +0 -131
  207. package/src/artifacts/coverage-jest/lcov-report/RefdataButtons/index.js.html +0 -88
  208. package/src/artifacts/coverage-jest/lcov-report/SASQLookupComponent/SASQLookupComponent.js.html +0 -949
  209. package/src/artifacts/coverage-jest/lcov-report/SASQLookupComponent/index.html +0 -131
  210. package/src/artifacts/coverage-jest/lcov-report/SASQLookupComponent/index.js.html +0 -88
  211. package/src/artifacts/coverage-jest/lcov-report/SASQRoute/SASQRoute.js.html +0 -301
  212. package/src/artifacts/coverage-jest/lcov-report/SASQRoute/index.html +0 -131
  213. package/src/artifacts/coverage-jest/lcov-report/SASQRoute/index.js.html +0 -88
  214. package/src/artifacts/coverage-jest/lcov-report/SASQViewComponent/SASQViewComponent.js.html +0 -253
  215. package/src/artifacts/coverage-jest/lcov-report/SASQViewComponent/index.html +0 -131
  216. package/src/artifacts/coverage-jest/lcov-report/SASQViewComponent/index.js.html +0 -88
  217. package/src/artifacts/coverage-jest/lcov-report/SearchField/SearchField.js.html +0 -214
  218. package/src/artifacts/coverage-jest/lcov-report/SearchField/index.html +0 -131
  219. package/src/artifacts/coverage-jest/lcov-report/SearchField/index.js.html +0 -88
  220. package/src/artifacts/coverage-jest/lcov-report/SettingPage/SettingPage.js.html +0 -211
  221. package/src/artifacts/coverage-jest/lcov-report/SettingPage/SettingPagePane.js.html +0 -178
  222. package/src/artifacts/coverage-jest/lcov-report/SettingPage/index.html +0 -146
  223. package/src/artifacts/coverage-jest/lcov-report/SettingPage/index.js.html +0 -91
  224. package/src/artifacts/coverage-jest/lcov-report/Typedown/Typedown.js.html +0 -919
  225. package/src/artifacts/coverage-jest/lcov-report/Typedown/index.html +0 -131
  226. package/src/artifacts/coverage-jest/lcov-report/Typedown/index.js.html +0 -88
  227. package/src/artifacts/coverage-jest/lcov-report/base.css +0 -224
  228. package/src/artifacts/coverage-jest/lcov-report/block-navigation.js +0 -87
  229. package/src/artifacts/coverage-jest/lcov-report/constants/customProperties.js.html +0 -112
  230. package/src/artifacts/coverage-jest/lcov-report/constants/eventCodes.js.html +0 -94
  231. package/src/artifacts/coverage-jest/lcov-report/constants/index.html +0 -131
  232. package/src/artifacts/coverage-jest/lcov-report/contexts/SettingsContext.js.html +0 -97
  233. package/src/artifacts/coverage-jest/lcov-report/contexts/index.html +0 -131
  234. package/src/artifacts/coverage-jest/lcov-report/contexts/index.js.html +0 -91
  235. package/src/artifacts/coverage-jest/lcov-report/favicon.png +0 -0
  236. package/src/artifacts/coverage-jest/lcov-report/hooks/index.html +0 -281
  237. package/src/artifacts/coverage-jest/lcov-report/hooks/index.js.html +0 -121
  238. package/src/artifacts/coverage-jest/lcov-report/hooks/settingsHooks/index.html +0 -146
  239. package/src/artifacts/coverage-jest/lcov-report/hooks/settingsHooks/index.js.html +0 -91
  240. package/src/artifacts/coverage-jest/lcov-report/hooks/settingsHooks/useSettingSection.js.html +0 -163
  241. package/src/artifacts/coverage-jest/lcov-report/hooks/settingsHooks/useSettings.js.html +0 -403
  242. package/src/artifacts/coverage-jest/lcov-report/hooks/typedownHooks/index.html +0 -161
  243. package/src/artifacts/coverage-jest/lcov-report/hooks/typedownHooks/index.js.html +0 -94
  244. package/src/artifacts/coverage-jest/lcov-report/hooks/typedownHooks/useTypedown.js.html +0 -520
  245. package/src/artifacts/coverage-jest/lcov-report/hooks/typedownHooks/useTypedownData.js.html +0 -163
  246. package/src/artifacts/coverage-jest/lcov-report/hooks/typedownHooks/useTypedownToggle.js.html +0 -163
  247. package/src/artifacts/coverage-jest/lcov-report/hooks/useActiveElement.js.html +0 -157
  248. package/src/artifacts/coverage-jest/lcov-report/hooks/useCustomProperties.js.html +0 -313
  249. package/src/artifacts/coverage-jest/lcov-report/hooks/useHelperApp.js.html +0 -283
  250. package/src/artifacts/coverage-jest/lcov-report/hooks/useKiwtFieldArray.js.html +0 -274
  251. package/src/artifacts/coverage-jest/lcov-report/hooks/useKiwtSASQuery.js.html +0 -178
  252. package/src/artifacts/coverage-jest/lcov-report/hooks/useLocalStorageState.js.html +0 -136
  253. package/src/artifacts/coverage-jest/lcov-report/hooks/useMutateCustomProperties.js.html +0 -271
  254. package/src/artifacts/coverage-jest/lcov-report/hooks/useMutateRefdataValue.js.html +0 -301
  255. package/src/artifacts/coverage-jest/lcov-report/hooks/useQIndex.js.html +0 -208
  256. package/src/artifacts/coverage-jest/lcov-report/hooks/useRefdata.js.html +0 -268
  257. package/src/artifacts/coverage-jest/lcov-report/hooks/useTemplates.js.html +0 -166
  258. package/src/artifacts/coverage-jest/lcov-report/index.html +0 -416
  259. package/src/artifacts/coverage-jest/lcov-report/prettify.css +0 -1
  260. package/src/artifacts/coverage-jest/lcov-report/prettify.js +0 -2
  261. package/src/artifacts/coverage-jest/lcov-report/sort-arrow-sprite.png +0 -0
  262. package/src/artifacts/coverage-jest/lcov-report/sorter.js +0 -196
  263. package/src/artifacts/coverage-jest/lcov-report/utils/buildUrl.js.html +0 -193
  264. package/src/artifacts/coverage-jest/lcov-report/utils/generateKiwtQuery.js.html +0 -109
  265. package/src/artifacts/coverage-jest/lcov-report/utils/generateKiwtQueryParams.js.html +0 -454
  266. package/src/artifacts/coverage-jest/lcov-report/utils/index.html +0 -251
  267. package/src/artifacts/coverage-jest/lcov-report/utils/index.js.html +0 -121
  268. package/src/artifacts/coverage-jest/lcov-report/utils/refdataOptions.js.html +0 -106
  269. package/src/artifacts/coverage-jest/lcov-report/utils/renderHelpText.js.html +0 -166
  270. package/src/artifacts/coverage-jest/lcov-report/utils/selectorSafe.js.html +0 -103
  271. package/src/artifacts/coverage-jest/lcov-report/utils/sortByLabel.js.html +0 -130
  272. package/src/artifacts/coverage-jest/lcov-report/utils/toCamelCase.js.html +0 -127
  273. package/src/artifacts/coverage-jest/lcov-report/utils/validators.js.html +0 -202
  274. package/src/artifacts/coverage-jest/lcov.info +0 -2562
package/CHANGELOG.md CHANGED
@@ -1,3 +1,32 @@
1
+ ## 2.3.2 2022-04-01
2
+ * Fix to actionAssigner callback pattern
3
+ * Tweak to remove marginBottom0 warning
4
+ * FormModal buttons have marginBottom0 prop on them now
5
+
6
+ ## 2.3.1 2022-03-28
7
+ * Custom Property component fixes
8
+
9
+ ## 2.3.0 2022-03-25
10
+ * FormModal
11
+ * Ability to override labels for "save" and "cancel"
12
+ * Ability to override whole footer section
13
+ * CustomProperties Edit components:
14
+ * CustomPropertiesEdit
15
+ * CustomPropertiesEditCtx
16
+ * CustomPropertiesListField
17
+ * CustomPropertyField
18
+ * CustomPropertyFormCard
19
+ * useAvailableCustomProperties
20
+ * Refdata hooks and utils
21
+ * useInvalidateRefdata hook
22
+ * refdataQueryKey utility function
23
+ * useRefdata refactored to use the above
24
+ * useMutateRefdata now invalidates query cache after changes
25
+ * QueryTypedown
26
+ * Added "dataFormatter" prop, to allow massaging of data between fetch and injections into Typedown
27
+ * ActionList
28
+ * ActionCalls deprecated in favour of a direct `callback` prop on actionAssigner, and separate createCallback prop.
29
+ * `to` prop on actionAssigner allowing for rendering of <Link/> as opposed to <Button>/<IconButton/>
1
30
  ## 2.2.0 2022-03-11
2
31
  * Fix -- GenerateQueryParams no longer assumes you want EITHER nsValues filters or options filters, it simply adds both to the params array
3
32
  * ActionList -- added a hideCreateButton prop for custom rolled solutions
package/es/index.js CHANGED
@@ -11,22 +11,100 @@ Object.defineProperty(exports, "ActionList", {
11
11
  return _ActionList.default;
12
12
  }
13
13
  });
14
+ Object.defineProperty(exports, "CustomPropertiesEdit", {
15
+ enumerable: true,
16
+ get: function get() {
17
+ return _CustomProperties.CustomPropertiesEdit;
18
+ }
19
+ });
20
+ Object.defineProperty(exports, "CustomPropertiesEditCtx", {
21
+ enumerable: true,
22
+ get: function get() {
23
+ return _CustomProperties.CustomPropertiesEditCtx;
24
+ }
25
+ });
26
+ Object.defineProperty(exports, "CustomPropertiesFilter", {
27
+ enumerable: true,
28
+ get: function get() {
29
+ return _CustomProperties.CustomPropertiesFilter;
30
+ }
31
+ });
32
+ Object.defineProperty(exports, "CustomPropertiesFilterField", {
33
+ enumerable: true,
34
+ get: function get() {
35
+ return _CustomProperties.CustomPropertiesFilterField;
36
+ }
37
+ });
38
+ Object.defineProperty(exports, "CustomPropertiesFilterFieldArray", {
39
+ enumerable: true,
40
+ get: function get() {
41
+ return _CustomProperties.CustomPropertiesFilterFieldArray;
42
+ }
43
+ });
44
+ Object.defineProperty(exports, "CustomPropertiesFilterForm", {
45
+ enumerable: true,
46
+ get: function get() {
47
+ return _CustomProperties.CustomPropertiesFilterForm;
48
+ }
49
+ });
50
+ Object.defineProperty(exports, "CustomPropertiesListField", {
51
+ enumerable: true,
52
+ get: function get() {
53
+ return _CustomProperties.CustomPropertiesListField;
54
+ }
55
+ });
14
56
  Object.defineProperty(exports, "CustomPropertiesLookup", {
15
57
  enumerable: true,
16
58
  get: function get() {
17
- return _Config.CustomPropertiesLookup;
59
+ return _CustomProperties.CustomPropertiesLookup;
18
60
  }
19
61
  });
20
62
  Object.defineProperty(exports, "CustomPropertiesSettings", {
21
63
  enumerable: true,
22
64
  get: function get() {
23
- return _Config.CustomPropertiesSettings;
65
+ return _CustomProperties.CustomPropertiesSettings;
24
66
  }
25
67
  });
26
68
  Object.defineProperty(exports, "CustomPropertiesView", {
27
69
  enumerable: true,
28
70
  get: function get() {
29
- return _Config.CustomPropertiesView;
71
+ return _CustomProperties.CustomPropertiesView;
72
+ }
73
+ });
74
+ Object.defineProperty(exports, "CustomPropertiesViewCtx", {
75
+ enumerable: true,
76
+ get: function get() {
77
+ return _CustomProperties.CustomPropertiesViewCtx;
78
+ }
79
+ });
80
+ Object.defineProperty(exports, "CustomPropertyCard", {
81
+ enumerable: true,
82
+ get: function get() {
83
+ return _CustomProperties.CustomPropertyCard;
84
+ }
85
+ });
86
+ Object.defineProperty(exports, "CustomPropertyField", {
87
+ enumerable: true,
88
+ get: function get() {
89
+ return _CustomProperties.CustomPropertyField;
90
+ }
91
+ });
92
+ Object.defineProperty(exports, "CustomPropertyForm", {
93
+ enumerable: true,
94
+ get: function get() {
95
+ return _CustomProperties.CustomPropertyForm;
96
+ }
97
+ });
98
+ Object.defineProperty(exports, "CustomPropertyFormCard", {
99
+ enumerable: true,
100
+ get: function get() {
101
+ return _CustomProperties.CustomPropertyFormCard;
102
+ }
103
+ });
104
+ Object.defineProperty(exports, "CustomPropertyView", {
105
+ enumerable: true,
106
+ get: function get() {
107
+ return _CustomProperties.CustomPropertyView;
30
108
  }
31
109
  });
32
110
  Object.defineProperty(exports, "EditableRefdataList", {
@@ -126,6 +204,12 @@ Object.defineProperty(exports, "generateKiwtQueryParams", {
126
204
  return _utils.generateKiwtQueryParams;
127
205
  }
128
206
  });
207
+ Object.defineProperty(exports, "groupCustomPropertiesByCtx", {
208
+ enumerable: true,
209
+ get: function get() {
210
+ return _utils.groupCustomPropertiesByCtx;
211
+ }
212
+ });
129
213
  Object.defineProperty(exports, "invalidNumber", {
130
214
  enumerable: true,
131
215
  get: function get() {
@@ -138,6 +222,12 @@ Object.defineProperty(exports, "refdataOptions", {
138
222
  return _utils.refdataOptions;
139
223
  }
140
224
  });
225
+ Object.defineProperty(exports, "refdataQueryKey", {
226
+ enumerable: true,
227
+ get: function get() {
228
+ return _utils.refdataQueryKey;
229
+ }
230
+ });
141
231
  Object.defineProperty(exports, "required", {
142
232
  enumerable: true,
143
233
  get: function get() {
@@ -156,12 +246,24 @@ Object.defineProperty(exports, "selectorSafe", {
156
246
  return _utils.selectorSafe;
157
247
  }
158
248
  });
249
+ Object.defineProperty(exports, "typedownQueryKey", {
250
+ enumerable: true,
251
+ get: function get() {
252
+ return _utils.typedownQueryKey;
253
+ }
254
+ });
159
255
  Object.defineProperty(exports, "useActiveElement", {
160
256
  enumerable: true,
161
257
  get: function get() {
162
258
  return _hooks.useActiveElement;
163
259
  }
164
260
  });
261
+ Object.defineProperty(exports, "useAvailableCustomProperties", {
262
+ enumerable: true,
263
+ get: function get() {
264
+ return _hooks.useAvailableCustomProperties;
265
+ }
266
+ });
165
267
  Object.defineProperty(exports, "useCustomProperties", {
166
268
  enumerable: true,
167
269
  get: function get() {
@@ -174,6 +276,12 @@ Object.defineProperty(exports, "useHelperApp", {
174
276
  return _hooks.useHelperApp;
175
277
  }
176
278
  });
279
+ Object.defineProperty(exports, "useInvalidateRefdata", {
280
+ enumerable: true,
281
+ get: function get() {
282
+ return _hooks.useInvalidateRefdata;
283
+ }
284
+ });
177
285
  Object.defineProperty(exports, "useKiwtFieldArray", {
178
286
  enumerable: true,
179
287
  get: function get() {
@@ -204,6 +312,18 @@ Object.defineProperty(exports, "useMutateRefdataValue", {
204
312
  return _hooks.useMutateRefdataValue;
205
313
  }
206
314
  });
315
+ Object.defineProperty(exports, "useOperators", {
316
+ enumerable: true,
317
+ get: function get() {
318
+ return _CustomProperties.useOperators;
319
+ }
320
+ });
321
+ Object.defineProperty(exports, "useParseActiveFilterStrings", {
322
+ enumerable: true,
323
+ get: function get() {
324
+ return _CustomProperties.useParseActiveFilterStrings;
325
+ }
326
+ });
207
327
  Object.defineProperty(exports, "useQIndex", {
208
328
  enumerable: true,
209
329
  get: function get() {
@@ -261,7 +381,7 @@ var _RefdataButtons = _interopRequireDefault(require("./lib/RefdataButtons"));
261
381
 
262
382
  var _FormModal = _interopRequireDefault(require("./lib/FormModal"));
263
383
 
264
- var _Config = require("./lib/CustomProperties/Config");
384
+ var _CustomProperties = require("./lib/CustomProperties");
265
385
 
266
386
  var _customPropertyContants = _interopRequireWildcard(require("./lib/constants/customProperties"));
267
387
 
@@ -271,8 +391,4 @@ function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "functio
271
391
 
272
392
  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; }
273
393
 
274
- function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
275
-
276
- var __signature__ = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.default.signature : function (a) {
277
- return a;
278
- };
394
+ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
@@ -19,15 +19,10 @@ var _ActionListFieldArray = _interopRequireDefault(require("./ActionListFieldArr
19
19
 
20
20
  var _jsxRuntime = require("react/jsx-runtime");
21
21
 
22
- var _excluded = ["actionAssigner", "actionCalls", "columnMapping", "contentData", "creatableFields", "editableFields", "fieldComponents", "hideCreateButton", "visibleFields"];
22
+ var _excluded = ["actionAssigner", "actionCalls", "columnMapping", "contentData", "creatableFields", "createCallback", "editableFields", "fieldComponents", "hideCreateButton", "visibleFields"];
23
23
 
24
24
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
25
25
 
26
- (function () {
27
- var enterModule = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.enterModule : undefined;
28
- enterModule && enterModule(module);
29
- })();
30
-
31
26
  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; }
32
27
 
33
28
  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; }
@@ -38,16 +33,13 @@ function _objectWithoutProperties(source, excluded) { if (source == null) return
38
33
 
39
34
  function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
40
35
 
41
- var __signature__ = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.default.signature : function (a) {
42
- return a;
43
- };
44
-
45
36
  var propTypes = {
46
37
  actionAssigner: _propTypes.default.func,
47
38
  actionCalls: _propTypes.default.object,
48
39
  columnMapping: _propTypes.default.object,
49
40
  contentData: _propTypes.default.arrayOf(_propTypes.default.object),
50
41
  creatableFields: _propTypes.default.object,
42
+ createCallback: _propTypes.default.func,
51
43
  editableFields: _propTypes.default.object,
52
44
  fieldComponents: _propTypes.default.object,
53
45
  hideCreateButton: _propTypes.default.bool,
@@ -62,6 +54,7 @@ var ActionList = function ActionList(_ref) {
62
54
  contentData = _ref.contentData,
63
55
  _ref$creatableFields = _ref.creatableFields,
64
56
  creatableFields = _ref$creatableFields === void 0 ? {} : _ref$creatableFields,
57
+ createCallback = _ref.createCallback,
65
58
  _ref$editableFields = _ref.editableFields,
66
59
  editableFields = _ref$editableFields === void 0 ? {} : _ref$editableFields,
67
60
  _ref$fieldComponents = _ref.fieldComponents,
@@ -77,7 +70,9 @@ var ActionList = function ActionList(_ref) {
77
70
  contentData: contentData
78
71
  },
79
72
  mutators: _finalFormArrays.default,
80
- onSubmit: actionCalls.edit,
73
+ onSubmit: function onSubmit() {
74
+ return null;
75
+ },
81
76
  subscription: {
82
77
  contentData: true
83
78
  },
@@ -92,6 +87,7 @@ var ActionList = function ActionList(_ref) {
92
87
  columnMapping: columnMapping,
93
88
  component: _ActionListFieldArray.default,
94
89
  creatableFields: creatableFields,
90
+ createCallback: createCallback,
95
91
  editableFields: editableFields,
96
92
  fieldComponents: fieldComponents,
97
93
  hideCreateButton: hideCreateButton,
@@ -106,25 +102,4 @@ var ActionList = function ActionList(_ref) {
106
102
 
107
103
  ActionList.propTypes = propTypes;
108
104
  var _default = ActionList;
109
- var _default2 = _default;
110
- exports.default = _default2;
111
- ;
112
-
113
- (function () {
114
- var reactHotLoader = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.default : undefined;
115
-
116
- if (!reactHotLoader) {
117
- return;
118
- }
119
-
120
- reactHotLoader.register(propTypes, "propTypes", "/home/ethan/FolioModules/stripes-kint-components/src/lib/ActionList/ActionList.js");
121
- reactHotLoader.register(ActionList, "ActionList", "/home/ethan/FolioModules/stripes-kint-components/src/lib/ActionList/ActionList.js");
122
- reactHotLoader.register(_default, "default", "/home/ethan/FolioModules/stripes-kint-components/src/lib/ActionList/ActionList.js");
123
- })();
124
-
125
- ;
126
-
127
- (function () {
128
- var leaveModule = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.leaveModule : undefined;
129
- leaveModule && leaveModule(module);
130
- })();
105
+ exports.default = _default;
@@ -23,7 +23,7 @@ var _ActionListFieldArray = _interopRequireDefault(require("../../../styles/Acti
23
23
 
24
24
  var _jsxRuntime = require("react/jsx-runtime");
25
25
 
26
- var _excluded = ["actionAssigner", "actionCalls", "columnMapping", "creatableFields", "editableFields", "fields", "fieldComponents", "hideCreateButton", "visibleFields"],
26
+ var _excluded = ["actionAssigner", "actionCalls", "columnMapping", "creatableFields", "createCallback", "editableFields", "fields", "fieldComponents", "hideCreateButton", "visibleFields"],
27
27
  _excluded2 = ["actionListActions"],
28
28
  _excluded3 = ["actionListActions"],
29
29
  _excluded4 = ["actionListActions"],
@@ -35,11 +35,6 @@ function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "functio
35
35
 
36
36
  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; }
37
37
 
38
- (function () {
39
- var enterModule = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.enterModule : undefined;
40
- enterModule && enterModule(module);
41
- })();
42
-
43
38
  function _toConsumableArray(arr) { return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableSpread(); }
44
39
 
45
40
  function _nonIterableSpread() { throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
@@ -72,10 +67,6 @@ function _objectWithoutProperties(source, excluded) { if (source == null) return
72
67
 
73
68
  function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
74
69
 
75
- var __signature__ = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.default.signature : function (a) {
76
- return a;
77
- };
78
-
79
70
  var EDITING_ACTIONS_WIDTH = 25;
80
71
  var NON_EDITING_ACTIONS_WIDTH = 20;
81
72
  var TOTAL_WIDTH = 100;
@@ -84,6 +75,7 @@ var propTypes = {
84
75
  actionCalls: _propTypes.default.object,
85
76
  columnMapping: _propTypes.default.object,
86
77
  creatableFields: _propTypes.default.object,
78
+ createCallback: _propTypes.default.func,
87
79
  editableFields: _propTypes.default.object,
88
80
  fields: _propTypes.default.object,
89
81
  fieldComponents: _propTypes.default.object,
@@ -97,6 +89,7 @@ var ActionListFieldArray = function ActionListFieldArray(_ref) {
97
89
  actionCalls = _ref.actionCalls,
98
90
  columnMapping = _ref.columnMapping,
99
91
  creatableFields = _ref.creatableFields,
92
+ createCallback = _ref.createCallback,
100
93
  editableFields = _ref.editableFields,
101
94
  fields = _ref.fields,
102
95
  fieldComponents = _ref.fieldComponents,
@@ -135,11 +128,22 @@ var ActionListFieldArray = function ActionListFieldArray(_ref) {
135
128
  };
136
129
 
137
130
  var handleSave = function handleSave(index) {
131
+ var _actionAssigner, _actionAssigner$find;
132
+
138
133
  var _fields$value$index = fields.value[index],
139
134
  _a = _fields$value$index.actionListActions,
140
- rowData = _objectWithoutProperties(_fields$value$index, _excluded2);
135
+ rowData = _objectWithoutProperties(_fields$value$index, _excluded2); // Find "edit" entry in actionAssigner
136
+
137
+
138
+ var editCallback = (_actionAssigner = actionAssigner(rowData)) === null || _actionAssigner === void 0 ? void 0 : (_actionAssigner$find = _actionAssigner.find(function (act) {
139
+ return act.name === 'edit';
140
+ })) === null || _actionAssigner$find === void 0 ? void 0 : _actionAssigner$find.callback;
141
141
 
142
- actionCalls.edit(rowData);
142
+ if (editCallback) {
143
+ editCallback(rowData);
144
+ } else {
145
+ actionCalls.edit(rowData); // DEPRECATED
146
+ }
143
147
  };
144
148
 
145
149
  var handleCreate = function handleCreate(index) {
@@ -147,7 +151,11 @@ var ActionListFieldArray = function ActionListFieldArray(_ref) {
147
151
  _a = _fields$value$index2.actionListActions,
148
152
  rowData = _objectWithoutProperties(_fields$value$index2, _excluded3);
149
153
 
150
- actionCalls.create(rowData);
154
+ if (createCallback) {
155
+ createCallback(rowData);
156
+ } else {
157
+ actionCalls.create(rowData); // DEPRECATED
158
+ }
151
159
  };
152
160
 
153
161
  var getColumnWidths = function getColumnWidths() {
@@ -211,9 +219,20 @@ var ActionListFieldArray = function ActionListFieldArray(_ref) {
211
219
  children: actions === null || actions === void 0 ? void 0 : actions.map(function (action) {
212
220
  var _action$label;
213
221
 
214
- var actionFunction = function actionFunction() {
215
- return actionCalls[action.name](rest);
216
- }; // Edit has special action functionality, revealing fields etc.
222
+ var actionFunction;
223
+
224
+ if (action.callback) {
225
+ actionFunction = function actionFunction() {
226
+ return action.callback(rest);
227
+ };
228
+ }
229
+
230
+ if (!actionFunction && actionCalls[action.name]) {
231
+ actionFunction = function actionFunction() {
232
+ return actionCalls[action.name](rest);
233
+ }; // DEPRECATED
234
+
235
+ } // Edit has special action functionality, revealing fields etc.
217
236
 
218
237
 
219
238
  if (action.name === 'edit') {
@@ -227,8 +246,12 @@ var ActionListFieldArray = function ActionListFieldArray(_ref) {
227
246
  return /*#__PURE__*/(0, _jsxRuntime.jsx)(_components.IconButton, {
228
247
  disabled: editing,
229
248
  icon: action.icon,
230
- marginBottom0: true,
231
- onClick: actionFunction
249
+ onClick: function onClick() {
250
+ return actionFunction ? actionFunction() : function () {
251
+ return null;
252
+ };
253
+ },
254
+ to: action.to
232
255
  }, "action-".concat(action.name, "[").concat(data.rowIndex, "]"));
233
256
  } // Else return a button with the label, or failing that the name of the action
234
257
 
@@ -236,7 +259,12 @@ var ActionListFieldArray = function ActionListFieldArray(_ref) {
236
259
  return /*#__PURE__*/(0, _jsxRuntime.jsx)(_components.Button, {
237
260
  disabled: editing,
238
261
  marginBottom0: true,
239
- onClick: actionFunction,
262
+ onClick: function onClick() {
263
+ return actionFunction ? actionFunction() : function () {
264
+ return null;
265
+ };
266
+ },
267
+ to: action.to,
240
268
  children: (_action$label = action.label) !== null && _action$label !== void 0 ? _action$label : action.name
241
269
  }, "action-".concat(action.name, "[").concat(data.rowIndex, "]"));
242
270
  })
@@ -333,7 +361,8 @@ var ActionListFieldArray = function ActionListFieldArray(_ref) {
333
361
  return /*#__PURE__*/(0, _jsxRuntime.jsxs)(_jsxRuntime.Fragment, {
334
362
  children: [!hideCreateButton && /*#__PURE__*/(0, _jsxRuntime.jsx)(_components.Button, {
335
363
  buttonClass: _ActionListFieldArray.default.buttonRight,
336
- disabled: !actionCalls.create,
364
+ disabled: !actionCalls.create && !createCallback // DEPRECATED actionCalls
365
+ ,
337
366
  onClick: function onClick() {
338
367
  toggleEditing('NEW_ROW');
339
368
  fields.push({});
@@ -358,34 +387,6 @@ var ActionListFieldArray = function ActionListFieldArray(_ref) {
358
387
  });
359
388
  };
360
389
 
361
- __signature__(ActionListFieldArray, "useForm{{ change }}\nuseFormState{{ initialValues, pristine, submitting, values }}\nuseState{[editing, setEditing](null)}", function () {
362
- return [_reactFinalForm.useForm, _reactFinalForm.useFormState];
363
- });
364
-
365
390
  ActionListFieldArray.propTypes = propTypes;
366
391
  var _default = ActionListFieldArray;
367
- var _default2 = _default;
368
- exports.default = _default2;
369
- ;
370
-
371
- (function () {
372
- var reactHotLoader = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.default : undefined;
373
-
374
- if (!reactHotLoader) {
375
- return;
376
- }
377
-
378
- reactHotLoader.register(EDITING_ACTIONS_WIDTH, "EDITING_ACTIONS_WIDTH", "/home/ethan/FolioModules/stripes-kint-components/src/lib/ActionList/ActionListFieldArray.js");
379
- reactHotLoader.register(NON_EDITING_ACTIONS_WIDTH, "NON_EDITING_ACTIONS_WIDTH", "/home/ethan/FolioModules/stripes-kint-components/src/lib/ActionList/ActionListFieldArray.js");
380
- reactHotLoader.register(TOTAL_WIDTH, "TOTAL_WIDTH", "/home/ethan/FolioModules/stripes-kint-components/src/lib/ActionList/ActionListFieldArray.js");
381
- reactHotLoader.register(propTypes, "propTypes", "/home/ethan/FolioModules/stripes-kint-components/src/lib/ActionList/ActionListFieldArray.js");
382
- reactHotLoader.register(ActionListFieldArray, "ActionListFieldArray", "/home/ethan/FolioModules/stripes-kint-components/src/lib/ActionList/ActionListFieldArray.js");
383
- reactHotLoader.register(_default, "default", "/home/ethan/FolioModules/stripes-kint-components/src/lib/ActionList/ActionListFieldArray.js");
384
- })();
385
-
386
- ;
387
-
388
- (function () {
389
- var leaveModule = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.leaveModule : undefined;
390
- leaveModule && leaveModule(module);
391
- })();
392
+ exports.default = _default;
@@ -12,8 +12,4 @@ Object.defineProperty(exports, "default", {
12
12
 
13
13
  var _ActionList = _interopRequireDefault(require("./ActionList"));
14
14
 
15
- function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
16
-
17
- var __signature__ = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.default.signature : function (a) {
18
- return a;
19
- };
15
+ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
@@ -23,11 +23,6 @@ var _jsxRuntime = require("react/jsx-runtime");
23
23
 
24
24
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
25
25
 
26
- (function () {
27
- var enterModule = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.enterModule : undefined;
28
- enterModule && enterModule(module);
29
- })();
30
-
31
26
  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; }
32
27
 
33
28
  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; }
@@ -46,10 +41,6 @@ function _iterableToArrayLimit(arr, i) { var _i = arr == null ? null : typeof Sy
46
41
 
47
42
  function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
48
43
 
49
- var __signature__ = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.default.signature : function (a) {
50
- return a;
51
- };
52
-
53
44
  var DEBOUNCE_TIME = 500;
54
45
 
55
46
  var CustomPropertiesLookup = function CustomPropertiesLookup(_ref) {
@@ -157,10 +148,6 @@ var CustomPropertiesLookup = function CustomPropertiesLookup(_ref) {
157
148
  });
158
149
  };
159
150
 
160
- __signature__(CustomPropertiesLookup, "useState{[nsValues, setNsValues]({\n sort: 'label'\n })}\nuseState{[selectedContext, setSelectedContext]}\nuseCustomProperties{{ data: custprops, isLoading }}", function () {
161
- return [_hooks.useCustomProperties];
162
- });
163
-
164
151
  CustomPropertiesLookup.propTypes = {
165
152
  contextFilterOptions: _propTypes.default.arrayOf(_propTypes.default.shape({
166
153
  value: _propTypes.default.string,
@@ -174,25 +161,4 @@ CustomPropertiesLookup.propTypes = {
174
161
  refdataEndpoint: _propTypes.default.string
175
162
  };
176
163
  var _default = CustomPropertiesLookup;
177
- var _default2 = _default;
178
- exports.default = _default2;
179
- ;
180
-
181
- (function () {
182
- var reactHotLoader = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.default : undefined;
183
-
184
- if (!reactHotLoader) {
185
- return;
186
- }
187
-
188
- reactHotLoader.register(DEBOUNCE_TIME, "DEBOUNCE_TIME", "/home/ethan/FolioModules/stripes-kint-components/src/lib/CustomProperties/Config/CustomPropertiesLookup.js");
189
- reactHotLoader.register(CustomPropertiesLookup, "CustomPropertiesLookup", "/home/ethan/FolioModules/stripes-kint-components/src/lib/CustomProperties/Config/CustomPropertiesLookup.js");
190
- reactHotLoader.register(_default, "default", "/home/ethan/FolioModules/stripes-kint-components/src/lib/CustomProperties/Config/CustomPropertiesLookup.js");
191
- })();
192
-
193
- ;
194
-
195
- (function () {
196
- var leaveModule = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.leaveModule : undefined;
197
- leaveModule && leaveModule(module);
198
- })();
164
+ exports.default = _default;
@@ -23,7 +23,7 @@ var _FormModal = _interopRequireDefault(require("../../FormModal/FormModal"));
23
23
 
24
24
  var _CustomPropertiesLookup = _interopRequireDefault(require("./CustomPropertiesLookup"));
25
25
 
26
- var _CustomPropertiesView = _interopRequireDefault(require("./CustomPropertiesView"));
26
+ var _CustomPropertyView = _interopRequireDefault(require("./CustomPropertyView"));
27
27
 
28
28
  var _CustomPropertyForm = _interopRequireDefault(require("./CustomPropertyForm"));
29
29
 
@@ -33,11 +33,6 @@ var _jsxRuntime = require("react/jsx-runtime");
33
33
 
34
34
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
35
35
 
36
- (function () {
37
- var enterModule = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.enterModule : undefined;
38
- enterModule && enterModule(module);
39
- })();
40
-
41
36
  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; }
42
37
 
43
38
  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; }
@@ -56,10 +51,6 @@ function _iterableToArrayLimit(arr, i) { var _i = arr == null ? null : typeof Sy
56
51
 
57
52
  function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
58
53
 
59
- var __signature__ = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.default.signature : function (a) {
60
- return a;
61
- };
62
-
63
54
  var EDITING = 'edit';
64
55
  var CREATING = 'create';
65
56
  var VIEWING = 'view'; // A default option for setting up panes manually
@@ -222,7 +213,7 @@ var CustomPropertiesSettings = function CustomPropertiesSettings(_ref) {
222
213
  return setCustomProperty();
223
214
  },
224
215
  paneTitle: (_ref3 = (_renderViewPaneTitle = renderViewPaneTitle) !== null && _renderViewPaneTitle !== void 0 ? _renderViewPaneTitle : customProperty === null || customProperty === void 0 ? void 0 : customProperty.label) !== null && _ref3 !== void 0 ? _ref3 : customProperty === null || customProperty === void 0 ? void 0 : customProperty.name,
225
- children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_CustomPropertiesView.default, {
216
+ children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_CustomPropertyView.default, {
226
217
  customProperty: customProperty,
227
218
  labelOverrides: labelOverrides
228
219
  })
@@ -285,10 +276,6 @@ var CustomPropertiesSettings = function CustomPropertiesSettings(_ref) {
285
276
  });
286
277
  };
287
278
 
288
- __signature__(CustomPropertiesSettings, "useQueryClient{queryClient}\nuseIntl{intl}\nuseState{[customProperty, setCustomProperty]}\nuseState{[deleteModal, setDeleteModal](false)}\nuseRefdata{refdata}\nuseState{[mode, setMode](VIEWING)}\nuseMutateCustomProperties{{\n post: createCustprop,\n put: editCustProp,\n delete: deleteCustProp\n }}", function () {
289
- return [_reactQuery.useQueryClient, _reactIntl.useIntl, _hooks.useRefdata, _hooks.useMutateCustomProperties];
290
- });
291
-
292
279
  CustomPropertiesSettings.propTypes = {
293
280
  afterQueryCalls: _propTypes.default.object,
294
281
  contextFilterOptions: _propTypes.default.arrayOf(_propTypes.default.shape({
@@ -301,27 +288,4 @@ CustomPropertiesSettings.propTypes = {
301
288
  refdataEndpoint: _propTypes.default.string
302
289
  };
303
290
  var _default = CustomPropertiesSettings;
304
- var _default2 = _default;
305
- exports.default = _default2;
306
- ;
307
-
308
- (function () {
309
- var reactHotLoader = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.default : undefined;
310
-
311
- if (!reactHotLoader) {
312
- return;
313
- }
314
-
315
- reactHotLoader.register(EDITING, "EDITING", "/home/ethan/FolioModules/stripes-kint-components/src/lib/CustomProperties/Config/CustomPropertiesSettings.js");
316
- reactHotLoader.register(CREATING, "CREATING", "/home/ethan/FolioModules/stripes-kint-components/src/lib/CustomProperties/Config/CustomPropertiesSettings.js");
317
- reactHotLoader.register(VIEWING, "VIEWING", "/home/ethan/FolioModules/stripes-kint-components/src/lib/CustomProperties/Config/CustomPropertiesSettings.js");
318
- reactHotLoader.register(CustomPropertiesSettings, "CustomPropertiesSettings", "/home/ethan/FolioModules/stripes-kint-components/src/lib/CustomProperties/Config/CustomPropertiesSettings.js");
319
- reactHotLoader.register(_default, "default", "/home/ethan/FolioModules/stripes-kint-components/src/lib/CustomProperties/Config/CustomPropertiesSettings.js");
320
- })();
321
-
322
- ;
323
-
324
- (function () {
325
- var leaveModule = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.leaveModule : undefined;
326
- leaveModule && leaveModule(module);
327
- })();
291
+ exports.default = _default;