@martin.ivanov.brandcompete/bcq-ui 0.0.0-stage → 3.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +21 -0
- package/README.md +39 -2
- package/package.json +69 -4
- package/src/app.vue +313 -0
- package/src/bcq-ui/components/_component-template/component-template.vue +32 -0
- package/src/bcq-ui/components/_component-template/index.js +7 -0
- package/src/bcq-ui/components/alert/alert.vue +114 -0
- package/src/bcq-ui/components/alert/index.js +7 -0
- package/src/bcq-ui/components/ambient-image/ambient-image.vue +155 -0
- package/src/bcq-ui/components/ambient-image/index.js +7 -0
- package/src/bcq-ui/components/app/app.vue +111 -0
- package/src/bcq-ui/components/app/index.js +7 -0
- package/src/bcq-ui/components/async-form/async-form.vue +108 -0
- package/src/bcq-ui/components/async-form/index.js +7 -0
- package/src/bcq-ui/components/avatar/avatar.vue +106 -0
- package/src/bcq-ui/components/avatar/index.js +7 -0
- package/src/bcq-ui/components/avatar-group/avatar-group.vue +132 -0
- package/src/bcq-ui/components/avatar-group/index.js +7 -0
- package/src/bcq-ui/components/badge/badge.vue +138 -0
- package/src/bcq-ui/components/badge/index.js +7 -0
- package/src/bcq-ui/components/banner/banner.vue +103 -0
- package/src/bcq-ui/components/banner/index.js +7 -0
- package/src/bcq-ui/components/bcq-ui.js +38 -0
- package/src/bcq-ui/components/brand-color/brand-color.vue +146 -0
- package/src/bcq-ui/components/brand-color/index.js +7 -0
- package/src/bcq-ui/components/breadcrumbs/breadcrumbs.vue +103 -0
- package/src/bcq-ui/components/breadcrumbs/index.js +7 -0
- package/src/bcq-ui/components/breadcrumbs-item/breadcrumbs-item.vue +51 -0
- package/src/bcq-ui/components/breadcrumbs-item/index.js +7 -0
- package/src/bcq-ui/components/btn/btn.vue +232 -0
- package/src/bcq-ui/components/btn/index.js +7 -0
- package/src/bcq-ui/components/btn-group/btn-group.vue +166 -0
- package/src/bcq-ui/components/btn-group/index.js +7 -0
- package/src/bcq-ui/components/card/card.vue +51 -0
- package/src/bcq-ui/components/card/index.js +7 -0
- package/src/bcq-ui/components/card/mixins/card-props.js +31 -0
- package/src/bcq-ui/components/card/mixins/computed.js +12 -0
- package/src/bcq-ui/components/card/mixins/props.js +24 -0
- package/src/bcq-ui/components/card-actions/card-actions.vue +53 -0
- package/src/bcq-ui/components/card-actions/index.js +7 -0
- package/src/bcq-ui/components/card-text/card-text.vue +57 -0
- package/src/bcq-ui/components/card-text/index.js +7 -0
- package/src/bcq-ui/components/card-title/card-title.vue +63 -0
- package/src/bcq-ui/components/card-title/index.js +7 -0
- package/src/bcq-ui/components/checkbox/checkbox.vue +126 -0
- package/src/bcq-ui/components/checkbox/index.js +7 -0
- package/src/bcq-ui/components/chip/chip.vue +149 -0
- package/src/bcq-ui/components/chip/index.js +7 -0
- package/src/bcq-ui/components/collapsible/collapsible.vue +95 -0
- package/src/bcq-ui/components/collapsible/index.js +7 -0
- package/src/bcq-ui/components/collapsible-item/collapsible-item.vue +187 -0
- package/src/bcq-ui/components/collapsible-item/index.js +7 -0
- package/src/bcq-ui/components/color-picker/color-picker.vue +173 -0
- package/src/bcq-ui/components/color-picker/index.js +7 -0
- package/src/bcq-ui/components/container/container.vue +43 -0
- package/src/bcq-ui/components/container/index.js +7 -0
- package/src/bcq-ui/components/context-menu/context-menu.vue +172 -0
- package/src/bcq-ui/components/context-menu/index.js +7 -0
- package/src/bcq-ui/components/data-table/data-table.vue +504 -0
- package/src/bcq-ui/components/data-table/index.js +7 -0
- package/src/bcq-ui/components/dialog-box/dialog-box.vue +302 -0
- package/src/bcq-ui/components/dialog-box/index.js +7 -0
- package/src/bcq-ui/components/divider/divider.vue +29 -0
- package/src/bcq-ui/components/divider/index.js +7 -0
- package/src/bcq-ui/components/dropdown/dropdown.vue +420 -0
- package/src/bcq-ui/components/dropdown/index.js +7 -0
- package/src/bcq-ui/components/editor/editor.vue +122 -0
- package/src/bcq-ui/components/editor/index.js +7 -0
- package/src/bcq-ui/components/empty/empty.vue +79 -0
- package/src/bcq-ui/components/empty/index.js +7 -0
- package/src/bcq-ui/components/flag/flag.vue +75 -0
- package/src/bcq-ui/components/flag/index.js +7 -0
- package/src/bcq-ui/components/grid/grid.vue +40 -0
- package/src/bcq-ui/components/grid/index.js +7 -0
- package/src/bcq-ui/components/grid-col/grid-col.vue +88 -0
- package/src/bcq-ui/components/grid-col/index.js +7 -0
- package/src/bcq-ui/components/heading/heading.vue +76 -0
- package/src/bcq-ui/components/heading/index.js +7 -0
- package/src/bcq-ui/components/icon/icon.vue +60 -0
- package/src/bcq-ui/components/icon/index.js +7 -0
- package/src/bcq-ui/components/index.js +84 -0
- package/src/bcq-ui/components/kbd/index.js +7 -0
- package/src/bcq-ui/components/kbd/kbd.vue +85 -0
- package/src/bcq-ui/components/kpi/index.js +7 -0
- package/src/bcq-ui/components/kpi/kpi.vue +231 -0
- package/src/bcq-ui/components/layout/index.js +7 -0
- package/src/bcq-ui/components/layout/layout.vue +512 -0
- package/src/bcq-ui/components/lazy-image/index.js +7 -0
- package/src/bcq-ui/components/lazy-image/lazy-image.vue +160 -0
- package/src/bcq-ui/components/list/index.js +7 -0
- package/src/bcq-ui/components/list/list.vue +112 -0
- package/src/bcq-ui/components/list-item/index.js +7 -0
- package/src/bcq-ui/components/list-item/list-item.vue +65 -0
- package/src/bcq-ui/components/list-item-content/index.js +7 -0
- package/src/bcq-ui/components/list-item-content/list-item-content.vue +37 -0
- package/src/bcq-ui/components/list-item-content-sub-title/index.js +7 -0
- package/src/bcq-ui/components/list-item-content-sub-title/list-item-content-sub-title.vue +44 -0
- package/src/bcq-ui/components/list-item-content-title/index.js +7 -0
- package/src/bcq-ui/components/list-item-content-title/list-item-content-title.vue +44 -0
- package/src/bcq-ui/components/list-item-icon/index.js +7 -0
- package/src/bcq-ui/components/list-item-icon/list-item-icon.vue +42 -0
- package/src/bcq-ui/components/loading-overlay/index.js +7 -0
- package/src/bcq-ui/components/loading-overlay/loading-overlay.vue +91 -0
- package/src/bcq-ui/components/lorem-ipsum/index.js +7 -0
- package/src/bcq-ui/components/lorem-ipsum/lorem-ipsum.vue +74 -0
- package/src/bcq-ui/components/meter-group/index.js +7 -0
- package/src/bcq-ui/components/meter-group/meter-group.vue +128 -0
- package/src/bcq-ui/components/meter-group-item/index.js +7 -0
- package/src/bcq-ui/components/meter-group-item/meter-group-item.vue +68 -0
- package/src/bcq-ui/components/multiline-ellipsis/index.js +7 -0
- package/src/bcq-ui/components/multiline-ellipsis/multiline-ellipsis.vue +52 -0
- package/src/bcq-ui/components/navigator-online/index.js +7 -0
- package/src/bcq-ui/components/navigator-online/navigator-online.vue +29 -0
- package/src/bcq-ui/components/notification/index.js +7 -0
- package/src/bcq-ui/components/notification/notification.vue +142 -0
- package/src/bcq-ui/components/pager/index.js +7 -0
- package/src/bcq-ui/components/pager/pager.vue +140 -0
- package/src/bcq-ui/components/progressbar/index.js +7 -0
- package/src/bcq-ui/components/progressbar/progressbar.vue +244 -0
- package/src/bcq-ui/components/radio/index.js +7 -0
- package/src/bcq-ui/components/radio/radio.vue +95 -0
- package/src/bcq-ui/components/radio-group/index.js +7 -0
- package/src/bcq-ui/components/radio-group/radio-group.vue +92 -0
- package/src/bcq-ui/components/range-slider/index.js +7 -0
- package/src/bcq-ui/components/range-slider/range-slider.vue +216 -0
- package/src/bcq-ui/components/rating/index.js +7 -0
- package/src/bcq-ui/components/rating/rating.vue +155 -0
- package/src/bcq-ui/components/reactive-style/index.js +7 -0
- package/src/bcq-ui/components/reactive-style/reactive-style.vue +12 -0
- package/src/bcq-ui/components/skeleton-loader/index.js +7 -0
- package/src/bcq-ui/components/skeleton-loader/skeleton-loader.vue +69 -0
- package/src/bcq-ui/components/slider/index.js +7 -0
- package/src/bcq-ui/components/slider/mixins/sliderProps.js +84 -0
- package/src/bcq-ui/components/slider/slider.vue +190 -0
- package/src/bcq-ui/components/snackbar/index.js +7 -0
- package/src/bcq-ui/components/snackbar/snackbar.vue +155 -0
- package/src/bcq-ui/components/sparklines/index.js +7 -0
- package/src/bcq-ui/components/sparklines/sparklines.vue +99 -0
- package/src/bcq-ui/components/speed-dial/index.js +7 -0
- package/src/bcq-ui/components/speed-dial/speed-dial.vue +215 -0
- package/src/bcq-ui/components/split-btn/index.js +7 -0
- package/src/bcq-ui/components/split-btn/split-btn.vue +263 -0
- package/src/bcq-ui/components/svg-icon/index.js +7 -0
- package/src/bcq-ui/components/svg-icon/svg-icon.vue +47 -0
- package/src/bcq-ui/components/switcher/index.js +7 -0
- package/src/bcq-ui/components/switcher/switcher.vue +168 -0
- package/src/bcq-ui/components/table-layout/index.js +7 -0
- package/src/bcq-ui/components/table-layout/table-layout.vue +76 -0
- package/src/bcq-ui/components/table-layout-cell/index.js +7 -0
- package/src/bcq-ui/components/table-layout-cell/table-layout-cell.vue +53 -0
- package/src/bcq-ui/components/table-layout-row/index.js +7 -0
- package/src/bcq-ui/components/table-layout-row/table-layout-row.vue +28 -0
- package/src/bcq-ui/components/tabs/index.js +7 -0
- package/src/bcq-ui/components/tabs/tabs.vue +224 -0
- package/src/bcq-ui/components/tabs-panel/index.js +7 -0
- package/src/bcq-ui/components/tabs-panel/tabs-panel.vue +40 -0
- package/src/bcq-ui/components/text-field/index.js +7 -0
- package/src/bcq-ui/components/text-field/text-field.vue +373 -0
- package/src/bcq-ui/components/text-field-label/index.js +7 -0
- package/src/bcq-ui/components/text-field-label/text-field-label.vue +39 -0
- package/src/bcq-ui/components/timeline/index.js +7 -0
- package/src/bcq-ui/components/timeline/timeline.vue +188 -0
- package/src/bcq-ui/components/toolbar/index.js +7 -0
- package/src/bcq-ui/components/toolbar/mixins/computed.js +12 -0
- package/src/bcq-ui/components/toolbar/toolbar.vue +89 -0
- package/src/bcq-ui/components/toolbar-actions/index.js +7 -0
- package/src/bcq-ui/components/toolbar-actions/toolbar-actions.vue +36 -0
- package/src/bcq-ui/components/toolbar-icon/index.js +7 -0
- package/src/bcq-ui/components/toolbar-icon/toolbar-icon.vue +45 -0
- package/src/bcq-ui/components/toolbar-title/index.js +7 -0
- package/src/bcq-ui/components/toolbar-title/toolbar-title.vue +46 -0
- package/src/bcq-ui/components/tooltip/index.js +7 -0
- package/src/bcq-ui/components/tooltip/tooltip.vue +272 -0
- package/src/bcq-ui/components/treeview/index.js +7 -0
- package/src/bcq-ui/components/treeview/treeview-item.vue +91 -0
- package/src/bcq-ui/components/treeview/treeview.vue +115 -0
- package/src/bcq-ui/components/upload/index.js +7 -0
- package/src/bcq-ui/components/upload/upload.vue +314 -0
- package/src/bcq-ui/components/vid/index.js +7 -0
- package/src/bcq-ui/components/vid/vid.vue +46 -0
- package/src/bcq-ui/directives/aspect-ratio.js +9 -0
- package/src/bcq-ui/directives/blur.js +26 -0
- package/src/bcq-ui/directives/default-btn.js +22 -0
- package/src/bcq-ui/directives/gradient-text.js +14 -0
- package/src/bcq-ui/directives/intersect.js +27 -0
- package/src/bcq-ui/directives/liquid-glass.js +14 -0
- package/src/bcq-ui/directives/resize.js +18 -0
- package/src/bcq-ui/directives/ripple.js +117 -0
- package/src/bcq-ui/directives/scroll-lock.js +13 -0
- package/src/bcq-ui/directives/tooltip.js +17 -0
- package/src/bcq-ui/index.js +28 -0
- package/src/bcq-ui/mixins/methods.js +68 -0
- package/src/bcq-ui/styles/animation.css +150 -0
- package/src/bcq-ui/styles/border.css +506 -0
- package/src/bcq-ui/styles/colors.css +341 -0
- package/src/bcq-ui/styles/css-slider.css +62 -0
- package/src/bcq-ui/styles/effects.css +227 -0
- package/src/bcq-ui/styles/elevation.css +183 -0
- package/src/bcq-ui/styles/flexbox.css +369 -0
- package/src/bcq-ui/styles/grid.css +967 -0
- package/src/bcq-ui/styles/interactivity.css +94 -0
- package/src/bcq-ui/styles/layout.css +227 -0
- package/src/bcq-ui/styles/liquid-glass.css +57 -0
- package/src/bcq-ui/styles/normalize.css +346 -0
- package/src/bcq-ui/styles/sizing.css +841 -0
- package/src/bcq-ui/styles/spacing.css +1001 -0
- package/src/bcq-ui/styles/table-layout.css +66 -0
- package/src/bcq-ui/styles/tooltip.css +132 -0
- package/src/bcq-ui/styles/transform.css +185 -0
- package/src/bcq-ui/styles/transition.css +151 -0
- package/src/bcq-ui/styles/typography.css +334 -0
- package/src/bcq-ui/styles/variables.css +346 -0
- package/src/components/_component-template.vue +27 -0
- package/src/components/bc-svg-icon-sprite/index.vue +48 -0
- package/src/components/code-chunk/index.vue +23 -0
- package/src/components/code-files/index.vue +32 -0
- package/src/components/color-swatches/index.vue +121 -0
- package/src/components/component-work-in-progress/index.vue +33 -0
- package/src/components/copyright-notice/index.vue +44 -0
- package/src/components/documentation/documentation-grid.vue +65 -0
- package/src/components/documentation/index.vue +108 -0
- package/src/components/flat-card/index.vue +64 -0
- package/src/components/icons/index.vue +113 -0
- package/src/components/install-bcq/index.vue +26 -0
- package/src/components/library-bundler/index.vue +208 -0
- package/src/components/liquid-glass/index.vue +105 -0
- package/src/components/logo/index.vue +91 -0
- package/src/components/page-anchors/index.vue +80 -0
- package/src/components/page-console/index.vue +251 -0
- package/src/components/page-data/index.vue +28 -0
- package/src/components/page-title/index.vue +87 -0
- package/src/components/random-component/index.vue +76 -0
- package/src/components/section-md/index.vue +125 -0
- package/src/components/site-navigation/index.vue +147 -0
- package/src/components/sitemap/index.vue +113 -0
- package/src/components/slot-info/index.vue +41 -0
- package/src/components/syntax-highlight/index.vue +126 -0
- package/src/components/toolbar/index.vue +55 -0
- package/src/components/typography-treatments/index.vue +48 -0
- package/src/components/ui-category-page/index.vue +74 -0
- package/src/components/ui-colors/index.vue +52 -0
- package/src/components/utility-css-classes-others/index.vue +69 -0
- package/src/components/utility-css-classes-spacing/index.vue +65 -0
- package/src/helpers/config.js +179 -0
- package/src/helpers/en.js +161 -0
- package/src/helpers/icons.js +62 -0
- package/src/helpers/meta.js +94 -0
- package/src/helpers/router.js +953 -0
- package/src/helpers/social-bar-services.js +45 -0
- package/src/lib.js +3 -0
- package/src/main.js +108 -0
- package/src/mixins/computed.js +70 -0
- package/src/mixins/methods.js +281 -0
- package/src/mixins/props.js +24 -0
- package/src/pages/_page.vue +38 -0
- package/src/pages/category.vue +45 -0
- package/src/pages/content/app.vue +34 -0
- package/src/pages/content/brand-color.vue +41 -0
- package/src/pages/content/colors.vue +42 -0
- package/src/pages/content/container.vue +41 -0
- package/src/pages/content/css-animations.vue +39 -0
- package/src/pages/content/css-variables.vue +36 -0
- package/src/pages/content/elevation.vue +56 -0
- package/src/pages/content/grid.vue +80 -0
- package/src/pages/content/heading.vue +58 -0
- package/src/pages/content/layout.vue +77 -0
- package/src/pages/content/lorem-ipsum.vue +61 -0
- package/src/pages/content/navigator-online.vue +48 -0
- package/src/pages/content/reactive-style.vue +34 -0
- package/src/pages/content/table-layout.vue +45 -0
- package/src/pages/content/theme.vue +41 -0
- package/src/pages/content/typography.vue +47 -0
- package/src/pages/content/utility-css-classes.vue +49 -0
- package/src/pages/directives/aspect-ratio.vue +51 -0
- package/src/pages/directives/blur.vue +80 -0
- package/src/pages/directives/default-btn.vue +46 -0
- package/src/pages/directives/gradient-text.vue +39 -0
- package/src/pages/directives/intersect.vue +53 -0
- package/src/pages/directives/liquid-glass.vue +56 -0
- package/src/pages/directives/resize.vue +51 -0
- package/src/pages/directives/ripple.vue +43 -0
- package/src/pages/directives/scroll-lock.vue +39 -0
- package/src/pages/directives/tooltip.vue +56 -0
- package/src/pages/forms/async-form.vue +124 -0
- package/src/pages/forms/checkbox.vue +89 -0
- package/src/pages/forms/dropdown.vue +105 -0
- package/src/pages/forms/radio-group.vue +92 -0
- package/src/pages/forms/range-slider.vue +95 -0
- package/src/pages/forms/slider.vue +95 -0
- package/src/pages/forms/switcher.vue +77 -0
- package/src/pages/forms/text-field.vue +154 -0
- package/src/pages/forms/upload.vue +122 -0
- package/src/pages/getting-started/bundler.vue +46 -0
- package/src/pages/getting-started/deployment.vue +34 -0
- package/src/pages/getting-started/development.vue +34 -0
- package/src/pages/getting-started/publishing.vue +36 -0
- package/src/pages/getting-started/quick-start.vue +36 -0
- package/src/pages/getting-started/release-notes.vue +36 -0
- package/src/pages/getting-started/roadmap.vue +38 -0
- package/src/pages/index.vue +32 -0
- package/src/pages/ui/alert.vue +71 -0
- package/src/pages/ui/ambient-image.vue +74 -0
- package/src/pages/ui/avatar-group.vue +72 -0
- package/src/pages/ui/avatar.vue +79 -0
- package/src/pages/ui/badge.vue +84 -0
- package/src/pages/ui/banner.vue +67 -0
- package/src/pages/ui/breadcrumbs.vue +34 -0
- package/src/pages/ui/btn-group.vue +108 -0
- package/src/pages/ui/btn.vue +81 -0
- package/src/pages/ui/card.vue +73 -0
- package/src/pages/ui/chip.vue +83 -0
- package/src/pages/ui/collapsible.vue +101 -0
- package/src/pages/ui/color-picker.vue +83 -0
- package/src/pages/ui/context-menu.vue +89 -0
- package/src/pages/ui/data-table.vue +135 -0
- package/src/pages/ui/dialog-box.vue +146 -0
- package/src/pages/ui/divider.vue +39 -0
- package/src/pages/ui/editor.vue +74 -0
- package/src/pages/ui/empty.vue +45 -0
- package/src/pages/ui/flag.vue +90 -0
- package/src/pages/ui/icon.vue +49 -0
- package/src/pages/ui/kbd.vue +74 -0
- package/src/pages/ui/kpi.vue +72 -0
- package/src/pages/ui/lazy-image.vue +53 -0
- package/src/pages/ui/list.vue +12 -0
- package/src/pages/ui/loading-overlay.vue +50 -0
- package/src/pages/ui/meter-group.vue +73 -0
- package/src/pages/ui/multiline-ellipsis.vue +64 -0
- package/src/pages/ui/notification.vue +81 -0
- package/src/pages/ui/pager.vue +84 -0
- package/src/pages/ui/progressbar.vue +107 -0
- package/src/pages/ui/rating.vue +79 -0
- package/src/pages/ui/skeleton-loader.vue +93 -0
- package/src/pages/ui/snackbar.vue +68 -0
- package/src/pages/ui/sparklines.vue +74 -0
- package/src/pages/ui/speed-dial.vue +92 -0
- package/src/pages/ui/split-btn.vue +88 -0
- package/src/pages/ui/svg-icon.vue +47 -0
- package/src/pages/ui/tabs.vue +75 -0
- package/src/pages/ui/timeline.vue +52 -0
- package/src/pages/ui/toolbar.vue +78 -0
- package/src/pages/ui/tooltip.vue +104 -0
- package/src/pages/ui/treeview.vue +74 -0
- package/src/pages/ui/vid.vue +51 -0
- package/src/stores/page.js +22 -0
package/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2026 brandcompete GmbH
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
package/README.md
CHANGED
|
@@ -1,3 +1,40 @@
|
|
|
1
|
-
#
|
|
1
|
+
# This is a work in progress yet, so bear with us for a while
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
# brandcompete-becquerel-3
|
|
4
|
+
|
|
5
|
+
The Vue3 UI library developed by us at brandcompete GmbH provides a comprehensive and growing set of tools for building modern, consistent user interfaces. It includes a continuously expanding collection of ready-to-use UI components, flexible form controls, and versatile layout elements. In addition, the library offers practical directives, along with a wide range of carefully designed typography styles and utility CSS classes to help streamline development and maintain visual consistency.
|
|
6
|
+
|
|
7
|
+
## Recommended IDE Setup
|
|
8
|
+
|
|
9
|
+
[VS Code](https://code.visualstudio.com/) + [Vue (Official)](https://marketplace.visualstudio.com/items?itemName=Vue.volar) (and disable Vetur).
|
|
10
|
+
|
|
11
|
+
## Recommended Browser Setup
|
|
12
|
+
|
|
13
|
+
- Chromium-based browsers (Chrome, Edge, Brave, etc.):
|
|
14
|
+
- [Vue.js devtools](https://chromewebstore.google.com/detail/vuejs-devtools/nhdogjmejiglipccpnnnanhbledajbpd)
|
|
15
|
+
- [Turn on Custom Object Formatter in Chrome DevTools](http://bit.ly/object-formatters)
|
|
16
|
+
- Firefox:
|
|
17
|
+
- [Vue.js devtools](https://addons.mozilla.org/en-US/firefox/addon/vue-js-devtools/)
|
|
18
|
+
- [Turn on Custom Object Formatter in Firefox DevTools](https://fxdx.dev/firefox-devtools-custom-object-formatters/)
|
|
19
|
+
|
|
20
|
+
## Customize configuration
|
|
21
|
+
|
|
22
|
+
See [Vite Configuration Reference](https://vite.dev/config/).
|
|
23
|
+
|
|
24
|
+
## Project Setup
|
|
25
|
+
|
|
26
|
+
```sh
|
|
27
|
+
npm install
|
|
28
|
+
```
|
|
29
|
+
|
|
30
|
+
### Compile and Hot-Reload for Development
|
|
31
|
+
|
|
32
|
+
```sh
|
|
33
|
+
npm run dev
|
|
34
|
+
```
|
|
35
|
+
|
|
36
|
+
### Compile and Minify for Production
|
|
37
|
+
|
|
38
|
+
```sh
|
|
39
|
+
npm run build
|
|
40
|
+
```
|
package/package.json
CHANGED
|
@@ -1,6 +1,71 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@martin.ivanov.brandcompete/bcq-ui",
|
|
3
|
-
"version": "
|
|
4
|
-
"
|
|
5
|
-
"
|
|
6
|
-
|
|
3
|
+
"version": "3.0.0",
|
|
4
|
+
"type": "module",
|
|
5
|
+
"private": false,
|
|
6
|
+
"files": ["src"],
|
|
7
|
+
"main": "src/lib.js",
|
|
8
|
+
"module": "./src/lib.js",
|
|
9
|
+
"exports": {
|
|
10
|
+
".": "./src/lib.js"
|
|
11
|
+
},
|
|
12
|
+
"publishConfig": {
|
|
13
|
+
"access": "public"
|
|
14
|
+
},
|
|
15
|
+
"peerDependencies": {
|
|
16
|
+
"vue": "^3.5.26"
|
|
17
|
+
},
|
|
18
|
+
"appName": "Becquerel UI for Vue3",
|
|
19
|
+
"description": "The Vue3 UI library developed by us at brandcompete GmbH provides a comprehensive and growing set of tools for building modern, consistent user interfaces",
|
|
20
|
+
"vendor": "brandcompete GmbH",
|
|
21
|
+
"vendorUrl": "https://brandcompete.com/",
|
|
22
|
+
"themeColor": "#212121",
|
|
23
|
+
"hostname": "https://becquerel3.brandcompete.com/",
|
|
24
|
+
"website": "https://becquerel3.brandcompete.com/",
|
|
25
|
+
"_hostname": "https://bcq.wemakesites.net/",
|
|
26
|
+
"_website": "https://bcq.wemakesites.net/",
|
|
27
|
+
"changefreq": "weekly",
|
|
28
|
+
"priority": "1.0",
|
|
29
|
+
"engines": {
|
|
30
|
+
"node": "^20.19.0 || >=22.12.0"
|
|
31
|
+
},
|
|
32
|
+
"repository": {
|
|
33
|
+
"type": "git",
|
|
34
|
+
"url": "https://github.com/brandcompete/bcq-ui.git"
|
|
35
|
+
},
|
|
36
|
+
"bugs": {
|
|
37
|
+
"url": "https://github.com/brandcompete/bcq-ui/issues"
|
|
38
|
+
},
|
|
39
|
+
"homepage": "https://github.com/brandcompete/bcq-ui.git",
|
|
40
|
+
"scripts": {
|
|
41
|
+
"dev": "vite",
|
|
42
|
+
"build": "vite build && node bcq-cli/llms.cjs && node bcq-cli/ssr.cjs",
|
|
43
|
+
"preview": "vite preview",
|
|
44
|
+
"build:lib": "vite build -c vite.lib.config.js",
|
|
45
|
+
"build:all": "vite build && vite build -c vite.lib.config.js",
|
|
46
|
+
"bcq:create": "node bcq-cli/create.cjs",
|
|
47
|
+
"bcq:llms": "node bcq-cli/llms.cjs",
|
|
48
|
+
"bcq:ssr": "node bcq-cli/ssr.cjs"
|
|
49
|
+
},
|
|
50
|
+
"dependencies": {
|
|
51
|
+
"@mdi/font": "^7.4.47",
|
|
52
|
+
"axios": "^1.15.0",
|
|
53
|
+
"clipboard-copy": "^4.0.1",
|
|
54
|
+
"highlight.js": "^11.11.1",
|
|
55
|
+
"marked": "^17.0.1",
|
|
56
|
+
"mitt": "^3.0.1",
|
|
57
|
+
"pinia": "^3.0.4",
|
|
58
|
+
"quill": "^2.0.3",
|
|
59
|
+
"vue": "^3.5.26",
|
|
60
|
+
"vue-axios": "^3.5.2",
|
|
61
|
+
"vue-router": "^4.6.4",
|
|
62
|
+
"vue-virtual-scroller": "^2.0.0-beta.8"
|
|
63
|
+
},
|
|
64
|
+
"devDependencies": {
|
|
65
|
+
"@vitejs/plugin-vue": "^6.0.3",
|
|
66
|
+
"chalk": "^4.1.2",
|
|
67
|
+
"vite": "^7.3.0",
|
|
68
|
+
"vite-plugin-sitemap": "^0.8.2",
|
|
69
|
+
"vite-plugin-vue-devtools": "^8.0.5"
|
|
70
|
+
}
|
|
71
|
+
}
|
package/src/app.vue
ADDED
|
@@ -0,0 +1,313 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<bc-app :dark="dark" v-resize="onResize">
|
|
3
|
+
<bc-layout :sidebar-right="sidebarRight" :sidebar-left="sidebarLeft" :floating-sidebars="floatingSidebars" :floating-sidebars-blocker-blur="getConfig.floatingSidebarsBlockerBlur">
|
|
4
|
+
<template v-slot:header>
|
|
5
|
+
<bc-table-layout y-align="middle">
|
|
6
|
+
<bc-table-layout-row>
|
|
7
|
+
<bc-table-layout-cell>
|
|
8
|
+
<bc-heading :divider="false" :margin="['ml-1']" font-size="base">{{ getConfig.appName }}</bc-heading>
|
|
9
|
+
</bc-table-layout-cell>
|
|
10
|
+
<bc-table-layout-cell x-align="right">
|
|
11
|
+
<bc-icon :name="$icons[dark ? 'light' : 'dark']" :class="['cursor-pointer']" :title="getLang.setTheme(dark)" @click="toggleTheme" />
|
|
12
|
+
</bc-table-layout-cell>
|
|
13
|
+
</bc-table-layout-row>
|
|
14
|
+
</bc-table-layout>
|
|
15
|
+
</template>
|
|
16
|
+
<template v-slot:sidebar-left-controls>
|
|
17
|
+
<bc-table-layout v-if="sidebarLeft.expanded" :class="['cursor-pointer', 'categories', 'white-space-nowrap', 'transition-алл', 'transition-duration-500', 'opacity-70', 'hover:opacity-100']">
|
|
18
|
+
<bc-table-layout-row>
|
|
19
|
+
<bc-table-layout-cell :class="['white-space-nowrap']">
|
|
20
|
+
<bc-icon :title="getLang[item.category]" tag="router-link" :to="item.path" :name="$icons[item.icon]" v-for="(item, index) in sidebarLeftControls" :key="index" :class="['mr-2']" />
|
|
21
|
+
</bc-table-layout-cell>
|
|
22
|
+
</bc-table-layout-row>
|
|
23
|
+
</bc-table-layout>
|
|
24
|
+
</template>
|
|
25
|
+
<template v-slot:sidebar-left>
|
|
26
|
+
<logo />
|
|
27
|
+
<site-navigation />
|
|
28
|
+
</template>
|
|
29
|
+
<template v-slot:main>
|
|
30
|
+
<bc-grid v-if="siteWorkInProgress" :class="['mb-3', 'mx-1']">
|
|
31
|
+
<bc-grid-col :span="12">
|
|
32
|
+
<bc-alert v-model:visible="siteWorkInProgress" :icon="$icons.info" color="discovery" variant="solid">{{ getLang.siteWorkInProgress }}</bc-alert>
|
|
33
|
+
</bc-grid-col>
|
|
34
|
+
</bc-grid>
|
|
35
|
+
<page-title :page="page" />
|
|
36
|
+
<bc-grid>
|
|
37
|
+
<bc-grid-col :span="12">
|
|
38
|
+
<section-md set-meta-content :class="['px-1', 'page-description', 'mb-4']" />
|
|
39
|
+
<bc-reactive-style>
|
|
40
|
+
.page-description a,
|
|
41
|
+
.page-description code,
|
|
42
|
+
.ui-colors .section-md a,
|
|
43
|
+
.ui-colors .section-md code,
|
|
44
|
+
.color-swatches .section-md a,
|
|
45
|
+
.color-swatches .section-md code
|
|
46
|
+
{
|
|
47
|
+
font-weight: 600;
|
|
48
|
+
color: {{ getConfig.homePageGradient[dark ? 0 : 1] }};
|
|
49
|
+
text-decoration: none;
|
|
50
|
+
}
|
|
51
|
+
.page-description a:hover
|
|
52
|
+
{
|
|
53
|
+
text-decoration: underline;
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
.page-description code
|
|
57
|
+
{
|
|
58
|
+
background: rgba(0, 0, 0, .05);
|
|
59
|
+
padding: 0 2px;
|
|
60
|
+
display: inline-block;
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
.bc-app-theme-dark .page-description code
|
|
64
|
+
{
|
|
65
|
+
background: rgba(255, 255, 255, .1);
|
|
66
|
+
}
|
|
67
|
+
</bc-reactive-style>
|
|
68
|
+
</bc-grid-col>
|
|
69
|
+
</bc-grid>
|
|
70
|
+
<router-view />
|
|
71
|
+
<documentation v-if="page && page.documentation && $route.name !== 'PageBcCategoryPage'" :docs="page.documentation" :page-title="page.meta.pageTitle" />
|
|
72
|
+
<ui-category-page :category="$route.path.split('/')[1]" v-if="$route.name !== 'PageBcCategoryPage'" />
|
|
73
|
+
<page-data :page="page" :class="['mb-4']" v-if="$config.showPageData" />
|
|
74
|
+
</template>
|
|
75
|
+
<template v-slot:sidebar-right>
|
|
76
|
+
<page-anchors @toggle-sidebar-right="onToggleSidebarRight" :links="page.meta.links" v-if="page && page.meta && page.meta.links" />
|
|
77
|
+
<random-component />
|
|
78
|
+
</template>
|
|
79
|
+
<template v-slot:footer>
|
|
80
|
+
<page-console />
|
|
81
|
+
</template>
|
|
82
|
+
</bc-layout>
|
|
83
|
+
<bc-snackbar />
|
|
84
|
+
<bc-notification />
|
|
85
|
+
<bc-tooltip />
|
|
86
|
+
<bc-loading-overlay v-model:visible="loadingOverlay" />
|
|
87
|
+
<bc-context-menu />
|
|
88
|
+
<bc-svg-icon-sprite :color="dark ? '#fff' : '#000'" />
|
|
89
|
+
<bc-navigator-online />
|
|
90
|
+
</bc-app>
|
|
91
|
+
</template>
|
|
92
|
+
<script>
|
|
93
|
+
import computed from './mixins/computed.js'
|
|
94
|
+
import methods from '@/mixins/methods.js'
|
|
95
|
+
import PageTitle from './components/page-title/index.vue'
|
|
96
|
+
import Documentation from './components/documentation/index.vue'
|
|
97
|
+
import SiteNavigation from './components/site-navigation/index.vue'
|
|
98
|
+
import PageData from '@/components/page-data/index.vue'
|
|
99
|
+
import Logo from '@/components/logo/index.vue'
|
|
100
|
+
import PageAnchors from '@/components/page-anchors/index.vue'
|
|
101
|
+
|
|
102
|
+
import mitt from 'mitt'
|
|
103
|
+
const emitter = mitt()
|
|
104
|
+
|
|
105
|
+
import {
|
|
106
|
+
PageStore
|
|
107
|
+
} from './stores/page.js'
|
|
108
|
+
import UiCategoryPage from '@/components/ui-category-page/index.vue'
|
|
109
|
+
import RandomComponent from '@/components/random-component/index.vue'
|
|
110
|
+
import BcSvgIconSprite from '@/components/bc-svg-icon-sprite/index.vue'
|
|
111
|
+
import PageConsole from '@/components/page-console/index.vue'
|
|
112
|
+
|
|
113
|
+
export default {
|
|
114
|
+
name: 'App',
|
|
115
|
+
components: {
|
|
116
|
+
Logo,
|
|
117
|
+
PageData,
|
|
118
|
+
PageTitle,
|
|
119
|
+
PageAnchors,
|
|
120
|
+
PageConsole,
|
|
121
|
+
Documentation,
|
|
122
|
+
BcSvgIconSprite,
|
|
123
|
+
SiteNavigation,
|
|
124
|
+
UiCategoryPage,
|
|
125
|
+
RandomComponent
|
|
126
|
+
},
|
|
127
|
+
mixins: [
|
|
128
|
+
methods,
|
|
129
|
+
computed
|
|
130
|
+
],
|
|
131
|
+
data () {
|
|
132
|
+
return {
|
|
133
|
+
floatingSidebars: false,
|
|
134
|
+
loadingOverlay: false,
|
|
135
|
+
siteWorkInProgress: this.$config.siteWorkInProgress,
|
|
136
|
+
dark: this.$config.dark,
|
|
137
|
+
page: null,
|
|
138
|
+
sidebarLeftControls: [{
|
|
139
|
+
icon: 'home',
|
|
140
|
+
path: '/',
|
|
141
|
+
category: 'home'
|
|
142
|
+
}, {
|
|
143
|
+
icon: 'gettingStarted',
|
|
144
|
+
path: '/getting-started',
|
|
145
|
+
category: 'getting-started'
|
|
146
|
+
}, {
|
|
147
|
+
icon: 'content',
|
|
148
|
+
path: '/content',
|
|
149
|
+
category: 'content'
|
|
150
|
+
}, {
|
|
151
|
+
icon: 'ui',
|
|
152
|
+
path: '/ui',
|
|
153
|
+
category: 'ui'
|
|
154
|
+
}, {
|
|
155
|
+
icon: 'forms',
|
|
156
|
+
path: '/forms',
|
|
157
|
+
category: 'forms'
|
|
158
|
+
}, {
|
|
159
|
+
icon: 'directives',
|
|
160
|
+
path: '/directives', // @todo: /directives
|
|
161
|
+
category: 'directives'
|
|
162
|
+
}],
|
|
163
|
+
sidebarLeft: {
|
|
164
|
+
width: 260,
|
|
165
|
+
elevation: 'none',
|
|
166
|
+
iconOpen: 'menu-close',
|
|
167
|
+
iconClose: 'menu-open',
|
|
168
|
+
expanded: true,
|
|
169
|
+
zIndex: this.$config.defaultSidebarsZIndex,
|
|
170
|
+
overflow: 'hidden'
|
|
171
|
+
},
|
|
172
|
+
sidebarRight: {
|
|
173
|
+
width: 260,
|
|
174
|
+
elevation: 'none',
|
|
175
|
+
iconOpen: 'menu-open',
|
|
176
|
+
iconClose: 'menu-close',
|
|
177
|
+
expanded: false,
|
|
178
|
+
zIndex: this.$config.defaultSidebarsZIndex,
|
|
179
|
+
overflow: 'hidden'
|
|
180
|
+
}
|
|
181
|
+
}
|
|
182
|
+
},
|
|
183
|
+
watch: {
|
|
184
|
+
'$route.path' () {
|
|
185
|
+
this.scrollToTop()
|
|
186
|
+
this.$nextTick(() => {
|
|
187
|
+
this.onResize()
|
|
188
|
+
})
|
|
189
|
+
},
|
|
190
|
+
'sidebarLeft.expanded' () {
|
|
191
|
+
this.toggleSidebarsZIndexes('Left')
|
|
192
|
+
},
|
|
193
|
+
'sidebarRight.expanded' () {
|
|
194
|
+
this.toggleSidebarsZIndexes('Right')
|
|
195
|
+
},
|
|
196
|
+
dark () {
|
|
197
|
+
this.toggleHighlightJsCssTheme()
|
|
198
|
+
}
|
|
199
|
+
},
|
|
200
|
+
created () {
|
|
201
|
+
this.bind()
|
|
202
|
+
},
|
|
203
|
+
mounted () {
|
|
204
|
+
this.init()
|
|
205
|
+
},
|
|
206
|
+
methods: {
|
|
207
|
+
init () {
|
|
208
|
+
this.toggleHighlightJsCssTheme()
|
|
209
|
+
this.emulateVueRouterLinks()
|
|
210
|
+
this.onResize()
|
|
211
|
+
if (!this.getConfig.showPageData) {
|
|
212
|
+
this.awaitForElement('main').then(main => {
|
|
213
|
+
main.classList.add('mb-4')
|
|
214
|
+
})
|
|
215
|
+
}
|
|
216
|
+
},
|
|
217
|
+
awaitForElement (selector) {
|
|
218
|
+
return new Promise(resolve => {
|
|
219
|
+
if (document.querySelector(selector)) {
|
|
220
|
+
return resolve(document.querySelector(selector))
|
|
221
|
+
}
|
|
222
|
+
const observer = new MutationObserver(mutations => {
|
|
223
|
+
if (document.querySelector(selector)) {
|
|
224
|
+
observer.disconnect()
|
|
225
|
+
resolve(document.querySelector(selector))
|
|
226
|
+
}
|
|
227
|
+
})
|
|
228
|
+
observer.observe(document.body, {childList: true, subtree: true})
|
|
229
|
+
})
|
|
230
|
+
},
|
|
231
|
+
toggleSidebarsZIndexes (sidebar = 'Left') {
|
|
232
|
+
const config = this.getConfig
|
|
233
|
+
const body = this.body()
|
|
234
|
+
const toggledSidebar = this[`sidebar${sidebar === 'Left' ? 'Right' : 'Left'}`]
|
|
235
|
+
const overflowHidden = 'overflow-hidden'
|
|
236
|
+
if (this.floatingSidebars && this[`sidebar${sidebar}`].expanded) {
|
|
237
|
+
body.classList.add(overflowHidden)
|
|
238
|
+
toggledSidebar.zIndex = config.defaultFloatingSidebarsCollapsedZIndex
|
|
239
|
+
} else {
|
|
240
|
+
body.classList.remove(overflowHidden)
|
|
241
|
+
toggledSidebar.zIndex = config.defaultSidebarsZIndex
|
|
242
|
+
}
|
|
243
|
+
},
|
|
244
|
+
bind () {
|
|
245
|
+
PageStore().$subscribe((mutation, state) => {
|
|
246
|
+
this.page = PageStore().getPageData()
|
|
247
|
+
})
|
|
248
|
+
this.$emitter.on('*', (type, data) => {
|
|
249
|
+
const observedEvents = ['loading-overlay:show', 'loading-overlay:hide']
|
|
250
|
+
switch (type) {
|
|
251
|
+
case observedEvents[0]:
|
|
252
|
+
this.loadingOverlay = true
|
|
253
|
+
break
|
|
254
|
+
case observedEvents[1]:
|
|
255
|
+
this.loadingOverlay = false
|
|
256
|
+
break
|
|
257
|
+
case 'theme:toggle':
|
|
258
|
+
this.toggleTheme()
|
|
259
|
+
break
|
|
260
|
+
// default:
|
|
261
|
+
// console.log(`@${type}`, data)
|
|
262
|
+
}
|
|
263
|
+
if (observedEvents.includes(type)) {
|
|
264
|
+
this.log(`@${type}`, 'bc-loading-overlay', data || null)
|
|
265
|
+
}
|
|
266
|
+
})
|
|
267
|
+
},
|
|
268
|
+
onResize () {
|
|
269
|
+
const width = this.viewport().width
|
|
270
|
+
if (width < this.getConfig.mobileThreshold) {
|
|
271
|
+
this.sidebarLeft.expanded = false
|
|
272
|
+
this.sidebarRight.expanded = false
|
|
273
|
+
this.floatingSidebars = true
|
|
274
|
+
} else {
|
|
275
|
+
this.sidebarLeft.expanded = true
|
|
276
|
+
this.floatingSidebars = false
|
|
277
|
+
}
|
|
278
|
+
},
|
|
279
|
+
toggleTheme () {
|
|
280
|
+
this.dark = !this.dark
|
|
281
|
+
this.setLocalData(this.getLocalDataKeys.theme, this.dark)
|
|
282
|
+
},
|
|
283
|
+
onToggleSidebarRight ($event) {
|
|
284
|
+
// this.sidebarRight.expanded = $event
|
|
285
|
+
},
|
|
286
|
+
toggleHighlightJsCssTheme () {
|
|
287
|
+
const dark = this.dark
|
|
288
|
+
const config = this.getConfig.highlightJs
|
|
289
|
+
const stylesheetDark = config.stylesheetDark
|
|
290
|
+
const stylesheetLight = config.stylesheetLight
|
|
291
|
+
const attr = 'data-highlight-js'
|
|
292
|
+
const href = `https://cdnjs.cloudflare.com/ajax/libs/highlight.js/${config.version}/styles/${dark ? stylesheetDark : stylesheetLight}.min.css`
|
|
293
|
+
const stylesheetNode = document.querySelector(`link[${attr}]`)
|
|
294
|
+
const _setDataAttribute = node => {
|
|
295
|
+
node.setAttribute(attr, dark ? 'dark' : 'light')
|
|
296
|
+
}
|
|
297
|
+
const _setHrefAttribute = node => {
|
|
298
|
+
node.setAttribute('href', href)
|
|
299
|
+
}
|
|
300
|
+
if (!stylesheetNode) {
|
|
301
|
+
const css = document.createElement('link')
|
|
302
|
+
css.setAttribute('rel', 'stylesheet')
|
|
303
|
+
_setHrefAttribute(css)
|
|
304
|
+
_setDataAttribute(css)
|
|
305
|
+
document.querySelector('head').appendChild(css)
|
|
306
|
+
} else {
|
|
307
|
+
_setHrefAttribute(stylesheetNode)
|
|
308
|
+
_setDataAttribute(stylesheetNode)
|
|
309
|
+
}
|
|
310
|
+
}
|
|
311
|
+
}
|
|
312
|
+
}
|
|
313
|
+
</script>
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<bc-container :class="componentCssClasses">{{ baseCss }}</bc-container>
|
|
3
|
+
</template>
|
|
4
|
+
<script>
|
|
5
|
+
import methods from '../../mixins/methods'
|
|
6
|
+
|
|
7
|
+
export default {
|
|
8
|
+
name: 'BcRangeSlider',
|
|
9
|
+
mixins: [
|
|
10
|
+
methods
|
|
11
|
+
],
|
|
12
|
+
data () {
|
|
13
|
+
return {
|
|
14
|
+
baseCss: this.componentBaseCss('component-template')
|
|
15
|
+
}
|
|
16
|
+
},
|
|
17
|
+
computed: {
|
|
18
|
+
componentCssClasses () {
|
|
19
|
+
return [
|
|
20
|
+
this.baseCss
|
|
21
|
+
]
|
|
22
|
+
}
|
|
23
|
+
},
|
|
24
|
+
props: {
|
|
25
|
+
},
|
|
26
|
+
methods: {
|
|
27
|
+
}
|
|
28
|
+
}
|
|
29
|
+
</script>
|
|
30
|
+
<style>
|
|
31
|
+
|
|
32
|
+
</style>
|
|
@@ -0,0 +1,114 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<bc-container :class="componentCssClasses" v-if="visible">
|
|
3
|
+
<bc-table-layout y-align="middle">
|
|
4
|
+
<bc-table-layout-row>
|
|
5
|
+
<bc-table-layout-cell :class="[`${baseCss}-icon-cell`, padding]" v-if="icon" x-align="center">
|
|
6
|
+
<bc-icon :name="icon" :provider="iconProvider" />
|
|
7
|
+
</bc-table-layout-cell>
|
|
8
|
+
<bc-table-layout-cell :class="[padding]" x-align="left">
|
|
9
|
+
<bc-container :class="[!icon || !dismissible ? 'px-1' : null]">
|
|
10
|
+
<slot />
|
|
11
|
+
</bc-container>
|
|
12
|
+
</bc-table-layout-cell>
|
|
13
|
+
<bc-table-layout-cell :class="[`${baseCss}-icon-cell`, padding]" v-if="dismissible" x-align="center">
|
|
14
|
+
<bc-icon :name="dismissIcon" :provider="iconProvider" @click="dismiss" :class="['cursor-pointer']" />
|
|
15
|
+
</bc-table-layout-cell>
|
|
16
|
+
</bc-table-layout-row>
|
|
17
|
+
</bc-table-layout>
|
|
18
|
+
</bc-container>
|
|
19
|
+
</template>
|
|
20
|
+
<script>
|
|
21
|
+
import methods from '../../mixins/methods'
|
|
22
|
+
|
|
23
|
+
export default {
|
|
24
|
+
name: 'BcAlert',
|
|
25
|
+
mixins: [
|
|
26
|
+
methods
|
|
27
|
+
],
|
|
28
|
+
data () {
|
|
29
|
+
return {
|
|
30
|
+
baseCss: this.componentBaseCss('alert')
|
|
31
|
+
}
|
|
32
|
+
},
|
|
33
|
+
emits: [
|
|
34
|
+
'update:visible'
|
|
35
|
+
],
|
|
36
|
+
props: {
|
|
37
|
+
color: {
|
|
38
|
+
type: String,
|
|
39
|
+
default: 'primary'
|
|
40
|
+
},
|
|
41
|
+
dismissible: {
|
|
42
|
+
type: Boolean,
|
|
43
|
+
default: true
|
|
44
|
+
},
|
|
45
|
+
dismissIcon: {
|
|
46
|
+
type: String,
|
|
47
|
+
default: 'close-circle-outline'
|
|
48
|
+
},
|
|
49
|
+
elevation: {
|
|
50
|
+
type: String,
|
|
51
|
+
default: 'md'
|
|
52
|
+
},
|
|
53
|
+
icon: {
|
|
54
|
+
type: String
|
|
55
|
+
},
|
|
56
|
+
iconProvider: {
|
|
57
|
+
type: String,
|
|
58
|
+
default: 'mdi'
|
|
59
|
+
},
|
|
60
|
+
padding: {
|
|
61
|
+
type: Array,
|
|
62
|
+
default: ['p-1']
|
|
63
|
+
},
|
|
64
|
+
roundness: {
|
|
65
|
+
type: String,
|
|
66
|
+
default: 'sm'
|
|
67
|
+
},
|
|
68
|
+
size: {
|
|
69
|
+
type: String,
|
|
70
|
+
default: 'sm'
|
|
71
|
+
},
|
|
72
|
+
unselectable: {
|
|
73
|
+
type: Boolean,
|
|
74
|
+
default: true
|
|
75
|
+
},
|
|
76
|
+
variant: {
|
|
77
|
+
type: String,
|
|
78
|
+
default: 'outline'
|
|
79
|
+
},
|
|
80
|
+
visible: {
|
|
81
|
+
type: Boolean,
|
|
82
|
+
default: true
|
|
83
|
+
}
|
|
84
|
+
},
|
|
85
|
+
computed: {
|
|
86
|
+
componentCssClasses () {
|
|
87
|
+
return [
|
|
88
|
+
this.baseCss,
|
|
89
|
+
this.unselectable ? 'select-none' : null,
|
|
90
|
+
`text-${this.size}`,
|
|
91
|
+
`shadow-${this.elevation}`,
|
|
92
|
+
`border-round-${this.roundness}`,
|
|
93
|
+
`bg-${this.color}-${this.variant}`
|
|
94
|
+
]
|
|
95
|
+
}
|
|
96
|
+
},
|
|
97
|
+
methods: {
|
|
98
|
+
dismiss () {
|
|
99
|
+
this.$emit('update:visible', false)
|
|
100
|
+
}
|
|
101
|
+
}
|
|
102
|
+
}
|
|
103
|
+
</script>
|
|
104
|
+
<style>
|
|
105
|
+
.bc-alert .bc-alert-icon-cell
|
|
106
|
+
{
|
|
107
|
+
width: var(--icon-cell-width);
|
|
108
|
+
}
|
|
109
|
+
|
|
110
|
+
.bc-alert .bc-alert-icon-cell .bc-icon
|
|
111
|
+
{
|
|
112
|
+
font-size: inherit;
|
|
113
|
+
}
|
|
114
|
+
</style>
|