@bildvitta/quasar-ui-asteroid 2.14.0 → 3.0.0-alpha.1
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/QasBox.json +16 -0
- package/dist/api/QasBreakline.json +32 -0
- package/dist/api/QasBtn.json +15 -0
- package/dist/api/QasDebugger.json +13 -0
- package/dist/asteroid.cjs.css +1 -1
- package/dist/asteroid.cjs.js +6762 -1400
- package/dist/asteroid.cjs.min.js +2 -2
- package/dist/asteroid.esm.css +1 -1
- package/dist/asteroid.esm.js +6764 -1405
- package/dist/asteroid.esm.min.js +2 -2
- package/dist/asteroid.umd.css +1 -1
- package/dist/asteroid.umd.js +6760 -1405
- package/dist/asteroid.umd.min.js +2 -2
- package/dist/vetur/asteroid-attributes.json +16 -0
- package/dist/vetur/asteroid-tags.json +19 -0
- package/package.json +41 -56
- package/src/assets/logo-modular.svg +1 -1
- package/src/asteroid.js +1 -0
- package/src/components/actions/QasActions.vue +45 -0
- package/src/components/actions-menu/QasActionsMenu.vue +8 -19
- package/src/components/alert/QasAlert.vue +90 -0
- package/src/components/app-bar/QasAppBar.vue +16 -13
- package/src/components/app-menu/QasAppMenu.vue +10 -7
- package/src/components/avatar/QasAvatar.vue +7 -3
- package/src/components/box/QasBox.vue +12 -4
- package/src/components/box/QasBox.yml +13 -0
- package/src/components/breakline/QasBreakline.vue +37 -0
- package/src/components/breakline/QasBreakline.yml +25 -0
- package/src/components/btn/QasBtn.vue +27 -24
- package/src/components/btn/QasBtn.yml +12 -0
- package/src/components/card/QasCard.vue +29 -21
- package/src/components/checkbox-group/QasCheckboxGroup.vue +31 -17
- package/src/components/copy/QasCopy.vue +22 -11
- package/src/components/date-time-input/QasDateTimeInput.vue +16 -26
- package/src/components/debugger/QasDebugger.vue +2 -0
- package/src/components/debugger/QasDebugger.yml +10 -0
- package/src/components/delete/QasDelete.vue +28 -15
- package/src/components/dialog/QasDialog.vue +71 -67
- package/src/components/dialog-router/QasDialogRouter.vue +12 -4
- package/src/components/field/QasField.vue +16 -19
- package/src/components/filters/QasFilters.vue +31 -24
- package/src/components/form-generator/QasFormGenerator.vue +13 -15
- package/src/components/form-view/QasFormView.vue +117 -66
- package/src/components/gallery/QasGallery.vue +39 -26
- package/src/components/grid-generator/QasGridGenerator.vue +12 -6
- package/src/components/index.js +0 -0
- package/src/components/input/QasInput.vue +38 -36
- package/src/components/label/QasLabel.vue +14 -15
- package/src/components/layout/QasLayout.vue +13 -21
- package/src/components/list-items/QasListItems.vue +16 -8
- package/src/components/list-view/QasListView.vue +31 -28
- package/src/components/map/QasMap.vue +15 -25
- package/src/components/nested-fields/QasNestedFields.vue +39 -36
- package/src/components/numeric-input/QasNumericInput.vue +24 -21
- package/src/components/page-header/QasPageHeader.vue +19 -10
- package/src/components/password-input/QasPasswordInput.vue +20 -18
- package/src/components/password-strength-checker/QasPasswordStrengthChecker.vue +52 -31
- package/src/components/profile/QasProfile.vue +14 -12
- package/src/components/resizer/QasResizer.vue +1 -1
- package/src/components/search-box/QasSearchBox.vue +36 -20
- package/src/components/select/QasSelect.vue +41 -44
- package/src/components/select-list/QasSelectList.vue +64 -51
- package/src/components/signature-pad/QasSignaturePad.vue +57 -41
- package/src/components/signature-uploader/QasSignatureUploader.vue +15 -13
- package/src/components/single-view/QasSingleView.vue +31 -17
- package/src/components/sortable/QasSortable.vue +45 -27
- package/src/components/table-generator/QasTableGenerator.vue +95 -22
- package/src/components/tabs-generator/QasTabsGenerator.vue +36 -24
- package/src/components/text-truncate/QasTextTruncate.vue +25 -17
- package/src/components/transfer/QasTransfer.vue +57 -53
- package/src/components/uploader/QasUploader.vue +169 -48
- package/src/css/background.scss +1 -1
- package/src/css/border.scss +7 -6
- package/src/css/design-system.scss +0 -43
- package/src/css/fonts.scss +2 -28
- package/src/css/opacity.scss +0 -4
- package/src/css/set-brand.scss +15 -0
- package/src/css/transitions.scss +1 -1
- package/src/helpers/add-counter-suffix.js +3 -0
- package/src/helpers/{base64ToBlob.js → base-64-to-blob.js} +0 -0
- package/src/helpers/{constructObject.js → construct-object.js} +0 -0
- package/src/helpers/filter-object.js +8 -6
- package/src/helpers/filters.js +2 -3
- package/src/helpers/get-slot-children-text.js +15 -0
- package/src/helpers/{greatestCommonDivisor.js → greatest-common-divisor.js} +0 -0
- package/src/helpers/images.js +28 -0
- package/src/helpers/index.js +11 -59
- package/src/helpers/{isLocalDevelopment.js → is-local-development.js} +0 -0
- package/src/helpers/scroll-on-grap.js +61 -0
- package/src/index.cjs.js +1 -0
- package/src/index.esm.js +4 -0
- package/src/index.scss +19 -21
- package/src/index.umd.js +2 -0
- package/src/mixins/context.js +1 -1
- package/src/mixins/dialog-router.js +17 -0
- package/src/mixins/form.js +4 -12
- package/src/mixins/generator.js +14 -14
- package/src/mixins/index.js +2 -8
- package/src/mixins/password.js +73 -11
- package/src/mixins/screen.js +8 -6
- package/src/mixins/view.js +57 -20
- package/src/plugins/Dialog.js +14 -0
- package/src/plugins/NotifySuccess.js +3 -3
- package/src/plugins/index.js +4 -2
- package/src/store/history.js +43 -0
- package/src/store/index.js +1 -0
- package/src/vue-plugin.js +185 -0
- package/.babelrc +0 -12
- package/.storybook/main.js +0 -35
- package/.storybook/preview.js +0 -26
- package/debug.log +0 -1
- package/index.js +0 -4
- package/jest-setup.js +0 -1
- package/jest.config.json +0 -22
- package/postcss.config.js +0 -5
- package/src/components/Introduction.stories.mdx +0 -12
- package/src/components/actions-menu/QasActionsMenu.stories.js +0 -73
- package/src/components/app-bar/QasAppBar.stories.js +0 -84
- package/src/components/app-menu/QasAppMenu.stories.js +0 -66
- package/src/components/apps-menu/QasAppsMenu.spec.js +0 -58
- package/src/components/apps-menu/QasAppsMenu.stories.js +0 -54
- package/src/components/apps-menu/QasAppsMenu.vue +0 -48
- package/src/components/avatar/QasAvatar.spec.js +0 -14
- package/src/components/avatar/QasAvatar.stories.js +0 -52
- package/src/components/box/QasBox.spec.js +0 -18
- package/src/components/box/QasBox.stories.js +0 -35
- package/src/components/break-line/QasBreakLine.stories.js +0 -57
- package/src/components/break-line/QasBreakLine.vue +0 -52
- package/src/components/btn/QasBtn.stories.js +0 -45
- package/src/components/btn-actions/QasBtnActions.stories.js +0 -77
- package/src/components/btn-actions/QasBtnActions.vue +0 -54
- package/src/components/card/QasCard.stories.js +0 -126
- package/src/components/checkbox-group/QasCheckboxGroup.stories.js +0 -59
- package/src/components/copy/QasCopy.stories.js +0 -41
- package/src/components/date-time-input/QasDateTimeInput.stories.js +0 -67
- package/src/components/debugger/QasDebugger.stories.js +0 -33
- package/src/components/delete/QasDelete.stories.js +0 -80
- package/src/components/dialog/QasDialog.stories.js +0 -139
- package/src/components/dialog-router/QasDialogRouter.stories.js +0 -38
- package/src/components/field/QasField.stories.js +0 -181
- package/src/components/filters/QasFilters.stories.js +0 -121
- package/src/components/form-generator/QasFormGenerator.stories.js +0 -115
- package/src/components/form-view/QasFormView.stories.js +0 -236
- package/src/components/gallery/QasGallery.stories.js +0 -91
- package/src/components/grid-generator/QasGridGenerator.stories.js +0 -138
- package/src/components/input/QasInput.stories.js +0 -78
- package/src/components/label/QasLabel.stories.js +0 -60
- package/src/components/layout/QasLayout.stories.js +0 -104
- package/src/components/list-items/QasListItems.stories.js +0 -130
- package/src/components/list-view/QasListView.stories.js +0 -168
- package/src/components/map/QasMap.stories.js +0 -75
- package/src/components/nested-fields/QasNestedFields.stories.js +0 -255
- package/src/components/numeric-input/QasNumericInput.stories.js +0 -92
- package/src/components/page-header/QasPageHeader.stories.js +0 -61
- package/src/components/password-input/QasPasswordInput.stories.js +0 -76
- package/src/components/password-strength-checker/QasPasswordStrengthChecker.stories.js +0 -54
- package/src/components/profile/QasProfile.stories.js +0 -131
- package/src/components/resizer/QasResizer.stories.js +0 -43
- package/src/components/search-box/QasSearchBox.stories.js +0 -111
- package/src/components/select/QasSelect.stories.js +0 -113
- package/src/components/select-list/QasSelectList.stories.js +0 -153
- package/src/components/signature-pad/QasSignaturePad.stories.js +0 -51
- package/src/components/signature-uploader/QasSignatureUploader.stories.js +0 -69
- package/src/components/single-view/QasSingleView.stories.js +0 -130
- package/src/components/sortable/QasSortable.stories.js +0 -80
- package/src/components/table-generator/QasTableGenerator.stories.js +0 -116
- package/src/components/tabs-generator/QasTabsGenerator.stories.js +0 -145
- package/src/components/text-truncate/QasTextTruncate.stories.js +0 -55
- package/src/components/tip/QasTip.stories.js +0 -57
- package/src/components/tip/QasTip.vue +0 -68
- package/src/components/tooltip/QasTooltip.stories.js +0 -63
- package/src/components/tooltip/QasTooltip.vue +0 -81
- package/src/components/transfer/QasTransfer.stories.js +0 -118
- package/src/components/uploader/QasCustomUploader.vue +0 -121
- package/src/components/uploader/QasUploader.stories.js +0 -139
- package/src/directives/Test.js +0 -13
- package/src/helpers/historyHandler.js +0 -52
- package/src/helpers/label.js +0 -3
- package/src/index.js +0 -249
- package/src/mixins/map-markers.js +0 -26
- package/src/mixins/unsaved-changes.js +0 -24
- package/src/mixins/uploader.js +0 -30
- package/src/mocks/json/user.json +0 -27
- package/src/mocks/json/users-new.json +0 -23
- package/src/mocks/json/users.json +0 -97
- package/src/mocks/storeModule.js +0 -71
- package/src/pages/Forbidden.vue +0 -6
- package/src/pages/NotFound.vue +0 -6
package/package.json
CHANGED
|
@@ -1,15 +1,19 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@bildvitta/quasar-ui-asteroid",
|
|
3
|
-
"
|
|
4
|
-
"
|
|
5
|
-
"
|
|
3
|
+
"description": "Asteroid",
|
|
4
|
+
"version": "3.0.0-alpha.1",
|
|
5
|
+
"author": "Bild & Vitta <systemteam@bild.com.br>",
|
|
6
|
+
"license": "MIT",
|
|
7
|
+
"main": "dist/asteroid.cjs.min.js",
|
|
8
|
+
"unpkg": "dist/asteroid.umd.min.js",
|
|
9
|
+
"jsdelivr": "dist/asteroid.umd.min.js",
|
|
10
|
+
"files": [
|
|
11
|
+
"dist",
|
|
12
|
+
"src"
|
|
13
|
+
],
|
|
6
14
|
"scripts": {
|
|
7
|
-
"
|
|
8
|
-
"
|
|
9
|
-
"lint": "eslint ./src",
|
|
10
|
-
"storybook": "start-storybook -p 6006",
|
|
11
|
-
"storybook:build": "build-storybook",
|
|
12
|
-
"install-peer": "npm i vue@^2.6.14 --no-save"
|
|
15
|
+
"build": "npx rollup -c",
|
|
16
|
+
"dev": "cd dev && npm i && npm run dev && cd .."
|
|
13
17
|
},
|
|
14
18
|
"publishConfig": {
|
|
15
19
|
"access": "public",
|
|
@@ -23,59 +27,40 @@
|
|
|
23
27
|
"helpers",
|
|
24
28
|
"components"
|
|
25
29
|
],
|
|
26
|
-
"author": "Inovação Bild & Vitta <inova@bild.com.br>",
|
|
27
|
-
"license": "ISC",
|
|
28
30
|
"devDependencies": {
|
|
29
|
-
"@
|
|
30
|
-
"@
|
|
31
|
-
"@
|
|
32
|
-
"@
|
|
33
|
-
"
|
|
34
|
-
"
|
|
35
|
-
"
|
|
36
|
-
"
|
|
37
|
-
"
|
|
38
|
-
"
|
|
39
|
-
"
|
|
40
|
-
"
|
|
41
|
-
"
|
|
42
|
-
"
|
|
43
|
-
"
|
|
44
|
-
"core-js": "^3.8.3",
|
|
45
|
-
"eslint": "^7.18.0",
|
|
46
|
-
"eslint-plugin-jest": "^24.1.3",
|
|
47
|
-
"eslint-plugin-vue": "^7.5.0",
|
|
48
|
-
"eslint-webpack-plugin": "^2.4.3",
|
|
49
|
-
"jest": "^27.0.3",
|
|
50
|
-
"postcss": "^8.3.5",
|
|
51
|
-
"react-is": "^17.0.1",
|
|
52
|
-
"sass": "^1.32.5",
|
|
53
|
-
"sass-loader": "^10.1.1",
|
|
54
|
-
"standard": "^16.0.3",
|
|
55
|
-
"vue-jest": "^3.0.7",
|
|
56
|
-
"vue-loader": "^15.9.6",
|
|
57
|
-
"vue-template-compiler": "^2.6.14"
|
|
31
|
+
"@rollup/plugin-json": "^4.1.0",
|
|
32
|
+
"@rollup/plugin-replace": "^3.0.1",
|
|
33
|
+
"@rollup/plugin-url": "^6.1.0",
|
|
34
|
+
"@vue/compiler-sfc": "^3.2.31",
|
|
35
|
+
"autoprefixer": "^10.4.2",
|
|
36
|
+
"core-js": "^3.20.2",
|
|
37
|
+
"postcss": "^8.4.5",
|
|
38
|
+
"quasar": "^2.0.0",
|
|
39
|
+
"rimraf": "^3.0.2",
|
|
40
|
+
"rollup": "^2.66.0",
|
|
41
|
+
"rollup-plugin-local-resolve": "^1.0.7",
|
|
42
|
+
"rollup-plugin-scss": "^3.0.0",
|
|
43
|
+
"rollup-plugin-terser": "^7.0.2",
|
|
44
|
+
"rollup-plugin-vue": "^6.0.0",
|
|
45
|
+
"sass": "^1.49.0"
|
|
58
46
|
},
|
|
59
47
|
"dependencies": {
|
|
60
|
-
"@
|
|
48
|
+
"@fawmi/vue-google-maps": "^0.9.4",
|
|
61
49
|
"autonumeric": "^4.6.0",
|
|
62
50
|
"axios": "^0.21.1",
|
|
63
|
-
"date-fns": "^2.
|
|
64
|
-
"fuse.js": "^
|
|
51
|
+
"date-fns": "^2.28.0",
|
|
52
|
+
"fuse.js": "^6.5.3",
|
|
65
53
|
"humps": "^2.0.1",
|
|
66
|
-
"lodash": "^4.17.21",
|
|
67
|
-
"pica": "^
|
|
68
|
-
"
|
|
69
|
-
"
|
|
70
|
-
"sortablejs": "^1.12.0",
|
|
71
|
-
"vue-router": "^3.4.9",
|
|
72
|
-
"vuex": "^3.6.0"
|
|
73
|
-
},
|
|
74
|
-
"peerDependencies": {
|
|
75
|
-
"vue": "^2.6.14"
|
|
54
|
+
"lodash-es": "^4.17.21",
|
|
55
|
+
"pica": "^9.0.1",
|
|
56
|
+
"signature_pad": "^4.0.1",
|
|
57
|
+
"sortablejs": "^1.14.0"
|
|
76
58
|
},
|
|
77
|
-
"
|
|
78
|
-
"
|
|
79
|
-
|
|
59
|
+
"browserslist": [
|
|
60
|
+
"defaults"
|
|
61
|
+
],
|
|
62
|
+
"vetur": {
|
|
63
|
+
"tags": "dist/vetur/asteroid-tags.json",
|
|
64
|
+
"attributes": "dist/vetur/asteroid-attributes.json"
|
|
80
65
|
}
|
|
81
66
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
<svg width="126" height="26" fill="none" xmlns="http://www.w3.org/2000/svg"><g opacity=".3"><g clip-path="url(#a)"><path d="M6.829 10.909c.02-2.295.059-4.6.119-6.895C9.197 2.653 11.41 1.3 13.58 0c2.172 1.301 4.393 2.653 6.634 4.014.07 2.295.11 4.6.12 6.895a342.175 342.175 0 0 0 6.048 3.417c-.02 2.504-.1 5.017-.238 7.521A575.699 575.699 0 0 0 19.392 26a404.892 404.892 0 0 1-5.81-3.388A525.05 525.05 0 0 1 7.77 26a574.702 574.702 0 0 0-6.753-4.153 158.72 158.72 0 0 1-.238-7.52 381.833 381.833 0 0 0 6.049-3.418Zm6.752-9.24c-1.487.884-2.994 1.788-4.521 2.702 1.487.855 2.994 1.73 4.521 2.613a830.152 830.152 0 0 1 4.522-2.613c-1.527-.904-3.034-1.818-4.522-2.702Zm.714 6.577v5.295c1.537-.884 3.064-1.768 4.591-2.642-.01-1.759-.03-3.507-.06-5.266-1.487.855-3.004 1.729-4.53 2.613Zm5.87 15.658a402.133 402.133 0 0 1 4.602-2.792c.079-1.719.128-3.438.158-5.156-1.547.884-3.084 1.788-4.62 2.692-.04 1.749-.08 3.507-.14 5.256Zm4.046-9.16c-1.517-.845-3.044-1.72-4.571-2.593a767.782 767.782 0 0 0-4.601 2.652c1.527.884 3.044 1.759 4.551 2.613 1.547-.894 3.084-1.788 4.621-2.672Zm-15.806 9.21c1.468-.835 2.955-1.71 4.462-2.594 0-1.768-.01-3.546-.01-5.315a577.521 577.521 0 0 1-4.56 2.623c.029 1.758.059 3.527.108 5.285Zm3.719-9.15c-1.537-.885-3.064-1.78-4.601-2.653a310.65 310.65 0 0 1-4.572 2.593c1.537.874 3.084 1.768 4.621 2.672a573.757 573.757 0 0 0 4.552-2.613Z" fill="#00314D"/></g><path d="m47.676 21.17-.022-10.315-5.113 8.536h-1.29l-5.112-8.403V21.17h-2.756V5.61h2.378l6.18 10.314L48.01 5.61h2.378l.022 15.56h-2.734ZM58.193 21.325c-1.2 0-2.282-.26-3.245-.778a5.774 5.774 0 0 1-2.268-2.156c-.533-.934-.8-1.986-.8-3.157 0-1.17.267-2.215.8-3.134a5.774 5.774 0 0 1 2.267-2.156c.964-.52 2.045-.778 3.246-.778 1.215 0 2.304.259 3.268.778a5.619 5.619 0 0 1 2.245 2.156c.548.919.822 1.963.822 3.134 0 1.17-.274 2.223-.822 3.157a5.62 5.62 0 0 1-2.245 2.156c-.964.518-2.053.778-3.268.778Zm0-2.379c1.023 0 1.867-.34 2.534-1.022.667-.682 1-1.578 1-2.69 0-1.111-.333-2.008-1-2.69-.667-.681-1.511-1.022-2.534-1.022s-1.867.34-2.534 1.022c-.652.682-.978 1.579-.978 2.69 0 1.112.326 2.008.978 2.69.667.681 1.511 1.022 2.534 1.022ZM78.513 4.675V21.17h-2.667v-1.534c-.46.563-1.03.986-1.712 1.267-.667.282-1.408.423-2.223.423-1.14 0-2.17-.252-3.09-.756a5.47 5.47 0 0 1-2.133-2.134c-.52-.934-.779-2-.779-3.2 0-1.201.26-2.26.778-3.18a5.471 5.471 0 0 1 2.135-2.134c.918-.504 1.948-.755 3.09-.755.785 0 1.503.133 2.155.4a4.337 4.337 0 0 1 1.668 1.2v-6.09h2.778Zm-6.268 14.271c.667 0 1.267-.148 1.8-.444a3.372 3.372 0 0 0 1.267-1.312c.312-.563.467-1.215.467-1.956 0-.74-.155-1.393-.467-1.956a3.217 3.217 0 0 0-1.267-1.29 3.507 3.507 0 0 0-1.8-.466c-.667 0-1.267.155-1.8.467a3.217 3.217 0 0 0-1.268 1.289c-.311.563-.467 1.215-.467 1.956 0 .741.156 1.393.467 1.956.311.563.734 1 1.267 1.312a3.644 3.644 0 0 0 1.8.444ZM91.854 9.299v11.87H89.21v-1.511c-.444.533-1 .948-1.667 1.244a5.487 5.487 0 0 1-2.156.423c-1.586 0-2.838-.437-3.757-1.312-.904-.889-1.356-2.2-1.356-3.934v-6.78h2.779V15.7c0 1.067.237 1.867.711 2.4.49.52 1.178.779 2.067.779.993 0 1.779-.304 2.357-.912.592-.622.889-1.511.889-2.667V9.299h2.778ZM93.805 4.675h2.78V21.17h-2.78V4.675ZM103.773 9.166c1.749 0 3.083.422 4.002 1.267.933.83 1.4 2.09 1.4 3.778v6.958h-2.623v-1.445c-.341.519-.83.92-1.467 1.2-.622.267-1.378.4-2.267.4-.89 0-1.668-.147-2.334-.444-.667-.311-1.186-.733-1.556-1.267a3.317 3.317 0 0 1-.534-1.845c0-1.067.393-1.919 1.178-2.556.8-.652 2.053-.978 3.757-.978h3.067v-.178c0-.83-.252-1.467-.755-1.912-.489-.444-1.223-.667-2.201-.667-.667 0-1.326.104-1.978.312-.638.207-1.179.496-1.623.867l-1.09-2.023c.623-.475 1.371-.838 2.246-1.09a9.984 9.984 0 0 1 2.778-.377Zm-.377 10.136c.696 0 1.311-.156 1.845-.467a2.638 2.638 0 0 0 1.155-1.378v-1.378h-2.867c-1.601 0-2.401.526-2.401 1.578 0 .504.2.904.6 1.2.4.297.956.445 1.668.445ZM113.997 11.033c.8-1.245 2.208-1.867 4.224-1.867v2.645a3.532 3.532 0 0 0-.645-.067c-1.082 0-1.927.319-2.534.956-.608.622-.912 1.526-.912 2.712v5.757h-2.778V9.3h2.645v1.734Z" fill="#00314D"/></g><defs><clipPath id="a"><path fill="#fff" transform="matrix(-1 0 0 1 26.383 0)" d="M0 0h25.603v26H0z"/></clipPath></defs></svg>
|
|
1
|
+
<svg width="126" height="26" fill="none" xmlns="http://www.w3.org/2000/svg"><g opacity=".3"><g clip-path="url(#a)"><path d="M6.829 10.909c.02-2.295.059-4.6.119-6.895C9.197 2.653 11.41 1.3 13.58 0c2.172 1.301 4.393 2.653 6.634 4.014.07 2.295.11 4.6.12 6.895a342.175 342.175 0 0 0 6.048 3.417c-.02 2.504-.1 5.017-.238 7.521A575.699 575.699 0 0 0 19.392 26a404.892 404.892 0 0 1-5.81-3.388A525.05 525.05 0 0 1 7.77 26a574.702 574.702 0 0 0-6.753-4.153 158.72 158.72 0 0 1-.238-7.52 381.833 381.833 0 0 0 6.049-3.418Zm6.752-9.24c-1.487.884-2.994 1.788-4.521 2.702 1.487.855 2.994 1.73 4.521 2.613a830.152 830.152 0 0 1 4.522-2.613c-1.527-.904-3.034-1.818-4.522-2.702Zm.714 6.577v5.295c1.537-.884 3.064-1.768 4.591-2.642-.01-1.759-.03-3.507-.06-5.266-1.487.855-3.004 1.729-4.53 2.613Zm5.87 15.658a402.133 402.133 0 0 1 4.602-2.792c.079-1.719.128-3.438.158-5.156-1.547.884-3.084 1.788-4.62 2.692-.04 1.749-.08 3.507-.14 5.256Zm4.046-9.16c-1.517-.845-3.044-1.72-4.571-2.593a767.782 767.782 0 0 0-4.601 2.652c1.527.884 3.044 1.759 4.551 2.613 1.547-.894 3.084-1.788 4.621-2.672Zm-15.806 9.21c1.468-.835 2.955-1.71 4.462-2.594 0-1.768-.01-3.546-.01-5.315a577.521 577.521 0 0 1-4.56 2.623c.029 1.758.059 3.527.108 5.285Zm3.719-9.15c-1.537-.885-3.064-1.78-4.601-2.653a310.65 310.65 0 0 1-4.572 2.593c1.537.874 3.084 1.768 4.621 2.672a573.757 573.757 0 0 0 4.552-2.613Z" fill="#00314D"/></g><path d="m47.676 21.17-.022-10.315-5.113 8.536h-1.29l-5.112-8.403V21.17h-2.756V5.61h2.378l6.18 10.314L48.01 5.61h2.378l.022 15.56h-2.734ZM58.193 21.325c-1.2 0-2.282-.26-3.245-.778a5.774 5.774 0 0 1-2.268-2.156c-.533-.934-.8-1.986-.8-3.157 0-1.17.267-2.215.8-3.134a5.774 5.774 0 0 1 2.267-2.156c.964-.52 2.045-.778 3.246-.778 1.215 0 2.304.259 3.268.778a5.619 5.619 0 0 1 2.245 2.156c.548.919.822 1.963.822 3.134 0 1.17-.274 2.223-.822 3.157a5.62 5.62 0 0 1-2.245 2.156c-.964.518-2.053.778-3.268.778Zm0-2.379c1.023 0 1.867-.34 2.534-1.022.667-.682 1-1.578 1-2.69 0-1.111-.333-2.008-1-2.69-.667-.681-1.511-1.022-2.534-1.022s-1.867.34-2.534 1.022c-.652.682-.978 1.579-.978 2.69 0 1.112.326 2.008.978 2.69.667.681 1.511 1.022 2.534 1.022ZM78.513 4.675V21.17h-2.667v-1.534c-.46.563-1.03.986-1.712 1.267-.667.282-1.408.423-2.223.423-1.14 0-2.17-.252-3.09-.756a5.47 5.47 0 0 1-2.133-2.134c-.52-.934-.779-2-.779-3.2 0-1.201.26-2.26.778-3.18a5.471 5.471 0 0 1 2.135-2.134c.918-.504 1.948-.755 3.09-.755.785 0 1.503.133 2.155.4a4.337 4.337 0 0 1 1.668 1.2v-6.09h2.778Zm-6.268 14.271c.667 0 1.267-.148 1.8-.444a3.372 3.372 0 0 0 1.267-1.312c.312-.563.467-1.215.467-1.956 0-.74-.155-1.393-.467-1.956a3.217 3.217 0 0 0-1.267-1.29 3.507 3.507 0 0 0-1.8-.466c-.667 0-1.267.155-1.8.467a3.217 3.217 0 0 0-1.268 1.289c-.311.563-.467 1.215-.467 1.956 0 .741.156 1.393.467 1.956.311.563.734 1 1.267 1.312a3.644 3.644 0 0 0 1.8.444ZM91.854 9.299v11.87H89.21v-1.511c-.444.533-1 .948-1.667 1.244a5.487 5.487 0 0 1-2.156.423c-1.586 0-2.838-.437-3.757-1.312-.904-.889-1.356-2.2-1.356-3.934v-6.78h2.779V15.7c0 1.067.237 1.867.711 2.4.49.52 1.178.779 2.067.779.993 0 1.779-.304 2.357-.912.592-.622.889-1.511.889-2.667V9.299h2.778ZM93.805 4.675h2.78V21.17h-2.78V4.675ZM103.773 9.166c1.749 0 3.083.422 4.002 1.267.933.83 1.4 2.09 1.4 3.778v6.958h-2.623v-1.445c-.341.519-.83.92-1.467 1.2-.622.267-1.378.4-2.267.4-.89 0-1.668-.147-2.334-.444-.667-.311-1.186-.733-1.556-1.267a3.317 3.317 0 0 1-.534-1.845c0-1.067.393-1.919 1.178-2.556.8-.652 2.053-.978 3.757-.978h3.067v-.178c0-.83-.252-1.467-.755-1.912-.489-.444-1.223-.667-2.201-.667-.667 0-1.326.104-1.978.312-.638.207-1.179.496-1.623.867l-1.09-2.023c.623-.475 1.371-.838 2.246-1.09a9.984 9.984 0 0 1 2.778-.377Zm-.377 10.136c.696 0 1.311-.156 1.845-.467a2.638 2.638 0 0 0 1.155-1.378v-1.378h-2.867c-1.601 0-2.401.526-2.401 1.578 0 .504.2.904.6 1.2.4.297.956.445 1.668.445ZM113.997 11.033c.8-1.245 2.208-1.867 4.224-1.867v2.645a3.532 3.532 0 0 0-.645-.067c-1.082 0-1.927.319-2.534.956-.608.622-.912 1.526-.912 2.712v5.757h-2.778V9.3h2.645v1.734Z" fill="#00314D"/></g><defs><clipPath id="a"><path fill="#fff" transform="matrix(-1 0 0 1 26.383 0)" d="M0 0h25.603v26H0z"/></clipPath></defs></svg>
|
package/src/asteroid.js
CHANGED
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<div :class="classes">
|
|
3
|
+
<div class="col-12 col-sm-auto">
|
|
4
|
+
<slot name="secondary" />
|
|
5
|
+
</div>
|
|
6
|
+
|
|
7
|
+
<div class="col-12 col-sm-auto">
|
|
8
|
+
<slot name="primary" />
|
|
9
|
+
</div>
|
|
10
|
+
</div>
|
|
11
|
+
</template>
|
|
12
|
+
|
|
13
|
+
<script>
|
|
14
|
+
import { screenMixin } from '../../mixins'
|
|
15
|
+
|
|
16
|
+
export default {
|
|
17
|
+
name: 'QasActions',
|
|
18
|
+
|
|
19
|
+
mixins: [screenMixin],
|
|
20
|
+
|
|
21
|
+
props: {
|
|
22
|
+
align: {
|
|
23
|
+
default: 'end',
|
|
24
|
+
type: String,
|
|
25
|
+
validator: value => ['start', 'around', 'between', 'center', 'end'].includes(value)
|
|
26
|
+
},
|
|
27
|
+
|
|
28
|
+
gutter: {
|
|
29
|
+
default: 'md',
|
|
30
|
+
type: String,
|
|
31
|
+
validator: value => ['xs', 'sm', 'md', 'lg', 'xl'].includes(value)
|
|
32
|
+
}
|
|
33
|
+
},
|
|
34
|
+
|
|
35
|
+
computed: {
|
|
36
|
+
classes () {
|
|
37
|
+
return [
|
|
38
|
+
`justify-${this.align}`,
|
|
39
|
+
`q-col-gutter-${this.gutter}`,
|
|
40
|
+
this.mx_isSmall ? 'column reverse' : 'row'
|
|
41
|
+
]
|
|
42
|
+
}
|
|
43
|
+
}
|
|
44
|
+
}
|
|
45
|
+
</script>
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
<template>
|
|
2
|
-
<qas-btn class="qas-actions-menu" color="primary"
|
|
2
|
+
<qas-btn class="qas-actions-menu" color="primary" hide-label-on-small-screen :icon="icon" :label="label" outline>
|
|
3
3
|
<q-menu class="qas-actions-menu__menu">
|
|
4
4
|
<q-list class="qas-actions-menu__list" separator>
|
|
5
5
|
<slot v-for="(item, key) in list" :item="item" :name="key">
|
|
@@ -18,7 +18,7 @@
|
|
|
18
18
|
</template>
|
|
19
19
|
|
|
20
20
|
<script>
|
|
21
|
-
import QasBtn from '../btn/QasBtn'
|
|
21
|
+
import QasBtn from '../btn/QasBtn.vue'
|
|
22
22
|
|
|
23
23
|
export default {
|
|
24
24
|
name: 'QasActionsMenu',
|
|
@@ -28,23 +28,19 @@ export default {
|
|
|
28
28
|
},
|
|
29
29
|
|
|
30
30
|
props: {
|
|
31
|
+
icon: {
|
|
32
|
+
default: 'o_settings',
|
|
33
|
+
type: String
|
|
34
|
+
},
|
|
35
|
+
|
|
31
36
|
label: {
|
|
32
|
-
default: '
|
|
37
|
+
default: 'Configurações',
|
|
33
38
|
type: String
|
|
34
39
|
},
|
|
35
40
|
|
|
36
41
|
list: {
|
|
37
42
|
default: () => ({}),
|
|
38
43
|
type: Object
|
|
39
|
-
},
|
|
40
|
-
|
|
41
|
-
hideLabel: {
|
|
42
|
-
type: Boolean
|
|
43
|
-
},
|
|
44
|
-
|
|
45
|
-
icon: {
|
|
46
|
-
default: 'o_settings',
|
|
47
|
-
type: String
|
|
48
44
|
}
|
|
49
45
|
},
|
|
50
46
|
|
|
@@ -55,12 +51,6 @@ export default {
|
|
|
55
51
|
item.handler(filtered)
|
|
56
52
|
}
|
|
57
53
|
}
|
|
58
|
-
},
|
|
59
|
-
|
|
60
|
-
computed: {
|
|
61
|
-
labelValue () {
|
|
62
|
-
return this.hideLabel ? '' : this.label
|
|
63
|
-
}
|
|
64
54
|
}
|
|
65
55
|
}
|
|
66
56
|
</script>
|
|
@@ -70,7 +60,6 @@ export default {
|
|
|
70
60
|
&__list {
|
|
71
61
|
width: 265px;
|
|
72
62
|
z-index: 1;
|
|
73
|
-
|
|
74
63
|
}
|
|
75
64
|
}
|
|
76
65
|
</style>
|
|
@@ -0,0 +1,90 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<div v-if="model" class="q-pa-lg qas-alert relative-position rounded-borders" :class="classes">
|
|
3
|
+
<qas-btn class="absolute-top-right q-mr-md q-mt-sm" :color="color" dense flat icon="o_close" rounded @click="close" />
|
|
4
|
+
|
|
5
|
+
<div class="q-gutter-md q-mr-lg">
|
|
6
|
+
<slot name="header">
|
|
7
|
+
<h5 v-if="title" class="text-bold text-h5">{{ title }}</h5>
|
|
8
|
+
</slot>
|
|
9
|
+
|
|
10
|
+
<slot>
|
|
11
|
+
<qas-breakline tag="p" :text="text" />
|
|
12
|
+
</slot>
|
|
13
|
+
</div>
|
|
14
|
+
</div>
|
|
15
|
+
</template>
|
|
16
|
+
|
|
17
|
+
<script>
|
|
18
|
+
import QasBreakline from '../breakline/QasBreakline.vue'
|
|
19
|
+
import QasBtn from '../btn/QasBtn.vue'
|
|
20
|
+
|
|
21
|
+
export default {
|
|
22
|
+
name: 'QasAlert',
|
|
23
|
+
|
|
24
|
+
components: {
|
|
25
|
+
QasBreakline,
|
|
26
|
+
QasBtn
|
|
27
|
+
},
|
|
28
|
+
|
|
29
|
+
props: {
|
|
30
|
+
color: {
|
|
31
|
+
default: 'primary',
|
|
32
|
+
type: String
|
|
33
|
+
},
|
|
34
|
+
|
|
35
|
+
modelValue: {
|
|
36
|
+
default: true,
|
|
37
|
+
type: Boolean
|
|
38
|
+
},
|
|
39
|
+
|
|
40
|
+
text: {
|
|
41
|
+
default: '',
|
|
42
|
+
type: String
|
|
43
|
+
},
|
|
44
|
+
|
|
45
|
+
title: {
|
|
46
|
+
default: '',
|
|
47
|
+
type: String
|
|
48
|
+
}
|
|
49
|
+
},
|
|
50
|
+
|
|
51
|
+
emits: ['update:modelValue'],
|
|
52
|
+
|
|
53
|
+
data () {
|
|
54
|
+
return {
|
|
55
|
+
model: true
|
|
56
|
+
}
|
|
57
|
+
},
|
|
58
|
+
|
|
59
|
+
computed: {
|
|
60
|
+
classes () {
|
|
61
|
+
return {
|
|
62
|
+
[`text-${this.color}`]: true,
|
|
63
|
+
[`bg-${this.color}-contrast`]: ['primary', 'secondary'].includes(this.color)
|
|
64
|
+
}
|
|
65
|
+
}
|
|
66
|
+
},
|
|
67
|
+
|
|
68
|
+
watch: {
|
|
69
|
+
modelValue: {
|
|
70
|
+
handler (value) {
|
|
71
|
+
this.model = value
|
|
72
|
+
},
|
|
73
|
+
immediate: true
|
|
74
|
+
}
|
|
75
|
+
},
|
|
76
|
+
|
|
77
|
+
methods: {
|
|
78
|
+
close () {
|
|
79
|
+
this.$emit('update:modelValue', false)
|
|
80
|
+
}
|
|
81
|
+
}
|
|
82
|
+
}
|
|
83
|
+
</script>
|
|
84
|
+
|
|
85
|
+
<style lang="scss">
|
|
86
|
+
.qas-alert {
|
|
87
|
+
border-style: solid;
|
|
88
|
+
border-width: 0 10px;
|
|
89
|
+
}
|
|
90
|
+
</style>
|
|
@@ -1,19 +1,18 @@
|
|
|
1
1
|
<template>
|
|
2
|
-
<q-header
|
|
3
|
-
<q-toolbar class="qas-
|
|
2
|
+
<q-header class="bg-white qas-app-bar shadow-primary" height-hint="70">
|
|
3
|
+
<q-toolbar class="qas-app-bar__toolbar" color="bg-white">
|
|
4
4
|
<q-ajax-bar color="white" position="top" size="2px" />
|
|
5
5
|
|
|
6
6
|
<q-btn color="grey-7" dense flat icon="o_menu" round @click="toggleMenuDrawer" />
|
|
7
7
|
|
|
8
8
|
<q-toolbar-title class="flex">
|
|
9
9
|
<div class="cursor-pointer" @click="goToRoot">
|
|
10
|
-
<img v-if="brand" :alt="title" class="q-mr-sm qas-
|
|
10
|
+
<img v-if="brand" :alt="title" class="q-mr-sm qas-app-bar__brand" :src="brand">
|
|
11
11
|
<span v-if="showTitle" class="text-bold text-grey-9 text-subtitle1 text-uppercase">{{ title }}</span>
|
|
12
12
|
<q-badge v-if="hasDevelopmentBadge" align="middle" class="q-ml-sm" color="negative" :label="developmentBadgeLabel" />
|
|
13
13
|
</div>
|
|
14
14
|
</q-toolbar-title>
|
|
15
15
|
|
|
16
|
-
<!-- TODO: Notificações. -->
|
|
17
16
|
<div v-if="hasNotifications" class="q-mr-md">
|
|
18
17
|
<q-btn class="q-mr-md" dense icon="o_notifications" round unelevated>
|
|
19
18
|
<q-badge v-if="notifications" color="red" floating>{{ notifications.count }}</q-badge>
|
|
@@ -23,16 +22,16 @@
|
|
|
23
22
|
<div class="items-center no-wrap q-gutter-md row">
|
|
24
23
|
<slot name="tools" />
|
|
25
24
|
|
|
26
|
-
<div v-if="isAuth" class="cursor-pointer items-center q-mr-sm qas-
|
|
25
|
+
<div v-if="isAuth" class="cursor-pointer items-center q-mr-sm qas-app-bar__user rounded-borders row text-grey-9" :title="user.name || user.givenName">
|
|
27
26
|
<qas-avatar class="rounded-borders-left" color="white" dark :image="user.photo" rounded size="42px" text-color="primary" :title="user.name || user.givenName" />
|
|
28
27
|
|
|
29
|
-
<div class="q-px-sm qas-
|
|
28
|
+
<div class="q-px-sm qas-app-bar__user-data qs-lh-lg text-caption">
|
|
30
29
|
<div class="ellipsis">{{ user.name || user.givenName }}</div>
|
|
31
30
|
<div class="ellipsis text-bold">{{ user.email }}</div>
|
|
32
31
|
</div>
|
|
33
32
|
|
|
34
|
-
<q-menu anchor="bottom end"
|
|
35
|
-
<div class="qas-
|
|
33
|
+
<q-menu anchor="bottom end" class="shadow-primary" max-height="400px" :offset="[0, 5]" self="top end">
|
|
34
|
+
<div class="qas-app-bar__user-menu">
|
|
36
35
|
<div class="q-pa-lg text-center">
|
|
37
36
|
<button class="unset" @click="goToProfile">
|
|
38
37
|
<qas-avatar :image="user.photo" size="145px" :title="user.name || user.givenName" />
|
|
@@ -60,8 +59,8 @@
|
|
|
60
59
|
</template>
|
|
61
60
|
|
|
62
61
|
<script>
|
|
63
|
-
import QasAvatar from '../avatar/QasAvatar'
|
|
64
|
-
import QasBtn from '../btn/QasBtn'
|
|
62
|
+
import QasAvatar from '../avatar/QasAvatar.vue'
|
|
63
|
+
import QasBtn from '../btn/QasBtn.vue'
|
|
65
64
|
|
|
66
65
|
export default {
|
|
67
66
|
name: 'QasAppBar',
|
|
@@ -98,6 +97,8 @@ export default {
|
|
|
98
97
|
}
|
|
99
98
|
},
|
|
100
99
|
|
|
100
|
+
emits: ['sign-out', 'toggle-menu'],
|
|
101
|
+
|
|
101
102
|
data () {
|
|
102
103
|
return {
|
|
103
104
|
menuDrawer: true
|
|
@@ -157,12 +158,14 @@ export default {
|
|
|
157
158
|
</script>
|
|
158
159
|
|
|
159
160
|
<style lang="scss">
|
|
160
|
-
.qas-
|
|
161
|
-
|
|
161
|
+
.qas-app-bar {
|
|
162
|
+
&__toolbar {
|
|
163
|
+
height: 70px;
|
|
164
|
+
}
|
|
162
165
|
|
|
163
166
|
&__brand {
|
|
164
167
|
height: 24px;
|
|
165
|
-
margin-right:
|
|
168
|
+
margin-right: 8px;
|
|
166
169
|
position: relative;
|
|
167
170
|
top: 4px;
|
|
168
171
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
<template>
|
|
2
|
-
<q-drawer v-model="model" class="qas-app-menu" :mini="miniMode" :width="230"
|
|
2
|
+
<q-drawer v-model="model" class="qas-app-menu" :mini="miniMode" :width="230" @before-hide="beforeHide" @mini-state="setMiniState">
|
|
3
3
|
<div class="column flex full-height justify-between no-wrap overflow-x-hidden">
|
|
4
4
|
<div>
|
|
5
5
|
<div v-if="displayModuleSection" class="q-ma-md">
|
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
Você está no modulo:
|
|
8
8
|
</div>
|
|
9
9
|
|
|
10
|
-
<qas-select v-model="module" :options="defaultModules" @
|
|
10
|
+
<qas-select v-model="module" :options="defaultModules" @update:model-value="redirectHandler(currentModelOption)" />
|
|
11
11
|
</div>
|
|
12
12
|
|
|
13
13
|
<q-list class="text-grey-9 text-weight-medium">
|
|
@@ -36,7 +36,8 @@
|
|
|
36
36
|
</div>
|
|
37
37
|
|
|
38
38
|
<div class="q-mx-md">
|
|
39
|
-
|
|
39
|
+
<!-- TODO: O Modular não é o Asteroid, então não podemos manter esse logo aqui. -->
|
|
40
|
+
<img v-if="!isMini" alt="Modular" class="block q-mb-md q-mx-auto" src="../../assets/logo-modular.svg">
|
|
40
41
|
</div>
|
|
41
42
|
</div>
|
|
42
43
|
</q-drawer>
|
|
@@ -62,7 +63,7 @@ export default {
|
|
|
62
63
|
type: Array
|
|
63
64
|
},
|
|
64
65
|
|
|
65
|
-
|
|
66
|
+
modelValue: {
|
|
66
67
|
default: true,
|
|
67
68
|
type: Boolean
|
|
68
69
|
},
|
|
@@ -78,6 +79,8 @@ export default {
|
|
|
78
79
|
}
|
|
79
80
|
},
|
|
80
81
|
|
|
82
|
+
emits: ['update:modelValue'],
|
|
83
|
+
|
|
81
84
|
data () {
|
|
82
85
|
return {
|
|
83
86
|
miniMode: false,
|
|
@@ -113,11 +116,11 @@ export default {
|
|
|
113
116
|
|
|
114
117
|
model: {
|
|
115
118
|
get () {
|
|
116
|
-
return this.
|
|
119
|
+
return this.modelValue
|
|
117
120
|
},
|
|
118
121
|
|
|
119
122
|
set (value) {
|
|
120
|
-
return this.$emit('
|
|
123
|
+
return this.$emit('update:modelValue', value)
|
|
121
124
|
}
|
|
122
125
|
},
|
|
123
126
|
|
|
@@ -155,7 +158,7 @@ export default {
|
|
|
155
158
|
},
|
|
156
159
|
|
|
157
160
|
beforeHide () {
|
|
158
|
-
if (this
|
|
161
|
+
if (this.mx_isLarge) {
|
|
159
162
|
this.model = true
|
|
160
163
|
this.miniMode = !this.miniMode
|
|
161
164
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
<template>
|
|
2
|
-
<q-avatar class="text-bold" :class="
|
|
2
|
+
<q-avatar class="text-bold" :class="avatarClass" rounded>
|
|
3
3
|
<q-img v-if="hasImage" :alt="title" :ratio="1" spinner-color="primary" spinner-size="16px" :src="image" @error="onImageLoadedError" />
|
|
4
4
|
<template v-else-if="hasTitle">{{ firstLetter }}</template>
|
|
5
5
|
<q-icon v-else :name="icon" />
|
|
@@ -8,6 +8,8 @@
|
|
|
8
8
|
|
|
9
9
|
<script>
|
|
10
10
|
export default {
|
|
11
|
+
name: 'QasAvatar',
|
|
12
|
+
|
|
11
13
|
props: {
|
|
12
14
|
color: {
|
|
13
15
|
default: 'primary',
|
|
@@ -46,8 +48,10 @@ export default {
|
|
|
46
48
|
},
|
|
47
49
|
|
|
48
50
|
computed: {
|
|
49
|
-
|
|
50
|
-
if (this.hasImage)
|
|
51
|
+
avatarClass () {
|
|
52
|
+
if (this.hasImage) {
|
|
53
|
+
return null
|
|
54
|
+
}
|
|
51
55
|
|
|
52
56
|
const contrastColor = this.textColor ? this.textColor : this.contrastColor
|
|
53
57
|
|
|
@@ -1,21 +1,29 @@
|
|
|
1
1
|
<template>
|
|
2
|
-
<div
|
|
2
|
+
<div class="bg-white q-px-md q-py-lg rounded-borders" :class="boxClass">
|
|
3
3
|
<slot />
|
|
4
4
|
</div>
|
|
5
5
|
</template>
|
|
6
6
|
|
|
7
7
|
<script>
|
|
8
8
|
export default {
|
|
9
|
+
name: 'QasBox',
|
|
10
|
+
|
|
9
11
|
props: {
|
|
10
|
-
|
|
11
|
-
|
|
12
|
+
outlined: {
|
|
13
|
+
type: Boolean
|
|
14
|
+
},
|
|
15
|
+
|
|
16
|
+
unelevated: {
|
|
12
17
|
type: Boolean
|
|
13
18
|
}
|
|
14
19
|
},
|
|
15
20
|
|
|
16
21
|
computed: {
|
|
17
22
|
boxClass () {
|
|
18
|
-
return
|
|
23
|
+
return {
|
|
24
|
+
'border-primary-contrast': this.outlined,
|
|
25
|
+
'shadow-primary': !this.unelevated
|
|
26
|
+
}
|
|
19
27
|
}
|
|
20
28
|
}
|
|
21
29
|
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
type: component
|
|
2
|
+
|
|
3
|
+
meta:
|
|
4
|
+
desc: Um simples componente com fundo branco e bordas arredondadas para encapsular o seu conteúdo.
|
|
5
|
+
|
|
6
|
+
props:
|
|
7
|
+
outlined:
|
|
8
|
+
desc: Insere uma borda sólida em volta do componente.
|
|
9
|
+
type: Boolean
|
|
10
|
+
|
|
11
|
+
unelevated:
|
|
12
|
+
desc: Remove a sombra do componente.
|
|
13
|
+
type: Boolean
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<component :is="tag" v-for="(line, index) in lines" :key="index" v-bind="$attrs">
|
|
3
|
+
{{ line }}
|
|
4
|
+
</component>
|
|
5
|
+
</template>
|
|
6
|
+
|
|
7
|
+
<script>
|
|
8
|
+
import { getSlotChildrenText } from '../../helpers'
|
|
9
|
+
|
|
10
|
+
export default {
|
|
11
|
+
name: 'QasBreakline',
|
|
12
|
+
|
|
13
|
+
props: {
|
|
14
|
+
split: {
|
|
15
|
+
default: '\n',
|
|
16
|
+
type: String
|
|
17
|
+
},
|
|
18
|
+
|
|
19
|
+
tag: {
|
|
20
|
+
default: 'div',
|
|
21
|
+
type: String
|
|
22
|
+
},
|
|
23
|
+
|
|
24
|
+
text: {
|
|
25
|
+
default: '',
|
|
26
|
+
type: String
|
|
27
|
+
}
|
|
28
|
+
},
|
|
29
|
+
|
|
30
|
+
computed: {
|
|
31
|
+
lines () {
|
|
32
|
+
const text = this.text || getSlotChildrenText(this.$slots.default())
|
|
33
|
+
return text.split(this.split)
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
</script>
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
type: component
|
|
2
|
+
|
|
3
|
+
meta:
|
|
4
|
+
desc: Permite encapsular quebra de linhas (\n) de um texto em uma tag HTML ou componente Vue.
|
|
5
|
+
|
|
6
|
+
props:
|
|
7
|
+
split:
|
|
8
|
+
default: '\n'
|
|
9
|
+
desc: Caracter ou conjunto de caracteres que serão utilizados para dividir o texto.
|
|
10
|
+
type: String
|
|
11
|
+
|
|
12
|
+
tag:
|
|
13
|
+
default: div
|
|
14
|
+
desc: Tag HTML que será utilizada para encapsular o texto dividido.
|
|
15
|
+
examples: [p, span]
|
|
16
|
+
type: String
|
|
17
|
+
|
|
18
|
+
text:
|
|
19
|
+
default: ''
|
|
20
|
+
desc: Texto que será dividido.
|
|
21
|
+
type: String
|
|
22
|
+
|
|
23
|
+
slots:
|
|
24
|
+
default:
|
|
25
|
+
desc: Texto que será dividido.
|