ep-lib-ts 1.0.37 → 1.0.39

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 (276) hide show
  1. package/dist/BgAudio-BDO4Ln5y.js +4 -0
  2. package/dist/DisplayBox-Diko7_uH.js +4 -0
  3. package/dist/{Ep360Image-BZpa7qLl.js → Ep360Image-Dmwx7NrY.js} +1 -1
  4. package/dist/{Ep360Video-Wy_YWl7-.js → Ep360Video-b_stvC2Z.js} +1 -1
  5. package/dist/EpAlert-iWXSHupC.js +4 -0
  6. package/dist/EpAudio-Bnb1MIw6.js +4 -0
  7. package/dist/EpBadge-BcVkBKJK.js +4 -0
  8. package/dist/EpBarChart-D42B3a97.js +4 -0
  9. package/dist/{EpBranchingScenario-5sbzBXZ0.js → EpBranchingScenario-dEapAg2r.js} +1 -1
  10. package/dist/EpBtn-BtyunWne.js +4 -0
  11. package/dist/EpCard--mtof8hL.js +4 -0
  12. package/dist/{EpCheckbox.vue_vue_type_script_setup_true_lang-Dqi62vJ8.js → EpCheckbox-D-AiG1k1.js} +7 -7
  13. package/dist/EpChip-DitreF_J.js +4 -0
  14. package/dist/EpCodeblock-nBOawE0H.js +4 -0
  15. package/dist/EpConclusion-CcOvoC8e.js +4 -0
  16. package/dist/EpContentSlider-DpIiJmPt.js +4 -0
  17. package/dist/{EpDarkmode-CuVlLi72.js → EpDarkmode-DV-fRn1K.js} +1 -1
  18. package/dist/EpDescription-DeVW7LNL.js +4 -0
  19. package/dist/EpDivider-vEs9W9Km.js +4 -0
  20. package/dist/EpEdu-BC4BxjYR.js +4 -0
  21. package/dist/EpFlex-xdVOYg4a.js +4 -0
  22. package/dist/EpFunnelChart-CF1CM2id.js +4 -0
  23. package/dist/EpHeader-BMoXpQdW.js +4 -0
  24. package/dist/{EpHover-Kp8XbqYO.js → EpHover-CwOc7bvn.js} +1 -1
  25. package/dist/{EpHover.vue_vue_type_script_setup_true_lang-BxiamS7-.js → EpHover.vue_vue_type_script_setup_true_lang-DDLIDTha.js} +1 -1
  26. package/dist/{EpHoverCard-DRRYl4MK.js → EpHoverCard-BTWsiA2z.js} +2 -2
  27. package/dist/EpIcon-Cektqqle.js +4 -0
  28. package/dist/EpIframe-CFLSXU7z.js +4 -0
  29. package/dist/EpImg-Ct-KfkRp.js +4 -0
  30. package/dist/{EpInput-BKc_tU1_.js → EpInput-c9THhDCs.js} +1 -1
  31. package/dist/EpInstructions-BCFWkov8.js +4 -0
  32. package/dist/EpIntroduction-Cx1Tc920.js +4 -0
  33. package/dist/EpLineChart-BffNNoNj.js +4 -0
  34. package/dist/EpLink-Bx_E9Gjz.js +4 -0
  35. package/dist/EpLinkVersion-6CTPFhT5.js +4 -0
  36. package/dist/{EpList-B2x9zHps.js → EpList-CM3b-mLc.js} +1 -1
  37. package/dist/EpModal-DLG_mddB.js +4 -0
  38. package/dist/{EpNothing-D3fg3Krb.js → EpNothing-DVY_GKL6.js} +1 -1
  39. package/dist/EpObjective-DIWMrap_.js +4 -0
  40. package/dist/EpPieChart-CTDL07vZ.js +4 -0
  41. package/dist/EpQuestion-RzrZk_Op.js +4 -0
  42. package/dist/EpQuote-SaMcAmmL.js +4 -0
  43. package/dist/EpRadio-w5IkZmj5.js +4 -0
  44. package/dist/EpRadioSummative-BeZecHlR.js +4 -0
  45. package/dist/EpReading-CVgr9TGN.js +4 -0
  46. package/dist/EpResource-BEql6U6K.js +4 -0
  47. package/dist/EpScope-BAuTDV_B.js +4 -0
  48. package/dist/EpSection-CESMVDna.js +4 -0
  49. package/dist/EpSectionCols-CacYX-v3.js +4 -0
  50. package/dist/EpSkeleton-CuvqT7PL.js +4 -0
  51. package/dist/EpSoftware-LK_nIUJY.js +4 -0
  52. package/dist/EpSpecificObjective-BTavyAY9.js +4 -0
  53. package/dist/EpSpinner-CZo0f9Nx.js +4 -0
  54. package/dist/EpStackedList-DWkLmrqI.js +75 -0
  55. package/dist/EpSummativeTable-Dlhhgq1A.js +4 -0
  56. package/dist/EpSvg-CG-uua_J.js +4 -0
  57. package/dist/EpTable-DsXZI8Hm.js +4 -0
  58. package/dist/EpTerm-DGTKAJqq.js +4 -0
  59. package/dist/EpText-kB0vb1Da.js +4 -0
  60. package/dist/EpTimeLine-DK_bzCen.js +4 -0
  61. package/dist/EpVideo-CPN6M6cs.js +4 -0
  62. package/dist/EpVideoPanopto-UZckfqS1.js +4 -0
  63. package/dist/EpWordDef-dSnuxRtl.js +4 -0
  64. package/dist/components/basics/EpAvatar.vue.d.ts +35 -4
  65. package/dist/components/basics/EpBadge.vue.d.ts +28 -3
  66. package/dist/components/basics/EpBtn.vue.d.ts +38 -13
  67. package/dist/components/basics/EpCard.vue.d.ts +46 -14
  68. package/dist/components/basics/EpChip.vue.d.ts +38 -12
  69. package/dist/components/basics/EpDivider.vue.d.ts +33 -3
  70. package/dist/components/basics/EpFlex.vue.d.ts +2 -8
  71. package/dist/components/basics/EpHover.vue.d.ts +32 -10
  72. package/dist/components/basics/EpHoverCard.vue.d.ts +50 -14
  73. package/dist/components/basics/EpIcon.vue.d.ts +26 -3
  74. package/dist/components/basics/EpImg.vue.d.ts +38 -2
  75. package/dist/components/basics/EpList.vue.d.ts +11 -0
  76. package/dist/components/basics/EpListitem.vue.d.ts +45 -0
  77. package/dist/components/basics/EpSection.vue.d.ts +31 -10
  78. package/dist/components/basics/EpSectionCols.vue.d.ts +39 -11
  79. package/dist/components/basics/EpSpinner.vue.d.ts +29 -2
  80. package/dist/components/basics/EpStackedList.vue.d.ts +40 -2
  81. package/dist/components/basics/EpTable.vue.d.ts +18 -1
  82. package/dist/components/basics/EpText.vue.d.ts +33 -2
  83. package/dist/components/charts/EpBarChart.vue.d.ts +28 -2
  84. package/dist/components/charts/EpFunnelChart.vue.d.ts +35 -3
  85. package/dist/components/charts/EpLineChart.vue.d.ts +28 -2
  86. package/dist/components/charts/EpPieChart.vue.d.ts +31 -3
  87. package/dist/components/educationals/EpBranchingScenario.vue.d.ts +25 -2
  88. package/dist/components/educationals/EpCodeblock.vue.d.ts +33 -3
  89. package/dist/components/educationals/EpConclusion.vue.d.ts +25 -10
  90. package/dist/components/educationals/EpDescription.vue.d.ts +25 -10
  91. package/dist/components/educationals/EpEdu.vue.d.ts +37 -13
  92. package/dist/components/educationals/EpInstructions.vue.d.ts +23 -2
  93. package/dist/components/educationals/EpIntroduction.vue.d.ts +25 -10
  94. package/dist/components/educationals/EpObjective.vue.d.ts +25 -10
  95. package/dist/components/educationals/EpReading.vue.d.ts +49 -3
  96. package/dist/components/educationals/EpResource.vue.d.ts +24 -2
  97. package/dist/components/educationals/EpScope.vue.d.ts +19 -1
  98. package/dist/components/educationals/EpSpecificObjective.vue.d.ts +25 -2
  99. package/dist/components/forms/EpCheckbox.vue.d.ts +36 -5
  100. package/dist/components/forms/EpInput.vue.d.ts +44 -7
  101. package/dist/components/forms/EpRadio.vue.d.ts +39 -5
  102. package/dist/components/forms/EpRadioSummative.vue.d.ts +39 -5
  103. package/dist/components/forms/EpSelect.vue.d.ts +13 -12
  104. package/dist/components/forms/EpSwitch.vue.d.ts +58 -0
  105. package/dist/components/forms/EpTextarea.vue.d.ts +50 -7
  106. package/dist/components/forms/EpToggle.vue.d.ts +48 -7
  107. package/dist/components/interactions/Ep360Image.vue.d.ts +16 -0
  108. package/dist/components/interactions/Ep360Video.vue.d.ts +16 -0
  109. package/dist/components/interactions/EpAccordeon.vue.d.ts +34 -16
  110. package/dist/components/interactions/EpContentSlider.vue.d.ts +28 -2
  111. package/dist/components/interactions/EpDarkmode.vue.d.ts +3 -3
  112. package/dist/components/interactions/EpHotsPot.vue.d.ts +47 -0
  113. package/dist/components/interactions/EpModal.vue.d.ts +39 -14
  114. package/dist/components/interactions/EpQuestion.vue.d.ts +38 -2
  115. package/dist/components/interactions/EpSummativeTable.vue.d.ts +24 -2
  116. package/dist/components/interactions/EpTabs.vue.d.ts +1 -1
  117. package/dist/components/interactions/EpTooltip.vue.d.ts +51 -0
  118. package/dist/components/medias/EpAudio.vue.d.ts +30 -4
  119. package/dist/components/medias/EpCarousel.vue.d.ts +32 -2
  120. package/dist/components/medias/EpIframe.vue.d.ts +28 -2
  121. package/dist/components/medias/EpKatex.vue.d.ts +24 -4
  122. package/dist/components/medias/EpLink.vue.d.ts +26 -2
  123. package/dist/components/medias/EpLinkVersion.vue.d.ts +29 -2
  124. package/dist/components/medias/EpLottieSvg.vue.d.ts +38 -144
  125. package/dist/components/medias/EpSoftware.vue.d.ts +36 -2
  126. package/dist/components/medias/EpSvg.vue.d.ts +24 -2
  127. package/dist/components/medias/EpTerm.vue.d.ts +41 -10
  128. package/dist/components/medias/EpTimeLine.vue.d.ts +19 -1
  129. package/dist/components/medias/EpVideo.vue.d.ts +28 -4
  130. package/dist/components/medias/EpVideoPanopto.vue.d.ts +28 -2
  131. package/dist/components/medias/EpWordDef.vue.d.ts +33 -2
  132. package/dist/components/signages/EpAlert.vue.d.ts +31 -12
  133. package/dist/components/signages/EpBadge.vue.d.ts +59 -0
  134. package/dist/components/signages/EpHeader.vue.d.ts +62 -19
  135. package/dist/components/signages/EpNothing.vue.d.ts +1 -1
  136. package/dist/components/signages/EpQuote.vue.d.ts +31 -10
  137. package/dist/components/signages/EpSkeleton.vue.d.ts +32 -3
  138. package/dist/components/tools/BgAudio.vue.d.ts +26 -4
  139. package/dist/components/tools/DisplayBox.vue.d.ts +9 -19
  140. package/dist/components/tools/SvgFilter.vue.d.ts +1 -1
  141. package/dist/components/tools/TimelineItem.vue.d.ts +28 -4
  142. package/dist/ep-lib-ts.js +1 -1
  143. package/dist/ep-lib-ts.umd.cjs +276 -275
  144. package/dist/{index-1vY3QtSb.js → index-Bw4yzGuc.js} +4060 -3874
  145. package/dist/{index-BkHXngnv.js → index-CPs4nmaJ.js} +5284 -5372
  146. package/dist/index.d.ts +1 -0
  147. package/dist/main.d.ts +1 -0
  148. package/dist/prism-DM8vlN3d.js +1182 -0
  149. package/dist/three.module-laS36oD-.js +48903 -0
  150. package/dist/types/Answer.d.ts +1 -0
  151. package/dist/types/Component.d.ts +10 -0
  152. package/dist/types/StackedList.d.ts +2 -28
  153. package/package.json +29 -30
  154. package/src/components/basics/EpStackedList.vue +20 -11
  155. package/src/components/educationals/EpCodeblock.vue +1 -1
  156. package/dist/App.vue.d.ts +0 -2
  157. package/dist/BgAudio-DezFnyKB.js +0 -4
  158. package/dist/DisplayBox-DYzeHzkr.js +0 -4
  159. package/dist/EpAlert-DdtU5nno.js +0 -4
  160. package/dist/EpAudio-vt4JUOf2.js +0 -4
  161. package/dist/EpBadge-BSMtvAqC.js +0 -4
  162. package/dist/EpBarChart-BA3EqJ-Z.js +0 -4
  163. package/dist/EpBtn-B1xGgn2Y.js +0 -4
  164. package/dist/EpCard-CEjoqwN4.js +0 -4
  165. package/dist/EpCheckbox-Da_2WoCs.js +0 -4
  166. package/dist/EpChip-d8r-FDqu.js +0 -4
  167. package/dist/EpCodeblock-Cu1MOvmi.js +0 -4
  168. package/dist/EpConclusion-Dk_FFixG.js +0 -4
  169. package/dist/EpContentSlider-dx8Hu4OS.js +0 -4
  170. package/dist/EpDescription-B00PjQg0.js +0 -4
  171. package/dist/EpDivider-CukqZw1a.js +0 -4
  172. package/dist/EpEdu-B5N7RG49.js +0 -4
  173. package/dist/EpFlex-DAtWa--7.js +0 -4
  174. package/dist/EpFunnelChart-jn5C9tAB.js +0 -4
  175. package/dist/EpHeader-Cwx5Qb6Q.js +0 -4
  176. package/dist/EpIcon-DitBbcuQ.js +0 -4
  177. package/dist/EpIframe-C5c1K8RE.js +0 -4
  178. package/dist/EpImg-YPH6mMcR.js +0 -4
  179. package/dist/EpInstructions-D8kw_rwC.js +0 -4
  180. package/dist/EpIntroduction-B2d2vChC.js +0 -4
  181. package/dist/EpLineChart-BjlCf9dW.js +0 -4
  182. package/dist/EpLink-CXIYlycG.js +0 -4
  183. package/dist/EpLinkVersion-Dn_Tid-r.js +0 -4
  184. package/dist/EpModal-CaPOVdQK.js +0 -4
  185. package/dist/EpObjective-czDKm1c4.js +0 -4
  186. package/dist/EpPieChart-DuW7EBmx.js +0 -4
  187. package/dist/EpQuestion-BuIkR2Ae.js +0 -4
  188. package/dist/EpQuote-5FQFWcfv.js +0 -4
  189. package/dist/EpRadio-BnPZeKpP.js +0 -4
  190. package/dist/EpRadioSummative-AtVwjeQ-.js +0 -4
  191. package/dist/EpReading-s2TQVAZ_.js +0 -4
  192. package/dist/EpResource-Cxx1lwrs.js +0 -4
  193. package/dist/EpScope-CG9n9QnC.js +0 -4
  194. package/dist/EpSection-cDQVtX9A.js +0 -4
  195. package/dist/EpSectionCols-DsH_iEem.js +0 -4
  196. package/dist/EpSkeleton-BQG8jrs6.js +0 -4
  197. package/dist/EpSoftware-DR1d7ezZ.js +0 -4
  198. package/dist/EpSpecificObjective-BS1QMNrt.js +0 -4
  199. package/dist/EpSpinner-O3kZ_dUO.js +0 -4
  200. package/dist/EpStackedList-CTU_KKMZ.js +0 -81
  201. package/dist/EpSummativeTable-iudwhrUL.js +0 -4
  202. package/dist/EpSvg-Bnj4H9sA.js +0 -4
  203. package/dist/EpTable-Byza5VY-.js +0 -4
  204. package/dist/EpTerm-BkpUPK_G.js +0 -4
  205. package/dist/EpText-J0qcEorF.js +0 -4
  206. package/dist/EpTimeLine-Czscwhgg.js +0 -4
  207. package/dist/EpVideo-0w267ZqV.js +0 -4
  208. package/dist/EpVideoPanopto-CDy_LUMi.js +0 -4
  209. package/dist/EpWordDef-qWt87mhg.js +0 -4
  210. package/dist/menu.vue.d.ts +0 -2
  211. package/dist/pages/Basics.vue.d.ts +0 -2
  212. package/dist/pages/CurrentDev.vue.d.ts +0 -2
  213. package/dist/pages/Educationals.vue.d.ts +0 -2
  214. package/dist/pages/Forms.vue.d.ts +0 -2
  215. package/dist/pages/Home.vue.d.ts +0 -2
  216. package/dist/pages/Interactions.vue.d.ts +0 -2
  217. package/dist/pages/Medias.vue.d.ts +0 -2
  218. package/dist/pages/NicDev.vue.d.ts +0 -2
  219. package/dist/pages/Signages.vue.d.ts +0 -2
  220. package/dist/pages/basics/EpBadgeView.vue.d.ts +0 -2
  221. package/dist/pages/basics/EpBtnView.vue.d.ts +0 -2
  222. package/dist/pages/basics/EpCardView.vue.d.ts +0 -2
  223. package/dist/pages/basics/EpChipView.vue.d.ts +0 -2
  224. package/dist/pages/basics/EpFlexView.vue.d.ts +0 -2
  225. package/dist/pages/basics/EpHoverCardView.vue.d.ts +0 -2
  226. package/dist/pages/basics/EpIconView.vue.d.ts +0 -2
  227. package/dist/pages/basics/EpImgView.vue.d.ts +0 -2
  228. package/dist/pages/basics/EpSectionColsView.vue.d.ts +0 -2
  229. package/dist/pages/basics/EpSectionView.vue.d.ts +0 -2
  230. package/dist/pages/basics/EpStackedListView.vue.d.ts +0 -2
  231. package/dist/pages/basics/EpTableView.vue.d.ts +0 -2
  232. package/dist/pages/basics/EpTextView.vue.d.ts +0 -2
  233. package/dist/pages/charts/EpBarChartView.vue.d.ts +0 -2
  234. package/dist/pages/charts/EpFunnelChartView.vue.d.ts +0 -2
  235. package/dist/pages/charts/EpLineChartView.vue.d.ts +0 -2
  236. package/dist/pages/charts/EpPieChartView.vue.d.ts +0 -2
  237. package/dist/pages/educationals/EpBranchingScenarioView.vue.d.ts +0 -2
  238. package/dist/pages/educationals/EpCodeBlockView.vue.d.ts +0 -2
  239. package/dist/pages/educationals/EpConclusionView.vue.d.ts +0 -2
  240. package/dist/pages/educationals/EpDescriptionView.vue.d.ts +0 -2
  241. package/dist/pages/educationals/EpEduView.vue.d.ts +0 -2
  242. package/dist/pages/educationals/EpInstructionsView.vue.d.ts +0 -2
  243. package/dist/pages/educationals/EpIntroductionView.vue.d.ts +0 -2
  244. package/dist/pages/educationals/EpObjectiveView.vue.d.ts +0 -2
  245. package/dist/pages/educationals/EpReadingView.vue.d.ts +0 -2
  246. package/dist/pages/educationals/EpResourceView.vue.d.ts +0 -2
  247. package/dist/pages/educationals/EpScopeView.vue.d.ts +0 -2
  248. package/dist/pages/educationals/EpSpecificObjectiveView.vue.d.ts +0 -2
  249. package/dist/pages/interactions/Ep360ImageView.vue.d.ts +0 -2
  250. package/dist/pages/interactions/Ep360VideoView.vue.d.ts +0 -2
  251. package/dist/pages/interactions/EpAccordeonView.vue.d.ts +0 -2
  252. package/dist/pages/interactions/EpContentSliderView.vue.d.ts +0 -2
  253. package/dist/pages/interactions/EpModalView.vue.d.ts +0 -2
  254. package/dist/pages/interactions/EpQuestionView.vue.d.ts +0 -2
  255. package/dist/pages/interactions/EpSummativeTableView.vue.d.ts +0 -2
  256. package/dist/pages/medias/EpAudioView.vue.d.ts +0 -2
  257. package/dist/pages/medias/EpCarouselView.vue.d.ts +0 -2
  258. package/dist/pages/medias/EpIframeView.vue.d.ts +0 -2
  259. package/dist/pages/medias/EpKatexView.vue.d.ts +0 -2
  260. package/dist/pages/medias/EpLinkVersionView.vue.d.ts +0 -2
  261. package/dist/pages/medias/EpLinkView.vue.d.ts +0 -2
  262. package/dist/pages/medias/EpLottieSvgView.vue.d.ts +0 -2
  263. package/dist/pages/medias/EpSoftwareView.vue.d.ts +0 -2
  264. package/dist/pages/medias/EpSvgView.vue.d.ts +0 -2
  265. package/dist/pages/medias/EpTermView.vue.d.ts +0 -2
  266. package/dist/pages/medias/EpTimeLineView.vue.d.ts +0 -2
  267. package/dist/pages/medias/EpVideoPanoptoView.vue.d.ts +0 -2
  268. package/dist/pages/medias/EpVideoView.vue.d.ts +0 -2
  269. package/dist/pages/medias/EpWordDefView.vue.d.ts +0 -2
  270. package/dist/pages/signages/EpAlertView.vue.d.ts +0 -2
  271. package/dist/pages/signages/EpHeaderView.vue.d.ts +0 -2
  272. package/dist/pages/signages/EpQuoteView.vue.d.ts +0 -2
  273. package/dist/pages/signages/EpSkeletonView.vue.d.ts +0 -2
  274. package/dist/prism-CvcYxWXz.js +0 -1184
  275. package/dist/three.core-ChKHLxK7.js +0 -48675
  276. /package/dist/{ep-lib-ts.css → style.css} +0 -0
@@ -1,5 +1,6 @@
1
1
  import { TypeAlert } from './Alert';
2
2
  import { MediaVariants } from './Medias';
3
+
3
4
  interface ContentComponent {
4
5
  type?: string;
5
6
  data: {
@@ -0,0 +1,10 @@
1
+ export type EpComponent = "EpBtn" | "EpIcon" | "EpNothing";
2
+ export interface ContentComponents {
3
+ uid: string;
4
+ deletedAt?: Date | string | undefined;
5
+ type: EpComponent;
6
+ noMarginY?: boolean;
7
+ data: {
8
+ [key: string]: any;
9
+ };
10
+ }
@@ -1,37 +1,17 @@
1
+ import { ContentComponents } from './Component';
1
2
  type Color = "primary" | "secondary" | "accent" | "error" | "warning" | "success" | "info" | "question" | "tip";
2
3
  type Variant = "circle" | "square" | "rounded";
3
4
  type Size = "small" | "middle" | "big";
4
- type ButtonType = "base" | "primary" | "secondary" | "accent" | "error" | "warning" | "success" | "info";
5
5
  interface Avatar {
6
6
  src: string;
7
7
  alt: string;
8
8
  }
9
- interface Button {
10
- href: string;
11
- label: string;
12
- disabled?: boolean;
13
- }
14
- interface CheckBox {
15
- id?: string;
16
- label?: string;
17
- modelValue?: string | string[] | boolean;
18
- disabled?: boolean;
19
- readonly?: boolean;
20
- value?: string;
21
- }
22
- interface Icon {
23
- size?: string | number;
24
- viewBox?: string;
25
- iconPath: string;
26
- extraClass?: string;
27
- }
28
9
  export interface ListItem {
29
10
  uid?: string;
30
11
  avatar?: Avatar;
31
12
  title: string;
32
13
  description: string;
33
- button?: Button;
34
- checkbox?: CheckBox;
14
+ component?: ContentComponents;
35
15
  }
36
16
  export interface ItemStyle {
37
17
  avatar?: {
@@ -41,12 +21,6 @@ export interface ItemStyle {
41
21
  name?: string;
42
22
  };
43
23
  cropped?: boolean;
44
- button?: {
45
- content: string;
46
- type?: ButtonType;
47
- };
48
- checkbox?: boolean;
49
- icon?: Icon;
50
24
  }
51
25
  export declare const roundedType: {
52
26
  none: string;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "ep-lib-ts",
3
3
  "private": false,
4
- "version": "1.0.37",
4
+ "version": "1.0.39",
5
5
  "files": [
6
6
  "dist",
7
7
  "src/components/"
@@ -26,40 +26,39 @@
26
26
  "preview": "vite preview"
27
27
  },
28
28
  "dependencies": {
29
- "@lottiefiles/dotlottie-vue": "0.5.6",
30
- "@mdi/js": "7.4.47",
31
- "@types/three": "0.173.0",
32
- "@vueuse/core": "12.7.0",
33
- "@wdns/vue-code-block": "2.3.5",
34
- "aframe": "1.6.0",
35
- "apexcharts": "4.4.0",
36
- "katex": "0.16.21",
37
- "markdown-it": "14.1.0",
38
- "postcss-cli": "11.0.0",
39
- "three": "0.173.0",
40
- "vee-validate": "4.15.0",
41
- "vue": "3.5.13",
42
- "vue-router": "4.5.0",
43
- "vue3-apexcharts": "1.8.0"
29
+ "@lottiefiles/dotlottie-vue": "^0.5.6",
30
+ "@mdi/js": "^7.4.47",
31
+ "@types/three": "^0.170.0",
32
+ "@vueuse/core": "^10.9.0",
33
+ "@wdns/vue-code-block": "^2.3.3",
34
+ "aframe": "^1.6.0",
35
+ "apexcharts": "3.53.0",
36
+ "katex": "^0.16.11",
37
+ "markdown-it": "^14.1.0",
38
+ "postcss-cli": "^11.0.0",
39
+ "three": "^0.170.0",
40
+ "vee-validate": "^4.13.2",
41
+ "vue": "^3.2.45",
42
+ "vue-router": "^4.4.5",
43
+ "vue3-apexcharts": "1.6.0"
44
44
  },
45
45
  "devDependencies": {
46
- "@tailwindcss/forms": "0.5.10",
47
- "@tailwindcss/postcss": "^4.0.7",
48
- "@types/katex": "0.16.7",
49
- "@types/markdown-it": "14.1.2",
50
- "@types/node": "22.13.4",
51
- "@vitejs/plugin-vue": "5.2.1",
52
- "autoprefixer": "10.4.20",
53
- "path": "0.12.7",
54
- "postcss": "8.5.2",
55
- "tailwindcss": "4.0.7",
56
- "typescript": "5.7.3",
57
- "vite": "6.1.0",
58
- "vite-plugin-dts": "4.5.0",
46
+ "@tailwindcss/forms": "^0.5.9",
47
+ "@types/katex": "^0.16.7",
48
+ "@types/markdown-it": "^14.1.2",
49
+ "@types/node": "^20.12.7",
50
+ "@vitejs/plugin-vue": "^5.1.3",
51
+ "autoprefixer": "^10.4.20",
52
+ "path": "^0.12.7",
53
+ "postcss": "^8.4.45",
54
+ "tailwindcss": "^3.4.11",
55
+ "typescript": "^5.6.2",
56
+ "vite": "^5.4.5",
57
+ "vite-plugin-dts": "^3.9.0",
59
58
  "vue-tsc": "^2.2.2"
60
59
  },
61
60
  "peerDependencies": {
62
- "vue": "3.5.13"
61
+ "vue": "^3.2.45"
63
62
  },
64
63
  "engines": {
65
64
  "node": "20.x.x"
@@ -1,14 +1,13 @@
1
1
  <script setup lang="ts">
2
- import { computed } from 'vue';
2
+ import { computed, defineAsyncComponent } from 'vue';
3
3
  import EpAvatar from './EpAvatar.vue';
4
4
  import { useRenderText } from '../../composables/useRenderText';
5
- import EpBtn from './EpBtn.vue';
6
- import EpCheckbox from '../forms/EpCheckbox.vue';
7
- import EpIcon from './EpIcon.vue';
5
+ import type { EpComponent } from '../../types/Component';
8
6
 
9
7
  // Importing the necessary interfaces for the code
10
8
  import { type ListItem, type ItemStyle, roundedType, type CustomStyle } from '../../types/StackedList';
11
9
 
10
+
12
11
  // Managing the props
13
12
  interface Props {
14
13
  elements: ListItem[];
@@ -20,7 +19,6 @@ const props = withDefaults(defineProps<Props>(),{
20
19
  elements: () => [],
21
20
  itemStyle: () => { return {
22
21
  cropped: false,
23
- checkbox: false,
24
22
  } },
25
23
  customStyle: () => {
26
24
  return {
@@ -46,25 +44,36 @@ const className = computed(() => {
46
44
  // The style of the list elements
47
45
  const elementSpacing = computed(() => (props.customStyle.restricted)? 'p-6' : 'mx-6 py-6');
48
46
 
49
- const elementGrid = computed(() => (props.itemStyle.button || props.itemStyle.checkbox || props.itemStyle.icon)? 'grid-cols-11' : 'grid-cols-7');
47
+ const elementGrid = (element: Record<string, any>|undefined) => {
48
+ return element?'grid-cols-11' : 'grid-cols-7'
49
+ }
50
+
51
+ //get Component asyncComponent
52
+ const getCompontent = (name:EpComponent|undefined)=> {
53
+ if(!name){
54
+ return defineAsyncComponent(()=>import('../signages/EpNothing.vue'))
55
+ }
56
+ //!IMPORT IN SAME FOLDER PATH!! EpIcon and EpBtn
57
+ return defineAsyncComponent(()=>import(/* @vite-ignore */`./${name}.vue`))
58
+ }
50
59
 
51
60
  </script>
52
61
 
53
62
  <template>
54
63
 
55
64
  <div :class="`${className} border-gray-200 flex flex-col dark:border-slate-700 dark:bg-slate-900 lg:mx-28`">
56
- <li v-for="elem in elements" :key="elements.indexOf(elem)" :class="`${(elements.indexOf(elem) !== 0)? 'border-t' : ''} list-none ${elementSpacing} grid ${elementGrid} justify-items-center items-center border-gray-200 dark:border-slate-700`">
65
+ <li v-for="elem in elements" :key="elements.indexOf(elem)" :class="`${(elements.indexOf(elem) !== 0)? 'border-t' : ''} list-none ${elementSpacing} grid ${elementGrid(elem.component)} justify-items-center items-center border-gray-200 dark:border-slate-700`">
57
66
  <EpAvatar v-if="elem.avatar" :src="elem.avatar?.src" :alt="elem.avatar?.alt" v-bind="itemStyle.avatar" class="col-span-2" />
58
67
  <div class="col-span-5 justify-self-start">
59
68
  <h3 class="font-semibold">{{ elem.title }}</h3>
60
69
  <div :class="`${(itemStyle.cropped)? 'line-clamp-3': ''}`" v-html="useRenderText(elem.description)"></div>
61
70
  </div>
62
- <div v-if="itemStyle.button || itemStyle.checkbox || itemStyle.icon" class="flex gap-2 items-center col-span-4 justify-self-auto">
71
+ <div v-if="elem.component" class="flex gap-2 items-center col-span-4 justify-self-auto">
63
72
 
64
73
  <!--update component type-->
65
- <EpBtn v-if="itemStyle.button" :type="`${(itemStyle.button.type)? itemStyle.button.type : 'base'}`" v-bind="elem.button" :rounded="true">{{ itemStyle.button.content }}</EpBtn>
66
- <EpCheckbox v-if="itemStyle.checkbox" v-bind="elem.checkbox" />
67
- <EpIcon v-if="itemStyle.icon" v-bind="itemStyle.icon" />
74
+ <Component :is="getCompontent(elem.component.type)" v-bind="{...elem.component.data}">
75
+ {{ elem.component.data.content }}
76
+ </Component>
68
77
  </div>
69
78
  </li>
70
79
  </div>
@@ -6,7 +6,7 @@
6
6
  import { computed} from "vue";
7
7
  import { ref } from "vue";
8
8
 
9
- type Langue = "javascript"|"css"|"html"|"php"|"json"|"typescript";
9
+ type Langue = "javascript"|"css"|"html"|"php"|"json"|"typescript"|"python"|"xml";
10
10
 
11
11
  interface Props {
12
12
  code?: string;
package/dist/App.vue.d.ts DELETED
@@ -1,2 +0,0 @@
1
- declare const _default: import('../vue/dist/vue.esm-bundler.js').DefineComponent<{}, {}, {}, {}, {}, import('../vue/dist/vue.esm-bundler.js').ComponentOptionsMixin, import('../vue/dist/vue.esm-bundler.js').ComponentOptionsMixin, {}, string, import('../vue/dist/vue.esm-bundler.js').PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import('../vue/dist/vue.esm-bundler.js').ComponentProvideOptions, true, {}, HTMLDivElement>;
2
- export default _default;
@@ -1,4 +0,0 @@
1
- import { a2 as f } from "./index-BkHXngnv.js";
2
- export {
3
- f as default
4
- };
@@ -1,4 +0,0 @@
1
- import { a3 as f } from "./index-BkHXngnv.js";
2
- export {
3
- f as default
4
- };
@@ -1,4 +0,0 @@
1
- import { Z as f } from "./index-BkHXngnv.js";
2
- export {
3
- f as default
4
- };
@@ -1,4 +0,0 @@
1
- import { P as f } from "./index-BkHXngnv.js";
2
- export {
3
- f as default
4
- };
@@ -1,4 +0,0 @@
1
- import { c as f } from "./index-BkHXngnv.js";
2
- export {
3
- f as default
4
- };
@@ -1,4 +0,0 @@
1
- import { r } from "./index-BkHXngnv.js";
2
- export {
3
- r as default
4
- };
@@ -1,4 +0,0 @@
1
- import { d as f } from "./index-BkHXngnv.js";
2
- export {
3
- f as default
4
- };
@@ -1,4 +0,0 @@
1
- import { e } from "./index-BkHXngnv.js";
2
- export {
3
- e as default
4
- };
@@ -1,4 +0,0 @@
1
- import { _ as f } from "./EpCheckbox.vue_vue_type_script_setup_true_lang-Dqi62vJ8.js";
2
- export {
3
- f as default
4
- };
@@ -1,4 +0,0 @@
1
- import { f } from "./index-BkHXngnv.js";
2
- export {
3
- f as default
4
- };
@@ -1,4 +0,0 @@
1
- import { x as f } from "./index-BkHXngnv.js";
2
- export {
3
- f as default
4
- };
@@ -1,4 +0,0 @@
1
- import { y as f } from "./index-BkHXngnv.js";
2
- export {
3
- f as default
4
- };
@@ -1,4 +0,0 @@
1
- import { K as f } from "./index-BkHXngnv.js";
2
- export {
3
- f as default
4
- };
@@ -1,4 +0,0 @@
1
- import { z as f } from "./index-BkHXngnv.js";
2
- export {
3
- f as default
4
- };
@@ -1,4 +0,0 @@
1
- import { g as f } from "./index-BkHXngnv.js";
2
- export {
3
- f as default
4
- };
@@ -1,4 +0,0 @@
1
- import { A as f } from "./index-BkHXngnv.js";
2
- export {
3
- f as default
4
- };
@@ -1,4 +0,0 @@
1
- import { h as f } from "./index-BkHXngnv.js";
2
- export {
3
- f as default
4
- };
@@ -1,4 +0,0 @@
1
- import { s } from "./index-BkHXngnv.js";
2
- export {
3
- s as default
4
- };
@@ -1,4 +0,0 @@
1
- import { $ as f } from "./index-BkHXngnv.js";
2
- export {
3
- f as default
4
- };
@@ -1,4 +0,0 @@
1
- import { j as f } from "./index-BkHXngnv.js";
2
- export {
3
- f as default
4
- };
@@ -1,4 +0,0 @@
1
- import { Q as f } from "./index-BkHXngnv.js";
2
- export {
3
- f as default
4
- };
@@ -1,4 +0,0 @@
1
- import { l as f } from "./index-BkHXngnv.js";
2
- export {
3
- f as default
4
- };
@@ -1,4 +0,0 @@
1
- import { B as f } from "./index-BkHXngnv.js";
2
- export {
3
- f as default
4
- };
@@ -1,4 +0,0 @@
1
- import { C as f } from "./index-BkHXngnv.js";
2
- export {
3
- f as default
4
- };
@@ -1,4 +0,0 @@
1
- import { t } from "./index-BkHXngnv.js";
2
- export {
3
- t as default
4
- };
@@ -1,4 +0,0 @@
1
- import { R as f } from "./index-BkHXngnv.js";
2
- export {
3
- f as default
4
- };
@@ -1,4 +0,0 @@
1
- import { S as f } from "./index-BkHXngnv.js";
2
- export {
3
- f as default
4
- };
@@ -1,4 +0,0 @@
1
- import { M as f } from "./index-BkHXngnv.js";
2
- export {
3
- f as default
4
- };
@@ -1,4 +0,0 @@
1
- import { D as f } from "./index-BkHXngnv.js";
2
- export {
3
- f as default
4
- };
@@ -1,4 +0,0 @@
1
- import { v as f } from "./index-BkHXngnv.js";
2
- export {
3
- f as default
4
- };
@@ -1,4 +0,0 @@
1
- import { N as f } from "./index-BkHXngnv.js";
2
- export {
3
- f as default
4
- };
@@ -1,4 +0,0 @@
1
- import { a0 as f } from "./index-BkHXngnv.js";
2
- export {
3
- f as default
4
- };
@@ -1,4 +0,0 @@
1
- import { I as f } from "./index-BkHXngnv.js";
2
- export {
3
- f as default
4
- };
@@ -1,4 +0,0 @@
1
- import { J as f } from "./index-BkHXngnv.js";
2
- export {
3
- f as default
4
- };
@@ -1,4 +0,0 @@
1
- import { b as f } from "./index-BkHXngnv.js";
2
- export {
3
- f as default
4
- };
@@ -1,4 +0,0 @@
1
- import { E as f } from "./index-BkHXngnv.js";
2
- export {
3
- f as default
4
- };
@@ -1,4 +0,0 @@
1
- import { F as f } from "./index-BkHXngnv.js";
2
- export {
3
- f as default
4
- };
@@ -1,4 +0,0 @@
1
- import { m } from "./index-BkHXngnv.js";
2
- export {
3
- m as default
4
- };
@@ -1,4 +0,0 @@
1
- import { n as f } from "./index-BkHXngnv.js";
2
- export {
3
- f as default
4
- };
@@ -1,4 +0,0 @@
1
- import { a1 as f } from "./index-BkHXngnv.js";
2
- export {
3
- f as default
4
- };
@@ -1,4 +0,0 @@
1
- import { T as f } from "./index-BkHXngnv.js";
2
- export {
3
- f as default
4
- };
@@ -1,4 +0,0 @@
1
- import { G as f } from "./index-BkHXngnv.js";
2
- export {
3
- f as default
4
- };
@@ -1,4 +0,0 @@
1
- import { o } from "./index-BkHXngnv.js";
2
- export {
3
- o as default
4
- };
@@ -1,81 +0,0 @@
1
- import { defineComponent as g, computed as d, createElementBlock as n, openBlock as o, normalizeClass as i, Fragment as _, renderList as $, createBlock as l, createCommentVNode as s, createElementVNode as c, mergeProps as a, toDisplayString as f, unref as h, withCtx as v, createTextVNode as T } from "vue";
2
- import { _ as j } from "./EpAvatar.vue_vue_type_script_setup_true_lang-IeQ9W4tD.js";
3
- import { k as C, d as L, j as N } from "./index-BkHXngnv.js";
4
- import { _ as x } from "./EpCheckbox.vue_vue_type_script_setup_true_lang-Dqi62vJ8.js";
5
- const B = {
6
- none: "rounded-none",
7
- small: "rounded-md",
8
- middle: "rounded-lg",
9
- big: "rounded-2xl"
10
- }, E = { class: "col-span-5 justify-self-start" }, V = { class: "font-semibold" }, H = ["innerHTML"], M = {
11
- key: 1,
12
- class: "flex gap-2 items-center col-span-4 justify-self-auto"
13
- }, F = /* @__PURE__ */ g({
14
- __name: "EpStackedList",
15
- props: {
16
- elements: { default: () => [] },
17
- itemStyle: { default: () => ({
18
- cropped: !1,
19
- checkbox: !1
20
- }) },
21
- customStyle: { default: () => ({
22
- border: !0,
23
- rounded: "small",
24
- restricted: !1
25
- }) }
26
- },
27
- setup(p) {
28
- const r = p, b = d(() => {
29
- const e = r.customStyle.border === !1 ? "border-0" : "border", u = B[r.customStyle.rounded ? r.customStyle.rounded : "small"], t = r.customStyle.restricted ? "p-0" : "p-4";
30
- return `${e} ${u} ${t}`;
31
- }), S = d(() => r.customStyle.restricted ? "p-6" : "mx-6 py-6"), k = d(() => r.itemStyle.button || r.itemStyle.checkbox || r.itemStyle.icon ? "grid-cols-11" : "grid-cols-7");
32
- return (e, u) => (o(), n("div", {
33
- class: i(`${b.value} border-gray-200 flex flex-col dark:border-slate-700 dark:bg-slate-900 lg:mx-28`)
34
- }, [
35
- (o(!0), n(_, null, $(e.elements, (t) => {
36
- var m, y;
37
- return o(), n("li", {
38
- key: e.elements.indexOf(t),
39
- class: i(`${e.elements.indexOf(t) !== 0 ? "border-t" : ""} list-none ${S.value} grid ${k.value} justify-items-center items-center border-gray-200 dark:border-slate-700`)
40
- }, [
41
- t.avatar ? (o(), l(j, a({
42
- key: 0,
43
- src: (m = t.avatar) == null ? void 0 : m.src,
44
- alt: (y = t.avatar) == null ? void 0 : y.alt,
45
- ref_for: !0
46
- }, e.itemStyle.avatar, { class: "col-span-2" }), null, 16, ["src", "alt"])) : s("", !0),
47
- c("div", E, [
48
- c("h3", V, f(t.title), 1),
49
- c("div", {
50
- class: i(`${e.itemStyle.cropped ? "line-clamp-3" : ""}`),
51
- innerHTML: h(C)(t.description)
52
- }, null, 10, H)
53
- ]),
54
- e.itemStyle.button || e.itemStyle.checkbox || e.itemStyle.icon ? (o(), n("div", M, [
55
- e.itemStyle.button ? (o(), l(L, a({
56
- key: 0,
57
- type: `${e.itemStyle.button.type ? e.itemStyle.button.type : "base"}`,
58
- ref_for: !0
59
- }, t.button, { rounded: !0 }), {
60
- default: v(() => [
61
- T(f(e.itemStyle.button.content), 1)
62
- ]),
63
- _: 2
64
- }, 1040, ["type"])) : s("", !0),
65
- e.itemStyle.checkbox ? (o(), l(x, a({
66
- key: 1,
67
- ref_for: !0
68
- }, t.checkbox), null, 16)) : s("", !0),
69
- e.itemStyle.icon ? (o(), l(N, a({
70
- key: 2,
71
- ref_for: !0
72
- }, e.itemStyle.icon), null, 16)) : s("", !0)
73
- ])) : s("", !0)
74
- ], 2);
75
- }), 128))
76
- ], 2));
77
- }
78
- });
79
- export {
80
- F as default
81
- };
@@ -1,4 +0,0 @@
1
- import { O as f } from "./index-BkHXngnv.js";
2
- export {
3
- f as default
4
- };
@@ -1,4 +0,0 @@
1
- import { U as f } from "./index-BkHXngnv.js";
2
- export {
3
- f as default
4
- };
@@ -1,4 +0,0 @@
1
- import { p as f } from "./index-BkHXngnv.js";
2
- export {
3
- f as default
4
- };
@@ -1,4 +0,0 @@
1
- import { _ as f } from "./index-BkHXngnv.js";
2
- export {
3
- f as default
4
- };
@@ -1,4 +0,0 @@
1
- import { q as f } from "./index-BkHXngnv.js";
2
- export {
3
- f as default
4
- };
@@ -1,4 +0,0 @@
1
- import { V as f } from "./index-BkHXngnv.js";
2
- export {
3
- f as default
4
- };
@@ -1,4 +0,0 @@
1
- import { W as f } from "./index-BkHXngnv.js";
2
- export {
3
- f as default
4
- };
@@ -1,4 +0,0 @@
1
- import { X as f } from "./index-BkHXngnv.js";
2
- export {
3
- f as default
4
- };
@@ -1,4 +0,0 @@
1
- import { Y as f } from "./index-BkHXngnv.js";
2
- export {
3
- f as default
4
- };
@@ -1,2 +0,0 @@
1
- declare const _default: import('../vue/dist/vue.esm-bundler.js').DefineComponent<{}, {}, {}, {}, {}, import('../vue/dist/vue.esm-bundler.js').ComponentOptionsMixin, import('../vue/dist/vue.esm-bundler.js').ComponentOptionsMixin, {}, string, import('../vue/dist/vue.esm-bundler.js').PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import('../vue/dist/vue.esm-bundler.js').ComponentProvideOptions, true, {}, HTMLElement>;
2
- export default _default;