@tak-ps/vue-tabler 1.0.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 ADDED
@@ -0,0 +1,16 @@
1
+ # CHANGELOG
2
+
3
+ ## Emoji Cheatsheet
4
+ - :pencil2: doc updates
5
+ - :bug: when fixing a bug
6
+ - :rocket: when making general improvements
7
+ - :white_check_mark: when adding tests
8
+ - :arrow_up: when upgrading dependencies
9
+ - :tada: when adding new features
10
+
11
+ ## Version History
12
+
13
+ ### v1.0.0
14
+
15
+ - Initial Release
16
+ - `Select` Component
package/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2022 Public Safety TAK
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
package/README.md ADDED
@@ -0,0 +1,2 @@
1
+ # vue-tabler
2
+ Tabler UI components for Vue3
@@ -0,0 +1,47 @@
1
+ <template>
2
+ <div class="dropdown">
3
+ <a class="dropdown-toggle text-muted" href="#" data-bs-toggle="dropdown" aria-haspopup="true" aria-expanded="false" v-text='current'></a>
4
+ <div class="dropdown-menu dropdown-menu-end">
5
+ <a
6
+ :key='value'
7
+ v-for='value in values'
8
+ @click='current = value'
9
+ class="dropdown-item"
10
+ :class='{
11
+ active: value === current
12
+ }'
13
+ href="#"
14
+ v-text='value'
15
+ ></a>
16
+ </div>
17
+ </div>
18
+ </template>
19
+
20
+ <script>
21
+ export default {
22
+ name: 'TablerSelect',
23
+ props: {
24
+ default: String,
25
+ values: Array
26
+ },
27
+ data: function() {
28
+ return {
29
+ current: ''
30
+ }
31
+ },
32
+ watch: {
33
+ current: function() {
34
+ this.$emit('select', this.current);
35
+ }
36
+ },
37
+ mounted: function() {
38
+ if (!this.default) {
39
+ this.current = this.values[0];
40
+ } else {
41
+ this.current = this.default;
42
+ }
43
+ },
44
+ methods: {
45
+ },
46
+ }
47
+ </script>
package/lib.js ADDED
@@ -0,0 +1,5 @@
1
+ import Select from './components/Select.vue'
2
+
3
+ export {
4
+ Select
5
+ }
package/package.json ADDED
@@ -0,0 +1,21 @@
1
+ {
2
+ "name": "@tak-ps/vue-tabler",
3
+ "type": "module",
4
+ "version": "1.0.0",
5
+ "main": "lib.js",
6
+ "description": "Tabler UI components for Vue3",
7
+ "main": "index.js",
8
+ "scripts": {
9
+ "test": "echo \"Error: no test specified\" && exit 1"
10
+ },
11
+ "repository": {
12
+ "type": "git",
13
+ "url": "git+https://github.com/tak-ps/vue-tabler.git"
14
+ },
15
+ "author": "",
16
+ "license": "ISC",
17
+ "bugs": {
18
+ "url": "https://github.com/tak-ps/vue-tabler/issues"
19
+ },
20
+ "homepage": "https://github.com/tak-ps/vue-tabler#readme"
21
+ }