@arbocollab/arbo-web-search 0.26.1-alpha.2 → 0.26.1-alpha.3
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/es/index.es.js +21 -15
- package/dist/es/index.es.js.map +1 -1
- package/dist/umd/index.umd.js +2 -2
- package/dist/umd/index.umd.js.map +1 -1
- package/package.json +1 -1
package/dist/es/index.es.js
CHANGED
|
@@ -50252,30 +50252,36 @@ const _sfc_main$l = /* @__PURE__ */ defineComponent({
|
|
|
50252
50252
|
inline: "nearest"
|
|
50253
50253
|
});
|
|
50254
50254
|
};
|
|
50255
|
-
const
|
|
50256
|
-
let isDisabled = true;
|
|
50255
|
+
const currentInstanceType = computed(() => {
|
|
50257
50256
|
const listEl = listRef.value;
|
|
50258
50257
|
const instanceWrapper = listEl?.closest(".arbo-instance-container");
|
|
50259
|
-
if (
|
|
50260
|
-
console.warn("Instance wrapper not found, cannot change module ID config");
|
|
50261
|
-
} else {
|
|
50258
|
+
if (instanceWrapper) {
|
|
50262
50259
|
const classes = instanceWrapper.className;
|
|
50263
50260
|
const match = classes.match(/arbo-instance-([^\s]+)/);
|
|
50264
50261
|
const instanceType = match ? match[1] : null;
|
|
50265
|
-
|
|
50266
|
-
|
|
50267
|
-
|
|
50268
|
-
|
|
50262
|
+
return instanceType;
|
|
50263
|
+
} else {
|
|
50264
|
+
console.warn("Instance wrapper not found, cannot change module ID config");
|
|
50265
|
+
}
|
|
50266
|
+
return null;
|
|
50267
|
+
});
|
|
50268
|
+
const handleKeyDown = (event) => {
|
|
50269
|
+
let isDisabled = true;
|
|
50270
|
+
const instanceType = currentInstanceType.value;
|
|
50271
|
+
if (instanceType) {
|
|
50272
|
+
const appManager = globalThis.window.appManager;
|
|
50273
|
+
const popupStack = appManager?.currentInstance?.popupStack;
|
|
50274
|
+
if (Array.isArray(popupStack)) {
|
|
50275
|
+
const idx = popupStack.findIndex((s2) => s2.type === instanceType);
|
|
50276
|
+
if (idx === popupStack.length - 1) {
|
|
50269
50277
|
isDisabled = false;
|
|
50270
|
-
} else {
|
|
50271
|
-
isDisabled = true;
|
|
50272
50278
|
}
|
|
50273
|
-
console.log("Instance type:", instanceType, "isDisabled:", isDisabled);
|
|
50274
50279
|
} else {
|
|
50275
|
-
console.warn("
|
|
50280
|
+
console.warn("appManager.currentInstance.popupStack is unavailable");
|
|
50276
50281
|
}
|
|
50282
|
+
} else {
|
|
50283
|
+
console.warn("Instance type not found in class names:");
|
|
50277
50284
|
}
|
|
50278
|
-
console.log("List element:", { listEl, instanceWrapper, isDisabled });
|
|
50279
50285
|
if (isDisabled) return;
|
|
50280
50286
|
if (!searchResults.value || searchResults.value.length === 0) return;
|
|
50281
50287
|
selectMode.value = "keyboard";
|
|
@@ -52258,7 +52264,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
52258
52264
|
};
|
|
52259
52265
|
}
|
|
52260
52266
|
});
|
|
52261
|
-
const version = "0.26.1-alpha.
|
|
52267
|
+
const version = "0.26.1-alpha.3";
|
|
52262
52268
|
/*!
|
|
52263
52269
|
* shared v11.2.8
|
|
52264
52270
|
* (c) 2025 kazuya kawaguchi
|