pui9-components 3.0.7 → 3.0.9

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.
@@ -86191,8 +86191,8 @@ var PuiMultiSelect_component = normalizeComponent(
86191
86191
  )
86192
86192
 
86193
86193
  /* harmony default export */ var PuiMultiSelect = (PuiMultiSelect_component.exports);
86194
- // CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"25baa24f-vue-loader-template"}!./node_modules/cache-loader/dist/cjs.js??ref--13-0!./node_modules/babel-loader/lib!./node_modules/vue-loader/lib/loaders/templateLoader.js??ref--6!./node_modules/cache-loader/dist/cjs.js??ref--1-0!./node_modules/vue-loader/lib??vue-loader-options!./src/components/PuiNumberField.vue?vue&type=template&id=7ec58030
86195
- var PuiNumberFieldvue_type_template_id_7ec58030_render = function render() {
86194
+ // CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"25baa24f-vue-loader-template"}!./node_modules/cache-loader/dist/cjs.js??ref--13-0!./node_modules/babel-loader/lib!./node_modules/vue-loader/lib/loaders/templateLoader.js??ref--6!./node_modules/cache-loader/dist/cjs.js??ref--1-0!./node_modules/vue-loader/lib??vue-loader-options!./src/components/PuiNumberField.vue?vue&type=template&id=117a22a0
86195
+ var PuiNumberFieldvue_type_template_id_117a22a0_render = function render() {
86196
86196
  var _vm = this,
86197
86197
  _c = _vm._self._c;
86198
86198
  return !_vm.isMobile ? _c('div', [_vm.toplabel ? _c('div', {
@@ -86458,9 +86458,9 @@ var PuiNumberFieldvue_type_template_id_7ec58030_render = function render() {
86458
86458
  }
86459
86459
  }, 'v-text-field', _vm.allProps, false))], 1)], 1)], 1);
86460
86460
  };
86461
- var PuiNumberFieldvue_type_template_id_7ec58030_staticRenderFns = [];
86461
+ var PuiNumberFieldvue_type_template_id_117a22a0_staticRenderFns = [];
86462
86462
 
86463
- // CONCATENATED MODULE: ./src/components/PuiNumberField.vue?vue&type=template&id=7ec58030
86463
+ // CONCATENATED MODULE: ./src/components/PuiNumberField.vue?vue&type=template&id=117a22a0
86464
86464
 
86465
86465
  // EXTERNAL MODULE: ./node_modules/core-js/modules/es.number.max-safe-integer.js
86466
86466
  var es_number_max_safe_integer = __webpack_require__("aff5");
@@ -86502,14 +86502,12 @@ var es_string_replace_all = __webpack_require__("5b81");
86502
86502
  removeLocaleGroupSeparator: function removeLocaleGroupSeparator(value, localeCode) {
86503
86503
  if (typeof value == 'string') {
86504
86504
  var separator = this.getSeparator(localeCode, 'group');
86505
- return value.replaceAll(separator, '');
86506
- } else {
86507
- return value;
86505
+ value = value.replaceAll(separator, '');
86508
86506
  }
86507
+ return value;
86509
86508
  },
86510
- // removes one decimal separator from string value
86509
+ // removes decimal separator from string value
86511
86510
  removeDecimalSeparator: function removeDecimalSeparator(value) {
86512
- //const separator = this.getSeparator(localeCode,'decimal');
86513
86511
  return value.toString().replace('.', '');
86514
86512
  },
86515
86513
  // replace decimal i18n separator with dot (js standard for isNaN)
@@ -86709,6 +86707,9 @@ var es_string_replace_all = __webpack_require__("5b81");
86709
86707
  internalError: function internalError() {
86710
86708
  this.valid = !this.internalError;
86711
86709
  },
86710
+ required: function required() {
86711
+ this.checkValidations(this.internalNumericModel);
86712
+ },
86712
86713
  min: function min() {
86713
86714
  this.checkValidations(this.internalNumericModel);
86714
86715
  },
@@ -86732,7 +86733,7 @@ var es_string_replace_all = __webpack_require__("5b81");
86732
86733
  },
86733
86734
  methods: {
86734
86735
  validate: function validate() {
86735
- this.checkValidations(this.internalStringModel);
86736
+ this.checkValidations(this.internalNumericModel);
86736
86737
  return this.valid;
86737
86738
  },
86738
86739
  setTooltip: function setTooltip() {
@@ -86769,11 +86770,13 @@ var es_string_replace_all = __webpack_require__("5b81");
86769
86770
  }).format(this.internalNumericModel);
86770
86771
  },
86771
86772
  setInternalNumericModel: function setInternalNumericModel(value) {
86772
- value = this.fromLocaleNumberToNumber(value, this.userLocaleCode);
86773
- this.checkValidations(value);
86774
86773
  if (value === null || value === '') {
86775
86774
  this.internalNumericModel = null;
86775
+ } else if (value === undefined) {
86776
+ this.internalNumericModel = undefined;
86776
86777
  } else {
86778
+ value = this.fromLocaleNumberToNumber(value, this.userLocaleCode);
86779
+ this.checkValidations(value);
86777
86780
  if (!this.internalError) {
86778
86781
  if (this.integer) {
86779
86782
  this.internalNumericModel = parseInt(value);
@@ -86781,8 +86784,11 @@ var es_string_replace_all = __webpack_require__("5b81");
86781
86784
  this.internalNumericModel = parseFloat(value);
86782
86785
  }
86783
86786
  }
86787
+ this.clearMessages();
86788
+ }
86789
+ if (!this.firstLoad) {
86790
+ this.checkValidations(value);
86784
86791
  }
86785
- this.checkValidations(value);
86786
86792
  this.firstLoad = false;
86787
86793
  this.$emit('input', this.internalNumericModel);
86788
86794
  },
@@ -86809,9 +86815,9 @@ var es_string_replace_all = __webpack_require__("5b81");
86809
86815
  }
86810
86816
  },
86811
86817
  wrongNumberValidation: function wrongNumberValidation(value) {
86812
- value = this.removeLocaleGroupSeparator(value, this.userLocaleCode);
86813
- if (value !== '') {
86814
- var tempValue = this.removeDecimalSeparator(value);
86818
+ var tempValue = this.removeLocaleGroupSeparator(value, this.userLocaleCode);
86819
+ if (tempValue !== '') {
86820
+ tempValue = this.replaceLocaleDecimalSeparator(tempValue, this.userLocaleCode);
86815
86821
  if (isNaN(parseFloat(tempValue))) {
86816
86822
  this.showWrongNumberMessage();
86817
86823
  }
@@ -86820,15 +86826,12 @@ var es_string_replace_all = __webpack_require__("5b81");
86820
86826
  numberTypeValidation: function numberTypeValidation(value) {
86821
86827
  if (this.integer) {
86822
86828
  var isInteger = this.checkInteger(value);
86823
- var parsedValue = parseInt(value);
86824
- if (!isInteger || isNaN(parsedValue)) {
86829
+ if (!isInteger || isNaN(parseInt(value))) {
86825
86830
  this.showWrongNumberMessage();
86826
86831
  }
86827
86832
  } else {
86828
- var isFloat = this.checkFloat(value, this.userLocaleCode);
86829
- var tempValue = this.removeDecimalSeparator(value);
86830
- var _parsedValue = parseFloat(tempValue);
86831
- if (!isFloat || isNaN(_parsedValue)) {
86833
+ var isFloat = this.checkFloat(value);
86834
+ if (!isFloat || isNaN(parseFloat(value))) {
86832
86835
  this.showWrongNumberMessage();
86833
86836
  }
86834
86837
  }
@@ -86876,8 +86879,8 @@ var es_string_replace_all = __webpack_require__("5b81");
86876
86879
 
86877
86880
  var PuiNumberField_component = normalizeComponent(
86878
86881
  components_PuiNumberFieldvue_type_script_lang_js,
86879
- PuiNumberFieldvue_type_template_id_7ec58030_render,
86880
- PuiNumberFieldvue_type_template_id_7ec58030_staticRenderFns,
86882
+ PuiNumberFieldvue_type_template_id_117a22a0_render,
86883
+ PuiNumberFieldvue_type_template_id_117a22a0_staticRenderFns,
86881
86884
  false,
86882
86885
  null,
86883
86886
  null,