@vc-shell/framework 1.1.4 → 1.1.6
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/CHANGELOG.md +20 -0
- package/core/directives/loading/styles.css +1 -1
- package/core/plugins/modularity/README.md +347 -17
- package/core/plugins/modularity/loader.ts +248 -3
- package/dist/core/plugins/modularity/loader.d.ts +4 -0
- package/dist/core/plugins/modularity/loader.d.ts.map +1 -1
- package/dist/shared/components/common/popup/vc-popup-error.vue.d.ts +2 -2
- package/dist/shared/components/common/popup/vc-popup-error.vue.d.ts.map +1 -1
- package/dist/shared/components/common/popup/vc-popup-info.vue.d.ts +2 -2
- package/dist/shared/components/common/popup/vc-popup-info.vue.d.ts.map +1 -1
- package/dist/shared/components/common/popup/vc-popup-warning.vue.d.ts +2 -2
- package/dist/shared/components/common/popup/vc-popup-warning.vue.d.ts.map +1 -1
- package/dist/shared/components/dashboard-widget-card/dashboard-widget-card.vue.d.ts +3 -3
- package/dist/shared/components/dashboard-widget-card/dashboard-widget-card.vue.d.ts.map +1 -1
- package/dist/shared/components/draggable-dashboard/composables/useDashboardDragAndDrop.d.ts +4 -4
- package/dist/shared/components/generic-dropdown/generic-dropdown.vue.d.ts.map +1 -1
- package/dist/shared/components/notifications/components/notification-container/index.d.ts +6 -6
- package/dist/shared/components/notifications/components/notification-container/index.d.ts.map +1 -1
- package/dist/shared/components/settings-menu-item/settings-menu-item.vue.d.ts.map +1 -1
- package/dist/shared/modules/assets-manager/components/assets-manager/assets-manager.vue.d.ts +2 -2
- package/dist/shared/modules/dynamic/pages/dynamic-blade-form.vue.d.ts +2 -2
- package/dist/shared/modules/dynamic/pages/dynamic-blade-list.vue.d.ts +2 -2
- package/dist/shared/pages/InvitePage/components/invite/Invite.vue.d.ts +1 -1
- package/dist/shared/pages/InvitePage/components/invite/Invite.vue.d.ts.map +1 -1
- package/dist/shared/pages/ResetPasswordPage/components/reset-password/ResetPassword.vue.d.ts +1 -1
- package/dist/shared/pages/ResetPasswordPage/components/reset-password/ResetPassword.vue.d.ts.map +1 -1
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/dist/ui/components/atoms/vc-badge/vc-badge.vue.d.ts +2 -2
- package/dist/ui/components/atoms/vc-badge/vc-badge.vue.d.ts.map +1 -1
- package/dist/ui/components/atoms/vc-container/vc-container.vue.d.ts +2 -2
- package/dist/ui/components/atoms/vc-icon/composables/index.d.ts +3 -0
- package/dist/ui/components/atoms/vc-icon/composables/index.d.ts.map +1 -0
- package/dist/ui/components/atoms/vc-icon/composables/use-icon-type.d.ts +22 -0
- package/dist/ui/components/atoms/vc-icon/composables/use-icon-type.d.ts.map +1 -0
- package/dist/ui/components/atoms/vc-icon/composables/use-icon.d.ts +30 -0
- package/dist/ui/components/atoms/vc-icon/composables/use-icon.d.ts.map +1 -0
- package/dist/ui/components/atoms/vc-icon/index.d.ts +1 -0
- package/dist/ui/components/atoms/vc-icon/index.d.ts.map +1 -1
- package/dist/ui/components/atoms/vc-icon/types.d.ts +31 -0
- package/dist/ui/components/atoms/vc-icon/types.d.ts.map +1 -0
- package/dist/ui/components/atoms/vc-icon/vc-bootstrap-icon.vue.d.ts +18 -4
- package/dist/ui/components/atoms/vc-icon/vc-bootstrap-icon.vue.d.ts.map +1 -1
- package/dist/ui/components/atoms/vc-icon/vc-fontawesome-icon.vue.d.ts +15 -2
- package/dist/ui/components/atoms/vc-icon/vc-fontawesome-icon.vue.d.ts.map +1 -1
- package/dist/ui/components/atoms/vc-icon/vc-icon-examples.vue.d.ts.map +1 -1
- package/dist/ui/components/atoms/vc-icon/vc-icon-test.vue.d.ts.map +1 -1
- package/dist/ui/components/atoms/vc-icon/vc-icon.vue.d.ts +11 -6
- package/dist/ui/components/atoms/vc-icon/vc-icon.vue.d.ts.map +1 -1
- package/dist/ui/components/atoms/vc-icon/vc-lucide-icon.vue.d.ts +21 -4
- package/dist/ui/components/atoms/vc-icon/vc-lucide-icon.vue.d.ts.map +1 -1
- package/dist/ui/components/atoms/vc-icon/vc-material-icon.vue.d.ts +31 -5
- package/dist/ui/components/atoms/vc-icon/vc-material-icon.vue.d.ts.map +1 -1
- package/dist/ui/components/atoms/vc-icon/vc-svg-icon.vue.d.ts +33 -0
- package/dist/ui/components/atoms/vc-icon/vc-svg-icon.vue.d.ts.map +1 -0
- package/dist/ui/components/atoms/vc-label/vc-label.vue.d.ts +2 -2
- package/dist/ui/components/atoms/vc-label/vc-label.vue.d.ts.map +1 -1
- package/dist/ui/components/atoms/vc-progress/vc-progress.vue.d.ts +1 -1
- package/dist/ui/components/atoms/vc-progress/vc-progress.vue.d.ts.map +1 -1
- package/dist/ui/components/atoms/vc-tooltip/vc-tooltip.vue.d.ts +2 -2
- package/dist/ui/components/atoms/vc-tooltip/vc-tooltip.vue.d.ts.map +1 -1
- package/dist/ui/components/molecules/vc-checkbox/vc-checkbox.vue.d.ts +3 -3
- package/dist/ui/components/molecules/vc-checkbox/vc-checkbox.vue.d.ts.map +1 -1
- package/dist/ui/components/molecules/vc-editor/vc-editor.vue.d.ts +2 -2
- package/dist/ui/components/molecules/vc-file-upload/vc-file-upload.vue.d.ts +3 -3
- package/dist/ui/components/molecules/vc-file-upload/vc-file-upload.vue.d.ts.map +1 -1
- package/dist/ui/components/molecules/vc-input/vc-input.vue.d.ts +4 -4
- package/dist/ui/components/molecules/vc-input/vc-input.vue.d.ts.map +1 -1
- package/dist/ui/components/molecules/vc-input-currency/vc-input-currency.vue.d.ts +6 -34
- package/dist/ui/components/molecules/vc-input-currency/vc-input-currency.vue.d.ts.map +1 -1
- package/dist/ui/components/molecules/vc-input-dropdown/index.d.ts +4 -0
- package/dist/ui/components/molecules/vc-input-dropdown/index.d.ts.map +1 -0
- package/dist/ui/components/molecules/vc-input-dropdown/vc-input-dropdown.vue.d.ts +171 -0
- package/dist/ui/components/molecules/vc-input-dropdown/vc-input-dropdown.vue.d.ts.map +1 -0
- package/dist/ui/components/molecules/vc-multivalue/vc-multivalue.vue.d.ts +2 -2
- package/dist/ui/components/molecules/vc-multivalue/vc-multivalue.vue.d.ts.map +1 -1
- package/dist/ui/components/molecules/vc-pagination/vc-pagination.vue.d.ts +1 -1
- package/dist/ui/components/molecules/vc-pagination/vc-pagination.vue.d.ts.map +1 -1
- package/dist/ui/components/molecules/vc-rating/vc-rating.vue.d.ts +2 -2
- package/dist/ui/components/molecules/vc-rating/vc-rating.vue.d.ts.map +1 -1
- package/dist/ui/components/molecules/vc-select/vc-select.vue.d.ts +3 -3
- package/dist/ui/components/molecules/vc-select/vc-select.vue.d.ts.map +1 -1
- package/dist/ui/components/molecules/vc-textarea/vc-textarea.vue.d.ts +1 -1
- package/dist/ui/components/molecules/vc-textarea/vc-textarea.vue.d.ts.map +1 -1
- package/dist/ui/components/organisms/vc-app/_internal/vc-app-bar/_internal/AppBarWidgetItem.vue.d.ts +2 -2
- package/dist/ui/components/organisms/vc-app/_internal/vc-app-bar/_internal/AppBarWidgetItem.vue.d.ts.map +1 -1
- package/dist/ui/components/organisms/vc-app/_internal/vc-app-bar/_internal/MenuSidebar.vue.d.ts +5 -5
- package/dist/ui/components/organisms/vc-app/_internal/vc-app-bar/_internal/MenuSidebar.vue.d.ts.map +1 -1
- package/dist/ui/components/organisms/vc-app/_internal/vc-app-bar/vc-app-bar.vue.d.ts +3 -3
- package/dist/ui/components/organisms/vc-app/_internal/vc-app-bar/vc-app-bar.vue.d.ts.map +1 -1
- package/dist/ui/components/organisms/vc-app/_internal/vc-app-menu/_internal/vc-app-menu-item/vc-app-menu-item.vue.d.ts +1 -1
- package/dist/ui/components/organisms/vc-app/_internal/vc-app-menu/_internal/vc-app-menu-item/vc-app-menu-item.vue.d.ts.map +1 -1
- package/dist/ui/components/organisms/vc-app/vc-app.vue.d.ts +1 -1
- package/dist/ui/components/organisms/vc-app/vc-app.vue.d.ts.map +1 -1
- package/dist/ui/components/organisms/vc-blade/_internal/vc-blade-toolbar/_internal/vc-blade-toolbar-buttons/_internal/vc-blade-toolbar-button/props.d.ts +14 -0
- package/dist/ui/components/organisms/vc-blade/_internal/vc-blade-toolbar/_internal/vc-blade-toolbar-buttons/_internal/vc-blade-toolbar-button/props.d.ts.map +1 -0
- package/dist/ui/components/organisms/vc-blade/_internal/vc-blade-toolbar/_internal/vc-blade-toolbar-buttons/_internal/vc-blade-toolbar-button/vc-blade-toolbar-base-button.vue.d.ts +3 -14
- package/dist/ui/components/organisms/vc-blade/_internal/vc-blade-toolbar/_internal/vc-blade-toolbar-buttons/_internal/vc-blade-toolbar-button/vc-blade-toolbar-base-button.vue.d.ts.map +1 -1
- package/dist/ui/components/organisms/vc-blade/_internal/vc-blade-toolbar/_internal/vc-blade-toolbar-buttons/_internal/vc-blade-toolbar-button/vc-blade-toolbar-button.vue.d.ts +1 -1
- package/dist/ui/components/organisms/vc-blade/_internal/vc-blade-toolbar/_internal/vc-blade-toolbar-buttons/_internal/vc-blade-toolbar-button/vc-blade-toolbar-button.vue.d.ts.map +1 -1
- package/dist/ui/components/organisms/vc-blade/_internal/vc-blade-toolbar/_internal/vc-blade-toolbar-buttons/_internal/vc-blade-toolbar-button/vc-blade-toolbar-circle-button.vue.d.ts +2 -2
- package/dist/ui/components/organisms/vc-blade/_internal/vc-blade-toolbar/_internal/vc-blade-toolbar-buttons/_internal/vc-blade-toolbar-button/vc-blade-toolbar-circle-button.vue.d.ts.map +1 -1
- package/dist/ui/components/organisms/vc-blade/vc-blade.vue.d.ts +5 -5
- package/dist/ui/components/organisms/vc-blade/vc-blade.vue.d.ts.map +1 -1
- package/dist/ui/components/organisms/vc-gallery/_internal/vc-gallery-item/vc-gallery-item.vue.d.ts +2 -2
- package/dist/ui/components/organisms/vc-gallery/_internal/vc-gallery-preview/vc-gallery-preview.vue.d.ts +1 -1
- package/dist/ui/components/organisms/vc-gallery/_internal/vc-gallery-preview/vc-gallery-preview.vue.d.ts.map +1 -1
- package/dist/ui/components/organisms/vc-gallery/vc-gallery.vue.d.ts +3 -3
- package/dist/ui/components/organisms/vc-gallery/vc-gallery.vue.d.ts.map +1 -1
- package/dist/ui/components/organisms/vc-login-form/vc-login-form.vue.d.ts +1 -1
- package/dist/ui/components/organisms/vc-login-form/vc-login-form.vue.d.ts.map +1 -1
- package/dist/ui/components/organisms/vc-popup/vc-popup.vue.d.ts +4 -4
- package/dist/ui/components/organisms/vc-popup/vc-popup.vue.d.ts.map +1 -1
- package/dist/ui/components/organisms/vc-table/_internal/vc-table-cell/vc-table-cell.vue.d.ts +1 -1
- package/dist/ui/components/organisms/vc-table/_internal/vc-table-cell/vc-table-cell.vue.d.ts.map +1 -1
- package/dist/ui/components/organisms/vc-table/_internal/vc-table-column-switcher/vc-table-column-switcher.vue.d.ts +1 -1
- package/dist/ui/components/organisms/vc-table/_internal/vc-table-column-switcher/vc-table-column-switcher.vue.d.ts.map +1 -1
- package/dist/ui/components/organisms/vc-table/_internal/vc-table-counter/vc-table-counter.vue.d.ts +1 -1
- package/dist/ui/components/organisms/vc-table/_internal/vc-table-counter/vc-table-counter.vue.d.ts.map +1 -1
- package/dist/ui/components/organisms/vc-table/_internal/vc-table-desktop-view/_internal/vc-table-body/vc-table-body.vue.d.ts +1 -1
- package/dist/ui/components/organisms/vc-table/_internal/vc-table-desktop-view/_internal/vc-table-body/vc-table-body.vue.d.ts.map +1 -1
- package/dist/ui/components/organisms/vc-table/_internal/vc-table-desktop-view/_internal/vc-table-columns-header/vc-table-columns-header.vue.d.ts +1 -1
- package/dist/ui/components/organisms/vc-table/_internal/vc-table-desktop-view/_internal/vc-table-columns-header/vc-table-columns-header.vue.d.ts.map +1 -1
- package/dist/ui/components/organisms/vc-table/_internal/vc-table-desktop-view/_internal/vc-table-row/vc-table-row.vue.d.ts +1 -1
- package/dist/ui/components/organisms/vc-table/_internal/vc-table-desktop-view/_internal/vc-table-row/vc-table-row.vue.d.ts.map +1 -1
- package/dist/ui/components/organisms/vc-table/_internal/vc-table-desktop-view/vc-table-desktop-view.vue.d.ts +1 -1
- package/dist/ui/components/organisms/vc-table/_internal/vc-table-desktop-view/vc-table-desktop-view.vue.d.ts.map +1 -1
- package/dist/ui/components/organisms/vc-table/_internal/vc-table-mobile-view/vc-table-mobile-view.vue.d.ts +1 -1
- package/dist/ui/components/organisms/vc-table/_internal/vc-table-mobile-view/vc-table-mobile-view.vue.d.ts.map +1 -1
- package/dist/ui/components/organisms/vc-table/composables/useTableActions.d.ts +1 -1
- package/dist/ui/components/organisms/vc-table/composables/useTableActions.d.ts.map +1 -1
- package/dist/ui/components/organisms/vc-table/composables/useTableColumnReorder.d.ts +1 -1
- package/dist/ui/components/organisms/vc-table/composables/useTableColumnReorder.d.ts.map +1 -1
- package/dist/ui/components/organisms/vc-table/composables/useTableColumnResize.d.ts +1 -1
- package/dist/ui/components/organisms/vc-table/composables/useTableColumnResize.d.ts.map +1 -1
- package/dist/ui/components/organisms/vc-table/composables/useTableRowReorder.d.ts +1 -1
- package/dist/ui/components/organisms/vc-table/composables/useTableRowReorder.d.ts.map +1 -1
- package/dist/ui/components/organisms/vc-table/composables/useTableSelection.d.ts +1 -1
- package/dist/ui/components/organisms/vc-table/composables/useTableSelection.d.ts.map +1 -1
- package/dist/ui/components/organisms/vc-table/composables/useTableState.d.ts +1 -1
- package/dist/ui/components/organisms/vc-table/composables/useTableState.d.ts.map +1 -1
- package/dist/ui/components/organisms/vc-table/types.d.ts +36 -0
- package/dist/ui/components/organisms/vc-table/types.d.ts.map +1 -0
- package/dist/ui/components/organisms/vc-table/vc-table.vue.d.ts +2 -34
- package/dist/ui/components/organisms/vc-table/vc-table.vue.d.ts.map +1 -1
- package/package.json +4 -4
- package/shared/components/common/popup/vc-popup-error.vue +3 -3
- package/shared/components/common/popup/vc-popup-info.vue +3 -3
- package/shared/components/common/popup/vc-popup-warning.vue +3 -3
- package/shared/components/dashboard-widget-card/dashboard-widget-card.vue +4 -4
- package/shared/components/generic-dropdown/generic-dropdown.vue +1 -1
- package/shared/components/settings-menu-item/settings-menu-item.vue +1 -6
- package/shared/components/user-dropdown-button/_internal/user-info.vue +3 -3
- package/ui/components/atoms/vc-badge/vc-badge.vue +2 -2
- package/ui/components/atoms/vc-icon/README.md +198 -220
- package/ui/components/atoms/vc-icon/composables/index.ts +2 -0
- package/ui/components/atoms/vc-icon/composables/use-icon-type.ts +83 -0
- package/ui/components/atoms/vc-icon/composables/use-icon.ts +129 -0
- package/ui/components/atoms/vc-icon/index.ts +1 -0
- package/ui/components/atoms/vc-icon/types.ts +36 -0
- package/ui/components/atoms/vc-icon/vc-bootstrap-icon.vue +111 -10
- package/ui/components/atoms/vc-icon/vc-fontawesome-icon.vue +119 -17
- package/ui/components/atoms/vc-icon/vc-icon-examples.vue +485 -124
- package/ui/components/atoms/vc-icon/vc-icon-test.vue +399 -209
- package/ui/components/atoms/vc-icon/vc-icon.stories.ts +501 -55
- package/ui/components/atoms/vc-icon/vc-icon.vue +240 -155
- package/ui/components/atoms/vc-icon/vc-lucide-icon.vue +163 -33
- package/ui/components/atoms/vc-icon/vc-material-icon.vue +136 -30
- package/ui/components/atoms/vc-icon/vc-svg-icon.vue +168 -0
- package/ui/components/atoms/vc-label/vc-label.vue +3 -3
- package/ui/components/atoms/vc-tooltip/vc-tooltip.vue +3 -3
- package/ui/components/atoms/vc-widget/vc-widget.stories.ts +13 -0
- package/ui/components/molecules/vc-checkbox/vc-checkbox.vue +4 -4
- package/ui/components/molecules/vc-file-upload/vc-file-upload.vue +2 -2
- package/ui/components/molecules/vc-input-currency/vc-input-currency.stories.ts +1 -1
- package/ui/components/molecules/vc-input-currency/vc-input-currency.vue +36 -115
- package/ui/components/molecules/vc-input-dropdown/index.ts +4 -0
- package/ui/components/molecules/vc-input-dropdown/vc-input-dropdown.stories.ts +763 -0
- package/ui/components/molecules/vc-input-dropdown/vc-input-dropdown.vue +268 -0
- package/ui/components/molecules/vc-multivalue/vc-multivalue.vue +3 -3
- package/ui/components/molecules/vc-pagination/vc-pagination.vue +23 -14
- package/ui/components/molecules/vc-rating/vc-rating.vue +2 -2
- package/ui/components/molecules/vc-textarea/vc-textarea.vue +2 -2
- package/ui/components/organisms/vc-app/_internal/vc-app-bar/_internal/AppBarHeader.vue +2 -2
- package/ui/components/organisms/vc-app/_internal/vc-app-bar/_internal/AppBarWidgetItem.vue +3 -3
- package/ui/components/organisms/vc-app/_internal/vc-app-bar/_internal/MenuSidebar.vue +6 -6
- package/ui/components/organisms/vc-app/_internal/vc-app-bar/vc-app-bar.vue +6 -7
- package/ui/components/organisms/vc-app/vc-app.vue +2 -3
- package/ui/components/organisms/vc-blade/_internal/vc-blade-toolbar/_internal/vc-blade-toolbar-buttons/_internal/vc-blade-toolbar-button/props.ts +14 -0
- package/ui/components/organisms/vc-blade/_internal/vc-blade-toolbar/_internal/vc-blade-toolbar-buttons/_internal/vc-blade-toolbar-button/vc-blade-toolbar-base-button.vue +1 -12
- package/ui/components/organisms/vc-blade/_internal/vc-blade-toolbar/_internal/vc-blade-toolbar-buttons/_internal/vc-blade-toolbar-button/vc-blade-toolbar-circle-button.vue +1 -1
- package/ui/components/organisms/vc-blade/vc-blade.vue +5 -5
- package/ui/components/organisms/vc-login-form/vc-login-form.vue +2 -2
- package/ui/components/organisms/vc-popup/vc-popup.vue +4 -4
- package/ui/components/organisms/vc-table/_internal/vc-table-cell/vc-table-cell.vue +1 -1
- package/ui/components/organisms/vc-table/_internal/vc-table-column-switcher/vc-table-column-switcher.vue +1 -1
- package/ui/components/organisms/vc-table/_internal/vc-table-desktop-view/_internal/vc-table-body/vc-table-body.vue +1 -1
- package/ui/components/organisms/vc-table/_internal/vc-table-desktop-view/_internal/vc-table-columns-header/vc-table-columns-header.vue +1 -1
- package/ui/components/organisms/vc-table/_internal/vc-table-desktop-view/_internal/vc-table-row/vc-table-row.vue +1 -1
- package/ui/components/organisms/vc-table/_internal/vc-table-desktop-view/vc-table-desktop-view.vue +1 -1
- package/ui/components/organisms/vc-table/_internal/vc-table-mobile-view/vc-table-mobile-view.vue +1 -1
- package/ui/components/organisms/vc-table/composables/useTableActions.ts +1 -1
- package/ui/components/organisms/vc-table/composables/useTableColumnReorder.ts +1 -1
- package/ui/components/organisms/vc-table/composables/useTableColumnResize.ts +1 -1
- package/ui/components/organisms/vc-table/composables/useTableRowReorder.ts +1 -1
- package/ui/components/organisms/vc-table/composables/useTableSelection.ts +1 -1
- package/ui/components/organisms/vc-table/composables/useTableState.ts +1 -1
- package/ui/components/organisms/vc-table/types.ts +32 -0
- package/ui/components/organisms/vc-table/vc-table.vue +2 -30
- package/dist/apl-B2DGVGxc.js +0 -76
- package/dist/asciiarmor-2LVJmxlE.js +0 -34
- package/dist/asn1-jKiBa2Ya.js +0 -95
- package/dist/asterisk-DS281yxp.js +0 -271
- package/dist/brainfuck-C_p9pTT8.js +0 -34
- package/dist/clike-BUuHEmgZ.js +0 -620
- package/dist/clojure-CCKyeQKf.js +0 -800
- package/dist/cmake-CuaCgAKt.js +0 -28
- package/dist/cobol-BlTKFDRj.js +0 -72
- package/dist/coffeescript-BVCvwO8I.js +0 -179
- package/dist/commonlisp-D_kxz07b.js +0 -75
- package/dist/crystal-D309uH6_.js +0 -217
- package/dist/css-bIlmDBTK.js +0 -1560
- package/dist/cypher-BMq4Fwjl.js +0 -68
- package/dist/d-BZcgY6La.js +0 -127
- package/dist/diff-Cg9d_RX2.js +0 -18
- package/dist/dockerfile-DIy8NleC.js +0 -194
- package/dist/dtd-CtLokQ-U.js +0 -84
- package/dist/dylan-QYeExnWK.js +0 -234
- package/dist/ebnf-DUPDuY4r.js +0 -78
- package/dist/ecl-CiXN-g_D.js +0 -121
- package/dist/eiffel-yQhjl4T1.js +0 -110
- package/dist/elm-CNT9vbN0.js +0 -108
- package/dist/erlang-CFOYdy9e.js +0 -487
- package/dist/factor-DDOC7X6P.js +0 -65
- package/dist/fcl-CPC2WYrI.js +0 -103
- package/dist/forth-BmxRyE9S.js +0 -60
- package/dist/fortran-9bvPyrOW.js +0 -442
- package/dist/framework.js +0 -288
- package/dist/gas-BdfkXJT_.js +0 -183
- package/dist/gherkin-CJuwpceU.js +0 -34
- package/dist/groovy-DZeT_VM-.js +0 -146
- package/dist/haskell-Bvt3Qq1t.js +0 -375
- package/dist/haxe-70NVW1pR.js +0 -359
- package/dist/http-D9LttvKF.js +0 -44
- package/dist/idl-B6TRFYjl.js +0 -947
- package/dist/index-BBYKbiRX.js +0 -93
- package/dist/index-BDm0tcWn.js +0 -145680
- package/dist/index-BDqUaIyQ.js +0 -156
- package/dist/index-BdflTsg6.js +0 -308
- package/dist/index-BpBTtmQ6.js +0 -288
- package/dist/index-Br0y2YMn.js +0 -58
- package/dist/index-CIcET-ZI.js +0 -71
- package/dist/index-CYAMpxnu.js +0 -341
- package/dist/index-Cf2H7YZ1.js +0 -98
- package/dist/index-Ck055pN8.js +0 -134
- package/dist/index-D-fPN3yf.js +0 -75
- package/dist/index-DJOis7Nc.js +0 -299
- package/dist/index-DKtQMsy4.js +0 -538
- package/dist/index-DWTsz5bC.js +0 -611
- package/dist/index-DuY7BIGm.js +0 -265
- package/dist/index-o6aSdNED.js +0 -137
- package/dist/index-wfv8ehcx.js +0 -249
- package/dist/index.css +0 -9
- package/dist/javascript-WMWNx-Vj.js +0 -690
- package/dist/jinja2-DnB6dQmV.js +0 -154
- package/dist/julia-DpvXAuO6.js +0 -241
- package/dist/livescript-CanGTf8u.js +0 -272
- package/dist/lua-XplVlWi_.js +0 -217
- package/dist/mathematica-jaRHnSxC.js +0 -35
- package/dist/mbox-BctzC1hL.js +0 -76
- package/dist/mirc-CFBPAOaF.js +0 -72
- package/dist/mllike-BSnXJBGA.js +0 -272
- package/dist/modelica-vUgVs--1.js +0 -93
- package/dist/mscgen-Cpl0NYLN.js +0 -104
- package/dist/mumps-CQoS1kWX.js +0 -25
- package/dist/nginx-zDPm3Z74.js +0 -89
- package/dist/nsis-fePjrhq7.js +0 -62
- package/dist/ntriples-CsNjv2QF.js +0 -79
- package/dist/octave-C8PmmSRH.js +0 -143
- package/dist/oz-Ce8aN8oE.js +0 -151
- package/dist/pascal-De0D6mP7.js +0 -77
- package/dist/perl-B4bSCe1C.js +0 -915
- package/dist/pig-D24Z8EXi.js +0 -54
- package/dist/powershell-DkYVfTzP.js +0 -249
- package/dist/properties-Dn9wna3M.js +0 -26
- package/dist/protobuf-BPIjwpzm.js +0 -49
- package/dist/pug-BqUR2bBq.js +0 -248
- package/dist/puppet-nyd4dhjf.js +0 -45
- package/dist/python-B5QdSKoL.js +0 -313
- package/dist/q-DXjKs-tC.js +0 -83
- package/dist/r-LKEuhEGI.js +0 -104
- package/dist/rpm-IznJm2Xc.js +0 -57
- package/dist/ruby-CcYfvIk6.js +0 -228
- package/dist/sas-7E8yHoCW.js +0 -105
- package/dist/scheme-DjibxsNh.js +0 -124
- package/dist/shell-C0C2sNA_.js +0 -182
- package/dist/sieve-Bwz7vjP5.js +0 -72
- package/dist/simple-mode-B0dvCdAA.js +0 -89
- package/dist/smalltalk-Bhddl2pB.js +0 -48
- package/dist/solr-BNlsLglM.js +0 -41
- package/dist/sparql-FarWu_Gb.js +0 -197
- package/dist/spreadsheet-C-cy4P5N.js +0 -49
- package/dist/sql-mMre1Bo3.js +0 -282
- package/dist/stex-92raWT1r.js +0 -129
- package/dist/stylus-CAdqWld3.js +0 -250
- package/dist/swift-DSxqR9R6.js +0 -230
- package/dist/tcl-xfoLljhY.js +0 -81
- package/dist/textile-D1AWE-pc.js +0 -295
- package/dist/tiddlywiki-5wqsXtSk.js +0 -155
- package/dist/tiki-__Kn3CeS.js +0 -181
- package/dist/toml-BHiuTcfn.js +0 -49
- package/dist/troff-D2UO-fKf.js +0 -35
- package/dist/ttcn-Bsa4sfRm.js +0 -123
- package/dist/ttcn-cfg-Bac_acMi.js +0 -88
- package/dist/turtle-xwJUxoPV.js +0 -80
- package/dist/vb-c2kQGd6-.js +0 -74
- package/dist/vbscript-Dz1TtKsy.js +0 -324
- package/dist/velocity-DJd0pTTC.js +0 -96
- package/dist/verilog-C4VGD9n1.js +0 -263
- package/dist/vhdl-T9HkrbI2.js +0 -106
- package/dist/webidl-CjfDENEo.js +0 -155
- package/dist/xquery-BUQdORAS.js +0 -422
- package/dist/yacas-C0absKBh.js +0 -73
- package/dist/z80-C8rPtw-0.js +0 -61
|
@@ -0,0 +1,83 @@
|
|
|
1
|
+
import { computed } from "vue";
|
|
2
|
+
import type { Component } from "vue";
|
|
3
|
+
import type { IconType } from "../types";
|
|
4
|
+
|
|
5
|
+
interface UseIconTypeOptions {
|
|
6
|
+
/**
|
|
7
|
+
* Icon (string or component)
|
|
8
|
+
*/
|
|
9
|
+
icon: string | Component;
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
/**
|
|
13
|
+
* Composable for determining the icon type
|
|
14
|
+
*/
|
|
15
|
+
export function useIconType(options: UseIconTypeOptions) {
|
|
16
|
+
const { icon } = options;
|
|
17
|
+
|
|
18
|
+
// Determining the icon type
|
|
19
|
+
const iconType = computed((): IconType => {
|
|
20
|
+
if (typeof icon !== "string") {
|
|
21
|
+
return "custom";
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
// Determining by prefixes
|
|
25
|
+
if (icon.startsWith("fa-") || icon.includes("fa-")) {
|
|
26
|
+
return "fontawesome";
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
if (icon.startsWith("bi-")) {
|
|
30
|
+
return "bootstrap";
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
if (icon.startsWith("lucide-")) {
|
|
34
|
+
return "lucide";
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
if (icon.startsWith("material-")) {
|
|
38
|
+
return "material";
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
// For backward compatibility with Lucide, having the Icon suffix
|
|
42
|
+
if (icon.endsWith("Icon")) {
|
|
43
|
+
return "lucide";
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
// For backward compatibility with Material Icons without a prefix
|
|
47
|
+
return "material";
|
|
48
|
+
});
|
|
49
|
+
|
|
50
|
+
// Normalize the icon name (remove prefixes)
|
|
51
|
+
const normalizedIconName = computed(() => {
|
|
52
|
+
if (typeof icon !== "string") {
|
|
53
|
+
return icon;
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
if (iconType.value === "material" && icon.startsWith("material-")) {
|
|
57
|
+
return icon.replace(/^material-/, "");
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
if (iconType.value === "lucide" && icon.startsWith("lucide-")) {
|
|
61
|
+
const baseName = icon.replace(/^lucide-/, "");
|
|
62
|
+
// In Lucide, you need to convert the name to PascalCase and add the Icon suffix
|
|
63
|
+
const pascalCase = baseName
|
|
64
|
+
.split("-")
|
|
65
|
+
.map((part) => part.charAt(0).toUpperCase() + part.slice(1))
|
|
66
|
+
.join("");
|
|
67
|
+
|
|
68
|
+
return pascalCase.endsWith("Icon") ? pascalCase : `${pascalCase}Icon`;
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
return icon;
|
|
72
|
+
});
|
|
73
|
+
|
|
74
|
+
return {
|
|
75
|
+
iconType,
|
|
76
|
+
normalizedIconName,
|
|
77
|
+
isMaterialIcon: computed(() => iconType.value === "material"),
|
|
78
|
+
isBootstrapIcon: computed(() => iconType.value === "bootstrap"),
|
|
79
|
+
isLucideIcon: computed(() => iconType.value === "lucide"),
|
|
80
|
+
isFontAwesomeIcon: computed(() => iconType.value === "fontawesome"),
|
|
81
|
+
isCustomIcon: computed(() => iconType.value === "custom"),
|
|
82
|
+
};
|
|
83
|
+
}
|
|
@@ -0,0 +1,129 @@
|
|
|
1
|
+
import { computed, unref } from "vue";
|
|
2
|
+
import type { IconSize, IconType, IconVariant } from "../types";
|
|
3
|
+
import type { MaybeRef } from "@vueuse/core";
|
|
4
|
+
|
|
5
|
+
interface UseIconOptions {
|
|
6
|
+
/**
|
|
7
|
+
* Icon type
|
|
8
|
+
*/
|
|
9
|
+
type: MaybeRef<IconType>;
|
|
10
|
+
|
|
11
|
+
/**
|
|
12
|
+
* Icon size
|
|
13
|
+
*/
|
|
14
|
+
size?: MaybeRef<IconSize>;
|
|
15
|
+
|
|
16
|
+
/**
|
|
17
|
+
* Icon color variant
|
|
18
|
+
*/
|
|
19
|
+
variant?: MaybeRef<IconVariant>;
|
|
20
|
+
|
|
21
|
+
/**
|
|
22
|
+
* Custom size in pixels
|
|
23
|
+
*/
|
|
24
|
+
customSize?: MaybeRef<number | undefined>;
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
// Standard scaling factors for different icon types
|
|
28
|
+
const DEFAULT_SCALE_FACTORS: Record<IconType, number> = {
|
|
29
|
+
fontawesome: 1, // base size (as a reference)
|
|
30
|
+
material: 1.3, // material icons are slightly larger
|
|
31
|
+
bootstrap: 0.95, // bootstrap icons are slightly smaller
|
|
32
|
+
lucide: 1, // lucide (svg) icons are noticeably smaller
|
|
33
|
+
custom: 1, // custom components - default without scaling
|
|
34
|
+
svg: 1, // svg icons - default without scaling
|
|
35
|
+
};
|
|
36
|
+
|
|
37
|
+
/**
|
|
38
|
+
* Composable for working with icons
|
|
39
|
+
*/
|
|
40
|
+
export function useIcon(options: UseIconOptions) {
|
|
41
|
+
const { type: iconType, size = "m", variant, customSize } = options;
|
|
42
|
+
|
|
43
|
+
// Calculate the scaling factor for the icon type
|
|
44
|
+
const scaleFactor = computed(() => {
|
|
45
|
+
const type = unref(iconType);
|
|
46
|
+
return DEFAULT_SCALE_FACTORS[type] || 1;
|
|
47
|
+
});
|
|
48
|
+
|
|
49
|
+
// Calculate the styles for the icon with the scaling factor
|
|
50
|
+
const iconStyle = computed(() => {
|
|
51
|
+
const customSizeValue = unref(customSize);
|
|
52
|
+
const type = unref(iconType);
|
|
53
|
+
|
|
54
|
+
if (customSizeValue !== undefined) {
|
|
55
|
+
const scaledSize = customSizeValue * scaleFactor.value;
|
|
56
|
+
|
|
57
|
+
// Different styles for different icon types
|
|
58
|
+
if (type === "fontawesome" || type === "bootstrap") {
|
|
59
|
+
// Using font-size directly for font-based icons with high priority
|
|
60
|
+
return { fontSize: `${scaledSize}px` };
|
|
61
|
+
} else if (type === "material") {
|
|
62
|
+
// Material icons may need additional styling
|
|
63
|
+
return {
|
|
64
|
+
fontSize: `${scaledSize}px`,
|
|
65
|
+
transform: `scale(${scaleFactor.value})`,
|
|
66
|
+
transformOrigin: "center center",
|
|
67
|
+
};
|
|
68
|
+
} else if (type === "lucide" || type === "svg") {
|
|
69
|
+
// SVG-based icons need width and height
|
|
70
|
+
return {
|
|
71
|
+
width: `${scaledSize}px`,
|
|
72
|
+
height: `${scaledSize}px`,
|
|
73
|
+
};
|
|
74
|
+
} else if (type === "custom") {
|
|
75
|
+
// Default for custom icons
|
|
76
|
+
return {
|
|
77
|
+
fontSize: `${scaledSize}px`,
|
|
78
|
+
width: "auto",
|
|
79
|
+
height: "auto",
|
|
80
|
+
};
|
|
81
|
+
} else {
|
|
82
|
+
// Fallback for unknown types
|
|
83
|
+
return {
|
|
84
|
+
fontSize: `${scaledSize}px`,
|
|
85
|
+
};
|
|
86
|
+
}
|
|
87
|
+
}
|
|
88
|
+
|
|
89
|
+
// Otherwise - base styles
|
|
90
|
+
const styles: Record<string, string> = {};
|
|
91
|
+
|
|
92
|
+
// For SVG and Lucide icons, we need width and height
|
|
93
|
+
if (type === "svg" || type === "lucide") {
|
|
94
|
+
styles.width = "1em";
|
|
95
|
+
styles.height = "1em";
|
|
96
|
+
}
|
|
97
|
+
|
|
98
|
+
// For Material icons, we need scaling through transform
|
|
99
|
+
if (type === "material") {
|
|
100
|
+
styles.transform = `scale(${scaleFactor.value})`;
|
|
101
|
+
styles.transformOrigin = "center center";
|
|
102
|
+
}
|
|
103
|
+
|
|
104
|
+
return styles;
|
|
105
|
+
});
|
|
106
|
+
|
|
107
|
+
// Calculate the classes for the icon
|
|
108
|
+
const iconClass = computed(() => {
|
|
109
|
+
const sizeValue = unref(size);
|
|
110
|
+
const variantValue = unref(variant);
|
|
111
|
+
|
|
112
|
+
const classes = ["vc-icon", `vc-icon_${sizeValue}`];
|
|
113
|
+
|
|
114
|
+
if (variantValue) {
|
|
115
|
+
classes.push(`vc-icon_${variantValue}`);
|
|
116
|
+
}
|
|
117
|
+
|
|
118
|
+
// Add a class to determine the icon type, so that icons can be styled by type
|
|
119
|
+
classes.push(`vc-icon--${unref(iconType)}`);
|
|
120
|
+
|
|
121
|
+
return classes;
|
|
122
|
+
});
|
|
123
|
+
|
|
124
|
+
return {
|
|
125
|
+
iconStyle,
|
|
126
|
+
iconClass,
|
|
127
|
+
scaleFactor,
|
|
128
|
+
};
|
|
129
|
+
}
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Icon types supported by the component
|
|
3
|
+
*/
|
|
4
|
+
export type IconType = "fontawesome" | "material" | "bootstrap" | "lucide" | "custom" | "svg";
|
|
5
|
+
|
|
6
|
+
/**
|
|
7
|
+
* Icon sizes
|
|
8
|
+
*/
|
|
9
|
+
export type IconSize = "xs" | "s" | "m" | "l" | "xl" | "xxl" | "xxxl";
|
|
10
|
+
|
|
11
|
+
/**
|
|
12
|
+
* Icon color variants
|
|
13
|
+
*/
|
|
14
|
+
export type IconVariant = "warning" | "danger" | "success";
|
|
15
|
+
|
|
16
|
+
export interface IconProps {
|
|
17
|
+
/**
|
|
18
|
+
* Icon to display
|
|
19
|
+
*/
|
|
20
|
+
icon: string;
|
|
21
|
+
|
|
22
|
+
/**
|
|
23
|
+
* Icon size
|
|
24
|
+
*/
|
|
25
|
+
size?: IconSize;
|
|
26
|
+
|
|
27
|
+
/**
|
|
28
|
+
* Icon color variant
|
|
29
|
+
*/
|
|
30
|
+
variant?: IconVariant;
|
|
31
|
+
|
|
32
|
+
/**
|
|
33
|
+
* Custom size in pixels
|
|
34
|
+
*/
|
|
35
|
+
customSize?: number;
|
|
36
|
+
}
|
|
@@ -1,28 +1,129 @@
|
|
|
1
1
|
<template>
|
|
2
|
-
<i
|
|
2
|
+
<i
|
|
3
|
+
:class="[
|
|
4
|
+
'vc-bootstrap-icon',
|
|
5
|
+
!hasCustomSize && `vc-bootstrap-icon--${size}`,
|
|
6
|
+
iconClass,
|
|
7
|
+
variant ? `vc-bootstrap-icon--${variant}` : '',
|
|
8
|
+
]"
|
|
9
|
+
:style="mergedStyle"
|
|
10
|
+
aria-hidden="true"
|
|
11
|
+
></i>
|
|
3
12
|
</template>
|
|
4
13
|
|
|
5
14
|
<script lang="ts" setup>
|
|
6
15
|
import { computed } from "vue";
|
|
16
|
+
import type { IconSize, IconVariant } from "./types";
|
|
17
|
+
import { useIcon } from "./composables";
|
|
7
18
|
|
|
8
|
-
|
|
19
|
+
interface Props {
|
|
20
|
+
/**
|
|
21
|
+
* Bootstrap icon name (e.g. "bi-house" or "house")
|
|
22
|
+
*/
|
|
9
23
|
icon: string;
|
|
10
|
-
|
|
11
|
-
|
|
24
|
+
|
|
25
|
+
/**
|
|
26
|
+
* Icon size
|
|
27
|
+
*/
|
|
28
|
+
size?: IconSize;
|
|
29
|
+
|
|
30
|
+
/**
|
|
31
|
+
* Icon color variant
|
|
32
|
+
*/
|
|
33
|
+
variant?: IconVariant;
|
|
34
|
+
|
|
35
|
+
/**
|
|
36
|
+
* Custom size in pixels
|
|
37
|
+
*/
|
|
38
|
+
customSize?: number;
|
|
12
39
|
}
|
|
13
40
|
|
|
14
41
|
const props = withDefaults(defineProps<Props>(), {
|
|
15
42
|
size: "m",
|
|
16
43
|
});
|
|
17
44
|
|
|
18
|
-
//
|
|
19
|
-
const
|
|
20
|
-
|
|
21
|
-
|
|
45
|
+
// Check if using custom size to conditionally apply CSS class
|
|
46
|
+
const hasCustomSize = computed(() => typeof props.customSize === "number" && props.customSize > 0);
|
|
47
|
+
|
|
48
|
+
// Use the shared icon composable for consistent scaling
|
|
49
|
+
const { iconStyle } = useIcon({
|
|
50
|
+
type: "bootstrap",
|
|
51
|
+
size: props.size,
|
|
52
|
+
variant: props.variant,
|
|
53
|
+
customSize: props.customSize,
|
|
22
54
|
});
|
|
23
55
|
|
|
24
|
-
//
|
|
56
|
+
// Create the merged style with !important to override any CSS classes
|
|
57
|
+
const mergedStyle = computed(() => {
|
|
58
|
+
const styles = { ...iconStyle.value };
|
|
59
|
+
|
|
60
|
+
// If using custom size, make sure fontSize is applied with !important
|
|
61
|
+
if (hasCustomSize.value && styles.fontSize) {
|
|
62
|
+
styles.fontSize = `${styles.fontSize.replace("px", "")}px !important`;
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
return styles;
|
|
66
|
+
});
|
|
67
|
+
|
|
68
|
+
// Compute proper Bootstrap icon class
|
|
25
69
|
const iconClass = computed(() => {
|
|
26
|
-
|
|
70
|
+
if (!props.icon) return "";
|
|
71
|
+
|
|
72
|
+
// If already includes the bi- prefix, use as is
|
|
73
|
+
if (props.icon.startsWith("bi-")) {
|
|
74
|
+
return props.icon;
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
// Otherwise, add the bi- prefix
|
|
78
|
+
return `bi-${props.icon}`;
|
|
27
79
|
});
|
|
28
80
|
</script>
|
|
81
|
+
|
|
82
|
+
<style lang="scss">
|
|
83
|
+
.vc-bootstrap-icon {
|
|
84
|
+
display: inline-flex;
|
|
85
|
+
align-items: center;
|
|
86
|
+
justify-content: center;
|
|
87
|
+
font-size: inherit;
|
|
88
|
+
|
|
89
|
+
&--xs {
|
|
90
|
+
font-size: var(--icon-size-xs);
|
|
91
|
+
}
|
|
92
|
+
|
|
93
|
+
&--s {
|
|
94
|
+
font-size: var(--icon-size-s);
|
|
95
|
+
}
|
|
96
|
+
|
|
97
|
+
&--m {
|
|
98
|
+
font-size: var(--icon-size-m);
|
|
99
|
+
}
|
|
100
|
+
|
|
101
|
+
&--l {
|
|
102
|
+
font-size: var(--icon-size-l);
|
|
103
|
+
}
|
|
104
|
+
|
|
105
|
+
&--xl {
|
|
106
|
+
font-size: var(--icon-size-xl);
|
|
107
|
+
}
|
|
108
|
+
|
|
109
|
+
&--xxl {
|
|
110
|
+
font-size: var(--icon-size-xxl);
|
|
111
|
+
}
|
|
112
|
+
|
|
113
|
+
&--xxxl {
|
|
114
|
+
font-size: var(--icon-size-xxxl);
|
|
115
|
+
}
|
|
116
|
+
|
|
117
|
+
&--warning {
|
|
118
|
+
color: var(--icon-color-warning);
|
|
119
|
+
}
|
|
120
|
+
|
|
121
|
+
&--danger {
|
|
122
|
+
color: var(--icon-color-danger);
|
|
123
|
+
}
|
|
124
|
+
|
|
125
|
+
&--success {
|
|
126
|
+
color: var(--icon-color-success);
|
|
127
|
+
}
|
|
128
|
+
}
|
|
129
|
+
</style>
|
|
@@ -1,41 +1,143 @@
|
|
|
1
1
|
<template>
|
|
2
|
-
<i
|
|
2
|
+
<i
|
|
3
|
+
:class="[
|
|
4
|
+
'vc-fa-icon',
|
|
5
|
+
!hasCustomSize && `vc-fa-icon--${size}`,
|
|
6
|
+
iconClasses,
|
|
7
|
+
variant ? `vc-fa-icon--${variant}` : '',
|
|
8
|
+
]"
|
|
9
|
+
:style="mergedStyle"
|
|
10
|
+
aria-hidden="true"
|
|
11
|
+
></i>
|
|
3
12
|
</template>
|
|
4
13
|
|
|
5
14
|
<script lang="ts" setup>
|
|
6
15
|
import { computed } from "vue";
|
|
7
|
-
import type { IconSize, IconVariant } from "./
|
|
16
|
+
import type { IconSize, IconVariant } from "./types";
|
|
17
|
+
import { useIcon } from "./composables";
|
|
8
18
|
|
|
9
|
-
|
|
19
|
+
interface Props {
|
|
20
|
+
/**
|
|
21
|
+
* Font Awesome icon class name (e.g. "fas fa-user" or "fa-user")
|
|
22
|
+
*/
|
|
10
23
|
icon: string;
|
|
24
|
+
|
|
25
|
+
/**
|
|
26
|
+
* Icon size
|
|
27
|
+
*/
|
|
11
28
|
size?: IconSize;
|
|
29
|
+
|
|
30
|
+
/**
|
|
31
|
+
* Icon color variant
|
|
32
|
+
*/
|
|
12
33
|
variant?: IconVariant;
|
|
34
|
+
|
|
35
|
+
/**
|
|
36
|
+
* Custom size in pixels
|
|
37
|
+
*/
|
|
38
|
+
customSize?: number;
|
|
13
39
|
}
|
|
14
40
|
|
|
15
41
|
const props = withDefaults(defineProps<Props>(), {
|
|
16
42
|
size: "m",
|
|
17
43
|
});
|
|
18
44
|
|
|
19
|
-
//
|
|
20
|
-
const
|
|
21
|
-
|
|
45
|
+
// Check if using custom size to conditionally apply CSS class
|
|
46
|
+
const hasCustomSize = computed(() => typeof props.customSize === "number" && props.customSize > 0);
|
|
47
|
+
|
|
48
|
+
// Use the shared icon composable for consistent scaling
|
|
49
|
+
const { iconStyle } = useIcon({
|
|
50
|
+
type: "fontawesome",
|
|
51
|
+
size: props.size,
|
|
52
|
+
variant: props.variant,
|
|
53
|
+
customSize: props.customSize,
|
|
54
|
+
});
|
|
55
|
+
|
|
56
|
+
// Create the merged style with !important to override any CSS classes
|
|
57
|
+
const mergedStyle = computed(() => {
|
|
58
|
+
const styles = { ...iconStyle.value };
|
|
59
|
+
|
|
60
|
+
// If using custom size, make sure fontSize is applied with !important
|
|
61
|
+
if (hasCustomSize.value && styles.fontSize) {
|
|
62
|
+
styles.fontSize = `${styles.fontSize.replace("px", "")}px !important`;
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
return styles;
|
|
66
|
+
});
|
|
22
67
|
|
|
23
|
-
|
|
68
|
+
// Compute the FontAwesome class from the icon string
|
|
69
|
+
const iconClasses = computed(() => {
|
|
70
|
+
// If icon already has a style prefix (fas, far, fal, fab), use it as is
|
|
24
71
|
if (
|
|
25
|
-
props.icon.startsWith("
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
!props.icon.startsWith("fad ")
|
|
72
|
+
props.icon.startsWith("fas ") ||
|
|
73
|
+
props.icon.startsWith("far ") ||
|
|
74
|
+
props.icon.startsWith("fal ") ||
|
|
75
|
+
props.icon.startsWith("fab ") ||
|
|
76
|
+
props.icon.startsWith("fad ")
|
|
31
77
|
) {
|
|
78
|
+
return props.icon;
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
// If icon starts with fa-, add the default style prefix
|
|
82
|
+
if (props.icon.startsWith("fa-")) {
|
|
32
83
|
return `fas ${props.icon}`;
|
|
33
84
|
}
|
|
34
85
|
|
|
35
|
-
|
|
36
|
-
|
|
86
|
+
// If icon contains fa- but doesn't start with a style prefix, assume the style prefix is included
|
|
87
|
+
if (props.icon.includes("fa-")) {
|
|
88
|
+
return props.icon;
|
|
89
|
+
}
|
|
37
90
|
|
|
38
|
-
|
|
39
|
-
return
|
|
91
|
+
// Otherwise, assume it's a bare icon name and add both the style prefix and fa- prefix
|
|
92
|
+
return `fas fa-${props.icon}`;
|
|
40
93
|
});
|
|
41
94
|
</script>
|
|
95
|
+
|
|
96
|
+
<style lang="scss">
|
|
97
|
+
.vc-fa-icon {
|
|
98
|
+
display: inline-flex;
|
|
99
|
+
align-items: center;
|
|
100
|
+
justify-content: center;
|
|
101
|
+
font-size: inherit;
|
|
102
|
+
|
|
103
|
+
&--xs {
|
|
104
|
+
font-size: var(--icon-size-xs);
|
|
105
|
+
}
|
|
106
|
+
|
|
107
|
+
&--s {
|
|
108
|
+
font-size: var(--icon-size-s);
|
|
109
|
+
}
|
|
110
|
+
|
|
111
|
+
&--m {
|
|
112
|
+
font-size: var(--icon-size-m);
|
|
113
|
+
}
|
|
114
|
+
|
|
115
|
+
&--l {
|
|
116
|
+
font-size: var(--icon-size-l);
|
|
117
|
+
}
|
|
118
|
+
|
|
119
|
+
&--xl {
|
|
120
|
+
font-size: var(--icon-size-xl);
|
|
121
|
+
}
|
|
122
|
+
|
|
123
|
+
&--xxl {
|
|
124
|
+
font-size: var(--icon-size-xxl);
|
|
125
|
+
}
|
|
126
|
+
|
|
127
|
+
&--xxxl {
|
|
128
|
+
font-size: var(--icon-size-xxxl);
|
|
129
|
+
}
|
|
130
|
+
|
|
131
|
+
&--warning {
|
|
132
|
+
color: var(--icon-color-warning);
|
|
133
|
+
}
|
|
134
|
+
|
|
135
|
+
&--danger {
|
|
136
|
+
color: var(--icon-color-danger);
|
|
137
|
+
}
|
|
138
|
+
|
|
139
|
+
&--success {
|
|
140
|
+
color: var(--icon-color-success);
|
|
141
|
+
}
|
|
142
|
+
}
|
|
143
|
+
</style>
|