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

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-e8d19R3f.js +101 -0
  6. package/dist/AnswerModal-BGvB8IVV.js +3291 -0
  7. package/dist/AttachmentItem-CkHbAm4l.js +171 -0
  8. package/dist/BaseUpload-BiJBcWRu.js +2472 -0
  9. package/dist/BlockMedia-CW5wgipC.js +103 -0
  10. package/dist/CCallout-Cy2eeIYd.js +104 -0
  11. package/dist/{CCurrencyDropdown-qH-3m2eP.js → CCurrencyDropdown-DE_3CTjm.js} +91 -49
  12. package/dist/CDropdownItem-Dmq5gYzA.js +751 -0
  13. package/dist/CFormField.vue_vue_type_script_setup_true_lang-D_U9coAY.js +292 -0
  14. package/dist/{CPhoneFormat-CfQayFxw.js → CPhoneFormat-BS2nP9kc.js} +13 -21
  15. package/dist/CPhoneInput-Bf6329PO.js +207 -0
  16. package/dist/CPriceInput-d1yjuMQr.js +140 -0
  17. package/dist/CSelect-DgnT07Hk.js +98 -0
  18. package/dist/CSkeleton.vue_vue_type_script_setup_true_lang-Ckl--dyv.js +51 -0
  19. package/dist/ClientAutocomplete-9JzGcO9O.js +532 -0
  20. package/dist/ClientModal-BzWQtWSZ.js +1181 -0
  21. package/dist/ColorPicker-BvoFN8nu.js +1408 -0
  22. package/dist/CompanyModal-Bp4V_az9.js +250 -0
  23. package/dist/ContentWrapper-CuH6xKmo.js +265 -0
  24. package/dist/CoverBlockSettings-BA5L0Zee.js +861 -0
  25. package/dist/DocAnswer-BcNA_KEg.js +33 -0
  26. package/dist/DocDetails-CStEwWnU.js +448 -0
  27. package/dist/DocForm-BOoILf5E.js +6748 -0
  28. package/dist/DocFormSend-CQIf-HJY.js +171 -0
  29. package/dist/DocLinks-BRX5QzNe.js +36 -0
  30. package/dist/DocModalBase-D72yWj-x.js +29 -0
  31. package/dist/DocPrint-BI1LXUPE.js +399 -0
  32. package/dist/DocReceipt-DaZ4V76p.js +341 -0
  33. package/dist/DocSendReminder-DKGZlo7s.js +181 -0
  34. package/dist/DocTextEditor-Dm-cTZpA.js +19413 -0
  35. package/dist/DocTimeline-DCwofzuk.js +537 -0
  36. package/dist/DocumentClient-vJdxCB53.js +90 -0
  37. package/dist/DocumentLayout-CKSi42ev.js +1368 -0
  38. package/dist/DocumentLogotype-DbQlvQ-y.js +162 -0
  39. package/dist/DocumentVoided-CRX2WxWO.js +33 -0
  40. package/dist/EmbedInput-B-oeC4Wy.js +157 -0
  41. package/dist/EmbedSettings-B9Yka2yB.js +103 -0
  42. package/dist/ErrorCallout-B_ygH33E.js +34 -0
  43. package/dist/FilePreviewModal-Bf3ELTow.js +202 -0
  44. package/dist/Flag-BwTgCNHO.js +41 -0
  45. package/dist/HeaderSettings-DvC7nlyY.js +720 -0
  46. package/dist/ImageSelectModal-D3sP3lhR.js +119 -0
  47. package/dist/ImageUploadWrapper-RWNa-yIq.js +1585 -0
  48. package/dist/Index-0_3ULrWX.js +126 -0
  49. package/dist/Index-4NPe0sfX.js +629 -0
  50. package/dist/Index-B1uA0FF6.js +4 -0
  51. package/dist/Index-BBkCYm2q.js +201 -0
  52. package/dist/{Index-DIOiMm9f.js → Index-BBwvo7S9.js} +10 -18
  53. package/dist/Index-BEMlsYwJ.js +68 -0
  54. package/dist/Index-BRBhJ6kz.js +21 -0
  55. package/dist/{Index--qPMWUMT.js → Index-BTFmHjUt.js} +48 -61
  56. package/dist/Index-BcUNnxLC.js +1098 -0
  57. package/dist/Index-Bo6ExBUL.js +93 -0
  58. package/dist/Index-BvMPCgdH.js +102 -0
  59. package/dist/Index-Bx5TOI9k.js +74 -0
  60. package/dist/Index-C7GZS8EI.js +16 -0
  61. package/dist/Index-CNWhm07R.js +25 -0
  62. package/dist/{Index-DcQbh-z2.js → Index-CQpznMKV.js} +9 -17
  63. package/dist/Index-CRzsnIij.js +159 -0
  64. package/dist/Index-CeSG1C41.js +140 -0
  65. package/dist/Index-CjfjdZj5.js +52 -0
  66. package/dist/Index-CskKmZpd.js +363 -0
  67. package/dist/Index-D5qwbCo1.js +28 -0
  68. package/dist/Index-D8Ae1Txt.js +228 -0
  69. package/dist/Index-DE8aenDB.js +3452 -0
  70. package/dist/Index-DI5EB5Rt.js +39 -0
  71. package/dist/Index-DaV57YPP.js +163 -0
  72. package/dist/Index-DbwkmoyM.js +38 -0
  73. package/dist/Index-Df9skok6.js +70 -0
  74. package/dist/{Index-Bu0MGrj6.js → Index-DfLLA0ij.js} +313 -206
  75. package/dist/Index-Dw1CO5F9.js +76 -0
  76. package/dist/Index-PZXyOoVb.js +87 -0
  77. package/dist/{Index-D4XgxmbD.js → Index-ZUnH-BHj.js} +10 -18
  78. package/dist/Index-cjKGSiDi.js +136 -0
  79. package/dist/Index-m-goRuKD.js +49 -0
  80. package/dist/Index-rGeWbLcB.js +47 -0
  81. package/dist/Index-vrljNp6G.js +28 -0
  82. package/dist/Index.vue_vue_type_script_lang-aeVuChGF.js +671 -0
  83. package/dist/InputToggleRow-v6qAWPg6.js +99 -0
  84. package/dist/ManualPopover-BONBJIUA.js +57 -0
  85. package/dist/MediaWrapper-CXb2UGd9.js +18 -0
  86. package/dist/{NotBindingText-CNV2Wmdx.js → NotBindingText-BqESO13N.js} +13 -17
  87. package/dist/PackageGroup-AIysVmyh.js +1058 -0
  88. package/dist/PdfTerms-BlhHdTu3.js +34 -0
  89. package/dist/PdfViewer-DwZ1rwlN.js +392 -0
  90. package/dist/PlainHtml.vue_vue_type_script_setup_true_lang-D6NNUTz0.js +17 -0
  91. package/dist/PriceHeader-C4XhnoA3.js +488 -0
  92. package/dist/SearchApi-B7lXgUY6.js +137 -0
  93. package/dist/SendForm-BcD0xSvB.js +7031 -0
  94. package/dist/Setup-C2qaYDei.js +47 -0
  95. package/dist/{SmartList-Qgu0rMrI.js → SmartList-DqG7Q5t7.js} +16 -24
  96. package/dist/Sortable.vue_vue_type_script_setup_true_lang-CzMbr8AX.js +1303 -0
  97. package/dist/{TermsSettings-CE3h_xkm.js → TermsSettings-BOCONyM4.js} +169 -49
  98. package/dist/ThemeColorRow-sjGdMzGN.js +108 -0
  99. package/dist/ToggleBinding-7oq_oXPt.js +44 -0
  100. package/dist/UploadModal-C_X2NjVY.js +134 -0
  101. package/dist/VideoPlayerInput-BsUcmpl4.js +135 -0
  102. package/dist/VideoPlayerSettings-BXMmxaZQ.js +78 -0
  103. package/dist/VideoSelectModal-CW0OweCw.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-DNl99Gyo.js} +7 -7
  107. package/dist/dom-CkTGWrfu.js +69 -0
  108. package/dist/{focusDrawerMixin-Be6BAK8-.js → focusDrawerMixin-BwcErMDY.js} +1 -1
  109. package/dist/{formDrawerState-DRbg5rVI.js → formDrawerState-DaurePnd.js} +2 -2
  110. package/dist/helpers-CPW--XIz.js +44 -0
  111. package/dist/index-BjiGCJPI.js +149 -0
  112. package/dist/index-CFNv6OvX.js +188 -0
  113. package/dist/index-Cx71On5Z.js +508 -0
  114. package/dist/index-DKMxIBz_.js +270 -0
  115. package/dist/index-DKf5SGLD.js +125 -0
  116. package/dist/index-E32WgUp9.js +3525 -0
  117. package/dist/index-kp-GC5I0.js +513 -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-Cb-nyil1.js} +33252 -33755
  121. package/dist/mapFormMixin-D3BihYWW.js +1544 -0
  122. package/dist/omit--YYr41Xp.js +31 -0
  123. package/dist/{publicSenderState-BujjYsZZ.js → publicSenderState-CdRW_Wwp.js} +4 -4
  124. package/dist/regions-BdZt9Srn.js +1250 -0
  125. package/dist/splitpanes-D-ThFkeR.js +342 -0
  126. package/dist/style.css +1 -4
  127. package/dist/template-BvaNnq-g.js +1493 -0
  128. package/dist/{throttle-CWPJmFid.js → throttle-D-bUGaVh.js} +2 -2
  129. package/dist/tippy.esm-BmKNqohP.js +1994 -0
  130. package/dist/useTermsModal-Dhf6_eYb.js +87 -0
  131. package/dist/{utils-CA_Zy6u1.js → utils-CBPcYdLv.js} +8 -11
  132. package/dist/validation-DOcUOoMe.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
@@ -1,467 +0,0 @@
1
- /*!
2
- * vuex v3.6.2
3
- * (c) 2021 Evan You
4
- * @license MIT
5
- */
6
- function L(e) {
7
- var t = Number(e.version.split(".")[0]);
8
- if (t >= 2)
9
- e.mixin({ beforeCreate: i });
10
- else {
11
- var r = e.prototype._init;
12
- e.prototype._init = function(n) {
13
- n === void 0 && (n = {}), n.init = n.init ? [i].concat(n.init) : i, r.call(this, n);
14
- };
15
- }
16
- function i() {
17
- var n = this.$options;
18
- n.store ? this.$store = typeof n.store == "function" ? n.store() : n.store : n.parent && n.parent.$store && (this.$store = n.parent.$store);
19
- }
20
- }
21
- var P = typeof window < "u" ? window : typeof global < "u" ? global : {}, _ = P.__VUE_DEVTOOLS_GLOBAL_HOOK__;
22
- function H(e) {
23
- _ && (e._devtoolHook = _, _.emit("vuex:init", e), _.on("vuex:travel-to-state", function(t) {
24
- e.replaceState(t);
25
- }), e.subscribe(function(t, r) {
26
- _.emit("vuex:mutation", t, r);
27
- }, { prepend: !0 }), e.subscribeAction(function(t, r) {
28
- _.emit("vuex:action", t, r);
29
- }, { prepend: !0 }));
30
- }
31
- function y(e, t) {
32
- Object.keys(e).forEach(function(r) {
33
- return t(e[r], r);
34
- });
35
- }
36
- function G(e) {
37
- return e !== null && typeof e == "object";
38
- }
39
- function V(e) {
40
- return e && typeof e.then == "function";
41
- }
42
- function T(e, t) {
43
- return function() {
44
- return e(t);
45
- };
46
- }
47
- var m = function(t, r) {
48
- this.runtime = r, this._children = /* @__PURE__ */ Object.create(null), this._rawModule = t;
49
- var i = t.state;
50
- this.state = (typeof i == "function" ? i() : i) || {};
51
- }, j = { namespaced: { configurable: !0 } };
52
- j.namespaced.get = function() {
53
- return !!this._rawModule.namespaced;
54
- };
55
- m.prototype.addChild = function(t, r) {
56
- this._children[t] = r;
57
- };
58
- m.prototype.removeChild = function(t) {
59
- delete this._children[t];
60
- };
61
- m.prototype.getChild = function(t) {
62
- return this._children[t];
63
- };
64
- m.prototype.hasChild = function(t) {
65
- return t in this._children;
66
- };
67
- m.prototype.update = function(t) {
68
- this._rawModule.namespaced = t.namespaced, t.actions && (this._rawModule.actions = t.actions), t.mutations && (this._rawModule.mutations = t.mutations), t.getters && (this._rawModule.getters = t.getters);
69
- };
70
- m.prototype.forEachChild = function(t) {
71
- y(this._children, t);
72
- };
73
- m.prototype.forEachGetter = function(t) {
74
- this._rawModule.getters && y(this._rawModule.getters, t);
75
- };
76
- m.prototype.forEachAction = function(t) {
77
- this._rawModule.actions && y(this._rawModule.actions, t);
78
- };
79
- m.prototype.forEachMutation = function(t) {
80
- this._rawModule.mutations && y(this._rawModule.mutations, t);
81
- };
82
- Object.defineProperties(m.prototype, j);
83
- var g = function(t) {
84
- this.register([], t, !1);
85
- };
86
- g.prototype.get = function(t) {
87
- return t.reduce(function(r, i) {
88
- return r.getChild(i);
89
- }, this.root);
90
- };
91
- g.prototype.getNamespace = function(t) {
92
- var r = this.root;
93
- return t.reduce(function(i, n) {
94
- return r = r.getChild(n), i + (r.namespaced ? n + "/" : "");
95
- }, "");
96
- };
97
- g.prototype.update = function(t) {
98
- x([], this.root, t);
99
- };
100
- g.prototype.register = function(t, r, i) {
101
- var n = this;
102
- i === void 0 && (i = !0);
103
- var o = new m(r, i);
104
- if (t.length === 0)
105
- this.root = o;
106
- else {
107
- var u = this.get(t.slice(0, -1));
108
- u.addChild(t[t.length - 1], o);
109
- }
110
- r.modules && y(r.modules, function(s, a) {
111
- n.register(t.concat(a), s, i);
112
- });
113
- };
114
- g.prototype.unregister = function(t) {
115
- var r = this.get(t.slice(0, -1)), i = t[t.length - 1], n = r.getChild(i);
116
- n && n.runtime && r.removeChild(i);
117
- };
118
- g.prototype.isRegistered = function(t) {
119
- var r = this.get(t.slice(0, -1)), i = t[t.length - 1];
120
- return r ? r.hasChild(i) : !1;
121
- };
122
- function x(e, t, r) {
123
- if (t.update(r), r.modules)
124
- for (var i in r.modules) {
125
- if (!t.getChild(i))
126
- return;
127
- x(
128
- e.concat(i),
129
- t.getChild(i),
130
- r.modules[i]
131
- );
132
- }
133
- }
134
- var p, v = function(t) {
135
- var r = this;
136
- t === void 0 && (t = {}), !p && typeof window < "u" && window.Vue && K(window.Vue);
137
- var i = t.plugins;
138
- i === void 0 && (i = []);
139
- var n = t.strict;
140
- n === void 0 && (n = !1), this._committing = !1, this._actions = /* @__PURE__ */ Object.create(null), this._actionSubscribers = [], this._mutations = /* @__PURE__ */ Object.create(null), this._wrappedGetters = /* @__PURE__ */ Object.create(null), this._modules = new g(t), this._modulesNamespaceMap = /* @__PURE__ */ Object.create(null), this._subscribers = [], this._watcherVM = new p(), this._makeLocalGettersCache = /* @__PURE__ */ Object.create(null);
141
- var o = this, u = this, s = u.dispatch, a = u.commit;
142
- this.dispatch = function(d, h) {
143
- return s.call(o, d, h);
144
- }, this.commit = function(d, h, N) {
145
- return a.call(o, d, h, N);
146
- }, this.strict = n;
147
- var l = this._modules.root.state;
148
- $(this, l, [], this._modules.root), C(this, l), i.forEach(function(f) {
149
- return f(r);
150
- });
151
- var c = t.devtools !== void 0 ? t.devtools : p.config.devtools;
152
- c && H(this);
153
- }, w = { state: { configurable: !0 } };
154
- w.state.get = function() {
155
- return this._vm._data.$$state;
156
- };
157
- w.state.set = function(e) {
158
- };
159
- v.prototype.commit = function(t, r, i) {
160
- var n = this, o = b(t, r, i), u = o.type, s = o.payload, a = { type: u, payload: s }, l = this._mutations[u];
161
- l && (this._withCommit(function() {
162
- l.forEach(function(f) {
163
- f(s);
164
- });
165
- }), this._subscribers.slice().forEach(function(c) {
166
- return c(a, n.state);
167
- }));
168
- };
169
- v.prototype.dispatch = function(t, r) {
170
- var i = this, n = b(t, r), o = n.type, u = n.payload, s = { type: o, payload: u }, a = this._actions[o];
171
- if (a) {
172
- try {
173
- this._actionSubscribers.slice().filter(function(c) {
174
- return c.before;
175
- }).forEach(function(c) {
176
- return c.before(s, i.state);
177
- });
178
- } catch {
179
- }
180
- var l = a.length > 1 ? Promise.all(a.map(function(c) {
181
- return c(u);
182
- })) : a[0](u);
183
- return new Promise(function(c, f) {
184
- l.then(function(d) {
185
- try {
186
- i._actionSubscribers.filter(function(h) {
187
- return h.after;
188
- }).forEach(function(h) {
189
- return h.after(s, i.state);
190
- });
191
- } catch {
192
- }
193
- c(d);
194
- }, function(d) {
195
- try {
196
- i._actionSubscribers.filter(function(h) {
197
- return h.error;
198
- }).forEach(function(h) {
199
- return h.error(s, i.state, d);
200
- });
201
- } catch {
202
- }
203
- f(d);
204
- });
205
- });
206
- }
207
- };
208
- v.prototype.subscribe = function(t, r) {
209
- return A(t, this._subscribers, r);
210
- };
211
- v.prototype.subscribeAction = function(t, r) {
212
- var i = typeof t == "function" ? { before: t } : t;
213
- return A(i, this._actionSubscribers, r);
214
- };
215
- v.prototype.watch = function(t, r, i) {
216
- var n = this;
217
- return this._watcherVM.$watch(function() {
218
- return t(n.state, n.getters);
219
- }, r, i);
220
- };
221
- v.prototype.replaceState = function(t) {
222
- var r = this;
223
- this._withCommit(function() {
224
- r._vm._data.$$state = t;
225
- });
226
- };
227
- v.prototype.registerModule = function(t, r, i) {
228
- i === void 0 && (i = {}), typeof t == "string" && (t = [t]), this._modules.register(t, r), $(this, this.state, t, this._modules.get(t), i.preserveState), C(this, this.state);
229
- };
230
- v.prototype.unregisterModule = function(t) {
231
- var r = this;
232
- typeof t == "string" && (t = [t]), this._modules.unregister(t), this._withCommit(function() {
233
- var i = M(r.state, t.slice(0, -1));
234
- p.delete(i, t[t.length - 1]);
235
- }), k(this);
236
- };
237
- v.prototype.hasModule = function(t) {
238
- return typeof t == "string" && (t = [t]), this._modules.isRegistered(t);
239
- };
240
- v.prototype.hotUpdate = function(t) {
241
- this._modules.update(t), k(this, !0);
242
- };
243
- v.prototype._withCommit = function(t) {
244
- var r = this._committing;
245
- this._committing = !0, t(), this._committing = r;
246
- };
247
- Object.defineProperties(v.prototype, w);
248
- function A(e, t, r) {
249
- return t.indexOf(e) < 0 && (r && r.prepend ? t.unshift(e) : t.push(e)), function() {
250
- var i = t.indexOf(e);
251
- i > -1 && t.splice(i, 1);
252
- };
253
- }
254
- function k(e, t) {
255
- e._actions = /* @__PURE__ */ Object.create(null), e._mutations = /* @__PURE__ */ Object.create(null), e._wrappedGetters = /* @__PURE__ */ Object.create(null), e._modulesNamespaceMap = /* @__PURE__ */ Object.create(null);
256
- var r = e.state;
257
- $(e, r, [], e._modules.root, !0), C(e, r, t);
258
- }
259
- function C(e, t, r) {
260
- var i = e._vm;
261
- e.getters = {}, e._makeLocalGettersCache = /* @__PURE__ */ Object.create(null);
262
- var n = e._wrappedGetters, o = {};
263
- y(n, function(s, a) {
264
- o[a] = T(s, e), Object.defineProperty(e.getters, a, {
265
- get: function() {
266
- return e._vm[a];
267
- },
268
- enumerable: !0
269
- // for local getters
270
- });
271
- });
272
- var u = p.config.silent;
273
- p.config.silent = !0, e._vm = new p({
274
- data: {
275
- $$state: t
276
- },
277
- computed: o
278
- }), p.config.silent = u, e.strict && I(e), i && (r && e._withCommit(function() {
279
- i._data.$$state = null;
280
- }), p.nextTick(function() {
281
- return i.$destroy();
282
- }));
283
- }
284
- function $(e, t, r, i, n) {
285
- var o = !r.length, u = e._modules.getNamespace(r);
286
- if (i.namespaced && (e._modulesNamespaceMap[u], e._modulesNamespaceMap[u] = i), !o && !n) {
287
- var s = M(t, r.slice(0, -1)), a = r[r.length - 1];
288
- e._withCommit(function() {
289
- p.set(s, a, i.state);
290
- });
291
- }
292
- var l = i.context = R(e, u, r);
293
- i.forEachMutation(function(c, f) {
294
- var d = u + f;
295
- U(e, d, c, l);
296
- }), i.forEachAction(function(c, f) {
297
- var d = c.root ? f : u + f, h = c.handler || c;
298
- z(e, d, h, l);
299
- }), i.forEachGetter(function(c, f) {
300
- var d = u + f;
301
- B(e, d, c, l);
302
- }), i.forEachChild(function(c, f) {
303
- $(e, t, r.concat(f), c, n);
304
- });
305
- }
306
- function R(e, t, r) {
307
- var i = t === "", n = {
308
- dispatch: i ? e.dispatch : function(o, u, s) {
309
- var a = b(o, u, s), l = a.payload, c = a.options, f = a.type;
310
- return (!c || !c.root) && (f = t + f), e.dispatch(f, l);
311
- },
312
- commit: i ? e.commit : function(o, u, s) {
313
- var a = b(o, u, s), l = a.payload, c = a.options, f = a.type;
314
- (!c || !c.root) && (f = t + f), e.commit(f, l, c);
315
- }
316
- };
317
- return Object.defineProperties(n, {
318
- getters: {
319
- get: i ? function() {
320
- return e.getters;
321
- } : function() {
322
- return D(e, t);
323
- }
324
- },
325
- state: {
326
- get: function() {
327
- return M(e.state, r);
328
- }
329
- }
330
- }), n;
331
- }
332
- function D(e, t) {
333
- if (!e._makeLocalGettersCache[t]) {
334
- var r = {}, i = t.length;
335
- Object.keys(e.getters).forEach(function(n) {
336
- if (n.slice(0, i) === t) {
337
- var o = n.slice(i);
338
- Object.defineProperty(r, o, {
339
- get: function() {
340
- return e.getters[n];
341
- },
342
- enumerable: !0
343
- });
344
- }
345
- }), e._makeLocalGettersCache[t] = r;
346
- }
347
- return e._makeLocalGettersCache[t];
348
- }
349
- function U(e, t, r, i) {
350
- var n = e._mutations[t] || (e._mutations[t] = []);
351
- n.push(function(u) {
352
- r.call(e, i.state, u);
353
- });
354
- }
355
- function z(e, t, r, i) {
356
- var n = e._actions[t] || (e._actions[t] = []);
357
- n.push(function(u) {
358
- var s = r.call(e, {
359
- dispatch: i.dispatch,
360
- commit: i.commit,
361
- getters: i.getters,
362
- state: i.state,
363
- rootGetters: e.getters,
364
- rootState: e.state
365
- }, u);
366
- return V(s) || (s = Promise.resolve(s)), e._devtoolHook ? s.catch(function(a) {
367
- throw e._devtoolHook.emit("vuex:error", a), a;
368
- }) : s;
369
- });
370
- }
371
- function B(e, t, r, i) {
372
- e._wrappedGetters[t] || (e._wrappedGetters[t] = function(o) {
373
- return r(
374
- i.state,
375
- // local state
376
- i.getters,
377
- // local getters
378
- o.state,
379
- // root state
380
- o.getters
381
- // root getters
382
- );
383
- });
384
- }
385
- function I(e) {
386
- e._vm.$watch(function() {
387
- return this._data.$$state;
388
- }, function() {
389
- }, { deep: !0, sync: !0 });
390
- }
391
- function M(e, t) {
392
- return t.reduce(function(r, i) {
393
- return r[i];
394
- }, e);
395
- }
396
- function b(e, t, r) {
397
- return G(e) && e.type && (r = t, t = e, e = e.type), { type: e, payload: t, options: r };
398
- }
399
- function K(e) {
400
- p && e === p || (p = e, L(p));
401
- }
402
- var F = E(function(e, t) {
403
- var r = {};
404
- return O(t).forEach(function(i) {
405
- var n = i.key, o = i.val;
406
- r[n] = function() {
407
- var s = this.$store.state, a = this.$store.getters;
408
- if (e) {
409
- var l = S(this.$store, "mapState", e);
410
- if (!l)
411
- return;
412
- s = l.context.state, a = l.context.getters;
413
- }
414
- return typeof o == "function" ? o.call(this, s, a) : s[o];
415
- }, r[n].vuex = !0;
416
- }), r;
417
- }), J = E(function(e, t) {
418
- var r = {};
419
- return O(t).forEach(function(i) {
420
- var n = i.key, o = i.val;
421
- o = e + o, r[n] = function() {
422
- if (!(e && !S(this.$store, "mapGetters", e)))
423
- return this.$store.getters[o];
424
- }, r[n].vuex = !0;
425
- }), r;
426
- }), Q = E(function(e, t) {
427
- var r = {};
428
- return O(t).forEach(function(i) {
429
- var n = i.key, o = i.val;
430
- r[n] = function() {
431
- for (var s = [], a = arguments.length; a--; )
432
- s[a] = arguments[a];
433
- var l = this.$store.dispatch;
434
- if (e) {
435
- var c = S(this.$store, "mapActions", e);
436
- if (!c)
437
- return;
438
- l = c.context.dispatch;
439
- }
440
- return typeof o == "function" ? o.apply(this, [l].concat(s)) : l.apply(this.$store, [o].concat(s));
441
- };
442
- }), r;
443
- });
444
- function O(e) {
445
- return q(e) ? Array.isArray(e) ? e.map(function(t) {
446
- return { key: t, val: t };
447
- }) : Object.keys(e).map(function(t) {
448
- return { key: t, val: e[t] };
449
- }) : [];
450
- }
451
- function q(e) {
452
- return Array.isArray(e) || G(e);
453
- }
454
- function E(e) {
455
- return function(t, r) {
456
- return typeof t != "string" ? (r = t, t = "") : t.charAt(t.length - 1) !== "/" && (t += "/"), e(t, r);
457
- };
458
- }
459
- function S(e, t, r) {
460
- var i = e._modulesNamespaceMap[r];
461
- return i;
462
- }
463
- export {
464
- Q as a,
465
- F as b,
466
- J as m
467
- };
Binary file
package/tsconfig.json DELETED
@@ -1,26 +0,0 @@
1
- {
2
- "extends": "./tsconfig.paths.json",
3
- "compilerOptions": {
4
- "target": "ES2020",
5
- "useDefineForClassFields": true,
6
- "lib": ["ES2020", "DOM"],
7
- "module": "ES2020",
8
- "skipLibCheck": true,
9
- "allowJs": true,
10
-
11
- // Bundler mode
12
- "moduleResolution": "bundler",
13
- "resolveJsonModule": true,
14
- "isolatedModules": true,
15
- "noEmit": true,
16
-
17
- // Linting
18
- "strict": true,
19
- "noUnusedLocals": true,
20
- "noUnusedParameters": true,
21
- "noFallthroughCasesInSwitch": true
22
- },
23
- "include": ["src/**/*"],
24
- "exclude": ["node_modules", "../node_modules", "./dist/**/*"],
25
- "references": [{ "path": "./tsconfig.node.json" }]
26
- }
@@ -1,10 +0,0 @@
1
- {
2
- "compilerOptions": {
3
- "composite": true,
4
- "skipLibCheck": true,
5
- "module": "ESNext",
6
- "moduleResolution": "bundler",
7
- "allowSyntheticDefaultImports": true
8
- },
9
- "include": ["./vite.config.ts"]
10
- }
@@ -1,17 +0,0 @@
1
- {
2
- "compilerOptions": {
3
- "baseUrl": "./src",
4
- "paths": {
5
- "@/*": ["*"],
6
- "@/assets/*": ["assets/*"],
7
- "@/components/*": ["components/*"],
8
- "@/models": ["models/*"],
9
- "@/plugins/*": ["plugins/*"],
10
- "@/router/*": ["router/*"],
11
- "@/store/*": ["store/*"],
12
- "@/ui/*": ["ui/*"],
13
- "@/utils": ["utils/*"],
14
- "@/views/*": ["views/*"]
15
- }
16
- }
17
- }
package/vite.config.ts DELETED
@@ -1,60 +0,0 @@
1
- import { resolve } from 'path'
2
-
3
- import vue2 from '@vitejs/plugin-vue2'
4
- import vue2Jsx from '@vitejs/plugin-vue2-jsx'
5
-
6
- import { visualizer } from 'rollup-plugin-visualizer'
7
-
8
- import { defineConfig } from 'vite'
9
- import tsconfigPaths from 'vite-tsconfig-paths'
10
-
11
- import injectCss from './vite-plugin-inject-css'
12
-
13
- import generateSharedConfig from '../shared'
14
-
15
- // https://vitejs.dev/config/
16
- export default ({ mode }) => {
17
- const sharedConfig = generateSharedConfig(mode)
18
-
19
- return defineConfig({
20
- plugins: [
21
- vue2(),
22
- vue2Jsx(),
23
- injectCss({
24
- styleId: process.env.VITE_APP_ROOT_STYLE_ID
25
- }),
26
- tsconfigPaths(),
27
- ...sharedConfig.plugins
28
- ],
29
- resolve: {
30
- alias: {
31
- '@': resolve(__dirname, 'src'),
32
- ...sharedConfig.resolve.alias
33
- }
34
- },
35
- define: {
36
- __APP_TYPE__: JSON.stringify('widget'),
37
- ...sharedConfig.define,
38
- 'process.env.BUILD': JSON.stringify('web') // TODO add to shared when tested in app staging
39
- },
40
- server: {
41
- watch: {
42
- ignored: ['!**/core/**'],
43
- usePolling: true
44
- }
45
- },
46
- build: {
47
- lib: {
48
- entry: resolve(__dirname, 'src/init.js'),
49
- name: 'widget',
50
- fileName: format => `index.${format}.js`
51
- },
52
- rollupOptions: {
53
- plugins: [visualizer()],
54
- output: {
55
- manualChunks: undefined // Create a single file only
56
- }
57
- }
58
- }
59
- })
60
- }