@dxtmisha/functional 1.11.10 → 1.11.11

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/CHANGELOG.md CHANGED
@@ -2,6 +2,17 @@
2
2
 
3
3
  All notable changes to this project will be documented in this file.
4
4
 
5
+ ## [1.11.11] - 2026-05-14
6
+
7
+ ### Added
8
+ - **ListDataRef**: Introduced `getFocusItem()` method to retrieve the full data object of the currently focused list item, facilitating advanced keyboard navigation and interaction handling.
9
+ - **Types**: Added `disabled` property to the `ListDataItem` interface to support standardized state management for list items.
10
+
11
+ ### Changed / Improved
12
+ - **Build System**: Refactored the distribution structure to standardize type definition paths and optimize the export map for better compatibility with modern bundlers.
13
+ - **Peer Dependencies**: Refined the `peerDependencies` configuration to ensure more robust integration with Vue and the core functional-basic package.
14
+ - **Maintenance**: Performed internal cleanup of the package configuration and updated build scripts to align with monorepo standards.
15
+
5
16
  ## [1.11.9] - 2026-05-12
6
17
 
7
18
  ### Added
package/dist/library.js CHANGED
@@ -554,6 +554,9 @@ var Ne = class {
554
554
  var e;
555
555
  return (e = this.focus) == null ? void 0 : e.value;
556
556
  }
557
+ getFocusItem() {
558
+ return this.data.value.find((e) => e.index === this.getFocus());
559
+ }
557
560
  getHighlight() {
558
561
  var e;
559
562
  return (e = this.highlight) == null ? void 0 : e.value;
@@ -187,6 +187,13 @@ export declare class ListDataRef {
187
187
  * @returns focus identifier/ идентификатор в фокусе
188
188
  */
189
189
  getFocus(): ListSelectedItem | undefined;
190
+ /**
191
+ * Returns the item in focus.
192
+ *
193
+ * Возвращает элемент в фокусе.
194
+ * @returns item in focus/ элемент в фокусе
195
+ */
196
+ getFocusItem(): ListDataItem | undefined;
190
197
  /**
191
198
  * Returns the highlight text.
192
199
  *
@@ -19,6 +19,8 @@ export type ListDataItem<Item extends ListDataBasic = ListDataBasic> = ConstrBin
19
19
  type: ListType;
20
20
  /** Unique item identifier/ Уникальный идентификатор элемента */
21
21
  index: string;
22
+ /** Whether the item is disabled/ Отключен ли элемент */
23
+ disabled?: boolean;
22
24
  }>;
23
25
  /** Array of list data items/ Массив элементов данных списка */
24
26
  export type ListList<Item extends ListDataBasic = ListDataBasic> = ListDataItem<Item>[];
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@dxtmisha/functional",
3
3
  "private": false,
4
- "version": "1.11.10",
4
+ "version": "1.11.11",
5
5
  "type": "module",
6
6
  "description": "A comprehensive library of utilities, base classes, and Vue 3 composables for reactive web development. Extends @dxtmisha/functional-basic with Composition API.",
7
7
  "keywords": [
@@ -66,8 +66,7 @@
66
66
  "./flags": {
67
67
  "import": "./dist/flags.js",
68
68
  "types": "./dist/src/flags.d.ts"
69
- },
70
- "./types/*": "./dist/src/*"
69
+ }
71
70
  },
72
71
  "engines": {
73
72
  "node": ">=20.0.0"