@topvisor/ui 1.3.5-5.0 → 1.4.0-TopGroupSelector.10
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/core-BL-38XF7.es.js +196 -0
- package/.chunks/core-BL-38XF7.es.js.map +1 -0
- package/.chunks/core-BsPx05H9.amd.js +2 -0
- package/.chunks/core-BsPx05H9.amd.js.map +1 -0
- package/.chunks/{datepicker-CPrHVH4x.amd.js → datepicker-3coUsFW2.amd.js} +2 -2
- package/.chunks/{datepicker-CPrHVH4x.amd.js.map → datepicker-3coUsFW2.amd.js.map} +1 -1
- package/.chunks/{datepicker-J8Zg9mKt.es.js → datepicker-D1Hw3a3o.es.js} +14 -17
- package/.chunks/{datepicker-J8Zg9mKt.es.js.map → datepicker-D1Hw3a3o.es.js.map} +1 -1
- package/.chunks/dialog_regionSelectorRegions-1UVhgK2f.es.js +180 -0
- package/.chunks/dialog_regionSelectorRegions-1UVhgK2f.es.js.map +1 -0
- package/.chunks/dialog_regionSelectorRegions-CZ8IX7la.amd.js +2 -0
- package/.chunks/dialog_regionSelectorRegions-CZ8IX7la.amd.js.map +1 -0
- package/.chunks/{dialogs.vue_vue_type_script_setup_true_lang-DvkvzHEY.es.js → dialogs.vue_vue_type_script_setup_true_lang-DRbTG0vh.es.js} +111 -112
- package/.chunks/{dialogs.vue_vue_type_script_setup_true_lang-DvkvzHEY.es.js.map → dialogs.vue_vue_type_script_setup_true_lang-DRbTG0vh.es.js.map} +1 -1
- package/.chunks/dialogs.vue_vue_type_script_setup_true_lang-Dq9kWWMg.amd.js +2 -0
- package/.chunks/{dialogs.vue_vue_type_script_setup_true_lang-8KsNy0Bd.amd.js.map → dialogs.vue_vue_type_script_setup_true_lang-Dq9kWWMg.amd.js.map} +1 -1
- package/.chunks/forms-BseC3Ftz.es.js +2035 -0
- package/.chunks/{forms-COXAfg9G.es.js.map → forms-BseC3Ftz.es.js.map} +1 -1
- package/.chunks/forms-CUSCBQu3.amd.js +3 -0
- package/.chunks/{forms-DXX5M4DO.amd.js.map → forms-CUSCBQu3.amd.js.map} +1 -1
- package/.chunks/index-DLUtoTUg.amd.js +2 -0
- package/.chunks/index-DLUtoTUg.amd.js.map +1 -0
- package/.chunks/index-DkQWJkMc.es.js +54 -0
- package/.chunks/index-DkQWJkMc.es.js.map +1 -0
- package/.chunks/notice-Cl3ZgiHm.es.js +191 -0
- package/.chunks/{notice-P7CXfEuX.es.js.map → notice-Cl3ZgiHm.es.js.map} +1 -1
- package/.chunks/notice-DwjipV21.amd.js +4 -0
- package/.chunks/{notice-CSGn_jTM.amd.js.map → notice-DwjipV21.amd.js.map} +1 -1
- package/.chunks/page.vue_vue_type_script_setup_true_lang-CjIiZU-D.amd.js +2 -0
- package/.chunks/{page.vue_vue_type_script_setup_true_lang-DHPOnLj5.amd.js.map → page.vue_vue_type_script_setup_true_lang-CjIiZU-D.amd.js.map} +1 -1
- package/.chunks/page.vue_vue_type_script_setup_true_lang-CpRJQFD1.es.js +139 -0
- package/.chunks/{page.vue_vue_type_script_setup_true_lang-D9m45rLs.es.js.map → page.vue_vue_type_script_setup_true_lang-CpRJQFD1.es.js.map} +1 -1
- package/.chunks/policy.vue_vue_type_style_index_0_lang-BBDJEs5Q.es.js +496 -0
- package/.chunks/policy.vue_vue_type_style_index_0_lang-BBDJEs5Q.es.js.map +1 -0
- package/.chunks/policy.vue_vue_type_style_index_0_lang-DJOaMdBm.amd.js +2 -0
- package/.chunks/policy.vue_vue_type_style_index_0_lang-DJOaMdBm.amd.js.map +1 -0
- package/.chunks/popup-DRuyYFGB.amd.js +2 -0
- package/.chunks/popup-DRuyYFGB.amd.js.map +1 -0
- package/.chunks/popup-Jw_Yyg3U.es.js +470 -0
- package/.chunks/popup-Jw_Yyg3U.es.js.map +1 -0
- package/.chunks/popupHint.vue_vue_type_style_index_0_lang-DD59yF6H.es.js +209 -0
- package/.chunks/popupHint.vue_vue_type_style_index_0_lang-DD59yF6H.es.js.map +1 -0
- package/.chunks/popupHint.vue_vue_type_style_index_0_lang-DtiT6NE4.amd.js +2 -0
- package/.chunks/popupHint.vue_vue_type_style_index_0_lang-DtiT6NE4.amd.js.map +1 -0
- package/.chunks/utils-CzHUG_xz.amd.js +2 -0
- package/.chunks/{utils-D505nRsu.amd.js.map → utils-CzHUG_xz.amd.js.map} +1 -1
- package/.chunks/utils-D9nYQabE.amd.js +2 -0
- package/.chunks/{utils-DmxcQpWA.amd.js.map → utils-D9nYQabE.amd.js.map} +1 -1
- package/.chunks/{utils-CWm0zAtM.es.js → utils-Q69SXlnV.es.js} +192 -208
- package/.chunks/{utils-CWm0zAtM.es.js.map → utils-Q69SXlnV.es.js.map} +1 -1
- package/.chunks/{utils-Rbz9mxy6.es.js → utils-YrUExsH7.es.js} +23 -24
- package/.chunks/{utils-Rbz9mxy6.es.js.map → utils-YrUExsH7.es.js.map} +1 -1
- package/.chunks/{widgetInput.vue_vue_type_script_setup_true_lang-TVpBXc9F.es.js → widgetInput.vue_vue_type_script_setup_true_lang-CDkeKVqY.es.js} +2 -2
- package/.chunks/{widgetInput.vue_vue_type_script_setup_true_lang-TVpBXc9F.es.js.map → widgetInput.vue_vue_type_script_setup_true_lang-CDkeKVqY.es.js.map} +1 -1
- package/.chunks/{widgetInput.vue_vue_type_script_setup_true_lang-BU-FdL6d.amd.js → widgetInput.vue_vue_type_script_setup_true_lang-CkE912ll.amd.js} +2 -2
- package/.chunks/{widgetInput.vue_vue_type_script_setup_true_lang-BU-FdL6d.amd.js.map → widgetInput.vue_vue_type_script_setup_true_lang-CkE912ll.amd.js.map} +1 -1
- package/api/index.amd.js +1 -1
- package/api/index.amd.js.map +1 -1
- package/api/index.js +138 -133
- package/api/index.js.map +1 -1
- package/assets/dialog_regionSelectorRegions.css +1 -0
- package/assets/forms.css +1 -1
- package/assets/policy.css +1 -0
- package/assets/popupHint.css +1 -1
- package/assets/project.css +1 -1
- package/charts/charts.amd.js +1 -1
- package/charts/charts.amd.js.map +1 -1
- package/charts/charts.js +80 -80
- package/charts/charts.js.map +1 -1
- package/core/app.amd.js +1 -1
- package/core/app.amd.js.map +1 -1
- package/core/app.js +93 -96
- package/core/app.js.map +1 -1
- package/dialog/dialog.amd.js +1 -1
- package/dialog/dialog.amd.js.map +1 -1
- package/dialog/dialog.js +13 -13
- package/dialog/dialog.js.map +1 -1
- package/extra/extra.amd.js +1 -1
- package/extra/extra.amd.js.map +1 -1
- package/extra/extra.js +20 -23
- package/extra/extra.js.map +1 -1
- package/forms/forms.amd.js +1 -1
- package/forms/forms.js +5 -5
- package/formsExt/formsExt.amd.js +1 -1
- package/formsExt/formsExt.amd.js.map +1 -1
- package/formsExt/formsExt.js +180 -541
- package/formsExt/formsExt.js.map +1 -1
- package/layout/layout.amd.js +1 -1
- package/layout/layout.js +6 -6
- package/package.json +1 -1
- package/popup/popup.amd.js +1 -1
- package/popup/popup.amd.js.map +1 -1
- package/popup/popup.js +43 -46
- package/popup/popup.js.map +1 -1
- package/popup/worker.amd.js +1 -1
- package/popup/worker.amd.js.map +1 -1
- package/popup/worker.js +11 -9
- package/popup/worker.js.map +1 -1
- package/project/project.amd.js +1 -1
- package/project/project.amd.js.map +1 -1
- package/project/project.js +847 -579
- package/project/project.js.map +1 -1
- package/src/api/api/client/client.d.ts +5 -0
- package/src/api/api/mocker/index.d.ts +3 -3
- package/src/api/api/types/client/request.d.ts +6 -0
- package/src/api/api/types/mocker.d.ts +2 -2
- package/src/components/formsExt/formsExt.d.ts +1 -0
- package/src/components/formsExt/selector2/cache.d.ts +12 -0
- package/src/components/formsExt/selector2/composables/useAPI.d.ts +2033 -0
- package/src/components/formsExt/selector2/composables/useMenu.d.ts +2045 -5
- package/src/components/formsExt/selector2/itemMulti.vue.d.ts +3 -3
- package/src/components/formsExt/selector2/selector2.vue.d.ts +9 -3
- package/src/components/formsExt/selector2/types.d.ts +25 -8
- package/src/components/formsExt/selector2/utils.d.ts +16 -0
- package/src/components/popup/lib/popup.d.ts +1 -2
- package/src/components/popup/popup/opener/types.d.ts +6 -2
- package/src/components/popup/popup/types.d.ts +3 -2
- package/src/components/popup/popup.d.ts +1 -1
- package/src/components/project/groupSelector/folders/folders.vue.d.ts +18 -0
- package/src/components/project/groupSelector/folders/types.d.ts +63 -0
- package/src/components/project/groupSelector/folders/utils.d.ts +63 -0
- package/src/components/project/groupSelector/groupSelector.vue.d.ts +33 -0
- package/src/components/project/groupSelector/groups/groups.vue.d.ts +126 -0
- package/src/components/project/groupSelector/groups/types.d.ts +58 -0
- package/src/components/project/groupSelector/groups/utils.d.ts +92 -0
- package/src/components/project/groupSelector/stories/mocks/folders.d.ts +4 -0
- package/src/components/project/groupSelector/stories/mocks/groups.d.ts +2 -0
- package/src/components/project/groupSelector/stories/mocks/index.d.ts +7 -0
- package/src/components/project/groupSelector/types.d.ts +133 -0
- package/src/components/project/project.d.ts +5 -4
- package/src/components/project/{selectorRegion → regionSelector}/utils/utils.d.ts +3 -3
- package/src/core/utils/composables/useWatch.d.ts +32 -0
- package/tabs/tabs.amd.js +1 -1
- package/tabs/tabs.amd.js.map +1 -1
- package/tabs/tabs.js +24 -24
- package/tabs/tabs.js.map +1 -1
- package/tabsView/tabsView.amd.js +1 -1
- package/tabsView/tabsView.amd.js.map +1 -1
- package/tabsView/tabsView.js +131 -133
- package/tabsView/tabsView.js.map +1 -1
- package/utils/clipboard.amd.js +1 -1
- package/utils/clipboard.js +1 -1
- 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/lodash.amd.js +1 -1
- package/utils/lodash.js +1 -1
- package/utils/price.amd.js +1 -1
- package/utils/price.js +1 -1
- package/utils/scroll.amd.js +1 -1
- package/utils/scroll.amd.js.map +1 -1
- package/utils/scroll.js +14 -14
- package/utils/scroll.js.map +1 -1
- package/utils/searchers.amd.js +1 -1
- package/utils/searchers.js +3 -3
- package/utils/string.amd.js +1 -1
- package/utils/string.amd.js.map +1 -1
- package/utils/string.js +3 -7
- package/utils/string.js.map +1 -1
- package/.chunks/core-CaWxDXrZ.es.js +0 -197
- package/.chunks/core-CaWxDXrZ.es.js.map +0 -1
- package/.chunks/core-DmO1i1Ua.amd.js +0 -2
- package/.chunks/core-DmO1i1Ua.amd.js.map +0 -1
- package/.chunks/dialog_selectorRegions-DoEjgXtb.es.js +0 -190
- package/.chunks/dialog_selectorRegions-DoEjgXtb.es.js.map +0 -1
- package/.chunks/dialog_selectorRegions-DzufTzj9.amd.js +0 -2
- package/.chunks/dialog_selectorRegions-DzufTzj9.amd.js.map +0 -1
- package/.chunks/dialogs.vue_vue_type_script_setup_true_lang-8KsNy0Bd.amd.js +0 -2
- package/.chunks/forms-COXAfg9G.es.js +0 -2047
- package/.chunks/forms-DXX5M4DO.amd.js +0 -3
- package/.chunks/index-BEI7XZmU.amd.js +0 -2
- package/.chunks/index-BEI7XZmU.amd.js.map +0 -1
- package/.chunks/index-igPkes8X.es.js +0 -48
- package/.chunks/index-igPkes8X.es.js.map +0 -1
- package/.chunks/listItem.vue_vue_type_script_setup_true_lang--W1RouXP.es.js +0 -199
- package/.chunks/listItem.vue_vue_type_script_setup_true_lang--W1RouXP.es.js.map +0 -1
- package/.chunks/listItem.vue_vue_type_script_setup_true_lang-DzV225TL.amd.js +0 -2
- package/.chunks/listItem.vue_vue_type_script_setup_true_lang-DzV225TL.amd.js.map +0 -1
- package/.chunks/menu.vue_vue_type_style_index_0_lang-BiyxTfdE.es.js +0 -112
- package/.chunks/menu.vue_vue_type_style_index_0_lang-BiyxTfdE.es.js.map +0 -1
- package/.chunks/menu.vue_vue_type_style_index_0_lang-D3OAqOqX.amd.js +0 -2
- package/.chunks/menu.vue_vue_type_style_index_0_lang-D3OAqOqX.amd.js.map +0 -1
- package/.chunks/notice-CSGn_jTM.amd.js +0 -4
- package/.chunks/notice-P7CXfEuX.es.js +0 -194
- package/.chunks/opener.vue_vue_type_script_setup_true_lang-DRzrTv7Q.es.js +0 -36
- package/.chunks/opener.vue_vue_type_script_setup_true_lang-DRzrTv7Q.es.js.map +0 -1
- package/.chunks/opener.vue_vue_type_script_setup_true_lang-gNZhYkDf.amd.js +0 -2
- package/.chunks/opener.vue_vue_type_script_setup_true_lang-gNZhYkDf.amd.js.map +0 -1
- package/.chunks/page.vue_vue_type_script_setup_true_lang-D9m45rLs.es.js +0 -143
- package/.chunks/page.vue_vue_type_script_setup_true_lang-DHPOnLj5.amd.js +0 -2
- package/.chunks/popup-CF4k7j3U.amd.js +0 -2
- package/.chunks/popup-CF4k7j3U.amd.js.map +0 -1
- package/.chunks/popup-G7FYKscC.es.js +0 -485
- package/.chunks/popup-G7FYKscC.es.js.map +0 -1
- package/.chunks/popupHint.vue_vue_type_style_index_0_lang-Cce9ZdtW.amd.js +0 -2
- package/.chunks/popupHint.vue_vue_type_style_index_0_lang-Cce9ZdtW.amd.js.map +0 -1
- package/.chunks/utils-D505nRsu.amd.js +0 -2
- package/.chunks/utils-DmxcQpWA.amd.js +0 -2
- package/assets/dialog_selectorRegions.css +0 -1
- package/assets/formsExt.css +0 -1
- package/assets/listItem.css +0 -1
- package/assets/menu.css +0 -1
- package/src/components/popup/popup/opener.vue.d.ts +0 -17
- /package/src/components/project/{selectorCompetitors/selectorCompetitors.vue.d.ts → competitorSelector/competitorSelector.vue.d.ts} +0 -0
- /package/src/components/project/{selectorCompetitors → competitorSelector}/composables.d.ts +0 -0
- /package/src/components/project/{selectorCompetitors → competitorSelector}/types.d.ts +0 -0
- /package/src/components/project/{selectorRegion → regionSelector}/composables/compare.d.ts +0 -0
- /package/src/components/project/{selectorRegion → regionSelector}/composables/selectRegion.d.ts +0 -0
- /package/src/components/project/{selectorRegion → regionSelector}/composables/selectSearcher.d.ts +0 -0
- /package/src/components/project/{selectorRegion → regionSelector}/composables/selectorRegion.d.ts +0 -0
- /package/src/components/project/{selectorRegion/dialog_selectorRegions/dialog_selectorRegions.vue.d.ts → regionSelector/dialog_regionSelectorRegions/dialog_regionSelectorRegions.vue.d.ts} +0 -0
- /package/src/components/project/{selectorRegion/dialog_selectorRegions → regionSelector/dialog_regionSelectorRegions}/types.d.ts +0 -0
- /package/src/components/project/{selectorRegion/selectorRegion.vue.d.ts → regionSelector/regionSelector.vue.d.ts} +0 -0
- /package/src/components/project/{selectorRegion → regionSelector}/types.d.ts +0 -0
- /package/src/components/project/{selectorRegion → regionSelector}/utils/consts.d.ts +0 -0
package/formsExt/formsExt.js
CHANGED
|
@@ -1,16 +1,7 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
import { defineComponent as C, ref as B, computed as M, createElementBlock as b, openBlock as u, normalizeClass as L, createCommentVNode as k, createElementVNode as z, toDisplayString as I, createVNode as D, withKeys as q, withModifiers as F, createBlock as $, createSlots as G, withCtx as T, createTextVNode as E, watch as S, toRef as O, mergeProps as J, mergeModels as N, useModel as W, Fragment as R, renderList as H, renderSlot as P, resolveDirective as ee, unref as f, withDirectives as te, resolveDynamicComponent as oe } from "vue";
|
|
7
|
-
import { q as le, c as U, _ as se, j as ae, n as re, d as ne, u as ie, C as Q, r as ue } from "../.chunks/forms-COXAfg9G.es.js";
|
|
8
|
-
import { _ as de, a as j } from "../.chunks/listItem.vue_vue_type_script_setup_true_lang--W1RouXP.es.js";
|
|
9
|
-
import { _ as pe } from "../.chunks/widgetInput.vue_vue_type_script_setup_true_lang-TVpBXc9F.es.js";
|
|
10
|
-
/* empty css */
|
|
11
|
-
import { invertKeyboardLayout as ce } from "../utils/keyboard.js";
|
|
12
|
-
import { _ as Ue } from "../.chunks/menu.vue_vue_type_style_index_0_lang-BiyxTfdE.es.js";
|
|
13
|
-
const me = { class: "top-editArea_footer" }, Re = /* @__PURE__ */ C({
|
|
1
|
+
import { defineComponent as v, ref as $, computed as F, createElementBlock as c, openBlock as s, normalizeClass as V, createCommentVNode as b, createElementVNode as h, toDisplayString as m, createVNode as z, withKeys as T, withModifiers as g, createBlock as p, createSlots as w, withCtx as f, createTextVNode as E, watch as x, toRef as L, mergeProps as M, mergeModels as A, useModel as C, Fragment as G, renderList as S, renderSlot as I, unref as N } from "vue";
|
|
2
|
+
import { g as U, e as B, _ as q, h as R, j as D } from "../.chunks/forms-BseC3Ftz.es.js";
|
|
3
|
+
import { c as ne, I as ue, a as de, _ as ce, b as me } from "../.chunks/policy.vue_vue_type_style_index_0_lang-BBDJEs5Q.es.js";
|
|
4
|
+
const O = { class: "top-editArea_footer" }, ee = /* @__PURE__ */ v({
|
|
14
5
|
__name: "editArea",
|
|
15
6
|
props: {
|
|
16
7
|
defaultValue: { default: "" },
|
|
@@ -35,94 +26,94 @@ const me = { class: "top-editArea_footer" }, Re = /* @__PURE__ */ C({
|
|
|
35
26
|
maxLength: {}
|
|
36
27
|
},
|
|
37
28
|
emits: ["submit", "close", "clickOnTitle"],
|
|
38
|
-
setup(
|
|
39
|
-
const
|
|
40
|
-
|
|
41
|
-
},
|
|
42
|
-
if (
|
|
43
|
-
|
|
29
|
+
setup(e, { emit: t }) {
|
|
30
|
+
const o = e, a = t, i = $(o.defaultValue), r = $(o.isFocused), n = F(() => i.value !== o.defaultValue), l = (y) => {
|
|
31
|
+
a("submit", y), i.value = o.defaultValue;
|
|
32
|
+
}, d = () => {
|
|
33
|
+
if (o.forceShowCloseBtn && !n.value) {
|
|
34
|
+
a("close");
|
|
44
35
|
return;
|
|
45
36
|
}
|
|
46
|
-
|
|
47
|
-
},
|
|
48
|
-
|
|
37
|
+
i.value = o.defaultValue;
|
|
38
|
+
}, H = () => {
|
|
39
|
+
o.attachToKeyboard && a("clickOnTitle");
|
|
49
40
|
};
|
|
50
|
-
return (
|
|
51
|
-
class:
|
|
41
|
+
return (y, u) => (s(), c("div", {
|
|
42
|
+
class: V({
|
|
52
43
|
"top-editArea": !0,
|
|
53
|
-
"top-editArea-attachedToKeyboard":
|
|
44
|
+
"top-editArea-attachedToKeyboard": e.attachToKeyboard
|
|
54
45
|
})
|
|
55
46
|
}, [
|
|
56
|
-
|
|
47
|
+
e.title ? (s(), c("div", {
|
|
57
48
|
key: 0,
|
|
58
49
|
class: "top-editArea_title",
|
|
59
|
-
onClick:
|
|
60
|
-
},
|
|
61
|
-
|
|
62
|
-
class:
|
|
50
|
+
onClick: u[0] || (u[0] = (k) => H())
|
|
51
|
+
}, m(e.title), 1)) : b("", !0),
|
|
52
|
+
h("div", {
|
|
53
|
+
class: V({
|
|
63
54
|
"top-editArea_form": !0,
|
|
64
55
|
"top-forms-focusable": !0,
|
|
65
56
|
"top-as-input": !0,
|
|
66
|
-
"top-error":
|
|
67
|
-
"top-focus":
|
|
57
|
+
"top-error": e.isError,
|
|
58
|
+
"top-focus": r.value
|
|
68
59
|
})
|
|
69
60
|
}, [
|
|
70
|
-
|
|
71
|
-
modelValue:
|
|
72
|
-
"onUpdate:modelValue":
|
|
73
|
-
name:
|
|
74
|
-
placeholder:
|
|
75
|
-
rows:
|
|
76
|
-
minHeight:
|
|
77
|
-
expandable:
|
|
78
|
-
disabled:
|
|
79
|
-
readonly:
|
|
80
|
-
isError:
|
|
81
|
-
hint:
|
|
61
|
+
z(U, {
|
|
62
|
+
modelValue: i.value,
|
|
63
|
+
"onUpdate:modelValue": u[1] || (u[1] = (k) => i.value = k),
|
|
64
|
+
name: e.name,
|
|
65
|
+
placeholder: e.placeholder,
|
|
66
|
+
rows: e.rows,
|
|
67
|
+
minHeight: e.minHeight,
|
|
68
|
+
expandable: e.expandable,
|
|
69
|
+
disabled: e.disabled,
|
|
70
|
+
readonly: e.readonly,
|
|
71
|
+
isError: e.isError,
|
|
72
|
+
hint: e.hint,
|
|
82
73
|
class: "top-editArea_element",
|
|
83
|
-
onFocus:
|
|
84
|
-
onBlur:
|
|
74
|
+
onFocus: u[2] || (u[2] = () => r.value = !0),
|
|
75
|
+
onBlur: u[3] || (u[3] = () => r.value = !1),
|
|
85
76
|
onKeyup: [
|
|
86
|
-
|
|
87
|
-
|
|
77
|
+
T(d, ["esc"]),
|
|
78
|
+
u[4] || (u[4] = T(g((k) => l(i.value), ["ctrl"]), ["enter"]))
|
|
88
79
|
]
|
|
89
80
|
}, null, 8, ["modelValue", "name", "placeholder", "rows", "minHeight", "expandable", "disabled", "readonly", "isError", "hint"]),
|
|
90
|
-
|
|
91
|
-
|
|
81
|
+
h("div", O, [
|
|
82
|
+
n.value || e.forceShowCloseBtn ? (s(), p(B, {
|
|
92
83
|
key: 0,
|
|
93
|
-
icon:
|
|
84
|
+
icon: y.$core.state.isMobile ? "" : "",
|
|
94
85
|
class: "top-editArea_button",
|
|
95
86
|
color: "theme",
|
|
96
87
|
styling: "soft",
|
|
97
|
-
onClick:
|
|
98
|
-
},
|
|
99
|
-
|
|
88
|
+
onClick: d
|
|
89
|
+
}, w({ _: 2 }, [
|
|
90
|
+
y.$core.state.isMobile ? void 0 : {
|
|
100
91
|
name: "default",
|
|
101
|
-
fn:
|
|
102
|
-
E(
|
|
92
|
+
fn: f(() => [
|
|
93
|
+
E(m(e.cancelText), 1)
|
|
103
94
|
]),
|
|
104
95
|
key: "0"
|
|
105
96
|
}
|
|
106
|
-
]), 1032, ["icon"])) :
|
|
107
|
-
|
|
97
|
+
]), 1032, ["icon"])) : b("", !0),
|
|
98
|
+
n.value ? (s(), p(B, {
|
|
108
99
|
key: 1,
|
|
109
100
|
class: "top-editArea_button",
|
|
110
|
-
icon:
|
|
111
|
-
onClick:
|
|
112
|
-
},
|
|
113
|
-
|
|
101
|
+
icon: y.$core.state.isMobile ? "" : "",
|
|
102
|
+
onClick: u[5] || (u[5] = (k) => l(i.value))
|
|
103
|
+
}, w({ _: 2 }, [
|
|
104
|
+
y.$core.state.isMobile ? void 0 : {
|
|
114
105
|
name: "default",
|
|
115
|
-
fn:
|
|
116
|
-
E(
|
|
106
|
+
fn: f(() => [
|
|
107
|
+
E(m(e.submitText), 1)
|
|
117
108
|
]),
|
|
118
109
|
key: "0"
|
|
119
110
|
}
|
|
120
|
-
]), 1032, ["icon"])) :
|
|
111
|
+
]), 1032, ["icon"])) : b("", !0)
|
|
121
112
|
])
|
|
122
113
|
], 2)
|
|
123
114
|
], 2));
|
|
124
115
|
}
|
|
125
|
-
}),
|
|
116
|
+
}), P = { class: "top-editInput" }, te = /* @__PURE__ */ v({
|
|
126
117
|
__name: "editInput",
|
|
127
118
|
props: {
|
|
128
119
|
modelValue: {},
|
|
@@ -130,31 +121,31 @@ const me = { class: "top-editArea_footer" }, Re = /* @__PURE__ */ C({
|
|
|
130
121
|
button: {}
|
|
131
122
|
},
|
|
132
123
|
emits: ["update:modelValue"],
|
|
133
|
-
setup(
|
|
134
|
-
const
|
|
135
|
-
|
|
136
|
-
|
|
124
|
+
setup(e, { emit: t }) {
|
|
125
|
+
const o = e, a = $(o.modelValue);
|
|
126
|
+
x(L(o.modelValue), () => {
|
|
127
|
+
a.value = o.modelValue;
|
|
137
128
|
});
|
|
138
|
-
const
|
|
139
|
-
|
|
129
|
+
const i = t, r = () => {
|
|
130
|
+
i("update:modelValue", a.value);
|
|
140
131
|
};
|
|
141
|
-
return (
|
|
142
|
-
|
|
143
|
-
onKeydownCapture:
|
|
144
|
-
onKeydown:
|
|
145
|
-
modelValue:
|
|
146
|
-
"onUpdate:modelValue":
|
|
132
|
+
return (n, l) => (s(), c("div", P, [
|
|
133
|
+
z(q, M(e.input, {
|
|
134
|
+
onKeydownCapture: l[0] || (l[0] = T(g((d) => a.value = e.modelValue, ["stop"]), ["esc"])),
|
|
135
|
+
onKeydown: T(g(r, ["stop"]), ["enter"]),
|
|
136
|
+
modelValue: a.value,
|
|
137
|
+
"onUpdate:modelValue": l[1] || (l[1] = (d) => a.value = d)
|
|
147
138
|
}), null, 16, ["onKeydown", "modelValue"]),
|
|
148
|
-
|
|
139
|
+
a.value !== e.modelValue ? (s(), p(B, M({
|
|
149
140
|
key: 0,
|
|
150
141
|
icon: "",
|
|
151
142
|
styling: "soft"
|
|
152
|
-
},
|
|
143
|
+
}, e.button, { onClick: r }), null, 16)) : b("", !0)
|
|
153
144
|
]));
|
|
154
145
|
}
|
|
155
|
-
}),
|
|
146
|
+
}), K = /* @__PURE__ */ v({
|
|
156
147
|
__name: "optionGroup",
|
|
157
|
-
props: /* @__PURE__ */
|
|
148
|
+
props: /* @__PURE__ */ A({
|
|
158
149
|
modelValue: {},
|
|
159
150
|
items: {},
|
|
160
151
|
size: { default: "s" },
|
|
@@ -167,72 +158,71 @@ const me = { class: "top-editArea_footer" }, Re = /* @__PURE__ */ C({
|
|
|
167
158
|
modelModifiers: {}
|
|
168
159
|
}),
|
|
169
160
|
emits: ["update:modelValue"],
|
|
170
|
-
setup(
|
|
171
|
-
const
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
Array.isArray(o.value) ? o.value.find((g) => !a.includes(g)) && (o.value = o.value.filter((g) => a.includes(g))) : a.includes(o.value) || (o.value = a[0] ?? ""), (r = (c = l.value) == null ? void 0 : c.querySelector(".radioGroup_item-selected")) == null || r.scrollIntoView();
|
|
161
|
+
setup(e) {
|
|
162
|
+
const t = C(e, "modelValue"), o = e, a = $(null);
|
|
163
|
+
x(t, () => {
|
|
164
|
+
const r = o.items.map((n) => n.value);
|
|
165
|
+
Array.isArray(t.value) ? t.value.find((l) => !r.includes(l)) && (t.value = t.value.filter((l) => r.includes(l))) : r.includes(t.value) || (t.value = r[0] ?? ""), a.value?.querySelector(".radioGroup_item-selected")?.scrollIntoView();
|
|
176
166
|
}, { immediate: !0 });
|
|
177
|
-
const
|
|
178
|
-
return (
|
|
167
|
+
const i = "optionGroup-" + Math.random();
|
|
168
|
+
return (r, n) => (s(), c("div", {
|
|
179
169
|
ref_key: "elRef",
|
|
180
|
-
ref:
|
|
181
|
-
class:
|
|
170
|
+
ref: a,
|
|
171
|
+
class: V({
|
|
182
172
|
"top-optionGroup": !0,
|
|
183
|
-
["top-optionGroup-showIndicator_" + Number(
|
|
173
|
+
["top-optionGroup-showIndicator_" + Number(e.showIndicator)]: !0,
|
|
184
174
|
"top-scrollBarXHidding": !0,
|
|
185
|
-
["top-size_" +
|
|
186
|
-
"top-error":
|
|
175
|
+
["top-size_" + e.size]: !!e.size,
|
|
176
|
+
"top-error": e.isError
|
|
187
177
|
})
|
|
188
178
|
}, [
|
|
189
|
-
Array.isArray(
|
|
190
|
-
class:
|
|
191
|
-
"top-optionGroup_item-selected":
|
|
179
|
+
Array.isArray(t.value) ? (s(!0), c(G, { key: 0 }, S(e.items, (l) => (s(), p(R, {
|
|
180
|
+
class: V({
|
|
181
|
+
"top-optionGroup_item-selected": t.value.includes(l.value),
|
|
192
182
|
"top-optionGroup_item": !0
|
|
193
183
|
}),
|
|
194
|
-
modelValue:
|
|
195
|
-
"onUpdate:modelValue":
|
|
196
|
-
value:
|
|
197
|
-
title:
|
|
198
|
-
disabled:
|
|
199
|
-
isError:
|
|
200
|
-
"data-top-icon":
|
|
201
|
-
},
|
|
202
|
-
|
|
184
|
+
modelValue: t.value,
|
|
185
|
+
"onUpdate:modelValue": n[0] || (n[0] = (d) => t.value = d),
|
|
186
|
+
value: l.value,
|
|
187
|
+
title: l.title,
|
|
188
|
+
disabled: l.disabled,
|
|
189
|
+
isError: e.isError,
|
|
190
|
+
"data-top-icon": l.icon
|
|
191
|
+
}, w({ _: 2 }, [
|
|
192
|
+
l.label ? {
|
|
203
193
|
name: "default",
|
|
204
|
-
fn:
|
|
205
|
-
E(
|
|
194
|
+
fn: f(() => [
|
|
195
|
+
E(m(l.label), 1)
|
|
206
196
|
]),
|
|
207
197
|
key: "0"
|
|
208
198
|
} : void 0
|
|
209
|
-
]), 1032, ["class", "modelValue", "value", "title", "disabled", "isError", "data-top-icon"]))), 256)) : (
|
|
210
|
-
class:
|
|
211
|
-
"top-optionGroup_item-selected":
|
|
199
|
+
]), 1032, ["class", "modelValue", "value", "title", "disabled", "isError", "data-top-icon"]))), 256)) : (s(!0), c(G, { key: 1 }, S(e.items, (l) => (s(), p(D, {
|
|
200
|
+
class: V({
|
|
201
|
+
"top-optionGroup_item-selected": l.value === t.value,
|
|
212
202
|
"top-optionGroup_item": !0
|
|
213
203
|
}),
|
|
214
|
-
modelValue:
|
|
215
|
-
"onUpdate:modelValue":
|
|
216
|
-
name:
|
|
217
|
-
value:
|
|
218
|
-
title:
|
|
219
|
-
disabled:
|
|
220
|
-
isError:
|
|
221
|
-
"data-top-icon":
|
|
222
|
-
},
|
|
223
|
-
|
|
204
|
+
modelValue: t.value,
|
|
205
|
+
"onUpdate:modelValue": n[1] || (n[1] = (d) => t.value = d),
|
|
206
|
+
name: i,
|
|
207
|
+
value: l.value,
|
|
208
|
+
title: l.title,
|
|
209
|
+
disabled: l.disabled,
|
|
210
|
+
isError: e.isError,
|
|
211
|
+
"data-top-icon": l.icon
|
|
212
|
+
}, w({ _: 2 }, [
|
|
213
|
+
l.label ? {
|
|
224
214
|
name: "default",
|
|
225
|
-
fn:
|
|
226
|
-
E(
|
|
215
|
+
fn: f(() => [
|
|
216
|
+
E(m(l.label), 1)
|
|
227
217
|
]),
|
|
228
218
|
key: "0"
|
|
229
219
|
} : void 0
|
|
230
220
|
]), 1032, ["class", "modelValue", "value", "title", "disabled", "isError", "data-top-icon"]))), 256))
|
|
231
221
|
], 2));
|
|
232
222
|
}
|
|
233
|
-
}),
|
|
223
|
+
}), oe = /* @__PURE__ */ v({
|
|
234
224
|
__name: "radioGroup",
|
|
235
|
-
props: /* @__PURE__ */
|
|
225
|
+
props: /* @__PURE__ */ A({
|
|
236
226
|
modelValue: {},
|
|
237
227
|
items: {},
|
|
238
228
|
size: {},
|
|
@@ -245,26 +235,26 @@ const me = { class: "top-editArea_footer" }, Re = /* @__PURE__ */ C({
|
|
|
245
235
|
modelModifiers: {}
|
|
246
236
|
}),
|
|
247
237
|
emits: ["update:modelValue"],
|
|
248
|
-
setup(
|
|
249
|
-
const
|
|
250
|
-
return (
|
|
238
|
+
setup(e) {
|
|
239
|
+
const t = C(e, "modelValue");
|
|
240
|
+
return (o, a) => (s(), p(K, {
|
|
251
241
|
class: "top-radioGroup",
|
|
252
|
-
modelValue:
|
|
253
|
-
"onUpdate:modelValue":
|
|
254
|
-
items:
|
|
255
|
-
size:
|
|
256
|
-
showIndicator:
|
|
257
|
-
isError:
|
|
242
|
+
modelValue: t.value,
|
|
243
|
+
"onUpdate:modelValue": a[0] || (a[0] = (i) => t.value = i),
|
|
244
|
+
items: o.$props.items,
|
|
245
|
+
size: o.$props.size,
|
|
246
|
+
showIndicator: o.$props.showIndicator,
|
|
247
|
+
isError: o.$props.isError
|
|
258
248
|
}, {
|
|
259
|
-
default:
|
|
260
|
-
|
|
249
|
+
default: f(() => [
|
|
250
|
+
I(o.$slots, "default")
|
|
261
251
|
]),
|
|
262
252
|
_: 3
|
|
263
253
|
}, 8, ["modelValue", "items", "size", "showIndicator", "isError"]));
|
|
264
254
|
}
|
|
265
|
-
}),
|
|
255
|
+
}), le = /* @__PURE__ */ v({
|
|
266
256
|
__name: "checkboxGroup",
|
|
267
|
-
props: /* @__PURE__ */
|
|
257
|
+
props: /* @__PURE__ */ A({
|
|
268
258
|
modelValue: {},
|
|
269
259
|
items: {},
|
|
270
260
|
size: {},
|
|
@@ -277,408 +267,54 @@ const me = { class: "top-editArea_footer" }, Re = /* @__PURE__ */ C({
|
|
|
277
267
|
modelModifiers: {}
|
|
278
268
|
}),
|
|
279
269
|
emits: ["update:modelValue"],
|
|
280
|
-
setup(
|
|
281
|
-
const
|
|
282
|
-
return (
|
|
270
|
+
setup(e) {
|
|
271
|
+
const t = C(e, "modelValue");
|
|
272
|
+
return (o, a) => (s(), p(K, {
|
|
283
273
|
class: "top-checkboxGroup",
|
|
284
|
-
modelValue:
|
|
285
|
-
"onUpdate:modelValue":
|
|
286
|
-
items:
|
|
287
|
-
size:
|
|
288
|
-
showIndicator:
|
|
289
|
-
isError:
|
|
274
|
+
modelValue: t.value,
|
|
275
|
+
"onUpdate:modelValue": a[0] || (a[0] = (i) => t.value = i),
|
|
276
|
+
items: o.$props.items,
|
|
277
|
+
size: o.$props.size,
|
|
278
|
+
showIndicator: o.$props.showIndicator,
|
|
279
|
+
isError: o.$props.isError
|
|
290
280
|
}, {
|
|
291
|
-
default:
|
|
292
|
-
|
|
281
|
+
default: f(() => [
|
|
282
|
+
I(o.$slots, "default")
|
|
293
283
|
]),
|
|
294
284
|
_: 3
|
|
295
285
|
}, 8, ["modelValue", "items", "size", "showIndicator", "isError"]));
|
|
296
286
|
}
|
|
297
|
-
}),
|
|
298
|
-
__name: "itemMulti",
|
|
299
|
-
props: {
|
|
300
|
-
id: {},
|
|
301
|
-
name: {}
|
|
302
|
-
},
|
|
303
|
-
emits: ["delete"],
|
|
304
|
-
setup(s) {
|
|
305
|
-
return (o, t) => (u(), b("div", ve, [
|
|
306
|
-
E(I(o.name) + " ", 1),
|
|
307
|
-
z("span", {
|
|
308
|
-
class: "top-selector2_itemMultiDelete",
|
|
309
|
-
"data-top-icon": "",
|
|
310
|
-
onClick: t[0] || (t[0] = (l) => o.$emit("delete", o.id)),
|
|
311
|
-
onMousedown: t[1] || (t[1] = F(() => {
|
|
312
|
-
}, ["stop"]))
|
|
313
|
-
}, null, 32)
|
|
314
|
-
]));
|
|
315
|
-
}
|
|
316
|
-
}), he = (s, o, t, l) => {
|
|
317
|
-
const m = B([]), a = /* @__PURE__ */ new Map(), c = B(!1);
|
|
318
|
-
let r = "", n;
|
|
319
|
-
s && !s.params.limit && (s.params.limit = 100);
|
|
320
|
-
const g = async () => {
|
|
321
|
-
if (!s) return;
|
|
322
|
-
let V;
|
|
323
|
-
if (l) {
|
|
324
|
-
V = JSON.stringify(s.params);
|
|
325
|
-
const _ = a.get(V);
|
|
326
|
-
if (_)
|
|
327
|
-
return _;
|
|
328
|
-
}
|
|
329
|
-
c.value = !0;
|
|
330
|
-
const y = await s.call();
|
|
331
|
-
if (c.value = !1, y.errors) return;
|
|
332
|
-
if (!Array.isArray(y.result)) {
|
|
333
|
-
console.warn("Array expected in `res.result`");
|
|
334
|
-
return;
|
|
335
|
-
}
|
|
336
|
-
const K = y.result.findIndex((_) => _.id === void 0 || _.name === void 0);
|
|
337
|
-
if (K !== -1) {
|
|
338
|
-
console.warn(`В result[${K}] нет id или name`);
|
|
339
|
-
return;
|
|
340
|
-
}
|
|
341
|
-
return V && a.set(V, y), y;
|
|
342
|
-
}, i = async (V) => {
|
|
343
|
-
if (!s) return;
|
|
344
|
-
if (V) {
|
|
345
|
-
if (!n || c.value) return;
|
|
346
|
-
s.params.offset = n;
|
|
347
|
-
} else
|
|
348
|
-
s.params.offset = 0;
|
|
349
|
-
o == null || o(r);
|
|
350
|
-
const y = await g();
|
|
351
|
-
y && (n = y.nextOffset, V ? m.value = m.value.concat(y.result) : m.value = y.result);
|
|
352
|
-
}, v = ne(() => i(!1), 200);
|
|
353
|
-
return {
|
|
354
|
-
apiRequest: s,
|
|
355
|
-
items: m,
|
|
356
|
-
isLoading: c,
|
|
357
|
-
load: i,
|
|
358
|
-
setSearchTextAndLoad: (V, y = !0) => {
|
|
359
|
-
s && (V.length < t || V === r && m.value.length || (r = V, y ? v() : i(!1)));
|
|
360
|
-
}
|
|
361
|
-
};
|
|
362
|
-
}, be = 0, X = null, Z = (s, o, t = !0) => t && o.id === X ? Array.isArray(s) ? s.some((l) => l.id === o.id && l.name === o.name) : o.name === s.name : Array.isArray(s) ? s.some((l) => l.id === o.id) : o.id === s.id, ge = (s, o, t, l, m, a, c, r, n) => {
|
|
363
|
-
const g = B(""), i = {
|
|
364
|
-
id: be,
|
|
365
|
-
name: ie().Common.All
|
|
366
|
-
}, v = () => {
|
|
367
|
-
g.value = "", n.items.value = [];
|
|
368
|
-
}, w = () => !(!n.apiRequest || c.value !== "inline" || g.value.length >= r), V = M(() => {
|
|
369
|
-
var d;
|
|
370
|
-
const e = [];
|
|
371
|
-
return !l && m.value && e.push(i), (d = t.value) == null || d.forEach((h) => e.push({ ...h })), e;
|
|
372
|
-
}), y = M(() => {
|
|
373
|
-
const e = g.value.toLowerCase(), d = ce(e);
|
|
374
|
-
let h = [];
|
|
375
|
-
if (V.value.forEach((p) => {
|
|
376
|
-
const A = p.name.toLowerCase();
|
|
377
|
-
(p.id === Number(e) || A.includes(e) || A.includes(d)) && (A === e || A === d ? h.unshift(p) : h.push(p));
|
|
378
|
-
}), h.push(...n.items.value), a.value && g.value && !h.find((p) => p.name.toLowerCase() === e)) {
|
|
379
|
-
const p = {
|
|
380
|
-
id: X,
|
|
381
|
-
name: g.value
|
|
382
|
-
};
|
|
383
|
-
n.items.value.length ? h.push(p) : h.unshift(p);
|
|
384
|
-
}
|
|
385
|
-
return l && (h = h.filter((p) => !Z(s.value, p))), h;
|
|
386
|
-
});
|
|
387
|
-
return {
|
|
388
|
-
searchText: g,
|
|
389
|
-
resetSearch: v,
|
|
390
|
-
genIsShort: w,
|
|
391
|
-
items: V,
|
|
392
|
-
itemsForShow: y,
|
|
393
|
-
selectItem: (e) => {
|
|
394
|
-
l && Array.isArray(s.value) ? Z(s.value, e) || (s.value = [...s.value, e]) : s.value = e, e.id === X && o("appendItem", e);
|
|
395
|
-
},
|
|
396
|
-
selectNextItem: () => {
|
|
397
|
-
if (!Array.isArray(s.value)) {
|
|
398
|
-
const d = (y.value.findIndex((h) => h.id === s.value.id) + 1) % y.value.length;
|
|
399
|
-
s.value = { ...y.value[d] };
|
|
400
|
-
}
|
|
401
|
-
},
|
|
402
|
-
deleteItemById: async (e) => {
|
|
403
|
-
Array.isArray(s.value) && (s.value = s.value.filter((d) => d.id !== e));
|
|
404
|
-
}
|
|
405
|
-
};
|
|
406
|
-
}, Ve = {
|
|
407
|
-
key: 0,
|
|
408
|
-
class: "top-selector2_activeItems"
|
|
409
|
-
}, Ae = {
|
|
410
|
-
key: 1,
|
|
411
|
-
class: "top-selector2_activeName top-ellipsis"
|
|
412
|
-
}, Te = {
|
|
413
|
-
key: 2,
|
|
414
|
-
class: "top-selector2_placeholder top-ellipsis"
|
|
415
|
-
}, Pe = /* @__PURE__ */ C({
|
|
416
|
-
__name: "selector2",
|
|
417
|
-
props: /* @__PURE__ */ N({
|
|
418
|
-
modelValue: {},
|
|
419
|
-
items: { default: () => [] },
|
|
420
|
-
title: {},
|
|
421
|
-
disabled: { type: Boolean },
|
|
422
|
-
modificator: {},
|
|
423
|
-
size: { default: "s" },
|
|
424
|
-
isError: { type: Boolean },
|
|
425
|
-
openByFocus: { type: Boolean },
|
|
426
|
-
searchType: { default: "popup" },
|
|
427
|
-
placeholder: {},
|
|
428
|
-
api: {},
|
|
429
|
-
apiSetSearchParams: {},
|
|
430
|
-
minLength: { default: 0 },
|
|
431
|
-
useCache: { type: Boolean },
|
|
432
|
-
appendSearchToResult: { type: Boolean },
|
|
433
|
-
multiselect: { type: Boolean },
|
|
434
|
-
appendAllValue: { type: Boolean },
|
|
435
|
-
addChanger: { type: Boolean },
|
|
436
|
-
buttonProps: {},
|
|
437
|
-
selectedAsPlaceholder: { type: Boolean }
|
|
438
|
-
}, {
|
|
439
|
-
modelValue: { required: !0 },
|
|
440
|
-
modelModifiers: {}
|
|
441
|
-
}),
|
|
442
|
-
emits: /* @__PURE__ */ N(["appendItem"], ["update:modelValue"]),
|
|
443
|
-
setup(s, { emit: o }) {
|
|
444
|
-
const t = s, l = W(s, "modelValue"), m = o, a = M(() => t.searchType === "inline" && t.multiselect || t.searchType === "inline" && Q.state.isMobile ? "popup" : t.searchType);
|
|
445
|
-
let c = 0;
|
|
446
|
-
a.value === "inline" && t.minLength && (c = t.minLength);
|
|
447
|
-
const r = he(t.api, t.apiSetSearchParams, c, t.useCache), n = ge(
|
|
448
|
-
l,
|
|
449
|
-
m,
|
|
450
|
-
O(t, "items"),
|
|
451
|
-
t.multiselect,
|
|
452
|
-
O(t, "appendAllValue"),
|
|
453
|
-
O(t, "appendSearchToResult"),
|
|
454
|
-
a,
|
|
455
|
-
c,
|
|
456
|
-
r
|
|
457
|
-
), g = M(() => t.buttonProps ? "TopButton" : a.value === "inline" ? "TopInput" : "div"), i = B(null), v = () => {
|
|
458
|
-
var e;
|
|
459
|
-
return (e = i.value) == null ? void 0 : e.popup;
|
|
460
|
-
};
|
|
461
|
-
r.apiRequest && S(n.searchText, () => {
|
|
462
|
-
var e;
|
|
463
|
-
r.setSearchTextAndLoad(n.searchText.value), a.value === "inline" && n.genIsShort() && ((e = v()) == null || e.close());
|
|
464
|
-
}), S(l, () => {
|
|
465
|
-
a.value === "inline" && n.resetSearch();
|
|
466
|
-
});
|
|
467
|
-
const w = M(() => {
|
|
468
|
-
var e;
|
|
469
|
-
return Array.isArray(l.value) || t.multiselect || !t.selectedAsPlaceholder && a.value !== "inline" ? t.placeholder : ((e = l.value) == null ? void 0 : e.name) || t.placeholder;
|
|
470
|
-
}), V = (e) => {
|
|
471
|
-
var p, A;
|
|
472
|
-
let d = !1;
|
|
473
|
-
switch (e.key) {
|
|
474
|
-
case "Delete":
|
|
475
|
-
case "Backspace":
|
|
476
|
-
Array.isArray(l.value) && (e.preventDefault(), e.stopPropagation(), l.value.pop());
|
|
477
|
-
break;
|
|
478
|
-
case "ArrowUp":
|
|
479
|
-
case "ArrowRight":
|
|
480
|
-
case "ArrowDown":
|
|
481
|
-
case "ArrowLeft":
|
|
482
|
-
case "Enter":
|
|
483
|
-
case " ":
|
|
484
|
-
d = !0;
|
|
485
|
-
break;
|
|
486
|
-
case "Escape":
|
|
487
|
-
a.value === "inline" && n.resetSearch();
|
|
488
|
-
break;
|
|
489
|
-
}
|
|
490
|
-
const h = e.key.length === 1 && !e.ctrlKey && !e.metaKey;
|
|
491
|
-
(a.value === "popup" || a.value === "inline") && h && (d = !0), (p = v()) != null && p.elPopup && (d = !1), d && (a.value === "popup" && (e.preventDefault(), e.stopPropagation(), h && (n.searchText.value || (n.searchText.value = e.key))), (A = e.currentTarget) == null || A.click());
|
|
492
|
-
}, y = (e) => {
|
|
493
|
-
e.preventDefault(), n.selectNextItem();
|
|
494
|
-
}, K = () => {
|
|
495
|
-
var e;
|
|
496
|
-
if (r.apiRequest) {
|
|
497
|
-
if (n.genIsShort()) {
|
|
498
|
-
(e = v()) == null || e.close();
|
|
499
|
-
return;
|
|
500
|
-
}
|
|
501
|
-
r.setSearchTextAndLoad(n.searchText.value, !1);
|
|
502
|
-
}
|
|
503
|
-
}, _ = () => {
|
|
504
|
-
a.value && n.searchText.value && n.resetSearch();
|
|
505
|
-
}, Y = (e) => {
|
|
506
|
-
const d = e.target;
|
|
507
|
-
d.scrollTop / (d.scrollHeight - d.offsetHeight) > 0.8 && r.load(!0);
|
|
508
|
-
};
|
|
509
|
-
return window.__STORYBOOK_PREVIEW__ && (S(
|
|
510
|
-
() => t.multiselect,
|
|
511
|
-
() => {
|
|
512
|
-
t.multiselect ? Array.isArray(l.value) || (l.value = [
|
|
513
|
-
{
|
|
514
|
-
id: 1,
|
|
515
|
-
name: "Выбери меня"
|
|
516
|
-
}
|
|
517
|
-
]) : Array.isArray(l.value) && (l.value = {
|
|
518
|
-
id: null,
|
|
519
|
-
name: ""
|
|
520
|
-
});
|
|
521
|
-
},
|
|
522
|
-
{ immediate: !0 }
|
|
523
|
-
), S(
|
|
524
|
-
() => t.searchType,
|
|
525
|
-
() => {
|
|
526
|
-
setTimeout(() => {
|
|
527
|
-
location.reload();
|
|
528
|
-
}, 500);
|
|
529
|
-
}
|
|
530
|
-
)), (e, d) => {
|
|
531
|
-
const h = ee("top-focus");
|
|
532
|
-
return u(), $(f(de), {
|
|
533
|
-
ref_key: "popupRef",
|
|
534
|
-
ref: i,
|
|
535
|
-
onOpen: d[2] || (d[2] = (p) => K()),
|
|
536
|
-
onClose: d[3] || (d[3] = (p) => _()),
|
|
537
|
-
onScrollContentList: d[4] || (d[4] = (p) => f(r) ? Y(p) : void 0),
|
|
538
|
-
notch: a.value !== "inline",
|
|
539
|
-
transitionDuration: 0,
|
|
540
|
-
openByFocus: a.value === "inline"
|
|
541
|
-
}, G({
|
|
542
|
-
opener: T(() => [
|
|
543
|
-
te((u(), $(oe(g.value), J(e.buttonProps, {
|
|
544
|
-
ref: "subcomponentSelector",
|
|
545
|
-
class: {
|
|
546
|
-
"top-selector2": !0,
|
|
547
|
-
"top-selector2-multiselect": e.multiselect,
|
|
548
|
-
["top-selector2-" + e.modificator]: !!e.modificator,
|
|
549
|
-
"top-as-input": !e.buttonProps,
|
|
550
|
-
"top-as-selector": !0,
|
|
551
|
-
["top-size_" + e.size]: !0,
|
|
552
|
-
"top-disabled": e.disabled,
|
|
553
|
-
"top-forms-focusable": !e.disabled,
|
|
554
|
-
"top-error": e.isError
|
|
555
|
-
},
|
|
556
|
-
tabindex: "0",
|
|
557
|
-
onKeydown: V,
|
|
558
|
-
placeholder: w.value,
|
|
559
|
-
modelValue: f(n).searchText.value,
|
|
560
|
-
"onUpdate:modelValue": d[0] || (d[0] = (p) => f(n).searchText.value = p)
|
|
561
|
-
}), {
|
|
562
|
-
default: T(() => [
|
|
563
|
-
e.multiselect ? (u(), b("div", Ve, [
|
|
564
|
-
(u(!0), b(R, null, H(l.value, (p) => (u(), $(ye, {
|
|
565
|
-
id: p.id,
|
|
566
|
-
name: p.name,
|
|
567
|
-
onDelete: f(n).deleteItemById
|
|
568
|
-
}, null, 8, ["id", "name", "onDelete"]))), 256))
|
|
569
|
-
])) : k("", !0),
|
|
570
|
-
a.value !== "inline" && !e.multiselect ? (u(), b("span", Ae, I(Array.isArray(l.value) ? "" : l.value.name), 1)) : k("", !0),
|
|
571
|
-
e.multiselect && !l.value.length ? (u(), b("span", Te, I(w.value), 1)) : k("", !0),
|
|
572
|
-
e.addChanger && !e.buttonProps && !e.multiselect && f(n).items.value.length > 1 && !e.disabled ? (u(), b("span", {
|
|
573
|
-
key: 3,
|
|
574
|
-
class: "top-changer top-changer-selector top-popup_widget",
|
|
575
|
-
onClick: y
|
|
576
|
-
})) : k("", !0)
|
|
577
|
-
]),
|
|
578
|
-
_: 1
|
|
579
|
-
}, 16, ["class", "placeholder", "modelValue"])), [
|
|
580
|
-
[
|
|
581
|
-
h,
|
|
582
|
-
e.isError,
|
|
583
|
-
void 0,
|
|
584
|
-
{ onupdate: !0 }
|
|
585
|
-
]
|
|
586
|
-
])
|
|
587
|
-
]),
|
|
588
|
-
contentList: T(() => {
|
|
589
|
-
var p;
|
|
590
|
-
return [
|
|
591
|
-
(u(!0), b(R, null, H(f(n).itemsForShow.value, (A) => (u(), $(f(j), {
|
|
592
|
-
class: L({
|
|
593
|
-
"top-active": !Array.isArray(l.value) && !e.multiselect && l.value.id === A.id && l.value.name === A.name
|
|
594
|
-
}),
|
|
595
|
-
key: A.id ?? void 0,
|
|
596
|
-
closeByClick: !e.multiselect || f(Q).state.isMobile,
|
|
597
|
-
onClick: (_e) => f(n).selectItem(A)
|
|
598
|
-
}, {
|
|
599
|
-
default: T(() => [
|
|
600
|
-
e.$slots.item ? P(e.$slots, "item", {
|
|
601
|
-
key: 0,
|
|
602
|
-
item: A
|
|
603
|
-
}) : (u(), b(R, { key: 1 }, [
|
|
604
|
-
E(I(A.name), 1)
|
|
605
|
-
], 64))
|
|
606
|
-
]),
|
|
607
|
-
_: 2
|
|
608
|
-
}, 1032, ["class", "closeByClick", "onClick"]))), 128)),
|
|
609
|
-
!f(r).isLoading.value && !f(n).itemsForShow.value.length ? (u(), $(f(j), {
|
|
610
|
-
key: 0,
|
|
611
|
-
type: "regular"
|
|
612
|
-
}, {
|
|
613
|
-
default: T(() => [
|
|
614
|
-
E(I(e.$i18n.Common.No_results), 1)
|
|
615
|
-
]),
|
|
616
|
-
_: 1
|
|
617
|
-
})) : k("", !0),
|
|
618
|
-
f(r).isLoading.value && (e.searchType !== "popup" || (p = f(r).apiRequest) != null && p.params.offset) ? (u(), $(f(j), {
|
|
619
|
-
key: 1,
|
|
620
|
-
type: "regular"
|
|
621
|
-
}, {
|
|
622
|
-
default: T(() => [
|
|
623
|
-
D(f(ue), { type: "circles" })
|
|
624
|
-
]),
|
|
625
|
-
_: 1
|
|
626
|
-
})) : k("", !0)
|
|
627
|
-
];
|
|
628
|
-
}),
|
|
629
|
-
_: 2
|
|
630
|
-
}, [
|
|
631
|
-
a.value === "popup" ? {
|
|
632
|
-
name: "widget",
|
|
633
|
-
fn: T(() => {
|
|
634
|
-
var p;
|
|
635
|
-
return [
|
|
636
|
-
D(f(pe), {
|
|
637
|
-
title: "Поиск",
|
|
638
|
-
icon: "",
|
|
639
|
-
modelValue: f(n).searchText.value,
|
|
640
|
-
"onUpdate:modelValue": d[1] || (d[1] = (A) => f(n).searchText.value = A),
|
|
641
|
-
isLoading: f(r).isLoading.value && !((p = f(r).apiRequest) != null && p.params.offset),
|
|
642
|
-
placeholder: w.value
|
|
643
|
-
}, null, 8, ["modelValue", "isLoading", "placeholder"])
|
|
644
|
-
];
|
|
645
|
-
}),
|
|
646
|
-
key: "0"
|
|
647
|
-
} : void 0
|
|
648
|
-
]), 1032, ["notch", "openByFocus"]);
|
|
649
|
-
};
|
|
650
|
-
}
|
|
651
|
-
}), $e = ["data-top-icon"], ke = { class: "top-info_text" }, Ie = {
|
|
287
|
+
}), W = ["data-top-icon"], j = { class: "top-info_text" }, X = {
|
|
652
288
|
key: 0,
|
|
653
289
|
class: "top-info_value"
|
|
654
|
-
},
|
|
290
|
+
}, ae = /* @__PURE__ */ v({
|
|
655
291
|
__name: "info",
|
|
656
292
|
props: {
|
|
657
293
|
icon: {},
|
|
658
294
|
styling: { default: "default" },
|
|
659
295
|
size: { default: "default" }
|
|
660
296
|
},
|
|
661
|
-
setup(
|
|
662
|
-
return (
|
|
663
|
-
class:
|
|
297
|
+
setup(e) {
|
|
298
|
+
return (t, o) => (s(), c("div", {
|
|
299
|
+
class: V({
|
|
664
300
|
"top-info": !0,
|
|
665
|
-
["top-size_" +
|
|
666
|
-
["top-info-styling_" +
|
|
301
|
+
["top-size_" + e.size]: !0,
|
|
302
|
+
["top-info-styling_" + e.styling]: !0
|
|
667
303
|
}),
|
|
668
|
-
"data-top-icon":
|
|
304
|
+
"data-top-icon": e.icon
|
|
669
305
|
}, [
|
|
670
|
-
|
|
671
|
-
|
|
306
|
+
h("div", j, [
|
|
307
|
+
I(t.$slots, "default")
|
|
672
308
|
]),
|
|
673
|
-
|
|
674
|
-
|
|
675
|
-
])) :
|
|
676
|
-
], 10,
|
|
309
|
+
t.$slots.additional ? (s(), c("span", X, [
|
|
310
|
+
I(t.$slots, "additional")
|
|
311
|
+
])) : b("", !0)
|
|
312
|
+
], 10, W));
|
|
677
313
|
}
|
|
678
|
-
}),
|
|
314
|
+
}), J = {
|
|
679
315
|
key: 0,
|
|
680
316
|
class: "top-policy"
|
|
681
|
-
},
|
|
317
|
+
}, Q = { class: "top-policy_title" }, Y = ["innerHTML"], ie = /* @__PURE__ */ v({
|
|
682
318
|
__name: "policy",
|
|
683
319
|
props: {
|
|
684
320
|
title: {},
|
|
@@ -686,36 +322,39 @@ const me = { class: "top-editArea_footer" }, Re = /* @__PURE__ */ C({
|
|
|
686
322
|
acceptText: {}
|
|
687
323
|
},
|
|
688
324
|
emits: ["accept"],
|
|
689
|
-
setup(
|
|
690
|
-
const
|
|
691
|
-
|
|
325
|
+
setup(e, { emit: t }) {
|
|
326
|
+
const o = t, a = $(!0), i = () => {
|
|
327
|
+
a.value = !1, o("accept");
|
|
692
328
|
};
|
|
693
|
-
return (
|
|
694
|
-
|
|
695
|
-
|
|
329
|
+
return (r, n) => a.value ? (s(), c("div", J, [
|
|
330
|
+
h("div", Q, m(e.title), 1),
|
|
331
|
+
h("div", {
|
|
696
332
|
class: "top-policy_description",
|
|
697
|
-
innerHTML:
|
|
698
|
-
}, null, 8,
|
|
699
|
-
|
|
333
|
+
innerHTML: e.description
|
|
334
|
+
}, null, 8, Y),
|
|
335
|
+
z(N(B), {
|
|
700
336
|
size: "m",
|
|
701
|
-
onClick:
|
|
337
|
+
onClick: i
|
|
702
338
|
}, {
|
|
703
|
-
default:
|
|
704
|
-
E(
|
|
339
|
+
default: f(() => [
|
|
340
|
+
E(m(e.acceptText), 1)
|
|
705
341
|
]),
|
|
706
342
|
_: 1
|
|
707
343
|
})
|
|
708
|
-
])) :
|
|
344
|
+
])) : b("", !0);
|
|
709
345
|
}
|
|
710
346
|
});
|
|
711
347
|
export {
|
|
712
|
-
|
|
713
|
-
|
|
714
|
-
|
|
715
|
-
|
|
716
|
-
|
|
717
|
-
|
|
718
|
-
|
|
719
|
-
|
|
348
|
+
ne as ITEM_ID_ALL,
|
|
349
|
+
ue as ITEM_ID_NEW,
|
|
350
|
+
le as TopCheckboxGroup,
|
|
351
|
+
ee as TopEditArea,
|
|
352
|
+
te as TopEditInput,
|
|
353
|
+
ae as TopInfo,
|
|
354
|
+
de as TopMenu,
|
|
355
|
+
ie as TopPolicy,
|
|
356
|
+
oe as TopRadioGroup,
|
|
357
|
+
ce as TopSelector2,
|
|
358
|
+
me as apiSetSearchParamsFilter
|
|
720
359
|
};
|
|
721
360
|
//# sourceMappingURL=formsExt.js.map
|