@wavemaker/react-runtime 11.14.2-rc.6311 → 12.0.0-next.28533
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/actions/base-action.js +5 -7
- package/actions/login-action.js +7 -8
- package/actions/logout-action.js +5 -7
- package/actions/navigation-action.js +32 -10
- package/actions/notification-action.js +22 -8
- package/actions/timer-action.js +13 -15
- package/actions/toast.js +4 -2
- package/actions/toast.service.js +1 -2
- package/components/advanced/carousel/index.js +1 -1
- package/components/advanced/carousel/template.js +1 -1
- package/components/basic/anchor/index.js +26 -9
- package/components/basic/html/index.js +115 -24
- package/components/basic/icon/index.js +2 -1
- package/components/basic/iframe/index.js +2 -1
- package/components/basic/label/index.js +12 -9
- package/components/basic/message/index.js +12 -3
- package/components/basic/picture/index.js +11 -4
- package/components/basic/progress-bar/index.js +1 -1
- package/components/basic/progress-circle/index.js +34 -28
- package/components/basic/progress-circle/props.js +10 -2
- package/components/basic/richtexteditor/index.js +95 -94
- package/components/basic/search/index.js +401 -156
- package/components/basic/search/providers.js +126 -61
- package/components/basic/spinner/index.js +2 -1
- package/components/basic/tree/index.js +34 -34
- package/components/basic/tree/utils.js +10 -4
- package/components/chart/components/barColumnChart/index.js +36 -33
- package/components/chart/components/bubbleChart/index.js +35 -25
- package/components/chart/components/chartLegend/utils.js +2 -1
- package/components/chart/components/cumulativeLineChart/index.js +30 -26
- package/components/chart/components/lineAreaChart/index.js +50 -32
- package/components/chart/components/pieDonutChart/index.js +13 -4
- package/components/chart/hooks/useXAxisConfig.js +15 -8
- package/components/chart/index.js +223 -53
- package/components/chart/utils.js +12 -1
- package/components/constants.js +5 -2
- package/components/container/accordion/accordion-pane/index.js +17 -12
- package/components/container/accordion/index.js +9 -4
- package/components/container/alignment-utils.js +56 -1
- package/components/container/index.js +49 -20
- package/components/container/panel/components/panel-header/index.js +3 -4
- package/components/container/panel/index.js +15 -10
- package/components/container/tabs/index.js +92 -14
- package/components/container/tabs/tab-pane/index.js +15 -8
- package/components/container/tabs/utils.js +51 -0
- package/components/container/wizard/components/StepComponents.js +2 -1
- package/components/container/wizard/components/WizardStep.js +2 -1
- package/components/container/wizard/index.js +64 -35
- package/components/container/wizard/utils.js +46 -1
- package/components/container/wizard/wizard-step/index.js +11 -1
- package/components/data/card/card-content/index.js +1 -1
- package/components/data/form/base-form/index.js +991 -180
- package/components/data/form/base-form/props.js +3 -1
- package/components/data/form/base-form/utils.js +159 -1
- package/components/data/form/dynamic-fields/constant.js +53 -0
- package/components/data/form/dynamic-fields/index.js +10 -45
- package/components/data/form/dynamic-fields/utils.js +37 -2
- package/components/data/form/form-action/index.js +5 -4
- package/components/data/form/form-context.js +5 -1
- package/components/data/form/form-controller/utils.js +84 -0
- package/components/data/form/form-controller/validation-contrustor.js +402 -189
- package/components/data/form/form-controller/withFormController.js +191 -52
- package/components/data/form/form-field/base-field.js +54 -33
- package/components/data/form/form-field/index.js +28 -5
- package/components/data/form/form-header/index.js +3 -4
- package/components/data/form/index.js +20 -1
- package/components/data/list/components/ListDND.js +2 -1
- package/components/data/list/components/ListItem.js +6 -2
- package/components/data/list/components/ListItemWithTemplate.js +46 -2
- package/components/data/list/components/ListItems.js +17 -26
- package/components/data/list/components/ListPagination.js +3 -3
- package/components/data/list/components/StandardListItems.js +3 -4
- package/components/data/list/hooks/useListEffects.js +55 -14
- package/components/data/list/hooks/useListEventHandlers.js +3 -1
- package/components/data/list/hooks/useListState.js +3 -1
- package/components/data/list/hooks/usePaginatedGroupedData.js +18 -5
- package/components/data/list/index.js +74 -55
- package/components/data/list/utils/list-helpers.js +73 -35
- package/components/data/list/utils/list-widget-methods.js +138 -95
- package/components/data/live-filter/index.js +26 -15
- package/components/data/live-form/index.js +23 -7
- package/components/data/live-form/props.js +1 -1
- package/components/data/pagination/components/BasicPagination.js +71 -16
- package/components/data/pagination/components/PageSizeSelector.js +8 -3
- package/components/data/pagination/components/TotalRecords.js +1 -5
- package/components/data/pagination/hooks/usePagination.js +349 -66
- package/components/data/pagination/index.js +137 -19
- package/components/data/table/components/AddNewRow.js +5 -1
- package/components/data/table/components/EditableCell.js +2 -2
- package/components/data/table/components/RowCells.js +64 -0
- package/components/data/table/components/RowExpansionButton.js +2 -2
- package/components/data/table/components/SummaryCell.js +111 -0
- package/components/data/table/components/SummaryRow.js +54 -0
- package/components/data/table/components/SummaryRowFooter.js +46 -0
- package/components/data/table/components/TableBody.js +61 -59
- package/components/data/table/components/TableDataRow.js +109 -0
- package/components/data/table/components/TableFilters.js +225 -121
- package/components/data/table/components/TableHeader.js +291 -23
- package/components/data/table/components/TablePanelHeading.js +139 -8
- package/components/data/table/components/index.js +22 -1
- package/components/data/table/hooks/use-edited-rows.js +141 -0
- package/components/data/table/hooks/useCellState.js +5 -12
- package/components/data/table/hooks/useFormWidget.js +58 -51
- package/components/data/table/hooks/usePaginationState.js +45 -24
- package/components/data/table/hooks/usePanelStructure.js +4 -4
- package/components/data/table/hooks/useRowHandlers.js +39 -5
- package/components/data/table/hooks/useRowSelection.js +244 -50
- package/components/data/table/hooks/useServerSideSorting.js +81 -37
- package/components/data/table/hooks/useTableColumns.js +211 -118
- package/components/data/table/hooks/useTableData.js +54 -9
- package/components/data/table/hooks/useTableEdit.js +272 -97
- package/components/data/table/hooks/useTableEffects.js +31 -13
- package/components/data/table/hooks/useTableFilter.js +1 -1
- package/components/data/table/hooks/useTableInitialization.js +23 -22
- package/components/data/table/hooks/useTableState.js +11 -5
- package/components/data/table/hooks/useTableStateManager.js +140 -65
- package/components/data/table/index.js +637 -274
- package/components/data/table/live-table/index.js +54 -22
- package/components/data/table/table-action/index.js +1 -1
- package/components/data/table/table-group/index.js +26 -0
- package/components/data/table/table-row-action/index.js +32 -18
- package/components/data/table/utils/buildSelectionColumns.js +12 -21
- package/components/data/table/utils/columnBuilder.js +29 -14
- package/components/data/table/utils/columnProxy.js +68 -1
- package/components/data/table/utils/constants.js +6 -2
- package/components/data/table/utils/crud-handlers.js +68 -63
- package/components/data/table/utils/groupHeaderUtils.js +102 -0
- package/components/data/table/utils/index.js +210 -21
- package/components/data/table/utils/renderDisplayCell.js +6 -6
- package/components/data/table/utils/selectionUtils.js +25 -26
- package/components/data/table/utils/validation.js +1 -0
- package/components/data/utils/filter-field-util.js +3 -3
- package/components/dialogs/alert-dialog/index.js +1 -1
- package/components/dialogs/confirm-dialog/index.js +1 -1
- package/components/dialogs/dialog/index.js +4 -1
- package/components/dialogs/dialog-content/index.js +3 -1
- package/components/dialogs/dialog-header/index.js +2 -2
- package/components/dialogs/iframe-dialog/index.js +11 -5
- package/components/dialogs/index.js +1 -1
- package/components/dialogs/login-dialog/index.js +1 -1
- package/components/dialogs/page-dialog/index.js +1 -1
- package/components/form/button/index.js +33 -7
- package/components/input/calendar/index.js +18 -6
- package/components/input/chips/index.js +99 -28
- package/components/input/chips/utils.js +34 -4
- package/components/input/color-picker/index.js +74 -25
- package/components/input/composite/index.js +3 -3
- package/components/input/currency/index.js +35 -49
- package/components/input/default/checkbox/index.js +23 -28
- package/components/input/default/checkboxset/index.js +38 -18
- package/components/input/default/checkboxset/utils.js +30 -0
- package/components/input/default/radioset/index.js +36 -39
- package/components/input/default/switch/index.js +30 -13
- package/components/input/epoch/date/index.js +130 -69
- package/components/input/epoch/date/utils.js +94 -1
- package/components/input/epoch/datetime/index.js +72 -22
- package/components/input/epoch/datetime/utils.js +49 -10
- package/components/input/epoch/time/index.js +68 -19
- package/components/input/epoch/time/utils.js +62 -14
- package/components/input/fileupload/Utils.js +12 -7
- package/components/input/fileupload/components/MultiUpload.js +2 -6
- package/components/input/fileupload/components/SingleUpload.js +3 -7
- package/components/input/fileupload/index.js +6 -10
- package/components/input/fileupload/useFileUpload.js +16 -5
- package/components/input/number/index.js +158 -43
- package/components/input/rating/index.js +90 -7
- package/components/input/select/index.js +147 -70
- package/components/input/slider/index.js +84 -26
- package/components/input/text/index.js +38 -18
- package/components/input/text/util.js +283 -130
- package/components/input/textarea/index.js +13 -10
- package/components/input/upload/index.js +124 -0
- package/components/input/upload/props.js +5 -0
- package/components/input/util/index.js +11 -0
- package/components/navbar/index.js +51 -3
- package/components/navbar/nav/index.js +46 -16
- package/components/navbar/nav-item/index.js +11 -5
- package/components/navigation/menu/components/ListItems.js +3 -0
- package/components/navigation/menu/constants.js +2 -1
- package/components/navigation/menu/hooks/useHoverState.hook.js +48 -0
- package/components/navigation/menu/hooks/useKeyboardMovements.hook.js +37 -0
- package/components/navigation/menu/hooks/useTransformedDataset.hook.js +15 -0
- package/components/navigation/menu/index.js +326 -188
- package/components/navigation/menu/utils/action-task.js +14 -0
- package/components/navigation/menu/utils/role-filter.js +76 -0
- package/components/navigation/popover/index.js +99 -26
- package/components/page/partial-container/index.js +34 -5
- package/components/prefab/index.js +2 -4
- package/context/PrefabContext.js +10 -6
- package/context/WidgetProvider.js +30 -31
- package/core/app.service.js +1 -1
- package/core/constants/events.js +57 -1
- package/core/dialog.service.js +1 -2
- package/core/event-notifier.js +1 -2
- package/core/formatter/array-formatters.js +33 -0
- package/core/formatter/date-formatters.js +2 -4
- package/core/formatter/index.js +2 -1
- package/core/formatter/number-formatters.js +5 -10
- package/core/formatter/security-formatters.js +2 -4
- package/core/formatter/string-formatters.js +3 -6
- package/core/proxy-service.js +84 -13
- package/core/script-registry.js +108 -48
- package/core/util/common.js +4 -4
- package/core/util/compare.js +30 -0
- package/core/util/dom.js +8 -8
- package/core/util/index.js +16 -6
- package/core/util/safe-is-equal.js +156 -0
- package/core/util/security.js +1 -2
- package/core/util/utils.js +16 -7
- package/higherOrder/BaseApp.js +108 -65
- package/higherOrder/BaseDateTime.js +31 -13
- package/higherOrder/BasePage.js +268 -144
- package/higherOrder/BasePartial.js +1 -1
- package/higherOrder/BasePrefab.js +33 -15
- package/higherOrder/DataNav.js +99 -16
- package/higherOrder/helper.js +5 -0
- package/higherOrder/withBaseWrapper.js +41 -28
- package/hooks/useAuth.js +11 -5
- package/hooks/useHttp.js +280 -94
- package/mui-config/theme-provider.js +1 -1
- package/mui-config/theme.js +1 -1
- package/package-lock.json +824 -724
- package/package.json +8 -8
- package/store/bindActions/i18nActions.js +18 -0
- package/store/index.js +3 -1
- package/store/slices/appConfigSlice.js +2 -2
- package/store/slices/authSlice.js +31 -28
- package/store/slices/i18nSlice.js +2 -2
- package/store/slices/navigationSlice.js +35 -0
- package/store/viewport.service.js +255 -0
- package/utils/attr.js +35 -0
- package/utils/dataset-util.js +1 -2
- package/utils/form-state.util.js +43 -12
- package/utils/form-utils.js +47 -2
- package/utils/format-util.js +28 -13
- package/utils/page-params-util.js +33 -1
- package/utils/state-persistance.js +72 -13
- package/utils/transformedDataset-utils.js +35 -24
- package/variables/base-variable.js +12 -14
- package/variables/crud-variable.js +225 -0
- package/variables/live-variable.js +56 -20
- package/variables/metadata.service.js +123 -0
- package/variables/model-variable.js +21 -15
- package/variables/service-variable.js +88 -83
|
@@ -107,7 +107,7 @@ var BasePartial = exports.BasePartial = function BasePartial(WrappedComponent, a
|
|
|
107
107
|
return __jsx(WrappedComponent, combinedProps);
|
|
108
108
|
};
|
|
109
109
|
|
|
110
|
-
// Apply
|
|
110
|
+
// Apply BasePage HOC to our FragmentConsumer
|
|
111
111
|
var EnhancedComponent = (0, _BasePage["default"])(FragmentConsumer, addPageScript, getVariables, componentInfo, {
|
|
112
112
|
serviceDefs: serviceDefs,
|
|
113
113
|
appLocale: appLocale,
|
|
@@ -18,6 +18,8 @@ var _appstore = _interopRequireDefault(require("@wavemaker/react-runtime/core/ap
|
|
|
18
18
|
var _appConfigSlice = require("@wavemaker/react-runtime/store/slices/appConfigSlice");
|
|
19
19
|
var _PrefabContext = _interopRequireDefault(require("@wavemaker/react-runtime/context/PrefabContext"));
|
|
20
20
|
var _spinner = require("../components/basic/spinner");
|
|
21
|
+
var _withBaseWrapper = _interopRequireDefault(require("./withBaseWrapper"));
|
|
22
|
+
var _metadata = require("@wavemaker/react-runtime/variables/metadata.service");
|
|
21
23
|
var _excluded = ["pages", "partials", "componentType"];
|
|
22
24
|
function _interopRequireWildcard(e, t) { if ("function" == typeof WeakMap) var r = new WeakMap(), n = new WeakMap(); return (_interopRequireWildcard = function _interopRequireWildcard(e, t) { if (!t && e && e.__esModule) return e; var o, i, f = { __proto__: null, "default": e }; if (null === e || "object" != _typeof(e) && "function" != typeof e) return f; if (o = t ? n : r) { if (o.has(e)) return o.get(e); o.set(e, f); } for (var _t2 in e) "default" !== _t2 && {}.hasOwnProperty.call(e, _t2) && ((i = (o = Object.defineProperty) && Object.getOwnPropertyDescriptor(e, _t2)) && (i.get || i.set) ? o(f, _t2, i) : f[_t2] = e[_t2]); return f; })(e, t); }
|
|
23
25
|
var __jsx = _react["default"].createElement;
|
|
@@ -50,11 +52,12 @@ var BasePrefab = exports.BasePrefab = function BasePrefab(WrappedComponent, addP
|
|
|
50
52
|
var _useState2 = (0, _react.useState)(prefabDefinitions || {}),
|
|
51
53
|
serviceDefs = _useState2[0],
|
|
52
54
|
setServiceDefs = _useState2[1];
|
|
53
|
-
var baseUrl = appConfig
|
|
55
|
+
var baseUrl = (appConfig === null || appConfig === void 0 ? void 0 : appConfig.url) || "";
|
|
54
56
|
// Fetch service definitions when component mounts only if not already in state
|
|
55
57
|
(0, _react.useEffect)(function () {
|
|
56
58
|
// Skip fetching if we already have the definitions in state
|
|
57
59
|
if (prefabDefinitions || !baseUrl) {
|
|
60
|
+
_metadata.metadataService.setMetadata(prefabDefinitions || {}, prefabname);
|
|
58
61
|
setLoading(false);
|
|
59
62
|
return;
|
|
60
63
|
}
|
|
@@ -76,30 +79,36 @@ var BasePrefab = exports.BasePrefab = function BasePrefab(WrappedComponent, addP
|
|
|
76
79
|
_context.next = 7;
|
|
77
80
|
return dispatch((0, _appConfigSlice.getPrefabDefinitions)({
|
|
78
81
|
prefabName: prefabname,
|
|
79
|
-
baseUrl:
|
|
82
|
+
baseUrl: baseUrl,
|
|
80
83
|
pages: pages || []
|
|
81
84
|
})).unwrap();
|
|
82
85
|
case 7:
|
|
83
86
|
response = _context.sent;
|
|
84
87
|
setServiceDefs(response || {});
|
|
88
|
+
_metadata.metadataService.setMetadata((response === null || response === void 0 ? void 0 : response.serviceDefs) || {}, prefabname);
|
|
85
89
|
_appstore["default"].set("".concat(prefabname, "-partials"), {
|
|
86
90
|
partials: partials || []
|
|
87
91
|
});
|
|
88
|
-
|
|
92
|
+
// Call metadata service's load method to set metadata with correct base URL
|
|
93
|
+
// This is equivalent to Angular's this.$metadata.load(prefabName)
|
|
94
|
+
_context.next = 13;
|
|
95
|
+
return _metadata.metadataService.load(prefabname, baseUrl);
|
|
96
|
+
case 13:
|
|
97
|
+
_context.next = 18;
|
|
89
98
|
break;
|
|
90
|
-
case 12:
|
|
91
|
-
_context.prev = 12;
|
|
92
|
-
_context.t0 = _context["catch"](4);
|
|
93
|
-
console.error("Failed to fetch service definitions:", _context.t0);
|
|
94
99
|
case 15:
|
|
95
100
|
_context.prev = 15;
|
|
96
|
-
|
|
97
|
-
|
|
101
|
+
_context.t0 = _context["catch"](4);
|
|
102
|
+
console.error("Failed to fetch service definitions:", _context.t0);
|
|
98
103
|
case 18:
|
|
104
|
+
_context.prev = 18;
|
|
105
|
+
setLoading(false);
|
|
106
|
+
return _context.finish(18);
|
|
107
|
+
case 21:
|
|
99
108
|
case "end":
|
|
100
109
|
return _context.stop();
|
|
101
110
|
}
|
|
102
|
-
}, _callee, null, [[4,
|
|
111
|
+
}, _callee, null, [[4, 15, 18, 21]]);
|
|
103
112
|
}));
|
|
104
113
|
return function fetchServiceDefs() {
|
|
105
114
|
return _ref2.apply(this, arguments);
|
|
@@ -113,7 +122,9 @@ var BasePrefab = exports.BasePrefab = function BasePrefab(WrappedComponent, addP
|
|
|
113
122
|
if (loading) {
|
|
114
123
|
return __jsx(_spinner.WmSpinner, {
|
|
115
124
|
show: true,
|
|
116
|
-
className: "baseprefab-spinner"
|
|
125
|
+
className: "baseprefab-spinner",
|
|
126
|
+
name: "baseprefab-spinner",
|
|
127
|
+
listener: {}
|
|
117
128
|
});
|
|
118
129
|
}
|
|
119
130
|
var appLocale = (0, _merge["default"])({}, (i18n === null || i18n === void 0 ? void 0 : i18n.appLocale) || {}, (i18n === null || i18n === void 0 || (_i18n$prefabMessages = i18n.prefabMessages) === null || _i18n$prefabMessages === void 0 ? void 0 : _i18n$prefabMessages[prefabname]) || {});
|
|
@@ -139,15 +150,22 @@ var BasePrefab = exports.BasePrefab = function BasePrefab(WrappedComponent, addP
|
|
|
139
150
|
});
|
|
140
151
|
BasePrefabWrapper.displayName = "BasePrefabWrapper";
|
|
141
152
|
var BasePrefabWithProvider = function BasePrefabWithProvider(props) {
|
|
142
|
-
|
|
153
|
+
var _props$formArrayIndex;
|
|
154
|
+
return __jsx("div", {
|
|
155
|
+
hidden: props.hidden
|
|
156
|
+
}, __jsx(_PrefabContext["default"], {
|
|
143
157
|
value: {
|
|
144
158
|
inbound: props.inbound || {},
|
|
145
159
|
outbound: props.outbound || {},
|
|
146
|
-
prefabName: props.name
|
|
160
|
+
prefabName: props.name,
|
|
161
|
+
parentForm: props.parentForm,
|
|
162
|
+
isParentList: props.isParentList,
|
|
163
|
+
formArrayIndex: (_props$formArrayIndex = props.formArrayIndex) !== null && _props$formArrayIndex !== void 0 ? _props$formArrayIndex : -1,
|
|
164
|
+
parentListName: props.parentListName
|
|
147
165
|
}
|
|
148
|
-
}, __jsx(BasePrefabWrapper, props));
|
|
166
|
+
}, __jsx(BasePrefabWrapper, props)));
|
|
149
167
|
};
|
|
150
168
|
BasePrefabWithProvider.displayName = "BasePrefabWithProvider";
|
|
151
|
-
return BasePrefabWithProvider;
|
|
169
|
+
return (0, _withBaseWrapper["default"])(BasePrefabWithProvider);
|
|
152
170
|
};
|
|
153
171
|
var _default = exports["default"] = BasePrefab;
|
package/higherOrder/DataNav.js
CHANGED
|
@@ -7,13 +7,14 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
7
7
|
});
|
|
8
8
|
exports.handleNavigation = exports["default"] = void 0;
|
|
9
9
|
var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends"));
|
|
10
|
-
var _typeof2 = _interopRequireDefault(require("@babel/runtime/helpers/typeof"));
|
|
11
10
|
var _objectWithoutProperties2 = _interopRequireDefault(require("@babel/runtime/helpers/objectWithoutProperties"));
|
|
11
|
+
var _typeof2 = _interopRequireDefault(require("@babel/runtime/helpers/typeof"));
|
|
12
12
|
var _toConsumableArray2 = _interopRequireDefault(require("@babel/runtime/helpers/toConsumableArray"));
|
|
13
13
|
var _slicedToArray2 = _interopRequireDefault(require("@babel/runtime/helpers/slicedToArray"));
|
|
14
14
|
var _react = _interopRequireWildcard(require("react"));
|
|
15
|
+
var _lodash = require("lodash");
|
|
15
16
|
var _withBaseWrapper = require("@wavemaker/react-runtime/higherOrder/withBaseWrapper");
|
|
16
|
-
var _excluded = ["
|
|
17
|
+
var _excluded = ["itemicon", "itemlabel", "itemhint", "itemlink", "itemtarget", "itembadge", "itemchildren", "itemaction", "itemclass", "itemid", "isactive", "userrole", "orderby", "datafield", "displayfield", "listener", "styles", "className"];
|
|
17
18
|
function _interopRequireWildcard(e, t) { if ("function" == typeof WeakMap) var r = new WeakMap(), n = new WeakMap(); return (_interopRequireWildcard = function _interopRequireWildcard(e, t) { if (!t && e && e.__esModule) return e; var o, i, f = { __proto__: null, "default": e }; if (null === e || "object" != _typeof3(e) && "function" != typeof e) return f; if (o = t ? n : r) { if (o.has(e)) return o.get(e); o.set(e, f); } for (var _t2 in e) "default" !== _t2 && {}.hasOwnProperty.call(e, _t2) && ((i = (o = Object.defineProperty) && Object.getOwnPropertyDescriptor(e, _t2)) && (i.get || i.set) ? o(f, _t2, i) : f[_t2] = e[_t2]); return f; })(e, t); }
|
|
18
19
|
var __jsx = _react["default"].createElement;
|
|
19
20
|
function _createForOfIteratorHelper(r, e) { var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (!t) { if (Array.isArray(r) || (t = _unsupportedIterableToArray(r)) || e && r && "number" == typeof r.length) { t && (r = t); var _n = 0, F = function F() {}; return { s: F, n: function n() { return _n >= r.length ? { done: !0 } : { done: !1, value: r[_n++] }; }, e: function e(r) { throw r; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var o, a = !0, u = !1; return { s: function s() { t = t.call(r); }, n: function n() { var r = t.next(); return a = r.done, r; }, e: function e(r) { u = !0, o = r; }, f: function f() { try { a || null == t["return"] || t["return"](); } finally { if (u) throw o; } } }; }
|
|
@@ -25,7 +26,7 @@ var getValidLink = function getValidLink(link) {
|
|
|
25
26
|
if (routRegex.test(link)) {
|
|
26
27
|
var match = link.match(/[\w]+.*/);
|
|
27
28
|
if (match) {
|
|
28
|
-
link = "
|
|
29
|
+
link = "".concat(match[0]);
|
|
29
30
|
}
|
|
30
31
|
} else if (link.startsWith("www.")) {
|
|
31
32
|
link = "//".concat(link);
|
|
@@ -35,9 +36,6 @@ var getValidLink = function getValidLink(link) {
|
|
|
35
36
|
var getElement = function getElement(obj, key) {
|
|
36
37
|
return obj && obj[key];
|
|
37
38
|
};
|
|
38
|
-
var isDefined = function isDefined(value) {
|
|
39
|
-
return value !== undefined;
|
|
40
|
-
};
|
|
41
39
|
var validateAccessRoles = function validateAccessRoles(roles, userRoles) {
|
|
42
40
|
if (!roles || typeof roles !== "string") return true;
|
|
43
41
|
var roleList = roles.split(",").map(function (role) {
|
|
@@ -82,19 +80,19 @@ var getCurrentRouteId = function getCurrentRouteId() {
|
|
|
82
80
|
var segments = path.split("/");
|
|
83
81
|
return segments[segments.length - 1] || "Main";
|
|
84
82
|
};
|
|
85
|
-
var
|
|
83
|
+
var _findPathToNode = function findPathToNode(nodes, targetId) {
|
|
86
84
|
var path = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : [];
|
|
87
85
|
var _iterator = _createForOfIteratorHelper(nodes),
|
|
88
86
|
_step;
|
|
89
87
|
try {
|
|
90
88
|
for (_iterator.s(); !(_step = _iterator.n()).done;) {
|
|
91
|
-
var _node$
|
|
89
|
+
var _node$children;
|
|
92
90
|
var node = _step.value;
|
|
93
|
-
if (node.id === targetId
|
|
91
|
+
if (node.id === targetId) {
|
|
94
92
|
return [].concat((0, _toConsumableArray2["default"])(path), [node]);
|
|
95
93
|
}
|
|
96
94
|
if ((_node$children = node.children) !== null && _node$children !== void 0 && _node$children.length) {
|
|
97
|
-
var foundPath =
|
|
95
|
+
var foundPath = _findPathToNode(node.children, targetId, [].concat((0, _toConsumableArray2["default"])(path), [node]));
|
|
98
96
|
if (foundPath.length) {
|
|
99
97
|
return foundPath;
|
|
100
98
|
}
|
|
@@ -107,6 +105,61 @@ var findPathToNode = function findPathToNode(nodes, targetId) {
|
|
|
107
105
|
}
|
|
108
106
|
return [];
|
|
109
107
|
};
|
|
108
|
+
var _findNodeById = function findNodeById(data, targetId) {
|
|
109
|
+
var itemIdField = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : "id";
|
|
110
|
+
var _iterator2 = _createForOfIteratorHelper(data),
|
|
111
|
+
_step2;
|
|
112
|
+
try {
|
|
113
|
+
for (_iterator2.s(); !(_step2 = _iterator2.n()).done;) {
|
|
114
|
+
var item = _step2.value;
|
|
115
|
+
if (item && (0, _typeof2["default"])(item) === "object") {
|
|
116
|
+
// Check if current item matches the target id
|
|
117
|
+
if (item[itemIdField] === targetId) {
|
|
118
|
+
return true;
|
|
119
|
+
}
|
|
120
|
+
// Recursively check children
|
|
121
|
+
if (Array.isArray(item.children) && item.children.length > 0) {
|
|
122
|
+
if (_findNodeById(item.children, targetId, itemIdField)) {
|
|
123
|
+
return true;
|
|
124
|
+
}
|
|
125
|
+
}
|
|
126
|
+
}
|
|
127
|
+
}
|
|
128
|
+
} catch (err) {
|
|
129
|
+
_iterator2.e(err);
|
|
130
|
+
} finally {
|
|
131
|
+
_iterator2.f();
|
|
132
|
+
}
|
|
133
|
+
return false;
|
|
134
|
+
};
|
|
135
|
+
|
|
136
|
+
// Helper function to find the correct array from array of arrays based on current route
|
|
137
|
+
var findMatchingDataset = function findMatchingDataset(data, currentRouteId) {
|
|
138
|
+
var itemIdField = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : "id";
|
|
139
|
+
if (!Array.isArray(data) || data.length === 0) {
|
|
140
|
+
return data || [];
|
|
141
|
+
}
|
|
142
|
+
|
|
143
|
+
// If the first element is not an array, return as is
|
|
144
|
+
if (!Array.isArray(data[0])) {
|
|
145
|
+
return data;
|
|
146
|
+
}
|
|
147
|
+
|
|
148
|
+
// It's an array of arrays - search through each array
|
|
149
|
+
for (var i = 0; i < data.length; i++) {
|
|
150
|
+
var arrayItem = data[i];
|
|
151
|
+
|
|
152
|
+
// Flatten the array item to get all objects regardless of nesting using lodash
|
|
153
|
+
var flattenedArray = (0, _lodash.flattenDeep)([arrayItem]);
|
|
154
|
+
if (flattenedArray.length > 0 && _findNodeById(flattenedArray, currentRouteId, itemIdField)) {
|
|
155
|
+
return flattenedArray;
|
|
156
|
+
}
|
|
157
|
+
}
|
|
158
|
+
|
|
159
|
+
// If no match found, flatten and return the first array as fallback
|
|
160
|
+
var fallbackArray = (0, _lodash.flattenDeep)([data[0]]);
|
|
161
|
+
return fallbackArray.length > 0 ? fallbackArray : data;
|
|
162
|
+
};
|
|
110
163
|
var handleNavigation = exports.handleNavigation = function handleNavigation(item, event) {
|
|
111
164
|
var options = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {};
|
|
112
165
|
var onBeforenavigate = options.onBeforenavigate,
|
|
@@ -136,8 +189,7 @@ var handleNavigation = exports.handleNavigation = function handleNavigation(item
|
|
|
136
189
|
var withDatasetAwareNavigation = function withDatasetAwareNavigation(WrappedComponent) {
|
|
137
190
|
var NavigationWrappedComponent = /*#__PURE__*/(0, _react.forwardRef)(function (props, ref) {
|
|
138
191
|
var _listener$appConfig, _securityService$logg;
|
|
139
|
-
var
|
|
140
|
-
itemicon = props.itemicon,
|
|
192
|
+
var itemicon = props.itemicon,
|
|
141
193
|
itemlabel = props.itemlabel,
|
|
142
194
|
itemhint = props.itemhint,
|
|
143
195
|
itemlink = props.itemlink,
|
|
@@ -156,6 +208,17 @@ var withDatasetAwareNavigation = function withDatasetAwareNavigation(WrappedComp
|
|
|
156
208
|
styles = props.styles,
|
|
157
209
|
className = props.className,
|
|
158
210
|
restProps = (0, _objectWithoutProperties2["default"])(props, _excluded);
|
|
211
|
+
var dataset = (0, _react.useMemo)(function () {
|
|
212
|
+
var data = typeof props.dataset === "function" ? props.dataset() : props.dataset;
|
|
213
|
+
|
|
214
|
+
// Handle array of arrays by finding the correct array based on current route
|
|
215
|
+
if (Array.isArray(data) && data.length > 0 && Array.isArray(data[0])) {
|
|
216
|
+
var currentRouteId = getCurrentRouteId();
|
|
217
|
+
var itemIdField = itemid || "id";
|
|
218
|
+
data = findMatchingDataset(data, currentRouteId, itemIdField);
|
|
219
|
+
}
|
|
220
|
+
return data || [];
|
|
221
|
+
}, [props.dataset, itemid]);
|
|
159
222
|
var _useState = (0, _react.useState)([]),
|
|
160
223
|
navNodes = _useState[0],
|
|
161
224
|
setNavNodes = _useState[1];
|
|
@@ -220,7 +283,7 @@ var withDatasetAwareNavigation = function withDatasetAwareNavigation(WrappedComp
|
|
|
220
283
|
roleField: userrole || "role"
|
|
221
284
|
};
|
|
222
285
|
};
|
|
223
|
-
var
|
|
286
|
+
var _getNode = function getNode(fields, node) {
|
|
224
287
|
var context = {};
|
|
225
288
|
|
|
226
289
|
// Handle different node structures
|
|
@@ -234,7 +297,7 @@ var withDatasetAwareNavigation = function withDatasetAwareNavigation(WrappedComp
|
|
|
234
297
|
} else if ((0, _typeof2["default"])(node) === "object") {
|
|
235
298
|
var childrenData = getElement(node, fields.childrenField);
|
|
236
299
|
var children = Array.isArray(childrenData) ? childrenData.map(function (child) {
|
|
237
|
-
return
|
|
300
|
+
return _getNode(fields, child);
|
|
238
301
|
}) : [];
|
|
239
302
|
processedNode = {
|
|
240
303
|
action: getEvaluatedData(node, {
|
|
@@ -352,7 +415,7 @@ var withDatasetAwareNavigation = function withDatasetAwareNavigation(WrappedComp
|
|
|
352
415
|
var nodeFields = _itemFieldMap.current;
|
|
353
416
|
nodes = nodes.reduce(function (result, node) {
|
|
354
417
|
if (validateAccessRoles(getElement(node, nodeFields.roleField), userRoles)) {
|
|
355
|
-
result.push(
|
|
418
|
+
result.push(_getNode(nodeFields, node));
|
|
356
419
|
}
|
|
357
420
|
return result;
|
|
358
421
|
}, []);
|
|
@@ -364,9 +427,29 @@ var withDatasetAwareNavigation = function withDatasetAwareNavigation(WrappedComp
|
|
|
364
427
|
var newNodes = getNodes();
|
|
365
428
|
setNavNodes(newNodes);
|
|
366
429
|
};
|
|
430
|
+
|
|
431
|
+
// Check if the wrapped component is a breadcrumb component
|
|
432
|
+
// Filter navNodes for breadcrumb components to show only path to current page
|
|
433
|
+
var filteredNavNodes = (0, _react.useMemo)(function () {
|
|
434
|
+
if (!navNodes || navNodes.length === 0) {
|
|
435
|
+
return navNodes;
|
|
436
|
+
}
|
|
437
|
+
var currentRouteId = getCurrentRouteId();
|
|
438
|
+
|
|
439
|
+
// If no route ID, return empty
|
|
440
|
+
if (!currentRouteId) {
|
|
441
|
+
return [];
|
|
442
|
+
}
|
|
443
|
+
|
|
444
|
+
// Find the path to the current page
|
|
445
|
+
var breadcrumbPath = _findPathToNode(navNodes, currentRouteId);
|
|
446
|
+
|
|
447
|
+
// Return the path if found, otherwise return empty
|
|
448
|
+
return breadcrumbPath.length > 0 ? breadcrumbPath : [];
|
|
449
|
+
}, [navNodes]);
|
|
367
450
|
return __jsx(WrappedComponent, (0, _extends2["default"])({}, props, {
|
|
368
451
|
ref: ref,
|
|
369
|
-
navNodes:
|
|
452
|
+
navNodes: filteredNavNodes,
|
|
370
453
|
resetNavNodes: resetNodes,
|
|
371
454
|
handleNavigation: handleNavigation
|
|
372
455
|
}));
|
package/higherOrder/helper.js
CHANGED
|
@@ -38,6 +38,11 @@ var BaseAppInitialState = exports.BaseAppInitialState = {
|
|
|
38
38
|
};
|
|
39
39
|
function importModule(moduleName) {
|
|
40
40
|
if (moduleName === "moment") {
|
|
41
|
+
var locale = (0, _util.getTimezone)();
|
|
42
|
+
var guessedTz = locale || _momentTimezone["default"].tz && typeof _momentTimezone["default"].tz.guess === "function" && _momentTimezone["default"].tz.guess() || typeof Intl !== "undefined" && Intl.DateTimeFormat && Intl.DateTimeFormat().resolvedOptions().timeZone || "UTC";
|
|
43
|
+
if (_momentTimezone["default"].tz && typeof _momentTimezone["default"].tz.setDefault === "function") {
|
|
44
|
+
_momentTimezone["default"].tz.setDefault(guessedTz);
|
|
45
|
+
}
|
|
41
46
|
return _momentTimezone["default"];
|
|
42
47
|
}
|
|
43
48
|
}
|
|
@@ -16,8 +16,7 @@ var _isEqual = _interopRequireDefault(require("lodash-es/isEqual"));
|
|
|
16
16
|
var _useDeviceVisibility2 = require("@wavemaker/react-runtime/hooks/useDeviceVisibility");
|
|
17
17
|
var _WidgetProvider = require("@wavemaker/react-runtime/context/WidgetProvider");
|
|
18
18
|
var _styleUtils = require("@wavemaker/react-runtime/utils/style-utils");
|
|
19
|
-
var
|
|
20
|
-
var _excluded = ["show", "name", "deferload"];
|
|
19
|
+
var _excluded = ["show", "deferload"];
|
|
21
20
|
function _interopRequireWildcard(e, t) { if ("function" == typeof WeakMap) var r = new WeakMap(), n = new WeakMap(); return (_interopRequireWildcard = function _interopRequireWildcard(e, t) { if (!t && e && e.__esModule) return e; var o, i, f = { __proto__: null, "default": e }; if (null === e || "object" != _typeof3(e) && "function" != typeof e) return f; if (o = t ? n : r) { if (o.has(e)) return o.get(e); o.set(e, f); } for (var _t2 in e) "default" !== _t2 && {}.hasOwnProperty.call(e, _t2) && ((i = (o = Object.defineProperty) && Object.getOwnPropertyDescriptor(e, _t2)) && (i.get || i.set) ? o(f, _t2, i) : f[_t2] = e[_t2]); return f; })(e, t); }
|
|
22
21
|
var __jsx = _react["default"].createElement;
|
|
23
22
|
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
@@ -27,18 +26,17 @@ var withBaseWrapper = exports.withBaseWrapper = function withBaseWrapper(Wrapped
|
|
|
27
26
|
var _pageContext$Widgets, _mergedProps$show, _mergedProps$show2;
|
|
28
27
|
var _props$show = props.show,
|
|
29
28
|
show = _props$show === void 0 ? true : _props$show,
|
|
30
|
-
|
|
31
|
-
_props$deferload = props.deferload,
|
|
32
|
-
deferload = _props$deferload === void 0 ? true : _props$deferload,
|
|
29
|
+
deferload = props.deferload,
|
|
33
30
|
rest = (0, _objectWithoutProperties2["default"])(props, _excluded);
|
|
31
|
+
var name = props["item-id"] || props.name;
|
|
32
|
+
var _usePageContext = (0, _WidgetProvider.usePageContext)(),
|
|
33
|
+
pageContext = _usePageContext.pageContext,
|
|
34
|
+
updateWidgetState = _usePageContext.updateWidgetState,
|
|
35
|
+
destroy = _usePageContext.destroy;
|
|
34
36
|
|
|
35
37
|
// All hooks must be called before any early returns
|
|
36
38
|
var _useDeviceVisibility = (0, _useDeviceVisibility2.useDeviceVisibility)(props.showindevice || ["all"]),
|
|
37
39
|
isHidden = _useDeviceVisibility.isHidden;
|
|
38
|
-
var _usePageContext = (0, _WidgetProvider.usePageContext)(),
|
|
39
|
-
pageContext = _usePageContext.pageContext,
|
|
40
|
-
updateWidgetState = _usePageContext.updateWidgetState,
|
|
41
|
-
cleanup = _usePageContext.cleanup;
|
|
42
40
|
|
|
43
41
|
// Extract widget-id from component props
|
|
44
42
|
var componentWidgetId = (0, _react.useMemo)(function () {
|
|
@@ -74,32 +72,45 @@ var withBaseWrapper = exports.withBaseWrapper = function withBaseWrapper(Wrapped
|
|
|
74
72
|
// OR if no widget-id filtering is needed (backward compatibility)
|
|
75
73
|
var shouldMergeFromContext = !componentWidgetId || !contextWidgetId || componentWidgetId === contextWidgetId;
|
|
76
74
|
var mergedState = _objectSpread({}, props);
|
|
75
|
+
var registry = pageContext === null || pageContext === void 0 ? void 0 : pageContext.overriddenPropsRegistry;
|
|
77
76
|
var datavalue = (_props$datavalue = props.datavalue) !== null && _props$datavalue !== void 0 ? _props$datavalue : widget.datavalue;
|
|
78
|
-
if (shouldMergeFromContext && (0, _scriptRegistry.isWidgetOverridden)(name, componentWidgetId)) {
|
|
79
|
-
// Apply widget-id specific overridden properties from the registry
|
|
80
|
-
var widgetOverrides = (0, _scriptRegistry.getWidgetOverrides)(name, componentWidgetId);
|
|
81
|
-
Object.keys(widgetOverrides).forEach(function (key) {
|
|
82
|
-
mergedState[key] = widgetOverrides[key];
|
|
83
|
-
});
|
|
84
77
|
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
78
|
+
// need to check it's causing other issues
|
|
79
|
+
// if (props.field) {
|
|
80
|
+
// if (props.field && props.formName !== widget.formName) {
|
|
81
|
+
// return props;
|
|
82
|
+
// }
|
|
83
|
+
// }
|
|
84
|
+
if (shouldMergeFromContext && registry !== null && registry !== void 0 && registry.isWidgetOverridden(name, componentWidgetId) && !props.formfield) {
|
|
85
|
+
// Apply widget-id specific overridden properties from the registry
|
|
86
|
+
var widgetOverrides = registry === null || registry === void 0 ? void 0 : registry.getWidgetOverrides(name, componentWidgetId || "");
|
|
87
|
+
if (widgetOverrides) {
|
|
88
|
+
Object.keys(widgetOverrides).forEach(function (key) {
|
|
89
|
+
mergedState[key] = widgetOverrides[key];
|
|
90
|
+
if (props.prefab && key !== "inbound" && key !== "outbound" && key !== "show") {
|
|
91
|
+
var updatedInbound = _objectSpread(_objectSpread({}, props.inbound), {}, (0, _defineProperty2["default"])({}, key, widgetOverrides[key]));
|
|
92
|
+
mergedState.inbound = updatedInbound;
|
|
93
|
+
}
|
|
94
|
+
});
|
|
95
|
+
|
|
96
|
+
// Then handle other widget properties that are not overridden
|
|
97
|
+
Object.keys(widget).forEach(function (key) {
|
|
98
|
+
var isPropOverriddenCheck = registry === null || registry === void 0 ? void 0 : registry.isPropOverridden(name, key, componentWidgetId || "");
|
|
99
|
+
if (!isPropOverriddenCheck) {
|
|
100
|
+
mergedState[key] = props[key];
|
|
101
|
+
}
|
|
102
|
+
});
|
|
103
|
+
}
|
|
91
104
|
} else if (shouldMergeFromContext) {
|
|
92
105
|
// For regular widgets (no widget-id or matching widget-id), merge with component props taking precedence
|
|
93
|
-
mergedState = _objectSpread(_objectSpread(_objectSpread(
|
|
94
|
-
value: datavalue
|
|
95
|
-
} : {}), {}, {
|
|
106
|
+
mergedState = _objectSpread(_objectSpread(_objectSpread({}, widget), props), WrappedComponent.displayName === "WmFormField" && !props.value && {
|
|
107
|
+
value: datavalue,
|
|
96
108
|
datavalue: datavalue
|
|
97
109
|
});
|
|
98
110
|
} else {
|
|
99
111
|
// Widget-id mismatch: component stays independent with only its own props
|
|
100
|
-
mergedState = _objectSpread(_objectSpread(
|
|
101
|
-
value: datavalue
|
|
102
|
-
} : {}), {}, {
|
|
112
|
+
mergedState = _objectSpread(_objectSpread({}, props), WrappedComponent.displayName === "WmFormField" && !props.value && {
|
|
113
|
+
value: datavalue,
|
|
103
114
|
datavalue: datavalue
|
|
104
115
|
});
|
|
105
116
|
}
|
|
@@ -168,11 +179,13 @@ var withBaseWrapper = exports.withBaseWrapper = function withBaseWrapper(Wrapped
|
|
|
168
179
|
deferload: deferload.toString()
|
|
169
180
|
}, {
|
|
170
181
|
show: mergedProps === null || mergedProps === void 0 || (_mergedProps$show2 = mergedProps.show) === null || _mergedProps$show2 === void 0 ? void 0 : _mergedProps$show2.toString(),
|
|
171
|
-
name: name,
|
|
182
|
+
name: props.name,
|
|
172
183
|
className: computedClassName,
|
|
173
184
|
styles: computedStyles
|
|
174
185
|
}, (props === null || props === void 0 ? void 0 : props.dataset) && {
|
|
175
186
|
dataset: props === null || props === void 0 ? void 0 : props.dataset
|
|
187
|
+
}, {
|
|
188
|
+
destroy: destroy
|
|
176
189
|
}));
|
|
177
190
|
};
|
|
178
191
|
WithBaseComponent.displayName = "WithBase(".concat(WrappedComponent.displayName || WrappedComponent.name || "Component", ")");
|
package/hooks/useAuth.js
CHANGED
|
@@ -12,6 +12,7 @@ var _react = require("react");
|
|
|
12
12
|
var _store = require("../store");
|
|
13
13
|
var _authSlice = require("@wavemaker/react-runtime/store/slices/authSlice");
|
|
14
14
|
var _includes = _interopRequireDefault(require("lodash-es/includes"));
|
|
15
|
+
var _appConfigSlice = require("../store/slices/appConfigSlice");
|
|
15
16
|
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
16
17
|
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { (0, _defineProperty2["default"])(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
17
18
|
var useAuth = exports.useAuth = function useAuth() {
|
|
@@ -133,16 +134,21 @@ var useAuth = exports.useAuth = function useAuth() {
|
|
|
133
134
|
while (1) switch (_context4.prev = _context4.next) {
|
|
134
135
|
case 0:
|
|
135
136
|
if (baseURL) {
|
|
136
|
-
_context4.next =
|
|
137
|
+
_context4.next = 6;
|
|
137
138
|
break;
|
|
138
139
|
}
|
|
139
|
-
|
|
140
|
-
case 2:
|
|
140
|
+
dispatch((0, _authSlice.setPageLoading)(true));
|
|
141
141
|
_context4.next = 4;
|
|
142
|
-
return dispatch((0,
|
|
142
|
+
return dispatch((0, _appConfigSlice.getServiceDefinitions)(baseURL)).unwrap();
|
|
143
143
|
case 4:
|
|
144
|
+
dispatch((0, _authSlice.setPageLoading)(false));
|
|
145
|
+
return _context4.abrupt("return", Promise.resolve({}));
|
|
146
|
+
case 6:
|
|
147
|
+
_context4.next = 8;
|
|
148
|
+
return dispatch((0, _authSlice.loadSecurityInfo)(baseURL)).unwrap();
|
|
149
|
+
case 8:
|
|
144
150
|
return _context4.abrupt("return", _context4.sent);
|
|
145
|
-
case
|
|
151
|
+
case 9:
|
|
146
152
|
case "end":
|
|
147
153
|
return _context4.stop();
|
|
148
154
|
}
|