@bildvitta/quasar-ui-asteroid 3.0.0 → 3.1.0-beta.2

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.
Files changed (32) hide show
  1. package/dist/api/QasFormGenerator.json +5 -0
  2. package/dist/api/QasNestedFields.json +22 -1
  3. package/dist/asteroid.cjs.css +1 -1
  4. package/dist/asteroid.cjs.js +257 -175
  5. package/dist/asteroid.cjs.min.js +2 -2
  6. package/dist/asteroid.esm.css +1 -1
  7. package/dist/asteroid.esm.js +257 -175
  8. package/dist/asteroid.esm.min.js +2 -2
  9. package/dist/asteroid.umd.css +1 -1
  10. package/dist/asteroid.umd.js +260 -179
  11. package/dist/asteroid.umd.min.js +2 -2
  12. package/dist/vetur/asteroid-attributes.json +12 -0
  13. package/dist/vetur/asteroid-tags.json +3 -0
  14. package/package.json +2 -1
  15. package/src/components/app-bar/QasAppBar.vue +2 -2
  16. package/src/components/box/QasBox.vue +1 -1
  17. package/src/components/card/QasCard.vue +1 -1
  18. package/src/components/delete/QasDelete.vue +6 -1
  19. package/src/components/filters/QasFilters.vue +15 -9
  20. package/src/components/form-generator/QasFormGenerator.vue +6 -2
  21. package/src/components/form-generator/QasFormGenerator.yml +5 -0
  22. package/src/components/form-view/QasFormView.vue +11 -2
  23. package/src/components/grid-generator/QasGridGenerator.vue +2 -2
  24. package/src/components/list-items/QasListItems.vue +5 -3
  25. package/src/components/list-view/QasListView.vue +8 -3
  26. package/src/components/nested-fields/QasNestedFields.vue +31 -5
  27. package/src/components/nested-fields/QasNestedFields.yml +16 -1
  28. package/src/components/single-view/QasSingleView.vue +7 -2
  29. package/src/components/sortable/QasSortable.vue +8 -3
  30. package/src/css/variables/index.scss +0 -1
  31. package/src/mixins/search-filter.js +12 -7
  32. package/src/css/variables/shadow.scss +0 -33
@@ -1,13 +1,13 @@
1
1
  /*!
2
- * @bildvitta/quasar-ui-asteroid v3.0.0
2
+ * @bildvitta/quasar-ui-asteroid v3.1.0-beta.2
3
3
  * (c) 2022 Bild & Vitta <systemteam@bild.com.br>
4
4
  * Released under the MIT License.
5
5
  */
6
6
  (function (global, factory) {
7
- typeof exports === 'object' && typeof module !== 'undefined' ? module.exports = factory(require('vue'), require('humps'), require('date-fns'), require('date-fns/locale'), require('quasar'), require('lodash-es'), require('autonumeric'), require('pica'), require('signature_pad'), require('vue-router'), require('lodash'), require('fuse.js'), require('sortablejs'), require('@fawmi/vue-google-maps')) :
8
- typeof define === 'function' && define.amd ? define(['vue', 'humps', 'date-fns', 'date-fns/locale', 'quasar', 'lodash-es', 'autonumeric', 'pica', 'signature_pad', 'vue-router', 'lodash', 'fuse.js', 'sortablejs', '@fawmi/vue-google-maps'], factory) :
9
- (global = typeof globalThis !== 'undefined' ? globalThis : global || self, global["{{ umdExportName }}"] = factory(global.Vue, global.humps, global.dateFns, global.dateFnsLocale, global.Quasar, global._, global.AutoNumeric, global.Pica, global.SignaturePad, global.VueRouter, global.lodash, global.Fuse, global.Sortable, global.VueGoogleMaps));
10
- })(this, (function (vue, humps, dateFns, locale, quasar, lodashEs, AutoNumeric, Pica, SignaturePad, vueRouter, lodash, Fuse, Sortable, VueGoogleMaps) { 'use strict';
7
+ typeof exports === 'object' && typeof module !== 'undefined' ? module.exports = factory(require('vue'), require('humps'), require('date-fns'), require('date-fns/locale'), require('quasar'), require('@bildvitta/store-adapter'), require('lodash-es'), require('autonumeric'), require('pica'), require('signature_pad'), require('vue-router'), require('lodash'), require('fuse.js'), require('sortablejs'), require('@fawmi/vue-google-maps')) :
8
+ typeof define === 'function' && define.amd ? define(['vue', 'humps', 'date-fns', 'date-fns/locale', 'quasar', '@bildvitta/store-adapter', 'lodash-es', 'autonumeric', 'pica', 'signature_pad', 'vue-router', 'lodash', 'fuse.js', 'sortablejs', '@fawmi/vue-google-maps'], factory) :
9
+ (global = typeof globalThis !== 'undefined' ? globalThis : global || self, global["{{ umdExportName }}"] = factory(global.Vue, global.humps, global.dateFns, global.dateFnsLocale, global.Quasar, global.storeAdapter, global._, global.AutoNumeric, global.Pica, global.SignaturePad, global.VueRouter, global.lodash, global.Fuse, global.Sortable, global.VueGoogleMaps));
10
+ })(this, (function (vue, humps, dateFns, locale, quasar, storeAdapter, lodashEs, AutoNumeric, Pica, SignaturePad, vueRouter, lodash, Fuse, Sortable, VueGoogleMaps) { 'use strict';
11
11
 
12
12
  function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
13
13
 
@@ -47,7 +47,7 @@
47
47
  };
48
48
 
49
49
  const _hoisted_1$t = { class: "col-12 col-sm-auto" };
50
- const _hoisted_2$l = { class: "col-12 col-sm-auto" };
50
+ const _hoisted_2$m = { class: "col-12 col-sm-auto" };
51
51
 
52
52
  function render$L(_ctx, _cache, $props, $setup, $data, $options) {
53
53
  return (vue.openBlock(), vue.createElementBlock("div", {
@@ -56,7 +56,7 @@
56
56
  vue.createElementVNode("div", _hoisted_1$t, [
57
57
  vue.renderSlot(_ctx.$slots, "secondary")
58
58
  ]),
59
- vue.createElementVNode("div", _hoisted_2$l, [
59
+ vue.createElementVNode("div", _hoisted_2$m, [
60
60
  vue.renderSlot(_ctx.$slots, "primary")
61
61
  ])
62
62
  ], 2 /* CLASS */))
@@ -182,7 +182,7 @@
182
182
  };
183
183
 
184
184
  const _hoisted_1$s = { class: "flex items-center justify-center q-gutter-x-md" };
185
- const _hoisted_2$k = { class: "flex items-center justify-center q-gutter-x-sm" };
185
+ const _hoisted_2$l = { class: "flex items-center justify-center q-gutter-x-sm" };
186
186
 
187
187
  function render$J(_ctx, _cache, $props, $setup, $data, $options) {
188
188
  const _component_q_icon = vue.resolveComponent("q-icon");
@@ -246,7 +246,7 @@
246
246
  default: vue.withCtx(() => [
247
247
  vue.createVNode(_component_q_item_section, null, {
248
248
  default: vue.withCtx(() => [
249
- vue.createElementVNode("div", _hoisted_2$k, [
249
+ vue.createElementVNode("div", _hoisted_2$l, [
250
250
  vue.createVNode(_component_q_icon, {
251
251
  name: $props.deleteIcon,
252
252
  size: "sm"
@@ -750,7 +750,7 @@
750
750
  };
751
751
 
752
752
  const _hoisted_1$r = { class: "q-gutter-md q-mr-lg" };
753
- const _hoisted_2$j = {
753
+ const _hoisted_2$k = {
754
754
  key: 0,
755
755
  class: "text-bold text-h5"
756
756
  };
@@ -776,7 +776,7 @@
776
776
  vue.createElementVNode("div", _hoisted_1$r, [
777
777
  vue.renderSlot(_ctx.$slots, "header", {}, () => [
778
778
  ($props.title)
779
- ? (vue.openBlock(), vue.createElementBlock("h5", _hoisted_2$j, vue.toDisplayString($props.title), 1 /* TEXT */))
779
+ ? (vue.openBlock(), vue.createElementBlock("h5", _hoisted_2$k, vue.toDisplayString($props.title), 1 /* TEXT */))
780
780
  : vue.createCommentVNode("v-if", true)
781
781
  ]),
782
782
  vue.renderSlot(_ctx.$slots, "default", {}, () => [
@@ -1013,7 +1013,7 @@
1013
1013
  };
1014
1014
 
1015
1015
  const _hoisted_1$q = ["alt", "src"];
1016
- const _hoisted_2$i = {
1016
+ const _hoisted_2$j = {
1017
1017
  key: 1,
1018
1018
  class: "text-bold text-grey-9 text-subtitle1 text-uppercase"
1019
1019
  };
@@ -1045,7 +1045,7 @@
1045
1045
  const _directive_close_popup = vue.resolveDirective("close-popup");
1046
1046
 
1047
1047
  return (vue.openBlock(), vue.createBlock(_component_q_header, {
1048
- class: "bg-white qas-app-bar shadow-14",
1048
+ class: "bg-white qas-app-bar shadow-2",
1049
1049
  "height-hint": "70"
1050
1050
  }, {
1051
1051
  default: vue.withCtx(() => [
@@ -1082,7 +1082,7 @@
1082
1082
  }, null, 8 /* PROPS */, _hoisted_1$q))
1083
1083
  : vue.createCommentVNode("v-if", true),
1084
1084
  ($options.showTitle)
1085
- ? (vue.openBlock(), vue.createElementBlock("span", _hoisted_2$i, vue.toDisplayString($props.title), 1 /* TEXT */))
1085
+ ? (vue.openBlock(), vue.createElementBlock("span", _hoisted_2$j, vue.toDisplayString($props.title), 1 /* TEXT */))
1086
1086
  : vue.createCommentVNode("v-if", true),
1087
1087
  ($options.hasDevelopmentBadge)
1088
1088
  ? (vue.openBlock(), vue.createBlock(_component_q_badge, {
@@ -1148,7 +1148,7 @@
1148
1148
  ]),
1149
1149
  vue.createVNode(_component_q_menu, {
1150
1150
  anchor: "bottom end",
1151
- class: "shadow-14",
1151
+ class: "shadow-2",
1152
1152
  "max-height": "400px",
1153
1153
  offset: [0, 5],
1154
1154
  self: "top end"
@@ -1346,7 +1346,7 @@
1346
1346
  };
1347
1347
 
1348
1348
  const _hoisted_1$p = { class: "column flex full-height justify-between no-wrap overflow-x-hidden" };
1349
- const _hoisted_2$h = {
1349
+ const _hoisted_2$i = {
1350
1350
  key: 0,
1351
1351
  class: "q-ma-md"
1352
1352
  };
@@ -1381,7 +1381,7 @@
1381
1381
  vue.createElementVNode("div", _hoisted_1$p, [
1382
1382
  vue.createElementVNode("div", null, [
1383
1383
  ($options.displayModuleSection)
1384
- ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_2$h, [
1384
+ ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_2$i, [
1385
1385
  _hoisted_3$d,
1386
1386
  vue.createVNode(_component_qas_select, {
1387
1387
  modelValue: $data.module,
@@ -1534,7 +1534,7 @@
1534
1534
  boxClass () {
1535
1535
  return {
1536
1536
  'border-primary-contrast': this.outlined,
1537
- 'shadow-14': !this.unelevated
1537
+ 'shadow-2': !this.unelevated
1538
1538
  }
1539
1539
  }
1540
1540
  }
@@ -1596,7 +1596,7 @@
1596
1596
 
1597
1597
  cardClasses () {
1598
1598
  return {
1599
- 'shadow-14': !this.unelevated,
1599
+ 'shadow-2': !this.unelevated,
1600
1600
  'border-primary': this.outlined,
1601
1601
  'no-shadow': this.outlined,
1602
1602
  'bg-white': this.outlined
@@ -1632,7 +1632,7 @@
1632
1632
  };
1633
1633
 
1634
1634
  const _hoisted_1$o = { class: "col-12 col-lg-3 col-md-4 col-sm-6" };
1635
- const _hoisted_2$g = {
1635
+ const _hoisted_2$h = {
1636
1636
  key: 0,
1637
1637
  class: "overflow-hidden relative-position w-full"
1638
1638
  };
@@ -1655,7 +1655,7 @@
1655
1655
  }, {
1656
1656
  default: vue.withCtx(() => [
1657
1657
  ($props.useHeader)
1658
- ? (vue.openBlock(), vue.createElementBlock("header", _hoisted_2$g, [
1658
+ ? (vue.openBlock(), vue.createElementBlock("header", _hoisted_2$h, [
1659
1659
  vue.renderSlot(_ctx.$slots, "header", {}, () => [
1660
1660
  vue.createVNode(_component_q_carousel, {
1661
1661
  modelValue: $data.slideImage,
@@ -2196,12 +2196,12 @@
2196
2196
  };
2197
2197
 
2198
2198
  const _hoisted_1$m = { class: "bg-grey-3 q-my-md q-pa-md rounded-borders" };
2199
- const _hoisted_2$f = /*#__PURE__*/vue.createElementVNode("summary", null, "Debugger", -1 /* HOISTED */);
2199
+ const _hoisted_2$g = /*#__PURE__*/vue.createElementVNode("summary", null, "Debugger", -1 /* HOISTED */);
2200
2200
  const _hoisted_3$b = { class: "row" };
2201
2201
 
2202
2202
  function render$y(_ctx, _cache, $props, $setup, $data, $options) {
2203
2203
  return (vue.openBlock(), vue.createElementBlock("details", _hoisted_1$m, [
2204
- _hoisted_2$f,
2204
+ _hoisted_2$g,
2205
2205
  vue.createElementVNode("div", _hoisted_3$b, [
2206
2206
  (vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList($props.inspect, (item, index) => {
2207
2207
  return (vue.openBlock(), vue.createElementBlock("pre", {
@@ -2369,7 +2369,7 @@
2369
2369
  };
2370
2370
 
2371
2371
  const _hoisted_1$l = { class: "justify-between row" };
2372
- const _hoisted_2$e = { class: "text-bold text-h6" };
2372
+ const _hoisted_2$f = { class: "text-bold text-h6" };
2373
2373
  const _hoisted_3$a = { key: 0 };
2374
2374
 
2375
2375
  function render$x(_ctx, _cache, $props, $setup, $data, $options) {
@@ -2394,7 +2394,7 @@
2394
2394
  default: vue.withCtx(() => [
2395
2395
  vue.renderSlot(_ctx.$slots, "header", {}, () => [
2396
2396
  vue.createElementVNode("div", _hoisted_1$l, [
2397
- vue.createElementVNode("div", _hoisted_2$e, vue.toDisplayString($props.card.title), 1 /* TEXT */),
2397
+ vue.createElementVNode("div", _hoisted_2$f, vue.toDisplayString($props.card.title), 1 /* TEXT */),
2398
2398
  ($props.useCloseButton)
2399
2399
  ? vue.withDirectives((vue.openBlock(), vue.createBlock(_component_qas_btn, {
2400
2400
  key: 0,
@@ -2716,7 +2716,11 @@
2716
2716
  `QasDelete - destroy -> Payload do parâmetro do ${this.entity}/destroy`, [payload]
2717
2717
  );
2718
2718
 
2719
- await this.$store.dispatch(`${this.entity}/destroy`, payload);
2719
+ await storeAdapter.getAction.call(this, {
2720
+ entity: this.entity,
2721
+ key: 'destroy',
2722
+ payload
2723
+ });
2720
2724
 
2721
2725
  NotifySuccess('Item deletado com sucesso!');
2722
2726
 
@@ -3914,7 +3918,7 @@
3914
3918
  };
3915
3919
 
3916
3920
  const _hoisted_1$i = { class: "flex flex-center full-width justify-between no-border no-wrap q-gutter-xs q-pa-sm text-white transparent" };
3917
- const _hoisted_2$d = { class: "col column items-start justify-center" };
3921
+ const _hoisted_2$e = { class: "col column items-start justify-center" };
3918
3922
  const _hoisted_3$9 = {
3919
3923
  key: 0,
3920
3924
  class: "q-uploader__title"
@@ -3973,7 +3977,7 @@
3973
3977
  size: "24px"
3974
3978
  }))
3975
3979
  : vue.createCommentVNode("v-if", true),
3976
- vue.createElementVNode("div", _hoisted_2$d, [
3980
+ vue.createElementVNode("div", _hoisted_2$e, [
3977
3981
  (_ctx.$attrs.label)
3978
3982
  ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_3$9, vue.toDisplayString(_ctx.$attrs.label), 1 /* TEXT */))
3979
3983
  : vue.createCommentVNode("v-if", true),
@@ -4208,7 +4212,7 @@
4208
4212
  ref: "signatureContainer",
4209
4213
  class: "qas-signature-pad relative-position"
4210
4214
  };
4211
- const _hoisted_2$c = ["id", "height"];
4215
+ const _hoisted_2$d = ["id", "height"];
4212
4216
 
4213
4217
  function render$p(_ctx, _cache, $props, $setup, $data, $options) {
4214
4218
  const _component_qas_btn = vue.resolveComponent("qas-btn");
@@ -4220,7 +4224,7 @@
4220
4224
  ref: _ctx.$attrs.ref,
4221
4225
  class: "qas-signature-pad__canvas rounded-borders vertical-bottom",
4222
4226
  height: $props.height
4223
- }, null, 8 /* PROPS */, _hoisted_2$c),
4227
+ }, null, 8 /* PROPS */, _hoisted_2$d),
4224
4228
  (!$props.empty)
4225
4229
  ? (vue.openBlock(), vue.createBlock(_component_qas_btn, {
4226
4230
  key: 0,
@@ -4379,7 +4383,7 @@
4379
4383
  };
4380
4384
 
4381
4385
  const _hoisted_1$g = { class: "col column items-start justify-center" };
4382
- const _hoisted_2$b = {
4386
+ const _hoisted_2$c = {
4383
4387
  key: 0,
4384
4388
  class: "q-uploader__title"
4385
4389
  };
@@ -4407,7 +4411,7 @@
4407
4411
  }, [
4408
4412
  vue.createElementVNode("div", _hoisted_1$g, [
4409
4413
  ($props.uploadLabel)
4410
- ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_2$b, vue.toDisplayString($props.uploadLabel), 1 /* TEXT */))
4414
+ ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_2$c, vue.toDisplayString($props.uploadLabel), 1 /* TEXT */))
4411
4415
  : vue.createCommentVNode("v-if", true)
4412
4416
  ]),
4413
4417
  (!$props.readonly)
@@ -4791,7 +4795,7 @@
4791
4795
  },
4792
4796
 
4793
4797
  fields () {
4794
- return this.$store.getters[`${this.entity}/filters`]
4798
+ return storeAdapter.getState.call(this, { entity: this.entity, key: 'filters' })
4795
4799
  },
4796
4800
 
4797
4801
  filterButtonColor () {
@@ -4807,7 +4811,7 @@
4807
4811
  },
4808
4812
 
4809
4813
  hasFields () {
4810
- return !!Object.keys(this.fields).length
4814
+ return !!Object.keys(this.fields || {}).length
4811
4815
  },
4812
4816
 
4813
4817
  hasSearch () {
@@ -4889,7 +4893,12 @@
4889
4893
  [{ url: this.url }]
4890
4894
  );
4891
4895
 
4892
- const response = await this.$store.dispatch(`${this.entity}/fetchFilters`, { url: this.url });
4896
+ const response = await storeAdapter.getAction.call(this, {
4897
+ entity: this.entity,
4898
+ key: 'fetchFilters',
4899
+ payload: { url: this.url }
4900
+ });
4901
+
4893
4902
  this.$emit('fetch-success', response);
4894
4903
 
4895
4904
  this.$qas.logger.group(
@@ -4963,7 +4972,7 @@
4963
4972
  };
4964
4973
 
4965
4974
  const _hoisted_1$f = { class: "q-mb-lg" };
4966
- const _hoisted_2$a = {
4975
+ const _hoisted_2$b = {
4967
4976
  key: 0,
4968
4977
  class: "q-gutter-x-md row"
4969
4978
  };
@@ -4997,7 +5006,7 @@
4997
5006
 
4998
5007
  return (vue.openBlock(), vue.createElementBlock("section", _hoisted_1$f, [
4999
5008
  ($options.showFilters)
5000
- ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_2$a, [
5009
+ ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_2$b, [
5001
5010
  ($options.showSearch)
5002
5011
  ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_3$7, [
5003
5012
  vue.renderSlot(_ctx.$slots, "search", { filter: $options.filter }, () => [
@@ -5010,6 +5019,7 @@
5010
5019
  vue.createVNode(_component_qas_input, {
5011
5020
  modelValue: $data.search,
5012
5021
  "onUpdate:modelValue": _cache[1] || (_cache[1] = $event => (($data.search) = $event)),
5022
+ "data-cy": "filters-search-input",
5013
5023
  debounce: $options.debounce,
5014
5024
  dense: "",
5015
5025
  "hide-bottom-space": "",
@@ -5058,6 +5068,7 @@
5058
5068
  ? (vue.openBlock(), vue.createBlock(_component_qas_btn, {
5059
5069
  key: 0,
5060
5070
  color: $options.filterButtonColor,
5071
+ "data-cy": "filters-btn",
5061
5072
  flat: "",
5062
5073
  icon: "o_filter_list",
5063
5074
  label: $options.filterButtonLabel
@@ -5094,14 +5105,16 @@
5094
5105
  vue.createVNode(_component_qas_field, {
5095
5106
  modelValue: $data.filters[field.name],
5096
5107
  "onUpdate:modelValue": $event => (($data.filters[field.name]) = $event),
5108
+ "data-cy": `filters-${field.name}-field`,
5097
5109
  dense: "",
5098
5110
  field: field
5099
- }, null, 8 /* PROPS */, ["modelValue", "onUpdate:modelValue", "field"])
5111
+ }, null, 8 /* PROPS */, ["modelValue", "onUpdate:modelValue", "data-cy", "field"])
5100
5112
  ]))
5101
5113
  }), 128 /* KEYED_FRAGMENT */)),
5102
5114
  vue.createElementVNode("div", _hoisted_6$2, [
5103
5115
  vue.createVNode(_component_qas_btn, {
5104
5116
  class: "q-mr-sm",
5117
+ "data-cy": "filters-clear-btn",
5105
5118
  flat: "",
5106
5119
  label: "Limpar",
5107
5120
  "no-caps": false,
@@ -5111,6 +5124,7 @@
5111
5124
  }, null, 8 /* PROPS */, ["onClick"]),
5112
5125
  vue.createVNode(_component_qas_btn, {
5113
5126
  color: "primary",
5127
+ "data-cy": "filters-submit-btn",
5114
5128
  label: "Filtrar",
5115
5129
  "no-caps": false,
5116
5130
  size: "12px",
@@ -5138,6 +5152,7 @@
5138
5152
  return (vue.openBlock(), vue.createBlock(_component_q_chip, {
5139
5153
  key: key,
5140
5154
  color: "primary",
5155
+ "data-cy": `filters-${filterItem.value}-chip`,
5141
5156
  dense: "",
5142
5157
  removable: "",
5143
5158
  size: "md",
@@ -5148,7 +5163,7 @@
5148
5163
  vue.createTextVNode(vue.toDisplayString(filterItem.label) + " = \"" + vue.toDisplayString($options.getChipValue(filterItem.value)) + "\"", 1 /* TEXT */)
5149
5164
  ]),
5150
5165
  _: 2 /* DYNAMIC */
5151
- }, 1032 /* PROPS, DYNAMIC_SLOTS */, ["onRemove"]))
5166
+ }, 1032 /* PROPS, DYNAMIC_SLOTS */, ["data-cy", "onRemove"]))
5152
5167
  }), 128 /* KEYED_FRAGMENT */))
5153
5168
  ]))
5154
5169
  : vue.createCommentVNode("v-if", true),
@@ -5301,6 +5316,10 @@
5301
5316
  validator: value => {
5302
5317
  return typeof value === 'boolean' || ['xs', 'sm', 'md', 'lg', 'xl'].includes(value)
5303
5318
  }
5319
+ },
5320
+
5321
+ disable: {
5322
+ type: Boolean
5304
5323
  }
5305
5324
  },
5306
5325
 
@@ -5422,12 +5441,12 @@
5422
5441
  class: vue.normalizeClass(_ctx.mx_getFieldClass(key))
5423
5442
  }, [
5424
5443
  vue.renderSlot(_ctx.$slots, `field-${field.name}`, { field: field }, () => [
5425
- vue.createVNode(_component_qas_field, vue.mergeProps($props.fieldsProps[field.name], {
5444
+ vue.createVNode(_component_qas_field, vue.mergeProps({ disable: $props.disable }, $props.fieldsProps[field.name], {
5426
5445
  error: $props.errors[key],
5427
5446
  field: field,
5428
5447
  "model-value": $props.modelValue[field.name],
5429
5448
  "onUpdate:modelValue": $event => ($options.updateModelValue(field.name, $event))
5430
- }), null, 16 /* FULL_PROPS */, ["error", "field", "model-value", "onUpdate:modelValue"])
5449
+ }), null, 16 /* FULL_PROPS */, ["disable", "error", "field", "model-value", "onUpdate:modelValue"])
5431
5450
  ])
5432
5451
  ], 2 /* CLASS */))
5433
5452
  }), 128 /* KEYED_FRAGMENT */))
@@ -5435,11 +5454,11 @@
5435
5454
  (vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(fieldsetItem.fields.hidden, (field, key) => {
5436
5455
  return (vue.openBlock(), vue.createElementBlock("div", { key: key }, [
5437
5456
  vue.renderSlot(_ctx.$slots, `field-${field.name}`, { field: field }, () => [
5438
- vue.createVNode(_component_qas_field, vue.mergeProps($props.fieldsProps[field.name], {
5457
+ vue.createVNode(_component_qas_field, vue.mergeProps({ disable: $props.disable }, $props.fieldsProps[field.name], {
5439
5458
  field: field,
5440
5459
  "model-value": $props.modelValue[field.name],
5441
5460
  "onUpdate:modelValue": $event => ($options.updateModelValue(field.name, $event))
5442
- }), null, 16 /* FULL_PROPS */, ["field", "model-value", "onUpdate:modelValue"])
5461
+ }), null, 16 /* FULL_PROPS */, ["disable", "field", "model-value", "onUpdate:modelValue"])
5443
5462
  ])
5444
5463
  ]))
5445
5464
  }), 128 /* KEYED_FRAGMENT */))
@@ -5598,13 +5617,17 @@
5598
5617
 
5599
5618
  const { url, params, decamelizeFieldName } = this.mx_defaultLazyLoadingProps;
5600
5619
 
5601
- const { data } = await this.$store.dispatch(`${this.entity}/fetchFieldOptions`, {
5602
- url,
5603
- field: decamelizeFieldName ? humps.decamelize(this.name, { separator: '-' }) : this.name,
5604
- params: {
5605
- ...params,
5606
- search: this.mx_search,
5607
- offset: (this.mx_pagination.page - 1) * params.limit
5620
+ const { data } = await storeAdapter.getAction.call(this, {
5621
+ entity: this.entity,
5622
+ key: 'fetchFieldOptions',
5623
+ payload: {
5624
+ url,
5625
+ field: decamelizeFieldName ? humps.decamelize(this.name, { separator: '-' }) : this.name,
5626
+ params: {
5627
+ ...params,
5628
+ search: this.mx_search,
5629
+ offset: (this.mx_pagination.page - 1) * params.limit
5630
+ }
5608
5631
  }
5609
5632
  });
5610
5633
 
@@ -6040,7 +6063,11 @@
6040
6063
  `QasFormView - fetchSingle -> payload do parâmetro do ${this.entity}/fetchSingle`, [payload]
6041
6064
  );
6042
6065
 
6043
- const response = await this.$store.dispatch(`${this.entity}/fetchSingle`, payload);
6066
+ const response = await storeAdapter.getAction.call(this, {
6067
+ entity: this.entity,
6068
+ key: 'fetchSingle',
6069
+ payload
6070
+ });
6044
6071
 
6045
6072
  const { errors, fields, metadata, result } = response.data;
6046
6073
 
@@ -6175,7 +6202,11 @@
6175
6202
  `QasFormView - submit -> payload do ${this.entity}/${this.mode}`, [payload]
6176
6203
  );
6177
6204
 
6178
- const response = await this.$store.dispatch(`${this.entity}/${this.mode}`, payload);
6205
+ const response = await storeAdapter.getAction.call(this, {
6206
+ entity: this.entity,
6207
+ key: this.mode,
6208
+ payload
6209
+ });
6179
6210
 
6180
6211
  if (this.useDialogOnUnsavedChanges) {
6181
6212
  this.cachedResult = quasar.extend(true, {}, this.modelValue);
@@ -6221,7 +6252,7 @@
6221
6252
  };
6222
6253
 
6223
6254
  const _hoisted_1$e = { key: 0 };
6224
- const _hoisted_2$9 = { class: "justify-end q-col-gutter-md q-my-lg row" };
6255
+ const _hoisted_2$a = { class: "justify-end q-col-gutter-md q-my-lg row" };
6225
6256
  const _hoisted_3$6 = { key: 1 };
6226
6257
 
6227
6258
  function render$k(_ctx, _cache, $props, $setup, $data, $options) {
@@ -6249,7 +6280,7 @@
6249
6280
  vue.renderSlot(_ctx.$slots, "default"),
6250
6281
  ($props.useActions)
6251
6282
  ? vue.renderSlot(_ctx.$slots, "actions", { key: 0 }, () => [
6252
- vue.createElementVNode("div", _hoisted_2$9, [
6283
+ vue.createElementVNode("div", _hoisted_2$a, [
6253
6284
  ($options.hasCancelButton)
6254
6285
  ? (vue.openBlock(), vue.createElementBlock("div", {
6255
6286
  key: 0,
@@ -6435,7 +6466,7 @@
6435
6466
  };
6436
6467
 
6437
6468
  const _hoisted_1$d = { class: "q-col-gutter-md row" };
6438
- const _hoisted_2$8 = {
6469
+ const _hoisted_2$9 = {
6439
6470
  key: 0,
6440
6471
  class: "full-width text-center"
6441
6472
  };
@@ -6473,7 +6504,7 @@
6473
6504
  }), 128 /* KEYED_FRAGMENT */)),
6474
6505
  vue.renderSlot(_ctx.$slots, "default", {}, () => [
6475
6506
  (!$options.hideShowMore)
6476
- ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_2$8, [
6507
+ ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_2$9, [
6477
6508
  vue.createVNode(_component_qas_btn, {
6478
6509
  class: "text-weight-bolder",
6479
6510
  color: "primary",
@@ -6660,6 +6691,9 @@
6660
6691
  }
6661
6692
  };
6662
6693
 
6694
+ const _hoisted_1$c = ["data-cy"];
6695
+ const _hoisted_2$8 = ["data-cy"];
6696
+
6663
6697
  function render$i(_ctx, _cache, $props, $setup, $data, $options) {
6664
6698
  return (vue.openBlock(), vue.createElementBlock("div", {
6665
6699
  class: vue.normalizeClass(_ctx.mx_classes)
@@ -6676,15 +6710,17 @@
6676
6710
  field: $data.slotValue[key]
6677
6711
  }, () => [
6678
6712
  vue.createElementVNode("header", {
6679
- class: vue.normalizeClass($props.headerClass)
6680
- }, vue.toDisplayString(field.label), 3 /* TEXT, CLASS */)
6713
+ class: vue.normalizeClass($props.headerClass),
6714
+ "data-cy": `grid-generator-${field.name}-field`
6715
+ }, vue.toDisplayString(field.label), 11 /* TEXT, CLASS, PROPS */, _hoisted_1$c)
6681
6716
  ]),
6682
6717
  vue.renderSlot(_ctx.$slots, "content", {
6683
6718
  field: $data.slotValue[key]
6684
6719
  }, () => [
6685
6720
  vue.createElementVNode("div", {
6686
- class: vue.normalizeClass($props.contentClass)
6687
- }, vue.toDisplayString($options.resultsByFields[key]), 3 /* TEXT, CLASS */)
6721
+ class: vue.normalizeClass($props.contentClass),
6722
+ "data-cy": `grid-generator-${field.name}-result`
6723
+ }, vue.toDisplayString($options.resultsByFields[key]), 11 /* TEXT, CLASS, PROPS */, _hoisted_2$8)
6688
6724
  ])
6689
6725
  ])
6690
6726
  ], 2 /* CLASS */))
@@ -6840,6 +6876,7 @@
6840
6876
  name: 'QasListItems',
6841
6877
 
6842
6878
  components: {
6879
+ QasBox: script$D,
6843
6880
  QasBtn: script$K
6844
6881
  },
6845
6882
 
@@ -6881,79 +6918,77 @@
6881
6918
  }
6882
6919
  };
6883
6920
 
6884
- const _hoisted_1$c = { class: "qas-list-items shadow-14" };
6885
-
6886
6921
  function render$f(_ctx, _cache, $props, $setup, $data, $options) {
6887
6922
  const _component_q_item_section = vue.resolveComponent("q-item-section");
6888
6923
  const _component_q_icon = vue.resolveComponent("q-icon");
6889
6924
  const _component_qas_btn = vue.resolveComponent("qas-btn");
6890
6925
  const _component_q_item = vue.resolveComponent("q-item");
6891
6926
  const _component_q_list = vue.resolveComponent("q-list");
6927
+ const _component_qas_box = vue.resolveComponent("qas-box");
6892
6928
  const _directive_ripple = vue.resolveDirective("ripple");
6893
6929
 
6894
- return (vue.openBlock(), vue.createElementBlock("div", _hoisted_1$c, [
6895
- vue.createVNode(_component_q_list, {
6896
- bordered: "",
6897
- class: "rounded-borders",
6898
- separator: ""
6899
- }, {
6900
- default: vue.withCtx(() => [
6901
- (vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList($props.list, (item, index) => {
6902
- return vue.withDirectives((vue.openBlock(), vue.createBlock(_component_q_item, {
6903
- key: index,
6904
- clickable: $props.useClickableItem,
6905
- onClick: $event => ($options.onClick({ item, index }, true))
6906
- }, {
6907
- default: vue.withCtx(() => [
6908
- vue.renderSlot(_ctx.$slots, "item", {
6909
- index: index,
6910
- item: item
6911
- }, () => [
6912
- vue.createVNode(_component_q_item_section, null, {
6913
- default: vue.withCtx(() => [
6914
- vue.renderSlot(_ctx.$slots, "item-section", {
6915
- index: index,
6916
- item: item
6917
- })
6918
- ]),
6919
- _: 2 /* DYNAMIC */
6920
- }, 1024 /* DYNAMIC_SLOTS */),
6921
- ($props.useSectionActions)
6922
- ? (vue.openBlock(), vue.createBlock(_component_q_item_section, {
6923
- key: 0,
6924
- side: ""
6925
- }, {
6926
- default: vue.withCtx(() => [
6927
- vue.renderSlot(_ctx.$slots, "item-section-side", {
6928
- index: index,
6929
- item: item
6930
- }, () => [
6931
- vue.createVNode(_component_qas_btn, {
6932
- flat: "",
6933
- round: "",
6934
- onClick: $event => ($options.onClick({ item, index }))
6935
- }, {
6936
- default: vue.withCtx(() => [
6937
- vue.createVNode(_component_q_icon, vue.normalizeProps(vue.guardReactiveProps($props.iconProps)), null, 16 /* FULL_PROPS */)
6938
- ]),
6939
- _: 2 /* DYNAMIC */
6940
- }, 1032 /* PROPS, DYNAMIC_SLOTS */, ["onClick"])
6941
- ])
6942
- ]),
6943
- _: 2 /* DYNAMIC */
6944
- }, 1024 /* DYNAMIC_SLOTS */))
6945
- : vue.createCommentVNode("v-if", true)
6946
- ])
6947
- ]),
6948
- _: 2 /* DYNAMIC */
6949
- }, 1032 /* PROPS, DYNAMIC_SLOTS */, ["clickable", "onClick"])), [
6950
- [_directive_ripple]
6951
- ])
6952
- }), 128 /* KEYED_FRAGMENT */))
6953
- ]),
6954
- _: 3 /* FORWARDED */
6955
- })
6956
- ]))
6930
+ return (vue.openBlock(), vue.createBlock(_component_qas_box, { class: "qas-list-items" }, {
6931
+ default: vue.withCtx(() => [
6932
+ vue.createVNode(_component_q_list, { separator: "" }, {
6933
+ default: vue.withCtx(() => [
6934
+ (vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList($props.list, (item, index) => {
6935
+ return vue.withDirectives((vue.openBlock(), vue.createBlock(_component_q_item, {
6936
+ key: index,
6937
+ clickable: $props.useClickableItem,
6938
+ onClick: $event => ($options.onClick({ item, index }, true))
6939
+ }, {
6940
+ default: vue.withCtx(() => [
6941
+ vue.renderSlot(_ctx.$slots, "item", {
6942
+ index: index,
6943
+ item: item
6944
+ }, () => [
6945
+ vue.createVNode(_component_q_item_section, null, {
6946
+ default: vue.withCtx(() => [
6947
+ vue.renderSlot(_ctx.$slots, "item-section", {
6948
+ index: index,
6949
+ item: item
6950
+ })
6951
+ ]),
6952
+ _: 2 /* DYNAMIC */
6953
+ }, 1024 /* DYNAMIC_SLOTS */),
6954
+ ($props.useSectionActions)
6955
+ ? (vue.openBlock(), vue.createBlock(_component_q_item_section, {
6956
+ key: 0,
6957
+ side: ""
6958
+ }, {
6959
+ default: vue.withCtx(() => [
6960
+ vue.renderSlot(_ctx.$slots, "item-section-side", {
6961
+ index: index,
6962
+ item: item
6963
+ }, () => [
6964
+ vue.createVNode(_component_qas_btn, {
6965
+ flat: "",
6966
+ round: "",
6967
+ onClick: $event => ($options.onClick({ item, index }))
6968
+ }, {
6969
+ default: vue.withCtx(() => [
6970
+ vue.createVNode(_component_q_icon, vue.normalizeProps(vue.guardReactiveProps($props.iconProps)), null, 16 /* FULL_PROPS */)
6971
+ ]),
6972
+ _: 2 /* DYNAMIC */
6973
+ }, 1032 /* PROPS, DYNAMIC_SLOTS */, ["onClick"])
6974
+ ])
6975
+ ]),
6976
+ _: 2 /* DYNAMIC */
6977
+ }, 1024 /* DYNAMIC_SLOTS */))
6978
+ : vue.createCommentVNode("v-if", true)
6979
+ ])
6980
+ ]),
6981
+ _: 2 /* DYNAMIC */
6982
+ }, 1032 /* PROPS, DYNAMIC_SLOTS */, ["clickable", "onClick"])), [
6983
+ [_directive_ripple]
6984
+ ])
6985
+ }), 128 /* KEYED_FRAGMENT */))
6986
+ ]),
6987
+ _: 3 /* FORWARDED */
6988
+ })
6989
+ ]),
6990
+ _: 3 /* FORWARDED */
6991
+ }))
6957
6992
  }
6958
6993
 
6959
6994
  script$f.render = render$f;
@@ -7019,11 +7054,11 @@
7019
7054
  },
7020
7055
 
7021
7056
  resultsModel () {
7022
- return this.$store.getters[`${this.entity}/list`]
7057
+ return storeAdapter.getState.call(this, { entity: this.entity, key: 'list' })
7023
7058
  },
7024
7059
 
7025
7060
  totalPages () {
7026
- return this.$store.getters[`${this.entity}/totalPages`]
7061
+ return storeAdapter.getState.call(this, { entity: this.entity, key: 'totalPages' })
7027
7062
  },
7028
7063
 
7029
7064
  showResults () {
@@ -7074,7 +7109,11 @@
7074
7109
  `QasListView - fetchList -> Payload do parâmetro do ${this.entity}/fetchList`, [payload]
7075
7110
  );
7076
7111
 
7077
- const response = await this.$store.dispatch(`${this.entity}/fetchList`, payload);
7112
+ const response = await storeAdapter.getAction.call(this, {
7113
+ entity: this.entity,
7114
+ key: 'fetchList',
7115
+ payload
7116
+ });
7078
7117
 
7079
7118
  const { errors, fields, metadata } = response.data;
7080
7119
 
@@ -7379,6 +7418,11 @@
7379
7418
  default: 'destroyed'
7380
7419
  },
7381
7420
 
7421
+ disabledRows: {
7422
+ type: [Array, Boolean],
7423
+ default: false
7424
+ },
7425
+
7382
7426
  errors: {
7383
7427
  type: [Array, Object],
7384
7428
  default: () => ({})
@@ -7428,6 +7472,11 @@
7428
7472
  default: () => ({})
7429
7473
  },
7430
7474
 
7475
+ useAdd: {
7476
+ type: Boolean,
7477
+ default: true
7478
+ },
7479
+
7431
7480
  useAnimation: {
7432
7481
  type: Boolean,
7433
7482
  default: true
@@ -7601,6 +7650,22 @@
7601
7650
  }
7602
7651
 
7603
7652
  return this.fieldLabel
7653
+ },
7654
+
7655
+ isDisabledRow (row) {
7656
+ if (!this.disabledRows) return false
7657
+
7658
+ if (typeof this.disabledRows === 'boolean') return true
7659
+
7660
+ return this.disabledRows.includes(row[this.identifierItemKey])
7661
+ },
7662
+
7663
+ hasBlockActions (row) {
7664
+ return !this.useInlineActions && !this.isDisabledRow(row)
7665
+ },
7666
+
7667
+ hasInlineActions (row) {
7668
+ return this.useInlineActions && !this.isDisabledRow(row)
7604
7669
  }
7605
7670
  }
7606
7671
  };
@@ -7621,7 +7686,10 @@
7621
7686
  const _hoisted_8 = { class: "col-auto" };
7622
7687
  const _hoisted_9 = { class: "col-auto" };
7623
7688
  const _hoisted_10 = { class: "col-12" };
7624
- const _hoisted_11 = { class: "q-mt-md" };
7689
+ const _hoisted_11 = {
7690
+ key: 0,
7691
+ class: "q-mt-md"
7692
+ };
7625
7693
  const _hoisted_12 = { class: "col" };
7626
7694
  const _hoisted_13 = { class: "col-auto" };
7627
7695
  const _hoisted_14 = {
@@ -7669,7 +7737,7 @@
7669
7737
  label: $options.getRowLabel(index)
7670
7738
  }, null, 8 /* PROPS */, ["label"]))
7671
7739
  : vue.createCommentVNode("v-if", true),
7672
- (!$props.useInlineActions)
7740
+ ($options.hasBlockActions(row))
7673
7741
  ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_6, [
7674
7742
  ($props.useDuplicate)
7675
7743
  ? (vue.openBlock(), vue.createBlock(_component_qas_btn, vue.mergeProps({ key: 0 }, $props.buttonDuplicateProps, {
@@ -7700,6 +7768,7 @@
7700
7768
  "onUpdate:modelValue": [$event => (($data.nested[index]) = $event), $event => ($options.updateValuesFromInput($event, index))],
7701
7769
  class: vue.normalizeClass($options.formClasses),
7702
7770
  columns: $props.formColumns,
7771
+ disable: $options.isDisabledRow(row),
7703
7772
  errors: $options.transformedErrors[index],
7704
7773
  fields: $options.children,
7705
7774
  "fields-props": $props.fieldsProps
@@ -7709,15 +7778,16 @@
7709
7778
  name: key,
7710
7779
  fn: vue.withCtx((scope) => [
7711
7780
  vue.renderSlot(_ctx.$slots, key, vue.mergeProps(scope, {
7781
+ disabled: $options.isDisabledRow(row),
7712
7782
  errors: $options.transformedErrors,
7713
7783
  index: index
7714
7784
  }))
7715
7785
  ])
7716
7786
  }
7717
7787
  })
7718
- ]), 1032 /* PROPS, DYNAMIC_SLOTS */, ["modelValue", "onUpdate:modelValue", "class", "columns", "errors", "fields", "fields-props"])
7788
+ ]), 1032 /* PROPS, DYNAMIC_SLOTS */, ["modelValue", "onUpdate:modelValue", "class", "columns", "disable", "errors", "fields", "fields-props"])
7719
7789
  ]),
7720
- ($props.useInlineActions)
7790
+ ($options.hasInlineActions(row))
7721
7791
  ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_7, [
7722
7792
  vue.createElementVNode("div", _hoisted_8, [
7723
7793
  ($props.useDuplicate)
@@ -7762,47 +7832,49 @@
7762
7832
  ]),
7763
7833
  _: 3 /* FORWARDED */
7764
7834
  }, 16 /* FULL_PROPS */)),
7765
- vue.createElementVNode("div", _hoisted_11, [
7766
- vue.renderSlot(_ctx.$slots, "add-input", { add: $options.add }, () => [
7767
- ($props.useInlineActions)
7768
- ? (vue.openBlock(), vue.createElementBlock("div", {
7769
- key: 0,
7770
- class: "cursor-pointer items-center q-col-gutter-x-md q-mt-md row",
7771
- onClick: _cache[1] || (_cache[1] = $event => ($options.add()))
7772
- }, [
7773
- vue.createElementVNode("div", _hoisted_12, [
7774
- vue.createVNode(_component_qas_input, {
7775
- class: "disabled no-pointer-events",
7776
- "hide-bottom-space": "",
7777
- label: $props.addInputLabel,
7778
- outlined: "",
7779
- onFocus: _cache[0] || (_cache[0] = $event => ($options.add()))
7780
- }, null, 8 /* PROPS */, ["label"])
7781
- ]),
7782
- vue.createElementVNode("div", _hoisted_13, [
7783
- vue.createVNode(_component_qas_btn, {
7784
- color: "green",
7785
- flat: "",
7786
- icon: "o_add_circle_outline",
7787
- round: ""
7788
- })
7789
- ])
7790
- ]))
7791
- : (vue.openBlock(), vue.createElementBlock("div", _hoisted_14, [
7792
- vue.createVNode(_component_qas_btn, {
7793
- class: "full-width q-py-md",
7794
- icon: "o_add",
7795
- outline: "",
7796
- onClick: _cache[2] || (_cache[2] = $event => ($options.add()))
7797
- }, {
7798
- default: vue.withCtx(() => [
7799
- vue.createTextVNode(vue.toDisplayString($props.addInputLabel), 1 /* TEXT */)
7800
- ]),
7801
- _: 1 /* STABLE */
7802
- })
7803
- ]))
7804
- ])
7805
- ])
7835
+ ($props.useAdd)
7836
+ ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_11, [
7837
+ vue.renderSlot(_ctx.$slots, "add-input", { add: $options.add }, () => [
7838
+ ($props.useInlineActions)
7839
+ ? (vue.openBlock(), vue.createElementBlock("div", {
7840
+ key: 0,
7841
+ class: "cursor-pointer items-center q-col-gutter-x-md q-mt-md row",
7842
+ onClick: _cache[1] || (_cache[1] = $event => ($options.add()))
7843
+ }, [
7844
+ vue.createElementVNode("div", _hoisted_12, [
7845
+ vue.createVNode(_component_qas_input, {
7846
+ class: "disabled no-pointer-events",
7847
+ "hide-bottom-space": "",
7848
+ label: $props.addInputLabel,
7849
+ outlined: "",
7850
+ onFocus: _cache[0] || (_cache[0] = $event => ($options.add()))
7851
+ }, null, 8 /* PROPS */, ["label"])
7852
+ ]),
7853
+ vue.createElementVNode("div", _hoisted_13, [
7854
+ vue.createVNode(_component_qas_btn, {
7855
+ color: "green",
7856
+ flat: "",
7857
+ icon: "o_add_circle_outline",
7858
+ round: ""
7859
+ })
7860
+ ])
7861
+ ]))
7862
+ : (vue.openBlock(), vue.createElementBlock("div", _hoisted_14, [
7863
+ vue.createVNode(_component_qas_btn, {
7864
+ class: "full-width q-py-md",
7865
+ icon: "o_add",
7866
+ outline: "",
7867
+ onClick: _cache[2] || (_cache[2] = $event => ($options.add()))
7868
+ }, {
7869
+ default: vue.withCtx(() => [
7870
+ vue.createTextVNode(vue.toDisplayString($props.addInputLabel), 1 /* TEXT */)
7871
+ ]),
7872
+ _: 1 /* STABLE */
7873
+ })
7874
+ ]))
7875
+ ])
7876
+ ]))
7877
+ : vue.createCommentVNode("v-if", true)
7806
7878
  ], 512 /* NEED_PATCH */)
7807
7879
  ], 8 /* PROPS */, _hoisted_1$9))
7808
7880
  }
@@ -8951,7 +9023,7 @@
8951
9023
  },
8952
9024
 
8953
9025
  resultModel () {
8954
- return this.$store.getters[`${this.entity}/byId`](this.id) || {}
9026
+ return storeAdapter.getGetter.call(this, { entity: this.entity, key: 'byId' })(this.id) || {}
8955
9027
  }
8956
9028
  },
8957
9029
 
@@ -8983,7 +9055,11 @@
8983
9055
  [payload]
8984
9056
  );
8985
9057
 
8986
- const response = await this.$store.dispatch(`${this.entity}/fetchSingle`, payload);
9058
+ const response = await storeAdapter.getAction.call(this, {
9059
+ entity: this.entity,
9060
+ key: 'fetchSingle',
9061
+ payload
9062
+ });
8987
9063
 
8988
9064
  const { errors, fields, metadata } = response.data;
8989
9065
 
@@ -9174,9 +9250,13 @@
9174
9250
  quasar.Loading.show();
9175
9251
 
9176
9252
  try {
9177
- const response = await this.$store.dispatch(`${this.entity}/replace`, {
9178
- payload: { order: this.identifiers },
9179
- url: this.url || `${this.entity}/sort`
9253
+ const response = await storeAdapter.getAction.call(this, {
9254
+ entity: this.entity,
9255
+ key: 'replace',
9256
+ payload: {
9257
+ payload: { order: this.identifiers },
9258
+ url: this.url || `${this.entity}/sort`
9259
+ }
9180
9260
  });
9181
9261
 
9182
9262
  this.$emit('success', response);
@@ -10063,7 +10143,7 @@
10063
10143
 
10064
10144
  var name = "@bildvitta/quasar-ui-asteroid";
10065
10145
  var description = "Asteroid";
10066
- var version$1 = "3.0.0";
10146
+ var version$1 = "3.1.0-beta.2";
10067
10147
  var author = "Bild & Vitta <systemteam@bild.com.br>";
10068
10148
  var license = "MIT";
10069
10149
  var main = "dist/asteroid.cjs.min.js";
@@ -10107,6 +10187,7 @@
10107
10187
  sass: "^1.49.0"
10108
10188
  };
10109
10189
  var dependencies = {
10190
+ "@bildvitta/store-adapter": "^1.0.0-beta.22",
10110
10191
  "@fawmi/vue-google-maps": "^0.9.4",
10111
10192
  autonumeric: "^4.6.0",
10112
10193
  axios: "^0.21.1",