@webitel/ui-sdk 2.0.5-5 → 2.0.5-8

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.
@@ -19557,8 +19557,8 @@ var wt_icon_btn_component = componentNormalizer_normalizeComponent(
19557
19557
  )
19558
19558
 
19559
19559
  /* harmony default export */ var wt_icon_btn = (wt_icon_btn_component.exports);
19560
- ;// 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/molecules/wt-input/wt-input.vue?vue&type=template&id=2f1a3dec&scoped=true&
19561
- var wt_inputvue_type_template_id_2f1a3dec_scoped_true_render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:"wt-input",class:{
19560
+ ;// 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/molecules/wt-input/wt-input.vue?vue&type=template&id=000024da&scoped=true&
19561
+ var wt_inputvue_type_template_id_000024da_scoped_true_render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:"wt-input",class:{
19562
19562
  'wt-input--outline': _vm.outline,
19563
19563
  'wt-input--disabled': _vm.disabled,
19564
19564
  'wt-input--invalid': _vm.invalid,
@@ -19568,7 +19568,7 @@ var wt_inputvue_type_template_id_2f1a3dec_scoped_true_render = function () {var
19568
19568
  isPasswordVisible: _vm.isPasswordVisible,
19569
19569
  switchVisibilityPassword: _vm.switchVisibilityPassword,
19570
19570
  }):_vm._e()],2)]),(_vm.isValidation)?_c('wt-input-info',{attrs:{"invalid":_vm.invalid}},[_vm._v(_vm._s(_vm.validationText)+" ")]):_vm._e()],1)}
19571
- var wt_inputvue_type_template_id_2f1a3dec_scoped_true_staticRenderFns = []
19571
+ var wt_inputvue_type_template_id_000024da_scoped_true_staticRenderFns = []
19572
19572
 
19573
19573
 
19574
19574
  // EXTERNAL MODULE: ./node_modules/core-js/modules/es.symbol.async-iterator.js
@@ -20185,7 +20185,6 @@ function _createForOfIteratorHelper(o, allowArrayLike) {
20185
20185
  }
20186
20186
  });
20187
20187
  ;// CONCATENATED MODULE: ./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib/index.js??clonedRuleSet-81[0].rules[0].use[1]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/components/molecules/wt-input/wt-input.vue?vue&type=script&lang=js&
20188
- /* provided dependency */ var wt_inputvue_type_script_lang_js_console = __webpack_require__(5108);
20189
20188
 
20190
20189
 
20191
20190
 
@@ -20408,22 +20407,28 @@ function _createForOfIteratorHelper(o, allowArrayLike) {
20408
20407
  var _this = this;
20409
20408
 
20410
20409
  return _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
20410
+ var afterWrapperWidth, inputEl, defaultInputPadding;
20411
20411
  return _regeneratorRuntime().wrap(function _callee$(_context) {
20412
20412
  while (1) {
20413
20413
  switch (_context.prev = _context.next) {
20414
20414
  case 0:
20415
- wt_inputvue_type_script_lang_js_console.info(1);
20415
+ // cant test this thing cause vue test utils doesnt render elements width :/
20416
+ afterWrapperWidth = _this.$refs['after-wrapper'].offsetWidth;
20417
+ inputEl = _this.$refs['wt-input'];
20418
+ defaultInputPadding = getComputedStyle(document.documentElement).getPropertyValue('--input-padding');
20416
20419
 
20417
- _this.setTimeout(function () {
20418
- // cant test this thing cause vue test utils doesnt render elements width :/
20419
- var afterWrapperWidth = _this.$refs['after-wrapper'].offsetWidth;
20420
- var inputEl = _this.$refs['wt-input'];
20421
- var defaultInputPadding = getComputedStyle(document.documentElement).getPropertyValue('--input-padding');
20422
- wt_inputvue_type_script_lang_js_console.info('ipnut:', defaultInputPadding, afterWrapperWidth, defaultInputPadding * 2 + afterWrapperWidth);
20423
- inputEl.style.paddingRight = "calc(".concat(defaultInputPadding, " * 2 + ").concat(afterWrapperWidth, "px)");
20424
- }, 100);
20420
+ if (!(afterWrapperWidth > inputEl.offsetWidth)) {
20421
+ _context.next = 5;
20422
+ break;
20423
+ }
20425
20424
 
20426
- case 2:
20425
+ return _context.abrupt("return");
20426
+
20427
+ case 5:
20428
+ // fixes https://my.webitel.com/browse/WTEL-2635
20429
+ inputEl.style.paddingRight = "calc(".concat(defaultInputPadding, " * 2 + ").concat(afterWrapperWidth, "px)");
20430
+
20431
+ case 6:
20427
20432
  case "end":
20428
20433
  return _context.stop();
20429
20434
  }
@@ -20438,10 +20443,10 @@ function _createForOfIteratorHelper(o, allowArrayLike) {
20438
20443
  });
20439
20444
  ;// CONCATENATED MODULE: ./src/components/molecules/wt-input/wt-input.vue?vue&type=script&lang=js&
20440
20445
  /* harmony default export */ var wt_input_wt_inputvue_type_script_lang_js_ = (wt_inputvue_type_script_lang_js_);
20441
- ;// CONCATENATED MODULE: ./node_modules/mini-css-extract-plugin/dist/loader.js??clonedRuleSet-63[0].rules[0].use[0]!./node_modules/css-loader/dist/cjs.js??clonedRuleSet-63[0].rules[0].use[1]!./node_modules/@vue/vue-loader-v15/lib/loaders/stylePostLoader.js!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-63[0].rules[0].use[2]!./node_modules/sass-loader/dist/cjs.js??clonedRuleSet-63[0].rules[0].use[3]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/components/molecules/wt-input/wt-input.vue?vue&type=style&index=0&id=2f1a3dec&lang=scss&scoped=true&
20446
+ ;// CONCATENATED MODULE: ./node_modules/mini-css-extract-plugin/dist/loader.js??clonedRuleSet-63[0].rules[0].use[0]!./node_modules/css-loader/dist/cjs.js??clonedRuleSet-63[0].rules[0].use[1]!./node_modules/@vue/vue-loader-v15/lib/loaders/stylePostLoader.js!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-63[0].rules[0].use[2]!./node_modules/sass-loader/dist/cjs.js??clonedRuleSet-63[0].rules[0].use[3]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/components/molecules/wt-input/wt-input.vue?vue&type=style&index=0&id=000024da&lang=scss&scoped=true&
20442
20447
  // extracted by mini-css-extract-plugin
20443
20448
 
20444
- ;// CONCATENATED MODULE: ./src/components/molecules/wt-input/wt-input.vue?vue&type=style&index=0&id=2f1a3dec&lang=scss&scoped=true&
20449
+ ;// CONCATENATED MODULE: ./src/components/molecules/wt-input/wt-input.vue?vue&type=style&index=0&id=000024da&lang=scss&scoped=true&
20445
20450
 
20446
20451
  ;// CONCATENATED MODULE: ./src/components/molecules/wt-input/wt-input.vue
20447
20452
 
@@ -20454,11 +20459,11 @@ function _createForOfIteratorHelper(o, allowArrayLike) {
20454
20459
 
20455
20460
  var wt_input_component = componentNormalizer_normalizeComponent(
20456
20461
  wt_input_wt_inputvue_type_script_lang_js_,
20457
- wt_inputvue_type_template_id_2f1a3dec_scoped_true_render,
20458
- wt_inputvue_type_template_id_2f1a3dec_scoped_true_staticRenderFns,
20462
+ wt_inputvue_type_template_id_000024da_scoped_true_render,
20463
+ wt_inputvue_type_template_id_000024da_scoped_true_staticRenderFns,
20459
20464
  false,
20460
20465
  null,
20461
- "2f1a3dec",
20466
+ "000024da",
20462
20467
  null
20463
20468
 
20464
20469
  )