isobit-ui 0.0.174 → 0.0.178

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 +14 -6
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * isobit-ui v0.0.174
2
+ * isobit-ui v0.0.178
3
3
  * (c) Erik Alarcon Pinedo
4
4
  * Released under the MIT License.
5
5
  */
@@ -4047,7 +4047,9 @@ var __vue_component__$2 = /*#__PURE__*/__vue_normalize____default['default']({
4047
4047
  var script$1 = {
4048
4048
  props: {
4049
4049
  icon: String,
4050
- visible: 1
4050
+ visible: {
4051
+ "default": 1
4052
+ }
4051
4053
  },
4052
4054
  computed: {
4053
4055
  slotPassed: function slotPassed() {
@@ -4057,11 +4059,17 @@ var script$1 = {
4057
4059
  data: function data() {
4058
4060
  return {
4059
4061
  ready: null,
4062
+ visible0: null,
4060
4063
  slotUsed: false
4061
4064
  };
4062
4065
  },
4063
4066
  updated: function updated() {
4064
- this.slotUsed = this.$el.querySelectorAll(":scope > :not(.v-map-control-button)").length; //console.log(this.$slots);
4067
+ var l = this.$el.querySelectorAll(":scope > :not(.v-map-control-button)");
4068
+ if (l == 0) l = this.$el.textContent.trim().length;
4069
+ this.slotUsed = l; //console.log(this.$slots);
4070
+ },
4071
+ created: function created() {
4072
+ this.visible0 = !!this.visible;
4065
4073
  },
4066
4074
  mounted: function mounted() {
4067
4075
  var me = this;
@@ -4094,7 +4102,7 @@ var script$1 = {
4094
4102
  if (e.x) this.$emit('click', e);
4095
4103
  },
4096
4104
  toggle: function toggle() {
4097
- this.visible = !!!this.visible;
4105
+ this.visible0 = !!!this.visible0;
4098
4106
  }
4099
4107
  }
4100
4108
  };
@@ -4114,8 +4122,8 @@ var __vue_render__$1 = function __vue_render__() {
4114
4122
  directives: [{
4115
4123
  name: "show",
4116
4124
  rawName: "v-show",
4117
- value: _vm.ready && _vm.visible,
4118
- expression: "ready&&visible"
4125
+ value: _vm.ready && _vm.visible0,
4126
+ expression: "ready&&visible0"
4119
4127
  }],
4120
4128
  staticClass: "ol-unselectable ol-control"
4121
4129
  }, [_vm._t("default"), _vm._v(" "), !_vm.slotUsed ? _c('button', {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "isobit-ui",
3
- "version": "0.0.174",
3
+ "version": "0.0.178",
4
4
  "description": "Vue component to play videos",
5
5
  "keywords": [
6
6
  "ui",