isobit-ui 0.0.360 → 0.0.363

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 +41 -11
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * isobit-ui v0.0.360
2
+ * isobit-ui v0.0.363
3
3
  * (c) Erik Alarcon Pinedo
4
4
  * Released under the MIT License.
5
5
  */
@@ -4849,9 +4849,9 @@ var resize = function resize() {
4849
4849
  var pc = document.querySelectorAll("#page-content,.ui-layout-pane-center,.ion-page > ion-content");
4850
4850
 
4851
4851
  if (pc && pc[0]) {
4852
- console.log('cccccccccccc'); //console.log(ph.dataset);
4852
+ //console.log('cccccccccccc');
4853
+ //console.log(ph.dataset);
4853
4854
  //console.log(ph.offsetHeight);
4854
-
4855
4855
  var p, i;
4856
4856
 
4857
4857
  if (pc[0].nodeName == "ION-CONTENT") {
@@ -4926,7 +4926,11 @@ var resize = function resize() {
4926
4926
  }
4927
4927
  }
4928
4928
 
4929
+ console.log("=======");
4930
+ console.log(p);
4931
+
4929
4932
  if (p) {
4933
+ alert(12);
4930
4934
  var pid = p.getAttribute("popup");
4931
4935
  if (!pid) p.setAttribute("popup", pid = _$1.id());
4932
4936
  var popup = _$1.storeFunction[pid];
@@ -5469,21 +5473,47 @@ Vue__default['default'].filter('number', function (s
5469
5473
  Vue__default['default'].filter('date', _$1.toDate = function (s, type) {
5470
5474
  //s usa d|date('time')
5471
5475
  if (s) {
5472
- var pad = Vue__default['default'].pad;
5473
- var d = new Date(s);
5476
+ var pad = Vue__default['default'].pad,
5477
+ d;
5478
+
5479
+ if (s instanceof Date) {
5480
+ d = s;
5481
+ } else if (typeof s === 'string') {
5482
+ console.log(s);
5483
+ var t = s.split('T');
5484
+ d = t[0].split('-');
5485
+
5486
+ if (t.length > 1) {
5487
+ t = t[1].split(':');
5488
+ d = new Date(parseInt(d[0]), parseInt(d[1]) - 1, parseInt(d[2]), parseInt(t[0]), parseInt(t[1]), t.length > 2 ? parseInt(t[2]) : 0);
5489
+ } else if (d.length > 2) {
5490
+ d = new Date(parseInt(d[0]), parseInt(d[1]) - 1, parseInt(d[2]));
5491
+ } else {
5492
+ d = s.split(':');
5493
+
5494
+ if (d.length > 2) {
5495
+ d = new Date(1981, 0, 6, parseInt(d[0]), parseInt(d[1]), parseInt(d[2]));
5496
+ } else d = new Date(s);
5497
+ }
5498
+ } else {
5499
+ d = new Date(s);
5500
+ } //console.log(s);
5474
5501
 
5475
- if (type == 'time a') {
5476
- var h;
5477
5502
 
5503
+ if (type == 1) {
5504
+ s = d;
5505
+ } else if (type === 'time') {
5506
+ s = pad(d.getHours(), 2) + ":" + pad(d.getMinutes(), 2) + ':' + pad(d.setSeconds() ? d.setSeconds() : 0, 2);
5507
+ } else if (type == 'time a') {
5478
5508
  if (typeof s === 'string' || s instanceof String) {
5479
5509
  s = s.split(':');
5480
- h = s[0];
5510
+ var h = s[0];
5481
5511
  s = pad(h > 12 ? h - 12 : h, 2) + ':' + s[1] + ':' + s[2] + ' ' + (h > 12 ? 'PM' : 'AM');
5482
5512
  } else {
5483
5513
  h = d.getHours();
5484
5514
  s = pad(h > 12 ? h - 12 : h, 2) + ":" + pad(d.getMinutes(), 2) + (d.setSeconds() ? ":" + pad(d.setSeconds(), 2) : '') + ' ' + (h > 12 ? 'PM' : 'AM');
5485
5515
  }
5486
- } else if (type == 'date-') s = pad(d.getFullYear(), 4) + "-" + pad(d.getMonth() + 1, 2) + "-" + pad(d.getDate(), 2);else if (type == 'dMY' || type == 'date') s = pad(d.getDate(), 2) + "/" + pad(d.getMonth() + 1, 2) + "/" + pad(d.getFullYear(), 4) + '';else s = pad(d.getDate(), 2) + "/" + pad(d.getMonth() + 1, 2) + "/" + pad(d.getFullYear(), 4) + ' ' + pad(d.getHours(), 2) + ":" + pad(d.getMinutes(), 2);
5516
+ } else if (type == 'date-') s = pad(d.getFullYear(), 4) + "-" + pad(d.getMonth() + 1, 2) + "-" + pad(d.getDate(), 2);else if (type == 'dMY' || type == 'date') s = pad(d.getDate(), 2) + "/" + pad(d.getMonth() + 1, 2) + "/" + pad(d.getFullYear(), 4) + '';else if (type == 'datetime') s = pad(d.getFullYear(), 4) + "-" + pad(d.getMonth() + 1, 2) + "-" + pad(d.getDate(), 2) + 'T' + pad(d.getHours(), 2) + ":" + pad(d.getMinutes(), 2) + ":" + pad(d.setSeconds() ? d.setSeconds() : 0, 2);else s = pad(d.getDate(), 2) + "/" + pad(d.getMonth() + 1, 2) + "/" + pad(d.getFullYear(), 4) + ' ' + pad(d.getHours(), 2) + ":" + pad(d.getMinutes(), 2);
5487
5517
  }
5488
5518
 
5489
5519
  return s;
@@ -6247,7 +6277,7 @@ window.ui = _$1.ui = function (cfg) {
6247
6277
 
6248
6278
  storedList.unshift(o);
6249
6279
  objectStore.add(o);
6250
- me.$emit('stored', o, storedList);
6280
+ me.$emit('stored', o, storedList, objectStore);
6251
6281
  if (me.app && me.app.toast) me.app.toast('El rgistro fue grabado correctamente!');
6252
6282
  me.close({
6253
6283
  success: true,
@@ -6312,7 +6342,7 @@ window.ui = _$1.ui = function (cfg) {
6312
6342
  };
6313
6343
  }
6314
6344
 
6315
- if (me.app && me.app.toast) me.app.toast('El rgistro fue grabado correectamente!', function () {
6345
+ if (me.app && me.app.toast) me.app.toast('El registro fue grabado correectamente!', function () {
6316
6346
  me.close({
6317
6347
  success: true,
6318
6348
  data: data
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "isobit-ui",
3
- "version": "0.0.360",
3
+ "version": "0.0.363",
4
4
  "description": "Vue component to play videos",
5
5
  "keywords": [
6
6
  "ui",