vue-intergrall-plugins 0.0.155 → 0.0.158

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.
@@ -7745,7 +7745,8 @@ var axios_1 = axios$1;
7745
7745
 
7746
7746
  // Allow use of default import syntax in TypeScript
7747
7747
  var _default = axios$1;
7748
- axios_1.default = _default;var axios = axios_1;var baseURL = window.location.hostname == 'localhost' ? "https://linux07/im/atdHumano/middleware/atd_api.php" : "https://".concat(window.location.hostname);
7748
+ axios_1.default = _default;var axios = axios_1;vue__default["default"].prototype.$httpRequest = axios;
7749
+ var baseURL = window.location.hostname == 'localhost' ? "https://linux07/im/atdHumano/middleware/atd_api.php" : "https://".concat(window.location.hostname);
7749
7750
  var dev = window.location.hostname == 'localhost' ? '&teste=levchat2' : '';
7750
7751
  var standardMessages = {
7751
7752
  methods: {
@@ -7758,12 +7759,12 @@ var standardMessages = {
7758
7759
  switch (_context.prev = _context.next) {
7759
7760
  case 0:
7760
7761
  _context.prev = 0;
7761
- return _context.abrupt("return", axios({
7762
+ return _context.abrupt("return", _this.$httpRequest({
7762
7763
  method: 'get',
7763
- url: "".concat(baseURL, "/get-messages/").concat(type, "?token_cliente=").concat(token).concat(dev),
7764
- headers: {
7765
- Authorization: "Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJhdGQiOiJNS1VJNnhZdm1xSWVFaWpuMXJwMERkZzQ0ZjFzd3dpbTRsNXd3WWFrVUJtd3d4YjQ0YXd3ZVJ1U2lUeUxxVTEiLCJtYW5hZ2VyIjoiTUtVd0J6YzFnVkIzaWNlNE5yU01lbU5aekI1MkExTzdtNXdhdmQyYnd3eGI0NGF3d3d3eGI0NGF3d3FVU2NoIiwibnJvcyI6WyI0MSJdLCJhdXRoIjoiTUtVVnAxTWR3d2ltNGw1d3dYTnNjWDg5R3V4c1RsZUVqdGdpNjhoNk1JUzl6d0xBTGVRbjhUUCIsImlhdCI6MTY0NjMzOTkyOCwiZXhwIjoxNjQ2NDI2MzI4fQ.QNu0uO3qV-Lqvu8Xww1F_x8Bwnjlm175IVdM89EgPM0"
7766
- }
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
+
7767
7768
  }).then(function (response) {
7768
7769
  var data = response.data;
7769
7770
  var tipo = data.tipo,
@@ -7824,7 +7825,6 @@ var script$g = {
7824
7825
  data: function data() {
7825
7826
  return {
7826
7827
  placement: "top",
7827
- firstMount: true,
7828
7828
  formatted_messages_1: [{
7829
7829
  cod: "T",
7830
7830
  value: "Todos"
@@ -7854,12 +7854,6 @@ var script$g = {
7854
7854
 
7855
7855
  try {
7856
7856
  if (!this.token_cliente) throw new Error("Informe token_cliente como chave na propriedade formattedMessageSettings que ocorre na chamada componente TextFooter ");
7857
-
7858
- if (this.firstMount) {
7859
- cod = "".concat(this.key_1, "/").concat(cod);
7860
- this.firstMount = false;
7861
- }
7862
-
7863
7857
  this.getStandardMessages(cod, this.token_cliente).then(function (data) {
7864
7858
  if (data && typeof data == 'string') return _this.$toasted.global.emConstrucao({
7865
7859
  msg: data
@@ -8086,7 +8080,7 @@ var __vue_inject_styles__$g = undefined;
8086
8080
  var __vue_scope_id__$g = undefined;
8087
8081
  /* module identifier */
8088
8082
 
8089
- var __vue_module_identifier__$g = "data-v-26142a74";
8083
+ var __vue_module_identifier__$g = "data-v-2f993f01";
8090
8084
  /* functional template */
8091
8085
 
8092
8086
  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.155",
3
+ "version": "0.0.158",
4
4
  "description": "",
5
5
  "main": "dist/vue-intergrall-plugins.ssr.js",
6
6
  "browser": "dist/vue-intergrall-plugins.esm.js",
@@ -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: [],
@@ -113,10 +112,6 @@ export default {
113
112
  receiveValueFormattedMessage(cod, selectionIndex) {
114
113
  try {
115
114
  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
115
  this.getStandardMessages(cod, this.token_cliente).then((data) => {
121
116
  if(data && typeof(data) == 'string') return this.$toasted.global.emConstrucao({msg: data})
122
117
  if(data) return this.showFormattedMessage(data, selectionIndex)