@k-int/stripes-kint-components 2.3.2 → 2.3.3
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 +5 -0
- 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 +5 -1
- package/es/lib/ActionList/ActionList.js +31 -1
- package/es/lib/ActionList/ActionListFieldArray.js +38 -1
- 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 +34 -1
- package/es/lib/SASQLookupComponent/index.js +5 -1
- package/es/lib/SASQRoute/SASQRoute.js +30 -1
- 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 +30 -1
- package/es/lib/utils/groupCustomPropertiesByCtx.js +30 -1
- package/es/lib/utils/index.js +5 -1
- 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/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
|
@@ -9,6 +9,11 @@ var _useOperators = _interopRequireDefault(require("./useOperators"));
|
|
|
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
|
+
|
|
12
17
|
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
|
|
13
18
|
|
|
14
19
|
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."); }
|
|
@@ -21,6 +26,10 @@ function _iterableToArrayLimit(arr, i) { var _i = arr == null ? null : typeof Sy
|
|
|
21
26
|
|
|
22
27
|
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
23
28
|
|
|
29
|
+
var __signature__ = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.default.signature : function (a) {
|
|
30
|
+
return a;
|
|
31
|
+
};
|
|
32
|
+
|
|
24
33
|
var useParseActiveFilterStrings = function useParseActiveFilterStrings(filterStrings) {
|
|
25
34
|
var operators = (0, _useOperators.default)().map(function (o) {
|
|
26
35
|
return o.value;
|
|
@@ -60,5 +69,29 @@ var useParseActiveFilterStrings = function useParseActiveFilterStrings(filterStr
|
|
|
60
69
|
};
|
|
61
70
|
};
|
|
62
71
|
|
|
72
|
+
__signature__(useParseActiveFilterStrings, "useOperators{}", function () {
|
|
73
|
+
return [_useOperators.default];
|
|
74
|
+
});
|
|
75
|
+
|
|
63
76
|
var _default = useParseActiveFilterStrings;
|
|
64
|
-
|
|
77
|
+
var _default2 = _default;
|
|
78
|
+
exports.default = _default2;
|
|
79
|
+
;
|
|
80
|
+
|
|
81
|
+
(function () {
|
|
82
|
+
var reactHotLoader = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.default : undefined;
|
|
83
|
+
|
|
84
|
+
if (!reactHotLoader) {
|
|
85
|
+
return;
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
reactHotLoader.register(useParseActiveFilterStrings, "useParseActiveFilterStrings", "/home/ethan/FolioModules/stripes-kint-components/src/lib/CustomProperties/Filter/useParseActiveFilterStrings.js");
|
|
89
|
+
reactHotLoader.register(_default, "default", "/home/ethan/FolioModules/stripes-kint-components/src/lib/CustomProperties/Filter/useParseActiveFilterStrings.js");
|
|
90
|
+
})();
|
|
91
|
+
|
|
92
|
+
;
|
|
93
|
+
|
|
94
|
+
(function () {
|
|
95
|
+
var leaveModule = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.leaveModule : undefined;
|
|
96
|
+
leaveModule && leaveModule(module);
|
|
97
|
+
})();
|
|
@@ -17,6 +17,15 @@ function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "functio
|
|
|
17
17
|
|
|
18
18
|
function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
|
|
19
19
|
|
|
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
|
+
|
|
20
29
|
var REFDATA = CUSTPROP_TYPES.REFDATA_CLASS_NAME,
|
|
21
30
|
DECIMAL = CUSTPROP_TYPES.DECIMAL_CLASS_NAME,
|
|
22
31
|
INTEGER = CUSTPROP_TYPES.INTEGER_CLASS_NAME,
|
|
@@ -64,4 +73,29 @@ var useValueProps = function useValueProps(custPropDefinition) {
|
|
|
64
73
|
};
|
|
65
74
|
|
|
66
75
|
var _default = useValueProps;
|
|
67
|
-
|
|
76
|
+
var _default2 = _default;
|
|
77
|
+
exports.default = _default2;
|
|
78
|
+
;
|
|
79
|
+
|
|
80
|
+
(function () {
|
|
81
|
+
var reactHotLoader = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.default : undefined;
|
|
82
|
+
|
|
83
|
+
if (!reactHotLoader) {
|
|
84
|
+
return;
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
reactHotLoader.register(REFDATA, "REFDATA", "/home/ethan/FolioModules/stripes-kint-components/src/lib/CustomProperties/Filter/useValueProps.js");
|
|
88
|
+
reactHotLoader.register(DECIMAL, "DECIMAL", "/home/ethan/FolioModules/stripes-kint-components/src/lib/CustomProperties/Filter/useValueProps.js");
|
|
89
|
+
reactHotLoader.register(INTEGER, "INTEGER", "/home/ethan/FolioModules/stripes-kint-components/src/lib/CustomProperties/Filter/useValueProps.js");
|
|
90
|
+
reactHotLoader.register(DATE, "DATE", "/home/ethan/FolioModules/stripes-kint-components/src/lib/CustomProperties/Filter/useValueProps.js");
|
|
91
|
+
reactHotLoader.register(TEXT, "TEXT", "/home/ethan/FolioModules/stripes-kint-components/src/lib/CustomProperties/Filter/useValueProps.js");
|
|
92
|
+
reactHotLoader.register(useValueProps, "useValueProps", "/home/ethan/FolioModules/stripes-kint-components/src/lib/CustomProperties/Filter/useValueProps.js");
|
|
93
|
+
reactHotLoader.register(_default, "default", "/home/ethan/FolioModules/stripes-kint-components/src/lib/CustomProperties/Filter/useValueProps.js");
|
|
94
|
+
})();
|
|
95
|
+
|
|
96
|
+
;
|
|
97
|
+
|
|
98
|
+
(function () {
|
|
99
|
+
var leaveModule = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.leaveModule : undefined;
|
|
100
|
+
leaveModule && leaveModule(module);
|
|
101
|
+
})();
|
|
@@ -13,6 +13,15 @@ var _jsxRuntime = require("react/jsx-runtime");
|
|
|
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
|
+
|
|
16
25
|
var CustomPropertiesView = function CustomPropertiesView(_ref) {
|
|
17
26
|
var _ref$contexts = _ref.contexts,
|
|
18
27
|
contexts = _ref$contexts === void 0 ? [] : _ref$contexts,
|
|
@@ -41,4 +50,24 @@ CustomPropertiesView.propTypes = {
|
|
|
41
50
|
nameOverride: _propTypes.default.string
|
|
42
51
|
};
|
|
43
52
|
var _default = CustomPropertiesView;
|
|
44
|
-
|
|
53
|
+
var _default2 = _default;
|
|
54
|
+
exports.default = _default2;
|
|
55
|
+
;
|
|
56
|
+
|
|
57
|
+
(function () {
|
|
58
|
+
var reactHotLoader = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.default : undefined;
|
|
59
|
+
|
|
60
|
+
if (!reactHotLoader) {
|
|
61
|
+
return;
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
reactHotLoader.register(CustomPropertiesView, "CustomPropertiesView", "/home/ethan/FolioModules/stripes-kint-components/src/lib/CustomProperties/View/CustomPropertiesView.js");
|
|
65
|
+
reactHotLoader.register(_default, "default", "/home/ethan/FolioModules/stripes-kint-components/src/lib/CustomProperties/View/CustomPropertiesView.js");
|
|
66
|
+
})();
|
|
67
|
+
|
|
68
|
+
;
|
|
69
|
+
|
|
70
|
+
(function () {
|
|
71
|
+
var leaveModule = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.leaveModule : undefined;
|
|
72
|
+
leaveModule && leaveModule(module);
|
|
73
|
+
})();
|
|
@@ -19,6 +19,11 @@ var _jsxRuntime = require("react/jsx-runtime");
|
|
|
19
19
|
|
|
20
20
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
21
21
|
|
|
22
|
+
(function () {
|
|
23
|
+
var enterModule = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.enterModule : undefined;
|
|
24
|
+
enterModule && enterModule(module);
|
|
25
|
+
})();
|
|
26
|
+
|
|
22
27
|
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
|
|
23
28
|
|
|
24
29
|
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."); }
|
|
@@ -31,8 +36,12 @@ function _iterableToArrayLimit(arr, i) { var _i = arr == null ? null : typeof Sy
|
|
|
31
36
|
|
|
32
37
|
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
33
38
|
|
|
39
|
+
var __signature__ = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.default.signature : function (a) {
|
|
40
|
+
return a;
|
|
41
|
+
};
|
|
42
|
+
|
|
34
43
|
var CustomPropertiesViewCtx = function CustomPropertiesViewCtx(_ref) {
|
|
35
|
-
var _custprops$filter$len, _custprops$filter
|
|
44
|
+
var _custprops$filter$len, _custprops$filter;
|
|
36
45
|
|
|
37
46
|
var ctx = _ref.ctx,
|
|
38
47
|
_ref$customProperties = _ref.customProperties,
|
|
@@ -103,30 +112,37 @@ var CustomPropertiesViewCtx = function CustomPropertiesViewCtx(_ref) {
|
|
|
103
112
|
label: getAccordionLabel(),
|
|
104
113
|
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_components.Spinner, {})
|
|
105
114
|
});
|
|
106
|
-
}
|
|
115
|
+
}
|
|
116
|
+
|
|
117
|
+
var countSetProperties = function countSetProperties(primary) {
|
|
118
|
+
var _Object$entries$filte, _Object$entries, _Object$entries$filte2;
|
|
119
|
+
|
|
120
|
+
return (_Object$entries$filte = (_Object$entries = Object.entries(customProperties)) === null || _Object$entries === void 0 ? void 0 : (_Object$entries$filte2 = _Object$entries.filter(function (_ref2) {
|
|
121
|
+
var _cp$, _cp$$type, _cp$2, _cp$2$type, _cp$3, _cp$3$type;
|
|
122
|
+
|
|
123
|
+
var _ref3 = _slicedToArray(_ref2, 2),
|
|
124
|
+
_key = _ref3[0],
|
|
125
|
+
cp = _ref3[1];
|
|
126
|
+
|
|
127
|
+
return (((_cp$ = cp[0]) === null || _cp$ === void 0 ? void 0 : (_cp$$type = _cp$.type) === null || _cp$$type === void 0 ? void 0 : _cp$$type.ctx) === ctx || ctx === 'isNull' && !((_cp$2 = cp[0]) !== null && _cp$2 !== void 0 && (_cp$2$type = _cp$2.type) !== null && _cp$2$type !== void 0 && _cp$2$type.ctx)) && // Either the ctx string matches, or isNull matches blank
|
|
128
|
+
((_cp$3 = cp[0]) === null || _cp$3 === void 0 ? void 0 : (_cp$3$type = _cp$3.type) === null || _cp$3$type === void 0 ? void 0 : _cp$3$type.primary) === primary // Only count non-primary set custprops
|
|
129
|
+
;
|
|
130
|
+
})) === null || _Object$entries$filte2 === void 0 ? void 0 : _Object$entries$filte2.length) !== null && _Object$entries$filte !== void 0 ? _Object$entries$filte : 0;
|
|
131
|
+
}; // We need to display any set properties, along with any non-set primary properties
|
|
107
132
|
|
|
108
133
|
|
|
109
134
|
var primaryCount = (_custprops$filter$len = custprops === null || custprops === void 0 ? void 0 : (_custprops$filter = custprops.filter(function (cp) {
|
|
110
135
|
return cp.primary === true;
|
|
111
136
|
})) === null || _custprops$filter === void 0 ? void 0 : _custprops$filter.length) !== null && _custprops$filter$len !== void 0 ? _custprops$filter$len : 0;
|
|
112
|
-
var optionalCount = (
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
var _ref3 = _slicedToArray(_ref2, 2),
|
|
116
|
-
_key = _ref3[0],
|
|
117
|
-
cp = _ref3[1];
|
|
118
|
-
|
|
119
|
-
return (((_cp$ = cp[0]) === null || _cp$ === void 0 ? void 0 : (_cp$$type = _cp$.type) === null || _cp$$type === void 0 ? void 0 : _cp$$type.ctx) === ctx || ctx === 'isNull' && !((_cp$2 = cp[0]) !== null && _cp$2 !== void 0 && (_cp$2$type = _cp$2.type) !== null && _cp$2$type !== void 0 && _cp$2$type.ctx)) && // Either the ctx string matches, or isNull matches blank
|
|
120
|
-
((_cp$3 = cp[0]) === null || _cp$3 === void 0 ? void 0 : (_cp$3$type = _cp$3.type) === null || _cp$3$type === void 0 ? void 0 : _cp$3$type.primary) === false // Only count non-primary set custprops
|
|
121
|
-
;
|
|
122
|
-
})) === null || _Object$entries$filte2 === void 0 ? void 0 : _Object$entries$filte2.length) !== null && _Object$entries$filte !== void 0 ? _Object$entries$filte : 0;
|
|
137
|
+
var optionalCount = countSetProperties(false);
|
|
138
|
+
var setPrimaryCount = countSetProperties(true);
|
|
123
139
|
return primaryCount + optionalCount > 0 && /*#__PURE__*/(0, _jsxRuntime.jsx)(_components.Accordion, {
|
|
124
140
|
closedByDefault: true,
|
|
125
141
|
displayWhenClosed: /*#__PURE__*/(0, _jsxRuntime.jsx)(_components.Badge, {
|
|
126
|
-
children:
|
|
142
|
+
children: setPrimaryCount + optionalCount
|
|
127
143
|
}),
|
|
128
144
|
displayWhenOpen: /*#__PURE__*/(0, _jsxRuntime.jsx)(_components.Badge, {
|
|
129
|
-
children:
|
|
145
|
+
children: setPrimaryCount + optionalCount
|
|
130
146
|
}),
|
|
131
147
|
id: "".concat(id, "-accordion-").concat(ctx),
|
|
132
148
|
label: getAccordionLabel(),
|
|
@@ -144,6 +160,10 @@ var CustomPropertiesViewCtx = function CustomPropertiesViewCtx(_ref) {
|
|
|
144
160
|
});
|
|
145
161
|
};
|
|
146
162
|
|
|
163
|
+
__signature__(CustomPropertiesViewCtx, "useCustomProperties{{ data: custprops, isLoading }}", function () {
|
|
164
|
+
return [_hooks.useCustomProperties];
|
|
165
|
+
});
|
|
166
|
+
|
|
147
167
|
CustomPropertiesViewCtx.propTypes = {
|
|
148
168
|
ctx: _propTypes.default.string,
|
|
149
169
|
customProperties: _propTypes.default.object,
|
|
@@ -152,4 +172,24 @@ CustomPropertiesViewCtx.propTypes = {
|
|
|
152
172
|
labelOverrides: _propTypes.default.object
|
|
153
173
|
};
|
|
154
174
|
var _default = CustomPropertiesViewCtx;
|
|
155
|
-
|
|
175
|
+
var _default2 = _default;
|
|
176
|
+
exports.default = _default2;
|
|
177
|
+
;
|
|
178
|
+
|
|
179
|
+
(function () {
|
|
180
|
+
var reactHotLoader = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.default : undefined;
|
|
181
|
+
|
|
182
|
+
if (!reactHotLoader) {
|
|
183
|
+
return;
|
|
184
|
+
}
|
|
185
|
+
|
|
186
|
+
reactHotLoader.register(CustomPropertiesViewCtx, "CustomPropertiesViewCtx", "/home/ethan/FolioModules/stripes-kint-components/src/lib/CustomProperties/View/CustomPropertiesViewCtx.js");
|
|
187
|
+
reactHotLoader.register(_default, "default", "/home/ethan/FolioModules/stripes-kint-components/src/lib/CustomProperties/View/CustomPropertiesViewCtx.js");
|
|
188
|
+
})();
|
|
189
|
+
|
|
190
|
+
;
|
|
191
|
+
|
|
192
|
+
(function () {
|
|
193
|
+
var leaveModule = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.leaveModule : undefined;
|
|
194
|
+
leaveModule && leaveModule(module);
|
|
195
|
+
})();
|
|
@@ -23,12 +23,22 @@ function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj &&
|
|
|
23
23
|
|
|
24
24
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
25
25
|
|
|
26
|
+
(function () {
|
|
27
|
+
var enterModule = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.enterModule : undefined;
|
|
28
|
+
enterModule && enterModule(module);
|
|
29
|
+
})();
|
|
30
|
+
|
|
31
|
+
var __signature__ = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.default.signature : function (a) {
|
|
32
|
+
return a;
|
|
33
|
+
};
|
|
34
|
+
|
|
26
35
|
var CustomPropertyCard = function CustomPropertyCard(_ref) {
|
|
27
36
|
var _labelOverrides$value, _labelOverrides$inter3, _labelOverrides$visib, _labelOverrides$publi;
|
|
28
37
|
|
|
29
38
|
var ctx = _ref.ctx,
|
|
30
39
|
customProperty = _ref.customProperty,
|
|
31
|
-
|
|
40
|
+
_ref$customPropertyDe = _ref.customPropertyDefinition,
|
|
41
|
+
customPropertyDefinition = _ref$customPropertyDe === void 0 ? {} : _ref$customPropertyDe,
|
|
32
42
|
index = _ref.index,
|
|
33
43
|
labelOverrides = _ref.labelOverrides;
|
|
34
44
|
// We only need to display primary and set properties
|
|
@@ -45,7 +55,7 @@ var CustomPropertyCard = function CustomPropertyCard(_ref) {
|
|
|
45
55
|
|
|
46
56
|
// Label override for default card title,
|
|
47
57
|
if (labelOverrides.retiredName && typeof labelOverrides.retiredName === 'function') {
|
|
48
|
-
return labelOverrides.retiredName(customPropertyDefinition);
|
|
58
|
+
return labelOverrides.retiredName(customPropertyDefinition.name);
|
|
49
59
|
} // Label override for default title or finally built in default
|
|
50
60
|
|
|
51
61
|
|
|
@@ -172,4 +182,24 @@ CustomPropertyCard.propTypes = {
|
|
|
172
182
|
labelOverrides: _propTypes.default.object
|
|
173
183
|
};
|
|
174
184
|
var _default = CustomPropertyCard;
|
|
175
|
-
|
|
185
|
+
var _default2 = _default;
|
|
186
|
+
exports.default = _default2;
|
|
187
|
+
;
|
|
188
|
+
|
|
189
|
+
(function () {
|
|
190
|
+
var reactHotLoader = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.default : undefined;
|
|
191
|
+
|
|
192
|
+
if (!reactHotLoader) {
|
|
193
|
+
return;
|
|
194
|
+
}
|
|
195
|
+
|
|
196
|
+
reactHotLoader.register(CustomPropertyCard, "CustomPropertyCard", "/home/ethan/FolioModules/stripes-kint-components/src/lib/CustomProperties/View/CustomPropertyCard.js");
|
|
197
|
+
reactHotLoader.register(_default, "default", "/home/ethan/FolioModules/stripes-kint-components/src/lib/CustomProperties/View/CustomPropertyCard.js");
|
|
198
|
+
})();
|
|
199
|
+
|
|
200
|
+
;
|
|
201
|
+
|
|
202
|
+
(function () {
|
|
203
|
+
var leaveModule = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.leaveModule : undefined;
|
|
204
|
+
leaveModule && leaveModule(module);
|
|
205
|
+
})();
|
|
@@ -28,4 +28,8 @@ var _CustomPropertiesViewCtx = _interopRequireDefault(require("./CustomPropertie
|
|
|
28
28
|
|
|
29
29
|
var _CustomPropertyCard = _interopRequireDefault(require("./CustomPropertyCard"));
|
|
30
30
|
|
|
31
|
-
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
31
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
32
|
+
|
|
33
|
+
var __signature__ = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.default.signature : function (a) {
|
|
34
|
+
return a;
|
|
35
|
+
};
|
|
@@ -118,4 +118,8 @@ var _Edit = require("./Edit");
|
|
|
118
118
|
|
|
119
119
|
var _View = require("./View");
|
|
120
120
|
|
|
121
|
-
var _Filter = require("./Filter");
|
|
121
|
+
var _Filter = require("./Filter");
|
|
122
|
+
|
|
123
|
+
var __signature__ = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.default.signature : function (a) {
|
|
124
|
+
return a;
|
|
125
|
+
};
|
|
@@ -25,6 +25,11 @@ function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "functio
|
|
|
25
25
|
|
|
26
26
|
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; }
|
|
27
27
|
|
|
28
|
+
(function () {
|
|
29
|
+
var enterModule = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.enterModule : undefined;
|
|
30
|
+
enterModule && enterModule(module);
|
|
31
|
+
})();
|
|
32
|
+
|
|
28
33
|
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
|
|
29
34
|
|
|
30
35
|
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."); }
|
|
@@ -37,6 +42,10 @@ function _iterableToArrayLimit(arr, i) { var _i = arr == null ? null : typeof Sy
|
|
|
37
42
|
|
|
38
43
|
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
39
44
|
|
|
45
|
+
var __signature__ = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.default.signature : function (a) {
|
|
46
|
+
return a;
|
|
47
|
+
};
|
|
48
|
+
|
|
40
49
|
var propTypes = {
|
|
41
50
|
desc: _propTypes.default.string,
|
|
42
51
|
refdataEndpoint: _propTypes.default.string
|
|
@@ -164,6 +173,31 @@ var EditableRefdataList = function EditableRefdataList(_ref) {
|
|
|
164
173
|
});
|
|
165
174
|
};
|
|
166
175
|
|
|
176
|
+
__signature__(EditableRefdataList, "useRefdata{{ data: { 0: refdata } = {}, isLoading: isRefdataLoading }}\nuseState{[contentData, setContentData]([])}\nuseEffect{}\nuseMutateRefdataValue{{ delete: deleteRefdataValue, put: editRefdataValue }}", function () {
|
|
177
|
+
return [_hooks.useRefdata, _hooks.useMutateRefdataValue];
|
|
178
|
+
});
|
|
179
|
+
|
|
167
180
|
EditableRefdataList.propTypes = propTypes;
|
|
168
181
|
var _default = EditableRefdataList;
|
|
169
|
-
|
|
182
|
+
var _default2 = _default;
|
|
183
|
+
exports.default = _default2;
|
|
184
|
+
;
|
|
185
|
+
|
|
186
|
+
(function () {
|
|
187
|
+
var reactHotLoader = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.default : undefined;
|
|
188
|
+
|
|
189
|
+
if (!reactHotLoader) {
|
|
190
|
+
return;
|
|
191
|
+
}
|
|
192
|
+
|
|
193
|
+
reactHotLoader.register(propTypes, "propTypes", "/home/ethan/FolioModules/stripes-kint-components/src/lib/EditableRefdataList/EditableRefdataList.js");
|
|
194
|
+
reactHotLoader.register(EditableRefdataList, "EditableRefdataList", "/home/ethan/FolioModules/stripes-kint-components/src/lib/EditableRefdataList/EditableRefdataList.js");
|
|
195
|
+
reactHotLoader.register(_default, "default", "/home/ethan/FolioModules/stripes-kint-components/src/lib/EditableRefdataList/EditableRefdataList.js");
|
|
196
|
+
})();
|
|
197
|
+
|
|
198
|
+
;
|
|
199
|
+
|
|
200
|
+
(function () {
|
|
201
|
+
var leaveModule = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.leaveModule : undefined;
|
|
202
|
+
leaveModule && leaveModule(module);
|
|
203
|
+
})();
|
|
@@ -12,4 +12,8 @@ Object.defineProperty(exports, "default", {
|
|
|
12
12
|
|
|
13
13
|
var _EditableRefdataList = _interopRequireDefault(require("./EditableRefdataList"));
|
|
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
|
+
};
|
|
@@ -21,6 +21,15 @@ var _jsxRuntime = require("react/jsx-runtime");
|
|
|
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
|
+
|
|
29
|
+
var __signature__ = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.default.signature : function (a) {
|
|
30
|
+
return a;
|
|
31
|
+
};
|
|
32
|
+
|
|
24
33
|
var EditableSettingsList = function EditableSettingsList(_ref) {
|
|
25
34
|
var data = _ref.data,
|
|
26
35
|
initialValues = _ref.initialValues,
|
|
@@ -58,4 +67,24 @@ EditableSettingsList.propTypes = {
|
|
|
58
67
|
initialValues: _propTypes.default.object
|
|
59
68
|
};
|
|
60
69
|
var _default = EditableSettingsList;
|
|
61
|
-
|
|
70
|
+
var _default2 = _default;
|
|
71
|
+
exports.default = _default2;
|
|
72
|
+
;
|
|
73
|
+
|
|
74
|
+
(function () {
|
|
75
|
+
var reactHotLoader = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.default : undefined;
|
|
76
|
+
|
|
77
|
+
if (!reactHotLoader) {
|
|
78
|
+
return;
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
reactHotLoader.register(EditableSettingsList, "EditableSettingsList", "/home/ethan/FolioModules/stripes-kint-components/src/lib/EditableSettingsList/EditableSettingsList.js");
|
|
82
|
+
reactHotLoader.register(_default, "default", "/home/ethan/FolioModules/stripes-kint-components/src/lib/EditableSettingsList/EditableSettingsList.js");
|
|
83
|
+
})();
|
|
84
|
+
|
|
85
|
+
;
|
|
86
|
+
|
|
87
|
+
(function () {
|
|
88
|
+
var leaveModule = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.leaveModule : undefined;
|
|
89
|
+
leaveModule && leaveModule(module);
|
|
90
|
+
})();
|
|
@@ -17,12 +17,21 @@ var _jsxRuntime = require("react/jsx-runtime");
|
|
|
17
17
|
|
|
18
18
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
19
19
|
|
|
20
|
+
(function () {
|
|
21
|
+
var enterModule = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.enterModule : undefined;
|
|
22
|
+
enterModule && enterModule(module);
|
|
23
|
+
})();
|
|
24
|
+
|
|
20
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; }
|
|
21
26
|
|
|
22
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; }
|
|
23
28
|
|
|
24
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; }
|
|
25
30
|
|
|
31
|
+
var __signature__ = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.default.signature : function (a) {
|
|
32
|
+
return a;
|
|
33
|
+
};
|
|
34
|
+
|
|
26
35
|
var EditableSettingsListFieldArray = function EditableSettingsListFieldArray(_ref) {
|
|
27
36
|
var data = _ref.data,
|
|
28
37
|
fields = _ref.fields,
|
|
@@ -58,4 +67,24 @@ EditableSettingsListFieldArray.propTypes = {
|
|
|
58
67
|
initialValues: _propTypes.default.object
|
|
59
68
|
};
|
|
60
69
|
var _default = EditableSettingsListFieldArray;
|
|
61
|
-
|
|
70
|
+
var _default2 = _default;
|
|
71
|
+
exports.default = _default2;
|
|
72
|
+
;
|
|
73
|
+
|
|
74
|
+
(function () {
|
|
75
|
+
var reactHotLoader = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.default : undefined;
|
|
76
|
+
|
|
77
|
+
if (!reactHotLoader) {
|
|
78
|
+
return;
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
reactHotLoader.register(EditableSettingsListFieldArray, "EditableSettingsListFieldArray", "/home/ethan/FolioModules/stripes-kint-components/src/lib/EditableSettingsList/EditableSettingsListFieldArray.js");
|
|
82
|
+
reactHotLoader.register(_default, "default", "/home/ethan/FolioModules/stripes-kint-components/src/lib/EditableSettingsList/EditableSettingsListFieldArray.js");
|
|
83
|
+
})();
|
|
84
|
+
|
|
85
|
+
;
|
|
86
|
+
|
|
87
|
+
(function () {
|
|
88
|
+
var leaveModule = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.leaveModule : undefined;
|
|
89
|
+
leaveModule && leaveModule(module);
|
|
90
|
+
})();
|
|
@@ -16,10 +16,19 @@ var _jsxRuntime = require("react/jsx-runtime");
|
|
|
16
16
|
|
|
17
17
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
18
18
|
|
|
19
|
+
(function () {
|
|
20
|
+
var enterModule = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.enterModule : undefined;
|
|
21
|
+
enterModule && enterModule(module);
|
|
22
|
+
})();
|
|
23
|
+
|
|
19
24
|
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); } }
|
|
20
25
|
|
|
21
26
|
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); }); }; }
|
|
22
27
|
|
|
28
|
+
var __signature__ = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.default.signature : function (a) {
|
|
29
|
+
return a;
|
|
30
|
+
};
|
|
31
|
+
|
|
23
32
|
var onSubmit = jest.fn();
|
|
24
33
|
jest.mock('./SettingField', function () {
|
|
25
34
|
return {
|
|
@@ -149,4 +158,24 @@ describe('EditableSettingsListFieldArray', function () {
|
|
|
149
158
|
expect(getAllByText('SettingField').length).toEqual(multipleSettings.length);
|
|
150
159
|
});
|
|
151
160
|
});
|
|
152
|
-
});
|
|
161
|
+
});
|
|
162
|
+
;
|
|
163
|
+
|
|
164
|
+
(function () {
|
|
165
|
+
var reactHotLoader = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.default : undefined;
|
|
166
|
+
|
|
167
|
+
if (!reactHotLoader) {
|
|
168
|
+
return;
|
|
169
|
+
}
|
|
170
|
+
|
|
171
|
+
reactHotLoader.register(onSubmit, "onSubmit", "/home/ethan/FolioModules/stripes-kint-components/src/lib/EditableSettingsList/EditableSettingsListFieldArray.test.js");
|
|
172
|
+
reactHotLoader.register(settings, "settings", "/home/ethan/FolioModules/stripes-kint-components/src/lib/EditableSettingsList/EditableSettingsListFieldArray.test.js");
|
|
173
|
+
reactHotLoader.register(multipleSettings, "multipleSettings", "/home/ethan/FolioModules/stripes-kint-components/src/lib/EditableSettingsList/EditableSettingsListFieldArray.test.js");
|
|
174
|
+
})();
|
|
175
|
+
|
|
176
|
+
;
|
|
177
|
+
|
|
178
|
+
(function () {
|
|
179
|
+
var leaveModule = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.leaveModule : undefined;
|
|
180
|
+
leaveModule && leaveModule(module);
|
|
181
|
+
})();
|
|
@@ -21,6 +21,11 @@ var _jsxRuntime = require("react/jsx-runtime");
|
|
|
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 _toConsumableArray(arr) { return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableSpread(); }
|
|
25
30
|
|
|
26
31
|
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."); }
|
|
@@ -33,6 +38,10 @@ function _arrayWithoutHoles(arr) { if (Array.isArray(arr)) return _arrayLikeToAr
|
|
|
33
38
|
|
|
34
39
|
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; }
|
|
35
40
|
|
|
41
|
+
var __signature__ = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.default.signature : function (a) {
|
|
42
|
+
return a;
|
|
43
|
+
};
|
|
44
|
+
|
|
36
45
|
var EditSettingValue = function EditSettingValue(props) {
|
|
37
46
|
var input = props.input,
|
|
38
47
|
setting = props.currentSetting,
|
|
@@ -115,6 +124,10 @@ var EditSettingValue = function EditSettingValue(props) {
|
|
|
115
124
|
}
|
|
116
125
|
};
|
|
117
126
|
|
|
127
|
+
__signature__(EditSettingValue, "useIntl{intl}", function () {
|
|
128
|
+
return [_reactIntl.useIntl];
|
|
129
|
+
});
|
|
130
|
+
|
|
118
131
|
EditSettingValue.propTypes = {
|
|
119
132
|
currentSetting: _propTypes.default.shape({
|
|
120
133
|
settingType: _propTypes.default.string
|
|
@@ -129,4 +142,24 @@ EditSettingValue.propTypes = {
|
|
|
129
142
|
}))
|
|
130
143
|
};
|
|
131
144
|
var _default = EditSettingValue;
|
|
132
|
-
|
|
145
|
+
var _default2 = _default;
|
|
146
|
+
exports.default = _default2;
|
|
147
|
+
;
|
|
148
|
+
|
|
149
|
+
(function () {
|
|
150
|
+
var reactHotLoader = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.default : undefined;
|
|
151
|
+
|
|
152
|
+
if (!reactHotLoader) {
|
|
153
|
+
return;
|
|
154
|
+
}
|
|
155
|
+
|
|
156
|
+
reactHotLoader.register(EditSettingValue, "EditSettingValue", "/home/ethan/FolioModules/stripes-kint-components/src/lib/EditableSettingsList/SettingField/EditSettingValue.js");
|
|
157
|
+
reactHotLoader.register(_default, "default", "/home/ethan/FolioModules/stripes-kint-components/src/lib/EditableSettingsList/SettingField/EditSettingValue.js");
|
|
158
|
+
})();
|
|
159
|
+
|
|
160
|
+
;
|
|
161
|
+
|
|
162
|
+
(function () {
|
|
163
|
+
var leaveModule = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.leaveModule : undefined;
|
|
164
|
+
leaveModule && leaveModule(module);
|
|
165
|
+
})();
|
|
@@ -14,6 +14,15 @@ var _jsxRuntime = require("react/jsx-runtime");
|
|
|
14
14
|
|
|
15
15
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
16
16
|
|
|
17
|
+
(function () {
|
|
18
|
+
var enterModule = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.enterModule : undefined;
|
|
19
|
+
enterModule && enterModule(module);
|
|
20
|
+
})();
|
|
21
|
+
|
|
22
|
+
var __signature__ = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.default.signature : function (a) {
|
|
23
|
+
return a;
|
|
24
|
+
};
|
|
25
|
+
|
|
17
26
|
var onSubmit = jest.fn();
|
|
18
27
|
var stringSetting = {
|
|
19
28
|
id: '12345',
|
|
@@ -411,4 +420,28 @@ describe('EditSettingValue', function () {
|
|
|
411
420
|
});
|
|
412
421
|
});
|
|
413
422
|
});
|
|
414
|
-
});
|
|
423
|
+
});
|
|
424
|
+
;
|
|
425
|
+
|
|
426
|
+
(function () {
|
|
427
|
+
var reactHotLoader = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.default : undefined;
|
|
428
|
+
|
|
429
|
+
if (!reactHotLoader) {
|
|
430
|
+
return;
|
|
431
|
+
}
|
|
432
|
+
|
|
433
|
+
reactHotLoader.register(onSubmit, "onSubmit", "/home/ethan/FolioModules/stripes-kint-components/src/lib/EditableSettingsList/SettingField/EditSettingValue.test.js");
|
|
434
|
+
reactHotLoader.register(stringSetting, "stringSetting", "/home/ethan/FolioModules/stripes-kint-components/src/lib/EditableSettingsList/SettingField/EditSettingValue.test.js");
|
|
435
|
+
reactHotLoader.register(refdata, "refdata", "/home/ethan/FolioModules/stripes-kint-components/src/lib/EditableSettingsList/SettingField/EditSettingValue.test.js");
|
|
436
|
+
reactHotLoader.register(moreRefdata, "moreRefdata", "/home/ethan/FolioModules/stripes-kint-components/src/lib/EditableSettingsList/SettingField/EditSettingValue.test.js");
|
|
437
|
+
reactHotLoader.register(refdataSetting, "refdataSetting", "/home/ethan/FolioModules/stripes-kint-components/src/lib/EditableSettingsList/SettingField/EditSettingValue.test.js");
|
|
438
|
+
reactHotLoader.register(templates, "templates", "/home/ethan/FolioModules/stripes-kint-components/src/lib/EditableSettingsList/SettingField/EditSettingValue.test.js");
|
|
439
|
+
reactHotLoader.register(templateSetting, "templateSetting", "/home/ethan/FolioModules/stripes-kint-components/src/lib/EditableSettingsList/SettingField/EditSettingValue.test.js");
|
|
440
|
+
})();
|
|
441
|
+
|
|
442
|
+
;
|
|
443
|
+
|
|
444
|
+
(function () {
|
|
445
|
+
var leaveModule = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.leaveModule : undefined;
|
|
446
|
+
leaveModule && leaveModule(module);
|
|
447
|
+
})();
|