@pocketprep/ui-kit 2.2.0 → 2.2.1

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.
@@ -6131,7 +6131,7 @@ var component = (0,componentNormalizer/* default */.Z)(
6131
6131
 
6132
6132
  /***/ }),
6133
6133
 
6134
- /***/ 16583:
6134
+ /***/ 60928:
6135
6135
  /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
6136
6136
 
6137
6137
  "use strict";
@@ -6144,8 +6144,8 @@ __webpack_require__.d(__webpack_exports__, {
6144
6144
  "default": () => (/* binding */ OverflowTooltip)
6145
6145
  });
6146
6146
 
6147
- ;// CONCATENATED MODULE: ./node_modules/@vue/vue-loader-v15/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/components/Tooltips/OverflowTooltip.vue?vue&type=template&id=266dd77e&
6148
- var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:"uikit-overflow-tooltip"},[(_vm.textOverflows && _vm.showTooltip)?_c('Tooltip',{staticClass:"uikit-overflow-tooltip__tooltip",attrs:{"theme":"rightalign"}},[_vm._t("default")],2):_vm._e(),_c('div',{ref:"content",staticClass:"uikit-overflow-tooltip__content",on:{"mouseenter":function($event){_vm.showTooltip = true},"mouseleave":function($event){_vm.showTooltip = false}}},[_vm._t("default")],2)],1)}
6147
+ ;// CONCATENATED MODULE: ./node_modules/@vue/vue-loader-v15/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/components/Tooltips/OverflowTooltip.vue?vue&type=template&id=2c2c0613&
6148
+ var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:"uikit-overflow-tooltip"},[(_vm.textOverflows && _vm.showTooltip)?_c('Tooltip',{staticClass:"uikit-overflow-tooltip__tooltip",attrs:{"theme":"rightalign"}},[_vm._t("default")],2):_vm._e(),(_vm.id)?[_c('div',{ref:("content_" + _vm.id),staticClass:"uikit-overflow-tooltip__content",on:{"mouseenter":function($event){_vm.showTooltip = true},"mouseleave":function($event){_vm.showTooltip = false}}},[_vm._t("default")],2),(!_vm.measurementComplete)?_c('div',{ref:("content_fullwidth_" + _vm.id),staticClass:"uikit-overflow-tooltip__content uikit-overflow-tooltip__content--full-width"},[_vm._t("default")],2):_vm._e()]:_vm._e()],2)}
6149
6149
  var staticRenderFns = []
6150
6150
 
6151
6151
 
@@ -15529,7 +15529,7 @@ __webpack_require__.r(__webpack_exports__);
15529
15529
 
15530
15530
  var ___CSS_LOADER_EXPORT___ = _node_modules_css_loader_dist_runtime_api_js__WEBPACK_IMPORTED_MODULE_1___default()((_node_modules_css_loader_dist_runtime_noSourceMaps_js__WEBPACK_IMPORTED_MODULE_0___default()));
15531
15531
  // Module
15532
- ___CSS_LOADER_EXPORT___.push([module.id, ".uikit-overflow-tooltip{position:relative}.uikit-overflow-tooltip__content{max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.uikit-overflow-tooltip__tooltip{position:absolute;left:12px;top:calc(-100% - 14px)}", ""]);
15532
+ ___CSS_LOADER_EXPORT___.push([module.id, ".uikit-overflow-tooltip{position:relative}.uikit-overflow-tooltip__content{max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.uikit-overflow-tooltip__content--full-width{display:inline}.uikit-overflow-tooltip__tooltip{position:absolute;left:12px;top:calc(-100% - 14px)}", ""]);
15533
15533
  // Exports
15534
15534
  /* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (___CSS_LOADER_EXPORT___);
15535
15535
 
@@ -24685,7 +24685,7 @@ var directives_1 = __webpack_require__(19748);
24685
24685
 
24686
24686
  var utils_1 = __webpack_require__(10254);
24687
24687
 
24688
- var OverflowTooltip_vue_1 = tslib_1.__importDefault(__webpack_require__(16583));
24688
+ var OverflowTooltip_vue_1 = tslib_1.__importDefault(__webpack_require__(60928));
24689
24689
 
24690
24690
  var Question = /*#__PURE__*/function (_vue_property_decorat) {
24691
24691
  _inherits(Question, _vue_property_decorat);
@@ -26375,7 +26375,7 @@ var vue_property_decorator_1 = __webpack_require__(26489);
26375
26375
 
26376
26376
  var Icon_vue_1 = tslib_1.__importDefault(__webpack_require__(1497));
26377
26377
 
26378
- var OverflowTooltip_vue_1 = tslib_1.__importDefault(__webpack_require__(16583));
26378
+ var OverflowTooltip_vue_1 = tslib_1.__importDefault(__webpack_require__(60928));
26379
26379
 
26380
26380
  var directives_1 = __webpack_require__(19748);
26381
26381
 
@@ -26833,21 +26833,28 @@ var OverflowTooltip = /*#__PURE__*/function (_vue_property_decorat) {
26833
26833
  _this = _super.apply(this, arguments);
26834
26834
  _this.showTooltip = false;
26835
26835
  _this.textOverflows = false;
26836
+ _this.measurementComplete = false;
26837
+ _this.id = null;
26836
26838
  return _this;
26837
26839
  }
26838
26840
 
26839
26841
  _createClass(OverflowTooltip, [{
26842
+ key: "created",
26843
+ value: function created() {
26844
+ this.id = this._uid;
26845
+ }
26846
+ }, {
26840
26847
  key: "mounted",
26841
26848
  value: function mounted() {
26842
26849
  var _this2 = this;
26843
26850
 
26844
- var content = this.$refs['content'];
26851
+ var content = this.$refs["content_".concat(this.id)];
26852
+ var contentFullWidth = this.$refs["content_fullwidth_".concat(this.id)];
26845
26853
  this.$nextTick(function () {
26846
26854
  var truncatedWidth = content.getBoundingClientRect().width;
26847
- content.style.display = 'inline';
26848
- var fullWidth = content.getBoundingClientRect().width;
26849
- content.style.display = 'block';
26855
+ var fullWidth = contentFullWidth.getBoundingClientRect().width;
26850
26856
  _this2.textOverflows = truncatedWidth < fullWidth;
26857
+ _this2.measurementComplete = true;
26851
26858
  });
26852
26859
  }
26853
26860
  }]);
@@ -27353,7 +27360,7 @@ var PhonePerson_vue_1 = tslib_1.__importDefault(__webpack_require__(24441));
27353
27360
 
27354
27361
  var Tooltip_vue_1 = tslib_1.__importDefault(__webpack_require__(14492));
27355
27362
 
27356
- var OverflowTooltip_vue_1 = tslib_1.__importDefault(__webpack_require__(16583));
27363
+ var OverflowTooltip_vue_1 = tslib_1.__importDefault(__webpack_require__(60928));
27357
27364
 
27358
27365
  var Modal_vue_1 = tslib_1.__importDefault(__webpack_require__(69342));
27359
27366