@dxtmisha/functional 1.11.6 → 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.
Files changed (71) hide show
  1. package/CHANGELOG.md +79 -0
  2. package/ai-description.txt +5 -0
  3. package/ai-doc.ru.txt +34 -0
  4. package/ai-doc.txt +34 -0
  5. package/ai-types.txt +629 -452
  6. package/dist/classes/design/DesignAbstract.d.ts +61 -0
  7. package/dist/classes/design/DesignAsyncAbstract.d.ts +28 -0
  8. package/dist/classes/design/DesignChanged.d.ts +42 -0
  9. package/dist/classes/design/DesignComp.d.ts +4 -0
  10. package/dist/classes/design/DesignComponents.d.ts +81 -0
  11. package/dist/classes/design/DesignConstructorAbstract.d.ts +150 -0
  12. package/dist/classes/ref/DatetimeRef.d.ts +123 -0
  13. package/dist/classes/ref/EffectScopeGlobal.d.ts +22 -0
  14. package/dist/classes/ref/EventRef.d.ts +22 -0
  15. package/dist/classes/ref/GeoFlagRef.d.ts +51 -0
  16. package/dist/classes/ref/GeoIntlRef.d.ts +213 -0
  17. package/dist/classes/ref/GeoRef.d.ts +58 -0
  18. package/dist/classes/ref/ListDataRef.d.ts +359 -0
  19. package/dist/classes/ref/RouterItemRef.d.ts +61 -0
  20. package/dist/classes/ref/ScrollbarWidthRef.d.ts +22 -0
  21. package/dist/composables/ref/useApiAsyncRef.d.ts +18 -0
  22. package/dist/composables/ref/useApiDelete.d.ts +20 -0
  23. package/dist/composables/ref/useApiGet.d.ts +20 -0
  24. package/dist/composables/ref/useApiManagementAsyncRef.d.ts +49 -0
  25. package/dist/composables/ref/useApiManagementRef.d.ts +155 -0
  26. package/dist/composables/ref/useApiPost.d.ts +20 -0
  27. package/dist/composables/ref/useApiPut.d.ts +20 -0
  28. package/dist/composables/ref/useApiRef.d.ts +106 -0
  29. package/dist/composables/ref/useApiRequest.d.ts +28 -0
  30. package/dist/composables/ref/useBroadcastValueRef.d.ts +11 -0
  31. package/dist/composables/ref/useCookieRef.d.ts +11 -0
  32. package/dist/composables/ref/useFormattersRef.d.ts +21 -0
  33. package/dist/composables/ref/useGeoIntlRef.d.ts +7 -0
  34. package/dist/composables/ref/useHashRef.d.ts +9 -0
  35. package/dist/composables/ref/useLazyItemByMarginRef.d.ts +22 -0
  36. package/dist/composables/ref/useLazyRef.d.ts +42 -0
  37. package/dist/composables/ref/useLoadingRef.d.ts +7 -0
  38. package/dist/composables/ref/useMeta.d.ts +223 -0
  39. package/dist/composables/ref/useRouterList.d.ts +28 -0
  40. package/dist/composables/ref/useSearchRef.d.ts +36 -0
  41. package/dist/composables/ref/useSearchValueRef.d.ts +19 -0
  42. package/dist/composables/ref/useSessionRef.d.ts +9 -0
  43. package/dist/composables/ref/useStorageRef.d.ts +10 -0
  44. package/dist/composables/ref/useTranslateRef.d.ts +40 -0
  45. package/dist/flags.d.ts +1 -0
  46. package/dist/functions/basic.d.ts +1 -0
  47. package/dist/functions/computedAsync.d.ts +13 -0
  48. package/dist/functions/computedByLanguage.d.ts +15 -0
  49. package/dist/functions/computedEternity.d.ts +15 -0
  50. package/dist/functions/dxtFunctionalPlugin.d.ts +61 -0
  51. package/dist/functions/executeUse.d.ts +216 -0
  52. package/dist/functions/getInject.d.ts +7 -0
  53. package/dist/functions/getOptions.d.ts +10 -0
  54. package/dist/functions/ref/getBindRef.d.ts +13 -0
  55. package/dist/functions/ref/getRef.d.ts +8 -0
  56. package/dist/functions/ref/render.d.ts +13 -0
  57. package/dist/functions/ref/setRef.d.ts +9 -0
  58. package/dist/functions/ref/toRefItem.d.ts +9 -0
  59. package/dist/functions/render/getBind.d.ts +14 -0
  60. package/dist/functions/render/getClassName.d.ts +8 -0
  61. package/dist/functions/render/getIndexForRender.d.ts +10 -0
  62. package/dist/functions/toBind.d.ts +10 -0
  63. package/dist/functions/toBinds.d.ts +9 -0
  64. package/dist/library.d.ts +62 -2803
  65. package/dist/library.js +105 -71
  66. package/dist/types/apiTypes.d.ts +66 -0
  67. package/dist/types/constructorTypes.d.ts +126 -0
  68. package/dist/types/listTypes.d.ts +63 -0
  69. package/dist/types/refTypes.d.ts +36 -0
  70. package/dist/types/searchTypes.d.ts +6 -0
  71. package/package.json +9 -5
package/ai-types.txt CHANGED
@@ -15,563 +15,396 @@ The following is the content of "exports" from package.json:
15
15
  "./types/*": "./dist/*"
16
16
  }
17
17
 
18
- // File: library.d.ts
19
-
20
- /** Config for main GET request. */
21
- export declare type ApiManagementGet<Return extends ApiManagementValue, Type extends ApiManagementValue = Return> = {
22
- /** API endpoint path */
23
- path?: RefOrNormal<string | undefined>;
24
- /** Additional request options */
25
- options?: ApiOptions;
26
- /** Enable reactive updates on path/options change */
27
- reactivity?: boolean;
28
- /** Request condition */
29
- conditions?: RefType<boolean>;
30
- /** Custom data transformation */
31
- transformation?: (data: Type, isResponseContractValid?: ApiDataValidation) => ApiData<Return>;
32
- /** Response contract validation */
33
- validateResponseContract?: (data: Type) => ApiDataValidation;
34
- /** Data validation function or class */
35
- typeData?: ((data: Return) => boolean) | any;
36
- /** Clear data on unmount */
37
- unmounted?: boolean;
38
- /** Loading skeleton data */
39
- skeleton?: () => Return;
40
- };
41
-
42
- /** Config for mutation requests (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
- /** Success callback */
47
- action?: (data: Return | undefined) => Promise<void> | void;
48
- /** Pre-send transformation */
49
- transformation?: (data: T) => Return;
50
- /** Wrap payload in 'data' property */
51
- toData?: boolean;
52
- /** Additional options */
53
- options?: ApiOptions;
54
- };
55
-
56
- /** Config for client-side search. */
57
- export declare type ApiManagementSearch<T extends SearchItem, K extends SearchColumns<T>> = {
58
- /** Columns to search through */
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
- /** API request options. */
70
- export declare type ApiOptions = ApiMethodItem | RefOrNormal<ApiFetch>;
71
-
72
- declare type BroadcastValueItem<T> = T | string | undefined;
73
-
74
- /**
75
- * Creates computed property for async getters.
76
- * @param getter Sync/async function or value
77
- * @param ignore Values to exclude
78
- * @param debugOptions Vue debug options
79
- */
80
- export declare function computedAsync<R>(getter: (() => Promise<R>) | (() => R) | R, ignore?: R, debugOptions?: DebuggerOptions): ComputedRef<R | undefined>;
81
-
82
- /**
83
- * Computed property dependent on current language.
84
- * @param getter Main language-dependent value
85
- * @param getterNone Fallback value
86
- * @param conditions Trigger conditions
87
- * @param debugOptions Vue debug options
88
- */
89
- export declare function computedByLanguage<T, R extends (T | undefined) = T | undefined>(getter: ComputedGetter<R>, getterNone?: R | (() => R), conditions?: () => boolean, debugOptions?: DebuggerOptions): ComputedRef<R>;
90
-
91
- /**
92
- * Cached on-demand computed property. Persists for app lifetime.
93
- * @param getter Function returning value or promise
94
- */
95
- export declare function computedEternity<T>(getter: () => Promise<T> | T): Ref<T, T>;
96
-
97
- /** Constructor bind type with class/style support. */
98
- export declare type ConstrBind<T> = T & Record<string, any> & {
99
- key?: string;
100
- class?: ConstrClass;
101
- style?: ConstrStyles;
102
- };
103
-
104
- /** Constructor class type. */
105
- export declare type ConstrClass = string | (string | ConstrClass | Undefined)[] | ConstrClassObject;
106
-
107
- /** Constructor classes with main and additional list. */
108
- export declare type ConstrClasses = {
109
- main: ConstrClass;
110
- } & ConstrClassList;
111
-
112
- /** Class name mapping. */
113
- export declare type ConstrClassList = Record<string, ConstrClass>;
114
-
115
- /** CSS class object. */
116
- export declare type ConstrClassObject = Record<string, boolean | undefined>;
117
-
118
- /** Constructor component record. */
119
- export declare type ConstrComponent = Record<string, any>;
120
-
121
- /** Component modification type. */
122
- export declare type ConstrComponentMod<P extends ConstrItem> = ConstrItem | {
123
- [K in keyof P]?: RefOrNormal<P[K]>;
124
- };
125
-
126
- /** Constructor emit type. */
127
- export declare type ConstrEmit<T extends ConstrItem = ConstrItem> = UnionToIntersection<ConstrEmitItem<{
128
- [K in keyof T]: (evt: K, ...args: T[K]) => void;
129
- }>>;
130
-
131
- /** Extract emit item. */
132
- export declare type ConstrEmitItem<T extends ConstrItem> = T[keyof T];
133
-
134
- export declare type ConstrExpose<E extends Element, EXPOSE extends ConstrItem> = EXPOSE & {
135
- elementHtml?: ComputedRef<E | undefined>;
136
- };
137
-
138
- /** Link props. */
139
- export declare type ConstrHrefProps = {
140
- href?: string;
141
- };
142
-
143
- /** Generic constructor item. */
144
- export declare type ConstrItem = Record<string, any>;
145
-
146
- /** Component configuration options. */
147
- export declare type ConstrOptions<COMP extends ConstrComponent, EMITS extends ConstrItem, P extends ConstrItem> = {
148
- components?: COMP;
149
- compMod?: ConstrComponentMod<P>;
150
- emits?: ConstrEmit<EMITS>;
151
- classes?: RefType<ConstrClasses>;
152
- styles?: RefType<ConstrStyles>;
153
- };
154
-
155
- /** Prop item definition. */
156
- export declare type ConstrPropItem<T = any> = ConstrPropItemOptions<T> | PropType<T>;
157
-
158
- /** Vue prop options. */
159
- export declare type ConstrPropItemOptions<T = any> = {
160
- type?: PropType<T>;
161
- required?: boolean;
162
- default?: any;
163
- validator?(value: any, props: any): boolean;
164
- };
165
-
166
- /** Component prop definitions. */
167
- export declare type ConstrProps<P = Record<string, any>> = {
168
- [K in keyof P]: ConstrPropItem<P[K]>;
169
- };
170
-
171
- /** Registration config. */
172
- export declare type ConstrRegistration = {
173
- flag?: boolean;
174
- translate?: Record<string, string>;
175
- };
176
-
177
- /** Setup interface for component init. */
178
- export declare type ConstrSetup<E extends Element, CLASSES extends ConstrClasses, SETUP extends ConstrItem> = {
179
- name: string;
180
- element: Ref<E | undefined>;
181
- classes: RefType<CLASSES>;
182
- styles: RefType<ConstrStyles>;
183
- } & SETUP;
184
-
185
- /** Style definitions. */
186
- export declare type ConstrStyles = Record<string, ConstrStylesItem> | ConstrStyles[];
187
-
188
- /** Individual style property. */
189
- export declare type ConstrStylesItem = string | null;
190
-
191
- /** Value wrapper. */
192
- export declare type ConstrValue<T = any> = {
193
- value?: T;
194
- };
195
-
196
- /** Class for date processing. */
197
- export declare class DatetimeRef {
198
- /**
199
- * @param date Date to process
200
- * @param type Format type
201
- * @param code Locale code
202
- */
203
- constructor(date: RefOrNormal<NumberOrStringOrDate>, type?: RefOrNormal<GeoDate>, code?: RefOrNormal<string>);
204
- getItem(): Ref<NumberOrStringOrDate>;
205
- getDate(): Ref<Date>;
206
- getDatetime(): Datetime;
207
- getHoursType(): ComputedRef<GeoHours>;
208
- getFirstDayCode(): ComputedRef<GeoFirstDay>;
209
- getYear(): ComputedRef<number>;
210
- getMonth(): ComputedRef<number>;
211
- getDay(): ComputedRef<number>;
212
- getHour(): ComputedRef<number>;
213
- getMinute(): ComputedRef<number>;
214
- getSecond(): ComputedRef<number>;
215
- getMaxDay(): ComputedRef<number>;
216
- /**
217
- * Language-sensitive formatting.
218
- * @param type Output format
219
- * @param styleOptions Month representation/options
220
- */
221
- locale(type?: GeoDate, styleOptions?: Intl.DateTimeFormatOptions['month'] | Intl.DateTimeFormatOptions): ComputedRef<string>;
18
+ // File: classes/design/DesignAbstract.d.ts
19
+ /** Base class for constructor. */
20
+ export declare abstract class DesignAbstract<T extends Record<string, any>, C extends Record<string, any>> {
222
21
  /**
223
- * Standard data output.
224
- * @param timeZone Include timezone
22
+ * @param props base data
23
+ * @param callback callback on change
24
+ * @param changed data for tracking
225
25
  */
226
- standard(timeZone?: boolean): ComputedRef<string>;
227
- }
228
-
229
- /** Base design class. */
230
- export declare abstract class DesignAbstract<T extends Record<string, any>, C extends Record<string, any>> {
231
26
  constructor(props: T, callback?: ((event: C) => void) | undefined, changed?: string[]);
232
- /** Triggers update. */
27
+ /** Calls the callback function. */
233
28
  make(compelled?: boolean): this;
234
- /** Triggers callback. */
29
+ /** Calls the callback function. */
235
30
  makeCallback(compelled?: boolean): void;
236
31
  }
237
-
238
- /** Async base design class. */
32
+ // File: classes/design/DesignAsyncAbstract.d.ts
33
+ /** Base class for constructor. */
239
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. */
240
36
  make(compelled?: boolean): this;
37
+ /** Calls the callback function. */
241
38
  makeCallback(compelled?: boolean): Promise<void>;
242
39
  }
243
-
244
- /** Tracks edited values. */
40
+ // File: classes/design/DesignChanged.d.ts
41
+ /** Checks edited values. */
245
42
  export declare class DesignChanged<T extends Record<string, any>> {
43
+ /**
44
+ * @param props base data
45
+ * @param watch tracking data
46
+ */
246
47
  constructor(props: T, watch?: string[]);
247
- /** Check if specific property updated. */
48
+ /** Check if value updated. */
248
49
  is(name: string | string[]): boolean;
249
- /** Check for any changes. */
50
+ /** Check for data changes. */
250
51
  isChanged(): boolean;
251
- /** Update tracked values. */
52
+ /** Updates all values. */
252
53
  update(): void;
253
54
  }
254
-
55
+ // File: classes/design/DesignComp.d.ts
255
56
  export declare class DesignComp<COMP extends ConstrComponent, P extends ConstrItem> extends DesignComponents<COMP, P> {
256
57
  }
257
-
258
- /** Manages connected components. */
58
+ // File: classes/design/DesignComponents.d.ts
59
+ /** Class for connected components. */
259
60
  export declare class DesignComponents<COMP extends ConstrComponent, P extends ConstrItem> {
61
+ /**
62
+ * @param components connected components
63
+ * @param modification modification data
64
+ */
260
65
  constructor(components?: COMP, modification?: ConstrComponentMod<P> | undefined);
261
66
  /** Check component presence. */
262
67
  is<K extends keyof COMP>(name: K): name is K;
263
68
  /** Get component object. */
264
69
  get<K extends keyof COMP>(name: K): COMP[K];
265
- /** Get modified props for child component. */
70
+ /** Returns modified input data. */
266
71
  getModification<K extends keyof P>(index?: K & string | string, props?: P[K] | Record<string, any>): Record<string, any> | undefined;
267
- /** Render component in array. */
72
+ /** Render component by name as array. */
268
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[];
269
- /** Render single component. */
74
+ /** Render single component by name. */
270
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;
271
- /** Add rendered component to array. */
76
+ /** Render component and add to array. */
272
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;
273
78
  }
274
-
275
- /** Main constructor for functional components. */
79
+ // File: classes/design/DesignConstructorAbstract.d.ts
80
+ /** Class for collecting functional components. */
276
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> {
277
- protected constructor(name: string, props: Readonly<P>, options?: ConstrOptions<COMP, EMITS, P> | undefined);
82
+ /** Get class name. */
278
83
  getName(): string;
84
+ /** Get design name. */
279
85
  getDesign(): string;
86
+ /** Get sub-class name. */
280
87
  getSubClass(name: string | string[]): string;
88
+ /** Get status class name. */
281
89
  getStatusClass(name: string | string[]): string;
90
+ /** Get style property name. */
282
91
  getStyle(name: string | string[]): string;
92
+ /** Get additional parameters. */
283
93
  getAttrs(): ConstrItem;
94
+ /** List external variables. */
284
95
  expose(): ConstrExpose<E, EXPOSE>;
96
+ /** Render method for setup. */
285
97
  render(): () => VNode | (VNode | any)[] | undefined;
286
98
  }
287
-
288
- /**
289
- * Vue plugin for global services.
290
- * @example
291
- * ```typescript
292
- * app.use(dxtFunctionalPlugin, { api: { url: '...' }, router })
293
- * ```
294
- */
295
- export declare const dxtFunctionalPlugin: Plugin_2;
296
-
297
- /** Global effect scope utility. */
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
138
+ /** Global effect scope. */
298
139
  export declare class EffectScopeGlobal {
140
+ /** Run function in global scope. */
299
141
  static run<T>(fn: () => T): T | undefined;
300
142
  }
301
-
302
- /** Event handler with reactive element. */
143
+ // File: classes/ref/EventRef.d.ts
144
+ /** Reactive event handler. */
303
145
  export declare class EventRef<E extends ElementOrWindow, O extends Event, D extends Record<string, any> = Record<string, any>> extends EventItem<E, O, D> {
304
146
  constructor(elementSelector?: RefOrNormal<ElementOrString<E> | undefined>, elementSelectorControl?: RefOrNormal<ElementOrString<HTMLElement>>, type?: string | string[], listener?: EventListenerDetail<O, D>, options?: EventOptions, detail?: D);
305
147
  }
306
-
307
- /**
308
- * Managed singleton for state/API.
309
- * @remarks Use for API clients, shared state, or SDKs.
310
- * @example
311
- * export const useUserApi = executeUseGlobal(() => useApiGet('/api/user'));
312
- */
313
- export declare function executeUse<R, O extends any[], RI extends ExecuteUseReturn<R> = ExecuteUseReturn<R>>(callback: (...args: O) => R, type?: ExecuteUseType): ((...args: O) => RI) | (() => RI);
314
-
315
- /** Creates global singleton. */
316
- export declare function executeUseGlobal<R>(callback: () => R): (() => ExecuteUseReturn<R>);
317
-
318
- /** Inits global callbacks. */
319
- export declare function executeUseGlobalInit(): void;
320
-
321
- /** Creates local singleton in closure. */
322
- export declare function executeUseLocal<R, O extends any[]>(callback: (...args: O) => R): ((...args: O) => ExecuteUseReturn<R>);
323
-
324
- /** Creates provide/inject singleton. */
325
- export declare function executeUseProvide<R, O extends any[]>(callback: (...args: O) => R): ((...args: O) => ExecuteUseReturn<R>);
326
-
327
- /** Factory return object. */
328
- export declare type ExecuteUseReturn<R> = Readonly<R & {
329
- init(): Readonly<R>;
330
- destroyExecute?(): void;
331
- }>;
332
-
333
- /** Singleton strategies. */
334
- export declare enum ExecuteUseType {
335
- global = "global",
336
- provide = "provide",
337
- local = "local"
338
- }
339
-
340
- /** Plugin options interface. */
341
- export declare interface FunctionalPluginOptions {
342
- api?: ApiConfig;
343
- translate?: TranslateConfig;
344
- metaSuffix?: string;
345
- icons?: IconsConfig;
346
- router?: Router;
347
- errorCauses?: ErrorCenterCauseList;
348
- }
349
-
350
- /** Country/flag utility. */
148
+ // File: classes/ref/GeoFlagRef.d.ts
149
+ /** Flag management. */
351
150
  export declare class GeoFlagRef {
151
+ /** @param code country code */
352
152
  constructor(code?: RefOrNormal<string>);
153
+ /** Get reactive country code. */
353
154
  getCode(): Ref<string>;
155
+ /** Get country/flag info. */
354
156
  get(code?: string): ComputedRef<GeoFlagItem | undefined>;
157
+ /** Get flag URL. */
355
158
  getFlag(code?: string): ComputedRef<string | undefined>;
159
+ /** Get list of countries by codes. */
356
160
  getList(codes?: string[]): ComputedRef<GeoFlagItem[]>;
161
+ /** Get list in national language. */
357
162
  getNational(codes?: string[]): ComputedRef<GeoFlagNational[]>;
358
163
  }
359
-
360
- /** Reactive numbers/dates formatting. */
164
+ // File: classes/ref/GeoIntlRef.d.ts
165
+ /** Reactive number and date formatting. */
361
166
  export declare class GeoIntlRef {
167
+ /** @param code language/country code */
362
168
  constructor(code?: RefOrNormal<string>);
169
+ /** Translation of display names. */
363
170
  display(value?: RefOrNormal<string>, typeOptions?: Intl.DisplayNamesOptions['type'] | Intl.DisplayNamesOptions): ComputedRef<string>;
171
+ /** Get language names. */
364
172
  languageName(value?: RefOrNormal<string>, style?: Intl.RelativeTimeFormatStyle): ComputedRef<string>;
173
+ /** Get region names. */
365
174
  countryName(value?: RefOrNormal<string>, style?: Intl.RelativeTimeFormatStyle): ComputedRef<string>;
175
+ /** Format number. */
366
176
  number(value: RefOrNormal<NumberOrString>, options?: Intl.NumberFormatOptions): ComputedRef<string>;
177
+ /** Decimal point. */
367
178
  decimal(): ComputedRef<string>;
179
+ /** Format currency. */
368
180
  currency(value: RefOrNormal<NumberOrString>, currencyOptions?: RefOrNormal<string | Intl.NumberFormatOptions>, numberOnly?: boolean): ComputedRef<string>;
181
+ /** Get currency symbol. */
369
182
  currencySymbol(currency: RefOrNormal<string>, currencyDisplay?: keyof Intl.NumberFormatOptionsCurrencyDisplayRegistry): ComputedRef<string>;
183
+ /** Format units. */
370
184
  unit(value: RefOrNormal<NumberOrString>, unitOptions?: string | Intl.NumberFormatOptions): ComputedRef<string>;
185
+ /** Format file size. */
371
186
  sizeFile(value: RefOrNormal<NumberOrString>, unitOptions?: 'byte' | 'kilobyte' | 'megabyte' | 'gigabyte' | 'terabyte' | 'petabyte' | Intl.NumberFormatOptions): ComputedRef<string>;
187
+ /** Format percentage. */
372
188
  percent(value: RefOrNormal<NumberOrString>, options?: Intl.NumberFormatOptions): ComputedRef<string>;
189
+ /** Format percentage (unit). */
373
190
  percentBy100(value: RefOrNormal<NumberOrString>, options?: Intl.NumberFormatOptions): ComputedRef<string>;
191
+ /** Pluralization rules. */
374
192
  plural(value: RefOrNormal<NumberOrString>, words: string, options?: Intl.PluralRulesOptions, optionsNumber?: Intl.NumberFormatOptions): ComputedRef<string>;
193
+ /** Format date/time. */
375
194
  date(value: RefOrNormal<NumberOrStringOrDate>, type?: GeoDate, styleOptions?: Intl.DateTimeFormatOptions['month'] | Intl.DateTimeFormatOptions, hour24?: boolean): ComputedRef<string>;
195
+ /** Format relative time. */
376
196
  relative(value: RefOrNormal<NumberOrStringOrDate>, styleOptions?: Intl.RelativeTimeFormatStyle | Intl.RelativeTimeFormatOptions, todayValue?: Date): ComputedRef<string>;
197
+ /** Format relative time with limit. */
377
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. */
378
200
  relativeByValue(value: RefOrNormal<NumberOrString>, unit: Intl.RelativeTimeFormatUnit, styleOptions?: Intl.RelativeTimeFormatStyle | Intl.RelativeTimeFormatOptions): ComputedRef<string>;
201
+ /** Month name. */
379
202
  month(value?: RefOrNormal<NumberOrStringOrDate>, style?: Intl.DateTimeFormatOptions['month']): ComputedRef<string>;
203
+ /** List of months. */
380
204
  months(style?: Intl.DateTimeFormatOptions['month']): ComputedRef<ItemValue<number | undefined>[]>;
205
+ /** Day of week name. */
381
206
  weekday(value?: RefOrNormal<NumberOrStringOrDate>, style?: Intl.DateTimeFormatOptions['weekday']): ComputedRef<string>;
207
+ /** List of weekdays. */
382
208
  weekdays(style?: Intl.DateTimeFormatOptions['weekday']): ComputedRef<ItemValue<number | undefined>[]>;
209
+ /** Time string. */
383
210
  time(value: RefOrNormal<NumberOrStringOrDate>): ComputedRef<string>;
211
+ /** Sort strings by locale. */
384
212
  sort<T>(data: RefOrNormal<T[]>, compareFn?: (a: T, b: T) => [string, string]): ComputedRef<T[]>;
385
213
  }
386
-
387
- /** Global geographic data management. */
214
+ // File: classes/ref/GeoRef.d.ts
215
+ /** Reactive geography management. */
388
216
  export declare class GeoRef {
217
+ /** Get full geographic info. */
389
218
  static get(): Ref<GeoItemFull>;
219
+ /** Get current country. */
390
220
  static getCountry(): ComputedRef<string>;
221
+ /** Get current language. */
391
222
  static getLanguage(): ComputedRef<string>;
223
+ /** Get locale format. */
392
224
  static getStandard(): ComputedRef<string>;
225
+ /** Get first day of week. */
393
226
  static getFirstDay(): ComputedRef<string>;
227
+ /** Set data by code. */
394
228
  static set(code: string): void;
395
229
  }
396
-
397
- /** Generate subcomponent properties. */
398
- export declare function getBind<T, R extends ItemList>(value: T | R | undefined | null, nameExtra?: ItemList | string, name?: string, except?: boolean): ConstrBind<R>;
399
-
400
- /** Reactive subcomponent properties. */
401
- export declare function getBindRef<T, R extends ItemList>(value: RefOrNormal<T | R> | undefined, nameExtra?: RefOrNormal<ItemList> | string, name?: string): ComputedRef<R>;
402
-
403
- /** Get class name from props. */
404
- export declare function getClassName<T extends ItemList>(props?: T): string | undefined;
405
-
406
- /** Get/gen render index. */
407
- export declare function getIndexForRender<T extends ItemList>(name: string | any, props?: T, index?: string): string | undefined;
408
-
409
- /** Get API options. */
410
- export declare const getOptions: (options?: ApiOptions) => RefOrNormal<ApiFetch>;
411
-
412
- /** Unwrap ref value. */
413
- export declare function getRef<T>(item: RefOrNormal<T>): T;
414
-
415
- export declare type LazyItem = {
416
- status: ShallowRef<boolean>;
417
- ratio: ShallowRef<number>;
418
- entry: ShallowRef<IntersectionObserverEntry | undefined>;
419
- stopWatch: () => void;
420
- };
421
-
422
- export declare type LazyItemByMargin = {
423
- rootMargin: string;
424
- item: any;
425
- };
426
-
427
- export declare type LazyList = Record<string, LazyItem>;
428
-
429
- /** Basic list item structure. */
430
- export declare type ListDataBasic = {
431
- label?: NumberOrString;
432
- value?: any;
433
- search?: string;
434
- };
435
-
436
- /** List items with state. */
437
- export declare type ListDataFull<Item extends ListDataBasic = ListDataBasic> = ListDataFullItem<Item>[];
438
-
439
- /** List item state properties. */
440
- export declare type ListDataFullItem<Item extends ListDataBasic = ListDataBasic> = ListDataItem<Item> & {
441
- focus: boolean;
442
- highlight?: string;
443
- selected: boolean;
444
- disabled?: boolean;
445
- };
446
-
447
- /** Identified list item. */
448
- export declare type ListDataItem<Item extends ListDataBasic = ListDataBasic> = ConstrBind<Item & {
449
- parent?: string;
450
- type: ListType;
451
- index: string;
452
- }>;
453
-
454
- /** List data management class. */
230
+ // File: classes/ref/ListDataRef.d.ts
231
+ /** List data management. */
455
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
+ */
456
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. */
457
249
  readonly data: ComputedRef<ListList>;
250
+ /** Lite list for loading. */
458
251
  readonly liteData: ComputedRef<ListList>;
252
+ /** Full data with state. */
459
253
  readonly fullData: ComputedRef<ListDataFull>;
254
+ /** Flat map of entries. */
460
255
  readonly map: ComputedRef<ListList>;
256
+ /** Map of items only. */
461
257
  readonly mapItems: ComputedRef<ListList>;
258
+ /** Selection values list. */
462
259
  readonly items: ComputedRef<ListList>;
260
+ /** Index of first match. */
463
261
  readonly highlightFirstItem: ComputedRef<number>;
262
+ /** If selection exists. */
464
263
  readonly isSelected: ComputedRef<boolean>;
264
+ /** Min selection reached. */
465
265
  readonly isSelectedMin: ComputedRef<boolean>;
266
+ /** Max selection reached. */
466
267
  readonly isSelectedMax: ComputedRef<boolean>;
268
+ /** Selected items map. */
467
269
  readonly selectedList: ComputedRef<ListList>;
270
+ /** Selected in group. */
468
271
  readonly selectedListInGroup: ComputedRef<ListList>;
272
+ /** Selected labels. */
469
273
  readonly selectedNames: ComputedRef<ListNames>;
274
+ /** Selected values. */
470
275
  readonly selectedValues: ComputedRef<any[]>;
276
+ /** Is lite mode active. */
471
277
  isLite(): boolean;
278
+ /** Is focus present. */
472
279
  isFocus(): boolean;
280
+ /** Is result highlighted. */
473
281
  isHighlight(): boolean;
282
+ /** Is highlighting active. */
474
283
  isHighlightActive(): boolean;
284
+ /** Get count. */
475
285
  getLength(): number;
286
+ /** Get total map count. */
476
287
  getLengthByMap(): number;
288
+ /** Get items count. */
477
289
  getLengthByItems(): number;
290
+ /** Get focused ID. */
478
291
  getFocus(): ListSelectedItem | undefined;
292
+ /** Get highlight text. */
479
293
  getHighlight(): string | undefined;
294
+ /** Get min highlight length. */
480
295
  getHighlightLengthStart(): number;
296
+ /** Get selected list. */
481
297
  getSelected(): ListSelectedList | undefined;
298
+ /** Get item by relative step. */
482
299
  getSelectedByStep(step: number): ListSelectedItem | undefined;
300
+ /** Get next item. */
483
301
  getSelectedNext(): ListSelectedItem | undefined;
302
+ /** Get previous item. */
484
303
  getSelectedPrev(): ListSelectedItem | undefined;
304
+ /** Get item by step from ref. */
485
305
  getItemByStep(item: ListDataItem, step: number): ListDataItem | undefined;
306
+ /** Get next item from ref. */
486
307
  getItemNext(item: ListDataItem): ListDataItem | undefined;
308
+ /** Get previous item from ref. */
487
309
  getItemPrev(item: ListDataItem): ListDataItem | undefined;
310
+ /** Get item by index step. */
488
311
  getIndexByStep(index: string, step: number): ListDataItem | undefined;
312
+ /** Get next item from index. */
489
313
  getIndexNext(index: string): ListDataItem | undefined;
314
+ /** Get previous item from index. */
490
315
  getIndexPrev(index: string): ListDataItem | undefined;
491
- getItemByIndex(index?: string): { key: number; item: ListDataItem; } | undefined;
316
+ /** Get item details by index. */
317
+ getItemByIndex(index?: string): {
318
+ key: number;
319
+ item: ListDataItem;
320
+ } | undefined;
321
+ /** Get item by key. */
492
322
  getItemByKey(key: number): ListDataItem | undefined;
323
+ /** Get first child of parent. */
493
324
  getFirstItemByParent(parent: string | undefined): ListDataItem | undefined;
325
+ /** Get last child of parent. */
494
326
  getLastItemByParent(parent: string | undefined): ListDataItem | undefined;
327
+ /** Get sublist instance. */
495
328
  getSubList(item: ListDataItem): ListDataRef;
496
329
  }
497
-
498
- export declare type ListList<Item extends ListDataBasic = ListDataBasic> = ListDataItem<Item>[];
499
- export declare type ListListInput<Item extends ListDataBasic = ListDataBasic> = ListListInputItem<Item>[] | string[] | Record<string, ListListInputItem<Item>> | Record<string, string>;
500
- export declare type ListListInputItem<Item extends ListDataBasic = ListDataBasic> = ConstrBind<Item>;
501
- export declare type ListName = string | number | undefined;
502
- export declare type ListNames = ListName[];
503
- export declare type ListRecord<Item extends ListDataBasic = ListDataBasic> = ListList<Item> | Record<string, any>;
504
- export declare type ListSelectedItem = NumberOrStringOrBoolean;
505
- export declare type ListSelectedList = ListSelectedItem | ListSelectedItem[];
506
- export declare type ListType = 'item' | 'space' | 'line' | 'subtitle' | 'html' | 'menu' | 'menu-group' | 'group';
507
-
508
- export declare type RawChildren = string | number | boolean | VNode | VNodeArrayChildren | (() => any);
509
- export declare type RawSlots = { [name: string]: unknown; $stable?: boolean; };
510
-
511
- export declare type RefOrNormal<T> = RefType<T> | T;
512
- export declare type RefType<T> = ComputedRef<T> | Ref<T>;
513
- export declare type RefUndefined<T> = RefType<T | undefined>;
514
-
515
- /** Render cached/immutable data. */
516
- export declare function render<T extends ItemList>(name: string | any, props?: T, children?: RawChildren | RawSlots, index?: string): VNode;
517
-
518
- /** Router utilities. */
330
+ // File: classes/ref/RouterItemRef.d.ts
331
+ /** Router management. */
519
332
  export declare class RouterItemRef {
333
+ /** Get router. */
520
334
  static get(): Router;
335
+ /** Get link by name. */
521
336
  static getLink(name: string, params?: any, query?: any): string | undefined;
337
+ /** Get href props by name. */
522
338
  static getHref(name?: string, params?: any, query?: any): ConstrHrefProps;
339
+ /** Change route. */
523
340
  static push(to: string | RouteLocationRaw): void;
341
+ /** Set router. */
524
342
  static set(router: Router): void;
343
+ /** Set router once. */
525
344
  static setOneTime(router: Router): void;
345
+ /** Raw to href conversion. */
526
346
  static rawToHref(to?: string | RouteLocationRaw): ConstrHrefProps;
527
347
  }
528
-
529
- /** Scrollbar width detector. */
348
+ // File: classes/ref/ScrollbarWidthRef.d.ts
349
+ /** Reactive scroll width. */
530
350
  export declare class ScrollbarWidthRef {
531
351
  readonly item: Ref<boolean | undefined, boolean | undefined>;
532
352
  readonly width: Ref<number, number>;
533
353
  constructor();
534
354
  readonly is: ComputedRef<boolean>;
535
355
  }
536
-
537
- export declare type SearchListInput<T extends SearchItem> = SearchListValueRef<T> | (() => SearchListValueRef<T>);
538
- export declare type SearchListValueRef<T extends SearchItem> = RefOrNormal<SearchListValue<T>>;
539
-
540
- /** Global API conditions. */
541
- export declare const setApiRefGlobalConditions: (conditions: RefType<any>) => void;
542
-
543
- /** Update reactive ref. */
544
- export declare function setRef<T>(item: Ref<T>, value: T): void;
545
-
546
- /** Shorthand for translation. */
547
- export declare const t: <T extends string[]>(names: T) => ShallowRef<TranslateList<T>>;
548
-
549
- /** Merge objects with class/style awareness. */
550
- export declare function toBind<R extends ItemList = ItemList>(extra: ItemList, value: ItemList): ConstrBind<R>;
551
- export declare function toBinds<R extends ItemList = ItemList>(...values: (ItemList | undefined)[]): ConstrBind<R>;
552
-
553
- /** Ensure value is Ref. */
554
- export declare function toRefItem<T>(item: RefOrNormal<T>): Ref<T>;
555
-
556
- export declare type UnionToIntersection<U> = (U extends any ? (k: U) => void : never) extends (k: infer I) => void ? I : never;
557
-
558
- /** API DELETE request. */
356
+ // File: composables/ref/useApiAsyncRef.d.ts
357
+ /** Async API request initialization. */
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>;
359
+ // File: composables/ref/useApiDelete.d.ts
360
+ /** API delete request hook. */
559
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): {
560
362
  loading: Ref<boolean, boolean>;
561
363
  send(request?: Request | undefined): Promise<Return | undefined>;
562
364
  };
563
-
564
- /** API GET request. */
365
+ // File: composables/ref/useApiGet.d.ts
366
+ /** API get request hook. */
565
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): {
566
368
  loading: Ref<boolean, boolean>;
567
369
  send(request?: Request | undefined): Promise<Return | undefined>;
568
370
  };
569
-
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
570
397
  /**
571
- * Advanced API orchestration (GET, List, Search, Mutations).
572
- * @note Best used with `executeUse`.
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.
573
401
  * @example
574
- * const products = useApiManagementRef({ path: '/api/v1/products' }, { price: (v) => `${v}$` });
402
+ * const products = useApiManagementRef(
403
+ * { path: '/api/v1/products', skeleton: () => [] },
404
+ * { price: (v) => `${v} USD` },
405
+ * { columns: ['name'] },
406
+ * { path: '/api/v1/products' }
407
+ * );
575
408
  */
576
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): {
577
410
  isValid: ComputedRef<boolean>;
@@ -588,27 +421,28 @@ export declare function useApiManagementRef<Return extends ApiManagementValue, F
588
421
  loadingDelete: Ref<boolean, boolean> | undefined;
589
422
  isSearch: ComputedRef<boolean> | undefined;
590
423
  search: Ref<string, string> | undefined;
424
+ init: () => void;
425
+ initSsr: () => void;
591
426
  reset: () => Promise<void>;
592
427
  abort: () => void;
593
428
  sendPost: (request?: ApiFetch["request"]) => Promise<ApiData<Post> | undefined>;
594
429
  sendPut: (request?: ApiFetch["request"]) => Promise<ApiData<Put> | undefined>;
595
430
  sendDelete: (request?: ApiFetch["request"]) => Promise<ApiData<Delete> | undefined>;
596
431
  };
597
-
598
- /** API POST request. */
432
+ // File: composables/ref/useApiPost.d.ts
433
+ /** API post request hook. */
599
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): {
600
435
  loading: Ref<boolean, boolean>;
601
436
  send(request?: Request | undefined): Promise<Return | undefined>;
602
437
  };
603
-
604
- /** API PUT request. */
438
+ // File: composables/ref/useApiPut.d.ts
439
+ /** API put request hook. */
605
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): {
606
441
  loading: Ref<boolean, boolean>;
607
442
  send(request?: Request | undefined): Promise<Return | undefined>;
608
443
  };
609
-
610
- /** useApiRef return interface. */
611
- export declare interface UseApiRef<R> {
444
+ // File: composables/ref/useApiRef.d.ts
445
+ export interface UseApiRef<R> {
612
446
  data: ComputedRef<ApiData<R> | undefined>;
613
447
  item: Ref<ApiData<R> | undefined>;
614
448
  isResponseContractValid: ComputedRef<boolean>;
@@ -622,44 +456,59 @@ export declare interface UseApiRef<R> {
622
456
  isReading(): boolean;
623
457
  getItem(): ApiData<R> | undefined;
624
458
  init(): void;
459
+ initSsr(): void;
625
460
  reset(): Promise<void>;
626
461
  stop(): void;
627
462
  abort(): void;
628
463
  }
629
-
630
- /** Reactive request handling. */
464
+ /** Reactive API requester. */
631
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>;
632
-
633
- /** Basic API request composable. */
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. */
634
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): {
635
471
  loading: Ref<boolean, boolean>;
636
472
  send(request?: Request): Promise<Return | undefined>;
637
473
  };
638
-
639
- /** Sync data between tabs. */
474
+ // File: composables/ref/useBroadcastValueRef.d.ts
475
+ type BroadcastValueItem<T> = T | string | undefined;
476
+ /** Cross-tab data sync. */
640
477
  export declare function useBroadcastValueRef<T>(name: string, defaultValue?: T | string | (() => (T | string))): Ref<BroadcastValueItem<T>>;
641
-
642
- /** Manage cookies reactively. */
478
+ // File: composables/ref/useCookieRef.d.ts
479
+ /** Reactive cookie management. */
643
480
  export declare function useCookieRef<T>(name: string, defaultValue?: T | string | (() => (T | string)), options?: CookieOptions): Ref<T | string | undefined>;
644
-
481
+ // File: composables/ref/useFormattersRef.d.ts
645
482
  /** Reactive list formatting. */
646
483
  export declare function useFormattersRef<Options extends FormattersOptionsList = FormattersOptionsList, List extends FormattersListProp = FormattersListProp>(list: RefType<List | undefined>, options: Options): {
647
484
  listFormat: ComputedRef<FormattersReturn<List, Options>>;
648
485
  length: ComputedRef<number>;
649
486
  };
650
-
487
+ // File: composables/ref/useGeoIntlRef.d.ts
488
+ /** Formatting class getter. */
651
489
  export declare function useGeoIntlRef(): GeoIntlRef;
652
-
653
- /** Reactive hash management. */
490
+ // File: composables/ref/useHashRef.d.ts
491
+ /** Reactive URL hash management. */
654
492
  export declare function useHashRef<T>(name: string, defaultValue?: T | (() => T)): ShallowRef<T>;
655
-
656
- /** Track element appearance by margin. */
493
+ // File: composables/ref/useLazyItemByMarginRef.d.ts
494
+ export type LazyItemByMargin = {
495
+ rootMargin: string;
496
+ item: any;
497
+ };
498
+ /** Intersection tracking by margin. */
657
499
  export declare const useLazyItemByMarginRef: (element: RefType<HTMLElement | undefined>, rootMargin: string) => {
658
500
  lazyItemStatus: any;
659
501
  readonly lazyItem: any;
660
502
  };
661
-
662
- /** Element visibility tracking. */
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. */
663
512
  export declare const useLazyRef: (options?: IntersectionObserverInit) => {
664
513
  intersectionObserver: IntersectionObserver | undefined;
665
514
  getItem(element: HTMLElement): LazyItem;
@@ -667,12 +516,13 @@ export declare const useLazyRef: (options?: IntersectionObserverInit) => {
667
516
  removeLazyItem: (element?: HTMLElement) => void;
668
517
  disconnectLazy: () => void | undefined;
669
518
  };
670
-
519
+ // File: composables/ref/useLoadingRef.d.ts
520
+ /** Loading status ref. */
671
521
  export declare function useLoadingRef(): ShallowRef<boolean, boolean>;
672
-
673
- /** Global meta tag management. */
522
+ // File: composables/ref/useMeta.d.ts
523
+ /** Meta tag management singleton. */
674
524
  export declare const useMeta: () => Readonly<{
675
- meta: Meta;
525
+ meta: typeof MetaStatic;
676
526
  title: Ref<string, string>;
677
527
  keyword: Ref<string, string>;
678
528
  description: Ref<string, string>;
@@ -682,10 +532,21 @@ export declare const useMeta: () => Readonly<{
682
532
  robots: Ref<MetaRobots, MetaRobots>;
683
533
  siteName: Ref<string, string>;
684
534
  getHtmlMeta: () => string;
685
- setSuffix: (suffix: string) => void;
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;
546
+ setSuffix: (suffix: string) => typeof MetaStatic;
686
547
  } & {
687
548
  init(): Readonly<{
688
- meta: Meta;
549
+ meta: typeof MetaStatic;
689
550
  title: Ref<string, string>;
690
551
  keyword: Ref<string, string>;
691
552
  description: Ref<string, string>;
@@ -695,12 +556,23 @@ export declare const useMeta: () => Readonly<{
695
556
  robots: Ref<MetaRobots, MetaRobots>;
696
557
  siteName: Ref<string, string>;
697
558
  getHtmlMeta: () => string;
698
- setSuffix: (suffix: string) => void;
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;
570
+ setSuffix: (suffix: string) => typeof MetaStatic;
699
571
  }>;
700
572
  destroyExecute?(): void;
701
573
  }>;
702
-
703
- /** Router-linked list. */
574
+ // File: composables/ref/useRouterList.d.ts
575
+ /** Router link list management. */
704
576
  export declare const useRouterList: <T extends ListDataBasic>(list: RefType<ConstrBind<T>[] | undefined>, selected?: Ref<string> | string, hasTo?: boolean) => {
705
577
  item: ComputedRef<T | undefined>;
706
578
  selected: Ref<string, string>;
@@ -709,7 +581,7 @@ export declare const useRouterList: <T extends ListDataBasic>(list: RefType<Cons
709
581
  to: (name?: string) => void;
710
582
  toMain(): void;
711
583
  };
712
-
584
+ // File: composables/ref/useSearchRef.d.ts
713
585
  /** Reactive search logic. */
714
586
  export declare function useSearchRef<T extends SearchItem, K extends SearchColumns<T>>(list: SearchListInput<T>, columns: K, value?: Ref<string>, options?: SearchOptions): {
715
587
  isSearch: ComputedRef<boolean>;
@@ -718,29 +590,334 @@ export declare function useSearchRef<T extends SearchItem, K extends SearchColum
718
590
  listSearch: ComputedRef<SearchFormatList<T, K>>;
719
591
  length: ComputedRef<number>;
720
592
  };
721
-
722
- /** Search state with debounce. */
593
+ // File: composables/ref/useSearchValueRef.d.ts
594
+ /** Search state and debounce. */
723
595
  export declare function useSearchValueRef<T extends SearchItem, K extends SearchColumns<T>>(item: SearchList<T, K>, value?: Ref<string>): {
724
596
  search: Ref<string, string>;
725
597
  searchDelay: Ref<string, string>;
726
598
  loading: Ref<boolean, boolean>;
727
599
  };
728
-
600
+ // File: composables/ref/useSessionRef.d.ts
729
601
  /** Reactive session storage. */
730
602
  export declare function useSessionRef<T>(name: string, defaultValue?: T | (() => T)): Ref<T | undefined>;
731
-
603
+ // File: composables/ref/useStorageRef.d.ts
732
604
  /** Reactive local storage. */
733
605
  export declare function useStorageRef<T>(name: string, defaultValue?: T | (() => T), cache?: number): Ref<T | undefined>;
734
-
735
- /**
736
- * Reactive translation retrieval.
606
+ // File: composables/ref/useTranslateRef.d.ts
607
+ /** Translation getter ref.
737
608
  * @example
738
- * const tr = useTranslateRef(['home.title'] as const);
609
+ * const labels = t(['button.save'] as const);
739
610
  */
740
611
  export declare function useTranslateRef<T extends (string | string[])[]>(names: T, translateInstance?: TranslateInstance): ShallowRef<TranslateList<T>>;
741
-
742
- export * from "@dxtmisha/functional-basic";
743
-
744
- export { }
745
-
746
- go!
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>);