@cling-se/widget 0.9.1 → 0.9.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.
- package/dist/AddClientCallout-746899d9.js +57 -0
- package/dist/{AnswerModal-c22c6729.js → AnswerModal-fdfea0f8.js} +7 -5
- package/dist/{AttachmentItem-ab7c264b.js → AttachmentItem-5671c64d.js} +5 -7
- package/dist/BaseDatePicker-a9240306.js +3156 -0
- package/dist/{BaseInput-2b048506.js → BaseInput-d3c3688b.js} +4 -4
- package/dist/{BaseUpload-869cbd9a.js → BaseUpload-8e7a2b72.js} +3 -3
- package/dist/BlockMedia-b613a2a4.js +72 -0
- package/dist/CCallout-e9ff903a.js +52 -0
- package/dist/CDropdownItem-05d84f95.js +610 -0
- package/dist/CField-cd4dcae9.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-383db616.js +83 -0
- package/dist/ClientAutocomplete-421a2216.js +80 -0
- package/dist/ClientModal-11341b1c.js +547 -0
- package/dist/ColorPicker-f90939b5.js +2881 -0
- package/dist/{CompanyModal-26243605.js → CompanyModal-2bfd21b8.js} +12 -11
- package/dist/{ContentWrapper-315b8ac7.js → ContentWrapper-4aae35b2.js} +21 -14
- package/dist/{CoverBlockSettings-ff4d5ccc.js → CoverBlockSettings-1f917be3.js} +7 -7
- package/dist/DocForm-0891c6b2.js +6767 -0
- package/dist/DocFormSend-2b35999d.js +135 -0
- package/dist/{DocModalBase-3d81e120.js → DocModalBase-225e2f2d.js} +1 -1
- package/dist/{DocReceipt-c9c5aefc.js → DocReceipt-1391c17a.js} +1 -1
- package/dist/{DocSendReminder-ab8e6f0f.js → DocSendReminder-c488842d.js} +1 -1
- package/dist/{DocTextEditor-88987249.js → DocTextEditor-2538e1ab.js} +16 -12
- package/dist/{DocTimeline-8e8a1b51.js → DocTimeline-69ada0de.js} +11 -11
- package/dist/DocumentClient-74b8f25b.js +145 -0
- package/dist/{DocumentLogotype-a777ea0d.js → DocumentLogotype-e89b53fb.js} +3 -3
- package/dist/{EmbedInput-4b92adae.js → EmbedInput-b7fefe5e.js} +10 -11
- package/dist/{EmbedSettings-0701c838.js → EmbedSettings-4957252f.js} +10 -11
- package/dist/ErrorCallout-42e45ec0.js +30 -0
- package/dist/{FilePreviewModal-fa0f4b2c.js → FilePreviewModal-75693619.js} +6 -7
- package/dist/FormInputRow-09d450e3.js +2045 -0
- package/dist/{HeaderSettings-3b1f470a.js → HeaderSettings-9b69eada.js} +23 -19
- package/dist/{ImageSelectModal-24b1d738.js → ImageSelectModal-94d4dc7f.js} +20 -18
- package/dist/{ImageUploadWrapper-f9d3ab48.js → ImageUploadWrapper-a144b042.js} +2 -2
- package/dist/{Index-a6d8cb6c.js → Index-00ef9241.js} +10 -10
- package/dist/{Index-17041bc1.js → Index-023c3119.js} +6 -7
- package/dist/{Index-1df9e104.js → Index-1bafafca.js} +2 -2
- package/dist/{Index-e9dcaa48.js → Index-2cb8fa22.js} +73 -118
- package/dist/{Index-9797765e.js → Index-304c45be.js} +21 -16
- package/dist/{Index-ec4600d0.js → Index-35387450.js} +52 -42
- package/dist/Index-37a9183b.js +28 -0
- package/dist/{Index-d21e1d0d.js → Index-3dff19dd.js} +7 -7
- package/dist/{Index-53f58582.js → Index-3ee2e944.js} +2 -2
- package/dist/{Index-41e37657.js → Index-42e26b46.js} +11 -11
- package/dist/{Index-36b91cfc.js → Index-4440fe3d.js} +6 -7
- package/dist/{Index-36fc26f9.js → Index-4563d3fa.js} +33 -31
- package/dist/{Index-9262d0cb.js → Index-53da7be8.js} +3 -3
- package/dist/{Index-bfc7f353.js → Index-62936c19.js} +16 -17
- package/dist/{Index-9a0239fe.js → Index-693005f0.js} +6 -7
- package/dist/{Index-5c0744c1.js → Index-78f13416.js} +6 -7
- package/dist/{Index-a01c2862.js → Index-90492f19.js} +5 -6
- package/dist/{Index-8bb9f798.js → Index-96f39afc.js} +6 -7
- package/dist/{Index-ee9ff714.js → Index-97d1f2f3.js} +8 -8
- package/dist/{Index-41e93dd5.js → Index-9a243eb8.js} +2 -2
- package/dist/{Index-01f77191.js → Index-9ffe9766.js} +11 -12
- package/dist/{Index-be520920.js → Index-a37beb03.js} +1 -1
- package/dist/{Index-e5ebcd2f.js → Index-a554b58c.js} +6 -7
- package/dist/{Index-aa1323ee.js → Index-a86ea774.js} +8 -9
- package/dist/{Index-c070cd5e.js → Index-abb8c6e4.js} +6 -6
- package/dist/{Index-74d98d97.js → Index-b7def77a.js} +8 -9
- package/dist/{Index-6f5192b8.js → Index-bcc478b3.js} +7 -8
- package/dist/{Index-033cd5ed.js → Index-cec7d4f1.js} +22 -15
- package/dist/{Index-560f7a0f.js → Index-d68a28da.js} +7 -7
- package/dist/{Index-5ba3dd14.js → Index-dbe97658.js} +2 -2
- package/dist/{Index-a5b8ec5c.js → Index-ec8d534f.js} +4 -6
- package/dist/{Index-013c4412.js → Index-f2b66b79.js} +6 -7
- package/dist/{Index-8ad015e2.js → Index-f453850f.js} +6 -7
- package/dist/{Index-78391f8b.js → Index-f9b5f03c.js} +27 -20
- package/dist/{InputToggleRow-9aa959ff.js → InputToggleRow-68320d9f.js} +1 -1
- package/dist/IsPremiumPreStep-0c7032a3.js +1919 -0
- package/dist/{MediaWrapper-03b27562.js → MediaWrapper-c50879c2.js} +4 -4
- package/dist/{NotBindingText-fb4e9ecb.js → NotBindingText-8f2d9244.js} +2 -2
- package/dist/{PackageGroup-821d41fa.js → PackageGroup-2c49e99b.js} +24 -17
- package/dist/{PdfTerms-4a29bcc9.js → PdfTerms-94153a5f.js} +6 -7
- package/dist/{PdfViewer-374bfe41.js → PdfViewer-701ad40e.js} +2 -2
- package/dist/{PlainHtml-65923dd4.js → PlainHtml-04a6d7f9.js} +1 -1
- package/dist/PriceHeader-7f92d5a7.js +336 -0
- package/dist/SearchApi-ffe5b697.js +148 -0
- package/dist/{TermsSettings-4a40aaa2.js → TermsSettings-b1bf19e9.js} +6 -6
- package/dist/{ThemeColorRow-72b7a35b.js → ThemeColorRow-913497f6.js} +7 -6
- package/dist/{ToggleBinding-00c37a9d.js → ToggleBinding-6518935d.js} +8 -9
- package/dist/{UploadModal-761770b9.js → UploadModal-3c399d25.js} +21 -22
- package/dist/{VideoPlayerInput-6692fe27.js → VideoPlayerInput-b54845a4.js} +5 -6
- package/dist/{VideoPlayerSettings-2b7a8a39.js → VideoPlayerSettings-496e9e79.js} +13 -14
- package/dist/{VideoSelectModal-4596e9b4.js → VideoSelectModal-3a566398.js} +10 -10
- package/dist/anime.es-e284c852.js +858 -0
- package/dist/answerDocumentMixin-0e5e4dbb.js +54 -0
- package/dist/color-71c20583.js +15 -0
- package/dist/{cssMode-34bf902e.js → cssMode-c0865919.js} +15 -14
- package/dist/focusDrawerMixin-298861bc.js +68 -0
- package/dist/formComponentsInstall-1be6791d.js +2491 -0
- package/dist/formValidationMixin-df38771c.js +4984 -0
- package/dist/{freemarker2-61453951.js → freemarker2-85dde97c.js} +19 -18
- package/dist/{handlebars-24c80c6f.js → handlebars-6aa1e52b.js} +18 -17
- package/dist/{html-fc291ba3.js → html-f0c735cd.js} +14 -13
- package/dist/{htmlMode-bb27a86a.js → htmlMode-7b3bd7c9.js} +19 -18
- package/dist/{index-afe3eb26.js → index-1ef6f423.js} +21 -15
- package/dist/index-30808a2c.js +490 -0
- package/dist/{index-053f9545.js → index-431938de.js} +13 -12
- package/dist/index-6d08eac3.js +14 -0
- package/dist/index-805c56e4.js +4 -0
- package/dist/index.es.js +3 -3
- package/dist/index.umd.js +713 -600
- package/dist/{javascript-584c9812.js → javascript-9c54ad9e.js} +11 -10
- package/dist/{jsonMode-f03e810a.js → jsonMode-1d1176fa.js} +19 -18
- package/dist/{liquid-2157b417.js → liquid-0738c73d.js} +11 -10
- package/dist/{main-e2129a84.js → main-2d9b8259.js} +19557 -20415
- package/dist/mapFormMixin-308bbdab.js +66 -0
- package/dist/{publicSenderState-11d47322.js → publicSenderState-9eecb11f.js} +1 -1
- package/dist/{python-7f1728ff.js → python-588c9e64.js} +11 -10
- package/dist/{razor-54008302.js → razor-fbaa1d21.js} +14 -13
- package/dist/regions-29ee6964.js +1250 -0
- package/dist/simplebar.min-75960401.js +2429 -0
- package/dist/style.css +4 -0
- package/dist/template-b877debf.js +526 -0
- package/dist/throttle-d7bed81a.js +18 -0
- package/dist/tinycolor-ef496244.js +634 -0
- package/dist/{tsMode-6bcf5f10.js → tsMode-c1de8e10.js} +15 -14
- package/dist/{typescript-f225fd6d.js → typescript-737827aa.js} +11 -10
- package/dist/{utils-c4dbd526.js → utils-69c41ae9.js} +5 -5
- package/dist/vuedraggable.umd-67b8cddf.js +3179 -0
- package/dist/{xml-8680011c.js → xml-30e811a1.js} +11 -10
- package/package.json +4 -4
- package/stats.html +1 -1
- package/dist/DocForm-b6cc1bdf.js +0 -22074
- package/dist/DocFormSend-1c7e370d.js +0 -113
- package/dist/Index-0f345bed.js +0 -29
- package/dist/PriceHeader-4fb21725.js +0 -329
- package/dist/formComponentsInstall-0d5f842a.js +0 -11121
- package/dist/index-3a6d34e0.js +0 -11
- package/dist/throttle-7fc52dc7.js +0 -18
|
@@ -0,0 +1,183 @@
|
|
|
1
|
+
import { n } from "./main-2d9b8259.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-2d9b8259.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-ffe5b697.js";
|
|
2
|
+
import { n as l, t as c } from "./main-2d9b8259.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
|
+
};
|