@bildvitta/quasar-ui-asteroid 3.0.0-beta.6 → 3.0.0-beta.7
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/QasActionsMenu.json +15 -15
- package/dist/api/QasAppBar.json +4 -4
- package/dist/api/QasAppMenu.json +11 -11
- package/dist/api/QasCard.json +4 -4
- package/dist/api/QasCheckboxGroup.json +8 -8
- package/dist/api/QasCopy.json +4 -4
- package/dist/api/QasDateTimeInput.json +6 -6
- package/dist/api/QasDelete.json +17 -17
- package/dist/api/QasDialog.json +21 -21
- package/dist/api/QasFilters.json +16 -16
- package/dist/api/QasFormGenerator.json +31 -31
- package/dist/api/QasFormView.json +84 -84
- package/dist/api/QasGallery.json +4 -4
- package/dist/api/QasGridGenerator.json +39 -39
- package/dist/api/QasInput.json +13 -13
- package/dist/api/QasListView.json +55 -55
- package/dist/api/QasNestedFields.json +32 -32
- package/dist/api/QasNumericInput.json +21 -2
- package/dist/api/QasPageHeader.json +7 -7
- package/dist/api/QasPasswordInput.json +13 -13
- package/dist/api/QasPasswordStrengthChecker.json +12 -12
- package/dist/api/QasProfile.json +5 -5
- package/dist/api/QasResizer.json +11 -11
- package/dist/api/QasSearchBox.json +5 -5
- package/dist/api/QasSelect.json +14 -14
- package/dist/api/QasSelectList.json +6 -6
- package/dist/api/QasSignatureUploader.json +9 -9
- package/dist/api/QasSingleView.json +40 -40
- package/dist/api/QasSortable.json +20 -20
- package/dist/api/QasTableGenerator.json +5 -5
- package/dist/api/QasTransfer.json +9 -9
- package/dist/api/QasUploader.json +17 -17
- package/dist/asteroid.cjs.js +53 -23
- package/dist/asteroid.cjs.min.js +2 -2
- package/dist/asteroid.esm.css +1 -1
- package/dist/asteroid.esm.js +53 -23
- package/dist/asteroid.esm.min.js +2 -2
- package/dist/asteroid.umd.css +1 -1
- package/dist/asteroid.umd.js +53 -23
- package/dist/asteroid.umd.min.js +2 -2
- package/dist/vetur/asteroid-attributes.json +261 -261
- package/dist/vetur/asteroid-tags.json +89 -89
- package/package.json +1 -1
- package/src/components/actions-menu/QasActionsMenu.yml +15 -15
- package/src/components/app-bar/QasAppBar.yml +4 -4
- package/src/components/app-menu/QasAppMenu.yml +11 -11
- package/src/components/card/QasCard.yml +4 -4
- package/src/components/checkbox-group/QasCheckboxGroup.yml +9 -8
- package/src/components/copy/QasCopy.yml +4 -3
- package/src/components/date-time-input/QasDateTimeInput.yml +6 -5
- package/src/components/delete/QasDelete.yml +15 -15
- package/src/components/dialog/QasDialog.yml +20 -19
- package/src/components/filters/QasFilters.vue +1 -1
- package/src/components/filters/QasFilters.yml +16 -16
- package/src/components/form-generator/QasFormGenerator.yml +21 -21
- package/src/components/form-view/QasFormView.yml +68 -68
- package/src/components/gallery/QasGallery.yml +4 -4
- package/src/components/grid-generator/QasGridGenerator.yml +28 -27
- package/src/components/input/QasInput.yml +13 -13
- package/src/components/list-view/QasListView.vue +8 -1
- package/src/components/list-view/QasListView.yml +48 -48
- package/src/components/nested-fields/QasNestedFields.yml +26 -25
- package/src/components/numeric-input/QasNumericInput.vue +31 -13
- package/src/components/numeric-input/QasNumericInput.yml +16 -2
- package/src/components/page-header/QasPageHeader.yml +4 -4
- package/src/components/password-input/QasPasswordInput.vue +1 -1
- package/src/components/password-input/QasPasswordInput.yml +11 -11
- package/src/components/password-strength-checker/QasPasswordStrengthChecker.yml +10 -10
- package/src/components/profile/QasProfile.yml +5 -5
- package/src/components/resizer/QasResizer.yml +6 -5
- package/src/components/search-box/QasSearchBox.yml +5 -5
- package/src/components/select/QasSelect.yml +7 -7
- package/src/components/select-list/QasSelectList.yml +6 -6
- package/src/components/signature-uploader/QasSignatureUploader.yml +9 -9
- package/src/components/single-view/QasSingleView.yml +36 -36
- package/src/components/sortable/QasSortable.yml +17 -17
- package/src/components/table-generator/QasTableGenerator.yml +5 -5
- package/src/components/transfer/QasTransfer.vue +2 -1
- package/src/components/transfer/QasTransfer.yml +9 -9
- package/src/components/uploader/QasUploader.yml +12 -12
|
@@ -9,6 +9,11 @@
|
|
|
9
9
|
"default": [],
|
|
10
10
|
"type": "Array"
|
|
11
11
|
},
|
|
12
|
+
"empty-result-text": {
|
|
13
|
+
"desc": "Quando uma célula da tabela está vazia, esta prop define qual será o valor padrão.",
|
|
14
|
+
"default": "-",
|
|
15
|
+
"type": "String"
|
|
16
|
+
},
|
|
12
17
|
"fields": {
|
|
13
18
|
"desc": "Lista de field contendo informações necessárias para a criação da tabela.",
|
|
14
19
|
"default": {},
|
|
@@ -30,11 +35,6 @@
|
|
|
30
35
|
"default": "name",
|
|
31
36
|
"type": "String"
|
|
32
37
|
},
|
|
33
|
-
"empty-result-text": {
|
|
34
|
-
"desc": "Quando uma célula da tabela está vazia, esta prop define qual será o valor padrão.",
|
|
35
|
-
"default": "-",
|
|
36
|
-
"type": "String"
|
|
37
|
-
},
|
|
38
38
|
"use-scroll-on-grab": {
|
|
39
39
|
"desc": "Adiciona scroll pelo mouse ao arrastar tabela em todas as telas (Celular, Desktop).",
|
|
40
40
|
"default": true,
|
|
@@ -8,11 +8,6 @@
|
|
|
8
8
|
"desc": "Controla como sera o retorno do model, se \"true\" será um array de string, se \"false\" array de objeto.",
|
|
9
9
|
"type": "Boolean"
|
|
10
10
|
},
|
|
11
|
-
"model-value": {
|
|
12
|
-
"desc": "Model do componente, controla quais itens estão na segunda coluna.",
|
|
13
|
-
"default": [],
|
|
14
|
-
"type": "Array"
|
|
15
|
-
},
|
|
16
11
|
"fuse-options": {
|
|
17
12
|
"desc": "Configurações do [fuse.js](https://fusejs.io/api/options.html).",
|
|
18
13
|
"default": {
|
|
@@ -22,15 +17,20 @@
|
|
|
22
17
|
},
|
|
23
18
|
"type": "Object"
|
|
24
19
|
},
|
|
20
|
+
"label-key": {
|
|
21
|
+
"desc": "Nos options, você pode passar um array de objeto com qualquer chave/valor, esta prop serve para identificar qual será o equivalente ao \"label\".",
|
|
22
|
+
"default": "label",
|
|
23
|
+
"type": "String"
|
|
24
|
+
},
|
|
25
25
|
"label": {
|
|
26
26
|
"desc": "Rotulo que vai ficar em cima da primeira coluna.",
|
|
27
27
|
"type": "String",
|
|
28
28
|
"required": true
|
|
29
29
|
},
|
|
30
|
-
"
|
|
31
|
-
"desc": "
|
|
32
|
-
"default":
|
|
33
|
-
"type": "
|
|
30
|
+
"model-value": {
|
|
31
|
+
"desc": "Model do componente, controla quais itens estão na segunda coluna.",
|
|
32
|
+
"default": [],
|
|
33
|
+
"type": "Array"
|
|
34
34
|
},
|
|
35
35
|
"options": {
|
|
36
36
|
"desc": "Array de objetos com todos items que serão transferidos",
|
|
@@ -39,6 +39,18 @@
|
|
|
39
39
|
"default": "undefined",
|
|
40
40
|
"type": "Number"
|
|
41
41
|
},
|
|
42
|
+
"model-value": {
|
|
43
|
+
"desc": "Model do componente, caso seja múltiplo, retorna um array de string, senão somente uma string.",
|
|
44
|
+
"default": true,
|
|
45
|
+
"type": [
|
|
46
|
+
"Array",
|
|
47
|
+
"String"
|
|
48
|
+
],
|
|
49
|
+
"examples": [
|
|
50
|
+
"v-model=\"value\""
|
|
51
|
+
],
|
|
52
|
+
"model": true
|
|
53
|
+
},
|
|
42
54
|
"pica-resize-options": {
|
|
43
55
|
"desc": "Opções para a biblioteca \"pica\" que é responsável por fazer o redimensionamento antes do upload (https://github.com/nodeca/pica).",
|
|
44
56
|
"type": "Object",
|
|
@@ -49,6 +61,11 @@
|
|
|
49
61
|
"unsharpThreshold": 1
|
|
50
62
|
}
|
|
51
63
|
},
|
|
64
|
+
"readonly": {
|
|
65
|
+
"desc": "O componente não faz mais upload, apenas exibe.",
|
|
66
|
+
"default": true,
|
|
67
|
+
"type": "Number"
|
|
68
|
+
},
|
|
52
69
|
"size-limit": {
|
|
53
70
|
"desc": "Se o tamanho da imagem for menor ou igual ao passado nesta prop, não será feito um redimensionamento.",
|
|
54
71
|
"default": 1280,
|
|
@@ -59,23 +76,6 @@
|
|
|
59
76
|
"default": true,
|
|
60
77
|
"type": "Number"
|
|
61
78
|
},
|
|
62
|
-
"readonly": {
|
|
63
|
-
"desc": "O componente não faz mais upload, apenas exibe.",
|
|
64
|
-
"default": true,
|
|
65
|
-
"type": "Number"
|
|
66
|
-
},
|
|
67
|
-
"model-value": {
|
|
68
|
-
"desc": "Model do componente, caso seja múltiplo, retorna um array de string, senão somente uma string.",
|
|
69
|
-
"default": true,
|
|
70
|
-
"type": [
|
|
71
|
-
"Array",
|
|
72
|
-
"String"
|
|
73
|
-
],
|
|
74
|
-
"examples": [
|
|
75
|
-
"v-model=\"value\""
|
|
76
|
-
],
|
|
77
|
-
"model": true
|
|
78
|
-
},
|
|
79
79
|
"uploading": {
|
|
80
80
|
"desc": "Model que retorna se o componente está fazendo algum upload.",
|
|
81
81
|
"type": "Boolean",
|
package/dist/asteroid.cjs.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
* @bildvitta/quasar-ui-asteroid v3.0.0-beta.
|
|
2
|
+
* @bildvitta/quasar-ui-asteroid v3.0.0-beta.7
|
|
3
3
|
* (c) 2022 Bild & Vitta <systemteam@bild.com.br>
|
|
4
4
|
* Released under the MIT License.
|
|
5
5
|
*/
|
|
@@ -3017,7 +3017,10 @@ var script$t = {
|
|
|
3017
3017
|
}
|
|
3018
3018
|
},
|
|
3019
3019
|
|
|
3020
|
-
emits: [
|
|
3020
|
+
emits: [
|
|
3021
|
+
'update:modelValue',
|
|
3022
|
+
'update-model'
|
|
3023
|
+
],
|
|
3021
3024
|
|
|
3022
3025
|
data () {
|
|
3023
3026
|
return {
|
|
@@ -3028,15 +3031,13 @@ var script$t = {
|
|
|
3028
3031
|
computed: {
|
|
3029
3032
|
defaultMode () {
|
|
3030
3033
|
return defaultModes[this.mode]
|
|
3031
|
-
}
|
|
3032
|
-
|
|
3033
|
-
model: {
|
|
3034
|
-
get () {
|
|
3035
|
-
return this.modelValue
|
|
3036
|
-
},
|
|
3034
|
+
}
|
|
3035
|
+
},
|
|
3037
3036
|
|
|
3038
|
-
|
|
3039
|
-
|
|
3037
|
+
watch: {
|
|
3038
|
+
modelValue (value) {
|
|
3039
|
+
if (this.autoNumeric) {
|
|
3040
|
+
this.autoNumeric.set(value);
|
|
3040
3041
|
}
|
|
3041
3042
|
}
|
|
3042
3043
|
},
|
|
@@ -3071,39 +3072,56 @@ var script$t = {
|
|
|
3071
3072
|
Object.assign(options, this.autonumericProps);
|
|
3072
3073
|
|
|
3073
3074
|
this.$nextTick(() => {
|
|
3074
|
-
this.$refs.input.value = this.modelValue;
|
|
3075
3075
|
this.autoNumeric = new AutoNumeric__default["default"](this.$refs.input, options);
|
|
3076
|
+
this.autoNumeric.set(this.modelValue);
|
|
3076
3077
|
});
|
|
3077
3078
|
},
|
|
3078
3079
|
|
|
3079
3080
|
beforeUnmount () {
|
|
3080
3081
|
this.autoNumeric.remove();
|
|
3082
|
+
},
|
|
3083
|
+
|
|
3084
|
+
methods: {
|
|
3085
|
+
setSelect () {
|
|
3086
|
+
this.$refs?.input?.select();
|
|
3087
|
+
},
|
|
3088
|
+
|
|
3089
|
+
emitValue () {
|
|
3090
|
+
this.$emit('update:modelValue', this.autoNumeric.getNumber());
|
|
3091
|
+
},
|
|
3092
|
+
|
|
3093
|
+
emitUpdateModel (value) {
|
|
3094
|
+
this.$emit('update-model', {
|
|
3095
|
+
value,
|
|
3096
|
+
raw: this.autoNumeric.getNumber()
|
|
3097
|
+
});
|
|
3098
|
+
}
|
|
3081
3099
|
}
|
|
3082
3100
|
};
|
|
3083
3101
|
|
|
3084
|
-
const _hoisted_1$j = ["id"
|
|
3102
|
+
const _hoisted_1$j = ["id"];
|
|
3085
3103
|
|
|
3086
3104
|
function render$t(_ctx, _cache, $props, $setup, $data, $options) {
|
|
3087
3105
|
const _component_q_field = vue.resolveComponent("q-field");
|
|
3088
3106
|
|
|
3089
3107
|
return (vue.openBlock(), vue.createBlock(_component_q_field, {
|
|
3090
|
-
|
|
3091
|
-
"onUpdate:modelValue": _cache[0] || (_cache[0] = $event => (($options.model) = $event)),
|
|
3108
|
+
"model-value": $props.modelValue,
|
|
3092
3109
|
outlined: ""
|
|
3093
3110
|
}, {
|
|
3094
|
-
control: vue.withCtx(({
|
|
3111
|
+
control: vue.withCtx(({ floatingLabel, id }) => [
|
|
3095
3112
|
vue.withDirectives(vue.createElementVNode("input", {
|
|
3096
3113
|
id: id,
|
|
3097
3114
|
ref: "input",
|
|
3098
3115
|
class: "q-field__input",
|
|
3099
|
-
|
|
3100
|
-
|
|
3116
|
+
onBlur: _cache[0] || (_cache[0] = (...args) => ($options.emitValue && $options.emitValue(...args))),
|
|
3117
|
+
onClick: _cache[1] || (_cache[1] = (...args) => ($options.setSelect && $options.setSelect(...args))),
|
|
3118
|
+
onInput: _cache[2] || (_cache[2] = $event => ($options.emitUpdateModel($event.target.value)))
|
|
3101
3119
|
}, null, 40 /* PROPS, HYDRATE_EVENTS */, _hoisted_1$j), [
|
|
3102
3120
|
[vue.vShow, floatingLabel]
|
|
3103
3121
|
])
|
|
3104
3122
|
]),
|
|
3105
3123
|
_: 1 /* STABLE */
|
|
3106
|
-
}, 8 /* PROPS */, ["
|
|
3124
|
+
}, 8 /* PROPS */, ["model-value"]))
|
|
3107
3125
|
}
|
|
3108
3126
|
|
|
3109
3127
|
script$t.render = render$t;
|
|
@@ -3359,7 +3377,8 @@ function render$r(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
3359
3377
|
vue.createVNode(_component_qas_input, vue.mergeProps({
|
|
3360
3378
|
modelValue: $options.model,
|
|
3361
3379
|
"onUpdate:modelValue": _cache[0] || (_cache[0] = $event => (($options.model) = $event)),
|
|
3362
|
-
"bottom-slots":
|
|
3380
|
+
"bottom-slots": false,
|
|
3381
|
+
color: "negative"
|
|
3363
3382
|
}, _ctx.$attrs, {
|
|
3364
3383
|
"remove-error-on-type": "",
|
|
3365
3384
|
type: $options.type
|
|
@@ -4851,7 +4870,10 @@ function render$m(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
4851
4870
|
label: $options.filterButtonLabel
|
|
4852
4871
|
}, {
|
|
4853
4872
|
default: vue.withCtx(() => [
|
|
4854
|
-
vue.createVNode(_component_q_menu,
|
|
4873
|
+
vue.createVNode(_component_q_menu, {
|
|
4874
|
+
class: "full-width",
|
|
4875
|
+
"max-width": "240px"
|
|
4876
|
+
}, {
|
|
4855
4877
|
default: vue.withCtx(() => [
|
|
4856
4878
|
($data.isFetching)
|
|
4857
4879
|
? (vue.openBlock(), vue.createElementBlock("div", _hoisted_4$6, [
|
|
@@ -6380,6 +6402,7 @@ var script$e = {
|
|
|
6380
6402
|
handler (value) {
|
|
6381
6403
|
this.$emit('update:results', quasar.extend([], true, value));
|
|
6382
6404
|
},
|
|
6405
|
+
deep: true,
|
|
6383
6406
|
immediate: true
|
|
6384
6407
|
}
|
|
6385
6408
|
},
|
|
@@ -6398,10 +6421,16 @@ var script$e = {
|
|
|
6398
6421
|
async fetchList (filters = {}) {
|
|
6399
6422
|
this.mx_isFetching = true;
|
|
6400
6423
|
|
|
6424
|
+
const hasFilters = !!Object.keys(filters).length;
|
|
6425
|
+
|
|
6401
6426
|
try {
|
|
6402
6427
|
const response = await this.$store.dispatch(
|
|
6403
6428
|
`${this.entity}/fetchList`,
|
|
6404
|
-
{
|
|
6429
|
+
{
|
|
6430
|
+
...this.mx_context,
|
|
6431
|
+
url: this.url,
|
|
6432
|
+
...(hasFilters && { filters })
|
|
6433
|
+
}
|
|
6405
6434
|
);
|
|
6406
6435
|
|
|
6407
6436
|
const { errors, fields, metadata } = response.data;
|
|
@@ -8990,6 +9019,7 @@ var script = {
|
|
|
8990
9019
|
options: {
|
|
8991
9020
|
handler (value) {
|
|
8992
9021
|
this.optionsList = quasar.extend(true, [], value);
|
|
9022
|
+
this.setSelectedFromValue(true);
|
|
8993
9023
|
},
|
|
8994
9024
|
|
|
8995
9025
|
immediate: true
|
|
@@ -9055,7 +9085,7 @@ var script = {
|
|
|
9055
9085
|
},
|
|
9056
9086
|
|
|
9057
9087
|
setSelectedFromValue (isFirst) {
|
|
9058
|
-
this.modelValue.forEach(item => {
|
|
9088
|
+
this.optionsList.length && this.modelValue.forEach(item => {
|
|
9059
9089
|
const selected = this.optionsList.find(option => {
|
|
9060
9090
|
return option[this.valueKey] === (this.emitValue ? item : item[this.valueKey])
|
|
9061
9091
|
});
|
|
@@ -9232,7 +9262,7 @@ script.__file = "src/components/transfer/QasTransfer.vue";
|
|
|
9232
9262
|
|
|
9233
9263
|
var name = "@bildvitta/quasar-ui-asteroid";
|
|
9234
9264
|
var description = "Asteroid";
|
|
9235
|
-
var version$1 = "3.0.0-beta.
|
|
9265
|
+
var version$1 = "3.0.0-beta.7";
|
|
9236
9266
|
var author = "Bild & Vitta <systemteam@bild.com.br>";
|
|
9237
9267
|
var license = "MIT";
|
|
9238
9268
|
var main = "dist/asteroid.cjs.min.js";
|