@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.
- package/dist/@pocketprep/ui-kit.common.js +18 -11
- package/dist/@pocketprep/ui-kit.common.js.map +1 -1
- package/dist/@pocketprep/ui-kit.umd.js +18 -11
- package/dist/@pocketprep/ui-kit.umd.js.map +1 -1
- package/dist/@pocketprep/ui-kit.umd.min.js +2 -2
- package/dist/@pocketprep/ui-kit.umd.min.js.map +1 -1
- package/package.json +1 -1
|
@@ -6141,7 +6141,7 @@ var component = (0,componentNormalizer/* default */.Z)(
|
|
|
6141
6141
|
|
|
6142
6142
|
/***/ }),
|
|
6143
6143
|
|
|
6144
|
-
/***/
|
|
6144
|
+
/***/ 87059:
|
|
6145
6145
|
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
6146
6146
|
|
|
6147
6147
|
"use strict";
|
|
@@ -6154,8 +6154,8 @@ __webpack_require__.d(__webpack_exports__, {
|
|
|
6154
6154
|
"default": () => (/* binding */ OverflowTooltip)
|
|
6155
6155
|
});
|
|
6156
6156
|
|
|
6157
|
-
;// 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=
|
|
6158
|
-
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:"
|
|
6157
|
+
;// 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&
|
|
6158
|
+
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)}
|
|
6159
6159
|
var staticRenderFns = []
|
|
6160
6160
|
|
|
6161
6161
|
|
|
@@ -15539,7 +15539,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
15539
15539
|
|
|
15540
15540
|
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()));
|
|
15541
15541
|
// Module
|
|
15542
|
-
___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)}", ""]);
|
|
15542
|
+
___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)}", ""]);
|
|
15543
15543
|
// Exports
|
|
15544
15544
|
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (___CSS_LOADER_EXPORT___);
|
|
15545
15545
|
|
|
@@ -24695,7 +24695,7 @@ var directives_1 = __webpack_require__(92801);
|
|
|
24695
24695
|
|
|
24696
24696
|
var utils_1 = __webpack_require__(92326);
|
|
24697
24697
|
|
|
24698
|
-
var OverflowTooltip_vue_1 = tslib_1.__importDefault(__webpack_require__(
|
|
24698
|
+
var OverflowTooltip_vue_1 = tslib_1.__importDefault(__webpack_require__(87059));
|
|
24699
24699
|
|
|
24700
24700
|
var Question = /*#__PURE__*/function (_vue_property_decorat) {
|
|
24701
24701
|
_inherits(Question, _vue_property_decorat);
|
|
@@ -26385,7 +26385,7 @@ var vue_property_decorator_1 = __webpack_require__(70622);
|
|
|
26385
26385
|
|
|
26386
26386
|
var Icon_vue_1 = tslib_1.__importDefault(__webpack_require__(20738));
|
|
26387
26387
|
|
|
26388
|
-
var OverflowTooltip_vue_1 = tslib_1.__importDefault(__webpack_require__(
|
|
26388
|
+
var OverflowTooltip_vue_1 = tslib_1.__importDefault(__webpack_require__(87059));
|
|
26389
26389
|
|
|
26390
26390
|
var directives_1 = __webpack_require__(92801);
|
|
26391
26391
|
|
|
@@ -26843,21 +26843,28 @@ var OverflowTooltip = /*#__PURE__*/function (_vue_property_decorat) {
|
|
|
26843
26843
|
_this = _super.apply(this, arguments);
|
|
26844
26844
|
_this.showTooltip = false;
|
|
26845
26845
|
_this.textOverflows = false;
|
|
26846
|
+
_this.measurementComplete = false;
|
|
26847
|
+
_this.id = null;
|
|
26846
26848
|
return _this;
|
|
26847
26849
|
}
|
|
26848
26850
|
|
|
26849
26851
|
_createClass(OverflowTooltip, [{
|
|
26852
|
+
key: "created",
|
|
26853
|
+
value: function created() {
|
|
26854
|
+
this.id = this._uid;
|
|
26855
|
+
}
|
|
26856
|
+
}, {
|
|
26850
26857
|
key: "mounted",
|
|
26851
26858
|
value: function mounted() {
|
|
26852
26859
|
var _this2 = this;
|
|
26853
26860
|
|
|
26854
|
-
var content = this.$refs[
|
|
26861
|
+
var content = this.$refs["content_".concat(this.id)];
|
|
26862
|
+
var contentFullWidth = this.$refs["content_fullwidth_".concat(this.id)];
|
|
26855
26863
|
this.$nextTick(function () {
|
|
26856
26864
|
var truncatedWidth = content.getBoundingClientRect().width;
|
|
26857
|
-
|
|
26858
|
-
var fullWidth = content.getBoundingClientRect().width;
|
|
26859
|
-
content.style.display = 'block';
|
|
26865
|
+
var fullWidth = contentFullWidth.getBoundingClientRect().width;
|
|
26860
26866
|
_this2.textOverflows = truncatedWidth < fullWidth;
|
|
26867
|
+
_this2.measurementComplete = true;
|
|
26861
26868
|
});
|
|
26862
26869
|
}
|
|
26863
26870
|
}]);
|
|
@@ -27363,7 +27370,7 @@ var PhonePerson_vue_1 = tslib_1.__importDefault(__webpack_require__(52132));
|
|
|
27363
27370
|
|
|
27364
27371
|
var Tooltip_vue_1 = tslib_1.__importDefault(__webpack_require__(93356));
|
|
27365
27372
|
|
|
27366
|
-
var OverflowTooltip_vue_1 = tslib_1.__importDefault(__webpack_require__(
|
|
27373
|
+
var OverflowTooltip_vue_1 = tslib_1.__importDefault(__webpack_require__(87059));
|
|
27367
27374
|
|
|
27368
27375
|
var Modal_vue_1 = tslib_1.__importDefault(__webpack_require__(99665));
|
|
27369
27376
|
|