robbyson-frontend-library 1.0.180 → 1.0.182
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/dist/utils/robbyson-navigate.js +2 -13
- package/docs/assets/search.js +1 -1
- package/docs/classes/utils_robbyson_navigate.RobbysonNavigate.html +1 -1
- package/docs/interfaces/services_theme_service_interface.IThemeService.html +2 -7
- package/docs/interfaces/states_main_container_root_app_state_interface.IRootApp.html +2 -3
- package/package.json +1 -1
- package/src/services/dtos/chat.dto.ts +1 -0
- package/src/services/theme.service.interface.ts +0 -6
- package/src/states/main-container/root-app.state.interface.ts +0 -1
- package/src/utils/robbyson-navigate.ts +1 -19
|
@@ -15,7 +15,6 @@ var RobbysonNavigate = /** @class */ (function () {
|
|
|
15
15
|
function RobbysonNavigate() {
|
|
16
16
|
}
|
|
17
17
|
RobbysonNavigate.to = function (url, state) {
|
|
18
|
-
var _a;
|
|
19
18
|
RobbysonNavigate._globalStore = GlobalStore.Get();
|
|
20
19
|
RobbysonNavigate._globalState =
|
|
21
20
|
RobbysonNavigate._globalStore.GetGlobalState();
|
|
@@ -23,16 +22,6 @@ var RobbysonNavigate = /** @class */ (function () {
|
|
|
23
22
|
var routeState = __assign(__assign({}, state), { pathname: history.location.pathname });
|
|
24
23
|
this.setLocationHistory(history.location.pathname);
|
|
25
24
|
// TODO: Usar a LIB PATH para concatenar a URL
|
|
26
|
-
var isStandaloneMode = RobbysonNavigate._globalState.Global.RootApp.isStandaloneMode;
|
|
27
|
-
if (isStandaloneMode) {
|
|
28
|
-
var standaloneQueryParams = (_a = this.getQueryParams()) === null || _a === void 0 ? void 0 : _a.standalone;
|
|
29
|
-
if (standaloneQueryParams) {
|
|
30
|
-
var urlHasQueryParams = url.includes("?") ? true : false;
|
|
31
|
-
url += urlHasQueryParams
|
|
32
|
-
? "&standalone=".concat(standaloneQueryParams)
|
|
33
|
-
: "?standalone=".concat(standaloneQueryParams);
|
|
34
|
-
}
|
|
35
|
-
}
|
|
36
25
|
history.push("/operacao".concat(url), routeState);
|
|
37
26
|
};
|
|
38
27
|
RobbysonNavigate.openInNewTab = function (url) {
|
|
@@ -96,12 +85,12 @@ var RobbysonNavigate = /** @class */ (function () {
|
|
|
96
85
|
return RobbysonNavigate.getPathname().includes(path);
|
|
97
86
|
};
|
|
98
87
|
RobbysonNavigate.getQueryParams = function () {
|
|
99
|
-
var _a
|
|
88
|
+
var _a;
|
|
100
89
|
RobbysonNavigate._globalStore = GlobalStore.Get();
|
|
101
90
|
RobbysonNavigate._globalState =
|
|
102
91
|
RobbysonNavigate._globalStore.GetGlobalState();
|
|
103
92
|
var history = (_a = RobbysonNavigate._globalState.Global) === null || _a === void 0 ? void 0 : _a.RootApp.history;
|
|
104
|
-
return queryString.parse(
|
|
93
|
+
return queryString.parse(history === null || history === void 0 ? void 0 : history.location.search, {
|
|
105
94
|
sort: false,
|
|
106
95
|
});
|
|
107
96
|
};
|