@voicenter-team/voicenter-ui-plus 3.3.4 → 3.4.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/library/components/VcModal/VcConfirmModal.vue.mjs +30 -12
- package/library/components/VcPdfViewer/VcPdfDocument.vue.mjs +2 -2
- package/library/components/VcPdfViewer/VcPdfDocumentPage.vue.mjs +3 -3
- package/library/components/VcPdfViewer/pdf.worker.min.js +4 -4
- package/library/components/VcPdfViewer/pdfjslib.mjs +2 -2
- package/library/composables/useConfirmModal.mjs +8 -0
- package/library/types/components/VcPdfViewer/VcPdfDocument.vue.d.ts +2 -2
- package/library/types/components/VcPdfViewer/VcPdfDocumentPage.vue.d.ts +1 -1
- package/library/types/components/VcPdfViewer/pdfjslib.d.ts +2 -2
- package/library/types/composables/useConfirmModal.d.ts +9 -0
- package/package.json +3 -3
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent, computed, openBlock, createBlock, withCtx, createElementVNode, createTextVNode, toDisplayString, resolveDynamicComponent, createCommentVNode, createVNode } from "vue";
|
|
1
|
+
import { defineComponent, computed, openBlock, createBlock, withCtx, createElementVNode, normalizeClass, createTextVNode, toDisplayString, resolveDynamicComponent, createCommentVNode, createVNode } from "vue";
|
|
2
2
|
import { confirmModalState } from "../../composables/useConfirmModal.mjs";
|
|
3
3
|
import _sfc_main$1 from "./VcModal.vue.mjs";
|
|
4
4
|
import '../../assets/components/VcButton/VcButton.css';import '../../assets/components/VcModal/VcModal.css';/* empty css */
|
|
@@ -7,12 +7,12 @@ import _sfc_main$2 from "../VcButton/VcButton.vue.mjs";
|
|
|
7
7
|
/* empty css */
|
|
8
8
|
const _hoisted_1 = { class: "w-full flex items-center justify-center" };
|
|
9
9
|
const _hoisted_2 = { class: "mx-1 text-lg font-bold md:font-medium text-center" };
|
|
10
|
-
const _hoisted_3 = {
|
|
11
|
-
const _hoisted_4 = { class: "w-64 text-base font-normal text-default-text text-center" };
|
|
12
|
-
const _hoisted_5 = {
|
|
10
|
+
const _hoisted_3 = {
|
|
13
11
|
class: "w-full flex justify-between items-center gap-4",
|
|
14
12
|
"data-test": "modal-action-buttons"
|
|
15
13
|
};
|
|
14
|
+
const CONTENT_WRAPPER_CLASS = "w-full flex flex-col items-center justify-center py-6";
|
|
15
|
+
const CONTENT_CLASS = "w-64 text-base font-normal text-default-text text-center";
|
|
16
16
|
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
17
17
|
__name: "VcConfirmModal",
|
|
18
18
|
props: {
|
|
@@ -42,6 +42,18 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
42
42
|
const renderContent = computed(() => {
|
|
43
43
|
return confirmModalState.value.renderContent;
|
|
44
44
|
});
|
|
45
|
+
const showMessage = computed(() => {
|
|
46
|
+
return confirmModalState.value.showMessage;
|
|
47
|
+
});
|
|
48
|
+
const contentWrapperClass = computed(() => {
|
|
49
|
+
return confirmModalState.value.contentWrapperClass || CONTENT_WRAPPER_CLASS;
|
|
50
|
+
});
|
|
51
|
+
const contentClass = computed(() => {
|
|
52
|
+
return confirmModalState.value.contentClass || CONTENT_CLASS;
|
|
53
|
+
});
|
|
54
|
+
const buttonSize = computed(() => {
|
|
55
|
+
return confirmModalState.value.buttonSize || "middle";
|
|
56
|
+
});
|
|
45
57
|
const type = computed(() => {
|
|
46
58
|
return confirmModalState.value.type;
|
|
47
59
|
});
|
|
@@ -111,8 +123,9 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
111
123
|
])
|
|
112
124
|
]),
|
|
113
125
|
footer: withCtx(() => [
|
|
114
|
-
createElementVNode("div",
|
|
126
|
+
createElementVNode("div", _hoisted_3, [
|
|
115
127
|
createVNode(_sfc_main$2, {
|
|
128
|
+
size: buttonSize.value,
|
|
116
129
|
icon: "vc-icon-close",
|
|
117
130
|
type: "outline",
|
|
118
131
|
color: "secondary",
|
|
@@ -123,10 +136,11 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
123
136
|
createTextVNode(toDisplayString(cancelLabel.value), 1)
|
|
124
137
|
]),
|
|
125
138
|
_: 1
|
|
126
|
-
}),
|
|
139
|
+
}, 8, ["size"]),
|
|
127
140
|
createVNode(_sfc_main$2, {
|
|
128
141
|
icon: buttonConfirmIcon.value,
|
|
129
142
|
color: buttonConfirmColor.value,
|
|
143
|
+
size: buttonSize.value,
|
|
130
144
|
"data-test-name": "button-confirm",
|
|
131
145
|
onClick: confirm
|
|
132
146
|
}, {
|
|
@@ -134,16 +148,20 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
134
148
|
createTextVNode(toDisplayString(confirmLabel.value), 1)
|
|
135
149
|
]),
|
|
136
150
|
_: 1
|
|
137
|
-
}, 8, ["icon", "color"])
|
|
151
|
+
}, 8, ["icon", "color", "size"])
|
|
138
152
|
])
|
|
139
153
|
]),
|
|
140
154
|
default: withCtx(() => [
|
|
141
|
-
createElementVNode("div",
|
|
142
|
-
|
|
143
|
-
|
|
155
|
+
createElementVNode("div", {
|
|
156
|
+
class: normalizeClass(contentWrapperClass.value)
|
|
157
|
+
}, [
|
|
158
|
+
createElementVNode("div", {
|
|
159
|
+
class: normalizeClass(contentClass.value)
|
|
160
|
+
}, [
|
|
161
|
+
createTextVNode(toDisplayString(showMessage.value ? message.value || defaultMessage.value : "") + " ", 1),
|
|
144
162
|
renderContent.value ? (openBlock(), createBlock(resolveDynamicComponent(renderContent.value), { key: 0 })) : createCommentVNode("", true)
|
|
145
|
-
])
|
|
146
|
-
])
|
|
163
|
+
], 2)
|
|
164
|
+
], 2)
|
|
147
165
|
]),
|
|
148
166
|
_: 1
|
|
149
167
|
}, 8, ["append-to", "visible"]);
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import '../../assets/components/VcPdfViewer/VcPdfDocument.css';
|
|
2
|
-
import { defineComponent, ref, computed, watch, onMounted, onBeforeUnmount, openBlock, createElementBlock, createVNode, withCtx, createElementVNode, Fragment, renderList, createBlock, createTextVNode, toDisplayString, createCommentVNode, nextTick } from "vue";
|
|
2
|
+
import { defineComponent, ref, shallowRef, computed, watch, onMounted, onBeforeUnmount, openBlock, createElementBlock, createVNode, withCtx, createElementVNode, Fragment, renderList, createBlock, createTextVNode, toDisplayString, createCommentVNode, nextTick } from "vue";
|
|
3
3
|
import _sfc_main$1 from "./VcPdfDocumentCard.vue.mjs";
|
|
4
4
|
import '../../assets/components/VcModal/VcModal.css';import '../../assets/components/VcPdfViewer/VcPdfDocumentViewerFooter.css';import '../../assets/components/VcPdfViewer/VcPdfDocumentPage.css';import '../../assets/components/VcPdfViewer/VcPdfDocumentCard.css';/* empty css */
|
|
5
5
|
import { loadPdf } from "./pdfjslib.mjs";
|
|
@@ -32,7 +32,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
32
32
|
const props = __props;
|
|
33
33
|
const emit = __emit;
|
|
34
34
|
const pdfViewerEl = ref();
|
|
35
|
-
const pdfDocument =
|
|
35
|
+
const pdfDocument = shallowRef();
|
|
36
36
|
const progress = ref(0);
|
|
37
37
|
const pageCount = ref(0);
|
|
38
38
|
const currentPage = ref(0);
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import '../../assets/components/VcPdfViewer/VcPdfDocumentPage.css';
|
|
2
|
-
import { defineComponent, ref, watch, onMounted, withDirectives, openBlock, createElementBlock, normalizeStyle, createElementVNode, createVNode } from "vue";
|
|
2
|
+
import { defineComponent, ref, shallowRef, watch, onMounted, withDirectives, openBlock, createElementBlock, normalizeStyle, createElementVNode, createVNode } from "vue";
|
|
3
3
|
import { resize } from "../../directives/resize.mjs";
|
|
4
4
|
import { loadPdf } from "./pdfjslib.mjs";
|
|
5
5
|
import { getResolutionScale, clearAnnotationElement, clearCanvasElement } from "./utils.mjs";
|
|
@@ -24,7 +24,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
24
24
|
const canvasRef = ref();
|
|
25
25
|
const annotationLayerRef = ref();
|
|
26
26
|
const loading = ref(false);
|
|
27
|
-
const documentPage =
|
|
27
|
+
const documentPage = shallowRef(void 0);
|
|
28
28
|
function updateSize() {
|
|
29
29
|
if (!documentPage.value) {
|
|
30
30
|
return;
|
|
@@ -112,7 +112,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
112
112
|
page,
|
|
113
113
|
linkService,
|
|
114
114
|
downloadManager: void 0,
|
|
115
|
-
|
|
115
|
+
renderForms: false
|
|
116
116
|
};
|
|
117
117
|
pdf.AnnotationLayer.render(params);
|
|
118
118
|
});
|