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

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-8ce1ab81"]]);
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,9 @@ 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
+ emit("handle-click-link");
117
+ };
115
118
  return (_ctx, _cache) => {
116
119
  var _a, _b, _c;
117
120
  const _directive_analytics = resolveDirective("analytics");
@@ -160,7 +163,8 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
160
163
  href: subItem.href,
161
164
  target: linkTarget(subItem.href, subItem == null ? void 0 : subItem.target),
162
165
  rel: "noopener noreferrer",
163
- class: "item-label"
166
+ class: "item-label",
167
+ onClick: onClickLink
164
168
  }, [
165
169
  showTitle.value ? (openBlock(), createBlock(unref(OPopover), {
166
170
  key: 0,
@@ -246,7 +250,8 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
246
250
  href: shortcut.href,
247
251
  target: linkTarget(shortcut.href, shortcut == null ? void 0 : shortcut.target),
248
252
  rel: "noopener noreferrer",
249
- class: "shortcut-link"
253
+ class: "shortcut-link",
254
+ onClick: onClickLink
250
255
  }, [
251
256
  showDesc.value ? (openBlock(), createBlock(unref(OPopover), {
252
257
  key: 0,
@@ -286,7 +291,8 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
286
291
  href: shortcut.href,
287
292
  target: linkTarget(shortcut.href, shortcut == null ? void 0 : shortcut.target),
288
293
  rel: "noopener noreferrer",
289
- class: "review"
294
+ class: "review",
295
+ onClick: onClickLink
290
296
  }, [
291
297
  createElementVNode("img", {
292
298
  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.125",
4
4
  "type": "module",
5
5
  "publishConfig": {
6
6
  "access": "public",
@@ -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
- };