@k-int/stripes-kint-components 2.2.0 → 2.3.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +29 -0
- package/es/index.js +125 -9
- package/es/lib/ActionList/ActionList.js +8 -33
- package/es/lib/ActionList/ActionListFieldArray.js +50 -49
- package/es/lib/ActionList/index.js +1 -5
- package/es/lib/CustomProperties/Config/CustomPropertiesLookup.js +1 -35
- package/es/lib/CustomProperties/Config/CustomPropertiesSettings.js +3 -39
- package/es/lib/CustomProperties/Config/CustomPropertyForm.js +1 -34
- package/es/lib/CustomProperties/Config/{CustomPropertiesView.js → CustomPropertyView.js} +4 -33
- package/es/lib/CustomProperties/Config/index.js +7 -9
- package/es/lib/CustomProperties/Edit/CustomPropertiesEdit.js +43 -0
- package/es/lib/CustomProperties/Edit/CustomPropertiesEditCtx.js +100 -0
- package/es/lib/CustomProperties/Edit/CustomPropertiesListField.js +243 -0
- package/es/lib/CustomProperties/Edit/CustomPropertyField.js +337 -0
- package/es/lib/CustomProperties/Edit/CustomPropertyFormCard.js +127 -0
- package/es/lib/CustomProperties/Edit/index.js +47 -0
- package/es/lib/CustomProperties/Filter/CustomPropertiesFilter.js +183 -0
- package/es/lib/CustomProperties/Filter/CustomPropertiesFilterField.js +204 -0
- package/es/lib/CustomProperties/Filter/CustomPropertiesFilterFieldArray.js +126 -0
- package/es/lib/CustomProperties/Filter/CustomPropertiesFilterForm.js +90 -0
- package/es/lib/CustomProperties/Filter/CustomPropertiesRule.js +139 -0
- package/es/lib/CustomProperties/Filter/index.js +55 -0
- package/es/lib/CustomProperties/Filter/useOperators.js +100 -0
- package/es/lib/CustomProperties/Filter/useParseActiveFilterStrings.js +64 -0
- package/es/lib/CustomProperties/Filter/useValueProps.js +67 -0
- package/es/lib/CustomProperties/View/CustomPropertiesView.js +44 -0
- package/es/lib/CustomProperties/View/CustomPropertiesViewCtx.js +155 -0
- package/es/lib/CustomProperties/View/CustomPropertyCard.js +175 -0
- package/es/lib/CustomProperties/View/index.js +31 -0
- package/es/lib/CustomProperties/index.js +121 -0
- package/es/lib/EditableRefdataList/EditableRefdataList.js +13 -51
- package/es/lib/EditableRefdataList/index.js +1 -5
- package/es/lib/EditableSettingsList/EditableSettingsList.js +1 -30
- package/es/lib/EditableSettingsList/EditableSettingsListFieldArray.js +1 -30
- package/es/lib/EditableSettingsList/EditableSettingsListFieldArray.test.js +1 -30
- package/es/lib/EditableSettingsList/SettingField/EditSettingValue.js +1 -34
- package/es/lib/EditableSettingsList/SettingField/EditSettingValue.test.js +1 -34
- package/es/lib/EditableSettingsList/SettingField/RenderSettingValue.js +1 -34
- package/es/lib/EditableSettingsList/SettingField/RenderSettingValue.test.js +1 -41
- package/es/lib/EditableSettingsList/SettingField/SettingField.js +1 -34
- package/es/lib/EditableSettingsList/SettingField/SettingField.test.js +1 -30
- package/es/lib/EditableSettingsList/SettingField/index.js +1 -5
- package/es/lib/EditableSettingsList/index.js +1 -5
- package/es/lib/FormModal/FormModal.js +21 -34
- package/es/lib/FormModal/index.js +1 -5
- package/es/lib/NoResultsMessage/NoResultsMessage.js +1 -30
- package/es/lib/NoResultsMessage/index.js +1 -5
- package/es/lib/QueryTypedown/QueryTypedown.js +9 -37
- package/es/lib/QueryTypedown/index.js +1 -5
- package/es/lib/RefdataButtons/RefdataButtons.js +1 -34
- package/es/lib/RefdataButtons/index.js +1 -5
- package/es/lib/SASQLookupComponent/SASQLookupComponent.js +1 -34
- package/es/lib/SASQLookupComponent/index.js +1 -5
- package/es/lib/SASQRoute/SASQRoute.js +1 -30
- package/es/lib/SASQRoute/index.js +1 -5
- package/es/lib/SASQViewComponent/SASQViewComponent.js +1 -34
- package/es/lib/SASQViewComponent/index.js +1 -5
- package/es/lib/SearchField/SearchField.js +1 -31
- package/es/lib/SearchField/index.js +1 -5
- package/es/lib/SettingPage/SettingPage.js +1 -34
- package/es/lib/SettingPage/SettingPagePane.js +1 -32
- package/es/lib/SettingPage/index.js +1 -5
- package/es/lib/Typedown/Typedown.js +1 -34
- package/es/lib/Typedown/index.js +1 -5
- package/es/lib/constants/customProperties.js +3 -37
- package/es/lib/constants/eventCodes.js +1 -31
- package/es/lib/contexts/SettingsContext.js +1 -30
- package/es/lib/contexts/index.js +1 -5
- package/es/lib/hooks/index.js +16 -4
- package/es/lib/hooks/settingsHooks/index.js +1 -5
- package/es/lib/hooks/settingsHooks/useSettingSection.js +1 -34
- package/es/lib/hooks/settingsHooks/useSettings.js +1 -36
- package/es/lib/hooks/typedownHooks/index.js +1 -5
- package/es/lib/hooks/typedownHooks/useTypedown.js +1 -34
- package/es/lib/hooks/typedownHooks/useTypedownData.js +9 -35
- package/es/lib/hooks/typedownHooks/useTypedownToggle.js +1 -34
- package/es/lib/hooks/useActiveElement.js +1 -32
- package/es/lib/hooks/useAvailableCustomProperties.js +73 -0
- package/es/lib/hooks/useCustomProperties.js +1 -34
- package/es/lib/hooks/useHelperApp.js +1 -34
- package/es/lib/hooks/useInvalidateRefdata.js +20 -0
- package/es/lib/hooks/useKiwtFieldArray.js +1 -34
- package/es/lib/hooks/useKiwtSASQuery.js +1 -35
- package/es/lib/hooks/useLocalStorageState.js +1 -34
- package/es/lib/hooks/useMutateCustomProperties.js +1 -34
- package/es/lib/hooks/useMutateRefdataValue.js +10 -38
- package/es/lib/hooks/useQIndex.js +1 -34
- package/es/lib/hooks/useRefdata.js +2 -37
- package/es/lib/hooks/useTemplates.js +1 -34
- package/es/lib/utils/buildUrl.js +2 -31
- package/es/lib/utils/generateKiwtQuery.js +1 -30
- package/es/lib/utils/generateKiwtQueryParams.js +1 -30
- package/es/lib/utils/groupCustomPropertiesByCtx.js +41 -0
- package/es/lib/utils/index.js +25 -5
- package/es/lib/utils/refdataOptions.js +1 -30
- package/es/lib/utils/refdataQueryKey.js +19 -0
- package/es/lib/utils/renderHelpText.js +1 -30
- package/es/lib/utils/selectorSafe.js +1 -30
- package/es/lib/utils/sortByLabel.js +1 -30
- package/es/lib/utils/toCamelCase.js +1 -30
- package/es/lib/utils/typedownQueryKey.js +19 -0
- package/es/lib/utils/validators.js +59 -31
- package/git_translate.sh +8 -0
- package/package.json +1 -1
- package/src/index.js +27 -3
- package/src/lib/ActionList/ActionList.js +5 -2
- package/src/lib/ActionList/ActionListFieldArray.js +31 -9
- package/src/lib/ActionList/README.md +23 -20
- package/src/lib/CustomProperties/Config/CustomPropertiesSettings.js +2 -2
- package/src/lib/CustomProperties/Config/{CustomPropertiesView.js → CustomPropertyView.js} +3 -3
- package/src/lib/CustomProperties/Config/index.js +1 -1
- package/src/lib/CustomProperties/Edit/CustomPropertiesEdit.js +35 -0
- package/src/lib/CustomProperties/Edit/CustomPropertiesEditCtx.js +85 -0
- package/src/lib/CustomProperties/Edit/CustomPropertiesListField.js +194 -0
- package/src/lib/CustomProperties/Edit/CustomPropertyField.js +299 -0
- package/src/lib/CustomProperties/Edit/CustomPropertyFormCard.js +131 -0
- package/src/lib/CustomProperties/Edit/index.js +5 -0
- package/src/lib/CustomProperties/Filter/CustomPropertiesFilter.js +125 -0
- package/src/lib/CustomProperties/Filter/CustomPropertiesFilterField.js +148 -0
- package/src/lib/CustomProperties/Filter/CustomPropertiesFilterFieldArray.js +113 -0
- package/src/lib/CustomProperties/Filter/CustomPropertiesFilterForm.js +74 -0
- package/src/lib/CustomProperties/Filter/CustomPropertiesRule.js +122 -0
- package/src/lib/CustomProperties/Filter/index.js +6 -0
- package/src/lib/CustomProperties/Filter/useOperators.js +55 -0
- package/src/lib/CustomProperties/Filter/useParseActiveFilterStrings.js +35 -0
- package/src/lib/CustomProperties/Filter/useValueProps.js +45 -0
- package/src/lib/CustomProperties/View/CustomPropertiesView.js +36 -0
- package/src/lib/CustomProperties/View/CustomPropertiesViewCtx.js +112 -0
- package/src/lib/CustomProperties/View/CustomPropertyCard.js +177 -0
- package/src/lib/CustomProperties/View/index.js +3 -0
- package/src/lib/CustomProperties/index.js +30 -0
- package/src/lib/EditableRefdataList/EditableRefdataList.js +13 -10
- package/src/lib/FormModal/FormModal.js +39 -17
- package/src/lib/QueryTypedown/QueryTypedown.js +3 -1
- package/src/lib/constants/customProperties.js +1 -0
- package/src/lib/hooks/index.js +2 -0
- package/src/lib/hooks/typedownHooks/useTypedownData.js +9 -3
- package/src/lib/hooks/useAvailableCustomProperties.js +40 -0
- package/src/lib/hooks/useInvalidateRefdata.js +11 -0
- package/src/lib/hooks/useMutateRefdataValue.js +7 -3
- package/src/lib/hooks/useRefdata.js +2 -3
- package/src/lib/utils/groupCustomPropertiesByCtx.js +13 -0
- package/src/lib/utils/index.js +5 -0
- package/src/lib/utils/refdataQueryKey.js +9 -0
- package/src/lib/utils/typedownQueryKey.js +9 -0
- package/src/lib/utils/validators.js +40 -0
- package/translate.sh +63 -0
- package/translations/stripes-kint-components/ar.json +105 -0
- package/translations/stripes-kint-components/ca.json +1 -0
- package/translations/stripes-kint-components/cs_CZ.json +105 -0
- package/translations/stripes-kint-components/da.json +1 -0
- package/translations/stripes-kint-components/de.json +105 -0
- package/translations/stripes-kint-components/en.json +54 -2
- package/translations/stripes-kint-components/es.json +105 -0
- package/translations/stripes-kint-components/fr.json +105 -0
- package/translations/stripes-kint-components/he.json +1 -0
- package/translations/stripes-kint-components/hi_IN.json +105 -0
- package/translations/stripes-kint-components/hu.json +105 -0
- package/translations/stripes-kint-components/it_IT.json +105 -0
- package/translations/stripes-kint-components/ja.json +105 -0
- package/translations/stripes-kint-components/ko.json +105 -0
- package/translations/stripes-kint-components/nb.json +1 -0
- package/translations/stripes-kint-components/nn.json +1 -0
- package/translations/stripes-kint-components/pl.json +105 -0
- package/translations/stripes-kint-components/pt_PT.json +105 -0
- package/translations/stripes-kint-components/ru.json +105 -0
- package/translations/stripes-kint-components/sv.json +105 -0
- package/translations/stripes-kint-components/ur.json +1 -0
- package/translations/stripes-kint-components/zh_CN.json +105 -0
- package/es/artifacts/coverage-jest/lcov-report/block-navigation.js +0 -109
- package/es/artifacts/coverage-jest/lcov-report/prettify.js +0 -998
- package/es/artifacts/coverage-jest/lcov-report/sorter.js +0 -238
- package/junit.xml +0 -79
- package/src/artifacts/coverage-jest/lcov-report/ActionList/ActionList.js.html +0 -286
- package/src/artifacts/coverage-jest/lcov-report/ActionList/ActionListFieldArray.js.html +0 -925
- package/src/artifacts/coverage-jest/lcov-report/ActionList/index.html +0 -146
- package/src/artifacts/coverage-jest/lcov-report/ActionList/index.js.html +0 -88
- package/src/artifacts/coverage-jest/lcov-report/CustomProperties/Config/CustomPropertiesLookup.js.html +0 -418
- package/src/artifacts/coverage-jest/lcov-report/CustomProperties/Config/CustomPropertiesSettings.js.html +0 -808
- package/src/artifacts/coverage-jest/lcov-report/CustomProperties/Config/CustomPropertiesView.js.html +0 -601
- package/src/artifacts/coverage-jest/lcov-report/CustomProperties/Config/CustomPropertyForm.js.html +0 -1135
- package/src/artifacts/coverage-jest/lcov-report/CustomProperties/Config/index.html +0 -176
- package/src/artifacts/coverage-jest/lcov-report/CustomProperties/Config/index.js.html +0 -97
- package/src/artifacts/coverage-jest/lcov-report/EditableRefdataList/EditableRefdataList.js.html +0 -373
- package/src/artifacts/coverage-jest/lcov-report/EditableRefdataList/index.html +0 -131
- package/src/artifacts/coverage-jest/lcov-report/EditableRefdataList/index.js.html +0 -88
- package/src/artifacts/coverage-jest/lcov-report/EditableSettingsList/EditableSettingsList.js.html +0 -223
- package/src/artifacts/coverage-jest/lcov-report/EditableSettingsList/EditableSettingsListFieldArray.js.html +0 -211
- package/src/artifacts/coverage-jest/lcov-report/EditableSettingsList/SettingField/EditSettingValue.js.html +0 -376
- package/src/artifacts/coverage-jest/lcov-report/EditableSettingsList/SettingField/RenderSettingValue.js.html +0 -262
- package/src/artifacts/coverage-jest/lcov-report/EditableSettingsList/SettingField/SettingField.js.html +0 -436
- package/src/artifacts/coverage-jest/lcov-report/EditableSettingsList/SettingField/index.html +0 -161
- package/src/artifacts/coverage-jest/lcov-report/EditableSettingsList/SettingField/index.js.html +0 -94
- package/src/artifacts/coverage-jest/lcov-report/EditableSettingsList/index.html +0 -146
- package/src/artifacts/coverage-jest/lcov-report/EditableSettingsList/index.js.html +0 -94
- package/src/artifacts/coverage-jest/lcov-report/FormModal/FormModal.js.html +0 -283
- package/src/artifacts/coverage-jest/lcov-report/FormModal/index.html +0 -131
- package/src/artifacts/coverage-jest/lcov-report/FormModal/index.js.html +0 -88
- package/src/artifacts/coverage-jest/lcov-report/NoResultsMessage/NoResultsMessage.js.html +0 -319
- package/src/artifacts/coverage-jest/lcov-report/NoResultsMessage/index.html +0 -131
- package/src/artifacts/coverage-jest/lcov-report/NoResultsMessage/index.js.html +0 -88
- package/src/artifacts/coverage-jest/lcov-report/QueryTypedown/QueryTypedown.js.html +0 -184
- package/src/artifacts/coverage-jest/lcov-report/QueryTypedown/index.html +0 -131
- package/src/artifacts/coverage-jest/lcov-report/QueryTypedown/index.js.html +0 -88
- package/src/artifacts/coverage-jest/lcov-report/RefdataButtons/RefdataButtons.js.html +0 -370
- package/src/artifacts/coverage-jest/lcov-report/RefdataButtons/index.html +0 -131
- package/src/artifacts/coverage-jest/lcov-report/RefdataButtons/index.js.html +0 -88
- package/src/artifacts/coverage-jest/lcov-report/SASQLookupComponent/SASQLookupComponent.js.html +0 -949
- package/src/artifacts/coverage-jest/lcov-report/SASQLookupComponent/index.html +0 -131
- package/src/artifacts/coverage-jest/lcov-report/SASQLookupComponent/index.js.html +0 -88
- package/src/artifacts/coverage-jest/lcov-report/SASQRoute/SASQRoute.js.html +0 -301
- package/src/artifacts/coverage-jest/lcov-report/SASQRoute/index.html +0 -131
- package/src/artifacts/coverage-jest/lcov-report/SASQRoute/index.js.html +0 -88
- package/src/artifacts/coverage-jest/lcov-report/SASQViewComponent/SASQViewComponent.js.html +0 -253
- package/src/artifacts/coverage-jest/lcov-report/SASQViewComponent/index.html +0 -131
- package/src/artifacts/coverage-jest/lcov-report/SASQViewComponent/index.js.html +0 -88
- package/src/artifacts/coverage-jest/lcov-report/SearchField/SearchField.js.html +0 -214
- package/src/artifacts/coverage-jest/lcov-report/SearchField/index.html +0 -131
- package/src/artifacts/coverage-jest/lcov-report/SearchField/index.js.html +0 -88
- package/src/artifacts/coverage-jest/lcov-report/SettingPage/SettingPage.js.html +0 -211
- package/src/artifacts/coverage-jest/lcov-report/SettingPage/SettingPagePane.js.html +0 -178
- package/src/artifacts/coverage-jest/lcov-report/SettingPage/index.html +0 -146
- package/src/artifacts/coverage-jest/lcov-report/SettingPage/index.js.html +0 -91
- package/src/artifacts/coverage-jest/lcov-report/Typedown/Typedown.js.html +0 -919
- package/src/artifacts/coverage-jest/lcov-report/Typedown/index.html +0 -131
- package/src/artifacts/coverage-jest/lcov-report/Typedown/index.js.html +0 -88
- package/src/artifacts/coverage-jest/lcov-report/base.css +0 -224
- package/src/artifacts/coverage-jest/lcov-report/block-navigation.js +0 -87
- package/src/artifacts/coverage-jest/lcov-report/constants/customProperties.js.html +0 -112
- package/src/artifacts/coverage-jest/lcov-report/constants/eventCodes.js.html +0 -94
- package/src/artifacts/coverage-jest/lcov-report/constants/index.html +0 -131
- package/src/artifacts/coverage-jest/lcov-report/contexts/SettingsContext.js.html +0 -97
- package/src/artifacts/coverage-jest/lcov-report/contexts/index.html +0 -131
- package/src/artifacts/coverage-jest/lcov-report/contexts/index.js.html +0 -91
- package/src/artifacts/coverage-jest/lcov-report/favicon.png +0 -0
- package/src/artifacts/coverage-jest/lcov-report/hooks/index.html +0 -281
- package/src/artifacts/coverage-jest/lcov-report/hooks/index.js.html +0 -121
- package/src/artifacts/coverage-jest/lcov-report/hooks/settingsHooks/index.html +0 -146
- package/src/artifacts/coverage-jest/lcov-report/hooks/settingsHooks/index.js.html +0 -91
- package/src/artifacts/coverage-jest/lcov-report/hooks/settingsHooks/useSettingSection.js.html +0 -163
- package/src/artifacts/coverage-jest/lcov-report/hooks/settingsHooks/useSettings.js.html +0 -403
- package/src/artifacts/coverage-jest/lcov-report/hooks/typedownHooks/index.html +0 -161
- package/src/artifacts/coverage-jest/lcov-report/hooks/typedownHooks/index.js.html +0 -94
- package/src/artifacts/coverage-jest/lcov-report/hooks/typedownHooks/useTypedown.js.html +0 -520
- package/src/artifacts/coverage-jest/lcov-report/hooks/typedownHooks/useTypedownData.js.html +0 -163
- package/src/artifacts/coverage-jest/lcov-report/hooks/typedownHooks/useTypedownToggle.js.html +0 -163
- package/src/artifacts/coverage-jest/lcov-report/hooks/useActiveElement.js.html +0 -157
- package/src/artifacts/coverage-jest/lcov-report/hooks/useCustomProperties.js.html +0 -313
- package/src/artifacts/coverage-jest/lcov-report/hooks/useHelperApp.js.html +0 -283
- package/src/artifacts/coverage-jest/lcov-report/hooks/useKiwtFieldArray.js.html +0 -274
- package/src/artifacts/coverage-jest/lcov-report/hooks/useKiwtSASQuery.js.html +0 -178
- package/src/artifacts/coverage-jest/lcov-report/hooks/useLocalStorageState.js.html +0 -136
- package/src/artifacts/coverage-jest/lcov-report/hooks/useMutateCustomProperties.js.html +0 -271
- package/src/artifacts/coverage-jest/lcov-report/hooks/useMutateRefdataValue.js.html +0 -301
- package/src/artifacts/coverage-jest/lcov-report/hooks/useQIndex.js.html +0 -208
- package/src/artifacts/coverage-jest/lcov-report/hooks/useRefdata.js.html +0 -268
- package/src/artifacts/coverage-jest/lcov-report/hooks/useTemplates.js.html +0 -166
- package/src/artifacts/coverage-jest/lcov-report/index.html +0 -416
- package/src/artifacts/coverage-jest/lcov-report/prettify.css +0 -1
- package/src/artifacts/coverage-jest/lcov-report/prettify.js +0 -2
- package/src/artifacts/coverage-jest/lcov-report/sort-arrow-sprite.png +0 -0
- package/src/artifacts/coverage-jest/lcov-report/sorter.js +0 -196
- package/src/artifacts/coverage-jest/lcov-report/utils/buildUrl.js.html +0 -193
- package/src/artifacts/coverage-jest/lcov-report/utils/generateKiwtQuery.js.html +0 -109
- package/src/artifacts/coverage-jest/lcov-report/utils/generateKiwtQueryParams.js.html +0 -454
- package/src/artifacts/coverage-jest/lcov-report/utils/index.html +0 -251
- package/src/artifacts/coverage-jest/lcov-report/utils/index.js.html +0 -121
- package/src/artifacts/coverage-jest/lcov-report/utils/refdataOptions.js.html +0 -106
- package/src/artifacts/coverage-jest/lcov-report/utils/renderHelpText.js.html +0 -166
- package/src/artifacts/coverage-jest/lcov-report/utils/selectorSafe.js.html +0 -103
- package/src/artifacts/coverage-jest/lcov-report/utils/sortByLabel.js.html +0 -130
- package/src/artifacts/coverage-jest/lcov-report/utils/toCamelCase.js.html +0 -127
- package/src/artifacts/coverage-jest/lcov-report/utils/validators.js.html +0 -202
- package/src/artifacts/coverage-jest/lcov.info +0 -2562
|
@@ -15,11 +15,6 @@ function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "functio
|
|
|
15
15
|
|
|
16
16
|
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; }
|
|
17
17
|
|
|
18
|
-
(function () {
|
|
19
|
-
var enterModule = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.enterModule : undefined;
|
|
20
|
-
enterModule && enterModule(module);
|
|
21
|
-
})();
|
|
22
|
-
|
|
23
18
|
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
|
|
24
19
|
|
|
25
20
|
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."); }
|
|
@@ -32,10 +27,6 @@ function _iterableToArrayLimit(arr, i) { var _i = arr == null ? null : typeof Sy
|
|
|
32
27
|
|
|
33
28
|
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
34
29
|
|
|
35
|
-
var __signature__ = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.default.signature : function (a) {
|
|
36
|
-
return a;
|
|
37
|
-
};
|
|
38
|
-
|
|
39
30
|
var useLocalStorageState = function useLocalStorageState(key, defaultValue) {
|
|
40
31
|
var _useLocalStorage = (0, _localStorage.useLocalStorage)(key, defaultValue),
|
|
41
32
|
_useLocalStorage2 = _slicedToArray(_useLocalStorage, 1),
|
|
@@ -54,29 +45,5 @@ var useLocalStorageState = function useLocalStorageState(key, defaultValue) {
|
|
|
54
45
|
return [localState, setLocalStorageState];
|
|
55
46
|
};
|
|
56
47
|
|
|
57
|
-
__signature__(useLocalStorageState, "useLocalStorage{[local]}\nuseState{[localState, setLocalState](local)}", function () {
|
|
58
|
-
return [_localStorage.useLocalStorage];
|
|
59
|
-
});
|
|
60
|
-
|
|
61
48
|
var _default = useLocalStorageState;
|
|
62
|
-
|
|
63
|
-
exports.default = _default2;
|
|
64
|
-
;
|
|
65
|
-
|
|
66
|
-
(function () {
|
|
67
|
-
var reactHotLoader = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.default : undefined;
|
|
68
|
-
|
|
69
|
-
if (!reactHotLoader) {
|
|
70
|
-
return;
|
|
71
|
-
}
|
|
72
|
-
|
|
73
|
-
reactHotLoader.register(useLocalStorageState, "useLocalStorageState", "/home/ethan/FolioModules/stripes-kint-components/src/lib/hooks/useLocalStorageState.js");
|
|
74
|
-
reactHotLoader.register(_default, "default", "/home/ethan/FolioModules/stripes-kint-components/src/lib/hooks/useLocalStorageState.js");
|
|
75
|
-
})();
|
|
76
|
-
|
|
77
|
-
;
|
|
78
|
-
|
|
79
|
-
(function () {
|
|
80
|
-
var leaveModule = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.leaveModule : undefined;
|
|
81
|
-
leaveModule && leaveModule(module);
|
|
82
|
-
})();
|
|
49
|
+
exports.default = _default;
|
|
@@ -9,19 +9,10 @@ var _reactQuery = require("react-query");
|
|
|
9
9
|
|
|
10
10
|
var _core = require("@folio/stripes/core");
|
|
11
11
|
|
|
12
|
-
(function () {
|
|
13
|
-
var enterModule = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.enterModule : undefined;
|
|
14
|
-
enterModule && enterModule(module);
|
|
15
|
-
})();
|
|
16
|
-
|
|
17
12
|
function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) { try { var info = gen[key](arg); var value = info.value; } catch (error) { reject(error); return; } if (info.done) { resolve(value); } else { Promise.resolve(value).then(_next, _throw); } }
|
|
18
13
|
|
|
19
14
|
function _asyncToGenerator(fn) { return function () { var self = this, args = arguments; return new Promise(function (resolve, reject) { var gen = fn.apply(self, args); function _next(value) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, "next", value); } function _throw(err) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, "throw", err); } _next(undefined); }); }; }
|
|
20
15
|
|
|
21
|
-
var __signature__ = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.default.signature : function (a) {
|
|
22
|
-
return a;
|
|
23
|
-
};
|
|
24
|
-
|
|
25
16
|
var useMutateCustomProperties = function useMutateCustomProperties(_ref) {
|
|
26
17
|
var afterQueryCalls = _ref.afterQueryCalls,
|
|
27
18
|
endpoint = _ref.endpoint,
|
|
@@ -115,29 +106,5 @@ var useMutateCustomProperties = function useMutateCustomProperties(_ref) {
|
|
|
115
106
|
return returnObj;
|
|
116
107
|
};
|
|
117
108
|
|
|
118
|
-
__signature__(useMutateCustomProperties, "useOkapiKy{ky}\nuseMutation{deleteQueryObject}\nuseMutation{putQueryObject}\nuseMutation{postQueryObject}", function () {
|
|
119
|
-
return [_core.useOkapiKy, _reactQuery.useMutation, _reactQuery.useMutation, _reactQuery.useMutation];
|
|
120
|
-
});
|
|
121
|
-
|
|
122
109
|
var _default = useMutateCustomProperties;
|
|
123
|
-
|
|
124
|
-
exports.default = _default2;
|
|
125
|
-
;
|
|
126
|
-
|
|
127
|
-
(function () {
|
|
128
|
-
var reactHotLoader = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.default : undefined;
|
|
129
|
-
|
|
130
|
-
if (!reactHotLoader) {
|
|
131
|
-
return;
|
|
132
|
-
}
|
|
133
|
-
|
|
134
|
-
reactHotLoader.register(useMutateCustomProperties, "useMutateCustomProperties", "/home/ethan/FolioModules/stripes-kint-components/src/lib/hooks/useMutateCustomProperties.js");
|
|
135
|
-
reactHotLoader.register(_default, "default", "/home/ethan/FolioModules/stripes-kint-components/src/lib/hooks/useMutateCustomProperties.js");
|
|
136
|
-
})();
|
|
137
|
-
|
|
138
|
-
;
|
|
139
|
-
|
|
140
|
-
(function () {
|
|
141
|
-
var leaveModule = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.leaveModule : undefined;
|
|
142
|
-
leaveModule && leaveModule(module);
|
|
143
|
-
})();
|
|
110
|
+
exports.default = _default;
|
|
@@ -5,27 +5,18 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5
5
|
});
|
|
6
6
|
exports.default = void 0;
|
|
7
7
|
|
|
8
|
-
var _react = _interopRequireDefault(require("react"));
|
|
9
|
-
|
|
10
8
|
var _reactQuery = require("react-query");
|
|
11
9
|
|
|
12
10
|
var _core = require("@folio/stripes/core");
|
|
13
11
|
|
|
14
|
-
|
|
12
|
+
var _useInvalidateRefdata = _interopRequireDefault(require("./useInvalidateRefdata"));
|
|
15
13
|
|
|
16
|
-
|
|
17
|
-
var enterModule = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.enterModule : undefined;
|
|
18
|
-
enterModule && enterModule(module);
|
|
19
|
-
})();
|
|
14
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
20
15
|
|
|
21
16
|
function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) { try { var info = gen[key](arg); var value = info.value; } catch (error) { reject(error); return; } if (info.done) { resolve(value); } else { Promise.resolve(value).then(_next, _throw); } }
|
|
22
17
|
|
|
23
18
|
function _asyncToGenerator(fn) { return function () { var self = this, args = arguments; return new Promise(function (resolve, reject) { var gen = fn.apply(self, args); function _next(value) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, "next", value); } function _throw(err) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, "throw", err); } _next(undefined); }); }; }
|
|
24
19
|
|
|
25
|
-
var __signature__ = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.default.signature : function (a) {
|
|
26
|
-
return a;
|
|
27
|
-
};
|
|
28
|
-
|
|
29
20
|
var useMutateRefdataValue = function useMutateRefdataValue(_ref) {
|
|
30
21
|
var afterQueryCalls = _ref.afterQueryCalls,
|
|
31
22
|
endpoint = _ref.endpoint,
|
|
@@ -38,6 +29,7 @@ var useMutateRefdataValue = function useMutateRefdataValue(_ref) {
|
|
|
38
29
|
} : _ref$returnQueryObjec;
|
|
39
30
|
var returnObj = {};
|
|
40
31
|
var ky = (0, _core.useOkapiKy)();
|
|
32
|
+
var invalidateRefdata = (0, _useInvalidateRefdata.default)();
|
|
41
33
|
var deleteQueryObject = (0, _reactQuery.useMutation)(['stripes-kint-components', 'useMutateRefdataValue', 'delete', id], /*#__PURE__*/function () {
|
|
42
34
|
var _ref2 = _asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee(data) {
|
|
43
35
|
return regeneratorRuntime.wrap(function _callee$(_context) {
|
|
@@ -52,7 +44,9 @@ var useMutateRefdataValue = function useMutateRefdataValue(_ref) {
|
|
|
52
44
|
_delete: true
|
|
53
45
|
}]
|
|
54
46
|
}
|
|
55
|
-
}).json().then(afterQueryCalls === null || afterQueryCalls === void 0 ? void 0 : afterQueryCalls.delete))
|
|
47
|
+
}).json().then(afterQueryCalls === null || afterQueryCalls === void 0 ? void 0 : afterQueryCalls.delete).then(function () {
|
|
48
|
+
return invalidateRefdata();
|
|
49
|
+
}));
|
|
56
50
|
|
|
57
51
|
case 1:
|
|
58
52
|
case "end":
|
|
@@ -77,7 +71,9 @@ var useMutateRefdataValue = function useMutateRefdataValue(_ref) {
|
|
|
77
71
|
id: id,
|
|
78
72
|
values: [data]
|
|
79
73
|
}
|
|
80
|
-
}).json().then(afterQueryCalls === null || afterQueryCalls === void 0 ? void 0 : afterQueryCalls.put))
|
|
74
|
+
}).json().then(afterQueryCalls === null || afterQueryCalls === void 0 ? void 0 : afterQueryCalls.put).then(function () {
|
|
75
|
+
return invalidateRefdata();
|
|
76
|
+
}));
|
|
81
77
|
|
|
82
78
|
case 1:
|
|
83
79
|
case "end":
|
|
@@ -107,29 +103,5 @@ var useMutateRefdataValue = function useMutateRefdataValue(_ref) {
|
|
|
107
103
|
return returnObj;
|
|
108
104
|
};
|
|
109
105
|
|
|
110
|
-
__signature__(useMutateRefdataValue, "useOkapiKy{ky}\nuseMutation{deleteQueryObject}\nuseMutation{putQueryObject}", function () {
|
|
111
|
-
return [_core.useOkapiKy, _reactQuery.useMutation, _reactQuery.useMutation];
|
|
112
|
-
});
|
|
113
|
-
|
|
114
106
|
var _default = useMutateRefdataValue;
|
|
115
|
-
|
|
116
|
-
exports.default = _default2;
|
|
117
|
-
;
|
|
118
|
-
|
|
119
|
-
(function () {
|
|
120
|
-
var reactHotLoader = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.default : undefined;
|
|
121
|
-
|
|
122
|
-
if (!reactHotLoader) {
|
|
123
|
-
return;
|
|
124
|
-
}
|
|
125
|
-
|
|
126
|
-
reactHotLoader.register(useMutateRefdataValue, "useMutateRefdataValue", "/home/ethan/FolioModules/stripes-kint-components/src/lib/hooks/useMutateRefdataValue.js");
|
|
127
|
-
reactHotLoader.register(_default, "default", "/home/ethan/FolioModules/stripes-kint-components/src/lib/hooks/useMutateRefdataValue.js");
|
|
128
|
-
})();
|
|
129
|
-
|
|
130
|
-
;
|
|
131
|
-
|
|
132
|
-
(function () {
|
|
133
|
-
var leaveModule = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.leaveModule : undefined;
|
|
134
|
-
leaveModule && leaveModule(module);
|
|
135
|
-
})();
|
|
107
|
+
exports.default = _default;
|
|
@@ -19,11 +19,6 @@ function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "functio
|
|
|
19
19
|
|
|
20
20
|
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; }
|
|
21
21
|
|
|
22
|
-
(function () {
|
|
23
|
-
var enterModule = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.enterModule : undefined;
|
|
24
|
-
enterModule && enterModule(module);
|
|
25
|
-
})();
|
|
26
|
-
|
|
27
22
|
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; }
|
|
28
23
|
|
|
29
24
|
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; }
|
|
@@ -42,10 +37,6 @@ function _iterableToArrayLimit(arr, i) { var _i = arr == null ? null : typeof Sy
|
|
|
42
37
|
|
|
43
38
|
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
44
39
|
|
|
45
|
-
var __signature__ = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.default.signature : function (a) {
|
|
46
|
-
return a;
|
|
47
|
-
};
|
|
48
|
-
|
|
49
40
|
var useQIndex = function useQIndex() {
|
|
50
41
|
var history = (0, _reactRouterDom.useHistory)();
|
|
51
42
|
var location = (0, _reactRouterDom.useLocation)();
|
|
@@ -80,29 +71,5 @@ var useQIndex = function useQIndex() {
|
|
|
80
71
|
return [currentQindex, handleQindexChange];
|
|
81
72
|
};
|
|
82
73
|
|
|
83
|
-
__signature__(useQIndex, "useHistory{history}\nuseLocation{location}\nuseState{[currentQindex, setCurrentQindex](query?.qindex)}\nuseEffect{}", function () {
|
|
84
|
-
return [_reactRouterDom.useHistory, _reactRouterDom.useLocation];
|
|
85
|
-
});
|
|
86
|
-
|
|
87
74
|
var _default = useQIndex;
|
|
88
|
-
|
|
89
|
-
exports.default = _default2;
|
|
90
|
-
;
|
|
91
|
-
|
|
92
|
-
(function () {
|
|
93
|
-
var reactHotLoader = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.default : undefined;
|
|
94
|
-
|
|
95
|
-
if (!reactHotLoader) {
|
|
96
|
-
return;
|
|
97
|
-
}
|
|
98
|
-
|
|
99
|
-
reactHotLoader.register(useQIndex, "useQIndex", "/home/ethan/FolioModules/stripes-kint-components/src/lib/hooks/useQIndex.js");
|
|
100
|
-
reactHotLoader.register(_default, "default", "/home/ethan/FolioModules/stripes-kint-components/src/lib/hooks/useQIndex.js");
|
|
101
|
-
})();
|
|
102
|
-
|
|
103
|
-
;
|
|
104
|
-
|
|
105
|
-
(function () {
|
|
106
|
-
var leaveModule = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.leaveModule : undefined;
|
|
107
|
-
leaveModule && leaveModule(module);
|
|
108
|
-
})();
|
|
75
|
+
exports.default = _default;
|
|
@@ -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 _reactQuery = require("react-query");
|
|
@@ -17,15 +15,6 @@ var _utils = require("../utils");
|
|
|
17
15
|
|
|
18
16
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
19
17
|
|
|
20
|
-
(function () {
|
|
21
|
-
var enterModule = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.enterModule : undefined;
|
|
22
|
-
enterModule && enterModule(module);
|
|
23
|
-
})();
|
|
24
|
-
|
|
25
|
-
var __signature__ = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.default.signature : function (a) {
|
|
26
|
-
return a;
|
|
27
|
-
};
|
|
28
|
-
|
|
29
18
|
var useRefdata = function useRefdata(_ref) {
|
|
30
19
|
var endpoint = _ref.endpoint,
|
|
31
20
|
desc = _ref.desc,
|
|
@@ -54,7 +43,7 @@ var useRefdata = function useRefdata(_ref) {
|
|
|
54
43
|
|
|
55
44
|
var query = (0, _utils.generateKiwtQuery)(options, nsValues);
|
|
56
45
|
var path = "".concat(endpoint).concat(query);
|
|
57
|
-
var queryObject = (0, _reactQuery.useQuery)(
|
|
46
|
+
var queryObject = (0, _reactQuery.useQuery)((0, _utils.refdataQueryKey)(desc), function () {
|
|
58
47
|
return ky(path).json();
|
|
59
48
|
}, queryParams);
|
|
60
49
|
|
|
@@ -66,10 +55,6 @@ var useRefdata = function useRefdata(_ref) {
|
|
|
66
55
|
return refdata || [];
|
|
67
56
|
};
|
|
68
57
|
|
|
69
|
-
__signature__(useRefdata, "useOkapiKy{ky}\nuseQuery{queryObject}", function () {
|
|
70
|
-
return [_core.useOkapiKy, _reactQuery.useQuery];
|
|
71
|
-
});
|
|
72
|
-
|
|
73
58
|
useRefdata.propTypes = {
|
|
74
59
|
endpoint: _propTypes.default.string,
|
|
75
60
|
desc: _propTypes.default.oneOfType([_propTypes.default.string, _propTypes.default.arrayOf(_propTypes.default.string)]),
|
|
@@ -77,24 +62,4 @@ useRefdata.propTypes = {
|
|
|
77
62
|
returnQueryObject: _propTypes.default.bool
|
|
78
63
|
};
|
|
79
64
|
var _default = useRefdata;
|
|
80
|
-
|
|
81
|
-
exports.default = _default2;
|
|
82
|
-
;
|
|
83
|
-
|
|
84
|
-
(function () {
|
|
85
|
-
var reactHotLoader = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.default : undefined;
|
|
86
|
-
|
|
87
|
-
if (!reactHotLoader) {
|
|
88
|
-
return;
|
|
89
|
-
}
|
|
90
|
-
|
|
91
|
-
reactHotLoader.register(useRefdata, "useRefdata", "/home/ethan/FolioModules/stripes-kint-components/src/lib/hooks/useRefdata.js");
|
|
92
|
-
reactHotLoader.register(_default, "default", "/home/ethan/FolioModules/stripes-kint-components/src/lib/hooks/useRefdata.js");
|
|
93
|
-
})();
|
|
94
|
-
|
|
95
|
-
;
|
|
96
|
-
|
|
97
|
-
(function () {
|
|
98
|
-
var leaveModule = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.leaveModule : undefined;
|
|
99
|
-
leaveModule && leaveModule(module);
|
|
100
|
-
})();
|
|
65
|
+
exports.default = _default;
|
|
@@ -13,15 +13,6 @@ var _core = require("@folio/stripes/core");
|
|
|
13
13
|
|
|
14
14
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
15
15
|
|
|
16
|
-
(function () {
|
|
17
|
-
var enterModule = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.enterModule : undefined;
|
|
18
|
-
enterModule && enterModule(module);
|
|
19
|
-
})();
|
|
20
|
-
|
|
21
|
-
var __signature__ = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.default.signature : function (a) {
|
|
22
|
-
return a;
|
|
23
|
-
};
|
|
24
|
-
|
|
25
16
|
var useTemplates = function useTemplates(_ref) {
|
|
26
17
|
var context = _ref.context,
|
|
27
18
|
endpoint = _ref.endpoint,
|
|
@@ -49,29 +40,5 @@ var useTemplates = function useTemplates(_ref) {
|
|
|
49
40
|
return templates || [];
|
|
50
41
|
};
|
|
51
42
|
|
|
52
|
-
__signature__(useTemplates, "useOkapiKy{ky}\nuseQuery{{ data: templates }}", function () {
|
|
53
|
-
return [_core.useOkapiKy, _reactQuery.useQuery];
|
|
54
|
-
});
|
|
55
|
-
|
|
56
43
|
var _default = useTemplates;
|
|
57
|
-
|
|
58
|
-
exports.default = _default2;
|
|
59
|
-
;
|
|
60
|
-
|
|
61
|
-
(function () {
|
|
62
|
-
var reactHotLoader = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.default : undefined;
|
|
63
|
-
|
|
64
|
-
if (!reactHotLoader) {
|
|
65
|
-
return;
|
|
66
|
-
}
|
|
67
|
-
|
|
68
|
-
reactHotLoader.register(useTemplates, "useTemplates", "/home/ethan/FolioModules/stripes-kint-components/src/lib/hooks/useTemplates.js");
|
|
69
|
-
reactHotLoader.register(_default, "default", "/home/ethan/FolioModules/stripes-kint-components/src/lib/hooks/useTemplates.js");
|
|
70
|
-
})();
|
|
71
|
-
|
|
72
|
-
;
|
|
73
|
-
|
|
74
|
-
(function () {
|
|
75
|
-
var leaveModule = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.leaveModule : undefined;
|
|
76
|
-
leaveModule && leaveModule(module);
|
|
77
|
-
})();
|
|
44
|
+
exports.default = _default;
|
package/es/lib/utils/buildUrl.js
CHANGED
|
@@ -15,15 +15,7 @@ var _queryString = _interopRequireDefault(require("query-string"));
|
|
|
15
15
|
|
|
16
16
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
17
17
|
|
|
18
|
-
|
|
19
|
-
var enterModule = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.enterModule : undefined;
|
|
20
|
-
enterModule && enterModule(module);
|
|
21
|
-
})();
|
|
22
|
-
|
|
23
|
-
var __signature__ = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.default.signature : function (a) {
|
|
24
|
-
return a;
|
|
25
|
-
};
|
|
26
|
-
|
|
18
|
+
// File copied from https://github.com/folio-org/stripes-smart-components/blob/master/lib/SearchAndSort/buildUrl.js
|
|
27
19
|
function getLocationQuery(location) {
|
|
28
20
|
return location.query ? location.query : _queryString.default.parse(location.search);
|
|
29
21
|
}
|
|
@@ -47,25 +39,4 @@ function buildUrl(location, values, basePath) {
|
|
|
47
39
|
}
|
|
48
40
|
|
|
49
41
|
return url;
|
|
50
|
-
}
|
|
51
|
-
|
|
52
|
-
;
|
|
53
|
-
|
|
54
|
-
(function () {
|
|
55
|
-
var reactHotLoader = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.default : undefined;
|
|
56
|
-
|
|
57
|
-
if (!reactHotLoader) {
|
|
58
|
-
return;
|
|
59
|
-
}
|
|
60
|
-
|
|
61
|
-
reactHotLoader.register(getLocationQuery, "getLocationQuery", "/home/ethan/FolioModules/stripes-kint-components/src/lib/utils/buildUrl.js");
|
|
62
|
-
reactHotLoader.register(removeEmpty, "removeEmpty", "/home/ethan/FolioModules/stripes-kint-components/src/lib/utils/buildUrl.js");
|
|
63
|
-
reactHotLoader.register(buildUrl, "buildUrl", "/home/ethan/FolioModules/stripes-kint-components/src/lib/utils/buildUrl.js");
|
|
64
|
-
})();
|
|
65
|
-
|
|
66
|
-
;
|
|
67
|
-
|
|
68
|
-
(function () {
|
|
69
|
-
var leaveModule = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.leaveModule : undefined;
|
|
70
|
-
leaveModule && leaveModule(module);
|
|
71
|
-
})();
|
|
42
|
+
}
|
|
@@ -9,15 +9,6 @@ var _generateKiwtQueryParams = _interopRequireDefault(require("./generateKiwtQue
|
|
|
9
9
|
|
|
10
10
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
11
11
|
|
|
12
|
-
(function () {
|
|
13
|
-
var enterModule = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.enterModule : undefined;
|
|
14
|
-
enterModule && enterModule(module);
|
|
15
|
-
})();
|
|
16
|
-
|
|
17
|
-
var __signature__ = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.default.signature : function (a) {
|
|
18
|
-
return a;
|
|
19
|
-
};
|
|
20
|
-
|
|
21
12
|
var generateKiwtQuery = function generateKiwtQuery(options, nsValues) {
|
|
22
13
|
var paramsArray = (0, _generateKiwtQueryParams.default)(options, nsValues);
|
|
23
14
|
return paramsArray.length ? '?' + paramsArray.map(function (p) {
|
|
@@ -26,24 +17,4 @@ var generateKiwtQuery = function generateKiwtQuery(options, nsValues) {
|
|
|
26
17
|
};
|
|
27
18
|
|
|
28
19
|
var _default = generateKiwtQuery;
|
|
29
|
-
|
|
30
|
-
exports.default = _default2;
|
|
31
|
-
;
|
|
32
|
-
|
|
33
|
-
(function () {
|
|
34
|
-
var reactHotLoader = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.default : undefined;
|
|
35
|
-
|
|
36
|
-
if (!reactHotLoader) {
|
|
37
|
-
return;
|
|
38
|
-
}
|
|
39
|
-
|
|
40
|
-
reactHotLoader.register(generateKiwtQuery, "generateKiwtQuery", "/home/ethan/FolioModules/stripes-kint-components/src/lib/utils/generateKiwtQuery.js");
|
|
41
|
-
reactHotLoader.register(_default, "default", "/home/ethan/FolioModules/stripes-kint-components/src/lib/utils/generateKiwtQuery.js");
|
|
42
|
-
})();
|
|
43
|
-
|
|
44
|
-
;
|
|
45
|
-
|
|
46
|
-
(function () {
|
|
47
|
-
var leaveModule = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.leaveModule : undefined;
|
|
48
|
-
leaveModule && leaveModule(module);
|
|
49
|
-
})();
|
|
20
|
+
exports.default = _default;
|
|
@@ -6,11 +6,6 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
6
6
|
exports.default = void 0;
|
|
7
7
|
var _excluded = ["searchKey", "filterKeys", "sortKeys", "stats", "sort", "filters"];
|
|
8
8
|
|
|
9
|
-
(function () {
|
|
10
|
-
var enterModule = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.enterModule : undefined;
|
|
11
|
-
enterModule && enterModule(module);
|
|
12
|
-
})();
|
|
13
|
-
|
|
14
9
|
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
|
|
15
10
|
|
|
16
11
|
function _iterableToArrayLimit(arr, i) { var _i = arr == null ? null : typeof Symbol !== "undefined" && arr[Symbol.iterator] || arr["@@iterator"]; if (_i == null) return; var _arr = []; var _n = true; var _d = false; var _s, _e; try { for (_i = _i.call(arr); !(_n = (_s = _i.next()).done); _n = true) { _arr.push(_s.value); if (i && _arr.length === i) break; } } catch (err) { _d = true; _e = err; } finally { try { if (!_n && _i["return"] != null) _i["return"](); } finally { if (_d) throw _e; } } return _arr; }
|
|
@@ -37,10 +32,6 @@ function _objectWithoutProperties(source, excluded) { if (source == null) return
|
|
|
37
32
|
|
|
38
33
|
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; }
|
|
39
34
|
|
|
40
|
-
var __signature__ = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.default.signature : function (a) {
|
|
41
|
-
return a;
|
|
42
|
-
};
|
|
43
|
-
|
|
44
35
|
var generateKiwtQueryParams = function generateKiwtQueryParams(options, nsValues) {
|
|
45
36
|
var qindex = nsValues.qindex,
|
|
46
37
|
query = nsValues.query,
|
|
@@ -178,24 +169,4 @@ var generateKiwtQueryParams = function generateKiwtQueryParams(options, nsValues
|
|
|
178
169
|
};
|
|
179
170
|
|
|
180
171
|
var _default = generateKiwtQueryParams;
|
|
181
|
-
|
|
182
|
-
exports.default = _default2;
|
|
183
|
-
;
|
|
184
|
-
|
|
185
|
-
(function () {
|
|
186
|
-
var reactHotLoader = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.default : undefined;
|
|
187
|
-
|
|
188
|
-
if (!reactHotLoader) {
|
|
189
|
-
return;
|
|
190
|
-
}
|
|
191
|
-
|
|
192
|
-
reactHotLoader.register(generateKiwtQueryParams, "generateKiwtQueryParams", "/home/ethan/FolioModules/stripes-kint-components/src/lib/utils/generateKiwtQueryParams.js");
|
|
193
|
-
reactHotLoader.register(_default, "default", "/home/ethan/FolioModules/stripes-kint-components/src/lib/utils/generateKiwtQueryParams.js");
|
|
194
|
-
})();
|
|
195
|
-
|
|
196
|
-
;
|
|
197
|
-
|
|
198
|
-
(function () {
|
|
199
|
-
var leaveModule = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.leaveModule : undefined;
|
|
200
|
-
leaveModule && leaveModule(module);
|
|
201
|
-
})();
|
|
172
|
+
exports.default = _default;
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.default = void 0;
|
|
7
|
+
|
|
8
|
+
function _toConsumableArray(arr) { return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableSpread(); }
|
|
9
|
+
|
|
10
|
+
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."); }
|
|
11
|
+
|
|
12
|
+
function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
|
|
13
|
+
|
|
14
|
+
function _iterableToArray(iter) { if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter); }
|
|
15
|
+
|
|
16
|
+
function _arrayWithoutHoles(arr) { if (Array.isArray(arr)) return _arrayLikeToArray(arr); }
|
|
17
|
+
|
|
18
|
+
function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) { arr2[i] = arr[i]; } return arr2; }
|
|
19
|
+
|
|
20
|
+
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; }
|
|
21
|
+
|
|
22
|
+
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; }
|
|
23
|
+
|
|
24
|
+
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; }
|
|
25
|
+
|
|
26
|
+
var groupCustomPropertiesByCtx = function groupCustomPropertiesByCtx() {
|
|
27
|
+
var customProperties = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : [];
|
|
28
|
+
return customProperties.reduce(function (acc, curr) {
|
|
29
|
+
var _curr$ctx, _acc$ctx;
|
|
30
|
+
|
|
31
|
+
var ctx = (_curr$ctx = curr.ctx) !== null && _curr$ctx !== void 0 ? _curr$ctx : 'isNull';
|
|
32
|
+
|
|
33
|
+
var returnObj = _objectSpread({}, acc);
|
|
34
|
+
|
|
35
|
+
returnObj[ctx] = [].concat(_toConsumableArray((_acc$ctx = acc === null || acc === void 0 ? void 0 : acc[ctx]) !== null && _acc$ctx !== void 0 ? _acc$ctx : []), [curr]);
|
|
36
|
+
return returnObj;
|
|
37
|
+
}, {});
|
|
38
|
+
};
|
|
39
|
+
|
|
40
|
+
var _default = groupCustomPropertiesByCtx;
|
|
41
|
+
exports.default = _default;
|
package/es/lib/utils/index.js
CHANGED
|
@@ -21,12 +21,24 @@ Object.defineProperty(exports, "generateKiwtQueryParams", {
|
|
|
21
21
|
return _generateKiwtQueryParams.default;
|
|
22
22
|
}
|
|
23
23
|
});
|
|
24
|
+
Object.defineProperty(exports, "groupCustomPropertiesByCtx", {
|
|
25
|
+
enumerable: true,
|
|
26
|
+
get: function get() {
|
|
27
|
+
return _groupCustomPropertiesByCtx.default;
|
|
28
|
+
}
|
|
29
|
+
});
|
|
24
30
|
Object.defineProperty(exports, "refdataOptions", {
|
|
25
31
|
enumerable: true,
|
|
26
32
|
get: function get() {
|
|
27
33
|
return _refdataOptions.default;
|
|
28
34
|
}
|
|
29
35
|
});
|
|
36
|
+
Object.defineProperty(exports, "refdataQueryKey", {
|
|
37
|
+
enumerable: true,
|
|
38
|
+
get: function get() {
|
|
39
|
+
return _refdataQueryKey.default;
|
|
40
|
+
}
|
|
41
|
+
});
|
|
30
42
|
Object.defineProperty(exports, "renderHelpText", {
|
|
31
43
|
enumerable: true,
|
|
32
44
|
get: function get() {
|
|
@@ -51,6 +63,12 @@ Object.defineProperty(exports, "toCamelCase", {
|
|
|
51
63
|
return _toCamelCase.default;
|
|
52
64
|
}
|
|
53
65
|
});
|
|
66
|
+
Object.defineProperty(exports, "typedownQueryKey", {
|
|
67
|
+
enumerable: true,
|
|
68
|
+
get: function get() {
|
|
69
|
+
return _typedownQueryKey.default;
|
|
70
|
+
}
|
|
71
|
+
});
|
|
54
72
|
|
|
55
73
|
var _generateKiwtQuery = _interopRequireDefault(require("./generateKiwtQuery"));
|
|
56
74
|
|
|
@@ -62,14 +80,16 @@ var _buildUrl = _interopRequireDefault(require("./buildUrl"));
|
|
|
62
80
|
|
|
63
81
|
var _refdataOptions = _interopRequireDefault(require("./refdataOptions"));
|
|
64
82
|
|
|
83
|
+
var _refdataQueryKey = _interopRequireDefault(require("./refdataQueryKey"));
|
|
84
|
+
|
|
85
|
+
var _typedownQueryKey = _interopRequireDefault(require("./typedownQueryKey"));
|
|
86
|
+
|
|
87
|
+
var _groupCustomPropertiesByCtx = _interopRequireDefault(require("./groupCustomPropertiesByCtx"));
|
|
88
|
+
|
|
65
89
|
var _renderHelpText = _interopRequireDefault(require("./renderHelpText"));
|
|
66
90
|
|
|
67
91
|
var _sortByLabel = _interopRequireDefault(require("./sortByLabel"));
|
|
68
92
|
|
|
69
93
|
var _toCamelCase = _interopRequireDefault(require("./toCamelCase"));
|
|
70
94
|
|
|
71
|
-
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
72
|
-
|
|
73
|
-
var __signature__ = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.default.signature : function (a) {
|
|
74
|
-
return a;
|
|
75
|
-
}; // I hate that this exists
|
|
95
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
@@ -4,16 +4,6 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
6
|
exports.default = void 0;
|
|
7
|
-
|
|
8
|
-
(function () {
|
|
9
|
-
var enterModule = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.enterModule : undefined;
|
|
10
|
-
enterModule && enterModule(module);
|
|
11
|
-
})();
|
|
12
|
-
|
|
13
|
-
var __signature__ = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.default.signature : function (a) {
|
|
14
|
-
return a;
|
|
15
|
-
};
|
|
16
|
-
|
|
17
7
|
var _default = {
|
|
18
8
|
filterKeys: {
|
|
19
9
|
DescKey: 'desc'
|
|
@@ -21,23 +11,4 @@ var _default = {
|
|
|
21
11
|
stats: false,
|
|
22
12
|
max: 100
|
|
23
13
|
};
|
|
24
|
-
|
|
25
|
-
exports.default = _default2;
|
|
26
|
-
;
|
|
27
|
-
|
|
28
|
-
(function () {
|
|
29
|
-
var reactHotLoader = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.default : undefined;
|
|
30
|
-
|
|
31
|
-
if (!reactHotLoader) {
|
|
32
|
-
return;
|
|
33
|
-
}
|
|
34
|
-
|
|
35
|
-
reactHotLoader.register(_default, "default", "/home/ethan/FolioModules/stripes-kint-components/src/lib/utils/refdataOptions.js");
|
|
36
|
-
})();
|
|
37
|
-
|
|
38
|
-
;
|
|
39
|
-
|
|
40
|
-
(function () {
|
|
41
|
-
var leaveModule = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.leaveModule : undefined;
|
|
42
|
-
leaveModule && leaveModule(module);
|
|
43
|
-
})();
|
|
14
|
+
exports.default = _default;
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.default = void 0;
|
|
7
|
+
|
|
8
|
+
var refdataQueryKey = function refdataQueryKey(desc) {
|
|
9
|
+
var keyArray = ['stripes-kint-components', 'refdata'];
|
|
10
|
+
|
|
11
|
+
if (desc) {
|
|
12
|
+
keyArray.push(desc);
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
return keyArray;
|
|
16
|
+
};
|
|
17
|
+
|
|
18
|
+
var _default = refdataQueryKey;
|
|
19
|
+
exports.default = _default;
|