vue-intergrall-plugins 0.0.156 → 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.
@@ -7761,10 +7761,10 @@ var standardMessages = {
7761
7761
  _context.prev = 0;
7762
7762
  return _context.abrupt("return", _this.$httpRequest({
7763
7763
  method: 'get',
7764
- url: "".concat(baseURL, "/get-messages/").concat(type, "?token_cliente=").concat(token).concat(dev),
7765
- headers: {
7766
- Authorization: "Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJhdGQiOiJNS1VJNnhZdm1xSWVFaWpuMXJwMERkZzQ0ZjFzd3dpbTRsNXd3WWFrVUJtd3d4YjQ0YXd3ZVJ1U2lUeUxxVTEiLCJtYW5hZ2VyIjoiTUtVd0J6YzFnVkIzaWNlNE5yU01lbU5aekI1MkExTzdtNXdhdmQyYnd3eGI0NGF3d3d3eGI0NGF3d3FVU2NoIiwibnJvcyI6WyI0MSJdLCJhdXRoIjoiTUtVVnAxTWR3d2ltNGw1d3dYTnNjWDg5R3V4c1RsZUVqdGdpNjhoNk1JUzl6d0xBTGVRbjhUUCIsImlhdCI6MTY0NjMzOTkyOCwiZXhwIjoxNjQ2NDI2MzI4fQ.QNu0uO3qV-Lqvu8Xww1F_x8Bwnjlm175IVdM89EgPM0"
7767
- }
7764
+ url: "".concat(baseURL, "/get-messages/").concat(type, "?token_cliente=").concat(token).concat(dev) // headers: {
7765
+ // Authorization: "Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJhdGQiOiJNS1VJNnhZdm1xSWVFaWpuMXJwMERkZzQ0ZjFzd3dpbTRsNXd3WWFrVUJtd3d4YjQ0YXd3ZVJ1U2lUeUxxVTEiLCJtYW5hZ2VyIjoiTUtVd0J6YzFnVkIzaWNlNE5yU01lbU5aekI1MkExTzdtNXdhdmQyYnd3eGI0NGF3d3d3eGI0NGF3d3FVU2NoIiwibnJvcyI6WyI0MSJdLCJhdXRoIjoiTUtVVnAxTWR3d2ltNGw1d3dYTnNjWDg5R3V4c1RsZUVqdGdpNjhoNk1JUzl6d0xBTGVRbjhUUCIsImlhdCI6MTY0NjMzOTkyOCwiZXhwIjoxNjQ2NDI2MzI4fQ.QNu0uO3qV-Lqvu8Xww1F_x8Bwnjlm175IVdM89EgPM0"
7766
+ // }
7767
+
7768
7768
  }).then(function (response) {
7769
7769
  var data = response.data;
7770
7770
  var tipo = data.tipo,
@@ -7825,7 +7825,6 @@ var script$g = {
7825
7825
  data: function data() {
7826
7826
  return {
7827
7827
  placement: "top",
7828
- firstMount: true,
7829
7828
  formatted_messages_1: [{
7830
7829
  cod: "T",
7831
7830
  value: "Todos"
@@ -7850,17 +7849,29 @@ var script$g = {
7850
7849
  return popper.destroy();
7851
7850
  };
7852
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
+ },
7853
7870
  receiveValueFormattedMessage: function receiveValueFormattedMessage(cod, selectionIndex) {
7854
7871
  var _this = this;
7855
7872
 
7856
7873
  try {
7857
7874
  if (!this.token_cliente) throw new Error("Informe token_cliente como chave na propriedade formattedMessageSettings que ocorre na chamada componente TextFooter ");
7858
-
7859
- if (this.firstMount) {
7860
- cod = "".concat(this.key_1, "/").concat(cod);
7861
- this.firstMount = false;
7862
- }
7863
-
7864
7875
  this.getStandardMessages(cod, this.token_cliente).then(function (data) {
7865
7876
  if (data && typeof data == 'string') return _this.$toasted.global.emConstrucao({
7866
7877
  msg: data
@@ -7894,7 +7905,7 @@ var script$g = {
7894
7905
  if (this.formatted_messages_2.length == 1) {
7895
7906
  if (this.formatted_messages_2[0].cod) {
7896
7907
  this.key_2 = this.formatted_messages_2[0].cod;
7897
- this.receiveValueFormattedMessage(this.key_2, 3);
7908
+ this.receiveValueFormattedMessage("T/".concat(this.key_2), 3);
7898
7909
  }
7899
7910
  }
7900
7911
  }
@@ -7995,9 +8006,7 @@ var __vue_render__$g = function __vue_render__() {
7995
8006
  }
7996
8007
  },
7997
8008
  on: {
7998
- "input": function input($event) {
7999
- _vm.key_1 ? _vm.receiveValueFormattedMessage(_vm.key_1, 2) : false;
8000
- }
8009
+ "input": _vm.inputSelectKey1
8001
8010
  },
8002
8011
  model: {
8003
8012
  value: _vm.key_1,
@@ -8024,9 +8033,7 @@ var __vue_render__$g = function __vue_render__() {
8024
8033
  }
8025
8034
  },
8026
8035
  on: {
8027
- "input": function input($event) {
8028
- return _vm.receiveValueFormattedMessage(_vm.key_2, 3);
8029
- }
8036
+ "input": _vm.inputSelectKey2
8030
8037
  },
8031
8038
  model: {
8032
8039
  value: _vm.key_2,
@@ -8087,7 +8094,7 @@ var __vue_inject_styles__$g = undefined;
8087
8094
  var __vue_scope_id__$g = undefined;
8088
8095
  /* module identifier */
8089
8096
 
8090
- var __vue_module_identifier__$g = "data-v-26142a74";
8097
+ var __vue_module_identifier__$g = "data-v-752386a2";
8091
8098
  /* functional template */
8092
8099
 
8093
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.156",
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>
@@ -90,7 +90,6 @@ export default {
90
90
  data() {
91
91
  return {
92
92
  placement: "top",
93
- firstMount: true,
94
93
  formatted_messages_1: [{ cod: "T", value: "Todos" }],
95
94
  key_1: "T",
96
95
  formatted_messages_2: [],
@@ -110,13 +109,25 @@ export default {
110
109
  })
111
110
  return () => popper.destroy()
112
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
+ },
113
128
  receiveValueFormattedMessage(cod, selectionIndex) {
114
129
  try {
115
130
  if(!this.token_cliente) throw new Error("Informe token_cliente como chave na propriedade formattedMessageSettings que ocorre na chamada componente TextFooter ")
116
- if(this.firstMount) {
117
- cod = `${this.key_1}/${cod}`
118
- this.firstMount = false
119
- }
120
131
  this.getStandardMessages(cod, this.token_cliente).then((data) => {
121
132
  if(data && typeof(data) == 'string') return this.$toasted.global.emConstrucao({msg: data})
122
133
  if(data) return this.showFormattedMessage(data, selectionIndex)
@@ -142,7 +153,7 @@ export default {
142
153
  if(this.formatted_messages_2.length == 1) {
143
154
  if(this.formatted_messages_2[0].cod) {
144
155
  this.key_2 = this.formatted_messages_2[0].cod
145
- this.receiveValueFormattedMessage(this.key_2, 3)
156
+ this.receiveValueFormattedMessage(`T/${this.key_2}`, 3)
146
157
  }
147
158
  }
148
159
  }