@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 CHANGED
@@ -10,6 +10,14 @@
10
10
 
11
11
  ## Version History
12
12
 
13
+ ### v3.75.0
14
+
15
+ - :tada: Teleport `TablerModal` to body by default
16
+
17
+ ### v3.74.0
18
+
19
+ - :tada: Introduce TS Linting
20
+
13
21
  ### v3.73.0
14
22
 
15
23
  - :tada: Add `InlineAlert` component
@@ -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')}`;
@@ -12,7 +12,7 @@
12
12
  </template>
13
13
 
14
14
  <script setup>
15
- import { useId, defineProps, useTemplateRef } from 'vue'
15
+ import { useId, useTemplateRef } from 'vue'
16
16
 
17
17
  const iconid = useId();
18
18
 
@@ -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: string // info, danger, warning, success
67
+ severity?: string // info, danger, warning, success
68
68
  title: string
69
69
  description?: string
70
- dismissable: boolean
70
+ dismissable?: boolean
71
71
  }>(), {
72
72
  severity: 'info',
73
73
  dismissable: false,
@@ -1,27 +1,29 @@
1
1
  <template>
2
- <div
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
- class='modal-dialog modal-dialog-centered'
12
- role='document'
13
- :class='{
14
- "modal-sm": size === "sm",
15
- "modal-md": size === "md",
16
- "modal-lg": size === "lg",
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 class='modal-content'>
21
- <slot />
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
- </div>
26
+ </teleport>
25
27
  </template>
26
28
 
27
29
  <script>
@@ -24,7 +24,6 @@
24
24
  </template>
25
25
 
26
26
  <script setup>
27
- import { defineProps } from 'vue'
28
27
  import {
29
28
  IconRefresh
30
29
  } from '@tabler/icons-vue';
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.73.0",
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": {