@beterdichtbij/component-library 0.35.2 → 0.36.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/bd-component-lib.cjs.js +29 -29
- package/dist/bd-component-lib.es.js +3562 -3438
- package/dist/bd-component-lib.umd.js +31 -31
- package/dist/components/organisms/BDImageAttachmentModal/BDImageAttachmentModal.vue.d.ts +11 -0
- package/dist/components/organisms/BDImageAttachmentModal/BDImageAttachmentModal.vue.d.ts.map +1 -0
- package/dist/composables/useZoom.d.ts +15 -0
- package/dist/index.d.ts +4 -2
- package/dist/scss/_modal.scss +93 -0
- package/package.json +1 -1
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
declare const _sfc_main: import("vue").DefineComponent<Readonly<{
|
|
2
|
+
loadingText?: any;
|
|
3
|
+
downloadText?: any;
|
|
4
|
+
}>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<Readonly<{
|
|
5
|
+
loadingText?: any;
|
|
6
|
+
downloadText?: any;
|
|
7
|
+
}>>>, {
|
|
8
|
+
readonly loadingText?: any;
|
|
9
|
+
readonly downloadText?: any;
|
|
10
|
+
}, {}>;
|
|
11
|
+
export default _sfc_main;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"BDImageAttachmentModal.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/organisms/BDImageAttachmentModal/BDImageAttachmentModal.vue"],"names":[],"mappings":"AAAA,OAAO,SAAS,MAAM,mIAAmI,CAAC;AAC1J,cAAc,mIAAmI,CAAC;AAClJ,eAAe,SAAS,CAAC"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
export default function useZoom(): {
|
|
2
|
+
zoom: import("vue").Ref<number>;
|
|
3
|
+
mouseDown: import("vue").Ref<boolean>;
|
|
4
|
+
imageHolderRef: import("vue").Ref<HTMLElement | null>;
|
|
5
|
+
pos: import("vue").Ref<{
|
|
6
|
+
top: number;
|
|
7
|
+
left: number;
|
|
8
|
+
x: number;
|
|
9
|
+
y: number;
|
|
10
|
+
}>;
|
|
11
|
+
SetZoom: import("vue").ComputedRef<string>;
|
|
12
|
+
OnMouseDown: (e: MouseEvent) => void;
|
|
13
|
+
OnMouseMove: (e: MouseEvent) => void;
|
|
14
|
+
OnMouseUp: () => void;
|
|
15
|
+
};
|
package/dist/index.d.ts
CHANGED
|
@@ -30,16 +30,18 @@ import BDAttachmentPreviewList from "./components/molecules/BDAttachmentPreviewL
|
|
|
30
30
|
import BDImageAttachmentPreviewList from "./components/molecules/BDImageAttachmentPreviewList/BDImageAttachmentPreviewList.vue";
|
|
31
31
|
import BDChatCloud from "./components/molecules/BDChatCloud/BDChatCloud.vue";
|
|
32
32
|
import BDTable from "./components/molecules/BDTable/BDTable.vue";
|
|
33
|
+
import BDChangePasswordTemplate from "./components/organisms/BDChangePasswordTemplate/BDChangePasswordTemplate.vue";
|
|
33
34
|
import BDDropdown from "./components/organisms/BDDropdown/BDDropdown.vue";
|
|
34
35
|
import BDHeader from "./components/organisms/BDHeader/BDHeader.vue";
|
|
36
|
+
import BDImageAttachmentModal from "./components/organisms/BDImageAttachmentModal/BDImageAttachmentModal.vue";
|
|
35
37
|
import BDModal from "./components/organisms/BDModal/BDModal.vue";
|
|
36
|
-
import BDChangePasswordTemplate from "./components/organisms/BDChangePasswordTemplate/BDChangePasswordTemplate.vue";
|
|
37
38
|
import { useModal } from "./composables/useModal";
|
|
38
39
|
import { useServerErrors } from "./composables/useServerErrors";
|
|
39
40
|
import { useToaster } from "./composables/useToaster";
|
|
40
41
|
import { useValidation } from "./composables/useValidation";
|
|
42
|
+
import useZoom from "./composables/useZoom";
|
|
41
43
|
import { vBdTooltip } from "./directives/BDTooltip";
|
|
42
44
|
import { type ChangePasswordData } from './types/ChangePasswordData';
|
|
43
45
|
import { type ValidationChangePasswordData } from './types/ValidationChangePasswordData';
|
|
44
46
|
import { getDisplayDate } from "./utils/display-date";
|
|
45
|
-
export { BDChatCloud, BDCol, BDContainer, BDRow, BDButton, BDLogo, BDLink, BDDropdownItem, BDDropdown, BDAlert, BDProfileImage, BDZoomslider, BDCard, BDChangePasswordTemplate, BDCollapsableCard, BDModal, BDFormInput, BDFormInvalidFeedback, BDInputGroup, BDBadge, BDForm, BDPagination, BDDropzone, BDMarkdownEditor, BDFormSelect, BDFormCheckbox, BDArticle, BDUser, BDToast, BDAttachmentPreviewList, BDImageAttachmentPreviewList, BDHeader, BDMobileMenu, BDTable, BDPill, IconAcademy, IconArrowDown, IconArrowUp, IconAttachment, IconBold, IconBulletList, IconCalendar, IconCardView, IconCaretDown, IconCaretLeft, IconCaretRight, IconCheck, IconClose, IconComment, IconDownloadImage, IconEdit, IconError, IconEyeShow, IconEyeSlash, IconFile, IconHyperlink, IconInfo, IconItalic, IconListView, IconMenu, IconOrderedList, IconRemove, IconService, IconSort, IconSortAsc, IconSortDesc, IconSortNone, IconTriangleExclamation, IconUnderline, IconContactPerson, ChangePasswordData, ValidationChangePasswordData, useModal, useServerErrors, useToaster, useValidation, vBdTooltip, getDisplayDate, };
|
|
47
|
+
export { BDChatCloud, BDCol, BDContainer, BDRow, BDButton, BDLogo, BDLink, BDDropdownItem, BDDropdown, BDAlert, BDProfileImage, BDZoomslider, BDCard, BDChangePasswordTemplate, BDCollapsableCard, BDModal, BDFormInput, BDFormInvalidFeedback, BDInputGroup, BDBadge, BDForm, BDPagination, BDDropzone, BDMarkdownEditor, BDFormSelect, BDFormCheckbox, BDArticle, BDUser, BDToast, BDAttachmentPreviewList, BDImageAttachmentPreviewList, BDHeader, BDMobileMenu, BDTable, BDPill, BDImageAttachmentModal, IconAcademy, IconArrowDown, IconArrowUp, IconAttachment, IconBold, IconBulletList, IconCalendar, IconCardView, IconCaretDown, IconCaretLeft, IconCaretRight, IconCheck, IconClose, IconComment, IconDownloadImage, IconEdit, IconError, IconEyeShow, IconEyeSlash, IconFile, IconHyperlink, IconInfo, IconItalic, IconListView, IconMenu, IconOrderedList, IconRemove, IconService, IconSort, IconSortAsc, IconSortDesc, IconSortNone, IconTriangleExclamation, IconUnderline, IconContactPerson, ChangePasswordData, ValidationChangePasswordData, useModal, useServerErrors, useToaster, useValidation, useZoom, vBdTooltip, getDisplayDate, };
|
package/dist/scss/_modal.scss
CHANGED
|
@@ -151,4 +151,97 @@
|
|
|
151
151
|
}
|
|
152
152
|
}
|
|
153
153
|
}
|
|
154
|
+
}
|
|
155
|
+
|
|
156
|
+
#image-attachment-modal {
|
|
157
|
+
&.modal-lg {
|
|
158
|
+
--bs-modal-width: 1200px;
|
|
159
|
+
}
|
|
160
|
+
|
|
161
|
+
.image-preview-image-holder {
|
|
162
|
+
width: 100%;
|
|
163
|
+
height: 100%;
|
|
164
|
+
overflow: auto;
|
|
165
|
+
cursor: grab;
|
|
166
|
+
-webkit-touch-callout: none;
|
|
167
|
+
-webkit-user-select: none;
|
|
168
|
+
-khtml-user-select: none;
|
|
169
|
+
-moz-user-select: none;
|
|
170
|
+
-ms-user-select: none;
|
|
171
|
+
user-select: none;
|
|
172
|
+
margin-left: auto;
|
|
173
|
+
margin-right: auto;
|
|
174
|
+
|
|
175
|
+
.image-preview-modal {
|
|
176
|
+
margin: 0px auto;
|
|
177
|
+
display: block;
|
|
178
|
+
user-select: none;
|
|
179
|
+
width: auto;
|
|
180
|
+
height: auto;
|
|
181
|
+
max-width: 600px;
|
|
182
|
+
max-height: 400px;
|
|
183
|
+
transition: transform .2s;
|
|
184
|
+
transform-origin: top;
|
|
185
|
+
z-index: 1;
|
|
186
|
+
|
|
187
|
+
@include media-breakpoint-down(sm) {
|
|
188
|
+
max-width: 300px;
|
|
189
|
+
max-height: 200px;
|
|
190
|
+
}
|
|
191
|
+
|
|
192
|
+
// Zoom didn't work when the styling was incorporated into the Vue component.
|
|
193
|
+
&.zoom {
|
|
194
|
+
&-1 {
|
|
195
|
+
transform: scale(1.25);
|
|
196
|
+
}
|
|
197
|
+
|
|
198
|
+
&-2 {
|
|
199
|
+
transform: scale(1.5);
|
|
200
|
+
}
|
|
201
|
+
|
|
202
|
+
&-3 {
|
|
203
|
+
transform: scale(1.75);
|
|
204
|
+
}
|
|
205
|
+
|
|
206
|
+
&-4 {
|
|
207
|
+
transform: scale(2);
|
|
208
|
+
}
|
|
209
|
+
}
|
|
210
|
+
}
|
|
211
|
+
}
|
|
212
|
+
|
|
213
|
+
.image-preview-bd-zoom-slider, .download-image {
|
|
214
|
+
width: 250px;
|
|
215
|
+
margin-left: auto;
|
|
216
|
+
margin-right: auto;
|
|
217
|
+
margin-top: 50px;
|
|
218
|
+
z-index: 2;
|
|
219
|
+
}
|
|
220
|
+
|
|
221
|
+
.download-image {
|
|
222
|
+
width: 250px;
|
|
223
|
+
display: block;
|
|
224
|
+
margin-left: auto;
|
|
225
|
+
margin-right: auto;
|
|
226
|
+
margin-top: 30px;
|
|
227
|
+
margin-bottom: 30px;
|
|
228
|
+
z-index: 3;
|
|
229
|
+
}
|
|
230
|
+
|
|
231
|
+
.show-spinner {
|
|
232
|
+
width: 100px;
|
|
233
|
+
height: 50px;
|
|
234
|
+
display: flex;
|
|
235
|
+
justify-content: center;
|
|
236
|
+
align-items: center;
|
|
237
|
+
margin: auto;
|
|
238
|
+
}
|
|
239
|
+
|
|
240
|
+
.modal-footer {
|
|
241
|
+
display: none;
|
|
242
|
+
}
|
|
243
|
+
|
|
244
|
+
a {
|
|
245
|
+
text-decoration: none;
|
|
246
|
+
}
|
|
154
247
|
}
|