@dxtmisha/functional 1.11.7 → 1.11.8
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/ai-description.txt +3 -3
- package/ai-doc.ru.txt +34 -0
- package/ai-doc.txt +34 -0
- package/ai-types.txt +613 -474
- package/dist/library.js +4 -4
- package/package.json +3 -1
package/ai-types.txt
CHANGED
|
@@ -15,602 +15,396 @@ The following is the content of "exports" from package.json:
|
|
|
15
15
|
"./types/*": "./dist/*"
|
|
16
16
|
}
|
|
17
17
|
|
|
18
|
-
// File:
|
|
19
|
-
|
|
20
|
-
/** GET request config for API management. */
|
|
21
|
-
export declare type ApiManagementGet<Return extends ApiManagementValue, Type extends ApiManagementValue = Return> = {
|
|
22
|
-
/** API endpoint path */
|
|
23
|
-
path?: RefOrNormal<string | undefined>;
|
|
24
|
-
/** Request options */
|
|
25
|
-
options?: ApiOptions;
|
|
26
|
-
/** Enable reactive updates on path/options change */
|
|
27
|
-
reactivity?: boolean;
|
|
28
|
-
/** Condition to trigger request */
|
|
29
|
-
conditions?: RefType<boolean>;
|
|
30
|
-
/** Custom data transformation */
|
|
31
|
-
transformation?: (data: Type, isResponseContractValid?: ApiDataValidation) => ApiData<Return>;
|
|
32
|
-
/** Validate response contract */
|
|
33
|
-
validateResponseContract?: (data: Type) => ApiDataValidation;
|
|
34
|
-
/** Validation function or class for data */
|
|
35
|
-
typeData?: ((data: Return) => boolean) | any;
|
|
36
|
-
/** Clear data on unmount */
|
|
37
|
-
unmounted?: boolean;
|
|
38
|
-
/** Skeleton data for loading state */
|
|
39
|
-
skeleton?: () => Return;
|
|
40
|
-
};
|
|
41
|
-
|
|
42
|
-
/** Mutation request config (POST, PUT, DELETE). */
|
|
43
|
-
export declare type ApiManagementRequest<T, Return extends ApiData<T> = ApiData<T>> = {
|
|
44
|
-
/** Target API endpoint path */
|
|
45
|
-
path?: RefOrNormal<string | undefined>;
|
|
46
|
-
/** Callback after success */
|
|
47
|
-
action?: (data: Return | undefined) => Promise<void> | void;
|
|
48
|
-
/** Transformation before sending */
|
|
49
|
-
transformation?: (data: T) => Return;
|
|
50
|
-
/** Wrap payload in 'data' property */
|
|
51
|
-
toData?: boolean;
|
|
52
|
-
/** Mutation request options */
|
|
53
|
-
options?: ApiOptions;
|
|
54
|
-
};
|
|
55
|
-
|
|
56
|
-
/** Client-side search config for API data. */
|
|
57
|
-
export declare type ApiManagementSearch<T extends SearchItem, K extends SearchColumns<T>> = {
|
|
58
|
-
/** Columns to search */
|
|
59
|
-
columns: K;
|
|
60
|
-
/** Reactive search query */
|
|
61
|
-
value?: Ref<string>;
|
|
62
|
-
/** Search algorithm options */
|
|
63
|
-
options?: SearchOptions;
|
|
64
|
-
};
|
|
65
|
-
|
|
66
|
-
/** Base type for API values. */
|
|
67
|
-
export declare type ApiManagementValue = ApiDefaultValue | ApiDefaultValue[];
|
|
68
|
-
|
|
69
|
-
/** Options for api requests */
|
|
70
|
-
export declare type ApiOptions = ApiMethodItem | RefOrNormal<ApiFetch>;
|
|
71
|
-
|
|
72
|
-
declare type BroadcastValueItem<T> = T | string | undefined;
|
|
73
|
-
|
|
74
|
-
/**
|
|
75
|
-
* Computed property for asynchronous getters.
|
|
76
|
-
* @param getter Async/sync function or value
|
|
77
|
-
* @param initialState initial result
|
|
78
|
-
* @param ignore values to ignore
|
|
79
|
-
* @param debugOptions Vue debugger options
|
|
80
|
-
*/
|
|
81
|
-
export declare function computedAsync<R>(getter: (() => Promise<R>) | (() => R) | R, initialState?: (() => R) | R, ignore?: R, debugOptions?: DebuggerOptions): ComputedRef<R | undefined>;
|
|
82
|
-
|
|
83
|
-
/**
|
|
84
|
-
* Computed property dependent on language and conditions.
|
|
85
|
-
* @param getter Main value getter
|
|
86
|
-
* @param getterNone Alternative value if conditions fail or getter is undefined
|
|
87
|
-
* @param conditions Trigger condition
|
|
88
|
-
* @param debugOptions Vue debugger options
|
|
89
|
-
*/
|
|
90
|
-
export declare function computedByLanguage<T, R extends (T | undefined) = T | undefined>(getter: ComputedGetter<R>, getterNone?: R | (() => R), conditions?: () => boolean, debugOptions?: DebuggerOptions): ComputedRef<R>;
|
|
91
|
-
|
|
92
|
-
/**
|
|
93
|
-
* Computed property computed on demand and cached.
|
|
94
|
-
* @param getter Value getter
|
|
95
|
-
* @param initialState initial result
|
|
96
|
-
*/
|
|
97
|
-
export declare function computedEternity<T>(getter: () => Promise<T> | T, initialState?: (() => T) | T): Ref<T, T>;
|
|
98
|
-
|
|
99
|
-
/** Component binding with class/style support */
|
|
100
|
-
export declare type ConstrBind<T> = T & Record<string, any> & {
|
|
101
|
-
key?: string;
|
|
102
|
-
class?: ConstrClass;
|
|
103
|
-
style?: ConstrStyles;
|
|
104
|
-
};
|
|
105
|
-
|
|
106
|
-
/** Constructor class type (string, array, or object) */
|
|
107
|
-
export declare type ConstrClass = string | (string | ConstrClass | Undefined)[] | ConstrClassObject;
|
|
108
|
-
|
|
109
|
-
/** Required main class and additional class list */
|
|
110
|
-
export declare type ConstrClasses = {
|
|
111
|
-
main: ConstrClass;
|
|
112
|
-
} & ConstrClassList;
|
|
113
|
-
|
|
114
|
-
/** Map class names to definitions */
|
|
115
|
-
export declare type ConstrClassList = Record<string, ConstrClass>;
|
|
116
|
-
|
|
117
|
-
/** Object for CSS classes with boolean values */
|
|
118
|
-
export declare type ConstrClassObject = Record<string, boolean | undefined>;
|
|
119
|
-
|
|
120
|
-
/** Generic record for constructor components */
|
|
121
|
-
export declare type ConstrComponent = Record<string, any>;
|
|
122
|
-
|
|
123
|
-
/** Component modification with reactive or normal values */
|
|
124
|
-
export declare type ConstrComponentMod<P extends ConstrItem> = ConstrItem | {
|
|
125
|
-
[K in keyof P]?: RefOrNormal<P[K]>;
|
|
126
|
-
};
|
|
127
|
-
|
|
128
|
-
/** Constructor emit with event handler signatures */
|
|
129
|
-
export declare type ConstrEmit<T extends ConstrItem = ConstrItem> = UnionToIntersection<ConstrEmitItem<{
|
|
130
|
-
[K in keyof T]: (evt: K, ...args: T[K]) => void;
|
|
131
|
-
}>>;
|
|
132
|
-
|
|
133
|
-
/** Extract emit type from constructor item */
|
|
134
|
-
export declare type ConstrEmitItem<T extends ConstrItem> = T[keyof T];
|
|
135
|
-
|
|
136
|
-
export declare type ConstrExpose<E extends Element, EXPOSE extends ConstrItem> = EXPOSE & {
|
|
137
|
-
elementHtml?: ComputedRef<E | undefined>;
|
|
138
|
-
};
|
|
139
|
-
|
|
140
|
-
/** Props for link handling */
|
|
141
|
-
export declare type ConstrHrefProps = {
|
|
142
|
-
href?: string;
|
|
143
|
-
};
|
|
144
|
-
|
|
145
|
-
/** Generic record for constructor items */
|
|
146
|
-
export declare type ConstrItem = Record<string, any>;
|
|
147
|
-
|
|
148
|
-
/** Constructor options for component config */
|
|
149
|
-
export declare type ConstrOptions<COMP extends ConstrComponent, EMITS extends ConstrItem, P extends ConstrItem> = {
|
|
150
|
-
components?: COMP;
|
|
151
|
-
compMod?: ConstrComponentMod<P>;
|
|
152
|
-
emits?: ConstrEmit<EMITS>;
|
|
153
|
-
classes?: RefType<ConstrClasses>;
|
|
154
|
-
styles?: RefType<ConstrStyles>;
|
|
155
|
-
};
|
|
156
|
-
|
|
157
|
-
/** Constructor prop item */
|
|
158
|
-
export declare type ConstrPropItem<T = any> = ConstrPropItemOptions<T> | PropType<T>;
|
|
159
|
-
|
|
160
|
-
/** Vue prop definition options */
|
|
161
|
-
export declare type ConstrPropItemOptions<T = any> = {
|
|
162
|
-
type?: PropType<T>;
|
|
163
|
-
required?: boolean;
|
|
164
|
-
default?: any;
|
|
165
|
-
validator?(value: any, props: any): boolean;
|
|
166
|
-
};
|
|
167
|
-
|
|
168
|
-
/** Component prop definitions */
|
|
169
|
-
export declare type ConstrProps<P = Record<string, any>> = {
|
|
170
|
-
[K in keyof P]: ConstrPropItem<P[K]>;
|
|
171
|
-
};
|
|
172
|
-
|
|
173
|
-
/** Constructor registration config */
|
|
174
|
-
export declare type ConstrRegistration = {
|
|
175
|
-
flag?: boolean;
|
|
176
|
-
translate?: Record<string, string>;
|
|
177
|
-
};
|
|
178
|
-
|
|
179
|
-
/** Setup interface for component initialization */
|
|
180
|
-
export declare type ConstrSetup<E extends Element, CLASSES extends ConstrClasses, SETUP extends ConstrItem> = {
|
|
181
|
-
name: string;
|
|
182
|
-
element: Ref<E | undefined>;
|
|
183
|
-
classes: RefType<CLASSES>;
|
|
184
|
-
styles: RefType<ConstrStyles>;
|
|
185
|
-
} & SETUP;
|
|
186
|
-
|
|
187
|
-
/** Style definitions (object or array) */
|
|
188
|
-
export declare type ConstrStyles = Record<string, ConstrStylesItem> | ConstrStyles[];
|
|
189
|
-
|
|
190
|
-
/** Individual style property */
|
|
191
|
-
export declare type ConstrStylesItem = string | null;
|
|
192
|
-
|
|
193
|
-
/** Value wrapper */
|
|
194
|
-
export declare type ConstrValue<T = any> = {
|
|
195
|
-
value?: T;
|
|
196
|
-
};
|
|
197
|
-
|
|
198
|
-
/** Class for date processing. */
|
|
199
|
-
export declare class DatetimeRef {
|
|
200
|
-
/**
|
|
201
|
-
* @param date input date
|
|
202
|
-
* @param type output format
|
|
203
|
-
* @param code locale code
|
|
204
|
-
*/
|
|
205
|
-
constructor(date: RefOrNormal<NumberOrStringOrDate>, type?: RefOrNormal<GeoDate>, code?: RefOrNormal<string>);
|
|
206
|
-
getItem(): Ref<NumberOrStringOrDate>;
|
|
207
|
-
getDate(): Ref<Date>;
|
|
208
|
-
getDatetime(): Datetime;
|
|
209
|
-
getHoursType(): ComputedRef<GeoHours>;
|
|
210
|
-
getFirstDayCode(): ComputedRef<GeoFirstDay>;
|
|
211
|
-
getYear(): ComputedRef<number>;
|
|
212
|
-
getMonth(): ComputedRef<number>;
|
|
213
|
-
getDay(): ComputedRef<number>;
|
|
214
|
-
getHour(): ComputedRef<number>;
|
|
215
|
-
getMinute(): ComputedRef<number>;
|
|
216
|
-
getSecond(): ComputedRef<number>;
|
|
217
|
-
getMaxDay(): ComputedRef<number>;
|
|
218
|
-
/**
|
|
219
|
-
* @param type format type
|
|
220
|
-
* @param styleOptions representation style
|
|
221
|
-
*/
|
|
222
|
-
locale(type?: GeoDate, styleOptions?: Intl.DateTimeFormatOptions['month'] | Intl.DateTimeFormatOptions): ComputedRef<string>;
|
|
223
|
-
/**
|
|
224
|
-
* @param timeZone include time zone
|
|
225
|
-
*/
|
|
226
|
-
standard(timeZone?: boolean): ComputedRef<string>;
|
|
227
|
-
}
|
|
228
|
-
|
|
229
|
-
/** Base class for constructor design logic. */
|
|
18
|
+
// File: classes/design/DesignAbstract.d.ts
|
|
19
|
+
/** Base class for constructor. */
|
|
230
20
|
export declare abstract class DesignAbstract<T extends Record<string, any>, C extends Record<string, any>> {
|
|
231
21
|
/**
|
|
232
22
|
* @param props base data
|
|
233
|
-
* @param callback
|
|
234
|
-
* @param changed tracking
|
|
23
|
+
* @param callback callback on change
|
|
24
|
+
* @param changed data for tracking
|
|
235
25
|
*/
|
|
236
26
|
constructor(props: T, callback?: ((event: C) => void) | undefined, changed?: string[]);
|
|
237
|
-
/**
|
|
238
|
-
* @param compelled force update
|
|
239
|
-
*/
|
|
27
|
+
/** Calls the callback function. */
|
|
240
28
|
make(compelled?: boolean): this;
|
|
241
|
-
/**
|
|
242
|
-
* @param compelled force update
|
|
243
|
-
*/
|
|
29
|
+
/** Calls the callback function. */
|
|
244
30
|
makeCallback(compelled?: boolean): void;
|
|
245
31
|
}
|
|
246
|
-
|
|
247
|
-
/**
|
|
32
|
+
// File: classes/design/DesignAsyncAbstract.d.ts
|
|
33
|
+
/** Base class for constructor. */
|
|
248
34
|
export declare abstract class DesignAsyncAbstract<T extends Record<string, any>, C extends Record<string, any>> extends DesignAbstract<T, C> {
|
|
35
|
+
/** Calls the callback function. */
|
|
249
36
|
make(compelled?: boolean): this;
|
|
37
|
+
/** Calls the callback function. */
|
|
250
38
|
makeCallback(compelled?: boolean): Promise<void>;
|
|
251
39
|
}
|
|
252
|
-
|
|
253
|
-
/**
|
|
40
|
+
// File: classes/design/DesignChanged.d.ts
|
|
41
|
+
/** Checks edited values. */
|
|
254
42
|
export declare class DesignChanged<T extends Record<string, any>> {
|
|
255
43
|
/**
|
|
256
44
|
* @param props base data
|
|
257
|
-
* @param watch tracking
|
|
45
|
+
* @param watch tracking data
|
|
258
46
|
*/
|
|
259
47
|
constructor(props: T, watch?: string[]);
|
|
48
|
+
/** Check if value updated. */
|
|
260
49
|
is(name: string | string[]): boolean;
|
|
50
|
+
/** Check for data changes. */
|
|
261
51
|
isChanged(): boolean;
|
|
52
|
+
/** Updates all values. */
|
|
262
53
|
update(): void;
|
|
263
54
|
}
|
|
264
|
-
|
|
55
|
+
// File: classes/design/DesignComp.d.ts
|
|
265
56
|
export declare class DesignComp<COMP extends ConstrComponent, P extends ConstrItem> extends DesignComponents<COMP, P> {
|
|
266
57
|
}
|
|
267
|
-
|
|
268
|
-
/**
|
|
58
|
+
// File: classes/design/DesignComponents.d.ts
|
|
59
|
+
/** Class for connected components. */
|
|
269
60
|
export declare class DesignComponents<COMP extends ConstrComponent, P extends ConstrItem> {
|
|
270
61
|
/**
|
|
271
|
-
* @param components
|
|
62
|
+
* @param components connected components
|
|
272
63
|
* @param modification modification data
|
|
273
64
|
*/
|
|
274
65
|
constructor(components?: COMP, modification?: ConstrComponentMod<P> | undefined);
|
|
66
|
+
/** Check component presence. */
|
|
275
67
|
is<K extends keyof COMP>(name: K): name is K;
|
|
68
|
+
/** Get component object. */
|
|
276
69
|
get<K extends keyof COMP>(name: K): COMP[K];
|
|
70
|
+
/** Returns modified input data. */
|
|
277
71
|
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. */
|
|
278
73
|
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 single component by name. */
|
|
279
75
|
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. */
|
|
280
77
|
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;
|
|
281
78
|
}
|
|
282
|
-
|
|
283
|
-
/**
|
|
79
|
+
// File: classes/design/DesignConstructorAbstract.d.ts
|
|
80
|
+
/** Class for collecting functional components. */
|
|
284
81
|
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> {
|
|
285
|
-
|
|
82
|
+
/** Get class name. */
|
|
286
83
|
getName(): string;
|
|
84
|
+
/** Get design name. */
|
|
287
85
|
getDesign(): string;
|
|
86
|
+
/** Get sub-class name. */
|
|
288
87
|
getSubClass(name: string | string[]): string;
|
|
88
|
+
/** Get status class name. */
|
|
289
89
|
getStatusClass(name: string | string[]): string;
|
|
90
|
+
/** Get style property name. */
|
|
290
91
|
getStyle(name: string | string[]): string;
|
|
92
|
+
/** Get additional parameters. */
|
|
291
93
|
getAttrs(): ConstrItem;
|
|
94
|
+
/** List external variables. */
|
|
292
95
|
expose(): ConstrExpose<E, EXPOSE>;
|
|
96
|
+
/** Render method for setup. */
|
|
293
97
|
render(): () => VNode | (VNode | any)[] | undefined;
|
|
294
98
|
}
|
|
295
|
-
|
|
296
|
-
/**
|
|
297
|
-
export declare
|
|
298
|
-
|
|
99
|
+
// File: classes/ref/DatetimeRef.d.ts
|
|
100
|
+
/** Class for date operations. */
|
|
101
|
+
export declare class DatetimeRef {
|
|
102
|
+
/**
|
|
103
|
+
* @param date processing date
|
|
104
|
+
* @param type output format type
|
|
105
|
+
* @param code country/language code
|
|
106
|
+
*/
|
|
107
|
+
constructor(date: RefOrNormal<NumberOrStringOrDate>, type?: RefOrNormal<GeoDate>, code?: RefOrNormal<string>);
|
|
108
|
+
/** Get base date data. */
|
|
109
|
+
getItem(): Ref<NumberOrStringOrDate>;
|
|
110
|
+
/** Get Date object. */
|
|
111
|
+
getDate(): Ref<Date>;
|
|
112
|
+
/** Get Datetime instance. */
|
|
113
|
+
getDatetime(): Datetime;
|
|
114
|
+
/** Get hours format. */
|
|
115
|
+
getHoursType(): ComputedRef<GeoHours>;
|
|
116
|
+
/** Get first day of week code. */
|
|
117
|
+
getFirstDayCode(): ComputedRef<GeoFirstDay>;
|
|
118
|
+
/** Get year from date. */
|
|
119
|
+
getYear(): ComputedRef<number>;
|
|
120
|
+
/** Get month (0-indexed). */
|
|
121
|
+
getMonth(): ComputedRef<number>;
|
|
122
|
+
/** Get day of month. */
|
|
123
|
+
getDay(): ComputedRef<number>;
|
|
124
|
+
/** Get hour. */
|
|
125
|
+
getHour(): ComputedRef<number>;
|
|
126
|
+
/** Get minutes. */
|
|
127
|
+
getMinute(): ComputedRef<number>;
|
|
128
|
+
/** Get seconds. */
|
|
129
|
+
getSecond(): ComputedRef<number>;
|
|
130
|
+
/** Get last day of week. */
|
|
131
|
+
getMaxDay(): ComputedRef<number>;
|
|
132
|
+
/** Locale-sensitive formatting. */
|
|
133
|
+
locale(type?: GeoDate, styleOptions?: Intl.DateTimeFormatOptions['month'] | Intl.DateTimeFormatOptions): ComputedRef<string>;
|
|
134
|
+
/** Standard data output. */
|
|
135
|
+
standard(timeZone?: boolean): ComputedRef<string>;
|
|
136
|
+
}
|
|
137
|
+
// File: classes/ref/EffectScopeGlobal.d.ts
|
|
299
138
|
/** Global effect scope. */
|
|
300
139
|
export declare class EffectScopeGlobal {
|
|
140
|
+
/** Run function in global scope. */
|
|
301
141
|
static run<T>(fn: () => T): T | undefined;
|
|
302
142
|
}
|
|
303
|
-
|
|
304
|
-
/**
|
|
143
|
+
// File: classes/ref/EventRef.d.ts
|
|
144
|
+
/** Reactive event handler. */
|
|
305
145
|
export declare class EventRef<E extends ElementOrWindow, O extends Event, D extends Record<string, any> = Record<string, any>> extends EventItem<E, O, D> {
|
|
306
146
|
constructor(elementSelector?: RefOrNormal<ElementOrString<E> | undefined>, elementSelectorControl?: RefOrNormal<ElementOrString<HTMLElement>>, type?: string | string[], listener?: EventListenerDetail<O, D>, options?: EventOptions, detail?: D);
|
|
307
147
|
}
|
|
308
|
-
|
|
309
|
-
/**
|
|
310
|
-
* Creates managed singleton with application, provide, or local strategy.
|
|
311
|
-
* @param callback init function
|
|
312
|
-
* @param type strategy (global, provide, local)
|
|
313
|
-
* @remarks Use for API services, state, or external SDKs.
|
|
314
|
-
* @example
|
|
315
|
-
* export const useUserApi = executeUseGlobal(() => useApiGet('/api/user'));
|
|
316
|
-
*/
|
|
317
|
-
export declare function executeUse<R, O extends any[], RI extends ExecuteUseReturn<R> = ExecuteUseReturn<R>>(callback: (...args: O) => R, type?: ExecuteUseType): ((...args: O) => RI) | (() => RI);
|
|
318
|
-
|
|
319
|
-
/** Global singleton helper. */
|
|
320
|
-
export declare function executeUseGlobal<R>(callback: () => R): (() => Readonly<R & {
|
|
321
|
-
init(): Readonly<R>;
|
|
322
|
-
destroyExecute?(): void;
|
|
323
|
-
}>);
|
|
324
|
-
|
|
325
|
-
/** Init global callbacks. */
|
|
326
|
-
export declare function executeUseGlobalInit(): void;
|
|
327
|
-
|
|
328
|
-
/** Local singleton helper. */
|
|
329
|
-
export declare function executeUseLocal<R, O extends any[]>(callback: (...args: O) => R): ((...args: O) => Readonly<R & {
|
|
330
|
-
init(): Readonly<R>;
|
|
331
|
-
destroyExecute?(): void;
|
|
332
|
-
}>);
|
|
333
|
-
|
|
334
|
-
/** Component-scoped singleton helper. */
|
|
335
|
-
export declare function executeUseProvide<R, O extends any[]>(callback: (...args: O) => R): ((...args: O) => Readonly<R & {
|
|
336
|
-
init(): Readonly<R>;
|
|
337
|
-
destroyExecute?(): void;
|
|
338
|
-
}>);
|
|
339
|
-
|
|
340
|
-
/** Singleton return type. */
|
|
341
|
-
export declare type ExecuteUseReturn<R> = Readonly<R & {
|
|
342
|
-
init(): Readonly<R>;
|
|
343
|
-
destroyExecute?(): void;
|
|
344
|
-
}>;
|
|
345
|
-
|
|
346
|
-
/** Singleton strategies. */
|
|
347
|
-
export declare enum ExecuteUseType {
|
|
348
|
-
global = "global",
|
|
349
|
-
provide = "provide",
|
|
350
|
-
local = "local"
|
|
351
|
-
}
|
|
352
|
-
|
|
353
|
-
/** Functional plugin configuration. */
|
|
354
|
-
export declare interface FunctionalPluginOptions {
|
|
355
|
-
api?: ApiConfig;
|
|
356
|
-
translate?: TranslateConfig;
|
|
357
|
-
metaSuffix?: string;
|
|
358
|
-
icons?: IconsConfig;
|
|
359
|
-
router?: Router;
|
|
360
|
-
errorCauses?: ErrorCenterCauseList;
|
|
361
|
-
}
|
|
362
|
-
|
|
363
|
-
/** Management class for Flags. */
|
|
148
|
+
// File: classes/ref/GeoFlagRef.d.ts
|
|
149
|
+
/** Flag management. */
|
|
364
150
|
export declare class GeoFlagRef {
|
|
151
|
+
/** @param code country code */
|
|
365
152
|
constructor(code?: RefOrNormal<string>);
|
|
153
|
+
/** Get reactive country code. */
|
|
366
154
|
getCode(): Ref<string>;
|
|
155
|
+
/** Get country/flag info. */
|
|
367
156
|
get(code?: string): ComputedRef<GeoFlagItem | undefined>;
|
|
157
|
+
/** Get flag URL. */
|
|
368
158
|
getFlag(code?: string): ComputedRef<string | undefined>;
|
|
159
|
+
/** Get list of countries by codes. */
|
|
369
160
|
getList(codes?: string[]): ComputedRef<GeoFlagItem[]>;
|
|
161
|
+
/** Get list in national language. */
|
|
370
162
|
getNational(codes?: string[]): ComputedRef<GeoFlagNational[]>;
|
|
371
163
|
}
|
|
372
|
-
|
|
373
|
-
/** Reactive
|
|
164
|
+
// File: classes/ref/GeoIntlRef.d.ts
|
|
165
|
+
/** Reactive number and date formatting. */
|
|
374
166
|
export declare class GeoIntlRef {
|
|
167
|
+
/** @param code language/country code */
|
|
375
168
|
constructor(code?: RefOrNormal<string>);
|
|
169
|
+
/** Translation of display names. */
|
|
376
170
|
display(value?: RefOrNormal<string>, typeOptions?: Intl.DisplayNamesOptions['type'] | Intl.DisplayNamesOptions): ComputedRef<string>;
|
|
171
|
+
/** Get language names. */
|
|
377
172
|
languageName(value?: RefOrNormal<string>, style?: Intl.RelativeTimeFormatStyle): ComputedRef<string>;
|
|
173
|
+
/** Get region names. */
|
|
378
174
|
countryName(value?: RefOrNormal<string>, style?: Intl.RelativeTimeFormatStyle): ComputedRef<string>;
|
|
175
|
+
/** Format number. */
|
|
379
176
|
number(value: RefOrNormal<NumberOrString>, options?: Intl.NumberFormatOptions): ComputedRef<string>;
|
|
177
|
+
/** Decimal point. */
|
|
380
178
|
decimal(): ComputedRef<string>;
|
|
179
|
+
/** Format currency. */
|
|
381
180
|
currency(value: RefOrNormal<NumberOrString>, currencyOptions?: RefOrNormal<string | Intl.NumberFormatOptions>, numberOnly?: boolean): ComputedRef<string>;
|
|
181
|
+
/** Get currency symbol. */
|
|
382
182
|
currencySymbol(currency: RefOrNormal<string>, currencyDisplay?: keyof Intl.NumberFormatOptionsCurrencyDisplayRegistry): ComputedRef<string>;
|
|
183
|
+
/** Format units. */
|
|
383
184
|
unit(value: RefOrNormal<NumberOrString>, unitOptions?: string | Intl.NumberFormatOptions): ComputedRef<string>;
|
|
185
|
+
/** Format file size. */
|
|
384
186
|
sizeFile(value: RefOrNormal<NumberOrString>, unitOptions?: 'byte' | 'kilobyte' | 'megabyte' | 'gigabyte' | 'terabyte' | 'petabyte' | Intl.NumberFormatOptions): ComputedRef<string>;
|
|
187
|
+
/** Format percentage. */
|
|
385
188
|
percent(value: RefOrNormal<NumberOrString>, options?: Intl.NumberFormatOptions): ComputedRef<string>;
|
|
189
|
+
/** Format percentage (unit). */
|
|
386
190
|
percentBy100(value: RefOrNormal<NumberOrString>, options?: Intl.NumberFormatOptions): ComputedRef<string>;
|
|
191
|
+
/** Pluralization rules. */
|
|
387
192
|
plural(value: RefOrNormal<NumberOrString>, words: string, options?: Intl.PluralRulesOptions, optionsNumber?: Intl.NumberFormatOptions): ComputedRef<string>;
|
|
193
|
+
/** Format date/time. */
|
|
388
194
|
date(value: RefOrNormal<NumberOrStringOrDate>, type?: GeoDate, styleOptions?: Intl.DateTimeFormatOptions['month'] | Intl.DateTimeFormatOptions, hour24?: boolean): ComputedRef<string>;
|
|
195
|
+
/** Format relative time. */
|
|
389
196
|
relative(value: RefOrNormal<NumberOrStringOrDate>, styleOptions?: Intl.RelativeTimeFormatStyle | Intl.RelativeTimeFormatOptions, todayValue?: Date): ComputedRef<string>;
|
|
197
|
+
/** Format relative time with limit. */
|
|
390
198
|
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
|
+
/** Format elapsed time. */
|
|
391
200
|
relativeByValue(value: RefOrNormal<NumberOrString>, unit: Intl.RelativeTimeFormatUnit, styleOptions?: Intl.RelativeTimeFormatStyle | Intl.RelativeTimeFormatOptions): ComputedRef<string>;
|
|
201
|
+
/** Month name. */
|
|
392
202
|
month(value?: RefOrNormal<NumberOrStringOrDate>, style?: Intl.DateTimeFormatOptions['month']): ComputedRef<string>;
|
|
203
|
+
/** List of months. */
|
|
393
204
|
months(style?: Intl.DateTimeFormatOptions['month']): ComputedRef<ItemValue<number | undefined>[]>;
|
|
205
|
+
/** Day of week name. */
|
|
394
206
|
weekday(value?: RefOrNormal<NumberOrStringOrDate>, style?: Intl.DateTimeFormatOptions['weekday']): ComputedRef<string>;
|
|
207
|
+
/** List of weekdays. */
|
|
395
208
|
weekdays(style?: Intl.DateTimeFormatOptions['weekday']): ComputedRef<ItemValue<number | undefined>[]>;
|
|
209
|
+
/** Time string. */
|
|
396
210
|
time(value: RefOrNormal<NumberOrStringOrDate>): ComputedRef<string>;
|
|
211
|
+
/** Sort strings by locale. */
|
|
397
212
|
sort<T>(data: RefOrNormal<T[]>, compareFn?: (a: T, b: T) => [string, string]): ComputedRef<T[]>;
|
|
398
213
|
}
|
|
399
|
-
|
|
400
|
-
/** Reactive
|
|
214
|
+
// File: classes/ref/GeoRef.d.ts
|
|
215
|
+
/** Reactive geography management. */
|
|
401
216
|
export declare class GeoRef {
|
|
217
|
+
/** Get full geographic info. */
|
|
402
218
|
static get(): Ref<GeoItemFull>;
|
|
219
|
+
/** Get current country. */
|
|
403
220
|
static getCountry(): ComputedRef<string>;
|
|
221
|
+
/** Get current language. */
|
|
404
222
|
static getLanguage(): ComputedRef<string>;
|
|
223
|
+
/** Get locale format. */
|
|
405
224
|
static getStandard(): ComputedRef<string>;
|
|
225
|
+
/** Get first day of week. */
|
|
406
226
|
static getFirstDay(): ComputedRef<string>;
|
|
227
|
+
/** Set data by code. */
|
|
407
228
|
static set(code: string): void;
|
|
408
229
|
}
|
|
409
|
-
|
|
410
|
-
/**
|
|
411
|
-
export declare function getBind<T, R extends ItemList>(value: T | R | undefined | null, nameExtra?: ItemList | string, name?: string, except?: boolean): ConstrBind<R>;
|
|
412
|
-
|
|
413
|
-
/** Generates reactive properties for subcomponents. */
|
|
414
|
-
export declare function getBindRef<T, R extends ItemList>(value: RefOrNormal<T | R> | undefined, nameExtra?: RefOrNormal<ItemList> | string, name?: string): ComputedRef<R>;
|
|
415
|
-
|
|
416
|
-
/** Get class name from props. */
|
|
417
|
-
export declare function getClassName<T extends ItemList>(props?: T): string | undefined;
|
|
418
|
-
|
|
419
|
-
/** Generate render key. */
|
|
420
|
-
export declare function getIndexForRender<T extends ItemList>(name: string | any, props?: T, index?: string): string | undefined;
|
|
421
|
-
|
|
422
|
-
/** Get injected value. */
|
|
423
|
-
export declare function getInject<T>(name: string): T | undefined;
|
|
424
|
-
|
|
425
|
-
/** Get request options. */
|
|
426
|
-
export declare const getOptions: (options?: ApiOptions) => RefOrNormal<ApiFetch>;
|
|
427
|
-
|
|
428
|
-
/** Unwrap Ref or return value. */
|
|
429
|
-
export declare function getRef<T>(item: RefOrNormal<T>): T;
|
|
430
|
-
|
|
431
|
-
export declare type LazyItem = {
|
|
432
|
-
status: ShallowRef<boolean>;
|
|
433
|
-
ratio: ShallowRef<number>;
|
|
434
|
-
entry: ShallowRef<IntersectionObserverEntry | undefined>;
|
|
435
|
-
stopWatch: () => void;
|
|
436
|
-
};
|
|
437
|
-
|
|
438
|
-
export declare type LazyItemByMargin = {
|
|
439
|
-
rootMargin: string;
|
|
440
|
-
item: any;
|
|
441
|
-
};
|
|
442
|
-
|
|
443
|
-
export declare type LazyList = Record<string, LazyItem>;
|
|
444
|
-
|
|
445
|
-
/** List item structure. */
|
|
446
|
-
export declare type ListDataBasic = {
|
|
447
|
-
label?: NumberOrString;
|
|
448
|
-
value?: any;
|
|
449
|
-
search?: string;
|
|
450
|
-
};
|
|
451
|
-
|
|
452
|
-
/** List items with state. */
|
|
453
|
-
export declare type ListDataFull<Item extends ListDataBasic = ListDataBasic> = ListDataFullItem<Item>[];
|
|
454
|
-
|
|
455
|
-
/** List item state properties. */
|
|
456
|
-
export declare type ListDataFullItem<Item extends ListDataBasic = ListDataBasic> = ListDataItem<Item> & {
|
|
457
|
-
focus: boolean;
|
|
458
|
-
highlight?: string;
|
|
459
|
-
selected: boolean;
|
|
460
|
-
disabled?: boolean;
|
|
461
|
-
};
|
|
462
|
-
|
|
463
|
-
/** List item with type and index. */
|
|
464
|
-
export declare type ListDataItem<Item extends ListDataBasic = ListDataBasic> = ConstrBind<Item & {
|
|
465
|
-
parent?: string;
|
|
466
|
-
type: ListType;
|
|
467
|
-
index: string;
|
|
468
|
-
}>;
|
|
469
|
-
|
|
470
|
-
/** Manages data list state and selection. */
|
|
230
|
+
// File: classes/ref/ListDataRef.d.ts
|
|
231
|
+
/** List data management. */
|
|
471
232
|
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
|
+
*/
|
|
472
247
|
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 rendering. */
|
|
473
249
|
readonly data: ComputedRef<ListList>;
|
|
250
|
+
/** Lite list for loading. */
|
|
474
251
|
readonly liteData: ComputedRef<ListList>;
|
|
252
|
+
/** Full data with state. */
|
|
475
253
|
readonly fullData: ComputedRef<ListDataFull>;
|
|
254
|
+
/** Flat map of entries. */
|
|
476
255
|
readonly map: ComputedRef<ListList>;
|
|
256
|
+
/** Map of items only. */
|
|
477
257
|
readonly mapItems: ComputedRef<ListList>;
|
|
258
|
+
/** Selection values list. */
|
|
478
259
|
readonly items: ComputedRef<ListList>;
|
|
260
|
+
/** Index of first match. */
|
|
479
261
|
readonly highlightFirstItem: ComputedRef<number>;
|
|
262
|
+
/** If selection exists. */
|
|
480
263
|
readonly isSelected: ComputedRef<boolean>;
|
|
264
|
+
/** Min selection reached. */
|
|
481
265
|
readonly isSelectedMin: ComputedRef<boolean>;
|
|
266
|
+
/** Max selection reached. */
|
|
482
267
|
readonly isSelectedMax: ComputedRef<boolean>;
|
|
268
|
+
/** Selected items map. */
|
|
483
269
|
readonly selectedList: ComputedRef<ListList>;
|
|
270
|
+
/** Selected in group. */
|
|
484
271
|
readonly selectedListInGroup: ComputedRef<ListList>;
|
|
272
|
+
/** Selected labels. */
|
|
485
273
|
readonly selectedNames: ComputedRef<ListNames>;
|
|
274
|
+
/** Selected values. */
|
|
486
275
|
readonly selectedValues: ComputedRef<any[]>;
|
|
276
|
+
/** Is lite mode active. */
|
|
487
277
|
isLite(): boolean;
|
|
278
|
+
/** Is focus present. */
|
|
488
279
|
isFocus(): boolean;
|
|
280
|
+
/** Is result highlighted. */
|
|
489
281
|
isHighlight(): boolean;
|
|
282
|
+
/** Is highlighting active. */
|
|
490
283
|
isHighlightActive(): boolean;
|
|
284
|
+
/** Get count. */
|
|
491
285
|
getLength(): number;
|
|
286
|
+
/** Get total map count. */
|
|
492
287
|
getLengthByMap(): number;
|
|
288
|
+
/** Get items count. */
|
|
493
289
|
getLengthByItems(): number;
|
|
290
|
+
/** Get focused ID. */
|
|
494
291
|
getFocus(): ListSelectedItem | undefined;
|
|
292
|
+
/** Get highlight text. */
|
|
495
293
|
getHighlight(): string | undefined;
|
|
294
|
+
/** Get min highlight length. */
|
|
496
295
|
getHighlightLengthStart(): number;
|
|
296
|
+
/** Get selected list. */
|
|
497
297
|
getSelected(): ListSelectedList | undefined;
|
|
298
|
+
/** Get item by relative step. */
|
|
498
299
|
getSelectedByStep(step: number): ListSelectedItem | undefined;
|
|
300
|
+
/** Get next item. */
|
|
499
301
|
getSelectedNext(): ListSelectedItem | undefined;
|
|
302
|
+
/** Get previous item. */
|
|
500
303
|
getSelectedPrev(): ListSelectedItem | undefined;
|
|
304
|
+
/** Get item by step from ref. */
|
|
501
305
|
getItemByStep(item: ListDataItem, step: number): ListDataItem | undefined;
|
|
306
|
+
/** Get next item from ref. */
|
|
502
307
|
getItemNext(item: ListDataItem): ListDataItem | undefined;
|
|
308
|
+
/** Get previous item from ref. */
|
|
503
309
|
getItemPrev(item: ListDataItem): ListDataItem | undefined;
|
|
310
|
+
/** Get item by index step. */
|
|
504
311
|
getIndexByStep(index: string, step: number): ListDataItem | undefined;
|
|
312
|
+
/** Get next item from index. */
|
|
505
313
|
getIndexNext(index: string): ListDataItem | undefined;
|
|
314
|
+
/** Get previous item from index. */
|
|
506
315
|
getIndexPrev(index: string): ListDataItem | undefined;
|
|
316
|
+
/** Get item details by index. */
|
|
507
317
|
getItemByIndex(index?: string): {
|
|
508
318
|
key: number;
|
|
509
319
|
item: ListDataItem;
|
|
510
320
|
} | undefined;
|
|
321
|
+
/** Get item by key. */
|
|
511
322
|
getItemByKey(key: number): ListDataItem | undefined;
|
|
323
|
+
/** Get first child of parent. */
|
|
512
324
|
getFirstItemByParent(parent: string | undefined): ListDataItem | undefined;
|
|
325
|
+
/** Get last child of parent. */
|
|
513
326
|
getLastItemByParent(parent: string | undefined): ListDataItem | undefined;
|
|
327
|
+
/** Get sublist instance. */
|
|
514
328
|
getSubList(item: ListDataItem): ListDataRef;
|
|
515
329
|
}
|
|
516
|
-
|
|
517
|
-
|
|
518
|
-
|
|
519
|
-
export declare type ListListInput<Item extends ListDataBasic = ListDataBasic> = ListListInputItem<Item>[] | string[] | Record<string, ListListInputItem<Item>> | Record<string, string>;
|
|
520
|
-
|
|
521
|
-
export declare type ListListInputItem<Item extends ListDataBasic = ListDataBasic> = ConstrBind<Item>;
|
|
522
|
-
|
|
523
|
-
export declare type ListName = string | number | undefined;
|
|
524
|
-
|
|
525
|
-
export declare type ListNames = ListName[];
|
|
526
|
-
|
|
527
|
-
export declare type ListRecord<Item extends ListDataBasic = ListDataBasic> = ListList<Item> | Record<string, any>;
|
|
528
|
-
|
|
529
|
-
export declare type ListSelectedItem = NumberOrStringOrBoolean;
|
|
530
|
-
|
|
531
|
-
export declare type ListSelectedList = ListSelectedItem | ListSelectedItem[];
|
|
532
|
-
|
|
533
|
-
export declare type ListType = 'item' | 'space' | 'line' | 'subtitle' | 'html' | 'menu' | 'menu-group' | 'group';
|
|
534
|
-
|
|
535
|
-
export declare type RawChildren = string | number | boolean | VNode | VNodeArrayChildren | (() => any);
|
|
536
|
-
|
|
537
|
-
export declare type RawSlots = {
|
|
538
|
-
[name: string]: unknown;
|
|
539
|
-
$stable?: boolean;
|
|
540
|
-
};
|
|
541
|
-
|
|
542
|
-
export declare type RefOrNormal<T> = RefType<T> | T;
|
|
543
|
-
|
|
544
|
-
export declare type RefType<T> = ComputedRef<T> | Ref<T>;
|
|
545
|
-
|
|
546
|
-
export declare type RefUndefined<T> = RefType<T | undefined>;
|
|
547
|
-
|
|
548
|
-
/** Rendering helper. */
|
|
549
|
-
export declare function render<T extends ItemList>(name: string | any, props?: T, children?: RawChildren | RawSlots, index?: string): VNode;
|
|
550
|
-
|
|
551
|
-
/** Router navigation management. */
|
|
330
|
+
// File: classes/ref/RouterItemRef.d.ts
|
|
331
|
+
/** Router management. */
|
|
552
332
|
export declare class RouterItemRef {
|
|
333
|
+
/** Get router. */
|
|
553
334
|
static get(): Router;
|
|
335
|
+
/** Get link by name. */
|
|
554
336
|
static getLink(name: string, params?: any, query?: any): string | undefined;
|
|
337
|
+
/** Get href props by name. */
|
|
555
338
|
static getHref(name?: string, params?: any, query?: any): ConstrHrefProps;
|
|
339
|
+
/** Change route. */
|
|
556
340
|
static push(to: string | RouteLocationRaw): void;
|
|
341
|
+
/** Set router. */
|
|
557
342
|
static set(router: Router): void;
|
|
343
|
+
/** Set router once. */
|
|
558
344
|
static setOneTime(router: Router): void;
|
|
345
|
+
/** Raw to href conversion. */
|
|
559
346
|
static rawToHref(to?: string | RouteLocationRaw): ConstrHrefProps;
|
|
560
347
|
}
|
|
561
|
-
|
|
562
|
-
/** Reactive
|
|
348
|
+
// File: classes/ref/ScrollbarWidthRef.d.ts
|
|
349
|
+
/** Reactive scroll width. */
|
|
563
350
|
export declare class ScrollbarWidthRef {
|
|
564
351
|
readonly item: Ref<boolean | undefined, boolean | undefined>;
|
|
565
352
|
readonly width: Ref<number, number>;
|
|
566
353
|
constructor();
|
|
567
354
|
readonly is: ComputedRef<boolean>;
|
|
568
355
|
}
|
|
569
|
-
|
|
570
|
-
|
|
571
|
-
|
|
572
|
-
export declare type SearchListValueRef<T extends SearchItem> = RefOrNormal<SearchListValue<T>>;
|
|
573
|
-
|
|
574
|
-
/** Global API conditions setter. */
|
|
575
|
-
export declare const setApiRefGlobalConditions: (conditions: RefType<any>) => void;
|
|
576
|
-
|
|
577
|
-
/** Update Ref value. */
|
|
578
|
-
export declare function setRef<T>(item: Ref<T>, value: T): void;
|
|
579
|
-
|
|
580
|
-
/** Shorthand for useTranslateRef. */
|
|
581
|
-
export declare const t: <T extends string[]>(names: T) => ShallowRef<TranslateList<T>>;
|
|
582
|
-
|
|
583
|
-
/** Merge objects with class/style merging. */
|
|
584
|
-
export declare function toBind<R extends ItemList = ItemList>(extra: ItemList, value: ItemList): ConstrBind<R>;
|
|
585
|
-
|
|
586
|
-
/** Merge multiple objects with class/style merging. */
|
|
587
|
-
export declare function toBinds<R extends ItemList = ItemList>(...values: (ItemList | undefined)[]): ConstrBind<R>;
|
|
588
|
-
|
|
589
|
-
/** Wrap value in Ref. */
|
|
590
|
-
export declare function toRefItem<T>(item: RefOrNormal<T>): Ref<T>;
|
|
591
|
-
|
|
592
|
-
export declare type UnionToIntersection<U> = (U extends any ? (k: U) => void : never) extends (k: infer I) => void ? I : never;
|
|
593
|
-
|
|
594
|
-
/** Execute async API request immediately. */
|
|
356
|
+
// File: composables/ref/useApiAsyncRef.d.ts
|
|
357
|
+
/** Async API request initialization. */
|
|
595
358
|
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>;
|
|
596
|
-
|
|
597
|
-
/** API delete request. */
|
|
359
|
+
// File: composables/ref/useApiDelete.d.ts
|
|
360
|
+
/** API delete request hook. */
|
|
598
361
|
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): {
|
|
599
362
|
loading: Ref<boolean, boolean>;
|
|
600
363
|
send(request?: Request | undefined): Promise<Return | undefined>;
|
|
601
364
|
};
|
|
602
|
-
|
|
603
|
-
/** API get request. */
|
|
365
|
+
// File: composables/ref/useApiGet.d.ts
|
|
366
|
+
/** API get request hook. */
|
|
604
367
|
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): {
|
|
605
368
|
loading: Ref<boolean, boolean>;
|
|
606
369
|
send(request?: Request | undefined): Promise<Return | undefined>;
|
|
607
370
|
};
|
|
608
|
-
|
|
371
|
+
// File: composables/ref/useApiManagementAsyncRef.d.ts
|
|
372
|
+
/** Async API management hook. */
|
|
373
|
+
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
|
+
isValid: ComputedRef<boolean>;
|
|
375
|
+
list: ComputedRef<SearchFormatList<ItemFormatters, Columns>>;
|
|
376
|
+
readonly data: ComputedRef< ApiData<Return> | undefined>;
|
|
377
|
+
readonly length: ComputedRef<number>;
|
|
378
|
+
lengthData: ComputedRef<number>;
|
|
379
|
+
starting: ComputedRef<boolean>;
|
|
380
|
+
reading: Ref<boolean, boolean>;
|
|
381
|
+
loading: Ref<boolean, boolean>;
|
|
382
|
+
loadingSearch: Ref<boolean, boolean> | undefined;
|
|
383
|
+
loadingPost: Ref<boolean, boolean> | undefined;
|
|
384
|
+
loadingPut: Ref<boolean, boolean> | undefined;
|
|
385
|
+
loadingDelete: Ref<boolean, boolean> | undefined;
|
|
386
|
+
isSearch: ComputedRef<boolean> | undefined;
|
|
387
|
+
search: Ref<string, string> | undefined;
|
|
388
|
+
init: () => void;
|
|
389
|
+
initSsr: () => void;
|
|
390
|
+
reset: () => Promise<void>;
|
|
391
|
+
abort: () => void;
|
|
392
|
+
sendPost: (request?: ApiFetch["request"]) => Promise< ApiData<Post> | undefined>;
|
|
393
|
+
sendPut: (request?: ApiFetch["request"]) => Promise< ApiData<Put> | undefined>;
|
|
394
|
+
sendDelete: (request?: ApiFetch["request"]) => Promise< ApiData<Delete> | undefined>;
|
|
395
|
+
};
|
|
396
|
+
// File: composables/ref/useApiManagementRef.d.ts
|
|
609
397
|
/**
|
|
610
|
-
*
|
|
611
|
-
* @
|
|
398
|
+
* Composable for comprehensive API request orchestration (GET, Search, Mutations).
|
|
399
|
+
* @note Use with `executeUse` for central state.
|
|
400
|
+
* @remarks Recommended for values; avoid for logic-critical IDs.
|
|
612
401
|
* @example
|
|
613
|
-
* const products = useApiManagementRef(
|
|
402
|
+
* const products = useApiManagementRef(
|
|
403
|
+
* { path: '/api/v1/products', skeleton: () => [] },
|
|
404
|
+
* { price: (v) => `${v} USD` },
|
|
405
|
+
* { columns: ['name'] },
|
|
406
|
+
* { path: '/api/v1/products' }
|
|
407
|
+
* );
|
|
614
408
|
*/
|
|
615
409
|
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): {
|
|
616
410
|
isValid: ComputedRef<boolean>;
|
|
@@ -627,27 +421,28 @@ export declare function useApiManagementRef<Return extends ApiManagementValue, F
|
|
|
627
421
|
loadingDelete: Ref<boolean, boolean> | undefined;
|
|
628
422
|
isSearch: ComputedRef<boolean> | undefined;
|
|
629
423
|
search: Ref<string, string> | undefined;
|
|
424
|
+
init: () => void;
|
|
425
|
+
initSsr: () => void;
|
|
630
426
|
reset: () => Promise<void>;
|
|
631
427
|
abort: () => void;
|
|
632
428
|
sendPost: (request?: ApiFetch["request"]) => Promise<ApiData<Post> | undefined>;
|
|
633
429
|
sendPut: (request?: ApiFetch["request"]) => Promise<ApiData<Put> | undefined>;
|
|
634
430
|
sendDelete: (request?: ApiFetch["request"]) => Promise<ApiData<Delete> | undefined>;
|
|
635
431
|
};
|
|
636
|
-
|
|
637
|
-
/** API post request. */
|
|
432
|
+
// File: composables/ref/useApiPost.d.ts
|
|
433
|
+
/** API post request hook. */
|
|
638
434
|
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): {
|
|
639
435
|
loading: Ref<boolean, boolean>;
|
|
640
436
|
send(request?: Request | undefined): Promise<Return | undefined>;
|
|
641
437
|
};
|
|
642
|
-
|
|
643
|
-
/** API put request. */
|
|
438
|
+
// File: composables/ref/useApiPut.d.ts
|
|
439
|
+
/** API put request hook. */
|
|
644
440
|
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): {
|
|
645
441
|
loading: Ref<boolean, boolean>;
|
|
646
442
|
send(request?: Request | undefined): Promise<Return | undefined>;
|
|
647
443
|
};
|
|
648
|
-
|
|
649
|
-
|
|
650
|
-
export declare interface UseApiRef<R> {
|
|
444
|
+
// File: composables/ref/useApiRef.d.ts
|
|
445
|
+
export interface UseApiRef<R> {
|
|
651
446
|
data: ComputedRef<ApiData<R> | undefined>;
|
|
652
447
|
item: Ref<ApiData<R> | undefined>;
|
|
653
448
|
isResponseContractValid: ComputedRef<boolean>;
|
|
@@ -666,41 +461,54 @@ export declare interface UseApiRef<R> {
|
|
|
666
461
|
stop(): void;
|
|
667
462
|
abort(): void;
|
|
668
463
|
}
|
|
669
|
-
|
|
670
|
-
/** Reactive API request management. */
|
|
464
|
+
/** Reactive API requester. */
|
|
671
465
|
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>;
|
|
672
|
-
|
|
673
|
-
|
|
466
|
+
/** Global API request conditions. */
|
|
467
|
+
export declare const setApiRefGlobalConditions: (conditions: RefType<any>) => void;
|
|
468
|
+
// File: composables/ref/useApiRequest.d.ts
|
|
469
|
+
/** General API request hook. */
|
|
674
470
|
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): {
|
|
675
471
|
loading: Ref<boolean, boolean>;
|
|
676
472
|
send(request?: Request): Promise<Return | undefined>;
|
|
677
473
|
};
|
|
678
|
-
|
|
679
|
-
|
|
474
|
+
// File: composables/ref/useBroadcastValueRef.d.ts
|
|
475
|
+
type BroadcastValueItem<T> = T | string | undefined;
|
|
476
|
+
/** Cross-tab data sync. */
|
|
680
477
|
export declare function useBroadcastValueRef<T>(name: string, defaultValue?: T | string | (() => (T | string))): Ref<BroadcastValueItem<T>>;
|
|
681
|
-
|
|
478
|
+
// File: composables/ref/useCookieRef.d.ts
|
|
682
479
|
/** Reactive cookie management. */
|
|
683
480
|
export declare function useCookieRef<T>(name: string, defaultValue?: T | string | (() => (T | string)), options?: CookieOptions): Ref<T | string | undefined>;
|
|
684
|
-
|
|
685
|
-
/** Reactive formatting
|
|
481
|
+
// File: composables/ref/useFormattersRef.d.ts
|
|
482
|
+
/** Reactive list formatting. */
|
|
686
483
|
export declare function useFormattersRef<Options extends FormattersOptionsList = FormattersOptionsList, List extends FormattersListProp = FormattersListProp>(list: RefType<List | undefined>, options: Options): {
|
|
687
484
|
listFormat: ComputedRef<FormattersReturn<List, Options>>;
|
|
688
485
|
length: ComputedRef<number>;
|
|
689
486
|
};
|
|
690
|
-
|
|
691
|
-
/**
|
|
487
|
+
// File: composables/ref/useGeoIntlRef.d.ts
|
|
488
|
+
/** Formatting class getter. */
|
|
692
489
|
export declare function useGeoIntlRef(): GeoIntlRef;
|
|
693
|
-
|
|
694
|
-
/** Reactive hash management. */
|
|
490
|
+
// File: composables/ref/useHashRef.d.ts
|
|
491
|
+
/** Reactive URL hash management. */
|
|
695
492
|
export declare function useHashRef<T>(name: string, defaultValue?: T | (() => T)): ShallowRef<T>;
|
|
696
|
-
|
|
697
|
-
|
|
493
|
+
// File: composables/ref/useLazyItemByMarginRef.d.ts
|
|
494
|
+
export type LazyItemByMargin = {
|
|
495
|
+
rootMargin: string;
|
|
496
|
+
item: any;
|
|
497
|
+
};
|
|
498
|
+
/** Intersection tracking by margin. */
|
|
698
499
|
export declare const useLazyItemByMarginRef: (element: RefType<HTMLElement | undefined>, rootMargin: string) => {
|
|
699
500
|
lazyItemStatus: any;
|
|
700
501
|
readonly lazyItem: any;
|
|
701
502
|
};
|
|
702
|
-
|
|
703
|
-
|
|
503
|
+
// File: composables/ref/useLazyRef.d.ts
|
|
504
|
+
export type LazyItem = {
|
|
505
|
+
status: ShallowRef<boolean>;
|
|
506
|
+
ratio: ShallowRef<number>;
|
|
507
|
+
entry: ShallowRef<IntersectionObserverEntry | undefined>;
|
|
508
|
+
stopWatch: () => void;
|
|
509
|
+
};
|
|
510
|
+
export type LazyList = Record<string, LazyItem>;
|
|
511
|
+
/** Viewport appearance tracking. */
|
|
704
512
|
export declare const useLazyRef: (options?: IntersectionObserverInit) => {
|
|
705
513
|
intersectionObserver: IntersectionObserver | undefined;
|
|
706
514
|
getItem(element: HTMLElement): LazyItem;
|
|
@@ -708,11 +516,11 @@ export declare const useLazyRef: (options?: IntersectionObserverInit) => {
|
|
|
708
516
|
removeLazyItem: (element?: HTMLElement) => void;
|
|
709
517
|
disconnectLazy: () => void | undefined;
|
|
710
518
|
};
|
|
711
|
-
|
|
712
|
-
/**
|
|
519
|
+
// File: composables/ref/useLoadingRef.d.ts
|
|
520
|
+
/** Loading status ref. */
|
|
713
521
|
export declare function useLoadingRef(): ShallowRef<boolean, boolean>;
|
|
714
|
-
|
|
715
|
-
/**
|
|
522
|
+
// File: composables/ref/useMeta.d.ts
|
|
523
|
+
/** Meta tag management singleton. */
|
|
716
524
|
export declare const useMeta: () => Readonly<{
|
|
717
525
|
meta: typeof MetaStatic;
|
|
718
526
|
title: Ref<string, string>;
|
|
@@ -724,6 +532,17 @@ export declare const useMeta: () => Readonly<{
|
|
|
724
532
|
robots: Ref<MetaRobots, MetaRobots>;
|
|
725
533
|
siteName: Ref<string, string>;
|
|
726
534
|
getHtmlMeta: () => string;
|
|
535
|
+
sync: () => void;
|
|
536
|
+
update: () => void;
|
|
537
|
+
updateSsr: () => void;
|
|
538
|
+
setTitle: (value: string) => void;
|
|
539
|
+
setKeywords: (value: string) => void;
|
|
540
|
+
setDescription: (value: string) => void;
|
|
541
|
+
setAuthor: (value: string) => void;
|
|
542
|
+
setImage: (value: string) => void;
|
|
543
|
+
setCanonical: (value: string) => void;
|
|
544
|
+
setRobots: (value: MetaRobots) => void;
|
|
545
|
+
setSiteName: (value: string) => void;
|
|
727
546
|
setSuffix: (suffix: string) => typeof MetaStatic;
|
|
728
547
|
} & {
|
|
729
548
|
init(): Readonly<{
|
|
@@ -737,11 +556,22 @@ export declare const useMeta: () => Readonly<{
|
|
|
737
556
|
robots: Ref<MetaRobots, MetaRobots>;
|
|
738
557
|
siteName: Ref<string, string>;
|
|
739
558
|
getHtmlMeta: () => string;
|
|
559
|
+
sync: () => void;
|
|
560
|
+
update: () => void;
|
|
561
|
+
updateSsr: () => void;
|
|
562
|
+
setTitle: (value: string) => void;
|
|
563
|
+
setKeywords: (value: string) => void;
|
|
564
|
+
setDescription: (value: string) => void;
|
|
565
|
+
setAuthor: (value: string) => void;
|
|
566
|
+
setImage: (value: string) => void;
|
|
567
|
+
setCanonical: (value: string) => void;
|
|
568
|
+
setRobots: (value: MetaRobots) => void;
|
|
569
|
+
setSiteName: (value: string) => void;
|
|
740
570
|
setSuffix: (suffix: string) => typeof MetaStatic;
|
|
741
571
|
}>;
|
|
742
572
|
destroyExecute?(): void;
|
|
743
573
|
}>;
|
|
744
|
-
|
|
574
|
+
// File: composables/ref/useRouterList.d.ts
|
|
745
575
|
/** Router link list management. */
|
|
746
576
|
export declare const useRouterList: <T extends ListDataBasic>(list: RefType<ConstrBind<T>[] | undefined>, selected?: Ref<string> | string, hasTo?: boolean) => {
|
|
747
577
|
item: ComputedRef<T | undefined>;
|
|
@@ -751,8 +581,8 @@ export declare const useRouterList: <T extends ListDataBasic>(list: RefType<Cons
|
|
|
751
581
|
to: (name?: string) => void;
|
|
752
582
|
toMain(): void;
|
|
753
583
|
};
|
|
754
|
-
|
|
755
|
-
/**
|
|
584
|
+
// File: composables/ref/useSearchRef.d.ts
|
|
585
|
+
/** Reactive search logic. */
|
|
756
586
|
export declare function useSearchRef<T extends SearchItem, K extends SearchColumns<T>>(list: SearchListInput<T>, columns: K, value?: Ref<string>, options?: SearchOptions): {
|
|
757
587
|
isSearch: ComputedRef<boolean>;
|
|
758
588
|
search: Ref<string, string>;
|
|
@@ -760,25 +590,334 @@ export declare function useSearchRef<T extends SearchItem, K extends SearchColum
|
|
|
760
590
|
listSearch: ComputedRef<SearchFormatList<T, K>>;
|
|
761
591
|
length: ComputedRef<number>;
|
|
762
592
|
};
|
|
763
|
-
|
|
764
|
-
/** Search state
|
|
593
|
+
// File: composables/ref/useSearchValueRef.d.ts
|
|
594
|
+
/** Search state and debounce. */
|
|
765
595
|
export declare function useSearchValueRef<T extends SearchItem, K extends SearchColumns<T>>(item: SearchList<T, K>, value?: Ref<string>): {
|
|
766
596
|
search: Ref<string, string>;
|
|
767
597
|
searchDelay: Ref<string, string>;
|
|
768
598
|
loading: Ref<boolean, boolean>;
|
|
769
599
|
};
|
|
770
|
-
|
|
600
|
+
// File: composables/ref/useSessionRef.d.ts
|
|
771
601
|
/** Reactive session storage. */
|
|
772
602
|
export declare function useSessionRef<T>(name: string, defaultValue?: T | (() => T)): Ref<T | undefined>;
|
|
773
|
-
|
|
603
|
+
// File: composables/ref/useStorageRef.d.ts
|
|
774
604
|
/** Reactive local storage. */
|
|
775
605
|
export declare function useStorageRef<T>(name: string, defaultValue?: T | (() => T), cache?: number): Ref<T | undefined>;
|
|
776
|
-
|
|
777
|
-
/**
|
|
778
|
-
*
|
|
779
|
-
*
|
|
606
|
+
// File: composables/ref/useTranslateRef.d.ts
|
|
607
|
+
/** Translation getter ref.
|
|
608
|
+
* @example
|
|
609
|
+
* const labels = t(['button.save'] as const);
|
|
780
610
|
*/
|
|
781
611
|
export declare function useTranslateRef<T extends (string | string[])[]>(names: T, translateInstance?: TranslateInstance): ShallowRef<TranslateList<T>>;
|
|
782
|
-
|
|
783
|
-
export
|
|
784
|
-
|
|
612
|
+
/** Shorthand for useTranslateRef. */
|
|
613
|
+
export declare const t: <T extends string[]>(names: T) => ShallowRef<TranslateList<T>>;
|
|
614
|
+
// File: flags.d.ts
|
|
615
|
+
export declare const uiMakeFlags: () => void;
|
|
616
|
+
// File: functions/basic.d.ts
|
|
617
|
+
export * from '@dxtmisha/functional-basic';
|
|
618
|
+
// File: functions/computedAsync.d.ts
|
|
619
|
+
/** Async computed property. */
|
|
620
|
+
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
|
+
/** Language-dependent computed property. */
|
|
623
|
+
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
|
+
/** On-demand cached computed with application-lifetime watcher. */
|
|
626
|
+
export declare function computedEternity<T>(getter: () => Promise<T> | T, initialState?: (() => T) | T): Ref<T, T>;
|
|
627
|
+
// File: functions/dxtFunctionalPlugin.d.ts
|
|
628
|
+
export interface FunctionalPluginOptions {
|
|
629
|
+
api?: ApiConfig;
|
|
630
|
+
translate?: TranslateConfig;
|
|
631
|
+
metaSuffix?: string;
|
|
632
|
+
icons?: IconsConfig;
|
|
633
|
+
router?: Router;
|
|
634
|
+
errorCauses?: ErrorCenterCauseList;
|
|
635
|
+
}
|
|
636
|
+
/** Global services init plugin. */
|
|
637
|
+
export declare const dxtFunctionalPlugin: Plugin;
|
|
638
|
+
// File: functions/executeUse.d.ts
|
|
639
|
+
/** Initialization strategies. */
|
|
640
|
+
export declare enum ExecuteUseType {
|
|
641
|
+
global = "global",
|
|
642
|
+
provide = "provide",
|
|
643
|
+
local = "local"
|
|
644
|
+
}
|
|
645
|
+
export type ExecuteUseReturn<R> = Readonly<R & {
|
|
646
|
+
init(): Readonly<R>;
|
|
647
|
+
destroyExecute?(): void;
|
|
648
|
+
}>;
|
|
649
|
+
/**
|
|
650
|
+
* Managed singleton factory.
|
|
651
|
+
* @template R return type
|
|
652
|
+
* @param callback init function
|
|
653
|
+
* @param type strategy
|
|
654
|
+
*/
|
|
655
|
+
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
|
+
/** Global singleton creator. */
|
|
657
|
+
export declare function executeUseGlobal<R>(callback: () => R): (() => Readonly<R & {
|
|
658
|
+
init(): Readonly<R>;
|
|
659
|
+
destroyExecute?(): void;
|
|
660
|
+
}>) | (() => Readonly<R & {
|
|
661
|
+
init(): Readonly<R>;
|
|
662
|
+
destroyExecute?(): void;
|
|
663
|
+
}>);
|
|
664
|
+
/** Component-scoped singleton creator. */
|
|
665
|
+
export declare function executeUseProvide<R, O extends any[]>(callback: (...args: O) => R): ((...args: O) => Readonly<R & {
|
|
666
|
+
init(): Readonly<R>;
|
|
667
|
+
destroyExecute?(): void;
|
|
668
|
+
}>) | (() => Readonly<R & {
|
|
669
|
+
init(): Readonly<R>;
|
|
670
|
+
destroyExecute?(): void;
|
|
671
|
+
}>);
|
|
672
|
+
/** Local closure singleton creator. */
|
|
673
|
+
export declare function executeUseLocal<R, O extends any[]>(callback: (...args: O) => R): ((...args: O) => Readonly<R & {
|
|
674
|
+
init(): Readonly<R>;
|
|
675
|
+
destroyExecute?(): void;
|
|
676
|
+
}>) | (() => Readonly<R & {
|
|
677
|
+
init(): Readonly<R>;
|
|
678
|
+
destroyExecute?(): void;
|
|
679
|
+
}>);
|
|
680
|
+
/** Global callbacks initializer. */
|
|
681
|
+
export declare function executeUseGlobalInit(): void;
|
|
682
|
+
// File: functions/getInject.d.ts
|
|
683
|
+
/** Get injected value. */
|
|
684
|
+
export declare function getInject<T>(name: string): T | undefined;
|
|
685
|
+
// File: functions/getOptions.d.ts
|
|
686
|
+
/** Request options helper. */
|
|
687
|
+
export declare const getOptions: (options?: ApiOptions) => RefOrNormal<ApiFetch>;
|
|
688
|
+
// File: functions/ref/getBindRef.d.ts
|
|
689
|
+
/** Subcomponent properties generator. */
|
|
690
|
+
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
|
+
/** Unwraps ref or returns value. */
|
|
693
|
+
export declare function getRef<T>(item: RefOrNormal<T>): T;
|
|
694
|
+
// File: functions/ref/render.d.ts
|
|
695
|
+
/** Data renderer helper. */
|
|
696
|
+
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
|
+
/** Reactive value setter. */
|
|
699
|
+
export declare function setRef<T>(item: Ref<T>, value: T): void;
|
|
700
|
+
// File: functions/ref/toRefItem.d.ts
|
|
701
|
+
/** Wraps value in Ref. */
|
|
702
|
+
export declare function toRefItem<T>(item: RefOrNormal<T>): Ref<T>;
|
|
703
|
+
// File: functions/render/getBind.d.ts
|
|
704
|
+
/** Subcomponent props generator. */
|
|
705
|
+
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
|
+
/** Class name from props. */
|
|
708
|
+
export declare function getClassName<T extends ItemList>(props?: T): string | undefined;
|
|
709
|
+
// File: functions/render/getIndexForRender.d.ts
|
|
710
|
+
/** Render index generator. */
|
|
711
|
+
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 with class/style handling. */
|
|
714
|
+
export declare function toBind<R extends ItemList = ItemList>(extra: ItemList, value: ItemList): ConstrBind<R>;
|
|
715
|
+
// File: functions/toBinds.d.ts
|
|
716
|
+
/** Merges multiple objects with class/style handling. */
|
|
717
|
+
export declare function toBinds<R extends ItemList = ItemList>(...values: (ItemList | undefined)[]): ConstrBind<R>;
|
|
718
|
+
// File: library.d.ts
|
|
719
|
+
export * from './classes/design/DesignAbstract';
|
|
720
|
+
export * from './classes/design/DesignAsyncAbstract';
|
|
721
|
+
export * from './classes/design/DesignChanged';
|
|
722
|
+
export * from './classes/design/DesignComp';
|
|
723
|
+
export * from './classes/design/DesignComponents';
|
|
724
|
+
export * from './classes/design/DesignConstructorAbstract';
|
|
725
|
+
export * from './classes/ref/DatetimeRef';
|
|
726
|
+
export * from './classes/ref/EffectScopeGlobal';
|
|
727
|
+
export * from './classes/ref/EventRef';
|
|
728
|
+
export * from './classes/ref/GeoFlagRef';
|
|
729
|
+
export * from './classes/ref/GeoIntlRef';
|
|
730
|
+
export * from './classes/ref/GeoRef';
|
|
731
|
+
export * from './classes/ref/ListDataRef';
|
|
732
|
+
export * from './classes/ref/RouterItemRef';
|
|
733
|
+
export * from './classes/ref/ScrollbarWidthRef';
|
|
734
|
+
export * from './composables/ref/useApiAsyncRef';
|
|
735
|
+
export * from './composables/ref/useApiDelete';
|
|
736
|
+
export * from './composables/ref/useApiGet';
|
|
737
|
+
export * from './composables/ref/useApiManagementAsyncRef';
|
|
738
|
+
export * from './composables/ref/useApiManagementRef';
|
|
739
|
+
export * from './composables/ref/useApiPost';
|
|
740
|
+
export * from './composables/ref/useApiPut';
|
|
741
|
+
export * from './composables/ref/useApiRef';
|
|
742
|
+
export * from './composables/ref/useApiRequest';
|
|
743
|
+
export * from './composables/ref/useBroadcastValueRef';
|
|
744
|
+
export * from './composables/ref/useCookieRef';
|
|
745
|
+
export * from './composables/ref/useFormattersRef';
|
|
746
|
+
export * from './composables/ref/useGeoIntlRef';
|
|
747
|
+
export * from './composables/ref/useHashRef';
|
|
748
|
+
export * from './composables/ref/useLazyItemByMarginRef';
|
|
749
|
+
export * from './composables/ref/useLazyRef';
|
|
750
|
+
export * from './composables/ref/useLoadingRef';
|
|
751
|
+
export * from './composables/ref/useMeta';
|
|
752
|
+
export * from './composables/ref/useRouterList';
|
|
753
|
+
export * from './composables/ref/useSearchRef';
|
|
754
|
+
export * from './composables/ref/useSearchValueRef';
|
|
755
|
+
export * from './composables/ref/useSessionRef';
|
|
756
|
+
export * from './composables/ref/useStorageRef';
|
|
757
|
+
export * from './composables/ref/useTranslateRef';
|
|
758
|
+
export * from './functions/basic';
|
|
759
|
+
export * from './functions/computedAsync';
|
|
760
|
+
export * from './functions/computedByLanguage';
|
|
761
|
+
export * from './functions/computedEternity';
|
|
762
|
+
export * from './functions/dxtFunctionalPlugin';
|
|
763
|
+
export * from './functions/executeUse';
|
|
764
|
+
export * from './functions/getInject';
|
|
765
|
+
export * from './functions/getOptions';
|
|
766
|
+
export * from './functions/ref/getBindRef';
|
|
767
|
+
export * from './functions/ref/getRef';
|
|
768
|
+
export * from './functions/ref/render';
|
|
769
|
+
export * from './functions/ref/setRef';
|
|
770
|
+
export * from './functions/ref/toRefItem';
|
|
771
|
+
export * from './functions/render/getBind';
|
|
772
|
+
export * from './functions/render/getClassName';
|
|
773
|
+
export * from './functions/render/getIndexForRender';
|
|
774
|
+
export * from './functions/toBind';
|
|
775
|
+
export * from './functions/toBinds';
|
|
776
|
+
export * from './types/apiTypes';
|
|
777
|
+
export * from './types/constructorTypes';
|
|
778
|
+
export * from './types/listTypes';
|
|
779
|
+
export * from './types/refTypes';
|
|
780
|
+
export * from './types/searchTypes';
|
|
781
|
+
// File: types/apiTypes.d.ts
|
|
782
|
+
export type ApiOptions = ApiMethodItem | RefOrNormal<ApiFetch>;
|
|
783
|
+
/** Base API management value. */
|
|
784
|
+
export type ApiManagementValue = ApiDefaultValue | ApiDefaultValue[];
|
|
785
|
+
/** GET config for API management. */
|
|
786
|
+
export type ApiManagementGet<Return extends ApiManagementValue, Type extends ApiManagementValue = Return> = {
|
|
787
|
+
path?: RefOrNormal<string | undefined>;
|
|
788
|
+
options?: ApiOptions;
|
|
789
|
+
reactivity?: boolean;
|
|
790
|
+
conditions?: RefType<boolean>;
|
|
791
|
+
transformation?: (data: Type, isResponseContractValid?: ApiDataValidation) => ApiData<Return>;
|
|
792
|
+
validateResponseContract?: (data: Type) => ApiDataValidation;
|
|
793
|
+
typeData?: ((data: Return) => boolean) | any;
|
|
794
|
+
unmounted?: boolean;
|
|
795
|
+
skeleton?: () => Return;
|
|
796
|
+
};
|
|
797
|
+
/** Client-side search config. */
|
|
798
|
+
export type ApiManagementSearch<T extends SearchItem, K extends SearchColumns<T>> = {
|
|
799
|
+
columns: K;
|
|
800
|
+
value?: Ref<string>;
|
|
801
|
+
options?: SearchOptions;
|
|
802
|
+
};
|
|
803
|
+
/** Mutation config (POST, PUT, DELETE). */
|
|
804
|
+
export type ApiManagementRequest<T, Return extends ApiData<T> = ApiData<T>> = {
|
|
805
|
+
path?: RefOrNormal<string | undefined>;
|
|
806
|
+
action?: (data: Return | undefined) => Promise<void> | void;
|
|
807
|
+
transformation?: (data: T) => Return;
|
|
808
|
+
toData?: boolean;
|
|
809
|
+
options?: ApiOptions;
|
|
810
|
+
};
|
|
811
|
+
// File: types/constructorTypes.d.ts
|
|
812
|
+
export type ConstrItem = Record<string, any>;
|
|
813
|
+
/** Value wrapper. */
|
|
814
|
+
export type ConstrValue<T = any> = {
|
|
815
|
+
value?: T;
|
|
816
|
+
};
|
|
817
|
+
export type ConstrComponent = Record<string, any>;
|
|
818
|
+
/** Reactive or normal component mod. */
|
|
819
|
+
export type ConstrComponentMod<P extends ConstrItem> = ConstrItem | {
|
|
820
|
+
[K in keyof P]?: RefOrNormal<P[K]>;
|
|
821
|
+
};
|
|
822
|
+
export type ConstrExpose<E extends Element, EXPOSE extends ConstrItem> = EXPOSE & {
|
|
823
|
+
elementHtml?: ComputedRef<E | undefined>;
|
|
824
|
+
};
|
|
825
|
+
export type UnionToIntersection<U> = (U extends any ? (k: U) => void : never) extends (k: infer I) => void ? I : never;
|
|
826
|
+
export type ConstrEmitItem<T extends ConstrItem> = T[keyof T];
|
|
827
|
+
export type ConstrEmit<T extends ConstrItem = ConstrItem> = UnionToIntersection<ConstrEmitItem<{
|
|
828
|
+
[K in keyof T]: (evt: K, ...args: T[K]) => void;
|
|
829
|
+
}>>;
|
|
830
|
+
export type ConstrClassObject = Record<string, boolean | undefined>;
|
|
831
|
+
export type ConstrClass = string | (string | ConstrClass | Undefined)[] | ConstrClassObject;
|
|
832
|
+
export type ConstrClassList = Record<string, ConstrClass>;
|
|
833
|
+
export type ConstrClasses = {
|
|
834
|
+
main: ConstrClass;
|
|
835
|
+
} & ConstrClassList;
|
|
836
|
+
export type ConstrStylesItem = string | null;
|
|
837
|
+
export type ConstrStyles = Record<string, ConstrStylesItem> | ConstrStyles[];
|
|
838
|
+
/** Component configuration options. */
|
|
839
|
+
export type ConstrOptions<COMP extends ConstrComponent, EMITS extends ConstrItem, P extends ConstrItem> = {
|
|
840
|
+
components?: COMP;
|
|
841
|
+
compMod?: ConstrComponentMod<P>;
|
|
842
|
+
emits?: ConstrEmit<EMITS>;
|
|
843
|
+
classes?: RefType<ConstrClasses>;
|
|
844
|
+
styles?: RefType<ConstrStyles>;
|
|
845
|
+
};
|
|
846
|
+
/** Component initialization interface. */
|
|
847
|
+
export type ConstrSetup<E extends Element, CLASSES extends ConstrClasses, SETUP extends ConstrItem> = {
|
|
848
|
+
name: string;
|
|
849
|
+
element: Ref<E | undefined>;
|
|
850
|
+
classes: RefType<CLASSES>;
|
|
851
|
+
styles: RefType<ConstrStyles>;
|
|
852
|
+
} & SETUP;
|
|
853
|
+
export type ConstrRegistration = {
|
|
854
|
+
flag?: boolean;
|
|
855
|
+
translate?: Record<string, string>;
|
|
856
|
+
};
|
|
857
|
+
/** Component binding with style/class support. */
|
|
858
|
+
export type ConstrBind<T> = T & Record<string, any> & {
|
|
859
|
+
key?: string;
|
|
860
|
+
class?: ConstrClass;
|
|
861
|
+
style?: ConstrStyles;
|
|
862
|
+
};
|
|
863
|
+
/** Vue prop options. */
|
|
864
|
+
export type ConstrPropItemOptions<T = any> = {
|
|
865
|
+
type?: PropType<T>;
|
|
866
|
+
required?: boolean;
|
|
867
|
+
default?: any;
|
|
868
|
+
validator?(value: any, props: any): boolean;
|
|
869
|
+
};
|
|
870
|
+
export type ConstrPropItem<T = any> = ConstrPropItemOptions<T> | PropType<T>;
|
|
871
|
+
export type ConstrProps<P = Record<string, any>> = {
|
|
872
|
+
[K in keyof P]: ConstrPropItem<P[K]>;
|
|
873
|
+
};
|
|
874
|
+
/** Link properties. */
|
|
875
|
+
export type ConstrHrefProps = {
|
|
876
|
+
href?: string;
|
|
877
|
+
};
|
|
878
|
+
// File: types/listTypes.d.ts
|
|
879
|
+
export type ListType = 'item' | 'space' | 'line' | 'subtitle' | 'html' | 'menu' | 'menu-group' | 'group';
|
|
880
|
+
/** Base list item. */
|
|
881
|
+
export type ListDataBasic = {
|
|
882
|
+
label?: NumberOrString;
|
|
883
|
+
value?: any;
|
|
884
|
+
search?: string;
|
|
885
|
+
};
|
|
886
|
+
/** Typed list item. */
|
|
887
|
+
export type ListDataItem<Item extends ListDataBasic = ListDataBasic> = ConstrBind<Item & {
|
|
888
|
+
parent?: string;
|
|
889
|
+
type: ListType;
|
|
890
|
+
index: string;
|
|
891
|
+
}>;
|
|
892
|
+
export type ListList<Item extends ListDataBasic = ListDataBasic> = ListDataItem<Item>[];
|
|
893
|
+
export type ListRecord<Item extends ListDataBasic = ListDataBasic> = ListList<Item> | Record<string, any>;
|
|
894
|
+
/** List item with state. */
|
|
895
|
+
export type ListDataFullItem<Item extends ListDataBasic = ListDataBasic> = ListDataItem<Item> & {
|
|
896
|
+
focus: boolean;
|
|
897
|
+
highlight?: string;
|
|
898
|
+
selected: boolean;
|
|
899
|
+
disabled?: boolean;
|
|
900
|
+
};
|
|
901
|
+
export type ListDataFull<Item extends ListDataBasic = ListDataBasic> = ListDataFullItem<Item>[];
|
|
902
|
+
export type ListListInputItem<Item extends ListDataBasic = ListDataBasic> = ConstrBind<Item>;
|
|
903
|
+
export type ListListInput<Item extends ListDataBasic = ListDataBasic> = ListListInputItem<Item>[] | string[] | Record<string, ListListInputItem<Item>> | Record<string, string>;
|
|
904
|
+
export type ListSelectedItem = NumberOrStringOrBoolean;
|
|
905
|
+
export type ListSelectedList = ListSelectedItem | ListSelectedItem[];
|
|
906
|
+
export type ListName = string | number | undefined;
|
|
907
|
+
export type ListNames = ListName[];
|
|
908
|
+
// File: types/refTypes.d.ts
|
|
909
|
+
/** Vue reactive union. */
|
|
910
|
+
export type RefType<T> = ComputedRef<T> | Ref<T>;
|
|
911
|
+
export type RefUndefined<T> = RefType<T | undefined>;
|
|
912
|
+
/** Reactive or normal union. */
|
|
913
|
+
export type RefOrNormal<T> = RefType<T> | T;
|
|
914
|
+
/** Vue raw children content. */
|
|
915
|
+
export type RawChildren = string | number | boolean | VNode | VNodeArrayChildren | (() => any);
|
|
916
|
+
/** Vue raw slots. */
|
|
917
|
+
export type RawSlots = {
|
|
918
|
+
[name: string]: unknown;
|
|
919
|
+
$stable?: boolean;
|
|
920
|
+
};
|
|
921
|
+
// File: types/searchTypes.d.ts
|
|
922
|
+
export type SearchListValueRef<T extends SearchItem> = RefOrNormal<SearchListValue<T>>;
|
|
923
|
+
export type SearchListInput<T extends SearchItem> = SearchListValueRef<T> | (() => SearchListValueRef<T>);
|