@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/input.js
CHANGED
|
@@ -1,32 +1,35 @@
|
|
|
1
|
-
var
|
|
2
|
-
var
|
|
3
|
-
var
|
|
4
|
-
import { computed as a, watch as
|
|
5
|
-
import { toBind as c, getRef as
|
|
6
|
-
import { a as
|
|
7
|
-
import { e as
|
|
8
|
-
import {
|
|
9
|
-
|
|
1
|
+
var E = Object.defineProperty;
|
|
2
|
+
var S = (n, s, i) => s in n ? E(n, s, { enumerable: !0, configurable: !0, writable: !0, value: i }) : n[s] = i;
|
|
3
|
+
var t = (n, s, i) => S(n, typeof s != "symbol" ? s + "" : s, i);
|
|
4
|
+
import { computed as a, watch as H, h as O } from "vue";
|
|
5
|
+
import { toBind as c, getRef as v, getBind as P, DesignConstructorAbstract as R, toBinds as f } from "@dxtmisha/functional";
|
|
6
|
+
import { a as L, F as j, c as q, f as z, b as G, e as J, d as K } from "./FieldEventInclude-DBRqmzpF.js";
|
|
7
|
+
import { e as Q, d as U, c as W, a as X, F as Y, b as Z } from "./FieldMatchInclude-GgyucDC_.js";
|
|
8
|
+
import { T as _ } from "./TextInclude--GERRCGj.js";
|
|
9
|
+
import { F as $ } from "./FieldInclude-BKoBWZdj.js";
|
|
10
|
+
class tt {
|
|
10
11
|
/**
|
|
11
12
|
* Constructor
|
|
12
13
|
* @param props input data/ входные данные
|
|
13
14
|
* @param visibility object for working with visualization/ объект для работы с визуализацией
|
|
15
|
+
* @param text object for working with text/ объект для работы с текстом
|
|
14
16
|
*/
|
|
15
|
-
constructor(s,
|
|
16
|
-
|
|
17
|
+
constructor(s, i, e) {
|
|
18
|
+
t(this, "visible", !1);
|
|
17
19
|
/** Checks if the type is a password/ Проверяет, является ли тип паролем. */
|
|
18
|
-
|
|
20
|
+
t(this, "is", a(() => this.props.type === "password"));
|
|
19
21
|
/** Returns the icon value/ Возвращает значение иконки */
|
|
20
|
-
|
|
22
|
+
t(this, "icon", a(() => {
|
|
21
23
|
if (this.is.value)
|
|
22
24
|
return {
|
|
23
25
|
active: this.visibility.item.value,
|
|
24
26
|
icon: this.props.iconVisibilityOff,
|
|
25
27
|
iconActive: this.props.iconVisibility,
|
|
26
|
-
dynamic: !0
|
|
28
|
+
dynamic: !0,
|
|
29
|
+
ariaLabel: this.visibility.item.value ? this.text.hide.value : this.text.show.value
|
|
27
30
|
};
|
|
28
31
|
}));
|
|
29
|
-
this.props = s, this.visibility =
|
|
32
|
+
this.props = s, this.visibility = i, this.text = e;
|
|
30
33
|
}
|
|
31
34
|
/**
|
|
32
35
|
* Toggle value.
|
|
@@ -37,7 +40,7 @@ class O {
|
|
|
37
40
|
this.is.value && this.visibility.toggle();
|
|
38
41
|
}
|
|
39
42
|
}
|
|
40
|
-
class
|
|
43
|
+
class it {
|
|
41
44
|
/**
|
|
42
45
|
* Constructor
|
|
43
46
|
* @param props input data/ входные данные
|
|
@@ -49,15 +52,15 @@ class P {
|
|
|
49
52
|
* @param extra additional parameter or property name/ дополнительный параметр или имя свойства
|
|
50
53
|
* @param index index identifier/ идентификатор индекса
|
|
51
54
|
*/
|
|
52
|
-
constructor(s,
|
|
55
|
+
constructor(s, i, e, h, r, o, l, p) {
|
|
53
56
|
/**
|
|
54
57
|
* Checks if the mask is active.
|
|
55
58
|
*
|
|
56
59
|
* Проверяет, активна ли маска.
|
|
57
60
|
*/
|
|
58
|
-
|
|
59
|
-
var
|
|
60
|
-
const s = (
|
|
61
|
+
t(this, "is", a(() => {
|
|
62
|
+
var i;
|
|
63
|
+
const s = (i = this.type) == null ? void 0 : i.get();
|
|
61
64
|
return this.props.maskNone !== !0 && !!(this.props.mask || s && [
|
|
62
65
|
"number",
|
|
63
66
|
"number-format",
|
|
@@ -74,21 +77,21 @@ class P {
|
|
|
74
77
|
*
|
|
75
78
|
* Возвращает базовые свойства для работы с маской.
|
|
76
79
|
*/
|
|
77
|
-
|
|
78
|
-
var
|
|
80
|
+
t(this, "bindsStatic", a(() => {
|
|
81
|
+
var i, e, h;
|
|
79
82
|
const s = c(
|
|
80
|
-
(
|
|
81
|
-
(
|
|
83
|
+
(i = v(this.extra)) != null ? i : {},
|
|
84
|
+
(e = this.props.maskAttrs) != null ? e : {}
|
|
82
85
|
);
|
|
83
86
|
return {
|
|
84
87
|
name: this.props.name,
|
|
85
|
-
valueDefault:
|
|
88
|
+
valueDefault: v(this.valueDefault),
|
|
86
89
|
currency: this.props.currency,
|
|
87
90
|
currencyHide: this.props.currencyHide,
|
|
88
91
|
fraction: this.props.fraction,
|
|
89
|
-
type: (
|
|
92
|
+
type: (h = this.type) == null ? void 0 : h.get(),
|
|
90
93
|
visible: this.props.maskVisible,
|
|
91
|
-
...
|
|
94
|
+
...P(this.props.mask, s, "mask")
|
|
92
95
|
};
|
|
93
96
|
}));
|
|
94
97
|
/**
|
|
@@ -96,7 +99,7 @@ class P {
|
|
|
96
99
|
*
|
|
97
100
|
* Возвращает все свойства для работы с маской.
|
|
98
101
|
*/
|
|
99
|
-
|
|
102
|
+
t(this, "binds", a(() => {
|
|
100
103
|
var s;
|
|
101
104
|
return {
|
|
102
105
|
...this.bindsStatic.value,
|
|
@@ -109,7 +112,7 @@ class P {
|
|
|
109
112
|
* Возвращает отрендеренный компонент маски.
|
|
110
113
|
* @param attrs additional attributes/ дополнительные атрибуты
|
|
111
114
|
*/
|
|
112
|
-
|
|
115
|
+
t(this, "render", (s) => this.components ? this.components.render(
|
|
113
116
|
"mask",
|
|
114
117
|
{
|
|
115
118
|
...c(
|
|
@@ -120,8 +123,8 @@ class P {
|
|
|
120
123
|
void 0,
|
|
121
124
|
this.index
|
|
122
125
|
) : []);
|
|
123
|
-
this.props = s, this.className =
|
|
124
|
-
|
|
126
|
+
this.props = s, this.className = i, this.value = e, this.valueDefault = h, this.components = r, this.type = o, this.extra = l, this.index = p, this.value && H(this.is, (u) => {
|
|
127
|
+
u || this.value.setFull(!0);
|
|
125
128
|
});
|
|
126
129
|
}
|
|
127
130
|
/**
|
|
@@ -133,7 +136,7 @@ class P {
|
|
|
133
136
|
return this.is.value;
|
|
134
137
|
}
|
|
135
138
|
}
|
|
136
|
-
class
|
|
139
|
+
class st {
|
|
137
140
|
/**
|
|
138
141
|
* Constructor
|
|
139
142
|
* @param props input data/ входные данные
|
|
@@ -144,54 +147,72 @@ class R {
|
|
|
144
147
|
* @param components object for working with components/ объект для работы с компонентами
|
|
145
148
|
* @param slots object for working with slots/ объект для работы со слотами
|
|
146
149
|
* @param emits the function is called when an event is triggered/ функция вызывается, когда срабатывает событие
|
|
150
|
+
* @param FieldChangeIncludeConstructor class for working with field change/ класс для работы с изменением поля
|
|
151
|
+
* @param FieldVisibilityIncludeConstructor class for working with field visibility/ класс для работы с видимостью поля
|
|
152
|
+
* @param FieldTypeIncludeConstructor class for working with field type/ класс для работы с типом поля
|
|
153
|
+
* @param FieldPatternIncludeConstructor class for working with field pattern/ класс для работы с шаблоном поля
|
|
154
|
+
* @param FieldInputModeIncludeConstructor class for working with field input mode/ класс для работы с режимом ввода поля
|
|
155
|
+
* @param FieldAttributesIncludeConstructor class for working with field attributes/ класс для работы с атрибутами поля
|
|
156
|
+
* @param FieldElementIncludeConstructor class for working with field element/ класс для работы с элементом поля
|
|
157
|
+
* @param FieldValueIncludeConstructor class for working with field value/ класс для работы со значением поля
|
|
158
|
+
* @param FieldArrowIncludeConstructor class for working with field arrow/ класс для работы со стрелкой поля
|
|
159
|
+
* @param InputPasswordConstructor class for working with input password/ класс для работы с паролем ввода
|
|
160
|
+
* @param FieldMatchIncludeConstructor class for working with field match/ класс для работы с совпадением поля
|
|
161
|
+
* @param FieldCodeIncludeConstructor class for working with field code/ класс для работы с кодом поля
|
|
162
|
+
* @param FieldValidationIncludeConstructor class for working with field validation/ класс для работы с валидацией поля
|
|
163
|
+
* @param FieldEventIncludeConstructor class for working with field event/ класс для работы с событием поля
|
|
164
|
+
* @param FieldIncludeConstructor class for working with field/ класс для работы с полем
|
|
165
|
+
* @param MaskIncludeConstructor class for working with mask/ класс для работы с маской
|
|
166
|
+
* @param TextIncludeConstructor class for working with text/ класс для работы с текстом
|
|
147
167
|
*/
|
|
148
|
-
constructor(s,
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
168
|
+
constructor(s, i, e, h, r, o, l, p, u = L, y = Q, g = U, b = W, I = X, w = j, F = q, x = z, k = Y, M = tt, V = Z, A = G, B = J, D = K, C = $, N = it, T = _) {
|
|
169
|
+
t(this, "text");
|
|
170
|
+
t(this, "visibility");
|
|
171
|
+
t(this, "type");
|
|
172
|
+
t(this, "pattern");
|
|
173
|
+
t(this, "inputMode");
|
|
174
|
+
t(this, "attributes");
|
|
175
|
+
t(this, "elementItem");
|
|
176
|
+
t(this, "change");
|
|
177
|
+
t(this, "value");
|
|
178
|
+
t(this, "arrow");
|
|
179
|
+
t(this, "password");
|
|
180
|
+
t(this, "match");
|
|
181
|
+
t(this, "code");
|
|
182
|
+
t(this, "validation");
|
|
183
|
+
t(this, "event");
|
|
184
|
+
t(this, "field");
|
|
185
|
+
t(this, "mask");
|
|
186
|
+
this.props = s, this.refs = i, this.element = e, this.classDesign = h, this.className = r, this.components = o, this.slots = l, this.emits = p, this.text = new T(this.props), this.change = new u(this.props), this.visibility = new y(), this.type = new g(this.props, this.visibility), this.pattern = new b(this.props, this.type), this.inputMode = new I(this.props, this.type), this.attributes = new w(
|
|
166
187
|
this.props,
|
|
167
188
|
this.type,
|
|
168
189
|
this.pattern,
|
|
169
190
|
this.inputMode
|
|
170
|
-
), this.elementItem = new
|
|
191
|
+
), this.elementItem = new F(
|
|
171
192
|
this.props,
|
|
172
193
|
this.element
|
|
173
|
-
), this.value = new
|
|
194
|
+
), this.value = new x(
|
|
174
195
|
this.props,
|
|
175
196
|
this.refs,
|
|
176
197
|
this.elementItem
|
|
177
|
-
), this.arrow = new
|
|
198
|
+
), this.arrow = new k(this.props, this.value, this.type), this.password = new M(this.props, this.visibility, this.text), this.match = new V(
|
|
178
199
|
this.props,
|
|
179
200
|
this.elementItem,
|
|
180
201
|
this.value
|
|
181
|
-
), this.code = new
|
|
202
|
+
), this.code = new A(this.props), this.validation = new B(
|
|
182
203
|
this.props,
|
|
183
204
|
this.attributes,
|
|
184
205
|
this.value,
|
|
185
206
|
this.change,
|
|
186
207
|
this.code,
|
|
187
208
|
this.match
|
|
188
|
-
), this.event = new
|
|
209
|
+
), this.event = new D(
|
|
189
210
|
this.props,
|
|
190
211
|
this.change,
|
|
191
212
|
this.value,
|
|
192
213
|
this.validation,
|
|
193
214
|
this.emits
|
|
194
|
-
), this.field = new
|
|
215
|
+
), this.field = new C(
|
|
195
216
|
this.props,
|
|
196
217
|
this.value,
|
|
197
218
|
this.components,
|
|
@@ -202,13 +223,13 @@ class R {
|
|
|
202
223
|
void 0,
|
|
203
224
|
void 0,
|
|
204
225
|
a(() => {
|
|
205
|
-
var
|
|
226
|
+
var d, m;
|
|
206
227
|
return {
|
|
207
|
-
iconTrailing: (
|
|
208
|
-
maxlength: (
|
|
228
|
+
iconTrailing: (d = this.password.icon.value) != null ? d : this.props.iconTrailing,
|
|
229
|
+
maxlength: (m = this.props.maxlength) != null ? m : this.props.max
|
|
209
230
|
};
|
|
210
231
|
})
|
|
211
|
-
), this.mask = new
|
|
232
|
+
), this.mask = new N(
|
|
212
233
|
this.props,
|
|
213
234
|
this.className,
|
|
214
235
|
this.value,
|
|
@@ -218,37 +239,38 @@ class R {
|
|
|
218
239
|
);
|
|
219
240
|
}
|
|
220
241
|
}
|
|
221
|
-
const
|
|
242
|
+
const pt = {
|
|
222
243
|
type: "text",
|
|
223
244
|
autocomplete: "off",
|
|
224
245
|
arrow: "auto",
|
|
225
246
|
maskVisible: !0
|
|
226
247
|
};
|
|
227
|
-
class
|
|
248
|
+
class ut extends R {
|
|
228
249
|
/**
|
|
229
250
|
* Constructor
|
|
230
251
|
* @param name class name/ название класса
|
|
231
252
|
* @param props properties/ свойства
|
|
232
253
|
* @param options list of additional parameters/ список дополнительных параметров
|
|
254
|
+
* @param ItemConstructor class for working with the item/ класс для работы с элементом
|
|
233
255
|
*/
|
|
234
|
-
constructor(
|
|
256
|
+
constructor(i, e, h, r = st) {
|
|
235
257
|
super(
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
258
|
+
i,
|
|
259
|
+
e,
|
|
260
|
+
h
|
|
239
261
|
);
|
|
240
|
-
|
|
262
|
+
t(this, "item");
|
|
241
263
|
/**
|
|
242
264
|
* Rendering the input element.
|
|
243
265
|
*
|
|
244
266
|
* Рендер элемент input.
|
|
245
267
|
* @param input data for the input element/ данные для элемента ввода
|
|
246
268
|
*/
|
|
247
|
-
|
|
269
|
+
t(this, "renderInput", (i) => this.item.mask.isActive() ? this.renderMask(i) : [O(
|
|
248
270
|
"input",
|
|
249
|
-
|
|
271
|
+
f(
|
|
250
272
|
this.item.attributes.listForInput.value,
|
|
251
|
-
|
|
273
|
+
i.binds,
|
|
252
274
|
{
|
|
253
275
|
ref: this.element,
|
|
254
276
|
value: this.item.value.item.value,
|
|
@@ -264,18 +286,18 @@ class Q extends w {
|
|
|
264
286
|
* Рендеринг элемента маски.
|
|
265
287
|
* @param input data for the input element/ данные для элемента ввода
|
|
266
288
|
*/
|
|
267
|
-
|
|
289
|
+
t(this, "renderMask", (i) => this.item.mask.render({
|
|
268
290
|
ref: this.element,
|
|
269
|
-
class:
|
|
291
|
+
class: i.className,
|
|
270
292
|
align: this.props.align,
|
|
271
|
-
inputAttrs:
|
|
293
|
+
inputAttrs: f(
|
|
272
294
|
this.item.attributes.listForInput.value,
|
|
273
|
-
|
|
295
|
+
i.binds
|
|
274
296
|
),
|
|
275
297
|
onBlur: this.item.event.onBlur,
|
|
276
298
|
onInput: this.item.event.onInput
|
|
277
299
|
}));
|
|
278
|
-
this.item = new
|
|
300
|
+
this.item = new r(
|
|
279
301
|
this.props,
|
|
280
302
|
this.refs,
|
|
281
303
|
this.element,
|
|
@@ -322,21 +344,21 @@ class Q extends w {
|
|
|
322
344
|
* Метод для рендеринга.
|
|
323
345
|
*/
|
|
324
346
|
initRender() {
|
|
325
|
-
var
|
|
347
|
+
var i;
|
|
326
348
|
return this.item.field.render(
|
|
327
349
|
{
|
|
328
350
|
default: this.renderInput
|
|
329
351
|
},
|
|
330
352
|
{
|
|
331
353
|
...this.getAttrs(),
|
|
332
|
-
class: (
|
|
354
|
+
class: (i = this.classes) == null ? void 0 : i.value.main,
|
|
333
355
|
validationMessage: this.item.validation.message.value
|
|
334
356
|
}
|
|
335
357
|
);
|
|
336
358
|
}
|
|
337
359
|
}
|
|
338
360
|
export {
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
|
|
361
|
+
st as Input,
|
|
362
|
+
ut as InputDesign,
|
|
363
|
+
pt as defaultsInput
|
|
342
364
|
};
|
package/dist/library.d.ts
CHANGED
|
@@ -3,30 +3,37 @@ export * from './classes/CaptionInclude';
|
|
|
3
3
|
export * from './classes/DescriptionInclude';
|
|
4
4
|
export * from './classes/EnabledInclude';
|
|
5
5
|
export * from './classes/EventClickInclude';
|
|
6
|
+
export * from './classes/Field/FieldArrowInclude';
|
|
7
|
+
export * from './classes/Field/FieldAttributesInclude';
|
|
8
|
+
export * from './classes/Field/FieldChangeInclude';
|
|
9
|
+
export * from './classes/Field/FieldCodeInclude';
|
|
10
|
+
export * from './classes/Field/FieldElementInclude';
|
|
11
|
+
export * from './classes/Field/FieldEventInclude';
|
|
12
|
+
export * from './classes/Field/FieldInputCheckInclude';
|
|
13
|
+
export * from './classes/Field/FieldInputModeInclude';
|
|
14
|
+
export * from './classes/Field/FieldMatchInclude';
|
|
15
|
+
export * from './classes/Field/FieldPatternInclude';
|
|
16
|
+
export * from './classes/Field/FieldTypeInclude';
|
|
17
|
+
export * from './classes/Field/FieldValidationInclude';
|
|
18
|
+
export * from './classes/Field/FieldValueInclude';
|
|
19
|
+
export * from './classes/Field/FieldVisibilityInclude';
|
|
6
20
|
export * from './classes/LabelHighlightInclude';
|
|
7
21
|
export * from './classes/LabelInclude';
|
|
8
22
|
export * from './classes/LabelNumberInclude';
|
|
9
23
|
export * from './classes/ModelInclude';
|
|
10
24
|
export * from './classes/ModelValueInclude';
|
|
25
|
+
export * from './classes/Plugin/Plugin';
|
|
26
|
+
export * from './classes/Plugin/PluginCode';
|
|
27
|
+
export * from './classes/Plugin/PluginComponents';
|
|
28
|
+
export * from './classes/Plugin/PluginData';
|
|
29
|
+
export * from './classes/Plugin/PluginImport';
|
|
30
|
+
export * from './classes/Plugin/PluginStyle';
|
|
31
|
+
export * from './classes/Plugin/PluginTool';
|
|
11
32
|
export * from './classes/PrefixInclude';
|
|
12
33
|
export * from './classes/SuffixInclude';
|
|
13
34
|
export * from './classes/TabIndexInclude';
|
|
14
35
|
export * from './classes/TextInclude';
|
|
15
36
|
export * from './classes/TouchEventInclude';
|
|
16
|
-
export * from './classes/field/FieldArrowInclude';
|
|
17
|
-
export * from './classes/field/FieldAttributesInclude';
|
|
18
|
-
export * from './classes/field/FieldChangeInclude';
|
|
19
|
-
export * from './classes/field/FieldCodeInclude';
|
|
20
|
-
export * from './classes/field/FieldElementInclude';
|
|
21
|
-
export * from './classes/field/FieldEventInclude';
|
|
22
|
-
export * from './classes/field/FieldInputCheckInclude';
|
|
23
|
-
export * from './classes/field/FieldInputModeInclude';
|
|
24
|
-
export * from './classes/field/FieldMatchInclude';
|
|
25
|
-
export * from './classes/field/FieldPatternInclude';
|
|
26
|
-
export * from './classes/field/FieldTypeInclude';
|
|
27
|
-
export * from './classes/field/FieldValidationInclude';
|
|
28
|
-
export * from './classes/field/FieldValueInclude';
|
|
29
|
-
export * from './classes/field/FieldVisibilityInclude';
|
|
30
37
|
export * from './functions/getClassTagAStatic';
|
|
31
38
|
export * from './types/ariaTypes';
|
|
32
39
|
export * from './types/captionTypes';
|
|
@@ -36,6 +43,7 @@ export * from './types/eventClickTypes';
|
|
|
36
43
|
export * from './types/fieldTypes';
|
|
37
44
|
export * from './types/labelTypes';
|
|
38
45
|
export * from './types/modelTypes';
|
|
46
|
+
export * from './types/pluginTypes';
|
|
39
47
|
export * from './types/prefixTypes';
|
|
40
48
|
export * from './types/roleTypes';
|
|
41
49
|
export * from './types/suffixTypes';
|
package/dist/library.js
CHANGED
|
@@ -1,50 +1,58 @@
|
|
|
1
|
-
import { A as
|
|
2
|
-
import { C as o } from "./CaptionInclude-
|
|
3
|
-
import { D as
|
|
4
|
-
import { E as
|
|
5
|
-
import { E as
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
10
|
-
import {
|
|
11
|
-
import {
|
|
12
|
-
import {
|
|
13
|
-
import {
|
|
14
|
-
import {
|
|
15
|
-
import {
|
|
16
|
-
import {
|
|
17
|
-
import {
|
|
18
|
-
import {
|
|
1
|
+
import { A as a } from "./AriaStaticInclude-CAURwJMb.js";
|
|
2
|
+
import { C as o } from "./CaptionInclude-NzS6EYYj.js";
|
|
3
|
+
import { D as r } from "./DescriptionInclude-D4ane9aR.js";
|
|
4
|
+
import { E as u } from "./EnabledInclude-Dk-rP4jp.js";
|
|
5
|
+
import { E as c } from "./EventClickInclude-WHJqxZ1b.js";
|
|
6
|
+
import { F as I, a as p, b as f, c as m, d as x, e as F } from "./FieldMatchInclude-GgyucDC_.js";
|
|
7
|
+
import { F as b, a as P, b as C, c as T, d as E, e as h, f as L } from "./FieldEventInclude-DBRqmzpF.js";
|
|
8
|
+
import { F as A } from "./FieldInputCheckInclude-CjNYyGTb.js";
|
|
9
|
+
import { L as V } from "./LabelHighlightInclude-CLmTvW_6.js";
|
|
10
|
+
import { L as y } from "./LabelInclude-D-mLvjK5.js";
|
|
11
|
+
import { L as k } from "./LabelNumberInclude-Cn0qDEgX.js";
|
|
12
|
+
import { M as H } from "./ModelInclude-BiYm_iCQ.js";
|
|
13
|
+
import { M as j } from "./ModelValueInclude-CJmm5go9.js";
|
|
14
|
+
import { P as z, a as B, b as G, c as J, d as K, e as O, f as Q } from "./Plugin-CBNCh_iN.js";
|
|
15
|
+
import { P as U, S as W } from "./SuffixInclude-maZ7235l.js";
|
|
16
|
+
import { T as Y } from "./TabIndexInclude-xcSFV8yP.js";
|
|
17
|
+
import { T as _ } from "./TextInclude--GERRCGj.js";
|
|
18
|
+
import { T as ee } from "./TouchEventInclude-DctYCjt8.js";
|
|
19
|
+
import { g as ae } from "./getClassTagAStatic-BnVYlXHI.js";
|
|
19
20
|
export {
|
|
20
|
-
|
|
21
|
+
a as AriaStaticInclude,
|
|
21
22
|
o as CaptionInclude,
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
23
|
+
r as DescriptionInclude,
|
|
24
|
+
u as EnabledInclude,
|
|
25
|
+
c as EventClickInclude,
|
|
26
|
+
I as FieldArrowInclude,
|
|
27
|
+
b as FieldAttributesInclude,
|
|
28
|
+
P as FieldChangeInclude,
|
|
29
|
+
C as FieldCodeInclude,
|
|
30
|
+
T as FieldElementInclude,
|
|
31
|
+
E as FieldEventInclude,
|
|
32
|
+
A as FieldInputCheckInclude,
|
|
33
|
+
p as FieldInputModeInclude,
|
|
34
|
+
f as FieldMatchInclude,
|
|
35
|
+
m as FieldPatternInclude,
|
|
36
|
+
x as FieldTypeInclude,
|
|
37
|
+
h as FieldValidationInclude,
|
|
38
|
+
L as FieldValueInclude,
|
|
39
|
+
F as FieldVisibilityInclude,
|
|
40
|
+
V as LabelHighlightInclude,
|
|
41
|
+
y as LabelInclude,
|
|
42
|
+
k as LabelNumberInclude,
|
|
43
|
+
H as ModelInclude,
|
|
44
|
+
j as ModelValueInclude,
|
|
45
|
+
z as Plugin,
|
|
46
|
+
B as PluginCode,
|
|
47
|
+
G as PluginComponents,
|
|
48
|
+
J as PluginData,
|
|
49
|
+
K as PluginImport,
|
|
50
|
+
O as PluginStyle,
|
|
51
|
+
Q as PluginTool,
|
|
52
|
+
U as PrefixInclude,
|
|
53
|
+
W as SuffixInclude,
|
|
54
|
+
Y as TabIndexInclude,
|
|
55
|
+
_ as TextInclude,
|
|
56
|
+
ee as TouchEventInclude,
|
|
57
|
+
ae as getClassTagAStatic
|
|
50
58
|
};
|