@topvisor/ui 1.3.5-popupFromInput.0 → 1.4.0-TopGroupSelector.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.chunks/core-B9TwJi3h.amd.js +2 -0
- package/.chunks/core-B9TwJi3h.amd.js.map +1 -0
- package/.chunks/core-DVQVVUiP.es.js +196 -0
- package/.chunks/core-DVQVVUiP.es.js.map +1 -0
- package/.chunks/{datepicker-CGGp0VnN.es.js → datepicker-CrASsJeF.es.js} +14 -17
- package/.chunks/{datepicker-CGGp0VnN.es.js.map → datepicker-CrASsJeF.es.js.map} +1 -1
- package/.chunks/{datepicker-Bq_z2paN.amd.js → datepicker-bidhcksv.amd.js} +2 -2
- package/.chunks/{datepicker-Bq_z2paN.amd.js.map → datepicker-bidhcksv.amd.js.map} +1 -1
- package/.chunks/dialog_regionSelectorRegions-DJu5Y1WK.es.js +180 -0
- package/.chunks/dialog_regionSelectorRegions-DJu5Y1WK.es.js.map +1 -0
- package/.chunks/dialog_regionSelectorRegions-Dc-YGZ0l.amd.js +2 -0
- package/.chunks/dialog_regionSelectorRegions-Dc-YGZ0l.amd.js.map +1 -0
- package/.chunks/dialogs.vue_vue_type_script_setup_true_lang--Xstly2G.amd.js +2 -0
- package/.chunks/{dialogs.vue_vue_type_script_setup_true_lang-Bf0wXalT.amd.js.map → dialogs.vue_vue_type_script_setup_true_lang--Xstly2G.amd.js.map} +1 -1
- package/.chunks/{dialogs.vue_vue_type_script_setup_true_lang-DCVIoEeY.es.js → dialogs.vue_vue_type_script_setup_true_lang-BP6GFkkz.es.js} +111 -112
- package/.chunks/{dialogs.vue_vue_type_script_setup_true_lang-DCVIoEeY.es.js.map → dialogs.vue_vue_type_script_setup_true_lang-BP6GFkkz.es.js.map} +1 -1
- package/.chunks/forms--2-YQeWM.amd.js +3 -0
- package/.chunks/{forms-CNcrvkYD.amd.js.map → forms--2-YQeWM.amd.js.map} +1 -1
- package/.chunks/forms-Cwv0JCi5.es.js +2035 -0
- package/.chunks/{forms-BhbgRJ5I.es.js.map → forms-Cwv0JCi5.es.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-BCHrf2v6.es.js +191 -0
- package/.chunks/{notice-CpPhDTUb.es.js.map → notice-BCHrf2v6.es.js.map} +1 -1
- package/.chunks/notice-D1KO_E3H.amd.js +4 -0
- package/.chunks/{notice-BpLsm6Zh.amd.js.map → notice-D1KO_E3H.amd.js.map} +1 -1
- package/.chunks/page.vue_vue_type_script_setup_true_lang-DNs0udwC.amd.js +2 -0
- package/.chunks/{page.vue_vue_type_script_setup_true_lang-B-1LEQAz.amd.js.map → page.vue_vue_type_script_setup_true_lang-DNs0udwC.amd.js.map} +1 -1
- package/.chunks/page.vue_vue_type_script_setup_true_lang-D_ocBGzt.es.js +139 -0
- package/.chunks/{page.vue_vue_type_script_setup_true_lang-9abPBMpd.es.js.map → page.vue_vue_type_script_setup_true_lang-D_ocBGzt.es.js.map} +1 -1
- package/.chunks/policy.vue_vue_type_style_index_0_lang-B61ZEDWr.es.js +494 -0
- package/.chunks/policy.vue_vue_type_style_index_0_lang-B61ZEDWr.es.js.map +1 -0
- package/.chunks/policy.vue_vue_type_style_index_0_lang-BUIBGweg.amd.js +2 -0
- package/.chunks/policy.vue_vue_type_style_index_0_lang-BUIBGweg.amd.js.map +1 -0
- package/.chunks/popup-DJMBWRtl.es.js +468 -0
- package/.chunks/popup-DJMBWRtl.es.js.map +1 -0
- package/.chunks/popup-c8qgGOCv.amd.js +2 -0
- package/.chunks/popup-c8qgGOCv.amd.js.map +1 -0
- package/.chunks/popupHint.vue_vue_type_style_index_0_lang-Bp_-W068.es.js +209 -0
- package/.chunks/popupHint.vue_vue_type_style_index_0_lang-Bp_-W068.es.js.map +1 -0
- package/.chunks/popupHint.vue_vue_type_style_index_0_lang-D42xEF-j.amd.js +2 -0
- package/.chunks/popupHint.vue_vue_type_style_index_0_lang-D42xEF-j.amd.js.map +1 -0
- package/.chunks/{utils-D58EUoHa.es.js → utils-Bu-TI6uw.es.js} +192 -208
- package/.chunks/{utils-D58EUoHa.es.js.map → utils-Bu-TI6uw.es.js.map} +1 -1
- package/.chunks/utils-C6nWu0aQ.amd.js +2 -0
- package/.chunks/{utils-5uxIj2CI.amd.js.map → utils-C6nWu0aQ.amd.js.map} +1 -1
- package/.chunks/utils-DHyy_M2n.amd.js +2 -0
- package/.chunks/{utils-Bg_su8b-.amd.js.map → utils-DHyy_M2n.amd.js.map} +1 -1
- package/.chunks/{utils-UBgfsQ8v.es.js → utils-cls72V1c.es.js} +23 -24
- package/.chunks/{utils-UBgfsQ8v.es.js.map → utils-cls72V1c.es.js.map} +1 -1
- package/.chunks/{widgetInput.vue_vue_type_script_setup_true_lang-D6SVtg2Q.amd.js → widgetInput.vue_vue_type_script_setup_true_lang-B3soLr2U.amd.js} +2 -2
- package/.chunks/{widgetInput.vue_vue_type_script_setup_true_lang-D6SVtg2Q.amd.js.map → widgetInput.vue_vue_type_script_setup_true_lang-B3soLr2U.amd.js.map} +1 -1
- package/.chunks/{widgetInput.vue_vue_type_script_setup_true_lang-CSD2uMSW.es.js → widgetInput.vue_vue_type_script_setup_true_lang-HbtV9agA.es.js} +2 -2
- package/.chunks/{widgetInput.vue_vue_type_script_setup_true_lang-CSD2uMSW.es.js.map → widgetInput.vue_vue_type_script_setup_true_lang-HbtV9agA.es.js.map} +1 -1
- package/api/index.amd.js +1 -1
- package/api/index.amd.js.map +1 -1
- package/api/index.js +137 -134
- 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 +185 -534
- package/formsExt/formsExt.js.map +1 -1
- package/layout/layout.amd.js +1 -1
- package/layout/layout.js +6 -6
- package/package.json +2 -2
- 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 +3 -3
- 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 +869 -607
- 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/ext.d.ts +2 -2
- package/src/api/api/types/mocker.d.ts +2 -2
- package/src/components/forms/button/types.d.ts +6 -0
- package/src/components/formsExt/formsExt.d.ts +1 -0
- package/src/components/formsExt/libs/optionGroup/types.d.ts +1 -1
- package/src/components/formsExt/selector2/cache.d.ts +12 -0
- package/src/components/formsExt/selector2/composables/useAPI.d.ts +2036 -2
- 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 +11 -3
- package/src/components/formsExt/selector2/types.d.ts +39 -5
- package/src/components/formsExt/selector2/utils.d.ts +17 -0
- package/src/components/popup/lib/popup.d.ts +0 -1
- 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 +28 -0
- package/src/components/project/groupSelector/groups/groups.vue.d.ts +125 -0
- package/src/components/project/groupSelector/groups/types.d.ts +57 -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 +129 -0
- package/src/components/project/project.d.ts +15 -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-DcLw0dEO.amd.js +0 -2
- package/.chunks/core-DcLw0dEO.amd.js.map +0 -1
- package/.chunks/core-DpTLGhiK.es.js +0 -197
- package/.chunks/core-DpTLGhiK.es.js.map +0 -1
- package/.chunks/dialog_selectorRegions-BtAADQHf.es.js +0 -190
- package/.chunks/dialog_selectorRegions-BtAADQHf.es.js.map +0 -1
- package/.chunks/dialog_selectorRegions-DCrHvHDs.amd.js +0 -2
- package/.chunks/dialog_selectorRegions-DCrHvHDs.amd.js.map +0 -1
- package/.chunks/dialogs.vue_vue_type_script_setup_true_lang-Bf0wXalT.amd.js +0 -2
- package/.chunks/forms-BhbgRJ5I.es.js +0 -2045
- package/.chunks/forms-CNcrvkYD.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-QvP1d9jN.amd.js +0 -2
- package/.chunks/listItem.vue_vue_type_script_setup_true_lang-QvP1d9jN.amd.js.map +0 -1
- package/.chunks/listItem.vue_vue_type_script_setup_true_lang-xvzbyqai.es.js +0 -196
- package/.chunks/listItem.vue_vue_type_script_setup_true_lang-xvzbyqai.es.js.map +0 -1
- package/.chunks/menu.vue_vue_type_style_index_0_lang-C3Rr6ZyL.amd.js +0 -2
- package/.chunks/menu.vue_vue_type_style_index_0_lang-C3Rr6ZyL.amd.js.map +0 -1
- package/.chunks/menu.vue_vue_type_style_index_0_lang-dOeZ7an1.es.js +0 -112
- package/.chunks/menu.vue_vue_type_style_index_0_lang-dOeZ7an1.es.js.map +0 -1
- package/.chunks/notice-BpLsm6Zh.amd.js +0 -4
- package/.chunks/notice-CpPhDTUb.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-9abPBMpd.es.js +0 -143
- package/.chunks/page.vue_vue_type_script_setup_true_lang-B-1LEQAz.amd.js +0 -2
- package/.chunks/popup-BJj9BJP5.es.js +0 -485
- package/.chunks/popup-BJj9BJP5.es.js.map +0 -1
- package/.chunks/popup-CfXISjhC.amd.js +0 -2
- package/.chunks/popup-CfXISjhC.amd.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-5uxIj2CI.amd.js +0 -2
- package/.chunks/utils-Bg_su8b-.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 -16
- /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 B, ref as C, computed as S, createElementBlock as b, openBlock as p, normalizeClass as E, createCommentVNode as k, createElementVNode as M, toDisplayString as w, createVNode as D, withKeys as N, withModifiers as O, createBlock as T, createSlots as j, withCtx as A, createTextVNode as _, watch as L, toRef as P, mergeProps as J, mergeModels as H, useModel as U, Fragment as R, renderList as q, renderSlot as G, resolveDirective as Z, unref as f, withDirectives as x, resolveDynamicComponent as ee } from "vue";
|
|
7
|
-
import { q as te, c as F, _ as oe, j as le, n as se, d as ae, u as re, C as X, r as ne } from "../.chunks/forms-BhbgRJ5I.es.js";
|
|
8
|
-
import { _ as ie, a as W } from "../.chunks/listItem.vue_vue_type_script_setup_true_lang-xvzbyqai.es.js";
|
|
9
|
-
import { _ as ue } from "../.chunks/widgetInput.vue_vue_type_script_setup_true_lang-CSD2uMSW.es.js";
|
|
10
|
-
/* empty css */
|
|
11
|
-
import { invertKeyboardLayout as de } from "../utils/keyboard.js";
|
|
12
|
-
import { _ as qe } from "../.chunks/menu.vue_vue_type_style_index_0_lang-dOeZ7an1.es.js";
|
|
13
|
-
const pe = { class: "top-editArea_footer" }, Me = /* @__PURE__ */ B({
|
|
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-Cwv0JCi5.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-B61ZEDWr.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 pe = { class: "top-editArea_footer" }, Me = /* @__PURE__ */ B({
|
|
|
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":
|
|
57
|
+
"top-error": e.isError,
|
|
67
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
|
-
|
|
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
|
-
|
|
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 pe = { class: "top-editArea_footer" }, Me = /* @__PURE__ */ B({
|
|
|
130
121
|
button: {}
|
|
131
122
|
},
|
|
132
123
|
emits: ["update:modelValue"],
|
|
133
|
-
setup(
|
|
134
|
-
const
|
|
135
|
-
L(
|
|
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,66 +158,71 @@ const pe = { class: "top-editArea_footer" }, Me = /* @__PURE__ */ B({
|
|
|
167
158
|
modelModifiers: {}
|
|
168
159
|
}),
|
|
169
160
|
emits: ["update:modelValue"],
|
|
170
|
-
setup(
|
|
171
|
-
const
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
Array.isArray(e.value) ? e.value.find(($) => !r.includes($)) && (e.value = e.value.filter(($) => r.includes($))) : r.includes(e.value) || (e.value = r[0] ?? ""), (i = (a = s.value) == null ? void 0 : a.querySelector(".radioGroup_item-selected")) == null || i.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 (r,
|
|
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
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
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 ? {
|
|
193
|
+
name: "default",
|
|
194
|
+
fn: f(() => [
|
|
195
|
+
E(m(l.label), 1)
|
|
196
|
+
]),
|
|
197
|
+
key: "0"
|
|
198
|
+
} : void 0
|
|
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,
|
|
209
202
|
"top-optionGroup_item": !0
|
|
210
203
|
}),
|
|
211
|
-
modelValue:
|
|
212
|
-
"onUpdate:modelValue":
|
|
213
|
-
name:
|
|
214
|
-
value:
|
|
215
|
-
title:
|
|
216
|
-
disabled:
|
|
217
|
-
isError:
|
|
218
|
-
"data-top-icon":
|
|
219
|
-
}, {
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
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 ? {
|
|
214
|
+
name: "default",
|
|
215
|
+
fn: f(() => [
|
|
216
|
+
E(m(l.label), 1)
|
|
217
|
+
]),
|
|
218
|
+
key: "0"
|
|
219
|
+
} : void 0
|
|
220
|
+
]), 1032, ["class", "modelValue", "value", "title", "disabled", "isError", "data-top-icon"]))), 256))
|
|
225
221
|
], 2));
|
|
226
222
|
}
|
|
227
|
-
}),
|
|
223
|
+
}), oe = /* @__PURE__ */ v({
|
|
228
224
|
__name: "radioGroup",
|
|
229
|
-
props: /* @__PURE__ */
|
|
225
|
+
props: /* @__PURE__ */ A({
|
|
230
226
|
modelValue: {},
|
|
231
227
|
items: {},
|
|
232
228
|
size: {},
|
|
@@ -239,26 +235,26 @@ const pe = { class: "top-editArea_footer" }, Me = /* @__PURE__ */ B({
|
|
|
239
235
|
modelModifiers: {}
|
|
240
236
|
}),
|
|
241
237
|
emits: ["update:modelValue"],
|
|
242
|
-
setup(
|
|
243
|
-
const
|
|
244
|
-
return (
|
|
238
|
+
setup(e) {
|
|
239
|
+
const t = C(e, "modelValue");
|
|
240
|
+
return (o, a) => (s(), p(K, {
|
|
245
241
|
class: "top-radioGroup",
|
|
246
|
-
modelValue:
|
|
247
|
-
"onUpdate:modelValue":
|
|
248
|
-
items:
|
|
249
|
-
size:
|
|
250
|
-
showIndicator:
|
|
251
|
-
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
|
|
252
248
|
}, {
|
|
253
|
-
default:
|
|
254
|
-
|
|
249
|
+
default: f(() => [
|
|
250
|
+
I(o.$slots, "default")
|
|
255
251
|
]),
|
|
256
252
|
_: 3
|
|
257
253
|
}, 8, ["modelValue", "items", "size", "showIndicator", "isError"]));
|
|
258
254
|
}
|
|
259
|
-
}),
|
|
255
|
+
}), le = /* @__PURE__ */ v({
|
|
260
256
|
__name: "checkboxGroup",
|
|
261
|
-
props: /* @__PURE__ */
|
|
257
|
+
props: /* @__PURE__ */ A({
|
|
262
258
|
modelValue: {},
|
|
263
259
|
items: {},
|
|
264
260
|
size: {},
|
|
@@ -271,402 +267,54 @@ const pe = { class: "top-editArea_footer" }, Me = /* @__PURE__ */ B({
|
|
|
271
267
|
modelModifiers: {}
|
|
272
268
|
}),
|
|
273
269
|
emits: ["update:modelValue"],
|
|
274
|
-
setup(
|
|
275
|
-
const
|
|
276
|
-
return (
|
|
270
|
+
setup(e) {
|
|
271
|
+
const t = C(e, "modelValue");
|
|
272
|
+
return (o, a) => (s(), p(K, {
|
|
277
273
|
class: "top-checkboxGroup",
|
|
278
|
-
modelValue:
|
|
279
|
-
"onUpdate:modelValue":
|
|
280
|
-
items:
|
|
281
|
-
size:
|
|
282
|
-
showIndicator:
|
|
283
|
-
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
|
|
284
280
|
}, {
|
|
285
|
-
default:
|
|
286
|
-
|
|
281
|
+
default: f(() => [
|
|
282
|
+
I(o.$slots, "default")
|
|
287
283
|
]),
|
|
288
284
|
_: 3
|
|
289
285
|
}, 8, ["modelValue", "items", "size", "showIndicator", "isError"]));
|
|
290
286
|
}
|
|
291
|
-
}),
|
|
292
|
-
__name: "itemMulti",
|
|
293
|
-
props: {
|
|
294
|
-
id: {},
|
|
295
|
-
name: {}
|
|
296
|
-
},
|
|
297
|
-
emits: ["delete"],
|
|
298
|
-
setup(l) {
|
|
299
|
-
return (e, t) => (p(), b("div", me, [
|
|
300
|
-
_(w(e.name) + " ", 1),
|
|
301
|
-
M("span", {
|
|
302
|
-
class: "top-selector2_itemMultiDelete",
|
|
303
|
-
"data-top-icon": "",
|
|
304
|
-
onClick: t[0] || (t[0] = (s) => e.$emit("delete", e.id)),
|
|
305
|
-
onMousedown: t[1] || (t[1] = O(() => {
|
|
306
|
-
}, ["stop"]))
|
|
307
|
-
}, null, 32)
|
|
308
|
-
]));
|
|
309
|
-
}
|
|
310
|
-
}), ve = (l, e, t, s) => {
|
|
311
|
-
const c = C([]), r = /* @__PURE__ */ new Map(), a = C(!1);
|
|
312
|
-
let i = "", m;
|
|
313
|
-
l && !l.params.limit && (l.params.limit = 100);
|
|
314
|
-
const $ = async () => {
|
|
315
|
-
if (!l) return;
|
|
316
|
-
let y;
|
|
317
|
-
if (s) {
|
|
318
|
-
y = JSON.stringify(l.params);
|
|
319
|
-
const o = r.get(y);
|
|
320
|
-
if (o)
|
|
321
|
-
return o;
|
|
322
|
-
}
|
|
323
|
-
a.value = !0;
|
|
324
|
-
const g = await l.call();
|
|
325
|
-
if (a.value = !1, g.errors) return;
|
|
326
|
-
if (!Array.isArray(g.result)) {
|
|
327
|
-
console.warn("Array expected in `res.result`");
|
|
328
|
-
return;
|
|
329
|
-
}
|
|
330
|
-
const z = g.result.findIndex((o) => o.id === void 0 || o.name === void 0);
|
|
331
|
-
if (z !== -1) {
|
|
332
|
-
console.warn(`В result[${z}] нет id или name`);
|
|
333
|
-
return;
|
|
334
|
-
}
|
|
335
|
-
return y && r.set(y, g), g;
|
|
336
|
-
}, u = async (y) => {
|
|
337
|
-
if (!l) return;
|
|
338
|
-
if (y) {
|
|
339
|
-
if (!m || a.value) return;
|
|
340
|
-
l.params.offset = m;
|
|
341
|
-
} else
|
|
342
|
-
l.params.offset = 0;
|
|
343
|
-
e == null || e(i);
|
|
344
|
-
const g = await $();
|
|
345
|
-
g && (m = g.nextOffset, y ? c.value = c.value.concat(g.result) : c.value = g.result);
|
|
346
|
-
}, v = ae(() => u(!1), 200);
|
|
347
|
-
return {
|
|
348
|
-
apiRequest: l,
|
|
349
|
-
items: c,
|
|
350
|
-
isLoading: a,
|
|
351
|
-
load: u,
|
|
352
|
-
setSearchTextAndLoad: (y, g = !0) => {
|
|
353
|
-
l && (y.length < t || y === i && c.value.length || (i = y, g ? v() : u(!1)));
|
|
354
|
-
}
|
|
355
|
-
};
|
|
356
|
-
}, ye = 0, Y = (l, e, t = !0) => t && e.id === null ? Array.isArray(l) ? l.some((s) => s.id === e.id && s.name === e.name) : e.name === l.name : Array.isArray(l) ? l.some((s) => s.id === e.id) : e.id === l.id, he = (l, e, t, s, c, r, a, i) => {
|
|
357
|
-
const m = C(""), $ = {
|
|
358
|
-
id: ye,
|
|
359
|
-
name: re().Common.All
|
|
360
|
-
}, u = () => {
|
|
361
|
-
m.value = "", i.items.value = [];
|
|
362
|
-
}, v = () => !(!i.apiRequest || r.value !== "inline" || m.value.length >= a), I = S(() => {
|
|
363
|
-
var V;
|
|
364
|
-
const n = [];
|
|
365
|
-
return !t && s.value && n.push($), (V = e.value) == null || V.forEach((d) => n.push({ ...d })), n;
|
|
366
|
-
}), y = S(() => {
|
|
367
|
-
const n = m.value.toLowerCase(), V = de(n);
|
|
368
|
-
let d = [];
|
|
369
|
-
return I.value.forEach((h) => {
|
|
370
|
-
const K = h.name.toLowerCase();
|
|
371
|
-
(h.id === Number(n) || K.includes(n) || K.includes(V)) && (K === n || K === V ? d.unshift(h) : d.push(h));
|
|
372
|
-
}), d.push(...i.items.value), c.value && m.value && (!d.length || d[0].name.toLowerCase() !== n) && d.push({
|
|
373
|
-
id: null,
|
|
374
|
-
name: m.value
|
|
375
|
-
}), t && (d = d.filter((h) => !Y(l.value, h))), d;
|
|
376
|
-
});
|
|
377
|
-
return {
|
|
378
|
-
searchText: m,
|
|
379
|
-
resetSearch: u,
|
|
380
|
-
genIsShort: v,
|
|
381
|
-
items: I,
|
|
382
|
-
itemsForShow: y,
|
|
383
|
-
selectItem: (n) => {
|
|
384
|
-
t && Array.isArray(l.value) ? Y(l.value, n) || (l.value = [...l.value, n]) : l.value = n;
|
|
385
|
-
},
|
|
386
|
-
selectNextItem: () => {
|
|
387
|
-
if (!Array.isArray(l.value)) {
|
|
388
|
-
const V = (y.value.findIndex((d) => d.id === l.value.id) + 1) % y.value.length;
|
|
389
|
-
l.value = { ...y.value[V] };
|
|
390
|
-
}
|
|
391
|
-
},
|
|
392
|
-
deleteItemById: async (n) => {
|
|
393
|
-
Array.isArray(l.value) && (l.value = l.value.filter((V) => V.id !== n));
|
|
394
|
-
}
|
|
395
|
-
};
|
|
396
|
-
}, be = {
|
|
397
|
-
key: 0,
|
|
398
|
-
class: "top-selector2_activeItems"
|
|
399
|
-
}, ge = {
|
|
400
|
-
key: 1,
|
|
401
|
-
class: "top-selector2_activeName top-ellipsis"
|
|
402
|
-
}, Ve = {
|
|
403
|
-
key: 2,
|
|
404
|
-
class: "top-selector2_placeholder top-ellipsis"
|
|
405
|
-
}, De = /* @__PURE__ */ B({
|
|
406
|
-
__name: "selector2",
|
|
407
|
-
props: /* @__PURE__ */ H({
|
|
408
|
-
modelValue: {},
|
|
409
|
-
items: { default: () => [] },
|
|
410
|
-
title: {},
|
|
411
|
-
disabled: { type: Boolean },
|
|
412
|
-
modificator: {},
|
|
413
|
-
size: { default: "s" },
|
|
414
|
-
isError: { type: Boolean },
|
|
415
|
-
searchType: { default: "popup" },
|
|
416
|
-
placeholder: {},
|
|
417
|
-
api: {},
|
|
418
|
-
apiSetSearchParams: {},
|
|
419
|
-
minLength: { default: 0 },
|
|
420
|
-
useCache: { type: Boolean },
|
|
421
|
-
appendSearchToResult: { type: Boolean },
|
|
422
|
-
multiselect: { type: Boolean },
|
|
423
|
-
appendAllValue: { type: Boolean },
|
|
424
|
-
addChanger: { type: Boolean },
|
|
425
|
-
buttonProps: {},
|
|
426
|
-
selectedAsPlaceholder: { type: Boolean }
|
|
427
|
-
}, {
|
|
428
|
-
modelValue: { required: !0 },
|
|
429
|
-
modelModifiers: {}
|
|
430
|
-
}),
|
|
431
|
-
emits: ["update:modelValue"],
|
|
432
|
-
setup(l) {
|
|
433
|
-
const e = l, t = U(l, "modelValue"), s = S(() => e.searchType === "inline" && e.multiselect || e.searchType === "inline" && X.state.isMobile ? "popup" : e.searchType);
|
|
434
|
-
let c = 0;
|
|
435
|
-
s.value === "inline" && e.minLength && (c = e.minLength);
|
|
436
|
-
const r = ve(e.api, e.apiSetSearchParams, c, e.useCache), a = he(
|
|
437
|
-
t,
|
|
438
|
-
P(e, "items"),
|
|
439
|
-
e.multiselect,
|
|
440
|
-
P(e, "appendAllValue"),
|
|
441
|
-
P(e, "appendSearchToResult"),
|
|
442
|
-
s,
|
|
443
|
-
c,
|
|
444
|
-
r
|
|
445
|
-
), i = S(() => e.buttonProps ? "TopButton" : s.value === "inline" ? "TopInput" : "div"), m = C(null), $ = () => {
|
|
446
|
-
var o;
|
|
447
|
-
return (o = m.value) == null ? void 0 : o.popup;
|
|
448
|
-
};
|
|
449
|
-
r.apiRequest && L(a.searchText, () => {
|
|
450
|
-
var o;
|
|
451
|
-
r.setSearchTextAndLoad(a.searchText.value), s.value === "inline" && a.genIsShort() && ((o = $()) == null || o.close());
|
|
452
|
-
}), L(t, () => {
|
|
453
|
-
s.value === "inline" && a.resetSearch();
|
|
454
|
-
});
|
|
455
|
-
const u = S(() => {
|
|
456
|
-
var o;
|
|
457
|
-
return Array.isArray(t.value) || e.multiselect || !e.selectedAsPlaceholder && s.value !== "inline" ? e.placeholder : ((o = t.value) == null ? void 0 : o.name) || e.placeholder;
|
|
458
|
-
}), v = (o) => {
|
|
459
|
-
var d, h;
|
|
460
|
-
let n = !1;
|
|
461
|
-
switch (o.key) {
|
|
462
|
-
case "Delete":
|
|
463
|
-
case "Backspace":
|
|
464
|
-
Array.isArray(t.value) && (o.preventDefault(), o.stopPropagation(), t.value.pop());
|
|
465
|
-
break;
|
|
466
|
-
case "ArrowUp":
|
|
467
|
-
case "ArrowRight":
|
|
468
|
-
case "ArrowDown":
|
|
469
|
-
case "ArrowLeft":
|
|
470
|
-
case "Enter":
|
|
471
|
-
case " ":
|
|
472
|
-
n = !0;
|
|
473
|
-
break;
|
|
474
|
-
case "Escape":
|
|
475
|
-
s.value === "inline" && a.resetSearch();
|
|
476
|
-
break;
|
|
477
|
-
}
|
|
478
|
-
const V = o.key.length === 1 && !o.ctrlKey && !o.metaKey;
|
|
479
|
-
(s.value === "popup" || s.value === "inline") && V && (n = !0), (d = $()) != null && d.elPopup && (n = !1), n && (s.value === "popup" && (o.preventDefault(), o.stopPropagation(), V && (a.searchText.value || (a.searchText.value = o.key))), (h = o.currentTarget) == null || h.click());
|
|
480
|
-
}, I = (o) => {
|
|
481
|
-
o.preventDefault(), a.selectNextItem();
|
|
482
|
-
}, y = () => {
|
|
483
|
-
var o;
|
|
484
|
-
if (r.apiRequest) {
|
|
485
|
-
if (a.genIsShort()) {
|
|
486
|
-
(o = $()) == null || o.close();
|
|
487
|
-
return;
|
|
488
|
-
}
|
|
489
|
-
r.setSearchTextAndLoad(a.searchText.value, !1);
|
|
490
|
-
}
|
|
491
|
-
}, g = () => {
|
|
492
|
-
s.value && a.searchText.value && a.resetSearch();
|
|
493
|
-
}, z = (o) => {
|
|
494
|
-
const n = o.target;
|
|
495
|
-
n.scrollTop / (n.scrollHeight - n.offsetHeight) > 0.8 && r.load(!0);
|
|
496
|
-
};
|
|
497
|
-
return window.__STORYBOOK_PREVIEW__ && (L(
|
|
498
|
-
() => e.multiselect,
|
|
499
|
-
() => {
|
|
500
|
-
e.multiselect ? Array.isArray(t.value) || (t.value = [
|
|
501
|
-
{
|
|
502
|
-
id: 1,
|
|
503
|
-
name: "Выбери меня"
|
|
504
|
-
}
|
|
505
|
-
]) : Array.isArray(t.value) && (t.value = {
|
|
506
|
-
id: null,
|
|
507
|
-
name: ""
|
|
508
|
-
});
|
|
509
|
-
},
|
|
510
|
-
{ immediate: !0 }
|
|
511
|
-
), L(
|
|
512
|
-
() => e.searchType,
|
|
513
|
-
() => {
|
|
514
|
-
setTimeout(() => {
|
|
515
|
-
location.reload();
|
|
516
|
-
}, 500);
|
|
517
|
-
}
|
|
518
|
-
)), (o, n) => {
|
|
519
|
-
const V = Z("top-focus");
|
|
520
|
-
return p(), T(f(ie), {
|
|
521
|
-
ref_key: "popupRef",
|
|
522
|
-
ref: m,
|
|
523
|
-
onOpen: n[2] || (n[2] = (d) => y()),
|
|
524
|
-
onClose: n[3] || (n[3] = (d) => g()),
|
|
525
|
-
onScrollContentList: n[4] || (n[4] = (d) => f(r) ? z(d) : void 0),
|
|
526
|
-
notch: s.value !== "inline",
|
|
527
|
-
transitionDuration: 0,
|
|
528
|
-
openByFocus: s.value === "inline"
|
|
529
|
-
}, j({
|
|
530
|
-
opener: A(() => [
|
|
531
|
-
x((p(), T(ee(i.value), J(o.buttonProps, {
|
|
532
|
-
ref: "subcomponentSelector",
|
|
533
|
-
class: {
|
|
534
|
-
"top-selector2": !0,
|
|
535
|
-
"top-selector2-multiselect": o.multiselect,
|
|
536
|
-
["top-selector2-" + o.modificator]: !!o.modificator,
|
|
537
|
-
"top-as-input": !o.buttonProps,
|
|
538
|
-
"top-as-selector": !0,
|
|
539
|
-
["top-size_" + o.size]: !0,
|
|
540
|
-
"top-disabled": o.disabled,
|
|
541
|
-
"top-forms-focusable": !o.disabled,
|
|
542
|
-
"top-error": o.isError
|
|
543
|
-
},
|
|
544
|
-
tabindex: "0",
|
|
545
|
-
onKeydown: v,
|
|
546
|
-
placeholder: u.value,
|
|
547
|
-
modelValue: f(a).searchText.value,
|
|
548
|
-
"onUpdate:modelValue": n[0] || (n[0] = (d) => f(a).searchText.value = d)
|
|
549
|
-
}), {
|
|
550
|
-
default: A(() => [
|
|
551
|
-
o.multiselect ? (p(), b("div", be, [
|
|
552
|
-
(p(!0), b(R, null, q(t.value, (d) => (p(), T(fe, {
|
|
553
|
-
id: d.id,
|
|
554
|
-
name: d.name,
|
|
555
|
-
onDelete: f(a).deleteItemById
|
|
556
|
-
}, null, 8, ["id", "name", "onDelete"]))), 256))
|
|
557
|
-
])) : k("", !0),
|
|
558
|
-
s.value !== "inline" && !o.multiselect ? (p(), b("span", ge, w(Array.isArray(t.value) ? "" : t.value.name), 1)) : k("", !0),
|
|
559
|
-
o.multiselect && !t.value.length ? (p(), b("span", Ve, w(u.value), 1)) : k("", !0),
|
|
560
|
-
o.addChanger && !o.buttonProps && !o.multiselect && f(a).items.value.length > 1 && !o.disabled ? (p(), b("span", {
|
|
561
|
-
key: 3,
|
|
562
|
-
class: "top-changer top-changer-selector top-popup_widget",
|
|
563
|
-
onClick: I
|
|
564
|
-
})) : k("", !0)
|
|
565
|
-
]),
|
|
566
|
-
_: 1
|
|
567
|
-
}, 16, ["class", "placeholder", "modelValue"])), [
|
|
568
|
-
[
|
|
569
|
-
V,
|
|
570
|
-
o.isError,
|
|
571
|
-
void 0,
|
|
572
|
-
{ onupdate: !0 }
|
|
573
|
-
]
|
|
574
|
-
])
|
|
575
|
-
]),
|
|
576
|
-
contentList: A(() => {
|
|
577
|
-
var d;
|
|
578
|
-
return [
|
|
579
|
-
(p(!0), b(R, null, q(f(a).itemsForShow.value, (h) => (p(), T(f(W), {
|
|
580
|
-
class: E({
|
|
581
|
-
"top-active": !Array.isArray(t.value) && !o.multiselect && t.value.id === h.id && t.value.name === h.name
|
|
582
|
-
}),
|
|
583
|
-
key: h.id ?? void 0,
|
|
584
|
-
closeByClick: !o.multiselect || f(X).state.isMobile,
|
|
585
|
-
onClick: (K) => f(a).selectItem(h)
|
|
586
|
-
}, {
|
|
587
|
-
default: A(() => [
|
|
588
|
-
o.$slots.item ? G(o.$slots, "item", {
|
|
589
|
-
key: 0,
|
|
590
|
-
item: h
|
|
591
|
-
}) : (p(), b(R, { key: 1 }, [
|
|
592
|
-
_(w(h.name), 1)
|
|
593
|
-
], 64))
|
|
594
|
-
]),
|
|
595
|
-
_: 2
|
|
596
|
-
}, 1032, ["class", "closeByClick", "onClick"]))), 128)),
|
|
597
|
-
!f(r).isLoading.value && !f(a).itemsForShow.value.length ? (p(), T(f(W), {
|
|
598
|
-
key: 0,
|
|
599
|
-
type: "regular"
|
|
600
|
-
}, {
|
|
601
|
-
default: A(() => [
|
|
602
|
-
_(w(o.$i18n.Common.No_results), 1)
|
|
603
|
-
]),
|
|
604
|
-
_: 1
|
|
605
|
-
})) : k("", !0),
|
|
606
|
-
f(r).isLoading.value && (o.searchType !== "popup" || (d = f(r).apiRequest) != null && d.params.offset) ? (p(), T(f(W), {
|
|
607
|
-
key: 1,
|
|
608
|
-
type: "regular"
|
|
609
|
-
}, {
|
|
610
|
-
default: A(() => [
|
|
611
|
-
D(f(ne), { type: "circles" })
|
|
612
|
-
]),
|
|
613
|
-
_: 1
|
|
614
|
-
})) : k("", !0)
|
|
615
|
-
];
|
|
616
|
-
}),
|
|
617
|
-
_: 2
|
|
618
|
-
}, [
|
|
619
|
-
s.value === "popup" ? {
|
|
620
|
-
name: "widget",
|
|
621
|
-
fn: A(() => {
|
|
622
|
-
var d;
|
|
623
|
-
return [
|
|
624
|
-
D(f(ue), {
|
|
625
|
-
title: "Поиск",
|
|
626
|
-
icon: "",
|
|
627
|
-
modelValue: f(a).searchText.value,
|
|
628
|
-
"onUpdate:modelValue": n[1] || (n[1] = (h) => f(a).searchText.value = h),
|
|
629
|
-
isLoading: f(r).isLoading.value && !((d = f(r).apiRequest) != null && d.params.offset),
|
|
630
|
-
placeholder: u.value
|
|
631
|
-
}, null, 8, ["modelValue", "isLoading", "placeholder"])
|
|
632
|
-
];
|
|
633
|
-
}),
|
|
634
|
-
key: "0"
|
|
635
|
-
} : void 0
|
|
636
|
-
]), 1032, ["notch", "openByFocus"]);
|
|
637
|
-
};
|
|
638
|
-
}
|
|
639
|
-
}), Ae = ["data-top-icon"], $e = { class: "top-info_text" }, Te = {
|
|
287
|
+
}), W = ["data-top-icon"], j = { class: "top-info_text" }, X = {
|
|
640
288
|
key: 0,
|
|
641
289
|
class: "top-info_value"
|
|
642
|
-
},
|
|
290
|
+
}, ae = /* @__PURE__ */ v({
|
|
643
291
|
__name: "info",
|
|
644
292
|
props: {
|
|
645
293
|
icon: {},
|
|
646
294
|
styling: { default: "default" },
|
|
647
295
|
size: { default: "default" }
|
|
648
296
|
},
|
|
649
|
-
setup(
|
|
650
|
-
return (
|
|
651
|
-
class:
|
|
297
|
+
setup(e) {
|
|
298
|
+
return (t, o) => (s(), c("div", {
|
|
299
|
+
class: V({
|
|
652
300
|
"top-info": !0,
|
|
653
301
|
["top-size_" + e.size]: !0,
|
|
654
302
|
["top-info-styling_" + e.styling]: !0
|
|
655
303
|
}),
|
|
656
304
|
"data-top-icon": e.icon
|
|
657
305
|
}, [
|
|
658
|
-
|
|
659
|
-
|
|
306
|
+
h("div", j, [
|
|
307
|
+
I(t.$slots, "default")
|
|
660
308
|
]),
|
|
661
|
-
|
|
662
|
-
|
|
663
|
-
])) :
|
|
664
|
-
], 10,
|
|
309
|
+
t.$slots.additional ? (s(), c("span", X, [
|
|
310
|
+
I(t.$slots, "additional")
|
|
311
|
+
])) : b("", !0)
|
|
312
|
+
], 10, W));
|
|
665
313
|
}
|
|
666
|
-
}),
|
|
314
|
+
}), J = {
|
|
667
315
|
key: 0,
|
|
668
316
|
class: "top-policy"
|
|
669
|
-
},
|
|
317
|
+
}, Q = { class: "top-policy_title" }, Y = ["innerHTML"], ie = /* @__PURE__ */ v({
|
|
670
318
|
__name: "policy",
|
|
671
319
|
props: {
|
|
672
320
|
title: {},
|
|
@@ -674,36 +322,39 @@ const pe = { class: "top-editArea_footer" }, Me = /* @__PURE__ */ B({
|
|
|
674
322
|
acceptText: {}
|
|
675
323
|
},
|
|
676
324
|
emits: ["accept"],
|
|
677
|
-
setup(
|
|
678
|
-
const
|
|
679
|
-
|
|
325
|
+
setup(e, { emit: t }) {
|
|
326
|
+
const o = t, a = $(!0), i = () => {
|
|
327
|
+
a.value = !1, o("accept");
|
|
680
328
|
};
|
|
681
|
-
return (r,
|
|
682
|
-
|
|
683
|
-
|
|
329
|
+
return (r, n) => a.value ? (s(), c("div", J, [
|
|
330
|
+
h("div", Q, m(e.title), 1),
|
|
331
|
+
h("div", {
|
|
684
332
|
class: "top-policy_description",
|
|
685
|
-
innerHTML:
|
|
686
|
-
}, null, 8,
|
|
687
|
-
|
|
333
|
+
innerHTML: e.description
|
|
334
|
+
}, null, 8, Y),
|
|
335
|
+
z(N(B), {
|
|
688
336
|
size: "m",
|
|
689
|
-
onClick:
|
|
337
|
+
onClick: i
|
|
690
338
|
}, {
|
|
691
|
-
default:
|
|
692
|
-
|
|
339
|
+
default: f(() => [
|
|
340
|
+
E(m(e.acceptText), 1)
|
|
693
341
|
]),
|
|
694
342
|
_: 1
|
|
695
343
|
})
|
|
696
|
-
])) :
|
|
344
|
+
])) : b("", !0);
|
|
697
345
|
}
|
|
698
346
|
});
|
|
699
347
|
export {
|
|
700
|
-
|
|
701
|
-
|
|
702
|
-
|
|
703
|
-
|
|
704
|
-
|
|
705
|
-
|
|
706
|
-
|
|
707
|
-
|
|
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
|
|
708
359
|
};
|
|
709
360
|
//# sourceMappingURL=formsExt.js.map
|