isobit-ui 0.0.190 → 0.0.193

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 +56 -13
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * isobit-ui v0.0.190
2
+ * isobit-ui v0.0.193
3
3
  * (c) Erik Alarcon Pinedo
4
4
  * Released under the MIT License.
5
5
  */
@@ -5901,17 +5901,17 @@ var defs = {
5901
5901
  if (required && !checked) {
5902
5902
  me.showerror(e);
5903
5903
  /*previousSibling = e.previousSibling;
5904
- while(previousSibling&&previousSibling.nodeType != 1) {
5905
- previousSibling = previousSibling.previousSibling;
5906
- }
5907
- if(!previousSibling){
5908
- previousSibling=e.parentElement.previousSibling;
5909
- while(previousSibling&&previousSibling.nodeType != 1) {
5910
- previousSibling = previousSibling.previousSibling;
5911
- }
5912
- }
5913
- var error = document.createElement("div");
5914
- error.innerHTML = "Este campo es requerido!";*/
5904
+ while(previousSibling&&previousSibling.nodeType != 1) {
5905
+ previousSibling = previousSibling.previousSibling;
5906
+ }
5907
+ if(!previousSibling){
5908
+ previousSibling=e.parentElement.previousSibling;
5909
+ while(previousSibling&&previousSibling.nodeType != 1) {
5910
+ previousSibling = previousSibling.previousSibling;
5911
+ }
5912
+ }
5913
+ var error = document.createElement("div");
5914
+ error.innerHTML = "Este campo es requerido!";*/
5915
5915
 
5916
5916
  ok = false; //error.classList.add("v-error");
5917
5917
  //e.parentNode.insertBefore(error, e);
@@ -5951,13 +5951,56 @@ var defs = {
5951
5951
  }
5952
5952
  };
5953
5953
 
5954
+ function isObject(item) {
5955
+ return item && _typeof(item) === 'object' && !Array.isArray(item);
5956
+ }
5957
+
5958
+ Vue.mergeDeep = function () {
5959
+ var target = arguments[0];
5960
+ var sources = [];
5961
+
5962
+ for (var i = 1; i < arguments.length; i++) {
5963
+ sources.push(arguments[i]);
5964
+ } //Vue.mergeDeep = function(target, ...sources) {
5965
+
5966
+
5967
+ if (!sources.length) return target; //Se obtiene el primer elemento de source
5968
+
5969
+ var source = sources.shift(),
5970
+ nv; //const source = sources.shift();
5971
+
5972
+ if (isObject(target) && isObject(source)) {
5973
+ for (var key in source) {
5974
+ //for (const key in source) {
5975
+ if (isObject(source[key])) {
5976
+ console.log(key);
5977
+
5978
+ if (!target[key]) {
5979
+ nv = {};
5980
+ nv[key] = {};
5981
+ Object.assign(target, nv);
5982
+ }
5983
+
5984
+ Vue.mergeDeep(target[key], source[key]);
5985
+ } else {
5986
+ nv = {};
5987
+ nv[key] = source[key];
5988
+ Object.assign(target, nv); //Object.assign(target, { [key]: source[key] });
5989
+ }
5990
+ }
5991
+ }
5992
+
5993
+ var args = [];
5994
+ args.push(target);
5995
+ return Vue.mergeDeep.apply(null, args); //return mergeDeep(target, ...sources);
5996
+ };
5997
+
5954
5998
  window.ui = _.ui = function (cfg) {
5955
5999
  if (!cfg) cfg = {
5956
6000
  data: {
5957
6001
  o: {}
5958
6002
  }
5959
6003
  };
5960
- if (!ex) ex = {};
5961
6004
 
5962
6005
  if (!window.isMobile) {
5963
6006
  var el = cfg.el;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "isobit-ui",
3
- "version": "0.0.190",
3
+ "version": "0.0.193",
4
4
  "description": "Vue component to play videos",
5
5
  "keywords": [
6
6
  "ui",