@tak-ps/vue-tabler 3.73.0 → 3.75.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/Epoch.vue +1 -1
- package/components/IconButton.vue +1 -1
- package/components/InlineAlert.vue +3 -3
- package/components/Modal.vue +21 -19
- package/components/RefreshButton.vue +0 -1
- package/eslint.config.js +2 -0
- package/package.json +2 -1
package/CHANGELOG.md
CHANGED
package/components/Epoch.vue
CHANGED
|
@@ -53,7 +53,7 @@ export default {
|
|
|
53
53
|
|
|
54
54
|
let res = `${this.months[date.getUTCMonth()]} ${date.getUTCDate()}${suffix}`;
|
|
55
55
|
if (date.getFullYear() !== new Date().getFullYear()) {
|
|
56
|
-
res + ` ${date.getFullYear()}`;
|
|
56
|
+
res = res + ` ${date.getFullYear()}`;
|
|
57
57
|
}
|
|
58
58
|
|
|
59
59
|
res = res + `, ${String(date.getUTCHours()).padStart(2, '0')}:${String(date.getMinutes()).padEnd(2, '0')}`;
|
|
@@ -55,8 +55,8 @@
|
|
|
55
55
|
</template>
|
|
56
56
|
|
|
57
57
|
<script setup lang='ts'>
|
|
58
|
-
import { withDefaults } from 'vue'
|
|
59
58
|
import {
|
|
59
|
+
IconCheck,
|
|
60
60
|
IconQuestionMark,
|
|
61
61
|
IconInfoCircle,
|
|
62
62
|
IconExclamationCircle,
|
|
@@ -64,10 +64,10 @@ import {
|
|
|
64
64
|
} from '@tabler/icons-vue';
|
|
65
65
|
|
|
66
66
|
const props = withDefaults(defineProps<{
|
|
67
|
-
severity
|
|
67
|
+
severity?: string // info, danger, warning, success
|
|
68
68
|
title: string
|
|
69
69
|
description?: string
|
|
70
|
-
dismissable
|
|
70
|
+
dismissable?: boolean
|
|
71
71
|
}>(), {
|
|
72
72
|
severity: 'info',
|
|
73
73
|
dismissable: false,
|
package/components/Modal.vue
CHANGED
|
@@ -1,27 +1,29 @@
|
|
|
1
1
|
<template>
|
|
2
|
-
<
|
|
3
|
-
ref='modal'
|
|
4
|
-
class='modal modal-blur fade show'
|
|
5
|
-
tabindex='-1'
|
|
6
|
-
style='display: block;'
|
|
7
|
-
aria-modal='true'
|
|
8
|
-
role='dialog'
|
|
9
|
-
>
|
|
2
|
+
<teleport to='body'>
|
|
10
3
|
<div
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
"modal-xl": size === "xl",
|
|
18
|
-
}'
|
|
4
|
+
ref='modal'
|
|
5
|
+
class='modal modal-blur fade show'
|
|
6
|
+
tabindex='-1'
|
|
7
|
+
style='display: block;'
|
|
8
|
+
aria-modal='true'
|
|
9
|
+
role='dialog'
|
|
19
10
|
>
|
|
20
|
-
<div
|
|
21
|
-
|
|
11
|
+
<div
|
|
12
|
+
class='modal-dialog modal-dialog-centered'
|
|
13
|
+
role='document'
|
|
14
|
+
:class='{
|
|
15
|
+
"modal-sm": size === "sm",
|
|
16
|
+
"modal-md": size === "md",
|
|
17
|
+
"modal-lg": size === "lg",
|
|
18
|
+
"modal-xl": size === "xl",
|
|
19
|
+
}'
|
|
20
|
+
>
|
|
21
|
+
<div class='modal-content'>
|
|
22
|
+
<slot />
|
|
23
|
+
</div>
|
|
22
24
|
</div>
|
|
23
25
|
</div>
|
|
24
|
-
</
|
|
26
|
+
</teleport>
|
|
25
27
|
</template>
|
|
26
28
|
|
|
27
29
|
<script>
|
package/eslint.config.js
CHANGED
|
@@ -1,9 +1,11 @@
|
|
|
1
1
|
import js from "@eslint/js";
|
|
2
2
|
import globals from "globals"
|
|
3
3
|
import eslintPluginVue from 'eslint-plugin-vue'
|
|
4
|
+
import ts from 'typescript-eslint';
|
|
4
5
|
|
|
5
6
|
export default [
|
|
6
7
|
js.configs.recommended,
|
|
8
|
+
...ts.configs.recommended,
|
|
7
9
|
...eslintPluginVue.configs['flat/recommended'],
|
|
8
10
|
{
|
|
9
11
|
languageOptions: {
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tak-ps/vue-tabler",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "3.
|
|
4
|
+
"version": "3.75.0",
|
|
5
5
|
"lib": "lib.js",
|
|
6
6
|
"module": "lib.js",
|
|
7
7
|
"description": "Tabler UI components for Vue3",
|
|
@@ -22,6 +22,7 @@
|
|
|
22
22
|
"dependencies": {
|
|
23
23
|
"@tabler/icons-vue": "^3.0.0",
|
|
24
24
|
"showdown": "^2.1.0",
|
|
25
|
+
"typescript-eslint": "^8.36.0",
|
|
25
26
|
"vue": "^3.5.12"
|
|
26
27
|
},
|
|
27
28
|
"devDependencies": {
|