@k-int/stripes-kint-components 2.4.0 → 2.5.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (161) hide show
  1. package/CHANGELOG.md +13 -0
  2. package/README.md +14 -1
  3. package/es/lib/ActionList/ActionList.js +20 -7
  4. package/es/lib/ActionList/ActionListFieldArray.js +86 -85
  5. package/es/lib/CustomProperties/Config/CustomPropertiesSettings.js +1 -3
  6. package/es/lib/CustomProperties/View/CustomPropertyCard.js +2 -2
  7. package/es/lib/EditableRefdataList/EditableRefdataList.js +3 -0
  8. package/es/lib/EditableSettingsList/EditableSettingsList.js +4 -1
  9. package/es/lib/FormModal/FormModal.js +10 -1
  10. package/es/lib/SASQLookupComponent/SASQLookupComponent.js +3 -2
  11. package/es/lib/Typedown/Typedown.js +5 -7
  12. package/es/lib/hooks/settingsHooks/useSettingSection.js +16 -3
  13. package/es/lib/hooks/settingsHooks/useSettings.js +14 -7
  14. package/es/lib/hooks/useKiwtSASQuery.js +8 -2
  15. package/es/lib/utils/generateKiwtQueryParams.js +21 -4
  16. package/junit.xml +37 -37
  17. package/package.json +1 -2
  18. package/src/artifacts/coverage-jest/lcov-report/ActionList/ActionList.js.html +42 -12
  19. package/src/artifacts/coverage-jest/lcov-report/ActionList/ActionListFieldArray.js.html +222 -93
  20. package/src/artifacts/coverage-jest/lcov-report/ActionList/index.html +12 -12
  21. package/src/artifacts/coverage-jest/lcov-report/ActionList/index.js.html +1 -1
  22. package/src/artifacts/coverage-jest/lcov-report/CustomProperties/Config/CustomPropertiesLookup.js.html +1 -1
  23. package/src/artifacts/coverage-jest/lcov-report/CustomProperties/Config/CustomPropertiesSettings.js.html +20 -17
  24. package/src/artifacts/coverage-jest/lcov-report/CustomProperties/Config/CustomPropertyForm.js.html +1 -1
  25. package/src/artifacts/coverage-jest/lcov-report/CustomProperties/Config/CustomPropertyView.js.html +601 -0
  26. package/src/artifacts/coverage-jest/lcov-report/CustomProperties/Config/index.html +15 -15
  27. package/src/artifacts/coverage-jest/lcov-report/CustomProperties/Config/index.js.html +2 -2
  28. package/src/artifacts/coverage-jest/lcov-report/CustomProperties/Edit/CustomPropertiesEdit.js.html +190 -0
  29. package/src/artifacts/coverage-jest/lcov-report/CustomProperties/Edit/CustomPropertiesEditCtx.js.html +340 -0
  30. package/src/artifacts/coverage-jest/lcov-report/CustomProperties/Edit/CustomPropertiesListField.js.html +667 -0
  31. package/src/artifacts/coverage-jest/lcov-report/CustomProperties/Edit/CustomPropertyField.js.html +982 -0
  32. package/src/artifacts/coverage-jest/lcov-report/CustomProperties/Edit/CustomPropertyFormCard.js.html +478 -0
  33. package/src/artifacts/coverage-jest/lcov-report/CustomProperties/Edit/index.html +191 -0
  34. package/src/artifacts/coverage-jest/lcov-report/CustomProperties/Edit/index.js.html +100 -0
  35. package/src/artifacts/coverage-jest/lcov-report/CustomProperties/Filter/CustomPropertiesFilter.js.html +460 -0
  36. package/src/artifacts/coverage-jest/lcov-report/CustomProperties/Filter/CustomPropertiesFilterField.js.html +529 -0
  37. package/src/artifacts/coverage-jest/lcov-report/CustomProperties/Filter/CustomPropertiesFilterFieldArray.js.html +424 -0
  38. package/src/artifacts/coverage-jest/lcov-report/CustomProperties/Filter/CustomPropertiesFilterForm.js.html +307 -0
  39. package/src/artifacts/coverage-jest/lcov-report/CustomProperties/Filter/CustomPropertiesRule.js.html +451 -0
  40. package/src/artifacts/coverage-jest/lcov-report/CustomProperties/Filter/index.html +236 -0
  41. package/src/artifacts/coverage-jest/lcov-report/CustomProperties/Filter/index.js.html +103 -0
  42. package/src/artifacts/coverage-jest/lcov-report/CustomProperties/Filter/useOperators.js.html +250 -0
  43. package/src/artifacts/coverage-jest/lcov-report/CustomProperties/Filter/useParseActiveFilterStrings.js.html +190 -0
  44. package/src/artifacts/coverage-jest/lcov-report/CustomProperties/Filter/useValueProps.js.html +220 -0
  45. package/src/artifacts/coverage-jest/lcov-report/CustomProperties/View/CustomPropertiesView.js.html +193 -0
  46. package/src/artifacts/coverage-jest/lcov-report/CustomProperties/View/CustomPropertiesViewCtx.js.html +436 -0
  47. package/src/artifacts/coverage-jest/lcov-report/CustomProperties/View/CustomPropertyCard.js.html +616 -0
  48. package/src/artifacts/coverage-jest/lcov-report/CustomProperties/View/index.html +161 -0
  49. package/src/artifacts/coverage-jest/lcov-report/CustomProperties/View/index.js.html +94 -0
  50. package/src/artifacts/coverage-jest/lcov-report/CustomProperties/index.html +116 -0
  51. package/src/artifacts/coverage-jest/lcov-report/CustomProperties/index.js.html +175 -0
  52. package/src/artifacts/coverage-jest/lcov-report/EditableRefdataList/EditableRefdataList.js.html +33 -18
  53. package/src/artifacts/coverage-jest/lcov-report/EditableRefdataList/index.html +5 -5
  54. package/src/artifacts/coverage-jest/lcov-report/EditableRefdataList/index.js.html +1 -1
  55. package/src/artifacts/coverage-jest/lcov-report/EditableSettingsList/EditableSettingsList.js.html +8 -2
  56. package/src/artifacts/coverage-jest/lcov-report/EditableSettingsList/EditableSettingsListFieldArray.js.html +1 -1
  57. package/src/artifacts/coverage-jest/lcov-report/EditableSettingsList/SettingField/EditSettingValue.js.html +1 -1
  58. package/src/artifacts/coverage-jest/lcov-report/EditableSettingsList/SettingField/RenderSettingValue.js.html +1 -1
  59. package/src/artifacts/coverage-jest/lcov-report/EditableSettingsList/SettingField/SettingField.js.html +1 -1
  60. package/src/artifacts/coverage-jest/lcov-report/EditableSettingsList/SettingField/index.html +1 -1
  61. package/src/artifacts/coverage-jest/lcov-report/EditableSettingsList/SettingField/index.js.html +1 -1
  62. package/src/artifacts/coverage-jest/lcov-report/EditableSettingsList/index.html +1 -1
  63. package/src/artifacts/coverage-jest/lcov-report/EditableSettingsList/index.js.html +1 -1
  64. package/src/artifacts/coverage-jest/lcov-report/FormModal/FormModal.js.html +102 -24
  65. package/src/artifacts/coverage-jest/lcov-report/FormModal/index.html +9 -9
  66. package/src/artifacts/coverage-jest/lcov-report/FormModal/index.js.html +1 -1
  67. package/src/artifacts/coverage-jest/lcov-report/NoResultsMessage/NoResultsMessage.js.html +1 -1
  68. package/src/artifacts/coverage-jest/lcov-report/NoResultsMessage/index.html +1 -1
  69. package/src/artifacts/coverage-jest/lcov-report/NoResultsMessage/index.js.html +1 -1
  70. package/src/artifacts/coverage-jest/lcov-report/QueryTypedown/QueryTypedown.js.html +14 -8
  71. package/src/artifacts/coverage-jest/lcov-report/QueryTypedown/index.html +11 -11
  72. package/src/artifacts/coverage-jest/lcov-report/QueryTypedown/index.js.html +1 -1
  73. package/src/artifacts/coverage-jest/lcov-report/RefdataButtons/RefdataButtons.js.html +1 -1
  74. package/src/artifacts/coverage-jest/lcov-report/RefdataButtons/index.html +1 -1
  75. package/src/artifacts/coverage-jest/lcov-report/RefdataButtons/index.js.html +1 -1
  76. package/src/artifacts/coverage-jest/lcov-report/SASQLookupComponent/SASQLookupComponent.js.html +60 -153
  77. package/src/artifacts/coverage-jest/lcov-report/SASQLookupComponent/TableBody/TableBody.js.html +373 -0
  78. package/src/artifacts/coverage-jest/lcov-report/SASQLookupComponent/TableBody/index.html +131 -0
  79. package/src/artifacts/coverage-jest/lcov-report/SASQLookupComponent/TableBody/index.js.html +88 -0
  80. package/src/artifacts/coverage-jest/lcov-report/SASQLookupComponent/index.html +9 -9
  81. package/src/artifacts/coverage-jest/lcov-report/SASQLookupComponent/index.js.html +6 -3
  82. package/src/artifacts/coverage-jest/lcov-report/SASQRoute/SASQRoute.js.html +2 -2
  83. package/src/artifacts/coverage-jest/lcov-report/SASQRoute/index.html +1 -1
  84. package/src/artifacts/coverage-jest/lcov-report/SASQRoute/index.js.html +1 -1
  85. package/src/artifacts/coverage-jest/lcov-report/SASQViewComponent/SASQViewComponent.js.html +1 -1
  86. package/src/artifacts/coverage-jest/lcov-report/SASQViewComponent/index.html +1 -1
  87. package/src/artifacts/coverage-jest/lcov-report/SASQViewComponent/index.js.html +1 -1
  88. package/src/artifacts/coverage-jest/lcov-report/SearchField/SearchField.js.html +1 -1
  89. package/src/artifacts/coverage-jest/lcov-report/SearchField/index.html +1 -1
  90. package/src/artifacts/coverage-jest/lcov-report/SearchField/index.js.html +1 -1
  91. package/src/artifacts/coverage-jest/lcov-report/SettingPage/SettingPage.js.html +1 -1
  92. package/src/artifacts/coverage-jest/lcov-report/SettingPage/SettingPagePane.js.html +1 -1
  93. package/src/artifacts/coverage-jest/lcov-report/SettingPage/index.html +1 -1
  94. package/src/artifacts/coverage-jest/lcov-report/SettingPage/index.js.html +1 -1
  95. package/src/artifacts/coverage-jest/lcov-report/Typedown/Typedown.js.html +7 -25
  96. package/src/artifacts/coverage-jest/lcov-report/Typedown/index.html +3 -3
  97. package/src/artifacts/coverage-jest/lcov-report/Typedown/index.js.html +1 -1
  98. package/src/artifacts/coverage-jest/lcov-report/constants/customProperties.js.html +7 -4
  99. package/src/artifacts/coverage-jest/lcov-report/constants/eventCodes.js.html +1 -1
  100. package/src/artifacts/coverage-jest/lcov-report/constants/index.html +5 -5
  101. package/src/artifacts/coverage-jest/lcov-report/contexts/SettingsContext.js.html +1 -1
  102. package/src/artifacts/coverage-jest/lcov-report/contexts/index.html +1 -1
  103. package/src/artifacts/coverage-jest/lcov-report/contexts/index.js.html +1 -1
  104. package/src/artifacts/coverage-jest/lcov-report/hooks/index.html +39 -9
  105. package/src/artifacts/coverage-jest/lcov-report/hooks/index.js.html +8 -2
  106. package/src/artifacts/coverage-jest/lcov-report/hooks/settingsHooks/index.html +5 -5
  107. package/src/artifacts/coverage-jest/lcov-report/hooks/settingsHooks/index.js.html +1 -1
  108. package/src/artifacts/coverage-jest/lcov-report/hooks/settingsHooks/useSettingSection.js.html +57 -6
  109. package/src/artifacts/coverage-jest/lcov-report/hooks/settingsHooks/useSettings.js.html +29 -8
  110. package/src/artifacts/coverage-jest/lcov-report/hooks/typedownHooks/index.html +7 -7
  111. package/src/artifacts/coverage-jest/lcov-report/hooks/typedownHooks/index.js.html +1 -1
  112. package/src/artifacts/coverage-jest/lcov-report/hooks/typedownHooks/useTypedown.js.html +1 -1
  113. package/src/artifacts/coverage-jest/lcov-report/hooks/typedownHooks/useTypedownData.js.html +26 -8
  114. package/src/artifacts/coverage-jest/lcov-report/hooks/typedownHooks/useTypedownToggle.js.html +1 -1
  115. package/src/artifacts/coverage-jest/lcov-report/hooks/useActiveElement.js.html +1 -1
  116. package/src/artifacts/coverage-jest/lcov-report/hooks/useAvailableCustomProperties.js.html +205 -0
  117. package/src/artifacts/coverage-jest/lcov-report/hooks/useCustomProperties.js.html +1 -1
  118. package/src/artifacts/coverage-jest/lcov-report/hooks/useHelperApp.js.html +1 -1
  119. package/src/artifacts/coverage-jest/lcov-report/hooks/useInvalidateRefdata.js.html +118 -0
  120. package/src/artifacts/coverage-jest/lcov-report/hooks/useKiwtFieldArray.js.html +1 -1
  121. package/src/artifacts/coverage-jest/lcov-report/hooks/useKiwtSASQuery.js.html +1 -1
  122. package/src/artifacts/coverage-jest/lcov-report/hooks/useLocalStorageState.js.html +1 -1
  123. package/src/artifacts/coverage-jest/lcov-report/hooks/useMutateCustomProperties.js.html +1 -1
  124. package/src/artifacts/coverage-jest/lcov-report/hooks/useMutateRefdataValue.js.html +21 -9
  125. package/src/artifacts/coverage-jest/lcov-report/hooks/useQIndex.js.html +1 -1
  126. package/src/artifacts/coverage-jest/lcov-report/hooks/useRefdata.js.html +6 -9
  127. package/src/artifacts/coverage-jest/lcov-report/hooks/useTemplates.js.html +1 -1
  128. package/src/artifacts/coverage-jest/lcov-report/index.html +126 -51
  129. package/src/artifacts/coverage-jest/lcov-report/utils/buildUrl.js.html +1 -1
  130. package/src/artifacts/coverage-jest/lcov-report/utils/generateKiwtQuery.js.html +1 -1
  131. package/src/artifacts/coverage-jest/lcov-report/utils/generateKiwtQueryParams.js.html +36 -9
  132. package/src/artifacts/coverage-jest/lcov-report/utils/groupCustomPropertiesByCtx.js.html +124 -0
  133. package/src/artifacts/coverage-jest/lcov-report/utils/highlightString.js.html +211 -0
  134. package/src/artifacts/coverage-jest/lcov-report/utils/index.html +95 -20
  135. package/src/artifacts/coverage-jest/lcov-report/utils/index.js.html +29 -2
  136. package/src/artifacts/coverage-jest/lcov-report/utils/matchString.js.html +127 -0
  137. package/src/artifacts/coverage-jest/lcov-report/utils/refdataOptions.js.html +1 -1
  138. package/src/artifacts/coverage-jest/lcov-report/utils/refdataQueryKey.js.html +112 -0
  139. package/src/artifacts/coverage-jest/lcov-report/utils/renderHelpText.js.html +1 -1
  140. package/src/artifacts/coverage-jest/lcov-report/utils/selectorSafe.js.html +1 -1
  141. package/src/artifacts/coverage-jest/lcov-report/utils/sortByLabel.js.html +1 -1
  142. package/src/artifacts/coverage-jest/lcov-report/utils/toCamelCase.js.html +1 -1
  143. package/src/artifacts/coverage-jest/lcov-report/utils/typedownQueryKey.js.html +112 -0
  144. package/src/artifacts/coverage-jest/lcov-report/utils/validators.js.html +126 -6
  145. package/src/artifacts/coverage-jest/lcov.info +2043 -718
  146. package/src/lib/ActionList/ActionList.js +12 -5
  147. package/src/lib/ActionList/ActionListFieldArray.js +86 -65
  148. package/src/lib/ActionList/README.md +19 -0
  149. package/src/lib/CustomProperties/Config/CustomPropertiesSettings.js +1 -3
  150. package/src/lib/CustomProperties/View/CustomPropertyCard.js +2 -2
  151. package/src/lib/EditableRefdataList/EditableRefdataList.js +3 -1
  152. package/src/lib/EditableSettingsList/EditableSettingsList.js +8 -1
  153. package/src/lib/FormModal/FormModal.js +6 -2
  154. package/src/lib/SASQLookupComponent/SASQLookupComponent.js +7 -0
  155. package/src/lib/Typedown/Typedown.js +4 -10
  156. package/src/lib/hooks/settingsHooks/useSettingSection.js +19 -2
  157. package/src/lib/hooks/settingsHooks/useSettings.js +12 -5
  158. package/src/lib/hooks/useKiwtSASQuery.js +7 -1
  159. package/src/lib/utils/generateKiwtQueryParams.js +10 -1
  160. package/src/lib/utils/matchString.js +1 -1
  161. package/styles/ActionListFieldArray.css +10 -2
package/CHANGELOG.md CHANGED
@@ -1,3 +1,16 @@
1
+ ## 2.5.1 2022-05-19
2
+ * UIOA-118 App does not function when code-splitting is enabled - no longer set history when url has not changed
3
+
4
+ ## 2.5.0 2022-05-19
5
+ * Added FilterConfig support to generateKiwtQueryParams
6
+ * Added a way to trigger inline creation externally through refs and useImperativeHandle
7
+ * Fix for ActionList editing. When a formatter was in place and a field was not editable, the formatter was ignored.
8
+ * Added disabled prop to create button so it is no longer to create infinite new rows, or enter create while editing another row.
9
+ * "Show filters" button on SASQ main pane still displayed when filters are visible
10
+ * AppSettings now use generateKiwtQueryParams and are not limitied to 10.
11
+ * FormModal now disables default footer button when form is invalid/prisitn/submitting (Submit handler must be asyncronous for submitting to be parsed correctly)
12
+ * Typedown labels are now accessible
13
+
1
14
  ## 2.4.0 2022-04-21
2
15
  * Custom Property component fixes
3
16
  * Fix to actionAssigner callback pattern
package/README.md CHANGED
@@ -10,10 +10,23 @@ This repository is available as a public NPM and is pre-transpiled, so it should
10
10
 
11
11
  In the case where components from this repository require translations, it will need to be added to the `stripesDeps` array in the implementing module's `package.json`.
12
12
 
13
+ ## Development
14
+ In order to develop this module within a stripes workspace, a couple of steps are needed
15
+ - An environment variable must be set up (See https://chlee.co/how-to-setup-environment-variables-for-windows-mac-and-linux/), `STRIPES_TRANSPILE_TOKENS="@k-int"`
16
+ - Clone this repository `git clone git@gitlab.com:knowledge-integration/folio/stripes-kint-components.git`
17
+ - Delete all the `devDependencies` in your local package.json. (DO NOT MERGE THESE CHANGES BACK TO MASTER)
18
+ - Nuke your workspace node_modules and rebuild
19
+
20
+ ### What went wrong
21
+ - If you aren't seeing changes take effect double check
22
+ - Your environment variable is definitely set `printenv STRIPES_TRANSPILE_TOKENS` on Linux, Windows may differ
23
+ - The `es` directory does not exist inside your local copy of kint-components. When built, this directory is constructed, and will take precedence if present, so if present, always delete for development work
24
+ - If you aren't seeing translations properly, ensure stripes-kint-components is present in the stripesDeps of your implementing module
25
+
13
26
  ## Documentation
14
27
  The gitlab repository for this project can be found [here](https://gitlab.com/knowledge-integration/folio/stripes-kint-components).
15
28
 
16
29
  ### Quick links
17
30
  - [Components](https://gitlab.com/knowledge-integration/folio/stripes-kint-components/-/tree/main/src/lib)
18
31
  - [Hooks](https://gitlab.com/knowledge-integration/folio/stripes-kint-components/-/tree/main/src/lib/hooks)
19
- - [Utility functions](https://gitlab.com/knowledge-integration/folio/stripes-kint-components/-/tree/main/src/lib/utils)
32
+ - [Utility functions](https://gitlab.com/knowledge-integration/folio/stripes-kint-components/-/tree/main/src/lib/utils)
@@ -1,11 +1,13 @@
1
1
  "use strict";
2
2
 
3
+ function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); }
4
+
3
5
  Object.defineProperty(exports, "__esModule", {
4
6
  value: true
5
7
  });
6
8
  exports.default = void 0;
7
9
 
8
- var _react = _interopRequireDefault(require("react"));
10
+ var _react = _interopRequireWildcard(require("react"));
9
11
 
10
12
  var _propTypes = _interopRequireDefault(require("prop-types"));
11
13
 
@@ -19,10 +21,14 @@ var _ActionListFieldArray = _interopRequireDefault(require("./ActionListFieldArr
19
21
 
20
22
  var _jsxRuntime = require("react/jsx-runtime");
21
23
 
22
- var _excluded = ["actionAssigner", "actionCalls", "columnMapping", "contentData", "creatableFields", "createCallback", "editableFields", "fieldComponents", "hideCreateButton", "visibleFields"];
24
+ var _excluded = ["actionAssigner", "actionCalls", "columnMapping", "contentData", "creatableFields", "createCallback", "editableFields", "fieldComponents", "hideCreateButton", "label", "visibleFields"];
23
25
 
24
26
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
25
27
 
28
+ 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); }
29
+
30
+ 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; }
31
+
26
32
  (function () {
27
33
  var enterModule = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.enterModule : undefined;
28
34
  enterModule && enterModule(module);
@@ -52,10 +58,10 @@ var propTypes = {
52
58
  editableFields: _propTypes.default.object,
53
59
  fieldComponents: _propTypes.default.object,
54
60
  hideCreateButton: _propTypes.default.bool,
61
+ label: _propTypes.default.string,
55
62
  visibleFields: _propTypes.default.arrayOf(_propTypes.default.string)
56
63
  };
57
-
58
- var ActionList = function ActionList(_ref) {
64
+ var ActionList = /*#__PURE__*/(0, _react.forwardRef)(function (_ref, ref) {
59
65
  var actionAssigner = _ref.actionAssigner,
60
66
  _ref$actionCalls = _ref.actionCalls,
61
67
  actionCalls = _ref$actionCalls === void 0 ? {} : _ref$actionCalls,
@@ -69,9 +75,16 @@ var ActionList = function ActionList(_ref) {
69
75
  _ref$fieldComponents = _ref.fieldComponents,
70
76
  fieldComponents = _ref$fieldComponents === void 0 ? {} : _ref$fieldComponents,
71
77
  hideCreateButton = _ref.hideCreateButton,
78
+ label = _ref.label,
72
79
  visibleFields = _ref.visibleFields,
73
80
  mclProps = _objectWithoutProperties(_ref, _excluded);
74
81
 
82
+ var ActionListFieldArrayWithRef = function ActionListFieldArrayWithRef(alfaProps) {
83
+ return /*#__PURE__*/(0, _jsxRuntime.jsx)(_ActionListFieldArray.default, _objectSpread({
84
+ ref: ref
85
+ }, alfaProps));
86
+ };
87
+
75
88
  return /*#__PURE__*/(0, _jsxRuntime.jsx)(_jsxRuntime.Fragment, {
76
89
  children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactFinalForm.Form, {
77
90
  enableReinitialize: true,
@@ -94,12 +107,13 @@ var ActionList = function ActionList(_ref) {
94
107
  actionAssigner: actionAssigner,
95
108
  actionCalls: actionCalls,
96
109
  columnMapping: columnMapping,
97
- component: _ActionListFieldArray.default,
110
+ component: ActionListFieldArrayWithRef,
98
111
  creatableFields: creatableFields,
99
112
  createCallback: createCallback,
100
113
  editableFields: editableFields,
101
114
  fieldComponents: fieldComponents,
102
115
  hideCreateButton: hideCreateButton,
116
+ label: label,
103
117
  name: "contentData",
104
118
  visibleFields: visibleFields
105
119
  }, mclProps))
@@ -107,8 +121,7 @@ var ActionList = function ActionList(_ref) {
107
121
  }
108
122
  })
109
123
  });
110
- };
111
-
124
+ });
112
125
  ActionList.propTypes = propTypes;
113
126
  var _default = ActionList;
114
127
  var _default2 = _default;
@@ -23,9 +23,9 @@ 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", "createCallback", "editableFields", "fields", "fieldComponents", "hideCreateButton", "visibleFields"],
27
- _excluded2 = ["actionListActions"],
28
- _excluded3 = ["actionListActions"],
26
+ var _excluded = ["actionAssigner", "actionCalls", "columnMapping", "creatableFields", "createCallback", "editableFields", "fields", "fieldComponents", "hideCreateButton", "label", "visibleFields"],
27
+ _excluded2 = ["actionListActions", "fieldName", "fieldIndex"],
28
+ _excluded3 = ["actionListActions", "fieldName", "fieldIndex"],
29
29
  _excluded4 = ["actionListActions"],
30
30
  _excluded5 = ["formatter"];
31
31
 
@@ -48,8 +48,6 @@ function _iterableToArray(iter) { if (typeof Symbol !== "undefined" && iter[Symb
48
48
 
49
49
  function _arrayWithoutHoles(arr) { if (Array.isArray(arr)) return _arrayLikeToArray(arr); }
50
50
 
51
- function _createForOfIteratorHelper(o, allowArrayLike) { var it = typeof Symbol !== "undefined" && o[Symbol.iterator] || o["@@iterator"]; if (!it) { if (Array.isArray(o) || (it = _unsupportedIterableToArray(o)) || allowArrayLike && o && typeof o.length === "number") { if (it) o = it; var i = 0; var F = function F() {}; return { s: F, n: function n() { if (i >= o.length) return { done: true }; return { done: false, value: o[i++] }; }, e: function e(_e2) { throw _e2; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var normalCompletion = true, didErr = false, err; return { s: function s() { it = it.call(o); }, n: function n() { var step = it.next(); normalCompletion = step.done; return step; }, e: function e(_e3) { didErr = true; err = _e3; }, f: function f() { try { if (!normalCompletion && it.return != null) it.return(); } finally { if (didErr) throw err; } } }; }
52
-
53
51
  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; }
54
52
 
55
53
  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; }
@@ -90,10 +88,10 @@ var propTypes = {
90
88
  fieldComponents: _propTypes.default.object,
91
89
  formatter: _propTypes.default.object,
92
90
  hideCreateButton: _propTypes.default.bool,
91
+ label: _propTypes.default.string,
93
92
  visibleFields: _propTypes.default.arrayOf(_propTypes.default.string)
94
93
  };
95
-
96
- var ActionListFieldArray = function ActionListFieldArray(_ref) {
94
+ var ActionListFieldArray = /*#__PURE__*/(0, _react.forwardRef)(__signature__(function (_ref, ref) {
97
95
  var actionAssigner = _ref.actionAssigner,
98
96
  actionCalls = _ref.actionCalls,
99
97
  columnMapping = _ref.columnMapping,
@@ -104,6 +102,7 @@ var ActionListFieldArray = function ActionListFieldArray(_ref) {
104
102
  fieldComponents = _ref.fieldComponents,
105
103
  _ref$hideCreateButton = _ref.hideCreateButton,
106
104
  hideCreateButton = _ref$hideCreateButton === void 0 ? false : _ref$hideCreateButton,
105
+ label = _ref.label,
107
106
  visibleFields = _ref.visibleFields,
108
107
  mclProps = _objectWithoutProperties(_ref, _excluded);
109
108
 
@@ -141,6 +140,8 @@ var ActionListFieldArray = function ActionListFieldArray(_ref) {
141
140
 
142
141
  var _fields$value$index = fields.value[index],
143
142
  _a = _fields$value$index.actionListActions,
143
+ _fn = _fields$value$index.fieldName,
144
+ _fi = _fields$value$index.fieldIndex,
144
145
  rowData = _objectWithoutProperties(_fields$value$index, _excluded2); // Find "edit" entry in actionAssigner
145
146
 
146
147
 
@@ -158,6 +159,8 @@ var ActionListFieldArray = function ActionListFieldArray(_ref) {
158
159
  var handleCreate = function handleCreate(index) {
159
160
  var _fields$value$index2 = fields.value[index],
160
161
  _a = _fields$value$index2.actionListActions,
162
+ _fn = _fields$value$index2.fieldName,
163
+ _fi = _fields$value$index2.fieldIndex,
161
164
  rowData = _objectWithoutProperties(_fields$value$index2, _excluded3);
162
165
 
163
166
  if (createCallback) {
@@ -167,6 +170,19 @@ var ActionListFieldArray = function ActionListFieldArray(_ref) {
167
170
  }
168
171
  };
169
172
 
173
+ var handleClickCreate = function handleClickCreate() {
174
+ toggleEditing('NEW_ROW');
175
+ fields.push({});
176
+ }; // Way to go into create mode from external component, and way to tell internal editing state
177
+
178
+
179
+ (0, _react.useImperativeHandle)(ref, function () {
180
+ return {
181
+ create: handleClickCreate,
182
+ editing: editing
183
+ };
184
+ });
185
+
170
186
  var getColumnWidths = function getColumnWidths() {
171
187
  var widthNotInUseByActions = editing ? TOTAL_WIDTH - EDITING_ACTIONS_WIDTH : TOTAL_WIDTH - NON_EDITING_ACTIONS_WIDTH;
172
188
  var staticWidth = widthNotInUseByActions / visibleFields.length;
@@ -280,66 +296,15 @@ var ActionListFieldArray = function ActionListFieldArray(_ref) {
280
296
  });
281
297
  };
282
298
 
283
- var formatContent = function formatContent() {
299
+ var assignActions = function assignActions() {
284
300
  return fields.map(function (fieldName, fieldIndex) {
285
301
  // Fetch the content from the field Values
286
302
  var cd = (0, _get.default)(values, fieldName);
287
- cd.actionListActions = actionAssigner(cd); // Row is being edited if it has no id, or its id is in the editing string
288
-
289
- var editingRow = cd.id === editing || !cd.id;
290
-
291
- var returnObj = _objectSpread({}, cd); // If editing, replace values with fields
292
-
293
-
294
- if (editingRow) {
295
- /*
296
- Check if the property is a visible field.
297
- If it is not then we don't allow editing in this component.
298
- */
299
- var _iterator = _createForOfIteratorHelper(visibleFields),
300
- _step;
301
-
302
- try {
303
- for (_iterator.s(); !(_step = _iterator.n()).done;) {
304
- var _editableFields$key, _creatableFields$key;
305
-
306
- var key = _step.value;
307
- var editFunction = (_editableFields$key = editableFields[key]) !== null && _editableFields$key !== void 0 ? _editableFields$key : function () {
308
- return true;
309
- };
310
- var createFunction = (_creatableFields$key = creatableFields[key]) !== null && _creatableFields$key !== void 0 ? _creatableFields$key : function () {
311
- return true;
312
- };
313
- /*
314
- Next check if this is a new row, if so we should run the createableField function with the data.
315
- If it is not a new row, then we run the editableField function with the data,
316
- and it should return true/false
317
- For both checks
318
- true => Field, false => display value
319
- */
320
-
321
- if (!cd.id && createFunction(cd) || editFunction(cd)) {
322
- returnObj[key] = fieldComponents[key] ? fieldComponents[key]({
323
- name: "".concat(fieldName, ".").concat(key)
324
- }) : /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactFinalForm.Field, {
325
- autoFocus: fieldIndex === 0,
326
- component: _components.TextField,
327
- marginBottom0: true,
328
- name: "".concat(fieldName, ".").concat(key),
329
- parse: function parse(v) {
330
- return v;
331
- }
332
- });
333
- }
334
- }
335
- } catch (err) {
336
- _iterator.e(err);
337
- } finally {
338
- _iterator.f();
339
- }
340
- }
341
-
342
- return returnObj;
303
+ cd.actionListActions = actionAssigner(cd);
304
+ return _objectSpread(_objectSpread({}, cd), {}, {
305
+ fieldName: fieldName,
306
+ fieldIndex: fieldIndex
307
+ });
343
308
  });
344
309
  };
345
310
 
@@ -353,11 +318,47 @@ var ActionListFieldArray = function ActionListFieldArray(_ref) {
353
318
  visibleFields.forEach(function (key) {
354
319
  returnObj[key] = function (cd) {
355
320
  // Row is being edited if it has no id, or its id is in the editing string
356
- var editingRow = cd.id === editing || !cd.id; // If not editing, use the passed formatter values
321
+ var editingRow = cd.id === editing || !cd.id; // Default to the passed formatter values
357
322
 
358
- var returnValue = cd[key];
323
+ var returnValue = formatter !== null && formatter !== void 0 && formatter[key] ? formatter[key](cd) : cd[key]; // If editing, replace values with fields
324
+
325
+ if (editingRow) {
326
+ var _editableFields$key, _creatableFields$key;
327
+
328
+ /*
329
+ Check if the property is a visible field.
330
+ If it is not then we don't allow editing in this component.
331
+ */
332
+ var editFunction = (_editableFields$key = editableFields[key]) !== null && _editableFields$key !== void 0 ? _editableFields$key : function () {
333
+ return true;
334
+ };
335
+ var createFunction = (_creatableFields$key = creatableFields[key]) !== null && _creatableFields$key !== void 0 ? _creatableFields$key : function () {
336
+ return true;
337
+ };
338
+ /*
339
+ Next check if this is a new row, if so we should run the createableField function with the data.
340
+ If it is not a new row, then we run the editableField function with the data,
341
+ and it should return true/false
342
+ For both checks
343
+ true => Field, false => display value
344
+ */
345
+
346
+ if (!cd.id && createFunction(cd) || editFunction(cd)) {
347
+ returnValue = fieldComponents[key] ? fieldComponents[key]({
348
+ name: "".concat(cd.fieldName, ".").concat(key)
349
+ }) : /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactFinalForm.Field, {
350
+ autoFocus: cd.fieldIndex === 0,
351
+ component: _components.TextField,
352
+ marginBottom0: true,
353
+ name: "".concat(cd.fieldName, ".").concat(key),
354
+ parse: function parse(v) {
355
+ return v;
356
+ }
357
+ });
358
+ }
359
+ }
359
360
 
360
- if (!editingRow && formatter !== null && formatter !== void 0 && formatter[key]) {
361
+ if (formatter !== null && formatter !== void 0 && formatter[key]) {
361
362
  returnValue = formatter[key](cd);
362
363
  }
363
364
 
@@ -368,17 +369,20 @@ var ActionListFieldArray = function ActionListFieldArray(_ref) {
368
369
  };
369
370
 
370
371
  return /*#__PURE__*/(0, _jsxRuntime.jsxs)(_jsxRuntime.Fragment, {
371
- children: [!hideCreateButton && /*#__PURE__*/(0, _jsxRuntime.jsx)(_components.Button, {
372
- buttonClass: _ActionListFieldArray.default.buttonRight,
373
- disabled: !actionCalls.create && !createCallback // DEPRECATED actionCalls
374
- ,
375
- onClick: function onClick() {
376
- toggleEditing('NEW_ROW');
377
- fields.push({});
378
- },
379
- children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactIntl.FormattedMessage, {
380
- id: "stripes-kint-components.actionList.create"
381
- })
372
+ children: [/*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
373
+ className: _ActionListFieldArray.default.header,
374
+ children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_components.Headline, {
375
+ className: _ActionListFieldArray.default.headerText,
376
+ children: label
377
+ }), !hideCreateButton && /*#__PURE__*/(0, _jsxRuntime.jsx)(_components.Button, {
378
+ disabled: editing || !actionCalls.create && !createCallback // DEPRECATED actionCalls
379
+ ,
380
+ marginBottom0: true,
381
+ onClick: handleClickCreate,
382
+ children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactIntl.FormattedMessage, {
383
+ id: "stripes-kint-components.actionList.create"
384
+ })
385
+ })]
382
386
  }), /*#__PURE__*/(0, _jsxRuntime.jsx)(_components.MultiColumnList, _objectSpread({
383
387
  columnMapping: _objectSpread(_objectSpread({}, columnMapping), {}, {
384
388
  actionListActions: /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactIntl.FormattedMessage, {
@@ -386,7 +390,7 @@ var ActionListFieldArray = function ActionListFieldArray(_ref) {
386
390
  })
387
391
  }),
388
392
  columnWidths: getColumnWidths(),
389
- contentData: formatContent(),
393
+ contentData: assignActions(),
390
394
  formatter: _objectSpread({
391
395
  actionListActions: renderActionButtons
392
396
  }, fieldAwareFormatter()),
@@ -394,12 +398,9 @@ var ActionListFieldArray = function ActionListFieldArray(_ref) {
394
398
  visibleColumns: [].concat(_toConsumableArray(visibleFields), ['actionListActions'])
395
399
  }, restOfMclProps))]
396
400
  });
397
- };
398
-
399
- __signature__(ActionListFieldArray, "useForm{{ change }}\nuseFormState{{ initialValues, pristine, submitting, values }}\nuseState{[editing, setEditing](null)}", function () {
400
- return [_reactFinalForm.useForm, _reactFinalForm.useFormState];
401
- });
402
-
401
+ }, "useForm{{ change }}\nuseFormState{{ initialValues, pristine, submitting, values }}\nuseState{[editing, setEditing](null)}\nuseImperativeHandle{}", function () {
402
+ return [_reactFinalForm.useForm, _reactFinalForm.useFormState, _react.useImperativeHandle];
403
+ }));
403
404
  ActionListFieldArray.propTypes = propTypes;
404
405
  var _default = ActionListFieldArray;
405
406
  var _default2 = _default;
@@ -15,8 +15,6 @@ var _reactIntl = require("react-intl");
15
15
 
16
16
  var _reactQuery = require("react-query");
17
17
 
18
- var _reactIntlSafeHtml = _interopRequireDefault(require("@folio/react-intl-safe-html"));
19
-
20
18
  var _components = require("@folio/stripes/components");
21
19
 
22
20
  var _FormModal = _interopRequireDefault(require("../../FormModal/FormModal"));
@@ -269,7 +267,7 @@ var CustomPropertiesSettings = function CustomPropertiesSettings(_ref) {
269
267
  id: "stripes-kint-components.customProperties.delete.confirmHeading"
270
268
  }),
271
269
  id: "delete-job-confirmation",
272
- message: (_labelOverrides$confi3 = labelOverrides === null || labelOverrides === void 0 ? void 0 : labelOverrides.confirmMessage) !== null && _labelOverrides$confi3 !== void 0 ? _labelOverrides$confi3 : /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactIntlSafeHtml.default, {
270
+ message: (_labelOverrides$confi3 = labelOverrides === null || labelOverrides === void 0 ? void 0 : labelOverrides.confirmMessage) !== null && _labelOverrides$confi3 !== void 0 ? _labelOverrides$confi3 : /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactIntl.FormattedMessage, {
273
271
  id: "stripes-kint-components.customProperties.delete.confirmMessage",
274
272
  values: {
275
273
  name: customProperty === null || customProperty === void 0 ? void 0 : customProperty.name
@@ -133,7 +133,7 @@ var CustomPropertyCard = function CustomPropertyCard(_ref) {
133
133
  }),
134
134
  children: renderValue()
135
135
  })
136
- }), customProperty !== null && customProperty !== void 0 && customProperty.internalNote ? /*#__PURE__*/(0, _jsxRuntime.jsx)(_components.Col, {
136
+ }), customProperty !== null && customProperty !== void 0 && customProperty.note ? /*#__PURE__*/(0, _jsxRuntime.jsx)(_components.Col, {
137
137
  xs: 6,
138
138
  children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_components.KeyValue, {
139
139
  label: (_labelOverrides$inter3 = labelOverrides.internalNote) !== null && _labelOverrides$inter3 !== void 0 ? _labelOverrides$inter3 : /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactIntl.FormattedMessage, {
@@ -143,7 +143,7 @@ var CustomPropertyCard = function CustomPropertyCard(_ref) {
143
143
  style: {
144
144
  whiteSpace: 'pre-wrap'
145
145
  },
146
- children: customProperty.internalNote
146
+ children: customProperty.note
147
147
  })
148
148
  })
149
149
  }) : null]
@@ -48,11 +48,13 @@ var __signature__ = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoader
48
48
 
49
49
  var propTypes = {
50
50
  desc: _propTypes.default.string,
51
+ label: _propTypes.default.string,
51
52
  refdataEndpoint: _propTypes.default.string
52
53
  };
53
54
 
54
55
  var EditableRefdataList = function EditableRefdataList(_ref) {
55
56
  var desc = _ref.desc,
57
+ label = _ref.label,
56
58
  refdataEndpoint = _ref.refdataEndpoint;
57
59
 
58
60
  /* A component that allows for editing of refdata values */
@@ -169,6 +171,7 @@ var EditableRefdataList = function EditableRefdataList(_ref) {
169
171
  return false;
170
172
  }
171
173
  },
174
+ label: label,
172
175
  visibleFields: ['label', 'value']
173
176
  });
174
177
  };
@@ -33,6 +33,7 @@ var __signature__ = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoader
33
33
  var EditableSettingsList = function EditableSettingsList(_ref) {
34
34
  var data = _ref.data,
35
35
  initialValues = _ref.initialValues,
36
+ label = _ref.label,
36
37
  onSave = _ref.onSave;
37
38
  return /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactFinalForm.Form, {
38
39
  enableReinitialize: true,
@@ -51,6 +52,7 @@ var EditableSettingsList = function EditableSettingsList(_ref) {
51
52
  children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactFinalFormArrays.FieldArray, {
52
53
  component: _EditableSettingsListFieldArray.default,
53
54
  data: data,
55
+ label: label,
54
56
  name: "settings",
55
57
  onSave: onSave
56
58
  })
@@ -64,7 +66,8 @@ EditableSettingsList.propTypes = {
64
66
  data: _propTypes.default.shape({
65
67
  refdatavalues: _propTypes.default.arrayOf(_propTypes.default.object)
66
68
  }),
67
- initialValues: _propTypes.default.object
69
+ initialValues: _propTypes.default.object,
70
+ label: _propTypes.default.oneOfType([_propTypes.default.string, _propTypes.default.node, _propTypes.default.object])
68
71
  };
69
72
  var _default = EditableSettingsList;
70
73
  var _default2 = _default;
@@ -55,7 +55,10 @@ var FormModal = function FormModal(_ref) {
55
55
  }, formProps), {}, {
56
56
  children: function children(_ref2) {
57
57
  var handleSubmit = _ref2.handleSubmit,
58
- restart = _ref2.form.restart;
58
+ _ref2$form = _ref2.form,
59
+ getState = _ref2$form.getState,
60
+ restart = _ref2$form.restart;
61
+ var formState = getState();
59
62
 
60
63
  var handleClose = function handleClose(e) {
61
64
  onClose(e);
@@ -67,16 +70,22 @@ var FormModal = function FormModal(_ref) {
67
70
 
68
71
  if (footer) {
69
72
  return footer({
73
+ formState: formState,
70
74
  handleSubmit: handleSubmit,
71
75
  handleClose: handleClose
72
76
  });
73
77
  }
74
78
 
79
+ var invalid = formState.invalid,
80
+ pristine = formState.pristine,
81
+ submitting = formState.submitting;
75
82
  return /*#__PURE__*/(0, _jsxRuntime.jsxs)(_components.ModalFooter, {
76
83
  children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_components.Button, {
77
84
  buttonStyle: "primary",
85
+ disabled: submitting || invalid || pristine,
78
86
  marginBottom0: true,
79
87
  onClick: handleSubmit,
88
+ type: "submit",
80
89
  children: (_labelOverrides$save = labelOverrides.save) !== null && _labelOverrides$save !== void 0 ? _labelOverrides$save : /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactIntl.FormattedMessage, {
81
90
  id: "stripes-kint-components.save"
82
91
  })
@@ -247,11 +247,12 @@ var SASQLookupComponent = function SASQLookupComponent(props) {
247
247
  }
248
248
  })
249
249
  }, mainPaneProps), {}, {
250
- children: /*#__PURE__*/(0, _jsxRuntime.jsx)(Body, _objectSpread(_objectSpread(_objectSpread({
250
+ children: /*#__PURE__*/(0, _jsxRuntime.jsx)(Body, _objectSpread(_objectSpread(_objectSpread(_objectSpread({
251
251
  data: data,
252
+ filterPaneVisible: filterPaneVisible,
252
253
  query: query,
253
254
  toggleFilterPane: toggleFilterPane
254
- }, restOfInfiniteQueryProps), sasqProps), props))
255
+ }, restOfInfiniteQueryProps), sasqRenderProps), sasqProps), props))
255
256
  })), _children]
256
257
  });
257
258
  }
@@ -199,10 +199,12 @@ var Typedown = function Typedown(_ref) {
199
199
  children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_SearchField.default // Pass meta through so correct styling gets applied to the TextField
200
200
  , {
201
201
  id: "typedown-searchField-".concat((0, _selectorSafe.default)(input.name)),
202
+ label: label,
202
203
  marginBottom0: true,
203
204
  meta: meta,
204
205
  onChange: handleType,
205
- onKeyDown: searchFieldKeyDownHandler
206
+ onKeyDown: searchFieldKeyDownHandler,
207
+ required: required
206
208
  })
207
209
  });
208
210
  };
@@ -210,12 +212,8 @@ var Typedown = function Typedown(_ref) {
210
212
  return /*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
211
213
  ref: resizeRef,
212
214
  className: (0, _classnames.default)(_TypeDown.default.typedown, className),
213
- children: [label && /*#__PURE__*/(0, _jsxRuntime.jsx)(_components.Label, {
214
- htmlFor: id,
215
- id: "".concat(id, "-label"),
216
- required: required,
217
- children: label
218
- }), renderSearchField(), /*#__PURE__*/(0, _jsxRuntime.jsx)(_components.Popper, {
215
+ id: "typedown-id-".concat(id),
216
+ children: [renderSearchField(), /*#__PURE__*/(0, _jsxRuntime.jsx)(_components.Popper, {
219
217
  anchorRef: triggerRef,
220
218
  className: (0, _classnames.default)(_TypeDown.default.dropdown, _TypeDown.default.fullWidth),
221
219
  isOpen: open,
@@ -11,6 +11,8 @@ var _reactQuery = require("react-query");
11
11
 
12
12
  var _core = require("@folio/stripes/core");
13
13
 
14
+ var _utils = require("../../utils");
15
+
14
16
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
15
17
 
16
18
  (function () {
@@ -26,9 +28,20 @@ var useSettingSection = function useSettingSection(_ref) {
26
28
  var sectionName = _ref.sectionName,
27
29
  settingEndpoint = _ref.settingEndpoint;
28
30
  var ky = (0, _core.useOkapiKy)();
29
-
30
- var _useQuery = (0, _reactQuery.useQuery)(['stripes-kint-components', 'useSetting', 'appSettings', sectionName], function () {
31
- return ky("".concat(settingEndpoint, "?filters=section=").concat(sectionName, "&sort=key;asc")).json();
31
+ var queryParams = (0, _utils.generateKiwtQueryParams)({
32
+ filters: [{
33
+ path: 'section',
34
+ value: sectionName
35
+ }],
36
+ sort: [{
37
+ path: 'key'
38
+ }],
39
+ perPage: 100,
40
+ stats: false
41
+ }, {});
42
+
43
+ var _useQuery = (0, _reactQuery.useQuery)(['stripes-kint-components', 'useSetting', 'appSettings', queryParams, sectionName], function () {
44
+ return ky("".concat(settingEndpoint, "?").concat(queryParams === null || queryParams === void 0 ? void 0 : queryParams.join('&'))).json();
32
45
  }),
33
46
  _useQuery$data = _useQuery.data,
34
47
  settings = _useQuery$data === void 0 ? [] : _useQuery$data;
@@ -69,13 +69,20 @@ var useSettings = function useSettings(_ref) {
69
69
  templateEndpoint = _ref.templateEndpoint;
70
70
  var ky = (0, _core.useOkapiKy)();
71
71
  var intl = (0, _reactIntl.useIntl)();
72
- var extraPathItems = dynamicPageExclusions.map(function (dpe) {
73
- return "filters=section!=".concat(dpe);
74
- });
75
- extraPathItems.push('max=500');
76
-
77
- var _useQuery = (0, _reactQuery.useQuery)(['stripes-kint-components', 'useSettings', 'appSettings', settingEndpoint], function () {
78
- return ky("".concat(settingEndpoint, "?").concat(extraPathItems.join('&'))).json();
72
+ var queryParams = (0, _utils.generateKiwtQueryParams)({
73
+ filters: dynamicPageExclusions === null || dynamicPageExclusions === void 0 ? void 0 : dynamicPageExclusions.map(function (dpe) {
74
+ return {
75
+ path: 'section',
76
+ comparator: '!=',
77
+ value: dpe
78
+ };
79
+ }),
80
+ perPage: 100,
81
+ stats: false
82
+ }, {});
83
+
84
+ var _useQuery = (0, _reactQuery.useQuery)(['stripes-kint-components', 'useSettings', 'appSettings', settingEndpoint, queryParams], function () {
85
+ return ky("".concat(settingEndpoint, "?").concat(queryParams === null || queryParams === void 0 ? void 0 : queryParams.join('&'))).json();
79
86
  }),
80
87
  _useQuery$data = _useQuery.data,
81
88
  appSettings = _useQuery$data === void 0 ? [] : _useQuery$data,
@@ -52,8 +52,14 @@ var locationQuerySetter = function locationQuerySetter(_ref) {
52
52
  var location = _ref.location,
53
53
  history = _ref.history,
54
54
  nsValues = _ref.nsValues;
55
- var url = (0, _buildUrl.default)(location, nsValues);
56
- history.push(url);
55
+ var pathname = location.pathname,
56
+ search = location.search;
57
+ var url = (0, _buildUrl.default)(location, nsValues); // Do not push to history if the url didn't change
58
+ // https://issues.folio.org/browse/STSMACOM-637
59
+
60
+ if ("".concat(pathname).concat(search) !== url) {
61
+ history.push(url);
62
+ }
57
63
  };
58
64
 
59
65
  var useKiwtSASQuery = function useKiwtSASQuery() {