comand-component-library 3.1.53 → 3.1.54

Sign up to get free protection for your applications and to get access to all the features.
Files changed (141) hide show
  1. package/dist/comand-component-library.css +1 -1
  2. package/dist/comand-component-library.umd.min.js +1 -1
  3. package/package.json +1 -1
  4. package/src/App.vue +0 -55
  5. package/src/assets/data/breadcrumbs.json +2 -2
  6. package/src/components/CmdCookieDisclaimer.vue +63 -65
  7. package/src/index.js +0 -1
  8. package/src/router/index.js +0 -57
  9. package/src/ComponentDocumentation.vue +0 -156
  10. package/src/ComponentLibraryHelp.vue +0 -20
  11. package/src/components/CmdAccordion.vue +0 -253
  12. package/src/documentation/commonProps.js +0 -6
  13. package/src/documentation/components/ComponentCode.vue +0 -50
  14. package/src/documentation/components/ComponentProperties.vue +0 -237
  15. package/src/documentation/components/ExampleSectionWrapper.vue +0 -46
  16. package/src/documentation/components/ViewCodeData.vue +0 -113
  17. package/src/documentation/data/CmdAccordionHelp.js +0 -22
  18. package/src/documentation/data/CmdAddressDataHelp.js +0 -17
  19. package/src/documentation/data/CmdBackToTopButtonHelp.js +0 -3
  20. package/src/documentation/data/CmdBankAccountDataHelp.js +0 -8
  21. package/src/documentation/data/CmdBoxHelp.js +0 -45
  22. package/src/documentation/data/CmdBoxSiteSearchHelp.js +0 -11
  23. package/src/documentation/data/CmdBreadcrumbsHelp.js +0 -6
  24. package/src/documentation/data/CmdCompanyLogoHelp.js +0 -8
  25. package/src/documentation/data/CmdCookieDisclaimerHelp.js +0 -9
  26. package/src/documentation/data/CmdCopyrightInformation.js +0 -2
  27. package/src/documentation/data/CmdCustomHeadlineHelp.js +0 -8
  28. package/src/documentation/data/CmdFakeSelectHelp.js +0 -60
  29. package/src/documentation/data/CmdFancyBoxHelp.js +0 -7
  30. package/src/documentation/data/CmdFooterNavigationHelp.js +0 -5
  31. package/src/documentation/data/CmdFormElementHelp.js +0 -189
  32. package/src/documentation/data/CmdFormFiltersHelp.js +0 -6
  33. package/src/documentation/data/CmdFormHelp.js +0 -10
  34. package/src/documentation/data/CmdGoogleMapsHelp.js +0 -5
  35. package/src/documentation/data/CmdImageGalleryHelp.js +0 -5
  36. package/src/documentation/data/CmdImageZoomHelp.js +0 -6
  37. package/src/documentation/data/CmdListOfLinksHelp.js +0 -24
  38. package/src/documentation/data/CmdLoginFormHelp.js +0 -6
  39. package/src/documentation/data/CmdMainNavigationHelp.js +0 -7
  40. package/src/documentation/data/CmdMultistepFormProgressBarHelp.js +0 -6
  41. package/src/documentation/data/CmdOpeningHoursHelp.js +0 -10
  42. package/src/documentation/data/CmdPagerHelp.js +0 -7
  43. package/src/documentation/data/CmdProgressBarHelp.js +0 -13
  44. package/src/documentation/data/CmdShareButtonsHelp.js +0 -13
  45. package/src/documentation/data/CmdSiteHeaderHelp.js +0 -21
  46. package/src/documentation/data/CmdSlideButtonHelp.js +0 -10
  47. package/src/documentation/data/CmdSlideshowHelp.js +0 -7
  48. package/src/documentation/data/CmdSwitchLanguageHelp.js +0 -6
  49. package/src/documentation/data/CmdSystemMessageHelp.js +0 -32
  50. package/src/documentation/data/CmdTableHelp.js +0 -14
  51. package/src/documentation/data/CmdTabsHelp.js +0 -10
  52. package/src/documentation/data/CmdThumbnailScrollerHelp.js +0 -5
  53. package/src/documentation/data/CmdTooltipHelp.js +0 -13
  54. package/src/documentation/data/CmdUploadFormHelp.js +0 -17
  55. package/src/documentation/data/CmdWidthLimitationWrapperHelp.js +0 -7
  56. package/src/documentation/data/componentsDescription.json +0 -158
  57. package/src/documentation/generated/CmdAccordionPropertyDescriptions.json +0 -57
  58. package/src/documentation/generated/CmdAddressDataPropertyDescriptions.json +0 -32
  59. package/src/documentation/generated/CmdBackToTopButtonPropertyDescriptions.json +0 -12
  60. package/src/documentation/generated/CmdBankAccountDataPropertyDescriptions.json +0 -34
  61. package/src/documentation/generated/CmdBoxPropertyDescriptions.json +0 -91
  62. package/src/documentation/generated/CmdBoxSiteSearchPropertyDescriptions.json +0 -46
  63. package/src/documentation/generated/CmdBoxWrapperPropertyDescriptions.json +0 -47
  64. package/src/documentation/generated/CmdBreadcrumbsPropertyDescriptions.json +0 -17
  65. package/src/documentation/generated/CmdCompanyLogoPropertyDescriptions.json +0 -27
  66. package/src/documentation/generated/CmdCookieDisclaimerPropertyDescriptions.json +0 -22
  67. package/src/documentation/generated/CmdCustomHeadlinePropertyDescriptions.json +0 -22
  68. package/src/documentation/generated/CmdFakeSelectPropertyDescriptions.json +0 -84
  69. package/src/documentation/generated/CmdFancyBoxPropertyDescriptions.json +0 -62
  70. package/src/documentation/generated/CmdFooterNavigationPropertyDescriptions.json +0 -17
  71. package/src/documentation/generated/CmdFormElementPropertyDescriptions.json +0 -178
  72. package/src/documentation/generated/CmdFormFiltersPropertyDescriptions.json +0 -32
  73. package/src/documentation/generated/CmdFormPropertyDescriptions.json +0 -40
  74. package/src/documentation/generated/CmdGoogleMapsPropertyDescriptions.json +0 -7
  75. package/src/documentation/generated/CmdImageGalleryPropertyDescriptions.json +0 -22
  76. package/src/documentation/generated/CmdImageZoomPropertyDescriptions.json +0 -12
  77. package/src/documentation/generated/CmdListOfLinksPropertyDescriptions.json +0 -60
  78. package/src/documentation/generated/CmdLoginFormPropertyDescriptions.json +0 -90
  79. package/src/documentation/generated/CmdMainNavigationPropertyDescriptions.json +0 -62
  80. package/src/documentation/generated/CmdMultipleSwitchPropertyDescriptions.json +0 -52
  81. package/src/documentation/generated/CmdMultistepFormProgressBarPropertyDescriptions.json +0 -17
  82. package/src/documentation/generated/CmdOpeningHoursPropertyDescriptions.json +0 -42
  83. package/src/documentation/generated/CmdPagerPropertyDescriptions.json +0 -37
  84. package/src/documentation/generated/CmdProgressBarPropertyDescriptions.json +0 -32
  85. package/src/documentation/generated/CmdShareButtonsPropertyDescriptions.json +0 -34
  86. package/src/documentation/generated/CmdSiteHeaderPropertyDescriptions.json +0 -27
  87. package/src/documentation/generated/CmdSlideButtonPropertyDescriptions.json +0 -25
  88. package/src/documentation/generated/CmdSlideshowPropertyDescriptions.json +0 -42
  89. package/src/documentation/generated/CmdSwitchButtonPropertyDescriptions.json +0 -79
  90. package/src/documentation/generated/CmdSwitchLanguagePropertyDescriptions.json +0 -7
  91. package/src/documentation/generated/CmdSystemMessagePropertyDescriptions.json +0 -40
  92. package/src/documentation/generated/CmdTablePropertyDescriptions.json +0 -62
  93. package/src/documentation/generated/CmdTabsPropertyDescriptions.json +0 -27
  94. package/src/documentation/generated/CmdThumbnailScrollerPropertyDescriptions.json +0 -32
  95. package/src/documentation/generated/CmdTooltipPropertyDescriptions.json +0 -17
  96. package/src/documentation/generated/CmdUploadFormPropertyDescriptions.json +0 -90
  97. package/src/documentation/generated/CmdWidthLimitationWrapperPropertyDescriptions.json +0 -41
  98. package/src/documentation/generated/frameworkIcons.json +0 -730
  99. package/src/documentation/generated/logosIcons.json +0 -110
  100. package/src/documentation/tabs.js +0 -46
  101. package/src/documentation/views/ContainerPage.vue +0 -237
  102. package/src/documentation/views/HelpHome.vue +0 -13
  103. package/src/documentation/views/IconFont.vue +0 -80
  104. package/src/documentation/views/components/CmdAccordionHelp.vue +0 -78
  105. package/src/documentation/views/components/CmdAddressDataHelp.vue +0 -65
  106. package/src/documentation/views/components/CmdBackToTopButtonHelp.vue +0 -62
  107. package/src/documentation/views/components/CmdBankAccountDataHelp.vue +0 -88
  108. package/src/documentation/views/components/CmdBoxHelp.vue +0 -137
  109. package/src/documentation/views/components/CmdBoxSiteSearchHelp.vue +0 -60
  110. package/src/documentation/views/components/CmdBoxWrapperHelp.vue +0 -111
  111. package/src/documentation/views/components/CmdBreadcrumbsHelp.vue +0 -51
  112. package/src/documentation/views/components/CmdCompanyLogoHelp.vue +0 -48
  113. package/src/documentation/views/components/CmdCookieDisclaimerHelp.vue +0 -105
  114. package/src/documentation/views/components/CmdCustomHeadlineHelp.vue +0 -53
  115. package/src/documentation/views/components/CmdFakeSelectHelp.vue +0 -175
  116. package/src/documentation/views/components/CmdFancyBoxHelp.vue +0 -79
  117. package/src/documentation/views/components/CmdFormElementHelp.vue +0 -412
  118. package/src/documentation/views/components/CmdFormFiltersHelp.vue +0 -69
  119. package/src/documentation/views/components/CmdFormHelp.vue +0 -41
  120. package/src/documentation/views/components/CmdGoogleMapsHelp.vue +0 -55
  121. package/src/documentation/views/components/CmdImageGalleryHelp.vue +0 -46
  122. package/src/documentation/views/components/CmdImageZoomHelp.vue +0 -34
  123. package/src/documentation/views/components/CmdListOfLinksHelp.vue +0 -64
  124. package/src/documentation/views/components/CmdLoginFormHelp.vue +0 -117
  125. package/src/documentation/views/components/CmdMainNavigationHelp.vue +0 -94
  126. package/src/documentation/views/components/CmdMultistepFormProgressBarHelp.vue +0 -49
  127. package/src/documentation/views/components/CmdOpeningHoursHelp.vue +0 -49
  128. package/src/documentation/views/components/CmdPagerHelp.vue +0 -57
  129. package/src/documentation/views/components/CmdProgressBarHelp.vue +0 -47
  130. package/src/documentation/views/components/CmdShareButtonsHelp.vue +0 -65
  131. package/src/documentation/views/components/CmdSiteHeaderHelp.vue +0 -72
  132. package/src/documentation/views/components/CmdSlideButtonHelp.vue +0 -90
  133. package/src/documentation/views/components/CmdSlideshowHelp.vue +0 -60
  134. package/src/documentation/views/components/CmdSwitchLanguageHelp.vue +0 -64
  135. package/src/documentation/views/components/CmdSystemMessageHelp.vue +0 -86
  136. package/src/documentation/views/components/CmdTableHelp.vue +0 -84
  137. package/src/documentation/views/components/CmdTabsHelp.vue +0 -52
  138. package/src/documentation/views/components/CmdThumbnailScrollerHelp.vue +0 -50
  139. package/src/documentation/views/components/CmdTooltipHelp.vue +0 -59
  140. package/src/documentation/views/components/CmdUploadFormHelp.vue +0 -59
  141. package/src/documentation/views/components/CmdWidthLimitationWrapperHelp.vue +0 -46
@@ -1,110 +0,0 @@
1
- [
2
- {
3
- "name": "android",
4
- "iconClass": "icon-android"
5
- },
6
- {
7
- "name": "apple",
8
- "iconClass": "icon-apple"
9
- },
10
- {
11
- "name": "chrome",
12
- "iconClass": "icon-chrome"
13
- },
14
- {
15
- "name": "css3",
16
- "iconClass": "icon-css3"
17
- },
18
- {
19
- "name": "edge",
20
- "iconClass": "icon-edge"
21
- },
22
- {
23
- "name": "facebook",
24
- "iconClass": "icon-facebook"
25
- },
26
- {
27
- "name": "facebook-square",
28
- "iconClass": "icon-facebook-square"
29
- },
30
- {
31
- "name": "firefox",
32
- "iconClass": "icon-firefox"
33
- },
34
- {
35
- "name": "flickr",
36
- "iconClass": "icon-flickr"
37
- },
38
- {
39
- "name": "google-analytics",
40
- "iconClass": "icon-google-analytics"
41
- },
42
- {
43
- "name": "html5",
44
- "iconClass": "icon-html5"
45
- },
46
- {
47
- "name": "linkedin",
48
- "iconClass": "icon-linkedin"
49
- },
50
- {
51
- "name": "linkedin-square",
52
- "iconClass": "icon-linkedin-square"
53
- },
54
- {
55
- "name": "opera",
56
- "iconClass": "icon-opera"
57
- },
58
- {
59
- "name": "safari",
60
- "iconClass": "icon-safari"
61
- },
62
- {
63
- "name": "skype",
64
- "iconClass": "icon-skype"
65
- },
66
- {
67
- "name": "social-networks",
68
- "iconClass": "icon-social-networks"
69
- },
70
- {
71
- "name": "tumblr",
72
- "iconClass": "icon-tumblr"
73
- },
74
- {
75
- "name": "tumblr-square",
76
- "iconClass": "icon-tumblr-square"
77
- },
78
- {
79
- "name": "linux",
80
- "iconClass": "icon-linux"
81
- },
82
- {
83
- "name": "twitch",
84
- "iconClass": "icon-twitch"
85
- },
86
- {
87
- "name": "twitter",
88
- "iconClass": "icon-twitter"
89
- },
90
- {
91
- "name": "twitter-square",
92
- "iconClass": "icon-twitter-square"
93
- },
94
- {
95
- "name": "windows8",
96
- "iconClass": "icon-windows8"
97
- },
98
- {
99
- "name": "xing",
100
- "iconClass": "icon-xing"
101
- },
102
- {
103
- "name": "xing-square",
104
- "iconClass": "icon-xing-square"
105
- },
106
- {
107
- "name": "youtube",
108
- "iconClass": "icon-youtube"
109
- }
110
- ]
@@ -1,46 +0,0 @@
1
- import {ref} from "vue"
2
- import router from "../router"
3
-
4
- const tabs = [{name: 'Component'}, {name: 'Properties'}]
5
- const tabProps = {
6
- tabs,
7
- stretchTabs: true,
8
- useSlot: true,
9
- activeTab: ref(0)
10
- }
11
- const tabHandlers = {
12
- activeTab: setActiveTab
13
- }
14
-
15
- function getActiveTab(tabName) {
16
- const tabIndex = tabs.map(tab => tab.name.toLowerCase()).indexOf(tabName?.toLowerCase())
17
- if (tabIndex > -1) {
18
- return tabIndex
19
- }
20
- return 0
21
- }
22
-
23
- // set url-parameter if tab is clicked
24
- function setActiveTab(index) {
25
- const tab = tabs[index]
26
- if (tab) {
27
- router.push({
28
- name: router.currentRoute.name,
29
- params: {
30
- tab: tab.name.toLowerCase()
31
- }
32
- })
33
- }
34
- }
35
-
36
- function routeHandler(to) {
37
- tabProps.activeTab = getActiveTab(to.params.tab)
38
- }
39
-
40
- export {
41
- tabs,
42
- tabProps,
43
- tabHandlers,
44
- setActiveTab,
45
- routeHandler
46
- }
@@ -1,237 +0,0 @@
1
- <script setup>
2
- // import functions
3
- import {defineProps, defineAsyncComponent, computed, ref} from "vue"
4
- import {useRoute, useRouter} from "vue-router"
5
- import {isFrameMode} from "../../utils/common"
6
- import {useScrollspy} from "../../composables/scrollspy"
7
-
8
- // import components
9
- import CmdListOfLinks from "../../components/CmdListOfLinks"
10
-
11
- // import data
12
- import componentDescription from "../data/componentsDescription"
13
-
14
- const props = defineProps({
15
- componentName: {
16
- type: String,
17
- required: true
18
- },
19
- previousComponentName: {
20
- type: String,
21
- required: true
22
- },
23
- nextComponentName: {
24
- type: String,
25
- required: true
26
- },
27
- activeTab: {
28
- type: Number,
29
- default: 0
30
- }
31
- })
32
- const componentNameHelp = computed(() => props.componentName + "Help")
33
- const idMainContainer = computed(() => {
34
- if(isFrameMode()) {
35
- return props.componentName.replace(/([a-z])([A-Z])/g, "$1-$2").toLowerCase()
36
- }
37
- return null
38
- })
39
- const HelpView = computed(
40
- () => componentNameHelp.value
41
- ? defineAsyncComponent(() => import("./components/" + componentNameHelp.value))
42
- : {render: () => ""}
43
- )
44
- const iconToggleSidebar = computed(() => showPageAnchors.value ? "icon-double-arrow-right" : "icon-double-arrow-left")
45
-
46
- const route = useRoute()
47
- const router = useRouter()
48
- const scrollSpy = useScrollspy(() => examples.value.querySelectorAll(".example-section"))
49
- const examples = ref(null)
50
- const listOfLinks = ref([])
51
- const showPageAnchors = ref(true)
52
-
53
- function getAnchorId(sectionSelector) {
54
- return "#" + sectionSelector.querySelector(".pre-headline-text")
55
- ?.innerText
56
- .replace(/[# ]/g, "")
57
- .toLowerCase()
58
- }
59
-
60
- function getHeadlineText(sectionSelector) {
61
- if (sectionSelector.classList.contains("has-pre-headline-text")) {
62
- return sectionSelector.querySelector(".pre-headline-text + *")?.innerText
63
- }
64
- return sectionSelector.querySelector("*:first-child")?.innerText
65
- }
66
-
67
- function onViewResolve() {
68
- scrollSpy.reset()
69
- listOfLinks.value = []
70
- const sectionSelector = examples.value.querySelectorAll(".example-section > .cmd-custom-headline")
71
- for (let i = 0 ; i < sectionSelector.length; i++) {
72
- listOfLinks.value.push({
73
- text: getHeadlineText(sectionSelector.item(i)),
74
- path: getAnchorId(sectionSelector.item(i))
75
- })
76
- }
77
- }
78
- </script>
79
-
80
- <template>
81
- <main :id="idMainContainer">
82
- <aside v-if="listOfLinks.length > 1" class="flex-container no-gap" id="page-anchors">
83
- <a href="#" @click.prevent="showPageAnchors = !showPageAnchors" title="Toggle Iterations-Sidebar">
84
- <span :class="iconToggleSidebar"></span>
85
- </a>
86
- <transition v-show="showPageAnchors" name="slide-right">
87
- <CmdListOfLinks
88
- :cmdCustomHeadline="{headlineText: 'Iterations', headlineLevel: 6}"
89
- :sectionAnchors="true"
90
- :activeSection="scrollSpy.activeItem"
91
- :links="listOfLinks"
92
- />
93
- </transition>
94
- </aside>
95
- <template v-if="!isFrameMode()">
96
- <a href="#" @click.prevent="router.go(-1)">
97
- <span class="icon-single-arrow-left"></span>
98
- <span>Back to previous component</span>
99
- </a>
100
- <h1>{{ componentDescription[props.componentName]?.headline }}</h1>
101
- <p>{{ componentDescription[props.componentName]?.shorttext }}</p>
102
- </template>
103
- <div class="flex-container vertical">
104
- <section id="tabs-wrapper" ref="examples">
105
- <div v-show="isFrameMode()" id="frame-component-target"></div>
106
- <Suspense @resolve="onViewResolve">
107
- <HelpView />
108
- </Suspense>
109
- </section>
110
- <template v-if="!isFrameMode()">
111
- <section class="flex-container" id="component-link-wrapper">
112
- <router-link :to="{name: previousComponentName, params: {tab: route.params.tab}}">
113
- <span class="icon-single-arrow-left"></span>
114
- <span>{{ previousComponentName }}</span>
115
- </router-link>
116
- <router-link :to="{name: nextComponentName, params: {tab: route.params.tab}}">
117
- <span>{{ nextComponentName }}</span>
118
- <span class="icon-single-arrow-right"></span>
119
- </router-link>
120
- </section>
121
- </template>
122
- </div>
123
- <footer></footer>
124
- </main>
125
- </template>
126
-
127
- <style lang="scss">
128
- main {
129
- #page-anchors {
130
- position: fixed;
131
- right: 0;
132
- z-index: 100;
133
- background: var(--pure-white);
134
- border: var(--default-border);
135
- border-right: 0;
136
- top: var(--default-margin);
137
- box-shadow: -.2rem .2rem .4rem #999;
138
-
139
- > a {
140
- flex: none;
141
- display: flex;
142
- align-items: center;
143
- text-decoration: none;
144
- padding: .2rem;
145
- border-right: var(--default-border);
146
-
147
- span[class*="icon"] {
148
- font-size: 1rem;
149
- }
150
-
151
- &:hover, &:active, &:focus {
152
- background: var(--primary-color);
153
-
154
- span[class*="icon"] {
155
- color: var(--pure-white);
156
- }
157
- }
158
- }
159
-
160
- .cmd-custom-headline {
161
- margin: 0;
162
- padding: var(--default-padding);
163
- }
164
-
165
- ul {
166
- gap: 0;
167
- margin: 0;
168
-
169
- li {
170
- transition: var(--default-transition);
171
-
172
- a {
173
- display: block;
174
- padding: calc(var(--default-padding) / 2);
175
- transition: var(--default-transition);
176
- font-size: 1.2rem;
177
- }
178
-
179
- &.active {
180
- background: var(--primary-color);
181
- transition: var(--default-transition);
182
- color: var(--pure-white);
183
-
184
- a {
185
- span, span[class*="icon"] {
186
- color: var(--pure-white);
187
- transition: var(--default-transition);
188
- }
189
- }
190
-
191
- }
192
- }
193
- }
194
- }
195
- }
196
-
197
- #tabs-wrapper {
198
- > .cmd-tabs {
199
- > ul > li {
200
- border: 0;
201
- border-bottom: var(--default-border);
202
- font-weight: bold;
203
-
204
- &:first-child {
205
- border-right: var(--default-border);
206
- }
207
-
208
- &.active {
209
- top: 0;
210
- }
211
- }
212
-
213
- > div {
214
- border: 0;
215
- border-bottom: var(--default-border);
216
- padding: calc(var(--default-padding) * 2)
217
- }
218
- }
219
- }
220
-
221
- #component-link-wrapper {
222
- margin-top: auto;
223
- justify-content: space-between;
224
-
225
- a {
226
- flex: none;
227
- display: flex;
228
- align-items: center;
229
-
230
- span[class*="icon"] {
231
- font-size: 1.2rem;
232
- text-decoration: none;
233
- }
234
- }
235
- }
236
- </style>
237
-
@@ -1,13 +0,0 @@
1
- <template>
2
- HOME!!!
3
- </template>
4
-
5
- <script>
6
- export default {
7
- name: "HelpHome"
8
- }
9
- </script>
10
-
11
- <style scoped>
12
-
13
- </style>
@@ -1,80 +0,0 @@
1
- <template>
2
- <main>
3
- <h1>Icon Fonts</h1>
4
- <CmdFormElement
5
- element="input"
6
- type="search"
7
- id="component-search"
8
- labelText="Search icons"
9
- placeholder="Search icons"
10
- :showLabel="false"
11
- :showSearchButton="false"
12
- fieldIconClass="icon-search"
13
- v-model="filterIcons"
14
- />
15
- <h2>Framework Icons</h2>
16
- <div class="grid-container-create-columns">
17
- <div v-for="(icon, index) in filteredFrameworkIcons" :key="index">
18
- <span :class="icon.iconClass"></span>
19
- <span>{{ icon.name }}</span>
20
- </div>
21
- </div>
22
- <hr/>
23
- <h2>Logos Icons</h2>
24
- <div class="grid-container-create-columns">
25
- <div v-for="(icon, index) in filteredLogosIcons" :key="index">
26
- <span :class="icon.iconClass"></span>
27
- <span>{{ icon.name }}</span>
28
- </div>
29
- </div>
30
- </main>
31
- </template>
32
-
33
- <script>
34
- import CmdFormElement from "../../components/CmdFormElement"
35
-
36
- import frameworkIcons from "../generated/frameworkIcons"
37
- import logosIcons from "../generated/logosIcons"
38
-
39
- export default {
40
- name: "IconFont",
41
- components: {CmdFormElement},
42
- data() {
43
- return {
44
- filterIcons: "",
45
- sortedFrameworkIcons: this.sortIcons(frameworkIcons),
46
- sortedLogosIcons: this.sortIcons(logosIcons)
47
- }
48
- },
49
- computed: {
50
- filteredFrameworkIcons() {
51
- return this.filteredIcons(this.sortedFrameworkIcons)
52
- },
53
- filteredLogosIcons() {
54
- return this.filteredIcons(this.sortedLogosIcons)
55
- }
56
- },
57
- methods: {
58
- filteredIcons(iconFont) {
59
- const filterTerm = this.filterIcons.trim().toLowerCase()
60
-
61
- if (filterTerm) {
62
- return iconFont.filter((item) => {
63
- return item.name.toLowerCase().includes(filterTerm)
64
- })
65
- }
66
- return iconFont
67
- },
68
- sortIcons(icons) {
69
- return icons.sort((a, b) => {
70
- // compare icon-names to sort alphabetical
71
- return a.name.localeCompare(b.name)
72
- })
73
- }
74
- }
75
- }
76
- </script>
77
-
78
- <style scoped>
79
-
80
- </style>
@@ -1,78 +0,0 @@
1
- <script setup>
2
- // import functions
3
- import {tabProps, tabHandlers} from "../../tabs"
4
- import {isFrameMode} from "../../../utils/common"
5
-
6
- // import components
7
- import CmdAccordion from "../../../components/CmdAccordion"
8
- import ComponentProperties from "../../components/ComponentProperties"
9
- import ViewCodeData from "../../components/ViewCodeData"
10
- import CmdCustomHeadline from "../../../components/CmdCustomHeadline"
11
- import CmdTabs from "../../../components/CmdTabs"
12
-
13
- // import example-data
14
- import CmdCode from "../../data/CmdAccordionHelp"
15
- import accordion from '../../../assets/data/accordion.json'
16
- import propertyDescriptions from "../../generated/CmdAccordionPropertyDescriptions.json"
17
-
18
- const propertyStructures = {
19
- accordionData: [
20
- {
21
- "headline": "<string>",
22
- "icon": {
23
- "iconClass": "<string>",
24
- "tooltip": "<string>"
25
- },
26
- "content": "<string>",
27
- "status": "<boolean>"
28
- }
29
- ],
30
- iconClosed: {
31
- "iconClass": "<string>",
32
- "tooltip": "<string>"
33
- },
34
- iconOpen: {
35
- "iconClass": "<string>",
36
- "tooltip": "<string>"
37
- }
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
- <CmdCustomHeadline preHeadlineText="Example #1" headlineText="Content given by slot" :headlineLevel="3" />
46
- <ViewCodeData :isFirstComponent="true" :code="CmdCode[0]">
47
- <teleport to="#frame-component-target" :disabled="!isFrameMode()">
48
- <CmdAccordion :accordionData="2" toggleMode="multiple">
49
- <template v-slot:accordionHeadline0>
50
- <h4>Accordion 1</h4>
51
- </template>
52
- <template v-slot:accordionContent0>
53
- <p>
54
- Content for accordion 1
55
- </p>
56
- </template>
57
- <template v-slot:accordionHeadline1>
58
- <h4>Accordion 2</h4>
59
- </template>
60
- <template v-slot:accordionContent1>
61
- <p>
62
- Content for accordion 2
63
- </p>
64
- </template>
65
- </CmdAccordion>
66
- </teleport>
67
- </ViewCodeData>
68
- <hr />
69
- <CmdCustomHeadline preHeadlineText="Example #2" headlineText="Content given by json-file" :headlineLevel="3" />
70
- <ViewCodeData :code="CmdCode[1]" :data="accordion.accordionData1">
71
- <CmdAccordion :accordionData="accordion.accordionData1" />
72
- </ViewCodeData>
73
- </template>
74
- <template v-slot:tab-content-1>
75
- <ComponentProperties :properties="CmdAccordion.props" :propertyDescriptions="propertyDescriptions" :propertyStructures="propertyStructures"/>
76
- </template>
77
- </CmdTabs>
78
- </template>
@@ -1,65 +0,0 @@
1
- <script setup>
2
- // import functions
3
- import {tabProps, tabHandlers} from "../../tabs"
4
- import {isFrameMode} from "../../../utils/common"
5
-
6
- // import components
7
- import CmdAddressData from "../../../components/CmdAddressData"
8
- import ComponentProperties from "../../components/ComponentProperties"
9
- import ViewCodeData from "../../components/ViewCodeData"
10
- import CmdTabs from "../../../components/CmdTabs"
11
- import ExampleSectionWrapper from "../../components/ExampleSectionWrapper"
12
-
13
- // import example-data
14
- import CmdCode from "../../data/CmdAddressDataHelp"
15
- import addressData from '../../../assets/data/address-data.json'
16
- import propertyDescriptions from "../../generated/CmdAddressDataPropertyDescriptions.json"
17
-
18
- const propertyStructures = {
19
- addressData: {
20
- "company": "<string>",
21
- "address": {
22
- "streetNo": "<string>",
23
- "zip": "<number>",
24
- "city": "<string>"
25
- },
26
- "telephone": "<string>",
27
- "mobilephone": "<string>",
28
- "fax": "<string>",
29
- "email": "<string>"
30
- }
31
- }
32
- </script>
33
-
34
- <template>
35
- <CmdTabs v-show="!isFrameMode()" v-bind="tabProps" :active-tab="tabProps.activeTab" v-on="tabHandlers">
36
- <template v-slot:tab-content-0>
37
- <h2>Component</h2>
38
- <ExampleSectionWrapper componentName="CmdAddressData" headlineText="List with labels">
39
- <ViewCodeData :isFirstComponent="true" :code="CmdCode[0]" :data="addressData">
40
- <teleport to="#frame-component-target" :disabled="!isFrameMode()">
41
- <CmdAddressData
42
- :addressData="addressData"
43
- :linkGoogleMaps="true"
44
- :cmdCustomHeadline="{ headlineText: 'Address', headlineLevel: 5}"
45
- />
46
- </teleport>
47
- </ViewCodeData>
48
- </ExampleSectionWrapper>
49
- <hr />
50
- <ExampleSectionWrapper componentName="CmdAddressData" headlineText="List without labels">
51
- <ViewCodeData :code="CmdCode[1]" :data="addressData">
52
- <CmdAddressData
53
- :addressData="addressData"
54
- :showLabels="false"
55
- :linkGoogleMaps="false"
56
- :cmdCustomHeadline="{ headlineText: 'Address', headlineLevel: 5}"
57
- />
58
- </ViewCodeData>
59
- </ExampleSectionWrapper>
60
- </template>
61
- <template v-slot:tab-content-1>
62
- <ComponentProperties :properties="CmdAddressData.props" :propertyDescriptions="propertyDescriptions" :propertyStructures="propertyStructures" />
63
- </template>
64
- </CmdTabs>
65
- </template>
@@ -1,62 +0,0 @@
1
- <script setup>
2
- // import functions
3
- import {ref, onMounted} from "vue"
4
- import {tabProps, tabHandlers} from "../../tabs"
5
- import {isFrameMode} from "../../../utils/common"
6
-
7
- // import components
8
- import CmdBackToTopButton from "../../../components/CmdBackToTopButton"
9
- import ComponentProperties from "../../components/ComponentProperties"
10
- import CmdTabs from "../../../components/CmdTabs"
11
- import ViewCodeData from "../../components/ViewCodeData"
12
- import ExampleSectionWrapper from "../../components/ExampleSectionWrapper"
13
-
14
- // import example-data
15
- import CmdCode from "../../data/CmdBackToTopButtonHelp"
16
- import propertyDescriptions from "../../generated/CmdBackToTopButtonPropertyDescriptions.json"
17
-
18
- const propertyStructures = {
19
- iconBackToTop: {
20
- "iconBackToTop": {
21
- "iconClass": "<string>",
22
- "tooltip": "<number>"
23
- }
24
- }
25
- }
26
-
27
- const backToTop = ref(null)
28
- onMounted(() => {
29
- backToTop.value.windowScrollY = 1
30
- backToTop.value.windowInnerHeight = 0
31
- backToTop.value.bodyScrollHeight = 1
32
- window.removeEventListener('resize', backToTop.value.onViewportChange);
33
- window.removeEventListener('scroll', backToTop.value.onViewportChange);
34
- })
35
- </script>
36
-
37
- <template>
38
- <CmdTabs v-show="!isFrameMode()" v-bind="tabProps" :active-tab="tabProps.activeTab" v-on="tabHandlers">
39
- <template v-slot:tab-content-0>
40
- <h2>Component</h2>
41
- <ExampleSectionWrapper componentName="CmdABackToTopButton" headlineText="Back-to-top-button">
42
- <ViewCodeData :isFirstComponent="true" :code="CmdCode[0]">
43
- <teleport to="#frame-component-target" :disabled="!isFrameMode()">
44
- <CmdBackToTopButton id="view-component" ref="backToTop" />
45
- </teleport>
46
- </ViewCodeData>
47
- </ExampleSectionWrapper>
48
- </template>
49
- <template v-slot:tab-content-1>
50
- <ComponentProperties :properties="CmdBackToTopButton.props" :propertyDescriptions="propertyDescriptions" :propertyStructures="propertyStructures" />
51
- </template>
52
- </CmdTabs>
53
- </template>
54
-
55
- <style lang="scss">
56
- #view-component {
57
- position: relative;
58
- bottom: auto;
59
- left: 0;
60
- right: auto;
61
- }
62
- </style>