@dxtmisha/constructor 0.39.3 → 0.39.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{AriaStaticInclude-CFGewqpn.js → AriaStaticInclude-CAURwJMb.js} +47 -9
- package/dist/{BarsInclude-IM3Gdslg.js → BarsInclude-BOEoY-O4.js} +19 -14
- package/dist/{BlockDesign-D67yDT9N.js → BlockDesign-CwRNJi0I.js} +49 -38
- package/dist/ButtonDesign-DgZNw44L.js +198 -0
- package/dist/CaptionInclude-NzS6EYYj.js +70 -0
- package/dist/{DescriptionInclude-DxWNon_J.js → DescriptionInclude-D4ane9aR.js} +20 -30
- package/dist/{EnabledInclude-DGeuJhOr.js → EnabledInclude-Dk-rP4jp.js} +1 -1
- package/dist/{EventClickInclude-eDWqxK0d.js → EventClickInclude-WHJqxZ1b.js} +13 -3
- package/dist/{FieldCounterInclude-BR6n8WlH.js → FieldCounterInclude-D0oojGWY.js} +2 -2
- package/dist/{FieldEventInclude-zg02dtQi.js → FieldEventInclude-DBRqmzpF.js} +11 -8
- package/dist/{FieldInclude-c6DSD0-y.js → FieldInclude-BKoBWZdj.js} +23 -12
- package/dist/{FieldLabelInclude-B4OGaJ1r.js → FieldLabelInclude-Bkxf6rRw.js} +30 -23
- package/dist/{FieldMatchInclude-Vl2gJUaM.js → FieldMatchInclude-GgyucDC_.js} +35 -19
- package/dist/{FieldMessageInclude-CktVHvWW.js → FieldMessageInclude-BJDnir34.js} +34 -28
- package/dist/{LabelHighlightInclude-Dhj3p9NW.js → LabelHighlightInclude-CLmTvW_6.js} +1 -1
- package/dist/{LabelInclude-BtZrrbCf.js → LabelInclude-D-mLvjK5.js} +32 -50
- package/dist/{LabelNumberInclude-DyifvMnr.js → LabelNumberInclude-Cn0qDEgX.js} +1 -1
- package/dist/{ModalDesignAbstract-CjDr5JaN.js → ModalDesignAbstract-D4A_a_rC.js} +42 -42
- package/dist/Plugin-CBNCh_iN.js +628 -0
- package/dist/{ProgressInclude-UBipdctr.js → ProgressInclude-9MfZWtGP.js} +5 -5
- package/dist/{SuffixInclude-C7JNYCJK.js → SuffixInclude-maZ7235l.js} +48 -20
- package/dist/{TabIndexInclude-d7A_R6KD.js → TabIndexInclude-xcSFV8yP.js} +43 -33
- package/dist/TextInclude--GERRCGj.js +146 -0
- package/dist/{WindowEsc-Dp9AvJt7.js → WindowEsc-DTwn4Vsz.js} +2 -2
- package/dist/{WindowInclude-Is5RhGxt.js → WindowInclude-BWm4-0Gh.js} +24 -20
- package/dist/accordion.js +66 -50
- package/dist/actionSheet.js +2 -4
- package/dist/actions.js +38 -36
- package/dist/anchor.js +63 -60
- package/dist/arrow.js +32 -33
- package/dist/badge.js +40 -35
- package/dist/bars.js +91 -57
- package/dist/block.js +1 -1
- package/dist/button.js +12 -15
- package/dist/cell.js +44 -37
- package/dist/chip.js +1 -1
- package/dist/chipGroup.js +25 -21
- package/dist/classes/AriaStaticInclude.d.ts +28 -0
- package/dist/classes/CaptionInclude.d.ts +64 -1
- package/dist/classes/DescriptionInclude.d.ts +4 -16
- package/dist/classes/EventClickInclude.d.ts +8 -0
- package/dist/classes/{field → Field}/FieldInputModeInclude.d.ts +1 -0
- package/dist/classes/LabelInclude.d.ts +4 -17
- package/dist/classes/Plugin/Plugin.d.ts +80 -0
- package/dist/classes/Plugin/PluginCode.d.ts +94 -0
- package/dist/classes/Plugin/PluginComponents.d.ts +38 -0
- package/dist/classes/Plugin/PluginData.d.ts +81 -0
- package/dist/classes/Plugin/PluginImport.d.ts +34 -0
- package/dist/classes/Plugin/PluginStyle.d.ts +71 -0
- package/dist/classes/Plugin/PluginTool.d.ts +42 -0
- package/dist/classes/PrefixInclude.d.ts +9 -1
- package/dist/classes/SuffixInclude.d.ts +9 -1
- package/dist/classes/TabIndexInclude.d.ts +14 -8
- package/dist/classes/TextInclude.d.ts +33 -5
- package/dist/constructors/Accordion/Accordion.d.ts +28 -1
- package/dist/constructors/Accordion/props.d.ts +5 -7
- package/dist/constructors/ActionSheet/props.d.ts +4 -7
- package/dist/constructors/Actions/Actions.d.ts +2 -1
- package/dist/constructors/Actions/ActionsDesign.d.ts +2 -1
- package/dist/constructors/Actions/basicTypes.d.ts +2 -2
- package/dist/constructors/Actions/props.d.ts +6 -7
- package/dist/constructors/Anchor/Anchor.d.ts +0 -7
- package/dist/constructors/Anchor/AnchorIcon.d.ts +4 -4
- package/dist/constructors/Anchor/basicTypes.d.ts +2 -2
- package/dist/constructors/Anchor/props.d.ts +8 -10
- package/dist/constructors/Anchor/types.d.ts +2 -2
- package/dist/constructors/Arrow/Arrow.d.ts +0 -5
- package/dist/constructors/Arrow/basicTypes.d.ts +2 -2
- package/dist/constructors/Arrow/props.d.ts +5 -7
- package/dist/constructors/Badge/Badge.d.ts +5 -1
- package/dist/constructors/Badge/BadgeDesign.d.ts +2 -1
- package/dist/constructors/Badge/basicTypes.d.ts +2 -2
- package/dist/constructors/Badge/props.d.ts +5 -7
- package/dist/constructors/Bars/Bars.d.ts +33 -8
- package/dist/constructors/Bars/BarsAction.d.ts +6 -2
- package/dist/constructors/Bars/BarsDesign.d.ts +2 -1
- package/dist/constructors/Bars/BarsInclude.d.ts +7 -2
- package/dist/constructors/Bars/basicTypes.d.ts +2 -2
- package/dist/constructors/Bars/props.d.ts +5 -8
- package/dist/constructors/Bars/types.d.ts +3 -3
- package/dist/constructors/Block/Block.d.ts +0 -4
- package/dist/constructors/Block/BlockDesign.d.ts +9 -1
- package/dist/constructors/Block/props.d.ts +4 -7
- package/dist/constructors/Block/types.d.ts +3 -3
- package/dist/constructors/Button/Button.d.ts +22 -1
- package/dist/constructors/Button/ButtonDesign.d.ts +2 -1
- package/dist/constructors/Button/basicTypes.d.ts +2 -2
- package/dist/constructors/Button/props.d.ts +7 -11
- package/dist/constructors/Button/types.d.ts +2 -2
- package/dist/constructors/Cell/Cell.d.ts +10 -1
- package/dist/constructors/Cell/CellDesign.d.ts +2 -1
- package/dist/constructors/Cell/props.d.ts +5 -7
- package/dist/constructors/Cell/types.d.ts +3 -3
- package/dist/constructors/Chip/basicTypes.d.ts +2 -2
- package/dist/constructors/Chip/props.d.ts +4 -7
- package/dist/constructors/ChipGroup/ChipGroup.d.ts +4 -1
- package/dist/constructors/ChipGroup/ChipGroupDesign.d.ts +2 -1
- package/dist/constructors/ChipGroup/props.d.ts +4 -7
- package/dist/constructors/Dialog/Dialog.d.ts +1 -2
- package/dist/constructors/Dialog/props.d.ts +5 -7
- package/dist/constructors/Field/Field.d.ts +33 -6
- package/dist/constructors/Field/FieldDesign.d.ts +2 -1
- package/dist/constructors/Field/FieldIcons.d.ts +4 -1
- package/dist/constructors/Field/FieldInclude.d.ts +11 -3
- package/dist/constructors/Field/basicTypes.d.ts +2 -2
- package/dist/constructors/Field/props.d.ts +6 -7
- package/dist/constructors/FieldCounter/FieldCounter.d.ts +22 -1
- package/dist/constructors/FieldCounter/FieldCounterDesign.d.ts +9 -2
- package/dist/constructors/FieldCounter/props.d.ts +10 -7
- package/dist/constructors/FieldCounter/types.d.ts +1 -0
- package/dist/constructors/FieldLabel/FieldLabel.d.ts +5 -1
- package/dist/constructors/FieldLabel/FieldLabelDesign.d.ts +2 -1
- package/dist/constructors/FieldLabel/FieldLabelInclude.d.ts +7 -5
- package/dist/constructors/FieldLabel/basicTypes.d.ts +2 -2
- package/dist/constructors/FieldLabel/props.d.ts +5 -7
- package/dist/constructors/FieldLabel/types.d.ts +2 -2
- package/dist/constructors/FieldMessage/FieldMessage.d.ts +16 -1
- package/dist/constructors/FieldMessage/FieldMessageDesign.d.ts +2 -1
- package/dist/constructors/FieldMessage/FieldMessageInclude.d.ts +8 -9
- package/dist/constructors/FieldMessage/props.d.ts +4 -7
- package/dist/constructors/Icon/Icon.d.ts +7 -2
- package/dist/constructors/Icon/IconLiteInclude.d.ts +1 -2
- package/dist/constructors/Icon/basicTypes.d.ts +6 -6
- package/dist/constructors/Icon/props.d.ts +8 -8
- package/dist/constructors/Icon/types.d.ts +3 -2
- package/dist/constructors/Image/Image.d.ts +0 -7
- package/dist/constructors/Image/basicTypes.d.ts +2 -2
- package/dist/constructors/Image/props.d.ts +5 -7
- package/dist/constructors/Input/Input.d.ts +33 -14
- package/dist/constructors/Input/InputDesign.d.ts +2 -1
- package/dist/constructors/Input/InputPassword.d.ts +5 -2
- package/dist/constructors/Input/props.d.ts +3 -7
- package/dist/constructors/List/List.d.ts +35 -27
- package/dist/constructors/List/ListDesign.d.ts +2 -1
- package/dist/constructors/List/ListFocus.d.ts +10 -2
- package/dist/constructors/List/ListGo.d.ts +22 -4
- package/dist/constructors/List/props.d.ts +8 -8
- package/dist/constructors/ListGroup/ListGroup.d.ts +2 -1
- package/dist/constructors/ListGroup/ListGroupDesign.d.ts +2 -1
- package/dist/constructors/ListGroup/basicTypes.d.ts +2 -2
- package/dist/constructors/ListGroup/props.d.ts +5 -7
- package/dist/constructors/ListItem/ListItem.d.ts +17 -60
- package/dist/constructors/ListItem/props.d.ts +7 -10
- package/dist/constructors/ListMenu/ListMenu.d.ts +3 -1
- package/dist/constructors/ListMenu/ListMenuDesign.d.ts +2 -1
- package/dist/constructors/ListMenu/props.d.ts +4 -7
- package/dist/constructors/Mask/Mask.d.ts +24 -1
- package/dist/constructors/Mask/MaskDesign.d.ts +2 -1
- package/dist/constructors/Mask/MaskInclude.d.ts +2 -2
- package/dist/constructors/Mask/MaskPattern.d.ts +1 -1
- package/dist/constructors/Mask/props.d.ts +5 -7
- package/dist/constructors/Menu/Menu.d.ts +11 -7
- package/dist/constructors/Menu/MenuDesign.d.ts +2 -1
- package/dist/constructors/Menu/MenuRequest.d.ts +1 -5
- package/dist/constructors/Menu/basicTypes.d.ts +2 -2
- package/dist/constructors/Menu/props.d.ts +7 -8
- package/dist/constructors/Modal/ModalDesign.d.ts +1 -1
- package/dist/constructors/Modal/ModalDesignAbstract.d.ts +3 -2
- package/dist/constructors/Modal/props.d.ts +5 -7
- package/dist/constructors/MotionTransform/MotionTransform.d.ts +10 -8
- package/dist/constructors/MotionTransform/MotionTransformDesign.d.ts +13 -2
- package/dist/constructors/MotionTransform/MotionTransformEvent.d.ts +14 -0
- package/dist/constructors/MotionTransform/props.d.ts +6 -8
- package/dist/constructors/Page/props.d.ts +3 -7
- package/dist/constructors/Progress/Progress.d.ts +20 -0
- package/dist/constructors/Progress/ProgressDesign.d.ts +4 -60
- package/dist/constructors/Progress/basicTypes.d.ts +2 -2
- package/dist/constructors/Progress/props.d.ts +7 -9
- package/dist/constructors/Ripple/RippleDesign.d.ts +2 -1
- package/dist/constructors/Ripple/props.d.ts +4 -7
- package/dist/constructors/Scrollbar/Scrollbar.d.ts +3 -1
- package/dist/constructors/Scrollbar/ScrollbarDesign.d.ts +2 -1
- package/dist/constructors/Scrollbar/basicTypes.d.ts +2 -2
- package/dist/constructors/Scrollbar/props.d.ts +5 -7
- package/dist/constructors/Section/props.d.ts +3 -7
- package/dist/constructors/Select/Select.d.ts +19 -8
- package/dist/constructors/Select/SelectDesign.d.ts +2 -1
- package/dist/constructors/Select/SelectInput.d.ts +3 -3
- package/dist/constructors/Select/props.d.ts +4 -7
- package/dist/constructors/SelectValue/SelectValue.d.ts +4 -1
- package/dist/constructors/SelectValue/SelectValueDesign.d.ts +2 -1
- package/dist/constructors/SelectValue/props.d.ts +4 -7
- package/dist/constructors/Skeleton/SkeletonDesign.d.ts +2 -1
- package/dist/constructors/Skeleton/basicTypes.d.ts +2 -2
- package/dist/constructors/Skeleton/props.d.ts +4 -7
- package/dist/constructors/TextareaAutosize/TextareaAutosize.d.ts +3 -1
- package/dist/constructors/TextareaAutosize/TextareaAutosizeDesign.d.ts +2 -1
- package/dist/constructors/TextareaAutosize/props.d.ts +4 -7
- package/dist/constructors/Tooltip/Tooltip.d.ts +82 -13
- package/dist/constructors/Tooltip/TooltipEvent.d.ts +6 -2
- package/dist/constructors/Tooltip/TooltipOpen.d.ts +7 -1
- package/dist/constructors/Tooltip/basicTypes.d.ts +2 -2
- package/dist/constructors/Tooltip/props.d.ts +13 -7
- package/dist/constructors/Window/Window.d.ts +25 -1
- package/dist/constructors/Window/WindowDesign.d.ts +5 -63
- package/dist/constructors/Window/WindowEsc.d.ts +2 -2
- package/dist/constructors/Window/WindowEvent.d.ts +20 -3
- package/dist/constructors/Window/WindowHidden.d.ts +9 -3
- package/dist/constructors/Window/WindowInclude.d.ts +5 -1
- package/dist/constructors/Window/basicTypes.d.ts +7 -3
- package/dist/constructors/Window/props.d.ts +19 -9
- package/dist/dialog.js +4 -4
- package/dist/field.js +161 -126
- package/dist/fieldCounter.js +107 -38
- package/dist/fieldLabel.js +41 -37
- package/dist/fieldMessage.js +87 -65
- package/dist/icon.js +55 -39
- package/dist/image.js +108 -110
- package/dist/input.js +102 -80
- package/dist/library/plugin.d.ts +2 -0
- package/dist/library.d.ts +22 -14
- package/dist/library.js +55 -47
- package/dist/list.js +152 -87
- package/dist/listGroup.js +23 -21
- package/dist/listItem.js +116 -100
- package/dist/listMenu.js +26 -20
- package/dist/mask.js +113 -89
- package/dist/media/styleModification.d.ts +6 -0
- package/dist/menu.js +64 -49
- package/dist/modal.js +9 -9
- package/dist/motionTransform.js +138 -106
- package/dist/page.js +1 -1
- package/dist/plugin.js +4 -0
- package/dist/progress.js +65 -38
- package/dist/ripple.js +4 -3
- package/dist/scrollbar.js +23 -20
- package/dist/section.js +1 -1
- package/dist/select.js +105 -90
- package/dist/selectValue.js +29 -25
- package/dist/skeleton.js +20 -22
- package/dist/textareaAutosize.js +26 -23
- package/dist/tooltip.js +140 -91
- package/dist/types/ariaTypes.d.ts +22 -16
- package/dist/types/captionTypes.d.ts +4 -2
- package/dist/types/descriptionTypes.d.ts +4 -12
- package/dist/types/enabledTypes.d.ts +2 -2
- package/dist/types/eventClickTypes.d.ts +2 -2
- package/dist/types/fieldTypes.d.ts +40 -41
- package/dist/types/labelTypes.d.ts +6 -13
- package/dist/types/modelTypes.d.ts +4 -4
- package/dist/types/pluginTypes.d.ts +17 -0
- package/dist/types/prefixTypes.d.ts +4 -2
- package/dist/types/suffixTypes.d.ts +4 -2
- package/dist/types/textTypes.d.ts +50 -11
- package/dist/window.js +169 -105
- package/package.json +89 -90
- package/src/constructors/Actions/style.scss +0 -1
- package/src/constructors/Bars/style.scss +2 -0
- package/src/constructors/FieldCounter/style.scss +5 -0
- package/src/constructors/Progress/style.scss +2 -0
- package/src/constructors/Tooltip/style.scss +10 -2
- package/src/constructors/Window/style.scss +7 -1
- package/dist/ButtonDesign-DZ7QCmHk.js +0 -169
- package/dist/CaptionInclude-AFVF4qyd.js +0 -52
- package/dist/TextInclude-i1OBAFTG.js +0 -76
- /package/dist/classes/{field → Field}/FieldArrowInclude.d.ts +0 -0
- /package/dist/classes/{field → Field}/FieldAttributesInclude.d.ts +0 -0
- /package/dist/classes/{field → Field}/FieldChangeInclude.d.ts +0 -0
- /package/dist/classes/{field → Field}/FieldCodeInclude.d.ts +0 -0
- /package/dist/classes/{field → Field}/FieldElementInclude.d.ts +0 -0
- /package/dist/classes/{field → Field}/FieldEventInclude.d.ts +0 -0
- /package/dist/classes/{field → Field}/FieldInputCheckInclude.d.ts +0 -0
- /package/dist/classes/{field → Field}/FieldMatchInclude.d.ts +0 -0
- /package/dist/classes/{field → Field}/FieldPatternInclude.d.ts +0 -0
- /package/dist/classes/{field → Field}/FieldTypeInclude.d.ts +0 -0
- /package/dist/classes/{field → Field}/FieldValidationInclude.d.ts +0 -0
- /package/dist/classes/{field → Field}/FieldValueInclude.d.ts +0 -0
- /package/dist/classes/{field → Field}/FieldVisibilityInclude.d.ts +0 -0
package/dist/menu.js
CHANGED
|
@@ -1,21 +1,21 @@
|
|
|
1
|
-
var
|
|
2
|
-
var
|
|
3
|
-
var s = (r, e, t) =>
|
|
4
|
-
import { ref as
|
|
5
|
-
import { isFunction as
|
|
6
|
-
import { E as
|
|
7
|
-
import { M as
|
|
8
|
-
import { B as
|
|
9
|
-
import { W
|
|
10
|
-
import { M as
|
|
11
|
-
class
|
|
1
|
+
var S = Object.defineProperty;
|
|
2
|
+
var C = (r, e, t) => e in r ? S(r, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : r[e] = t;
|
|
3
|
+
var s = (r, e, t) => C(r, typeof e != "symbol" ? e + "" : e, t);
|
|
4
|
+
import { ref as h, computed as l, watch as y, h as B } from "vue";
|
|
5
|
+
import { isFunction as k, executePromise as V, Api as M, isFilled as q, isObject as L, ListDataRef as A, DesignConstructorAbstract as D, toBinds as N } from "@dxtmisha/functional";
|
|
6
|
+
import { E as T } from "./EventClickInclude-WHJqxZ1b.js";
|
|
7
|
+
import { M as j } from "./ModelInclude-BiYm_iCQ.js";
|
|
8
|
+
import { B as I } from "./BarsInclude-BOEoY-O4.js";
|
|
9
|
+
import { W } from "./WindowInclude-BWm4-0Gh.js";
|
|
10
|
+
import { M as tt } from "./MenuInclude-DfGCfr_I.js";
|
|
11
|
+
class E {
|
|
12
12
|
/**
|
|
13
13
|
* Constructor
|
|
14
14
|
* @param props input data/ входные данные
|
|
15
15
|
*/
|
|
16
16
|
constructor(e) {
|
|
17
|
-
s(this, "progress",
|
|
18
|
-
s(this, "buffer",
|
|
17
|
+
s(this, "progress", h(!1));
|
|
18
|
+
s(this, "buffer", h());
|
|
19
19
|
/**
|
|
20
20
|
* Returns current list data.
|
|
21
21
|
*
|
|
@@ -57,7 +57,7 @@ class q {
|
|
|
57
57
|
* Возвращает данные из AJAX или функции запроса.
|
|
58
58
|
*/
|
|
59
59
|
async getAjax() {
|
|
60
|
-
return
|
|
60
|
+
return k(this.props.ajax) ? V(this.props.ajax) : await M.request({
|
|
61
61
|
path: this.props.ajax,
|
|
62
62
|
...this.props.request
|
|
63
63
|
});
|
|
@@ -71,13 +71,13 @@ class q {
|
|
|
71
71
|
this.is() && (this.props.cache && this.buffer.value !== void 0 && e(this.buffer.value), this.progress.value = !0, e(await this.getAjax()), this.progress.value = !1);
|
|
72
72
|
}
|
|
73
73
|
}
|
|
74
|
-
class
|
|
74
|
+
class F {
|
|
75
75
|
/**
|
|
76
76
|
* Constructor
|
|
77
77
|
* @param props input data/ входные данные
|
|
78
78
|
*/
|
|
79
79
|
constructor(e) {
|
|
80
|
-
s(this, "item",
|
|
80
|
+
s(this, "item", h());
|
|
81
81
|
/** Returns the search string/ Возвращает строку поиска */
|
|
82
82
|
s(this, "value", l(() => this.props.highlight ? this.props.highlight : this.item.value));
|
|
83
83
|
this.props = e;
|
|
@@ -107,19 +107,19 @@ class L {
|
|
|
107
107
|
* @param value source value/ исходное значение
|
|
108
108
|
*/
|
|
109
109
|
getValue(e) {
|
|
110
|
-
if (
|
|
110
|
+
if (q(e))
|
|
111
111
|
return e.trim();
|
|
112
112
|
}
|
|
113
113
|
}
|
|
114
|
-
class
|
|
114
|
+
class O {
|
|
115
115
|
/**
|
|
116
116
|
* Constructor
|
|
117
117
|
* @param props input data/ входные данные
|
|
118
118
|
* @param request menu request handler/ обработчик запросов меню
|
|
119
119
|
*/
|
|
120
120
|
constructor(e, t) {
|
|
121
|
-
s(this, "lite",
|
|
122
|
-
s(this, "control",
|
|
121
|
+
s(this, "lite", h());
|
|
122
|
+
s(this, "control", h());
|
|
123
123
|
/**
|
|
124
124
|
* Preparing data before opening the menu
|
|
125
125
|
*
|
|
@@ -160,11 +160,13 @@ class N {
|
|
|
160
160
|
preparation: this.preparation,
|
|
161
161
|
opening: this.opening,
|
|
162
162
|
closing: this.closing,
|
|
163
|
-
role: "menu"
|
|
163
|
+
role: "menu",
|
|
164
|
+
autoTabIndex: !1,
|
|
165
|
+
openOnArrowDown: !0
|
|
164
166
|
};
|
|
165
167
|
}
|
|
166
168
|
}
|
|
167
|
-
class
|
|
169
|
+
class H {
|
|
168
170
|
/**
|
|
169
171
|
* Constructor
|
|
170
172
|
* @param props input data/ входные данные
|
|
@@ -172,14 +174,14 @@ class j {
|
|
|
172
174
|
* @param emits the function is called when an event is triggered/ функция вызывается, когда срабатывает событие
|
|
173
175
|
*/
|
|
174
176
|
constructor(e, t, i) {
|
|
175
|
-
s(this, "value",
|
|
177
|
+
s(this, "value", h());
|
|
176
178
|
/**
|
|
177
179
|
* Computed selected value
|
|
178
180
|
*
|
|
179
181
|
* Вычисляемое выбранное значение
|
|
180
182
|
*/
|
|
181
183
|
s(this, "selected", l(() => this.props.isSelectedByValue ? this.value.value : this.props.selected));
|
|
182
|
-
this.props = e, this.refs = t, this.emits = i, this.props.isSelectedByValue && (new
|
|
184
|
+
this.props = e, this.refs = t, this.emits = i, this.props.isSelectedByValue && (new j("selected", this.emits, this.value), t.selected && y(
|
|
183
185
|
t.selected,
|
|
184
186
|
(o) => {
|
|
185
187
|
this.value.value = o;
|
|
@@ -196,10 +198,10 @@ class j {
|
|
|
196
198
|
*/
|
|
197
199
|
setValue(e, t = !1) {
|
|
198
200
|
var i;
|
|
199
|
-
return this.props.isSelectedByValue && !
|
|
201
|
+
return this.props.isSelectedByValue && !L(e) && this.value.value !== e && (this.value.value = e, t && ((i = this.emits) == null || i.call(this, "updateValue", e))), this;
|
|
200
202
|
}
|
|
201
203
|
}
|
|
202
|
-
class
|
|
204
|
+
class R {
|
|
203
205
|
/**
|
|
204
206
|
* Constructor
|
|
205
207
|
* @param props input data/ входные данные
|
|
@@ -244,7 +246,7 @@ class A {
|
|
|
244
246
|
return t && this.value.setValue(t, !0), t;
|
|
245
247
|
}
|
|
246
248
|
}
|
|
247
|
-
class
|
|
249
|
+
class _ {
|
|
248
250
|
/**
|
|
249
251
|
* Constructor
|
|
250
252
|
* @param props input data/ входные данные
|
|
@@ -255,8 +257,17 @@ class D {
|
|
|
255
257
|
* @param components object for working with components/ объект для работы с компонентами
|
|
256
258
|
* @param slots object for working with slots/ объект для работы со слотами
|
|
257
259
|
* @param emits the function is called when an event is triggered/ функция вызывается, когда срабатывает событие
|
|
260
|
+
* @param MenuRequestConstructor class for working with request/ класс для работы с запросом
|
|
261
|
+
* @param MenuSearchConstructor class for working with search/ класс для работы с поиском
|
|
262
|
+
* @param MenuValueConstructor class for working with value/ класс для работы со значением
|
|
263
|
+
* @param ListDataRefConstructor class for working with list data/ класс для работы с данными списка
|
|
264
|
+
* @param MenuGoConstructor class for working with navigation/ класс для работы с навигацией
|
|
265
|
+
* @param BarsIncludeConstructor class for working with bars/ класс для работы с барами
|
|
266
|
+
* @param MenuWindowConstructor class for working with menu window/ класс для работы с окном меню
|
|
267
|
+
* @param WindowIncludeConstructor class for working with window/ класс для работы с окном
|
|
268
|
+
* @param EventClickIncludeConstructor class for working with event click/ класс для работы с событием клика
|
|
258
269
|
*/
|
|
259
|
-
constructor(e, t, i, o,
|
|
270
|
+
constructor(e, t, i, o, a, n, u, p, d = E, c = F, m = H, v = A, f = R, g = I, w = O, b = W, x = T) {
|
|
260
271
|
/** Request handler for list data/ Обработчик запросов данных списка */
|
|
261
272
|
s(this, "request");
|
|
262
273
|
/** Search helper for menu filtering/ Вспомогательный класс поиска для фильтрации меню */
|
|
@@ -291,7 +302,7 @@ class D {
|
|
|
291
302
|
onClick: this.onClick,
|
|
292
303
|
onClose: this.window.expose.toClose,
|
|
293
304
|
itemAttrs: this.props.itemAttrs,
|
|
294
|
-
control: !
|
|
305
|
+
control: !this.props.embedded
|
|
295
306
|
})));
|
|
296
307
|
/**
|
|
297
308
|
* Click handler.
|
|
@@ -314,7 +325,7 @@ class D {
|
|
|
314
325
|
const t = e.target, i = t.closest("*[data-value]");
|
|
315
326
|
i && !t.closest(`.${this.className}__list`) && ((o = this.emits) == null || o.call(this, "clickSlot", i.dataset.value));
|
|
316
327
|
});
|
|
317
|
-
this.props = e, this.refs = t, this.element = i, this.classDesign = o, this.className =
|
|
328
|
+
this.props = e, this.refs = t, this.element = i, this.classDesign = o, this.className = a, this.components = n, this.slots = u, this.emits = p, this.request = new d(this.props), this.search = new c(this.props), this.value = new m(this.props, this.refs, this.emits), this.data = new v(
|
|
318
329
|
this.request.item,
|
|
319
330
|
void 0,
|
|
320
331
|
void 0,
|
|
@@ -323,18 +334,18 @@ class D {
|
|
|
323
334
|
this.value.selected,
|
|
324
335
|
this.refs.keyValue,
|
|
325
336
|
this.refs.keyLabel
|
|
326
|
-
), this.go = new
|
|
337
|
+
), this.go = new f(this.props, this.value, this.data), this.bars = new g(
|
|
327
338
|
this.props,
|
|
328
339
|
this.className,
|
|
329
340
|
this.components,
|
|
330
341
|
this.emits
|
|
331
|
-
), this.menuWindow = new
|
|
342
|
+
), this.menuWindow = new w(this.props, this.request), this.window = new b(
|
|
332
343
|
this.props,
|
|
333
344
|
this.className,
|
|
334
345
|
this.components,
|
|
335
346
|
this.emits,
|
|
336
347
|
this.menuWindow.getExtra()
|
|
337
|
-
), this.event = new
|
|
348
|
+
), this.event = new x(void 0, void 0, this.emits), this.slotData = {
|
|
338
349
|
loading: this.request.progress,
|
|
339
350
|
isSelected: this.data.isSelected,
|
|
340
351
|
selectedList: this.data.selectedList,
|
|
@@ -354,23 +365,23 @@ class D {
|
|
|
354
365
|
return this.slotData;
|
|
355
366
|
}
|
|
356
367
|
}
|
|
357
|
-
const
|
|
368
|
+
const U = {
|
|
358
369
|
liteThreshold: 40,
|
|
359
370
|
barsHide: !0,
|
|
360
371
|
barsBackHide: !0,
|
|
361
372
|
tag: "a",
|
|
362
373
|
step: 1,
|
|
363
|
-
autoClose: !0
|
|
364
|
-
roleItem: "menuitem"
|
|
374
|
+
autoClose: !0
|
|
365
375
|
};
|
|
366
|
-
class
|
|
376
|
+
class X extends D {
|
|
367
377
|
/**
|
|
368
378
|
* Constructor
|
|
369
379
|
* @param name class name/ название класса
|
|
370
380
|
* @param props properties/ свойства
|
|
371
381
|
* @param options list of additional parameters/ список дополнительных параметров
|
|
382
|
+
* @param ItemConstructor class for working with the item/ класс для работы с элементом
|
|
372
383
|
*/
|
|
373
|
-
constructor(t, i, o) {
|
|
384
|
+
constructor(t, i, o, a = _) {
|
|
374
385
|
super(
|
|
375
386
|
t,
|
|
376
387
|
i,
|
|
@@ -404,11 +415,11 @@ class _ extends C {
|
|
|
404
415
|
var o;
|
|
405
416
|
const i = this.item.request.item.value;
|
|
406
417
|
if (i) {
|
|
407
|
-
const
|
|
408
|
-
return this.initSlot("contextTop",
|
|
418
|
+
const a = [];
|
|
419
|
+
return this.initSlot("contextTop", a, this.getBinds(t)), this.props.hideList || a.push(
|
|
409
420
|
this.components.render(
|
|
410
421
|
"list",
|
|
411
|
-
|
|
422
|
+
N(
|
|
412
423
|
{
|
|
413
424
|
...this.item.binds.value,
|
|
414
425
|
class: (o = this.classes) == null ? void 0 : o.value.list,
|
|
@@ -416,20 +427,21 @@ class _ extends C {
|
|
|
416
427
|
highlight: this.item.search.value.value,
|
|
417
428
|
list: i,
|
|
418
429
|
lite: this.item.menuWindow.lite.value,
|
|
430
|
+
role: this.props.roleList,
|
|
419
431
|
roleItem: this.props.roleItem
|
|
420
432
|
},
|
|
421
433
|
this.props.listAttrs
|
|
422
434
|
),
|
|
423
435
|
this.slots
|
|
424
436
|
)
|
|
425
|
-
), this.initSlot("contextBottom",
|
|
437
|
+
), this.initSlot("contextBottom", a, this.getBinds(t)), B(
|
|
426
438
|
"div",
|
|
427
439
|
{
|
|
428
440
|
...this.getAttrs(),
|
|
429
441
|
ref: this.element,
|
|
430
442
|
onClick: this.item.onClickSlot
|
|
431
443
|
},
|
|
432
|
-
|
|
444
|
+
a
|
|
433
445
|
);
|
|
434
446
|
}
|
|
435
447
|
});
|
|
@@ -440,7 +452,7 @@ class _ extends C {
|
|
|
440
452
|
* @param props data for the transferable property/ данные для передаваемого свойства
|
|
441
453
|
*/
|
|
442
454
|
s(this, "renderFooter", (t) => this.initSlot("footer", void 0, this.getBinds(t)));
|
|
443
|
-
this.item = new
|
|
455
|
+
this.item = new a(
|
|
444
456
|
this.props,
|
|
445
457
|
this.refs,
|
|
446
458
|
this.element,
|
|
@@ -498,7 +510,10 @@ class _ extends C {
|
|
|
498
510
|
footer: this.renderFooter
|
|
499
511
|
},
|
|
500
512
|
{
|
|
501
|
-
class: (t = this.classes) == null ? void 0 : t.value.main
|
|
513
|
+
class: (t = this.classes) == null ? void 0 : t.value.main,
|
|
514
|
+
closeOnEsc: !1,
|
|
515
|
+
ariaHaspopup: "listbox",
|
|
516
|
+
embedded: this.props.embedded
|
|
502
517
|
}
|
|
503
518
|
);
|
|
504
519
|
}
|
|
@@ -516,8 +531,8 @@ class _ extends C {
|
|
|
516
531
|
}
|
|
517
532
|
}
|
|
518
533
|
export {
|
|
519
|
-
|
|
520
|
-
|
|
521
|
-
|
|
522
|
-
|
|
534
|
+
_ as Menu,
|
|
535
|
+
X as MenuDesign,
|
|
536
|
+
tt as MenuInclude,
|
|
537
|
+
U as defaultsMenu
|
|
523
538
|
};
|
package/dist/modal.js
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { computed as l } from "vue";
|
|
2
2
|
import "@dxtmisha/functional";
|
|
3
|
-
import { M as
|
|
3
|
+
import { M as d, a as g } from "./ModalDesignAbstract-D4A_a_rC.js";
|
|
4
4
|
const f = {
|
|
5
5
|
barsBackHide: !0,
|
|
6
6
|
// :default [!] System label / Системная метка
|
|
7
7
|
imagePosition: "top"
|
|
8
8
|
};
|
|
9
|
-
class
|
|
9
|
+
class m extends d {
|
|
10
10
|
/**
|
|
11
11
|
* Constructor
|
|
12
12
|
* @param props input data/ входные данные
|
|
@@ -18,12 +18,12 @@ class g extends m {
|
|
|
18
18
|
* @param slots object for working with slots/ объект для работы со слотами
|
|
19
19
|
* @param emits the function is called when an event is triggered/ функция вызывается, когда срабатывает событие
|
|
20
20
|
*/
|
|
21
|
-
constructor(t, s,
|
|
21
|
+
constructor(t, s, i, e, a, o, h, n) {
|
|
22
22
|
super(
|
|
23
23
|
t,
|
|
24
24
|
s,
|
|
25
|
-
e,
|
|
26
25
|
i,
|
|
26
|
+
e,
|
|
27
27
|
a,
|
|
28
28
|
o,
|
|
29
29
|
h,
|
|
@@ -35,12 +35,12 @@ class g extends m {
|
|
|
35
35
|
imagePosition: t.imagePosition,
|
|
36
36
|
closeButton: t.barsBackHide
|
|
37
37
|
}))
|
|
38
|
-
), this.props = t, this.refs = s, this.element =
|
|
38
|
+
), this.props = t, this.refs = s, this.element = i, this.classDesign = e, this.className = a, this.components = o, this.slots = h, this.emits = n;
|
|
39
39
|
}
|
|
40
40
|
}
|
|
41
|
-
class M extends
|
|
42
|
-
initItem() {
|
|
43
|
-
return new
|
|
41
|
+
class M extends g {
|
|
42
|
+
initItem(t) {
|
|
43
|
+
return new (t != null ? t : m)(
|
|
44
44
|
this.props,
|
|
45
45
|
this.refs,
|
|
46
46
|
this.element,
|
|
@@ -68,7 +68,7 @@ class M extends d {
|
|
|
68
68
|
}
|
|
69
69
|
}
|
|
70
70
|
export {
|
|
71
|
-
|
|
71
|
+
m as Modal,
|
|
72
72
|
M as ModalDesign,
|
|
73
73
|
f as defaultsModal
|
|
74
74
|
};
|