@eturnity/eturnity_reusable_components 8.10.3-EPDM-14085.1 → 8.10.3-EPDM-13568.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (572) hide show
  1. package/dist/main.es.js +7 -0
  2. package/dist/main.es10.js +10 -0
  3. package/dist/main.es100.js +23 -0
  4. package/dist/main.es101.js +23 -0
  5. package/dist/main.es102.js +20 -0
  6. package/dist/main.es103.js +20 -0
  7. package/dist/main.es104.js +20 -0
  8. package/dist/main.es105.js +37 -0
  9. package/dist/main.es106.js +28 -0
  10. package/dist/main.es107.js +32 -0
  11. package/dist/main.es108.js +18 -0
  12. package/dist/main.es109.js +33 -0
  13. package/dist/main.es11.js +2484 -0
  14. package/dist/main.es110.js +41 -0
  15. package/dist/main.es111.js +36 -0
  16. package/dist/main.es112.js +35 -0
  17. package/dist/main.es113.js +20 -0
  18. package/dist/main.es114.js +23 -0
  19. package/dist/main.es115.js +30 -0
  20. package/dist/main.es116.js +23 -0
  21. package/dist/main.es117.js +32 -0
  22. package/dist/main.es118.js +23 -0
  23. package/dist/main.es119.js +29 -0
  24. package/dist/main.es12.js +133 -0
  25. package/dist/main.es120.js +25 -0
  26. package/dist/main.es121.js +23 -0
  27. package/dist/main.es122.js +28 -0
  28. package/dist/main.es123.js +28 -0
  29. package/dist/main.es124.js +39 -0
  30. package/dist/main.es125.js +37 -0
  31. package/dist/main.es126.js +23 -0
  32. package/dist/main.es127.js +25 -0
  33. package/dist/main.es128.js +23 -0
  34. package/dist/main.es129.js +23 -0
  35. package/dist/main.es13.js +261 -0
  36. package/dist/main.es130.js +23 -0
  37. package/dist/main.es131.js +28 -0
  38. package/dist/main.es132.js +29 -0
  39. package/dist/main.es133.js +29 -0
  40. package/dist/main.es134.js +21 -0
  41. package/dist/main.es135.js +20 -0
  42. package/dist/main.es136.js +28 -0
  43. package/dist/main.es137.js +24 -0
  44. package/dist/main.es138.js +28 -0
  45. package/dist/main.es139.js +23 -0
  46. package/dist/main.es14.js +26 -0
  47. package/dist/main.es140.js +33 -0
  48. package/dist/main.es141.js +30 -0
  49. package/dist/main.es142.js +23 -0
  50. package/dist/main.es143.js +20 -0
  51. package/dist/main.es144.js +19 -0
  52. package/dist/main.es145.js +23 -0
  53. package/dist/main.es146.js +29 -0
  54. package/dist/main.es147.js +28 -0
  55. package/dist/main.es148.js +35 -0
  56. package/dist/main.es149.js +25 -0
  57. package/dist/main.es15.js +1058 -0
  58. package/dist/main.es150.js +25 -0
  59. package/dist/main.es151.js +23 -0
  60. package/dist/main.es152.js +41 -0
  61. package/dist/main.es153.js +41 -0
  62. package/dist/main.es154.js +25 -0
  63. package/dist/main.es155.js +23 -0
  64. package/dist/main.es156.js +23 -0
  65. package/dist/main.es157.js +25 -0
  66. package/dist/main.es158.js +23 -0
  67. package/dist/main.es159.js +23 -0
  68. package/dist/main.es16.js +692 -0
  69. package/dist/main.es160.js +23 -0
  70. package/dist/main.es161.js +23 -0
  71. package/dist/main.es162.js +23 -0
  72. package/dist/main.es163.js +23 -0
  73. package/dist/main.es164.js +20 -0
  74. package/dist/main.es165.js +28 -0
  75. package/dist/main.es166.js +28 -0
  76. package/dist/main.es167.js +28 -0
  77. package/dist/main.es168.js +28 -0
  78. package/dist/main.es169.js +25 -0
  79. package/dist/main.es17.js +95 -0
  80. package/dist/main.es170.js +23 -0
  81. package/dist/main.es171.js +23 -0
  82. package/dist/main.es172.js +20 -0
  83. package/dist/main.es173.js +20 -0
  84. package/dist/main.es174.js +23 -0
  85. package/dist/main.es175.js +18 -0
  86. package/dist/main.es176.js +23 -0
  87. package/dist/main.es177.js +20 -0
  88. package/dist/main.es178.js +25 -0
  89. package/dist/main.es179.js +25 -0
  90. package/dist/main.es18.js +78 -0
  91. package/dist/main.es180.js +23 -0
  92. package/dist/main.es181.js +23 -0
  93. package/dist/main.es182.js +20 -0
  94. package/dist/main.es183.js +23 -0
  95. package/dist/main.es184.js +23 -0
  96. package/dist/main.es185.js +32 -0
  97. package/dist/main.es186.js +23 -0
  98. package/dist/main.es187.js +32 -0
  99. package/dist/main.es188.js +37 -0
  100. package/dist/main.es189.js +32 -0
  101. package/dist/main.es19.js +143 -0
  102. package/dist/main.es190.js +39 -0
  103. package/dist/main.es191.js +28 -0
  104. package/dist/main.es192.js +20 -0
  105. package/dist/main.es193.js +20 -0
  106. package/dist/main.es194.js +25 -0
  107. package/dist/main.es195.js +23 -0
  108. package/dist/main.es196.js +40 -0
  109. package/dist/main.es197.js +23 -0
  110. package/dist/main.es198.js +21 -0
  111. package/dist/main.es199.js +19 -0
  112. package/dist/main.es2.js +34 -0
  113. package/dist/main.es20.js +152 -0
  114. package/dist/main.es200.js +20 -0
  115. package/dist/main.es201.js +20 -0
  116. package/dist/main.es202.js +33 -0
  117. package/dist/main.es203.js +23 -0
  118. package/dist/main.es204.js +23 -0
  119. package/dist/main.es205.js +28 -0
  120. package/dist/main.es206.js +23 -0
  121. package/dist/main.es207.js +23 -0
  122. package/dist/main.es208.js +21 -0
  123. package/dist/main.es209.js +23 -0
  124. package/dist/main.es21.js +108 -0
  125. package/dist/main.es210.js +28 -0
  126. package/dist/main.es211.js +23 -0
  127. package/dist/main.es212.js +23 -0
  128. package/dist/main.es213.js +23 -0
  129. package/dist/main.es214.js +28 -0
  130. package/dist/main.es215.js +28 -0
  131. package/dist/main.es216.js +20 -0
  132. package/dist/main.es217.js +23 -0
  133. package/dist/main.es218.js +35 -0
  134. package/dist/main.es219.js +28 -0
  135. package/dist/main.es22.js +4 -0
  136. package/dist/main.es220.js +29 -0
  137. package/dist/main.es221.js +24 -0
  138. package/dist/main.es222.js +23 -0
  139. package/dist/main.es223.js +28 -0
  140. package/dist/main.es224.js +25 -0
  141. package/dist/main.es225.js +23 -0
  142. package/dist/main.es226.js +23 -0
  143. package/dist/main.es227.js +20 -0
  144. package/dist/main.es228.js +20 -0
  145. package/dist/main.es229.js +23 -0
  146. package/dist/main.es23.js +169 -0
  147. package/dist/main.es230.js +23 -0
  148. package/dist/main.es231.js +25 -0
  149. package/dist/main.es232.js +38 -0
  150. package/dist/main.es233.js +30 -0
  151. package/dist/main.es234.js +28 -0
  152. package/dist/main.es235.js +23 -0
  153. package/dist/main.es236.js +22 -0
  154. package/dist/main.es237.js +28 -0
  155. package/dist/main.es238.js +23 -0
  156. package/dist/main.es239.js +18 -0
  157. package/dist/main.es24.js +201 -0
  158. package/dist/main.es240.js +23 -0
  159. package/dist/main.es241.js +25 -0
  160. package/dist/main.es242.js +23 -0
  161. package/dist/main.es243.js +23 -0
  162. package/dist/main.es244.js +23 -0
  163. package/dist/main.es245.js +23 -0
  164. package/dist/main.es246.js +23 -0
  165. package/dist/main.es247.js +23 -0
  166. package/dist/main.es248.js +23 -0
  167. package/dist/main.es249.js +23 -0
  168. package/dist/main.es25.js +55 -0
  169. package/dist/main.es250.js +30 -0
  170. package/dist/main.es251.js +23 -0
  171. package/dist/main.es252.js +23 -0
  172. package/dist/main.es253.js +28 -0
  173. package/dist/main.es254.js +23 -0
  174. package/dist/main.es255.js +23 -0
  175. package/dist/main.es256.js +28 -0
  176. package/dist/main.es257.js +33 -0
  177. package/dist/main.es258.js +28 -0
  178. package/dist/main.es259.js +28 -0
  179. package/dist/main.es26.js +12 -0
  180. package/dist/main.es260.js +23 -0
  181. package/dist/main.es261.js +25 -0
  182. package/dist/main.es262.js +28 -0
  183. package/dist/main.es263.js +30 -0
  184. package/dist/main.es264.js +23 -0
  185. package/dist/main.es265.js +23 -0
  186. package/dist/main.es266.js +23 -0
  187. package/dist/main.es267.js +23 -0
  188. package/dist/main.es268.js +28 -0
  189. package/dist/main.es269.js +252 -0
  190. package/dist/main.es27.js +6 -0
  191. package/dist/main.es270.js +22 -0
  192. package/dist/main.es271.js +25 -0
  193. package/dist/main.es272.js +7 -0
  194. package/dist/main.es273.js +383 -0
  195. package/dist/main.es274.js +54 -0
  196. package/dist/main.es275.js +15 -0
  197. package/dist/main.es276.js +64 -0
  198. package/dist/main.es277.js +4 -0
  199. package/dist/main.es278.js +4 -0
  200. package/dist/main.es279.js +4 -0
  201. package/dist/main.es28.js +103 -0
  202. package/dist/main.es280.js +4 -0
  203. package/dist/main.es281.js +4 -0
  204. package/dist/main.es282.js +4 -0
  205. package/dist/main.es283.js +4 -0
  206. package/dist/main.es284.js +4 -0
  207. package/dist/main.es285.js +4 -0
  208. package/dist/main.es286.js +4 -0
  209. package/dist/main.es287.js +4 -0
  210. package/dist/main.es288.js +4 -0
  211. package/dist/main.es289.js +4 -0
  212. package/dist/main.es29.js +62 -0
  213. package/dist/main.es290.js +4 -0
  214. package/dist/main.es291.js +4 -0
  215. package/dist/main.es292.js +4 -0
  216. package/dist/main.es293.js +4 -0
  217. package/dist/main.es294.js +4 -0
  218. package/dist/main.es295.js +4 -0
  219. package/dist/main.es296.js +4 -0
  220. package/dist/main.es297.js +4 -0
  221. package/dist/main.es298.js +4 -0
  222. package/dist/main.es299.js +4 -0
  223. package/dist/main.es3.js +70 -0
  224. package/dist/main.es30.js +69 -0
  225. package/dist/main.es300.js +4 -0
  226. package/dist/main.es301.js +4 -0
  227. package/dist/main.es302.js +4 -0
  228. package/dist/main.es303.js +4 -0
  229. package/dist/main.es304.js +4 -0
  230. package/dist/main.es305.js +4 -0
  231. package/dist/main.es306.js +4 -0
  232. package/dist/main.es307.js +4 -0
  233. package/dist/main.es308.js +4 -0
  234. package/dist/main.es309.js +4 -0
  235. package/dist/main.es31.js +801 -0
  236. package/dist/main.es310.js +4 -0
  237. package/dist/main.es311.js +4 -0
  238. package/dist/main.es312.js +4 -0
  239. package/dist/main.es313.js +4 -0
  240. package/dist/main.es314.js +4 -0
  241. package/dist/main.es315.js +4 -0
  242. package/dist/main.es316.js +4 -0
  243. package/dist/main.es317.js +4 -0
  244. package/dist/main.es318.js +4 -0
  245. package/dist/main.es319.js +4 -0
  246. package/dist/main.es32.js +127 -0
  247. package/dist/main.es320.js +4 -0
  248. package/dist/main.es321.js +4 -0
  249. package/dist/main.es322.js +4 -0
  250. package/dist/main.es323.js +4 -0
  251. package/dist/main.es324.js +4 -0
  252. package/dist/main.es325.js +4 -0
  253. package/dist/main.es326.js +4 -0
  254. package/dist/main.es327.js +4 -0
  255. package/dist/main.es328.js +4 -0
  256. package/dist/main.es329.js +4 -0
  257. package/dist/main.es33.js +4 -0
  258. package/dist/main.es330.js +4 -0
  259. package/dist/main.es331.js +4 -0
  260. package/dist/main.es332.js +4 -0
  261. package/dist/main.es333.js +4 -0
  262. package/dist/main.es334.js +4 -0
  263. package/dist/main.es335.js +4 -0
  264. package/dist/main.es336.js +4 -0
  265. package/dist/main.es337.js +4 -0
  266. package/dist/main.es338.js +4 -0
  267. package/dist/main.es339.js +4 -0
  268. package/dist/main.es34.js +29 -0
  269. package/dist/main.es340.js +4 -0
  270. package/dist/main.es341.js +4 -0
  271. package/dist/main.es342.js +4 -0
  272. package/dist/main.es343.js +4 -0
  273. package/dist/main.es344.js +4 -0
  274. package/dist/main.es345.js +4 -0
  275. package/dist/main.es346.js +4 -0
  276. package/dist/main.es347.js +4 -0
  277. package/dist/main.es348.js +4 -0
  278. package/dist/main.es349.js +4 -0
  279. package/dist/main.es35.js +34 -0
  280. package/dist/main.es350.js +4 -0
  281. package/dist/main.es351.js +4 -0
  282. package/dist/main.es352.js +4 -0
  283. package/dist/main.es353.js +4 -0
  284. package/dist/main.es354.js +4 -0
  285. package/dist/main.es355.js +4 -0
  286. package/dist/main.es356.js +4 -0
  287. package/dist/main.es357.js +4 -0
  288. package/dist/main.es358.js +4 -0
  289. package/dist/main.es359.js +4 -0
  290. package/dist/main.es36.js +36 -0
  291. package/dist/main.es360.js +4 -0
  292. package/dist/main.es361.js +4 -0
  293. package/dist/main.es362.js +4 -0
  294. package/dist/main.es363.js +4 -0
  295. package/dist/main.es364.js +4 -0
  296. package/dist/main.es365.js +4 -0
  297. package/dist/main.es366.js +4 -0
  298. package/dist/main.es367.js +4 -0
  299. package/dist/main.es368.js +4 -0
  300. package/dist/main.es369.js +4 -0
  301. package/dist/main.es37.js +41 -0
  302. package/dist/main.es370.js +4 -0
  303. package/dist/main.es371.js +4 -0
  304. package/dist/main.es372.js +4 -0
  305. package/dist/main.es373.js +4 -0
  306. package/dist/main.es374.js +4 -0
  307. package/dist/main.es375.js +4 -0
  308. package/dist/main.es376.js +4 -0
  309. package/dist/main.es377.js +4 -0
  310. package/dist/main.es378.js +4 -0
  311. package/dist/main.es379.js +4 -0
  312. package/dist/main.es38.js +35 -0
  313. package/dist/main.es380.js +4 -0
  314. package/dist/main.es381.js +4 -0
  315. package/dist/main.es382.js +4 -0
  316. package/dist/main.es383.js +4 -0
  317. package/dist/main.es384.js +4 -0
  318. package/dist/main.es385.js +4 -0
  319. package/dist/main.es386.js +4 -0
  320. package/dist/main.es387.js +4 -0
  321. package/dist/main.es388.js +4 -0
  322. package/dist/main.es389.js +4 -0
  323. package/dist/main.es39.js +20 -0
  324. package/dist/main.es390.js +4 -0
  325. package/dist/main.es391.js +4 -0
  326. package/dist/main.es392.js +4 -0
  327. package/dist/main.es393.js +4 -0
  328. package/dist/main.es394.js +4 -0
  329. package/dist/main.es395.js +4 -0
  330. package/dist/main.es396.js +4 -0
  331. package/dist/main.es397.js +4 -0
  332. package/dist/main.es398.js +4 -0
  333. package/dist/main.es399.js +4 -0
  334. package/dist/main.es4.js +19 -0
  335. package/dist/main.es40.js +20 -0
  336. package/dist/main.es400.js +4 -0
  337. package/dist/main.es401.js +4 -0
  338. package/dist/main.es402.js +4 -0
  339. package/dist/main.es403.js +4 -0
  340. package/dist/main.es404.js +4 -0
  341. package/dist/main.es405.js +4 -0
  342. package/dist/main.es406.js +4 -0
  343. package/dist/main.es407.js +4 -0
  344. package/dist/main.es408.js +4 -0
  345. package/dist/main.es409.js +4 -0
  346. package/dist/main.es41.js +25 -0
  347. package/dist/main.es410.js +4 -0
  348. package/dist/main.es411.js +4 -0
  349. package/dist/main.es412.js +4 -0
  350. package/dist/main.es413.js +4 -0
  351. package/dist/main.es414.js +4 -0
  352. package/dist/main.es415.js +4 -0
  353. package/dist/main.es416.js +4 -0
  354. package/dist/main.es417.js +4 -0
  355. package/dist/main.es418.js +4 -0
  356. package/dist/main.es419.js +4 -0
  357. package/dist/main.es42.js +28 -0
  358. package/dist/main.es420.js +4 -0
  359. package/dist/main.es421.js +4 -0
  360. package/dist/main.es422.js +4 -0
  361. package/dist/main.es423.js +4 -0
  362. package/dist/main.es424.js +4 -0
  363. package/dist/main.es425.js +4 -0
  364. package/dist/main.es426.js +4 -0
  365. package/dist/main.es427.js +4 -0
  366. package/dist/main.es428.js +4 -0
  367. package/dist/main.es429.js +4 -0
  368. package/dist/main.es43.js +23 -0
  369. package/dist/main.es430.js +4 -0
  370. package/dist/main.es431.js +4 -0
  371. package/dist/main.es432.js +4 -0
  372. package/dist/main.es433.js +4 -0
  373. package/dist/main.es434.js +4 -0
  374. package/dist/main.es435.js +4 -0
  375. package/dist/main.es436.js +4 -0
  376. package/dist/main.es437.js +4 -0
  377. package/dist/main.es438.js +4 -0
  378. package/dist/main.es439.js +4 -0
  379. package/dist/main.es44.js +44 -0
  380. package/dist/main.es440.js +4 -0
  381. package/dist/main.es441.js +4 -0
  382. package/dist/main.es442.js +4 -0
  383. package/dist/main.es443.js +4 -0
  384. package/dist/main.es444.js +4 -0
  385. package/dist/main.es445.js +4 -0
  386. package/dist/main.es446.js +4 -0
  387. package/dist/main.es447.js +4 -0
  388. package/dist/main.es448.js +4 -0
  389. package/dist/main.es449.js +4 -0
  390. package/dist/main.es45.js +38 -0
  391. package/dist/main.es450.js +4 -0
  392. package/dist/main.es451.js +4 -0
  393. package/dist/main.es452.js +4 -0
  394. package/dist/main.es453.js +4 -0
  395. package/dist/main.es454.js +4 -0
  396. package/dist/main.es455.js +4 -0
  397. package/dist/main.es456.js +4 -0
  398. package/dist/main.es457.js +4 -0
  399. package/dist/main.es458.js +4 -0
  400. package/dist/main.es459.js +4 -0
  401. package/dist/main.es46.js +23 -0
  402. package/dist/main.es460.js +4 -0
  403. package/dist/main.es461.js +4 -0
  404. package/dist/main.es462.js +4 -0
  405. package/dist/main.es463.js +4 -0
  406. package/dist/main.es464.js +4 -0
  407. package/dist/main.es465.js +4 -0
  408. package/dist/main.es466.js +4 -0
  409. package/dist/main.es467.js +4 -0
  410. package/dist/main.es468.js +4 -0
  411. package/dist/main.es469.js +4 -0
  412. package/dist/main.es47.js +23 -0
  413. package/dist/main.es470.js +4 -0
  414. package/dist/main.es471.js +4 -0
  415. package/dist/main.es472.js +4 -0
  416. package/dist/main.es473.js +4 -0
  417. package/dist/main.es474.js +4 -0
  418. package/dist/main.es475.js +4 -0
  419. package/dist/main.es476.js +4 -0
  420. package/dist/main.es477.js +4 -0
  421. package/dist/main.es478.js +4 -0
  422. package/dist/main.es479.js +4 -0
  423. package/dist/main.es48.js +24 -0
  424. package/dist/main.es480.js +4 -0
  425. package/dist/main.es481.js +4 -0
  426. package/dist/main.es482.js +4 -0
  427. package/dist/main.es483.js +4 -0
  428. package/dist/main.es484.js +4 -0
  429. package/dist/main.es485.js +4 -0
  430. package/dist/main.es486.js +4 -0
  431. package/dist/main.es487.js +4 -0
  432. package/dist/main.es488.js +4 -0
  433. package/dist/main.es489.js +4 -0
  434. package/dist/main.es49.js +35 -0
  435. package/dist/main.es490.js +4 -0
  436. package/dist/main.es491.js +4 -0
  437. package/dist/main.es492.js +4 -0
  438. package/dist/main.es493.js +4 -0
  439. package/dist/main.es494.js +4 -0
  440. package/dist/main.es495.js +4 -0
  441. package/dist/main.es496.js +4 -0
  442. package/dist/main.es497.js +4 -0
  443. package/dist/main.es498.js +4 -0
  444. package/dist/main.es499.js +4 -0
  445. package/dist/main.es5.js +586 -0
  446. package/dist/main.es50.js +30 -0
  447. package/dist/main.es500.js +4 -0
  448. package/dist/main.es501.js +4 -0
  449. package/dist/main.es502.js +4 -0
  450. package/dist/main.es503.js +4 -0
  451. package/dist/main.es504.js +4 -0
  452. package/dist/main.es505.js +4 -0
  453. package/dist/main.es506.js +4 -0
  454. package/dist/main.es507.js +4 -0
  455. package/dist/main.es508.js +4 -0
  456. package/dist/main.es509.js +4 -0
  457. package/dist/main.es51.js +34 -0
  458. package/dist/main.es510.js +4 -0
  459. package/dist/main.es511.js +88 -0
  460. package/dist/main.es52.js +20 -0
  461. package/dist/main.es53.js +20 -0
  462. package/dist/main.es54.js +23 -0
  463. package/dist/main.es55.js +28 -0
  464. package/dist/main.es56.js +28 -0
  465. package/dist/main.es57.js +23 -0
  466. package/dist/main.es58.js +25 -0
  467. package/dist/main.es59.js +24 -0
  468. package/dist/main.es6.js +5872 -0
  469. package/dist/main.es60.js +23 -0
  470. package/dist/main.es61.js +23 -0
  471. package/dist/main.es62.js +23 -0
  472. package/dist/main.es63.js +23 -0
  473. package/dist/main.es64.js +23 -0
  474. package/dist/main.es65.js +20 -0
  475. package/dist/main.es66.js +23 -0
  476. package/dist/main.es67.js +23 -0
  477. package/dist/main.es68.js +21 -0
  478. package/dist/main.es69.js +20 -0
  479. package/dist/main.es7.js +1904 -0
  480. package/dist/main.es70.js +23 -0
  481. package/dist/main.es71.js +28 -0
  482. package/dist/main.es72.js +28 -0
  483. package/dist/main.es73.js +23 -0
  484. package/dist/main.es74.js +23 -0
  485. package/dist/main.es75.js +23 -0
  486. package/dist/main.es76.js +23 -0
  487. package/dist/main.es77.js +31 -0
  488. package/dist/main.es78.js +23 -0
  489. package/dist/main.es79.js +33 -0
  490. package/dist/main.es8.js +42 -0
  491. package/dist/main.es80.js +30 -0
  492. package/dist/main.es81.js +23 -0
  493. package/dist/main.es82.js +22 -0
  494. package/dist/main.es83.js +25 -0
  495. package/dist/main.es84.js +28 -0
  496. package/dist/main.es85.js +35 -0
  497. package/dist/main.es86.js +23 -0
  498. package/dist/main.es87.js +23 -0
  499. package/dist/main.es88.js +33 -0
  500. package/dist/main.es89.js +20 -0
  501. package/dist/main.es9.js +4 -0
  502. package/dist/main.es90.js +28 -0
  503. package/dist/main.es91.js +28 -0
  504. package/dist/main.es92.js +23 -0
  505. package/dist/main.es93.js +23 -0
  506. package/dist/main.es94.js +24 -0
  507. package/dist/main.es95.js +28 -0
  508. package/dist/main.es96.js +28 -0
  509. package/dist/main.es97.js +23 -0
  510. package/dist/main.es98.js +23 -0
  511. package/dist/main.es99.js +28 -0
  512. package/dist/style.css +1 -0
  513. package/package.json +1 -1
  514. package/src/App.vue +6 -6
  515. package/src/assets/svgIcons/add_icon-1.svg +2 -2
  516. package/src/assets/svgIcons/arrow_down_unfilled.svg +4 -0
  517. package/src/assets/svgIcons/arrow_up_unfilled.svg +4 -0
  518. package/src/assets/svgIcons/battery.svg +2 -2
  519. package/src/assets/svgIcons/bell_alt.svg +1 -3
  520. package/src/assets/svgIcons/bexio.svg +3 -3
  521. package/src/assets/svgIcons/bom.svg +2 -2
  522. package/src/assets/svgIcons/collections.svg +1 -1
  523. package/src/assets/svgIcons/customer.svg +3 -0
  524. package/src/assets/svgIcons/dashboard.svg +1 -1
  525. package/src/assets/svgIcons/deal_flow.svg +2 -4
  526. package/src/assets/svgIcons/documents.svg +2 -3
  527. package/src/assets/svgIcons/efs.svg +5 -0
  528. package/src/assets/svgIcons/ems-1.svg +2 -2
  529. package/src/assets/svgIcons/ems.svg +2 -2
  530. package/src/assets/svgIcons/energy_meter.svg +3 -12
  531. package/src/assets/svgIcons/financing_for_pv.svg +2 -5
  532. package/src/assets/svgIcons/free_technology.svg +2 -4
  533. package/src/assets/svgIcons/heat_pump.svg +5 -0
  534. package/src/assets/svgIcons/heating_system.svg +3 -0
  535. package/src/assets/svgIcons/initial_situation.svg +2 -2
  536. package/src/assets/svgIcons/integrations.svg +2 -2
  537. package/src/assets/svgIcons/inverter.svg +2 -2
  538. package/src/assets/svgIcons/k2.svg +4 -0
  539. package/src/assets/svgIcons/profile.svg +2 -3
  540. package/src/assets/svgIcons/profitability.svg +2 -2
  541. package/src/assets/svgIcons/project_analysis.svg +2 -3
  542. package/src/assets/svgIcons/project_settings.svg +2 -3
  543. package/src/assets/svgIcons/pv.svg +2 -2
  544. package/src/assets/svgIcons/run_simulation.svg +2 -2
  545. package/src/assets/svgIcons/settings.svg +2 -2
  546. package/src/assets/svgIcons/subscriptions.svg +2 -2
  547. package/src/assets/svgIcons/subsidies.svg +2 -2
  548. package/src/assets/svgIcons/variants.svg +2 -5
  549. package/src/assets/svgIcons/vdv.svg +5 -0
  550. package/src/assets/svgIcons/virtual_storage.svg +2 -3
  551. package/src/assets/theme.js +602 -26
  552. package/src/components/buttons/buttonIcon/index.vue +110 -32
  553. package/src/components/buttons/mainButton/index.vue +73 -34
  554. package/src/components/filter/filterSettings.vue +4 -3
  555. package/src/components/icon/index.vue +29 -6
  556. package/src/components/infoCard/index.vue +12 -8
  557. package/src/components/infoText/index.vue +7 -4
  558. package/src/components/inputs/checkbox/index.vue +2 -2
  559. package/src/components/inputs/inputNumber/index.vue +5 -0
  560. package/src/components/inputs/inputText/index.vue +6 -0
  561. package/src/components/modals/modal/index.vue +5 -4
  562. package/src/components/projectMarker/index.vue +2 -1
  563. package/src/components/sideMenu/index.vue +92 -48
  564. package/src/components/spinner/index.vue +66 -33
  565. package/src/components/tableDropdown/index.vue +29 -30
  566. package/src/components/tables/mainTable/index.vue +12 -9
  567. package/src/assets/svgIcons/inverter-1.svg +0 -5
  568. package/src/assets/svgIcons/subsidies-1.svg +0 -5
  569. package/src/components/draggableCard/defaultProps.js +0 -16
  570. package/src/components/draggableCard/draggableCard.spec.js +0 -99
  571. package/src/components/draggableCard/draggableCard.stories.js +0 -79
  572. package/src/components/draggableCard/index.vue +0 -347
@@ -1,5 +0,0 @@
1
- <svg width="18" height="18" viewBox="0 0 18 18" fill="none" xmlns="http://www.w3.org/2000/svg">
2
- <path d="M1.72271 6.43179V8.55952H4.48362V9.85441H1.72271V12.0278H5.27082V13.3683H0V5.09127H5.27082V6.43179H1.72271Z" fill="white"/>
3
- <path d="M8.27381 6.43179V8.71924H11.2515V10.0655H8.27381V13.3683H6.55109V5.09127H11.8219V6.43179H8.27381Z" fill="white"/>
4
- <path d="M17.441 6.67708C17.3877 6.76455 17.3326 6.8292 17.2755 6.87103C17.2223 6.90906 17.152 6.92807 17.0645 6.92807C16.9808 6.92807 16.8896 6.89955 16.7907 6.84251C16.6956 6.78166 16.5834 6.71701 16.4541 6.64856C16.3248 6.58011 16.1765 6.51736 16.0092 6.46031C15.8419 6.39947 15.646 6.36905 15.4216 6.36905C15.0261 6.36905 14.7295 6.45841 14.5318 6.63715C14.334 6.81208 14.2351 7.04216 14.2351 7.32738C14.2351 7.50992 14.2884 7.66203 14.3948 7.78372C14.5051 7.90161 14.6477 8.00429 14.8227 8.09176C15.0014 8.17923 15.203 8.25719 15.4273 8.32564C15.6517 8.39409 15.8818 8.47015 16.1176 8.55381C16.3533 8.63367 16.5834 8.72875 16.8078 8.83903C17.0322 8.94931 17.2318 9.08812 17.4067 9.25545C17.5855 9.42278 17.7281 9.62813 17.8346 9.87152C17.9449 10.1111 18 10.4039 18 10.75C18 11.1265 17.9334 11.4801 17.8003 11.811C17.671 12.138 17.4828 12.4252 17.2356 12.6724C16.9884 12.9157 16.6823 13.1078 16.3172 13.2485C15.9559 13.3892 15.5452 13.4596 15.0851 13.4596C14.8227 13.4596 14.5603 13.4329 14.2979 13.3797C14.0393 13.3265 13.7883 13.2523 13.5449 13.1572C13.3053 13.0622 13.079 12.9481 12.8661 12.815C12.6531 12.6819 12.4668 12.5336 12.3071 12.37L12.809 11.56C12.8509 11.4992 12.906 11.4497 12.9745 11.4117C13.0429 11.3699 13.1152 11.3489 13.1912 11.3489C13.2939 11.3489 13.4023 11.387 13.5164 11.463C13.6305 11.5391 13.7617 11.6228 13.91 11.714C14.0583 11.8053 14.2294 11.889 14.4234 11.965C14.6211 12.0411 14.8569 12.0791 15.1307 12.0791C15.53 12.0791 15.838 11.9878 16.0548 11.8053C16.2754 11.6228 16.3857 11.3508 16.3857 10.9896C16.3857 10.7804 16.3305 10.6112 16.2202 10.4819C16.1138 10.3526 15.9731 10.2442 15.7981 10.1567C15.6232 10.0693 15.4235 9.99511 15.1992 9.93427C14.9748 9.86962 14.7447 9.79926 14.5089 9.72321C14.2732 9.64715 14.0431 9.55588 13.8187 9.4494C13.5943 9.34292 13.3947 9.20221 13.2198 9.02727C13.0448 8.85234 12.9022 8.63558 12.7919 8.37698C12.6854 8.11838 12.6322 7.79704 12.6322 7.41294C12.6322 7.10491 12.693 6.80638 12.8147 6.51736C12.9364 6.22834 13.1152 5.97164 13.351 5.74727C13.5867 5.5229 13.8758 5.34226 14.218 5.20536C14.5641 5.06845 14.9596 5 15.4045 5C15.9027 5 16.3629 5.07796 16.785 5.23388C17.2109 5.38599 17.5703 5.59896 17.8631 5.87277L17.441 6.67708Z" fill="white"/>
5
- </svg>
@@ -1,5 +0,0 @@
1
- <svg fill="none" height="19" viewbox="10 11 20 19" width="20" xmlns="http://www.w3.org/2000/svg">
2
- <path clip-rule="evenodd" d="M12.1033 25.5601C13.0105 24.899 14.2445 23.9998 16.4505 23.9998C17.4975 23.9998 18.329 24.1906 19.0439 24.4994C19.7215 24.7922 20.2572 25.178 20.6877 25.488L20.7181 25.5099C21.1741 25.8382 21.5209 26.083 21.9419 26.2649C22.3417 26.4376 22.8479 26.5678 23.5843 26.5678C24.9591 26.5678 25.5311 26.1595 26.3692 25.5613C26.6017 25.3954 26.8547 25.2149 27.1509 25.0244C27.7083 24.666 28.4508 24.8273 28.8092 25.3848C29.1676 25.9422 29.0063 26.6847 28.4489 27.0431C28.2828 27.1499 28.1089 27.2766 27.9212 27.4134C27.0145 28.0741 25.7882 28.9677 23.5843 28.9677C22.537 28.9677 21.7053 28.7769 20.9903 28.4681C20.3124 28.1753 19.7765 27.7894 19.3458 27.4792L19.3158 27.4576C18.8598 27.1293 18.513 26.8844 18.0921 26.7026C17.6924 26.5299 17.1866 26.3998 16.4505 26.3998C15.0763 26.3998 14.5087 26.8048 13.6754 27.3995C13.4303 27.5745 13.1621 27.7659 12.8436 27.9682C12.2842 28.3236 11.5426 28.1582 11.1872 27.5988C10.8319 27.0394 10.9973 26.2978 11.5567 25.9425C11.7281 25.8336 11.9081 25.7024 12.1033 25.5601Z" fill="#263238" fill-rule="evenodd"></path>
3
- <path clip-rule="evenodd" d="M12.1033 19.5602C13.0105 18.8991 14.2445 17.9999 16.4505 17.9999C17.4975 17.9999 18.329 18.1907 19.0439 18.4995C19.7215 18.7923 20.2572 19.1781 20.6877 19.4881L20.7181 19.51C21.1741 19.8383 21.5209 20.0831 21.9419 20.265C22.3417 20.4377 22.8479 20.5679 23.5843 20.5679C24.9591 20.5679 25.5311 20.1596 26.3692 19.5614C26.6017 19.3955 26.8547 19.215 27.1509 19.0245C27.7083 18.6661 28.4508 18.8274 28.8092 19.3849C29.1676 19.9423 29.0063 20.6848 28.4489 21.0432C28.2828 21.15 28.1089 21.2767 27.9212 21.4135C27.0145 22.0742 25.7882 22.9678 23.5843 22.9678C22.537 22.9678 21.7053 22.777 20.9903 22.4682C20.3124 22.1754 19.7765 21.7895 19.3458 21.4793L19.3158 21.4577C18.8598 21.1294 18.513 20.8845 18.0921 20.7027C17.6924 20.53 17.1866 20.3999 16.4505 20.3999C15.0763 20.3999 14.5087 20.8049 13.6754 21.3996C13.4303 21.5746 13.1621 21.766 12.8436 21.9683C12.2842 22.3237 11.5426 22.1583 11.1872 21.5989C10.8319 21.0395 10.9973 20.2979 11.5567 19.9426C11.7281 19.8337 11.9081 19.7025 12.1033 19.5602Z" fill="#263238" fill-rule="evenodd"></path>
4
- <path clip-rule="evenodd" d="M12.1033 13.5603C13.0105 12.8992 14.2445 12 16.4505 12C17.4975 12 18.329 12.1908 19.0439 12.4996C19.7215 12.7924 20.2572 13.1782 20.6877 13.4882L20.7181 13.5101C21.1741 13.8384 21.5209 14.0832 21.9419 14.2651C22.3417 14.4378 22.8479 14.568 23.5843 14.568C24.9591 14.568 25.5311 14.1597 26.3692 13.5615C26.6017 13.3956 26.8547 13.2151 27.1509 13.0246C27.7083 12.6662 28.4508 12.8275 28.8092 13.385C29.1676 13.9424 29.0063 14.6849 28.4489 15.0433C28.2828 15.1501 28.1089 15.2768 27.9212 15.4136C27.0145 16.0743 25.7882 16.9679 23.5843 16.9679C22.537 16.9679 21.7053 16.7771 20.9903 16.4683C20.3124 16.1755 19.7765 15.7896 19.3458 15.4794L19.3158 15.4578C18.8598 15.1295 18.513 14.8846 18.0921 14.7028C17.6924 14.5301 17.1866 14.4 16.4505 14.4C15.0763 14.4 14.5087 14.805 13.6754 15.3997C13.4303 15.5747 13.1621 15.7661 12.8436 15.9684C12.2842 16.3238 11.5426 16.1584 11.1872 15.599C10.8319 15.0396 10.9973 14.298 11.5567 13.9427C11.7281 13.8338 11.9081 13.7026 12.1033 13.5603Z" fill="#263238" fill-rule="evenodd"></path>
5
- </svg>
@@ -1,16 +0,0 @@
1
- const defaultProps = {
2
- title: 'Sample Title',
3
- infoText: 'Sample Info Text',
4
- initialPosition: { top: '0px', left: '0px' },
5
- minWidth: '284px',
6
- maxWidth: '284px',
7
- dragTargets: ['document'],
8
- dragBounds: {},
9
- sampleBody1:
10
- 'Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.',
11
- sampleBody2:
12
- 'Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.',
13
- sampleFooter: 'Sample footer',
14
- }
15
-
16
- export default defaultProps
@@ -1,99 +0,0 @@
1
- import { mount } from '@vue/test-utils'
2
- import DraggableCard from '@/components/draggableCard'
3
- import defaultProps from './defaultProps'
4
-
5
- jest.mock('@/components/icon/iconCache.mjs', () => ({
6
- // need to mock this due to how jest handles import.meta
7
- fetchIcon: jest.fn(() => Promise.resolve('mocked-icon-url.svg')),
8
- }))
9
-
10
- describe('DraggableCard.vue', () => {
11
- it('renders properly with required props', () => {
12
- const wrapper = mount(DraggableCard, { props: defaultProps })
13
- expect(
14
- wrapper.find('[data-test-id="draggable_card_header"]').text()
15
- ).toContain(defaultProps.title)
16
-
17
- // Expect no footer rendered if not provided
18
- const footerElement = wrapper.find('[data-test-id="draggable_card_footer"]')
19
- expect(footerElement.exists()).toBe(false)
20
- })
21
-
22
- it('renders body slot content correctly', () => {
23
- const wrapper = mount(DraggableCard, {
24
- props: defaultProps,
25
- slots: {
26
- body: `
27
- <div class="custom_body1">${defaultProps.sampleBody1}</div>
28
- <div class="custom_body2">${defaultProps.sampleBody2}</div>
29
- `,
30
- },
31
- })
32
- expect(wrapper.find('.custom_body1').exists()).toBe(true)
33
- expect(wrapper.text()).toContain(defaultProps.sampleBody1)
34
- expect(wrapper.find('.custom_body2').exists()).toBe(true)
35
- expect(wrapper.text()).toContain(defaultProps.sampleBody2)
36
- })
37
-
38
- it('renders footer slot content correctly', () => {
39
- const wrapper = mount(DraggableCard, {
40
- props: defaultProps,
41
- slots: {
42
- footer: `<div class="custom_footer">${defaultProps.sampleFooter}</div>`,
43
- },
44
- })
45
- expect(
46
- wrapper.find('[data-test-id="draggable_card_footer"]').exists()
47
- ).toBe(true)
48
- expect(wrapper.find('.custom_footer').exists()).toBe(true)
49
- expect(wrapper.text()).toContain(defaultProps.sampleFooter)
50
- })
51
-
52
- it('emits "on-close" when close button is clicked', async () => {
53
- const wrapper = mount(DraggableCard, { props: defaultProps })
54
- await wrapper
55
- .find('[data-test-id="draggable_card_close_button"]')
56
- .trigger('click')
57
- expect(wrapper.emitted('on-close')).toBeTruthy()
58
- })
59
-
60
- it('toggles collapse state when arrow icon is clicked', async () => {
61
- const wrapper = mount(DraggableCard, {
62
- props: { ...defaultProps, isCollapsible: true },
63
- })
64
- expect(wrapper.vm.isCollapsed).toBe(false)
65
- await wrapper
66
- .find('[data-test-id="draggable_card_collapse_button"]')
67
- .trigger('click')
68
- expect(wrapper.vm.isCollapsed).toBe(true)
69
- })
70
-
71
- it('handles drag start event', async () => {
72
- const wrapper = mount(DraggableCard, { props: defaultProps })
73
- await wrapper
74
- .find('[data-test-id="draggable_card_drag_icon"]')
75
- .trigger('mousedown', { clientX: 100, clientY: 100 })
76
- expect(wrapper.vm.isDragging).toBe(true)
77
- })
78
-
79
- it('handles drag move event', async () => {
80
- const wrapper = mount(DraggableCard, { props: defaultProps })
81
- wrapper.vm.onDragStart(
82
- { preventDefault: () => {}, clientX: 100, clientY: 100 },
83
- false
84
- )
85
- wrapper.vm.onDrag({ preventDefault: () => {}, clientX: 120, clientY: 120 })
86
- expect(wrapper.vm.eventCoordinates.x).toBe(120)
87
- expect(wrapper.vm.eventCoordinates.y).toBe(120)
88
- })
89
-
90
- it('handles drag end event', async () => {
91
- const wrapper = mount(DraggableCard, { props: defaultProps })
92
- wrapper.vm.onDragStart(
93
- { preventDefault: () => {}, clientX: 100, clientY: 100 },
94
- false
95
- )
96
- wrapper.vm.onDragEnd()
97
- expect(wrapper.vm.isDragging).toBe(false)
98
- })
99
- })
@@ -1,79 +0,0 @@
1
- import defaultProps from './defaultProps'
2
- import DraggableCard from './index.vue'
3
- import styled from 'vue3-styled-components'
4
- import theme from '@/assets/theme'
5
-
6
- export default {
7
- title: 'DraggableCard',
8
- component: DraggableCard,
9
- tags: ['autodocs'],
10
- }
11
-
12
- const TextContainer = styled.div`
13
- font-family: ${theme.fonts.mainFont};
14
- color: ${theme.colors.white};
15
- font-weight: 400;
16
- font-size: 14px;
17
- line-height: 21px;
18
- letter-spacing: 0%;
19
- `
20
-
21
- const CompleteTemplate = (args) => {
22
- return {
23
- components: { DraggableCard, TextContainer },
24
- setup() {
25
- return { args }
26
- },
27
- template: `
28
- <DraggableCard v-bind="args">
29
- <template #body>
30
- <TextContainer>{{ args.sampleBody1 }}</TextContainer>
31
- <TextContainer>{{ args.sampleBody2 }}</TextContainer>
32
- </template>
33
- <template #footer>
34
- <TextContainer>{{ args.sampleFooter }}</TextContainer>
35
- </template>
36
- </DraggableCard>
37
- `,
38
- }
39
- }
40
-
41
- export const Default = CompleteTemplate.bind({})
42
- Default.args = {
43
- ...defaultProps,
44
- }
45
-
46
- export const NotCollapsible = CompleteTemplate.bind({})
47
- NotCollapsible.args = {
48
- ...defaultProps,
49
- isCollapsible: false,
50
- }
51
-
52
- export const AdjustWidth = CompleteTemplate.bind({})
53
- AdjustWidth.args = {
54
- ...defaultProps,
55
- minWidth: '100px',
56
- maxWidth: '500px',
57
- }
58
-
59
- const NoFooterTemplate = (args) => {
60
- return {
61
- components: { DraggableCard, TextContainer },
62
- setup() {
63
- return { args }
64
- },
65
- template: `
66
- <DraggableCard v-bind="args">
67
- <template #body>
68
- <TextContainer>{{ args.sampleBody1 }}</TextContainer>
69
- <TextContainer>{{ args.sampleBody2 }}</TextContainer>
70
- </template>
71
- </DraggableCard>
72
- `,
73
- }
74
- }
75
-
76
- export const NoFooter = NoFooterTemplate.bind({})
77
- NoFooter.args = {
78
- ...defaultProps,
79
- }
@@ -1,347 +0,0 @@
1
- <template>
2
- <CardContainer
3
- data-test-id="draggable_card_container"
4
- :initial-position="initialPosition"
5
- :max-width="maxWidth"
6
- :min-width="minWidth"
7
- >
8
- <HeaderContainer data-test-id="draggable_card_header">
9
- <SubHeaderWrapper>
10
- <LeftIconsContainer>
11
- <DragHandleWrapper :class="{ dragging: isDragging }">
12
- <RCIcon
13
- :color="theme.colors.grey3"
14
- data-test-id="draggable_card_drag_icon"
15
- name="drag_icon"
16
- size="14px"
17
- :title="$gettext('drag_drop')"
18
- @mousedown="(event) => onDragStart(event, false)"
19
- @touchstart="
20
- (event) => {
21
- onDragStart(event, true)
22
- }
23
- "
24
- />
25
- </DragHandleWrapper>
26
- <ArrowIconWrapper
27
- v-if="isCollapsible"
28
- data-test-id="draggable_card_collapse_button"
29
- :is-collapsed="isCollapsed"
30
- @click="toggleCollapse"
31
- >
32
- <CollapseArrowIcon />
33
- </ArrowIconWrapper>
34
- </LeftIconsContainer>
35
- <TitleContainer>
36
- <TextContainer>{{ title }}</TextContainer>
37
- <InfoText v-if="infoText?.length" :text="infoText" />
38
- </TitleContainer>
39
- </SubHeaderWrapper>
40
- <CloseButton
41
- class="close"
42
- data-test-id="draggable_card_close_button"
43
- @click="$emit('on-close')"
44
- />
45
- </HeaderContainer>
46
- <BodyContainer v-if="!isCollapsed" data-test-id="draggable_card_body">
47
- <slot name="body"></slot>
48
- </BodyContainer>
49
- <FooterContainer v-if="$slots.footer" data-test-id="draggable_card_footer">
50
- <slot name="footer"></slot>
51
- </FooterContainer>
52
- </CardContainer>
53
- </template>
54
-
55
- <script>
56
- import styled from 'vue3-styled-components'
57
- import theme from '../../assets/theme.js'
58
- import RCIcon from '../icon'
59
- import CloseButton from '../buttons/closeButton'
60
- import InfoText from '../infoText'
61
- import CollapseArrowIcon from '../../assets/icons/collapse_arrow_icon.svg'
62
-
63
- const CardContainerAttr = {
64
- initialPosition: Object,
65
- minWidth: String,
66
- maxWidth: String,
67
- }
68
- const CardContainer = styled('div', CardContainerAttr)`
69
- position: absolute;
70
- display: flex;
71
- flex-direction: column;
72
- border-radius: 4px;
73
- min-width: ${(props) => props.minWidth};
74
- max-width: ${(props) => props.maxWidth};
75
- background: ${theme.colors.transparentBlack2};
76
- z-index: 5;
77
- ${(props) =>
78
- props.initialPosition?.top && `top: ${props.initialPosition.top};`}
79
- ${(props) =>
80
- props.initialPosition?.right && `right: ${props.initialPosition.right};`}
81
- ${(props) =>
82
- props.initialPosition?.left && `left: ${props.initialPosition.left};`}
83
- ${(props) =>
84
- props.initialPosition?.bottom &&
85
- `bottom: ${props.initialPosition.bottom};`}
86
- `
87
-
88
- const HeaderContainer = styled.div`
89
- display: flex;
90
- align-items: center;
91
- justify-content: space-between;
92
- padding: 8px;
93
- `
94
-
95
- const SubHeaderWrapper = styled.div`
96
- display: flex;
97
- min-width: 180px;
98
- align-items: center;
99
- justify-content: space-between;
100
- height: fit-content;
101
- margin-right: 14px;
102
- `
103
-
104
- const LeftIconsContainer = styled.div`
105
- display: flex;
106
- align-items: center;
107
- gap: 4px;
108
- margin-right: 14px;
109
- `
110
-
111
- const TitleContainer = styled.div`
112
- display: flex;
113
- align-items: center;
114
- gap: 8px;
115
- `
116
-
117
- const TextContainer = styled.div`
118
- font-family: ${theme.fonts.mainFont};
119
- font-weight: 600;
120
- font-size: 14px;
121
- line-height: 19.6px;
122
- letter-spacing: -1%;
123
- color: ${theme.colors.white};
124
- word-break: break-word;
125
- overflow-wrap: break-word;
126
- white-space: normal;
127
- `
128
-
129
- const DragHandleWrapper = styled.div`
130
- display: grid;
131
- align-items: center;
132
- justify-items: center;
133
- width: 26px;
134
- height: 26px;
135
- cursor: grab;
136
- &.dragging {
137
- cursor: grabbing;
138
- }
139
- `
140
-
141
- const collapsedAttrs = {
142
- isCollapsed: Boolean,
143
- }
144
- const ArrowIconWrapper = styled('div', collapsedAttrs)`
145
- display: flex;
146
- align-items: center;
147
- justify-content: center;
148
- width: 8px;
149
- transition: transform 0.3s ease;
150
- cursor: pointer;
151
- path {
152
- fill: ${theme.colors.white};
153
- }
154
- ${(props) => props.isCollapsed && 'transform: rotate(-180deg);'}
155
- `
156
-
157
- const BodyContainer = styled.div`
158
- display: flex;
159
- flex-direction: column;
160
- gap: 16px;
161
- padding-top: 8px;
162
- padding-right: 16px;
163
- padding-bottom: 8px;
164
- padding-left: 16px;
165
- word-break: break-word;
166
- overflow-wrap: break-word;
167
- white-space: normal;
168
- `
169
-
170
- const FooterContainer = styled.div`
171
- display: flex;
172
- border-radius: 4px;
173
- align-items: center;
174
- justify-content: space-between;
175
- padding: 8px;
176
- background: ${theme.colors.eturnityGrey};
177
- word-break: break-word;
178
- overflow-wrap: break-word;
179
- white-space: normal;
180
- `
181
-
182
- export default {
183
- name: 'DraggableCard',
184
- components: {
185
- CardContainer,
186
- HeaderContainer,
187
- SubHeaderWrapper,
188
- LeftIconsContainer,
189
- TextContainer,
190
- DragHandleWrapper,
191
- ArrowIconWrapper,
192
- CollapseArrowIcon,
193
- RCIcon,
194
- CloseButton,
195
- InfoText,
196
- TitleContainer,
197
- BodyContainer,
198
- FooterContainer,
199
- },
200
- props: {
201
- minWidth: {
202
- required: true,
203
- type: String,
204
- },
205
- maxWidth: {
206
- required: true,
207
- type: String,
208
- },
209
- initialPosition: {
210
- required: true,
211
- type: Object,
212
- },
213
- title: {
214
- required: true,
215
- type: String,
216
- },
217
- isCollapsible: {
218
- required: false,
219
- type: Boolean,
220
- default: true,
221
- },
222
- infoText: {
223
- required: false,
224
- type: String,
225
- default: '',
226
- },
227
- dragTargets: {
228
- required: false,
229
- type: Array,
230
- default: () => ['document'],
231
- },
232
- dragBounds: {
233
- required: false,
234
- type: Object,
235
- default: () => {},
236
- },
237
- },
238
- emits: ['on-close'],
239
- data() {
240
- return {
241
- isCollapsed: false,
242
- isDragging: false,
243
- isTouchStart: false,
244
- eventCoordinates: {
245
- x: 0,
246
- y: 0,
247
- },
248
- }
249
- },
250
- computed: {
251
- dragBoundsEnabled() {
252
- const minPosition = this.dragBounds?.min
253
- const maxPosition = this.dragBounds?.max
254
- return (
255
- minPosition?.top &&
256
- minPosition?.left &&
257
- maxPosition?.top &&
258
- maxPosition?.left
259
- )
260
- },
261
- theme() {
262
- return theme
263
- },
264
- },
265
- beforeUnmount() {
266
- this.removeEvents()
267
- },
268
- methods: {
269
- toggleCollapse() {
270
- this.isCollapsed = !this.isCollapsed
271
- },
272
- onDragStart(e, isTouchStart) {
273
- e.preventDefault()
274
- this.isDragging = true
275
- this.isTouchStart = isTouchStart
276
- this.eventCoordinates.x = isTouchStart
277
- ? e.touches[0].clientX
278
- : e.clientX
279
- this.eventCoordinates.y = isTouchStart
280
- ? e.touches[0].clientY
281
- : e.clientY
282
- this.dragTargets.forEach((id) => {
283
- const target =
284
- id === 'document' ? document : document.getElementById(id)
285
- if (target && target.addEventListener) {
286
- target.addEventListener(
287
- isTouchStart ? 'touchend' : 'mouseup',
288
- this.onDragEnd
289
- )
290
- target.addEventListener(
291
- isTouchStart ? 'touchmove' : 'mousemove',
292
- this.onDrag
293
- )
294
- }
295
- })
296
- document.addEventListener(
297
- isTouchStart ? 'touchend' : 'mouseup',
298
- this.onDragEnd
299
- )
300
- },
301
- onDrag(e) {
302
- e.preventDefault()
303
- const eventX = this.isTouchStart ? e.touches[0].clientX : e.clientX
304
- const eventY = this.isTouchStart ? e.touches[0].clientY : e.clientY
305
- const deltaX = this.eventCoordinates.x - eventX
306
- const deltaY = this.eventCoordinates.y - eventY
307
- this.eventCoordinates.x = eventX
308
- this.eventCoordinates.y = eventY
309
- const element = this.$el
310
- let positionY = element.offsetTop - deltaY
311
- let positionX = element.offsetLeft - deltaX
312
- if (this.dragBoundsEnabled) {
313
- const minPosition = this.dragBounds.min
314
- const maxPosition = this.dragBounds.max
315
- positionY = Math.min(
316
- Math.max(positionY, minPosition.top),
317
- maxPosition.top
318
- )
319
- positionX = Math.min(
320
- Math.max(positionX, minPosition.left),
321
- maxPosition.left
322
- )
323
- }
324
- element.style.top = positionY + 'px'
325
- element.style.left = positionX + 'px'
326
- },
327
- onDragEnd() {
328
- this.isDragging = false
329
- this.removeEvents()
330
- },
331
- removeEvents() {
332
- this.dragTargets.forEach((id) => {
333
- const target =
334
- id === 'document' ? document : document.getElementById(id)
335
- if (target && target.removeEventListener) {
336
- target.removeEventListener('mouseup', this.onDragEnd)
337
- target.removeEventListener('touchend', this.onDragEnd)
338
- target.removeEventListener('mousemove', this.onDrag)
339
- target.removeEventListener('touchmove', this.onDrag)
340
- }
341
- })
342
- document.removeEventListener('mouseup', this.onDragEnd)
343
- document.removeEventListener('touchend', this.onDragEnd)
344
- },
345
- },
346
- }
347
- </script>