@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/arrow.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
var
|
|
2
|
-
var
|
|
3
|
-
var s = (n, t, e) =>
|
|
4
|
-
import { ref as u, watch as c, computed as l, onMounted as
|
|
5
|
-
import { isFilled as
|
|
6
|
-
import { A as
|
|
1
|
+
var I = Object.defineProperty;
|
|
2
|
+
var A = (n, t, e) => t in n ? I(n, t, { enumerable: !0, configurable: !0, writable: !0, value: e }) : n[t] = e;
|
|
3
|
+
var s = (n, t, e) => A(n, typeof t != "symbol" ? t + "" : t, e);
|
|
4
|
+
import { ref as u, watch as c, computed as l, onMounted as B, nextTick as f, onUnmounted as S, h as d } from "vue";
|
|
5
|
+
import { isFilled as w, isDomRuntime as p, isString as N, toNumber as E, EventRef as v, EventItem as P, DesignConstructorAbstract as C } from "@dxtmisha/functional";
|
|
6
|
+
import { A as k } from "./AriaStaticInclude-CAURwJMb.js";
|
|
7
7
|
import { A as Y } from "./ArrowInclude-CcpT637l.js";
|
|
8
8
|
class H {
|
|
9
9
|
/**
|
|
@@ -152,8 +152,8 @@ class L {
|
|
|
152
152
|
initElement() {
|
|
153
153
|
var e;
|
|
154
154
|
const t = this.props.elementTarget;
|
|
155
|
-
if (this.props.position === "auto" &&
|
|
156
|
-
return
|
|
155
|
+
if (this.props.position === "auto" && w(t) && p())
|
|
156
|
+
return N(t) ? (e = document.querySelector(t)) != null ? e : void 0 : t;
|
|
157
157
|
}
|
|
158
158
|
}
|
|
159
159
|
class M {
|
|
@@ -222,7 +222,7 @@ class M {
|
|
|
222
222
|
* Получить ширину границы в виде числа.
|
|
223
223
|
*/
|
|
224
224
|
getBorderRadius() {
|
|
225
|
-
return
|
|
225
|
+
return E(this.borderRadius.value);
|
|
226
226
|
}
|
|
227
227
|
/**
|
|
228
228
|
* Get computed styles of the parent element.
|
|
@@ -338,24 +338,24 @@ class O {
|
|
|
338
338
|
const t = this.elementItem.getRectBorder(), e = this.elementItem.getRectArrowLine();
|
|
339
339
|
if (t && e) {
|
|
340
340
|
const i = `M0,0 L0,${t.height} L${t.width},${t.height} L${t.width},0 Z`;
|
|
341
|
-
let r,
|
|
341
|
+
let r, a, h, m;
|
|
342
342
|
switch (this.direction.value) {
|
|
343
343
|
case o.TOP:
|
|
344
|
-
r = e.left - t.left,
|
|
344
|
+
r = e.left - t.left, a = 0, h = r + e.width, m = e.height;
|
|
345
345
|
break;
|
|
346
346
|
case o.BOTTOM:
|
|
347
|
-
r = e.left - t.left,
|
|
347
|
+
r = e.left - t.left, a = t.height - e.height, h = r + e.width, m = t.height;
|
|
348
348
|
break;
|
|
349
349
|
case o.LEFT:
|
|
350
|
-
r = 0,
|
|
350
|
+
r = 0, a = e.top - t.top, h = e.width, m = a + e.height;
|
|
351
351
|
break;
|
|
352
352
|
case o.RIGHT:
|
|
353
|
-
r = t.width - e.width,
|
|
353
|
+
r = t.width - e.width, a = e.top - t.top, h = t.width, m = a + e.height;
|
|
354
354
|
break;
|
|
355
355
|
default:
|
|
356
356
|
return;
|
|
357
357
|
}
|
|
358
|
-
const g = `M${r},${
|
|
358
|
+
const g = `M${r},${a} L${h},${a} L${h},${m} L${r},${m} Z`;
|
|
359
359
|
return `path('${i} ${g}')`;
|
|
360
360
|
}
|
|
361
361
|
}
|
|
@@ -370,7 +370,7 @@ class W {
|
|
|
370
370
|
* @param parent parent object / объект родителя
|
|
371
371
|
* @param position position object / объект позиции
|
|
372
372
|
*/
|
|
373
|
-
constructor(t, e, i, r,
|
|
373
|
+
constructor(t, e, i, r, a, h) {
|
|
374
374
|
s(this, "eventItem");
|
|
375
375
|
s(this, "eventTarget");
|
|
376
376
|
s(this, "eventBody");
|
|
@@ -392,9 +392,9 @@ class W {
|
|
|
392
392
|
s(this, "makeEvents", () => {
|
|
393
393
|
this.elementTarget.is() ? this.initEvents().startEvents() : this.stopEvents();
|
|
394
394
|
});
|
|
395
|
-
this.props = t, this.refs = e, this.element = i, this.elementTarget = r, this.parent =
|
|
396
|
-
await
|
|
397
|
-
}),
|
|
395
|
+
this.props = t, this.refs = e, this.element = i, this.elementTarget = r, this.parent = a, this.position = h, p() && (B(async () => {
|
|
396
|
+
await f(), c(this.elementTarget.element, this.makeEvents), c([...Object.values(this.refs)], this.update, { immediate: !0 });
|
|
397
|
+
}), S(() => {
|
|
398
398
|
this.stopEvents();
|
|
399
399
|
}));
|
|
400
400
|
}
|
|
@@ -422,7 +422,7 @@ class W {
|
|
|
422
422
|
* Инициализировать события.
|
|
423
423
|
*/
|
|
424
424
|
initEvents() {
|
|
425
|
-
return this.eventItem || (this.eventItem = new
|
|
425
|
+
return this.eventItem || (this.eventItem = new v(this.element, void 0, "resize", this.update)), this.eventTarget || (this.eventTarget = new v(this.elementTarget.element, void 0, "resize", this.update)), this.eventBody || (this.eventBody = new P(window, ["scroll", "resize"], this.update)), this;
|
|
426
426
|
}
|
|
427
427
|
}
|
|
428
428
|
class x {
|
|
@@ -442,7 +442,7 @@ class x {
|
|
|
442
442
|
* @param ArrowPositionConstructor class for working with the position of the arrow/ класс для работы с позицией стрелки
|
|
443
443
|
* @param ArrowEventConstructor class for working with arrow events/ класс для работы с событиями стрелки
|
|
444
444
|
*/
|
|
445
|
-
constructor(t, e, i, r,
|
|
445
|
+
constructor(t, e, i, r, a, h, m, g, b = H, T = L, y = M, $ = O, R = W) {
|
|
446
446
|
s(this, "elementItem");
|
|
447
447
|
s(this, "elementTarget");
|
|
448
448
|
s(this, "parent");
|
|
@@ -450,7 +450,7 @@ class x {
|
|
|
450
450
|
s(this, "event");
|
|
451
451
|
/** Direction of the arrow/ Направление стрелки */
|
|
452
452
|
s(this, "direction", l(() => {
|
|
453
|
-
if (
|
|
453
|
+
if (w(this.props.position)) {
|
|
454
454
|
const t = this.position.direction.value;
|
|
455
455
|
if (t)
|
|
456
456
|
return t;
|
|
@@ -471,19 +471,19 @@ class x {
|
|
|
471
471
|
};
|
|
472
472
|
return this.parent.isBorder.value && this.position.clipPath.value && (t[`--${this.className}-sys-clipPath`] = this.position.clipPath.value), this.elementTarget.is() && this.position.shift.value && (t[`--${this.className}-sys-shift`] = this.position.shift.value), t;
|
|
473
473
|
}));
|
|
474
|
-
this.props = t, this.refs = e, this.element = i, this.classDesign = r, this.className =
|
|
474
|
+
this.props = t, this.refs = e, this.element = i, this.classDesign = r, this.className = a, this.components = h, this.slots = m, this.emits = g, this.elementItem = new b(
|
|
475
475
|
this.element,
|
|
476
476
|
this.className
|
|
477
|
-
), this.elementTarget = new
|
|
477
|
+
), this.elementTarget = new T(this.props), this.parent = new y(
|
|
478
478
|
this.element,
|
|
479
479
|
this.className,
|
|
480
480
|
this.elementItem
|
|
481
|
-
), this.position = new
|
|
481
|
+
), this.position = new $(
|
|
482
482
|
this.props,
|
|
483
483
|
this.elementItem,
|
|
484
484
|
this.elementTarget,
|
|
485
485
|
this.parent
|
|
486
|
-
), this.event = new
|
|
486
|
+
), this.event = new R(
|
|
487
487
|
this.props,
|
|
488
488
|
this.refs,
|
|
489
489
|
this.element,
|
|
@@ -497,7 +497,7 @@ const D = {
|
|
|
497
497
|
// :default [!] System label / Системная метка
|
|
498
498
|
position: "auto"
|
|
499
499
|
};
|
|
500
|
-
class G extends
|
|
500
|
+
class G extends C {
|
|
501
501
|
/**
|
|
502
502
|
* Constructor
|
|
503
503
|
* @param name class name/ название класса
|
|
@@ -505,7 +505,7 @@ class G extends k {
|
|
|
505
505
|
* @param options list of additional parameters/ список дополнительных параметров
|
|
506
506
|
* @param ItemConstructor arrow item class/ класс элемента стрелки
|
|
507
507
|
*/
|
|
508
|
-
constructor(e, i, r,
|
|
508
|
+
constructor(e, i, r, a = x) {
|
|
509
509
|
super(
|
|
510
510
|
e,
|
|
511
511
|
i,
|
|
@@ -531,7 +531,7 @@ class G extends k {
|
|
|
531
531
|
return `0, ${i} ${e / 2}, 0 ${e}, ${i}`;
|
|
532
532
|
}
|
|
533
533
|
});
|
|
534
|
-
this.item = new
|
|
534
|
+
this.item = new a(
|
|
535
535
|
this.props,
|
|
536
536
|
this.refs,
|
|
537
537
|
this.element,
|
|
@@ -541,7 +541,7 @@ class G extends k {
|
|
|
541
541
|
this.slots,
|
|
542
542
|
this.emits
|
|
543
543
|
), this.init(), c([this.classes], () => {
|
|
544
|
-
|
|
544
|
+
f().then(
|
|
545
545
|
() => requestAnimationFrame(() => {
|
|
546
546
|
this.points.value = this.getRePoints();
|
|
547
547
|
})
|
|
@@ -603,7 +603,7 @@ class G extends k {
|
|
|
603
603
|
ref: this.element,
|
|
604
604
|
class: (i = this.classes) == null ? void 0 : i.value.main,
|
|
605
605
|
style: (r = this.styles) == null ? void 0 : r.value,
|
|
606
|
-
|
|
606
|
+
...k.hidden()
|
|
607
607
|
}, e);
|
|
608
608
|
}
|
|
609
609
|
/**
|
|
@@ -651,8 +651,7 @@ class G extends k {
|
|
|
651
651
|
return [
|
|
652
652
|
d("div", {
|
|
653
653
|
key: "border",
|
|
654
|
-
class: (e = this.classes) == null ? void 0 : e.value.border
|
|
655
|
-
...$.hidden()
|
|
654
|
+
class: (e = this.classes) == null ? void 0 : e.value.border
|
|
656
655
|
})
|
|
657
656
|
];
|
|
658
657
|
}
|
package/dist/badge.js
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
var
|
|
2
|
-
var
|
|
3
|
-
var
|
|
4
|
-
import { computed as
|
|
5
|
-
import { isFilled as c, DesignConstructorAbstract as
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
class
|
|
1
|
+
var b = Object.defineProperty;
|
|
2
|
+
var g = (i, t, s) => t in i ? b(i, t, { enumerable: !0, configurable: !0, writable: !0, value: s }) : i[t] = s;
|
|
3
|
+
var e = (i, t, s) => g(i, typeof t != "symbol" ? t + "" : t, s);
|
|
4
|
+
import { computed as l, h as f } from "vue";
|
|
5
|
+
import { isFilled as c, DesignConstructorAbstract as v } from "@dxtmisha/functional";
|
|
6
|
+
import { A as u } from "./AriaStaticInclude-CAURwJMb.js";
|
|
7
|
+
import { L as I } from "./LabelNumberInclude-Cn0qDEgX.js";
|
|
8
|
+
import { I as A } from "./IconInclude-CLqwI29Q.js";
|
|
9
|
+
class C {
|
|
10
10
|
/**
|
|
11
11
|
* Constructor
|
|
12
12
|
* @param props input data/ входные данные
|
|
@@ -17,16 +17,18 @@ class I {
|
|
|
17
17
|
* @param components object for working with components/ объект для работы с компонентами
|
|
18
18
|
* @param slots object for working with slots/ объект для работы со слотами
|
|
19
19
|
* @param emits the function is called when an event is triggered/ функция вызывается, когда срабатывает событие
|
|
20
|
+
* @param LabelNumberIncludeConstructor class for working with label/ класс для работы с меткой
|
|
21
|
+
* @param IconIncludeConstructor class for working with icon/ класс для работы с иконкой
|
|
20
22
|
*/
|
|
21
|
-
constructor(t, s,
|
|
22
|
-
|
|
23
|
-
|
|
23
|
+
constructor(t, s, r, n, a, o, h, m, d = I, p = A) {
|
|
24
|
+
e(this, "label");
|
|
25
|
+
e(this, "icon");
|
|
24
26
|
/**
|
|
25
27
|
* Computes if the badge should auto-hide when there is no dot, icon, or label.
|
|
26
28
|
*
|
|
27
29
|
* Вычисляет, должен ли бейдж автоматически скрываться, если нет точки, иконки и текста.
|
|
28
30
|
*/
|
|
29
|
-
|
|
31
|
+
e(this, "autoHide", l(
|
|
30
32
|
() => !this.props.dot && !c(this.icon.isIcon.value) && !c(this.label.is.value)
|
|
31
33
|
));
|
|
32
34
|
/**
|
|
@@ -34,42 +36,46 @@ class I {
|
|
|
34
36
|
*
|
|
35
37
|
* Классы для управления видимостью бейджа.
|
|
36
38
|
*/
|
|
37
|
-
|
|
39
|
+
e(this, "classes", l(() => ({
|
|
38
40
|
[`${this.className}--hideAuto`]: this.autoHide.value
|
|
39
41
|
})));
|
|
40
|
-
this
|
|
42
|
+
e(this, "aria", l(() => this.props.ariaLabel ? {
|
|
43
|
+
...u.hidden()
|
|
44
|
+
} : {}));
|
|
45
|
+
this.props = t, this.refs = s, this.element = r, this.classDesign = n, this.className = a, this.components = o, this.slots = h, this.emits = m, this.label = new d(
|
|
41
46
|
t,
|
|
42
|
-
|
|
47
|
+
a,
|
|
43
48
|
void 0,
|
|
44
|
-
|
|
45
|
-
), this.icon = new
|
|
49
|
+
h
|
|
50
|
+
), this.icon = new p(
|
|
46
51
|
t,
|
|
47
|
-
|
|
48
|
-
|
|
52
|
+
a,
|
|
53
|
+
o
|
|
49
54
|
);
|
|
50
55
|
}
|
|
51
56
|
}
|
|
52
|
-
const
|
|
57
|
+
const H = {
|
|
53
58
|
// :default [!] System label / Системная метка
|
|
54
59
|
overlap: "rectangular",
|
|
55
60
|
vertical: "top",
|
|
56
61
|
horizontal: "right"
|
|
57
62
|
};
|
|
58
|
-
class
|
|
63
|
+
class N extends v {
|
|
59
64
|
/**
|
|
60
65
|
* Constructor
|
|
61
66
|
* @param name class name/ название класса
|
|
62
67
|
* @param props properties/ свойства
|
|
63
68
|
* @param options list of additional parameters/ список дополнительных параметров
|
|
69
|
+
* @param ItemConstructor class for working with the item/ класс для работы с элементом
|
|
64
70
|
*/
|
|
65
|
-
constructor(s,
|
|
71
|
+
constructor(s, r, n, a = C) {
|
|
66
72
|
super(
|
|
67
73
|
s,
|
|
68
|
-
|
|
69
|
-
|
|
74
|
+
r,
|
|
75
|
+
n
|
|
70
76
|
);
|
|
71
|
-
|
|
72
|
-
this.item = new
|
|
77
|
+
e(this, "item");
|
|
78
|
+
this.item = new a(
|
|
73
79
|
this.props,
|
|
74
80
|
this.refs,
|
|
75
81
|
this.element,
|
|
@@ -115,22 +121,21 @@ class L extends b {
|
|
|
115
121
|
* Метод для рендеринга.
|
|
116
122
|
*/
|
|
117
123
|
initRender() {
|
|
118
|
-
var
|
|
124
|
+
var r;
|
|
119
125
|
const s = [];
|
|
120
126
|
return this.props.dot || s.push(
|
|
121
|
-
...this.item.label.render(),
|
|
127
|
+
...this.item.label.render(void 0, this.item.aria.value),
|
|
122
128
|
...this.item.icon.renderIcon()
|
|
123
|
-
),
|
|
129
|
+
), f("span", {
|
|
124
130
|
...this.getAttrs(),
|
|
125
131
|
ref: this.element,
|
|
126
|
-
class: (
|
|
127
|
-
...u.role("status"),
|
|
132
|
+
class: (r = this.classes) == null ? void 0 : r.value.main,
|
|
128
133
|
...u.label(this.props.ariaLabel)
|
|
129
134
|
}, s);
|
|
130
135
|
}
|
|
131
136
|
}
|
|
132
137
|
export {
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
138
|
+
C as Badge,
|
|
139
|
+
N as BadgeDesign,
|
|
140
|
+
H as defaultsBadge
|
|
136
141
|
};
|
package/dist/bars.js
CHANGED
|
@@ -1,19 +1,19 @@
|
|
|
1
|
-
var
|
|
2
|
-
var
|
|
3
|
-
var s = (
|
|
4
|
-
import { watch as
|
|
5
|
-
import { toBind as u, getBind as
|
|
6
|
-
import { A as m } from "./AriaStaticInclude-
|
|
7
|
-
import { L as
|
|
8
|
-
import { D as
|
|
9
|
-
import { E as
|
|
10
|
-
import { M as
|
|
11
|
-
import { T as
|
|
12
|
-
import {
|
|
13
|
-
import {
|
|
14
|
-
import {
|
|
15
|
-
import { B as
|
|
16
|
-
class
|
|
1
|
+
var g = Object.defineProperty;
|
|
2
|
+
var S = (a, i, t) => i in a ? g(a, i, { enumerable: !0, configurable: !0, writable: !0, value: t }) : a[i] = t;
|
|
3
|
+
var s = (a, i, t) => S(a, typeof i != "symbol" ? i + "" : i, t);
|
|
4
|
+
import { watch as A, ref as D, computed as o, reactive as d, h as p } from "vue";
|
|
5
|
+
import { toBind as u, getBind as T, forEach as E, DesignConstructorAbstract as M } from "@dxtmisha/functional";
|
|
6
|
+
import { A as m } from "./AriaStaticInclude-CAURwJMb.js";
|
|
7
|
+
import { L as $ } from "./LabelInclude-D-mLvjK5.js";
|
|
8
|
+
import { D as y } from "./DescriptionInclude-D4ane9aR.js";
|
|
9
|
+
import { E as H } from "./EventClickInclude-WHJqxZ1b.js";
|
|
10
|
+
import { M as P } from "./ModelInclude-BiYm_iCQ.js";
|
|
11
|
+
import { T as W } from "./TextInclude--GERRCGj.js";
|
|
12
|
+
import { W as N } from "./WindowClassesInclude-B56usxgx.js";
|
|
13
|
+
import { M as O } from "./MotionTransformClassesInclude-B23RIq0Q.js";
|
|
14
|
+
import { S as R } from "./SkeletonInclude-BIUzAO2s.js";
|
|
15
|
+
import { B as nt } from "./BarsInclude-BOEoY-O4.js";
|
|
16
|
+
class V {
|
|
17
17
|
/**
|
|
18
18
|
* Constructor
|
|
19
19
|
* @param props input data/ входные данные
|
|
@@ -21,10 +21,14 @@ class M {
|
|
|
21
21
|
*/
|
|
22
22
|
constructor(i, t) {
|
|
23
23
|
/** Текущее состояние action‑режима / Current action mode state */
|
|
24
|
-
s(this, "action",
|
|
25
|
-
/**
|
|
26
|
-
|
|
27
|
-
|
|
24
|
+
s(this, "action", D(!1));
|
|
25
|
+
/**
|
|
26
|
+
* Checks if action mode is possible.
|
|
27
|
+
*
|
|
28
|
+
* Проверяет, возможен ли режим действий.
|
|
29
|
+
*/
|
|
30
|
+
s(this, "isPossible", o(() => !!(this.props.actionLabel || this.props.actionDescription || this.props.actionBars)));
|
|
31
|
+
this.props = i, this.refs = t, t.action && A(
|
|
28
32
|
t.action,
|
|
29
33
|
(e) => {
|
|
30
34
|
this.action.value = !!e;
|
|
@@ -49,7 +53,7 @@ class M {
|
|
|
49
53
|
this.action.value && (this.action.value = !1);
|
|
50
54
|
}
|
|
51
55
|
}
|
|
52
|
-
class
|
|
56
|
+
class j {
|
|
53
57
|
/**
|
|
54
58
|
* Constructor
|
|
55
59
|
* @param props input data/ входные данные
|
|
@@ -60,12 +64,24 @@ class y {
|
|
|
60
64
|
* @param components object for working with components/ объект для работы с компонентами
|
|
61
65
|
* @param slots object for working with slots/ объект для работы со слотами
|
|
62
66
|
* @param emits the function is called when an event is triggered/ функция вызывается, когда срабатывает событие
|
|
67
|
+
* @param BarsActionConstructor class for managing action mode/ класс для управления action-режимом
|
|
68
|
+
* @param LabelConstructor class for creating a label/ класс для создания метки
|
|
69
|
+
* @param DescriptionConstructor class for creating a description/ класс для создания описания
|
|
70
|
+
* @param EventConstructor class for creating an event/ класс для создания события
|
|
71
|
+
* @param WindowClassesConstructor helper class for Window CSS classes/ вспомогательный класс для CSS-классов Window
|
|
72
|
+
* @param MotionTransformClassesConstructor helper class for MotionTransform CSS classes/ вспомогательный класс для CSS-классов MotionTransform
|
|
73
|
+
* @param SkeletonConstructor class for creating a skeleton/ класс для создания скелета
|
|
74
|
+
* @param TextConstructor class for creating text/ класс для создания текста
|
|
75
|
+
* @param ModelConstructor class for working with models/ класс для работы с моделями
|
|
63
76
|
*/
|
|
64
|
-
constructor(i, t, e, n,
|
|
77
|
+
constructor(i, t, e, n, r, v, c, h, b = V, B = $, f = y, k = H, C = N, w = O, I = R, x = W, L = P) {
|
|
65
78
|
/** Управление action‑режимом */
|
|
66
79
|
s(this, "action");
|
|
80
|
+
/** Label object/ Объект метки */
|
|
67
81
|
s(this, "label");
|
|
82
|
+
/** Description object/ Объект описания */
|
|
68
83
|
s(this, "description");
|
|
84
|
+
/** Event object/ Объект события */
|
|
69
85
|
s(this, "event");
|
|
70
86
|
/** Helper for Window CSS classes/ Вспомогательный класс для CSS‑классов Window */
|
|
71
87
|
s(this, "windowClasses");
|
|
@@ -73,9 +89,10 @@ class y {
|
|
|
73
89
|
s(this, "motionTransformClasses");
|
|
74
90
|
/** Подключение скелетона для текста/описания */
|
|
75
91
|
s(this, "skeleton");
|
|
92
|
+
/** Text object/ Объект текста */
|
|
76
93
|
s(this, "text");
|
|
77
94
|
/** Returns the button data/ Возвращает данные кнопки */
|
|
78
|
-
s(this, "backBinds",
|
|
95
|
+
s(this, "backBinds", o(
|
|
79
96
|
() => {
|
|
80
97
|
var i;
|
|
81
98
|
return this.initItem(
|
|
@@ -101,24 +118,43 @@ class y {
|
|
|
101
118
|
}
|
|
102
119
|
));
|
|
103
120
|
/** Returns the list of control buttons/ Возвращает список кнопок управления */
|
|
104
|
-
s(this, "barsBinds",
|
|
121
|
+
s(this, "barsBinds", o(() => this.initList(this.props.bars)));
|
|
105
122
|
/**
|
|
106
123
|
* Returns the list of active control buttons/
|
|
107
124
|
* Возвращает список активных кнопок управления
|
|
108
125
|
*/
|
|
109
|
-
s(this, "actionBarsBinds",
|
|
126
|
+
s(this, "actionBarsBinds", o(() => this.initList(this.props.actionBars, !0)));
|
|
110
127
|
/** Returns the button name/ Возвращает название кнопки */
|
|
111
|
-
s(this, "backLabel",
|
|
128
|
+
s(this, "backLabel", o(() => {
|
|
112
129
|
var i;
|
|
113
|
-
return this.action.
|
|
130
|
+
return this.action.action.value || (i = this.backBinds.value) == null ? void 0 : i.label;
|
|
131
|
+
}));
|
|
132
|
+
/**
|
|
133
|
+
* Values for the class.
|
|
134
|
+
*
|
|
135
|
+
* Значения для класса.
|
|
136
|
+
*/
|
|
137
|
+
s(this, "classes", o(() => ({
|
|
138
|
+
[`${this.className}--action`]: this.action.action.value
|
|
139
|
+
})));
|
|
140
|
+
/**
|
|
141
|
+
* Returns the value for the aria-live property.
|
|
142
|
+
*
|
|
143
|
+
* Возвращает значение для свойства aria-live.
|
|
144
|
+
*/
|
|
145
|
+
s(this, "ariaLive", o(() => {
|
|
146
|
+
if (this.action.isPossible.value)
|
|
147
|
+
return "polite";
|
|
114
148
|
}));
|
|
115
149
|
/** Binds for label text/ Привязки для текста метки */
|
|
116
150
|
s(this, "labelBinds", d({
|
|
117
|
-
label:
|
|
151
|
+
label: o(() => this.action.action.value ? this.props.actionLabel : this.props.label),
|
|
152
|
+
labelId: o(() => this.props.labelId)
|
|
118
153
|
}));
|
|
119
154
|
/** Binds for description text/ Привязки для текста описания */
|
|
120
155
|
s(this, "descriptionBinds", d({
|
|
121
|
-
description:
|
|
156
|
+
description: o(() => this.action.action.value ? this.props.actionDescription : this.props.description),
|
|
157
|
+
descriptionId: o(() => this.props.descriptionId)
|
|
122
158
|
}));
|
|
123
159
|
/**
|
|
124
160
|
* Click handler for the "back" button
|
|
@@ -128,18 +164,18 @@ class y {
|
|
|
128
164
|
s(this, "onClickBack", (i, t) => {
|
|
129
165
|
(t == null ? void 0 : t.value) === "back" && this.action.close(), this.event.onClick(i, t);
|
|
130
166
|
});
|
|
131
|
-
this.props = i, this.refs = t, this.element = e, this.classDesign = n, this.className =
|
|
132
|
-
const l = new
|
|
133
|
-
this.action = new
|
|
167
|
+
this.props = i, this.refs = t, this.element = e, this.classDesign = n, this.className = r, this.components = v, this.slots = c, this.emits = h;
|
|
168
|
+
const l = new I(this.props, this.classDesign, ["classTextVariant"]);
|
|
169
|
+
this.action = new b(this.props, this.refs), this.label = new B(
|
|
134
170
|
this.labelBinds,
|
|
135
|
-
|
|
171
|
+
r,
|
|
136
172
|
void 0,
|
|
137
173
|
c,
|
|
138
174
|
void 0,
|
|
139
175
|
void 0,
|
|
140
176
|
void 0,
|
|
141
177
|
l
|
|
142
|
-
), this.description = new
|
|
178
|
+
), this.description = new f(this.descriptionBinds, r, c, l), this.event = new k(void 0, void 0, h), this.windowClasses = new C(n), this.motionTransformClasses = new w(n), this.skeleton = l, this.text = new x(this.props), new L("action", this.emits, this.action.action);
|
|
143
179
|
}
|
|
144
180
|
/**
|
|
145
181
|
* Prepares all parameters for the button.
|
|
@@ -150,7 +186,7 @@ class y {
|
|
|
150
186
|
* @param isAction is action button/ является ли кнопка действия
|
|
151
187
|
*/
|
|
152
188
|
initItem(i, t, e = !1) {
|
|
153
|
-
var n,
|
|
189
|
+
var n, r;
|
|
154
190
|
return {
|
|
155
191
|
isSkeleton: this.props.isSkeleton,
|
|
156
192
|
onClick: this.event.onClick,
|
|
@@ -158,8 +194,8 @@ class y {
|
|
|
158
194
|
(n = this.props.buttonAttrs) != null ? n : {},
|
|
159
195
|
i != null ? i : {}
|
|
160
196
|
),
|
|
161
|
-
key: `${e ? "action" : ""}Bar-${(
|
|
162
|
-
icon:
|
|
197
|
+
key: `${e ? "action" : ""}Bar-${(r = i == null ? void 0 : i.value) != null ? r : t}`,
|
|
198
|
+
icon: T(i == null ? void 0 : i.icon, { animationShow: e }, "icon")
|
|
163
199
|
};
|
|
164
200
|
}
|
|
165
201
|
/**
|
|
@@ -171,21 +207,22 @@ class y {
|
|
|
171
207
|
*/
|
|
172
208
|
initList(i, t = !1) {
|
|
173
209
|
if (i)
|
|
174
|
-
return
|
|
210
|
+
return E(
|
|
175
211
|
i,
|
|
176
212
|
(e, n) => this.initItem(e, n, t)
|
|
177
213
|
);
|
|
178
214
|
}
|
|
179
215
|
}
|
|
180
|
-
const
|
|
181
|
-
class
|
|
216
|
+
const tt = {};
|
|
217
|
+
class it extends M {
|
|
182
218
|
/**
|
|
183
219
|
* Constructor
|
|
184
220
|
* @param name class name/ название класса
|
|
185
221
|
* @param props properties/ свойства
|
|
186
222
|
* @param options list of additional parameters/ список дополнительных параметров
|
|
223
|
+
* @param ItemConstructor bars item class/ класс элемента bars
|
|
187
224
|
*/
|
|
188
|
-
constructor(t, e, n) {
|
|
225
|
+
constructor(t, e, n, r = j) {
|
|
189
226
|
super(
|
|
190
227
|
t,
|
|
191
228
|
e,
|
|
@@ -197,13 +234,13 @@ class N extends x {
|
|
|
197
234
|
*
|
|
198
235
|
* Рендеринг кнопки закрытия.
|
|
199
236
|
*/
|
|
200
|
-
s(this, "renderBackButton", () => this.props.backHide && (!this.item.action.
|
|
237
|
+
s(this, "renderBackButton", () => this.props.backHide && (!this.item.action.action.value || this.props.backActionHide) ? [] : [
|
|
201
238
|
this.components.renderOne(
|
|
202
239
|
"button",
|
|
203
240
|
{
|
|
241
|
+
...this.item.backBinds.value,
|
|
204
242
|
label: this.item.backLabel.value,
|
|
205
|
-
selected: this.item.action.
|
|
206
|
-
...this.item.backBinds.value
|
|
243
|
+
selected: this.item.action.action.value
|
|
207
244
|
}
|
|
208
245
|
)
|
|
209
246
|
]);
|
|
@@ -234,7 +271,7 @@ class N extends x {
|
|
|
234
271
|
*/
|
|
235
272
|
s(this, "renderBars", () => {
|
|
236
273
|
const t = [];
|
|
237
|
-
return this.item.action.
|
|
274
|
+
return this.item.action.action.value || (t.push(...this.renderList(this.item.barsBinds.value)), this.initSlot("bars", t)), t;
|
|
238
275
|
});
|
|
239
276
|
/**
|
|
240
277
|
* Rendering the control button.
|
|
@@ -243,7 +280,7 @@ class N extends x {
|
|
|
243
280
|
*/
|
|
244
281
|
s(this, "renderActionBars", () => {
|
|
245
282
|
const t = [];
|
|
246
|
-
return this.item.action.
|
|
283
|
+
return this.item.action.action.value && (t.push(...this.renderList(this.item.actionBarsBinds.value)), this.initSlot("actionBars", t)), t;
|
|
247
284
|
});
|
|
248
285
|
/**
|
|
249
286
|
* Rendering a list of buttons from the list.
|
|
@@ -257,7 +294,7 @@ class N extends x {
|
|
|
257
294
|
(n) => this.components.renderAdd(e, "button", n)
|
|
258
295
|
), e;
|
|
259
296
|
});
|
|
260
|
-
this.item = new
|
|
297
|
+
this.item = new r(
|
|
261
298
|
this.props,
|
|
262
299
|
this.refs,
|
|
263
300
|
this.element,
|
|
@@ -274,10 +311,7 @@ class N extends x {
|
|
|
274
311
|
* Инициализация всех необходимых свойств для работы.
|
|
275
312
|
*/
|
|
276
313
|
initExpose() {
|
|
277
|
-
return {
|
|
278
|
-
...this.item.label.expose,
|
|
279
|
-
...this.item.description.expose
|
|
280
|
-
};
|
|
314
|
+
return {};
|
|
281
315
|
}
|
|
282
316
|
/**
|
|
283
317
|
* Improvement of the obtained list of classes.
|
|
@@ -286,7 +320,7 @@ class N extends x {
|
|
|
286
320
|
*/
|
|
287
321
|
initClasses() {
|
|
288
322
|
return {
|
|
289
|
-
main:
|
|
323
|
+
main: this.item.classes.value,
|
|
290
324
|
// :classes [!] System label / Системная метка
|
|
291
325
|
context: this.getSubClass("context"),
|
|
292
326
|
label: this.getSubClass("label"),
|
|
@@ -313,7 +347,7 @@ class N extends x {
|
|
|
313
347
|
{
|
|
314
348
|
...this.getAttrs(),
|
|
315
349
|
class: (t = this.classes) == null ? void 0 : t.value.main,
|
|
316
|
-
...m.live(this.
|
|
350
|
+
...m.live(this.item.ariaLive.value)
|
|
317
351
|
},
|
|
318
352
|
[
|
|
319
353
|
...this.renderBackButton(),
|
|
@@ -325,8 +359,8 @@ class N extends x {
|
|
|
325
359
|
}
|
|
326
360
|
}
|
|
327
361
|
export {
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
|
|
362
|
+
j as Bars,
|
|
363
|
+
it as BarsDesign,
|
|
364
|
+
nt as BarsInclude,
|
|
365
|
+
tt as defaultsBars
|
|
332
366
|
};
|
package/dist/block.js
CHANGED