isobit-ui 0.2.50 → 0.2.52

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 +22 -24
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * isobit-ui v0.2.49
2
+ * isobit-ui v0.2.51
3
3
  * (c) Erik Alarcon Pinedo
4
4
  * Released under the MIT License.
5
5
  */
@@ -6676,44 +6676,42 @@ window.ui = _$1.ui = function (cfg) {
6676
6676
  }
6677
6677
  },
6678
6678
  computed: {
6679
- online: function online() {
6680
- return this.app.networkStatus.connected;
6679
+ app: function app() {
6680
+ return _$1.app;
6681
6681
  },
6682
6682
  user: function user() {
6683
- return window.app.session;
6683
+ return _$1.app.session;
6684
6684
  },
6685
- app: function app() {
6686
- return window.app;
6685
+ online: function online() {
6686
+ return this.app.networkStatus.connected;
6687
6687
  },
6688
6688
  perms: function perms() {
6689
- return this.user.perms || this.user.allcaps || {};
6690
- },
6691
- rowSelectedCount: function rowSelectedCount() {
6692
- var me = this; //console.log(me.$children);
6693
-
6694
- if (!me.$children[0]) return 0;
6695
- var t = me.$children[0].$children[0];
6696
- return t ? t.selected.length : 0;
6697
- },
6698
- baseURL: function baseURL() {
6699
- return Vue$1.baseURL ? Vue$1.baseURL : axios$2.defaults.baseURL;
6689
+ return this.session.perms || this.session.allcaps || {};
6700
6690
  },
6701
6691
  session: {
6702
6692
  get: function get() {
6703
- var me = this;
6704
-
6705
- if (!me._session) {
6693
+ if (!_$1._session) {
6706
6694
  var s = localStorage.getItem('session');
6707
6695
  if (s) s = JSON.parse(s);else s = {};
6708
- me._session = s;
6696
+ _$1._session = s;
6709
6697
  }
6710
6698
 
6711
- return me._session;
6699
+ return _$1._session;
6712
6700
  },
6713
6701
  set: function set(d) {
6714
- localStorage.setItem('session', JSON.stringify(d));
6715
- this._session = d;
6702
+ if (!d) localStorage.removeItem('session');else localStorage.setItem('session', JSON.stringify(d));
6703
+ _$1._session = d;
6716
6704
  }
6705
+ },
6706
+ rowSelectedCount: function rowSelectedCount() {
6707
+ var me = this; //console.log(me.$children);
6708
+
6709
+ if (!me.$children[0]) return 0;
6710
+ var t = me.$children[0].$children[0];
6711
+ return t ? t.selected.length : 0;
6712
+ },
6713
+ baseURL: function baseURL() {
6714
+ return Vue$1.baseURL ? Vue$1.baseURL : axios$2.defaults.baseURL;
6717
6715
  }
6718
6716
  },
6719
6717
  data: function data() {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "isobit-ui",
3
- "version": "0.2.50",
3
+ "version": "0.2.52",
4
4
  "type": "module",
5
5
  "description": "Vue component to play videos",
6
6
  "keywords": [