@topvisor/ui 0.9.34-utils-components-3 → 0.9.34-utils-components-5
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-CtnkRS5e.es.js → datepicker-Bh_DAFqD.es.js} +2 -2
- package/.chunks/{datepicker-CtnkRS5e.es.js.map → datepicker-Bh_DAFqD.es.js.map} +1 -1
- package/.chunks/{datepicker-DquD9mIq.amd.js → datepicker-CIbLjf_3.amd.js} +2 -2
- package/.chunks/{datepicker-DquD9mIq.amd.js.map → datepicker-CIbLjf_3.amd.js.map} +1 -1
- package/.chunks/forms-BfIXIMY_.es.js +1089 -0
- package/.chunks/forms-BfIXIMY_.es.js.map +1 -0
- package/.chunks/forms-C__H1yL_.amd.js +3 -0
- package/.chunks/forms-C__H1yL_.amd.js.map +1 -0
- package/.chunks/i18n-BNGjUFTp.amd.js +2 -0
- package/.chunks/i18n-BNGjUFTp.amd.js.map +1 -0
- package/.chunks/i18n-DCbk4MSK.es.js +20 -0
- package/.chunks/i18n-DCbk4MSK.es.js.map +1 -0
- package/.chunks/listItem.vue_vue_type_script_setup_true_lang-CaBP5R7L.amd.js +2 -0
- package/.chunks/listItem.vue_vue_type_script_setup_true_lang-CaBP5R7L.amd.js.map +1 -0
- package/.chunks/listItem.vue_vue_type_script_setup_true_lang-DJZS6vRL.es.js +161 -0
- package/.chunks/listItem.vue_vue_type_script_setup_true_lang-DJZS6vRL.es.js.map +1 -0
- package/.chunks/{menu-DFQAjecc.es.js → menu-24EpQtdy.es.js} +37 -37
- package/.chunks/menu-24EpQtdy.es.js.map +1 -0
- package/.chunks/menu-DV1iSTyB.amd.js +2 -0
- package/.chunks/menu-DV1iSTyB.amd.js.map +1 -0
- package/.chunks/popup-BKd_kjT8.amd.js +440 -0
- package/.chunks/popup-BKd_kjT8.amd.js.map +1 -0
- package/.chunks/{popup-BoqfTf-1.es.js → popup-DwpeWN20.es.js} +57 -53
- package/.chunks/popup-DwpeWN20.es.js.map +1 -0
- package/assets/forms.css +1 -1
- package/assets/formsExt.css +1 -1
- package/common/common.d.ts +1 -1
- package/{src/components → components}/formsExt/editInput/editInput.vue.d.ts +1 -10
- package/{src/components → components}/formsExt/formsExt.d.ts +2 -0
- package/components/formsExt/selector2/itemMulti.vue.d.ts +18 -0
- package/components/formsExt/selector2/selector2.vue.d.ts +132 -0
- package/{src/components → components}/popup/lib/popup.d.ts +0 -3
- package/{src/components → components}/popup/lib/worker.d.ts +0 -4
- package/core/app.amd.js +2 -0
- package/core/app.amd.js.map +1 -0
- package/core/app.d.ts +7 -0
- package/core/app.js +307 -0
- package/core/app.js.map +1 -0
- package/{src/core → core}/core/core.d.ts +17 -24
- package/core/core/options.d.ts +24 -0
- package/{src/core → core}/core/state.d.ts +3 -2
- package/core/core.amd.js +1 -1
- package/core/core.d.ts +2 -2
- package/core/core.js +1 -1
- package/core/directives/focus.d.ts +9 -3
- package/core/directives/sticky.d.ts +11 -3
- package/core/directives/swimUp.d.ts +10 -3
- package/core/directives/tooltip.d.ts +11 -3
- package/{src/core/plugin/plugin.d.ts → core/plugins/core.d.ts} +14 -17
- package/core/plugins/i18n.d.ts +98 -0
- package/core/plugins/piniaTPA.d.ts +18 -0
- package/core/utils/clipboard.d.ts +1 -0
- package/{src/core → core}/utils/price.d.ts +3 -1
- package/{src/core → core}/utils/system.d.ts +0 -1
- package/forms/forms.amd.js +1 -1
- package/forms/forms.d.ts +1 -1
- package/forms/forms.js +7 -7
- package/forms/helpers.d.ts +1 -1
- package/formsExt/formsExt.amd.js +1 -1
- package/formsExt/formsExt.amd.js.map +1 -1
- package/formsExt/formsExt.d.ts +1 -1
- package/formsExt/formsExt.js +357 -122
- package/formsExt/formsExt.js.map +1 -1
- package/package.json +5 -1
- package/popup/popup.amd.js +1 -1
- package/popup/popup.amd.js.map +1 -1
- package/popup/popup.d.ts +1 -1
- package/popup/popup.js +6 -6
- package/popup/worker.amd.js +1 -1
- package/popup/worker.amd.js.map +1 -1
- package/popup/worker.d.ts +2 -2
- package/popup/worker.js +5 -7
- 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.d.ts +1 -1
- package/project/project.js +7 -7
- package/project/project.js.map +1 -1
- package/tabs/tabs.amd.js +1 -1
- package/tabs/tabs.d.ts +1 -1
- package/tabs/tabs.js +5 -5
- package/tabsView/tabsView.amd.js +1 -1
- package/tabsView/tabsView.amd.js.map +1 -1
- package/tabsView/tabsView.d.ts +1 -1
- package/tabsView/tabsView.js +8 -8
- package/tabsView/tabsView.js.map +1 -1
- package/utils/check.d.ts +1 -1
- package/utils/clipboard.amd.js +2 -0
- package/utils/clipboard.amd.js.map +1 -0
- package/utils/clipboard.d.ts +1 -0
- package/utils/clipboard.js +10 -0
- package/utils/clipboard.js.map +1 -0
- package/utils/css.d.ts +1 -1
- package/utils/date.amd.js +1 -1
- package/utils/date.d.ts +1 -1
- package/utils/date.js +4 -4
- package/utils/device.amd.js +1 -1
- package/utils/device.d.ts +1 -1
- package/utils/device.js +5 -5
- package/utils/dom.d.ts +2 -2
- package/utils/image.d.ts +1 -1
- package/utils/keyboard.d.ts +1 -1
- package/utils/number.d.ts +1 -1
- package/utils/price.amd.js +1 -1
- package/utils/price.amd.js.map +1 -1
- package/utils/price.d.ts +1 -1
- package/utils/price.js +8 -5
- package/utils/price.js.map +1 -1
- package/utils/route.d.ts +1 -1
- package/utils/scroll.amd.js +1 -1
- package/utils/scroll.d.ts +1 -1
- package/utils/scroll.js +1 -1
- package/utils/store.d.ts +1 -1
- package/utils/string.amd.js +1 -1
- package/utils/string.amd.js.map +1 -1
- package/utils/string.d.ts +1 -1
- package/utils/string.js +38 -35
- package/utils/string.js.map +1 -1
- package/utils/system.amd.js +1 -1
- package/utils/system.amd.js.map +1 -1
- package/utils/system.d.ts +1 -1
- package/utils/system.js +16 -17
- package/utils/system.js.map +1 -1
- package/utils/url.d.ts +1 -1
- package/utils/window.amd.js +1 -1
- package/utils/window.d.ts +1 -1
- package/utils/window.js +1 -1
- package/web-types.json +62 -62
- package/.chunks/forms-CvUw0pdr.amd.js +0 -3
- package/.chunks/forms-CvUw0pdr.amd.js.map +0 -1
- package/.chunks/forms-zlyhVXZ9.es.js +0 -1186
- package/.chunks/forms-zlyhVXZ9.es.js.map +0 -1
- package/.chunks/listItem.vue_vue_type_script_setup_true_lang-C0vCVRTn.amd.js +0 -2
- package/.chunks/listItem.vue_vue_type_script_setup_true_lang-C0vCVRTn.amd.js.map +0 -1
- package/.chunks/listItem.vue_vue_type_script_setup_true_lang-C1JdWeQq.es.js +0 -164
- package/.chunks/listItem.vue_vue_type_script_setup_true_lang-C1JdWeQq.es.js.map +0 -1
- package/.chunks/menu-D8OY3zle.amd.js +0 -2
- package/.chunks/menu-D8OY3zle.amd.js.map +0 -1
- package/.chunks/menu-DFQAjecc.es.js.map +0 -1
- package/.chunks/popup-31lyEYe3.amd.js +0 -440
- package/.chunks/popup-31lyEYe3.amd.js.map +0 -1
- package/.chunks/popup-BoqfTf-1.es.js.map +0 -1
- package/core/directives/focus.amd.js +0 -2
- package/core/directives/focus.amd.js.map +0 -1
- package/core/directives/focus.js +0 -5
- package/core/directives/focus.js.map +0 -1
- package/core/directives/sticky.amd.js +0 -2
- package/core/directives/sticky.amd.js.map +0 -1
- package/core/directives/sticky.js +0 -5
- package/core/directives/sticky.js.map +0 -1
- package/core/directives/swimUp.amd.js +0 -2
- package/core/directives/swimUp.amd.js.map +0 -1
- package/core/directives/swimUp.js +0 -5
- package/core/directives/swimUp.js.map +0 -1
- package/core/directives/tooltip.amd.js +0 -2
- package/core/directives/tooltip.amd.js.map +0 -1
- package/core/directives/tooltip.js +0 -5
- package/core/directives/tooltip.js.map +0 -1
- package/core/plugin/plugin.amd.js +0 -2
- package/core/plugin/plugin.amd.js.map +0 -1
- package/core/plugin/plugin.d.ts +0 -3
- package/core/plugin/plugin.js +0 -23
- package/core/plugin/plugin.js.map +0 -1
- package/src/components/forms/avatar/avatar.stories.d.ts +0 -85
- package/src/components/forms/button/button.stories.d.ts +0 -278
- package/src/components/forms/checkbox/checkbox.stories.d.ts +0 -116
- package/src/components/forms/controlLabel/controlLabel.stories.d.ts +0 -65
- package/src/components/forms/hint/hint.stories.d.ts +0 -75
- package/src/components/forms/input/input.stories.d.ts +0 -226
- package/src/components/forms/inputDate/inputDate.stories.d.ts +0 -117
- package/src/components/forms/inputRange/inputRange.stories.d.ts +0 -285
- package/src/components/forms/loadbar/loadbar.stories.d.ts +0 -10
- package/src/components/forms/radio/radio.stories.d.ts +0 -132
- package/src/components/forms/select/select.stories.d.ts +0 -108
- package/src/components/forms/switcher/switcher.stories.d.ts +0 -127
- package/src/components/forms/textarea/textarea.stories.d.ts +0 -90
- package/src/components/formsExt/editArea/editArea.stories.d.ts +0 -158
- package/src/components/formsExt/editInput/editInput.stories.d.ts +0 -98
- package/src/components/formsExt/menu/menu.stories.d.ts +0 -82
- package/src/components/formsExt/radioGroup/radioGroup.stories.d.ts +0 -67
- package/src/components/formsExt/selector2/selector2.stories.d.ts +0 -277
- package/src/components/popup/popup/popup.stories.d.ts +0 -701
- package/src/components/project/selectorCompetitors/selectorCompetitors.stories.d.ts +0 -43
- package/src/components/tabs/tabs/tabs.stories.d.ts +0 -539
- package/src/components/tabsView/tabsView/tabsView.stories.d.ts +0 -352
- package/src/components/tabsView/tabsView//320/255/320/273/320/265/320/274/320/265/320/275/321/202/321/213/MenuItem.stories.d.ts +0 -333
- package/src/components/tabsView/tabsView//320/255/320/273/320/265/320/274/320/265/320/275/321/202/321/213/MenuTitle.stories.d.ts +0 -175
- package/src/core/core/options.d.ts +0 -13
- package/src/core/core/page.d.ts +0 -7
- package/src/core/directives/focus.d.ts +0 -9
- package/src/core/directives/sticky.d.ts +0 -11
- package/src/core/directives/swimUp.d.ts +0 -10
- package/src/core/directives/tooltip.d.ts +0 -11
- /package/{src/components → components}/common/common.d.ts +0 -0
- /package/{src/components → components}/common/icon/icon.d.ts +0 -0
- /package/{src/components → components}/forms/avatar/avatar.d.ts +0 -0
- /package/{src/components → components}/forms/avatar/avatar.vue.d.ts +0 -0
- /package/{src/components → components}/forms/button/button.d.ts +0 -0
- /package/{src/components → components}/forms/button/button.vue.d.ts +0 -0
- /package/{src/components → components}/forms/checkbox/checkbox.d.ts +0 -0
- /package/{src/components → components}/forms/checkbox/checkbox.vue.d.ts +0 -0
- /package/{src/components → components}/forms/controlLabel/controlLabel.d.ts +0 -0
- /package/{src/components → components}/forms/controlLabel/controlLabel.vue.d.ts +0 -0
- /package/{src/components → components}/forms/forms.d.ts +0 -0
- /package/{src/components → components}/forms/helpers.d.ts +0 -0
- /package/{src/components → components}/forms/hint/hint.d.ts +0 -0
- /package/{src/components → components}/forms/hint/hint.vue.d.ts +0 -0
- /package/{src/components → components}/forms/input/input.d.ts +0 -0
- /package/{src/components → components}/forms/input/input.vue.d.ts +0 -0
- /package/{src/components → components}/forms/inputDate/datepicker.d.ts +0 -0
- /package/{src/components → components}/forms/inputDate/inputDate.d.ts +0 -0
- /package/{src/components → components}/forms/inputDate/inputDate.vue.d.ts +0 -0
- /package/{src/components → components}/forms/inputRange/inputRange.d.ts +0 -0
- /package/{src/components → components}/forms/inputRange/inputRange.vue.d.ts +0 -0
- /package/{src/components → components}/forms/loadbar/loadbar.vue.d.ts +0 -0
- /package/{src/components → components}/forms/radio/radio.d.ts +0 -0
- /package/{src/components → components}/forms/radio/radio.vue.d.ts +0 -0
- /package/{src/components → components}/forms/select/select.d.ts +0 -0
- /package/{src/components → components}/forms/select/select.vue.d.ts +0 -0
- /package/{src/components → components}/forms/select/stories/exampleOptions.d.ts +0 -0
- /package/{src/components → components}/forms/switcher/switcher.d.ts +0 -0
- /package/{src/components → components}/forms/switcher/switcher.vue.d.ts +0 -0
- /package/{src/components → components}/forms/textarea/textarea.d.ts +0 -0
- /package/{src/components → components}/forms/textarea/textarea.vue.d.ts +0 -0
- /package/{src/components → components}/formsExt/editArea/editArea.d.ts +0 -0
- /package/{src/components → components}/formsExt/editArea/editArea.vue.d.ts +0 -0
- /package/{src/components → components}/formsExt/editInput/editInput.d.ts +0 -0
- /package/{src/components → components}/formsExt/menu/menu.d.ts +0 -0
- /package/{src/components → components}/formsExt/menu/menu.vue.d.ts +0 -0
- /package/{src/components → components}/formsExt/menu/stories/items.d.ts +0 -0
- /package/{src/components → components}/formsExt/radioGroup/radioGroup.d.ts +0 -0
- /package/{src/components → components}/formsExt/radioGroup/radioGroup.vue.d.ts +0 -0
- /package/{src/components → components}/formsExt/selector2/api.d.ts +0 -0
- /package/{src/components → components}/formsExt/selector2/selector2.d.ts +0 -0
- /package/{src/components → components}/formsExt/selector2/stories/dummyAPIRequest.d.ts +0 -0
- /package/{src/components → components}/popup/lib/popup.globalEvents.d.ts +0 -0
- /package/{src/components → components}/popup/lib/worker.globalEvents.d.ts +0 -0
- /package/{src/components → components}/popup/popup/listItem.vue.d.ts +0 -0
- /package/{src/components → components}/popup/popup/opener.vue.d.ts +0 -0
- /package/{src/components → components}/popup/popup/popup.d.ts +0 -0
- /package/{src/components → components}/popup/popup/popup.vue.d.ts +0 -0
- /package/{src/components → components}/popup/popup/widgetInput.vue.d.ts +0 -0
- /package/{src/components → components}/popup/popup.d.ts +0 -0
- /package/{src/components → components}/popup/worker.d.ts +0 -0
- /package/{src/components → components}/project/project.d.ts +0 -0
- /package/{src/components → components}/project/selectorCompetitors/composables.d.ts +0 -0
- /package/{src/components → components}/project/selectorCompetitors/selectorCompetitors.d.ts +0 -0
- /package/{src/components → components}/project/selectorCompetitors/selectorCompetitors.vue.d.ts +0 -0
- /package/{src/components → components}/project/selectorCompetitors/stories/items.d.ts +0 -0
- /package/{src/components → components}/project/selectorCompetitors/types/competitor.d.ts +0 -0
- /package/{src/components → components}/tabs/tabs/content.vue.d.ts +0 -0
- /package/{src/components → components}/tabs/tabs/tab.vue.d.ts +0 -0
- /package/{src/components → components}/tabs/tabs/tabs.d.ts +0 -0
- /package/{src/components → components}/tabs/tabs/tabs.vue.d.ts +0 -0
- /package/{src/components → components}/tabs/tabs.d.ts +0 -0
- /package/{src/components → components}/tabsView/tabsView/menu.vue.d.ts +0 -0
- /package/{src/components → components}/tabsView/tabsView/menuDelimeter.vue.d.ts +0 -0
- /package/{src/components → components}/tabsView/tabsView/menuItem.vue.d.ts +0 -0
- /package/{src/components → components}/tabsView/tabsView/menuTitle.vue.d.ts +0 -0
- /package/{src/components → components}/tabsView/tabsView/store.d.ts +0 -0
- /package/{src/components → components}/tabsView/tabsView/tabsView.d.ts +0 -0
- /package/{src/components → components}/tabsView/tabsView/tabsView.vue.d.ts +0 -0
- /package/{src/components → components}/tabsView/tabsView/utils.d.ts +0 -0
- /package/{src/components → components}/tabsView/tabsView.d.ts +0 -0
- /package/{src/core → core}/core/events.d.ts +0 -0
- /package/{src/core → core}/utils/check.d.ts +0 -0
- /package/{src/core → core}/utils/css.d.ts +0 -0
- /package/{src/core → core}/utils/date.d.ts +0 -0
- /package/{src/core → core}/utils/device.d.ts +0 -0
- /package/{src/core → core}/utils/dom.d.ts +0 -0
- /package/{src/core → core}/utils/image.d.ts +0 -0
- /package/{src/core → core}/utils/keyboard.d.ts +0 -0
- /package/{src/core → core}/utils/number.d.ts +0 -0
- /package/{src/core → core}/utils/route.d.ts +0 -0
- /package/{src/core → core}/utils/scroll.d.ts +0 -0
- /package/{src/core → core}/utils/store/localStorage.d.ts +0 -0
- /package/{src/core → core}/utils/store/plugin.d.ts +0 -0
- /package/{src/core → core}/utils/store/store.d.ts +0 -0
- /package/{src/core → core}/utils/store.d.ts +0 -0
- /package/{src/core → core}/utils/string.d.ts +0 -0
- /package/{src/core → core}/utils/url.d.ts +0 -0
- /package/{src/core → core}/utils/window.d.ts +0 -0
package/formsExt/formsExt.js
CHANGED
|
@@ -1,10 +1,13 @@
|
|
|
1
|
-
import { insertToPage as
|
|
2
|
-
import { defineComponent as
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
1
|
+
import { insertToPage as Q } from "../utils/css.js";
|
|
2
|
+
import { defineComponent as K, ref as V, computed as N, resolveDirective as x, openBlock as c, createElementBlock as v, normalizeClass as $, toDisplayString as C, createCommentVNode as T, createElementVNode as E, withDirectives as Y, createVNode as F, withKeys as O, withModifiers as B, createBlock as I, withCtx as w, createTextVNode as M, watch as k, toRef as q, mergeProps as X, mergeModels as D, useModel as j, Fragment as G, renderList as H, vModelRadio as ee, unref as S, renderSlot as te } from "vue";
|
|
3
|
+
import { r as oe, T as z, a as L, b as le, C as ae } from "../.chunks/forms-BfIXIMY_.es.js";
|
|
4
|
+
import { invertKeyboardLayout as se } from "../utils/keyboard.js";
|
|
5
|
+
import { TopPopup as re, TopPopupWidgetInput as ne, TopPopupListItem as R } from "../popup/popup.js";
|
|
6
|
+
import { debounce as ie } from "lodash";
|
|
7
|
+
import { M as ue } from "../.chunks/menu-24EpQtdy.es.js";
|
|
8
|
+
const Z = ["../assets/formsExt.css"].map((s) => import.meta.resolve(s));
|
|
9
|
+
Q(Z, !0);
|
|
10
|
+
const de = { class: "top-editArea_footer" }, pe = /* @__PURE__ */ K({
|
|
8
11
|
__name: "editArea",
|
|
9
12
|
props: {
|
|
10
13
|
defaultValue: { default: "" },
|
|
@@ -27,91 +30,91 @@ const J = { class: "top-editArea_footer" }, Q = /* @__PURE__ */ G({
|
|
|
27
30
|
hint: {}
|
|
28
31
|
},
|
|
29
32
|
emits: ["submit", "close", "clickOnTitle"],
|
|
30
|
-
setup(
|
|
31
|
-
const e =
|
|
32
|
-
|
|
33
|
-
},
|
|
34
|
-
if (e.forceShowCloseBtn && !
|
|
35
|
-
|
|
33
|
+
setup(s, { emit: d }) {
|
|
34
|
+
const e = s, a = d, m = V(e.defaultValue), f = V(e.isFocused), r = N(() => m.value !== e.defaultValue), p = N(() => e.attachToKeyboard ? "" : e.forceShowCloseBtn && !r.value ? e.closeText : e.cancelText), i = (u) => {
|
|
35
|
+
a("submit", u), m.value = e.defaultValue;
|
|
36
|
+
}, y = () => {
|
|
37
|
+
if (e.forceShowCloseBtn && !r.value) {
|
|
38
|
+
a("close");
|
|
36
39
|
return;
|
|
37
40
|
}
|
|
38
|
-
|
|
39
|
-
},
|
|
40
|
-
e.attachToKeyboard &&
|
|
41
|
+
m.value = e.defaultValue;
|
|
42
|
+
}, b = () => {
|
|
43
|
+
e.attachToKeyboard && a("clickOnTitle");
|
|
41
44
|
};
|
|
42
|
-
return (
|
|
43
|
-
const
|
|
44
|
-
return
|
|
45
|
-
class:
|
|
45
|
+
return (u, o) => {
|
|
46
|
+
const g = x("top-focus");
|
|
47
|
+
return c(), v("div", {
|
|
48
|
+
class: $({
|
|
46
49
|
"top-editArea": !0,
|
|
47
|
-
"top-editArea-attachedToKeyboard":
|
|
50
|
+
"top-editArea-attachedToKeyboard": u.attachToKeyboard
|
|
48
51
|
})
|
|
49
52
|
}, [
|
|
50
|
-
|
|
53
|
+
u.title ? (c(), v("div", {
|
|
51
54
|
key: 0,
|
|
52
55
|
class: "top-editArea_title",
|
|
53
|
-
onClick:
|
|
54
|
-
},
|
|
55
|
-
|
|
56
|
-
class:
|
|
56
|
+
onClick: o[0] || (o[0] = (h) => b())
|
|
57
|
+
}, C(u.title), 1)) : T("", !0),
|
|
58
|
+
E("div", {
|
|
59
|
+
class: $({
|
|
57
60
|
"top-editArea_form": !0,
|
|
58
|
-
"top-error":
|
|
59
|
-
"top-focus":
|
|
61
|
+
"top-error": u.isError,
|
|
62
|
+
"top-focus": f.value
|
|
60
63
|
})
|
|
61
64
|
}, [
|
|
62
|
-
|
|
63
|
-
modelValue:
|
|
64
|
-
"onUpdate:modelValue":
|
|
65
|
-
name:
|
|
66
|
-
placeholder:
|
|
67
|
-
rows:
|
|
68
|
-
minHeight:
|
|
69
|
-
expandable:
|
|
70
|
-
disabled:
|
|
71
|
-
readonly:
|
|
72
|
-
isError:
|
|
73
|
-
hint:
|
|
65
|
+
Y(F(oe, {
|
|
66
|
+
modelValue: m.value,
|
|
67
|
+
"onUpdate:modelValue": o[1] || (o[1] = (h) => m.value = h),
|
|
68
|
+
name: u.name,
|
|
69
|
+
placeholder: u.placeholder,
|
|
70
|
+
rows: u.rows,
|
|
71
|
+
minHeight: u.minHeight,
|
|
72
|
+
expandable: u.expandable,
|
|
73
|
+
disabled: u.disabled,
|
|
74
|
+
readonly: u.readonly,
|
|
75
|
+
isError: u.isError,
|
|
76
|
+
hint: u.hint,
|
|
74
77
|
class: "top-editArea_element",
|
|
75
|
-
onFocus:
|
|
76
|
-
onBlur:
|
|
78
|
+
onFocus: o[2] || (o[2] = () => f.value = !0),
|
|
79
|
+
onBlur: o[3] || (o[3] = () => f.value = !1),
|
|
77
80
|
onKeyup: [
|
|
78
|
-
|
|
79
|
-
|
|
81
|
+
O(y, ["esc"]),
|
|
82
|
+
o[4] || (o[4] = O(B((h) => i(m.value), ["ctrl"]), ["enter"]))
|
|
80
83
|
]
|
|
81
84
|
}, null, 8, ["modelValue", "name", "placeholder", "rows", "minHeight", "expandable", "disabled", "readonly", "isError", "hint"]), [
|
|
82
|
-
[
|
|
85
|
+
[g, f.value]
|
|
83
86
|
]),
|
|
84
|
-
|
|
85
|
-
|
|
87
|
+
E("div", de, [
|
|
88
|
+
r.value || u.forceShowCloseBtn ? (c(), I(z, {
|
|
86
89
|
key: 0,
|
|
87
90
|
class: "top-editArea_button",
|
|
88
91
|
color: "theme",
|
|
89
92
|
styling: "soft",
|
|
90
|
-
icon:
|
|
91
|
-
onClick:
|
|
93
|
+
icon: u.attachToKeyboard ? "" : "",
|
|
94
|
+
onClick: y
|
|
92
95
|
}, {
|
|
93
96
|
default: w(() => [
|
|
94
|
-
C(
|
|
97
|
+
M(C(p.value), 1)
|
|
95
98
|
]),
|
|
96
99
|
_: 1
|
|
97
|
-
}, 8, ["icon"])) :
|
|
98
|
-
|
|
100
|
+
}, 8, ["icon"])) : T("", !0),
|
|
101
|
+
r.value ? (c(), I(z, {
|
|
99
102
|
key: 1,
|
|
100
103
|
class: "top-editArea_button",
|
|
101
|
-
icon:
|
|
102
|
-
onClick:
|
|
104
|
+
icon: u.attachToKeyboard ? "" : "",
|
|
105
|
+
onClick: o[5] || (o[5] = (h) => i(m.value))
|
|
103
106
|
}, {
|
|
104
107
|
default: w(() => [
|
|
105
|
-
C(
|
|
108
|
+
M(C(u.attachToKeyboard ? "" : u.submitText), 1)
|
|
106
109
|
]),
|
|
107
110
|
_: 1
|
|
108
|
-
}, 8, ["icon"])) :
|
|
111
|
+
}, 8, ["icon"])) : T("", !0)
|
|
109
112
|
])
|
|
110
113
|
], 2)
|
|
111
114
|
], 2);
|
|
112
115
|
};
|
|
113
116
|
}
|
|
114
|
-
}),
|
|
117
|
+
}), ce = {
|
|
115
118
|
"top-editArea": "top-editArea",
|
|
116
119
|
"top-editArea_title": "top-editArea_title",
|
|
117
120
|
"top-editArea_form": "top-editArea_form",
|
|
@@ -123,9 +126,9 @@ const J = { class: "top-editArea_footer" }, Q = /* @__PURE__ */ G({
|
|
|
123
126
|
"top-editArea-attachedToKeyboard": "top-editArea-attachedToKeyboard",
|
|
124
127
|
"top-button": "top-button",
|
|
125
128
|
"top-editArea_button": "top-editArea_button"
|
|
126
|
-
},
|
|
127
|
-
$style:
|
|
128
|
-
},
|
|
129
|
+
}, me = {
|
|
130
|
+
$style: ce
|
|
131
|
+
}, fe = /* @__PURE__ */ L(pe, [["__cssModules", me]]), ve = { class: "top-editInput" }, ye = /* @__PURE__ */ K({
|
|
129
132
|
__name: "editInput",
|
|
130
133
|
props: {
|
|
131
134
|
modelValue: {},
|
|
@@ -133,44 +136,39 @@ const J = { class: "top-editArea_footer" }, Q = /* @__PURE__ */ G({
|
|
|
133
136
|
button: {}
|
|
134
137
|
},
|
|
135
138
|
emits: ["update:modelValue"],
|
|
136
|
-
setup(
|
|
137
|
-
const e =
|
|
138
|
-
|
|
139
|
-
|
|
139
|
+
setup(s, { emit: d }) {
|
|
140
|
+
const e = s, a = V(e.modelValue);
|
|
141
|
+
k(q(e.modelValue), () => {
|
|
142
|
+
a.value = e.modelValue;
|
|
140
143
|
});
|
|
141
|
-
const
|
|
142
|
-
|
|
144
|
+
const m = d, f = () => {
|
|
145
|
+
m("update:modelValue", a.value);
|
|
143
146
|
};
|
|
144
|
-
return (
|
|
145
|
-
|
|
146
|
-
onKeydownCapture:
|
|
147
|
-
onKeydown:
|
|
148
|
-
modelValue:
|
|
149
|
-
"onUpdate:modelValue":
|
|
147
|
+
return (r, p) => (c(), v("div", ve, [
|
|
148
|
+
F(le, X(r.input, {
|
|
149
|
+
onKeydownCapture: p[0] || (p[0] = O(B((i) => a.value = r.modelValue, ["stop"]), ["esc"])),
|
|
150
|
+
onKeydown: O(B(f, ["stop"]), ["enter"]),
|
|
151
|
+
modelValue: a.value,
|
|
152
|
+
"onUpdate:modelValue": p[1] || (p[1] = (i) => a.value = i)
|
|
150
153
|
}), null, 16, ["onKeydown", "modelValue"]),
|
|
151
|
-
|
|
154
|
+
a.value !== r.modelValue ? (c(), I(z, X({
|
|
152
155
|
key: 0,
|
|
153
156
|
icon: "",
|
|
154
157
|
styling: "soft"
|
|
155
|
-
},
|
|
156
|
-
default: w(() => [
|
|
157
|
-
N(t.$slots, "default")
|
|
158
|
-
]),
|
|
159
|
-
_: 3
|
|
160
|
-
}, 16)) : f("", !0)
|
|
158
|
+
}, r.button, { onClick: f }), null, 16)) : T("", !0)
|
|
161
159
|
]));
|
|
162
160
|
}
|
|
163
|
-
}),
|
|
161
|
+
}), he = {
|
|
164
162
|
"top-editInput": "top-editInput",
|
|
165
163
|
"top-input": "top-input"
|
|
166
|
-
},
|
|
167
|
-
$style:
|
|
168
|
-
},
|
|
164
|
+
}, be = {
|
|
165
|
+
$style: he
|
|
166
|
+
}, Ae = /* @__PURE__ */ L(ye, [["__cssModules", be]]), ge = ["data-top-icon", "onClick"], Te = {
|
|
169
167
|
key: 0,
|
|
170
168
|
class: "top-radioGroup_circle"
|
|
171
|
-
},
|
|
169
|
+
}, Ve = ["value", "disabled"], _e = /* @__PURE__ */ K({
|
|
172
170
|
__name: "radioGroup",
|
|
173
|
-
props: /* @__PURE__ */
|
|
171
|
+
props: /* @__PURE__ */ D({
|
|
174
172
|
modelValue: {},
|
|
175
173
|
radiosProps: {},
|
|
176
174
|
showIndicator: { type: Boolean },
|
|
@@ -182,52 +180,52 @@ const J = { class: "top-editArea_footer" }, Q = /* @__PURE__ */ G({
|
|
|
182
180
|
},
|
|
183
181
|
modelModifiers: {}
|
|
184
182
|
}),
|
|
185
|
-
emits: /* @__PURE__ */
|
|
186
|
-
setup(
|
|
187
|
-
const e =
|
|
188
|
-
|
|
189
|
-
var
|
|
190
|
-
(
|
|
183
|
+
emits: /* @__PURE__ */ D(["update:modelValue"], ["update:modelValue"]),
|
|
184
|
+
setup(s, { emit: d }) {
|
|
185
|
+
const e = j(s, "modelValue"), a = s, m = V(null);
|
|
186
|
+
k(e, () => {
|
|
187
|
+
var r, p, i, y, b;
|
|
188
|
+
(r = a.radiosProps) != null && r.some((u) => u.value === e.value) || (e.value = ((i = (p = a.radiosProps) == null ? void 0 : p[0]) == null ? void 0 : i.value) ?? ""), (b = (y = m.value) == null ? void 0 : y.querySelector(".radioGroup_item-selected")) == null || b.scrollIntoView();
|
|
191
189
|
}, { immediate: !0 });
|
|
192
|
-
const
|
|
193
|
-
return (
|
|
190
|
+
const f = "radioGroup-" + Math.random();
|
|
191
|
+
return (r, p) => (c(), v("div", {
|
|
194
192
|
ref_key: "elRef",
|
|
195
|
-
ref:
|
|
196
|
-
class:
|
|
193
|
+
ref: m,
|
|
194
|
+
class: $({
|
|
197
195
|
"top-radioGroup": !0,
|
|
198
196
|
"top-scrollBarXHidding": !0,
|
|
199
|
-
["top-size_" +
|
|
200
|
-
"top-error":
|
|
197
|
+
["top-size_" + r.size]: !!r.size,
|
|
198
|
+
"top-error": r.isError
|
|
201
199
|
})
|
|
202
200
|
}, [
|
|
203
|
-
(
|
|
204
|
-
class:
|
|
205
|
-
"top-radioGroup_item-selected":
|
|
201
|
+
(c(!0), v(G, null, H(r.radiosProps, (i) => (c(), v("label", {
|
|
202
|
+
class: $({
|
|
203
|
+
"top-radioGroup_item-selected": i.value === e.value,
|
|
206
204
|
"top-radioGroup_item": !0,
|
|
207
205
|
"top-forms-focusable": !0,
|
|
208
|
-
"top-disabled":
|
|
206
|
+
"top-disabled": i.disabled
|
|
209
207
|
}),
|
|
210
|
-
"data-top-icon":
|
|
211
|
-
onClick: (
|
|
208
|
+
"data-top-icon": i.icon,
|
|
209
|
+
onClick: (y) => e.value = i.value
|
|
212
210
|
}, [
|
|
213
|
-
C(
|
|
214
|
-
|
|
215
|
-
E(
|
|
216
|
-
"onUpdate:modelValue":
|
|
217
|
-
name:
|
|
211
|
+
M(C(i.title) + " ", 1),
|
|
212
|
+
r.showIndicator ? (c(), v("span", Te)) : T("", !0),
|
|
213
|
+
Y(E("input", {
|
|
214
|
+
"onUpdate:modelValue": p[0] || (p[0] = (y) => e.value = y),
|
|
215
|
+
name: f,
|
|
218
216
|
type: "radio",
|
|
219
|
-
class:
|
|
217
|
+
class: $({
|
|
220
218
|
"top-unvisible": !0
|
|
221
219
|
}),
|
|
222
|
-
value:
|
|
223
|
-
disabled:
|
|
224
|
-
}, null, 8,
|
|
225
|
-
[
|
|
220
|
+
value: i.value,
|
|
221
|
+
disabled: i.disabled
|
|
222
|
+
}, null, 8, Ve), [
|
|
223
|
+
[ee, e.value]
|
|
226
224
|
])
|
|
227
|
-
], 10,
|
|
225
|
+
], 10, ge))), 256))
|
|
228
226
|
], 2));
|
|
229
227
|
}
|
|
230
|
-
}),
|
|
228
|
+
}), we = {
|
|
231
229
|
"top-scrollBarXHidding": "top-scrollBarXHidding",
|
|
232
230
|
"top-radioGroup": "top-radioGroup",
|
|
233
231
|
"top-radioGroup_item": "top-radioGroup_item",
|
|
@@ -235,13 +233,250 @@ const J = { class: "top-editArea_footer" }, Q = /* @__PURE__ */ G({
|
|
|
235
233
|
"top-radioGroup_circle": "top-radioGroup_circle",
|
|
236
234
|
"top-disabled": "top-disabled",
|
|
237
235
|
"top-error": "top-error"
|
|
238
|
-
},
|
|
239
|
-
$style:
|
|
240
|
-
},
|
|
236
|
+
}, Ie = {
|
|
237
|
+
$style: we
|
|
238
|
+
}, $e = /* @__PURE__ */ L(_e, [["__cssModules", Ie]]), Ce = (s, d, e) => {
|
|
239
|
+
const a = V([]), m = V(!1);
|
|
240
|
+
let f = "", r;
|
|
241
|
+
s && !s.params.limit && (s.params.limit = 100);
|
|
242
|
+
const p = async () => {
|
|
243
|
+
if (!s) return;
|
|
244
|
+
let o, g;
|
|
245
|
+
if (e && (s.cache ??= /* @__PURE__ */ new Map(), g = JSON.stringify(s.params), o = s.cache.get(g), o))
|
|
246
|
+
return o;
|
|
247
|
+
if (m.value = !0, o = await s.call(), m.value = !1, o.errors) return;
|
|
248
|
+
if (!Array.isArray(o.result)) {
|
|
249
|
+
console.warn("В result ожидался массив");
|
|
250
|
+
return;
|
|
251
|
+
}
|
|
252
|
+
const h = o.result.findIndex((P) => P.id === void 0 || P.name === void 0);
|
|
253
|
+
if (h !== -1) {
|
|
254
|
+
console.warn(`В result[${h}] нет id или name`);
|
|
255
|
+
return;
|
|
256
|
+
}
|
|
257
|
+
return e && s.cache.set(g, o), o;
|
|
258
|
+
}, i = async () => {
|
|
259
|
+
if (!s) return;
|
|
260
|
+
s.params.offset = 0, s.params.search = f;
|
|
261
|
+
const o = await p();
|
|
262
|
+
o && (r = o.nextOffset, a.value = o.result);
|
|
263
|
+
}, y = async () => {
|
|
264
|
+
if (!s || !r || m.value) return;
|
|
265
|
+
s.params.offset = r, s.params.search = f;
|
|
266
|
+
const o = await p();
|
|
267
|
+
o && (r = o.nextOffset, a.value = a.value.concat(o.result));
|
|
268
|
+
}, b = ie(() => i(), 200);
|
|
269
|
+
return {
|
|
270
|
+
items: a,
|
|
271
|
+
isLoading: m,
|
|
272
|
+
loadAppend: y,
|
|
273
|
+
setSearchTextAndLoad: (o, g = !0) => {
|
|
274
|
+
s && (o.length < d || o === f && a.value.length || (f = o, g ? b() : i()));
|
|
275
|
+
}
|
|
276
|
+
};
|
|
277
|
+
}, Be = { class: "top-selector2_itemMulti top-ellipsis" }, Me = /* @__PURE__ */ K({
|
|
278
|
+
__name: "itemMulti",
|
|
279
|
+
props: {
|
|
280
|
+
id: {},
|
|
281
|
+
name: {}
|
|
282
|
+
},
|
|
283
|
+
emits: ["delete"],
|
|
284
|
+
setup(s) {
|
|
285
|
+
return (d, e) => (c(), v("div", Be, [
|
|
286
|
+
M(C(d.name) + " ", 1),
|
|
287
|
+
E("span", {
|
|
288
|
+
class: "top-selector2_itemMultiDelete",
|
|
289
|
+
"data-top-icon": "",
|
|
290
|
+
onClick: e[0] || (e[0] = (a) => d.$emit("delete", d.id)),
|
|
291
|
+
onMousedown: e[1] || (e[1] = B(() => {
|
|
292
|
+
}, ["stop"]))
|
|
293
|
+
}, null, 32)
|
|
294
|
+
]));
|
|
295
|
+
}
|
|
296
|
+
}), Se = {
|
|
297
|
+
"top-selector2_itemMulti": "top-selector2_itemMulti",
|
|
298
|
+
"top-selector2_itemMultiDelete": "top-selector2_itemMultiDelete",
|
|
299
|
+
"top-selector2": "top-selector2",
|
|
300
|
+
"top-active": "top-active"
|
|
301
|
+
}, ke = {
|
|
302
|
+
$style: Se
|
|
303
|
+
}, Ee = /* @__PURE__ */ L(Me, [["__cssModules", ke]]), Ke = {
|
|
304
|
+
key: 0,
|
|
305
|
+
class: "top-selector2_activeItems"
|
|
306
|
+
}, Le = {
|
|
307
|
+
key: 1,
|
|
308
|
+
class: "top-selector2_activeName top-ellipsis"
|
|
309
|
+
}, Pe = /* @__PURE__ */ K({
|
|
310
|
+
__name: "selector2",
|
|
311
|
+
props: /* @__PURE__ */ D({
|
|
312
|
+
modelValue: {},
|
|
313
|
+
items: { default: () => [] },
|
|
314
|
+
multiselect: { type: Boolean },
|
|
315
|
+
disabled: { type: Boolean },
|
|
316
|
+
size: { default: "s" },
|
|
317
|
+
isError: { type: Boolean },
|
|
318
|
+
apiRequest: {},
|
|
319
|
+
minLength: { default: 0 },
|
|
320
|
+
useCache: { type: Boolean },
|
|
321
|
+
appendSearchToResult: { type: Boolean },
|
|
322
|
+
appendAllValue: { type: Boolean },
|
|
323
|
+
addChanger: { type: Boolean },
|
|
324
|
+
placeholder: {},
|
|
325
|
+
showSelectedInInput: { type: Boolean, default: !0 }
|
|
326
|
+
}, {
|
|
327
|
+
modelValue: {},
|
|
328
|
+
modelModifiers: {}
|
|
329
|
+
}),
|
|
330
|
+
emits: ["update:modelValue"],
|
|
331
|
+
setup(s) {
|
|
332
|
+
const d = s, e = j(s, "modelValue"), a = V(""), m = {
|
|
333
|
+
id: 0,
|
|
334
|
+
name: "Все"
|
|
335
|
+
}, f = V(null), r = () => {
|
|
336
|
+
var t;
|
|
337
|
+
return (t = f.value) == null ? void 0 : t.popup;
|
|
338
|
+
};
|
|
339
|
+
window.__STORYBOOK_PREVIEW__ && !d.modelValue && k(
|
|
340
|
+
() => d.multiselect,
|
|
341
|
+
() => {
|
|
342
|
+
e.value = d.multiselect ? [] : { id: null, name: "" };
|
|
343
|
+
},
|
|
344
|
+
{ immediate: !0 }
|
|
345
|
+
);
|
|
346
|
+
const p = Ce(d.apiRequest, d.minLength, d.useCache), i = N(() => {
|
|
347
|
+
const t = [];
|
|
348
|
+
return !d.multiselect && d.appendAllValue && t.push(m), d.items.forEach((n) => t.push({ ...n })), t;
|
|
349
|
+
}), y = (t, n = !0) => n && t.id === null ? Array.isArray(e.value) ? e.value.some((l) => l.id === t.id && l.name === t.name) : t.name === e.value.name : Array.isArray(e.value) ? e.value.some((l) => l.id === t.id) : t.id === e.value.id, b = N(() => {
|
|
350
|
+
const t = a.value.toLowerCase(), n = se(t);
|
|
351
|
+
let l = [];
|
|
352
|
+
return i.value.forEach((A) => {
|
|
353
|
+
const _ = A.name.toLowerCase();
|
|
354
|
+
(A.id === Number(t) || _.includes(t) || _.includes(n)) && (_ === t || _ === n ? l.unshift(A) : l.push(A));
|
|
355
|
+
}), l.push(...p.items.value), d.appendSearchToResult && a.value && (!l.length || l[0].name.toLowerCase() !== t) && l.push({
|
|
356
|
+
id: null,
|
|
357
|
+
name: a.value
|
|
358
|
+
}), d.multiselect && (l = l.filter((A) => !y(A))), l;
|
|
359
|
+
}), u = async (t) => {
|
|
360
|
+
var n, l;
|
|
361
|
+
if (d.multiselect) {
|
|
362
|
+
if (!Array.isArray(e.value) || y(t))
|
|
363
|
+
return;
|
|
364
|
+
const A = [...e.value];
|
|
365
|
+
A.push({ ...t }), e.value = A, ae.state.isMobile ? (n = r()) == null || n.close() : setTimeout(() => {
|
|
366
|
+
var _, U, W, J;
|
|
367
|
+
(_ = r()) == null || _.recalcPosition(), (J = (W = (U = r()) == null ? void 0 : U.elPopupWidget) == null ? void 0 : W.querySelector("input")) == null || J.focus(), a.value && (b.value.length || (a.value = "", p.items.value = []));
|
|
368
|
+
});
|
|
369
|
+
} else
|
|
370
|
+
a.value && (a.value = "", p.items.value = []), JSON.stringify(t) !== JSON.stringify(e.value) && (e.value = { ...t }), (l = r()) == null || l.close();
|
|
371
|
+
}, o = () => {
|
|
372
|
+
if (!Array.isArray(e.value)) {
|
|
373
|
+
const n = (i.value.findIndex((l) => l.id === e.value.id) + 1) % i.value.length;
|
|
374
|
+
e.value = { ...i.value[n] };
|
|
375
|
+
}
|
|
376
|
+
}, g = async (t) => {
|
|
377
|
+
Array.isArray(e.value) && (e.value = e.value.filter((n) => n.id !== t), setTimeout(() => {
|
|
378
|
+
var n;
|
|
379
|
+
(n = r()) == null || n.recalcPosition();
|
|
380
|
+
}));
|
|
381
|
+
}, h = V(!1);
|
|
382
|
+
d.apiRequest && (k(h, () => {
|
|
383
|
+
h.value && p.setSearchTextAndLoad(a.value, !1);
|
|
384
|
+
}), k(a, () => p.setSearchTextAndLoad(a.value)));
|
|
385
|
+
const P = (t) => {
|
|
386
|
+
const n = t.target;
|
|
387
|
+
n.scrollTop / (n.scrollHeight - n.offsetHeight) > 0.8 && p.loadAppend();
|
|
388
|
+
};
|
|
389
|
+
return (t, n) => (c(), I(S(re), {
|
|
390
|
+
ref_key: "popupRef",
|
|
391
|
+
ref: f,
|
|
392
|
+
onOpen: n[1] || (n[1] = (l) => h.value = !0),
|
|
393
|
+
onClose: n[2] || (n[2] = (l) => h.value = !1),
|
|
394
|
+
onScrollContentList: n[3] || (n[3] = (l) => t.apiRequest ? P(l) : void 0),
|
|
395
|
+
notch: !1,
|
|
396
|
+
transitionDuration: 0
|
|
397
|
+
}, {
|
|
398
|
+
opener: w(() => [
|
|
399
|
+
E("div", {
|
|
400
|
+
class: $({
|
|
401
|
+
"top-selector2": !0,
|
|
402
|
+
"top-selector2-multiselect": t.multiselect,
|
|
403
|
+
["top-size_" + t.size]: !0,
|
|
404
|
+
"top-disabled": t.disabled,
|
|
405
|
+
"top-forms-focusable": !t.disabled,
|
|
406
|
+
"top-error": t.isError
|
|
407
|
+
})
|
|
408
|
+
}, [
|
|
409
|
+
t.multiselect ? (c(), v("div", Ke, [
|
|
410
|
+
(c(!0), v(G, null, H(e.value, (l) => (c(), I(Ee, {
|
|
411
|
+
id: l.id,
|
|
412
|
+
name: l.name,
|
|
413
|
+
onDelete: g
|
|
414
|
+
}, null, 8, ["id", "name"]))), 256))
|
|
415
|
+
])) : T("", !0),
|
|
416
|
+
t.multiselect ? T("", !0) : (c(), v("span", Le, C(Array.isArray(e.value) ? "" : e.value.name), 1)),
|
|
417
|
+
t.addChanger && !t.multiselect && i.value.length > 1 && !t.disabled ? (c(), v("span", {
|
|
418
|
+
key: 2,
|
|
419
|
+
class: "top-changer top-changer-selector",
|
|
420
|
+
onClick: B(o, ["stop"])
|
|
421
|
+
})) : T("", !0)
|
|
422
|
+
], 2)
|
|
423
|
+
]),
|
|
424
|
+
widget: w(() => [
|
|
425
|
+
F(S(ne), {
|
|
426
|
+
title: "Поиск",
|
|
427
|
+
icon: "",
|
|
428
|
+
modelValue: a.value,
|
|
429
|
+
"onUpdate:modelValue": n[0] || (n[0] = (l) => a.value = l),
|
|
430
|
+
isLoading: S(p).isLoading.value,
|
|
431
|
+
placeholder: !Array.isArray(e.value) && !t.multiselect && t.showSelectedInInput ? e.value.name : t.placeholder
|
|
432
|
+
}, null, 8, ["modelValue", "isLoading", "placeholder"])
|
|
433
|
+
]),
|
|
434
|
+
contentList: w(() => [
|
|
435
|
+
(c(!0), v(G, null, H(b.value, (l) => (c(), I(S(R), {
|
|
436
|
+
class: $({
|
|
437
|
+
"top-active": !Array.isArray(e.value) && !t.multiselect && e.value.name === l.name
|
|
438
|
+
}),
|
|
439
|
+
key: l.id ?? void 0,
|
|
440
|
+
onClick: B((A) => u(l), ["stop"])
|
|
441
|
+
}, {
|
|
442
|
+
default: w(() => [
|
|
443
|
+
t.$slots.item ? te(t.$slots, "item", {
|
|
444
|
+
key: 0,
|
|
445
|
+
item: l
|
|
446
|
+
}) : (c(), v(G, { key: 1 }, [
|
|
447
|
+
M(C(l.name), 1)
|
|
448
|
+
], 64))
|
|
449
|
+
]),
|
|
450
|
+
_: 2
|
|
451
|
+
}, 1032, ["class", "onClick"]))), 128)),
|
|
452
|
+
b.value.length ? T("", !0) : (c(), I(S(R), {
|
|
453
|
+
key: 0,
|
|
454
|
+
type: "regular"
|
|
455
|
+
}, {
|
|
456
|
+
default: w(() => [
|
|
457
|
+
M(" Нет результатов ")
|
|
458
|
+
]),
|
|
459
|
+
_: 1
|
|
460
|
+
}))
|
|
461
|
+
]),
|
|
462
|
+
_: 3
|
|
463
|
+
}, 512));
|
|
464
|
+
}
|
|
465
|
+
}), Ge = {
|
|
466
|
+
"top-selector2": "top-selector2",
|
|
467
|
+
"top-selector2-multiselect": "top-selector2-multiselect",
|
|
468
|
+
"top-active": "top-active",
|
|
469
|
+
"top-selector2_activeItems": "top-selector2_activeItems",
|
|
470
|
+
"top-selector2_activeName": "top-selector2_activeName",
|
|
471
|
+
"top-changer-selector": "top-changer-selector"
|
|
472
|
+
}, Ne = {
|
|
473
|
+
$style: Ge
|
|
474
|
+
}, Oe = /* @__PURE__ */ L(Pe, [["__cssModules", Ne]]), Xe = fe, Re = Ae, Ye = $e, je = Oe, Qe = ue;
|
|
241
475
|
export {
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
476
|
+
Xe as TopEditArea,
|
|
477
|
+
Re as TopEditInput,
|
|
478
|
+
Qe as TopMenu,
|
|
479
|
+
Ye as TopRadioGroup,
|
|
480
|
+
je as TopSelector2
|
|
246
481
|
};
|
|
247
482
|
//# sourceMappingURL=formsExt.js.map
|