@dxtmisha/functional 1.13.2 → 1.13.3
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.js
CHANGED
|
@@ -371,6 +371,9 @@ var Oe = class {
|
|
|
371
371
|
static set(e) {
|
|
372
372
|
u.set(e, !0), this.get().value = u.getItem();
|
|
373
373
|
}
|
|
374
|
+
static setValueDefault(e) {
|
|
375
|
+
u.setValueDefault(e), this.get().value = u.getItem();
|
|
376
|
+
}
|
|
374
377
|
};
|
|
375
378
|
J = Y, H(Y, "country", I(() => J.get().value.country)), H(Y, "language", I(() => J.get().value.language)), H(Y, "standard", I(() => J.get().value.standard)), H(Y, "firstDay", I(() => J.get().value.firstDay));
|
|
376
379
|
//#endregion
|
|
@@ -1306,7 +1309,7 @@ function Dt(e, t) {
|
|
|
1306
1309
|
//#endregion
|
|
1307
1310
|
//#region src/functions/dxtFunctionalPlugin.ts
|
|
1308
1311
|
var Ot = { install(t, n = {}) {
|
|
1309
|
-
if (n.api && e.setConfig(n.api), n.translate && b.setConfig(n.translate), n.icons && m.setConfig(n.icons), n.metaSuffix && _t().setSuffix(n.metaSuffix), n.router) X.set(n.router);
|
|
1312
|
+
if (n.api && e.setConfig(n.api), n.translate && b.setConfig(n.translate), n.location && Y.setValueDefault(n.location), n.icons && m.setConfig(n.icons), n.metaSuffix && _t().setSuffix(n.metaSuffix), n.router) X.set(n.router);
|
|
1310
1313
|
else {
|
|
1311
1314
|
let e = t.config.globalProperties.$router;
|
|
1312
1315
|
e && X.set(e);
|
|
@@ -55,4 +55,11 @@ export declare class GeoRef {
|
|
|
55
55
|
* код страны, полный вид язык-страна или один из них
|
|
56
56
|
*/
|
|
57
57
|
static set(code: string): void;
|
|
58
|
+
/**
|
|
59
|
+
* Sets the default value for the country code.
|
|
60
|
+
*
|
|
61
|
+
* Устанавливает значение по умолчанию для кода страны.
|
|
62
|
+
* @param code default code value / значение кода по умолчанию
|
|
63
|
+
*/
|
|
64
|
+
static setValueDefault(code?: string): void;
|
|
58
65
|
}
|
|
@@ -16,6 +16,11 @@ export interface FunctionalPluginOptions {
|
|
|
16
16
|
* Конфигурация для сервиса переводов
|
|
17
17
|
*/
|
|
18
18
|
translate?: TranslateConfig;
|
|
19
|
+
/**
|
|
20
|
+
* Default geographical location or language code /
|
|
21
|
+
* Код географического местоположения или языка по умолчанию
|
|
22
|
+
*/
|
|
23
|
+
location?: string;
|
|
19
24
|
/**
|
|
20
25
|
* Suffix to be appended to all page titles /
|
|
21
26
|
* Суффикс, который будет добавляться ко всем заголовкам страниц
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dxtmisha/functional",
|
|
3
3
|
"private": false,
|
|
4
|
-
"version": "1.13.
|
|
4
|
+
"version": "1.13.3",
|
|
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": [
|