isobit-ui 0.2.18 → 0.2.20

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 +29 -37
  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.19
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,37 @@ 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';
1163
- console.log("============");
1164
- console.log(el.children);
1162
+ el.style.height = h + "px";
1165
1163
  var el2; //,style2;
1166
1164
 
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
- }
1176
- }
1177
- });
1178
- } else {
1179
- el2 = el.children[0];
1180
- }
1165
+ [].forEach.call(el.children, function (ee, i) {
1166
+ console.log(ee); //style2 = window.getComputedStyle(ee);
1181
1167
 
1168
+ if (i == el.children.length - 1 && ee.tagName == "CENTER" || !ee.classList.contains("v-scrollable") && !ee.classList.contains("v-resize")) {
1169
+ h -= ee.offsetHeight + 2;
1170
+ } else {
1171
+ if (!el2) el2 = ee;
1172
+ }
1173
+ });
1182
1174
  el = el2; // console.log(el);
1183
1175
  //Se espera el sea una tabla
1184
1176
  } else {
1185
1177
  el = el.children[0];
1186
- el.style.height = h + 'px';
1178
+ el.style.height = h + "px";
1187
1179
  }
1188
1180
 
1189
1181
  h = h - 20;
1190
- el.style.overflowY = 'auto';
1191
- el.style.height = h + 'px';
1182
+ el.style.overflowY = "auto";
1183
+ el.style.height = h + "px";
1192
1184
  var event = new Event("parentResize", {
1193
1185
  bubbles: true
1194
1186
  });
@@ -1199,8 +1191,8 @@ var script$j = {
1199
1191
  },
1200
1192
  mounted: function mounted() {
1201
1193
  var me = this,
1202
- f = me.$el.querySelector('form');
1203
- f.addEventListener('submit', function (e) {
1194
+ f = me.$el.querySelector("form");
1195
+ f.addEventListener("submit", function (e) {
1204
1196
  e.preventDefault();
1205
1197
  var p = me.$parent;
1206
1198
  if (p.refresh) p.refresh();
@@ -1215,7 +1207,7 @@ var script$j = {
1215
1207
  var _this = this;
1216
1208
 
1217
1209
  var me = this;
1218
- var t = me.$el.querySelectorAll('[type=number]:not(._)');
1210
+ var t = me.$el.querySelectorAll("[type=number]:not(._)");
1219
1211
  var i = 0;
1220
1212
 
1221
1213
  for (; i < t.length; i++) {
@@ -1234,7 +1226,7 @@ var script$j = {
1234
1226
  v = n(m.min);
1235
1227
  }
1236
1228
 
1237
- var de = _this.getAttribute('decimal');
1229
+ var de = _this.getAttribute("decimal");
1238
1230
 
1239
1231
  if (de !== null) {
1240
1232
  v = v.toFixed(1 * de);
@@ -1249,21 +1241,21 @@ var script$j = {
1249
1241
  if (t[i].classList) t[i].classList.add("_");else t[i].className = "_";
1250
1242
  }
1251
1243
 
1252
- var t = me.$el.querySelectorAll('.numeric:not(._)');
1244
+ var t = me.$el.querySelectorAll(".numeric:not(._)");
1253
1245
 
1254
1246
  for (i = 0; i < t.length; i++) {
1255
1247
  t[i].addEventListener("keyup", function (e) {
1256
1248
  //e => {
1257
1249
  if (e.keyCode == 86) {
1258
1250
  if (isNaN(_this.value)) {
1259
- _this.value = '';
1251
+ _this.value = "";
1260
1252
  }
1261
1253
  }
1262
1254
  });
1263
1255
  t[i].addEventListener("keydown", function (e) {
1264
1256
  //e => {
1265
1257
  // 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
1258
+ console.log("eeeeeee" + e.keyCode); //86 es pegar y 88 cortar se debe asegurar q al pegar sea un numero
1267
1259
 
1268
1260
  if ([46, 8, 9, 27, 13, 110, 88, 86].indexOf(e.keyCode) !== -1 || // Allow: Ctrl+A, Command+A
1269
1261
  e.keyCode === 65 && (e.ctrlKey === true || e.metaKey === true) || // Allow: home, end, left, right, down, up
@@ -1283,14 +1275,14 @@ var script$j = {
1283
1275
  var e = this;
1284
1276
  var previousElementSibling = e.previousElementSibling;
1285
1277
 
1286
- if (previousElementSibling && previousElementSibling.classList && previousElementSibling.classList.contains('v-error')) {
1278
+ if (previousElementSibling && previousElementSibling.classList && previousElementSibling.classList.contains("v-error")) {
1287
1279
  previousElementSibling.parentNode.removeChild(previousElementSibling);
1288
1280
  }
1289
1281
 
1290
- if (!(e.disabled || e.getAttribute('disabled')) && (e.required || e.tagName === 'DIV')) {
1291
- if (e.tagName != 'DIV' && !e.value
1282
+ if (!(e.disabled || e.getAttribute("disabled")) && (e.required || e.tagName === "DIV")) {
1283
+ if (e.tagName != "DIV" && !e.value ||
1292
1284
  /*||e.value == 0*/
1293
- || e.tagName === 'DIV' && !e.attributes.value) {
1285
+ e.tagName === "DIV" && !e.attributes.value) {
1294
1286
  previousElementSibling = e.previousElementSibling;
1295
1287
 
1296
1288
  while (previousElementSibling && previousElementSibling.nodeType != 1) {
@@ -1314,7 +1306,7 @@ var script$j = {
1314
1306
  };
1315
1307
 
1316
1308
  me.$el.querySelectorAll("select,input[type=date]:not(.__),input[type=text]:not(.__),textarea:not(.__)").forEach(function (e) {
1317
- e.addEventListener('focusout', f);
1309
+ e.addEventListener("focusout", f);
1318
1310
  if (e.classList) e.classList.add("__");else e.className = "__";
1319
1311
  }); //resize();
1320
1312
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "isobit-ui",
3
- "version": "0.2.18",
3
+ "version": "0.2.20",
4
4
  "type": "module",
5
5
  "description": "Vue component to play videos",
6
6
  "keywords": [