@opendesign-plus-test/components 0.0.1-rc.124 → 0.0.1-rc.127

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.
@@ -2,12 +2,15 @@ import { NavLiItemT } from '../types.ts';
2
2
  export interface OHeaderEmitsT {
3
3
  (e: 'handle-mouseenter-sub', val: any): void;
4
4
  (e: 'handle-mouseleave-sub', val: any): void;
5
+ (e: 'handle-click-link'): void;
5
6
  }
6
7
  declare const _default: import('vue').DefineComponent<NavLiItemT, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
7
8
  "handle-mouseenter-sub": (val: any) => any;
8
9
  "handle-mouseleave-sub": (val: any) => any;
10
+ "handle-click-link": () => any;
9
11
  }, string, import('vue').PublicProps, Readonly<NavLiItemT> & Readonly<{
10
12
  "onHandle-mouseenter-sub"?: ((val: any) => any) | undefined;
11
13
  "onHandle-mouseleave-sub"?: ((val: any) => any) | undefined;
14
+ "onHandle-click-link"?: (() => any) | undefined;
12
15
  }>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLDivElement>;
13
16
  export default _default;
@@ -1,7 +1,7 @@
1
1
  import _sfc_main from "./HeaderContent.vue2.mjs";
2
2
  import './HeaderContent.css';
3
3
  import _export_sfc from "../../../_virtual/_plugin-vue_export-helper.mjs";
4
- const HeaderContent = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-6983462d"]]);
4
+ const HeaderContent = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-61c6b51c"]]);
5
5
  export {
6
6
  HeaderContent as default
7
7
  };
@@ -40,7 +40,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
40
40
  bgRight: {},
41
41
  hoverIndex: {}
42
42
  },
43
- emits: ["handle-mouseenter-sub", "handle-mouseleave-sub"],
43
+ emits: ["handle-mouseenter-sub", "handle-mouseleave-sub", "handle-click-link"],
44
44
  setup(__props, { emit: __emit }) {
45
45
  const emit = __emit;
46
46
  const props = __props;
@@ -112,6 +112,10 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
112
112
  return (url == null ? void 0 : url.startsWith("http")) ? "_blank" : "_self";
113
113
  }
114
114
  };
115
+ const onClickLink = () => {
116
+ navVisible.value = false;
117
+ emit("handle-click-link");
118
+ };
115
119
  return (_ctx, _cache) => {
116
120
  var _a, _b, _c;
117
121
  const _directive_analytics = resolveDirective("analytics");
@@ -160,7 +164,8 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
160
164
  href: subItem.href,
161
165
  target: linkTarget(subItem.href, subItem == null ? void 0 : subItem.target),
162
166
  rel: "noopener noreferrer",
163
- class: "item-label"
167
+ class: "item-label",
168
+ onClick: onClickLink
164
169
  }, [
165
170
  showTitle.value ? (openBlock(), createBlock(unref(OPopover), {
166
171
  key: 0,
@@ -246,7 +251,8 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
246
251
  href: shortcut.href,
247
252
  target: linkTarget(shortcut.href, shortcut == null ? void 0 : shortcut.target),
248
253
  rel: "noopener noreferrer",
249
- class: "shortcut-link"
254
+ class: "shortcut-link",
255
+ onClick: onClickLink
250
256
  }, [
251
257
  showDesc.value ? (openBlock(), createBlock(unref(OPopover), {
252
258
  key: 0,
@@ -286,7 +292,8 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
286
292
  href: shortcut.href,
287
293
  target: linkTarget(shortcut.href, shortcut == null ? void 0 : shortcut.target),
288
294
  rel: "noopener noreferrer",
289
- class: "review"
295
+ class: "review",
296
+ onClick: onClickLink
290
297
  }, [
291
298
  createElementVNode("img", {
292
299
  src: unref(isDark) && (shortcut == null ? void 0 : shortcut.pictureDark) ? shortcut == null ? void 0 : shortcut.pictureDark : shortcut.picture,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@opendesign-plus-test/components",
3
- "version": "0.0.1-rc.124",
3
+ "version": "0.0.1-rc.127",
4
4
  "type": "module",
5
5
  "publishConfig": {
6
6
  "access": "public",
@@ -45,8 +45,8 @@
45
45
  "vue-dompurify-html": "^3.1.2",
46
46
  "vue": "^3.5.13",
47
47
  "element-plus": "2.13.1",
48
- "@opendesign-plus/composables": "0.0.1-rc.10",
49
- "@opendesign-plus/styles": "0.0.1-rc.2"
48
+ "@opendesign-plus/styles": "0.0.1-rc.2",
49
+ "@opendesign-plus/composables": "0.0.1-rc.10"
50
50
  },
51
51
  "devDependencies": {
52
52
  "@vitejs/plugin-vue": "^5.2.1",
@@ -1,15 +0,0 @@
1
- import "vue";
2
- /*!
3
- * vue-router v4.6.4
4
- * (c) 2025 Eduardo San Martin Morote
5
- * @license MIT
6
- */
7
- Symbol(process.env.NODE_ENV !== "production" ? "navigation failure" : "");
8
- Symbol(process.env.NODE_ENV !== "production" ? "router view location matched" : "");
9
- Symbol(process.env.NODE_ENV !== "production" ? "router view depth" : "");
10
- Symbol(process.env.NODE_ENV !== "production" ? "router" : "");
11
- const routeLocationKey = Symbol(process.env.NODE_ENV !== "production" ? "route location" : "");
12
- Symbol(process.env.NODE_ENV !== "production" ? "router view location" : "");
13
- export {
14
- routeLocationKey as u
15
- };
@@ -1,14 +0,0 @@
1
- import { u as routeLocationKey } from "./devtools-EWN81iOl.mjs.mjs";
2
- import { inject } from "vue";
3
- /*!
4
- * vue-router v4.6.4
5
- * (c) 2025 Eduardo San Martin Morote
6
- * @license MIT
7
- */
8
- function useRoute(_name) {
9
- return inject(routeLocationKey);
10
- }
11
- export {
12
- routeLocationKey,
13
- useRoute
14
- };