@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,5 +1,5 @@
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
  */
@@ -12,6 +12,7 @@ var humps = require('humps');
12
12
  var dateFns = require('date-fns');
13
13
  var locale = require('date-fns/locale');
14
14
  var quasar = require('quasar');
15
+ var storeAdapter = require('@bildvitta/store-adapter');
15
16
  var lodashEs = require('lodash-es');
16
17
  var AutoNumeric = require('autonumeric');
17
18
  var Pica = require('pica');
@@ -60,7 +61,7 @@ var script$L = {
60
61
  };
61
62
 
62
63
  const _hoisted_1$t = { class: "col-12 col-sm-auto" };
63
- const _hoisted_2$l = { class: "col-12 col-sm-auto" };
64
+ const _hoisted_2$m = { class: "col-12 col-sm-auto" };
64
65
 
65
66
  function render$L(_ctx, _cache, $props, $setup, $data, $options) {
66
67
  return (vue.openBlock(), vue.createElementBlock("div", {
@@ -69,7 +70,7 @@ function render$L(_ctx, _cache, $props, $setup, $data, $options) {
69
70
  vue.createElementVNode("div", _hoisted_1$t, [
70
71
  vue.renderSlot(_ctx.$slots, "secondary")
71
72
  ]),
72
- vue.createElementVNode("div", _hoisted_2$l, [
73
+ vue.createElementVNode("div", _hoisted_2$m, [
73
74
  vue.renderSlot(_ctx.$slots, "primary")
74
75
  ])
75
76
  ], 2 /* CLASS */))
@@ -195,7 +196,7 @@ var script$J = {
195
196
  };
196
197
 
197
198
  const _hoisted_1$s = { class: "flex items-center justify-center q-gutter-x-md" };
198
- const _hoisted_2$k = { class: "flex items-center justify-center q-gutter-x-sm" };
199
+ const _hoisted_2$l = { class: "flex items-center justify-center q-gutter-x-sm" };
199
200
 
200
201
  function render$J(_ctx, _cache, $props, $setup, $data, $options) {
201
202
  const _component_q_icon = vue.resolveComponent("q-icon");
@@ -259,7 +260,7 @@ function render$J(_ctx, _cache, $props, $setup, $data, $options) {
259
260
  default: vue.withCtx(() => [
260
261
  vue.createVNode(_component_q_item_section, null, {
261
262
  default: vue.withCtx(() => [
262
- vue.createElementVNode("div", _hoisted_2$k, [
263
+ vue.createElementVNode("div", _hoisted_2$l, [
263
264
  vue.createVNode(_component_q_icon, {
264
265
  name: $props.deleteIcon,
265
266
  size: "sm"
@@ -763,7 +764,7 @@ var script$H = {
763
764
  };
764
765
 
765
766
  const _hoisted_1$r = { class: "q-gutter-md q-mr-lg" };
766
- const _hoisted_2$j = {
767
+ const _hoisted_2$k = {
767
768
  key: 0,
768
769
  class: "text-bold text-h5"
769
770
  };
@@ -789,7 +790,7 @@ function render$H(_ctx, _cache, $props, $setup, $data, $options) {
789
790
  vue.createElementVNode("div", _hoisted_1$r, [
790
791
  vue.renderSlot(_ctx.$slots, "header", {}, () => [
791
792
  ($props.title)
792
- ? (vue.openBlock(), vue.createElementBlock("h5", _hoisted_2$j, vue.toDisplayString($props.title), 1 /* TEXT */))
793
+ ? (vue.openBlock(), vue.createElementBlock("h5", _hoisted_2$k, vue.toDisplayString($props.title), 1 /* TEXT */))
793
794
  : vue.createCommentVNode("v-if", true)
794
795
  ]),
795
796
  vue.renderSlot(_ctx.$slots, "default", {}, () => [
@@ -1026,7 +1027,7 @@ var script$F = {
1026
1027
  };
1027
1028
 
1028
1029
  const _hoisted_1$q = ["alt", "src"];
1029
- const _hoisted_2$i = {
1030
+ const _hoisted_2$j = {
1030
1031
  key: 1,
1031
1032
  class: "text-bold text-grey-9 text-subtitle1 text-uppercase"
1032
1033
  };
@@ -1058,7 +1059,7 @@ function render$F(_ctx, _cache, $props, $setup, $data, $options) {
1058
1059
  const _directive_close_popup = vue.resolveDirective("close-popup");
1059
1060
 
1060
1061
  return (vue.openBlock(), vue.createBlock(_component_q_header, {
1061
- class: "bg-white qas-app-bar shadow-14",
1062
+ class: "bg-white qas-app-bar shadow-2",
1062
1063
  "height-hint": "70"
1063
1064
  }, {
1064
1065
  default: vue.withCtx(() => [
@@ -1095,7 +1096,7 @@ function render$F(_ctx, _cache, $props, $setup, $data, $options) {
1095
1096
  }, null, 8 /* PROPS */, _hoisted_1$q))
1096
1097
  : vue.createCommentVNode("v-if", true),
1097
1098
  ($options.showTitle)
1098
- ? (vue.openBlock(), vue.createElementBlock("span", _hoisted_2$i, vue.toDisplayString($props.title), 1 /* TEXT */))
1099
+ ? (vue.openBlock(), vue.createElementBlock("span", _hoisted_2$j, vue.toDisplayString($props.title), 1 /* TEXT */))
1099
1100
  : vue.createCommentVNode("v-if", true),
1100
1101
  ($options.hasDevelopmentBadge)
1101
1102
  ? (vue.openBlock(), vue.createBlock(_component_q_badge, {
@@ -1161,7 +1162,7 @@ function render$F(_ctx, _cache, $props, $setup, $data, $options) {
1161
1162
  ]),
1162
1163
  vue.createVNode(_component_q_menu, {
1163
1164
  anchor: "bottom end",
1164
- class: "shadow-14",
1165
+ class: "shadow-2",
1165
1166
  "max-height": "400px",
1166
1167
  offset: [0, 5],
1167
1168
  self: "top end"
@@ -1359,7 +1360,7 @@ var script$E = {
1359
1360
  };
1360
1361
 
1361
1362
  const _hoisted_1$p = { class: "column flex full-height justify-between no-wrap overflow-x-hidden" };
1362
- const _hoisted_2$h = {
1363
+ const _hoisted_2$i = {
1363
1364
  key: 0,
1364
1365
  class: "q-ma-md"
1365
1366
  };
@@ -1394,7 +1395,7 @@ function render$E(_ctx, _cache, $props, $setup, $data, $options) {
1394
1395
  vue.createElementVNode("div", _hoisted_1$p, [
1395
1396
  vue.createElementVNode("div", null, [
1396
1397
  ($options.displayModuleSection)
1397
- ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_2$h, [
1398
+ ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_2$i, [
1398
1399
  _hoisted_3$d,
1399
1400
  vue.createVNode(_component_qas_select, {
1400
1401
  modelValue: $data.module,
@@ -1547,7 +1548,7 @@ var script$D = {
1547
1548
  boxClass () {
1548
1549
  return {
1549
1550
  'border-primary-contrast': this.outlined,
1550
- 'shadow-14': !this.unelevated
1551
+ 'shadow-2': !this.unelevated
1551
1552
  }
1552
1553
  }
1553
1554
  }
@@ -1609,7 +1610,7 @@ var script$C = {
1609
1610
 
1610
1611
  cardClasses () {
1611
1612
  return {
1612
- 'shadow-14': !this.unelevated,
1613
+ 'shadow-2': !this.unelevated,
1613
1614
  'border-primary': this.outlined,
1614
1615
  'no-shadow': this.outlined,
1615
1616
  'bg-white': this.outlined
@@ -1645,7 +1646,7 @@ var script$C = {
1645
1646
  };
1646
1647
 
1647
1648
  const _hoisted_1$o = { class: "col-12 col-lg-3 col-md-4 col-sm-6" };
1648
- const _hoisted_2$g = {
1649
+ const _hoisted_2$h = {
1649
1650
  key: 0,
1650
1651
  class: "overflow-hidden relative-position w-full"
1651
1652
  };
@@ -1668,7 +1669,7 @@ function render$C(_ctx, _cache, $props, $setup, $data, $options) {
1668
1669
  }, {
1669
1670
  default: vue.withCtx(() => [
1670
1671
  ($props.useHeader)
1671
- ? (vue.openBlock(), vue.createElementBlock("header", _hoisted_2$g, [
1672
+ ? (vue.openBlock(), vue.createElementBlock("header", _hoisted_2$h, [
1672
1673
  vue.renderSlot(_ctx.$slots, "header", {}, () => [
1673
1674
  vue.createVNode(_component_q_carousel, {
1674
1675
  modelValue: $data.slideImage,
@@ -2209,12 +2210,12 @@ var script$y = {
2209
2210
  };
2210
2211
 
2211
2212
  const _hoisted_1$m = { class: "bg-grey-3 q-my-md q-pa-md rounded-borders" };
2212
- const _hoisted_2$f = /*#__PURE__*/vue.createElementVNode("summary", null, "Debugger", -1 /* HOISTED */);
2213
+ const _hoisted_2$g = /*#__PURE__*/vue.createElementVNode("summary", null, "Debugger", -1 /* HOISTED */);
2213
2214
  const _hoisted_3$b = { class: "row" };
2214
2215
 
2215
2216
  function render$y(_ctx, _cache, $props, $setup, $data, $options) {
2216
2217
  return (vue.openBlock(), vue.createElementBlock("details", _hoisted_1$m, [
2217
- _hoisted_2$f,
2218
+ _hoisted_2$g,
2218
2219
  vue.createElementVNode("div", _hoisted_3$b, [
2219
2220
  (vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList($props.inspect, (item, index) => {
2220
2221
  return (vue.openBlock(), vue.createElementBlock("pre", {
@@ -2382,7 +2383,7 @@ var script$x = {
2382
2383
  };
2383
2384
 
2384
2385
  const _hoisted_1$l = { class: "justify-between row" };
2385
- const _hoisted_2$e = { class: "text-bold text-h6" };
2386
+ const _hoisted_2$f = { class: "text-bold text-h6" };
2386
2387
  const _hoisted_3$a = { key: 0 };
2387
2388
 
2388
2389
  function render$x(_ctx, _cache, $props, $setup, $data, $options) {
@@ -2407,7 +2408,7 @@ function render$x(_ctx, _cache, $props, $setup, $data, $options) {
2407
2408
  default: vue.withCtx(() => [
2408
2409
  vue.renderSlot(_ctx.$slots, "header", {}, () => [
2409
2410
  vue.createElementVNode("div", _hoisted_1$l, [
2410
- vue.createElementVNode("div", _hoisted_2$e, vue.toDisplayString($props.card.title), 1 /* TEXT */),
2411
+ vue.createElementVNode("div", _hoisted_2$f, vue.toDisplayString($props.card.title), 1 /* TEXT */),
2411
2412
  ($props.useCloseButton)
2412
2413
  ? vue.withDirectives((vue.openBlock(), vue.createBlock(_component_qas_btn, {
2413
2414
  key: 0,
@@ -2729,7 +2730,11 @@ var script$w = {
2729
2730
  `QasDelete - destroy -> Payload do parâmetro do ${this.entity}/destroy`, [payload]
2730
2731
  );
2731
2732
 
2732
- await this.$store.dispatch(`${this.entity}/destroy`, payload);
2733
+ await storeAdapter.getAction.call(this, {
2734
+ entity: this.entity,
2735
+ key: 'destroy',
2736
+ payload
2737
+ });
2733
2738
 
2734
2739
  NotifySuccess('Item deletado com sucesso!');
2735
2740
 
@@ -3927,7 +3932,7 @@ var script$q = {
3927
3932
  };
3928
3933
 
3929
3934
  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" };
3930
- const _hoisted_2$d = { class: "col column items-start justify-center" };
3935
+ const _hoisted_2$e = { class: "col column items-start justify-center" };
3931
3936
  const _hoisted_3$9 = {
3932
3937
  key: 0,
3933
3938
  class: "q-uploader__title"
@@ -3986,7 +3991,7 @@ function render$q(_ctx, _cache, $props, $setup, $data, $options) {
3986
3991
  size: "24px"
3987
3992
  }))
3988
3993
  : vue.createCommentVNode("v-if", true),
3989
- vue.createElementVNode("div", _hoisted_2$d, [
3994
+ vue.createElementVNode("div", _hoisted_2$e, [
3990
3995
  (_ctx.$attrs.label)
3991
3996
  ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_3$9, vue.toDisplayString(_ctx.$attrs.label), 1 /* TEXT */))
3992
3997
  : vue.createCommentVNode("v-if", true),
@@ -4221,7 +4226,7 @@ const _hoisted_1$h = {
4221
4226
  ref: "signatureContainer",
4222
4227
  class: "qas-signature-pad relative-position"
4223
4228
  };
4224
- const _hoisted_2$c = ["id", "height"];
4229
+ const _hoisted_2$d = ["id", "height"];
4225
4230
 
4226
4231
  function render$p(_ctx, _cache, $props, $setup, $data, $options) {
4227
4232
  const _component_qas_btn = vue.resolveComponent("qas-btn");
@@ -4233,7 +4238,7 @@ function render$p(_ctx, _cache, $props, $setup, $data, $options) {
4233
4238
  ref: _ctx.$attrs.ref,
4234
4239
  class: "qas-signature-pad__canvas rounded-borders vertical-bottom",
4235
4240
  height: $props.height
4236
- }, null, 8 /* PROPS */, _hoisted_2$c),
4241
+ }, null, 8 /* PROPS */, _hoisted_2$d),
4237
4242
  (!$props.empty)
4238
4243
  ? (vue.openBlock(), vue.createBlock(_component_qas_btn, {
4239
4244
  key: 0,
@@ -4392,7 +4397,7 @@ var script$o = {
4392
4397
  };
4393
4398
 
4394
4399
  const _hoisted_1$g = { class: "col column items-start justify-center" };
4395
- const _hoisted_2$b = {
4400
+ const _hoisted_2$c = {
4396
4401
  key: 0,
4397
4402
  class: "q-uploader__title"
4398
4403
  };
@@ -4420,7 +4425,7 @@ function render$o(_ctx, _cache, $props, $setup, $data, $options) {
4420
4425
  }, [
4421
4426
  vue.createElementVNode("div", _hoisted_1$g, [
4422
4427
  ($props.uploadLabel)
4423
- ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_2$b, vue.toDisplayString($props.uploadLabel), 1 /* TEXT */))
4428
+ ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_2$c, vue.toDisplayString($props.uploadLabel), 1 /* TEXT */))
4424
4429
  : vue.createCommentVNode("v-if", true)
4425
4430
  ]),
4426
4431
  (!$props.readonly)
@@ -4804,7 +4809,7 @@ var script$m = {
4804
4809
  },
4805
4810
 
4806
4811
  fields () {
4807
- return this.$store.getters[`${this.entity}/filters`]
4812
+ return storeAdapter.getState.call(this, { entity: this.entity, key: 'filters' })
4808
4813
  },
4809
4814
 
4810
4815
  filterButtonColor () {
@@ -4820,7 +4825,7 @@ var script$m = {
4820
4825
  },
4821
4826
 
4822
4827
  hasFields () {
4823
- return !!Object.keys(this.fields).length
4828
+ return !!Object.keys(this.fields || {}).length
4824
4829
  },
4825
4830
 
4826
4831
  hasSearch () {
@@ -4902,7 +4907,12 @@ var script$m = {
4902
4907
  [{ url: this.url }]
4903
4908
  );
4904
4909
 
4905
- const response = await this.$store.dispatch(`${this.entity}/fetchFilters`, { url: this.url });
4910
+ const response = await storeAdapter.getAction.call(this, {
4911
+ entity: this.entity,
4912
+ key: 'fetchFilters',
4913
+ payload: { url: this.url }
4914
+ });
4915
+
4906
4916
  this.$emit('fetch-success', response);
4907
4917
 
4908
4918
  this.$qas.logger.group(
@@ -4976,7 +4986,7 @@ var script$m = {
4976
4986
  };
4977
4987
 
4978
4988
  const _hoisted_1$f = { class: "q-mb-lg" };
4979
- const _hoisted_2$a = {
4989
+ const _hoisted_2$b = {
4980
4990
  key: 0,
4981
4991
  class: "q-gutter-x-md row"
4982
4992
  };
@@ -5010,7 +5020,7 @@ function render$m(_ctx, _cache, $props, $setup, $data, $options) {
5010
5020
 
5011
5021
  return (vue.openBlock(), vue.createElementBlock("section", _hoisted_1$f, [
5012
5022
  ($options.showFilters)
5013
- ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_2$a, [
5023
+ ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_2$b, [
5014
5024
  ($options.showSearch)
5015
5025
  ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_3$7, [
5016
5026
  vue.renderSlot(_ctx.$slots, "search", { filter: $options.filter }, () => [
@@ -5023,6 +5033,7 @@ function render$m(_ctx, _cache, $props, $setup, $data, $options) {
5023
5033
  vue.createVNode(_component_qas_input, {
5024
5034
  modelValue: $data.search,
5025
5035
  "onUpdate:modelValue": _cache[1] || (_cache[1] = $event => (($data.search) = $event)),
5036
+ "data-cy": "filters-search-input",
5026
5037
  debounce: $options.debounce,
5027
5038
  dense: "",
5028
5039
  "hide-bottom-space": "",
@@ -5071,6 +5082,7 @@ function render$m(_ctx, _cache, $props, $setup, $data, $options) {
5071
5082
  ? (vue.openBlock(), vue.createBlock(_component_qas_btn, {
5072
5083
  key: 0,
5073
5084
  color: $options.filterButtonColor,
5085
+ "data-cy": "filters-btn",
5074
5086
  flat: "",
5075
5087
  icon: "o_filter_list",
5076
5088
  label: $options.filterButtonLabel
@@ -5107,14 +5119,16 @@ function render$m(_ctx, _cache, $props, $setup, $data, $options) {
5107
5119
  vue.createVNode(_component_qas_field, {
5108
5120
  modelValue: $data.filters[field.name],
5109
5121
  "onUpdate:modelValue": $event => (($data.filters[field.name]) = $event),
5122
+ "data-cy": `filters-${field.name}-field`,
5110
5123
  dense: "",
5111
5124
  field: field
5112
- }, null, 8 /* PROPS */, ["modelValue", "onUpdate:modelValue", "field"])
5125
+ }, null, 8 /* PROPS */, ["modelValue", "onUpdate:modelValue", "data-cy", "field"])
5113
5126
  ]))
5114
5127
  }), 128 /* KEYED_FRAGMENT */)),
5115
5128
  vue.createElementVNode("div", _hoisted_6$2, [
5116
5129
  vue.createVNode(_component_qas_btn, {
5117
5130
  class: "q-mr-sm",
5131
+ "data-cy": "filters-clear-btn",
5118
5132
  flat: "",
5119
5133
  label: "Limpar",
5120
5134
  "no-caps": false,
@@ -5124,6 +5138,7 @@ function render$m(_ctx, _cache, $props, $setup, $data, $options) {
5124
5138
  }, null, 8 /* PROPS */, ["onClick"]),
5125
5139
  vue.createVNode(_component_qas_btn, {
5126
5140
  color: "primary",
5141
+ "data-cy": "filters-submit-btn",
5127
5142
  label: "Filtrar",
5128
5143
  "no-caps": false,
5129
5144
  size: "12px",
@@ -5151,6 +5166,7 @@ function render$m(_ctx, _cache, $props, $setup, $data, $options) {
5151
5166
  return (vue.openBlock(), vue.createBlock(_component_q_chip, {
5152
5167
  key: key,
5153
5168
  color: "primary",
5169
+ "data-cy": `filters-${filterItem.value}-chip`,
5154
5170
  dense: "",
5155
5171
  removable: "",
5156
5172
  size: "md",
@@ -5161,7 +5177,7 @@ function render$m(_ctx, _cache, $props, $setup, $data, $options) {
5161
5177
  vue.createTextVNode(vue.toDisplayString(filterItem.label) + " = \"" + vue.toDisplayString($options.getChipValue(filterItem.value)) + "\"", 1 /* TEXT */)
5162
5178
  ]),
5163
5179
  _: 2 /* DYNAMIC */
5164
- }, 1032 /* PROPS, DYNAMIC_SLOTS */, ["onRemove"]))
5180
+ }, 1032 /* PROPS, DYNAMIC_SLOTS */, ["data-cy", "onRemove"]))
5165
5181
  }), 128 /* KEYED_FRAGMENT */))
5166
5182
  ]))
5167
5183
  : vue.createCommentVNode("v-if", true),
@@ -5314,6 +5330,10 @@ var script$l = {
5314
5330
  validator: value => {
5315
5331
  return typeof value === 'boolean' || ['xs', 'sm', 'md', 'lg', 'xl'].includes(value)
5316
5332
  }
5333
+ },
5334
+
5335
+ disable: {
5336
+ type: Boolean
5317
5337
  }
5318
5338
  },
5319
5339
 
@@ -5435,12 +5455,12 @@ function render$l(_ctx, _cache, $props, $setup, $data, $options) {
5435
5455
  class: vue.normalizeClass(_ctx.mx_getFieldClass(key))
5436
5456
  }, [
5437
5457
  vue.renderSlot(_ctx.$slots, `field-${field.name}`, { field: field }, () => [
5438
- vue.createVNode(_component_qas_field, vue.mergeProps($props.fieldsProps[field.name], {
5458
+ vue.createVNode(_component_qas_field, vue.mergeProps({ disable: $props.disable }, $props.fieldsProps[field.name], {
5439
5459
  error: $props.errors[key],
5440
5460
  field: field,
5441
5461
  "model-value": $props.modelValue[field.name],
5442
5462
  "onUpdate:modelValue": $event => ($options.updateModelValue(field.name, $event))
5443
- }), null, 16 /* FULL_PROPS */, ["error", "field", "model-value", "onUpdate:modelValue"])
5463
+ }), null, 16 /* FULL_PROPS */, ["disable", "error", "field", "model-value", "onUpdate:modelValue"])
5444
5464
  ])
5445
5465
  ], 2 /* CLASS */))
5446
5466
  }), 128 /* KEYED_FRAGMENT */))
@@ -5448,11 +5468,11 @@ function render$l(_ctx, _cache, $props, $setup, $data, $options) {
5448
5468
  (vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(fieldsetItem.fields.hidden, (field, key) => {
5449
5469
  return (vue.openBlock(), vue.createElementBlock("div", { key: key }, [
5450
5470
  vue.renderSlot(_ctx.$slots, `field-${field.name}`, { field: field }, () => [
5451
- vue.createVNode(_component_qas_field, vue.mergeProps($props.fieldsProps[field.name], {
5471
+ vue.createVNode(_component_qas_field, vue.mergeProps({ disable: $props.disable }, $props.fieldsProps[field.name], {
5452
5472
  field: field,
5453
5473
  "model-value": $props.modelValue[field.name],
5454
5474
  "onUpdate:modelValue": $event => ($options.updateModelValue(field.name, $event))
5455
- }), null, 16 /* FULL_PROPS */, ["field", "model-value", "onUpdate:modelValue"])
5475
+ }), null, 16 /* FULL_PROPS */, ["disable", "field", "model-value", "onUpdate:modelValue"])
5456
5476
  ])
5457
5477
  ]))
5458
5478
  }), 128 /* KEYED_FRAGMENT */))
@@ -5611,13 +5631,17 @@ var searchFilterMixin = {
5611
5631
 
5612
5632
  const { url, params, decamelizeFieldName } = this.mx_defaultLazyLoadingProps;
5613
5633
 
5614
- const { data } = await this.$store.dispatch(`${this.entity}/fetchFieldOptions`, {
5615
- url,
5616
- field: decamelizeFieldName ? humps.decamelize(this.name, { separator: '-' }) : this.name,
5617
- params: {
5618
- ...params,
5619
- search: this.mx_search,
5620
- offset: (this.mx_pagination.page - 1) * params.limit
5634
+ const { data } = await storeAdapter.getAction.call(this, {
5635
+ entity: this.entity,
5636
+ key: 'fetchFieldOptions',
5637
+ payload: {
5638
+ url,
5639
+ field: decamelizeFieldName ? humps.decamelize(this.name, { separator: '-' }) : this.name,
5640
+ params: {
5641
+ ...params,
5642
+ search: this.mx_search,
5643
+ offset: (this.mx_pagination.page - 1) * params.limit
5644
+ }
5621
5645
  }
5622
5646
  });
5623
5647
 
@@ -6053,7 +6077,11 @@ var script$k = {
6053
6077
  `QasFormView - fetchSingle -> payload do parâmetro do ${this.entity}/fetchSingle`, [payload]
6054
6078
  );
6055
6079
 
6056
- const response = await this.$store.dispatch(`${this.entity}/fetchSingle`, payload);
6080
+ const response = await storeAdapter.getAction.call(this, {
6081
+ entity: this.entity,
6082
+ key: 'fetchSingle',
6083
+ payload
6084
+ });
6057
6085
 
6058
6086
  const { errors, fields, metadata, result } = response.data;
6059
6087
 
@@ -6188,7 +6216,11 @@ var script$k = {
6188
6216
  `QasFormView - submit -> payload do ${this.entity}/${this.mode}`, [payload]
6189
6217
  );
6190
6218
 
6191
- const response = await this.$store.dispatch(`${this.entity}/${this.mode}`, payload);
6219
+ const response = await storeAdapter.getAction.call(this, {
6220
+ entity: this.entity,
6221
+ key: this.mode,
6222
+ payload
6223
+ });
6192
6224
 
6193
6225
  if (this.useDialogOnUnsavedChanges) {
6194
6226
  this.cachedResult = quasar.extend(true, {}, this.modelValue);
@@ -6234,7 +6266,7 @@ var script$k = {
6234
6266
  };
6235
6267
 
6236
6268
  const _hoisted_1$e = { key: 0 };
6237
- const _hoisted_2$9 = { class: "justify-end q-col-gutter-md q-my-lg row" };
6269
+ const _hoisted_2$a = { class: "justify-end q-col-gutter-md q-my-lg row" };
6238
6270
  const _hoisted_3$6 = { key: 1 };
6239
6271
 
6240
6272
  function render$k(_ctx, _cache, $props, $setup, $data, $options) {
@@ -6262,7 +6294,7 @@ function render$k(_ctx, _cache, $props, $setup, $data, $options) {
6262
6294
  vue.renderSlot(_ctx.$slots, "default"),
6263
6295
  ($props.useActions)
6264
6296
  ? vue.renderSlot(_ctx.$slots, "actions", { key: 0 }, () => [
6265
- vue.createElementVNode("div", _hoisted_2$9, [
6297
+ vue.createElementVNode("div", _hoisted_2$a, [
6266
6298
  ($options.hasCancelButton)
6267
6299
  ? (vue.openBlock(), vue.createElementBlock("div", {
6268
6300
  key: 0,
@@ -6448,7 +6480,7 @@ var script$j = {
6448
6480
  };
6449
6481
 
6450
6482
  const _hoisted_1$d = { class: "q-col-gutter-md row" };
6451
- const _hoisted_2$8 = {
6483
+ const _hoisted_2$9 = {
6452
6484
  key: 0,
6453
6485
  class: "full-width text-center"
6454
6486
  };
@@ -6486,7 +6518,7 @@ function render$j(_ctx, _cache, $props, $setup, $data, $options) {
6486
6518
  }), 128 /* KEYED_FRAGMENT */)),
6487
6519
  vue.renderSlot(_ctx.$slots, "default", {}, () => [
6488
6520
  (!$options.hideShowMore)
6489
- ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_2$8, [
6521
+ ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_2$9, [
6490
6522
  vue.createVNode(_component_qas_btn, {
6491
6523
  class: "text-weight-bolder",
6492
6524
  color: "primary",
@@ -6673,6 +6705,9 @@ var script$i = {
6673
6705
  }
6674
6706
  };
6675
6707
 
6708
+ const _hoisted_1$c = ["data-cy"];
6709
+ const _hoisted_2$8 = ["data-cy"];
6710
+
6676
6711
  function render$i(_ctx, _cache, $props, $setup, $data, $options) {
6677
6712
  return (vue.openBlock(), vue.createElementBlock("div", {
6678
6713
  class: vue.normalizeClass(_ctx.mx_classes)
@@ -6689,15 +6724,17 @@ function render$i(_ctx, _cache, $props, $setup, $data, $options) {
6689
6724
  field: $data.slotValue[key]
6690
6725
  }, () => [
6691
6726
  vue.createElementVNode("header", {
6692
- class: vue.normalizeClass($props.headerClass)
6693
- }, vue.toDisplayString(field.label), 3 /* TEXT, CLASS */)
6727
+ class: vue.normalizeClass($props.headerClass),
6728
+ "data-cy": `grid-generator-${field.name}-field`
6729
+ }, vue.toDisplayString(field.label), 11 /* TEXT, CLASS, PROPS */, _hoisted_1$c)
6694
6730
  ]),
6695
6731
  vue.renderSlot(_ctx.$slots, "content", {
6696
6732
  field: $data.slotValue[key]
6697
6733
  }, () => [
6698
6734
  vue.createElementVNode("div", {
6699
- class: vue.normalizeClass($props.contentClass)
6700
- }, vue.toDisplayString($options.resultsByFields[key]), 3 /* TEXT, CLASS */)
6735
+ class: vue.normalizeClass($props.contentClass),
6736
+ "data-cy": `grid-generator-${field.name}-result`
6737
+ }, vue.toDisplayString($options.resultsByFields[key]), 11 /* TEXT, CLASS, PROPS */, _hoisted_2$8)
6701
6738
  ])
6702
6739
  ])
6703
6740
  ], 2 /* CLASS */))
@@ -6853,6 +6890,7 @@ var script$f = {
6853
6890
  name: 'QasListItems',
6854
6891
 
6855
6892
  components: {
6893
+ QasBox: script$D,
6856
6894
  QasBtn: script$K
6857
6895
  },
6858
6896
 
@@ -6894,79 +6932,77 @@ var script$f = {
6894
6932
  }
6895
6933
  };
6896
6934
 
6897
- const _hoisted_1$c = { class: "qas-list-items shadow-14" };
6898
-
6899
6935
  function render$f(_ctx, _cache, $props, $setup, $data, $options) {
6900
6936
  const _component_q_item_section = vue.resolveComponent("q-item-section");
6901
6937
  const _component_q_icon = vue.resolveComponent("q-icon");
6902
6938
  const _component_qas_btn = vue.resolveComponent("qas-btn");
6903
6939
  const _component_q_item = vue.resolveComponent("q-item");
6904
6940
  const _component_q_list = vue.resolveComponent("q-list");
6941
+ const _component_qas_box = vue.resolveComponent("qas-box");
6905
6942
  const _directive_ripple = vue.resolveDirective("ripple");
6906
6943
 
6907
- return (vue.openBlock(), vue.createElementBlock("div", _hoisted_1$c, [
6908
- vue.createVNode(_component_q_list, {
6909
- bordered: "",
6910
- class: "rounded-borders",
6911
- separator: ""
6912
- }, {
6913
- default: vue.withCtx(() => [
6914
- (vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList($props.list, (item, index) => {
6915
- return vue.withDirectives((vue.openBlock(), vue.createBlock(_component_q_item, {
6916
- key: index,
6917
- clickable: $props.useClickableItem,
6918
- onClick: $event => ($options.onClick({ item, index }, true))
6919
- }, {
6920
- default: vue.withCtx(() => [
6921
- vue.renderSlot(_ctx.$slots, "item", {
6922
- index: index,
6923
- item: item
6924
- }, () => [
6925
- vue.createVNode(_component_q_item_section, null, {
6926
- default: vue.withCtx(() => [
6927
- vue.renderSlot(_ctx.$slots, "item-section", {
6928
- index: index,
6929
- item: item
6930
- })
6931
- ]),
6932
- _: 2 /* DYNAMIC */
6933
- }, 1024 /* DYNAMIC_SLOTS */),
6934
- ($props.useSectionActions)
6935
- ? (vue.openBlock(), vue.createBlock(_component_q_item_section, {
6936
- key: 0,
6937
- side: ""
6938
- }, {
6939
- default: vue.withCtx(() => [
6940
- vue.renderSlot(_ctx.$slots, "item-section-side", {
6941
- index: index,
6942
- item: item
6943
- }, () => [
6944
- vue.createVNode(_component_qas_btn, {
6945
- flat: "",
6946
- round: "",
6947
- onClick: $event => ($options.onClick({ item, index }))
6948
- }, {
6949
- default: vue.withCtx(() => [
6950
- vue.createVNode(_component_q_icon, vue.normalizeProps(vue.guardReactiveProps($props.iconProps)), null, 16 /* FULL_PROPS */)
6951
- ]),
6952
- _: 2 /* DYNAMIC */
6953
- }, 1032 /* PROPS, DYNAMIC_SLOTS */, ["onClick"])
6954
- ])
6955
- ]),
6956
- _: 2 /* DYNAMIC */
6957
- }, 1024 /* DYNAMIC_SLOTS */))
6958
- : vue.createCommentVNode("v-if", true)
6959
- ])
6960
- ]),
6961
- _: 2 /* DYNAMIC */
6962
- }, 1032 /* PROPS, DYNAMIC_SLOTS */, ["clickable", "onClick"])), [
6963
- [_directive_ripple]
6964
- ])
6965
- }), 128 /* KEYED_FRAGMENT */))
6966
- ]),
6967
- _: 3 /* FORWARDED */
6968
- })
6969
- ]))
6944
+ return (vue.openBlock(), vue.createBlock(_component_qas_box, { class: "qas-list-items" }, {
6945
+ default: vue.withCtx(() => [
6946
+ vue.createVNode(_component_q_list, { separator: "" }, {
6947
+ default: vue.withCtx(() => [
6948
+ (vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList($props.list, (item, index) => {
6949
+ return vue.withDirectives((vue.openBlock(), vue.createBlock(_component_q_item, {
6950
+ key: index,
6951
+ clickable: $props.useClickableItem,
6952
+ onClick: $event => ($options.onClick({ item, index }, true))
6953
+ }, {
6954
+ default: vue.withCtx(() => [
6955
+ vue.renderSlot(_ctx.$slots, "item", {
6956
+ index: index,
6957
+ item: item
6958
+ }, () => [
6959
+ vue.createVNode(_component_q_item_section, null, {
6960
+ default: vue.withCtx(() => [
6961
+ vue.renderSlot(_ctx.$slots, "item-section", {
6962
+ index: index,
6963
+ item: item
6964
+ })
6965
+ ]),
6966
+ _: 2 /* DYNAMIC */
6967
+ }, 1024 /* DYNAMIC_SLOTS */),
6968
+ ($props.useSectionActions)
6969
+ ? (vue.openBlock(), vue.createBlock(_component_q_item_section, {
6970
+ key: 0,
6971
+ side: ""
6972
+ }, {
6973
+ default: vue.withCtx(() => [
6974
+ vue.renderSlot(_ctx.$slots, "item-section-side", {
6975
+ index: index,
6976
+ item: item
6977
+ }, () => [
6978
+ vue.createVNode(_component_qas_btn, {
6979
+ flat: "",
6980
+ round: "",
6981
+ onClick: $event => ($options.onClick({ item, index }))
6982
+ }, {
6983
+ default: vue.withCtx(() => [
6984
+ vue.createVNode(_component_q_icon, vue.normalizeProps(vue.guardReactiveProps($props.iconProps)), null, 16 /* FULL_PROPS */)
6985
+ ]),
6986
+ _: 2 /* DYNAMIC */
6987
+ }, 1032 /* PROPS, DYNAMIC_SLOTS */, ["onClick"])
6988
+ ])
6989
+ ]),
6990
+ _: 2 /* DYNAMIC */
6991
+ }, 1024 /* DYNAMIC_SLOTS */))
6992
+ : vue.createCommentVNode("v-if", true)
6993
+ ])
6994
+ ]),
6995
+ _: 2 /* DYNAMIC */
6996
+ }, 1032 /* PROPS, DYNAMIC_SLOTS */, ["clickable", "onClick"])), [
6997
+ [_directive_ripple]
6998
+ ])
6999
+ }), 128 /* KEYED_FRAGMENT */))
7000
+ ]),
7001
+ _: 3 /* FORWARDED */
7002
+ })
7003
+ ]),
7004
+ _: 3 /* FORWARDED */
7005
+ }))
6970
7006
  }
6971
7007
 
6972
7008
  script$f.render = render$f;
@@ -7032,11 +7068,11 @@ var script$e = {
7032
7068
  },
7033
7069
 
7034
7070
  resultsModel () {
7035
- return this.$store.getters[`${this.entity}/list`]
7071
+ return storeAdapter.getState.call(this, { entity: this.entity, key: 'list' })
7036
7072
  },
7037
7073
 
7038
7074
  totalPages () {
7039
- return this.$store.getters[`${this.entity}/totalPages`]
7075
+ return storeAdapter.getState.call(this, { entity: this.entity, key: 'totalPages' })
7040
7076
  },
7041
7077
 
7042
7078
  showResults () {
@@ -7087,7 +7123,11 @@ var script$e = {
7087
7123
  `QasListView - fetchList -> Payload do parâmetro do ${this.entity}/fetchList`, [payload]
7088
7124
  );
7089
7125
 
7090
- const response = await this.$store.dispatch(`${this.entity}/fetchList`, payload);
7126
+ const response = await storeAdapter.getAction.call(this, {
7127
+ entity: this.entity,
7128
+ key: 'fetchList',
7129
+ payload
7130
+ });
7091
7131
 
7092
7132
  const { errors, fields, metadata } = response.data;
7093
7133
 
@@ -7392,6 +7432,11 @@ var script$c = {
7392
7432
  default: 'destroyed'
7393
7433
  },
7394
7434
 
7435
+ disabledRows: {
7436
+ type: [Array, Boolean],
7437
+ default: false
7438
+ },
7439
+
7395
7440
  errors: {
7396
7441
  type: [Array, Object],
7397
7442
  default: () => ({})
@@ -7441,6 +7486,11 @@ var script$c = {
7441
7486
  default: () => ({})
7442
7487
  },
7443
7488
 
7489
+ useAdd: {
7490
+ type: Boolean,
7491
+ default: true
7492
+ },
7493
+
7444
7494
  useAnimation: {
7445
7495
  type: Boolean,
7446
7496
  default: true
@@ -7614,6 +7664,22 @@ var script$c = {
7614
7664
  }
7615
7665
 
7616
7666
  return this.fieldLabel
7667
+ },
7668
+
7669
+ isDisabledRow (row) {
7670
+ if (!this.disabledRows) return false
7671
+
7672
+ if (typeof this.disabledRows === 'boolean') return true
7673
+
7674
+ return this.disabledRows.includes(row[this.identifierItemKey])
7675
+ },
7676
+
7677
+ hasBlockActions (row) {
7678
+ return !this.useInlineActions && !this.isDisabledRow(row)
7679
+ },
7680
+
7681
+ hasInlineActions (row) {
7682
+ return this.useInlineActions && !this.isDisabledRow(row)
7617
7683
  }
7618
7684
  }
7619
7685
  };
@@ -7634,7 +7700,10 @@ const _hoisted_7 = {
7634
7700
  const _hoisted_8 = { class: "col-auto" };
7635
7701
  const _hoisted_9 = { class: "col-auto" };
7636
7702
  const _hoisted_10 = { class: "col-12" };
7637
- const _hoisted_11 = { class: "q-mt-md" };
7703
+ const _hoisted_11 = {
7704
+ key: 0,
7705
+ class: "q-mt-md"
7706
+ };
7638
7707
  const _hoisted_12 = { class: "col" };
7639
7708
  const _hoisted_13 = { class: "col-auto" };
7640
7709
  const _hoisted_14 = {
@@ -7682,7 +7751,7 @@ function render$c(_ctx, _cache, $props, $setup, $data, $options) {
7682
7751
  label: $options.getRowLabel(index)
7683
7752
  }, null, 8 /* PROPS */, ["label"]))
7684
7753
  : vue.createCommentVNode("v-if", true),
7685
- (!$props.useInlineActions)
7754
+ ($options.hasBlockActions(row))
7686
7755
  ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_6, [
7687
7756
  ($props.useDuplicate)
7688
7757
  ? (vue.openBlock(), vue.createBlock(_component_qas_btn, vue.mergeProps({ key: 0 }, $props.buttonDuplicateProps, {
@@ -7713,6 +7782,7 @@ function render$c(_ctx, _cache, $props, $setup, $data, $options) {
7713
7782
  "onUpdate:modelValue": [$event => (($data.nested[index]) = $event), $event => ($options.updateValuesFromInput($event, index))],
7714
7783
  class: vue.normalizeClass($options.formClasses),
7715
7784
  columns: $props.formColumns,
7785
+ disable: $options.isDisabledRow(row),
7716
7786
  errors: $options.transformedErrors[index],
7717
7787
  fields: $options.children,
7718
7788
  "fields-props": $props.fieldsProps
@@ -7722,15 +7792,16 @@ function render$c(_ctx, _cache, $props, $setup, $data, $options) {
7722
7792
  name: key,
7723
7793
  fn: vue.withCtx((scope) => [
7724
7794
  vue.renderSlot(_ctx.$slots, key, vue.mergeProps(scope, {
7795
+ disabled: $options.isDisabledRow(row),
7725
7796
  errors: $options.transformedErrors,
7726
7797
  index: index
7727
7798
  }))
7728
7799
  ])
7729
7800
  }
7730
7801
  })
7731
- ]), 1032 /* PROPS, DYNAMIC_SLOTS */, ["modelValue", "onUpdate:modelValue", "class", "columns", "errors", "fields", "fields-props"])
7802
+ ]), 1032 /* PROPS, DYNAMIC_SLOTS */, ["modelValue", "onUpdate:modelValue", "class", "columns", "disable", "errors", "fields", "fields-props"])
7732
7803
  ]),
7733
- ($props.useInlineActions)
7804
+ ($options.hasInlineActions(row))
7734
7805
  ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_7, [
7735
7806
  vue.createElementVNode("div", _hoisted_8, [
7736
7807
  ($props.useDuplicate)
@@ -7775,47 +7846,49 @@ function render$c(_ctx, _cache, $props, $setup, $data, $options) {
7775
7846
  ]),
7776
7847
  _: 3 /* FORWARDED */
7777
7848
  }, 16 /* FULL_PROPS */)),
7778
- vue.createElementVNode("div", _hoisted_11, [
7779
- vue.renderSlot(_ctx.$slots, "add-input", { add: $options.add }, () => [
7780
- ($props.useInlineActions)
7781
- ? (vue.openBlock(), vue.createElementBlock("div", {
7782
- key: 0,
7783
- class: "cursor-pointer items-center q-col-gutter-x-md q-mt-md row",
7784
- onClick: _cache[1] || (_cache[1] = $event => ($options.add()))
7785
- }, [
7786
- vue.createElementVNode("div", _hoisted_12, [
7787
- vue.createVNode(_component_qas_input, {
7788
- class: "disabled no-pointer-events",
7789
- "hide-bottom-space": "",
7790
- label: $props.addInputLabel,
7791
- outlined: "",
7792
- onFocus: _cache[0] || (_cache[0] = $event => ($options.add()))
7793
- }, null, 8 /* PROPS */, ["label"])
7794
- ]),
7795
- vue.createElementVNode("div", _hoisted_13, [
7796
- vue.createVNode(_component_qas_btn, {
7797
- color: "green",
7798
- flat: "",
7799
- icon: "o_add_circle_outline",
7800
- round: ""
7801
- })
7802
- ])
7803
- ]))
7804
- : (vue.openBlock(), vue.createElementBlock("div", _hoisted_14, [
7805
- vue.createVNode(_component_qas_btn, {
7806
- class: "full-width q-py-md",
7807
- icon: "o_add",
7808
- outline: "",
7809
- onClick: _cache[2] || (_cache[2] = $event => ($options.add()))
7810
- }, {
7811
- default: vue.withCtx(() => [
7812
- vue.createTextVNode(vue.toDisplayString($props.addInputLabel), 1 /* TEXT */)
7813
- ]),
7814
- _: 1 /* STABLE */
7815
- })
7816
- ]))
7817
- ])
7818
- ])
7849
+ ($props.useAdd)
7850
+ ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_11, [
7851
+ vue.renderSlot(_ctx.$slots, "add-input", { add: $options.add }, () => [
7852
+ ($props.useInlineActions)
7853
+ ? (vue.openBlock(), vue.createElementBlock("div", {
7854
+ key: 0,
7855
+ class: "cursor-pointer items-center q-col-gutter-x-md q-mt-md row",
7856
+ onClick: _cache[1] || (_cache[1] = $event => ($options.add()))
7857
+ }, [
7858
+ vue.createElementVNode("div", _hoisted_12, [
7859
+ vue.createVNode(_component_qas_input, {
7860
+ class: "disabled no-pointer-events",
7861
+ "hide-bottom-space": "",
7862
+ label: $props.addInputLabel,
7863
+ outlined: "",
7864
+ onFocus: _cache[0] || (_cache[0] = $event => ($options.add()))
7865
+ }, null, 8 /* PROPS */, ["label"])
7866
+ ]),
7867
+ vue.createElementVNode("div", _hoisted_13, [
7868
+ vue.createVNode(_component_qas_btn, {
7869
+ color: "green",
7870
+ flat: "",
7871
+ icon: "o_add_circle_outline",
7872
+ round: ""
7873
+ })
7874
+ ])
7875
+ ]))
7876
+ : (vue.openBlock(), vue.createElementBlock("div", _hoisted_14, [
7877
+ vue.createVNode(_component_qas_btn, {
7878
+ class: "full-width q-py-md",
7879
+ icon: "o_add",
7880
+ outline: "",
7881
+ onClick: _cache[2] || (_cache[2] = $event => ($options.add()))
7882
+ }, {
7883
+ default: vue.withCtx(() => [
7884
+ vue.createTextVNode(vue.toDisplayString($props.addInputLabel), 1 /* TEXT */)
7885
+ ]),
7886
+ _: 1 /* STABLE */
7887
+ })
7888
+ ]))
7889
+ ])
7890
+ ]))
7891
+ : vue.createCommentVNode("v-if", true)
7819
7892
  ], 512 /* NEED_PATCH */)
7820
7893
  ], 8 /* PROPS */, _hoisted_1$9))
7821
7894
  }
@@ -8964,7 +9037,7 @@ var script$5 = {
8964
9037
  },
8965
9038
 
8966
9039
  resultModel () {
8967
- return this.$store.getters[`${this.entity}/byId`](this.id) || {}
9040
+ return storeAdapter.getGetter.call(this, { entity: this.entity, key: 'byId' })(this.id) || {}
8968
9041
  }
8969
9042
  },
8970
9043
 
@@ -8996,7 +9069,11 @@ var script$5 = {
8996
9069
  [payload]
8997
9070
  );
8998
9071
 
8999
- const response = await this.$store.dispatch(`${this.entity}/fetchSingle`, payload);
9072
+ const response = await storeAdapter.getAction.call(this, {
9073
+ entity: this.entity,
9074
+ key: 'fetchSingle',
9075
+ payload
9076
+ });
9000
9077
 
9001
9078
  const { errors, fields, metadata } = response.data;
9002
9079
 
@@ -9187,9 +9264,13 @@ var script$4 = {
9187
9264
  quasar.Loading.show();
9188
9265
 
9189
9266
  try {
9190
- const response = await this.$store.dispatch(`${this.entity}/replace`, {
9191
- payload: { order: this.identifiers },
9192
- url: this.url || `${this.entity}/sort`
9267
+ const response = await storeAdapter.getAction.call(this, {
9268
+ entity: this.entity,
9269
+ key: 'replace',
9270
+ payload: {
9271
+ payload: { order: this.identifiers },
9272
+ url: this.url || `${this.entity}/sort`
9273
+ }
9193
9274
  });
9194
9275
 
9195
9276
  this.$emit('success', response);
@@ -10076,7 +10157,7 @@ script.__file = "src/components/transfer/QasTransfer.vue";
10076
10157
 
10077
10158
  var name = "@bildvitta/quasar-ui-asteroid";
10078
10159
  var description = "Asteroid";
10079
- var version$1 = "3.0.0";
10160
+ var version$1 = "3.1.0-beta.2";
10080
10161
  var author = "Bild & Vitta <systemteam@bild.com.br>";
10081
10162
  var license = "MIT";
10082
10163
  var main = "dist/asteroid.cjs.min.js";
@@ -10120,6 +10201,7 @@ var devDependencies = {
10120
10201
  sass: "^1.49.0"
10121
10202
  };
10122
10203
  var dependencies = {
10204
+ "@bildvitta/store-adapter": "^1.0.0-beta.22",
10123
10205
  "@fawmi/vue-google-maps": "^0.9.4",
10124
10206
  autonumeric: "^4.6.0",
10125
10207
  axios: "^0.21.1",