@tagplus/components 0.2.104 → 0.2.107

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/tp.common.js CHANGED
@@ -5196,6 +5196,7 @@ __webpack_require__.d(components_namespaceObject, "Loader", function() { return
5196
5196
  __webpack_require__.d(components_namespaceObject, "Skeleton", function() { return components_Skeleton; });
5197
5197
  __webpack_require__.d(components_namespaceObject, "Tip", function() { return components_Tip; });
5198
5198
  __webpack_require__.d(components_namespaceObject, "Multisuggest", function() { return components_Multisuggest; });
5199
+ __webpack_require__.d(components_namespaceObject, "InputNumber", function() { return components_InputNumber; });
5199
5200
 
5200
5201
  // CONCATENATED MODULE: ./node_modules/@vue/cli-service/lib/commands/build/setPublicPath.js
5201
5202
  // This file is imported into lib/wc client bundles.
@@ -8388,6 +8389,95 @@ var Multisuggest_component = normalizeComponent(
8388
8389
  // CONCATENATED MODULE: ./src/components/Multisuggest/index.js
8389
8390
 
8390
8391
  /* harmony default export */ var components_Multisuggest = (Multisuggest);
8392
+ // CONCATENATED MODULE: ./node_modules/@vue/cli-plugin-babel/node_modules/cache-loader/dist/cjs.js??ref--13-0!./node_modules/@vue/cli-plugin-babel/node_modules/thread-loader/dist/cjs.js!./node_modules/@vue/cli-plugin-babel/node_modules/babel-loader/lib!./node_modules/@vue/cli-service/node_modules/cache-loader/dist/cjs.js??ref--1-0!./node_modules/@vue/cli-service/node_modules/vue-loader/lib??vue-loader-options!./src/components/InputNumber/InputNumber.vue?vue&type=script&lang=js&
8393
+
8394
+
8395
+
8396
+
8397
+
8398
+ /* harmony default export */ var InputNumbervue_type_script_lang_js_ = ({
8399
+ name: 'TpInputNumber',
8400
+ extends: external_element_ui_["InputNumber"],
8401
+ props: {
8402
+ usarVirgula: {
8403
+ type: Boolean,
8404
+ default: true
8405
+ }
8406
+ },
8407
+ computed: {
8408
+ displayValue: function displayValue() {
8409
+ if (this.userInput !== null) {
8410
+ return this.userInput;
8411
+ }
8412
+
8413
+ var currentValue = this.currentValue;
8414
+
8415
+ if (typeof currentValue === 'number') {
8416
+ if (this.stepStrictly) {
8417
+ var stepPrecision = this.getPrecision(this.step);
8418
+ var precisionFactor = Math.pow(10, stepPrecision);
8419
+ currentValue = Math.round(currentValue / this.step) * precisionFactor * this.step / precisionFactor;
8420
+ }
8421
+
8422
+ if (this.precision !== undefined) {
8423
+ currentValue = currentValue.toFixed(this.precision);
8424
+ }
8425
+ }
8426
+
8427
+ if (this.usarVirgula) {
8428
+ currentValue = (currentValue + '').replace('.', ',');
8429
+ }
8430
+
8431
+ return currentValue;
8432
+ }
8433
+ },
8434
+ methods: {
8435
+ handleInput: function handleInput(value) {
8436
+ this.userInput = value;
8437
+ this.$emit('change', Number(value.replace(',', '.')));
8438
+ },
8439
+ handleInputChange: function handleInputChange(value) {
8440
+ var newVal;
8441
+
8442
+ if (value === '') {
8443
+ newVal = 0;
8444
+ } else {
8445
+ newVal = Number(value.replace(',', '.'));
8446
+ }
8447
+
8448
+ if (!isNaN(newVal) || value === '') {
8449
+ this.setCurrentValue(newVal);
8450
+ }
8451
+
8452
+ this.userInput = null;
8453
+ }
8454
+ }
8455
+ });
8456
+ // CONCATENATED MODULE: ./src/components/InputNumber/InputNumber.vue?vue&type=script&lang=js&
8457
+ /* harmony default export */ var InputNumber_InputNumbervue_type_script_lang_js_ = (InputNumbervue_type_script_lang_js_);
8458
+ // CONCATENATED MODULE: ./src/components/InputNumber/InputNumber.vue
8459
+ var InputNumber_render, InputNumber_staticRenderFns
8460
+
8461
+
8462
+
8463
+
8464
+ /* normalize component */
8465
+
8466
+ var InputNumber_component = normalizeComponent(
8467
+ InputNumber_InputNumbervue_type_script_lang_js_,
8468
+ InputNumber_render,
8469
+ InputNumber_staticRenderFns,
8470
+ false,
8471
+ null,
8472
+ null,
8473
+ null
8474
+
8475
+ )
8476
+
8477
+ /* harmony default export */ var InputNumber = (InputNumber_component.exports);
8478
+ // CONCATENATED MODULE: ./src/components/InputNumber/index.js
8479
+
8480
+ /* harmony default export */ var components_InputNumber = (InputNumber);
8391
8481
  // CONCATENATED MODULE: ./src/components/index.js
8392
8482
 
8393
8483
 
@@ -8400,6 +8490,7 @@ var Multisuggest_component = normalizeComponent(
8400
8490
 
8401
8491
 
8402
8492
 
8493
+
8403
8494
  // CONCATENATED MODULE: ./src/main.js
8404
8495
 
8405
8496