@dxtmisha/functional 1.11.11 → 1.11.12
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 +10 -0
- package/ai-description.txt +1 -5
- package/ai-doc.ru.txt +11 -0
- package/ai-doc.txt +11 -0
- package/ai-types.txt +260 -277
- package/dist/library.js +406 -390
- package/dist/src/composables/ref/useApiAsyncRef.d.ts +64 -12
- package/dist/src/composables/ref/useApiDelete.d.ts +10 -2
- package/dist/src/composables/ref/useApiGet.d.ts +10 -2
- package/dist/src/composables/ref/useApiManagementAsyncRef.d.ts +11 -4
- package/dist/src/composables/ref/useApiManagementRef.d.ts +5 -3
- package/dist/src/composables/ref/useApiPost.d.ts +10 -2
- package/dist/src/composables/ref/useApiPut.d.ts +10 -2
- package/dist/src/composables/ref/useApiRef.d.ts +65 -12
- package/dist/src/composables/ref/useApiRequest.d.ts +9 -2
- package/dist/src/functions/ref/getApiErrorRef.d.ts +10 -0
- package/dist/src/library.d.ts +1 -0
- package/dist/src/types/apiTypes.d.ts +5 -1
- package/package.json +1 -1
package/ai-types.txt
CHANGED
|
@@ -6,372 +6,370 @@ The following is the content of "exports" from package.json:
|
|
|
6
6
|
{
|
|
7
7
|
".": {
|
|
8
8
|
"import": "./dist/library.js",
|
|
9
|
-
"types": "./dist/library.d.ts"
|
|
9
|
+
"types": "./dist/src/library.d.ts"
|
|
10
10
|
},
|
|
11
11
|
"./flags": {
|
|
12
12
|
"import": "./dist/flags.js",
|
|
13
|
-
"types": "./dist/flags.d.ts"
|
|
14
|
-
}
|
|
15
|
-
"./types/*": "./dist/*"
|
|
13
|
+
"types": "./dist/src/flags.d.ts"
|
|
14
|
+
}
|
|
16
15
|
}
|
|
17
16
|
|
|
18
|
-
// File: classes/design/DesignAbstract.d.ts
|
|
19
|
-
/** Base class for constructor. */
|
|
17
|
+
// File: src/classes/design/DesignAbstract.d.ts
|
|
18
|
+
/** Base class for working with the constructor. */
|
|
20
19
|
export declare abstract class DesignAbstract<T extends Record<string, any>, C extends Record<string, any>> {
|
|
21
20
|
/**
|
|
22
21
|
* @param props base data
|
|
23
|
-
* @param callback callback
|
|
24
|
-
* @param changed data for tracking
|
|
22
|
+
* @param callback callback function when value changes
|
|
23
|
+
* @param changed base data for tracking
|
|
25
24
|
*/
|
|
26
25
|
constructor(props: T, callback?: ((event: C) => void) | undefined, changed?: string[]);
|
|
27
|
-
/** Calls the callback function. */
|
|
26
|
+
/** Calls the callback function. @param compelled forces data to update */
|
|
28
27
|
make(compelled?: boolean): this;
|
|
29
|
-
/** Calls the callback function. */
|
|
28
|
+
/** Calls the callback function. @param compelled forces data to update */
|
|
30
29
|
makeCallback(compelled?: boolean): void;
|
|
31
30
|
}
|
|
32
|
-
// File: classes/design/DesignAsyncAbstract.d.ts
|
|
33
|
-
/** Base class for constructor. */
|
|
31
|
+
// File: src/classes/design/DesignAsyncAbstract.d.ts
|
|
32
|
+
/** Base class for working with the constructor. */
|
|
34
33
|
export declare abstract class DesignAsyncAbstract<T extends Record<string, any>, C extends Record<string, any>> extends DesignAbstract<T, C> {
|
|
35
|
-
/**
|
|
34
|
+
/** @param compelled forces data to update */
|
|
36
35
|
make(compelled?: boolean): this;
|
|
37
|
-
/**
|
|
36
|
+
/** @param compelled forces data to update */
|
|
38
37
|
makeCallback(compelled?: boolean): Promise<void>;
|
|
39
38
|
}
|
|
40
|
-
// File: classes/design/DesignChanged.d.ts
|
|
41
|
-
/**
|
|
39
|
+
// File: src/classes/design/DesignChanged.d.ts
|
|
40
|
+
/** Class checks edited values. */
|
|
42
41
|
export declare class DesignChanged<T extends Record<string, any>> {
|
|
43
42
|
/**
|
|
44
43
|
* @param props base data
|
|
45
|
-
* @param watch tracking
|
|
44
|
+
* @param watch data for tracking
|
|
46
45
|
*/
|
|
47
46
|
constructor(props: T, watch?: string[]);
|
|
48
|
-
/**
|
|
47
|
+
/** Checks if value was updated. @param name property name */
|
|
49
48
|
is(name: string | string[]): boolean;
|
|
50
|
-
/**
|
|
49
|
+
/** Checks if there are changes in data. */
|
|
51
50
|
isChanged(): boolean;
|
|
52
51
|
/** Updates all values. */
|
|
53
52
|
update(): void;
|
|
54
53
|
}
|
|
55
|
-
// File: classes/design/DesignComp.d.ts
|
|
54
|
+
// File: src/classes/design/DesignComp.d.ts
|
|
56
55
|
export declare class DesignComp<COMP extends ConstrComponent, P extends ConstrItem> extends DesignComponents<COMP, P> {
|
|
57
56
|
}
|
|
58
|
-
// File: classes/design/DesignComponents.d.ts
|
|
59
|
-
/** Class for connected components. */
|
|
57
|
+
// File: src/classes/design/DesignComponents.d.ts
|
|
58
|
+
/** Class for working with connected components. */
|
|
60
59
|
export declare class DesignComponents<COMP extends ConstrComponent, P extends ConstrItem> {
|
|
61
60
|
/**
|
|
62
|
-
* @param components connected components
|
|
63
|
-
* @param modification modification
|
|
61
|
+
* @param components list of connected components
|
|
62
|
+
* @param modification data for modification
|
|
64
63
|
*/
|
|
65
64
|
constructor(components?: COMP, modification?: ConstrComponentMod<P> | undefined);
|
|
66
|
-
/** Check component
|
|
65
|
+
/** Check presence of component. @param name component name */
|
|
67
66
|
is<K extends keyof COMP>(name: K): name is K;
|
|
68
|
-
/** Get component object. */
|
|
67
|
+
/** Get component object. @param name component name */
|
|
69
68
|
get<K extends keyof COMP>(name: K): COMP[K];
|
|
70
|
-
/** Returns modified input data. */
|
|
69
|
+
/** Returns modified input data. @param index item name @param props basic data */
|
|
71
70
|
getModification<K extends keyof P>(index?: K & string | string, props?: P[K] | Record<string, any>): Record<string, any> | undefined;
|
|
72
|
-
/** Render component by name as array. */
|
|
71
|
+
/** Render component by name as array. @param name component name @param props component props @param children sub-elements @param index key name */
|
|
73
72
|
render<K extends keyof COMP, PK extends keyof P>(name: K & string, props?: P[PK] & ConstrItem | ConstrItem, children?: RawChildren | RawSlots, index?: PK & string | string): VNode[];
|
|
74
|
-
/** Render
|
|
73
|
+
/** Render component by name. @param name component name @param props component props @param children sub-elements @param index key name */
|
|
75
74
|
renderOne<K extends keyof COMP, PK extends keyof P>(name: K & string, props?: P[PK] & ConstrItem | ConstrItem, children?: RawChildren | RawSlots, index?: PK & string | string): VNode | undefined;
|
|
76
|
-
/** Render component and add to array. */
|
|
75
|
+
/** Render component by name and add to array. @param item array to add to @param name component name @param props component props @param children sub-elements @param index key name */
|
|
77
76
|
renderAdd<K extends keyof COMP, PK extends keyof P>(item: any[], name: K & string, props?: P[PK] & ConstrItem | ConstrItem, children?: RawChildren | RawSlots, index?: PK & string | string): this;
|
|
78
77
|
}
|
|
79
|
-
// File: classes/design/DesignConstructorAbstract.d.ts
|
|
78
|
+
// File: src/classes/design/DesignConstructorAbstract.d.ts
|
|
80
79
|
/** Class for collecting functional components. */
|
|
81
80
|
export declare abstract class DesignConstructorAbstract<E extends Element, COMP extends ConstrComponent, EMITS extends ConstrItem, EXPOSE extends ConstrItem, SLOTS extends ConstrItem, CLASSES extends ConstrClasses, P extends ConstrItem> {
|
|
82
81
|
/** Get class name. */
|
|
83
82
|
getName(): string;
|
|
84
83
|
/** Get design name. */
|
|
85
84
|
getDesign(): string;
|
|
86
|
-
/** Get sub-class name. */
|
|
85
|
+
/** Get sub-class name. @param name class level names */
|
|
87
86
|
getSubClass(name: string | string[]): string;
|
|
88
|
-
/** Get status class name. */
|
|
87
|
+
/** Get status class name. @param name class level names */
|
|
89
88
|
getStatusClass(name: string | string[]): string;
|
|
90
|
-
/** Get style property name. */
|
|
89
|
+
/** Get style property name. @param name class level names */
|
|
91
90
|
getStyle(name: string | string[]): string;
|
|
92
91
|
/** Get additional parameters. */
|
|
93
92
|
getAttrs(): ConstrItem;
|
|
94
|
-
/** List external variables. */
|
|
93
|
+
/** List of external variables. */
|
|
95
94
|
expose(): ConstrExpose<E, EXPOSE>;
|
|
96
|
-
/**
|
|
95
|
+
/** Rendering method for setup. */
|
|
97
96
|
render(): () => VNode | (VNode | any)[] | undefined;
|
|
98
97
|
}
|
|
99
|
-
// File: classes/ref/DatetimeRef.d.ts
|
|
100
|
-
/** Class for
|
|
98
|
+
// File: src/classes/ref/DatetimeRef.d.ts
|
|
99
|
+
/** Class for working with dates. */
|
|
101
100
|
export declare class DatetimeRef {
|
|
102
101
|
/**
|
|
103
|
-
* @param date processing
|
|
102
|
+
* @param date date for processing
|
|
104
103
|
* @param type output format type
|
|
105
104
|
* @param code country/language code
|
|
106
105
|
*/
|
|
107
106
|
constructor(date: RefOrNormal<NumberOrStringOrDate>, type?: RefOrNormal<GeoDate>, code?: RefOrNormal<string>);
|
|
108
|
-
/**
|
|
107
|
+
/** Returns basic date data. */
|
|
109
108
|
getItem(): Ref<NumberOrStringOrDate>;
|
|
110
|
-
/**
|
|
109
|
+
/** Returns Date object. */
|
|
111
110
|
getDate(): Ref<Date>;
|
|
112
|
-
/** Get Datetime
|
|
111
|
+
/** Get base Datetime class object. */
|
|
113
112
|
getDatetime(): Datetime;
|
|
114
|
-
/**
|
|
113
|
+
/** Returns hours format. */
|
|
115
114
|
getHoursType(): ComputedRef<GeoHours>;
|
|
116
|
-
/**
|
|
115
|
+
/** Returns first day of week code. */
|
|
117
116
|
getFirstDayCode(): ComputedRef<GeoFirstDay>;
|
|
118
|
-
/** Get year
|
|
117
|
+
/** Get year local time. */
|
|
119
118
|
getYear(): ComputedRef<number>;
|
|
120
|
-
/** Get month (
|
|
119
|
+
/** Get month local time (zero-based). */
|
|
121
120
|
getMonth(): ComputedRef<number>;
|
|
122
|
-
/** Get day of month. */
|
|
121
|
+
/** Get day of month local time. */
|
|
123
122
|
getDay(): ComputedRef<number>;
|
|
124
|
-
/** Get hour. */
|
|
123
|
+
/** Get hour local time. */
|
|
125
124
|
getHour(): ComputedRef<number>;
|
|
126
|
-
/** Get minutes. */
|
|
125
|
+
/** Get minutes local time. */
|
|
127
126
|
getMinute(): ComputedRef<number>;
|
|
128
|
-
/** Get seconds. */
|
|
127
|
+
/** Get seconds local time. */
|
|
129
128
|
getSecond(): ComputedRef<number>;
|
|
130
129
|
/** Get last day of week. */
|
|
131
130
|
getMaxDay(): ComputedRef<number>;
|
|
132
|
-
/** Locale
|
|
131
|
+
/** Locale formatting. @param type format type @param styleOptions month representation */
|
|
133
132
|
locale(type?: GeoDate, styleOptions?: Intl.DateTimeFormatOptions['month'] | Intl.DateTimeFormatOptions): ComputedRef<string>;
|
|
134
|
-
/** Standard data output. */
|
|
133
|
+
/** Standard data output. @param timeZone add time zone */
|
|
135
134
|
standard(timeZone?: boolean): ComputedRef<string>;
|
|
136
135
|
}
|
|
137
|
-
// File: classes/ref/EffectScopeGlobal.d.ts
|
|
138
|
-
/** Global effect scope. */
|
|
136
|
+
// File: src/classes/ref/EffectScopeGlobal.d.ts
|
|
137
|
+
/** Global effect scope class. */
|
|
139
138
|
export declare class EffectScopeGlobal {
|
|
140
|
-
/**
|
|
139
|
+
/** Runs function in global scope. @returns return value of function */
|
|
141
140
|
static run<T>(fn: () => T): T | undefined;
|
|
142
141
|
}
|
|
143
|
-
// File: classes/ref/EventRef.d.ts
|
|
144
|
-
/**
|
|
142
|
+
// File: src/classes/ref/EventRef.d.ts
|
|
143
|
+
/** Class for working with events (Ref). */
|
|
145
144
|
export declare class EventRef<E extends ElementOrWindow, O extends Event, D extends Record<string, any> = Record<string, any>> extends EventItem<E, O, D> {
|
|
145
|
+
/**
|
|
146
|
+
* @param elementSelector element
|
|
147
|
+
* @param elementSelectorControl control element
|
|
148
|
+
* @param type type
|
|
149
|
+
* @param listener event listener
|
|
150
|
+
* @param options characteristics
|
|
151
|
+
* @param detail event-dependent value
|
|
152
|
+
*/
|
|
146
153
|
constructor(elementSelector?: RefOrNormal<ElementOrString<E> | undefined>, elementSelectorControl?: RefOrNormal<ElementOrString<HTMLElement>>, type?: string | string[], listener?: EventListenerDetail<O, D>, options?: EventOptions, detail?: D);
|
|
147
154
|
}
|
|
148
|
-
// File: classes/ref/GeoFlagRef.d.ts
|
|
149
|
-
/**
|
|
155
|
+
// File: src/classes/ref/GeoFlagRef.d.ts
|
|
156
|
+
/** Class for working with Flags. */
|
|
150
157
|
export declare class GeoFlagRef {
|
|
151
|
-
/** @param code country code */
|
|
158
|
+
/** @param code country and language code */
|
|
152
159
|
constructor(code?: RefOrNormal<string>);
|
|
153
|
-
/** Get reactive country code. */
|
|
160
|
+
/** Get reactive object with country code. */
|
|
154
161
|
getCode(): Ref<string>;
|
|
155
|
-
/** Get country
|
|
162
|
+
/** Get country and flag info. @param code country code */
|
|
156
163
|
get(code?: string): ComputedRef<GeoFlagItem | undefined>;
|
|
157
|
-
/** Get flag
|
|
164
|
+
/** Get flag link. @param code country code */
|
|
158
165
|
getFlag(code?: string): ComputedRef<string | undefined>;
|
|
159
|
-
/** Get list
|
|
166
|
+
/** Get countries list by codes. @param codes country codes */
|
|
160
167
|
getList(codes?: string[]): ComputedRef<GeoFlagItem[]>;
|
|
161
|
-
/** Get list in national language. */
|
|
168
|
+
/** Get countries list by codes in national language. @param codes country codes */
|
|
162
169
|
getNational(codes?: string[]): ComputedRef<GeoFlagNational[]>;
|
|
163
170
|
}
|
|
164
|
-
// File: classes/ref/GeoIntlRef.d.ts
|
|
165
|
-
/** Reactive
|
|
171
|
+
// File: src/classes/ref/GeoIntlRef.d.ts
|
|
172
|
+
/** Reactive class for formatting numbers and dates. */
|
|
166
173
|
export declare class GeoIntlRef {
|
|
167
|
-
/** @param code
|
|
174
|
+
/** @param code country code/language */
|
|
168
175
|
constructor(code?: RefOrNormal<string>);
|
|
169
176
|
/** Translation of display names. */
|
|
170
177
|
display(value?: RefOrNormal<string>, typeOptions?: Intl.DisplayNamesOptions['type'] | Intl.DisplayNamesOptions): ComputedRef<string>;
|
|
171
|
-
/** Get language
|
|
178
|
+
/** Get language display name. */
|
|
172
179
|
languageName(value?: RefOrNormal<string>, style?: Intl.RelativeTimeFormatStyle): ComputedRef<string>;
|
|
173
|
-
/** Get region
|
|
180
|
+
/** Get region display name. */
|
|
174
181
|
countryName(value?: RefOrNormal<string>, style?: Intl.RelativeTimeFormatStyle): ComputedRef<string>;
|
|
175
|
-
/**
|
|
182
|
+
/** Number formatting. */
|
|
176
183
|
number(value: RefOrNormal<NumberOrString>, options?: Intl.NumberFormatOptions): ComputedRef<string>;
|
|
177
|
-
/** Decimal point. */
|
|
184
|
+
/** Decimal point symbol. */
|
|
178
185
|
decimal(): ComputedRef<string>;
|
|
179
|
-
/**
|
|
186
|
+
/** Currency formatting. */
|
|
180
187
|
currency(value: RefOrNormal<NumberOrString>, currencyOptions?: RefOrNormal<string | Intl.NumberFormatOptions>, numberOnly?: boolean): ComputedRef<string>;
|
|
181
|
-
/** Get currency symbol. */
|
|
188
|
+
/** Get currency symbol or code. */
|
|
182
189
|
currencySymbol(currency: RefOrNormal<string>, currencyDisplay?: keyof Intl.NumberFormatOptionsCurrencyDisplayRegistry): ComputedRef<string>;
|
|
183
|
-
/**
|
|
190
|
+
/** Unit formatting. */
|
|
184
191
|
unit(value: RefOrNormal<NumberOrString>, unitOptions?: string | Intl.NumberFormatOptions): ComputedRef<string>;
|
|
185
|
-
/**
|
|
192
|
+
/** Formatted file size. */
|
|
186
193
|
sizeFile(value: RefOrNormal<NumberOrString>, unitOptions?: 'byte' | 'kilobyte' | 'megabyte' | 'gigabyte' | 'terabyte' | 'petabyte' | Intl.NumberFormatOptions): ComputedRef<string>;
|
|
187
|
-
/**
|
|
194
|
+
/** Number as percentage. */
|
|
188
195
|
percent(value: RefOrNormal<NumberOrString>, options?: Intl.NumberFormatOptions): ComputedRef<string>;
|
|
189
|
-
/**
|
|
196
|
+
/** Number as percentage (unit). */
|
|
190
197
|
percentBy100(value: RefOrNormal<NumberOrString>, options?: Intl.NumberFormatOptions): ComputedRef<string>;
|
|
191
|
-
/**
|
|
198
|
+
/** Plural formatting. */
|
|
192
199
|
plural(value: RefOrNormal<NumberOrString>, words: string, options?: Intl.PluralRulesOptions, optionsNumber?: Intl.NumberFormatOptions): ComputedRef<string>;
|
|
193
|
-
/**
|
|
200
|
+
/** Date and time formatting. */
|
|
194
201
|
date(value: RefOrNormal<NumberOrStringOrDate>, type?: GeoDate, styleOptions?: Intl.DateTimeFormatOptions['month'] | Intl.DateTimeFormatOptions, hour24?: boolean): ComputedRef<string>;
|
|
195
|
-
/**
|
|
202
|
+
/** Relative time formatting. */
|
|
196
203
|
relative(value: RefOrNormal<NumberOrStringOrDate>, styleOptions?: Intl.RelativeTimeFormatStyle | Intl.RelativeTimeFormatOptions, todayValue?: Date): ComputedRef<string>;
|
|
197
|
-
/**
|
|
204
|
+
/** Relative time formatting with limit. */
|
|
198
205
|
relativeLimit(value: RefOrNormal<NumberOrStringOrDate>, limit: number, todayValue?: Date, relativeOptions?: Intl.RelativeTimeFormatStyle | Intl.RelativeTimeFormatOptions, dateOptions?: Intl.DateTimeFormatOptions['month'] | Intl.DateTimeFormatOptions, type?: GeoDate, hour24?: boolean): ComputedRef<string>;
|
|
199
|
-
/**
|
|
206
|
+
/** Formatted relative value. */
|
|
200
207
|
relativeByValue(value: RefOrNormal<NumberOrString>, unit: Intl.RelativeTimeFormatUnit, styleOptions?: Intl.RelativeTimeFormatStyle | Intl.RelativeTimeFormatOptions): ComputedRef<string>;
|
|
201
|
-
/** Month
|
|
208
|
+
/** Month names. */
|
|
202
209
|
month(value?: RefOrNormal<NumberOrStringOrDate>, style?: Intl.DateTimeFormatOptions['month']): ComputedRef<string>;
|
|
203
210
|
/** List of months. */
|
|
204
211
|
months(style?: Intl.DateTimeFormatOptions['month']): ComputedRef<ItemValue<number | undefined>[]>;
|
|
205
|
-
/**
|
|
212
|
+
/** Weekday names. */
|
|
206
213
|
weekday(value?: RefOrNormal<NumberOrStringOrDate>, style?: Intl.DateTimeFormatOptions['weekday']): ComputedRef<string>;
|
|
207
214
|
/** List of weekdays. */
|
|
208
215
|
weekdays(style?: Intl.DateTimeFormatOptions['weekday']): ComputedRef<ItemValue<number | undefined>[]>;
|
|
209
|
-
/** Time
|
|
216
|
+
/** Time formatting. */
|
|
210
217
|
time(value: RefOrNormal<NumberOrStringOrDate>): ComputedRef<string>;
|
|
211
|
-
/** Sort strings
|
|
218
|
+
/** Sort strings. */
|
|
212
219
|
sort<T>(data: RefOrNormal<T[]>, compareFn?: (a: T, b: T) => [string, string]): ComputedRef<T[]>;
|
|
213
220
|
}
|
|
214
|
-
// File: classes/ref/GeoRef.d.ts
|
|
215
|
-
/** Reactive
|
|
221
|
+
// File: src/classes/ref/GeoRef.d.ts
|
|
222
|
+
/** Reactive class for geographic data. */
|
|
216
223
|
export declare class GeoRef {
|
|
217
|
-
/**
|
|
224
|
+
/** Full geographic info. */
|
|
218
225
|
static get(): Ref<GeoItemFull>;
|
|
219
|
-
/**
|
|
226
|
+
/** Current country code. */
|
|
220
227
|
static getCountry(): ComputedRef<string>;
|
|
221
|
-
/**
|
|
228
|
+
/** Current language code. */
|
|
222
229
|
static getLanguage(): ComputedRef<string>;
|
|
223
|
-
/**
|
|
230
|
+
/** Full standard locale format. */
|
|
224
231
|
static getStandard(): ComputedRef<string>;
|
|
225
|
-
/**
|
|
232
|
+
/** First day of the week. */
|
|
226
233
|
static getFirstDay(): ComputedRef<string>;
|
|
227
|
-
/** Set data by code. */
|
|
234
|
+
/** Set data by full code. @param code country/language code */
|
|
228
235
|
static set(code: string): void;
|
|
229
236
|
}
|
|
230
|
-
// File: classes/ref/ListDataRef.d.ts
|
|
231
|
-
/**
|
|
237
|
+
// File: src/classes/ref/ListDataRef.d.ts
|
|
238
|
+
/** Class for managing data list. */
|
|
232
239
|
export declare class ListDataRef {
|
|
233
|
-
/**
|
|
234
|
-
* @param list data
|
|
235
|
-
* @param focus focused item
|
|
236
|
-
* @param highlight search text
|
|
237
|
-
* @param highlightLengthStart min length for highlight
|
|
238
|
-
* @param filterMode filtering mode
|
|
239
|
-
* @param selected selected items
|
|
240
|
-
* @param keyValue value key
|
|
241
|
-
* @param keyLabel label key
|
|
242
|
-
* @param lite lite mode threshold
|
|
243
|
-
* @param min min selection
|
|
244
|
-
* @param max max selection
|
|
245
|
-
* @param parent parent ID
|
|
246
|
-
*/
|
|
247
240
|
constructor(list: RefOrNormal<ListListInput | undefined>, focus?: RefType<ListSelectedItem | undefined> | undefined, highlight?: RefType<string | undefined> | undefined, highlightLengthStart?: RefType<number | undefined> | undefined, filterMode?: RefType<boolean | undefined> | undefined, selected?: RefType<ListSelectedList | undefined> | undefined, keyValue?: RefType<string | undefined> | undefined, keyLabel?: RefType<string | undefined> | undefined, lite?: RefType<number | undefined> | undefined, min?: RefOrNormal<number | string | undefined>, max?: RefOrNormal<number | string | undefined>, parent?: string | undefined);
|
|
248
|
-
/** List for
|
|
241
|
+
/** List for forming a list. */
|
|
249
242
|
readonly data: ComputedRef<ListList>;
|
|
250
|
-
/**
|
|
243
|
+
/** Simplified list for quick loading. */
|
|
251
244
|
readonly liteData: ComputedRef<ListList>;
|
|
252
|
-
/**
|
|
245
|
+
/** List with all additional state data. */
|
|
253
246
|
readonly fullData: ComputedRef<ListDataFull>;
|
|
254
|
-
/** Flat map of entries. */
|
|
247
|
+
/** Flat map of all entries. */
|
|
255
248
|
readonly map: ComputedRef<ListList>;
|
|
256
|
-
/**
|
|
249
|
+
/** List consisting only of items. */
|
|
257
250
|
readonly mapItems: ComputedRef<ListList>;
|
|
258
|
-
/**
|
|
251
|
+
/** List of values for selection. */
|
|
259
252
|
readonly items: ComputedRef<ListList>;
|
|
260
|
-
/**
|
|
253
|
+
/** First found search index. */
|
|
261
254
|
readonly highlightFirstItem: ComputedRef<number>;
|
|
262
|
-
/**
|
|
255
|
+
/** Is any item selected. */
|
|
263
256
|
readonly isSelected: ComputedRef<boolean>;
|
|
264
|
-
/**
|
|
257
|
+
/** Is minimum selection reached. */
|
|
265
258
|
readonly isSelectedMin: ComputedRef<boolean>;
|
|
266
|
-
/**
|
|
259
|
+
/** Is maximum selection reached. */
|
|
267
260
|
readonly isSelectedMax: ComputedRef<boolean>;
|
|
268
|
-
/** Selected items map. */
|
|
261
|
+
/** Selected items on map. */
|
|
269
262
|
readonly selectedList: ComputedRef<ListList>;
|
|
270
|
-
/** Selected in group. */
|
|
263
|
+
/** Selected items in current group. */
|
|
271
264
|
readonly selectedListInGroup: ComputedRef<ListList>;
|
|
272
|
-
/** Selected labels. */
|
|
265
|
+
/** Selected labels on map. */
|
|
273
266
|
readonly selectedNames: ComputedRef<ListNames>;
|
|
274
|
-
/** Selected values. */
|
|
267
|
+
/** Selected values on map. */
|
|
275
268
|
readonly selectedValues: ComputedRef<any[]>;
|
|
276
269
|
/** Is lite mode active. */
|
|
277
270
|
isLite(): boolean;
|
|
278
|
-
/** Is focus
|
|
271
|
+
/** Is element in focus. */
|
|
279
272
|
isFocus(): boolean;
|
|
280
|
-
/** Is result
|
|
273
|
+
/** Is there a search result highlight. */
|
|
281
274
|
isHighlight(): boolean;
|
|
282
275
|
/** Is highlighting active. */
|
|
283
276
|
isHighlightActive(): boolean;
|
|
284
|
-
/**
|
|
277
|
+
/** Count of records in current list. */
|
|
285
278
|
getLength(): number;
|
|
286
|
-
/**
|
|
279
|
+
/** Total available records in map. */
|
|
287
280
|
getLengthByMap(): number;
|
|
288
|
-
/**
|
|
281
|
+
/** Total available records (items). */
|
|
289
282
|
getLengthByItems(): number;
|
|
290
|
-
/** Get
|
|
283
|
+
/** Get focus identifier. */
|
|
291
284
|
getFocus(): ListSelectedItem | undefined;
|
|
285
|
+
/** Get item in focus. */
|
|
286
|
+
getFocusItem(): ListDataItem | undefined;
|
|
292
287
|
/** Get highlight text. */
|
|
293
288
|
getHighlight(): string | undefined;
|
|
294
|
-
/** Get
|
|
289
|
+
/** Get minimum highlight length. */
|
|
295
290
|
getHighlightLengthStart(): number;
|
|
296
|
-
/** Get selected
|
|
291
|
+
/** Get selected identifiers. */
|
|
297
292
|
getSelected(): ListSelectedList | undefined;
|
|
298
|
-
/** Get item by relative step. */
|
|
293
|
+
/** Get item by relative step from selected. */
|
|
299
294
|
getSelectedByStep(step: number): ListSelectedItem | undefined;
|
|
300
|
-
/** Get next item. */
|
|
295
|
+
/** Get next item from selected. */
|
|
301
296
|
getSelectedNext(): ListSelectedItem | undefined;
|
|
302
|
-
/** Get previous item. */
|
|
297
|
+
/** Get previous item from selected. */
|
|
303
298
|
getSelectedPrev(): ListSelectedItem | undefined;
|
|
304
|
-
/** Get item by step from
|
|
299
|
+
/** Get item by step from item. */
|
|
305
300
|
getItemByStep(item: ListDataItem, step: number): ListDataItem | undefined;
|
|
306
|
-
/** Get next item
|
|
301
|
+
/** Get next item. */
|
|
307
302
|
getItemNext(item: ListDataItem): ListDataItem | undefined;
|
|
308
|
-
/** Get previous item
|
|
303
|
+
/** Get previous item. */
|
|
309
304
|
getItemPrev(item: ListDataItem): ListDataItem | undefined;
|
|
310
|
-
/** Get item by index
|
|
305
|
+
/** Get item by step from index. */
|
|
311
306
|
getIndexByStep(index: string, step: number): ListDataItem | undefined;
|
|
312
307
|
/** Get next item from index. */
|
|
313
308
|
getIndexNext(index: string): ListDataItem | undefined;
|
|
314
309
|
/** Get previous item from index. */
|
|
315
310
|
getIndexPrev(index: string): ListDataItem | undefined;
|
|
316
|
-
/** Get item
|
|
311
|
+
/** Get item by index. */
|
|
317
312
|
getItemByIndex(index?: string): {
|
|
318
313
|
key: number;
|
|
319
314
|
item: ListDataItem;
|
|
320
315
|
} | undefined;
|
|
321
316
|
/** Get item by key. */
|
|
322
317
|
getItemByKey(key: number): ListDataItem | undefined;
|
|
323
|
-
/** Get first
|
|
318
|
+
/** Get first item by parent ID. */
|
|
324
319
|
getFirstItemByParent(parent: string | undefined): ListDataItem | undefined;
|
|
325
|
-
/** Get last
|
|
320
|
+
/** Get last item by parent ID. */
|
|
326
321
|
getLastItemByParent(parent: string | undefined): ListDataItem | undefined;
|
|
327
|
-
/** Get sublist
|
|
322
|
+
/** Get sublist object. */
|
|
328
323
|
getSubList(item: ListDataItem): ListDataRef;
|
|
329
324
|
}
|
|
330
|
-
// File: classes/ref/RouterItemRef.d.ts
|
|
331
|
-
/** Router management. */
|
|
325
|
+
// File: src/classes/ref/RouterItemRef.d.ts
|
|
326
|
+
/** Router management class. */
|
|
332
327
|
export declare class RouterItemRef {
|
|
333
|
-
/** Get router. */
|
|
328
|
+
/** Get router instance. */
|
|
334
329
|
static get(): Router;
|
|
335
|
-
/** Get link by name. */
|
|
330
|
+
/** Get link string by name. */
|
|
336
331
|
static getLink(name: string, params?: any, query?: any): string | undefined;
|
|
337
332
|
/** Get href props by name. */
|
|
338
333
|
static getHref(name?: string, params?: any, query?: any): ConstrHrefProps;
|
|
339
|
-
/** Change
|
|
334
|
+
/** Change site path. */
|
|
340
335
|
static push(to: string | RouteLocationRaw): void;
|
|
341
|
-
/** Set router. */
|
|
336
|
+
/** Set router instance. */
|
|
342
337
|
static set(router: Router): void;
|
|
343
|
-
/** Set router once. */
|
|
338
|
+
/** Set router instance once. */
|
|
344
339
|
static setOneTime(router: Router): void;
|
|
345
|
-
/**
|
|
340
|
+
/** Convert raw location to href. */
|
|
346
341
|
static rawToHref(to?: string | RouteLocationRaw): ConstrHrefProps;
|
|
347
342
|
}
|
|
348
|
-
// File: classes/ref/ScrollbarWidthRef.d.ts
|
|
349
|
-
/**
|
|
343
|
+
// File: src/classes/ref/ScrollbarWidthRef.d.ts
|
|
344
|
+
/** Class for getting scroll width reactively. */
|
|
350
345
|
export declare class ScrollbarWidthRef {
|
|
351
346
|
readonly item: Ref<boolean | undefined, boolean | undefined>;
|
|
352
347
|
readonly width: Ref<number, number>;
|
|
353
348
|
constructor();
|
|
349
|
+
/** Is scroll width defined. */
|
|
354
350
|
readonly is: ComputedRef<boolean>;
|
|
355
351
|
}
|
|
356
|
-
// File: composables/ref/useApiAsyncRef.d.ts
|
|
357
|
-
/**
|
|
352
|
+
// File: src/composables/ref/useApiAsyncRef.d.ts
|
|
353
|
+
/** Executes request and initializes asynchronously. */
|
|
358
354
|
export declare function useApiAsyncRef<R, T = R>(path?: RefOrNormal<string | undefined>, options?: ApiOptions, reactivity?: boolean, conditions?: RefType<boolean>, transformation?: (data: T, isResponseContractValid?: ApiDataValidation) => ApiData<R>, validateResponseContract?: (data: T) => ApiDataValidation, unmounted?: boolean, apiInstance?: ApiInstance): UseApiRef<R>;
|
|
359
|
-
// File: composables/ref/useApiDelete.d.ts
|
|
360
|
-
/** API delete request
|
|
355
|
+
// File: src/composables/ref/useApiDelete.d.ts
|
|
356
|
+
/** Use API delete request. */
|
|
361
357
|
export declare function useApiDelete<T, Request extends ApiFetch['request'] = ApiFetch['request'], Return extends ApiData<T> = ApiData<T>>(path?: RefOrNormal<string | undefined>, action?: (data: Return | undefined) => Promise<void> | void, transformation?: (data: T) => Return, toData?: boolean, options?: ApiOptions, apiInstance?: ApiInstance): {
|
|
362
358
|
loading: Ref<boolean, boolean>;
|
|
363
359
|
send(request?: Request | undefined): Promise<Return | undefined>;
|
|
364
360
|
};
|
|
365
|
-
// File: composables/ref/useApiGet.d.ts
|
|
366
|
-
/** API get request
|
|
361
|
+
// File: src/composables/ref/useApiGet.d.ts
|
|
362
|
+
/** Use API get request. */
|
|
367
363
|
export declare function useApiGet<T, Request extends ApiFetch['request'] = ApiFetch['request'], Return extends ApiData<T> = ApiData<T>>(path?: RefOrNormal<string | undefined>, action?: (data: Return | undefined) => Promise<void> | void, transformation?: (data: T) => Return, toData?: boolean, options?: ApiOptions, apiInstance?: ApiInstance): {
|
|
368
364
|
loading: Ref<boolean, boolean>;
|
|
369
365
|
send(request?: Request | undefined): Promise<Return | undefined>;
|
|
370
366
|
};
|
|
371
|
-
// File: composables/ref/useApiManagementAsyncRef.d.ts
|
|
372
|
-
/**
|
|
367
|
+
// File: src/composables/ref/useApiManagementAsyncRef.d.ts
|
|
368
|
+
/** Executes API management request and initializes asynchronously. */
|
|
373
369
|
export declare function useApiManagementAsyncRef<Return extends ApiManagementValue, FormattersOptions extends FormattersOptionsList, Post extends Record<string, any>, Put extends Record<string, any>, Delete extends Record<string, any>, Type extends ApiManagementValue = Return, Item extends ArrayToItem<Return> = ArrayToItem<Return>, ItemFormatters extends FormattersListColumns<Item, FormattersOptions>[number] = FormattersListColumns<Item, FormattersOptions>[number], Columns extends SearchColumns<ItemFormatters> = []>(propsGet: ApiManagementGet<Return, Type>, formattersOptions?: FormattersOptions, searchOptions?: ApiManagementSearch<Item, Columns>, postRequest?: ApiManagementRequest<Post>, putRequest?: ApiManagementRequest<Put>, deleteRequest?: ApiManagementRequest<Delete>, action?: () => Promise<void> | void, apiInstance?: ApiInstance): {
|
|
374
370
|
isValid: ComputedRef<boolean>;
|
|
371
|
+
isResponseContractValid: ComputedRef<boolean>;
|
|
372
|
+
responseValidationResult: ComputedRef< ApiDataValidation | undefined>;
|
|
375
373
|
list: ComputedRef<SearchFormatList<ItemFormatters, Columns>>;
|
|
376
374
|
readonly data: ComputedRef< ApiData<Return> | undefined>;
|
|
377
375
|
readonly length: ComputedRef<number>;
|
|
@@ -393,21 +391,18 @@ export declare function useApiManagementAsyncRef<Return extends ApiManagementVal
|
|
|
393
391
|
sendPut: (request?: ApiFetch["request"]) => Promise< ApiData<Put> | undefined>;
|
|
394
392
|
sendDelete: (request?: ApiFetch["request"]) => Promise< ApiData<Delete> | undefined>;
|
|
395
393
|
};
|
|
396
|
-
// File: composables/ref/useApiManagementRef.d.ts
|
|
394
|
+
// File: src/composables/ref/useApiManagementRef.d.ts
|
|
397
395
|
/**
|
|
398
|
-
* Composable for
|
|
399
|
-
* @note Use with `executeUse` for
|
|
400
|
-
* @remarks Recommended for values
|
|
396
|
+
* Composable for API request orchestration. Manages GET, formatting, search, and mutations.
|
|
397
|
+
* @note Use with `executeUse` for centralized state.
|
|
398
|
+
* @remarks Recommended for values, dates, statuses. Not for technical IDs.
|
|
401
399
|
* @example
|
|
402
|
-
* const products = useApiManagementRef(
|
|
403
|
-
* { path: '/api/v1/products', skeleton: () => [] },
|
|
404
|
-
* { price: (v) => `${v} USD` },
|
|
405
|
-
* { columns: ['name'] },
|
|
406
|
-
* { path: '/api/v1/products' }
|
|
407
|
-
* );
|
|
400
|
+
* const products = useApiManagementRef({ path: '/api/v1/products' }, { price: (v) => `${v} USD` });
|
|
408
401
|
*/
|
|
409
402
|
export declare function useApiManagementRef<Return extends ApiManagementValue, FormattersOptions extends FormattersOptionsList, Post extends Record<string, any>, Put extends Record<string, any>, Delete extends Record<string, any>, Type extends ApiManagementValue = Return, Item extends ArrayToItem<Return> = ArrayToItem<Return>, ItemFormatters extends FormattersListColumns<Item, FormattersOptions>[number] = FormattersListColumns<Item, FormattersOptions>[number], Columns extends SearchColumns<ItemFormatters> = []>(propsGet: ApiManagementGet<Return, Type>, formattersOptions?: FormattersOptions, searchOptions?: ApiManagementSearch<Item, Columns>, postRequest?: ApiManagementRequest<Post>, putRequest?: ApiManagementRequest<Put>, deleteRequest?: ApiManagementRequest<Delete>, action?: () => Promise<void> | void, apiInstance?: ApiInstance): {
|
|
410
403
|
isValid: ComputedRef<boolean>;
|
|
404
|
+
isResponseContractValid: ComputedRef<boolean>;
|
|
405
|
+
responseValidationResult: ComputedRef< ApiDataValidation | undefined>;
|
|
411
406
|
list: ComputedRef<SearchFormatList<ItemFormatters, Columns>>;
|
|
412
407
|
readonly data: ComputedRef<ApiData<Return> | undefined>;
|
|
413
408
|
readonly length: ComputedRef<number>;
|
|
@@ -429,19 +424,19 @@ export declare function useApiManagementRef<Return extends ApiManagementValue, F
|
|
|
429
424
|
sendPut: (request?: ApiFetch["request"]) => Promise<ApiData<Put> | undefined>;
|
|
430
425
|
sendDelete: (request?: ApiFetch["request"]) => Promise<ApiData<Delete> | undefined>;
|
|
431
426
|
};
|
|
432
|
-
// File: composables/ref/useApiPost.d.ts
|
|
433
|
-
/** API post request
|
|
427
|
+
// File: src/composables/ref/useApiPost.d.ts
|
|
428
|
+
/** Use API post request. */
|
|
434
429
|
export declare function useApiPost<T, Request extends ApiFetch['request'] = ApiFetch['request'], Return extends ApiData<T> = ApiData<T>>(path?: RefOrNormal<string | undefined>, action?: (data: Return | undefined) => Promise<void> | void, transformation?: (data: T) => Return, toData?: boolean, options?: ApiOptions, apiInstance?: ApiInstance): {
|
|
435
430
|
loading: Ref<boolean, boolean>;
|
|
436
431
|
send(request?: Request | undefined): Promise<Return | undefined>;
|
|
437
432
|
};
|
|
438
|
-
// File: composables/ref/useApiPut.d.ts
|
|
439
|
-
/** API put request
|
|
433
|
+
// File: src/composables/ref/useApiPut.d.ts
|
|
434
|
+
/** Use API put request. */
|
|
440
435
|
export declare function useApiPut<T, Request extends ApiFetch['request'] = ApiFetch['request'], Return extends ApiData<T> = ApiData<T>>(path?: RefOrNormal<string | undefined>, action?: (data: Return | undefined) => Promise<void> | void, transformation?: (data: T) => Return, toData?: boolean, options?: ApiOptions, apiInstance?: ApiInstance): {
|
|
441
436
|
loading: Ref<boolean, boolean>;
|
|
442
437
|
send(request?: Request | undefined): Promise<Return | undefined>;
|
|
443
438
|
};
|
|
444
|
-
// File: composables/ref/useApiRef.d.ts
|
|
439
|
+
// File: src/composables/ref/useApiRef.d.ts
|
|
445
440
|
export interface UseApiRef<R> {
|
|
446
441
|
data: ComputedRef<ApiData<R> | undefined>;
|
|
447
442
|
item: Ref<ApiData<R> | undefined>;
|
|
@@ -461,46 +456,46 @@ export interface UseApiRef<R> {
|
|
|
461
456
|
stop(): void;
|
|
462
457
|
abort(): void;
|
|
463
458
|
}
|
|
464
|
-
/**
|
|
459
|
+
/** Returns data for working with requests. */
|
|
465
460
|
export declare function useApiRef<R, T = R>(path?: RefOrNormal<string | undefined>, options?: ApiOptions, reactivity?: boolean, conditions?: RefType<boolean>, transformation?: (data: T, isResponseContractValid?: ApiDataValidation) => ApiData<R>, validateResponseContract?: (data: T) => ApiDataValidation, unmounted?: boolean, apiInstance?: ApiInstance): UseApiRef<R>;
|
|
466
|
-
/** Global API request
|
|
461
|
+
/** Global conditions for API request. */
|
|
467
462
|
export declare const setApiRefGlobalConditions: (conditions: RefType<any>) => void;
|
|
468
|
-
// File: composables/ref/useApiRequest.d.ts
|
|
469
|
-
/**
|
|
463
|
+
// File: src/composables/ref/useApiRequest.d.ts
|
|
464
|
+
/** Use api request. */
|
|
470
465
|
export declare function useApiRequest<T, Request extends ApiFetch['request'] = ApiFetch['request'], Return extends ApiData<T> = ApiData<T>>(path?: RefOrNormal<string | undefined>, method?: ApiMethodItem, action?: (data: Return | undefined) => Promise<void> | void, transformation?: (data: T) => Return, toData?: boolean, options?: ApiOptions, apiInstance?: ApiInstance): {
|
|
471
466
|
loading: Ref<boolean, boolean>;
|
|
472
467
|
send(request?: Request): Promise<Return | undefined>;
|
|
473
468
|
};
|
|
474
|
-
// File: composables/ref/useBroadcastValueRef.d.ts
|
|
469
|
+
// File: src/composables/ref/useBroadcastValueRef.d.ts
|
|
475
470
|
type BroadcastValueItem<T> = T | string | undefined;
|
|
476
|
-
/**
|
|
471
|
+
/** Manage data between browser tabs. */
|
|
477
472
|
export declare function useBroadcastValueRef<T>(name: string, defaultValue?: T | string | (() => (T | string))): Ref<BroadcastValueItem<T>>;
|
|
478
|
-
// File: composables/ref/useCookieRef.d.ts
|
|
479
|
-
/** Reactive
|
|
473
|
+
// File: src/composables/ref/useCookieRef.d.ts
|
|
474
|
+
/** Reactive variable for cookies. */
|
|
480
475
|
export declare function useCookieRef<T>(name: string, defaultValue?: T | string | (() => (T | string)), options?: CookieOptions): Ref<T | string | undefined>;
|
|
481
|
-
// File: composables/ref/useFormattersRef.d.ts
|
|
482
|
-
/** Reactive
|
|
476
|
+
// File: src/composables/ref/useFormattersRef.d.ts
|
|
477
|
+
/** Reactive formatting of data lists. */
|
|
483
478
|
export declare function useFormattersRef<Options extends FormattersOptionsList = FormattersOptionsList, List extends FormattersListProp = FormattersListProp>(list: RefType<List | undefined>, options: Options): {
|
|
484
479
|
listFormat: ComputedRef<FormattersReturn<List, Options>>;
|
|
485
480
|
length: ComputedRef<number>;
|
|
486
481
|
};
|
|
487
|
-
// File: composables/ref/useGeoIntlRef.d.ts
|
|
488
|
-
/**
|
|
482
|
+
// File: src/composables/ref/useGeoIntlRef.d.ts
|
|
483
|
+
/** Working with data formatting. */
|
|
489
484
|
export declare function useGeoIntlRef(): GeoIntlRef;
|
|
490
|
-
// File: composables/ref/useHashRef.d.ts
|
|
491
|
-
/**
|
|
485
|
+
// File: src/composables/ref/useHashRef.d.ts
|
|
486
|
+
/** Manage URL hash. */
|
|
492
487
|
export declare function useHashRef<T>(name: string, defaultValue?: T | (() => T)): ShallowRef<T>;
|
|
493
|
-
// File: composables/ref/useLazyItemByMarginRef.d.ts
|
|
488
|
+
// File: src/composables/ref/useLazyItemByMarginRef.d.ts
|
|
494
489
|
export type LazyItemByMargin = {
|
|
495
490
|
rootMargin: string;
|
|
496
491
|
item: any;
|
|
497
492
|
};
|
|
498
|
-
/**
|
|
493
|
+
/** Track element appearance by margin. */
|
|
499
494
|
export declare const useLazyItemByMarginRef: (element: RefType<HTMLElement | undefined>, rootMargin: string) => {
|
|
500
495
|
lazyItemStatus: any;
|
|
501
496
|
readonly lazyItem: any;
|
|
502
497
|
};
|
|
503
|
-
// File: composables/ref/useLazyRef.d.ts
|
|
498
|
+
// File: src/composables/ref/useLazyRef.d.ts
|
|
504
499
|
export type LazyItem = {
|
|
505
500
|
status: ShallowRef<boolean>;
|
|
506
501
|
ratio: ShallowRef<number>;
|
|
@@ -508,7 +503,7 @@ export type LazyItem = {
|
|
|
508
503
|
stopWatch: () => void;
|
|
509
504
|
};
|
|
510
505
|
export type LazyList = Record<string, LazyItem>;
|
|
511
|
-
/**
|
|
506
|
+
/** Track element appearance on screen. */
|
|
512
507
|
export declare const useLazyRef: (options?: IntersectionObserverInit) => {
|
|
513
508
|
intersectionObserver: IntersectionObserver | undefined;
|
|
514
509
|
getItem(element: HTMLElement): LazyItem;
|
|
@@ -516,11 +511,11 @@ export declare const useLazyRef: (options?: IntersectionObserverInit) => {
|
|
|
516
511
|
removeLazyItem: (element?: HTMLElement) => void;
|
|
517
512
|
disconnectLazy: () => void | undefined;
|
|
518
513
|
};
|
|
519
|
-
// File: composables/ref/useLoadingRef.d.ts
|
|
520
|
-
/**
|
|
514
|
+
// File: src/composables/ref/useLoadingRef.d.ts
|
|
515
|
+
/** Returns loading status. */
|
|
521
516
|
export declare function useLoadingRef(): ShallowRef<boolean, boolean>;
|
|
522
|
-
// File: composables/ref/useMeta.d.ts
|
|
523
|
-
/**
|
|
517
|
+
// File: src/composables/ref/useMeta.d.ts
|
|
518
|
+
/** Reactive meta tags management with automatic DOM sync. */
|
|
524
519
|
export declare const useMeta: () => Readonly<{
|
|
525
520
|
meta: typeof MetaStatic;
|
|
526
521
|
title: Ref<string, string>;
|
|
@@ -571,8 +566,8 @@ export declare const useMeta: () => Readonly<{
|
|
|
571
566
|
}>;
|
|
572
567
|
destroyExecute?(): void;
|
|
573
568
|
}>;
|
|
574
|
-
// File: composables/ref/useRouterList.d.ts
|
|
575
|
-
/**
|
|
569
|
+
// File: src/composables/ref/useRouterList.d.ts
|
|
570
|
+
/** Managing link list for router. */
|
|
576
571
|
export declare const useRouterList: <T extends ListDataBasic>(list: RefType<ConstrBind<T>[] | undefined>, selected?: Ref<string> | string, hasTo?: boolean) => {
|
|
577
572
|
item: ComputedRef<T | undefined>;
|
|
578
573
|
selected: Ref<string, string>;
|
|
@@ -581,8 +576,8 @@ export declare const useRouterList: <T extends ListDataBasic>(list: RefType<Cons
|
|
|
581
576
|
to: (name?: string) => void;
|
|
582
577
|
toMain(): void;
|
|
583
578
|
};
|
|
584
|
-
// File: composables/ref/useSearchRef.d.ts
|
|
585
|
-
/**
|
|
579
|
+
// File: src/composables/ref/useSearchRef.d.ts
|
|
580
|
+
/** Handling search logic with reactive data. */
|
|
586
581
|
export declare function useSearchRef<T extends SearchItem, K extends SearchColumns<T>>(list: SearchListInput<T>, columns: K, value?: Ref<string>, options?: SearchOptions): {
|
|
587
582
|
isSearch: ComputedRef<boolean>;
|
|
588
583
|
search: Ref<string, string>;
|
|
@@ -590,41 +585,42 @@ export declare function useSearchRef<T extends SearchItem, K extends SearchColum
|
|
|
590
585
|
listSearch: ComputedRef<SearchFormatList<T, K>>;
|
|
591
586
|
length: ComputedRef<number>;
|
|
592
587
|
};
|
|
593
|
-
// File: composables/ref/useSearchValueRef.d.ts
|
|
594
|
-
/**
|
|
588
|
+
// File: src/composables/ref/useSearchValueRef.d.ts
|
|
589
|
+
/** Managing search value state and delays. */
|
|
595
590
|
export declare function useSearchValueRef<T extends SearchItem, K extends SearchColumns<T>>(item: SearchList<T, K>, value?: Ref<string>): {
|
|
596
591
|
search: Ref<string, string>;
|
|
597
592
|
searchDelay: Ref<string, string>;
|
|
598
593
|
loading: Ref<boolean, boolean>;
|
|
599
594
|
};
|
|
600
|
-
// File: composables/ref/useSessionRef.d.ts
|
|
601
|
-
/**
|
|
595
|
+
// File: src/composables/ref/useSessionRef.d.ts
|
|
596
|
+
/** Manage session storage. */
|
|
602
597
|
export declare function useSessionRef<T>(name: string, defaultValue?: T | (() => T)): Ref<T | undefined>;
|
|
603
|
-
// File: composables/ref/useStorageRef.d.ts
|
|
604
|
-
/**
|
|
598
|
+
// File: src/composables/ref/useStorageRef.d.ts
|
|
599
|
+
/** Manage local storage. */
|
|
605
600
|
export declare function useStorageRef<T>(name: string, defaultValue?: T | (() => T), cache?: number): Ref<T | undefined>;
|
|
606
|
-
// File: composables/ref/useTranslateRef.d.ts
|
|
607
|
-
/**
|
|
601
|
+
// File: src/composables/ref/useTranslateRef.d.ts
|
|
602
|
+
/**
|
|
603
|
+
* Translation of text by keys. ShallowRef updates on global language change.
|
|
608
604
|
* @example
|
|
609
|
-
* const
|
|
605
|
+
* const translations = useTranslateRef(['home.title'] as const);
|
|
610
606
|
*/
|
|
611
607
|
export declare function useTranslateRef<T extends (string | string[])[]>(names: T, translateInstance?: TranslateInstance): ShallowRef<TranslateList<T>>;
|
|
612
608
|
/** Shorthand for useTranslateRef. */
|
|
613
609
|
export declare const t: <T extends string[]>(names: T) => ShallowRef<TranslateList<T>>;
|
|
614
|
-
// File: flags.d.ts
|
|
610
|
+
// File: src/flags.d.ts
|
|
615
611
|
export declare const uiMakeFlags: () => void;
|
|
616
|
-
// File: functions/basic.d.ts
|
|
612
|
+
// File: src/functions/basic.d.ts
|
|
617
613
|
export * from '@dxtmisha/functional-basic';
|
|
618
|
-
// File: functions/computedAsync.d.ts
|
|
619
|
-
/**
|
|
614
|
+
// File: src/functions/computedAsync.d.ts
|
|
615
|
+
/** Computed property for async getters. */
|
|
620
616
|
export declare function computedAsync<R>(getter: (() => Promise<R>) | (() => R) | R, initialState?: (() => R) | R, ignore?: R, debugOptions?: DebuggerOptions): ComputedRef<R | undefined>;
|
|
621
|
-
// File: functions/computedByLanguage.d.ts
|
|
622
|
-
/**
|
|
617
|
+
// File: src/functions/computedByLanguage.d.ts
|
|
618
|
+
/** Computed property reacting to current language. */
|
|
623
619
|
export declare function computedByLanguage<T, R extends (T | undefined) = T | undefined>(getter: ComputedGetter<R>, getterNone?: R | (() => R), conditions?: () => boolean, debugOptions?: DebuggerOptions): ComputedRef<R>;
|
|
624
|
-
// File: functions/computedEternity.d.ts
|
|
625
|
-
/**
|
|
620
|
+
// File: src/functions/computedEternity.d.ts
|
|
621
|
+
/** Computed property cached on demand; remains active application-wide. */
|
|
626
622
|
export declare function computedEternity<T>(getter: () => Promise<T> | T, initialState?: (() => T) | T): Ref<T, T>;
|
|
627
|
-
// File: functions/dxtFunctionalPlugin.d.ts
|
|
623
|
+
// File: src/functions/dxtFunctionalPlugin.d.ts
|
|
628
624
|
export interface FunctionalPluginOptions {
|
|
629
625
|
api?: ApiConfig;
|
|
630
626
|
translate?: TranslateConfig;
|
|
@@ -633,10 +629,9 @@ export interface FunctionalPluginOptions {
|
|
|
633
629
|
router?: Router;
|
|
634
630
|
errorCauses?: ErrorCenterCauseList;
|
|
635
631
|
}
|
|
636
|
-
/**
|
|
632
|
+
/** Vue plugin initializing functional services. */
|
|
637
633
|
export declare const dxtFunctionalPlugin: Plugin;
|
|
638
|
-
// File: functions/executeUse.d.ts
|
|
639
|
-
/** Initialization strategies. */
|
|
634
|
+
// File: src/functions/executeUse.d.ts
|
|
640
635
|
export declare enum ExecuteUseType {
|
|
641
636
|
global = "global",
|
|
642
637
|
provide = "provide",
|
|
@@ -647,10 +642,10 @@ export type ExecuteUseReturn<R> = Readonly<R & {
|
|
|
647
642
|
destroyExecute?(): void;
|
|
648
643
|
}>;
|
|
649
644
|
/**
|
|
650
|
-
* Managed singleton
|
|
651
|
-
* @
|
|
652
|
-
* @
|
|
653
|
-
*
|
|
645
|
+
* Managed singleton accessor.
|
|
646
|
+
* @remarks Use for API Services, Shared State, External SDKs.
|
|
647
|
+
* @example
|
|
648
|
+
* export const useUserApi = executeUseGlobal(() => useApiGet('/api/user'));
|
|
654
649
|
*/
|
|
655
650
|
export declare function executeUse<R, O extends any[], RI extends ExecuteUseReturn<R> = ExecuteUseReturn<R>>(callback: (...args: O) => R, type?: ExecuteUseType): ((...args: O) => RI) | (() => RI);
|
|
656
651
|
/** Global singleton creator. */
|
|
@@ -669,7 +664,7 @@ export declare function executeUseProvide<R, O extends any[]>(callback: (...args
|
|
|
669
664
|
init(): Readonly<R>;
|
|
670
665
|
destroyExecute?(): void;
|
|
671
666
|
}>);
|
|
672
|
-
/** Local
|
|
667
|
+
/** Local singleton creator. */
|
|
673
668
|
export declare function executeUseLocal<R, O extends any[]>(callback: (...args: O) => R): ((...args: O) => Readonly<R & {
|
|
674
669
|
init(): Readonly<R>;
|
|
675
670
|
destroyExecute?(): void;
|
|
@@ -677,45 +672,45 @@ export declare function executeUseLocal<R, O extends any[]>(callback: (...args:
|
|
|
677
672
|
init(): Readonly<R>;
|
|
678
673
|
destroyExecute?(): void;
|
|
679
674
|
}>);
|
|
680
|
-
/**
|
|
675
|
+
/** Initializes all global callbacks. */
|
|
681
676
|
export declare function executeUseGlobalInit(): void;
|
|
682
|
-
// File: functions/getInject.d.ts
|
|
677
|
+
// File: src/functions/getInject.d.ts
|
|
683
678
|
/** Get injected value. */
|
|
684
679
|
export declare function getInject<T>(name: string): T | undefined;
|
|
685
|
-
// File: functions/getOptions.d.ts
|
|
686
|
-
/**
|
|
680
|
+
// File: src/functions/getOptions.d.ts
|
|
681
|
+
/** Returns request options. */
|
|
687
682
|
export declare const getOptions: (options?: ApiOptions) => RefOrNormal<ApiFetch>;
|
|
688
|
-
// File: functions/ref/getBindRef.d.ts
|
|
689
|
-
/**
|
|
683
|
+
// File: src/functions/ref/getBindRef.d.ts
|
|
684
|
+
/** Generate properties for subcomponent. */
|
|
690
685
|
export declare function getBindRef<T, R extends ItemList>(value: RefOrNormal<T | R> | undefined, nameExtra?: RefOrNormal<ItemList> | string, name?: string): ComputedRef<R>;
|
|
691
|
-
// File: functions/ref/getRef.d.ts
|
|
692
|
-
/**
|
|
686
|
+
// File: src/functions/ref/getRef.d.ts
|
|
687
|
+
/** Return value of ref or item itself. */
|
|
693
688
|
export declare function getRef<T>(item: RefOrNormal<T>): T;
|
|
694
|
-
// File: functions/ref/render.d.ts
|
|
695
|
-
/**
|
|
689
|
+
// File: src/functions/ref/render.d.ts
|
|
690
|
+
/** Rendering cached, immutable data. */
|
|
696
691
|
export declare function render<T extends ItemList>(name: string | any, props?: T, children?: RawChildren | RawSlots, index?: string): VNode;
|
|
697
|
-
// File: functions/ref/setRef.d.ts
|
|
698
|
-
/**
|
|
692
|
+
// File: src/functions/ref/setRef.d.ts
|
|
693
|
+
/** Change value for reactive method. */
|
|
699
694
|
export declare function setRef<T>(item: Ref<T>, value: T): void;
|
|
700
|
-
// File: functions/ref/toRefItem.d.ts
|
|
701
|
-
/** Wraps
|
|
695
|
+
// File: src/functions/ref/toRefItem.d.ts
|
|
696
|
+
/** Wraps variable in ref if not reactive. */
|
|
702
697
|
export declare function toRefItem<T>(item: RefOrNormal<T>): Ref<T>;
|
|
703
|
-
// File: functions/render/getBind.d.ts
|
|
704
|
-
/**
|
|
698
|
+
// File: src/functions/render/getBind.d.ts
|
|
699
|
+
/** Generate properties for subcomponent. */
|
|
705
700
|
export declare function getBind<T, R extends ItemList>(value: T | R | undefined | null, nameExtra?: ItemList | string, name?: string, except?: boolean): ConstrBind<R>;
|
|
706
|
-
// File: functions/render/getClassName.d.ts
|
|
707
|
-
/**
|
|
701
|
+
// File: src/functions/render/getClassName.d.ts
|
|
702
|
+
/** Returns class name from property. */
|
|
708
703
|
export declare function getClassName<T extends ItemList>(props?: T): string | undefined;
|
|
709
|
-
// File: functions/render/getIndexForRender.d.ts
|
|
710
|
-
/**
|
|
704
|
+
// File: src/functions/render/getIndexForRender.d.ts
|
|
705
|
+
/** Generates new element. */
|
|
711
706
|
export declare function getIndexForRender<T extends ItemList>(name: string | any, props?: T, index?: string): string | undefined;
|
|
712
|
-
// File: functions/toBind.d.ts
|
|
713
|
-
/** Merges objects
|
|
707
|
+
// File: src/functions/toBind.d.ts
|
|
708
|
+
/** Merges two objects considering classes and styles. */
|
|
714
709
|
export declare function toBind<R extends ItemList = ItemList>(extra: ItemList, value: ItemList): ConstrBind<R>;
|
|
715
|
-
// File: functions/toBinds.d.ts
|
|
716
|
-
/** Merges multiple objects
|
|
710
|
+
// File: src/functions/toBinds.d.ts
|
|
711
|
+
/** Merges multiple objects considering classes and styles. */
|
|
717
712
|
export declare function toBinds<R extends ItemList = ItemList>(...values: (ItemList | undefined)[]): ConstrBind<R>;
|
|
718
|
-
// File: library.d.ts
|
|
713
|
+
// File: src/library.d.ts
|
|
719
714
|
export * from './classes/design/DesignAbstract';
|
|
720
715
|
export * from './classes/design/DesignAsyncAbstract';
|
|
721
716
|
export * from './classes/design/DesignChanged';
|
|
@@ -778,11 +773,12 @@ export * from './types/constructorTypes';
|
|
|
778
773
|
export * from './types/listTypes';
|
|
779
774
|
export * from './types/refTypes';
|
|
780
775
|
export * from './types/searchTypes';
|
|
781
|
-
// File: types/apiTypes.d.ts
|
|
776
|
+
// File: src/types/apiTypes.d.ts
|
|
777
|
+
/** Options for api requests */
|
|
782
778
|
export type ApiOptions = ApiMethodItem | RefOrNormal<ApiFetch>;
|
|
783
|
-
/** Base API management
|
|
779
|
+
/** Base type for API management values. */
|
|
784
780
|
export type ApiManagementValue = ApiDefaultValue | ApiDefaultValue[];
|
|
785
|
-
/** GET
|
|
781
|
+
/** Configuration for GET request in API management. */
|
|
786
782
|
export type ApiManagementGet<Return extends ApiManagementValue, Type extends ApiManagementValue = Return> = {
|
|
787
783
|
path?: RefOrNormal<string | undefined>;
|
|
788
784
|
options?: ApiOptions;
|
|
@@ -794,13 +790,13 @@ export type ApiManagementGet<Return extends ApiManagementValue, Type extends Api
|
|
|
794
790
|
unmounted?: boolean;
|
|
795
791
|
skeleton?: () => Return;
|
|
796
792
|
};
|
|
797
|
-
/**
|
|
793
|
+
/** Configuration for client-side search across API data. */
|
|
798
794
|
export type ApiManagementSearch<T extends SearchItem, K extends SearchColumns<T>> = {
|
|
799
795
|
columns: K;
|
|
800
796
|
value?: Ref<string>;
|
|
801
797
|
options?: SearchOptions;
|
|
802
798
|
};
|
|
803
|
-
/**
|
|
799
|
+
/** Configuration for mutation requests. */
|
|
804
800
|
export type ApiManagementRequest<T, Return extends ApiData<T> = ApiData<T>> = {
|
|
805
801
|
path?: RefOrNormal<string | undefined>;
|
|
806
802
|
action?: (data: Return | undefined) => Promise<void> | void;
|
|
@@ -808,14 +804,12 @@ export type ApiManagementRequest<T, Return extends ApiData<T> = ApiData<T>> = {
|
|
|
808
804
|
toData?: boolean;
|
|
809
805
|
options?: ApiOptions;
|
|
810
806
|
};
|
|
811
|
-
// File: types/constructorTypes.d.ts
|
|
807
|
+
// File: src/types/constructorTypes.d.ts
|
|
812
808
|
export type ConstrItem = Record<string, any>;
|
|
813
|
-
/** Value wrapper. */
|
|
814
809
|
export type ConstrValue<T = any> = {
|
|
815
810
|
value?: T;
|
|
816
811
|
};
|
|
817
812
|
export type ConstrComponent = Record<string, any>;
|
|
818
|
-
/** Reactive or normal component mod. */
|
|
819
813
|
export type ConstrComponentMod<P extends ConstrItem> = ConstrItem | {
|
|
820
814
|
[K in keyof P]?: RefOrNormal<P[K]>;
|
|
821
815
|
};
|
|
@@ -835,7 +829,6 @@ export type ConstrClasses = {
|
|
|
835
829
|
} & ConstrClassList;
|
|
836
830
|
export type ConstrStylesItem = string | null;
|
|
837
831
|
export type ConstrStyles = Record<string, ConstrStylesItem> | ConstrStyles[];
|
|
838
|
-
/** Component configuration options. */
|
|
839
832
|
export type ConstrOptions<COMP extends ConstrComponent, EMITS extends ConstrItem, P extends ConstrItem> = {
|
|
840
833
|
components?: COMP;
|
|
841
834
|
compMod?: ConstrComponentMod<P>;
|
|
@@ -843,7 +836,6 @@ export type ConstrOptions<COMP extends ConstrComponent, EMITS extends ConstrItem
|
|
|
843
836
|
classes?: RefType<ConstrClasses>;
|
|
844
837
|
styles?: RefType<ConstrStyles>;
|
|
845
838
|
};
|
|
846
|
-
/** Component initialization interface. */
|
|
847
839
|
export type ConstrSetup<E extends Element, CLASSES extends ConstrClasses, SETUP extends ConstrItem> = {
|
|
848
840
|
name: string;
|
|
849
841
|
element: Ref<E | undefined>;
|
|
@@ -854,13 +846,11 @@ export type ConstrRegistration = {
|
|
|
854
846
|
flag?: boolean;
|
|
855
847
|
translate?: Record<string, string>;
|
|
856
848
|
};
|
|
857
|
-
/** Component binding with style/class support. */
|
|
858
849
|
export type ConstrBind<T> = T & Record<string, any> & {
|
|
859
850
|
key?: string;
|
|
860
851
|
class?: ConstrClass;
|
|
861
852
|
style?: ConstrStyles;
|
|
862
853
|
};
|
|
863
|
-
/** Vue prop options. */
|
|
864
854
|
export type ConstrPropItemOptions<T = any> = {
|
|
865
855
|
type?: PropType<T>;
|
|
866
856
|
required?: boolean;
|
|
@@ -871,27 +861,24 @@ export type ConstrPropItem<T = any> = ConstrPropItemOptions<T> | PropType<T>;
|
|
|
871
861
|
export type ConstrProps<P = Record<string, any>> = {
|
|
872
862
|
[K in keyof P]: ConstrPropItem<P[K]>;
|
|
873
863
|
};
|
|
874
|
-
/** Link properties. */
|
|
875
864
|
export type ConstrHrefProps = {
|
|
876
865
|
href?: string;
|
|
877
866
|
};
|
|
878
|
-
// File: types/listTypes.d.ts
|
|
867
|
+
// File: src/types/listTypes.d.ts
|
|
879
868
|
export type ListType = 'item' | 'space' | 'line' | 'subtitle' | 'html' | 'menu' | 'menu-group' | 'group';
|
|
880
|
-
/** Base list item. */
|
|
881
869
|
export type ListDataBasic = {
|
|
882
870
|
label?: NumberOrString;
|
|
883
871
|
value?: any;
|
|
884
872
|
search?: string;
|
|
885
873
|
};
|
|
886
|
-
/** Typed list item. */
|
|
887
874
|
export type ListDataItem<Item extends ListDataBasic = ListDataBasic> = ConstrBind<Item & {
|
|
888
875
|
parent?: string;
|
|
889
876
|
type: ListType;
|
|
890
877
|
index: string;
|
|
878
|
+
disabled?: boolean;
|
|
891
879
|
}>;
|
|
892
880
|
export type ListList<Item extends ListDataBasic = ListDataBasic> = ListDataItem<Item>[];
|
|
893
881
|
export type ListRecord<Item extends ListDataBasic = ListDataBasic> = ListList<Item> | Record<string, any>;
|
|
894
|
-
/** List item with state. */
|
|
895
882
|
export type ListDataFullItem<Item extends ListDataBasic = ListDataBasic> = ListDataItem<Item> & {
|
|
896
883
|
focus: boolean;
|
|
897
884
|
highlight?: string;
|
|
@@ -905,19 +892,15 @@ export type ListSelectedItem = NumberOrStringOrBoolean;
|
|
|
905
892
|
export type ListSelectedList = ListSelectedItem | ListSelectedItem[];
|
|
906
893
|
export type ListName = string | number | undefined;
|
|
907
894
|
export type ListNames = ListName[];
|
|
908
|
-
// File: types/refTypes.d.ts
|
|
909
|
-
/** Vue reactive union. */
|
|
895
|
+
// File: src/types/refTypes.d.ts
|
|
910
896
|
export type RefType<T> = ComputedRef<T> | Ref<T>;
|
|
911
897
|
export type RefUndefined<T> = RefType<T | undefined>;
|
|
912
|
-
/** Reactive or normal union. */
|
|
913
898
|
export type RefOrNormal<T> = RefType<T> | T;
|
|
914
|
-
/** Vue raw children content. */
|
|
915
899
|
export type RawChildren = string | number | boolean | VNode | VNodeArrayChildren | (() => any);
|
|
916
|
-
/** Vue raw slots. */
|
|
917
900
|
export type RawSlots = {
|
|
918
901
|
[name: string]: unknown;
|
|
919
902
|
$stable?: boolean;
|
|
920
903
|
};
|
|
921
|
-
// File: types/searchTypes.d.ts
|
|
904
|
+
// File: src/types/searchTypes.d.ts
|
|
922
905
|
export type SearchListValueRef<T extends SearchItem> = RefOrNormal<SearchListValue<T>>;
|
|
923
906
|
export type SearchListInput<T extends SearchItem> = SearchListValueRef<T> | (() => SearchListValueRef<T>);
|