@tak-ps/vue-tabler 2.10.0 → 2.12.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 +8 -0
- package/components/Bytes.vue +1 -1
- package/components/Delete.vue +49 -0
- package/components/Epoch.vue +1 -1
- package/components/Err.vue +13 -13
- package/components/Loading.vue +1 -1
- package/components/Markdown.vue +23 -0
- package/components/Modal.vue +1 -1
- package/lib.js +15 -29
- package/package.json +3 -2
package/CHANGELOG.md
CHANGED
package/components/Bytes.vue
CHANGED
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<div>
|
|
3
|
+
<div @click='modal = true' class="btn btn-outline-danger">
|
|
4
|
+
<span v-text='label'/>
|
|
5
|
+
</div>
|
|
6
|
+
|
|
7
|
+
<TablerModal v-if='modal'>
|
|
8
|
+
<button type="button" class="btn-close" @click='modal = false' aria-label="Close"></button>
|
|
9
|
+
<div class="modal-status bg-red"></div>
|
|
10
|
+
<div class="modal-header text-center py-4">
|
|
11
|
+
Deletion Confirmation
|
|
12
|
+
</div>
|
|
13
|
+
<div class="modal-body text-center py-4">
|
|
14
|
+
Are you sure you wish to perform this deletion?
|
|
15
|
+
</div>
|
|
16
|
+
<div class="modal-footer">
|
|
17
|
+
<div @click='$emit("delete")' class="btn btn-danger">
|
|
18
|
+
<TrashIcon/><span class='mx-2' v-text='label'/>
|
|
19
|
+
</div>
|
|
20
|
+
</div>
|
|
21
|
+
</TablerModal>
|
|
22
|
+
</div>
|
|
23
|
+
</template>
|
|
24
|
+
|
|
25
|
+
<script>
|
|
26
|
+
import TablerModal from './Modal.vue';
|
|
27
|
+
import {
|
|
28
|
+
TrashIcon
|
|
29
|
+
} from 'vue-tabler-icons';
|
|
30
|
+
|
|
31
|
+
export default {
|
|
32
|
+
name: 'TablerDelete',
|
|
33
|
+
props: {
|
|
34
|
+
label: {
|
|
35
|
+
type: String,
|
|
36
|
+
default: 'Delete'
|
|
37
|
+
}
|
|
38
|
+
},
|
|
39
|
+
data: function() {
|
|
40
|
+
return {
|
|
41
|
+
modal: false
|
|
42
|
+
}
|
|
43
|
+
},
|
|
44
|
+
components: {
|
|
45
|
+
TrashIcon,
|
|
46
|
+
TablerModal
|
|
47
|
+
}
|
|
48
|
+
}
|
|
49
|
+
</script>
|
package/components/Epoch.vue
CHANGED
package/components/Err.vue
CHANGED
|
@@ -1,19 +1,19 @@
|
|
|
1
1
|
<template>
|
|
2
2
|
<Modal>
|
|
3
3
|
<button type="button" class="btn-close" @click='close' aria-label="Close"></button>
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
</div>
|
|
4
|
+
<div class="modal-status bg-yellow"></div>
|
|
5
|
+
<div class="modal-body text-center py-4">
|
|
6
|
+
<AlertCircleIcon/>
|
|
7
|
+
<h3>Website Error</h3>
|
|
8
|
+
<div class="text-muted" v-text='err.message'></div>
|
|
9
|
+
</div>
|
|
10
|
+
<div class="modal-footer">
|
|
11
|
+
<div class="w-100">
|
|
12
|
+
<div class="row">
|
|
13
|
+
<div class="col"><a @click='close' class="cursor-pointer btn w-100">OK</a></div>
|
|
15
14
|
</div>
|
|
16
|
-
|
|
15
|
+
</div>
|
|
16
|
+
</div>
|
|
17
17
|
</Modal>
|
|
18
18
|
</template>
|
|
19
19
|
|
|
@@ -24,7 +24,7 @@ import {
|
|
|
24
24
|
} from 'vue-tabler-icons'
|
|
25
25
|
|
|
26
26
|
export default {
|
|
27
|
-
name: '
|
|
27
|
+
name: 'TablerErr',
|
|
28
28
|
props: ['err'],
|
|
29
29
|
methods: {
|
|
30
30
|
close: function() {
|
package/components/Loading.vue
CHANGED
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<div v-html='html'></div>
|
|
3
|
+
</template>
|
|
4
|
+
|
|
5
|
+
<script>
|
|
6
|
+
import showdown from 'showdown';
|
|
7
|
+
|
|
8
|
+
export default {
|
|
9
|
+
name: 'TablerMarkdown',
|
|
10
|
+
props: {
|
|
11
|
+
markdown: {
|
|
12
|
+
type: String,
|
|
13
|
+
required: true
|
|
14
|
+
}
|
|
15
|
+
},
|
|
16
|
+
computed: {
|
|
17
|
+
html: function() {
|
|
18
|
+
const converter = new showdown.Converter();
|
|
19
|
+
return converter.makeHtml(this.markdown);
|
|
20
|
+
}
|
|
21
|
+
}
|
|
22
|
+
}
|
|
23
|
+
</script>
|
package/components/Modal.vue
CHANGED
package/lib.js
CHANGED
|
@@ -1,29 +1,15 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
export {
|
|
16
|
-
TablerEnum,
|
|
17
|
-
TablerBytes,
|
|
18
|
-
TablerEpoch,
|
|
19
|
-
TablerEpochRange,
|
|
20
|
-
TablerBreadCrumb,
|
|
21
|
-
TablerError,
|
|
22
|
-
TablerSelect,
|
|
23
|
-
TablerLoading,
|
|
24
|
-
TablerModal,
|
|
25
|
-
TablerProgress,
|
|
26
|
-
TablerToggle,
|
|
27
|
-
TablerInput,
|
|
28
|
-
TablerList
|
|
29
|
-
}
|
|
1
|
+
export { default as TablerError } from './components/Err.vue'
|
|
2
|
+
export { default as TablerList } from './components/List.vue'
|
|
3
|
+
export { default as TablerSelect } from './components/Select.vue'
|
|
4
|
+
export { default as TablerModal } from './components/Modal.vue'
|
|
5
|
+
export { default as TablerProgress } from './components/Progress.vue'
|
|
6
|
+
export { default as TablerLoading } from './components/Loading.vue'
|
|
7
|
+
export { default as TablerToggle } from './components/Toggle.vue'
|
|
8
|
+
export { default as TablerInput } from './components/Input.vue'
|
|
9
|
+
export { default as TablerBreadCrumb } from './components/BreadCrumb.vue';
|
|
10
|
+
export { default as TablerBytes } from './components/Bytes.vue';
|
|
11
|
+
export { default as TablerEnum } from './components/Enum.vue';
|
|
12
|
+
export { default as TablerEpoch } from './components/Epoch.vue';
|
|
13
|
+
export { default as TablerEpochRange } from './components/EpochRange.vue';
|
|
14
|
+
export { default as TablerMarkdown } from './components/Markdown.vue';
|
|
15
|
+
export { default as TablerDelete } from './components/Delete.vue';
|
package/package.json
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tak-ps/vue-tabler",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "2.
|
|
5
|
-
"
|
|
4
|
+
"version": "2.12.0",
|
|
5
|
+
"lib": "lib.js",
|
|
6
6
|
"module": "lib.js",
|
|
7
7
|
"description": "Tabler UI components for Vue3",
|
|
8
8
|
"scripts": {
|
|
@@ -24,6 +24,7 @@
|
|
|
24
24
|
"@vue/cli-plugin-babel": "^5.0.8",
|
|
25
25
|
"eslint": "^8.28.0",
|
|
26
26
|
"eslint-plugin-vue": "^9.8.0",
|
|
27
|
+
"showdown": "^2.1.0",
|
|
27
28
|
"vue-tabler-icons": "^2.16.0"
|
|
28
29
|
}
|
|
29
30
|
}
|