@cling-se/widget 0.14.0 → 0.14.3

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.
Files changed (123) hide show
  1. package/dist/{AddClientCallout-C7BLDW6Y.js → AddClientCallout-DKH-LP5B.js} +3 -3
  2. package/dist/{AnswerModal-KWFteFV9.js → AnswerModal-BCbq8wc4.js} +3 -3
  3. package/dist/{AttachmentItem-CSerklBS.js → AttachmentItem-60CSZnkF.js} +2 -2
  4. package/dist/{BaseDatePicker-BOxfHGS8.js → BaseDatePicker-Cl8SnC1k.js} +481 -481
  5. package/dist/{BaseUpload-B-CktrCH.js → BaseUpload-D4FCjlhL.js} +14 -14
  6. package/dist/{BlockMedia-T4OxMb4n.js → BlockMedia-CqkwdGnE.js} +1 -1
  7. package/dist/{CCallout-yFt7TFJa.js → CCallout-BTBgU8f-.js} +2 -2
  8. package/dist/CCurrencyDropdown-CL32Mo-Y.js +246 -0
  9. package/dist/{CDropdownItem-DhEpCmQt.js → CDropdownItem-DlWtQwO6.js} +7 -5
  10. package/dist/{CFormField-DDLf5YY4.js → CFormField-BxJv-nUO.js} +1 -1
  11. package/dist/{CPhoneFormat-B88rkuf0.js → CPhoneFormat-CJ9kndtJ.js} +1 -1
  12. package/dist/CPriceInput-BpXI5X2j.js +112 -0
  13. package/dist/CTabs.vue_vue_type_style_index_0_scoped_e02a6440_lang-l0sNRNKZ.js +1 -0
  14. package/dist/{ClientAutocomplete-DmRl3SUj.js → ClientAutocomplete-D9Dj9iBW.js} +2 -2
  15. package/dist/{ClientModal-Dn3WDhGU.js → ClientModal-JOt8NGcR.js} +48 -40
  16. package/dist/{ColorPicker-DX6JAsTn.js → ColorPicker-uPKD-Gvm.js} +1 -1
  17. package/dist/{CompanyModal-BbO2nTd5.js → CompanyModal-7bG0iIRd.js} +4 -4
  18. package/dist/{ContentWrapper-BvbmcTXK.js → ContentWrapper-B2nyZHL4.js} +6 -6
  19. package/dist/{CoverBlockSettings-C8FDwx7i.js → CoverBlockSettings-C1O_FAde.js} +5 -5
  20. package/dist/{DocAnswer-OttbybQs.js → DocAnswer-B9G-y4Px.js} +2 -2
  21. package/dist/{DocDetails-J7O26zqa.js → DocDetails-DYHxKChO.js} +7 -7
  22. package/dist/{DocForm-Bgbesq79.js → DocForm-BktEXjML.js} +54 -53
  23. package/dist/{DocFormSend-D_U3ztgw.js → DocFormSend-DM6QgUOj.js} +2 -2
  24. package/dist/{DocLinks-Dp-iQ-B_.js → DocLinks-BIGwfB3H.js} +2 -2
  25. package/dist/{DocModalBase-F-wlPg7j.js → DocModalBase-D5GdwTI7.js} +1 -1
  26. package/dist/{DocPrint-B45voy0W.js → DocPrint-HqbaIGms.js} +11 -17
  27. package/dist/{DocReceipt-jKVK5U-a.js → DocReceipt-WXo6vWyW.js} +6 -6
  28. package/dist/{DocSendReminder-BersSNb1.js → DocSendReminder-C8dNEpLg.js} +1 -1
  29. package/dist/{DocTextEditor-CYe_jWZ8.js → DocTextEditor-BfOZFDTP.js} +281 -270
  30. package/dist/{DocTimeline-yyzh51yB.js → DocTimeline-CitwS9px.js} +1 -1
  31. package/dist/{DocumentClient-CS_EVjK9.js → DocumentClient-CQ_z8ajY.js} +5 -5
  32. package/dist/{DocumentLayout-Ba121Zro.js → DocumentLayout-BA7mFfZh.js} +4 -4
  33. package/dist/{DocumentLogotype-DUVhl9xC.js → DocumentLogotype-woc_hfll.js} +3 -3
  34. package/dist/{DocumentVoided-D5ePc-a5.js → DocumentVoided-DC4FzpxG.js} +1 -1
  35. package/dist/{EmbedInput-Ds-Z-0J2.js → EmbedInput-CheqYcNr.js} +2 -2
  36. package/dist/{EmbedSettings-C8BP4YuY.js → EmbedSettings-YcwM8hJw.js} +2 -2
  37. package/dist/{ErrorCallout-B_QrRAm6.js → ErrorCallout-6pCYcx00.js} +1 -1
  38. package/dist/{FilePreviewModal-B105PxLD.js → FilePreviewModal-T8AiphqO.js} +2 -2
  39. package/dist/{Flag-hg61To9C.js → Flag-Ddm6a4Il.js} +1 -1
  40. package/dist/{HeaderSettings-DIBiJc4I.js → HeaderSettings-DHdZweJH.js} +7 -7
  41. package/dist/{ImageSelectModal-D2g42vWJ.js → ImageSelectModal-CAoBhnI8.js} +3 -3
  42. package/dist/{ImageUploadWrapper-CREUMKh3.js → ImageUploadWrapper-CNv59Lhh.js} +2 -2
  43. package/dist/{Index-YkoWXviW.js → Index-B6S9U4Z-.js} +4 -4
  44. package/dist/{Index-DVQ6ZsHz.js → Index-BHX0D5fW.js} +5 -5
  45. package/dist/{Index-7rbX01Io.js → Index-BL_7m5Ca.js} +5 -5
  46. package/dist/{Index-Dqp7TmnQ.js → Index-BXMXEUfo.js} +32 -30
  47. package/dist/{Index-DRgVg0CH.js → Index-BhVBvMu6.js} +4 -4
  48. package/dist/{Index-CYHxrllv.js → Index-Bl_SNW80.js} +4 -4
  49. package/dist/{Index-BiK7PqAm.js → Index-BsguntKl.js} +2 -2
  50. package/dist/{Index-Dy7K8KMB.js → Index-CGYjPfsf.js} +590 -694
  51. package/dist/{Index-sltQx4D3.js → Index-CKrGb3of.js} +3 -3
  52. package/dist/{Index-Bu6aOCmM.js → Index-CMNrQo5a.js} +3 -3
  53. package/dist/{Index-kAu-7TWv.js → Index-CU50Al5c.js} +10 -10
  54. package/dist/{Index-DDj3_T_m.js → Index-CdqrrZxd.js} +4 -4
  55. package/dist/{Index-D0gS476H.js → Index-CfnL9dAw.js} +4 -4
  56. package/dist/{Index-BLQwYzIX.js → Index-CuW0MYrT.js} +6 -6
  57. package/dist/{Index-BG9x90V0.js → Index-D-z8JSn6.js} +5 -5
  58. package/dist/{Index-agYFtWMw.js → Index-D8giJ_bs.js} +6 -6
  59. package/dist/{Index-02IKjPth.js → Index-DDvfqy_h.js} +3 -3
  60. package/dist/{Index-CUxvKTfn.js → Index-DQDalqZ-.js} +5 -5
  61. package/dist/{Index-8DAfMA_s.js → Index-DTIPKKkV.js} +5 -5
  62. package/dist/{Index-BUTYZCat.js → Index-DWxzUBff.js} +2 -2
  63. package/dist/{Index-CwulQoRG.js → Index-DaNGeDQw.js} +8 -8
  64. package/dist/{Index-lKo8z-71.js → Index-DfLU_AyN.js} +3 -3
  65. package/dist/{Index-bTXYCG9Y.js → Index-DkVav_I7.js} +4 -4
  66. package/dist/{Index-B8xcDVQ1.js → Index-Dxp8QAtB.js} +5 -5
  67. package/dist/{Index-CpWW7m5F.js → Index-DzjxFkcv.js} +11 -13
  68. package/dist/{Index-CL12KArA.js → Index-EwUJJWaB.js} +22 -18
  69. package/dist/{Index-BZM-FsHY.js → Index-I60qAqLl.js} +1 -1
  70. package/dist/{Index-D_MonVUx.js → Index-LfF-7lQK.js} +13 -13
  71. package/dist/{Index-BqBi-EmE.js → Index-P0_dyc2V.js} +3 -3
  72. package/dist/{Index-4NdatdH2.js → Index-RQMPSeHw.js} +6 -6
  73. package/dist/{Index-DIg77V9c.js → Index-oipNLl3Y.js} +3 -3
  74. package/dist/{Index-C56fTFO3.js → Index-sJq2Iyvt.js} +4 -4
  75. package/dist/{Index-BuDj2yrd.js → Index-uubi3NHX.js} +4 -4
  76. package/dist/{Index-DeNpUKh8.js → Index-vNj2kYZT.js} +5 -5
  77. package/dist/{InputToggleRow-C7aWJpUF.js → InputToggleRow-B2pWvVyx.js} +1 -1
  78. package/dist/{ManualPopover-CK9Xp-mo.js → ManualPopover-BI_Sf1zG.js} +1 -1
  79. package/dist/{MediaWrapper-v87wlFnj.js → MediaWrapper-eFpWxv3n.js} +3 -3
  80. package/dist/{NotBindingText-BGy3SnK3.js → NotBindingText-DA5NpePz.js} +3 -3
  81. package/dist/{PackageGroup-CrsOkWIb.js → PackageGroup-DOSijBdN.js} +8 -8
  82. package/dist/{PdfTerms-UmEmlI0Y.js → PdfTerms-Q5YuVtrJ.js} +2 -2
  83. package/dist/{PdfViewer-C6VBu4tT.js → PdfViewer-zcWl8XZT.js} +3 -3
  84. package/dist/{PlainHtml-Dsaxrq3D.js → PlainHtml-BmA83UAm.js} +1 -1
  85. package/dist/{PriceHeader-DQ615L9Q.js → PriceHeader-C14L5zgG.js} +9 -9
  86. package/dist/{SearchApi-CbWFQfoc.js → SearchApi-CGT7-jVf.js} +2 -2
  87. package/dist/{Setup-Byd-0W7U.js → Setup-RJQvZlDO.js} +1 -1
  88. package/dist/{CTabs.vue_vue_type_style_index_0_scoped_e02a6440_lang-DbBb6ZId.js → SmartList-YosKRPVn.js} +1 -1
  89. package/dist/{TermsSettings-Cah7_3Ba.js → TermsSettings-C5JTv7rT.js} +3 -3
  90. package/dist/{ThemeColorRow-DqsjvQfY.js → ThemeColorRow-D-C_tm2f.js} +3 -3
  91. package/dist/{ToggleBinding-DFr6xW2B.js → ToggleBinding-KEVHHvKf.js} +3 -3
  92. package/dist/{UploadModal-jRI9ITty.js → UploadModal-DOYoWELI.js} +2 -2
  93. package/dist/{VideoPlayerInput-C5_Ft8-4.js → VideoPlayerInput-Dxb6CNk-.js} +3 -3
  94. package/dist/{VideoPlayerSettings-LZluC-Tg.js → VideoPlayerSettings-DsVN4Ix-.js} +2 -2
  95. package/dist/{VideoSelectModal-OGDq_lwv.js → VideoSelectModal-BpfzNx61.js} +3 -3
  96. package/dist/{answerDocumentMixin-D8BXcPWt.js → answerDocumentMixin-BJMGrfUs.js} +3 -3
  97. package/dist/{debounce-BQXg61RJ.js → debounce-BN83gOVd.js} +11 -11
  98. package/dist/{focusDrawerMixin-D3Pzr0P-.js → focusDrawerMixin-CawyQaGq.js} +1 -1
  99. package/dist/{formComponentsInstall-D1VBPt9o.js → formComponentsInstall-jcnyQ1zw.js} +74 -76
  100. package/dist/{formDrawerState-wG6RdIXD.js → formDrawerState-BdNohvZH.js} +1 -1
  101. package/dist/{formValidationMixin-D9qFZJf9.js → formValidationMixin-DOwgebZk.js} +1 -1
  102. package/dist/{index-BEOnzeEr.js → index-BBJIOkm_.js} +5 -5
  103. package/dist/{index-1DmXjcSN.js → index-BNq9YCWc.js} +12 -12
  104. package/dist/{index-BFnwm62-.js → index-BdhbkLLU.js} +1 -1
  105. package/dist/{index-DETqm8Jy.js → index-COf8F6CL.js} +15 -18
  106. package/dist/{index-Dnp3LAf2.js → index-D0WvZHX_.js} +1 -1
  107. package/dist/{index-M-GXl2PO.js → index-DTzZP4yq.js} +20 -20
  108. package/dist/index.es.js +3 -3
  109. package/dist/index.umd.js +135 -143
  110. package/dist/{main-CWRB9q-W.js → main-DE5THsiR.js} +4228 -4195
  111. package/dist/{mapFormMixin-BOmDynJ-.js → mapFormMixin-y2txvLw9.js} +1 -1
  112. package/dist/omit-BrsWQAtU.js +31 -0
  113. package/dist/{publicSenderState-D_VhSyXD.js → publicSenderState-BYsq95Vt.js} +1 -1
  114. package/dist/style.css +2 -2
  115. package/dist/{throttle-Bixql7MZ.js → throttle-C2srA2wa.js} +2 -2
  116. package/dist/{tinycolor-CIjZZX-6.js → tinycolor-SjV_ROuP.js} +1 -1
  117. package/dist/tippy.esm-Dj7DQppr.js +1799 -0
  118. package/dist/{utils-1ypnMuRv.js → utils-16HMuRfY.js} +1 -1
  119. package/dist/{omit-CMqxXOLn.js → vuedraggable.umd-Cd1g2Hr7.js} +526 -554
  120. package/package.json +1 -1
  121. package/tsconfig.json +2 -2
  122. package/dist/BaseInput-BDjhI5P9.js +0 -364
  123. package/dist/tippy.esm-BcAHvKwR.js +0 -2039
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cling-se/widget",
3
- "version": "0.14.0",
3
+ "version": "0.14.3",
4
4
  "type": "module",
5
5
  "main": "./dist/index.umd.js",
6
6
  "module": "./dist/index.es.js",
package/tsconfig.json CHANGED
@@ -20,7 +20,7 @@
20
20
  "noUnusedParameters": true,
21
21
  "noFallthroughCasesInSwitch": true
22
22
  },
23
- "include": ["src/**/*", "src/**/*.vue", "src/**/*.js"],
24
- "exclude": ["node_modules", "../node_modules"],
23
+ "include": ["src/**/*"],
24
+ "exclude": ["node_modules", "../node_modules", "./dist/**/*"],
25
25
  "references": [{ "path": "./tsconfig.node.json" }]
26
26
  }
@@ -1,364 +0,0 @@
1
- import { n as h, U as m } from "./main-CWRB9q-W.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
- };