comand-component-library 3.1.51 → 3.1.52

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "comand-component-library",
3
- "version": "3.1.51",
3
+ "version": "3.1.52",
4
4
  "private": false,
5
5
  "scripts": {
6
6
  "serve": "vue-cli-service serve",
@@ -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
- a {
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-right"
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-down"
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: absolute;
345
+ position: fixed;
346
346
  left: -100%;
347
347
  width: var(--nav-width);
348
348
  height: 100%;
@@ -0,0 +1,21 @@
1
+ export function useSequence() {
2
+ const sequences = {}
3
+
4
+ function nextSequenceValue(sequenceName = "defaultSequence") {
5
+ const currentValue = sequences[sequenceName] || 0 // get currentValue for specific sequence (else set value to 0)
6
+ sequences[sequenceName] = currentValue + 1 // raise currentValue by 1
7
+ return sequences[sequenceName]
8
+ }
9
+
10
+ function currentSequenceValue(sequenceName = "defaultSequence") {
11
+ return sequences[sequenceName] || 0 // get currentValue for specific sequence (else set value to 0)
12
+ }
13
+
14
+ function resetSequence(sequenceName = "defaultSequence") {
15
+ if (sequences[sequenceName]) {
16
+ sequences[sequenceName] = 0
17
+ }
18
+ }
19
+
20
+ return {nextSequenceValue, currentSequenceValue, resetSequence}
21
+ }
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'