@dxtmisha/functional 1.6.6 → 1.6.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/library.d.ts +36 -227
- package/dist/library.js +191 -154
- package/package.json +2 -2
package/dist/library.d.ts
CHANGED
|
@@ -117,6 +117,14 @@ export declare type ConstrEmit<T extends ConstrItem = ConstrItem> = UnionToInter
|
|
|
117
117
|
/** Extract emit item type from constructor item/ Извлечение типа элемента emit из элемента конструктора */
|
|
118
118
|
export declare type ConstrEmitItem<T extends ConstrItem> = T[keyof T];
|
|
119
119
|
|
|
120
|
+
/**
|
|
121
|
+
* Props for link handling/ Пропсы для обработки ссылок
|
|
122
|
+
*/
|
|
123
|
+
export declare type ConstrHrefProps = {
|
|
124
|
+
/** Hyperlink reference/ Гиперссылка */
|
|
125
|
+
href?: string;
|
|
126
|
+
};
|
|
127
|
+
|
|
120
128
|
/** Generic record type for constructor items/ Дженерик тип записи для элементов конструктора */
|
|
121
129
|
export declare type ConstrItem = Record<string, any>;
|
|
122
130
|
|
|
@@ -1295,14 +1303,14 @@ export declare class ListDataRef {
|
|
|
1295
1303
|
* Возвращает первый элемент с указанным родителем.
|
|
1296
1304
|
* @param parent parent identifier to search for / идентификатор родителя для поиска
|
|
1297
1305
|
*/
|
|
1298
|
-
getFirstItemByParent(parent: string): ListDataItem | undefined;
|
|
1306
|
+
getFirstItemByParent(parent: string | undefined): ListDataItem | undefined;
|
|
1299
1307
|
/**
|
|
1300
1308
|
* Returns the last item with the specified parent.
|
|
1301
1309
|
*
|
|
1302
1310
|
* Возвращает последний элемент с указанным родителем.
|
|
1303
1311
|
* @param parent parent identifier to search for / идентификатор родителя для поиска
|
|
1304
1312
|
*/
|
|
1305
|
-
getLastItemByParent(parent: string): ListDataItem | undefined;
|
|
1313
|
+
getLastItemByParent(parent: string | undefined): ListDataItem | undefined;
|
|
1306
1314
|
/**
|
|
1307
1315
|
* Returns a sublist object for a group item.
|
|
1308
1316
|
*
|
|
@@ -1324,7 +1332,7 @@ export declare class ListDataRef {
|
|
|
1324
1332
|
* @param parent parent identifier to search for / идентификатор родителя для поиска
|
|
1325
1333
|
* @param item List item data/ данные элемента списка
|
|
1326
1334
|
*/
|
|
1327
|
-
protected isInParent(parent: string, item: ListDataItem): boolean;
|
|
1335
|
+
protected isInParent(parent: string | undefined, item: ListDataItem): boolean;
|
|
1328
1336
|
/**
|
|
1329
1337
|
* Returns the index for the list item.
|
|
1330
1338
|
*
|
|
@@ -1442,6 +1450,24 @@ export declare class RouterItemRef {
|
|
|
1442
1450
|
* Получить экземпляр роутера.
|
|
1443
1451
|
*/
|
|
1444
1452
|
static get(): Router | undefined;
|
|
1453
|
+
/**
|
|
1454
|
+
* Returns the link by name.
|
|
1455
|
+
*
|
|
1456
|
+
* Возвращает ссылку по имени.
|
|
1457
|
+
* @param name route name/ имя маршрута
|
|
1458
|
+
* @param params route parameters/ параметры маршрута
|
|
1459
|
+
* @param query route query/ запрос маршрута
|
|
1460
|
+
*/
|
|
1461
|
+
static getLink(name: string, params?: any, query?: any): string | undefined;
|
|
1462
|
+
/**
|
|
1463
|
+
* Returns the link property by name.
|
|
1464
|
+
*
|
|
1465
|
+
* Возвращает свойство ссылки по имени.
|
|
1466
|
+
* @param name route name/ имя маршрута
|
|
1467
|
+
* @param params route parameters/ параметры маршрута
|
|
1468
|
+
* @param query route query/ запрос маршрута
|
|
1469
|
+
*/
|
|
1470
|
+
static getHref(name?: string, params?: any, query?: any): ConstrHrefProps;
|
|
1445
1471
|
/**
|
|
1446
1472
|
* Site path change.
|
|
1447
1473
|
*
|
|
@@ -1463,6 +1489,13 @@ export declare class RouterItemRef {
|
|
|
1463
1489
|
* @param router router instance/ экземпляр роутера
|
|
1464
1490
|
*/
|
|
1465
1491
|
static setOneTime(router: Router): void;
|
|
1492
|
+
/**
|
|
1493
|
+
* Converts the raw route location to href properties.
|
|
1494
|
+
*
|
|
1495
|
+
* Преобразует необработанное местоположение маршрута в свойства href.
|
|
1496
|
+
* @param to raw route location/ необработанное местоположение маршрута
|
|
1497
|
+
*/
|
|
1498
|
+
static rawToHref(to?: string | RouteLocationRaw): ConstrHrefProps;
|
|
1466
1499
|
}
|
|
1467
1500
|
|
|
1468
1501
|
/**
|
|
@@ -1724,227 +1757,3 @@ export declare function useTranslateRef<T extends (string | string[])[]>(names:
|
|
|
1724
1757
|
export * from "@dxtmisha/functional-basic";
|
|
1725
1758
|
|
|
1726
1759
|
export { }
|
|
1727
|
-
|
|
1728
|
-
|
|
1729
|
-
|
|
1730
|
-
declare module '@vue/reactivity' {
|
|
1731
|
-
interface RefUnwrapBailTypes {
|
|
1732
|
-
runtimeCoreBailTypes: VNode | {
|
|
1733
|
-
$: ComponentInternalInstance;
|
|
1734
|
-
};
|
|
1735
|
-
}
|
|
1736
|
-
}
|
|
1737
|
-
|
|
1738
|
-
|
|
1739
|
-
// Note: this file is auto concatenated to the end of the bundled d.ts during
|
|
1740
|
-
// build.
|
|
1741
|
-
|
|
1742
|
-
declare module '@vue/runtime-core' {
|
|
1743
|
-
export interface GlobalComponents {
|
|
1744
|
-
Teleport: DefineComponent<TeleportProps>
|
|
1745
|
-
Suspense: DefineComponent<SuspenseProps>
|
|
1746
|
-
KeepAlive: DefineComponent<KeepAliveProps>
|
|
1747
|
-
BaseTransition: DefineComponent<BaseTransitionProps>
|
|
1748
|
-
}
|
|
1749
|
-
}
|
|
1750
|
-
|
|
1751
|
-
|
|
1752
|
-
declare module '@vue/reactivity' {
|
|
1753
|
-
interface RefUnwrapBailTypes {
|
|
1754
|
-
runtimeDOMBailTypes: DomType<Node | Window>;
|
|
1755
|
-
}
|
|
1756
|
-
}
|
|
1757
|
-
|
|
1758
|
-
|
|
1759
|
-
declare module '@vue/runtime-core' {
|
|
1760
|
-
interface GlobalComponents {
|
|
1761
|
-
Transition: DefineComponent<TransitionProps>;
|
|
1762
|
-
TransitionGroup: DefineComponent<TransitionGroupProps>;
|
|
1763
|
-
}
|
|
1764
|
-
interface GlobalDirectives {
|
|
1765
|
-
vShow: typeof vShow;
|
|
1766
|
-
vOn: VOnDirective;
|
|
1767
|
-
vBind: VModelDirective;
|
|
1768
|
-
vIf: Directive<any, boolean>;
|
|
1769
|
-
vOnce: Directive;
|
|
1770
|
-
vSlot: Directive;
|
|
1771
|
-
}
|
|
1772
|
-
}
|
|
1773
|
-
|
|
1774
|
-
|
|
1775
|
-
|
|
1776
|
-
|
|
1777
|
-
|
|
1778
|
-
declare module '@vue/reactivity' {
|
|
1779
|
-
interface RefUnwrapBailTypes {
|
|
1780
|
-
runtimeCoreBailTypes: VNode | {
|
|
1781
|
-
$: ComponentInternalInstance;
|
|
1782
|
-
};
|
|
1783
|
-
}
|
|
1784
|
-
}
|
|
1785
|
-
|
|
1786
|
-
|
|
1787
|
-
|
|
1788
|
-
|
|
1789
|
-
// Note: this file is auto concatenated to the end of the bundled d.ts during
|
|
1790
|
-
// build.
|
|
1791
|
-
|
|
1792
|
-
declare module '@vue/runtime-core' {
|
|
1793
|
-
export interface GlobalComponents {
|
|
1794
|
-
Teleport: DefineComponent<TeleportProps>
|
|
1795
|
-
Suspense: DefineComponent<SuspenseProps>
|
|
1796
|
-
KeepAlive: DefineComponent<KeepAliveProps>
|
|
1797
|
-
BaseTransition: DefineComponent<BaseTransitionProps>
|
|
1798
|
-
}
|
|
1799
|
-
}
|
|
1800
|
-
|
|
1801
|
-
|
|
1802
|
-
|
|
1803
|
-
|
|
1804
|
-
declare module '@vue/reactivity' {
|
|
1805
|
-
interface RefUnwrapBailTypes {
|
|
1806
|
-
runtimeDOMBailTypes: DomType<Node | Window>;
|
|
1807
|
-
}
|
|
1808
|
-
}
|
|
1809
|
-
|
|
1810
|
-
|
|
1811
|
-
|
|
1812
|
-
|
|
1813
|
-
declare module '@vue/runtime-core' {
|
|
1814
|
-
interface GlobalComponents {
|
|
1815
|
-
Transition: DefineComponent<TransitionProps>;
|
|
1816
|
-
TransitionGroup: DefineComponent<TransitionGroupProps>;
|
|
1817
|
-
}
|
|
1818
|
-
interface GlobalDirectives {
|
|
1819
|
-
vShow: typeof vShow;
|
|
1820
|
-
vOn: VOnDirective;
|
|
1821
|
-
vBind: VModelDirective;
|
|
1822
|
-
vIf: Directive<any, boolean>;
|
|
1823
|
-
vOnce: Directive;
|
|
1824
|
-
vSlot: Directive;
|
|
1825
|
-
}
|
|
1826
|
-
}
|
|
1827
|
-
|
|
1828
|
-
|
|
1829
|
-
|
|
1830
|
-
|
|
1831
|
-
|
|
1832
|
-
// CSS
|
|
1833
|
-
declare module '*.css' {}
|
|
1834
|
-
|
|
1835
|
-
|
|
1836
|
-
|
|
1837
|
-
|
|
1838
|
-
declare module '*.scss' {}
|
|
1839
|
-
|
|
1840
|
-
|
|
1841
|
-
|
|
1842
|
-
|
|
1843
|
-
declare module '*.sass' {}
|
|
1844
|
-
|
|
1845
|
-
|
|
1846
|
-
|
|
1847
|
-
|
|
1848
|
-
declare module '*.less' {}
|
|
1849
|
-
|
|
1850
|
-
|
|
1851
|
-
|
|
1852
|
-
|
|
1853
|
-
declare module '*.styl' {}
|
|
1854
|
-
|
|
1855
|
-
|
|
1856
|
-
|
|
1857
|
-
|
|
1858
|
-
declare module '*.stylus' {}
|
|
1859
|
-
|
|
1860
|
-
|
|
1861
|
-
|
|
1862
|
-
|
|
1863
|
-
declare module '*.pcss' {}
|
|
1864
|
-
|
|
1865
|
-
|
|
1866
|
-
|
|
1867
|
-
|
|
1868
|
-
declare module '*.sss' {}
|
|
1869
|
-
|
|
1870
|
-
|
|
1871
|
-
//#endregion
|
|
1872
|
-
//#region src/index.d.ts
|
|
1873
|
-
declare module 'vue' {
|
|
1874
|
-
interface ComponentCustomOptions {
|
|
1875
|
-
/**
|
|
1876
|
-
* Guard called when the router is navigating to the route that is rendering
|
|
1877
|
-
* this component from a different route. Differently from `beforeRouteUpdate`
|
|
1878
|
-
* and `beforeRouteLeave`, `beforeRouteEnter` does not have access to the
|
|
1879
|
-
* component instance through `this` because it triggers before the component
|
|
1880
|
-
* is even mounted.
|
|
1881
|
-
*
|
|
1882
|
-
* @param to - RouteLocationRaw we are navigating to
|
|
1883
|
-
* @param from - RouteLocationRaw we are navigating from
|
|
1884
|
-
* @param next - function to validate, cancel or modify (by redirecting) the
|
|
1885
|
-
* navigation
|
|
1886
|
-
*/
|
|
1887
|
-
beforeRouteEnter?: TypesConfig extends Record<'beforeRouteEnter', infer T> ? T : NavigationGuardWithThis<undefined>;
|
|
1888
|
-
/**
|
|
1889
|
-
* Guard called whenever the route that renders this component has changed, but
|
|
1890
|
-
* it is reused for the new route. This allows you to guard for changes in
|
|
1891
|
-
* params, the query or the hash.
|
|
1892
|
-
*
|
|
1893
|
-
* @param to - RouteLocationRaw we are navigating to
|
|
1894
|
-
* @param from - RouteLocationRaw we are navigating from
|
|
1895
|
-
* @param next - function to validate, cancel or modify (by redirecting) the
|
|
1896
|
-
* navigation
|
|
1897
|
-
*/
|
|
1898
|
-
beforeRouteUpdate?: TypesConfig extends Record<'beforeRouteUpdate', infer T> ? T : NavigationGuard;
|
|
1899
|
-
/**
|
|
1900
|
-
* Guard called when the router is navigating away from the current route that
|
|
1901
|
-
* is rendering this component.
|
|
1902
|
-
*
|
|
1903
|
-
* @param to - RouteLocationRaw we are navigating to
|
|
1904
|
-
* @param from - RouteLocationRaw we are navigating from
|
|
1905
|
-
* @param next - function to validate, cancel or modify (by redirecting) the
|
|
1906
|
-
* navigation
|
|
1907
|
-
*/
|
|
1908
|
-
beforeRouteLeave?: TypesConfig extends Record<'beforeRouteLeave', infer T> ? T : NavigationGuard;
|
|
1909
|
-
}
|
|
1910
|
-
interface ComponentCustomProperties {
|
|
1911
|
-
/**
|
|
1912
|
-
* Normalized current location. See {@link RouteLocationNormalizedLoaded}.
|
|
1913
|
-
*/
|
|
1914
|
-
$route: TypesConfig extends Record<'$route', infer T> ? T : RouteLocationNormalizedLoaded;
|
|
1915
|
-
/**
|
|
1916
|
-
* {@link Router} instance used by the application.
|
|
1917
|
-
*/
|
|
1918
|
-
$router: TypesConfig extends Record<'$router', infer T> ? T : Router;
|
|
1919
|
-
}
|
|
1920
|
-
interface GlobalComponents {
|
|
1921
|
-
RouterView: TypesConfig extends Record<'RouterView', infer T> ? T : typeof RouterView;
|
|
1922
|
-
RouterLink: TypesConfig extends Record<'RouterLink', infer T> ? T : typeof RouterLink;
|
|
1923
|
-
}
|
|
1924
|
-
}
|
|
1925
|
-
|
|
1926
|
-
|
|
1927
|
-
|
|
1928
|
-
// CSS
|
|
1929
|
-
declare module '*.css' {}
|
|
1930
|
-
|
|
1931
|
-
|
|
1932
|
-
declare module '*.scss' {}
|
|
1933
|
-
|
|
1934
|
-
|
|
1935
|
-
declare module '*.sass' {}
|
|
1936
|
-
|
|
1937
|
-
|
|
1938
|
-
declare module '*.less' {}
|
|
1939
|
-
|
|
1940
|
-
|
|
1941
|
-
declare module '*.styl' {}
|
|
1942
|
-
|
|
1943
|
-
|
|
1944
|
-
declare module '*.stylus' {}
|
|
1945
|
-
|
|
1946
|
-
|
|
1947
|
-
declare module '*.pcss' {}
|
|
1948
|
-
|
|
1949
|
-
|
|
1950
|
-
declare module '*.sss' {}
|
package/dist/library.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
var et = Object.defineProperty;
|
|
2
2
|
var it = (s, t, e) => t in s ? et(s, t, { enumerable: !0, configurable: !0, writable: !0, value: e }) : s[t] = e;
|
|
3
3
|
var l = (s, t, e) => it(s, typeof t != "symbol" ? t + "" : t, e);
|
|
4
|
-
import { isArray as st, isObjectNotArray as
|
|
4
|
+
import { isArray as st, isObjectNotArray as D, forEach as k, toArray as R, isObject as z, toCamelCase as nt, toDate as W, Datetime as rt, Geo as C, EventItem as at, GeoFlag as ut, GeoIntl as lt, isSelected as x, getExp as ht, getColumn as K, isString as ct, ScrollbarWidth as ot, Api as dt, executeFunction as Y, BroadcastMessage as gt, Cookie as ft, Hash as A, isDomRuntime as G, getElementId as L, Loading as P, random as mt, Meta as vt, DataStorage as J, Translate as U, executePromise as yt } from "@dxtmisha/functional-basic";
|
|
5
5
|
export * from "@dxtmisha/functional-basic";
|
|
6
|
-
import { isRef as N, h as
|
|
7
|
-
class
|
|
6
|
+
import { isRef as N, h as pt, computed as a, toRefs as bt, useAttrs as It, useSlots as St, ref as f, watch as g, triggerRef as Lt, shallowRef as I, onUnmounted as T, inject as Ct, provide as kt, watchEffect as Q } from "vue";
|
|
7
|
+
class wt {
|
|
8
8
|
/**
|
|
9
9
|
* Constructor
|
|
10
10
|
* @param props base data/ базовые данные
|
|
@@ -54,7 +54,7 @@ class kt {
|
|
|
54
54
|
return ((e = this.cache) == null ? void 0 : e[t]) !== ((i = this.props) == null ? void 0 : i[t]);
|
|
55
55
|
}
|
|
56
56
|
}
|
|
57
|
-
class
|
|
57
|
+
class Dt {
|
|
58
58
|
/**
|
|
59
59
|
* Constructor
|
|
60
60
|
* @param props base data/ базовые данные
|
|
@@ -65,7 +65,7 @@ class wt {
|
|
|
65
65
|
constructor(t, e, i) {
|
|
66
66
|
l(this, "event", {});
|
|
67
67
|
l(this, "changed");
|
|
68
|
-
this.props = t, this.callback = e, this.changed = new
|
|
68
|
+
this.props = t, this.callback = e, this.changed = new wt(t, i);
|
|
69
69
|
}
|
|
70
70
|
/**
|
|
71
71
|
* Calls the callback function.
|
|
@@ -113,7 +113,7 @@ class wt {
|
|
|
113
113
|
this.callback && this.callback(this.event);
|
|
114
114
|
}
|
|
115
115
|
}
|
|
116
|
-
class
|
|
116
|
+
class Ut extends Dt {
|
|
117
117
|
/**
|
|
118
118
|
* Calls the callback function.
|
|
119
119
|
*
|
|
@@ -136,31 +136,31 @@ class Pt extends wt {
|
|
|
136
136
|
function d(s) {
|
|
137
137
|
return N(s) ? s.value : s;
|
|
138
138
|
}
|
|
139
|
-
function
|
|
139
|
+
function xt(s) {
|
|
140
140
|
return s && "class" in s && typeof s.class == "string" ? s.class : void 0;
|
|
141
141
|
}
|
|
142
|
-
function
|
|
143
|
-
const i =
|
|
142
|
+
function Mt(s, t, e) {
|
|
143
|
+
const i = xt(t);
|
|
144
144
|
return e && i ? `${e}.${i}` : e || i || s;
|
|
145
145
|
}
|
|
146
|
-
function
|
|
146
|
+
function Nt(s, t, e, i) {
|
|
147
147
|
let n = t;
|
|
148
148
|
return (!t || "key" in t) && (n = {
|
|
149
|
-
key:
|
|
149
|
+
key: Mt(s, t, i),
|
|
150
150
|
...t
|
|
151
|
-
}),
|
|
151
|
+
}), pt(s, n, e);
|
|
152
152
|
}
|
|
153
|
-
function
|
|
153
|
+
function O(s, t) {
|
|
154
154
|
const e = s == null ? void 0 : s.class, i = t == null ? void 0 : t.class, n = s == null ? void 0 : s.style, r = t == null ? void 0 : t.style, u = {
|
|
155
155
|
...s,
|
|
156
156
|
...t
|
|
157
157
|
};
|
|
158
158
|
return e && i && (u.class = [], e && u.class.push(e), i && u.class.push(i)), n && r && (u.style = [], n && u.style.push(n), r && u.style.push(r)), u;
|
|
159
159
|
}
|
|
160
|
-
function
|
|
160
|
+
function Bt(...s) {
|
|
161
161
|
let t = {};
|
|
162
162
|
return s.forEach((e) => {
|
|
163
|
-
e && (t =
|
|
163
|
+
e && (t = O(t, e));
|
|
164
164
|
}), t;
|
|
165
165
|
}
|
|
166
166
|
class X {
|
|
@@ -205,7 +205,7 @@ class X {
|
|
|
205
205
|
t in this.caching || (this.caching[t] = a(() => this.computeModification(t)));
|
|
206
206
|
const i = this.caching[t];
|
|
207
207
|
if (i)
|
|
208
|
-
return e ?
|
|
208
|
+
return e ? Bt(i.value, e) : i.value;
|
|
209
209
|
}
|
|
210
210
|
return e;
|
|
211
211
|
}
|
|
@@ -239,7 +239,7 @@ class X {
|
|
|
239
239
|
renderOne(t, e, i, n) {
|
|
240
240
|
if (this.is(t)) {
|
|
241
241
|
const r = n != null ? n : t;
|
|
242
|
-
return
|
|
242
|
+
return Nt(
|
|
243
243
|
this.get(t),
|
|
244
244
|
this.getModification(r, e),
|
|
245
245
|
i,
|
|
@@ -270,7 +270,7 @@ class X {
|
|
|
270
270
|
computeModification(t) {
|
|
271
271
|
var i;
|
|
272
272
|
const e = d((i = this.modification) == null ? void 0 : i[t]);
|
|
273
|
-
if (e &&
|
|
273
|
+
if (e && D(e)) {
|
|
274
274
|
const n = {};
|
|
275
275
|
return k(e, (r, u) => {
|
|
276
276
|
n[u] = d(r);
|
|
@@ -279,9 +279,9 @@ class X {
|
|
|
279
279
|
return {};
|
|
280
280
|
}
|
|
281
281
|
}
|
|
282
|
-
class
|
|
282
|
+
class qt extends X {
|
|
283
283
|
}
|
|
284
|
-
class
|
|
284
|
+
class Yt {
|
|
285
285
|
/**
|
|
286
286
|
* Constructor
|
|
287
287
|
* @param name class name/ название класса
|
|
@@ -301,7 +301,7 @@ class qt {
|
|
|
301
301
|
l(this, "attrs");
|
|
302
302
|
l(this, "slots");
|
|
303
303
|
l(this, "dataExpose");
|
|
304
|
-
this.props = e, this.options = i, this.name = this.initName(t), this.refs = this.props ?
|
|
304
|
+
this.props = e, this.options = i, this.name = this.initName(t), this.refs = this.props ? bt(this.props) : {}, this.components = new X(i == null ? void 0 : i.components, i == null ? void 0 : i.compMod), this.emits = i == null ? void 0 : i.emits, this.classes = a(() => this.updateClasses()), this.styles = a(() => this.updateStyles()), this.attrs = It(), this.slots = St();
|
|
305
305
|
}
|
|
306
306
|
init() {
|
|
307
307
|
return this.classesSub = a(() => this.initClasses()), this.stylesSub = a(() => this.initStyles()), this.dataExpose = this.initExpose(), this;
|
|
@@ -399,7 +399,7 @@ class qt {
|
|
|
399
399
|
* @param classes list of classes for transformation/ список классов для преобразования
|
|
400
400
|
*/
|
|
401
401
|
toClass(t) {
|
|
402
|
-
return
|
|
402
|
+
return D(t) ? t : Array.isArray(t) ? { [t.filter((i) => typeof i == "string" && i.trim() !== "").join(" ")]: !0 } : typeof t == "string" ? { [t]: !0 } : {};
|
|
403
403
|
}
|
|
404
404
|
/**
|
|
405
405
|
* Converts the class name to standard for the current component.
|
|
@@ -462,7 +462,7 @@ class qt {
|
|
|
462
462
|
function b(s) {
|
|
463
463
|
return N(s) ? s : f(s);
|
|
464
464
|
}
|
|
465
|
-
class
|
|
465
|
+
class Gt {
|
|
466
466
|
/**
|
|
467
467
|
* Constructor
|
|
468
468
|
* @param date date for processing. дата для обработки
|
|
@@ -487,7 +487,7 @@ class Yt {
|
|
|
487
487
|
this.code.value
|
|
488
488
|
), g(this.item, (n) => {
|
|
489
489
|
this.date.value = W(n);
|
|
490
|
-
}), g(this.type, (n) => this.datetime.setType(n)), g(this.code, (n) => this.datetime.setCode(n)), g(this.date, (n) => this.datetime.setDate(n)), this.datetime.setWatch(() =>
|
|
490
|
+
}), g(this.type, (n) => this.datetime.setType(n)), g(this.code, (n) => this.datetime.setCode(n)), g(this.date, (n) => this.datetime.setDate(n)), this.datetime.setWatch(() => Lt(this.date));
|
|
491
491
|
}
|
|
492
492
|
/**
|
|
493
493
|
* Returns the basic data for the date.
|
|
@@ -607,7 +607,7 @@ class Yt {
|
|
|
607
607
|
return a(() => this.date.value && this.datetime.standard(t));
|
|
608
608
|
}
|
|
609
609
|
}
|
|
610
|
-
class
|
|
610
|
+
class Jt extends at {
|
|
611
611
|
/**
|
|
612
612
|
* Classes Constructor
|
|
613
613
|
* @param elementSelector element/ элемент
|
|
@@ -621,17 +621,17 @@ class Gt extends at {
|
|
|
621
621
|
* значение, связанное с событием
|
|
622
622
|
*/
|
|
623
623
|
constructor(t, e, i = ["click"], n, r, u) {
|
|
624
|
-
const h = b(t),
|
|
624
|
+
const h = b(t), c = b(e);
|
|
625
625
|
super(
|
|
626
626
|
h.value,
|
|
627
627
|
i,
|
|
628
628
|
n,
|
|
629
629
|
r,
|
|
630
630
|
u
|
|
631
|
-
),
|
|
631
|
+
), c.value && this.setElementControl(c.value), g(h, (o) => this.setElement(o)), g(c, (o) => this.setElementControl(o));
|
|
632
632
|
}
|
|
633
633
|
}
|
|
634
|
-
class
|
|
634
|
+
class Qt {
|
|
635
635
|
/**
|
|
636
636
|
* Constructor
|
|
637
637
|
* @param code country and language code/ код страны и языка
|
|
@@ -743,7 +743,7 @@ const v = class v {
|
|
|
743
743
|
};
|
|
744
744
|
l(v, "item", I(C.get())), l(v, "country", a(() => v.item.value.country)), l(v, "language", a(() => v.item.value.language)), l(v, "standard", a(() => v.item.value.standard)), l(v, "firstDay", a(() => v.item.value.firstDay));
|
|
745
745
|
let w = v;
|
|
746
|
-
class
|
|
746
|
+
class Rt {
|
|
747
747
|
/**
|
|
748
748
|
* Constructor
|
|
749
749
|
* @param code country code, full form language-country or one of them/
|
|
@@ -978,7 +978,7 @@ class Z {
|
|
|
978
978
|
* @param max Maximum number of selections / максимальное количество выделений
|
|
979
979
|
* @param parent Parent identifier / идентификатор родителя
|
|
980
980
|
*/
|
|
981
|
-
constructor(t, e, i, n, r, u, h,
|
|
981
|
+
constructor(t, e, i, n, r, u, h, c, o, m = 0, y = 9999999, S) {
|
|
982
982
|
l(this, "subList", {});
|
|
983
983
|
/**
|
|
984
984
|
* Returns a list for forming a list.
|
|
@@ -1025,7 +1025,7 @@ class Z {
|
|
|
1025
1025
|
this.data.value,
|
|
1026
1026
|
(n) => {
|
|
1027
1027
|
var u, h;
|
|
1028
|
-
const r =
|
|
1028
|
+
const r = x(n.index, i);
|
|
1029
1029
|
return {
|
|
1030
1030
|
...n,
|
|
1031
1031
|
focus: t === n.index,
|
|
@@ -1095,7 +1095,7 @@ class Z {
|
|
|
1095
1095
|
*/
|
|
1096
1096
|
l(this, "isSelected", a(() => {
|
|
1097
1097
|
const t = this.getSelected();
|
|
1098
|
-
return !!t && this.mapItems.value.findIndex((e) =>
|
|
1098
|
+
return !!t && this.mapItems.value.findIndex((e) => x(e.index, t)) !== -1;
|
|
1099
1099
|
}));
|
|
1100
1100
|
/** Is the minimum selection reached/ Достигнуто ли минимальное выделение */
|
|
1101
1101
|
l(this, "isSelectedMin", a(() => {
|
|
@@ -1113,7 +1113,7 @@ class Z {
|
|
|
1113
1113
|
*/
|
|
1114
1114
|
l(this, "selectedList", a(() => {
|
|
1115
1115
|
const t = this.getSelected();
|
|
1116
|
-
return t && this.isSelected.value ? this.mapItems.value.filter((e) =>
|
|
1116
|
+
return t && this.isSelected.value ? this.mapItems.value.filter((e) => x(e.index, t)) : [];
|
|
1117
1117
|
}));
|
|
1118
1118
|
/**
|
|
1119
1119
|
* Returns a list of selected items in the current group/
|
|
@@ -1121,7 +1121,7 @@ class Z {
|
|
|
1121
1121
|
*/
|
|
1122
1122
|
l(this, "selectedListInGroup", a(() => {
|
|
1123
1123
|
const t = this.getSelected();
|
|
1124
|
-
return t && this.isSelected.value ? this.data.value.filter((e) =>
|
|
1124
|
+
return t && this.isSelected.value ? this.data.value.filter((e) => x(e.index, t)) : [];
|
|
1125
1125
|
}));
|
|
1126
1126
|
/**
|
|
1127
1127
|
* Returns a list of selected items on the map.
|
|
@@ -1135,7 +1135,7 @@ class Z {
|
|
|
1135
1135
|
* Возвращает список значений выделенных элементов на карте.
|
|
1136
1136
|
*/
|
|
1137
1137
|
l(this, "selectedValues", a(() => K(this.selectedList.value, "value")));
|
|
1138
|
-
this.list = t, this.focus = e, this.highlight = i, this.highlightLengthStart = n, this.filterMode = r, this.selected = u, this.keyValue = h, this.keyLabel =
|
|
1138
|
+
this.list = t, this.focus = e, this.highlight = i, this.highlightLengthStart = n, this.filterMode = r, this.selected = u, this.keyValue = h, this.keyLabel = c, this.lite = o, this.min = m, this.max = y, this.parent = S, N(t) && g(t, () => {
|
|
1139
1139
|
this.subList = {};
|
|
1140
1140
|
});
|
|
1141
1141
|
}
|
|
@@ -1241,15 +1241,15 @@ class Z {
|
|
|
1241
1241
|
* @param step number of steps/ количество шагов
|
|
1242
1242
|
*/
|
|
1243
1243
|
getSelectedByStep(t) {
|
|
1244
|
-
var u, h,
|
|
1244
|
+
var u, h, c, o, m;
|
|
1245
1245
|
const e = (u = this.selectedList.value) == null ? void 0 : u[0], i = this.mapItems.value;
|
|
1246
1246
|
if (!e)
|
|
1247
1247
|
return (h = i[0]) == null ? void 0 : h.index;
|
|
1248
1248
|
const r = i.findIndex((y) => y.index === e.index) + t;
|
|
1249
1249
|
if (r in i)
|
|
1250
|
-
return (
|
|
1250
|
+
return (c = i[r]) == null ? void 0 : c.index;
|
|
1251
1251
|
if (t > 0)
|
|
1252
|
-
return (
|
|
1252
|
+
return (o = i[0]) == null ? void 0 : o.index;
|
|
1253
1253
|
if (t < 0)
|
|
1254
1254
|
return (m = i[i.length - 1]) == null ? void 0 : m.index;
|
|
1255
1255
|
}
|
|
@@ -1356,11 +1356,11 @@ class Z {
|
|
|
1356
1356
|
* @param item selected element/ выбранный элемент
|
|
1357
1357
|
*/
|
|
1358
1358
|
initItem(t, e) {
|
|
1359
|
-
var i, n, r, u, h,
|
|
1360
|
-
if (
|
|
1361
|
-
const
|
|
1359
|
+
var i, n, r, u, h, c;
|
|
1360
|
+
if (D(e)) {
|
|
1361
|
+
const o = e == null ? void 0 : e[(n = (i = this.keyValue) == null ? void 0 : i.value) != null ? n : "value"], m = (h = e == null ? void 0 : e[(u = (r = this.keyLabel) == null ? void 0 : r.value) != null ? u : "label"]) != null ? h : o, y = this.getIndex(
|
|
1362
1362
|
e == null ? void 0 : e.index,
|
|
1363
|
-
|
|
1363
|
+
o,
|
|
1364
1364
|
t,
|
|
1365
1365
|
m
|
|
1366
1366
|
);
|
|
@@ -1368,9 +1368,9 @@ class Z {
|
|
|
1368
1368
|
...e,
|
|
1369
1369
|
parent: this.parent,
|
|
1370
1370
|
index: y,
|
|
1371
|
-
type: (
|
|
1371
|
+
type: (c = e == null ? void 0 : e.type) != null ? c : "item",
|
|
1372
1372
|
label: m,
|
|
1373
|
-
value:
|
|
1373
|
+
value: o
|
|
1374
1374
|
};
|
|
1375
1375
|
}
|
|
1376
1376
|
return {
|
|
@@ -1382,7 +1382,7 @@ class Z {
|
|
|
1382
1382
|
};
|
|
1383
1383
|
}
|
|
1384
1384
|
}
|
|
1385
|
-
class
|
|
1385
|
+
class At {
|
|
1386
1386
|
/**
|
|
1387
1387
|
* Get router instance.
|
|
1388
1388
|
*
|
|
@@ -1391,6 +1391,34 @@ class Rt {
|
|
|
1391
1391
|
static get() {
|
|
1392
1392
|
return this.router;
|
|
1393
1393
|
}
|
|
1394
|
+
/**
|
|
1395
|
+
* Returns the link by name.
|
|
1396
|
+
*
|
|
1397
|
+
* Возвращает ссылку по имени.
|
|
1398
|
+
* @param name route name/ имя маршрута
|
|
1399
|
+
* @param params route parameters/ параметры маршрута
|
|
1400
|
+
* @param query route query/ запрос маршрута
|
|
1401
|
+
*/
|
|
1402
|
+
static getLink(t, e, i) {
|
|
1403
|
+
var n;
|
|
1404
|
+
return (n = this.router) == null ? void 0 : n.resolve({ name: t, params: e, query: i }).href;
|
|
1405
|
+
}
|
|
1406
|
+
/**
|
|
1407
|
+
* Returns the link property by name.
|
|
1408
|
+
*
|
|
1409
|
+
* Возвращает свойство ссылки по имени.
|
|
1410
|
+
* @param name route name/ имя маршрута
|
|
1411
|
+
* @param params route parameters/ параметры маршрута
|
|
1412
|
+
* @param query route query/ запрос маршрута
|
|
1413
|
+
*/
|
|
1414
|
+
static getHref(t, e, i) {
|
|
1415
|
+
if (t) {
|
|
1416
|
+
const n = this.getLink(t, e, i);
|
|
1417
|
+
if (n)
|
|
1418
|
+
return { href: n };
|
|
1419
|
+
}
|
|
1420
|
+
return {};
|
|
1421
|
+
}
|
|
1394
1422
|
/**
|
|
1395
1423
|
* Site path change.
|
|
1396
1424
|
*
|
|
@@ -1418,9 +1446,18 @@ class Rt {
|
|
|
1418
1446
|
static setOneTime(t) {
|
|
1419
1447
|
this.router || this.set(t);
|
|
1420
1448
|
}
|
|
1449
|
+
/**
|
|
1450
|
+
* Converts the raw route location to href properties.
|
|
1451
|
+
*
|
|
1452
|
+
* Преобразует необработанное местоположение маршрута в свойства href.
|
|
1453
|
+
* @param to raw route location/ необработанное местоположение маршрута
|
|
1454
|
+
*/
|
|
1455
|
+
static rawToHref(t) {
|
|
1456
|
+
return D(t) && "name" in t && ct(t == null ? void 0 : t.name) ? this.getHref(t.name) : {};
|
|
1457
|
+
}
|
|
1421
1458
|
}
|
|
1422
|
-
l(
|
|
1423
|
-
class
|
|
1459
|
+
l(At, "router");
|
|
1460
|
+
class Xt {
|
|
1424
1461
|
/**
|
|
1425
1462
|
* Constructor
|
|
1426
1463
|
*/
|
|
@@ -1442,33 +1479,33 @@ class Qt {
|
|
|
1442
1479
|
});
|
|
1443
1480
|
}
|
|
1444
1481
|
}
|
|
1445
|
-
const
|
|
1446
|
-
let
|
|
1447
|
-
function
|
|
1448
|
-
const u = f(), h = b(
|
|
1482
|
+
const Ht = (s) => typeof s == "string" ? { method: s } : s || {};
|
|
1483
|
+
let M;
|
|
1484
|
+
function Zt(s, t, e = !0, i, n, r) {
|
|
1485
|
+
const u = f(), h = b(Ht(t)), c = f(!1), o = f(!1);
|
|
1449
1486
|
let m = !0, y = 0;
|
|
1450
1487
|
const S = async () => {
|
|
1451
1488
|
if (m)
|
|
1452
1489
|
return;
|
|
1453
1490
|
const p = d(s);
|
|
1454
1491
|
if ((!i || i.value) && p) {
|
|
1455
|
-
|
|
1492
|
+
c.value = !0, o.value = !0;
|
|
1456
1493
|
let B = {};
|
|
1457
|
-
const V = await
|
|
1494
|
+
const V = await dt.request({
|
|
1458
1495
|
path: p,
|
|
1459
1496
|
...h.value
|
|
1460
1497
|
});
|
|
1461
|
-
V && (B = V), n ? u.value = n(B) : u.value = B,
|
|
1498
|
+
V && (B = V), n ? u.value = n(B) : u.value = B, c.value = !1;
|
|
1462
1499
|
} else u.value !== void 0 && (u.value = void 0);
|
|
1463
1500
|
}, tt = () => {
|
|
1464
1501
|
const p = [];
|
|
1465
|
-
e && p.push(h), N(s) && p.push(s), i && p.push(i),
|
|
1466
|
-
|
|
1502
|
+
e && p.push(h), N(s) && p.push(s), i && p.push(i), M && p.push(M), p.length > 0 && g(p, async () => {
|
|
1503
|
+
c.value || await S();
|
|
1467
1504
|
});
|
|
1468
1505
|
};
|
|
1469
1506
|
return {
|
|
1470
1507
|
get data() {
|
|
1471
|
-
return m && (m = !1, S().then()), tt(), r && (y++,
|
|
1508
|
+
return m && (m = !1, S().then()), tt(), r && (y++, T(() => {
|
|
1472
1509
|
y--, y < 1 && (console.warn("useApiRef: unmounted"), u.value = void 0, m = !0, y = 0);
|
|
1473
1510
|
})), u;
|
|
1474
1511
|
},
|
|
@@ -1476,46 +1513,46 @@ function Xt(s, t, e = !0, i, n, r) {
|
|
|
1476
1513
|
return a(() => u.value === void 0);
|
|
1477
1514
|
},
|
|
1478
1515
|
get loading() {
|
|
1479
|
-
return a(() =>
|
|
1516
|
+
return a(() => c.value);
|
|
1480
1517
|
},
|
|
1481
1518
|
get reading() {
|
|
1482
|
-
return a(() =>
|
|
1519
|
+
return a(() => o.value);
|
|
1483
1520
|
},
|
|
1484
1521
|
reset: S
|
|
1485
1522
|
};
|
|
1486
1523
|
}
|
|
1487
|
-
const
|
|
1488
|
-
|
|
1524
|
+
const _t = (s) => {
|
|
1525
|
+
M || (M = s);
|
|
1489
1526
|
};
|
|
1490
1527
|
function Et(s, t) {
|
|
1491
1528
|
const e = `broadcast--${s}`;
|
|
1492
|
-
if (e in
|
|
1493
|
-
return
|
|
1494
|
-
const i = f(Y(t)), n = new
|
|
1529
|
+
if (e in H)
|
|
1530
|
+
return H[e];
|
|
1531
|
+
const i = f(Y(t)), n = new gt(
|
|
1495
1532
|
e,
|
|
1496
1533
|
(r) => {
|
|
1497
1534
|
i.value !== r.data.message && (i.value = r.data.message);
|
|
1498
1535
|
}
|
|
1499
1536
|
);
|
|
1500
|
-
return g(i, (r) => n.post({ message: r })),
|
|
1537
|
+
return g(i, (r) => n.post({ message: r })), H[e] = i, i;
|
|
1501
1538
|
}
|
|
1502
|
-
const
|
|
1503
|
-
function
|
|
1504
|
-
if (s in
|
|
1505
|
-
return
|
|
1506
|
-
const i = new
|
|
1539
|
+
const H = {};
|
|
1540
|
+
function te(s, t, e) {
|
|
1541
|
+
if (s in E)
|
|
1542
|
+
return E[s];
|
|
1543
|
+
const i = new ft(s), n = Et(
|
|
1507
1544
|
`__cookie:${s}`,
|
|
1508
1545
|
i.get(t, e)
|
|
1509
1546
|
);
|
|
1510
1547
|
return g(n, (r) => {
|
|
1511
1548
|
i.set(r, e);
|
|
1512
|
-
}),
|
|
1549
|
+
}), E[s] = n, n;
|
|
1513
1550
|
}
|
|
1514
|
-
const
|
|
1515
|
-
function
|
|
1516
|
-
return new
|
|
1551
|
+
const E = {};
|
|
1552
|
+
function ee() {
|
|
1553
|
+
return new Rt();
|
|
1517
1554
|
}
|
|
1518
|
-
function
|
|
1555
|
+
function ie(s, t) {
|
|
1519
1556
|
if (s in $)
|
|
1520
1557
|
return $[s];
|
|
1521
1558
|
const e = I(A.get(s, t));
|
|
@@ -1523,7 +1560,7 @@ function ee(s, t) {
|
|
|
1523
1560
|
e.value = i;
|
|
1524
1561
|
}), $[s] = e, e;
|
|
1525
1562
|
}
|
|
1526
|
-
const $ = {},
|
|
1563
|
+
const $ = {}, $t = (s = {
|
|
1527
1564
|
rootMargin: "128px 0px"
|
|
1528
1565
|
}) => {
|
|
1529
1566
|
const t = {}, e = G() && "IntersectionObserver" in window ? new IntersectionObserver(
|
|
@@ -1566,10 +1603,10 @@ const $ = {}, Ht = (s = {
|
|
|
1566
1603
|
const r = I(!e);
|
|
1567
1604
|
if (e) {
|
|
1568
1605
|
let u;
|
|
1569
|
-
u = g(n, (h,
|
|
1570
|
-
if (
|
|
1571
|
-
const
|
|
1572
|
-
t[
|
|
1606
|
+
u = g(n, (h, c) => {
|
|
1607
|
+
if (c && i(c), n.value) {
|
|
1608
|
+
const o = L(n.value);
|
|
1609
|
+
t[o] = {
|
|
1573
1610
|
status: r,
|
|
1574
1611
|
ratio: I(0),
|
|
1575
1612
|
entry: I(void 0),
|
|
@@ -1594,14 +1631,14 @@ const $ = {}, Ht = (s = {
|
|
|
1594
1631
|
*/
|
|
1595
1632
|
disconnectLazy: () => e == null ? void 0 : e.disconnect()
|
|
1596
1633
|
};
|
|
1597
|
-
}, q = [],
|
|
1634
|
+
}, q = [], Ft = (s) => {
|
|
1598
1635
|
const t = q.find((i) => i.rootMargin === s);
|
|
1599
1636
|
if (t)
|
|
1600
1637
|
return t.item;
|
|
1601
|
-
const e =
|
|
1638
|
+
const e = $t({ rootMargin: s });
|
|
1602
1639
|
return q.push({ rootMargin: s, item: e }), e;
|
|
1603
|
-
},
|
|
1604
|
-
const e =
|
|
1640
|
+
}, se = (s, t) => {
|
|
1641
|
+
const e = Ft(t);
|
|
1605
1642
|
return {
|
|
1606
1643
|
/** Lazy item status/ Статус ленивого элемента */
|
|
1607
1644
|
lazyItemStatus: e.addLazyItem(s),
|
|
@@ -1615,46 +1652,46 @@ const $ = {}, Ht = (s = {
|
|
|
1615
1652
|
}
|
|
1616
1653
|
};
|
|
1617
1654
|
};
|
|
1618
|
-
function
|
|
1655
|
+
function ne() {
|
|
1619
1656
|
const s = I(P.is());
|
|
1620
1657
|
return P.registrationEvent(({ detail: t }) => {
|
|
1621
1658
|
s.value = t.loading;
|
|
1622
1659
|
}), s;
|
|
1623
1660
|
}
|
|
1624
|
-
const _ = [],
|
|
1625
|
-
function
|
|
1661
|
+
const _ = [], jt = mt(1e5, 999999);
|
|
1662
|
+
function zt(s, t = !0, e = !1, i = !0) {
|
|
1626
1663
|
let n;
|
|
1627
|
-
const r = `__execute_use${
|
|
1628
|
-
const
|
|
1664
|
+
const r = `__execute_use${jt}::${L()}`, u = (c) => {
|
|
1665
|
+
const o = Object.freeze(s(...c));
|
|
1629
1666
|
return Object.freeze({
|
|
1630
|
-
...
|
|
1667
|
+
...o,
|
|
1631
1668
|
init() {
|
|
1632
|
-
return
|
|
1669
|
+
return o;
|
|
1633
1670
|
}
|
|
1634
1671
|
});
|
|
1635
|
-
}, h = (...
|
|
1672
|
+
}, h = (...c) => {
|
|
1636
1673
|
if (!e && i) {
|
|
1637
|
-
const
|
|
1638
|
-
if (
|
|
1639
|
-
return
|
|
1674
|
+
const o = Ct(r, void 0);
|
|
1675
|
+
if (o)
|
|
1676
|
+
return o;
|
|
1640
1677
|
{
|
|
1641
|
-
let m = u(
|
|
1642
|
-
return
|
|
1678
|
+
let m = u(c);
|
|
1679
|
+
return kt(r, m), t && T(() => {
|
|
1643
1680
|
m = void 0;
|
|
1644
1681
|
}), m;
|
|
1645
1682
|
}
|
|
1646
|
-
} else n || (n = u(
|
|
1683
|
+
} else n || (n = u(c), t && T(() => {
|
|
1647
1684
|
n = void 0;
|
|
1648
1685
|
}));
|
|
1649
1686
|
return n;
|
|
1650
1687
|
};
|
|
1651
1688
|
return e && _.push(h), h;
|
|
1652
1689
|
}
|
|
1653
|
-
function
|
|
1690
|
+
function re() {
|
|
1654
1691
|
_.forEach((s) => s());
|
|
1655
1692
|
}
|
|
1656
|
-
const
|
|
1657
|
-
const s = new
|
|
1693
|
+
const Tt = zt(() => {
|
|
1694
|
+
const s = new vt(), t = f(s.getTitle()), e = f(s.getKeywords()), i = f(s.getDescription()), n = f(s.getImage()), r = f(s.getCanonical()), u = f(s.getRobots()), h = f(s.getAuthor()), c = f(s.getSiteName()), o = () => s.html();
|
|
1658
1695
|
return g(t, () => {
|
|
1659
1696
|
s.setTitle(t.value);
|
|
1660
1697
|
}), g(e, () => {
|
|
@@ -1669,8 +1706,8 @@ const zt = jt(() => {
|
|
|
1669
1706
|
s.setRobots(u.value);
|
|
1670
1707
|
}), g(h, () => {
|
|
1671
1708
|
s.setAuthor(h.value);
|
|
1672
|
-
}), g(
|
|
1673
|
-
s.setSiteName(
|
|
1709
|
+
}), g(c, () => {
|
|
1710
|
+
s.setSiteName(c.value);
|
|
1674
1711
|
}), {
|
|
1675
1712
|
meta: s,
|
|
1676
1713
|
title: t,
|
|
@@ -1680,18 +1717,18 @@ const zt = jt(() => {
|
|
|
1680
1717
|
image: n,
|
|
1681
1718
|
canonical: r,
|
|
1682
1719
|
robots: u,
|
|
1683
|
-
siteName:
|
|
1684
|
-
getHtmlMeta:
|
|
1720
|
+
siteName: c,
|
|
1721
|
+
getHtmlMeta: o
|
|
1685
1722
|
};
|
|
1686
|
-
}, !1, !0),
|
|
1687
|
-
function
|
|
1723
|
+
}, !1, !0), ae = () => Tt();
|
|
1724
|
+
function ue(s, t) {
|
|
1688
1725
|
if (s in F)
|
|
1689
1726
|
return F[s];
|
|
1690
1727
|
const e = new J(s, !0), i = f(e.get(t));
|
|
1691
1728
|
return g(i, (n) => e.set(n)), F[s] = i, i;
|
|
1692
1729
|
}
|
|
1693
1730
|
const F = {};
|
|
1694
|
-
function
|
|
1731
|
+
function le(s, t, e) {
|
|
1695
1732
|
if (s in j)
|
|
1696
1733
|
return j[s];
|
|
1697
1734
|
const i = new J(s), n = f(i.get(t, e));
|
|
@@ -1712,11 +1749,11 @@ function Ot(s) {
|
|
|
1712
1749
|
}
|
|
1713
1750
|
return t;
|
|
1714
1751
|
}
|
|
1715
|
-
const
|
|
1716
|
-
function
|
|
1752
|
+
const he = (s) => Ot(s);
|
|
1753
|
+
function ce(s, t) {
|
|
1717
1754
|
const e = f();
|
|
1718
1755
|
return Q(async () => {
|
|
1719
|
-
e.value = await
|
|
1756
|
+
e.value = await yt(s);
|
|
1720
1757
|
}), a(() => e.value, t);
|
|
1721
1758
|
}
|
|
1722
1759
|
function oe(s, t = () => {
|
|
@@ -1733,14 +1770,14 @@ function oe(s, t = () => {
|
|
|
1733
1770
|
i
|
|
1734
1771
|
);
|
|
1735
1772
|
}
|
|
1736
|
-
function
|
|
1773
|
+
function Vt(s, t = {}, e = "value", i = !1) {
|
|
1737
1774
|
const n = typeof t == "string", r = n ? t : e, u = n ? {} : t;
|
|
1738
|
-
return s ? s &&
|
|
1775
|
+
return s ? s && D(s) && (r in s || i) ? O(u, s) : O(u, { [r]: s }) : n ? {} : { ...u };
|
|
1739
1776
|
}
|
|
1740
|
-
function
|
|
1741
|
-
return a(() =>
|
|
1777
|
+
function de(s, t = {}, e = "value") {
|
|
1778
|
+
return a(() => Vt(d(s), d(t), e));
|
|
1742
1779
|
}
|
|
1743
|
-
const
|
|
1780
|
+
const ge = (s, t) => {
|
|
1744
1781
|
const e = f();
|
|
1745
1782
|
let i = !0;
|
|
1746
1783
|
const n = () => {
|
|
@@ -1751,56 +1788,56 @@ const de = (s, t) => {
|
|
|
1751
1788
|
};
|
|
1752
1789
|
return a(() => (n(), e.value));
|
|
1753
1790
|
};
|
|
1754
|
-
function
|
|
1791
|
+
function fe(s, t) {
|
|
1755
1792
|
s.value !== t && (s.value = t);
|
|
1756
1793
|
}
|
|
1757
|
-
function
|
|
1794
|
+
function me(s) {
|
|
1758
1795
|
let t;
|
|
1759
1796
|
return a(() => (t || (t = s()), t.value));
|
|
1760
1797
|
}
|
|
1761
1798
|
export {
|
|
1762
|
-
|
|
1763
|
-
|
|
1764
|
-
|
|
1765
|
-
|
|
1766
|
-
|
|
1799
|
+
Gt as DatetimeRef,
|
|
1800
|
+
Dt as DesignAbstract,
|
|
1801
|
+
Ut as DesignAsyncAbstract,
|
|
1802
|
+
wt as DesignChanged,
|
|
1803
|
+
qt as DesignComp,
|
|
1767
1804
|
X as DesignComponents,
|
|
1768
|
-
|
|
1769
|
-
|
|
1770
|
-
|
|
1771
|
-
|
|
1805
|
+
Yt as DesignConstructorAbstract,
|
|
1806
|
+
Jt as EventRef,
|
|
1807
|
+
Qt as GeoFlagRef,
|
|
1808
|
+
Rt as GeoIntlRef,
|
|
1772
1809
|
w as GeoRef,
|
|
1773
1810
|
Z as ListDataRef,
|
|
1774
|
-
|
|
1775
|
-
|
|
1776
|
-
|
|
1811
|
+
At as RouterItemRef,
|
|
1812
|
+
Xt as ScrollbarWidthRef,
|
|
1813
|
+
ce as computedAsync,
|
|
1777
1814
|
oe as computedByLanguage,
|
|
1778
|
-
|
|
1779
|
-
|
|
1780
|
-
|
|
1781
|
-
|
|
1782
|
-
|
|
1783
|
-
|
|
1784
|
-
|
|
1815
|
+
zt as executeUse,
|
|
1816
|
+
re as executeUseGlobalInit,
|
|
1817
|
+
Vt as getBind,
|
|
1818
|
+
de as getBindRef,
|
|
1819
|
+
xt as getClassName,
|
|
1820
|
+
ge as getComputedAsync,
|
|
1821
|
+
Mt as getIndexForRender,
|
|
1785
1822
|
d as getRef,
|
|
1786
|
-
|
|
1787
|
-
|
|
1788
|
-
|
|
1789
|
-
|
|
1790
|
-
|
|
1791
|
-
|
|
1792
|
-
|
|
1823
|
+
Nt as render,
|
|
1824
|
+
_t as setApiRefGlobalConditions,
|
|
1825
|
+
fe as setRef,
|
|
1826
|
+
he as t,
|
|
1827
|
+
O as toBind,
|
|
1828
|
+
Bt as toBinds,
|
|
1829
|
+
me as toComputed,
|
|
1793
1830
|
b as toRefItem,
|
|
1794
|
-
|
|
1831
|
+
Zt as useApiRef,
|
|
1795
1832
|
Et as useBroadcastValueRef,
|
|
1796
|
-
|
|
1797
|
-
|
|
1798
|
-
|
|
1799
|
-
|
|
1800
|
-
|
|
1801
|
-
|
|
1802
|
-
|
|
1803
|
-
|
|
1804
|
-
|
|
1833
|
+
te as useCookieRef,
|
|
1834
|
+
ee as useGeoIntlRef,
|
|
1835
|
+
ie as useHashRef,
|
|
1836
|
+
se as useLazyItemByMarginRef,
|
|
1837
|
+
$t as useLazyRef,
|
|
1838
|
+
ne as useLoadingRef,
|
|
1839
|
+
ae as useMeta,
|
|
1840
|
+
ue as useSessionRef,
|
|
1841
|
+
le as useStorageRef,
|
|
1805
1842
|
Ot as useTranslateRef
|
|
1806
1843
|
};
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dxtmisha/functional",
|
|
3
3
|
"private": false,
|
|
4
|
-
"version": "1.6.
|
|
4
|
+
"version": "1.6.8",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"description": "Comprehensive functional utilities library for DXT UI - classes, composables, functions and types for modern web development",
|
|
7
7
|
"keywords": [
|
|
@@ -60,7 +60,7 @@
|
|
|
60
60
|
"./types/*": "./dist/*"
|
|
61
61
|
},
|
|
62
62
|
"engines": {
|
|
63
|
-
"node": ">=
|
|
63
|
+
"node": ">=20.0.0"
|
|
64
64
|
},
|
|
65
65
|
"peerDependencies": {
|
|
66
66
|
"@dxtmisha/media": "*",
|