@cling-se/widget 0.15.2 → 0.15.5

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 (137) hide show
  1. package/README.md +43 -43
  2. package/dist/{AddClientCallout-CSxN7XFh.js → AddClientCallout-CrZF5j7A.js} +15 -13
  3. package/dist/{AnswerModal-DEwMlsT8.js → AnswerModal-C3r9vyki.js} +71 -71
  4. package/dist/{AttachmentItem-R7YMKqQ2.js → AttachmentItem-BVXrxCnv.js} +20 -13
  5. package/dist/{BaseDatePicker-Bd1maWgF.js → BaseDatePicker-DxL2l3QC.js} +561 -557
  6. package/dist/{BaseUpload-C9Jd1JBo.js → BaseUpload-B7259IaQ.js} +3 -3
  7. package/dist/{BlockMedia-CUCZYVdZ.js → BlockMedia-BSKtZMwa.js} +2 -2
  8. package/dist/{CCallout-_k7FPbsE.js → CCallout-BNvM6gNJ.js} +4 -5
  9. package/dist/{CCurrencyDropdown-DejfeYVY.js → CCurrencyDropdown-xmqmb8gW.js} +24 -20
  10. package/dist/{CDropdownItem-b6ZzOnv-.js → CDropdownItem-DiLisSei.js} +139 -37
  11. package/dist/{CFormField-BjGICSv5.js → CFormField-DcZVdj3a.js} +3 -4
  12. package/dist/{CPhoneFormat-Bf2fgYtr.js → CPhoneFormat-BeYxRN0i.js} +1 -1
  13. package/dist/CPhoneInput-UzZkxbC6.js +138 -0
  14. package/dist/{CPriceInput-myrETXfz.js → CPriceInput-C2y_3PM7.js} +20 -16
  15. package/dist/CSelect-BmP1UsQA.js +91 -0
  16. package/dist/CSkeleton-BNbft-NE.js +55 -0
  17. package/dist/ClientAutocomplete-BnredOme.js +438 -0
  18. package/dist/{ClientModal-DSmFJ9bu.js → ClientModal-DNcf4APF.js} +92 -51
  19. package/dist/{ColorPicker-B1MJicqo.js → ColorPicker-BupC4jvI.js} +2 -2
  20. package/dist/{CompanyModal-BXs3aAYm.js → CompanyModal-Bh8mEHE1.js} +25 -19
  21. package/dist/{ContentWrapper-BKWZy4Bp.js → ContentWrapper-Bs3nrJda.js} +63 -55
  22. package/dist/CoverBlockSettings-WYZsCdky.js +659 -0
  23. package/dist/{DocAnswer-CaoTYUNh.js → DocAnswer--FfsnnTB.js} +2 -2
  24. package/dist/{DocDetails-C9EEpNg2.js → DocDetails-Ce7bj-qO.js} +43 -39
  25. package/dist/{DocForm-Dww8Ust9.js → DocForm-FR_Vlq_C.js} +801 -755
  26. package/dist/{DocFormSend-DKAqaT50.js → DocFormSend-DcSv3JNg.js} +18 -15
  27. package/dist/{DocLinks-DFUO03dk.js → DocLinks-Bvhc62aJ.js} +2 -2
  28. package/dist/{DocModalBase-QZosNhiK.js → DocModalBase-DkfUBRi3.js} +2 -2
  29. package/dist/{DocPrint--T278pDE.js → DocPrint-BrKY6rOy.js} +3 -3
  30. package/dist/{DocReceipt-CPg45_I7.js → DocReceipt-oGrM6t_k.js} +29 -22
  31. package/dist/{DocSendReminder-DQAaiUrs.js → DocSendReminder-veEC_yHK.js} +19 -16
  32. package/dist/{DocTextEditor-CM1f8eMD.js → DocTextEditor-CNRwxPEx.js} +72 -70
  33. package/dist/{DocTimeline-Ce0OZgGP.js → DocTimeline-e2Xf_QZ7.js} +38 -34
  34. package/dist/{DocumentClient-DHU-Rg3r.js → DocumentClient-Dx4Uyxkh.js} +5 -5
  35. package/dist/{DocumentLayout-GYCBw2F_.js → DocumentLayout-DmjmsTcx.js} +1506 -1538
  36. package/dist/{DocumentLogotype-Cilc0ElE.js → DocumentLogotype-ddYHM9wn.js} +25 -20
  37. package/dist/{DocumentVoided-BH8pkv85.js → DocumentVoided-WCk7XuxH.js} +1 -1
  38. package/dist/{EmbedInput-lMSVQSey.js → EmbedInput-CMueXdFs.js} +25 -21
  39. package/dist/{EmbedSettings-D65Y2AZL.js → EmbedSettings-BRuLCWr0.js} +13 -11
  40. package/dist/{ErrorCallout-BBNHzuhf.js → ErrorCallout-CDtZceLU.js} +6 -6
  41. package/dist/{FilePreviewModal-iPIuaIor.js → FilePreviewModal-BzAUuY58.js} +3 -3
  42. package/dist/Flag-DkJgyDQK.js +46 -0
  43. package/dist/{HeaderSettings-WKUIBCfF.js → HeaderSettings-CoKK5Mbt.js} +159 -110
  44. package/dist/{ImageSelectModal-BTMFM3o9.js → ImageSelectModal-De64vGSr.js} +15 -13
  45. package/dist/{ImageUploadWrapper-BaLjUZF5.js → ImageUploadWrapper-CE6KTze0.js} +3 -3
  46. package/dist/{Index-DS1PwlDq.js → Index-50KxppUS.js} +4 -4
  47. package/dist/{Index-DJeZiYxr.js → Index-B7vVIRFn.js} +7 -7
  48. package/dist/{Index-ivhPuQy5.js → Index-BUQ75xOU.js} +6 -6
  49. package/dist/{Index-BUEXgHEE.js → Index-BVKCCkQY.js} +57 -50
  50. package/dist/{Index-BBTn35Kj.js → Index-BiGT3iEX.js} +21 -17
  51. package/dist/{Index-B-UWz1IM.js → Index-BoDKKVvL.js} +4 -4
  52. package/dist/{Index-DrSgVUyo.js → Index-BotY9nbP.js} +2 -2
  53. package/dist/{Index-B-YqdbQX.js → Index-BwaJW9CY.js} +3 -3
  54. package/dist/{Index-BepvyGqo.js → Index-ByqCyUgx.js} +9 -9
  55. package/dist/{Index-Bsv15ctO.js → Index-C7pge7E9.js} +23 -21
  56. package/dist/{Index-CEaZgZqg.js → Index-CBRJ-AZi.js} +2 -2
  57. package/dist/{Index-GrrsUUz1.js → Index-CFQMtx5w.js} +5 -5
  58. package/dist/{Index-CtQo0b8t.js → Index-CJKyHWiO.js} +15 -15
  59. package/dist/{Index-Dv1fkHWQ.js → Index-CK_5l1kP.js} +2 -2
  60. package/dist/{Index-BVt3pj58.js → Index-CLc_11Bc.js} +276 -232
  61. package/dist/{Index-cPIqnY80.js → Index-CTokKHJA.js} +5 -5
  62. package/dist/Index-Cf45UGbc.js +28 -0
  63. package/dist/{Index-B51tj7qY.js → Index-CfLPq-yA.js} +5 -5
  64. package/dist/{Index-B_ta4yT_.js → Index-Ci7y3O0G.js} +7 -7
  65. package/dist/{Index-ZKkQzVOj.js → Index-CmV8oF4Q.js} +4 -4
  66. package/dist/{Index-C6tGNKAk.js → Index-CoRuYEYW.js} +5 -5
  67. package/dist/Index-CtKNyVUB.js +56 -0
  68. package/dist/{Index-rL3fz1Ew.js → Index-DCf6_Zd2.js} +2 -2
  69. package/dist/{Index-CEHhYmLe.js → Index-DGdlZzVO.js} +7 -7
  70. package/dist/{Index-B5XaBVyJ.js → Index-DbKB8sTh.js} +18 -12
  71. package/dist/{Index-9PMrT3eB.js → Index-DgBOq2MJ.js} +3 -3
  72. package/dist/{Index-BBOJRRgx.js → Index-DvNxOHHu.js} +6 -6
  73. package/dist/{Index-DS7xellB.js → Index-M2Mce2_m.js} +124 -123
  74. package/dist/{Index-2PGn8Pnv.js → Index-QMkjG7hk.js} +4 -4
  75. package/dist/{Index-oKRUWCcJ.js → Index-QmX5pv-V.js} +17 -15
  76. package/dist/{Index-0aZtDWyk.js → Index-h5xDFYM9.js} +4 -4
  77. package/dist/{Index-CtZMlBfK.js → Index-hkGYloih.js} +5 -5
  78. package/dist/{Index-DK3b6Cv-.js → Index-q3gLm4b1.js} +6 -6
  79. package/dist/{Index-BQ3kapHk.js → Index-sqI1TF7Z.js} +2 -2
  80. package/dist/{InputToggleRow-CJF0vwk3.js → InputToggleRow-DLFIMIdx.js} +2 -2
  81. package/dist/{ManualPopover-CEF7LMpn.js → ManualPopover-Cf8DotlW.js} +13 -11
  82. package/dist/{MediaWrapper-CM6vWCoZ.js → MediaWrapper-BgWmA3kS.js} +3 -3
  83. package/dist/{NotBindingText-Cee9yA0M.js → NotBindingText-DhsHxvkX.js} +2 -2
  84. package/dist/{PackageGroup-CFXogKPM.js → PackageGroup-EbOSxv69.js} +26 -20
  85. package/dist/PdfTerms-im6uTd5E.js +31 -0
  86. package/dist/{PdfViewer-Cd0Jm2VB.js → PdfViewer-DY0rcZjo.js} +22 -22
  87. package/dist/{PlainHtml-CucWAcOU.js → PlainHtml-o031pfp-.js} +1 -1
  88. package/dist/{PriceHeader-DdMZUaq5.js → PriceHeader-NdFa0Sqs.js} +15 -15
  89. package/dist/{SearchApi-knNqVduO.js → SearchApi-Bw5E9IPj.js} +2 -2
  90. package/dist/SendForm-BDY5VDkS.js +1023 -0
  91. package/dist/{Setup-7HIAWuiK.js → Setup-BsYqPmOm.js} +1 -1
  92. package/dist/{SmartList-cSmGbybV.js → SmartList-CP2wHig-.js} +1 -1
  93. package/dist/{TermsSettings-CAB-08E3.js → TermsSettings-CUlSayCJ.js} +20 -13
  94. package/dist/{ThemeColorRow-DxcMvBGq.js → ThemeColorRow-D3fav4Sl.js} +14 -12
  95. package/dist/ToggleBinding-B715OVl2.js +42 -0
  96. package/dist/{UploadModal-CvoSMExA.js → UploadModal-THDJ-UNp.js} +6 -6
  97. package/dist/{VideoPlayerInput-X5baUH3q.js → VideoPlayerInput-Cm3KoRnR.js} +15 -11
  98. package/dist/{VideoPlayerSettings-DsIvpufB.js → VideoPlayerSettings-BFAjczuw.js} +3 -3
  99. package/dist/VideoSelectModal-CzO8EMg9.js +104 -0
  100. package/dist/{answerDocumentMixin-B8HB1WAX.js → answerDocumentMixin-D12xJRhx.js} +3 -3
  101. package/dist/{debounce-B2lqFJg2.js → debounce-DLiv1sQX.js} +16 -16
  102. package/dist/{focusDrawerMixin-B2djM7ql.js → focusDrawerMixin-khaScuSu.js} +1 -1
  103. package/dist/{formDrawerState-CchCpZRc.js → formDrawerState-CJ6kjaD_.js} +1 -1
  104. package/dist/{formValidationMixin-Dz9Mabvi.js → formValidationMixin-Bri1WflH.js} +1 -1
  105. package/dist/{index-Dk6sZCYv.js → index-B0Zu30kF.js} +2 -2
  106. package/dist/{index-twnaU4rC.js → index-C1Ngv-v3.js} +1 -1
  107. package/dist/{index-BCrDgR_4.js → index-CMT3coT-.js} +785 -2001
  108. package/dist/{index-H1Kx9sJM.js → index-DJOUQneq.js} +42 -38
  109. package/dist/{index-BaGtbWcA.js → index-DLa3QER7.js} +18 -17
  110. package/dist/{index-kV9OZ5y0.js → index-Dygy9XlG.js} +1 -1
  111. package/dist/index.es.js +10 -10
  112. package/dist/index.umd.js +179 -175
  113. package/dist/{main-CerYX9PA.js → main-U22_wtg0.js} +13008 -11358
  114. package/dist/{mapFormMixin-Hj1Y7rVt.js → mapFormMixin-BZf4RJIE.js} +1 -1
  115. package/dist/omit-RBXmF_Fo.js +31 -0
  116. package/dist/{publicSenderState-t7Gu53cA.js → publicSenderState-DKuvxj4_.js} +1 -1
  117. package/dist/regions-BdZt9Srn.js +1250 -0
  118. package/dist/simplebar.min-Bnrne5ZK.js +71 -0
  119. package/dist/style.css +2 -2
  120. package/dist/{throttle-B8hI9bkk.js → throttle-Fkuqk26x.js} +2 -2
  121. package/dist/{tinycolor-BaK26Ky-.js → tinycolor-BZ8wGctU.js} +1 -1
  122. package/dist/{tippy.esm-BuWRbveV.js → tippy.esm-BJe845c1.js} +246 -240
  123. package/dist/{utils-Pmm0DT8o.js → utils-BOWVR87A.js} +1 -1
  124. package/dist/{vuedraggable.umd-Besz6Tlv.js → vuedraggable.umd-CJL8TWxZ.js} +1 -1
  125. package/package.json +2 -11
  126. package/dist/CField.vue_vue_type_style_index_0_lang-l0sNRNKZ.js +0 -1
  127. package/dist/CTabs.vue_vue_type_style_index_0_scoped_e02a6440_lang-l0sNRNKZ.js +0 -1
  128. package/dist/ClientAutocomplete-DyXQEfcS.js +0 -78
  129. package/dist/CoverBlockSettings-7Ivt9zN0.js +0 -275
  130. package/dist/Flag-CwnrA4SV.js +0 -114
  131. package/dist/Index-B0pgh8nR.js +0 -21
  132. package/dist/Index-Ccx9wHcb.js +0 -52
  133. package/dist/PdfTerms-ChtDfzne.js +0 -36
  134. package/dist/ToggleBinding-CTTYdrkp.js +0 -38
  135. package/dist/VideoSelectModal-VMcSU3bM.js +0 -100
  136. package/dist/formComponentsInstall-CdjgjI6y.js +0 -2495
  137. package/dist/omit-DGBewD2h.js +0 -31
@@ -1,4 +1,4 @@
1
- import { o as d, c as m } from "./main-CerYX9PA.js";
1
+ import { q as d, c as m } from "./main-U22_wtg0.js";
2
2
  const s = {
3
3
  youtube: {
4
4
  reg: /^(?:https?:\/\/)?(?:(?:www|m)\.)?(?:youtu\.be\/|youtube\.com\/(?:embed\/|v\/|watch\?v=|watch\?.+&v=))((?:\w|-){11})(?:\S+)?$/,
@@ -1,4 +1,4 @@
1
- import { a8 as nn, a9 as rn, k as on } from "./main-CerYX9PA.js";
1
+ import { ac as nn, ad as rn, l as on } from "./main-U22_wtg0.js";
2
2
  var We = { exports: {} };
3
3
  /**!
4
4
  * Sortable 1.10.2
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cling-se/widget",
3
- "version": "0.15.2",
3
+ "version": "0.15.5",
4
4
  "type": "module",
5
5
  "main": "./dist/index.umd.js",
6
6
  "module": "./dist/index.es.js",
@@ -17,30 +17,21 @@
17
17
  "dependencies": {
18
18
  "@cling-se/v-tooltip-root-node": "^0.1.3",
19
19
  "@tiptap/core": "^2.0.0-beta.199",
20
+ "@vueuse/components": "^10.11.0",
20
21
  "axios": "1.6.2",
21
22
  "date-fns": "2.14.0",
22
23
  "deepmerge": "4.2.2",
23
- "dinero.js": "1.9.1",
24
- "i18next": "19.4.4",
25
- "i18next-browser-languagedetector": "4.2.0",
26
- "json-logic-js": "2.0.2",
27
- "liquidjs": "10.9.4",
28
24
  "lodash": "4.17.21",
29
- "normalizr": "3.6.2",
30
25
  "portal-vue": "^2.1.7",
31
26
  "simplebar": "5.2.0",
32
27
  "simplebar-vue": "1.5.0",
33
- "tinycolor2": "^1.4.1",
34
28
  "uniqid": "5.4.0",
35
- "velocity-animate": "1.5.2",
36
29
  "vue": "^2.7.8",
37
30
  "vue-js-modal": "2.0.0-rc.3",
38
31
  "vue-router": "3.0.1",
39
- "vue-smooth-reflow": "0.1.12",
40
32
  "vuelidate": "0.7.5",
41
33
  "vuelidate-error-extractor": "2.4.1",
42
34
  "vuex": "3.4.0",
43
- "vuex-map-fields": "1.4.1",
44
35
  "vuex-router-sync": "5.0.0"
45
36
  },
46
37
  "devDependencies": {
@@ -1,78 +0,0 @@
1
- import { S as o } from "./SearchApi-knNqVduO.js";
2
- import { n as l, y as c } from "./main-CerYX9PA.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(r, e) {
41
- this.$emit("input", e), this.searchEnabled && (this.searchQuery = e, r({
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: a, isLoading: n }) {
53
- return [s("CAutocomplete", e._b({ attrs: { data: e.results, loading: e.showLoading && n, filled: e.filled, expanded: "", "keep-first": "" }, on: { typing: function(t) {
54
- return e.search(a, 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: "text-gray-600", 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 = [], f = /* @__PURE__ */ l(
68
- i,
69
- u,
70
- d,
71
- !1,
72
- null,
73
- "7407276e"
74
- );
75
- const h = f.exports;
76
- export {
77
- h as C
78
- };
@@ -1,275 +0,0 @@
1
- import { m as d } from "./mapFormMixin-Hj1Y7rVt.js";
2
- import { T as l } from "./ThemeColorRow-DxcMvBGq.js";
3
- import { n as s, Q as p, J as u } from "./main-CerYX9PA.js";
4
- const m = (i, e, t, o) => Math.atan2(i - t, e - o) * (180 / Math.PI) * -1 + 180, v = {
5
- name: "DegreePicker",
6
- props: {
7
- value: {
8
- type: Number,
9
- required: !0
10
- }
11
- },
12
- computed: {
13
- degreesStyle() {
14
- return { transform: `rotate(${this.value}deg)` };
15
- }
16
- },
17
- methods: {
18
- onButtonDown(i) {
19
- let e = this.mouseDownHandler(i);
20
- const t = (o) => {
21
- e = this.mouseMoveHandler(o, e) || e;
22
- };
23
- window.addEventListener("mousemove", t), window.addEventListener(
24
- "mouseup",
25
- () => {
26
- window.removeEventListener("mousemove", t);
27
- },
28
- { once: !0 }
29
- );
30
- },
31
- mouseMoveHandler(i, { centerX: e, centerY: t }) {
32
- const o = m(
33
- i.clientX,
34
- i.clientY,
35
- e,
36
- t
37
- );
38
- this.$emit("input", parseInt(o, 10));
39
- },
40
- mouseDownHandler(i) {
41
- const t = i.target.getBoundingClientRect(), o = t.top + parseInt(8 - window.pageYOffset, 10), r = t.left + parseInt(8 - window.pageXOffset, 10);
42
- return { centerY: o, centerX: r };
43
- }
44
- }
45
- };
46
- var g = function() {
47
- var e = this, t = e._self._c;
48
- return t("div", { staticClass: "gradient-degrees-options" }, [t("div", { staticStyle: { "pointer-events": "none", "user-select": "none", "padding-right": "0.5em", opacity: "0.75" } }, [t("div", [e._v(e._s(e.value) + "°")])]), t("div", { staticClass: "gradient-degrees", on: { mousedown: e.onButtonDown } }, [t("div", { staticClass: "gradient-degree-center", style: e.degreesStyle }, [t("div", { staticClass: "gradient-degree-pointer" })])])]);
49
- }, _ = [], f = /* @__PURE__ */ s(
50
- v,
51
- g,
52
- _,
53
- !1,
54
- null,
55
- "0c48c700"
56
- );
57
- const y = f.exports, h = {
58
- name: "GradientPicker",
59
- i18nOptions: {
60
- namespaces: "gradientPicker",
61
- messages: {
62
- en: {
63
- startColor: "Start color",
64
- stopColor: "Stop color",
65
- rotation: "Rotation"
66
- },
67
- sv: {
68
- startColor: "Startfärg",
69
- stopColor: "Stoppfärg",
70
- rotation: "Rotation"
71
- }
72
- }
73
- },
74
- components: {
75
- ThemeColorRow: l,
76
- DegreePicker: y
77
- },
78
- props: {
79
- value: {
80
- type: Object,
81
- required: !0
82
- }
83
- },
84
- data() {
85
- return {
86
- set: p,
87
- defaultValue: {
88
- type: "linear",
89
- degree: 0,
90
- colors: [
91
- { percent: 0, color: "#000000" },
92
- { percent: 100, color: "#0095FF" }
93
- ]
94
- }
95
- };
96
- },
97
- computed: {
98
- internalValue: {
99
- get() {
100
- return { ...this.defaultValue, ...this.value };
101
- },
102
- set(i) {
103
- this.$emit("input", i);
104
- }
105
- }
106
- },
107
- methods: {
108
- updateData(i, e) {
109
- let t = e;
110
- if (i === "colors") {
111
- const { i: o, color: r, percent: a } = e || {};
112
- t = this.internalValue.colors.map(
113
- (n, c) => c === o ? { color: r, percent: a } : n
114
- );
115
- }
116
- this.internalValue = { ...this.internalValue, [i]: t };
117
- }
118
- }
119
- };
120
- var C = function() {
121
- var e = this, t = e._self._c;
122
- return t("div", [t("ThemeColorRow", { staticClass: "d-option-title d-option", attrs: { value: e.internalValue.colors[0].color }, on: { change: function(o) {
123
- return e.updateData("colors", { i: 0, percent: 0, color: o });
124
- } } }, [e._v(" " + e._s(e.$t("startColor")) + " ")]), t("ThemeColorRow", { staticClass: "d-option-title d-option", attrs: { value: e.internalValue.colors[1].color }, on: { change: function(o) {
125
- return e.updateData("colors", { i: 1, percent: 100, color: o });
126
- } } }, [e._v(" " + e._s(e.$t("stopColor")) + " ")]), t("div", { staticClass: "d-option flex w-full items-center" }, [t("div", { staticClass: "d-option-title", staticStyle: { flex: "1 1 auto" } }, [e._v(" " + e._s(e.$t("rotation")) + " ")]), t("DegreePicker", { staticStyle: { "padding-right": "4px" }, attrs: { value: e.internalValue.degree }, on: { input: function(o) {
127
- return e.updateData("degree", o);
128
- } } })], 1)], 1);
129
- }, b = [], w = /* @__PURE__ */ s(
130
- h,
131
- C,
132
- b,
133
- !1,
134
- null,
135
- "e22a6b42"
136
- );
137
- const $ = w.exports, x = {
138
- image: () => import("./ImageSelectModal-BTMFM3o9.js"),
139
- video: () => import("./VideoSelectModal-VMcSU3bM.js")
140
- }, S = {
141
- name: "CoverBlockSettings",
142
- i18nOptions: {
143
- namespaces: "coverBlockSettings",
144
- messages: {
145
- en: {
146
- colorLabel: "Color",
147
- overlay: {
148
- title: "Overlay",
149
- colorLabel: "Color",
150
- opacityLabel: "Opacity"
151
- }
152
- },
153
- sv: {
154
- colorLabel: "Färg",
155
- overlay: {
156
- title: "Överlägg",
157
- colorLabel: "Färg",
158
- opacityLabel: "Opacitet"
159
- }
160
- }
161
- }
162
- },
163
- components: {
164
- ThemeColorRow: l,
165
- GradientPicker: $
166
- },
167
- mixins: [
168
- d(
169
- [
170
- "type",
171
- "video",
172
- "resourceUrl",
173
- "filter",
174
- "blur",
175
- "position",
176
- "overlay",
177
- "overlayColor",
178
- "gradient",
179
- "backgroundColor"
180
- ],
181
- { useEmit: !1 }
182
- )
183
- ],
184
- data() {
185
- return {
186
- getUnsplashResized: u
187
- };
188
- },
189
- methods: {
190
- toggleOverlay(i) {
191
- i && !this.overlayColor ? (this.overlayColor = "hsla(205, 100%, 50%, 0.5)", this.overlay = !0) : this.overlay = i;
192
- },
193
- setType(i) {
194
- i === "color" && !this.backgroundColor ? this.backgroundColor = "hsl(134, 74%, 39%)" : i === "video" && !this.video ? this.video = {
195
- provider: "pexels",
196
- id: "3214448",
197
- thumbnail: "https://images.pexels.com/videos/3214448/free-video-3214448.jpg?fit=crop&w=1200&h=630&auto=compress&cs=tinysrgb",
198
- url: "https://player.vimeo.com/external/372567192.hd.mp4?s=c186273e04cc5015efecd863d8256eb99bc034fd&profile_id=172&oauth2_token_id=57447761"
199
- } : i === "image" ? (this.resourceUrl || (this.resourceUrl = "https://images.unsplash.com/photo-1520013817300-1f4c1cb245ef?ixlib=rb-1.2.1&ixid=eyJhcHBfaWQiOjEyMDd9&auto=format&fit=crop&w=1987&q=80"), this.position || (this.position = 50)) : i === "gradient" && !this.gradient && (this.gradient = {
200
- type: "linear",
201
- degree: 45,
202
- colors: [
203
- { color: "hsla(324.71,100%,50%,1)", percent: 0 },
204
- { color: "hsla(209.41,85.18%,40.65%,1)", percent: 100 }
205
- ]
206
- }), this.type = i;
207
- },
208
- openResourceModal(i) {
209
- this.$modal.show(
210
- x[i],
211
- {},
212
- {},
213
- {
214
- input: (e) => {
215
- i === "image" ? this.resourceUrl = e : i === "video" && (this.video = e);
216
- }
217
- }
218
- );
219
- }
220
- }
221
- };
222
- var k = function() {
223
- var e = this, t = e._self._c;
224
- return t("div", { staticClass: "d-root" }, [t("div", { staticClass: "d-option", staticStyle: { "border-bottom": "none" } }, [t("div", { staticClass: "d-option-title" }, [e._v(" " + e._s(e.$t("_common:background").capitalize()) + " ")]), t("div", { staticClass: "flex w-full", staticStyle: { "flex-wrap": "wrap", "padding-top": "0.25em" } }, e._l([
225
- { label: e.$t("_common:image"), value: "image" },
226
- { label: e.$t("_common:color"), value: "color" },
227
- { label: e.$t("_common:gradient"), value: "gradient" },
228
- { label: e.$t("_common:video"), value: "video" }
229
- ], function({ label: o, value: r }, a) {
230
- return t("CButton", { key: o + a, staticStyle: { margin: "0 3px 3px 0", padding: "0 0.5em", height: "2em", "font-size": "15px", "border-radius": "4px" }, attrs: { type: e.type === r ? "secondary" : "none", pattern: e.type === r ? "primary" : "secondary", size: "normal" }, on: { click: function(n) {
231
- return e.setType(r);
232
- } } }, [e._v(" " + e._s(o.capitalize()) + " ")]);
233
- }), 1)]), e.type === "image" ? [t("div", { staticClass: "d-option-button-image", style: { backgroundImage: `url(${e.resourceUrl})` }, on: { click: function(o) {
234
- return e.openResourceModal(e.type);
235
- } } }), e.resourceUrl ? t("div", { staticClass: "d-option" }, [t("div", { staticClass: "d-option-title" }, [e._v(" " + e._s(e.$t("_common:filter").capitalize()) + " ")]), t("div", { staticStyle: { display: "flex", "flex-direction": "row", "flex-wrap": "wrap", "padding-top": "0.25em" } }, e._l([
236
- "",
237
- "sepia(30%) brightness(110%) contrast(110%) grayscale(100%)",
238
- "brightness(110%) contrast(90%) saturate(150%)",
239
- "sepia(50%) contrast(140%)",
240
- "sepia(25%) brightness(95%) contrast(95%) saturate(150%)",
241
- "blur(0px) sepia(15%) saturate(130%) hue-rotate(-30deg)"
242
- ], function(o, r) {
243
- return t("div", { key: r, staticClass: "bg-filter", class: { "is-active": e.filter === o }, on: { click: function(a) {
244
- e.filter = o;
245
- } } }, [t("div", { staticClass: "bg-filter-preview", style: {
246
- filter: o,
247
- backgroundImage: `url(${e.getUnsplashResized(e.resourceUrl, {
248
- w: 200
249
- })})`
250
- } })]);
251
- }), 0)]) : e._e(), t("div", { staticClass: "d-option", staticStyle: { "padding-bottom": "0.5em" } }, [t("div", { staticClass: "d-option-title" }, [t("div", { staticStyle: { flex: "1 1 auto" } }, [e._v(" " + e._s(e.$t("_common:position").capitalize()) + " ")]), t("CSlider", { staticStyle: { width: "80px", margin: "0" }, attrs: { value: e.position || 0, type: "secondary", size: "small", rounded: "" }, on: { input: function(o) {
252
- e.position = o;
253
- } } })], 1)])] : e._e(), e.type === "video" ? [t("div", { staticClass: "d-option-button-image", style: { backgroundImage: `url(${e.video.thumbnail})` }, on: { click: function(o) {
254
- return e.openResourceModal(e.type);
255
- } } })] : e.type === "color" ? t("div", { staticClass: "d-option" }, [t("ThemeColorRow", { staticClass: "d-option-title", attrs: { value: e.backgroundColor || "" }, on: { change: function(o) {
256
- e.backgroundColor = o;
257
- } } }, [e._v(" " + e._s(e.$t("colorLabel")) + " ")])], 1) : e.type === "gradient" ? t("GradientPicker", { attrs: { value: e.gradient || {} }, on: { input: function(o) {
258
- e.gradient = o;
259
- } } }) : e._e(), ["image", "video"].includes(e.type) ? t("div", { staticClass: "d-option", staticStyle: { "padding-bottom": "0.5em" } }, [t("div", { staticClass: "d-option-title" }, [t("div", { staticStyle: { flex: "1 1 auto" } }, [e._v(" " + e._s(e.$t("_common:blur").capitalize()) + " ")]), t("CSlider", { staticStyle: { width: "80px", margin: "0" }, attrs: { value: e.blur || 0, max: 30, type: "secondary", size: "small", rounded: "" }, on: { input: function(o) {
260
- e.blur = o;
261
- } } })], 1)]) : e._e(), ["image", "video"].includes(e.type) ? t("div", { staticClass: "d-option" }, [t("div", { staticClass: "d-option-title" }, [t("div", { staticStyle: { flex: "1 1 auto" } }, [e._v(e._s(e.$t("overlay.title")))]), t("CSwitch", { staticStyle: { "margin-right": "0" }, attrs: { value: !!e.overlay, size: "small", type: "secondary" }, on: { input: e.toggleOverlay } })], 1), e.overlay ? t("div", { staticClass: "d-option-row", staticStyle: { "padding-top": "1em" } }, [t("ThemeColorRow", { attrs: { value: e.overlayColor || "", placement: "top-end" }, on: { change: function(o) {
262
- e.overlayColor = o;
263
- } } }, [e._v(" " + e._s(e.$t("overlay.colorLabel")) + " ")])], 1) : e._e()]) : e._e()], 2);
264
- }, R = [], D = /* @__PURE__ */ s(
265
- S,
266
- k,
267
- R,
268
- !1,
269
- null,
270
- "30a9943d"
271
- );
272
- const B = D.exports;
273
- export {
274
- B as default
275
- };
@@ -1,114 +0,0 @@
1
- import { W as c, n as _ } from "./main-CerYX9PA.js";
2
- var m = {
3
- name: "simplebar-vue",
4
- mounted: function() {
5
- var e = c.getOptions(this.$refs.element.attributes);
6
- this.SimpleBar = new c(this.$refs.element, e);
7
- },
8
- computed: {
9
- scrollElement: function() {
10
- return this.$refs.scrollElement;
11
- },
12
- contentElement: function() {
13
- return this.$refs.contentElement;
14
- }
15
- }
16
- }, d = m, o = function() {
17
- var e = this, s = e.$createElement, r = e._self._c || s;
18
- return r("div", {
19
- ref: "element"
20
- }, [r("div", {
21
- staticClass: "simplebar-wrapper"
22
- }, [e._m(0), e._v(" "), r("div", {
23
- staticClass: "simplebar-mask"
24
- }, [r("div", {
25
- staticClass: "simplebar-offset"
26
- }, [r("div", e._g({
27
- ref: "scrollElement",
28
- staticClass: "simplebar-content-wrapper"
29
- }, Object.assign({}, e.$listeners.scroll && {
30
- scroll: e.$listeners.scroll
31
- })), [r("div", {
32
- ref: "contentElement",
33
- staticClass: "simplebar-content"
34
- }, [e._t("default")], 2)])])]), e._v(" "), r("div", {
35
- staticClass: "simplebar-placeholder"
36
- })]), e._v(" "), e._m(1), e._v(" "), e._m(2)]);
37
- }, v = [function() {
38
- var t = this, e = t.$createElement, s = t._self._c || e;
39
- return s("div", {
40
- staticClass: "simplebar-height-auto-observer-wrapper"
41
- }, [s("div", {
42
- staticClass: "simplebar-height-auto-observer"
43
- })]);
44
- }, function() {
45
- var t = this, e = t.$createElement, s = t._self._c || e;
46
- return s("div", {
47
- staticClass: "simplebar-track simplebar-horizontal"
48
- }, [s("div", {
49
- staticClass: "simplebar-scrollbar"
50
- })]);
51
- }, function() {
52
- var t = this, e = t.$createElement, s = t._self._c || e;
53
- return s("div", {
54
- staticClass: "simplebar-track simplebar-vertical"
55
- }, [s("div", {
56
- staticClass: "simplebar-scrollbar"
57
- })]);
58
- }];
59
- o._withStripped = !0;
60
- var p = void 0, u = void 0;
61
- function f(t, e, s, r, n, i, l, S) {
62
- var a = (typeof s == "function" ? s.options : s) || {};
63
- return a.__file = "/Users/adriendenat/Sites/simplebar/packages/simplebar-vue/index.vue", a.render || (a.render = t.render, a.staticRenderFns = t.staticRenderFns, a._compiled = !0), a._scopeId = r, a;
64
- }
65
- var $ = f({
66
- render: o,
67
- staticRenderFns: v
68
- }, p, d, u);
69
- const h = {
70
- name: "FlagIcon",
71
- props: {
72
- region: {
73
- type: String,
74
- default: null
75
- },
76
- title: {
77
- type: String,
78
- default: null
79
- },
80
- isSquared: {
81
- type: Boolean,
82
- default: !1
83
- }
84
- },
85
- mounted() {
86
- var i, l;
87
- const t = "FLAG_ICONS", e = (l = (i = this.$el).getRootNode) == null ? void 0 : l.call(i), r = (e == null ? void 0 : e.toString()) === "[object ShadowRoot]" ? e : document.head;
88
- if (r.querySelector(`#${t}`))
89
- return;
90
- const n = document.createElement("link");
91
- n.id = t, n.rel = "stylesheet", n.type = "text/css", n.href = "https://www.unpkg.com/flag-icons@6.6.6/css/flag-icons.min.css", n.media = "all", r.appendChild(n);
92
- }
93
- };
94
- var b = function() {
95
- var e = this, s = e._self._c;
96
- return e.region ? s("span", { staticClass: "fi", class: [
97
- `fi-${e.region.toLowerCase()}`,
98
- {
99
- fis: e.isSquared
100
- }
101
- ], attrs: { title: e.title || e.region } }) : e._e();
102
- }, g = [], C = /* @__PURE__ */ _(
103
- h,
104
- b,
105
- g,
106
- !1,
107
- null,
108
- null
109
- );
110
- const w = C.exports;
111
- export {
112
- w as F,
113
- $ as s
114
- };
@@ -1,21 +0,0 @@
1
- import { P as n } from "./PlainHtml-CucWAcOU.js";
2
- import { n as e } from "./main-CerYX9PA.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
- };
@@ -1,52 +0,0 @@
1
- import { m as o } from "./mapFormMixin-Hj1Y7rVt.js";
2
- import { I as i } from "./InputToggleRow-CJF0vwk3.js";
3
- import { n as a } from "./main-CerYX9PA.js";
4
- const m = {
5
- i18nOptions: {
6
- namespaces: "estimatedTimeToCompleteText",
7
- messages: {
8
- en: {
9
- label: "Time to complete work",
10
- placeholder: "Time unit"
11
- },
12
- sv: {
13
- label: "Tid för att klargöra arbetet",
14
- placeholder: "Tidsenhet"
15
- }
16
- }
17
- },
18
- name: "EstimatedTimeToCompleteEdit",
19
- components: {
20
- InputToggleRow: i
21
- },
22
- mixins: [
23
- o(["timeUnit"]),
24
- o(["noOfTimeUnits"], { type: "number" })
25
- ],
26
- created() {
27
- this.timeUnit || (this.timeUnit = "day");
28
- }
29
- };
30
- var l = function() {
31
- var t = this, e = t._self._c;
32
- return e("InputToggleRow", { attrs: { "display-value": t.noOfTimeUnits && t.timeUnit ? `${t.noOfTimeUnits} ${t.$t(`_common:${t.timeUnit}`, {
33
- count: t.noOfTimeUnits
34
- })}` : t.$t("_common:add"), label: t.$t("label"), "show-clear": !!(t.noOfTimeUnits && t.timeUnit) }, on: { remove: function(n) {
35
- t.noOfTimeUnits = null;
36
- } } }, [e("CInput", { staticStyle: { width: "calc(15 * var(--rem))" }, attrs: { type: "number" }, model: { value: t.noOfTimeUnits, callback: function(n) {
37
- t.noOfTimeUnits = t._n(n);
38
- }, expression: "noOfTimeUnits" } }, [e("CSelect", { staticClass: "select-width plain", staticStyle: { width: "120px" }, attrs: { slot: "append", placeholder: t.$t("placeholder") }, slot: "append", model: { value: t.timeUnit, callback: function(n) {
39
- t.timeUnit = n;
40
- }, expression: "timeUnit" } }, [e("option", { attrs: { value: "hour" } }, [t._v(t._s(t.$t("_common:hour_plural")))]), e("option", { attrs: { value: "day" } }, [t._v(t._s(t.$t("_common:day_plural")))]), e("option", { attrs: { value: "week" } }, [t._v(t._s(t.$t("_common:week_plural")))]), e("option", { attrs: { value: "month" } }, [t._v(t._s(t.$t("_common:month_plural")))])])], 1)], 1);
41
- }, s = [], r = /* @__PURE__ */ a(
42
- m,
43
- l,
44
- s,
45
- !1,
46
- null,
47
- null
48
- );
49
- const d = r.exports;
50
- export {
51
- d as default
52
- };
@@ -1,36 +0,0 @@
1
- import { V as s } from "./PdfViewer-Cd0Jm2VB.js";
2
- import { n as t } from "./main-CerYX9PA.js";
3
- const n = {
4
- name: "PdfTerms",
5
- functional: !0,
6
- render(r, e) {
7
- return e.props.text ? r("div", {
8
- class: "root"
9
- }, [r("div", {
10
- class: "root-title page-break"
11
- }, [e.parent.$t("_common:terms.general")]), r("div", {
12
- class: "term-text quill-format",
13
- domProps: {
14
- innerHTML: e.props.text
15
- }
16
- })]) : e.props.file ? r("div", [r(s, {
17
- attrs: {
18
- src: e.props.file.url,
19
- docFilePath: "data.terms.file.url"
20
- },
21
- class: "pdf-container"
22
- })]) : r("div");
23
- }
24
- }, o = null, a = null;
25
- var l = /* @__PURE__ */ t(
26
- n,
27
- o,
28
- a,
29
- !1,
30
- null,
31
- "d1cc4fe9"
32
- );
33
- const m = l.exports;
34
- export {
35
- m as default
36
- };
@@ -1,38 +0,0 @@
1
- import { m as i } from "./mapFormMixin-Hj1Y7rVt.js";
2
- import { I as t } from "./InputToggleRow-CJF0vwk3.js";
3
- import { n as s } from "./main-CerYX9PA.js";
4
- const a = {
5
- name: "ToggleBinding",
6
- i18nOptions: {
7
- namespaces: "ToggleBinding",
8
- messages: {
9
- en: {
10
- label: "Answer not binding"
11
- },
12
- sv: {
13
- label: "Ej bindande svar"
14
- }
15
- }
16
- },
17
- components: {
18
- InputToggleRow: t
19
- },
20
- mixins: [i(["notBinding"])]
21
- };
22
- var l = function() {
23
- var n = this, e = n._self._c;
24
- return e("div", [e("InputToggleRow", { attrs: { "display-value": n.notBinding, label: n.$t("label") } }, [e("CSwitch", { attrs: { slot: "toggle" }, slot: "toggle", model: { value: n.notBinding, callback: function(o) {
25
- n.notBinding = o;
26
- }, expression: "notBinding" } })], 1)], 1);
27
- }, r = [], g = /* @__PURE__ */ s(
28
- a,
29
- l,
30
- r,
31
- !1,
32
- null,
33
- null
34
- );
35
- const _ = g.exports;
36
- export {
37
- _ as default
38
- };