comand-component-library 3.1.45 → 3.1.48
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/comand-component-library.css +1 -1
- package/dist/comand-component-library.umd.min.js +1 -1
- package/package.json +47 -41
- package/src/App.vue +373 -135
- package/src/ComponentDocumentation.vue +156 -0
- package/src/ComponentLibraryHelp.vue +20 -0
- package/src/assets/data/accordion.json +21 -24
- package/src/assets/data/address-data.json +34 -0
- package/src/assets/data/bank-account-data.json +22 -0
- package/src/assets/data/box-product.json +14 -4
- package/src/assets/data/box-user.json +48 -22
- package/src/assets/data/breadcrumbs.json +11 -3
- package/src/assets/data/cookie-disclaimer.json +4 -4
- package/src/assets/data/fake-select-colors.json +4 -0
- package/src/assets/data/fake-select-filter-options.json +14 -0
- package/src/assets/data/fake-select-options-with-icons.json +6 -12
- package/src/assets/data/fake-select-options.json +3 -3
- package/src/assets/data/list-of-links-section-anchors.json +23 -0
- package/src/assets/data/list-of-links-top-header-navigation.json +20 -0
- package/src/assets/data/list-of-links.json +42 -0
- package/src/assets/data/main-navigation.json +48 -0
- package/src/assets/data/multistep-form-progress-bar.json +33 -0
- package/src/assets/data/select-options.json +4 -0
- package/src/assets/data/{share-buttons.json → share-buttons-page-by-json.json} +8 -8
- package/src/assets/data/share-buttons-page-by-property.json +30 -0
- package/src/assets/data/switch-language.json +20 -0
- package/src/assets/data/table-large.json +1 -1
- package/src/assets/data/table-small.json +1 -1
- package/src/assets/styles/global-styles.scss +43 -13
- package/src/assets/styles/transitions.scss +21 -1
- package/src/components/CmdAccordion.vue +43 -42
- package/src/components/CmdAddressData.vue +124 -56
- package/src/components/CmdBackToTopButton.vue +3 -3
- package/src/components/CmdBankAccountData.vue +104 -0
- package/src/components/CmdBox.vue +253 -56
- package/src/components/CmdBoxSiteSearch.vue +138 -39
- package/src/components/CmdBoxWrapper.vue +206 -0
- package/src/components/CmdBreadcrumbs.vue +29 -13
- package/src/components/CmdCompanyLogo.vue +6 -4
- package/src/components/CmdCookieDisclaimer.vue +99 -75
- package/src/components/CmdCopyrightInformation.vue +1 -1
- package/src/components/CmdCustomHeadline.vue +93 -0
- package/src/components/CmdFakeSelect.vue +285 -60
- package/src/components/CmdFancyBox.vue +47 -33
- package/src/components/CmdForm.vue +107 -0
- package/src/components/CmdFormElement.vue +515 -81
- package/src/components/CmdFormFilters.vue +25 -11
- package/src/components/CmdGoogleMaps.vue +9 -3
- package/src/components/CmdImageGallery.vue +28 -5
- package/src/components/CmdImageZoom.vue +9 -1
- package/src/components/CmdListOfLinks.vue +169 -0
- package/src/components/CmdLoginForm.vue +143 -63
- package/src/components/CmdMainNavigation.vue +140 -42
- package/src/components/CmdMultipleSwitch.vue +33 -2
- package/src/components/CmdMultistepFormProgressBar.vue +60 -10
- package/src/components/CmdOpeningHours.vue +36 -10
- package/src/components/CmdPager.vue +7 -5
- package/src/components/CmdProgressBar.vue +20 -3
- package/src/components/CmdShareButtons.vue +64 -9
- package/src/components/CmdSiteHeader.vue +27 -14
- package/src/components/CmdSlideButton.vue +5 -2
- package/src/components/CmdSlideshow.vue +23 -7
- package/src/components/CmdSwitchButton.vue +10 -3
- package/src/components/CmdSwitchLanguage.vue +18 -10
- package/src/components/CmdSystemMessage.vue +30 -17
- package/src/components/CmdTable.vue +15 -7
- package/src/components/CmdTabs.vue +43 -3
- package/src/components/CmdThumbnailScroller.vue +22 -6
- package/src/components/CmdTooltip.vue +184 -11
- package/src/components/CmdUploadForm.vue +198 -92
- package/src/components/CmdWidthLimitationWrapper.vue +9 -6
- package/src/composables/event.js +8 -0
- package/src/composables/scrollspy.js +52 -0
- package/src/directives/focus.js +19 -0
- package/src/directives/telephone.js +1 -1
- package/src/documentation/commonProps.js +6 -0
- package/src/documentation/components/ComponentCode.vue +50 -0
- package/src/documentation/components/ComponentProperties.vue +237 -0
- package/src/documentation/components/ExampleSectionWrapper.vue +46 -0
- package/src/documentation/components/ViewCodeData.vue +113 -0
- package/src/documentation/data/CmdAccordionHelp.js +22 -0
- package/src/documentation/data/CmdAddressDataHelp.js +17 -0
- package/src/documentation/data/CmdBackToTopButtonHelp.js +3 -0
- package/src/documentation/data/CmdBankAccountDataHelp.js +8 -0
- package/src/documentation/data/CmdBoxHelp.js +45 -0
- package/src/documentation/data/CmdBoxSiteSearchHelp.js +11 -0
- package/src/documentation/data/CmdBreadcrumbsHelp.js +6 -0
- package/src/documentation/data/CmdCompanyLogoHelp.js +8 -0
- package/src/documentation/data/CmdCookieDisclaimerHelp.js +9 -0
- package/src/documentation/data/CmdCopyrightInformation.js +2 -0
- package/src/documentation/data/CmdCustomHeadlineHelp.js +8 -0
- package/src/documentation/data/CmdFakeSelectHelp.js +60 -0
- package/src/documentation/data/CmdFancyBoxHelp.js +7 -0
- package/src/documentation/data/CmdFooterNavigationHelp.js +5 -0
- package/src/documentation/data/CmdFormElementHelp.js +189 -0
- package/src/documentation/data/CmdFormFiltersHelp.js +6 -0
- package/src/documentation/data/CmdFormHelp.js +10 -0
- package/src/documentation/data/CmdGoogleMapsHelp.js +5 -0
- package/src/documentation/data/CmdImageGalleryHelp.js +5 -0
- package/src/documentation/data/CmdImageZoomHelp.js +6 -0
- package/src/documentation/data/CmdListOfLinksHelp.js +24 -0
- package/src/documentation/data/CmdLoginFormHelp.js +6 -0
- package/src/documentation/data/CmdMainNavigationHelp.js +7 -0
- package/src/documentation/data/CmdMultistepFormProgressBarHelp.js +6 -0
- package/src/documentation/data/CmdOpeningHoursHelp.js +10 -0
- package/src/documentation/data/CmdPagerHelp.js +7 -0
- package/src/documentation/data/CmdProgressBarHelp.js +13 -0
- package/src/documentation/data/CmdShareButtonsHelp.js +13 -0
- package/src/documentation/data/CmdSiteHeaderHelp.js +21 -0
- package/src/documentation/data/CmdSlideButtonHelp.js +10 -0
- package/src/documentation/data/CmdSlideshowHelp.js +7 -0
- package/src/documentation/data/CmdSwitchLanguageHelp.js +6 -0
- package/src/documentation/data/CmdSystemMessageHelp.js +32 -0
- package/src/documentation/data/CmdTableHelp.js +14 -0
- package/src/documentation/data/CmdTabsHelp.js +10 -0
- package/src/documentation/data/CmdThumbnailScrollerHelp.js +5 -0
- package/src/documentation/data/CmdTooltipHelp.js +13 -0
- package/src/documentation/data/CmdUploadFormHelp.js +17 -0
- package/src/documentation/data/CmdWidthLimitationWrapperHelp.js +7 -0
- package/src/documentation/data/componentsDescription.json +158 -0
- package/src/documentation/generated/CmdAccordionPropertyDescriptions.json +57 -0
- package/src/documentation/generated/CmdAddressDataPropertyDescriptions.json +32 -0
- package/src/documentation/generated/CmdBackToTopButtonPropertyDescriptions.json +12 -0
- package/src/documentation/generated/CmdBankAccountDataPropertyDescriptions.json +34 -0
- package/src/documentation/generated/CmdBoxPropertyDescriptions.json +91 -0
- package/src/documentation/generated/CmdBoxSiteSearchPropertyDescriptions.json +41 -0
- package/src/documentation/generated/CmdBoxWrapperPropertyDescriptions.json +47 -0
- package/src/documentation/generated/CmdBreadcrumbsPropertyDescriptions.json +17 -0
- package/src/documentation/generated/CmdCompanyLogoPropertyDescriptions.json +27 -0
- package/src/documentation/generated/CmdCookieDisclaimerPropertyDescriptions.json +22 -0
- package/src/documentation/generated/CmdCustomHeadlinePropertyDescriptions.json +22 -0
- package/src/documentation/generated/CmdFakeSelectPropertyDescriptions.json +79 -0
- package/src/documentation/generated/CmdFancyBoxPropertyDescriptions.json +62 -0
- package/src/documentation/generated/CmdFooterNavigationPropertyDescriptions.json +17 -0
- package/src/documentation/generated/CmdFormElementPropertyDescriptions.json +178 -0
- package/src/documentation/generated/CmdFormFiltersPropertyDescriptions.json +32 -0
- package/src/documentation/generated/CmdFormPropertyDescriptions.json +40 -0
- package/src/documentation/generated/CmdGoogleMapsPropertyDescriptions.json +7 -0
- package/src/documentation/generated/CmdImageGalleryPropertyDescriptions.json +22 -0
- package/src/documentation/generated/CmdImageZoomPropertyDescriptions.json +12 -0
- package/src/documentation/generated/CmdListOfLinksPropertyDescriptions.json +60 -0
- package/src/documentation/generated/CmdLoginFormPropertyDescriptions.json +90 -0
- package/src/documentation/generated/CmdMainNavigationPropertyDescriptions.json +62 -0
- package/src/documentation/generated/CmdMultipleSwitchPropertyDescriptions.json +52 -0
- package/src/documentation/generated/CmdMultistepFormProgressBarPropertyDescriptions.json +17 -0
- package/src/documentation/generated/CmdOpeningHoursPropertyDescriptions.json +42 -0
- package/src/documentation/generated/CmdPagerPropertyDescriptions.json +37 -0
- package/src/documentation/generated/CmdProgressBarPropertyDescriptions.json +32 -0
- package/src/documentation/generated/CmdShareButtonsPropertyDescriptions.json +34 -0
- package/src/documentation/generated/CmdSiteHeaderPropertyDescriptions.json +27 -0
- package/src/documentation/generated/CmdSlideButtonPropertyDescriptions.json +25 -0
- package/src/documentation/generated/CmdSlideshowPropertyDescriptions.json +42 -0
- package/src/documentation/generated/CmdSwitchButtonPropertyDescriptions.json +79 -0
- package/src/documentation/generated/CmdSwitchLanguagePropertyDescriptions.json +7 -0
- package/src/documentation/generated/CmdSystemMessagePropertyDescriptions.json +40 -0
- package/src/documentation/generated/CmdTablePropertyDescriptions.json +62 -0
- package/src/documentation/generated/CmdTabsPropertyDescriptions.json +27 -0
- package/src/documentation/generated/CmdThumbnailScrollerPropertyDescriptions.json +32 -0
- package/src/documentation/generated/CmdTooltipPropertyDescriptions.json +17 -0
- package/src/documentation/generated/CmdUploadFormPropertyDescriptions.json +90 -0
- package/src/documentation/generated/CmdWidthLimitationWrapperPropertyDescriptions.json +41 -0
- package/src/documentation/generated/frameworkIcons.json +730 -0
- package/src/documentation/generated/logosIcons.json +110 -0
- package/src/documentation/tabs.js +46 -0
- package/src/documentation/views/ContainerPage.vue +237 -0
- package/src/documentation/views/HelpHome.vue +13 -0
- package/src/documentation/views/IconFont.vue +80 -0
- package/src/documentation/views/components/CmdAccordionHelp.vue +78 -0
- package/src/documentation/views/components/CmdAddressDataHelp.vue +65 -0
- package/src/documentation/views/components/CmdBackToTopButtonHelp.vue +62 -0
- package/src/documentation/views/components/CmdBankAccountDataHelp.vue +88 -0
- package/src/documentation/views/components/CmdBoxHelp.vue +137 -0
- package/src/documentation/views/components/CmdBoxSiteSearchHelp.vue +60 -0
- package/src/documentation/views/components/CmdBoxWrapperHelp.vue +111 -0
- package/src/documentation/views/components/CmdBreadcrumbsHelp.vue +51 -0
- package/src/documentation/views/components/CmdCompanyLogoHelp.vue +48 -0
- package/src/documentation/views/components/CmdCookieDisclaimerHelp.vue +105 -0
- package/src/documentation/views/components/CmdCustomHeadlineHelp.vue +53 -0
- package/src/documentation/views/components/CmdFakeSelectHelp.vue +175 -0
- package/src/documentation/views/components/CmdFancyBoxHelp.vue +79 -0
- package/src/documentation/views/components/CmdFormElementHelp.vue +412 -0
- package/src/documentation/views/components/CmdFormFiltersHelp.vue +69 -0
- package/src/documentation/views/components/CmdFormHelp.vue +41 -0
- package/src/documentation/views/components/CmdGoogleMapsHelp.vue +55 -0
- package/src/documentation/views/components/CmdImageGalleryHelp.vue +46 -0
- package/src/documentation/views/components/CmdImageZoomHelp.vue +34 -0
- package/src/documentation/views/components/CmdListOfLinksHelp.vue +64 -0
- package/src/documentation/views/components/CmdLoginFormHelp.vue +117 -0
- package/src/documentation/views/components/CmdMainNavigationHelp.vue +94 -0
- package/src/documentation/views/components/CmdMultistepFormProgressBarHelp.vue +49 -0
- package/src/documentation/views/components/CmdOpeningHoursHelp.vue +49 -0
- package/src/documentation/views/components/CmdPagerHelp.vue +57 -0
- package/src/documentation/views/components/CmdProgressBarHelp.vue +47 -0
- package/src/documentation/views/components/CmdShareButtonsHelp.vue +65 -0
- package/src/documentation/views/components/CmdSiteHeaderHelp.vue +72 -0
- package/src/documentation/views/components/CmdSlideButtonHelp.vue +90 -0
- package/src/documentation/views/components/CmdSlideshowHelp.vue +60 -0
- package/src/documentation/views/components/CmdSwitchLanguageHelp.vue +64 -0
- package/src/documentation/views/components/CmdSystemMessageHelp.vue +86 -0
- package/src/documentation/views/components/CmdTableHelp.vue +84 -0
- package/src/documentation/views/components/CmdTabsHelp.vue +52 -0
- package/src/documentation/views/components/CmdThumbnailScrollerHelp.vue +50 -0
- package/src/documentation/views/components/CmdTooltipHelp.vue +59 -0
- package/src/documentation/views/components/CmdUploadFormHelp.vue +59 -0
- package/src/documentation/views/components/CmdWidthLimitationWrapperHelp.vue +46 -0
- package/src/index.js +7 -3
- package/src/main.js +25 -15
- package/src/mixins/CmdAddressData/DefaultMessageProperties.js +17 -0
- package/src/mixins/CmdBox/DefaultMessageProperties.js +10 -0
- package/src/mixins/CmdFakeSelect/DefaultMessageProperties.js +9 -0
- package/src/mixins/CmdFormElement/DefaultMessageProperties.js +9 -0
- package/src/mixins/CmdImageGallery/DefaultMessageProperties.js +9 -0
- package/src/mixins/CmdSiteSearch/DefaultMessageProperties.js +14 -0
- package/src/mixins/CmdUploadForm/DefaultMessageProperties.js +5 -1
- package/src/mixins/FieldValidation.js +220 -0
- package/src/mixins/GlobalDefaultMessageProperties.js +15 -0
- package/src/mixins/Tooltip.js +26 -0
- package/src/router/index.js +67 -0
- package/src/utilities.js +3 -6
- package/src/utils/common.js +6 -0
- package/src/utils/dom.js +8 -0
- package/src/utils/globalSequence.js +13 -0
- package/src/utils/string.js +8 -0
- package/src/assets/data/address.json +0 -13
- package/src/assets/data/footer-navigation.json +0 -38
- package/src/assets/data/languages.json +0 -31
- package/src/assets/data/multisteps.json +0 -27
- package/src/assets/data/navigation.json +0 -47
- package/src/assets/data/pager.json +0 -11
- package/src/assets/data/top-header-navigation.json +0 -27
- package/src/components/CmdFooterNavigation.vue +0 -71
- package/src/components/CmdMainHeadline.vue +0 -75
- package/src/components/CmdTopHeaderNavigation.vue +0 -88
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
<script setup>
|
|
2
|
+
// import functions
|
|
3
|
+
import {ref} from "vue"
|
|
4
|
+
import {tabProps, tabHandlers} from "../../tabs"
|
|
5
|
+
import {isFrameMode} from "../../../utils/common"
|
|
6
|
+
|
|
7
|
+
// import components
|
|
8
|
+
import CmdPager from "../../../components/CmdPager"
|
|
9
|
+
import ComponentProperties from "../../components/ComponentProperties"
|
|
10
|
+
import ViewCodeData from "../../components/ViewCodeData"
|
|
11
|
+
import CmdTabs from "../../../components/CmdTabs"
|
|
12
|
+
|
|
13
|
+
// import example-data
|
|
14
|
+
import CmdCode from "../../data/CmdPagerHelp"
|
|
15
|
+
import propertyDescriptions from "../../generated/CmdPagerPropertyDescriptions.json"
|
|
16
|
+
|
|
17
|
+
const propertyStructures = {
|
|
18
|
+
prevButton: {
|
|
19
|
+
iconClass: "<string>",
|
|
20
|
+
buttonText: "<string>"
|
|
21
|
+
},
|
|
22
|
+
nextButton: {
|
|
23
|
+
iconClass: "<string>",
|
|
24
|
+
buttonText: "<string>"
|
|
25
|
+
}
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
const showPagePager = ref(1)
|
|
29
|
+
const totalNumberOfPages = 4
|
|
30
|
+
|
|
31
|
+
function changePage(event) {
|
|
32
|
+
showPagePager.value = event
|
|
33
|
+
}
|
|
34
|
+
</script>
|
|
35
|
+
|
|
36
|
+
<template>
|
|
37
|
+
<CmdTabs v-show="!isFrameMode()" v-bind="tabProps" :active-tab="tabProps.activeTab" v-on="tabHandlers">
|
|
38
|
+
<template v-slot:tab-content-0>
|
|
39
|
+
<h2>Component</h2>
|
|
40
|
+
<ViewCodeData :isFirstComponent="true" :code="CmdCode[0]">
|
|
41
|
+
<teleport to="#frame-component-target" :disabled="!isFrameMode()">
|
|
42
|
+
<p>
|
|
43
|
+
Content: {{ showPagePager }} of {{ totalNumberOfPages }}
|
|
44
|
+
</p>
|
|
45
|
+
<CmdPager
|
|
46
|
+
:items="totalNumberOfPages"
|
|
47
|
+
:itemsPerPage="1"
|
|
48
|
+
@click="changePage"
|
|
49
|
+
/>
|
|
50
|
+
</teleport>
|
|
51
|
+
</ViewCodeData>
|
|
52
|
+
</template>
|
|
53
|
+
<template v-slot:tab-content-1>
|
|
54
|
+
<ComponentProperties :properties="CmdPager.props" :propertyDescriptions="propertyDescriptions" :propertyStructures="propertyStructures"/>
|
|
55
|
+
</template>
|
|
56
|
+
</CmdTabs>
|
|
57
|
+
</template>
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
<script setup>
|
|
2
|
+
// import functions
|
|
3
|
+
import {tabProps, tabHandlers} from "../../tabs"
|
|
4
|
+
import {isFrameMode} from "../../../utils/common"
|
|
5
|
+
|
|
6
|
+
// import components
|
|
7
|
+
import CmdProgressBar from "../../../components/CmdProgressBar"
|
|
8
|
+
import ComponentProperties from "../../components/ComponentProperties"
|
|
9
|
+
import ViewCodeData from "../../components/ViewCodeData"
|
|
10
|
+
import CmdTabs from "../../../components/CmdTabs"
|
|
11
|
+
import CmdCustomHeadline from "../../../components/CmdCustomHeadline"
|
|
12
|
+
|
|
13
|
+
// import example-data
|
|
14
|
+
import CmdCode from "../../data/CmdProgressBarHelp"
|
|
15
|
+
import propertyDescriptions from "../../generated/CmdProgressBarPropertyDescriptions.json"
|
|
16
|
+
</script>
|
|
17
|
+
|
|
18
|
+
<template>
|
|
19
|
+
<CmdTabs v-show="!isFrameMode()" v-bind="tabProps" :active-tab="tabProps.activeTab" v-on="tabHandlers">
|
|
20
|
+
<template v-slot:tab-content-0>
|
|
21
|
+
<h2>Component</h2>
|
|
22
|
+
<CmdCustomHeadline headlineText="Progress Bar with output" :headlineLevel="3" preHeadlineText="Example #1" />
|
|
23
|
+
<ViewCodeData :isFirstComponent="true" :code="CmdCode[0]">
|
|
24
|
+
<teleport to="#frame-component-target" :disabled="!isFrameMode()">
|
|
25
|
+
<CmdProgressBar
|
|
26
|
+
labelText="Progress Bar with output:"
|
|
27
|
+
id="progress-bar"
|
|
28
|
+
max="100"
|
|
29
|
+
/>
|
|
30
|
+
</teleport>
|
|
31
|
+
</ViewCodeData>
|
|
32
|
+
<hr />
|
|
33
|
+
<CmdCustomHeadline headlineText="Progress Bar without output" :headlineLevel="5" preHeadlineText="Example #2" />
|
|
34
|
+
<ViewCodeData :code="CmdCode[1]">
|
|
35
|
+
<CmdProgressBar
|
|
36
|
+
labelText="Progress Bar without output:"
|
|
37
|
+
id="progress-bar"
|
|
38
|
+
max="100"
|
|
39
|
+
:showLoadingStatus="false"
|
|
40
|
+
/>
|
|
41
|
+
</ViewCodeData>
|
|
42
|
+
</template>
|
|
43
|
+
<template v-slot:tab-content-1>
|
|
44
|
+
<ComponentProperties :properties="CmdProgressBar.props" :propertyDescriptions="propertyDescriptions" :propertyStructures="propertyStructures"/>
|
|
45
|
+
</template>
|
|
46
|
+
</CmdTabs>
|
|
47
|
+
</template>
|
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
<script setup>
|
|
2
|
+
// import functions
|
|
3
|
+
import {tabProps, tabHandlers} from "../../tabs"
|
|
4
|
+
import {isFrameMode} from "../../../utils/common"
|
|
5
|
+
|
|
6
|
+
// import components
|
|
7
|
+
import CmdShareButtons from "../../../components/CmdShareButtons"
|
|
8
|
+
import ComponentProperties from "../../components/ComponentProperties"
|
|
9
|
+
import ViewCodeData from "../../components/ViewCodeData"
|
|
10
|
+
import CmdTabs from "../../../components/CmdTabs"
|
|
11
|
+
import CmdCustomHeadline from "../../../components/CmdCustomHeadline"
|
|
12
|
+
|
|
13
|
+
// import example-data
|
|
14
|
+
import CmdCode from "../../data/CmdShareButtonsHelp"
|
|
15
|
+
import shareButtonsJson from '../../../assets/data/share-buttons-page-by-json.json'
|
|
16
|
+
import shareButtonsPage from '../../../assets/data/share-buttons-page-by-property.json'
|
|
17
|
+
import propertyDescriptions from "../../generated/CmdShareButtonsPropertyDescriptions.json"
|
|
18
|
+
|
|
19
|
+
const propertyStructures = {
|
|
20
|
+
shareButtons: [
|
|
21
|
+
{
|
|
22
|
+
"id": "<string>",
|
|
23
|
+
"path": "<string>",
|
|
24
|
+
"tooltip": "<string>",
|
|
25
|
+
"iconClass": "<string>",
|
|
26
|
+
"linkText": "<string>"
|
|
27
|
+
}
|
|
28
|
+
]
|
|
29
|
+
}
|
|
30
|
+
</script>
|
|
31
|
+
|
|
32
|
+
<template>
|
|
33
|
+
<CmdTabs v-show="!isFrameMode()" v-bind="tabProps" :active-tab="tabProps.activeTab" v-on="tabHandlers">
|
|
34
|
+
<template v-slot:tab-content-0>
|
|
35
|
+
<h2>Component</h2>
|
|
36
|
+
<CmdCustomHeadline headlineText="Data given by json-file" :headlineLevel="3" preHeadlineText="Example #1" />
|
|
37
|
+
<ViewCodeData :isFirstComponent="true" :code="CmdCode[0]" :data="shareButtonsJson">
|
|
38
|
+
<teleport to="#frame-component-target" :disabled="!isFrameMode()">
|
|
39
|
+
<CmdShareButtons
|
|
40
|
+
:append-page="false"
|
|
41
|
+
:share-buttons="shareButtonsJson"
|
|
42
|
+
/>
|
|
43
|
+
</teleport>
|
|
44
|
+
</ViewCodeData>
|
|
45
|
+
<hr />
|
|
46
|
+
<CmdCustomHeadline headlineText="Page given by property" :headlineLevel="3" preHeadlineText="Example #2" />
|
|
47
|
+
<ViewCodeData :code="CmdCode[1]" :data="shareButtonsPage">
|
|
48
|
+
<CmdShareButtons
|
|
49
|
+
page="some url"
|
|
50
|
+
:share-buttons="shareButtonsPage"
|
|
51
|
+
/>
|
|
52
|
+
</ViewCodeData>
|
|
53
|
+
<hr />
|
|
54
|
+
<CmdCustomHeadline headlineText="Page taken from browser" headlineLevel="3" preHeadlineText="Example #3" />
|
|
55
|
+
<ViewCodeData :code="CmdCode[2]" :data="shareButtonsPage">
|
|
56
|
+
<CmdShareButtons
|
|
57
|
+
:share-buttons="shareButtonsPage"
|
|
58
|
+
/>
|
|
59
|
+
</ViewCodeData>
|
|
60
|
+
</template>
|
|
61
|
+
<template v-slot:tab-content-1>
|
|
62
|
+
<ComponentProperties :properties="CmdShareButtons.props" :propertyDescriptions="propertyDescriptions" :propertyStructures="propertyStructures"/>
|
|
63
|
+
</template>
|
|
64
|
+
</CmdTabs>
|
|
65
|
+
</template>
|
|
@@ -0,0 +1,72 @@
|
|
|
1
|
+
<script setup>
|
|
2
|
+
// import functions
|
|
3
|
+
import {ref} from "vue"
|
|
4
|
+
import {tabProps, tabHandlers} from "../../tabs"
|
|
5
|
+
import {isFrameMode} from "../../../utils/common"
|
|
6
|
+
|
|
7
|
+
// import components
|
|
8
|
+
import CmdSiteHeader from "../../../components/CmdSiteHeader"
|
|
9
|
+
import CmdCompanyLogo from "../../../components/CmdCompanyLogo"
|
|
10
|
+
import CmdListOfLinks from "../../../components/CmdListOfLinks"
|
|
11
|
+
import ComponentProperties from "../../components/ComponentProperties"
|
|
12
|
+
import ViewCodeData from "../../components/ViewCodeData"
|
|
13
|
+
import CmdTabs from "../../../components/CmdTabs"
|
|
14
|
+
import CmdCode from "../../data/CmdSiteHeaderHelp"
|
|
15
|
+
|
|
16
|
+
// import example-data
|
|
17
|
+
import mainNavigation from '../../../assets/data/main-navigation.json'
|
|
18
|
+
import listOfLinks from '../../../assets/data/list-of-links-top-header-navigation.json'
|
|
19
|
+
import companyLogo from '../../../assets/data/company-logo.json'
|
|
20
|
+
import propertyDescriptions from "../../generated/CmdSiteHeaderPropertyDescriptions.json"
|
|
21
|
+
|
|
22
|
+
const propertyStructures = {
|
|
23
|
+
mainNavigationEntries: [
|
|
24
|
+
{
|
|
25
|
+
"name": "<string>",
|
|
26
|
+
"href": "<string>",
|
|
27
|
+
"target": "<string>",
|
|
28
|
+
"subentries": [
|
|
29
|
+
{
|
|
30
|
+
"name": "<string>",
|
|
31
|
+
"href": "<string>",
|
|
32
|
+
"target": "<string>"
|
|
33
|
+
}
|
|
34
|
+
]
|
|
35
|
+
}
|
|
36
|
+
]
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
const navigationEntries = ref(mainNavigation)
|
|
40
|
+
</script>
|
|
41
|
+
|
|
42
|
+
<template>
|
|
43
|
+
<CmdTabs v-show="!isFrameMode()" v-bind="tabProps" :active-tab="tabProps.activeTab" v-on="tabHandlers">
|
|
44
|
+
<template v-slot:tab-content-0>
|
|
45
|
+
<h2>Component</h2>
|
|
46
|
+
<ViewCodeData :isFirstComponent="true" :code="CmdCode[0]">
|
|
47
|
+
<teleport to="#frame-component-target" :disabled="!isFrameMode()">
|
|
48
|
+
<CmdSiteHeader :cmdMainNavigation="{navigationEntries}" :sticky="true">
|
|
49
|
+
<template v-slot:top-header>
|
|
50
|
+
<CmdListOfLinks
|
|
51
|
+
:links="listOfLinks"
|
|
52
|
+
orientation="horizontal"
|
|
53
|
+
align="right"
|
|
54
|
+
/>
|
|
55
|
+
</template>
|
|
56
|
+
<template v-slot:logo>
|
|
57
|
+
<CmdCompanyLogo
|
|
58
|
+
:link="companyLogo.link"
|
|
59
|
+
altText="CoManD Logo"
|
|
60
|
+
:pathDefaultLogo="require('@/assets/images/logo.svg')"
|
|
61
|
+
:pathDarkmodeLogo="require('@/assets/images/logo-darkmode.svg')"
|
|
62
|
+
/>
|
|
63
|
+
</template>
|
|
64
|
+
</CmdSiteHeader>
|
|
65
|
+
</teleport>
|
|
66
|
+
</ViewCodeData>
|
|
67
|
+
</template>
|
|
68
|
+
<template v-slot:tab-content-1>
|
|
69
|
+
<ComponentProperties :properties="CmdSiteHeader.props" :propertyDescriptions="propertyDescriptions" :propertyStructures="propertyStructures"/>
|
|
70
|
+
</template>
|
|
71
|
+
</CmdTabs>
|
|
72
|
+
</template>
|
|
@@ -0,0 +1,90 @@
|
|
|
1
|
+
<script setup>
|
|
2
|
+
import {ref} from "vue"
|
|
3
|
+
import {tabProps, tabHandlers} from "../../tabs"
|
|
4
|
+
import CmdSlideButton from "../../../components/CmdSlideButton"
|
|
5
|
+
import ComponentProperties from "../../components/ComponentProperties"
|
|
6
|
+
import {isFrameMode} from "../../../utils/common"
|
|
7
|
+
import ViewCodeData from "../../components/ViewCodeData"
|
|
8
|
+
import CmdTabs from "../../../components/CmdTabs"
|
|
9
|
+
import CmdCode from "../../data/CmdSlideButtonHelp"
|
|
10
|
+
import propertyDescriptions from "../../generated/CmdSlideButtonPropertyDescriptions.json"
|
|
11
|
+
|
|
12
|
+
const propertyStructures = {
|
|
13
|
+
slideButtons: {
|
|
14
|
+
prev: {
|
|
15
|
+
iconClass: "<string>",
|
|
16
|
+
tooltip: "<string>"
|
|
17
|
+
},
|
|
18
|
+
next: {
|
|
19
|
+
iconClass: "<string>",
|
|
20
|
+
tooltip: "<string>"
|
|
21
|
+
}
|
|
22
|
+
}
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
const currentItem = ref(1)
|
|
26
|
+
const totalItems = 4
|
|
27
|
+
|
|
28
|
+
function showPrevItem() {
|
|
29
|
+
if(currentItem.value === 1) {
|
|
30
|
+
currentItem.value = totalItems
|
|
31
|
+
} else {
|
|
32
|
+
currentItem.value--
|
|
33
|
+
}
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
function showNextItem() {
|
|
37
|
+
if(currentItem.value === totalItems) {
|
|
38
|
+
currentItem.value = 1
|
|
39
|
+
} else {
|
|
40
|
+
currentItem.value++
|
|
41
|
+
}
|
|
42
|
+
}
|
|
43
|
+
</script>
|
|
44
|
+
|
|
45
|
+
<template>
|
|
46
|
+
<CmdTabs v-show="!isFrameMode()" v-bind="tabProps" :active-tab="tabProps.activeTab" v-on="tabHandlers">
|
|
47
|
+
<template v-slot:tab-content-0>
|
|
48
|
+
<h2>Component</h2>
|
|
49
|
+
<ViewCodeData :isFirstComponent="true" :code="CmdCode[0]">
|
|
50
|
+
<teleport to="#frame-component-target" :disabled="!isFrameMode()">
|
|
51
|
+
<div class="flex-container" id="slider">
|
|
52
|
+
<CmdSlideButton
|
|
53
|
+
slideButtonType="prev"
|
|
54
|
+
@click.prevent="showPrevItem"
|
|
55
|
+
/>
|
|
56
|
+
<p>
|
|
57
|
+
Content {{ currentItem }}
|
|
58
|
+
</p>
|
|
59
|
+
<CmdSlideButton
|
|
60
|
+
slideButtonType="next"
|
|
61
|
+
@click.prevent="showNextItem"
|
|
62
|
+
/>
|
|
63
|
+
</div>
|
|
64
|
+
</teleport>
|
|
65
|
+
</ViewCodeData>
|
|
66
|
+
</template>
|
|
67
|
+
<template v-slot:tab-content-1>
|
|
68
|
+
<ComponentProperties :properties="CmdSlideButton.props" :propertyDescriptions="propertyDescriptions" :propertyStructures="propertyStructures"/>
|
|
69
|
+
</template>
|
|
70
|
+
</CmdTabs>
|
|
71
|
+
</template>
|
|
72
|
+
|
|
73
|
+
<style lang="scss" scoped>
|
|
74
|
+
.cmd-slide-button {
|
|
75
|
+
&.button {
|
|
76
|
+
position: relative;
|
|
77
|
+
}
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
#slider {
|
|
81
|
+
align-items: center;
|
|
82
|
+
border: var(--default-border);
|
|
83
|
+
border-style: dotted;
|
|
84
|
+
|
|
85
|
+
p {
|
|
86
|
+
margin: 0;
|
|
87
|
+
text-align: center;
|
|
88
|
+
}
|
|
89
|
+
}
|
|
90
|
+
</style>
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
<script setup>
|
|
2
|
+
// import functions
|
|
3
|
+
import {tabProps, tabHandlers} from "../../tabs"
|
|
4
|
+
import {isFrameMode} from "../../../utils/common"
|
|
5
|
+
|
|
6
|
+
// import components
|
|
7
|
+
import CmdSlideshow from "../../../components/CmdSlideshow"
|
|
8
|
+
import ComponentProperties from "../../components/ComponentProperties"
|
|
9
|
+
import ViewCodeData from "../../components/ViewCodeData"
|
|
10
|
+
import CmdTabs from "../../../components/CmdTabs"
|
|
11
|
+
|
|
12
|
+
// import example-data
|
|
13
|
+
import CmdCode from "../../data/CmdSlideshowHelp"
|
|
14
|
+
import slideshow from "../../../assets/data/slideshow.json"
|
|
15
|
+
import propertyDescriptions from "../../generated/CmdSlideshowPropertyDescriptions.json"
|
|
16
|
+
|
|
17
|
+
const propertyStructures = {
|
|
18
|
+
slideshowItems: [{
|
|
19
|
+
"images": [
|
|
20
|
+
{
|
|
21
|
+
"maxWidth": "<number>",
|
|
22
|
+
"imgPath": "<string>"
|
|
23
|
+
},
|
|
24
|
+
{
|
|
25
|
+
"imgPath": "<string>",
|
|
26
|
+
"maxWidth": "<number>"
|
|
27
|
+
},
|
|
28
|
+
{
|
|
29
|
+
"imgPath": "<string>"
|
|
30
|
+
}
|
|
31
|
+
],
|
|
32
|
+
"alt": "<string>",
|
|
33
|
+
"href": "<string>",
|
|
34
|
+
"title": "<string>",
|
|
35
|
+
"target": "<string>",
|
|
36
|
+
"figcaption": "<string>"
|
|
37
|
+
}
|
|
38
|
+
]
|
|
39
|
+
}
|
|
40
|
+
</script>
|
|
41
|
+
|
|
42
|
+
<template>
|
|
43
|
+
<CmdTabs v-show="!isFrameMode()" v-bind="tabProps" :active-tab="tabProps.activeTab" v-on="tabHandlers">
|
|
44
|
+
<template v-slot:tab-content-0>
|
|
45
|
+
<h2>Component</h2>
|
|
46
|
+
<ViewCodeData :isFirstComponent="true" :code="CmdCode[0]" :data="slideshow">
|
|
47
|
+
<teleport to="#frame-component-target" :disabled="!isFrameMode()">
|
|
48
|
+
<CmdSlideshow
|
|
49
|
+
:slideshow-items="slideshow"
|
|
50
|
+
:showCounter="true"
|
|
51
|
+
:autoplay="true"
|
|
52
|
+
/>
|
|
53
|
+
</teleport>
|
|
54
|
+
</ViewCodeData>
|
|
55
|
+
</template>
|
|
56
|
+
<template v-slot:tab-content-1>
|
|
57
|
+
<ComponentProperties :properties="CmdSlideshow.props" :propertyDescriptions="propertyDescriptions" :propertyStructures="propertyStructures"/>
|
|
58
|
+
</template>
|
|
59
|
+
</CmdTabs>
|
|
60
|
+
</template>
|
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
<script setup>
|
|
2
|
+
// import functions
|
|
3
|
+
import {ref} from "vue"
|
|
4
|
+
import {tabProps, tabHandlers} from "../../tabs"
|
|
5
|
+
import {isFrameMode} from "../../../utils/common"
|
|
6
|
+
|
|
7
|
+
// import components
|
|
8
|
+
import CmdSwitchLanguage from "../../../components/CmdSwitchLanguage"
|
|
9
|
+
import ComponentProperties from "../../components/ComponentProperties"
|
|
10
|
+
import ViewCodeData from "../../components/ViewCodeData"
|
|
11
|
+
import CmdTabs from "../../../components/CmdTabs"
|
|
12
|
+
|
|
13
|
+
// import example-data
|
|
14
|
+
import CmdCode from "../../data/CmdSwitchLanguageHelp"
|
|
15
|
+
import switchLanguage from '../../../assets/data/switch-language.json'
|
|
16
|
+
import propertyDescriptions from "../../generated/CmdSwitchLanguagePropertyDescriptions.json"
|
|
17
|
+
|
|
18
|
+
const currentLanguage = ref("")
|
|
19
|
+
|
|
20
|
+
const propertyStructures = {
|
|
21
|
+
languages: [
|
|
22
|
+
{
|
|
23
|
+
"iso2": "<string>",
|
|
24
|
+
"name": "<string>",
|
|
25
|
+
"tooltip": "<string>",
|
|
26
|
+
"link": {
|
|
27
|
+
"type": "<string>",
|
|
28
|
+
"path": "<string>"
|
|
29
|
+
}
|
|
30
|
+
}
|
|
31
|
+
]
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
function selectLanguage(event) {
|
|
35
|
+
// event contains the original event and the language as an object
|
|
36
|
+
event.originalEvent.preventDefault() // prevent original event
|
|
37
|
+
currentLanguage.value = event.language
|
|
38
|
+
}
|
|
39
|
+
</script>
|
|
40
|
+
|
|
41
|
+
<template>
|
|
42
|
+
<CmdTabs v-show="!isFrameMode()" v-bind="tabProps" :active-tab="tabProps.activeTab" v-on="tabHandlers">
|
|
43
|
+
<template v-slot:tab-content-0>
|
|
44
|
+
<h2>Component</h2>
|
|
45
|
+
<ViewCodeData :isFirstComponent="true" :code="CmdCode[0]" :data="switchLanguage">
|
|
46
|
+
<teleport to="#frame-component-target" :disabled="!isFrameMode()">
|
|
47
|
+
<CmdSwitchLanguage
|
|
48
|
+
:languages="switchLanguage"
|
|
49
|
+
@click="selectLanguage"
|
|
50
|
+
/>
|
|
51
|
+
</teleport>
|
|
52
|
+
<dl class="v-model" v-if="currentLanguage">
|
|
53
|
+
<dt>Current language:</dt>
|
|
54
|
+
<dd>
|
|
55
|
+
<output>{{ currentLanguage.name }}</output>
|
|
56
|
+
</dd>
|
|
57
|
+
</dl>
|
|
58
|
+
</ViewCodeData>
|
|
59
|
+
</template>
|
|
60
|
+
<template v-slot:tab-content-1>
|
|
61
|
+
<ComponentProperties :properties="CmdSwitchLanguage.props" :propertyDescriptions="propertyDescriptions" :propertyStructures="propertyStructures"/>
|
|
62
|
+
</template>
|
|
63
|
+
</CmdTabs>
|
|
64
|
+
</template>
|
|
@@ -0,0 +1,86 @@
|
|
|
1
|
+
<script setup>
|
|
2
|
+
// import functions
|
|
3
|
+
import {tabProps, tabHandlers} from "../../tabs"
|
|
4
|
+
import {isFrameMode} from "../../../utils/common"
|
|
5
|
+
|
|
6
|
+
// import components
|
|
7
|
+
import CmdSystemMessage from "../../../components/CmdSystemMessage"
|
|
8
|
+
import ComponentProperties from "../../components/ComponentProperties"
|
|
9
|
+
import ViewCodeData from "../../components/ViewCodeData"
|
|
10
|
+
import CmdTabs from "../../../components/CmdTabs"
|
|
11
|
+
import CmdCustomHeadline from "../../../components/CmdCustomHeadline"
|
|
12
|
+
|
|
13
|
+
// import example-data
|
|
14
|
+
import CmdCode from "../../data/CmdSystemMessageHelp"
|
|
15
|
+
import propertyDescriptions from "../../generated/CmdSystemMessagePropertyDescriptions.json"
|
|
16
|
+
|
|
17
|
+
const propertyStructures = {
|
|
18
|
+
iconMessage: {
|
|
19
|
+
show: "<boolean>",
|
|
20
|
+
iconClass: "<string>"
|
|
21
|
+
},
|
|
22
|
+
iconClose: {
|
|
23
|
+
show: "<boolean>",
|
|
24
|
+
iconClass: "<string>",
|
|
25
|
+
tooltip: "<string>"
|
|
26
|
+
}
|
|
27
|
+
}
|
|
28
|
+
</script>
|
|
29
|
+
|
|
30
|
+
<template>
|
|
31
|
+
<CmdTabs v-show="!isFrameMode()" v-bind="tabProps" :active-tab="tabProps.activeTab" v-on="tabHandlers">
|
|
32
|
+
<template v-slot:tab-content-0>
|
|
33
|
+
<h2>Component</h2>
|
|
34
|
+
<CmdCustomHeadline headlineText="Error message (message given by property)" :headlineLevel="3" preHeadlineText="Example #1" />
|
|
35
|
+
<ViewCodeData :isFirstComponent="true" :code="CmdCode[0]">
|
|
36
|
+
<teleport to="#frame-component-target" :disabled="!isFrameMode()">
|
|
37
|
+
<CmdSystemMessage
|
|
38
|
+
validationStatus="error"
|
|
39
|
+
:fullWidth="true"
|
|
40
|
+
systemMessage="This is an error message!">
|
|
41
|
+
</CmdSystemMessage>
|
|
42
|
+
</teleport>
|
|
43
|
+
</ViewCodeData>
|
|
44
|
+
<hr />
|
|
45
|
+
<CmdCustomHeadline headlineText="Warning message (message given by property and slot)" :headlineLevel="3" preHeadlineText="Example #2" />
|
|
46
|
+
<ViewCodeData :code="CmdCode[1]">
|
|
47
|
+
<CmdSystemMessage
|
|
48
|
+
validationStatus="warning"
|
|
49
|
+
:fullWidth="true"
|
|
50
|
+
systemMessage="This is a warning message!">
|
|
51
|
+
<!-- begin slot-content -->
|
|
52
|
+
<p>This is additional text!</p>
|
|
53
|
+
<!-- end slot-content -->
|
|
54
|
+
</CmdSystemMessage>
|
|
55
|
+
</ViewCodeData>
|
|
56
|
+
<hr />
|
|
57
|
+
<CmdCustomHeadline headlineText="Success message (message given by property and slot)" :headlineLevel="3" preHeadlineText="Example #3" />
|
|
58
|
+
<ViewCodeData :code="CmdCode[2]">
|
|
59
|
+
<CmdSystemMessage
|
|
60
|
+
validationStatus="success"
|
|
61
|
+
:fullWidth="true"
|
|
62
|
+
systemMessage="This is a success message!">
|
|
63
|
+
<!-- begin slot-content -->
|
|
64
|
+
<ul>
|
|
65
|
+
<li>Additional information #1</li>
|
|
66
|
+
<li>Additional information #2</li>
|
|
67
|
+
<li>Additional information #3</li>
|
|
68
|
+
</ul>
|
|
69
|
+
<!-- end slot-content -->
|
|
70
|
+
</CmdSystemMessage>
|
|
71
|
+
</ViewCodeData>
|
|
72
|
+
<hr />
|
|
73
|
+
<CmdCustomHeadline headlineText="Info message (message given by property)" :headlineLevel="3" preHeadlineText="Example #3" />
|
|
74
|
+
<ViewCodeData :code="CmdCode[3]">
|
|
75
|
+
<CmdSystemMessage
|
|
76
|
+
validationStatus="info"
|
|
77
|
+
:fullWidth="true"
|
|
78
|
+
systemMessage="This is an info message!">
|
|
79
|
+
</CmdSystemMessage>
|
|
80
|
+
</ViewCodeData>
|
|
81
|
+
</template>
|
|
82
|
+
<template v-slot:tab-content-1>
|
|
83
|
+
<ComponentProperties :properties="CmdSystemMessage.props" :propertyDescriptions="propertyDescriptions" :propertyStructures="propertyStructures"/>
|
|
84
|
+
</template>
|
|
85
|
+
</CmdTabs>
|
|
86
|
+
</template>
|
|
@@ -0,0 +1,84 @@
|
|
|
1
|
+
<script setup>
|
|
2
|
+
// import functions
|
|
3
|
+
import {tabProps, tabHandlers} from "../../tabs"
|
|
4
|
+
import {isFrameMode} from "../../../utils/common"
|
|
5
|
+
|
|
6
|
+
// import components
|
|
7
|
+
import CmdTable from "../../../components/CmdTable"
|
|
8
|
+
import ComponentProperties from "../../components/ComponentProperties"
|
|
9
|
+
import ViewCodeData from "../../components/ViewCodeData"
|
|
10
|
+
import CmdTabs from "../../../components/CmdTabs"
|
|
11
|
+
import CmdCustomHeadline from "../../../components/CmdCustomHeadline"
|
|
12
|
+
|
|
13
|
+
// import example-data
|
|
14
|
+
import CmdCode from "../../data/CmdTableHelp"
|
|
15
|
+
import tableSmall from "../../../assets/data/table-small.json"
|
|
16
|
+
import tableLarge from "../../../assets/data/table-large.json"
|
|
17
|
+
import propertyDescriptions from "../../generated/CmdTablePropertyDescriptions.json"
|
|
18
|
+
|
|
19
|
+
const propertyStructures = {
|
|
20
|
+
tableData: {
|
|
21
|
+
"caption": {
|
|
22
|
+
"hide": "<boolean>",
|
|
23
|
+
"text": "<string>"
|
|
24
|
+
},
|
|
25
|
+
"thead": "<array>",
|
|
26
|
+
"tbody": [
|
|
27
|
+
"<array>"
|
|
28
|
+
],
|
|
29
|
+
"tfoot": "<array>"
|
|
30
|
+
},
|
|
31
|
+
fullWidthOnDefault: {
|
|
32
|
+
show: "<boolean>",
|
|
33
|
+
iconClass: "<string>"
|
|
34
|
+
},
|
|
35
|
+
iconExpand: {
|
|
36
|
+
iconClass: "<string>",
|
|
37
|
+
tooltip: "<string>"
|
|
38
|
+
},
|
|
39
|
+
iconCollapse: {
|
|
40
|
+
iconClass: "<string>",
|
|
41
|
+
tooltip: "<string>"
|
|
42
|
+
},
|
|
43
|
+
iconShrink: {
|
|
44
|
+
iconClass: "<string>",
|
|
45
|
+
tooltip: "<string>"
|
|
46
|
+
},
|
|
47
|
+
iconStretch: {
|
|
48
|
+
iconClass: "<string>",
|
|
49
|
+
tooltip: "<string>"
|
|
50
|
+
}
|
|
51
|
+
}
|
|
52
|
+
</script>
|
|
53
|
+
|
|
54
|
+
<template>
|
|
55
|
+
<CmdTabs v-show="!isFrameMode()" v-bind="tabProps" :active-tab="tabProps.activeTab" v-on="tabHandlers">
|
|
56
|
+
<template v-slot:tab-content-0>
|
|
57
|
+
<h2>Component</h2>
|
|
58
|
+
<CmdCustomHeadline headlineText="Table (with few data)" :headlineLevel="3" preHeadlineText="Example #1" />
|
|
59
|
+
<ViewCodeData :isFirstComponent="true" :code="CmdCode[0]">
|
|
60
|
+
<teleport to="#frame-component-target" :disabled="!isFrameMode()">
|
|
61
|
+
<CmdTable
|
|
62
|
+
:collapsible="true"
|
|
63
|
+
:fullWidthOnDefault="false"
|
|
64
|
+
:userCanToggleWidth="true"
|
|
65
|
+
:table-data="tableSmall"
|
|
66
|
+
/>
|
|
67
|
+
</teleport>
|
|
68
|
+
</ViewCodeData>
|
|
69
|
+
<hr />
|
|
70
|
+
<CmdCustomHeadline headlineText="Table (with lots of data and highlighted row and column)" :headlineLevel="3" preHeadlineText="Example 2" />
|
|
71
|
+
<ViewCodeData :code="CmdCode[1]">
|
|
72
|
+
<CmdTable
|
|
73
|
+
:collapsible="false"
|
|
74
|
+
:fullWidthOnDefault="false"
|
|
75
|
+
:userCanToggleWidth="false"
|
|
76
|
+
:table-data="tableLarge"
|
|
77
|
+
/>
|
|
78
|
+
</ViewCodeData>
|
|
79
|
+
</template>
|
|
80
|
+
<template v-slot:tab-content-1>
|
|
81
|
+
<ComponentProperties :properties="CmdTable.props" :propertyDescriptions="propertyDescriptions" :propertyStructures="propertyStructures"/>
|
|
82
|
+
</template>
|
|
83
|
+
</CmdTabs>
|
|
84
|
+
</template>
|