@cling-se/widget 1.0.0-beta.1 → 1.0.0-beta.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (241) hide show
  1. package/CHANGELOG.md +25 -0
  2. package/README.internal.md +82 -0
  3. package/README.md +14 -40
  4. package/README.public.md +14 -0
  5. package/dist/AddClientCallout-DRcy9Dqb.js +101 -0
  6. package/dist/AnswerModal-Dc3cgkap.js +3291 -0
  7. package/dist/AttachmentItem-Bef5zdHr.js +171 -0
  8. package/dist/BaseUpload--paElAyr.js +2472 -0
  9. package/dist/BlockMedia-DbVE3vsb.js +103 -0
  10. package/dist/CCallout-81NkOge7.js +104 -0
  11. package/dist/{CCurrencyDropdown-qH-3m2eP.js → CCurrencyDropdown-M3hi1VVi.js} +91 -49
  12. package/dist/CDropdownItem-DvaU14-V.js +749 -0
  13. package/dist/CFormField.vue_vue_type_script_setup_true_lang-B4s_Zfsp.js +292 -0
  14. package/dist/{CPhoneFormat-CfQayFxw.js → CPhoneFormat-BBQ_UIc_.js} +13 -21
  15. package/dist/CPhoneInput-Dw_LJDgc.js +207 -0
  16. package/dist/CPriceInput-BfWZZv0f.js +140 -0
  17. package/dist/CSelect-B1AAIFbK.js +98 -0
  18. package/dist/CSkeleton.vue_vue_type_script_setup_true_lang-D56L_PYT.js +51 -0
  19. package/dist/ClientAutocomplete-D5veIKyZ.js +532 -0
  20. package/dist/ClientModal-D8_TPzkv.js +1181 -0
  21. package/dist/ColorPicker-C0OahiVg.js +1408 -0
  22. package/dist/CompanyModal-CjzwQU4B.js +250 -0
  23. package/dist/ContentWrapper-DrmiaFOz.js +265 -0
  24. package/dist/CoverBlockSettings-C9DWvA-C.js +861 -0
  25. package/dist/DocAnswer-BEsvAMEp.js +33 -0
  26. package/dist/DocDetails--LO0-S5d.js +448 -0
  27. package/dist/DocForm-D6_tGw06.js +6748 -0
  28. package/dist/DocFormSend-CdFL6rOD.js +171 -0
  29. package/dist/DocLinks-CIQFUh7c.js +36 -0
  30. package/dist/DocModalBase-DtPJK9sp.js +29 -0
  31. package/dist/DocPrint-qX88Ue2I.js +399 -0
  32. package/dist/DocReceipt-BbXoCmpz.js +341 -0
  33. package/dist/DocSendReminder-DZqOkd63.js +181 -0
  34. package/dist/DocTextEditor-Cw-Skmd4.js +19413 -0
  35. package/dist/DocTimeline-CdbSOVD1.js +537 -0
  36. package/dist/DocumentClient-DtTv7gkF.js +90 -0
  37. package/dist/DocumentLayout-BRfEjoYq.js +1368 -0
  38. package/dist/DocumentLogotype-CUNzyewq.js +162 -0
  39. package/dist/DocumentVoided-CgDt-JFI.js +33 -0
  40. package/dist/EmbedInput-rPvTnpXn.js +157 -0
  41. package/dist/EmbedSettings-BtmFxYGB.js +103 -0
  42. package/dist/ErrorCallout-B6YrdUsG.js +34 -0
  43. package/dist/FilePreviewModal-BfIqIIbb.js +202 -0
  44. package/dist/Flag-CE3K7-8a.js +41 -0
  45. package/dist/HeaderSettings-5QR7MmVf.js +720 -0
  46. package/dist/ImageSelectModal-E3hGi8ty.js +119 -0
  47. package/dist/ImageUploadWrapper-BaexFAAh.js +1585 -0
  48. package/dist/Index--gv5fH24.js +201 -0
  49. package/dist/{Index-D4XgxmbD.js → Index-B3ycPjAI.js} +10 -18
  50. package/dist/Index-B7ECpXAa.js +28 -0
  51. package/dist/Index-BIXfUsHH.js +52 -0
  52. package/dist/Index-BM658CCq.js +93 -0
  53. package/dist/{Index--qPMWUMT.js → Index-B_DCM_bL.js} +48 -61
  54. package/dist/Index-BcMATT2_.js +47 -0
  55. package/dist/Index-BpWFU3Td.js +68 -0
  56. package/dist/Index-BulSI5iO.js +38 -0
  57. package/dist/Index-CHInIRw5.js +228 -0
  58. package/dist/Index-COYqsxs9.js +25 -0
  59. package/dist/Index-CSGk060H.js +1098 -0
  60. package/dist/Index-CV2O2fWT.js +21 -0
  61. package/dist/{Index-Bu0MGrj6.js → Index-CXqdBSZ3.js} +313 -206
  62. package/dist/Index-CavttI66.js +126 -0
  63. package/dist/Index-CbZ65-O3.js +629 -0
  64. package/dist/Index-CqrTij2j.js +70 -0
  65. package/dist/Index-CrsGxDWC.js +16 -0
  66. package/dist/Index-CxY5Ii6K.js +49 -0
  67. package/dist/Index-D7Z2w9cd.js +163 -0
  68. package/dist/Index-D7ixmzBH.js +76 -0
  69. package/dist/Index-D7pzv-AR.js +74 -0
  70. package/dist/Index-D9keESQi.js +159 -0
  71. package/dist/Index-Dd6ueeUc.js +136 -0
  72. package/dist/{Index-DIOiMm9f.js → Index-DexIUz3R.js} +10 -18
  73. package/dist/Index-Dnmt6W0u.js +140 -0
  74. package/dist/Index-DtcV6rl1.js +4 -0
  75. package/dist/Index-DuDVafLn.js +3452 -0
  76. package/dist/Index-L913X8Ly.js +102 -0
  77. package/dist/Index-Mdn0niR_.js +28 -0
  78. package/dist/Index-_ellB2fs.js +363 -0
  79. package/dist/{Index-DcQbh-z2.js → Index-baSB5tPv.js} +9 -17
  80. package/dist/Index-bgKndj-l.js +39 -0
  81. package/dist/Index-lNYXAFUH.js +87 -0
  82. package/dist/Index.vue_vue_type_script_lang-DLogex2i.js +671 -0
  83. package/dist/InputToggleRow-BCvMVbW-.js +99 -0
  84. package/dist/ManualPopover-BzBvSl_x.js +57 -0
  85. package/dist/MediaWrapper-_LPau2Ks.js +18 -0
  86. package/dist/{NotBindingText-CNV2Wmdx.js → NotBindingText-DgcOjUmQ.js} +13 -17
  87. package/dist/PackageGroup-1X3jUipj.js +1058 -0
  88. package/dist/PdfTerms-Bf4TlzP5.js +34 -0
  89. package/dist/PdfViewer-BdhwFfc6.js +392 -0
  90. package/dist/PlainHtml.vue_vue_type_script_setup_true_lang-BgsfquR_.js +17 -0
  91. package/dist/PriceHeader-DyC8xssf.js +488 -0
  92. package/dist/SearchApi-C__orGkO.js +137 -0
  93. package/dist/SendForm-Be8uiuaJ.js +7031 -0
  94. package/dist/Setup-DbXs2Zar.js +47 -0
  95. package/dist/{SmartList-Qgu0rMrI.js → SmartList-BmmtZoZ0.js} +16 -24
  96. package/dist/Sortable.vue_vue_type_script_setup_true_lang-D0mloJIN.js +1303 -0
  97. package/dist/{TermsSettings-CE3h_xkm.js → TermsSettings-DsN6v5yj.js} +169 -49
  98. package/dist/ThemeColorRow-BL6p09pN.js +108 -0
  99. package/dist/ToggleBinding-B-tVioQ9.js +44 -0
  100. package/dist/UploadModal-BnA1xLMy.js +134 -0
  101. package/dist/VideoPlayerInput-D38S1IDH.js +135 -0
  102. package/dist/VideoPlayerSettings-B5iXoj5E.js +78 -0
  103. package/dist/VideoSelectModal-BNCoMFKU.js +217 -0
  104. package/dist/{anime.es-BrPTThYb.js → anime.es-gdcpA-eY.js} +1 -2
  105. package/dist/{color-TdtKxwVa.js → color-HetJPhlA.js} +1 -2
  106. package/dist/{debounce-C1AuSpOZ.js → debounce-CBRJalZI.js} +7 -7
  107. package/dist/dom-CkTGWrfu.js +69 -0
  108. package/dist/{focusDrawerMixin-Be6BAK8-.js → focusDrawerMixin-T94b2Y6F.js} +1 -1
  109. package/dist/{formDrawerState-DRbg5rVI.js → formDrawerState-jssoGOce.js} +2 -2
  110. package/dist/helpers-Vo_6Zz3M.js +44 -0
  111. package/dist/index-8g2jwLJx.js +513 -0
  112. package/dist/index-B0udVHyo.js +125 -0
  113. package/dist/index-D63IJVsJ.js +3525 -0
  114. package/dist/index-DCYCN_FR.js +508 -0
  115. package/dist/index-FRHGChx1.js +149 -0
  116. package/dist/index-HXiq8Yxs.js +270 -0
  117. package/dist/index-jOufDnZ8.js +188 -0
  118. package/dist/index.es.js +2 -5
  119. package/dist/index.umd.js +306 -1505
  120. package/dist/{main-WKzC-Dnu.js → main-C4OdoeS2.js} +36750 -37369
  121. package/dist/mapFormMixin-v-nbaWcx.js +1544 -0
  122. package/dist/omit-GuxX6Zt-.js +31 -0
  123. package/dist/{publicSenderState-BujjYsZZ.js → publicSenderState-C-7OMKKW.js} +4 -4
  124. package/dist/regions-BdZt9Srn.js +1250 -0
  125. package/dist/splitpanes-DChJiJ8d.js +342 -0
  126. package/dist/style.css +1 -4
  127. package/dist/template-m1V22cUt.js +1493 -0
  128. package/dist/{throttle-CWPJmFid.js → throttle-WWMDZKby.js} +2 -2
  129. package/dist/tippy.esm-Dz-faEsS.js +1994 -0
  130. package/dist/useTermsModal-C_eLdGLi.js +87 -0
  131. package/dist/{utils-CA_Zy6u1.js → utils-vnvZGRwQ.js} +8 -11
  132. package/dist/validation-C-dQpENM.js +40 -0
  133. package/package.json +25 -31
  134. package/.eslintrc.cjs +0 -4
  135. package/dist/AddClientCallout-BWnvyBcK.js +0 -46
  136. package/dist/AnswerModal-CLGRdSnK.js +0 -3874
  137. package/dist/AttachmentItem-BPS0-wyc.js +0 -78
  138. package/dist/BaseDatePicker-BbmV_GdD.js +0 -3183
  139. package/dist/BaseUpload-9gPgI7r6.js +0 -1977
  140. package/dist/BlockMedia-DkPFWiYL.js +0 -76
  141. package/dist/CCallout-T26jwUby.js +0 -59
  142. package/dist/CDropdownItem-BE8BAMD1.js +0 -636
  143. package/dist/CField.vue_vue_type_style_index_0_lang-l0sNRNKZ.js +0 -1
  144. package/dist/CFormField-DECEfoVq.js +0 -241
  145. package/dist/CPriceInput-C4SOB-P5.js +0 -112
  146. package/dist/CTabs.vue_vue_type_style_index_0_scoped_e02a6440_lang-l0sNRNKZ.js +0 -1
  147. package/dist/ClientAutocomplete-DSebA1Mx.js +0 -78
  148. package/dist/ClientModal-BXFYvYCF.js +0 -625
  149. package/dist/ColorPicker-CZ_bJabP.js +0 -2879
  150. package/dist/CompanyModal-CDr3t28n.js +0 -141
  151. package/dist/ContentWrapper-BwmMoe4W.js +0 -183
  152. package/dist/CoverBlockSettings-_F11-DGc.js +0 -275
  153. package/dist/DocAnswer-BR59xzkT.js +0 -36
  154. package/dist/DocDetails-D1qbCbps.js +0 -259
  155. package/dist/DocForm-DBc2a7z5.js +0 -7272
  156. package/dist/DocFormSend-Casix-yG.js +0 -144
  157. package/dist/DocLinks-DGTaewyX.js +0 -38
  158. package/dist/DocModalBase-BbS_qvSv.js +0 -28
  159. package/dist/DocPrint-0PqX3mbJ.js +0 -240
  160. package/dist/DocReceipt-CU3VD5pt.js +0 -210
  161. package/dist/DocSendReminder-CuycBspr.js +0 -137
  162. package/dist/DocTextEditor-CntS2Bd-.js +0 -17180
  163. package/dist/DocTimeline-DJuv3yBe.js +0 -481
  164. package/dist/DocumentClient-C25XXzz6.js +0 -136
  165. package/dist/DocumentLayout-B7afHRMr.js +0 -4909
  166. package/dist/DocumentLogotype-sqI51wvM.js +0 -87
  167. package/dist/DocumentVoided-TahdTSMn.js +0 -25
  168. package/dist/EmbedInput-BY-wHSfc.js +0 -113
  169. package/dist/EmbedSettings-8pfjk4NP.js +0 -72
  170. package/dist/ErrorCallout-Dsr8PNsU.js +0 -28
  171. package/dist/FilePreviewModal-CcEinEFg.js +0 -81
  172. package/dist/Flag-PJKrghi9.js +0 -114
  173. package/dist/HeaderSettings-BqczIOsG.js +0 -392
  174. package/dist/ImageSelectModal-Cd-HhKnH.js +0 -84
  175. package/dist/ImageUploadWrapper-Dv43rGdb.js +0 -1604
  176. package/dist/Index-6b5VBKE-.js +0 -107
  177. package/dist/Index-B4pRJnbw.js +0 -84
  178. package/dist/Index-B69f8qgZ.js +0 -62
  179. package/dist/Index-B79YN9RO.js +0 -25
  180. package/dist/Index-BBrlPoe8.js +0 -58
  181. package/dist/Index-BXfWJCuq.js +0 -52
  182. package/dist/Index-Bd76vb37.js +0 -55
  183. package/dist/Index-BmbtQO5F.js +0 -150
  184. package/dist/Index-ByV_kJaH.js +0 -77
  185. package/dist/Index-CDV5rhWS.js +0 -49
  186. package/dist/Index-CIx4OOK-.js +0 -144
  187. package/dist/Index-CL1OWLt6.js +0 -223
  188. package/dist/Index-Caow0eZu.js +0 -31
  189. package/dist/Index-Cd3-3PEK.js +0 -2402
  190. package/dist/Index-CdpZBEKU.js +0 -98
  191. package/dist/Index-CmU3Sys-.js +0 -754
  192. package/dist/Index-CtRtgnpm.js +0 -32
  193. package/dist/Index-Cukkr33D.js +0 -140
  194. package/dist/Index-Cuqw0ios.js +0 -57
  195. package/dist/Index-Czm_WdqC.js +0 -25
  196. package/dist/Index-DNdYXHgr.js +0 -33
  197. package/dist/Index-DcuBxutp.js +0 -642
  198. package/dist/Index-DpWNWiyY.js +0 -291
  199. package/dist/Index-DzS1rZdF.js +0 -24
  200. package/dist/Index-N6s5pZxv.js +0 -26
  201. package/dist/Index-g_DNu4mt.js +0 -69
  202. package/dist/Index-mJ8F41GY.js +0 -154
  203. package/dist/Index-q7W9KA8m.js +0 -21
  204. package/dist/Index-rtzblZp4.js +0 -70
  205. package/dist/InputToggleRow-CZjxsDOQ.js +0 -57
  206. package/dist/ManualPopover-CZrWiT-P.js +0 -58
  207. package/dist/MediaWrapper-D37qK4KR.js +0 -23
  208. package/dist/PackageGroup-Heo_s8ct.js +0 -699
  209. package/dist/PdfTerms-AB9tXAtU.js +0 -36
  210. package/dist/PdfViewer-CIVkvOBr.js +0 -373
  211. package/dist/PlainHtml-CPmIebjY.js +0 -20
  212. package/dist/PriceHeader-DhDAruwX.js +0 -339
  213. package/dist/SearchApi-BMgdaI4s.js +0 -161
  214. package/dist/Setup-VIaIV9uT.js +0 -50
  215. package/dist/ThemeColorRow-DYJNgk6S.js +0 -67
  216. package/dist/ToggleBinding-CuwCeYpO.js +0 -38
  217. package/dist/UploadModal-BITcxG-J.js +0 -95
  218. package/dist/VideoPlayerInput-8szEX_8L.js +0 -93
  219. package/dist/VideoPlayerSettings-BIPytm6w.js +0 -61
  220. package/dist/VideoSelectModal-B-Pe34nb.js +0 -100
  221. package/dist/answerDocumentMixin-W7vE1Gp4.js +0 -51
  222. package/dist/formComponentsInstall-Bm3VMOh6.js +0 -2507
  223. package/dist/formValidationMixin-COkY8COk.js +0 -49
  224. package/dist/index-BFvjENMH.js +0 -81
  225. package/dist/index-BV2nGWay.js +0 -492
  226. package/dist/index-BgJ05dYc.js +0 -165
  227. package/dist/index-CMPAXxzs.js +0 -347
  228. package/dist/index-DNDjI5uI.js +0 -3916
  229. package/dist/index-aoff9oUi.js +0 -102
  230. package/dist/mapFormMixin-QbevCwJK.js +0 -72
  231. package/dist/omit-CTp9CXoU.js +0 -31
  232. package/dist/splitpanes-BHUVsCZF.js +0 -382
  233. package/dist/tinycolor-kTl0yxzz.js +0 -633
  234. package/dist/tippy.esm-sS5koDSU.js +0 -1799
  235. package/dist/vuedraggable.umd-BA3ZDRAp.js +0 -3161
  236. package/dist/vuex.esm-DKGl8mcw.js +0 -467
  237. package/public/favicon.ico +0 -0
  238. package/tsconfig.json +0 -26
  239. package/tsconfig.node.json +0 -10
  240. package/tsconfig.paths.json +0 -17
  241. package/vite.config.ts +0 -60
package/CHANGELOG.md ADDED
@@ -0,0 +1,25 @@
1
+ # @cling-se/widget
2
+
3
+ ## 0.17.0 (2024-10-10)
4
+
5
+ ### Added
6
+
7
+ - Optional `showKeepClientsOption` to hide "Keep clients" checkbox in save template dialog.
8
+ - Alternative "Save as template" section in send step for accountConfig `Offerta`
9
+
10
+ ### Fixed
11
+
12
+ - Callback input focus on added document blocks
13
+ - Dynamically loaded ES6 modules for certain environments and target runtimes.
14
+
15
+ ## 0.16.0 (2024-09-26)
16
+
17
+ ### Added
18
+
19
+ - Allows `style` attribute on `img` tags in the text editor.
20
+ - Adds `sv` locale based sort for `projects`, `articles`, `clients`, `fields` and `text-snippets`.
21
+
22
+ ### Fixed
23
+
24
+ - DocForm: Edit template save-button is now respects custom styling.
25
+ - DocForm: Navbar button contrast issues
@@ -0,0 +1,82 @@
1
+ # Publish to @cling-se/widget
2
+
3
+ [NPM directory - @cling-se/widget](https://www.npmjs.com/package/@cling-se/widget)
4
+
5
+ ### Prerequisites
6
+
7
+ 1. Authenticated to NPM
8
+ 2. Publishing rights to `@cling-se/widget`
9
+
10
+ ### Pre release
11
+
12
+ Add changes relevant to the widget **consumer** to `CHANGELOG.md` following the conventional changelog format
13
+
14
+ <details>
15
+ <summary>Example</summary>
16
+
17
+ ```markdown
18
+ ## major.minor.patch (yyyy-mm-dd)
19
+
20
+ ### Added
21
+
22
+ - Support for internationalization using i18next.
23
+ - New `getUserProfile` API to fetch user data.
24
+
25
+ ### Fixed
26
+
27
+ - Resolved issue where sorting didn't work for arrays with undefined values.
28
+ - Fixed broken pagination in the dashboard UI.
29
+
30
+ ### Changed
31
+
32
+ - Updated `vue-router` to v4.0.15 for better SSR support.
33
+
34
+ ### Deprecated
35
+
36
+ - Deprecated the `useOldAuth` method; use `useNewAuth` instead.
37
+
38
+ ### Removed
39
+
40
+ - Removed support for Node.js 12 (Node.js 14 or higher required).
41
+
42
+ ### Security
43
+
44
+ - Patched a security vulnerability related to JWT token validation.
45
+ ```
46
+
47
+ </details>
48
+
49
+ ### Publishing to NPM
50
+
51
+ **Bumping the version**
52
+
53
+ - Stand on `dev/master`. Using `dev` is fine as long as the branch is stable.
54
+ - Navigate to `widget/package.json` and change version according to semantic versioning (_see table below_)
55
+ - Commit and push version change to `dev/master`
56
+ - Commit message: `chore(widget): bumps version to <version>`
57
+
58
+ **Publishing**
59
+
60
+ - Navigate to root and run "pnpm widget:publish"
61
+ - If this step doesn't work due to windows paths or similar, and you're working directly in widget directory:
62
+ - `pnpm build`
63
+ - `pnpm publish`
64
+ - If not publishing from master you will be prompted with a confirm dialog. Press yes if the dev branch is stable
65
+ - Post a message in **#cling-release-notes** channel:
66
+
67
+ New Cling Widget published <npmVersion>
68
+ - Specify your changes in a bullet list
69
+
70
+ ### Resources and definitions
71
+
72
+ <!-- Definition table -->
73
+ <details>
74
+ <summary>Semantic versioning definitions</summary>
75
+
76
+ | Version | Description |
77
+ | ------- | -------------------------------------------------------------------------------------------------------------------------------------- |
78
+ | MAJOR | When you make incompatible API changes. _At the time of writing we only change this if we plan on long term maintainance of a version_ |
79
+ | MINOR | When you add functionality in a backwards compatible manner. |
80
+ | PATCH | When you make backwards compatible bug fixes. |
81
+
82
+ </details>
package/README.md CHANGED
@@ -1,40 +1,14 @@
1
- # Publish to @cling-se/widget
2
-
3
- [NPM directory - @cling-se/widget](https://www.npmjs.com/package/@cling-se/widget)
4
-
5
- ### Prerequisites
6
-
7
- 1. Authenticated to NPM
8
- 2. Publishing rights to `@cling-se/widget`
9
-
10
- ### Publishing to NPM
11
-
12
- **Bumping the version**
13
-
14
- - Stand on `dev/master`. Using `dev` is fine as long as the branch is stable.
15
- - Navigate to `widget/package.json` and change version according to semantic versioning (_see table below_)
16
- - Commit and push version change to `dev/master`
17
- - Commit message: `chore(widget): bumps version to <version>`
18
-
19
- **Publishing**
20
-
21
- - Navigate to root and run "pnpm widget:publish"
22
- - If not publishing from master you will be prompted with a confirm dialog. Press yes if the dev branch is stable
23
- - Post a message in **#cling-release-notes** channel:
24
-
25
- New Cling Widget published <npmVersion>
26
- - Specify your changes in a bullet list
27
-
28
- ### Resources and definitions
29
-
30
- <!-- Definition table -->
31
- <details>
32
- <summary>Semantic versioning definitions</summary>
33
-
34
- | Version | Description |
35
- | ------- | -------------------------------------------------------------------------------------------------------------------------------------- |
36
- | MAJOR | When you make incompatible API changes. _At the time of writing we only change this if we plan on long term maintainance of a version_ |
37
- | MINOR | When you add functionality in a backwards compatible manner. |
38
- | PATCH | When you make backwards compatible bug fixes. |
39
-
40
- </details>
1
+ <h1 align="center" style="border-bottom: none">
2
+ <div>
3
+ <a href="https://developer.cling.se">
4
+ <img alt="Cling" src="https://developer.cling.se/logo.png" width="80">
5
+ <br>
6
+ </a>
7
+ Cling
8
+ </div>
9
+ </h1>
10
+
11
+ <p align="center">
12
+ <a href="https://cling.se/"><b>Website</b></a>
13
+ <a href="https://developer.cling.se/"><b>Documentation</b></a>
14
+ </p>
@@ -0,0 +1,14 @@
1
+ <h1 align="center" style="border-bottom: none">
2
+ <div>
3
+ <a href="https://developer.cling.se">
4
+ <img alt="Cling" src="https://developer.cling.se/logo.png" width="80">
5
+ <br>
6
+ </a>
7
+ Cling
8
+ </div>
9
+ </h1>
10
+
11
+ <p align="center">
12
+ <a href="https://cling.se/"><b>Website</b></a> •
13
+ <a href="https://developer.cling.se/"><b>Documentation</b></a>
14
+ </p>
@@ -0,0 +1,101 @@
1
+ import { m as g } from "./mapFormMixin-v-nbaWcx.js";
2
+ import { _ as y } from "./CFormField.vue_vue_type_script_setup_true_lang-B4s_Zfsp.js";
3
+ import { T as v, _, b as i, o as n, d as a, s as l, v as r, f as d, e as c, w as p, B as h, F as x, n as b, l as w } from "./main-C4OdoeS2.js";
4
+ import { C as $ } from "./ClientAutocomplete-D5veIKyZ.js";
5
+ const k = {
6
+ i18nOptions: {
7
+ namespaces: "components",
8
+ keyPrefix: "account.documentForm.clients"
9
+ },
10
+ name: "AddClientCallout",
11
+ inheritAttrs: !1,
12
+ components: {
13
+ ClientAutocomplete: $,
14
+ CField: y
15
+ },
16
+ emits: ["add", "setClient"],
17
+ mixins: [g([])],
18
+ props: {
19
+ compact: {
20
+ type: Boolean,
21
+ default: !1
22
+ }
23
+ },
24
+ computed: {
25
+ showSearch() {
26
+ return v.value !== "widget" && !this.viewSettings.isPublicForm;
27
+ }
28
+ }
29
+ }, F = {
30
+ key: 0,
31
+ class: "px-2"
32
+ }, A = ["textContent"], B = ["textContent"], S = { class: "control" }, z = {
33
+ key: 0,
34
+ class: "control flex items-center text-gray-500",
35
+ style: { width: "initial", "font-size": "13px" }
36
+ };
37
+ function N(e, t, o, V, T, m) {
38
+ const u = i("CButton"), C = i("ClientAutocomplete"), f = i("CField");
39
+ return n(), a("div", {
40
+ class: b(
41
+ o.compact ? "rounded-lg border border-gray-200 p-3" : "rounded-lg border border-gray-200 bg-gray-100 p-3"
42
+ ),
43
+ style: w(
44
+ o.compact && {
45
+ "--stripe-1": "hsl(var(--gray-color-50))",
46
+ "--stripe-2": "hsl(var(--gray-color-100))",
47
+ background: "repeating-linear-gradient(45deg,var(--stripe-1),var(--stripe-1) 15px,var(--stripe-2) 15px,var(--stripe-2) 30px)"
48
+ }
49
+ )
50
+ }, [
51
+ o.compact ? d("", !0) : (n(), a("div", F, [
52
+ l("div", {
53
+ class: "text-base font-semibold",
54
+ textContent: r(e.$t("title"))
55
+ }, null, 8, A),
56
+ l("div", {
57
+ class: "pb-6 text-gray-700",
58
+ textContent: r(e.$t("subTitle"))
59
+ }, null, 8, B)
60
+ ])),
61
+ c(f, {
62
+ grouped: "",
63
+ "group-multiline": ""
64
+ }, {
65
+ default: p(() => [
66
+ l("div", S, [
67
+ c(u, {
68
+ type: "secondary",
69
+ class: "is-left",
70
+ size: "small",
71
+ taller: "",
72
+ "icon-left": "plus",
73
+ onClick: t[0] || (t[0] = (s) => e.$emit("add"))
74
+ }, {
75
+ default: p(() => [
76
+ h(r(m.showSearch ? e.$t("add.new") : e.$t("_common:add", { thing: e.$t("_common:recipient") })), 1)
77
+ ]),
78
+ _: 1
79
+ })
80
+ ]),
81
+ m.showSearch ? (n(), a(x, { key: 0 }, [
82
+ o.compact ? (n(), a("div", z, r(e.$t("_common:or")), 1)) : d("", !0),
83
+ c(C, {
84
+ "show-loading": !0,
85
+ "show-empty": !0,
86
+ icon: "search",
87
+ "clear-on-select": "",
88
+ style: { flex: "1 1 0" },
89
+ onAdd: t[1] || (t[1] = (s) => e.$emit("add", s)),
90
+ onSetClient: t[2] || (t[2] = (s) => e.$emit("setClient", s))
91
+ })
92
+ ], 64)) : d("", !0)
93
+ ]),
94
+ _: 1
95
+ })
96
+ ], 6);
97
+ }
98
+ const O = /* @__PURE__ */ _(k, [["render", N]]);
99
+ export {
100
+ O as default
101
+ };