@dxtmisha/functional 1.11.8 → 1.11.9

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,4 +1,4 @@
1
- import { ApiInstance, ArrayToItem, FormattersListColumns, FormattersOptionsList, SearchColumns, SearchFormatList, ApiData, ApiFetch } from '@dxtmisha/functional-basic';
1
+ import { ApiInstance, ArrayToItem, FormattersListColumns, FormattersOptionsList, SearchColumns, ApiDataValidation, SearchFormatList, ApiData, ApiFetch } from '@dxtmisha/functional-basic';
2
2
  import { ApiManagementGet, ApiManagementRequest, ApiManagementSearch, ApiManagementValue } from '../../types/apiTypes';
3
3
  import { ComputedRef, Ref } from 'vue';
4
4
  /**
@@ -26,6 +26,8 @@ import { ComputedRef, Ref } from 'vue';
26
26
  */
27
27
  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): {
28
28
  isValid: ComputedRef<boolean>;
29
+ isResponseContractValid: ComputedRef<boolean>;
30
+ responseValidationResult: ComputedRef< ApiDataValidation | undefined>;
29
31
  list: ComputedRef<SearchFormatList<ItemFormatters, Columns>>;
30
32
  readonly data: ComputedRef< ApiData<Return> | undefined>;
31
33
  readonly length: ComputedRef<number>;
@@ -1,4 +1,4 @@
1
- import { FormattersOptionsList, ApiData, ApiInstance, ArrayToItem, SearchColumns, SearchFormatList, FormattersListColumns, ApiFetch } from '@dxtmisha/functional-basic';
1
+ import { FormattersOptionsList, ApiData, ApiInstance, ArrayToItem, SearchColumns, SearchFormatList, FormattersListColumns, ApiFetch, ApiDataValidation } from '@dxtmisha/functional-basic';
2
2
  import { ApiManagementGet, ApiManagementRequest, ApiManagementSearch, ApiManagementValue } from '../../types/apiTypes';
3
3
  import { ComputedRef, Ref } from 'vue';
4
4
  /**
@@ -76,6 +76,10 @@ import { ComputedRef, Ref } from 'vue';
76
76
  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): {
77
77
  /** Whether data passed the `typeData` check / `true`, если данные прошли проверку `typeData` */
78
78
  isValid: ComputedRef<boolean>;
79
+ /** Status of response contract validation / Статус валидации контракта ответа */
80
+ isResponseContractValid: ComputedRef<boolean>;
81
+ /** Result of response validation / Результат валидации ответа */
82
+ responseValidationResult: ComputedRef< ApiDataValidation | undefined>;
79
83
  /** Processed data array (supports Skeleton, formatters, and search) / Обработанный массив данных (поддерживает Skeleton, форматтеры и поиск) */
80
84
  list: ComputedRef<SearchFormatList<ItemFormatters, Columns>>;
81
85
  /** Raw reactive data from `useApiRef` / «Сырые» реактивные данные из `useApiRef` */
package/dist/library.js CHANGED
@@ -1,38 +1,38 @@
1
- import { Api as e, ApiMethodItem as t, BroadcastMessage as n, Cookie as r, DataStorage as i, Datetime as a, ErrorCenter as o, EventItem as s, Formatters as c, Geo as l, GeoFlag as u, GeoIntl as d, Hash as f, Icons as p, Loading as m, MetaStatic as h, ScrollbarWidth as g, SearchList as _, ServerStorage as v, Translate as y, executeFunction as b, executePromise as x, forEach as S, getColumn as C, getElementId as w, getExp as T, isApiSuccess as ee, isArray as te, isDomRuntime as E, isFunction as ne, isObject as D, isObjectNotArray as O, isSelected as k, isString as A, random as re, toArray as j, toCamelCase as ie, toDate as ae } from "@dxtmisha/functional-basic";
2
- import { computed as M, customRef as oe, effectScope as se, getCurrentInstance as ce, h as le, hasInjectionContext as ue, inject as de, isRef as N, onServerPrefetch as fe, onUnmounted as pe, provide as me, ref as P, shallowRef as F, toRefs as he, triggerRef as ge, useAttrs as _e, useSlots as ve, watch as I, watchEffect as ye } from "vue";
1
+ import { Api as e, ApiMethodItem as t, BroadcastMessage as n, Cookie as r, DataStorage as i, Datetime as a, ErrorCenter as o, EventItem as s, Formatters as c, Geo as l, GeoFlag as u, GeoIntl as d, Hash as f, Icons as p, Loading as m, MetaStatic as h, ScrollbarWidth as g, SearchList as _, ServerStorage as v, Translate as y, executeFunction as b, executePromise as x, forEach as S, getColumn as C, getElementId as w, getExp as T, isApiSuccess as ee, isArray as E, isDomRuntime as D, isFunction as te, isObject as O, isObjectNotArray as k, isSelected as A, isString as j, random as ne, toArray as M, toCamelCase as re, toDate as ie } from "@dxtmisha/functional-basic";
2
+ import { computed as N, customRef as ae, effectScope as oe, getCurrentInstance as se, h as ce, hasInjectionContext as le, inject as ue, isRef as P, onServerPrefetch as de, onUnmounted as fe, provide as pe, ref as F, shallowRef as I, toRefs as me, triggerRef as he, useAttrs as ge, useSlots as _e, watch as L, watchEffect as ve } from "vue";
3
3
  export * from "@dxtmisha/functional-basic";
4
4
  //#endregion
5
5
  //#region \0@oxc-project+runtime@0.128.0/helpers/typeof.js
6
- function L(e) {
6
+ function R(e) {
7
7
  "@babel/helpers - typeof";
8
- return L = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(e) {
8
+ return R = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(e) {
9
9
  return typeof e;
10
10
  } : function(e) {
11
11
  return e && typeof Symbol == "function" && e.constructor === Symbol && e !== Symbol.prototype ? "symbol" : typeof e;
12
- }, L(e);
12
+ }, R(e);
13
13
  }
14
14
  //#endregion
15
15
  //#region \0@oxc-project+runtime@0.128.0/helpers/toPrimitive.js
16
- function be(e, t) {
17
- if (L(e) != "object" || !e) return e;
16
+ function ye(e, t) {
17
+ if (R(e) != "object" || !e) return e;
18
18
  var n = e[Symbol.toPrimitive];
19
19
  if (n !== void 0) {
20
20
  var r = n.call(e, t || "default");
21
- if (L(r) != "object") return r;
21
+ if (R(r) != "object") return r;
22
22
  throw TypeError("@@toPrimitive must return a primitive value.");
23
23
  }
24
24
  return (t === "string" ? String : Number)(e);
25
25
  }
26
26
  //#endregion
27
27
  //#region \0@oxc-project+runtime@0.128.0/helpers/toPropertyKey.js
28
- function xe(e) {
29
- var t = be(e, "string");
30
- return L(t) == "symbol" ? t : t + "";
28
+ function be(e) {
29
+ var t = ye(e, "string");
30
+ return R(t) == "symbol" ? t : t + "";
31
31
  }
32
32
  //#endregion
33
33
  //#region \0@oxc-project+runtime@0.128.0/helpers/defineProperty.js
34
- function R(e, t, n) {
35
- return (t = xe(t)) in e ? Object.defineProperty(e, t, {
34
+ function z(e, t, n) {
35
+ return (t = be(t)) in e ? Object.defineProperty(e, t, {
36
36
  value: n,
37
37
  enumerable: !0,
38
38
  configurable: !0,
@@ -41,12 +41,12 @@ function R(e, t, n) {
41
41
  }
42
42
  //#endregion
43
43
  //#region src/classes/design/DesignChanged.ts
44
- var Se = class {
44
+ var xe = class {
45
45
  constructor(e, t = Object.keys(e)) {
46
- R(this, "cache", {}), this.props = e, this.watch = t;
46
+ z(this, "cache", {}), this.props = e, this.watch = t;
47
47
  }
48
48
  is(e) {
49
- return te(e) ? !!e.find((e) => this.isDifferent(e)) : this.isDifferent(e);
49
+ return E(e) ? !!e.find((e) => this.isDifferent(e)) : this.isDifferent(e);
50
50
  }
51
51
  isChanged() {
52
52
  let e = this.props;
@@ -62,9 +62,9 @@ var Se = class {
62
62
  var t, n;
63
63
  return ((t = this.cache) == null ? void 0 : t[e]) !== ((n = this.props) == null ? void 0 : n[e]);
64
64
  }
65
- }, Ce = class {
65
+ }, Se = class {
66
66
  constructor(e, t, n) {
67
- R(this, "event", {}), R(this, "changed", void 0), this.props = e, this.callback = t, this.changed = new Se(e, n);
67
+ z(this, "event", {}), z(this, "changed", void 0), this.props = e, this.callback = t, this.changed = new xe(e, n);
68
68
  }
69
69
  make(e) {
70
70
  return this.makeCallback(e), this;
@@ -81,7 +81,7 @@ var Se = class {
81
81
  makeCallbackItem() {
82
82
  this.callback && this.callback(this.event);
83
83
  }
84
- }, we = class extends Ce {
84
+ }, Ce = class extends Se {
85
85
  make(e) {
86
86
  return this.makeCallback(e).then(), this;
87
87
  }
@@ -91,32 +91,32 @@ var Se = class {
91
91
  };
92
92
  //#endregion
93
93
  //#region src/functions/ref/getRef.ts
94
- function z(e) {
95
- return N(e) ? e.value : e;
94
+ function B(e) {
95
+ return P(e) ? e.value : e;
96
96
  }
97
97
  //#endregion
98
98
  //#region src/functions/render/getClassName.ts
99
- function Te(e) {
99
+ function we(e) {
100
100
  return e && "class" in e && typeof e.class == "string" ? e.class : void 0;
101
101
  }
102
102
  //#endregion
103
103
  //#region src/functions/render/getIndexForRender.ts
104
- function Ee(e, t, n) {
105
- let r = t == null ? void 0 : t.id, i = t == null ? void 0 : t.index, a = Te(t), o = "";
106
- if (A(e) && (o += e), n && (o += `.${n}`), i && A(i) && (o += `.${i}`), a && (o += `.${a}`), r && (o += `.${r}`), o !== "") return o;
104
+ function Te(e, t, n) {
105
+ let r = t == null ? void 0 : t.id, i = t == null ? void 0 : t.index, a = we(t), o = "";
106
+ if (j(e) && (o += e), n && (o += `.${n}`), i && j(i) && (o += `.${i}`), a && (o += `.${a}`), r && (o += `.${r}`), o !== "") return o;
107
107
  }
108
108
  //#endregion
109
109
  //#region src/functions/ref/render.ts
110
- function De(e, t, n, r) {
110
+ function Ee(e, t, n, r) {
111
111
  let i = t, a = t && "key" in t;
112
112
  return (!t || !a) && (i = {
113
113
  ...t,
114
- key: Ee(e, t, r)
115
- }), le(e, i, n);
114
+ key: Te(e, t, r)
115
+ }), ce(e, i, n);
116
116
  }
117
117
  //#endregion
118
118
  //#region src/functions/toBind.ts
119
- function B(e, t) {
119
+ function V(e, t) {
120
120
  let n = e == null ? void 0 : e.class, r = t == null ? void 0 : t.class, i = e == null ? void 0 : e.style, a = t == null ? void 0 : t.style, o = {
121
121
  ...e,
122
122
  ...t
@@ -125,17 +125,17 @@ function B(e, t) {
125
125
  }
126
126
  //#endregion
127
127
  //#region src/functions/toBinds.ts
128
- function Oe(...e) {
128
+ function De(...e) {
129
129
  let t = {};
130
130
  return e.forEach((e) => {
131
- e && (t = B(t, e));
131
+ e && (t = V(t, e));
132
132
  }), t;
133
133
  }
134
134
  //#endregion
135
135
  //#region src/classes/design/DesignComponents.ts
136
- var V = class {
136
+ var H = class {
137
137
  constructor(e = {}, t) {
138
- R(this, "caching", {}), this.components = e, this.modification = t;
138
+ z(this, "caching", {}), this.components = e, this.modification = t;
139
139
  }
140
140
  is(e) {
141
141
  return e in this.components;
@@ -146,9 +146,9 @@ var V = class {
146
146
  }
147
147
  getModification(e, t) {
148
148
  if (e) {
149
- e in this.caching || (this.caching[e] = M(() => this.computeModification(e)));
149
+ e in this.caching || (this.caching[e] = N(() => this.computeModification(e)));
150
150
  let n = this.caching[e];
151
- if (n) return t ? Oe(n.value, t) : n.value;
151
+ if (n) return t ? De(n.value, t) : n.value;
152
152
  }
153
153
  return t;
154
154
  }
@@ -159,7 +159,7 @@ var V = class {
159
159
  renderOne(e, t, n, r) {
160
160
  if (this.is(e)) {
161
161
  let i = r == null ? e : r;
162
- return De(this.get(e), this.getModification(i, t), n, i);
162
+ return Ee(this.get(e), this.getModification(i, t), n, i);
163
163
  }
164
164
  }
165
165
  renderAdd(e, t, n, r, i) {
@@ -167,21 +167,21 @@ var V = class {
167
167
  }
168
168
  computeModification(e) {
169
169
  var t;
170
- let n = z((t = this.modification) == null ? void 0 : t[e]);
171
- if (n && O(n)) {
170
+ let n = B((t = this.modification) == null ? void 0 : t[e]);
171
+ if (n && k(n)) {
172
172
  let e = {};
173
173
  return S(n, (t, n) => {
174
- e[n] = z(t);
174
+ e[n] = B(t);
175
175
  }), e;
176
176
  }
177
177
  return {};
178
178
  }
179
- }, ke = class extends V {}, Ae = class {
179
+ }, Oe = class extends H {}, ke = class {
180
180
  constructor(e, t, n) {
181
- R(this, "name", void 0), R(this, "element", P()), R(this, "refs", void 0), R(this, "components", void 0), R(this, "emits", void 0), R(this, "classes", void 0), R(this, "classesSub", void 0), R(this, "styles", void 0), R(this, "stylesSub", void 0), R(this, "attrs", void 0), R(this, "slots", void 0), R(this, "dataExpose", void 0), this.props = t, this.options = n, this.name = this.initName(e), this.refs = this.props ? he(this.props) : {}, this.components = new V(n == null ? void 0 : n.components, n == null ? void 0 : n.compMod), this.emits = n == null ? void 0 : n.emits, this.classes = M(() => this.updateClasses()), this.styles = M(() => this.updateStyles()), this.attrs = _e(), this.slots = ve();
181
+ z(this, "name", void 0), z(this, "element", F()), z(this, "refs", void 0), z(this, "components", void 0), z(this, "emits", void 0), z(this, "classes", void 0), z(this, "classesSub", void 0), z(this, "styles", void 0), z(this, "stylesSub", void 0), z(this, "attrs", void 0), z(this, "slots", void 0), z(this, "dataExpose", void 0), this.props = t, this.options = n, this.name = this.initName(e), this.refs = this.props ? me(this.props) : {}, this.components = new H(n == null ? void 0 : n.components, n == null ? void 0 : n.compMod), this.emits = n == null ? void 0 : n.emits, this.classes = N(() => this.updateClasses()), this.styles = N(() => this.updateStyles()), this.attrs = ge(), this.slots = _e();
182
182
  }
183
183
  init() {
184
- return this.classesSub = M(() => this.initClasses()), this.stylesSub = M(() => this.initStyles()), this.dataExpose = this.initExpose(), this;
184
+ return this.classesSub = N(() => this.initClasses()), this.stylesSub = N(() => this.initStyles()), this.dataExpose = this.initExpose(), this;
185
185
  }
186
186
  getName() {
187
187
  return this.name.join("-");
@@ -190,13 +190,13 @@ var V = class {
190
190
  return String(this.name[0]);
191
191
  }
192
192
  getSubClass(e) {
193
- return `${this.getName()}__${j(e).join("__")}`;
193
+ return `${this.getName()}__${M(e).join("__")}`;
194
194
  }
195
195
  getStatusClass(e) {
196
- return `${this.getName()}--${j(e).join("--")}`;
196
+ return `${this.getName()}--${M(e).join("--")}`;
197
197
  }
198
198
  getStyle(e) {
199
- return `--${this.getName()}-sys-${j(e).join("-")}`;
199
+ return `--${this.getName()}-sys-${M(e).join("-")}`;
200
200
  }
201
201
  getAttrs() {
202
202
  var e;
@@ -221,10 +221,10 @@ var V = class {
221
221
  }
222
222
  }
223
223
  toClass(e) {
224
- return O(e) ? e : Array.isArray(e) ? { [e.filter((e) => typeof e == "string" && e.trim() !== "").join(" ")]: !0 } : typeof e == "string" ? { [e]: !0 } : {};
224
+ return k(e) ? e : Array.isArray(e) ? { [e.filter((e) => typeof e == "string" && e.trim() !== "").join(" ")]: !0 } : typeof e == "string" ? { [e]: !0 } : {};
225
225
  }
226
226
  toClassName(e) {
227
- if (D(e)) {
227
+ if (O(e)) {
228
228
  let t = {};
229
229
  return S(e, (e, n) => {
230
230
  n.match(/\?\?/) ? t[n.replace(/\?\?/, this.getName())] = e : n.match(/\?/) ? t[n.replace(/\?/, this.getDesign())] = e : t[n] = e;
@@ -233,7 +233,7 @@ var V = class {
233
233
  return {};
234
234
  }
235
235
  initName(e) {
236
- return S(e.split(".", 2), (e) => ie(e));
236
+ return S(e.split(".", 2), (e) => re(e));
237
237
  }
238
238
  updateClasses() {
239
239
  var e, t, n;
@@ -263,18 +263,18 @@ var V = class {
263
263
  };
264
264
  //#endregion
265
265
  //#region src/functions/ref/toRefItem.ts
266
- function H(e) {
267
- return N(e) ? e : P(e);
266
+ function U(e) {
267
+ return P(e) ? e : F(e);
268
268
  }
269
269
  //#endregion
270
270
  //#region src/classes/ref/DatetimeRef.ts
271
- var je = class {
271
+ var Ae = class {
272
272
  constructor(e, t = "date", n = l.getLocation()) {
273
- R(this, "item", void 0), R(this, "type", void 0), R(this, "code", void 0), R(this, "date", void 0), R(this, "datetime", void 0), R(this, "year", P(2e3)), R(this, "month", P(1)), R(this, "day", P(1)), R(this, "hour", P(1)), R(this, "minute", P(1)), R(this, "second", P(1)), this.item = H(e), this.type = H(t), this.code = H(n), this.date = P(ae(this.item.value)), this.datetime = new a(this.date.value, this.type.value, this.code.value), I(this.item, (e) => {
274
- this.date.value = ae(e);
275
- }), I(this.type, (e) => this.datetime.setType(e)), I(this.code, (e) => this.datetime.setCode(e)), I(this.date, (e) => {
273
+ z(this, "item", void 0), z(this, "type", void 0), z(this, "code", void 0), z(this, "date", void 0), z(this, "datetime", void 0), z(this, "year", F(2e3)), z(this, "month", F(1)), z(this, "day", F(1)), z(this, "hour", F(1)), z(this, "minute", F(1)), z(this, "second", F(1)), this.item = U(e), this.type = U(t), this.code = U(n), this.date = F(ie(this.item.value)), this.datetime = new a(this.date.value, this.type.value, this.code.value), L(this.item, (e) => {
274
+ this.date.value = ie(e);
275
+ }), L(this.type, (e) => this.datetime.setType(e)), L(this.code, (e) => this.datetime.setCode(e)), L(this.date, (e) => {
276
276
  this.datetime.setDate(e), this.updateDate();
277
- }), this.datetime.setWatch(() => ge(this.date)), this.updateDate();
277
+ }), this.datetime.setWatch(() => he(this.date)), this.updateDate();
278
278
  }
279
279
  getItem() {
280
280
  return this.item;
@@ -286,78 +286,78 @@ var je = class {
286
286
  return this.datetime;
287
287
  }
288
288
  getHoursType() {
289
- return M(() => this.date.value && this.datetime.getHoursType());
289
+ return N(() => this.date.value && this.datetime.getHoursType());
290
290
  }
291
291
  getFirstDayCode() {
292
- return M(() => this.date.value && this.datetime.getFirstDayCode());
292
+ return N(() => this.date.value && this.datetime.getFirstDayCode());
293
293
  }
294
294
  getYear() {
295
- return M(() => this.year.value);
295
+ return N(() => this.year.value);
296
296
  }
297
297
  getMonth() {
298
- return M(() => this.month.value);
298
+ return N(() => this.month.value);
299
299
  }
300
300
  getDay() {
301
- return M(() => this.day.value);
301
+ return N(() => this.day.value);
302
302
  }
303
303
  getHour() {
304
- return M(() => this.hour.value);
304
+ return N(() => this.hour.value);
305
305
  }
306
306
  getMinute() {
307
- return M(() => this.minute.value);
307
+ return N(() => this.minute.value);
308
308
  }
309
309
  getSecond() {
310
- return M(() => this.second.value);
310
+ return N(() => this.second.value);
311
311
  }
312
312
  getMaxDay() {
313
- return M(() => this.date.value && this.datetime.getMaxDay());
313
+ return N(() => this.date.value && this.datetime.getMaxDay());
314
314
  }
315
315
  locale(e = this.type.value, t) {
316
- return M(() => this.date.value && this.datetime.locale(e, t));
316
+ return N(() => this.date.value && this.datetime.locale(e, t));
317
317
  }
318
318
  standard(e = !0) {
319
- return M(() => this.date.value && this.datetime.standard(e));
319
+ return N(() => this.date.value && this.datetime.standard(e));
320
320
  }
321
321
  updateDate() {
322
322
  return this.year.value = this.datetime.getYear(), this.month.value = this.datetime.getMonth(), this.day.value = this.datetime.getDay(), this.hour.value = this.datetime.getHour(), this.minute.value = this.datetime.getMinute(), this.second.value = this.datetime.getSecond(), this;
323
323
  }
324
- }, U = class {
324
+ }, W = class {
325
325
  static run(e) {
326
326
  return this.getScope().run(e);
327
327
  }
328
328
  static getScope() {
329
- return v.get("__ui:effect-scope-global__", () => se(!0));
329
+ return v.get("__ui:effect-scope-global__", () => oe(!0));
330
330
  }
331
- }, Me = class extends s {
331
+ }, je = class extends s {
332
332
  constructor(e, t, n = ["click"], r, i, a) {
333
- let o = H(e), s = H(t);
334
- super(o.value, n, r, i, a), s.value && this.setElementControl(s.value), I(o, (e) => this.setElement(e)), I(s, (e) => this.setElementControl(e));
333
+ let o = U(e), s = U(t);
334
+ super(o.value, n, r, i, a), s.value && this.setElementControl(s.value), L(o, (e) => this.setElement(e)), L(s, (e) => this.setElementControl(e));
335
335
  }
336
- }, Ne = class {
336
+ }, Me = class {
337
337
  constructor(e = l.getLocation()) {
338
- R(this, "code", void 0), R(this, "flag", void 0), this.code = H(e), this.flag = new u(this.code.value), I(this.code, (e) => this.flag.setCode(e));
338
+ z(this, "code", void 0), z(this, "flag", void 0), this.code = U(e), this.flag = new u(this.code.value), L(this.code, (e) => this.flag.setCode(e));
339
339
  }
340
340
  getCode() {
341
341
  return this.code;
342
342
  }
343
343
  get(e = this.code.value) {
344
- return M(() => this.flag.get(e));
344
+ return N(() => this.flag.get(e));
345
345
  }
346
346
  getFlag(e = this.code.value) {
347
- return M(() => {
347
+ return N(() => {
348
348
  var t;
349
349
  return (t = this.flag.get(e)) == null ? void 0 : t.icon;
350
350
  });
351
351
  }
352
352
  getList(e) {
353
- return M(() => this.flag.getList(e));
353
+ return N(() => this.flag.getList(e));
354
354
  }
355
355
  getNational(e) {
356
- return M(() => this.flag.getNational(e));
356
+ return N(() => this.flag.getNational(e));
357
357
  }
358
- }, W, G = class {
358
+ }, G, K = class {
359
359
  static get() {
360
- return v.get("__ui:geo-ref__", () => F(l.getItem()));
360
+ return v.get("__ui:geo-ref__", () => I(l.getItem()));
361
361
  }
362
362
  static getCountry() {
363
363
  return this.country;
@@ -375,85 +375,85 @@ var je = class {
375
375
  l.set(e, !0), this.get().value = l.getItem();
376
376
  }
377
377
  };
378
- W = G, R(G, "country", M(() => W.get().value.country)), R(G, "language", M(() => W.get().value.language)), R(G, "standard", M(() => W.get().value.standard)), R(G, "firstDay", M(() => W.get().value.firstDay));
378
+ G = K, z(K, "country", N(() => G.get().value.country)), z(K, "language", N(() => G.get().value.language)), z(K, "standard", N(() => G.get().value.standard)), z(K, "firstDay", N(() => G.get().value.firstDay));
379
379
  //#endregion
380
380
  //#region src/classes/ref/GeoIntlRef.ts
381
- var Pe = class {
381
+ var Ne = class {
382
382
  constructor(e) {
383
- R(this, "location", void 0), R(this, "intl", void 0), this.location = H(e), this.intl = M(() => {
383
+ z(this, "location", void 0), z(this, "intl", void 0), this.location = U(e), this.intl = N(() => {
384
384
  var e;
385
- return new d((e = this.location.value) == null ? G.getLanguage().value : e);
385
+ return new d((e = this.location.value) == null ? K.getLanguage().value : e);
386
386
  });
387
387
  }
388
388
  display(e, t) {
389
- return M(() => this.intl.value.display(z(e), t));
389
+ return N(() => this.intl.value.display(B(e), t));
390
390
  }
391
391
  languageName(e, t) {
392
- return M(() => this.intl.value.languageName(z(e), t));
392
+ return N(() => this.intl.value.languageName(B(e), t));
393
393
  }
394
394
  countryName(e, t) {
395
- return M(() => this.intl.value.countryName(z(e), t));
395
+ return N(() => this.intl.value.countryName(B(e), t));
396
396
  }
397
397
  number(e, t) {
398
- return M(() => this.intl.value.number(z(e), t));
398
+ return N(() => this.intl.value.number(B(e), t));
399
399
  }
400
400
  decimal() {
401
- return M(() => this.intl.value.decimal());
401
+ return N(() => this.intl.value.decimal());
402
402
  }
403
403
  currency(e, t, n = !1) {
404
- return M(() => this.intl.value.currency(z(e), z(t), n));
404
+ return N(() => this.intl.value.currency(B(e), B(t), n));
405
405
  }
406
406
  currencySymbol(e, t = "symbol") {
407
- return M(() => this.intl.value.currencySymbol(z(e), t));
407
+ return N(() => this.intl.value.currencySymbol(B(e), t));
408
408
  }
409
409
  unit(e, t) {
410
- return M(() => this.intl.value.unit(z(e), t));
410
+ return N(() => this.intl.value.unit(B(e), t));
411
411
  }
412
412
  sizeFile(e, t = "byte") {
413
- return M(() => this.intl.value.sizeFile(z(e), t));
413
+ return N(() => this.intl.value.sizeFile(B(e), t));
414
414
  }
415
415
  percent(e, t) {
416
- return M(() => this.intl.value.percent(z(e), t));
416
+ return N(() => this.intl.value.percent(B(e), t));
417
417
  }
418
418
  percentBy100(e, t) {
419
- return M(() => this.intl.value.percentBy100(z(e), t));
419
+ return N(() => this.intl.value.percentBy100(B(e), t));
420
420
  }
421
421
  plural(e, t, n, r) {
422
- return M(() => this.intl.value.plural(z(e), t, n, r));
422
+ return N(() => this.intl.value.plural(B(e), t, n, r));
423
423
  }
424
424
  date(e, t, n, r) {
425
- return M(() => this.intl.value.date(z(e), t, n, r));
425
+ return N(() => this.intl.value.date(B(e), t, n, r));
426
426
  }
427
427
  relative(e, t, n) {
428
- return M(() => this.intl.value.relative(z(e), t, n));
428
+ return N(() => this.intl.value.relative(B(e), t, n));
429
429
  }
430
430
  relativeLimit(e, t, n, r, i, a, o) {
431
- return M(() => this.intl.value.relativeLimit(z(e), t, n, r, i, a, o));
431
+ return N(() => this.intl.value.relativeLimit(B(e), t, n, r, i, a, o));
432
432
  }
433
433
  relativeByValue(e, t, n) {
434
- return M(() => this.intl.value.relativeByValue(z(e), t, n));
434
+ return N(() => this.intl.value.relativeByValue(B(e), t, n));
435
435
  }
436
436
  month(e, t) {
437
- return M(() => this.intl.value.month(z(e), t));
437
+ return N(() => this.intl.value.month(B(e), t));
438
438
  }
439
439
  months(e) {
440
- return M(() => this.intl.value.months(e));
440
+ return N(() => this.intl.value.months(e));
441
441
  }
442
442
  weekday(e, t) {
443
- return M(() => this.intl.value.weekday(z(e), t));
443
+ return N(() => this.intl.value.weekday(B(e), t));
444
444
  }
445
445
  weekdays(e) {
446
- return M(() => this.intl.value.weekdays(e));
446
+ return N(() => this.intl.value.weekdays(e));
447
447
  }
448
448
  time(e) {
449
- return M(() => this.intl.value.time(z(e)));
449
+ return N(() => this.intl.value.time(B(e)));
450
450
  }
451
451
  sort(e, t = (e, t) => [e, t]) {
452
- return M(() => this.intl.value.sort([...z(e)], t));
452
+ return N(() => this.intl.value.sort([...B(e)], t));
453
453
  }
454
- }, Fe = class e {
454
+ }, Pe = class e {
455
455
  constructor(e, t, n, r, i, a, o, s, c, l = 0, u = 9999999, d) {
456
- R(this, "subList", {}), R(this, "data", M(() => S(z(this.list) || [], (e, t) => this.initItem(t, e)))), R(this, "liteData", M(() => {
456
+ z(this, "subList", {}), z(this, "data", N(() => S(B(this.list) || [], (e, t) => this.initItem(t, e)))), z(this, "liteData", N(() => {
457
457
  if (this.isLite()) {
458
458
  let e = [];
459
459
  for (let t of this.data.value) {
@@ -470,11 +470,11 @@ var Pe = class {
470
470
  return e;
471
471
  }
472
472
  return this.data.value;
473
- })), R(this, "fullData", M(() => {
473
+ })), z(this, "fullData", N(() => {
474
474
  let e = this.getFocus(), t = this.getHighlight(), n = this.getSelected();
475
475
  return S(this.data.value, (r) => {
476
476
  var i, a;
477
- let o = k(r.index, n);
477
+ let o = A(r.index, n);
478
478
  return {
479
479
  ...r,
480
480
  focus: e === r.index,
@@ -484,7 +484,7 @@ var Pe = class {
484
484
  disabled: (a = r.disabled) == null ? !o && r.type === "item" && this.isSelectedMax.value : a
485
485
  };
486
486
  });
487
- })), R(this, "map", M(() => {
487
+ })), z(this, "map", N(() => {
488
488
  let e = [];
489
489
  return this.data.value.forEach((t) => {
490
490
  switch (t.type) {
@@ -497,7 +497,7 @@ var Pe = class {
497
497
  break;
498
498
  }
499
499
  }), e;
500
- })), R(this, "mapItems", M(() => this.map.value.filter((e) => e.type === "item"))), R(this, "items", M(() => this.map.value.filter((e) => e.type === "item" || e.type === "group" || e.type === "menu"))), R(this, "highlightFirstItem", M(() => {
500
+ })), z(this, "mapItems", N(() => this.map.value.filter((e) => e.type === "item"))), z(this, "items", N(() => this.map.value.filter((e) => e.type === "item" || e.type === "group" || e.type === "menu"))), z(this, "highlightFirstItem", N(() => {
501
501
  let e = this.getHighlight();
502
502
  if (e && e.length >= this.getHighlightLengthStart()) {
503
503
  let t = T(e, "i");
@@ -507,22 +507,22 @@ var Pe = class {
507
507
  });
508
508
  }
509
509
  return -1;
510
- })), R(this, "isSelected", M(() => {
510
+ })), z(this, "isSelected", N(() => {
511
511
  let e = this.getSelected();
512
- return !!e && this.mapItems.value.findIndex((t) => k(t.index, e)) !== -1;
513
- })), R(this, "isSelectedMin", M(() => {
514
- let e = Number(z(this.min) || 0);
512
+ return !!e && this.mapItems.value.findIndex((t) => A(t.index, e)) !== -1;
513
+ })), z(this, "isSelectedMin", N(() => {
514
+ let e = Number(B(this.min) || 0);
515
515
  return e > 0 ? this.selectedListInGroup.value.length >= e : !1;
516
- })), R(this, "isSelectedMax", M(() => {
517
- let e = Number(z(this.max) || 9999999);
516
+ })), z(this, "isSelectedMax", N(() => {
517
+ let e = Number(B(this.max) || 9999999);
518
518
  return e > 0 ? this.selectedListInGroup.value.length >= e : !1;
519
- })), R(this, "selectedList", M(() => {
519
+ })), z(this, "selectedList", N(() => {
520
520
  let e = this.getSelected();
521
- return e && this.isSelected.value ? this.mapItems.value.filter((t) => k(t.index, e)) : [];
522
- })), R(this, "selectedListInGroup", M(() => {
521
+ return e && this.isSelected.value ? this.mapItems.value.filter((t) => A(t.index, e)) : [];
522
+ })), z(this, "selectedListInGroup", N(() => {
523
523
  let e = this.getSelected();
524
- return e && this.isSelected.value ? this.data.value.filter((t) => k(t.index, e)) : [];
525
- })), R(this, "selectedNames", M(() => C(this.selectedList.value, "label"))), R(this, "selectedValues", M(() => C(this.selectedList.value, "value"))), this.list = e, this.focus = t, this.highlight = n, this.highlightLengthStart = r, this.filterMode = i, this.selected = a, this.keyValue = o, this.keyLabel = s, this.lite = c, this.min = l, this.max = u, this.parent = d, N(e) && I(e, () => {
524
+ return e && this.isSelected.value ? this.data.value.filter((t) => A(t.index, e)) : [];
525
+ })), z(this, "selectedNames", N(() => C(this.selectedList.value, "label"))), z(this, "selectedValues", N(() => C(this.selectedList.value, "value"))), this.list = e, this.focus = t, this.highlight = n, this.highlightLengthStart = r, this.filterMode = i, this.selected = a, this.keyValue = o, this.keyLabel = s, this.lite = c, this.min = l, this.max = u, this.parent = d, P(e) && L(e, () => {
526
526
  this.subList = {};
527
527
  });
528
528
  }
@@ -633,10 +633,10 @@ var Pe = class {
633
633
  return t.parent === e && this.isItem(t);
634
634
  }
635
635
  getIndex(e, t, n, r) {
636
- return e && !D(e) ? e : t && !D(t) ? t : n && r;
636
+ return e && !O(e) ? e : t && !O(t) ? t : n && r;
637
637
  }
638
638
  initItem(e, t) {
639
- if (O(t)) {
639
+ if (k(t)) {
640
640
  var n, r, i, a, o, s;
641
641
  let c = t == null ? void 0 : t[(n = (r = this.keyValue) == null ? void 0 : r.value) == null ? "value" : n], l = (i = t == null ? void 0 : t[(a = (o = this.keyLabel) == null ? void 0 : o.value) == null ? "label" : a]) == null ? c : i, u = this.getIndex(t == null ? void 0 : t.index, c, e, l);
642
642
  return {
@@ -656,9 +656,9 @@ var Pe = class {
656
656
  value: e
657
657
  };
658
658
  }
659
- }, K = "__ui:router-item-ref__", q = class {
659
+ }, Fe = "__ui:router-item-ref__", q = class {
660
660
  static get() {
661
- return v.get(K);
661
+ return v.get(Fe);
662
662
  }
663
663
  static getLink(e, t, n) {
664
664
  var r;
@@ -680,17 +680,17 @@ var Pe = class {
680
680
  t && t.push(e).then();
681
681
  }
682
682
  static set(e) {
683
- v.set(K, () => e);
683
+ v.set(Fe, () => e);
684
684
  }
685
685
  static setOneTime(e) {
686
686
  this.get() || this.set(e);
687
687
  }
688
688
  static rawToHref(e) {
689
- return O(e) && "name" in e && A(e == null ? void 0 : e.name) ? this.getHref(e.name) : {};
689
+ return k(e) && "name" in e && j(e == null ? void 0 : e.name) ? this.getHref(e.name) : {};
690
690
  }
691
691
  }, Ie = class {
692
692
  constructor() {
693
- R(this, "item", P()), R(this, "width", P(0)), R(this, "is", M(() => this.item.value !== void 0)), E() && (g.is().then((e) => {
693
+ z(this, "item", F()), z(this, "width", F(0)), z(this, "is", N(() => this.item.value !== void 0)), D() && (g.is().then((e) => {
694
694
  this.item.value = e;
695
695
  }), g.get().then((e) => {
696
696
  this.width.value = e;
@@ -698,14 +698,14 @@ var Pe = class {
698
698
  }
699
699
  }, J = (e) => typeof e == "string" ? { method: e } : e || {}, Y;
700
700
  function X(t, n, r = !0, i, a, o, s = !0, c = e.getItem()) {
701
- let l = P(), u = H(J(n)), d = P(!1), f = P(!1), p = P(), m, h = !0, g, _ = () => {
702
- let e = z(t);
701
+ let l = F(), u = U(J(n)), d = F(!1), f = F(!1), p = F(), m, h = !0, g, _ = () => {
702
+ let e = B(t);
703
703
  return !!((!i || i.value) && e);
704
704
  }, v = () => ({
705
- path: z(t),
705
+ path: B(t),
706
706
  ...u.value
707
707
  }), y = () => {
708
- if (E() && _()) {
708
+ if (D() && _()) {
709
709
  let e = c.getResponse().emulatorAsync(v());
710
710
  e && (l.value = e);
711
711
  }
@@ -727,33 +727,33 @@ function X(t, n, r = !0, i, a, o, s = !0, c = e.getItem()) {
727
727
  g == null || g(), l.value = void 0, h = !0;
728
728
  }, S = () => {
729
729
  if (h) {
730
- if (h = !1, !E()) return;
731
- y(), l.value === void 0 && b().then(), s ? w() : U.run(() => w());
730
+ if (h = !1, !D()) return;
731
+ y(), l.value === void 0 && b().then(), s ? w() : W.run(() => w());
732
732
  }
733
733
  };
734
- s && ce() && pe(() => x());
734
+ s && se() && fe(() => x());
735
735
  let C = () => {
736
- E() || fe(async () => {
736
+ D() || de(async () => {
737
737
  h = !1, await b();
738
738
  });
739
739
  }, w = () => {
740
740
  let e = [];
741
- r && e.push(u), N(t) && e.push(t), i && e.push(i), Y && e.push(Y), e.length > 0 && (g = I(e, async () => {
741
+ r && e.push(u), P(t) && e.push(t), i && e.push(i), Y && e.push(Y), e.length > 0 && (g = L(e, async () => {
742
742
  d.value || await b();
743
743
  }));
744
- }, T = M(() => (S(), l.value)), ee = M(() => Array.isArray(l.value) ? l.value.length : +!!l.value), te = M(() => l.value === void 0);
744
+ }, T = N(() => (S(), l.value)), ee = N(() => Array.isArray(l.value) ? l.value.length : +!!l.value), E = N(() => l.value === void 0);
745
745
  return {
746
746
  data: T,
747
747
  get item() {
748
748
  return S(), l;
749
749
  },
750
- isResponseContractValid: M(() => {
750
+ isResponseContractValid: N(() => {
751
751
  var e;
752
752
  return ((e = p.value) == null ? void 0 : e.status) === "success";
753
753
  }),
754
- responseValidationResult: M(() => p.value),
754
+ responseValidationResult: N(() => p.value),
755
755
  length: ee,
756
- starting: te,
756
+ starting: E,
757
757
  loading: d,
758
758
  reading: f,
759
759
  isStarting() {
@@ -787,7 +787,7 @@ function Re(t, n, r = !0, i, a, o, s = !0, c = e.getItem()) {
787
787
  //#endregion
788
788
  //#region src/composables/ref/useApiRequest.ts
789
789
  function Z(n, r = t.post, i, a, o = !0, s, c = e.getItem()) {
790
- let l = P(!1), u = H(J(s));
790
+ let l = F(!1), u = U(J(s));
791
791
  return {
792
792
  loading: l,
793
793
  async send(e) {
@@ -795,7 +795,7 @@ function Z(n, r = t.post, i, a, o = !0, s, c = e.getItem()) {
795
795
  let t;
796
796
  try {
797
797
  if (t = await c.request({
798
- path: z(n),
798
+ path: B(n),
799
799
  method: r,
800
800
  request: e,
801
801
  toData: o,
@@ -836,17 +836,17 @@ function He(e, n, r, i = !0, a, o) {
836
836
  function Ue(e, t) {
837
837
  let n = new c(t);
838
838
  return {
839
- listFormat: M(() => n.setList(e.value).to()),
840
- length: M(() => n.setList(e.value).length())
839
+ listFormat: N(() => n.setList(e.value).to()),
840
+ length: N(() => n.setList(e.value).length())
841
841
  };
842
842
  }
843
843
  //#endregion
844
844
  //#region src/composables/ref/useSearchValueRef.ts
845
845
  function We(e, t) {
846
- let n = t == null ? P("") : t, r = P(n.value), i = P(!1), a;
847
- return I(n, (t, o, s) => {
846
+ let n = t == null ? F("") : t, r = F(n.value), i = F(!1), a;
847
+ return L(n, (t, o, s) => {
848
848
  let c = e.getOptions().getDelay();
849
- c && E() ? (i.value = !0, a = setTimeout(() => {
849
+ c && D() ? (i.value = !0, a = setTimeout(() => {
850
850
  a = void 0, r.value = n.value, i.value = !1;
851
851
  }, c), s(() => {
852
852
  a && clearTimeout(a);
@@ -860,20 +860,20 @@ function We(e, t) {
860
860
  //#endregion
861
861
  //#region src/composables/ref/useSearchRef.ts
862
862
  function Ge(e, t, n, r) {
863
- let i = new _(void 0, t, void 0, r), { search: a, searchDelay: o, loading: s } = We(i, n), c = () => z(b(e)) || [], l = M(() => i.setValue(o.value).getItem().isSearch()), u = M(() => i.setList(c()).setValue(o.value).to());
863
+ let i = new _(void 0, t, void 0, r), { search: a, searchDelay: o, loading: s } = We(i, n), c = () => B(b(e)) || [], l = N(() => i.setValue(o.value).getItem().isSearch()), u = N(() => i.setList(c()).setValue(o.value).to());
864
864
  return {
865
865
  isSearch: l,
866
866
  search: a,
867
867
  loading: s,
868
868
  listSearch: u,
869
- length: M(() => u.value.length)
869
+ length: N(() => u.value.length)
870
870
  };
871
871
  }
872
872
  //#endregion
873
873
  //#region src/composables/ref/useApiManagementRef.ts
874
874
  function Ke(e, t, n, r, i, a, o, s) {
875
- let { path: c, options: l, reactivity: u, conditions: d, transformation: f, validateResponseContract: p, typeData: m, unmounted: h, skeleton: g } = e, _, v, y, b, S, C = X(c, l, u, d, f, p, h, s), w = M(() => m === void 0 ? !0 : C.isStarting() ? !1 : ne(m) ? m(C.data.value) : C.data.value instanceof m), T = M(() => C.isStarting() && g ? g() : C.data.value);
876
- if (t && (_ = Ue(T, t)), n && (v = Ge(M(() => {
875
+ let { path: c, options: l, reactivity: u, conditions: d, transformation: f, validateResponseContract: p, typeData: m, unmounted: h, skeleton: g } = e, _, v, y, b, S, C = X(c, l, u, d, f, p, h, s), w = N(() => m === void 0 ? !0 : C.isStarting() ? !1 : te(m) ? m(C.data.value) : C.data.value instanceof m), T = N(() => C.isStarting() && g ? g() : C.data.value);
876
+ if (t && (_ = Ue(T, t)), n && (v = Ge(N(() => {
877
877
  var e;
878
878
  let t = (e = _ == null ? void 0 : _.listFormat.value) == null ? C.data.value : e;
879
879
  if (Array.isArray(t)) return t;
@@ -881,19 +881,22 @@ function Ke(e, t, n, r, i, a, o, s) {
881
881
  let e = (e) => {
882
882
  o == null || o(), ee(e) && C.reset().then();
883
883
  }, t = (t) => async (n) => {
884
- ne(t) && await x(t(n)), e(n);
884
+ te(t) && await x(t(n)), e(n);
885
885
  };
886
886
  r && (y = Ve(r.path, t(r.action), r.transformation, r.toData, r.options, s)), i && (b = He(i.path, t(i.action), i.transformation, i.toData, i.options, s)), a && (S = ze(a.path, t(a.action), a.transformation, a.toData, a.options, s));
887
887
  }
888
+ let E = N(() => {
889
+ if (w.value) {
890
+ if (v && Array.isArray(C.data.value)) return v.listSearch.value;
891
+ if (_) return _.listFormat.value;
892
+ }
893
+ return T.value;
894
+ });
888
895
  return {
889
896
  isValid: w,
890
- list: M(() => {
891
- if (w.value) {
892
- if (v && Array.isArray(C.data.value)) return v.listSearch.value;
893
- if (_) return _.listFormat.value;
894
- }
895
- return T.value;
896
- }),
897
+ isResponseContractValid: C.isResponseContractValid,
898
+ responseValidationResult: C.responseValidationResult,
899
+ list: E,
897
900
  get data() {
898
901
  return C.data;
899
902
  },
@@ -931,13 +934,13 @@ var Je = () => v.get("__ui:broadcast-value-ref__", () => ({}));
931
934
  function Ye(e, t) {
932
935
  let r = `broadcast--${e}`, i = Je();
933
936
  if (r in i) return i[r];
934
- let a = P(b(t));
935
- if (E()) {
937
+ let a = F(b(t));
938
+ if (D()) {
936
939
  let e = new n(r, (e) => {
937
940
  a.value !== e.data.message && (a.value = e.data.message);
938
941
  });
939
- U.run(() => {
940
- I(a, (t) => e.post({ message: t }));
942
+ W.run(() => {
943
+ L(a, (t) => e.post({ message: t }));
941
944
  });
942
945
  }
943
946
  return i[r] = a, a;
@@ -949,8 +952,8 @@ function Ze(e, t, n) {
949
952
  let i = Xe();
950
953
  if (e in i) return i[e];
951
954
  let a = new r(e), o = Ye(`__cookie:${e}`, a.get(t, n));
952
- return U.run(() => {
953
- I(o, (e) => {
955
+ return W.run(() => {
956
+ L(o, (e) => {
954
957
  a.set(e, n);
955
958
  });
956
959
  }), i[e] = o, o;
@@ -958,7 +961,7 @@ function Ze(e, t, n) {
958
961
  //#endregion
959
962
  //#region src/composables/ref/useGeoIntlRef.ts
960
963
  function Qe() {
961
- return new Pe();
964
+ return new Ne();
962
965
  }
963
966
  //#endregion
964
967
  //#region src/composables/ref/useHashRef.ts
@@ -966,9 +969,9 @@ var $e = () => v.get("__ui:hash-ref__", () => ({}));
966
969
  function et(e, t) {
967
970
  let n = $e();
968
971
  if (e in n) return n[e];
969
- let r = F(f.get(e, t));
970
- return E() && (U.run(() => {
971
- I(r, (t) => f.set(e, t));
972
+ let r = I(f.get(e, t));
973
+ return D() && (W.run(() => {
974
+ L(r, (t) => f.set(e, t));
972
975
  }), f.addWatch(e, (e) => {
973
976
  r.value = e;
974
977
  })), n[e] = r, r;
@@ -976,7 +979,7 @@ function et(e, t) {
976
979
  //#endregion
977
980
  //#region src/composables/ref/useLazyRef.ts
978
981
  var tt = (e = { rootMargin: "128px 0px" }) => {
979
- let t = {}, n = E() && "IntersectionObserver" in window ? new IntersectionObserver((e) => {
982
+ let t = {}, n = D() && "IntersectionObserver" in window ? new IntersectionObserver((e) => {
980
983
  e.forEach((e) => {
981
984
  let n = w(e.target);
982
985
  if (n in t) {
@@ -999,16 +1002,16 @@ var tt = (e = { rootMargin: "128px 0px" }) => {
999
1002
  return t[w(e)];
1000
1003
  },
1001
1004
  addLazyItem(e) {
1002
- let i = F(!n);
1005
+ let i = I(!n);
1003
1006
  if (n) {
1004
1007
  let a;
1005
- a = I(e, (o, s) => {
1008
+ a = L(e, (o, s) => {
1006
1009
  if (s && r(s), e.value) {
1007
1010
  let r = w(e.value);
1008
1011
  t[r] = {
1009
1012
  status: i,
1010
- ratio: F(0),
1011
- entry: F(void 0),
1013
+ ratio: I(0),
1014
+ entry: I(void 0),
1012
1015
  stopWatch: () => a == null ? void 0 : a()
1013
1016
  }, n.observe(e.value);
1014
1017
  } else r(e.value);
@@ -1039,8 +1042,8 @@ var tt = (e = { rootMargin: "128px 0px" }) => {
1039
1042
  //#endregion
1040
1043
  //#region src/composables/ref/useLoadingRef.ts
1041
1044
  function at() {
1042
- let e = F(m.is());
1043
- return E() && m.registrationEvent(({ detail: t }) => {
1045
+ let e = I(m.is());
1046
+ return D() && m.registrationEvent(({ detail: t }) => {
1044
1047
  e.value = t.loading;
1045
1048
  }), e;
1046
1049
  }
@@ -1048,7 +1051,7 @@ function at() {
1048
1051
  //#region src/functions/executeUse.ts
1049
1052
  var Q = /* @__PURE__ */ function(e) {
1050
1053
  return e.global = "global", e.provide = "provide", e.local = "local", e;
1051
- }({}), ot = 1, st = re(1e5, 999999), ct = () => `__execute_use${st}::${ot++}`, lt = () => v.get("__ui:execute-use-global__", () => []);
1054
+ }({}), ot = 1, st = ne(1e5, 999999), ct = () => `__execute_use${st}::${ot++}`, lt = () => v.get("__ui:execute-use-global__", () => []);
1052
1055
  function $(e, t = Q.provide) {
1053
1056
  let n = ct(), r, i = (t) => {
1054
1057
  let n = Object.freeze(e(...t));
@@ -1060,7 +1063,7 @@ function $(e, t = Q.provide) {
1060
1063
  };
1061
1064
  }, a = (e) => {
1062
1065
  let t = Object.freeze(i(e));
1063
- return me(n, t), t;
1066
+ return pe(n, t), t;
1064
1067
  }, o = (e) => {
1065
1068
  let t = i(e);
1066
1069
  return Object.freeze({
@@ -1069,7 +1072,7 @@ function $(e, t = Q.provide) {
1069
1072
  r = void 0;
1070
1073
  }
1071
1074
  });
1072
- }, s = (...e) => t === Q.provide ? de(n, void 0) || a(e) : (r || U.run(() => {
1075
+ }, s = (...e) => t === Q.provide ? ue(n, void 0) || a(e) : (r || W.run(() => {
1073
1076
  r = o(e);
1074
1077
  }), r);
1075
1078
  return t === Q.global && lt().push(s), s;
@@ -1089,7 +1092,7 @@ function pt() {
1089
1092
  //#endregion
1090
1093
  //#region src/composables/ref/useMeta.ts
1091
1094
  var mt = ft(() => {
1092
- let e = h, t = P(e.getTitle()), n = P(e.getKeywords()), r = P(e.getDescription()), i = P(e.getImage()), a = P(e.getCanonical()), o = P(e.getRobots()), s = P(e.getAuthor()), c = P(e.getSiteName()), l = () => e.html(), u = (e) => {
1095
+ let e = h, t = F(e.getTitle()), n = F(e.getKeywords()), r = F(e.getDescription()), i = F(e.getImage()), a = F(e.getCanonical()), o = F(e.getRobots()), s = F(e.getAuthor()), c = F(e.getSiteName()), l = () => e.html(), u = (e) => {
1093
1096
  t.value = e, x();
1094
1097
  }, d = (e) => {
1095
1098
  n.value = e, x();
@@ -1110,9 +1113,9 @@ var mt = ft(() => {
1110
1113
  }, b = () => {
1111
1114
  e.setTitle(t.value), e.setKeywords(n.value), e.setDescription(r.value), e.setImage(i.value), e.setCanonical(a.value), e.setRobots(o.value), e.setAuthor(s.value), e.setSiteName(c.value);
1112
1115
  }, x = () => {
1113
- E() || b();
1116
+ D() || b();
1114
1117
  };
1115
- return I([
1118
+ return L([
1116
1119
  t,
1117
1120
  n,
1118
1121
  r,
@@ -1147,20 +1150,20 @@ var mt = ft(() => {
1147
1150
  };
1148
1151
  }), ht = () => mt(), gt = (e, t, n = !0) => {
1149
1152
  var r;
1150
- let i = N(t) ? t : P(t || ((r = e.value) == null || (r = r[0]) == null ? void 0 : r.value) || ""), a = () => o(i.value), o = (t) => {
1153
+ let i = P(t) ? t : F(t || ((r = e.value) == null || (r = r[0]) == null ? void 0 : r.value) || ""), a = () => o(i.value), o = (t) => {
1151
1154
  var n;
1152
1155
  return (n = e.value) == null ? void 0 : n.find((e) => e.value === t);
1153
1156
  }, s = (e) => {
1154
1157
  e && e !== i.value && o(e) && (i.value = e, q.push({ name: e }));
1155
1158
  };
1156
1159
  return {
1157
- item: M(() => a()),
1160
+ item: N(() => a()),
1158
1161
  selected: i,
1159
- label: M(() => {
1162
+ label: N(() => {
1160
1163
  var e;
1161
1164
  return ((e = a()) == null ? void 0 : e.label) || "";
1162
1165
  }),
1163
- list: M(() => e.value ? S(e.value, (e) => n && !("to" in e) ? {
1166
+ list: N(() => e.value ? S(e.value, (e) => n && !("to" in e) ? {
1164
1167
  ...e,
1165
1168
  to: { name: e.value }
1166
1169
  } : e) : []),
@@ -1174,9 +1177,9 @@ var mt = ft(() => {
1174
1177
  function vt(e, t) {
1175
1178
  let n = _t();
1176
1179
  if (e in n) return n[e];
1177
- let r = new i(e, !0), a = P(r.get(t));
1178
- return U.run(() => {
1179
- I(a, (e) => r.set(e));
1180
+ let r = new i(e, !0), a = F(r.get(t));
1181
+ return W.run(() => {
1182
+ L(a, (e) => r.set(e));
1180
1183
  }), n[e] = a, a;
1181
1184
  }
1182
1185
  //#endregion
@@ -1185,21 +1188,21 @@ var yt = () => v.get("__ui:storage-ref__", () => ({}));
1185
1188
  function bt(e, t, n) {
1186
1189
  let r = yt();
1187
1190
  if (e in r) return r[e];
1188
- let a = new i(e), o = P(a.get(t, n));
1189
- return U.run(() => {
1190
- I(o, (e) => a.set(e));
1191
- }), E() && window.addEventListener("storage", () => {
1191
+ let a = new i(e), o = F(a.get(t, n));
1192
+ return W.run(() => {
1193
+ L(o, (e) => a.set(e));
1194
+ }), D() && window.addEventListener("storage", () => {
1192
1195
  a.update(), o.value = a.get();
1193
1196
  }), r[e] = o, o;
1194
1197
  }
1195
1198
  //#endregion
1196
1199
  //#region src/composables/ref/useTranslateRef.ts
1197
1200
  function xt(e, t = y.getItem()) {
1198
- let n = F(t.getListSync(e, !0)), r = async () => {
1201
+ let n = I(t.getListSync(e, !0)), r = async () => {
1199
1202
  n.value = { ...await t.getList(e) };
1200
1203
  };
1201
- if (E()) {
1202
- I(G.getLanguage(), r);
1204
+ if (D()) {
1205
+ L(K.getLanguage(), r);
1203
1206
  for (let e in n.value) if (n.value[e] === e || n.value[e] === " ") {
1204
1207
  r().then();
1205
1208
  break;
@@ -1211,19 +1214,19 @@ var St = (e) => xt(e);
1211
1214
  //#endregion
1212
1215
  //#region src/functions/computedAsync.ts
1213
1216
  function Ct(e, t, n, r) {
1214
- let i = F(b(t)), a = !0, o = async () => {
1217
+ let i = I(b(t)), a = !0, o = async () => {
1215
1218
  let t = await x(e);
1216
1219
  t !== n && (i.value = t);
1217
1220
  }, s = () => {
1218
- a && (a = !1, E() ? ye(o) : o().then());
1221
+ a && (a = !1, D() ? ve(o) : o().then());
1219
1222
  };
1220
- return M(() => (s(), i.value), r);
1223
+ return N(() => (s(), i.value), r);
1221
1224
  }
1222
1225
  //#endregion
1223
1226
  //#region src/functions/computedByLanguage.ts
1224
1227
  function wt(e, t = () => void 0, n, r) {
1225
- return M(() => {
1226
- if (G.get().value && (n === void 0 || n())) {
1228
+ return N(() => {
1229
+ if (K.get().value && (n === void 0 || n())) {
1227
1230
  let t = e();
1228
1231
  if (t !== void 0) return t;
1229
1232
  }
@@ -1233,12 +1236,12 @@ function wt(e, t = () => void 0, n, r) {
1233
1236
  //#endregion
1234
1237
  //#region src/functions/computedEternity.ts
1235
1238
  function Tt(e, t) {
1236
- return oe((n, r) => {
1237
- let i = F(b(t)), a = !1, o = async () => {
1239
+ return ae((n, r) => {
1240
+ let i = I(b(t)), a = !1, o = async () => {
1238
1241
  i.value = await x(e), r();
1239
1242
  }, s = () => {
1240
- a || (a = !0, E() ? U.run(() => {
1241
- ye(async () => await o());
1243
+ a || (a = !0, D() ? W.run(() => {
1244
+ ve(async () => await o());
1242
1245
  }) : o().then());
1243
1246
  };
1244
1247
  return {
@@ -1264,8 +1267,8 @@ var Et = { install(t, n = {}) {
1264
1267
  //#endregion
1265
1268
  //#region src/functions/getInject.ts
1266
1269
  function Dt(e) {
1267
- if (ue()) {
1268
- let t = de(e);
1270
+ if (le()) {
1271
+ let t = ue(e);
1269
1272
  if (t) return t;
1270
1273
  }
1271
1274
  }
@@ -1273,12 +1276,12 @@ function Dt(e) {
1273
1276
  //#region src/functions/render/getBind.ts
1274
1277
  function Ot(e, t = {}, n = "value", r = !1) {
1275
1278
  let i = typeof t == "string", a = i ? t : n, o = i ? {} : t;
1276
- return e ? e && O(e) && (a in e || r) ? B(o, e) : B(o, { [a]: e }) : i ? {} : { ...o };
1279
+ return e ? e && k(e) && (a in e || r) ? V(o, e) : V(o, { [a]: e }) : i ? {} : { ...o };
1277
1280
  }
1278
1281
  //#endregion
1279
1282
  //#region src/functions/ref/getBindRef.ts
1280
1283
  function kt(e, t = {}, n = "value") {
1281
- return M(() => Ot(z(e), z(t), n));
1284
+ return N(() => Ot(B(e), B(t), n));
1282
1285
  }
1283
1286
  //#endregion
1284
1287
  //#region src/functions/ref/setRef.ts
@@ -1286,4 +1289,4 @@ function At(e, t) {
1286
1289
  e.value !== t && (e.value = t);
1287
1290
  }
1288
1291
  //#endregion
1289
- export { je as DatetimeRef, Ce as DesignAbstract, we as DesignAsyncAbstract, Se as DesignChanged, ke as DesignComp, V as DesignComponents, Ae as DesignConstructorAbstract, U as EffectScopeGlobal, Me as EventRef, Q as ExecuteUseType, Ne as GeoFlagRef, Pe as GeoIntlRef, G as GeoRef, Fe as ListDataRef, q as RouterItemRef, Ie as ScrollbarWidthRef, Ct as computedAsync, wt as computedByLanguage, Tt as computedEternity, Et as dxtFunctionalPlugin, $ as executeUse, ut as executeUseGlobal, pt as executeUseGlobalInit, ft as executeUseLocal, dt as executeUseProvide, Ot as getBind, kt as getBindRef, Te as getClassName, Ee as getIndexForRender, Dt as getInject, J as getOptions, z as getRef, De as render, Le as setApiRefGlobalConditions, At as setRef, St as t, B as toBind, Oe as toBinds, H as toRefItem, Re as useApiAsyncRef, ze as useApiDelete, Be as useApiGet, qe as useApiManagementAsyncRef, Ke as useApiManagementRef, Ve as useApiPost, He as useApiPut, X as useApiRef, Z as useApiRequest, Ye as useBroadcastValueRef, Ze as useCookieRef, Ue as useFormattersRef, Qe as useGeoIntlRef, et as useHashRef, it as useLazyItemByMarginRef, tt as useLazyRef, at as useLoadingRef, ht as useMeta, gt as useRouterList, Ge as useSearchRef, We as useSearchValueRef, vt as useSessionRef, bt as useStorageRef, xt as useTranslateRef };
1292
+ export { Ae as DatetimeRef, Se as DesignAbstract, Ce as DesignAsyncAbstract, xe as DesignChanged, Oe as DesignComp, H as DesignComponents, ke as DesignConstructorAbstract, W as EffectScopeGlobal, je as EventRef, Q as ExecuteUseType, Me as GeoFlagRef, Ne as GeoIntlRef, K as GeoRef, Pe as ListDataRef, q as RouterItemRef, Ie as ScrollbarWidthRef, Ct as computedAsync, wt as computedByLanguage, Tt as computedEternity, Et as dxtFunctionalPlugin, $ as executeUse, ut as executeUseGlobal, pt as executeUseGlobalInit, ft as executeUseLocal, dt as executeUseProvide, Ot as getBind, kt as getBindRef, we as getClassName, Te as getIndexForRender, Dt as getInject, J as getOptions, B as getRef, Ee as render, Le as setApiRefGlobalConditions, At as setRef, St as t, V as toBind, De as toBinds, U as toRefItem, Re as useApiAsyncRef, ze as useApiDelete, Be as useApiGet, qe as useApiManagementAsyncRef, Ke as useApiManagementRef, Ve as useApiPost, He as useApiPut, X as useApiRef, Z as useApiRequest, Ye as useBroadcastValueRef, Ze as useCookieRef, Ue as useFormattersRef, Qe as useGeoIntlRef, et as useHashRef, it as useLazyItemByMarginRef, tt as useLazyRef, at as useLoadingRef, ht as useMeta, gt as useRouterList, Ge as useSearchRef, We as useSearchValueRef, vt as useSessionRef, bt as useStorageRef, xt as useTranslateRef };
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@dxtmisha/functional",
3
3
  "private": false,
4
- "version": "1.11.8",
4
+ "version": "1.11.9",
5
5
  "type": "module",
6
6
  "description": "A comprehensive library of utilities, base classes, and Vue 3 composables for reactive web development. Extends @dxtmisha/functional-basic with Composition API.",
7
7
  "keywords": [