@cling-se/widget 0.14.3 → 0.14.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.
Files changed (134) hide show
  1. package/.eslintrc.cjs +4 -4
  2. package/README.md +40 -40
  3. package/package.json +1 -1
  4. package/tsconfig.json +26 -26
  5. package/tsconfig.node.json +10 -10
  6. package/tsconfig.paths.json +17 -17
  7. package/vite.config.ts +61 -61
  8. package/dist/AddClientCallout-DKH-LP5B.js +0 -46
  9. package/dist/AnswerModal-BCbq8wc4.js +0 -3869
  10. package/dist/AttachmentItem-60CSZnkF.js +0 -78
  11. package/dist/BaseDatePicker-Cl8SnC1k.js +0 -3183
  12. package/dist/BaseUpload-D4FCjlhL.js +0 -1977
  13. package/dist/BlockMedia-CqkwdGnE.js +0 -76
  14. package/dist/CCallout-BTBgU8f-.js +0 -59
  15. package/dist/CCurrencyDropdown-CL32Mo-Y.js +0 -246
  16. package/dist/CDropdownItem-DlWtQwO6.js +0 -538
  17. package/dist/CField.vue_vue_type_style_index_0_lang-l0sNRNKZ.js +0 -1
  18. package/dist/CFormField-BxJv-nUO.js +0 -241
  19. package/dist/CPhoneFormat-CJ9kndtJ.js +0 -62
  20. package/dist/CPriceInput-BpXI5X2j.js +0 -112
  21. package/dist/CTabs.vue_vue_type_style_index_0_scoped_e02a6440_lang-l0sNRNKZ.js +0 -1
  22. package/dist/ClientAutocomplete-D9Dj9iBW.js +0 -78
  23. package/dist/ClientModal-JOt8NGcR.js +0 -625
  24. package/dist/ColorPicker-uPKD-Gvm.js +0 -2879
  25. package/dist/CompanyModal-7bG0iIRd.js +0 -141
  26. package/dist/ContentWrapper-B2nyZHL4.js +0 -183
  27. package/dist/CoverBlockSettings-C1O_FAde.js +0 -275
  28. package/dist/DocAnswer-B9G-y4Px.js +0 -36
  29. package/dist/DocDetails-DYHxKChO.js +0 -246
  30. package/dist/DocForm-BktEXjML.js +0 -7273
  31. package/dist/DocFormSend-DM6QgUOj.js +0 -143
  32. package/dist/DocLinks-BIGwfB3H.js +0 -38
  33. package/dist/DocModalBase-D5GdwTI7.js +0 -28
  34. package/dist/DocPrint-HqbaIGms.js +0 -240
  35. package/dist/DocReceipt-WXo6vWyW.js +0 -210
  36. package/dist/DocSendReminder-C8dNEpLg.js +0 -137
  37. package/dist/DocTextEditor-BfOZFDTP.js +0 -17177
  38. package/dist/DocTimeline-CitwS9px.js +0 -481
  39. package/dist/DocumentClient-CQ_z8ajY.js +0 -136
  40. package/dist/DocumentLayout-BA7mFfZh.js +0 -4909
  41. package/dist/DocumentLogotype-woc_hfll.js +0 -87
  42. package/dist/DocumentVoided-DC4FzpxG.js +0 -25
  43. package/dist/EmbedInput-CheqYcNr.js +0 -113
  44. package/dist/EmbedSettings-YcwM8hJw.js +0 -72
  45. package/dist/ErrorCallout-6pCYcx00.js +0 -28
  46. package/dist/FilePreviewModal-T8AiphqO.js +0 -81
  47. package/dist/Flag-Ddm6a4Il.js +0 -114
  48. package/dist/HeaderSettings-DHdZweJH.js +0 -392
  49. package/dist/ImageSelectModal-CAoBhnI8.js +0 -84
  50. package/dist/ImageUploadWrapper-CNv59Lhh.js +0 -1604
  51. package/dist/Index-B6S9U4Z-.js +0 -26
  52. package/dist/Index-BHX0D5fW.js +0 -559
  53. package/dist/Index-BL_7m5Ca.js +0 -70
  54. package/dist/Index-BXMXEUfo.js +0 -223
  55. package/dist/Index-BhVBvMu6.js +0 -32
  56. package/dist/Index-Bl_SNW80.js +0 -25
  57. package/dist/Index-BsguntKl.js +0 -21
  58. package/dist/Index-CGYjPfsf.js +0 -2402
  59. package/dist/Index-CKrGb3of.js +0 -61
  60. package/dist/Index-CMNrQo5a.js +0 -140
  61. package/dist/Index-CU50Al5c.js +0 -642
  62. package/dist/Index-CdqrrZxd.js +0 -77
  63. package/dist/Index-CfnL9dAw.js +0 -58
  64. package/dist/Index-CuW0MYrT.js +0 -171
  65. package/dist/Index-D-z8JSn6.js +0 -154
  66. package/dist/Index-D8giJ_bs.js +0 -84
  67. package/dist/Index-DDvfqy_h.js +0 -24
  68. package/dist/Index-DQDalqZ-.js +0 -107
  69. package/dist/Index-DTIPKKkV.js +0 -150
  70. package/dist/Index-DWxzUBff.js +0 -754
  71. package/dist/Index-DaNGeDQw.js +0 -144
  72. package/dist/Index-DfLU_AyN.js +0 -49
  73. package/dist/Index-DkVav_I7.js +0 -25
  74. package/dist/Index-Dxp8QAtB.js +0 -57
  75. package/dist/Index-DzjxFkcv.js +0 -52
  76. package/dist/Index-EwUJJWaB.js +0 -69
  77. package/dist/Index-I60qAqLl.js +0 -31
  78. package/dist/Index-LfF-7lQK.js +0 -292
  79. package/dist/Index-P0_dyc2V.js +0 -45
  80. package/dist/Index-RQMPSeHw.js +0 -98
  81. package/dist/Index-oipNLl3Y.js +0 -46
  82. package/dist/Index-sJq2Iyvt.js +0 -62
  83. package/dist/Index-uubi3NHX.js +0 -33
  84. package/dist/Index-vNj2kYZT.js +0 -55
  85. package/dist/InputToggleRow-B2pWvVyx.js +0 -57
  86. package/dist/ManualPopover-BI_Sf1zG.js +0 -54
  87. package/dist/MediaWrapper-eFpWxv3n.js +0 -23
  88. package/dist/NotBindingText-DA5NpePz.js +0 -32
  89. package/dist/PackageGroup-DOSijBdN.js +0 -699
  90. package/dist/PdfTerms-Q5YuVtrJ.js +0 -36
  91. package/dist/PdfViewer-zcWl8XZT.js +0 -374
  92. package/dist/PlainHtml-BmA83UAm.js +0 -20
  93. package/dist/PriceHeader-C14L5zgG.js +0 -339
  94. package/dist/SearchApi-CGT7-jVf.js +0 -161
  95. package/dist/Setup-RJQvZlDO.js +0 -50
  96. package/dist/SmartList-YosKRPVn.js +0 -83
  97. package/dist/TermsSettings-C5JTv7rT.js +0 -102
  98. package/dist/ThemeColorRow-D-C_tm2f.js +0 -63
  99. package/dist/ToggleBinding-KEVHHvKf.js +0 -38
  100. package/dist/UploadModal-DOYoWELI.js +0 -95
  101. package/dist/VideoPlayerInput-Dxb6CNk-.js +0 -93
  102. package/dist/VideoPlayerSettings-DsVN4Ix-.js +0 -61
  103. package/dist/VideoSelectModal-BpfzNx61.js +0 -100
  104. package/dist/anime.es-BrPTThYb.js +0 -858
  105. package/dist/answerDocumentMixin-BJMGrfUs.js +0 -51
  106. package/dist/color-TdtKxwVa.js +0 -19
  107. package/dist/debounce-BN83gOVd.js +0 -84
  108. package/dist/dom-CJxkno7i.js +0 -91
  109. package/dist/favicon.ico +0 -0
  110. package/dist/focusDrawerMixin-CawyQaGq.js +0 -22
  111. package/dist/formComponentsInstall-jcnyQ1zw.js +0 -2494
  112. package/dist/formDrawerState-BdNohvZH.js +0 -20
  113. package/dist/formValidationMixin-DOwgebZk.js +0 -49
  114. package/dist/i18nMessages-Chz_lxGG.js +0 -17
  115. package/dist/index-BBJIOkm_.js +0 -347
  116. package/dist/index-BNq9YCWc.js +0 -166
  117. package/dist/index-BdhbkLLU.js +0 -81
  118. package/dist/index-COf8F6CL.js +0 -3916
  119. package/dist/index-D0WvZHX_.js +0 -102
  120. package/dist/index-DTzZP4yq.js +0 -492
  121. package/dist/index.es.js +0 -35
  122. package/dist/index.umd.js +0 -3148
  123. package/dist/main-DE5THsiR.js +0 -56739
  124. package/dist/mapFormMixin-y2txvLw9.js +0 -72
  125. package/dist/omit-BrsWQAtU.js +0 -31
  126. package/dist/publicSenderState-BYsq95Vt.js +0 -21
  127. package/dist/splitpanes-BHUVsCZF.js +0 -382
  128. package/dist/style.css +0 -4
  129. package/dist/throttle-C2srA2wa.js +0 -18
  130. package/dist/tinycolor-SjV_ROuP.js +0 -633
  131. package/dist/tippy.esm-Dj7DQppr.js +0 -1799
  132. package/dist/utils-16HMuRfY.js +0 -108
  133. package/dist/vuedraggable.umd-Cd1g2Hr7.js +0 -3161
  134. package/dist/vuex.esm-DKGl8mcw.js +0 -467
@@ -1,223 +0,0 @@
1
- import { m as C } from "./mapFormMixin-y2txvLw9.js";
2
- import { n as f, b as _ } from "./main-DE5THsiR.js";
3
- import { C as b } from "./CPhoneFormat-CJ9kndtJ.js";
4
- const $ = {
5
- name: "DocPartiesItem",
6
- components: {
7
- CPhoneFormat: b
8
- },
9
- props: {
10
- label: {
11
- type: String,
12
- required: !0
13
- },
14
- data: {
15
- type: [String, Object],
16
- required: !0
17
- },
18
- type: {
19
- type: String,
20
- default: ""
21
- },
22
- canEdit: {
23
- type: Boolean,
24
- default: !1
25
- }
26
- }
27
- };
28
- var w = function() {
29
- var e = this, t = e._self._c;
30
- return t("div", { staticClass: "client-row" }, [t("div", { staticClass: "label" }, [e._v(" " + e._s(e.label) + " ")]), t("div", { staticClass: "data", class: {
31
- "is-editable": e.canEdit
32
- } }, [t("span", { on: { click: function(a) {
33
- return e.$emit("click");
34
- } } }, [e.type === "phone" ? t("CPhoneFormat", { attrs: { phone: e.data.cellphone, region: e.data.region } }) : [e._v(e._s(e.data))]], 2)])]);
35
- }, k = [], x = /* @__PURE__ */ f(
36
- $,
37
- w,
38
- k,
39
- !1,
40
- null,
41
- "9bad68ca"
42
- );
43
- const S = x.exports, F = {
44
- client: () => import("./ClientModal-JOt8NGcR.js"),
45
- company: () => import("./CompanyModal-7bG0iIRd.js")
46
- }, I = {
47
- i18nOptions: {
48
- namespaces: "components"
49
- },
50
- name: "DocParties",
51
- components: {
52
- DocPartiesItem: S,
53
- AddClientCallout: () => import("./AddClientCallout-DKH-LP5B.js")
54
- },
55
- mixins: [C()],
56
- props: {
57
- // todo: atm custom behaviour for path 'data.sender' through doc-class
58
- parties: {
59
- type: [Array, Object],
60
- default: () => []
61
- }
62
- },
63
- data() {
64
- return {
65
- type: "client",
66
- hoverIndex: null
67
- };
68
- },
69
- computed: {
70
- mappedParties() {
71
- const n = (t, a = {}) => this._document.$t(t, { postProcess: "capitalize", ...a });
72
- return (Array.isArray(this.parties) ? this.parties : [this.parties]).map((t) => {
73
- const {
74
- orgNo: a,
75
- socialNo: i,
76
- companyName: s,
77
- name: r,
78
- type: d,
79
- cellphone: m,
80
- cellphoneRegion: y,
81
- email: u,
82
- addresses: l,
83
- hasFSkatt: v,
84
- hasInsurance: h
85
- } = t, c = d === "individual", o = l && (l.standard || l.work);
86
- o && (o.formKey = l.standard ? "street" : "workStreet");
87
- const g = [
88
- s && {
89
- label: n("company"),
90
- value: s,
91
- formKey: "name"
92
- },
93
- a && {
94
- label: n("orgNoShort"),
95
- value: a,
96
- formKey: "orgNo"
97
- },
98
- r && {
99
- label: n(c ? "name" : "reference"),
100
- value: r,
101
- formKey: c ? "name" : "reference"
102
- },
103
- i && c && {
104
- label: n("socialNo"),
105
- value: i,
106
- formKey: "orgNo"
107
- },
108
- u && {
109
- label: n("email"),
110
- value: u,
111
- formKey: "email"
112
- },
113
- m && {
114
- label: n("phone"),
115
- type: "phone",
116
- value: {
117
- cellphone: m,
118
- region: y || _(this._document, "sender.company.region", "")
119
- },
120
- formKey: "cellphone"
121
- },
122
- o && {
123
- label: n("address"),
124
- value: this.parseStreet(o.street, o.city, o.zip),
125
- formKey: o.formKey
126
- }
127
- ], p = [];
128
- return v && p.push({
129
- label: this._document.$t("chapters.parties.fTax"),
130
- value: v
131
- }), h && p.push({
132
- label: this._document.$t("chapters.parties.allRiskAndLiability"),
133
- value: h
134
- }), {
135
- main: g,
136
- checks: p
137
- };
138
- });
139
- }
140
- },
141
- created() {
142
- _(this, "_value.parties", "") !== "clients" && (this.type = "company");
143
- },
144
- methods: {
145
- openModal({ formKey: n, index: e } = {}) {
146
- var i;
147
- let t = "name", a = !1;
148
- n && (t = n, ["name", "email", "cellphone", "reference"].includes(n) || (a = !0)), this.$modal.show(F[this.type], {
149
- inputFocusOnMount: t,
150
- forceExpand: a,
151
- documentClientIndex: e,
152
- signOptions: (i = this._document) == null ? void 0 : i.signOptions,
153
- setFormValue: this.viewSettings.setFormValue,
154
- removeFormValue: this.viewSettings.removeFormValue,
155
- isPublicForm: this.viewSettings.isPublicForm
156
- });
157
- },
158
- removeClient(n) {
159
- this.parties[n] && this.removeField(`clients[${n}]`);
160
- },
161
- parseStreet(n, e, t) {
162
- let a = "";
163
- return n && (a += n), n && (t || e) && (a += ", "), t && (a += ` ${t}`), e && (a += ` ${e}`), a;
164
- },
165
- searchEndCustomers(n, e) {
166
- n({
167
- q: e,
168
- cb: ({ endCustomer: t }) => {
169
- this.results = t;
170
- }
171
- });
172
- },
173
- setClient(n) {
174
- this.$emit("input", {
175
- key: `clients[${this.parties.length}]`,
176
- value: n
177
- });
178
- }
179
- }
180
- };
181
- var P = function() {
182
- var e = this, t = e._self._c;
183
- return t("div", { staticStyle: { position: "relative" } }, [e.viewSettings.canEdit ? t("div", { staticClass: "edit-button" }, [e.type === "company" ? t("CButton", { attrs: { type: "none", size: "small", pattern: "secondary" }, on: { click: e.openModal } }, [e._v(" " + e._s(e.$t("_common:edit").capitalize()) + " ")]) : e.parties.length && e.type === "client" ? t("CDropdown", { ref: "dropdown", attrs: { position: "is-bottom-left" } }, [t("CButton", { attrs: { slot: "trigger", type: "none", size: "small", pattern: "secondary", "icon-right": "chevron-down" }, slot: "trigger" }, [e._v(" " + e._s(e.$t("_common:more").capitalize()) + " ")]), t("CDropdownItem", { attrs: { "icon-props": {
184
- class: "text-primary-500"
185
- }, "icon-left": "plus-circle" }, on: { click: function(a) {
186
- return e.openModal({ index: e.parties.length });
187
- } } }, [e._v(" " + e._s(e.$t("components:account.documentForm.clients.add.extra")) + " ")]), t("CDropdownItem", { attrs: { separator: "" } }), e._l(e.parties, function(a, i) {
188
- return t("CDropdownItem", { key: i, attrs: { "icon-props": {
189
- class: "text-gray-400"
190
- }, "icon-left": "edit" }, on: { click: function(s) {
191
- return e.openModal({ index: i });
192
- } } }, [e._v(" " + e._s(a.type === "individual" ? a.name : a.companyName || a.name) + " ")]);
193
- })], 2) : e._e()], 1) : e._e(), e.viewSettings.canEdit ? [e.type === "client" && !(e.parties && e.parties.length) ? t("AddClientCallout", { on: { add: function(a) {
194
- return e.openModal({ index: e.parties.length });
195
- }, setClient: e.setClient } }) : e._e(), e.type === "company" && e.viewSettings.isPublicForm && !(e.parties.companyName || e.parties.email) ? t("CCallout", { attrs: { title: e.$t("document.chapters.parties.missingSender.title") } }, [t("div", { staticStyle: { "padding-bottom": "1em" } }, [e._v(" " + e._s(e.$t("document.chapters.parties.missingSender.description")) + " ")]), t("CButton", { attrs: { "icon-left": "plus", type: "secondary" }, on: { click: e.openModal } }, [e._v(" " + e._s(e.$t("_common:add", { thing: e.$t("_common:info") })) + " ")])], 1) : e._e()] : e._e(), e._l(e.mappedParties, function(a, i) {
196
- return t("div", { key: i, staticClass: "party-wrapper print-avoid-break-inside", on: { "&mouseover": function(s) {
197
- e.hoverIndex = i;
198
- }, "&mouseleave": function(s) {
199
- e.hoverIndex = null;
200
- } } }, [e.viewSettings.canEdit && e.type !== "company" && e.hoverIndex === i ? t("div", { staticClass: "controls", staticStyle: { position: "absolute", left: "100%", top: "0", "padding-left": "calc(0.5 * var(--rem))" } }, [t("CButton", { attrs: { circle: "", size: "small", icon: "edit", type: "none", pattern: "tertiary" }, on: { click: function(s) {
201
- return e.openModal({ index: i });
202
- } } }), t("CButton", { attrs: { circle: "", size: "small", icon: "x", type: "none", pattern: "tertiary" }, on: { click: function(s) {
203
- return e.removeClient(i);
204
- } } })], 1) : e._e(), e._l(a.main, function(s, r) {
205
- return [s ? t("DocPartiesItem", { key: r, attrs: { label: s.label, data: s.value, type: s.type, "can-edit": e.viewSettings.canEdit }, on: { click: function(d) {
206
- e.viewSettings.canEdit && e.openModal({ formKey: s.formKey, index: i });
207
- } } }) : e._e()];
208
- }), a.checks && a.checks.length ? t("div", { staticStyle: { width: "100%", "padding-top": "calc(1 * var(--rem))" } }, e._l(a.checks, function(s, r) {
209
- return t("div", { key: r, staticClass: "check-text" }, [t("svg", { attrs: { width: "11", height: "11", viewBox: "0 0 218 185", xmlns: "http://www.w3.org/2000/svg" } }, [t("path", { staticClass: "primary-svg-fill", attrs: { d: "M217.931476 30.821773L180.506583.515692 85.82601 117.436462 29.993388 72.224097.068524 109.178227l93.257515 75.518447z", fill: "#D8D8D8", "fill-rule": "evenodd" } })]), t("div", [e._v(e._s(s.label))])]);
210
- }), 0) : e._e()], 2);
211
- })], 2);
212
- }, D = [], M = /* @__PURE__ */ f(
213
- I,
214
- P,
215
- D,
216
- !1,
217
- null,
218
- "b2458bb1"
219
- );
220
- const N = M.exports;
221
- export {
222
- N as default
223
- };
@@ -1,32 +0,0 @@
1
- import { m as n } from "./mapFormMixin-y2txvLw9.js";
2
- import { n as t } from "./main-DE5THsiR.js";
3
- const a = {
4
- name: "ExtraWorkConstructionPricingList",
5
- components: {
6
- Read: () => import("./Index-CuW0MYrT.js"),
7
- Edit: () => import("./Index-EwUJJWaB.js")
8
- },
9
- mixins: [
10
- n([
11
- "workPrice",
12
- "managementPrice",
13
- "entrepreneurMarkupPercentage",
14
- "miscMarkupPercentage"
15
- ])
16
- ]
17
- };
18
- var c = function() {
19
- var e = this, r = e._self._c;
20
- return e.canEdit ? r("Edit", e._g({ attrs: { _document: e._document, _value: e._value } }, e.$listeners)) : r("Read", { attrs: { _document: e._document, "work-price": e.workPrice, "management-price": e.managementPrice, "entrepreneur-markup-percentage": e.entrepreneurMarkupPercentage, "misc-markup-percentage": e.miscMarkupPercentage } });
21
- }, m = [], i = /* @__PURE__ */ t(
22
- a,
23
- c,
24
- m,
25
- !1,
26
- null,
27
- "b31d846d"
28
- );
29
- const _ = i.exports;
30
- export {
31
- _ as default
32
- };
@@ -1,25 +0,0 @@
1
- import { m as e } from "./mapFormMixin-y2txvLw9.js";
2
- import { n as r } from "./main-DE5THsiR.js";
3
- const a = {
4
- name: "EstimatedWorkStartAndEndAtText",
5
- components: {
6
- Read: () => import("./Index-oipNLl3Y.js"),
7
- Edit: () => import("./Index-CfnL9dAw.js")
8
- },
9
- mixins: [e(["startAt", "endAt"])]
10
- };
11
- var s = function() {
12
- var t = this, n = t._self._c;
13
- return t.canEdit ? n("Edit", t._g({ attrs: { _document: t._document, _value: t._value } }, t.$listeners)) : n("Read", { attrs: { "start-at": t.startAt, "end-at": t.endAt } });
14
- }, o = [], m = /* @__PURE__ */ r(
15
- a,
16
- s,
17
- o,
18
- !1,
19
- null,
20
- null
21
- );
22
- const c = m.exports;
23
- export {
24
- c as default
25
- };
@@ -1,21 +0,0 @@
1
- import { P as n } from "./PlainHtml-BmA83UAm.js";
2
- import { n as e } from "./main-DE5THsiR.js";
3
- const o = {
4
- name: "WorkAddressTextRead",
5
- functional: !0,
6
- render(s, r) {
7
- return s(n, [r.props.street ? `${r.props.street}, ` : "", r.props.zip ? `${r.props.zip} ` : " ", r.props.city]);
8
- }
9
- }, p = null, t = null;
10
- var l = /* @__PURE__ */ e(
11
- o,
12
- p,
13
- t,
14
- !1,
15
- null,
16
- null
17
- );
18
- const m = l.exports;
19
- export {
20
- m as default
21
- };