isobit-ui 0.0.189 → 0.0.192

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 +53 -14
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * isobit-ui v0.0.189
2
+ * isobit-ui v0.0.192
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,52 @@ var defs = {
5951
5951
  }
5952
5952
  };
5953
5953
 
5954
- _.ui = function (cfg) {
5954
+ Vue.mergeDeep = function () {
5955
+ var target = arguments[0];
5956
+ var sources = [];
5957
+
5958
+ for (var i = 1; i < arguments.length; i++) {
5959
+ sources.push(arguments[i]);
5960
+ } //Vue.mergeDeep = function(target, ...sources) {
5961
+
5962
+
5963
+ if (!sources.length) return target; //Se obtiene el primer elemento de source
5964
+
5965
+ var source = sources.shift(),
5966
+ nv; //const source = sources.shift();
5967
+
5968
+ if (isObject(target) && isObject(source)) {
5969
+ for (var key in source) {
5970
+ //for (const key in source) {
5971
+ if (isObject(source[key])) {
5972
+ console.log(key);
5973
+
5974
+ if (!target[key]) {
5975
+ nv = {};
5976
+ nv[key] = {};
5977
+ Object.assign(target, nv);
5978
+ }
5979
+
5980
+ Vue.mergeDeep(target[key], source[key]);
5981
+ } else {
5982
+ nv = {};
5983
+ nv[key] = source[key];
5984
+ Object.assign(target, nv); //Object.assign(target, { [key]: source[key] });
5985
+ }
5986
+ }
5987
+ }
5988
+
5989
+ var args = [];
5990
+ args.push(target);
5991
+ return Vue.mergeDeep.apply(null, args); //return mergeDeep(target, ...sources);
5992
+ };
5993
+
5994
+ window.ui = _.ui = function (cfg) {
5955
5995
  if (!cfg) cfg = {
5956
5996
  data: {
5957
5997
  o: {}
5958
5998
  }
5959
5999
  };
5960
- if (!ex) ex = {};
5961
6000
 
5962
6001
  if (!window.isMobile) {
5963
6002
  var el = cfg.el;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "isobit-ui",
3
- "version": "0.0.189",
3
+ "version": "0.0.192",
4
4
  "description": "Vue component to play videos",
5
5
  "keywords": [
6
6
  "ui",