@tiddh/brave-vue 1.93.245 → 1.93.248
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/README.md +19 -19
- package/dist/brave-vue.esm.js +425 -104
- package/dist/brave-vue.min.js +1 -1
- package/dist/brave-vue.ssr.js +563 -242
- package/dist/css/app.fe0bf874.css +1 -0
- package/dist/favicon.ico +0 -0
- package/dist/images/a3-poster-lg.png +0 -0
- package/dist/images/a3-poster-lg@2x.png +0 -0
- package/dist/images/book-cover-overlay.png +0 -0
- package/dist/images/brands/branding.svg +9 -0
- package/dist/images/brands/payment-agiplan.svg +5 -0
- package/dist/images/brands/payment-amex.svg +4 -0
- package/dist/images/brands/payment-boleto.svg +6 -0
- package/dist/images/brands/payment-diners.svg +4 -0
- package/dist/images/brands/payment-elo.svg +11 -0
- package/dist/images/brands/payment-hipercard.svg +11 -0
- package/dist/images/brands/payment-jcb.svg +7 -0
- package/dist/images/brands/payment-mastercard.svg +6 -0
- package/dist/images/brands/payment-pix.svg +4 -0
- package/dist/images/brands/payment-visa.svg +4 -0
- package/dist/images/brands/payment-zcredez.svg +4 -0
- package/dist/images/brands/social-facebook.svg +3 -0
- package/dist/images/brands/social-google.svg +8 -0
- package/dist/images/mochila-biscoito.png +0 -0
- package/dist/images/mochila-biscoito.webp +0 -0
- package/dist/images/mochila-biscoito@2x.png +0 -0
- package/dist/images/mochila-biscoito@2x.webp +0 -0
- package/dist/images/mochila-fofilha.png +0 -0
- package/dist/images/mochila-fofilha.webp +0 -0
- package/dist/images/mochila-fofilha@2x.png +0 -0
- package/dist/images/mochila-fofilha@2x.webp +0 -0
- package/dist/images/placeholder-a4.jpg +0 -0
- package/dist/images/placeholder-load-frame_a3-loading.jpg +0 -0
- package/dist/images/placeholder-poster-loading.jpg +0 -0
- package/dist/images/placeholder-square.jpg +0 -0
- package/dist/images/placeholder-wallpaper-loading.jpg +0 -0
- package/dist/images/product-type-a3-frame-poster@2x.png +0 -0
- package/dist/images/product-type-a3-frame.png +0 -0
- package/dist/images/product-type-a3-frame@2x.png +0 -0
- package/dist/images/product-type-wallpaper-loading-wallpaper@2x.png +0 -0
- package/dist/images/product-type-wallpaper-loading.png +0 -0
- package/dist/images/product-type-wallpaper-placeholder-wallpaper@2x.png +0 -0
- package/dist/images/product-type-wallpaper-wallpaper@2x.png +0 -0
- package/dist/images/wallpaper-preview-lg.png +0 -0
- package/dist/images/wallpaper-preview-lg@2x.jpg +0 -0
- package/dist/images/wallpaper-preview-lg@2x.png +0 -0
- package/dist/images/wallpaper-preview-sm.jpg +0 -0
- package/dist/images/wallpaper-preview-sm.png +0 -0
- package/dist/images/wallpaper-preview-sm@2x.jpg +0 -0
- package/dist/images/wallpaper-preview-sm@2x.png +0 -0
- package/dist/img/logo.82b9c7a5.png +0 -0
- package/dist/index.html +1 -0
- package/dist/js/app.65662155.js +2 -0
- package/dist/js/app.65662155.js.map +1 -0
- package/dist/js/chunk-vendors.79828c5e.js +8 -0
- package/dist/js/chunk-vendors.79828c5e.js.map +1 -0
- package/dist/src/App.vue +28 -28
- package/dist/src/Avatar/Avatar.stories.js +235 -235
- package/dist/src/Avatar/Avatar.vue +490 -490
- package/dist/src/Avatar/elements/CategoryCustomizations.vue +554 -544
- package/dist/src/Avatar/elements/CustomizationPanel.vue +1302 -1292
- package/dist/src/Avatar/elements/CustomizationPreview.vue +180 -175
- package/dist/src/Avatar/elements/CustomizationView.vue +828 -828
- package/dist/src/Avatar/elements/ToggleColor.vue +128 -128
- package/dist/src/Avatar/elements/ToggleSubcategory.vue +154 -154
- package/dist/src/Avatar/elements/scss/avatar-vfx.scss +717 -717
- package/dist/src/Avatar/utils.js +149 -149
- package/dist/src/Avatar.stories.js +235 -235
- package/dist/src/Avatar.vue +490 -490
- package/dist/src/Book/Preview.vue +1296 -1296
- package/dist/src/Book/PreviewBook.vue +532 -532
- package/dist/src/Book/PreviewFull.vue +188 -188
- package/dist/src/Book/PreviewMobile.vue +1271 -1271
- package/dist/src/Book/PreviewSnippetFull.vue +535 -0
- package/dist/src/Book/PreviewSnippetHorizontal.vue +1296 -0
- package/dist/src/Book/PreviewSnippetVertical.vue +1297 -0
- package/dist/src/Book/PreviewTools.vue +3901 -3901
- package/dist/src/Book/css/flipbook.scss +166 -166
- package/dist/src/Book/js/turn.min.js +68 -68
- package/dist/src/Book/js/zoom.min.js +26 -26
- package/dist/src/BottomBar.vue +435 -435
- package/dist/src/Brand.stories.js +275 -275
- package/dist/src/Brand.vue +364 -364
- package/dist/src/Brands/Brand.stories.js +275 -275
- package/dist/src/Brands/Brand.vue +364 -364
- package/dist/src/Breadcrumb.stories.js +82 -82
- package/dist/src/Breadcrumb.vue +206 -206
- package/dist/src/Button.vue +1886 -1886
- package/dist/src/ButtonWithIcon.stories.js +133 -133
- package/dist/src/Buttons/Button.vue +1886 -1886
- package/dist/src/Buttons/ButtonWithIcon.stories.js +133 -133
- package/dist/src/Buttons/Ghost.stories.js +78 -78
- package/dist/src/Buttons/Link.stories.js +77 -77
- package/dist/src/Buttons/Loading.stories.js +107 -107
- package/dist/src/Buttons/Primary.stories.js +79 -79
- package/dist/src/Buttons/ProgressiveLoading.stories.js +94 -94
- package/dist/src/Buttons/Secondary.stories.js +79 -79
- package/dist/src/Caption.stories.js +27 -27
- package/dist/src/Caption.vue +63 -63
- package/dist/src/Card/Card.stories.js +37 -37
- package/dist/src/Card/Card.vue +131 -131
- package/dist/src/Card/CardLink.stories.js +44 -44
- package/dist/src/Card/CardLink.vue +233 -233
- package/dist/src/Card/CardOption.stories.js +47 -47
- package/dist/src/Card/CardOption.vue +274 -274
- package/dist/src/Card/CardProduct.stories.js +133 -133
- package/dist/src/Card/CardProduct.vue +1026 -1026
- package/dist/src/Card/CatalogProduct.stories.js +154 -154
- package/dist/src/Card/CatalogProduct.vue +898 -898
- package/dist/src/Card/CoverProduct.stories.js +134 -134
- package/dist/src/Card/CoverProduct.vue +526 -526
- package/dist/src/Card.stories.js +37 -37
- package/dist/src/Card.vue +131 -131
- package/dist/src/CardLink.stories.js +44 -44
- package/dist/src/CardLink.vue +233 -233
- package/dist/src/CardOption.stories.js +47 -47
- package/dist/src/CardOption.vue +274 -274
- package/dist/src/CardProduct.stories.js +133 -133
- package/dist/src/CardProduct.vue +1026 -1026
- package/dist/src/CatalogProduct.stories.js +154 -154
- package/dist/src/CatalogProduct.vue +898 -898
- package/dist/src/CategoryCustomizations.vue +554 -544
- package/dist/src/Checkbox.stories.js +39 -39
- package/dist/src/Checkbox.vue +205 -205
- package/dist/src/CoverProduct.stories.js +134 -134
- package/dist/src/CoverProduct.vue +526 -526
- package/dist/src/CustomizationPanel.vue +1302 -1292
- package/dist/src/CustomizationPreview.vue +180 -175
- package/dist/src/CustomizationView.vue +828 -828
- package/dist/src/Feedback.vue +320 -320
- package/dist/src/Form/Checkbox.stories.js +39 -39
- package/dist/src/Form/Checkbox.vue +205 -205
- package/dist/src/Form/GenderSelect.stories.js +60 -60
- package/dist/src/Form/GenderSelect.vue +302 -302
- package/dist/src/Form/Input.stories.js +555 -555
- package/dist/src/Form/Input.vue +951 -951
- package/dist/src/Form/InputAddress.vue +700 -702
- package/dist/src/Form/InputAddressBilling.vue +633 -633
- package/dist/src/Form/InputAddressNumber.vue +634 -634
- package/dist/src/Form/InputCardNumber.vue +653 -653
- package/dist/src/Form/InputEdit.vue +235 -235
- package/dist/src/Form/InputEmail.vue +240 -240
- package/dist/src/Form/InputName.vue +352 -352
- package/dist/src/Form/Options.stories.js +94 -94
- package/dist/src/Form/Options.vue +398 -398
- package/dist/src/Form/Picker.stories.js +43 -43
- package/dist/src/Form/PickerBirthday.vue +631 -631
- package/dist/src/Form/Radius.stories.js +49 -49
- package/dist/src/Form/Radius.vue +160 -160
- package/dist/src/Form/Select.stories.js +97 -97
- package/dist/src/Form/Select.vue +404 -404
- package/dist/src/Form/SelectBirthday.vue +419 -419
- package/dist/src/Form/TextArea.stories.js +52 -52
- package/dist/src/Form/TextArea.vue +277 -277
- package/dist/src/GenderSelect.stories.js +60 -60
- package/dist/src/GenderSelect.vue +302 -302
- package/dist/src/Ghost.stories.js +78 -78
- package/dist/src/HR.vue +68 -68
- package/dist/src/Heading.stories.js +34 -34
- package/dist/src/Heading.vue +102 -102
- package/dist/src/HelloWorld.vue +59 -59
- package/dist/src/Icon.stories.js +1155 -1155
- package/dist/src/Icon.vue +364 -364
- package/dist/src/Icons/Icon.stories.js +1155 -1155
- package/dist/src/Icons/Icon.vue +364 -364
- package/dist/src/Images/Images.stories.js +25 -25
- package/dist/src/Images/Images.vue +51 -51
- package/dist/src/Images.stories.js +25 -25
- package/dist/src/Images.vue +51 -51
- package/dist/src/Input.stories.js +555 -555
- package/dist/src/Input.vue +951 -951
- package/dist/src/InputAddress.vue +700 -702
- package/dist/src/InputAddressBilling.vue +633 -633
- package/dist/src/InputAddressNumber.vue +634 -634
- package/dist/src/InputCardNumber.vue +653 -653
- package/dist/src/InputEdit.vue +235 -235
- package/dist/src/InputEmail.vue +240 -240
- package/dist/src/InputName.vue +352 -352
- package/dist/src/Link.stories.js +77 -77
- package/dist/src/Loading/Loading.stories.js +25 -25
- package/dist/src/Loading/Loading.vue +103 -103
- package/dist/src/Loading.stories.js +25 -25
- package/dist/src/Loading.vue +103 -103
- package/dist/src/MenuNavigation.stories.js +87 -87
- package/dist/src/MenuNavigation.vue +227 -227
- package/dist/src/Modal/Modal.stories.js +56 -56
- package/dist/src/Modal/Modal.vue +469 -469
- package/dist/src/Modal/Sidebar.stories.js +64 -64
- package/dist/src/Modal/Sidebar.vue +649 -649
- package/dist/src/Modal.stories.js +56 -56
- package/dist/src/Modal.vue +469 -469
- package/dist/src/Navigation/Breadcrumb.stories.js +82 -82
- package/dist/src/Navigation/Breadcrumb.vue +206 -206
- package/dist/src/Navigation/MenuNavigation.stories.js +87 -87
- package/dist/src/Navigation/MenuNavigation.vue +227 -227
- package/dist/src/Navigation/Stepper.stories.js +82 -82
- package/dist/src/Navigation/Stepper.vue +222 -222
- package/dist/src/Navigation/Tabs.stories.js +124 -124
- package/dist/src/Navigation/Tabs.vue +192 -192
- package/dist/src/Navigation/TabsLine.vue +407 -407
- package/dist/src/Navigation/TopBar.stories.js +217 -217
- package/dist/src/Navigation/TopBar.vue +370 -370
- package/dist/src/Options.stories.js +94 -94
- package/dist/src/Options.vue +398 -398
- package/dist/src/Paragraph.stories.js +33 -33
- package/dist/src/Paragraph.vue +85 -85
- package/dist/src/Picker.stories.js +43 -43
- package/dist/src/PickerBirthday.vue +631 -631
- package/dist/src/Poster/PreviewPoster.vue +729 -729
- package/dist/src/Preview/Book/Preview.vue +1296 -1296
- package/dist/src/Preview/Book/PreviewBook.vue +532 -532
- package/dist/src/Preview/Book/PreviewFull.vue +188 -188
- package/dist/src/Preview/Book/PreviewMobile.vue +1271 -1271
- package/dist/src/Preview/Book/PreviewSnippetFull.vue +535 -0
- package/dist/src/Preview/Book/PreviewSnippetHorizontal.vue +1296 -0
- package/dist/src/Preview/Book/PreviewSnippetVertical.vue +1297 -0
- package/dist/src/Preview/Book/PreviewTools.vue +3901 -3901
- package/dist/src/Preview/Book/css/flipbook.scss +166 -166
- package/dist/src/Preview/Book/js/turn.min.js +68 -68
- package/dist/src/Preview/Book/js/zoom.min.js +26 -26
- package/dist/src/Preview/BottomBar.vue +435 -435
- package/dist/src/Preview/Poster/PreviewPoster.vue +729 -729
- package/dist/src/Preview/Preview.stories.js +946 -781
- package/dist/src/Preview/Preview.vue +601 -601
- package/dist/src/Preview/PreviewSnippet.vue +504 -0
- package/dist/src/Preview/PreviewStories_bkp.js +588 -588
- package/dist/src/Preview/Wallpaper/PreviewWallpaper.vue +718 -718
- package/dist/src/Preview.stories.js +946 -781
- package/dist/src/Preview.vue +1296 -1296
- package/dist/src/PreviewBook.vue +532 -532
- package/dist/src/PreviewFull.vue +188 -188
- package/dist/src/PreviewMobile.vue +1271 -1271
- package/dist/src/PreviewPoster.vue +729 -729
- package/dist/src/PreviewSnippet.vue +504 -0
- package/dist/src/PreviewSnippetFull.vue +535 -0
- package/dist/src/PreviewSnippetHorizontal.vue +1296 -0
- package/dist/src/PreviewSnippetVertical.vue +1297 -0
- package/dist/src/PreviewStories_bkp.js +588 -588
- package/dist/src/PreviewTools.vue +3901 -3901
- package/dist/src/PreviewWallpaper.vue +718 -718
- package/dist/src/Primary.stories.js +79 -79
- package/dist/src/ProgressiveLoading.stories.js +94 -94
- package/dist/src/Radius.stories.js +49 -49
- package/dist/src/Radius.vue +160 -160
- package/dist/src/Secondary.stories.js +79 -79
- package/dist/src/Select.stories.js +97 -97
- package/dist/src/Select.vue +404 -404
- package/dist/src/SelectBirthday.vue +419 -419
- package/dist/src/Sidebar.stories.js +64 -64
- package/dist/src/Sidebar.vue +649 -649
- package/dist/src/Spinner.vue +89 -89
- package/dist/src/Stepper.stories.js +82 -82
- package/dist/src/Stepper.vue +222 -222
- package/dist/src/Tabs.stories.js +124 -124
- package/dist/src/Tabs.vue +192 -192
- package/dist/src/TabsLine.vue +407 -407
- package/dist/src/TextArea.stories.js +52 -52
- package/dist/src/TextArea.vue +277 -277
- package/dist/src/ToggleColor.vue +128 -128
- package/dist/src/ToggleSubcategory.vue +154 -154
- package/dist/src/Tooltip/Tooltip.stories.js +51 -51
- package/dist/src/Tooltip/Tooltip.vue +185 -185
- package/dist/src/Tooltip.stories.js +51 -51
- package/dist/src/Tooltip.vue +185 -185
- package/dist/src/TopBar.stories.js +217 -217
- package/dist/src/TopBar.vue +370 -370
- package/dist/src/Typography/Caption.stories.js +27 -27
- package/dist/src/Typography/Caption.vue +63 -63
- package/dist/src/Typography/Heading.stories.js +34 -34
- package/dist/src/Typography/Heading.vue +102 -102
- package/dist/src/Typography/Paragraph.stories.js +33 -33
- package/dist/src/Typography/Paragraph.vue +85 -85
- package/dist/src/Utils/Feedback.vue +320 -320
- package/dist/src/Utils/HR.vue +68 -68
- package/dist/src/Utils/Spinner.vue +89 -89
- package/dist/src/Utils/feedback.stories.js +44 -44
- package/dist/src/Utils/hr-primary.stories.js +37 -37
- package/dist/src/Utils/spinner.stories.js +23 -23
- package/dist/src/Wallpaper/PreviewWallpaper.vue +718 -718
- package/dist/src/avatar-vfx.scss +717 -717
- package/dist/src/components/Avatar/Avatar.stories.js +235 -235
- package/dist/src/components/Avatar/Avatar.vue +490 -490
- package/dist/src/components/Avatar/elements/CategoryCustomizations.vue +554 -544
- package/dist/src/components/Avatar/elements/CustomizationPanel.vue +1302 -1292
- package/dist/src/components/Avatar/elements/CustomizationPreview.vue +180 -175
- package/dist/src/components/Avatar/elements/CustomizationView.vue +828 -828
- package/dist/src/components/Avatar/elements/ToggleColor.vue +128 -128
- package/dist/src/components/Avatar/elements/ToggleSubcategory.vue +154 -154
- package/dist/src/components/Avatar/elements/scss/avatar-vfx.scss +717 -717
- package/dist/src/components/Avatar/utils.js +149 -149
- package/dist/src/components/Brands/Brand.stories.js +275 -275
- package/dist/src/components/Brands/Brand.vue +364 -364
- package/dist/src/components/Buttons/Button.vue +1886 -1886
- package/dist/src/components/Buttons/ButtonWithIcon.stories.js +133 -133
- package/dist/src/components/Buttons/Ghost.stories.js +78 -78
- package/dist/src/components/Buttons/Link.stories.js +77 -77
- package/dist/src/components/Buttons/Loading.stories.js +107 -107
- package/dist/src/components/Buttons/Primary.stories.js +79 -79
- package/dist/src/components/Buttons/ProgressiveLoading.stories.js +94 -94
- package/dist/src/components/Buttons/Secondary.stories.js +79 -79
- package/dist/src/components/Card/Card.stories.js +37 -37
- package/dist/src/components/Card/Card.vue +131 -131
- package/dist/src/components/Card/CardLink.stories.js +44 -44
- package/dist/src/components/Card/CardLink.vue +233 -233
- package/dist/src/components/Card/CardOption.stories.js +47 -47
- package/dist/src/components/Card/CardOption.vue +274 -274
- package/dist/src/components/Card/CardProduct.stories.js +133 -133
- package/dist/src/components/Card/CardProduct.vue +1026 -1026
- package/dist/src/components/Card/CatalogProduct.stories.js +154 -154
- package/dist/src/components/Card/CatalogProduct.vue +898 -898
- package/dist/src/components/Card/CoverProduct.stories.js +134 -134
- package/dist/src/components/Card/CoverProduct.vue +526 -526
- package/dist/src/components/Form/Checkbox.stories.js +39 -39
- package/dist/src/components/Form/Checkbox.vue +205 -205
- package/dist/src/components/Form/GenderSelect.stories.js +60 -60
- package/dist/src/components/Form/GenderSelect.vue +302 -302
- package/dist/src/components/Form/Input.stories.js +555 -555
- package/dist/src/components/Form/Input.vue +951 -951
- package/dist/src/components/Form/InputAddress.vue +700 -702
- package/dist/src/components/Form/InputAddressBilling.vue +633 -633
- package/dist/src/components/Form/InputAddressNumber.vue +634 -634
- package/dist/src/components/Form/InputCardNumber.vue +653 -653
- package/dist/src/components/Form/InputEdit.vue +235 -235
- package/dist/src/components/Form/InputEmail.vue +240 -240
- package/dist/src/components/Form/InputName.vue +352 -352
- package/dist/src/components/Form/Options.stories.js +94 -94
- package/dist/src/components/Form/Options.vue +398 -398
- package/dist/src/components/Form/Picker.stories.js +43 -43
- package/dist/src/components/Form/PickerBirthday.vue +631 -631
- package/dist/src/components/Form/Radius.stories.js +49 -49
- package/dist/src/components/Form/Radius.vue +160 -160
- package/dist/src/components/Form/Select.stories.js +97 -97
- package/dist/src/components/Form/Select.vue +404 -404
- package/dist/src/components/Form/SelectBirthday.vue +419 -419
- package/dist/src/components/Form/TextArea.stories.js +52 -52
- package/dist/src/components/Form/TextArea.vue +277 -277
- package/dist/src/components/HelloWorld.vue +59 -59
- package/dist/src/components/Icons/Icon.stories.js +1155 -1155
- package/dist/src/components/Icons/Icon.vue +364 -364
- package/dist/src/components/Images/Images.stories.js +25 -25
- package/dist/src/components/Images/Images.vue +51 -51
- package/dist/src/components/Loading/Loading.stories.js +25 -25
- package/dist/src/components/Loading/Loading.vue +103 -103
- package/dist/src/components/Modal/Modal.stories.js +56 -56
- package/dist/src/components/Modal/Modal.vue +469 -469
- package/dist/src/components/Modal/Sidebar.stories.js +64 -64
- package/dist/src/components/Modal/Sidebar.vue +649 -649
- package/dist/src/components/Navigation/Breadcrumb.stories.js +82 -82
- package/dist/src/components/Navigation/Breadcrumb.vue +206 -206
- package/dist/src/components/Navigation/MenuNavigation.stories.js +87 -87
- package/dist/src/components/Navigation/MenuNavigation.vue +227 -227
- package/dist/src/components/Navigation/Stepper.stories.js +82 -82
- package/dist/src/components/Navigation/Stepper.vue +222 -222
- package/dist/src/components/Navigation/Tabs.stories.js +124 -124
- package/dist/src/components/Navigation/Tabs.vue +192 -192
- package/dist/src/components/Navigation/TabsLine.vue +407 -407
- package/dist/src/components/Navigation/TopBar.stories.js +217 -217
- package/dist/src/components/Navigation/TopBar.vue +370 -370
- package/dist/src/components/Preview/Book/Preview.vue +1296 -1296
- package/dist/src/components/Preview/Book/PreviewBook.vue +532 -532
- package/dist/src/components/Preview/Book/PreviewFull.vue +188 -188
- package/dist/src/components/Preview/Book/PreviewMobile.vue +1271 -1271
- package/dist/src/components/Preview/Book/PreviewSnippetFull.vue +535 -0
- package/dist/src/components/Preview/Book/PreviewSnippetHorizontal.vue +1296 -0
- package/dist/src/components/Preview/Book/PreviewSnippetVertical.vue +1297 -0
- package/dist/src/components/Preview/Book/PreviewTools.vue +3901 -3901
- package/dist/src/components/Preview/Book/css/flipbook.scss +166 -166
- package/dist/src/components/Preview/Book/js/turn.min.js +68 -68
- package/dist/src/components/Preview/Book/js/zoom.min.js +26 -26
- package/dist/src/components/Preview/BottomBar.vue +435 -435
- package/dist/src/components/Preview/Poster/PreviewPoster.vue +729 -729
- package/dist/src/components/Preview/Preview.stories.js +946 -781
- package/dist/src/components/Preview/Preview.vue +601 -601
- package/dist/src/components/Preview/PreviewSnippet.vue +504 -0
- package/dist/src/components/Preview/PreviewStories_bkp.js +588 -588
- package/dist/src/components/Preview/Wallpaper/PreviewWallpaper.vue +718 -718
- package/dist/src/components/Tooltip/Tooltip.stories.js +51 -51
- package/dist/src/components/Tooltip/Tooltip.vue +185 -185
- package/dist/src/components/Typography/Caption.stories.js +27 -27
- package/dist/src/components/Typography/Caption.vue +63 -63
- package/dist/src/components/Typography/Heading.stories.js +34 -34
- package/dist/src/components/Typography/Heading.vue +102 -102
- package/dist/src/components/Typography/Paragraph.stories.js +33 -33
- package/dist/src/components/Typography/Paragraph.vue +85 -85
- package/dist/src/components/Utils/Feedback.vue +320 -320
- package/dist/src/components/Utils/HR.vue +68 -68
- package/dist/src/components/Utils/Spinner.vue +89 -89
- package/dist/src/components/Utils/feedback.stories.js +44 -44
- package/dist/src/components/Utils/hr-primary.stories.js +37 -37
- package/dist/src/components/Utils/spinner.stories.js +23 -23
- package/dist/src/components/index.js +42 -41
- package/dist/src/components/locale/language.json +317 -317
- package/dist/src/css/flipbook.scss +166 -166
- package/dist/src/elements/CategoryCustomizations.vue +554 -544
- package/dist/src/elements/CustomizationPanel.vue +1302 -1292
- package/dist/src/elements/CustomizationPreview.vue +180 -175
- package/dist/src/elements/CustomizationView.vue +828 -828
- package/dist/src/elements/ToggleColor.vue +128 -128
- package/dist/src/elements/ToggleSubcategory.vue +154 -154
- package/dist/src/elements/scss/avatar-vfx.scss +717 -717
- package/dist/src/entry.js +36 -36
- package/dist/src/feedback.stories.js +44 -44
- package/dist/src/flipbook.scss +166 -166
- package/dist/src/hr-primary.stories.js +37 -37
- package/dist/src/index.js +42 -41
- package/dist/src/js/turn.min.js +68 -68
- package/dist/src/js/zoom.min.js +26 -26
- package/dist/src/language.json +317 -317
- package/dist/src/locale/language.json +317 -317
- package/dist/src/main.js +8 -8
- package/dist/src/scss/avatar-vfx.scss +717 -717
- package/dist/src/serve-dev.js +8 -8
- package/dist/src/serve-dev.vue +17 -17
- package/dist/src/spinner.stories.js +23 -23
- package/dist/src/styles/styles.scss +9 -9
- package/dist/src/styles.scss +9 -9
- package/dist/src/turn.min.js +68 -68
- package/dist/src/utils.js +149 -149
- package/dist/src/wrapper.js +69 -69
- package/dist/src/zoom.min.js +26 -26
- package/package.json +120 -119
|
@@ -1,490 +1,490 @@
|
|
|
1
|
-
<template>
|
|
2
|
-
<div class="avatar-page">
|
|
3
|
-
<CustomizationView
|
|
4
|
-
:custom_properties="{
|
|
5
|
-
character_id: character_id,
|
|
6
|
-
product_id: product_id,
|
|
7
|
-
type_id: type_id,
|
|
8
|
-
is_male: is_male,
|
|
9
|
-
slug: character_slug,
|
|
10
|
-
uuid: uuid,
|
|
11
|
-
user_data: {
|
|
12
|
-
properties: custom_properties,
|
|
13
|
-
type_id: type_id,
|
|
14
|
-
},
|
|
15
|
-
}"
|
|
16
|
-
:gradient_colors="gradient_colors"
|
|
17
|
-
:is_subscription="is_subscription"
|
|
18
|
-
:builder_api="'https://builder.dentrodahistoria.com.br/api'"
|
|
19
|
-
:builderLayoutId="builderLayoutId"
|
|
20
|
-
:language="language"
|
|
21
|
-
:typeLanguage="typeLanguage"
|
|
22
|
-
:dir="dir"
|
|
23
|
-
@startedMethod="started"
|
|
24
|
-
@completedMethod="completed"
|
|
25
|
-
/>
|
|
26
|
-
</div>
|
|
27
|
-
</template>
|
|
28
|
-
|
|
29
|
-
<script>
|
|
30
|
-
const axios = require("axios");
|
|
31
|
-
|
|
32
|
-
import CustomizationView from "./elements/CustomizationView.vue";
|
|
33
|
-
//import monthsHelper from "./utils.js";
|
|
34
|
-
|
|
35
|
-
export default {
|
|
36
|
-
name: "Avatar",
|
|
37
|
-
components: {
|
|
38
|
-
CustomizationView,
|
|
39
|
-
},
|
|
40
|
-
props: {
|
|
41
|
-
/**
|
|
42
|
-
* ID do personagem.<br>
|
|
43
|
-
* Example: `57`
|
|
44
|
-
*/
|
|
45
|
-
character_id: {
|
|
46
|
-
type: Number,
|
|
47
|
-
required: true,
|
|
48
|
-
},
|
|
49
|
-
/**
|
|
50
|
-
* Slug do personagem.<br>
|
|
51
|
-
* Example: `turma_da_monica`
|
|
52
|
-
*/
|
|
53
|
-
character_slug: {
|
|
54
|
-
type: String,
|
|
55
|
-
required: false,
|
|
56
|
-
default: "noone",
|
|
57
|
-
},
|
|
58
|
-
/**
|
|
59
|
-
* ID no produto no ecommerce.<br>
|
|
60
|
-
* Example: `595`
|
|
61
|
-
*/
|
|
62
|
-
product_id: {
|
|
63
|
-
type: Number,
|
|
64
|
-
required: true,
|
|
65
|
-
},
|
|
66
|
-
|
|
67
|
-
/**
|
|
68
|
-
* ID do gênero.<br>
|
|
69
|
-
* Example: `88`
|
|
70
|
-
*/
|
|
71
|
-
type_id: {
|
|
72
|
-
type: Number,
|
|
73
|
-
default: null,
|
|
74
|
-
required: false,
|
|
75
|
-
},
|
|
76
|
-
|
|
77
|
-
/**
|
|
78
|
-
* Se personagem é menino.<br>
|
|
79
|
-
* Values: `true` `false`
|
|
80
|
-
*/
|
|
81
|
-
is_male: {
|
|
82
|
-
type: Boolean,
|
|
83
|
-
required: true,
|
|
84
|
-
},
|
|
85
|
-
/**
|
|
86
|
-
* Nome da criança.<br>
|
|
87
|
-
* Example: `Diegito`
|
|
88
|
-
*/
|
|
89
|
-
name: {
|
|
90
|
-
type: String,
|
|
91
|
-
required: true,
|
|
92
|
-
},
|
|
93
|
-
/**
|
|
94
|
-
* Dia do aniversário ou camisa.<br>
|
|
95
|
-
* Example: `6`
|
|
96
|
-
*/
|
|
97
|
-
custom_numero: {
|
|
98
|
-
type: Number,
|
|
99
|
-
required: false,
|
|
100
|
-
default: null,
|
|
101
|
-
},
|
|
102
|
-
/**
|
|
103
|
-
* Mês do aniversário.<br>
|
|
104
|
-
* Example: `6`
|
|
105
|
-
*/
|
|
106
|
-
custom_mes: {
|
|
107
|
-
type: Number,
|
|
108
|
-
required: false,
|
|
109
|
-
default: null,
|
|
110
|
-
},
|
|
111
|
-
/**
|
|
112
|
-
* Dedicatória.<br>
|
|
113
|
-
* Example: `Espero que goste de fazer parte dessa aventura. Boa leitura!`
|
|
114
|
-
*/
|
|
115
|
-
custom_dedicatoria: {
|
|
116
|
-
type: String,
|
|
117
|
-
required: false,
|
|
118
|
-
default: null,
|
|
119
|
-
},
|
|
120
|
-
/**
|
|
121
|
-
* Mooner.<br>
|
|
122
|
-
* Values: `true` `false`
|
|
123
|
-
*/
|
|
124
|
-
custom_mooner: {
|
|
125
|
-
type: Boolean,
|
|
126
|
-
required: false,
|
|
127
|
-
default: false,
|
|
128
|
-
},
|
|
129
|
-
|
|
130
|
-
/**
|
|
131
|
-
* Se a personalização pertence a uma assinatura.<br>
|
|
132
|
-
* Values: `true` `false`
|
|
133
|
-
*/
|
|
134
|
-
is_subscription: {
|
|
135
|
-
type: Boolean,
|
|
136
|
-
default: false,
|
|
137
|
-
},
|
|
138
|
-
/**
|
|
139
|
-
* UUID de uma customização existente, irá carregar uma personalização.<br>
|
|
140
|
-
* Example: `ddh5dbacd9713f23`
|
|
141
|
-
*/
|
|
142
|
-
uuid: {
|
|
143
|
-
type: String,
|
|
144
|
-
required: false,
|
|
145
|
-
},
|
|
146
|
-
/**
|
|
147
|
-
* Cores do gradiente de background. Caso vazio, BG será branco.<br>
|
|
148
|
-
* Example: `{ "bgInner":"rgb(255, 255, 255)", "bgCentral":"rgb(183, 254, 255)", "bgOuter":"rgb(40, 138, 255)" }`
|
|
149
|
-
*/
|
|
150
|
-
gradient_colors: {
|
|
151
|
-
type: Object,
|
|
152
|
-
required: false,
|
|
153
|
-
default: {
|
|
154
|
-
bgInner: "#FFFFFF",
|
|
155
|
-
bgCentral: "#B7FEFF",
|
|
156
|
-
bgOuter: "#288AFF",
|
|
157
|
-
},
|
|
158
|
-
},
|
|
159
|
-
/**
|
|
160
|
-
* LayoutId do Builder para salvar contextos de livros diferentes.<br>
|
|
161
|
-
* Example: `12345`
|
|
162
|
-
*/
|
|
163
|
-
builderLayoutId: {
|
|
164
|
-
type: [Number, String],
|
|
165
|
-
required: false,
|
|
166
|
-
},
|
|
167
|
-
/**
|
|
168
|
-
* Language utilizado para selecionar o idioma do livro, este parametro deve ser informado na chamada da treelist e na criação do personagem
|
|
169
|
-
*/
|
|
170
|
-
language: {
|
|
171
|
-
type: String,
|
|
172
|
-
required: false,
|
|
173
|
-
},
|
|
174
|
-
|
|
175
|
-
typeLanguage: {
|
|
176
|
-
type: String,
|
|
177
|
-
required: false,
|
|
178
|
-
default: "pt",
|
|
179
|
-
},
|
|
180
|
-
|
|
181
|
-
dir: {
|
|
182
|
-
type: String,
|
|
183
|
-
default: "ltr",
|
|
184
|
-
required: false,
|
|
185
|
-
},
|
|
186
|
-
},
|
|
187
|
-
data() {
|
|
188
|
-
return {
|
|
189
|
-
custom_properties: {},
|
|
190
|
-
};
|
|
191
|
-
},
|
|
192
|
-
computed: {
|
|
193
|
-
monthsHelper(month) {
|
|
194
|
-
switch (month) {
|
|
195
|
-
case 1:
|
|
196
|
-
return "Janeiro";
|
|
197
|
-
break;
|
|
198
|
-
case 2:
|
|
199
|
-
return "Fevereiro";
|
|
200
|
-
break;
|
|
201
|
-
case 3:
|
|
202
|
-
return "Março";
|
|
203
|
-
break;
|
|
204
|
-
case 4:
|
|
205
|
-
return "Abril";
|
|
206
|
-
break;
|
|
207
|
-
case 5:
|
|
208
|
-
return "Maio";
|
|
209
|
-
break;
|
|
210
|
-
case 6:
|
|
211
|
-
return "Junho";
|
|
212
|
-
break;
|
|
213
|
-
case 7:
|
|
214
|
-
return "Julho";
|
|
215
|
-
break;
|
|
216
|
-
case 8:
|
|
217
|
-
return "Agosto";
|
|
218
|
-
break;
|
|
219
|
-
case 9:
|
|
220
|
-
return "Setembro";
|
|
221
|
-
break;
|
|
222
|
-
case 10:
|
|
223
|
-
return "Outubro";
|
|
224
|
-
break;
|
|
225
|
-
case 11:
|
|
226
|
-
return "Novembro";
|
|
227
|
-
break;
|
|
228
|
-
case 12:
|
|
229
|
-
return "Dezembro";
|
|
230
|
-
break;
|
|
231
|
-
}
|
|
232
|
-
},
|
|
233
|
-
},
|
|
234
|
-
async created() {
|
|
235
|
-
const self = this;
|
|
236
|
-
|
|
237
|
-
this.custom_properties = {
|
|
238
|
-
nome: {
|
|
239
|
-
code: "nome",
|
|
240
|
-
property_id: 24,
|
|
241
|
-
value: this.name,
|
|
242
|
-
},
|
|
243
|
-
};
|
|
244
|
-
|
|
245
|
-
if (this.custom_numero) {
|
|
246
|
-
this.custom_properties.numero = {
|
|
247
|
-
code: "numero",
|
|
248
|
-
property_id: 29,
|
|
249
|
-
value: this.custom_numero.toString(),
|
|
250
|
-
};
|
|
251
|
-
}
|
|
252
|
-
if (this.custom_mes) {
|
|
253
|
-
this.custom_properties.mes = {
|
|
254
|
-
code: "mes",
|
|
255
|
-
property_id: 38,
|
|
256
|
-
value: this.monthsHelperByName(this.custom_mes),
|
|
257
|
-
};
|
|
258
|
-
}
|
|
259
|
-
if (this.custom_dedicatoria) {
|
|
260
|
-
this.custom_properties.dedicatoria = {
|
|
261
|
-
code: "dedicatoria",
|
|
262
|
-
property_id: 26,
|
|
263
|
-
value: this.custom_dedicatoria,
|
|
264
|
-
};
|
|
265
|
-
}
|
|
266
|
-
|
|
267
|
-
if (this.custom_mooner) {
|
|
268
|
-
var nameMooner = "Morsax";
|
|
269
|
-
|
|
270
|
-
if (self.uuid) {
|
|
271
|
-
axios
|
|
272
|
-
.get(
|
|
273
|
-
"https://builder.dentrodahistoria.com.br/api/customs_characters/" +
|
|
274
|
-
self.uuid
|
|
275
|
-
)
|
|
276
|
-
.then((response) => {
|
|
277
|
-
console.log(response);
|
|
278
|
-
if (response.data.custom.user_data.properties["nome-do-mooner"]) {
|
|
279
|
-
nameMooner =
|
|
280
|
-
response.data.custom.user_data.properties["nome-do-mooner"]
|
|
281
|
-
.value;
|
|
282
|
-
}
|
|
283
|
-
|
|
284
|
-
this.custom_properties["nome-do-mooner"] = {
|
|
285
|
-
code: "nome-do-mooner",
|
|
286
|
-
property_id: 154,
|
|
287
|
-
value: nameMooner,
|
|
288
|
-
};
|
|
289
|
-
})
|
|
290
|
-
.catch(function (error) {
|
|
291
|
-
// let fieldError = {
|
|
292
|
-
// field: "error-modal",
|
|
293
|
-
// msg: error.response.data.message,
|
|
294
|
-
// rule: "error", // optional
|
|
295
|
-
// };
|
|
296
|
-
// self.$validator.errors.add(fieldError);
|
|
297
|
-
|
|
298
|
-
this.custom_properties["nome-do-mooner"] = {
|
|
299
|
-
code: "nome-do-mooner",
|
|
300
|
-
property_id: 154,
|
|
301
|
-
value: nameMooner,
|
|
302
|
-
};
|
|
303
|
-
|
|
304
|
-
console.log("Erro ao trazer nome do mooner");
|
|
305
|
-
});
|
|
306
|
-
}
|
|
307
|
-
|
|
308
|
-
this.custom_properties["nome-do-mooner"] = {
|
|
309
|
-
code: "nome-do-mooner",
|
|
310
|
-
property_id: 154,
|
|
311
|
-
value: nameMooner,
|
|
312
|
-
};
|
|
313
|
-
}
|
|
314
|
-
},
|
|
315
|
-
mounted() {
|
|
316
|
-
document.body.style.overflow = "hidden";
|
|
317
|
-
|
|
318
|
-
let vh = window.innerHeight * 0.01;
|
|
319
|
-
document.documentElement.style.setProperty("--vh", `${vh}px`);
|
|
320
|
-
|
|
321
|
-
this.initiated();
|
|
322
|
-
},
|
|
323
|
-
beforeDestroy() {
|
|
324
|
-
document.body.style.overflow = "unset";
|
|
325
|
-
},
|
|
326
|
-
methods: {
|
|
327
|
-
monthsHelperByName(month) {
|
|
328
|
-
switch (month) {
|
|
329
|
-
case 1:
|
|
330
|
-
return "Janeiro";
|
|
331
|
-
break;
|
|
332
|
-
case 2:
|
|
333
|
-
return "Fevereiro";
|
|
334
|
-
break;
|
|
335
|
-
case 3:
|
|
336
|
-
return "Março";
|
|
337
|
-
break;
|
|
338
|
-
case 4:
|
|
339
|
-
return "Abril";
|
|
340
|
-
break;
|
|
341
|
-
case 5:
|
|
342
|
-
return "Maio";
|
|
343
|
-
break;
|
|
344
|
-
case 6:
|
|
345
|
-
return "Junho";
|
|
346
|
-
break;
|
|
347
|
-
case 7:
|
|
348
|
-
return "Julho";
|
|
349
|
-
break;
|
|
350
|
-
case 8:
|
|
351
|
-
return "Agosto";
|
|
352
|
-
break;
|
|
353
|
-
case 9:
|
|
354
|
-
return "Setembro";
|
|
355
|
-
break;
|
|
356
|
-
case 10:
|
|
357
|
-
return "Outubro";
|
|
358
|
-
break;
|
|
359
|
-
case 11:
|
|
360
|
-
return "Novembro";
|
|
361
|
-
break;
|
|
362
|
-
case 12:
|
|
363
|
-
return "Dezembro";
|
|
364
|
-
break;
|
|
365
|
-
}
|
|
366
|
-
},
|
|
367
|
-
|
|
368
|
-
initiated() {
|
|
369
|
-
/**
|
|
370
|
-
* Função disparada no `mounted` do componente.
|
|
371
|
-
*/
|
|
372
|
-
this.$emit("initiated");
|
|
373
|
-
},
|
|
374
|
-
started() {
|
|
375
|
-
/**
|
|
376
|
-
* Função disparada ao clicar no botão para gerar a customização.
|
|
377
|
-
*/
|
|
378
|
-
this.$emit("started");
|
|
379
|
-
},
|
|
380
|
-
completed(payload) {
|
|
381
|
-
/**
|
|
382
|
-
* Função disparada ao ser finalizada customização. Recebe um objeto.
|
|
383
|
-
*/
|
|
384
|
-
this.$emit("completed", payload);
|
|
385
|
-
},
|
|
386
|
-
},
|
|
387
|
-
};
|
|
388
|
-
</script>
|
|
389
|
-
|
|
390
|
-
<style scoped lang="scss">
|
|
391
|
-
hr {
|
|
392
|
-
margin: 10px -1.5rem;
|
|
393
|
-
}
|
|
394
|
-
h1 {
|
|
395
|
-
font-family: "Nunito";
|
|
396
|
-
font-size: 24px;
|
|
397
|
-
font-weight: 900;
|
|
398
|
-
font-style: normal;
|
|
399
|
-
font-stretch: normal;
|
|
400
|
-
line-height: normal;
|
|
401
|
-
letter-spacing: normal;
|
|
402
|
-
color: #000000;
|
|
403
|
-
margin-top: 0px;
|
|
404
|
-
margin-bottom: 15px;
|
|
405
|
-
|
|
406
|
-
&:first-child {
|
|
407
|
-
display: none;
|
|
408
|
-
}
|
|
409
|
-
}
|
|
410
|
-
|
|
411
|
-
.ddh-sidebar,
|
|
412
|
-
.ddh-sidebar.hide-sidebar {
|
|
413
|
-
display: none !important;
|
|
414
|
-
}
|
|
415
|
-
|
|
416
|
-
html {
|
|
417
|
-
--scale: 1;
|
|
418
|
-
--translate: 0%;
|
|
419
|
-
}
|
|
420
|
-
|
|
421
|
-
.loading-view {
|
|
422
|
-
position: absolute;
|
|
423
|
-
top: 0;
|
|
424
|
-
width: 100%;
|
|
425
|
-
height: 100%;
|
|
426
|
-
background: white;
|
|
427
|
-
position: absolute;
|
|
428
|
-
width: 100%;
|
|
429
|
-
top: 0;
|
|
430
|
-
z-index: 200;
|
|
431
|
-
display: flex;
|
|
432
|
-
align-items: center;
|
|
433
|
-
justify-content: center;
|
|
434
|
-
flex-direction: column;
|
|
435
|
-
}
|
|
436
|
-
|
|
437
|
-
.avatar-page-1 {
|
|
438
|
-
position: absolute;
|
|
439
|
-
z-index: 3;
|
|
440
|
-
}
|
|
441
|
-
|
|
442
|
-
.avatar-page {
|
|
443
|
-
min-height: 100vh;
|
|
444
|
-
position: absolute;
|
|
445
|
-
width: 100%;
|
|
446
|
-
height: 100vh;
|
|
447
|
-
top: 0;
|
|
448
|
-
left: 0;
|
|
449
|
-
background: white;
|
|
450
|
-
@media (max-width: 992px) {
|
|
451
|
-
min-height: 0;
|
|
452
|
-
height: 100vh; /* Fallback for browsers that do not support Custom Properties */
|
|
453
|
-
height: calc(var(--vh, 1vh) * 100);
|
|
454
|
-
overflow: hidden;
|
|
455
|
-
}
|
|
456
|
-
}
|
|
457
|
-
.return {
|
|
458
|
-
position: fixed;
|
|
459
|
-
z-index: 99;
|
|
460
|
-
.icon {
|
|
461
|
-
width: 38px;
|
|
462
|
-
height: 38px;
|
|
463
|
-
position: absolute;
|
|
464
|
-
z-index: 30;
|
|
465
|
-
padding: 0.95238rem 2.77778vw;
|
|
466
|
-
svg {
|
|
467
|
-
width: 38px;
|
|
468
|
-
height: 38px;
|
|
469
|
-
path {
|
|
470
|
-
fill: #afa2ba !important;
|
|
471
|
-
stroke: #afa2ba !important;
|
|
472
|
-
transition: all 0.1s cubic-bezier(0.4, 0, 0.2, 1);
|
|
473
|
-
}
|
|
474
|
-
}
|
|
475
|
-
&:hover {
|
|
476
|
-
cursor: pointer;
|
|
477
|
-
svg,
|
|
478
|
-
path {
|
|
479
|
-
fill: #1ad3d9 !important;
|
|
480
|
-
stroke: #1ad3d9 !important;
|
|
481
|
-
}
|
|
482
|
-
}
|
|
483
|
-
&:active {
|
|
484
|
-
svg {
|
|
485
|
-
transform: scale(0.9);
|
|
486
|
-
}
|
|
487
|
-
}
|
|
488
|
-
}
|
|
489
|
-
}
|
|
490
|
-
</style>
|
|
1
|
+
<template>
|
|
2
|
+
<div class="avatar-page">
|
|
3
|
+
<CustomizationView
|
|
4
|
+
:custom_properties="{
|
|
5
|
+
character_id: character_id,
|
|
6
|
+
product_id: product_id,
|
|
7
|
+
type_id: type_id,
|
|
8
|
+
is_male: is_male,
|
|
9
|
+
slug: character_slug,
|
|
10
|
+
uuid: uuid,
|
|
11
|
+
user_data: {
|
|
12
|
+
properties: custom_properties,
|
|
13
|
+
type_id: type_id,
|
|
14
|
+
},
|
|
15
|
+
}"
|
|
16
|
+
:gradient_colors="gradient_colors"
|
|
17
|
+
:is_subscription="is_subscription"
|
|
18
|
+
:builder_api="'https://builder.dentrodahistoria.com.br/api'"
|
|
19
|
+
:builderLayoutId="builderLayoutId"
|
|
20
|
+
:language="language"
|
|
21
|
+
:typeLanguage="typeLanguage"
|
|
22
|
+
:dir="dir"
|
|
23
|
+
@startedMethod="started"
|
|
24
|
+
@completedMethod="completed"
|
|
25
|
+
/>
|
|
26
|
+
</div>
|
|
27
|
+
</template>
|
|
28
|
+
|
|
29
|
+
<script>
|
|
30
|
+
const axios = require("axios");
|
|
31
|
+
|
|
32
|
+
import CustomizationView from "./elements/CustomizationView.vue";
|
|
33
|
+
//import monthsHelper from "./utils.js";
|
|
34
|
+
|
|
35
|
+
export default {
|
|
36
|
+
name: "Avatar",
|
|
37
|
+
components: {
|
|
38
|
+
CustomizationView,
|
|
39
|
+
},
|
|
40
|
+
props: {
|
|
41
|
+
/**
|
|
42
|
+
* ID do personagem.<br>
|
|
43
|
+
* Example: `57`
|
|
44
|
+
*/
|
|
45
|
+
character_id: {
|
|
46
|
+
type: Number,
|
|
47
|
+
required: true,
|
|
48
|
+
},
|
|
49
|
+
/**
|
|
50
|
+
* Slug do personagem.<br>
|
|
51
|
+
* Example: `turma_da_monica`
|
|
52
|
+
*/
|
|
53
|
+
character_slug: {
|
|
54
|
+
type: String,
|
|
55
|
+
required: false,
|
|
56
|
+
default: "noone",
|
|
57
|
+
},
|
|
58
|
+
/**
|
|
59
|
+
* ID no produto no ecommerce.<br>
|
|
60
|
+
* Example: `595`
|
|
61
|
+
*/
|
|
62
|
+
product_id: {
|
|
63
|
+
type: Number,
|
|
64
|
+
required: true,
|
|
65
|
+
},
|
|
66
|
+
|
|
67
|
+
/**
|
|
68
|
+
* ID do gênero.<br>
|
|
69
|
+
* Example: `88`
|
|
70
|
+
*/
|
|
71
|
+
type_id: {
|
|
72
|
+
type: Number,
|
|
73
|
+
default: null,
|
|
74
|
+
required: false,
|
|
75
|
+
},
|
|
76
|
+
|
|
77
|
+
/**
|
|
78
|
+
* Se personagem é menino.<br>
|
|
79
|
+
* Values: `true` `false`
|
|
80
|
+
*/
|
|
81
|
+
is_male: {
|
|
82
|
+
type: Boolean,
|
|
83
|
+
required: true,
|
|
84
|
+
},
|
|
85
|
+
/**
|
|
86
|
+
* Nome da criança.<br>
|
|
87
|
+
* Example: `Diegito`
|
|
88
|
+
*/
|
|
89
|
+
name: {
|
|
90
|
+
type: String,
|
|
91
|
+
required: true,
|
|
92
|
+
},
|
|
93
|
+
/**
|
|
94
|
+
* Dia do aniversário ou camisa.<br>
|
|
95
|
+
* Example: `6`
|
|
96
|
+
*/
|
|
97
|
+
custom_numero: {
|
|
98
|
+
type: Number,
|
|
99
|
+
required: false,
|
|
100
|
+
default: null,
|
|
101
|
+
},
|
|
102
|
+
/**
|
|
103
|
+
* Mês do aniversário.<br>
|
|
104
|
+
* Example: `6`
|
|
105
|
+
*/
|
|
106
|
+
custom_mes: {
|
|
107
|
+
type: Number,
|
|
108
|
+
required: false,
|
|
109
|
+
default: null,
|
|
110
|
+
},
|
|
111
|
+
/**
|
|
112
|
+
* Dedicatória.<br>
|
|
113
|
+
* Example: `Espero que goste de fazer parte dessa aventura. Boa leitura!`
|
|
114
|
+
*/
|
|
115
|
+
custom_dedicatoria: {
|
|
116
|
+
type: String,
|
|
117
|
+
required: false,
|
|
118
|
+
default: null,
|
|
119
|
+
},
|
|
120
|
+
/**
|
|
121
|
+
* Mooner.<br>
|
|
122
|
+
* Values: `true` `false`
|
|
123
|
+
*/
|
|
124
|
+
custom_mooner: {
|
|
125
|
+
type: Boolean,
|
|
126
|
+
required: false,
|
|
127
|
+
default: false,
|
|
128
|
+
},
|
|
129
|
+
|
|
130
|
+
/**
|
|
131
|
+
* Se a personalização pertence a uma assinatura.<br>
|
|
132
|
+
* Values: `true` `false`
|
|
133
|
+
*/
|
|
134
|
+
is_subscription: {
|
|
135
|
+
type: Boolean,
|
|
136
|
+
default: false,
|
|
137
|
+
},
|
|
138
|
+
/**
|
|
139
|
+
* UUID de uma customização existente, irá carregar uma personalização.<br>
|
|
140
|
+
* Example: `ddh5dbacd9713f23`
|
|
141
|
+
*/
|
|
142
|
+
uuid: {
|
|
143
|
+
type: String,
|
|
144
|
+
required: false,
|
|
145
|
+
},
|
|
146
|
+
/**
|
|
147
|
+
* Cores do gradiente de background. Caso vazio, BG será branco.<br>
|
|
148
|
+
* Example: `{ "bgInner":"rgb(255, 255, 255)", "bgCentral":"rgb(183, 254, 255)", "bgOuter":"rgb(40, 138, 255)" }`
|
|
149
|
+
*/
|
|
150
|
+
gradient_colors: {
|
|
151
|
+
type: Object,
|
|
152
|
+
required: false,
|
|
153
|
+
default: {
|
|
154
|
+
bgInner: "#FFFFFF",
|
|
155
|
+
bgCentral: "#B7FEFF",
|
|
156
|
+
bgOuter: "#288AFF",
|
|
157
|
+
},
|
|
158
|
+
},
|
|
159
|
+
/**
|
|
160
|
+
* LayoutId do Builder para salvar contextos de livros diferentes.<br>
|
|
161
|
+
* Example: `12345`
|
|
162
|
+
*/
|
|
163
|
+
builderLayoutId: {
|
|
164
|
+
type: [Number, String],
|
|
165
|
+
required: false,
|
|
166
|
+
},
|
|
167
|
+
/**
|
|
168
|
+
* Language utilizado para selecionar o idioma do livro, este parametro deve ser informado na chamada da treelist e na criação do personagem
|
|
169
|
+
*/
|
|
170
|
+
language: {
|
|
171
|
+
type: String,
|
|
172
|
+
required: false,
|
|
173
|
+
},
|
|
174
|
+
|
|
175
|
+
typeLanguage: {
|
|
176
|
+
type: String,
|
|
177
|
+
required: false,
|
|
178
|
+
default: "pt",
|
|
179
|
+
},
|
|
180
|
+
|
|
181
|
+
dir: {
|
|
182
|
+
type: String,
|
|
183
|
+
default: "ltr",
|
|
184
|
+
required: false,
|
|
185
|
+
},
|
|
186
|
+
},
|
|
187
|
+
data() {
|
|
188
|
+
return {
|
|
189
|
+
custom_properties: {},
|
|
190
|
+
};
|
|
191
|
+
},
|
|
192
|
+
computed: {
|
|
193
|
+
monthsHelper(month) {
|
|
194
|
+
switch (month) {
|
|
195
|
+
case 1:
|
|
196
|
+
return "Janeiro";
|
|
197
|
+
break;
|
|
198
|
+
case 2:
|
|
199
|
+
return "Fevereiro";
|
|
200
|
+
break;
|
|
201
|
+
case 3:
|
|
202
|
+
return "Março";
|
|
203
|
+
break;
|
|
204
|
+
case 4:
|
|
205
|
+
return "Abril";
|
|
206
|
+
break;
|
|
207
|
+
case 5:
|
|
208
|
+
return "Maio";
|
|
209
|
+
break;
|
|
210
|
+
case 6:
|
|
211
|
+
return "Junho";
|
|
212
|
+
break;
|
|
213
|
+
case 7:
|
|
214
|
+
return "Julho";
|
|
215
|
+
break;
|
|
216
|
+
case 8:
|
|
217
|
+
return "Agosto";
|
|
218
|
+
break;
|
|
219
|
+
case 9:
|
|
220
|
+
return "Setembro";
|
|
221
|
+
break;
|
|
222
|
+
case 10:
|
|
223
|
+
return "Outubro";
|
|
224
|
+
break;
|
|
225
|
+
case 11:
|
|
226
|
+
return "Novembro";
|
|
227
|
+
break;
|
|
228
|
+
case 12:
|
|
229
|
+
return "Dezembro";
|
|
230
|
+
break;
|
|
231
|
+
}
|
|
232
|
+
},
|
|
233
|
+
},
|
|
234
|
+
async created() {
|
|
235
|
+
const self = this;
|
|
236
|
+
|
|
237
|
+
this.custom_properties = {
|
|
238
|
+
nome: {
|
|
239
|
+
code: "nome",
|
|
240
|
+
property_id: 24,
|
|
241
|
+
value: this.name,
|
|
242
|
+
},
|
|
243
|
+
};
|
|
244
|
+
|
|
245
|
+
if (this.custom_numero) {
|
|
246
|
+
this.custom_properties.numero = {
|
|
247
|
+
code: "numero",
|
|
248
|
+
property_id: 29,
|
|
249
|
+
value: this.custom_numero.toString(),
|
|
250
|
+
};
|
|
251
|
+
}
|
|
252
|
+
if (this.custom_mes) {
|
|
253
|
+
this.custom_properties.mes = {
|
|
254
|
+
code: "mes",
|
|
255
|
+
property_id: 38,
|
|
256
|
+
value: this.monthsHelperByName(this.custom_mes),
|
|
257
|
+
};
|
|
258
|
+
}
|
|
259
|
+
if (this.custom_dedicatoria) {
|
|
260
|
+
this.custom_properties.dedicatoria = {
|
|
261
|
+
code: "dedicatoria",
|
|
262
|
+
property_id: 26,
|
|
263
|
+
value: this.custom_dedicatoria,
|
|
264
|
+
};
|
|
265
|
+
}
|
|
266
|
+
|
|
267
|
+
if (this.custom_mooner) {
|
|
268
|
+
var nameMooner = "Morsax";
|
|
269
|
+
|
|
270
|
+
if (self.uuid) {
|
|
271
|
+
axios
|
|
272
|
+
.get(
|
|
273
|
+
"https://builder.dentrodahistoria.com.br/api/customs_characters/" +
|
|
274
|
+
self.uuid
|
|
275
|
+
)
|
|
276
|
+
.then((response) => {
|
|
277
|
+
console.log(response);
|
|
278
|
+
if (response.data.custom.user_data.properties["nome-do-mooner"]) {
|
|
279
|
+
nameMooner =
|
|
280
|
+
response.data.custom.user_data.properties["nome-do-mooner"]
|
|
281
|
+
.value;
|
|
282
|
+
}
|
|
283
|
+
|
|
284
|
+
this.custom_properties["nome-do-mooner"] = {
|
|
285
|
+
code: "nome-do-mooner",
|
|
286
|
+
property_id: 154,
|
|
287
|
+
value: nameMooner,
|
|
288
|
+
};
|
|
289
|
+
})
|
|
290
|
+
.catch(function (error) {
|
|
291
|
+
// let fieldError = {
|
|
292
|
+
// field: "error-modal",
|
|
293
|
+
// msg: error.response.data.message,
|
|
294
|
+
// rule: "error", // optional
|
|
295
|
+
// };
|
|
296
|
+
// self.$validator.errors.add(fieldError);
|
|
297
|
+
|
|
298
|
+
this.custom_properties["nome-do-mooner"] = {
|
|
299
|
+
code: "nome-do-mooner",
|
|
300
|
+
property_id: 154,
|
|
301
|
+
value: nameMooner,
|
|
302
|
+
};
|
|
303
|
+
|
|
304
|
+
console.log("Erro ao trazer nome do mooner");
|
|
305
|
+
});
|
|
306
|
+
}
|
|
307
|
+
|
|
308
|
+
this.custom_properties["nome-do-mooner"] = {
|
|
309
|
+
code: "nome-do-mooner",
|
|
310
|
+
property_id: 154,
|
|
311
|
+
value: nameMooner,
|
|
312
|
+
};
|
|
313
|
+
}
|
|
314
|
+
},
|
|
315
|
+
mounted() {
|
|
316
|
+
document.body.style.overflow = "hidden";
|
|
317
|
+
|
|
318
|
+
let vh = window.innerHeight * 0.01;
|
|
319
|
+
document.documentElement.style.setProperty("--vh", `${vh}px`);
|
|
320
|
+
|
|
321
|
+
this.initiated();
|
|
322
|
+
},
|
|
323
|
+
beforeDestroy() {
|
|
324
|
+
document.body.style.overflow = "unset";
|
|
325
|
+
},
|
|
326
|
+
methods: {
|
|
327
|
+
monthsHelperByName(month) {
|
|
328
|
+
switch (month) {
|
|
329
|
+
case 1:
|
|
330
|
+
return "Janeiro";
|
|
331
|
+
break;
|
|
332
|
+
case 2:
|
|
333
|
+
return "Fevereiro";
|
|
334
|
+
break;
|
|
335
|
+
case 3:
|
|
336
|
+
return "Março";
|
|
337
|
+
break;
|
|
338
|
+
case 4:
|
|
339
|
+
return "Abril";
|
|
340
|
+
break;
|
|
341
|
+
case 5:
|
|
342
|
+
return "Maio";
|
|
343
|
+
break;
|
|
344
|
+
case 6:
|
|
345
|
+
return "Junho";
|
|
346
|
+
break;
|
|
347
|
+
case 7:
|
|
348
|
+
return "Julho";
|
|
349
|
+
break;
|
|
350
|
+
case 8:
|
|
351
|
+
return "Agosto";
|
|
352
|
+
break;
|
|
353
|
+
case 9:
|
|
354
|
+
return "Setembro";
|
|
355
|
+
break;
|
|
356
|
+
case 10:
|
|
357
|
+
return "Outubro";
|
|
358
|
+
break;
|
|
359
|
+
case 11:
|
|
360
|
+
return "Novembro";
|
|
361
|
+
break;
|
|
362
|
+
case 12:
|
|
363
|
+
return "Dezembro";
|
|
364
|
+
break;
|
|
365
|
+
}
|
|
366
|
+
},
|
|
367
|
+
|
|
368
|
+
initiated() {
|
|
369
|
+
/**
|
|
370
|
+
* Função disparada no `mounted` do componente.
|
|
371
|
+
*/
|
|
372
|
+
this.$emit("initiated");
|
|
373
|
+
},
|
|
374
|
+
started() {
|
|
375
|
+
/**
|
|
376
|
+
* Função disparada ao clicar no botão para gerar a customização.
|
|
377
|
+
*/
|
|
378
|
+
this.$emit("started");
|
|
379
|
+
},
|
|
380
|
+
completed(payload) {
|
|
381
|
+
/**
|
|
382
|
+
* Função disparada ao ser finalizada customização. Recebe um objeto.
|
|
383
|
+
*/
|
|
384
|
+
this.$emit("completed", payload);
|
|
385
|
+
},
|
|
386
|
+
},
|
|
387
|
+
};
|
|
388
|
+
</script>
|
|
389
|
+
|
|
390
|
+
<style scoped lang="scss">
|
|
391
|
+
hr {
|
|
392
|
+
margin: 10px -1.5rem;
|
|
393
|
+
}
|
|
394
|
+
h1 {
|
|
395
|
+
font-family: "Nunito";
|
|
396
|
+
font-size: 24px;
|
|
397
|
+
font-weight: 900;
|
|
398
|
+
font-style: normal;
|
|
399
|
+
font-stretch: normal;
|
|
400
|
+
line-height: normal;
|
|
401
|
+
letter-spacing: normal;
|
|
402
|
+
color: #000000;
|
|
403
|
+
margin-top: 0px;
|
|
404
|
+
margin-bottom: 15px;
|
|
405
|
+
|
|
406
|
+
&:first-child {
|
|
407
|
+
display: none;
|
|
408
|
+
}
|
|
409
|
+
}
|
|
410
|
+
|
|
411
|
+
.ddh-sidebar,
|
|
412
|
+
.ddh-sidebar.hide-sidebar {
|
|
413
|
+
display: none !important;
|
|
414
|
+
}
|
|
415
|
+
|
|
416
|
+
html {
|
|
417
|
+
--scale: 1;
|
|
418
|
+
--translate: 0%;
|
|
419
|
+
}
|
|
420
|
+
|
|
421
|
+
.loading-view {
|
|
422
|
+
position: absolute;
|
|
423
|
+
top: 0;
|
|
424
|
+
width: 100%;
|
|
425
|
+
height: 100%;
|
|
426
|
+
background: white;
|
|
427
|
+
position: absolute;
|
|
428
|
+
width: 100%;
|
|
429
|
+
top: 0;
|
|
430
|
+
z-index: 200;
|
|
431
|
+
display: flex;
|
|
432
|
+
align-items: center;
|
|
433
|
+
justify-content: center;
|
|
434
|
+
flex-direction: column;
|
|
435
|
+
}
|
|
436
|
+
|
|
437
|
+
.avatar-page-1 {
|
|
438
|
+
position: absolute;
|
|
439
|
+
z-index: 3;
|
|
440
|
+
}
|
|
441
|
+
|
|
442
|
+
.avatar-page {
|
|
443
|
+
min-height: 100vh;
|
|
444
|
+
position: absolute;
|
|
445
|
+
width: 100%;
|
|
446
|
+
height: 100vh;
|
|
447
|
+
top: 0;
|
|
448
|
+
left: 0;
|
|
449
|
+
background: white;
|
|
450
|
+
@media (max-width: 992px) {
|
|
451
|
+
min-height: 0;
|
|
452
|
+
height: 100vh; /* Fallback for browsers that do not support Custom Properties */
|
|
453
|
+
height: calc(var(--vh, 1vh) * 100);
|
|
454
|
+
overflow: hidden;
|
|
455
|
+
}
|
|
456
|
+
}
|
|
457
|
+
.return {
|
|
458
|
+
position: fixed;
|
|
459
|
+
z-index: 99;
|
|
460
|
+
.icon {
|
|
461
|
+
width: 38px;
|
|
462
|
+
height: 38px;
|
|
463
|
+
position: absolute;
|
|
464
|
+
z-index: 30;
|
|
465
|
+
padding: 0.95238rem 2.77778vw;
|
|
466
|
+
svg {
|
|
467
|
+
width: 38px;
|
|
468
|
+
height: 38px;
|
|
469
|
+
path {
|
|
470
|
+
fill: #afa2ba !important;
|
|
471
|
+
stroke: #afa2ba !important;
|
|
472
|
+
transition: all 0.1s cubic-bezier(0.4, 0, 0.2, 1);
|
|
473
|
+
}
|
|
474
|
+
}
|
|
475
|
+
&:hover {
|
|
476
|
+
cursor: pointer;
|
|
477
|
+
svg,
|
|
478
|
+
path {
|
|
479
|
+
fill: #1ad3d9 !important;
|
|
480
|
+
stroke: #1ad3d9 !important;
|
|
481
|
+
}
|
|
482
|
+
}
|
|
483
|
+
&:active {
|
|
484
|
+
svg {
|
|
485
|
+
transform: scale(0.9);
|
|
486
|
+
}
|
|
487
|
+
}
|
|
488
|
+
}
|
|
489
|
+
}
|
|
490
|
+
</style>
|