isobit-ui 0.0.288 → 0.0.289

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 +49 -1
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * isobit-ui v0.0.288
2
+ * isobit-ui v0.0.289
3
3
  * (c) Erik Alarcon Pinedo
4
4
  * Released under the MIT License.
5
5
  */
@@ -4582,6 +4582,37 @@ Vue.n = function (v) {
4582
4582
  return v;
4583
4583
  };
4584
4584
 
4585
+ if (typeof JSON.clone !== "function") {
4586
+ JSON.clone = function (obj) {
4587
+ return JSON.parse(JSON.stringify(obj));
4588
+ };
4589
+ }
4590
+
4591
+ if (typeof Object.assign != 'function') {
4592
+ Object.assign = function (target) {
4593
+
4594
+ if (target == null) {
4595
+ throw new TypeError('Cannot convert undefined or null to object');
4596
+ }
4597
+
4598
+ var to = Object(target);
4599
+
4600
+ for (var index = 1; index < arguments.length; index++) {
4601
+ var nextSource = arguments[index];
4602
+
4603
+ if (nextSource != null) {
4604
+ for (var nextKey in nextSource) {
4605
+ if (Object.prototype.hasOwnProperty.call(nextSource, nextKey)) {
4606
+ to[nextKey] = nextSource[nextKey];
4607
+ }
4608
+ }
4609
+ }
4610
+ }
4611
+
4612
+ return to;
4613
+ };
4614
+ }
4615
+
4585
4616
  var resize = function resize() {
4586
4617
  //dialog.style.left = (window.innerWidth - dialog.offsetWidth) / 2 + 'px';
4587
4618
  var h = window.innerHeight;
@@ -4918,6 +4949,23 @@ _ = Object.assign(_, {
4918
4949
 
4919
4950
  return i;
4920
4951
  },
4952
+ print: function print(o) {
4953
+ var e = document.createElement('iframe');
4954
+ document.body.appendChild(e);
4955
+ var d = e.contentWindow.document;
4956
+ e.style.display = 'none';
4957
+ d.open();
4958
+ d.write('<html><head><title>TT' + o.title + '</title>');
4959
+ d.write('<link rel="stylesheet" type="text/css" href="/cdn/isobit.css?v=0004">' + '<style>table{background-color:red}</style>');
4960
+ d.write('</head><body style="padding:20px;background-color:white !important">');
4961
+ d.write('<style>body, body > * {padding:20px;background-color:white !important }</style>');
4962
+ d.write('<h1>' + o.title + '</h1>');
4963
+ d.write(o.body);
4964
+ d.write('</body></html>');
4965
+ d.close();
4966
+ e.focus();
4967
+ e.contentWindow.print();
4968
+ },
4921
4969
  mask: function mask(ms, cfg) {
4922
4970
  if (!document.body) return;
4923
4971
  var center = document.createElement("div");
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "isobit-ui",
3
- "version": "0.0.288",
3
+ "version": "0.0.289",
4
4
  "description": "Vue component to play videos",
5
5
  "keywords": [
6
6
  "ui",