saasufy-components 3.34.0 → 3.35.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/app-router.js CHANGED
@@ -186,24 +186,24 @@ export class AppRouter extends SocketConsumer {
186
186
  let hardRedirect = pageTemplate.hasAttribute('hard-redirect');
187
187
 
188
188
  if (authRedirect != null) {
189
+ routeArgs = this.computeRouteArgs(pagePath, regExp, params);
190
+ pagePath = this.substituteRouteAgs(authRedirect, routeArgs);
189
191
  if (hardRedirect) {
190
- location.hash = authRedirect;
192
+ location.hash = pagePath;
191
193
  return;
192
194
  }
193
- routeArgs = this.computeRouteArgs(pagePath, regExp, params);
194
- pagePath = this.substituteRouteAgs(authRedirect, routeArgs);
195
195
  let result = this.getMatchingPage(pagePath, 'auth-redirect');
196
196
  pageTemplate = result.pageTemplate;
197
197
  route = result.route;
198
198
  regExp = result.regExp;
199
199
  params = result.params;
200
200
  } else if (noAuthRedirect != null) {
201
+ routeArgs = this.computeRouteArgs(pagePath, regExp, params);
202
+ pagePath = this.substituteRouteAgs(noAuthRedirect, routeArgs);
201
203
  if (hardRedirect) {
202
- location.hash = noAuthRedirect;
204
+ location.hash = pagePath;
203
205
  return;
204
206
  }
205
- routeArgs = this.computeRouteArgs(pagePath, regExp, params);
206
- pagePath = this.substituteRouteAgs(noAuthRedirect, routeArgs);
207
207
  let result = this.getMatchingPage(pagePath, 'no-auth-redirect');
208
208
  pageTemplate = result.pageTemplate;
209
209
  route = result.route;
package/overlay-modal.js CHANGED
@@ -61,18 +61,18 @@ class OverlayModal extends HTMLElement {
61
61
  cursor: pointer;
62
62
  }
63
63
  </style>
64
- <div class="overlay-background">
65
- <div class="modal-dialog">
66
- <div class="modal-title-bar">
64
+ <div class="overlay-background" part="overlay-background">
65
+ <div class="modal-dialog" part="dialog">
66
+ <div class="modal-title-bar" part="title-bar">
67
67
  <div>
68
68
  <slot name="title"></slot>
69
69
  </div>
70
70
  <div class="close-button">&#x2715;</div>
71
71
  </div>
72
- <div class="modal-content">
72
+ <div class="modal-content" part="content">
73
73
  <slot name="content"></slot>
74
74
  </div>
75
- <div class="modal-footer">
75
+ <div class="modal-footer" part="footer">
76
76
  <slot name="footer"></slot>
77
77
  </div>
78
78
  </div>
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "saasufy-components",
3
- "version": "3.34.0",
3
+ "version": "3.35.1",
4
4
  "description": "Components for Saasufy.",
5
5
  "main": "index.js",
6
6
  "scripts": {