@bryntum/core-vue-3-thin 7.1.1
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/README.md +53 -0
- package/lib/chunks/04iGTdr4.js +305 -0
- package/lib/chunks/04iGTdr4.js.map +1 -0
- package/lib/chunks/50EFBKUJ.js +305 -0
- package/lib/chunks/50EFBKUJ.js.map +1 -0
- package/lib/chunks/9l_t8_Hn.js +279 -0
- package/lib/chunks/9l_t8_Hn.js.map +1 -0
- package/lib/chunks/BDjSyfX1.js +231 -0
- package/lib/chunks/BDjSyfX1.js.map +1 -0
- package/lib/chunks/BEIlMzLy.js +329 -0
- package/lib/chunks/BEIlMzLy.js.map +1 -0
- package/lib/chunks/BGHGQ3of.js +334 -0
- package/lib/chunks/BGHGQ3of.js.map +1 -0
- package/lib/chunks/BPCnTL_S.js +311 -0
- package/lib/chunks/BPCnTL_S.js.map +1 -0
- package/lib/chunks/BccmKSjV.js +332 -0
- package/lib/chunks/BccmKSjV.js.map +1 -0
- package/lib/chunks/Beqfuio_.js +324 -0
- package/lib/chunks/Beqfuio_.js.map +1 -0
- package/lib/chunks/BhvCgnAQ.js +348 -0
- package/lib/chunks/BhvCgnAQ.js.map +1 -0
- package/lib/chunks/BjofEFjT.js +90 -0
- package/lib/chunks/BjofEFjT.js.map +1 -0
- package/lib/chunks/Bqt3amcP.js +332 -0
- package/lib/chunks/Bqt3amcP.js.map +1 -0
- package/lib/chunks/BrGP25YO.js +273 -0
- package/lib/chunks/BrGP25YO.js.map +1 -0
- package/lib/chunks/C08cDbJ_.js +315 -0
- package/lib/chunks/C08cDbJ_.js.map +1 -0
- package/lib/chunks/C37G38Em.js +233 -0
- package/lib/chunks/C37G38Em.js.map +1 -0
- package/lib/chunks/C4Plc5KT.js +313 -0
- package/lib/chunks/C4Plc5KT.js.map +1 -0
- package/lib/chunks/C5CKKnb-.js +28 -0
- package/lib/chunks/C5CKKnb-.js.map +1 -0
- package/lib/chunks/C5fDrmXK.js +308 -0
- package/lib/chunks/C5fDrmXK.js.map +1 -0
- package/lib/chunks/C7jiLVhi.js +332 -0
- package/lib/chunks/C7jiLVhi.js.map +1 -0
- package/lib/chunks/CCOHmzO2.js +326 -0
- package/lib/chunks/CCOHmzO2.js.map +1 -0
- package/lib/chunks/CJ_VkUSL.js +311 -0
- package/lib/chunks/CJ_VkUSL.js.map +1 -0
- package/lib/chunks/CQxDiecl.js +303 -0
- package/lib/chunks/CQxDiecl.js.map +1 -0
- package/lib/chunks/CY2MQpEF.js +311 -0
- package/lib/chunks/CY2MQpEF.js.map +1 -0
- package/lib/chunks/CglOknHW.js +326 -0
- package/lib/chunks/CglOknHW.js.map +1 -0
- package/lib/chunks/CjxVRXWC.js +322 -0
- package/lib/chunks/CjxVRXWC.js.map +1 -0
- package/lib/chunks/CtYTESR7.js +334 -0
- package/lib/chunks/CtYTESR7.js.map +1 -0
- package/lib/chunks/D6reMBCw.js +293 -0
- package/lib/chunks/D6reMBCw.js.map +1 -0
- package/lib/chunks/DAF6eal3.js +380 -0
- package/lib/chunks/DAF6eal3.js.map +1 -0
- package/lib/chunks/DDx2bcZ4.js +311 -0
- package/lib/chunks/DDx2bcZ4.js.map +1 -0
- package/lib/chunks/DMPfOU5b.js +328 -0
- package/lib/chunks/DMPfOU5b.js.map +1 -0
- package/lib/chunks/DUIWxr9S.js +287 -0
- package/lib/chunks/DUIWxr9S.js.map +1 -0
- package/lib/chunks/DXudB--w.js +285 -0
- package/lib/chunks/DXudB--w.js.map +1 -0
- package/lib/chunks/DdOigT_0.js +317 -0
- package/lib/chunks/DdOigT_0.js.map +1 -0
- package/lib/chunks/DdlURSV2.js +402 -0
- package/lib/chunks/DdlURSV2.js.map +1 -0
- package/lib/chunks/Dg8brqqq.js +265 -0
- package/lib/chunks/Dg8brqqq.js.map +1 -0
- package/lib/chunks/EhPIs-5p.js +316 -0
- package/lib/chunks/EhPIs-5p.js.map +1 -0
- package/lib/chunks/GPQ2KdEZ.js +277 -0
- package/lib/chunks/GPQ2KdEZ.js.map +1 -0
- package/lib/chunks/I1j1h3ES.js +331 -0
- package/lib/chunks/I1j1h3ES.js.map +1 -0
- package/lib/chunks/N0tT12PU.js +299 -0
- package/lib/chunks/N0tT12PU.js.map +1 -0
- package/lib/chunks/UsX3m2ag.js +318 -0
- package/lib/chunks/UsX3m2ag.js.map +1 -0
- package/lib/chunks/ZCAFO-QE.js +283 -0
- package/lib/chunks/ZCAFO-QE.js.map +1 -0
- package/lib/chunks/aFUypleu.js +344 -0
- package/lib/chunks/aFUypleu.js.map +1 -0
- package/lib/chunks/b7paFuwf.js +304 -0
- package/lib/chunks/b7paFuwf.js.map +1 -0
- package/lib/chunks/dpFvo-c8.js +241 -0
- package/lib/chunks/dpFvo-c8.js.map +1 -0
- package/lib/chunks/ffxvxZgO.js +285 -0
- package/lib/chunks/ffxvxZgO.js.map +1 -0
- package/lib/chunks/i1fKEJ02.js +289 -0
- package/lib/chunks/i1fKEJ02.js.map +1 -0
- package/lib/chunks/r16hhPbD.js +284 -0
- package/lib/chunks/r16hhPbD.js.map +1 -0
- package/lib/chunks/sfgBkKKU.js +340 -0
- package/lib/chunks/sfgBkKKU.js.map +1 -0
- package/lib/chunks/wUYS2r48.js +301 -0
- package/lib/chunks/wUYS2r48.js.map +1 -0
- package/lib/components/BryntumButton.js +5 -0
- package/lib/components/BryntumButton.js.map +1 -0
- package/lib/components/BryntumButtonGroup.js +5 -0
- package/lib/components/BryntumButtonGroup.js.map +1 -0
- package/lib/components/BryntumChatPanel.js +5 -0
- package/lib/components/BryntumChatPanel.js.map +1 -0
- package/lib/components/BryntumCheckbox.js +5 -0
- package/lib/components/BryntumCheckbox.js.map +1 -0
- package/lib/components/BryntumCheckboxGroup.js +5 -0
- package/lib/components/BryntumCheckboxGroup.js.map +1 -0
- package/lib/components/BryntumChipView.js +5 -0
- package/lib/components/BryntumChipView.js.map +1 -0
- package/lib/components/BryntumCodeEditor.js +5 -0
- package/lib/components/BryntumCodeEditor.js.map +1 -0
- package/lib/components/BryntumColorField.js +5 -0
- package/lib/components/BryntumColorField.js.map +1 -0
- package/lib/components/BryntumCombo.js +5 -0
- package/lib/components/BryntumCombo.js.map +1 -0
- package/lib/components/BryntumContainer.js +5 -0
- package/lib/components/BryntumContainer.js.map +1 -0
- package/lib/components/BryntumDateField.js +5 -0
- package/lib/components/BryntumDateField.js.map +1 -0
- package/lib/components/BryntumDatePicker.js +5 -0
- package/lib/components/BryntumDatePicker.js.map +1 -0
- package/lib/components/BryntumDateRangeField.js +5 -0
- package/lib/components/BryntumDateRangeField.js.map +1 -0
- package/lib/components/BryntumDateTimeField.js +5 -0
- package/lib/components/BryntumDateTimeField.js.map +1 -0
- package/lib/components/BryntumDemoCodeEditor.js +5 -0
- package/lib/components/BryntumDemoCodeEditor.js.map +1 -0
- package/lib/components/BryntumDemoHeader.js +5 -0
- package/lib/components/BryntumDemoHeader.js.map +1 -0
- package/lib/components/BryntumDisplayField.js +5 -0
- package/lib/components/BryntumDisplayField.js.map +1 -0
- package/lib/components/BryntumDurationField.js +5 -0
- package/lib/components/BryntumDurationField.js.map +1 -0
- package/lib/components/BryntumEditor.js +5 -0
- package/lib/components/BryntumEditor.js.map +1 -0
- package/lib/components/BryntumFieldFilterPicker.js +5 -0
- package/lib/components/BryntumFieldFilterPicker.js.map +1 -0
- package/lib/components/BryntumFieldFilterPickerGroup.js +5 -0
- package/lib/components/BryntumFieldFilterPickerGroup.js.map +1 -0
- package/lib/components/BryntumFieldSet.js +5 -0
- package/lib/components/BryntumFieldSet.js.map +1 -0
- package/lib/components/BryntumFileField.js +5 -0
- package/lib/components/BryntumFileField.js.map +1 -0
- package/lib/components/BryntumFilePicker.js +5 -0
- package/lib/components/BryntumFilePicker.js.map +1 -0
- package/lib/components/BryntumFilterField.js +5 -0
- package/lib/components/BryntumFilterField.js.map +1 -0
- package/lib/components/BryntumFullscreenButton.js +5 -0
- package/lib/components/BryntumFullscreenButton.js.map +1 -0
- package/lib/components/BryntumHint.js +5 -0
- package/lib/components/BryntumHint.js.map +1 -0
- package/lib/components/BryntumLabel.js +5 -0
- package/lib/components/BryntumLabel.js.map +1 -0
- package/lib/components/BryntumList.js +5 -0
- package/lib/components/BryntumList.js.map +1 -0
- package/lib/components/BryntumMenu.js +5 -0
- package/lib/components/BryntumMenu.js.map +1 -0
- package/lib/components/BryntumMonthPicker.js +5 -0
- package/lib/components/BryntumMonthPicker.js.map +1 -0
- package/lib/components/BryntumNumberField.js +5 -0
- package/lib/components/BryntumNumberField.js.map +1 -0
- package/lib/components/BryntumPagingToolbar.js +5 -0
- package/lib/components/BryntumPagingToolbar.js.map +1 -0
- package/lib/components/BryntumPanel.js +5 -0
- package/lib/components/BryntumPanel.js.map +1 -0
- package/lib/components/BryntumPasswordField.js +5 -0
- package/lib/components/BryntumPasswordField.js.map +1 -0
- package/lib/components/BryntumRadio.js +5 -0
- package/lib/components/BryntumRadio.js.map +1 -0
- package/lib/components/BryntumRadioGroup.js +5 -0
- package/lib/components/BryntumRadioGroup.js.map +1 -0
- package/lib/components/BryntumSlideToggle.js +5 -0
- package/lib/components/BryntumSlideToggle.js.map +1 -0
- package/lib/components/BryntumSlider.js +5 -0
- package/lib/components/BryntumSlider.js.map +1 -0
- package/lib/components/BryntumSplitter.js +5 -0
- package/lib/components/BryntumSplitter.js.map +1 -0
- package/lib/components/BryntumTabPanel.js +5 -0
- package/lib/components/BryntumTabPanel.js.map +1 -0
- package/lib/components/BryntumTextAreaField.js +5 -0
- package/lib/components/BryntumTextAreaField.js.map +1 -0
- package/lib/components/BryntumTextAreaPickerField.js +5 -0
- package/lib/components/BryntumTextAreaPickerField.js.map +1 -0
- package/lib/components/BryntumTextField.js +5 -0
- package/lib/components/BryntumTextField.js.map +1 -0
- package/lib/components/BryntumTimeField.js +5 -0
- package/lib/components/BryntumTimeField.js.map +1 -0
- package/lib/components/BryntumTimePicker.js +5 -0
- package/lib/components/BryntumTimePicker.js.map +1 -0
- package/lib/components/BryntumToolbar.js +5 -0
- package/lib/components/BryntumToolbar.js.map +1 -0
- package/lib/components/BryntumWidget.js +5 -0
- package/lib/components/BryntumWidget.js.map +1 -0
- package/lib/components/BryntumYearPicker.js +5 -0
- package/lib/components/BryntumYearPicker.js.map +1 -0
- package/lib/helper/WrapperHelper.js +291 -0
- package/lib/helper/WrapperHelper.js.map +1 -0
- package/lib/index.d.ts +5 -0
- package/lib/index.js +101 -0
- package/lib/index.js.map +1 -0
- package/license.pdf +0 -0
- package/licenses.md +310 -0
- package/package.json +27 -0
- package/src/components/BryntumButton.vue +952 -0
- package/src/components/BryntumButtonGroup.vue +967 -0
- package/src/components/BryntumButtonGroupProps.ts +574 -0
- package/src/components/BryntumButtonProps.ts +555 -0
- package/src/components/BryntumChatPanel.vue +1159 -0
- package/src/components/BryntumChatPanelProps.ts +706 -0
- package/src/components/BryntumCheckbox.vue +1071 -0
- package/src/components/BryntumCheckboxGroup.vue +1193 -0
- package/src/components/BryntumCheckboxGroupProps.ts +738 -0
- package/src/components/BryntumCheckboxProps.ts +630 -0
- package/src/components/BryntumChipView.vue +979 -0
- package/src/components/BryntumChipViewProps.ts +582 -0
- package/src/components/BryntumCodeEditor.vue +1136 -0
- package/src/components/BryntumCodeEditorProps.ts +707 -0
- package/src/components/BryntumColorField.vue +1060 -0
- package/src/components/BryntumColorFieldProps.ts +641 -0
- package/src/components/BryntumCombo.vue +1298 -0
- package/src/components/BryntumComboProps.ts +837 -0
- package/src/components/BryntumContainer.vue +917 -0
- package/src/components/BryntumContainerProps.ts +562 -0
- package/src/components/BryntumDateField.vue +1120 -0
- package/src/components/BryntumDateFieldProps.ts +692 -0
- package/src/components/BryntumDatePicker.vue +1427 -0
- package/src/components/BryntumDatePickerProps.ts +897 -0
- package/src/components/BryntumDateRangeField.vue +1122 -0
- package/src/components/BryntumDateRangeFieldProps.ts +693 -0
- package/src/components/BryntumDateTimeField.vue +1007 -0
- package/src/components/BryntumDateTimeFieldProps.ts +599 -0
- package/src/components/BryntumDemoCodeEditor.vue +1152 -0
- package/src/components/BryntumDemoCodeEditorProps.ts +720 -0
- package/src/components/BryntumDemoHeader.vue +131 -0
- package/src/components/BryntumDisplayField.vue +1044 -0
- package/src/components/BryntumDisplayFieldProps.ts +631 -0
- package/src/components/BryntumDurationField.vue +1103 -0
- package/src/components/BryntumDurationFieldProps.ts +682 -0
- package/src/components/BryntumEditor.vue +1093 -0
- package/src/components/BryntumEditorProps.ts +621 -0
- package/src/components/BryntumFieldFilterPicker.vue +1002 -0
- package/src/components/BryntumFieldFilterPickerGroup.vue +1038 -0
- package/src/components/BryntumFieldFilterPickerGroupProps.ts +645 -0
- package/src/components/BryntumFieldFilterPickerProps.ts +623 -0
- package/src/components/BryntumFieldSet.vue +1129 -0
- package/src/components/BryntumFieldSetProps.ts +702 -0
- package/src/components/BryntumFileField.vue +1047 -0
- package/src/components/BryntumFileFieldProps.ts +633 -0
- package/src/components/BryntumFilePicker.vue +948 -0
- package/src/components/BryntumFilePickerProps.ts +574 -0
- package/src/components/BryntumFilterField.vue +1088 -0
- package/src/components/BryntumFilterFieldProps.ts +667 -0
- package/src/components/BryntumFullscreenButton.vue +38 -0
- package/src/components/BryntumHint.vue +1199 -0
- package/src/components/BryntumHintProps.ts +752 -0
- package/src/components/BryntumLabel.vue +770 -0
- package/src/components/BryntumLabelProps.ts +458 -0
- package/src/components/BryntumList.vue +956 -0
- package/src/components/BryntumListProps.ts +562 -0
- package/src/components/BryntumMenu.vue +1223 -0
- package/src/components/BryntumMenuProps.ts +748 -0
- package/src/components/BryntumMonthPicker.vue +1133 -0
- package/src/components/BryntumMonthPickerProps.ts +687 -0
- package/src/components/BryntumNumberField.vue +1090 -0
- package/src/components/BryntumNumberFieldProps.ts +670 -0
- package/src/components/BryntumPagingToolbar.vue +989 -0
- package/src/components/BryntumPagingToolbarProps.ts +591 -0
- package/src/components/BryntumPanel.vue +1106 -0
- package/src/components/BryntumPanelProps.ts +683 -0
- package/src/components/BryntumPasswordField.vue +1034 -0
- package/src/components/BryntumPasswordFieldProps.ts +622 -0
- package/src/components/BryntumRadio.vue +1071 -0
- package/src/components/BryntumRadioGroup.vue +1159 -0
- package/src/components/BryntumRadioGroupProps.ts +728 -0
- package/src/components/BryntumRadioProps.ts +630 -0
- package/src/components/BryntumSlideToggle.vue +1071 -0
- package/src/components/BryntumSlideToggleProps.ts +630 -0
- package/src/components/BryntumSlider.vue +871 -0
- package/src/components/BryntumSliderProps.ts +522 -0
- package/src/components/BryntumSplitter.vue +813 -0
- package/src/components/BryntumSplitterProps.ts +467 -0
- package/src/components/BryntumTabPanel.vue +1164 -0
- package/src/components/BryntumTabPanelProps.ts +709 -0
- package/src/components/BryntumTextAreaField.vue +1046 -0
- package/src/components/BryntumTextAreaFieldProps.ts +632 -0
- package/src/components/BryntumTextAreaPickerField.vue +1067 -0
- package/src/components/BryntumTextAreaPickerFieldProps.ts +647 -0
- package/src/components/BryntumTextField.vue +1052 -0
- package/src/components/BryntumTextFieldProps.ts +636 -0
- package/src/components/BryntumTimeField.vue +1101 -0
- package/src/components/BryntumTimeFieldProps.ts +676 -0
- package/src/components/BryntumTimePicker.vue +952 -0
- package/src/components/BryntumTimePickerProps.ts +582 -0
- package/src/components/BryntumToolbar.vue +982 -0
- package/src/components/BryntumToolbarProps.ts +585 -0
- package/src/components/BryntumWidget.vue +765 -0
- package/src/components/BryntumWidgetProps.ts +454 -0
- package/src/components/BryntumYearPicker.vue +1144 -0
- package/src/components/BryntumYearPickerProps.ts +704 -0
- package/src/helper/WrapperHelper.ts +573 -0
- package/src/index.ts +101 -0
- package/src/vite-env.d.ts +1 -0
|
@@ -0,0 +1,131 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<header class="demo-header b-bryntum">
|
|
3
|
+
<a
|
|
4
|
+
id="title"
|
|
5
|
+
class="title"
|
|
6
|
+
:href="link"
|
|
7
|
+
>
|
|
8
|
+
<h1>
|
|
9
|
+
<svg
|
|
10
|
+
viewBox="0 0 354.9 144.52"
|
|
11
|
+
xmlns="http://www.w3.org/2000/svg"
|
|
12
|
+
>
|
|
13
|
+
<g><path d="m305.63 144.52c-12.47 0-23.53-4.83-31.58-13.28v11.06h-25.54v-142.3h26.75v48.58c7.84-7.64 18.5-12.07 30.37-12.07 27.15 0 49.28 23.33 49.28 54.1s-22.12 53.9-49.28 53.9zm-3.82-83.47c-14.68 0-26.55 13.27-26.55 29.77s11.87 29.16 26.55 29.16 26.55-12.67 26.55-29.16-11.87-29.77-26.55-29.77z" /><path d="m148.02 0h74.01v29.78h-74.01z" /><path d="m0 56.26h222.03v29.78h-222.03z" /><path d="m74.01 112.52h148.02v29.6h-148.02z" /></g>
|
|
14
|
+
</svg>
|
|
15
|
+
{{ headerTitle }}
|
|
16
|
+
</h1>
|
|
17
|
+
</a>
|
|
18
|
+
<slot />
|
|
19
|
+
<div
|
|
20
|
+
id="tools"
|
|
21
|
+
class="tools"
|
|
22
|
+
>
|
|
23
|
+
<bryntum-button
|
|
24
|
+
text="Download Trial"
|
|
25
|
+
:href="downloadLink"
|
|
26
|
+
rendition="filled"
|
|
27
|
+
/>
|
|
28
|
+
<bryntum-button
|
|
29
|
+
ref="codeButtonRef"
|
|
30
|
+
icon="b-icon-code"
|
|
31
|
+
tooltip="Click to show the code viewer"
|
|
32
|
+
rendition="text"
|
|
33
|
+
:hidden="hiddenEditor"
|
|
34
|
+
@click="toggleCodeEditor"
|
|
35
|
+
/>
|
|
36
|
+
<bryntum-button
|
|
37
|
+
ref="downloadButtonRef"
|
|
38
|
+
icon="b-icon-download"
|
|
39
|
+
tooltip="Download this demo zip archive"
|
|
40
|
+
rendition="text"
|
|
41
|
+
href="#"
|
|
42
|
+
:hidden="true"
|
|
43
|
+
/>
|
|
44
|
+
<bryntum-fullscreen-button />
|
|
45
|
+
</div>
|
|
46
|
+
</header>
|
|
47
|
+
</template>
|
|
48
|
+
|
|
49
|
+
<script setup lang="ts">
|
|
50
|
+
import { computed, defineProps, onMounted, ref } from 'vue';
|
|
51
|
+
import BryntumFullscreenButton from './BryntumFullscreenButton.vue';
|
|
52
|
+
import BryntumButton from './BryntumButton.vue';
|
|
53
|
+
import { AjaxHelper, CSSHelper, DemoCodeEditor } from '@bryntum/core-thin';
|
|
54
|
+
|
|
55
|
+
defineProps<{
|
|
56
|
+
title?: string;
|
|
57
|
+
}>();
|
|
58
|
+
|
|
59
|
+
const codeButtonRef = ref<typeof BryntumButton | null>(null);
|
|
60
|
+
|
|
61
|
+
const downloadButtonRef = ref<typeof BryntumButton | null>(null);
|
|
62
|
+
|
|
63
|
+
const headerTitle = document.title.split(' - ')[1] || document.title;
|
|
64
|
+
|
|
65
|
+
const isTest = document.location.search.includes('test');
|
|
66
|
+
|
|
67
|
+
const demoProduct = document.location.href.match(/\/(\w+)(-trial)?\/[-\w]*examples\//)?.[1]?.toLowerCase() || 'core';
|
|
68
|
+
|
|
69
|
+
const downloadLink = `https://bryntum.com/download/?product=${demoProduct}`;
|
|
70
|
+
|
|
71
|
+
const appFolder = '../';
|
|
72
|
+
|
|
73
|
+
const hiddenEditor = !Boolean(DemoCodeEditor.monacoCodePath);
|
|
74
|
+
|
|
75
|
+
let codeEditor: DemoCodeEditor | undefined;
|
|
76
|
+
|
|
77
|
+
const link = computed(() => {
|
|
78
|
+
const match = /(.*?\/)(examples.*?\/frameworks\/.*?)\/dist/.exec(document.location.href);
|
|
79
|
+
return (match?.[1] && match?.[2])
|
|
80
|
+
? `${match[1]}examples/#example-${match[2].replace(/\//gm, '-').replace('examples-frameworks', 'frameworks')}`
|
|
81
|
+
: '#';
|
|
82
|
+
});
|
|
83
|
+
|
|
84
|
+
const toggleCodeEditor = async() => {
|
|
85
|
+
codeEditor = await DemoCodeEditor.toggleCodeEditor(
|
|
86
|
+
codeEditor,
|
|
87
|
+
codeButtonRef.value!.instance.value,
|
|
88
|
+
{
|
|
89
|
+
appFolder,
|
|
90
|
+
preferredSources : [
|
|
91
|
+
/App\.vue/,
|
|
92
|
+
/\w+Config\.[tj]s/
|
|
93
|
+
]
|
|
94
|
+
}
|
|
95
|
+
);
|
|
96
|
+
};
|
|
97
|
+
|
|
98
|
+
const initDownload = async() => {
|
|
99
|
+
const appConfig = (await AjaxHelper.get(`${appFolder}app.config.json`, { parseJson : true })).parsedJson;
|
|
100
|
+
if (appConfig.zip || isTest) {
|
|
101
|
+
const downloadButton = downloadButtonRef.value!.instance.value;
|
|
102
|
+
downloadButton.hidden = false;
|
|
103
|
+
downloadButton.href = `${appFolder}${appConfig.zip}`;
|
|
104
|
+
}
|
|
105
|
+
};
|
|
106
|
+
|
|
107
|
+
onMounted(() => {
|
|
108
|
+
if (!hiddenEditor) {
|
|
109
|
+
CSSHelper.insertRule('body { flex-direction : row !important }');
|
|
110
|
+
CSSHelper.insertRule('#__nuxt, #container, #app { flex : 1 !important; overflow : hidden !important }');
|
|
111
|
+
CSSHelper.insertRule('.b-codeeditor-header { padding : 0.5em !important }');
|
|
112
|
+
initDownload();
|
|
113
|
+
}
|
|
114
|
+
|
|
115
|
+
// Enables special styling when generating screenshots
|
|
116
|
+
const params = new URLSearchParams(window.location.search);
|
|
117
|
+
if (params.has('screenshot')) {
|
|
118
|
+
document.body.classList.add('b-screenshot');
|
|
119
|
+
(window.bryntum as any).noAnimations = true;
|
|
120
|
+
}
|
|
121
|
+
});
|
|
122
|
+
|
|
123
|
+
defineExpose({
|
|
124
|
+
link,
|
|
125
|
+
headerTitle,
|
|
126
|
+
hiddenEditor,
|
|
127
|
+
downloadLink,
|
|
128
|
+
toggleCodeEditor
|
|
129
|
+
});
|
|
130
|
+
|
|
131
|
+
</script>
|