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.
@@ -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, _b;
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((_b = history === null || history === void 0 ? void 0 : history.location) === null || _b === void 0 ? void 0 : _b.search, {
93
+ return queryString.parse(history === null || history === void 0 ? void 0 : history.location.search, {
105
94
  sort: false,
106
95
  });
107
96
  };