@k-int/stripes-kint-components 4.2.0 → 4.3.0

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 (176) hide show
  1. package/CHANGELOG.md +16 -0
  2. package/es/lib/ActionList/ActionList.js +4 -1
  3. package/es/lib/ActionList/ActionListFieldArray.js +12 -7
  4. package/es/lib/EditableRefdataList/EditableRefdataList.js +13 -4
  5. package/es/lib/ResponsiveButtonGroup/ResponsiveButtonGroup.js +8 -4
  6. package/es/lib/SASQLookupComponent/SASQLookupComponent.js +29 -16
  7. package/es/lib/hooks/useIntlKeyStore.js +2 -3
  8. package/junit.xml +139 -139
  9. package/package.json +2 -2
  10. package/src/artifacts/coverage-jest/lcov-report/ActionList/ActionList.js.html +1 -1
  11. package/src/artifacts/coverage-jest/lcov-report/ActionList/ActionListFieldArray.js.html +1 -1
  12. package/src/artifacts/coverage-jest/lcov-report/ActionList/index.html +1 -1
  13. package/src/artifacts/coverage-jest/lcov-report/ActionList/index.js.html +1 -1
  14. package/src/artifacts/coverage-jest/lcov-report/CustomProperties/Config/CustomPropertiesLookup.js.html +1 -1
  15. package/src/artifacts/coverage-jest/lcov-report/CustomProperties/Config/CustomPropertiesSettings.js.html +1 -1
  16. package/src/artifacts/coverage-jest/lcov-report/CustomProperties/Config/CustomPropertyForm.js.html +1 -1
  17. package/src/artifacts/coverage-jest/lcov-report/CustomProperties/Config/CustomPropertyView.js.html +1 -1
  18. package/src/artifacts/coverage-jest/lcov-report/CustomProperties/Config/index.html +1 -1
  19. package/src/artifacts/coverage-jest/lcov-report/CustomProperties/Config/index.js.html +1 -1
  20. package/src/artifacts/coverage-jest/lcov-report/CustomProperties/Edit/CustomPropertiesEdit.js.html +1 -1
  21. package/src/artifacts/coverage-jest/lcov-report/CustomProperties/Edit/CustomPropertiesEditCtx.js.html +1 -1
  22. package/src/artifacts/coverage-jest/lcov-report/CustomProperties/Edit/CustomPropertiesListField.js.html +1 -1
  23. package/src/artifacts/coverage-jest/lcov-report/CustomProperties/Edit/CustomPropertyField.js.html +1 -1
  24. package/src/artifacts/coverage-jest/lcov-report/CustomProperties/Edit/CustomPropertyFormCard.js.html +1 -1
  25. package/src/artifacts/coverage-jest/lcov-report/CustomProperties/Edit/index.html +1 -1
  26. package/src/artifacts/coverage-jest/lcov-report/CustomProperties/Edit/index.js.html +1 -1
  27. package/src/artifacts/coverage-jest/lcov-report/CustomProperties/Edit/testResources.js.html +1 -1
  28. package/src/artifacts/coverage-jest/lcov-report/CustomProperties/Filter/CustomPropertiesFilter.js.html +1 -1
  29. package/src/artifacts/coverage-jest/lcov-report/CustomProperties/Filter/CustomPropertiesFilterField.js.html +1 -1
  30. package/src/artifacts/coverage-jest/lcov-report/CustomProperties/Filter/CustomPropertiesFilterFieldArray.js.html +1 -1
  31. package/src/artifacts/coverage-jest/lcov-report/CustomProperties/Filter/CustomPropertiesFilterForm.js.html +1 -1
  32. package/src/artifacts/coverage-jest/lcov-report/CustomProperties/Filter/CustomPropertiesRule.js.html +1 -1
  33. package/src/artifacts/coverage-jest/lcov-report/CustomProperties/Filter/index.html +1 -1
  34. package/src/artifacts/coverage-jest/lcov-report/CustomProperties/Filter/index.js.html +1 -1
  35. package/src/artifacts/coverage-jest/lcov-report/CustomProperties/Filter/testResources.js.html +1 -1
  36. package/src/artifacts/coverage-jest/lcov-report/CustomProperties/Filter/useOperators.js.html +1 -1
  37. package/src/artifacts/coverage-jest/lcov-report/CustomProperties/Filter/useParseActiveFilterStrings.js.html +1 -1
  38. package/src/artifacts/coverage-jest/lcov-report/CustomProperties/Filter/useValueProps.js.html +1 -1
  39. package/src/artifacts/coverage-jest/lcov-report/CustomProperties/View/CustomPropertiesView.js.html +1 -1
  40. package/src/artifacts/coverage-jest/lcov-report/CustomProperties/View/CustomPropertiesViewCtx.js.html +1 -1
  41. package/src/artifacts/coverage-jest/lcov-report/CustomProperties/View/CustomPropertyCard.js.html +1 -1
  42. package/src/artifacts/coverage-jest/lcov-report/CustomProperties/View/index.html +1 -1
  43. package/src/artifacts/coverage-jest/lcov-report/CustomProperties/View/index.js.html +1 -1
  44. package/src/artifacts/coverage-jest/lcov-report/CustomProperties/View/testResources.js.html +1 -1
  45. package/src/artifacts/coverage-jest/lcov-report/CustomProperties/index.html +1 -1
  46. package/src/artifacts/coverage-jest/lcov-report/CustomProperties/index.js.html +1 -1
  47. package/src/artifacts/coverage-jest/lcov-report/CycleButton/CycleButton.js.html +1 -1
  48. package/src/artifacts/coverage-jest/lcov-report/CycleButton/index.html +1 -1
  49. package/src/artifacts/coverage-jest/lcov-report/CycleButton/index.js.html +1 -1
  50. package/src/artifacts/coverage-jest/lcov-report/EditableRefdataCategoryList/EditableRefdataCategoryList.js.html +1 -1
  51. package/src/artifacts/coverage-jest/lcov-report/EditableRefdataCategoryList/index.html +1 -1
  52. package/src/artifacts/coverage-jest/lcov-report/EditableRefdataCategoryList/index.js.html +1 -1
  53. package/src/artifacts/coverage-jest/lcov-report/EditableRefdataList/EditableRefdataList.js.html +1 -1
  54. package/src/artifacts/coverage-jest/lcov-report/EditableRefdataList/index.html +1 -1
  55. package/src/artifacts/coverage-jest/lcov-report/EditableRefdataList/index.js.html +1 -1
  56. package/src/artifacts/coverage-jest/lcov-report/EditableSettingsList/EditableSettingsList.js.html +1 -1
  57. package/src/artifacts/coverage-jest/lcov-report/EditableSettingsList/EditableSettingsListFieldArray.js.html +1 -1
  58. package/src/artifacts/coverage-jest/lcov-report/EditableSettingsList/SettingField/EditSettingValue.js.html +1 -1
  59. package/src/artifacts/coverage-jest/lcov-report/EditableSettingsList/SettingField/RenderSettingValue.js.html +1 -1
  60. package/src/artifacts/coverage-jest/lcov-report/EditableSettingsList/SettingField/SettingField.js.html +1 -1
  61. package/src/artifacts/coverage-jest/lcov-report/EditableSettingsList/SettingField/index.html +1 -1
  62. package/src/artifacts/coverage-jest/lcov-report/EditableSettingsList/SettingField/index.js.html +1 -1
  63. package/src/artifacts/coverage-jest/lcov-report/EditableSettingsList/index.html +1 -1
  64. package/src/artifacts/coverage-jest/lcov-report/EditableSettingsList/index.js.html +1 -1
  65. package/src/artifacts/coverage-jest/lcov-report/FormModal/FormModal.js.html +1 -1
  66. package/src/artifacts/coverage-jest/lcov-report/FormModal/index.html +1 -1
  67. package/src/artifacts/coverage-jest/lcov-report/FormModal/index.js.html +1 -1
  68. package/src/artifacts/coverage-jest/lcov-report/FormattedKintMessage/FormattedKintMessage.js.html +1 -1
  69. package/src/artifacts/coverage-jest/lcov-report/FormattedKintMessage/index.html +1 -1
  70. package/src/artifacts/coverage-jest/lcov-report/FormattedKintMessage/index.js.html +1 -1
  71. package/src/artifacts/coverage-jest/lcov-report/IconSelect/IconSelect.js.html +1 -1
  72. package/src/artifacts/coverage-jest/lcov-report/IconSelect/index.html +1 -1
  73. package/src/artifacts/coverage-jest/lcov-report/IconSelect/index.js.html +1 -1
  74. package/src/artifacts/coverage-jest/lcov-report/NoResultsMessage/NoResultsMessage.js.html +1 -1
  75. package/src/artifacts/coverage-jest/lcov-report/NoResultsMessage/index.html +1 -1
  76. package/src/artifacts/coverage-jest/lcov-report/NoResultsMessage/index.js.html +1 -1
  77. package/src/artifacts/coverage-jest/lcov-report/QueryTypedown/QueryTypedown.js.html +1 -1
  78. package/src/artifacts/coverage-jest/lcov-report/QueryTypedown/index.html +1 -1
  79. package/src/artifacts/coverage-jest/lcov-report/QueryTypedown/index.js.html +1 -1
  80. package/src/artifacts/coverage-jest/lcov-report/RefdataButtons/RefdataButtons.js.html +1 -1
  81. package/src/artifacts/coverage-jest/lcov-report/RefdataButtons/index.html +1 -1
  82. package/src/artifacts/coverage-jest/lcov-report/RefdataButtons/index.js.html +1 -1
  83. package/src/artifacts/coverage-jest/lcov-report/ResponsiveButtonGroup/ResponsiveButtonGroup.js.html +16 -4
  84. package/src/artifacts/coverage-jest/lcov-report/ResponsiveButtonGroup/index.html +3 -3
  85. package/src/artifacts/coverage-jest/lcov-report/ResponsiveButtonGroup/index.js.html +1 -1
  86. package/src/artifacts/coverage-jest/lcov-report/ResponsiveButtonGroup/useResponsiveButtonGroupSizing.js.html +1 -1
  87. package/src/artifacts/coverage-jest/lcov-report/RichSelect/RichSelect.js.html +1 -1
  88. package/src/artifacts/coverage-jest/lcov-report/RichSelect/index.html +1 -1
  89. package/src/artifacts/coverage-jest/lcov-report/RichSelect/index.js.html +1 -1
  90. package/src/artifacts/coverage-jest/lcov-report/RichSelect/useSelectedOption.js.html +1 -1
  91. package/src/artifacts/coverage-jest/lcov-report/SASQLookupComponent/SASQLookupComponent.js.html +103 -25
  92. package/src/artifacts/coverage-jest/lcov-report/SASQLookupComponent/TableBody/TableBody.js.html +1 -1
  93. package/src/artifacts/coverage-jest/lcov-report/SASQLookupComponent/TableBody/index.html +1 -1
  94. package/src/artifacts/coverage-jest/lcov-report/SASQLookupComponent/TableBody/index.js.html +1 -1
  95. package/src/artifacts/coverage-jest/lcov-report/SASQLookupComponent/index.html +9 -9
  96. package/src/artifacts/coverage-jest/lcov-report/SASQLookupComponent/index.js.html +1 -1
  97. package/src/artifacts/coverage-jest/lcov-report/SASQRoute/SASQRoute.js.html +1 -1
  98. package/src/artifacts/coverage-jest/lcov-report/SASQRoute/index.html +1 -1
  99. package/src/artifacts/coverage-jest/lcov-report/SASQRoute/index.js.html +1 -1
  100. package/src/artifacts/coverage-jest/lcov-report/SASQViewComponent/SASQViewComponent.js.html +1 -1
  101. package/src/artifacts/coverage-jest/lcov-report/SASQViewComponent/index.html +1 -1
  102. package/src/artifacts/coverage-jest/lcov-report/SASQViewComponent/index.js.html +1 -1
  103. package/src/artifacts/coverage-jest/lcov-report/SearchField/SearchField.js.html +1 -1
  104. package/src/artifacts/coverage-jest/lcov-report/SearchField/index.html +1 -1
  105. package/src/artifacts/coverage-jest/lcov-report/SearchField/index.js.html +1 -1
  106. package/src/artifacts/coverage-jest/lcov-report/SettingPage/SettingPage.js.html +1 -1
  107. package/src/artifacts/coverage-jest/lcov-report/SettingPage/SettingPagePane.js.html +1 -1
  108. package/src/artifacts/coverage-jest/lcov-report/SettingPage/index.html +1 -1
  109. package/src/artifacts/coverage-jest/lcov-report/SettingPage/index.js.html +1 -1
  110. package/src/artifacts/coverage-jest/lcov-report/Typedown/Typedown.js.html +1 -1
  111. package/src/artifacts/coverage-jest/lcov-report/Typedown/index.html +1 -1
  112. package/src/artifacts/coverage-jest/lcov-report/Typedown/index.js.html +1 -1
  113. package/src/artifacts/coverage-jest/lcov-report/constants/customProperties.js.html +1 -1
  114. package/src/artifacts/coverage-jest/lcov-report/constants/eventCodes.js.html +1 -1
  115. package/src/artifacts/coverage-jest/lcov-report/constants/index.html +1 -1
  116. package/src/artifacts/coverage-jest/lcov-report/contexts/SettingsContext.js.html +1 -1
  117. package/src/artifacts/coverage-jest/lcov-report/contexts/index.html +1 -1
  118. package/src/artifacts/coverage-jest/lcov-report/contexts/index.js.html +1 -1
  119. package/src/artifacts/coverage-jest/lcov-report/hooks/index.html +1 -1
  120. package/src/artifacts/coverage-jest/lcov-report/hooks/index.js.html +1 -1
  121. package/src/artifacts/coverage-jest/lcov-report/hooks/settingsHooks/index.html +1 -1
  122. package/src/artifacts/coverage-jest/lcov-report/hooks/settingsHooks/index.js.html +1 -1
  123. package/src/artifacts/coverage-jest/lcov-report/hooks/settingsHooks/useAppSettings.js.html +1 -1
  124. package/src/artifacts/coverage-jest/lcov-report/hooks/settingsHooks/useSettingSection.js.html +1 -1
  125. package/src/artifacts/coverage-jest/lcov-report/hooks/settingsHooks/useSettings.js.html +1 -1
  126. package/src/artifacts/coverage-jest/lcov-report/hooks/typedownHooks/index.html +1 -1
  127. package/src/artifacts/coverage-jest/lcov-report/hooks/typedownHooks/index.js.html +1 -1
  128. package/src/artifacts/coverage-jest/lcov-report/hooks/typedownHooks/useTypedown.js.html +1 -1
  129. package/src/artifacts/coverage-jest/lcov-report/hooks/typedownHooks/useTypedownData.js.html +1 -1
  130. package/src/artifacts/coverage-jest/lcov-report/hooks/typedownHooks/useTypedownToggle.js.html +1 -1
  131. package/src/artifacts/coverage-jest/lcov-report/hooks/useActiveElement.js.html +1 -1
  132. package/src/artifacts/coverage-jest/lcov-report/hooks/useCustomProperties.js.html +1 -1
  133. package/src/artifacts/coverage-jest/lcov-report/hooks/useHelperApp.js.html +1 -1
  134. package/src/artifacts/coverage-jest/lcov-report/hooks/useIntlKey.js.html +1 -1
  135. package/src/artifacts/coverage-jest/lcov-report/hooks/useIntlKeyStore.js.html +2 -2
  136. package/src/artifacts/coverage-jest/lcov-report/hooks/useInvalidateRefdata.js.html +1 -1
  137. package/src/artifacts/coverage-jest/lcov-report/hooks/useKintIntl.js.html +1 -1
  138. package/src/artifacts/coverage-jest/lcov-report/hooks/useKiwtFieldArray.js.html +1 -1
  139. package/src/artifacts/coverage-jest/lcov-report/hooks/useKiwtSASQuery.js.html +1 -1
  140. package/src/artifacts/coverage-jest/lcov-report/hooks/useLocalStorageState.js.html +1 -1
  141. package/src/artifacts/coverage-jest/lcov-report/hooks/useMutateCustomProperties.js.html +1 -1
  142. package/src/artifacts/coverage-jest/lcov-report/hooks/useMutateRefdataCategory.js.html +1 -1
  143. package/src/artifacts/coverage-jest/lcov-report/hooks/useMutateRefdataValue.js.html +1 -1
  144. package/src/artifacts/coverage-jest/lcov-report/hooks/useQIndex.js.html +1 -1
  145. package/src/artifacts/coverage-jest/lcov-report/hooks/useRefdata.js.html +1 -1
  146. package/src/artifacts/coverage-jest/lcov-report/hooks/useSASQQueryMeta.js.html +1 -1
  147. package/src/artifacts/coverage-jest/lcov-report/hooks/useTemplates.js.html +1 -1
  148. package/src/artifacts/coverage-jest/lcov-report/index.html +14 -14
  149. package/src/artifacts/coverage-jest/lcov-report/utils/buildUrl.js.html +1 -1
  150. package/src/artifacts/coverage-jest/lcov-report/utils/generateKiwtQuery.js.html +1 -1
  151. package/src/artifacts/coverage-jest/lcov-report/utils/generateKiwtQueryParams.js.html +1 -1
  152. package/src/artifacts/coverage-jest/lcov-report/utils/groupCustomPropertiesByCtx.js.html +1 -1
  153. package/src/artifacts/coverage-jest/lcov-report/utils/highlightString.js.html +1 -1
  154. package/src/artifacts/coverage-jest/lcov-report/utils/index.html +1 -1
  155. package/src/artifacts/coverage-jest/lcov-report/utils/index.js.html +1 -1
  156. package/src/artifacts/coverage-jest/lcov-report/utils/matchString.js.html +1 -1
  157. package/src/artifacts/coverage-jest/lcov-report/utils/parseErrorResponse.js.html +1 -1
  158. package/src/artifacts/coverage-jest/lcov-report/utils/parseKiwtQueryGroups.js.html +1 -1
  159. package/src/artifacts/coverage-jest/lcov-report/utils/refdataOptions.js.html +1 -1
  160. package/src/artifacts/coverage-jest/lcov-report/utils/refdataQueryKey.js.html +1 -1
  161. package/src/artifacts/coverage-jest/lcov-report/utils/selectorSafe.js.html +1 -1
  162. package/src/artifacts/coverage-jest/lcov-report/utils/sortByLabel.js.html +1 -1
  163. package/src/artifacts/coverage-jest/lcov-report/utils/toCamelCase.js.html +1 -1
  164. package/src/artifacts/coverage-jest/lcov-report/utils/typedownQueryKey.js.html +1 -1
  165. package/src/artifacts/coverage-jest/lcov-report/utils/validators.js.html +1 -1
  166. package/src/artifacts/coverage-jest/lcov.info +151 -145
  167. package/src/lib/ActionList/ActionList.js +2 -0
  168. package/src/lib/ActionList/ActionListFieldArray.js +13 -8
  169. package/src/lib/ActionList/README.md +2 -2
  170. package/src/lib/EditableRefdataList/EditableRefdataList.js +16 -3
  171. package/src/lib/EditableRefdataList/README.md +1 -0
  172. package/src/lib/ResponsiveButtonGroup/README.md +1 -0
  173. package/src/lib/ResponsiveButtonGroup/ResponsiveButtonGroup.js +5 -1
  174. package/src/lib/SASQLookupComponent/SASQLookupComponent.js +44 -18
  175. package/src/lib/hooks/useIntlKeyStore.js +1 -1
  176. package/styles/TypeDown.css +37 -2
package/CHANGELOG.md CHANGED
@@ -1,3 +1,19 @@
1
+ ## 4.3.0 2023-01-27
2
+ * ActionList
3
+ * Tweaks to props passed to fieldComponents functions
4
+ * Same property object passed to validateFields now
5
+ * EditableRefdataList
6
+ * Prop added `allowSpecial`, default value `false`
7
+ * With this property set to false, the component on creation will strip out all non-alphanumeric and non dash/underscore characters, and replace them with `_` for the _value_ field, it will not affect the _label_ of the refdata (Since the value field is created from the entered label).
8
+ * ResponsiveButtonGroup
9
+ * Added dropdownTriggerProps to pass extra implementation props to the dropdown menu trigger
10
+ * Added default aria-label="menu" to the dropdownTriggerProps
11
+ * SASQLookupComponent
12
+ * Tweaked filterPaneProps and mainPaneProps, now lastMenu and firstMenu will get access to certain internal state, such as filterCount, filterPaneVisible (and handlers), among others.
13
+ * Added tooltip to collapse/expand filter pane as default. (Swapped internally to use stripes-smart-components to bring in line with other apps)
14
+ * Typedown
15
+ * Small styling changes, rounded corners of the dropdown menu now depend on whether the menu is rendered below, above, or floating
16
+
1
17
  ## 4.2.0 2022-12-09
2
18
  * Changed all test resources over to stripes-erm-testing and jest manual mocks
3
19
  * ResponsiveButtonGroup
@@ -12,7 +12,7 @@ var _reactFinalFormArrays = require("react-final-form-arrays");
12
12
  var _finalFormArrays = _interopRequireDefault(require("final-form-arrays"));
13
13
  var _ActionListFieldArray = _interopRequireDefault(require("./ActionListFieldArray"));
14
14
  var _jsxRuntime = require("react/jsx-runtime");
15
- var _excluded = ["actionAssigner", "columnMapping", "contentData", "creatableFields", "createCallback", "defaultNewObject", "editableFields", "fieldComponents", "hideCreateButton", "intlKey", "intlNS", "label", "labelOverrides", "validateFields", "visibleFields"];
15
+ var _excluded = ["actionAssigner", "columnMapping", "contentData", "creatableFields", "createCallback", "defaultNewObject", "editableFields", "fieldComponents", "fieldProps", "hideCreateButton", "intlKey", "intlNS", "label", "labelOverrides", "validateFields", "visibleFields"];
16
16
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
17
17
  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); }
18
18
  function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
@@ -32,6 +32,7 @@ var propTypes = {
32
32
  defaultNewObject: _propTypes.default.object,
33
33
  editableFields: _propTypes.default.object,
34
34
  fieldComponents: _propTypes.default.object,
35
+ fieldProps: _propTypes.default.object,
35
36
  hideCreateButton: _propTypes.default.bool,
36
37
  intlKey: _propTypes.default.string,
37
38
  intlNS: _propTypes.default.string,
@@ -53,6 +54,8 @@ var ActionList = /*#__PURE__*/(0, _react.forwardRef)(function (_ref, ref) {
53
54
  editableFields = _ref$editableFields === void 0 ? {} : _ref$editableFields,
54
55
  _ref$fieldComponents = _ref.fieldComponents,
55
56
  fieldComponents = _ref$fieldComponents === void 0 ? {} : _ref$fieldComponents,
57
+ _ref$fieldProps = _ref.fieldProps,
58
+ fieldProps = _ref$fieldProps === void 0 ? {} : _ref$fieldProps,
56
59
  hideCreateButton = _ref.hideCreateButton,
57
60
  passedIntlKey = _ref.intlKey,
58
61
  passedIntlNS = _ref.intlNS,
@@ -292,7 +292,7 @@ var ActionListFieldArray = /*#__PURE__*/(0, _react.forwardRef)(function (_ref2,
292
292
  action: action,
293
293
  "aria-describedby": ariaIds.sub,
294
294
  "aria-labelledby": ariaIds.text,
295
- disabled: editing,
295
+ disabled: !!editing,
296
296
  onClick: function onClick(e) {
297
297
  e.stopPropagation();
298
298
  if (actionFunction) {
@@ -310,7 +310,7 @@ var ActionListFieldArray = /*#__PURE__*/(0, _react.forwardRef)(function (_ref2,
310
310
  return /*#__PURE__*/(0, _jsxRuntime.jsx)(ActionTrigger, {
311
311
  action: action,
312
312
  ariaLabel: ariaLabel,
313
- disabled: editing,
313
+ disabled: !!editing,
314
314
  onClick: function onClick(e) {
315
315
  e.stopPropagation();
316
316
  if (actionFunction) {
@@ -371,10 +371,15 @@ var ActionListFieldArray = /*#__PURE__*/(0, _react.forwardRef)(function (_ref2,
371
371
  true => Field, false => display value
372
372
  */
373
373
  if (!cd.id && createFunction(cd) || !!cd.id && editFunction(cd)) {
374
- var validateFunction = validateFields !== null && validateFields !== void 0 && validateFields[key] ? validateFields === null || validateFields === void 0 ? void 0 : validateFields[key](cd) : null;
375
- returnValue = fieldComponents[key] ? fieldComponents[key]({
376
- name: "".concat(cd.fieldName, ".").concat(key)
377
- }) : /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactFinalForm.Field, {
374
+ var passedObject = {
375
+ allValues: values,
376
+ index: cd === null || cd === void 0 ? void 0 : cd.fieldIndex,
377
+ key: key,
378
+ name: "".concat(cd.fieldName, ".").concat(key),
379
+ rowFieldName: cd.fieldName
380
+ };
381
+ var validateFunction = validateFields !== null && validateFields !== void 0 && validateFields[key] ? validateFields === null || validateFields === void 0 ? void 0 : validateFields[key](passedObject) : null;
382
+ returnValue = fieldComponents[key] ? fieldComponents[key](passedObject) : /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactFinalForm.Field, {
378
383
  autoFocus: autoFocus,
379
384
  component: _components.TextField,
380
385
  marginBottom0: true,
@@ -400,7 +405,7 @@ var ActionListFieldArray = /*#__PURE__*/(0, _react.forwardRef)(function (_ref2,
400
405
  className: _ActionListFieldArray.default.headerText,
401
406
  children: label
402
407
  }), !hideCreateButton && /*#__PURE__*/(0, _jsxRuntime.jsx)(_components.Button, {
403
- disabled: editing || !createCallback,
408
+ disabled: !!editing || !createCallback,
404
409
  marginBottom0: true,
405
410
  onClick: handleClickCreate,
406
411
  children: kintIntl.formatKintMessage({
@@ -7,6 +7,7 @@ Object.defineProperty(exports, "__esModule", {
7
7
  exports.default = void 0;
8
8
  var _react = _interopRequireWildcard(require("react"));
9
9
  var _propTypes = _interopRequireDefault(require("prop-types"));
10
+ var _get = _interopRequireDefault(require("lodash/get"));
10
11
  var _components = require("@folio/stripes/components");
11
12
  var _core = require("@folio/stripes/core");
12
13
  var _hooks = require("../hooks");
@@ -33,6 +34,7 @@ function _iterableToArrayLimit(arr, i) { var _i = null == arr ? null : "undefine
33
34
  function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
34
35
  var propTypes = {
35
36
  afterQueryCalls: _propTypes.default.object,
37
+ allowSpecial: _propTypes.default.bool,
36
38
  catchQueryCalls: _propTypes.default.object,
37
39
  desc: _propTypes.default.string,
38
40
  intlKey: _propTypes.default.string,
@@ -44,6 +46,8 @@ var propTypes = {
44
46
  var EditableRefdataList = function EditableRefdataList(_ref) {
45
47
  var _deleteModal$refdata2;
46
48
  var afterQueryCalls = _ref.afterQueryCalls,
49
+ _ref$allowSpecial = _ref.allowSpecial,
50
+ allowSpecial = _ref$allowSpecial === void 0 ? false : _ref$allowSpecial,
47
51
  catchQueryCalls = _ref.catchQueryCalls,
48
52
  desc = _ref.desc,
49
53
  passedIntlKey = _ref.intlKey,
@@ -227,7 +231,14 @@ var EditableRefdataList = function EditableRefdataList(_ref) {
227
231
  }
228
232
  },
229
233
  createCallback: refdata !== null && refdata !== void 0 && refdata.internal ? null : function (data) {
230
- return editRefdataValue(data);
234
+ if (allowSpecial) {
235
+ editRefdataValue(data);
236
+ } else {
237
+ var _selectorSafe;
238
+ editRefdataValue(_objectSpread(_objectSpread({}, data), {}, {
239
+ value: (_selectorSafe = (0, _utils.selectorSafe)(data === null || data === void 0 ? void 0 : data.label)) === null || _selectorSafe === void 0 ? void 0 : _selectorSafe.replaceAll('%20', ' ')
240
+ }));
241
+ }
231
242
  },
232
243
  editableFields: {
233
244
  value: function value() {
@@ -236,9 +247,7 @@ var EditableRefdataList = function EditableRefdataList(_ref) {
236
247
  },
237
248
  label: label,
238
249
  validateFields: {
239
- label: function label() {
240
- return _validators.required;
241
- }
250
+ label: _validators.required
242
251
  },
243
252
  visibleFields: ['label', 'value']
244
253
  }), /*#__PURE__*/(0, _jsxRuntime.jsx)(_components.ConfirmationModal, {
@@ -12,7 +12,7 @@ var _components = require("@folio/stripes/components");
12
12
  var _ResponsiveButtonGroup = _interopRequireDefault(require("../../../styles/ResponsiveButtonGroup.css"));
13
13
  var _useResponsiveButtonGroupSizing = _interopRequireDefault(require("./useResponsiveButtonGroupSizing"));
14
14
  var _jsxRuntime = require("react/jsx-runtime");
15
- var _excluded = ["children", "className", "fullWidth", "marginBottom0", "selectedIndex", "tagName"];
15
+ var _excluded = ["children", "className", "dropdownTriggerProps", "fullWidth", "marginBottom0", "selectedIndex", "tagName"];
16
16
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
17
17
  function _toConsumableArray(arr) { return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableSpread(); }
18
18
  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."); }
@@ -30,6 +30,7 @@ function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) r
30
30
  var propTypes = {
31
31
  children: _propTypes.default.node,
32
32
  className: _propTypes.default.string,
33
+ dropdownTriggerProps: _propTypes.default.object,
33
34
  fullWidth: _propTypes.default.bool,
34
35
  marginBottom0: _propTypes.default.bool,
35
36
  selectedIndex: _propTypes.default.number,
@@ -56,6 +57,8 @@ var calculateCumulativeThreshold = function calculateCumulativeThreshold(arrayOf
56
57
  var ResponsiveButtonGroup = function ResponsiveButtonGroup(props) {
57
58
  var childButtons = props.children,
58
59
  className = props.className,
60
+ _props$dropdownTrigge = props.dropdownTriggerProps,
61
+ dropdownTriggerProps = _props$dropdownTrigge === void 0 ? {} : _props$dropdownTrigge,
59
62
  _props$fullWidth = props.fullWidth,
60
63
  fullWidth = _props$fullWidth === void 0 ? false : _props$fullWidth,
61
64
  marginBottom0 = props.marginBottom0,
@@ -81,20 +84,21 @@ var ResponsiveButtonGroup = function ResponsiveButtonGroup(props) {
81
84
  open = _ref.open,
82
85
  ariaProps = _ref.ariaProps,
83
86
  getTriggerProps = _ref.getTriggerProps;
84
- return /*#__PURE__*/(0, _jsxRuntime.jsx)(_components.Button, _objectSpread(_objectSpread(_objectSpread({
87
+ return /*#__PURE__*/(0, _jsxRuntime.jsx)(_components.Button, _objectSpread(_objectSpread(_objectSpread(_objectSpread({
85
88
  ref: triggerRef,
89
+ "aria-label": "menu",
86
90
  buttonClass: (0, _classnames6.default)(_ResponsiveButtonGroup.default.width100, _defineProperty({}, "".concat(_ResponsiveButtonGroup.default.dropdownButtonClass), ((_displayButtons$lengt = displayButtons === null || displayButtons === void 0 ? void 0 : displayButtons.length) !== null && _displayButtons$lengt !== void 0 ? _displayButtons$lengt : 0) > 0), _defineProperty({}, "".concat(_ResponsiveButtonGroup.default.marginBottom), !marginBottom0), _defineProperty({}, "".concat(_ResponsiveButtonGroup.default.marginBottom0), marginBottom0)),
87
91
  buttonStyle: selectedIndex > buttonThreshold ? 'primary' : 'default',
88
92
  onClick: onToggle,
89
93
  onKeyDown: keyHandler,
90
94
  type: "button"
91
- }, getTriggerProps()), ariaProps), {}, {
95
+ }, getTriggerProps()), ariaProps), dropdownTriggerProps), {}, {
92
96
  children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_components.Icon, {
93
97
  icon: open ? 'triangle-up' : 'triangle-down',
94
98
  iconPosition: "end"
95
99
  })
96
100
  }));
97
- }, [buttonThreshold, marginBottom0, selectedIndex]);
101
+ }, [buttonThreshold, dropdownTriggerProps, marginBottom0, selectedIndex]);
98
102
  var displayButtons = (0, _react.useMemo)(function () {
99
103
  var _buttons$slice;
100
104
  return buttons === null || buttons === void 0 ? void 0 : (_buttons$slice = buttons.slice(0, buttonThreshold + 1)) === null || _buttons$slice === void 0 ? void 0 : _buttons$slice.map(function (button, index) {
@@ -16,7 +16,9 @@ var _utils = require("../utils");
16
16
  var _hooks = require("../hooks");
17
17
  var _TableBody = _interopRequireDefault(require("./TableBody"));
18
18
  var _jsxRuntime = require("react/jsx-runtime");
19
- var _excluded = ["data"];
19
+ var _excluded = ["data"],
20
+ _excluded2 = ["filterPaneFirstMenu", "filterPaneLastMenu"],
21
+ _excluded3 = ["mainPaneFirstMenu", "mainPaneLastMenu"];
20
22
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
21
23
  function _toConsumableArray(arr) { return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableSpread(); }
22
24
  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."); }
@@ -139,25 +141,38 @@ var SASQLookupComponent = /*#__PURE__*/(0, _react.forwardRef)(function (props, r
139
141
  var disableReset = !filterChanged && !searchChanged;
140
142
  var filterCount = activeFilters.string ? activeFilters.string.split(',').length : 0;
141
143
  var Body = RenderBody !== null && RenderBody !== void 0 ? RenderBody : _TableBody.default;
144
+ var filterPaneFirstMenu = filterPaneProps.filterPaneFirstMenu,
145
+ filterPaneLastMenu = filterPaneProps.filterPaneLastMenu,
146
+ restOfFilterPaneProps = _objectWithoutProperties(filterPaneProps, _excluded2);
147
+ var mainPaneFirstMenu = mainPaneProps.mainPaneFirstMenu,
148
+ mainPaneLastMenu = mainPaneProps.mainPaneLastMenu,
149
+ restOfMainPaneProps = _objectWithoutProperties(mainPaneProps, _excluded3);
150
+ var internalStateProps = {
151
+ activeFilters: activeFilters,
152
+ filterCount: filterCount,
153
+ filterPaneVisible: filterPaneVisible,
154
+ searchChanged: searchChanged,
155
+ searchValue: searchValue,
156
+ setFilterPaneVisible: setFilterPaneVisible,
157
+ toggleFilterPane: toggleFilterPane
158
+ };
142
159
  return /*#__PURE__*/(0, _jsxRuntime.jsxs)(_smartComponents.PersistedPaneset, _objectSpread(_objectSpread({
143
160
  appId: namespace,
144
161
  id: "".concat(id, "-paneset")
145
162
  }, persistedPanesetProps), {}, {
146
163
  children: [filterPaneVisible && /*#__PURE__*/(0, _jsxRuntime.jsx)(_components.Pane, _objectSpread(_objectSpread({
147
164
  defaultWidth: "20%",
165
+ firstMenu: filterPaneFirstMenu ? filterPaneFirstMenu(internalStateProps) : null,
148
166
  id: "".concat(id, "-filter-pane"),
149
- lastMenu: /*#__PURE__*/(0, _jsxRuntime.jsx)(_components.PaneMenu, {
150
- children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_components.IconButton, {
151
- icon: "caret-left",
152
- onClick: function onClick() {
153
- return setFilterPaneVisible(false);
154
- }
167
+ lastMenu: filterPaneLastMenu ? filterPaneLastMenu(internalStateProps) : /*#__PURE__*/(0, _jsxRuntime.jsx)(_components.PaneMenu, {
168
+ children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_smartComponents.CollapseFilterPaneButton, {
169
+ onClick: toggleFilterPane
155
170
  })
156
171
  }),
157
172
  paneTitle: /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactIntl.FormattedMessage, {
158
173
  id: "stripes-smart-components.searchAndFilter"
159
174
  })
160
- }, filterPaneProps), {}, {
175
+ }, restOfFilterPaneProps), {}, {
161
176
  children: /*#__PURE__*/(0, _jsxRuntime.jsxs)("form", {
162
177
  onSubmit: onSubmitSearch,
163
178
  children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(FilterPaneHeaderComponent, {}), !noSearchField && /*#__PURE__*/(0, _jsxRuntime.jsxs)(_jsxRuntime.Fragment, {
@@ -208,16 +223,14 @@ var SASQLookupComponent = /*#__PURE__*/(0, _react.forwardRef)(function (props, r
208
223
  })
209
224
  })), /*#__PURE__*/(0, _jsxRuntime.jsx)(_components.Pane, _objectSpread(_objectSpread({
210
225
  defaultWidth: "fill",
211
- firstMenu: !filterPaneVisible ? /*#__PURE__*/(0, _jsxRuntime.jsx)(_components.PaneMenu, {
212
- children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_components.IconButton, {
213
- badgeCount: filterCount,
214
- icon: "caret-right",
215
- onClick: function onClick() {
216
- return setFilterPaneVisible(true);
217
- }
226
+ firstMenu: mainPaneFirstMenu ? mainPaneFirstMenu(internalStateProps) : !filterPaneVisible ? /*#__PURE__*/(0, _jsxRuntime.jsx)(_components.PaneMenu, {
227
+ children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_smartComponents.ExpandFilterPaneButton, {
228
+ filterCount: filterCount,
229
+ onClick: toggleFilterPane
218
230
  })
219
231
  }) : null,
220
232
  id: "".concat(id, "-main-pane"),
233
+ lastMenu: mainPaneLastMenu ? mainPaneLastMenu(internalStateProps) : null,
221
234
  noOverflow: true,
222
235
  padContent: false,
223
236
  paneSub: kintIntl.formatKintMessage({
@@ -226,7 +239,7 @@ var SASQLookupComponent = /*#__PURE__*/(0, _react.forwardRef)(function (props, r
226
239
  }, {
227
240
  total: data === null || data === void 0 ? void 0 : data.total
228
241
  })
229
- }, mainPaneProps), {}, {
242
+ }, restOfMainPaneProps), {}, {
230
243
  children: /*#__PURE__*/(0, _jsxRuntime.jsx)(Body, _objectSpread(_objectSpread(_objectSpread(_objectSpread({
231
244
  data: data,
232
245
  filterPaneVisible: filterPaneVisible,
@@ -5,8 +5,7 @@ Object.defineProperty(exports, "__esModule", {
5
5
  });
6
6
  exports.default = void 0;
7
7
  var _core = require("@folio/stripes/core");
8
- var _zustand = _interopRequireDefault(require("zustand"));
9
- function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
8
+ var _zustand = require("zustand");
10
9
  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); }
11
10
  function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
12
11
  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; }
@@ -15,7 +14,7 @@ function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { va
15
14
  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; }
16
15
  function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return _typeof(key) === "symbol" ? key : String(key); }
17
16
  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); }
18
- var useIntlKeyStore = (0, _zustand.default)(function (set, get) {
17
+ var useIntlKeyStore = (0, _zustand.create)(function (set, get) {
19
18
  return {
20
19
  intlKeys: {},
21
20
  addKey: function addKey(key, namespace) {