@cling-se/widget 0.13.5 → 0.14.2
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/{AddClientCallout-P8T0R-6B.js → AddClientCallout-BP2ip0A4.js} +3 -3
- package/dist/{AnswerModal-BF-ZUpQ9.js → AnswerModal-C8i3ldB_.js} +4 -4
- package/dist/{AttachmentItem-DEC6rjGE.js → AttachmentItem-BrvrAMae.js} +2 -2
- package/dist/{BaseDatePicker-2uhuySby.js → BaseDatePicker-BSkAllLg.js} +556 -556
- package/dist/{BaseUpload-D1OS-EZ-.js → BaseUpload-J2v3G0-q.js} +14 -14
- package/dist/{BlockMedia-BFBeRtJx.js → BlockMedia-CAgKbN_k.js} +21 -17
- package/dist/{CCallout-CsQMsFZO.js → CCallout-D5Nk5DgN.js} +2 -2
- package/dist/CCurrencyDropdown-CGYQfYSD.js +246 -0
- package/dist/{CDropdownItem-BeK9wNHJ.js → CDropdownItem-DGES8E6l.js} +7 -5
- package/dist/{CField-TsZhnNrK.js → CFormField-CE4rV3cr.js} +66 -39
- package/dist/{CPhoneFormat-DPYhElZw.js → CPhoneFormat-DXPrTit9.js} +1 -1
- package/dist/CPriceInput-CYsf1n6T.js +112 -0
- package/dist/CTabs.vue_vue_type_style_index_0_scoped_e02a6440_lang-l0sNRNKZ.js +1 -0
- package/dist/{ClientAutocomplete-Ch2Z-VNr.js → ClientAutocomplete-DPgOfPg1.js} +2 -2
- package/dist/{ClientModal-rdb9TsyH.js → ClientModal-Dznh8Vvn.js} +44 -36
- package/dist/{ColorPicker-2gfbU60o.js → ColorPicker-CWQEE8VR.js} +1 -1
- package/dist/{CompanyModal-CNeySxNi.js → CompanyModal-CeZ3GgLu.js} +4 -4
- package/dist/{ContentWrapper-D27J_sCS.js → ContentWrapper-DW7VHTdA.js} +8 -8
- package/dist/{CoverBlockSettings-BfdJKrsq.js → CoverBlockSettings-DNSdXFgF.js} +5 -5
- package/dist/{DocAnswer-CyHASkhm.js → DocAnswer-CPttkKAJ.js} +2 -2
- package/dist/{DocDetails-8bM9dBxm.js → DocDetails-BCwWW_kM.js} +7 -7
- package/dist/{DocForm-CumvOHwl.js → DocForm-BPjC08Ic.js} +41 -39
- package/dist/{DocFormSend-CdoZy_Q2.js → DocFormSend-BaC8IJCu.js} +2 -2
- package/dist/{DocLinks-BJPADuvd.js → DocLinks-DN-S8MY_.js} +2 -2
- package/dist/{DocModalBase-Cd3zXvH_.js → DocModalBase-bFJp0T2Y.js} +1 -1
- package/dist/{DocPrint-Be4l2pra.js → DocPrint-Ci7Jyh-C.js} +20 -19
- package/dist/{DocReceipt-DmFjo26V.js → DocReceipt-BYlXr6eS.js} +6 -6
- package/dist/{DocSendReminder-CVxh_c7u.js → DocSendReminder-DFx4934a.js} +1 -1
- package/dist/{DocTextEditor-2jhWmmN2.js → DocTextEditor-idQMnlIF.js} +1086 -1057
- package/dist/{DocTimeline-Dvn690cI.js → DocTimeline-ZmGSVRUB.js} +1 -1
- package/dist/{DocumentClient-D3ESmMk1.js → DocumentClient-DTRlyvLO.js} +5 -5
- package/dist/{DocumentLayout-0-y6ChW3.js → DocumentLayout-BJAyNjNa.js} +9 -5
- package/dist/{DocumentLogotype-CHWEVOFb.js → DocumentLogotype-pDJRc6Hj.js} +3 -3
- package/dist/{DocumentVoided-CoJ6YorU.js → DocumentVoided-DfKewfe4.js} +1 -1
- package/dist/{EmbedInput-CGQJdLBd.js → EmbedInput-7hLNsnEV.js} +2 -2
- package/dist/{EmbedSettings-DRfM7EkF.js → EmbedSettings-CpL24RhA.js} +2 -2
- package/dist/{ErrorCallout-pRwrsMwI.js → ErrorCallout-CdJCe67q.js} +1 -1
- package/dist/{FilePreviewModal-4hJnwqeM.js → FilePreviewModal-B7qT3I7F.js} +2 -2
- package/dist/{Flag-CH9jX9p6.js → Flag-DwW19zju.js} +1 -1
- package/dist/{HeaderSettings-DESkxus6.js → HeaderSettings-C8SuuAwv.js} +7 -7
- package/dist/{ImageSelectModal-BczBg7pO.js → ImageSelectModal-CAOh3YHc.js} +3 -3
- package/dist/{ImageUploadWrapper-B7F5UzSa.js → ImageUploadWrapper-21yldsj9.js} +2 -2
- package/dist/{Index-Dj7XQrCX.js → Index-B0BgYtWI.js} +5 -5
- package/dist/{Index-DLX_14JW.js → Index-BC1AhlQ9.js} +6 -6
- package/dist/{Index-B77mpvaJ.js → Index-BZi6r2UN.js} +8 -8
- package/dist/{Index-CPXWFvtI.js → Index-BsD09y_2.js} +6 -6
- package/dist/{Index-DpZ0FVkb.js → Index-Bu9SdKLP.js} +1 -1
- package/dist/{Index-DRdhlnQI.js → Index-BvsqZh2A.js} +4 -4
- package/dist/{Index-Cb7AYMdp.js → Index-Bz4qd9uO.js} +5 -5
- package/dist/{Index-BkDT09xK.js → Index-C--GiPc1.js} +5 -5
- package/dist/{Index-D_21EWlr.js → Index-CC7qF0br.js} +4 -4
- package/dist/{Index-CgugegyD.js → Index-CGxOvTF4.js} +590 -694
- package/dist/{Index-C8Eykyfr.js → Index-CI7_ktvb.js} +5 -5
- package/dist/{Index-D_XxQTHL.js → Index-COJZmxkX.js} +4 -4
- package/dist/{Index-BztAYqwZ.js → Index-CObEQ6G-.js} +3 -3
- package/dist/{Index-Lwrlj4Uo.js → Index-CP2bsXd-.js} +11 -13
- package/dist/{Index-DM8XS-Lc.js → Index-CSvZBLnp.js} +3 -3
- package/dist/{Index-xVss9bbv.js → Index-Ci-hGBbC.js} +4 -4
- package/dist/{Index-CUYcsakk.js → Index-Ckzq1cEJ.js} +22 -18
- package/dist/{Index-euXfMzGE.js → Index-CoIh5y2F.js} +4 -4
- package/dist/{Index-Cs1C7d8_.js → Index-Couda8BX.js} +2 -2
- package/dist/{Index-BSApSN3a.js → Index-CvXt3dm6.js} +24 -24
- package/dist/{Index-CwOwQrDd.js → Index-D95MNzAZ.js} +4 -4
- package/dist/{Index-CRjdza18.js → Index-DB5EG4EI.js} +32 -30
- package/dist/{Index-COFOq65C.js → Index-DDvRihXA.js} +3 -3
- package/dist/{Index-BOIBgNgp.js → Index-DIAntwBs.js} +2 -2
- package/dist/{Index-BCBBrdDY.js → Index-DUdJNcDT.js} +4 -4
- package/dist/{Index-DAuSARq4.js → Index-DfANvO5d.js} +5 -5
- package/dist/{Index-DLwJlsSV.js → Index-Ds1Jv5Mr.js} +6 -6
- package/dist/{Index-CBRWEkz3.js → Index-FIWsRGmh.js} +12 -7
- package/dist/{Index-DXovv3-e.js → Index-M3b7S4YX.js} +4 -4
- package/dist/{Index-McJQllNy.js → Index-NoN1_539.js} +7 -7
- package/dist/{Index-BBWCdaFx.js → Index-UGFm4yxI.js} +14 -32
- package/dist/{Index-Dk7qSZaZ.js → Index-aCBe0dXx.js} +2 -2
- package/dist/{Index-BSizncA1.js → Index-kJFtpJEP.js} +2 -2
- package/dist/{Index-DxT6UrU3.js → Index-rQKoLISX.js} +2 -2
- package/dist/{InputToggleRow-BjSD0lth.js → InputToggleRow-Ct8rvqAF.js} +1 -1
- package/dist/{ManualPopover-CIouE65j.js → ManualPopover-B0vp9ydC.js} +1 -1
- package/dist/{MediaWrapper-DK2fsQP7.js → MediaWrapper-hmofOPLv.js} +3 -3
- package/dist/{NotBindingText-D1IUYEiC.js → NotBindingText-COpJPwHe.js} +2 -2
- package/dist/{PackageGroup-BImsltc7.js → PackageGroup-BdtslJL-.js} +5 -5
- package/dist/{PdfTerms-BzBvvuT6.js → PdfTerms-EDStBDhn.js} +2 -2
- package/dist/PdfViewer-D1_Roqu2.js +374 -0
- package/dist/{PlainHtml-J_nR1ibV.js → PlainHtml-C3JPvt4o.js} +1 -1
- package/dist/{PriceHeader-BZeaKOTy.js → PriceHeader-BdfozyN8.js} +7 -7
- package/dist/{SearchApi-Du-Lqo7R.js → SearchApi-CQtYh98a.js} +2 -2
- package/dist/{Setup-CtSIo_xU.js → Setup-DHHMT6xu.js} +1 -1
- package/dist/{CTabs.vue_vue_type_style_index_0_scoped_e02a6440_lang-B85IuuQS.js → SmartList-BXeRj5NC.js} +1 -1
- package/dist/{TermsSettings-DDHrUB_S.js → TermsSettings-D1tDAu-r.js} +3 -3
- package/dist/{ThemeColorRow-BiRPYyj_.js → ThemeColorRow-HUN-QPY_.js} +3 -3
- package/dist/{ToggleBinding-Cvd9I0Dw.js → ToggleBinding-CRoVM6Nw.js} +3 -3
- package/dist/{UploadModal-ByJeM98S.js → UploadModal-BD3pIiPT.js} +2 -2
- package/dist/{VideoPlayerInput-C1PiFaBo.js → VideoPlayerInput-QFJfPoCf.js} +3 -3
- package/dist/{VideoPlayerSettings-C9vt7Twd.js → VideoPlayerSettings-CGq--niu.js} +2 -2
- package/dist/{VideoSelectModal-cEDZv03c.js → VideoSelectModal-B61rBqdH.js} +3 -3
- package/dist/{answerDocumentMixin-QbMot2bf.js → answerDocumentMixin-DiONfM1s.js} +3 -3
- package/dist/{debounce-CaZBFRFZ.js → debounce-BIchuVwa.js} +11 -11
- package/dist/dom-CJxkno7i.js +91 -0
- package/dist/{focusDrawerMixin-D-mqPE02.js → focusDrawerMixin-CzvgKsOZ.js} +1 -1
- package/dist/{formComponentsInstall-BdhIOhq5.js → formComponentsInstall-EQLbqYqI.js} +201 -231
- package/dist/{formDrawerState-CcDRv2mi.js → formDrawerState-CiKGHdNH.js} +1 -1
- package/dist/{formValidationMixin-sp3Q6-ER.js → formValidationMixin-5BVcxu38.js} +2 -2
- package/dist/{index-CJTuXpCD.js → index-BYTRIZIz.js} +1 -1
- package/dist/{index-DEWMCZz4.js → index-Be__C37A.js} +1 -1
- package/dist/{index-DuCwf2mg.js → index-CUydiL8B.js} +16 -16
- package/dist/{index-BjZuADtN.js → index-DH6SCEKQ.js} +13 -13
- package/dist/{index-BWmMho6V.js → index-gtVGRKIX.js} +9 -9
- package/dist/{index-BABEaO8N.js → index-tNIrTnCx.js} +35 -35
- package/dist/index.es.js +3 -3
- package/dist/index.umd.js +134 -142
- package/dist/{main-DQ6SH_E_.js → main-Bp2qcma0.js} +4209 -4198
- package/dist/{mapFormMixin-2SoyKxW2.js → mapFormMixin-Ce3_WIKw.js} +1 -1
- package/dist/omit-21u5fFMx.js +31 -0
- package/dist/{publicSenderState-CKGe1ejF.js → publicSenderState-BcN9kJJr.js} +1 -1
- package/dist/style.css +2 -2
- package/dist/{throttle-BeZ_TpQb.js → throttle-CfPxqhW_.js} +2 -2
- package/dist/{tinycolor-C3JU9Hqu.js → tinycolor-DNK6zGoq.js} +1 -1
- package/dist/tippy.esm-B5TcTBWX.js +1799 -0
- package/dist/{utils-D2JfcR6v.js → utils-GzwJPAEe.js} +1 -1
- package/dist/{omit-BjdTqooP.js → vuedraggable.umd-2pmrPYml.js} +497 -525
- package/package.json +1 -1
- package/dist/BaseInput-BtgFVDxx.js +0 -364
- package/dist/PdfViewer-Dq0Mc-WC.js +0 -247
- package/dist/dom-CPYqHOIw.js +0 -69
- package/dist/tippy.esm-DowQrfWM.js +0 -2039
package/package.json
CHANGED
|
@@ -1,364 +0,0 @@
|
|
|
1
|
-
import { n as h, T as m } from "./main-DQ6SH_E_.js";
|
|
2
|
-
function d(t, e, i) {
|
|
3
|
-
this.$children.forEach((a) => {
|
|
4
|
-
a.$options.componentName === t ? a.$emit(...[e].concat(i)) : d.apply(a, [t, e].concat([i]));
|
|
5
|
-
});
|
|
6
|
-
}
|
|
7
|
-
const x = {
|
|
8
|
-
methods: {
|
|
9
|
-
dispatch(t, e, i) {
|
|
10
|
-
let a = this.$parent || this.$root, n = a.$options.componentName;
|
|
11
|
-
for (; a && (!n || n !== t); )
|
|
12
|
-
a = a.$parent, a && (n = a.$options.componentName);
|
|
13
|
-
a && a.$emit(...[e].concat(i));
|
|
14
|
-
},
|
|
15
|
-
broadcast(t, e, i) {
|
|
16
|
-
d.call(this, t, e, i);
|
|
17
|
-
}
|
|
18
|
-
}
|
|
19
|
-
};
|
|
20
|
-
let l;
|
|
21
|
-
const g = `
|
|
22
|
-
height:0 !important;
|
|
23
|
-
visibility:hidden !important;
|
|
24
|
-
overflow:hidden !important;
|
|
25
|
-
position:absolute !important;
|
|
26
|
-
z-index:-1000 !important;
|
|
27
|
-
top:0 !important;
|
|
28
|
-
right:0 !important
|
|
29
|
-
`, b = [
|
|
30
|
-
"letter-spacing",
|
|
31
|
-
"line-height",
|
|
32
|
-
"padding-top",
|
|
33
|
-
"padding-bottom",
|
|
34
|
-
"font-family",
|
|
35
|
-
"font-weight",
|
|
36
|
-
"font-size",
|
|
37
|
-
"text-rendering",
|
|
38
|
-
"text-transform",
|
|
39
|
-
"width",
|
|
40
|
-
"text-indent",
|
|
41
|
-
"padding-left",
|
|
42
|
-
"padding-right",
|
|
43
|
-
"border-width",
|
|
44
|
-
"box-sizing"
|
|
45
|
-
];
|
|
46
|
-
function y(t) {
|
|
47
|
-
const e = window.getComputedStyle(t), i = e.getPropertyValue("box-sizing"), a = parseFloat(e.getPropertyValue("padding-bottom")) + parseFloat(e.getPropertyValue("padding-top")), n = parseFloat(e.getPropertyValue("border-bottom-width")) + parseFloat(e.getPropertyValue("border-top-width"));
|
|
48
|
-
return {
|
|
49
|
-
contextStyle: b.map(
|
|
50
|
-
(f) => `${f}:${e.getPropertyValue(f)}`
|
|
51
|
-
).join(";"),
|
|
52
|
-
paddingSize: a,
|
|
53
|
-
borderSize: n,
|
|
54
|
-
boxSizing: i
|
|
55
|
-
};
|
|
56
|
-
}
|
|
57
|
-
function c(t, e = 1, i = null) {
|
|
58
|
-
l || (l = document.createElement("textarea"), document.body.appendChild(l));
|
|
59
|
-
const { paddingSize: a, borderSize: n, boxSizing: r, contextStyle: f } = y(t);
|
|
60
|
-
l.setAttribute("style", `${f};${g}`), l.value = t.value || t.placeholder || "";
|
|
61
|
-
let s = l.scrollHeight;
|
|
62
|
-
const o = {};
|
|
63
|
-
r === "border-box" ? s += n : r === "content-box" && (s -= a), l.value = "";
|
|
64
|
-
const p = l.scrollHeight - a;
|
|
65
|
-
if (e !== null) {
|
|
66
|
-
let u = p * e;
|
|
67
|
-
r === "border-box" && (u = u + a + n), s = Math.max(u, s), o.minHeight = `${u}px`;
|
|
68
|
-
}
|
|
69
|
-
if (i !== null) {
|
|
70
|
-
let u = p * i;
|
|
71
|
-
r === "border-box" && (u = u + a + n), s = Math.min(u, s);
|
|
72
|
-
}
|
|
73
|
-
return o.height = `${s}px`, l.parentNode && l.parentNode.removeChild(l), l = null, o;
|
|
74
|
-
}
|
|
75
|
-
const v = {
|
|
76
|
-
name: "BaseInput",
|
|
77
|
-
componentName: "BaseInput",
|
|
78
|
-
mixins: [x],
|
|
79
|
-
inject: {
|
|
80
|
-
elForm: {
|
|
81
|
-
default: ""
|
|
82
|
-
},
|
|
83
|
-
elFormItem: {
|
|
84
|
-
default: ""
|
|
85
|
-
}
|
|
86
|
-
},
|
|
87
|
-
inheritAttrs: !1,
|
|
88
|
-
props: {
|
|
89
|
-
value: {
|
|
90
|
-
type: [String, Number],
|
|
91
|
-
default: null
|
|
92
|
-
},
|
|
93
|
-
size: {
|
|
94
|
-
type: String,
|
|
95
|
-
default: ""
|
|
96
|
-
},
|
|
97
|
-
resize: {
|
|
98
|
-
type: String,
|
|
99
|
-
default: ""
|
|
100
|
-
},
|
|
101
|
-
form: {
|
|
102
|
-
type: String,
|
|
103
|
-
default: ""
|
|
104
|
-
},
|
|
105
|
-
disabled: Boolean,
|
|
106
|
-
isPrice: {
|
|
107
|
-
type: Boolean,
|
|
108
|
-
default: !1
|
|
109
|
-
},
|
|
110
|
-
isIncVat: {
|
|
111
|
-
type: Boolean,
|
|
112
|
-
default: !1
|
|
113
|
-
},
|
|
114
|
-
// Vat in percentage if isPrice
|
|
115
|
-
vat: {
|
|
116
|
-
type: Number,
|
|
117
|
-
default: null
|
|
118
|
-
},
|
|
119
|
-
showZero: {
|
|
120
|
-
type: Boolean,
|
|
121
|
-
default: !1
|
|
122
|
-
},
|
|
123
|
-
type: {
|
|
124
|
-
type: String,
|
|
125
|
-
default: "text"
|
|
126
|
-
},
|
|
127
|
-
autosize: {
|
|
128
|
-
type: [Boolean, Object],
|
|
129
|
-
default: null
|
|
130
|
-
},
|
|
131
|
-
autoComplete: {
|
|
132
|
-
type: String,
|
|
133
|
-
default: "off"
|
|
134
|
-
},
|
|
135
|
-
validateEvent: {
|
|
136
|
-
type: Boolean,
|
|
137
|
-
default: !0
|
|
138
|
-
},
|
|
139
|
-
suffixIcon: {
|
|
140
|
-
type: String,
|
|
141
|
-
default: ""
|
|
142
|
-
},
|
|
143
|
-
prefixIcon: {
|
|
144
|
-
type: String,
|
|
145
|
-
default: ""
|
|
146
|
-
},
|
|
147
|
-
label: {
|
|
148
|
-
type: String,
|
|
149
|
-
default: ""
|
|
150
|
-
},
|
|
151
|
-
clearable: {
|
|
152
|
-
type: Boolean,
|
|
153
|
-
default: !1
|
|
154
|
-
},
|
|
155
|
-
tabindex: {
|
|
156
|
-
type: String,
|
|
157
|
-
default: ""
|
|
158
|
-
},
|
|
159
|
-
styleClass: {
|
|
160
|
-
type: String,
|
|
161
|
-
default: ""
|
|
162
|
-
}
|
|
163
|
-
},
|
|
164
|
-
data() {
|
|
165
|
-
return {
|
|
166
|
-
currentValue: this.value === void 0 || this.value === null ? "" : this.value,
|
|
167
|
-
prefixOffset: null,
|
|
168
|
-
inputPrefixOffset: null,
|
|
169
|
-
inputSuffixOffset: null,
|
|
170
|
-
suffixOffset: null,
|
|
171
|
-
hovering: !1,
|
|
172
|
-
focused: !1,
|
|
173
|
-
isOnComposition: !1,
|
|
174
|
-
valueBeforeComposition: null,
|
|
175
|
-
textareaCalcStyle: {}
|
|
176
|
-
};
|
|
177
|
-
},
|
|
178
|
-
computed: {
|
|
179
|
-
internalValue: {
|
|
180
|
-
get() {
|
|
181
|
-
if (this.isPrice && !Number.isNaN(parseFloat(this.value)) && Number.isFinite(this.value)) {
|
|
182
|
-
if (!this.value && !this.showZero)
|
|
183
|
-
return "";
|
|
184
|
-
let t = this.value;
|
|
185
|
-
return this.isIncVat && (t *= (100 + this.vat) / 100), t = Math.round(t) / 100, t;
|
|
186
|
-
}
|
|
187
|
-
return this.value;
|
|
188
|
-
},
|
|
189
|
-
set(t) {
|
|
190
|
-
let e = t;
|
|
191
|
-
this.isPrice && (e = t * 100, this.isIncVat && (e /= (100 + this.vat) / 100), e = Math.round(e)), this.$emit("input", e);
|
|
192
|
-
}
|
|
193
|
-
},
|
|
194
|
-
internalType() {
|
|
195
|
-
return this.isPrice ? "number" : this.type;
|
|
196
|
-
},
|
|
197
|
-
_elFormItemSize() {
|
|
198
|
-
return (this.elFormItem || {}).elFormItemSize;
|
|
199
|
-
},
|
|
200
|
-
validateState() {
|
|
201
|
-
return this.elFormItem ? this.elFormItem.validateState : "";
|
|
202
|
-
},
|
|
203
|
-
needStatusIcon() {
|
|
204
|
-
return this.elForm ? this.elForm.statusIcon : !1;
|
|
205
|
-
},
|
|
206
|
-
validateIcon() {
|
|
207
|
-
return {
|
|
208
|
-
validating: "el-icon-loading",
|
|
209
|
-
success: "el-icon-circle-check",
|
|
210
|
-
error: "el-icon-circle-close"
|
|
211
|
-
}[this.validateState];
|
|
212
|
-
},
|
|
213
|
-
inputSize() {
|
|
214
|
-
return this.size || this._elFormItemSize || (this.$ELEMENT || {}).size;
|
|
215
|
-
},
|
|
216
|
-
textareaStyle() {
|
|
217
|
-
return {
|
|
218
|
-
...this.textareaCalcStyle,
|
|
219
|
-
resize: this.resize
|
|
220
|
-
};
|
|
221
|
-
},
|
|
222
|
-
inputDisabled() {
|
|
223
|
-
return this.disabled || (this.elForm || {}).disabled;
|
|
224
|
-
},
|
|
225
|
-
isGroup() {
|
|
226
|
-
return this.$slots.prepend || this.$slots.append;
|
|
227
|
-
},
|
|
228
|
-
showClear() {
|
|
229
|
-
return this.clearable && !this.disabled && !this.readonly && this.currentValue !== "" && (this.focused || this.hovering);
|
|
230
|
-
}
|
|
231
|
-
},
|
|
232
|
-
watch: {
|
|
233
|
-
// eslint-disable-next-line no-unused-vars
|
|
234
|
-
value(t, e) {
|
|
235
|
-
this.$nextTick(this.resizeTextarea), this.setCurrentValue(t);
|
|
236
|
-
}
|
|
237
|
-
},
|
|
238
|
-
created() {
|
|
239
|
-
this.$on("inputSelect", this.select);
|
|
240
|
-
},
|
|
241
|
-
mounted() {
|
|
242
|
-
this.isGroup && (this.prefixOffset = this.calcIconOffset("pre"), this.suffixOffset = this.calcIconOffset("suf")), this.$slots.prefix && (this.inputPrefixOffset = this.calcInputPrefixOffset()), this.$slots.suffix && (this.inputSuffixOffset = this.calcInputSuffixOffset()), this.resizeTextarea();
|
|
243
|
-
},
|
|
244
|
-
methods: {
|
|
245
|
-
preventScroll(t) {
|
|
246
|
-
this.focused && this.internalType === "number" && t.preventDefault();
|
|
247
|
-
},
|
|
248
|
-
focus() {
|
|
249
|
-
const t = this.$refs.input || this.$refs.textarea;
|
|
250
|
-
t && m(t);
|
|
251
|
-
},
|
|
252
|
-
blur() {
|
|
253
|
-
(this.$refs.input || this.$refs.textarea).blur();
|
|
254
|
-
},
|
|
255
|
-
handleBlur(t) {
|
|
256
|
-
this.focused = !1, this.$emit("blur", t), this.validateEvent && this.dispatch("ElFormItem", "el.form.blur", [this.currentValue]);
|
|
257
|
-
},
|
|
258
|
-
select() {
|
|
259
|
-
(this.$refs.input || this.$refs.textarea).select();
|
|
260
|
-
},
|
|
261
|
-
handleFocus(t) {
|
|
262
|
-
this.focused = !0, this.$emit("focus", t);
|
|
263
|
-
},
|
|
264
|
-
handleChange(t) {
|
|
265
|
-
this.$emit("change", t.target.value);
|
|
266
|
-
},
|
|
267
|
-
setCurrentValue(t) {
|
|
268
|
-
this.isOnComposition && t === this.valueBeforeComposition || (this.currentValue = t, !this.isOnComposition && this.validateEvent && this.dispatch("ElFormItem", "el.form.change", [t]));
|
|
269
|
-
},
|
|
270
|
-
calcInputPrefixOffset() {
|
|
271
|
-
return this.$slots.prefix ? {
|
|
272
|
-
paddingLeft: `${this.$el.querySelector(".el-input__prefix").offsetWidth + 14 * 1.8}px`
|
|
273
|
-
} : null;
|
|
274
|
-
},
|
|
275
|
-
calcInputSuffixOffset() {
|
|
276
|
-
return this.$slots.suffix ? {
|
|
277
|
-
paddingRight: `${this.$el.querySelector(".el-input__suffix").offsetWidth + 14 * 1.8}px`
|
|
278
|
-
} : null;
|
|
279
|
-
},
|
|
280
|
-
calcIconOffset(t) {
|
|
281
|
-
const i = {
|
|
282
|
-
suf: "append",
|
|
283
|
-
pre: "prepend"
|
|
284
|
-
}[t];
|
|
285
|
-
return this.$slots[i] ? {
|
|
286
|
-
transform: `translateX(${t === "suf" ? "-" : ""}${this.$el.querySelector(`.el-input-group__${i}`).offsetWidth}px)`
|
|
287
|
-
} : null;
|
|
288
|
-
},
|
|
289
|
-
clear() {
|
|
290
|
-
this.$emit("input", ""), this.$emit("change", ""), this.$emit("clear"), this.setCurrentValue(""), this.focus();
|
|
291
|
-
},
|
|
292
|
-
// Method to block specific keycodes on input
|
|
293
|
-
allowKeyCode(t) {
|
|
294
|
-
if (!this.isPrice)
|
|
295
|
-
return !0;
|
|
296
|
-
const e = t.which ? t.which : t.keyCode;
|
|
297
|
-
return [69, 187].includes(e) ? (t.preventDefault(), !1) : !0;
|
|
298
|
-
},
|
|
299
|
-
resizeTextarea() {
|
|
300
|
-
const { autosize: t, type: e } = this;
|
|
301
|
-
if (e !== "textarea")
|
|
302
|
-
return;
|
|
303
|
-
if (!t) {
|
|
304
|
-
this.textareaCalcStyle = {
|
|
305
|
-
minHeight: c(this.$refs.textarea).minHeight
|
|
306
|
-
};
|
|
307
|
-
return;
|
|
308
|
-
}
|
|
309
|
-
const { minRows: i, maxRows: a } = t;
|
|
310
|
-
this.textareaCalcStyle = c(
|
|
311
|
-
this.$refs.textarea,
|
|
312
|
-
i,
|
|
313
|
-
a
|
|
314
|
-
);
|
|
315
|
-
}
|
|
316
|
-
}
|
|
317
|
-
};
|
|
318
|
-
var _ = function() {
|
|
319
|
-
var e = this, i = e._self._c;
|
|
320
|
-
return i("div", { staticClass: "input-container", class: [
|
|
321
|
-
e.internalType === "textarea" ? "el-textarea" : "el-input",
|
|
322
|
-
e.inputSize ? "el-input--" + e.inputSize : "",
|
|
323
|
-
e.styleClass ? e.styleClass : "",
|
|
324
|
-
e.focused ? "is-focus" : "",
|
|
325
|
-
e.currentValue ? "is-value" : "",
|
|
326
|
-
{
|
|
327
|
-
"is-disabled": e.inputDisabled,
|
|
328
|
-
"el-input-group": e.$slots.prepend || e.$slots.append,
|
|
329
|
-
"el-input-group--append": e.$slots.append,
|
|
330
|
-
"el-input-group--prepend": e.$slots.prepend,
|
|
331
|
-
"el-input--prefix": e.$slots.prefix || e.prefixIcon,
|
|
332
|
-
"el-input--suffix": e.$slots.suffix || e.suffixIcon || e.clearable,
|
|
333
|
-
"el-input-error": e.validateState === "error"
|
|
334
|
-
}
|
|
335
|
-
], on: { mousewheel: e.preventScroll, mouseenter: function(a) {
|
|
336
|
-
e.hovering = !0;
|
|
337
|
-
}, mouseleave: function(a) {
|
|
338
|
-
e.hovering = !1;
|
|
339
|
-
} } }, [e.type !== "textarea" ? [e.$slots.prepend ? i("div", { staticClass: "el-input-group__prepend" }, [e._t("prepend")], 2) : e._e(), e.internalType === "checkbox" ? i("input", e._b({ directives: [{ name: "model", rawName: "v-model", value: e.internalValue, expression: "internalValue" }], ref: "input", staticClass: "el-input__inner", style: [e.inputPrefixOffset, e.inputSuffixOffset], attrs: { step: e.internalType === "number" ? 0.01 : !1, tabindex: e.tabindex, disabled: e.inputDisabled, autocomplete: e.autoComplete, "aria-label": e.label, type: "checkbox" }, domProps: { checked: Array.isArray(e.internalValue) ? e._i(e.internalValue, null) > -1 : e.internalValue }, on: { focus: e.handleFocus, blur: e.handleBlur, change: [function(a) {
|
|
340
|
-
var n = e.internalValue, r = a.target, f = !!r.checked;
|
|
341
|
-
if (Array.isArray(n)) {
|
|
342
|
-
var s = null, o = e._i(n, s);
|
|
343
|
-
r.checked ? o < 0 && (e.internalValue = n.concat([s])) : o > -1 && (e.internalValue = n.slice(0, o).concat(n.slice(o + 1)));
|
|
344
|
-
} else
|
|
345
|
-
e.internalValue = f;
|
|
346
|
-
}, e.handleChange], keydown: e.allowKeyCode } }, "input", e.$attrs, !1)) : e.internalType === "radio" ? i("input", e._b({ directives: [{ name: "model", rawName: "v-model", value: e.internalValue, expression: "internalValue" }], ref: "input", staticClass: "el-input__inner", style: [e.inputPrefixOffset, e.inputSuffixOffset], attrs: { step: e.internalType === "number" ? 0.01 : !1, tabindex: e.tabindex, disabled: e.inputDisabled, autocomplete: e.autoComplete, "aria-label": e.label, type: "radio" }, domProps: { checked: e._q(e.internalValue, null) }, on: { focus: e.handleFocus, blur: e.handleBlur, change: [function(a) {
|
|
347
|
-
e.internalValue = null;
|
|
348
|
-
}, e.handleChange], keydown: e.allowKeyCode } }, "input", e.$attrs, !1)) : i("input", e._b({ directives: [{ name: "model", rawName: "v-model", value: e.internalValue, expression: "internalValue" }], ref: "input", staticClass: "el-input__inner", style: [e.inputPrefixOffset, e.inputSuffixOffset], attrs: { step: e.internalType === "number" ? 0.01 : !1, tabindex: e.tabindex, disabled: e.inputDisabled, autocomplete: e.autoComplete, "aria-label": e.label, type: e.internalType }, domProps: { value: e.internalValue }, on: { focus: e.handleFocus, blur: e.handleBlur, change: e.handleChange, keydown: e.allowKeyCode, input: function(a) {
|
|
349
|
-
a.target.composing || (e.internalValue = a.target.value);
|
|
350
|
-
} } }, "input", e.$attrs, !1)), e.$slots.prefix || e.prefixIcon ? i("span", { staticClass: "el-input__prefix", style: e.prefixOffset }, [e._t("prefix"), e.prefixIcon ? i("i", { staticClass: "el-input__icon", class: e.prefixIcon }) : e._e()], 2) : e._e(), e.$slots.suffix || e.suffixIcon || e.showClear || e.validateState && e.needStatusIcon ? i("span", { staticClass: "el-input__suffix", style: e.suffixOffset }, [i("span", { staticClass: "el-input__suffix-inner" }, [e.showClear ? i("div", { staticClass: "el-input__icon el-input__clear", on: { click: e.clear } }, [i("svg", { attrs: { width: "20", height: "20", viewBox: "0 0 151 151", xmlns: "http://www.w3.org/2000/svg" } }, [i("path", { attrs: { d: "M75.5 151c41.697499 0 75.5-33.8025 75.5-75.5S117.197499 0 75.5 0 0 33.8025 0 75.5 33.802501 151 75.5 151zm9.606602-75.5l19.441267-19.44127c2.932807-2.9328 2.933101-7.68184.004169-10.61077-2.922972-2.92297-7.679536-2.92706-10.610771.00417L74.5 64.8934 55.058733 45.45213c-2.932807-2.93281-7.681839-2.9331-10.610771-.00417-2.922973 2.92297-2.927066 7.67954.004169 10.61077L63.893398 75.5 44.452131 94.94127c-2.932807 2.9328-2.933101 7.68184-.004169 10.61077 2.922972 2.92297 7.679536 2.92706 10.610771-.00417L74.5 86.1066l19.441267 19.44127c2.932807 2.93281 7.681839 2.9331 10.610771.00417 2.922973-2.92297 2.927066-7.67954-.004169-10.61077L85.106602 75.5z", fill: "#738DA5", "fill-rule": "evenodd" } })])]) : [e._t("suffix"), e.suffixIcon ? i("i", { staticClass: "el-input__icon", class: e.suffixIcon }) : e._e()]], 2), e.validateState ? i("i", { staticClass: "el-input__icon", class: ["el-input__validateIcon", e.validateIcon] }) : e._e()]) : e._e(), e.$slots.append ? i("div", { staticClass: "el-input-group__append" }, [e._t("append")], 2) : e._e()] : i("textarea", e._b({ directives: [{ name: "model", rawName: "v-model", value: e.internalValue, expression: "internalValue" }], ref: "textarea", staticClass: "c-textarea el-input__inner", style: e.textareaStyle, attrs: { tabindex: e.tabindex, disabled: e.inputDisabled, "min-rows": "1" }, domProps: { value: e.internalValue }, on: { focus: e.handleFocus, blur: e.handleBlur, change: e.handleChange, input: function(a) {
|
|
351
|
-
a.target.composing || (e.internalValue = a.target.value);
|
|
352
|
-
} } }, "textarea", e.$attrs, !1))], 2);
|
|
353
|
-
}, $ = [], S = /* @__PURE__ */ h(
|
|
354
|
-
v,
|
|
355
|
-
_,
|
|
356
|
-
$,
|
|
357
|
-
!1,
|
|
358
|
-
null,
|
|
359
|
-
null
|
|
360
|
-
);
|
|
361
|
-
const V = S.exports;
|
|
362
|
-
export {
|
|
363
|
-
V as B
|
|
364
|
-
};
|
|
@@ -1,247 +0,0 @@
|
|
|
1
|
-
import { n as u, Q as m, c as n } from "./main-DQ6SH_E_.js";
|
|
2
|
-
import { e as o } from "./dom-CPYqHOIw.js";
|
|
3
|
-
import { W as w } from "./DocumentLayout-0-y6ChW3.js";
|
|
4
|
-
let l, f, c, p, h;
|
|
5
|
-
function _(t) {
|
|
6
|
-
return typeof t == "object" && t !== null && t.__PDFDocumentLoadingTask === !0;
|
|
7
|
-
}
|
|
8
|
-
const P = {
|
|
9
|
-
name: "PdfPage",
|
|
10
|
-
components: {
|
|
11
|
-
WithDimensions: w
|
|
12
|
-
},
|
|
13
|
-
props: {
|
|
14
|
-
src: {
|
|
15
|
-
type: [String, Object, Promise],
|
|
16
|
-
default: ""
|
|
17
|
-
},
|
|
18
|
-
page: {
|
|
19
|
-
type: Number,
|
|
20
|
-
default: 1
|
|
21
|
-
},
|
|
22
|
-
rotate: {
|
|
23
|
-
type: Number,
|
|
24
|
-
default: 0
|
|
25
|
-
},
|
|
26
|
-
scale: {
|
|
27
|
-
type: [Number, String],
|
|
28
|
-
default: "page-width"
|
|
29
|
-
},
|
|
30
|
-
resize: {
|
|
31
|
-
type: Boolean,
|
|
32
|
-
default: !0
|
|
33
|
-
},
|
|
34
|
-
text: {
|
|
35
|
-
type: Boolean,
|
|
36
|
-
default: !0
|
|
37
|
-
},
|
|
38
|
-
pdfLoadingTask: {
|
|
39
|
-
type: Promise,
|
|
40
|
-
required: !0
|
|
41
|
-
},
|
|
42
|
-
containerClass: {
|
|
43
|
-
type: [Array, String],
|
|
44
|
-
default: ""
|
|
45
|
-
}
|
|
46
|
-
},
|
|
47
|
-
data() {
|
|
48
|
-
return {
|
|
49
|
-
internalSrc: this.src,
|
|
50
|
-
pdf: null,
|
|
51
|
-
pdfViewer: null,
|
|
52
|
-
loading: !0
|
|
53
|
-
};
|
|
54
|
-
},
|
|
55
|
-
watch: {
|
|
56
|
-
pdf(t) {
|
|
57
|
-
const e = t.pdfInfo || t._pdfInfo;
|
|
58
|
-
this.$emit("numpages", e.numPages);
|
|
59
|
-
},
|
|
60
|
-
page(t) {
|
|
61
|
-
this.pdf.getPage(t).then((e) => {
|
|
62
|
-
this.pdfViewer.setPdfPage(e), this.pdfViewer.draw();
|
|
63
|
-
});
|
|
64
|
-
},
|
|
65
|
-
scale(t) {
|
|
66
|
-
this.drawScaled(t);
|
|
67
|
-
},
|
|
68
|
-
rotate(t) {
|
|
69
|
-
this.pdfViewer && (this.pdfViewer.update({ scale: this.scale, rotation: t }), this.pdfViewer.draw());
|
|
70
|
-
}
|
|
71
|
-
},
|
|
72
|
-
mounted() {
|
|
73
|
-
l = window.pdfjsViewer.DefaultTextLayerFactory, f = window.pdfjsViewer.PDFFindController, c = window.pdfjsViewer.PDFLinkService, p = window.pdfjsViewer.PDFPageView, h = window.pdfjsViewer.EventBus, this.init();
|
|
74
|
-
},
|
|
75
|
-
beforeDestroy() {
|
|
76
|
-
this.pdfViewer && (this.pdfViewer.destroy(), this.pdfViewer = null);
|
|
77
|
-
},
|
|
78
|
-
methods: {
|
|
79
|
-
init() {
|
|
80
|
-
_(this.internalSrc) || (this.internalSrc = this.pdfLoadingTask, this.$emit("loading", !0));
|
|
81
|
-
const t = this.$refs.container, e = new h();
|
|
82
|
-
e.on("pagerendered", (s) => {
|
|
83
|
-
this.$emit("pagerendered", s);
|
|
84
|
-
}), this.pdfLinkService = new c({
|
|
85
|
-
eventBus: e,
|
|
86
|
-
externalLinkTarget: 2
|
|
87
|
-
}), this.pdfFindController = new f({
|
|
88
|
-
eventBus: e,
|
|
89
|
-
linkService: this.pdfLinkService
|
|
90
|
-
});
|
|
91
|
-
let i;
|
|
92
|
-
this.text && (i = new l()), this.internalSrc.then((s) => (this.pdf = s, s.getPage(this.page))).then((s) => {
|
|
93
|
-
this.pdfViewer = new p({
|
|
94
|
-
container: t,
|
|
95
|
-
id: this.page,
|
|
96
|
-
scale: 1,
|
|
97
|
-
defaultViewport: s.getViewport({
|
|
98
|
-
scale: 1
|
|
99
|
-
}),
|
|
100
|
-
eventBus: e,
|
|
101
|
-
textLayerFactory: i
|
|
102
|
-
}), this.pdfViewer.setPdfPage(s);
|
|
103
|
-
const r = {
|
|
104
|
-
scrollPageIntoView: (g) => {
|
|
105
|
-
this.$emit("link-clicked", g);
|
|
106
|
-
}
|
|
107
|
-
};
|
|
108
|
-
return this.pdfLinkService.setDocument(this.pdf), this.pdfLinkService.setViewer(r), this.pdfFindController.setDocument(this.pdf), this.drawScaled(this.scale);
|
|
109
|
-
}).catch((s) => {
|
|
110
|
-
this.$emit("error", s), this.loading = !1, this.$emit("loading", !1);
|
|
111
|
-
});
|
|
112
|
-
},
|
|
113
|
-
calculateScale(t = -1, e = -1) {
|
|
114
|
-
return this.pdfViewer.update({ scale: 1, rotation: this.rotate }), t === -1 && e === -1 && (t = this.$refs.container.offsetWidth), t / this.pdfViewer.viewport.width;
|
|
115
|
-
},
|
|
116
|
-
calculateScaleHeight() {
|
|
117
|
-
this.pdfViewer.update({ scale: 1, rotation: this.rotate });
|
|
118
|
-
var t = this.$refs.container.offsetHeight, e = this.$refs.container.parentElement.parentElement;
|
|
119
|
-
return e.offsetHeight / t;
|
|
120
|
-
},
|
|
121
|
-
async drawScaled(t) {
|
|
122
|
-
this.pdfViewer && (t === "page-width" ? (t = this.calculateScale(), this.$emit("update:scale", t)) : t === "page-height" && (t = this.calculateScaleHeight(), this.$emit("update:scale", t)), this.pdfViewer.update({ scale: t, rotation: this.rotate }), await this.pdfViewer.draw(), this.text && (this.pdfViewer.textLayer.findController = this.pdfFindController), this.loading = !1, this.$emit("loading", !1));
|
|
123
|
-
},
|
|
124
|
-
resizeScale() {
|
|
125
|
-
this.resize && this.drawScaled("page-width");
|
|
126
|
-
}
|
|
127
|
-
}
|
|
128
|
-
};
|
|
129
|
-
var v = function() {
|
|
130
|
-
var e = this, i = e._self._c;
|
|
131
|
-
return i("div", [e.loading ? e._t("loading") : e._e(), i("WithDimensions", { on: { resize: e.resizeScale } }, [i("div", { ref: "container", staticClass: "pdfViewer", class: e.containerClass })])], 2);
|
|
132
|
-
}, y = [], V = /* @__PURE__ */ u(
|
|
133
|
-
P,
|
|
134
|
-
v,
|
|
135
|
-
y,
|
|
136
|
-
!1,
|
|
137
|
-
null,
|
|
138
|
-
null
|
|
139
|
-
);
|
|
140
|
-
const L = V.exports, a = new m();
|
|
141
|
-
function $(t, e) {
|
|
142
|
-
let i;
|
|
143
|
-
if (typeof t == "string")
|
|
144
|
-
i = {
|
|
145
|
-
url: t
|
|
146
|
-
};
|
|
147
|
-
else if (typeof t == "object" && t !== null)
|
|
148
|
-
i = { ...t };
|
|
149
|
-
else
|
|
150
|
-
throw new TypeError("invalid src type");
|
|
151
|
-
const s = window.pdfjsLib.getDocument(i).promise;
|
|
152
|
-
return s.__PDFDocumentLoadingTask = !0, e && e.onPassword && (s.onPassword = e.onPassword), e && e.onProgress && (s.onProgress = e.onProgress), s;
|
|
153
|
-
}
|
|
154
|
-
const d = {
|
|
155
|
-
add(t) {
|
|
156
|
-
a.trigger("add", t);
|
|
157
|
-
},
|
|
158
|
-
remove(t) {
|
|
159
|
-
a.trigger("remove", t);
|
|
160
|
-
},
|
|
161
|
-
onAdd(t) {
|
|
162
|
-
a.on("add", t);
|
|
163
|
-
},
|
|
164
|
-
onRemove(t) {
|
|
165
|
-
a.on("remove", t);
|
|
166
|
-
}
|
|
167
|
-
}, k = {
|
|
168
|
-
components: {
|
|
169
|
-
VuePdf: L
|
|
170
|
-
},
|
|
171
|
-
inject: {
|
|
172
|
-
isPdf: {
|
|
173
|
-
default: !1
|
|
174
|
-
}
|
|
175
|
-
},
|
|
176
|
-
props: {
|
|
177
|
-
src: {
|
|
178
|
-
type: String,
|
|
179
|
-
default: null
|
|
180
|
-
},
|
|
181
|
-
docFilePath: {
|
|
182
|
-
type: String,
|
|
183
|
-
default: null
|
|
184
|
-
}
|
|
185
|
-
},
|
|
186
|
-
data() {
|
|
187
|
-
return {
|
|
188
|
-
numPages: void 0,
|
|
189
|
-
pdfLoadingTask: null,
|
|
190
|
-
hasLoadedScripts: !1,
|
|
191
|
-
loading: !1,
|
|
192
|
-
pdfRenderBus: d
|
|
193
|
-
};
|
|
194
|
-
},
|
|
195
|
-
watch: {
|
|
196
|
-
src: {
|
|
197
|
-
immediate: !0,
|
|
198
|
-
async handler(t) {
|
|
199
|
-
this.hasLoadedScripts || (await o(
|
|
200
|
-
`${n.api.baseUrl}/js/pdfjs-dist@3.0.279/build/pdf.min.js`
|
|
201
|
-
), await o(
|
|
202
|
-
`${n.api.baseUrl}/js/pdfjs-dist@3.0.279/web/pdf_viewer.js`
|
|
203
|
-
), window.pdfjsLib.GlobalWorkerOptions.workerSrc = `${n.api.baseUrl}/js/pdfjs-dist@3.0.279/build/pdf.worker.min.js`, this.hasLoadedScripts = !0), this.setPdf(t);
|
|
204
|
-
}
|
|
205
|
-
}
|
|
206
|
-
},
|
|
207
|
-
created() {
|
|
208
|
-
this.isPdf || d.add(this._uid);
|
|
209
|
-
},
|
|
210
|
-
methods: {
|
|
211
|
-
createLoadingTask: $,
|
|
212
|
-
async setPdf(t) {
|
|
213
|
-
t && (this.loading = !0, this.pdfLoadingTask = this.createLoadingTask(t), this.$nextTick(() => {
|
|
214
|
-
this.pdfLoadingTask.then((e) => {
|
|
215
|
-
this.loading = !1, this.numPages = e.numPages, this.$emit("numPages", e.numPages), this.$emit("rendered"), d.remove(this._uid);
|
|
216
|
-
});
|
|
217
|
-
}));
|
|
218
|
-
}
|
|
219
|
-
}
|
|
220
|
-
};
|
|
221
|
-
var S = function() {
|
|
222
|
-
var e = this, i = e._self._c;
|
|
223
|
-
return i("div", { key: e.src }, [e.isPdf ? i("pre", [e._v(" ClingPDFReplaceStart:[" + e._s(e.docFilePath) + `]ClingPDFReplaceEnd
|
|
224
|
-
`), i("div", [e._v("This page should have been replaced with URL: " + e._s(e.src))]), e._v(`
|
|
225
|
-
`)]) : i("div", [e.loading ? i("div", { staticClass: "mb-4 grid aspect-[210/297] place-items-center border border-gray-100 bg-gray-50" }, [i("CIcon", { staticClass: "animate-spin text-gray-400", attrs: { type: "loader", size: "28" } })], 1) : e._e(), e._l(e.numPages, function(s) {
|
|
226
|
-
return i("VuePdf", e._b({ key: s, ref: "vuePdf", refInFor: !0, attrs: { page: s, "container-class": e.isPdf ? "" : "mb-4 shadow-[0_2px_4px_hsla(0,0%,0%,0.25)]" }, on: { "hook:created": function(r) {
|
|
227
|
-
return e.pdfRenderBus.add(`${e._uid}-${s}`);
|
|
228
|
-
}, loading: (r) => r ? null : e.pdfRenderBus.remove(`${e._uid}-${s}`) } }, "VuePdf", {
|
|
229
|
-
...e.$attrs,
|
|
230
|
-
...e.$props,
|
|
231
|
-
pdfLoadingTask: e.pdfLoadingTask
|
|
232
|
-
}, !1), [e._t("loading", function() {
|
|
233
|
-
return [i("div", { staticClass: "mb-4 grid aspect-[210/297] place-items-center border border-gray-100 bg-gray-50", attrs: { slot: "loading" }, slot: "loading" }, [i("CIcon", { staticClass: "animate-spin text-gray-400", attrs: { type: "loader", size: "28" } })], 1)];
|
|
234
|
-
})], 2);
|
|
235
|
-
})], 2)]);
|
|
236
|
-
}, b = [], F = /* @__PURE__ */ u(
|
|
237
|
-
k,
|
|
238
|
-
S,
|
|
239
|
-
b,
|
|
240
|
-
!1,
|
|
241
|
-
null,
|
|
242
|
-
null
|
|
243
|
-
);
|
|
244
|
-
const j = F.exports;
|
|
245
|
-
export {
|
|
246
|
-
j as V
|
|
247
|
-
};
|
package/dist/dom-CPYqHOIw.js
DELETED
|
@@ -1,69 +0,0 @@
|
|
|
1
|
-
const l = {}, f = {};
|
|
2
|
-
function m(t) {
|
|
3
|
-
if (f[t])
|
|
4
|
-
return;
|
|
5
|
-
if (l[t])
|
|
6
|
-
return l[t];
|
|
7
|
-
const o = new Promise((n, e) => {
|
|
8
|
-
const s = document.createElement("script"), i = window.setTimeout(() => {
|
|
9
|
-
l[t] = null, e(new Error(`Failed to load ${t} in 20s`));
|
|
10
|
-
}, 2e4);
|
|
11
|
-
s.onload = () => {
|
|
12
|
-
i && window.clearTimeout(i), f[t] = !0, l[t] = null, n();
|
|
13
|
-
}, s.onerror = (a) => {
|
|
14
|
-
i && window.clearTimeout(i), l[t] = null, e(a);
|
|
15
|
-
}, s.src = t, document.body.appendChild(s);
|
|
16
|
-
});
|
|
17
|
-
return l[t] = o, o;
|
|
18
|
-
}
|
|
19
|
-
function w(t) {
|
|
20
|
-
const o = t.getBoundingClientRect(), n = window.innerHeight || document.documentElement.clientHeight, e = window.innerWidth || document.documentElement.clientWidth, s = o.top <= n && o.top + o.height >= 0, i = o.left <= e && o.left + o.width >= 0;
|
|
21
|
-
return s && i;
|
|
22
|
-
}
|
|
23
|
-
const u = (t) => {
|
|
24
|
-
const o = /(auto|scroll)/, n = (r, c) => r.parentNode === null ? c : n(r.parentNode, c.concat([r])), e = (r, c) => getComputedStyle(r, null).getPropertyValue(c), s = (r) => e(r, "overflow") + e(r, "overflow-y") + e(r, "overflow-x"), i = (r) => o.test(s(r));
|
|
25
|
-
return ((r) => {
|
|
26
|
-
if (!(r instanceof HTMLElement || r instanceof SVGElement))
|
|
27
|
-
return null;
|
|
28
|
-
const c = n(r.parentNode, []);
|
|
29
|
-
for (let d = 0; d < c.length; d += 1)
|
|
30
|
-
if (i(c[d]))
|
|
31
|
-
return c[d];
|
|
32
|
-
return document.scrollingElement || document.documentElement;
|
|
33
|
-
})(t);
|
|
34
|
-
}, p = (t) => {
|
|
35
|
-
let o = 0;
|
|
36
|
-
for (; t; )
|
|
37
|
-
o += t.offsetTop, t = t.offsetParent;
|
|
38
|
-
return o;
|
|
39
|
-
};
|
|
40
|
-
function h(t, o) {
|
|
41
|
-
let n = t;
|
|
42
|
-
typeof n == "string" && (n = document.querySelector(n));
|
|
43
|
-
const e = {
|
|
44
|
-
offset: 0,
|
|
45
|
-
behavior: "smooth",
|
|
46
|
-
body: u(n),
|
|
47
|
-
// custom option used for choosing parent scroll element
|
|
48
|
-
...o
|
|
49
|
-
}, s = p(n);
|
|
50
|
-
HTMLElement.prototype.scrollTo ? e.body.scrollTo({
|
|
51
|
-
behavior: e.behavior,
|
|
52
|
-
top: s - e.offset
|
|
53
|
-
}) : e.body.scrollTop = s - e.offset;
|
|
54
|
-
}
|
|
55
|
-
const g = (t) => {
|
|
56
|
-
var e;
|
|
57
|
-
const o = (e = t == null ? void 0 : t.getRootNode) == null ? void 0 : e.call(t), n = (o == null ? void 0 : o.toString()) === "[object ShadowRoot]";
|
|
58
|
-
return {
|
|
59
|
-
isShadow: n,
|
|
60
|
-
el: n ? o : document
|
|
61
|
-
};
|
|
62
|
-
};
|
|
63
|
-
export {
|
|
64
|
-
u as a,
|
|
65
|
-
m as e,
|
|
66
|
-
g,
|
|
67
|
-
w as i,
|
|
68
|
-
h as s
|
|
69
|
-
};
|