@k-int/stripes-kint-components 1.7.0 → 1.7.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +7 -0
- package/es/index.js +29 -49
- package/es/lib/ActionList/ActionList.js +28 -73
- package/es/lib/ActionList/ActionListFieldArray.js +97 -220
- package/es/lib/ActionList/index.js +2 -8
- package/es/lib/EditableRefdataList/EditableRefdataList.js +46 -134
- package/es/lib/EditableRefdataList/index.js +2 -8
- package/es/lib/EditableSettingsList/EditableSettingsList.js +11 -47
- package/es/lib/EditableSettingsList/EditableSettingsListFieldArray.js +16 -61
- package/es/lib/EditableSettingsList/EditableSettingsListFieldArray.test.js +62 -137
- package/es/lib/EditableSettingsList/SettingField/EditSettingValue.js +23 -91
- package/es/lib/EditableSettingsList/SettingField/EditSettingValue.test.js +103 -127
- package/es/lib/EditableSettingsList/SettingField/RenderSettingValue.js +19 -75
- package/es/lib/EditableSettingsList/SettingField/RenderSettingValue.test.js +188 -357
- package/es/lib/EditableSettingsList/SettingField/SettingField.js +39 -120
- package/es/lib/EditableSettingsList/SettingField/SettingField.test.js +61 -157
- package/es/lib/EditableSettingsList/SettingField/index.js +4 -12
- package/es/lib/EditableSettingsList/index.js +4 -12
- package/es/lib/NoResultsMessage/NoResultsMessage.js +24 -61
- package/es/lib/NoResultsMessage/index.js +2 -8
- package/es/lib/QueryTypedown/QueryTypedown.js +15 -89
- package/es/lib/QueryTypedown/index.js +2 -8
- package/es/lib/RefdataButtons/RefdataButtons.js +32 -85
- package/es/lib/RefdataButtons/index.js +2 -8
- package/es/lib/SASQLookupComponent/SASQLookupComponent.js +120 -227
- package/es/lib/SASQLookupComponent/index.js +2 -8
- package/es/lib/SASQRoute/SASQRoute.js +27 -76
- package/es/lib/SASQRoute/index.js +2 -8
- package/es/lib/SASQViewComponent/SASQViewComponent.js +28 -89
- package/es/lib/SASQViewComponent/index.js +2 -8
- package/es/lib/SearchField/SearchField.js +11 -61
- package/es/lib/SearchField/index.js +2 -8
- package/es/lib/SettingPage/SettingPage.js +17 -63
- package/es/lib/SettingPage/SettingPagePane.js +13 -58
- package/es/lib/SettingPage/index.js +3 -10
- package/es/lib/TypeDown/TypeDown.js +61 -132
- package/es/lib/TypeDown/index.js +2 -8
- package/es/lib/Typedown/Typedown.js +74 -153
- package/es/lib/Typedown/index.js +2 -8
- package/es/lib/constants/eventCodes.js +3 -36
- package/es/lib/contexts/SettingsContext.js +2 -34
- package/es/lib/contexts/index.js +2 -8
- package/es/lib/hooks/index.js +12 -27
- package/es/lib/hooks/settingsHooks/index.js +3 -10
- package/es/lib/hooks/settingsHooks/useSettingSection.js +16 -60
- package/es/lib/hooks/settingsHooks/useSettings.js +51 -130
- package/es/lib/hooks/typedownHooks/index.js +4 -12
- package/es/lib/hooks/typedownHooks/useTypedown.js +60 -114
- package/es/lib/hooks/typedownHooks/useTypedownData.js +13 -69
- package/es/lib/hooks/typedownHooks/useTypedownToggle.js +15 -71
- package/es/lib/hooks/useActiveElement.js +10 -63
- package/es/lib/hooks/useHelperApp.js +37 -111
- package/es/lib/hooks/useKiwtFieldArray.js +35 -101
- package/es/lib/hooks/useKiwtSASQuery.js +36 -107
- package/es/lib/hooks/useLocalStorageState.js +7 -69
- package/es/lib/hooks/useMutateRefdataValue.js +31 -115
- package/es/lib/hooks/useQIndex.js +17 -87
- package/es/lib/hooks/useRefdata.js +19 -65
- package/es/lib/hooks/useTemplates.js +16 -60
- package/es/lib/utils/buildUrl.js +11 -51
- package/es/lib/utils/generateKiwtQuery.js +4 -40
- package/es/lib/utils/generateKiwtQueryParams.js +38 -125
- package/es/lib/utils/index.js +9 -22
- package/es/lib/utils/refdataOptions.js +2 -32
- package/es/lib/utils/renderHelpText.js +32 -89
- package/es/lib/utils/selectorSafe.js +2 -34
- package/es/lib/utils/sortByLabel.js +4 -41
- package/es/lib/utils/toCamelCase.js +8 -42
- package/package.json +17 -3
- 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 -256
- package/src/artifacts/coverage-jest/lcov-report/ActionList/ActionListFieldArray.js.html +0 -799
- 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/EditableRefdataList/EditableRefdataList.js.html +0 -376
- 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/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 -274
- 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 -250
- 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 -769
- 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/Typedown/Typedown.js.html +0 -790
- 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/eventCodes.js.html +0 -94
- package/src/artifacts/coverage-jest/lcov-report/constants/index.html +0 -116
- 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 -251
- package/src/artifacts/coverage-jest/lcov-report/hooks/index.js.html +0 -115
- 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/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/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 -401
- 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 -286
- package/src/artifacts/coverage-jest/lcov-report/utils/index.html +0 -236
- 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.info +0 -1999
package/es/lib/Typedown/index.js
CHANGED
|
@@ -5,15 +5,9 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5
5
|
});
|
|
6
6
|
Object.defineProperty(exports, "default", {
|
|
7
7
|
enumerable: true,
|
|
8
|
-
get: function
|
|
8
|
+
get: function () {
|
|
9
9
|
return _Typedown.default;
|
|
10
10
|
}
|
|
11
11
|
});
|
|
12
|
-
|
|
13
12
|
var _Typedown = _interopRequireDefault(require("./Typedown"));
|
|
14
|
-
|
|
15
|
-
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
16
|
-
|
|
17
|
-
var __signature__ = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.default.signature : function (a) {
|
|
18
|
-
return a;
|
|
19
|
-
};
|
|
13
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
@@ -4,39 +4,6 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
6
|
exports.UP_ARROW = exports.TAB = exports.DOWN_ARROW = void 0;
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
enterModule && enterModule(module);
|
|
11
|
-
})();
|
|
12
|
-
|
|
13
|
-
var __signature__ = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.default.signature : function (a) {
|
|
14
|
-
return a;
|
|
15
|
-
};
|
|
16
|
-
|
|
17
|
-
var UP_ARROW = 'ArrowUp';
|
|
18
|
-
exports.UP_ARROW = UP_ARROW;
|
|
19
|
-
var DOWN_ARROW = 'ArrowDown';
|
|
20
|
-
exports.DOWN_ARROW = DOWN_ARROW;
|
|
21
|
-
var TAB = 'Tab';
|
|
22
|
-
exports.TAB = TAB;
|
|
23
|
-
;
|
|
24
|
-
|
|
25
|
-
(function () {
|
|
26
|
-
var reactHotLoader = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.default : undefined;
|
|
27
|
-
|
|
28
|
-
if (!reactHotLoader) {
|
|
29
|
-
return;
|
|
30
|
-
}
|
|
31
|
-
|
|
32
|
-
reactHotLoader.register(UP_ARROW, "UP_ARROW", "/home/ethan/FolioModules/stripes-kint-components/src/lib/constants/eventCodes.js");
|
|
33
|
-
reactHotLoader.register(DOWN_ARROW, "DOWN_ARROW", "/home/ethan/FolioModules/stripes-kint-components/src/lib/constants/eventCodes.js");
|
|
34
|
-
reactHotLoader.register(TAB, "TAB", "/home/ethan/FolioModules/stripes-kint-components/src/lib/constants/eventCodes.js");
|
|
35
|
-
})();
|
|
36
|
-
|
|
37
|
-
;
|
|
38
|
-
|
|
39
|
-
(function () {
|
|
40
|
-
var leaveModule = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.leaveModule : undefined;
|
|
41
|
-
leaveModule && leaveModule(module);
|
|
42
|
-
})();
|
|
7
|
+
const UP_ARROW = exports.UP_ARROW = 'ArrowUp';
|
|
8
|
+
const DOWN_ARROW = exports.DOWN_ARROW = 'ArrowDown';
|
|
9
|
+
const TAB = exports.TAB = 'Tab';
|
|
@@ -4,38 +4,6 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
6
|
exports.default = void 0;
|
|
7
|
-
|
|
8
7
|
var _react = require("react");
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
var enterModule = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.enterModule : undefined;
|
|
12
|
-
enterModule && enterModule(module);
|
|
13
|
-
})();
|
|
14
|
-
|
|
15
|
-
var __signature__ = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.default.signature : function (a) {
|
|
16
|
-
return a;
|
|
17
|
-
};
|
|
18
|
-
|
|
19
|
-
var SettingsContext = /*#__PURE__*/(0, _react.createContext)();
|
|
20
|
-
var _default = SettingsContext;
|
|
21
|
-
var _default2 = _default;
|
|
22
|
-
exports.default = _default2;
|
|
23
|
-
;
|
|
24
|
-
|
|
25
|
-
(function () {
|
|
26
|
-
var reactHotLoader = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.default : undefined;
|
|
27
|
-
|
|
28
|
-
if (!reactHotLoader) {
|
|
29
|
-
return;
|
|
30
|
-
}
|
|
31
|
-
|
|
32
|
-
reactHotLoader.register(SettingsContext, "SettingsContext", "/home/ethan/FolioModules/stripes-kint-components/src/lib/contexts/SettingsContext.js");
|
|
33
|
-
reactHotLoader.register(_default, "default", "/home/ethan/FolioModules/stripes-kint-components/src/lib/contexts/SettingsContext.js");
|
|
34
|
-
})();
|
|
35
|
-
|
|
36
|
-
;
|
|
37
|
-
|
|
38
|
-
(function () {
|
|
39
|
-
var leaveModule = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.leaveModule : undefined;
|
|
40
|
-
leaveModule && leaveModule(module);
|
|
41
|
-
})();
|
|
8
|
+
const SettingsContext = /*#__PURE__*/(0, _react.createContext)();
|
|
9
|
+
var _default = exports.default = SettingsContext;
|
package/es/lib/contexts/index.js
CHANGED
|
@@ -5,15 +5,9 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5
5
|
});
|
|
6
6
|
Object.defineProperty(exports, "SettingsContext", {
|
|
7
7
|
enumerable: true,
|
|
8
|
-
get: function
|
|
8
|
+
get: function () {
|
|
9
9
|
return _SettingsContext.default;
|
|
10
10
|
}
|
|
11
11
|
});
|
|
12
|
-
|
|
13
12
|
var _SettingsContext = _interopRequireDefault(require("./SettingsContext"));
|
|
14
|
-
|
|
15
|
-
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
16
|
-
|
|
17
|
-
var __signature__ = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.default.signature : function (a) {
|
|
18
|
-
return a;
|
|
19
|
-
};
|
|
13
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
package/es/lib/hooks/index.js
CHANGED
|
@@ -5,93 +5,78 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5
5
|
});
|
|
6
6
|
Object.defineProperty(exports, "useActiveElement", {
|
|
7
7
|
enumerable: true,
|
|
8
|
-
get: function
|
|
8
|
+
get: function () {
|
|
9
9
|
return _useActiveElement.default;
|
|
10
10
|
}
|
|
11
11
|
});
|
|
12
12
|
Object.defineProperty(exports, "useHelperApp", {
|
|
13
13
|
enumerable: true,
|
|
14
|
-
get: function
|
|
14
|
+
get: function () {
|
|
15
15
|
return _useHelperApp.default;
|
|
16
16
|
}
|
|
17
17
|
});
|
|
18
18
|
Object.defineProperty(exports, "useKiwtFieldArray", {
|
|
19
19
|
enumerable: true,
|
|
20
|
-
get: function
|
|
20
|
+
get: function () {
|
|
21
21
|
return _useKiwtFieldArray.default;
|
|
22
22
|
}
|
|
23
23
|
});
|
|
24
24
|
Object.defineProperty(exports, "useKiwtSASQuery", {
|
|
25
25
|
enumerable: true,
|
|
26
|
-
get: function
|
|
26
|
+
get: function () {
|
|
27
27
|
return _useKiwtSASQuery.default;
|
|
28
28
|
}
|
|
29
29
|
});
|
|
30
30
|
Object.defineProperty(exports, "useLocalStorageState", {
|
|
31
31
|
enumerable: true,
|
|
32
|
-
get: function
|
|
32
|
+
get: function () {
|
|
33
33
|
return _useLocalStorageState.default;
|
|
34
34
|
}
|
|
35
35
|
});
|
|
36
36
|
Object.defineProperty(exports, "useMutateRefdataValue", {
|
|
37
37
|
enumerable: true,
|
|
38
|
-
get: function
|
|
38
|
+
get: function () {
|
|
39
39
|
return _useMutateRefdataValue.default;
|
|
40
40
|
}
|
|
41
41
|
});
|
|
42
42
|
Object.defineProperty(exports, "useQIndex", {
|
|
43
43
|
enumerable: true,
|
|
44
|
-
get: function
|
|
44
|
+
get: function () {
|
|
45
45
|
return _useQIndex.default;
|
|
46
46
|
}
|
|
47
47
|
});
|
|
48
48
|
Object.defineProperty(exports, "useRefdata", {
|
|
49
49
|
enumerable: true,
|
|
50
|
-
get: function
|
|
50
|
+
get: function () {
|
|
51
51
|
return _useRefdata.default;
|
|
52
52
|
}
|
|
53
53
|
});
|
|
54
54
|
Object.defineProperty(exports, "useSettingSection", {
|
|
55
55
|
enumerable: true,
|
|
56
|
-
get: function
|
|
56
|
+
get: function () {
|
|
57
57
|
return _settingsHooks.useSettingSection;
|
|
58
58
|
}
|
|
59
59
|
});
|
|
60
60
|
Object.defineProperty(exports, "useSettings", {
|
|
61
61
|
enumerable: true,
|
|
62
|
-
get: function
|
|
62
|
+
get: function () {
|
|
63
63
|
return _settingsHooks.useSettings;
|
|
64
64
|
}
|
|
65
65
|
});
|
|
66
66
|
Object.defineProperty(exports, "useTemplates", {
|
|
67
67
|
enumerable: true,
|
|
68
|
-
get: function
|
|
68
|
+
get: function () {
|
|
69
69
|
return _useTemplates.default;
|
|
70
70
|
}
|
|
71
71
|
});
|
|
72
|
-
|
|
73
72
|
var _useRefdata = _interopRequireDefault(require("./useRefdata"));
|
|
74
|
-
|
|
75
73
|
var _useTemplates = _interopRequireDefault(require("./useTemplates"));
|
|
76
|
-
|
|
77
74
|
var _useMutateRefdataValue = _interopRequireDefault(require("./useMutateRefdataValue"));
|
|
78
|
-
|
|
79
75
|
var _useActiveElement = _interopRequireDefault(require("./useActiveElement"));
|
|
80
|
-
|
|
81
76
|
var _useKiwtSASQuery = _interopRequireDefault(require("./useKiwtSASQuery"));
|
|
82
|
-
|
|
83
77
|
var _useHelperApp = _interopRequireDefault(require("./useHelperApp"));
|
|
84
|
-
|
|
85
78
|
var _useLocalStorageState = _interopRequireDefault(require("./useLocalStorageState"));
|
|
86
|
-
|
|
87
79
|
var _useQIndex = _interopRequireDefault(require("./useQIndex"));
|
|
88
|
-
|
|
89
80
|
var _settingsHooks = require("./settingsHooks");
|
|
90
|
-
|
|
91
81
|
var _useKiwtFieldArray = _interopRequireDefault(require("./useKiwtFieldArray"));
|
|
92
|
-
|
|
93
|
-
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
94
|
-
|
|
95
|
-
var __signature__ = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.default.signature : function (a) {
|
|
96
|
-
return a;
|
|
97
|
-
};
|
|
82
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
@@ -5,23 +5,16 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5
5
|
});
|
|
6
6
|
Object.defineProperty(exports, "useSettingSection", {
|
|
7
7
|
enumerable: true,
|
|
8
|
-
get: function
|
|
8
|
+
get: function () {
|
|
9
9
|
return _useSettingSection.default;
|
|
10
10
|
}
|
|
11
11
|
});
|
|
12
12
|
Object.defineProperty(exports, "useSettings", {
|
|
13
13
|
enumerable: true,
|
|
14
|
-
get: function
|
|
14
|
+
get: function () {
|
|
15
15
|
return _useSettings.default;
|
|
16
16
|
}
|
|
17
17
|
});
|
|
18
|
-
|
|
19
18
|
var _useSettings = _interopRequireDefault(require("./useSettings"));
|
|
20
|
-
|
|
21
19
|
var _useSettingSection = _interopRequireDefault(require("./useSettingSection"));
|
|
22
|
-
|
|
23
|
-
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
24
|
-
|
|
25
|
-
var __signature__ = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.default.signature : function (a) {
|
|
26
|
-
return a;
|
|
27
|
-
};
|
|
20
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
@@ -4,71 +4,27 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
6
|
exports.default = void 0;
|
|
7
|
-
|
|
8
7
|
var _react = _interopRequireDefault(require("react"));
|
|
9
|
-
|
|
10
8
|
var _reactQuery = require("react-query");
|
|
11
|
-
|
|
12
9
|
var _core = require("@folio/stripes/core");
|
|
13
|
-
|
|
14
10
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
}
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
};
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
var _useQuery = (0, _reactQuery.useQuery)(['stripes-kint-components', 'useSetting', 'appSettings', sectionName], function () {
|
|
31
|
-
return ky("".concat(settingEndpoint, "?filters=section=").concat(sectionName, "&sort=key;asc")).json();
|
|
32
|
-
}),
|
|
33
|
-
_useQuery$data = _useQuery.data,
|
|
34
|
-
settings = _useQuery$data === void 0 ? [] : _useQuery$data;
|
|
35
|
-
|
|
36
|
-
var _useMutation = (0, _reactQuery.useMutation)(['stripes-kint-components', 'useSetting', 'putSetting', sectionName], function (data) {
|
|
37
|
-
return ky.put("".concat(settingEndpoint).concat(data.id ? '/' + data.id : ''), {
|
|
38
|
-
json: data
|
|
39
|
-
});
|
|
40
|
-
}),
|
|
41
|
-
putSetting = _useMutation.mutateAsync;
|
|
42
|
-
|
|
11
|
+
const useSettingSection = _ref => {
|
|
12
|
+
let {
|
|
13
|
+
sectionName,
|
|
14
|
+
settingEndpoint
|
|
15
|
+
} = _ref;
|
|
16
|
+
const ky = (0, _core.useOkapiKy)();
|
|
17
|
+
const {
|
|
18
|
+
data: settings = []
|
|
19
|
+
} = (0, _reactQuery.useQuery)(['stripes-kint-components', 'useSetting', 'appSettings', sectionName], () => ky(`${settingEndpoint}?filters=section=${sectionName}&sort=key;asc`).json());
|
|
20
|
+
const {
|
|
21
|
+
mutateAsync: putSetting
|
|
22
|
+
} = (0, _reactQuery.useMutation)(['stripes-kint-components', 'useSetting', 'putSetting', sectionName], data => ky.put(`${settingEndpoint}${data.id ? '/' + data.id : ''}`, {
|
|
23
|
+
json: data
|
|
24
|
+
}));
|
|
43
25
|
return {
|
|
44
26
|
handleSubmit: putSetting,
|
|
45
|
-
settings
|
|
27
|
+
settings
|
|
46
28
|
};
|
|
47
29
|
};
|
|
48
|
-
|
|
49
|
-
__signature__(useSettingSection, "useOkapiKy{ky}\nuseQuery{{ data: settings = [] }}\nuseMutation{{ mutateAsync: putSetting }}", function () {
|
|
50
|
-
return [_core.useOkapiKy, _reactQuery.useQuery, _reactQuery.useMutation];
|
|
51
|
-
});
|
|
52
|
-
|
|
53
|
-
var _default = useSettingSection;
|
|
54
|
-
var _default2 = _default;
|
|
55
|
-
exports.default = _default2;
|
|
56
|
-
;
|
|
57
|
-
|
|
58
|
-
(function () {
|
|
59
|
-
var reactHotLoader = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.default : undefined;
|
|
60
|
-
|
|
61
|
-
if (!reactHotLoader) {
|
|
62
|
-
return;
|
|
63
|
-
}
|
|
64
|
-
|
|
65
|
-
reactHotLoader.register(useSettingSection, "useSettingSection", "/home/ethan/FolioModules/stripes-kint-components/src/lib/hooks/settingsHooks/useSettingSection.js");
|
|
66
|
-
reactHotLoader.register(_default, "default", "/home/ethan/FolioModules/stripes-kint-components/src/lib/hooks/settingsHooks/useSettingSection.js");
|
|
67
|
-
})();
|
|
68
|
-
|
|
69
|
-
;
|
|
70
|
-
|
|
71
|
-
(function () {
|
|
72
|
-
var leaveModule = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.leaveModule : undefined;
|
|
73
|
-
leaveModule && leaveModule(module);
|
|
74
|
-
})();
|
|
30
|
+
var _default = exports.default = useSettingSection;
|
|
@@ -1,175 +1,96 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
|
-
function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); }
|
|
4
|
-
|
|
5
3
|
Object.defineProperty(exports, "__esModule", {
|
|
6
4
|
value: true
|
|
7
5
|
});
|
|
8
6
|
exports.default = void 0;
|
|
9
|
-
|
|
10
7
|
var _react = _interopRequireWildcard(require("react"));
|
|
11
|
-
|
|
12
8
|
var _propTypes = _interopRequireDefault(require("prop-types"));
|
|
13
|
-
|
|
14
9
|
var _reactQuery = require("react-query");
|
|
15
|
-
|
|
16
10
|
var _reactIntl = require("react-intl");
|
|
17
|
-
|
|
18
11
|
var _core = require("@folio/stripes/core");
|
|
19
|
-
|
|
20
12
|
var _smartComponents = require("@folio/stripes/smart-components");
|
|
21
|
-
|
|
22
13
|
var _SettingPage = require("../../SettingPage");
|
|
23
|
-
|
|
24
14
|
var _contexts = require("../../contexts");
|
|
25
|
-
|
|
26
15
|
var _utils = require("../../utils");
|
|
27
|
-
|
|
28
16
|
var _jsxRuntime = require("react/jsx-runtime");
|
|
29
|
-
|
|
30
17
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
31
|
-
|
|
32
|
-
function
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
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; }
|
|
46
|
-
|
|
47
|
-
function _toConsumableArray(arr) { return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableSpread(); }
|
|
48
|
-
|
|
49
|
-
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."); }
|
|
50
|
-
|
|
51
|
-
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); }
|
|
52
|
-
|
|
53
|
-
function _iterableToArray(iter) { if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter); }
|
|
54
|
-
|
|
55
|
-
function _arrayWithoutHoles(arr) { if (Array.isArray(arr)) return _arrayLikeToArray(arr); }
|
|
56
|
-
|
|
57
|
-
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; }
|
|
58
|
-
|
|
59
|
-
var __signature__ = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.default.signature : function (a) {
|
|
60
|
-
return a;
|
|
61
|
-
};
|
|
62
|
-
|
|
63
|
-
var useSettings = function useSettings(_ref) {
|
|
64
|
-
var dynamicPageExclusions = _ref.dynamicPageExclusions,
|
|
65
|
-
intlKey = _ref.intlKey,
|
|
66
|
-
persistentPages = _ref.persistentPages,
|
|
67
|
-
refdataEndpoint = _ref.refdataEndpoint,
|
|
68
|
-
settingEndpoint = _ref.settingEndpoint,
|
|
69
|
-
templateEndpoint = _ref.templateEndpoint;
|
|
70
|
-
var ky = (0, _core.useOkapiKy)();
|
|
71
|
-
var intl = (0, _reactIntl.useIntl)();
|
|
72
|
-
var extraPathItems = dynamicPageExclusions.map(function (dpe) {
|
|
73
|
-
return "filters=section!=".concat(dpe);
|
|
74
|
-
});
|
|
18
|
+
function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function (e) { return e ? t : r; })(e); }
|
|
19
|
+
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != typeof e && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && Object.prototype.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
|
|
20
|
+
const useSettings = _ref => {
|
|
21
|
+
let {
|
|
22
|
+
dynamicPageExclusions,
|
|
23
|
+
intlKey,
|
|
24
|
+
persistentPages,
|
|
25
|
+
refdataEndpoint,
|
|
26
|
+
settingEndpoint,
|
|
27
|
+
templateEndpoint
|
|
28
|
+
} = _ref;
|
|
29
|
+
const ky = (0, _core.useOkapiKy)();
|
|
30
|
+
const intl = (0, _reactIntl.useIntl)();
|
|
31
|
+
const extraPathItems = dynamicPageExclusions.map(dpe => `filters=section!=${dpe}`);
|
|
75
32
|
extraPathItems.push('max=500');
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
}),
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
isLoading = _useQuery.isLoading;
|
|
83
|
-
|
|
84
|
-
var sections = _toConsumableArray(new Set(appSettings.map(function (s) {
|
|
85
|
-
return s.section;
|
|
86
|
-
})));
|
|
87
|
-
|
|
88
|
-
var dynamic = sections.map(function (section) {
|
|
33
|
+
const {
|
|
34
|
+
data: appSettings = [],
|
|
35
|
+
isLoading
|
|
36
|
+
} = (0, _reactQuery.useQuery)(['stripes-kint-components', 'useSettings', 'appSettings', settingEndpoint], () => ky(`${settingEndpoint}?${extraPathItems.join('&')}`).json());
|
|
37
|
+
const sections = [...new Set(appSettings.map(s => s.section))];
|
|
38
|
+
const dynamic = sections.map(section => {
|
|
89
39
|
return {
|
|
90
40
|
route: section,
|
|
91
41
|
label: intl.formatMessage({
|
|
92
42
|
defaultMessage: section,
|
|
93
|
-
id:
|
|
43
|
+
id: `${intlKey}.settings.settingsSection.${(0, _utils.toCamelCase)(section)}`
|
|
94
44
|
}),
|
|
95
|
-
component:
|
|
96
|
-
|
|
45
|
+
component: props => /*#__PURE__*/(0, _jsxRuntime.jsx)(_SettingPage.SettingPagePane, {
|
|
46
|
+
sectionName: section,
|
|
47
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_SettingPage.SettingPage, {
|
|
97
48
|
sectionName: section,
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
});
|
|
102
|
-
}
|
|
49
|
+
...props
|
|
50
|
+
})
|
|
51
|
+
})
|
|
103
52
|
};
|
|
104
53
|
});
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
54
|
+
const pageList = persistentPages.concat(dynamic).sort(_utils.sortByLabel);
|
|
55
|
+
const SettingsContextProvider = _ref2 => {
|
|
56
|
+
let {
|
|
57
|
+
children
|
|
58
|
+
} = _ref2;
|
|
109
59
|
return /*#__PURE__*/(0, _jsxRuntime.jsx)(_contexts.SettingsContext.Provider, {
|
|
110
60
|
value: {
|
|
111
|
-
intlKey
|
|
112
|
-
refdataEndpoint
|
|
113
|
-
settingEndpoint
|
|
114
|
-
templateEndpoint
|
|
61
|
+
intlKey,
|
|
62
|
+
refdataEndpoint,
|
|
63
|
+
settingEndpoint,
|
|
64
|
+
templateEndpoint
|
|
115
65
|
},
|
|
116
66
|
children: children
|
|
117
67
|
});
|
|
118
68
|
};
|
|
119
|
-
|
|
120
69
|
SettingsContextProvider.propTypes = {
|
|
121
70
|
children: _propTypes.default.oneOfType([_propTypes.default.func, _propTypes.default.node])
|
|
122
71
|
};
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
return /*#__PURE__*/(0, _jsxRuntime.jsx)(_smartComponents.Settings, _objectSpread({
|
|
72
|
+
const SettingsComponent = props => {
|
|
73
|
+
const settingsData = (0, _react.useContext)(_contexts.SettingsContext);
|
|
74
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsx)(_smartComponents.Settings, {
|
|
127
75
|
pages: pageList,
|
|
128
76
|
paneTitle: /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactIntl.FormattedMessage, {
|
|
129
|
-
id:
|
|
130
|
-
})
|
|
131
|
-
|
|
77
|
+
id: `${settingsData.intlKey}.meta.title`
|
|
78
|
+
}),
|
|
79
|
+
...props
|
|
80
|
+
});
|
|
132
81
|
};
|
|
133
|
-
|
|
134
|
-
__signature__(SettingsComponent, "useContext{settingsData}");
|
|
135
|
-
|
|
136
|
-
var SettingsComponentWithContext = function SettingsComponentWithContext(props) {
|
|
82
|
+
const SettingsComponentWithContext = props => {
|
|
137
83
|
return /*#__PURE__*/(0, _jsxRuntime.jsx)(SettingsContextProvider, {
|
|
138
|
-
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(SettingsComponent,
|
|
84
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(SettingsComponent, {
|
|
85
|
+
...props
|
|
86
|
+
})
|
|
139
87
|
});
|
|
140
88
|
};
|
|
141
|
-
|
|
142
89
|
return {
|
|
143
|
-
isLoading
|
|
144
|
-
pageList
|
|
90
|
+
isLoading,
|
|
91
|
+
pageList,
|
|
145
92
|
SettingsComponent: SettingsComponentWithContext,
|
|
146
|
-
SettingsContextProvider
|
|
93
|
+
SettingsContextProvider
|
|
147
94
|
};
|
|
148
95
|
};
|
|
149
|
-
|
|
150
|
-
__signature__(useSettings, "useOkapiKy{ky}\nuseIntl{intl}\nuseQuery{{ data: appSettings = [], isLoading }}", function () {
|
|
151
|
-
return [_core.useOkapiKy, _reactIntl.useIntl, _reactQuery.useQuery];
|
|
152
|
-
});
|
|
153
|
-
|
|
154
|
-
var _default = useSettings;
|
|
155
|
-
var _default2 = _default;
|
|
156
|
-
exports.default = _default2;
|
|
157
|
-
;
|
|
158
|
-
|
|
159
|
-
(function () {
|
|
160
|
-
var reactHotLoader = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.default : undefined;
|
|
161
|
-
|
|
162
|
-
if (!reactHotLoader) {
|
|
163
|
-
return;
|
|
164
|
-
}
|
|
165
|
-
|
|
166
|
-
reactHotLoader.register(useSettings, "useSettings", "/home/ethan/FolioModules/stripes-kint-components/src/lib/hooks/settingsHooks/useSettings.js");
|
|
167
|
-
reactHotLoader.register(_default, "default", "/home/ethan/FolioModules/stripes-kint-components/src/lib/hooks/settingsHooks/useSettings.js");
|
|
168
|
-
})();
|
|
169
|
-
|
|
170
|
-
;
|
|
171
|
-
|
|
172
|
-
(function () {
|
|
173
|
-
var leaveModule = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.leaveModule : undefined;
|
|
174
|
-
leaveModule && leaveModule(module);
|
|
175
|
-
})();
|
|
96
|
+
var _default = exports.default = useSettings;
|
|
@@ -5,31 +5,23 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5
5
|
});
|
|
6
6
|
Object.defineProperty(exports, "useTypedown", {
|
|
7
7
|
enumerable: true,
|
|
8
|
-
get: function
|
|
8
|
+
get: function () {
|
|
9
9
|
return _useTypedown.default;
|
|
10
10
|
}
|
|
11
11
|
});
|
|
12
12
|
Object.defineProperty(exports, "useTypedownData", {
|
|
13
13
|
enumerable: true,
|
|
14
|
-
get: function
|
|
14
|
+
get: function () {
|
|
15
15
|
return _useTypedownData.default;
|
|
16
16
|
}
|
|
17
17
|
});
|
|
18
18
|
Object.defineProperty(exports, "useTypedownToggle", {
|
|
19
19
|
enumerable: true,
|
|
20
|
-
get: function
|
|
20
|
+
get: function () {
|
|
21
21
|
return _useTypedownToggle.default;
|
|
22
22
|
}
|
|
23
23
|
});
|
|
24
|
-
|
|
25
24
|
var _useTypedown = _interopRequireDefault(require("./useTypedown"));
|
|
26
|
-
|
|
27
25
|
var _useTypedownToggle = _interopRequireDefault(require("./useTypedownToggle"));
|
|
28
|
-
|
|
29
26
|
var _useTypedownData = _interopRequireDefault(require("./useTypedownData"));
|
|
30
|
-
|
|
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
|
-
};
|
|
27
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|