@bildvitta/quasar-ui-asteroid 3.0.0 → 3.1.0-beta.0
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.
- package/dist/api/QasFormGenerator.json +5 -0
- package/dist/api/QasNestedFields.json +22 -1
- package/dist/asteroid.cjs.css +1 -1
- package/dist/asteroid.cjs.js +144 -72
- package/dist/asteroid.cjs.min.js +2 -2
- package/dist/asteroid.esm.css +1 -1
- package/dist/asteroid.esm.js +144 -72
- package/dist/asteroid.esm.min.js +2 -2
- package/dist/asteroid.umd.css +1 -1
- package/dist/asteroid.umd.js +147 -76
- package/dist/asteroid.umd.min.js +2 -2
- package/dist/vetur/asteroid-attributes.json +12 -0
- package/dist/vetur/asteroid-tags.json +3 -0
- package/package.json +2 -1
- package/src/components/delete/QasDelete.vue +6 -1
- package/src/components/filters/QasFilters.vue +9 -3
- package/src/components/form-generator/QasFormGenerator.vue +6 -2
- package/src/components/form-generator/QasFormGenerator.yml +5 -0
- package/src/components/form-view/QasFormView.vue +11 -2
- package/src/components/list-view/QasListView.vue +8 -3
- package/src/components/nested-fields/QasNestedFields.vue +31 -5
- package/src/components/nested-fields/QasNestedFields.yml +16 -1
- package/src/components/single-view/QasSingleView.vue +7 -2
- package/src/components/sortable/QasSortable.vue +8 -3
- package/src/mixins/search-filter.js +12 -7
package/dist/asteroid.esm.css
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
@import"https://fonts.googleapis.com/css2?family=Inter:ital,wght@0,400;0,700;1,400;1,700&display=swap";:root{--qas-background-color: #f5f5f5;--qas-generic-border-radius: 8px}h1{font-size:6rem;font-weight:800;letter-spacing:0;line-height:6rem;margin:0}h2{font-size:3.75rem;font-weight:700;letter-spacing:0;line-height:3.75rem;margin:0}h3{font-size:3rem;font-weight:600;letter-spacing:0;line-height:2.5rem;margin:0}h4{font-size:2.125rem;font-weight:800;letter-spacing:0;line-height:2.5rem;margin:0}h5{font-size:1.5rem;font-weight:700;letter-spacing:0;line-height:2rem;margin:0}h6{font-size:1.25rem;font-weight:600;letter-spacing:0;line-height:2rem;margin:0}body{background-color:var(--qas-background-color)}.q-field--outlined .q-field__inner{background-color:#fff;border-radius:var(--qas-generic-border-radius)}.q-radio__inner::before{color:var(--q-primary)}.q-tabs__arrow{color:var(--q-primary)}.bg-no-repeat{background-repeat:no-repeat !important}.bg-size-contain{background-size:contain !important}.bg-size-cover{background-size:cover !important}.bg-position-bottom{background-position:bottom !important}.bg-position-center{background-position:center !important}.bg-position-left{background-position:left !important}.bg-position-right{background-position:right !important}.bg-position-top{background-position:top !important}.border-secondary-contrast:not(.border-top):not(.border-left):not(.border-bottom):not(.border-right),.border-secondary:not(.border-top):not(.border-left):not(.border-bottom):not(.border-right),.border-primary-contrast:not(.border-top):not(.border-left):not(.border-bottom):not(.border-right),.border-primary:not(.border-top):not(.border-left):not(.border-bottom):not(.border-right){border-width:1px !important}.border-primary{border:0 solid var(--q-primary) !important}.border-primary-contrast{border:0 solid var(--q-primary-contrast) !important}.border-secondary{border:0 solid var(--q-secondary) !important}.border-secondary-contrast{border:0 solid var(--q-secondary-contrast) !important}.border-top{border-top-width:1px !important}.border-left{border-left-width:1px !important}.border-bottom{border-bottom-width:1px !important}.border-right{border-right-width:1px !important}.rounded-borders-sm{border-radius:calc(var(--qas-generic-border-radius) / 2) !important}.rounded-borders-lg{border-radius:calc(var(--qas-generic-border-radius) * 2) !important}.rounded-borders-top{border-bottom-left-radius:0 !important;border-bottom-right-radius:0 !important}.rounded-borders-right{border-bottom-left-radius:0 !important;border-top-left-radius:0 !important}.rounded-borders-bottom{border-top-left-radius:0 !important;border-top-right-radius:0 !important}.rounded-borders-left{border-bottom-right-radius:0 !important;border-top-right-radius:0 !important}.container,.container-xs,.container-sm,.container-md,.container-lg,.container-xl{margin-left:auto;margin-right:auto;max-width:1280px;width:calc(100% - 80px)}.container.spaced,.container-xs.spaced,.container-sm.spaced,.container-md.spaced,.container-lg.spaced,.container-xl.spaced{padding-bottom:20px;padding-top:20px}@media(max-width: 599px){.container,.container-xs,.container-sm,.container-md,.container-lg,.container-xl{width:calc(100% - 20px)}}.container-xs{max-width:599px !important}.container-sm{max-width:1023px !important}.container-md{max-width:1439px !important}.container-lg{max-width:1919px !important}body{font-family:Inter,system-ui,sans-serif}.qs-lh-xs{line-height:.85 !important}.qs-lh-sm{line-height:1 !important}.qs-lh-md{line-height:1.15 !important}.qs-lh-lg{line-height:1.3 !important}.qs-lh-xl{line-height:1.5 !important}.opacity-10{opacity:0.1 !important}.opacity-20{opacity:0.2 !important}.opacity-30{opacity:0.3 !important}.opacity-40{opacity:0.4 !important}.opacity-50{opacity:0.5 !important}.opacity-60{opacity:0.6 !important}.opacity-70{opacity:0.7 !important}.opacity-80{opacity:0.8 !important}.opacity-90{opacity:0.9 !important}.text-baseline{vertical-align:baseline !important}.text-break{word-break:break-all !important}.text-underline{text-decoration:underline !important}.text-no-decoration{text-decoration:none !important}.unset{all:unset}a.unset,button.unset{cursor:pointer}.qas-app-bar__toolbar{height:70px}.qas-app-bar__brand{height:24px;margin-right:8px;position:relative;top:4px}.qas-app-bar__user{background-color:var(--qas-background-color);transition:background-color .3s cubic-bezier(0.25, 0.8, 0.5, 1)}.qas-app-bar__user:focus,.qas-app-bar__user:hover{background-color:rgba(255,255,255,.2)}.qas-app-bar__user-data{max-width:180px}.qas-app-bar__user-menu{width:260px}@media(max-width: 599px){.qas-app-bar__user-data{display:none}}.qas-alert{border-style:solid;border-width:0 10px}.
|
|
1
|
+
@import"https://fonts.googleapis.com/css2?family=Inter:ital,wght@0,400;0,700;1,400;1,700&display=swap";:root{--qas-background-color: #f5f5f5;--qas-generic-border-radius: 8px}h1{font-size:6rem;font-weight:800;letter-spacing:0;line-height:6rem;margin:0}h2{font-size:3.75rem;font-weight:700;letter-spacing:0;line-height:3.75rem;margin:0}h3{font-size:3rem;font-weight:600;letter-spacing:0;line-height:2.5rem;margin:0}h4{font-size:2.125rem;font-weight:800;letter-spacing:0;line-height:2.5rem;margin:0}h5{font-size:1.5rem;font-weight:700;letter-spacing:0;line-height:2rem;margin:0}h6{font-size:1.25rem;font-weight:600;letter-spacing:0;line-height:2rem;margin:0}body{background-color:var(--qas-background-color)}.q-field--outlined .q-field__inner{background-color:#fff;border-radius:var(--qas-generic-border-radius)}.q-radio__inner::before{color:var(--q-primary)}.q-tabs__arrow{color:var(--q-primary)}.bg-no-repeat{background-repeat:no-repeat !important}.bg-size-contain{background-size:contain !important}.bg-size-cover{background-size:cover !important}.bg-position-bottom{background-position:bottom !important}.bg-position-center{background-position:center !important}.bg-position-left{background-position:left !important}.bg-position-right{background-position:right !important}.bg-position-top{background-position:top !important}.border-secondary-contrast:not(.border-top):not(.border-left):not(.border-bottom):not(.border-right),.border-secondary:not(.border-top):not(.border-left):not(.border-bottom):not(.border-right),.border-primary-contrast:not(.border-top):not(.border-left):not(.border-bottom):not(.border-right),.border-primary:not(.border-top):not(.border-left):not(.border-bottom):not(.border-right){border-width:1px !important}.border-primary{border:0 solid var(--q-primary) !important}.border-primary-contrast{border:0 solid var(--q-primary-contrast) !important}.border-secondary{border:0 solid var(--q-secondary) !important}.border-secondary-contrast{border:0 solid var(--q-secondary-contrast) !important}.border-top{border-top-width:1px !important}.border-left{border-left-width:1px !important}.border-bottom{border-bottom-width:1px !important}.border-right{border-right-width:1px !important}.rounded-borders-sm{border-radius:calc(var(--qas-generic-border-radius) / 2) !important}.rounded-borders-lg{border-radius:calc(var(--qas-generic-border-radius) * 2) !important}.rounded-borders-top{border-bottom-left-radius:0 !important;border-bottom-right-radius:0 !important}.rounded-borders-right{border-bottom-left-radius:0 !important;border-top-left-radius:0 !important}.rounded-borders-bottom{border-top-left-radius:0 !important;border-top-right-radius:0 !important}.rounded-borders-left{border-bottom-right-radius:0 !important;border-top-right-radius:0 !important}.container,.container-xs,.container-sm,.container-md,.container-lg,.container-xl{margin-left:auto;margin-right:auto;max-width:1280px;width:calc(100% - 80px)}.container.spaced,.container-xs.spaced,.container-sm.spaced,.container-md.spaced,.container-lg.spaced,.container-xl.spaced{padding-bottom:20px;padding-top:20px}@media(max-width: 599px){.container,.container-xs,.container-sm,.container-md,.container-lg,.container-xl{width:calc(100% - 20px)}}.container-xs{max-width:599px !important}.container-sm{max-width:1023px !important}.container-md{max-width:1439px !important}.container-lg{max-width:1919px !important}body{font-family:Inter,system-ui,sans-serif}.qs-lh-xs{line-height:.85 !important}.qs-lh-sm{line-height:1 !important}.qs-lh-md{line-height:1.15 !important}.qs-lh-lg{line-height:1.3 !important}.qs-lh-xl{line-height:1.5 !important}.opacity-10{opacity:0.1 !important}.opacity-20{opacity:0.2 !important}.opacity-30{opacity:0.3 !important}.opacity-40{opacity:0.4 !important}.opacity-50{opacity:0.5 !important}.opacity-60{opacity:0.6 !important}.opacity-70{opacity:0.7 !important}.opacity-80{opacity:0.8 !important}.opacity-90{opacity:0.9 !important}.text-baseline{vertical-align:baseline !important}.text-break{word-break:break-all !important}.text-underline{text-decoration:underline !important}.text-no-decoration{text-decoration:none !important}.unset{all:unset}a.unset,button.unset{cursor:pointer}.qas-actions-menu__list{width:265px;z-index:1}.qas-app-bar__toolbar{height:70px}.qas-app-bar__brand{height:24px;margin-right:8px;position:relative;top:4px}.qas-app-bar__user{background-color:var(--qas-background-color);transition:background-color .3s cubic-bezier(0.25, 0.8, 0.5, 1)}.qas-app-bar__user:focus,.qas-app-bar__user:hover{background-color:rgba(255,255,255,.2)}.qas-app-bar__user-data{max-width:180px}.qas-app-bar__user-menu{width:260px}@media(max-width: 599px){.qas-app-bar__user-data{display:none}}.qas-alert{border-style:solid;border-width:0 10px}.q-expansion-item--expanded .q-item:not(.qas-app-menu--active.q-item){background-color:#fafafa}.qas-list-items .q-list>.q-item{padding:24px 16px}.qas-map__draw{height:300px !important;width:100%}.qas-nested-fields__actions{height:56px}.qas-signature-pad__canvas{border:1px solid rgba(0,0,0,.12)}.qas-table-generator .q-table th{font-weight:bold}.qas-table-generator--mobile{margin:0 -10px}.qas-table-generator--mobile .q-table{margin-left:10px}.qas-transfer__icon{transform:rotate(-90deg)}.qas-uploader__input{display:none}
|
package/dist/asteroid.esm.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
* @bildvitta/quasar-ui-asteroid v3.0.0
|
|
2
|
+
* @bildvitta/quasar-ui-asteroid v3.1.0-beta.0
|
|
3
3
|
* (c) 2022 Bild & Vitta <systemteam@bild.com.br>
|
|
4
4
|
* Released under the MIT License.
|
|
5
5
|
*/
|
|
@@ -8,6 +8,7 @@ import { camelize, camelizeKeys, decamelize } from 'humps';
|
|
|
8
8
|
import { parseISO, format, isMatch } from 'date-fns';
|
|
9
9
|
import { ptBR } from 'date-fns/locale';
|
|
10
10
|
import { copyToClipboard, date as date$1, Dialog as Dialog$1, Notify, Screen as Screen$1, Platform, Loading, extend, uid, createMetaMixin, QInfiniteScroll, Quasar } from 'quasar';
|
|
11
|
+
import { getAction, getState, getGetter } from '@bildvitta/store-adapter';
|
|
11
12
|
import { findLastIndex, isEqual, isEqualWith, isObject, castArray, sortBy } from 'lodash-es';
|
|
12
13
|
import AutoNumeric from 'autonumeric';
|
|
13
14
|
import Pica from 'pica';
|
|
@@ -2716,7 +2717,11 @@ var script$w = {
|
|
|
2716
2717
|
`QasDelete - destroy -> Payload do parâmetro do ${this.entity}/destroy`, [payload]
|
|
2717
2718
|
);
|
|
2718
2719
|
|
|
2719
|
-
await
|
|
2720
|
+
await getAction.call(this, {
|
|
2721
|
+
entity: this.entity,
|
|
2722
|
+
key: 'destroy',
|
|
2723
|
+
payload
|
|
2724
|
+
});
|
|
2720
2725
|
|
|
2721
2726
|
NotifySuccess('Item deletado com sucesso!');
|
|
2722
2727
|
|
|
@@ -4791,7 +4796,7 @@ var script$m = {
|
|
|
4791
4796
|
},
|
|
4792
4797
|
|
|
4793
4798
|
fields () {
|
|
4794
|
-
return this
|
|
4799
|
+
return getState.call(this, { entity: this.entity, key: 'filters' })
|
|
4795
4800
|
},
|
|
4796
4801
|
|
|
4797
4802
|
filterButtonColor () {
|
|
@@ -4807,7 +4812,7 @@ var script$m = {
|
|
|
4807
4812
|
},
|
|
4808
4813
|
|
|
4809
4814
|
hasFields () {
|
|
4810
|
-
return !!Object.keys(this.fields).length
|
|
4815
|
+
return !!Object.keys(this.fields || {}).length
|
|
4811
4816
|
},
|
|
4812
4817
|
|
|
4813
4818
|
hasSearch () {
|
|
@@ -4889,7 +4894,12 @@ var script$m = {
|
|
|
4889
4894
|
[{ url: this.url }]
|
|
4890
4895
|
);
|
|
4891
4896
|
|
|
4892
|
-
const response = await
|
|
4897
|
+
const response = await getAction.call(this, {
|
|
4898
|
+
entity: this.entity,
|
|
4899
|
+
key: 'fetchFilters',
|
|
4900
|
+
payload: { url: this.url }
|
|
4901
|
+
});
|
|
4902
|
+
|
|
4893
4903
|
this.$emit('fetch-success', response);
|
|
4894
4904
|
|
|
4895
4905
|
this.$qas.logger.group(
|
|
@@ -5301,6 +5311,10 @@ var script$l = {
|
|
|
5301
5311
|
validator: value => {
|
|
5302
5312
|
return typeof value === 'boolean' || ['xs', 'sm', 'md', 'lg', 'xl'].includes(value)
|
|
5303
5313
|
}
|
|
5314
|
+
},
|
|
5315
|
+
|
|
5316
|
+
disable: {
|
|
5317
|
+
type: Boolean
|
|
5304
5318
|
}
|
|
5305
5319
|
},
|
|
5306
5320
|
|
|
@@ -5422,12 +5436,12 @@ function render$l(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
5422
5436
|
class: normalizeClass(_ctx.mx_getFieldClass(key))
|
|
5423
5437
|
}, [
|
|
5424
5438
|
renderSlot(_ctx.$slots, `field-${field.name}`, { field: field }, () => [
|
|
5425
|
-
createVNode(_component_qas_field, mergeProps($props.fieldsProps[field.name], {
|
|
5439
|
+
createVNode(_component_qas_field, mergeProps({ disable: $props.disable }, $props.fieldsProps[field.name], {
|
|
5426
5440
|
error: $props.errors[key],
|
|
5427
5441
|
field: field,
|
|
5428
5442
|
"model-value": $props.modelValue[field.name],
|
|
5429
5443
|
"onUpdate:modelValue": $event => ($options.updateModelValue(field.name, $event))
|
|
5430
|
-
}), null, 16 /* FULL_PROPS */, ["error", "field", "model-value", "onUpdate:modelValue"])
|
|
5444
|
+
}), null, 16 /* FULL_PROPS */, ["disable", "error", "field", "model-value", "onUpdate:modelValue"])
|
|
5431
5445
|
])
|
|
5432
5446
|
], 2 /* CLASS */))
|
|
5433
5447
|
}), 128 /* KEYED_FRAGMENT */))
|
|
@@ -5435,11 +5449,11 @@ function render$l(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
5435
5449
|
(openBlock(true), createElementBlock(Fragment, null, renderList(fieldsetItem.fields.hidden, (field, key) => {
|
|
5436
5450
|
return (openBlock(), createElementBlock("div", { key: key }, [
|
|
5437
5451
|
renderSlot(_ctx.$slots, `field-${field.name}`, { field: field }, () => [
|
|
5438
|
-
createVNode(_component_qas_field, mergeProps($props.fieldsProps[field.name], {
|
|
5452
|
+
createVNode(_component_qas_field, mergeProps({ disable: $props.disable }, $props.fieldsProps[field.name], {
|
|
5439
5453
|
field: field,
|
|
5440
5454
|
"model-value": $props.modelValue[field.name],
|
|
5441
5455
|
"onUpdate:modelValue": $event => ($options.updateModelValue(field.name, $event))
|
|
5442
|
-
}), null, 16 /* FULL_PROPS */, ["field", "model-value", "onUpdate:modelValue"])
|
|
5456
|
+
}), null, 16 /* FULL_PROPS */, ["disable", "field", "model-value", "onUpdate:modelValue"])
|
|
5443
5457
|
])
|
|
5444
5458
|
]))
|
|
5445
5459
|
}), 128 /* KEYED_FRAGMENT */))
|
|
@@ -5598,13 +5612,17 @@ var searchFilterMixin = {
|
|
|
5598
5612
|
|
|
5599
5613
|
const { url, params, decamelizeFieldName } = this.mx_defaultLazyLoadingProps;
|
|
5600
5614
|
|
|
5601
|
-
const { data } = await
|
|
5602
|
-
|
|
5603
|
-
|
|
5604
|
-
|
|
5605
|
-
|
|
5606
|
-
|
|
5607
|
-
|
|
5615
|
+
const { data } = await getAction.call(this, {
|
|
5616
|
+
entity: this.entity,
|
|
5617
|
+
key: 'fetchFieldOptions',
|
|
5618
|
+
payload: {
|
|
5619
|
+
url,
|
|
5620
|
+
field: decamelizeFieldName ? decamelize(this.name, { separator: '-' }) : this.name,
|
|
5621
|
+
params: {
|
|
5622
|
+
...params,
|
|
5623
|
+
search: this.mx_search,
|
|
5624
|
+
offset: (this.mx_pagination.page - 1) * params.limit
|
|
5625
|
+
}
|
|
5608
5626
|
}
|
|
5609
5627
|
});
|
|
5610
5628
|
|
|
@@ -6040,7 +6058,11 @@ var script$k = {
|
|
|
6040
6058
|
`QasFormView - fetchSingle -> payload do parâmetro do ${this.entity}/fetchSingle`, [payload]
|
|
6041
6059
|
);
|
|
6042
6060
|
|
|
6043
|
-
const response = await
|
|
6061
|
+
const response = await getAction.call(this, {
|
|
6062
|
+
entity: this.entity,
|
|
6063
|
+
key: 'fetchSingle',
|
|
6064
|
+
payload
|
|
6065
|
+
});
|
|
6044
6066
|
|
|
6045
6067
|
const { errors, fields, metadata, result } = response.data;
|
|
6046
6068
|
|
|
@@ -6175,7 +6197,11 @@ var script$k = {
|
|
|
6175
6197
|
`QasFormView - submit -> payload do ${this.entity}/${this.mode}`, [payload]
|
|
6176
6198
|
);
|
|
6177
6199
|
|
|
6178
|
-
const response = await
|
|
6200
|
+
const response = await getAction.call(this, {
|
|
6201
|
+
entity: this.entity,
|
|
6202
|
+
key: this.mode,
|
|
6203
|
+
payload
|
|
6204
|
+
});
|
|
6179
6205
|
|
|
6180
6206
|
if (this.useDialogOnUnsavedChanges) {
|
|
6181
6207
|
this.cachedResult = extend(true, {}, this.modelValue);
|
|
@@ -7019,11 +7045,11 @@ var script$e = {
|
|
|
7019
7045
|
},
|
|
7020
7046
|
|
|
7021
7047
|
resultsModel () {
|
|
7022
|
-
return this
|
|
7048
|
+
return getState.call(this, { entity: this.entity, key: 'list' })
|
|
7023
7049
|
},
|
|
7024
7050
|
|
|
7025
7051
|
totalPages () {
|
|
7026
|
-
return this
|
|
7052
|
+
return getState.call(this, { entity: this.entity, key: 'totalPages' })
|
|
7027
7053
|
},
|
|
7028
7054
|
|
|
7029
7055
|
showResults () {
|
|
@@ -7074,7 +7100,11 @@ var script$e = {
|
|
|
7074
7100
|
`QasListView - fetchList -> Payload do parâmetro do ${this.entity}/fetchList`, [payload]
|
|
7075
7101
|
);
|
|
7076
7102
|
|
|
7077
|
-
const response = await
|
|
7103
|
+
const response = await getAction.call(this, {
|
|
7104
|
+
entity: this.entity,
|
|
7105
|
+
key: 'fetchList',
|
|
7106
|
+
payload
|
|
7107
|
+
});
|
|
7078
7108
|
|
|
7079
7109
|
const { errors, fields, metadata } = response.data;
|
|
7080
7110
|
|
|
@@ -7379,6 +7409,11 @@ var script$c = {
|
|
|
7379
7409
|
default: 'destroyed'
|
|
7380
7410
|
},
|
|
7381
7411
|
|
|
7412
|
+
disabledRows: {
|
|
7413
|
+
type: [Array, Boolean],
|
|
7414
|
+
default: false
|
|
7415
|
+
},
|
|
7416
|
+
|
|
7382
7417
|
errors: {
|
|
7383
7418
|
type: [Array, Object],
|
|
7384
7419
|
default: () => ({})
|
|
@@ -7428,6 +7463,11 @@ var script$c = {
|
|
|
7428
7463
|
default: () => ({})
|
|
7429
7464
|
},
|
|
7430
7465
|
|
|
7466
|
+
useAdd: {
|
|
7467
|
+
type: Boolean,
|
|
7468
|
+
default: true
|
|
7469
|
+
},
|
|
7470
|
+
|
|
7431
7471
|
useAnimation: {
|
|
7432
7472
|
type: Boolean,
|
|
7433
7473
|
default: true
|
|
@@ -7601,6 +7641,22 @@ var script$c = {
|
|
|
7601
7641
|
}
|
|
7602
7642
|
|
|
7603
7643
|
return this.fieldLabel
|
|
7644
|
+
},
|
|
7645
|
+
|
|
7646
|
+
isDisabledRow (row) {
|
|
7647
|
+
if (!this.disabledRows) return false
|
|
7648
|
+
|
|
7649
|
+
if (typeof this.disabledRows === 'boolean') return true
|
|
7650
|
+
|
|
7651
|
+
return this.disabledRows.includes(row[this.identifierItemKey])
|
|
7652
|
+
},
|
|
7653
|
+
|
|
7654
|
+
hasBlockActions (row) {
|
|
7655
|
+
return !this.useInlineActions && !this.isDisabledRow(row)
|
|
7656
|
+
},
|
|
7657
|
+
|
|
7658
|
+
hasInlineActions (row) {
|
|
7659
|
+
return this.useInlineActions && !this.isDisabledRow(row)
|
|
7604
7660
|
}
|
|
7605
7661
|
}
|
|
7606
7662
|
};
|
|
@@ -7621,7 +7677,10 @@ const _hoisted_7 = {
|
|
|
7621
7677
|
const _hoisted_8 = { class: "col-auto" };
|
|
7622
7678
|
const _hoisted_9 = { class: "col-auto" };
|
|
7623
7679
|
const _hoisted_10 = { class: "col-12" };
|
|
7624
|
-
const _hoisted_11 = {
|
|
7680
|
+
const _hoisted_11 = {
|
|
7681
|
+
key: 0,
|
|
7682
|
+
class: "q-mt-md"
|
|
7683
|
+
};
|
|
7625
7684
|
const _hoisted_12 = { class: "col" };
|
|
7626
7685
|
const _hoisted_13 = { class: "col-auto" };
|
|
7627
7686
|
const _hoisted_14 = {
|
|
@@ -7669,7 +7728,7 @@ function render$c(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
7669
7728
|
label: $options.getRowLabel(index)
|
|
7670
7729
|
}, null, 8 /* PROPS */, ["label"]))
|
|
7671
7730
|
: createCommentVNode("v-if", true),
|
|
7672
|
-
(
|
|
7731
|
+
($options.hasBlockActions(row))
|
|
7673
7732
|
? (openBlock(), createElementBlock("div", _hoisted_6, [
|
|
7674
7733
|
($props.useDuplicate)
|
|
7675
7734
|
? (openBlock(), createBlock(_component_qas_btn, mergeProps({ key: 0 }, $props.buttonDuplicateProps, {
|
|
@@ -7700,6 +7759,7 @@ function render$c(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
7700
7759
|
"onUpdate:modelValue": [$event => (($data.nested[index]) = $event), $event => ($options.updateValuesFromInput($event, index))],
|
|
7701
7760
|
class: normalizeClass($options.formClasses),
|
|
7702
7761
|
columns: $props.formColumns,
|
|
7762
|
+
disable: $options.isDisabledRow(row),
|
|
7703
7763
|
errors: $options.transformedErrors[index],
|
|
7704
7764
|
fields: $options.children,
|
|
7705
7765
|
"fields-props": $props.fieldsProps
|
|
@@ -7709,15 +7769,16 @@ function render$c(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
7709
7769
|
name: key,
|
|
7710
7770
|
fn: withCtx((scope) => [
|
|
7711
7771
|
renderSlot(_ctx.$slots, key, mergeProps(scope, {
|
|
7772
|
+
disabled: $options.isDisabledRow(row),
|
|
7712
7773
|
errors: $options.transformedErrors,
|
|
7713
7774
|
index: index
|
|
7714
7775
|
}))
|
|
7715
7776
|
])
|
|
7716
7777
|
}
|
|
7717
7778
|
})
|
|
7718
|
-
]), 1032 /* PROPS, DYNAMIC_SLOTS */, ["modelValue", "onUpdate:modelValue", "class", "columns", "errors", "fields", "fields-props"])
|
|
7779
|
+
]), 1032 /* PROPS, DYNAMIC_SLOTS */, ["modelValue", "onUpdate:modelValue", "class", "columns", "disable", "errors", "fields", "fields-props"])
|
|
7719
7780
|
]),
|
|
7720
|
-
($
|
|
7781
|
+
($options.hasInlineActions(row))
|
|
7721
7782
|
? (openBlock(), createElementBlock("div", _hoisted_7, [
|
|
7722
7783
|
createElementVNode("div", _hoisted_8, [
|
|
7723
7784
|
($props.useDuplicate)
|
|
@@ -7762,47 +7823,49 @@ function render$c(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
7762
7823
|
]),
|
|
7763
7824
|
_: 3 /* FORWARDED */
|
|
7764
7825
|
}, 16 /* FULL_PROPS */)),
|
|
7765
|
-
|
|
7766
|
-
|
|
7767
|
-
|
|
7768
|
-
|
|
7769
|
-
|
|
7770
|
-
|
|
7771
|
-
|
|
7772
|
-
|
|
7773
|
-
|
|
7774
|
-
|
|
7775
|
-
|
|
7776
|
-
|
|
7777
|
-
|
|
7778
|
-
|
|
7779
|
-
|
|
7780
|
-
|
|
7781
|
-
|
|
7782
|
-
|
|
7783
|
-
|
|
7784
|
-
|
|
7785
|
-
|
|
7786
|
-
|
|
7787
|
-
|
|
7788
|
-
|
|
7789
|
-
|
|
7790
|
-
|
|
7791
|
-
|
|
7792
|
-
|
|
7793
|
-
|
|
7794
|
-
|
|
7795
|
-
|
|
7796
|
-
|
|
7797
|
-
|
|
7798
|
-
|
|
7799
|
-
|
|
7800
|
-
|
|
7801
|
-
|
|
7802
|
-
|
|
7803
|
-
|
|
7804
|
-
|
|
7805
|
-
|
|
7826
|
+
($props.useAdd)
|
|
7827
|
+
? (openBlock(), createElementBlock("div", _hoisted_11, [
|
|
7828
|
+
renderSlot(_ctx.$slots, "add-input", { add: $options.add }, () => [
|
|
7829
|
+
($props.useInlineActions)
|
|
7830
|
+
? (openBlock(), createElementBlock("div", {
|
|
7831
|
+
key: 0,
|
|
7832
|
+
class: "cursor-pointer items-center q-col-gutter-x-md q-mt-md row",
|
|
7833
|
+
onClick: _cache[1] || (_cache[1] = $event => ($options.add()))
|
|
7834
|
+
}, [
|
|
7835
|
+
createElementVNode("div", _hoisted_12, [
|
|
7836
|
+
createVNode(_component_qas_input, {
|
|
7837
|
+
class: "disabled no-pointer-events",
|
|
7838
|
+
"hide-bottom-space": "",
|
|
7839
|
+
label: $props.addInputLabel,
|
|
7840
|
+
outlined: "",
|
|
7841
|
+
onFocus: _cache[0] || (_cache[0] = $event => ($options.add()))
|
|
7842
|
+
}, null, 8 /* PROPS */, ["label"])
|
|
7843
|
+
]),
|
|
7844
|
+
createElementVNode("div", _hoisted_13, [
|
|
7845
|
+
createVNode(_component_qas_btn, {
|
|
7846
|
+
color: "green",
|
|
7847
|
+
flat: "",
|
|
7848
|
+
icon: "o_add_circle_outline",
|
|
7849
|
+
round: ""
|
|
7850
|
+
})
|
|
7851
|
+
])
|
|
7852
|
+
]))
|
|
7853
|
+
: (openBlock(), createElementBlock("div", _hoisted_14, [
|
|
7854
|
+
createVNode(_component_qas_btn, {
|
|
7855
|
+
class: "full-width q-py-md",
|
|
7856
|
+
icon: "o_add",
|
|
7857
|
+
outline: "",
|
|
7858
|
+
onClick: _cache[2] || (_cache[2] = $event => ($options.add()))
|
|
7859
|
+
}, {
|
|
7860
|
+
default: withCtx(() => [
|
|
7861
|
+
createTextVNode(toDisplayString($props.addInputLabel), 1 /* TEXT */)
|
|
7862
|
+
]),
|
|
7863
|
+
_: 1 /* STABLE */
|
|
7864
|
+
})
|
|
7865
|
+
]))
|
|
7866
|
+
])
|
|
7867
|
+
]))
|
|
7868
|
+
: createCommentVNode("v-if", true)
|
|
7806
7869
|
], 512 /* NEED_PATCH */)
|
|
7807
7870
|
], 8 /* PROPS */, _hoisted_1$9))
|
|
7808
7871
|
}
|
|
@@ -8951,7 +9014,7 @@ var script$5 = {
|
|
|
8951
9014
|
},
|
|
8952
9015
|
|
|
8953
9016
|
resultModel () {
|
|
8954
|
-
return this
|
|
9017
|
+
return getGetter.call(this, { entity: this.entity, key: 'byId' })(this.id) || {}
|
|
8955
9018
|
}
|
|
8956
9019
|
},
|
|
8957
9020
|
|
|
@@ -8983,7 +9046,11 @@ var script$5 = {
|
|
|
8983
9046
|
[payload]
|
|
8984
9047
|
);
|
|
8985
9048
|
|
|
8986
|
-
const response = await
|
|
9049
|
+
const response = await getAction.call(this, {
|
|
9050
|
+
entity: this.entity,
|
|
9051
|
+
key: 'fetchSingle',
|
|
9052
|
+
payload
|
|
9053
|
+
});
|
|
8987
9054
|
|
|
8988
9055
|
const { errors, fields, metadata } = response.data;
|
|
8989
9056
|
|
|
@@ -9174,9 +9241,13 @@ var script$4 = {
|
|
|
9174
9241
|
Loading.show();
|
|
9175
9242
|
|
|
9176
9243
|
try {
|
|
9177
|
-
const response = await
|
|
9178
|
-
|
|
9179
|
-
|
|
9244
|
+
const response = await getAction.call(this, {
|
|
9245
|
+
entity: this.entity,
|
|
9246
|
+
key: 'replace',
|
|
9247
|
+
payload: {
|
|
9248
|
+
payload: { order: this.identifiers },
|
|
9249
|
+
url: this.url || `${this.entity}/sort`
|
|
9250
|
+
}
|
|
9180
9251
|
});
|
|
9181
9252
|
|
|
9182
9253
|
this.$emit('success', response);
|
|
@@ -10063,7 +10134,7 @@ script.__file = "src/components/transfer/QasTransfer.vue";
|
|
|
10063
10134
|
|
|
10064
10135
|
var name = "@bildvitta/quasar-ui-asteroid";
|
|
10065
10136
|
var description = "Asteroid";
|
|
10066
|
-
var version$1 = "3.0.0";
|
|
10137
|
+
var version$1 = "3.1.0-beta.0";
|
|
10067
10138
|
var author = "Bild & Vitta <systemteam@bild.com.br>";
|
|
10068
10139
|
var license = "MIT";
|
|
10069
10140
|
var main = "dist/asteroid.cjs.min.js";
|
|
@@ -10107,6 +10178,7 @@ var devDependencies = {
|
|
|
10107
10178
|
sass: "^1.49.0"
|
|
10108
10179
|
};
|
|
10109
10180
|
var dependencies = {
|
|
10181
|
+
"@bildvitta/store-adapter": "^1.0.0-beta.22",
|
|
10110
10182
|
"@fawmi/vue-google-maps": "^0.9.4",
|
|
10111
10183
|
autonumeric: "^4.6.0",
|
|
10112
10184
|
axios: "^0.21.1",
|