@hybridly/vue 0.8.0 → 0.8.2

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
@@ -598,8 +598,14 @@ Please specify a more appropriate element using the "as" attribute. For example:
598
598
  ...as === "a" ? { href: url } : {},
599
599
  ...props.disabled ? { disabled: props.disabled } : {},
600
600
  onMouseenter: () => performPreload("hover"),
601
+ onAuxclick: (event) => {
602
+ if (props.disabled) {
603
+ event.preventDefault();
604
+ }
605
+ },
601
606
  onClick: (event) => {
602
607
  if (props.disabled) {
608
+ event.preventDefault();
603
609
  return;
604
610
  }
605
611
  if (props.external) {
package/dist/index.d.cts CHANGED
@@ -857,7 +857,7 @@ declare const RouterLink: vue.DefineComponent<vue.ExtractPropTypes<{
857
857
  default: undefined;
858
858
  };
859
859
  as: {
860
- type: (ObjectConstructor | StringConstructor)[];
860
+ type: (StringConstructor | ObjectConstructor)[];
861
861
  default: string;
862
862
  };
863
863
  method: {
@@ -904,7 +904,7 @@ declare const RouterLink: vue.DefineComponent<vue.ExtractPropTypes<{
904
904
  default: undefined;
905
905
  };
906
906
  as: {
907
- type: (ObjectConstructor | StringConstructor)[];
907
+ type: (StringConstructor | ObjectConstructor)[];
908
908
  default: string;
909
909
  };
910
910
  method: {
@@ -953,7 +953,7 @@ declare const RouterLink: vue.DefineComponent<vue.ExtractPropTypes<{
953
953
  default: undefined;
954
954
  };
955
955
  as: {
956
- type: (ObjectConstructor | StringConstructor)[];
956
+ type: (StringConstructor | ObjectConstructor)[];
957
957
  default: string;
958
958
  };
959
959
  method: {
@@ -995,16 +995,17 @@ declare const RouterLink: vue.DefineComponent<vue.ExtractPropTypes<{
995
995
  };
996
996
  }>> & Readonly<{}>, {
997
997
  data: RequestData;
998
- text: string;
998
+ method: "delete" | "get" | Method | "post" | "put" | "patch";
999
999
  preserveScroll: boolean;
1000
1000
  preserveState: boolean;
1001
- method: "delete" | Method | "get" | "post" | "put" | "patch";
1002
1001
  href: string;
1003
- options: Omit<HybridRequestOptions, "data" | "url" | "method">;
1004
1002
  as: string | Record<string, any>;
1005
1003
  external: boolean;
1006
1004
  disabled: boolean;
1005
+ options: Omit<HybridRequestOptions, "data" | "url" | "method">;
1006
+ text: string;
1007
1007
  preload: boolean | "hover" | "mount";
1008
1008
  }, {}, {}, {}, string, vue.ComponentProvideOptions, true, {}, any>;
1009
1009
 
1010
- export { type Action, type AvailableHybridRequestOptions, type BindFilterOptions, type BulkAction, type BulkSelection, type Column, type DefaultFormOptions, type InitializeOptions, type InlineAction, type RecordIdentifier, RouterLink, type SortDirection, type TableDefaultOptions, type ToggleSortOptions, initializeHybridly, registerHook, setProperty, useBackForward, useBulkSelect, useDialog, useForm, useHistoryState, useProperties, useProperty, useQueryParameter, useQueryParameters, useRefinements, useRoute, useTable };
1010
+ export { RouterLink, initializeHybridly, registerHook, setProperty, useBackForward, useBulkSelect, useDialog, useForm, useHistoryState, useProperties, useProperty, useQueryParameter, useQueryParameters, useRefinements, useRoute, useTable };
1011
+ export type { Action, AvailableHybridRequestOptions, BindFilterOptions, BulkAction, BulkSelection, Column, DefaultFormOptions, InitializeOptions, InlineAction, RecordIdentifier, SortDirection, TableDefaultOptions, ToggleSortOptions };
package/dist/index.d.mts CHANGED
@@ -857,7 +857,7 @@ declare const RouterLink: vue.DefineComponent<vue.ExtractPropTypes<{
857
857
  default: undefined;
858
858
  };
859
859
  as: {
860
- type: (ObjectConstructor | StringConstructor)[];
860
+ type: (StringConstructor | ObjectConstructor)[];
861
861
  default: string;
862
862
  };
863
863
  method: {
@@ -904,7 +904,7 @@ declare const RouterLink: vue.DefineComponent<vue.ExtractPropTypes<{
904
904
  default: undefined;
905
905
  };
906
906
  as: {
907
- type: (ObjectConstructor | StringConstructor)[];
907
+ type: (StringConstructor | ObjectConstructor)[];
908
908
  default: string;
909
909
  };
910
910
  method: {
@@ -953,7 +953,7 @@ declare const RouterLink: vue.DefineComponent<vue.ExtractPropTypes<{
953
953
  default: undefined;
954
954
  };
955
955
  as: {
956
- type: (ObjectConstructor | StringConstructor)[];
956
+ type: (StringConstructor | ObjectConstructor)[];
957
957
  default: string;
958
958
  };
959
959
  method: {
@@ -995,16 +995,17 @@ declare const RouterLink: vue.DefineComponent<vue.ExtractPropTypes<{
995
995
  };
996
996
  }>> & Readonly<{}>, {
997
997
  data: RequestData;
998
- text: string;
998
+ method: "delete" | "get" | Method | "post" | "put" | "patch";
999
999
  preserveScroll: boolean;
1000
1000
  preserveState: boolean;
1001
- method: "delete" | Method | "get" | "post" | "put" | "patch";
1002
1001
  href: string;
1003
- options: Omit<HybridRequestOptions, "data" | "url" | "method">;
1004
1002
  as: string | Record<string, any>;
1005
1003
  external: boolean;
1006
1004
  disabled: boolean;
1005
+ options: Omit<HybridRequestOptions, "data" | "url" | "method">;
1006
+ text: string;
1007
1007
  preload: boolean | "hover" | "mount";
1008
1008
  }, {}, {}, {}, string, vue.ComponentProvideOptions, true, {}, any>;
1009
1009
 
1010
- export { type Action, type AvailableHybridRequestOptions, type BindFilterOptions, type BulkAction, type BulkSelection, type Column, type DefaultFormOptions, type InitializeOptions, type InlineAction, type RecordIdentifier, RouterLink, type SortDirection, type TableDefaultOptions, type ToggleSortOptions, initializeHybridly, registerHook, setProperty, useBackForward, useBulkSelect, useDialog, useForm, useHistoryState, useProperties, useProperty, useQueryParameter, useQueryParameters, useRefinements, useRoute, useTable };
1010
+ export { RouterLink, initializeHybridly, registerHook, setProperty, useBackForward, useBulkSelect, useDialog, useForm, useHistoryState, useProperties, useProperty, useQueryParameter, useQueryParameters, useRefinements, useRoute, useTable };
1011
+ export type { Action, AvailableHybridRequestOptions, BindFilterOptions, BulkAction, BulkSelection, Column, DefaultFormOptions, InitializeOptions, InlineAction, RecordIdentifier, SortDirection, TableDefaultOptions, ToggleSortOptions };
package/dist/index.d.ts CHANGED
@@ -857,7 +857,7 @@ declare const RouterLink: vue.DefineComponent<vue.ExtractPropTypes<{
857
857
  default: undefined;
858
858
  };
859
859
  as: {
860
- type: (ObjectConstructor | StringConstructor)[];
860
+ type: (StringConstructor | ObjectConstructor)[];
861
861
  default: string;
862
862
  };
863
863
  method: {
@@ -904,7 +904,7 @@ declare const RouterLink: vue.DefineComponent<vue.ExtractPropTypes<{
904
904
  default: undefined;
905
905
  };
906
906
  as: {
907
- type: (ObjectConstructor | StringConstructor)[];
907
+ type: (StringConstructor | ObjectConstructor)[];
908
908
  default: string;
909
909
  };
910
910
  method: {
@@ -953,7 +953,7 @@ declare const RouterLink: vue.DefineComponent<vue.ExtractPropTypes<{
953
953
  default: undefined;
954
954
  };
955
955
  as: {
956
- type: (ObjectConstructor | StringConstructor)[];
956
+ type: (StringConstructor | ObjectConstructor)[];
957
957
  default: string;
958
958
  };
959
959
  method: {
@@ -995,16 +995,17 @@ declare const RouterLink: vue.DefineComponent<vue.ExtractPropTypes<{
995
995
  };
996
996
  }>> & Readonly<{}>, {
997
997
  data: RequestData;
998
- text: string;
998
+ method: "delete" | "get" | Method | "post" | "put" | "patch";
999
999
  preserveScroll: boolean;
1000
1000
  preserveState: boolean;
1001
- method: "delete" | Method | "get" | "post" | "put" | "patch";
1002
1001
  href: string;
1003
- options: Omit<HybridRequestOptions, "data" | "url" | "method">;
1004
1002
  as: string | Record<string, any>;
1005
1003
  external: boolean;
1006
1004
  disabled: boolean;
1005
+ options: Omit<HybridRequestOptions, "data" | "url" | "method">;
1006
+ text: string;
1007
1007
  preload: boolean | "hover" | "mount";
1008
1008
  }, {}, {}, {}, string, vue.ComponentProvideOptions, true, {}, any>;
1009
1009
 
1010
- export { type Action, type AvailableHybridRequestOptions, type BindFilterOptions, type BulkAction, type BulkSelection, type Column, type DefaultFormOptions, type InitializeOptions, type InlineAction, type RecordIdentifier, RouterLink, type SortDirection, type TableDefaultOptions, type ToggleSortOptions, initializeHybridly, registerHook, setProperty, useBackForward, useBulkSelect, useDialog, useForm, useHistoryState, useProperties, useProperty, useQueryParameter, useQueryParameters, useRefinements, useRoute, useTable };
1010
+ export { RouterLink, initializeHybridly, registerHook, setProperty, useBackForward, useBulkSelect, useDialog, useForm, useHistoryState, useProperties, useProperty, useQueryParameter, useQueryParameters, useRefinements, useRoute, useTable };
1011
+ export type { Action, AvailableHybridRequestOptions, BindFilterOptions, BulkAction, BulkSelection, Column, DefaultFormOptions, InitializeOptions, InlineAction, RecordIdentifier, SortDirection, TableDefaultOptions, ToggleSortOptions };
package/dist/index.mjs CHANGED
@@ -591,8 +591,14 @@ Please specify a more appropriate element using the "as" attribute. For example:
591
591
  ...as === "a" ? { href: url } : {},
592
592
  ...props.disabled ? { disabled: props.disabled } : {},
593
593
  onMouseenter: () => performPreload("hover"),
594
+ onAuxclick: (event) => {
595
+ if (props.disabled) {
596
+ event.preventDefault();
597
+ }
598
+ },
594
599
  onClick: (event) => {
595
600
  if (props.disabled) {
601
+ event.preventDefault();
596
602
  return;
597
603
  }
598
604
  if (props.external) {
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@hybridly/vue",
3
3
  "type": "module",
4
- "version": "0.8.0",
4
+ "version": "0.8.2",
5
5
  "description": "Vue adapter for Hybridly",
6
6
  "author": "Enzo Innocenzi <enzo@innocenzi.dev>",
7
7
  "license": "MIT",
@@ -49,8 +49,8 @@
49
49
  "lodash.isequal": "^4.5.0",
50
50
  "nprogress": "^0.2.0",
51
51
  "qs": "^6.14.0",
52
- "@hybridly/core": "0.8.0",
53
- "@hybridly/utils": "0.8.0"
52
+ "@hybridly/core": "0.8.2",
53
+ "@hybridly/utils": "0.8.2"
54
54
  },
55
55
  "devDependencies": {
56
56
  "@types/lodash": "^4.17.17",