nuxt-hs-ui 2.1.9 → 2.1.11

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/dist/module.json CHANGED
@@ -4,7 +4,7 @@
4
4
  "compatibility": {
5
5
  "nuxt": ">=3.15.0"
6
6
  },
7
- "version": "2.1.9",
7
+ "version": "2.1.11",
8
8
  "builder": {
9
9
  "@nuxt/module-builder": "0.8.4",
10
10
  "unbuild": "2.0.0"
@@ -259,6 +259,7 @@ import BtnLineLoading from "./btn-line-loading.vue";
259
259
  interface Props {
260
260
  class?: ClassType;
261
261
  classInner?: ClassType;
262
+ classOverlay?: ClassType;
262
263
  disabled?: boolean;
263
264
  to?: string;
264
265
  theme?: Theme;
@@ -275,6 +276,7 @@ interface Props {
275
276
  const props = withDefaults(defineProps<Props>(), {
276
277
  class: "",
277
278
  classInner: "",
279
+ classOverlay: "",
278
280
  to: undefined,
279
281
  theme: "accent1",
280
282
  variant: "outlined",
@@ -429,7 +431,9 @@ const btnTvBody = computed(() => {
429
431
  });
430
432
 
431
433
  const btnTvOverlay = computed(() => {
432
- return ui.value.overlay({});
434
+ return ui.value.overlay({
435
+ class: ClassTypeToString(props.classOverlay),
436
+ });
433
437
  });
434
438
 
435
439
  // ----------------------------------------------------------------------------
@@ -10,7 +10,14 @@
10
10
  // [ node_modules ]
11
11
  import { TabulatorFull as Tabulator } from "tabulator-tables";
12
12
  // [ NUXT ]
13
- import { ref, watch, computed, onMounted, onUnmounted } from "#imports";
13
+ import {
14
+ ref,
15
+ watch,
16
+ computed,
17
+ onMounted,
18
+ // onUnmounted,
19
+ onBeforeUnmount,
20
+ } from "#imports";
14
21
  // ----------------------------------------------------------------------------
15
22
  // [ utils ]
16
23
  import { Option } from "../../utils/tabulator";
@@ -175,7 +182,10 @@ const initTabulator = () => {
175
182
  onMounted(() => {
176
183
  initTabulator();
177
184
  });
178
- onUnmounted(() => {
185
+
186
+ onBeforeUnmount(() => {
187
+ // console.log("onBeforeUnmount");
188
+ if (tabulator.value === null) return;
179
189
  tabulator.value.destroy();
180
190
  tabulator.value = null;
181
191
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "nuxt-hs-ui",
3
- "version": "2.1.9",
3
+ "version": "2.1.11",
4
4
  "description": "My new Nuxt module",
5
5
  "repository": "https://github.com/hare-systems-ryo/nuxt-hs-ui",
6
6
  "license": "MIT",