isobit-ui 0.0.191 → 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 +41 -1
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * isobit-ui v0.0.191
2
+ * isobit-ui v0.0.192
3
3
  * (c) Erik Alarcon Pinedo
4
4
  * Released under the MIT License.
5
5
  */
@@ -5951,6 +5951,46 @@ var defs = {
5951
5951
  }
5952
5952
  };
5953
5953
 
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
+
5954
5994
  window.ui = _.ui = function (cfg) {
5955
5995
  if (!cfg) cfg = {
5956
5996
  data: {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "isobit-ui",
3
- "version": "0.0.191",
3
+ "version": "0.0.192",
4
4
  "description": "Vue component to play videos",
5
5
  "keywords": [
6
6
  "ui",