@k-int/stripes-kint-components 2.3.2 → 2.4.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.
- package/CHANGELOG.md +15 -4
- package/es/artifacts/coverage-jest/lcov-report/block-navigation.js +109 -0
- package/es/artifacts/coverage-jest/lcov-report/prettify.js +998 -0
- package/es/artifacts/coverage-jest/lcov-report/sorter.js +238 -0
- package/es/index.js +31 -3
- package/es/lib/ActionList/ActionList.js +31 -1
- package/es/lib/ActionList/ActionListFieldArray.js +39 -2
- package/es/lib/ActionList/index.js +5 -1
- package/es/lib/CustomProperties/Config/CustomPropertiesLookup.js +35 -1
- package/es/lib/CustomProperties/Config/CustomPropertiesSettings.js +46 -7
- package/es/lib/CustomProperties/Config/CustomPropertyForm.js +34 -1
- package/es/lib/CustomProperties/Config/CustomPropertyView.js +30 -1
- package/es/lib/CustomProperties/Config/index.js +5 -1
- package/es/lib/CustomProperties/Edit/CustomPropertiesEdit.js +30 -1
- package/es/lib/CustomProperties/Edit/CustomPropertiesEditCtx.js +34 -1
- package/es/lib/CustomProperties/Edit/CustomPropertiesListField.js +37 -1
- package/es/lib/CustomProperties/Edit/CustomPropertyField.js +34 -1
- package/es/lib/CustomProperties/Edit/CustomPropertyFormCard.js +30 -1
- package/es/lib/CustomProperties/Edit/index.js +5 -1
- package/es/lib/CustomProperties/Filter/CustomPropertiesFilter.js +34 -1
- package/es/lib/CustomProperties/Filter/CustomPropertiesFilterField.js +34 -1
- package/es/lib/CustomProperties/Filter/CustomPropertiesFilterFieldArray.js +34 -1
- package/es/lib/CustomProperties/Filter/CustomPropertiesFilterForm.js +30 -1
- package/es/lib/CustomProperties/Filter/CustomPropertiesRule.js +35 -1
- package/es/lib/CustomProperties/Filter/index.js +5 -1
- package/es/lib/CustomProperties/Filter/useOperators.js +39 -1
- package/es/lib/CustomProperties/Filter/useParseActiveFilterStrings.js +34 -1
- package/es/lib/CustomProperties/Filter/useValueProps.js +35 -1
- package/es/lib/CustomProperties/View/CustomPropertiesView.js +30 -1
- package/es/lib/CustomProperties/View/CustomPropertiesViewCtx.js +56 -16
- package/es/lib/CustomProperties/View/CustomPropertyCard.js +33 -3
- package/es/lib/CustomProperties/View/index.js +5 -1
- package/es/lib/CustomProperties/index.js +5 -1
- package/es/lib/EditableRefdataList/EditableRefdataList.js +35 -1
- package/es/lib/EditableRefdataList/index.js +5 -1
- package/es/lib/EditableSettingsList/EditableSettingsList.js +30 -1
- package/es/lib/EditableSettingsList/EditableSettingsListFieldArray.js +30 -1
- package/es/lib/EditableSettingsList/EditableSettingsListFieldArray.test.js +30 -1
- package/es/lib/EditableSettingsList/SettingField/EditSettingValue.js +34 -1
- package/es/lib/EditableSettingsList/SettingField/EditSettingValue.test.js +34 -1
- package/es/lib/EditableSettingsList/SettingField/RenderSettingValue.js +34 -1
- package/es/lib/EditableSettingsList/SettingField/RenderSettingValue.test.js +41 -1
- package/es/lib/EditableSettingsList/SettingField/SettingField.js +34 -1
- package/es/lib/EditableSettingsList/SettingField/SettingField.test.js +30 -1
- package/es/lib/EditableSettingsList/SettingField/index.js +5 -1
- package/es/lib/EditableSettingsList/index.js +5 -1
- package/es/lib/FormModal/FormModal.js +30 -1
- package/es/lib/FormModal/index.js +5 -1
- package/es/lib/NoResultsMessage/NoResultsMessage.js +30 -1
- package/es/lib/NoResultsMessage/index.js +5 -1
- package/es/lib/QueryTypedown/QueryTypedown.js +34 -1
- package/es/lib/QueryTypedown/index.js +5 -1
- package/es/lib/RefdataButtons/RefdataButtons.js +34 -1
- package/es/lib/RefdataButtons/index.js +5 -1
- package/es/lib/SASQLookupComponent/SASQLookupComponent.js +94 -105
- package/es/lib/SASQLookupComponent/TableBody/TableBody.js +146 -0
- package/es/lib/SASQLookupComponent/TableBody/index.js +19 -0
- package/es/lib/SASQLookupComponent/index.js +14 -2
- package/es/lib/SASQRoute/SASQRoute.js +32 -3
- package/es/lib/SASQRoute/index.js +5 -1
- package/es/lib/SASQViewComponent/SASQViewComponent.js +34 -1
- package/es/lib/SASQViewComponent/index.js +5 -1
- package/es/lib/SearchField/SearchField.js +31 -1
- package/es/lib/SearchField/index.js +5 -1
- package/es/lib/SettingPage/SettingPage.js +34 -1
- package/es/lib/SettingPage/SettingPagePane.js +32 -1
- package/es/lib/SettingPage/index.js +5 -1
- package/es/lib/Typedown/Typedown.js +34 -1
- package/es/lib/Typedown/index.js +5 -1
- package/es/lib/constants/customProperties.js +38 -1
- package/es/lib/constants/eventCodes.js +31 -1
- package/es/lib/contexts/SettingsContext.js +30 -1
- package/es/lib/contexts/index.js +5 -1
- package/es/lib/hooks/index.js +5 -1
- package/es/lib/hooks/settingsHooks/index.js +5 -1
- package/es/lib/hooks/settingsHooks/useSettingSection.js +34 -1
- package/es/lib/hooks/settingsHooks/useSettings.js +36 -1
- package/es/lib/hooks/typedownHooks/index.js +5 -1
- package/es/lib/hooks/typedownHooks/useTypedown.js +34 -1
- package/es/lib/hooks/typedownHooks/useTypedownData.js +34 -1
- package/es/lib/hooks/typedownHooks/useTypedownToggle.js +34 -1
- package/es/lib/hooks/useActiveElement.js +32 -1
- package/es/lib/hooks/useAvailableCustomProperties.js +34 -1
- package/es/lib/hooks/useCustomProperties.js +34 -1
- package/es/lib/hooks/useHelperApp.js +34 -1
- package/es/lib/hooks/useInvalidateRefdata.js +34 -1
- package/es/lib/hooks/useKiwtFieldArray.js +34 -1
- package/es/lib/hooks/useKiwtSASQuery.js +35 -1
- package/es/lib/hooks/useLocalStorageState.js +34 -1
- package/es/lib/hooks/useMutateCustomProperties.js +34 -1
- package/es/lib/hooks/useMutateRefdataValue.js +34 -1
- package/es/lib/hooks/useQIndex.js +34 -1
- package/es/lib/hooks/useRefdata.js +34 -1
- package/es/lib/hooks/useTemplates.js +34 -1
- package/es/lib/utils/buildUrl.js +31 -2
- package/es/lib/utils/generateKiwtQuery.js +30 -1
- package/es/lib/utils/generateKiwtQueryParams.js +51 -5
- package/es/lib/utils/groupCustomPropertiesByCtx.js +30 -1
- package/es/lib/utils/highlightString.js +94 -0
- package/es/lib/utils/index.js +27 -1
- package/es/lib/utils/matchString.js +59 -0
- package/es/lib/utils/refdataOptions.js +30 -1
- package/es/lib/utils/refdataQueryKey.js +30 -1
- package/es/lib/utils/renderHelpText.js +30 -1
- package/es/lib/utils/selectorSafe.js +30 -1
- package/es/lib/utils/sortByLabel.js +30 -1
- package/es/lib/utils/toCamelCase.js +30 -1
- package/es/lib/utils/typedownQueryKey.js +30 -1
- package/es/lib/utils/validators.js +32 -1
- package/junit.xml +79 -0
- package/package.json +1 -1
- package/src/artifacts/coverage-jest/lcov-report/ActionList/ActionList.js.html +286 -0
- package/src/artifacts/coverage-jest/lcov-report/ActionList/ActionListFieldArray.js.html +925 -0
- package/src/artifacts/coverage-jest/lcov-report/ActionList/index.html +146 -0
- package/src/artifacts/coverage-jest/lcov-report/ActionList/index.js.html +88 -0
- package/src/artifacts/coverage-jest/lcov-report/CustomProperties/Config/CustomPropertiesLookup.js.html +418 -0
- package/src/artifacts/coverage-jest/lcov-report/CustomProperties/Config/CustomPropertiesSettings.js.html +808 -0
- package/src/artifacts/coverage-jest/lcov-report/CustomProperties/Config/CustomPropertiesView.js.html +601 -0
- package/src/artifacts/coverage-jest/lcov-report/CustomProperties/Config/CustomPropertyForm.js.html +1135 -0
- package/src/artifacts/coverage-jest/lcov-report/CustomProperties/Config/index.html +176 -0
- package/src/artifacts/coverage-jest/lcov-report/CustomProperties/Config/index.js.html +97 -0
- package/src/artifacts/coverage-jest/lcov-report/EditableRefdataList/EditableRefdataList.js.html +373 -0
- package/src/artifacts/coverage-jest/lcov-report/EditableRefdataList/index.html +131 -0
- package/src/artifacts/coverage-jest/lcov-report/EditableRefdataList/index.js.html +88 -0
- package/src/artifacts/coverage-jest/lcov-report/EditableSettingsList/EditableSettingsList.js.html +223 -0
- package/src/artifacts/coverage-jest/lcov-report/EditableSettingsList/EditableSettingsListFieldArray.js.html +211 -0
- package/src/artifacts/coverage-jest/lcov-report/EditableSettingsList/SettingField/EditSettingValue.js.html +376 -0
- package/src/artifacts/coverage-jest/lcov-report/EditableSettingsList/SettingField/RenderSettingValue.js.html +262 -0
- package/src/artifacts/coverage-jest/lcov-report/EditableSettingsList/SettingField/SettingField.js.html +436 -0
- package/src/artifacts/coverage-jest/lcov-report/EditableSettingsList/SettingField/index.html +161 -0
- package/src/artifacts/coverage-jest/lcov-report/EditableSettingsList/SettingField/index.js.html +94 -0
- package/src/artifacts/coverage-jest/lcov-report/EditableSettingsList/index.html +146 -0
- package/src/artifacts/coverage-jest/lcov-report/EditableSettingsList/index.js.html +94 -0
- package/src/artifacts/coverage-jest/lcov-report/FormModal/FormModal.js.html +283 -0
- package/src/artifacts/coverage-jest/lcov-report/FormModal/index.html +131 -0
- package/src/artifacts/coverage-jest/lcov-report/FormModal/index.js.html +88 -0
- package/src/artifacts/coverage-jest/lcov-report/NoResultsMessage/NoResultsMessage.js.html +319 -0
- package/src/artifacts/coverage-jest/lcov-report/NoResultsMessage/index.html +131 -0
- package/src/artifacts/coverage-jest/lcov-report/NoResultsMessage/index.js.html +88 -0
- package/src/artifacts/coverage-jest/lcov-report/QueryTypedown/QueryTypedown.js.html +184 -0
- package/src/artifacts/coverage-jest/lcov-report/QueryTypedown/index.html +131 -0
- package/src/artifacts/coverage-jest/lcov-report/QueryTypedown/index.js.html +88 -0
- package/src/artifacts/coverage-jest/lcov-report/RefdataButtons/RefdataButtons.js.html +370 -0
- package/src/artifacts/coverage-jest/lcov-report/RefdataButtons/index.html +131 -0
- package/src/artifacts/coverage-jest/lcov-report/RefdataButtons/index.js.html +88 -0
- package/src/artifacts/coverage-jest/lcov-report/SASQLookupComponent/SASQLookupComponent.js.html +949 -0
- package/src/artifacts/coverage-jest/lcov-report/SASQLookupComponent/index.html +131 -0
- package/src/artifacts/coverage-jest/lcov-report/SASQLookupComponent/index.js.html +88 -0
- package/src/artifacts/coverage-jest/lcov-report/SASQRoute/SASQRoute.js.html +301 -0
- package/src/artifacts/coverage-jest/lcov-report/SASQRoute/index.html +131 -0
- package/src/artifacts/coverage-jest/lcov-report/SASQRoute/index.js.html +88 -0
- package/src/artifacts/coverage-jest/lcov-report/SASQViewComponent/SASQViewComponent.js.html +253 -0
- package/src/artifacts/coverage-jest/lcov-report/SASQViewComponent/index.html +131 -0
- package/src/artifacts/coverage-jest/lcov-report/SASQViewComponent/index.js.html +88 -0
- package/src/artifacts/coverage-jest/lcov-report/SearchField/SearchField.js.html +214 -0
- package/src/artifacts/coverage-jest/lcov-report/SearchField/index.html +131 -0
- package/src/artifacts/coverage-jest/lcov-report/SearchField/index.js.html +88 -0
- package/src/artifacts/coverage-jest/lcov-report/SettingPage/SettingPage.js.html +211 -0
- package/src/artifacts/coverage-jest/lcov-report/SettingPage/SettingPagePane.js.html +178 -0
- package/src/artifacts/coverage-jest/lcov-report/SettingPage/index.html +146 -0
- package/src/artifacts/coverage-jest/lcov-report/SettingPage/index.js.html +91 -0
- package/src/artifacts/coverage-jest/lcov-report/Typedown/Typedown.js.html +919 -0
- package/src/artifacts/coverage-jest/lcov-report/Typedown/index.html +131 -0
- package/src/artifacts/coverage-jest/lcov-report/Typedown/index.js.html +88 -0
- package/src/artifacts/coverage-jest/lcov-report/base.css +224 -0
- package/src/artifacts/coverage-jest/lcov-report/block-navigation.js +87 -0
- package/src/artifacts/coverage-jest/lcov-report/constants/customProperties.js.html +112 -0
- package/src/artifacts/coverage-jest/lcov-report/constants/eventCodes.js.html +94 -0
- package/src/artifacts/coverage-jest/lcov-report/constants/index.html +131 -0
- package/src/artifacts/coverage-jest/lcov-report/contexts/SettingsContext.js.html +97 -0
- package/src/artifacts/coverage-jest/lcov-report/contexts/index.html +131 -0
- package/src/artifacts/coverage-jest/lcov-report/contexts/index.js.html +91 -0
- package/src/artifacts/coverage-jest/lcov-report/favicon.png +0 -0
- package/src/artifacts/coverage-jest/lcov-report/hooks/index.html +281 -0
- package/src/artifacts/coverage-jest/lcov-report/hooks/index.js.html +121 -0
- package/src/artifacts/coverage-jest/lcov-report/hooks/settingsHooks/index.html +146 -0
- package/src/artifacts/coverage-jest/lcov-report/hooks/settingsHooks/index.js.html +91 -0
- package/src/artifacts/coverage-jest/lcov-report/hooks/settingsHooks/useSettingSection.js.html +163 -0
- package/src/artifacts/coverage-jest/lcov-report/hooks/settingsHooks/useSettings.js.html +403 -0
- package/src/artifacts/coverage-jest/lcov-report/hooks/typedownHooks/index.html +161 -0
- package/src/artifacts/coverage-jest/lcov-report/hooks/typedownHooks/index.js.html +94 -0
- package/src/artifacts/coverage-jest/lcov-report/hooks/typedownHooks/useTypedown.js.html +520 -0
- package/src/artifacts/coverage-jest/lcov-report/hooks/typedownHooks/useTypedownData.js.html +163 -0
- package/src/artifacts/coverage-jest/lcov-report/hooks/typedownHooks/useTypedownToggle.js.html +163 -0
- package/src/artifacts/coverage-jest/lcov-report/hooks/useActiveElement.js.html +157 -0
- package/src/artifacts/coverage-jest/lcov-report/hooks/useCustomProperties.js.html +313 -0
- package/src/artifacts/coverage-jest/lcov-report/hooks/useHelperApp.js.html +283 -0
- package/src/artifacts/coverage-jest/lcov-report/hooks/useKiwtFieldArray.js.html +274 -0
- package/src/artifacts/coverage-jest/lcov-report/hooks/useKiwtSASQuery.js.html +178 -0
- package/src/artifacts/coverage-jest/lcov-report/hooks/useLocalStorageState.js.html +136 -0
- package/src/artifacts/coverage-jest/lcov-report/hooks/useMutateCustomProperties.js.html +271 -0
- package/src/artifacts/coverage-jest/lcov-report/hooks/useMutateRefdataValue.js.html +301 -0
- package/src/artifacts/coverage-jest/lcov-report/hooks/useQIndex.js.html +208 -0
- package/src/artifacts/coverage-jest/lcov-report/hooks/useRefdata.js.html +268 -0
- package/src/artifacts/coverage-jest/lcov-report/hooks/useTemplates.js.html +166 -0
- package/src/artifacts/coverage-jest/lcov-report/index.html +416 -0
- package/src/artifacts/coverage-jest/lcov-report/prettify.css +1 -0
- package/src/artifacts/coverage-jest/lcov-report/prettify.js +2 -0
- package/src/artifacts/coverage-jest/lcov-report/sort-arrow-sprite.png +0 -0
- package/src/artifacts/coverage-jest/lcov-report/sorter.js +196 -0
- package/src/artifacts/coverage-jest/lcov-report/utils/buildUrl.js.html +193 -0
- package/src/artifacts/coverage-jest/lcov-report/utils/generateKiwtQuery.js.html +109 -0
- package/src/artifacts/coverage-jest/lcov-report/utils/generateKiwtQueryParams.js.html +454 -0
- package/src/artifacts/coverage-jest/lcov-report/utils/index.html +251 -0
- package/src/artifacts/coverage-jest/lcov-report/utils/index.js.html +121 -0
- package/src/artifacts/coverage-jest/lcov-report/utils/refdataOptions.js.html +106 -0
- package/src/artifacts/coverage-jest/lcov-report/utils/renderHelpText.js.html +166 -0
- package/src/artifacts/coverage-jest/lcov-report/utils/selectorSafe.js.html +103 -0
- package/src/artifacts/coverage-jest/lcov-report/utils/sortByLabel.js.html +130 -0
- package/src/artifacts/coverage-jest/lcov-report/utils/toCamelCase.js.html +127 -0
- package/src/artifacts/coverage-jest/lcov-report/utils/validators.js.html +202 -0
- package/src/artifacts/coverage-jest/lcov.info +2562 -0
- package/src/index.js +6 -1
- package/src/lib/ActionList/ActionListFieldArray.js +1 -1
- package/src/lib/CustomProperties/Config/CustomPropertiesSettings.js +9 -6
- package/src/lib/CustomProperties/View/CustomPropertiesViewCtx.js +13 -8
- package/src/lib/CustomProperties/View/CustomPropertyCard.js +2 -2
- package/src/lib/SASQLookupComponent/SASQLookupComponent.js +39 -77
- package/src/lib/SASQLookupComponent/TableBody/TableBody.js +96 -0
- package/src/lib/SASQLookupComponent/TableBody/index.js +1 -0
- package/src/lib/SASQLookupComponent/index.js +2 -1
- package/src/lib/SASQRoute/SASQRoute.js +1 -1
- package/src/lib/utils/generateKiwtQueryParams.js +10 -1
- package/src/lib/utils/highlightString.js +42 -0
- package/src/lib/utils/index.js +4 -0
- package/src/lib/utils/matchString.js +14 -0
|
@@ -5,8 +5,6 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5
5
|
});
|
|
6
6
|
exports.default = void 0;
|
|
7
7
|
|
|
8
|
-
var _react = _interopRequireDefault(require("react"));
|
|
9
|
-
|
|
10
8
|
var _propTypes = _interopRequireDefault(require("prop-types"));
|
|
11
9
|
|
|
12
10
|
var _reactIntl = require("react-intl");
|
|
@@ -19,16 +17,23 @@ var _smartComponents = require("@folio/stripes/smart-components");
|
|
|
19
17
|
|
|
20
18
|
var _components = require("@folio/stripes/components");
|
|
21
19
|
|
|
22
|
-
var _NoResultsMessage = _interopRequireDefault(require("../NoResultsMessage"));
|
|
23
|
-
|
|
24
20
|
var _utils = require("../utils");
|
|
25
21
|
|
|
26
22
|
var _hooks = require("../hooks");
|
|
27
23
|
|
|
24
|
+
var _TableBody = _interopRequireDefault(require("./TableBody"));
|
|
25
|
+
|
|
28
26
|
var _jsxRuntime = require("react/jsx-runtime");
|
|
29
27
|
|
|
28
|
+
var _excluded = ["data"];
|
|
29
|
+
|
|
30
30
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
31
31
|
|
|
32
|
+
(function () {
|
|
33
|
+
var enterModule = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.enterModule : undefined;
|
|
34
|
+
enterModule && enterModule(module);
|
|
35
|
+
})();
|
|
36
|
+
|
|
32
37
|
function _toConsumableArray(arr) { return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableSpread(); }
|
|
33
38
|
|
|
34
39
|
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."); }
|
|
@@ -43,6 +48,10 @@ function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { va
|
|
|
43
48
|
|
|
44
49
|
function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
45
50
|
|
|
51
|
+
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; }
|
|
52
|
+
|
|
53
|
+
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; }
|
|
54
|
+
|
|
46
55
|
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
|
|
47
56
|
|
|
48
57
|
function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
|
|
@@ -55,32 +64,30 @@ function _iterableToArrayLimit(arr, i) { var _i = arr == null ? null : typeof Sy
|
|
|
55
64
|
|
|
56
65
|
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
57
66
|
|
|
58
|
-
var
|
|
67
|
+
var __signature__ = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.default.signature : function (a) {
|
|
68
|
+
return a;
|
|
69
|
+
};
|
|
70
|
+
|
|
71
|
+
var SASQLookupComponent = function SASQLookupComponent(props) {
|
|
59
72
|
var _totalData$pages$redu, _totalData$pages;
|
|
60
73
|
|
|
61
|
-
var _children =
|
|
62
|
-
|
|
63
|
-
fetchParameters =
|
|
64
|
-
|
|
65
|
-
|
|
74
|
+
var _children = props.children,
|
|
75
|
+
_props$fetchParameter = props.fetchParameters,
|
|
76
|
+
fetchParameters = _props$fetchParameter === void 0 ? {} : _props$fetchParameter,
|
|
77
|
+
_props$FilterComponen = props.FilterComponent,
|
|
78
|
+
FilterComponent = _props$FilterComponen === void 0 ? function () {
|
|
66
79
|
return null;
|
|
67
|
-
} :
|
|
68
|
-
|
|
69
|
-
|
|
80
|
+
} : _props$FilterComponen,
|
|
81
|
+
_props$FilterPaneHead = props.FilterPaneHeaderComponent,
|
|
82
|
+
FilterPaneHeaderComponent = _props$FilterPaneHead === void 0 ? function () {
|
|
70
83
|
return null;
|
|
71
|
-
} :
|
|
72
|
-
|
|
73
|
-
id =
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
noSearchField = _ref.noSearchField,
|
|
79
|
-
path = _ref.path,
|
|
80
|
-
_ref$resultColumns = _ref.resultColumns,
|
|
81
|
-
resultColumns = _ref$resultColumns === void 0 ? [] : _ref$resultColumns,
|
|
82
|
-
RenderBody = _ref.RenderBody,
|
|
83
|
-
sasqProps = _ref.sasqProps;
|
|
84
|
+
} : _props$FilterPaneHead,
|
|
85
|
+
filterPaneProps = props.filterPaneProps,
|
|
86
|
+
id = props.id,
|
|
87
|
+
mainPaneProps = props.mainPaneProps,
|
|
88
|
+
noSearchField = props.noSearchField,
|
|
89
|
+
RenderBody = props.RenderBody,
|
|
90
|
+
sasqProps = props.sasqProps;
|
|
84
91
|
|
|
85
92
|
var _useKiwtSASQuery = (0, _hooks.useKiwtSASQuery)(),
|
|
86
93
|
query = _useKiwtSASQuery.query,
|
|
@@ -93,9 +100,9 @@ var SASQLookupComponent = function SASQLookupComponent(_ref) {
|
|
|
93
100
|
var ky = (0, _core.useOkapiKy)();
|
|
94
101
|
var filterPaneVisibileKey = "".concat(namespace, "-").concat(id, "-filterPaneVisibility");
|
|
95
102
|
|
|
96
|
-
var fetchPageData = function fetchPageData(
|
|
97
|
-
var
|
|
98
|
-
pageParam =
|
|
103
|
+
var fetchPageData = function fetchPageData(_ref) {
|
|
104
|
+
var _ref$pageParam = _ref.pageParam,
|
|
105
|
+
pageParam = _ref$pageParam === void 0 ? 0 : _ref$pageParam;
|
|
99
106
|
var queryMap = fetchParameters.SASQ_MAP;
|
|
100
107
|
queryMap.offset = pageParam;
|
|
101
108
|
return ky("".concat(fetchParameters.endpoint).concat((0, _utils.generateKiwtQuery)(queryMap, query))).json();
|
|
@@ -113,10 +120,7 @@ var SASQLookupComponent = function SASQLookupComponent(_ref) {
|
|
|
113
120
|
var _useInfiniteQuery = (0, _reactQuery.useInfiniteQuery)([namespace, id, 'data', query], fetchPageData),
|
|
114
121
|
_useInfiniteQuery$dat = _useInfiniteQuery.data,
|
|
115
122
|
totalData = _useInfiniteQuery$dat === void 0 ? {} : _useInfiniteQuery$dat,
|
|
116
|
-
|
|
117
|
-
isError = _useInfiniteQuery.isError,
|
|
118
|
-
isLoading = _useInfiniteQuery.isLoading,
|
|
119
|
-
fetchNextPage = _useInfiniteQuery.fetchNextPage;
|
|
123
|
+
restOfInfiniteQueryProps = _objectWithoutProperties(_useInfiniteQuery, _excluded);
|
|
120
124
|
|
|
121
125
|
var data = (_totalData$pages$redu = (_totalData$pages = totalData.pages) === null || _totalData$pages === void 0 ? void 0 : _totalData$pages.reduce(function (acc, curr) {
|
|
122
126
|
var _acc$results, _curr$results;
|
|
@@ -138,22 +142,7 @@ var SASQLookupComponent = function SASQLookupComponent(_ref) {
|
|
|
138
142
|
newResults.push.apply(newResults, _toConsumableArray((_curr$results = curr.results) !== null && _curr$results !== void 0 ? _curr$results : []));
|
|
139
143
|
newAcc.results = newResults;
|
|
140
144
|
return newAcc;
|
|
141
|
-
}, {})) !== null && _totalData$pages$redu !== void 0 ? _totalData$pages$redu : {};
|
|
142
|
-
|
|
143
|
-
var onNeedMoreData = function onNeedMoreData(_askAmount, index) {
|
|
144
|
-
fetchNextPage({
|
|
145
|
-
pageParam: index
|
|
146
|
-
});
|
|
147
|
-
}; // Build the map of column definitions
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
var columnMapping = Object.fromEntries(resultColumns.map(function (e) {
|
|
151
|
-
return [e.propertyPath, e.label];
|
|
152
|
-
})); // Build the list of visible columns
|
|
153
|
-
|
|
154
|
-
var visibleColumns = resultColumns.map(function (e) {
|
|
155
|
-
return e.propertyPath;
|
|
156
|
-
});
|
|
145
|
+
}, {})) !== null && _totalData$pages$redu !== void 0 ? _totalData$pages$redu : {};
|
|
157
146
|
return /*#__PURE__*/(0, _jsxRuntime.jsx)(_smartComponents.SearchAndSortQuery, _objectSpread(_objectSpread({
|
|
158
147
|
initialSearchState: {
|
|
159
148
|
query: ''
|
|
@@ -161,61 +150,23 @@ var SASQLookupComponent = function SASQLookupComponent(_ref) {
|
|
|
161
150
|
queryGetter: queryGetter,
|
|
162
151
|
querySetter: querySetter
|
|
163
152
|
}, sasqProps), {}, {
|
|
164
|
-
children: function children(
|
|
165
|
-
var
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
resetAll = _ref3.resetAll,
|
|
174
|
-
searchChanged = _ref3.searchChanged,
|
|
175
|
-
searchValue = _ref3.searchValue;
|
|
153
|
+
children: function children(sasqRenderProps) {
|
|
154
|
+
var activeFilters = sasqRenderProps.activeFilters,
|
|
155
|
+
filterChanged = sasqRenderProps.filterChanged,
|
|
156
|
+
getFilterHandlers = sasqRenderProps.getFilterHandlers,
|
|
157
|
+
getSearchHandlers = sasqRenderProps.getSearchHandlers,
|
|
158
|
+
onSubmitSearch = sasqRenderProps.onSubmitSearch,
|
|
159
|
+
resetAll = sasqRenderProps.resetAll,
|
|
160
|
+
searchChanged = sasqRenderProps.searchChanged,
|
|
161
|
+
searchValue = sasqRenderProps.searchValue;
|
|
176
162
|
var searchHandlers = getSearchHandlers();
|
|
177
|
-
var sortOrder = (_query$sort = query.sort) !== null && _query$sort !== void 0 ? _query$sort : '';
|
|
178
163
|
var disableReset = !filterChanged && !searchChanged;
|
|
179
164
|
var filterCount = activeFilters.string ? activeFilters.string.split(',').length : 0;
|
|
180
|
-
|
|
181
|
-
var TableBody = function TableBody() {
|
|
182
|
-
return /*#__PURE__*/(0, _jsxRuntime.jsx)(_components.MultiColumnList, _objectSpread({
|
|
183
|
-
autosize: true,
|
|
184
|
-
columnMapping: columnMapping,
|
|
185
|
-
contentData: data === null || data === void 0 ? void 0 : data.results,
|
|
186
|
-
isEmptyMessage: /*#__PURE__*/(0, _jsxRuntime.jsx)(_NoResultsMessage.default, {
|
|
187
|
-
error: error,
|
|
188
|
-
isError: isError,
|
|
189
|
-
isLoading: isLoading,
|
|
190
|
-
filterPaneIsVisible: filterPaneVisible,
|
|
191
|
-
searchTerm: query.query,
|
|
192
|
-
toggleFilterPane: toggleFilterPane
|
|
193
|
-
}),
|
|
194
|
-
isSelected: function isSelected(_ref4) {
|
|
195
|
-
var _match$params;
|
|
196
|
-
|
|
197
|
-
var item = _ref4.item;
|
|
198
|
-
return item.id === (match === null || match === void 0 ? void 0 : (_match$params = match.params) === null || _match$params === void 0 ? void 0 : _match$params.id);
|
|
199
|
-
},
|
|
200
|
-
onHeaderClick: onSort,
|
|
201
|
-
onNeedMoreData: onNeedMoreData,
|
|
202
|
-
onRowClick: function onRowClick(_e, rowData) {
|
|
203
|
-
history.push("".concat(path, "/").concat(rowData === null || rowData === void 0 ? void 0 : rowData.id).concat(location === null || location === void 0 ? void 0 : location.search));
|
|
204
|
-
},
|
|
205
|
-
pagingType: "click",
|
|
206
|
-
sortDirection: sortOrder.startsWith('-') ? 'descending' : 'ascending',
|
|
207
|
-
sortOrder: sortOrder.replace(/^-/, '').replace(/,.*/, ''),
|
|
208
|
-
totalCount: data.totalRecords,
|
|
209
|
-
virtualize: true,
|
|
210
|
-
visibleColumns: visibleColumns
|
|
211
|
-
}, mclProps));
|
|
212
|
-
};
|
|
213
|
-
|
|
214
|
-
var Body = RenderBody !== null && RenderBody !== void 0 ? RenderBody : TableBody;
|
|
165
|
+
var Body = RenderBody !== null && RenderBody !== void 0 ? RenderBody : _TableBody.default;
|
|
215
166
|
return /*#__PURE__*/(0, _jsxRuntime.jsxs)(_smartComponents.PersistedPaneset, {
|
|
216
167
|
appId: namespace,
|
|
217
168
|
id: "".concat(id, "-paneset"),
|
|
218
|
-
children: [filterPaneVisible && /*#__PURE__*/(0, _jsxRuntime.jsx)(_components.Pane, {
|
|
169
|
+
children: [filterPaneVisible && /*#__PURE__*/(0, _jsxRuntime.jsx)(_components.Pane, _objectSpread(_objectSpread({
|
|
219
170
|
defaultWidth: "20%",
|
|
220
171
|
lastMenu: /*#__PURE__*/(0, _jsxRuntime.jsx)(_components.PaneMenu, {
|
|
221
172
|
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_components.IconButton, {
|
|
@@ -227,14 +178,23 @@ var SASQLookupComponent = function SASQLookupComponent(_ref) {
|
|
|
227
178
|
}),
|
|
228
179
|
paneTitle: /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactIntl.FormattedMessage, {
|
|
229
180
|
id: "stripes-smart-components.searchAndFilter"
|
|
230
|
-
})
|
|
181
|
+
})
|
|
182
|
+
}, filterPaneProps), {}, {
|
|
231
183
|
children: /*#__PURE__*/(0, _jsxRuntime.jsxs)("form", {
|
|
232
184
|
onSubmit: onSubmitSearch,
|
|
233
185
|
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(FilterPaneHeaderComponent, {}), !noSearchField && /*#__PURE__*/(0, _jsxRuntime.jsxs)(_jsxRuntime.Fragment, {
|
|
234
186
|
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_components.SearchField, {
|
|
235
187
|
autoFocus: true,
|
|
236
188
|
name: "query",
|
|
237
|
-
onChange:
|
|
189
|
+
onChange: function onChange(e) {
|
|
190
|
+
var _e$target;
|
|
191
|
+
|
|
192
|
+
if ((_e$target = e.target) !== null && _e$target !== void 0 && _e$target.value) {
|
|
193
|
+
searchHandlers.query(e); // SASQ needs the whole event here
|
|
194
|
+
} else {
|
|
195
|
+
searchHandlers.reset();
|
|
196
|
+
}
|
|
197
|
+
},
|
|
238
198
|
onClear: searchHandlers.reset,
|
|
239
199
|
value: searchValue.query
|
|
240
200
|
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_components.Button, {
|
|
@@ -267,7 +227,7 @@ var SASQLookupComponent = function SASQLookupComponent(_ref) {
|
|
|
267
227
|
searchValue: searchValue
|
|
268
228
|
})]
|
|
269
229
|
})
|
|
270
|
-
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_components.Pane, _objectSpread(_objectSpread({
|
|
230
|
+
})), /*#__PURE__*/(0, _jsxRuntime.jsx)(_components.Pane, _objectSpread(_objectSpread({
|
|
271
231
|
defaultWidth: "fill",
|
|
272
232
|
firstMenu: !filterPaneVisible ? /*#__PURE__*/(0, _jsxRuntime.jsx)(_components.PaneMenu, {
|
|
273
233
|
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_components.IconButton, {
|
|
@@ -278,6 +238,8 @@ var SASQLookupComponent = function SASQLookupComponent(_ref) {
|
|
|
278
238
|
}
|
|
279
239
|
})
|
|
280
240
|
}) : null,
|
|
241
|
+
noOverflow: true,
|
|
242
|
+
padContent: false,
|
|
281
243
|
paneSub: /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactIntl.FormattedMessage, {
|
|
282
244
|
id: "stripes-kint-components.sasqLookupComponent.mainPane.found",
|
|
283
245
|
values: {
|
|
@@ -285,18 +247,25 @@ var SASQLookupComponent = function SASQLookupComponent(_ref) {
|
|
|
285
247
|
}
|
|
286
248
|
})
|
|
287
249
|
}, mainPaneProps), {}, {
|
|
288
|
-
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(Body, {
|
|
289
|
-
data: data
|
|
290
|
-
|
|
250
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(Body, _objectSpread(_objectSpread(_objectSpread({
|
|
251
|
+
data: data,
|
|
252
|
+
query: query,
|
|
253
|
+
toggleFilterPane: toggleFilterPane
|
|
254
|
+
}, restOfInfiniteQueryProps), sasqProps), props))
|
|
291
255
|
})), _children]
|
|
292
256
|
});
|
|
293
257
|
}
|
|
294
258
|
}));
|
|
295
259
|
};
|
|
296
260
|
|
|
261
|
+
__signature__(SASQLookupComponent, "useKiwtSASQuery{{ query, queryGetter, querySetter }}\nuseNamespace{{ 0: namespace }}\nuseOkapiKy{ky}\nuseLocalStorageState{[filterPaneVisible, setFilterPaneVisible]}\nuseInfiniteQuery{{\n data: totalData = {},\n ...restOfInfiniteQueryProps\n }}", function () {
|
|
262
|
+
return [_hooks.useKiwtSASQuery, _core.useNamespace, _core.useOkapiKy, _hooks.useLocalStorageState, _reactQuery.useInfiniteQuery];
|
|
263
|
+
});
|
|
264
|
+
|
|
297
265
|
SASQLookupComponent.propTypes = {
|
|
298
266
|
children: _propTypes.default.oneOfType([_propTypes.default.func, _propTypes.default.node]),
|
|
299
267
|
fetchParameters: _propTypes.default.object,
|
|
268
|
+
filterPaneProps: _propTypes.default.object,
|
|
300
269
|
FilterComponent: _propTypes.default.oneOfType([_propTypes.default.func, _propTypes.default.node]),
|
|
301
270
|
FilterPaneHeaderComponent: _propTypes.default.oneOfType([_propTypes.default.func, _propTypes.default.node]),
|
|
302
271
|
history: _propTypes.default.object,
|
|
@@ -313,4 +282,24 @@ SASQLookupComponent.propTypes = {
|
|
|
313
282
|
sasqProps: _propTypes.default.object
|
|
314
283
|
};
|
|
315
284
|
var _default = SASQLookupComponent;
|
|
316
|
-
|
|
285
|
+
var _default2 = _default;
|
|
286
|
+
exports.default = _default2;
|
|
287
|
+
;
|
|
288
|
+
|
|
289
|
+
(function () {
|
|
290
|
+
var reactHotLoader = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.default : undefined;
|
|
291
|
+
|
|
292
|
+
if (!reactHotLoader) {
|
|
293
|
+
return;
|
|
294
|
+
}
|
|
295
|
+
|
|
296
|
+
reactHotLoader.register(SASQLookupComponent, "SASQLookupComponent", "/home/ethan/FolioModules/stripes-kint-components/src/lib/SASQLookupComponent/SASQLookupComponent.js");
|
|
297
|
+
reactHotLoader.register(_default, "default", "/home/ethan/FolioModules/stripes-kint-components/src/lib/SASQLookupComponent/SASQLookupComponent.js");
|
|
298
|
+
})();
|
|
299
|
+
|
|
300
|
+
;
|
|
301
|
+
|
|
302
|
+
(function () {
|
|
303
|
+
var leaveModule = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.leaveModule : undefined;
|
|
304
|
+
leaveModule && leaveModule(module);
|
|
305
|
+
})();
|
|
@@ -0,0 +1,146 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.default = void 0;
|
|
7
|
+
|
|
8
|
+
var _propTypes = _interopRequireDefault(require("prop-types"));
|
|
9
|
+
|
|
10
|
+
var _reactRouterDom = require("react-router-dom");
|
|
11
|
+
|
|
12
|
+
var _components = require("@folio/stripes/components");
|
|
13
|
+
|
|
14
|
+
var _NoResultsMessage = _interopRequireDefault(require("../../NoResultsMessage"));
|
|
15
|
+
|
|
16
|
+
var _jsxRuntime = require("react/jsx-runtime");
|
|
17
|
+
|
|
18
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
19
|
+
|
|
20
|
+
(function () {
|
|
21
|
+
var enterModule = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.enterModule : undefined;
|
|
22
|
+
enterModule && enterModule(module);
|
|
23
|
+
})();
|
|
24
|
+
|
|
25
|
+
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; }
|
|
26
|
+
|
|
27
|
+
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; }
|
|
28
|
+
|
|
29
|
+
function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
30
|
+
|
|
31
|
+
var __signature__ = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.default.signature : function (a) {
|
|
32
|
+
return a;
|
|
33
|
+
};
|
|
34
|
+
|
|
35
|
+
var TableBody = function TableBody(_ref) {
|
|
36
|
+
var _query$sort;
|
|
37
|
+
|
|
38
|
+
var data = _ref.data,
|
|
39
|
+
error = _ref.error,
|
|
40
|
+
fetchNextPage = _ref.fetchNextPage,
|
|
41
|
+
filterPaneVisible = _ref.filterPaneVisible,
|
|
42
|
+
isError = _ref.isError,
|
|
43
|
+
isLoading = _ref.isLoading,
|
|
44
|
+
match = _ref.match,
|
|
45
|
+
mclProps = _ref.mclProps,
|
|
46
|
+
onSort = _ref.onSort,
|
|
47
|
+
path = _ref.path,
|
|
48
|
+
resultColumns = _ref.resultColumns,
|
|
49
|
+
toggleFilterPane = _ref.toggleFilterPane,
|
|
50
|
+
query = _ref.query;
|
|
51
|
+
var sortOrder = (_query$sort = query.sort) !== null && _query$sort !== void 0 ? _query$sort : '';
|
|
52
|
+
var history = (0, _reactRouterDom.useHistory)();
|
|
53
|
+
var location = (0, _reactRouterDom.useLocation)();
|
|
54
|
+
|
|
55
|
+
var onNeedMoreData = function onNeedMoreData(_askAmount, index) {
|
|
56
|
+
fetchNextPage({
|
|
57
|
+
pageParam: index
|
|
58
|
+
});
|
|
59
|
+
}; // Build the map of column definitions
|
|
60
|
+
|
|
61
|
+
|
|
62
|
+
var columnMapping = Object.fromEntries(resultColumns.map(function (e) {
|
|
63
|
+
return [e.propertyPath, e.label];
|
|
64
|
+
})); // Build the list of visible columns
|
|
65
|
+
|
|
66
|
+
var visibleColumns = resultColumns.map(function (e) {
|
|
67
|
+
return e.propertyPath;
|
|
68
|
+
});
|
|
69
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsx)(_components.MultiColumnList, _objectSpread({
|
|
70
|
+
autosize: true,
|
|
71
|
+
columnMapping: columnMapping,
|
|
72
|
+
contentData: data === null || data === void 0 ? void 0 : data.results,
|
|
73
|
+
hasMargin: true,
|
|
74
|
+
isEmptyMessage: /*#__PURE__*/(0, _jsxRuntime.jsx)(_NoResultsMessage.default, {
|
|
75
|
+
error: error,
|
|
76
|
+
isError: isError,
|
|
77
|
+
isLoading: isLoading,
|
|
78
|
+
filterPaneIsVisible: filterPaneVisible,
|
|
79
|
+
searchTerm: query.query,
|
|
80
|
+
toggleFilterPane: toggleFilterPane
|
|
81
|
+
}),
|
|
82
|
+
isSelected: function isSelected(_ref2) {
|
|
83
|
+
var _match$params;
|
|
84
|
+
|
|
85
|
+
var item = _ref2.item;
|
|
86
|
+
return item.id === (match === null || match === void 0 ? void 0 : (_match$params = match.params) === null || _match$params === void 0 ? void 0 : _match$params.id);
|
|
87
|
+
},
|
|
88
|
+
onHeaderClick: onSort,
|
|
89
|
+
onNeedMoreData: onNeedMoreData,
|
|
90
|
+
onRowClick: function onRowClick(_e, rowData) {
|
|
91
|
+
history.push("".concat(path, "/").concat(rowData === null || rowData === void 0 ? void 0 : rowData.id).concat(location === null || location === void 0 ? void 0 : location.search));
|
|
92
|
+
},
|
|
93
|
+
pagingType: "click",
|
|
94
|
+
sortDirection: sortOrder.startsWith('-') ? 'descending' : 'ascending',
|
|
95
|
+
sortOrder: sortOrder.replace(/^-/, '').replace(/,.*/, ''),
|
|
96
|
+
totalCount: data.totalRecords,
|
|
97
|
+
visibleColumns: visibleColumns
|
|
98
|
+
}, mclProps));
|
|
99
|
+
};
|
|
100
|
+
|
|
101
|
+
__signature__(TableBody, "useHistory{history}\nuseLocation{location}", function () {
|
|
102
|
+
return [_reactRouterDom.useHistory, _reactRouterDom.useLocation];
|
|
103
|
+
});
|
|
104
|
+
|
|
105
|
+
TableBody.propTypes = {
|
|
106
|
+
data: _propTypes.default.shape({
|
|
107
|
+
totalRecords: _propTypes.default.number,
|
|
108
|
+
results: _propTypes.default.arrayOf(_propTypes.default.object)
|
|
109
|
+
}),
|
|
110
|
+
error: _propTypes.default.object,
|
|
111
|
+
fetchNextPage: _propTypes.default.func,
|
|
112
|
+
filterPaneVisible: _propTypes.default.bool,
|
|
113
|
+
history: _propTypes.default.object,
|
|
114
|
+
isError: _propTypes.default.bool,
|
|
115
|
+
isLoading: _propTypes.default.bool,
|
|
116
|
+
location: _propTypes.default.object,
|
|
117
|
+
match: _propTypes.default.object,
|
|
118
|
+
mclProps: _propTypes.default.object,
|
|
119
|
+
onSort: _propTypes.default.func,
|
|
120
|
+
path: _propTypes.default.string.isRequired,
|
|
121
|
+
query: _propTypes.default.object,
|
|
122
|
+
resultColumns: _propTypes.default.arrayOf(_propTypes.default.object),
|
|
123
|
+
toggleFilterPane: _propTypes.default.func
|
|
124
|
+
};
|
|
125
|
+
var _default = TableBody;
|
|
126
|
+
var _default2 = _default;
|
|
127
|
+
exports.default = _default2;
|
|
128
|
+
;
|
|
129
|
+
|
|
130
|
+
(function () {
|
|
131
|
+
var reactHotLoader = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.default : undefined;
|
|
132
|
+
|
|
133
|
+
if (!reactHotLoader) {
|
|
134
|
+
return;
|
|
135
|
+
}
|
|
136
|
+
|
|
137
|
+
reactHotLoader.register(TableBody, "TableBody", "/home/ethan/FolioModules/stripes-kint-components/src/lib/SASQLookupComponent/TableBody/TableBody.js");
|
|
138
|
+
reactHotLoader.register(_default, "default", "/home/ethan/FolioModules/stripes-kint-components/src/lib/SASQLookupComponent/TableBody/TableBody.js");
|
|
139
|
+
})();
|
|
140
|
+
|
|
141
|
+
;
|
|
142
|
+
|
|
143
|
+
(function () {
|
|
144
|
+
var leaveModule = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.leaveModule : undefined;
|
|
145
|
+
leaveModule && leaveModule(module);
|
|
146
|
+
})();
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
Object.defineProperty(exports, "default", {
|
|
7
|
+
enumerable: true,
|
|
8
|
+
get: function get() {
|
|
9
|
+
return _TableBody.default;
|
|
10
|
+
}
|
|
11
|
+
});
|
|
12
|
+
|
|
13
|
+
var _TableBody = _interopRequireDefault(require("./TableBody"));
|
|
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
|
+
};
|
|
@@ -3,13 +3,25 @@
|
|
|
3
3
|
Object.defineProperty(exports, "__esModule", {
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
|
-
Object.defineProperty(exports, "
|
|
6
|
+
Object.defineProperty(exports, "SASQLookupComponent", {
|
|
7
7
|
enumerable: true,
|
|
8
8
|
get: function get() {
|
|
9
9
|
return _SASQLookupComponent.default;
|
|
10
10
|
}
|
|
11
11
|
});
|
|
12
|
+
Object.defineProperty(exports, "TableBody", {
|
|
13
|
+
enumerable: true,
|
|
14
|
+
get: function get() {
|
|
15
|
+
return _TableBody.default;
|
|
16
|
+
}
|
|
17
|
+
});
|
|
12
18
|
|
|
13
19
|
var _SASQLookupComponent = _interopRequireDefault(require("./SASQLookupComponent"));
|
|
14
20
|
|
|
15
|
-
|
|
21
|
+
var _TableBody = _interopRequireDefault(require("./TableBody"));
|
|
22
|
+
|
|
23
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
24
|
+
|
|
25
|
+
var __signature__ = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.default.signature : function (a) {
|
|
26
|
+
return a;
|
|
27
|
+
};
|
|
@@ -11,7 +11,7 @@ var _propTypes = _interopRequireDefault(require("prop-types"));
|
|
|
11
11
|
|
|
12
12
|
var _reactRouterDom = require("react-router-dom");
|
|
13
13
|
|
|
14
|
-
var _SASQLookupComponent =
|
|
14
|
+
var _SASQLookupComponent = require("../SASQLookupComponent");
|
|
15
15
|
|
|
16
16
|
var _SASQViewComponent = _interopRequireDefault(require("../SASQViewComponent"));
|
|
17
17
|
|
|
@@ -21,6 +21,11 @@ var _excluded = ["children", "path", "fetchParameters"];
|
|
|
21
21
|
|
|
22
22
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
23
23
|
|
|
24
|
+
(function () {
|
|
25
|
+
var enterModule = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.enterModule : undefined;
|
|
26
|
+
enterModule && enterModule(module);
|
|
27
|
+
})();
|
|
28
|
+
|
|
24
29
|
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; }
|
|
25
30
|
|
|
26
31
|
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; }
|
|
@@ -31,6 +36,10 @@ function _objectWithoutProperties(source, excluded) { if (source == null) return
|
|
|
31
36
|
|
|
32
37
|
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; }
|
|
33
38
|
|
|
39
|
+
var __signature__ = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.default.signature : function (a) {
|
|
40
|
+
return a;
|
|
41
|
+
};
|
|
42
|
+
|
|
34
43
|
var SASQRoute = function SASQRoute(_ref) {
|
|
35
44
|
var children = _ref.children,
|
|
36
45
|
path = _ref.path,
|
|
@@ -51,7 +60,7 @@ var SASQRoute = function SASQRoute(_ref) {
|
|
|
51
60
|
return /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactRouterDom.Route, {
|
|
52
61
|
path: "".concat(path, "/:id?"),
|
|
53
62
|
render: function render(routeProps) {
|
|
54
|
-
return /*#__PURE__*/(0, _jsxRuntime.jsx)(_SASQLookupComponent.
|
|
63
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsx)(_SASQLookupComponent.SASQLookupComponent, _objectSpread(_objectSpread(_objectSpread({}, routeProps), {}, {
|
|
55
64
|
fetchParameters: fetchParameters,
|
|
56
65
|
path: path
|
|
57
66
|
}, props), {}, {
|
|
@@ -79,4 +88,24 @@ SASQRoute.propTypes = {
|
|
|
79
88
|
ViewComponent: _propTypes.default.oneOfType([_propTypes.default.func, _propTypes.default.node])
|
|
80
89
|
};
|
|
81
90
|
var _default = SASQRoute;
|
|
82
|
-
|
|
91
|
+
var _default2 = _default;
|
|
92
|
+
exports.default = _default2;
|
|
93
|
+
;
|
|
94
|
+
|
|
95
|
+
(function () {
|
|
96
|
+
var reactHotLoader = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.default : undefined;
|
|
97
|
+
|
|
98
|
+
if (!reactHotLoader) {
|
|
99
|
+
return;
|
|
100
|
+
}
|
|
101
|
+
|
|
102
|
+
reactHotLoader.register(SASQRoute, "SASQRoute", "/home/ethan/FolioModules/stripes-kint-components/src/lib/SASQRoute/SASQRoute.js");
|
|
103
|
+
reactHotLoader.register(_default, "default", "/home/ethan/FolioModules/stripes-kint-components/src/lib/SASQRoute/SASQRoute.js");
|
|
104
|
+
})();
|
|
105
|
+
|
|
106
|
+
;
|
|
107
|
+
|
|
108
|
+
(function () {
|
|
109
|
+
var leaveModule = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.leaveModule : undefined;
|
|
110
|
+
leaveModule && leaveModule(module);
|
|
111
|
+
})();
|
|
@@ -12,4 +12,8 @@ Object.defineProperty(exports, "default", {
|
|
|
12
12
|
|
|
13
13
|
var _SASQRoute = _interopRequireDefault(require("./SASQRoute"));
|
|
14
14
|
|
|
15
|
-
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
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
|
+
};
|
|
@@ -20,6 +20,11 @@ var _excluded = ["fetchParameters", "history", "location", "match", "path", "Vie
|
|
|
20
20
|
|
|
21
21
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
22
22
|
|
|
23
|
+
(function () {
|
|
24
|
+
var enterModule = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.enterModule : undefined;
|
|
25
|
+
enterModule && enterModule(module);
|
|
26
|
+
})();
|
|
27
|
+
|
|
23
28
|
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; }
|
|
24
29
|
|
|
25
30
|
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; }
|
|
@@ -30,6 +35,10 @@ function _objectWithoutProperties(source, excluded) { if (source == null) return
|
|
|
30
35
|
|
|
31
36
|
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; }
|
|
32
37
|
|
|
38
|
+
var __signature__ = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.default.signature : function (a) {
|
|
39
|
+
return a;
|
|
40
|
+
};
|
|
41
|
+
|
|
33
42
|
var SASQViewComponent = function SASQViewComponent(_ref) {
|
|
34
43
|
var _fetchParameters$item, _match$params, _match$params3;
|
|
35
44
|
|
|
@@ -68,6 +77,10 @@ var SASQViewComponent = function SASQViewComponent(_ref) {
|
|
|
68
77
|
}, props));
|
|
69
78
|
};
|
|
70
79
|
|
|
80
|
+
__signature__(SASQViewComponent, "useNamespace{{ 0: namespace }}\nuseOkapiKy{ky}\nuseQuery{{ data = {}, ...rest }}", function () {
|
|
81
|
+
return [_core.useNamespace, _core.useOkapiKy, _reactQuery.useQuery];
|
|
82
|
+
});
|
|
83
|
+
|
|
71
84
|
SASQViewComponent.propTypes = {
|
|
72
85
|
fetchParameters: _propTypes.default.object,
|
|
73
86
|
history: _propTypes.default.object,
|
|
@@ -77,4 +90,24 @@ SASQViewComponent.propTypes = {
|
|
|
77
90
|
ViewComponent: _propTypes.default.oneOfType([_propTypes.default.func, _propTypes.default.node])
|
|
78
91
|
};
|
|
79
92
|
var _default = SASQViewComponent;
|
|
80
|
-
|
|
93
|
+
var _default2 = _default;
|
|
94
|
+
exports.default = _default2;
|
|
95
|
+
;
|
|
96
|
+
|
|
97
|
+
(function () {
|
|
98
|
+
var reactHotLoader = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.default : undefined;
|
|
99
|
+
|
|
100
|
+
if (!reactHotLoader) {
|
|
101
|
+
return;
|
|
102
|
+
}
|
|
103
|
+
|
|
104
|
+
reactHotLoader.register(SASQViewComponent, "SASQViewComponent", "/home/ethan/FolioModules/stripes-kint-components/src/lib/SASQViewComponent/SASQViewComponent.js");
|
|
105
|
+
reactHotLoader.register(_default, "default", "/home/ethan/FolioModules/stripes-kint-components/src/lib/SASQViewComponent/SASQViewComponent.js");
|
|
106
|
+
})();
|
|
107
|
+
|
|
108
|
+
;
|
|
109
|
+
|
|
110
|
+
(function () {
|
|
111
|
+
var leaveModule = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.leaveModule : undefined;
|
|
112
|
+
leaveModule && leaveModule(module);
|
|
113
|
+
})();
|
|
@@ -12,4 +12,8 @@ Object.defineProperty(exports, "default", {
|
|
|
12
12
|
|
|
13
13
|
var _SASQViewComponent = _interopRequireDefault(require("./SASQViewComponent"));
|
|
14
14
|
|
|
15
|
-
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
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
|
+
};
|