xrk-components 2.0.0-beta.52 → 2.0.0-beta.53

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/lib/index.esm.js CHANGED
@@ -72329,16 +72329,16 @@ var script$r = /*#__PURE__*/ defineComponent(__assign(__assign({}, __default__$p
72329
72329
  ? (_a = props.modelValue) === null || _a === void 0 ? void 0 : _a.value
72330
72330
  : props.modelValue;
72331
72331
  });
72332
- var divRef = ref(null);
72332
+ var divRef = ref();
72333
72333
  var root = document.body;
72334
- var ctx = getCurrentInstance();
72335
72334
  var textIsOverFlow = ref(false);
72336
72335
  var mouseFocus = ref(false);
72337
- var checkTextIsOverInput = function (ctx, innerHTML) {
72336
+ var checkTextIsOverInput = function (innerHTML) {
72337
+ var _a, _b;
72338
72338
  if (!props.useToolTip)
72339
72339
  return false;
72340
72340
  var isTextarea = props.type === 'textarea';
72341
- var inputStyle = window.getComputedStyle(ctx === null || ctx === void 0 ? void 0 : ctx.ctx.$el.querySelector(isTextarea ? '.xrk-textarea__inner' : '.xrk-input__inner'));
72341
+ var inputStyle = window.getComputedStyle((_a = divRef.value) === null || _a === void 0 ? void 0 : _a.querySelector(isTextarea ? '.xrk-textarea__inner' : '.xrk-input__inner'));
72342
72342
  var div = document.createElement('div');
72343
72343
  div.style.display = 'inline-block';
72344
72344
  [
@@ -72357,13 +72357,13 @@ var script$r = /*#__PURE__*/ defineComponent(__assign(__assign({}, __default__$p
72357
72357
  var res = isTextarea
72358
72358
  ? div.offsetHeight > (parseInt(inputStyle.height) || 0)
72359
72359
  : div.offsetWidth >
72360
- (parseInt(window.getComputedStyle(ctx === null || ctx === void 0 ? void 0 : ctx.ctx.$el.querySelector('.xrk-input__wrapper')).width) || 0);
72360
+ (parseInt(window.getComputedStyle((_b = divRef.value) === null || _b === void 0 ? void 0 : _b.querySelector('.xrk-input__wrapper')).width) || 0);
72361
72361
  document.body.removeChild(div);
72362
72362
  return res;
72363
72363
  };
72364
72364
  var computedTextIsOverFlow = function (value) {
72365
72365
  try {
72366
- textIsOverFlow.value = checkTextIsOverInput(ctx, value);
72366
+ textIsOverFlow.value = checkTextIsOverInput(value);
72367
72367
  }
72368
72368
  catch (error) { }
72369
72369
  };
package/lib/index.umd.js CHANGED
@@ -72332,16 +72332,16 @@ usage: app.provide(ZINDEX_INJECTION_KEY, { current: 0 })`);
72332
72332
  ? (_a = props.modelValue) === null || _a === void 0 ? void 0 : _a.value
72333
72333
  : props.modelValue;
72334
72334
  });
72335
- var divRef = vue.ref(null);
72335
+ var divRef = vue.ref();
72336
72336
  var root = document.body;
72337
- var ctx = vue.getCurrentInstance();
72338
72337
  var textIsOverFlow = vue.ref(false);
72339
72338
  var mouseFocus = vue.ref(false);
72340
- var checkTextIsOverInput = function (ctx, innerHTML) {
72339
+ var checkTextIsOverInput = function (innerHTML) {
72340
+ var _a, _b;
72341
72341
  if (!props.useToolTip)
72342
72342
  return false;
72343
72343
  var isTextarea = props.type === 'textarea';
72344
- var inputStyle = window.getComputedStyle(ctx === null || ctx === void 0 ? void 0 : ctx.ctx.$el.querySelector(isTextarea ? '.xrk-textarea__inner' : '.xrk-input__inner'));
72344
+ var inputStyle = window.getComputedStyle((_a = divRef.value) === null || _a === void 0 ? void 0 : _a.querySelector(isTextarea ? '.xrk-textarea__inner' : '.xrk-input__inner'));
72345
72345
  var div = document.createElement('div');
72346
72346
  div.style.display = 'inline-block';
72347
72347
  [
@@ -72360,13 +72360,13 @@ usage: app.provide(ZINDEX_INJECTION_KEY, { current: 0 })`);
72360
72360
  var res = isTextarea
72361
72361
  ? div.offsetHeight > (parseInt(inputStyle.height) || 0)
72362
72362
  : div.offsetWidth >
72363
- (parseInt(window.getComputedStyle(ctx === null || ctx === void 0 ? void 0 : ctx.ctx.$el.querySelector('.xrk-input__wrapper')).width) || 0);
72363
+ (parseInt(window.getComputedStyle((_b = divRef.value) === null || _b === void 0 ? void 0 : _b.querySelector('.xrk-input__wrapper')).width) || 0);
72364
72364
  document.body.removeChild(div);
72365
72365
  return res;
72366
72366
  };
72367
72367
  var computedTextIsOverFlow = function (value) {
72368
72368
  try {
72369
- textIsOverFlow.value = checkTextIsOverInput(ctx, value);
72369
+ textIsOverFlow.value = checkTextIsOverInput(value);
72370
72370
  }
72371
72371
  catch (error) { }
72372
72372
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "xrk-components",
3
- "version": "2.0.0-beta.52",
3
+ "version": "2.0.0-beta.53",
4
4
  "description": "",
5
5
  "main": "lib/index.esm.js",
6
6
  "typings": "lib/packages/index.d.ts",