isobit-ui 0.2.56 → 0.2.57

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.
Files changed (2) hide show
  1. package/dist/index.js +11 -8
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * isobit-ui v0.2.55
2
+ * isobit-ui v0.2.56
3
3
  * (c) Erik Alarcon Pinedo
4
4
  * Released under the MIT License.
5
5
  */
@@ -6867,7 +6867,7 @@ window.ui = _$1.ui = function (cfg) {
6867
6867
  action = _$1.processURL(action);
6868
6868
  if (action) action = action.replace("/api", "");
6869
6869
 
6870
- if (window.app) {
6870
+ if (_$1.app) {
6871
6871
  me.open(action + '/create');
6872
6872
  } else {
6873
6873
  instance.get(_$1.currentPath = (action + '/create').replace(/([^:]\/)\/+/g, "$1") + '?modal').then(_$1.open)["catch"](me.error);
@@ -6892,7 +6892,7 @@ window.ui = _$1.ui = function (cfg) {
6892
6892
  console.log(selected);
6893
6893
  if (me.getSelectedId) id = me.getSelectedId(selected);
6894
6894
 
6895
- if (window.app) {
6895
+ if (_$1.app) {
6896
6896
  me.open(action + '/' + id + '/edit');
6897
6897
  } else {
6898
6898
  axios$2.get((_$1.currentPath = (action + '/' + id + '/edit').replace(/([^:]\/)\/+/g, "$1")) + '?modal').then(me.open)["catch"](me.error);
@@ -7350,8 +7350,9 @@ window.ui = _$1.ui = function (cfg) {
7350
7350
  if (!dlg) dlg = this.$el.parentElement;
7351
7351
  var mask = dlg.parentElement;
7352
7352
 
7353
- if (!mask && window.app.$router) {
7354
- window.app.$router.back();
7353
+ if (!mask && _$1.app.$router) {
7354
+ _$1.app.$router.back();
7355
+
7355
7356
  return;
7356
7357
  }
7357
7358
 
@@ -8007,9 +8008,11 @@ function configureAxios(a) {
8007
8008
  mask = _$1.unmask(mask);
8008
8009
 
8009
8010
  if (r && r.status == 401) {
8010
- if (window.app) {
8011
- window.app.toast('Session terminada');
8012
- window.app.logout();
8011
+ if (_$1.app) {
8012
+ _$1.app.toast('Session terminada');
8013
+
8014
+ _$1.app.logout();
8015
+
8013
8016
  return;
8014
8017
  }
8015
8018
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "isobit-ui",
3
- "version": "0.2.56",
3
+ "version": "0.2.57",
4
4
  "type": "module",
5
5
  "description": "Vue component to play videos",
6
6
  "keywords": [