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.
- package/dist/BgAudio-BDO4Ln5y.js +4 -0
- package/dist/DisplayBox-Diko7_uH.js +4 -0
- package/dist/{Ep360Image-BZpa7qLl.js → Ep360Image-Dmwx7NrY.js} +1 -1
- package/dist/{Ep360Video-Wy_YWl7-.js → Ep360Video-b_stvC2Z.js} +1 -1
- package/dist/EpAlert-iWXSHupC.js +4 -0
- package/dist/EpAudio-Bnb1MIw6.js +4 -0
- package/dist/EpBadge-BcVkBKJK.js +4 -0
- package/dist/EpBarChart-D42B3a97.js +4 -0
- package/dist/{EpBranchingScenario-5sbzBXZ0.js → EpBranchingScenario-dEapAg2r.js} +1 -1
- package/dist/EpBtn-BtyunWne.js +4 -0
- package/dist/EpCard--mtof8hL.js +4 -0
- package/dist/{EpCheckbox.vue_vue_type_script_setup_true_lang-Dqi62vJ8.js → EpCheckbox-D-AiG1k1.js} +7 -7
- package/dist/EpChip-DitreF_J.js +4 -0
- package/dist/EpCodeblock-nBOawE0H.js +4 -0
- package/dist/EpConclusion-CcOvoC8e.js +4 -0
- package/dist/EpContentSlider-DpIiJmPt.js +4 -0
- package/dist/{EpDarkmode-CuVlLi72.js → EpDarkmode-DV-fRn1K.js} +1 -1
- package/dist/EpDescription-DeVW7LNL.js +4 -0
- package/dist/EpDivider-vEs9W9Km.js +4 -0
- package/dist/EpEdu-BC4BxjYR.js +4 -0
- package/dist/EpFlex-xdVOYg4a.js +4 -0
- package/dist/EpFunnelChart-CF1CM2id.js +4 -0
- package/dist/EpHeader-BMoXpQdW.js +4 -0
- package/dist/{EpHover-Kp8XbqYO.js → EpHover-CwOc7bvn.js} +1 -1
- package/dist/{EpHover.vue_vue_type_script_setup_true_lang-BxiamS7-.js → EpHover.vue_vue_type_script_setup_true_lang-DDLIDTha.js} +1 -1
- package/dist/{EpHoverCard-DRRYl4MK.js → EpHoverCard-BTWsiA2z.js} +2 -2
- package/dist/EpIcon-Cektqqle.js +4 -0
- package/dist/EpIframe-CFLSXU7z.js +4 -0
- package/dist/EpImg-Ct-KfkRp.js +4 -0
- package/dist/{EpInput-BKc_tU1_.js → EpInput-c9THhDCs.js} +1 -1
- package/dist/EpInstructions-BCFWkov8.js +4 -0
- package/dist/EpIntroduction-Cx1Tc920.js +4 -0
- package/dist/EpLineChart-BffNNoNj.js +4 -0
- package/dist/EpLink-Bx_E9Gjz.js +4 -0
- package/dist/EpLinkVersion-6CTPFhT5.js +4 -0
- package/dist/{EpList-B2x9zHps.js → EpList-CM3b-mLc.js} +1 -1
- package/dist/EpModal-DLG_mddB.js +4 -0
- package/dist/{EpNothing-D3fg3Krb.js → EpNothing-DVY_GKL6.js} +1 -1
- package/dist/EpObjective-DIWMrap_.js +4 -0
- package/dist/EpPieChart-CTDL07vZ.js +4 -0
- package/dist/EpQuestion-RzrZk_Op.js +4 -0
- package/dist/EpQuote-SaMcAmmL.js +4 -0
- package/dist/EpRadio-w5IkZmj5.js +4 -0
- package/dist/EpRadioSummative-BeZecHlR.js +4 -0
- package/dist/EpReading-CVgr9TGN.js +4 -0
- package/dist/EpResource-BEql6U6K.js +4 -0
- package/dist/EpScope-BAuTDV_B.js +4 -0
- package/dist/EpSection-CESMVDna.js +4 -0
- package/dist/EpSectionCols-CacYX-v3.js +4 -0
- package/dist/EpSkeleton-CuvqT7PL.js +4 -0
- package/dist/EpSoftware-LK_nIUJY.js +4 -0
- package/dist/EpSpecificObjective-BTavyAY9.js +4 -0
- package/dist/EpSpinner-CZo0f9Nx.js +4 -0
- package/dist/EpStackedList-DWkLmrqI.js +75 -0
- package/dist/EpSummativeTable-Dlhhgq1A.js +4 -0
- package/dist/EpSvg-CG-uua_J.js +4 -0
- package/dist/EpTable-DsXZI8Hm.js +4 -0
- package/dist/EpTerm-DGTKAJqq.js +4 -0
- package/dist/EpText-kB0vb1Da.js +4 -0
- package/dist/EpTimeLine-DK_bzCen.js +4 -0
- package/dist/EpVideo-CPN6M6cs.js +4 -0
- package/dist/EpVideoPanopto-UZckfqS1.js +4 -0
- package/dist/EpWordDef-dSnuxRtl.js +4 -0
- package/dist/components/basics/EpAvatar.vue.d.ts +35 -4
- package/dist/components/basics/EpBadge.vue.d.ts +28 -3
- package/dist/components/basics/EpBtn.vue.d.ts +38 -13
- package/dist/components/basics/EpCard.vue.d.ts +46 -14
- package/dist/components/basics/EpChip.vue.d.ts +38 -12
- package/dist/components/basics/EpDivider.vue.d.ts +33 -3
- package/dist/components/basics/EpFlex.vue.d.ts +2 -8
- package/dist/components/basics/EpHover.vue.d.ts +32 -10
- package/dist/components/basics/EpHoverCard.vue.d.ts +50 -14
- package/dist/components/basics/EpIcon.vue.d.ts +26 -3
- package/dist/components/basics/EpImg.vue.d.ts +38 -2
- package/dist/components/basics/EpList.vue.d.ts +11 -0
- package/dist/components/basics/EpListitem.vue.d.ts +45 -0
- package/dist/components/basics/EpSection.vue.d.ts +31 -10
- package/dist/components/basics/EpSectionCols.vue.d.ts +39 -11
- package/dist/components/basics/EpSpinner.vue.d.ts +29 -2
- package/dist/components/basics/EpStackedList.vue.d.ts +40 -2
- package/dist/components/basics/EpTable.vue.d.ts +18 -1
- package/dist/components/basics/EpText.vue.d.ts +33 -2
- package/dist/components/charts/EpBarChart.vue.d.ts +28 -2
- package/dist/components/charts/EpFunnelChart.vue.d.ts +35 -3
- package/dist/components/charts/EpLineChart.vue.d.ts +28 -2
- package/dist/components/charts/EpPieChart.vue.d.ts +31 -3
- package/dist/components/educationals/EpBranchingScenario.vue.d.ts +25 -2
- package/dist/components/educationals/EpCodeblock.vue.d.ts +33 -3
- package/dist/components/educationals/EpConclusion.vue.d.ts +25 -10
- package/dist/components/educationals/EpDescription.vue.d.ts +25 -10
- package/dist/components/educationals/EpEdu.vue.d.ts +37 -13
- package/dist/components/educationals/EpInstructions.vue.d.ts +23 -2
- package/dist/components/educationals/EpIntroduction.vue.d.ts +25 -10
- package/dist/components/educationals/EpObjective.vue.d.ts +25 -10
- package/dist/components/educationals/EpReading.vue.d.ts +49 -3
- package/dist/components/educationals/EpResource.vue.d.ts +24 -2
- package/dist/components/educationals/EpScope.vue.d.ts +19 -1
- package/dist/components/educationals/EpSpecificObjective.vue.d.ts +25 -2
- package/dist/components/forms/EpCheckbox.vue.d.ts +36 -5
- package/dist/components/forms/EpInput.vue.d.ts +44 -7
- package/dist/components/forms/EpRadio.vue.d.ts +39 -5
- package/dist/components/forms/EpRadioSummative.vue.d.ts +39 -5
- package/dist/components/forms/EpSelect.vue.d.ts +13 -12
- package/dist/components/forms/EpSwitch.vue.d.ts +58 -0
- package/dist/components/forms/EpTextarea.vue.d.ts +50 -7
- package/dist/components/forms/EpToggle.vue.d.ts +48 -7
- package/dist/components/interactions/Ep360Image.vue.d.ts +16 -0
- package/dist/components/interactions/Ep360Video.vue.d.ts +16 -0
- package/dist/components/interactions/EpAccordeon.vue.d.ts +34 -16
- package/dist/components/interactions/EpContentSlider.vue.d.ts +28 -2
- package/dist/components/interactions/EpDarkmode.vue.d.ts +3 -3
- package/dist/components/interactions/EpHotsPot.vue.d.ts +47 -0
- package/dist/components/interactions/EpModal.vue.d.ts +39 -14
- package/dist/components/interactions/EpQuestion.vue.d.ts +38 -2
- package/dist/components/interactions/EpSummativeTable.vue.d.ts +24 -2
- package/dist/components/interactions/EpTabs.vue.d.ts +1 -1
- package/dist/components/interactions/EpTooltip.vue.d.ts +51 -0
- package/dist/components/medias/EpAudio.vue.d.ts +30 -4
- package/dist/components/medias/EpCarousel.vue.d.ts +32 -2
- package/dist/components/medias/EpIframe.vue.d.ts +28 -2
- package/dist/components/medias/EpKatex.vue.d.ts +24 -4
- package/dist/components/medias/EpLink.vue.d.ts +26 -2
- package/dist/components/medias/EpLinkVersion.vue.d.ts +29 -2
- package/dist/components/medias/EpLottieSvg.vue.d.ts +38 -144
- package/dist/components/medias/EpSoftware.vue.d.ts +36 -2
- package/dist/components/medias/EpSvg.vue.d.ts +24 -2
- package/dist/components/medias/EpTerm.vue.d.ts +41 -10
- package/dist/components/medias/EpTimeLine.vue.d.ts +19 -1
- package/dist/components/medias/EpVideo.vue.d.ts +28 -4
- package/dist/components/medias/EpVideoPanopto.vue.d.ts +28 -2
- package/dist/components/medias/EpWordDef.vue.d.ts +33 -2
- package/dist/components/signages/EpAlert.vue.d.ts +31 -12
- package/dist/components/signages/EpBadge.vue.d.ts +59 -0
- package/dist/components/signages/EpHeader.vue.d.ts +62 -19
- package/dist/components/signages/EpNothing.vue.d.ts +1 -1
- package/dist/components/signages/EpQuote.vue.d.ts +31 -10
- package/dist/components/signages/EpSkeleton.vue.d.ts +32 -3
- package/dist/components/tools/BgAudio.vue.d.ts +26 -4
- package/dist/components/tools/DisplayBox.vue.d.ts +9 -19
- package/dist/components/tools/SvgFilter.vue.d.ts +1 -1
- package/dist/components/tools/TimelineItem.vue.d.ts +28 -4
- package/dist/ep-lib-ts.js +1 -1
- package/dist/ep-lib-ts.umd.cjs +276 -275
- package/dist/{index-1vY3QtSb.js → index-Bw4yzGuc.js} +4060 -3874
- package/dist/{index-BkHXngnv.js → index-CPs4nmaJ.js} +5284 -5372
- package/dist/index.d.ts +1 -0
- package/dist/main.d.ts +1 -0
- package/dist/prism-DM8vlN3d.js +1182 -0
- package/dist/three.module-laS36oD-.js +48903 -0
- package/dist/types/Answer.d.ts +1 -0
- package/dist/types/Component.d.ts +10 -0
- package/dist/types/StackedList.d.ts +2 -28
- package/package.json +29 -30
- package/src/components/basics/EpStackedList.vue +20 -11
- package/src/components/educationals/EpCodeblock.vue +1 -1
- package/dist/App.vue.d.ts +0 -2
- package/dist/BgAudio-DezFnyKB.js +0 -4
- package/dist/DisplayBox-DYzeHzkr.js +0 -4
- package/dist/EpAlert-DdtU5nno.js +0 -4
- package/dist/EpAudio-vt4JUOf2.js +0 -4
- package/dist/EpBadge-BSMtvAqC.js +0 -4
- package/dist/EpBarChart-BA3EqJ-Z.js +0 -4
- package/dist/EpBtn-B1xGgn2Y.js +0 -4
- package/dist/EpCard-CEjoqwN4.js +0 -4
- package/dist/EpCheckbox-Da_2WoCs.js +0 -4
- package/dist/EpChip-d8r-FDqu.js +0 -4
- package/dist/EpCodeblock-Cu1MOvmi.js +0 -4
- package/dist/EpConclusion-Dk_FFixG.js +0 -4
- package/dist/EpContentSlider-dx8Hu4OS.js +0 -4
- package/dist/EpDescription-B00PjQg0.js +0 -4
- package/dist/EpDivider-CukqZw1a.js +0 -4
- package/dist/EpEdu-B5N7RG49.js +0 -4
- package/dist/EpFlex-DAtWa--7.js +0 -4
- package/dist/EpFunnelChart-jn5C9tAB.js +0 -4
- package/dist/EpHeader-Cwx5Qb6Q.js +0 -4
- package/dist/EpIcon-DitBbcuQ.js +0 -4
- package/dist/EpIframe-C5c1K8RE.js +0 -4
- package/dist/EpImg-YPH6mMcR.js +0 -4
- package/dist/EpInstructions-D8kw_rwC.js +0 -4
- package/dist/EpIntroduction-B2d2vChC.js +0 -4
- package/dist/EpLineChart-BjlCf9dW.js +0 -4
- package/dist/EpLink-CXIYlycG.js +0 -4
- package/dist/EpLinkVersion-Dn_Tid-r.js +0 -4
- package/dist/EpModal-CaPOVdQK.js +0 -4
- package/dist/EpObjective-czDKm1c4.js +0 -4
- package/dist/EpPieChart-DuW7EBmx.js +0 -4
- package/dist/EpQuestion-BuIkR2Ae.js +0 -4
- package/dist/EpQuote-5FQFWcfv.js +0 -4
- package/dist/EpRadio-BnPZeKpP.js +0 -4
- package/dist/EpRadioSummative-AtVwjeQ-.js +0 -4
- package/dist/EpReading-s2TQVAZ_.js +0 -4
- package/dist/EpResource-Cxx1lwrs.js +0 -4
- package/dist/EpScope-CG9n9QnC.js +0 -4
- package/dist/EpSection-cDQVtX9A.js +0 -4
- package/dist/EpSectionCols-DsH_iEem.js +0 -4
- package/dist/EpSkeleton-BQG8jrs6.js +0 -4
- package/dist/EpSoftware-DR1d7ezZ.js +0 -4
- package/dist/EpSpecificObjective-BS1QMNrt.js +0 -4
- package/dist/EpSpinner-O3kZ_dUO.js +0 -4
- package/dist/EpStackedList-CTU_KKMZ.js +0 -81
- package/dist/EpSummativeTable-iudwhrUL.js +0 -4
- package/dist/EpSvg-Bnj4H9sA.js +0 -4
- package/dist/EpTable-Byza5VY-.js +0 -4
- package/dist/EpTerm-BkpUPK_G.js +0 -4
- package/dist/EpText-J0qcEorF.js +0 -4
- package/dist/EpTimeLine-Czscwhgg.js +0 -4
- package/dist/EpVideo-0w267ZqV.js +0 -4
- package/dist/EpVideoPanopto-CDy_LUMi.js +0 -4
- package/dist/EpWordDef-qWt87mhg.js +0 -4
- package/dist/menu.vue.d.ts +0 -2
- package/dist/pages/Basics.vue.d.ts +0 -2
- package/dist/pages/CurrentDev.vue.d.ts +0 -2
- package/dist/pages/Educationals.vue.d.ts +0 -2
- package/dist/pages/Forms.vue.d.ts +0 -2
- package/dist/pages/Home.vue.d.ts +0 -2
- package/dist/pages/Interactions.vue.d.ts +0 -2
- package/dist/pages/Medias.vue.d.ts +0 -2
- package/dist/pages/NicDev.vue.d.ts +0 -2
- package/dist/pages/Signages.vue.d.ts +0 -2
- package/dist/pages/basics/EpBadgeView.vue.d.ts +0 -2
- package/dist/pages/basics/EpBtnView.vue.d.ts +0 -2
- package/dist/pages/basics/EpCardView.vue.d.ts +0 -2
- package/dist/pages/basics/EpChipView.vue.d.ts +0 -2
- package/dist/pages/basics/EpFlexView.vue.d.ts +0 -2
- package/dist/pages/basics/EpHoverCardView.vue.d.ts +0 -2
- package/dist/pages/basics/EpIconView.vue.d.ts +0 -2
- package/dist/pages/basics/EpImgView.vue.d.ts +0 -2
- package/dist/pages/basics/EpSectionColsView.vue.d.ts +0 -2
- package/dist/pages/basics/EpSectionView.vue.d.ts +0 -2
- package/dist/pages/basics/EpStackedListView.vue.d.ts +0 -2
- package/dist/pages/basics/EpTableView.vue.d.ts +0 -2
- package/dist/pages/basics/EpTextView.vue.d.ts +0 -2
- package/dist/pages/charts/EpBarChartView.vue.d.ts +0 -2
- package/dist/pages/charts/EpFunnelChartView.vue.d.ts +0 -2
- package/dist/pages/charts/EpLineChartView.vue.d.ts +0 -2
- package/dist/pages/charts/EpPieChartView.vue.d.ts +0 -2
- package/dist/pages/educationals/EpBranchingScenarioView.vue.d.ts +0 -2
- package/dist/pages/educationals/EpCodeBlockView.vue.d.ts +0 -2
- package/dist/pages/educationals/EpConclusionView.vue.d.ts +0 -2
- package/dist/pages/educationals/EpDescriptionView.vue.d.ts +0 -2
- package/dist/pages/educationals/EpEduView.vue.d.ts +0 -2
- package/dist/pages/educationals/EpInstructionsView.vue.d.ts +0 -2
- package/dist/pages/educationals/EpIntroductionView.vue.d.ts +0 -2
- package/dist/pages/educationals/EpObjectiveView.vue.d.ts +0 -2
- package/dist/pages/educationals/EpReadingView.vue.d.ts +0 -2
- package/dist/pages/educationals/EpResourceView.vue.d.ts +0 -2
- package/dist/pages/educationals/EpScopeView.vue.d.ts +0 -2
- package/dist/pages/educationals/EpSpecificObjectiveView.vue.d.ts +0 -2
- package/dist/pages/interactions/Ep360ImageView.vue.d.ts +0 -2
- package/dist/pages/interactions/Ep360VideoView.vue.d.ts +0 -2
- package/dist/pages/interactions/EpAccordeonView.vue.d.ts +0 -2
- package/dist/pages/interactions/EpContentSliderView.vue.d.ts +0 -2
- package/dist/pages/interactions/EpModalView.vue.d.ts +0 -2
- package/dist/pages/interactions/EpQuestionView.vue.d.ts +0 -2
- package/dist/pages/interactions/EpSummativeTableView.vue.d.ts +0 -2
- package/dist/pages/medias/EpAudioView.vue.d.ts +0 -2
- package/dist/pages/medias/EpCarouselView.vue.d.ts +0 -2
- package/dist/pages/medias/EpIframeView.vue.d.ts +0 -2
- package/dist/pages/medias/EpKatexView.vue.d.ts +0 -2
- package/dist/pages/medias/EpLinkVersionView.vue.d.ts +0 -2
- package/dist/pages/medias/EpLinkView.vue.d.ts +0 -2
- package/dist/pages/medias/EpLottieSvgView.vue.d.ts +0 -2
- package/dist/pages/medias/EpSoftwareView.vue.d.ts +0 -2
- package/dist/pages/medias/EpSvgView.vue.d.ts +0 -2
- package/dist/pages/medias/EpTermView.vue.d.ts +0 -2
- package/dist/pages/medias/EpTimeLineView.vue.d.ts +0 -2
- package/dist/pages/medias/EpVideoPanoptoView.vue.d.ts +0 -2
- package/dist/pages/medias/EpVideoView.vue.d.ts +0 -2
- package/dist/pages/medias/EpWordDefView.vue.d.ts +0 -2
- package/dist/pages/signages/EpAlertView.vue.d.ts +0 -2
- package/dist/pages/signages/EpHeaderView.vue.d.ts +0 -2
- package/dist/pages/signages/EpQuoteView.vue.d.ts +0 -2
- package/dist/pages/signages/EpSkeletonView.vue.d.ts +0 -2
- package/dist/prism-CvcYxWXz.js +0 -1184
- package/dist/three.core-ChKHLxK7.js +0 -48675
- /package/dist/{ep-lib-ts.css → style.css} +0 -0
package/dist/types/Answer.d.ts
CHANGED
|
@@ -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
|
-
|
|
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.
|
|
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.
|
|
32
|
-
"@vueuse/core": "
|
|
33
|
-
"@wdns/vue-code-block": "2.3.
|
|
34
|
-
"aframe": "1.6.0",
|
|
35
|
-
"apexcharts": "
|
|
36
|
-
"katex": "0.16.
|
|
37
|
-
"markdown-it": "14.1.0",
|
|
38
|
-
"postcss-cli": "11.0.0",
|
|
39
|
-
"three": "0.
|
|
40
|
-
"vee-validate": "4.
|
|
41
|
-
"vue": "3.
|
|
42
|
-
"vue-router": "4.5
|
|
43
|
-
"vue3-apexcharts": "1.
|
|
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.
|
|
47
|
-
"@
|
|
48
|
-
"@types/
|
|
49
|
-
"@types/
|
|
50
|
-
"@
|
|
51
|
-
"
|
|
52
|
-
"
|
|
53
|
-
"
|
|
54
|
-
"
|
|
55
|
-
"
|
|
56
|
-
"
|
|
57
|
-
"vite": "
|
|
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.
|
|
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
|
|
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 =
|
|
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="
|
|
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
|
-
<
|
|
66
|
-
|
|
67
|
-
|
|
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>
|
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;
|
package/dist/BgAudio-DezFnyKB.js
DELETED
package/dist/EpAlert-DdtU5nno.js
DELETED
package/dist/EpAudio-vt4JUOf2.js
DELETED
package/dist/EpBadge-BSMtvAqC.js
DELETED
package/dist/EpBtn-B1xGgn2Y.js
DELETED
package/dist/EpCard-CEjoqwN4.js
DELETED
package/dist/EpChip-d8r-FDqu.js
DELETED
package/dist/EpEdu-B5N7RG49.js
DELETED
package/dist/EpFlex-DAtWa--7.js
DELETED
package/dist/EpIcon-DitBbcuQ.js
DELETED
package/dist/EpImg-YPH6mMcR.js
DELETED
package/dist/EpLink-CXIYlycG.js
DELETED
package/dist/EpModal-CaPOVdQK.js
DELETED
package/dist/EpQuote-5FQFWcfv.js
DELETED
package/dist/EpRadio-BnPZeKpP.js
DELETED
package/dist/EpScope-CG9n9QnC.js
DELETED
|
@@ -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
|
-
};
|
package/dist/EpSvg-Bnj4H9sA.js
DELETED
package/dist/EpTable-Byza5VY-.js
DELETED
package/dist/EpTerm-BkpUPK_G.js
DELETED
package/dist/EpText-J0qcEorF.js
DELETED
package/dist/EpVideo-0w267ZqV.js
DELETED
package/dist/menu.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, {}, HTMLElement>;
|
|
2
|
-
export default _default;
|