@cling-se/widget 0.9.2 → 0.9.4
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-d472aa84.js +57 -0
- package/dist/{AnswerModal-8f918a49.js → AnswerModal-06487437.js} +7 -5
- package/dist/{AttachmentItem-79618446.js → AttachmentItem-d98488ee.js} +5 -7
- package/dist/BaseDatePicker-8c098701.js +3156 -0
- package/dist/{BaseInput-9f376e4e.js → BaseInput-2723d613.js} +4 -4
- package/dist/{BaseUpload-9a3d655d.js → BaseUpload-996d74b3.js} +27 -26
- package/dist/BlockMedia-00907fb6.js +72 -0
- package/dist/CCallout-ffa95028.js +52 -0
- package/dist/CDropdownItem-74672842.js +610 -0
- package/dist/CField-06dd50f1.js +183 -0
- package/dist/CField.vue_vue_type_style_index_0_lang-4ed993c7.js +1 -0
- package/dist/CSlider.vue_vue_type_style_index_0_lang-f49d85e0.js +83 -0
- package/dist/ClientAutocomplete-f65643dd.js +80 -0
- package/dist/ClientModal-d276aabd.js +547 -0
- package/dist/ColorPicker-4f6b70af.js +2881 -0
- package/dist/{CompanyModal-5dfa4486.js → CompanyModal-30c54ce3.js} +12 -11
- package/dist/{ContentWrapper-3ac57cb2.js → ContentWrapper-d5653fef.js} +21 -14
- package/dist/{CoverBlockSettings-323ef519.js → CoverBlockSettings-2335f3a8.js} +7 -7
- package/dist/DocForm-9ca24de4.js +6772 -0
- package/dist/DocFormSend-d0c6fa1d.js +135 -0
- package/dist/{DocModalBase-4058a890.js → DocModalBase-f4915a62.js} +1 -1
- package/dist/{DocReceipt-390f75e3.js → DocReceipt-d192000e.js} +1 -1
- package/dist/{DocSendReminder-afc52d3d.js → DocSendReminder-06d5b34c.js} +1 -1
- package/dist/{DocTextEditor-0be1aea9.js → DocTextEditor-c6d1df3c.js} +16 -12
- package/dist/{DocTimeline-c421dead.js → DocTimeline-b4c20f93.js} +11 -11
- package/dist/DocumentClient-c2319f00.js +145 -0
- package/dist/{DocumentLogotype-5230c7bd.js → DocumentLogotype-1efd1ce9.js} +3 -3
- package/dist/{EmbedInput-8092d310.js → EmbedInput-654c0477.js} +10 -11
- package/dist/{EmbedSettings-bbea9894.js → EmbedSettings-b81ec734.js} +10 -11
- package/dist/ErrorCallout-60d0b3ab.js +30 -0
- package/dist/{FilePreviewModal-67088d0f.js → FilePreviewModal-895bd1bd.js} +6 -7
- package/dist/FormInputRow-9819eb71.js +2045 -0
- package/dist/{HeaderSettings-e02a5832.js → HeaderSettings-c6dac755.js} +23 -19
- package/dist/{ImageSelectModal-a9912356.js → ImageSelectModal-7cece54e.js} +20 -18
- package/dist/{ImageUploadWrapper-1310e96e.js → ImageUploadWrapper-53afd31d.js} +3 -3
- package/dist/{Index-f3eae2af.js → Index-01c63c88.js} +2 -2
- package/dist/{Index-90566113.js → Index-1a7e98d7.js} +8 -8
- package/dist/{Index-0ac00646.js → Index-1d361d01.js} +6 -7
- package/dist/{Index-9cd881f2.js → Index-2535f58f.js} +2 -2
- package/dist/{Index-f4bb1f71.js → Index-34c84bab.js} +8 -9
- package/dist/{Index-f03edd3d.js → Index-5cc51230.js} +7 -8
- package/dist/{Index-648a786a.js → Index-5e35f4a2.js} +3 -3
- package/dist/{Index-6df9883f.js → Index-60fc8a6e.js} +5 -6
- package/dist/{Index-de45c9c3.js → Index-61f7dc92.js} +2 -2
- package/dist/{Index-26f9a008.js → Index-63805642.js} +73 -118
- package/dist/{Index-ca8aedde.js → Index-66c8cbfa.js} +11 -12
- package/dist/{Index-a9ed7c39.js → Index-6ef78b7a.js} +4 -6
- package/dist/{Index-8a22c5cd.js → Index-701f0d05.js} +1 -1
- package/dist/{Index-6ee090c3.js → Index-7443e91c.js} +16 -17
- package/dist/{Index-1ae93acd.js → Index-82574a41.js} +6 -7
- package/dist/{Index-35f3bca9.js → Index-82b5de12.js} +6 -7
- package/dist/{Index-d02a530a.js → Index-8bca2d87.js} +8 -9
- package/dist/{Index-57ce8eee.js → Index-9233cc83.js} +22 -15
- package/dist/{Index-faeeff50.js → Index-98e8bb86.js} +21 -16
- package/dist/{Index-17e60907.js → Index-9aaf8b90.js} +33 -31
- package/dist/{Index-0d81bade.js → Index-b020a80c.js} +6 -7
- package/dist/{Index-28c78ddc.js → Index-b14d0f03.js} +6 -7
- package/dist/{Index-d3e59202.js → Index-b15cfd62.js} +10 -10
- package/dist/{Index-0a22673f.js → Index-c4de05aa.js} +7 -7
- package/dist/{Index-87497c7c.js → Index-c67218ce.js} +7 -7
- package/dist/{Index-2b684213.js → Index-c7e68382.js} +6 -7
- package/dist/{Index-e1bd4ea9.js → Index-caf5cf44.js} +54 -44
- package/dist/{Index-2d5fe047.js → Index-cd76b120.js} +6 -7
- package/dist/Index-d45a1eff.js +28 -0
- package/dist/{Index-876daf3e.js → Index-d8879ca9.js} +2 -2
- package/dist/{Index-1f966c82.js → Index-e45a0c32.js} +27 -20
- package/dist/{Index-d11146a6.js → Index-e749f6f1.js} +6 -6
- package/dist/{Index-15591118.js → Index-e80f5f9c.js} +11 -11
- package/dist/{Index-e30b3de9.js → Index-f935c492.js} +6 -7
- package/dist/{InputToggleRow-c58dde03.js → InputToggleRow-9d8a7da4.js} +1 -1
- package/dist/IsPremiumPreStep-3a087524.js +1919 -0
- package/dist/{MediaWrapper-afc29574.js → MediaWrapper-d4a4b66f.js} +4 -4
- package/dist/{NotBindingText-e3a49f8a.js → NotBindingText-b199006c.js} +2 -2
- package/dist/{PackageGroup-150a9942.js → PackageGroup-37ac99b1.js} +24 -17
- package/dist/{PdfTerms-fcc835f4.js → PdfTerms-8b52bb6e.js} +6 -7
- package/dist/{PdfViewer-b1118475.js → PdfViewer-38bd8439.js} +2 -2
- package/dist/{PlainHtml-47791667.js → PlainHtml-9174cbf6.js} +1 -1
- package/dist/PriceHeader-e357afe9.js +336 -0
- package/dist/SearchApi-2e286be6.js +148 -0
- package/dist/{TermsSettings-c97df867.js → TermsSettings-c74eec79.js} +6 -6
- package/dist/{ThemeColorRow-014a0526.js → ThemeColorRow-3558367b.js} +7 -6
- package/dist/{ToggleBinding-342beacc.js → ToggleBinding-6c9c1ac3.js} +8 -9
- package/dist/{UploadModal-aed5f8c9.js → UploadModal-6d0abd77.js} +21 -22
- package/dist/{VideoPlayerInput-7ebb49d7.js → VideoPlayerInput-77cd86aa.js} +5 -6
- package/dist/{VideoPlayerSettings-0a027a8e.js → VideoPlayerSettings-b7eb781c.js} +13 -14
- package/dist/{VideoSelectModal-5c1a8ddc.js → VideoSelectModal-d2299552.js} +10 -10
- package/dist/anime.es-e284c852.js +858 -0
- package/dist/answerDocumentMixin-66023e62.js +54 -0
- package/dist/color-71c20583.js +15 -0
- package/dist/{cssMode-b59b5164.js → cssMode-8552fc56.js} +15 -14
- package/dist/focusDrawerMixin-67462262.js +68 -0
- package/dist/formComponentsInstall-ad9c2a83.js +2491 -0
- package/dist/formValidationMixin-4920ab53.js +4984 -0
- package/dist/{freemarker2-5b426d60.js → freemarker2-7e10a65d.js} +19 -18
- package/dist/{handlebars-9a256dec.js → handlebars-8045bfa8.js} +18 -17
- package/dist/{html-4322f199.js → html-8afcb633.js} +14 -13
- package/dist/{htmlMode-d8a0ed16.js → htmlMode-1a2d1b48.js} +19 -18
- package/dist/index-3d6d7a03.js +490 -0
- package/dist/index-805c56e4.js +4 -0
- package/dist/{index-c2f8c4f3.js → index-bf93d7c2.js} +13 -12
- package/dist/index-c48c5eb4.js +14 -0
- package/dist/{index-7359c27c.js → index-f805bfce.js} +21 -15
- package/dist/index.es.js +3 -3
- package/dist/index.umd.js +713 -600
- package/dist/{javascript-7f9828c0.js → javascript-dad5561e.js} +11 -10
- package/dist/{jsonMode-e07cde60.js → jsonMode-ce09245f.js} +19 -18
- package/dist/{liquid-b47f65fb.js → liquid-05247459.js} +11 -10
- package/dist/{main-154fab72.js → main-04025a56.js} +19557 -20415
- package/dist/mapFormMixin-8d073f99.js +66 -0
- package/dist/{publicSenderState-51ca0439.js → publicSenderState-97108de1.js} +1 -1
- package/dist/{python-f3873309.js → python-3f3513c5.js} +11 -10
- package/dist/{razor-4071ec1b.js → razor-1f3e9c4e.js} +14 -13
- package/dist/regions-29ee6964.js +1250 -0
- package/dist/simplebar.min-3af55aab.js +2429 -0
- package/dist/style.css +4 -0
- package/dist/template-42a1d852.js +526 -0
- package/dist/throttle-a2c1f34d.js +18 -0
- package/dist/tinycolor-88fa380f.js +634 -0
- package/dist/{tsMode-71160e05.js → tsMode-4c026047.js} +15 -14
- package/dist/{typescript-80a61e6a.js → typescript-baf56f67.js} +11 -10
- package/dist/{utils-72915af5.js → utils-6670dea6.js} +5 -5
- package/dist/vuedraggable.umd-d7138234.js +3179 -0
- package/dist/{xml-021490f1.js → xml-ffc6146a.js} +11 -10
- package/package.json +3 -2
- package/stats.html +1 -1
- package/dist/DocForm-5ff2cbbb.js +0 -22074
- package/dist/DocFormSend-06ffa19c.js +0 -113
- package/dist/Index-2b5c1367.js +0 -29
- package/dist/PriceHeader-1dfa95fd.js +0 -329
- package/dist/formComponentsInstall-e33d6795.js +0 -11121
- package/dist/index-51b2742c.js +0 -11
- package/dist/throttle-f479e1f1.js +0 -18
|
@@ -0,0 +1,183 @@
|
|
|
1
|
+
import { n } from "./main-04025a56.js";
|
|
2
|
+
import "./CField.vue_vue_type_style_index_0_lang-4ed993c7.js";
|
|
3
|
+
const l = {
|
|
4
|
+
name: "CFieldBody",
|
|
5
|
+
props: {
|
|
6
|
+
message: {
|
|
7
|
+
type: String
|
|
8
|
+
},
|
|
9
|
+
type: {
|
|
10
|
+
type: [String, Object]
|
|
11
|
+
}
|
|
12
|
+
},
|
|
13
|
+
render(e) {
|
|
14
|
+
return e("div", { attrs: { class: "field-body" } }, this.$slots.default.map((s) => s.tag ? this.message ? e("c-field", { attrs: { message: this.message, type: this.type } }, [s]) : e("c-field", { attrs: { type: this.type } }, [s]) : s));
|
|
15
|
+
}
|
|
16
|
+
}, a = null, o = null;
|
|
17
|
+
var r = /* @__PURE__ */ n(
|
|
18
|
+
l,
|
|
19
|
+
a,
|
|
20
|
+
o,
|
|
21
|
+
!1,
|
|
22
|
+
null,
|
|
23
|
+
null,
|
|
24
|
+
null,
|
|
25
|
+
null
|
|
26
|
+
);
|
|
27
|
+
const u = r.exports, p = {
|
|
28
|
+
name: "CField",
|
|
29
|
+
components: {
|
|
30
|
+
CFieldBody: u
|
|
31
|
+
},
|
|
32
|
+
props: {
|
|
33
|
+
type: [String, Object],
|
|
34
|
+
label: String,
|
|
35
|
+
labelFor: String,
|
|
36
|
+
message: [String, Array, Object],
|
|
37
|
+
grouped: Boolean,
|
|
38
|
+
groupMultiline: Boolean,
|
|
39
|
+
position: String,
|
|
40
|
+
expanded: Boolean,
|
|
41
|
+
horizontal: Boolean,
|
|
42
|
+
addons: {
|
|
43
|
+
type: Boolean,
|
|
44
|
+
default: !0
|
|
45
|
+
},
|
|
46
|
+
customClass: String,
|
|
47
|
+
labelPosition: {
|
|
48
|
+
type: String,
|
|
49
|
+
default: () => "top"
|
|
50
|
+
// config.defaultFieldLabelPosition,
|
|
51
|
+
}
|
|
52
|
+
},
|
|
53
|
+
data() {
|
|
54
|
+
return {
|
|
55
|
+
newType: this.type,
|
|
56
|
+
newMessage: this.message,
|
|
57
|
+
fieldLabelSize: null,
|
|
58
|
+
_isField: !0
|
|
59
|
+
// Used internally by Input and Select
|
|
60
|
+
};
|
|
61
|
+
},
|
|
62
|
+
computed: {
|
|
63
|
+
rootClasses() {
|
|
64
|
+
return [
|
|
65
|
+
this.newPosition,
|
|
66
|
+
{
|
|
67
|
+
"is-expanded": this.expanded,
|
|
68
|
+
"is-grouped-multiline": this.groupMultiline,
|
|
69
|
+
"is-horizontal": this.horizontal,
|
|
70
|
+
"is-floating-in-label": this.hasLabel && !this.horizontal && this.labelPosition === "inside",
|
|
71
|
+
"is-floating-label": this.hasLabel && !this.horizontal && this.labelPosition === "on-border"
|
|
72
|
+
},
|
|
73
|
+
this.numberInputClasses
|
|
74
|
+
];
|
|
75
|
+
},
|
|
76
|
+
/**
|
|
77
|
+
* Correct Bulma class for the side of the addon or group.
|
|
78
|
+
*
|
|
79
|
+
* This is not kept like the others (is-small, etc.),
|
|
80
|
+
* because since 'has-addons' is set automatically it
|
|
81
|
+
* doesn't make sense to teach users what addons are exactly.
|
|
82
|
+
*/
|
|
83
|
+
newPosition() {
|
|
84
|
+
if (this.position === void 0)
|
|
85
|
+
return;
|
|
86
|
+
const e = this.position.split("-");
|
|
87
|
+
if (e.length < 1)
|
|
88
|
+
return;
|
|
89
|
+
const s = this.grouped ? "is-grouped-" : "has-addons-";
|
|
90
|
+
if (this.position)
|
|
91
|
+
return s + e[1];
|
|
92
|
+
},
|
|
93
|
+
/**
|
|
94
|
+
* Formatted message in case it's an array
|
|
95
|
+
* (each element is separated by <br> tag)
|
|
96
|
+
*/
|
|
97
|
+
formattedMessage() {
|
|
98
|
+
if (typeof this.newMessage == "string")
|
|
99
|
+
return this.newMessage;
|
|
100
|
+
const e = [];
|
|
101
|
+
if (Array.isArray(this.newMessage))
|
|
102
|
+
this.newMessage.forEach((s) => {
|
|
103
|
+
if (typeof s == "string")
|
|
104
|
+
e.push(s);
|
|
105
|
+
else
|
|
106
|
+
for (const t in s)
|
|
107
|
+
s[t] && e.push(t);
|
|
108
|
+
});
|
|
109
|
+
else
|
|
110
|
+
for (const s in this.newMessage)
|
|
111
|
+
this.newMessage[s] && e.push(s);
|
|
112
|
+
return e.filter((s) => {
|
|
113
|
+
if (s)
|
|
114
|
+
return s;
|
|
115
|
+
}).join(" <br> ");
|
|
116
|
+
},
|
|
117
|
+
hasLabel() {
|
|
118
|
+
return this.label || this.$slots.label;
|
|
119
|
+
},
|
|
120
|
+
numberInputClasses() {
|
|
121
|
+
if (this.$slots.default) {
|
|
122
|
+
const e = this.$slots.default.filter((s) => s.tag && s.tag.toLowerCase().indexOf("numberinput") >= 0)[0];
|
|
123
|
+
if (e) {
|
|
124
|
+
const s = ["has-numberinput"], t = e.componentOptions.propsData.controlsPosition, i = e.componentOptions.propsData.size;
|
|
125
|
+
return t && s.push(`has-numberinput-${t}`), i && s.push(`has-numberinput-${i}`), s;
|
|
126
|
+
}
|
|
127
|
+
}
|
|
128
|
+
return null;
|
|
129
|
+
}
|
|
130
|
+
},
|
|
131
|
+
watch: {
|
|
132
|
+
/**
|
|
133
|
+
* Set internal type when prop change.
|
|
134
|
+
*/
|
|
135
|
+
type(e) {
|
|
136
|
+
this.newType = e;
|
|
137
|
+
},
|
|
138
|
+
/**
|
|
139
|
+
* Set internal message when prop change.
|
|
140
|
+
*/
|
|
141
|
+
message(e) {
|
|
142
|
+
this.newMessage = e;
|
|
143
|
+
}
|
|
144
|
+
},
|
|
145
|
+
mounted() {
|
|
146
|
+
this.horizontal && this.$el.querySelectorAll(".input, .select, .button, .textarea, .c-slider").length > 0 && (this.fieldLabelSize = "is-normal");
|
|
147
|
+
},
|
|
148
|
+
methods: {
|
|
149
|
+
/**
|
|
150
|
+
* Field has addons if there are more than one slot
|
|
151
|
+
* (element / component) in the Field.
|
|
152
|
+
* Or is grouped when prop is set.
|
|
153
|
+
* Is a method to be called when component re-render.
|
|
154
|
+
*/
|
|
155
|
+
fieldType() {
|
|
156
|
+
if (this.grouped)
|
|
157
|
+
return "is-grouped";
|
|
158
|
+
let e = 0;
|
|
159
|
+
if (this.$slots.default && (e = this.$slots.default.reduce(
|
|
160
|
+
(s, t) => t.tag ? s + 1 : s,
|
|
161
|
+
0
|
|
162
|
+
)), e > 1 && this.addons && !this.horizontal)
|
|
163
|
+
return "has-addons";
|
|
164
|
+
}
|
|
165
|
+
}
|
|
166
|
+
};
|
|
167
|
+
var d = function() {
|
|
168
|
+
var s = this, t = s._self._c;
|
|
169
|
+
return t("div", { staticClass: "field", class: [s.rootClasses, s.fieldType()] }, [s.horizontal ? t("div", { staticClass: "field-label", class: [s.customClass, s.fieldLabelSize] }, [s.hasLabel ? t("label", { staticClass: "label truncate-text", class: s.customClass, attrs: { for: s.labelFor } }, [s.$slots.label ? s._t("label") : [s._v(s._s(s.label))]], 2) : s._e()]) : [s.hasLabel ? t("label", { staticClass: "label truncate-text", class: s.customClass, attrs: { for: s.labelFor } }, [s.$slots.label ? s._t("label") : [s._v(s._s(s.label))]], 2) : s._e()], s.horizontal ? t("CFieldBody", { attrs: { message: s.newMessage ? s.formattedMessage : "", type: s.newType } }, [s._t("default")], 2) : [s._t("default")], s.newMessage && !s.horizontal ? t("p", { staticClass: "help", class: s.newType, domProps: { innerHTML: s._s(s.formattedMessage) } }) : s._e()], 2);
|
|
170
|
+
}, h = [], f = /* @__PURE__ */ n(
|
|
171
|
+
p,
|
|
172
|
+
d,
|
|
173
|
+
h,
|
|
174
|
+
!1,
|
|
175
|
+
null,
|
|
176
|
+
null,
|
|
177
|
+
null,
|
|
178
|
+
null
|
|
179
|
+
);
|
|
180
|
+
const b = f.exports;
|
|
181
|
+
export {
|
|
182
|
+
b as C
|
|
183
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
|
|
@@ -0,0 +1,83 @@
|
|
|
1
|
+
import { n as s, a3 as r } from "./main-04025a56.js";
|
|
2
|
+
const o = {
|
|
3
|
+
name: "SmartList",
|
|
4
|
+
props: {
|
|
5
|
+
defaultSort: {
|
|
6
|
+
type: String,
|
|
7
|
+
default: "desc",
|
|
8
|
+
validator(t) {
|
|
9
|
+
return ["asc", "desc"].includes(t);
|
|
10
|
+
}
|
|
11
|
+
},
|
|
12
|
+
filterMethod: {
|
|
13
|
+
type: Function,
|
|
14
|
+
default: null
|
|
15
|
+
},
|
|
16
|
+
items: {
|
|
17
|
+
type: Array,
|
|
18
|
+
required: !0
|
|
19
|
+
},
|
|
20
|
+
sortMethod: {
|
|
21
|
+
type: Function,
|
|
22
|
+
default: null
|
|
23
|
+
},
|
|
24
|
+
sortKey: {
|
|
25
|
+
type: String,
|
|
26
|
+
default: ""
|
|
27
|
+
},
|
|
28
|
+
query: {
|
|
29
|
+
type: String,
|
|
30
|
+
default: ""
|
|
31
|
+
}
|
|
32
|
+
},
|
|
33
|
+
data() {
|
|
34
|
+
return {
|
|
35
|
+
sortBy: this.sortKey,
|
|
36
|
+
sortOrder: 1
|
|
37
|
+
};
|
|
38
|
+
},
|
|
39
|
+
computed: {
|
|
40
|
+
filteredItems() {
|
|
41
|
+
let t = this.items;
|
|
42
|
+
return this.query && (t = this.filterMethod ? this.filterMethod(this.query, this.items) : this.searchedItems), (this.sortBy || this.defaultSort) && (t = this.sortMethod ? this.sortMethod(this.sort, this.searchedItems) : this.sortedItems), t;
|
|
43
|
+
},
|
|
44
|
+
searchedItems() {
|
|
45
|
+
return this.items.filter((t) => typeof t == "object" ? Object.keys(t).some((e) => String(t[e]).toLowerCase().includes(this.query.toLowerCase())) : String(t).toLowerCase().includes(this.query.toLowerCase()));
|
|
46
|
+
},
|
|
47
|
+
sortedItems() {
|
|
48
|
+
return this.searchedItems.slice().sort((t, e) => (typeof t == "object" && typeof e == "object" && (t = t[this.sortBy], e = e[this.sortBy]), (t === e ? 0 : r(t, e)) * this.sortOrder));
|
|
49
|
+
}
|
|
50
|
+
},
|
|
51
|
+
created() {
|
|
52
|
+
this.defaultSort && (this.sortOrder = this.defaultSort === "asc" ? this.sortOrder : this.sortOrder * -1);
|
|
53
|
+
},
|
|
54
|
+
methods: {
|
|
55
|
+
sort(t) {
|
|
56
|
+
this.sortBy = t, this.sortOrder = this.sortOrder * -1;
|
|
57
|
+
}
|
|
58
|
+
},
|
|
59
|
+
render() {
|
|
60
|
+
return this.$scopedSlots.default({
|
|
61
|
+
items: this.filteredItems,
|
|
62
|
+
sortBy: this.sort,
|
|
63
|
+
sort: {
|
|
64
|
+
by: this.sortBy,
|
|
65
|
+
order: this.sortOrder === 1 ? "asc" : "desc"
|
|
66
|
+
}
|
|
67
|
+
});
|
|
68
|
+
}
|
|
69
|
+
}, i = null, _ = null;
|
|
70
|
+
var n = /* @__PURE__ */ s(
|
|
71
|
+
o,
|
|
72
|
+
i,
|
|
73
|
+
_,
|
|
74
|
+
!1,
|
|
75
|
+
null,
|
|
76
|
+
null,
|
|
77
|
+
null,
|
|
78
|
+
null
|
|
79
|
+
);
|
|
80
|
+
const l = n.exports;
|
|
81
|
+
export {
|
|
82
|
+
l as S
|
|
83
|
+
};
|
|
@@ -0,0 +1,80 @@
|
|
|
1
|
+
import { S as o } from "./SearchApi-2e286be6.js";
|
|
2
|
+
import { n as l, t as c } from "./main-04025a56.js";
|
|
3
|
+
const i = {
|
|
4
|
+
i18nOptions: {
|
|
5
|
+
namespaces: "components",
|
|
6
|
+
keyPrefix: "account.documentForm.clients"
|
|
7
|
+
},
|
|
8
|
+
name: "ClientAutocomplete",
|
|
9
|
+
components: {
|
|
10
|
+
SearchApi: o
|
|
11
|
+
},
|
|
12
|
+
props: {
|
|
13
|
+
searchEnabled: {
|
|
14
|
+
type: Boolean,
|
|
15
|
+
default: !0
|
|
16
|
+
},
|
|
17
|
+
showLoading: {
|
|
18
|
+
type: Boolean,
|
|
19
|
+
default: !1
|
|
20
|
+
},
|
|
21
|
+
showEmpty: {
|
|
22
|
+
type: Boolean,
|
|
23
|
+
default: !1
|
|
24
|
+
},
|
|
25
|
+
filled: {
|
|
26
|
+
type: Boolean,
|
|
27
|
+
default: !1
|
|
28
|
+
}
|
|
29
|
+
},
|
|
30
|
+
data() {
|
|
31
|
+
return {
|
|
32
|
+
convertToNewClient: c,
|
|
33
|
+
results: [],
|
|
34
|
+
// results when searching for existing endCustomer
|
|
35
|
+
searchQuery: ""
|
|
36
|
+
// query used to search for endCustomers
|
|
37
|
+
};
|
|
38
|
+
},
|
|
39
|
+
methods: {
|
|
40
|
+
search(n, e) {
|
|
41
|
+
this.$emit("input", e), this.searchEnabled && (this.searchQuery = e, n({
|
|
42
|
+
q: e,
|
|
43
|
+
cb: ({ endCustomer: s }) => {
|
|
44
|
+
this.results = s;
|
|
45
|
+
}
|
|
46
|
+
}));
|
|
47
|
+
}
|
|
48
|
+
}
|
|
49
|
+
};
|
|
50
|
+
var u = function() {
|
|
51
|
+
var e = this, s = e._self._c;
|
|
52
|
+
return s("SearchApi", { attrs: { "custom-search": { endCustomer: !0 } }, scopedSlots: e._u([{ key: "default", fn: function({ fetch: r, isLoading: a }) {
|
|
53
|
+
return [s("CAutocomplete", e._b({ attrs: { data: e.results, loading: e.showLoading && a, filled: e.filled, expanded: "", "keep-first": "" }, on: { typing: function(t) {
|
|
54
|
+
return e.search(r, t);
|
|
55
|
+
}, select: function(t) {
|
|
56
|
+
e.$emit("setClient", e.convertToNewClient(t));
|
|
57
|
+
} }, scopedSlots: e._u([{ key: "default", fn: function({ option: t }) {
|
|
58
|
+
return s("div", { staticStyle: { "line-height": "1.5" } }, [s("div", { staticStyle: { "font-weight": "500" } }, [e._v(e._s(t.name || t.email))]), s("div", { staticClass: "has-text-grey-dark", staticStyle: { "font-size": "14px" } }, [e._v(" " + e._s(t.reference ? `${t.reference} · ` : "") + " " + e._s(t.workStreet || t.street || " ") + " ")])]);
|
|
59
|
+
} }], null, !0) }, "CAutocomplete", {
|
|
60
|
+
placeholder: e.$t("search.placeholder"),
|
|
61
|
+
...e.$attrs,
|
|
62
|
+
...e.$props
|
|
63
|
+
}, !1), [e.searchEnabled && e.showEmpty ? [s("div", { attrs: { slot: "footer" }, slot: "footer" }, [e.searchQuery && !e.results.length ? s("CButton", { staticStyle: { "font-weight": "600" }, attrs: { type: "secondary", pattern: "tertiary", size: "small" }, on: { click: function(t) {
|
|
64
|
+
return e.$emit("add");
|
|
65
|
+
} } }, [e._v(" " + e._s(e.$t("_common:add")) + " ")]) : e._e()], 1), s("template", { slot: "empty" }, [e._v(" " + e._s(e.$t("search.empty")) + " " + e._s(e.searchQuery) + " ")])] : e._e()], 2)];
|
|
66
|
+
} }]) });
|
|
67
|
+
}, d = [], _ = /* @__PURE__ */ l(
|
|
68
|
+
i,
|
|
69
|
+
u,
|
|
70
|
+
d,
|
|
71
|
+
!1,
|
|
72
|
+
null,
|
|
73
|
+
"5d023500",
|
|
74
|
+
null,
|
|
75
|
+
null
|
|
76
|
+
);
|
|
77
|
+
const m = _.exports;
|
|
78
|
+
export {
|
|
79
|
+
m as C
|
|
80
|
+
};
|