@tiddh/brave-vue 1.9.21 → 1.9.24
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/brave-vue.esm.js +166 -65
- package/dist/brave-vue.min.js +1 -1
- package/dist/brave-vue.ssr.js +183 -82
- package/package.json +1 -2
- package/src/components/Avatar/Avatar.vue +18 -0
- package/src/components/Avatar/elements/CustomizationPanel.vue +9 -0
- package/src/components/Avatar/elements/CustomizationView.vue +28 -0
- package/src/components/Modal/Modal.vue +388 -371
- package/src/components/Preview/Preview.vue +971 -933
- package/src/components/Preview/PreviewTools.vue +2148 -1164
- package/src/components/Preview/PreviewWithTools.vue +252 -248
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tiddh/brave-vue",
|
|
3
|
-
"version": "1.9.
|
|
3
|
+
"version": "1.9.24",
|
|
4
4
|
"private": false,
|
|
5
5
|
"main": "dist/brave-vue.ssr.js",
|
|
6
6
|
"browser": "dist/brave-vue.esm.js",
|
|
@@ -34,7 +34,6 @@
|
|
|
34
34
|
"@babel/cli": "^7.8.4",
|
|
35
35
|
"@storybook/addon-knobs": "^5.3.13",
|
|
36
36
|
"@tiddh/brave-tokens": "^1.2.28",
|
|
37
|
-
"@tiddh/brave-vue": "^1.9.19",
|
|
38
37
|
"array-sort": "^1.0.0",
|
|
39
38
|
"axios": "^0.19.2",
|
|
40
39
|
"card-validator": "^6.2.0",
|
|
@@ -114,6 +114,16 @@
|
|
|
114
114
|
required: false,
|
|
115
115
|
default: null,
|
|
116
116
|
},
|
|
117
|
+
/**
|
|
118
|
+
* Mooner.<br>
|
|
119
|
+
* Values: `true` `false`
|
|
120
|
+
*/
|
|
121
|
+
custom_mooner: {
|
|
122
|
+
type: Boolean,
|
|
123
|
+
required: false,
|
|
124
|
+
default: false,
|
|
125
|
+
},
|
|
126
|
+
|
|
117
127
|
/**
|
|
118
128
|
* Se a personalização pertence a uma assinatura.<br>
|
|
119
129
|
* Values: `true` `false`
|
|
@@ -231,6 +241,14 @@
|
|
|
231
241
|
value: this.custom_dedicatoria,
|
|
232
242
|
};
|
|
233
243
|
}
|
|
244
|
+
|
|
245
|
+
if (this.custom_mooner) {
|
|
246
|
+
this.custom_properties["nome-do-mooner"] = {
|
|
247
|
+
code: "nome-do-mooner",
|
|
248
|
+
property_id: 154,
|
|
249
|
+
value: "ARIRANHA",
|
|
250
|
+
};
|
|
251
|
+
}
|
|
234
252
|
},
|
|
235
253
|
mounted() {
|
|
236
254
|
document.body.style.overflow = "hidden";
|
|
@@ -20,6 +20,7 @@
|
|
|
20
20
|
]"
|
|
21
21
|
:ref="category.code"
|
|
22
22
|
:id="category.code"
|
|
23
|
+
v-show="category.code !== 'mooner' && category.code !== 'pet'"
|
|
23
24
|
class="customization-categories-item"
|
|
24
25
|
@click="handleSelectCategory(category)"
|
|
25
26
|
>
|
|
@@ -376,6 +377,14 @@
|
|
|
376
377
|
missing = true;
|
|
377
378
|
requiredCustomization = el;
|
|
378
379
|
}
|
|
380
|
+
} else {
|
|
381
|
+
if (el.code.includes("mooner") || el.code.includes("pet")) {
|
|
382
|
+
customizationValidation = this.disabledCategories.find(
|
|
383
|
+
(disabled) => {
|
|
384
|
+
return el.id === disabled.categoryId;
|
|
385
|
+
}
|
|
386
|
+
);
|
|
387
|
+
}
|
|
379
388
|
}
|
|
380
389
|
});
|
|
381
390
|
|
|
@@ -345,6 +345,34 @@
|
|
|
345
345
|
}
|
|
346
346
|
customization = this.getCategoryDefaultCustomization(c);
|
|
347
347
|
|
|
348
|
+
if (c.code.includes("mooner")) {
|
|
349
|
+
console.log(c);
|
|
350
|
+
|
|
351
|
+
// c.assets.subcategories[0].parent_id;
|
|
352
|
+
// null
|
|
353
|
+
// c.assets.subcategories[0].id;
|
|
354
|
+
// c.assets.subcategories[0].name;
|
|
355
|
+
// c.assets.subcategories[0].assets.asset;
|
|
356
|
+
// null,
|
|
357
|
+
// null,
|
|
358
|
+
this.updateCustomizations(
|
|
359
|
+
c.assets.subcategories[0].parent_id,
|
|
360
|
+
null,
|
|
361
|
+
c.assets.subcategories[0].id,
|
|
362
|
+
c.assets.subcategories[0].name,
|
|
363
|
+
c.assets.subcategories[0].assets.asset,
|
|
364
|
+
null,
|
|
365
|
+
null
|
|
366
|
+
);
|
|
367
|
+
// categoryId:false
|
|
368
|
+
// categoryZIndex:0
|
|
369
|
+
// firstGroup:true
|
|
370
|
+
// optionAsset:"https://dka04237waacy.cloudfront.net/uploads/beto-biscoito/01-15/menino-mooner-ariranha.svg"
|
|
371
|
+
// optionId:4652
|
|
372
|
+
// optionName:"ariranha"
|
|
373
|
+
// optionZIndex:undefined
|
|
374
|
+
// relatedCategoryId:null
|
|
375
|
+
}
|
|
348
376
|
if (customization)
|
|
349
377
|
this.updateCustomizations(
|
|
350
378
|
customization.categoryId,
|