@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/window.js
CHANGED
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
var
|
|
2
|
-
var
|
|
3
|
-
var i = (h, t, e) =>
|
|
4
|
-
import { h as p, computed as m, ref as v, watch as f, onMounted as
|
|
5
|
-
import { toBind as
|
|
6
|
-
import { A as w } from "./AriaStaticInclude-
|
|
7
|
-
import { M as
|
|
8
|
-
import { T as
|
|
9
|
-
import { T as
|
|
10
|
-
import { a as c, _ as
|
|
11
|
-
import { W as
|
|
12
|
-
import { W as
|
|
13
|
-
import { W as
|
|
14
|
-
class
|
|
1
|
+
var V = Object.defineProperty;
|
|
2
|
+
var G = (h, t, e) => t in h ? V(h, t, { enumerable: !0, configurable: !0, writable: !0, value: e }) : h[t] = e;
|
|
3
|
+
var i = (h, t, e) => G(h, typeof t != "symbol" ? t + "" : t, e);
|
|
4
|
+
import { h as p, computed as m, ref as v, watch as f, onMounted as K, onUnmounted as j, Teleport as Z } from "vue";
|
|
5
|
+
import { toBind as z, getBind as J, getRef as Q, executePromise as y, getElement as k, isDomRuntime as B, EventItem as I, setRef as tt, frame as et, isEnter as st, getMouseClientX as it, getMouseClientY as nt, DesignConstructorAbstract as ot } from "@dxtmisha/functional";
|
|
6
|
+
import { A as w } from "./AriaStaticInclude-CAURwJMb.js";
|
|
7
|
+
import { M as rt } from "./ModelInclude-BiYm_iCQ.js";
|
|
8
|
+
import { T as ht } from "./TabIndexInclude-xcSFV8yP.js";
|
|
9
|
+
import { T as at } from "./TextInclude--GERRCGj.js";
|
|
10
|
+
import { a as c, _ as b, b as lt } from "./WindowClassesInclude-B56usxgx.js";
|
|
11
|
+
import { W as _t } from "./WindowClassesInclude-B56usxgx.js";
|
|
12
|
+
import { W as ct } from "./WindowEsc-DTwn4Vsz.js";
|
|
13
|
+
import { W as Ut } from "./WindowInclude-BWm4-0Gh.js";
|
|
14
|
+
class dt {
|
|
15
15
|
/**
|
|
16
16
|
* Constructor
|
|
17
17
|
* @param props input parameter/ входной параметр
|
|
@@ -31,7 +31,7 @@ class q {
|
|
|
31
31
|
if (this.components) {
|
|
32
32
|
const o = this.components.renderOne(
|
|
33
33
|
"scrollbar",
|
|
34
|
-
|
|
34
|
+
z(
|
|
35
35
|
{
|
|
36
36
|
tag: t,
|
|
37
37
|
class: `${this.className}__scrollbar`,
|
|
@@ -84,7 +84,7 @@ class q {
|
|
|
84
84
|
};
|
|
85
85
|
}
|
|
86
86
|
}
|
|
87
|
-
class
|
|
87
|
+
class ut {
|
|
88
88
|
/**
|
|
89
89
|
* Constructor for working with images.
|
|
90
90
|
*
|
|
@@ -102,7 +102,7 @@ class U {
|
|
|
102
102
|
/**
|
|
103
103
|
* Возвращает данные для передачи компоненту/ Returns data to pass to the component
|
|
104
104
|
*/
|
|
105
|
-
i(this, "bind", m(() =>
|
|
105
|
+
i(this, "bind", m(() => J(this.props.image, Q(this.extra), "value")));
|
|
106
106
|
this.props = t, this.components = e, this.emits = s, this.extra = n;
|
|
107
107
|
}
|
|
108
108
|
render() {
|
|
@@ -114,7 +114,7 @@ class U {
|
|
|
114
114
|
}
|
|
115
115
|
}
|
|
116
116
|
const g = -1;
|
|
117
|
-
class
|
|
117
|
+
class pt {
|
|
118
118
|
constructor(t) {
|
|
119
119
|
i(this, "x", g);
|
|
120
120
|
i(this, "y", g);
|
|
@@ -202,7 +202,7 @@ class V {
|
|
|
202
202
|
return this;
|
|
203
203
|
}
|
|
204
204
|
}
|
|
205
|
-
class
|
|
205
|
+
class gt {
|
|
206
206
|
/**
|
|
207
207
|
* Constructor
|
|
208
208
|
* @param props input data/ входные данные
|
|
@@ -269,7 +269,7 @@ class G {
|
|
|
269
269
|
return this.props.closing ? await y(this.props.closing) : !1;
|
|
270
270
|
}
|
|
271
271
|
}
|
|
272
|
-
class
|
|
272
|
+
class mt {
|
|
273
273
|
/**
|
|
274
274
|
* Constructor
|
|
275
275
|
* @param classes an object for working with classes and searching for elements/ объект для работы с классами и поиском элементов
|
|
@@ -337,7 +337,7 @@ class j {
|
|
|
337
337
|
return this.classes.findBodyContext();
|
|
338
338
|
}
|
|
339
339
|
}
|
|
340
|
-
class
|
|
340
|
+
class ft {
|
|
341
341
|
/**
|
|
342
342
|
* Constructor
|
|
343
343
|
* @param element an object of the class for working with elements/ объект класса для работы с элементами
|
|
@@ -432,7 +432,7 @@ class Z {
|
|
|
432
432
|
}
|
|
433
433
|
}
|
|
434
434
|
}
|
|
435
|
-
class
|
|
435
|
+
class yt {
|
|
436
436
|
/**
|
|
437
437
|
* Constructor
|
|
438
438
|
* @param props input data/ входные данные
|
|
@@ -480,7 +480,7 @@ class z {
|
|
|
480
480
|
(t = this.element.getMain()) == null || t.removeEventListener("animationend", this.onTransitionend);
|
|
481
481
|
}
|
|
482
482
|
}
|
|
483
|
-
class
|
|
483
|
+
class wt {
|
|
484
484
|
/**
|
|
485
485
|
* Constructor
|
|
486
486
|
* @param props input data/ входные данные
|
|
@@ -525,7 +525,7 @@ class K {
|
|
|
525
525
|
return this.control = ((e = t == null ? void 0 : t.closest(`.${this.classes.list.control}`)) == null ? void 0 : e.dataset.window) === this.classes.getId(), this;
|
|
526
526
|
}
|
|
527
527
|
}
|
|
528
|
-
class
|
|
528
|
+
class vt {
|
|
529
529
|
/**
|
|
530
530
|
* Constructor
|
|
531
531
|
* @param classes an object for working with classes and searching for elements/ объект для работы с классами и поиском элементов
|
|
@@ -693,7 +693,7 @@ class J {
|
|
|
693
693
|
return o < this.padding ? "0px" : t + s >= this.innerHeight - this.padding ? `${n}px` : `${o}px`;
|
|
694
694
|
}
|
|
695
695
|
}
|
|
696
|
-
class
|
|
696
|
+
class bt {
|
|
697
697
|
/**
|
|
698
698
|
* Constructor
|
|
699
699
|
* @param props input data/ входные данные
|
|
@@ -763,22 +763,22 @@ class Q {
|
|
|
763
763
|
var e, s, n;
|
|
764
764
|
const t = this.element.getBodyContext();
|
|
765
765
|
if (this.isOver() && this.props.overElement && t && t.scrollHeight > t.offsetHeight) {
|
|
766
|
-
const o = (e =
|
|
766
|
+
const o = (e = k(this.props.overElement)) == null ? void 0 : e.getBoundingClientRect(), r = (s = this.element.getBody()) == null ? void 0 : s.getBoundingClientRect(), a = t == null ? void 0 : t.getBoundingClientRect(), l = (n = this.element.getControl()) == null ? void 0 : n.getBoundingClientRect();
|
|
767
767
|
if (t && o && r && a) {
|
|
768
|
-
const
|
|
768
|
+
const d = o.height / 2, u = o.top - a.top;
|
|
769
769
|
if (l && this.coordinates.getMaxHeight() === r.height) {
|
|
770
|
-
if (l.top +
|
|
771
|
-
t.scrollTop +=
|
|
770
|
+
if (l.top + d < r.top) {
|
|
771
|
+
t.scrollTop += u;
|
|
772
772
|
return;
|
|
773
773
|
}
|
|
774
|
-
if (l.bottom -
|
|
775
|
-
t.scrollTop +=
|
|
774
|
+
if (l.bottom - d > r.bottom) {
|
|
775
|
+
t.scrollTop += u - a.height + o.height;
|
|
776
776
|
return;
|
|
777
777
|
}
|
|
778
|
-
t.scrollTop +=
|
|
778
|
+
t.scrollTop += u - (l.top - a.top) - l.height / 2 + d;
|
|
779
779
|
return;
|
|
780
780
|
}
|
|
781
|
-
t.scrollTop +=
|
|
781
|
+
t.scrollTop += u - a.height / 2 + d;
|
|
782
782
|
}
|
|
783
783
|
}
|
|
784
784
|
}
|
|
@@ -788,7 +788,7 @@ class Q {
|
|
|
788
788
|
* Обновляет статус отображения скролла у элемента.
|
|
789
789
|
*/
|
|
790
790
|
updateBody() {
|
|
791
|
-
if (
|
|
791
|
+
if (B()) {
|
|
792
792
|
const t = document.body, e = t.offsetHeight > window.innerHeight ? "scroll" : "none";
|
|
793
793
|
t.dataset.scroll !== e && (t.dataset.scroll = e);
|
|
794
794
|
}
|
|
@@ -823,10 +823,10 @@ class Q {
|
|
|
823
823
|
var o, r;
|
|
824
824
|
const s = (e - t) / 2;
|
|
825
825
|
if (this.props.overElement) {
|
|
826
|
-
const a = (o =
|
|
826
|
+
const a = (o = k(this.props.overElement)) == null ? void 0 : o.getBoundingClientRect(), l = (r = this.element.getBody()) == null ? void 0 : r.getBoundingClientRect();
|
|
827
827
|
if (a && l) {
|
|
828
|
-
const
|
|
829
|
-
return e -
|
|
828
|
+
const d = a.top - l.top, u = a.height / 2;
|
|
829
|
+
return e - d - u - s;
|
|
830
830
|
}
|
|
831
831
|
}
|
|
832
832
|
const n = this.coordinates.getHeight() / 2;
|
|
@@ -913,7 +913,7 @@ class Q {
|
|
|
913
913
|
return t < r ? r : t + n <= o - r ? t : o - n - r;
|
|
914
914
|
}
|
|
915
915
|
}
|
|
916
|
-
class
|
|
916
|
+
class Ct {
|
|
917
917
|
/**
|
|
918
918
|
* Constructor
|
|
919
919
|
* @param client object for working with mouse pointer coordinates/ объект для работы с координатами указателя мыши
|
|
@@ -950,7 +950,7 @@ class tt {
|
|
|
950
950
|
const t = this.element.getMain();
|
|
951
951
|
if (this.client.update(), !this.client.is())
|
|
952
952
|
this.x = 0, this.y = 0;
|
|
953
|
-
else if (t && getComputedStyle(t).getPropertyValue(
|
|
953
|
+
else if (t && getComputedStyle(t).getPropertyValue(b).includes("--MENU--")) {
|
|
954
954
|
const e = this.element.getBodyRect();
|
|
955
955
|
e && (this.x = this.client.getShiftX(e.left), this.y = this.client.getShiftY(e.top));
|
|
956
956
|
} else
|
|
@@ -966,7 +966,7 @@ class tt {
|
|
|
966
966
|
return this.x = null, this.y = null, this;
|
|
967
967
|
}
|
|
968
968
|
}
|
|
969
|
-
class
|
|
969
|
+
class xt {
|
|
970
970
|
/**
|
|
971
971
|
* Constructor
|
|
972
972
|
* @param props input data/ входные данные
|
|
@@ -982,7 +982,7 @@ class et {
|
|
|
982
982
|
* Вызываемая функция при срабатывании события.
|
|
983
983
|
*/
|
|
984
984
|
i(this, "listener", () => {
|
|
985
|
-
|
|
985
|
+
tt(this.item, this.isStatic());
|
|
986
986
|
});
|
|
987
987
|
/**
|
|
988
988
|
* Performs status check and activates events when turned on.
|
|
@@ -1008,7 +1008,7 @@ class et {
|
|
|
1008
1008
|
* Стартует событие слежения за статусами.
|
|
1009
1009
|
*/
|
|
1010
1010
|
start() {
|
|
1011
|
-
this.event || (this.event = new
|
|
1011
|
+
this.event || (this.event = new I(window, ["resize"], this.listener)), this.event.start();
|
|
1012
1012
|
}
|
|
1013
1013
|
/**
|
|
1014
1014
|
* Restores the data to its previous state.
|
|
@@ -1025,10 +1025,10 @@ class et {
|
|
|
1025
1025
|
*/
|
|
1026
1026
|
isStatic() {
|
|
1027
1027
|
const t = this.element.getMain();
|
|
1028
|
-
return !!(t && getComputedStyle(t).getPropertyValue(
|
|
1028
|
+
return !!(t && getComputedStyle(t).getPropertyValue(b).includes("--STATIC--"));
|
|
1029
1029
|
}
|
|
1030
1030
|
}
|
|
1031
|
-
class
|
|
1031
|
+
class Bt {
|
|
1032
1032
|
/**
|
|
1033
1033
|
* Constructor
|
|
1034
1034
|
* @param classes an object for working with classes and searching for elements/ объект для работы с классами и поиском элементов
|
|
@@ -1063,7 +1063,7 @@ class st {
|
|
|
1063
1063
|
};
|
|
1064
1064
|
}
|
|
1065
1065
|
}
|
|
1066
|
-
class
|
|
1066
|
+
class Mt {
|
|
1067
1067
|
/**
|
|
1068
1068
|
* Constructor
|
|
1069
1069
|
* @param element an object of the class for working with elements/ объект класса для работы с элементами
|
|
@@ -1098,7 +1098,7 @@ class it {
|
|
|
1098
1098
|
}
|
|
1099
1099
|
}
|
|
1100
1100
|
}
|
|
1101
|
-
class
|
|
1101
|
+
class kt {
|
|
1102
1102
|
/**
|
|
1103
1103
|
* Constructor
|
|
1104
1104
|
* @param props input data/ входные данные
|
|
@@ -1114,7 +1114,7 @@ class nt {
|
|
|
1114
1114
|
* @param emit the function is called when an event is triggered/ функция вызывается, когда срабатывает событие
|
|
1115
1115
|
* @param styles an object for working with the styles of an element/ объект для работы со стилями элемента
|
|
1116
1116
|
*/
|
|
1117
|
-
constructor(t, e, s, n, o, r, a, l,
|
|
1117
|
+
constructor(t, e, s, n, o, r, a, l, d, u, C, x) {
|
|
1118
1118
|
i(this, "item", v(!1));
|
|
1119
1119
|
i(this, "first", v(!1));
|
|
1120
1120
|
i(this, "clicks", 0);
|
|
@@ -1158,15 +1158,15 @@ class nt {
|
|
|
1158
1158
|
this.status.update(), await this.hook.preparation(), await this.watchPosition(), this.styles.updateType(!0), requestAnimationFrame(async () => {
|
|
1159
1159
|
this.position.updateScroll(), this.status.toPreparation(), requestAnimationFrame(async () => {
|
|
1160
1160
|
this.flash.isClose() ? this.status.toFlash() : this.status.toOpen(), requestAnimationFrame(() => {
|
|
1161
|
-
this.hook.opening(), this.resetClicks(), this.tabIndex.goTo();
|
|
1161
|
+
this.hook.opening(), this.resetClicks(), this.props.embedded || this.tabIndex.goTo();
|
|
1162
1162
|
}), this.emit.on(this.item.value);
|
|
1163
1163
|
});
|
|
1164
1164
|
});
|
|
1165
1165
|
})) : (this.client.reset(), this.flash.isOpen() ? this.toClose() : requestAnimationFrame(() => {
|
|
1166
1166
|
this.status.toHide(), this.resetClicks();
|
|
1167
|
-
})
|
|
1167
|
+
})));
|
|
1168
1168
|
});
|
|
1169
|
-
this.props = t, this.client = e, this.hook = s, this.element = n, this.tabIndex = o, this.status = r, this.flash = a, this.coordinates = l, this.position =
|
|
1169
|
+
this.props = t, this.client = e, this.hook = s, this.element = n, this.tabIndex = o, this.status = r, this.flash = a, this.coordinates = l, this.position = d, this.origin = u, this.emit = C, this.styles = x;
|
|
1170
1170
|
}
|
|
1171
1171
|
/**
|
|
1172
1172
|
* Checks if the window is open.
|
|
@@ -1214,7 +1214,7 @@ class nt {
|
|
|
1214
1214
|
* Метод обновляет текущее положение.
|
|
1215
1215
|
*/
|
|
1216
1216
|
async watchPosition() {
|
|
1217
|
-
this.item.value && this.element.isMain() ? (this.position.update(), this.position.updateBody(), this.origin.update(), this.styles.update(), this.watchCoordinates()) : this.reset();
|
|
1217
|
+
this.item.value && this.element.isMain() ? (this.position.update(), this.position.updateBody(), this.styles.update(), this.origin.update(), this.styles.update(), this.watchCoordinates()) : this.reset();
|
|
1218
1218
|
}
|
|
1219
1219
|
/**
|
|
1220
1220
|
* Changes values and triggers events.
|
|
@@ -1231,11 +1231,11 @@ class nt {
|
|
|
1231
1231
|
* Изменение расположения окна меню.
|
|
1232
1232
|
*/
|
|
1233
1233
|
watchCoordinates() {
|
|
1234
|
-
return
|
|
1234
|
+
return et(
|
|
1235
1235
|
() => {
|
|
1236
1236
|
const t = this.element.getMain();
|
|
1237
1237
|
if (t) {
|
|
1238
|
-
const e = getComputedStyle(t).getPropertyValue(
|
|
1238
|
+
const e = getComputedStyle(t).getPropertyValue(b).includes("--MENU--");
|
|
1239
1239
|
e && this.position.update() && this.styles.update(), this.styles.updateType(e);
|
|
1240
1240
|
}
|
|
1241
1241
|
},
|
|
@@ -1249,11 +1249,11 @@ class nt {
|
|
|
1249
1249
|
*/
|
|
1250
1250
|
toClose() {
|
|
1251
1251
|
setTimeout(async () => {
|
|
1252
|
-
await this.setOpen(!1), await this.hook.closing(), this.resetClicks(), this.emit.on(this.item.value);
|
|
1252
|
+
await this.setOpen(!1), await this.hook.closing(), this.resetClicks(), this.tabIndex.reset(), this.emit.on(this.item.value);
|
|
1253
1253
|
}, 48), this.status.toClose();
|
|
1254
1254
|
}
|
|
1255
1255
|
}
|
|
1256
|
-
class
|
|
1256
|
+
class It {
|
|
1257
1257
|
/**
|
|
1258
1258
|
* Constructor
|
|
1259
1259
|
* @param props input data/ входные данные
|
|
@@ -1275,7 +1275,7 @@ class ot {
|
|
|
1275
1275
|
* @param target the selected window/ выбранное окно
|
|
1276
1276
|
*/
|
|
1277
1277
|
async update(t) {
|
|
1278
|
-
if (!this.open.isClicks() && (this.target = t, this.focus = this.getFocus(), !!
|
|
1278
|
+
if (!this.open.isClicks() && (this.target = t, this.focus = this.getFocus(), !!B() && this.isTargetInBody() && !this.staticMode.item.value))
|
|
1279
1279
|
if (this.open.pressed(), this.open.item.value) {
|
|
1280
1280
|
if (this.isOpenOnly() || this.isBlockOther())
|
|
1281
1281
|
return;
|
|
@@ -1411,8 +1411,8 @@ class ot {
|
|
|
1411
1411
|
*/
|
|
1412
1412
|
isMenu(t = this.element.getMain()) {
|
|
1413
1413
|
if (t) {
|
|
1414
|
-
const s = getComputedStyle(t).getPropertyValue(
|
|
1415
|
-
return s
|
|
1414
|
+
const s = getComputedStyle(t).getPropertyValue(b);
|
|
1415
|
+
return s.includes("--MENU--") || s.includes("--MENU-WINDOW--");
|
|
1416
1416
|
}
|
|
1417
1417
|
return !1;
|
|
1418
1418
|
}
|
|
@@ -1425,17 +1425,18 @@ class ot {
|
|
|
1425
1425
|
return !!this.getTarget().closest(`.${this.classes.list.controlOpenOnly}`);
|
|
1426
1426
|
}
|
|
1427
1427
|
}
|
|
1428
|
-
class
|
|
1428
|
+
class St {
|
|
1429
1429
|
/**
|
|
1430
1430
|
* Constructor
|
|
1431
1431
|
* @param props input data/ входные данные
|
|
1432
|
+
* @param tabIndex class object for working with tab indices/ объект класса для работы с табуляцией
|
|
1432
1433
|
* @param status object for working with statuses/ объект для работы со статусами
|
|
1433
1434
|
* @param client object for working with mouse pointer coordinates/ объект для работы с координатами указателя мыши
|
|
1434
1435
|
* @param flash class object for working with fast window opening/ объект класса для работы с быстрым открытием окна
|
|
1435
1436
|
* @param open the class object for working with the status of closing or opening the window/ объект класса для работы со статусом закрытия или открытия окна
|
|
1436
1437
|
* @param verification an object for working with the check for changing the status of opening or closing/ объект для работы с проверкой изменения статуса открытия или закрытия
|
|
1437
1438
|
*/
|
|
1438
|
-
constructor(t, e, s, n, o, r) {
|
|
1439
|
+
constructor(t, e, s, n, o, r, a) {
|
|
1439
1440
|
i(this, "event");
|
|
1440
1441
|
/**
|
|
1441
1442
|
* Events of pressing a control element.
|
|
@@ -1446,6 +1447,15 @@ class rt {
|
|
|
1446
1447
|
i(this, "onClick", async (t) => {
|
|
1447
1448
|
this.props.contextmenu || await this.on(t);
|
|
1448
1449
|
});
|
|
1450
|
+
/**
|
|
1451
|
+
* Events of pressing a key.
|
|
1452
|
+
*
|
|
1453
|
+
* События нажатия на клавишу.
|
|
1454
|
+
* @param event event object/ объект события
|
|
1455
|
+
*/
|
|
1456
|
+
i(this, "onKeydown", async (t) => {
|
|
1457
|
+
(st(t) || this.isArrowDown(t)) && (t.preventDefault(), await this.onClick(t));
|
|
1458
|
+
});
|
|
1449
1459
|
/**
|
|
1450
1460
|
* Events of pressing the right mouse button on a control element.
|
|
1451
1461
|
*
|
|
@@ -1470,7 +1480,7 @@ class rt {
|
|
|
1470
1480
|
i(this, "onGlobal", async (t) => {
|
|
1471
1481
|
(!t || t.type === "click" && (!this.props.contextmenu || this.open.item.value) || t.type === "contextmenu" && this.props.contextmenu) && (this.open.item.value ? (this.flash.setControl(t == null ? void 0 : t.target), await this.verification.update(t == null ? void 0 : t.target)) : this.event.stop());
|
|
1472
1482
|
});
|
|
1473
|
-
this.props = t, this.
|
|
1483
|
+
this.props = t, this.tabIndex = e, this.status = s, this.client = n, this.flash = o, this.open = r, this.verification = a, this.event = new I(
|
|
1474
1484
|
"body",
|
|
1475
1485
|
["click", "contextmenu"],
|
|
1476
1486
|
this.onGlobal
|
|
@@ -1488,7 +1498,7 @@ class rt {
|
|
|
1488
1498
|
* Стартует прослушивание глобальных событий.
|
|
1489
1499
|
*/
|
|
1490
1500
|
start() {
|
|
1491
|
-
return this.event.start(), this;
|
|
1501
|
+
return this.props.embedded || this.event.start(), this;
|
|
1492
1502
|
}
|
|
1493
1503
|
/**
|
|
1494
1504
|
* Stop the global event.
|
|
@@ -1506,6 +1516,15 @@ class rt {
|
|
|
1506
1516
|
toggle() {
|
|
1507
1517
|
return this.open.item.value && this.status.isOpen() ? this.start() : this.stop(), this;
|
|
1508
1518
|
}
|
|
1519
|
+
/**
|
|
1520
|
+
* Checks if the down arrow key is pressed.
|
|
1521
|
+
*
|
|
1522
|
+
* Проверяет, нажата ли стрелка вниз.
|
|
1523
|
+
* @param event event object/ объект события
|
|
1524
|
+
*/
|
|
1525
|
+
isArrowDown(t) {
|
|
1526
|
+
return !!(this.props.openOnArrowDown && (t.code === "ArrowDown" || t.key === "ArrowDown" || t.key === "Down" || t.keyCode === 40));
|
|
1527
|
+
}
|
|
1509
1528
|
/**
|
|
1510
1529
|
* Event activation.
|
|
1511
1530
|
*
|
|
@@ -1513,24 +1532,26 @@ class rt {
|
|
|
1513
1532
|
* @param event event object/ объект события
|
|
1514
1533
|
*/
|
|
1515
1534
|
async on(t) {
|
|
1516
|
-
this.client.set(
|
|
1517
|
-
|
|
1518
|
-
|
|
1535
|
+
this.tabIndex.updateOldElement(), this.client.set(
|
|
1536
|
+
it(t),
|
|
1537
|
+
nt(t)
|
|
1519
1538
|
), await this.verification.update(t.target);
|
|
1520
1539
|
}
|
|
1521
1540
|
}
|
|
1522
|
-
class
|
|
1541
|
+
class Wt {
|
|
1523
1542
|
/**
|
|
1524
1543
|
* Constructor
|
|
1544
|
+
* @param props input data / входные данные
|
|
1525
1545
|
* @param classes an object for working with class names / объект для работы с названиями классов
|
|
1546
|
+
* @param staticMode class object for working with static status / объект класса для работы со статическим статусом
|
|
1526
1547
|
* @param open an object for working with the open state of the window / объект для работы с состоянием открытия окна
|
|
1527
1548
|
*/
|
|
1528
|
-
constructor(t, e) {
|
|
1549
|
+
constructor(t, e, s, n) {
|
|
1529
1550
|
i(this, "elements", []);
|
|
1530
|
-
this.
|
|
1551
|
+
this.props = t, this.classes = e, this.staticMode = s, this.open = n, f(
|
|
1531
1552
|
this.open.item,
|
|
1532
|
-
(
|
|
1533
|
-
|
|
1553
|
+
(o) => {
|
|
1554
|
+
this.props.embedded || this.staticMode.item.value || (o ? this.toHidden() : this.toShow());
|
|
1534
1555
|
},
|
|
1535
1556
|
{
|
|
1536
1557
|
immediate: !0
|
|
@@ -1555,7 +1576,7 @@ class ht {
|
|
|
1555
1576
|
* Находит все элементы вне окна, которые нужно скрыть.
|
|
1556
1577
|
*/
|
|
1557
1578
|
findElements() {
|
|
1558
|
-
if (
|
|
1579
|
+
if (B()) {
|
|
1559
1580
|
const t = this.classes.getId();
|
|
1560
1581
|
return document.querySelectorAll(
|
|
1561
1582
|
`body > *:not([data-window-teleport="${t}"]):not(.${t}):not(script):not(style)`
|
|
@@ -1589,7 +1610,7 @@ class ht {
|
|
|
1589
1610
|
}), this.elements = [];
|
|
1590
1611
|
}
|
|
1591
1612
|
}
|
|
1592
|
-
class
|
|
1613
|
+
class Tt {
|
|
1593
1614
|
/**
|
|
1594
1615
|
* Constructor
|
|
1595
1616
|
* @param props input data/ входные данные
|
|
@@ -1600,8 +1621,31 @@ class at {
|
|
|
1600
1621
|
* @param components object for working with components/ объект для работы с компонентами
|
|
1601
1622
|
* @param slots object for working with slots/ объект для работы со слотами
|
|
1602
1623
|
* @param emits the function is called when an event is triggered/ функция вызывается, когда срабатывает событие
|
|
1603
|
-
|
|
1604
|
-
|
|
1624
|
+
* @param WindowClassesConstructor class for working with window classes/ класс для работы с классами окна
|
|
1625
|
+
* @param WindowClientConstructor class for working with window client/ класс для работы с клиентом окна
|
|
1626
|
+
* @param WindowCoordinatesConstructor class for working with coordinates/ класс для работы с координатами
|
|
1627
|
+
* @param WindowElementConstructor class for working with window elements/ класс для работы с элементами окна
|
|
1628
|
+
* @param WindowEmitConstructor class for working with emits/ класс для работы с событиями
|
|
1629
|
+
* @param WindowEscConstructor class for working with escape key/ класс для работы с клавишей Escape
|
|
1630
|
+
* @param WindowEventConstructor class for working with events/ класс для работы с событиями
|
|
1631
|
+
* @param WindowFlashConstructor class for working with flash animation/ класс для работы с анимацией вспышки
|
|
1632
|
+
* @param WindowHiddenConstructor class for working with hidden elements/ класс для работы со скрытыми элементами
|
|
1633
|
+
* @param WindowHookConstructor class for working with window hooks/ класс для работы с хуками окна
|
|
1634
|
+
* @param WindowOpenConstructor class for working with open state/ класс для работы с состоянием открытия
|
|
1635
|
+
* @param WindowOriginConstructor class for working with origin/ класс для работы с точкой начала
|
|
1636
|
+
* @param WindowPersistentConstructor class for working with persistent state/ класс для работы с постоянным состоянием
|
|
1637
|
+
* @param WindowPositionConstructor class for working with position/ класс для работы с позицией
|
|
1638
|
+
* @param WindowStaticConstructor class for working with static mode/ класс для работы со статическим режимом
|
|
1639
|
+
* @param WindowStatusConstructor class for working with window status/ класс для работы со статусом окна
|
|
1640
|
+
* @param WindowStylesConstructor class for working with styles/ класс для работы со стилями
|
|
1641
|
+
* @param WindowVerificationConstructor class for working with verification/ класс для работы с проверкой
|
|
1642
|
+
* @param ImageConstructor class for working with image/ класс для работы с изображением
|
|
1643
|
+
* @param ModelConstructor class for working with model/ класс для работы с моделью
|
|
1644
|
+
* @param ScrollbarConstructor class for working with scrollbar/ класс для работы со скроллбаром
|
|
1645
|
+
* @param TabIndexConstructor class for working with tab index/ класс для работы с индексом табуляции
|
|
1646
|
+
* @param TextConstructor class for working with text/ класс для работы с текстом
|
|
1647
|
+
*/
|
|
1648
|
+
constructor(t, e, s, n, o, r, a, l, d = lt, u = pt, C = vt, x = mt, S = Bt, W = ct, T = St, O = wt, E = Wt, H = gt, A = kt, D = Ct, $ = yt, N = bt, P = xt, R = ft, L = Mt, Y = It, F = ut, X = rt, _ = dt, q = ht, U = at) {
|
|
1605
1649
|
/** Client instance for window management/ Экземпляр клиента для управления окном */
|
|
1606
1650
|
i(this, "client");
|
|
1607
1651
|
/** Hook instance for window events/ Экземпляр хука для событий окна */
|
|
@@ -1650,14 +1694,16 @@ class at {
|
|
|
1650
1694
|
class: this.classes.list.controlId,
|
|
1651
1695
|
open: this.open.item,
|
|
1652
1696
|
onclick: this.event.onClick,
|
|
1697
|
+
onKeydown: this.event.onKeydown,
|
|
1653
1698
|
oncontextmenu: this.event.onContextmenu,
|
|
1654
1699
|
binds: {
|
|
1655
1700
|
class: this.classes.list.controlId,
|
|
1656
1701
|
onclick: this.event.onClick,
|
|
1702
|
+
onKeydown: this.event.onKeydown,
|
|
1657
1703
|
oncontextmenu: this.event.onContextmenu,
|
|
1658
1704
|
...w.control(
|
|
1659
1705
|
this.classes.getControlId(),
|
|
1660
|
-
this.classes.getId(),
|
|
1706
|
+
this.open.inDom.value ? this.classes.getId() : void 0,
|
|
1661
1707
|
this.props.ariaHaspopup,
|
|
1662
1708
|
this.open.item.value
|
|
1663
1709
|
)
|
|
@@ -1670,7 +1716,8 @@ class at {
|
|
|
1670
1716
|
*/
|
|
1671
1717
|
i(this, "classesList", m(() => ({
|
|
1672
1718
|
[this.classes.getId()]: !0,
|
|
1673
|
-
[`${this.className}--staticMode`]: this.staticMode.item.value
|
|
1719
|
+
[`${this.className}--staticMode`]: this.staticMode.item.value,
|
|
1720
|
+
[`${this.className}--embedded`]: !!this.props.embedded
|
|
1674
1721
|
})));
|
|
1675
1722
|
/**
|
|
1676
1723
|
* Restores the data to its previous state.
|
|
@@ -1680,15 +1727,17 @@ class at {
|
|
|
1680
1727
|
i(this, "stop", () => {
|
|
1681
1728
|
this.event.stop(), this.staticMode.stop();
|
|
1682
1729
|
});
|
|
1683
|
-
this.props = t, this.refs = e, this.classDesign = n, this.className = o, this.components = r, this.slots = a, this.emits = l, this.hook = new
|
|
1684
|
-
() => this.element.getBody()
|
|
1685
|
-
|
|
1730
|
+
this.props = t, this.refs = e, this.classDesign = n, this.className = o, this.components = r, this.slots = a, this.emits = l, this.hook = new H(t), this.classes = new d(o), this.element = new x(this.classes, s), this.client = new u(this.element), this.tabIndex = new q(
|
|
1731
|
+
() => this.element.getBody(),
|
|
1732
|
+
void 0,
|
|
1733
|
+
() => !!this.props.autoTabIndex
|
|
1734
|
+
), this.status = new R(this.element), this.persistent = new $(t, this.classes, this.element), this.flash = new O(t, this.classes), this.coordinates = new C(this.classes, this.element), this.position = new N(t, this.client, this.element, this.coordinates), this.origin = new D(this.client, this.element, this.position), this.staticMode = new P(t, e, this.element), this.emit = new S(this.classes, this.element, l), this.styles = new L(
|
|
1686
1735
|
this.element,
|
|
1687
1736
|
this.coordinates,
|
|
1688
1737
|
this.position,
|
|
1689
1738
|
this.origin,
|
|
1690
1739
|
o
|
|
1691
|
-
), this.open = new
|
|
1740
|
+
), this.open = new A(
|
|
1692
1741
|
t,
|
|
1693
1742
|
this.client,
|
|
1694
1743
|
this.hook,
|
|
@@ -1701,59 +1750,71 @@ class at {
|
|
|
1701
1750
|
this.origin,
|
|
1702
1751
|
this.emit,
|
|
1703
1752
|
this.styles
|
|
1704
|
-
), this.verification = new
|
|
1753
|
+
), this.verification = new Y(
|
|
1705
1754
|
t,
|
|
1706
1755
|
this.persistent,
|
|
1707
1756
|
this.classes,
|
|
1708
1757
|
this.element,
|
|
1709
1758
|
this.staticMode,
|
|
1710
1759
|
this.open
|
|
1711
|
-
), this.event = new
|
|
1760
|
+
), this.event = new T(
|
|
1712
1761
|
t,
|
|
1762
|
+
this.tabIndex,
|
|
1713
1763
|
this.status,
|
|
1714
1764
|
this.client,
|
|
1715
1765
|
this.flash,
|
|
1716
1766
|
this.open,
|
|
1717
1767
|
this.verification
|
|
1718
|
-
), this.scrollbar = new
|
|
1768
|
+
), this.scrollbar = new _(
|
|
1719
1769
|
t,
|
|
1720
1770
|
o,
|
|
1721
1771
|
r,
|
|
1722
1772
|
l
|
|
1723
|
-
), this.image = new
|
|
1773
|
+
), this.image = new F(
|
|
1724
1774
|
t,
|
|
1725
1775
|
r,
|
|
1726
1776
|
l
|
|
1727
|
-
), this.esc = new
|
|
1777
|
+
), this.esc = new W(
|
|
1728
1778
|
this.open.item,
|
|
1729
1779
|
() => this.open.close(),
|
|
1730
|
-
() =>
|
|
1731
|
-
|
|
1780
|
+
() => {
|
|
1781
|
+
var M;
|
|
1782
|
+
return !this.props.persistent && ((M = this.props.closeOnEsc) != null ? M : !0);
|
|
1783
|
+
}
|
|
1784
|
+
), this.text = new U(this.props), this.hidden = new E(
|
|
1785
|
+
this.props,
|
|
1786
|
+
this.classes,
|
|
1787
|
+
this.staticMode,
|
|
1788
|
+
this.open
|
|
1789
|
+
), new X("open", this.emits, this.open.item), K(() => {
|
|
1732
1790
|
f([e.open], () => this.open.set(t.open), { immediate: !0 });
|
|
1733
|
-
}),
|
|
1791
|
+
}), j(this.stop);
|
|
1734
1792
|
}
|
|
1735
1793
|
/** Checks if the role is a menu/ Проверяет, является ли роль меню */
|
|
1736
1794
|
isMenu() {
|
|
1737
1795
|
return this.props.role === "menu" || this.props.role === "menuitemcheckbox" || this.props.role === "menuitemradio";
|
|
1738
1796
|
}
|
|
1739
1797
|
}
|
|
1740
|
-
const
|
|
1798
|
+
const Lt = {
|
|
1741
1799
|
indent: 4,
|
|
1742
1800
|
ariaHaspopup: "dialog",
|
|
1743
1801
|
role: "dialog",
|
|
1802
|
+
autoTabIndex: !0,
|
|
1803
|
+
closeOnEsc: !0,
|
|
1744
1804
|
// :default [!] System label / Системная метка
|
|
1745
1805
|
axis: "y",
|
|
1746
1806
|
imagePosition: "top",
|
|
1747
1807
|
overscroll: !0
|
|
1748
1808
|
};
|
|
1749
|
-
class
|
|
1809
|
+
class Yt extends ot {
|
|
1750
1810
|
/**
|
|
1751
1811
|
* Constructor
|
|
1752
1812
|
* @param name class name/ название класса
|
|
1753
1813
|
* @param props properties/ свойства
|
|
1754
1814
|
* @param options list of additional parameters/ список дополнительных параметров
|
|
1815
|
+
* @param ItemConstructor window item class/ класс элемента окна
|
|
1755
1816
|
*/
|
|
1756
|
-
constructor(e, s, n) {
|
|
1817
|
+
constructor(e, s, n, o = Tt) {
|
|
1757
1818
|
super(
|
|
1758
1819
|
e,
|
|
1759
1820
|
s,
|
|
@@ -1869,23 +1930,26 @@ class vt extends R {
|
|
|
1869
1930
|
* Свойства для главного элемента.
|
|
1870
1931
|
*/
|
|
1871
1932
|
i(this, "propsMain", m(() => {
|
|
1872
|
-
var
|
|
1873
|
-
|
|
1933
|
+
var s, n;
|
|
1934
|
+
const e = {
|
|
1874
1935
|
key: "main",
|
|
1875
1936
|
ref: this.element,
|
|
1876
|
-
class: (
|
|
1877
|
-
style: (
|
|
1937
|
+
class: (s = this.classes) == null ? void 0 : s.value.main,
|
|
1938
|
+
style: (n = this.styles) == null ? void 0 : n.value,
|
|
1878
1939
|
"data-window": this.item.classes.getId(),
|
|
1879
|
-
onTransitionend: this.item.event.onTransition
|
|
1940
|
+
onTransitionend: this.item.event.onTransition
|
|
1941
|
+
};
|
|
1942
|
+
return this.item.staticMode.isStaticMod() ? e : {
|
|
1943
|
+
...e,
|
|
1880
1944
|
...w.role(this.props.role),
|
|
1881
1945
|
...w.modal(
|
|
1882
|
-
!
|
|
1946
|
+
!0,
|
|
1883
1947
|
this.props.ariaLabelledby,
|
|
1884
1948
|
this.props.ariaDescribedby
|
|
1885
1949
|
)
|
|
1886
1950
|
};
|
|
1887
1951
|
}));
|
|
1888
|
-
this.item = new
|
|
1952
|
+
this.item = new o(
|
|
1889
1953
|
this.props,
|
|
1890
1954
|
this.refs,
|
|
1891
1955
|
this.element,
|
|
@@ -1946,9 +2010,9 @@ class vt extends R {
|
|
|
1946
2010
|
initRender() {
|
|
1947
2011
|
var s;
|
|
1948
2012
|
const e = [];
|
|
1949
|
-
return this.initSlot("control", e, this.item.slotData.value), this.item.open.inDom.value && (this.item.staticMode.item.value ? e.push(this.renderMain()) : e.push(
|
|
2013
|
+
return this.initSlot("control", e, this.item.slotData.value), this.item.open.inDom.value && (this.item.staticMode.item.value || this.props.embedded ? e.push(this.renderMain()) : e.push(
|
|
1950
2014
|
p(
|
|
1951
|
-
|
|
2015
|
+
Z,
|
|
1952
2016
|
{
|
|
1953
2017
|
key: "teleport",
|
|
1954
2018
|
to: "body"
|
|
@@ -1966,9 +2030,9 @@ class vt extends R {
|
|
|
1966
2030
|
}
|
|
1967
2031
|
}
|
|
1968
2032
|
export {
|
|
1969
|
-
|
|
1970
|
-
|
|
1971
|
-
|
|
1972
|
-
|
|
1973
|
-
|
|
2033
|
+
Tt as Window,
|
|
2034
|
+
_t as WindowClassesInclude,
|
|
2035
|
+
Yt as WindowDesign,
|
|
2036
|
+
Ut as WindowInclude,
|
|
2037
|
+
Lt as defaultsWindow
|
|
1974
2038
|
};
|