@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
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
var
|
|
2
|
-
var d = (t, s, i) => s in t ?
|
|
3
|
-
var
|
|
4
|
-
import { computed as
|
|
1
|
+
var c = Object.defineProperty;
|
|
2
|
+
var d = (t, s, i) => s in t ? c(t, s, { enumerable: !0, configurable: !0, writable: !0, value: i }) : t[s] = i;
|
|
3
|
+
var r = (t, s, i) => d(t, typeof s != "symbol" ? s + "" : s, i);
|
|
4
|
+
import { computed as n } from "vue";
|
|
5
5
|
import { getElementId as l, isFilled as h, render as a } from "@dxtmisha/functional";
|
|
6
|
-
class
|
|
6
|
+
class v {
|
|
7
7
|
/**
|
|
8
8
|
* Constructor
|
|
9
9
|
* @param props input property/ входное свойство
|
|
@@ -11,31 +11,20 @@ class I {
|
|
|
11
11
|
* @param slots object for working with slots/ объект для работы со слотами
|
|
12
12
|
* @param skeleton optional skeleton for loading state/ необязательный скелетон для состояния загрузки
|
|
13
13
|
*/
|
|
14
|
-
constructor(s, i, e,
|
|
15
|
-
/**
|
|
16
|
-
|
|
17
|
-
/**
|
|
18
|
-
* Check for the presence of a description
|
|
19
|
-
*
|
|
20
|
-
* Проверка наличия описания
|
|
21
|
-
*/
|
|
22
|
-
o(this, "is", c(() => {
|
|
14
|
+
constructor(s, i, e, o) {
|
|
15
|
+
/** Check for the presence of a description/ Проверка наличия описания */
|
|
16
|
+
r(this, "is", n(() => {
|
|
23
17
|
var s;
|
|
24
18
|
return !!(this.props.description || (s = this.slots) != null && s.description);
|
|
25
19
|
}));
|
|
26
|
-
/**
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
*
|
|
35
|
-
* Получить ID описания
|
|
36
|
-
*/
|
|
37
|
-
getId() {
|
|
38
|
-
return this.id;
|
|
20
|
+
/** Unique identifier/ Уникальный идентификатор */
|
|
21
|
+
r(this, "id", n(
|
|
22
|
+
() => {
|
|
23
|
+
var s;
|
|
24
|
+
return ((s = this.props) == null ? void 0 : s.descriptionId) || l();
|
|
25
|
+
}
|
|
26
|
+
));
|
|
27
|
+
this.props = s, this.className = i, this.slots = e, this.skeleton = o;
|
|
39
28
|
}
|
|
40
29
|
/**
|
|
41
30
|
* Render the description
|
|
@@ -43,12 +32,13 @@ class I {
|
|
|
43
32
|
* Рендер описания
|
|
44
33
|
*/
|
|
45
34
|
render() {
|
|
46
|
-
var i, e,
|
|
35
|
+
var i, e, o, p;
|
|
47
36
|
const s = [];
|
|
48
|
-
return h(this.props.description) && s.push(this.props.description), (i = this.slots) != null && i.description && s.push((
|
|
37
|
+
return h(this.props.description) && s.push(this.props.description), (i = this.slots) != null && i.description && s.push((o = (e = this.slots).description) == null ? void 0 : o.call(e, {})), s.length > 0 ? [
|
|
49
38
|
a(
|
|
50
39
|
"div",
|
|
51
40
|
{
|
|
41
|
+
id: this.id.value,
|
|
52
42
|
class: {
|
|
53
43
|
[`${this.className}__description`]: !0,
|
|
54
44
|
...(p = this.skeleton) == null ? void 0 : p.classes.value
|
|
@@ -61,5 +51,5 @@ class I {
|
|
|
61
51
|
}
|
|
62
52
|
}
|
|
63
53
|
export {
|
|
64
|
-
|
|
54
|
+
v as D
|
|
65
55
|
};
|
|
@@ -2,7 +2,7 @@ var r = Object.defineProperty;
|
|
|
2
2
|
var d = (i, s, o) => s in i ? r(i, s, { enumerable: !0, configurable: !0, writable: !0, value: o }) : i[s] = o;
|
|
3
3
|
var a = (i, s, o) => d(i, typeof s != "symbol" ? s + "" : s, o);
|
|
4
4
|
import { computed as e } from "vue";
|
|
5
|
-
import { A as l } from "./AriaStaticInclude-
|
|
5
|
+
import { A as l } from "./AriaStaticInclude-CAURwJMb.js";
|
|
6
6
|
class h {
|
|
7
7
|
/**
|
|
8
8
|
* Constructor
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
var o = Object.defineProperty;
|
|
2
2
|
var h = (s, t, e) => t in s ? o(s, t, { enumerable: !0, configurable: !0, writable: !0, value: e }) : s[t] = e;
|
|
3
3
|
var r = (s, t, e) => h(s, typeof t != "symbol" ? t + "" : t, e);
|
|
4
|
-
import { toRefs as
|
|
5
|
-
import { RouterItemRef as u } from "@dxtmisha/functional";
|
|
4
|
+
import { toRefs as n } from "vue";
|
|
5
|
+
import { isEnter as p, RouterItemRef as u } from "@dxtmisha/functional";
|
|
6
6
|
class m {
|
|
7
7
|
/**
|
|
8
8
|
* Constructor
|
|
@@ -31,7 +31,17 @@ class m {
|
|
|
31
31
|
} else
|
|
32
32
|
this.emit(t, this.getOptions(t));
|
|
33
33
|
});
|
|
34
|
-
|
|
34
|
+
/**
|
|
35
|
+
* Event trigger function when pressing the space bar or enter key
|
|
36
|
+
*
|
|
37
|
+
* Функция вызова события при нажатии на пробел или клавишу Enter
|
|
38
|
+
* @param event event object/ объект события
|
|
39
|
+
* @param options data object/ объект с данными
|
|
40
|
+
*/
|
|
41
|
+
r(this, "onKeydown", (t, e) => {
|
|
42
|
+
p(t) && (this.onClick(t, e), t.preventDefault());
|
|
43
|
+
});
|
|
44
|
+
this.props = t, this.enabled = e, this.emits = i, this.refs = t ? n(t) : void 0;
|
|
35
45
|
}
|
|
36
46
|
/**
|
|
37
47
|
* Exported values
|
|
@@ -2,7 +2,7 @@ var u = Object.defineProperty;
|
|
|
2
2
|
var l = (e, t, s) => t in e ? u(e, t, { enumerable: !0, configurable: !0, writable: !0, value: s }) : e[t] = s;
|
|
3
3
|
var r = (e, t, s) => l(e, typeof t != "symbol" ? t + "" : t, s);
|
|
4
4
|
import { computed as o } from "vue";
|
|
5
|
-
import {
|
|
5
|
+
import { isNull as c, isFilled as a, toBinds as i, getRef as d } from "@dxtmisha/functional";
|
|
6
6
|
class C {
|
|
7
7
|
/**
|
|
8
8
|
* Constructor
|
|
@@ -15,7 +15,7 @@ class C {
|
|
|
15
15
|
constructor(t, s, n, p, h) {
|
|
16
16
|
/** Checks if counter should be displayed/ Проверяет, надо ли отображать счетчик */
|
|
17
17
|
r(this, "isCounter", o(
|
|
18
|
-
() => !!(this.props.counterShow && (!
|
|
18
|
+
() => !!(this.props.counterShow && (!c(this.props.counter) || a(this.props.maxlength)))
|
|
19
19
|
));
|
|
20
20
|
/** Computed bindings for FieldCounter/ Вычисляемые привязки для FieldCounter */
|
|
21
21
|
r(this, "binds", o(() => i(
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
var v = Object.defineProperty;
|
|
2
|
-
var
|
|
3
|
-
var a = (n, t, e) =>
|
|
4
|
-
import { ref as u, computed as r, watch as
|
|
5
|
-
import { toBinds as f, toNumber as c, anyToString as h, isFilled as b, isArray as y, isObject as
|
|
2
|
+
var m = (n, t, e) => t in n ? v(n, t, { enumerable: !0, configurable: !0, writable: !0, value: e }) : n[t] = e;
|
|
3
|
+
var a = (n, t, e) => m(n, typeof t != "symbol" ? t + "" : t, e);
|
|
4
|
+
import { ref as u, computed as r, watch as g } from "vue";
|
|
5
|
+
import { toBinds as f, toNumber as c, anyToString as h, isFilled as b, isArray as y, isObject as k, toArray as E, setValues as F, getRef as d } from "@dxtmisha/functional";
|
|
6
6
|
import { F as o } from "./FieldInputCheckInclude-CjNYyGTb.js";
|
|
7
7
|
import { M as I } from "./ModelInclude-BiYm_iCQ.js";
|
|
8
8
|
class D {
|
|
@@ -133,6 +133,9 @@ class O {
|
|
|
133
133
|
case "inputMode":
|
|
134
134
|
this.inputMode && (s = this.inputMode.item.value);
|
|
135
135
|
break;
|
|
136
|
+
case "autocomplete":
|
|
137
|
+
this.inputMode && (s = this.inputMode.autocomplete.value);
|
|
138
|
+
break;
|
|
136
139
|
default:
|
|
137
140
|
s = this.props[i];
|
|
138
141
|
}
|
|
@@ -232,7 +235,7 @@ class V {
|
|
|
232
235
|
a(this, "length", r(() => {
|
|
233
236
|
var e;
|
|
234
237
|
const t = this.item.value;
|
|
235
|
-
return y(t) ? t.length :
|
|
238
|
+
return y(t) ? t.length : k(t) ? Object.keys(t).length : (e = this.string.value.length) != null ? e : 0;
|
|
236
239
|
}));
|
|
237
240
|
/**
|
|
238
241
|
* Changes the values to the original ones.
|
|
@@ -242,7 +245,7 @@ class V {
|
|
|
242
245
|
a(this, "update", () => {
|
|
243
246
|
(this.isEdit(this.props.value) || this.isEdit(this.props.modelValue)) && this.setToOriginal();
|
|
244
247
|
});
|
|
245
|
-
this.props = t, this.refs = e, this.element = i, this.original = s, this.item.value = this.getOriginal(),
|
|
248
|
+
this.props = t, this.refs = e, this.element = i, this.original = s, this.item.value = this.getOriginal(), g([
|
|
246
249
|
e.value,
|
|
247
250
|
e.modelValue
|
|
248
251
|
], this.update);
|
|
@@ -261,7 +264,7 @@ class V {
|
|
|
261
264
|
* Возвращает текущее значение в виде массива.
|
|
262
265
|
*/
|
|
263
266
|
getToArray() {
|
|
264
|
-
return
|
|
267
|
+
return E(this.item.value);
|
|
265
268
|
}
|
|
266
269
|
/**
|
|
267
270
|
* Changes the value.
|
|
@@ -286,7 +289,7 @@ class V {
|
|
|
286
289
|
return this;
|
|
287
290
|
}
|
|
288
291
|
setByEvent(t) {
|
|
289
|
-
return
|
|
292
|
+
return typeof t === "object" ? t && ("value" in t && t.value !== void 0 ? this.set(t.value) : "target" in t && this.setByTarget(t.target), "hasEdit" in t && this.setHasEdit(t.hasEdit), "isFull" in t && this.setFull(t.isFull)) : this.set(t), this;
|
|
290
293
|
}
|
|
291
294
|
/**
|
|
292
295
|
* Changes the values by the selected element.
|
|
@@ -2,8 +2,8 @@ var f = Object.defineProperty;
|
|
|
2
2
|
var w = (n, i, s) => i in n ? f(n, i, { enumerable: !0, configurable: !0, writable: !0, value: s }) : n[i] = s;
|
|
3
3
|
var a = (n, i, s) => w(n, typeof i != "symbol" ? i + "" : i, s);
|
|
4
4
|
import { computed as g } from "vue";
|
|
5
|
-
import { toBinds as b, getRef as v, toBind as x, eventStopPropagation as
|
|
6
|
-
class
|
|
5
|
+
import { toBinds as b, getRef as v, toBind as x, eventStopPropagation as l, isEnter as T } from "@dxtmisha/functional";
|
|
6
|
+
class y {
|
|
7
7
|
/**
|
|
8
8
|
* Constructor
|
|
9
9
|
* @param props input data/ входные данные
|
|
@@ -18,7 +18,7 @@ class S {
|
|
|
18
18
|
* @param extra additional parameter or property name/ дополнительный параметр или имя свойства
|
|
19
19
|
* @param index index identifier/ идентификатор индекса
|
|
20
20
|
*/
|
|
21
|
-
constructor(i, s, e, r, o, t,
|
|
21
|
+
constructor(i, s, e, r, o, t, p, h, c, d, u) {
|
|
22
22
|
/** Returns properties for the field framework/ Возвращает свойства для каркаса поля */
|
|
23
23
|
a(this, "binds", g(() => {
|
|
24
24
|
var i, s, e, r, o, t;
|
|
@@ -60,7 +60,8 @@ class S {
|
|
|
60
60
|
fieldLabelAttrs: this.props.fieldLabelAttrs,
|
|
61
61
|
fieldMessageAttrs: this.props.fieldMessageAttrs,
|
|
62
62
|
fieldCounterAttrs: this.props.fieldCounterAttrs,
|
|
63
|
-
onClick: this.on
|
|
63
|
+
onClick: this.on,
|
|
64
|
+
onKeydown: this.onKeydown
|
|
64
65
|
},
|
|
65
66
|
v(this.extra),
|
|
66
67
|
this.props.fieldAttrs
|
|
@@ -106,29 +107,39 @@ class S {
|
|
|
106
107
|
* @param type type of the object that was clicked/ тип объекта, который был нажат
|
|
107
108
|
*/
|
|
108
109
|
a(this, "on", (i, { type: s }) => {
|
|
109
|
-
var e, r, o, t,
|
|
110
|
+
var e, r, o, t, p, h, c, d, u;
|
|
110
111
|
if (i.target.closest('[data-element="scoreboard"]'))
|
|
111
112
|
switch (s) {
|
|
112
113
|
case "icon":
|
|
113
|
-
(e = this.onIcon) == null || e.call(this),
|
|
114
|
+
(e = this.onIcon) == null || e.call(this), l(i);
|
|
114
115
|
break;
|
|
115
116
|
case "icon-trailing":
|
|
116
|
-
(r = this.onTrailing) == null || r.call(this),
|
|
117
|
+
(r = this.onTrailing) == null || r.call(this), l(i);
|
|
117
118
|
break;
|
|
118
119
|
case "cancel":
|
|
119
|
-
(o = this.event) == null || o.onClear(i),
|
|
120
|
+
(o = this.event) == null || o.onClear(i), l(i);
|
|
120
121
|
break;
|
|
121
122
|
case "next":
|
|
122
|
-
(t = this.onNext) == null || t.call(this), (
|
|
123
|
+
(t = this.onNext) == null || t.call(this), (p = this.arrow) == null || p.next(), (h = this.event) == null || h.on(i), l(i);
|
|
123
124
|
break;
|
|
124
125
|
case "previous":
|
|
125
|
-
(c = this.onPrevious) == null || c.call(this), (d = this.arrow) == null || d.previous(), (u = this.event) == null || u.on(i),
|
|
126
|
+
(c = this.onPrevious) == null || c.call(this), (d = this.arrow) == null || d.previous(), (u = this.event) == null || u.on(i), l(i);
|
|
126
127
|
break;
|
|
127
128
|
}
|
|
128
129
|
});
|
|
129
|
-
|
|
130
|
+
/**
|
|
131
|
+
* Event trigger function when pressing the space bar or enter key.
|
|
132
|
+
*
|
|
133
|
+
* Функция вызова события при нажатии на пробел или клавишу Enter.
|
|
134
|
+
* @param event event object/ объект события
|
|
135
|
+
* @param options data object/ объект с данными
|
|
136
|
+
*/
|
|
137
|
+
a(this, "onKeydown", (i, s) => {
|
|
138
|
+
T(i) && (this.on(i, s != null ? s : {}), i.preventDefault());
|
|
139
|
+
});
|
|
140
|
+
this.props = i, this.value = s, this.components = e, this.event = r, this.arrow = o, this.onIcon = t, this.onTrailing = p, this.onNext = h, this.onPrevious = c, this.extra = d, this.index = u;
|
|
130
141
|
}
|
|
131
142
|
}
|
|
132
143
|
export {
|
|
133
|
-
|
|
144
|
+
y as F
|
|
134
145
|
};
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
var
|
|
2
|
-
var
|
|
3
|
-
var
|
|
4
|
-
import { computed as
|
|
5
|
-
import { isFilled as
|
|
6
|
-
import { F as I } from "./FieldCounterInclude-
|
|
1
|
+
var f = Object.defineProperty;
|
|
2
|
+
var m = (t, e, i) => e in t ? f(t, e, { enumerable: !0, configurable: !0, writable: !0, value: i }) : t[e] = i;
|
|
3
|
+
var s = (t, e, i) => m(t, typeof e != "symbol" ? e + "" : e, i);
|
|
4
|
+
import { computed as r } from "vue";
|
|
5
|
+
import { getElementId as o, isFilled as b, toBinds as l, getRef as n } from "@dxtmisha/functional";
|
|
6
|
+
import { F as I } from "./FieldCounterInclude-D0oojGWY.js";
|
|
7
7
|
class L {
|
|
8
8
|
/**
|
|
9
9
|
* Constructor
|
|
@@ -11,32 +11,39 @@ class L {
|
|
|
11
11
|
* @param className class name/ название класса
|
|
12
12
|
* @param components object for working with components/ объект для работы с компонентами
|
|
13
13
|
* @param slots object for working with slots/ объект для работы со слотами
|
|
14
|
+
* @param forId element ID/ идентификатор элемента
|
|
14
15
|
* @param isCounter whether to display the counter/ отображать ли счетчик
|
|
15
|
-
* @param labelId label identifier/ идентификатор метки
|
|
16
|
-
* @param counterId counter identifier/ идентификатор счетчика
|
|
17
16
|
* @param extra additional parameter or property name/ дополнительный параметр или имя свойства
|
|
18
17
|
* @param index index identifier/ идентификатор индекса
|
|
19
18
|
*/
|
|
20
|
-
constructor(
|
|
19
|
+
constructor(e, i, d, h, a, u, p, c) {
|
|
20
|
+
s(this, "labelId", o());
|
|
21
|
+
s(this, "counterId", o());
|
|
21
22
|
/** Field counter include/ Подключение счетчика поля */
|
|
22
|
-
|
|
23
|
+
s(this, "fieldCounter");
|
|
23
24
|
/** Checks if label should be displayed/ Проверяет, надо ли отображать метку */
|
|
24
|
-
|
|
25
|
-
var
|
|
26
|
-
return
|
|
25
|
+
s(this, "is", r(() => {
|
|
26
|
+
var e;
|
|
27
|
+
return b(this.props.label) || !!((e = this.isCounter) != null && e.value);
|
|
28
|
+
}));
|
|
29
|
+
/** Returns the identifier/ Возвращает идентификатор */
|
|
30
|
+
s(this, "id", r(() => {
|
|
31
|
+
var e;
|
|
32
|
+
return (e = this.isCounter) != null && e.value && this.props.counterShow ? this.counterId : "";
|
|
27
33
|
}));
|
|
28
34
|
/** Computed bindings for FieldLabel/ Вычисляемые привязки для FieldLabel */
|
|
29
|
-
|
|
35
|
+
s(this, "binds", r(
|
|
30
36
|
() => {
|
|
31
|
-
var
|
|
32
|
-
return
|
|
33
|
-
|
|
34
|
-
(
|
|
37
|
+
var e;
|
|
38
|
+
return l(
|
|
39
|
+
n(this.extra),
|
|
40
|
+
(e = this.isCounter) != null && e.value ? this.fieldCounter.bindsIntermediary.value : {},
|
|
35
41
|
{
|
|
42
|
+
for: n(this.forId),
|
|
36
43
|
label: this.props.label,
|
|
37
44
|
required: this.props.required,
|
|
38
|
-
labelId:
|
|
39
|
-
counterId:
|
|
45
|
+
labelId: this.labelId,
|
|
46
|
+
counterId: this.counterId
|
|
40
47
|
},
|
|
41
48
|
this.props.fieldLabelAttrs
|
|
42
49
|
);
|
|
@@ -45,10 +52,10 @@ class L {
|
|
|
45
52
|
/**
|
|
46
53
|
* Render the FieldLabel component/ Рендер компонента FieldLabel
|
|
47
54
|
*/
|
|
48
|
-
|
|
55
|
+
s(this, "render", () => this.components && this.is.value ? this.components.render(
|
|
49
56
|
"fieldLabel",
|
|
50
57
|
{
|
|
51
|
-
...
|
|
58
|
+
...l(
|
|
52
59
|
this.binds.value,
|
|
53
60
|
{ class: `${this.className}__fieldLabel` }
|
|
54
61
|
)
|
|
@@ -56,7 +63,7 @@ class L {
|
|
|
56
63
|
this.slots,
|
|
57
64
|
this.index
|
|
58
65
|
) : []);
|
|
59
|
-
this.props =
|
|
66
|
+
this.props = e, this.className = i, this.components = d, this.slots = h, this.forId = a, this.isCounter = u, this.extra = p, this.index = c, this.fieldCounter = new I(this.props, this.className);
|
|
60
67
|
}
|
|
61
68
|
}
|
|
62
69
|
export {
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
var
|
|
2
|
-
var p = (
|
|
3
|
-
var
|
|
1
|
+
var h = Object.defineProperty;
|
|
2
|
+
var p = (i, t, e) => t in i ? h(i, t, { enumerable: !0, configurable: !0, writable: !0, value: e }) : i[t] = e;
|
|
3
|
+
var s = (i, t, e) => p(i, typeof t != "symbol" ? t + "" : t, e);
|
|
4
4
|
import { ref as c, computed as r } from "vue";
|
|
5
5
|
import { toNumber as u, isObject as n, anyToString as m } from "@dxtmisha/functional";
|
|
6
6
|
import { F as v } from "./FieldInputCheckInclude-CjNYyGTb.js";
|
|
7
7
|
class b {
|
|
8
8
|
constructor() {
|
|
9
|
-
|
|
9
|
+
s(this, "item", c(!1));
|
|
10
10
|
}
|
|
11
11
|
/**
|
|
12
12
|
* Toggles the values.
|
|
@@ -25,7 +25,7 @@ class y {
|
|
|
25
25
|
*/
|
|
26
26
|
constructor(t, e) {
|
|
27
27
|
/** Returns the input type/ Возвращает тип ввода */
|
|
28
|
-
|
|
28
|
+
s(this, "item", r(() => {
|
|
29
29
|
var e;
|
|
30
30
|
const t = this.props.type;
|
|
31
31
|
return t === "password" && ((e = this.visibility) != null && e.item.value) ? "text" : t != null ? t : "text";
|
|
@@ -45,7 +45,7 @@ const o = {
|
|
|
45
45
|
email: "[\\S]+@[\\S]{2,}\\.[\\w]{2,}",
|
|
46
46
|
password: "[0-9a-zA-Z\\-!@#$%^&*]+"
|
|
47
47
|
};
|
|
48
|
-
class
|
|
48
|
+
class w {
|
|
49
49
|
/**
|
|
50
50
|
* Constructor
|
|
51
51
|
* @param props input data/ входные данные
|
|
@@ -53,7 +53,7 @@ class M {
|
|
|
53
53
|
*/
|
|
54
54
|
constructor(t, e) {
|
|
55
55
|
/** Returns regular expressions/ Возвращает регулярные выражения */
|
|
56
|
-
|
|
56
|
+
s(this, "item", r(() => {
|
|
57
57
|
if (this.props.pattern)
|
|
58
58
|
return this.props.pattern;
|
|
59
59
|
if (this.type)
|
|
@@ -62,7 +62,7 @@ class M {
|
|
|
62
62
|
this.props = t, this.type = e;
|
|
63
63
|
}
|
|
64
64
|
}
|
|
65
|
-
class
|
|
65
|
+
class M {
|
|
66
66
|
/**
|
|
67
67
|
* Constructor
|
|
68
68
|
* @param props input data/ входные данные
|
|
@@ -70,7 +70,7 @@ class w {
|
|
|
70
70
|
*/
|
|
71
71
|
constructor(t, e) {
|
|
72
72
|
/** Returns the keyboard name/ Возвращает название клавиатуры */
|
|
73
|
-
|
|
73
|
+
s(this, "item", r(() => {
|
|
74
74
|
if (this.props.inputMode)
|
|
75
75
|
return this.props.inputMode;
|
|
76
76
|
switch (this.type.item.value) {
|
|
@@ -92,6 +92,22 @@ class w {
|
|
|
92
92
|
return;
|
|
93
93
|
}
|
|
94
94
|
}));
|
|
95
|
+
s(this, "autocomplete", r(() => {
|
|
96
|
+
if (this.props.autocomplete)
|
|
97
|
+
return this.props.autocomplete;
|
|
98
|
+
switch (this.type.item.value) {
|
|
99
|
+
case "search":
|
|
100
|
+
return "off";
|
|
101
|
+
case "email":
|
|
102
|
+
return "email";
|
|
103
|
+
case "password":
|
|
104
|
+
return "new-password";
|
|
105
|
+
case "tel":
|
|
106
|
+
return "tel";
|
|
107
|
+
case "url":
|
|
108
|
+
return "url";
|
|
109
|
+
}
|
|
110
|
+
}));
|
|
95
111
|
this.props = t, this.type = e;
|
|
96
112
|
}
|
|
97
113
|
}
|
|
@@ -108,23 +124,23 @@ class S {
|
|
|
108
124
|
*
|
|
109
125
|
* @return true if arrows are enabled/ true, если стрелки включены
|
|
110
126
|
*/
|
|
111
|
-
|
|
127
|
+
s(this, "is", r(() => !!(this.props.arrow && this.props.arrow !== "none")));
|
|
112
128
|
/** Indicates if the previous button is disabled/ Указывает, отключена ли кнопка предыдущего */
|
|
113
|
-
|
|
129
|
+
s(this, "disabledPrevious", r(() => !this.isPrevious(this.value.number.value)));
|
|
114
130
|
/** Indicates if the next button is disabled/ Указывает, отключена ли кнопка следующего */
|
|
115
|
-
|
|
131
|
+
s(this, "disabledNext", r(() => !this.isNext(this.value.number.value)));
|
|
116
132
|
/** Returns the change step/ Возвращает шаг изменения */
|
|
117
|
-
|
|
133
|
+
s(this, "step", r(() => {
|
|
118
134
|
var t, e;
|
|
119
135
|
return u((e = (t = this.props.arrowStep) != null ? t : this.props.step) != null ? e : 1);
|
|
120
136
|
}));
|
|
121
137
|
/** Returns the minimum value/ Возвращает минимальное значение */
|
|
122
|
-
|
|
138
|
+
s(this, "min", r(() => {
|
|
123
139
|
var t;
|
|
124
140
|
return (t = u(this.props.min)) != null ? t : void 0;
|
|
125
141
|
}));
|
|
126
142
|
/** Returns the maximum value/ Возвращает максимальное значение */
|
|
127
|
-
|
|
143
|
+
s(this, "max", r(() => u(this.props.max) || void 0));
|
|
128
144
|
this.props = t, this.value = e, this.type = a;
|
|
129
145
|
}
|
|
130
146
|
/**
|
|
@@ -237,8 +253,8 @@ class F {
|
|
|
237
253
|
* @param value object for working with value/ объект для работы со значениями
|
|
238
254
|
* @param text object for working with texts/ объект для работы с текстами
|
|
239
255
|
*/
|
|
240
|
-
constructor(t, e, a,
|
|
241
|
-
this.props = t, this.element = e, this.value = a, this.text =
|
|
256
|
+
constructor(t, e, a, l) {
|
|
257
|
+
this.props = t, this.element = e, this.value = a, this.text = l;
|
|
242
258
|
}
|
|
243
259
|
/**
|
|
244
260
|
* Checks whether matching verification is enabled
|
|
@@ -294,9 +310,9 @@ class F {
|
|
|
294
310
|
}
|
|
295
311
|
export {
|
|
296
312
|
S as F,
|
|
297
|
-
|
|
313
|
+
M as a,
|
|
298
314
|
F as b,
|
|
299
|
-
|
|
315
|
+
w as c,
|
|
300
316
|
y as d,
|
|
301
317
|
b as e
|
|
302
318
|
};
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
var
|
|
2
|
-
var
|
|
3
|
-
var
|
|
4
|
-
import { computed as
|
|
5
|
-
import {
|
|
6
|
-
import { F as f } from "./FieldCounterInclude-
|
|
7
|
-
class
|
|
1
|
+
var v = Object.defineProperty;
|
|
2
|
+
var g = (t, s, i) => s in t ? v(t, s, { enumerable: !0, configurable: !0, writable: !0, value: i }) : t[s] = i;
|
|
3
|
+
var e = (t, s, i) => g(t, typeof s != "symbol" ? s + "" : s, i);
|
|
4
|
+
import { computed as a } from "vue";
|
|
5
|
+
import { getElementId as o, isFilled as r, getRef as d, toBinds as n } from "@dxtmisha/functional";
|
|
6
|
+
import { F as f } from "./FieldCounterInclude-D0oojGWY.js";
|
|
7
|
+
class b {
|
|
8
8
|
/**
|
|
9
9
|
* Constructor
|
|
10
10
|
* @param props input parameter/ входной параметр
|
|
@@ -12,27 +12,33 @@ class F {
|
|
|
12
12
|
* @param components object for working with components/ объект для работы с компонентами
|
|
13
13
|
* @param validationMessage error line/ строка ошибки
|
|
14
14
|
* @param isCounter whether to display the counter/ отображать ли счетчик
|
|
15
|
-
* @param helperId helper message identifier/ идентификатор сообщения помощника
|
|
16
|
-
* @param validationId validation message identifier/ идентификатор сообщения проверки
|
|
17
|
-
* @param counterId counter identifier/ идентификатор счетчика
|
|
18
15
|
* @param extra additional parameter or property name/ дополнительный параметр или имя свойства
|
|
19
16
|
* @param index index identifier/ идентификатор индекса
|
|
20
17
|
*/
|
|
21
|
-
constructor(s,
|
|
18
|
+
constructor(s, i, h, l, p, u, c) {
|
|
19
|
+
e(this, "helperId", o());
|
|
20
|
+
e(this, "validationId", o());
|
|
21
|
+
e(this, "counterId", o());
|
|
22
22
|
/** Field counter include/ Подключение счетчика поля */
|
|
23
|
-
|
|
24
|
-
/** Validation message computed/ Вычисляемое сообщение валидации */
|
|
25
|
-
t(this, "validation", r(
|
|
26
|
-
() => n(this.props.validationMessage) ? this.props.validationMessage : d(this.validationMessage)
|
|
27
|
-
));
|
|
23
|
+
e(this, "fieldCounter");
|
|
28
24
|
/** Checks if validation message should be displayed/ Проверяет, надо ли отображать сообщение валидации */
|
|
29
|
-
|
|
30
|
-
() =>
|
|
25
|
+
e(this, "isValidationMessage", a(
|
|
26
|
+
() => r(this.validation.value)
|
|
27
|
+
));
|
|
28
|
+
/** Returns the identifier/ Возвращает идентификатор */
|
|
29
|
+
e(this, "id", a(() => {
|
|
30
|
+
var i;
|
|
31
|
+
const s = [];
|
|
32
|
+
return this.props.helperMessage && s.push(this.helperId), this.props.validationMessage && s.push(this.validationId), (i = this.isCounter) != null && i.value && this.props.counterShow && s.push(this.counterId), s.join(" ");
|
|
33
|
+
}));
|
|
34
|
+
/** Validation message computed/ Вычисляемое сообщение валидации */
|
|
35
|
+
e(this, "validation", a(
|
|
36
|
+
() => r(this.props.validationMessage) ? this.props.validationMessage : d(this.validationMessage)
|
|
31
37
|
));
|
|
32
38
|
/** Computed bindings for FieldMessage/ Вычисляемые привязки для FieldMessage */
|
|
33
|
-
|
|
34
|
-
var s
|
|
35
|
-
return
|
|
39
|
+
e(this, "binds", a(() => {
|
|
40
|
+
var s;
|
|
41
|
+
return n(
|
|
36
42
|
d(this.extra),
|
|
37
43
|
(s = this.isCounter) != null && s.value ? this.fieldCounter.bindsIntermediary.value : {},
|
|
38
44
|
{
|
|
@@ -40,9 +46,9 @@ class F {
|
|
|
40
46
|
forceShow: this.props.forceShowMessage,
|
|
41
47
|
helperMessage: this.props.helperMessage,
|
|
42
48
|
validationMessage: this.validation.value,
|
|
43
|
-
helperId:
|
|
44
|
-
validationId:
|
|
45
|
-
counterId:
|
|
49
|
+
helperId: this.helperId,
|
|
50
|
+
validationId: this.validationId,
|
|
51
|
+
counterId: this.counterId
|
|
46
52
|
},
|
|
47
53
|
this.props.fieldMessageAttrs
|
|
48
54
|
);
|
|
@@ -52,10 +58,10 @@ class F {
|
|
|
52
58
|
*
|
|
53
59
|
* Рендер компонента FieldMessage.
|
|
54
60
|
*/
|
|
55
|
-
|
|
61
|
+
e(this, "render", () => this.components ? this.components.render(
|
|
56
62
|
"fieldMessage",
|
|
57
63
|
{
|
|
58
|
-
...
|
|
64
|
+
...n(
|
|
59
65
|
this.binds.value,
|
|
60
66
|
{ class: `${this.className}__fieldMessage` }
|
|
61
67
|
)
|
|
@@ -63,9 +69,9 @@ class F {
|
|
|
63
69
|
void 0,
|
|
64
70
|
this.index
|
|
65
71
|
) : []);
|
|
66
|
-
this.props = s, this.className =
|
|
72
|
+
this.props = s, this.className = i, this.components = h, this.validationMessage = l, this.isCounter = p, this.extra = u, this.index = c, this.fieldCounter = new f(this.props, this.className);
|
|
67
73
|
}
|
|
68
74
|
}
|
|
69
75
|
export {
|
|
70
|
-
F
|
|
76
|
+
b as F
|
|
71
77
|
};
|
|
@@ -3,7 +3,7 @@ var c = (s, i, t) => i in s ? p(s, i, { enumerable: !0, configurable: !0, writab
|
|
|
3
3
|
var a = (s, i, t) => c(s, typeof i != "symbol" ? i + "" : i, t);
|
|
4
4
|
import { computed as u } from "vue";
|
|
5
5
|
import { getExp as n, isFilled as o } from "@dxtmisha/functional";
|
|
6
|
-
import { L as m } from "./LabelInclude-
|
|
6
|
+
import { L as m } from "./LabelInclude-D-mLvjK5.js";
|
|
7
7
|
class d extends m {
|
|
8
8
|
/**
|
|
9
9
|
* Constructor for the LabelHighlightInclude class.
|