ep-lib-ts 1.1.11 → 1.1.13
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/components/basics/EpAvatar.vue.js +1 -55
- package/dist/components/basics/EpAvatar.vue.js.map +1 -1
- package/dist/components/basics/EpAvatar.vue2.js +55 -1
- package/dist/components/basics/EpAvatar.vue2.js.map +1 -1
- package/dist/components/basics/EpBtn.vue.js +2 -2
- package/dist/components/basics/EpBtn.vue.js.map +1 -1
- package/dist/components/basics/EpChip.vue.js +2 -2
- package/dist/components/basics/EpChip.vue.js.map +1 -1
- package/dist/components/basics/EpHover.vue.js +1 -1
- package/dist/components/basics/EpHover.vue.js.map +1 -1
- package/dist/components/basics/EpHoverCard.vue.js +6 -6
- package/dist/components/basics/EpHoverCard.vue.js.map +1 -1
- package/dist/components/basics/EpImg.vue.js +8 -8
- package/dist/components/basics/EpImg.vue.js.map +1 -1
- package/dist/components/basics/EpImgCarousel.vue.js +8 -8
- package/dist/components/basics/EpImgCarousel.vue.js.map +1 -1
- package/dist/components/basics/EpSection.vue.js +25 -25
- package/dist/components/basics/EpSection.vue.js.map +1 -1
- package/dist/components/basics/EpSectionCols.vue.js +29 -29
- package/dist/components/basics/EpSectionCols.vue.js.map +1 -1
- package/dist/components/basics/EpSpinner.vue.js +5 -5
- package/dist/components/basics/EpSpinner.vue.js.map +1 -1
- package/dist/components/basics/EpStackedList.vue.js +8 -8
- package/dist/components/basics/EpStackedList.vue.js.map +1 -1
- package/dist/components/charts/EpBarChart.vue.js +3 -3
- package/dist/components/charts/EpBarChart.vue.js.map +1 -1
- package/dist/components/charts/EpFunnelChart.vue.js +4 -4
- package/dist/components/charts/EpFunnelChart.vue.js.map +1 -1
- package/dist/components/charts/EpLineChart.vue.js +3 -3
- package/dist/components/charts/EpLineChart.vue.js.map +1 -1
- package/dist/components/charts/EpPieChart.vue.js +4 -4
- package/dist/components/charts/EpPieChart.vue.js.map +1 -1
- package/dist/components/educationals/EpBranchingScenario.vue2.js +19 -19
- package/dist/components/educationals/EpBranchingScenario.vue2.js.map +1 -1
- package/dist/components/educationals/EpCodeblock.vue.js +1 -1
- package/dist/components/educationals/EpCodeblock.vue.js.map +1 -1
- package/dist/components/educationals/EpConclusion.vue.js +3 -3
- package/dist/components/educationals/EpConclusion.vue.js.map +1 -1
- package/dist/components/educationals/EpDescription.vue.js +1 -1
- package/dist/components/educationals/EpDocument.vue.js +4 -4
- package/dist/components/educationals/EpDocument.vue.js.map +1 -1
- package/dist/components/educationals/EpEdu.vue.js +4 -4
- package/dist/components/educationals/EpEdu.vue.js.map +1 -1
- package/dist/components/educationals/EpFillBlanks.vue.js +116 -0
- package/dist/components/educationals/EpFillBlanks.vue.js.map +1 -0
- package/dist/components/educationals/EpFillBlanks.vue2.js +5 -0
- package/dist/components/educationals/EpFillBlanks.vue2.js.map +1 -0
- package/dist/components/educationals/EpInstructions.vue.js +1 -1
- package/dist/components/educationals/EpIntroduction.vue.js +6 -6
- package/dist/components/educationals/EpIntroduction.vue.js.map +1 -1
- package/dist/components/educationals/EpObjective.vue.js +3 -3
- package/dist/components/educationals/EpObjective.vue.js.map +1 -1
- package/dist/components/educationals/EpReading.vue.js +3 -3
- package/dist/components/educationals/EpReading.vue.js.map +1 -1
- package/dist/components/educationals/EpResource.vue.js +3 -3
- package/dist/components/educationals/EpResource.vue.js.map +1 -1
- package/dist/components/educationals/EpScope.vue.js +2 -2
- package/dist/components/educationals/EpScope.vue.js.map +1 -1
- package/dist/components/educationals/EpSegmentedBox.vue.js +1 -1
- package/dist/components/educationals/EpSegmentedBox.vue.js.map +1 -1
- package/dist/components/educationals/EpSpecificObjective.vue.js +16 -10
- package/dist/components/educationals/EpSpecificObjective.vue.js.map +1 -1
- package/dist/components/forms/EpSelect.vue.js +46 -1
- package/dist/components/forms/EpSelect.vue.js.map +1 -1
- package/dist/components/forms/EpSelect.vue2.js +1 -37
- package/dist/components/forms/EpSelect.vue2.js.map +1 -1
- package/dist/components/forms/EpTextarea.vue2.js +1 -1
- package/dist/components/forms/EpTextarea.vue2.js.map +1 -1
- package/dist/components/forms/EpToggle.vue2.js +1 -1
- package/dist/components/forms/EpToggle.vue2.js.map +1 -1
- package/dist/components/interactions/EpAccordeon.vue2.js +1 -1
- package/dist/components/interactions/EpAccordeon.vue2.js.map +1 -1
- package/dist/components/interactions/EpAssociation.vue.js +14 -13
- package/dist/components/interactions/EpAssociation.vue.js.map +1 -1
- package/dist/components/interactions/EpContentSlider.vue.js +5 -4
- package/dist/components/interactions/EpContentSlider.vue.js.map +1 -1
- package/dist/components/interactions/EpFlipCard.vue2.js +17 -17
- package/dist/components/interactions/EpFlipCard.vue2.js.map +1 -1
- package/dist/components/interactions/EpHotSpot.vue.js +1 -1
- package/dist/components/interactions/EpHotSpot.vue.js.map +1 -1
- package/dist/components/interactions/EpImageCompare.vue.js +6 -6
- package/dist/components/interactions/EpImageCompare.vue.js.map +1 -1
- package/dist/components/interactions/EpModal.vue.js +4 -4
- package/dist/components/interactions/EpModal.vue.js.map +1 -1
- package/dist/components/interactions/EpQuestion.vue.js +8 -8
- package/dist/components/interactions/EpQuestion.vue.js.map +1 -1
- package/dist/components/interactions/EpSummativeTable.vue.js +3 -3
- package/dist/components/interactions/EpSummativeTable.vue.js.map +1 -1
- package/dist/components/interactions/EpTooltip.vue.js +1 -1
- package/dist/components/interactions/EpTooltip.vue.js.map +1 -1
- package/dist/components/medias/EpAudio.vue.js +3 -3
- package/dist/components/medias/EpAudio.vue.js.map +1 -1
- package/dist/components/medias/EpCardLink.vue.js +16 -16
- package/dist/components/medias/EpCardLink.vue.js.map +1 -1
- package/dist/components/medias/EpCarousel.vue.js +10 -10
- package/dist/components/medias/EpCarousel.vue.js.map +1 -1
- package/dist/components/medias/EpHierarchy.vue2.js +2 -2
- package/dist/components/medias/EpHierarchy.vue2.js.map +1 -1
- package/dist/components/medias/EpIframe.vue.js +3 -3
- package/dist/components/medias/EpIframe.vue.js.map +1 -1
- package/dist/components/medias/EpKatex.vue2.js +4 -4
- package/dist/components/medias/EpKatex.vue2.js.map +1 -1
- package/dist/components/medias/EpLink.vue.js +2 -2
- package/dist/components/medias/EpLink.vue.js.map +1 -1
- package/dist/components/medias/EpLinkVersion.vue.js +1 -1
- package/dist/components/medias/EpLinkVersion.vue.js.map +1 -1
- package/dist/components/medias/EpLottieSvg.vue.js +8 -8
- package/dist/components/medias/EpLottieSvg.vue.js.map +1 -1
- package/dist/components/medias/EpSensibleImage.vue2.js +18 -18
- package/dist/components/medias/EpSensibleImage.vue2.js.map +1 -1
- package/dist/components/medias/EpSoftware.vue.js +3 -3
- package/dist/components/medias/EpSoftware.vue.js.map +1 -1
- package/dist/components/medias/EpSvg.vue.js +4 -4
- package/dist/components/medias/EpSvg.vue.js.map +1 -1
- package/dist/components/medias/EpTerm.vue.js +6 -6
- package/dist/components/medias/EpTerm.vue.js.map +1 -1
- package/dist/components/medias/EpVideo.vue.js +2 -2
- package/dist/components/medias/EpVideo.vue.js.map +1 -1
- package/dist/components/medias/EpVideoPanopto.vue.js +3 -3
- package/dist/components/medias/EpVideoPanopto.vue.js.map +1 -1
- package/dist/components/medias/EpWordDef.vue.js +39 -39
- package/dist/components/medias/EpWordDef.vue.js.map +1 -1
- package/dist/components/signages/EpAlert.vue2.js +1 -1
- package/dist/components/signages/EpHeader.vue.js +60 -55
- package/dist/components/signages/EpHeader.vue.js.map +1 -1
- package/dist/components/signages/EpQuote.vue.js +1 -1
- package/dist/components/signages/EpSkeleton.vue2.js +1 -1
- package/dist/components/tools/AssociationNode.vue2.js +8 -8
- package/dist/components/tools/AssociationNode.vue2.js.map +1 -1
- package/dist/components/tools/AsyncKatexRender.vue2.js +1 -1
- package/dist/components/tools/AsyncKatexRender.vue2.js.map +1 -1
- package/dist/components/tools/Details.vue.js +56 -1
- package/dist/components/tools/Details.vue.js.map +1 -1
- package/dist/components/tools/Details.vue2.js +1 -56
- package/dist/components/tools/Details.vue2.js.map +1 -1
- package/dist/components/tools/RenderTextNode.vue.js +19 -1
- package/dist/components/tools/RenderTextNode.vue.js.map +1 -1
- package/dist/components/tools/RenderTextNode.vue2.js +1 -19
- package/dist/components/tools/RenderTextNode.vue2.js.map +1 -1
- package/dist/components/tools/SegmentedBox.vue2.js +3 -3
- package/dist/components/tools/SegmentedBox.vue2.js.map +1 -1
- package/dist/components/tools/TextMedia.vue.js +50 -1
- package/dist/components/tools/TextMedia.vue.js.map +1 -1
- package/dist/components/tools/TextMedia.vue2.js +1 -50
- package/dist/components/tools/TextMedia.vue2.js.map +1 -1
- package/dist/components/tools/TimelineItem.vue2.js +1 -1
- package/dist/components/tools/TwoColsMedia.vue2.js +4 -4
- package/dist/components/tools/TwoColsMedia.vue2.js.map +1 -1
- package/dist/entry/educationals/EpFillBlanks.d.ts +6 -0
- package/dist/entry/educationals/EpFillBlanks.js +7 -0
- package/dist/entry/educationals/EpFillBlanks.js.map +1 -0
- package/dist/entry/forms/EpSelect.d.ts +6 -0
- package/dist/entry/forms/EpSelect.js +7 -0
- package/dist/entry/forms/EpSelect.js.map +1 -0
- package/dist/index.d.ts +2 -1
- package/dist/index.js +159 -156
- package/dist/index.js.map +1 -1
- package/dist/style.css +82 -82
- package/dist/types/educationals/EpFillBlanks.d.ts +12 -0
- package/dist/types/forms/EpSelect.d.ts +1 -0
- package/dist/types/signages/EpHeader.d.ts +1 -0
- package/package.json +42 -39
|
@@ -46,14 +46,14 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
46
46
|
}, [
|
|
47
47
|
createElementVNode("div", {
|
|
48
48
|
class: "px-4 py-2 break-words",
|
|
49
|
-
innerHTML: unref(useRenderText)(
|
|
49
|
+
innerHTML: unref(useRenderText)(__props.data.label)
|
|
50
50
|
}, null, 8, _hoisted_1),
|
|
51
51
|
createElementVNode("span", {
|
|
52
|
-
class: normalizeClass(`rounded-full w-6 h-6 flex justify-center bg-white dark:bg-neutral-800 items-center absolute bottom-1/3 ${
|
|
53
|
-
}, toDisplayString(
|
|
52
|
+
class: normalizeClass(`rounded-full w-6 h-6 flex justify-center bg-white dark:bg-neutral-800 items-center absolute bottom-1/3 ${__props.data.left ? "-left-3" : "-right-3"} ${colorStyle.value}`)
|
|
53
|
+
}, toDisplayString(__props.data.left ? String.fromCharCode(65 + __props.data.index) : __props.data.index), 3),
|
|
54
54
|
createVNode(unref(Handle), {
|
|
55
|
-
type:
|
|
56
|
-
position:
|
|
55
|
+
type: __props.data.left ? "source" : "target",
|
|
56
|
+
position: __props.data.left ? unref(Position).Right : unref(Position).Left,
|
|
57
57
|
style: normalizeStyle({
|
|
58
58
|
width: "20px",
|
|
59
59
|
// handle invisible, pas d’espace
|
|
@@ -61,19 +61,19 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
61
61
|
top: "50%",
|
|
62
62
|
zIndex: "100",
|
|
63
63
|
transform: "translateY(-50%)",
|
|
64
|
-
left:
|
|
64
|
+
left: __props.data.left ? "96%" : "-10px",
|
|
65
65
|
opacity: 0
|
|
66
66
|
})
|
|
67
67
|
}, null, 8, ["type", "position", "style"]),
|
|
68
68
|
createVNode(_sfc_main$1, {
|
|
69
|
-
"icon-path":
|
|
69
|
+
"icon-path": __props.data.left ? plug : socket,
|
|
70
70
|
style: normalizeStyle({
|
|
71
71
|
position: "absolute",
|
|
72
72
|
width: "30px",
|
|
73
73
|
height: "30px",
|
|
74
74
|
top: "50%",
|
|
75
75
|
transform: "translateY(-50%)",
|
|
76
|
-
left:
|
|
76
|
+
left: __props.data.left ? "97%" : "-20px"
|
|
77
77
|
})
|
|
78
78
|
}, null, 8, ["icon-path", "style"])
|
|
79
79
|
], 2);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AssociationNode.vue2.js","sources":["../../../src/components/tools/AssociationNode.vue"],"sourcesContent":["<script setup lang=\"ts\">\nimport { computed } from 'vue'\nimport { Position, Handle } from '@vue-flow/core'\nimport type { NodeProps } from '@vue-flow/core'\nimport EpIcon from '../basics/EpIcon.vue'\nimport { useRenderText } from '~/composables/useRenderText';\n\n\nconst plug = 'M17,16H21V14H17V10H21V8H17V8C17,7 16,6 15,6H9.5L6,9.5H3V14.5H6L9.5,18H15C16,18 17,17 17,16Z';\nconst socket = 'M7,16C7,17 8,18 9,18H14.5L18,14.5H21V9.5H18L14.5,6H9C8,6 7,7 7,8Z M7 19 L7 5';\n\ninterface AssociationData {\n mode?: 'neutral' | 'correct' | 'wrong';\n left: boolean;\n index: number;\n label: string;\n}\n\nconst props = withDefaults(defineProps<NodeProps<AssociationData>>(), {});\n\nconst colorStyle = computed(() => {\n if(!props.data.mode || props.data.mode == 'neutral') {\n return 'border-2 border-black dark:border-white'\n }\n if(props.data.mode == 'correct') {\n return 'border-2 border-green-600'\n } else if(props.data.mode == 'wrong') {\n return 'border-2 border-red-600'\n }\n});\n\n</script>\n\n<template>\n <div :class=\"`shadow-lg rounded w-96 relative bg-surface-2 dark:bg-surface-2-dark ${colorStyle}`\">\n <div class=\"px-4 py-2 break-words\" v-html=\"useRenderText(data.label)\"></div>\n <span :class=\"`rounded-full w-6 h-6 flex justify-center bg-white dark:bg-neutral-800 items-center absolute bottom-1/3 ${(data.left)? '-left-3' : '-right-3'} ${colorStyle}`\">{{ (data.left)? String.fromCharCode(65 + data.index) : data.index }}</span>\n\n <Handle\n :type=\"data.left ? 'source' : 'target'\"\n :position=\"data.left ? Position.Right : Position.Left\"\n :style=\"{\n width: '20px', // handle invisible, pas d’espace\n height: '20px',\n top: '50%',\n zIndex: '100',\n transform: 'translateY(-50%)',\n left: data.left ? '96%' : '-10px',\n opacity: 0\n }\"\n />\n <EpIcon \n :icon-path=\"data.left ? plug : socket\"\n :style=\"{\n position: 'absolute',\n width: '30px',\n height: '30px',\n top: '50%',\n transform: 'translateY(-50%)',\n left: data.left ? '97%' : '-20px'\n }\" \n />\n </div>\n</template>\n"],"names":["_createElementBlock","_createElementVNode","_unref","
|
|
1
|
+
{"version":3,"file":"AssociationNode.vue2.js","sources":["../../../src/components/tools/AssociationNode.vue"],"sourcesContent":["<script setup lang=\"ts\">\nimport { computed } from 'vue'\nimport { Position, Handle } from '@vue-flow/core'\nimport type { NodeProps } from '@vue-flow/core'\nimport EpIcon from '../basics/EpIcon.vue'\nimport { useRenderText } from '~/composables/useRenderText';\n\n\nconst plug = 'M17,16H21V14H17V10H21V8H17V8C17,7 16,6 15,6H9.5L6,9.5H3V14.5H6L9.5,18H15C16,18 17,17 17,16Z';\nconst socket = 'M7,16C7,17 8,18 9,18H14.5L18,14.5H21V9.5H18L14.5,6H9C8,6 7,7 7,8Z M7 19 L7 5';\n\ninterface AssociationData {\n mode?: 'neutral' | 'correct' | 'wrong';\n left: boolean;\n index: number;\n label: string;\n}\n\nconst props = withDefaults(defineProps<NodeProps<AssociationData>>(), {});\n\nconst colorStyle = computed(() => {\n if(!props.data.mode || props.data.mode == 'neutral') {\n return 'border-2 border-black dark:border-white'\n }\n if(props.data.mode == 'correct') {\n return 'border-2 border-green-600'\n } else if(props.data.mode == 'wrong') {\n return 'border-2 border-red-600'\n }\n});\n\n</script>\n\n<template>\n <div :class=\"`shadow-lg rounded w-96 relative bg-surface-2 dark:bg-surface-2-dark ${colorStyle}`\">\n <div class=\"px-4 py-2 break-words\" v-html=\"useRenderText(data.label)\"></div>\n <span :class=\"`rounded-full w-6 h-6 flex justify-center bg-white dark:bg-neutral-800 items-center absolute bottom-1/3 ${(data.left)? '-left-3' : '-right-3'} ${colorStyle}`\">{{ (data.left)? String.fromCharCode(65 + data.index) : data.index }}</span>\n\n <Handle\n :type=\"data.left ? 'source' : 'target'\"\n :position=\"data.left ? Position.Right : Position.Left\"\n :style=\"{\n width: '20px', // handle invisible, pas d’espace\n height: '20px',\n top: '50%',\n zIndex: '100',\n transform: 'translateY(-50%)',\n left: data.left ? '96%' : '-10px',\n opacity: 0\n }\"\n />\n <EpIcon \n :icon-path=\"data.left ? plug : socket\"\n :style=\"{\n position: 'absolute',\n width: '30px',\n height: '30px',\n top: '50%',\n transform: 'translateY(-50%)',\n left: data.left ? '97%' : '-20px'\n }\" \n />\n </div>\n</template>\n"],"names":["_createElementBlock","_createElementVNode","_unref","_normalizeClass","_toDisplayString","_createVNode","_normalizeStyle","EpIcon"],"mappings":";;;;;AAQA,MAAM,OAAO;AACb,MAAM,SAAS;;;;;;;;;;;;;;;;;;;;;;;;;AASf,UAAM,QAAQ;AAEd,UAAM,aAAa,SAAS,MAAM;AAC9B,UAAG,CAAC,MAAM,KAAK,QAAQ,MAAM,KAAK,QAAQ,WAAW;AACjD,eAAO;AAAA,MACX;AACA,UAAG,MAAM,KAAK,QAAQ,WAAW;AAC7B,eAAO;AAAA,MACX,WAAU,MAAM,KAAK,QAAQ,SAAS;AAClC,eAAO;AAAA,MACX;AAAA,IACJ,CAAC;;0BAKGA,mBA4BM,OAAA;AAAA,QA5BA,6FAA8E,WAAA,KAAU,EAAA;AAAA,MAAA;QAC1FC,mBAA4E,OAAA;AAAA,UAAvE,OAAM;AAAA,UAAwB,WAAQC,MAAA,aAAA,EAAc,QAAA,KAAK,KAAK;AAAA,QAAA;QACnED,mBAAwP,QAAA;AAAA,UAAjP,OAAKE,eAAA,0GAA6G,QAAA,KAAK,iCAAiC,WAAA,KAAU,EAAA;AAAA,QAAA,GAAQC,gBAAA,QAAA,KAAK,OAAO,OAAO,aAAY,KAAM,QAAA,KAAK,KAAK,IAAI,QAAA,KAAK,KAAK,GAAA,CAAA;AAAA,QAE9OC,YAYEH,MAAA,MAAA,GAAA;AAAA,UAXG,MAAM,QAAA,KAAK,OAAI,WAAA;AAAA,UACf,UAAU,QAAA,KAAK,OAAOA,MAAA,QAAA,EAAS,QAAQA,MAAA,QAAA,EAAS;AAAA,UAChD,OAAKI,eAAA;AAAA;;;;;;YAAuO,MAAA,QAAA,KAAK,OAAI,QAAA;AAAA;;;QAU1PD,YAUEE,aAAA;AAAA,UATG,aAAW,QAAA,KAAK,OAAO,OAAO;AAAA,UAC9B,OAAKD,eAAA;AAAA;;;;;YAA0M,MAAA,QAAA,KAAK,OAAI,QAAA;AAAA,UAAA;;;;;;"}
|
|
@@ -20,7 +20,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
20
20
|
renderedHtml.value = `<span style="color: red;">Il y a un error pour afficher la formule.</span>`;
|
|
21
21
|
});
|
|
22
22
|
return (_ctx, _cache) => {
|
|
23
|
-
return !
|
|
23
|
+
return !__props.block ? (openBlock(), createElementBlock("span", {
|
|
24
24
|
key: 0,
|
|
25
25
|
class: "katex-render",
|
|
26
26
|
innerHTML: renderedHtml.value
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AsyncKatexRender.vue2.js","sources":["../../../src/components/tools/AsyncKatexRender.vue"],"sourcesContent":["<script setup lang=\"ts\">\nimport { ref } from 'vue';\n\nconst props = defineProps<{\n formula: string;\n block?:boolean;\n}>();\n\nconst renderedHtml = ref('...');\n\nimport('katex')\n .then((katexModule) => {\n renderedHtml.value = katexModule.default.renderToString(props.formula, {\n throwOnError: false,\n displayMode: false,\n });\n })\n .catch((error) => {\n console.error(\"Failed to load Katex library:\", error);\n renderedHtml.value = `<span style=\"color: red;\">Il y a un error pour afficher la formule.</span>`;\n });\n</script>\n\n<template>\n <span class=\"katex-render\" v-html=\"renderedHtml\" v-if=\"!block\"></span>\n <div v-else class=\"katex-block text-center\" v-html=\"renderedHtml\"></div>\n</template>\n\n<style scoped>\n/* Target the top-level KaTeX container and increase the font size */\n.katex-block :deep(.katex) {\n /* Increase the overall size of the math relative to the parent font size */\n font-size: 2em; \n}\n/* If you want inline math to be a specific size relative to surrounding text */\n.katex-render :deep(.katex-display) {\n font-size: 1.5em; \n}\n</style>"],"names":["
|
|
1
|
+
{"version":3,"file":"AsyncKatexRender.vue2.js","sources":["../../../src/components/tools/AsyncKatexRender.vue"],"sourcesContent":["<script setup lang=\"ts\">\nimport { ref } from 'vue';\n\nconst props = defineProps<{\n formula: string;\n block?:boolean;\n}>();\n\nconst renderedHtml = ref('...');\n\nimport('katex')\n .then((katexModule) => {\n renderedHtml.value = katexModule.default.renderToString(props.formula, {\n throwOnError: false,\n displayMode: false,\n });\n })\n .catch((error) => {\n console.error(\"Failed to load Katex library:\", error);\n renderedHtml.value = `<span style=\"color: red;\">Il y a un error pour afficher la formule.</span>`;\n });\n</script>\n\n<template>\n <span class=\"katex-render\" v-html=\"renderedHtml\" v-if=\"!block\"></span>\n <div v-else class=\"katex-block text-center\" v-html=\"renderedHtml\"></div>\n</template>\n\n<style scoped>\n/* Target the top-level KaTeX container and increase the font size */\n.katex-block :deep(.katex) {\n /* Increase the overall size of the math relative to the parent font size */\n font-size: 2em; \n}\n/* If you want inline math to be a specific size relative to surrounding text */\n.katex-render :deep(.katex-display) {\n font-size: 1.5em; \n}\n</style>"],"names":["_createElementBlock"],"mappings":";;;;;;;;;;AAGA,UAAM,QAAQ;AAKd,UAAM,eAAe,IAAI,KAAK;AAE9B,WAAO,OAAO,EACX,KAAK,CAAC,gBAAgB;AACrB,mBAAa,QAAQ,YAAY,QAAQ,eAAe,MAAM,SAAS;AAAA,QACrE,cAAc;AAAA,QACd,aAAa;AAAA,MAAA,CACd;AAAA,IACH,CAAC,EACA,MAAM,CAAC,UAAU;AAChB,cAAQ,MAAM,iCAAiC,KAAK;AACpD,mBAAa,QAAQ;AAAA,IACvB,CAAC;;cAIuD,QAAA,sBAAxDA,mBAAsE,QAAA;AAAA;QAAhE,OAAM;AAAA,QAAe,WAAQ,aAAA;AAAA,MAAA,yCACnCA,mBAAwE,OAAA;AAAA;QAA5D,OAAM;AAAA,QAA0B,WAAQ,aAAA;AAAA,MAAA;;;;"}
|
|
@@ -1,4 +1,59 @@
|
|
|
1
|
-
import
|
|
1
|
+
import { defineComponent, ref, createElementBlock, openBlock, createVNode, createElementVNode, withCtx, createTextVNode, toDisplayString } from "vue";
|
|
2
|
+
import _sfc_main$1 from "../interactions/EpModal.vue.js";
|
|
3
|
+
/* empty css */
|
|
4
|
+
import _sfc_main$4 from "../basics/EpBtn.vue.js";
|
|
5
|
+
import _sfc_main$3 from "../basics/EpDivider.vue.js";
|
|
6
|
+
import _sfc_main$2 from "./TextMedia.vue.js";
|
|
7
|
+
const _hoisted_1 = { class: "flex justify-end" };
|
|
8
|
+
const _hoisted_2 = { class: "text-white dark:text-neutral-900" };
|
|
9
|
+
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
10
|
+
__name: "Details",
|
|
11
|
+
props: {
|
|
12
|
+
title: { default: "Voir détails" },
|
|
13
|
+
content: {},
|
|
14
|
+
labelClose: { default: "Fermer" },
|
|
15
|
+
media: {}
|
|
16
|
+
},
|
|
17
|
+
setup(__props) {
|
|
18
|
+
const showModal = ref(false);
|
|
19
|
+
return (_ctx, _cache) => {
|
|
20
|
+
return openBlock(), createElementBlock("div", {
|
|
21
|
+
class: "cursor-pointer rounded bg-primary py-2 px-4 flex flex-col items-center",
|
|
22
|
+
onClick: _cache[2] || (_cache[2] = ($event) => showModal.value = true)
|
|
23
|
+
}, [
|
|
24
|
+
createVNode(_sfc_main$1, {
|
|
25
|
+
modelValue: showModal.value,
|
|
26
|
+
"onUpdate:modelValue": _cache[1] || (_cache[1] = ($event) => showModal.value = $event),
|
|
27
|
+
title: __props.title
|
|
28
|
+
}, {
|
|
29
|
+
default: withCtx(() => [
|
|
30
|
+
createVNode(_sfc_main$2, {
|
|
31
|
+
text: __props.content,
|
|
32
|
+
media: __props.media,
|
|
33
|
+
"text-left": ""
|
|
34
|
+
}, null, 8, ["text", "media"]),
|
|
35
|
+
createVNode(_sfc_main$3),
|
|
36
|
+
createElementVNode("div", _hoisted_1, [
|
|
37
|
+
createVNode(_sfc_main$4, {
|
|
38
|
+
type: "error",
|
|
39
|
+
rounded: "",
|
|
40
|
+
size: "small",
|
|
41
|
+
onClick: _cache[0] || (_cache[0] = ($event) => showModal.value = false)
|
|
42
|
+
}, {
|
|
43
|
+
default: withCtx(() => [
|
|
44
|
+
createTextVNode(toDisplayString(__props.labelClose), 1)
|
|
45
|
+
]),
|
|
46
|
+
_: 1
|
|
47
|
+
})
|
|
48
|
+
])
|
|
49
|
+
]),
|
|
50
|
+
_: 1
|
|
51
|
+
}, 8, ["modelValue", "title"]),
|
|
52
|
+
createElementVNode("p", _hoisted_2, toDisplayString(__props.title), 1)
|
|
53
|
+
]);
|
|
54
|
+
};
|
|
55
|
+
}
|
|
56
|
+
});
|
|
2
57
|
export {
|
|
3
58
|
_sfc_main as default
|
|
4
59
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Details.vue.js","sources":[],"sourcesContent":[],"names":[],"mappings":";"}
|
|
1
|
+
{"version":3,"file":"Details.vue.js","sources":["../../../src/components/tools/Details.vue"],"sourcesContent":["<script setup lang=\"ts\">\nimport { ref } from \"vue\";\nimport EpModal from \"~/components/interactions/EpModal.vue\";\nimport type { NestedComponents } from \"~/types/Component\";\nimport EpBtn from \"~/components/basics/EpBtn.vue\";\nimport EpDivider from \"~/components/basics/EpDivider.vue\";\nimport TextMedia from \"./TextMedia.vue\";\nconst showModal = ref(false);\n\ninterface Props {\n title?: string;\n content: string;\n labelClose?: string;\n media?: NestedComponents;\n}\n\nconst props = withDefaults(defineProps<Props>(), {\n title: \"Voir détails\",\n labelClose: \"Fermer\",\n});\n</script>\n\n<template>\n <div\n class=\"cursor-pointer rounded bg-primary py-2 px-4 flex flex-col items-center\"\n @click=\"showModal = true\"\n >\n <EpModal v-model=\"showModal\" :title=\"title\">\n <TextMedia :text=\"content\" :media=\"media\" text-left />\n <EpDivider />\n <div class=\"flex justify-end\">\n <EpBtn type=\"error\" rounded size=\"small\" @click=\"showModal = false\">\n {{ labelClose }}\n </EpBtn>\n </div>\n </EpModal>\n <p class=\"text-white dark:text-neutral-900\">{{ title }}</p>\n </div>\n</template>\n"],"names":["_createElementBlock","_createVNode","EpModal","TextMedia","EpDivider","_createElementVNode","EpBtn","_toDisplayString"],"mappings":";;;;;;;;;;;;;;;;;AAOA,UAAM,YAAY,IAAI,KAAK;;0BAgBzBA,mBAcM,OAAA;AAAA,QAbJ,OAAM;AAAA,QACL,+CAAO,UAAA,QAAS;AAAA,MAAA;QAEjBC,YAQUC,aAAA;AAAA,sBARQ,UAAA;AAAA,uEAAA,UAAS,QAAA;AAAA,UAAG,OAAO,QAAA;AAAA,QAAA;2BACnC,MAAsD;AAAA,YAAtDD,YAAsDE,aAAA;AAAA,cAA1C,MAAM,QAAA;AAAA,cAAU,OAAO,QAAA;AAAA,cAAO,aAAA;AAAA,YAAA;YAC1CF,YAAaG,WAAA;AAAA,YACbC,mBAIM,OAJN,YAIM;AAAA,cAHJJ,YAEQK,aAAA;AAAA,gBAFD,MAAK;AAAA,gBAAQ,SAAA;AAAA,gBAAQ,MAAK;AAAA,gBAAS,+CAAO,UAAA,QAAS;AAAA,cAAA;iCACxD,MAAgB;AAAA,kDAAb,QAAA,UAAU,GAAA,CAAA;AAAA,gBAAA;;;;;;;QAInBD,mBAA2D,KAA3D,YAA2DE,gBAAZ,QAAA,KAAK,GAAA,CAAA;AAAA,MAAA;;;;"}
|
|
@@ -1,59 +1,4 @@
|
|
|
1
|
-
import
|
|
2
|
-
import _sfc_main$1 from "../interactions/EpModal.vue.js";
|
|
3
|
-
/* empty css */
|
|
4
|
-
import _sfc_main$4 from "../basics/EpBtn.vue.js";
|
|
5
|
-
import _sfc_main$3 from "../basics/EpDivider.vue.js";
|
|
6
|
-
import _sfc_main$2 from "./TextMedia.vue2.js";
|
|
7
|
-
const _hoisted_1 = { class: "flex justify-end" };
|
|
8
|
-
const _hoisted_2 = { class: "text-white dark:text-neutral-900" };
|
|
9
|
-
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
10
|
-
__name: "Details",
|
|
11
|
-
props: {
|
|
12
|
-
title: { default: "Voir détails" },
|
|
13
|
-
content: {},
|
|
14
|
-
labelClose: { default: "Fermer" },
|
|
15
|
-
media: {}
|
|
16
|
-
},
|
|
17
|
-
setup(__props) {
|
|
18
|
-
const showModal = ref(false);
|
|
19
|
-
return (_ctx, _cache) => {
|
|
20
|
-
return openBlock(), createElementBlock("div", {
|
|
21
|
-
class: "cursor-pointer rounded bg-primary py-2 px-4 flex flex-col items-center",
|
|
22
|
-
onClick: _cache[2] || (_cache[2] = ($event) => showModal.value = true)
|
|
23
|
-
}, [
|
|
24
|
-
createVNode(_sfc_main$1, {
|
|
25
|
-
modelValue: showModal.value,
|
|
26
|
-
"onUpdate:modelValue": _cache[1] || (_cache[1] = ($event) => showModal.value = $event),
|
|
27
|
-
title: _ctx.title
|
|
28
|
-
}, {
|
|
29
|
-
default: withCtx(() => [
|
|
30
|
-
createVNode(_sfc_main$2, {
|
|
31
|
-
text: _ctx.content,
|
|
32
|
-
media: _ctx.media,
|
|
33
|
-
"text-left": ""
|
|
34
|
-
}, null, 8, ["text", "media"]),
|
|
35
|
-
createVNode(_sfc_main$3),
|
|
36
|
-
createElementVNode("div", _hoisted_1, [
|
|
37
|
-
createVNode(_sfc_main$4, {
|
|
38
|
-
type: "error",
|
|
39
|
-
rounded: "",
|
|
40
|
-
size: "small",
|
|
41
|
-
onClick: _cache[0] || (_cache[0] = ($event) => showModal.value = false)
|
|
42
|
-
}, {
|
|
43
|
-
default: withCtx(() => [
|
|
44
|
-
createTextVNode(toDisplayString(_ctx.labelClose), 1)
|
|
45
|
-
]),
|
|
46
|
-
_: 1
|
|
47
|
-
})
|
|
48
|
-
])
|
|
49
|
-
]),
|
|
50
|
-
_: 1
|
|
51
|
-
}, 8, ["modelValue", "title"]),
|
|
52
|
-
createElementVNode("p", _hoisted_2, toDisplayString(_ctx.title), 1)
|
|
53
|
-
]);
|
|
54
|
-
};
|
|
55
|
-
}
|
|
56
|
-
});
|
|
1
|
+
import _sfc_main from "./Details.vue.js";
|
|
57
2
|
export {
|
|
58
3
|
_sfc_main as default
|
|
59
4
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Details.vue2.js","sources":[
|
|
1
|
+
{"version":3,"file":"Details.vue2.js","sources":[],"sourcesContent":[],"names":[],"mappings":";"}
|
|
@@ -1,4 +1,22 @@
|
|
|
1
|
-
import
|
|
1
|
+
import { defineComponent, createElementBlock, openBlock, Fragment, renderList, unref, createBlock, resolveDynamicComponent } from "vue";
|
|
2
|
+
import { useTextParser } from "../../composables/useTextParser.js";
|
|
3
|
+
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
4
|
+
__name: "RenderTextNode",
|
|
5
|
+
props: {
|
|
6
|
+
content: {}
|
|
7
|
+
},
|
|
8
|
+
setup(__props) {
|
|
9
|
+
const props = __props;
|
|
10
|
+
const { renderText } = useTextParser(props.content);
|
|
11
|
+
return (_ctx, _cache) => {
|
|
12
|
+
return openBlock(), createElementBlock("div", null, [
|
|
13
|
+
(openBlock(true), createElementBlock(Fragment, null, renderList(unref(renderText), (node, i) => {
|
|
14
|
+
return openBlock(), createBlock(resolveDynamicComponent(node), { key: i });
|
|
15
|
+
}), 128))
|
|
16
|
+
]);
|
|
17
|
+
};
|
|
18
|
+
}
|
|
19
|
+
});
|
|
2
20
|
export {
|
|
3
21
|
_sfc_main as default
|
|
4
22
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"RenderTextNode.vue.js","sources":[],"sourcesContent":[],"names":[],"mappings":";"}
|
|
1
|
+
{"version":3,"file":"RenderTextNode.vue.js","sources":["../../../src/components/tools/RenderTextNode.vue"],"sourcesContent":["<script setup lang=\"ts\">\nimport { useTextParser } from \"~/composables/useTextParser\";\ninterface Props {\n content:string;\n}\nconst props = defineProps<Props>()\nconst { renderText } = useTextParser(props.content);\n</script>\n\n<template>\n <div>\n <component :is=\"node\" v-for=\"(node, i) in renderText\" :key=\"i\" />\n </div>\n</template>"],"names":["_createElementBlock","_openBlock","_Fragment","_renderList","_unref","_createBlock","_resolveDynamicComponent"],"mappings":";;;;;;;;AAKA,UAAM,QAAQ;AACd,UAAM,EAAE,WAAA,IAAe,cAAc,MAAM,OAAO;;0BAI9CA,mBAEM,OAAA,MAAA;AAAA,SADFC,UAAA,IAAA,GAAAD,mBAAiEE,UAAA,MAAAC,WAAvBC,MAAA,UAAA,GAAU,CAAtB,MAAM,MAAC;AAArC,iBAAAH,UAAA,GAAAI,YAAiEC,wBAAjD,IAAI,GAAA,EAAmC,KAAK,GAAC;AAAA;;;;;"}
|
|
@@ -1,22 +1,4 @@
|
|
|
1
|
-
import
|
|
2
|
-
import { useTextParser } from "../../composables/useTextParser.js";
|
|
3
|
-
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
4
|
-
__name: "RenderTextNode",
|
|
5
|
-
props: {
|
|
6
|
-
content: {}
|
|
7
|
-
},
|
|
8
|
-
setup(__props) {
|
|
9
|
-
const props = __props;
|
|
10
|
-
const { renderText } = useTextParser(props.content);
|
|
11
|
-
return (_ctx, _cache) => {
|
|
12
|
-
return openBlock(), createElementBlock("div", null, [
|
|
13
|
-
(openBlock(true), createElementBlock(Fragment, null, renderList(unref(renderText), (node, i) => {
|
|
14
|
-
return openBlock(), createBlock(resolveDynamicComponent(node), { key: i });
|
|
15
|
-
}), 128))
|
|
16
|
-
]);
|
|
17
|
-
};
|
|
18
|
-
}
|
|
19
|
-
});
|
|
1
|
+
import _sfc_main from "./RenderTextNode.vue.js";
|
|
20
2
|
export {
|
|
21
3
|
_sfc_main as default
|
|
22
4
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"RenderTextNode.vue2.js","sources":[
|
|
1
|
+
{"version":3,"file":"RenderTextNode.vue2.js","sources":[],"sourcesContent":[],"names":[],"mappings":";"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { defineComponent, computed, createElementBlock, openBlock, normalizeClass, createElementVNode, createVNode, toDisplayString } from "vue";
|
|
2
|
-
import _sfc_main$1 from "./RenderTextNode.
|
|
2
|
+
import _sfc_main$1 from "./RenderTextNode.vue.js";
|
|
3
3
|
const _hoisted_1 = { class: "text-xl font-semibold mb-1" };
|
|
4
4
|
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
5
5
|
__name: "SegmentedBox",
|
|
@@ -46,8 +46,8 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
46
46
|
createElementVNode("div", {
|
|
47
47
|
class: normalizeClass(innerClasses.value)
|
|
48
48
|
}, [
|
|
49
|
-
createElementVNode("h3", _hoisted_1, toDisplayString(
|
|
50
|
-
createVNode(_sfc_main$1, { content:
|
|
49
|
+
createElementVNode("h3", _hoisted_1, toDisplayString(__props.title), 1),
|
|
50
|
+
createVNode(_sfc_main$1, { content: __props.content }, null, 8, ["content"])
|
|
51
51
|
], 2)
|
|
52
52
|
], 2);
|
|
53
53
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SegmentedBox.vue2.js","sources":["../../../src/components/tools/SegmentedBox.vue"],"sourcesContent":["<script setup lang=\"ts\">\nimport {computed} from 'vue'\nimport RenderTextNode from \"~/components/tools/RenderTextNode.vue\";\nimport type { Box } from '~/types/educationals/EpSegmentedBox';\n\n\nconst props = withDefaults(defineProps<Box>(), {\n widthFull: false, \n boxCenter: true,\n opacity:false,\n bgColor:'bg-transparent',\n textCenter:true,\n})\n\nconst containerClasses = computed(() => ({\n 'w-full': props.widthFull,\n 'w-3/6': !props.widthFull,\n 'mx-auto': props.boxCenter,\n 'opacity-50': props.opacity\n}))\n\n\nconst textColorClass = computed(() => {\n if (!props.bgColor || props.bgColor === 'bg-transparent' || props.bgColor === '') {\n return ''\n }\n // Check if it's a dark shade (700, 500, or black)\n if (props.bgColor.includes('-700')) {\n return 'text-white dark:text-neutral-900'\n }\n if (props.bgColor === 'bg-black') {\n return 'text-white dark:text-neutral-900'\n }\n return ''\n})\n\nconst innerClasses = computed(() => [\n 'border border-black dark:border-white p-4 rounded-md',\n props.textCenter ? 'text-center' : 'text-left',\n props.bgColor, textColorClass.value\n])\n</script>\n\n<template>\n <div :class=\"containerClasses\" class=\"mb-3\">\n <div :class=\"innerClasses\">\n <h3 class=\"text-xl font-semibold mb-1\">{{ title }}</h3>\n <RenderTextNode :content=\"content\" />\n </div>\n </div>\n</template>"],"names":["_createElementBlock","_normalizeClass","_createElementVNode","_toDisplayString","
|
|
1
|
+
{"version":3,"file":"SegmentedBox.vue2.js","sources":["../../../src/components/tools/SegmentedBox.vue"],"sourcesContent":["<script setup lang=\"ts\">\nimport {computed} from 'vue'\nimport RenderTextNode from \"~/components/tools/RenderTextNode.vue\";\nimport type { Box } from '~/types/educationals/EpSegmentedBox';\n\n\nconst props = withDefaults(defineProps<Box>(), {\n widthFull: false, \n boxCenter: true,\n opacity:false,\n bgColor:'bg-transparent',\n textCenter:true,\n})\n\nconst containerClasses = computed(() => ({\n 'w-full': props.widthFull,\n 'w-3/6': !props.widthFull,\n 'mx-auto': props.boxCenter,\n 'opacity-50': props.opacity\n}))\n\n\nconst textColorClass = computed(() => {\n if (!props.bgColor || props.bgColor === 'bg-transparent' || props.bgColor === '') {\n return ''\n }\n // Check if it's a dark shade (700, 500, or black)\n if (props.bgColor.includes('-700')) {\n return 'text-white dark:text-neutral-900'\n }\n if (props.bgColor === 'bg-black') {\n return 'text-white dark:text-neutral-900'\n }\n return ''\n})\n\nconst innerClasses = computed(() => [\n 'border border-black dark:border-white p-4 rounded-md',\n props.textCenter ? 'text-center' : 'text-left',\n props.bgColor, textColorClass.value\n])\n</script>\n\n<template>\n <div :class=\"containerClasses\" class=\"mb-3\">\n <div :class=\"innerClasses\">\n <h3 class=\"text-xl font-semibold mb-1\">{{ title }}</h3>\n <RenderTextNode :content=\"content\" />\n </div>\n </div>\n</template>"],"names":["_createElementBlock","_normalizeClass","_createElementVNode","_toDisplayString","_createVNode","RenderTextNode"],"mappings":";;;;;;;;;;;;;;;;AAMA,UAAM,QAAQ;AAQd,UAAM,mBAAmB,SAAS,OAAO;AAAA,MACrC,UAAU,MAAM;AAAA,MAChB,SAAS,CAAC,MAAM;AAAA,MAChB,WAAW,MAAM;AAAA,MACjB,cAAc,MAAM;AAAA,IAAA,EACtB;AAGF,UAAM,iBAAiB,SAAS,MAAM;AAClC,UAAI,CAAC,MAAM,WAAW,MAAM,YAAY,oBAAoB,MAAM,YAAY,IAAI;AAC9E,eAAO;AAAA,MACX;AAEA,UAAI,MAAM,QAAQ,SAAS,MAAM,GAAG;AAChC,eAAO;AAAA,MACX;AACA,UAAI,MAAM,YAAY,YAAY;AAC9B,eAAO;AAAA,MACX;AACA,aAAO;AAAA,IACX,CAAC;AAED,UAAM,eAAe,SAAS,MAAM;AAAA,MACjC;AAAA,MACC,MAAM,aAAa,gBAAgB;AAAA,MACnC,MAAM;AAAA,MAAS,eAAe;AAAA,IAAA,CACjC;;0BAIEA,mBAKM,OAAA;AAAA,QALA,OAAKC,eAAA,CAAE,iBAAA,OAAwB,MAAM,CAAA;AAAA,MAAA;QACtCC,mBAGM,OAAA;AAAA,UAHA,sBAAO,aAAA,KAAY;AAAA,QAAA;UACrBA,mBAAuD,MAAvD,YAAuDC,gBAAb,QAAA,KAAK,GAAA,CAAA;AAAA,UAC/CC,YAAqCC,aAAA,EAApB,SAAS,QAAA,QAAA,GAAO,MAAA,GAAA,CAAA,SAAA,CAAA;AAAA,QAAA;;;;;"}
|
|
@@ -1,4 +1,53 @@
|
|
|
1
|
-
import
|
|
1
|
+
import __variableDynamicImportRuntimeHelper from "../../_virtual/dynamic-import-helper.js";
|
|
2
|
+
import { defineComponent, computed, defineAsyncComponent, createElementBlock, openBlock, normalizeClass, createElementVNode, createCommentVNode, unref, createBlock, resolveDynamicComponent, normalizeProps, guardReactiveProps } from "vue";
|
|
3
|
+
import { useRenderText } from "../../composables/useRenderText.js";
|
|
4
|
+
import { useComponent } from "../../composables/useComponent.js";
|
|
5
|
+
const _hoisted_1 = ["innerHTML"];
|
|
6
|
+
const _hoisted_2 = {
|
|
7
|
+
key: 0,
|
|
8
|
+
class: "w-full"
|
|
9
|
+
};
|
|
10
|
+
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
11
|
+
__name: "TextMedia",
|
|
12
|
+
props: {
|
|
13
|
+
media: {},
|
|
14
|
+
flexCol: { type: Boolean, default: false },
|
|
15
|
+
text: {},
|
|
16
|
+
cols: { type: Boolean },
|
|
17
|
+
textLeft: { type: Boolean }
|
|
18
|
+
},
|
|
19
|
+
setup(__props) {
|
|
20
|
+
const props = __props;
|
|
21
|
+
const currentRenderComponent = computed(() => {
|
|
22
|
+
if (props.media) {
|
|
23
|
+
const componentToLoad = useComponent(props.media.type);
|
|
24
|
+
return defineAsyncComponent(
|
|
25
|
+
() => __variableDynamicImportRuntimeHelper(/* @__PURE__ */ Object.assign({ "../basics/EpAvatar.vue": () => import("../basics/EpAvatar.vue.js"), "../basics/EpBadge.vue": () => import("../basics/EpBadge.vue.js"), "../basics/EpBtn.vue": () => import("../basics/EpBtn.vue2.js"), "../basics/EpCard.vue": () => import("../basics/EpCard.vue2.js"), "../basics/EpChip.vue": () => import("../basics/EpChip.vue2.js"), "../basics/EpDivider.vue": () => import("../basics/EpDivider.vue2.js"), "../basics/EpFlex.vue": () => import("../basics/EpFlex.vue2.js"), "../basics/EpHover.vue": () => import("../basics/EpHover.vue2.js"), "../basics/EpHoverCard.vue": () => import("../basics/EpHoverCard.vue2.js"), "../basics/EpIcon.vue": () => import("../basics/EpIcon.vue2.js"), "../basics/EpImg.vue": () => import("../basics/EpImg.vue2.js"), "../basics/EpImgCarousel.vue": () => import("../basics/EpImgCarousel.vue2.js"), "../basics/EpList.vue": () => import("../basics/EpList.vue.js"), "../basics/EpListItem.vue": () => import("../basics/EpListItem.vue2.js"), "../basics/EpSection.vue": () => import("../basics/EpSection.vue2.js"), "../basics/EpSectionCols.vue": () => import("../basics/EpSectionCols.vue2.js"), "../basics/EpSpinner.vue": () => import("../basics/EpSpinner.vue2.js"), "../basics/EpStackedList.vue": () => import("../basics/EpStackedList.vue2.js"), "../basics/EpTable.vue": () => import("../basics/EpTable.vue2.js"), "../basics/EpText.vue": () => import("../basics/EpText.vue2.js"), "../charts/EpBarChart.vue": () => import("../charts/EpBarChart.vue2.js"), "../charts/EpFunnelChart.vue": () => import("../charts/EpFunnelChart.vue2.js"), "../charts/EpLineChart.vue": () => import("../charts/EpLineChart.vue2.js"), "../charts/EpPieChart.vue": () => import("../charts/EpPieChart.vue2.js"), "../educationals/EpBranchingScenario.vue": () => import("../educationals/EpBranchingScenario.vue.js"), "../educationals/EpCodeblock.vue": () => import("../educationals/EpCodeblock.vue3.js"), "../educationals/EpConclusion.vue": () => import("../educationals/EpConclusion.vue2.js"), "../educationals/EpDescription.vue": () => import("../educationals/EpDescription.vue2.js"), "../educationals/EpDocument.vue": () => import("../educationals/EpDocument.vue2.js"), "../educationals/EpEdu.vue": () => import("../educationals/EpEdu.vue2.js"), "../educationals/EpFillBlanks.vue": () => import("../educationals/EpFillBlanks.vue2.js"), "../educationals/EpInstructions.vue": () => import("../educationals/EpInstructions.vue2.js"), "../educationals/EpIntroduction.vue": () => import("../educationals/EpIntroduction.vue2.js"), "../educationals/EpObjective.vue": () => import("../educationals/EpObjective.vue2.js"), "../educationals/EpReading.vue": () => import("../educationals/EpReading.vue2.js"), "../educationals/EpResource.vue": () => import("../educationals/EpResource.vue2.js"), "../educationals/EpScope.vue": () => import("../educationals/EpScope.vue2.js"), "../educationals/EpSegmentedBox.vue": () => import("../educationals/EpSegmentedBox.vue2.js"), "../educationals/EpSpecificObjective.vue": () => import("../educationals/EpSpecificObjective.vue2.js"), "../forms/EpCheckbox.vue": () => import("../forms/EpCheckbox.vue.js"), "../forms/EpInput.vue": () => import("../forms/EpInput.vue.js"), "../forms/EpRadio.vue": () => import("../forms/EpRadio.vue.js"), "../forms/EpRadioSummative.vue": () => import("../forms/EpRadioSummative.vue.js"), "../forms/EpSelect.vue": () => import("../forms/EpSelect.vue2.js"), "../forms/EpSwitch.vue": () => import("../forms/EpSwitch.vue.js"), "../forms/EpTextarea.vue": () => import("../forms/EpTextarea.vue.js"), "../forms/EpToggle.vue": () => import("../forms/EpToggle.vue.js"), "../interactions/Ep360Image.vue": () => import("../interactions/Ep360Image.vue.js"), "../interactions/Ep360Video.vue": () => import("../interactions/Ep360Video.vue.js"), "../interactions/EpAccordeon.vue": () => import("../interactions/EpAccordeon.vue.js"), "../interactions/EpAssociation.vue": () => import("../interactions/EpAssociation.vue2.js"), "../interactions/EpContentSlider.vue": () => import("../interactions/EpContentSlider.vue2.js"), "../interactions/EpDarkMode.vue": () => import("../interactions/EpDarkMode.vue2.js"), "../interactions/EpDraggable.vue": () => import("../interactions/EpDraggable.vue2.js"), "../interactions/EpFlipCard.vue": () => import("../interactions/EpFlipCard.vue.js"), "../interactions/EpHotSpot.vue": () => import("../interactions/EpHotSpot.vue2.js"), "../interactions/EpImageCompare.vue": () => import("../interactions/EpImageCompare.vue2.js"), "../interactions/EpModal.vue": () => import("../interactions/EpModal.vue3.js"), "../interactions/EpQuestion.vue": () => import("../interactions/EpQuestion.vue2.js"), "../interactions/EpSummativeTable.vue": () => import("../interactions/EpSummativeTable.vue2.js"), "../interactions/EpSvgShow.vue": () => import("../interactions/EpSvgShow.vue2.js"), "../interactions/EpTabs.vue": () => import("../interactions/EpTabs.vue.js"), "../interactions/EpTooltip.vue": () => import("../interactions/EpTooltip.vue2.js"), "../medias/EpAudio.vue": () => import("../medias/EpAudio.vue2.js"), "../medias/EpCardLink.vue": () => import("../medias/EpCardLink.vue2.js"), "../medias/EpCarousel.vue": () => import("../medias/EpCarousel.vue2.js"), "../medias/EpHierarchy.vue": () => import("../medias/EpHierarchy.vue.js"), "../medias/EpIframe.vue": () => import("../medias/EpIframe.vue2.js"), "../medias/EpKatex.vue": () => import("../medias/EpKatex.vue.js"), "../medias/EpLink.vue": () => import("../medias/EpLink.vue2.js"), "../medias/EpLinkVersion.vue": () => import("../medias/EpLinkVersion.vue2.js"), "../medias/EpLottieSvg.vue": () => import("../medias/EpLottieSvg.vue2.js"), "../medias/EpSensibleImage.vue": () => import("../medias/EpSensibleImage.vue.js"), "../medias/EpSoftware.vue": () => import("../medias/EpSoftware.vue2.js"), "../medias/EpSvg.vue": () => import("../medias/EpSvg.vue2.js"), "../medias/EpTerm.vue": () => import("../medias/EpTerm.vue2.js"), "../medias/EpTimeLine.vue": () => import("../medias/EpTimeLine.vue.js"), "../medias/EpVideo.vue": () => import("../medias/EpVideo.vue2.js"), "../medias/EpVideoPanopto.vue": () => import("../medias/EpVideoPanopto.vue2.js"), "../medias/EpWordDef.vue": () => import("../medias/EpWordDef.vue2.js"), "../signages/EpAlert.vue": () => import("../signages/EpAlert.vue.js"), "../signages/EpBadge.vue": () => import("../signages/EpBadge.vue2.js"), "../signages/EpHeader.vue": () => import("../signages/EpHeader.vue2.js"), "../signages/EpNothing.vue": () => import("../signages/EpNothing.vue.js"), "../signages/EpQuote.vue": () => import("../signages/EpQuote.vue2.js"), "../signages/EpSkeleton.vue": () => import("../signages/EpSkeleton.vue.js"), "./AssociationNode.vue": () => import("./AssociationNode.vue.js"), "./AsyncKatexRender.vue": () => import("./AsyncKatexRender.vue.js"), "./BgAudio.vue": () => import("./BgAudio.vue.js"), "./Details.vue": () => import("./Details.vue2.js"), "./DisplayBox.vue": () => import("./DisplayBox.vue.js"), "./RenderTextNode.vue": () => import("./RenderTextNode.vue2.js"), "./SegmentedBox.vue": () => import("./SegmentedBox.vue.js"), "./SvgFilter.vue": () => import("./SvgFilter.vue.js"), "./TextMedia.vue": () => import("./TextMedia.vue2.js"), "./TimelineItem.vue": () => import("./TimelineItem.vue.js"), "./TwoColsMedia.vue": () => import("./TwoColsMedia.vue.js") }), `../${componentToLoad.path}/${componentToLoad.name}.vue`, 3)
|
|
26
|
+
);
|
|
27
|
+
}
|
|
28
|
+
return null;
|
|
29
|
+
});
|
|
30
|
+
const colsStyle = computed(() => {
|
|
31
|
+
return props.cols ? "flex items-center justify-center gap-1" : "";
|
|
32
|
+
});
|
|
33
|
+
computed(() => {
|
|
34
|
+
return props.textLeft ? "text-red-900" : "text-red-700";
|
|
35
|
+
});
|
|
36
|
+
return (_ctx, _cache) => {
|
|
37
|
+
return openBlock(), createElementBlock("div", {
|
|
38
|
+
class: normalizeClass(colsStyle.value)
|
|
39
|
+
}, [
|
|
40
|
+
createElementVNode("div", {
|
|
41
|
+
class: normalizeClass(`w-full ${__props.flexCol ? "flex flex-col" : ""}`),
|
|
42
|
+
innerHTML: unref(useRenderText)(__props.text)
|
|
43
|
+
}, null, 10, _hoisted_1),
|
|
44
|
+
currentRenderComponent.value && __props.media ? (openBlock(), createElementBlock("div", _hoisted_2, [
|
|
45
|
+
(openBlock(), createBlock(resolveDynamicComponent(currentRenderComponent.value), normalizeProps(guardReactiveProps({ ...__props.media.data, card: true })), null, 16))
|
|
46
|
+
])) : createCommentVNode("", true)
|
|
47
|
+
], 2);
|
|
48
|
+
};
|
|
49
|
+
}
|
|
50
|
+
});
|
|
2
51
|
export {
|
|
3
52
|
_sfc_main as default
|
|
4
53
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TextMedia.vue.js","sources":[],"sourcesContent":[],"names":[],"mappings":";"}
|
|
1
|
+
{"version":3,"file":"TextMedia.vue.js","sources":["../../../src/components/tools/TextMedia.vue"],"sourcesContent":["<script setup lang=\"ts\">\nimport { computed, defineAsyncComponent } from \"vue\";\nimport { useRenderText } from \"~/composables/useRenderText\";\nimport { useComponent } from \"~/composables/useComponent\";\nimport type { NestedComponents } from \"~/types/Component\";\n\ninterface Props {\n media?: NestedComponents;\n flexCol?: boolean;\n text: string;\n cols?: boolean;\n textLeft?: boolean;\n}\n\nconst props = withDefaults(defineProps<Props>(), {\n flexCol: false\n});\n\nconst currentRenderComponent = computed(() => {\n if (props.media) {\n const componentToLoad = useComponent(props.media.type);\n return defineAsyncComponent(\n () => import(`../${componentToLoad.path}/${componentToLoad.name}.vue`)\n );\n }\n return null;\n});\n\nconst colsStyle = computed(() => {\n return props.cols ? \"flex items-center justify-center gap-1\" : \"\";\n});\n\nconst alignText = computed(() => {\n return props.textLeft ? \"text-red-900\" : \"text-red-700\";\n});\n</script>\n\n<template>\n <div :class=\"colsStyle\">\n <div :class=\"`w-full ${(flexCol ? 'flex flex-col' : '')}`\" v-html=\"useRenderText(text)\" />\n <div class=\"w-full\" v-if=\"currentRenderComponent && media\">\n <component :is=\"currentRenderComponent\" v-bind=\"{ ...media.data, card:true }\" />\n </div>\n </div>\n</template>\n"],"names":["_createElementBlock","_createElementVNode","_unref","_openBlock","_createBlock","_resolveDynamicComponent","_normalizeProps","_guardReactiveProps"],"mappings":";;;;;;;;;;;;;;;;;;;AAcA,UAAM,QAAQ;AAId,UAAM,yBAAyB,SAAS,MAAM;AAC5C,UAAI,MAAM,OAAO;AACf,cAAM,kBAAkB,aAAa,MAAM,MAAM,IAAI;AACrD,eAAO;AAAA,UACL,MAAM,qCAAA,uBAAA,OAAA,EAAA,0BAAA,MAAA,OAAA,2BAAA,GAAA,yBAAA,MAAA,OAAA,0BAAA,GAAA,uBAAA,MAAA,OAAA,yBAAA,GAAA,wBAAA,MAAA,OAAA,0BAAA,GAAA,wBAAA,MAAA,OAAA,0BAAA,GAAA,2BAAA,MAAA,OAAA,6BAAA,GAAA,wBAAA,MAAA,OAAA,0BAAA,GAAA,yBAAA,MAAA,OAAA,2BAAA,GAAA,6BAAA,MAAA,OAAA,+BAAA,GAAA,wBAAA,MAAA,OAAA,0BAAA,GAAA,uBAAA,MAAA,OAAA,yBAAA,GAAA,+BAAA,MAAA,OAAA,iCAAA,GAAA,wBAAA,MAAA,OAAA,yBAAA,GAAA,4BAAA,MAAA,OAAA,8BAAA,GAAA,2BAAA,MAAA,OAAA,6BAAA,GAAA,+BAAA,MAAA,OAAA,iCAAA,GAAA,2BAAA,MAAA,OAAA,6BAAA,GAAA,+BAAA,MAAA,OAAA,iCAAA,GAAA,yBAAA,MAAA,OAAA,2BAAA,GAAA,wBAAA,MAAA,OAAA,0BAAA,GAAA,4BAAA,MAAA,OAAA,8BAAA,GAAA,+BAAA,MAAA,OAAA,iCAAA,GAAA,6BAAA,MAAA,OAAA,+BAAA,GAAA,4BAAA,MAAA,OAAA,8BAAA,GAAA,2CAAA,MAAA,OAAA,4CAAA,GAAA,mCAAA,MAAA,OAAA,qCAAA,GAAA,oCAAA,MAAA,OAAA,sCAAA,GAAA,qCAAA,MAAA,OAAA,uCAAA,GAAA,kCAAA,MAAA,OAAA,oCAAA,GAAA,6BAAA,MAAA,OAAA,+BAAA,GAAA,oCAAA,MAAA,OAAA,sCAAA,GAAA,sCAAA,MAAA,OAAA,wCAAA,GAAA,sCAAA,MAAA,OAAA,wCAAA,GAAA,mCAAA,MAAA,OAAA,qCAAA,GAAA,iCAAA,MAAA,OAAA,mCAAA,GAAA,kCAAA,MAAA,OAAA,oCAAA,GAAA,+BAAA,MAAA,OAAA,iCAAA,GAAA,sCAAA,MAAA,OAAA,wCAAA,GAAA,2CAAA,MAAA,OAAA,6CAAA,GAAA,2BAAA,MAAA,OAAA,4BAAA,GAAA,wBAAA,MAAA,OAAA,yBAAA,GAAA,wBAAA,MAAA,OAAA,yBAAA,GAAA,iCAAA,MAAA,OAAA,kCAAA,GAAA,yBAAA,MAAA,OAAA,2BAAA,GAAA,yBAAA,MAAA,OAAA,0BAAA,GAAA,2BAAA,MAAA,OAAA,4BAAA,GAAA,yBAAA,MAAA,OAAA,0BAAA,GAAA,kCAAA,MAAA,OAAA,mCAAA,GAAA,kCAAA,MAAA,OAAA,mCAAA,GAAA,mCAAA,MAAA,OAAA,oCAAA,GAAA,qCAAA,MAAA,OAAA,uCAAA,GAAA,uCAAA,MAAA,OAAA,yCAAA,GAAA,kCAAA,MAAA,OAAA,oCAAA,GAAA,mCAAA,MAAA,OAAA,qCAAA,GAAA,kCAAA,MAAA,OAAA,mCAAA,GAAA,iCAAA,MAAA,OAAA,mCAAA,GAAA,sCAAA,MAAA,OAAA,wCAAA,GAAA,+BAAA,MAAA,OAAA,iCAAA,GAAA,kCAAA,MAAA,OAAA,oCAAA,GAAA,wCAAA,MAAA,OAAA,0CAAA,GAAA,iCAAA,MAAA,OAAA,mCAAA,GAAA,8BAAA,MAAA,OAAA,+BAAA,GAAA,iCAAA,MAAA,OAAA,mCAAA,GAAA,yBAAA,MAAA,OAAA,2BAAA,GAAA,4BAAA,MAAA,OAAA,8BAAA,GAAA,4BAAA,MAAA,OAAA,8BAAA,GAAA,6BAAA,MAAA,OAAA,8BAAA,GAAA,0BAAA,MAAA,OAAA,4BAAA,GAAA,yBAAA,MAAA,OAAA,0BAAA,GAAA,wBAAA,MAAA,OAAA,0BAAA,GAAA,+BAAA,MAAA,OAAA,iCAAA,GAAA,6BAAA,MAAA,OAAA,+BAAA,GAAA,iCAAA,MAAA,OAAA,kCAAA,GAAA,4BAAA,MAAA,OAAA,8BAAA,GAAA,uBAAA,MAAA,OAAA,yBAAA,GAAA,wBAAA,MAAA,OAAA,0BAAA,GAAA,4BAAA,MAAA,OAAA,6BAAA,GAAA,yBAAA,MAAA,OAAA,2BAAA,GAAA,gCAAA,MAAA,OAAA,kCAAA,GAAA,2BAAA,MAAA,OAAA,6BAAA,GAAA,2BAAA,MAAA,OAAA,4BAAA,GAAA,2BAAA,MAAA,OAAA,6BAAA,GAAA,4BAAA,MAAA,OAAA,8BAAA,GAAA,6BAAA,MAAA,OAAA,8BAAA,GAAA,2BAAA,MAAA,OAAA,6BAAA,GAAA,8BAAA,MAAA,OAAA,+BAAA,GAAA,yBAAA,MAAA,OAAA,0BAAA,GAAA,0BAAA,MAAA,OAAA,2BAAA,GAAA,iBAAA,MAAA,OAAA,kBAAA,GAAA,iBAAA,MAAA,OAAA,mBAAA,GAAA,oBAAA,MAAA,OAAA,qBAAA,GAAA,wBAAA,MAAA,OAAA,0BAAA,GAAA,sBAAA,MAAA,OAAA,uBAAA,GAAA,mBAAA,MAAA,OAAA,oBAAA,GAAA,mBAAA,MAAA,OAAA,qBAAA,GAAA,sBAAA,MAAA,OAAA,uBAAA,GAAA,sBAAA,MAAA,OAAA,uBAAA,EAAA,CAAA,GAAA,MAAA,gBAAA,IAAA,IAAA,gBAAA,IAAA,QAAA,CAAA;AAAA,QAAyD;AAAA,MAEnE;AACA,aAAO;AAAA,IACT,CAAC;AAED,UAAM,YAAY,SAAS,MAAM;AAC/B,aAAO,MAAM,OAAO,2CAA2C;AAAA,IACjE,CAAC;AAEiB,aAAS,MAAM;AAC/B,aAAO,MAAM,WAAW,iBAAiB;AAAA,IAC3C,CAAC;;0BAICA,mBAKM,OAAA;AAAA,QALA,sBAAO,UAAA,KAAS;AAAA,MAAA;QACpBC,mBAA2F,OAAA;AAAA,UAArF,iCAAmB,QAAA,UAAO,kBAAA,EAAA,EAAA;AAAA,UAA4B,WAAQC,MAAA,aAAA,EAAc,QAAA,IAAI;AAAA,QAAA;QAC5D,uBAAA,SAA0B,QAAA,SAApDC,aAAAH,mBAEM,OAFN,YAEM;AAAA,WADJG,UAAA,GAAAC,YAAgFC,wBAAhE,uBAAA,KAAsB,GAAAC,eAAAC,mBAAA,EAAA,GAAe,QAAA,MAAM,MAAI,MAAA,KAAA,CAAA,CAAA,GAAA,MAAA,EAAA;AAAA,QAAA;;;;;"}
|
|
@@ -1,53 +1,4 @@
|
|
|
1
|
-
import
|
|
2
|
-
import { defineComponent, computed, defineAsyncComponent, createElementBlock, openBlock, normalizeClass, createElementVNode, createCommentVNode, unref, createBlock, resolveDynamicComponent, normalizeProps, guardReactiveProps } from "vue";
|
|
3
|
-
import { useRenderText } from "../../composables/useRenderText.js";
|
|
4
|
-
import { useComponent } from "../../composables/useComponent.js";
|
|
5
|
-
const _hoisted_1 = ["innerHTML"];
|
|
6
|
-
const _hoisted_2 = {
|
|
7
|
-
key: 0,
|
|
8
|
-
class: "w-full"
|
|
9
|
-
};
|
|
10
|
-
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
11
|
-
__name: "TextMedia",
|
|
12
|
-
props: {
|
|
13
|
-
media: {},
|
|
14
|
-
flexCol: { type: Boolean, default: false },
|
|
15
|
-
text: {},
|
|
16
|
-
cols: { type: Boolean },
|
|
17
|
-
textLeft: { type: Boolean }
|
|
18
|
-
},
|
|
19
|
-
setup(__props) {
|
|
20
|
-
const props = __props;
|
|
21
|
-
const currentRenderComponent = computed(() => {
|
|
22
|
-
if (props.media) {
|
|
23
|
-
const componentToLoad = useComponent(props.media.type);
|
|
24
|
-
return defineAsyncComponent(
|
|
25
|
-
() => __variableDynamicImportRuntimeHelper(/* @__PURE__ */ Object.assign({ "../basics/EpAvatar.vue": () => import("../basics/EpAvatar.vue2.js"), "../basics/EpBadge.vue": () => import("../basics/EpBadge.vue.js"), "../basics/EpBtn.vue": () => import("../basics/EpBtn.vue2.js"), "../basics/EpCard.vue": () => import("../basics/EpCard.vue2.js"), "../basics/EpChip.vue": () => import("../basics/EpChip.vue2.js"), "../basics/EpDivider.vue": () => import("../basics/EpDivider.vue2.js"), "../basics/EpFlex.vue": () => import("../basics/EpFlex.vue2.js"), "../basics/EpHover.vue": () => import("../basics/EpHover.vue2.js"), "../basics/EpHoverCard.vue": () => import("../basics/EpHoverCard.vue2.js"), "../basics/EpIcon.vue": () => import("../basics/EpIcon.vue2.js"), "../basics/EpImg.vue": () => import("../basics/EpImg.vue2.js"), "../basics/EpImgCarousel.vue": () => import("../basics/EpImgCarousel.vue2.js"), "../basics/EpList.vue": () => import("../basics/EpList.vue.js"), "../basics/EpListItem.vue": () => import("../basics/EpListItem.vue2.js"), "../basics/EpSection.vue": () => import("../basics/EpSection.vue2.js"), "../basics/EpSectionCols.vue": () => import("../basics/EpSectionCols.vue2.js"), "../basics/EpSpinner.vue": () => import("../basics/EpSpinner.vue2.js"), "../basics/EpStackedList.vue": () => import("../basics/EpStackedList.vue2.js"), "../basics/EpTable.vue": () => import("../basics/EpTable.vue2.js"), "../basics/EpText.vue": () => import("../basics/EpText.vue2.js"), "../charts/EpBarChart.vue": () => import("../charts/EpBarChart.vue2.js"), "../charts/EpFunnelChart.vue": () => import("../charts/EpFunnelChart.vue2.js"), "../charts/EpLineChart.vue": () => import("../charts/EpLineChart.vue2.js"), "../charts/EpPieChart.vue": () => import("../charts/EpPieChart.vue2.js"), "../educationals/EpBranchingScenario.vue": () => import("../educationals/EpBranchingScenario.vue.js"), "../educationals/EpCodeblock.vue": () => import("../educationals/EpCodeblock.vue3.js"), "../educationals/EpConclusion.vue": () => import("../educationals/EpConclusion.vue2.js"), "../educationals/EpDescription.vue": () => import("../educationals/EpDescription.vue2.js"), "../educationals/EpDocument.vue": () => import("../educationals/EpDocument.vue2.js"), "../educationals/EpEdu.vue": () => import("../educationals/EpEdu.vue2.js"), "../educationals/EpInstructions.vue": () => import("../educationals/EpInstructions.vue2.js"), "../educationals/EpIntroduction.vue": () => import("../educationals/EpIntroduction.vue2.js"), "../educationals/EpObjective.vue": () => import("../educationals/EpObjective.vue2.js"), "../educationals/EpReading.vue": () => import("../educationals/EpReading.vue2.js"), "../educationals/EpResource.vue": () => import("../educationals/EpResource.vue2.js"), "../educationals/EpScope.vue": () => import("../educationals/EpScope.vue2.js"), "../educationals/EpSegmentedBox.vue": () => import("../educationals/EpSegmentedBox.vue2.js"), "../educationals/EpSpecificObjective.vue": () => import("../educationals/EpSpecificObjective.vue2.js"), "../forms/EpCheckbox.vue": () => import("../forms/EpCheckbox.vue.js"), "../forms/EpInput.vue": () => import("../forms/EpInput.vue.js"), "../forms/EpRadio.vue": () => import("../forms/EpRadio.vue.js"), "../forms/EpRadioSummative.vue": () => import("../forms/EpRadioSummative.vue.js"), "../forms/EpSelect.vue": () => import("../forms/EpSelect.vue.js"), "../forms/EpSwitch.vue": () => import("../forms/EpSwitch.vue.js"), "../forms/EpTextarea.vue": () => import("../forms/EpTextarea.vue.js"), "../forms/EpToggle.vue": () => import("../forms/EpToggle.vue.js"), "../interactions/Ep360Image.vue": () => import("../interactions/Ep360Image.vue.js"), "../interactions/Ep360Video.vue": () => import("../interactions/Ep360Video.vue.js"), "../interactions/EpAccordeon.vue": () => import("../interactions/EpAccordeon.vue.js"), "../interactions/EpAssociation.vue": () => import("../interactions/EpAssociation.vue2.js"), "../interactions/EpContentSlider.vue": () => import("../interactions/EpContentSlider.vue2.js"), "../interactions/EpDarkMode.vue": () => import("../interactions/EpDarkMode.vue2.js"), "../interactions/EpDraggable.vue": () => import("../interactions/EpDraggable.vue2.js"), "../interactions/EpFlipCard.vue": () => import("../interactions/EpFlipCard.vue.js"), "../interactions/EpHotSpot.vue": () => import("../interactions/EpHotSpot.vue2.js"), "../interactions/EpImageCompare.vue": () => import("../interactions/EpImageCompare.vue2.js"), "../interactions/EpModal.vue": () => import("../interactions/EpModal.vue3.js"), "../interactions/EpQuestion.vue": () => import("../interactions/EpQuestion.vue2.js"), "../interactions/EpSummativeTable.vue": () => import("../interactions/EpSummativeTable.vue2.js"), "../interactions/EpSvgShow.vue": () => import("../interactions/EpSvgShow.vue2.js"), "../interactions/EpTabs.vue": () => import("../interactions/EpTabs.vue.js"), "../interactions/EpTooltip.vue": () => import("../interactions/EpTooltip.vue2.js"), "../medias/EpAudio.vue": () => import("../medias/EpAudio.vue2.js"), "../medias/EpCardLink.vue": () => import("../medias/EpCardLink.vue2.js"), "../medias/EpCarousel.vue": () => import("../medias/EpCarousel.vue2.js"), "../medias/EpHierarchy.vue": () => import("../medias/EpHierarchy.vue.js"), "../medias/EpIframe.vue": () => import("../medias/EpIframe.vue2.js"), "../medias/EpKatex.vue": () => import("../medias/EpKatex.vue.js"), "../medias/EpLink.vue": () => import("../medias/EpLink.vue2.js"), "../medias/EpLinkVersion.vue": () => import("../medias/EpLinkVersion.vue2.js"), "../medias/EpLottieSvg.vue": () => import("../medias/EpLottieSvg.vue2.js"), "../medias/EpSensibleImage.vue": () => import("../medias/EpSensibleImage.vue.js"), "../medias/EpSoftware.vue": () => import("../medias/EpSoftware.vue2.js"), "../medias/EpSvg.vue": () => import("../medias/EpSvg.vue2.js"), "../medias/EpTerm.vue": () => import("../medias/EpTerm.vue2.js"), "../medias/EpTimeLine.vue": () => import("../medias/EpTimeLine.vue.js"), "../medias/EpVideo.vue": () => import("../medias/EpVideo.vue2.js"), "../medias/EpVideoPanopto.vue": () => import("../medias/EpVideoPanopto.vue2.js"), "../medias/EpWordDef.vue": () => import("../medias/EpWordDef.vue2.js"), "../signages/EpAlert.vue": () => import("../signages/EpAlert.vue.js"), "../signages/EpBadge.vue": () => import("../signages/EpBadge.vue2.js"), "../signages/EpHeader.vue": () => import("../signages/EpHeader.vue2.js"), "../signages/EpNothing.vue": () => import("../signages/EpNothing.vue.js"), "../signages/EpQuote.vue": () => import("../signages/EpQuote.vue2.js"), "../signages/EpSkeleton.vue": () => import("../signages/EpSkeleton.vue.js"), "./AssociationNode.vue": () => import("./AssociationNode.vue.js"), "./AsyncKatexRender.vue": () => import("./AsyncKatexRender.vue.js"), "./BgAudio.vue": () => import("./BgAudio.vue.js"), "./Details.vue": () => import("./Details.vue.js"), "./DisplayBox.vue": () => import("./DisplayBox.vue.js"), "./RenderTextNode.vue": () => import("./RenderTextNode.vue.js"), "./SegmentedBox.vue": () => import("./SegmentedBox.vue.js"), "./SvgFilter.vue": () => import("./SvgFilter.vue.js"), "./TextMedia.vue": () => import("./TextMedia.vue.js"), "./TimelineItem.vue": () => import("./TimelineItem.vue.js"), "./TwoColsMedia.vue": () => import("./TwoColsMedia.vue.js") }), `../${componentToLoad.path}/${componentToLoad.name}.vue`, 3)
|
|
26
|
-
);
|
|
27
|
-
}
|
|
28
|
-
return null;
|
|
29
|
-
});
|
|
30
|
-
const colsStyle = computed(() => {
|
|
31
|
-
return props.cols ? "flex items-center justify-center gap-1" : "";
|
|
32
|
-
});
|
|
33
|
-
computed(() => {
|
|
34
|
-
return props.textLeft ? "text-red-900" : "text-red-700";
|
|
35
|
-
});
|
|
36
|
-
return (_ctx, _cache) => {
|
|
37
|
-
return openBlock(), createElementBlock("div", {
|
|
38
|
-
class: normalizeClass(colsStyle.value)
|
|
39
|
-
}, [
|
|
40
|
-
createElementVNode("div", {
|
|
41
|
-
class: normalizeClass(`w-full ${_ctx.flexCol ? "flex flex-col" : ""}`),
|
|
42
|
-
innerHTML: unref(useRenderText)(_ctx.text)
|
|
43
|
-
}, null, 10, _hoisted_1),
|
|
44
|
-
currentRenderComponent.value && _ctx.media ? (openBlock(), createElementBlock("div", _hoisted_2, [
|
|
45
|
-
(openBlock(), createBlock(resolveDynamicComponent(currentRenderComponent.value), normalizeProps(guardReactiveProps({ ..._ctx.media.data, card: true })), null, 16))
|
|
46
|
-
])) : createCommentVNode("", true)
|
|
47
|
-
], 2);
|
|
48
|
-
};
|
|
49
|
-
}
|
|
50
|
-
});
|
|
1
|
+
import _sfc_main from "./TextMedia.vue.js";
|
|
51
2
|
export {
|
|
52
3
|
_sfc_main as default
|
|
53
4
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TextMedia.vue2.js","sources":[
|
|
1
|
+
{"version":3,"file":"TextMedia.vue2.js","sources":[],"sourcesContent":[],"names":[],"mappings":";"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { defineComponent, ref, toRefs, onMounted, watch, watchEffect, computed, createElementBlock, openBlock, normalizeClass, createElementVNode, unref, createVNode, createCommentVNode, toDisplayString, nextTick } from "vue";
|
|
2
2
|
import _sfc_main$2 from "../basics/EpImg.vue.js";
|
|
3
|
-
import _sfc_main$3 from "./RenderTextNode.
|
|
3
|
+
import _sfc_main$3 from "./RenderTextNode.vue.js";
|
|
4
4
|
import { colorsTimeLine } from "../../types/TimeLine.js";
|
|
5
5
|
import _sfc_main$1 from "../basics/EpIcon.vue.js";
|
|
6
6
|
import { mdiClose, mdiPlus } from "@mdi/js";
|