@topvisor/ui 0.9.24 → 0.9.26-dev
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/.chunks/{datepicker-B28_yC8V.es.js → datepicker-BMrdz1zd.es.js} +2 -2
- package/.chunks/{datepicker-B28_yC8V.es.js.map → datepicker-BMrdz1zd.es.js.map} +1 -1
- package/.chunks/{datepicker-CDoo2d0x.amd.js → datepicker-C0rB8tdN.amd.js} +2 -2
- package/.chunks/{datepicker-CDoo2d0x.amd.js.map → datepicker-C0rB8tdN.amd.js.map} +1 -1
- package/.chunks/{forms-U97cW1zp.es.js → forms-C4UtO06K.es.js} +224 -224
- package/.chunks/forms-C4UtO06K.es.js.map +1 -0
- package/.chunks/forms-DujTMzoW.amd.js +3 -0
- package/.chunks/forms-DujTMzoW.amd.js.map +1 -0
- package/.chunks/{listItem.vue_vue_type_script_setup_true_lang-C_o5sC8m.es.js → listItem.vue_vue_type_script_setup_true_lang-CHYNz0kA.es.js} +2 -2
- package/.chunks/{listItem.vue_vue_type_script_setup_true_lang-C_o5sC8m.es.js.map → listItem.vue_vue_type_script_setup_true_lang-CHYNz0kA.es.js.map} +1 -1
- package/.chunks/{listItem.vue_vue_type_script_setup_true_lang-C67aHWhi.amd.js → listItem.vue_vue_type_script_setup_true_lang-Ob3185Bq.amd.js} +2 -2
- package/.chunks/{listItem.vue_vue_type_script_setup_true_lang-C67aHWhi.amd.js.map → listItem.vue_vue_type_script_setup_true_lang-Ob3185Bq.amd.js.map} +1 -1
- package/.chunks/{popup-C1hmF9NI.es.js → popup-B2BoAirk.es.js} +127 -99
- package/.chunks/popup-B2BoAirk.es.js.map +1 -0
- package/.chunks/popup-CyJ0WBUB.amd.js +386 -0
- package/.chunks/popup-CyJ0WBUB.amd.js.map +1 -0
- package/.chunks/{widgetInput-DgylW6NK.amd.js → widgetInput-Ce8a61St.amd.js} +2 -2
- package/.chunks/widgetInput-Ce8a61St.amd.js.map +1 -0
- package/.chunks/{widgetInput-DmpYL1aA.es.js → widgetInput-pNYn7i5g.es.js} +2 -2
- package/.chunks/{widgetInput-DmpYL1aA.es.js.map → widgetInput-pNYn7i5g.es.js.map} +1 -1
- package/assets/forms.css +1 -1
- package/assets/formsExt.css +1 -1
- package/core/core.amd.js +1 -1
- package/core/core.js +1 -1
- package/forms/forms.amd.js +1 -1
- package/forms/forms.js +1 -1
- package/formsExt/formsExt.amd.js +1 -1
- package/formsExt/formsExt.amd.js.map +1 -1
- package/formsExt/formsExt.js +317 -301
- package/formsExt/formsExt.js.map +1 -1
- package/package.json +1 -1
- package/popup/popup.amd.js +1 -1
- package/popup/popup.js +2 -2
- package/popup/worker.amd.js +1 -1
- package/popup/worker.amd.js.map +1 -1
- package/popup/worker.js +60 -64
- package/popup/worker.js.map +1 -1
- package/src/components/forms/avatar/avatar.d.ts +9 -0
- package/src/components/forms/avatar/avatar.stories.d.ts +24 -0
- package/src/components/forms/avatar/avatar.vue.d.ts +12 -0
- package/src/components/formsExt/editArea/editArea.d.ts +16 -3
- package/src/components/formsExt/editArea/editArea.stories.d.ts +36 -20
- package/src/components/formsExt/editArea/editArea.vue.d.ts +12 -4
- package/src/components/formsExt/selector2/selector2.stories.d.ts +16 -16
- package/src/components/formsExt/selector2/selector2.vue.d.ts +8 -8
- package/src/components/popup/lib/popup.d.ts +40 -46
- package/src/components/popup/lib/popup.globalEvents.d.ts +2 -4
- package/src/components/popup/lib/worker.d.ts +24 -33
- package/src/components/popup/lib/worker.globalEvents.d.ts +1 -2
- package/src/components/popup/popup/popup.stories.d.ts +8 -8
- package/src/components/popup/worker.d.ts +2 -2
- package/src/core/utils/dom.d.ts +3 -3
- package/tabs/tabs.amd.js +1 -1
- package/tabs/tabs.js +1 -1
- package/tabsView/tabsView.amd.js +1 -1
- package/tabsView/tabsView.js +2 -2
- package/utils/date.amd.js +1 -1
- package/utils/date.js +1 -1
- package/utils/device.amd.js +1 -1
- package/utils/device.js +1 -1
- package/utils/dom.amd.js.map +1 -1
- package/utils/dom.js.map +1 -1
- package/utils/scroll.amd.js +1 -1
- package/utils/scroll.js +1 -1
- package/utils/window.amd.js +1 -1
- package/utils/window.js +1 -1
- package/.chunks/forms-DNRGCC9P.amd.js +0 -3
- package/.chunks/forms-DNRGCC9P.amd.js.map +0 -1
- package/.chunks/forms-U97cW1zp.es.js.map +0 -1
- package/.chunks/popup-C1hmF9NI.es.js.map +0 -1
- package/.chunks/popup-Cg-GRa9u.amd.js +0 -386
- package/.chunks/popup-Cg-GRa9u.amd.js.map +0 -1
- package/.chunks/widgetInput-DgylW6NK.amd.js.map +0 -1
|
@@ -1,66 +1,57 @@
|
|
|
1
|
-
|
|
1
|
+
import type { Popup, PopupOptions } from './popup';
|
|
2
|
+
declare let decoratorBeforeOpen: (arg0: Popup) => void;
|
|
3
|
+
declare let decoratorAfterOpen: (arg0: Popup) => void;
|
|
4
|
+
declare let decoratorIsIgnoreOuterClick: (arg0: Event) => boolean;
|
|
5
|
+
declare let i18n: {
|
|
6
|
+
Close: string;
|
|
7
|
+
};
|
|
8
|
+
interface Options {
|
|
9
|
+
decoratorBeforeOpen: typeof decoratorBeforeOpen;
|
|
10
|
+
decoratorAfterOpen: typeof decoratorAfterOpen;
|
|
11
|
+
decoratorIsIgnoreOuterClick: typeof decoratorIsIgnoreOuterClick;
|
|
12
|
+
i18n: typeof i18n;
|
|
13
|
+
}
|
|
2
14
|
declare class Worker {
|
|
3
15
|
static noClose: boolean;
|
|
4
16
|
static vueConnectors: Map<any, any>;
|
|
5
17
|
/**
|
|
6
18
|
* Вызывается при инициализаци приложения
|
|
7
19
|
* устанавливает глобальные статические декортаоры для компонента Popup
|
|
8
|
-
* @param {{
|
|
9
|
-
* decoratorBeforeOpen: (object) => void
|
|
10
|
-
* decoratorAfterOpen: (object) => void,
|
|
11
|
-
* decoratorIsIgnoreOuterClick: (e) => void,
|
|
12
|
-
* i18n: {Close: string}
|
|
13
|
-
* }} options
|
|
14
20
|
*/
|
|
15
|
-
static onInitApp(options:
|
|
16
|
-
|
|
17
|
-
decoratorAfterOpen: (object: any) => void;
|
|
18
|
-
decoratorIsIgnoreOuterClick: (e: any) => void;
|
|
19
|
-
i18n: {
|
|
20
|
-
Close: string;
|
|
21
|
-
};
|
|
22
|
-
}): void;
|
|
23
|
-
static getPopup(elPopup: any): object | undefined;
|
|
21
|
+
static onInitApp(options: Options): void;
|
|
22
|
+
static getPopup(elPopup: Element): Popup;
|
|
24
23
|
static getAll(): Element[];
|
|
25
24
|
static getAllVisible(): Element[];
|
|
26
25
|
/**
|
|
27
26
|
* Открть Popup от указанного elOpener
|
|
28
27
|
* @param {Element} elOpener - элемент, который должен вызвать открытие Popup
|
|
29
28
|
*/
|
|
30
|
-
static openByOpener(elOpener: Element): Promise<
|
|
29
|
+
static openByOpener(elOpener: Element): Promise<Popup | undefined>;
|
|
31
30
|
/**
|
|
32
31
|
* Создать и открыть Popup
|
|
33
32
|
* @param {Element} elOpener - элемент, вызвавший открытие Popup
|
|
34
33
|
* @param {object} options - опции Popup
|
|
35
34
|
*/
|
|
36
|
-
static open(elOpener: Element, options:
|
|
37
|
-
static close(elPopup:
|
|
38
|
-
static recalcPosition(elPopup:
|
|
39
|
-
static scrollToActive(elPopup:
|
|
40
|
-
static decoratorBeforeOpen(popup:
|
|
41
|
-
static decoratorAfterOpen(popup:
|
|
35
|
+
static open(elOpener: Element, options: PopupOptions): Promise<Popup>;
|
|
36
|
+
static close(elPopup: Element): void;
|
|
37
|
+
static recalcPosition(elPopup: Element): void;
|
|
38
|
+
static scrollToActive(elPopup: Element): void;
|
|
39
|
+
static decoratorBeforeOpen(popup: Popup): void;
|
|
40
|
+
static decoratorAfterOpen(popup: Popup): void;
|
|
42
41
|
/**
|
|
43
42
|
* Определитель того, что клик вне Popup нужно игнорировать
|
|
44
43
|
* @returns {boolean} - игнорировать клик, то есть не закрывать Popup
|
|
45
44
|
*/
|
|
46
|
-
static decoratorIsIgnoreOuterClick(e:
|
|
45
|
+
static decoratorIsIgnoreOuterClick(e: Event): boolean;
|
|
47
46
|
/**
|
|
48
47
|
* Зарегистрировать Vue компонент
|
|
49
48
|
*
|
|
50
49
|
* Каждый экземляр Popup регистрируется в словаре vueConnectors для последующего доступа из js
|
|
51
|
-
* @param {string} id
|
|
52
|
-
* @param {any} vueConnector
|
|
53
50
|
*/
|
|
54
51
|
static regVueComponent(id: string, vueConnector: any): void;
|
|
55
52
|
/**
|
|
56
53
|
* Снять с регистрации Vue компонент
|
|
57
|
-
* @param {string} id
|
|
58
54
|
*/
|
|
59
55
|
static unregVueComponent(id: string): void;
|
|
60
56
|
}
|
|
61
|
-
|
|
62
|
-
declare let decoratorAfterOpen: any;
|
|
63
|
-
declare let decoratorIsIgnoreOuterClick: any;
|
|
64
|
-
declare namespace i18n {
|
|
65
|
-
let Close: string;
|
|
66
|
-
}
|
|
57
|
+
export default Worker;
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
export default WorkerEvents;
|
|
2
1
|
/**
|
|
3
2
|
* Глобальные события, для реализации Popup
|
|
4
3
|
*/
|
|
@@ -7,7 +6,7 @@ declare class WorkerEvents {
|
|
|
7
6
|
/**
|
|
8
7
|
* Глобальный обработчик кликов
|
|
9
8
|
* обрабатывает клики на открытие Popup
|
|
10
|
-
* @param {Event} e
|
|
11
9
|
*/
|
|
12
10
|
static onclick(e: Event): Promise<void>;
|
|
13
11
|
}
|
|
12
|
+
export default WorkerEvents;
|
|
@@ -33,7 +33,7 @@ declare const meta: {
|
|
|
33
33
|
onOpen?: (() => any) | undefined;
|
|
34
34
|
onScrollContentList?: ((value: Event) => any) | undefined;
|
|
35
35
|
}, {
|
|
36
|
-
popup: import("../lib/popup").
|
|
36
|
+
popup: import("../lib/popup").Popup | undefined;
|
|
37
37
|
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
38
38
|
open: () => void;
|
|
39
39
|
close: () => void;
|
|
@@ -111,7 +111,7 @@ declare const meta: {
|
|
|
111
111
|
onOpen?: (() => any) | undefined;
|
|
112
112
|
onScrollContentList?: ((value: Event) => any) | undefined;
|
|
113
113
|
}, {
|
|
114
|
-
popup: import("../lib/popup").
|
|
114
|
+
popup: import("../lib/popup").Popup | undefined;
|
|
115
115
|
}, {}, {}, {}, {
|
|
116
116
|
id: string;
|
|
117
117
|
pos: ComponentsConst.Pos;
|
|
@@ -152,7 +152,7 @@ declare const meta: {
|
|
|
152
152
|
onOpen?: (() => any) | undefined;
|
|
153
153
|
onScrollContentList?: ((value: Event) => any) | undefined;
|
|
154
154
|
}, {
|
|
155
|
-
popup: import("../lib/popup").
|
|
155
|
+
popup: import("../lib/popup").Popup | undefined;
|
|
156
156
|
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
157
157
|
open: () => void;
|
|
158
158
|
close: () => void;
|
|
@@ -233,9 +233,9 @@ export declare const Playground: {
|
|
|
233
233
|
}>) => void) | ((vnode: import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
234
234
|
[key: string]: any;
|
|
235
235
|
}>) => void)[] | undefined;
|
|
236
|
+
onClose?: (() => any) | undefined;
|
|
236
237
|
readonly openByHover?: boolean | undefined;
|
|
237
238
|
readonly transitionDuration?: number | undefined;
|
|
238
|
-
onClose?: (() => any) | undefined;
|
|
239
239
|
onOpen?: (() => any) | undefined;
|
|
240
240
|
onScrollContentList?: ((value: Event) => any) | undefined;
|
|
241
241
|
opener?: ((_: {}) => any) | import("vue").VNodeChild;
|
|
@@ -278,7 +278,7 @@ export declare const Playground: {
|
|
|
278
278
|
onOpen?: (() => any) | undefined;
|
|
279
279
|
onScrollContentList?: ((value: Event) => any) | undefined;
|
|
280
280
|
}, {
|
|
281
|
-
popup: import("../lib/popup").
|
|
281
|
+
popup: import("../lib/popup").Popup | undefined;
|
|
282
282
|
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
283
283
|
open: () => void;
|
|
284
284
|
close: () => void;
|
|
@@ -356,7 +356,7 @@ export declare const Playground: {
|
|
|
356
356
|
onOpen?: (() => any) | undefined;
|
|
357
357
|
onScrollContentList?: ((value: Event) => any) | undefined;
|
|
358
358
|
}, {
|
|
359
|
-
popup: import("../lib/popup").
|
|
359
|
+
popup: import("../lib/popup").Popup | undefined;
|
|
360
360
|
}, {}, {}, {}, {
|
|
361
361
|
id: string;
|
|
362
362
|
pos: ComponentsConst.Pos;
|
|
@@ -397,7 +397,7 @@ export declare const Playground: {
|
|
|
397
397
|
onOpen?: (() => any) | undefined;
|
|
398
398
|
onScrollContentList?: ((value: Event) => any) | undefined;
|
|
399
399
|
}, {
|
|
400
|
-
popup: import("../lib/popup").
|
|
400
|
+
popup: import("../lib/popup").Popup | undefined;
|
|
401
401
|
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
402
402
|
open: () => void;
|
|
403
403
|
close: () => void;
|
|
@@ -739,9 +739,9 @@ export declare const Playground: {
|
|
|
739
739
|
}>) => void) | ((vnode: import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
740
740
|
[key: string]: any;
|
|
741
741
|
}>) => void)[] | undefined;
|
|
742
|
+
onClose?: (() => any) | undefined;
|
|
742
743
|
readonly openByHover?: boolean | undefined;
|
|
743
744
|
readonly transitionDuration?: number | undefined;
|
|
744
|
-
onClose?: (() => any) | undefined;
|
|
745
745
|
onOpen?: (() => any) | undefined;
|
|
746
746
|
onScrollContentList?: ((value: Event) => any) | undefined;
|
|
747
747
|
opener?: ((_: {}) => any) | import("vue").VNodeChild;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export { default as PopupWorker } from './lib/worker
|
|
2
|
-
export { default } from './lib/worker
|
|
1
|
+
export { default as PopupWorker } from './lib/worker';
|
|
2
|
+
export { default } from './lib/worker';
|
package/src/core/utils/dom.d.ts
CHANGED
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
* @param {Element[]} elsChildrens
|
|
9
9
|
* @returns {Element} - созданный элемент
|
|
10
10
|
*/
|
|
11
|
-
declare function genEl(tagName: string, attrs: any, ...elsChildrens: Element[]): Element;
|
|
11
|
+
declare function genEl(tagName: string, attrs: any, ...elsChildrens: Element[] | string[]): Element;
|
|
12
12
|
/**
|
|
13
13
|
* Проверить видимость элемента
|
|
14
14
|
* @param {?Element} el
|
|
@@ -58,14 +58,14 @@ declare function querySelectorVisibleLast(el: Element, selectors: string): Eleme
|
|
|
58
58
|
* @param selectors - см. параметр selectors в Document.querySelectorAll()
|
|
59
59
|
* @returns {Element[]} - обратите внимание, возвращается не NodeList[], а Element[]
|
|
60
60
|
*/
|
|
61
|
-
declare function querySelectorAllVisible(el: Element, selectors: string): Element[];
|
|
61
|
+
declare function querySelectorAllVisible(el: Element | Document, selectors: string): Element[];
|
|
62
62
|
/**
|
|
63
63
|
* Найти элементы и вернуть в виде массива
|
|
64
64
|
* @param {?Document|Element} el - корневой элемент поиска
|
|
65
65
|
* @param selectors - см. параметр selectors в Document.querySelectorAll()
|
|
66
66
|
* @returns {Element[]}
|
|
67
67
|
*/
|
|
68
|
-
declare function querySelectorAllArray(el: Element, selectors: string): Element[];
|
|
68
|
+
declare function querySelectorAllArray(el: Element | Document, selectors: string): Element[];
|
|
69
69
|
/**
|
|
70
70
|
* Хранилище данных элемента
|
|
71
71
|
* @param {Element} el
|
package/tabs/tabs.amd.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
define(["require","exports","vue","../.chunks/forms-
|
|
1
|
+
define(["require","exports","vue","../.chunks/forms-DujTMzoW.amd","../require/css.amd!../assets/tabs.css"],function(k,s,e,o){"use strict";if(typeof e>"u")var e=window.Vue;const l={class:e.normalizeClass({"top-tabs":!0})},d={key:0,class:"top-tabs_header"},c={class:"top-tabs_contents"},r=e.defineComponent({__name:"tabs",props:{id:{}},setup(a){return(t,n)=>(e.openBlock(),e.createElementBlock("div",l,[e.renderSlot(t.$slots,"buttons"),t.$slots.header?(e.openBlock(),e.createElementBlock("div",d,[e.renderSlot(t.$slots,"header")])):e.createCommentVNode("",!0),e.createElementVNode("div",c,[e.renderSlot(t.$slots,"contents")])]))}}),b={$style:{"top-tabs":"top-tabs","top-tabs_header":"top-tabs_header","top-tabs_contents":"top-tabs_contents","top-tabs_tabInput":"top-tabs_tabInput","top-tabs_content":"top-tabs_content"}},p=o._export_sfc(r,[["__cssModules",b]]),_=["id","name","value","checked","disabled"],i=["for"],u=e.defineComponent({__name:"tab",props:{tabsId:{},name:{},title:{},active:{type:Boolean},disabled:{type:Boolean}},setup(a){return(t,n)=>(e.openBlock(),e.createElementBlock(e.Fragment,null,[e.createElementVNode("input",{type:"radio",class:"top-tabs_tabInput top-unvisible",id:t.tabsId+t.name,name:t.tabsId,value:t.name,checked:t.active,disabled:t.disabled},null,8,_),e.createElementVNode("label",{class:e.normalizeClass({"top-tabs_tabLabel":!0,"top-forms-focusable":!0,"top-disabled":t.disabled}),for:t.tabsId+t.name},[e.renderSlot(t.$slots,"default")],10,i)],64))}}),m={$style:{"top-tabs_tabLabel":"top-tabs_tabLabel","top-tabs_tabInput":"top-tabs_tabInput","top-disabled":"top-disabled"}},f=o._export_sfc(u,[["__cssModules",m]]),$=["data-tabs-name"],h=e.defineComponent({__name:"content",props:{name:{}},setup(a){return(t,n)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass({"top-tabs_content":!0}),"data-tabs-name":t.name},[e.renderSlot(t.$slots,"default")],8,$))}}),y={$style:{"top-tabs_content":"top-tabs_content"}},v=o._export_sfc(h,[["__cssModules",y]]);s.Tabs=p,s.TabsContent=v,s.TabsTab=f,Object.defineProperty(s,Symbol.toStringTag,{value:"Module"})});
|
|
2
2
|
//# sourceMappingURL=tabs.amd.js.map
|
package/tabs/tabs.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { insertToPage as c } from "../utils/css.js";
|
|
2
2
|
import { defineComponent as b, openBlock as a, createElementBlock as o, renderSlot as s, createCommentVNode as _, createElementVNode as n, normalizeClass as l, Fragment as i } from "vue";
|
|
3
|
-
import { a as p } from "../.chunks/forms-
|
|
3
|
+
import { a as p } from "../.chunks/forms-C4UtO06K.es.js";
|
|
4
4
|
const r = ["../assets/tabs.css"].map((e) => import.meta.resolve(e));
|
|
5
5
|
await c(r);
|
|
6
6
|
const u = {
|
package/tabsView/tabsView.amd.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
define(["require","exports","vue","../utils/route.amd","../.chunks/forms-
|
|
1
|
+
define(["require","exports","vue","../utils/route.amd","../.chunks/forms-DujTMzoW.amd","../.chunks/store-Bl79G7T_.amd","../.chunks/listItem.vue_vue_type_script_setup_true_lang-Ob3185Bq.amd","../popup/worker.amd","../utils/system.amd","../require/css.amd!../assets/tabsView.css"],function(ee,_,e,b,p,v,w,te,I){"use strict";if(typeof e>"u")var e=window.Vue;const h=(o,n)=>`top:${String(o)}:${n}`,y={loadLocalStorge:(o,n)=>{if(!n.$id)return;const t=h(o,n.$id);try{const a=JSON.parse(localStorage.getItem(t));typeof a==typeof n[o]&&(n[o]=a)}catch{console.warn(new Error(`В localStorage[${t}] не корректный json`))}},addSaverLocalStorge:(o,n)=>{if(!n.$id)return;const t=h(o,n.$id);e.watch(()=>n[o],()=>{localStorage.setItem(t,JSON.stringify(n[o]))},{immediate:!0})}},S=Symbol(),B=(o,n)=>{const t=v.defineStore(S,()=>{const a=e.computed(()=>o.showMenuInPopup??p.Core.state.isMobile),l=e.computed(()=>o.pageMod),u=e.ref(!1),s=e.ref(void 0),r=e.ref(!0);return{showMenuInPopup:a,pageMod:l,isShort:u,activeItemName:n,component:s,scrollable:r}},o.idState);if(o.isShortable){const a="isShort";y.loadLocalStorge(a,t),y.addSaverLocalStorge(a,t)}return t},V=()=>v.useStore(S),N={key:1,class:"top-ellipsis"},L=e.defineComponent({__name:"menuItem",props:{name:{},href:{},icon:{},disabled:{type:Boolean},component:{default:void 0},scrollable:{type:Boolean,default:!0}},setup(o){const n=o,t=V(),a=e.computed(()=>n.name&&t.$id?b.genHash(t.$id,n.name):n.href),l=e.computed(()=>t.showMenuInPopup?w._sfc_main$2:a?"a":"button"),u=s=>{!n.href&&a.value&&s.preventDefault(),n.name&&(t.activeItemName=n.name)};return(s,r)=>(e.openBlock(),e.createBlock(e.resolveDynamicComponent(l.value),{target:"_self",class:e.normalizeClass({"top-tabsView_menuItem":!e.unref(t).showMenuInPopup,"top-active":s.name&&e.unref(t).activeItemName===s.name,"top-disabled":s.disabled,"top-spa-disabled":!0}),href:a.value,"data-top-icon":s.icon||void 0,disabled:s.disabled||void 0,onClick:u},{default:e.withCtx(()=>[e.unref(t).showMenuInPopup?e.renderSlot(s.$slots,"default",{key:0}):s.$slots.default&&!e.unref(t).isShort?(e.openBlock(),e.createElementBlock("span",N,[e.renderSlot(s.$slots,"default")])):e.createCommentVNode("",!0)]),_:3},8,["class","href","data-top-icon","disabled"]))}}),C={$style:{"top-tabsView_menuItem":"top-tabsView_menuItem","top-active":"top-active","top-forms-option":"top-forms-option","top-formsCaption":"top-formsCaption","top-disabled":"top-disabled"}},m=p._export_sfc(L,[["__cssModules",C]]),g=o=>(o==null?void 0:o.name)==="AsyncComponentWrapper"&&!(o!=null&&o.__asyncResolved),P=async(o,n)=>{(o==null?void 0:o.name)==="AsyncComponentWrapper"&&(o!=null&&o.__asyncResolved||(o.__asyncLoader(),await I.sleepWhile(()=>n()&&g(o),200)))},T={class:"top-tabsView_menuOpener"},E=["data-top-icon"],O={class:"top-ellipsis"},D=e.createElementVNode("div",{class:"top-tabsView_menuOpenerIcon","data-top-icon":""},null,-1),z={class:"top-tabsView_menuList"},R={key:0,class:"top-tabsView_menuFooter"},A=e.defineComponent({__name:"menu",props:e.mergeModels({isShortable:{type:Boolean},isLoading:{type:Boolean}},{isLoading:{},isLoadingModifiers:{}}),emits:["update:isLoading"],setup(o){const n=e.useModel(o,"isLoading"),t=V(),a=e.useSlots(),l=new Map,u=()=>{if(!a.default)return;const c=a.default().find(i=>i.key==="_menu");c&&c.children.forEach(i=>{var M,$;if(i.type.__name!==m.__name||!i.props.name||i.props.disabled)return;const k={title:(($=(M=i.children).default)==null?void 0:$.call(M)[0].children).trim(),icon:i.props.icon,component:i.props.component?e.markRaw(i.props.component):m.props.component.default,scrollable:i.props.scrollable??m.props.scrollable.default};l.set(i.props.name,k)})},s=e.ref(null);let r=0;e.watch(()=>t.activeItemName,async()=>{const c=++r;if(l.size===0&&u(),l.size===0){t.activeItemName="";return}if(s.value=l.get(t.activeItemName)??null,!s.value&&t.$id){const i=b.getHash(t.$id);if(s.value=l.get(i)??null,s.value){t.activeItemName=i;return}}if(!s.value){t.activeItemName=l.keys().next().value;return}if(s.value.component===t.component){n.value=!1;return}t.$id&&b.setHash(t.$id,t.activeItemName,!0),n.value=!0,await P(s.value.component,()=>c===r),c===r&&(t.scrollable=s.value.scrollable,t.component=s.value.component,s.value&&!t.component&&console.warn(`Компонент вкладки ${t.activeItemName} не найден. Добавьте props.component для пункта меню ${t.activeItemName}.`))},{immediate:!0});const d=e.ref();let f;return e.onMounted(()=>{f=new ResizeObserver(()=>{d.value.parentElement.style.setProperty("--top-tabsView-contents-offset-top",d.value.offsetHeight+"px")}),f.observe(d.value)}),e.onUnmounted(()=>{f.disconnect()}),(c,i)=>(e.openBlock(),e.createElementBlock("div",{ref_key:"elRef",ref:d,class:e.normalizeClass({"top-tabsView_menu":!0,"top-tabsView_menu-inPopup_0":!e.unref(t).showMenuInPopup,"top-tabsView_menu-inPopup_1":e.unref(t).showMenuInPopup,"top-tabsView_menu-short":e.unref(t).isShort&&!e.unref(t).showMenuInPopup})},[e.unref(t).showMenuInPopup?(e.openBlock(),e.createBlock(e.unref(w._sfc_main),{key:0},{opener:e.withCtx(()=>[e.createElementVNode("div",T,[s.value?(e.openBlock(),e.createElementBlock("div",{key:0,class:"top-tabsView_menuOpenerActiveItem","data-top-icon":s.value.icon},[e.createElementVNode("span",O,e.toDisplayString(s.value.title),1)],8,E)):e.createCommentVNode("",!0),D])]),contentList:e.withCtx(()=>[e.renderSlot(c.$slots,"default")]),_:3})):(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[e.createElementVNode("div",z,[e.renderSlot(c.$slots,"default")]),c.isShortable?(e.openBlock(),e.createElementBlock("div",R,[c.isShortable?(e.openBlock(),e.createBlock(m,{key:0,icon:e.unref(t).isShort?"":"",onClick:i[0]||(i[0]=k=>e.unref(t).isShort=!e.unref(t).isShort)},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(t).isShort?"":"Свернуть"),1)]),_:1},8,["icon"])):e.createCommentVNode("",!0)])):e.createCommentVNode("",!0)],64))],2))}}),H={$style:{"top-tabsView-pageMod":"top-tabsView-pageMod","top-tabsView_menu":"top-tabsView_menu","top-tabsView_menu-inPopup_0":"top-tabsView_menu-inPopup_0","top-tabsView_menu-inPopup_1":"top-tabsView_menu-inPopup_1","top-tabsView_menu-short":"top-tabsView_menu-short","top-tabsView_menuOpener":"top-tabsView_menuOpener","top-tabsView_menuOpenerIcon":"top-tabsView_menuOpenerIcon","top-tabsView_menuOpenerActiveItem":"top-tabsView_menuOpenerActiveItem","top-tabsView_menuList":"top-tabsView_menuList","top-tabsView_menuFooter":"top-tabsView_menuFooter","top-tabsView_menuItem":"top-tabsView_menuItem"}},K=p._export_sfc(A,[["__cssModules",H]]),F=e.defineComponent({__name:"tabsView",props:e.mergeModels({modelValue:{},pageMod:{type:Boolean},showMenuInPopup:{type:Boolean,default:void 0},isShortable:{type:Boolean,default:!1},idState:{}},{modelValue:{},modelModifiers:{}}),emits:["update:modelValue"],setup(o){const n=o,t=e.useModel(o,"modelValue"),a=B(n,t),l=r=>{document.documentElement.classList.toggle("top-hasTabsViewPageMod",r)};n.pageMod&&l(!0),e.onUnmounted(()=>{n.pageMod&&l(!1),a.$id&&b.delHash(a.$id,a.activeItemName,!0)});const u=e.ref(),s=e.ref(!1);return e.watch([u,()=>a.component],()=>{s.value=g(a.component)},{immediate:!0}),(r,d)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass({"top-tabsView":!0,"top-tabsView-pageMod":n.pageMod,"top-tabsView-inPopup":e.unref(a).showMenuInPopup})},[e.createVNode(K,{isShortable:r.isShortable,isLoading:s.value,"onUpdate:isLoading":d[0]||(d[0]=f=>s.value=f)},{default:e.withCtx(()=>[e.renderSlot(r.$slots,"menu")]),_:3},8,["isShortable","isLoading"]),e.createElementVNode("div",{class:e.normalizeClass({"top-tabsView_contents":!0,"top-tabsView_contents-isLoading":s.value,"top-tabsView_contents-noScrollable":!e.unref(a).scrollable})},[s.value?(e.openBlock(),e.createBlock(e.unref(p.Loadbar),{key:0})):e.createCommentVNode("",!0),(e.openBlock(),e.createBlock(e.KeepAlive,null,[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(e.unref(a).component),{ref_key:"componentRef",ref:u},null,512))],1024))],2)],2))}}),j={$style:{"top-tabsView":"top-tabsView","top-tabsView_contents":"top-tabsView_contents","top-tabsView_contents-isLoading":"top-tabsView_contents-isLoading","top-tabsView_contents-noScrollable":"top-tabsView_contents-noScrollable","top-tabsView-inPopup":"top-tabsView-inPopup"}},q=p._export_sfc(F,[["__cssModules",j]]),U={"top-tabsView_menuDelimeter":"top-tabsView_menuDelimeter"},W={},J={class:"top-tabsView_menuDelimeter"};function x(o,n){return e.openBlock(),e.createElementBlock("div",J)}const G={$style:U},Q=p._export_sfc(W,[["render",x],["__cssModules",G]]),X=e.defineComponent({__name:"menuTitle",props:{isSubtitle:{type:Boolean}},setup(o){const n=V();return(t,a)=>e.unref(n).showMenuInPopup?(e.openBlock(),e.createBlock(e.unref(w._sfc_main$2),{key:0,type:"title"},{default:e.withCtx(()=>[e.renderSlot(t.$slots,"default")]),_:3})):e.unref(n).isShort?(e.openBlock(),e.createBlock(Q,{key:1})):(e.openBlock(),e.createElementBlock("div",{key:2,class:e.normalizeClass({"top-tabsView_menuTitle":!0,"top-tabsView_menuTitle-subtitle":t.isSubtitle})},[e.renderSlot(t.$slots,"default")],2))}}),Y={$style:{"top-tabsView_menuTitle":"top-tabsView_menuTitle","top-tabsView_menuTitle-subtitle":"top-tabsView_menuTitle-subtitle"}},Z=p._export_sfc(X,[["__cssModules",Y]]);_.TabsView=q,_.TabsViewMenuItem=m,_.TabsViewMenuTitle=Z,Object.defineProperty(_,Symbol.toStringTag,{value:"Module"})});
|
|
2
2
|
//# sourceMappingURL=tabsView.amd.js.map
|
package/tabsView/tabsView.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { insertToPage as K } from "../utils/css.js";
|
|
2
2
|
import { watch as I, computed as M, ref as b, defineComponent as $, openBlock as l, createBlock as d, resolveDynamicComponent as O, normalizeClass as g, unref as n, withCtx as w, renderSlot as f, createElementBlock as m, createCommentVNode as v, mergeModels as C, useModel as R, useSlots as U, onMounted as W, onUnmounted as D, createElementVNode as h, toDisplayString as T, Fragment as j, createTextVNode as J, markRaw as q, createVNode as G, KeepAlive as Q } from "vue";
|
|
3
3
|
import { genHash as X, getHash as Y, setHash as Z, delHash as x } from "../utils/route.js";
|
|
4
|
-
import { C as ee, a as y, L as te } from "../.chunks/forms-
|
|
4
|
+
import { C as ee, a as y, L as te } from "../.chunks/forms-C4UtO06K.es.js";
|
|
5
5
|
import { d as oe, u as se } from "../.chunks/store-PoMCiuBr.es.js";
|
|
6
|
-
import { b as A, _ as ae } from "../.chunks/listItem.vue_vue_type_script_setup_true_lang-
|
|
6
|
+
import { b as A, _ as ae } from "../.chunks/listItem.vue_vue_type_script_setup_true_lang-CHYNz0kA.es.js";
|
|
7
7
|
import "../popup/worker.js";
|
|
8
8
|
import { sleepWhile as ne } from "../utils/system.js";
|
|
9
9
|
const F = ["../assets/tabsView.css"].map((t) => import.meta.resolve(t));
|
package/utils/date.amd.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
define(["require","exports","../.chunks/forms-
|
|
1
|
+
define(["require","exports","../.chunks/forms-DujTMzoW.amd"],function(n,e,t){"use strict";if(typeof a>"u")var a=window.Vue;e.dateFormat=t.dateFormat,e.dateUnformat=t.dateUnformat,e.genDate=t.genDate,e.stringToDate=t.stringToDate,Object.defineProperty(e,Symbol.toStringTag,{value:"Module"})});
|
|
2
2
|
//# sourceMappingURL=date.amd.js.map
|
package/utils/date.js
CHANGED
package/utils/device.amd.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
define(["require","exports","../.chunks/forms-
|
|
1
|
+
define(["require","exports","../.chunks/forms-DujTMzoW.amd"],function(n,i,e){"use strict";if(typeof a>"u")var a=window.Vue;i.getCommandKeyLabel=e.getCommandKeyLabel,i.isApp=e.isApp,i.isMacOS=e.isMacOS,i.isMobile=e.isMobile,i.isRetina=e.isRetina,i.isSafari=e.isSafari,Object.defineProperty(i,Symbol.toStringTag,{value:"Module"})});
|
|
2
2
|
//# sourceMappingURL=device.amd.js.map
|
package/utils/device.js
CHANGED
package/utils/dom.amd.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"dom.amd.js","sources":["../../src/core/utils/dom.ts"],"sourcesContent":["/**\n * Функции для работы с работы с Document Object Model (DOM)\n */\n\n/**\n * Создать элемент\n * @param {string} tagName\n * @param {any} attrs - атрибуты\n * @param {Element[]} elsChildrens\n * @returns {Element} - созданный элемент\n */\nfunction genEl(tagName: string, attrs: any, ...elsChildrens: Element[]): Element {\n\tconst el: any = document.createElement(tagName);\n\n\tfor (const name in attrs) {\n\t\tif (name.indexOf('on') === 0) {\n\t\t\t// events\n\t\t\tel[name] = attrs[name];\n\t\t} else {\n\t\t\tel.setAttribute(name, attrs[name]);\n\t\t}\n\t}\n\n\telsChildrens.forEach((elChildren) => {\n\t\tif (typeof (elChildren) === 'string') {\n\t\t\tel.insertAdjacentHTML('beforeend', elChildren);\n\t\t} else {\n\t\t\tel.append(elChildren);\n\t\t}\n\t});\n\n\treturn el;\n}\n\n/**\n * Проверить видимость элемента\n * @param {?Element} el\n * @returns boolean - вернет true, если элемент считается видимым\n */\nfunction isVisible(el?: Element) {\n\tif (!el) {\n\t\treturn false;\n\t}\n\n\tconst boundingClientRect = el.getBoundingClientRect();\n\treturn !!(boundingClientRect.width || boundingClientRect.height);\n}\n\n/**\n * Получить координаты элемента относительно документа\n * @param {Element} el\n * @returns {{top: number, left: number}} - координаты элемента относительно документа\n */\nfunction offset(el: Element): { top: number, left: number } {\n\tconst boundingClientRect = el.getBoundingClientRect();\n\n\treturn {\n\t\ttop: boundingClientRect.top + window.scrollY,\n\t\tleft: boundingClientRect.left + window.scrollX,\n\t};\n}\n\n/**\n * Получить значение css свойства элемента\n * @param {Element} el\n * @param {string} property - имя свойства\n * @return {string} - значение css стиля\n */\nfunction css(el: Element, property: string): string {\n\treturn window.getComputedStyle(el).getPropertyValue(property);\n}\n\n/**\n * Обернуть элемент и вернуть только что созданный элемент\n * @param {Element} el - элемент, который требуется обернуть\n * @param {string} tagName - имя тега элемента, в который треубется обернуть элемент\n * @returns {Element}\n */\nfunction wrap(el: Element, tagName: string): Element {\n\tconst elWrapper = document.createElement(tagName);\n\tel.after(elWrapper);\n\n\telWrapper.append(el);\n\n\treturn elWrapper;\n}\n\n/**\n * Найти и вернуть первый видимый элемент\n * @param {?Document|Element} el - корневой элемент поиска\n * @param selectors - см. параметр selectors в Document.querySelectorAll()\n * @returns {Element|null}\n */\nfunction querySelectorVisible(el: Element, selectors: string): Element | null {\n\treturn querySelectorAllArray(el, selectors).find(isVisible) || null;\n}\n\n/**\n * Найти и вернуть последний видимый элемент\n * @param {?Document|Element} el - корневой элемент поиска\n * @param selectors - см. параметр selectors в Document.querySelectorAll()\n * @returns {Element|null}\n */\nfunction querySelectorVisibleLast(el: Element, selectors: string): Element | null {\n\treturn querySelectorAllArray(el, selectors).findLast(isVisible) || null;\n}\n\n/**\n * Найти видимые элементы\n * @param {?Document|Element} el - корневой элемент поиска\n * @param selectors - см. параметр selectors в Document.querySelectorAll()\n * @returns {Element[]} - обратите внимание, возвращается не NodeList[], а Element[]\n */\nfunction querySelectorAllVisible(el: Element, selectors: string): Element[] {\n\treturn querySelectorAllArray(el, selectors).filter(isVisible);\n}\n\n/**\n * Найти элементы и вернуть в виде массива\n * @param {?Document|Element} el - корневой элемент поиска\n * @param selectors - см. параметр selectors в Document.querySelectorAll()\n * @returns {Element[]}\n */\nfunction querySelectorAllArray(el: Element, selectors: string): Element[] {\n\tif (!el) {\n\t\treturn [];\n\t}\n\n\treturn [...el.querySelectorAll(selectors)];\n}\n\n/**\n * Хранилище данных элемента\n * @param {Element} el\n * @param {string} contextName - контекст, обычно используется имя компонента\n * @param {?object | null} contextData - установить объект с данными, предыдущие данные будут заменены, установите null для удаления данных\n * @returns {?object} - вернет объект контекста или undefined, если данные контекста не найдены\n */\nfunction storage(\n\tel?: Element & { topData?: any },\n\tcontextName: string = 'common', contextData: object | null | undefined = undefined,\n): object | undefined {\n\tif (!el) {\n\t\treturn;\n\t}\n\n\tif (!el.topData) {\n\t\tel.topData = {};\n\t}\n\n\tif (contextData) {\n\t\tel.topData[contextName] = contextData;\n\t}\n\n\tif (contextData === null) {\n\t\tdelete el.topData[contextName];\n\t}\n\n\treturn el.topData[contextName];\n}\n\n/**\n * Очистить хранилище элемента\n */\nfunction storageClear(el?: Element & { topData?: any }) {\n\tif (!el) {\n\t\treturn;\n\t}\n\n\tdelete el.topData;\n}\n\nexport default {\n\tgenEl,\n\tisVisible,\n\toffset,\n\tcss,\n\twrap,\n\tquerySelectorVisible,\n\tquerySelectorVisibleLast,\n\tquerySelectorAllVisible,\n\tquerySelectorAllArray,\n\tstorage,\n\tstorageClear,\n};\n"],"names":["name","attrs","elsChildrens","elChildren","el","boundingClientRect","css","property","wrap","tagName","elWrapper","querySelectorVisible","selectors","querySelectorAllArray","isVisible","querySelectorVisibleLast","querySelectorAllVisible","storage","contextName","contextData","DOM","genEl","offset","storageClear"],"mappings":"gJAcC,UAAAA,KAAAC,uDASA,OAAAC,EAAA,QAAAC,GAAA,CACC,OAAAA,GAAA,6CAGCC,EAAA,OAAAD,CAAA,CACD,CAAA,iCAgBD,MAAAE,EAAAD,EAAA,sBAAA,4CAUA,MAAAC,EAAAD,EAAA,sBAAA,EAEA,MAAA,oDAEwC,EAUzC,SAAAE,EAAAF,EAAAG,EAAA,CACC,OAAA,OAAA,iBAAAH,CAAA,EAAA,iBAAAG,CAAA,EASD,SAAAC,EAAAJ,EAAAK,EAAA,mCAEC,OAAAL,EAAA,MAAAM,CAAA,EAEAA,EAAA,OAAAN,CAAA,IAWD,SAAAO,EAAAP,EAAAQ,EAAA,CACC,OAAAC,EAAAT,EAAAQ,CAAA,EAAA,KAAAE,CAAA,GAAA,KASD,SAAAC,EAAAX,EAAAQ,EAAA,CACC,OAAAC,EAAAT,EAAAQ,CAAA,EAAA,SAAAE,CAAA,GAAA,KASD,SAAAE,EAAAZ,EAAAQ,EAAA,CACC,OAAAC,EAAAT,EAAAQ,CAAA,EAAA,OAAAE,CAAA,EASD,SAAAD,EAAAT,EAAAQ,EAAA,wCAeA,SAAAK,EAAAb,EAAAc,EAAA,SAAAC,EAAA,OAAA,MAQC,OAAAf,EAAA,UACCA,EAAA,QAAA,CAAA,uBAODe,IAAA,MACC,OAAAf,EAAA,QAAAc,CAAA,EAGDd,EAAA,QAAAc,CAAA,mBAWA,OAAAd,EAAA,QAGD,MAAAgB,EAAA,CAAe,MAAAC,EACd,UAAAP,EACA,OAAAQ,EACA,IAAAhB,EACA,KAAAE,EACA,qBAAAG,EACA,yBAAAI,EACA,wBAAAC,EACA,sBAAAH,EACA,QAAAI,EACA,aAAAM"}
|
|
1
|
+
{"version":3,"file":"dom.amd.js","sources":["../../src/core/utils/dom.ts"],"sourcesContent":["/**\n * Функции для работы с работы с Document Object Model (DOM)\n */\n\n/**\n * Создать элемент\n * @param {string} tagName\n * @param {any} attrs - атрибуты\n * @param {Element[]} elsChildrens\n * @returns {Element} - созданный элемент\n */\nfunction genEl(tagName: string, attrs: any, ...elsChildrens: Element[] | string[]): Element {\n\tconst el: any = document.createElement(tagName);\n\n\tfor (const name in attrs) {\n\t\tif (name.indexOf('on') === 0) {\n\t\t\t// events\n\t\t\tel[name] = attrs[name];\n\t\t} else {\n\t\t\tel.setAttribute(name, attrs[name]);\n\t\t}\n\t}\n\n\telsChildrens.forEach((elChildren: Element | string) => {\n\t\tif (typeof (elChildren) === 'string') {\n\t\t\tel.insertAdjacentHTML('beforeend', elChildren);\n\t\t} else {\n\t\t\tel.append(elChildren);\n\t\t}\n\t});\n\n\treturn el;\n}\n\n/**\n * Проверить видимость элемента\n * @param {?Element} el\n * @returns boolean - вернет true, если элемент считается видимым\n */\nfunction isVisible(el?: Element) {\n\tif (!el) {\n\t\treturn false;\n\t}\n\n\tconst boundingClientRect = el.getBoundingClientRect();\n\treturn !!(boundingClientRect.width || boundingClientRect.height);\n}\n\n/**\n * Получить координаты элемента относительно документа\n * @param {Element} el\n * @returns {{top: number, left: number}} - координаты элемента относительно документа\n */\nfunction offset(el: Element): { top: number, left: number } {\n\tconst boundingClientRect = el.getBoundingClientRect();\n\n\treturn {\n\t\ttop: boundingClientRect.top + window.scrollY,\n\t\tleft: boundingClientRect.left + window.scrollX,\n\t};\n}\n\n/**\n * Получить значение css свойства элемента\n * @param {Element} el\n * @param {string} property - имя свойства\n * @return {string} - значение css стиля\n */\nfunction css(el: Element, property: string): string {\n\treturn window.getComputedStyle(el).getPropertyValue(property);\n}\n\n/**\n * Обернуть элемент и вернуть только что созданный элемент\n * @param {Element} el - элемент, который требуется обернуть\n * @param {string} tagName - имя тега элемента, в который треубется обернуть элемент\n * @returns {Element}\n */\nfunction wrap(el: Element, tagName: string): Element {\n\tconst elWrapper = document.createElement(tagName);\n\tel.after(elWrapper);\n\n\telWrapper.append(el);\n\n\treturn elWrapper;\n}\n\n/**\n * Найти и вернуть первый видимый элемент\n * @param {?Document|Element} el - корневой элемент поиска\n * @param selectors - см. параметр selectors в Document.querySelectorAll()\n * @returns {Element|null}\n */\nfunction querySelectorVisible(el: Element, selectors: string): Element | null {\n\treturn querySelectorAllArray(el, selectors).find(isVisible) || null;\n}\n\n/**\n * Найти и вернуть последний видимый элемент\n * @param {?Document|Element} el - корневой элемент поиска\n * @param selectors - см. параметр selectors в Document.querySelectorAll()\n * @returns {Element|null}\n */\nfunction querySelectorVisibleLast(el: Element, selectors: string): Element | null {\n\treturn querySelectorAllArray(el, selectors).findLast(isVisible) || null;\n}\n\n/**\n * Найти видимые элементы\n * @param {?Document|Element} el - корневой элемент поиска\n * @param selectors - см. параметр selectors в Document.querySelectorAll()\n * @returns {Element[]} - обратите внимание, возвращается не NodeList[], а Element[]\n */\nfunction querySelectorAllVisible(el: Element | Document, selectors: string): Element[] {\n\treturn querySelectorAllArray(el, selectors).filter(isVisible);\n}\n\n/**\n * Найти элементы и вернуть в виде массива\n * @param {?Document|Element} el - корневой элемент поиска\n * @param selectors - см. параметр selectors в Document.querySelectorAll()\n * @returns {Element[]}\n */\nfunction querySelectorAllArray(el: Element | Document, selectors: string): Element[] {\n\tif (!el) {\n\t\treturn [];\n\t}\n\n\treturn [...el.querySelectorAll(selectors)];\n}\n\n/**\n * Хранилище данных элемента\n * @param {Element} el\n * @param {string} contextName - контекст, обычно используется имя компонента\n * @param {?object | null} contextData - установить объект с данными, предыдущие данные будут заменены, установите null для удаления данных\n * @returns {?object} - вернет объект контекста или undefined, если данные контекста не найдены\n */\nfunction storage(\n\tel?: Element & { topData?: any },\n\tcontextName: string = 'common', contextData: object | null | undefined = undefined,\n): object | undefined {\n\tif (!el) {\n\t\treturn;\n\t}\n\n\tif (!el.topData) {\n\t\tel.topData = {};\n\t}\n\n\tif (contextData) {\n\t\tel.topData[contextName] = contextData;\n\t}\n\n\tif (contextData === null) {\n\t\tdelete el.topData[contextName];\n\t}\n\n\treturn el.topData[contextName];\n}\n\n/**\n * Очистить хранилище элемента\n */\nfunction storageClear(el?: Element & { topData?: any }) {\n\tif (!el) {\n\t\treturn;\n\t}\n\n\tdelete el.topData;\n}\n\nexport default {\n\tgenEl,\n\tisVisible,\n\toffset,\n\tcss,\n\twrap,\n\tquerySelectorVisible,\n\tquerySelectorVisibleLast,\n\tquerySelectorAllVisible,\n\tquerySelectorAllArray,\n\tstorage,\n\tstorageClear,\n};\n"],"names":["name","attrs","elsChildrens","elChildren","el","boundingClientRect","css","property","wrap","tagName","elWrapper","querySelectorVisible","selectors","querySelectorAllArray","isVisible","querySelectorVisibleLast","querySelectorAllVisible","storage","contextName","contextData","DOM","genEl","offset","storageClear"],"mappings":"gJAcC,UAAAA,KAAAC,uDASA,OAAAC,EAAA,QAAAC,GAAA,CACC,OAAAA,GAAA,6CAGCC,EAAA,OAAAD,CAAA,CACD,CAAA,iCAgBD,MAAAE,EAAAD,EAAA,sBAAA,4CAUA,MAAAC,EAAAD,EAAA,sBAAA,EAEA,MAAA,oDAEwC,EAUzC,SAAAE,EAAAF,EAAAG,EAAA,CACC,OAAA,OAAA,iBAAAH,CAAA,EAAA,iBAAAG,CAAA,EASD,SAAAC,EAAAJ,EAAAK,EAAA,mCAEC,OAAAL,EAAA,MAAAM,CAAA,EAEAA,EAAA,OAAAN,CAAA,IAWD,SAAAO,EAAAP,EAAAQ,EAAA,CACC,OAAAC,EAAAT,EAAAQ,CAAA,EAAA,KAAAE,CAAA,GAAA,KASD,SAAAC,EAAAX,EAAAQ,EAAA,CACC,OAAAC,EAAAT,EAAAQ,CAAA,EAAA,SAAAE,CAAA,GAAA,KASD,SAAAE,EAAAZ,EAAAQ,EAAA,CACC,OAAAC,EAAAT,EAAAQ,CAAA,EAAA,OAAAE,CAAA,EASD,SAAAD,EAAAT,EAAAQ,EAAA,wCAeA,SAAAK,EAAAb,EAAAc,EAAA,SAAAC,EAAA,OAAA,MAQC,OAAAf,EAAA,UACCA,EAAA,QAAA,CAAA,uBAODe,IAAA,MACC,OAAAf,EAAA,QAAAc,CAAA,EAGDd,EAAA,QAAAc,CAAA,mBAWA,OAAAd,EAAA,QAGD,MAAAgB,EAAA,CAAe,MAAAC,EACd,UAAAP,EACA,OAAAQ,EACA,IAAAhB,EACA,KAAAE,EACA,qBAAAG,EACA,yBAAAI,EACA,wBAAAC,EACA,sBAAAH,EACA,QAAAI,EACA,aAAAM"}
|
package/utils/dom.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"dom.js","sources":["../../src/core/utils/dom.ts"],"sourcesContent":["/**\n * Функции для работы с работы с Document Object Model (DOM)\n */\n\n/**\n * Создать элемент\n * @param {string} tagName\n * @param {any} attrs - атрибуты\n * @param {Element[]} elsChildrens\n * @returns {Element} - созданный элемент\n */\nfunction genEl(tagName: string, attrs: any, ...elsChildrens: Element[]): Element {\n\tconst el: any = document.createElement(tagName);\n\n\tfor (const name in attrs) {\n\t\tif (name.indexOf('on') === 0) {\n\t\t\t// events\n\t\t\tel[name] = attrs[name];\n\t\t} else {\n\t\t\tel.setAttribute(name, attrs[name]);\n\t\t}\n\t}\n\n\telsChildrens.forEach((elChildren) => {\n\t\tif (typeof (elChildren) === 'string') {\n\t\t\tel.insertAdjacentHTML('beforeend', elChildren);\n\t\t} else {\n\t\t\tel.append(elChildren);\n\t\t}\n\t});\n\n\treturn el;\n}\n\n/**\n * Проверить видимость элемента\n * @param {?Element} el\n * @returns boolean - вернет true, если элемент считается видимым\n */\nfunction isVisible(el?: Element) {\n\tif (!el) {\n\t\treturn false;\n\t}\n\n\tconst boundingClientRect = el.getBoundingClientRect();\n\treturn !!(boundingClientRect.width || boundingClientRect.height);\n}\n\n/**\n * Получить координаты элемента относительно документа\n * @param {Element} el\n * @returns {{top: number, left: number}} - координаты элемента относительно документа\n */\nfunction offset(el: Element): { top: number, left: number } {\n\tconst boundingClientRect = el.getBoundingClientRect();\n\n\treturn {\n\t\ttop: boundingClientRect.top + window.scrollY,\n\t\tleft: boundingClientRect.left + window.scrollX,\n\t};\n}\n\n/**\n * Получить значение css свойства элемента\n * @param {Element} el\n * @param {string} property - имя свойства\n * @return {string} - значение css стиля\n */\nfunction css(el: Element, property: string): string {\n\treturn window.getComputedStyle(el).getPropertyValue(property);\n}\n\n/**\n * Обернуть элемент и вернуть только что созданный элемент\n * @param {Element} el - элемент, который требуется обернуть\n * @param {string} tagName - имя тега элемента, в который треубется обернуть элемент\n * @returns {Element}\n */\nfunction wrap(el: Element, tagName: string): Element {\n\tconst elWrapper = document.createElement(tagName);\n\tel.after(elWrapper);\n\n\telWrapper.append(el);\n\n\treturn elWrapper;\n}\n\n/**\n * Найти и вернуть первый видимый элемент\n * @param {?Document|Element} el - корневой элемент поиска\n * @param selectors - см. параметр selectors в Document.querySelectorAll()\n * @returns {Element|null}\n */\nfunction querySelectorVisible(el: Element, selectors: string): Element | null {\n\treturn querySelectorAllArray(el, selectors).find(isVisible) || null;\n}\n\n/**\n * Найти и вернуть последний видимый элемент\n * @param {?Document|Element} el - корневой элемент поиска\n * @param selectors - см. параметр selectors в Document.querySelectorAll()\n * @returns {Element|null}\n */\nfunction querySelectorVisibleLast(el: Element, selectors: string): Element | null {\n\treturn querySelectorAllArray(el, selectors).findLast(isVisible) || null;\n}\n\n/**\n * Найти видимые элементы\n * @param {?Document|Element} el - корневой элемент поиска\n * @param selectors - см. параметр selectors в Document.querySelectorAll()\n * @returns {Element[]} - обратите внимание, возвращается не NodeList[], а Element[]\n */\nfunction querySelectorAllVisible(el: Element, selectors: string): Element[] {\n\treturn querySelectorAllArray(el, selectors).filter(isVisible);\n}\n\n/**\n * Найти элементы и вернуть в виде массива\n * @param {?Document|Element} el - корневой элемент поиска\n * @param selectors - см. параметр selectors в Document.querySelectorAll()\n * @returns {Element[]}\n */\nfunction querySelectorAllArray(el: Element, selectors: string): Element[] {\n\tif (!el) {\n\t\treturn [];\n\t}\n\n\treturn [...el.querySelectorAll(selectors)];\n}\n\n/**\n * Хранилище данных элемента\n * @param {Element} el\n * @param {string} contextName - контекст, обычно используется имя компонента\n * @param {?object | null} contextData - установить объект с данными, предыдущие данные будут заменены, установите null для удаления данных\n * @returns {?object} - вернет объект контекста или undefined, если данные контекста не найдены\n */\nfunction storage(\n\tel?: Element & { topData?: any },\n\tcontextName: string = 'common', contextData: object | null | undefined = undefined,\n): object | undefined {\n\tif (!el) {\n\t\treturn;\n\t}\n\n\tif (!el.topData) {\n\t\tel.topData = {};\n\t}\n\n\tif (contextData) {\n\t\tel.topData[contextName] = contextData;\n\t}\n\n\tif (contextData === null) {\n\t\tdelete el.topData[contextName];\n\t}\n\n\treturn el.topData[contextName];\n}\n\n/**\n * Очистить хранилище элемента\n */\nfunction storageClear(el?: Element & { topData?: any }) {\n\tif (!el) {\n\t\treturn;\n\t}\n\n\tdelete el.topData;\n}\n\nexport default {\n\tgenEl,\n\tisVisible,\n\toffset,\n\tcss,\n\twrap,\n\tquerySelectorVisible,\n\tquerySelectorVisibleLast,\n\tquerySelectorAllVisible,\n\tquerySelectorAllArray,\n\tstorage,\n\tstorageClear,\n};\n"],"names":["genEl","tagName","attrs","elsChildrens","el","name","elChildren","isVisible","boundingClientRect","offset","css","property","wrap","elWrapper","querySelectorVisible","selectors","querySelectorAllArray","querySelectorVisibleLast","querySelectorAllVisible","storage","contextName","contextData","storageClear","DOM"],"mappings":"AAWA,SAASA,EAAMC,GAAiBC,MAAeC,
|
|
1
|
+
{"version":3,"file":"dom.js","sources":["../../src/core/utils/dom.ts"],"sourcesContent":["/**\n * Функции для работы с работы с Document Object Model (DOM)\n */\n\n/**\n * Создать элемент\n * @param {string} tagName\n * @param {any} attrs - атрибуты\n * @param {Element[]} elsChildrens\n * @returns {Element} - созданный элемент\n */\nfunction genEl(tagName: string, attrs: any, ...elsChildrens: Element[] | string[]): Element {\n\tconst el: any = document.createElement(tagName);\n\n\tfor (const name in attrs) {\n\t\tif (name.indexOf('on') === 0) {\n\t\t\t// events\n\t\t\tel[name] = attrs[name];\n\t\t} else {\n\t\t\tel.setAttribute(name, attrs[name]);\n\t\t}\n\t}\n\n\telsChildrens.forEach((elChildren: Element | string) => {\n\t\tif (typeof (elChildren) === 'string') {\n\t\t\tel.insertAdjacentHTML('beforeend', elChildren);\n\t\t} else {\n\t\t\tel.append(elChildren);\n\t\t}\n\t});\n\n\treturn el;\n}\n\n/**\n * Проверить видимость элемента\n * @param {?Element} el\n * @returns boolean - вернет true, если элемент считается видимым\n */\nfunction isVisible(el?: Element) {\n\tif (!el) {\n\t\treturn false;\n\t}\n\n\tconst boundingClientRect = el.getBoundingClientRect();\n\treturn !!(boundingClientRect.width || boundingClientRect.height);\n}\n\n/**\n * Получить координаты элемента относительно документа\n * @param {Element} el\n * @returns {{top: number, left: number}} - координаты элемента относительно документа\n */\nfunction offset(el: Element): { top: number, left: number } {\n\tconst boundingClientRect = el.getBoundingClientRect();\n\n\treturn {\n\t\ttop: boundingClientRect.top + window.scrollY,\n\t\tleft: boundingClientRect.left + window.scrollX,\n\t};\n}\n\n/**\n * Получить значение css свойства элемента\n * @param {Element} el\n * @param {string} property - имя свойства\n * @return {string} - значение css стиля\n */\nfunction css(el: Element, property: string): string {\n\treturn window.getComputedStyle(el).getPropertyValue(property);\n}\n\n/**\n * Обернуть элемент и вернуть только что созданный элемент\n * @param {Element} el - элемент, который требуется обернуть\n * @param {string} tagName - имя тега элемента, в который треубется обернуть элемент\n * @returns {Element}\n */\nfunction wrap(el: Element, tagName: string): Element {\n\tconst elWrapper = document.createElement(tagName);\n\tel.after(elWrapper);\n\n\telWrapper.append(el);\n\n\treturn elWrapper;\n}\n\n/**\n * Найти и вернуть первый видимый элемент\n * @param {?Document|Element} el - корневой элемент поиска\n * @param selectors - см. параметр selectors в Document.querySelectorAll()\n * @returns {Element|null}\n */\nfunction querySelectorVisible(el: Element, selectors: string): Element | null {\n\treturn querySelectorAllArray(el, selectors).find(isVisible) || null;\n}\n\n/**\n * Найти и вернуть последний видимый элемент\n * @param {?Document|Element} el - корневой элемент поиска\n * @param selectors - см. параметр selectors в Document.querySelectorAll()\n * @returns {Element|null}\n */\nfunction querySelectorVisibleLast(el: Element, selectors: string): Element | null {\n\treturn querySelectorAllArray(el, selectors).findLast(isVisible) || null;\n}\n\n/**\n * Найти видимые элементы\n * @param {?Document|Element} el - корневой элемент поиска\n * @param selectors - см. параметр selectors в Document.querySelectorAll()\n * @returns {Element[]} - обратите внимание, возвращается не NodeList[], а Element[]\n */\nfunction querySelectorAllVisible(el: Element | Document, selectors: string): Element[] {\n\treturn querySelectorAllArray(el, selectors).filter(isVisible);\n}\n\n/**\n * Найти элементы и вернуть в виде массива\n * @param {?Document|Element} el - корневой элемент поиска\n * @param selectors - см. параметр selectors в Document.querySelectorAll()\n * @returns {Element[]}\n */\nfunction querySelectorAllArray(el: Element | Document, selectors: string): Element[] {\n\tif (!el) {\n\t\treturn [];\n\t}\n\n\treturn [...el.querySelectorAll(selectors)];\n}\n\n/**\n * Хранилище данных элемента\n * @param {Element} el\n * @param {string} contextName - контекст, обычно используется имя компонента\n * @param {?object | null} contextData - установить объект с данными, предыдущие данные будут заменены, установите null для удаления данных\n * @returns {?object} - вернет объект контекста или undefined, если данные контекста не найдены\n */\nfunction storage(\n\tel?: Element & { topData?: any },\n\tcontextName: string = 'common', contextData: object | null | undefined = undefined,\n): object | undefined {\n\tif (!el) {\n\t\treturn;\n\t}\n\n\tif (!el.topData) {\n\t\tel.topData = {};\n\t}\n\n\tif (contextData) {\n\t\tel.topData[contextName] = contextData;\n\t}\n\n\tif (contextData === null) {\n\t\tdelete el.topData[contextName];\n\t}\n\n\treturn el.topData[contextName];\n}\n\n/**\n * Очистить хранилище элемента\n */\nfunction storageClear(el?: Element & { topData?: any }) {\n\tif (!el) {\n\t\treturn;\n\t}\n\n\tdelete el.topData;\n}\n\nexport default {\n\tgenEl,\n\tisVisible,\n\toffset,\n\tcss,\n\twrap,\n\tquerySelectorVisible,\n\tquerySelectorVisibleLast,\n\tquerySelectorAllVisible,\n\tquerySelectorAllArray,\n\tstorage,\n\tstorageClear,\n};\n"],"names":["genEl","tagName","attrs","elsChildrens","el","name","elChildren","isVisible","boundingClientRect","offset","css","property","wrap","elWrapper","querySelectorVisible","selectors","querySelectorAllArray","querySelectorVisibleLast","querySelectorAllVisible","storage","contextName","contextData","storageClear","DOM"],"mappings":"AAWA,SAASA,EAAMC,GAAiBC,MAAeC,GAA6C;AACrF,QAAAC,IAAU,SAAS,cAAcH,CAAO;AAE9C,aAAWI,KAAQH;AAClB,IAAIG,EAAK,QAAQ,IAAI,MAAM,IAEvBD,EAAAC,CAAI,IAAIH,EAAMG,CAAI,IAErBD,EAAG,aAAaC,GAAMH,EAAMG,CAAI,CAAC;AAItB,SAAAF,EAAA,QAAQ,CAACG,MAAiC;AAClD,IAAA,OAAQA,KAAgB,WACxBF,EAAA,mBAAmB,aAAaE,CAAU,IAE7CF,EAAG,OAAOE,CAAU;AAAA,EACrB,CACA,GAEMF;AACR;AAOA,SAASG,EAAUH,GAAc;AAChC,MAAI,CAACA;AACG,WAAA;AAGF,QAAAI,IAAqBJ,EAAG;AAC9B,SAAO,CAAC,EAAEI,EAAmB,SAASA,EAAmB;AAC1D;AAOA,SAASC,EAAOL,GAA4C;AACrD,QAAAI,IAAqBJ,EAAG;AAEvB,SAAA;AAAA,IACN,KAAKI,EAAmB,MAAM,OAAO;AAAA,IACrC,MAAMA,EAAmB,OAAO,OAAO;AAAA,EAAA;AAEzC;AAQA,SAASE,EAAIN,GAAaO,GAA0B;AACnD,SAAO,OAAO,iBAAiBP,CAAE,EAAE,iBAAiBO,CAAQ;AAC7D;AAQA,SAASC,EAAKR,GAAaH,GAA0B;AAC9C,QAAAY,IAAY,SAAS,cAAcZ,CAAO;AAChD,SAAAG,EAAG,MAAMS,CAAS,GAElBA,EAAU,OAAOT,CAAE,GAEZS;AACR;AAQA,SAASC,EAAqBV,GAAaW,GAAmC;AAC7E,SAAOC,EAAsBZ,GAAIW,CAAS,EAAE,KAAKR,CAAS,KAAK;AAChE;AAQA,SAASU,EAAyBb,GAAaW,GAAmC;AACjF,SAAOC,EAAsBZ,GAAIW,CAAS,EAAE,SAASR,CAAS,KAAK;AACpE;AAQA,SAASW,EAAwBd,GAAwBW,GAA8B;AACtF,SAAOC,EAAsBZ,GAAIW,CAAS,EAAE,OAAOR,CAAS;AAC7D;AAQA,SAASS,EAAsBZ,GAAwBW,GAA8B;AACpF,SAAKX,IAIE,CAAC,GAAGA,EAAG,iBAAiBW,CAAS,CAAC,IAHjC;AAIT;AASA,SAASI,EACRf,GACAgB,IAAsB,UAAUC,IAAyC,QACpD;AACrB,MAAKjB;AAID,WAACA,EAAG,YACPA,EAAG,UAAU,KAGViB,MACAjB,EAAA,QAAQgB,CAAW,IAAIC,IAGvBA,MAAgB,QACZ,OAAAjB,EAAG,QAAQgB,CAAW,GAGvBhB,EAAG,QAAQgB,CAAW;AAC9B;AAKA,SAASE,EAAalB,GAAkC;AACvD,EAAKA,KAIL,OAAOA,EAAG;AACX;AAEA,MAAemB,IAAA;AAAA,EACd,OAAAvB;AAAA,EACA,WAAAO;AAAA,EACA,QAAAE;AAAA,EACA,KAAAC;AAAA,EACA,MAAAE;AAAA,EACA,sBAAAE;AAAA,EACA,0BAAAG;AAAA,EACA,yBAAAC;AAAA,EACA,uBAAAF;AAAA,EACA,SAAAG;AAAA,EACA,cAAAG;AACD;"}
|
package/utils/scroll.amd.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
define(["require","exports","../.chunks/forms-
|
|
1
|
+
define(["require","exports","../.chunks/forms-DujTMzoW.amd","./dom.amd"],function(l,e,o,i){"use strict";if(typeof r>"u")var r=window.Vue;const c=s=>{if(!s||!s.parentElement)return;if(o._window.dialogs){const t=s.closest(".ui-dialog");t!=null&&t.getBoundingClientRect()&&(t==null?void 0:t.getBoundingClientRect().bottom)>document.documentElement.clientHeight&&setTimeout(o._window.dialogs.onWindowResize)}const n=s.scrollHeight>s.offsetHeight;if(n?(s.parentElement.classList.add("has_scroll_container"),s.classList.add("has_scroll")):(s.parentElement.classList.remove("has_scroll_container"),s.classList.remove("has_scroll")),n){const t=i.default.offset(s).top-i.default.offset(s.parentElement).top;s.style.setProperty("--scroll-offset-top",t+"px");const a=s.offsetHeight;s.style.setProperty("--scroll-height",a+"px"),s.scrollTop>0?s.classList.add("has_scroll-started"):s.classList.remove("has_scroll-started"),s.scrollTop>=s.scrollHeight-s.offsetHeight?s.classList.add("has_scroll-finished"):s.classList.remove("has_scroll-finished")}};e.genHasScroll=c,Object.defineProperty(e,Symbol.toStringTag,{value:"Module"})});
|
|
2
2
|
//# sourceMappingURL=scroll.amd.js.map
|
package/utils/scroll.js
CHANGED
package/utils/window.amd.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
define(["require","exports","../.chunks/forms-
|
|
1
|
+
define(["require","exports","../.chunks/forms-DujTMzoW.amd"],function(o,e,i){"use strict";if(typeof n>"u")var n=window.Vue;e._window=i._window,Object.defineProperty(e,Symbol.toStringTag,{value:"Module"})});
|
|
2
2
|
//# sourceMappingURL=window.amd.js.map
|
package/utils/window.js
CHANGED
|
@@ -1,3 +0,0 @@
|
|
|
1
|
-
define(["require","exports","vue","../require/css.amd!../assets/forms.css"],function(O,u,e){"use strict";var A,W;if(typeof e>"u")var e=window.Vue;function S(){return"devicePixelRatio"in window&&window.devicePixelRatio>1}function E(){return!!navigator.userAgent.match(/Android|BlackBerry|iPhone|iPad|iPod|IEMobile|Opera Mini/i)}function C(){return navigator.userAgent.indexOf("Topvisor_App")!=-1}function z(){return navigator.userAgent.indexOf("Mac OS X")!==-1}function H(){const n=/Chrome|Android/.test(navigator.userAgent);let o=/Safari/.test(navigator.userAgent);return n&&o&&(o=!1),o}function I(){return z()?"⌘":"Ctrl"}class U{}const Y=100;let L;const w=new Map,g={width:window.innerWidth,height:window.innerHeight};function j(n){w.set(n,n)}function q(n){w.delete(n)}function K(n){clearTimeout(L),L=setTimeout(function(){n.topEvent={widthDiff:g.width-window.innerWidth,hightDiff:g.height-window.innerHeight},g.width=window.innerWidth,g.height=window.innerHeight,w.forEach(o=>o(n))},Y)}window.addEventListener("resize",K);const D={addOnReize:j,removeOnResize:q},G={widthForMobile:900,dateFormat:"Y-m-d",gmt:(A=new Date().toString().match(/GMT(\S+)/))==null?void 0:A[1]},Q={isMobile:!1,isMobileUA:!1,isRetina:!1,isApp:!1,isLandscape:!0,isPortrait:!1,size:0,dateFormat:"Y-m-d",gmt:(W=new Date().toString().match(/GMT(\S+)/))==null?void 0:W[1]},_=n=>{var o,a;if(!((a=(o=p.$)==null?void 0:o.ui)!=null&&a.tooltip)){console.info("Для работы v-top-tooltip требуется глобальная загрузка jQuery UI Tooltip");return}return p.$(n)},N=(n,o)=>{var s;const a=n.value??{};return a.content??=(s=o.props)==null?void 0:s.title,a.content=String(a.content).replace(/\r\n|\r|\n/g,"<br>"),a.position??={my:"bottom-18px",at:"top center"},a},X={mounted(n,o,a){var s;(s=_(n))==null||s.tooltip(N(o,a))},updated(n,o,a,s){var c;const i=N(o,a),t=(c=_(n))==null?void 0:c.tooltip("instance");t&&(t.options={...t.options,...i})},unmounted(n,o,a){var s;(s=_(n))==null||s.tooltip("destroy")}},B=typeof window>"u"?{}:window;class p{static L=e.reactive({Not_date:"Not date"});static page=B.page??{};static Page=U;static options=G;static state=e.reactive({...Q});static matchMediaIsMobile;static $=B.$;static appendStyle(o,a=""){let s="all";a==="m"&&(s="(max-width: "+this.options.widthForMobile+"px)"),a==="pc"&&(s="(min-width: "+this.options.widthForMobile+"px)");const i=document.createElement("style");i.innerHTML=o,i.media=s,document.head.append(i)}static install(o,a){p.defineOptions(a),o.provide("top-core",p),this.installDirectives(o)}static installDirectives(o){o.directive("top-tooltip",X)}static defineOptions(o){o!=null&&o.widthForMobile&&(this.options.widthForMobile=o.widthForMobile),o!=null&&o.dateFormat&&(this.options.dateFormat=o.dateFormat),o!=null&&o.gmt&&(this.options.gmt=o.gmt),p.setState()}static setState(){p.matchMediaIsMobile=window.matchMedia(`(max-width: ${p.options.widthForMobile}px)`),p.state.isMobileUA=E(),p.state.isRetina=S(),p.state.isApp=C(),p.state.dateFormat=this.options.dateFormat,p.state.gmt=this.options.gmt,p.setStateByWindowSize(),D.addOnReize(p.onResize),p.onResize(),p.saveToCookie()}static onResize(){p.setStateByWindowSize(),document.documentElement.style.setProperty("--100vh",window.innerHeight+"px")}static setStateByWindowSize(){var o;p.state.isMobile=!!((o=p.matchMediaIsMobile)!=null&&o.matches),p.state.isLandscape=window.innerWidth>window.innerHeight,p.state.isPortrait=!p.state.isLandscape,p.state.size=window.innerWidth>window.innerHeight?window.innerWidth:window.innerHeight,p.saveToCookie()}static saveToCookie(){const o=[1,window.innerWidth,window.innerHeight,window.devicePixelRatio,Number(p.state.isMobile),Number(p.state.isRetina)];document.cookie="device="+o.join(",")+"; path=/;"}}function J(n){return n.indexOf("T")===-1&&(n.length==10&&(n+=" 00:00:00"),n=n.replace(" ","T")+p.state.gmt),new Date(n)}function T(n=void 0,o=!0,a=0){let s;n!=null?s=new Date(n):s=new Date;const i=s.getFullYear(),t=String(s.getMonth()+1).padStart(2,"0"),c=s.getDate().toString().padStart(2,"0"),r=s.getHours().toString().padStart(2,"0"),b=s.getMinutes().toString().padStart(2,"0"),d=s.getSeconds().toString().padStart(2,"0");return s=i+"-"+t+"-"+c,a&&(s+=" "),a>=1&&(s+=r),a>=2&&(s+=":"+b),a>=3&&(s+=":"+d),o&&(s=y(s,a)),s}function y(n,o=2,a=p.L.Not_date){if((!n||n.substring(0,10)==="0000-00-00")&&a&&a!=="0000-00-00")return a;const s=p.state.dateFormat.toLowerCase();let i=n.substring(0,10);i.length===7&&(i+="-01"),i+=" 00:00",i=i.replace(/-/g,"/");const t=new Date(i);if(isNaN(Number(t)))return a;let c=s.replace("y",String(t.getFullYear()).padStart(2,"0")).replace("m",String(t.getMonth()+1).padStart(2,"0")).replace("d",String(t.getDate()).padStart(2,"0"));if(n.length>10)switch(o){case 1:c+=" "+n.substring(11,13);break;case 2:c+=" "+n.substring(11,16);break;case 3:c+=" "+n.substring(11,19);break}return c}function M(n,o=p.L.Not_date){if(!n)return o;if(n.match(/\d\d\d\d-\d\d-\d\d/))return n;const a=p.state.dateFormat.toLowerCase(),s=n.split(/\W/),i=a.split(/\W/);let t="",c="",r="";i.forEach((d,l)=>{switch(d){case"d":t=s[l];break;case"m":c=s[l];break;case"y":r=s[l];break}});let b=r+"-"+c+"-"+t;return b.match(/\d\d\d\d-\d\d-\d\d/)||(console.info("Неверный формат даты, будет возращена текущая дата, "+b),b=T(new Date().getTime(),!1).substring(0,10)),b}const Z={class:"top-avatar"},x=["src","title"],ee=["title"],te=e.defineComponent({__name:"avatar",props:{size:{default:64},image:{},nickname:{},isOnline:{type:Boolean},lastActiveTime:{}},setup(n){e.useCssVars(i=>({"566609b7":i.size+"px"}));const o=n,a={user:{Online:"Онлайн",LastSeen:"Заходил(а)"}},s=e.computed(()=>{if(o.isOnline)return a.user.Online;if(o.lastActiveTime)return a.user.LastSeen+": "+y(o.lastActiveTime,2)});return(i,t)=>(e.openBlock(),e.createElementBlock("div",Z,[e.createElementVNode("img",{class:"top-avatar_image",src:i.image,title:o.nickname+(s.value?`
|
|
2
|
-
${s.value}`:""),alt:""},null,8,x),i.isOnline?(e.openBlock(),e.createElementBlock("div",{key:0,class:"top-avatar_status",title:s.value},null,8,ee)):e.createCommentVNode("",!0)]))}}),oe={"top-avatar":"top-avatar","top-avatar_image":"top-avatar_image","top-avatar_status":"top-avatar_status"},h=(n,o)=>{const a=n.__vccOpts||n;for(const[s,i]of o)a[s]=i;return a},ae=h(te,[["__cssModules",{$style:oe}]]),ne={key:0,class:"top-ellipsis"},se=h(e.defineComponent({__name:"button",props:{color:{default:"blue"},styling:{default:""},size:{default:"s"},name:{},title:{},icon:{},icon2:{},href:{},disabled:{type:Boolean},isSubmit:{type:Boolean},isActive:{type:Boolean},isProgress:{type:Boolean}},setup(n){const o=n,a=e.computed(()=>o.href?"a":"button"),s=e.computed(()=>o.isSubmit?"submit":void 0);return(i,t)=>(e.openBlock(),e.createBlock(e.resolveDynamicComponent(a.value),{class:e.normalizeClass({"top-active":i.isActive,"top-disabled":i.disabled,"top-forms-focusable":!i.disabled,"top-button":!0,"top-button-progress":i.isProgress,[`top-size_${i.size}`]:!!i.size,[`top-color_${i.color}`]:!0,[`top-style_${i.styling}`]:!!i.styling,"top-button-withoutText":!i.$slots.default}),name:i.name,title:i.title,href:i.href,type:s.value,"data-top-icon":i.icon||void 0,"data-top-icon2":i.icon2||void 0,disabled:i.disabled||void 0,inProgress:i.isProgress},{default:e.withCtx(()=>[i.$slots.default?(e.openBlock(),e.createElementBlock("span",ne,[e.renderSlot(i.$slots,"default",{},()=>[e.createTextVNode(e.toDisplayString(i.icon?"":"Button"),1)])])):e.createCommentVNode("",!0),e.renderSlot(i.$slots,"html")]),_:3},8,["class","name","title","href","type","data-top-icon","data-top-icon2","disabled","inProgress"]))}}),[["__cssModules",{$style:{"top-button":"top-button","top-active":"top-active","top-button-progress":"top-button-progress",progress:"_progress_1hqxk_1","top-button-withoutText":"top-button-withoutText","top-color_blue":"top-color_blue","top-color_green":"top-color_green","top-color_orange":"top-color_orange","top-color_red":"top-color_red","top-color_pink":"top-color_pink","top-color_theme":"top-color_theme","top-style_outline":"top-style_outline","top-style_soft":"top-style_soft","top-style_transparent":"top-style_transparent","top-size_l":"top-size_l","top-size_xl":"top-size_xl"}}]]),ie={class:"top-forms-optionLabel"},k=h(e.defineComponent({__name:"controlLabel",props:{description:{},disabled:{type:Boolean}},setup(n){return(o,a)=>(e.openBlock(),e.createElementBlock("div",ie,[e.createElementVNode("div",{class:e.normalizeClass({"top-forms-optionLabel_title":!0,"top-forms-optionLabel_title-disabled":o.disabled})},[e.renderSlot(o.$slots,"default")],2),o.description?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(["top-forms-optionLabel_description",{"top-forms-optionLabel_description-disabled":o.disabled}])},e.toDisplayString(o.description),3)):e.createCommentVNode("",!0)]))}}),[["__cssModules",{$style:{"top-forms-optionLabel":"top-forms-optionLabel","top-forms-optionLabel_title":"top-forms-optionLabel_title","top-forms-optionLabel_title-disabled":"top-forms-optionLabel_title-disabled","top-forms-optionLabel_description":"top-forms-optionLabel_description","top-forms-optionLabel_description-disabled":"top-forms-optionLabel_description-disabled"}}]]),le=["name","value","indeterminate","disabled"],re=h(e.defineComponent({__name:"checkbox",props:e.mergeModels({modelValue:{type:[Boolean,Array,Set]},name:{},value:{},description:{},disabled:{type:Boolean},indeterminate:{type:Boolean},isError:{type:Boolean}},{modelValue:{type:Boolean},modelModifiers:{}}),emits:["update:modelValue"],setup(n){const o=e.useModel(n,"modelValue");return(a,s)=>(e.openBlock(),e.createElementBlock("label",{class:e.normalizeClass({"top-forms-optionWrapper":!0,"top-checkbox":!0,["top-checkbox_"+a.name]:!!a.name,"top-disabled":a.disabled,"top-error":a.isError&&!a.disabled})},[e.withDirectives(e.createElementVNode("input",{type:"checkbox",class:e.normalizeClass({"top-forms-focusable":!a.disabled,"top-forms-option":!0,"top-checkbox_input":!0,"top-error":a.isError&&!a.disabled}),name:a.name,"onUpdate:modelValue":s[0]||(s[0]=i=>o.value=i),value:a.value,indeterminate:a.indeterminate,disabled:a.disabled},null,10,le),[[e.vModelCheckbox,o.value]]),a.$slots.default?(e.openBlock(),e.createBlock(k,{key:0,description:a.description,disabled:a.disabled},{default:e.withCtx(()=>[e.renderSlot(a.$slots,"default")]),_:3},8,["description","disabled"])):e.createCommentVNode("",!0)],2))}}),[["__cssModules",{$style:{"top-checkbox":"top-checkbox","top-checkbox_input":"top-checkbox_input","top-error":"top-error"}}]]),de=["title"],F=h(e.defineComponent({__name:"hint",props:{hint:{}},setup(n){return(o,a)=>(e.openBlock(),e.createElementBlock("span",{class:"top-hint","data-top-icon":"",title:o.hint},null,8,de))}}),[["__cssModules",{$style:{"top-hint":"top-hint"}}]]),pe=["data-top-icon","data-top-icon2"],ce=["name","title","placeholder","disabled","readonly"],ue={key:2,class:"top-formsCaption"},V=h(e.defineComponent({inheritAttrs:!1,__name:"input",props:{modelValue:{},name:{},disabled:{type:Boolean},readonly:{type:Boolean},modificator:{},size:{default:"s"},isError:{type:Boolean},isLoading:{type:Boolean},icon:{},icon2:{},addCleaner:{type:Boolean},title:{},captionType:{default:""}},emits:["update:modelValue"],setup(n,{emit:o}){const a=n,s=o,i=e.computed({get(){return a.modelValue},set(r){s("update:modelValue",r)}}),t=e.computed(()=>a.addCleaner&&!a.title||a.captionType!==""?"":a.title),c=r=>{a.modelValue&&r.stopPropagation(),s("update:modelValue","")};return(r,b)=>(e.openBlock(),e.createElementBlock("label",{class:e.normalizeClass({"top-input":!0,["top-size_"+r.size]:!0,"top-disabled":r.disabled,["top-input-"+r.modificator]:!!r.modificator,"top-input-withCleaner":r.addCleaner&&i.value&&i.value!=="0000-00-00","top-formsCaptionWrapper":r.captionType!=="","top-formsCaptionWrapper-always":r.captionType==="top"}),"data-top-icon":r.icon,"data-top-icon2":r.icon2},[r.isLoading?(e.openBlock(),e.createBlock(e.unref(P),{key:0})):e.createCommentVNode("",!0),e.withDirectives(e.createElementVNode("input",e.mergeProps({type:"text",class:{"top-input_input":!0,["top-input_input-"+r.modificator]:!!r.modificator,"top-forms-focusable":!r.disabled,"top-error":r.isError},autocomplete:"off_always",name:r.name,"onUpdate:modelValue":b[0]||(b[0]=d=>i.value=d),title:r.title,placeholder:t.value,disabled:r.disabled,readonly:r.readonly,onKeydown:b[1]||(b[1]=e.withKeys(d=>(r.addCleaner||!!r.$slots.btn)&&c(d),["esc"]))},r.$attrs),null,16,ce),[[e.vModelText,i.value]]),r.addCleaner&&i.value&&i.value!=="0000-00-00"?(e.openBlock(),e.createElementBlock("span",{key:1,class:"top-input_cleaner","data-top-icon":"",onClick:e.withModifiers(c,["prevent"])})):e.createCommentVNode("",!0),r.captionType!==""?(e.openBlock(),e.createElementBlock("span",ue,e.toDisplayString(r.title),1)):e.createCommentVNode("",!0),e.renderSlot(r.$slots,"default")],10,pe))}}),[["__cssModules",{$style:{"top-input":"top-input","top-input_input":"top-input_input","top-input-withCleaner":"top-input-withCleaner","top-input_cleaner":"top-input_cleaner","top-loadbar":"top-loadbar"}}]]),me=["modelValue"],fe=!!document.documentElement.ontouchstart&&!!document.createElement("input").showPicker;let R=n=>{};const be=h(e.defineComponent({__name:"inputDate",props:{modelValue:{},name:{},disabled:{type:Boolean},readonly:{type:Boolean},modificator:{},size:{},isError:{type:Boolean},isLoading:{type:Boolean},icon:{},icon2:{default:""},addCleaner:{type:Boolean},title:{},captionType:{}},emits:["update:modelValue"],setup(n,{emit:o}){const a=n,s=o;e.onUnmounted(()=>{t&&t.datepicker("destroy")});const i=e.ref();let t;const c=e.computed({get(){return y(a.modelValue,2,"0000-00-00")},set(l){l=M(l,"0000-00-00"),s("update:modelValue",l)}});let r=l=>{R(l)},b=l=>{const m=M(l.target.value),f=y(m);if(!f||f===p.L.Not_date||l.target.value!==f){l.target.value=c.value;return}c.value=l.target.value};async function d(l){const m=await new Promise((f,v)=>O(["./datepicker-CDoo2d0x.amd"],f,v));R=m.oninput,t=m.connectDatepicker(l.target,{onSelect:()=>b(l)}),t&&t.datepicker("show")}return(l,m)=>e.unref(fe)?(e.openBlock(),e.createBlock(e.unref(V),e.mergeProps({key:0},l.$props,{modelValue:c.value,readonly:"",onClick:m[1]||(m[1]=f=>i.value.showPicker())}),{default:e.withCtx(()=>[e.createElementVNode("input",{ref_key:"el",ref:i,type:"date",class:"top-input_input-date",modelValue:l.modelValue,onChange:m[0]||(m[0]=f=>c.value=f.target.value),tabindex:"-1"},null,40,me)]),_:1},16,["modelValue"])):(e.openBlock(),e.createBlock(e.unref(V),e.mergeProps({key:1},l.$props,{modelValue:c.value,"onUpdate:modelValue":m[2]||(m[2]=f=>f===""?c.value="":""),onInput:e.unref(r),onFocusOnce:d,onChange:e.unref(b),modificator:"datepicker"}),null,16,["modelValue","onInput","onChange"]))}}),[["__cssModules",{$style:{"top-input-datepicker":"top-input-datepicker","top-input_input-date":"top-input_input-date"}}]]),he={class:"top-inputRange"},ve=e.createElementVNode("span",{class:"top-inputRange_dash"}," — ",-1),ye=h(e.defineComponent({__name:"inputRange",setup(n){return(o,a)=>(e.openBlock(),e.createElementBlock("div",he,[e.renderSlot(o.$slots,"from"),ve,e.renderSlot(o.$slots,"to")]))}}),[["__cssModules",{$style:{"top-inputRange":"top-inputRange","top-inputRange_dash":"top-inputRange_dash","top-input":"top-input"}}]]),ge=["name","value","disabled"],ke=h(e.defineComponent({__name:"radio",props:{modelValue:{},value:{},name:{},description:{},disabled:{type:Boolean},isError:{type:Boolean}},emits:["update:modelValue"],setup(n,{emit:o}){const a=n,s=o,i=e.computed({get(){return a.modelValue},set(t){s("update:modelValue",t)}});return(t,c)=>(e.openBlock(),e.createElementBlock("label",{class:e.normalizeClass({"top-forms-optionWrapper":!0,"top-radio":!0,["top-radio_"+t.name]:t.name!=="","top-disabled":t.disabled,"top-error":t.isError&&!t.disabled})},[e.withDirectives(e.createElementVNode("input",{type:"radio",class:e.normalizeClass({"top-forms-focusable":!t.disabled,"top-forms-option":!0,"top-radio_input":!0,"top-error":t.isError&&!t.disabled}),"onUpdate:modelValue":c[0]||(c[0]=r=>i.value=r),name:t.name,value:t.value,disabled:t.disabled},null,10,ge),[[e.vModelRadio,i.value]]),t.$slots.default?(e.openBlock(),e.createBlock(k,{key:0,description:t.description,disabled:t.disabled},{default:e.withCtx(()=>[e.renderSlot(t.$slots,"default")]),_:3},8,["description","disabled"])):e.createCommentVNode("",!0)],2))}}),[["__cssModules",{$style:{"top-radio":"top-radio","top-radio_input":"top-radio_input","top-error":"top-error"}}]]),$e=["name","value","disabled"],we=h(e.defineComponent({__name:"switcher",props:{modelValue:{type:[Boolean,Array,Set]},name:{},value:{},description:{},disabled:{type:Boolean},isError:{type:Boolean}},emits:["update:modelValue"],setup(n,{emit:o}){const a=n,s=o,i=e.computed({get(){return a.modelValue},set(t){s("update:modelValue",t)}});return(t,c)=>(e.openBlock(),e.createElementBlock("label",{class:e.normalizeClass({"top-forms-optionWrapper":!0,"top-checkboxSwitcher":!0,"top-disabled":t.disabled,"top-error":t.isError&&!t.disabled})},[e.withDirectives(e.createElementVNode("input",{type:"checkbox",class:e.normalizeClass({"top-forms-focusable":!t.disabled,"top-forms-option":!0,"top-checkboxSwitcher_input":!0,"top-error":t.isError&&!t.disabled}),"onUpdate:modelValue":c[0]||(c[0]=r=>i.value=r),name:t.name,value:t.value,disabled:t.disabled},null,10,$e),[[e.vModelCheckbox,i.value]]),t.$slots.default?(e.openBlock(),e.createBlock(k,{key:0,description:t.description,disabled:t.disabled},{default:e.withCtx(()=>[e.renderSlot(t.$slots,"default")]),_:3},8,["description","disabled"])):e.createCommentVNode("",!0)],2))}}),[["__cssModules",{$style:{"top-checkboxSwitcher":"top-checkboxSwitcher","top-checkboxSwitcher_input":"top-checkboxSwitcher_input","top-error":"top-error"}}]]),_e=["name","placeholder","disabled","readonly","rows"],Be={key:0,class:"top-textarea_pseudoContent"},Me=h(e.defineComponent({inheritAttrs:!1,__name:"textarea",props:{modelValue:{},name:{},placeholder:{},rows:{default:5},minHeight:{default:120},expandable:{type:Boolean},disabled:{type:Boolean},readonly:{type:Boolean},isError:{type:Boolean},hint:{}},emits:["update:modelValue"],setup(n,{emit:o}){e.useCssVars(t=>({c35baa86:t.minHeight+"px"}));const a=n,s=o,i=e.computed({get(){return a.modelValue},set(t){s("update:modelValue",t)}});return(t,c)=>{const r=e.resolveDirective("top-tooltip");return e.openBlock(),e.createElementBlock("label",{class:e.normalizeClass({"top-textarea":!0,["top-textarea-"+t.name]:t.name,"top-disabled":t.disabled})},[e.withDirectives(e.createElementVNode("textarea",e.mergeProps({type:"text",class:{"top-forms-focusable":!t.disabled,"top-textarea_textarea":!0,"top-textarea_textarea-expandable":t.expandable,"top-error":t.isError},autocomplete:"off_always",name:t.name,placeholder:t.placeholder,disabled:t.disabled,readonly:t.readonly,rows:t.expandable?void 0:t.rows},t.$attrs,{"onUpdate:modelValue":c[0]||(c[0]=b=>i.value=b)}),null,16,_e),[[e.vModelText,i.value]]),t.expandable?(e.openBlock(),e.createElementBlock("div",Be,e.toDisplayString(i.value+" "),1)):e.createCommentVNode("",!0),t.hint?e.withDirectives((e.openBlock(),e.createBlock(F,{key:1,class:"top-textarea_hint",hint:t.hint},null,8,["hint"])),[[r]]):e.createCommentVNode("",!0)],2)}}}),[["__cssModules",{$style:{"top-textarea":"top-textarea","top-textarea_textarea":"top-textarea_textarea","top-textarea_textarea-expandable":"top-textarea_textarea-expandable","top-textarea_pseudoContent":"top-textarea_pseudoContent","top-textarea_hint":"top-textarea_hint"}}]]),Ve=["data-value","data-top-icon","data-top-icon2"],Se=["name","disabled"],Ee=["label","disabled"],Ce=["value","selected","disabled"],ze=["value","selected","disabled"],Le={key:1,class:"top-formsCaption"},De=h(e.defineComponent({__name:"select",props:e.mergeModels({modelValue:{},options:{},name:{},disabled:{type:Boolean},icon:{},size:{default:"s"},addChanger:{type:Boolean},title:{},isError:{type:Boolean}},{modelValue:{required:!0},modelModifiers:{}}),emits:e.mergeModels(["update:modelValue"],["update:modelValue"]),setup(n,{emit:o}){const a=n,s=e.useModel(n,"modelValue"),i=e.computed(()=>{const d=new Map;return a.options.forEach((l,m)=>{if(typeof l=="string"&&(l=c(m,l)),l.children){const f=new Map;l.children.forEach((v,$)=>{typeof v=="string"&&(v=c($,v)),f.set(v.value,v)}),l={...l},l.children=f,d.set(l.value,l)}else d.set(l.value,l)}),d}),t=e.computed(()=>{const d=new Map;return i.value.forEach(l=>{if(!l.disabled){if(l.children){l.children.forEach(m=>{m.disabled||d.set(m.value,m)});return}d.set(l.value,l)}}),d}),c=(d,l)=>({value:d,title:l});e.watch([()=>a.modelValue,t],()=>{(s.value===null||s.value===void 0)&&t.value.size&&(console.warn("Пожалуйста, не передавайте в компонент Select значения null и undefined"),s.value=t.value.keys().next().value)},{immediate:!0});const r=e.computed(()=>{var d;return(d=t.value.get(s.value))==null?void 0:d.icon}),b=()=>{const d=[...t.value.keys()],m=(d.indexOf(s.value)+1)%d.length;s.value=d[m]};return(d,l)=>(e.openBlock(),e.createElementBlock("label",{class:e.normalizeClass({"top-select":!0,["top-select-"+d.name]:d.name,["top-size_"+d.size]:!0,"top-formsCaptionWrapper":!!d.title,"top-select-error":d.isError,"top-disabled":d.disabled}),"data-value":s.value,"data-top-icon":d.icon,"data-top-icon2":r.value},[e.withDirectives(e.createElementVNode("select",{class:e.normalizeClass({"top-forms-focusable":!d.disabled,"top-select_select":!0,"top-select_arrow":!0,"top-error":d.isError}),name:d.name,disabled:d.disabled,"onUpdate:modelValue":l[0]||(l[0]=m=>s.value=m)},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(i.value,([m,f])=>(e.openBlock(),e.createElementBlock(e.Fragment,null,[f.children?(e.openBlock(),e.createElementBlock("optgroup",{key:"group_"+m,label:f.title,disabled:f.disabled},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(f.children,([v,$])=>(e.openBlock(),e.createElementBlock("option",{key:v,value:v,selected:v===s.value,disabled:$.disabled},e.toDisplayString($.title),9,Ce))),128))],8,Ee)):(e.openBlock(),e.createElementBlock("option",{key:m??void 0,value:m,selected:m===s.value,disabled:f.disabled},e.toDisplayString(f.title),9,ze))],64))),256))],10,Se),[[e.vModelSelect,s.value]]),d.addChanger&&t.value.size&&!d.disabled?(e.openBlock(),e.createElementBlock("span",{key:0,class:"top-changer",onClick:b})):e.createCommentVNode("",!0),d.title?(e.openBlock(),e.createElementBlock("span",Le,e.toDisplayString(d.title),1)):e.createCommentVNode("",!0)],10,Ve))}}),[["__cssModules",{$style:{"top-select":"top-select","top-select-error":"top-select-error","top-select_select":"top-select_select","top-changer":"top-changer"}}]]),Ne={"top-loadbar":"top-loadbar"},Te={},Fe={class:"top-loadbar"};function Re(n,o){return e.openBlock(),e.createElementBlock("div",Fe)}const P=h(Te,[["render",Re],["__cssModules",{$style:Ne}]]);u.Button=se,u.ControlLabel=k,u.Core=p,u.Events=D,u.Hint=F,u.Input=V,u.Loadbar=P,u.Textarea=Me,u._export_sfc=h,u._window=B,u.avatar=ae,u.checkbox=re,u.dateFormat=y,u.dateUnformat=M,u.genDate=T,u.getCommandKeyLabel=I,u.inputDate=be,u.inputRange=ye,u.isApp=C,u.isMacOS=z,u.isMobile=E,u.isRetina=S,u.isSafari=H,u.radio=ke,u.select=De,u.stringToDate=J,u.switcher=we});
|
|
3
|
-
//# sourceMappingURL=forms-DNRGCC9P.amd.js.map
|