@ozdao/prometheus-framework 0.0.89 → 0.0.90

Sign up to get free protection for your applications and to get access to all the features.
Files changed (544) hide show
  1. package/dist/{Breadcrumbs.vue_vue_type_style_index_0_lang-afba007a.mjs → Breadcrumbs.vue_vue_type_style_index_0_lang-d9c6e4d1.mjs} +8 -7
  2. package/dist/Breadcrumbs.vue_vue_type_style_index_0_lang-e32a3041.js +1 -0
  3. package/dist/{ButtonFollow-728aab73.mjs → ButtonFollow-5e19fc49.mjs} +7 -6
  4. package/dist/ButtonFollow-959861db.js +1 -0
  5. package/dist/CardOrganization-01c2e248.mjs +210 -0
  6. package/dist/CardOrganization-1be3651b.js +1 -0
  7. package/dist/{CardHeader-0677d446.js → Chips-2a0d9bfe.js} +1 -1
  8. package/dist/Chips-f0b7ce36.mjs +110 -0
  9. package/dist/{Feed-ca8e0e22.mjs → Feed-8bbb7077.mjs} +100 -95
  10. package/dist/{Feed-76b2997e.mjs → Feed-986ddd21.mjs} +114 -126
  11. package/dist/Feed-a2870bbf.js +1 -0
  12. package/dist/Feed-f987d8bb.js +1 -0
  13. package/dist/IconEdit-823ddda9.js +1 -0
  14. package/dist/{IconEdit-8df23653.mjs → IconEdit-f0ad8b9a.mjs} +1 -1
  15. package/dist/{Image-30f04604.js → Image-0f2814f0.js} +2 -2
  16. package/dist/{Image-6ec294f3.mjs → Image-9e90a5f6.mjs} +2 -2
  17. package/dist/{PlaceholderUserpic-2221dbf2.mjs → PlaceholderUserpic-14c6ea7e.mjs} +1 -1
  18. package/dist/PlaceholderUserpic-20d58460.js +1 -0
  19. package/dist/{Popup-105ef2c3.js → Popup-0106ee0c.js} +1 -1
  20. package/dist/{Popup-bdf043ba.mjs → Popup-31c7ffc6.mjs} +1 -1
  21. package/dist/{Product-b233e2a3.js → Product-54854cd1.js} +2 -2
  22. package/dist/{Product-eb00f35e.mjs → Product-58a83c67.mjs} +17 -16
  23. package/dist/ProductEdit-36e5cfdd.js +1 -0
  24. package/dist/{ProductEdit-61413d02.mjs → ProductEdit-56752bbe.mjs} +30 -29
  25. package/dist/{ProfileBlogposts-775b1cfa.mjs → ProfileBlogposts-67e1bd8f.mjs} +11 -10
  26. package/dist/ProfileBlogposts-a798df3d.js +1 -0
  27. package/dist/{ProfileComments-fd7d66bf.mjs → ProfileComments-17352b6a.mjs} +7 -6
  28. package/dist/ProfileComments-473c3413.js +1 -0
  29. package/dist/{ProfileEvents-7a51a9e6.mjs → ProfileEvents-76166bc5.mjs} +13 -12
  30. package/dist/ProfileEvents-cdebd612.js +1 -0
  31. package/dist/ProfileLikes-da6303a4.js +1 -0
  32. package/dist/{ProfileLikes-20a8a3c9.mjs → ProfileLikes-f838ff5e.mjs} +10 -9
  33. package/dist/ProfileOrganizations-5348e892.js +1 -0
  34. package/dist/{ProfileOrganizations-4b866823.mjs → ProfileOrganizations-58ebfe44.mjs} +7 -6
  35. package/dist/Publics-e14d36ed.js +1 -0
  36. package/dist/{Publics-0e44c61e.mjs → Publics-fcb1f708.mjs} +17 -16
  37. package/dist/{UploadImage-9e7e7468.js → UploadImage-73d66f27.js} +1 -1
  38. package/dist/{UploadImage-d33b293e.mjs → UploadImage-a3ef4012.mjs} +1 -1
  39. package/dist/_plugin-vue_export-helper-dad06003.mjs +9 -0
  40. package/dist/_plugin-vue_export-helper-f246444f.js +1 -0
  41. package/dist/{auth-8b5aac7a.mjs → auth-5217f6a5.mjs} +13 -17
  42. package/dist/auth-5a58f8cb.js +8 -0
  43. package/dist/auth.client.cjs +8 -8
  44. package/dist/auth.client.js +16 -15
  45. package/dist/{auth.validation-093babe9.mjs → auth.validation-9f87ea95.mjs} +1 -1
  46. package/dist/{auth.validation-9f7c7948.js → auth.validation-be05e981.js} +1 -1
  47. package/dist/community.client.cjs +1 -1
  48. package/dist/community.client.js +26 -25
  49. package/dist/community.server.js +7 -167
  50. package/dist/community.server.mjs +7 -167
  51. package/dist/components/Address/Address.vue.d.ts.map +1 -1
  52. package/dist/components/Button/Button.vue.d.ts.map +1 -1
  53. package/dist/components/Checkbox/Checkbox.vue.d.ts.map +1 -1
  54. package/dist/components/Dropdown/Dropdown.vue.d.ts.map +1 -1
  55. package/dist/components/Field/Field.vue.d.ts.map +1 -1
  56. package/dist/components/FieldPhone/FieldPhone.vue.d.ts.map +1 -1
  57. package/dist/components/LocationMarker/LocationMarker.vue.d.ts.map +1 -1
  58. package/dist/components/Map/Map.vue.d.ts.map +1 -1
  59. package/dist/components/Popup/Popup.vue.d.ts.map +1 -1
  60. package/dist/components/Select/Select.vue.d.ts.map +1 -1
  61. package/dist/components/SelectMulti/SelectMulti.vue.d.ts.map +1 -1
  62. package/dist/components/Spoiler/Spoiler.vue.d.ts.map +1 -1
  63. package/dist/components/Tab/Tab.vue.d.ts.map +1 -1
  64. package/dist/components/Text/Text.vue.d.ts.map +1 -1
  65. package/dist/components/Tooltip/Tooltip.vue.d.ts.map +1 -1
  66. package/dist/components/Upload/Upload.vue.d.ts.map +1 -1
  67. package/dist/events.client.cjs +1 -1
  68. package/dist/events.client.js +24 -23
  69. package/dist/landing.client.cjs +1 -0
  70. package/dist/landing.client.js +132 -0
  71. package/dist/modules/icons/labels/LabelAppStore.vue.d.ts +2 -0
  72. package/dist/modules/icons/labels/LabelGooglePlay.vue.d.ts +2 -0
  73. package/dist/modules/{community/components/blocks/HeaderBlogpost.vue.d.ts → landing/components/sections/MobileApp.vue.d.ts} +3 -3
  74. package/dist/{organizations-1581c013.mjs → organizations-2adff182.mjs} +1 -1
  75. package/dist/{organizations-c455dad7.js → organizations-e97a0f85.js} +1 -1
  76. package/dist/{organizations.client-7937e180.mjs → organizations.client-88d41199.mjs} +50 -49
  77. package/dist/organizations.client-d21a22ec.js +3 -0
  78. package/dist/organizations.client.cjs +1 -1
  79. package/dist/organizations.client.js +46 -45
  80. package/dist/prometheus-framework.cjs.js +19 -19
  81. package/dist/prometheus-framework.es.js +2171 -2164
  82. package/dist/style.css +1 -1
  83. package/dist/users.client.cjs +1 -1
  84. package/dist/users.client.js +16 -15
  85. package/package.json +6 -2
  86. package/src/components/Text/Text.vue +3 -1
  87. package/src/modules/community/community.server.js +0 -2
  88. package/src/modules/community/components/blocks/CardBlogpost.vue +8 -0
  89. package/src/modules/community/components/pages/Blog.vue +1 -1
  90. package/src/modules/community/controllers/blog.controller.js +5 -1
  91. package/src/modules/icons/labels/LabelAppStore.vue +32 -0
  92. package/src/modules/icons/labels/LabelGooglePlay.vue +48 -0
  93. package/src/modules/landing/components/sections/MobileApp.vue +125 -0
  94. package/src/modules/landing/landing.client.js +7 -0
  95. package/src/modules/organizations/components/blocks/CardOrganization.vue +3 -1
  96. package/dist/Breadcrumbs.vue_vue_type_style_index_0_lang-0216f2b0.js +0 -7
  97. package/dist/Breadcrumbs.vue_vue_type_style_index_0_lang-0cb41a82.js +0 -1
  98. package/dist/Breadcrumbs.vue_vue_type_style_index_0_lang-15e71ec4.js +0 -1
  99. package/dist/Breadcrumbs.vue_vue_type_style_index_0_lang-2809e848.mjs +0 -219
  100. package/dist/Breadcrumbs.vue_vue_type_style_index_0_lang-2af7f63b.mjs +0 -80
  101. package/dist/Breadcrumbs.vue_vue_type_style_index_0_lang-300fcb55.js +0 -1
  102. package/dist/Breadcrumbs.vue_vue_type_style_index_0_lang-451d2614.mjs +0 -80
  103. package/dist/Breadcrumbs.vue_vue_type_style_index_0_lang-474eb4c2.js +0 -1
  104. package/dist/Breadcrumbs.vue_vue_type_style_index_0_lang-5ea8b4fa.js +0 -1
  105. package/dist/Breadcrumbs.vue_vue_type_style_index_0_lang-628f013e.mjs +0 -138
  106. package/dist/Breadcrumbs.vue_vue_type_style_index_0_lang-85119a4e.js +0 -1
  107. package/dist/Breadcrumbs.vue_vue_type_style_index_0_lang-8cb3c120.mjs +0 -185
  108. package/dist/Breadcrumbs.vue_vue_type_style_index_0_lang-a477dfc6.mjs +0 -138
  109. package/dist/Breadcrumbs.vue_vue_type_style_index_0_lang-c6f3a0f0.js +0 -1
  110. package/dist/Breadcrumbs.vue_vue_type_style_index_0_lang-cdbafd07.mjs +0 -1944
  111. package/dist/Breadcrumbs.vue_vue_type_style_index_0_lang-d777ad17.mjs +0 -80
  112. package/dist/Breadcrumbs.vue_vue_type_style_index_0_lang-dd037bbf.js +0 -1
  113. package/dist/Breadcrumbs.vue_vue_type_style_index_0_lang-e133a3c6.mjs +0 -80
  114. package/dist/ButtonFollow-001c4a65.mjs +0 -130
  115. package/dist/ButtonFollow-0d83a04a.mjs +0 -130
  116. package/dist/ButtonFollow-1aca37e0.mjs +0 -130
  117. package/dist/ButtonFollow-1b655344.js +0 -1
  118. package/dist/ButtonFollow-2ce169ca.js +0 -1
  119. package/dist/ButtonFollow-48043cc7.js +0 -1
  120. package/dist/ButtonFollow-6bbf3e24.mjs +0 -130
  121. package/dist/ButtonFollow-6cd2efa2.mjs +0 -130
  122. package/dist/ButtonFollow-b29bd420.mjs +0 -130
  123. package/dist/ButtonFollow-c4680999.js +0 -1
  124. package/dist/ButtonFollow-c9484003.mjs +0 -130
  125. package/dist/ButtonFollow-d983e174.js +0 -1
  126. package/dist/ButtonFollow-f630623a.js +0 -1
  127. package/dist/ButtonFollow-f9c5dc7a.js +0 -1
  128. package/dist/CardHeader-2d7e5d49.mjs +0 -76
  129. package/dist/CardHeader-2ef6618e.mjs +0 -96
  130. package/dist/CardHeader-377cfc4b.js +0 -1
  131. package/dist/CardHeader-39f75e85.mjs +0 -76
  132. package/dist/CardHeader-88de7b20.mjs +0 -76
  133. package/dist/CardHeader-925a972b.js +0 -1
  134. package/dist/CardHeader-ce5a1a75.mjs +0 -96
  135. package/dist/CardHeader-ddf82318.js +0 -1
  136. package/dist/CardHeader-dff9c71a.js +0 -1
  137. package/dist/CardHeader-e15eb618.js +0 -1
  138. package/dist/CardHeader-e361dada.mjs +0 -96
  139. package/dist/CardHeader-e517c801.mjs +0 -76
  140. package/dist/CardOrganization-0291683b.js +0 -1
  141. package/dist/CardOrganization-1384ff9a.mjs +0 -320
  142. package/dist/CardOrganization-21de52b3.js +0 -1
  143. package/dist/CardOrganization-3c42e14f.mjs +0 -320
  144. package/dist/CardOrganization-4859370e.mjs +0 -320
  145. package/dist/CardOrganization-51309400.js +0 -1
  146. package/dist/CardOrganization-58b54995.js +0 -1
  147. package/dist/CardOrganization-91e79698.mjs +0 -320
  148. package/dist/CardOrganization-9841dbe0.js +0 -1
  149. package/dist/CardOrganization-a05f3a19.js +0 -1
  150. package/dist/CardOrganization-a75b523d.mjs +0 -63
  151. package/dist/CardOrganization-bacc2ef6.mjs +0 -202
  152. package/dist/CardOrganization-d462e158.mjs +0 -320
  153. package/dist/CardOrganization-ee5c34ab.js +0 -1
  154. package/dist/CardOrganization-f70bd169.mjs +0 -202
  155. package/dist/CardOrganization-ffa585a7.js +0 -1
  156. package/dist/Comments-1aec0e5e.js +0 -1
  157. package/dist/Comments-5ed669ea.mjs +0 -74
  158. package/dist/Comments-63f154a6.js +0 -9
  159. package/dist/Comments-641516f8.mjs +0 -76
  160. package/dist/Comments-646c73ee.js +0 -1
  161. package/dist/Comments-6ff58c26.js +0 -1
  162. package/dist/Comments-7c4f2715.js +0 -1
  163. package/dist/Comments-81feeb4a.mjs +0 -76
  164. package/dist/Comments-9427a0eb.mjs +0 -76
  165. package/dist/Comments-b5821190.mjs +0 -76
  166. package/dist/Comments-b620bae6.js +0 -1
  167. package/dist/Comments-b6e32958.js +0 -1
  168. package/dist/Comments-c092550f.mjs +0 -76
  169. package/dist/Comments-c5afa4d6.mjs +0 -459
  170. package/dist/Comments-d2a8fd0f.mjs +0 -76
  171. package/dist/DepartmentEdit-305a0f5d.mjs +0 -374
  172. package/dist/DepartmentEdit-6abd59e1.js +0 -1
  173. package/dist/DepartmentEdit-9e6fe007.mjs +0 -374
  174. package/dist/DepartmentEdit-d98c2239.js +0 -1
  175. package/dist/EditProductImages-04ec4326.js +0 -1
  176. package/dist/EditProductImages-11510b66.js +0 -1
  177. package/dist/EditProductImages-1d4b44a9.mjs +0 -236
  178. package/dist/EditProductImages-4246db75.mjs +0 -236
  179. package/dist/EditProductImages-42f9f665.mjs +0 -236
  180. package/dist/EditProductImages-61ff4321.mjs +0 -236
  181. package/dist/EditProductImages-98d13eb0.js +0 -1
  182. package/dist/EditProductImages-9f25f39f.mjs +0 -236
  183. package/dist/EditProductImages-b1b05c03.js +0 -1
  184. package/dist/EditProductImages-c7daafb2.mjs +0 -236
  185. package/dist/EditProductImages-cf67d31b.js +0 -1
  186. package/dist/EditProductImages-cfb1856e.mjs +0 -237
  187. package/dist/EditProductImages-d9228ad0.js +0 -1
  188. package/dist/EditProductImages-ec630dbf.js +0 -1
  189. package/dist/EditProductImages-f983f473.mjs +0 -236
  190. package/dist/EmptyState-1214f70b.mjs +0 -36
  191. package/dist/EmptyState-23c13029.js +0 -1
  192. package/dist/Feed-0b549674.js +0 -1
  193. package/dist/Feed-193dd1df.mjs +0 -342
  194. package/dist/Feed-26bf6bef.js +0 -1
  195. package/dist/Feed-2f9a1922.mjs +0 -334
  196. package/dist/Feed-31523f38.js +0 -1
  197. package/dist/Feed-4b28adc5.mjs +0 -423
  198. package/dist/Feed-51e4e232.js +0 -1
  199. package/dist/Feed-531de2d5.js +0 -1
  200. package/dist/Feed-55c5907a.js +0 -1
  201. package/dist/Feed-5c9e4e74.mjs +0 -340
  202. package/dist/Feed-5d8d5c21.js +0 -1
  203. package/dist/Feed-706cd7c0.mjs +0 -383
  204. package/dist/Feed-8009e4f8.js +0 -1
  205. package/dist/Feed-81d5802e.mjs +0 -355
  206. package/dist/Feed-83ef5666.js +0 -1
  207. package/dist/Feed-8fd41524.js +0 -1
  208. package/dist/Feed-91eff3af.mjs +0 -393
  209. package/dist/Feed-926cf4f3.mjs +0 -355
  210. package/dist/Feed-932d976d.js +0 -1
  211. package/dist/Feed-962e009b.js +0 -1
  212. package/dist/Feed-a31c43c2.mjs +0 -423
  213. package/dist/Feed-a82ae26b.js +0 -1
  214. package/dist/Feed-aa3bd30a.js +0 -1
  215. package/dist/Feed-b8eeb4e7.js +0 -1
  216. package/dist/Feed-bd7b1a45.js +0 -1
  217. package/dist/Feed-c0007a83.mjs +0 -383
  218. package/dist/Feed-c93012c7.mjs +0 -346
  219. package/dist/Feed-d2e5978c.mjs +0 -342
  220. package/dist/Feed-d4220f74.mjs +0 -340
  221. package/dist/Feed-d8e33aed.mjs +0 -397
  222. package/dist/Feed-dc8b66bf.mjs +0 -367
  223. package/dist/Feed-df5bbb3c.mjs +0 -346
  224. package/dist/Feed-e5fb4972.mjs +0 -397
  225. package/dist/Feed-e8fb21ed.js +0 -1
  226. package/dist/Feed-e91b36ea.mjs +0 -390
  227. package/dist/Feed-ecf37814.mjs +0 -367
  228. package/dist/Feed-eeb63363.js +0 -1
  229. package/dist/Feed-f4cad6c3.js +0 -1
  230. package/dist/Field-740d5a17.mjs +0 -60
  231. package/dist/Field-a1770ccf.js +0 -1
  232. package/dist/Field-ada86df2.js +0 -1
  233. package/dist/Field-e839d9ca.mjs +0 -60
  234. package/dist/Footer.vue_vue_type_style_index_0_lang-0ea8fbf8.js +0 -1
  235. package/dist/Footer.vue_vue_type_style_index_0_lang-2f7f46f1.js +0 -7
  236. package/dist/Footer.vue_vue_type_style_index_0_lang-39d2aa14.mjs +0 -37
  237. package/dist/Footer.vue_vue_type_style_index_0_lang-4ed993c7.mjs +0 -1
  238. package/dist/HeaderBlogpost-59dd9a6b.mjs +0 -93
  239. package/dist/HeaderBlogpost-8ec43cd0.js +0 -1
  240. package/dist/IconEdit-3028a3b7.js +0 -1
  241. package/dist/IconEdit-736c89be.js +0 -1
  242. package/dist/IconEdit-e9fd4c6c.mjs +0 -21
  243. package/dist/Image-6c7584f5.mjs +0 -477
  244. package/dist/Image-9a870c88.js +0 -9
  245. package/dist/PlaceholderUserpic-10fd9026.js +0 -1
  246. package/dist/PlaceholderUserpic-1a6cf257.mjs +0 -28
  247. package/dist/PlaceholderUserpic-3bf126ee.js +0 -1
  248. package/dist/PlaceholderUserpic-3c1b9f7b.mjs +0 -28
  249. package/dist/PlaceholderUserpic-43e5ab23.js +0 -1
  250. package/dist/PlaceholderUserpic-4fe04ec9.mjs +0 -28
  251. package/dist/PlaceholderUserpic-52966e09.js +0 -1
  252. package/dist/PlaceholderUserpic-9085715c.mjs +0 -28
  253. package/dist/PlaceholderUserpic-995da0fc.mjs +0 -28
  254. package/dist/PlaceholderUserpic-b27c51f7.js +0 -1
  255. package/dist/PlaceholderUserpic-d64d6dd5.js +0 -1
  256. package/dist/PlaceholderUserpic-e44ccca8.mjs +0 -28
  257. package/dist/PlaceholderUserpic-eb9820ce.mjs +0 -28
  258. package/dist/PlaceholderUserpic-fe8bd48d.js +0 -1
  259. package/dist/Popup-0c791801.mjs +0 -76
  260. package/dist/Popup-70f6a8c0.mjs +0 -76
  261. package/dist/Popup-7c331e1c.js +0 -1
  262. package/dist/Popup-82fb2c8a.mjs +0 -76
  263. package/dist/Popup-9479e39a.js +0 -1
  264. package/dist/Popup.vue_vue_type_style_index_0_lang-0cbf3253.js +0 -1
  265. package/dist/Popup.vue_vue_type_style_index_0_lang-22048704.mjs +0 -280
  266. package/dist/Popup.vue_vue_type_style_index_0_lang-28b9af00.mjs +0 -280
  267. package/dist/Popup.vue_vue_type_style_index_0_lang-4f16907f.mjs +0 -924
  268. package/dist/Popup.vue_vue_type_style_index_0_lang-5b5f9cd7.js +0 -5
  269. package/dist/Popup.vue_vue_type_style_index_0_lang-769e7cf5.js +0 -5
  270. package/dist/Popup.vue_vue_type_style_index_0_lang-8981c189.mjs +0 -280
  271. package/dist/Popup.vue_vue_type_style_index_0_lang-931f265a.js +0 -1
  272. package/dist/Popup.vue_vue_type_style_index_0_lang-a191c190.js +0 -1
  273. package/dist/Popup.vue_vue_type_style_index_0_lang-a9351a87.js +0 -1
  274. package/dist/Popup.vue_vue_type_style_index_0_lang-d05075a7.mjs +0 -280
  275. package/dist/Popup.vue_vue_type_style_index_0_lang-f2c0cfb5.mjs +0 -924
  276. package/dist/Product-0195429b.js +0 -1
  277. package/dist/Product-035252c0.js +0 -1
  278. package/dist/Product-05cc1386.mjs +0 -687
  279. package/dist/Product-151f4473.mjs +0 -904
  280. package/dist/Product-1724d88d.mjs +0 -837
  281. package/dist/Product-19cc3654.js +0 -7
  282. package/dist/Product-2f3d592f.mjs +0 -837
  283. package/dist/Product-2fbf9d99.js +0 -7
  284. package/dist/Product-334f8bf4.mjs +0 -904
  285. package/dist/Product-35904a9b.js +0 -7
  286. package/dist/Product-3c64a352.mjs +0 -904
  287. package/dist/Product-45a6e7bd.mjs +0 -687
  288. package/dist/Product-4a5f985d.mjs +0 -837
  289. package/dist/Product-60e14832.mjs +0 -904
  290. package/dist/Product-67efba5c.js +0 -7
  291. package/dist/Product-6c37ef35.js +0 -7
  292. package/dist/Product-7087b358.mjs +0 -837
  293. package/dist/Product-96195a8e.js +0 -7
  294. package/dist/Product-a94d8b65.js +0 -7
  295. package/dist/Product-b440df7f.js +0 -7
  296. package/dist/Product-c3a77d07.mjs +0 -837
  297. package/dist/Product-c8441f02.js +0 -7
  298. package/dist/Product-cf9cfe65.mjs +0 -904
  299. package/dist/Product-df622dc0.mjs +0 -837
  300. package/dist/Product-eb2b6725.js +0 -7
  301. package/dist/Product-f4dbd969.mjs +0 -837
  302. package/dist/Product-f819b17e.js +0 -7
  303. package/dist/Product-fb63c7cd.js +0 -7
  304. package/dist/ProductEdit-04760699.js +0 -1
  305. package/dist/ProductEdit-177c1f16.mjs +0 -113
  306. package/dist/ProductEdit-1e990a92.js +0 -1
  307. package/dist/ProductEdit-20709821.mjs +0 -349
  308. package/dist/ProductEdit-20bda9f1.mjs +0 -113
  309. package/dist/ProductEdit-39adf62f.mjs +0 -113
  310. package/dist/ProductEdit-4d6f3720.js +0 -1
  311. package/dist/ProductEdit-57484f1e.mjs +0 -349
  312. package/dist/ProductEdit-5e419719.mjs +0 -113
  313. package/dist/ProductEdit-5f9a55b6.mjs +0 -113
  314. package/dist/ProductEdit-765f4780.js +0 -1
  315. package/dist/ProductEdit-9e579dd7.mjs +0 -113
  316. package/dist/ProductEdit-a81d13b9.js +0 -1
  317. package/dist/ProductEdit-b98883d8.js +0 -1
  318. package/dist/ProductEdit-c3c6341d.js +0 -1
  319. package/dist/ProductEdit-c5067942.mjs +0 -113
  320. package/dist/ProductEdit-ca271287.js +0 -1
  321. package/dist/ProductEdit-e2d47403.mjs +0 -113
  322. package/dist/ProductEdit-ef301baa.js +0 -1
  323. package/dist/ProductEdit-fca68ff9.js +0 -1
  324. package/dist/ProfileBlogposts-00424109.js +0 -1
  325. package/dist/ProfileBlogposts-03658199.js +0 -1
  326. package/dist/ProfileBlogposts-11bfd9dc.js +0 -1
  327. package/dist/ProfileBlogposts-317742ee.mjs +0 -56
  328. package/dist/ProfileBlogposts-4341ca89.mjs +0 -46
  329. package/dist/ProfileBlogposts-55037a06.mjs +0 -56
  330. package/dist/ProfileBlogposts-65a7a5e0.mjs +0 -56
  331. package/dist/ProfileBlogposts-6704a38c.js +0 -1
  332. package/dist/ProfileBlogposts-79d5c858.mjs +0 -63
  333. package/dist/ProfileBlogposts-892fdcf8.mjs +0 -56
  334. package/dist/ProfileBlogposts-dc11090e.js +0 -1
  335. package/dist/ProfileBlogposts-e55e30ae.js +0 -1
  336. package/dist/ProfileBlogposts-e9a7381e.js +0 -1
  337. package/dist/ProfileBlogposts-eca9916c.js +0 -1
  338. package/dist/ProfileBlogposts-fb014bc6.mjs +0 -63
  339. package/dist/ProfileBlogposts-ffa10f34.mjs +0 -63
  340. package/dist/ProfileComments-0396b55c.js +0 -1
  341. package/dist/ProfileComments-08d1670d.mjs +0 -43
  342. package/dist/ProfileComments-175e42da.js +0 -1
  343. package/dist/ProfileComments-2e2a3a7a.mjs +0 -42
  344. package/dist/ProfileComments-34eb560b.mjs +0 -43
  345. package/dist/ProfileComments-48f3d4bc.mjs +0 -43
  346. package/dist/ProfileComments-58094a50.mjs +0 -43
  347. package/dist/ProfileComments-5884d09f.mjs +0 -43
  348. package/dist/ProfileComments-66651060.mjs +0 -43
  349. package/dist/ProfileComments-677731b3.js +0 -1
  350. package/dist/ProfileComments-730c2f73.js +0 -1
  351. package/dist/ProfileComments-82791682.js +0 -1
  352. package/dist/ProfileComments-b6a688cd.js +0 -1
  353. package/dist/ProfileComments-b919f021.js +0 -1
  354. package/dist/ProfileComments-d3966a83.mjs +0 -43
  355. package/dist/ProfileComments-f5f260ec.js +0 -1
  356. package/dist/ProfileEvents-05485e20.js +0 -1
  357. package/dist/ProfileEvents-138ae25e.mjs +0 -55
  358. package/dist/ProfileEvents-1cfe6858.mjs +0 -55
  359. package/dist/ProfileEvents-20695376.mjs +0 -55
  360. package/dist/ProfileEvents-20e9da99.mjs +0 -46
  361. package/dist/ProfileEvents-45c4b137.mjs +0 -55
  362. package/dist/ProfileEvents-4f2a5f00.js +0 -1
  363. package/dist/ProfileEvents-5d206e3d.mjs +0 -55
  364. package/dist/ProfileEvents-676239cc.js +0 -1
  365. package/dist/ProfileEvents-6e6c253b.mjs +0 -46
  366. package/dist/ProfileEvents-858e9471.mjs +0 -55
  367. package/dist/ProfileEvents-85a88674.mjs +0 -55
  368. package/dist/ProfileEvents-89def76b.js +0 -1
  369. package/dist/ProfileEvents-94d7b407.js +0 -1
  370. package/dist/ProfileEvents-b057d374.js +0 -1
  371. package/dist/ProfileEvents-b5431cd6.js +0 -1
  372. package/dist/ProfileEvents-b8a76b6e.js +0 -1
  373. package/dist/ProfileEvents-c1e04ac1.mjs +0 -46
  374. package/dist/ProfileEvents-cd75d80b.js +0 -1
  375. package/dist/ProfileEvents-cebebb17.js +0 -1
  376. package/dist/ProfileEvents-d53e7729.mjs +0 -46
  377. package/dist/ProfileEvents-d8e16509.js +0 -1
  378. package/dist/ProfileEvents-ddaf8fba.mjs +0 -55
  379. package/dist/ProfileEvents-ffe0e6f3.js +0 -1
  380. package/dist/ProfileLikes-0668b718.js +0 -1
  381. package/dist/ProfileLikes-2f3a4488.js +0 -1
  382. package/dist/ProfileLikes-405c2636.js +0 -1
  383. package/dist/ProfileLikes-4242bca5.mjs +0 -43
  384. package/dist/ProfileLikes-4a57f637.mjs +0 -43
  385. package/dist/ProfileLikes-503712ec.mjs +0 -43
  386. package/dist/ProfileLikes-7f965631.mjs +0 -43
  387. package/dist/ProfileLikes-854276f0.js +0 -1
  388. package/dist/ProfileLikes-8ccf6815.js +0 -1
  389. package/dist/ProfileLikes-a78900c0.js +0 -1
  390. package/dist/ProfileLikes-b3b1350a.js +0 -1
  391. package/dist/ProfileLikes-b5ac7f48.mjs +0 -43
  392. package/dist/ProfileLikes-c32c420b.mjs +0 -43
  393. package/dist/ProfileLikes-c4c87300.mjs +0 -42
  394. package/dist/ProfileLikes-c899e3df.js +0 -1
  395. package/dist/ProfileLikes-d978b084.mjs +0 -43
  396. package/dist/ProfileOrganizations-04cc9d6d.mjs +0 -198
  397. package/dist/ProfileOrganizations-0b76e38f.js +0 -1
  398. package/dist/ProfileOrganizations-0e202612.js +0 -1
  399. package/dist/ProfileOrganizations-13748b09.js +0 -1
  400. package/dist/ProfileOrganizations-1990d0cc.js +0 -1
  401. package/dist/ProfileOrganizations-2633e9e4.mjs +0 -198
  402. package/dist/ProfileOrganizations-32ab1e30.mjs +0 -211
  403. package/dist/ProfileOrganizations-3f305f4e.mjs +0 -210
  404. package/dist/ProfileOrganizations-46b6e015.mjs +0 -202
  405. package/dist/ProfileOrganizations-4ffaf01c.js +0 -1
  406. package/dist/ProfileOrganizations-50fce34e.js +0 -1
  407. package/dist/ProfileOrganizations-567e87e1.mjs +0 -210
  408. package/dist/ProfileOrganizations-5abfcc59.js +0 -1
  409. package/dist/ProfileOrganizations-5d681498.mjs +0 -202
  410. package/dist/ProfileOrganizations-6d3a43e4.js +0 -1
  411. package/dist/ProfileOrganizations-704f628b.js +0 -1
  412. package/dist/ProfileOrganizations-b83f6720.js +0 -1
  413. package/dist/ProfileOrganizations-c58a4fb9.js +0 -1
  414. package/dist/ProfileOrganizations-c7688210.js +0 -1
  415. package/dist/ProfileOrganizations-ca9a95a1.js +0 -1
  416. package/dist/ProfileOrganizations-dbc8a6cd.mjs +0 -214
  417. package/dist/ProfileOrganizations-dc7210f1.mjs +0 -214
  418. package/dist/ProfileOrganizations-e4fd2b05.mjs +0 -202
  419. package/dist/ProfileOrganizations-f6e00809.mjs +0 -214
  420. package/dist/ProfileOrganizations-feef34df.mjs +0 -112
  421. package/dist/Publics-07d5bbc4.js +0 -1
  422. package/dist/Publics-122d9fc7.mjs +0 -1078
  423. package/dist/Publics-13c48a23.mjs +0 -47
  424. package/dist/Publics-17009745.mjs +0 -1926
  425. package/dist/Publics-213e0e9e.mjs +0 -44
  426. package/dist/Publics-21f24533.mjs +0 -44
  427. package/dist/Publics-3f277c17.js +0 -1
  428. package/dist/Publics-450a6715.mjs +0 -1926
  429. package/dist/Publics-49dbeafc.js +0 -1
  430. package/dist/Publics-4e1c14fc.js +0 -1
  431. package/dist/Publics-501c9f27.js +0 -1
  432. package/dist/Publics-54134615.mjs +0 -47
  433. package/dist/Publics-889c25fc.js +0 -1
  434. package/dist/Publics-8bea4201.mjs +0 -44
  435. package/dist/Publics-8d94ee66.js +0 -1
  436. package/dist/Publics-9ebffff1.mjs +0 -122
  437. package/dist/Publics-a030da8f.js +0 -1
  438. package/dist/Publics-aca585c3.js +0 -1
  439. package/dist/Publics-b0fad2b0.mjs +0 -1926
  440. package/dist/Publics-becb1486.js +0 -1
  441. package/dist/Publics-c6f6b824.js +0 -1
  442. package/dist/Publics-c9d5aa74.js +0 -1
  443. package/dist/Publics-fbc8d2db.mjs +0 -1926
  444. package/dist/Select.vue_vue_type_style_index_0_scoped_a78dbba1_lang-0ea8fbf8.js +0 -1
  445. package/dist/Select.vue_vue_type_style_index_0_scoped_a78dbba1_lang-4ed993c7.mjs +0 -1
  446. package/dist/Tab-054b61f7.mjs +0 -46
  447. package/dist/Tab-1ca0fe66.js +0 -1
  448. package/dist/Tab-58cd105f.mjs +0 -46
  449. package/dist/Tab-b0a7ac11.js +0 -1
  450. package/dist/Tab-c67fbf51.mjs +0 -46
  451. package/dist/Tab-f04c185d.js +0 -1
  452. package/dist/Tab-fcb73759.mjs +0 -46
  453. package/dist/Tab.vue_vue_type_style_index_0_lang-0ea8fbf8.js +0 -1
  454. package/dist/Tab.vue_vue_type_style_index_0_lang-4ed993c7.mjs +0 -1
  455. package/dist/Unit.vue_vue_type_style_index_0_scoped_d69a370a_lang-0b4edb09.js +0 -1
  456. package/dist/Unit.vue_vue_type_style_index_0_scoped_d69a370a_lang-5531689e.mjs +0 -123
  457. package/dist/UploadImage-1b8c18c4.mjs +0 -99
  458. package/dist/UploadImage-34bc4a3f.mjs +0 -99
  459. package/dist/UploadImage-441e8526.js +0 -1
  460. package/dist/UploadImage-4e91bd99.js +0 -1
  461. package/dist/UploadImage-6e312c46.mjs +0 -83
  462. package/dist/UploadImage-74280ea3.mjs +0 -99
  463. package/dist/UploadImage-75b1a18a.js +0 -1
  464. package/dist/UploadImage-7c502f96.js +0 -1
  465. package/dist/UploadImage-96408782.mjs +0 -99
  466. package/dist/UploadImage-9abb7116.js +0 -1
  467. package/dist/UploadImage-b1acc48f.mjs +0 -99
  468. package/dist/UploadImage-c81c3b76.js +0 -1
  469. package/dist/UploadImage-cd6de241.js +0 -1
  470. package/dist/UploadImage-d1dbc280.mjs +0 -99
  471. package/dist/UploadImage-ff8f9a0c.mjs +0 -83
  472. package/dist/auth-07c01b19.js +0 -8
  473. package/dist/auth-18f80fef.mjs +0 -1501
  474. package/dist/auth-2bc18d1e.js +0 -8
  475. package/dist/auth-35ef1791.mjs +0 -1502
  476. package/dist/auth-50bd4ebb.js +0 -8
  477. package/dist/auth-5aa8e90c.js +0 -8
  478. package/dist/auth-708eebcb.mjs +0 -1446
  479. package/dist/auth-78fd9408.js +0 -8
  480. package/dist/auth-7dff19e4.js +0 -8
  481. package/dist/auth-84680727.mjs +0 -1501
  482. package/dist/auth-ab40831d.js +0 -8
  483. package/dist/auth-d102dac0.mjs +0 -1501
  484. package/dist/auth-f81f3598.mjs +0 -1439
  485. package/dist/auth-fefd15a3.mjs +0 -1503
  486. package/dist/auth.validation-1fb0cb4f.js +0 -1
  487. package/dist/auth.validation-29113f37.mjs +0 -20
  488. package/dist/auth.validation-2d33e8c7.mjs +0 -20
  489. package/dist/auth.validation-2e8ee994.js +0 -1
  490. package/dist/auth.validation-4a617c0b.mjs +0 -20
  491. package/dist/auth.validation-6923140f.js +0 -1
  492. package/dist/auth.validation-69488f55.mjs +0 -20
  493. package/dist/auth.validation-6bccabd6.mjs +0 -20
  494. package/dist/auth.validation-78a90fed.js +0 -1
  495. package/dist/auth.validation-9cfd985b.mjs +0 -20
  496. package/dist/auth.validation-a18510e8.js +0 -1
  497. package/dist/auth.validation-b644ee65.js +0 -1
  498. package/dist/auth.validation-f23a7238.mjs +0 -21
  499. package/dist/categories-75b7d14b.js +0 -1
  500. package/dist/categories-86b2d45b.mjs +0 -225
  501. package/dist/categories-d669f3af.mjs +0 -225
  502. package/dist/components/FieldPhone/<script>.vue.d.ts +0 -547
  503. package/dist/globals-d7a54bb4.js +0 -1
  504. package/dist/globals-f538c0ef.mjs +0 -87
  505. package/dist/inputs.validation-498d8ec9.js +0 -1
  506. package/dist/inputs.validation-5732152a.mjs +0 -93
  507. package/dist/inputs.validation-6960f71b.mjs +0 -93
  508. package/dist/inputs.validation-c473ebe7.mjs +0 -93
  509. package/dist/inputs.validation-c53e01a2.js +0 -1
  510. package/dist/modules/community/components/blocks/CardOrganization.vue.d.ts +0 -8
  511. package/dist/modules/community/components/elements/Bullets.vue.d.ts +0 -15
  512. package/dist/modules/community/components/elements/Caption.vue.d.ts +0 -15
  513. package/dist/modules/community/components/elements/H2.vue.d.ts +0 -16
  514. package/dist/modules/community/components/elements/Image.vue.d.ts +0 -8
  515. package/dist/modules/community/components/elements/ImageUpload.vue.d.ts +0 -9
  516. package/dist/modules/community/components/elements/Textarea.vue.d.ts +0 -16
  517. package/dist/modules/community/components/pages/BlogPost.old.vue.d.ts +0 -2
  518. package/dist/modules/community/components/sections/Publics.vue.d.ts +0 -2
  519. package/dist/modules/events/components/layouts/Events.vue.d.ts +0 -2
  520. package/dist/modules/organizations/components/blocks/CardOrganizationSocial.vue.d.ts +0 -8
  521. package/dist/organizations-0e9ff7ca.mjs +0 -319
  522. package/dist/organizations-1b4c84ee.mjs +0 -121
  523. package/dist/organizations-35fe2db4.js +0 -1
  524. package/dist/organizations-4d74e13b.js +0 -1
  525. package/dist/organizations-5f9c7fbd.js +0 -1
  526. package/dist/organizations-6c1450fa.mjs +0 -153
  527. package/dist/organizations-773c328c.mjs +0 -319
  528. package/dist/organizations-a9b86de7.mjs +0 -319
  529. package/dist/organizations-af43bda4.js +0 -1
  530. package/dist/organizations-b3df0859.js +0 -1
  531. package/dist/organizations-c77ea9d0.js +0 -1
  532. package/dist/organizations-d4307861.mjs +0 -319
  533. package/dist/organizations-dd07ba2c.js +0 -1
  534. package/dist/organizations-fb1a2214.mjs +0 -319
  535. package/dist/organizations.client-040ec107.js +0 -3
  536. package/dist/organizations.client-253c8068.mjs +0 -3179
  537. package/dist/organizations.client-3b4eb66e.mjs +0 -2898
  538. package/dist/organizations.client-4e29c957.js +0 -3
  539. package/dist/organizations.client-686845be.mjs +0 -3179
  540. package/dist/organizations.client-71c9abde.mjs +0 -2898
  541. package/dist/organizations.client-99bfc474.js +0 -3
  542. package/dist/organizations.client-ba59ed4e.js +0 -3
  543. package/dist/organizations.client-c60d7659.js +0 -3
  544. package/src/modules/community/controllers/blog.old.controller.js +0 -207
@@ -1,1926 +0,0 @@
1
- import { withDirectives as w, openBlock as u, createElementBlock as d, vModelText as W, createCommentVNode as f, resolveComponent as Y, normalizeClass as y, normalizeStyle as O, createElementVNode as h, Fragment as V, renderList as E, renderSlot as p, toDisplayString as v, createBlock as F, vShow as S, mergeProps as Q, withKeys as c, ref as A, computed as K, createVNode as I, unref as T, withModifiers as g, Transition as N, withCtx as R, createTextVNode as C, onMounted as X } from "vue";
2
- import { g as Z, _ as P, s as H } from "./auth-35ef1791.mjs";
3
- import { a as _, _ as x } from "./CardOrganization-91e79698.mjs";
4
- import { _ as ee } from "./EmptyState-34d85f10.mjs";
5
- import { m as te } from "./ButtonFollow-728aab73.mjs";
6
- var se = function e(t, s) {
7
- if (t === s)
8
- return !0;
9
- if (t && s && typeof t == "object" && typeof s == "object") {
10
- if (t.constructor !== s.constructor)
11
- return !1;
12
- var l, a, r;
13
- if (Array.isArray(t)) {
14
- if (l = t.length, l != s.length)
15
- return !1;
16
- for (a = l; a-- !== 0; )
17
- if (!e(t[a], s[a]))
18
- return !1;
19
- return !0;
20
- }
21
- if (t.constructor === RegExp)
22
- return t.source === s.source && t.flags === s.flags;
23
- if (t.valueOf !== Object.prototype.valueOf)
24
- return t.valueOf() === s.valueOf();
25
- if (t.toString !== Object.prototype.toString)
26
- return t.toString() === s.toString();
27
- if (r = Object.keys(t), l = r.length, l !== Object.keys(s).length)
28
- return !1;
29
- for (a = l; a-- !== 0; )
30
- if (!Object.prototype.hasOwnProperty.call(s, r[a]))
31
- return !1;
32
- for (a = l; a-- !== 0; ) {
33
- var i = r[a];
34
- if (!e(t[i], s[i]))
35
- return !1;
36
- }
37
- return !0;
38
- }
39
- return t !== t && s !== s;
40
- };
41
- const ie = /* @__PURE__ */ Z(se), le = (e, t) => t.filter((s) => {
42
- const { text: l } = e;
43
- if (typeof s.rule == "string")
44
- return !new RegExp(s.rule).test(l);
45
- if (s.rule instanceof RegExp)
46
- return !s.rule.test(l);
47
- if ({}.toString.call(s.rule) === "[object Function]")
48
- return s.rule(e);
49
- }).map((s) => s.classes), k = (e) => JSON.parse(JSON.stringify(e)), ae = (e, t) => {
50
- let s = 0;
51
- for (; s < e.length; ) {
52
- if (t(e[s], s, e))
53
- return s;
54
- s++;
55
- }
56
- return -1;
57
- }, q = (e, t, s = [], l) => {
58
- e.text === void 0 && (e = { text: e });
59
- const a = le(e, s), r = ae(t, (m) => m === e), i = k(t), n = r !== -1 ? i.splice(r, 1)[0] : k(e);
60
- return (l ? l(i, n) : i.map((m) => m.text).indexOf(n.text) !== -1) && a.push("ti-duplicate"), a.length === 0 ? a.push("ti-valid") : a.push("ti-invalid"), a;
61
- }, L = (e, ...t) => {
62
- e.text === void 0 && (e = { text: e });
63
- const s = k(e);
64
- return s.tiClasses = q(e, ...t), s;
65
- }, ne = (e, ...t) => e.map((s) => L(s, e, ...t));
66
- const re = {
67
- name: "TagInput",
68
- props: {
69
- scope: {
70
- type: Object
71
- }
72
- }
73
- }, oe = ["maxlength"];
74
- function ue(e, t, s, l, a, r) {
75
- return s.scope.edit ? w((u(), d("input", {
76
- key: 0,
77
- "onUpdate:modelValue": t[0] || (t[0] = (i) => s.scope.tag.text = i),
78
- maxlength: s.scope.maxlength,
79
- type: "text",
80
- class: "ti-tag-input",
81
- size: "1",
82
- onInput: t[1] || (t[1] = (i) => s.scope.validateTag(s.scope.index, i)),
83
- onBlur: t[2] || (t[2] = (i) => s.scope.performCancelEdit(s.scope.index)),
84
- onKeydown: t[3] || (t[3] = (i) => s.scope.performSaveEdit(s.scope.index, i))
85
- }, null, 40, oe)), [
86
- [W, s.scope.tag.text]
87
- ]) : f("", !0);
88
- }
89
- const de = /* @__PURE__ */ P(re, [["render", ue], ["__scopeId", "data-v-a1f1c345"]]), G = (e) => !e.some((t) => {
90
- const s = !t.text;
91
- s && console.warn('Missing property "text"', t);
92
- let l = !1;
93
- return t.classes && (l = typeof t.classes != "string"), l && console.warn('Property "classes" must be type of string', t), s || l;
94
- }), j = (e) => !e.some((t) => {
95
- if (typeof t == "number") {
96
- const s = isFinite(t) && Math.floor(t) === t;
97
- return s || console.warn("Only numerics are allowed for this prop. Found:", t), !s;
98
- } else if (typeof t == "string") {
99
- const s = /\W|[a-z]|!\d/i.test(t);
100
- return s || console.warn("Only alpha strings are allowed for this prop. Found:", t), !s;
101
- } else
102
- return console.warn("Only numeric and string values are allowed. Found:", t), !1;
103
- }), he = {
104
- /**
105
- * @description Property to bind a model to the input.
106
- If the user changes the input value, the model updates, too.
107
- If the user presses enter with an valid input,
108
- a new tag is created with the value of this model.
109
- After creating the new tag, the model is cleared.
110
- * @property {props}
111
- * @required
112
- * @type {String}
113
- * @model
114
- * @default ''
115
- */
116
- modelValue: {
117
- type: String,
118
- default: "",
119
- required: !0
120
- },
121
- /**
122
- * @description Pass an array containing objects like in the example below.
123
- The properties 'style' and 'class' are optional. Of course it is possible to add custom
124
- properties to a tag object. vue-tags-input won't change the key and value.
125
- * @property {props}
126
- * @type {Array}
127
- * @sync
128
- * @default []
129
- * @example
130
- {
131
- &emsp;text: 'My tag value', &#47;* The visible text on display *&#47;
132
- &emsp;style: 'background-color: #ccc', &#47;* Adding inline styles is possible *&#47;
133
- &emsp;classes: 'custom-class another', &#47;* The value will be added as css classes *&#47;
134
- }
135
- */
136
- tags: {
137
- type: Array,
138
- default: () => [],
139
- validator: G
140
- },
141
- /**
142
- * @description Expects an array containing objects inside. The objects
143
- can have the same properties as a tag object.
144
- * @property {props}
145
- * @type {Array}
146
- * @default []
147
- */
148
- autocompleteItems: {
149
- type: Array,
150
- default: () => [],
151
- validator: G
152
- },
153
- /**
154
- * @description Defines whether a tag is editable after creation or not.
155
- * @property {props}
156
- * @type {Boolean}
157
- * @default false
158
- */
159
- allowEditTags: {
160
- type: Boolean,
161
- default: !1
162
- },
163
- /**
164
- * @description Defines if duplicate autocomplete items are filtered out from the view or not.
165
- * @property {props}
166
- * @type {Boolean}
167
- * @default true
168
- */
169
- autocompleteFilterDuplicates: {
170
- default: !0,
171
- type: Boolean
172
- },
173
- /**
174
- * @description If it's true, the user can add tags only via the autocomplete layer.
175
- * @property {props}
176
- * @type {Boolean}
177
- * @default false
178
- */
179
- addOnlyFromAutocomplete: {
180
- type: Boolean,
181
- default: !1
182
- },
183
- /**
184
- * @description The minimum character length which is required
185
- until the autocomplete layer is shown. If set to 0,
186
- then it'll be shown on focus.
187
- * @property {props}
188
- * @type {Number}
189
- * @default 1
190
- */
191
- autocompleteMinLength: {
192
- type: Number,
193
- default: 1
194
- },
195
- /**
196
- * @description If it's true, the autocomplete layer is always shown, regardless if
197
- an input or an autocomplete items exists.
198
- * @property {props}
199
- * @type {Boolean}
200
- * @default false
201
- */
202
- autocompleteAlwaysOpen: {
203
- type: Boolean,
204
- default: !1
205
- },
206
- /**
207
- * @description Property to disable vue-tags-input.
208
- * @property {props}
209
- * @type {Boolean}
210
- * @default false
211
- */
212
- disabled: {
213
- type: Boolean,
214
- default: !1
215
- },
216
- /**
217
- * @description The placeholder text which is shown in the input, when it's empty.
218
- * @property {props}
219
- * @type {String}
220
- * @default Add Tag
221
- */
222
- placeholder: {
223
- type: String,
224
- default: "Add Tag"
225
- },
226
- /**
227
- * @description Custom trigger key codes can be registrated. If the user presses one of these,
228
- a tag will be generated out of the input value. Can be either a numeric keyCode or the key
229
- as a string.
230
- * @property {props}
231
- * @type {Array}
232
- * @default [13]
233
- * @example add-on-key="[13, ':', ';']"
234
- */
235
- addOnKey: {
236
- type: Array,
237
- default: () => [13],
238
- validator: j
239
- },
240
- /**
241
- * @description Custom trigger key codes can be registrated. If the user edits a tag
242
- and presses one of these, the edited tag will be saved.
243
- Can be either a numeric keyCode or the key as a string.
244
- * @property {props}
245
- * @type {Array}
246
- * @default [13]
247
- * @example save-on-key="[13, ':', ';']"
248
- */
249
- saveOnKey: {
250
- type: Array,
251
- default: () => [13],
252
- validator: j
253
- },
254
- /**
255
- * @description The maximum amount the tags array is allowed to hold.
256
- * @property {props}
257
- * @type {Number}
258
- */
259
- maxTags: {
260
- type: Number
261
- },
262
- /**
263
- * @description The maximum amount of characters the input is allowed to hold.
264
- * @property {props}
265
- * @type {Number}
266
- */
267
- maxlength: {
268
- type: Number
269
- },
270
- /**
271
- * @description Pass an array containing objects like in the example below.
272
- The property 'classes' will be added as css classes, if the property 'rule' matches the text
273
- of a tag, an autocomplete item or the input. The property 'rule' can be type of
274
- RegExp or function. If the property 'disableAdd' is 'true', the item can't be added
275
- to the tags array, if the appropriated rule matches.
276
- * @property {props}
277
- * @type {Array}
278
- * @default []
279
- * @example
280
- {
281
- &ensp;classes: 'class', &#47;* css class *&#47;
282
- &ensp;rule: /^([^0-9]*)$/, &#47;* RegExp *&#47;
283
- }, {
284
- &ensp;classes: 'no-braces', &#47;* css class *&#47;
285
- &ensp;rule(text) { &#47;* function with text as param *&#47;
286
- &ensp;&ensp;return text.indexOf('{') !== -1 || text.indexOf('}') !== -1;
287
- &ensp;},
288
- &ensp;disableAdd: true, &#47;* if the rule matches, the item cannot be added *&#47;,
289
- },
290
- */
291
- validation: {
292
- type: Array,
293
- default: () => [],
294
- validator(e) {
295
- return !e.some((t) => {
296
- const s = !t.rule;
297
- s && console.warn('Property "rule" is missing', t);
298
- const l = t.rule && (typeof t.rule == "string" || t.rule instanceof RegExp || {}.toString.call(t.rule) === "[object Function]");
299
- l || console.warn(
300
- "A rule must be type of string, RegExp or function. Found:",
301
- JSON.stringify(t.rule)
302
- );
303
- const a = !t.classes;
304
- a && console.warn('Property "classes" is missing', t);
305
- const r = t.type && typeof t.type != "string";
306
- return r && console.warn('Property "type" must be type of string. Found:', t), !l || s || a || r;
307
- });
308
- }
309
- },
310
- /**
311
- * @description Defines the characters which splits a text into different pieces,
312
- to generate tags out of this pieces.
313
- * @property {props}
314
- * @type {Array}
315
- * @default [';']
316
- * @example
317
- separators: [';', ',']
318
- input: some; user input, has random; commas, an,d semicolons
319
- will split into: some - user input - has random - commas - an - d semicolons
320
- */
321
- separators: {
322
- type: Array,
323
- default: () => [";"],
324
- validator(e) {
325
- return !e.some((t) => {
326
- const s = typeof t != "string";
327
- return s && console.warn("Separators must be type of string. Found:", t), s;
328
- });
329
- }
330
- },
331
- /**
332
- * @description If it's true, the user can't add or save a tag,
333
- if another exists, with the same text value.
334
- * @property {props}
335
- * @type {Boolean}
336
- * @default true
337
- */
338
- avoidAddingDuplicates: {
339
- type: Boolean,
340
- default: !0
341
- },
342
- /**
343
- * @description If the input holds a value and loses the focus,
344
- a tag will be generated out of this value, if possible.
345
- * @property {props}
346
- * @type {Boolean}
347
- * @default true
348
- */
349
- addOnBlur: {
350
- type: Boolean,
351
- default: !0
352
- },
353
- /**
354
- * @description Custom function to detect duplicates. If the function returns 'true',
355
- the tag will be marked as duplicate.
356
- * @property {props}
357
- * @type {Function}
358
- * @param {Array} tagsarray The Array of tags minus the one which is edited/created.
359
- * @param {Object} tag The tag which is edited or should be added to the tags array.
360
- * @example
361
- // The duplicate function to recreate the default behaviour, would look like this:
362
- isDuplicate(tags, tag) {
363
- &ensp;return tags.map(t => t.text).indexOf(tag.text) !== -1;
364
- }
365
- */
366
- isDuplicate: {
367
- type: Function,
368
- default: null
369
- },
370
- /**
371
- * @description If it's true, the user can paste into the input element and
372
- vue-tags-input will create tags out of the incoming text.
373
- * @property {props}
374
- * @type {Boolean}
375
- * @default true
376
- */
377
- addFromPaste: {
378
- type: Boolean,
379
- default: !0
380
- },
381
- /**
382
- * @description Defines if it's possible to delete tags by pressing backspace.
383
- If so and the user wants to delete a tag,
384
- the tag gets the css class 'deletion-mark' for 1 second.
385
- If the user presses backspace again in that time period,
386
- the tag is removed from the tags array and the view.
387
- * @property {props}
388
- * @type {Boolean}
389
- * @default true
390
- */
391
- deleteOnBackspace: {
392
- default: !0,
393
- type: Boolean
394
- },
395
- // event handlers
396
- onBeforeAddingTag: Function,
397
- onBeforeDeletingTag: Function,
398
- onBeforeEditingTag: Function,
399
- onBeforeSavingTag: Function
400
- }, pe = {
401
- name: "VueTagsInput",
402
- components: { TagInput: de },
403
- props: he,
404
- emits: [
405
- "adding-duplicate",
406
- "before-adding-tag",
407
- "before-deleting-tag",
408
- "before-editing-tag",
409
- "before-saving-tag",
410
- "max-tags-reached",
411
- "saving-duplicate",
412
- "tags-changed",
413
- "tag-clicked",
414
- "update:modelValue",
415
- "update:tags"
416
- ],
417
- inheritAttrs: !1,
418
- data() {
419
- return {
420
- tagCenter: [],
421
- newTag: null,
422
- tagsCopy: [],
423
- tagsEditStatus: null,
424
- deletionMark: null,
425
- deletionMarkTime: null,
426
- selectedItem: null,
427
- focused: null
428
- };
429
- },
430
- computed: {
431
- // Property which calculates if the autocomplete should be opened or not
432
- autocompleteOpen() {
433
- return this.autocompleteAlwaysOpen ? !0 : this.newTag !== null && this.newTag.length >= this.autocompleteMinLength && this.filteredAutocompleteItems.length > 0 && this.focused;
434
- },
435
- // Returns validated autocomplete items. Maybe duplicates are filtered out
436
- filteredAutocompleteItems() {
437
- const e = this.autocompleteItems.map((t) => L(t, this.tags, this.validation, this.isDuplicate));
438
- return this.autocompleteFilterDuplicates ? e.filter(this.duplicateFilter) : e;
439
- }
440
- },
441
- methods: {
442
- createClasses: q,
443
- // Returns the index which item should be selected, based on the parameter 'method'
444
- getSelectedIndex(e) {
445
- const t = this.filteredAutocompleteItems, s = this.selectedItem, l = t.length - 1;
446
- if (t.length !== 0)
447
- return s === null ? 0 : e === "before" && s === 0 ? l : e === "after" && s === l ? 0 : e === "after" ? s + 1 : s - 1;
448
- },
449
- selectDefaultItem() {
450
- this.addOnlyFromAutocomplete && this.filteredAutocompleteItems.length > 0 ? this.selectedItem = 0 : this.selectedItem = null;
451
- },
452
- selectItem(e, t) {
453
- e.preventDefault(), this.selectedItem = this.getSelectedIndex(t);
454
- },
455
- isSelected(e) {
456
- return this.selectedItem === e;
457
- },
458
- isMarked(e) {
459
- return this.deletionMark === e;
460
- },
461
- // Save ref for tag
462
- setTagCenter(e) {
463
- e && this.tagCenter.push(e);
464
- },
465
- // Method which is called when the user presses backspace → remove the last tag
466
- invokeDelete() {
467
- if (!this.deleteOnBackspace || this.newTag.length > 0)
468
- return;
469
- const e = this.tagsCopy.length - 1;
470
- this.deletionMark === null ? (this.deletionMarkTime = setTimeout(() => this.deletionMark = null, 1e3), this.deletionMark = e) : this.performDeleteTag(e);
471
- },
472
- addTagsFromPaste() {
473
- this.addFromPaste && setTimeout(() => this.performAddTags(this.newTag), 10);
474
- },
475
- // Method to call if a tag should switch to it's edit mode
476
- performEditTag(e) {
477
- this.allowEditTags && (this.onBeforeAddingTag || this.editTag(e), this.$emit("before-editing-tag", {
478
- index: e,
479
- tag: this.tagsCopy[e],
480
- editTag: () => this.editTag(e)
481
- }));
482
- },
483
- // Opens the edit mode for a tag and focuses it
484
- editTag(e) {
485
- this.allowEditTags && (this.toggleEditMode(e), this.focus(e));
486
- },
487
- // Toggles the edit mode for a tag
488
- toggleEditMode(e) {
489
- !this.allowEditTags || this.disabled || (this.tagsEditStatus[e] = !this.tagsEditStatus[e]);
490
- },
491
- // only called by the @input event from TagInput.
492
- // Creates a new tag model and applys it to this.tagsCopy[index]
493
- createChangedTag(e, t) {
494
- const s = this.tagsCopy[e];
495
- s.text = t ? t.target.value : this.tagsCopy[e].text, this.tagsCopy[e] = L(s, this.tagsCopy, this.validation, this.isDuplicate);
496
- },
497
- // Focuses the input of a tag
498
- focus(e) {
499
- this.$nextTick(() => {
500
- const t = this.tagCenter[e].querySelector("input.ti-tag-input");
501
- t && t.focus();
502
- });
503
- },
504
- quote(e) {
505
- return e.replace(/([()[{*+.$^\\|?])/g, "\\$1");
506
- },
507
- // Cancels the edit mode for a tag → resets the tag to it's original model!
508
- cancelEdit(e) {
509
- this.tags[e] && (this.tagsCopy[e] = k(
510
- L(this.tags[e], this.tags, this.validation, this.isDuplicate)
511
- ), this.tagsEditStatus[e] = !1);
512
- },
513
- hasForbiddingAddRule(e) {
514
- return e.some((t) => {
515
- const s = this.validation.find((l) => t === l.classes);
516
- return s ? s.disableAdd : !1;
517
- });
518
- },
519
- // Creates multiple tags out of a string, based on the prop separators
520
- createTagTexts(e) {
521
- const t = new RegExp(this.separators.map((s) => this.quote(s)).join("|"));
522
- return e.split(t).map((s) => ({ text: s }));
523
- },
524
- // Method to call to delete a tag
525
- performDeleteTag(e) {
526
- this.onBeforeDeletingTag || this.deleteTag(e), this.$emit("before-deleting-tag", {
527
- index: e,
528
- tag: this.tagsCopy[e],
529
- deleteTag: () => this.deleteTag(e)
530
- });
531
- },
532
- deleteTag(e) {
533
- this.disabled || (this.deletionMark = null, clearTimeout(this.deletionMarkTime), this.tagsCopy.splice(e, 1), this.$emit("update:tags", this.tagsCopy), this.$emit("tags-changed", this.tagsCopy));
534
- },
535
- // Decides wether the input keyCode is one, which is allowed to modify/add tags
536
- noTriggerKey(e, t) {
537
- const s = this[t].indexOf(e.keyCode) !== -1 || this[t].indexOf(e.key) !== -1;
538
- return s && e.preventDefault(), !s;
539
- },
540
- // Method to call to add a tag
541
- performAddTags(e, t, s) {
542
- if (this.disabled || t && this.noTriggerKey(t, "addOnKey"))
543
- return;
544
- let l = [];
545
- typeof e == "object" && (l = [e]), typeof e == "string" && (l = this.createTagTexts(e)), l = l.filter((a) => a.text.trim().length > 0), l.forEach((a) => {
546
- a = L(a, this.tags, this.validation, this.isDuplicate), this.onBeforeAddingTag || this.addTag(a, s), this.$emit("before-adding-tag", {
547
- tag: a,
548
- addTag: () => this.addTag(a, s)
549
- });
550
- });
551
- },
552
- duplicateFilter(e) {
553
- return this.isDuplicate ? !this.isDuplicate(this.tagsCopy, e) : !this.tagsCopy.find((t) => t.text === e.text);
554
- },
555
- addTag(e, t = "new-tag-input") {
556
- const s = this.filteredAutocompleteItems.map((l) => l.text);
557
- this.addOnlyFromAutocomplete && s.indexOf(e.text) === -1 || this.$nextTick(() => {
558
- if (this.maxTags && this.maxTags <= this.tagsCopy.length)
559
- return this.$emit("max-tags-reached", e);
560
- if (this.avoidAddingDuplicates && !this.duplicateFilter(e))
561
- return this.$emit("adding-duplicate", e);
562
- this.hasForbiddingAddRule(e.tiClasses) || (this.newTag = "", this.tagsCopy.push(e), this.$emit("update:tags", this.tagsCopy), t === "autocomplete" && this.$refs.newTagInput.focus(), this.$emit("tags-changed", this.tagsCopy));
563
- });
564
- },
565
- // Method to call to save a tag
566
- performSaveTag(e, t) {
567
- const s = this.tagsCopy[e];
568
- this.disabled || t && this.noTriggerKey(t, "addOnKey") || s.text.trim().length !== 0 && (this["on-before-saving-tag"] || this.saveTag(e, s), this.$emit("before-saving-tag", {
569
- index: e,
570
- tag: s,
571
- saveTag: () => this.saveTag(e, s)
572
- }));
573
- },
574
- saveTag(e, t) {
575
- if (this.avoidAddingDuplicates) {
576
- const s = k(this.tagsCopy), l = s.splice(e, 1)[0];
577
- if (this.isDuplicate ? this.isDuplicate(s, l) : s.map((r) => r.text).indexOf(l.text) !== -1)
578
- return this.$emit("saving-duplicate", t);
579
- }
580
- this.hasForbiddingAddRule(t.tiClasses) || (this.tagsCopy[e] = t, this.toggleEditMode(e), this.$emit("update:tags", this.tagsCopy), this.$emit("tags-changed", this.tagsCopy));
581
- },
582
- tagsEqual() {
583
- return !this.tagsCopy.some((e, t) => !ie(e, this.tags[t]));
584
- },
585
- updateNewTag(e) {
586
- const t = e.target.value;
587
- this.newTag = t, this.$emit("update:modelValue", t);
588
- },
589
- initTags() {
590
- this.tagsCopy = ne(this.tags, this.validation, this.isDuplicate), this.tagsEditStatus = k(this.tags).map(() => !1), this.tagsEqual() || this.$emit("update:tags", this.tagsCopy);
591
- },
592
- blurredOnClick(e) {
593
- this.$el.contains(e.target) || this.$el.contains(document.activeElement) || this.performBlur(e);
594
- },
595
- performBlur() {
596
- this.addOnBlur && this.focused && this.performAddTags(this.newTag), this.focused = !1;
597
- }
598
- },
599
- watch: {
600
- modelValue(e) {
601
- this.addOnlyFromAutocomplete || (this.selectedItem = null), this.newTag = e;
602
- },
603
- tags: {
604
- handler() {
605
- this.initTags();
606
- },
607
- deep: !0
608
- },
609
- autocompleteOpen: "selectDefaultItem"
610
- },
611
- created() {
612
- this.newTag = this.modelValue, this.initTags();
613
- },
614
- mounted() {
615
- this.selectDefaultItem(), document.addEventListener("click", this.blurredOnClick);
616
- },
617
- beforeUpdate() {
618
- this.tagCenter = [];
619
- },
620
- unmounted() {
621
- document.removeEventListener("click", this.blurredOnClick);
622
- }
623
- };
624
- const ge = { class: "ti-input" }, fe = {
625
- key: 0,
626
- class: "ti-tags"
627
- }, ce = ["onClick"], me = { class: "ti-content" }, ye = {
628
- key: 0,
629
- class: "ti-tag-left"
630
- }, be = ["onClick"], ve = {
631
- key: 1,
632
- class: "ti-tag-right"
633
- }, Te = { class: "ti-actions" }, $e = ["onClick"], we = ["onClick"], Se = { class: "ti-new-tag-input-wrapper" }, Oe = ["placeholder", "value", "maxlength", "disabled"], ke = ["onMouseover"], Ve = ["onClick"];
634
- function Ee(e, t, s, l, a, r) {
635
- const i = Y("tag-input");
636
- return u(), d("div", {
637
- class: y(["vue-tags-input", [{ "ti-disabled": e.disabled }, { "ti-focus": e.focused }, e.$attrs.class]]),
638
- style: O(e.$attrs.style)
639
- }, [
640
- h("div", ge, [
641
- e.tagsCopy ? (u(), d("ul", fe, [
642
- (u(!0), d(V, null, E(e.tagsCopy, (n, o) => (u(), d("li", {
643
- key: o,
644
- style: O(n.style),
645
- class: y([[
646
- { "ti-editing": e.tagsEditStatus[o] },
647
- n.tiClasses,
648
- n.classes,
649
- { "ti-deletion-mark": e.isMarked(o) }
650
- ], "ti-tag"]),
651
- tabindex: "0",
652
- onClick: (m) => e.$emit("tag-clicked", { tag: n, index: o })
653
- }, [
654
- h("div", me, [
655
- e.$slots["tag-left"] ? (u(), d("div", ye, [
656
- p(e.$slots, "tag-left", {
657
- tag: n,
658
- index: o,
659
- edit: e.tagsEditStatus[o],
660
- performSaveEdit: e.performSaveTag,
661
- performDelete: e.performDeleteTag,
662
- performCancelEdit: e.cancelEdit,
663
- performOpenEdit: e.performEditTag,
664
- deletionMark: e.isMarked(o)
665
- }, void 0, !0)
666
- ])) : f("", !0),
667
- h("div", {
668
- ref_for: !0,
669
- ref: e.setTagCenter,
670
- class: "ti-tag-center"
671
- }, [
672
- e.$slots["tag-center"] ? f("", !0) : (u(), d("span", {
673
- key: 0,
674
- class: y({ "ti-hidden": e.tagsEditStatus[o] }),
675
- onClick: (m) => e.performEditTag(o)
676
- }, v(n.text), 11, be)),
677
- e.$slots["tag-center"] ? f("", !0) : (u(), F(i, {
678
- key: 1,
679
- scope: {
680
- edit: e.tagsEditStatus[o],
681
- maxlength: e.maxlength,
682
- tag: n,
683
- index: o,
684
- validateTag: e.createChangedTag,
685
- performCancelEdit: e.cancelEdit,
686
- performSaveEdit: e.performSaveTag
687
- }
688
- }, null, 8, ["scope"])),
689
- p(e.$slots, "tag-center", {
690
- tag: n,
691
- index: o,
692
- maxlength: e.maxlength,
693
- edit: e.tagsEditStatus[o],
694
- performSaveEdit: e.performSaveTag,
695
- performDelete: e.performDeleteTag,
696
- performCancelEdit: e.cancelEdit,
697
- validateTag: e.createChangedTag,
698
- performOpenEdit: e.performEditTag,
699
- deletionMark: e.isMarked(o)
700
- }, void 0, !0)
701
- ], 512),
702
- e.$slots["tag-right"] ? (u(), d("div", ve, [
703
- p(e.$slots, "tag-right", {
704
- tag: n,
705
- index: o,
706
- edit: e.tagsEditStatus[o],
707
- performSaveEdit: e.performSaveTag,
708
- performDelete: e.performDeleteTag,
709
- performCancelEdit: e.cancelEdit,
710
- performOpenEdit: e.performEditTag,
711
- deletionMark: e.isMarked(o)
712
- }, void 0, !0)
713
- ])) : f("", !0)
714
- ]),
715
- h("div", Te, [
716
- e.$slots["tag-actions"] ? f("", !0) : w((u(), d("i", {
717
- key: 0,
718
- class: "ti-icon-undo",
719
- onClick: (m) => e.cancelEdit(o)
720
- }, null, 8, $e)), [
721
- [S, e.tagsEditStatus[o]]
722
- ]),
723
- e.$slots["tag-actions"] ? f("", !0) : w((u(), d("i", {
724
- key: 1,
725
- class: "ti-icon-close",
726
- onClick: (m) => e.performDeleteTag(o)
727
- }, null, 8, we)), [
728
- [S, !e.tagsEditStatus[o]]
729
- ]),
730
- e.$slots["tag-actions"] ? p(e.$slots, "tag-actions", {
731
- key: 2,
732
- tag: n,
733
- index: o,
734
- edit: e.tagsEditStatus[o],
735
- performSaveEdit: e.performSaveTag,
736
- performDelete: e.performDeleteTag,
737
- performCancelEdit: e.cancelEdit,
738
- performOpenEdit: e.performEditTag,
739
- deletionMark: e.isMarked(o)
740
- }, void 0, !0) : f("", !0)
741
- ])
742
- ], 14, ce))), 128)),
743
- h("li", Se, [
744
- h("input", Q({ ref: "newTagInput" }, e.$attrs, {
745
- class: [[e.createClasses(e.newTag, e.tags, e.validation, e.isDuplicate)], "ti-new-tag-input"],
746
- placeholder: e.placeholder,
747
- value: e.newTag,
748
- maxlength: e.maxlength,
749
- disabled: e.disabled,
750
- type: "text",
751
- size: "1",
752
- onKeydown: [
753
- t[0] || (t[0] = (n) => e.performAddTags(
754
- e.filteredAutocompleteItems[e.selectedItem] || e.newTag,
755
- n
756
- )),
757
- t[2] || (t[2] = c((...n) => e.invokeDelete && e.invokeDelete(...n), ["delete"])),
758
- t[3] || (t[3] = c((...n) => e.performBlur && e.performBlur(...n), ["tab"])),
759
- t[4] || (t[4] = c((n) => e.selectItem(n, "before"), ["up"])),
760
- t[5] || (t[5] = c((n) => e.selectItem(n, "after"), ["down"]))
761
- ],
762
- onPaste: t[1] || (t[1] = (...n) => e.addTagsFromPaste && e.addTagsFromPaste(...n)),
763
- onInput: t[6] || (t[6] = (...n) => e.updateNewTag && e.updateNewTag(...n)),
764
- onFocus: t[7] || (t[7] = (n) => e.focused = !0),
765
- onClick: t[8] || (t[8] = (n) => e.addOnlyFromAutocomplete ? !1 : e.selectedItem = null)
766
- }), null, 16, Oe)
767
- ])
768
- ])) : f("", !0)
769
- ]),
770
- p(e.$slots, "between-elements", {}, void 0, !0),
771
- e.autocompleteOpen ? (u(), d("div", {
772
- key: 0,
773
- class: y(["ti-autocomplete", e.$attrs.class]),
774
- onMouseout: t[9] || (t[9] = (n) => e.selectedItem = null)
775
- }, [
776
- p(e.$slots, "autocomplete-header", {}, void 0, !0),
777
- h("ul", null, [
778
- (u(!0), d(V, null, E(e.filteredAutocompleteItems, (n, o) => (u(), d("li", {
779
- key: o,
780
- style: O(n.style),
781
- class: y([[
782
- n.tiClasses,
783
- n.classes,
784
- { "ti-selected-item": e.isSelected(o) }
785
- ], "ti-item"]),
786
- onMouseover: (m) => e.disabled ? !1 : e.selectedItem = o
787
- }, [
788
- e.$slots["autocomplete-item"] ? p(e.$slots, "autocomplete-item", {
789
- key: 1,
790
- item: n,
791
- index: o,
792
- performAdd: (m) => e.performAddTags(m, void 0, "autocomplete"),
793
- selected: e.isSelected(o)
794
- }, void 0, !0) : (u(), d("div", {
795
- key: 0,
796
- onClick: (m) => e.performAddTags(n, void 0, "autocomplete")
797
- }, v(n.text), 9, Ve))
798
- ], 46, ke))), 128))
799
- ]),
800
- p(e.$slots, "autocomplete-footer", {}, void 0, !0)
801
- ], 34)) : f("", !0)
802
- ], 6);
803
- }
804
- const Ce = /* @__PURE__ */ P(pe, [["render", Ee], ["__scopeId", "data-v-d14eec25"]]);
805
- const Le = /* @__PURE__ */ h("h5", { class: "mn-thin" }, "Tags (maximum 20):", -1), De = { class: "mn-medium" }, Ae = /* @__PURE__ */ h("p", { class: "p-small mn-thin" }, "Suggested:", -1), Be = ["onClick"], Me = { key: 1 }, pt = {
806
- __name: "BlockTags",
807
- props: ["tags"],
808
- emits: ["tags-changed"],
809
- setup(e, { emit: t }) {
810
- const s = e, l = A(""), a = A([]), r = A([
811
- { text: "story" },
812
- { text: "news" },
813
- { text: "guide" },
814
- { text: "discussion" },
815
- { text: "photos" }
816
- ]);
817
- s.tags && (a.value = s.tags.map((b) => ({ text: b })));
818
- const i = K(() => r.value.filter((b) => b.text.toLowerCase().includes(l.value.toLowerCase()))), n = K(() => r.value.filter((b) => !a.value.some(($) => $.text === b.text)));
819
- function o(b) {
820
- a.value.push(b), t("tags-changed", a.value.map(($) => $.text));
821
- }
822
- function m(b) {
823
- a.value = b, t("tags-changed", a.value.map(($) => $.text));
824
- }
825
- return (b, $) => (u(), d("div", null, [
826
- Le,
827
- I(Ce, {
828
- modelValue: l.value,
829
- "onUpdate:modelValue": $[0] || ($[0] = (D) => l.value = D),
830
- tags: a.value,
831
- "autocomplete-items": T(i),
832
- "add-on-key": [13, ":", ";", ","],
833
- "save-on-key": [13, ":", ";", ","],
834
- separators: [";", ","],
835
- "max-tags": 20,
836
- maxlength: 20,
837
- placeholder: "Please add tags",
838
- "add-from-paste": !0,
839
- "allow-edit-tags": !0,
840
- onTagsChanged: m,
841
- class: "mn-thin bg-grey radius-medium pd-small"
842
- }, null, 8, ["modelValue", "tags", "autocomplete-items"]),
843
- h("p", De, [
844
- Ae,
845
- T(n).length > 0 ? (u(!0), d(V, { key: 0 }, E(T(n), (D, J) => (u(), d("span", {
846
- onClick: (nt) => o(D),
847
- class: y(["cursor-pointer ti-tag-toDefactor", { "mn-r-micro": J !== T(n).length - 1 }])
848
- }, v(D.text), 11, Be))), 256)) : (u(), d("span", Me, "You added all suggested tags"))
849
- ])
850
- ]));
851
- }
852
- };
853
- function B(e) {
854
- return e === 0 ? !1 : Array.isArray(e) && e.length === 0 ? !0 : !e;
855
- }
856
- function Fe(e) {
857
- return (...t) => !e(...t);
858
- }
859
- function Ie(e, t) {
860
- return e === void 0 && (e = "undefined"), e === null && (e = "null"), e === !1 && (e = "false"), e.toString().toLowerCase().indexOf(t.trim()) !== -1;
861
- }
862
- function U(e, t, s, l) {
863
- return t ? e.filter((a) => Ie(l(a, s), t)).sort((a, r) => l(a, s).length - l(r, s).length) : e;
864
- }
865
- function Pe(e) {
866
- return e.filter((t) => !t.$isLabel);
867
- }
868
- function M(e, t) {
869
- return (s) => s.reduce((l, a) => a[e] && a[e].length ? (l.push({
870
- $groupLabel: a[t],
871
- $isLabel: !0
872
- }), l.concat(a[e])) : l, []);
873
- }
874
- function Ke(e, t, s, l, a) {
875
- return (r) => r.map((i) => {
876
- if (!i[s])
877
- return console.warn("Options passed to vue-multiselect do not contain groups, despite the config."), [];
878
- const n = U(i[s], e, t, a);
879
- return n.length ? {
880
- [l]: i[l],
881
- [s]: n
882
- } : [];
883
- });
884
- }
885
- const z = (...e) => (t) => e.reduce((s, l) => l(s), t), Ne = {
886
- data() {
887
- return {
888
- search: "",
889
- isOpen: !1,
890
- preferredOpenDirection: "below",
891
- optimizedHeight: this.maxHeight
892
- };
893
- },
894
- props: {
895
- /**
896
- * Decide whether to filter the results based on search query.
897
- * Useful for async filtering, where we search through more complex data.
898
- * @type {Boolean}
899
- */
900
- internalSearch: {
901
- type: Boolean,
902
- default: !0
903
- },
904
- /**
905
- * Array of available options: Objects, Strings or Integers.
906
- * If array of objects, visible label will default to option.label.
907
- * If `labal` prop is passed, label will equal option['label']
908
- * @type {Array}
909
- */
910
- options: {
911
- type: Array,
912
- required: !0
913
- },
914
- /**
915
- * Equivalent to the `multiple` attribute on a `<select>` input.
916
- * @default false
917
- * @type {Boolean}
918
- */
919
- multiple: {
920
- type: Boolean,
921
- default: !1
922
- },
923
- /**
924
- * Key to compare objects
925
- * @default 'id'
926
- * @type {String}
927
- */
928
- trackBy: {
929
- type: String
930
- },
931
- /**
932
- * Label to look for in option Object
933
- * @default 'label'
934
- * @type {String}
935
- */
936
- label: {
937
- type: String
938
- },
939
- /**
940
- * Enable/disable search in options
941
- * @default true
942
- * @type {Boolean}
943
- */
944
- searchable: {
945
- type: Boolean,
946
- default: !0
947
- },
948
- /**
949
- * Clear the search input after `)
950
- * @default true
951
- * @type {Boolean}
952
- */
953
- clearOnSelect: {
954
- type: Boolean,
955
- default: !0
956
- },
957
- /**
958
- * Hide already selected options
959
- * @default false
960
- * @type {Boolean}
961
- */
962
- hideSelected: {
963
- type: Boolean,
964
- default: !1
965
- },
966
- /**
967
- * Equivalent to the `placeholder` attribute on a `<select>` input.
968
- * @default 'Select option'
969
- * @type {String}
970
- */
971
- placeholder: {
972
- type: String,
973
- default: "Select option"
974
- },
975
- /**
976
- * Allow to remove all selected values
977
- * @default true
978
- * @type {Boolean}
979
- */
980
- allowEmpty: {
981
- type: Boolean,
982
- default: !0
983
- },
984
- /**
985
- * Reset this.internalValue, this.search after this.internalValue changes.
986
- * Useful if want to create a stateless dropdown.
987
- * @default false
988
- * @type {Boolean}
989
- */
990
- resetAfter: {
991
- type: Boolean,
992
- default: !1
993
- },
994
- /**
995
- * Enable/disable closing after selecting an option
996
- * @default true
997
- * @type {Boolean}
998
- */
999
- closeOnSelect: {
1000
- type: Boolean,
1001
- default: !0
1002
- },
1003
- /**
1004
- * Function to interpolate the custom label
1005
- * @default false
1006
- * @type {Function}
1007
- */
1008
- customLabel: {
1009
- type: Function,
1010
- default(e, t) {
1011
- return B(e) ? "" : t ? e[t] : e;
1012
- }
1013
- },
1014
- /**
1015
- * Disable / Enable tagging
1016
- * @default false
1017
- * @type {Boolean}
1018
- */
1019
- taggable: {
1020
- type: Boolean,
1021
- default: !1
1022
- },
1023
- /**
1024
- * String to show when highlighting a potential tag
1025
- * @default 'Press enter to create a tag'
1026
- * @type {String}
1027
- */
1028
- tagPlaceholder: {
1029
- type: String,
1030
- default: "Press enter to create a tag"
1031
- },
1032
- /**
1033
- * By default new tags will appear above the search results.
1034
- * Changing to 'bottom' will revert this behaviour
1035
- * and will proritize the search results
1036
- * @default 'top'
1037
- * @type {String}
1038
- */
1039
- tagPosition: {
1040
- type: String,
1041
- default: "top"
1042
- },
1043
- /**
1044
- * Number of allowed selected options. No limit if 0.
1045
- * @default 0
1046
- * @type {Number}
1047
- */
1048
- max: {
1049
- type: [Number, Boolean],
1050
- default: !1
1051
- },
1052
- /**
1053
- * Will be passed with all events as second param.
1054
- * Useful for identifying events origin.
1055
- * @default null
1056
- * @type {String|Integer}
1057
- */
1058
- id: {
1059
- default: null
1060
- },
1061
- /**
1062
- * Limits the options displayed in the dropdown
1063
- * to the first X options.
1064
- * @default 1000
1065
- * @type {Integer}
1066
- */
1067
- optionsLimit: {
1068
- type: Number,
1069
- default: 1e3
1070
- },
1071
- /**
1072
- * Name of the property containing
1073
- * the group values
1074
- * @default 1000
1075
- * @type {String}
1076
- */
1077
- groupValues: {
1078
- type: String
1079
- },
1080
- /**
1081
- * Name of the property containing
1082
- * the group label
1083
- * @default 1000
1084
- * @type {String}
1085
- */
1086
- groupLabel: {
1087
- type: String
1088
- },
1089
- /**
1090
- * Allow to select all group values
1091
- * by selecting the group label
1092
- * @default false
1093
- * @type {Boolean}
1094
- */
1095
- groupSelect: {
1096
- type: Boolean,
1097
- default: !1
1098
- },
1099
- /**
1100
- * Array of keyboard keys to block
1101
- * when selecting
1102
- * @default 1000
1103
- * @type {String}
1104
- */
1105
- blockKeys: {
1106
- type: Array,
1107
- default() {
1108
- return [];
1109
- }
1110
- },
1111
- /**
1112
- * Prevent from wiping up the search value
1113
- * @default false
1114
- * @type {Boolean}
1115
- */
1116
- preserveSearch: {
1117
- type: Boolean,
1118
- default: !1
1119
- },
1120
- /**
1121
- * Select 1st options if value is empty
1122
- * @default false
1123
- * @type {Boolean}
1124
- */
1125
- preselectFirst: {
1126
- type: Boolean,
1127
- default: !1
1128
- },
1129
- /**
1130
- * Prevent autofocus
1131
- * @default false
1132
- * @type {Boolean}
1133
- */
1134
- preventAutofocus: {
1135
- type: Boolean,
1136
- default: !1
1137
- }
1138
- },
1139
- mounted() {
1140
- !this.multiple && this.max && console.warn("[Vue-Multiselect warn]: Max prop should not be used when prop Multiple equals false."), this.preselectFirst && !this.internalValue.length && this.options.length && this.select(this.filteredOptions[0]);
1141
- },
1142
- computed: {
1143
- internalValue() {
1144
- return this.modelValue || this.modelValue === 0 ? Array.isArray(this.modelValue) ? this.modelValue : [this.modelValue] : [];
1145
- },
1146
- filteredOptions() {
1147
- const e = this.search || "", t = e.toLowerCase().trim();
1148
- let s = this.options.concat();
1149
- return this.internalSearch ? s = this.groupValues ? this.filterAndFlat(s, t, this.label) : U(s, t, this.label, this.customLabel) : s = this.groupValues ? M(this.groupValues, this.groupLabel)(s) : s, s = this.hideSelected ? s.filter(Fe(this.isSelected)) : s, this.taggable && t.length && !this.isExistingOption(t) && (this.tagPosition === "bottom" ? s.push({ isTag: !0, label: e }) : s.unshift({ isTag: !0, label: e })), s.slice(0, this.optionsLimit);
1150
- },
1151
- valueKeys() {
1152
- return this.trackBy ? this.internalValue.map((e) => e[this.trackBy]) : this.internalValue;
1153
- },
1154
- optionKeys() {
1155
- return (this.groupValues ? this.flatAndStrip(this.options) : this.options).map((t) => this.customLabel(t, this.label).toString().toLowerCase());
1156
- },
1157
- currentOptionLabel() {
1158
- return this.multiple ? this.searchable ? "" : this.placeholder : this.internalValue.length ? this.getOptionLabel(this.internalValue[0]) : this.searchable ? "" : this.placeholder;
1159
- }
1160
- },
1161
- watch: {
1162
- internalValue: {
1163
- handler() {
1164
- this.resetAfter && this.internalValue.length && (this.search = "", this.$emit("update:modelValue", this.multiple ? [] : null));
1165
- },
1166
- deep: !0
1167
- },
1168
- search() {
1169
- this.$emit("search-change", this.search);
1170
- }
1171
- },
1172
- emits: ["open", "search-change", "close", "select", "update:modelValue", "remove", "tag"],
1173
- methods: {
1174
- /**
1175
- * Returns the internalValue in a way it can be emited to the parent
1176
- * @returns {Object||Array||String||Integer}
1177
- */
1178
- getValue() {
1179
- return this.multiple ? this.internalValue : this.internalValue.length === 0 ? null : this.internalValue[0];
1180
- },
1181
- /**
1182
- * Filters and then flattens the options list
1183
- * @param {Array}
1184
- * @return {Array} returns a filtered and flat options list
1185
- */
1186
- filterAndFlat(e, t, s) {
1187
- return z(
1188
- Ke(t, s, this.groupValues, this.groupLabel, this.customLabel),
1189
- M(this.groupValues, this.groupLabel)
1190
- )(e);
1191
- },
1192
- /**
1193
- * Flattens and then strips the group labels from the options list
1194
- * @param {Array}
1195
- * @return {Array} returns a flat options list without group labels
1196
- */
1197
- flatAndStrip(e) {
1198
- return z(
1199
- M(this.groupValues, this.groupLabel),
1200
- Pe
1201
- )(e);
1202
- },
1203
- /**
1204
- * Updates the search value
1205
- * @param {String}
1206
- */
1207
- updateSearch(e) {
1208
- this.search = e;
1209
- },
1210
- /**
1211
- * Finds out if the given query is already present
1212
- * in the available options
1213
- * @param {String}
1214
- * @return {Boolean} returns true if element is available
1215
- */
1216
- isExistingOption(e) {
1217
- return this.options ? this.optionKeys.indexOf(e) > -1 : !1;
1218
- },
1219
- /**
1220
- * Finds out if the given element is already present
1221
- * in the result value
1222
- * @param {Object||String||Integer} option passed element to check
1223
- * @returns {Boolean} returns true if element is selected
1224
- */
1225
- isSelected(e) {
1226
- const t = this.trackBy ? e[this.trackBy] : e;
1227
- return this.valueKeys.indexOf(t) > -1;
1228
- },
1229
- /**
1230
- * Finds out if the given option is disabled
1231
- * @param {Object||String||Integer} option passed element to check
1232
- * @returns {Boolean} returns true if element is disabled
1233
- */
1234
- isOptionDisabled(e) {
1235
- return !!e.$isDisabled;
1236
- },
1237
- /**
1238
- * Returns empty string when options is null/undefined
1239
- * Returns tag query if option is tag.
1240
- * Returns the customLabel() results and casts it to string.
1241
- *
1242
- * @param {Object||String||Integer} Passed option
1243
- * @returns {Object||String}
1244
- */
1245
- getOptionLabel(e) {
1246
- if (B(e))
1247
- return "";
1248
- if (e.isTag)
1249
- return e.label;
1250
- if (e.$isLabel)
1251
- return e.$groupLabel;
1252
- const t = this.customLabel(e, this.label);
1253
- return B(t) ? "" : t;
1254
- },
1255
- /**
1256
- * Add the given option to the list of selected options
1257
- * or sets the option as the selected option.
1258
- * If option is already selected -> remove it from the results.
1259
- *
1260
- * @param {Object||String||Integer} option to select/deselect
1261
- * @param {Boolean} block removing
1262
- */
1263
- select(e, t) {
1264
- if (e.$isLabel && this.groupSelect) {
1265
- this.selectGroup(e);
1266
- return;
1267
- }
1268
- if (!(this.blockKeys.indexOf(t) !== -1 || this.disabled || e.$isDisabled || e.$isLabel) && !(this.max && this.multiple && this.internalValue.length === this.max) && !(t === "Tab" && !this.pointerDirty)) {
1269
- if (e.isTag)
1270
- this.$emit("tag", e.label, this.id), this.search = "", this.closeOnSelect && !this.multiple && this.deactivate();
1271
- else {
1272
- if (this.isSelected(e)) {
1273
- t !== "Tab" && this.removeElement(e);
1274
- return;
1275
- }
1276
- this.multiple ? this.$emit("update:modelValue", this.internalValue.concat([e])) : this.$emit("update:modelValue", e), this.$emit("select", e, this.id), this.clearOnSelect && (this.search = "");
1277
- }
1278
- this.closeOnSelect && this.deactivate();
1279
- }
1280
- },
1281
- /**
1282
- * Add the given group options to the list of selected options
1283
- * If all group optiona are already selected -> remove it from the results.
1284
- *
1285
- * @param {Object||String||Integer} group to select/deselect
1286
- */
1287
- selectGroup(e) {
1288
- const t = this.options.find((s) => s[this.groupLabel] === e.$groupLabel);
1289
- if (t) {
1290
- if (this.wholeGroupSelected(t)) {
1291
- this.$emit("remove", t[this.groupValues], this.id);
1292
- const s = this.internalValue.filter(
1293
- (l) => t[this.groupValues].indexOf(l) === -1
1294
- );
1295
- this.$emit("update:modelValue", s);
1296
- } else {
1297
- let s = t[this.groupValues].filter(
1298
- (l) => !(this.isOptionDisabled(l) || this.isSelected(l))
1299
- );
1300
- this.max && s.splice(this.max - this.internalValue.length), this.$emit("select", s, this.id), this.$emit(
1301
- "update:modelValue",
1302
- this.internalValue.concat(s)
1303
- );
1304
- }
1305
- this.closeOnSelect && this.deactivate();
1306
- }
1307
- },
1308
- /**
1309
- * Helper to identify if all values in a group are selected
1310
- *
1311
- * @param {Object} group to validated selected values against
1312
- */
1313
- wholeGroupSelected(e) {
1314
- return e[this.groupValues].every(
1315
- (t) => this.isSelected(t) || this.isOptionDisabled(t)
1316
- );
1317
- },
1318
- /**
1319
- * Helper to identify if all values in a group are disabled
1320
- *
1321
- * @param {Object} group to check for disabled values
1322
- */
1323
- wholeGroupDisabled(e) {
1324
- return e[this.groupValues].every(this.isOptionDisabled);
1325
- },
1326
- /**
1327
- * Removes the given option from the selected options.
1328
- * Additionally checks this.allowEmpty prop if option can be removed when
1329
- * it is the last selected option.
1330
- *
1331
- * @param {type} option description
1332
- * @return {type} description
1333
- */
1334
- removeElement(e, t = !0) {
1335
- if (this.disabled || e.$isDisabled)
1336
- return;
1337
- if (!this.allowEmpty && this.internalValue.length <= 1) {
1338
- this.deactivate();
1339
- return;
1340
- }
1341
- const s = typeof e == "object" ? this.valueKeys.indexOf(e[this.trackBy]) : this.valueKeys.indexOf(e);
1342
- if (this.multiple) {
1343
- const l = this.internalValue.slice(0, s).concat(this.internalValue.slice(s + 1));
1344
- this.$emit("update:modelValue", l);
1345
- } else
1346
- this.$emit("update:modelValue", null);
1347
- this.$emit("remove", e, this.id), this.closeOnSelect && t && this.deactivate();
1348
- },
1349
- /**
1350
- * Calls this.removeElement() with the last element
1351
- * from this.internalValue (selected element Array)
1352
- *
1353
- * @fires this#removeElement
1354
- */
1355
- removeLastElement() {
1356
- this.blockKeys.indexOf("Delete") === -1 && this.search.length === 0 && Array.isArray(this.internalValue) && this.internalValue.length && this.removeElement(this.internalValue[this.internalValue.length - 1], !1);
1357
- },
1358
- /**
1359
- * Opens the multiselect’s dropdown.
1360
- * Sets this.isOpen to TRUE
1361
- */
1362
- activate() {
1363
- this.isOpen || this.disabled || (this.adjustPosition(), this.groupValues && this.pointer === 0 && this.filteredOptions.length && (this.pointer = 1), this.isOpen = !0, this.searchable ? (this.preserveSearch || (this.search = ""), this.preventAutofocus || this.$nextTick(() => this.$refs.search && this.$refs.search.focus())) : this.preventAutofocus || typeof this.$el < "u" && this.$el.focus(), this.$emit("open", this.id));
1364
- },
1365
- /**
1366
- * Closes the multiselect’s dropdown.
1367
- * Sets this.isOpen to FALSE
1368
- */
1369
- deactivate() {
1370
- this.isOpen && (this.isOpen = !1, this.searchable ? typeof this.$refs.search < "u" && this.$refs.search.blur() : typeof this.$el < "u" && this.$el.blur(), this.preserveSearch || (this.search = ""), this.$emit("close", this.getValue(), this.id));
1371
- },
1372
- /**
1373
- * Call this.activate() or this.deactivate()
1374
- * depending on this.isOpen value.
1375
- *
1376
- * @fires this#activate || this#deactivate
1377
- * @property {Boolean} isOpen indicates if dropdown is open
1378
- */
1379
- toggle() {
1380
- this.isOpen ? this.deactivate() : this.activate();
1381
- },
1382
- /**
1383
- * Updates the hasEnoughSpace variable used for
1384
- * detecting where to expand the dropdown
1385
- */
1386
- adjustPosition() {
1387
- if (typeof window > "u")
1388
- return;
1389
- const e = this.$el.getBoundingClientRect().top, t = window.innerHeight - this.$el.getBoundingClientRect().bottom;
1390
- t > this.maxHeight || t > e || this.openDirection === "below" || this.openDirection === "bottom" ? (this.preferredOpenDirection = "below", this.optimizedHeight = Math.min(t - 40, this.maxHeight)) : (this.preferredOpenDirection = "above", this.optimizedHeight = Math.min(e - 40, this.maxHeight));
1391
- }
1392
- }
1393
- }, Re = {
1394
- data() {
1395
- return {
1396
- pointer: 0,
1397
- pointerDirty: !1
1398
- };
1399
- },
1400
- props: {
1401
- /**
1402
- * Enable/disable highlighting of the pointed value.
1403
- * @type {Boolean}
1404
- * @default true
1405
- */
1406
- showPointer: {
1407
- type: Boolean,
1408
- default: !0
1409
- },
1410
- optionHeight: {
1411
- type: Number,
1412
- default: 40
1413
- }
1414
- },
1415
- computed: {
1416
- pointerPosition() {
1417
- return this.pointer * this.optionHeight;
1418
- },
1419
- visibleElements() {
1420
- return this.optimizedHeight / this.optionHeight;
1421
- }
1422
- },
1423
- watch: {
1424
- filteredOptions() {
1425
- this.pointerAdjust();
1426
- },
1427
- isOpen() {
1428
- this.pointerDirty = !1;
1429
- },
1430
- pointer() {
1431
- this.$refs.search && this.$refs.search.setAttribute("aria-activedescendant", this.id + "-" + this.pointer.toString());
1432
- }
1433
- },
1434
- methods: {
1435
- optionHighlight(e, t) {
1436
- return {
1437
- "multiselect__option--highlight": e === this.pointer && this.showPointer,
1438
- "multiselect__option--selected": this.isSelected(t)
1439
- };
1440
- },
1441
- groupHighlight(e, t) {
1442
- if (!this.groupSelect)
1443
- return [
1444
- "multiselect__option--disabled",
1445
- { "multiselect__option--group": t.$isLabel }
1446
- ];
1447
- const s = this.options.find((l) => l[this.groupLabel] === t.$groupLabel);
1448
- return s && !this.wholeGroupDisabled(s) ? [
1449
- "multiselect__option--group",
1450
- { "multiselect__option--highlight": e === this.pointer && this.showPointer },
1451
- { "multiselect__option--group-selected": this.wholeGroupSelected(s) }
1452
- ] : "multiselect__option--disabled";
1453
- },
1454
- addPointerElement({ key: e } = "Enter") {
1455
- this.filteredOptions.length > 0 && this.select(this.filteredOptions[this.pointer], e), this.pointerReset();
1456
- },
1457
- pointerForward() {
1458
- this.pointer < this.filteredOptions.length - 1 && (this.pointer++, this.$refs.list.scrollTop <= this.pointerPosition - (this.visibleElements - 1) * this.optionHeight && (this.$refs.list.scrollTop = this.pointerPosition - (this.visibleElements - 1) * this.optionHeight), this.filteredOptions[this.pointer] && this.filteredOptions[this.pointer].$isLabel && !this.groupSelect && this.pointerForward()), this.pointerDirty = !0;
1459
- },
1460
- pointerBackward() {
1461
- this.pointer > 0 ? (this.pointer--, this.$refs.list.scrollTop >= this.pointerPosition && (this.$refs.list.scrollTop = this.pointerPosition), this.filteredOptions[this.pointer] && this.filteredOptions[this.pointer].$isLabel && !this.groupSelect && this.pointerBackward()) : this.filteredOptions[this.pointer] && this.filteredOptions[0].$isLabel && !this.groupSelect && this.pointerForward(), this.pointerDirty = !0;
1462
- },
1463
- pointerReset() {
1464
- this.closeOnSelect && (this.pointer = 0, this.$refs.list && (this.$refs.list.scrollTop = 0));
1465
- },
1466
- pointerAdjust() {
1467
- this.pointer >= this.filteredOptions.length - 1 && (this.pointer = this.filteredOptions.length ? this.filteredOptions.length - 1 : 0), this.filteredOptions.length > 0 && this.filteredOptions[this.pointer].$isLabel && !this.groupSelect && this.pointerForward();
1468
- },
1469
- pointerSet(e) {
1470
- this.pointer = e, this.pointerDirty = !0;
1471
- }
1472
- }
1473
- };
1474
- const He = {
1475
- name: "vue-multiselect",
1476
- mixins: [Ne, Re],
1477
- compatConfig: {
1478
- MODE: 3,
1479
- ATTR_ENUMERATED_COERCION: !1
1480
- },
1481
- props: {
1482
- /**
1483
- * name attribute to match optional label element
1484
- * @default ''
1485
- * @type {String}
1486
- */
1487
- name: {
1488
- type: String,
1489
- default: ""
1490
- },
1491
- /**
1492
- * Presets the selected options value.
1493
- * @type {Object||Array||String||Integer}
1494
- */
1495
- modelValue: {
1496
- type: null,
1497
- default() {
1498
- return [];
1499
- }
1500
- },
1501
- /**
1502
- * String to show when pointing to an option
1503
- * @default 'Press enter to select'
1504
- * @type {String}
1505
- */
1506
- selectLabel: {
1507
- type: String,
1508
- default: "Press enter to select"
1509
- },
1510
- /**
1511
- * String to show when pointing to an option
1512
- * @default 'Press enter to select'
1513
- * @type {String}
1514
- */
1515
- selectGroupLabel: {
1516
- type: String,
1517
- default: "Press enter to select group"
1518
- },
1519
- /**
1520
- * String to show next to selected option
1521
- * @default 'Selected'
1522
- * @type {String}
1523
- */
1524
- selectedLabel: {
1525
- type: String,
1526
- default: "Selected"
1527
- },
1528
- /**
1529
- * String to show when pointing to an already selected option
1530
- * @default 'Press enter to remove'
1531
- * @type {String}
1532
- */
1533
- deselectLabel: {
1534
- type: String,
1535
- default: "Press enter to remove"
1536
- },
1537
- /**
1538
- * String to show when pointing to an already selected option
1539
- * @default 'Press enter to remove'
1540
- * @type {String}
1541
- */
1542
- deselectGroupLabel: {
1543
- type: String,
1544
- default: "Press enter to deselect group"
1545
- },
1546
- /**
1547
- * Decide whether to show pointer labels
1548
- * @default true
1549
- * @type {Boolean}
1550
- */
1551
- showLabels: {
1552
- type: Boolean,
1553
- default: !0
1554
- },
1555
- /**
1556
- * Limit the display of selected options. The rest will be hidden within the limitText string.
1557
- * @default 99999
1558
- * @type {Integer}
1559
- */
1560
- limit: {
1561
- type: Number,
1562
- default: 99999
1563
- },
1564
- /**
1565
- * Sets maxHeight style value of the dropdown
1566
- * @default 300
1567
- * @type {Integer}
1568
- */
1569
- maxHeight: {
1570
- type: Number,
1571
- default: 300
1572
- },
1573
- /**
1574
- * Function that process the message shown when selected
1575
- * elements pass the defined limit.
1576
- * @default 'and * more'
1577
- * @param {Int} count Number of elements more than limit
1578
- * @type {Function}
1579
- */
1580
- limitText: {
1581
- type: Function,
1582
- default: (e) => `and ${e} more`
1583
- },
1584
- /**
1585
- * Set true to trigger the loading spinner.
1586
- * @default False
1587
- * @type {Boolean}
1588
- */
1589
- loading: {
1590
- type: Boolean,
1591
- default: !1
1592
- },
1593
- /**
1594
- * Disables the multiselect if true.
1595
- * @default false
1596
- * @type {Boolean}
1597
- */
1598
- disabled: {
1599
- type: Boolean,
1600
- default: !1
1601
- },
1602
- /**
1603
- * Fixed opening direction
1604
- * @default ''
1605
- * @type {String}
1606
- */
1607
- openDirection: {
1608
- type: String,
1609
- default: ""
1610
- },
1611
- /**
1612
- * Shows slot with message about empty options
1613
- * @default true
1614
- * @type {Boolean}
1615
- */
1616
- showNoOptions: {
1617
- type: Boolean,
1618
- default: !0
1619
- },
1620
- showNoResults: {
1621
- type: Boolean,
1622
- default: !0
1623
- },
1624
- tabindex: {
1625
- type: Number,
1626
- default: 0
1627
- }
1628
- },
1629
- computed: {
1630
- hasOptionGroup() {
1631
- return this.groupValues && this.groupLabel && this.groupSelect;
1632
- },
1633
- isSingleLabelVisible() {
1634
- return (this.singleValue || this.singleValue === 0) && (!this.isOpen || !this.searchable) && !this.visibleValues.length;
1635
- },
1636
- isPlaceholderVisible() {
1637
- return !this.internalValue.length && (!this.searchable || !this.isOpen);
1638
- },
1639
- visibleValues() {
1640
- return this.multiple ? this.internalValue.slice(0, this.limit) : [];
1641
- },
1642
- singleValue() {
1643
- return this.internalValue[0];
1644
- },
1645
- deselectLabelText() {
1646
- return this.showLabels ? this.deselectLabel : "";
1647
- },
1648
- deselectGroupLabelText() {
1649
- return this.showLabels ? this.deselectGroupLabel : "";
1650
- },
1651
- selectLabelText() {
1652
- return this.showLabels ? this.selectLabel : "";
1653
- },
1654
- selectGroupLabelText() {
1655
- return this.showLabels ? this.selectGroupLabel : "";
1656
- },
1657
- selectedLabelText() {
1658
- return this.showLabels ? this.selectedLabel : "";
1659
- },
1660
- inputStyle() {
1661
- return this.searchable || this.multiple && this.modelValue && this.modelValue.length ? this.isOpen ? { width: "100%" } : { width: "0", position: "absolute", padding: "0" } : "";
1662
- },
1663
- contentStyle() {
1664
- return this.options.length ? { display: "inline-block" } : { display: "block" };
1665
- },
1666
- isAbove() {
1667
- return this.openDirection === "above" || this.openDirection === "top" ? !0 : this.openDirection === "below" || this.openDirection === "bottom" ? !1 : this.preferredOpenDirection === "above";
1668
- },
1669
- showSearchInput() {
1670
- return this.searchable && (this.hasSingleSelectedSlot && (this.visibleSingleValue || this.visibleSingleValue === 0) ? this.isOpen : !0);
1671
- }
1672
- }
1673
- }, Ge = ["tabindex", "aria-owns"], je = {
1674
- ref: "tags",
1675
- class: "multiselect__tags"
1676
- }, ze = { class: "multiselect__tags-wrap" }, qe = ["textContent"], Ue = ["onKeypress", "onMousedown"], Je = ["textContent"], We = { class: "multiselect__spinner" }, Ye = ["name", "id", "placeholder", "value", "disabled", "tabindex", "aria-controls"], Qe = ["id"], Xe = { key: 0 }, Ze = { class: "multiselect__option" }, _e = ["id", "role"], xe = ["onClick", "onMouseenter", "data-select", "data-selected", "data-deselect"], et = ["data-select", "data-deselect", "onMouseenter", "onMousedown"], tt = { class: "multiselect__option" }, st = { class: "multiselect__option" };
1677
- function it(e, t, s, l, a, r) {
1678
- return u(), d("div", {
1679
- tabindex: e.searchable ? -1 : s.tabindex,
1680
- class: y([{ "multiselect--active": e.isOpen, "multiselect--disabled": s.disabled, "multiselect--above": r.isAbove, "multiselect--has-options-group": r.hasOptionGroup }, "multiselect"]),
1681
- onFocus: t[13] || (t[13] = (i) => e.activate()),
1682
- onBlur: t[14] || (t[14] = (i) => e.searchable ? !1 : e.deactivate()),
1683
- onKeydown: [
1684
- t[15] || (t[15] = c(g((i) => e.pointerForward(), ["self", "prevent"]), ["down"])),
1685
- t[16] || (t[16] = c(g((i) => e.pointerBackward(), ["self", "prevent"]), ["up"]))
1686
- ],
1687
- onKeypress: t[17] || (t[17] = c(g((i) => e.addPointerElement(i), ["stop", "self"]), ["enter", "tab"])),
1688
- onKeyup: t[18] || (t[18] = c((i) => e.deactivate(), ["esc"])),
1689
- role: "combobox",
1690
- "aria-owns": "listbox-" + e.id
1691
- }, [
1692
- p(e.$slots, "caret", { toggle: e.toggle }, () => [
1693
- h("div", {
1694
- onMousedown: t[0] || (t[0] = g((i) => e.toggle(), ["prevent", "stop"])),
1695
- class: "multiselect__select"
1696
- }, null, 32)
1697
- ]),
1698
- p(e.$slots, "clear", { search: e.search }),
1699
- h("div", je, [
1700
- p(e.$slots, "selection", {
1701
- search: e.search,
1702
- remove: e.removeElement,
1703
- values: r.visibleValues,
1704
- isOpen: e.isOpen
1705
- }, () => [
1706
- w(h("div", ze, [
1707
- (u(!0), d(V, null, E(r.visibleValues, (i, n) => p(e.$slots, "tag", {
1708
- option: i,
1709
- search: e.search,
1710
- remove: e.removeElement
1711
- }, () => [
1712
- (u(), d("span", {
1713
- class: "multiselect__tag",
1714
- key: n
1715
- }, [
1716
- h("span", {
1717
- textContent: v(e.getOptionLabel(i))
1718
- }, null, 8, qe),
1719
- h("i", {
1720
- tabindex: "1",
1721
- onKeypress: c(g((o) => e.removeElement(i), ["prevent"]), ["enter"]),
1722
- onMousedown: g((o) => e.removeElement(i), ["prevent"]),
1723
- class: "multiselect__tag-icon"
1724
- }, null, 40, Ue)
1725
- ]))
1726
- ])), 256))
1727
- ], 512), [
1728
- [S, r.visibleValues.length > 0]
1729
- ]),
1730
- e.internalValue && e.internalValue.length > s.limit ? p(e.$slots, "limit", { key: 0 }, () => [
1731
- h("strong", {
1732
- class: "multiselect__strong",
1733
- textContent: v(s.limitText(e.internalValue.length - s.limit))
1734
- }, null, 8, Je)
1735
- ]) : f("", !0)
1736
- ]),
1737
- I(N, { name: "multiselect__loading" }, {
1738
- default: R(() => [
1739
- p(e.$slots, "loading", {}, () => [
1740
- w(h("div", We, null, 512), [
1741
- [S, s.loading]
1742
- ])
1743
- ])
1744
- ]),
1745
- _: 3
1746
- }),
1747
- e.searchable ? (u(), d("input", {
1748
- key: 0,
1749
- ref: "search",
1750
- name: s.name,
1751
- id: e.id,
1752
- type: "text",
1753
- autocomplete: "off",
1754
- spellcheck: "false",
1755
- placeholder: e.placeholder,
1756
- style: O(r.inputStyle),
1757
- value: e.search,
1758
- disabled: s.disabled,
1759
- tabindex: s.tabindex,
1760
- onInput: t[1] || (t[1] = (i) => e.updateSearch(i.target.value)),
1761
- onFocus: t[2] || (t[2] = g((i) => e.activate(), ["prevent"])),
1762
- onBlur: t[3] || (t[3] = g((i) => e.deactivate(), ["prevent"])),
1763
- onKeyup: t[4] || (t[4] = c((i) => e.deactivate(), ["esc"])),
1764
- onKeydown: [
1765
- t[5] || (t[5] = c(g((i) => e.pointerForward(), ["prevent"]), ["down"])),
1766
- t[6] || (t[6] = c(g((i) => e.pointerBackward(), ["prevent"]), ["up"])),
1767
- t[8] || (t[8] = c(g((i) => e.removeLastElement(), ["stop"]), ["delete"]))
1768
- ],
1769
- onKeypress: t[7] || (t[7] = c(g((i) => e.addPointerElement(i), ["prevent", "stop", "self"]), ["enter"])),
1770
- class: "multiselect__input",
1771
- "aria-controls": "listbox-" + e.id
1772
- }, null, 44, Ye)) : f("", !0),
1773
- r.isSingleLabelVisible ? (u(), d("span", {
1774
- key: 1,
1775
- class: "multiselect__single",
1776
- onMousedown: t[9] || (t[9] = g((...i) => e.toggle && e.toggle(...i), ["prevent"]))
1777
- }, [
1778
- p(e.$slots, "singleLabel", { option: r.singleValue }, () => [
1779
- C(v(e.currentOptionLabel), 1)
1780
- ])
1781
- ], 32)) : f("", !0),
1782
- r.isPlaceholderVisible ? (u(), d("span", {
1783
- key: 2,
1784
- class: "multiselect__placeholder",
1785
- onMousedown: t[10] || (t[10] = g((...i) => e.toggle && e.toggle(...i), ["prevent"]))
1786
- }, [
1787
- p(e.$slots, "placeholder", {}, () => [
1788
- C(v(e.placeholder), 1)
1789
- ])
1790
- ], 32)) : f("", !0)
1791
- ], 512),
1792
- I(N, { name: "multiselect" }, {
1793
- default: R(() => [
1794
- w(h("div", {
1795
- class: y(["multiselect__content-wrapper", e.$attrs.class]),
1796
- onFocus: t[11] || (t[11] = (...i) => e.activate && e.activate(...i)),
1797
- tabindex: "-1",
1798
- onMousedown: t[12] || (t[12] = g(() => {
1799
- }, ["prevent"])),
1800
- style: O({ maxHeight: e.optimizedHeight + "px" }),
1801
- ref: "list"
1802
- }, [
1803
- h("ul", {
1804
- class: "multiselect__content",
1805
- style: O(r.contentStyle),
1806
- role: "listbox",
1807
- id: "listbox-" + e.id
1808
- }, [
1809
- p(e.$slots, "beforeList"),
1810
- e.multiple && e.max === e.internalValue.length ? (u(), d("li", Xe, [
1811
- h("span", Ze, [
1812
- p(e.$slots, "maxElements", {}, () => [
1813
- C("Maximum of " + v(e.max) + " options selected. First remove a selected option to select another.", 1)
1814
- ])
1815
- ])
1816
- ])) : f("", !0),
1817
- !e.max || e.internalValue.length < e.max ? (u(!0), d(V, { key: 1 }, E(e.filteredOptions, (i, n) => (u(), d("li", {
1818
- class: "multiselect__element",
1819
- key: n,
1820
- id: e.id + "-" + n,
1821
- role: i && (i.$isLabel || i.$isDisabled) ? null : "option"
1822
- }, [
1823
- i && (i.$isLabel || i.$isDisabled) ? f("", !0) : (u(), d("span", {
1824
- key: 0,
1825
- class: y([e.optionHighlight(n, i), "multiselect__option"]),
1826
- onClick: g((o) => e.select(i), ["stop"]),
1827
- onMouseenter: g((o) => e.pointerSet(n), ["self"]),
1828
- "data-select": i && i.isTag ? e.tagPlaceholder : r.selectLabelText,
1829
- "data-selected": r.selectedLabelText,
1830
- "data-deselect": r.deselectLabelText
1831
- }, [
1832
- p(e.$slots, "option", {
1833
- option: i,
1834
- search: e.search,
1835
- index: n
1836
- }, () => [
1837
- h("span", null, v(e.getOptionLabel(i)), 1)
1838
- ])
1839
- ], 42, xe)),
1840
- i && (i.$isLabel || i.$isDisabled) ? (u(), d("span", {
1841
- key: 1,
1842
- "data-select": e.groupSelect && r.selectGroupLabelText,
1843
- "data-deselect": e.groupSelect && r.deselectGroupLabelText,
1844
- class: y([e.groupHighlight(n, i), "multiselect__option"]),
1845
- onMouseenter: g((o) => e.groupSelect && e.pointerSet(n), ["self"]),
1846
- onMousedown: g((o) => e.selectGroup(i), ["prevent"])
1847
- }, [
1848
- p(e.$slots, "option", {
1849
- option: i,
1850
- search: e.search,
1851
- index: n
1852
- }, () => [
1853
- h("span", null, v(e.getOptionLabel(i)), 1)
1854
- ])
1855
- ], 42, et)) : f("", !0)
1856
- ], 8, _e))), 128)) : f("", !0),
1857
- w(h("li", null, [
1858
- h("span", tt, [
1859
- p(e.$slots, "noResult", { search: e.search }, () => [
1860
- C("No elements found. Consider changing the search query.")
1861
- ])
1862
- ])
1863
- ], 512), [
1864
- [S, s.showNoResults && e.filteredOptions.length === 0 && e.search && !s.loading]
1865
- ]),
1866
- w(h("li", null, [
1867
- h("span", st, [
1868
- p(e.$slots, "noOptions", {}, () => [
1869
- C("List is empty.")
1870
- ])
1871
- ])
1872
- ], 512), [
1873
- [S, s.showNoOptions && (e.options.length === 0 || r.hasOptionGroup === !0 && e.filteredOptions.length === 0) && !e.search && !s.loading]
1874
- ]),
1875
- p(e.$slots, "afterList")
1876
- ], 12, Qe)
1877
- ], 38), [
1878
- [S, e.isOpen]
1879
- ])
1880
- ]),
1881
- _: 3
1882
- })
1883
- ], 42, Ge);
1884
- }
1885
- const gt = /* @__PURE__ */ P(He, [["render", it]]);
1886
- const lt = { class: "w-100 o-scroll" }, at = {
1887
- key: 1,
1888
- class: "w-max flex-nowrap flex"
1889
- }, ft = {
1890
- __name: "Publics",
1891
- setup(e) {
1892
- let t = A(null);
1893
- X(async () => {
1894
- t.value = await _.read({
1895
- user: H.user._id,
1896
- sort: "numberOfMemberships",
1897
- limit: 10,
1898
- types: ["public"]
1899
- });
1900
- });
1901
- const s = ({ membership: l, isMember: a, targetId: r }) => {
1902
- te.handleMembershipUpdate(t.value, l, a, r);
1903
- };
1904
- return (l, a) => (u(), d("div", lt, [
1905
- !T(t) || T(t).length < 1 ? (u(), F(ee, {
1906
- key: 0,
1907
- title: "Unfortunately, we couldn't find any recommendations for you",
1908
- description: "Explore and find a community or organization that suits your interests.",
1909
- class: "radius-big bg-grey pd-medium"
1910
- })) : (u(), d("div", at, [
1911
- T(t) ? (u(!0), d(V, { key: 0 }, E(T(t), (r, i) => (u(), F(x, {
1912
- key: r._id,
1913
- organization: r,
1914
- user: H.user,
1915
- onUpdateMembership: s,
1916
- class: y(["flex-child-shrink-0 flex-child", { "mn-r-small": i !== T(t).length - 1 }])
1917
- }, null, 8, ["organization", "user", "class"]))), 128)) : f("", !0)
1918
- ]))
1919
- ]));
1920
- }
1921
- };
1922
- export {
1923
- gt as S,
1924
- pt as _,
1925
- ft as a
1926
- };