isobit-ui 0.0.191 → 0.0.194

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 +45 -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.194
3
3
  * (c) Erik Alarcon Pinedo
4
4
  * Released under the MIT License.
5
5
  */
@@ -5951,6 +5951,50 @@ 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: {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "isobit-ui",
3
- "version": "0.0.191",
3
+ "version": "0.0.194",
4
4
  "description": "Vue component to play videos",
5
5
  "keywords": [
6
6
  "ui",