vue-intergrall-plugins 0.0.158 → 0.0.159

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.
@@ -7849,6 +7849,24 @@ var script$g = {
7849
7849
  return popper.destroy();
7850
7850
  };
7851
7851
  },
7852
+ inputSelectKey1: function inputSelectKey1() {
7853
+ if (!this.key_1) {
7854
+ if (this.formatted_messages_2.length) this.formatted_messages_2 = [];
7855
+ if (this.key_2) this.key_2 = "";
7856
+ return;
7857
+ }
7858
+
7859
+ this.receiveValueFormattedMessage(this.key_1, 2);
7860
+ },
7861
+ inputSelectKey2: function inputSelectKey2() {
7862
+ if (!this.key_2) {
7863
+ if (this.formatted_messages_3.length) this.formatted_messages_3 = [];
7864
+ if (this.key_3) this.key_3 = "";
7865
+ return;
7866
+ }
7867
+
7868
+ this.receiveValueFormattedMessage("T/".concat(this.key_2), 3);
7869
+ },
7852
7870
  receiveValueFormattedMessage: function receiveValueFormattedMessage(cod, selectionIndex) {
7853
7871
  var _this = this;
7854
7872
 
@@ -7887,7 +7905,7 @@ var script$g = {
7887
7905
  if (this.formatted_messages_2.length == 1) {
7888
7906
  if (this.formatted_messages_2[0].cod) {
7889
7907
  this.key_2 = this.formatted_messages_2[0].cod;
7890
- this.receiveValueFormattedMessage(this.key_2, 3);
7908
+ this.receiveValueFormattedMessage("T/".concat(this.key_2), 3);
7891
7909
  }
7892
7910
  }
7893
7911
  }
@@ -7988,9 +8006,7 @@ var __vue_render__$g = function __vue_render__() {
7988
8006
  }
7989
8007
  },
7990
8008
  on: {
7991
- "input": function input($event) {
7992
- _vm.key_1 ? _vm.receiveValueFormattedMessage(_vm.key_1, 2) : false;
7993
- }
8009
+ "input": _vm.inputSelectKey1
7994
8010
  },
7995
8011
  model: {
7996
8012
  value: _vm.key_1,
@@ -8017,9 +8033,7 @@ var __vue_render__$g = function __vue_render__() {
8017
8033
  }
8018
8034
  },
8019
8035
  on: {
8020
- "input": function input($event) {
8021
- return _vm.receiveValueFormattedMessage(_vm.key_2, 3);
8022
- }
8036
+ "input": _vm.inputSelectKey2
8023
8037
  },
8024
8038
  model: {
8025
8039
  value: _vm.key_2,
@@ -8080,7 +8094,7 @@ var __vue_inject_styles__$g = undefined;
8080
8094
  var __vue_scope_id__$g = undefined;
8081
8095
  /* module identifier */
8082
8096
 
8083
- var __vue_module_identifier__$g = "data-v-2f993f01";
8097
+ var __vue_module_identifier__$g = "data-v-752386a2";
8084
8098
  /* functional template */
8085
8099
 
8086
8100
  var __vue_is_functional_template__$g = false;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "vue-intergrall-plugins",
3
- "version": "0.0.158",
3
+ "version": "0.0.159",
4
4
  "description": "",
5
5
  "main": "dist/vue-intergrall-plugins.ssr.js",
6
6
  "browser": "dist/vue-intergrall-plugins.esm.js",
@@ -9,7 +9,7 @@
9
9
  label="value"
10
10
  v-model="key_1"
11
11
  :reduce="formatted_messages_1 => formatted_messages_1.cod"
12
- @input="key_1 ? receiveValueFormattedMessage(key_1, 2) : false"
12
+ @input="inputSelectKey1"
13
13
  >
14
14
  <div slot="no-options"> {{ dictionary.msg_sem_resultados }} </div>
15
15
  </v-select>
@@ -23,7 +23,7 @@
23
23
  label="value"
24
24
  v-model="key_2"
25
25
  :reduce="formatted_messages_2 => formatted_messages_2.cod"
26
- @input="receiveValueFormattedMessage(key_2, 3)"
26
+ @input="inputSelectKey2"
27
27
  >
28
28
  <div slot="no-options"> {{ dictionary.msg_sem_resultados }} </div>
29
29
  </v-select>
@@ -109,6 +109,22 @@ export default {
109
109
  })
110
110
  return () => popper.destroy()
111
111
  },
112
+ inputSelectKey1() {
113
+ if(!this.key_1) {
114
+ if(this.formatted_messages_2.length) this.formatted_messages_2 = []
115
+ if(this.key_2) this.key_2 = ""
116
+ return
117
+ }
118
+ this.receiveValueFormattedMessage(this.key_1, 2)
119
+ },
120
+ inputSelectKey2() {
121
+ if(!this.key_2) {
122
+ if(this.formatted_messages_3.length) this.formatted_messages_3 = []
123
+ if(this.key_3) this.key_3 = ""
124
+ return
125
+ }
126
+ this.receiveValueFormattedMessage(`T/${this.key_2}`, 3)
127
+ },
112
128
  receiveValueFormattedMessage(cod, selectionIndex) {
113
129
  try {
114
130
  if(!this.token_cliente) throw new Error("Informe token_cliente como chave na propriedade formattedMessageSettings que ocorre na chamada componente TextFooter ")
@@ -137,7 +153,7 @@ export default {
137
153
  if(this.formatted_messages_2.length == 1) {
138
154
  if(this.formatted_messages_2[0].cod) {
139
155
  this.key_2 = this.formatted_messages_2[0].cod
140
- this.receiveValueFormattedMessage(this.key_2, 3)
156
+ this.receiveValueFormattedMessage(`T/${this.key_2}`, 3)
141
157
  }
142
158
  }
143
159
  }