@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,13 +1,3 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Expose for description functionality/ Экспоз для функциональности описания
|
|
3
|
-
*/
|
|
4
|
-
export interface DescriptionExpose {
|
|
5
|
-
/** Description identifier/ Идентификатор описания */
|
|
6
|
-
descriptionId: string;
|
|
7
|
-
}
|
|
8
|
-
/**
|
|
9
|
-
* Slots for description functionality/ Слоты для функциональности описания
|
|
10
|
-
*/
|
|
11
1
|
export interface DescriptionSlots {
|
|
12
2
|
/** Description slot/ Слот описания */
|
|
13
3
|
description?(props: any): any;
|
|
@@ -15,7 +5,9 @@ export interface DescriptionSlots {
|
|
|
15
5
|
/**
|
|
16
6
|
* Props for description functionality/ Пропсы для функциональности описания
|
|
17
7
|
*/
|
|
18
|
-
export
|
|
8
|
+
export type DescriptionProps = {
|
|
19
9
|
/** Description text or number/ Текст или число описания */
|
|
20
10
|
description?: string | number;
|
|
21
|
-
|
|
11
|
+
/** Description identifier/ Идентификатор описания */
|
|
12
|
+
descriptionId?: string;
|
|
13
|
+
};
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Props for enabled/disabled state functionality/ Пропсы для функциональности состояния включено/выключено
|
|
3
3
|
*/
|
|
4
|
-
export
|
|
4
|
+
export type EnabledProps = {
|
|
5
5
|
/** Read-only state/ Состояние только для чтения */
|
|
6
6
|
readonly?: boolean;
|
|
7
7
|
/** Disabled state/ Состояние отключено */
|
|
8
8
|
disabled?: boolean;
|
|
9
|
-
}
|
|
9
|
+
};
|
|
@@ -37,11 +37,11 @@ export interface EventClickExpose {
|
|
|
37
37
|
/**
|
|
38
38
|
* Props for click event handling/ Пропсы для обработки событий клика
|
|
39
39
|
*/
|
|
40
|
-
export
|
|
40
|
+
export type EventClickProps = {
|
|
41
41
|
/** Navigation target (string or route object)/ Цель навигации (строка или объект роута) */
|
|
42
42
|
to?: string | RouteLocationRaw;
|
|
43
43
|
/** Click event value/ Значение события клика */
|
|
44
44
|
value?: EventClickValue['value'];
|
|
45
45
|
/** Additional click event details/ Дополнительные детали события клика */
|
|
46
46
|
detail?: EventClickValue['detail'];
|
|
47
|
-
}
|
|
47
|
+
};
|
|
@@ -92,24 +92,24 @@ export type FieldValidationItem<Value = any> = FieldCheckMain & {
|
|
|
92
92
|
*/
|
|
93
93
|
export type FieldBasicEmits<T = string> = ModelEmits & {
|
|
94
94
|
/**
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
95
|
+
* Emitted on input events (every change while typing)/
|
|
96
|
+
* Эмит при вводе (каждое изменение): [event, value]
|
|
97
|
+
*/
|
|
98
98
|
input: [event: InputEvent | Event, value: FieldValidationItem<T>];
|
|
99
99
|
/**
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
100
|
+
* Lightweight input emit without DOM event/
|
|
101
|
+
* Лёгкий эмит ввода без DOM-события: [value]
|
|
102
|
+
*/
|
|
103
103
|
inputLite: [value: FieldValidationItem<T>];
|
|
104
104
|
/**
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
105
|
+
* Emitted when value is committed (blur/confirm)/
|
|
106
|
+
* Эмит при подтверждении значения (blur/confirm): [event, value]
|
|
107
|
+
*/
|
|
108
108
|
change: [event: InputEvent | Event, value: FieldValidationItem<T>];
|
|
109
109
|
/**
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
110
|
+
* Lightweight change emit without DOM event/
|
|
111
|
+
* Лёгкий эмит подтверждения без события: [value]
|
|
112
|
+
*/
|
|
113
113
|
changeLite: [value: FieldValidationItem<T>];
|
|
114
114
|
};
|
|
115
115
|
export type FieldBasicExpose<T = string> = {
|
|
@@ -124,7 +124,7 @@ export type FieldBasicExpose<T = string> = {
|
|
|
124
124
|
* Used by the ValueInclude class to read/write value and constraints/
|
|
125
125
|
* Используется классом ValueInclude для чтения/записи значения и ограничений
|
|
126
126
|
*/
|
|
127
|
-
export
|
|
127
|
+
export type FieldValueProps<Value = any> = ModelProps<Value> & {
|
|
128
128
|
/** Placeholder text shown when value is empty/ Текст подсказки при пустом значении */
|
|
129
129
|
placeholder?: string;
|
|
130
130
|
/** Multiple selection/value mode/ Режим множественного значения/выбора */
|
|
@@ -135,12 +135,12 @@ export interface FieldValueProps<Value = any> extends ModelProps<Value> {
|
|
|
135
135
|
value?: Value;
|
|
136
136
|
/** Additional event details/ Дополнительные детали события */
|
|
137
137
|
detail?: Record<string, any> | undefined;
|
|
138
|
-
}
|
|
138
|
+
};
|
|
139
139
|
/**
|
|
140
140
|
* Basic HTML input attributes without value-length specifics/
|
|
141
141
|
* Базовые HTML атрибуты инпута без ограничений длины и multiple
|
|
142
142
|
*/
|
|
143
|
-
export
|
|
143
|
+
export type FieldBasicProps<Value = any> = Omit<FieldValueProps<Value>, 'multiple' | 'maxlength'> & {
|
|
144
144
|
/** Input type/ Тип инпута */
|
|
145
145
|
type?: 'text' | 'search' | 'number' | 'number-format' | 'currency' | 'email' | 'password' | 'datetime' | 'date' | 'year-month' | 'time' | 'hour-minute' | 'tel' | 'url' | 'checkbox' | 'radio';
|
|
146
146
|
/** Input name attribute/ Атрибут name */
|
|
@@ -162,62 +162,62 @@ export interface FieldBasicProps<Value = any> extends Omit<FieldValueProps<Value
|
|
|
162
162
|
/** Validation error text or map of texts/ Текст ошибки валидации или карта текстов */
|
|
163
163
|
validationCode?: FieldValidityCode;
|
|
164
164
|
/**
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
165
|
+
* Standard validation message (overrides default)/
|
|
166
|
+
* Стандартное сообщение валидации (перекрывает дефолтное)
|
|
167
|
+
*/
|
|
168
168
|
validationMessage?: string;
|
|
169
169
|
/** Match config to compare with another field/ Конфигурация сравнения со вторым полем */
|
|
170
170
|
match?: FieldMatch;
|
|
171
171
|
/** Additional attributes for the input element/ Дополнительные атрибуты для элемента инпута */
|
|
172
172
|
inputAttrs?: Record<string, any>;
|
|
173
|
-
}
|
|
173
|
+
};
|
|
174
174
|
/**
|
|
175
175
|
* Numeric stepping and range constraints/
|
|
176
176
|
* Ограничения шага и диапазона числовых значений
|
|
177
177
|
*/
|
|
178
|
-
export
|
|
178
|
+
export type FieldStepProps = {
|
|
179
179
|
/** Step size for numeric inputs/ Шаг для числовых инпутов */
|
|
180
180
|
step?: NumberOrString;
|
|
181
181
|
/** Minimum value/ Минимальное значение */
|
|
182
182
|
min?: NumberOrString;
|
|
183
183
|
/** Maximum value/ Максимальное значение */
|
|
184
184
|
max?: NumberOrString;
|
|
185
|
-
}
|
|
185
|
+
};
|
|
186
186
|
/**
|
|
187
187
|
* Input arrow controls (for type="number")/
|
|
188
188
|
* Управление стрелками ввода (для type="number")
|
|
189
189
|
*/
|
|
190
|
-
export
|
|
190
|
+
export type FieldArrowProps = {
|
|
191
191
|
/** Arrow type/ Тип стрелок */
|
|
192
192
|
arrow?: 'auto' | 'carousel' | 'stepper' | 'none';
|
|
193
193
|
/** Step size for input arrows (type="number" only)/ Шаг для стрелок ввода (только для type="number") */
|
|
194
194
|
arrowStep?: NumberOrString;
|
|
195
195
|
/** Arrow alignment/ Выравнивание стрелок */
|
|
196
196
|
arrowAlign?: 'center' | 'right' | 'left';
|
|
197
|
-
}
|
|
197
|
+
};
|
|
198
198
|
/**
|
|
199
199
|
* Text length constraints (characters, items)/
|
|
200
200
|
* Ограничения длины текста (символы, элементы)
|
|
201
201
|
*/
|
|
202
|
-
export
|
|
202
|
+
export type FieldLengthProps = {
|
|
203
203
|
/** Minimum length/ Минимальная длина */
|
|
204
204
|
minlength?: NumberOrString;
|
|
205
205
|
/** Maximum length/ Максимальная длина */
|
|
206
206
|
maxlength?: NumberOrString;
|
|
207
|
-
}
|
|
207
|
+
};
|
|
208
208
|
/**
|
|
209
209
|
* Validation pattern attribute/
|
|
210
210
|
* Атрибут паттерна валидации
|
|
211
211
|
*/
|
|
212
|
-
export
|
|
212
|
+
export type FieldPatternProps = {
|
|
213
213
|
/** Validation pattern (regexp)/ Паттерн валидации (рег. выражение) */
|
|
214
214
|
pattern?: string;
|
|
215
|
-
}
|
|
215
|
+
};
|
|
216
216
|
/**
|
|
217
217
|
* UX input control attributes/
|
|
218
218
|
* Атрибуты управления UX вводом
|
|
219
219
|
*/
|
|
220
|
-
export
|
|
220
|
+
export type FieldUxProps = {
|
|
221
221
|
/** Autocomplete hint/ Подсказка автозаполнения */
|
|
222
222
|
autocomplete?: string;
|
|
223
223
|
/** Auto capitalization mode/ Режим авто-капитализации */
|
|
@@ -230,44 +230,44 @@ export interface FieldUxProps {
|
|
|
230
230
|
spellcheck?: boolean | 'true' | 'false';
|
|
231
231
|
/** Autocorrect mode (iOS/Safari)/ Режим автокоррекции (iOS/Safari) */
|
|
232
232
|
autocorrect?: 'on' | 'off' | string;
|
|
233
|
-
}
|
|
233
|
+
};
|
|
234
234
|
/**
|
|
235
235
|
* Composite props for standard textual / numeric inputs/
|
|
236
236
|
* Составные свойства стандартных текстовых / числовых инпутов
|
|
237
237
|
*/
|
|
238
|
-
export
|
|
238
|
+
export type FieldInputProps<Value = any> = FieldBasicProps<Value> & FieldStepProps & FieldArrowProps & FieldLengthProps & FieldPatternProps & FieldUxProps & {
|
|
239
239
|
/** Datalist id reference/ Ссылка на datalist */
|
|
240
240
|
list?: string;
|
|
241
241
|
iconVisibility?: string;
|
|
242
242
|
iconVisibilityOff?: string;
|
|
243
|
-
}
|
|
243
|
+
};
|
|
244
244
|
/**
|
|
245
245
|
* Props for file input elements (type="file")/
|
|
246
246
|
* Свойства для инпутов выбора файлов (type="file")
|
|
247
247
|
*/
|
|
248
|
-
export
|
|
248
|
+
export type FieldInputFileProps<Value = any> = Omit<FieldBasicProps<Value>, 'type'> & FieldLengthProps & FieldUxProps & {
|
|
249
249
|
/** Multiple files selection flag/ Флаг выбора нескольких файлов */
|
|
250
250
|
multiple?: boolean;
|
|
251
251
|
/** Accept file types list (MIME, extensions)/ Список допустимых типов (MIME, расширения) */
|
|
252
252
|
accept?: string;
|
|
253
253
|
/** Capture mode for media input (mobile)/ Режим захвата для медиа (мобильные устройства) */
|
|
254
254
|
capture?: string | boolean;
|
|
255
|
-
}
|
|
255
|
+
};
|
|
256
256
|
/**
|
|
257
257
|
* Props for checkbox & radio inputs (excluding type field)/
|
|
258
258
|
* Свойства для инпутов checkbox и radio (без поля type)
|
|
259
259
|
*/
|
|
260
|
-
export
|
|
260
|
+
export type FieldInputCheckProps<Value = any> = Omit<FieldBasicProps<Value>, 'type'> & FieldUxProps & {
|
|
261
261
|
/** Checked state/ Состояние выбора */
|
|
262
262
|
checked?: boolean;
|
|
263
263
|
/** Indeterminate visual state (checkbox only)/ Промежуточное визуальное состояние (только для checkbox) */
|
|
264
264
|
indeterminate?: boolean;
|
|
265
|
-
}
|
|
265
|
+
};
|
|
266
266
|
/**
|
|
267
267
|
* Props for textarea elements with sizing & wrapping/
|
|
268
268
|
* Свойства для textarea с поддержкой размеров и переноса
|
|
269
269
|
*/
|
|
270
|
-
export
|
|
270
|
+
export type FieldTextareaProps<Value = any> = Omit<FieldBasicProps<Value>, 'type'> & FieldLengthProps & FieldUxProps & {
|
|
271
271
|
/** Number of visible text lines/ Количество видимых строк */
|
|
272
272
|
rows?: NumberOrString;
|
|
273
273
|
/** Number of visible columns/ Количество видимых колонок */
|
|
@@ -276,19 +276,18 @@ export interface FieldTextareaProps<Value = any> extends Omit<FieldBasicProps<Va
|
|
|
276
276
|
wrap?: 'soft' | 'hard' | 'off' | string;
|
|
277
277
|
/** Automatic field sizing mode (CSS field-sizing)/ Режим автоизменения размера (CSS field-sizing) */
|
|
278
278
|
fieldSizing?: 'content' | 'fixed' | string;
|
|
279
|
-
}
|
|
279
|
+
};
|
|
280
280
|
/**
|
|
281
281
|
* Props for select elements (single & multiple)/
|
|
282
282
|
* Свойства для select элементов (одиночный и множественный выбор)
|
|
283
283
|
*/
|
|
284
|
-
export
|
|
284
|
+
export type FieldSelectProps<Value = any> = Omit<FieldBasicProps<Value>, 'type'> & Omit<FieldStepProps, 'min' | 'step'> & FieldArrowProps & FieldUxProps & {
|
|
285
285
|
option?: ListRecord;
|
|
286
286
|
/** Multiple selection mode/ Режим множественного выбора */
|
|
287
287
|
multiple?: boolean;
|
|
288
|
-
}
|
|
288
|
+
};
|
|
289
289
|
/**
|
|
290
290
|
* All possible field properties combined/
|
|
291
291
|
* Все возможные свойства поля в одном интерфейсе
|
|
292
292
|
*/
|
|
293
|
-
export
|
|
294
|
-
}
|
|
293
|
+
export type FieldAllProps<Value = any> = FieldInputProps<Value> & FieldInputFileProps<Value> & FieldInputCheckProps<Value> & FieldTextareaProps<Value> & FieldSelectProps<Value>;
|
|
@@ -1,11 +1,4 @@
|
|
|
1
1
|
import { NumberOrString } from '@dxtmisha/functional';
|
|
2
|
-
/**
|
|
3
|
-
* Exposed properties for label components/ Экспонируемые свойства для компонентов меток
|
|
4
|
-
*/
|
|
5
|
-
export interface LabelExpose {
|
|
6
|
-
/** Label element ID/ Идентификатор элемента метки */
|
|
7
|
-
labelId: string;
|
|
8
|
-
}
|
|
9
2
|
/**
|
|
10
3
|
* Slot definitions for label components/ Определения слотов для компонентов меток
|
|
11
4
|
*/
|
|
@@ -33,29 +26,29 @@ export interface LabelHighlightSlots extends LabelSlots {
|
|
|
33
26
|
/**
|
|
34
27
|
* Properties for label components/ Свойства для компонентов меток
|
|
35
28
|
*/
|
|
36
|
-
export
|
|
29
|
+
export type LabelProps = {
|
|
37
30
|
/** Label text or number/ Текст или число метки */
|
|
38
31
|
label?: NumberOrString;
|
|
39
32
|
/** Label element ID/ Идентификатор элемента метки */
|
|
40
33
|
labelId?: string;
|
|
41
|
-
}
|
|
34
|
+
};
|
|
42
35
|
/**
|
|
43
36
|
* Properties for numeric label components/ Свойства для числовых компонентов меток
|
|
44
37
|
*/
|
|
45
|
-
export
|
|
38
|
+
export type LabelNumberProps = LabelProps & {
|
|
46
39
|
/** Maximum value for the label/ Максимальное значение для метки */
|
|
47
40
|
labelMax?: NumberOrString;
|
|
48
41
|
/** Enable number formatting/ Включить форматирование чисел */
|
|
49
42
|
formatting?: boolean;
|
|
50
|
-
}
|
|
43
|
+
};
|
|
51
44
|
/**
|
|
52
45
|
* Properties for highlighted label components/ Свойства для компонентов меток с подсветкой
|
|
53
46
|
*/
|
|
54
|
-
export
|
|
47
|
+
export type LabelHighlightProps = LabelProps & {
|
|
55
48
|
/** Text to highlight/ Текст для подсветки */
|
|
56
49
|
highlight?: string;
|
|
57
50
|
/** Starting length for highlight/ Начальная длина для подсветки */
|
|
58
51
|
highlightLengthStart?: number;
|
|
59
52
|
/** Current value/ Текущее значение */
|
|
60
53
|
value?: any;
|
|
61
|
-
}
|
|
54
|
+
};
|
|
@@ -18,19 +18,19 @@ export type ModelEmitsSelected<Value = string> = {
|
|
|
18
18
|
* Props for model value used with v-model/
|
|
19
19
|
* Свойства для значения модели, используемого с v-model
|
|
20
20
|
*/
|
|
21
|
-
export
|
|
21
|
+
export type ModelProps<Value = string> = {
|
|
22
22
|
/** Model value prop/ Свойство значения модели */
|
|
23
23
|
'modelValue'?: Value;
|
|
24
24
|
/** Update value handler/ Обработчик обновления значения */
|
|
25
25
|
'onUpdate:value'?: (value: Value) => void;
|
|
26
26
|
/** Update model value handler/ Обработчик обновления значения модели */
|
|
27
27
|
'onUpdate:modelValue'?: (value: Value) => void;
|
|
28
|
-
}
|
|
29
|
-
export
|
|
28
|
+
};
|
|
29
|
+
export type ModelPropsSelected<Value = string> = {
|
|
30
30
|
/** Model value prop/ Свойство значения модели */
|
|
31
31
|
'modelSelected'?: Value;
|
|
32
32
|
/** Update value handler/ Обработчик обновления значения */
|
|
33
33
|
'onUpdate:selected'?: (value: Value) => void;
|
|
34
34
|
/** Update model value handler/ Обработчик обновления значения модели */
|
|
35
35
|
'onUpdate:modelSelected'?: (value: Value) => void;
|
|
36
|
-
}
|
|
36
|
+
};
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { Plugin as VitePlugin } from 'vite';
|
|
2
|
+
/** Library component item with name and regex / Элемент компонента библиотеки с именем и регулярным выражением */
|
|
3
|
+
export type PluginComponentItem = {
|
|
4
|
+
/** Component name / Название компонента */
|
|
5
|
+
name: string;
|
|
6
|
+
/** Regular expression for component search / Регулярное выражение для поиска компонента */
|
|
7
|
+
reg: RegExp;
|
|
8
|
+
};
|
|
9
|
+
/** List of library components by key / Список компонентов библиотеки по ключу */
|
|
10
|
+
export type PluginComponentList = Record<string, PluginComponentItem>;
|
|
11
|
+
/** List of library component imports / Список импортов компонентов библиотеки */
|
|
12
|
+
export type PluginComponentImports = PluginComponentItem[];
|
|
13
|
+
export type PluginOptions = {
|
|
14
|
+
style?: boolean;
|
|
15
|
+
component?: boolean;
|
|
16
|
+
viteOptions?: VitePlugin;
|
|
17
|
+
};
|
|
@@ -8,7 +8,9 @@ export interface PrefixSlots {
|
|
|
8
8
|
/**
|
|
9
9
|
* Props for prefix functionality/ Пропсы для функциональности префикса
|
|
10
10
|
*/
|
|
11
|
-
export
|
|
11
|
+
export type PrefixProps = {
|
|
12
12
|
/** Prefix text or number/ Текст или число префикса */
|
|
13
13
|
prefix?: string | number;
|
|
14
|
-
|
|
14
|
+
/** Unique identifier for the prefix element/ Уникальный идентификатор для элемента префикса */
|
|
15
|
+
prefixId?: string;
|
|
16
|
+
};
|
|
@@ -8,7 +8,9 @@ export interface SuffixSlots {
|
|
|
8
8
|
/**
|
|
9
9
|
* Props for suffix functionality/ Пропсы для функциональности суффикса
|
|
10
10
|
*/
|
|
11
|
-
export
|
|
11
|
+
export type SuffixProps = {
|
|
12
12
|
/** Suffix text or number/ Текст или число суффикса */
|
|
13
13
|
suffix?: string | number;
|
|
14
|
-
|
|
14
|
+
/** Unique identifier for the suffix element/ Уникальный идентификатор для элемента суффикса */
|
|
15
|
+
suffixId?: string;
|
|
16
|
+
};
|
|
@@ -1,21 +1,60 @@
|
|
|
1
1
|
export type TextValue = string | (() => string) | undefined;
|
|
2
|
-
export type TextIndex = 'close' | 'entriesMatch' | 'ok' | string;
|
|
2
|
+
export type TextIndex = 'cancel' | 'characterLimit' | 'characterRemaining' | 'close' | 'copiedClipboard' | 'decrement' | 'entriesMatch' | 'hide' | 'increment' | 'loading' | 'next' | 'ok' | 'previous' | 'show' | string;
|
|
3
3
|
export type TextList = Record<TextIndex, TextValue>;
|
|
4
|
-
export
|
|
4
|
+
export type TextCancelPropsInclude = {
|
|
5
|
+
/** Cancel text/ Текст отмены */
|
|
6
|
+
textCancel?: TextValue;
|
|
7
|
+
};
|
|
8
|
+
export type TextCharacterLimitPropsInclude = {
|
|
9
|
+
/** Character limit exceeded text/ Текст о превышении лимита символов */
|
|
10
|
+
textCharacterLimit?: TextValue;
|
|
11
|
+
};
|
|
12
|
+
export type TextCharacterRemainingPropsInclude = {
|
|
13
|
+
/** Remaining characters text/ Текст об оставшихся символах */
|
|
14
|
+
textCharacterRemaining?: TextValue;
|
|
15
|
+
};
|
|
16
|
+
export type TextClosePropsInclude = {
|
|
5
17
|
/** Close text/ Текст закрытия */
|
|
6
18
|
textClose?: TextValue;
|
|
7
|
-
}
|
|
8
|
-
export
|
|
19
|
+
};
|
|
20
|
+
export type TextCopiedClipboardPropsInclude = {
|
|
9
21
|
/** Copied to the clipboard text/ Текст о копировании в буфер обмена */
|
|
10
22
|
textCopiedClipboard?: TextValue;
|
|
11
|
-
}
|
|
12
|
-
export
|
|
23
|
+
};
|
|
24
|
+
export type TextDecrementPropsInclude = {
|
|
25
|
+
/** Text for decreasing value/ Текст для уменьшения значения */
|
|
26
|
+
textDecrement?: TextValue;
|
|
27
|
+
};
|
|
28
|
+
export type TextEntriesMatchPropsInclude = {
|
|
13
29
|
/** Text entries match/ Текст о несовпадении записей */
|
|
14
30
|
textEntriesMatch?: TextValue;
|
|
15
|
-
}
|
|
16
|
-
export
|
|
31
|
+
};
|
|
32
|
+
export type TextHidePropsInclude = {
|
|
33
|
+
/** Hide text/ Текст скрытия */
|
|
34
|
+
textHide?: TextValue;
|
|
35
|
+
};
|
|
36
|
+
export type TextIncrementPropsInclude = {
|
|
37
|
+
/** Text for increasing value/ Текст для увеличения значения */
|
|
38
|
+
textIncrement?: TextValue;
|
|
39
|
+
};
|
|
40
|
+
export type TextLoadingPropsInclude = {
|
|
41
|
+
/** Loading text/ Текст загрузки */
|
|
42
|
+
textLoading?: TextValue;
|
|
43
|
+
};
|
|
44
|
+
export type TextNextPropsInclude = {
|
|
45
|
+
/** Next text/ Текст следующего */
|
|
46
|
+
textNext?: TextValue;
|
|
47
|
+
};
|
|
48
|
+
export type TextOkPropsInclude = {
|
|
17
49
|
/** OK text/ Текст подтверждения */
|
|
18
50
|
textOk?: TextValue;
|
|
19
|
-
}
|
|
20
|
-
export
|
|
21
|
-
|
|
51
|
+
};
|
|
52
|
+
export type TextPreviousPropsInclude = {
|
|
53
|
+
/** Previous text/ Текст предыдущего */
|
|
54
|
+
textPrevious?: TextValue;
|
|
55
|
+
};
|
|
56
|
+
export type TextShowPropsInclude = {
|
|
57
|
+
/** Show text/ Текст показа */
|
|
58
|
+
textShow?: TextValue;
|
|
59
|
+
};
|
|
60
|
+
export type TextAllPropsInclude = TextCancelPropsInclude & TextCharacterLimitPropsInclude & TextCharacterRemainingPropsInclude & TextClosePropsInclude & TextCopiedClipboardPropsInclude & TextDecrementPropsInclude & TextEntriesMatchPropsInclude & TextHidePropsInclude & TextIncrementPropsInclude & TextLoadingPropsInclude & TextNextPropsInclude & TextOkPropsInclude & TextPreviousPropsInclude & TextShowPropsInclude;
|