isobit-ui 0.2.55 → 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.
- package/dist/index.js +19 -10
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
* isobit-ui v0.2.
|
|
2
|
+
* isobit-ui v0.2.56
|
|
3
3
|
* (c) Erik Alarcon Pinedo
|
|
4
4
|
* Released under the MIT License.
|
|
5
5
|
*/
|
|
@@ -5701,8 +5701,14 @@ function _await(value, then, direct) {
|
|
|
5701
5701
|
}
|
|
5702
5702
|
|
|
5703
5703
|
window.isMobile = 1;
|
|
5704
|
-
if (typeof
|
|
5705
|
-
var _$1 =
|
|
5704
|
+
if (typeof window._ == 'undefined') window._ = {};
|
|
5705
|
+
var _$1 = window._;
|
|
5706
|
+
|
|
5707
|
+
if (!_$1.instance) {
|
|
5708
|
+
_$1.instance = axios$2;
|
|
5709
|
+
}
|
|
5710
|
+
|
|
5711
|
+
var instance = _$1.instance;
|
|
5706
5712
|
Vue$1.config.ignoredElements = [].concat(_toConsumableArray(Vue$1.config.ignoredElements || []), ['v-filter', 'v-footer']);
|
|
5707
5713
|
|
|
5708
5714
|
Vue$1.n = function (v) {
|
|
@@ -6861,7 +6867,7 @@ window.ui = _$1.ui = function (cfg) {
|
|
|
6861
6867
|
action = _$1.processURL(action);
|
|
6862
6868
|
if (action) action = action.replace("/api", "");
|
|
6863
6869
|
|
|
6864
|
-
if (
|
|
6870
|
+
if (_$1.app) {
|
|
6865
6871
|
me.open(action + '/create');
|
|
6866
6872
|
} else {
|
|
6867
6873
|
instance.get(_$1.currentPath = (action + '/create').replace(/([^:]\/)\/+/g, "$1") + '?modal').then(_$1.open)["catch"](me.error);
|
|
@@ -6886,7 +6892,7 @@ window.ui = _$1.ui = function (cfg) {
|
|
|
6886
6892
|
console.log(selected);
|
|
6887
6893
|
if (me.getSelectedId) id = me.getSelectedId(selected);
|
|
6888
6894
|
|
|
6889
|
-
if (
|
|
6895
|
+
if (_$1.app) {
|
|
6890
6896
|
me.open(action + '/' + id + '/edit');
|
|
6891
6897
|
} else {
|
|
6892
6898
|
axios$2.get((_$1.currentPath = (action + '/' + id + '/edit').replace(/([^:]\/)\/+/g, "$1")) + '?modal').then(me.open)["catch"](me.error);
|
|
@@ -7344,8 +7350,9 @@ window.ui = _$1.ui = function (cfg) {
|
|
|
7344
7350
|
if (!dlg) dlg = this.$el.parentElement;
|
|
7345
7351
|
var mask = dlg.parentElement;
|
|
7346
7352
|
|
|
7347
|
-
if (!mask &&
|
|
7348
|
-
|
|
7353
|
+
if (!mask && _$1.app.$router) {
|
|
7354
|
+
_$1.app.$router.back();
|
|
7355
|
+
|
|
7349
7356
|
return;
|
|
7350
7357
|
}
|
|
7351
7358
|
|
|
@@ -8001,9 +8008,11 @@ function configureAxios(a) {
|
|
|
8001
8008
|
mask = _$1.unmask(mask);
|
|
8002
8009
|
|
|
8003
8010
|
if (r && r.status == 401) {
|
|
8004
|
-
if (
|
|
8005
|
-
|
|
8006
|
-
|
|
8011
|
+
if (_$1.app) {
|
|
8012
|
+
_$1.app.toast('Session terminada');
|
|
8013
|
+
|
|
8014
|
+
_$1.app.logout();
|
|
8015
|
+
|
|
8007
8016
|
return;
|
|
8008
8017
|
}
|
|
8009
8018
|
}
|