@dxtmisha/functional 1.11.9 → 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 +20 -0
- package/dist/library.js +12 -9
- package/dist/{classes → src/classes}/ref/ListDataRef.d.ts +7 -0
- package/dist/{types → src/types}/listTypes.d.ts +2 -0
- package/package.json +5 -14
- /package/dist/{classes → src/classes}/design/DesignAbstract.d.ts +0 -0
- /package/dist/{classes → src/classes}/design/DesignAsyncAbstract.d.ts +0 -0
- /package/dist/{classes → src/classes}/design/DesignChanged.d.ts +0 -0
- /package/dist/{classes → src/classes}/design/DesignComp.d.ts +0 -0
- /package/dist/{classes → src/classes}/design/DesignComponents.d.ts +0 -0
- /package/dist/{classes → src/classes}/design/DesignConstructorAbstract.d.ts +0 -0
- /package/dist/{classes → src/classes}/ref/DatetimeRef.d.ts +0 -0
- /package/dist/{classes → src/classes}/ref/EffectScopeGlobal.d.ts +0 -0
- /package/dist/{classes → src/classes}/ref/EventRef.d.ts +0 -0
- /package/dist/{classes → src/classes}/ref/GeoFlagRef.d.ts +0 -0
- /package/dist/{classes → src/classes}/ref/GeoIntlRef.d.ts +0 -0
- /package/dist/{classes → src/classes}/ref/GeoRef.d.ts +0 -0
- /package/dist/{classes → src/classes}/ref/RouterItemRef.d.ts +0 -0
- /package/dist/{classes → src/classes}/ref/ScrollbarWidthRef.d.ts +0 -0
- /package/dist/{composables → src/composables}/ref/useApiAsyncRef.d.ts +0 -0
- /package/dist/{composables → src/composables}/ref/useApiDelete.d.ts +0 -0
- /package/dist/{composables → src/composables}/ref/useApiGet.d.ts +0 -0
- /package/dist/{composables → src/composables}/ref/useApiManagementAsyncRef.d.ts +0 -0
- /package/dist/{composables → src/composables}/ref/useApiManagementRef.d.ts +0 -0
- /package/dist/{composables → src/composables}/ref/useApiPost.d.ts +0 -0
- /package/dist/{composables → src/composables}/ref/useApiPut.d.ts +0 -0
- /package/dist/{composables → src/composables}/ref/useApiRef.d.ts +0 -0
- /package/dist/{composables → src/composables}/ref/useApiRequest.d.ts +0 -0
- /package/dist/{composables → src/composables}/ref/useBroadcastValueRef.d.ts +0 -0
- /package/dist/{composables → src/composables}/ref/useCookieRef.d.ts +0 -0
- /package/dist/{composables → src/composables}/ref/useFormattersRef.d.ts +0 -0
- /package/dist/{composables → src/composables}/ref/useGeoIntlRef.d.ts +0 -0
- /package/dist/{composables → src/composables}/ref/useHashRef.d.ts +0 -0
- /package/dist/{composables → src/composables}/ref/useLazyItemByMarginRef.d.ts +0 -0
- /package/dist/{composables → src/composables}/ref/useLazyRef.d.ts +0 -0
- /package/dist/{composables → src/composables}/ref/useLoadingRef.d.ts +0 -0
- /package/dist/{composables → src/composables}/ref/useMeta.d.ts +0 -0
- /package/dist/{composables → src/composables}/ref/useRouterList.d.ts +0 -0
- /package/dist/{composables → src/composables}/ref/useSearchRef.d.ts +0 -0
- /package/dist/{composables → src/composables}/ref/useSearchValueRef.d.ts +0 -0
- /package/dist/{composables → src/composables}/ref/useSessionRef.d.ts +0 -0
- /package/dist/{composables → src/composables}/ref/useStorageRef.d.ts +0 -0
- /package/dist/{composables → src/composables}/ref/useTranslateRef.d.ts +0 -0
- /package/dist/{flags.d.ts → src/flags.d.ts} +0 -0
- /package/dist/{functions → src/functions}/basic.d.ts +0 -0
- /package/dist/{functions → src/functions}/computedAsync.d.ts +0 -0
- /package/dist/{functions → src/functions}/computedByLanguage.d.ts +0 -0
- /package/dist/{functions → src/functions}/computedEternity.d.ts +0 -0
- /package/dist/{functions → src/functions}/dxtFunctionalPlugin.d.ts +0 -0
- /package/dist/{functions → src/functions}/executeUse.d.ts +0 -0
- /package/dist/{functions → src/functions}/getInject.d.ts +0 -0
- /package/dist/{functions → src/functions}/getOptions.d.ts +0 -0
- /package/dist/{functions → src/functions}/ref/getBindRef.d.ts +0 -0
- /package/dist/{functions → src/functions}/ref/getRef.d.ts +0 -0
- /package/dist/{functions → src/functions}/ref/render.d.ts +0 -0
- /package/dist/{functions → src/functions}/ref/setRef.d.ts +0 -0
- /package/dist/{functions → src/functions}/ref/toRefItem.d.ts +0 -0
- /package/dist/{functions → src/functions}/render/getBind.d.ts +0 -0
- /package/dist/{functions → src/functions}/render/getClassName.d.ts +0 -0
- /package/dist/{functions → src/functions}/render/getIndexForRender.d.ts +0 -0
- /package/dist/{functions → src/functions}/toBind.d.ts +0 -0
- /package/dist/{functions → src/functions}/toBinds.d.ts +0 -0
- /package/dist/{library.d.ts → src/library.d.ts} +0 -0
- /package/dist/{types → src/types}/apiTypes.d.ts +0 -0
- /package/dist/{types → src/types}/constructorTypes.d.ts +0 -0
- /package/dist/{types → src/types}/refTypes.d.ts +0 -0
- /package/dist/{types → src/types}/searchTypes.d.ts +0 -0
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,26 @@
|
|
|
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
|
+
|
|
16
|
+
## [1.11.9] - 2026-05-12
|
|
17
|
+
|
|
18
|
+
### Added
|
|
19
|
+
- **useApiManagementRef**: Exposed `isResponseContractValid` and `responseValidationResult` to the return interface, providing better transparency for data schema validation.
|
|
20
|
+
- **useApiRef**: Added reactive properties `isResponseContractValid` and `responseValidationResult` to track the status and details of the response contract validation.
|
|
21
|
+
|
|
22
|
+
### Changed / Improved
|
|
23
|
+
- **JSDoc**: Comprehensive update of JSDoc comments for API management composables to improve developer experience and IDE support.
|
|
24
|
+
|
|
5
25
|
## [1.11.6] - 2026-05-01
|
|
6
26
|
|
|
7
27
|
### Added
|
package/dist/library.js
CHANGED
|
@@ -2,7 +2,7 @@ import { Api as e, ApiMethodItem as t, BroadcastMessage as n, Cookie as r, DataS
|
|
|
2
2
|
import { computed as N, customRef as ae, effectScope as oe, getCurrentInstance as se, h as ce, hasInjectionContext as le, inject as ue, isRef as P, onServerPrefetch as de, onUnmounted as fe, provide as pe, ref as F, shallowRef as I, toRefs as me, triggerRef as he, useAttrs as ge, useSlots as _e, watch as L, watchEffect as ve } from "vue";
|
|
3
3
|
export * from "@dxtmisha/functional-basic";
|
|
4
4
|
//#endregion
|
|
5
|
-
//#region \0@oxc-project+runtime@0.
|
|
5
|
+
//#region \0@oxc-project+runtime@0.129.0/helpers/typeof.js
|
|
6
6
|
function R(e) {
|
|
7
7
|
"@babel/helpers - typeof";
|
|
8
8
|
return R = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(e) {
|
|
@@ -12,7 +12,7 @@ function R(e) {
|
|
|
12
12
|
}, R(e);
|
|
13
13
|
}
|
|
14
14
|
//#endregion
|
|
15
|
-
//#region \0@oxc-project+runtime@0.
|
|
15
|
+
//#region \0@oxc-project+runtime@0.129.0/helpers/toPrimitive.js
|
|
16
16
|
function ye(e, t) {
|
|
17
17
|
if (R(e) != "object" || !e) return e;
|
|
18
18
|
var n = e[Symbol.toPrimitive];
|
|
@@ -24,13 +24,13 @@ function ye(e, t) {
|
|
|
24
24
|
return (t === "string" ? String : Number)(e);
|
|
25
25
|
}
|
|
26
26
|
//#endregion
|
|
27
|
-
//#region \0@oxc-project+runtime@0.
|
|
27
|
+
//#region \0@oxc-project+runtime@0.129.0/helpers/toPropertyKey.js
|
|
28
28
|
function be(e) {
|
|
29
29
|
var t = ye(e, "string");
|
|
30
30
|
return R(t) == "symbol" ? t : t + "";
|
|
31
31
|
}
|
|
32
32
|
//#endregion
|
|
33
|
-
//#region \0@oxc-project+runtime@0.
|
|
33
|
+
//#region \0@oxc-project+runtime@0.129.0/helpers/defineProperty.js
|
|
34
34
|
function z(e, t, n) {
|
|
35
35
|
return (t = be(t)) in e ? Object.defineProperty(e, t, {
|
|
36
36
|
value: n,
|
|
@@ -43,7 +43,7 @@ function z(e, t, n) {
|
|
|
43
43
|
//#region src/classes/design/DesignChanged.ts
|
|
44
44
|
var xe = class {
|
|
45
45
|
constructor(e, t = Object.keys(e)) {
|
|
46
|
-
z(this, "cache", {}), this.props = e, this.watch = t;
|
|
46
|
+
z(this, "props", void 0), z(this, "watch", void 0), z(this, "cache", {}), this.props = e, this.watch = t;
|
|
47
47
|
}
|
|
48
48
|
is(e) {
|
|
49
49
|
return E(e) ? !!e.find((e) => this.isDifferent(e)) : this.isDifferent(e);
|
|
@@ -64,7 +64,7 @@ var xe = class {
|
|
|
64
64
|
}
|
|
65
65
|
}, Se = class {
|
|
66
66
|
constructor(e, t, n) {
|
|
67
|
-
z(this, "event", {}), z(this, "changed", void 0), this.props = e, this.callback = t, this.changed = new xe(e, n);
|
|
67
|
+
z(this, "props", void 0), z(this, "callback", void 0), z(this, "event", {}), z(this, "changed", void 0), this.props = e, this.callback = t, this.changed = new xe(e, n);
|
|
68
68
|
}
|
|
69
69
|
make(e) {
|
|
70
70
|
return this.makeCallback(e), this;
|
|
@@ -135,7 +135,7 @@ function De(...e) {
|
|
|
135
135
|
//#region src/classes/design/DesignComponents.ts
|
|
136
136
|
var H = class {
|
|
137
137
|
constructor(e = {}, t) {
|
|
138
|
-
z(this, "caching", {}), this.components = e, this.modification = t;
|
|
138
|
+
z(this, "components", void 0), z(this, "modification", void 0), z(this, "caching", {}), this.components = e, this.modification = t;
|
|
139
139
|
}
|
|
140
140
|
is(e) {
|
|
141
141
|
return e in this.components;
|
|
@@ -178,7 +178,7 @@ var H = class {
|
|
|
178
178
|
}
|
|
179
179
|
}, Oe = class extends H {}, ke = class {
|
|
180
180
|
constructor(e, t, n) {
|
|
181
|
-
z(this, "name", void 0), z(this, "element", F()), z(this, "refs", void 0), z(this, "components", void 0), z(this, "emits", void 0), z(this, "classes", void 0), z(this, "classesSub", void 0), z(this, "styles", void 0), z(this, "stylesSub", void 0), z(this, "attrs", void 0), z(this, "slots", void 0), z(this, "dataExpose", void 0), this.props = t, this.options = n, this.name = this.initName(e), this.refs = this.props ? me(this.props) : {}, this.components = new H(n == null ? void 0 : n.components, n == null ? void 0 : n.compMod), this.emits = n == null ? void 0 : n.emits, this.classes = N(() => this.updateClasses()), this.styles = N(() => this.updateStyles()), this.attrs = ge(), this.slots = _e();
|
|
181
|
+
z(this, "props", void 0), z(this, "options", void 0), z(this, "name", void 0), z(this, "element", F()), z(this, "refs", void 0), z(this, "components", void 0), z(this, "emits", void 0), z(this, "classes", void 0), z(this, "classesSub", void 0), z(this, "styles", void 0), z(this, "stylesSub", void 0), z(this, "attrs", void 0), z(this, "slots", void 0), z(this, "dataExpose", void 0), this.props = t, this.options = n, this.name = this.initName(e), this.refs = this.props ? me(this.props) : {}, this.components = new H(n == null ? void 0 : n.components, n == null ? void 0 : n.compMod), this.emits = n == null ? void 0 : n.emits, this.classes = N(() => this.updateClasses()), this.styles = N(() => this.updateStyles()), this.attrs = ge(), this.slots = _e();
|
|
182
182
|
}
|
|
183
183
|
init() {
|
|
184
184
|
return this.classesSub = N(() => this.initClasses()), this.stylesSub = N(() => this.initStyles()), this.dataExpose = this.initExpose(), this;
|
|
@@ -453,7 +453,7 @@ var Ne = class {
|
|
|
453
453
|
}
|
|
454
454
|
}, Pe = class e {
|
|
455
455
|
constructor(e, t, n, r, i, a, o, s, c, l = 0, u = 9999999, d) {
|
|
456
|
-
z(this, "subList", {}), z(this, "data", N(() => S(B(this.list) || [], (e, t) => this.initItem(t, e)))), z(this, "liteData", N(() => {
|
|
456
|
+
z(this, "list", void 0), z(this, "focus", void 0), z(this, "highlight", void 0), z(this, "highlightLengthStart", void 0), z(this, "filterMode", void 0), z(this, "selected", void 0), z(this, "keyValue", void 0), z(this, "keyLabel", void 0), z(this, "lite", void 0), z(this, "min", void 0), z(this, "max", void 0), z(this, "parent", void 0), z(this, "subList", {}), z(this, "data", N(() => S(B(this.list) || [], (e, t) => this.initItem(t, e)))), z(this, "liteData", N(() => {
|
|
457
457
|
if (this.isLite()) {
|
|
458
458
|
let e = [];
|
|
459
459
|
for (let t of this.data.value) {
|
|
@@ -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.
|
|
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": [
|
|
@@ -57,17 +57,16 @@
|
|
|
57
57
|
],
|
|
58
58
|
"main": "dist/library.js",
|
|
59
59
|
"module": "dist/library.js",
|
|
60
|
-
"types": "dist/library.d.ts",
|
|
60
|
+
"types": "dist/src/library.d.ts",
|
|
61
61
|
"exports": {
|
|
62
62
|
".": {
|
|
63
63
|
"import": "./dist/library.js",
|
|
64
|
-
"types": "./dist/library.d.ts"
|
|
64
|
+
"types": "./dist/src/library.d.ts"
|
|
65
65
|
},
|
|
66
66
|
"./flags": {
|
|
67
67
|
"import": "./dist/flags.js",
|
|
68
|
-
"types": "./dist/flags.d.ts"
|
|
69
|
-
}
|
|
70
|
-
"./types/*": "./dist/*"
|
|
68
|
+
"types": "./dist/src/flags.d.ts"
|
|
69
|
+
}
|
|
71
70
|
},
|
|
72
71
|
"engines": {
|
|
73
72
|
"node": ">=20.0.0"
|
|
@@ -77,14 +76,6 @@
|
|
|
77
76
|
"@dxtmisha/functional-basic": "*",
|
|
78
77
|
"vue": "*"
|
|
79
78
|
},
|
|
80
|
-
"peerDependenciesMeta": {
|
|
81
|
-
"@dxtmisha/media": {
|
|
82
|
-
"optional": true
|
|
83
|
-
},
|
|
84
|
-
"vue": {
|
|
85
|
-
"optional": true
|
|
86
|
-
}
|
|
87
|
-
},
|
|
88
79
|
"dependencies": {},
|
|
89
80
|
"sideEffects": false
|
|
90
81
|
}
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|