isobit-ui 0.2.18 → 0.2.19

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 +30 -35
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * isobit-ui v0.2.17
2
+ * isobit-ui v0.2.18
3
3
  * (c) Erik Alarcon Pinedo
4
4
  * Released under the MIT License.
5
5
  */
@@ -1128,7 +1128,7 @@ var __vue_component__$k = /*#__PURE__*/__vue_normalize__({
1128
1128
  //
1129
1129
  //
1130
1130
  var script$j = {
1131
- props: ['header', 'store', 'action'],
1131
+ props: ["header", "store", "action"],
1132
1132
  watch: {
1133
1133
  header: function header(v) {
1134
1134
  this.setTitle(v);
@@ -1150,45 +1150,40 @@ var script$j = {
1150
1150
  var me = this,
1151
1151
  el = me.$el,
1152
1152
  h = e.height;
1153
- el.style.height = h + 'px'; //si tiene header
1153
+ el.style.height = h + "px"; //si tiene header
1154
1154
 
1155
1155
  if (el.children[1]) {
1156
1156
  //se obtiene el alto del headr
1157
1157
  h = h - el.children[0].offsetHeight;
1158
- el.children[1].style.height = h + 'px';
1159
- el.children[1].style.overflowY = 'auto'; //obtien el form
1158
+ el.children[1].style.height = h + "px";
1159
+ el.children[1].style.overflowY = "auto"; //obtien el form
1160
1160
 
1161
1161
  el = el.children[1].children[0];
1162
- el.style.height = h + 'px';
1162
+ el.style.height = h + "px";
1163
1163
  console.log("============");
1164
1164
  console.log(el.children);
1165
1165
  var el2; //,style2;
1166
1166
 
1167
- if (el.children.forEach) {
1168
- el.children.forEach(function (ee, i) {
1169
- if (!el2) {
1170
- //style2 = window.getComputedStyle(ee);
1171
- if (i == el.children.length - 1 && ee.tagName == 'CENTER' || !ee.classList.contains('v-scrollable') && !ee.classList.contains('v-resize')) {
1172
- h -= ee.offsetHeight + 2;
1173
- } else {
1174
- el2 = ee;
1175
- }
1167
+ [].forEach.call(el.children, function (ee, i) {
1168
+ if (!el2) {
1169
+ //style2 = window.getComputedStyle(ee);
1170
+ if (i == el.children.length - 1 && ee.tagName == "CENTER" || !ee.classList.contains("v-scrollable") && !ee.classList.contains("v-resize")) {
1171
+ h -= ee.offsetHeight + 2;
1172
+ } else {
1173
+ el2 = ee;
1176
1174
  }
1177
- });
1178
- } else {
1179
- el2 = el.children[0];
1180
- }
1181
-
1175
+ }
1176
+ });
1182
1177
  el = el2; // console.log(el);
1183
1178
  //Se espera el sea una tabla
1184
1179
  } else {
1185
1180
  el = el.children[0];
1186
- el.style.height = h + 'px';
1181
+ el.style.height = h + "px";
1187
1182
  }
1188
1183
 
1189
1184
  h = h - 20;
1190
- el.style.overflowY = 'auto';
1191
- el.style.height = h + 'px';
1185
+ el.style.overflowY = "auto";
1186
+ el.style.height = h + "px";
1192
1187
  var event = new Event("parentResize", {
1193
1188
  bubbles: true
1194
1189
  });
@@ -1199,8 +1194,8 @@ var script$j = {
1199
1194
  },
1200
1195
  mounted: function mounted() {
1201
1196
  var me = this,
1202
- f = me.$el.querySelector('form');
1203
- f.addEventListener('submit', function (e) {
1197
+ f = me.$el.querySelector("form");
1198
+ f.addEventListener("submit", function (e) {
1204
1199
  e.preventDefault();
1205
1200
  var p = me.$parent;
1206
1201
  if (p.refresh) p.refresh();
@@ -1215,7 +1210,7 @@ var script$j = {
1215
1210
  var _this = this;
1216
1211
 
1217
1212
  var me = this;
1218
- var t = me.$el.querySelectorAll('[type=number]:not(._)');
1213
+ var t = me.$el.querySelectorAll("[type=number]:not(._)");
1219
1214
  var i = 0;
1220
1215
 
1221
1216
  for (; i < t.length; i++) {
@@ -1234,7 +1229,7 @@ var script$j = {
1234
1229
  v = n(m.min);
1235
1230
  }
1236
1231
 
1237
- var de = _this.getAttribute('decimal');
1232
+ var de = _this.getAttribute("decimal");
1238
1233
 
1239
1234
  if (de !== null) {
1240
1235
  v = v.toFixed(1 * de);
@@ -1249,21 +1244,21 @@ var script$j = {
1249
1244
  if (t[i].classList) t[i].classList.add("_");else t[i].className = "_";
1250
1245
  }
1251
1246
 
1252
- var t = me.$el.querySelectorAll('.numeric:not(._)');
1247
+ var t = me.$el.querySelectorAll(".numeric:not(._)");
1253
1248
 
1254
1249
  for (i = 0; i < t.length; i++) {
1255
1250
  t[i].addEventListener("keyup", function (e) {
1256
1251
  //e => {
1257
1252
  if (e.keyCode == 86) {
1258
1253
  if (isNaN(_this.value)) {
1259
- _this.value = '';
1254
+ _this.value = "";
1260
1255
  }
1261
1256
  }
1262
1257
  });
1263
1258
  t[i].addEventListener("keydown", function (e) {
1264
1259
  //e => {
1265
1260
  // Allow: backspace, delete, tab, escape, enter and .
1266
- console.log('eeeeeee' + e.keyCode); //86 es pegar y 88 cortar se debe asegurar q al pegar sea un numero
1261
+ console.log("eeeeeee" + e.keyCode); //86 es pegar y 88 cortar se debe asegurar q al pegar sea un numero
1267
1262
 
1268
1263
  if ([46, 8, 9, 27, 13, 110, 88, 86].indexOf(e.keyCode) !== -1 || // Allow: Ctrl+A, Command+A
1269
1264
  e.keyCode === 65 && (e.ctrlKey === true || e.metaKey === true) || // Allow: home, end, left, right, down, up
@@ -1283,14 +1278,14 @@ var script$j = {
1283
1278
  var e = this;
1284
1279
  var previousElementSibling = e.previousElementSibling;
1285
1280
 
1286
- if (previousElementSibling && previousElementSibling.classList && previousElementSibling.classList.contains('v-error')) {
1281
+ if (previousElementSibling && previousElementSibling.classList && previousElementSibling.classList.contains("v-error")) {
1287
1282
  previousElementSibling.parentNode.removeChild(previousElementSibling);
1288
1283
  }
1289
1284
 
1290
- if (!(e.disabled || e.getAttribute('disabled')) && (e.required || e.tagName === 'DIV')) {
1291
- if (e.tagName != 'DIV' && !e.value
1285
+ if (!(e.disabled || e.getAttribute("disabled")) && (e.required || e.tagName === "DIV")) {
1286
+ if (e.tagName != "DIV" && !e.value ||
1292
1287
  /*||e.value == 0*/
1293
- || e.tagName === 'DIV' && !e.attributes.value) {
1288
+ e.tagName === "DIV" && !e.attributes.value) {
1294
1289
  previousElementSibling = e.previousElementSibling;
1295
1290
 
1296
1291
  while (previousElementSibling && previousElementSibling.nodeType != 1) {
@@ -1314,7 +1309,7 @@ var script$j = {
1314
1309
  };
1315
1310
 
1316
1311
  me.$el.querySelectorAll("select,input[type=date]:not(.__),input[type=text]:not(.__),textarea:not(.__)").forEach(function (e) {
1317
- e.addEventListener('focusout', f);
1312
+ e.addEventListener("focusout", f);
1318
1313
  if (e.classList) e.classList.add("__");else e.className = "__";
1319
1314
  }); //resize();
1320
1315
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "isobit-ui",
3
- "version": "0.2.18",
3
+ "version": "0.2.19",
4
4
  "type": "module",
5
5
  "description": "Vue component to play videos",
6
6
  "keywords": [