@dxtmisha/functional 1.15.7 → 1.15.9
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 +7 -0
- package/ai-description.md +23 -6
- package/ai-mcp-resources.json +38 -0
- package/ai-types.md +784 -192
- package/dist/library.js +22 -23
- package/dist/types/listTypes.d.ts +1 -1
- package/package.json +4 -4
- package/ai-mcp.json +0 -38
- /package/{ai-prompts → ai-resources}/api-reference.md +0 -0
- /package/{ai-prompts → ai-resources}/localization-seo.md +0 -0
- /package/{ai-prompts → ai-resources}/reactivity-lists.md +0 -0
- /package/{ai-prompts → ai-resources}/storage-state.md +0 -0
package/dist/library.js
CHANGED
|
@@ -2,8 +2,7 @@ import { Api as e, ApiError as t, ApiMethodItem as n, BroadcastMessage as r, Coo
|
|
|
2
2
|
import { computed as F, customRef as oe, effectScope as se, getCurrentInstance as ce, h as le, hasInjectionContext as ue, inject as de, isRef as I, onServerPrefetch as fe, onUnmounted as pe, provide as me, ref as L, shallowRef as R, toRefs as he, triggerRef as ge, useAttrs as _e, useSlots as ve, watch as z, watchEffect as ye } from "vue";
|
|
3
3
|
import { MediaSocial as be } from "@dxtmisha/media";
|
|
4
4
|
export * from "@dxtmisha/functional-basic";
|
|
5
|
-
//#
|
|
6
|
-
//#region \0@oxc-project+runtime@0.138.0/helpers/esm/typeof.js
|
|
5
|
+
//#region \0@oxc-project+runtime@0.143.0/helpers/esm/typeof.js
|
|
7
6
|
function B(e) {
|
|
8
7
|
"@babel/helpers - typeof";
|
|
9
8
|
return B = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(e) {
|
|
@@ -13,7 +12,7 @@ function B(e) {
|
|
|
13
12
|
}, B(e);
|
|
14
13
|
}
|
|
15
14
|
//#endregion
|
|
16
|
-
//#region \0@oxc-project+runtime@0.
|
|
15
|
+
//#region \0@oxc-project+runtime@0.143.0/helpers/esm/toPrimitive.js
|
|
17
16
|
function xe(e, t) {
|
|
18
17
|
if (B(e) != "object" || !e) return e;
|
|
19
18
|
var n = e[Symbol.toPrimitive];
|
|
@@ -25,13 +24,13 @@ function xe(e, t) {
|
|
|
25
24
|
return (t === "string" ? String : Number)(e);
|
|
26
25
|
}
|
|
27
26
|
//#endregion
|
|
28
|
-
//#region \0@oxc-project+runtime@0.
|
|
27
|
+
//#region \0@oxc-project+runtime@0.143.0/helpers/esm/toPropertyKey.js
|
|
29
28
|
function Se(e) {
|
|
30
29
|
var t = xe(e, "string");
|
|
31
30
|
return B(t) == "symbol" ? t : t + "";
|
|
32
31
|
}
|
|
33
32
|
//#endregion
|
|
34
|
-
//#region \0@oxc-project+runtime@0.
|
|
33
|
+
//#region \0@oxc-project+runtime@0.143.0/helpers/esm/defineProperty.js
|
|
35
34
|
function V(e, t, n) {
|
|
36
35
|
return (t = Se(t)) in e ? Object.defineProperty(e, t, {
|
|
37
36
|
value: n,
|
|
@@ -562,9 +561,7 @@ var Me = class {
|
|
|
562
561
|
e.push(t);
|
|
563
562
|
break;
|
|
564
563
|
case "group":
|
|
565
|
-
case "menu":
|
|
566
|
-
e.push(t, ...this.getSubList(t).map.value);
|
|
567
|
-
break;
|
|
564
|
+
case "menu": e.push(t, ...this.getSubList(t).map.value);
|
|
568
565
|
}
|
|
569
566
|
}), e;
|
|
570
567
|
})), V(this, "mapItems", F(() => this.map.value.filter((e) => e.type === "item"))), V(this, "items", F(() => this.map.value.filter((e) => e.type === "item" || e.type === "group" || e.type === "menu"))), V(this, "highlightFirstItem", F(() => {
|
|
@@ -582,10 +579,10 @@ var Me = class {
|
|
|
582
579
|
return !!e && this.mapItems.value.findIndex((t) => M(t.index, e)) !== -1;
|
|
583
580
|
})), V(this, "isSelectedMin", F(() => {
|
|
584
581
|
let e = Number(H(this.min) || 0);
|
|
585
|
-
return e > 0
|
|
582
|
+
return e > 0 && this.selectedListInGroup.value.length >= e;
|
|
586
583
|
})), V(this, "isSelectedMax", F(() => {
|
|
587
584
|
let e = Number(H(this.max) || 9999999);
|
|
588
|
-
return e > 0
|
|
585
|
+
return e > 0 && this.selectedListInGroup.value.length >= e;
|
|
589
586
|
})), V(this, "selectedList", F(() => {
|
|
590
587
|
let e = this.getSelected();
|
|
591
588
|
return e && this.isSelected.value ? this.mapItems.value.filter((t) => M(t.index, e)) : [];
|
|
@@ -793,19 +790,21 @@ function Z(n, r, i = !0, a, o, s, c, l = !0, u = e.getItem()) {
|
|
|
793
790
|
e && (d.value = e);
|
|
794
791
|
}
|
|
795
792
|
}, S = async () => {
|
|
796
|
-
if (!_)
|
|
797
|
-
|
|
798
|
-
|
|
799
|
-
|
|
800
|
-
|
|
801
|
-
|
|
802
|
-
|
|
803
|
-
|
|
804
|
-
|
|
805
|
-
|
|
806
|
-
|
|
807
|
-
|
|
808
|
-
|
|
793
|
+
if (!_) {
|
|
794
|
+
if (g && g.abort(), g = f.value.controller || new AbortController(), y()) {
|
|
795
|
+
p.value = !0, m.value = !0;
|
|
796
|
+
try {
|
|
797
|
+
let e = await u.request({
|
|
798
|
+
controller: g,
|
|
799
|
+
...b()
|
|
800
|
+
});
|
|
801
|
+
e && (h.value = s == null ? void 0 : s(e), o ? d.value = o(e, h.value) : d.value = e);
|
|
802
|
+
} catch (e) {
|
|
803
|
+
d.value = void 0;
|
|
804
|
+
}
|
|
805
|
+
p.value = !1;
|
|
806
|
+
} else d.value !== void 0 && (d.value = void 0);
|
|
807
|
+
}
|
|
809
808
|
}, C = () => {
|
|
810
809
|
v == null || v(), d.value = void 0, _ = !0;
|
|
811
810
|
}, w = () => {
|
|
@@ -28,7 +28,7 @@ export type ListList<Item extends ListDataBasic = ListDataBasic> = ListDataItem<
|
|
|
28
28
|
* List or record structure for list data/
|
|
29
29
|
* Структура списка или записи для данных списка
|
|
30
30
|
*/
|
|
31
|
-
export type ListRecord<Item extends ListDataBasic = ListDataBasic> =
|
|
31
|
+
export type ListRecord<Item extends ListDataBasic = ListDataBasic> = Item[] | Record<string, Item>;
|
|
32
32
|
/**
|
|
33
33
|
* Extended list item with additional state properties/
|
|
34
34
|
* Расширенный элемент списка с дополнительными свойствами состояния
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dxtmisha/functional",
|
|
3
3
|
"private": false,
|
|
4
|
-
"version": "1.15.
|
|
4
|
+
"version": "1.15.9",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"description": "A comprehensive library of utilities, base classes, and Vue 3 composables for reactive web development — API orchestration, state singletons (executeUse), storage sync, i18n, formatters, and component design. Extends @dxtmisha/functional-basic.",
|
|
7
7
|
"keywords": [
|
|
@@ -65,16 +65,16 @@
|
|
|
65
65
|
"preview": "vite preview",
|
|
66
66
|
"test": "NODE_OPTIONS=\"--no-webstorage\" vitest",
|
|
67
67
|
"library": "dxt-library",
|
|
68
|
-
"types": "dxt-types",
|
|
68
|
+
"types": "dxt-types raw",
|
|
69
69
|
"prepublishOnly": "npm run library && npm run build",
|
|
70
70
|
"publish-to-npm": "npm publish --access public"
|
|
71
71
|
},
|
|
72
72
|
"files": [
|
|
73
|
-
"ai-
|
|
73
|
+
"ai-resources",
|
|
74
74
|
"dist",
|
|
75
75
|
"ai-description.md",
|
|
76
76
|
"ai-doc.md",
|
|
77
|
-
"ai-mcp.json",
|
|
77
|
+
"ai-mcp-resources.json",
|
|
78
78
|
"ai-types.md",
|
|
79
79
|
"CHANGELOG.md",
|
|
80
80
|
"LICENSE",
|
package/ai-mcp.json
DELETED
|
@@ -1,38 +0,0 @@
|
|
|
1
|
-
[
|
|
2
|
-
{
|
|
3
|
-
"uri": "@dxtmisha/functional/ai-types.md",
|
|
4
|
-
"name": "Vue Functional Reference",
|
|
5
|
-
"mimeType": "text/markdown",
|
|
6
|
-
"description": "TypeScript type definitions and composable API specifications for Vue application state management, data formatting, localization, and API request handling."
|
|
7
|
-
},
|
|
8
|
-
{
|
|
9
|
-
"uri": "@dxtmisha/functional/ai-description.md",
|
|
10
|
-
"name": "Vue Framework Architecture",
|
|
11
|
-
"mimeType": "text/markdown",
|
|
12
|
-
"description": "Comprehensive architectural conventions and guidelines for a Vue 3 reactive utility framework, covering component construction, API lifecycle management, localization, and persistent state controls."
|
|
13
|
-
},
|
|
14
|
-
{
|
|
15
|
-
"uri": "@dxtmisha/functional/ai-prompts/api-reference.md",
|
|
16
|
-
"name": "API Reference",
|
|
17
|
-
"mimeType": "text/markdown",
|
|
18
|
-
"description": "Defines architectural patterns and usage guidelines for REST API management and scope-isolated reactive singletons within @dxtmisha/functional. Details scope factory initialization alongside reactive CRUD operations with client-side caching and contract validation."
|
|
19
|
-
},
|
|
20
|
-
{
|
|
21
|
-
"uri": "@dxtmisha/functional/ai-prompts/localization-seo.md",
|
|
22
|
-
"name": "Localization and SEO",
|
|
23
|
-
"mimeType": "text/markdown",
|
|
24
|
-
"description": "Covers locale-aware formatting, multi-key translations, geographic context management, and reactive HTML document metadata handling for SEO optimization."
|
|
25
|
-
},
|
|
26
|
-
{
|
|
27
|
-
"uri": "@dxtmisha/functional/ai-prompts/reactivity-lists.md",
|
|
28
|
-
"name": "Reactivity and Lists",
|
|
29
|
-
"mimeType": "text/markdown",
|
|
30
|
-
"description": "Comprehensive guide to advanced asynchronous reactivity composables, list data models, multi-field search filtering, and DOM observer utilities."
|
|
31
|
-
},
|
|
32
|
-
{
|
|
33
|
-
"uri": "@dxtmisha/functional/ai-prompts/storage-state.md",
|
|
34
|
-
"name": "Reactive Browser State",
|
|
35
|
-
"mimeType": "text/markdown",
|
|
36
|
-
"description": "API reference and usage examples for reactive composables managing persistent browser state and cross-tab synchronization. Covers localStorage, sessionStorage, cookies, BroadcastChannel, and URL hash state."
|
|
37
|
-
}
|
|
38
|
-
]
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|