@bimdata/bcf-components 4.1.3 → 5.0.0-rc.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/README.md +2 -53
- package/package.json +6 -14
- package/vue3-plugin.js +6 -22
- package/dist/vue2/bcf-components.mjs +0 -9115
- package/dist/vue2/style.css +0 -1
- package/vue2-plugin.js +0 -76
- /package/dist/{vue3/bcf-components.mjs → bcf-components.mjs} +0 -0
- /package/dist/{vue3/style.css → style.css} +0 -0
package/dist/vue2/style.css
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
.bcf-filters__btn-toggle[data-v-2201caa5]{flex:1}.bcf-filters__btn-toggle[data-v-2201caa5]:enabled{color:var(--color-primary)}.bcf-filters__btn-toggle[data-v-2201caa5]:disabled{background-color:var(--color-white);color:var(--color-silver-dark)}.bcf-filters__container[data-v-2201caa5]{position:absolute;z-index:1;top:44px;left:0;width:100%;min-width:252px;max-width:296px;padding:var(--spacing-unit);box-shadow:var(--box-shadow);background-color:var(--color-white);display:flex;flex-direction:column;gap:calc(var(--spacing-unit) * 2)}.bcf-filters__container__header[data-v-2201caa5]{display:flex;justify-content:space-between;align-items:center}.bcf-filters__container__header__title[data-v-2201caa5]{font-size:1.1rem;font-weight:700}.bcf-filters__container[data-v-2201caa5] .bimdata-select.active{z-index:3}.bcf-filters__container__date>.flex[data-v-2201caa5]{gap:calc(var(--spacing-unit) / 2)}.bcf-filters__container__date[data-v-2201caa5] .bimdata-datepicker.error input{border-bottom:1px solid var(--color-high)}.bcf-filters__container__date p[data-v-2201caa5]{margin:calc(var(--spacing-unit) / 2) 0 0;font-size:11px}.bcf-filters__container__actions[data-v-2201caa5]{display:flex;justify-content:center}.setting-card-item[data-v-7de3c437]{position:relative;height:37px;margin-bottom:calc(var(--spacing-unit) / 2);padding:0 var(--spacing-unit);background-color:var(--color-silver-light);display:flex;justify-content:space-between;align-items:center}.setting-card-item__actions[data-v-7de3c437]{display:flex;align-items:center}.setting-card-item__color[data-v-7de3c437]{display:block;width:19px;height:19px;margin-left:var(--spacing-unit);border-radius:3px;border:1px solid var(--color-silver);cursor:pointer}.setting-card-item__color-selector[data-v-7de3c437]{position:absolute;z-index:1;top:32px;right:calc(var(--spacing-unit) / 2)}.setting-card-item__delete-guard[data-v-7de3c437]{position:absolute;right:0;width:100%;height:100%;padding:0 var(--spacing-unit);box-shadow:var(--box-shadow);background-color:var(--color-white);display:flex;justify-content:space-between;align-items:center;gap:var(--spacing-unit)}.setting-card[data-v-0fdda27e]{margin:var(--spacing-unit) 0;padding:var(--spacing-unit);box-shadow:var(--box-shadow);background:var(--color-white)}.setting-card__header[data-v-0fdda27e]{display:flex;justify-content:space-between;align-items:center;cursor:pointer}.setting-card__header__text[data-v-0fdda27e]{font-weight:700}.setting-card__header__icons[data-v-0fdda27e]{display:flex;align-items:center;gap:calc(var(--spacing-unit) * 2)}.setting-card__header__icons .count[data-v-0fdda27e]{min-width:21px;height:21px;padding:0 4px;display:flex;justify-content:center;align-items:center;border-radius:11px;font-size:11px;font-weight:700;background-color:var(--color-primary);color:var(--color-white)}.setting-card__subheader[data-v-0fdda27e]{display:flex;justify-content:space-between;align-items:center;margin-top:calc(var(--spacing-unit) / 2);margin-bottom:var(--spacing-unit)}.setting-card__form[data-v-0fdda27e]{margin-bottom:var(--spacing-unit)}.setting-card__form .actions[data-v-0fdda27e]{display:flex;justify-content:flex-end;align-items:center;gap:calc(var(--spacing-unit) / 2)}.bcf-settings[data-v-a96c23fe]{height:100%}.bcf-settings__header[data-v-a96c23fe]{padding:0 calc(var(--spacing-unit) / 2);display:flex;align-items:center;gap:calc(var(--spacing-unit) / 3)}.bcf-settings__header__title[data-v-a96c23fe]{flex-grow:1;font-size:1rem;font-weight:700}.bcf-settings__content[data-v-a96c23fe]{height:calc(100% - 32px);padding:0 calc(var(--spacing-unit) * .5);overflow:auto}.bcf-settings__content__text[data-v-a96c23fe]{padding:calc(var(--spacing-unit) * 2) calc(var(--spacing-unit) * 4);text-align:center;color:var(--color-granite)}.bcf-statistics[data-v-5d698b7f]{width:100%}.bcf-statistics__content[data-v-5d698b7f]{position:relative;display:flex;align-items:center}.bcf-statistics__content__chart[data-v-5d698b7f]{flex:1}.bcf-statistics__content__legend[data-v-5d698b7f]{flex:1;height:100%;display:flex;flex-direction:column;gap:var(--spacing-unit);margin-left:var(--spacing-unit);font-size:14px}.bcf-statistics__content__legend__title[data-v-5d698b7f]{font-weight:700}.bcf-statistics__content__legend__item[data-v-5d698b7f]{display:flex;align-items:center;line-height:24px}.bcf-statistics__content__legend__item__mark[data-v-5d698b7f]{width:10px;height:10px;border:3px solid;border-radius:50px}.bcf-statistics__content__legend__item__percent[data-v-5d698b7f]{margin:0 calc(var(--spacing-unit) / 2);min-width:30px;font-weight:700}.bcf-statistics__content__legend__item__text .count[data-v-5d698b7f]{font-size:13px}.bcf-statistics__content__legend[data-v-5d698b7f] .bimdata-paginated-list ul:first-child{min-height:144px}.bcf-topic-card[data-v-20cf0758]{position:relative;width:336px;height:308px;box-shadow:var(--box-shadow)}.bcf-topic-card.selected[data-v-20cf0758]{outline:3px solid var(--color-primary)}.bcf-topic-card__header[data-v-20cf0758]{height:32px;padding-right:var(--spacing-unit);background-color:var(--color-white);display:flex;gap:var(--spacing-unit)}.bcf-topic-card__header .index[data-v-20cf0758]{padding:3px;min-width:32px;background-color:var(--color-silver);color:var(--color-text);display:flex;justify-content:center;align-items:center}.bcf-topic-card__header .title[data-v-20cf0758]{width:calc(100% - var(--spacing-unit) * 2 - 44px);color:var(--color-primary);display:flex;align-items:center}.bcf-topic-card__header .checkbox[data-v-20cf0758]{display:flex;align-items:center}.bcf-topic-card__header .checkbox[data-v-20cf0758] .bimdata-checkbox__mark{width:15px;height:15px}.bcf-topic-card__header .checkbox[data-v-20cf0758] .bimdata-checkbox__mark:after{top:2px;left:4px}.bcf-topic-card__image[data-v-20cf0758]{height:171px;position:relative;display:flex;justify-content:center;align-items:center}.bcf-topic-card__image img[data-v-20cf0758]{width:100%;height:100%;object-fit:cover}.bcf-topic-card__image .img-default[data-v-20cf0758]{width:120px;height:120px}.bcf-topic-card__image .status[data-v-20cf0758]{position:absolute;top:6px;left:6px;border-radius:3px;padding:calc(var(--spacing-unit) / 2);display:flex;align-items:center}.bcf-topic-card__image .date[data-v-20cf0758]{position:absolute;bottom:0;right:0;padding:calc(var(--spacing-unit) / 2);font-size:11px;background-color:var(--color-white)}.bcf-topic-card__content[data-v-20cf0758]{height:105px;padding:var(--spacing-unit);border-top:3px solid var(--color-silver-light);font-size:12px;background-color:var(--color-white);color:var(--color-text)}.bcf-topic-creation-card[data-v-3657ee44]{width:336px;height:307px;display:flex;flex-direction:column;justify-content:center;align-items:center;gap:calc(var(--spacing-unit) * 2);box-shadow:var(--box-shadow);background-color:var(--color-white)}.bcf-topic-creation-card__text[data-v-3657ee44]{font-size:14px}.bcf-topic-images[data-v-1396577a]{display:flex;flex-direction:column;gap:var(--spacing-unit)}.bcf-topic-images__images[data-v-1396577a]{width:100%;height:262px;display:grid;grid-template-columns:repeat(3,1fr);gap:10px}.bcf-topic-images__images .image-preview[data-v-1396577a]{position:relative}.bcf-topic-images__images .image-preview img[data-v-1396577a]{width:100%;height:100%;object-fit:cover}.bcf-topic-images__images .image-preview .btn-delete[data-v-1396577a]{position:absolute;top:calc(50% - 16px);left:calc(50% - 16px)}.bcf-topic-images__images .image-preview:first-child.single[data-v-1396577a]{height:262px;grid-area:1/1/2/4}.bcf-topic-images__images .image-preview[data-v-1396577a]:first-child:not(.single){height:180px;grid-area:1/1/2/4}.bcf-topic-images__images .image-preview[data-v-1396577a]:nth-child(2){height:72px;grid-area:2/1/3/2}.bcf-topic-images__images .image-preview[data-v-1396577a]:nth-child(3){height:72px;grid-area:2/2/3/3}.bcf-topic-images__images .image-preview[data-v-1396577a]:nth-child(4){height:72px;grid-area:2/3/3/4}.bcf-topic-images .btn-upload label[data-v-1396577a]{display:flex;justify-content:center;align-items:center}.bcf-topic-images .btn-upload:not(:disabled) label[data-v-1396577a]{width:100%;height:100%;cursor:pointer}.bcf-topic-images__upload[data-v-1396577a]{width:100%;height:180px;min-height:180px;display:flex;flex-direction:column;justify-content:center;align-items:center;gap:calc(var(--spacing-unit) * 3 / 2);border:2px dashed var(--color-silver)}.bcf-topic-images__upload .icon[data-v-1396577a]{width:52px;height:52px;display:flex;justify-content:center;align-items:center;background-color:var(--color-silver-light);border-radius:50%}.bcf-topic-snapshots__snapshots[data-v-92389376]{width:100%;min-height:180px;max-height:262px;display:flex;flex-wrap:wrap;gap:10px}.bcf-topic-snapshots__snapshots .snapshot-preview[data-v-92389376]{position:relative}.bcf-topic-snapshots__snapshots .snapshot-preview img[data-v-92389376]{width:100%;height:100%;object-fit:cover}.bcf-topic-snapshots__snapshots .snapshot-preview .btn-delete[data-v-92389376]{position:absolute;top:calc(50% - 16px);left:calc(50% - 16px)}.bcf-topic-snapshots__snapshots .snapshot-preview[data-v-92389376]:first-child{width:100%;height:180px}.bcf-topic-snapshots__snapshots .snapshot-preview[data-v-92389376]:not(:first-child){width:30%;height:72px}.bcf-topic-snapshots__create[data-v-92389376]{width:100%;height:180px;min-height:180px;display:flex;flex-direction:column;justify-content:center;align-items:center;border:2px dashed var(--color-silver);cursor:pointer}.bcf-topic-form[data-v-9990c6b0]{height:100%}.bcf-topic-form__header[data-v-9990c6b0]{padding:0 calc(var(--spacing-unit) / 2);display:flex;align-items:center;gap:calc(var(--spacing-unit) / 3)}.bcf-topic-form__header__title[data-v-9990c6b0]{flex-grow:1;font-size:14px;font-weight:700}.bcf-topic-form__content[data-v-9990c6b0]{height:calc(100% - 64px - var(--spacing-unit));padding:var(--spacing-unit) calc(var(--spacing-unit) / 2);display:flex;flex-direction:column;gap:var(--spacing-unit);overflow:auto}.bcf-topic-form__content__head[data-v-9990c6b0]{height:27px;display:flex;justify-content:space-between;align-items:center;font-size:12px}.bcf-topic-form__content__head__index[data-v-9990c6b0],.bcf-topic-form__content__head__date[data-v-9990c6b0]{height:100%;padding:calc(var(--spacing-unit) / 2);display:flex;justify-content:center;align-items:center;background-color:var(--color-silver-light)}.bcf-topic-form__content__head__index[data-v-9990c6b0]{min-width:50px}.bcf-topic-form__content__head__date[data-v-9990c6b0]{min-width:100px}.bcf-topic-form__content__actions[data-v-9990c6b0]{display:flex;gap:var(--spacing-unit)}.bcf-topic-form__content__actions>*[data-v-9990c6b0]{flex-grow:1}.bcf-topic-form__content__actions .count-objects[data-v-9990c6b0],.bcf-topic-form__content__actions .count-annotations[data-v-9990c6b0]{min-width:16px;height:16px;margin-left:var(--spacing-unit);padding:0 4px;border-radius:8px;font-size:10px;display:flex;justify-content:center;align-items:center}.bcf-topic-form__content__actions .count-objects[data-v-9990c6b0]{background-color:var(--color-primary);color:var(--color-white)}.bcf-topic-form__content__actions .count-annotations[data-v-9990c6b0]{background-color:var(--color-white);color:var(--color-primary)}.bcf-topic-form__content__body .bimdata-select[data-v-9990c6b0]{margin:30px 0;font-size:13px}.bcf-topic-form__content__body[data-v-9990c6b0] .bimdata-input input{font-size:13px;color:var(--color-granite)}.bcf-topic-form__content__body[data-v-9990c6b0] .bimdata-textarea textarea{font-family:var(--primary-font);font-size:13px;color:var(--color-granite);resize:vertical}.bcf-topic-form__footer[data-v-9990c6b0]{padding:var(--spacing-unit) calc(var(--spacing-unit) / 2)}.bcf-topic-form__loader[data-v-9990c6b0]{position:absolute;z-index:10;top:0;left:0;width:100%;height:100%;background-color:#2f374ae6;display:flex;justify-content:center;align-items:center}.user-avatar[data-v-42c97e31]{min-width:32px;min-height:32px;display:flex;justify-content:center;align-items:center;border-radius:50%;overflow:hidden}.user-avatar img[data-v-42c97e31]{width:100%;height:100%}.user-avatar--primary[data-v-42c97e31]{background-color:var(--color-primary);color:var(--color-silver-light)}.user-avatar--secondary[data-v-42c97e31]{background-color:var(--color-secondary);color:var(--color-primary)}.user-avatar--silver-light[data-v-42c97e31]{background-color:var(--color-silver-light);color:var(--color-primary)}.topic-comment[data-v-af64b5e2]:not(:last-child){margin-bottom:36px}.topic-comment__header[data-v-af64b5e2]{position:relative;font-weight:700}.topic-comment__header__left__user[data-v-af64b5e2]{width:32px;height:32px;border-radius:50px;background-color:var(--color-silver-light)}.topic-comment__header__right__actions[data-v-af64b5e2]{position:absolute;top:0;right:0;background-color:var(--color-white)}.topic-comment__header__right__delete[data-v-af64b5e2]{position:absolute;top:0;right:2%;width:96%;height:40px;display:flex;justify-content:space-between;align-items:center;background-color:var(--color-white);box-shadow:var(--box-shadow)}.topic-comment__content[data-v-af64b5e2] .bimdata-textarea{margin-bottom:calc(var(--spacing-unit) / 2)}.topic-comment__content[data-v-af64b5e2] .bimdata-textarea textarea{color:var(--color-granite)}.topic-comment__content[data-v-af64b5e2] .bimdata-textarea:not(.editing) .bar{display:none}.topic-comment__content__camera[data-v-af64b5e2]{cursor:pointer}.topic-comment__content__snapshot[data-v-af64b5e2]{width:120px;height:82px;border:1px solid var(--color-silver);background-color:var(--color-silver-light);position:relative}.topic-comment__content__snapshot img[data-v-af64b5e2]{width:100%;height:100%;object-fit:cover}.topic-comment__content__snapshot img[data-v-af64b5e2]:hover{cursor:pointer}.topic-comment__content__snapshot button[data-v-af64b5e2]{position:absolute;top:25px;left:44px}.bcf-topic-comments p[data-v-43c7f579]{font-weight:700}.bcf-topic-comments__post-comment__snapshot[data-v-43c7f579]{height:200px;position:relative;background-color:var(--color-silver-light)}.bcf-topic-comments__post-comment__snapshot img[data-v-43c7f579]{width:100%;height:100%;object-fit:contain}.bcf-topic-comments__post-comment__snapshot .btn-delete[data-v-43c7f579]{position:absolute;top:calc(50% - 16px);left:calc(50% - 16px)}.bcf-topic-comments__post-comment__camera[data-v-43c7f579]{cursor:pointer}.bcf-topic-comments[data-v-43c7f579] .submenu--down li{padding:0}.bcf-topic-comments[data-v-43c7f579] .submenu--down li>div{padding:calc(var(--spacing-unit) / 2)}.bcf-topic-comments[data-v-43c7f579] .bimdata-textarea{width:100%}.bcf-topic-viewpoints[data-v-a5dda0ea]{position:relative;height:262px;min-height:262px;text-align:center;background-color:var(--color-silver-light);overflow:hidden}.bcf-topic-viewpoints.empty[data-v-a5dda0ea]{display:flex;justify-content:center;align-items:center}.bcf-topic-viewpoints .status-badge[data-v-a5dda0ea]{position:absolute;z-index:1;top:calc(var(--spacing-unit) / 2);left:calc(var(--spacing-unit) / 2);padding:calc(var(--spacing-unit) / 2);border-radius:3px;display:flex;gap:calc(var(--spacing-unit) / 2)}.bcf-topic-viewpoints[data-v-a5dda0ea] .bimdata-carousel{height:100%}.bcf-topic-viewpoints[data-v-a5dda0ea] .bimdata-carousel .bimdata-carousel__container{height:100%;margin:0;padding:0;overflow:hidden}.bcf-topic-viewpoints[data-v-a5dda0ea] .bimdata-carousel .bimdata-carousel__container__slider{height:100%!important}.bcf-topic-viewpoints[data-v-a5dda0ea] .bimdata-carousel .bimdata-carousel__btn-prev{left:calc(var(--spacing-unit) / 2)}.bcf-topic-viewpoints[data-v-a5dda0ea] .bimdata-carousel .bimdata-carousel__btn-next{right:calc(var(--spacing-unit) / 2)}.bcf-topic-viewpoints .snapshot-preview[data-v-a5dda0ea]{position:relative;width:100%;height:100%}.bcf-topic-viewpoints .snapshot-preview img[data-v-a5dda0ea]{width:100%;height:100%;object-fit:cover}.bcf-topic-viewpoints .snapshot-preview .icon[data-v-a5dda0ea]{position:absolute;z-index:1;bottom:calc(var(--spacing-unit) / 2);right:calc(var(--spacing-unit) / 2)}.bcf-topic-viewpoints .default-image[data-v-a5dda0ea]{width:170px;height:170px;padding:12px}.bcf-topic-overview[data-v-2cf7ccc0]{height:100%;font-size:12px}.bcf-topic-overview__header[data-v-2cf7ccc0]{height:32px;padding:0 calc(var(--spacing-unit) / 2);display:flex;align-items:center;gap:calc(var(--spacing-unit) / 3)}.bcf-topic-overview__header__title[data-v-2cf7ccc0]{flex-grow:1;font-size:14px;font-weight:700}.bcf-topic-overview__header__actions[data-v-2cf7ccc0]{display:flex;justify-content:center;align-items:center}.bcf-topic-overview__content[data-v-2cf7ccc0]{height:calc(100% - 32px);padding:var(--spacing-unit) calc(var(--spacing-unit) / 2);overflow:auto;display:flex;flex-direction:column;gap:var(--spacing-unit)}.bcf-topic-overview__content__head[data-v-2cf7ccc0]{height:27px;display:flex;justify-content:space-between;align-items:center}.bcf-topic-overview__content__head__index[data-v-2cf7ccc0],.bcf-topic-overview__content__head__date[data-v-2cf7ccc0]{height:100%;padding:calc(var(--spacing-unit) / 2);display:flex;justify-content:center;align-items:center}.bcf-topic-overview__content__head__index[data-v-2cf7ccc0]{min-width:50px}.bcf-topic-overview__content__head__date[data-v-2cf7ccc0]{min-width:100px;background-color:var(--color-silver-light);color:var(--color-primary)}.bcf-topic-overview__content__card[data-v-2cf7ccc0]{padding:var(--spacing-unit);box-shadow:var(--box-shadow);line-height:1.5}.bcf-topic-overview__content__card .title[data-v-2cf7ccc0]{display:flex;align-items:center;gap:calc(var(--spacing-unit) / 2);margin-bottom:var(--spacing-unit)}.bcf-topic-overview__content__card .line .label[data-v-2cf7ccc0]{margin-right:4px;font-weight:700;color:var(--color-primary)}.bcf-topic-overview__content__card .line .label[data-v-2cf7ccc0]:after{content:":";padding:0 1px}.bcf-topic-overview__content__card .line .value[data-v-2cf7ccc0]{color:var(--color-granite)}.bcf-topic-overview .delete-modal[data-v-2cf7ccc0]{z-index:10}.bcf-topic-actions-cell .bimdata-btn[data-v-c3107ece]{margin:auto}.bcf-topic-index-cell[data-v-6837d03b]{position:relative;display:flex;justify-content:center;align-items:center}.bcf-topic-index-cell .left-stripe[data-v-6837d03b]{position:absolute;left:calc(0px - var(--spacing-unit));width:10px;height:42px}.bcf-topic-priority-cell[data-v-905e2396]{height:42px;padding:0 calc(var(--spacing-unit) / 2);display:flex;justify-content:center;align-items:center;font-weight:700}.bcf-topic-status-cell[data-v-16e3da68]{height:42px;padding:0 calc(var(--spacing-unit) / 2);display:flex;justify-content:center;align-items:center}
|
package/vue2-plugin.js
DELETED
|
@@ -1,76 +0,0 @@
|
|
|
1
|
-
import {
|
|
2
|
-
createService,
|
|
3
|
-
setService,
|
|
4
|
-
components
|
|
5
|
-
} from "./dist/vue2/bcf-components.mjs";
|
|
6
|
-
import messages from "./dist/i18n/index.js";
|
|
7
|
-
|
|
8
|
-
/**
|
|
9
|
-
* BCF Components library plugin for Vue 2.
|
|
10
|
-
* Here are the actions the plugin will perform:
|
|
11
|
-
* - initialize library service
|
|
12
|
-
* - register components translations
|
|
13
|
-
* - globally register BCF components
|
|
14
|
-
*
|
|
15
|
-
* @param {
|
|
16
|
-
* {
|
|
17
|
-
* apiClient: Object,
|
|
18
|
-
* fetchUsers?: Promise,
|
|
19
|
-
* i18nPlugin: Object,
|
|
20
|
-
* includedComponents?: string[],
|
|
21
|
-
* excludedComponents?: string[],
|
|
22
|
-
* }
|
|
23
|
-
* }
|
|
24
|
-
*/
|
|
25
|
-
const pluginFactory = ({
|
|
26
|
-
apiClient,
|
|
27
|
-
fetchUsers,
|
|
28
|
-
i18nPlugin,
|
|
29
|
-
includedComponents = [],
|
|
30
|
-
excludedComponents = [],
|
|
31
|
-
} = {}) => {
|
|
32
|
-
return {
|
|
33
|
-
install(Vue) {
|
|
34
|
-
if (apiClient) {
|
|
35
|
-
const service = createService(apiClient, { fetchUsers });
|
|
36
|
-
setService(service);
|
|
37
|
-
} else {
|
|
38
|
-
console.error(
|
|
39
|
-
"[BCF Components Plugin] No api client provided. " +
|
|
40
|
-
"You must provide an api client for the components " +
|
|
41
|
-
"to work properly."
|
|
42
|
-
);
|
|
43
|
-
}
|
|
44
|
-
|
|
45
|
-
if (i18nPlugin) {
|
|
46
|
-
Object.entries(messages).forEach(([locale, translations]) => {
|
|
47
|
-
i18nPlugin.mergeLocaleMessage(locale, translations);
|
|
48
|
-
});
|
|
49
|
-
} else {
|
|
50
|
-
console.warn(
|
|
51
|
-
"[BCF Components Plugin] No i18n instance provided. " +
|
|
52
|
-
"You should either provide an i18n instance or define " +
|
|
53
|
-
"your own translations in order to have text displayed properly."
|
|
54
|
-
);
|
|
55
|
-
}
|
|
56
|
-
|
|
57
|
-
Object.entries(components)
|
|
58
|
-
.forEach(([name, component]) => {
|
|
59
|
-
// Do not register excluded components.
|
|
60
|
-
if (excludedComponents.includes(name)) {
|
|
61
|
-
return;
|
|
62
|
-
}
|
|
63
|
-
// Only register included components if any.
|
|
64
|
-
// Otherwise register all (non excluded) components.
|
|
65
|
-
if (
|
|
66
|
-
includedComponents.length === 0 ||
|
|
67
|
-
includedComponents.includes(name)
|
|
68
|
-
) {
|
|
69
|
-
Vue.component(name, component);
|
|
70
|
-
}
|
|
71
|
-
});
|
|
72
|
-
},
|
|
73
|
-
};
|
|
74
|
-
};
|
|
75
|
-
|
|
76
|
-
export default pluginFactory;
|
|
File without changes
|
|
File without changes
|