@karta.io/utils 1.0.0-beta.37 → 1.0.0-beta.38

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/index.cjs CHANGED
@@ -1166,6 +1166,11 @@ function useDialog() {
1166
1166
  const getInstance = (uuid) => {
1167
1167
  return dialogs.find((item) => item.uuid === uuid)?.vnode;
1168
1168
  };
1169
+ const getLayer = (uuid) => {
1170
+ if (!dialogs.length)
1171
+ return 0;
1172
+ return dialogs.find((dialog) => dialog.uuid === uuid)?.layer || 0;
1173
+ };
1169
1174
  const isOnTop = (uuid) => {
1170
1175
  if (!dialogs.length)
1171
1176
  return false;
@@ -1233,6 +1238,7 @@ function useDialog() {
1233
1238
  return {
1234
1239
  open,
1235
1240
  getInstance,
1241
+ getLayer,
1236
1242
  close,
1237
1243
  closeAll,
1238
1244
  showConfirm,
package/dist/index.d.cts CHANGED
@@ -276,6 +276,7 @@ declare function useDialog(): {
276
276
  layer?: number;
277
277
  }) => string;
278
278
  getInstance: (uuid: string) => VNodeCustom$1;
279
+ getLayer: (uuid: string) => number;
279
280
  close: (uuid: string) => void;
280
281
  closeAll: () => void;
281
282
  showConfirm: (text?: string) => boolean;
package/dist/index.d.mts CHANGED
@@ -276,6 +276,7 @@ declare function useDialog(): {
276
276
  layer?: number;
277
277
  }) => string;
278
278
  getInstance: (uuid: string) => VNodeCustom$1;
279
+ getLayer: (uuid: string) => number;
279
280
  close: (uuid: string) => void;
280
281
  closeAll: () => void;
281
282
  showConfirm: (text?: string) => boolean;
package/dist/index.d.ts CHANGED
@@ -276,6 +276,7 @@ declare function useDialog(): {
276
276
  layer?: number;
277
277
  }) => string;
278
278
  getInstance: (uuid: string) => VNodeCustom$1;
279
+ getLayer: (uuid: string) => number;
279
280
  close: (uuid: string) => void;
280
281
  closeAll: () => void;
281
282
  showConfirm: (text?: string) => boolean;
package/dist/index.mjs CHANGED
@@ -1147,6 +1147,11 @@ function useDialog() {
1147
1147
  const getInstance = (uuid) => {
1148
1148
  return dialogs.find((item) => item.uuid === uuid)?.vnode;
1149
1149
  };
1150
+ const getLayer = (uuid) => {
1151
+ if (!dialogs.length)
1152
+ return 0;
1153
+ return dialogs.find((dialog) => dialog.uuid === uuid)?.layer || 0;
1154
+ };
1150
1155
  const isOnTop = (uuid) => {
1151
1156
  if (!dialogs.length)
1152
1157
  return false;
@@ -1214,6 +1219,7 @@ function useDialog() {
1214
1219
  return {
1215
1220
  open,
1216
1221
  getInstance,
1222
+ getLayer,
1217
1223
  close,
1218
1224
  closeAll,
1219
1225
  showConfirm,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@karta.io/utils",
3
- "version": "1.0.0-beta.37",
3
+ "version": "1.0.0-beta.38",
4
4
  "description": "karta.io utils for admin and application",
5
5
  "type": "module",
6
6
  "license": "MIT",
@@ -25,7 +25,7 @@
25
25
  "vue": "3.x"
26
26
  },
27
27
  "dependencies": {
28
- "@karta.io/common-data": "^1.0.0-beta.37",
28
+ "@karta.io/common-data": "^1.0.0-beta.38",
29
29
  "@tanstack/vue-query": "5.52.3",
30
30
  "@vueuse/core": "11.0.3",
31
31
  "async-validator": "4.2.5",