@fkui/vue 5.37.1 → 5.37.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.
@@ -7906,11 +7906,12 @@ export declare function hasParentByName(vm: ComponentPublicInstance | undefined
7906
7906
  * @param vm - Component instance.
7907
7907
  * @param name - Name of the slot to check for.
7908
7908
  * @param props - Props required by a scoped slot.
7909
+ * @param options - Render options.
7909
7910
  * @returns true if the slot is implemented and have non-empty content.
7910
7911
  */
7911
7912
  export declare function hasSlot(vm: {
7912
7913
  $slots: Slots;
7913
- }, name: string, props?: Record<string, unknown>): boolean;
7914
+ }, name: string, props?: Record<string, unknown>, options?: Partial<RenderSlotOptions>): boolean;
7914
7915
 
7915
7916
  export declare const IAnimateExpand: DefineComponent< {
7916
7917
  /**
@@ -8879,6 +8880,27 @@ export declare interface IPopupErrorData {
8879
8880
 
8880
8881
  export declare const IPopupMenu: DefineComponent< {
8881
8882
  /**
8883
+ * Key of the currently selected and highlighted item.
8884
+ *
8885
+ * @model
8886
+ */
8887
+ modelValue: {
8888
+ type: StringConstructor;
8889
+ required: false;
8890
+ default: string;
8891
+ };
8892
+ /**
8893
+ * Key of the currently focused item.
8894
+ * Sets focus on matching item element when value changes.
8895
+ *
8896
+ * @model
8897
+ */
8898
+ focusedItem: {
8899
+ type: StringConstructor;
8900
+ required: false;
8901
+ default: string;
8902
+ };
8903
+ /**
8882
8904
  * Toggle open/closed popup.
8883
8905
  */
8884
8906
  isOpen: {
@@ -8893,15 +8915,6 @@ type: PropType<HTMLElement | undefined>;
8893
8915
  default: undefined;
8894
8916
  };
8895
8917
  /**
8896
- * The currently highlighted menu item key
8897
- * @model
8898
- */
8899
- modelValue: {
8900
- type: StringConstructor;
8901
- required: false;
8902
- default: string;
8903
- };
8904
- /**
8905
8918
  * The items to be diplayed in the menu
8906
8919
  */
8907
8920
  items: {
@@ -8909,14 +8922,6 @@ type: PropType<IMenuItem[]>;
8909
8922
  required: true;
8910
8923
  };
8911
8924
  /**
8912
- * The key of the currently selected focused item
8913
- */
8914
- focusedItemKey: {
8915
- type: StringConstructor;
8916
- required: false;
8917
- default: string;
8918
- };
8919
- /**
8920
8925
  * If true, enable built-in keyboard navigation
8921
8926
  */
8922
8927
  enableKeyboardNavigation: {
@@ -8949,13 +8954,34 @@ focusElement(): HTMLElement | null;
8949
8954
  findItemByKey(key: string): IMenuItem | undefined;
8950
8955
  indexOfItemByKey(key: string): number;
8951
8956
  onClickItem(item: IMenuItem, doClick?: boolean): Promise<void>;
8952
- cssClassHighlight(item: IMenuItem): string;
8957
+ itemClasses(item: IMenuItem): string[];
8953
8958
  setFocusOnItem(index: number): Promise<void>;
8954
8959
  activateItem(index: number): Promise<void>;
8955
8960
  setFocusedItemIndex(index: number): void;
8956
8961
  onKeyUp(event: KeyboardEvent): void;
8957
8962
  onKeyDown(event: KeyboardEvent): Promise<void>;
8958
- }, ComponentOptionsMixin, ComponentOptionsMixin, ("select" | "close" | "update:modelValue")[], "select" | "close" | "update:modelValue", PublicProps, Readonly<ExtractPropTypes< {
8963
+ }, ComponentOptionsMixin, ComponentOptionsMixin, ("select" | "close" | "update:modelValue" | "update:focusedItem")[], "select" | "close" | "update:modelValue" | "update:focusedItem", PublicProps, Readonly<ExtractPropTypes< {
8964
+ /**
8965
+ * Key of the currently selected and highlighted item.
8966
+ *
8967
+ * @model
8968
+ */
8969
+ modelValue: {
8970
+ type: StringConstructor;
8971
+ required: false;
8972
+ default: string;
8973
+ };
8974
+ /**
8975
+ * Key of the currently focused item.
8976
+ * Sets focus on matching item element when value changes.
8977
+ *
8978
+ * @model
8979
+ */
8980
+ focusedItem: {
8981
+ type: StringConstructor;
8982
+ required: false;
8983
+ default: string;
8984
+ };
8959
8985
  /**
8960
8986
  * Toggle open/closed popup.
8961
8987
  */
@@ -8971,15 +8997,6 @@ type: PropType<HTMLElement | undefined>;
8971
8997
  default: undefined;
8972
8998
  };
8973
8999
  /**
8974
- * The currently highlighted menu item key
8975
- * @model
8976
- */
8977
- modelValue: {
8978
- type: StringConstructor;
8979
- required: false;
8980
- default: string;
8981
- };
8982
- /**
8983
9000
  * The items to be diplayed in the menu
8984
9001
  */
8985
9002
  items: {
@@ -8987,14 +9004,6 @@ type: PropType<IMenuItem[]>;
8987
9004
  required: true;
8988
9005
  };
8989
9006
  /**
8990
- * The key of the currently selected focused item
8991
- */
8992
- focusedItemKey: {
8993
- type: StringConstructor;
8994
- required: false;
8995
- default: string;
8996
- };
8997
- /**
8998
9007
  * If true, enable built-in keyboard navigation
8999
9008
  */
9000
9009
  enableKeyboardNavigation: {
@@ -9022,13 +9031,14 @@ default: string;
9022
9031
  onSelect?: ((...args: any[]) => any) | undefined;
9023
9032
  onClose?: ((...args: any[]) => any) | undefined;
9024
9033
  "onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
9034
+ "onUpdate:focusedItem"?: ((...args: any[]) => any) | undefined;
9025
9035
  }, {
9026
9036
  anchor: HTMLElement | undefined;
9027
9037
  modelValue: string;
9028
9038
  ariaLabel: string;
9029
- focusedItemKey: string;
9030
9039
  enableKeyboardNavigation: boolean;
9031
9040
  selectedMenuItemScreenReaderText: string;
9041
+ focusedItem: string;
9032
9042
  }, {}>;
9033
9043
 
9034
9044
  /**
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fkui/vue",
3
- "version": "5.37.1",
3
+ "version": "5.37.2",
4
4
  "description": "Vue implementation of FKUI components",
5
5
  "keywords": [
6
6
  "fkui",
@@ -73,11 +73,11 @@
73
73
  "lodash": "^4.17.20"
74
74
  },
75
75
  "devDependencies": {
76
- "@fkui/css-variables": "5.37.0",
77
- "@fkui/date": "5.37.1",
78
- "@fkui/design": "5.37.0",
76
+ "@fkui/css-variables": "5.37.2",
77
+ "@fkui/date": "5.37.2",
78
+ "@fkui/design": "5.37.2",
79
79
  "@fkui/icon-lib-default": "5.37.0",
80
- "@fkui/logic": "5.37.1",
80
+ "@fkui/logic": "5.37.2",
81
81
  "@fkui/test-utils": "5.37.0",
82
82
  "@forsakringskassan/vite-lib-config": "2.0.3",
83
83
  "@vue/test-utils": "2.4.6",
@@ -89,9 +89,9 @@
89
89
  },
90
90
  "peerDependencies": {
91
91
  "@babel/runtime": "^7",
92
- "@fkui/date": "^5.37.1",
92
+ "@fkui/date": "^5.36.0",
93
93
  "@fkui/design": "^5.36.0",
94
- "@fkui/logic": "^5.37.1",
94
+ "@fkui/logic": "^5.36.0",
95
95
  "core-js": "^3.24",
96
96
  "fk-icons": "^4.30.1",
97
97
  "html-validate": ">= 7.9.0",
@@ -109,5 +109,5 @@
109
109
  "node": ">= 20",
110
110
  "npm": ">= 7"
111
111
  },
112
- "gitHead": "82f7f5e33c2ccf22f8190f6ee945dd3baf195ce7"
112
+ "gitHead": "58ab8a4ceea399b130d5eb98b946bd117699d23b"
113
113
  }