@tak-ps/vue-tabler 3.7.1 → 3.8.0
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/CHANGELOG.md +4 -0
- package/components/Dropdown.vue +32 -0
- package/components/Enum.vue +1 -1
- package/components/EpochRange.vue +2 -0
- package/components/Help.vue +0 -4
- package/components/Toggle.vue +1 -1
- package/lib.js +1 -0
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<div class="dropdown">
|
|
3
|
+
<div type="button" ref='button' :id='id' data-bs-toggle="dropdown" aria-expanded="false" class='border rounded' style='height: 36px;'>
|
|
4
|
+
<slot>
|
|
5
|
+
<SettingsIcon style='cursor-pointer'/>
|
|
6
|
+
</slot>
|
|
7
|
+
</div>
|
|
8
|
+
<ul class="dropdown-menu" :aria-labelledby='id'>
|
|
9
|
+
<slot name='dropdown'>
|
|
10
|
+
Dropdown Content
|
|
11
|
+
</slot>
|
|
12
|
+
</ul>
|
|
13
|
+
</div>
|
|
14
|
+
</template>
|
|
15
|
+
|
|
16
|
+
<script>
|
|
17
|
+
import {
|
|
18
|
+
SettingsIcon
|
|
19
|
+
} from 'vue-tabler-icon';
|
|
20
|
+
|
|
21
|
+
export default {
|
|
22
|
+
name: 'TablerDropdown',
|
|
23
|
+
data: function() {
|
|
24
|
+
return {
|
|
25
|
+
id: 'tabler-dropdown-' + Math.random().toString(36).substr(2, 9) + '-' + Date.now().toString(36)
|
|
26
|
+
}
|
|
27
|
+
},
|
|
28
|
+
components: {
|
|
29
|
+
SettingsIcon
|
|
30
|
+
}
|
|
31
|
+
}
|
|
32
|
+
</script>
|
package/components/Enum.vue
CHANGED
|
@@ -16,7 +16,7 @@
|
|
|
16
16
|
</div>
|
|
17
17
|
<div class='col-12'>
|
|
18
18
|
<select v-model='current' :disabled='disabled' class='form-select'>
|
|
19
|
-
<option v-for='option in options' :value="option" v-text='option'></option>
|
|
19
|
+
<option :key='option' v-for='option in options' :value="option" v-text='option'></option>
|
|
20
20
|
</select>
|
|
21
21
|
</div>
|
|
22
22
|
</div>
|
package/components/Help.vue
CHANGED
|
@@ -20,9 +20,6 @@
|
|
|
20
20
|
|
|
21
21
|
<script>
|
|
22
22
|
import Modal from './Modal.vue';
|
|
23
|
-
import {
|
|
24
|
-
InfoSquareIcon
|
|
25
|
-
} from 'vue-tabler-icons'
|
|
26
23
|
|
|
27
24
|
export default {
|
|
28
25
|
name: 'TablerHelp',
|
|
@@ -44,7 +41,6 @@ export default {
|
|
|
44
41
|
},
|
|
45
42
|
components: {
|
|
46
43
|
Modal,
|
|
47
|
-
InfoSquareIcon
|
|
48
44
|
}
|
|
49
45
|
}
|
|
50
46
|
</script>
|
package/components/Toggle.vue
CHANGED
package/lib.js
CHANGED