@vc-shell/framework 1.0.49 → 1.0.50
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/core/types/index.ts +2 -4
- package/dist/core/types/index.d.ts +2 -3
- package/dist/core/types/index.d.ts.map +1 -1
- package/dist/framework.js +56 -56
- package/dist/shared/blade-navigation/index.d.ts +1 -1
- package/dist/shared/blade-navigation/index.d.ts.map +1 -1
- package/dist/style.css +1 -1
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/dist/ui/components/atoms/vc-badge/vc-badge-model.d.ts +1 -6
- package/dist/ui/components/atoms/vc-badge/vc-badge-model.d.ts.map +1 -1
- package/dist/ui/components/atoms/vc-button/index.d.ts +1 -1
- package/dist/ui/components/atoms/vc-button/index.d.ts.map +1 -1
- package/dist/ui/components/atoms/vc-button/vc-button-model.d.ts +5 -19
- package/dist/ui/components/atoms/vc-button/vc-button-model.d.ts.map +1 -1
- package/dist/ui/components/atoms/vc-card/index.d.ts +5 -0
- package/dist/ui/components/atoms/vc-card/index.d.ts.map +1 -0
- package/dist/ui/components/atoms/vc-card/vc-card-model.d.ts +16 -0
- package/dist/ui/components/atoms/vc-card/vc-card-model.d.ts.map +1 -0
- package/dist/ui/components/atoms/vc-checkbox/index.d.ts +5 -0
- package/dist/ui/components/atoms/vc-checkbox/index.d.ts.map +1 -0
- package/dist/ui/components/atoms/vc-checkbox/vc-checkbox-model.d.ts +14 -0
- package/dist/ui/components/atoms/vc-checkbox/vc-checkbox-model.d.ts.map +1 -0
- package/dist/ui/components/atoms/vc-col/index.d.ts +5 -0
- package/dist/ui/components/atoms/vc-col/index.d.ts.map +1 -0
- package/dist/ui/components/atoms/vc-col/vc-col-model.d.ts +8 -0
- package/dist/ui/components/atoms/vc-col/vc-col-model.d.ts.map +1 -0
- package/dist/ui/components/atoms/vc-container/index.d.ts +5 -0
- package/dist/ui/components/atoms/vc-container/index.d.ts.map +1 -0
- package/dist/ui/components/atoms/vc-container/vc-container-model.d.ts +11 -0
- package/dist/ui/components/atoms/vc-container/vc-container-model.d.ts.map +1 -0
- package/dist/ui/components/atoms/vc-hint/index.d.ts +2 -0
- package/dist/ui/components/atoms/vc-hint/index.d.ts.map +1 -0
- package/dist/ui/components/atoms/vc-icon/index.d.ts +5 -0
- package/dist/ui/components/atoms/vc-icon/index.d.ts.map +1 -0
- package/dist/ui/components/atoms/vc-icon/vc-icon-model.d.ts +9 -0
- package/dist/ui/components/atoms/vc-icon/vc-icon-model.d.ts.map +1 -0
- package/dist/ui/components/atoms/vc-image/index.d.ts +5 -0
- package/dist/ui/components/atoms/vc-image/index.d.ts.map +1 -0
- package/dist/ui/components/atoms/vc-image/vc-image-model.d.ts +15 -0
- package/dist/ui/components/atoms/vc-image/vc-image-model.d.ts.map +1 -0
- package/dist/ui/components/atoms/vc-info-row/index.d.ts +5 -0
- package/dist/ui/components/atoms/vc-info-row/index.d.ts.map +1 -0
- package/dist/ui/components/atoms/vc-info-row/vc-info-row-model.d.ts +11 -0
- package/dist/ui/components/atoms/vc-info-row/vc-info-row-model.d.ts.map +1 -0
- package/dist/ui/components/atoms/vc-label/index.d.ts +5 -0
- package/dist/ui/components/atoms/vc-label/index.d.ts.map +1 -0
- package/dist/ui/components/atoms/vc-label/vc-label-model.d.ts +10 -0
- package/dist/ui/components/atoms/vc-label/vc-label-model.d.ts.map +1 -0
- package/dist/ui/components/atoms/vc-link/index.d.ts +5 -0
- package/dist/ui/components/atoms/vc-link/index.d.ts.map +1 -0
- package/dist/ui/components/atoms/vc-link/vc-link-model.d.ts +10 -0
- package/dist/ui/components/atoms/vc-link/vc-link-model.d.ts.map +1 -0
- package/dist/ui/components/atoms/vc-loading/index.d.ts +5 -0
- package/dist/ui/components/atoms/vc-loading/index.d.ts.map +1 -0
- package/dist/ui/components/atoms/vc-loading/vc-loading-model.d.ts +8 -0
- package/dist/ui/components/atoms/vc-loading/vc-loading-model.d.ts.map +1 -0
- package/dist/ui/components/atoms/vc-progress/index.d.ts +5 -0
- package/dist/ui/components/atoms/vc-progress/index.d.ts.map +1 -0
- package/dist/ui/components/atoms/vc-progress/vc-progress-model.d.ts +9 -0
- package/dist/ui/components/atoms/vc-progress/vc-progress-model.d.ts.map +1 -0
- package/dist/ui/components/atoms/vc-row/index.d.ts +2 -0
- package/dist/ui/components/atoms/vc-row/index.d.ts.map +1 -0
- package/dist/ui/components/atoms/vc-row/vc-row-model.d.ts +5 -0
- package/dist/ui/components/atoms/vc-row/vc-row-model.d.ts.map +1 -0
- package/dist/ui/components/atoms/vc-status/index.d.ts +5 -0
- package/dist/ui/components/atoms/vc-status/index.d.ts.map +1 -0
- package/dist/ui/components/atoms/vc-status/vc-status-model.d.ts +10 -0
- package/dist/ui/components/atoms/vc-status/vc-status-model.d.ts.map +1 -0
- package/dist/ui/components/atoms/vc-status-icon/index.d.ts +5 -0
- package/dist/ui/components/atoms/vc-status-icon/index.d.ts.map +1 -0
- package/dist/ui/components/atoms/vc-status-icon/vc-status-icon-model.d.ts +8 -0
- package/dist/ui/components/atoms/vc-status-icon/vc-status-icon-model.d.ts.map +1 -0
- package/dist/ui/components/atoms/vc-switch/index.d.ts +5 -0
- package/dist/ui/components/atoms/vc-switch/index.d.ts.map +1 -0
- package/dist/ui/components/atoms/vc-switch/vc-switch-model.d.ts +13 -0
- package/dist/ui/components/atoms/vc-switch/vc-switch-model.d.ts.map +1 -0
- package/dist/ui/components/atoms/vc-widget/index.d.ts +5 -0
- package/dist/ui/components/atoms/vc-widget/index.d.ts.map +1 -0
- package/dist/ui/components/atoms/vc-widget/vc-widget-model.d.ts +12 -0
- package/dist/ui/components/atoms/vc-widget/vc-widget-model.d.ts.map +1 -0
- package/dist/ui/components/index.d.ts +34 -34
- package/dist/ui/components/index.d.ts.map +1 -1
- package/dist/ui/components/molecules/vc-breadcrumbs/index.d.ts +5 -0
- package/dist/ui/components/molecules/vc-breadcrumbs/index.d.ts.map +1 -0
- package/dist/ui/components/molecules/vc-breadcrumbs/vc-breadcrumbs-model.d.ts +14 -0
- package/dist/ui/components/molecules/vc-breadcrumbs/vc-breadcrumbs-model.d.ts.map +1 -0
- package/dist/ui/components/molecules/vc-editor/index.d.ts +5 -0
- package/dist/ui/components/molecules/vc-editor/index.d.ts.map +1 -0
- package/dist/ui/components/molecules/vc-editor/vc-editor-model.d.ts +16 -0
- package/dist/ui/components/molecules/vc-editor/vc-editor-model.d.ts.map +1 -0
- package/dist/ui/components/molecules/vc-file-upload/index.d.ts +5 -0
- package/dist/ui/components/molecules/vc-file-upload/index.d.ts.map +1 -0
- package/dist/ui/components/molecules/vc-file-upload/vc-file-upload-model.d.ts +14 -0
- package/dist/ui/components/molecules/vc-file-upload/vc-file-upload-model.d.ts.map +1 -0
- package/dist/ui/components/molecules/vc-form/index.d.ts +2 -0
- package/dist/ui/components/molecules/vc-form/index.d.ts.map +1 -0
- package/dist/ui/components/molecules/vc-notification/index.d.ts +5 -0
- package/dist/ui/components/molecules/vc-notification/index.d.ts.map +1 -0
- package/dist/ui/components/molecules/vc-notification/vc-notification-model.d.ts +10 -0
- package/dist/ui/components/molecules/vc-notification/vc-notification-model.d.ts.map +1 -0
- package/dist/ui/components/molecules/vc-pagination/index.d.ts +5 -0
- package/dist/ui/components/molecules/vc-pagination/index.d.ts.map +1 -0
- package/dist/ui/components/molecules/vc-pagination/vc-pagination-model.d.ts +11 -0
- package/dist/ui/components/molecules/vc-pagination/vc-pagination-model.d.ts.map +1 -0
- package/dist/ui/components/molecules/vc-rating/index.d.ts +5 -0
- package/dist/ui/components/molecules/vc-rating/index.d.ts.map +1 -0
- package/dist/ui/components/molecules/vc-rating/vc-rating-model.d.ts +13 -0
- package/dist/ui/components/molecules/vc-rating/vc-rating-model.d.ts.map +1 -0
- package/dist/ui/components/molecules/vc-slider/index.d.ts +5 -0
- package/dist/ui/components/molecules/vc-slider/index.d.ts.map +1 -0
- package/dist/ui/components/molecules/vc-slider/vc-slider-model.d.ts +14 -0
- package/dist/ui/components/molecules/vc-slider/vc-slider-model.d.ts.map +1 -0
- package/dist/ui/components/molecules/vc-textarea/index.d.ts +5 -0
- package/dist/ui/components/molecules/vc-textarea/index.d.ts.map +1 -0
- package/dist/ui/components/molecules/vc-textarea/vc-textarea-model.d.ts +17 -0
- package/dist/ui/components/molecules/vc-textarea/vc-textarea-model.d.ts.map +1 -0
- package/dist/ui/components/organisms/vc-app/index.d.ts +5 -0
- package/dist/ui/components/organisms/vc-app/index.d.ts.map +1 -0
- package/dist/ui/components/organisms/vc-app/vc-app-model.d.ts +26 -0
- package/dist/ui/components/organisms/vc-app/vc-app-model.d.ts.map +1 -0
- package/dist/ui/components/organisms/vc-blade/index.d.ts +5 -0
- package/dist/ui/components/organisms/vc-blade/index.d.ts.map +1 -0
- package/dist/ui/components/organisms/vc-blade/vc-blade-model.d.ts +17 -0
- package/dist/ui/components/organisms/vc-blade/vc-blade-model.d.ts.map +1 -0
- package/dist/ui/components/organisms/vc-dynamic-property/index.d.ts +5 -0
- package/dist/ui/components/organisms/vc-dynamic-property/index.d.ts.map +1 -0
- package/dist/ui/components/organisms/vc-dynamic-property/vc-dynamic-property-model.d.ts +14 -0
- package/dist/ui/components/organisms/vc-dynamic-property/vc-dynamic-property-model.d.ts.map +1 -0
- package/dist/ui/components/organisms/vc-gallery/index.d.ts +5 -0
- package/dist/ui/components/organisms/vc-gallery/index.d.ts.map +1 -0
- package/dist/ui/components/organisms/vc-gallery/vc-gallery-model.d.ts +32 -0
- package/dist/ui/components/organisms/vc-gallery/vc-gallery-model.d.ts.map +1 -0
- package/dist/ui/components/organisms/vc-login-form/index.d.ts +5 -0
- package/dist/ui/components/organisms/vc-login-form/index.d.ts.map +1 -0
- package/dist/ui/components/organisms/vc-login-form/vc-login-form-model.d.ts +10 -0
- package/dist/ui/components/organisms/vc-login-form/vc-login-form-model.d.ts.map +1 -0
- package/dist/ui/components/organisms/vc-popup/index.d.ts +5 -0
- package/dist/ui/components/organisms/vc-popup/index.d.ts.map +1 -0
- package/dist/ui/components/organisms/vc-popup/vc-popup-model.d.ts +11 -0
- package/dist/ui/components/organisms/vc-popup/vc-popup-model.d.ts.map +1 -0
- package/dist/ui/components/organisms/vc-table/index.d.ts +5 -0
- package/dist/ui/components/organisms/vc-table/index.d.ts.map +1 -0
- package/dist/ui/components/organisms/vc-table/vc-table-model.d.ts +66 -0
- package/dist/ui/components/organisms/vc-table/vc-table-model.d.ts.map +1 -0
- package/dist/ui/types/index.d.ts +68 -0
- package/dist/ui/types/index.d.ts.map +1 -1
- package/package.json +4 -4
- package/shared/assets/components/assets-details/assets-details.vue +1 -1
- package/shared/blade-navigation/components/vc-blade-navigation/vc-blade-navigation.vue +1 -1
- package/shared/blade-navigation/index.ts +7 -7
- package/ui/components/atoms/vc-badge/vc-badge-model.ts +1 -7
- package/ui/components/atoms/vc-badge/vc-badge.vue +1 -2
- package/ui/components/atoms/vc-button/index.ts +1 -1
- package/ui/components/atoms/vc-button/vc-button-model.ts +12 -20
- package/ui/components/atoms/vc-button/vc-button.vue +8 -32
- package/ui/components/atoms/vc-card/index.ts +7 -0
- package/ui/components/atoms/vc-card/vc-card-model.ts +17 -0
- package/ui/components/atoms/vc-card/vc-card.vue +6 -31
- package/ui/components/atoms/vc-checkbox/index.ts +7 -0
- package/ui/components/atoms/vc-checkbox/vc-checkbox-model.ts +15 -0
- package/ui/components/atoms/vc-checkbox/vc-checkbox.vue +6 -25
- package/ui/components/atoms/vc-col/index.ts +6 -0
- package/ui/components/atoms/vc-col/vc-col-model.ts +9 -0
- package/ui/components/atoms/vc-col/vc-col.vue +2 -4
- package/ui/components/atoms/vc-container/index.ts +7 -0
- package/ui/components/atoms/vc-container/vc-container-model.ts +12 -0
- package/ui/components/atoms/vc-container/vc-container.vue +11 -18
- package/ui/components/atoms/vc-hint/index.ts +2 -0
- package/ui/components/atoms/vc-icon/index.ts +7 -0
- package/ui/components/atoms/vc-icon/vc-icon-model.ts +10 -0
- package/ui/components/atoms/vc-icon/vc-icon.vue +2 -5
- package/ui/components/atoms/vc-image/index.ts +7 -0
- package/ui/components/atoms/vc-image/vc-image-model.ts +27 -0
- package/ui/components/atoms/vc-image/vc-image.vue +11 -37
- package/ui/components/atoms/vc-info-row/index.ts +7 -0
- package/ui/components/atoms/vc-info-row/vc-info-row-model.ts +12 -0
- package/ui/components/atoms/vc-info-row/vc-info-row.vue +6 -20
- package/ui/components/atoms/vc-label/index.ts +7 -0
- package/ui/components/atoms/vc-label/vc-label-model.ts +11 -0
- package/ui/components/atoms/vc-label/vc-label.vue +8 -12
- package/ui/components/atoms/vc-link/index.ts +7 -0
- package/ui/components/atoms/vc-link/vc-link-model.ts +11 -0
- package/ui/components/atoms/vc-link/vc-link.vue +4 -9
- package/ui/components/atoms/vc-loading/index.ts +7 -0
- package/ui/components/atoms/vc-loading/vc-loading-model.ts +9 -0
- package/ui/components/atoms/vc-loading/vc-loading.vue +4 -5
- package/ui/components/atoms/vc-progress/index.ts +7 -0
- package/ui/components/atoms/vc-progress/vc-progress-model.ts +10 -0
- package/ui/components/atoms/vc-progress/vc-progress.vue +5 -11
- package/ui/components/atoms/vc-row/index.ts +2 -0
- package/ui/components/atoms/vc-row/vc-row-model.ts +5 -0
- package/ui/components/atoms/vc-status/index.ts +7 -0
- package/ui/components/atoms/vc-status/vc-status-model.ts +17 -0
- package/ui/components/atoms/vc-status/vc-status.vue +5 -15
- package/ui/components/atoms/vc-status-icon/index.ts +7 -0
- package/ui/components/atoms/vc-status-icon/vc-status-icon-model.ts +9 -0
- package/ui/components/atoms/vc-status-icon/vc-status-icon.vue +11 -7
- package/ui/components/atoms/vc-switch/index.ts +7 -0
- package/ui/components/atoms/vc-switch/vc-switch-model.ts +14 -0
- package/ui/components/atoms/vc-switch/vc-switch.vue +6 -24
- package/ui/components/atoms/vc-widget/index.ts +7 -0
- package/ui/components/atoms/vc-widget/vc-widget-model.ts +13 -0
- package/ui/components/atoms/vc-widget/vc-widget.vue +3 -19
- package/ui/components/index.ts +34 -34
- package/ui/components/molecules/vc-breadcrumbs/index.ts +7 -0
- package/ui/components/molecules/vc-breadcrumbs/vc-breadcrumbs-model.ts +15 -0
- package/ui/components/molecules/vc-breadcrumbs/vc-breadcrumbs.vue +2 -11
- package/ui/components/molecules/vc-editor/index.ts +7 -0
- package/ui/components/molecules/vc-editor/vc-editor-model.ts +17 -0
- package/ui/components/molecules/vc-editor/vc-editor.vue +15 -52
- package/ui/components/molecules/vc-file-upload/index.ts +7 -0
- package/ui/components/molecules/vc-file-upload/vc-file-upload-model.ts +15 -0
- package/ui/components/molecules/vc-file-upload/vc-file-upload.vue +12 -33
- package/ui/components/molecules/vc-form/index.ts +2 -0
- package/ui/components/molecules/vc-notification/index.ts +7 -0
- package/ui/components/molecules/vc-notification/vc-notification-model.ts +11 -0
- package/ui/components/molecules/vc-notification/vc-notification.vue +3 -10
- package/ui/components/molecules/vc-pagination/index.ts +7 -0
- package/ui/components/molecules/vc-pagination/vc-pagination-model.ts +12 -0
- package/ui/components/molecules/vc-pagination/vc-pagination.vue +6 -16
- package/ui/components/molecules/vc-rating/index.ts +7 -0
- package/ui/components/molecules/vc-rating/vc-rating-model.ts +14 -0
- package/ui/components/molecules/vc-rating/vc-rating.vue +2 -10
- package/ui/components/molecules/vc-slider/index.ts +7 -0
- package/ui/components/molecules/vc-slider/vc-slider-model.ts +15 -0
- package/ui/components/molecules/vc-slider/vc-slider.vue +7 -25
- package/ui/components/molecules/vc-textarea/index.ts +7 -0
- package/ui/components/molecules/vc-textarea/vc-textarea-model.ts +18 -0
- package/ui/components/molecules/vc-textarea/vc-textarea.vue +9 -47
- package/ui/components/organisms/vc-app/_internal/vc-app-menu/_internal/vc-app-menu-item/vc-app-menu-item.vue +2 -1
- package/ui/components/organisms/vc-app/index.ts +6 -0
- package/ui/components/organisms/vc-app/vc-app-model.ts +27 -0
- package/ui/components/organisms/vc-app/vc-app.vue +6 -31
- package/ui/components/organisms/vc-blade/_internal/vc-blade-header/vc-blade-header.vue +17 -32
- package/ui/components/organisms/vc-blade/index.ts +7 -0
- package/ui/components/organisms/vc-blade/vc-blade-model.ts +18 -0
- package/ui/components/organisms/vc-blade/vc-blade.vue +9 -34
- package/ui/components/organisms/vc-dynamic-property/index.ts +7 -0
- package/ui/components/organisms/vc-dynamic-property/vc-dynamic-property-model.ts +25 -0
- package/ui/components/organisms/vc-dynamic-property/vc-dynamic-property.vue +66 -94
- package/ui/components/organisms/vc-gallery/_internal/vc-gallery-item/vc-gallery-item.vue +31 -21
- package/ui/components/organisms/vc-gallery/index.ts +7 -0
- package/ui/components/organisms/vc-gallery/vc-gallery-model.ts +33 -0
- package/ui/components/organisms/vc-gallery/vc-gallery.vue +22 -81
- package/ui/components/organisms/vc-login-form/index.ts +7 -0
- package/ui/components/organisms/vc-login-form/vc-login-form-model.ts +11 -0
- package/ui/components/organisms/vc-login-form/vc-login-form.vue +3 -14
- package/ui/components/organisms/vc-popup/index.ts +7 -0
- package/ui/components/organisms/vc-popup/vc-popup-model.ts +12 -0
- package/ui/components/organisms/vc-popup/vc-popup.vue +4 -15
- package/ui/components/organisms/vc-table/_internal/vc-table-mobile-item/vc-table-mobile-item.vue +2 -2
- package/ui/components/organisms/vc-table/index.ts +7 -0
- package/ui/components/organisms/vc-table/vc-table-model.ts +56 -0
- package/ui/components/organisms/vc-table/vc-table.vue +9 -41
- package/ui/types/index.ts +188 -1
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
<template>
|
|
2
2
|
<Field
|
|
3
3
|
v-if="
|
|
4
|
-
(property
|
|
4
|
+
(property['dictionary'] || property['isDictionary']) && !property['multivalue']
|
|
5
5
|
"
|
|
6
6
|
v-slot="{ errorMessage, handleChange, errors }"
|
|
7
|
-
:name="property
|
|
7
|
+
:name="property['displayName'] || property['name']"
|
|
8
8
|
:modelValue="getter(property, true)"
|
|
9
9
|
:rules="rules"
|
|
10
10
|
>
|
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
v-bind="$attrs"
|
|
13
13
|
:error="!!errors.length"
|
|
14
14
|
:error-message="errorMessage"
|
|
15
|
-
:label="handleDisplayName || property
|
|
15
|
+
:label="handleDisplayName || property['displayName']"
|
|
16
16
|
:modelValue="getter(property, true)"
|
|
17
17
|
@update:modelValue="
|
|
18
18
|
(e) => {
|
|
@@ -20,8 +20,8 @@
|
|
|
20
20
|
setter(property, e, items);
|
|
21
21
|
}
|
|
22
22
|
"
|
|
23
|
-
:required="property
|
|
24
|
-
:placeholder="handleDisplayName || property
|
|
23
|
+
:required="property['required'] || property['isRequired']"
|
|
24
|
+
:placeholder="handleDisplayName || property['defaultValue']"
|
|
25
25
|
:options="items"
|
|
26
26
|
option-value="id"
|
|
27
27
|
:option-label="handleDisplayProperty"
|
|
@@ -34,27 +34,27 @@
|
|
|
34
34
|
|
|
35
35
|
<Field
|
|
36
36
|
v-else-if="
|
|
37
|
-
property
|
|
38
|
-
property
|
|
39
|
-
!(property
|
|
37
|
+
property['valueType'] === 'ShortText' &&
|
|
38
|
+
property['multivalue'] &&
|
|
39
|
+
!(property['dictionary'] || property['isDictionary'])
|
|
40
40
|
"
|
|
41
41
|
v-slot="{ errorMessage, handleChange }"
|
|
42
|
-
:name="property
|
|
43
|
-
:modelValue="property
|
|
42
|
+
:name="property['name']"
|
|
43
|
+
:modelValue="property['values']"
|
|
44
44
|
:rules="rules"
|
|
45
45
|
>
|
|
46
46
|
<VcMultivalue
|
|
47
47
|
v-bind="$attrs"
|
|
48
48
|
:error-message="errorMessage"
|
|
49
49
|
:label="handleDisplayName"
|
|
50
|
-
:modelValue="property
|
|
50
|
+
:modelValue="property['values']"
|
|
51
51
|
@update:modelValue="
|
|
52
52
|
(e) => {
|
|
53
53
|
handleChange(e);
|
|
54
54
|
setter(property, e);
|
|
55
55
|
}
|
|
56
56
|
"
|
|
57
|
-
:required="property
|
|
57
|
+
:required="property['required'] || property['isRequired']"
|
|
58
58
|
placeholder="Add value"
|
|
59
59
|
:disabled="disabled"
|
|
60
60
|
></VcMultivalue>
|
|
@@ -62,29 +62,29 @@
|
|
|
62
62
|
|
|
63
63
|
<Field
|
|
64
64
|
v-else-if="
|
|
65
|
-
property
|
|
66
|
-
property
|
|
67
|
-
(property
|
|
65
|
+
property['valueType'] === 'ShortText' &&
|
|
66
|
+
property['multivalue'] &&
|
|
67
|
+
(property['dictionary'] || property['isDictionary'])
|
|
68
68
|
"
|
|
69
69
|
v-slot="{ errorMessage, handleChange }"
|
|
70
|
-
:name="property
|
|
71
|
-
:modelValue="property
|
|
70
|
+
:name="property['name']"
|
|
71
|
+
:modelValue="property['values']"
|
|
72
72
|
:rules="rules"
|
|
73
73
|
>
|
|
74
74
|
<VcMultivalue
|
|
75
75
|
v-bind="$attrs"
|
|
76
76
|
:error-message="errorMessage"
|
|
77
77
|
:label="handleDisplayName"
|
|
78
|
-
:modelValue="property
|
|
78
|
+
:modelValue="property['values']"
|
|
79
79
|
@update:modelValue="
|
|
80
80
|
(e) => {
|
|
81
81
|
handleChange(e);
|
|
82
82
|
setter(property, e, items);
|
|
83
83
|
}
|
|
84
84
|
"
|
|
85
|
-
:required="property
|
|
85
|
+
:required="property['required'] || property['isRequired']"
|
|
86
86
|
placeholder="Add value"
|
|
87
|
-
:multivalue="property
|
|
87
|
+
:multivalue="property['multivalue']"
|
|
88
88
|
:disabled="disabled"
|
|
89
89
|
:options="items"
|
|
90
90
|
keyProperty="id"
|
|
@@ -95,9 +95,9 @@
|
|
|
95
95
|
</Field>
|
|
96
96
|
|
|
97
97
|
<Field
|
|
98
|
-
v-else-if="property
|
|
98
|
+
v-else-if="property['valueType'] === 'ShortText'"
|
|
99
99
|
v-slot="{ errorMessage, handleChange, errors }"
|
|
100
|
-
:name="property
|
|
100
|
+
:name="property['displayName'] || property['name']"
|
|
101
101
|
:modelValue="getter(property)"
|
|
102
102
|
:rules="rules"
|
|
103
103
|
>
|
|
@@ -105,8 +105,8 @@
|
|
|
105
105
|
v-bind="$attrs"
|
|
106
106
|
:error="!!errors.length"
|
|
107
107
|
:error-message="errorMessage"
|
|
108
|
-
:label="handleDisplayName || property
|
|
109
|
-
:modelValue="getter(property)"
|
|
108
|
+
:label="handleDisplayName || property['displayName']"
|
|
109
|
+
:modelValue="(getter(property) as string | number | Date)"
|
|
110
110
|
@update:modelValue="
|
|
111
111
|
(e) => {
|
|
112
112
|
handleChange(e);
|
|
@@ -114,23 +114,23 @@
|
|
|
114
114
|
}
|
|
115
115
|
"
|
|
116
116
|
clearable
|
|
117
|
-
:required="property
|
|
117
|
+
:required="property['required'] || property['isRequired']"
|
|
118
118
|
:placeholder="handleDisplayName || 'Add value'"
|
|
119
119
|
:disabled="disabled"
|
|
120
120
|
></VcInput>
|
|
121
121
|
</Field>
|
|
122
122
|
|
|
123
123
|
<Field
|
|
124
|
-
v-else-if="property
|
|
124
|
+
v-else-if="property['valueType'] === 'Number' && property['multivalue']"
|
|
125
125
|
v-slot="{ errorMessage, handleChange, errors }"
|
|
126
|
-
:name="property
|
|
127
|
-
:modelValue="property
|
|
126
|
+
:name="property['name']"
|
|
127
|
+
:modelValue="property['values']"
|
|
128
128
|
:rules="rules"
|
|
129
129
|
>
|
|
130
130
|
<VcSelect
|
|
131
131
|
v-bind="$attrs"
|
|
132
132
|
:label="handleDisplayName"
|
|
133
|
-
:modelValue="property
|
|
133
|
+
:modelValue="property['values']"
|
|
134
134
|
@update:modelValue="
|
|
135
135
|
(e) => {
|
|
136
136
|
handleChange(e);
|
|
@@ -138,7 +138,7 @@
|
|
|
138
138
|
}
|
|
139
139
|
"
|
|
140
140
|
type="number"
|
|
141
|
-
:required="property
|
|
141
|
+
:required="property['required'] || property['isRequired']"
|
|
142
142
|
placeholder="Add value"
|
|
143
143
|
:disabled="disabled"
|
|
144
144
|
:error="!!errors.length"
|
|
@@ -151,9 +151,9 @@
|
|
|
151
151
|
</Field>
|
|
152
152
|
|
|
153
153
|
<Field
|
|
154
|
-
v-else-if="property
|
|
154
|
+
v-else-if="property['valueType'] === 'Number'"
|
|
155
155
|
v-slot="{ errorMessage, handleChange, errors }"
|
|
156
|
-
:name="property
|
|
156
|
+
:name="property['name']"
|
|
157
157
|
:modelValue="getter(property)"
|
|
158
158
|
:rules="rules"
|
|
159
159
|
>
|
|
@@ -162,7 +162,7 @@
|
|
|
162
162
|
:error="!!errors.length"
|
|
163
163
|
:error-message="errorMessage"
|
|
164
164
|
:label="handleDisplayName"
|
|
165
|
-
:modelValue="getter(property)"
|
|
165
|
+
:modelValue="(getter(property) as string | number | Date)"
|
|
166
166
|
@update:modelValue="
|
|
167
167
|
(e) => {
|
|
168
168
|
handleChange(e);
|
|
@@ -171,16 +171,16 @@
|
|
|
171
171
|
"
|
|
172
172
|
clearable
|
|
173
173
|
type="number"
|
|
174
|
-
:required="property
|
|
175
|
-
:placeholder="handleDisplayName || property
|
|
174
|
+
:required="property['required'] || property['isRequired']"
|
|
175
|
+
:placeholder="handleDisplayName || property['defaultValue']"
|
|
176
176
|
:disabled="disabled"
|
|
177
177
|
></VcInput>
|
|
178
178
|
</Field>
|
|
179
179
|
|
|
180
180
|
<Field
|
|
181
|
-
v-else-if="property
|
|
181
|
+
v-else-if="property['valueType'] === 'Integer'"
|
|
182
182
|
v-slot="{ errorMessage, handleChange, errors }"
|
|
183
|
-
:name="property
|
|
183
|
+
:name="property['name']"
|
|
184
184
|
:modelValue="getter(property)"
|
|
185
185
|
:rules="rules"
|
|
186
186
|
>
|
|
@@ -189,7 +189,7 @@
|
|
|
189
189
|
:error="!!errors.length"
|
|
190
190
|
:error-message="errorMessage"
|
|
191
191
|
:label="handleDisplayName"
|
|
192
|
-
:modelValue="getter(property)"
|
|
192
|
+
:modelValue="(getter(property) as string | number | Date)"
|
|
193
193
|
@update:modelValue="
|
|
194
194
|
(e) => {
|
|
195
195
|
handleChange(e);
|
|
@@ -199,16 +199,16 @@
|
|
|
199
199
|
clearable
|
|
200
200
|
type="number"
|
|
201
201
|
step="1"
|
|
202
|
-
:required="property
|
|
203
|
-
:placeholder="handleDisplayName || property
|
|
202
|
+
:required="property['required'] || property['isRequired']"
|
|
203
|
+
:placeholder="handleDisplayName || property['defaultValue']"
|
|
204
204
|
:disabled="disabled"
|
|
205
205
|
></VcInput>
|
|
206
206
|
</Field>
|
|
207
207
|
|
|
208
208
|
<Field
|
|
209
|
-
v-else-if="property
|
|
209
|
+
v-else-if="property['valueType'] === 'DateTime'"
|
|
210
210
|
v-slot="{ errorMessage, handleChange, errors }"
|
|
211
|
-
:name="property
|
|
211
|
+
:name="property['name']"
|
|
212
212
|
:modelValue="getter(property)"
|
|
213
213
|
:rules="rules"
|
|
214
214
|
>
|
|
@@ -217,7 +217,7 @@
|
|
|
217
217
|
:error="!!errors.length"
|
|
218
218
|
:error-message="errorMessage"
|
|
219
219
|
:label="handleDisplayName"
|
|
220
|
-
:modelValue="getter(property)"
|
|
220
|
+
:modelValue="(getter(property) as string | number | Date)"
|
|
221
221
|
@update:modelValue="
|
|
222
222
|
(e) => {
|
|
223
223
|
handleChange(e);
|
|
@@ -225,16 +225,16 @@
|
|
|
225
225
|
}
|
|
226
226
|
"
|
|
227
227
|
type="datetime-local"
|
|
228
|
-
:required="property
|
|
229
|
-
:placeholder="handleDisplayName || property
|
|
228
|
+
:required="property['required'] || property['isRequired']"
|
|
229
|
+
:placeholder="handleDisplayName || property['defaultValue']"
|
|
230
230
|
:disabled="disabled"
|
|
231
231
|
></VcInput>
|
|
232
232
|
</Field>
|
|
233
233
|
|
|
234
234
|
<Field
|
|
235
|
-
v-else-if="property
|
|
235
|
+
v-else-if="property['valueType'] === 'LongText'"
|
|
236
236
|
v-slot="{ errorMessage, handleChange }"
|
|
237
|
-
:name="property
|
|
237
|
+
:name="property['name']"
|
|
238
238
|
:modelValue="getter(property)"
|
|
239
239
|
:rules="rules"
|
|
240
240
|
>
|
|
@@ -242,65 +242,65 @@
|
|
|
242
242
|
v-bind="$attrs"
|
|
243
243
|
:error-message="errorMessage"
|
|
244
244
|
:label="handleDisplayName"
|
|
245
|
-
:modelValue="getter(property)"
|
|
245
|
+
:modelValue="getter(property) as string"
|
|
246
246
|
@update:modelValue="
|
|
247
247
|
(e) => {
|
|
248
248
|
handleChange(e);
|
|
249
249
|
setter(property, e);
|
|
250
250
|
}
|
|
251
251
|
"
|
|
252
|
-
:
|
|
253
|
-
:placeholder="handleDisplayName || property
|
|
252
|
+
:required="property['required'] || property['isRequired']"
|
|
253
|
+
:placeholder="handleDisplayName || property['defaultValue']"
|
|
254
254
|
:disabled="disabled"
|
|
255
255
|
></VcTextarea>
|
|
256
256
|
</Field>
|
|
257
257
|
|
|
258
258
|
<Field
|
|
259
|
-
v-else-if="property
|
|
259
|
+
v-else-if="property['valueType'] === 'Boolean'"
|
|
260
260
|
v-slot="{ errorMessage, handleChange }"
|
|
261
|
-
:name="property
|
|
261
|
+
:name="property['displayName'] || property['name']"
|
|
262
262
|
:modelValue="getter(property)"
|
|
263
263
|
:rules="rules"
|
|
264
264
|
>
|
|
265
265
|
<VcCheckbox
|
|
266
266
|
v-bind="$attrs"
|
|
267
267
|
:error-message="errorMessage"
|
|
268
|
-
:modelValue="getter(property)"
|
|
268
|
+
:modelValue="getter(property) as boolean"
|
|
269
269
|
@update:modelValue="
|
|
270
270
|
(e) => {
|
|
271
271
|
handleChange(e);
|
|
272
272
|
setter(property, e);
|
|
273
273
|
}
|
|
274
274
|
"
|
|
275
|
-
:required="property
|
|
275
|
+
:required="property['required'] || property['isRequired']"
|
|
276
276
|
:disabled="disabled"
|
|
277
|
-
:name="property
|
|
277
|
+
:name="property['displayName'] || property['name']"
|
|
278
278
|
>
|
|
279
|
-
{{ handleDisplayName || property
|
|
279
|
+
{{ handleDisplayName || property['displayName'] }}
|
|
280
280
|
</VcCheckbox>
|
|
281
281
|
</Field>
|
|
282
282
|
|
|
283
283
|
<Field
|
|
284
|
-
v-else-if="property
|
|
284
|
+
v-else-if="property['valueType'] === 'Html'"
|
|
285
285
|
v-slot="{ errorMessage, handleChange }"
|
|
286
|
-
:name="property
|
|
286
|
+
:name="property['displayName'] || property['name']"
|
|
287
287
|
:modelValue="getter(property)"
|
|
288
288
|
:rules="rules"
|
|
289
289
|
>
|
|
290
290
|
<VcEditor
|
|
291
291
|
v-bind="$attrs"
|
|
292
|
-
:label="handleDisplayName || property
|
|
293
|
-
:modelValue="getter(property)"
|
|
292
|
+
:label="handleDisplayName || property['displayName']"
|
|
293
|
+
:modelValue="(getter(property) as string | number | Date)"
|
|
294
294
|
@update:modelValue="
|
|
295
295
|
(e) => {
|
|
296
296
|
handleChange(e);
|
|
297
297
|
setter(property, e);
|
|
298
298
|
}
|
|
299
299
|
"
|
|
300
|
-
:required="property
|
|
300
|
+
:required="property['required'] || property['isRequired']"
|
|
301
301
|
:placeholder="handleDisplayName || 'Add value'"
|
|
302
302
|
:disabled="disabled"
|
|
303
|
-
:name="property
|
|
303
|
+
:name="property['displayName'] || property['name']"
|
|
304
304
|
:error-message="errorMessage"
|
|
305
305
|
>
|
|
306
306
|
</VcEditor>
|
|
@@ -311,6 +311,7 @@
|
|
|
311
311
|
import { ref, onMounted, computed } from "vue";
|
|
312
312
|
import { useI18n } from "@/core/composables";
|
|
313
313
|
import { Field } from "vee-validate";
|
|
314
|
+
import { VcDynamicPropertyProps } from "@/ui/components/organisms/vc-dynamic-property/vc-dynamic-property-model";
|
|
314
315
|
|
|
315
316
|
type IValidationRules = {
|
|
316
317
|
required?: boolean;
|
|
@@ -324,38 +325,9 @@ interface IDisplayName {
|
|
|
324
325
|
name?: string;
|
|
325
326
|
}
|
|
326
327
|
|
|
327
|
-
const props = defineProps({
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
default: () => ({}),
|
|
331
|
-
},
|
|
332
|
-
|
|
333
|
-
dictionaries: {
|
|
334
|
-
type: Object,
|
|
335
|
-
default: () => ({}),
|
|
336
|
-
},
|
|
337
|
-
|
|
338
|
-
getter: {
|
|
339
|
-
type: Function,
|
|
340
|
-
},
|
|
341
|
-
|
|
342
|
-
optionsGetter: {
|
|
343
|
-
type: Function,
|
|
344
|
-
},
|
|
345
|
-
|
|
346
|
-
setter: {
|
|
347
|
-
type: Function,
|
|
348
|
-
},
|
|
349
|
-
|
|
350
|
-
culture: {
|
|
351
|
-
type: String,
|
|
352
|
-
default: "en-US",
|
|
353
|
-
},
|
|
354
|
-
|
|
355
|
-
disabled: {
|
|
356
|
-
type: Boolean,
|
|
357
|
-
default: false,
|
|
358
|
-
},
|
|
328
|
+
const props = withDefaults(defineProps<VcDynamicPropertyProps>(), {
|
|
329
|
+
culture: "en-US",
|
|
330
|
+
disabled: false,
|
|
359
331
|
});
|
|
360
332
|
|
|
361
333
|
const { locale, te, t } = useI18n();
|
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
>
|
|
11
11
|
<VcImage aspect="1x1" :src="image.url" background="contain"></VcImage>
|
|
12
12
|
<div class="vc-gallery-item__overlay">
|
|
13
|
-
<div class=
|
|
13
|
+
<div class="tw-flex">
|
|
14
14
|
<VcIcon
|
|
15
15
|
v-if="!readonly && !disableDrag"
|
|
16
16
|
class="vc-gallery-item__move"
|
|
@@ -21,7 +21,7 @@
|
|
|
21
21
|
{{ image.name }}
|
|
22
22
|
</div>
|
|
23
23
|
</div>
|
|
24
|
-
<div class=
|
|
24
|
+
<div class="tw-flex tw-grow tw-basis-0 tw-items-center tw-justify-around">
|
|
25
25
|
<div
|
|
26
26
|
class="vc-gallery-item__button"
|
|
27
27
|
@click="$emit('preview', image)"
|
|
@@ -63,27 +63,37 @@
|
|
|
63
63
|
<script lang="ts" setup>
|
|
64
64
|
import { ref } from "vue";
|
|
65
65
|
import { clickOutside as vClickOutside } from "@/core/directives";
|
|
66
|
+
import { IImage } from "@/core/types";
|
|
66
67
|
|
|
67
|
-
|
|
68
|
-
image
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
default: () => ({}),
|
|
81
|
-
},
|
|
68
|
+
export interface Props {
|
|
69
|
+
image?: IImage | undefined;
|
|
70
|
+
readonly?: boolean | undefined;
|
|
71
|
+
actions?:
|
|
72
|
+
| {
|
|
73
|
+
name?: string | undefined;
|
|
74
|
+
preview: boolean | undefined;
|
|
75
|
+
edit: boolean | undefined;
|
|
76
|
+
remove: boolean | undefined;
|
|
77
|
+
}
|
|
78
|
+
| undefined;
|
|
79
|
+
disableDrag?: boolean | undefined;
|
|
80
|
+
}
|
|
82
81
|
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
82
|
+
withDefaults(defineProps<Props>(), {
|
|
83
|
+
image: () => ({
|
|
84
|
+
sortOrder: undefined,
|
|
85
|
+
title: undefined,
|
|
86
|
+
name: undefined,
|
|
87
|
+
url: undefined,
|
|
88
|
+
}),
|
|
89
|
+
readonly: false,
|
|
90
|
+
actions: () => ({
|
|
91
|
+
name: undefined,
|
|
92
|
+
preview: undefined,
|
|
93
|
+
edit: undefined,
|
|
94
|
+
remove: undefined,
|
|
95
|
+
}),
|
|
96
|
+
disableDrag: false,
|
|
87
97
|
});
|
|
88
98
|
|
|
89
99
|
defineEmits(["preview", "edit", "remove"]);
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { ComponentPublicInstance } from "vue";
|
|
2
|
+
import { VcGalleryProps } from "./vc-gallery-model";
|
|
3
|
+
import { ComponentConstructor } from "@/ui/types/ts-helpers";
|
|
4
|
+
import Gallery from "./vc-gallery.vue";
|
|
5
|
+
export const VcGallery: ComponentConstructor<
|
|
6
|
+
ComponentPublicInstance<VcGalleryProps>
|
|
7
|
+
> = Gallery;
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import { IImage } from "@/core/types";
|
|
2
|
+
import { VNode } from "vue";
|
|
3
|
+
|
|
4
|
+
export interface VcGalleryProps {
|
|
5
|
+
images?: IImage[] | undefined;
|
|
6
|
+
disabled?: boolean | undefined;
|
|
7
|
+
required?: boolean | undefined;
|
|
8
|
+
label?: string | undefined;
|
|
9
|
+
tooltip?: string | undefined;
|
|
10
|
+
tooltipIcon?: string | undefined;
|
|
11
|
+
uploadIcon?: string | undefined;
|
|
12
|
+
multiple?: boolean | undefined;
|
|
13
|
+
variant?: "gallery" | "file-upload" | undefined;
|
|
14
|
+
itemActions?: {
|
|
15
|
+
name?: string | undefined;
|
|
16
|
+
preview: boolean | undefined;
|
|
17
|
+
edit: boolean | undefined;
|
|
18
|
+
remove: boolean | undefined;
|
|
19
|
+
};
|
|
20
|
+
disableDrag?: boolean | undefined;
|
|
21
|
+
hideAfterUpload?: boolean | undefined;
|
|
22
|
+
rules?: string | Record<string, unknown> | undefined;
|
|
23
|
+
name?: string | undefined;
|
|
24
|
+
onUpload?: (files: FileList) => void;
|
|
25
|
+
onSort?: (sorted: IImage[]) => void;
|
|
26
|
+
"onItem:edit"?: (image: IImage) => void;
|
|
27
|
+
"onItem:remove"?: (image: IImage) => void;
|
|
28
|
+
"onItem:move"?: (image: IImage) => void;
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
export interface VcGallerySlots {
|
|
32
|
+
default: () => VNode[];
|
|
33
|
+
}
|
|
@@ -10,10 +10,10 @@
|
|
|
10
10
|
</VcLabel>
|
|
11
11
|
|
|
12
12
|
<template v-if="(images && images.length) || !disabled">
|
|
13
|
-
<div class=
|
|
13
|
+
<div class="tw-flex tw-flex-wrap">
|
|
14
14
|
<draggable
|
|
15
15
|
:list="images"
|
|
16
|
-
class=
|
|
16
|
+
class="tw-flex tw-flex-wrap tw-w-full"
|
|
17
17
|
tag="transition-group"
|
|
18
18
|
v-bind="dragOptions"
|
|
19
19
|
@change="updateOrder"
|
|
@@ -49,7 +49,7 @@
|
|
|
49
49
|
</draggable>
|
|
50
50
|
</div>
|
|
51
51
|
</template>
|
|
52
|
-
<div v-else class=
|
|
52
|
+
<div v-else class="tw-flex tw-justify-center tw-p-5">
|
|
53
53
|
<VcHint>Gallery is empty</VcHint>
|
|
54
54
|
</div>
|
|
55
55
|
|
|
@@ -63,94 +63,35 @@
|
|
|
63
63
|
</template>
|
|
64
64
|
|
|
65
65
|
<script lang="ts" setup>
|
|
66
|
-
import { computed,
|
|
66
|
+
import { computed, ref } from "vue";
|
|
67
67
|
import { VcLabel, VcFileUpload } from "@/ui/components";
|
|
68
68
|
import VcGalleryItem from "./_internal/vc-gallery-item/vc-gallery-item.vue";
|
|
69
69
|
import VcGalleryPreview from "./_internal/vc-gallery-preview/vc-gallery-preview.vue";
|
|
70
|
-
import {
|
|
71
|
-
|
|
72
|
-
const props = defineProps({
|
|
73
|
-
images:
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
label: {
|
|
89
|
-
type: String,
|
|
90
|
-
default: undefined,
|
|
91
|
-
},
|
|
92
|
-
|
|
93
|
-
tooltip: {
|
|
94
|
-
type: String,
|
|
95
|
-
default: undefined,
|
|
96
|
-
},
|
|
97
|
-
|
|
98
|
-
tooltipIcon: {
|
|
99
|
-
type: String,
|
|
100
|
-
default: "fas fa-info",
|
|
101
|
-
},
|
|
102
|
-
|
|
103
|
-
uploadIcon: {
|
|
104
|
-
type: String,
|
|
105
|
-
default: "fas fa-upload",
|
|
106
|
-
},
|
|
107
|
-
|
|
108
|
-
multiple: {
|
|
109
|
-
type: Boolean,
|
|
110
|
-
default: false,
|
|
111
|
-
},
|
|
112
|
-
|
|
113
|
-
variant: {
|
|
114
|
-
type: String,
|
|
115
|
-
default: "gallery",
|
|
116
|
-
},
|
|
117
|
-
|
|
118
|
-
itemActions: {
|
|
119
|
-
type: Object,
|
|
120
|
-
default: () => ({
|
|
121
|
-
preview: true,
|
|
122
|
-
edit: true,
|
|
123
|
-
remove: true,
|
|
124
|
-
}),
|
|
125
|
-
},
|
|
126
|
-
|
|
127
|
-
disableDrag: {
|
|
128
|
-
type: Boolean,
|
|
129
|
-
default: false,
|
|
130
|
-
},
|
|
131
|
-
|
|
132
|
-
hideAfterUpload: {
|
|
133
|
-
type: Boolean,
|
|
134
|
-
default: false,
|
|
135
|
-
},
|
|
136
|
-
|
|
137
|
-
rules: {
|
|
138
|
-
type: [String, Object],
|
|
139
|
-
},
|
|
140
|
-
|
|
141
|
-
name: {
|
|
142
|
-
type: String,
|
|
143
|
-
default: "Gallery",
|
|
144
|
-
},
|
|
70
|
+
import { VcGalleryProps } from "@/ui/components/organisms/vc-gallery/vc-gallery-model";
|
|
71
|
+
|
|
72
|
+
const props = withDefaults(defineProps<VcGalleryProps>(), {
|
|
73
|
+
images: () => [],
|
|
74
|
+
disabled: false,
|
|
75
|
+
required: false,
|
|
76
|
+
tooltipIcon: "fas fa-info",
|
|
77
|
+
uploadIcon: "fas fa-upload",
|
|
78
|
+
multiple: false,
|
|
79
|
+
variant: "gallery",
|
|
80
|
+
itemActions: () => ({
|
|
81
|
+
preview: true,
|
|
82
|
+
edit: true,
|
|
83
|
+
remove: true,
|
|
84
|
+
}),
|
|
85
|
+
disableDrag: false,
|
|
86
|
+
hideAfterUpload: false,
|
|
87
|
+
name: "Gallery",
|
|
145
88
|
});
|
|
146
89
|
|
|
147
90
|
const emit = defineEmits([
|
|
148
91
|
"upload",
|
|
149
92
|
"sort",
|
|
150
|
-
"item:preview",
|
|
151
93
|
"item:edit",
|
|
152
94
|
"item:remove",
|
|
153
|
-
"item:move",
|
|
154
95
|
]);
|
|
155
96
|
|
|
156
97
|
const preview = ref(false);
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { ComponentPublicInstance } from "vue";
|
|
2
|
+
import { VcLoginFormProps } from "./vc-login-form-model";
|
|
3
|
+
import { ComponentConstructor } from "@/ui/types/ts-helpers";
|
|
4
|
+
import LoginForm from "./vc-login-form.vue";
|
|
5
|
+
export const VcLoginForm: ComponentConstructor<
|
|
6
|
+
ComponentPublicInstance<VcLoginFormProps>
|
|
7
|
+
> = LoginForm;
|