comand-component-library 3.1.50 → 3.1.53
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/comand-component-library.css +1 -1
- package/dist/comand-component-library.umd.min.js +1 -1
- package/package.json +2 -2
- package/src/components/CmdFakeSelect.vue +2 -2
- package/src/components/CmdFormElement.vue +13 -11
- package/src/components/CmdMainNavigation.vue +3 -3
- package/src/composables/sequence.js +25 -0
- package/src/index.js +6 -1
package/package.json
CHANGED
@@ -12,9 +12,9 @@
|
|
12
12
|
:aria-required="$attrs.required !== undefined"
|
13
13
|
ref="fakeselect"
|
14
14
|
>
|
15
|
-
<span>
|
15
|
+
<span v-if="showLabel">
|
16
16
|
<!-- begin label -->
|
17
|
-
<span
|
17
|
+
<span>
|
18
18
|
{{ labelText }}<sup v-if="$attrs.required !== undefined">*</sup>
|
19
19
|
</span>
|
20
20
|
<!-- end label -->
|
@@ -672,21 +672,23 @@ export default {
|
|
672
672
|
|
673
673
|
.search-field-wrapper {
|
674
674
|
margin: 0;
|
675
|
+
|
676
|
+
a {
|
677
|
+
position: absolute;
|
678
|
+
top: 50%;
|
679
|
+
right: 1rem;
|
680
|
+
transform: translateY(-50%);
|
681
|
+
z-index: 100;
|
682
|
+
|
683
|
+
& + input {
|
684
|
+
padding-right: calc(var(--default-padding) * 3);
|
685
|
+
}
|
686
|
+
}
|
675
687
|
}
|
676
688
|
|
677
689
|
.place-inside {
|
678
690
|
+ .search-field-wrapper {
|
679
|
-
|
680
|
-
position: absolute;
|
681
|
-
top: 50%;
|
682
|
-
right: 1rem;
|
683
|
-
transform: translateY(-50%);
|
684
|
-
z-index: 100;
|
685
|
-
|
686
|
-
& + input {
|
687
|
-
padding-right: calc(var(--default-padding) * 3);
|
688
|
-
}
|
689
|
-
}
|
691
|
+
|
690
692
|
|
691
693
|
input {
|
692
694
|
padding-left: calc(var(--default-padding) * 3);
|
@@ -204,14 +204,14 @@ export default {
|
|
204
204
|
*/
|
205
205
|
subentriesIconClass: {
|
206
206
|
type: String,
|
207
|
-
default: "icon-single-arrow-
|
207
|
+
default: "icon-single-arrow-down"
|
208
208
|
},
|
209
209
|
/**
|
210
210
|
* icon to show if a sub-entry has further sub-entries
|
211
211
|
*/
|
212
212
|
subSubentriesIconClass: {
|
213
213
|
type: String,
|
214
|
-
default: "icon-single-arrow-
|
214
|
+
default: "icon-single-arrow-right"
|
215
215
|
},
|
216
216
|
/**
|
217
217
|
* toggle if overlay over content should be shown if off-canvas is open
|
@@ -342,7 +342,7 @@ export default {
|
|
342
342
|
nav {
|
343
343
|
--nav-width: 30%;
|
344
344
|
|
345
|
-
position:
|
345
|
+
position: fixed;
|
346
346
|
left: -100%;
|
347
347
|
width: var(--nav-width);
|
348
348
|
height: 100%;
|
@@ -0,0 +1,25 @@
|
|
1
|
+
import {onBeforeUpdate} from "vue"
|
2
|
+
|
3
|
+
export function useSequence() {
|
4
|
+
const sequences = {}
|
5
|
+
|
6
|
+
onBeforeUpdate(resetSequence)
|
7
|
+
|
8
|
+
function nextSequenceValue(sequenceName = "defaultSequence") {
|
9
|
+
const currentValue = sequences[sequenceName] || 0 // get currentValue for specific sequence (else set value to 0)
|
10
|
+
sequences[sequenceName] = currentValue + 1 // raise currentValue by 1
|
11
|
+
return sequences[sequenceName]
|
12
|
+
}
|
13
|
+
|
14
|
+
function currentSequenceValue(sequenceName = "defaultSequence") {
|
15
|
+
return sequences[sequenceName] || 0 // get currentValue for specific sequence (else set value to 0)
|
16
|
+
}
|
17
|
+
|
18
|
+
function resetSequence(sequenceName = "defaultSequence") {
|
19
|
+
if (sequences[sequenceName]) {
|
20
|
+
sequences[sequenceName] = 0
|
21
|
+
}
|
22
|
+
}
|
23
|
+
|
24
|
+
return {nextSequenceValue, currentSequenceValue, resetSequence}
|
25
|
+
}
|
package/src/index.js
CHANGED
@@ -1,5 +1,6 @@
|
|
1
1
|
import "clickout-event"
|
2
2
|
|
3
|
+
// export components
|
3
4
|
export { default as CmdAccordion } from '@/components/CmdAccordion'
|
4
5
|
export { default as CmdAddressData } from '@/components/CmdAddressData'
|
5
6
|
export { default as CmdBackToTopButton } from '@/components/CmdBackToTopButton'
|
@@ -42,5 +43,9 @@ export { default as CmdTooltip } from '@/components/CmdTooltip'
|
|
42
43
|
export { default as CmdUploadForm } from '@/components/CmdUploadForm'
|
43
44
|
export { default as CmdWidthLimitationWrapper } from '@/components/CmdWidthLimitationWrapper'
|
44
45
|
|
46
|
+
// export directives
|
45
47
|
export { default as DirFocus } from '@/directives/focus'
|
46
|
-
export { default as DirTelephone } from '@/directives/telephone'
|
48
|
+
export { default as DirTelephone } from '@/directives/telephone'
|
49
|
+
|
50
|
+
// export composables
|
51
|
+
export { useSequence } from '@/composables/sequence'
|